code-server
Version:
Run VS Code on a remote server.
33 lines • 241 kB
JavaScript
"use strict";var xy=Object.create;var Af=Object.defineProperty;var by=Object.getOwnPropertyDescriptor;var Py=Object.getOwnPropertyNames;var Ay=Object.getPrototypeOf,Cy=Object.prototype.hasOwnProperty;var O=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(n){throw t=[n],n}};var _r=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},Ou=(r,e)=>{for(var t in e)Af(r,t,{get:e[t],enumerable:!0})},yg=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Py(e))!Cy.call(r,i)&&i!==t&&Af(r,i,{get:()=>e[i],enumerable:!(n=by(e,i))||n.enumerable});return r};var Ar=(r,e,t)=>(t=r!=null?xy(Ay(r)):{},yg(e||!r||!r.__esModule?Af(t,"default",{value:r,enumerable:!0}):t,r)),Lu=r=>yg(Af({},"__esModule",{value:!0}),r);var cs,vi,Cn,fn,fs,Yu,a_=O(()=>{cs="function",vi="object",Cn="undefined",fn="prototype",fs=Object,Yu=fs[fn]});function ur(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 Vy(r,e,t){var n=Ee(r,t);return n.e?e:n.v}function Ff(r){return function(e){return typeof e===r}}function Yg(r){var e="[object "+r+"]";return function(t){return!!(t&&Mf(t)===e)}}function Mf(r){return Gu[ku].call(r)}function y_(r,e){return typeof r===e}function Te(r){return typeof r===Jo||r===Jo}function zy(r){return r===qr}function F(r){return r===tr||Te(r)}function ln(r){return r===tr||r===qr}function Ug(r){return!!r||r!==qr}function Ky(r){return!s_&&(s_=["string","number","boolean",Jo,"symbol","bigint"]),r!==Hu&&s_.indexOf(r)!==-1}function nr(r){return!r&&F(r)?!1:!!r&&typeof r===Hu}function _t(r){return!!(r&&r.then&&ue(r.then))}function I_(r){return!r||!dn(r)}function dn(r){return!(!r||Vy(function(){return!(r&&0+r)},!r))}function x_(){}function Wy(){return[]}function $y(){return!1}function te(r,e){var t=N_,n=Gu[ku][mr](r);n===qy&&(r={stack:pr(r.stack),message:pr(r.message),name:pr(r.name)});try{t=JSON.stringify(r,tr,e?typeof e=="number"?e:4:qr),t=(t?t.replace(/"(\w+)"\s*:\s{0,1}/g,"$1: "):tr)||pr(r)}catch(i){t=" - "+te(i,e)}return n+": "+t}function cr(r){throw new Error(r)}function st(r){throw new TypeError(r)}function kf(r){ln(r)&&st("Cannot convert undefined or null to object")}function Fg(r){Se(r)||st("'"+te(r)+"' is not a string")}function Cr(r,e){return!!r&&Gu.hasOwnProperty[mr](r,e)}function Jy(r,e){return kf(r),Cr(r,e)||!!Xy(r,e)}function Qy(r){return r===Fu||r===Mu||r===Xr}function oe(r,e,t){if(r&&(nr(r)||ue(r))){for(var n in r)if(qt(r,n)&&e[mr](ln(t)?r:t,n,r[n])===-1)break}}function R(r,e,t){if(r)for(var n=r[Zo]>>>0,i=0;i<n&&!(i in r&&e[mr](ln(t)?r:t,r[i],i,r)===-1);i++);}function vs(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?Rn[mr](a,1):a)}st('"'+pr(r)+'" not defined for '+te(i))}}function Zy(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?Rn[mr](a,1):a)}st('"'+pr(r)+'" not defined for '+te(i))}}function eI(r){return function(e){return e[r]}}function rI(r,e){var t,n=kr.getOwnPropertyDescriptor;return!ln(r)&&n&&(t=Ee(n,[r,e]).v||tr),!t&&!ln(r)&&(t=Ee(function(){for(var i in r)if(i==e)return{enumerable:Cr(r,i)}}).v),t&&t.enumerable||!1}function Mg(r){var e={};if(e[Cf.c]=!0,e[Cf.e]=!0,r.l){e.get=function(){return r.l.v};var t=nI(r.l,"v");t&&t.set&&(e.set=function(n){r.l.v=n})}return oe(r,function(n,i){e[Cf[n]]=zy(i)?e[Cf[n]]:i}),e}function P_(r,e,t,n,i,o){var a={e:o,c:i};return t&&(a.g=t),n&&(a.s=n),Nt(r,e,Mg(a))}function we(r,e,t){return Nt(r,e,Mg(t))}function Hg(r,e,t,n,i){var o={};return oe(r,function(a,s){Lf(o,a,e?s:a),Lf(o,s,t?s:a)}),n?n(o):o}function Lf(r,e,t,n){Nt(r,e,{value:t,enumerable:!0,writable:!1})}function Gg(r){return r}function oI(r){return kf(r),r[Fu]||tr}function Bg(r,e){if((re(r)||nr(r)||ue(r))&&!iI(r)){for(var t=0;t<e.length;t++)if(e[t]===r)return r;e.push(r),oe(r,function(n,i){Bg(i,e)}),Xt(r)}return r}function On(r){return kg?Bg(r,[]):r}function jg(r){return Hg(r,1,0,Xt)}function aI(r){return Hg(r,0,0,Xt)}function sI(r){var e={};return oe(r,function(t,n){Lf(e,t,n[1]),Lf(e,n[0],n[1])}),Xt(e)}function Vg(r){return sI(r)}function Kg(){var r;return typeof globalThis!==Jo&&(r=globalThis),!r&&typeof self!==Jo&&(r=self),!r&&typeof window!==Jo&&(r=window),!r&&typeof global!==Jo&&(r=global),r}function Gf(){if(!u_){var r=Ee(Kg).v||{};u_=r[bg]=r[bg]||{}}return u_}function cI(r,e,t){return kf(r),t<0?N_:(e=e||0,e<0&&(e=uI(e+r[Zo],0)),Te(t)?Pg(r,e):Pg(r,e,e+t))}function ta(r,e){return Rr(r,0,e)}function fI(r,e){return r&&(Ee(function(){r[Ig]=!0,r[xg]=e}),Ee(we,[r,Ig,{v:!0,w:!1,e:!1}]),Ee(we,[r,xg,{v:e,w:!1,e:!1}])),r}function lI(r,e){var t=null;function n(){}if(ln(r))t={};else{var i=typeof r;i!==Hu&&i!==Uf&&st("Prototype must be an Object or function: "+te(r)),n[Xr]=r,Ee(function(){n[Fu]=r}),t=new n}return e&&Ee(b_,[t,e]),t}function ir(){return(Date.now||dI)()}function dI(){return new Date().getTime()}function Qo(r,e,t){return r.apply(e,t)}function $i(){Sr=Gf()}function C_(r,e){var t={};return!Sr&&$i(),t.b=Sr.lzy,Nt(t,"v",{configurable:!0,get:function(){var n=Qo(r,null,e);return Sr.lzy||Nt(t,"v",{value:n}),t.b=Sr.lzy,n}}),t}function hI(){if(!c_){var r=Gf();c_=r.gblSym=r.gblSym||{k:{},s:{}}}return c_}function R_(r){var e="_"+mI+++"_"+_I.v,t=T_+"("+r+")";function n(o,a){we(i,o,{v:a,e:!1,w:!1})}var i=vn(null);return n("description",pr(r)),n(ku,function(){return t+pI+e}),n("valueOf",function(){return i}),n("v",t),n("_uid",e),fI(i,"symbol")}function gI(r){var e=hI();if(!qt(e.k,r)){var t=R_(r),n=Qr(e.s).length;t[Ag]=function(){return n+"_"+t[ku]()},e.k[r]=t,e.s[t[Ag]()]=pr(r)}return e.k[r]}function EI(r){!Rf&&(Rf={});var e,t=zg[r];return t&&(e=Rf[t]=Rf[t]||R_(T_+"."+t)),e}function Tt(r){return Nt({toJSON:function(){return r}},"v",{value:r})}function Bu(r,e){var t;return function(){return!Sr&&$i(),(!t||Sr.lzy)&&(t=Tt(Ee(r,e).v)),t.v}}function pt(r){return!Sr&&$i(),(!Uu||r===!1||Sr.lzy)&&(Uu=Tt(Ee(Kg).v||tr)),Uu.v}function le(r,e){var t;if(!Uu||e===!1?t=pt(e):t=Uu.v,t&&t[r])return t[r];if(r===Wg)try{return window}catch{}return tr}function na(){return!!fr()}function ps(){return!!Nr()}function ju(){return!!wr()}function w_(){return!!Bf()}function jf(){return ls=Tt(Ee(le,[T_]).v),ls}function SI(r){var e=(Sr.lzy?0:ls)||jf();return e.v?e.v[r]:qr}function qg(){return!!NI()}function NI(){return!Sr&&$i(),((Sr.lzy?0:ls)||jf()).v}function Vu(r,e){var t=zg[r];!Sr&&$i();var n=(Sr.lzy?0:ls)||jf();return n.v?n.v[t||r]:e?qr:EI(r)}function ms(r,e){!Sr&&$i();var t=(Sr.lzy?0:ls)||jf();return t.v?t.v(r):e?tr:R_(r)}function Vf(r){return!Sr&&$i(),f_=(Sr.lzy?0:f_)||Tt(Ee(SI,["for"]).v),(f_.v||gI)(r)}function Yf(r){return!!r&&ue(r.next)}function O_(r){return!ln(r)&&ue(r[Vu(3)])}function zf(r,e,t){if(r&&(Yf(r)||(!wf&&(wf=Tt(Vu(3))),r=r[wf.v]?r[wf.v]():tr),Yf(r))){var n=qr,i=qr;try{for(var o=0;!(i=r.next()).done&&e[mr](ln(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 _n(r,e){return!Te(e)&&r&&(re(e)?Qo(r.push,r,e):Yf(e)||O_(e)?zf(e,function(t){r.push(t)}):r.push(e)),r}function hs(r,e,t){return((r?r.slice:tr)||Rn).apply(r,Rn[mr](arguments,1))}function TI(r,e,t){return Oe(r,e,t)!==-1}function DI(r,e){var t;return!l_&&(l_=Tt((t={},t[Fu]=[],t instanceof Array))),l_.v?r[Fu]=e:oe(e,function(n,i){return r[n]=i}),r}function yI(r,e,t){Ee(we,[e,Of,{v:r,c:!0,e:!1}]),e=Xg(e,t);function n(){this[Mu]=e,Ee(we,[this,Of,{v:r,c:!0,e:!1}])}return e[Xr]=t===tr?vn(t):(n[Xr]=t[Xr],new n),e}function Cg(r,e){e&&(r[Of]=e)}function Y_(r,e,t,n){var i=t||Error,o=i[Xr][Of],a=Error.captureStackTrace;return yI(r,function(){var s=this,u=arguments;try{Ee(Cg,[i,r]);var c=Qo(i,s,n?n(u):Rn[mr](u))||s;if(c!==s){var f=S_(s);f!==S_(c)&&Xg(c,f)}return a&&a(c,s[Mu]),e&&e(c,u),c}finally{Ee(Cg,[i,o])}},i)}function xI(r){return function(t){return kf(t),t=pr(t),t&&(t=II(t,r,N_)),t}}function AI(r,e,t){if(r!==tr&&r!==qr){for(var n in r)if(qt(r,n)&&e[mr](ln(t)?r:t,n,r[n])===-1)return;R(PI(r),function(i){if(tI(r,i)&&e[mr](ln(t)?r:t,i,r[i])===-1)return-1})}}function CI(r,e,t){AI(r,function(n,i){if(!Qy(n))return e[mr](ln(t)?r:t,n,i)},t)}function Zr(r){if(!r||typeof r!==Hu)return!1;__||(__=ps()?Nr():!0);var e=!1;if(r!==__){v_||(d_=Function[Xr][ku],v_=d_[mr](kr));try{var t=S_(r);e=!t,e||(Cr(t,Mu)&&(t=t[Mu]),e=!!(t&&typeof t===Uf&&d_[mr](t)===v_))}catch{}}return e}function RI(r,e){e&&r.push(e)}function sr(r,e){e&&e[Xr]}function wI(){var r=[Gu,_i,ds,Oy,Yy,Fy,Hy,Gy,jy];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 OI(r){return p_||(p_=Tt(wI())),Oe(p_.v,r)>=0}function LI(r){return r.value&&Zg(r),!0}function YI(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 U_(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===Hu?u=Zr(e):c=Ky(s));var f={type:s,isPrim:c,isPlain:u,value:e,result:e,path:o,origin:t.src,copy:function(d,v){return U_(r,d,v?a:t,v)},copyTo:function(d,v){return Qg(r,d,v,a)}};return f.isPrim?i&&i[mr](t,f)?f.result:e:YI(r,e,o,function(d){we(f,"result",{g:function(){return d.v},s:function(_){d.v=_}});for(var v=0,m=i;!(m||(v<Rg.length?Rg[v++]:LI))[mr](t,f);)m=tr})}function Qg(r,e,t,n){return OI(t)||CI(t,function(i,o){e[i]=U_(r,o,n,i)}),e}function UI(r,e,t){var n={handler:t,src:e,path:[]};return Qg([],r,e,n)}function FI(r,e){var t={handler:e,src:r};return U_([],r,t)}function MI(r){var e=r.value;if(re(e)){var t=r.result=[];return t.length=e.length,r.copyTo(t,e),!0}return!1}function HI(r){var e=r.value;return Hf(e)?(r.result=new Date(e.getTime()),!0):!1}function kI(r){return r.type===Uf}function Zg(r){var e=r.value;if(e&&r.isPlain){var t=r.result={};return r.copyTo(t,e),!0}return!1}function GI(r,e){return R(e,function(t){UI(r,t)}),r}function F_(r,e,t,n,i,o,a){return GI(FI(r)||{},Rn[mr](arguments))}function qi(){return!Sr&&$i(),(!m_||Sr.lzy)&&(m_=Tt(Ee(le,["performance"]).v)),m_.v}function Ku(){var r=qi();return r&&r.now?r.now():ir()}function BI(r,e,t){Fg(r);var n=Se(e)?e:pr(e),i=!Te(t)&&t<r[Zo]?t:r[Zo];return Rr(r,i-n[Zo],i)===n}function jI(r,e,t){Fg(r);var n=Se(e)?e:pr(e),i=t>0?t:0;return Rr(r,i,i+n[Zo])===n}function zI(r,e,t){var n=!0,i=r?e(tr):tr,o;function a(){return n=!1,i&&i[g_]&&i[g_](),o}function s(){i&&t(i),i=tr}function u(){return i=e(i),n||a(),o}function c(f){!f&&i&&s(),f&&!i&&u()}return o={cancel:s,refresh:u},o[E_]=function(){return i&&i[E_]?i[E_]():n},o[h_]=function(){return n=!0,i&&i[h_]&&i[h_](),o},o[g_]=a,o=Nt(o,VI,{get:function(){return!!i},set:c}),{h:o,dn:function(){i=tr}}}function $I(r){var e=ue(r)?r:KI;if(!e){var t=Gf().tmOut||[];re(t)&&t.length>0&&ue(t[0])&&(e=t[0])}return e||setTimeout}function qI(r){var e=ue(r)?r:WI;if(!e){var t=Gf().tmOut||[];re(t)&&t.length>1&&ue(t[1])&&(e=t[1])}return e||clearTimeout}function M_(r,e,t){var n=re(e),i=n?e.length:0,o=$I(i>0?e[0]:n?qr:e),a=qI(i>1?e[1]:qr),s=t[0];t[0]=function(){u.dn(),Qo(s,qr,Rn[mr](arguments))};var u=zI(r,function(c){if(c){if(c.refresh)return c.refresh(),c;Qo(a,qr,[c])}return Qo(o,qr,t)},function(c){Qo(a,qr,[c])});return u.h}function Mt(r,e){return M_(!0,qr,Rn[mr](arguments))}function eE(r,e,t){return M_(!0,r,Rn[mr](arguments,1))}function rE(r,e){return M_(!1,qr,Rn[mr](arguments))}var qr,tr,N_,Uf,Hu,Xr,Fu,Jo,Mu,T_,Zo,Of,mr,ku,D_,Ry,kr,Gu,wg,_i,Og,Lg,ds,Rn,wy,Oy,Ly,Yy,Uy,Fy,My,Hy,ky,Gy,By,jy,Ig,xg,s_,Se,ue,re,Hf,Jr,wn,ea,pr,qy,Xy,qt,ra,tI,nI,Cf,Nt,b_,iI,kg,_s,Qr,Xt,A_,S_,zg,bg,u_,uI,Pg,Rr,Ln,vn,Sr,vI,_I,Ag,pI,c_,mI,Rf,Wg,Uu,fr,Nr,wr,Bf,$g,ls,f_,wf,Oe,pi,L_,gs,zu,l_,Xg,II,bI,Ue,Jg,PI,d_,v_,__,p_,Rg,m_,Dt,ia,Es,h_,g_,E_,VI,KI,WI,me=O(()=>{qr=void 0,tr=null,N_="",Uf="function",Hu="object",Xr="prototype",Fu="__proto__",Jo="undefined",Mu="constructor",T_="Symbol",Zo="length",Of="name",mr="call",ku="toString",D_="getOwnPropertyDescriptor",Ry="getOwnPropertySymbols",kr=ur(Object),Gu=Be(kr,Xr),wg=ur(String),_i=Be(wg,Xr),Og=ur(Math),Lg=ur(Array),ds=Be(Lg,Xr),Rn=Be(ds,"slice"),wy=ur(Number),Oy=Be(wy,Xr),Ly=ur(Function),Yy=Be(Ly,Xr),Uy=ur(Date),Fy=Be(Uy,Xr),My=ur(RegExp),Hy=Be(My,Xr),ky=ur(Boolean),Gy=Be(ky,Xr),By=ur(Error),jy=Be(By,Xr),Ig="_polyfill",xg="__nw21$polytype__";Se=Ff("string"),ue=Ff(Uf);re=Be(Lg,"isArray"),Hf=Yg("Date"),Jr=Ff("number"),wn=Ff("boolean"),ea=Yg("Error");pr=ur(wg),qy="[object Error]";Xy=ur(Be(kr,D_),x_),qt=ur(Be(kr,"hasOwn"),Jy);ra=vs;tI=Zy("propertyIsEnumerable",Gu,rI),nI=ur(Be(kr,D_),x_),Cf={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};Nt=Be(kr,"defineProperty"),b_=Be(kr,"defineProperties");iI=ur(Be(kr,"isFrozen"),$y),kg=Be(kr,"freeze");_s=Be(kr,"assign"),Qr=Be(kr,"keys");Xt=ur(kg,Gg),A_=ur(Be(kr,"seal"),Gg),S_=ur(Be(kr,"getPrototypeOf"),oI);zg=aI({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}),bg="__tsUtils$gblCfg";uI=Be(Og,"max"),Pg=ra("slice",_i),Rr=ra("substring",_i),Ln=vs("substr",_i,cI);vn=ur(Be(kr,"create"),lI);vI=Be(Og,"random"),_I=C_(function(){for(var r=ir().toString(36).slice(2);r.length<16;)r+=vI().toString(36).slice(2);return r=r.substring(0,16),r}),Ag="_urid",pI="$nw21sym",mI=0;Wg="window";fr=Bu(le,["document"]);Nr=Bu(le,[Wg]);wr=Bu(le,["navigator"]);Bf=Bu(le,["history"]),$g=Bu(function(){return!!Ee(function(){return process&&(process.versions||{}).node}).v});Oe=ra("indexOf",ds),pi=ra("map",ds);L_=vs("includes",ds,TI),gs=eI(Zo),zu=ra("reduce",ds),Xg=ur(Be(kr,"setPrototypeOf"),DI);II=ra("replace",_i);bI=xI(/^\s+|(?=\s)\s+$/g),Ue=vs("trim",_i,bI),Jg=ur(Be(kr,D_),x_),PI=ur(Be(kr,Ry),Wy);Rg=[MI,Zg,kI,HI];Dt=ra("indexOf",_i),ia=vs("endsWith",_i,BI);Es=vs("startsWith",_i,jI);h_="ref",g_="unref",E_="hasRef",VI="enabled"});function yt(r,e){typeof e!==cs&&e!==null&&st("Class extends value "+String(e)+" is not a constructor or null"),H_(r,e);function t(){this.constructor=r}r[fn]=e===null?vn(e):(t[fn]=e[fn],new t)}function Kf(r,e){for(var t=0,n=e.length,i=r.length;t<n;t++,i++)r[i]=e[t];return r}var BP,jP,tE,JI,Jt,H_,nE=O(()=>{me();a_();BP=(pt()||{}).Symbol,jP=(pt()||{}).Reflect,tE="hasOwnProperty",JI=function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Yu[tE].call(e,i)&&(r[i]=e[i])}return r},Jt=_s||JI,H_=function(r,e){return H_=fs.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n[tE](i)&&(t[i]=n[i])},H_(r,e)}});var iE=O(()=>{});var It=O(()=>{a_();nE();iE();me()});function Xf(r){return r&&(r===W_[mi]||r===Array[mi])}function $_(r){return Xf(r)||r===Function[mi]}function oa(r){var e;if(r){if($u)return $u(r);var t=r[K_]||r[mi]||(r[Jf]?r[Jf][mi]:null);e=r[$f]||t,Cr(r,$f)||(delete r[k_],e=r[$f]=r[k_]||r[$f],r[k_]=t)}return e}function el(r,e){var t=[];if(sE)t=sE(r);else for(var n in r)typeof n=="string"&&Cr(r,n)&&t.push(n);if(t&&t.length>0)for(var i=0;i<t.length;i++)e(t[i])}function q_(r,e,t){return e!==Jf&&typeof r[e]===Qf&&(t||Cr(r,e))&&e!==K_&&e!==mi}function rl(r){st("DynamicProto: "+r)}function ZI(r){var e=vn(null);return el(r,function(t){!e[t]&&q_(r,t,!1)&&(e[t]=r[t])}),e}function X_(r,e){for(var t=r.length-1;t>=0;t--)if(r[t]===e)return!0;return!1}function ex(r,e,t,n){function i(u,c,f){var d=c[f];if(d[B_]&&n){var v=u[Zf]||{};v[Wu]!==!1&&(d=(v[c[Ss]]||{})[f]||d)}return function(){return d.apply(u,arguments)}}var o=vn(null);el(t,function(u){o[u]=i(e,t,u)});for(var a=oa(r),s=[];a&&!$_(a)&&!X_(s,a);)el(a,function(u){!o[u]&&q_(a,u,!$u)&&(o[u]=i(e,a,u))}),s.push(a),a=oa(a);return o}function rx(r,e,t,n){var i=null;if(r&&Cr(t,Ss)){var o=r[Zf]||vn(null);if(i=(o[t[Ss]]||vn(null))[e],i||rl("Missing ["+e+"] "+Qf),!i[j_]&&o[Wu]!==!1){for(var a=!Cr(r,e),s=oa(r),u=[];a&&s&&!$_(s)&&!X_(u,s);){var c=s[e];if(c){a=c===n;break}u.push(s),s=oa(s)}try{a&&(r[e]=i),i[j_]=1}catch{o[Wu]=!1}}}return i}function tx(r,e,t){var n=e[r];return n===t&&(n=oa(e)[r]),typeof n!==Qf&&rl("["+r+"] is not a "+Qf),n}function nx(r,e,t,n,i){function o(u,c){var f=function(){var d=rx(this,c,u,f)||tx(c,u,f);return d.apply(this,arguments)};return f[B_]=1,f}if(!Xf(r)){var a=t[Zf]=t[Zf]||vn(null);if(!Xf(a)){var s=a[e]=a[e]||vn(null);a[Wu]!==!1&&(a[Wu]=!!i),Xf(s)||el(t,function(u){q_(t,u,!1)&&t[u]!==n[u]&&(s[u]=t[u],delete t[u],(!Cr(r,u)||r[u]&&!r[u][B_])&&(r[u]=o(r,u)))})}}}function ix(r,e){if($u){for(var t=[],n=oa(e);n&&!$_(n)&&!X_(t,n);){if(n===r)return!0;t.push(n),n=oa(n)}return!1}return!0}function G_(r,e){return Cr(r,mi)?r.name||e||oE:((r||{})[Jf]||{}).name||e||oE}function be(r,e,t,n){Cr(r,mi)||rl("theClass is an invalid class definition.");var i=r[mi];ix(i,e)||rl("["+G_(r)+"] not in hierarchy of ["+G_(e)+"]");var o=null;Cr(i,Ss)?o=i[Ss]:(o=QI+G_(r,"_")+"$"+z_.n,z_.n++,i[Ss]=o);var a=be[cE],s=!!a[qf];s&&n&&n[qf]!==void 0&&(s=!!n[qf]);var u=ZI(e),c=ex(i,e,u,s);t(e,c);var f=!!$u&&!!a[V_];f&&n&&(f=!!n[V_]),nx(i,o,e,u,f!==!1)}var Wf,Jf,mi,Qf,Zf,B_,Ss,QI,j_,Wu,cE,oE,K_,$f,aE,k_,qf,V_,W_,$u,sE,uE,z_,Gr=O(()=>{me();Jf="constructor",mi="prototype",Qf="function",Zf="_dynInstFuncs",B_="_isDynProxy",Ss="_dynClass",QI="_dynCls$",j_="_dynInstChk",Wu=j_,cE="_dfOpts",oE="_unknown_",K_="__proto__",$f="_dyn"+K_,aE="__dynProto$Gbl",k_="_dynInstProto",qf="useBaseInst",V_="setInstFuncs",W_=Object,$u=W_.getPrototypeOf,sE=W_.getOwnPropertyNames,uE=pt(),z_=uE[aE]||(uE[aE]={o:(Wf={},Wf[V_]=!0,Wf[qf]=!0,Wf),n:1e3});be[cE]=z_.o});var J_,fE=O(()=>{"use strict";J_=100});var lr,Q_,qu=O(()=>{me();lr=jg,Q_=Vg});var pn,ox,lE=O(()=>{qu();pn=lr({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),ox=lr({Unknown:0,NonRetryableStatus:1,CleanStorage:2,MaxInStorageTimeExceeded:3})});var Ht,Z_=O(()=>{qu();Ht=lr({NONE:0,PENDING:3,INACTIVE:1,ACTIVE:2})});var xt,Xi,X,aa,sa,Ns,hi,mn,hn,je,Ji,De,Yn,tl,gi,Ei,Un,Ts,Ds,bt,ep,nl,ua,Xu,Qi,Br,ys,Zi,Or,il,rp,eo,tp,Pt,Ju,ca,ol,Fn,kt,Is,Mn,gn,At,ro,fa,Gt,to,al,Qu,Qt,sl,En,np,Ct,Zu,la,ip,op,ec,no,da,Sn,ul,ap,xs,sp,cl,va,up,bs,Ps,io,fl,He=O(()=>{xt="toLowerCase",Xi="blkVal",X="length",aa="rdOnly",sa="notify",Ns="warnToConsole",hi="throwInternal",mn="setDf",hn="watch",je="logger",Ji="apply",De="push",Yn="splice",tl="hdlr",gi="cancel",Ei="initialize",Un="identifier",Ts="removeNotificationListener",Ds="addNotificationListener",bt="isInitialized",ep="instrumentationKey",nl="INACTIVE",ua="value",Xu="getNotifyMgr",Qi="getPlugin",Br="name",ys="iKey",Zi="time",Or="processNext",il="getProcessTelContext",rp="pollInternalLogs",eo="enabled",tp="stopPollingInternalLogs",Pt="unload",Ju="onComplete",ca="version",ol="loggingLevelConsole",Fn="createNew",kt="teardown",Is="messageId",Mn="message",gn="isAsync",At="diagLog",ro="_doTeardown",fa="update",Gt="getNext",to="setNextPlugin",al="protocol",Qu="userAgent",Qt="split",sl="nodeType",En="replace",np="logInternalMessage",Ct="type",Zu="handler",la="status",ip="getResponseHeader",op="getAllResponseHeaders",ec="isChildEvt",no="data",da="getCtx",Sn="setCtx",ul="complete",ap="itemsReceived",xs="urlString",sp="sendPOST",cl="headers",va="timeout",up="setRequestHeader",bs="traceId",Ps="spanId",io="traceFlags",fl="getAttribute"});function dE(r,e){cp||(cp=Y_("AggregationError",function(n,i){i[X]>1&&(n.errors=i[1])}));var t=r||"One or more errors occurred.";throw R(e,function(n,i){t+=`
`.concat(i," > ").concat(te(n))}),new cp(t,e||[])}var cp,vE=O(()=>{me();He()});function Bt(r,e){return hE(r,function(t){return e?e({status:"fulfilled",rejected:!1,value:t}):t},function(t){return e?e({status:hp,rejected:!0,reason:t}):t})}function hE(r,e,t,n){var i=r;try{if(_t(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&&ax(i,n)}return i}function ax(r,e){var t=r;return e&&(_t(r)?r.finally?t=r.finally(e):t=r.then(function(n){return e(),n},function(n){throw e(),n}):e()),t}function sx(r,e,t,n){fp=fp||{toString:function(){return"[[PromiseState]]"}},lp=lp||{toString:function(){return"[[PromiseResult]]"}},dp=dp||{toString:function(){return"[[PromiseIsHandled]]"}};var i={};i[fp]={get:e},i[lp]={get:t},i[dp]={get:n},b_(r,i)}function ux(r){var e;return r&&r.createEvent&&(e=r.createEvent("Event")),!!e&&e.initEvent}function cx(r,e,t,n){var i=fr();!ll&&(ll=Tt(!!Ee(ux,[i]).v));var o=ll.v?i.createEvent("Event"):n?new Event(e):{};if(t&&t(o),ll.v&&o.initEvent(e,!1,!0),o&&r[pE])r[pE](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 mE(r){return ue(r)?r.toString():te(r)}function SE(r,e,t){var n=hs(arguments,3),i=0,o=!1,a,s=[],u=lx++,c=rc.length>0?rc[rc.length-1]:void 0,f=!1,d=null,v;function m(Y,B){try{rc.push(u),f=!0,d&&d.cancel(),d=null;var $=r(function(ie,z){s.push(function(){try{var G=i===2?Y:B,J=Te(G)?a:ue(G)?G(a):G;_t(J)?J.then(ie,z):G?ie(J):i===3?z(J):ie(J)}catch(ce){z(ce)}}),o&&b()},n);return $}finally{rc.pop()}}function _(Y){return m(void 0,Y)}function N(Y){var B=Y,$=Y;return ue(Y)&&(B=function(ie){return Y&&Y(),ie},$=function(ie){throw Y&&Y(),ie}),m(B,$)}function h(){return gE[i]}function b(){if(s.length>0){var Y=s.slice();s=[],f=!0,d&&d.cancel(),d=null,e(Y)}}function T(Y,B){return function($){if(i===B){if(Y===2&&_t($)){i=1,$.then(T(2,1),T(3,1));return}i=Y,o=!0,a=$,b(),!f&&Y===3&&!d&&(d=Mt(I,dx))}}}function I(){if(!f)if(f=!0,$g())process.emit(EE,a,v);else{var Y=Nr()||pt();!vp&&(vp=Tt(Ee(le,[dl+"RejectionEvent"]).v)),cx(Y,fx,function(B){return we(B,"promise",{g:function(){return v}}),B.reason=a,B},!!vp.v)}}v={then:m,catch:_,finally:N},Nt(v,"state",{get:h}),_E&&sx(v,h,function(){return Mf(a)},function(){return f}),qg()&&(v[Vu(11)]="IPromise");function w(){return"IPromise"+(_E?"["+u+(Te(c)?"":":"+c)+"]":"")+" "+h()+(o?" - "+mE(a):"")}return v.toString=w,(function(){ue(t)||st(dl+": executor is not a function - "+mE(t));var B=T(3,0);try{t.call(v,T(2,0),B)}catch($){B($)}})(),v}function vx(r){return function(e){var t=hs(arguments,1);return r(function(n,i){try{var o=[],a=1;zf(e,function(s,u){s&&(a++,hE(s,function(c){o[u]=c,--a===0&&n(o)},i))}),a--,a===0&&n(o)}catch(s){i(s)}},t)}}function _x(r){return Tt(function(e){var t=hs(arguments,1);return r(function(n,i){var o=[],a=1;function s(u,c){a++,Bt(u,function(f){f.rejected?o[c]={status:hp,reason:f.reason}:o[c]={status:"fulfilled",value:f.value},--a===0&&n(o)})}try{re(e)?R(e,s):O_(e)?zf(e,s):st("Input is not an iterable"),a--,a===0&&n(o)}catch(u){i(u)}},t)})}function NE(r){R(r,function(e){try{e()}catch{}})}function px(r){var e=Jr(r)?r:0;return function(t){Mt(function(){NE(t)},e)}}function TE(r,e){return SE(TE,px(e),r,e)}function mx(r,e){!_p&&(_p=Tt(Ee(le,[dl]).v||null));var t=_p.v;if(!t)return TE(r);ue(r)||st(dl+": executor is not a function - "+te(r));var n=0;function i(){return gE[n]}var o=new t(function(a,s){function u(f){n=2,a(f)}function c(f){n=3,s(f)}r(u,c)});return Nt(o,"state",{get:i}),o}function tc(r){return SE(tc,NE,r)}function DE(r,e){return!pp&&(pp=_x(tc)),pp.v(r,e)}function Zt(r,e){return!mp&&(mp=Tt(mx)),mp.v.call(this,r,e)}var dl,hp,fp,lp,dp,_E,gE,pE,ll,EE,fx,rc,lx,dx,vp,_p,pp,mp,yE,xA,_a=O(()=>{me();dl="Promise",hp="rejected";_E=!1;gE=["pending","resolving","resolved",hp],pE="dispatchEvent";EE="unhandledRejection",fx=EE.toLowerCase(),rc=[],lx=0,dx=10;yE=vx(Zt),xA=Vu(11)});var jt,he,oo,or,vl,nc,Si,pa,Rt,ma,As,ao,Cs,Hn,_l,pl,ml,Rs,hl,gl,IE,Tr=O(()=>{jt=void 0,he="",oo="channels",or="core",vl="createPerfMgr",nc="disabled",Si="extensionConfig",pa="extensions",Rt="processTelemetry",ma="priority",As="eventsSent",ao="eventsDiscarded",Cs="eventsSendRequest",Hn="perfEvent",_l="offlineEventsStored",pl="offlineBatchSent",ml="offlineBatchDrop",Rs="getPerfMgr",hl="domain",gl="path",IE="Not dynamic - "});function en(r){return!F(r)}function ha(r){var e=r;return e&&Se(e)&&(e=e[En](gx,function(t,n){return n.toUpperCase()}),e=e[En](Ex,"_"),e=e[En](Sx,function(t,n){return"_"+n})),e}function hr(r,e){return r&&e?Dt(r,e)!==-1:!1}function Vt(r){return r&&r.toISOString()||""}function We(r){return ea(r)?r[Br]:he}function rn(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 ic(r,e,t){var n;return r?(n=r[e],!n&&F(n)&&(n=Te(t)?{}:t,r[e]=n)):n=Te(t)?{}:t,n}function bE(r,e){var t=null,n=null;return ue(r)?t=r:n=r,function(){var i=arguments;if(t&&(n=t()),n)return n[e][Ji](n,i)}}function gp(r,e,t){if(r&&e&&nr(r)&&nr(e)){var n=function(o){if(Se(o)){var a=e[o];ue(a)?(!t||t(o,!0,e,r))&&(r[o]=bE(e,o)):(!t||t(o,!1,e,r))&&(qt(r,o)&&delete r[o],we(r,o,{g:function(){return e[o]},s:function(s){e[o]=s}}))}};for(var i in e)n(i)}return r}function Ni(r,e,t,n,i){r&&e&&t&&(i!==!1||Te(r[e]))&&(r[e]=bE(t,n))}function zt(r,e,t,n){return r&&e&&nr(r)&&re(t)&&R(t,function(i){Se(i)&&Ni(r,i,e,i,n)}),r}function Ep(r){return(function(){function e(){var t=this;r&&oe(r,function(n,i){t[n]=i})}return e})()}function wt(r){return r&&_s&&(r=fs(_s({},r))),r}function El(r,e,t,n,i,o){var a=arguments,s=a[0]||{},u=a[X],c=!1,f=1;for(u>0&&wn(s)&&(c=s,s=a[f]||{},f++),nr(s)||(s={});f<u;f++){var d=a[f],v=re(d),m=nr(d);for(var _ in d){var N=v&&_ in d||m&&qt(d,_);if(N){var h=d[_],b=void 0;if(c&&h&&((b=re(h))||Zr(h))){var T=s[_];b?re(T)||(T=[]):Zr(T)||(T={}),h=El(c,T,h)}h!==void 0&&(s[_]=h)}}}return s}function Nn(r){try{return r.responseText}catch{}return null}function ga(r,e){return r?"XDomainRequest,Response:"+Nn(r)||"":e}function Ti(r,e){return r?"XMLHttpRequest,Status:"+r[la]+",Response:"+Nn(r)||r.response||"":e}function Di(r,e){return e&&(Jr(e)?r=[e].concat(r):re(e)&&(r=e.concat(r))),r}function Sp(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,f){try{u[c]=f}catch{}}var s=new XMLHttpRequest;return n&&a(s,Nx,n),t&&a(s,xE,t),s.open(r,e,!i),t&&a(s,xE,t),!i&&o&&a(s,Tx,o),s}function Sl(r){var e={};if(Se(r)){var t=Ue(r)[Qt](/[\r\n]+/);R(t,function(n){if(n){var i=n.indexOf(": ");if(i!==-1){var o=Ue(n.substring(0,i))[xt](),a=Ue(n.substring(i+1));e[o]=a}else e[Ue(n)]=1}})}return e}function ws(r,e,t){if(!r[t]&&e&&e[ip]){var n=e[ip](t);n&&(r[t]=Ue(n))}return r}function yi(r,e){var t={};return r[op]?t=Sl(r[op]()):e&&(t=ws(t,r,Ix),t=ws(t,r,Dx),t=ws(t,r,yx)),t}var hx,gx,Ex,Sx,OA,Nx,xE,Tx,Dx,yx,Ix,kn=O(()=>{It();me();He();Tr();hx="getPrototypeOf",gx=/-([a-z])/g,Ex=/([^\w\d_$])/g,Sx=/^(\d+[\w\d_$])/,OA=Object[hx];Nx="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",xE="withCredentials",Tx="timeout";Dx="kill-duration",yx="kill-duration-seconds",Ix="time-delta-millis"});function RE(r,e){var t=!1;if(r){try{if(t=e in r,!t){var n=r[fn];n&&(t=e in n)}}catch{}if(!t)try{var i=new r;t=!Te(i[e])}catch{}}return t}function xp(r){CE=r}function Ea(r){if(r&&CE){var e=le("__mockLocation");if(e)return e}return typeof location===vi&&location?location:le(bx)}function oc(){return typeof console!==Cn?console:le(Px)}function Gn(){return!!(typeof JSON===vi&&JSON||le(PE)!==null)}function et(){return Gn()?JSON||le(PE):null}function ac(){return le(Ax)}function sc(){return le(Cx)}function so(){var r=wr();return r&&r.product?r.product===Rx:!1}function uo(){var r=wr();if(r&&(r[Qu]!==Tp||Np===null)){Tp=r[Qu];var e=(Tp||he)[xt]();Np=hr(e,yp)||hr(e,Ip)}return Np}function uc(r){if(r===void 0&&(r=null),!r){var e=wr()||{};r=e?(e.userAgent||he)[xt]():he}var t=(r||he)[xt]();if(hr(t,yp)){var n=fr()||{};return Math.max(parseInt(t[Qt](yp)[1]),n[xx]||0)}else if(hr(t,Ip)){var i=parseInt(t[Qt](Ip)[1]);if(i)return i+4}return null}function Ot(r){return(Dp===null||r===!1)&&(Dp=ju()&&!!wr().sendBeacon),Dp}function Ii(r){var e=!1;try{e=!!le("fetch");var t=le("Request");e&&r&&t&&(e=RE(t,"keepalive"))}catch{}return e}function cc(){return Os===null&&(Os=typeof XDomainRequest!==Cn,Os&&Ls()&&(Os=Os&&!RE(le(AE),"withCredentials"))),Os}function Ls(){var r=!1;try{var e=le(AE);r=!!e}catch{}return r}function wE(r,e){if(r)for(var t=0;t<r[X];t++){var n=r[t];if(n[Br]&&n[Br]===e)return n}return{}}function bp(r){var e=fr();return e&&r?wE(e.querySelectorAll("meta"),r).content:null}function Pp(r){var e,t=qi();if(t){var n=t.getEntriesByType("navigation")||[];e=wE((n[X]>0?n[0]:{}).serverTiming,r).description}return e}var xx,bx,Px,PE,Ax,Cx,Rx,yp,Ip,AE,Np,Tp,CE,Os,Dp,co=O(()=>{"use strict";It();me();He();kn();Tr();xx="documentMode",bx="location",Px="console",PE="JSON",Ax="crypto",Cx="msCrypto",Rx="ReactNative",yp="msie",Ip="trident/",AE="XMLHttpRequest",Np=null,Tp=null,CE=!1,Os=null,Dp=null});function wx(r){r<0&&(r>>>=0),fc=LE+r&fo,lc=YE-r&fo,UE=!0}function Ox(){try{var r=ir()&2147483647;wx((Math.random()*OE^r)+r)}catch{}}function dc(r){return r>0?Math.floor(xi()/fo*(r+1))>>>0:0}function xi(r){var e=0,t=ac()||sc();return t&&t.getRandomValues&&(e=t.getRandomValues(new Uint32Array(1))[0]&fo),e===0&&uo()&&(UE||Ox(),e=FE()&fo),e===0&&(e=Math.floor(OE*Math.random()|0)),r||(e>>>=0),e}function FE(r){lc=36969*(lc&65535)+(lc>>16)&fo,fc=18e3*(fc&65535)+(fc>>16)&fo;var e=(lc<<16)+(fc&65535)>>>0&fo|0;return r||(e>>>=0),e}function vc(r){r===void 0&&(r=22);for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=xi()>>>0,n=0,i=he;i[X]<r;)n++,i+=e.charAt(t&63),t>>>=6,n===5&&(t=(xi()<<2&4294967295|t&3)>>>0,n=0);return i}var OE,fo,LE,YE,UE,fc,lc,Nl=O(()=>{me();He();co();Tr();OE=4294967296,fo=4294967295,LE=123456789,YE=987654321,UE=!1,fc=LE,lc=YE});function HE(r){return r[sl]===1||r[sl]===9||!+r[sl]}function Ux(r,e){var t=e[r.id];if(!t){t={};try{HE(e)&&we(e,r.id,{e:!1,v:t})}catch{}}return t}function rt(r,e){return e===void 0&&(e=!1),ha(r+Yx+++(e?"."+ME:he)+Lx)}function Tl(r){var e={id:rt("_aiData-"+(r||he)+"."+ME),accept:function(t){return HE(t)},get:function(t,n,i,o){var a=t[e.id];return a?a[ha(n)]:(o&&(a=Ux(e,t),a[ha(n)]=i),i)},kill:function(t,n){if(t&&t[n])try{delete t[n]}catch{}}};return e}var ME,Lx,Yx,Ys=O(()=>{me();He();kn();Tr();Nl();ME="3.3.4",Lx="."+vc(6),Yx=0});function Dl(r){return r&&nr(r)&&(r.isVal||r.fb||qt(r,"v")||qt(r,"mrg")||qt(r,"ref")||r.set)}function kE(r,e,t){var n,i=t.dfVal||Ug;if(e&&t.fb){var o=t.fb;re(o)||(o=[o]);for(var a=0;a<o[X];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,pr(s),u)),i(n))break}}return!i(n)&&i(t.v)&&(n=t.v),n}function Ap(r,e,t){var n=t;if(t&&Dl(t)&&(n=kE(r,e,t)),n){Dl(n)&&(n=Ap(r,e,n));var i;re(n)?(i=[],i[X]=n[X]):Zr(n)&&(i={}),i&&(oe(n,function(o,a){a&&Dl(a)&&(a=Ap(r,e,a)),i[o]=a}),n=i)}return n}function _c(r,e,t,n){var i,o,a,s=n,u,c,f,d;Dl(s)?(i=s.isVal,o=s.set,f=s[aa],d=s[Xi],u=s.mrg,c=s.ref,!c&&Te(c)&&(c=!!u),a=kE(r,e,s)):a=n,d&&r[Xi](e,t);var v,m=!0,_=e[t];(_||!F(_))&&(v=_,m=!1,i&&v!==a&&!i(v)&&(v=a,m=!0),o&&(v=o(v,a,e),m=v===a)),m?a?v=Ap(r,e,a):v=a:(Zr(v)||re(a))&&u&&a&&(Zr(a)||re(a))&&oe(a,function(N,h){_c(r,v,N,h)}),r.set(e,t,v),c&&r.ref(e,t),f&&r[aa](e,t)}var Cp=O(()=>{me();He()});function Rp(r){if(r){var e;if(re(r)?(e=[],e[X]=r[X]):Zr(r)&&(e={}),e)return oe(r,function(t,n){e[t]=Rp(n)}),e}return r}function pc(r){if(r){var e=r[Bn]||r;if(e.cfg&&(e.cfg===r||e.cfg[Bn]===e))return e}return null}function mc(r){if(r&&(Zr(r)||re(r)))try{r[GE]=!0}catch{}return r}function wp(r){if(r)try{r[BE]=!0}catch{}return r}function yl(r,e,t){var n=!1;return t&&!r[e.blkVal]&&(n=t[BE],!n&&!t[GE]&&(n=Zr(t)||re(t))),n}function Il(r){st("InvalidAccess:"+r)}var Bn,GE,BE,xl=O(()=>{me();He();Bn=Vf("[[ai_dynCfg_1]]"),GE=Vf("[[ai_blkDynCfg_1]]"),BE=Vf("[[ai_frcDynCfg_1]]")});function Mx(r,e,t){re(e)&&R(Fx,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[Ji](this,o);return hc(r,e,t,"Patching"),s}})}function bl(r,e){var t=Jg(r,e);return t&&t.get}function Hx(r,e,t,n){var i={n:t,h:[],trk:function(c){c&&c.fn&&(Oe(i.h,c)===-1&&i.h[De](c),r.trk(c,i))},clr:function(c){var f=Oe(i.h,c);f!==-1&&i.h[Yn](f,1)}},o=!0,a=!1;function s(){o&&(a=a||yl(s,r,n),n&&!n[Bn]&&a&&(n=hc(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&&Il("["+t+"] is read-only:"+te(e)),o&&(a=a||yl(s,r,n),o=!1);var f=a&&s[r.rf];if(a)if(f){oe(n,function(v){n[v]=c?c[v]:jt});try{oe(c,function(v,m){gc(r,n,v,m)}),c=n}catch(v){Us((r.hdlr||{})[je],t,"Assigning",v),a=!1}}else n&&n[Bn]&&oe(n,function(v){var m=bl(n,v);if(m){var _=m[r.prop];_&&_.chng()}});if(c!==n){var d=c&&yl(s,r,c);!f&&d&&(c=hc(r,c,t,"Converting")),n=c,a=d}r.add(i)}}we(e,i.n,{g:s,s:u})}function gc(r,e,t,n){if(e){var i=bl(e,t),o=i&&!!i[r.prop];o?e[t]=n:Hx(r,e,t,n)}return e}function Pl(r,e,t,n){if(e){var i=bl(e,t),o=i&&!!i[r.prop],a=n&&n[0],s=n&&n[1],u=n&&n[2];if(!o){if(u)try{mc(e)}catch(c){Us((r.hdlr||{})[je],t,"Blocking",c)}try{gc(r,e,t,e[t]),i=bl(e,t)}catch(c){Us((r.hdlr||{})[je],t,"State",c)}}a&&(i[r.rf]=a),s&&(i[r.ro]=s),u&&(i[r.blkVal]=!0)}return e}function hc(r,e,t,n){try{oe(e,function(i,o){gc(r,e,i,o)}),e[Bn]||(Nt(e,Bn,{get:function(){return r[tl]}}),Mx(r,e,t))}catch(i){Us((r.hdlr||{})[je],t,n,i)}return e}var Fx,Us,jE=O(()=>{me();Tr();He();xl();Fx=["push","pop","shift","unshift","splice"],Us=function(r,e,t,n){r&&r[hi](3,108,"".concat(t," [").concat(e,"] failed - ")+te(n))}});function VE(r){var e,t=ms(Ec+"get"+r.uid+Sc),n=ms(Ec+"ro"+r.uid+Sc),i=ms(Ec+"rf"+r.uid+Sc),o=ms(Ec+"blkVal"+r.uid+Sc),a=ms(Ec+"dtl"+r.uid+Sc),s=null,u=null,c;function f(_,N){var h=c.act;try{c.act=_,_&&_[a]&&(R(_[a],function(T){T.clr(_)}),_[a]=[]),N({cfg:r.cfg,set:r.set.bind(r),setDf:r[mn].bind(r),ref:r.ref.bind(r),rdOnly:r[aa].bind(r)})}catch(T){var b=r[je];throw b&&b[hi](1,107,te(T)),T}finally{c.act=h||null}}function d(){if(s){var _=s;s=null,u&&u[gi](),u=null;var N=[];if(R(_,function(h){if(h&&(h[a]&&(R(h[a],function(b){b.clr(h)}),h[a]=null),h.fn))try{f(h,h.fn)}catch(b){N[De](b)}}),s)try{d()}catch(h){N[De](h)}N[X]>0&&dE("Watcher error(s): ",N)}}function v(_){if(_&&_.h[X]>0){s||(s=[]),u||(u=Mt(function(){u=null,d()},0));for(var N=0;N<_.h[X];N++){var h=_.h[N];h&&Oe(s,h)===-1&&s[De](h)}}}function m(_,N){if(_){var h=_[a]=_[a]||[];Oe(h,N)===-1&&h[De](N)}}return c=(e={prop:t,ro:n,rf:i},e[Xi]=o,e[tl]=r,e.add=v,e[sa]=d,e.use=f,e.trk=m,e),c}var Ec,Sc,zE=O(()=>{me();vE();He();Ec="[[ai_",Sc="]]"});function kx(r,e){var t={fn:e,rm:function(){t.fn=null,r=null,e=null}};return we(t,"toJSON",{v:function(){return"WatcherHandler"+(t.fn?"":"[X]")}}),r.use(t,e),t}function Gx(r,e,t){var n,i=pc(e);if(i)return i;var o=rt("dyncfg",!0),a=e&&t!==!1?e:Rp(e),s;function u(){s[sa]()}function c(b,T,I){try{b=gc(s,b,T,I)}catch(w){Us(r,T,"Setting value",w)}return b[T]}function f(b){return kx(s,b)}function d(b,T){s.use(null,function(I){var w=s.upd;try{Te(T)||(s.upd=T),b(I)}finally{s.upd=w}})}function v(b,T){var I;return Pl(s,b,T,(I={},I[0]=!0,I))[T]}function m(b,T){var I;return Pl(s,b,T,(I={},I[1]=!0,I))[T]}function _(b,T){var I;return Pl(s,b,T,(I={},I[2]=!0,I))[T]}function N(b,T){return T&&oe(T,function(I,w){_c(h,b,I,w)}),b}var h=(n={uid:null,cfg:a},n[je]=r,n[sa]=u,n.set=c,n[mn]=N,n[hn]=f,n.ref=v,n[aa]=m,n[Xi]=_,n._block=d,n);return we(h,"uid",{c:!1,e:!1,w:!1,v:o}),s=VE(h),hc(s,a,"config","Creating"),h}function Bx(r,e){r?(r[Ns](e),r[hi](2,108,e)):Il(e)}function Je(r,e,t,n){var i=Gx(t,r||{},n);return e&&i[mn](i.cfg,e),i}function Dr(r,e,t){var n=r[Bn]||r;return n.cfg&&(n.cfg===r||n.cfg[Bn]===n)?n[hn](e):(Bx(t,IE+te(r)),Je(r,null,t)[hn](e))}var lo=O(()=>{me();Ys();Tr();He();Cp();jE();zE();xl()});function bi(r,e){if(r&&r[Pt])return r[Pt](e)}function Al(r,e,t){var n;return t||(n=Zt(function(i){t=i})),r&&gs(r)>0?Bt(bi(r[0],e),function(){Al(hs(r,1),e,t)}):t(),n}var Op=O(()=>{_a();me();He()});var KE,Lp,Yp=O(()=>{KE=500,Lp="Microsoft_ApplicationInsights_BypassAjaxInstrumentation"});function jx(r,e,t){return!r&&F(r)?e:wn(r)?r:pr(r)[xt]()==="true"}function Up(r){return{mrg:!0,v:r}}function Fs(r,e,t){return{fb:t,isVal:r,v:e}}function tn(r,e){return{fb:e,set:jx,v:!!r}}var Fp=O(()=>{me();He()});function Vx(r,e){return function(){var t=arguments,n=Hp(e);if(n){var i=n.listener;i&&i[r]&&i[r][Ji](i,t)}}}function zx(){var r=le("Microsoft");return r&&(Rl=r.ApplicationInsights),Rl}function Hp(r){var e=Rl;return!e&&r.disableDbgExt!==!0&&(e=Rl||zx()),e?e.ChromeDbgExt:null}function WE(r){if(!Cl){Cl={};for(var e=0;e<Mp[X];e++)Cl[Mp[e]]=Vx(Mp[e],r)}return Cl}var Mp,Rl,Cl,kp=O(()=>{me();He();Tr();Mp=[As,ao,Cs,Hn],Rl=null});function $E(r){return r?'"'+r[En](/\"/g,he)+'"':he}function Gp(r,e){var t=oc();if(t){var n="log";t[r]&&(n=r),ue(t[n])&&t[n](e)}}function Tn(r,e){return(r||{})[je]||new vo(e)}function Bp(r){return r||new vo}function k(r,e,t,n,i,o){o===void 0&&(o=!1),Bp(r)[hi](e,t,n,i,o)}function mt(r,e){Bp(r)[Ns](e)}function jp(r,e,t){Bp(r)[np](e,t)}var Ms,qE,Kx,Wx,$x,qx,Xx,Sa,vo,Dn=O(()=>{"use strict";Gr();me();lo();He();kp();co();Tr();qE="warnToConsole",Kx="AI (Internal): ",Wx="AI: ",$x="AITR_",qx={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},Xx=(Ms={},Ms[0]=null,Ms[1]="errorToConsole",Ms[2]=qE,Ms[3]="debugToConsole",Ms);Sa=(function(){function r(e,t,n,i){n===void 0&&(n=!1);var o=this;o[Is]=e,o[Mn]=(n?Wx:Kx)+e;var a=he;Gn()&&(a=et().stringify(i));var s=(t?" message:"+$E(t):he)+(i?" props:"+$E(a):he);o[Mn]+=s}return r.dataType="MessageData",r})();vo=(function(){function r(e){this.identifier="DiagnosticLogger",this.queue=[];var t=0,n={},i,o,a,s,u;be(r,this,function(c){u=d(e||{}),c.consoleLoggingLevel=function(){return i},c[hi]=function(_,N,h,b,T){T===void 0&&(T=!1);var I=new Sa(N,h,T,b);if(s)throw te(I);var w=Xx[_]||qE;if(Te(I[Mn]))m("throw"+(_===1?"Critical":"Warning"),I);else{if(T){var Y=+I[Is];!n[Y]&&i>=_&&(c[w](I[Mn]),n[Y]=!0)}else i>=_&&c[w](I[Mn]);f(_,I)}},c.debugToConsole=function(_){Gp("debug",_),m("warning",_)},c[Ns]=function(_){Gp("warn",_),m("warning",_)},c.errorToConsole=function(_){Gp("error",_),m("error",_)},c.resetInternalMessageCount=function(){t=0,n={}},c[np]=f,c[Pt]=function(_){u&&u.rm(),u=null};function f(_,N){if(!v()){var h=!0,b=$x+N[Is];if(n[b]?h=!1:n[b]=!0,h&&(_<=o&&(c.queue[De](N),t++,m(_===1?"error":"warn",N)),t===a)){var T="Internal events throttle limit per PageView reached for this app.",I=new Sa(23,T,!1);c.queue[De](I),_===1?c.errorToConsole(T):c[Ns](T)}}}function d(_){return Dr(Je(_,qx,c).cfg,function(N){var h=N.cfg;i=h[ol],o=h.loggingLevelTelemetry,a=h.maxMessageLimit,s=h.enableDebug})}function v(){return t>=a}function m(_,N){var h=Hp(e||{});h&&h[At]&&h[At](_,N)}})}return r.__ieDyn=1,r})()});function qp(){!jn&&(jn=C_(function(){return fr()}))}function Qx(r,e){var t=Pi[_o]||Ll[_o];return t||(t=Pi[_o]=Pi(r,e),Ll[_o]=t),t}function Ol(r){return r?r.isEnabled():!0}function oS(r,e){return e&&r&&re(r.ignoreCookies)?Oe(r.ignoreCookies,e)!==-1:!1}function Zx(r,e){return e&&r&&re(r.blockedCookies)&&Oe(r.blockedCookies,e)!==-1?!0:oS(r,e)}function rS(r,e){var t=e[eo];if(F(t)){var n=void 0;Te(r[QE])||(n=!r[QE]),Te(r[Wp])||(n=!r[Wp]),t=n}return t}function Xp(r,e){var t;if(r)t=r.getCookieMgr();else if(e){var n=e.cookieCfg;n&&n[_o]?t=n[_o]:t=Pi(e)}return t||(t=Qx(e,(r||{})[je])),t}function Pi(r,e){var t,n,i,o,a,s,u,c,f;r=Je(r||Ll,null,e).cfg,a=Dr(r,function(v){v[mn](v.cfg,Jx),n=v.ref(v.cfg,"cookieCfg"),i=n[gl]||"/",o=n[hl],s=rS(r,n)!==!1,u=n.getCookie||eb,c=n.setCookie||iS,f=n.delCookie||iS},e);var d=(t={isEnabled:function(){var v=rS(r,n)!==!1&&s&&Hs(e),m=Ll[_o];return v&&m&&d!==m&&(v=Ol(m)),v},setEnabled:function(v){s=v!==!1,n[eo]=v},set:function(v,m,_,N,h){var b=!1;if(Ol(d)&&!Zx(n,v)){var T={},I=Ue(m||he),w=Dt(I,";");if(w!==-1&&(I=Ue(ta(m,w)),T=aS(Rr(m,w+1))),rn(T,hl,N||o,dn,Te),!F(_)){var Y=uo();if(Te(T[zp])){var B=ir(),$=B+_*1e3;if($>0){var ie=new Date;ie.setTime($),rn(T,zp,tS(ie,Y?XE:JE)||tS(ie,Y?XE:JE)||he,dn)}}Y||rn(T,"max-age",he+_,null,Te)}var z=Ea();z&&z[al]==="https:"&&(rn(T,"secure",null,null,Te),Kp===null&&(Kp=!Yl((wr()||{})[Qu])),Kp&&rn(T,"SameSite","None",null,Te)),rn(T,gl,h||i,null,Te),c(v,nS(I,T)),b=!0}return b},get:function(v){var m=he;return Ol(d)&&!oS(n,v)&&(m=u(v)),m},del:function(v,m){var _=!1;return Ol(d)&&(_=d.purge(v,m)),_},purge:function(v,m){var _,N=!1;if(Hs(e)){var h=(_={},_[gl]=m||"/",_[zp]="Thu, 01 Jan 1970 00:00:01 GMT",_);uo()||(h["max-age"]="0"),f(v,nS(he,h)),N=!0}return N}},t[Pt]=function(v){a&&a.rm(),a=null},t);return d[_o]=d,d}function Hs(r){if(wl===null){wl=!1,!jn&&qp();try{var e=jn.v||{};wl=e[$p]!==void 0}catch(t){k(r,2,68,"Cannot access document.cookie - "+We(t),{exception:te(t)})}}return wl}function aS(r){var e={};if(r&&r[X]){var t=Ue(r)[Qt](";");R(t,function(n){if(n=Ue(n||he),n){var i=Dt(n,"=");i===-1?e[n]=null:e[Ue(ta(n,i))]=Ue(Rr(n,i+1))}})}return e}function tS(r,e){return ue(r[e])?r[e]():null}function nS(r,e){var t=r||he;return oe(e,function(n,i){t+="; "+n+(F(i)?he:"="+i)}),t}function eb(r){var e=he;if(!jn&&qp(),jn.v){var t=jn.v[$p]||he;ZE!==t&&(eS=aS(t),ZE=t),e=Ue(eS[r]||he)}return e}function iS(r,e){!jn&&qp(),jn.v&&(jn.v[$p]=r+"="+e)}function Yl(r){return Se(r)?!!(hr(r,"CPU iPhone OS 12")||hr(r,"iPad; CPU OS 12")||hr(r,"Macintosh; Intel Mac OS X 10_14")&&hr(r,"Version/")&&hr(r,"Safari")||hr(r,"Macintosh; Intel Mac OS X 10_14")&&ia(r,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||hr(r,"Chrome/5")||hr(r,"Chrome/6")||hr(r,"UnrealEngine")&&!hr(r,"Chrome")||hr(r,"UCBrowser/12")||hr(r,"UCBrowser/11")):!1}var Vp,Na,XE,JE,$p,zp,QE,Wp,_o,wl,Kp,ZE,jn,eS,Ll,Jx,Jp=O(()=>{me();Fp();lo();He();Dn();co();kn();Tr();XE="toGMTString",JE="toUTCString",$p="cookie",zp="expires",QE="isCookieUseDisabled",Wp="disableCookiesUsage",_o="_ckMgr",wl=null,Kp=null,ZE=null,eS={},Ll={},Jx=(Vp={cookieCfg:Up((Na={},Na[hl]={fb:"cookieDomain",dfVal:en},Na.path={fb:"cookiePath",dfVal:en},Na.enabled=jt,Na.ignoreCookies=jt,Na.blockedCookies=jt,Na)),cookieDomain:jt,cookiePath:jt},Vp[Wp]=jt,Vp)});function tb(r){r.h=null;var e=r.cb;r.cb=[],R(e,function(t){Ee(t.fn,[t.arg])})}function po(r,e,t,n){R(r,function(i){i&&i[e]&&(t?(t.cb[De]({fn:n,arg:i}),t.h=t.h||Mt(tb,0,t)):Ee(n,[i]))})}var rb,Nc,Qp=O(()=>{Gr();_a();me();lo();He();Tr();rb={perfEvtsSendAll:!1};Nc=(function(){function r(e){this.listeners=[];var t,n,i=[],o={h:null,cb:[]},a=Je(e,rb);n=a[hn](function(s){t=!!s.cfg.perfEvtsSendAll}),be(r,this,function(s){we(s,"listeners",{g:function(){return i}}),s[Ds]=function(u){i[De](u)},s[Ts]=function(u){for(var c=Oe(i,u);c>-1;)i[Yn](c,1),c=Oe(i,u)},s[As]=function(u){po(i,As,o,function(c){c[As](u)})},s[ao]=function(u,c){po(i,ao,o,function(f){f[ao](u,c)})},s[Cs]=function(u,c){po(i,Cs,c?o:null,function(f){f[Cs](u,c)})},s[Hn]=function(u){u&&(t||!u[ec]())&&po(i,Hn,null,function(c){u[gn]?Mt(function(){return c[Hn](u)},0):c[Hn](u)})},s[_l]=function(u){u&&u[X]&&po(i,_l,o,function(c){c[_l](u)})},s[pl]=function(u){u&&u[no]&&po(i,pl,o,function(c){c[pl](u)})},s[ml]=function(u,c){if(u>0){var f=c||0;po(i,ml,o,function(d){d[ml](u,f)})}},s[Pt]=function(u){var c=function(){n&&n.rm(),n=null,i=[],o.h&&o.h[gi](),o.h=null,o.cb=[]},f;if(po(i,"unload",null,function(d){var v=d[Pt](u);v&&(f||(f=[]),f[De](v))}),f)return Zt(function(d){return Bt(yE(f),function(){c(),d()})});c()}})}return r.__ieDyn=1,r})()});function dr(r,e,t,n,i){if(r){var o=r;if(o[Rs]&&(o=o[Rs]()),o){var a=void 0,s=o[da](Zp);try{if(a=o.create(e(),n,i),a){if(s&&a[Sn]&&(a[Sn](Ta[em],s),s[da]&&s[Sn])){var u=s[da](Ta[Tc]);u||(u=[],s[Sn](Ta[Tc],u)),u[De](a)}return o[Sn](Zp,a),t(a)}}catch(c){a&&a[Sn]&&a[Sn]("exception",c)}finally{a&&o.fire(a),o[Sn](Zp,s)}}}return t()}function rm(){return nb}var ks,em,Tc,nb,Ta,Dc,Zp,Ul=O(()=>{Gr();me();He();Tr();ks="ctx",em="ParentContextKey",Tc="ChildrenContextKey",nb=null,Ta=(function(){function r(e,t,n){var i=this;if(i.start=ir(),i[Br]=e,i[gn]=n,i[ec]=function(){return!1},ue(t)){var o;we(i,"payload",{g:function(){return!o&&ue(t)&&(o=t(),t=null),o}})}i[da]=function(a){return a?a===r[em]||a===r[Tc]?i[a]:(i[ks]||{})[a]:null},i[Sn]=function(a,s){if(a)if(a===r[em])i[a]||(i[ec]=function(){return!0}),i[a]=s;else if(a===r[Tc])i[a]=s;else{var u=i[ks]=i[ks]||{};u[a]=s}},i[ul]=function(){var a=0,s=i[da](r[Tc]);if(re(s))for(var u=0;u<s[X];u++){var c=s[u];c&&(a+=c[Zi])}i[Zi]=ir()-i.start,i.exTime=i[Zi]-a,i[ul]=function(){}}}return r.ParentContextKey="parent",r.ChildrenContextKey="childEvts",r})(),Dc=(function(){function r(e){this.ctx={},be(r,this,function(t){t.create=function(n,i,o){return new Ta(n,i,o)},t.fire=function(n){n&&(n[ul](),e&&ue(e[Hn])&&e[Hn](n))},t[Sn]=function(n,i){if(n){var o=t[ks]=t[ks]||{};o[n]=i}},t[da]=function(n){return(t[ks]||{})[n]}})}return r.__ieDyn=1,r})(),Zp="CoreUtils.doPerf"});function yc(){var r=Da();return Rr(r,0,8)+"-"+Rr(r,8,12)+"-"+Rr(r,12,16)+"-"+Rr(r,16,20)+"-"+Rr(r,20)}function Da(){for(var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],e=he,t,n=0;n<4;n++)t=xi(),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+(xi()&3)|0];return Ln(e,0,8)+Ln(e,9,4)+"4"+Ln(e,13,3)+i+Ln(e,16,3)+Ln(e,19,12)}var tm=O(()=>{"use strict";me();Tr();Nl()});function Ai(r,e,t){return r&&r[X]===e&&r!==t?!!r.match(/^[\da-f]*$/i):!1}function uS(r,e,t){return Ai(r,e)?r:t}function cS(r){(isNaN(r)||r<0||r>255)&&(r=1);for(var e=r.toString(16);e[X]<2;)e="0"+e;return e}function Ic(r,e,t,n){var i;return i={},i[ca]=Ai(n,2,im)?n:nm,i[bs]=Vn(r)?r:Da(),i[Ps]=zn(e)?e:ta(Da(),16),i.traceFlags=t>=0&&t<=255?t:1,i}function ya(r,e){var t;if(!r||(re(r)&&(r=r[0]||""),!r||!Se(r)||r[X]>8192))return null;if(r.indexOf(",")!==-1){var n=r[Qt](",");r=n[e>0&&n[X]>e?e:0]}var i=ib.exec(Ue(r));return!i||i[1]===im||i[2]===Fl||i[3]===Ml?null:(t={version:(i[1]||he)[xt](),traceId:(i[2]||he)[xt](),spanId:(i[3]||he)[xt]()},t[io]=parseInt(i[4],16),t)}function Vn(r){return Ai(r,32,Fl)}function zn(r){return Ai(r,16,Ml)}function Gs(r){return!(!r||!Ai(r[ca],2,im)||!Ai(r[bs],32,Fl)||!Ai(r[Ps],16,Ml)||!Ai(cS(r[io]),2))}function xc(r){return Gs(r)?(r[io]&sS)===sS:!1}function bc(r){if(r){var e=cS(r[io]);Ai(e,2)||(e="01");var t=r[ca]||nm;return t!=="00"&&t!=="ff"&&(t=nm),"".concat(t.toLowerCase(),"-").concat(uS(r.traceId,32,Fl).toLowerCase(),"-").concat(uS(r.spanId,16,Ml).toLowerCase(),"-").concat(e.toLowerCase())}return""}function Pc(r){var e="traceparent",t=ya(bp(e),r);return t||(t=ya(Pp(e),r)),t}function om(r){var e=r.getElementsByTagName("script"),t=[];return R(e,function(n){var i=n[fl]("src");if(i){var o=n[fl]("crossorigin"),a=n.hasAttribute("async")===!0,s=n.hasAttribute("defer")===!0,u=n[fl]("referrerpolicy"),c={url:i};o&&(c.crossOrigin=o),a&&(c.async=a),s&&(c.defer=s),u&&(c.referrerPolicy=u),t[De](c)}}),t}var ib,nm,im,Fl,Ml,sS,am=O(()=>{me();He();tm();co();Tr();ib=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]{1,64})?$/i,nm="00",im="ff",Fl="00000000000000000000000000000000",Ml="0000000000000000",sS=1});function Ci(r){return ob.get(r,"state",{},!0)}function sm(r,e){for(var t=[],n=null,i=r[Gt](),o;i;){var a=i[Qi]();if(a){n&&n[to]&&a[Rt]&&n[to](a),o=Ci(a);var s=!!o[bt];a[bt]&&(s=a[bt]()),s||t[De](a),n=a,i=i[Gt]()}}R(t,function(u){var c=r[or]();u[Ei](r.getCfg(),c,e,r[Gt]()),o=Ci(u),!u[or]&&!o[or]&&(o[or]=c),o[bt]=!0,delete o[kt]})}function Hl(r){return r.sort(function(e,t){var n=0;if(t){var i=t[Rt];e[Rt]?n=i?e[ma]-t[ma]:1:i&&(n=-1)}else n=e?1:-1;return n})}function fS(r){var e={};return{getName:function(){return e[Br]},setName:function(t){r&&r.setName(t),e[Br]=t},getTraceId:function(){return e[bs]},setTraceId:function(t){r&&r.setTraceId(t),Vn(t)&&(e[bs]=t)},getSpanId:function(){return e[Ps]},setSpanId:function(t){r&&r.setSpanId(t),zn(t)&&(e[Ps]=t)},getTraceFlags:function(){return e[io]},setTraceFlags:function(t){r&&r.setTraceFlags(t),e[io]=t}}}var ob,um=O(()=>{"use strict";me();He();Ys();Tr();am();ob=Tl("plugin")});function sb(r,e,t){for(;r;){if(r[Qi]()===t)return r;r=r[Gt]()}return mo([t],e.config||{},e)}function cm(r,e,t,n){var i=null,o=[];e||(e=Je({},null,t[je])),n!==null&&(i=n?sb(r,t,n):r);var a={_next:u,ctx:{core:function(){return t},diagLog:function(){return Tn(t,e.cfg)},getCfg:function(){return e.cfg},getExtCfg:f,getConfig:d,hasNext:function(){return!!i},getNext:function(){return i},setNext:function(m){i=m},iterate:v,onComplete:s}};function s(m,_){for(var N=[],h=2;h<arguments.length;h++)N[h-2]=arguments[h];m&&o[De]({func:m,self:Te(_)?a.ctx:_,args:N})}function u(){var m=i;if(i=m?m[Gt]():null,!m){var _=o;_&&_[X]>0&&(R(_,function(N){try{N.func.call(N.self,N.args)}catch(h){k(t[je],2,73,"Unexpected Exception during onComplete - "+te(h))}}),o=[])}return m}function c(m,_){var N=null,h=e.cfg;if(h&&m){var b=h[Si];!b&&_&&(b={}),h[Si]=b,b=e.ref(h,Si),b&&(N=b[m],!N&&_&&(N={}),b[m]=N,N=e.ref(b,m))}return N}function f(m,_){var N=c(m,!0);return _&&oe(_,function(h,b){if(F(N[h])){var T=e.cfg[h];(T||!F(T))&&(N[h]=T)}_c(e,N,h,b)}),e[mn](N,_)}function d(m,_,N){N===void 0&&(N=!1);var h,b=c(m,!1),T=e.cfg;return b&&(b[_]||!F(b[_]))?h=b[_]:(T[_]||!F(T[_]))&&(h=T[_]),h||!F(h)?h:N}function v(m){for(var _;_=a._next();){var N=_[Qi]();N&&m(N)}}return a}function ht(r,e,t,n){var i=Je(e),o=cm(r,i,t,n),a=o.ctx;function s(c){var f=o._next();return f&&f[Rt](c,a),!f}function u(c,f){return c===void 0&&(c=null),re(c)&&(c=mo(c,i.cfg,t,f)),ht(c||a[Gt](),i.cfg,t,f)}return a[Or]=s,a[Fn]=u,a}function Bs(r,e,t){var n=Je(e.config),i=cm(r,n,e,t),o=i.ctx;function a(u){var c=i._next();return c&&c[Pt](o,u),!c}function s(u,c){return u===void 0&&(u=null),re(u)&&(u=mo(u,n.cfg,e,c)),Bs(u||o[Gt](),e,c)}return o[Or]=a,o[Fn]=s,o}function Ac(r,e,t){var n=Je(e.config),i=cm(r,n,e,t),o=i.ctx;function a(u){return o.iterate(function(c){ue(c[fa])&&c[fa](o,u)})}function s(u,c){return u===void 0&&(u=null),re(u)&&(u=mo(u,n.cfg,e,c)),Ac(u||o[Gt](),e,c)}return o[Or]=a,o[Fn]=s,o}function mo(r,e,t,n){var i=null,o=!n;if(re(r)&&r[X]>0){var a=null;R(r,function(s){if(!o&&n===s&&(o=!0),o&&s&&ue(s[Rt])){var u=ub(s,e,t);i||(i=u),a&&a._setNext(u),a=u}})}return n&&!i?mo([n],e,t):i}function ub(r,e,t){var n=null,i=ue(r[Rt]),o=ue(r[to]),a;r?a=r[Un]+"-"+r[ma]+"-"+vS++:a="Unknown-0-"+vS++;var s={getPlugin:function(){return r},getNext:function(){return n},processTelemetry:f,unload:d,update:v,_id:a,_setNext:function(m){n=m}};function u(){var m;return r&&ue(r[dS])&&(m=r[dS]()),m||(m=ht(s,e,t)),m}function c(m,_,N,h,b){var T=!1,I=r?r[Un]:ab,w=m[lS];return w||(w=m[lS]={}),m.setNext(n),r&&dr(m[or](),function(){return I+":"+N},function(){w[a]=!0;try{var Y=n?n._id:he;Y&&(w[Y]=!1),T=_(m)}catch($){var B=n?w[n._id]:!0;B&&(T=!0),(!n||!B)&&k(m[At](),1,73,"Plugin ["+I+"] failed during "+N+" - "+te($)+", run flags: "+te(w))}},h,b),T}function f(m,_){_=_||u();function N(h){if(!r||!i)return!1;var b=Ci(r);return b[kt]||b[nc]?!1:(o&&r[to](n),r[Rt](m,h),!0)}c(_,N,"processTelemetry",function(){return{item:m}},!m.sync)||_[Or](m)}function d(m,_){function N(){var h=!1;if(r){var b=Ci(r),T=r[or]||b[or];r&&(!T||T===m.core())&&!b[kt]&&(b[or]=null,b[kt]=!0,b[bt]=!1,r[kt]&&r[kt](m,_)===!0&&(h=!0))}return h}c(m,N,"unload",function(){},_[gn])||m[Or](_)}function v(m,_){function N(){var h=!1;if(r){var b=Ci(r),T=r[or]||b[or];r&&(!T||T===m.core())&&!b[kt]&&r[fa]&&r[fa](m,_)===!0&&(h=!0)}return h}c(m,N,"update",function(){},!1)||m[Or](_)}return Xt(s)}var ab,lS,dS,vS,fm,kl=O(()=>{"use strict";me();Cp();lo();He();Dn();kn();Tr();Ul();um();ab="TelemetryPluginChain",lS="_hasRun",dS="_getTelCtx",vS=0;fm=(function(){function r(e,t,n,i){var o=this,a=ht(e,t,n,i);zt(o,a,Qr(a))}return r})()});function Ia(){var r=[];function e(n){n&&r[De](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 Gl=O(()=>{me();He();Dn()});function lm(r,e){Cc=r,Rc=e}function wc(){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))}}),Cc&&i[X]>Cc&&(Rc?Rc("doUnload",i):k(null,1,48,"Max unload hooks exceeded. An excessive number of unload hooks has been detected."))}function t(n){n&&(_n(r,n),Cc&&r[X]>Cc&&(Rc?Rc("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 Cc,Rc,Bl=O(()=>{me();He();Dn()});var dm,ho,cb,Ri,vm=O(()=>{"use strict";Gr();me();lo();He();Dn();kn();Tr();kl();Gl();Bl();ho="getPlugin",cb=(dm={},dm[Si]={isVal:en,v:{}},dm),Ri=(function(){function r(){var e=this,t,n,i,o,a;c(),be(r,e,function(f){f[Ei]=function(d,v,m,_){u(d,v,_),t=!0},f[kt]=function(d,v){var m,_=f[or];if(!_||d&&_!==d[or]())return;var N,h=!1,b=d||Bs(null,_,i&&i[ho]?i[ho]():i),T=v||(m={reason:0},m[gn]=!1,m);function I(){h||(h=!0,o.run(b,v),a.run(b[At]()),N===!0&&b[Or](T),c())}return!f[ro]||f[ro](b,T,I)!==!0?I():N=!0,N},f[fa]=function(d,v){var m=f[or];if(!m||d&&m!==d[or]())return;var _,N=!1,h=d||Ac(null,m,i&&i[ho]?i[ho]():i),b=v||{reason:0};function T(){N||(N=!0,u(h.getCfg(),h.core(),h[Gt]()))}return!f._doUpdate||f._doUpdate(h,b,T)!==!0?T():_=!0,_},Ni(f,"_addUnloadCb",function(){return o},"add"),Ni(f,"_addHook",function(){return a},"add"),we(f,"_unloadHooks",{g:function(){return a}})}),e[At]=function(f){return s(f)[At]()},e[bt]=function(){return t},e.setInitialized=function(f){t=f},e[to]=function(f){i=f},e[Or]=function(f,d){d?d[Or](f):i&&ue(i[Rt])&&i[Rt](f,null)},e._getTelCtx=s;function s(f){f===void 0&&(f=null);var d=f;if(!d){var v=n||ht(null,{},e[or]);i&&i[ho]?d=v[Fn](null,i[ho]):d=v[Fn](null,i)}return d}function u(f,d,v){Je(f,cb,Tn(d)),!v&&d&&(v=d[il]()[Gt]());var m=i;i&&i[ho]&&(m=i[ho]()),e[or]=d,n=ht(v,f,d,m)}function c(){t=!1,e[or]=null,n=null,i=null,a=wc(),o=Ia()}}return r.__ieDyn=1,r})()});function fb(r,e,t){var n={id:e,fn:t};_n(r,n);var i={remove:function(){R(r,function(o,a){if(o.id===n.id)return r[Yn](a,1),-1})}};return i}function lb(r,e,t){for(var n=!1,i=r[X],o=0;o<i;++o){var a=r[o];if(a)try{if(a.fn[Ji](null,[e])===!1){n=!0;break}}catch(s){k(t,2,64,"Telemetry initializer failed: "+We(s),{exception:te(s)},!0)}}return!n}var _S,pS=O(()=>{It();Gr();me();He();vm();Dn();kn();Tr();_S=(function(r){yt(e,r);function e(){var t=r.call(this)||this;t.identifier="TelemetryInitializerPlugin",t.priority=199;var n,i;o(),be(e,t,function(a,s){a.addTelemetryInitializer=function(u){return fb(i,n++,u)},a[Rt]=function(u,c){lb(i,u,c?c[At]():a[At]())&&a[Or](u,c)},a[ro]=function(){o()}});function o(){n=0,i=[]}return t}return e.__ieDyn=1,e})(Ri)});function mb(r,e){return new Dc(e)}function hb(r,e,t){var n,i=[],o=[],a={};return R(t,function(s){(F(s)||F(s[Ei]))&&cr(ES);var u=s[ma],c=s[Un];s&&u&&(F(a[u])?a[u]=c:mt(r,"Two extensions have same priority #"+u+" - "+a[u]+", "+c)),!u||u<e?i[De](s):o[De](s)}),n={},n[or]=i,n[oo]=o,n}function hS(r,e){var t=!1;return R(e,function(n){if(n===r)return t=!0,-1}),t}function pm(r,e,t,n){t&&oe(t,function(i,o){n&&Zr(o)&&Zr(e[i])&&pm(r,e[i],o,n),n&&Zr(o)&&Zr(e[i])?pm(r,e[i],o,n):r.set(e,i,o)})}function gS(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 gb(r,e){var t=gS(r,e).l;return t||(t={w:e,rm:function(){var n=gS(r,e);n.i!==-1&&r[Yn](n.i,1)}},r[De](t)),t}function Eb(r,e,t){R(e,function(n){var i=Dr(r,n.w,t);delete n.w,n.rm=function(){i.rm()}})}function Sb(r,e,t,n){return e.add(r[hn](function(i){var o=i.cfg.disableDbgExt;o===!0&&n&&(t[Ts](n),n=null),t&&!n&&o!==!0&&(n=WE(i.cfg),t[Ds](n))})),n}function Nb(r){return we({rm:function(){r.rm()}},"toJSON",{v:function(){return"aicore::onCfgChange<"+JSON.stringify(r)+">"}})}var go,ES,db,mS,vb,_b,pb,_m,wi,SS=O(()=>{"use strict";It();Gr();_a();me();lo();Z_();He();Op();Yp();Jp();Ys();kp();Dn();kn();Tr();Qp();Ul();kl();um();pS();Gl();Bl();ES="Plugins must provide initialize method",db="_notificationManager",mS="SDK is still unloading...",vb="SDK is not initialized",_b=100,pb=5e4,_m=On((go={cookieCfg:{}},go[pa]={rdOnly:!0,ref:!0,v:[]},go[oo]={rdOnly:!0,ref:!0,v:[]},go[Si]={ref:!0,v:{}},go[vl]=jt,go.loggingLevelConsole=0,go.diagnosticLogInterval=jt,go));wi=(function(){function r(){var e,t,n,i,o,a,s,u,c,f,d,v,m,_,N,h,b,T,I,w,Y,B,$,ie,z,G,J,ce,_e,g,y,M,V;be(r,this,function(D){P(),D._getDbgPlgTargets=function(){return[$,i]},D[bt]=function(){return t},D.activeStatus=function(){return G},D._setPendingStatus=function(){G=3},D[Ei]=function(A,q,ae,Z){m&&cr(mS),D[bt]()&&cr("Core cannot be initialized more than once"),e=Je(A,_m,ae||D[je],!1),A=e.cfg,Ke(e[hn](function(Pe){var Fe=Pe.cfg,Xe=G===3;if(!Xe){ce=Fe.initInMemoMaxSize||_b;var ar=Fe[ep],ot=Fe.endpointUrl;if(F(ar)){Y=null,G=Ht[nl];var at="Please provide instrumentation key";t?(k(n,1,100,at),j()):cr(at);return}var $t=[];if(_t(ar)?($t[De](ar),Y=null):Y=ar,_t(ot)?($t[De](ot),J=null):J=ot,$t[X]){_e=!1,G=3;var Hr=en(Fe.initTimeOut)?Fe.initTimeOut:pb,li=DE($t);g=Mt(function(){g=null,_e||Q()},Hr),Bt(li,function(L){try{if(_e)return;if(!L.rejected){var H=L[ua];if(H&&H[X]){var ee=H[0];if(Y=ee&&ee[ua],H[X]>1){var de=H[1];J=de&&de[ua]}}Y&&(A[ep]=Y,A.endpointUrl=J)}Q()}catch{_e||Q()}})}else Q();var E=Pe.ref(Pe.cfg,Si);oe(E,function(L){Pe.ref(E,L)})}})),o=Z,I=Sb(e,T,o&&D[Xu](),I),vt(),D[je]=ae;var se=A[pa];if(f=[],f[De].apply(f,Kf(Kf([],q,!1),se,!1)),d=A[oo],Ve(null),(!v||v[X]===0)&&cr("No "+oo+" available"),d&&d[X]>1){var Re=D[Qi]("TeeChannelController");(!Re||!Re.plugin)&&k(n,1,28,"TeeChannel required")}Eb(A,B,n),B=null,t=!0,G===Ht.ACTIVE&&j()},D.getChannels=function(){var A=[];return v&&R(v,function(q){A[De](q)}),Xt(A)},D.track=function(A){dr(D[Rs](),function(){return"AppInsightsCore:track"},function(){A===null&&(qe(A),cr("Invalid telemetry item")),!A[Br]&&F(A[Br])&&(qe(A),cr("telemetry name required")),A[ys]=A[ys]||Y,A[Zi]=A[Zi]||Vt(new Date),A.ver=A.ver||"4.0",!m&&D[bt]()&&G===Ht.ACTIVE?Ce()[Or](A):G!==Ht[nl]&&i[X]<=ce&&i[De](A)},function(){return{item:A}},!A.sync)},D[il]=Ce,D[Xu]=function(){return o||(o=new Nc(e.cfg),D[db]=o),o},D[Ds]=function(A){D.getNotifyMgr()[Ds](A)},D[Ts]=function(A){o&&o[Ts](A)},D.getCookieMgr=function(){return u||(u=Pi(e.cfg,D[je])),u},D.setCookieMgr=function(A){u!==A&&(bi(u,!1),u=A)},D[Rs]=function(){return a||s||rm()},D.setPerfMgr=function(A){a=A},D.eventCnt=function(){return i[X]},D.releaseQueue=function(){if(t&&i[X]>0){var A=i;i=[],G===2?R(A,function(q){q[ys]=q[ys]||Y,Ce()[Or](q)}):k(n,2,20,"core init status is not active")}},D[rp]=function(A){return N=A||null,V=!1,y&&y[gi](),pe(!0)};function Q(){_e=!0,F(Y)?(G=Ht[nl],k(n,1,112,"ikey can't be resolved from promises")):G=Ht.ACTIVE,j()}function j(){t&&(D.releaseQueue(),D[rp]())}function pe(A){if((!y||!y[eo])&&!V){var q=A||n&&n.queue[X]>0;q&&(M||(M=!0,Ke(e[hn](function(ae){var Z=ae.cfg.diagnosticLogInterval;(!Z||!(Z>0))&&(Z=1e4);var se=!1;y&&(se=y[eo],y[gi]()),y=rE(Wr,Z),y.unref(),y[eo]=se}))),y[eo]=!0)}return y}D[tp]=function(){V=!0,y&&y[gi](),Wr()},zt(D,function(){return _},["addTelemetryInitializer"]),D[Pt]=function(A,q,ae){var Z;A===void 0&&(A=!0),t||cr(vb),m&&cr(mS);var se=(Z={reason:50},Z[gn]=A,Z.flushComplete=!1,Z),Re;A&&!q&&(Re=Zt(function(Xe){q=Xe}));var Pe=Bs(rr(),D);Pe[Ju](function(){T.run(D[je]),Al([u,o,n],A,function(){P(),q&&q(se)})},D);function Fe(Xe){se.flushComplete=Xe,m=!0,b.run(Pe,se),D[tp](),Pe[Or](se)}return Wr(),Pr(A,Fe,6,ae)||Fe(!1),Re},D[Qi]=Mr,D.addPlugin=function(A,q,ae,Z){if(!A){Z&&Z(!1),Ye(ES);return}var se=Mr(A[Un]);if(se&&!q){Z&&Z(!1),Ye("Plugin ["+A[Un]+"] is already loaded!");return}var Re={reason:16};function Pe(ar){f[De](A),Re.added=[A],Ve(Re),Z&&Z(!0)}if(se){var Fe=[se.plugin],Xe={reason:2,isAsync:!!ae};Ft(Fe,Xe,function(ar){ar?(Re.removed=Fe,Re.reason|=32,Pe(!0)):Z&&Z(!1)})}else Pe(!1)},D.updateCfg=function(A,q){q===void 0&&(q=!0);var ae;if(D[bt]()){ae={reason:1,cfg:e.cfg,oldCfg:F_({},e.cfg),newConfig:F_({},A),merge:q},A=ae.newConfig;var Z=e.cfg;A[pa]=Z[pa],A[oo]=Z[oo]}e._block(function(se){var Re=se.cfg;pm(se,Re,A,q),q||oe(Re,function(Pe){qt(A,Pe)||se.set(Re,Pe,jt)}),se[mn](Re,_m)},!0),e[sa](),ae&&Ge(ae)},D.evtNamespace=function(){return h},D.flush=Pr,D.getTraceCtx=function(A){return w||(w=fS()),w},D.setTraceCtx=function(A){w=A||null},D.addUnloadHook=Ke,Ni(D,"addUnloadCb",function(){return b},"add"),D.onCfgChange=function(A){var q;return t?q=Dr(e.cfg,A,D[je]):q=gb(B,A),Nb(q)},D.getWParam=function(){return na()||e.cfg.enableWParam?0:-1};function K(){var A={};ie=[];var q=function(ae){ae&&R(ae,function(Z){if(Z[Un]&&Z[ca]&&!A[Z.identifier]){var se=Z[Un]+"="+Z[ca];ie[De](se),A[Z.identifier]=Z}})};q(v),d&&R(d,function(ae){q(ae)}),q(f)}function P(){t=!1,e=Je({},_m,D[je]),e.cfg[ol]=1,we(D,"config",{g:function(){return e.cfg},s:function(q){D.updateCfg(q,!1)}}),we(D,"pluginVersionStringArr",{g:function(){return ie||K(),ie}}),we(D,"pluginVersionString",{g:function(){return z||(ie||K(),z=ie.join(";")),z||he}}),we(D,"logger",{g:function(){return n||(n=new vo(e.cfg),e[je]=n),n},s:function(q){e[je]=q,n!==q&&(bi(n,!1),n=q)}}),D[je]=new vo(e.cfg),$=[];var A=D.config[pa]||[];A.splice(0,A[X]),_n(A,$),_=new _S,i=[],bi(o,!1),o=null,a=null,s=null,bi(u,!1),u=null,c=null,f=[],d=null,v=null,m=!1,N=null,h=rt("AIBaseCore",!0),b=Ia(),w=null,Y=null,T=wc(),B=[],z=null,ie=null,V=!1,y=null,M=!1,G=0,J=null,ce=null,_e=!1,g=null}function Ce(){var A=ht(rr(),e.cfg,D);return A[Ju](pe),A}function Ve(A){var q=hb(D[je],KE,f);c=null,z=null,ie=null,v=(d||[])[0]||[],v=Hl(_n(v,q[oo]));var ae=_n(Hl(q[or]),v);$=Xt(ae);var Z=D.config[pa]||[];Z.splice(0,Z[X]),_n(Z,$);var se=Ce();v&&v[X]>0&&sm(se[Fn](v),ae),sm(se,ae),A&&Ge(A)}function Mr(A){var q=null,ae=null,Z=[];return R($,function(se){if(se[Un]===A&&se!==_)return ae=se,-1;se.getChannel&&Z[De](se)}),!ae&&Z[X]>0&&R(Z,function(se){if(ae=se.getChannel(A),!ae)return-1}),ae&&(q={plugin:ae,setEnabled:function(se){Ci(ae)[nc]=!se},isEnabled:function(){var se=Ci(ae);return!se[kt]&&!se[nc]},remove:function(se,Re){var Pe;se===void 0&&(se=!0);var Fe=[ae],Xe=(Pe={reason:1},Pe[gn]=se,Pe);Ft(Fe,Xe,function(ar){ar&&Ve({reason:32,removed:Fe}),Re&&Re(ar)})}}),q}function rr(){if(!c){var A=($||[]).slice();Oe(A,_)===-1&&A[De](_),c=mo(Hl(A),e.cfg,D)}return c}function Ft(A,q,ae){if(A&&A[X]>0){var Z=mo(A,e.cfg,D),se=Bs(Z,D);se[Ju](function(){var Re=!1,Pe=[];R(f,function(Xe,ar){hS(Xe,A)?Re=!0:Pe[De](Xe)}),f=Pe,z=null,ie=null;var Fe=[];d&&(R(d,function(Xe,ar){var ot=[];R(Xe,function(at){hS(at,A)?Re=!0:ot[De](at)}),Fe[De](ot)}),d=Fe),ae&&ae(Re),pe()}),se[Or](q)}else ae(!1)}function Wr(){if(n&&n.queue){var A=n.queue.slice(0);n.queue[X]=0,R(A,function(q){var ae,Z=(ae={},ae[Br]=N||"InternalMessageId: "+q[Is],ae[ys]=Y,ae[Zi]=Vt(new Date),ae.baseType=Sa.dataType,ae.baseData={message:q[Mn]},ae);D.track(Z)})}}function Pr(A,q,ae,Z){var se=1,Re=!1,Pe=null;Z=Z||5e3;function Fe(){se--,Re&&se===0&&(Pe&&Pe[gi](),Pe=null,q&&q(Re),q=null)}if(v&&v[X]>0){var Xe=Ce()[Fn](v);Xe.iterate(function(ar){if(ar.flush){se++;var ot=!1;ar.flush(A,function(){ot=!0,Fe()},ae)||ot||(A&&Pe==null?Pe=Mt(function(){Pe=null,Fe()},Z):Fe())}})}return Re=!0,Fe(),!0}function vt(){var A;Ke(e[hn](function(q){var ae=q.cfg.enablePerfMgr;if(ae){var Z=q.cfg[vl];(A!==Z||!A)&&(Z||(Z=mb),ic(q.cfg,vl,Z),A=Z,s=null),!a&&!s&&ue(Z)&&(s=Z(D,D[Xu]()))}else s=null,A=null}))}function Ge(A){var q=Ac(rr(),D);q[Ju](pe),(!D._updateHook||D._updateHook(q,A)!==!0)&&q[Or](A)}function Ye(A){var q=D[je];q?(k(q,2,73,A),pe()):cr(A)}function qe(A){var q=D[Xu]();q&&q[ao]([A],2)}function Ke(A){T.add(A)}})}return r.__ieDyn=1,r})()});function xa(r,e){try{if(r&&r!==""){var t=et().parse(r);if(t&&t[ap]&&t[ap]>=t.itemsAccepted&&t.itemsReceived-t.itemsAccepted===t.errors[X])return t}}catch(n){k(e,1,43,"Cannot parse the response. "+(n[Br]||te(n)),{response:r})}return null}var NS=O(()=>{me();He();Dn();co()});var Kn,Tb,TS,mm,ba,DS=O(()=>{Gr();_a();me();He();Yp();Dn();co();kn();Kn="",Tb="NoResponseBody",TS="&"+Tb+"=true",mm="POST",ba=(function(){function r(){var e=0,t,n,i,o,a,s,u,c,f,d,v,m,_,N;be(r,this,function(h,b){var T=!0;_e(),h[Ei]=function(g,y){i=y,n&&k(i,1,28,"Sender is already initialized"),h.SetConfig(g),n=!0},h._getDbgPlgTargets=function(){return[n,o,s,t]},h.SetConfig=function(g){try{if(a=g.senderOnCompleteCallBack||{},s=!!g.disableCredentials,u=g.fetchCredentials,o=!!g.isOneDs,t=!!g.enableSendPromise,f=!!g.disableXhr,d=!!g.disableBeacon,v=!!g.disableBeaconSync,N=g.timeWrapper,_=!!g.addNoResponse,m=!!g.disableFetchKeepAlive,c={sendPOST:G},o||(T=!1),s){var y=Ea();y&&y.protocol&&y.protocol[xt]()==="file:"&&(T=!1)}return!0}catch{}return!1},h.getSyncFetchPayload=function(){return e},h.getSenderInst=function(g,y){return g&&g[X]?B(g,y):null},h.getFallbackInst=function(){return c},h[ro]=function(g,y){_e()};function I(g,y){$(y,200,{},g)}function w(g,y){k(i,2,26,"Failed to send telemetry.",{message:g}),$(y,400,{})}function Y(g){w("No endpoint url is provided for the batch",g)}function B(g,y){for(var M,V=0,D=null,Q=0;D==null&&Q<g[X];)V=g[Q],!f&&V===1?cc()?D=ce:Ls()&&(D=G):V===2&&Ii(y)&&(!y||!m)?D=J:V===3&&Ot()&&(y?!v:!d)&&(D=z),Q++;return D?(M={_transport:V,_isSync:y},M[sp]=D,M):null}function $(g,y,M,V){try{g&&g(y,M,V)}catch{}}function ie(g,y){var M=wr(),V=g[xs];if(!V)return Y(y),!0;V=g[xs]+(_?TS:Kn);var D=g[no],Q=o?D:new Blob([D],{type:"text/plain;charset=UTF-8"}),j=M.sendBeacon(V,Q);return j}function z(g,y,M){var V=g[no];try{if(V)if(ie(g,y))I(Kn,y);else{var D=a&&a.beaconOnRetry;D&&ue(D)?D(g,y,ie):(c&&c[sp](g,y,!0),k(i,2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}catch(Q){o&&mt(i,"Failed to send telemetry using sendBeacon API. Ex:"+te(Q)),$(y,o?0:400,{},Kn)}}function G(g,y,M){var V,D,Q,j=g[cl]||{};!M&&t&&(V=Zt(function(Ce,Ve){D=Ce,Q=Ve})),o&&M&&g.disableXhrSync&&(M=!1);var pe=g[xs];if(!pe){Y(y),D&&D(!1);return}var K=Sp(mm,pe,T,!0,M,g[va]);o||K[up]("Content-type","application/json"),R(Qr(j),function(Ce){K[up](Ce,j[Ce])}),K.onreadystatechange=function(){o||(P(K),K.readyState===4&&D&&D(!0))},K.onload=function(){o&&P(K)};function P(Ce){var Ve=a&&a.xhrOnComplete,Mr=Ve&&ue(Ve);if(Mr)Ve(Ce,y,g);else{var rr=Nn(Ce);$(y,Ce[la],yi(Ce,o),rr)}}return K.onerror=function(Ce){$(y,o?K[la]:400,yi(K,o),o?Kn:Ti(K)),Q&&Q(Ce)},K.ontimeout=function(){$(y,o?K[la]:500,yi(K,o),o?Kn:Ti(K)),D&&D(!1)},K.send(g[no]),V}function J(g,y,M){var V,D=g[xs],Q=g[no],j=o?Q:new Blob([Q],{type:"application/json"}),pe,K,P,Ce=new Headers,Ve=Q[X],Mr=!1,rr=!1,Ft=g[cl]||{},Wr=(V={method:mm,body:j},V[Lp]=!0,V);g.headers&&Qr(g.headers)[X]>0&&(R(Qr(Ft),function(Ye){Ce.append(Ye,Ft[Ye])}),Wr[cl]=Ce),u?Wr.credentials=u:T&&o&&(Wr.credentials="include"),M&&(Wr.keepalive=!0,e+=Ve,o?g._sendReason===2&&(Mr=!0,_&&(D+=TS)):Mr=!0);var Pr=new Request(D,Wr);try{Pr[Lp]=!0}catch{}if(!M&&t&&(pe=Zt(function(Ye,qe){K=Ye,P=qe})),!D){Y(y),K&&K(!1);return}function vt(Ye){$(y,o?0:400,{},o?Kn:Ye)}function Ge(Ye,qe,Ke){var A=Ye[la],q=a.fetchOnComplete;q&&ue(q)?q(Ye,y,Ke||Kn,qe):$(y,A,{},Ke||Kn)}try{Bt(fetch(o?D:Pr,o?Wr:null),function(Ye){if(M&&(e-=Ve,Ve=0),!rr)if(rr=!0,Ye.rejected)vt(Ye.reason&&Ye.reason[Mn]),P&&P(Ye.reason);else{var qe=Ye[ua];try{!o&&!qe.ok?(vt(qe.statusText),K&&K(!1)):o&&!qe.body?(Ge(qe,null,Kn),K&&K(!0)):Bt(qe.text(),function(Ke){Ge(qe,g,Ke[ua]),K&&K(!0)})}catch(Ke){vt(te(Ke)),P&&P(Ke)}}})}catch(Ye){rr||(vt(te(Ye)),P&&P(Ye))}return Mr&&!rr&&(rr=!0,$(y,200,{}),K&&K(!0)),o&&!rr&&g[va]>0&&N&&N.set(function(){rr||(rr=!0,$(y,500,{}),K&&K(!0))},g[va]),pe}function ce(g,y,M){var V=Nr(),D=new XDomainRequest,Q=g[no];D.onload=function(){var Ce=Nn(D),Ve=a&&a.xdrOnComplete;Ve&&ue(Ve)?Ve(D,y,g):$(y,200,{},Ce)},D.onerror=function(){$(y,400,{},o?Kn:ga(D))},D.ontimeout=function(){$(y,500,{})},D.onprogress=function(){};var j=V&&V.location&&V.location[al]||"",pe=g[xs];if(!pe){Y(y);return}if(!o&&pe.lastIndexOf(j,0)!==0){var K="Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol.";k(i,2,40,". "+K),w(K,y);return}var P=o?pe:pe[En](/^(https?:)/,"");D.open(mm,P),g[va]&&(D[va]=g[va]),D.send(Q),o&&M?N&&N.set(function(){D.send(Q)},0):D.send(Q)}function _e(){e=0,n=!1,t=!1,i=null,o=null,a=null,s=null,u=null,c=null,f=!1,d=!1,v=!1,m=!1,_=!1,N=null}})}return r.__ieDyn=1,r})()});function PS(r){return r&&r[En]?r[En](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,he):r}function zl(r,e){var t;if(e){var n=he;re(e)?(n=he,R(e,function(o){o=PS(o),o&&(o[0]!=="."&&(o="."+o),n+=o)})):n=PS(e),n&&(n[0]!=="."&&(n="."+n),r=(r||he)+n)}var i=xb.exec(r||he)||[];return t={},t[Ct]=i[1],t.ns=(i[2]||he).replace(Db,".").replace(yb,he)[Qt](".").sort().join("."),t}function hm(r,e,t){var n=[],i=Lc.get(r,jl,{},!1),o=zl(e,t);return oe(i,function(a,s){R(s,function(u){var c;(!o[Ct]||o[Ct]===u.evtName[Ct])&&(!o.ns||o.ns===o.ns)&&n[De]((c={},c[Br]=u.evtName[Ct]+(u.evtName.ns?"."+u.evtName.ns:he),c.handler=u[Zu],c))})}),n}function US(r,e,t){t===void 0&&(t=!0);var n=Lc.get(r,jl,{},t),i=n[e];return i||(i=n[e]=[]),i}function FS(r,e,t,n){r&&e&&e[Ct]&&(r[bS]?r[bS](e[Ct],t,n):r[xS]&&r[xS](CS+e[Ct],t))}function bb(r,e,t,n){var i=!1;return r&&e&&e[Ct]&&t&&(r[IS]?(r[IS](e[Ct],t,n),i=!0):r[yS]&&(r[yS](CS+e[Ct],t),i=!0)),i}function AS(r,e,t,n){for(var i=e[X];i--;){var o=e[i];o&&(!t.ns||t.ns===o.evtName.ns)&&(!n||n(o))&&(FS(r,o.evtName,o[Zu],o.capture),e[Yn](i,1))}}function Pb(r,e,t){if(e[Ct])AS(r,US(r,e[Ct]),e,t);else{var n=Lc.get(r,jl,{});oe(n,function(i,o){AS(r,o,e,t)}),Qr(n)[X]===0&&Lc.kill(r,jl)}}function Kt(r,e){var t;return e?(re(e)?t=[r].concat(e):t=[r,e],t=zl("xx",t).ns[Qt](".")):t=r,t}function Wn(r,e,t,n,i){var o;i===void 0&&(i=!1);var a=!1;if(r)try{var s=zl(e,n);if(a=bb(r,s,t,i),a&&Lc.accept(r)){var u=(o={guid:Ib++,evtName:s},o[Zu]=t,o.capture=i,o);US(r,s.type)[De](u)}}catch{}return a}function Oi(r,e,t,n,i){if(i===void 0&&(i=!1),r)try{var o=zl(e,n),a=!1;Pb(r,o,function(s){return o.ns&&!t||s[Zu]===t?(a=!0,!0):!1}),a||FS(r,o,t,i)}catch{}}function gm(r,e,t,n){return n===void 0&&(n=!1),Wn(r,e,t,null,n)}function Em(r,e,t,n){n===void 0&&(n=!1),Oi(r,e,t,null,n)}function Kl(r,e,t){var n=!1,i=Nr();i&&(n=Wn(i,r,e,t),n=Wn(i.body,r,e,t)||n);var o=fr();return o&&(n=Wn(o,r,e,t)||n),n}function Wl(r,e,t){var n=Nr();n&&(Oi(n,r,e,t),Oi(n.body,r,e,t));var i=fr();i&&Oi(i,r,e,t)}function js(r,e,t,n){var i=!1;return e&&r&&r[X]>0&&R(r,function(o){o&&(!t||Oe(t,o)===-1)&&(i=Kl(o,e,n)||i)}),i}function $l(r,e,t,n){var i=!1;return e&&r&&re(r)&&(i=js(r,e,t,n),!i&&t&&t[X]>0&&(i=js(r,e,null,n))),i}function Eo(r,e,t){r&&re(r)&&R(r,function(n){n&&Wl(n,e,t)})}function Yc(r,e,t){return $l([OS,wS,Vl],r,e,t)}function Uc(r,e){Eo([OS,wS,Vl],r,e)}function Vs(r,e,t){function n(a){var s=fr();r&&s&&s.visibilityState==="hidden"&&r(a)}var i=Kt(LS,t),o=js([Vl],r,e,i);return(!e||Oe(e,Oc)===-1)&&(o=js([Oc],n,e,i)||o),!o&&e&&(o=Vs(r,null,t)),o}function Fc(r,e){var t=Kt(LS,e);Eo([Vl],r,t),Eo([Oc],null,t)}function zs(r,e,t){function n(a){var s=fr();r&&s&&s.visibilityState==="visible"&&r(a)}var i=Kt(YS,t),o=js([RS],r,e,i);return o=js([Oc],n,e,i)||o,!o&&e&&(o=zs(r,null,t)),o}function Mc(r,e){var t=Kt(YS,e);Eo([RS],r,t),Eo([Oc],null,t)}var CS,yS,IS,xS,bS,jl,Oc,Vl,RS,wS,OS,LS,YS,Db,yb,Ib,Lc,xb,MS=O(()=>{me();He();Ys();Tr();CS="on",yS="attachEvent",IS="addEventListener",xS="detachEvent",bS="removeEventListener",jl="events",Oc="visibilitychange",Vl="pagehide",RS="pageshow",wS="unload",OS="beforeunload",LS=rt("aiEvtPageHide"),YS=rt("aiEvtPageShow"),Db=/\.[\.]+/g,yb=/[\.]+$/,Ib=1,Lc=Tl("events"),xb=/^([^.]*)(?:\.(.+)|)/});var Sm,HS=O(()=>{qu();Sm=lr({DISABLED:0,CRITICAL:1,WARNING:2,DEBUG:3})});var Me=O(()=>{fE();lE();Z_();SS();vm();Nl();tm();Op();kn();NS();DS();me();qu();MS();co();It();Qp();Ul();Dn();kl();HS();Jp();Ys();Gl();Bl();am();lo();xl();Fp()});var $n,kS,Nm,ql,Xl=O(()=>{$n="",kS="https://browser.events.data.microsoft.com/OneCollector/1.0/",Nm="version",ql="properties"});var Tm,Dm,Ks,qn,ym,Qe,Pa,Li,Jl,Ql,Zl,ed,Hc,rd=O(()=>{Tm="initialize",Dm="logger",Ks="indexOf",qn="timings",ym="pollInternalLogs",Qe="value",Pa="kind",Li="length",Jl="processTelemetryStart",Ql="handleField",Zl="rmSanitizer",ed="rmFieldSanitizer",Hc="canHandle"});function jr(r){return!(r===$n||F(r))}function td(r){if(r){var e=Dt(r,"-");if(e>-1)return ta(r,e)}return $n}function zS(){return Im===null&&(Im=!Te(Uint8Array)&&!Ob()&&!so()),Im}function nd(r){return!!(r&&Jr(r)&&r>=1&&r<=4)}function id(r,e,t){if(!e&&!jr(e)||typeof r!="string")return null;var n=typeof e;if(n==="string"||n==="number"||n==="boolean"||re(e))e={value:e};else if(n==="object"&&!BS.call(e,"value"))e={value:t?JSON.stringify(e):e};else if(F(e[Qe])||e[Qe]===$n||!Se(e[Qe])&&!Jr(e[Qe])&&!wn(e[Qe])&&!re(e[Qe]))return null;if(re(e[Qe])&&!bm(e[Qe]))return null;if(!F(e[Pa])){if(re(e[Qe])||!kc(e[Pa]))return null;e[Qe]=e[Qe].toString()}return e}function $s(r,e,t){var n=-1;if(!Te(r))if(e>0&&(e===32?n=8192:e<=13&&(n=e<<5)),wb(t))n===-1&&(n=0),n|=t;else{var i=Rb[Xn(r)]||-1;n!==-1&&i!==-1?n|=i:i===6&&(n=i)}return n}function KS(r,e,t){t===void 0&&(t=!0);var n;return r&&(n=r.get(e),t&&n&&decodeURIComponent&&(n=decodeURIComponent(n))),n||$n}function WS(r){r===void 0&&(r="D");var e=yc();return r==="B"?e="{"+e+"}":r==="P"?e="("+e+")":r==="N"&&(e=e.replace(/-/g,$n)),e}function Aa(r,e,t,n,i){var o={},a=!1,s=0,u=arguments[Li],c=arguments;for(wn(c[0])&&(a=c[0],s++);s<u;s++){var r=c[s];oe(r,function(d,v){a&&v&&nr(v)?re(v)?(o[d]=o[d]||[],R(v,function(m,_){m&&nr(m)?o[d][_]=Aa(!0,o[d][_],m):o[d][_]=m})):o[d]=Aa(!0,o[d],v):o[d]=v})}return o}function kc(r){return r===0||r>0&&r<=13||r===32}function wb(r){return r>=0&&r<=9}function Ob(){var r=wr();if(!Te(r)&&r.userAgent){var e=r.userAgent.toLowerCase();if((e[Ks]("safari")>=0||e[Ks]("firefox")>=0)&&e[Ks]("chrome")<0)return!0}return!1}function bm(r){return r[Li]>0}function Gc(r,e){var t=r;t[qn]=t[qn]||{},t[qn][Jl]=t[qn][Jl]||{},t[qn][Jl][e]=Lt()}function Xn(r){var e=0;if(r!=null){var t=typeof r;t==="string"?e=1:t==="number"?e=2:t==="boolean"?e=3:t===vi&&(e=4,re(r)?(e=4096,r[Li]>0&&(e|=Xn(r[0]))):BS.call(r,"value")&&(e=8192|Xn(r[Qe])))}return e}function od(){return!!le("chrome")}function $S(r,e,t,n,i,o){n===void 0&&(n=!1),i===void 0&&(i=!1);function a(u,c,f){try{u[c]=f}catch{}}var s=new XMLHttpRequest;return n&&a(s,Ab,n),t&&a(s,GS,t),s.open(r,e,!i),t&&a(s,GS,t),!i&&o&&a(s,Cb,o),s}function So(r){return r>0}var Yi,xm,Ws,BS,Ab,GS,Cb,Rb,Im,jS,VS,Lt,ad=O(()=>{Me();It();me();Xl();rd();xm="4.3.4",Ws="1DS-Web-JS-"+xm,BS=Yu.hasOwnProperty,Ab="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",GS="withCredentials",Cb="timeout",Rb=(Yi={},Yi[0]=0,Yi[2]=6,Yi[1]=1,Yi[3]=7,Yi[4098]=6,Yi[4097]=1,Yi[4099]=7,Yi),Im=null,jS=na(),VS=ps();Lt=Ku});function Yb(r){return r&&(!r.getProperty||!r.setProperty)&&cr("Invalid property storage override passed."),!0}var Lb,qS,XS=O(()=>{It();Gr();Me();me();Xl();ad();rd();Lb=On({endpointUrl:kS,propertyStorageOverride:{isVal:Yb}});qS=(function(r){yt(e,r);function e(){var t=r.call(this)||this;return be(e,t,function(n,i){n[Tm]=function(o,a,s,u){dr(n,function(){return"AppInsightsCore.initialize"},function(){try{i[Tm](Je(o,Lb,s||n[Dm],!1).cfg,a,s,u)}catch(d){var c=n[Dm],f=te(d);f[Ks]("channels")!==-1&&(f+=`
- Channels must be provided through config.channels only!`),k(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+f)}},function(){return{config:o,extensions:a,logger:s,notificationManager:u}})},n.track=function(o){dr(n,function(){return"AppInsightsCore.track"},function(){var a=o;if(a){a[qn]=a[qn]||{},a[qn].trackStart=Lt(),nd(a.latency)||(a.latency=1);var s=a.ext=a.ext||{};s.sdk=s.sdk||{},s.sdk.ver=Ws;var u=a.baseData=a.baseData||{};u[ql]=u[ql]||{};var c=u[ql];c[Nm]=c[Nm]||n.pluginVersionString||$n}i.track(a)},function(){return{item:o}},!o.sync)},n[ym]=function(o){return i[ym](o||"InternalLog")}}),t}return e.__ieDyn=1,e})(wi)});var JS,QS,ZS,eN,rN,tN=O(()=>{Me();JS=lr({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}),QS=lr({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),ZS=lr({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),eN=lr({Normal:1,Critical:2}),rN=lr({NONE:0,ERROR:1,WARNING:2,INFORMATION:3})});var nN,iN=O(()=>{Me();me();Xl();ad();rd();nN=(function(){function r(e){var t=this,n={},i=[],o=[];e&&o.push(e);function a(f,d){var v,m=n[f];if(m&&(v=m[d]),!v&&v!==null){if(Se(f)&&Se(d))if(o[Li]>0){for(var _=0;_<o[Li];_++)if(o[_][Ql](f,d)){v={canHandle:!0,fieldHandler:o[_]};break}}else i[Li]===0&&(v={canHandle:!0});if(!v&&v!==null){v=null;for(var _=0;_<i[Li];_++)if(i[_][Ql](f,d)){v={canHandle:!0,handler:i[_],fieldHandler:null};break}}m||(m=n[f]={}),m[d]=v}return v}t.clearCache=function(){n={}},t.addSanitizer=function(f){f&&(L_(i,f)||i.push(f),n={})},t.addFieldSanitizer=function(f){f&&(L_(o,f)||o.push(f),n={})},t[Zl]=function(f){if(f){var d=Oe(i,f);d!==-1&&(i.splice(d,1),n={}),R(i,function(v){v&&v[Zl]&&v[Zl](f)})}},t[ed]=function(f){if(f){var d=Oe(o,f);d!==-1&&(o.splice(d,1),n={}),R(i,function(v){v&&v[ed]&&v[ed](f)})}},t.isEmpty=function(){return gs(i)+gs(o)===0},t[Ql]=function(f,d){var v=a(f,d);return v?v[Hc]:!1},t[Qe]=function(f,d,v,m){var _=a(f,d);if(_&&_[Hc]){if(!_||!_[Hc])return null;if(_.handler)return _.handler[Qe](f,d,v,m);if(!Se(d)||F(v)||v===$n)return null;var N=null,h=Xn(v);if((h&8192)===8192){var b=h&-8193;if(N=v,!jr(N[Qe])||b!==1&&b!==2&&b!==3&&(b&4096)!==4096)return null}else h===1||h===2||h===3||(h&4096)===4096?N=u(f,d,v):h===4&&(N=u(f,d,m?JSON.stringify(v):v));if(N)return s(_,f,d,h,N,m)}return null},t.property=function(f,d,v,m){var _=a(f,d);if(!_||!_[Hc]||!Se(d)||F(v)||!jr(v[Qe]))return null;var N=Xn(v[Qe]);return N===0?null:s(_,f,d,N,v,m)};function s(f,d,v,m,_,N){if(f.handler)return f.handler.property(d,v,_,N);if(!F(_[Pa])){if((m&4096)===4096||!kc(_[Pa]))return null;_[Qe]=_[Qe].toString()}return c(f.fieldHandler,d,v,m,_)}function u(f,d,v){return jr(v)?{value:v}:null}function c(f,d,v,m,_){if(_&&f){var N=f.getSanitizer(d,v,m,_[Pa],_.propertyType);if(N)if(m===4){var h={},b=_[Qe];oe(b,function(I,w){var Y=d+"."+v;if(jr(w)){var B=u(Y,I,w);B=c(f,Y,I,Xn(w),B),B&&(h[I]=B[Qe])}}),_[Qe]=h}else{var T={path:d,name:v,type:m,prop:_,sanitizer:t};_=N.call(t,T)}}return _}}return r.getFieldType=Xn,r})()});var oN={};Ou(oN,{ActiveStatus:()=>Ht,AppInsightsCore:()=>qS,BaseTelemetryPlugin:()=>Ri,DiagnosticLogger:()=>vo,EventLatency:()=>QS,EventPersistence:()=>eN,EventPropertyType:()=>ZS,EventsDiscardedReason:()=>pn,FullVersionString:()=>Ws,InternalAppInsightsCore:()=>wi,LoggingSeverity:()=>Sm,MinChannelPriorty:()=>J_,NotificationManager:()=>Nc,PerfEvent:()=>Ta,PerfManager:()=>Dc,ProcessTelemetryContext:()=>fm,SenderPostManager:()=>ba,TraceLevel:()=>rN,Undefined:()=>Cn,ValueKind:()=>JS,ValueSanitizer:()=>nN,Version:()=>xm,_InternalLogMessage:()=>Sa,__getRegisteredEvents:()=>hm,_appendHeader:()=>ws,_getAllResponseHeaders:()=>yi,_logInternalMessage:()=>jp,_testHookMaxUnloadHooksCb:()=>lm,_throwInternal:()=>k,_warnToConsole:()=>mt,addEventHandler:()=>Kl,addEventListeners:()=>$l,addPageHideEventListener:()=>Vs,addPageShowEventListener:()=>zs,addPageUnloadEventListener:()=>Yc,areCookiesSupported:()=>Hs,arrForEach:()=>R,arrIndexOf:()=>Oe,arrMap:()=>pi,arrReduce:()=>zu,attachEvent:()=>gm,blockDynamicConversion:()=>mc,convertAllHeadersToMap:()=>Sl,cookieAvailable:()=>Hs,createCookieMgr:()=>Pi,createDynamicConfig:()=>Je,createEnumStyle:()=>lr,createGuid:()=>WS,createProcessTelemetryContext:()=>ht,createTraceParent:()=>Ic,createUniqueNamespace:()=>rt,createUnloadHandlerContainer:()=>Ia,dateNow:()=>ir,detachEvent:()=>Em,disallowsSameSiteNone:()=>Yl,doPerf:()=>dr,dumpObj:()=>te,eventOff:()=>Oi,eventOn:()=>Wn,extend:()=>Aa,findW3cTraceParent:()=>Pc,forceDynamicConversion:()=>wp,formatErrorMessageXdr:()=>ga,formatErrorMessageXhr:()=>Ti,formatTraceParent:()=>bc,generateW3CId:()=>Da,getCommonSchemaMetaData:()=>$s,getConsole:()=>oc,getCookieValue:()=>KS,getCrypto:()=>ac,getDocument:()=>fr,getDynamicConfigHandler:()=>pc,getExceptionName:()=>We,getFieldValueType:()=>Xn,getGlobal:()=>pt,getGlobalInst:()=>le,getHistory:()=>Bf,getIEVersion:()=>uc,getISOString:()=>Vt,getJSON:()=>et,getLocation:()=>Ea,getMsCrypto:()=>sc,getNavigator:()=>wr,getPerformance:()=>qi,getResponseText:()=>Nn,getSetValue:()=>ic,getTenantId:()=>td,getTime:()=>Lt,getWindow:()=>Nr,hasDocument:()=>na,hasHistory:()=>w_,hasJSON:()=>Gn,hasNavigator:()=>ju,hasOwnProperty:()=>Cr,hasWindow:()=>ps,isArray:()=>re,isArrayValid:()=>bm,isBeaconsSupported:()=>Ot,isBoolean:()=>wn,isChromium:()=>od,isDate:()=>Hf,isDocumentObjectAvailable:()=>jS,isError:()=>ea,isFetchSupported:()=>Ii,isFunction:()=>ue,isGreaterThanZero:()=>So,isIE:()=>uo,isLatency:()=>nd,isNotTruthy:()=>I_,isNullOrUndefined:()=>F,isNumber:()=>Jr,isObject:()=>nr,isReactNative:()=>so,isSampledFlag:()=>xc,isString:()=>Se,isTruthy:()=>dn,isTypeof:()=>y_,isUint8ArrayAvailable:()=>zS,isUndefined:()=>Te,isValidSpanId:()=>zn,isValidTraceId:()=>Vn,isValidTraceParent:()=>Gs,isValueAssigned:()=>jr,isValueKind:()=>kc,isWindowObjectAvailable:()=>VS,isXhrSupported:()=>Ls,mergeEvtNamespace:()=>Kt,newGuid:()=>yc,newId:()=>vc,normalizeJsName:()=>ha,objDefineAccessors:()=>P_,objForEachKey:()=>oe,objFreeze:()=>Xt,objKeys:()=>Qr,objSeal:()=>A_,onConfigChange:()=>Dr,openXhr:()=>$S,optimizeObject:()=>wt,parseResponse:()=>xa,parseTraceParent:()=>ya,perfNow:()=>Ku,prependTransports:()=>Di,proxyAssign:()=>gp,proxyFunctionAs:()=>Ni,proxyFunctions:()=>zt,random32:()=>xi,randomValue:()=>dc,removeEventHandler:()=>Wl,removeEventListeners:()=>Eo,removePageHideEventListener:()=>Fc,removePageShowEventListener:()=>Mc,removePageUnloadEventListener:()=>Uc,safeGetCookieMgr:()=>Xp,safeGetLogger:()=>Tn,sanitizeProperty:()=>id,setEnableEnvMocks:()=>xp,setProcessTelemetryTimings:()=>Gc,setValue:()=>rn,strContains:()=>hr,strEndsWith:()=>ia,strFunction:()=>cs,strObject:()=>vi,strPrototype:()=>fn,strStartsWith:()=>Es,strTrim:()=>Ue,strUndefined:()=>Cn,throwError:()=>cr,toISOString:()=>Vt,useXDomainRequest:()=>cc});var Ca=O(()=>{XS();tN();iN();Me();ad()});var Ra,sd,ud,Pm=O(()=>{Ra="REAL_TIME",sd="NEAR_REAL_TIME",ud="BEST_EFFORT"});var yn,cd,aN,Am,sN,uN,Cm,fd,Bc,qs,cN,fN,lN,ld,Rm,dd,vd,_d,jc,wm,Om,dN,Xs,Lm,pd,Vc=O(()=>{yn="",cd="drop",aN="send",Am="requeue",sN="rspFail",uN="oth",Cm="no-cache, no-store",fd="application/x-json-stream",Bc="cache-control",qs="content-type",cN="kill-tokens",fN="kill-duration",lN="time-delta-millis",ld="client-version",Rm="client-id",dd="time-delta-to-apply-millis",vd="upload-time",_d="apikey",jc="AuthMsaDeviceTicket",wm="WebAuthToken",Om="AuthXToken",dN="NoResponseBody",Xs="msfpc",Lm="trace",pd="user"});var zc,md,hd,gd,Kc,xe,Jn,Wt,vr,Qn,Lr,Zn,wa,Ed,Oa,Sd,La,Nd,Td,vN,Ym,Um,_N,pN,Dd,Fm,Mm,mN,hN,Hm,km,Gm,gN,yd,Id,xd,Wc,Bm,In,Js,jm,ut,Yt,$c,qc,Qs,bd,Xc,EN,Zs,Pd,Ad,eu,Vm,Jc,Cd,Rd,ru,SN,wd,Od,Ld,Qc,NN,TN,zm,Km,DN,yN,IN,Yd,Zc,No,Ya,tu=O(()=>{zc="allowRequestSending",md="firstRequestSent",hd="shouldAddClockSkewHeaders",gd="getClockSkewHeaderValue",Kc="setClockSkew",xe="length",Jn="concat",Wt="iKey",vr="count",Qn="events",Lr="push",Zn="split",wa="splice",Ed="toLowerCase",Oa="hdrs",Sd="useHdrs",La="initialize",Nd="setTimeoutOverride",Td="clearTimeoutOverride",vN="payloadPreprocessor",Ym="overrideEndpointUrl",Um="avoidOptions",_N="disableEventTimings",pN="stringifyObjects",Dd="enableCompoundKey",Fm="disableXhrSync",Mm="disableFetchKeepAlive",mN="addNoResponse",hN="excludeCsMetaData",Hm="useSendBeacon",km="fetchCredentials",Gm="alwaysUseXhrOverride",gN="unloadTransports",yd="serializeOfflineEvt",Id="getOfflineRequestDetails",xd="createPayload",Wc="createOneDSPayload",Bm="payloadBlob",In="headers",Js="_thePayload",jm="urlString",ut="batches",Yt="sendType",$c="addHeader",qc="canSendRequest",Qs="sendQueuedRequests",bd="isCompletelyIdle",Xc="setUnloading",EN="isTenantKilled",Zs="resume",Pd="sendSynchronousBatch",Ad="_transport",eu="getWParam",Vm="isBeacon",Jc="timings",Cd="isTeardown",Rd="isSync",ru="data",SN="timeout",wd="_sendReason",Od="setKillSwitchTenants",Ld="_backOffTransmission",Qc="identifier",NN="disableOptimizeObj",TN="ignoreMc1Ms0CookieProcessing",zm="eventsLimitInMem",Km="autoFlushEventsLimit",DN="disableAutoBatchFlushLimit",yN="overrideInstrumentationKey",IN="disableTelemetry",Yd="baseData",Zc="sendAttempt",No="latency",Ya="sync"});function bN(r){var e=(r.ext||{}).intweb;return e&&jr(e[Xs])?e[Xs]:null}function xN(r){for(var e=null,t=0;e===null&&t<r[xe];t++)e=bN(r[t]);return e}var To,Ud=O(()=>{Ca();Vc();tu();To=(function(){function r(e,t){var n=t?[][Jn](t):[],i=this,o=xN(n);i[Wt]=function(){return e},i.Msfpc=function(){return o||yn},i[vr]=function(){return n[xe]},i[Qn]=function(){return n},i.addEvent=function(a){return a?(n[Lr](a),o||(o=bN(a)),!0):!1},i[Zn]=function(a,s){var u;if(a<n[xe]){var c=n[xe]-a;F(s)||(c=s<c?s:c),u=n[wa](a,c),o=xN(n)}return new r(e,u)}}return r.create=function(e,t){return new r(e,t)},r})()});var PN,AN=O(()=>{Gr();tu();PN=(function(){function r(){var e=!0,t=!0,n=!0,i="use-collector-delta",o=!1;be(r,this,function(a){a[zc]=function(){return e},a[md]=function(){n&&(n=!1,o||(e=!1))},a[hd]=function(){return t},a[gd]=function(){return i},a[Kc]=function(s){o||(s?(i=s,t=!0,o=!0):t=!1,e=!0)}})}return r.__ieDyn=1,r})()});var Ub,CN,RN=O(()=>{Gr();Ca();tu();Ub=1e3,CN=(function(){function r(){var e={};function t(n){var i=[];return n&&R(n,function(o){i[Lr](Ue(o))}),i}be(r,this,function(n){n[Od]=function(i,o){if(i&&o)try{var a=t(i[Zn](","));if(o==="this-request-only")return a;for(var s=parseInt(o,10)*Ub,u=0;u<a[xe];++u)e[a[u]]=ir()+s}catch{return[]}return[]},n[EN]=function(i){var o=e,a=Ue(i);return o[a]!==void 0&&o[a]>ir()?!0:(delete o[a],!1)}})}return r.__ieDyn=1,r})()});function ON(r){return!(r>=300&&r<500&&r!=429||r==501||r==505)}function Fd(r){var e=0,t=wN*Fb,n=wN*Mb,i=Math.floor(Math.random()*(n-t))+t;return e=Math.pow(2,r)*i,Math.min(e,Hb)}var Fb,Mb,wN,Hb,Wm=O(()=>{Fb=.8,Mb=1.2,wN=3e3,Hb=6e5});function Vb(r,e,t,n,i){if(i&&e){var o=r(i.value,i.kind,i.propertyType);if(o>-1){var a=e[LN];a||(a=e[LN]={f:{}});var s=a[Md];if(s||(s=a[Md]={}),t)for(var u=0;u<t.length;u++){var c=t[u];s[c]||(s[c]={f:{}});var f=s[c][Md];f||(f=s[c][Md]={}),s=f}s=s[n]={},re(i.value)?s.a={t:o}:s.t=o}}}var kb,Gb,YN,UN,Bb,LN,Md,jb,FN,MN=O(()=>{Gr();Ca();Ud();Vc();me();kb=20,Gb=3984588,YN=65e3,UN=2e6,Bb=Math.min(UN,YN),LN="metadata",Md="f",jb=/\./,FN=(function(){function r(e,t,n,i,o,a){var s="data",u="baseData",c="ext",f=!!i,d=!0,v=t,m={},_=!!a,N=o||$s;be(r,this,function(h){h.createPayload=function(I,w,Y,B,$,ie){return{apiKeys:[],payloadBlob:yn,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:I,isTeardown:w,isSync:Y,isBeacon:B,sendType:ie,sendReason:$}},h.appendPayload=function(I,w,Y){var B=I&&w&&!I.overflow;return B&&dr(e,function(){return"Serializer:appendPayload"},function(){for(var $=w.events(),ie=I.payloadBlob,z=I.numEvents,G=!1,J=[],ce=[],_e=I.isBeacon,g=_e?YN:Gb,y=_e?Bb:UN,M=0,V=0;M<$.length;){var D=$[M];if(D){if(z>=Y){I.overflow=w.split(M);break}var Q=h.getEventBlob(D);if(Q&&Q.length<=y){var j=Q.length,pe=ie.length;if(pe+j>g){I.overflow=w.split(M);break}ie&&(ie+=`
`),ie+=Q,V++,V>kb&&(Ln(ie,0,1),V=0),G=!0,z++}else Q?J.push(D):ce.push(D),$.splice(M,1),M--}M++}if(J.length>0&&I.sizeExceed.push(To.create(w.iKey(),J)),ce.length>0&&I.failedEvts.push(To.create(w.iKey(),ce)),G){I.batches.push(w),I.payloadBlob=ie,I.numEvents=z;var K=w.iKey();Oe(I.apiKeys,K)===-1&&I.apiKeys.push(K)}},function(){return{payload:I,theBatch:{iKey:w.iKey(),evts:w.events()},max:Y}}),B},h.getEventBlob=function(I){try{return dr(e,function(){return"Serializer.getEventBlob"},function(){var w={};w.name=I.name,w.time=I.time,w.ver=I.ver,w.iKey="o:"+td(I.iKey);var Y={},B;_||(B=function(G,J,ce){Vb(N,Y,G,J,ce)});var $=I[c];$&&(w[c]=Y,oe($,function(G,J){var ce=Y[G]={};T(J,ce,"ext."+G,!0,null,null,!0)}));var ie=w[s]={};ie.baseType=I.baseType;var z=ie[u]={};return T(I.baseData,z,u,!1,[u],B,d),T(I.data,ie,s,!1,[],B,d),JSON.stringify(w)},function(){return{item:I}})}catch{return null}};function b(I,w){var Y=m[I];return Y===void 0&&(I.length>=7&&(Y=Es(I,"ext.metadata")||Es(I,"ext.web")),m[I]=Y),Y}function T(I,w,Y,B,$,ie,z){oe(I,function(G,J){var ce=null;if(J||jr(J)){var _e=Y,g=G,y=$,M=w;if(f&&!B&&jb.test(G)){var V=G.split("."),D=V.length;if(D>1){y&&(y=y.slice());for(var Q=0;Q<D-1;Q++){var j=V[Q];M=M[j]=M[j]||{},_e+="."+j,y&&y.push(j)}g=V[D-1]}}var pe=B&&b(_e,g);if(!pe&&v&&v.handleField(_e,g)?ce=v.value(_e,g,J,n):ce=id(g,J,n),ce){var K=ce.value;if(M[g]=K,ie&&ie(y,g,ce),z&&typeof K=="object"&&!re(K)){var P=y;P&&(P=P.slice(),P.push(g)),T(J,K,_e+"."+g,B,P,ie,z)}}}})}})}return r.__ieDyn=1,r})()});function nu(r,e){return{set:function(t,n){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return eE([r,e],t,n,i)}}}var $m=O(()=>{me()});function Fa(r,e,t){Xm[r]=e,t!==!1&&(Jm[e]=r)}function Hd(r,e){var t=!1;if(r&&e){var n=Qr(r);if(n&&n[xe]>0)for(var i=e[Ed](),o=0;o<n[xe];o++){var a=n[o];if(a&&Cr(e,a)&&a[Ed]()===i){t=!0;break}}}return t}function iu(r,e,t,n){e&&t&&t[xe]>0&&(n&&Xm[e]?(r[Oa][Xm[e]]=t,r[Sd]=!0):r.url+="&"+e+"="+t)}function $b(r,e,t){for(var n=0;n<r[xe];n++)if(r[n].name===e){r[n].value=t;return}r[Lr]({name:e,value:t})}function qb(r,e){for(var t=0;t<r[xe];t++)if(r[t].name===e){r[wa](t,1);return}}var Ua,qm,zb,Kb,Wb,Xm,Jm,HN,kN=O(()=>{Gr();Ca();me();AN();Ud();Vc();RN();Wm();MN();$m();tu();qm="sendAttempt",zb="&"+dN+"=true",Kb="?cors=true&"+qs[Ed]()+"="+fd,Wb=(Ua={},Ua[1]=Am,Ua[100]=Am,Ua[200]="sent",Ua[8004]=cd,Ua[8003]=cd,Ua),Xm={},Jm={};Fa(jc,jc,!1);Fa(ld,ld);Fa(Rm,"Client-Id");Fa(_d,_d);Fa(dd,dd);Fa(vd,vd);Fa(Om,Om);HN=(function(){function r(e,t,n,i){var o,a,s,u,c=!1,f,d,v,m,_,N,h,b,T,I,w,Y,B,$,ie,z,G,J,ce,_e,g,y,M,V,D,Q,j,pe;be(r,this,function(K){rr();var P=!0;K[La]=function(E,L,H){V||(_=L,Y=L.getCookieMgr(),d=H,v=d.diagLog(),_n(_e,Dr(E,function(ee){var de,Ie=ee.cfg,ne=ee.cfg.extensionConfig[H.identifier];D=nu(ne[Nd],ne[Td]),jr(Ie.anonCookieName)?$b(h,"anoncknm",Ie.anonCookieName):qb(h,"anoncknm"),g=ne[vN],y=ne.payloadListener;var l=ne.httpXHROverride,p=ne[Ym]?ne[Ym]:Ie.endpointUrl;o=p+Kb,$=Te(ne[Um])?!0:!ne[Um],w=!ne[_N];var S=ne.valueSanitizer,x=ne[pN],C=!!Ie[Dd];Te(ne[Dd])||(C=!!ne[Dd]),ie=ne.xhrTimeout,z=!!ne[Fm],G=!!ne[Mm],ce=ne[mN]!==!1,Q=!!ne[hN],L.getPlugin("LocalStorage")&&(G=!0),c=!so(),I=new FN(_,S,x,C,$s,Q),F(ne[Hm])||(c=!!ne[Hm]),ne[km]&&(pe=ne[km]);var U=Ve();j?j.SetConfig(U):(j=new ba,j[La](U,v));var W=l,ve=ne[Gm]?l:null,Ae=ne[Gm]?l:null,fe=[3,2];if(!l){N=!1;var Et=[];so()?(Et=[2,1],fe=[2,1,3]):Et=[1,2,3],Et=Di(Et,ne.transports),l=Ce(Et,!1),l||mt(v,"No available transport to send events"),W=Ce(Et,!0)}ve||(fe=Di(fe,ne[gN]),ve=Ce(fe,!0)),J=!N&&(c&&Ot()||!G&&Ii(!0)),m=(de={},de[0]=l,de[1]=W||Ce([1,2,3],!0),de[2]=ve||W||Ce([1],!0),de[3]=Ae||Ce([2,3],!0)||W||Ce([1],!0),de)})),V=!0)},K.addResponseHandler=function(E){return M[Lr](E),{rm:function(){var L=M.indexOf(E);L>=0&&M[wa](L,1)}}},K[yd]=function(E){try{if(I)return I.getEventBlob(E)}catch{}return yn},K[Id]=function(){try{var E=I&&I[xd](0,!1,!1,!1,1,0);return Z(E,$)}catch{}return null},K[Wc]=function(E,L){try{var H=[];R(E,function(l){L&&(l=wt(l));var p=To.create(l[Wt],[l]);H[Lr](p)});for(var ee=null;H[xe]>0&&I;){var de=H.shift();de&&de[vr]()>0&&(ee=ee||I[xd](0,!1,!1,!1,1,0),I.appendPayload(ee,de,e))}var Ie=Z(ee,$),ne={data:ee[Bm],urlString:Ie.url,headers:Ie[Oa],timeout:ie,disableXhrSync:z,disableFetchKeepAlive:G};return $&&(Hd(ne[In],Bc)||(ne[In][Bc]=Cm),Hd(ne[In],qs)||(ne[In][qs]=fd)),ne}catch{}return null};function Ce(E,L){try{return j&&j.getSenderInst(E,L)}catch{}return null}K._getDbgPlgTargets=function(){return[m[0],a,I,m,Ve(),o]};function Ve(){try{var E={xdrOnComplete:Mr,fetchOnComplete:Ft,xhrOnComplete:Wr,beaconOnRetry:vt},L={enableSendPromise:!1,isOneDs:!0,disableCredentials:!P,fetchCredentials:pe,disableXhr:!1,disableBeacon:!c,disableBeaconSync:!c,disableFetchKeepAlive:G,timeWrapper:D,addNoResponse:ce,senderOnCompleteCallBack:E};return L}catch{}return null}function Mr(E,L,H){var ee=Nn(E);Pr(L,200,{},ee),$t(ee)}function rr(){var E;o=null,a=new CN,s=!1,u=new PN,c=!1,f=0,d=null,v=null,m=null,_=null,N=!0,h=[],b={},T=[],I=null,w=!1,Y=null,B=!1,$=!1,ie=E,z=E,G=E,J=E,ce=E,_e=[],g=E,y=E,M=[],V=!1,D=nu(),Q=!1,j=null}function Ft(E,L,H,ee){var de=function(l,p,S){Pr(L,l,p,S),$t(S)},Ie={},ne=E[In];ne&&ne.forEach(function(l,p){Ie[p]=l}),de(E.status,Ie,H||yn)}function Wr(E,L,H){var ee=Nn(E);Pr(L,E.status,yi(E,!0),ee),$t(ee)}function Pr(E,L,H,ee){try{E(L,H,ee)}catch(de){k(v,2,518,te(de))}}function vt(E,L,H){var ee=E,de=200,Ie=ee[Js],ne=E[jm]+(ce?zb:yn);try{var l=wr();if(Ie){var p=!!_.getPlugin("LocalStorage"),S=[],x=[];R(Ie[ut],function(C){if(S&&C&&C[vr]()>0)for(var U=C[Qn](),W=0;W<U[xe];W++)if(l.sendBeacon(ne,I.getEventBlob(U[W])))x[Lr](C[W]);else{S[Lr](C[Zn](W));break}else S[Lr](C[Zn](0))}),x[xe]>0&&(Ie.sentEvts=x),p||Hr(S,8003,Ie[Yt],!0)}else de=0}catch(C){mt(v,"Failed to send telemetry using sendBeacon API. Ex:"+te(C)),de=0}finally{Pr(L,de,{},yn)}}function Ge(E){return E===2||E===3}function Ye(E){return B&&Ge(E)&&(E=2),E}K[$c]=function(E,L){b[E]=L},K.removeHeader=function(E){delete b[E]},K[qc]=function(){return qe()&&u[zc]()},K[Qs]=function(E,L){Te(E)&&(E=0),B&&(E=Ye(E),L=2),A(T,E,0)&&ae(Ke(),0,!1,E,L||0)},K[bd]=function(){return!s&&f===0&&T[xe]===0},K[Xc]=function(E){B=E},K.addBatch=function(E){if(E&&E[vr]()>0){if(a.isTenantKilled(E[Wt]()))return!1;T[Lr](E)}return!0},K.teardown=function(){T[xe]>0&&ae(Ke(),0,!0,2,2),R(_e,function(E){E&&E.rm&&E.rm()}),_e=[]},K.pause=function(){s=!0},K[Zs]=function(){s=!1,K[Qs](0,4)},K[Pd]=function(E,L,H){E&&E[vr]()>0&&(F(L)&&(L=1),B&&(L=Ye(L),H=2),ae([E],0,!1,L,H||0))};function qe(){return!s&&f<t}function Ke(){var E=T;return T=[],E}function A(E,L,H){var ee=!1;return E&&E[xe]>0&&!s&&m[L]&&I&&(ee=L!==0||qe()&&(H>0||u[zc]())),ee}function q(E){var L={};return E&&R(E,function(H,ee){L[ee]={iKey:H[Wt](),evts:H[Qn]()}}),L}function ae(E,L,H,ee,de){if(!(!E||E[xe]===0)){if(s){Hr(E,1,ee);return}ee=Ye(ee);try{var Ie=E,ne=ee!==0;dr(_,function(){return"HttpManager:_sendBatches"},function(l){l&&(E=E.slice(0));for(var p=[],S=null,x=Lt(),C=m[ee]||(ne?m[1]:m[0]),U=C&&C[Ad],W=J&&(B||Ge(ee)||U===3||C._isSync&&U===2);A(E,ee,L);){var ve=E.shift();ve&&ve[vr]()>0&&(a.isTenantKilled(ve[Wt]())?p[Lr](ve):(S=S||I[xd](L,H,ne,W,de,ee),I.appendPayload(S,ve,e)?S.overflow!==null&&(E=[S.overflow][Jn](E),S.overflow=null,Re(S,x,Lt(),de),x=Lt(),S=null):(Re(S,x,Lt(),de),x=Lt(),E=[ve][Jn](E),S=null)))}S&&Re(S,x,Lt(),de),E[xe]>0&&(T=E[Jn](T)),Hr(p,8004,ee)},function(){return{batches:q(Ie),retryCount:L,isTeardown:H,isSynchronous:ne,sendReason:de,useSendBeacon:Ge(ee),sendType:ee}},!ne)}catch(l){k(v,2,48,"Unexpected Exception sending batch: "+te(l))}}}function Z(E,L){var H={url:o,hdrs:{},useHdrs:!1};L?(H[Oa]=Aa(H[Oa],b),H.useHdrs=Qr(H.hdrs)[xe]>0):oe(b,function(l,p){Jm[l]?iu(H,Jm[l],p,!1):(H[Oa][l]=p,H[Sd]=!0)}),iu(H,Rm,"NO_AUTH",L),iu(H,ld,Ws,L);var ee=yn;R(E.apiKeys,function(l){ee[xe]>0&&(ee+=","),ee+=l}),iu(H,_d,ee,L),iu(H,vd,ir().toString(),L);var de=at(E);if(jr(de)&&(H.url+="&ext.intweb.msfpc="+de),u[hd]()&&iu(H,dd,u[gd](),L),_[eu]){var Ie=_[eu]();Ie>=0&&(H.url+="&w="+Ie)}for(var ne=0;ne<h[xe];ne++)H.url+="&"+h[ne].name+"="+h[ne].value;return H}function se(E,L,H){E[L]=E[L]||{},E[L][d.identifier]=H}function Re(E,L,H,ee){if(E&&E.payloadBlob&&E.payloadBlob[xe]>0){var de=!!g,Ie=m[E.sendType];!Ge(E[Yt])&&E[Vm]&&E.sendReason===2&&(Ie=m[2]||m[3]||Ie);var ne=$;(E.isBeacon||Ie[Ad]===3)&&(ne=!1);var l=Z(E,ne);ne=ne||l[Sd];var p=Lt();dr(_,function(){return"HttpManager:_doPayloadSend"},function(){for(var S=0;S<E.batches[xe];S++)for(var x=E[ut][S],C=x[Qn](),U=0;U<C[xe];U++){var W=C[U];if(w){var ve=W[Jc]=W[Jc]||{};se(ve,"sendEventStart",p),se(ve,"serializationStart",L),se(ve,"serializationCompleted",H)}W[qm]>0?W[qm]++:W[qm]=1}Hr(E[ut],1e3+(ee||0),E[Yt],!0);var Ae={data:E[Bm],urlString:l.url,headers:l[Oa],_thePayload:E,_sendReason:ee,timeout:ie,disableXhrSync:z,disableFetchKeepAlive:G};ne&&(Hd(Ae[In],Bc)||(Ae[In][Bc]=Cm),Hd(Ae[In],qs)||(Ae[In][qs]=fd));var fe=null;Ie&&(fe=function(Et){u[md]();var di=function(An,xf){Fe(An,xf,E,ee)},St=E[Cd]||E[Rd];try{Ie.sendPOST(Et,di,St),y&&y(Ae,Et,St,E[Vm])}catch(An){mt(v,"Unexpected exception sending payload. Ex:"+te(An)),Pr(di,0,{})}}),dr(_,function(){return"HttpManager:_doPayloadSend.sender"},function(){if(fe)if(E[Yt]===0&&f++,de&&!E.isBeacon&&Ie[Ad]!==3){var Et={data:Ae[ru],urlString:Ae[jm],headers:Aa({},Ae[In]),timeout:Ae[SN],disableXhrSync:Ae[Fm],disableFetchKeepAlive:Ae[Mm]},di=!1;dr(_,function(){return"HttpManager:_doPayloadSend.sendHook"},function(){try{g(Et,function(St){di=!0,!N&&!St[Js]&&(St[Js]=St[Js]||Ae[Js],St[wd]=St[wd]||Ae[wd]),fe(St)},E.isSync||E[Cd])}catch{di||fe(Ae)}})}else fe(Ae)})},function(){return{thePayload:E,serializationStart:L,serializationCompleted:H,sendReason:ee}},E[Rd])}E.sizeExceed&&E.sizeExceed[xe]>0&&Hr(E.sizeExceed,8003,E[Yt]),E.failedEvts&&E.failedEvts[xe]>0&&Hr(E.failedEvts,8002,E[Yt])}function Pe(E,L){w&&R(E,function(H){var ee=H[Jc]=H[Jc]||{};se(ee,"sendEventCompleted",L)})}function Fe(E,L,H,ee){var de=9e3,Ie=null,ne=!1,l=!1;try{var p=!0;if(typeof E!==Cn){if(L){u[Kc](L[lN]);var S=L[fN]||L["kill-duration-seconds"];R(a[Od](L[cN],S),function(C){R(H[ut],function(U){if(U[Wt]()===C){Ie=Ie||[];var W=U[Zn](0);H.numEvents-=W[vr](),Ie[Lr](W)}})})}if(E==200||E==204){de=200;return}(!ON(E)||H.numEvents<=0)&&(p=!1),de=9e3+E%1e3}if(p){de=100;var x=H.retryCnt;H[Yt]===0&&(x<n?(ne=!0,ot(function(){H[Yt]===0&&f--,ae(H[ut],x+1,H[Cd],B?2:H[Yt],5)},B,Fd(x))):(l=!0,B&&(de=8001)))}}finally{ne||(u[Kc](),Xe(H,de,ee,l)),Hr(Ie,8004,H[Yt])}}function Xe(E,L,H,ee){try{ee&&d[Ld]();var de=E[ut];L===200&&(de=E.sentEvts||E[ut],!ee&&!E[Rd]&&d._clearBackOff(),ar(de)),Hr(de,L,E[Yt],!0)}finally{E[Yt]===0&&(f--,H!==5&&K.sendQueuedRequests(E[Yt],H))}}function ar(E){if(w){var L=Lt();R(E,function(H){H&&H[vr]()>0&&Pe(H[Qn](),L)})}}function ot(E,L,H){L?E():D.set(E,H)}function at(E){for(var L=0;L<E.batches[xe];L++){var H=E[ut][L].Msfpc();if(H)return encodeURIComponent(H)}return yn}function $t(E){var L=M;try{for(var H=0;H<L[xe];H++)try{L[H](E)}catch(de){k(v,1,519,"Response handler failed: "+de)}if(E){var ee=JSON.parse(E);jr(ee.webResult)&&jr(ee.webResult[Xs])&&Y.set("MSFPC",ee.webResult[Xs],365*86400)}}catch{}}function Hr(E,L,H,ee){if(E&&E[xe]>0&&i){var de=i[li(L)];if(de){var Ie=H!==0;dr(_,function(){return"HttpManager:_sendBatchesNotification"},function(){ot(function(){try{de.call(i,E,L,Ie,H)}catch(ne){k(v,1,74,"send request notification failed: "+ne)}},ee||Ie,0)},function(){return{batches:q(E),reason:L,isSync:Ie,sendSync:ee,sendType:H}},!Ie)}}}function li(E){var L=Wb[E];return jr(L)||(L=uN,E>=9e3&&E<=9999?L=sN:E>=8e3&&E<=8999?L=cd:E>=1e3&&E<=1999&&(L=aN)),L}})}return r.__ieDyn=1,r})()});function r0(r){return r&&r.sendPOST}var Xb,GN,Jb,VN,zN,Qb,BN,Zb,Qm,Ma,jN,yr,e0,KN,WN=O(()=>{It();Gr();Ca();_a();me();Pm();Ud();kN();Vc();Wm();$m();tu();Xb=.25,GN=500,Jb=20,VN=6,zN=2,Qb=4,BN=2,Zb=1,Qm=1e4,Ma="eventsDiscarded",jN="",yr=void 0,e0=On({eventsLimitInMem:{isVal:So,v:Qm},immediateEventLimit:{isVal:So,v:500},autoFlushEventsLimit:{isVal:So,v:0},disableAutoBatchFlushLimit:!1,httpXHROverride:{isVal:r0,v:yr},overrideInstrumentationKey:yr,overrideEndpointUrl:yr,disableTelemetry:!1,ignoreMc1Ms0CookieProcessing:!1,setTimeoutOverride:yr,clearTimeoutOverride:yr,payloadPreprocessor:yr,payloadListener:yr,disableEventTimings:yr,valueSanitizer:yr,stringifyObjects:yr,enableCompoundKey:yr,disableOptimizeObj:!1,fetchCredentials:yr,transports:yr,unloadTransports:yr,useSendBeacon:yr,disableFetchKeepAlive:yr,avoidOptions:!1,xhrTimeout:yr,disableXhrSync:yr,alwaysUseXhrOverride:!1,maxEventRetryAttempts:{isVal:Jr,v:VN},maxUnloadEventRetryAttempts:{isVal:Jr,v:zN},addNoResponse:yr,excludeCsMetaData:yr});KN=(function(r){yt(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,f=0,d,v={},m=Ra,_,N,h,b,T,I,w,Y,B,$,ie,z,G,J,ce,_e,g,y,M,V,D,Q;return be(e,t,function(j,pe){Ye(),j._getDbgPlgTargets=function(){return[T,n]},j[La]=function(l,p,S){dr(p,function(){return"PostChannel:initialize"},function(){pe[La](l,p,S),M=p.getNotifyMgr();try{ce=Kt(rt(j[Qc]),p.evtNamespace&&p.evtNamespace()),j._addHook(Dr(l,function(x){var C=x.cfg,U=ht(null,C,p);n=U.getExtCfg(j[Qc],e0),_e=nu(n[Nd],n[Td]),ie=!n[NN]&&od(),g=n[TN],P(p),d=n[zm],c=n.immediateEventLimit,w=n[Km],G=n.maxEventRetryAttempts,J=n.maxUnloadEventRetryAttempts,y=n[DN],_t(C.endpointUrl)?j.pause():s&&j[Zs](),ne(),D=n[yN],Q=!!n[IN],V&&K();var W=C.disablePageUnloadEvents||[];V=Yc(Mr,W,ce),V=Vs(Mr,W,ce)||V,V=zs(rr,C.disablePageShowEvents,ce)||V})),T[La](l,j.core,j)}catch(x){throw j.setInitialized(!1),x}},function(){return{theConfig:l,core:p,extensions:S}})},j.processTelemetry=function(l,p){Gc(l,j[Qc]),p=p||j._getTelCtx(p);var S=l;!Q&&!i&&(D&&(S[Wt]=D),Wr(S,!0),z?A(2,2):Ge()),j.processNext(S,p)},j.getOfflineSupport=function(){try{var l=T&&T[Id]();if(T)return{getUrl:function(){return l?l.url:null},serialize:Ve,batch:Ce,shouldProcess:function(p){return!Q},createPayload:function(p){return null},createOneDSPayload:function(p){if(T[Wc])return T[Wc](p,ie)}}}catch{}return null},j._doTeardown=function(l,p){A(2,2),i=!0,T.teardown(),K(),Ye()};function K(){Uc(null,ce),Fc(null,ce),Mc(null,ce)}function P(l){var p=l[eu];l[eu]=function(){var S=0;return g&&(S=S|2),S|p.call(l)}}function Ce(l){var p=jN;return l&&l[xe]&&R(l,function(S){p&&(p+=`
`),p+=S}),p}function Ve(l){var p=jN;try{Ft(l),p=T[yd](l)}catch{}return p}function Mr(l){var p=l||Nr().event;p.type!=="beforeunload"&&(z=!0,T[Xc](z)),A(2,2)}function rr(l){z=!1,T[Xc](z)}function Ft(l){l.ext&&l.ext[Lm]&&delete l.ext[Lm],l.ext&&l.ext[pd]&&l.ext[pd].id&&delete l.ext[pd].id,ie&&(l.ext=wt(l.ext),l[Yd]&&(l[Yd]=wt(l[Yd])),l[ru]&&(l[ru]=wt(l[ru])))}function Wr(l,p){if(l[Zc]||(l[Zc]=0),l[No]||(l[No]=1),Ft(l),l[Ya]){if(h||s)l[No]=3,l[Ya]=!1;else if(T){ie&&(l=wt(l)),T[Pd](To.create(l[Wt],[l]),l[Ya]===!0?1:l[Ya],3);return}}var S=l[No],x=f,C=d;S===4&&(x=u,C=c);var U=!1;if(x<C)U=!se(l,p);else{var W=1,ve=Jb;S===4&&(W=4,ve=1),U=!0,Re(l[Wt],l[No],W,ve)&&(U=!se(l,p))}U&&li(Ma,[l],pn.QueueFull)}j.setEventQueueLimits=function(l,p){n[zm]=d=So(l)?l:Qm,n[Km]=w=So(p)?p:0,ne();var S=f>l;if(!S&&Y>0)for(var x=1;!S&&x<=3;x++){var C=I[x];C&&C[ut]&&R(C[ut],function(U){U&&U[vr]()>=Y&&(S=!0)})}Z(!0,S)},j.pause=function(){Ke(),s=!0,T&&T.pause()},j[Zs]=function(){s=!1,T&&T[Zs](),Ge()},j._loadTransmitProfiles=function(l){ot(),oe(l,function(p,S){var x=S[xe];if(x>=2){var C=x>2?S[2]:0;if(S[wa](0,x-2),S[1]<0&&(S[0]=-1),S[1]>0&&S[0]>0){var U=S[0]/S[1];S[0]=Math.ceil(U)*S[1]}C>=0&&S[1]>=0&&C>S[1]&&(C=S[1]),S[Lr](C),v[p]=S}})},j.flush=function(l,p,S){l===void 0&&(l=!0);var x;if(!s)if(S=S||1,l)p||(x=Zt(function(U){p=U})),a==null?(Ke(),Fe(1,0,S),a=qe(function(){a=null,Xe(p,S)},0)):o[Lr](p);else{var C=Ke();Pr(1,1,S),p&&p(),C&&Ge()}return x},j.setMsaAuthTicket=function(l){T[$c](jc,l)},j.setAuthPluginHeader=function(l){T[$c](wm,l)},j.removeAuthPluginHeader=function(){T.removeHeader(wm)},j.hasEvents=vt,j._setTransmitProfile=function(l){m!==l&&v[l]!==void 0&&(Ke(),m=l,Ge())},zt(j,function(){return T},["addResponseHandler"]);function Pr(l,p,S){var x=Fe(l,p,S);return T[Qs](p,S),x}function vt(){return f>0}function Ge(){if(B>=0&&Fe(B,0,$)&&T[Qs](0,$),u>0&&!N&&!s){var l=v[m][2];l>=0&&(N=qe(function(){N=null,Pr(4,0,1),Ge()},l))}var p=v[m][1];!_&&!a&&p>=0&&!s&&(vt()?_=qe(function(){_=null,Pr(b===0?3:1,0,1),b++,b%=2,Ge()},p):b=0)}j[Ld]=function(){h<Qb&&(h++,Ke(),Ge())},j._clearBackOff=function(){h&&(h=0,Ke(),Ge())};function Ye(){n=null,i=!1,o=[],a=null,s=!1,u=0,c=500,f=0,d=Qm,v={},m=Ra,_=null,N=null,h=0,b=0,I={},w=0,V=!1,Y=0,B=-1,$=null,ie=!0,z=!1,G=VN,J=zN,ce=null,D=null,Q=!1,_e=nu(),T=new HN(GN,BN,Zb,{requeue:$t,send:L,sent:H,drop:ee,rspFail:de,oth:Ie}),at(),q(),ne()}function qe(l,p){p===0&&h&&(p=1);var S=1e3;return h&&(S=Fd(h-1)),_e.set(l,p*S)}function Ke(){return _!==null?(_.cancel(),_=null,b=0,!0):!1}function A(l,p){Ke(),a&&(a.cancel(),a=null),s||Pr(1,l,p)}function q(){I[4]={batches:[],iKeyMap:{}},I[3]={batches:[],iKeyMap:{}},I[2]={batches:[],iKeyMap:{}},I[1]={batches:[],iKeyMap:{}}}function ae(l,p,S){var x=I[p];x||(p=1,x=I[p]);var C=x.iKeyMap[l];return!C&&S&&(C=To.create(l),x.batches[Lr](C),x.iKeyMap[l]=C),C}function Z(l,p){T[qc]()&&!h&&(w>0&&f>w&&(p=!0),p&&a==null&&j.flush(l,function(){},20))}function se(l,p){ie&&(l=wt(l));var S=l[No],x=ae(l[Wt],S,!0);return x.addEvent(l)?(S!==4?(f++,p&&l[Zc]===0&&Z(!l.sync,Y>0&&x[vr]()>=Y)):u++,!0):!1}function Re(l,p,S,x){for(;S<=p;){var C=ae(l,p,!0);if(C&&C[vr]()>0){var U=C[Zn](0,x),W=U[vr]();if(W>0)return S===4?u-=W:f-=W,E(Ma,[U],pn.QueueFull),!0}S++}return Pe(),!1}function Pe(){for(var l=0,p=0,S=function(C){var U=I[C];U&&U[ut]&&R(U[ut],function(W){C===4?l+=W[vr]():p+=W[vr]()})},x=1;x<=4;x++)S(x);f=p,u=l}function Fe(l,p,S){var x=!1,C=p===0;return!C||T[qc]()?dr(j.core,function(){return"PostChannel._queueBatches"},function(){for(var U=[],W=4;W>=l;){var ve=I[W];ve&&ve.batches&&ve.batches[xe]>0&&(R(ve[ut],function(Ae){T.addBatch(Ae)?x=x||Ae&&Ae[vr]()>0:U=U[Jn](Ae[Qn]()),W===4?u-=Ae[vr]():f-=Ae[vr]()}),ve[ut]=[],ve.iKeyMap={}),W--}U[xe]>0&&li(Ma,U,pn.KillSwitch),x&&B>=l&&(B=-1,$=0)},function(){return{latency:l,sendType:p,sendReason:S}},!C):(B=B>=0?Math.min(B,l):l,$=Math.max($,S)),x}function Xe(l,p){Pr(1,0,p),Pe(),ar(function(){l&&l(),o[xe]>0?a=qe(function(){a=null,Xe(o.shift(),p)},0):(a=null,Ge())})}function ar(l){T[bd]()?l():a=qe(function(){a=null,ar(l)},Xb)}function ot(){Ke(),at(),m=Ra,Ge()}function at(){v={},v[Ra]=[2,1,0],v[sd]=[6,3,0],v[ud]=[18,9,0]}function $t(l,p){var S=[],x=G;z&&(x=J),R(l,function(C){C&&C[vr]()>0&&R(C[Qn](),function(U){U&&(U[Ya]&&(U[No]=4,U[Ya]=!1),U[Zc]<x?(Gc(U,j[Qc]),Wr(U,!1)):S[Lr](U))})}),S[xe]>0&&li(Ma,S,pn.NonRetryableStatus),z&&A(2,2)}function Hr(l,p){var S=M||{},x=S[l];if(x)try{x.apply(S,p)}catch(C){k(j.diagLog(),1,74,l+" notification failed: "+C)}}function li(l,p){for(var S=[],x=2;x<arguments.length;x++)S[x-2]=arguments[x];p&&p[xe]>0&&Hr(l,[p][Jn](S))}function E(l,p){for(var S=[],x=2;x<arguments.length;x++)S[x-2]=arguments[x];p&&p[xe]>0&&R(p,function(C){C&&C[vr]()>0&&Hr(l,[C.events()][Jn](S))})}function L(l,p,S){l&&l[xe]>0&&Hr("eventsSendRequest",[p>=1e3&&p<=1999?p-1e3:0,S!==!0])}function H(l,p){E("eventsSent",l,p),Ge()}function ee(l,p){E(Ma,l,p>=8e3&&p<=8999?p-8e3:pn.Unknown)}function de(l){E(Ma,l,pn.NonRetryableStatus),Ge()}function Ie(l,p){E(Ma,l,pn.Unknown),Ge()}function ne(){y?Y=0:Y=Math.max(GN*(BN+1),d/6)}}),t}return e.__ieDyn=1,e})(Ri)});var $N={};Ou($N,{BE_PROFILE:()=>ud,NRT_PROFILE:()=>sd,PostChannel:()=>KN,RT_PROFILE:()=>Ra});var qN=O(()=>{Pm();WN()});var JN=_r(ei=>{"use strict";var t0=ei&&ei.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,i)}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),n0=ei&&ei.__setModuleDefault||(Object.create?(function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}):function(r,e){r.default=e}),XN=ei&&ei.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&t0(e,r,t);return n0(e,r),e};Object.defineProperty(ei,"__esModule",{value:!0});ei.oneDataSystemClientFactory=void 0;var i0=async(r,e,t)=>{let n=await Promise.resolve().then(()=>XN((Ca(),Lu(oN)))),i=await Promise.resolve().then(()=>XN((qN(),Lu($N)))),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 f={alwaysUseXhrOverride:!0,httpXHROverride:t};s.extensionConfig[a.identifier]=f}let c=e.workspace.getConfiguration("telemetry").get("internalTesting");return o.initialize(s,[]),o.addTelemetryInitializer(f=>{f.ext=f.ext??{},f.ext.web=f.ext.web??{},f.ext.web.consentDetails='{"GPC_DataSharingOptIn":false}',c&&(f.ext.utc=f.ext.utc??{},f.ext.utc.flags=8462029)}),o},o0=async(r,e,t)=>{let n=await i0(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!
`+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!
`+a.message)}},dispose:async()=>new Promise(s=>{if(!n){s();return}n.unload(!1,()=>{s(),n=void 0},1e3)})}};ei.oneDataSystemClientFactory=o0});var QN,ou,au,ef,Do,xn,Yr,kd,nn=O(()=>{QN="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",ou="sampleRate",au="ProcessLegacy",ef="http.method",Do="https://dc.services.visualstudio.com",xn="/v2/track",Yr="not_specified",kd="iKey"});var Ha,Zm=O(()=>{Me();Ha=Q_({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 Ui,ge,ri,yo,Fi,Mi,Gd,Ir,bn,Io,Bd,jd,Vd,eh,zd,Kd,ka,su,rh,rf,Ga,on,tt,ct,Ba,ti,ja,Wd,$d,th,Va,xo,tf,nf,za,uu,Ka,nh,Ur=O(()=>{Ui="split",ge="length",ri="toLowerCase",yo="ingestionendpoint",Fi="toString",Mi="push",Gd="removeItem",Ir="name",bn="message",Io="count",Bd="preTriggerDate",jd="disabled",Vd="interval",eh="daysOfMonth",zd="date",Kd="getUTCDate",ka="stringify",su="pathname",rh="correlationHeaderExcludePatterns",rf="extensionConfig",Ga="exceptions",on="parsedStack",tt="properties",ct="measurements",Ba="sizeInBytes",ti="typeName",ja="severityLevel",Wd="problemGroup",$d="isManual",th="CreateFromInterface",Va="assembly",xo="fileName",tf="hasFullStack",nf="level",za="method",uu="line",Ka="duration",nh="receivedResponse"});function qd(r,e,t){var n=e[ge],i=ih(r,e);if(i[ge]!==n){for(var o=0,a=i;t[a]!==void 0;)o++,a=Rr(i,0,147)+oh(o);i=a}return i}function ih(r,e){var t;return e&&(e=Ue(pr(e)),e[ge]>150&&(t=Rr(e,0,150),k(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=Ue(pr(e)),e[ge]>t&&(n=Rr(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 bo(r,e){return Qd(r,e,2048,66)}function cu(r,e){var t;return e&&e[ge]>32768&&(t=Rr(e,0,32768),k(r,2,56,"message is too long, it has been truncated to 32768 characters.",{message:e},!0)),t||e}function Xd(r,e){var t;if(e){var n=""+e;n[ge]>32768&&(t=Rr(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 ft(r,e){if(e){var t={};oe(e,function(n,i){if(nr(i)&&Gn())try{i=et()[ka](i)}catch(o){k(r,2,49,"custom property is not valid",{exception:o},!0)}i=ke(r,i,8192),n=qd(r,n,t),t[n]=i}),e=t}return e}function lt(r,e){if(e){var t={};oe(e,function(n,i){n=qd(r,n,t),t[n]=i}),e=t}return e}function Jd(r,e){return e&&Qd(r,e,128,69)[Fi]()}function Qd(r,e,t,n){var i;return e&&(e=Ue(pr(e)),e[ge]>t&&(i=Rr(e,0,t),k(r,2,n,"input is too long, it has been truncated to "+t+" characters.",{data:e},!0))),i||e}function oh(r){var e="00"+r;return Ln(e,e[ge]-3)}var an=O(()=>{Me();me();Ur()});function Wa(r){var e=eT,t=a0,n=t[e];return ZN.createElement?t[e]||(n=t[e]=ZN.createElement("a")):n={host:ah(r,!0)},n.href=r,e++,e>=t[ge]&&(e=0),eT=e,n}function rT(r){var e,t=Wa(r);return t&&(e=t.href),e}function tT(r){var e,t=Wa(r);return t&&(e=t[su]),e}function nT(r,e){return r?r.toUpperCase()+" "+e:e}function ah(r,e){var t=of(r,e)||"";if(t){var n=t.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[ge]>3&&Se(n[2])&&n[2][ge]>0)return n[2]+(n[3]||"")}return t}function of(r,e){var t=null;if(r){var n=r.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(n!=null&&n[ge]>2&&Se(n[2])&&n[2][ge]>0&&(t=n[2]||"",e&&n[ge]>2)){var i=(n[1]||"")[ri](),o=n[3]||"";(i==="http"&&o===":80"||i==="https"&&o===":443")&&(o=""),t+=o}}return t}var ZN,eT,a0,sh=O(()=>{Me();Ur();ZN=fr()||{},eT=0,a0=[null,null,null,null,null]});function af(r){return Oe(s0,r[ri]())!==-1}function iT(r){uh=r}function oT(){return uh}function aT(r,e,t){if(!e||r&&r.disableCorrelationHeaders)return!1;if(r&&r[rh]){for(var n=0;n<r.correlationHeaderExcludePatterns[ge];n++)if(r[rh][n].test(e))return!1}var i=Wa(e).host[ri]();if(i&&(Dt(i,":443")!==-1||Dt(i,":80")!==-1)&&(i=(of(e,!0)||"")[ri]()),(!r||!r.enableCorsCorrelation)&&i&&i!==t)return!1;var o=r&&r.correlationHeaderDomains;if(o){var a;if(R(o,function(c){var f=new RegExp(c.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));a=a||f.test(i)}),!a)return!1}var s=r&&r.correlationHeaderExcludedDomains;if(!s||s[ge]===0)return!0;for(var n=0;n<s[ge];n++){var u=new RegExp(s[n].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));if(u.test(i))return!1}return i&&i[ge]>0}function sT(r){if(r){var e=ch(r,Ha[1]);if(e&&e!==uh)return e}}function ch(r,e){if(r)for(var t=r[Ui](","),n=0;n<t[ge];++n){var i=t[n][Ui]("=");if(i[ge]===2&&i[0]===e)return i[1]}}function uT(r,e,t,n){var i,o=n,a=n;if(e&&e[ge]>0){var s=Wa(e);if(i=s.host,!o)if(s[su]!=null){var u=s.pathname[ge]===0?"/":s[su];u.charAt(0)!=="/"&&(u="/"+u),a=s[su],o=ke(r,t?t+" "+u:u)}else o=ke(r,e)}else i=n,o=n;return{target:i,name:o,data:a}}function cT(){var r=qi();if(r&&r.now&&r.timing){var e=r.now()+r.timing.navigationStart;if(e>0)return e}return ir()}function fT(r,e){var t=null;return r!==0&&e!==0&&!F(r)&&!F(e)&&(t=e-r),t}function lT(r,e){var t=r||{};return{getName:function(){return t[Ir]},setName:function(n){e&&e.setName(n),t[Ir]=n},getTraceId:function(){return t.traceID},setTraceId:function(n){e&&e.setTraceId(n),Vn(n)&&(t.traceID=n)},getSpanId:function(){return t.parentID},setSpanId:function(n){e&&e.setSpanId(n),zn(n)&&(t.parentID=n)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(n){e&&e.setTraceFlags(n),t.traceFlags=n}}}var s0,uh,fh=O(()=>{Me();me();nn();Zm();an();sh();Ur();s0=[Do+xn,"https://breeze.aimon.applicationinsights.io"+xn,"https://dc-int.services.visualstudio.com"+xn],uh="cid-v1:"});var fu,dT,vT,lh=O(()=>{Me();fu=lr({LocalStorage:0,SessionStorage:1}),dT=lr({AI:0,AI_AND_W3C:1,W3C:2}),vT=lr({Normal:1,Critical:2})});function dh(){return lu()?Zd(fu.LocalStorage):null}function Zd(r){try{if(F(pt()))return null;var e=new Date()[Fi](),t=le(r===fu.LocalStorage?"localStorage":"sessionStorage"),n=_T+e;t.setItem(n,e);var i=t.getItem(n)!==e;if(t[Gd](n),!i)return t}catch{}return null}function vh(){return $a()?Zd(fu.SessionStorage):null}function pT(){Po=!1,Ao=!1}function ev(r){_T=r||""}function mT(){Po=lu(!0),Ao=$a(!0)}function lu(r){return(r||Po===void 0)&&(Po=!!Zd(fu.LocalStorage)),Po}function rv(r,e){var t=dh();if(t!==null)try{return t.getItem(e)}catch(n){Po=!1,k(r,2,1,"Browser failed read of local storage. "+We(n),{exception:te(n)})}return null}function tv(r,e,t){var n=dh();if(n!==null)try{return n.setItem(e,t),!0}catch(i){Po=!1,k(r,2,3,"Browser failed write to local storage. "+We(i),{exception:te(i)})}return!1}function hT(r,e){var t=dh();if(t!==null)try{return t[Gd](e),!0}catch(n){Po=!1,k(r,2,5,"Browser failed removal of local storage item. "+We(n),{exception:te(n)})}return!1}function $a(r){return(r||Ao===void 0)&&(Ao=!!Zd(fu.SessionStorage)),Ao}function gT(){var r=[];return $a()&&oe(le("sessionStorage"),function(e){r[Mi](e)}),r}function nv(r,e){var t=vh();if(t!==null)try{return t.getItem(e)}catch(n){Ao=!1,k(r,2,2,"Browser failed read of session storage. "+We(n),{exception:te(n)})}return null}function iv(r,e,t){var n=vh();if(n!==null)try{return n.setItem(e,t),!0}catch(i){Ao=!1,k(r,2,4,"Browser failed write to session storage. "+We(i),{exception:te(i)})}return!1}function ov(r,e){var t=vh();if(t!==null)try{return t[Gd](e),!0}catch(n){Ao=!1,k(r,2,6,"Browser failed removal of session storage item. "+We(n),{exception:te(n)})}return!1}var Po,Ao,_T,_h=O(()=>{Me();lh();Ur();Po=void 0,Ao=void 0,_T=""});var u0,ET,ST=O(()=>{Me();me();_h();Ur();u0="appInsightsThrottle",ET=(function(){function r(e,t){var n=this,i,o,a,s,u,c,f,d=!1,v=!1;_(),n._getDbgPlgTargets=function(){return[f]},n.getConfig=function(){return a},n.canThrottle=function(g){var y=J(g),M=N(g);return T(M,i,y)},n.isTriggered=function(g){return ce(g)},n.isReady=function(){return d},n.flush=function(g){try{var y=_e(g);if(y&&y[ge]>0){var M=y.slice(0);return f[g]=[],R(M,function(V){m(V.msgID,V[bn],V.severity,!1)}),!0}}catch{}return!1},n.flushAll=function(){try{if(f){var g=!0;return oe(f,function(y){var M=n.flush(parseInt(y));g=g&&M}),g}}catch{}return!1},n.onReadyState=function(g,y){return y===void 0&&(y=!0),d=F(g)?!0:g,d&&y?n.flushAll():null},n.sendMessage=function(g,y,M){return m(g,y,M,!0)};function m(g,y,M,V){if(d){var D=G(g);if(!D)return;var Q=N(g),j=J(g),pe=T(Q,i,j),K=!1,P=0,Ce=ce(g);try{pe&&!Ce?(P=Math.min(Q.limit.maxSendNumber,j[Io]+1),j[Io]=0,K=!0,u[g]=!0,j[Bd]=new Date):(u[g]=pe,j[Io]+=1);var Ve=I(g);$(o,Ve,j);for(var Mr=0;Mr<P;Mr++)z(g,o,y,M)}catch{}return{isThrottled:K,throttleNum:P}}else if(V){var rr=_e(g);rr[Mi]({msgID:g,message:y,severity:M})}return null}function _(){o=Tn(e),u={},s={},f={},a={},h(109),c=en(t)?t:"",e.addUnloadHook(Dr(e.config,function(g){var y=g.cfg;i=lu();var M=y.throttleMgrCfg||{};oe(M,function(V,D){h(parseInt(V),D)})}))}function N(g){return a[g]||a[109]}function h(g,y){var M,V;try{var D=y||{},Q={};Q[jd]=!!D[jd];var j=D[Vd]||{};v=j?.daysOfMonth&&j?.daysOfMonth[ge]>0,Q[Vd]=b(j);var pe={samplingRate:((M=D.limit)===null||M===void 0?void 0:M.samplingRate)||100,maxSendNumber:((V=D.limit)===null||V===void 0?void 0:V.maxSendNumber)||1};Q.limit=pe,a[g]=Q}catch{}}function b(g){g=g||{};var y=g?.monthInterval,M=g?.dayInterval;return F(y)&&F(M)&&(g.monthInterval=3,v||(g[eh]=[28],v=!0)),g={monthInterval:g?.monthInterval,dayInterval:g?.dayInterval,daysOfMonth:g?.daysOfMonth},g}function T(g,y,M){if(g&&!g[jd]&&y&&en(M)){var V=B(),D=M[zd],Q=g[Vd],j=1;if(Q?.monthInterval){var pe=(V.getUTCFullYear()-D.getUTCFullYear())*12+V.getUTCMonth()-D.getUTCMonth();j=ie(Q.monthInterval,0,pe)}var K=1;if(v)K=Oe(Q[eh],V[Kd]());else if(Q?.dayInterval){var P=Math.floor((V.getTime()-D.getTime())/864e5);K=ie(Q.dayInterval,0,P)}return j>=0&&K>=0}return!1}function I(g,y){var M=en(y)?y:"";return g?u0+M+"-"+g:null}function w(g){try{if(g){var y=new Date;return g.getUTCFullYear()===y.getUTCFullYear()&&g.getUTCMonth()===y.getUTCMonth()&&g[Kd]()===y[Kd]()}}catch{}return!1}function Y(g,y,M){try{var V={date:B(),count:0};if(g){var D=JSON.parse(g),Q={date:B(D[zd])||V[zd],count:D[Io]||V[Io],preTriggerDate:D.preTriggerDate?B(D[Bd]):void 0};return Q}else return $(y,M,V),V}catch{}return null}function B(g){try{if(g){var y=new Date(g);if(!isNaN(y.getDate()))return y}else return new Date}catch{}return null}function $(g,y,M){try{return tv(g,y,Ue(JSON[ka](M)))}catch{}return!1}function ie(g,y,M){return g<=0?1:M>=y&&(M-y)%g==0?Math.floor((M-y)/g)+1:-1}function z(g,y,M,V){k(y,V||1,g,M)}function G(g){try{var y=N(g);return dc(1e6)<=y.limit.samplingRate}catch{}return!1}function J(g){try{var y=s[g];if(!y){var M=I(g,c);y=Y(rv(o,M),o,M),s[g]=y}return s[g]}catch{}return null}function ce(g){var y=u[g];if(F(y)){y=!1;var M=J(g);M&&(y=w(M[Bd])),u[g]=y}return u[g]}function _e(g){return f=f||{},F(f[g])&&(f[g]=[]),f[g]}}return r})()});function qa(r){if(!r)return{};var e=r[Ui](c0),t=zu(e,function(i,o){var a=o[Ui](f0);if(a[ge]===2){var s=a[0][ri](),u=a[1];i[s]=u}return i},{});if(Qr(t)[ge]>0){if(t.endpointsuffix){var n=t.location?t.location+".":"";t[yo]=t[yo]||"https://"+n+"dc."+t.endpointsuffix}t[yo]=t[yo]||Do,ia(t[yo],"/")&&(t[yo]=t[yo].slice(0,-1))}return t}var c0,f0,NT,TT=O(()=>{Me();nn();Ur();c0=";",f0="=";NT={parse:qa}});var av,DT=O(()=>{Me();nn();Ur();an();av=(function(){function r(e,t,n){var i=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o[Ir]=ke(e,n)||Yr,o.data=t,o.time=Vt(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 ni,yT=O(()=>{nn();Ur();an();ni=(function(){function r(e,t,n,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[Ir]=ke(e,t)||Yr,o[tt]=ft(e,n),o[ct]=lt(e,i)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Event",r.dataType="EventData",r})()});function gh(r,e){var t=r;return t&&!Se(t)&&(JSON&&JSON[ka]?(t=JSON[ka](r),e&&(!t||t==="{}")&&(ue(r[Fi])?t=r[Fi]():t=""+r)):t=""+r+" - (Missing JSON.stringify)"),t||""}function AT(r,e){var t=r;return r&&(t&&!Se(t)&&(t=r[hh]||r[PT]||t),t&&!Se(t)&&(t=gh(t,!0)),r.filename&&(t=t+" @"+(r.filename||"")+":"+(r.lineno||"?")+":"+(r.colno||"?"))),e&&e!=="String"&&e!=="Object"&&e!=="Error"&&Dt(t||"",e)===-1&&(t=e+": "+t),t||""}function d0(r){try{if(nr(r))return"hasFullStack"in r&&"typeName"in r}catch{}return!1}function v0(r){try{if(nr(r))return"ver"in r&&"exceptions"in r&&"properties"in r}catch{}return!1}function xT(r){return r&&r.src&&Se(r.src)&&r.obj&&re(r.obj)}function Xa(r){var e=r||"";Se(e)||(Se(e[Ut])?e=e[Ut]:e=""+e);var t=e[Ui](`
`);return{src:e,obj:t}}function _0(r){for(var e=[],t=r[Ui](`
`),n=0;n<t[ge];n++){var i=t[n];t[n+1]&&(i+="@"+t[n+1],n++),e[Mi](i)}return{src:r,obj:e}}function CT(r){var e=null;if(r)try{if(r[Ut])e=Xa(r[Ut]);else if(r[du]&&r[du][Ut])e=Xa(r[du][Ut]);else if(r.exception&&r.exception[Ut])e=Xa(r.exception[Ut]);else if(xT(r))e=r;else if(xT(r[mh]))e=r[mh];else if(Nr()&&Nr().opera&&r[hh])e=_0(r[bn]);else if(r.reason&&r.reason[Ut])e=Xa(r.reason[Ut]);else if(Se(r))e=Xa(r);else{var t=r[hh]||r[PT]||"";Se(r[IT])&&(t&&(t+=`
`),t+=" from "+r[IT]),t&&(e=Xa(t))}}catch(n){e=Xa(n)}return e||{src:"",obj:null}}function p0(r){var e="";return r&&(r.obj?R(r.obj,function(t){e+=t+`
`}):e=r.src||""),e}function m0(r){var e,t=r.obj;if(t&&t[ge]>0){e=[];var n=0,i=0;R(t,function(_){var N=_[Fi]();if(Eh.regex.test(N)){var h=new Eh(N,n++);i+=h[Ba],e[Mi](h)}});var o=32*1024;if(i>o)for(var a=0,s=e[ge]-1,u=0,c=a,f=s;a<s;){var d=e[a][Ba],v=e[s][Ba];if(u+=d+v,u>o){var m=f-c+1;e.splice(c,m);break}c=a,f=s,a++,s--}}return e}function sv(r){var e="";if(r&&(e=r.typeName||r[Ir]||"",!e))try{var t=/function (.{1,200})\(/,n=t.exec(r.constructor[Fi]());e=n&&n[ge]>1?n[1]:""}catch{}return e}function ph(r){if(r)try{if(!Se(r)){var e=sv(r),t=gh(r,!1);return(!t||t==="{}")&&(r[du]&&(r=r[du],e=sv(r)),t=gh(r,!0)),Dt(t,e)!==0&&e!=="String"?e+":"+t:t}}catch{}return""+(r||"")}var l0,du,Ut,mh,IT,hh,PT,Co,bT,Eh,RT=O(()=>{It();Me();me();nn();Ur();an();l0="<no_method>",du="error",Ut="stack",mh="stackDetails",IT="errorSrc",hh="message",PT="description";Co=(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,v0(t)?(s[Ga]=t[Ga]||[],s[tt]=t[tt],s[ct]=t[ct],t[ja]&&(s[ja]=t[ja]),t.id&&(s.id=t.id,t[tt].id=t.id),t[Wd]&&(s[Wd]=t[Wd]),F(t[$d])||(s[$d]=t[$d])):(n||(n={}),a&&(n.id=a),s[Ga]=[new bT(e,t,n)],s[tt]=ft(e,n),s[ct]=lt(e,i),o&&(s[ja]=o),a&&(s.id=a))}return r.CreateAutoException=function(e,t,n,i,o,a,s,u){var c,f=sv(o||a||e);return c={},c[bn]=AT(e,f),c.url=t,c.lineNumber=n,c.columnNumber=i,c.error=ph(o||a||e),c.evt=ph(a||e),c[ti]=f,c.stackDetails=CT(s||o||a),c.errorSrc=u,c},r.CreateFromInterface=function(e,t,n,i){var o=t[Ga]&&pi(t[Ga],function(s){return bT[th](e,s)}),a=new r(e,Jt(Jt({},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,f=n instanceof Array&&pi(n,function(d){return d.toInterface()})||void 0;return e={ver:"4.0"},e[Ga]=f,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[tf]=!0,s.message=e,s.stack=o,s.typeName=t,s)]}},r.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",r.dataType="ExceptionData",r.formatError=ph,r})(),bT=(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(d0(t))i[ti]=t[ti],i[bn]=t[bn],i[Ut]=t[Ut],i[on]=t[on]||[],i[tf]=t[tf];else{var o=t,a=o&&o.evt;ea(o)||(o=o[du]||a||o),i[ti]=ke(e,sv(o))||Yr,i[bn]=cu(e,AT(t||o,i[ti]))||Yr;var s=t[mh]||CT(t);i[on]=m0(s),re(i[on])&&pi(i[on],function(u){u[Va]=ke(e,u[Va]),u[xo]=ke(e,u[xo])}),i[Ut]=Xd(e,p0(s)),i.hasFullStack=re(i.parsedStack)&&i.parsedStack[ge]>0,n&&(n[ti]=n[ti]||i[ti])}}return r.prototype.toInterface=function(){var e,t=this,n=t[on]instanceof Array&&pi(t[on],function(o){return o.toInterface()}),i=(e={id:t.id,outerId:t.outerId,typeName:t[ti],message:t[bn],hasFullStack:t[tf],stack:t[Ut]},e[on]=n||void 0,e);return i},r.CreateFromInterface=function(e,t){var n=t[on]instanceof Array&&pi(t[on],function(o){return Eh[th](o)})||t[on],i=new r(e,Jt(Jt({},t),{parsedStack:n}));return i},r})(),Eh=(function(){function r(e,t){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var n=this;if(n[Ba]=0,typeof e=="string"){var i=e;n[nf]=t,n[za]=l0,n[Va]=Ue(i),n[xo]="",n[uu]=0;var o=i.match(r.regex);o&&o[ge]>=5&&(n[za]=Ue(o[2])||n[za],n[xo]=Ue(o[4]),n[uu]=parseInt(o[5])||0)}else n[nf]=e[nf],n[za]=e[za],n[Va]=e[Va],n[xo]=e[xo],n[uu]=e[uu],n[Ba]=0;n.sizeInBytes+=n.method[ge],n.sizeInBytes+=n.fileName[ge],n.sizeInBytes+=n.assembly[ge],n[Ba]+=r.baseSize,n.sizeInBytes+=n.level.toString()[ge],n.sizeInBytes+=n.line.toString()[ge]}return r.CreateFromInterface=function(e){return new r(e,null)},r.prototype.toInterface=function(){var e=this;return{level:e[nf],method:e[za],assembly:e[Va],fileName:e[xo],line:e[uu]}},r.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,r.baseSize=58,r})()});var wT,OT=O(()=>{wT=(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 ii,LT=O(()=>{nn();Ur();OT();an();ii=(function(){function r(e,t,n,i,o,a,s,u,c){this.aiDataContract={ver:1,metrics:1,properties:0};var f=this;f.ver=2;var d=new wT;d[Io]=i>0?i:void 0,d.max=isNaN(a)||a===null?void 0:a,d.min=isNaN(o)||o===null?void 0:o,d[Ir]=ke(e,t)||Yr,d.value=n,d.stdDev=isNaN(s)||s===null?void 0:s,f.metrics=[d],f[tt]=ft(e,u),f[ct]=lt(e,c)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",r.dataType="MetricData",r})()});function YT(r,e){return e===void 0&&(e=!1),r==null?e:r.toString()[ri]()==="true"}function vu(r){(isNaN(r)||r<0)&&(r=0),r=Math.round(r);var e=sf+r%1e3,t=sf+Math.floor(r/1e3)%60,n=sf+Math.floor(r/(1e3*60))%60,i=sf+Math.floor(r/(1e3*60*60))%24,o=Math.floor(r/(1e3*60*60*24));return e=e[ge]===1?"00"+e:e[ge]===2?"0"+e:e,t=t[ge]<2?"0"+t:t,n=n[ge]<2?"0"+n:n,i=i[ge]<2?"0"+i:i,(o>0?o+".":sf)+i+":"+n+":"+t+"."+e}function UT(r,e){var t=null;return R(r,function(n){if(n.identifier===e)return t=n,-1}),t}function FT(r,e,t,n,i){return!i&&Se(r)&&(r==="Script error."||r==="Script error")}var sf,uv=O(()=>{Me();Ur();sf=""});var Ro,MT=O(()=>{nn();uv();Ur();an();Ro=(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=Jd(e,s),u.url=bo(e,n),u[Ir]=ke(e,t)||Yr,isNaN(i)||(u[Ka]=vu(i)),u[tt]=ft(e,o),u[ct]=lt(e,a)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",r.dataType="PageviewData",r})()});var wo,HT=O(()=>{uv();fh();Ur();an();wo=(function(){function r(e,t,n,i,o,a,s,u,c,f,d,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 m=this;m.ver=2,m.id=t,m[Ka]=vu(o),m.success=a,m.resultCode=s+"",m.type=ke(e,c);var _=uT(e,n,u,i);m.data=bo(e,i)||_.data,m.target=ke(e,_.target),f&&(m.target="".concat(m.target," | ").concat(f)),m[Ir]=ke(e,_[Ir]),m[tt]=ft(e,d),m[ct]=lt(e,v)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",r.dataType="RemoteDependencyData",r})()});var Oo,kT=O(()=>{nn();Ur();an();Oo=(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||Yr,a[bn]=cu(e,t),a[tt]=ft(e,i),a[ct]=lt(e,o),n&&(a[ja]=n)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.Message",r.dataType="MessageData",r})()});var Lo,GT=O(()=>{nn();Ur();an();Lo=(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=bo(e,n),u[Ir]=ke(e,t)||Yr,u[tt]=ft(e,o),u[ct]=lt(e,a),s&&(u.domProcessing=s.domProcessing,u[Ka]=s[Ka],u.networkConnect=s.networkConnect,u.perfTotal=s.perfTotal,u[nh]=s[nh],u.sentRequest=s.sentRequest)}return r.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",r.dataType="PageviewPerformanceData",r})()});var oi,BT=O(()=>{oi=(function(){function r(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t}return r})()});var cv,jT=O(()=>{Me();cv=lr({Verbose:0,Information:1,Warning:2,Error:3,Critical:4})});var VT,zT=O(()=>{Me();Ur();VT=(function(){function r(){}return r.getConfig=function(e,t,n,i){i===void 0&&(i=!1);var o;return n&&e[rf]&&e[rf][n]&&!F(e[rf][n][t])?o=e[rf][n][t]:o=e[t],F(o)?i:o},r})()});function Uo(r){var e="ai."+r+".";return function(t){return e+t}}var uf,Fr,fv,_u,Sh,Yo,Ja,cf,pu,Nh=O(()=>{It();Me();uf=Uo("application"),Fr=Uo("device"),fv=Uo("location"),_u=Uo("operation"),Sh=Uo("session"),Yo=Uo("user"),Ja=Uo("cloud"),cf=Uo("internal"),pu=(function(r){yt(e,r);function e(){return r.call(this)||this}return e})(Ep({applicationVersion:uf("ver"),applicationBuild:uf("build"),applicationTypeId:uf("typeId"),applicationId:uf("applicationId"),applicationLayer:uf("layer"),deviceId:Fr("id"),deviceIp:Fr("ip"),deviceLanguage:Fr("language"),deviceLocale:Fr("locale"),deviceModel:Fr("model"),deviceFriendlyName:Fr("friendlyName"),deviceNetwork:Fr("network"),deviceNetworkName:Fr("networkName"),deviceOEMName:Fr("oemName"),deviceOS:Fr("os"),deviceOSVersion:Fr("osVersion"),deviceRoleInstance:Fr("roleInstance"),deviceRoleName:Fr("roleName"),deviceScreenResolution:Fr("screenResolution"),deviceType:Fr("type"),deviceMachineName:Fr("machineName"),deviceVMName:Fr("vmName"),deviceBrowser:Fr("browser"),deviceBrowserVersion:Fr("browserVersion"),locationIp:fv("ip"),locationCountry:fv("country"),locationProvince:fv("province"),locationCity:fv("city"),operationId:_u("id"),operationName:_u("name"),operationParentId:_u("parentId"),operationRootId:_u("rootId"),operationSyntheticSource:_u("syntheticSource"),operationCorrelationVector:_u("correlationVector"),sessionId:Sh("id"),sessionIsFirst:Sh("isFirst"),sessionIsNew:Sh("isNew"),userAccountAcquisitionDate:Yo("accountAcquisitionDate"),userAccountId:Yo("accountId"),userAgent:Yo("userAgent"),userId:Yo("id"),userStoreRegion:Yo("storeRegion"),userAuthUserId:Yo("authUserId"),userAnonymousUserAcquisitionDate:Yo("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:Yo("authUserAcquisitionDate"),cloudName:Ja("name"),cloudRole:Ja("role"),cloudRoleVer:Ja("roleVer"),cloudRoleInstance:Ja("roleInstance"),cloudEnvironment:Ja("environment"),cloudLocation:Ja("location"),cloudDeploymentUnit:Ja("deploymentUnit"),internalNodeName:cf("nodeName"),internalSdkVersion:cf("sdkVersion"),internalAgentVersion:cf("agentVersion"),internalSnippet:cf("snippet"),internalSdkSrc:cf("sdkSrc")}))});function Th(r,e,t,n,i,o){var a;t=ke(n,t)||Yr,(F(r)||F(e)||F(t))&&cr("Input doesn't contain all required fields");var s="";r[kd]&&(s=r[kd],delete r[kd]);var u=(a={},a[Ir]=t,a.time=Vt(new Date),a.iKey=s,a.ext=o||{},a.tags=[],a.data={},a.baseType=e,a.baseData=r,a);return F(i)||oe(i,function(c,f){u.data[c]=f}),u}var KT,WT=O(()=>{Me();nn();an();Ur();KT=(function(){function r(){}return r.create=Th,r})()});var $T,gr,qT=O(()=>{Nh();$T={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},gr=new pu});function XT(r){var e=null;if(ue(Event))e=new Event(r);else{var t=fr();t&&t.createEvent&&(e=t.createEvent("Event"),e.initEvent(r,!0,!0))}return e}var JT=O(()=>{Me()});function QT(r,e){Oi(r,null,null,e)}function lv(r){var e=fr(),t=wr(),n=!1,i=[],o=1;t&&!F(t.onLine)&&!t.onLine&&(o=2);var a=0,s=v(),u=Kt(rt("OfflineListener"),r);try{if(f(Nr())&&(n=!0),e){var c=e.body||e;c.ononline&&f(c)&&(n=!0)}}catch{n=!1}function f(I){var w=!1;return I&&(w=Wn(I,"online",N,u),w&&Wn(I,"offline",h,u)),w}function d(){return s}function v(){return!(a===2||o===2)}function m(){var I=v();s!==I&&(s=I,R(i,function(w){var Y={isOnline:s,rState:o,uState:a};try{w(Y)}catch{}}))}function _(I){a=I,m()}function N(){o=1,m()}function h(){o=2,m()}function b(){var I=Nr();if(I&&n){if(QT(I,u),e){var w=e.body||e;Te(w.ononline)||QT(w,u)}n=!1}}function T(I){return i[Mi](I),{rm:function(){var w=i.indexOf(I);if(w>-1)return i.splice(w,1)}}}return{isOnline:d,isListening:function(){return n},unload:b,addListener:T,setOnlineState:_}}var ZT=O(()=>{Me();Ur()});var eD={};Ou(eD,{AnalyticsPluginIdentifier:()=>g0,BreezeChannelIdentifier:()=>Dh,ConfigurationManager:()=>VT,ConnectionStringParser:()=>NT,ContextTagKeys:()=>pu,CtxTagKeys:()=>gr,DEFAULT_BREEZE_ENDPOINT:()=>Do,DEFAULT_BREEZE_PATH:()=>xn,Data:()=>oi,DisabledPropertyName:()=>QN,DistributedTracingModes:()=>dT,Envelope:()=>av,Event:()=>ni,EventPersistence:()=>vT,Exception:()=>Co,Extensions:()=>$T,HttpMethod:()=>ef,Metric:()=>ii,PageView:()=>Ro,PageViewPerformance:()=>Lo,ProcessLegacy:()=>au,PropertiesPluginIdentifier:()=>h0,RemoteDependencyData:()=>wo,RequestHeaders:()=>Ha,SampleRate:()=>ou,SeverityLevel:()=>cv,TelemetryItemCreator:()=>KT,ThrottleMgr:()=>ET,Trace:()=>Oo,correlationIdCanIncludeCorrelationHeader:()=>aT,correlationIdGetCorrelationContext:()=>sT,correlationIdGetCorrelationContextValue:()=>ch,correlationIdGetPrefix:()=>oT,correlationIdSetPrefix:()=>iT,createDistributedTraceContextFromTrace:()=>lT,createDomEvent:()=>XT,createOfflineListener:()=>lv,createTelemetryItem:()=>Th,createTraceParent:()=>Ic,dataSanitizeException:()=>Xd,dataSanitizeId:()=>Jd,dataSanitizeInput:()=>Qd,dataSanitizeKey:()=>ih,dataSanitizeKeyAndAddUniqueness:()=>qd,dataSanitizeMeasurements:()=>lt,dataSanitizeMessage:()=>cu,dataSanitizeProperties:()=>ft,dataSanitizeString:()=>ke,dataSanitizeUrl:()=>bo,dateTimeUtilsDuration:()=>fT,dateTimeUtilsNow:()=>cT,dsPadNumber:()=>oh,findAllScripts:()=>om,findW3cTraceParent:()=>Pc,formatTraceParent:()=>bc,getExtensionByName:()=>UT,isBeaconApiSupported:()=>Ot,isCrossOriginError:()=>FT,isInternalApplicationInsightsEndpoint:()=>af,isSampledFlag:()=>xc,isValidSpanId:()=>zn,isValidTraceId:()=>Vn,isValidTraceParent:()=>Gs,msToTimeSpan:()=>vu,parseConnectionString:()=>qa,parseTraceParent:()=>ya,strNotSpecified:()=>Yr,stringToBoolOrDefault:()=>YT,urlGetAbsoluteUrl:()=>rT,urlGetCompleteUrl:()=>nT,urlGetPathName:()=>tT,urlParseFullHost:()=>of,urlParseHost:()=>ah,urlParseUrl:()=>Wa,utlCanUseLocalStorage:()=>lu,utlCanUseSessionStorage:()=>$a,utlDisableStorage:()=>pT,utlEnableStorage:()=>mT,utlGetLocalStorage:()=>rv,utlGetSessionStorage:()=>nv,utlGetSessionStorageKeys:()=>gT,utlRemoveSessionStorage:()=>ov,utlRemoveStorage:()=>hT,utlSetLocalStorage:()=>tv,utlSetSessionStorage:()=>iv,utlSetStoragePrefix:()=>ev});var h0,Dh,g0,Hi=O(()=>{fh();ST();TT();Zm();nn();DT();yT();RT();LT();MT();HT();kT();GT();BT();jT();zT();Nh();an();WT();qT();lh();uv();Me();JT();_h();sh();ZT();h0="AppInsightsPropertiesPlugin",Dh="AppInsightsChannelPlugin",g0="ApplicationInsightsAnalytics"});var Ih=_r(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});dv.TelemetryUtil=void 0;var yh=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}};dv.TelemetryUtil=yh});var Fo,rD=O(()=>{Fo="duration"});var xr,vv,nt,ai,Qa,ye,Mo,Ho,sn,ko,ki,mu,Gi,Bi,_v,un,hu,ff,Go,lf,gu,Za,df,pv,ji,Bo,Eu,Su,it,mv,Nu,Tu,Du,hv,xh,gv,Ev,bh,Sv,Ph,Vi,Ah,Ch,Rh,vf,wh,Oh,Lh,yu,jo,Nv,_f,Tv,Dv,yv,Iv,Iu,Yh,xv,tD,Vo=O(()=>{xr="tags",vv="deviceType",nt="data",ai="name",Qa="traceID",ye="length",Mo="stringify",Ho="measurements",sn="dataType",ko="envelopeType",ki="toString",mu="_get",Gi="enqueue",Bi="count",_v="eventsLimitInMem",un="push",hu="item",ff="emitLineDelimitedJson",Go="clear",lf="createNew",gu="markAsSent",Za="clearSent",df="bufferOverride",pv="BUFFER_KEY",ji="SENT_BUFFER_KEY",Bo="concat",Eu="MAX_BUFFER_SIZE",Su="triggerSend",it="diagLog",mv="initialize",Nu="_sender",Tu="endpointUrl",Du="instrumentationKey",hv="customHeaders",xh="maxBatchSizeInBytes",gv="onunloadDisableBeacon",Ev="isBeaconApiDisabled",bh="alwaysUseXhrOverride",Sv="disableXhr",Ph="enableSessionStorageBuffer",Vi="_buffer",Ah="onunloadDisableFetch",Ch="disableSendBeaconSplit",Rh="enableSendPromise",vf="getSenderInst",wh="unloadTransports",Oh="convertUndefined",Lh="maxBatchInterval",yu="serialize",jo="_onError",Nv="_onPartialSuccess",_f="_onSuccess",Tv="itemsReceived",Dv="itemsAccepted",yv="oriPayload",Iv="baseType",Iu="sampleRate",Yh="eventsSendRequest",xv="getSamplingScore",tD="getHashCodeScore"});function Er(r,e,t){return rn(r,e,t,dn)}function E0(r,e,t){var n=t[xr]=t[xr]||{},i=e.ext=e.ext||{},o=e[xr]=e[xr]||[],a=i.user;a&&(Er(n,gr.userAuthUserId,a.authId),Er(n,gr.userId,a.id||a.localId));var s=i.app;s&&Er(n,gr.sessionId,s.sesId);var u=i.device;u&&(Er(n,gr.deviceId,u.id||u.localId),Er(n,gr[vv],u.deviceClass),Er(n,gr.deviceIp,u.ip),Er(n,gr.deviceModel,u.model),Er(n,gr[vv],u[vv]));var c=e.ext.web;if(c){Er(n,gr.deviceLanguage,c.browserLang),Er(n,gr.deviceBrowserVersion,c.browserVer),Er(n,gr.deviceBrowser,c.browser);var f=t[nt]=t[nt]||{},d=f[Ze]=f[Ze]||{},v=d[Vr]=d[Vr]||{};Er(v,"domain",c.domain),Er(v,"isManual",c.isManual?nD:null),Er(v,"screenRes",c.screenRes),Er(v,"userConsent",c.userConsent?nD:null)}var m=i.os;m&&(Er(n,gr.deviceOS,m[ai]),Er(n,gr.deviceOSVersion,m.osVer));var _=i.trace;_&&(Er(n,gr.operationParentId,_.parentID),Er(n,gr.operationName,ke(r,_[ai])),Er(n,gr.operationId,_[Qa]));for(var N={},h=o[ye]-1;h>=0;h--){var b=o[h];oe(b,function(I,w){N[I]=w}),o.splice(h,1)}oe(o,function(I,w){N[I]=w});var T=Jt(Jt({},n),N);T[gr.internalSdkVersion]||(T[gr.internalSdkVersion]=ke(r,"javascript:".concat(S0.Version),64)),t[xr]=wt(T)}function zo(r,e,t){F(r)||oe(r,function(n,i){Jr(i)?t[n]=i:Se(i)?e[n]=i:Gn()&&(e[n]=et()[Mo](i))})}function es(r,e){F(r)||oe(r,function(t,n){r[t]=n||e})}function rs(r,e,t,n){var i=new av(r,n,e);Er(i,"sampleRate",t[ou]),(t[Ze]||{}).startTime&&(i.time=Vt(t[Ze].startTime)),i.iKey=t.iKey;var o=t.iKey.replace(/-/g,"");return i[ai]=i[ai].replace("{0}",o),E0(r,t,i),t[xr]=t[xr]||[],wt(i)}function ts(r,e){F(e[Ze])&&k(r,1,46,"telemetryItem.baseData cannot be null.")}function iD(r,e,t){ts(r,e);var n=e[Ze][Ho]||{},i=e[Ze][Vr]||{};zo(e[nt],i,n),F(t)||es(i,t);var o=e[Ze];if(F(o))return mt(r,"Invalid input for dependency data"),null;var a=o[Vr]&&o[Vr][ef]?o[Vr][ef]:"GET",s=new wo(r,o.id,o.target,o[ai],o[Fo],o.success,o.responseCode,a,o.type,o.correlationContext,i,n),u=new oi(wo[sn],s);return rs(r,wo[ko],e,u)}function Fh(r,e,t){ts(r,e);var n={},i={};e[Uh]!==ni[sn]&&(n.baseTypeSource=e[Uh]),e[Uh]===ni[sn]?(n=e[Ze][Vr]||{},i=e[Ze][Ho]||{}):e[Ze]&&zo(e[Ze],n,i),zo(e[nt],n,i),F(t)||es(n,t);var o=e[Ze][ai],a=new ni(r,o,n,i),s=new oi(ni[sn],a);return rs(r,ni[ko],e,s)}function oD(r,e,t){ts(r,e);var n=e[Ze][Ho]||{},i=e[Ze][Vr]||{};zo(e[nt],i,n),F(t)||es(i,t);var o=e[Ze],a=Co.CreateFromInterface(r,o,i,n),s=new oi(Co[sn],a);return rs(r,Co[ko],e,s)}function aD(r,e,t){ts(r,e);var n=e[Ze],i=n[Vr]||{},o=n[Ho]||{};zo(e[nt],i,o),F(t)||es(i,t);var a=new ii(r,n[ai],n.average,n.sampleCount,n.min,n.max,n.stdDev,i,o),s=new oi(ii[sn],a);return rs(r,ii[ko],e,s)}function sD(r,e,t){ts(r,e);var n,i=e[Ze];!F(i)&&!F(i[Vr])&&!F(i[Vr][Fo])?(n=i[Vr][Fo],delete i[Vr][Fo]):!F(e[nt])&&!F(e[nt][Fo])&&(n=e[nt][Fo],delete e[nt][Fo]);var o=e[Ze],a;((e.ext||{}).trace||{})[Qa]&&(a=e.ext.trace[Qa]);var s=o.id||a,u=o[ai],c=o.uri,f=o[Vr]||{},d=o[Ho]||{};if(F(o.refUri)||(f.refUri=o.refUri),F(o.pageType)||(f.pageType=o.pageType),F(o.isLoggedIn)||(f.isLoggedIn=o.isLoggedIn[ki]()),!F(o[Vr])){var v=o[Vr];oe(v,function(N,h){f[N]=h})}zo(e[nt],f,d),F(t)||es(f,t);var m=new Ro(r,u,c,n,f,d,s),_=new oi(Ro[sn],m);return rs(r,Ro[ko],e,_)}function uD(r,e,t){ts(r,e);var n=e[Ze],i=n[ai],o=n.uri||n.url,a=n[Vr]||{},s=n[Ho]||{};zo(e[nt],a,s),F(t)||es(a,t);var u=new Lo(r,i,o,void 0,a,s,n),c=new oi(Lo[sn],u);return rs(r,Lo[ko],e,c)}function cD(r,e,t){ts(r,e);var n=e[Ze].message,i=e[Ze].severityLevel,o=e[Ze][Vr]||{},a=e[Ze][Ho]||{};zo(e[nt],o,a),F(t)||es(o,t);var s=new Oo(r,n,i,o,a),u=new oi(Oo[sn],s);return rs(r,Oo[ko],e,u)}var Uh,Ze,Vr,nD,S0,fD=O(()=>{It();Hi();Me();rD();Vo();Uh="baseType",Ze="baseData",Vr="properties",nD="true";S0={Version:"3.3.4"}});var lD,bv,N0,Mh,dD=O(()=>{It();Gr();Hi();Me();Vo();lD=(function(){function r(e,t){var n=[],i=!1,o=t.maxRetryCnt;this[mu]=function(){return n},this._set=function(a){return n=a,n},be(r,this,function(a){a[Gi]=function(s){if(a[Bi]()>=t[_v]){i||(k(e,2,105,"Maximum in-memory buffer size reached: "+a[Bi](),!0),i=!0);return}s.cnt=s.cnt||0,!(!F(o)&&s.cnt>o)&&n[un](s)},a[Bi]=function(){return n[ye]},a.size=function(){for(var s=n[ye],u=0;u<n[ye];u++)s+=n[u].item[ye];return t[ff]||(s+=2),s},a[Go]=function(){n=[],i=!1},a.getItems=function(){return n.slice(0)},a.batchPayloads=function(s){if(s&&s[ye]>0){var u=[];R(s,function(f){u[un](f[hu])});var c=t[ff]?u.join(`
`):"["+u.join(",")+"]";return c}return null},a[lf]=function(s,u,c){var f=n.slice(0);s=s||e,u=u||{};var d=c?new Mh(s,u):new bv(s,u);return R(f,function(v){d[Gi](v)}),d}})}return r.__ieDyn=1,r})(),bv=(function(r){yt(e,r);function e(t,n){var i=r.call(this,t,n)||this;return be(e,i,function(o,a){o[gu]=function(s){a[Go]()},o[Za]=function(s){}}),i}return e.__ieDyn=1,e})(lD),N0=["AI_buffer","AI_sentBuffer"],Mh=(function(r){yt(e,r);function e(n,i){var o=r.call(this,n,i)||this,a=!1,s=i?.namePrefix,u=i[df]||{getItem:nv,setItem:iv},c=u.getItem,f=u.setItem,d=i.maxRetryCnt;return be(e,o,function(v,m){var _=w(e[pv]),N=w(e[ji]),h=$(),b=N[Bo](h),T=v._set(_[Bo](b));T[ye]>e[Eu]&&(T[ye]=e[Eu]),B(e[ji],[]),B(e[pv],T),v[Gi]=function(z){if(v[Bi]()>=e[Eu]){a||(k(n,2,67,"Maximum buffer size reached: "+v[Bi](),!0),a=!0);return}z.cnt=z.cnt||0,!(!F(d)&&z.cnt>d)&&(m[Gi](z),B(e.BUFFER_KEY,v[mu]()))},v[Go]=function(){m[Go](),B(e.BUFFER_KEY,v[mu]()),B(e[ji],[]),a=!1},v[gu]=function(z){B(e[pv],v._set(I(z,v[mu]())));var G=w(e[ji]);G instanceof Array&&z instanceof Array&&(G=G[Bo](z),G[ye]>e[Eu]&&(k(n,1,67,"Sent buffer reached its maximum size: "+G[ye],!0),G[ye]=e[Eu]),B(e[ji],G))},v[Za]=function(z){var G=w(e[ji]);G=I(z,G),B(e[ji],G)},v[lf]=function(z,G,J){J=!!J;var ce=v[mu]().slice(0),_e=w(e[ji]).slice(0);z=z||n,G=G||{},v[Go]();var g=J?new e(z,G):new bv(z,G);return R(ce,function(y){g[Gi](y)}),J&&g[gu](_e),g};function I(z,G){var J=[],ce=[];return R(z,function(_e){ce[un](_e[hu])}),R(G,function(_e){!ue(_e)&&Oe(ce,_e[hu])===-1&&J[un](_e)}),J}function w(z){var G=z;return G=s?s+"_"+G:G,Y(G)}function Y(z){try{var G=c(n,z);if(G){var J=et().parse(G);if(Se(J)&&(J=et().parse(J)),J&&re(J))return J}}catch(ce){k(n,1,42," storage key: "+z+", "+We(ce),{exception:te(ce)})}return[]}function B(z,G){var J=z;try{J=s?s+"_"+J:J;var ce=JSON[Mo](G);f(n,J,ce)}catch(_e){f(n,J,JSON[Mo]([])),k(n,2,41," storage key: "+J+", "+We(_e)+". Buffer cleared",{exception:te(_e)})}}function $(){var z=[];try{return R(N0,function(G){var J=ie(G);if(z=z[Bo](J),s){var ce=s+"_"+G,_e=ie(ce);z=z[Bo](_e)}}),z}catch(G){k(n,2,41,"Transfer events from previous buffers: "+We(G)+". previous Buffer items can not be removed",{exception:te(G)})}return[]}function ie(z){try{var G=Y(z),J=[];return R(G,function(ce){var _e={item:ce,cnt:0};J[un](_e)}),ov(n,z),J}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})(lD)});var vD,_D=O(()=>{Gr();Me();Vo();vD=(function(){function r(e){be(r,this,function(t){t[yu]=function(a){var s=n(a,"root");try{return et()[Mo](s)}catch(u){k(e,1,48,u&&ue(u[ki])?u[ki]():"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(re(a))c=i(a,s);else{k(e,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:s},!0);try{et()[Mo](a),c=a}catch(f){k(e,1,48,f&&ue(f[ki])?f[ki]():"Error serializing object",null,!0)}}return c}return a[u]=!0,oe(a.aiDataContract,function(f,d){var v=ue(d)?d()&1:d&1,m=ue(d)?d()&4:d&4,_=d&2,N=a[f]!==void 0,h=nr(a[f])&&a[f]!==null;if(v&&!N&&!_)k(e,1,24,"Missing required field specification. The field is required but not present on source",{field:f,name:s});else if(!m){var b=void 0;h?_?b=i(a[f],f):b=n(a[f],f):b=a[f],b!==void 0&&(c[f]=b)}}),delete a[u],c}function i(a,s){var u;if(a)if(!re(a))k(e,1,54,`This field was specified as an array in the contract but the item is not an array.\r
`,{name:s},!0);else{u=[];for(var c=0;c<a[ye];c++){var f=a[c],d=n(f,s+"["+c+"]");u[un](d)}}return u}function o(a,s,u){var c;return a&&(c={},oe(a,function(f,d){if(s==="string")d===void 0?c[f]="undefined":d===null?c[f]="null":d[ki]?c[f]=d[ki]():c[f]="invalid field: toString() is not defined.";else if(s==="number")if(d===void 0)c[f]="undefined";else if(d===null)c[f]="null";else{var v=parseFloat(d);c[f]=v}else c[f]="invalid field: "+u+" is of unknown type.",k(e,1,c[f],null,!0)})),c}})}return r.__ieDyn=1,r})()});var T0,pD,mD=O(()=>{Vo();T0=8,pD=(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[ye]<T0;)e=e[Bo](e);for(var t=5381,n=0;n<e[ye];++n)t=(t<<5)+t+e.charCodeAt(n),t=t&t;return Math.abs(t)},r.INT_MAX_VALUE=2147483647,r})()});var hD,gD=O(()=>{Hi();Vo();mD();hD=(function(){function r(){var e=this,t=new pD,n=new pu;e[xv]=function(i){var o=0;return i[xr]&&i[xr][n.userId]?o=t.getHashCodeScore(i[xr][n.userId]):i.ext&&i.ext.user&&i.ext.user.id?o=t[tD](i.ext.user.id):i[xr]&&i[xr][n.operationId]?o=t.getHashCodeScore(i[xr][n.operationId]):i.ext&&i.ext.telemetryTrace&&i.ext.telemetryTrace[Qa]?o=t.getHashCodeScore(i.ext.telemetryTrace[Qa]):o=Math.random()*100,o}}return r})()});var ED,SD=O(()=>{Hi();Me();Vo();gD();ED=(function(){function r(e,t){this.INT_MAX_VALUE=2147483647;var n=t||Tn(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 hD}return r.prototype.isSampledIn=function(e){var t=this[Iu],n=!1;return t==null||t>=100||e.baseType===ii[sn]?!0:(n=this.samplingScoreGenerator[xv](e)<t,n)},r})()});function TD(r){try{return r.responseText}catch{}return null}function y0(r){return r&&r.sendPOST}function I0(r){return!isNaN(r)&&r>0&&r<=100}var $e,zi,si,ND,D0,DD,x0,pf,yD=O(()=>{It();Gr();Hi();Me();me();fD();dD();_D();SD();Vo();si=void 0,ND="",D0=65e3;DD=On(($e={endpointUrl:Fs(dn,Do+xn)},$e[ff]=tn(),$e[Lh]=15e3,$e[xh]=102400,$e.disableTelemetry=tn(),$e[Ph]=tn(!0),$e.isRetryDisabled=tn(),$e[Ev]=tn(!0),$e[Ch]=tn(!0),$e[Sv]=tn(),$e[Ah]=tn(),$e[gv]=tn(),$e[Du]=si,$e.namePrefix=si,$e.samplingPercentage=Fs(I0,100),$e[hv]=si,$e[Oh]=si,$e[_v]=1e4,$e[df]=!1,$e.httpXHROverride={isVal:y0,v:si},$e[bh]=tn(),$e.transports=si,$e.retryCodes=si,$e.maxRetryCnt={isVal:Jr,v:10},$e));x0=(zi={},zi[ni.dataType]=Fh,zi[Oo.dataType]=cD,zi[Ro.dataType]=sD,zi[Lo.dataType]=uD,zi[Co.dataType]=oD,zi[ii.dataType]=aD,zi[wo.dataType]=iD,zi),pf=(function(r){yt(e,r);function e(){var t=r.call(this)||this;t.priority=1001,t.identifier=Dh;var n,i,o,a,s,u,c,f,d=0,v,m,_,N,h,b,T,I,w,Y,B,$,ie,z,G,J,ce,_e,g,y,M,V,D,Q,j,pe,K;return be(e,t,function(P,Ce){ne(),P.pause=function(){L(),a=!0},P.resume=function(){a&&(a=!1,i=null,Pe(),E())},P.flush=function(l,p,S){if(l===void 0&&(l=!0),!a){L();try{return P[Su](l,null,S||1)}catch(x){k(P[it](),1,22,"flush failed, telemetry will not be collected: "+We(x),{exception:te(x)})}}},P.onunloadFlush=function(){if(!a)if(T||y)try{return P[Su](!0,ar,2)}catch(l){k(P[it](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+We(l),{exception:te(l)})}else P.flush(!1)},P.addHeader=function(l,p){f[l]=p},P[mv]=function(l,p,S,x){P.isInitialized()&&k(P[it](),1,28,"Sender is already initialized"),Ce[mv](l,p,S,x);var C=P.identifier;u=new vD(p.logger),n=0,i=null,o=0,P[Nu]=null,c=0;var U=P[it]();_=Kt(rt("Sender"),p.evtNamespace&&p.evtNamespace()),m=lv(_),P._addHook(Dr(l,function(W){var ve=W.cfg;ve.storagePrefix&&ev(ve.storagePrefix);var Ae=ht(null,ve,p),fe=Ae.getExtCfg(C,DD),Et=fe[Tu];if(N&&Et===N){var di=ve[Tu];di&&di!==Et&&(fe[Tu]=di)}_t(fe[Du])&&(fe[Du]=ve[Du]),we(P,"_senderConfig",{g:function(){return fe}}),h!==fe[Tu]&&(N=h=fe[Tu]),p.activeStatus()===Ht.PENDING?P.pause():p.activeStatus()===Ht.ACTIVE&&P.resume(),Y&&Y!==fe[hv]&&R(Y,function($r){delete f[$r.header]}),b=fe[xh],T=(fe[gv]===!1||fe[Ev]===!1)&&Ot(),I=fe[gv]===!1&&Ot(),w=fe[Ev]===!1&&Ot(),y=fe[bh],M=!!fe[Sv],K=fe.retryCodes;var St=fe[df],An=!!fe[Ph]&&(!!St||$a()),xf=fe.namePrefix,yy=An!==J||An&&_e!==xf||An&&ce!==St;if(P[Vi]){if(yy)try{P._buffer=P._buffer[lf](U,fe,An)}catch($r){k(P[it](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+We($r),{exception:te($r)})}Pe()}else P[Vi]=An?new Mh(U,fe):new bv(U,fe);_e=xf,J=An,ce=St,V=!fe[Ah]&&Ii(!0),j=!!fe[Ch],P._sample=new ED(fe.samplingPercentage,U),$=fe[Du],!_t($)&&!Ie($,ve)&&k(U,1,100,"Invalid Instrumentation key "+$),Y=fe[hv],Se(N)&&!af(N)&&Y&&Y[ye]>0?R(Y,function($r){t.addHeader($r.header,$r.value)}):Y=null,g=fe[Rh];var Dg=Mr();pe?pe.SetConfig(Dg):(pe=new ba,pe[mv](Dg,U));var bf=fe.httpXHROverride,Pf=null,wu=null,Iy=Di([3,1,2],fe.transports);Pf=pe&&pe[vf](Iy,!1);var i_=pe&&pe.getFallbackInst();D=function($r,Xo){return Z(i_,$r,Xo)},Q=function($r,Xo){return Z(i_,$r,Xo,!1)},Pf=y?bf:Pf||bf||i_,P[Nu]=function($r,Xo){return Z(Pf,$r,Xo)},V&&(v=$t);var o_=Di([3,1],fe[wh]);V||(o_=o_.filter(function($r){return $r!==2})),wu=pe&&pe[vf](o_,!0),wu=y?bf:wu||bf,(y||fe[wh]||!v)&&wu&&(v=function($r,Xo){return Z(wu,$r,Xo)}),v||(v=D),B=fe.disableTelemetry,ie=fe[Oh]||si,z=fe.isRetryDisabled,G=fe[Lh]}))},P.processTelemetry=function(l,p){var S;p=P._getTelCtx(p);var x=p[it]();try{var C=Ge(l,x);if(!C)return;var U=Ye(l,x);if(!U)return;var W=u[yu](U),ve=P[Vi];Pe(W);var Ae=(S={},S[hu]=W,S.cnt=0,S);ve[Gi](Ae),E()}catch(fe){k(x,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+We(fe),{exception:te(fe)})}P.processNext(l,p)},P.isCompletelyIdle=function(){return!a&&d===0&&P._buffer[Bi]()===0},P.getOfflineListener=function(){return m},P._xhrReadyStateChange=function(l,p,S){if(!at(p))return rr(l,p,S)},P[Su]=function(l,p,S){l===void 0&&(l=!0);var x;if(!a)try{var C=P[Vi];if(B)C[Go]();else{if(C[Bi]()>0){var U=C.getItems();de(S||0,l),p?x=p.call(P,U,l):x=P[Nu](U,l)}o=+new Date}L()}catch(ve){var W=uc();(!W||W>9)&&k(P[it](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+We(ve),{exception:te(ve)})}return x},P.getOfflineSupport=function(){var l;return l={getUrl:function(){return N},createPayload:A},l[yu]=qe,l.batch=Ke,l.shouldProcess=function(p){return!!Ge(p)},l},P._doTeardown=function(l,p){P.onunloadFlush(),bi(m,!1),ne()},P[jo]=function(l,p,S){if(!at(l))return Ft(l,p,S)},P[Nv]=function(l,p){if(!at(l))return Wr(l,p)},P[_f]=function(l,p){if(!at(l))return Pr(l,p)},P._xdrOnLoad=function(l,p){if(!at(p))return Ve(l,p)};function Ve(l,p){var S=TD(l);if(l&&(S+""=="200"||S===""))n=0,P[_f](p,0);else{var x=xa(S);x&&x[Tv]&&x[Tv]>x[Dv]&&!z?P[Nv](p,x):P[jo](p,ga(l))}}function Mr(){var l;try{var p={xdrOnComplete:function(x,C,U){var W=vt(U);if(W)return Ve(x,W)},fetchOnComplete:function(x,C,U,W){var ve=vt(W);if(ve)return Fe(x.status,ve,x.url,ve[ye],x.statusText,U||"")},xhrOnComplete:function(x,C,U){var W=vt(U);if(W)return rr(x,W,W[ye])},beaconOnRetry:function(x,C,U){return ot(x,C,U)}},S=(l={},l[Rh]=g,l.isOneDs=!1,l.disableCredentials=!1,l[Sv]=M,l.disableBeacon=!w,l.disableBeaconSync=!I,l.senderOnCompleteCallBack=p,l);return S}catch{}return null}function rr(l,p,S){l.readyState===4&&Fe(l.status,p,l.responseURL,S,Ti(l),TD(l)||l.response)}function Ft(l,p,S){k(P[it](),2,26,"Failed to send telemetry.",{message:p}),P._buffer&&P._buffer[Za](l)}function Wr(l,p){for(var S=[],x=[],C=p.errors.reverse(),U=0,W=C;U<W.length;U++){var ve=W[U],Ae=l.splice(ve.index,1)[0];H(ve.statusCode)?x[un](Ae):S[un](Ae)}l[ye]>0&&P[_f](l,p[Dv]),S[ye]>0&&P[jo](S,Ti(null,["partial success",p[Dv],"of",p.itemsReceived].join(" "))),x[ye]>0&&(Hr(x),k(P[it](),2,40,"Partial success. Delivered: "+l[ye]+", Failed: "+S[ye]+". Will retry to send "+x[ye]+" our of "+p[Tv]+" items"))}function Pr(l,p){P._buffer&&P._buffer[Za](l)}function vt(l){try{if(l){var p=l,S=p[yv];return S&&S[ye]?S:null}}catch{}return null}function Ge(l,p){if(B)return!1;if(!l)return p&&k(p,1,7,"Cannot send empty telemetry"),!1;if(l.baseData&&!l[Iv])return p&&k(p,1,70,"Cannot send telemetry without baseData and baseType"),!1;if(l[Iv]||(l[Iv]="EventData"),!P[Nu])return p&&k(p,1,28,"Sender was not initialized"),!1;if(q(l))l[ou]=P._sample[Iu];else return p&&k(p,2,33,"Telemetry item was sampled out and not sent",{SampleRate:P._sample[Iu]}),!1;return!0}function Ye(l,p){var S=l.iKey||$,x=e.constructEnvelope(l,S,p,ie);if(!x){k(p,1,47,"Unable to create an AppInsights envelope");return}var C=!1;if(l[xr]&&l[xr][au]&&(R(l[xr][au],function(U){try{U&&U(x)===!1&&(C=!0,mt(p,"Telemetry processor check returns false"))}catch(W){k(p,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+We(W),{exception:te(W)},!0)}}),delete l[xr][au]),!C)return x}function qe(l){var p=ND,S=P[it]();try{var x=Ge(l,S),C=null;x&&(C=Ye(l,S)),C&&(p=u[yu](C))}catch{}return p}function Ke(l){var p=ND;return l&&l[ye]&&(p="["+l.join(",")+"]"),p}function A(l){var p,S=Re();return p={urlString:N},p[nt]=l,p.headers=S,p}function q(l){return P._sample.isSampledIn(l)}function ae(l,p,S,x){p===200&&l?P._onSuccess(l,l[ye]):x&&P[jo](l,x)}function Z(l,p,S,x){x===void 0&&(x=!0);var C=function(ve,Ae,fe){return ae(p,ve,Ae,fe)},U=se(p),W=l&&l.sendPOST;return W&&U?(x&&P._buffer[gu](p),W(U,C,!S)):null}function se(l){var p;if(re(l)&&l[ye]>0){var S=P[Vi].batchPayloads(l),x=Re(),C=(p={},p[nt]=S,p.urlString=N,p.headers=x,p.disableXhrSync=M,p.disableFetchKeepAlive=!V,p[yv]=l,p);return C}return null}function Re(){try{var l=f||{};return af(N)&&(l[Ha[6]]=Ha[7]),l}catch{}return null}function Pe(l){var p=l?l[ye]:0;return P[Vi].size()+p>b?((!m||m.isOnline())&&P[Su](!0,null,10),!0):!1}function Fe(l,p,S,x,C,U){var W=null;if(P._appId||(W=xa(U),W&&W.appId&&(P._appId=W.appId)),(l<200||l>=300)&&l!==0){if((l===301||l===307||l===308)&&!Xe(S)){P[jo](p,C);return}if(m&&!m.isOnline()){if(!z){var ve=10;Hr(p,ve),k(P[it](),2,40,". Offline - Response Code: ".concat(l,". Offline status: ").concat(!m.isOnline(),". Will retry to send ").concat(p.length," items."))}return}!z&&H(l)?(Hr(p),k(P[it](),2,40,". Response code "+l+". Will retry to send "+p[ye]+" items.")):P[jo](p,C)}else Xe(S),l===206?(W||(W=xa(U)),W&&!z?P[Nv](p,W):P[jo](p,C)):(n=0,P[_f](p,x))}function Xe(l){return c>=10?!1:!F(l)&&l!==""&&l!==N?(N=l,++c,!0):!1}function ar(l,p){if(v)v(l,!1);else{var S=pe&&pe[vf]([3],!0);return Z(S,l,p)}}function ot(l,p,S){var x=l,C=x&&x[yv];if(j)Q&&Q(C,!0),k(P[it](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender.");else{for(var U=[],W=0;W<C[ye];W++){var ve=C[W],Ae=[ve],fe=se(Ae);S(fe,p)?P._onSuccess(Ae,Ae[ye]):U[un](ve)}U[ye]>0&&(Q&&Q(U,!0),k(P[it](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function at(l){try{if(l&&l[ye])return Se(l[0])}catch{}return null}function $t(l,p){var S=null;if(re(l)){for(var x=l[ye],C=0;C<l[ye];C++)x+=l[C].item[ye];var U=pe.getSyncFetchPayload();U+x<=D0?S=2:Ot()?S=3:(S=1,k(P[it](),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."));var W=pe&&pe[vf]([S],!0);return Z(W,l,p)}return null}function Hr(l,p){if(p===void 0&&(p=1),!(!l||l[ye]===0)){var S=P[Vi];S[Za](l),n++;for(var x=0,C=l;x<C.length;x++){var U=C[x];U.cnt=U.cnt||0,U.cnt++,S[Gi](U)}li(p),E()}}function li(l){var p=10,S;if(n<=1)S=p;else{var x=(Math.pow(2,n)-1)/2,C=Math.floor(Math.random()*x*p)+1;C=l*C,S=Math.max(Math.min(C,3600),p)}var U=ir()+S*1e3;i=U}function E(){if(!s&&!a){var l=i?Math.max(0,i-ir()):0,p=Math.max(G,l);s=Mt(function(){s=null,P[Su](!0,null,1)},p)}}function L(){s&&s.cancel(),s=null,i=null}function H(l){return F(K)?l===401||l===408||l===429||l===500||l===502||l===503||l===504:K[ye]&&K.indexOf(l)>-1}function ee(){var l="getNotifyMgr";return P.core[l]?P.core[l]():P.core._notificationManager}function de(l,p){var S=ee();if(S&&S[Yh])try{S[Yh](l,p)}catch(x){k(P[it](),1,74,"send request notification failed: "+We(x),{exception:te(x)})}}function Ie(l,p){var S=p.disableInstrumentationKeyValidation,x=F(S)?!1:S;if(x)return!0;var C="^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",U=new RegExp(C);return U.test(l)}function ne(){P[Nu]=null,P[Vi]=null,P._appId=null,P._sample=null,f={},m=null,n=0,i=null,o=null,a=!1,s=null,u=null,c=0,d=0,v=null,_=null,N=null,h=null,b=0,T=!1,Y=null,B=!1,$=null,ie=si,z=!1,J=null,_e=si,M=!1,V=!1,j=!1,D=null,Q=null,pe=null,we(P,"_senderConfig",{g:function(){return El({},DD)}})}}),t}return e.constructEnvelope=function(t,n,i,o){var a;n!==t.iKey&&!F(n)?a=Jt(Jt({},t),{iKey:n}):a=t;var s=x0[a.baseType]||Fh;return s(i,a,o)},e})(Ri)});var Hh=O(()=>{yD()});var ns,mf,kh,is,Gh,xu,ID=O(()=>{ns="instrumentationKey",mf="connectionString",kh="instrumentationkey",is="endpointUrl",Gh="ingestionendpoint",xu="userOverrideEndpointUrl"});var xD={};Ou(xD,{AppInsightsCore:()=>wi,ApplicationInsights:()=>A0,Sender:()=>pf,SeverityLevel:()=>cv,arrForEach:()=>R,isNullOrUndefined:()=>F,proxyFunctions:()=>zt,throwError:()=>cr});function P0(r){return r&&r>0}var bu,Bh,b0,A0,bD=O(()=>{Gr();Hh();Hi();Me();_a();me();ID();Me();Hi();Hh();Bh=void 0,b0=(bu={diagnosticLogInterval:Fs(P0,1e4)},bu[mf]=Bh,bu[is]=Bh,bu[ns]=Bh,bu.extensionConfig={},bu);A0=(function(){function r(e){var t=new wi,n;(F(e)||F(e[ns])&&F(e[mf]))&&cr("Invalid input configuration"),be(r,this,function(o){we(o,"config",{g:function(){return n}}),a(),o.initialize=a,o.track=i,zt(o,t,["flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange","getTraceCtx","updateCfg","addTelemetryInitializer"]);function a(){var s=Je(e||{},b0);n=s.cfg,t.addUnloadHook(Dr(s,function(){var u=n[mf];if(_t(u)){var c=tc(function(m,_){Bt(u,function(N){var h=N.value,b=n[ns];if(!N.rejected&&h){n[mf]=h;var T=qa(h);b=T[kh]||b}m(b)})}),f=tc(function(m,_){Bt(u,function(N){var h=N.value,b=n[is];if(!N.rejected&&h){var T=qa(h),I=T[Gh];b=I?I+xn:b}m(b)})});n[ns]=c,n[is]=n[xu]||f}if(Se(u)){var d=qa(u),v=d[Gh];n[is]=n[xu]?n[xu]:v+xn,n[ns]=d[kh]||n[ns]}n[is]=n[xu]?n[xu]:n[is]})),t.initialize(n,[new pf])}});function i(o){o&&(o.baseData=o.baseData||{},o.baseType=o.baseType||"EventData"),t.track(o)}}return r.__ieDyn=1,r})()});var PD=_r(ui=>{"use strict";var C0=ui&&ui.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,i)}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),R0=ui&&ui.__setModuleDefault||(Object.create?(function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}):function(r,e){r.default=e}),w0=ui&&ui.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&C0(e,r,t);return R0(e,r),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.appInsightsClientFactory=void 0;var O0=(Hi(),Lu(eD)),L0=Ih(),Y0=async(r,e,t,n,i)=>{let o;try{let s=await Promise.resolve().then(()=>w0((bD(),Lu(xD)))),u={};if(n){let d={alwaysUseXhrOverride:!0,httpXHROverride:n};u[O0.BreezeChannelIdentifier]=d}let c;r.startsWith("InstrumentationKey=")||(c=r);let f=c?{instrumentationKey:c}:{connectionString:r};o=new s.ApplicationInsights({...f,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&&L0.TelemetryUtil.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)})}};ui.appInsightsClientFactory=Y0});var AD=_r(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});Pv.BaseTelemetryReporter=void 0;var jh=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()))}};Pv.BaseTelemetryReporter=jh});var CD=_r(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});Av.BaseTelemetrySender=void 0;var Ki;(function(r){r[r.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",r[r.INSTANTIATING=1]="INSTANTIATING",r[r.INSTANTIATED=2]="INSTANTIATED"})(Ki||(Ki={}));var Vh=class{constructor(e,t){this._instantiationStatus=Ki.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Ki.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t});return}this._telemetryClient.logEvent(e,t)}sendErrorData(e,t){if(!this._telemetryClient){this._instantiationStatus!==Ki.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===Ki.NOT_INSTANTIATED&&(this._instantiationStatus=Ki.INSTANTIATING,this._clientFactory(this._key).then(e=>{this._telemetryClient=e,this._instantiationStatus=Ki.INSTANTIATED,this._flushQueues()}).catch(e=>{console.error(e),this._instantiationStatus=Ki.INSTANTIATED}))}};Av.BaseTelemetrySender=Vh});var OD=_r(Wi=>{"use strict";var U0=Wi&&Wi.__createBinding||(Object.create?(function(r,e,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,i)}):(function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]})),F0=Wi&&Wi.__setModuleDefault||(Object.create?(function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}):function(r,e){r.default=e}),Wh=Wi&&Wi.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&U0(e,r,t);return F0(e,r),e};Object.defineProperty(Wi,"__esModule",{value:!0});var M0=Wh(require("https")),zh=Wh(require("os")),Cv=Wh(require("vscode")),H0=JN(),k0=PD(),G0=AD(),B0=CD(),RD=Ih();function wD(){return{sendPOST:(e,t)=>{let n={method:"POST",headers:{...e.headers,"Content-Type":"application/json","Content-Length":Buffer.byteLength(e.data)}};try{let i=M0.request(e.urlString,n,o=>{o.on("data",function(a){t(o.statusCode??200,o.headers,a.toString())}),o.on("error",function(){t(0,{})})});i.write(e.data,o=>{o&&t(0,{})}),i.end()}catch{t(0,{})}}}}var Kh=class extends G0.BaseTelemetryReporter{constructor(e,t){let n=a=>(0,k0.appInsightsClientFactory)(a,Cv.env.machineId,Cv.env.sessionId,wD(),t);RD.TelemetryUtil.shouldUseOneDataSystemSDK(e)&&(n=a=>(0,H0.oneDataSystemClientFactory)(a,Cv,wD()));let i={release:zh.release(),platform:zh.platform(),architecture:zh.arch()},o=new B0.BaseTelemetrySender(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,Cv,{additionalCommonProperties:RD.TelemetryUtil.getAdditionalCommonProperties(i)})}};Wi.default=Kh});var sg=_r(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.TargetPopulation=Ko.Filters=Ko.VSCodeFilterProvider=void 0;var Hv=require("vscode"),ag=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 fi.ApplicationVersion:return r.trimVersionSuffix(Hv.version);case fi.Build:return Hv.env.appName;case fi.ClientId:return Hv.env.machineId;case fi.ExtensionName:return this.extensionName;case fi.ExtensionVersion:return r.trimVersionSuffix(this.extensionVersion);case fi.Language:return Hv.env.language;case fi.TargetPopulation:return this.targetPopulation;default:return""}}getFilters(){let e=new Map,t=Object.values(fi);for(let n of t)e.set(n,this.getFilterValue(n));return e}};Ko.VSCodeFilterProvider=ag;var fi;(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"})(fi||(Ko.Filters=fi={}));var ey;(function(r){r.Team="team",r.Internal="internal",r.Insiders="insider",r.Public="public"})(ey||(Ko.TargetPopulation=ey={}))});var ry=_r(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});kv.BaseFeatureProvider=void 0;var ug=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}};kv.BaseFeatureProvider=ug});var ty=_r(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0});Gv.FilteredFeatureProvider=void 0;var oP=ry(),cg=class extends oP.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)}};Gv.FilteredFeatureProvider=cg});var ny=_r(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.TasApiFeatureProvider=Wo.TASAPI_FETCHERROR_EVENTNAME=void 0;var aP=ty();Wo.TASAPI_FETCHERROR_EVENTNAME="call-tas-error";var fg="ErrorType",lg=class extends aP.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(fg,"ServerError"):u.responseReceived===!1?c.set(fg,"NoResponse"):c.set(fg,"GenericError"),this.telemetry.postEvent(Wo.TASAPI_FETCHERROR_EVENTNAME,c)}if(!n)throw Error(Wo.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}}};Wo.TasApiFeatureProvider=lg});var iy=_r(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.HttpClient=Au.FetchError=void 0;var Pu=class extends Error{constructor(e,t,n){super(e),this.responseReceived=t,this.responseOk=n}};Au.FetchError=Pu;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 Pu("No response received",!1);if(!t.ok)throw new Pu("Response not ok",!0,!1);let n=await t.json();if(!n)throw new Pu("No data received",!1);return{data:n}}};Au.HttpClient=dg});var oy=_r(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});Bv.MemoryKeyValueStorage=void 0;var vg=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)}};Bv.MemoryKeyValueStorage=vg});var ay=_r(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});jv.ExperimentationServiceBase=void 0;var sP=oy(),_g=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 sP.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)}};jv.ExperimentationServiceBase=_g});var sy=_r(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});Vv.PollingService=void 0;var pg=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())}};Vv.PollingService=pg});var uy=_r(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});zv.ExperimentationServiceAutoPolling=void 0;var uP=ay(),cP=sy(),mg=class extends uP.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 cP.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)}};zv.ExperimentationServiceAutoPolling=mg});var cy=_r(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});Wv.ExperimentationService=void 0;var fP=ny(),lP=iy(),dP=uy(),Kv=class extends dP.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 fP.TasApiFeatureProvider(new lP.HttpClient(this.options.endpoint),this.telemetry,this.filterProviders)),super.init()}};Wv.ExperimentationService=Kv;Kv.REFRESH_RATE_IN_MINUTES=30});var fy=_r($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});$v.ExperimentationService=void 0;var vP=cy();Object.defineProperty($v,"ExperimentationService",{enumerable:!0,get:function(){return vP.ExperimentationService}})});var ly=_r(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});qv.MementoKeyValueStorage=void 0;var hg=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)}};qv.MementoKeyValueStorage=hg});var dy=_r(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});var gg=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)}};Eg.default=gg});var _y=_r(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.getExperimentationServiceAsync=Cu.getExperimentationService=void 0;var _P=sg(),pP=fy(),Sg=require("vscode"),mP=ly(),hP=dy(),gP="https://default.exp-tas.com/vscode/ab",EP="query-expfeature",SP="abexp.assignmentcontext",NP="VSCode.ABExp.FeatureData",TP=1e3*60*30;function vy(r,e,t,n,i,...o){if(!i)throw new Error("Memento storage was not provided.");let a=Sg.workspace.getConfiguration("telemetry");if(!(Sg.env.isTelemetryEnabled===void 0?a.get("enableTelemetry",!0):Sg.env.isTelemetryEnabled))return new hP.default;let c=[new _P.VSCodeFilterProvider(r,e,t),...o],f=new mP.MementoKeyValueStorage(i);return new pP.ExperimentationService({filterProviders:c,telemetry:n,storageKey:NP,keyValueStorage:f,featuresTelemetryPropertyName:"",assignmentContextTelemetryPropertyName:SP,telemetryEventName:EP,endpoint:gP,refetchInterval:TP})}Cu.getExperimentationService=vy;async function DP(r,e,t,n,i,...o){let a=vy(r,e,t,n,i,...o);return await a.initializePromise,a}Cu.getExperimentationServiceAsync=DP});var my=_r($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.TargetPopulation=$o.getExperimentationServiceAsync=$o.getExperimentationService=void 0;var py=_y();Object.defineProperty($o,"getExperimentationService",{enumerable:!0,get:function(){return py.getExperimentationService}});Object.defineProperty($o,"getExperimentationServiceAsync",{enumerable:!0,get:function(){return py.getExperimentationServiceAsync}});var yP=sg();Object.defineProperty($o,"TargetPopulation",{enumerable:!0,get:function(){return yP.TargetPopulation}})});var UP={};Ou(UP,{activate:()=>YP});module.exports=Lu(UP);var ze=Ar(require("vscode"));var br=Ar(require("vscode")),Ty=Ar(OD());var Rv=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)}}};var Le=Ar(require("vscode"));var j0=["vscode","vscode-insiders","vscode-exploration","vscode-agents","vscode-agents-insiders","vscode-agents-exploration","vscode-wsl"];function LD(r){return j0.includes(r.scheme)||/(?:^|\.)vscode\.dev$/.test(r.authority)||/(?:^|\.)github\.dev$/.test(r.authority)}function os(r,e){return r==="github"||$h(e)}function $h(r){return/\.ghe\.com$/.test(r.authority)}var qh=Ar(require("vscode"));var hf="Timed out",ci="User Cancelled",wv="network error",cn="Cancelled";async function Ov(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":`${qh.env.appName} (${qh.env.appHost})`}})}catch(a){throw n.error(a.message),new Error(wv)}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)}var V0=Ar(require("http")),z0=Ar(require("https")),MD=require("vscode"),Xh=require("stream"),gf=[];try{gf.push({name:"Electron fetch",fetch:require("electron").net.fetch})}catch{}var UD={name:"Node fetch",fetch},K0=MD.workspace.getConfiguration("github-authentication").get("useElectronFetch",!0);K0?gf.push(UD):gf.unshift(UD);gf.push({name:"Node http/s",fetch:X0});function W0(){let r=gf;return async(e,t)=>{let n=await q0(r,e,t,t.logger);return n.updatedFetchers&&(r=n.updatedFetchers),n.response}}function $0(r){return r===429||r===401||r===403||r===404}async function q0(r,e,t,n){if(t.retryFallbacks&&r.length>1){let i;for(let o of r){let a=await FD(o,e,t,n);if(o===r[0]&&(i=a),!a.ok){if("response"in a&&$0(a.response.status))return{response:a.response};continue}if(o!==r[0]){let s=await FD(r[0],e,t,n);if(s.ok)return{response:s.response};n.info(`FetcherService: using ${o.name} from now on`);let u=r.slice();return u.splice(u.indexOf(o),1),u.unshift(o),{response:a.response,updatedFetchers:u}}return{response:a.response}}if("response"in i)return{response:i.response};throw i.err}return{response:await r[0].fetch(e,t)}}async function FD(r,e,t,n){try{n.debug(`FetcherService: trying fetcher ${r.name} for ${e}`);let i=await r.fetch(e,t);if(!i.ok)return n.info(`FetcherService: ${r.name} failed with status: ${i.status} ${i.statusText}`),{ok:!1,response:i};if(!t.expectJSON)return n.debug(`FetcherService: ${r.name} succeeded (not JSON)`),{ok:i.ok,response:i};let o=await i.text();try{let a=JSON.parse(o);return n.debug(`FetcherService: ${r.name} succeeded (JSON)`),{ok:!0,response:new Ef(i.status,i.statusText,i.headers,async()=>o,async()=>a,async()=>Xh.Readable.from([o]))}}catch(a){return n.info(`FetcherService: ${r.name} failed to parse JSON: ${a.message}`),{ok:!1,err:a,response:new Ef(i.status,i.statusText,i.headers,async()=>o,async()=>{throw a},async()=>Xh.Readable.from([o]))}}}catch(i){return n.info(`FetcherService: ${r.name} failed with error: ${i.message}`),{ok:!1,err:i}}}var Pn=W0(),Ef=class{constructor(e,t,n,i,o,a){this.status=e;this.statusText=t;this.headers=n;this.text=i;this.json=o;this.body=a;this.ok=this.status>=200&&this.status<300}status;statusText;headers;text;json;body;ok};async function X0(r,e){return new Promise((t,n)=>{let{method:i,headers:o,body:a,signal:s}=e,c=(r.startsWith("https:")?z0:V0).request(r,{method:i,headers:o},f=>{if(s?.aborted){f.destroy(),c.destroy(),n(Qh(s));return}let d=new Jh(c,f,s);t(new Ef(f.statusCode||0,f.statusMessage||"",d.headers,async()=>d.text(),async()=>d.json(),async()=>d.body()))});c.setTimeout(60*1e3),c.on("error",n),a&&c.write(a),c.end()})}var Jh=class{constructor(e,t,n){this.req=e;this.res=t;this.signal=n;this.headers=new class{get(i){let o=t.headers[i];return Array.isArray(o)?o[0]:o??null}[Symbol.iterator](){let i=Object.keys(t.headers),o=0;return{next:()=>{if(o>=i.length)return{done:!0,value:void 0};let a=i[o++];return{done:!1,value:[a,this.get(a)]}}}}}}req;res;signal;headers;text(){return new Promise((e,t)=>{let n=[];this.res.on("data",i=>n.push(i)),this.res.on("end",()=>e(Buffer.concat(n).toString())),this.res.on("error",t),this.signal?.addEventListener("abort",()=>{this.res.destroy(),this.req.destroy(),t(Qh(this.signal))})})}async json(){let e=await this.text();return JSON.parse(e)}async body(){return this.signal?.addEventListener("abort",()=>{this.res.emit("error",Qh(this.signal)),this.res.destroy(),this.req.destroy()}),this.res}};function Qh(r){return r.reason}var Lv=class{constructor(e){this._logger=e}_logger;async send({url:e,method:t,headers:n,body:i,retryFallbacks:o}){let a=await Pn(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()}}};var HD=require("crypto"),as=HD.webcrypto;var zD=Ar(require("path")),Ne=require("vscode");var zr={gitHubClientId:"01ab8ac9400c4e429b23"};var GD=Ar(require("http")),Zh=require("url"),BD=Ar(require("fs")),eg=Ar(require("path")),jD=require("crypto"),rg=require("vscode");function kD(r,e){let t=e.endsWith(".svg");BD.readFile(e,(n,i)=>{n?(console.error(n),r.writeHead(404),r.end()):(t&&r.setHeader("Content-Type","image/svg+xml"),r.setHeader("content-length",i.length),r.writeHead(200),r.end(i))})}var Yv=class{_server;_resultPromise;_startingRedirect;nonce=(0,jD.randomBytes)(16).toString("base64");port;set state(e){e?this._startingRedirect.searchParams.set("state",e):this._startingRedirect.searchParams.delete("state")}get state(){return this._startingRedirect.searchParams.get("state")??void 0}constructor(e,t,n,i){if(!e)throw new Error("serveRoot must be defined");if(!t)throw new Error("startingRedirect must be defined");this._startingRedirect=new Zh.URL(t);let o;this._resultPromise=new Promise((s,u)=>o={resolve:s,reject:u});let a=`&app_name=${encodeURIComponent(rg.env.appName)}`;this._server=GD.createServer((s,u)=>{let c=new Zh.URL(s.url,`http://${s.headers.host}`);switch(c.pathname){case"/signin":{(c.searchParams.get("nonce")??"").replace(/ /g,"+")!==this.nonce&&(u.writeHead(302,{location:`/?error=${encodeURIComponent("Nonce does not match.")}${a}`}),u.end()),u.writeHead(302,{location:this._startingRedirect.toString()}),u.end();break}case"/callback":{let f=c.searchParams.get("code")??void 0,d=c.searchParams.get("state")??void 0,v=(c.searchParams.get("nonce")??"").replace(/ /g,"+");if(!f||!d||!v){u.writeHead(400),u.end();return}if(this.state!==d)throw u.writeHead(302,{location:`/?error=${encodeURIComponent("State does not match.")}${a}`}),u.end(),new Error("State does not match.");if(this.nonce!==v)throw u.writeHead(302,{location:`/?error=${encodeURIComponent("Nonce does not match.")}${a}`}),u.end(),new Error("Nonce does not match.");o.resolve({code:f,state:d}),i?u.writeHead(302,{location:`/?app_name=${encodeURIComponent(rg.env.appName)}`}):u.writeHead(302,{location:`/?redirect_uri=${encodeURIComponent(n)}${a}`}),u.end();break}case"/":kD(u,eg.join(e,"index.html"));break;default:kD(u,eg.join(e,c.pathname.substring(1)));break}})}start(){return new Promise((e,t)=>{if(this._server.listening)throw new Error("Server is already started");let n=setTimeout(()=>{t(new Error("Timeout waiting for port"))},5e3);this._server.on("listening",()=>{let i=this._server.address();if(typeof i=="string")this.port=parseInt(i);else if(i instanceof Object)this.port=i.port;else throw new Error("Unable to determine port");clearTimeout(n),this.state=`http://127.0.0.1:${this.port}/callback?nonce=${encodeURIComponent(this.nonce)}`,e(this.port)}),this._server.on("error",i=>{t(new Error(`Error listening to server: ${i}`))}),this._server.on("close",()=>{t(new Error("Closed"))}),this._server.listen(0,"127.0.0.1")})}stop(){return new Promise((e,t)=>{if(!this._server.listening)throw new Error("Server is not started");this._server.close(n=>{n?t(n):e()})})}waitForOAuthResponse(){return this._resultPromise}};var VD=require("vscode");var J0=(r,e)=>e(r);function Sf(r,e=J0){let t,n=new VD.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 tg(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 KD(r){let e=new Uint8Array(r);return as.getRandomValues(e),Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("").substring(0,r)}async function WD(r){let t=new TextEncoder().encode(r),n=await as.subtle.digest("SHA-256",t);return btoa(String.fromCharCode(...new Uint8Array(n))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}async function $D(r,e,t,n,i,o){r.info("Exchanging code for token...");let a=zr.gitHubClientSecret;if(!a)throw new Error("No client secret configured for GitHub authentication.");let s=new URLSearchParams([["code",n],["client_id",zr.gitHubClientId],["redirect_uri",t.toString(!0)],["client_secret",a],["code_verifier",i]]);o&&s.append("github_enterprise",o.toString(!0));let u=await Pn(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(),f=new Error(c);throw f.name="GitHubTokenExchangeError",f}}var ng=class{label=Ne.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:f,logger:d}){return d.info(`Trying without local server... (${e})`),await Ne.window.withProgress({location:Ne.ProgressLocation.Notification,title:Ne.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(v,m)=>{let _=KD(64),N=await WD(_),h=c.waitForCode(d,e,a,m,t),b=new URLSearchParams([["client_id",zr.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["state",encodeURIComponent(i.toString(!0))],["code_challenge",N],["code_challenge_method","S256"]]);if(f?b.append("login",f):b.append("prompt","select_account"),s&&b.append("provider",s),u)for(let[$,ie]of Object.entries(u))b.append($,ie);let T=Ne.Uri.parse(t.with({path:"/login/oauth/authorize",query:b.toString()}).toString(!0));await Ne.env.openExternal(T);let I=await h,w=await Ne.commands.executeCommand("workbench.getCodeExchangeProxyEndpoints"),Y=w?.github?Ne.Uri.parse(`${w.github}login/oauth/access_token`):t.with({path:"/login/oauth/access_token"});return await $D(d,Y,n,I,_,o)})}},ig=class{label=Ne.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 Ne.window.withProgress({location:Ne.ProgressLocation.Notification,title:Ne.l10n.t({message:"Signing in to {0}...",args:[t.authority],comment:["The {0} will be a url, e.g. github.com"]}),cancellable:!0},async(f,d)=>{let v=KD(64),m=await WD(v),_=new URLSearchParams([["client_id",zr.gitHubClientId],["redirect_uri",n.toString(!0)],["scope",e],["code_challenge",m],["code_challenge_method","S256"]]);if(u?_.append("login",u):_.append("prompt","select_account"),a&&_.append("provider",a),s)for(let[w,Y]of Object.entries(s))_.append(w,Y);let N=t.with({path:"/login/oauth/authorize",query:_.toString()}),h=new Yv(zD.join(__dirname,"../media"),N.toString(!0),i.toString(!0),Ne.env.isAppPortable),b=await h.start(),T;try{Ne.env.openExternal(Ne.Uri.parse(`http://127.0.0.1:${b}/signin?nonce=${encodeURIComponent(h.nonce)}`));let{code:w}=await Promise.race([h.waitForOAuthResponse(),new Promise((Y,B)=>setTimeout(()=>B(hf),3e5)),Sf(d.onCancellationRequested,(Y,B,$)=>{$(ci)}).promise]);T=w}finally{setTimeout(()=>{h.stop()},5e3)}return await $D(c,t.with({path:"/login/oauth/access_token"}),n,T,v,o)})}},Nf=class{label=Ne.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=${zr.gitHubClientId}&scope=${e}`}),s=await Pn(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=Ne.l10n.t("Copy & Continue to Browser");if(await Ne.window.showInformationMessage(Ne.l10n.t({message:"Your Code: {0}",args:[u.user_code],comment:["The {0} will be a code, e.g. 123-456"]}),{modal:!0,detail:Ne.l10n.t("To finish authenticating, navigate to GitHub and paste in the above one-time code.")},c)!==c)throw new Error(ci);await Ne.env.clipboard.writeText(u.user_code);let d=Ne.Uri.parse(u.verification_uri),v=new URLSearchParams(d.query);if(n&&v.set("provider",n),i)for(let[_,N]of Object.entries(i))v.set(_,N);(n||i)&&(d=d.with({query:v.toString()}));let m=await Ne.env.asExternalUri(d);return await Ne.env.openExternal(m),await this.waitForDeviceCodeAccessToken(o,t,u)}async waitForDeviceCodeAccessToken(e,t,n){return await Ne.window.withProgress({location:Ne.ProgressLocation.Notification,cancellable:!0,title:Ne.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=${zr.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(d=>setTimeout(d,n.interval*1e3)),o.isCancellationRequested)throw new Error(ci);let c;try{c=await Pn(a.toString(!0),{logger:e,retryFallbacks:!0,expectJSON:!0,method:"POST",headers:{Accept:"application/json"}})}catch{continue}if(!c.ok)continue;let f=await c.json();if(f.error!=="authorization_pending"){if(f.error)throw new Error(f.error_description);return f.access_token}}throw new Error(hf)})}},og=class{label=Ne.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=Ne.l10n.t("Continue to GitHub");if(await Ne.window.showInformationMessage(Ne.l10n.t("Continue to GitHub to create a Personal Access Token (PAT)"),{modal:!0,detail:Ne.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(ci);let s=`${Ne.env.appName} (${e})`,u=await Ne.env.asExternalUri(t.with({path:"/settings/tokens/new",query:`description=${s}&scopes=${e.split(" ").join(",")}`}));await Ne.env.openExternal(u);let c=await Ne.window.showInputBox({placeHolder:"ghp_1a2b3c4...",prompt:`GitHub Personal Access Token - ${e}`,ignoreFocusOut:!0});if(!c)throw new Error(ci);let f=!i||$h(i)?Ne.Uri.parse(`${t.scheme}://api.${t.authority}`):Ne.Uri.parse(`${t.scheme}://${t.authority}/api/v3`),d=await this.getScopes(c,f,n);if(!e.split(" ").every(m=>{let _=d.includes(m);return _||!m.includes(":")?_:m.split(":").some(N=>d.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 Pn(t.toString(),{logger:n,retryFallbacks:!0,expectJSON:!1,headers:{Authorization:`token ${e}`,"User-Agent":`${Ne.env.appName} (${Ne.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(wv)}}},Q0=[new ig,new ng,new Nf,new og];function qD(r){let e=Q0.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 zr.gitHubClientSecret||(i&&=n.options.supportsNoClientSecret),r.isSupportedClient?i&&=n.options.supportsSupportedClients||r.target!==0:i&&=n.options.supportsUnsupportedClients,i});return Ne.workspace.getConfiguration("github-authentication").get("preferDeviceCodeFlow",!1)?[...e.filter(n=>n instanceof Nf),...e.filter(n=>!(n instanceof Nf))]:e}function XD(r){return r==="google"||r==="apple"||r==="microsoft"}function JD(r){return Buffer.from(r,"binary").toString("base64")}var dt=Ar(require("vscode"));var Z0="urn:ietf:params:oauth:grant-type:token-exchange",QD="urn:ietf:params:oauth:token-type:access_token",ZD=["read:user"];var gt=class extends Error{constructor(t,n){super(n);this.failure=t}failure},Uv=class{async show(e,...t){return await dt.window.showInformationMessage(e,{modal:!0},...t)}},Fv=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,ZD),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(cn);let f=await this.exchange(n,a.token,e),d=await this.verifyAccount(f.token,u.id);return await this.linkAccounts(a.account.label,d),{token:f.token,expiresAfter:f.expiresAfter,account:d}}}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 gt("microsoftSignIn",dt.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,ZD)).token,await this.discoverAccount(t)}catch(n){let i=n instanceof gt?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=zr.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(`${zr.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 gt("accountMismatch",dt.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 gt("configuration",dt.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 tP(i)?new Error(cn):(this._logger.error(`Could not acquire a Microsoft access token: ${i?.message??i}`),new gt("microsoftSignIn",dt.l10n.t("Could not sign in to Microsoft. Try again or choose a different way to sign in.")))}if(!n)throw new Error(cn);return n}async linkAccounts(e,t){await this._accountLinks.link(e,{id:t.id,label:t.accountName})}async discoverAccount(e){try{return await Ov(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 gt("identity",dt.l10n.t("Could not read the GitHub account linked to your Microsoft account."))}}async confirmAccount(e){let t=`@${e.accountName}`,n=dt.l10n.t("Sign in with SSO"),i=dt.l10n.t("Use a Different Microsoft Account");switch(await this._confirmation.show(dt.l10n.t(`Your organization's Microsoft sign-in is linked to this GitHub account:
{0}
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:zr.gitHubClientId,grant_type:Z0,subject_token:t,subject_token_type:QD,...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: ${rP(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(h){throw this._logger.error(`Could not reach GitHub to exchange the Microsoft token: ${h?.message??h}`),new gt("network",dt.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:f,token_type:d,expires_in:v,scope:m}=u;if(typeof c!="string"||!c)throw this.protocolError("no access token");if(f!==QD)throw this.protocolError("unexpected issued token type");if(typeof d!="string"||d.toLowerCase()!=="bearer")throw this.protocolError("unexpected token type");if(typeof v!="number"||!isFinite(v)||v<=0)throw this.protocolError("missing or invalid expiry");if(m!==void 0&&typeof m!="string")throw this.protocolError("invalid granted scopes");this._logger.info(`The GitHub token exchange granted the scopes: ${m??"unreported"}`);let _=m?.split(/[\s,]+/).filter(Boolean),N=i?.filter(h=>_&&!_.includes(h));return N?.length&&this._logger.warn(`The GitHub token exchange did not grant every requested scope. Missing: ${N.join(" ")}`),{token:c,expiresAfter:v*1e3,grantedScopes:_}}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 gt("configuration",dt.l10n.t("GitHub is not configured to accept Microsoft sign in from this application ({0}).",e));case"invalid_grant":return new gt("identity",dt.l10n.t("GitHub did not accept your Microsoft account for sign in."));default:return new gt("protocol",dt.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 gt("protocol",dt.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"}.`)}},eP=["iss","aud","appid","azp","tid"];function rP(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=eP.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 tP(r){if(r===cn)return!0;let e=r?.message;return e===cn||e==="User did not consent to login."}var nP="https://vscode.dev/redirect",iP="https://insiders.vscode.dev/redirect",Mv=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 Lv(e);let u=os(this._type,s)?this.baseUri.with({path:"/login/oauth/access_token"}).toString(!0):void 0,c=os(this._type,s)?this.getServerUri(`/applications/${zr.gitHubClientId}/token`).toString(!0):void 0;this._entraTokenExchange=new Fv(e,{tokenExchange:u,tokenRevocation:c,userInfo:this.getServerUri("/user").toString()},o,a,this._http,new Uv)}_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=nP,e?.github&&new URL(e.github).hostname==="insiders.vscode.dev"&&(this._redirectEndpoint=iP)}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 h=>{if(a===void 0)return;let b=a?Le.l10n.t("Having trouble logging in? Would you like to try a different way? ({0})",h):Le.l10n.t("You have not yet finished authorizing this extension to use GitHub. Would you like to try a different way? ({0})",h);if(await Le.window.showWarningMessage(b,s,u)!==s)throw new Error(cn)},f=as.getRandomValues(new Uint32Array(2)).reduce((h,b)=>h+=b.toString(16),""),d=await Le.env.asExternalUri(Le.Uri.parse(`${Le.env.uriScheme}://vscode.github-authentication/did-authenticate?nonce=${encodeURIComponent(f)}`)),v=LD(d),m=os(this._type,this._ghesUri),_=typeof process<"u"&&typeof process?.versions?.node=="string",N=qD({target:this._type==="github"?0:m?2:1,extensionHost:_?this._extensionKind===Le.ExtensionKind.UI?2:1:0,isSupportedClient:v});for(let h of N)try{return h!==N[0]&&await c(h.label),{token:await h.trigger({scopes:e,callbackUri:d,nonce:f,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(b){a=this.processLoginError(b)}throw new Error(a?cn:"No auth flow succeeded.")}async logout(e){if(this._logger.trace(`Deleting session (${e.id}) from server...`),!zr.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(!os(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 "+JD(`${zr.gitHubClientId}:${zr.gitHubClientSecret}`),n=this.getServerUri(`/applications/${zr.gitHubClientId}/token`);try{let i=await Pn(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 os(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 Ov(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 Pn("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(os(this._type,this._ghesUri))t="hosted";else{let n=await Pn(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===cn)throw e;return this._logger.error(e.message??e),e.message===ci}};var hy=Ar(require("vscode")),qo=Ar(my()),Xv=class{constructor(e,t){this.context=e;this.baseReporter=t}context;baseReporter;sharedProperties={};experimentationServicePromise;async createExperimentationService(){let e;switch(hy.env.uriScheme){case"vscode":e=qo.TargetPopulation.Public;break;case"vscode-insiders":e=qo.TargetPopulation.Insiders;break;case"vscode-exploration":e=qo.TargetPopulation.Internal;break;case"code-oss":e=qo.TargetPopulation.Team;break;default:e=qo.TargetPopulation.Public;break}let t=this.context.extension.id,n=this.context.extension.packageJSON.version,i=(0,qo.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()}};var gy=Ar(require("vscode"));var Jv=class{constructor(e,t){this.type=e;let n=this.type==="github"?"GitHub":"GitHub Enterprise";this.output=gy.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}};var Qv=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}}};var Ng=Ar(require("vscode")),Zv="microsoft",IP="12f6db80-0741-4a7e-b9c5-b85d737b3a31/.default",e_=class{async getToken(e){let t=await Ng.authentication.getSession(Zv,[IP],xP(e));return t&&{token:t.accessToken,account:t.account}}async getAccounts(){return await Ng.authentication.getAccounts(Zv)}};function xP(r){return r.silent?{silent:!0,account:r.account}:r.forceNewSession?{forceNewSession:!0,clearSessionPreference:!0}:{createIfNone:!0,account:r.account}}var Df=Ar(require("vscode")),ss="github-enterprise.uri",r_=".ghes.auth";function Kr(r){return r.with({scheme:r.scheme.toLowerCase(),path:r.path.replace(/\/+$/,"")}).toString()}function Tg(r){return`${Kr(r)}${r_}`}var Tf=".microsoftAccountLinks";function bP(r,e){if(!r.endsWith(r_)||r.includes("://"))return;let t=r.slice(0,-r_.length),n=t.indexOf("/");return Df.Uri.from({scheme:e,authority:n<0?t:t.slice(0,n),path:n<0?"":t.slice(n)})}async function Ey(r,e){return{key:e,tokens:await r.secrets.get(e),links:r.globalState.get(`${e}${Tf}`)}}function Sy(r,e,t){if(r.length<2)return r[0];let n=r.find(i=>i.key===e);if(!n)throw new Error(Df.l10n.t("Multiple saved authentication stores match {0}. Set {1} to the previously used URI before migrating its saved sign-in.",t.toString(!0),ss));return n}async function PP(r,e,t,n,i){let o=t.tokens===void 0?Sy(e.filter(s=>s.tokens!==void 0),n,i):void 0,a=t.links===void 0?Sy(e.filter(s=>s.links!==void 0),n,i):void 0;a?.links!==void 0&&await r.globalState.update(`${t.key}${Tf}`,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}${Tf}`,void 0)}async function Ny(r,e,t=[e],n){let i=Kr(e),o=new Set([...await r.secrets.keys(),...r.globalState.keys().filter(v=>v.endsWith(Tf)).map(v=>v.slice(0,-Tf.length))]),a=[];for(let v of o){let m=bP(v,e.scheme);if(m&&Kr(m)===i){let _=await Ey(r,v);(_.tokens!==void 0||_.links!==void 0)&&a.push(_)}}let s=await Ey(r,Tg(e));if(!a.length)return;let u=n??(t.length===1?t[0]:void 0),c=u&&Kr(u.with({scheme:e.scheme}))===i;if(c&&Kr(u)!==i)return;let f=new Set(t.filter(v=>Kr(v.with({scheme:e.scheme}))===i).map(Kr));if(!c&&f.size>1){let v=s.tokens===void 0&&a.some(_=>_.tokens!==void 0),m=s.links===void 0&&a.some(_=>_.links!==void 0);if(!v&&!m)return;throw new Error(Df.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,ss))}let d=c?`${u.authority}${u.path}${r_}`:void 0;await PP(r,a,s,d,e)}var AP=3600*1e3,CP="_workbenchEntraExchangeProbe";function RP(r){if(!r||typeof r!="object")throw new Error("Options are not an object");let{provider:e,extraAuthorizeParameters:t}=r;if(e!==void 0&&!XD(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 t_=class extends br.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=Sf(this.event,this.handleEvent(e,a)),this._codeExchangePromises.set(a,u));try{return await Promise.race([u.promise,new Promise((c,f)=>setTimeout(()=>f(hf),3e5)),Sf(i.onCancellationRequested,(c,f,d)=>{d(ci)}).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 wP(){return as.getRandomValues(new Uint32Array(2)).reduce((r,e)=>r+=e.toString(16),"")}var Ru=class{constructor(e,t,n,i){this.context=e;let{aiKey:o}=e.extension.packageJSON;this._telemetryReporter=new Xv(e,new Ty.default(o));let a=n?"github-enterprise":"github";this._accountLabelSuffix=n?` - ${n.authority}${n.path.replace(/\/+$/,"")}`:void 0,this._logger=new Jv(a,n);let s=i??(a==="github"?`${a}.auth`:`${n?.authority}${n?.path}.ghes.auth`);this._keychain=new Rv(this.context,s,this._logger),this._accountLinks=new Qv(this.context.globalState,`${s}.microsoftAccountLinks`,this._logger),this._microsoft=new e_,this._githubServer=new Mv(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=br.Disposable.from(this._telemetryReporter,this._sessionChangeEmitter,this._logger,this.context.secrets.onDidChange(()=>this.checkForUpdates()),br.authentication.onDidChangeSessions(async u=>{u.provider.id===Zv&&(this._microsoftGeneration++,this._restoresTried.clear(),await this.evictUnreachable())}))}context;_sessionChangeEmitter=new br.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?.[CP];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=d=>!t?.authorizationServer||!!d.authorizationServer&&Kr(d.authorizationServer)===Kr(t.authorizationServer),u=a.filter(d=>s(d)&&(!t?.account||this.accountName(d.account.label)===this.accountName(t.account.label))&&(!i.length||tg([...d.scopes].sort(),i))),c=await this.stillGood(u),f=await this.restore(i,t?.account,c);return this._logger.info(`Got ${c.length+f.length} sessions for ${o}...`),[...c,...f.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}
${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 gt&&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+AP?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),f=c?c.expiresAt-Date.now():0;c&&f>0?s.push({...c.session,expiresAfter:f}):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(d){if(d.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 f=a.account?.icon?br.Uri.from(a.account.icon):u?.avatarUrl?br.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:f},scopes:a.scopes,accessToken:a.accessToken,authorizationServer:a.authorizationServer?br.Uri.from(a.authorizationServer):br.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&&!RP(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 v=await this.createMicrosoftSession(e,i,t?.authorizationServer);return this._logger.info("Login success!"),v}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 f=a.findIndex(v=>v.account.id===c.account.id&&tg([...v.scopes].sort(),n)),d=new Array;return f>-1?d.push(...a.splice(f,1,c)):a.push(c),await this.storeSessions(a),this.logSessionChange("interactive-login",1,d.length,0),this._sessionChangeEmitter.fire({added:[c],removed:d,changed:[]}),this._logger.info("Login success!"),c}catch(n){throw n==="Cancelled"||n.message==="Cancelled"?(this._telemetryReporter?.sendTelemetryEvent("loginCancelled"),n):(this._telemetryReporter?.sendTelemetryEvent("loginFailed"),br.window.showErrorMessage(br.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:wP(),accessToken:t.token,account:{label:this.accountLabel(e.accountName),id:e.id,icon:e.avatarUrl?br.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&&Kr(e.authorizationServer)!==Kr(t))throw new Error(br.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"),br.window.showErrorMessage(br.l10n.t("Sign out failed: {0}",`${t}`)),this._logger.error(t),t}}};var er=Ar(require("vscode"));var yf=Ar(require("vscode"));var us="github-enterprise.uris";function Dy(r,e){let t=r.inspect(us),n=t&&(t.globalValue!==void 0||e&&(t.workspaceValue!==void 0||t.workspaceFolderValue!==void 0)),i=r.get(ss),o=n?r.get(us):i?[i]:[];if(!Array.isArray(o))throw new Error(yf.l10n.t("GitHub Enterprise URIs must be an array of instance URLs."));return o.map(OP)}function OP(r){try{if(typeof r!="string"||!r)throw new Error("Expected a non-empty URI");let e=yf.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(yf.l10n.t("Invalid GitHub Enterprise instance URI: {0}",String(r)))}}function If(r){r.listener.dispose(),r.engine.dispose(),r.initialChanges.clear()}function LP(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 n_=class{constructor(e,t){this._context=e;this._uriHandler=t}_context;_uriHandler;_onDidChangeSessions=new er.EventEmitter;onDidChangeSessions=this._onDidChangeSessions.event;_hosts=new Map;_disposeCancellation=new er.CancellationTokenSource;_pendingUpdate=Promise.resolve();_registration;_configurationError=er.l10n.t("Configure {0} before signing in to GitHub Enterprise.",us);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(Kr))].sort(),i=n.filter(u=>!this._hosts.has(u)),o=[...this._hosts.values()].filter(u=>!n.includes(u.key));if(this._configurationError=t?.error??er.l10n.t("Configure {0} before signing in to GitHub Enterprise.",us),this._registration&&!i.length&&!o.length)return;for(let u of i)await Ny(this._context,er.Uri.parse(u),e,t?.legacyUri),this.throwIfDisposed();let a=this.createHosts(i),s=this._disposeCancellation.token.onCancellationRequested(()=>a.forEach(If));try{let u=await Promise.all(a.map(d=>d.engine.getSessions(void 0,{authorizationServer:d.authorizationServer})));this.throwIfDisposed();let c=(await Promise.all(o.map(d=>d.engine.getCachedSessions()))).flat();this.throwIfDisposed();let f=a.flatMap((d,v)=>LP(d,u[v]));this.commitHosts(n,a,o,{added:f,removed:c,changed:[]})}catch(u){throw a.forEach(If),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(If),n}}createHost(e){let t=er.Uri.parse(e),n=new Ru(this._context,this._uriHandler,t,Tg(t)),i=new Map,o={key:e,uri:t,authorizationServer:er.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(If),(i.added?.length||i.removed?.length)&&this._onDidChangeSessions.fire(i)}registerProvider(){this._registration?.dispose(),this._registration=er.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 er.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(Kr(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 er.window.showQuickPick(o.map(s=>({label:s.uri.toString(!0),host:s})),{title:er.l10n.t("Sign in to GitHub Enterprise"),placeHolder:er.l10n.t("Select the GitHub Enterprise instance to sign in to"),ignoreFocusOut:!0});if(!a)throw new Error(cn);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(er.l10n.t("The GitHub Enterprise session does not belong to a configured instance."));if(t.length>1)throw new Error(er.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=Kr(e.authorizationServer);if(t=[...this._hosts.values()].find(a=>Kr(a.authorizationServer)===o),!t)throw new Error(er.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(er.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(Kr(e.uri))!==e)throw new Error(er.l10n.t("The selected GitHub Enterprise instance is no longer configured."))}dispose(){this._disposeCancellation.cancel(),this._disposeCancellation.dispose(),this._registration?.dispose(),this._hosts.forEach(If),this._hosts.clear(),this._onDidChangeSessions.dispose()}};async function YP(r){let e=new t_;r.subscriptions.push(e),r.subscriptions.push(ze.window.registerUriHandler(e));let t=new Ru(r,e);r.subscriptions.push(t),r.subscriptions.push(ze.authentication.registerAuthenticationProvider("github","GitHub",t,{supportsMultipleAccounts:!0,supportedAuthorizationServers:[ze.Uri.parse("https://github.com/login/oauth")]}));let n=new n_(r,e);r.subscriptions.push(n);let i=async()=>{let s=ze.workspace.getConfiguration(),u;try{u=Dy(s,ze.workspace.isTrusted)}catch(d){await n.update([],{error:d.message}),ze.window.showErrorMessage(d.message);return}let c=s.get(ss),f=typeof c=="string"&&/^https?:\/\//i.test(c)?ze.Uri.parse(c):void 0;await n.update(u,{legacyUri:f})},o=async()=>{try{await i()}catch(s){ze.window.showErrorMessage(ze.l10n.t("Could not update GitHub Enterprise authentication: {0}",s instanceof Error?s.message:String(s)))}};r.subscriptions.push(ze.workspace.onDidChangeConfiguration(s=>{(s.affectsConfiguration(us)||s.affectsConfiguration(ss))&&o()})),r.subscriptions.push(ze.workspace.onDidGrantWorkspaceTrust(o));try{await i()}catch(s){ze.window.showErrorMessage(ze.l10n.t("Could not initialize GitHub Enterprise authentication: {0}",s instanceof Error?s.message:String(s)))}let a=ze.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);r.subscriptions.push(ze.workspace.onDidChangeConfiguration(async s=>{if(s.affectsConfiguration("github-authentication.useElectronFetch")){let u=ze.workspace.getConfiguration().get("github-authentication.useElectronFetch",!0);a!==u&&await ze.window.showInformationMessage(ze.l10n.t("GitHub Authentication - Reload required"),{modal:!0,detail:ze.l10n.t("A reload is required for the fetch setting change to take effect.")},ze.l10n.t("Reload Window"))&&await ze.commands.executeCommand("workbench.action.reloadWindow")}}))}0&&(module.exports={activate});
/*! Bundled license information:
@nevware21/ts-utils/dist/es5/mod/ts-utils.js:
(*! https://github.com/nevware21/ts-utils v0.14.0 *)
@nevware21/ts-async/dist/es5/mod/ts-async.js:
(*!
* NevWare21 Solutions LLC - ts-async, 0.5.4
* https://github.com/nevware21/ts-async
* Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved.
* Licensed under the MIT license.
*)
*/
//# sourceMappingURL=extension.js.map