3 lines
592 KiB
JavaScript
3 lines
592 KiB
JavaScript
/*! For license information please see extension.browser.js.LICENSE.txt */
|
||
(()=>{var e={7164:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>W,BaseCore:()=>B,BaseTelemetryPlugin:()=>k.i,CoreUtils:()=>K.Tr,DiagnosticLogger:()=>m.AQ,ESPromise:()=>J,ESPromiseScheduler:()=>ne,EventHelper:()=>se.zB,EventLatency:()=>l,EventPersistence:()=>f,EventPropertyType:()=>d,EventsDiscardedReason:()=>oe.h,FullVersionString:()=>K.vs,InternalAppInsightsCore:()=>U,InternalBaseCore:()=>L,LoggingSeverity:()=>a,MinChannelPriorty:()=>re,NotificationManager:()=>j,PerfEvent:()=>v.zn,PerfManager:()=>v.Jk,ProcessTelemetryContext:()=>T.Vi,TraceLevel:()=>p,Undefined:()=>ue.jA,Utils:()=>K.cQ,ValueKind:()=>u,ValueSanitizer:()=>ie,Version:()=>K.Gf,_ExtendedInternalMessageId:()=>g,_InternalLogMessage:()=>m.lQ,_InternalMessageId:()=>c,__getRegisteredEvents:()=>ae.um,_logInternalMessage:()=>m.L4,_throwInternal:()=>m.kP,_warnToConsole:()=>m.jV,addEventHandler:()=>ae.Ib,addEventListeners:()=>ae.yw,addPageHideEventListener:()=>ae.TJ,addPageShowEventListener:()=>ae.nD,addPageUnloadEventListener:()=>ae.c9,areCookiesSupported:()=>w.p7,arrForEach:()=>s.tO,arrIndexOf:()=>s.UA,arrMap:()=>s.Mr,arrReduce:()=>s.Xz,attachEvent:()=>ae.pZ,cookieAvailable:()=>w.p7,createCookieMgr:()=>w.Nz,createEnumStyle:()=>o.By,createGuid:()=>K.cm,createProcessTelemetryContext:()=>T.CD,createTraceParent:()=>le.SU,createUniqueNamespace:()=>E.J,createUnloadHandlerContainer:()=>I.Y,dateNow:()=>s.m6,deleteCookie:()=>K.kT,detachEvent:()=>ae.pD,disableCookies:()=>K.oF,disallowsSameSiteNone:()=>w.UY,doPerf:()=>v.Lm,dumpObj:()=>y.eU,eventOff:()=>ae.QY,eventOn:()=>ae.XO,extend:()=>K.l7,findW3cTraceParent:()=>le.lq,formatTraceParent:()=>le.aR,generateW3CId:()=>se.DO,getCommonSchemaMetaData:()=>K.Vv,getConsole:()=>y.dr,getCookie:()=>K.ej,getCookieValue:()=>K.Do,getCrypto:()=>y.MX,getDocument:()=>y.Me,getExceptionName:()=>s.jj,getFieldValueType:()=>K.Sy,getGlobal:()=>S.Rd,getGlobalInst:()=>y.a8,getHistory:()=>y.s1,getIEVersion:()=>y.sA,getISOString:()=>s.Y6,getJSON:()=>y.xA,getLocation:()=>y.k$,getMsCrypto:()=>y.gz,getNavigator:()=>y.jW,getPerformance:()=>y.r,getSetValue:()=>s.qK,getTenantId:()=>K.jM,getTime:()=>K.hK,getWindow:()=>y.Jj,hasDocument:()=>y.Nv,hasHistory:()=>y.fE,hasJSON:()=>y.nS,hasNavigator:()=>y.d6,hasOwnProperty:()=>s.nr,hasWindow:()=>y.Ym,isArray:()=>s.kJ,isArrayValid:()=>K.JT,isBeaconsSupported:()=>y.MF,isBoolean:()=>s.jn,isChromium:()=>K.mJ,isDate:()=>s.J_,isDocumentObjectAvailable:()=>K.x9,isError:()=>s.VZ,isFetchSupported:()=>y.JO,isFunction:()=>s.mf,isIE:()=>y.w1,isLatency:()=>K.r7,isNotTruthy:()=>s.F,isNullOrUndefined:()=>s.le,isNumber:()=>s.hj,isObject:()=>s.Kn,isReactNative:()=>y.b$,isSampledFlag:()=>le.Pn,isString:()=>s.HD,isTruthy:()=>s.fQ,isTypeof:()=>s.Ym,isUint8ArrayAvailable:()=>K.IZ,isUndefined:()=>s.o8,isValidSpanId:()=>le.Lc,isValidTraceId:()=>le.jN,isValidTraceParent:()=>le.J6,isValueAssigned:()=>K.Sn,isValueKind:()=>K.oS,isWindowObjectAvailable:()=>K.dH,isXhrSupported:()=>y.Z3,mergeEvtNamespace:()=>ae.jU,newGuid:()=>se.GW,newId:()=>ce.pZ,normalizeJsName:()=>s.Gf,objCreate:()=>S.pu,objDefineAccessors:()=>s.l_,objForEachKey:()=>s.rW,objFreeze:()=>s.FL,objKeys:()=>s.FY,objSeal:()=>s.Xi,openXhr:()=>K.ot,optimizeObject:()=>s.Ax,parseTraceParent:()=>le.j_,perfNow:()=>se.Jj,proxyAssign:()=>s.cf,proxyFunctionAs:()=>s.Oi,proxyFunctions:()=>s.Vb,random32:()=>ce._l,randomValue:()=>ce.az,removeEventHandler:()=>ae.C1,removeEventListeners:()=>ae.nJ,removePageHideEventListener:()=>ae.C9,removePageShowEventListener:()=>ae.Yl,removePageUnloadEventListener:()=>ae.JA,safeGetCookieMgr:()=>w.JP,safeGetLogger:()=>m.vH,sanitizeProperty:()=>K.yj,setCookie:()=>K.d8,setEnableEnvMocks:()=>y.dI,setProcessTelemetryTimings:()=>K.if,setValue:()=>s.sO,strContains:()=>s._Q,strEndsWith:()=>s.Id,strFunction:()=>ue.cb,strObject:()=>ue.fK,strPrototype:()=>ue.hB,strStartsWith:()=>s.xe,strTrim:()=>s.nd,strUndefined:()=>ue.jA,throwError:()=>s._y,toISOString:()=>s.Y6,useXDomainRequest:()=>y.cp});var i,r=n(7421),o=n(951),s=n(4869),a=(0,o.By)({CRITICAL:1,WARNING:2}),c=(0,o.By)(((i={}).BrowserDoesNotSupportLocalStorage=0,i.BrowserCannotReadLocalStorage=1,i.BrowserCannotReadSessionStorage=2,i.BrowserCannotWriteLocalStorage=3,i.BrowserCannotWriteSessionStorage=4,i.BrowserFailedRemovalFromLocalStorage=5,i.BrowserFailedRemovalFromSessionStorage=6,i.CannotSendEmptyTelemetry=7,i.ClientPerformanceMathError=8,i.ErrorParsingAISessionCookie=9,i.ErrorPVCalc=10,i.ExceptionWhileLoggingError=11,i.FailedAddingTelemetryToBuffer=12,i.FailedMonitorAjaxAbort=13,i.FailedMonitorAjaxDur=14,i.FailedMonitorAjaxOpen=15,i.FailedMonitorAjaxRSC=16,i.FailedMonitorAjaxSend=17,i.FailedMonitorAjaxGetCorrelationHeader=18,i.FailedToAddHandlerForOnBeforeUnload=19,i.FailedToSendQueuedTelemetry=20,i.FailedToReportDataLoss=21,i.FlushFailed=22,i.MessageLimitPerPVExceeded=23,i.MissingRequiredFieldSpecification=24,i.NavigationTimingNotSupported=25,i.OnError=26,i.SessionRenewalDateIsZero=27,i.SenderNotInitialized=28,i.StartTrackEventFailed=29,i.StopTrackEventFailed=30,i.StartTrackFailed=31,i.StopTrackFailed=32,i.TelemetrySampledAndNotSent=33,i.TrackEventFailed=34,i.TrackExceptionFailed=35,i.TrackMetricFailed=36,i.TrackPVFailed=37,i.TrackPVFailedCalc=38,i.TrackTraceFailed=39,i.TransmissionFailed=40,i.FailedToSetStorageBuffer=41,i.FailedToRestoreStorageBuffer=42,i.InvalidBackendResponse=43,i.FailedToFixDepricatedValues=44,i.InvalidDurationValue=45,i.TelemetryEnvelopeInvalid=46,i.CreateEnvelopeError=47,i.CannotSerializeObject=48,i.CannotSerializeObjectNonSerializable=49,i.CircularReferenceDetected=50,i.ClearAuthContextFailed=51,i.ExceptionTruncated=52,i.IllegalCharsInName=53,i.ItemNotInArray=54,i.MaxAjaxPerPVExceeded=55,i.MessageTruncated=56,i.NameTooLong=57,i.SampleRateOutOfRange=58,i.SetAuthContextFailed=59,i.SetAuthContextFailedAccountName=60,i.StringValueTooLong=61,i.StartCalledMoreThanOnce=62,i.StopCalledWithoutStart=63,i.TelemetryInitializerFailed=64,i.TrackArgumentsNotSpecified=65,i.UrlTooLong=66,i.SessionStorageBufferFull=67,i.CannotAccessCookie=68,i.IdTooLong=69,i.InvalidEvent=70,i.FailedMonitorAjaxSetRequestHeader=71,i.SendBrowserInfoOnUserInit=72,i.PluginException=73,i.NotificationException=74,i.SnippetScriptLoadFailure=99,i.InvalidInstrumentationKey=100,i.CannotParseAiBlobValue=101,i.InvalidContentBlob=102,i.TrackPageActionEventFailed=103,i.FailedAddingCustomDefinedRequestContext=104,i.InMemoryStorageBufferFull=105,i.InstrumentationKeyDeprecation=106,i)),u=(0,o.By)({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,CustomerContent_GenericContent:32}),l=(0,o.By)({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),d=(0,o.By)({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),f=(0,o.By)({Normal:1,Critical:2}),p=(0,o.By)({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),g=(0,s.FL)((0,r.uc)((0,r.uc)({},c),(0,o.By)({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),h=n(9141),m=n(9339),v=n(1782),y=n(9251),C=n(8145),S=n(175),_=n(6335),T=n(1030),b=n(9031),R=500;function D(e,t,n){t&&(0,s.kJ)(t)&&t[C.R5]>0&&(t=t.sort((function(e,t){return e[_.yi]-t[_.yi]})),(0,s.tO)(t,(function(e){e[_.yi]<R&&(0,s._y)("Channel has invalid priority - "+e[C.pZ])})),e[C.MW]({queue:(0,s.FL)(t),chain:(0,T.jV)(t,n[C.TC],n)}))}var w=n(8140),E=n(7624),P=n(8341),k=n(7951),x=function(e){function t(){var n,i,r=e.call(this)||this;function o(){n=0,i=[]}return r.identifier="TelemetryInitializerPlugin",r.priority=199,o(),(0,h.Z)(t,r,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return i[C.MW](t),{remove:function(){(0,s.tO)(i,(function(e,n){if(e.id===t.id)return i[C.cb](n,1),-1}))}}},e[_.hL]=function(t,n){for(var r=!1,o=i[C.R5],a=0;a<o;++a){var c=i[a];if(c)try{if(!1===c.fn[C.ZV](null,[t])){r=!0;break}}catch(e){(0,m.kP)(n[C.mc](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,s.jj)(e),{exception:(0,y.eU)(e)},!0)}}r||e[C.uL](t,n)},e[C.F3]=function(){o()}})),r}return(0,r.ne)(t,e),t.__ieDyn=1,t}(k.i),I=n(8593),N="Plugins must provide initialize method",O="SDK is still unloading...",A={loggingLevelConsole:1};function F(e,t){return new v.Jk(t)}function M(e,t){var n=!1;return(0,s.tO)(t,(function(t){if(t===e)return n=!0,-1})),n}var L=function(){function e(){var t,n,i,o,a,c,u,l,d,f,p,g,y,k,L,q,j,U,H,K,V=0,W=!1;(0,h.Z)(e,this,(function(e){function h(n){if(!V&&!W&&(n||e[C.eZ]&&e[C.eZ].queue[C.R5]>0)){var i=(0,s.v4)(t.diagnosticLogInterval);i&&i>0||(i=1e4),V=setInterval((function(){clearInterval(V),V=0,X()}),i)}return V}function z(){n=!1,t=(0,s.mm)(!0,{},A),e[C.TC]=t,e[C.eZ]=new m.AQ(t),e[C.iC]=[],L=new x,i=[],o=null,a=null,c=null,u=null,l=null,f=null,d=[],p=null,g=null,y=null,k=!1,q=null,j=(0,E.J)("AIBaseCore",!0),U=(0,I.Y)(),K=null}function B(){var n=(0,T.CD)(J(),t,e);return n[C.Fc](h),n}function $(n){var i=function(e,t,n){var i,r=[],o={};return(0,s.tO)(n,(function(t){((0,s.le)(t)||(0,s.le)(t[C.VL]))&&(0,s._y)(N);var n=t[_.yi],i=t[C.pZ];t&&n&&((0,s.le)(o[n])?o[n]=i:(0,m.jV)(e,"Two extensions have same priority #"+n+" - "+o[n]+", "+i)),(!n||n<500)&&r[C.MW](t)})),(i={all:n})[_.oV]=r,i}(e[C.eZ],0,d);f=i[_.oV],l=null;var r=i.all;if(y=(0,s.FL)(function(e,t,n){var i=[];if(e&&(0,s.tO)(e,(function(e){return D(i,e,n)})),t){var r=[];(0,s.tO)(t,(function(e){e[_.yi]>R&&r[C.MW](e)})),D(i,r,n)}return i}(g,r,e)),p){var o=(0,s.UA)(r,p);-1!==o&&r[C.cb](o,1),-1!==(o=(0,s.UA)(f,p))&&f[C.cb](o,1),p._setQueue(y)}else p=function(e,t){function n(){return(0,T.CD)(null,t[C.TC],t,null)}function i(e,t,n,i){var r=e?e[C.R5]+1:1;function o(){0==--r&&(i&&i(),i=null)}r>0&&(0,s.tO)(e,(function(e){if(e&&e.queue[C.R5]>0){var i=e.chain,s=t[C.zV](i);s[C.Fc](o),n(s)}else r--})),o()}var r=!1,o={identifier:"ChannelControllerPlugin",priority:R,initialize:function(t,n,i,o){r=!0,(0,s.tO)(e,(function(e){e&&e.queue[C.R5]>0&&(0,b.bP)((0,T.CD)(e.chain,t,n),i)}))},isInitialized:function(){return r},processTelemetry:function(t,r){i(e,r||n(),(function(e){e[C.uL](t)}),(function(){r[C.uL](t)}))},update:function(t,n){var r=n||{reason:0};return i(e,t,(function(e){e[C.uL](r)}),(function(){t[C.uL](r)})),!0},pause:function(){i(e,n(),(function(e){e.iterate((function(e){e.pause&&e.pause()}))}),null)},resume:function(){i(e,n(),(function(e){e.iterate((function(e){e.resume&&e.resume()}))}),null)},teardown:function(t,n){var o=n||{reason:0,isAsync:!1};return i(e,t,(function(e){e[C.uL](o)}),(function(){t[C.uL](o),r=!1})),!0},getChannel:function(t){var n=null;return e&&e[C.R5]>0&&(0,s.tO)(e,(function(e){if(e&&e.queue[C.R5]>0&&((0,s.tO)(e.queue,(function(e){if(e[C.pZ]===t)return n=e,-1})),n))return-1})),n},flush:function(t,r,o,s){var a=1,c=!1,u=null;function l(){a--,c&&0===a&&(u&&(clearTimeout(u),u=null),r&&r(c),r=null)}return s=s||5e3,i(e,n(),(function(e){e.iterate((function(e){if(e[C.kL]){a++;var n=!1;e[C.kL](t,(function(){n=!0,l()}),o)||n||(t&&null==u?u=setTimeout((function(){u=null,l()}),s):l())}}))}),(function(){c=!0,l()})),!0},_setQueue:function(t){e=t}};return o}(y,e);r[C.MW](p),f[C.MW](p),e[C.iC]=(0,b.AA)(r),p[C.VL](t,e,r);var a=B();(0,b.bP)(a,r),e[C.iC]=(0,s.FL)((0,b.AA)(f||[])).slice(),n&&function(t){var n=(0,T.xy)(J(),e);n[C.Fc](h),e._updateHook&&!0===e._updateHook(n,t)||n[C.uL](t)}(n)}function G(t){var n,i=null,r=null;return(0,s.tO)(e[C.iC],(function(e){if(e[C.pZ]===t&&e!==p&&e!==L)return r=e,-1})),!r&&p&&(r=p.getChannel(t)),r&&((n={plugin:r})[C.$h]=function(e){(0,b.OY)(r)[_.mE]=!e},n.isEnabled=function(){var e=(0,b.OY)(r);return!e[C.fi]&&!e[_.mE]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var i=[r],o=((n={reason:1})[C.d]=e,n);Y(i,o,(function(e){e&&$({reason:32,removed:i}),t&&t(e)}))},i=n),i}function J(){if(!l){var n=(f||[]).slice();-1===(0,s.UA)(n,L)&&n[C.MW](L),l=(0,T.jV)((0,b.AA)(n),t,e)}return l}function Y(n,i,r){if(n&&n[C.R5]>0){var o=(0,T.jV)(n,t,e),a=(0,T.Bt)(o,e);a[C.Fc]((function(){var e=!1,t=[];(0,s.tO)(d,(function(i,r){M(i,n)?e=!0:t[C.MW](i)})),d=t;var i=[];g&&((0,s.tO)(g,(function(t,r){var o=[];(0,s.tO)(t,(function(t){M(t,n)?e=!0:o[C.MW](t)})),i[C.MW](o)})),g=i),r&&r(e),h()})),a[C.uL](i)}else r(!1)}function X(){if(e[C.eZ]&&e[C.eZ].queue){var n=e[C.eZ].queue.slice(0);e[C.eZ].queue[C.R5]=0,(0,s.tO)(n,(function(n){var i,r=((i={})[C.I]=q||"InternalMessageId: "+n[C.Gc],i.iKey=(0,s.v4)(t[C.p$]),i.time=(0,s.Y6)(new Date),i.baseType=m.lQ.dataType,i.baseData={message:n[C.gU]},i);e.track(r)}))}}function Z(e,t,n,i){return p?p[C.kL](e,t,n||6,i):(t&&t(!1),!0)}function Q(t){var n=e[C.eZ];n?((0,m.kP)(n,2,73,t),h()):(0,s._y)(t)}z(),e[C.yl]=function(){return n},e[C.VL]=function(i,a,u,l){var f,p;k&&(0,s._y)(O),e[C.yl]()&&(0,s._y)("Core should not be initialized more than once"),t=i||{},e[C.TC]=t,(0,s.le)(i[C.p$])&&(0,s._y)("Please provide instrumentation key"),o=l,e._notificationManager=l,!0===(p=(0,s.v4)(t.disableDbgExt))&&H&&(o[C.n7](H),H=null),o&&!H&&!0!==p&&(H=(0,P.p)(t),o[C.g](H)),!(f=(0,s.v4)(t.enablePerfMgr))&&c&&(c=null),f&&(0,s.qK)(t,_.DN,F),(0,s.qK)(t,_.Zh,{}).NotificationManager=o,u&&(e[C.eZ]=u);var h=(0,s.qK)(t,_.js,[]);(d=[])[C.MW].apply(d,(0,r.$h)((0,r.$h)([],a,!1),h,!1)),g=(0,s.qK)(t,_.Z,[]),$(null),y&&0!==y[C.R5]||(0,s._y)("No "+_.Z+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return y&&(0,s.tO)(y,(function(t){e[C.MW](t.queue)})),(0,s.FL)(e)},e.track=function(n){n.iKey=n.iKey||t[C.p$],n[C.Z_]=n[C.Z_]||(0,s.Y6)(new Date),n.ver=n.ver||"4.0",!k&&e[C.yl]()?B()[C.uL](n):i[C.MW](n)},e[C.SD]=B,e[C.tb]=function(){return o||(o=function(){var e;return(0,S.pu)(((e={})[C.g]=function(e){},e[C.n7]=function(e){},e[_.uC]=function(e){},e[_.$F]=function(e,t){},e[_.f_]=function(e,t){},e))}(),e._notificationManager=o),o},e[C.g]=function(e){o&&o[C.g](e)},e[C.n7]=function(e){o&&o[C.n7](e)},e.getCookieMgr=function(){return u||(u=(0,w.Nz)(t,e[C.eZ])),u},e.setCookieMgr=function(e){u=e},e[_.kl]=function(){if(!a&&!c&&(0,s.v4)(t.enablePerfMgr)){var n=(0,s.v4)(t[_.DN]);(0,s.mf)(n)&&(c=n(e,e[C.tb]()))}return a||c||(0,v.j5)()},e.setPerfMgr=function(e){a=e},e.eventCnt=function(){return i[C.R5]},e.releaseQueue=function(){if(n&&i[C.R5]>0){var e=i;i=[],(0,s.tO)(e,(function(e){B()[C.uL](e)}))}},e.pollInternalLogs=function(e){return q=e||null,W=!1,V&&(clearInterval(V),V=null),h(!0)},e[C.LS]=function(){W=!0,V&&(clearInterval(V),V=0,X())},(0,s.Vb)(e,(function(){return L}),["addTelemetryInitializer"]),e.unload=function(t,i,r){var o;void 0===t&&(t=!0),n||(0,s._y)("SDK is not initialized"),k&&(0,s._y)(O);var a=((o={reason:50})[C.d]=t,o.flushComplete=!1,o),c=(0,T.Bt)(J(),e);function u(t){a.flushComplete=t,k=!0,U.run(c,a),e[C.LS](),c[C.uL](a)}c[C.Fc]((function(){z(),i&&i(a)}),e),X(),Z(t,u,6,r)||u(!1)},e[C.TO]=G,e.addPlugin=function(e,t,n,i){if(!e)return i&&i(!1),void Q(N);var r=G(e[C.pZ]);if(r&&!t)return i&&i(!1),void Q("Plugin ["+e[C.pZ]+"] is already loaded!");var o={reason:16};function s(t){d[C.MW](e),o.added=[e],$(o),i&&i(!0)}if(r){var a=[r.plugin];Y(a,{reason:2,isAsync:!!n},(function(e){e?(o.removed=a,o.reason|=32,s()):i&&i(!1)}))}else s()},e.evtNamespace=function(){return j},e[C.kL]=Z,e.getTraceCtx=function(e){return K||(K=(0,b.Yn)()),K},e.setTraceCtx=function(e){K=e||null},(0,s.Oi)(e,"addUnloadCb",(function(){return U}),"add")}))}return e.__ieDyn=1,e}();function q(e,t,n,i){(0,s.tO)(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return i(e)}),0);else try{i(e)}catch(e){}}))}var j=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,h.Z)(e,this,(function(e){e[C.g]=function(t){e.listeners[C.MW](t)},e[C.n7]=function(t){for(var n=(0,s.UA)(e[C.dE],t);n>-1;)e.listeners[C.cb](n,1),n=(0,s.UA)(e[C.dE],t)},e[_.uC]=function(t){q(e[C.dE],_.uC,!0,(function(e){e[_.uC](t)}))},e[_.$F]=function(t,n){q(e[C.dE],_.$F,!0,(function(e){e[_.$F](t,n)}))},e[_.f_]=function(t,n){q(e[C.dE],_.f_,n,(function(e){e[_.f_](t,n)}))},e[_.C$]=function(t){t&&(!n&&t[C.PL]()||q(e[C.dE],_.C$,!1,(function(e){t[C.d]?setTimeout((function(){return e[_.C$](t)}),0):e[_.C$](t)})))}}))}return e.__ieDyn=1,e}(),U=function(e){function t(){var n=e.call(this)||this;return(0,h.Z)(t,n,(function(e,t){function n(t){var n=e[C.tb]();n&&n[_.$F]([t],2)}e[C.VL]=function(e,n,i,r){t[C.VL](e,n,i||new m.AQ(e),r||new j(e))},e.track=function(i){(0,v.Lm)(e[_.kl](),(function(){return"AppInsightsCore:track"}),(function(){null===i&&(n(i),(0,s._y)("Invalid telemetry item")),function(e){(0,s.le)(e[C.I])&&(n(e),(0,s._y)("telemetry name required"))}(i),t.track(i)}),(function(){return{item:i}}),!i.sync)}})),n}return(0,r.ne)(t,e),t.__ieDyn=1,t}(L),H=n(1539),K=n(5705),V=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,h.Z)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new m.AQ({loggingLevelConsole:1})),e.initialize=function(n,i,r,o){(0,v.Lm)(e,(function(){return"AppInsightsCore.initialize"}),(function(){var a=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=H.YT);var c=n.propertyStorageOverride;!c||c.getProperty&&c.setProperty||(0,s._y)("Invalid property storage override passed."),n.channels&&(0,s.tO)(n.channels,(function(e){e&&(0,s.tO)(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;a.push(t)}}))}))}e.getWParam=function(){return"undefined"!=typeof document||n.enableWParam?0:-1},i&&(0,s.tO)(i,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;a.push(t)}})),e.pluginVersionString=a.join(";"),e.pluginVersionStringArr=a;try{t.initialize(n,i,r,o),e.pollInternalLogs("InternalLog")}catch(t){var u=e.logger,l=(0,y.eU)(t);-1!==l.indexOf("channels")&&(l+="\n - Channels must be provided through config.channels only!"),(0,m.kP)(u,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}}),(function(){return{config:n,extensions:i,logger:r,notificationManager:o}}))},e.track=function(n){(0,v.Lm)(e,(function(){return"AppInsightsCore.track"}),(function(){var i=n;if(i){i.timings=i.timings||{},i.timings.trackStart=(0,K.hK)(),(0,K.r7)(i.latency)||(i.latency=1);var r=i.ext=i.ext||{};r.sdk=r.sdk||{},r.sdk.ver=K.vs;var o=i.baseData=i.baseData||{};o[H.o6]=o[H.o6]||{};var s=o[H.o6];s[H.p8]=s[H.p8]||e.pluginVersionString||H.qS}t.track(i)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,r.ne)(t,e),t.__ieDyn=1,t}(U);const W=V;var z=function(e){function t(){var n=e.call(this)||this;return(0,h.Z)(t,n,(function(e,t){e.initialize=function(n,i,r,o){n&&!n.endpointUrl&&(n.endpointUrl=H.YT),e.getWParam=function(){return K.x9||n.enableWParam?0:-1};try{t.initialize(n,i,r,o)}catch(t){(0,m.kP)(e.logger,1,514,"Initialization Failed: "+(0,y.eU)(t)+"\n - Note: Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var i=n.ext=n.ext||{};i.sdk=i.sdk||{},i.sdk.ver=K.vs}t.track(n)}})),n}return(0,r.ne)(t,e),t.__ieDyn=1,t}(L);const B=z;var $=s.mf;function G(e,t,n){return function(i){e[t]=i,n()}}const J=function(){function e(t){var n=0,i=null,r=[];function o(){if(r.length>0){var e=r.slice();r=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch(e){}}),0)}}function s(e){0===n&&(i=e,n=1,o())}function a(e){0===n&&(i=e,n=2,o())}(0,h.Z)(e,this,(function(t){t.then=function(t,s){return new e((function(a,c){!function(t,s,a,c){r.push((function(){var r;try{(r=1===n?$(t)?t(i):i:$(s)?s(i):i)instanceof e?r.then(a,c):2!==n||$(s)?a(r):c(r)}catch(e){return void c(e)}})),0!==n&&o()}(t,s,a,c)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!$(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(s,a)}catch(e){a(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&$(t.then)?new e((function(e,n){try{t.then(e,n)}catch(e){n(e)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var i=[],r=0,o=0;o<t.length;o++){var s=t[o];s&&$(s.then)?(r++,s.then(G(i,o,(function(){0==--r&&e(i)})),n)):i[o]=s}0===r&&setTimeout((function(){e(i)}),0)}catch(e){n(e)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var i=function(i){var r=t[i];r&&$(r.then)?r.then(e,n):setTimeout((function(){e(r)}),0)},r=0;r<t.length;r++)i(r)}catch(e){n(e)}}))},e}();var Y=n(5108),X=0,Z=[],Q=[],ee=[];function te(){return(new Date).getTime()}const ne=function(){function e(t,n){var i=0,r=(t||"<unnamed>")+"."+X;function o(e){var t=(0,S.Rd)();t&&t.QUnit&&Y&&Y.log("ESPromiseScheduler["+r+"] "+e)}function s(e){(0,m.jV)(n,"ESPromiseScheduler["+r+"] "+e)}X++,(0,h.Z)(e,this,(function(e){var t=null,n=0;function a(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,c,u){var l=r+"."+n;n++,c&&(l+="-("+c+")");var d=l+"{"+i+"}";i++;var f,p,g,h={evt:null,tm:te(),id:d,isRunning:!1,isAborted:!1};return h.evt=t?(f=h,p=t,g=new J((function(e,t){var n=te()-p.tm,i=p.id;o("["+l+"] is waiting for ["+i+":"+n+" ms] to complete before starting -- ["+Q.length+"] waiting and ["+Z.length+"] running"),f.abort=function(e){f.abort=null,a(Q,l),f.isAborted=!0,t(new Error(e))},p.evt.then((function(n){a(Q,l),_(f).then(e,t)}),(function(n){a(Q,l),_(f).then(e,t)}))})),Q.push(f),g):_(h),(t=h).evt._schId=d,h.evt;function m(e){for(var t=te(),n=t-6e5,i=e.length,r=0;r<i;){var o=e[r];if(o&&o.tm<n){var a=null;o.abort?(a="Aborting ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",o.abort(a)):a="Removing ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",s(a),e.splice(r,1),i--}else r++}}function v(e,n){var i=!1,r=a(Z,e);if(r||(r=a(ee,e),i=!0),r){r.to&&(clearTimeout(r.to),r.to=null);var c=te()-r.tm;n?i?s("Timed out event ["+e+"] finally complete -- "+c+" ms"):o("Promise ["+e+"] Complete -- "+c+" ms"):(ee.push(r),s("Event ["+e+"] Timed out and removed -- "+c+" ms"))}else o("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),m(Z),m(Q),m(ee)}function y(e,t){return function(n){return v(e,!0),t&&t(n),n}}function C(e,t,n,i){t.then((function(t){return t instanceof J?(o("Event ["+e+"] returned a promise -- waiting"),C(e,t,n,i),t):y(e,n)(t)}),y(e,i))}function S(e,t){var n=e.id;return new J((function(i,r){o("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,v(n,!1),r(new Error(t))};var s=t(n);s instanceof J?(u&&(e.to=setTimeout((function(){v(n,!1),r(new Error("Timed out after ["+u+"] ms"))}),u)),C(n,s,(function(t){o("Event ["+n+"] Resolving after "+(te()-e.tm)+" ms"),i(t)}),r)):(o("Promise ["+n+"] Auto completed as the start action did not return a promise"),i())}))}function _(t){var n=te();return t.wTm=n-t.tm,t.tm=n,t.isAborted?J.reject(new Error("["+l+"] was aborted")):(Z.push(t),S(t,e))}}}))}return e.incomplete=function(){return Z},e.waitingToStart=function(){return Q},e}();var ie=function(){function e(e){var t=this,n={},i=[],r=[];function o(e,t){var o,a=n[e];if(a&&(o=a[t]),!o&&null!==o){if((0,s.HD)(e)&&(0,s.HD)(t))if(r.length>0){for(var c=0;c<r.length;c++)if(r[c].handleField(e,t)){o={canHandle:!0,fieldHandler:r[c]};break}}else 0===i.length&&(o={canHandle:!0});if(!o&&null!==o)for(o=null,c=0;c<i.length;c++)if(i[c].handleField(e,t)){o={canHandle:!0,handler:i[c],fieldHandler:null};break}a||(a=n[e]={}),a[t]=o}return o}function a(e,t,n,i,r,o){if(e.handler)return e.handler.property(t,n,r,o);if(!(0,s.le)(r.kind)){if(4096==(4096&i)||!(0,K.oS)(r.kind))return null;r.value=r.value.toString()}return u(e.fieldHandler,t,n,i,r)}function c(e,t,n){return(0,K.Sn)(n)?{value:n}:null}function u(e,n,i,r,o){if(o&&e){var a=e.getSanitizer(n,i,r,o.kind,o.propertyType);if(a)if(4===r){var l={},d=o.value;(0,s.rW)(d,(function(t,r){var o=n+"."+i;if((0,K.Sn)(r)){var s=c(0,0,r);(s=u(e,o,t,(0,K.Sy)(r),s))&&(l[t]=s.value)}})),o.value=l}else{var f={path:n,name:i,type:r,prop:o,sanitizer:t};o=a.call(t,f)}}return o}e&&r.push(e),t.addSanitizer=function(e){e&&(i.push(e),n={})},t.addFieldSanitizer=function(e){e&&(r.push(e),n={})},t.handleField=function(e,t){var n=o(e,t);return!!n&&n.canHandle},t.value=function(e,t,n,i){var r=o(e,t);if(r&&r.canHandle){if(!r||!r.canHandle)return null;if(r.handler)return r.handler.value(e,t,n,i);if(!(0,s.HD)(t)||(0,s.le)(n)||n===H.qS)return null;var u=null,l=(0,K.Sy)(n);if(8192==(8192&l)){var d=-8193&l;if(u=n,!(0,K.Sn)(u.value)||1!==d&&2!==d&&3!==d&&4096!=(4096&d))return null}else 1===l||2===l||3===l||4096==(4096&l)?u=c(0,0,n):4===l&&(u=c(0,0,i?JSON.stringify(n):n));if(u)return a(r,e,t,l,u,i)}return null},t.property=function(e,t,n,i){var r=o(e,t);if(!r||!r.canHandle)return null;if(!(0,s.HD)(t)||(0,s.le)(n)||!(0,K.Sn)(n.value))return null;var c=(0,K.Sy)(n.value);return 0===c?null:a(r,e,t,c,n,i)}}return e.getFieldType=K.Sy,e}(),re=100,oe=n(8452),se=n(8956),ae=n(7954),ce=n(9406),ue=n(1550),le=n(6207)},1539:(e,t,n)=>{"use strict";n.d(t,{YT:()=>r,o6:()=>s,p8:()=>o,qS:()=>i});var i="",r="https://browser.events.data.microsoft.com/OneCollector/1.0/",o="version",s="properties"},5705:(e,t,n)=>{"use strict";n.d(t,{Do:()=>x,Gf:()=>p,IZ:()=>T,JT:()=>F,Sn:()=>S,Sy:()=>L,Tr:()=>j,Vv:()=>D,cQ:()=>q,cm:()=>I,d8:()=>E,dH:()=>C,ej:()=>k,hK:()=>O,if:()=>M,jM:()=>_,kT:()=>P,l7:()=>N,mJ:()=>U,oF:()=>w,oS:()=>A,ot:()=>H,r7:()=>b,vs:()=>g,x9:()=>y,yj:()=>R});var i,r=n(9251),o=n(4869),s=n(8140),a=n(8956),c=n(1550),u=n(7954),l=n(9406),d=n(175),f=n(1539),p="3.2.13",g="1DS-Web-JS-"+p,h="withCredentials",m=((i={})[0]=0,i[2]=6,i[1]=1,i[3]=7,i[4098]=6,i[4097]=1,i[4099]=7,i),v=null,y=Boolean((0,r.Me)()),C=Boolean((0,r.Jj)());function S(e){return!(e===f.qS||(0,o.le)(e))}function _(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return f.qS}function T(){return null===v&&(v=!(0,o.o8)(Uint8Array)&&!function(){var e=(0,r.jW)();if(!(0,o.o8)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!(0,r.b$)()),v}function b(e){return!!(e&&(0,o.hj)(e)&&e>=1&&e<=4)}function R(e,t,n){if(!t&&!S(t)||"string"!=typeof e)return null;var i=typeof t;if("string"===i||"number"===i||"boolean"===i||(0,o.kJ)(t))t={value:t};else if("object"!==i||c.CY.call(t,"value")){if((0,o.le)(t.value)||t.value===f.qS||!(0,o.HD)(t.value)&&!(0,o.hj)(t.value)&&!(0,o.jn)(t.value)&&!(0,o.kJ)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0,o.kJ)(t.value)&&!F(t.value))return null;if(!(0,o.le)(t.kind)){if((0,o.kJ)(t.value)||!A(t.kind))return null;t.value=t.value.toString()}return t}function D(e,t,n){var i=-1;if(!(0,o.o8)(e))if(t>0&&(32===t?i=8192:t<=13&&(i=t<<5)),function(e){return e>=0&&e<=9}(n))-1===i&&(i=0),i|=n;else{var r=m[L(e)]||-1;-1!==i&&-1!==r?i|=r:6===r&&(i=r)}return i}function w(){(0,s.JP)(null).setEnabled(!1)}function E(e,t,n){(0,s.p7)(null)&&(0,s.JP)(null).set(e,t,86400*n,null,"/")}function P(e){(0,s.p7)(null)&&(0,s.JP)(null).del(e)}function k(e){return(0,s.p7)(null)?x((0,s.JP)(null),e):f.qS}function x(e,t,n){var i;return void 0===n&&(n=!0),e&&(i=e.get(t),n&&i&&decodeURIComponent&&(i=decodeURIComponent(i))),i||f.qS}function I(e){void 0===e&&(e="D");var t=(0,a.GW)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,f.qS)),t}function N(e,t,n,i,r){var s={},a=!1,u=0,l=arguments.length,d=Object[c.hB],f=arguments;for("[object Boolean]"===d.toString.call(f[0])&&(a=f[0],u++);u<l;u++)e=f[u],(0,o.rW)(e,(function(e,t){a&&t&&(0,o.Kn)(t)?(0,o.kJ)(t)?(s[e]=s[e]||[],(0,o.tO)(t,(function(t,n){t&&(0,o.Kn)(t)?s[e][n]=N(!0,s[e][n],t):s[e][n]=t}))):s[e]=N(!0,s[e],t):s[e]=t}));return s}var O=a.Jj;function A(e){return 0===e||e>0&&e<=13||32===e}function F(e){return e.length>0}function M(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=O()}function L(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===c.fK&&(t=4,(0,o.kJ)(e)?(t=4096,e.length>0&&(t|=L(e[0]))):c.CY.call(e,"value")&&(t=8192|L(e.value)))}return t}var q={Version:p,FullVersionString:g,strUndefined:c.jA,strObject:c.fK,Undefined:c.jA,arrForEach:o.tO,arrIndexOf:o.UA,arrMap:o.Mr,arrReduce:o.Xz,objKeys:o.FY,toISOString:o.Y6,isReactNative:r.b$,isString:o.HD,isNumber:o.hj,isBoolean:o.jn,isFunction:o.mf,isArray:o.kJ,isObject:o.Kn,strTrim:o.nd,isDocumentObjectAvailable:y,isWindowObjectAvailable:C,isValueAssigned:S,getTenantId:_,isBeaconsSupported:r.MF,isUint8ArrayAvailable:T,isLatency:b,sanitizeProperty:R,getISOString:o.Y6,useXDomainRequest:r.cp,getCommonSchemaMetaData:D,cookieAvailable:s.p7,disallowsSameSiteNone:s.UY,setCookie:E,deleteCookie:P,getCookie:k,createGuid:I,extend:N,getTime:O,isValueKind:A,isArrayValid:F,objDefineAccessors:o.l_,addPageUnloadEventListener:u.c9,setProcessTelemetryTimings:M,addEventHandler:u.Ib,getFieldValueType:L,strEndsWith:o.Id,objForEachKey:o.rW},j={_canUseCookies:void 0,isTypeof:o.Ym,isUndefined:o.o8,isNullOrUndefined:o.le,hasOwnProperty:o.nr,isFunction:o.mf,isObject:o.Kn,isDate:o.J_,isArray:o.kJ,isError:o.VZ,isString:o.HD,isNumber:o.hj,isBoolean:o.jn,toISOString:o.Y6,arrForEach:o.tO,arrIndexOf:o.UA,arrMap:o.Mr,arrReduce:o.Xz,strTrim:o.nd,objCreate:d.pu,objKeys:o.FY,objDefineAccessors:o.l_,addEventHandler:u.Ib,dateNow:o.m6,isIE:r.w1,disableCookies:w,newGuid:a.GW,perfNow:a.Jj,newId:l.pZ,randomValue:l.az,random32:l._l,mwcRandomSeed:l.CN,mwcRandom32:l.F6,generateW3CId:a.DO};function U(){return!!(0,r.a8)("chrome")}function H(e,t,n,i,r,o){function s(e,t,n){try{e[t]=n}catch(e){}}void 0===i&&(i=!1),void 0===r&&(r=!1);var a=new XMLHttpRequest;return i&&s(a,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",i),n&&s(a,h,n),a.open(e,t,!r),n&&s(a,h,n),!r&&o&&s(a,"timeout",o),a}},1488:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BE_PROFILE:()=>m,NRT_PROFILE:()=>h,PostChannel:()=>ie,RT_PROFILE:()=>g});var i=n(7421),r=n(9141),o=n(1782),s=n(7954),a=n(7624),c=n(5705),u=n(4869),l=n(9251),d=n(8452),f=n(9339),p=n(7951),g="REAL_TIME",h="NEAR_REAL_TIME",m="BEST_EFFORT",v="",y="POST",C="drop",S="requeue",_="application/x-json-stream",T="content-type",b="client-version",R="client-id",D="time-delta-to-apply-millis",w="upload-time",E="apikey",P="AuthMsaDeviceTicket",k="AuthXToken";function x(e){var t=(e.ext||{}).intweb;return t&&(0,c.Sn)(t.msfpc)?t.msfpc:null}function I(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=x(e[n]);return t}var N=function(){function e(t,n){var i=n?[].concat(n):[],r=this,o=I(i);r.iKey=function(){return t},r.Msfpc=function(){return o||v},r.count=function(){return i.length},r.events=function(){return i},r.addEvent=function(e){return!!e&&(i.push(e),o||(o=x(e)),!0)},r.split=function(n,r){var s;if(n<i.length){var a=i.length-n;(0,u.le)(r)||(a=r<a?r:a),s=i.splice(n,a),o=I(i)}return new e(t,s)}}return e.create=function(t,n){return new e(t,n)},e}();const O=function(){function e(){var t=!0,n=!0,i=!0,o="use-collector-delta",s=!1;(0,r.Z)(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){i&&(i=!1,s||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return o},e.setClockSkew=function(e){s||(e?(o=e,n=!0,s=!0):n=!1,t=!0)}}))}return e.__ieDyn=1,e}(),A=function(){function e(){var t={};(0,r.Z)(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var i=(s=e.split(","),a=[],s&&(0,u.tO)(s,(function(e){a.push((0,u.nd)(e))})),a);if("this-request-only"===n)return i;for(var r=1e3*parseInt(n,10),o=0;o<i.length;++o)t[i[o]]=(0,u.m6)()+r}catch(e){return[]}var s,a;return[]},e.isTenantKilled=function(e){var n=t,i=(0,u.nd)(e);return void 0!==n[i]&&n[i]>(0,u.m6)()||(delete n[i],!1)}}))}return e.__ieDyn=1,e}();var F=n(1550);function M(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var L,q=2e6,j=Math.min(q,65e3),U=/\./,H=function(){function e(t,n,i,s){var a="baseData",l=!!s,d=n,f={};(0,r.Z)(e,this,(function(e){function n(e,t,r,o,s,a,p){(0,u.rW)(e,(function(e,g){var h=null;if(g||(0,c.Sn)(g)){var m=r,v=e,y=s,C=t;if(l&&!o&&U.test(e)){var S=e.split("."),_=S.length;if(_>1){y&&(y=y.slice());for(var T=0;T<_-1;T++){var b=S[T];C=C[b]=C[b]||{},m+="."+b,y&&y.push(b)}v=S[_-1]}}var R=o&&function(e,t){var n=f[e];return void 0===n&&(e.length>=7&&(n=(0,u.xe)(e,"ext.metadata")||(0,u.xe)(e,"ext.web")),f[e]=n),n}(m);if(h=!R&&d&&d.handleField(m,v)?d.value(m,v,g,i):(0,c.yj)(v,g,i)){var D=h.value;if(C[v]=D,a&&a(y,v,h),p&&"object"==typeof D&&!(0,u.kJ)(D)){var w=y;w&&(w=w.slice()).push(v),n(g,D,m+"."+v,o,w,a,p)}}}}))}e.createPayload=function(e,t,n,i,r,o){return{apiKeys:[],payloadBlob:v,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:i,sendType:o,sendReason:r}},e.appendPayload=function(n,i,r){var s=n&&i&&!n.overflow;return s&&(0,o.Lm)(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=i.events(),o=n.payloadBlob,s=n.numEvents,a=!1,c=[],l=[],d=n.isBeacon,f=d?65e3:3984588,p=d?j:q,g=0,h=0;g<t.length;){var m=t[g];if(m){if(s>=r){n.overflow=i.split(g);break}var v=e.getEventBlob(m);if(v&&v.length<=p){var y=v.length;if(o.length+y>f){n.overflow=i.split(g);break}o&&(o+="\n"),o+=v,++h>20&&(o.substr(0,1),h=0),a=!0,s++}else v?c.push(m):l.push(m),t.splice(g,1),g--}g++}if(c&&c.length>0&&n.sizeExceed.push(N.create(i.iKey(),c)),l&&l.length>0&&n.failedEvts.push(N.create(i.iKey(),l)),a){n.batches.push(i),n.payloadBlob=o,n.numEvents=s;var C=i.iKey();-1===(0,u.UA)(n.apiKeys,C)&&n.apiKeys.push(C)}}),(function(){return{payload:n,theBatch:{iKey:i.iKey(),evts:i.events()},max:r}})),s},e.getEventBlob=function(e){try{return(0,o.Lm)(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+(0,c.jM)(e.iKey);var i={},r=e.ext;r&&(t.ext=i,(0,u.rW)(r,(function(e,t){n(t,i[e]={},"ext."+e,!0,null,null,!0)})));var o=t.data={};o.baseType=e.baseType;var s=o.baseData={};return n(e.baseData,s,a,!1,[a],(function(e,t,n){K(i,e,t,n)}),!0),n(e.data,o,"data",!1,[],(function(e,t,n){K(i,e,t,n)}),!0),JSON.stringify(t)}),(function(){return{item:e}}))}catch(e){return null}}}))}return e.__ieDyn=1,e}();function K(e,t,n,i){if(i&&e){var r=(0,c.Vv)(i.value,i.kind,i.propertyType);if(r>-1){var o=e.metadata;o||(o=e.metadata={f:{}});var s=o.f;if(s||(s=o.f={}),t)for(var a=0;a<t.length;a++){var l=t[a];s[l]||(s[l]={f:{}});var d=s[l].f;d||(d=s[l].f={}),s=d}s=s[n]={},(0,u.kJ)(i.value)?s.a={t:r}:s.t=r}}}var V="&NoResponseBody=true",W=((L={})[1]=S,L[100]=S,L[200]="sent",L[8004]=C,L[8003]=C,L),z={},B={};function $(e,t,n){z[e]=t,!1!==n&&(B[t]=e)}function G(e){try{return e.responseText}catch(e){}return v}function J(e,t){var n=!1;if(e&&t){var i=(0,u.FY)(e);if(i&&i.length>0)for(var r=t.toLowerCase(),o=0;o<i.length;o++){var s=i[o];if(s&&(0,u.nr)(t,s)&&s.toLowerCase()===r){n=!0;break}}}return n}function Y(e,t,n,i){t&&n&&n.length>0&&(i&&z[t]?(e.hdrs[z[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function X(e,t){return t&&((0,u.hj)(t)?e=[t].concat(e):(0,u.kJ)(t)&&(e=t.concat(e))),e}$(P,P,!1),$(b,b),$(R,"Client-Id"),$(E,E),$(D,D),$(w,w),$(k,k);var Z=function(){function e(t,n,i,s,a){this._responseHandlers=[];var d,p,g,h,m,S,P,k,x,I,N="?cors=true&"+T.toLowerCase()+"="+_,L=new A,q=!1,j=new O,U=!1,K=0,z=!0,$=[],Z={},Q=[],ee=null,te=!1,ne=!1,ie=!1;(0,r.Z)(e,this,(function(e){var r=!0;function O(e,t){for(var n=0,i=null,r=0;null==i&&r<e.length;)1===(n=e[r])?(0,l.cp)()?i=A:(0,l.Z3)()&&(i=oe):2===n&&(0,l.JO)(t)&&(!t||t&&!k)?i=re:U&&3===n&&(0,l.MF)()&&(i=ae),r++;return i?{_transport:n,_isSync:t,sendPOST:i}:null}function A(e,t,n){var i=new XDomainRequest;i.open(y,e.urlString),e.timeout&&(i.timeout=e.timeout),i.onload=function(){var e=G(i);se(t,200,{},e),ye(e)},i.onerror=function(){se(t,400,{})},i.ontimeout=function(){se(t,500,{})},i.onprogress=function(){},n?i.send(e.data):a.set((function(){i.send(e.data)}),0)}function re(e,t,n){var i,o=e.urlString,s=!1,c=!1,l=((i={body:e.data,method:y}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,i);n&&(l.keepalive=!0,2===e._sendReason&&(s=!0,I&&(o+=V))),r&&(l.credentials="include"),e.headers&&(0,u.FY)(e.headers).length>0&&(l.headers=e.headers),fetch(o,l).then((function(e){var n={},i=v,r=e.headers;r&&r.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){i=e})),c||(c=!0,se(t,e.status,n,i),ye(i))})).catch((function(e){c||(c=!0,se(t,0,{}))})),s&&!c&&(c=!0,se(t,200,{})),!c&&e.timeout>0&&a.set((function(){c||(c=!0,se(t,500,{}))}),e.timeout)}function oe(e,t,n){var i=e.urlString;function o(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var i=t.getResponseHeader(n);i&&(e[n]=(0,u.nd)(i))}return e}function s(e,n){se(t,e.status,function(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if((0,u.HD)(e)){var n=(0,u.nd)(e).split(/[\r\n]+/);(0,u.tO)(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var i=(0,u.nd)(e.substring(0,n)).toLowerCase(),r=(0,u.nd)(e.substring(n+1));t[i]=r}else t[(0,u.nd)(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=o(t,e,"time-delta-millis"),t=o(t,e,"kill-duration"),t=o(t,e,"kill-duration-seconds")),t}(e),n)}n&&e.disableXhrSync&&(n=!1);var a=(0,c.ot)(y,i,r,!0,n,e.timeout);(0,u.rW)(e.headers,(function(e,t){a.setRequestHeader(e,t)})),a.onload=function(){var e=G(a);s(a,e),ye(e)},a.onerror=function(){s(a)},a.ontimeout=function(){s(a)},a.send(e.data)}function se(e,t,n,i){try{e(t,n,i)}catch(e){(0,f.kP)(p,2,518,(0,l.eU)(e))}}function ae(e,t,n){var i=200,r=e._thePayload,o=e.urlString+(I?V:v);try{var s=(0,l.jW)();if(!s.sendBeacon(o,e.data))if(r){var a=[];(0,u.tO)(r.batches,(function(e){if(a&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!s.sendBeacon(o,ee.getEventBlob(t[n]))){a.push(e.split(n));break}}else a.push(e.split(0))})),Ce(a,8003,r.sendType,!0)}else i=0}catch(e){(0,f.jV)(p,"Failed to send telemetry using sendBeacon API. Ex:"+(0,l.eU)(e)),i=0}finally{se(t,i,{},v)}}function ce(e){return 2===e||3===e}function ue(e){return ne&&ce(e)&&(e=2),e}function le(){return!q&&K<n}function de(){var e=Q;return Q=[],e}function fe(e,t,n){var i=!1;return e&&e.length>0&&!q&&g[t]&&ee&&(i=0!==t||le()&&(n>0||j.allowRequestSending())),i}function pe(e){var t={};return e&&(0,u.tO)(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function ge(e,n,i,r,s){if(e&&0!==e.length)if(q)Ce(e,1,r);else{r=ue(r);try{var a=e,u=0!==r;(0,o.Lm)(h,(function(){return"HttpManager:_sendBatches"}),(function(o){o&&(e=e.slice(0));for(var a=[],l=null,d=(0,c.hK)(),f=g[r]||(u?g[1]:g[0]),p=f&&f._transport,h=x&&(ne||ce(r)||3===p||f._isSync&&2===p);fe(e,r,n);){var m=e.shift();m&&m.count()>0&&(L.isTenantKilled(m.iKey())?a.push(m):(l=l||ee.createPayload(n,i,u,h,s,r),ee.appendPayload(l,m,t)?null!==l.overflow&&(e=[l.overflow].concat(e),l.overflow=null,me(l,d,(0,c.hK)(),s),d=(0,c.hK)(),l=null):(me(l,d,(0,c.hK)(),s),d=(0,c.hK)(),e=[m].concat(e),l=null)))}l&&me(l,d,(0,c.hK)(),s),e.length>0&&(Q=e.concat(Q)),Ce(a,8004,r)}),(function(){return{batches:pe(a),retryCount:n,isTeardown:i,isSynchronous:u,sendReason:s,useSendBeacon:ce(r),sendType:r}}),!u)}catch(e){(0,f.kP)(p,2,48,"Unexpected Exception sending batch: "+(0,l.eU)(e))}}}function he(e,t,n){e[t]=e[t]||{},e[t][d.identifier]=n}function me(t,n,r,s){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var a=!!e.sendHook,m=g[t.sendType];!ce(t.sendType)&&t.isBeacon&&2===t.sendReason&&(m=g[2]||g[3]||m);var y=ie;(t.isBeacon||3===m._transport)&&(y=!1);var C=function(e,t){var n={url:N,hdrs:{},useHdrs:!1};t?(n.hdrs=(0,c.l7)(n.hdrs,Z),n.useHdrs=(0,u.FY)(n.hdrs).length>0):(0,u.rW)(Z,(function(e,t){B[e]?Y(n,B[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),Y(n,R,"NO_AUTH",t),Y(n,b,c.vs,t);var i=v;(0,u.tO)(e.apiKeys,(function(e){i.length>0&&(i+=","),i+=e})),Y(n,E,i,t),Y(n,w,(0,u.m6)().toString(),t);var r=function(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return v}(e);if((0,c.Sn)(r)&&(n.url+="&ext.intweb.msfpc="+r),j.shouldAddClockSkewHeaders()&&Y(n,D,j.getClockSkewHeaderValue(),t),h.getWParam){var o=h.getWParam();o>=0&&(n.url+="&w="+o)}for(var s=0;s<$.length;s++)n.url+="&"+$[s].name+"="+$[s].value;return n}(t,y);y=y||C.useHdrs;var x=(0,c.hK)();(0,o.Lm)(h,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var g=0;g<t.batches.length;g++)for(var v=t.batches[g].events(),b=0;b<v.length;b++){var R=v[b];if(te){var D=R.timings=R.timings||{};he(D,"sendEventStart",x),he(D,"serializationStart",n),he(D,"serializationCompleted",r)}R.sendAttempt>0?R.sendAttempt++:R.sendAttempt=1}Ce(t.batches,1e3+(s||0),t.sendType,!0);var w={data:t.payloadBlob,urlString:C.url,headers:C.hdrs,_thePayload:t,_sendReason:s,timeout:S,disableXhrSync:P,disableFetchKeepAlive:k};y&&(J(w.headers,"cache-control")||(w.headers["cache-control"]="no-cache, no-store"),J(w.headers,T)||(w.headers["content-type"]=_));var E=null;m&&(E=function(n){j.firstRequestSent();var r=function(n,r){!function(t,n,r,o){var s,a=9e3,l=null,f=!1,p=!1;try{var g=!0;if(typeof t!==F.jA){if(n){j.setClockSkew(n["time-delta-millis"]);var h=n["kill-duration"]||n["kill-duration-seconds"];(0,u.tO)(L.setKillSwitchTenants(n["kill-tokens"],h),(function(e){(0,u.tO)(r.batches,(function(t){if(t.iKey()===e){l=l||[];var n=t.split(0);r.numEvents-=n.count(),l.push(n)}}))}))}if(200==t||204==t)return void(a=200);((s=t)>=300&&s<500&&408!=s&&429!=s||501==s||505==s||r.numEvents<=0)&&(g=!1),a=9e3+t%1e3}if(g){a=100;var m=r.retryCnt;0===r.sendType&&(m<i?(f=!0,ve((function(){0===r.sendType&&K--,ge(r.batches,m+1,r.isTeardown,ne?2:r.sendType,5)}),ne,M(m))):(p=!0,ne&&(a=8001)))}}finally{f||(j.setClockSkew(),function(t,n,i,r){try{r&&d._backOffTransmission(),200===n&&(r||t.isSync||d._clearBackOff(),function(e){if(te){var t=(0,c.hK)();(0,u.tO)(e,(function(e){e&&e.count()>0&&function(e,t){te&&(0,u.tO)(e,(function(e){he(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),Ce(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(K--,5!==i&&e.sendQueuedRequests(t.sendType,i))}}(r,a,o,p)),Ce(l,8004,r.sendType)}}(n,r,t,s)},o=t.isTeardown||t.isSync;try{m.sendPOST(n,r,o),e.sendListener&&e.sendListener(w,n,o,t.isBeacon)}catch(e){(0,f.jV)(p,"Unexpected exception sending payload. Ex:"+(0,l.eU)(e)),se(r,0,{})}}),(0,o.Lm)(h,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(E)if(0===t.sendType&&K++,a&&!t.isBeacon&&3!==m._transport){var n={data:w.data,urlString:w.urlString,headers:(0,c.l7)({},w.headers),timeout:w.timeout,disableXhrSync:w.disableXhrSync,disableFetchKeepAlive:w.disableFetchKeepAlive},i=!1;(0,o.Lm)(h,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){i=!0,z||e._thePayload||(e._thePayload=e._thePayload||w._thePayload,e._sendReason=e._sendReason||w._sendReason),E(e)}),t.isSync||t.isTeardown)}catch(e){i||E(w)}}))}else E(w)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:r,sendReason:s}}),t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&Ce(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&Ce(t.failedEvts,8002,t.sendType)}function ve(e,t,n){t?e():a.set(e,n)}function ye(t){var n=e._responseHandlers;try{for(var i=0;i<n.length;i++)try{n[i](t)}catch(e){(0,f.kP)(p,1,519,"Response handler failed: "+e)}if(t){var r=JSON.parse(t);(0,c.Sn)(r.webResult)&&(0,c.Sn)(r.webResult.msfpc)&&m.set("MSFPC",r.webResult.msfpc,31536e3)}}catch(e){}}function Ce(e,t,n,i){if(e&&e.length>0&&s){var r=s[(u=t,l=W[u],(0,c.Sn)(l)||(l="oth",u>=9e3&&u<=9999?l="rspFail":u>=8e3&&u<=8999?l=C:u>=1e3&&u<=1999&&(l="send")),l)];if(r){var a=0!==n;(0,o.Lm)(h,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){ve((function(){try{r.call(s,e,t,a,n)}catch(e){(0,f.kP)(p,1,74,"send request notification failed: "+e)}}),i||a,0)}),(function(){return{batches:pe(e),reason:t,isSync:a,sendSync:i,sendType:n}}),!a)}}var u,l}e.initialize=function(e,t,n,i,o){var s;o||(o={}),N=e+N,ie=!!(0,u.o8)(o.avoidOptions)||!o.avoidOptions,h=t,m=t.getCookieMgr(),te=!h.config.disableEventTimings;var a=!!h.config.enableCompoundKey;p=(d=n).diagLog();var c=o.valueSanitizer,v=o.stringifyObjects;(0,u.o8)(o.enableCompoundKey)||(a=!!o.enableCompoundKey),S=o.xhrTimeout,P=!!o.disableXhrSync,k=!!o.disableFetchKeepAlive,I=!1!==o.addNoResponse,U=!(0,l.b$)(),ee=new H(h,c,v,a),(0,u.le)(o.useSendBeacon)||(U=!!o.useSendBeacon);var y=i,C=o.alwaysUseXhrOverride?i:null,_=o.alwaysUseXhrOverride?i:null,T=[3,2];if(!i){z=!1;var b=(0,l.k$)();b&&b.protocol&&"file:"===b.protocol.toLowerCase()&&(r=!1);var R=[];(0,l.b$)()?(R=[2,1],T=[2,1,3]):R=[1,2,3],(i=O(R=X(R,o.transports),!1))||(0,f.jV)(p,"No available transport to send events"),y=O(R,!0)}C||(C=O(T=X(T,o.unloadTransports),!0)),x=!z&&(U&&(0,l.MF)()||!k&&(0,l.JO)(!0)),(s={})[0]=i,s[1]=y||O([1,2,3],!0),s[2]=C||y||O([1],!0),s[3]=_||O([2,3],!0)||y||O([1],!0),g=s},e._getDbgPlgTargets=function(){return[g[0],L,ee,g]},e.addQueryStringParameter=function(e,t){for(var n=0;n<$.length;n++)if($[n].name===e)return void($[n].value=t);$.push({name:e,value:t})},e.addHeader=function(e,t){Z[e]=t},e.canSendRequest=function(){return le()&&j.allowRequestSending()},e.sendQueuedRequests=function(e,t){(0,u.o8)(e)&&(e=0),ne&&(e=ue(e),t=2),fe(Q,e,0)&&ge(de(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!q&&0===K&&0===Q.length},e.setUnloading=function(e){ne=e},e.addBatch=function(e){if(e&&e.count()>0){if(L.isTenantKilled(e.iKey()))return!1;Q.push(e)}return!0},e.teardown=function(){Q.length>0&&ge(de(),0,!0,2,2)},e.pause=function(){q=!0},e.resume=function(){q=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&((0,u.le)(t)&&(t=1),ne&&(t=ue(t),n=2),ge([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}();function Q(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return setTimeout(e,t,n)}function ee(e){clearTimeout(e)}function te(e,t){return{set:e||Q,clear:t||ee}}var ne="eventsDiscarded";const ie=function(e){function t(){var n,i=e.call(this)||this;i.identifier="PostChannel",i.priority=1011,i.version="3.2.13";var p,v,y,C,S,_,T,b=!1,R=[],D=null,w=!1,E=0,k=500,x=0,I=1e4,O={},A=g,F=null,L=null,q=0,j=0,U={},H=-1,K=!0,V=!1,W=6,z=2;return(0,r.Z)(t,i,(function(e,t){function i(e){"beforeunload"!==(e||(0,l.Jj)().event).type&&(V=!0,v.setUnloading(V)),ee(2,2)}function r(e){V=!1,v.setUnloading(V)}function B(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,K&&(c.if,e.ext=(0,u.Ax)(e.ext),e.baseData&&(e.baseData=(0,u.Ax)(e.baseData)),e.data&&(e.data=(0,u.Ax)(e.data))),e.sync)if(q||w)e.latency=3,e.sync=!1;else if(v)return K&&(e=(0,u.Ax)(e)),void v.sendSynchronousBatch(N.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,i=x,r=I;4===n&&(i=E,r=k);var o=!1;if(i<r)o=!oe(e,t);else{var s=1,a=20;4===n&&(s=4,a=1),o=!0,function(e,t,n,i){for(;n<=t;){var r=ie(e,t,!0);if(r&&r.count()>0){var o=r.split(0,i),s=o.count();if(s>0)return 4===n?E-=s:x-=s,ge(ne,[o],d.h.QueueFull),!0}n++}return se(),!1}(e.iKey,e.latency,s,a)&&(o=!oe(e,t))}o&&pe(ne,[e],d.h.QueueFull)}function $(e,t,n){var i=ae(e,t,n);return v.sendQueuedRequests(t,n),i}function G(){return x>0}function J(){if(H>=0&&ae(H,0,S)&&v.sendQueuedRequests(0,S),E>0&&!L&&!w){var e=O[A][2];e>=0&&(L=X((function(){L=null,$(4,0,1),J()}),e))}var t=O[A][1];!F&&!D&&t>=0&&!w&&(G()?F=X((function(){F=null,$(0===j?3:1,0,1),j++,j%=2,J()}),t):j=0)}function Y(){n=null,b=!1,R=[],D=null,w=!1,E=0,k=500,x=0,I=1e4,O={},A=g,F=null,L=null,q=0,j=0,p=null,U={},y=void 0,C=0,H=-1,S=null,K=!0,V=!1,W=6,z=2,_=null,T=te(),v=new Z(500,2,1,{requeue:de,send:he,sent:me,drop:ve,rspFail:ye,oth:Ce},T),le(),U[4]={batches:[],iKeyMap:{}},U[3]={batches:[],iKeyMap:{}},U[2]={batches:[],iKeyMap:{}},U[1]={batches:[],iKeyMap:{}},Se()}function X(e,t){0===t&&q&&(t=1);var n=1e3;return q&&(n=M(q-1)),T.set(e,t*n)}function Q(){return null!==F&&(T.clear(F),F=null,j=0,!0)}function ee(e,t){Q(),D&&(T.clear(D),D=null),w||$(1,e,t)}function ie(e,t,n){var i=U[t];i||(i=U[t=1]);var r=i.iKeyMap[e];return!r&&n&&(r=N.create(e),i.batches.push(r),i.iKeyMap[e]=r),r}function re(t,n){v.canSendRequest()&&!q&&(y>0&&x>y&&(n=!0),n&&null==D&&e.flush(t,null,20))}function oe(e,t){K&&(e=(0,u.Ax)(e));var n=e.latency,i=ie(e.iKey,n,!0);return!!i.addEvent(e)&&(4!==n?(x++,t&&0===e.sendAttempt&&re(!e.sync,C>0&&i.count()>=C)):E++,!0)}function se(){for(var e=0,t=0,n=function(n){var i=U[n];i&&i.batches&&(0,u.tO)(i.batches,(function(i){4===n?e+=i.count():t+=i.count()}))},i=1;i<=4;i++)n(i);x=t,E=e}function ae(t,n,i){var r=!1,s=0===n;return!s||v.canSendRequest()?(0,o.Lm)(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var i=U[n];i&&i.batches&&i.batches.length>0&&((0,u.tO)(i.batches,(function(t){v.addBatch(t)?r=r||t&&t.count()>0:e=e.concat(t.events()),4===n?E-=t.count():x-=t.count()})),i.batches=[],i.iKeyMap={}),n--}e.length>0&&pe(ne,e,d.h.KillSwitch),r&&H>=t&&(H=-1,S=0)}),(function(){return{latency:t,sendType:n,sendReason:i}}),!s):(H=H>=0?Math.min(H,t):t,S=Math.max(S,i)),r}function ce(e,t){$(1,0,t),se(),ue((function(){e&&e(),R.length>0?D=X((function(){D=null,ce(R.shift(),t)}),0):(D=null,J())}))}function ue(e){v.isCompletelyIdle()?e():D=X((function(){D=null,ue(e)}),.25)}function le(){(O={})[g]=[2,1,0],O[h]=[6,3,0],O[m]=[18,9,0]}function de(t,n){var i=[],r=W;V&&(r=z),(0,u.tO)(t,(function(t){t&&t.count()>0&&(0,u.tO)(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<r?((0,c.if)(t,e.identifier),B(t,!1)):i.push(t))}))})),i.length>0&&pe(ne,i,d.h.NonRetryableStatus),V&&ee(2,2)}function fe(t,n){var i=e._notificationManager||{},r=i[t];if(r)try{r.apply(i,n)}catch(n){(0,f.kP)(e.diagLog(),1,74,t+" notification failed: "+n)}}function pe(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t&&t.length>0&&fe(e,[t].concat(n))}function ge(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t&&t.length>0&&(0,u.tO)(t,(function(t){t&&t.count()>0&&fe(e,[t.events()].concat(n))}))}function he(e,t,n){e&&e.length>0&&fe("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function me(e,t){ge("eventsSent",e,t),J()}function ve(e,t){ge(ne,e,t>=8e3&&t<=8999?t-8e3:d.h.Unknown)}function ye(e){ge(ne,e,d.h.NonRetryableStatus),J()}function Ce(e,t){ge(ne,e,d.h.Unknown),J()}function Se(){C=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,I/6)}Y(),e._getDbgPlgTargets=function(){return[v]},e.initialize=function(l,d,f){(0,o.Lm)(d,(function(){return"PostChannel:initialize"}),(function(){var o=d;t.initialize(l,d,f);try{d.addUnloadCb,_=(0,s.jU)((0,a.J)(e.identifier),d.evtNamespace&&d.evtNamespace());var g=e._getTelCtx();l.extensionConfig[e.identifier]=l.extensionConfig[e.identifier]||{},n=g.getExtCfg(e.identifier),T=te(n.setTimeoutOverride,n.clearTimeoutOverride),K=!n.disableOptimizeObj&&(0,c.mJ)(),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(o),n.eventsLimitInMem>0&&(I=n.eventsLimitInMem),n.immediateEventLimit>0&&(k=n.immediateEventLimit),n.autoFlushEventsLimit>0&&(y=n.autoFlushEventsLimit),(0,u.hj)(n.maxEventRetryAttempts)&&(W=n.maxEventRetryAttempts),(0,u.hj)(n.maxUnloadEventRetryAttempts)&&(z=n.maxUnloadEventRetryAttempts),Se(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(p=n.httpXHROverride),(0,c.Sn)(l.anonCookieName)&&v.addQueryStringParameter("anoncknm",l.anonCookieName),v.sendHook=n.payloadPreprocessor,v.sendListener=n.payloadListener;var h=n.overrideEndpointUrl?n.overrideEndpointUrl:l.endpointUrl;e._notificationManager=d.getNotifyMgr(),v.initialize(h,e.core,e,p,n);var m=l.disablePageUnloadEvents||[];(0,s.c9)(i,m,_),(0,s.TJ)(i,m,_),(0,s.nD)(r,l.disablePageShowEvents,_)}catch(t){throw e.setInitialized(!1),t}}),(function(){return{coreConfig:l,core:d,extensions:f}}))},e.processTelemetry=function(t,i){(0,c.if)(t,e.identifier);var r=(i=e._getTelCtx(i)).getExtCfg(e.identifier),o=!!n.disableTelemetry;r&&(o=o||!!r.disableTelemetry);var s=t;o||b||(n.overrideInstrumentationKey&&(s.iKey=n.overrideInstrumentationKey),r&&r.overrideInstrumentationKey&&(s.iKey=r.overrideInstrumentationKey),B(s,!0),V?ee(2,2):J()),e.processNext(s,i)},e._doTeardown=function(e,t){ee(2,2),b=!0,v.teardown(),(0,s.JA)(null,_),(0,s.C9)(null,_),(0,s.Yl)(null,_),Y()},e.setEventQueueLimits=function(e,t){I=e>0?e:1e4,y=t>0?t:0,Se();var n=x>e;if(!n&&C>0)for(var i=1;!n&&i<=3;i++){var r=U[i];r&&r.batches&&(0,u.tO)(r.batches,(function(e){e&&e.count()>=C&&(n=!0)}))}re(!0,n)},e.pause=function(){Q(),w=!0,v.pause()},e.resume=function(){w=!1,v.resume(),J()},e.addResponseHandler=function(e){v._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){Q(),le(),A=g,J(),(0,u.rW)(e,(function(e,t){var n=t.length;if(n>=2){var i=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var r=t[0]/t[1];t[0]=Math.ceil(r)*t[1]}i>=0&&t[1]>=0&&i>t[1]&&(i=t[1]),t.push(i),O[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!w)if(n=n||1,e)null==D?(Q(),ae(1,0,n),D=X((function(){D=null,ce(t,n)}),0)):R.push(t);else{var i=Q();$(1,1,n),null!=t&&t(),i&&J()}},e.setMsaAuthTicket=function(e){v.addHeader(P,e)},e.hasEvents=G,e._setTransmitProfile=function(e){A!==e&&void 0!==O[e]&&(Q(),A=e,J())},e._backOffTransmission=function(){q<4&&(q++,Q(),J())},e._clearBackOff=function(){q&&(q=0,Q(),J())},(0,u.l_)(e,"_setTimeoutOverride",(function(){return T.set}),(function(e){T=te(e,T.clear)})),(0,u.l_)(e,"_clearTimeoutOverride",(function(){return T.clear}),(function(e){T=te(T.set,e)}))})),i}return(0,i.ne)(t,e),t.__ieDyn=1,t}(p.i)},951:(e,t,n)=>{"use strict";n.d(t,{By:()=>r});var i=n(4869);function r(e){var t={};return(0,i.rW)(e,(function(e,n){t[e]=n,t[n]=e})),(0,i._A)(t)}},8452:(e,t,n)=>{"use strict";n.d(t,{h:()=>i});var i=(0,n(951).By)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5})},7951:(e,t,n)=>{"use strict";n.d(t,{i:()=>u});var i=n(9141),r=n(8145),o=n(4869),s=n(6335),a=n(1030),c=n(8593),u=function(){function e(){var t,n,u,l,d,f=this;function p(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||(0,a.CD)(null,{},f[s.oV]);t=u&&u.getPlugin?i[r.zV](null,u.getPlugin):i[r.zV](null,u)}return t}function g(e,t,i){e&&(0,o.sO)(e,s.Zh,[],null,o.le),!i&&t&&(i=t[r.SD]()[r.W2]());var c=u;u&&u.getPlugin&&(c=u.getPlugin()),f[s.oV]=t,n=(0,a.CD)(i,e,t,c)}function h(){t=!1,f[s.oV]=null,n=null,u=null,d=[],l=(0,c.Y)()}h(),(0,i.Z)(e,f,(function(e){e[r.VL]=function(e,n,i,r){g(e,n,r),t=!0},e[r.fi]=function(t,n){var i,c=e[s.oV];if(c&&(!t||c===t[s.oV]())){var f,p=!1,g=t||(0,a.Bt)(null,c,u&&u.getPlugin?u.getPlugin():u),m=n||((i={reason:0})[r.d]=!1,i);return e[r.F3]&&!0===e[r.F3](g,m,v)?f=!0:v(),f}function v(){if(!p){p=!0,l.run(g,n);var e=d;d=[],(0,o.tO)(e,(function(e){e.rm()})),!0===f&&g[r.uL](m),h()}}},e[r.Tu]=function(t,n){var i=e[s.oV];if(i&&(!t||i===t[s.oV]())){var o,c=!1,l=t||(0,a.xy)(null,i,u&&u.getPlugin?u.getPlugin():u),d=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(l,d,f)?o=!0:f(),o}function f(){c||(c=!0,g(l.getCfg(),l.core(),l[r.W2]()))}},e._addHook=function(e){e&&((0,o.kJ)(e)?d=d.concat(e):d[r.MW](e))},(0,o.Oi)(e,"_addUnloadCb",(function(){return l}),"add")})),f[r.mc]=function(e){return p(e)[r.mc]()},f[r.yl]=function(){return t},f.setInitialized=function(e){t=e},f[r.Jd]=function(e){u=e},f[r.uL]=function(e,t){t?t[r.uL](e):u&&(0,o.mf)(u[s.hL])&&u[s.hL](e,null)},f._getTelCtx=p}return e.__ieDyn=1,e}()},8140:(e,t,n)=>{"use strict";n.d(t,{JP:()=>C,Nz:()=>S,UY:()=>E,kj:()=>m,p7:()=>_});var i=n(8145),r=n(9339),o=n(9251),s=n(4869),a=n(6335),c="toGMTString",u="toUTCString",l=null,d=null,f=null,p=(0,o.Me)(),g={},h={};function m(e,t){var n=S._ckMgr||h._ckMgr;return n||(n=S._ckMgr=S(e,t),h._ckMgr=n),n}function v(e){return!e||e.isEnabled()}function y(e,t){return!!(t&&e&&(0,s.kJ)(e.ignoreCookies))&&-1!==e.ignoreCookies[i.ou](t)}function C(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t[i.Lk];n=r._ckMgr?r._ckMgr:S(t)}return n||(n=m(t,(e||{})[i.eZ])),n}function S(e,t){var n,r=function(e){var t=e[i.Lk]=e[i.Lk]||{};if((0,s.sO)(t,"domain",e.cookieDomain,s.BX,s.le),(0,s.sO)(t,"path",e.cookiePath||"/",null,s.le),(0,s.le)(t.enabled)){var n=void 0;(0,s.o8)(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),(0,s.o8)(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n}return t}(e||h),l=r.path||"/",f=r.domain,p=!1!==r.enabled,g=((n={isEnabled:function(){var e=p&&_(t),n=h._ckMgr;return e&&n&&g!==n&&(e=v(n)),e}})[i.$h]=function(e){p=!1!==e},n.set=function(e,t,n,p,h){var m=!1;if(v(g)&&!function(e,t){return!!(t&&e&&(0,s.kJ)(e.blockedCookies)&&-1!==e.blockedCookies[i.ou](t))||y(e,t)}(r,e)){var C={},S=(0,s.nd)(t||a.qS),_=S[i.ou](";");if(-1!==_&&(S=(0,s.nd)(t[i.zc](0,_)),C=T(t[i.zc](_+1))),(0,s.sO)(C,"domain",p||f,s.fQ,s.o8),!(0,s.le)(n)){var D=(0,o.w1)();if((0,s.o8)(C.expires)){var P=(0,s.m6)()+1e3*n;if(P>0){var k=new Date;k.setTime(P),(0,s.sO)(C,"expires",b(k,D?c:u)||b(k,D?c:u)||a.qS,s.fQ)}}D||(0,s.sO)(C,"max-age",a.qS+n,null,s.o8)}var x=(0,o.k$)();x&&"https:"===x.protocol&&((0,s.sO)(C,"secure",null,null,s.o8),null===d&&(d=!E(((0,o.jW)()||{})[i.qV])),d&&(0,s.sO)(C,"SameSite","None",null,s.o8)),(0,s.sO)(C,"path",h||l,null,s.o8),(r.setCookie||w)(e,R(S,C)),m=!0}return m},n.get=function(e){var t=a.qS;return v(g)&&!y(r,e)&&(t=(r.getCookie||D)(e)),t},n.del=function(e,t){var n=!1;return v(g)&&(n=g.purge(e,t)),n},n.purge=function(e,n){var i,s=!1;if(_(t)){var c=((i={}).path=n||"/",i.expires="Thu, 01 Jan 1970 00:00:01 GMT",i);(0,o.w1)()||(c["max-age"]="0"),(r.delCookie||w)(e,R(a.qS,c)),s=!0}return s},n);return g._ckMgr=g,g}function _(e){if(null===l){l=!1;try{l=void 0!==(p||{}).cookie}catch(t){(0,r.kP)(e,2,68,"Cannot access document.cookie - "+(0,s.jj)(t),{exception:(0,o.eU)(t)})}}return l}function T(e){var t={};if(e&&e[i.R5]){var n=(0,s.nd)(e)[i.w6](";");(0,s.tO)(n,(function(e){if(e=(0,s.nd)(e||a.qS)){var n=e[i.ou]("=");-1===n?t[e]=null:t[(0,s.nd)(e[i.zc](0,n))]=(0,s.nd)(e[i.zc](n+1))}}))}return t}function b(e,t){return(0,s.mf)(e[t])?e[t]():null}function R(e,t){var n=e||a.qS;return(0,s.rW)(t,(function(e,t){n+="; "+e+((0,s.le)(t)?a.qS:"="+t)})),n}function D(e){var t=a.qS;if(p){var n=p.cookie||a.qS;f!==n&&(g=T(n),f=n),t=(0,s.nd)(g[e]||a.qS)}return t}function w(e,t){p&&(p.cookie=e+"="+t)}function E(e){return!(!(0,s.HD)(e)||!(0,s._Q)(e,"CPU iPhone OS 12")&&!(0,s._Q)(e,"iPad; CPU OS 12")&&!((0,s._Q)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,s._Q)(e,"Version/")&&(0,s._Q)(e,"Safari"))&&(!(0,s._Q)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,s.Id)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!(0,s._Q)(e,"Chrome/5")&&!(0,s._Q)(e,"Chrome/6")&&(!(0,s._Q)(e,"UnrealEngine")||(0,s._Q)(e,"Chrome"))&&!(0,s._Q)(e,"UCBrowser/12")&&!(0,s._Q)(e,"UCBrowser/11"))}},8956:(e,t,n)=>{"use strict";n.d(t,{DO:()=>h,GW:()=>p,Jj:()=>g,zB:()=>v});var i,r=n(175),o=n(8145),s=n(8140),a=n(9251),c=n(7954),u=n(4869),l=n(6335),d=n(9406),f=null;function p(){var e=h();return e[o.zc](0,8)+"-"+e[o.zc](8,12)+"-"+e[o.zc](12,16)+"-"+e[o.zc](16,20)+"-"+e[o.zc](20)}function g(){var e=(0,a.r)();return e&&e.now?e.now():(0,u.m6)()}function h(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=l.qS,i=0;i<4;i++)n+=t[15&(e=(0,d._l)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var r=t[8+(3&(0,d._l)())|0];return n[o.Jn](0,8)+n[o.Jn](9,4)+"4"+n[o.Jn](13,3)+r+n[o.Jn](16,3)+n[o.Jn](19,12)}var m={_canUseCookies:void 0,isTypeof:u.Ym,isUndefined:u.o8,isNullOrUndefined:u.le,hasOwnProperty:u.nr,isFunction:u.mf,isObject:u.Kn,isDate:u.J_,isArray:u.kJ,isError:u.VZ,isString:u.HD,isNumber:u.hj,isBoolean:u.jn,toISOString:u.Y6,arrForEach:u.tO,arrIndexOf:u.UA,arrMap:u.Mr,arrReduce:u.Xz,strTrim:u.nd,objCreate:r.pu,objKeys:u.FY,objDefineAccessors:u.l_,addEventHandler:c.Ib,dateNow:u.m6,isIE:a.w1,disableCookies:function(){var e,t,n,r;(n=(0,s.kj)(e,t),r=m._canUseCookies,null===f&&(f=[],i=r,(0,u.l_)(m,"_canUseCookies",(function(){return i}),(function(e){i=e,(0,u.tO)(f,(function(t){t[o.$h](e)}))}))),-1===(0,u.UA)(f,n)&&f[o.MW](n),(0,u.jn)(r)&&n[o.$h](r),(0,u.jn)(i)&&n[o.$h](i),n)[o.$h](!1)},newGuid:p,perfNow:g,newId:d.pZ,randomValue:d.az,random32:d._l,mwcRandomSeed:d.CN,mwcRandom32:d.F6,generateW3CId:h},v={Attach:c.pZ,AttachEvent:c.pZ,Detach:c.pD,DetachEvent:c.pD}},7624:(e,t,n)=>{"use strict";n.d(t,{J:()=>f,K:()=>p});var i=n(1550),r=n(8145),o=n(4869),s=n(6335),a=n(9406),c=i.RJ,u="."+(0,a.pZ)(6),l=0;function d(e){return 1===e[r.xv]||9===e[r.xv]||!+e[r.xv]}function f(e,t){return void 0===t&&(t=!1),(0,o.Gf)(e+l+++(t?".2.8.15":s.qS)+u)}function p(e){var t={id:f("_aiData-"+(e||s.qS)+".2.8.15"),accept:function(e){return d(e)},get:function(e,n,i,r){var s=e[t.id];return s?s[(0,o.Gf)(n)]:(r&&((s=function(e,t){var n=t[e.id];if(!n){n={};try{d(t)&&(function(e,t,n){if(c)try{return c(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return!1}(t,e.id,n)||(t[e.id]=n))}catch(e){}}return n}(t,e))[(0,o.Gf)(n)]=i),i)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}},8341:(e,t,n)=>{"use strict";n.d(t,{j:()=>u,p:()=>l});var i,r=n(8145),o=n(9251),s=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],a=null;function c(e,t){return function(){var n=arguments,i=u(t);if(i){var o=i.listener;o&&o[e]&&o[e][r.ZV](o,n)}}}function u(e){var t,n=a;return n||!0===e.disableDbgExt||(n=a||((t=(0,o.a8)("Microsoft"))&&(a=t.ApplicationInsights),a)),n?n.ChromeDbgExt:null}function l(e){if(!i){i={};for(var t=0;t<s[r.R5];t++)i[s[t]]=c(s[t],e)}return i}},9339:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>p,L4:()=>v,jV:()=>m,kP:()=>h,lQ:()=>d,vH:()=>f});var i=n(9141),r=n(8145),o=n(8341),s=n(9251),a=n(4869),c=n(6335);function u(e){return e?'"'+e[r.i7](/\"/g,c.qS)+'"':c.qS}function l(e,t){var n=(0,s.dr)();if(n){var i="log";n[e]&&(i=e),(0,a.mf)(n[i])&&n[i](t)}}var d=function(){function e(e,t,n,i){void 0===n&&(n=!1);var o=this;o[r.Gc]=e,o[r.gU]=(n?"AI: ":"AI (Internal): ")+e;var a=c.qS;(0,s.nS)()&&(a=(0,s.xA)().stringify(i));var l=(t?" message:"+u(t):c.qS)+(i?" props:"+u(a):c.qS);o[r.gU]+=l}return e.dataType="MessageData",e}();function f(e,t){return(e||{})[r.eZ]||new p(t)}var p=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,u,f,p,g=0,h={};(0,i.Z)(e,this,(function(e){function i(t,n){if(!(g>=f)){var i=!0,o="AITR_"+n[r.Gc];if(h[o]?i=!1:h[o]=!0,i&&(t<=u&&(e.queue[r.MW](n),g++,m(1===t?"error":"warn",n)),g===f)){var s="Internal events throttle limit per PageView reached for this app.",a=new d(23,s,!1);e.queue[r.MW](a),1===t?e[c.ys](s):e[c.cL](s)}}}function m(e,n){var i=(0,o.j)(t||{});i&&i[r.mc]&&i[r.mc](e,n)}!function(e){n=(0,a.v4)(e.loggingLevelConsole,0),u=(0,a.v4)(e.loggingLevelTelemetry,1),f=(0,a.v4)(e.maxMessageLimit,25),p=(0,a.v4)(e.enableDebug,(0,a.v4)(e[r.Fr],!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return u},e.maxInternalMessageLimit=function(){return f},e[r.Fr]=function(){return p},e.throwInternal=function(t,o,u,l,f){void 0===f&&(f=!1);var g=new d(o,u,f,l);if(p)throw(0,s.eU)(g);var v=1===t?c.ys:c.cL;if((0,a.o8)(g[r.gU]))m("throw"+(1===t?"Critical":"Warning"),g);else{if(f){var y=+g[r.Gc];!h[y]&&n>=t&&(e[v](g[r.gU]),h[y]=!0)}else n>=t&&e[v](g[r.gU]);i(t,g)}},e[c.cL]=function(e){l("warn",e),m("warning",e)},e[c.ys]=function(e){l("error",e),m("error",e)},e.resetInternalMessageCount=function(){g=0,h={}},e[r.jk]=i}))}return e.__ieDyn=1,e}();function g(e){return e||new p}function h(e,t,n,i,r,o){void 0===o&&(o=!1),g(e).throwInternal(t,n,i,r,o)}function m(e,t){g(e)[c.cL](t)}function v(e,t,n){g(e)[r.jk](t,n)}},9251:(e,t,n)=>{"use strict";n.d(t,{JO:()=>K,Jj:()=>b,MF:()=>H,MX:()=>F,Me:()=>D,Nv:()=>R,Ym:()=>T,Z3:()=>W,a8:()=>_,b$:()=>L,cp:()=>V,d6:()=>w,dI:()=>S,dr:()=>I,eU:()=>U,ed:()=>B,fE:()=>P,gz:()=>M,jW:()=>E,k$:()=>x,nS:()=>O,pI:()=>$,r:()=>N,s1:()=>k,sA:()=>j,w1:()=>q,xA:()=>A});var i=n(1550),r=n(175),o=n(8145),s=n(4869),a=n(6335),c=n(5108),u="window",l="JSON",d="msie",f="trident/",p="XMLHttpRequest",g=null,h=null,m=!1,v=null,y=null;function C(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[i.hB];r&&(n=t in r)}}catch(e){}if(!n)try{var o=new e;n=!(0,s.o8)(o[t])}catch(e){}}return n}function S(e){m=e}function _(e){var t=(0,r.Rd)();return t&&t[e]?t[e]:e===u&&T()?window:null}function T(){return Boolean(typeof window===i.fK&&window)}function b(){return T()?window:_(u)}function R(){return Boolean(typeof document===i.fK&&document)}function D(){return R()?document:_("document")}function w(){return Boolean(typeof navigator===i.fK&&navigator)}function E(){return w()?navigator:_("navigator")}function P(){return Boolean(typeof history===i.fK&&history)}function k(){return P()?history:_("history")}function x(e){if(e&&m){var t=_("__mockLocation");if(t)return t}return typeof location===i.fK&&location?location:_("location")}function I(){return typeof c!==i.jA?c:_("console")}function N(){return _("performance")}function O(){return Boolean(typeof JSON===i.fK&&JSON||null!==_(l))}function A(){return O()?JSON||_(l):null}function F(){return _("crypto")}function M(){return _("msCrypto")}function L(){var e=E();return!(!e||!e.product)&&"ReactNative"===e.product}function q(){var e=E();if(e&&(e[o.qV]!==h||null===g)){var t=((h=e[o.qV])||a.qS)[o.T1]();g=(0,s._Q)(t,d)||(0,s._Q)(t,f)}return g}function j(e){if(void 0===e&&(e=null),!e){var t=E()||{};e=t?(t[o.qV]||a.qS)[o.T1]():a.qS}var n=(e||a.qS)[o.T1]();if((0,s._Q)(n,d)){var i=D()||{};return Math.max(parseInt(n[o.w6](d)[1]),i.documentMode||0)}if((0,s._Q)(n,f)){var r=parseInt(n[o.w6](f)[1]);if(r)return r+4}return null}function U(e){var t=Object[i.hB].toString[o._S](e),n=a.qS;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[o.I]+"'":O()&&(n=A().stringify(e)),t+n}function H(){return null===y&&(y=w()&&Boolean(E().sendBeacon)),y}function K(e){var t=!1;try{t=!!_("fetch");var n=_("Request");t&&e&&n&&(t=C(n,"keepalive"))}catch(e){}return t}function V(){return null===v&&(v=typeof XDomainRequest!==i.jA)&&W()&&(v=v&&!C(_(p),"withCredentials")),v}function W(){var e=!1;try{e=!!_(p)}catch(e){}return e}function z(e,t){if(e)for(var n=0;n<e[o.R5];n++){var i=e[n];if(i[o.I]&&i[o.I]===t)return i}return{}}function B(e){var t=D();return t&&e?z(t.querySelectorAll("meta"),e).content:null}function $(e){var t,n=N();if(n){var i=n.getEntriesByType("navigation")||[];t=z((i[o.R5]>0?i[0]:{}).serverTiming,e).description}return t}},7954:(e,t,n)=>{"use strict";n.d(t,{C1:()=>O,C9:()=>U,Ib:()=>N,JA:()=>q,QY:()=>k,TJ:()=>j,XO:()=>P,Yl:()=>K,c9:()=>L,jU:()=>E,nD:()=>H,nJ:()=>M,pD:()=>I,pZ:()=>x,um:()=>b,yw:()=>F});var i=n(8145),r=n(7624),o=n(9251),s=n(4869),a=n(6335),c="events",u="visibilitychange",l="pagehide",d="pageshow",f="unload",p="beforeunload",g=(0,r.J)("aiEvtPageHide"),h=(0,r.J)("aiEvtPageShow"),m=/\.[\.]+/g,v=/[\.]+$/,y=1,C=(0,r.K)("events"),S=/^([^.]*)(?:\.(.+)|)/;function _(e){return e&&e[i.i7]?e[i.i7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,a.qS):e}function T(e,t){var n;if(t){var r=a.qS;(0,s.kJ)(t)?(r=a.qS,(0,s.tO)(t,(function(e){(e=_(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=_(t),r&&("."!==r[0]&&(r="."+r),e=(e||a.qS)+r)}var o=S.exec(e||a.qS)||[];return(n={})[i.P6]=o[1],n.ns=(o[2]||a.qS).replace(m,".").replace(v,a.qS)[i.w6](".").sort().join("."),n}function b(e,t,n){var r=[],o=C.get(e,c,{},!1),u=T(t,n);return(0,s.rW)(o,(function(e,t){(0,s.tO)(t,(function(e){var t;u[i.P6]&&u[i.P6]!==e.evtName[i.P6]||u.ns&&u.ns!=u.ns||r[i.MW](((t={})[i.I]=e.evtName[i.P6]+(e.evtName.ns?"."+e.evtName.ns:a.qS),t.handler=e[i.Kn],t))}))})),r}function R(e,t,n){void 0===n&&(n=!0);var i=C.get(e,c,{},n),r=i[t];return r||(r=i[t]=[]),r}function D(e,t,n,r){e&&t&&t[i.P6]&&(e.removeEventListener?e.removeEventListener(t[i.P6],n,r):e.detachEvent&&e.detachEvent("on"+t[i.P6],n))}function w(e,t,n,r){for(var o=t[i.R5];o--;){var s=t[o];s&&(n.ns&&n.ns!==s.evtName.ns||r&&!r(s)||(D(e,s.evtName,s[i.Kn],s.capture),t[i.cb](o,1)))}}function E(e,t){return t?T("xx",(0,s.kJ)(t)?[e].concat(t):[e,t]).ns[i.w6]("."):e}function P(e,t,n,r,o){var s;void 0===o&&(o=!1);var a=!1;if(e)try{var c=T(t,r);if(a=function(e,t,n,r){var o=!1;return e&&t&&t[i.P6]&&n&&(e.addEventListener?(e.addEventListener(t[i.P6],n,r),o=!0):e.attachEvent&&(e.attachEvent("on"+t[i.P6],n),o=!0)),o}(e,c,n,o),a&&C.accept(e)){var u=((s={guid:y++,evtName:c})[i.Kn]=n,s.capture=o,s);R(e,c.type)[i.MW](u)}}catch(e){}return a}function k(e,t,n,r,o){if(void 0===o&&(o=!1),e)try{var a=T(t,r),u=!1;!function(e,t,n){if(t[i.P6])w(e,R(e,t[i.P6]),t,n);else{var r=C.get(e,c,{});(0,s.rW)(r,(function(i,r){w(e,r,t,n)})),0===(0,s.FY)(r)[i.R5]&&C.kill(e,c)}}(e,a,(function(e){return!((!a.ns||n)&&e[i.Kn]!==n||(u=!0,0))})),u||D(e,a,n,o)}catch(e){}}function x(e,t,n,i){return void 0===i&&(i=!1),P(e,t,n,null,i)}function I(e,t,n,i){void 0===i&&(i=!1),k(e,t,n,null,i)}function N(e,t,n){var i=!1,r=(0,o.Jj)();r&&(i=P(r,e,t,n),i=P(r.body,e,t,n)||i);var s=(0,o.Me)();return s&&(i=P(s,e,t,n)||i),i}function O(e,t,n){var i=(0,o.Jj)();i&&(k(i,e,t,n),k(i.body,e,t,n));var r=(0,o.Me)();r&&k(r,e,t,n)}function A(e,t,n,r){var o=!1;return t&&e&&e[i.R5]>0&&(0,s.tO)(e,(function(e){e&&(n&&-1!==(0,s.UA)(n,e)||(o=N(e,t,r)||o))})),o}function F(e,t,n,r){var o=!1;return t&&e&&(0,s.kJ)(e)&&!(o=A(e,t,n,r))&&n&&n[i.R5]>0&&(o=A(e,t,null,r)),o}function M(e,t,n){e&&(0,s.kJ)(e)&&(0,s.tO)(e,(function(e){e&&O(e,t,n)}))}function L(e,t,n){return F([p,f,l],e,t,n)}function q(e,t){M([p,f,l],e,t)}function j(e,t,n){var i=E(g,n),r=A([l],e,t,i);return t&&-1!==(0,s.UA)(t,u)||(r=A([u],(function(t){var n=(0,o.Me)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,i)||r),!r&&t&&(r=j(e,null,n)),r}function U(e,t){var n=E(g,t);M([l],e,n),M([u],null,n)}function H(e,t,n){var i=E(h,n),r=A([d],e,t,i);return!(r=A([u],(function(t){var n=(0,o.Me)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,i)||r)&&t&&(r=H(e,null,n)),r}function K(e,t){var n=E(h,t);M([d],e,n),M([u],null,n)}},4869:(e,t,n)=>{"use strict";n.d(t,{Ax:()=>he,BX:()=>E,F:()=>ce,FL:()=>te,FY:()=>X,Gf:()=>I,HD:()=>j,Id:()=>O,J_:()=>M,Kn:()=>k,Mr:()=>B,Oi:()=>pe,UA:()=>z,VZ:()=>q,Vb:()=>ge,Xi:()=>ne,Xz:()=>$,Y6:()=>V,Ym:()=>R,_A:()=>ee,_Q:()=>F,_y:()=>le,cf:()=>fe,fQ:()=>ue,hj:()=>U,jj:()=>re,jn:()=>H,kJ:()=>L,l_:()=>Z,le:()=>w,m6:()=>ie,mf:()=>x,mm:()=>me,nd:()=>G,nr:()=>P,o8:()=>D,qK:()=>se,rW:()=>N,sO:()=>oe,tO:()=>W,v4:()=>ae,xe:()=>A});var i=n(1550),r=n(175),o=n(8145),s=n(6335),a=i.RJ,c=i.Pw.freeze,u=i.Pw.seal,l=i.Pw.keys,d=String[i.hB],f=d.trim,p=d.endsWith,g=d.startsWith,h=Date[i.hB].toISOString,m=Array.isArray,v=i.V4.toString,y=i.CY.toString,C=y[o._S](i.Pw),S=/-([a-z])/g,_=/([^\w\d_$])/g,T=/^(\d+[\w\d_$])/,b=Object.getPrototypeOf;function R(e,t){return typeof e===t}function D(e){return void 0===e||typeof e===i.jA}function w(e){return null===e||D(e)}function E(e){return!w(e)}function P(e,t){return!(!e||!i.CY[o._S](e,t))}function k(e){return!(!e||typeof e!==i.fK)}function x(e){return!(!e||typeof e!==i.cb)}function I(e){var t=e;return t&&j(t)&&(t=(t=(t=t[o.i7](S,(function(e,t){return t.toUpperCase()})))[o.i7](_,"_"))[o.i7](T,(function(e,t){return"_"+t}))),t}function N(e,t){if(e)for(var n in e)i.CY[o._S](e,n)&&t[o._S](e,n,e[n])}function O(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=p?e.endsWith(t):function(e,t){var n=!1,i=t?t[o.R5]:0,r=e?e[o.R5]:0;if(i&&r&&r>=i&&!(n=e===t)){for(var s=r-1,a=i-1;a>=0;a--){if(e[s]!=t[a])return!1;s--}n=!0}return n}(e,t)),n}function A(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=g?e.startsWith(t):function(e,t){var n=!1,i=t?t[o.R5]:0;if(e&&i&&e[o.R5]>=i&&!(n=e===t)){for(var r=0;r<i;r++)if(e[r]!==t[r])return!1;n=!0}return n}(e,t)),n}function F(e,t){return!(!e||!t)&&-1!==e[o.ou](t)}function M(e){return!(!e||"[object Date]"!==v[o._S](e))}var L=m||function(e){return!(!e||"[object Array]"!==v[o._S](e))};function q(e){return!(!e||"[object Error]"!==v[o._S](e))}function j(e){return"string"==typeof e}function U(e){return"number"==typeof e}function H(e){return"boolean"==typeof e}function K(e){var t=!1;if(e&&"object"==typeof e){var n=b?b(e):function(e){if(e){if(b)return b(e);var t=e.__proto__||e[i.hB]||e.constructor;if(t)return t}return null}(e);n?(n.constructor&&i.CY[o._S](n,"constructor")&&(n=n.constructor),t=typeof n===i.cb&&y[o._S](n)===C):t=!0}return t}function V(e){if(e)return h?e.toISOString():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[o.R5]&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function W(e,t,n){var i=e[o.R5];try{for(var r=0;r<i&&(!(r in e)||-1!==t[o._S](n||e,e[r],r,e));r++);}catch(e){}}function z(e,t,n){if(e){if(e.indexOf)return e.indexOf(t,n);var i=e[o.R5],r=n||0;try{for(var s=Math.max(r>=0?r:i-Math.abs(r),0);s<i;s++)if(s in e&&e[s]===t)return s}catch(e){}}return-1}function B(e,t,n){var i;if(e){if(e.map)return e.map(t,n);var r=e[o.R5],s=n||e;i=new Array(r);try{for(var a=0;a<r;a++)a in e&&(i[a]=t[o._S](s,e[a],e))}catch(e){}}return i}function $(e,t,n){var i;if(e){if(e.reduce)return e.reduce(t,n);var r=e[o.R5],s=0;if(arguments[o.R5]>=3)i=arguments[2];else{for(;s<r&&!(s in e);)s++;i=e[s++]}for(;s<r;)s in e&&(i=t(i,e[s],s,e)),s++}return i}function G(e){return e&&(e=f&&e.trim?e.trim():e[o.i7]?e[o.i7](/^\s+|(?=\s)\s+$/g,s.qS):e),e}var J=!{toString:null}.propertyIsEnumerable("toString"),Y=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function X(e){var t=typeof e;if(t===i.cb||t===i.fK&&null!==e||(0,r.ZU)("objKeys called on non-object"),!J&&l)return l(e);var n=[];for(var s in e)e&&i.CY[o._S](e,s)&&n[o.MW](s);if(J)for(var a=Y[o.R5],c=0;c<a;c++)e&&i.CY[o._S](e,Y[c])&&n[o.MW](Y[c]);return n}function Z(e,t,n,i){if(a)try{var r={enumerable:!0,configurable:!0};return n&&(r.get=n),i&&(r.set=i),a(e,t,r),!0}catch(e){}return!1}function Q(e){return e}function ee(e){return c&&N(e,(function(e,t){(L(t)||k(t))&&c(t)})),te(e)}var te=c||Q,ne=u||Q;function ie(){var e=Date;return e.now?e.now():(new e).getTime()}function re(e){return q(e)?e[o.I]:s.qS}function oe(e,t,n,i,r){var o=n;return e&&((o=e[t])===n||r&&!r(o)||i&&!i(n)||(o=n,e[t]=o)),o}function se(e,t,n){var i;return e?!(i=e[t])&&w(i)&&(i=D(n)?{}:n,e[t]=i):i=D(n)?{}:n,i}function ae(e,t){return w(e)?t:e}function ce(e){return!e}function ue(e){return!!e}function le(e){throw new Error(e)}function de(e,t){var n=null,i=null;return x(e)?n=e:i=e,function(){var e=arguments;if(n&&(i=n()),i)return i[t][o.ZV](i,e)}}function fe(e,t,n){if(e&&t&&k(e)&&k(t)){var i=function(i){if(j(i)){var r=t[i];x(r)?n&&!n(i,!0,t,e)||(e[i]=de(t,i)):n&&!n(i,!1,t,e)||(P(e,i)&&delete e[i],Z(e,i,(function(){return t[i]}),(function(e){t[i]=e}))||(e[i]=r))}};for(var r in t)i(r)}return e}function pe(e,t,n,i,r){e&&t&&n&&(!1!==r||D(e[t]))&&(e[t]=de(n,i))}function ge(e,t,n,i){return e&&t&&k(e)&&L(n)&&W(n,(function(n){j(n)&&pe(e,n,t,n,i)})),e}function he(e){return e&&i.rl&&(e=(0,i.Pw)((0,i.rl)({},e))),e}function me(e,t,n,r,s,a){var c=arguments,u=c[0]||{},l=c[o.R5],d=!1,f=1;for(l>0&&H(u)&&(d=u,u=c[f]||{},f++),k(u)||(u={});f<l;f++){var p=c[f],g=L(p),h=k(p);for(var m in p){var v=g&&m in p||h&&i.CY[o._S](p,m);if(v){var y=p[m],C=void 0;if(d&&y&&((C=L(y))||K(y))){var S=u[m];C?L(S)||(S=[]):K(S)||(S={}),y=me(d,S,y)}void 0!==y&&(u[m]=y)}}}return u}},6335:(e,t,n)=>{"use strict";n.d(t,{$F:()=>p,C$:()=>h,DN:()=>s,Z:()=>r,Zh:()=>c,cL:()=>v,f_:()=>g,hL:()=>l,js:()=>u,kl:()=>y,mE:()=>a,oV:()=>o,qS:()=>i,uC:()=>f,yi:()=>d,ys:()=>m});var i="",r="channels",o="core",s="createPerfMgr",a="disabled",c="extensionConfig",u="extensions",l="processTelemetry",d="priority",f="eventsSent",p="eventsDiscarded",g="eventsSendRequest",h="perfEvent",m="errorToConsole",v="warnToConsole",y="getPerfMgr"},1782:(e,t,n)=>{"use strict";n.d(t,{Jk:()=>c,Lm:()=>l,j5:()=>d,zn:()=>a});var i=n(9141),r=n(8145),o=n(4869),s=n(6335),a=function(){function e(t,n,i){var s,a=this,c=!1;a.start=(0,o.m6)(),a[r.I]=t,a[r.d]=i,a[r.PL]=function(){return!1},(0,o.mf)(n)&&(c=(0,o.l_)(a,"payload",(function(){return!s&&(0,o.mf)(n)&&(s=n(),n=null),s}))),a[r.T]=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?a[t]:(a.ctx||{})[t]:null},a[r.wu]=function(t,n){t&&(t===e.ParentContextKey?(a[t]||(a[r.PL]=function(){return!0}),a[t]=n):t===e.ChildrenContextKey?a[t]=n:(a.ctx=a.ctx||{})[t]=n)},a[r.Km]=function(){var t=0,i=a[r.T](e.ChildrenContextKey);if((0,o.kJ)(i))for(var s=0;s<i[r.R5];s++){var u=i[s];u&&(t+=u[r.Z_])}a[r.Z_]=(0,o.m6)()-a.start,a.exTime=a[r.Z_]-t,a[r.Km]=function(){},!c&&(0,o.mf)(n)&&(a.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),c=function(){function e(t){this.ctx={},(0,i.Z)(e,this,(function(e){e.create=function(e,t,n){return new a(e,t,n)},e.fire=function(e){e&&(e[r.Km](),t&&(0,o.mf)(t[s.C$])&&t[s.C$](e))},e[r.wu]=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e[r.T]=function(t){return(e.ctx||{})[t]}}))}return e.__ieDyn=1,e}(),u="CoreUtils.doPerf";function l(e,t,n,i,o){if(e){var c=e;if(c[s.kl]&&(c=c[s.kl]()),c){var l=void 0,d=c[r.T](u);try{if(l=c.create(t(),i,o)){if(d&&l[r.wu]&&(l[r.wu](a.ParentContextKey,d),d[r.T]&&d[r.wu])){var f=d[r.T](a.ChildrenContextKey);f||(f=[],d[r.wu](a.ChildrenContextKey,f)),f[r.MW](l)}return c[r.wu](u,l),n(l)}}catch(e){l&&l[r.wu]&&l[r.wu]("exception",e)}finally{l&&c.fire(l),c[r.wu](u,d)}}}return n()}function d(){return null}},1030:(e,t,n)=>{"use strict";n.d(t,{Bt:()=>p,CD:()=>f,Vi:()=>m,jV:()=>h,xy:()=>g});var i=n(8145),r=n(9339),o=n(9251),s=n(4869),a=n(6335),c=n(1782),u=n(9031),l=0;function d(e,t,n,c){var u=null,l=[];null!==c&&(u=c?function(e,t,n){for(;e;){if(e[i.TO]()===n)return e;e=e[i.W2]()}return h([n],t[i.TC]||{},t)}(e,n,c):e);var d={_next:function(){var e=u;if(u=e?e[i.W2]():null,!e){var t=l;t&&t[i.R5]>0&&((0,s.tO)(t,(function(e){try{e.func[i._S](e.self,e.args)}catch(e){(0,r.kP)(n[i.eZ],2,73,"Unexpected Exception during onComplete - "+(0,o.eU)(e))}})),l=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,r.vH)(n,t)},getCfg:function(){return t},getExtCfg:f,getConfig:function(e,n,i){void 0===i&&(i=!1);var r,o=f(e,null);return o&&!(0,s.le)(o[n])?r=o[n]:t&&!(0,s.le)(t[n])&&(r=t[n]),(0,s.le)(r)?i:r},hasNext:function(){return!!u},getNext:function(){return u},setNext:function(e){u=e},iterate:function(e){for(var t;t=d._next();){var n=t[i.TO]();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&l[i.MW]({func:e,self:(0,s.o8)(t)?d.ctx:t,args:n})}}};function f(e,n,i){var r;if(void 0===n&&(n={}),void 0===i&&(i=0),t){var o=t[a.Zh];o&&e&&(r=o[e])}if(r){if((0,s.Kn)(n)&&0!==i){var c=(0,s.mm)(!0,n,r);t&&2===i&&(0,s.rW)(n,(function(e){if((0,s.le)(c[e])){var n=t[e];(0,s.le)(n)||(c[e]=n)}})),r=c}}else r=n;return r}return d}function f(e,t,n,r){var o=d(e,t,n,r),c=o.ctx;return c[i.uL]=function(e){var t=o._next();return t&&t[a.hL](e,c),!t},c[i.zV]=function(e,r){return void 0===e&&(e=null),(0,s.kJ)(e)&&(e=h(e,t,n,r)),f(e||c[i.W2](),t,n,r)},c}function p(e,t,n){var r=t[i.TC]||{},o=d(e,r,t,n),a=o.ctx;return a[i.uL]=function(e){var t=o._next();return t&&t.unload(a,e),!t},a[i.zV]=function(e,n){return void 0===e&&(e=null),(0,s.kJ)(e)&&(e=h(e,r,t,n)),p(e||a[i.W2](),t,n)},a}function g(e,t,n){var r=t[i.TC]||{},o=d(e,r,t,n).ctx;return o[i.uL]=function(e){return o.iterate((function(t){(0,s.mf)(t[i.Tu])&&t[i.Tu](o,e)}))},o[i.zV]=function(e,n){return void 0===e&&(e=null),(0,s.kJ)(e)&&(e=h(e,r,t,n)),g(e||o[i.W2](),t,n)},o}function h(e,t,n,d){var p=null,g=!d;if((0,s.kJ)(e)&&e[i.R5]>0){var m=null;(0,s.tO)(e,(function(e){if(g||d!==e||(g=!0),g&&e&&(0,s.mf)(e[a.hL])){var h=function(e,t,n){var d,p=null,g=(0,s.mf)(e[a.hL]),h=(0,s.mf)(e[i.Jd]),m={getPlugin:function(){return e},getNext:function(){return p},processTelemetry:function(r,o){v(o=o||function(){var i;return e&&(0,s.mf)(e._getTelCtx)&&(i=e._getTelCtx()),i||(i=f(m,t,n)),i}(),(function(t){if(!e||!g)return!1;var n=(0,u.OY)(e);return!n[i.fi]&&!n[a.mE]&&(h&&e[i.Jd](p),e[a.hL](r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||o[i.uL](r)},unload:function(t,n){v(t,(function(){var r=!1;if(e){var o=(0,u.OY)(e),s=e[a.oV]||o[a.oV];!e||s&&s!==t.core()||o[i.fi]||(o[a.oV]=null,o[i.fi]=!0,o[i.yl]=!1,e[i.fi]&&!0===e[i.fi](t,n)&&(r=!0))}return r}),"unload",(function(){}),n[i.d])||t[i.uL](n)},update:function(t,n){v(t,(function(){var r=!1;if(e){var o=(0,u.OY)(e),s=e[a.oV]||o[a.oV];!e||s&&s!==t.core()||o[i.fi]||e[i.Tu]&&!0===e[i.Tu](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t[i.uL](n)},_id:d=e?e[i.pZ]+"-"+e[a.yi]+"-"+l++:"Unknown-0-"+l++,_setNext:function(e){p=e}};function v(t,n,s,u,l){var f=!1,g=e?e[i.pZ]:"TelemetryPluginChain",h=t._hasRun;return h||(h=t._hasRun={}),t.setNext(p),e&&(0,c.Lm)(t[a.oV](),(function(){return g+":"+s}),(function(){h[d]=!0;try{var e=p?p._id:a.qS;e&&(h[e]=!1),f=n(t)}catch(e){var c=!p||h[p._id];c&&(f=!0),p&&c||(0,r.kP)(t[i.mc](),1,73,"Plugin ["+g+"] failed during "+s+" - "+(0,o.eU)(e)+", run flags: "+(0,o.eU)(h))}}),u,l),f}return(0,s.FL)(m)}(e,t,n);p||(p=h),m&&m._setNext(h),m=h}}))}return d&&!p?h([d],t,n):p}var m=function(e,t,n,i){var r=f(e,t,n,i);(0,s.Vb)(this,r,(0,s.FY)(r))}},9406:(e,t,n)=>{"use strict";n.d(t,{CN:()=>m,F6:()=>v,_l:()=>h,az:()=>g,pZ:()=>y});var i=n(8145),r=n(9251),o=n(4869),s=n(6335),a=4294967296,c=4294967295,u=!1,l=123456789,d=987654321;function f(e){e<0&&(e>>>=0),l=123456789+e&c,d=987654321-e&c,u=!0}function p(){try{var e=2147483647&(0,o.m6)();f((Math.random()*a^e)+e)}catch(e){}}function g(e){return e>0?Math.floor(h()/c*(e+1))>>>0:0}function h(e){var t=0,n=(0,r.MX)()||(0,r.gz)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0,r.w1)()&&(u||p(),t=v()&c),0===t&&(t=Math.floor(a*Math.random()|0)),e||(t>>>=0),t}function m(e){e?f(e):p()}function v(e){var t=((d=36969*(65535&d)+(d>>16)&c)<<16)+(65535&(l=18e3*(65535&l)+(l>>16)&c))>>>0&c|0;return e||(t>>>=0),t}function y(e){void 0===e&&(e=22);for(var t=h()>>>0,n=0,r=s.qS;r[i.R5]<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(h()<<2&4294967295|3&t)>>>0,n=0);return r}},9031:(e,t,n)=>{"use strict";n.d(t,{AA:()=>d,OY:()=>u,Yn:()=>f,bP:()=>l});var i=n(8145),r=n(7624),o=n(4869),s=n(6335),a=n(6207),c=(0,r.K)("plugin");function u(e){return c.get(e,"state",{},!0)}function l(e,t){for(var n,r=[],a=null,c=e[i.W2]();c;){var l=c[i.TO]();l&&(a&&(0,o.mf)(a[i.Jd])&&(0,o.mf)(l[s.hL])&&a[i.Jd](l),((0,o.mf)(l[i.yl])?l[i.yl]():(n=u(l))[i.yl])||r[i.MW](l),a=l,c=c[i.W2]())}(0,o.tO)(r,(function(r){var o=e[s.oV]();r[i.VL](e.getCfg(),o,t,e[i.W2]()),n=u(r),r[s.oV]||n[s.oV]||(n[s.oV]=o),n[i.yl]=!0,delete n[i.fi]}))}function d(e){return e.sort((function(e,t){var n=0;if(t){var i=(0,o.mf)(t[s.hL]);(0,o.mf)(e[s.hL])?n=i?e[s.yi]-t[s.yi]:1:i&&(n=-1)}else n=e?1:-1;return n}))}function f(e){var t={};return{getName:function(){return t[i.I]},setName:function(n){e&&e.setName(n),t[i.I]=n},getTraceId:function(){return t[i.nY]},setTraceId:function(n){e&&e.setTraceId(n),(0,a.jN)(n)&&(t[i.nY]=n)},getSpanId:function(){return t[i._d]},setSpanId:function(n){e&&e.setSpanId(n),(0,a.Lc)(n)&&(t[i._d]=n)},getTraceFlags:function(){return t[i.T0]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[i.T0]=n}}}},8593:(e,t,n)=>{"use strict";n.d(t,{Y:()=>a});var i=n(8145),r=n(9339),o=n(9251),s=n(4869);function a(){var e=[];return{add:function(t){t&&e[i.MW](t)},run:function(t,n){(0,s.tO)(e,(function(e){try{e(t,n)}catch(e){(0,r.kP)(t[i.mc](),2,73,"Unexpected error calling unload handler - "+(0,o.eU)(e))}})),e=[]}}}},6207:(e,t,n)=>{"use strict";n.d(t,{J6:()=>C,Lc:()=>y,Pn:()=>S,SU:()=>h,aR:()=>_,jN:()=>v,j_:()=>m,lq:()=>T});var i=n(8145),r=n(8956),o=n(9251),s=n(4869),a=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,c="00",u="ff",l="00000000000000000000000000000000",d="0000000000000000";function f(e,t,n){return!(!e||e[i.R5]!==t||e===n||!e.match(/^[\da-f]*$/))}function p(e,t,n){return f(e,t)?e:n}function g(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[i.R5]<2;)t="0"+t;return t}function h(e,t,n,o){var s;return(s={})[i.PA]=f(o,2,u)?o:c,s[i.nY]=v(e)?e:(0,r.DO)(),s.spanId=y(t)?t:(0,r.DO)()[i.Jn](0,16),s.traceFlags=n>=0&&n<=255?n:1,s}function m(e){var t;if(!e)return null;if((0,s.kJ)(e)&&(e=e[0]||""),!e||!(0,s.HD)(e)||e[i.R5]>8192)return null;var n=a.exec((0,s.nd)(e));return n&&n[1]!==u&&n[2]!==l&&n[3]!==d?((t={})[i.PA]=n[1],t[i.nY]=n[2],t[i._d]=n[3],t[i.T0]=parseInt(n[4],16),t):null}function v(e){return f(e,32,l)}function y(e){return f(e,16,d)}function C(e){return!!(e&&f(e[i.PA],2,u)&&f(e[i.nY],32,l)&&f(e[i._d],16,d)&&f(g(e[i.T0]),2))}function S(e){return!!C(e)&&1==(1&e[i.T0])}function _(e){if(e){var t=g(e[i.T0]);f(t,2)||(t="01");var n=e[i.PA]||c;return"00"!==n&&"ff"!==n&&(n=c),"".concat(n,"-").concat(p(e.traceId,32,l),"-").concat(p(e.spanId,16,d),"-").concat(t)}return""}function T(){var e="traceparent",t=m((0,o.ed)(e));return t||(t=m((0,o.pI)(e))),t}},8145:(e,t,n)=>{"use strict";n.d(t,{$h:()=>j,F3:()=>P,Fc:()=>C,Fr:()=>W,Gc:()=>D,I:()=>r,Jd:()=>N,Jn:()=>U,Km:()=>ee,Kn:()=>J,LS:()=>y,Lk:()=>A,MW:()=>a,P6:()=>G,PA:()=>re,PL:()=>X,R5:()=>f,SD:()=>h,T:()=>Z,T0:()=>ie,T1:()=>B,TC:()=>u,TO:()=>S,Tu:()=>k,VL:()=>i,W2:()=>x,ZV:()=>K,Z_:()=>p,_S:()=>$,_d:()=>ne,cb:()=>b,d:()=>E,dE:()=>Y,eZ:()=>d,fi:()=>R,g:()=>m,gU:()=>w,i7:()=>V,iC:()=>T,jk:()=>z,kL:()=>_,mc:()=>I,n7:()=>v,nY:()=>te,ou:()=>F,p$:()=>l,pZ:()=>s,qV:()=>L,tb:()=>o,uL:()=>g,w6:()=>q,wu:()=>Q,xv:()=>H,yl:()=>c,zV:()=>O,zc:()=>M});var i="initialize",r="name",o="getNotifyMgr",s="identifier",a="push",c="isInitialized",u="config",l="instrumentationKey",d="logger",f="length",p="time",g="processNext",h="getProcessTelContext",m="addNotificationListener",v="removeNotificationListener",y="stopPollingInternalLogs",C="onComplete",S="getPlugin",_="flush",T="_extensions",b="splice",R="teardown",D="messageId",w="message",E="isAsync",P="_doTeardown",k="update",x="getNext",I="diagLog",N="setNextPlugin",O="createNew",A="cookieCfg",F="indexOf",M="substring",L="userAgent",q="split",j="setEnabled",U="substr",H="nodeType",K="apply",V="replace",W="enableDebugExceptions",z="logInternalMessage",B="toLowerCase",$="call",G="type",J="handler",Y="listeners",X="isChildEvt",Z="getCtx",Q="setCtx",ee="complete",te="traceId",ne="spanId",ie="traceFlags",re="version"},1550:(e,t,n)=>{"use strict";n.d(t,{CY:()=>p,Pw:()=>c,RJ:()=>f,V4:()=>u,bO:()=>a,cb:()=>i,fK:()=>r,hB:()=>s,jA:()=>o,rl:()=>l,yu:()=>d});var i="function",r="object",o="undefined",s="prototype",a="hasOwnProperty",c=Object,u=c[s],l=c.assign,d=c.create,f=c.defineProperty,p=u[a]},175:(e,t,n)=>{"use strict";n.d(t,{Rd:()=>o,ZU:()=>s,pu:()=>a});var i=n(1550),r=null;function o(e){void 0===e&&(e=!0);var t=!1===e?null:r;return t||(typeof globalThis!==i.jA&&(t=globalThis),t||typeof self===i.jA||(t=self),t||typeof window===i.jA||(t=window),t||typeof n.g===i.jA||(t=n.g),r=t),t}function s(e){throw new TypeError(e)}function a(e){var t=i.yu;if(t)return t(e);if(null==e)return{};var n=typeof e;function r(){}return n!==i.fK&&n!==i.cb&&s("Object prototype may only be an Object:"+e),r[i.hB]=e,new r}},7421:(e,t,n)=>{"use strict";n.d(t,{$h:()=>c,ne:()=>a,uc:()=>o});var i=n(1550),r=n(175),o=(((0,r.Rd)()||{}).Symbol,((0,r.Rd)()||{}).Reflect,i.rl||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])i.V4[i.bO].call(t,o)&&(e[o]=t[o]);return e}),s=function(e,t){return s=i.Pw.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[i.bO](n)&&(e[n]=t[n])},s(e,t)};function a(e,t){function n(){this.constructor=e}typeof t!==i.cb&&null!==t&&(0,r.ZU)("Class extends value "+String(t)+" is not a constructor or null"),s(e,t),e[i.hB]=null===t?(0,r.pu)(t):(n[i.hB]=t[i.hB],new n)}function c(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e}},2672:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>yl,ApplicationInsights:()=>_l,Sender:()=>Oa,SeverityLevel:()=>Cl,arrForEach:()=>jn,isNullOrUndefined:()=>x,proxyFunctions:()=>lc,throwError:()=>ge});var i,r=void 0,o=null,s="boolean",a="function",c="number",u="object",l="string",d="undefined",f="indexOf",p="lastIndexOf",g="slice",h=Object,m=h.prototype,v=String,y=v.prototype,C=Math,S=Array,_=S.prototype;function T(){var e;return typeof globalThis!==d&&(e=globalThis),e||typeof self===d||(e=self),e||typeof window===d||(e=window),e||typeof n.g===d||(e=n.g),e}function b(){if(!i){var e=T()||{};i=e.__tsUtils$gblCfg=e.__tsUtils$gblCfg||{}}return i}function R(e,t){var n=t;try{n=e()}catch(e){}return n}var D=[l,c,s,d,"symbol","bigint"];function w(e){return function(t){return typeof t===e}}function E(e){var t="[object "+e+"]";return function(e){return!(!e||P(e)!==t)}}function P(e){return m.toString.call(e)}function k(e){return typeof e===d||e===d}function x(e){return e===o||k(e)}function I(e){return!!e||e!==r}var N=w(l),O=w(a);function A(e){return!(!e&&x(e)||!e||typeof e!==u)}var F=S.isArray,M=E("Date"),L=w(c),q=w(s),j=(E("RegExp"),E("File"),E("FormData"),E("Blob"),E("ArrayBuffer"),E("Error"));function U(e){return!!e&&O(e.then)}function H(e){return!(!e||R((function(){return!(e&&0+e)}),!e))}var K=h.getOwnPropertyDescriptor;function V(e,t){return e&&m.hasOwnProperty.call(e,t)}var W=h.hasOwn||function(e,t){return V(e,t)||!!K(e,t)};function z(e,t,n){if(e&&A(e))for(var i in e)if(W(e,i)&&-1===t.call(n||e,i,e[i]))break}var B={e:"enumerable",c:"configurable",v:"value",w:"writable",g:"get",s:"set"};var $,G=h.defineProperty;function J(e,t,n){return G(e,t,function(e){var t={};if(t[B.c]=!0,t[B.e]=!0,e.l){t.get=function(){return e.l.v};var n=K(e.l,"v");n&&n.set&&(t.set=function(t){e.l.v=t})}return z(e,(function(e,n){t[B[e]]=k(n)?t[B[e]]:n})),t}(n))}h.defineProperties;var Y=function(){$=b(),Y=o};function X(e){var t={};return Y&&Y(),t.b=$.lzy,G(t,"v",{configurable:!0,get:function(){var n=e();return $.lzy||(G(t,"v",{value:n}),t.b&&delete t.b),$.lzy&&t.b!==$.lzy&&(t.b=$.lzy),n}}),t}function Z(e,t){return X((function(){return R(e,t)}))}var Q,ee,te,ne,ie,re,oe=n(4155),se="window",ae=function(e){return Z((function(){return ue(e)||r}),r)},ce=function(e){return(!Q||!1===e||$&&$.lzy&&!Q.b)&&(Q=Z(T,o)),Q.v},ue=function(e,t){var n=Q&&!1!==t?Q.v:ce(t);return n&&n[e]?n[e]:e===se&&ee?ee.v:o},le=function(){return(!te||$&&$.lzy&&!te.b)&&(te=ae("document")),te.v},de=function(){return(!ee||$&&$.lzy&&!ee.b)&&(ee=ae(se)),ee.v},fe=function(){return(!ne||$&&$.lzy&&!ne.b)&&(ne=ae("navigator")),ne.v},pe=function(){return!ie&&(ie=Z((function(){return!(!oe||!(oe.versions||{}).node)}),!1)),ie.v};function ge(e){throw new Error(e)}function he(e){throw new TypeError(e)}var me="prototype",ve="function",ye="_dynClass",Ce="_unknown_",Se=Object,_e=Se.getPrototypeOf,Te=Se.getOwnPropertyNames,be=ce(),Re=be.__dynProto$Gbl||(be.__dynProto$Gbl={o:(re={},re.setInstFuncs=!0,re.useBaseInst=!0,re),n:1e3});function De(e){return e&&(e===Se.prototype||e===Array.prototype)}function we(e){return De(e)||e===Function.prototype}function Ee(e){var t;if(e){if(_e)return _e(e);var n=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);t=e._dyn__proto__||n,V(e,"_dyn__proto__")||(delete e._dynInstProto,t=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=n)}return t}function Pe(e,t){var n=[];if(Te)n=Te(e);else for(var i in e)"string"==typeof i&&V(e,i)&&n.push(i);if(n&&n.length>0)for(var r=0;r<n.length;r++)t(n[r])}function ke(e,t,n){return"constructor"!==t&&typeof e[t]===ve&&(n||V(e,t))}function xe(e){he("DynamicProto: "+e)}function Ie(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function Ne(e,t,n,i){var r=null;if(e&&V(n,ye)){var o=e._dynInstFuncs||{};if((r=(o[n._dynClass]||{})[t])||xe("Missing ["+t+"] "+ve),!r._dynInstChk&&!1!==o._dynInstChk){for(var s=!V(e,t),a=Ee(e),c=[];s&&a&&!we(a)&&!Ie(c,a);){var u=a[t];if(u){s=u===i;break}c.push(a),a=Ee(a)}try{s&&(e[t]=r),r._dynInstChk=1}catch(e){o._dynInstChk=!1}}}return r}function Oe(e,t,n){var i=t[e];return i===n&&(i=Ee(t)[e]),typeof i!==ve&&xe("["+e+"] is not a "+ve),i}function Ae(e,t){return V(e,me)?e.name||t||Ce:((e||{}).constructor||{}).name||t||Ce}function Fe(e,t,n,i){V(e,me)||xe("theClass is an invalid class definition.");var r=e.prototype;(function(e,t){if(_e){for(var n=[],i=Ee(t);i&&!we(i)&&!Ie(n,i);){if(i===e)return!0;n.push(i),i=Ee(i)}return!1}return!0})(r,t)||xe("["+Ae(e)+"] not in hierarchy of ["+Ae(t)+"]");var o=null;V(r,ye)?o=r._dynClass:(o="_dynCls$"+Ae(e,"_")+"$"+Re.n,Re.n++,r._dynClass=o);var s=Fe._dfOpts,a=!!s.useBaseInst;a&&i&&void 0!==i.useBaseInst&&(a=!!i.useBaseInst);var c=function(e){var t={};return Pe(e,(function(n){!t[n]&&ke(e,n,!1)&&(t[n]=e[n])})),t}(t),u=function(e,t,n,i){function r(e,t,n){var r=t[n];if(r._isDynProxy&&i){var o=e._dynInstFuncs||{};!1!==o._dynInstChk&&(r=(o[t._dynClass]||{})[n]||r)}return function(){return r.apply(e,arguments)}}var o={};Pe(n,(function(e){o[e]=r(t,n,e)}));for(var s=Ee(e),a=[];s&&!we(s)&&!Ie(a,s);)Pe(s,(function(e){!o[e]&&ke(s,e,!_e)&&(o[e]=r(t,s,e))})),a.push(s),s=Ee(s);return o}(r,t,c,a);n(t,u);var l=!!_e&&!!s.setInstFuncs;l&&i&&(l=!!i.setInstFuncs),function(e,t,n,i,r){if(!De(e)){var o=n._dynInstFuncs=n._dynInstFuncs||{},s=o[t]=o[t]||{};!1!==o._dynInstChk&&(o._dynInstChk=!!r),Pe(n,(function(t){ke(n,t,!1)&&n[t]!==i[t]&&(s[t]=n[t],delete n[t],(!V(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function(){return(Ne(this,t,e,n)||Oe(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)))}))}}(r,o,t,c,!1!==l)}Fe._dfOpts=Re.o;var Me=h.freeze,Le=h.assign;function qe(e){return A(e)&&e!==o||he("objKeys called on non-object"),h.keys(e)}function je(e){return Me&&z(e,(function(e,t){(F(t)||A(t))&&Me(t)})),Ue(e)}var Ue=Me||function(e){return e},He=(h.seal,h.getPrototypeOf||function(e){return e.__proto__||o});function Ke(e,t){var n="";if(j(e))n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'";else try{n=JSON.stringify(e,o,t?L(t)?t:4:r)}catch(e){n=" - "+Ke(e,t)}return P(e)+": "+n}h.entries,h.values;var Ve,We=h.create||function(e){if(!e)return{};var t=typeof e;if(t!==u&&t!==a)throw new TypeError("Prototype must be an Object or function: "+Ke(e));function n(){}return n.prototype=e,new n},ze="undefined",Be=Object,$e=Be.prototype,Ge=((ce()||{}).Symbol,(ce()||{}).Reflect,Le||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])$e.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}),Je=function(e,t){return Je=Be.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Je(e,t)};function Ye(e,t){function n(){this.constructor=e}"function"!=typeof t&&null!==t&&he("Class extends value "+String(t)+" is not a constructor or null"),Je(e,t),e.prototype=null===t?We(t):(n.prototype=t.prototype,new n)}var Xe="prototype",Ze="function",Qe="_dynClass",et="_unknown_",tt=Object,nt=tt.getPrototypeOf,it=tt.getOwnPropertyNames,rt=ce(),ot=rt.__dynProto$Gbl||(rt.__dynProto$Gbl={o:(Ve={},Ve.setInstFuncs=!0,Ve.useBaseInst=!0,Ve),n:1e3});function st(e){return e&&(e===tt.prototype||e===Array.prototype)}function at(e){return st(e)||e===Function.prototype}function ct(e){var t;if(e){if(nt)return nt(e);var n=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);t=e._dyn__proto__||n,V(e,"_dyn__proto__")||(delete e._dynInstProto,t=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=n)}return t}function ut(e,t){var n=[];if(it)n=it(e);else for(var i in e)"string"==typeof i&&V(e,i)&&n.push(i);if(n&&n.length>0)for(var r=0;r<n.length;r++)t(n[r])}function lt(e,t,n){return"constructor"!==t&&typeof e[t]===Ze&&(n||V(e,t))}function dt(e){he("DynamicProto: "+e)}function ft(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function pt(e,t,n,i){var r=null;if(e&&V(n,Qe)){var o=e._dynInstFuncs||{};if((r=(o[n._dynClass]||{})[t])||dt("Missing ["+t+"] "+Ze),!r._dynInstChk&&!1!==o._dynInstChk){for(var s=!V(e,t),a=ct(e),c=[];s&&a&&!at(a)&&!ft(c,a);){var u=a[t];if(u){s=u===i;break}c.push(a),a=ct(a)}try{s&&(e[t]=r),r._dynInstChk=1}catch(e){o._dynInstChk=!1}}}return r}function gt(e,t,n){var i=t[e];return i===n&&(i=ct(t)[e]),typeof i!==Ze&&dt("["+e+"] is not a "+Ze),i}function ht(e,t){return V(e,Xe)?e.name||t||et:((e||{}).constructor||{}).name||t||et}function mt(e,t,n,i){V(e,Xe)||dt("theClass is an invalid class definition.");var r=e.prototype;(function(e,t){if(nt){for(var n=[],i=ct(t);i&&!at(i)&&!ft(n,i);){if(i===e)return!0;n.push(i),i=ct(i)}return!1}return!0})(r,t)||dt("["+ht(e)+"] not in hierarchy of ["+ht(t)+"]");var o=null;V(r,Qe)?o=r._dynClass:(o="_dynCls$"+ht(e,"_")+"$"+ot.n,ot.n++,r._dynClass=o);var s=mt._dfOpts,a=!!s.useBaseInst;a&&i&&void 0!==i.useBaseInst&&(a=!!i.useBaseInst);var c=function(e){var t={};return ut(e,(function(n){!t[n]&<(e,n,!1)&&(t[n]=e[n])})),t}(t),u=function(e,t,n,i){function r(e,t,n){var r=t[n];if(r._isDynProxy&&i){var o=e._dynInstFuncs||{};!1!==o._dynInstChk&&(r=(o[t._dynClass]||{})[n]||r)}return function(){return r.apply(e,arguments)}}var o={};ut(n,(function(e){o[e]=r(t,n,e)}));for(var s=ct(e),a=[];s&&!at(s)&&!ft(a,s);)ut(s,(function(e){!o[e]&<(s,e,!nt)&&(o[e]=r(t,s,e))})),a.push(s),s=ct(s);return o}(r,t,c,a);n(t,u);var l=!!nt&&!!s.setInstFuncs;l&&i&&(l=!!i.setInstFuncs),function(e,t,n,i,r){if(!st(e)){var o=n._dynInstFuncs=n._dynInstFuncs||{},s=o[t]=o[t]||{};!1!==o._dynInstChk&&(o._dynInstChk=!!r),ut(n,(function(t){lt(n,t,!1)&&n[t]!==i[t]&&(s[t]=n[t],delete n[t],(!V(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function(){return(pt(this,t,e,n)||gt(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)))}))}}(r,o,t,c,!1!==l)}mt._dfOpts=ot.o;var vt="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",yt="http.method",Ct="https://dc.services.visualstudio.com",St="/v2/track",_t="not_specified",Tt=v,bt=_.slice,Rt=function(e,t){he("'"+Tt(e)+"' not defined for "+Ke(t))},Dt=function(e){return function(t){return t[e].apply(t,bt.call(arguments,1))}},wt=function(e,t){var n=t&&t[e];return function(t){var i=t&&t[e]||n;if(i)return i.apply(t,bt.call(arguments,1));Rt(e,t)}},Et=function(e,t,n){var i=t&&t[e];return function(t){var r=t&&t[e]||i;if(r||n){var o=arguments;return(r||n).apply(t,r?bt.call(o,1):o)}Rt(e,t)}};function Pt(e){return function(t){return x(t)&&he("strTrim called ["+Ke(t)+"]"),t&&t.replace&&(t=t.replace(e,"")),t}}var kt,xt=Pt(/^\s+|(?=\s)\s+$/g),It=Pt(/^\s+/g),Nt=Pt(/(?=\s)\s+$/g),Ot=Et("trim",y,xt),At=(Et("trimStart",y,It),Et("trimEnd",y,Nt),"constructor"),Ft="prototype",Mt="function",Lt="_dynClass",qt="_unknown_",jt=Object,Ut=jt.getPrototypeOf,Ht=jt.getOwnPropertyNames,Kt=ce(),Vt=Kt.__dynProto$Gbl||(Kt.__dynProto$Gbl={o:(kt={},kt.setInstFuncs=!0,kt.useBaseInst=!0,kt),n:1e3});function Wt(e){return e&&(e===jt.prototype||e===Array.prototype)}function zt(e){return Wt(e)||e===Function.prototype}function Bt(e){var t;if(e){if(Ut)return Ut(e);var n=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);t=e._dyn__proto__||n,V(e,"_dyn__proto__")||(delete e._dynInstProto,t=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=n)}return t}function $t(e,t){var n=[];if(Ht)n=Ht(e);else for(var i in e)"string"==typeof i&&V(e,i)&&n.push(i);if(n&&n.length>0)for(var r=0;r<n.length;r++)t(n[r])}function Gt(e,t,n){return t!==At&&typeof e[t]===Mt&&(n||V(e,t))}function Jt(e){he("DynamicProto: "+e)}function Yt(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function Xt(e,t,n,i){var r=null;if(e&&V(n,Lt)){var o=e._dynInstFuncs||{};if((r=(o[n._dynClass]||{})[t])||Jt("Missing ["+t+"] "+Mt),!r._dynInstChk&&!1!==o._dynInstChk){for(var s=!V(e,t),a=Bt(e),c=[];s&&a&&!zt(a)&&!Yt(c,a);){var u=a[t];if(u){s=u===i;break}c.push(a),a=Bt(a)}try{s&&(e[t]=r),r._dynInstChk=1}catch(e){o._dynInstChk=!1}}}return r}function Zt(e,t,n){var i=t[e];return i===n&&(i=Bt(t)[e]),typeof i!==Mt&&Jt("["+e+"] is not a "+Mt),i}function Qt(e,t){return V(e,Ft)?e.name||t||qt:((e||{}).constructor||{}).name||t||qt}function en(e,t,n,i){V(e,Ft)||Jt("theClass is an invalid class definition.");var r=e.prototype;(function(e,t){if(Ut){for(var n=[],i=Bt(t);i&&!zt(i)&&!Yt(n,i);){if(i===e)return!0;n.push(i),i=Bt(i)}return!1}return!0})(r,t)||Jt("["+Qt(e)+"] not in hierarchy of ["+Qt(t)+"]");var o=null;V(r,Lt)?o=r._dynClass:(o="_dynCls$"+Qt(e,"_")+"$"+Vt.n,Vt.n++,r._dynClass=o);var s=en._dfOpts,a=!!s.useBaseInst;a&&i&&void 0!==i.useBaseInst&&(a=!!i.useBaseInst);var c=function(e){var t={};return $t(e,(function(n){!t[n]&&Gt(e,n,!1)&&(t[n]=e[n])})),t}(t),u=function(e,t,n,i){function r(e,t,n){var r=t[n];if(r._isDynProxy&&i){var o=e._dynInstFuncs||{};!1!==o._dynInstChk&&(r=(o[t._dynClass]||{})[n]||r)}return function(){return r.apply(e,arguments)}}var o={};$t(n,(function(e){o[e]=r(t,n,e)}));for(var s=Bt(e),a=[];s&&!zt(s)&&!Yt(a,s);)$t(s,(function(e){!o[e]&&Gt(s,e,!Ut)&&(o[e]=r(t,s,e))})),a.push(s),s=Bt(s);return o}(r,t,c,a);n(t,u);var l=!!Ut&&!!s.setInstFuncs;l&&i&&(l=!!i.setInstFuncs),function(e,t,n,i,r){if(!Wt(e)){var o=n._dynInstFuncs=n._dynInstFuncs||{},s=o[t]=o[t]||{};!1!==o._dynInstChk&&(o._dynInstChk=!!r),$t(n,(function(t){Gt(n,t,!1)&&n[t]!==i[t]&&(s[t]=n[t],delete n[t],(!V(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function(){return(Xt(this,t,e,n)||Zt(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)))}))}}(r,o,t,c,!1!==l)}en._dfOpts=Vt.o;var tn=wt(f,y),nn=(wt(p,y),""),rn=/-([a-z])/g,on=/([^\w\d_$])/g,sn=/^(\d+[\w\d_$])/;function an(e,t){return!(!e||!t)&&-1!==tn(e,t)}function cn(e){return j(e)?e.name:nn}function un(){return(Date.now||ln)()}function ln(){return(new Date).getTime()}Object.getPrototypeOf;var dn=Object,fn=dn.prototype,pn=n(5108),gn="JSON",hn=null,mn=null;function vn(){return Boolean("object"==typeof JSON&&JSON||null!==ue(gn))}function yn(){return vn()?JSON||ue(gn):null}var Cn=4294967296,Sn=4294967295,_n=123456789,Tn=987654321,bn=!1,Rn=_n,Dn=Tn;function wn(){try{var e=2147483647&un();(t=(Math.random()*Cn^e)+e)<0&&(t>>>=0),Rn=_n+t&Sn,Dn=Tn-t&Sn,bn=!0}catch(e){}var t}function En(e){var t=0,n=ue("crypto")||ue("msCrypto");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Sn),0===t&&function(){var e=fe();if(e&&(e.userAgent!==mn||null===hn)){var t=((mn=e.userAgent)||nn).toLowerCase();hn=an(t,"msie")||an(t,"trident/")}return hn}()&&(bn||wn(),t=function(e){var t=((Dn=36969*(65535&Dn)+(Dn>>16)&Sn)<<16)+(65535&(Rn=18e3*(65535&Rn)+(Rn>>16)&Sn))>>>0&Sn|0;return t>>>=0}()&Sn),0===t&&(t=Math.floor(Cn*Math.random()|0)),e||(t>>>=0),t}var Pn="."+function(e){void 0===e&&(e=22);for(var t=En()>>>0,n=0,i=nn;i.length<e;)n++,i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(En()<<2&4294967295|3&t)>>>0,n=0);return i}(6),kn=0;var xn,In,Nn,On=Dt("call");function An(e){if(!e||typeof e!==u)return!1;Nn||(Nn=!de()||de());var t=!1;if(e!==Nn){In||(xn=Function.prototype.toString,In=On(xn,h));try{var n=He(e);(t=!n)||(V(n,"constructor")&&(n=n.constructor),t=n&&typeof n===a&&xn.call(n)===In)}catch(e){}}return t}function Fn(e){return e&&A(e)&&(e.isVal||e.fb||W(e,"v")||W(e,"mrg")||W(e,"ref")||e.set)}function Mn(e,t,n){var i,r=n.dfVal||I;if(t&&n.fb){var o=n.fb;F(o)||(o=[o]);for(var s=0;s<o.length;s++){var a=o[s],c=t[a];if(r(c)?i=c:e&&(r(c=e.cfg[a])&&(i=c),e.set(e.cfg,Tt(a),c)),r(i))break}}return!r(i)&&r(n.v)&&(i=n.v),i}function Ln(e,t,n){var i,r=n;return n&&Fn(n)&&(r=Mn(e,t,n)),r&&(Fn(r)&&(r=Ln(e,t,r)),F(r)?(i=[]).length=r.length:An(r)&&(i={}),i&&(z(r,(function(n,r){r&&Fn(r)&&(r=Ln(e,t,r)),i[n]=r})),r=i)),r}function qn(e,t,n,i){var r,o,s,a,c,u,l,d,f=i;Fn(f)?(r=f.isVal,o=f.set,u=f.rdOnly,l=f.blkVal,a=f.mrg,!(c=f.ref)&&k(c)&&(c=!!a),s=Mn(e,t,f)):s=i,l&&e.blkVal(t,n);var p=!0,g=t[n];!g&&x(g)||(d=g,p=!1,r&&d!==s&&!r(d)&&(d=s,p=!0),o&&(p=(d=o(d,s,t))===s)),p?d=s?Ln(e,t,s):s:(An(d)||F(s))&&a&&s&&(An(s)||F(s))&&z(s,(function(t,n){qn(e,d,t,n)})),e.set(t,n,d),c&&e.ref(t,n),u&&e.rdOnly(t,n)}function jn(e,t,n){if(e)for(var i=e.length>>>0,r=0;r<i&&(!(r in e)||-1!==t.call(n||e,e[r],r,e));r++);}var Un=wt(f,_);function Hn(e,t,n,i){var r={};return z(e,(function(e,i){r[e]=t?i:e,r[i]=n?i:e})),i(r)}wt(p,_);var Kn,Vn=Hn({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},0,0,je);var Wn,zn,Bn,$n={};function Gn(e){return{description:Tt(e),toString:function(){return"Symbol("+e+")"},_polyfill:!0}}function Jn(e){var t=function(){if(!Kn){var e=b();Kn=e.gblSym=e.gblSym||{k:{},s:{}}}return Kn}();if(!W(t.k,e)){var n=Gn(e),i=qe(t.s).length;n._urid=function(){return i+"_"+n.toString()},t.k[e]=n,t.s[n._urid()]=Tt(e)}return t.k[e]}function Yn(e){return Z((function(){return Wn.v?Wn.v[e]:r}),r)}function Xn(){return!!Zn()}function Zn(){var e=!Wn||$&&$.lzy&&!Wn.b;return e&&(Wn=ae("Symbol")),(!zn||e)&&(zn=Yn("for")),(!Bn||e)&&(Bn=Yn("keyFor")),Wn.v}function Qn(e,t){var n=Vn[e];return(!Wn||$.lzy&&!Wn.b)&&Zn(),Wn.v?Wn.v[n||e]:t?r:function(e){var t,n=Vn[e];return n&&(t=$n[n]=$n[n]||Gn("Symbol."+n)),t}(e)}function ei(e,t){return(!Wn||$.lzy&&!Wn.b)&&Zn(),Wn.v?Wn.v(e):t?o:Gn(e)}function ti(e){return(!zn||$.lzy&&!Wn.b)&&Zn(),(zn.v||Jn)(e)}w("symbol");var ni=ti("[[ai_dynCfg_1]]"),ii=ti("[[ai_blkDynCfg_1]]"),ri=ti("[[ai_frcDynCfg_1]]");function oi(e){var t;return e&&(F(e)?(t=[]).length=e.length:An(e)&&(t={}),t)?(z(e,(function(e,n){t[e]=oi(n)})),t):e}function si(e,t,n){var i=!1;return n&&!e[t.blkVal]&&((i=n[ri])||n[ii]||(i=An(n)||F(n))),i}function ai(e){he("InvalidAccess:"+e)}var ci=["push","pop","shift","unshift","splice"],ui=function(e,t,n,i){e&&e.throwInternal(3,108,"".concat(n," [").concat(t,"] failed - ")+Ke(i))};function li(e,t){var n=K(e,t);return n&&n.get}function di(e,t,n,i){if(t){var r=li(t,n);r&&r[e.prop]?t[n]=i:function(e,t,n,i){var r={n,h:[],trk:function(t){t&&t.fn&&(-1===Un(r.h,t)&&r.h.push(t),e.trk(t,r))},clr:function(e){var t=Un(r.h,e);-1!==t&&r.h.splice(t,1)}},o=!0,s=!1;function a(){o&&(s=s||si(a,e,i),i&&!i[ni]&&s&&(i=pi(e,i,n,"Converting")),o=!1);var t=e.act;return t&&r.trk(t),i}a[e.prop]={chng:function(){e.add(r)}},J(t,r.n,{g:a,s:function(c){if(i!==c){a[e.ro]&&!e.upd&&ai("["+n+"] is read-only:"+Ke(t)),o&&(s=s||si(a,e,i),o=!1);var u=s&&a[e.rf];if(s)if(u){z(i,(function(e){i[e]=c?c[e]:void 0}));try{z(c,(function(t,n){di(e,i,t,n)})),c=i}catch(t){ui((e.hdlr||{}).logger,n,"Assigning",t),s=!1}}else i&&i[ni]&&z(i,(function(t){var n=li(i,t);if(n){var r=n[e.prop];r&&r.chng()}}));if(c!==i){var l=c&&si(a,e,c);!u&&l&&(c=pi(e,c,n,"Converting")),i=c,s=l}e.add(r)}}})}(e,t,n,i)}return t}function fi(e,t,n,i){if(t){var r=li(t,n),o=r&&!!r[e.prop],s=i&&i[0],a=i&&i[1],c=i&&i[2];if(!o){if(c)try{!function(e){if(e&&(An(e)||F(e)))try{e[ii]=!0}catch(e){}}(t)}catch(t){ui((e.hdlr||{}).logger,n,"Blocking",t)}try{di(e,t,n,t[n]),r=li(t,n)}catch(t){ui((e.hdlr||{}).logger,n,"State",t)}}s&&(r[e.rf]=s),a&&(r[e.ro]=a),c&&(r[e.blkVal]=!0)}return t}function pi(e,t,n,i){try{z(t,(function(n,i){di(e,t,n,i)})),t[ni]||(G(t,ni,{get:function(){return e.hdlr}}),function(e,t,n){F(t)&&jn(ci,(function(i){var r=t[i];t[i]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=r.apply(this,i);return pi(e,t,n,"Patching"),s}}))}(e,t,n))}catch(t){ui((e.hdlr||{}).logger,n,i,t)}return t}var gi,hi=wt(g,_),mi=Dt("apply");function vi(e,t,n,i){var s=F(n),a=s?n.length:0,c=(a>0?n[0]:s?r:n)||setTimeout,u=(a>1?n[1]:r)||clearTimeout,l=i[0];i[0]=function(){d.dn(),mi(l,e,hi(arguments))};var d=function(t,n,i){var r,s,a=!0,c=t?n(o):o,l=function(){return a=!1,c&&c.unref&&c.unref(),s},d=function(){return c=n(c),a||l(),s},f=function(){c&&function(t){mi(u,e,[t])}(c),c=o};return(r={cancel:f,refresh:d}).hasRef=function(){return c&&c.hasRef?c.hasRef():a},r.ref=function(){return a=!0,c&&c.ref&&c.ref(),s},r.unref=l,r.enabled=!1,G(s=r,"enabled",{get:function(){return!!c},set:function(e){!e&&c&&f(),e&&!c&&d()}}),{h:s,dn:function(){c=o}}}(t,(function(t){if(t){if(t.refresh)return t.refresh(),t;mi(u,e,[t])}return mi(c,e,i)}));return d.h}function yi(e,t){return vi(this,!0,r,hi(arguments))}function Ci(e,t){var n=h.setPrototypeOf||function(e,t){!gi&&(gi=X((function(){var e;return(e={}).__proto__=[],e instanceof Array}))),gi.v?e.__proto__=t:z(t,(function(t,n){return e[t]=n}))};return n(e,t)}var Si,_i=function(e,t){try{t&&(e.name=t)}catch(e){}},Ti=function(e,t){try{J(e,"name",{v:t,c:!0,e:!1})}catch(e){}};function bi(e,t,n){var i=n||Error,r=i.prototype.name,s=Error.captureStackTrace;return function(e,t,n){function i(){this.constructor=t,Ti(this,e)}return Ti(t,e),(t=Ci(t,n)).prototype=n===o?We(n):(i.prototype=n.prototype,new i),t}(e,(function(){var n=this;try{_i(i,e);var o=mi(i,n,hi(arguments))||n;if(o!==n){var a=He(n);a!==He(o)&&Ci(o,a)}return s&&s(o,n.constructor),t&&t(o,arguments),o}finally{_i(i,r)}}),i)}var Ri="]]";function Di(e,t,n){var i,r=function(e){if(e){var t=e[ni]||e;if(t.cfg&&(t.cfg===e||t.cfg[ni]===t))return t}return null}(t);if(r)return r;var o,s,a=(void 0===(s=!0)&&(s=!1),function(e){var t=e;return t&&N(t)&&(t=(t=(t=t.replace(rn,(function(e,t){return t.toUpperCase()}))).replace(on,"_")).replace(sn,(function(e,t){return"_"+t}))),t}("dyncfg"+kn+++(s?".3.0.2":nn)+Pn)),c=t&&!1!==n?t:oi(t),u=((i={uid:null,cfg:c}).logger=e,i.notify=function(){o.notify()},i.set=function(t,n,i){try{t=di(o,t,n,i)}catch(t){ui(e,n,"Setting value",t)}return t[n]},i.setDf=function(e,t){return t&&z(t,(function(t,n){qn(u,e,t,n)})),e},i.watch=function(e){return function(e,t){var n={fn:t,rm:function(){n.fn=null,e=null,t=null}};return e.use(n,t),n}(o,e)},i.ref=function(e,t){var n;return fi(o,e,t,(n={},n[0]=!0,n))[t]},i.rdOnly=function(e,t){var n;return fi(o,e,t,(n={},n[1]=!0,n))[t]},i.blkVal=function(e,t){var n;return fi(o,e,t,(n={},n[2]=!0,n))[t]},i._block=function(e,t){o.use(null,(function(n){var i=o.upd;try{k(t)||(o.upd=t),e(n)}finally{o.upd=i}}))},i);return J(u,"uid",{c:!1,e:!1,w:!1,v:a}),pi(o=function(e){var t,n,i=ei("[[ai_get"+e.uid+Ri),r=ei("[[ai_ro"+e.uid+Ri),o=ei("[[ai_rf"+e.uid+Ri),s=ei("[[ai_blkVal"+e.uid+Ri),a=ei("[[ai_dtl"+e.uid+Ri),c=null,u=null;function l(t,i){var r=n.act;try{n.act=t,t&&t[a]&&(jn(t[a],(function(e){e.clr(t)})),t[a]=[]),i({cfg:e.cfg,set:e.set.bind(e),setDf:e.setDf.bind(e),ref:e.ref.bind(e),rdOnly:e.rdOnly.bind(e)})}catch(t){var o=e.logger;throw o&&o.throwInternal(1,107,Ke(t)),t}finally{n.act=r||null}}function d(){if(c){var e=c;c=null,u&&u.cancel(),u=null;var t=[];if(jn(e,(function(e){if(e&&(e[a]&&(jn(e[a],(function(t){t.clr(e)})),e[a]=null),e.fn))try{l(e,e.fn)}catch(e){t.push(e)}})),c)try{d()}catch(e){t.push(e)}t.length>0&&function(e,t){Si||(Si=bi("AggregationError",(function(e,t){t.length>1&&(e.errors=t[1])})));var n="Watcher error(s): ";throw jn(t,(function(e,t){n+="\n".concat(t," > ").concat(Ke(e))})),new Si(n,t||[])}(0,t)}}return(t={prop:i,ro:r,rf:o}).blkVal=s,t.hdlr=e,t.add=function(e){if(e&&e.h.length>0){c||(c=[]),u||(u=yi((function(){u=null,d()}),0));for(var t=0;t<e.h.length;t++){var n=e.h[t];n&&-1===Un(c,n)&&c.push(n)}}},t.notify=d,t.use=l,t.trk=function(e,t){if(e){var n=e[a]=e[a]||[];-1===Un(n,t)&&n.push(t)}},n=t}(u),c,"config","Creating"),u}function wi(e,t,n,i){var r=Di(n,e||{},i);return t&&r.setDf(r.cfg,t),r}var Ei,Pi=null;var ki="warnToConsole",xi={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},Ii=((Ei={})[0]=null,Ei[1]="errorToConsole",Ei[2]=ki,Ei[3]="debugToConsole",Ei);function Ni(e){return e?'"'+e.replace(/\"/g,nn)+'"':nn}function Oi(e,t){var n=void 0!==pn?pn:ue("console");if(n){var i="log";n[e]&&(i=e),O(n[i])&&n[i](t)}}var Ai=function(){function e(e,t,n,i){void 0===n&&(n=!1);var r=this;r.messageId=e,r.message=(n?"AI: ":"AI (Internal): ")+e;var o=nn;vn()&&(o=yn().stringify(i));var s=(t?" message:"+Ni(t):nn)+(i?" props:"+Ni(o):nn);r.message+=s}return e.dataType="MessageData",e}(),Fi=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,i,r,o,s,a=0,c={};en(e,this,(function(e){function u(t,n){if(!(a>=r)){var o=!0,s="AITR_"+n.messageId;if(c[s]?o=!1:c[s]=!0,o&&(t<=i&&(e.queue.push(n),a++,l(1===t?"error":"warn",n)),a===r)){var u="Internal events throttle limit per PageView reached for this app.",d=new Ai(23,u,!1);e.queue.push(d),1===t?e.errorToConsole(u):e.warnToConsole(u)}}}function l(e,n){var i=function(e){var t,n=Pi;return n||!0===e.disableDbgExt||(n=Pi||((t=ue("Microsoft"))&&(Pi=t.ApplicationInsights),Pi)),n?n.ChromeDbgExt:null}(t||{});i&&i.diagLog&&i.diagLog(e,n)}s=function(t){return function(e,t,n){var i=e[ni]||e;return!i.cfg||i.cfg!==e&&i.cfg[ni]!==i?(function(e,t){e?(e.warnToConsole(t),e.throwInternal(2,108,t)):ai(t)}(n,"Not dynamic - "+Ke(e)),wi(e,null,n).watch(t)):i.watch(t)}(wi(t,xi,e).cfg,(function(e){var t=e.cfg;n=t.loggingLevelConsole,i=t.loggingLevelTelemetry,r=t.maxMessageLimit,o=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e.throwInternal=function(t,i,r,s,a){void 0===a&&(a=!1);var d=new Ai(i,r,a,s);if(o)throw Ke(d);var f=Ii[t]||ki;if(k(d.message))l("throw"+(1===t?"Critical":"Warning"),d);else{if(a){var p=+d.messageId;!c[p]&&n>=t&&(e[f](d.message),c[p]=!0)}else n>=t&&e[f](d.message);u(t,d)}},e.debugToConsole=function(e){Oi("debug",e),l("warning",e)},e.warnToConsole=function(e){Oi("warn",e),l("warning",e)},e.errorToConsole=function(e){Oi("error",e),l("error",e)},e.resetInternalMessageCount=function(){a=0,c={}},e.logInternalMessage=u,e.unload=function(e){s&&s.rm(),s=null}}))}return e.__ieDyn=1,e}();function Mi(e,t,n,i,r,o){void 0===o&&(o=!1),function(e){return e||new Fi}(e).throwInternal(t,n,i,r,o)}C.min;var Li=C.max,qi=wt(g,y),ji=wt("substring",y),Ui=Et("substr",y,(function(e,t,n){return x(e)&&he("'polyStrSubstr called with invalid "+Ke(e)),n<0?"":((t=t||0)<0&&(t=Li(t+e.length,0)),k(n)?qi(e,t):qi(e,t,t+n))}));function Hi(e,t){return ji(e,0,t)}function Ki(e,t,n){var i,r=t.length,o=function(e,t){var n;return t&&(t=Ot(Tt(t))).length>150&&(n=ji(t,0,150),Mi(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0)),n||t}(e,t);if(o.length!==r){for(var s=0,a=o;void 0!==n[a];)s++,a=ji(o,0,147)+(void 0,Ui(i="00"+s,i.length-3));o=a}return o}function Vi(e,t,n){var i;return void 0===n&&(n=1024),t&&(n=n||1024,(t=Ot(Tt(t))).length>n&&(i=ji(t,0,n),Mi(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),i||t}function Wi(e,t){return Gi(e,t,2048,66)}function zi(e,t){var n;return t&&t.length>32768&&(n=ji(t,0,32768),Mi(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function Bi(e,t){if(t){var n={};z(t,(function(t,i){if(A(i)&&vn())try{i=yn().stringify(i)}catch(t){Mi(e,2,49,"custom property is not valid",{exception:t},!0)}i=Vi(e,i,8192),t=Ki(e,t,n),n[t]=i})),t=n}return t}function $i(e,t){if(t){var n={};z(t,(function(t,i){t=Ki(e,t,n),n[t]=i})),t=n}return t}function Gi(e,t,n,i){var r;return t&&(t=Ot(Tt(t))).length>n&&(r=ji(t,0,n),Mi(e,2,i,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),r||t}var Ji=function(){function e(e,t,n,i){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var r=this;r.ver=2,r.name=Vi(e,t)||_t,r.properties=Bi(e,n),r.measurements=$i(e,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),Yi=function(){function e(e,t,n,i,r){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var o=this;o.ver=2,t=t||_t,o.message=zi(e,t),o.properties=Bi(e,i),o.measurements=$i(e,r),n&&(o.severityLevel=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}();function Xi(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,i=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,i=i.length<2?"0"+i:i,(o>0?o+".":"")+(r=r.length<2?"0"+r:r)+":"+i+":"+n+"."+t}var Zi=function(){function e(e,t,n,i,r,o,s){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var a=this;a.ver=2,a.id=function(e,t){return t?Gi(e,t,128,69).toString():t}(e,s),a.url=Wi(e,n),a.name=Vi(e,t)||_t,isNaN(i)||(a.duration=Xi(i)),a.properties=Bi(e,r),a.measurements=$i(e,o)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),Qi=function(){function e(e,t,n,i,r,o,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 a=this;a.ver=2,a.url=Wi(e,n),a.name=Vi(e,t)||_t,a.properties=Bi(e,r),a.measurements=$i(e,o),s&&(a.domProcessing=s.domProcessing,a.duration=s.duration,a.networkConnect=s.networkConnect,a.perfTotal=s.perfTotal,a.receivedResponse=s.receivedResponse,a.sentRequest=s.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}(),er=((ce()||{}).Symbol,(ce()||{}).Reflect,Le||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])fn.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}),tr=function(e,t){return tr=dn.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},tr(e,t)},nr=wt("map",_);function ir(e,t){var n=e;return n&&!N(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=O(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function rr(e,t){var n=e;return e&&(n&&!N(n)&&(n=e.message||e.description||n),n&&!N(n)&&(n=ir(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===tn(n||"",t)&&(n=t+": "+n),n||""}function or(e){return e&&e.src&&N(e.src)&&e.obj&&F(e.obj)}function sr(e){var t=e||"";N(t)||(t=N(t.stack)?t.stack:""+t);var n=t.split("\n");return{src:t,obj:n}}function ar(e){var t=null;if(e)try{if(e.stack)t=sr(e.stack);else if(e.error&&e.error.stack)t=sr(e.error.stack);else if(e.exception&&e.exception.stack)t=sr(e.exception.stack);else if(or(e))t=e;else if(or(e.stackDetails))t=e.stackDetails;else if(window&&window.opera&&e.message)t=function(e){for(var t=[],n=e.split("\n"),i=0;i<n.length;i++){var r=n[i];n[i+1]&&(r+="@"+n[i+1],i++),t.push(r)}return{src:e,obj:t}}(e.message);else if(e.reason&&e.reason.stack)t=sr(e.reason.stack);else if(N(e))t=sr(e);else{var n=e.message||e.description||"";N(e.errorSrc)&&(n&&(n+="\n"),n+=" from "+e.errorSrc),n&&(t=sr(n))}}catch(e){t=sr(e)}return t||{src:"",obj:null}}function cr(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,200})\(/.exec(e.constructor.toString());t=n&&n.length>1?n[1]:""}catch(e){}return t}function ur(e){if(e)try{if(!N(e)){var t=cr(e),n=ir(e,!1);return n&&"{}"!==n||(e.error&&(t=cr(e=e.error)),n=ir(e,!0)),0!==tn(n,t)&&"String"!==t?t+":"+n:n}}catch(e){}return""+(e||"")}var lr=function(){function e(e,t,n,i,r,o){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,function(e){try{if(A(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(e){}return!1}(t)?(s.exceptions=t.exceptions||[],s.properties=t.properties,s.measurements=t.measurements,t.severityLevel&&(s.severityLevel=t.severityLevel),t.id&&(s.id=t.id),t.problemGroup&&(s.problemGroup=t.problemGroup),x(t.isManual)||(s.isManual=t.isManual)):(n||(n={}),s.exceptions=[new dr(e,t,n)],s.properties=Bi(e,n),s.measurements=$i(e,i),r&&(s.severityLevel=r),o&&(s.id=o))}return e.CreateAutoException=function(e,t,n,i,r,o,s,a){var c,u=cr(r||o||e);return(c={}).message=rr(e,u),c.url=t,c.lineNumber=n,c.columnNumber=i,c.error=ur(r||o||e),c.evt=ur(o||e),c.typeName=u,c.stackDetails=ar(s||r||o),c.errorSrc=a,c},e.CreateFromInterface=function(t,n,i,r){var o=n.exceptions&&nr(n.exceptions,(function(e){return dr.CreateFromInterface(t,e)}));return new e(t,er(er({},n),{exceptions:o}),i,r)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,i=t.properties,r=t.measurements,o=t.severityLevel,s=t.problemGroup,a=t.id,c=t.isManual,u=n instanceof Array&&nr(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"}).exceptions=u,e.severityLevel=o,e.properties=i,e.measurements=r,e.problemGroup=s,e.id=a,e.isManual=c,e},e.CreateSimpleException=function(e,t,n,i,r,o){var s;return{exceptions:[(s={},s.hasFullStack=!0,s.message=e,s.stack=r,s.typeName=t,s)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=ur,e}(),dr=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var i=this;if(function(e){try{if(A(e))return"hasFullStack"in e&&"typeName"in e}catch(e){}return!1}(t))i.typeName=t.typeName,i.message=t.message,i.stack=t.stack,i.parsedStack=t.parsedStack||[],i.hasFullStack=t.hasFullStack;else{var r=t,o=r&&r.evt;j(r)||(r=r.error||o||r),i.typeName=Vi(e,cr(r))||_t,i.message=zi(e,rr(t||r,i.typeName))||_t;var s=t.stackDetails||ar(t);i.parsedStack=function(e){var t,n=e.obj;if(n&&n.length>0){t=[];var i=0,r=0;if(jn(n,(function(e){var n=e.toString();if(fr.regex.test(n)){var o=new fr(n,i++);r+=o.sizeInBytes,t.push(o)}})),r>32768)for(var o=0,s=t.length-1,a=0,c=o,u=s;o<s;){if((a+=t[o].sizeInBytes+t[s].sizeInBytes)>32768){var l=u-c+1;t.splice(c,l);break}c=o,u=s,o++,s--}}return t}(s),F(i.parsedStack)&&nr(i.parsedStack,(function(t){return t.assembly=Vi(e,t.assembly)})),i.stack=function(e,t){var n;if(t){var i=""+t;i.length>32768&&(n=ji(i,0,32768),Mi(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}(e,function(e){var t="";return e&&(e.obj?jn(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(s)),i.hasFullStack=F(i.parsedStack)&&i.parsedStack.length>0,n&&(n.typeName=n.typeName||i.typeName)}}return e.prototype.toInterface=function(){var e,t=this,n=t.parsedStack instanceof Array&&nr(t.parsedStack,(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t.typeName,message:t.message,hasFullStack:t.hasFullStack,stack:t.stack}).parsedStack=n||void 0,e},e.CreateFromInterface=function(t,n){var i=n.parsedStack instanceof Array&&nr(n.parsedStack,(function(e){return fr.CreateFromInterface(e)}))||n.parsedStack;return new e(t,er(er({},n),{parsedStack:i}))},e}(),fr=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var i=this;if(i.sizeInBytes=0,"string"==typeof t){var r=t;i.level=n,i.method="<no_method>",i.assembly=Ot(r),i.fileName="",i.line=0;var o=r.match(e.regex);o&&o.length>=5&&(i.method=Ot(o[2])||i.method,i.fileName=Ot(o[4]),i.line=parseInt(o[5])||0)}else i.level=t.level,i.method=t.method,i.assembly=t.assembly,i.fileName=t.fileName,i.line=t.line,i.sizeInBytes=0;i.sizeInBytes+=i.method.length,i.sizeInBytes+=i.fileName.length,i.sizeInBytes+=i.assembly.length,i.sizeInBytes+=e.baseSize,i.sizeInBytes+=i.level.toString().length,i.sizeInBytes+=i.line.toString().length}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e.level,method:e.method,assembly:e.assembly,fileName:e.fileName,line:e.line}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}(),pr=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},gr=function(){function e(e,t,n,i,r,o,s,a,c){this.aiDataContract={ver:1,metrics:1,properties:0};var u=this;u.ver=2;var l=new pr;l.count=i>0?i:void 0,l.max=isNaN(o)||null===o?void 0:o,l.min=isNaN(r)||null===r?void 0:r,l.name=Vi(e,t)||_t,l.value=n,l.stdDev=isNaN(s)||null===s?void 0:s,u.metrics=[l],u.properties=Bi(e,a),u.measurements=$i(e,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),hr=le()||{},mr=0,vr=[null,null,null,null,null];function yr(e,t){var n=function(e,t){var n=null;if(e){var i=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=i&&i.length>2&&N(i[2])&&i[2].length>0&&(n=i[2]||"",t&&i.length>2)){var r=(i[1]||"").toLowerCase(),o=i[3]||"";("http"===r&&":80"===o||"https"===r&&":443"===o)&&(o=""),n+=o}}return n}(e,t)||"";if(n){var i=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=i&&i.length>3&&N(i[2])&&i[2].length>0)return i[2]+(i[3]||"")}return n}var Cr=[Ct+St,"https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"];function Sr(e){return-1!==Un(Cr,e.toLowerCase())}var _r=function(){function e(e,t,n,i,r,o,s,a,c,u,l,d){void 0===c&&(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 f=this;f.ver=2,f.id=t,f.duration=Xi(r),f.success=o,f.resultCode=s+"",f.type=Vi(e,c);var p=function(e,t,n,i){var r,o,s,a,c,u=i,l=i;if(t&&t.length>0){var d=(o=t,c=(a=vr)[s=mr],hr.createElement?a[s]||(c=a[s]=hr.createElement("a")):c={host:yr(o,!0)},c.href=o,++s>=a.length&&(s=0),mr=s,c);if(r=d.host,!u)if(null!=d.pathname){var f=0===d.pathname.length?"/":d.pathname;"/"!==f.charAt(0)&&(f="/"+f),l=d.pathname,u=Vi(e,n?n+" "+f:f)}else u=Vi(e,t)}else r=i,u=i;return{target:r,name:u,data:l}}(e,n,a,i);f.data=Wi(e,i)||p.data,f.target=Vi(e,p.target),u&&(f.target="".concat(f.target," | ").concat(u)),f.name=Vi(e,p.name),f.properties=Bi(e,l),f.measurements=$i(e,d)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),Tr=function(e){return Hn(e,1,0,je)},br=Tr({LocalStorage:0,SessionStorage:1}),Rr=void Tr({AI:0,AI_AND_W3C:1,W3C:2});function Dr(e){try{if(x(ce()))return null;var t=(new Date).toString(),n=ue(e===br.LocalStorage?"localStorage":"sessionStorage");n.setItem(t,t);var i=n.getItem(t)!==t;if(n.removeItem(t),!i)return n}catch(e){}return null}function wr(){return Er()?Dr(br.SessionStorage):null}function Er(e){return(e||void 0===Rr)&&(Rr=!!Dr(br.SessionStorage)),Rr}function Pr(e,t){var n=wr();if(null!==n)try{return n.getItem(t)}catch(t){Rr=!1,Mi(e,2,2,"Browser failed read of session storage. "+cn(t),{exception:Ke(t)})}return null}function kr(e,t,n){var i=wr();if(null!==i)try{return i.setItem(t,n),!0}catch(t){Rr=!1,Mi(e,2,4,"Browser failed write to session storage. "+cn(t),{exception:Ke(t)})}return!1}var xr=function(e){var t={};return z(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),je(t)}({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"]});function Ir(e,t,n){return!e&&x(e)?t:q(e)?e:"true"===Tt(e).toLowerCase()}function Nr(e,t,n){return{fb:n,isVal:e,v:t}}function Or(e,t){return{fb:t,set:Ir,v:!!e}}var Ar="",Fr=/-([a-z])/g,Mr=/([^\w\d_$])/g,Lr=/^(\d+[\w\d_$])/;function qr(e){var t=e;return t&&N(t)&&(t=(t=(t=t.replace(Fr,(function(e,t){return t.toUpperCase()}))).replace(Mr,"_")).replace(Lr,(function(e,t){return"_"+t}))),t}function jr(e,t){return!(!e||!t)&&-1!==tn(e,t)}function Ur(e){return j(e)?e.name:Ar}function Hr(e,t,n,i,r){e&&t&&n&&(!1!==r||k(e[t]))&&(e[t]=function(e,t){var n=null,i=null;return O(e)?n=e:i=e,function(){var e=arguments;if(n&&(i=n()),i)return i[t].apply(i,e)}}(n,i))}function Kr(e){return e&&Le&&(e=Be(Le({},e))),e}function Vr(e,t,n,i,r,o){var s=arguments,a=s[0]||{},c=s.length,u=!1,l=1;for(c>0&&q(a)&&(u=a,a=s[l]||{},l++),A(a)||(a={});l<c;l++){var d=s[l],f=F(d),p=A(d);for(var g in d){var h=f&&g in d||p&&W(d,g);if(h){var m=d[g],v=void 0;if(u&&m&&((v=F(m))||An(m))){var y=a[g];v?F(y)||(y=[]):An(y)||(y={}),m=Vr(u,y,m)}void 0!==m&&(a[g]=m)}}}return a}Object.getPrototypeOf;var Wr=n(5108),zr="JSON",Br="msie",$r="trident/",Gr="XMLHttpRequest",Jr=null,Yr=null,Xr=null,Zr=null;function Qr(e,t){var n=!1;if(e){try{if(!(n=t in e)){var i=e.prototype;i&&(n=t in i)}}catch(e){}if(!n)try{n=!k((new e)[t])}catch(e){}}return n}function eo(){return Boolean("object"==typeof JSON&&JSON||null!==ue(zr))}function to(){return eo()?JSON||ue(zr):null}function no(){return null===Zr&&(Zr=!!fe()&&Boolean(fe().sendBeacon)),Zr}function io(e){var t=!1;try{t=!!ue("fetch");var n=ue("Request");t&&e&&n&&(t=Qr(n,"keepalive"))}catch(e){}return t}function ro(){return null===Xr&&(Xr=typeof XDomainRequest!==ze)&&oo()&&(Xr=Xr&&!Qr(ue(Gr),"withCredentials")),Xr}function oo(){var e=!1;try{e=!!ue(Gr)}catch(e){}return e}var so=4294967296,ao=4294967295,co=123456789,uo=987654321,lo=!1,fo=co,po=uo;function go(){try{var e=2147483647&un();(t=(Math.random()*so^e)+e)<0&&(t>>>=0),fo=co+t&ao,po=uo-t&ao,lo=!0}catch(e){}var t}function ho(e){var t=0,n=ue("crypto")||ue("msCrypto");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&ao),0===t&&function(){var e=fe();if(e&&(e.userAgent!==Yr||null===Jr)){var t=((Yr=e.userAgent)||Ar).toLowerCase();Jr=jr(t,Br)||jr(t,$r)}return Jr}()&&(lo||go(),t=function(e){var t=((po=36969*(65535&po)+(po>>16)&ao)<<16)+(65535&(fo=18e3*(65535&fo)+(fo>>16)&ao))>>>0&ao|0;return t>>>=0}()&ao),0===t&&(t=Math.floor(so*Math.random()|0)),e||(t>>>=0),t}var mo="."+function(e){void 0===e&&(e=22);for(var t=ho()>>>0,n=0,i=Ar;i.length<e;)n++,i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(ho()<<2&4294967295|3&t)>>>0,n=0);return i}(6),vo=0;function yo(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function Co(e,t){return void 0===t&&(t=!1),qr(e+vo+++(t?".3.0.2":Ar)+mo)}function So(e){var t={id:Co("_aiData-"+(e||Ar)+".3.0.2"),accept:function(e){return yo(e)},get:function(e,n,i,r){var o=e[t.id];return o?o[qr(n)]:(r&&(o=function(e,t){var n=t[e.id];if(!n){n={};try{yo(t)&&J(t,e.id,{e:!1,v:n})}catch(e){}}return n}(t,e),o[qr(n)]=i),i)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}function _o(e){return e&&A(e)&&(e.isVal||e.fb||W(e,"v")||W(e,"mrg")||W(e,"ref")||e.set)}function To(e,t,n){var i,r=n.dfVal||I;if(t&&n.fb){var o=n.fb;F(o)||(o=[o]);for(var s=0;s<o.length;s++){var a=o[s],c=t[a];if(r(c)?i=c:e&&(r(c=e.cfg[a])&&(i=c),e.set(e.cfg,Tt(a),c)),r(i))break}}return!r(i)&&r(n.v)&&(i=n.v),i}function bo(e,t,n){var i,r=n;return n&&_o(n)&&(r=To(e,t,n)),r&&(_o(r)&&(r=bo(e,t,r)),F(r)?(i=[]).length=r.length:An(r)&&(i={}),i&&(z(r,(function(n,r){r&&_o(r)&&(r=bo(e,t,r)),i[n]=r})),r=i)),r}function Ro(e,t,n,i){var r,o,s,a,c,u,l,d,f=i;_o(f)?(r=f.isVal,o=f.set,u=f.rdOnly,l=f.blkVal,a=f.mrg,!(c=f.ref)&&k(c)&&(c=!!a),s=To(e,t,f)):s=i,l&&e.blkVal(t,n);var p=!0,g=t[n];!g&&x(g)||(d=g,p=!1,r&&d!==s&&!r(d)&&(d=s,p=!0),o&&(p=(d=o(d,s,t))===s)),p?d=s?bo(e,t,s):s:(An(d)||F(s))&&a&&s&&(An(s)||F(s))&&z(s,(function(t,n){Ro(e,d,t,n)})),e.set(t,n,d),c&&e.ref(t,n),u&&e.rdOnly(t,n)}var Do=ti("[[ai_dynCfg_1]]"),wo=ti("[[ai_blkDynCfg_1]]"),Eo=ti("[[ai_frcDynCfg_1]]");function Po(e){var t;return e&&(F(e)?(t=[]).length=e.length:An(e)&&(t={}),t)?(z(e,(function(e,n){t[e]=Po(n)})),t):e}function ko(e,t,n){var i=!1;return n&&!e[t.blkVal]&&((i=n[Eo])||n[wo]||(i=An(n)||F(n))),i}function xo(e){he("InvalidAccess:"+e)}var Io,No=["push","pop","shift","unshift","splice"],Oo=function(e,t,n,i){e&&e.throwInternal(3,108,"".concat(n," [").concat(t,"] failed - ")+Ke(i))};function Ao(e,t){var n=K(e,t);return n&&n.get}function Fo(e,t,n,i){if(t){var r=Ao(t,n);r&&r[e.prop]?t[n]=i:function(e,t,n,i){var r={n,h:[],trk:function(t){t&&t.fn&&(-1===Un(r.h,t)&&r.h.push(t),e.trk(t,r))},clr:function(e){var t=Un(r.h,e);-1!==t&&r.h.splice(t,1)}},o=!0,s=!1;function a(){o&&(s=s||ko(a,e,i),i&&!i[Do]&&s&&(i=Lo(e,i,n,"Converting")),o=!1);var t=e.act;return t&&r.trk(t),i}a[e.prop]={chng:function(){e.add(r)}},J(t,r.n,{g:a,s:function(c){if(i!==c){a[e.ro]&&!e.upd&&xo("["+n+"] is read-only:"+Ke(t)),o&&(s=s||ko(a,e,i),o=!1);var u=s&&a[e.rf];if(s)if(u){z(i,(function(e){i[e]=c?c[e]:void 0}));try{z(c,(function(t,n){Fo(e,i,t,n)})),c=i}catch(t){Oo((e.hdlr||{}).logger,n,"Assigning",t),s=!1}}else i&&i[Do]&&z(i,(function(t){var n=Ao(i,t);if(n){var r=n[e.prop];r&&r.chng()}}));if(c!==i){var l=c&&ko(a,e,c);!u&&l&&(c=Lo(e,c,n,"Converting")),i=c,s=l}e.add(r)}}})}(e,t,n,i)}return t}function Mo(e,t,n,i){if(t){var r=Ao(t,n),o=r&&!!r[e.prop],s=i&&i[0],a=i&&i[1],c=i&&i[2];if(!o){if(c)try{!function(e){if(e&&(An(e)||F(e)))try{e[wo]=!0}catch(e){}}(t)}catch(t){Oo((e.hdlr||{}).logger,n,"Blocking",t)}try{Fo(e,t,n,t[n]),r=Ao(t,n)}catch(t){Oo((e.hdlr||{}).logger,n,"State",t)}}s&&(r[e.rf]=s),a&&(r[e.ro]=a),c&&(r[e.blkVal]=!0)}return t}function Lo(e,t,n,i){try{z(t,(function(n,i){Fo(e,t,n,i)})),t[Do]||(G(t,Do,{get:function(){return e.hdlr}}),function(e,t,n){F(t)&&jn(No,(function(i){var r=t[i];t[i]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=r.apply(this,i);return Lo(e,t,n,"Patching"),s}}))}(e,t,n))}catch(t){Oo((e.hdlr||{}).logger,n,i,t)}return t}var qo="]]";function jo(e,t,n){var i,r=function(e){if(e){var t=e[Do]||e;if(t.cfg&&(t.cfg===e||t.cfg[Do]===t))return t}return null}(t);if(r)return r;var o,s=Co("dyncfg",!0),a=t&&!1!==n?t:Po(t),c=((i={uid:null,cfg:a}).logger=e,i.notify=function(){o.notify()},i.set=function(t,n,i){try{t=Fo(o,t,n,i)}catch(t){Oo(e,n,"Setting value",t)}return t[n]},i.setDf=function(e,t){return t&&z(t,(function(t,n){Ro(c,e,t,n)})),e},i.watch=function(e){return function(e,t){var n={fn:t,rm:function(){n.fn=null,e=null,t=null}};return e.use(n,t),n}(o,e)},i.ref=function(e,t){var n;return Mo(o,e,t,(n={},n[0]=!0,n))[t]},i.rdOnly=function(e,t){var n;return Mo(o,e,t,(n={},n[1]=!0,n))[t]},i.blkVal=function(e,t){var n;return Mo(o,e,t,(n={},n[2]=!0,n))[t]},i._block=function(e,t){o.use(null,(function(n){var i=o.upd;try{k(t)||(o.upd=t),e(n)}finally{o.upd=i}}))},i);return J(c,"uid",{c:!1,e:!1,w:!1,v:s}),Lo(o=function(e){var t,n,i=ei("[[ai_get"+e.uid+qo),r=ei("[[ai_ro"+e.uid+qo),o=ei("[[ai_rf"+e.uid+qo),s=ei("[[ai_blkVal"+e.uid+qo),a=ei("[[ai_dtl"+e.uid+qo),c=null,u=null;function l(t,i){var r=n.act;try{n.act=t,t&&t[a]&&(jn(t[a],(function(e){e.clr(t)})),t[a]=[]),i({cfg:e.cfg,set:e.set.bind(e),setDf:e.setDf.bind(e),ref:e.ref.bind(e),rdOnly:e.rdOnly.bind(e)})}catch(t){var o=e.logger;throw o&&o.throwInternal(1,107,Ke(t)),t}finally{n.act=r||null}}function d(){if(c){var e=c;c=null,u&&u.cancel(),u=null;var t=[];if(jn(e,(function(e){if(e&&(e[a]&&(jn(e[a],(function(t){t.clr(e)})),e[a]=null),e.fn))try{l(e,e.fn)}catch(e){t.push(e)}})),c)try{d()}catch(e){t.push(e)}t.length>0&&function(e,t){Io||(Io=bi("AggregationError",(function(e,t){t.length>1&&(e.errors=t[1])})));var n="Watcher error(s): ";throw jn(t,(function(e,t){n+="\n".concat(t," > ").concat(Ke(e))})),new Io(n,t||[])}(0,t)}}return(t={prop:i,ro:r,rf:o}).blkVal=s,t.hdlr=e,t.add=function(e){if(e&&e.h.length>0){c||(c=[]),u||(u=yi((function(){u=null,d()}),0));for(var t=0;t<e.h.length;t++){var n=e.h[t];n&&-1===Un(c,n)&&c.push(n)}}},t.notify=d,t.use=l,t.trk=function(e,t){if(e){var n=e[a]=e[a]||[];-1===Un(n,t)&&n.push(t)}},n=t}(c),a,"config","Creating"),c}function Uo(e,t,n,i){var r=jo(n,e||{},i);return t&&r.setDf(r.cfg,t),r}function Ho(e,t,n){var i=e[Do]||e;return!i.cfg||i.cfg!==e&&i.cfg[Do]!==i?(function(e,t){e?(e.warnToConsole(t),e.throwInternal(2,108,t)):xo(t)}(n,"Not dynamic - "+Ke(e)),Uo(e,null,n).watch(t)):i.watch(t)}var Ko,Vo=null;var Wo="warnToConsole",zo={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},Bo=((Ko={})[0]=null,Ko[1]="errorToConsole",Ko[2]=Wo,Ko[3]="debugToConsole",Ko);function $o(e){return e?'"'+e.replace(/\"/g,Ar)+'"':Ar}function Go(e,t){var n=typeof Wr!==ze?Wr:ue("console");if(n){var i="log";n[e]&&(i=e),O(n[i])&&n[i](t)}}var Jo=function(){function e(e,t,n,i){void 0===n&&(n=!1);var r=this;r.messageId=e,r.message=(n?"AI: ":"AI (Internal): ")+e;var o=Ar;eo()&&(o=to().stringify(i));var s=(t?" message:"+$o(t):Ar)+(i?" props:"+$o(o):Ar);r.message+=s}return e.dataType="MessageData",e}();function Yo(e,t){return(e||{}).logger||new Xo(t)}var Xo=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,i,r,o,s,a=0,c={};mt(e,this,(function(e){function u(t,n){if(!(a>=r)){var o=!0,s="AITR_"+n.messageId;if(c[s]?o=!1:c[s]=!0,o&&(t<=i&&(e.queue.push(n),a++,l(1===t?"error":"warn",n)),a===r)){var u="Internal events throttle limit per PageView reached for this app.",d=new Jo(23,u,!1);e.queue.push(d),1===t?e.errorToConsole(u):e.warnToConsole(u)}}}function l(e,n){var i=function(e){var t,n=Vo;return n||!0===e.disableDbgExt||(n=Vo||((t=ue("Microsoft"))&&(Vo=t.ApplicationInsights),Vo)),n?n.ChromeDbgExt:null}(t||{});i&&i.diagLog&&i.diagLog(e,n)}s=function(t){return Ho(Uo(t,zo,e).cfg,(function(e){var t=e.cfg;n=t.loggingLevelConsole,i=t.loggingLevelTelemetry,r=t.maxMessageLimit,o=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e.throwInternal=function(t,i,r,s,a){void 0===a&&(a=!1);var d=new Jo(i,r,a,s);if(o)throw Ke(d);var f=Bo[t]||Wo;if(k(d.message))l("throw"+(1===t?"Critical":"Warning"),d);else{if(a){var p=+d.messageId;!c[p]&&n>=t&&(e[f](d.message),c[p]=!0)}else n>=t&&e[f](d.message);u(t,d)}},e.debugToConsole=function(e){Go("debug",e),l("warning",e)},e.warnToConsole=function(e){Go("warn",e),l("warning",e)},e.errorToConsole=function(e){Go("error",e),l("error",e)},e.resetInternalMessageCount=function(){a=0,c={}},e.logInternalMessage=u,e.unload=function(e){s&&s.rm(),s=null}}))}return e.__ieDyn=1,e}();function Zo(e){return e||new Xo}function Qo(e,t,n,i,r,o){void 0===o&&(o=!1),Zo(e).throwInternal(t,n,i,r,o)}function es(e,t){Zo(e).warnToConsole(t)}var ts="events",ns=(Co("aiEvtPageHide"),Co("aiEvtPageShow"),/\.[\.]+/g),is=/[\.]+$/,rs=1,os=So("events"),ss=/^([^.]*)(?:\.(.+)|)/;function as(e){return e&&e.replace?e.replace(/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Ar):e}function cs(e,t){var n;if(t){var i=Ar;F(t)?(i=Ar,jn(t,(function(e){(e=as(e))&&("."!==e[0]&&(e="."+e),i+=e)}))):i=as(t),i&&("."!==i[0]&&(i="."+i),e=(e||Ar)+i)}var r=ss.exec(e||Ar)||[];return(n={}).type=r[1],n.ns=(r[2]||Ar).replace(ns,".").replace(is,Ar).split(".").sort().join("."),n}function us(e,t,n){void 0===n&&(n=!0);var i=os.get(e,ts,{},n),r=i[t];return r||(r=i[t]=[]),r}function ls(e,t,n,i){e&&t&&t.type&&(e.removeEventListener?e.removeEventListener(t.type,n,i):e.detachEvent&&e.detachEvent("on"+t.type,n))}function ds(e,t,n,i){for(var r=t.length;r--;){var o=t[r];o&&(n.ns&&n.ns!==o.evtName.ns||i&&!i(o)||(ls(e,o.evtName,o.handler,o.capture),t.splice(r,1)))}}function fs(e,t){return t?cs("xx",F(t)?[e].concat(t):[e,t]).ns.split("."):e}function ps(e,t,n,i,r){var o;void 0===r&&(r=!1);var s=!1;if(e)try{var a=cs(t,i);if(s=function(e,t,n,i){var r=!1;return e&&t&&t.type&&n&&(e.addEventListener?(e.addEventListener(t.type,n,i),r=!0):e.attachEvent&&(e.attachEvent("on"+t.type,n),r=!0)),r}(e,a,n,r),s&&os.accept(e)){var c=((o={guid:rs++,evtName:a}).handler=n,o.capture=r,o);us(e,a.type).push(c)}}catch(e){}return s}var gs=function(){function e(t,n,i){var r,o=this;o.start=un(),o.name=t,o.isAsync=i,o.isChildEvt=function(){return!1},O(n)&&J(o,"payload",{g:function(){return!r&&O(n)&&(r=n(),n=null),r}}),o.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?o[t]:(o.ctx||{})[t]:null},o.setCtx=function(t,n){t&&(t===e.ParentContextKey?(o[t]||(o.isChildEvt=function(){return!0}),o[t]=n):t===e.ChildrenContextKey?o[t]=n:(o.ctx=o.ctx||{})[t]=n)},o.complete=function(){var t=0,n=o.getCtx(e.ChildrenContextKey);if(F(n))for(var i=0;i<n.length;i++){var r=n[i];r&&(t+=r.time)}o.time=un()-o.start,o.exTime=o.time-t,o.complete=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),hs="CoreUtils.doPerf",ms=So("plugin");function vs(e){return ms.get(e,"state",{},!0)}var ys,Cs,Ss=0;function _s(e,t,n,i){var r=null,o=[];t||(t=Uo({},null,n.logger)),null!==i&&(r=i?function(e,t,n){for(;e;){if(e.getPlugin()===n)return e;e=e.getNext()}return Ds([n],t.config||{},t)}(e,n,i):e);var s={_next:function(){var e=r;if(r=e?e.getNext():null,!e){var t=o;t&&t.length>0&&(jn(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){Qo(n.logger,2,73,"Unexpected Exception during onComplete - "+Ke(e))}})),o=[])}return e},ctx:{core:function(){return n},diagLog:function(){return Yo(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var i=a(e,!0);return n&&z(n,(function(e,n){if(x(i[e])){var r=t.cfg[e];!r&&x(r)||(i[e]=r)}Ro(t,i,e,n)})),t.setDf(i,n)},getConfig:function(e,n,i){void 0===i&&(i=!1);var r,o=a(e,!1),s=t.cfg;return!o||!o[n]&&x(o[n])?!s[n]&&x(s[n])||(r=s[n]):r=o[n],r||!x(r)?r:i},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(var t;t=s._next();){var n=t.getPlugin();n&&e(n)}},onComplete:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e&&o.push({func:e,self:k(t)?s.ctx:t,args:n})}}};function a(e,n){var i=null,r=t.cfg;if(r&&e){var o=r.extensionConfig;!o&&n&&(o={}),r.extensionConfig=o,(o=t.ref(r,"extensionConfig"))&&(!(i=o[e])&&n&&(i={}),o[e]=i,i=t.ref(o,e))}return i}return s}function Ts(e,t,n,i){var r=Uo(t),o=_s(e,r,n,i),s=o.ctx;return s.processNext=function(e){var t=o._next();return t&&t.processTelemetry(e,s),!t},s.createNew=function(e,t){return void 0===e&&(e=null),F(e)&&(e=Ds(e,r.cfg,n,t)),Ts(e||s.getNext(),r.cfg,n,t)},s}function bs(e,t,n){var i=Uo(t.config),r=_s(e,i,t,n),o=r.ctx;return o.processNext=function(e){var t=r._next();return t&&t.unload(o,e),!t},o.createNew=function(e,n){return void 0===e&&(e=null),F(e)&&(e=Ds(e,i.cfg,t,n)),bs(e||o.getNext(),t,n)},o}function Rs(e,t,n){var i=Uo(t.config),r=_s(e,i,t,n).ctx;return r.processNext=function(e){return r.iterate((function(t){O(t.update)&&t.update(r,e)}))},r.createNew=function(e,n){return void 0===e&&(e=null),F(e)&&(e=Ds(e,i.cfg,t,n)),Rs(e||r.getNext(),t,n)},r}function Ds(e,t,n,i){var r=null,o=!i;if(F(e)&&e.length>0){var s=null;jn(e,(function(e){if(o||i!==e||(o=!0),o&&e&&O(e.processTelemetry)){var a=function(e,t,n){var i,r=null,o=O(e.processTelemetry),s=O(e.setNextPlugin),a={getPlugin:function(){return e},getNext:function(){return r},processTelemetry:function(i,u){c(u=u||function(){var i;return e&&O(e._getTelCtx)&&(i=e._getTelCtx()),i||(i=Ts(a,t,n)),i}(),(function(t){if(!e||!o)return!1;var n=vs(e);return!n.teardown&&!n.disabled&&(s&&e.setNextPlugin(r),e.processTelemetry(i,t),!0)}),"processTelemetry",(function(){return{item:i}}),!i.sync)||u.processNext(i)},unload:function(t,n){c(t,(function(){var i=!1;if(e){var r=vs(e),o=e.core||r.core;!e||o&&o!==t.core()||r.teardown||(r.core=null,r.teardown=!0,r.isInitialized=!1,e.teardown&&!0===e.teardown(t,n)&&(i=!0))}return i}),"unload",(function(){}),n.isAsync)||t.processNext(n)},update:function(t,n){c(t,(function(){var i=!1;if(e){var r=vs(e),o=e.core||r.core;!e||o&&o!==t.core()||r.teardown||e.update&&!0===e.update(t,n)&&(i=!0)}return i}),"update",(function(){}),!1)||t.processNext(n)},_id:i=e?e.identifier+"-"+e.priority+"-"+Ss++:"Unknown-0-"+Ss++,_setNext:function(e){r=e}};function c(t,n,o,s,a){var c=!1,u=e?e.identifier:"TelemetryPluginChain",l=t._hasRun;return l||(l=t._hasRun={}),t.setNext(r),e&&function(e,t,n,i,r){if(e){var s=e;if(s.getPerfMgr&&(s=s.getPerfMgr()),s){var a=void 0,c=s.getCtx(hs);try{if(a=s.create(u+":"+o,i,r)){if(c&&a.setCtx&&(a.setCtx(gs.ParentContextKey,c),c.getCtx&&c.setCtx)){var l=c.getCtx(gs.ChildrenContextKey);l||(l=[],c.setCtx(gs.ChildrenContextKey,l)),l.push(a)}return s.setCtx(hs,a),n()}}catch(e){a&&a.setCtx&&a.setCtx("exception",e)}finally{a&&s.fire(a),s.setCtx(hs,c)}}}n()}(t.core(),0,(function(){l[i]=!0;try{var e=r?r._id:Ar;e&&(l[e]=!1),c=n(t)}catch(e){var s=!r||l[r._id];s&&(c=!0),r&&s||Qo(t.diagLog(),1,73,"Plugin ["+u+"] failed during "+o+" - "+Ke(e)+", run flags: "+Ke(l))}}),s,a),c}return Ue(a)}(e,t,n);r||(r=a),s&&s._setNext(a),s=a}}))}return i&&!r?Ds([i],t,n):r}function ws(e){return!!e&&O(e.next)}function Es(e,t){return!k(t)&&e&&(F(t)?mi(e.push,e,t):ws(t)||!function(e){return e===o||!I(e)}(n=t)&&O(n[Qn(3)])?function(e,t,n){if(e&&(ws(e)||(!ys&&(ys=X((function(){return Qn(3)}))),e=e[ys.v]?e[ys.v]():null),ws(e))){var i=void 0,r=void 0;try{for(var o=0;!(r=e.next()).done&&-1!==t.call(e,r.value,o,e);)o++}catch(t){i={e:t},e.throw&&(r=null,e.throw(i))}finally{try{r&&!r.done&&e.return&&e.return(r)}finally{if(i)throw i.e}}}}(t,(function(t){e.push(t)})):e.push(t)),e;var n}var Ps=((Cs={}).extensionConfig={isVal:function(e){return!x(e)},v:{}},Cs),ks=function(){function e(){var t,n,i,r,o,s=this;function a(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||Ts(null,{},s.core);t=i&&i.getPlugin?r.createNew(null,i.getPlugin):r.createNew(null,i)}return t}function c(e,t,r){Uo(e,Ps,Yo(t)),!r&&t&&(r=t.getProcessTelContext().getNext());var o=i;i&&i.getPlugin&&(o=i.getPlugin()),s.core=t,n=Ts(r,e,t,o)}function u(){var e,a;t=!1,s.core=null,n=null,i=null,e=[],o={run:function(t){var n=e;e=[],jn(n,(function(e){try{(e.rm||e.remove).call(e)}catch(e){Qo(t,2,73,"Unloading:"+Ke(e))}}))},add:function(t){t&&Es(e,t)}},a=[],r={add:function(e){e&&a.push(e)},run:function(e,t){jn(a,(function(n){try{n(e,t)}catch(t){Qo(e.diagLog(),2,73,"Unexpected error calling unload handler - "+Ke(t))}})),a=[]}}}u(),mt(e,s,(function(e){e.initialize=function(e,n,i,r){c(e,n,r),t=!0},e.teardown=function(t,n){var s,a=e.core;if(a&&(!t||a===t.core())){var c,l=!1,d=t||bs(null,a,i&&i.getPlugin?i.getPlugin():i),f=n||((s={reason:0}).isAsync=!1,s);return e._doTeardown&&!0===e._doTeardown(d,f,p)?c=!0:p(),c}function p(){l||(l=!0,r.run(d,n),o.run(d.diagLog()),!0===c&&d.processNext(f),u())}},e.update=function(t,n){var r=e.core;if(r&&(!t||r===t.core())){var o,s=!1,a=t||Rs(null,r,i&&i.getPlugin?i.getPlugin():i),u=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(a,u,l)?o=!0:l(),o}function l(){s||(s=!0,c(a.getCfg(),a.core(),a.getNext()))}},Hr(e,"_addUnloadCb",(function(){return r}),"add"),Hr(e,"_addHook",(function(){return o}),"add"),J(e,"_unloadHooks",{g:function(){return o}})})),s.diagLog=function(e){return a(e).diagLog()},s.isInitialized=function(){return t},s.setInitialized=function(e){t=e},s.setNextPlugin=function(e){i=e},s.processNext=function(e,t){t?t.processNext(e):i&&O(i.processTelemetry)&&i.processTelemetry(e,null)},s._getTelCtx=a}return e.__ieDyn=1,e}();function xs(e,t){return Is(e,(function(e){t&&t({value:e,rejected:!1})}),(function(e){t&&t({rejected:!0,reason:e})}))}function Is(e,t,n,i){var r=e;return U(e)?(t||n)&&(r=e.then(t,n)):t&&t(e),i&&(r=function(e,t){var n=e;return t&&(U(e)?n=e.finally?e.finally(t):e.then((function(e){return t(),e}),(function(e){throw t(),e})):t()),n}(r,i)),r}var Ns,Os=["pending","resolving","resolved","rejected"];function As(e,t,n,i){var r=le();!Ns&&(Ns=Z((function(){var e;return r&&r.createEvent&&(e=r.createEvent("Event")),!!e&&e.initEvent}),null));var o=Ns.v?r.createEvent("Event"):i?new Event(t):{};if(n&&n(o),Ns.v&&o.initEvent(t,!1,!0),o&&e.dispatchEvent)e.dispatchEvent(o);else{var s=e["on"+t];if(s)s(o);else{var a=ue("console");a&&(a.error||a.log)(t,Ke(o))}}}var Fs,Ms=n(4155),Ls="unhandledRejection",qs=Ls.toLowerCase(),js=[],Us=0;function Hs(e){return O(e)?e.toString():Ke(e)}function Ks(e){return function(t){var n=hi(arguments,1);return e((function(e,n){try{var i=[],r=1;jn(t,(function(t,o){t&&(r++,Is(t,(function(t){i[o]=t,0==--r&&e(i)}),n))})),0==--r&&e(i)}catch(e){n(e)}}),n)}}function Vs(e){return function(t){var n=hi(arguments,1);return U(t)?t:e((function(e){e(t)}),n)}}function Ws(e){return function(t){var n=hi(arguments,1);return e((function(e,n){n(t)}),n)}}var zs,Bs;function $s(e,t){return function(e,t,n){var i,r,o=hi(arguments,3),s=0,a=!1,c=[],u=Us++,l=(js.length>0&&js[js.length-1],!1),d=null;!Fs&&(Fs=ae("PromiseRejectionEvent"));var f=function(t,n){try{return js.push(u),l=!0,d&&d.cancel(),d=null,e((function(e,r){c.push((function(){try{var o=2===s?t:n,a=k(o)?i:O(o)?o(i):o;U(a)?a.then(e,r):o?e(a):3===s?r(a):e(a)}catch(e){r(e)}})),a&&m()}),o)}finally{js.pop()}},p=function(e){return f(void 0,e)},g=function(e){var t=e,n=e;return O(e)&&(t=function(t){return e&&e(),t},n=function(t){throw e&&e(),t}),f(t,n)},h=function(){return Os[s]},m=function(){if(c.length>0){var e=c.slice();c=[],l=!0,t(e),d&&d.cancel(),d=null}},v=function(e,t){return function(n){if(s===t){if(2===e&&U(n))return s=1,void n.then(v(2,1),v(3,1));s=e,a=!0,i=n,m(),l||3!==e||d||(d=yi(y,10))}}},y=function(){l||(pe()?Ms.emit(Ls,i,r):As(de()||ce(),qs,(function(e){return J(e,"promise",{g:function(){return r}}),e.reason=i,e}),!!Fs.v))};G(r={then:f,catch:p,finally:g},"state",{get:h}),Xn()&&(r[Qn(11)]="IPromise");var C=function(){return"IPromise "+h()+(a?" - "+Hs(i):"")};return r.toString=C,function(){O(n)||he("Promise: executor is not a function - "+Hs(n));var e=v(3,0);try{n.call(r,v(2,0),e)}catch(t){e(t)}}(),r}($s,function(e){var t=L(e)?e:0;return function(e){yi((function(){!function(e){jn(e,(function(e){try{e()}catch(e){}}))}(e)}),t)}}(t),e,t)}function Gs(e,t){!zs&&(zs=ae("Promise"));var n=zs.v;if(!n)return $s(e);O(e)||he("Promise: executor is not a function - "+Ke(e));var i=0,r=new n((function(t,n){e((function(e){i=2,t(e)}),(function(e){i=3,n(e)}))}));return G(r,"state",{get:function(){return Os[i]}}),r}function Js(e,t){return!Bs&&(Bs=X((function(){return Gs}))),Bs.v.call(this,e,t)}Ks($s),Vs($s),Ws($s),Ks(Gs),Vs(Gs),Ws(Gs);var Ys=Ks(Js);function Xs(e){var t="ai."+e+".";return function(e){return t+e}}Vs(Js),Ws(Js);var Zs,Qs=Xs("application"),ea=Xs("device"),ta=Xs("location"),na=Xs("operation"),ia=Xs("session"),ra=Xs("user"),oa=Xs("cloud"),sa=Xs("internal"),aa=function(e){function t(){return e.call(this)||this}return function(e,t){function n(){this.constructor=e}"function"!=typeof t&&null!==t&&he("Class extends value "+String(t)+" is not a constructor or null"),tr(e,t),e.prototype=null===t?We(t):(n.prototype=t.prototype,new n)}(t,e),t}((Zs={applicationVersion:Qs("ver"),applicationBuild:Qs("build"),applicationTypeId:Qs("typeId"),applicationId:Qs("applicationId"),applicationLayer:Qs("layer"),deviceId:ea("id"),deviceIp:ea("ip"),deviceLanguage:ea("language"),deviceLocale:ea("locale"),deviceModel:ea("model"),deviceFriendlyName:ea("friendlyName"),deviceNetwork:ea("network"),deviceNetworkName:ea("networkName"),deviceOEMName:ea("oemName"),deviceOS:ea("os"),deviceOSVersion:ea("osVersion"),deviceRoleInstance:ea("roleInstance"),deviceRoleName:ea("roleName"),deviceScreenResolution:ea("screenResolution"),deviceType:ea("type"),deviceMachineName:ea("machineName"),deviceVMName:ea("vmName"),deviceBrowser:ea("browser"),deviceBrowserVersion:ea("browserVersion"),locationIp:ta("ip"),locationCountry:ta("country"),locationProvince:ta("province"),locationCity:ta("city"),operationId:na("id"),operationName:na("name"),operationParentId:na("parentId"),operationRootId:na("rootId"),operationSyntheticSource:na("syntheticSource"),operationCorrelationVector:na("correlationVector"),sessionId:ia("id"),sessionIsFirst:ia("isFirst"),sessionIsNew:ia("isNew"),userAccountAcquisitionDate:ra("accountAcquisitionDate"),userAccountId:ra("accountId"),userAgent:ra("userAgent"),userId:ra("id"),userStoreRegion:ra("storeRegion"),userAuthUserId:ra("authUserId"),userAnonymousUserAcquisitionDate:ra("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:ra("authUserAcquisitionDate"),cloudName:oa("name"),cloudRole:oa("role"),cloudRoleVer:oa("roleVer"),cloudRoleInstance:oa("roleInstance"),cloudEnvironment:oa("environment"),cloudLocation:oa("location"),cloudDeploymentUnit:oa("deploymentUnit"),internalNodeName:sa("nodeName"),internalSdkVersion:sa("sdkVersion"),internalAgentVersion:sa("agentVersion"),internalSnippet:sa("snippet"),internalSdkSrc:sa("sdkSrc")},function(){var e=this;Zs&&z(Zs,(function(t,n){e[t]=n}))})),ca=new aa,ua=function(e,t,n){var i,r=this,o=this;o.ver=1,o.sampleRate=100,o.tags={},o.name=Vi(e,n)||_t,o.data=t,o.time=(i=new Date)&&i.toISOString()||"",o.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return 100===r.sampleRate?4:1},tags:1,data:1}},la=function(e,t){this.aiDataContract={baseType:1,baseData:1},this.baseType=e,this.baseData=t},da="true";function fa(e,t,n){return function(e,t,n,i,r){var o=n;return e&&((o=e[t])===n||i&&!i(n)||(o=n,e[t]=o)),o}(e,t,n,H)}function pa(e,t,n){x(e)||z(e,(function(e,i){L(i)?n[e]=i:N(i)?t[e]=i:eo()&&(t[e]=to().stringify(i))}))}function ga(e,t){x(e)||z(e,(function(n,i){e[n]=i||t}))}function ha(e,t,n,i){var r,o=new ua(e,i,t);fa(o,"sampleRate",n.sampleRate),(n.baseData||{}).startTime&&(o.time=(r=n.baseData.startTime)&&r.toISOString()||""),o.iKey=n.iKey;var s=n.iKey.replace(/-/g,"");return o.name=o.name.replace("{0}",s),function(e,t,n){var i=n.tags=n.tags||{},r=t.ext=t.ext||{},o=t.tags=t.tags||[],s=r.user;s&&(fa(i,ca.userAuthUserId,s.authId),fa(i,ca.userId,s.id||s.localId));var a=r.app;a&&fa(i,ca.sessionId,a.sesId);var c=r.device;c&&(fa(i,ca.deviceId,c.id||c.localId),fa(i,ca.deviceType,c.deviceClass),fa(i,ca.deviceIp,c.ip),fa(i,ca.deviceModel,c.model),fa(i,ca.deviceType,c.deviceType));var u=t.ext.web;if(u){fa(i,ca.deviceLanguage,u.browserLang),fa(i,ca.deviceBrowserVersion,u.browserVer),fa(i,ca.deviceBrowser,u.browser);var l=n.data=n.data||{},d=l.baseData=l.baseData||{},f=d.properties=d.properties||{};fa(f,"domain",u.domain),fa(f,"isManual",u.isManual?da:null),fa(f,"screenRes",u.screenRes),fa(f,"userConsent",u.userConsent?da:null)}var p=r.os;p&&fa(i,ca.deviceOS,p.name);var g=r.trace;g&&(fa(i,ca.operationParentId,g.parentID),fa(i,ca.operationName,Vi(e,g.name)),fa(i,ca.operationId,g.traceID));for(var h={},m=o.length-1;m>=0;m--)z(o[m],(function(e,t){h[e]=t})),o.splice(m,1);z(o,(function(e,t){h[e]=t}));var v=Ge(Ge({},i),h);v[ca.internalSdkVersion]||(v[ca.internalSdkVersion]=Vi(e,"javascript:".concat(va.Version),64)),n.tags=Kr(v)}(e,n,o),n.tags=n.tags||[],Kr(o)}function ma(e,t){x(t.baseData)&&Qo(e,1,46,"telemetryItem.baseData cannot be null.")}var va={Version:"3.0.2"};function ya(e,t,n){ma(e,t);var i={},r={};t.baseType!==Ji.dataType&&(i.baseTypeSource=t.baseType),t.baseType===Ji.dataType?(i=t.baseData.properties||{},r=t.baseData.measurements||{}):t.baseData&&pa(t.baseData,i,r),pa(t.data,i,r),x(n)||ga(i,n);var o=t.baseData.name,s=new Ji(e,o,i,r),a=new la(Ji.dataType,s);return ha(e,Ji.envelopeType,t,a)}function Ca(e,t){!function(e,t,n,i,r){if(void 0===r&&(r=!1),e)try{var o=cs(t,i),s=!1;!function(e,t,n){if(t.type)ds(e,us(e,t.type),t,n);else{var i=os.get(e,ts,{});z(i,(function(i,r){ds(e,r,t,n)})),0===qe(i).length&&os.kill(e,ts)}}(e,o,(function(e){return!((!o.ns||n)&&e.handler!==n||(s=!0,0))})),s||ls(e,o,n,r)}catch(e){}}(e,null,null,t)}var Sa,_a,Ta=function(){function e(t,n){var i=[],r=!1;this._get=function(){return i},this._set=function(e){return i=e},mt(e,this,(function(e){e.enqueue=function(o){e.count()>=n.eventsLimitInMem?r||(Qo(t,2,105,"Maximum in-memory buffer size reached: "+e.count(),!0),r=!0):i.push(o)},e.count=function(){return i.length},e.size=function(){for(var e=i.length,t=0;t<i.length;t++)e+=i[t].length;return n.emitLineDelimitedJson||(e+=2),e},e.clear=function(){i=[],r=!1},e.getItems=function(){return i.slice(0)},e.batchPayloads=function(e){return e&&e.length>0?n.emitLineDelimitedJson?e.join("\n"):"["+e.join(",")+"]":null},e.createNew=function(e,n,r){var o=i.slice(0);e=e||t,n=n||{};var s=r?new Ra(e,n):new ba(e,n);return jn(o,(function(e){s.enqueue(e)})),s}}))}return e.__ieDyn=1,e}(),ba=function(e){function t(n,i){var r=e.call(this,n,i)||this;return mt(t,r,(function(e,t){e.markAsSent=function(e){t.clear()},e.clearSent=function(e){}})),r}return Ye(t,e),t.__ieDyn=1,t}(Ta),Ra=function(e){function t(n,i){var r=e.call(this,n,i)||this,o=!1,s=null==i?void 0:i.namePrefix,a=i.bufferOverride||{getItem:Pr,setItem:kr},c=a.getItem,u=a.setItem;return mt(t,r,(function(e,i){var r=f(t.BUFFER_KEY),a=f(t.SENT_BUFFER_KEY),l=e._set(r.concat(a));function d(e,t){var n=[];return jn(t,(function(t){O(t)||-1!==Un(e,t)||n.push(t)})),n}function f(e){var t=e;try{var i=c(n,t=s?s+"_"+t:t);if(i){var r=to().parse(i);if(N(r)&&(r=to().parse(r)),r&&F(r))return r}}catch(e){Qo(n,1,42," storage key: "+t+", "+Ur(e),{exception:Ke(e)})}return[]}function p(e,t){var i=e;try{i=s?s+"_"+i:i;var r=JSON.stringify(t);u(n,i,r)}catch(e){u(n,i,JSON.stringify([])),Qo(n,2,41," storage key: "+i+", "+Ur(e)+". Buffer cleared",{exception:Ke(e)})}}l.length>t.MAX_BUFFER_SIZE&&(l.length=t.MAX_BUFFER_SIZE),p(t.SENT_BUFFER_KEY,[]),p(t.BUFFER_KEY,l),e.enqueue=function(r){e.count()>=t.MAX_BUFFER_SIZE?o||(Qo(n,2,67,"Maximum buffer size reached: "+e.count(),!0),o=!0):(i.enqueue(r),p(t.BUFFER_KEY,e._get()))},e.clear=function(){i.clear(),p(t.BUFFER_KEY,e._get()),p(t.SENT_BUFFER_KEY,[]),o=!1},e.markAsSent=function(i){p(t.BUFFER_KEY,e._set(d(i,e._get())));var r=f(t.SENT_BUFFER_KEY);r instanceof Array&&i instanceof Array&&((r=r.concat(i)).length>t.MAX_BUFFER_SIZE&&(Qo(n,1,67,"Sent buffer reached its maximum size: "+r.length,!0),r.length=t.MAX_BUFFER_SIZE),p(t.SENT_BUFFER_KEY,r))},e.clearSent=function(e){var n=f(t.SENT_BUFFER_KEY);n=d(e,n),p(t.SENT_BUFFER_KEY,n)},e.createNew=function(i,r,o){o=!!o;var s=e._get().slice(0),a=f(t.SENT_BUFFER_KEY).slice(0);i=i||n,r=r||{},e.clear();var c=o?new t(i,r):new ba(i,r);return jn(s,(function(e){c.enqueue(e)})),o&&c.markAsSent(a),c}})),r}return Ye(t,e),t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}(Ta),Da=function(){function e(t){mt(e,this,(function(e){function n(e,o){var s={};if(!e)return Qo(t,1,48,"cannot serialize object because it is null or undefined",{name:o},!0),s;if(e.__aiCircularRefCheck)return Qo(t,2,50,"Circular reference detected while serializing object",{name:o},!0),s;if(!e.aiDataContract){if("measurements"===o)s=r(e,"number",o);else if("properties"===o)s=r(e,"string",o);else if("tags"===o)s=r(e,"string",o);else if(F(e))s=i(e,o);else{Qo(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:o},!0);try{to().stringify(e),s=e}catch(e){Qo(t,1,48,e&&O(e.toString)?e.toString():"Error serializing object",null,!0)}}return s}return e.__aiCircularRefCheck=!0,z(e.aiDataContract,(function(r,a){var c=O(a)?1&a():1&a,u=O(a)?4&a():4&a,l=2&a,d=void 0!==e[r],f=A(e[r])&&null!==e[r];if(!c||d||l){if(!u){var p;void 0!==(p=f?l?i(e[r],r):n(e[r],r):e[r])&&(s[r]=p)}}else Qo(t,1,24,"Missing required field specification. The field is required but not present on source",{field:r,name:o})})),delete e.__aiCircularRefCheck,s}function i(e,i){var r;if(e)if(F(e)){r=[];for(var o=0;o<e.length;o++){var s=n(e[o],i+"["+o+"]");r.push(s)}}else Qo(t,1,54,"This field was specified as an array in the contract but the item is not an array.\r\n",{name:i},!0);return r}function r(e,n,i){var r;return e&&(r={},z(e,(function(e,o){if("string"===n)void 0===o?r[e]="undefined":null===o?r[e]="null":o.toString?r[e]=o.toString():r[e]="invalid field: toString() is not defined.";else if("number"===n)if(void 0===o)r[e]="undefined";else if(null===o)r[e]="null";else{var s=parseFloat(o);isNaN(s)?r[e]="NaN":r[e]=s}else r[e]="invalid field: "+i+" is of unknown type.",Qo(t,1,r[e],null,!0)}))),r}e.serialize=function(e){var i=n(e,"root");try{return to().stringify(i)}catch(e){Qo(t,1,48,e&&O(e.toString)?e.toString():"Error serializing object",null,!0)}}}))}return e.__ieDyn=1,e}(),wa=function(){function e(){}return e.prototype.getHashCodeScore=function(t){return this.getHashCode(t)/e.INT_MAX_VALUE*100},e.prototype.getHashCode=function(e){if(""===e)return 0;for(;e.length<8;)e=e.concat(e);for(var t=5381,n=0;n<e.length;++n)t=(t<<5)+t+e.charCodeAt(n),t&=t;return Math.abs(t)},e.INT_MAX_VALUE=2147483647,e}(),Ea=function(){var e=new wa,t=new aa;this.getSamplingScore=function(n){return n.tags&&n.tags[t.userId]?e.getHashCodeScore(n.tags[t.userId]):n.ext&&n.ext.user&&n.ext.user.id?e.getHashCodeScore(n.ext.user.id):n.tags&&n.tags[t.operationId]?e.getHashCodeScore(n.tags[t.operationId]):n.ext&&n.ext.telemetryTrace&&n.ext.telemetryTrace.traceID?e.getHashCodeScore(n.ext.telemetryTrace.traceID):100*Math.random()}},Pa=function(){function e(e,t){this.INT_MAX_VALUE=2147483647;var n=t||Yo(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.sampleRate=e,this.samplingScoreGenerator=new Ea}return e.prototype.isSampledIn=function(e){var t=this.sampleRate;return null==t||t>=100||e.baseType===gr.dataType||this.samplingScoreGenerator.getSamplingScore(e)<t},e}(),ka=void 0;function xa(e){try{return e.responseText}catch(e){}return null}var Ia=je(((Sa={endpointUrl:Nr(H,Ct+St)}).emitLineDelimitedJson=Or(),Sa.maxBatchInterval=15e3,Sa.maxBatchSizeInBytes=102400,Sa.disableTelemetry=Or(),Sa.enableSessionStorageBuffer=Or(!0),Sa.isRetryDisabled=Or(),Sa.isBeaconApiDisabled=Or(!0),Sa.disableXhr=Or(),Sa.onunloadDisableFetch=Or(),Sa.onunloadDisableBeacon=Or(),Sa.instrumentationKey=ka,Sa.namePrefix=ka,Sa.samplingPercentage=Nr((function(e){return!isNaN(e)&&e>0&&e<=100}),100),Sa.customHeaders=ka,Sa.convertUndefined=ka,Sa.eventsLimitInMem=1e4,Sa.bufferOverride=!1,Sa)),Na=((_a={})[Ji.dataType]=ya,_a[Yi.dataType]=function(e,t,n){ma(e,t);var i=t.baseData.message,r=t.baseData.severityLevel,o=t.baseData.properties||{},s=t.baseData.measurements||{};pa(t.data,o,s),x(n)||ga(o,n);var a=new Yi(e,i,r,o,s),c=new la(Yi.dataType,a);return ha(e,Yi.envelopeType,t,c)},_a[Zi.dataType]=function(e,t,n){var i;ma(e,t);var r=t.baseData;x(r)||x(r.properties)||x(r.properties.duration)?x(t.data)||x(t.data.duration)||(i=t.data.duration,delete t.data.duration):(i=r.properties.duration,delete r.properties.duration);var o,s=t.baseData;((t.ext||{}).trace||{}).traceID&&(o=t.ext.trace.traceID);var a=s.id||o,c=s.name,u=s.uri,l=s.properties||{},d=s.measurements||{};x(s.refUri)||(l.refUri=s.refUri),x(s.pageType)||(l.pageType=s.pageType),x(s.isLoggedIn)||(l.isLoggedIn=s.isLoggedIn.toString()),x(s.properties)||z(s.properties,(function(e,t){l[e]=t})),pa(t.data,l,d),x(n)||ga(l,n);var f=new Zi(e,c,u,i,l,d,a),p=new la(Zi.dataType,f);return ha(e,Zi.envelopeType,t,p)},_a[Qi.dataType]=function(e,t,n){ma(e,t);var i=t.baseData,r=i.name,o=i.uri||i.url,s=i.properties||{},a=i.measurements||{};pa(t.data,s,a),x(n)||ga(s,n);var c=new Qi(e,r,o,void 0,s,a,i),u=new la(Qi.dataType,c);return ha(e,Qi.envelopeType,t,u)},_a[lr.dataType]=function(e,t,n){ma(e,t);var i=t.baseData.measurements||{},r=t.baseData.properties||{};pa(t.data,r,i),x(n)||ga(r,n);var o=t.baseData,s=lr.CreateFromInterface(e,o,r,i),a=new la(lr.dataType,s);return ha(e,lr.envelopeType,t,a)},_a[gr.dataType]=function(e,t,n){ma(e,t);var i=t.baseData,r=i.properties||{},o=i.measurements||{};pa(t.data,r,o),x(n)||ga(r,n);var s=new gr(e,i.name,i.average,i.sampleCount,i.min,i.max,i.stdDev,r,o),a=new la(gr.dataType,s);return ha(e,gr.envelopeType,t,a)},_a[_r.dataType]=function(e,t,n){ma(e,t);var i=t.baseData.measurements||{},r=t.baseData.properties||{};pa(t.data,r,i),x(n)||ga(r,n);var o=t.baseData;if(x(o))return es(e,"Invalid input for dependency data"),null;var s=o.properties&&o.properties[yt]?o.properties[yt]:"GET",a=new _r(e,o.id,o.target,o.name,o.duration,o.success,o.responseCode,s,o.type,o.correlationContext,r,i),c=new la(_r.dataType,a);return ha(e,_r.envelopeType,t,c)},_a),Oa=function(e){function t(){var n,i,r,o,s,a,c,u=e.call(this)||this;u.priority=1001,u.identifier="AppInsightsChannelPlugin";var l,d,f,p,g,h,m,v,y,C,S,_,T,b,R,D,w,E,P=0;return mt(t,u,(function(e,I){function N(t){var n=t?t.length:0;return e._buffer.size()+n>m&&(f&&!f.isOnline()||e.triggerSend(!0,null,10),!0)}function O(t,i,r,o,s,a){var c=null;if(e._appId||(c=V(a))&&c.appId&&(e._appId=c.appId),(t<200||t>=300)&&0!==t){if((301===t||307===t||308===t)&&!A(r))return void e._onError(i,s);!T&&$(t)?(W(i),Qo(e.diagLog(),2,40,". Response code "+t+". Will retry to send "+i.length+" items.")):e._onError(i,s)}else f&&!f.isOnline()?T||(W(i,10),Qo(e.diagLog(),2,40,". Offline - Response Code: ".concat(t,". Offline status: ").concat(!f.isOnline(),". Will retry to send ").concat(i.length," items."))):(A(r),206===t?(c||(c=V(a)),c&&!T?e._onPartialSuccess(i,c):e._onError(i,s)):(n=0,e._onSuccess(i,o)))}function A(e){return!(a>=10||x(e)||""===e||e===g||(g=e,++a,0))}function M(e,t){d?d(e,!1):q(e)}function L(t){var n=fe(),i=e._buffer,r=g,o=e._buffer.batchPayloads(t),s=new Blob([o],{type:"text/plain;charset=UTF-8"}),a=n.sendBeacon(r,s);return a&&(i.markAsSent(t),e._onSuccess(t,t.length)),a}function q(t,n){if(F(t)&&t.length>0&&!L(t)){for(var i=[],r=0;r<t.length;r++){var o=t[r];L([o])||i.push(o)}i.length>0&&(l&&l(i,!0),Qo(e.diagLog(),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function j(t,n){var i,r,o,s=new XMLHttpRequest,a=g;try{s[vt]=!0}catch(e){}s.open("POST",a,n),s.setRequestHeader("Content-type","application/json"),Sr(a)&&s.setRequestHeader(xr[6],xr[7]),jn(qe(c),(function(e){s.setRequestHeader(e,c[e])})),s.onreadystatechange=function(){e._xhrReadyStateChange(s,t,t.length),4===s.readyState&&r&&r(!0)},s.onerror=function(n){e._onError(t,G(s),n),o&&o(n)},n&&E&&(i=Js((function(e,t){r=e,o=t})));var u=e._buffer.batchPayloads(t);return s.send(u),e._buffer.markAsSent(t),i}function U(t,n){if(F(t)){for(var i=t.length,r=0;r<t.length;r++)i+=t[r].length;P+i<=65e3?K(t,!1):no()?q(t):(l&&l(t,!0),Qo(e.diagLog(),2,40,". Failed to send telemetry with Beacon API, retried with xhrSender."))}}function H(e,t){return K(e,!0)}function K(t,n){var i,r,o,s,a=g,u=e._buffer.batchPayloads(t),l=new Blob([u],{type:"application/json"}),d=new Headers,f=u.length,p=!1,h=!1;Sr(a)&&d.append(xr[6],xr[7]),jn(qe(c),(function(e){d.append(e,c[e])}));var m=((i={method:"POST",headers:d,body:l})[vt]=!0,i);n||(m.keepalive=!0,p=!0,P+=f);var v=new Request(a,m);try{v[vt]=!0}catch(e){}e._buffer.markAsSent(t),n&&E&&(r=Js((function(e,t){o=e,s=t})));try{xs(fetch(v),(function(i){if(n||(P-=f,f=0),!h)if(h=!0,i.rejected)e._onError(t,i.reason&&i.reason.message),s&&s(i.reason);else{var r=i.value;r.ok?xs(r.text(),(function(e){O(r.status,t,r.url,t.length,r.statusText,e.value||""),o&&o(!0)})):(e._onError(t,r.statusText),o&&o(!1))}}))}catch(n){h||(e._onError(t,Ke(n)),s&&s(n))}return p&&!h&&(h=!0,e._onSuccess(t,t.length),o&&o(!0)),r}function V(t){try{if(t&&""!==t){var n=to().parse(t);if(n&&n.itemsReceived&&n.itemsReceived>=n.itemsAccepted&&n.itemsReceived-n.itemsAccepted===n.errors.length)return n}}catch(n){Qo(e.diagLog(),1,43,"Cannot parse the response. "+Ur(n),{response:t})}return null}function W(t,r){if(void 0===r&&(r=1),t&&0!==t.length){var o=e._buffer;o.clearSent(t),n++;for(var s=0,a=t;s<a.length;s++){var c=a[s];o.enqueue(c)}!function(e){var t;if(n<=1)t=10;else{var r=(Math.pow(2,n)-1)/2,o=Math.floor(Math.random()*r*10)+1;o*=e,t=Math.max(Math.min(o,3600),10)}var s=un()+1e3*t;i=s}(r),z()}}function z(){if(!o&&!r){var t=i?Math.max(0,i-un()):0,n=Math.max(b,t);o=yi((function(){o=null,e.triggerSend(!0,null,1)}),n)}}function B(){o&&o.cancel(),o=null,i=null}function $(e){return 401===e||403===e||408===e||429===e||500===e||502===e||503===e||504===e}function G(e,t){return e?"XMLHttpRequest,Status:"+e.status+",Response:"+xa(e)||0:t}function Y(t,n){var i=e._buffer,r=de(),o=new XDomainRequest;o.onload=function(){return e._xdrOnLoad(o,t)},o.onerror=function(n){return e._onError(t,X(o),n)};var s=r&&r.location&&r.location.protocol||"";if(0!==g.lastIndexOf(s,0))return Qo(e.diagLog(),2,40,". Cannot send XDomain request. The endpoint URL protocol doesn't match the hosting page protocol."),void i.clear();var a=g.replace(/^(https?:)/,"");o.open("POST",a);var c=i.batchPayloads(t);o.send(c),i.markAsSent(t)}function X(e,t){return e?"XDomainRequest,Response:"+xa(e)||0:t}function Z(){e._sender=null,e._buffer=null,e._appId=null,e._sample=null,c={},f=null,n=0,i=null,r=!1,o=null,s=null,a=0,P=0,l=null,d=null,p=null,g=null,h=null,m=0,v=!1,y=null,C=!1,S=null,_=ka,T=!1,R=null,w=ka,J(e,"_senderConfig",{g:function(){return Vr({},Ia)}})}Z(),e.pause=function(){B(),r=!0},e.resume=function(){r&&(r=!1,i=null,N(),z())},e.flush=function(t,n,i){if(void 0===t&&(t=!0),!r){B();try{return e.triggerSend(t,null,i||1)}catch(t){Qo(e.diagLog(),1,22,"flush failed, telemetry will not be collected: "+Ur(t),{exception:Ke(t)})}}},e.onunloadFlush=function(){if(!r)if(v)try{return e.triggerSend(!0,M,2)}catch(t){Qo(e.diagLog(),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+Ur(t),{exception:Ke(t)})}else e.flush(!1)},e.addHeader=function(e,t){c[e]=t},e.initialize=function(t,r,o,P){e.isInitialized()&&Qo(e.diagLog(),1,28,"Sender is already initialized"),I.initialize(t,r,o,P);var O=e.identifier;s=new Da(r.logger),n=0,i=null,e._sender=null,a=0;var A=e.diagLog();p=fs(Co("Sender"),r.evtNamespace&&r.evtNamespace()),f=function(e){var t,n=le(),i=fe(),r=!1,o=!0,s=fs(Co("OfflineListener"),e);try{if(c(de())&&(r=!0),n){var a=n.body||n;a.ononline&&c(a)&&(r=!0)}r&&i&&!x(i.onLine)&&(o=i.onLine)}catch(e){r=!1}function c(e){var t=!1;return e&&(t=ps(e,"online",u,s))&&ps(e,"offline",l,s),t}function u(){o=!0}function l(){o=!1}return(t={}).isOnline=function(){var e=!0;return r?e=o:i&&!x(i.onLine)&&(e=i.onLine),e},t.isListening=function(){return r},t.unload=function(){var e=de();if(e&&r){if(Ca(e,s),n){var t=n.body||n;k(t.ononline)||Ca(t,s)}r=!1}},t}(p),e._addHook(Ho(t,(function(t){var n=t.cfg,i=Ts(null,n,r).getExtCfg(O,Ia);J(e,"_senderConfig",{g:function(){return i}}),h!==i.endpointUrl&&(g=h=i.endpointUrl),y&&y!==i.customHeaders&&jn(y,(function(e){delete c[e.header]})),m=i.maxBatchSizeInBytes,v=(!1===i.onunloadDisableBeacon||!1===i.isBeaconApiDisabled)&&no();var o=i.bufferOverride,s=!!i.enableSessionStorageBuffer&&(!!o||Er()),a=i.namePrefix,f=s!==R||s&&w!==a||s&&D!==o;if(e._buffer){if(f)try{e._buffer=e._buffer.createNew(A,i,s)}catch(t){Qo(e.diagLog(),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+Ur(t),{exception:Ke(t)})}N()}else e._buffer=s?new Ra(A,i):new ba(A,i);w=a,R=s,D=o,e._sample=new Pa(i.samplingPercentage,A),function(e,t){var n=t.disableInstrumentationKeyValidation;return!(x(n)||!n)||new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)}(S=i.instrumentationKey,n)||Qo(A,1,100,"Invalid Instrumentation key "+S),y=i.customHeaders,!Sr(g)&&y&&y.length>0?jn(y,(function(e){u.addHeader(e.header,e.value)})):y=null,E=i.enableSendPromise;var p=null;!i.disableXhr&&ro()?p=Y:!i.disableXhr&&oo()&&(p=j),!p&&io()&&(p=H),l=p||j,!i.isBeaconApiDisabled&&no()&&(p=q),e._sender=p||j,d=!i.onunloadDisableFetch&&io(!0)?U:no()?q:!i.disableXhr&&ro()?Y:!i.disableXhr&&oo()?j:l,C=i.disableTelemetry,_=i.convertUndefined||ka,T=i.isRetryDisabled,b=i.maxBatchInterval})))},e.processTelemetry=function(n,i){var r,o=(i=e._getTelCtx(i)).diagLog();try{if(C)return;if(!n)return void Qo(o,1,7,"Cannot send empty telemetry");if(n.baseData&&!n.baseType)return void Qo(o,1,70,"Cannot send telemetry without baseData and baseType");if(n.baseType||(n.baseType="EventData"),!e._sender)return void Qo(o,1,28,"Sender was not initialized");if(r=n,!e._sample.isSampledIn(r))return void Qo(o,2,33,"Telemetry item was sampled out and not sent",{SampleRate:e._sample.sampleRate});n.sampleRate=e._sample.sampleRate;var a=n.iKey||S,c=t.constructEnvelope(n,a,o,_);if(!c)return void Qo(o,1,47,"Unable to create an AppInsights envelope");var u=!1;if(n.tags&&n.tags.ProcessLegacy&&(jn(n.tags.ProcessLegacy,(function(e){try{e&&!1===e(c)&&(u=!0,es(o,"Telemetry processor check returns false"))}catch(e){Qo(o,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Ur(e),{exception:Ke(e)},!0)}})),delete n.tags.ProcessLegacy),u)return;var l=s.serialize(c),d=e._buffer;N(l),d.enqueue(l),z()}catch(e){Qo(o,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+Ur(e),{exception:Ke(e)})}e.processNext(n,i)},e._xhrReadyStateChange=function(e,t,n){4===e.readyState&&O(e.status,t,e.responseURL,n,G(e),xa(e)||e.response)},e.triggerSend=function(t,n,i){var o;if(void 0===t&&(t=!0),!r)try{var s=e._buffer;if(C)s.clear();else{if(s.count()>0){var a=s.getItems();!function(t,n){var i,r=(i="getNotifyMgr",e.core[i]?e.core[i]():e.core._notificationManager);if(r&&r.eventsSendRequest)try{r.eventsSendRequest(t,n)}catch(t){Qo(e.diagLog(),1,74,"send request notification failed: "+Ur(t),{exception:Ke(t)})}}(i||0,t),o=n?n.call(e,a,t):e._sender(a,t)}new Date}B()}catch(t){var c=function(e){if(void 0===e&&(e=null),!e){var t=fe()||{};e=t?(t.userAgent||Ar).toLowerCase():Ar}var n=(e||Ar).toLowerCase();if(jr(n,Br)){var i=le()||{};return Math.max(parseInt(n.split(Br)[1]),i.documentMode||0)}if(jr(n,$r)){var r=parseInt(n.split($r)[1]);if(r)return r+4}return null}();(!c||c>9)&&Qo(e.diagLog(),1,40,"Telemetry transmission failed, some telemetry will be lost: "+Ur(t),{exception:Ke(t)})}return o},e._doTeardown=function(t,n){e.onunloadFlush(),function(e,t){if(e&&e.unload)e.unload(t)}(f,!1),Z()},e._onError=function(t,n,i){Qo(e.diagLog(),2,26,"Failed to send telemetry.",{message:n}),e._buffer&&e._buffer.clearSent(t)},e._onPartialSuccess=function(t,n){for(var i=[],r=[],o=0,s=n.errors.reverse();o<s.length;o++){var a=s[o],c=t.splice(a.index,1)[0];$(a.statusCode)?r.push(c):i.push(c)}t.length>0&&e._onSuccess(t,n.itemsAccepted),i.length>0&&e._onError(i,G(null,["partial success",n.itemsAccepted,"of",n.itemsReceived].join(" "))),r.length>0&&(W(r),Qo(e.diagLog(),2,40,"Partial success. Delivered: "+t.length+", Failed: "+i.length+". Will retry to send "+r.length+" our of "+n.itemsReceived+" items"))},e._onSuccess=function(t,n){e._buffer&&e._buffer.clearSent(t)},e._xdrOnLoad=function(t,i){var r=xa(t);if(!t||r+""!="200"&&""!==r){var o=V(r);o&&o.itemsReceived&&o.itemsReceived>o.itemsAccepted&&!T?e._onPartialSuccess(i,o):e._onError(i,X(t))}else n=0,e._onSuccess(i,0)}})),u}return Ye(t,e),t.constructEnvelope=function(e,t,n,i){var r;return r=t===e.iKey||x(t)?e:Ge(Ge({},e),{iKey:t}),(Na[r.baseType]||ya)(n,r,i)},t}(ks),Aa=wt("reduce",_);var Fa="object",Ma=Object,La=(Ma.prototype,(ce()||{}).Symbol,(ce()||{}).Reflect,function(e,t){return La=Ma.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},La(e,t)});function qa(e,t){for(var n=0,i=t.length,r=e.length;n<i;n++,r++)e[r]=t[n];return e}var ja=function(e){return e.value&&Wa(e),!0},Ua=[function(e){var t=e.value;if(F(t)){var n=e.result=[];return n.length=t.length,e.copyTo(n,t),!0}return!1},Wa,function(e){return e.type===a},function(e){var t=e.value;return!!M(t)&&(e.result=new Date(t.getTime()),!0)}];function Ha(e,t,n,i){var r=n.handler,s=n.path?i?n.path.concat(i):n.path:[],a={handler:n.handler,src:n.src,path:s},c=typeof t,l=!1,d=!1;t&&c===u?l=An(t):d=t===o||function(e){return e!==u&&-1!==D.indexOf(e)}(c);var f={type:c,isPrim:d,isPlain:l,value:t,result:t,path:s,origin:n.src,copy:function(t,i){return Ha(e,t,i?a:n,i)},copyTo:function(t,n){return Ka(e,t,n,a)}};return f.isPrim?r&&On(r,n,f)?f.result:t:function(e,t,i,s){var a;return jn(e,(function(e){if(e.k===t)return a=e,-1})),a||(a={k:t,v:t},e.push(a),function(e){J(f,"result",{g:function(){return e.v},s:function(t){e.v=t}});for(var t=0,i=r;!On(i||(t<Ua.length?Ua[t++]:ja),n,f);)i=o}(a)),a.v}(e,t)}function Ka(e,t,n,i){if(!x(n))for(var r in n)t[r]=Ha(e,n[r],i,r);return t}function Va(e,t){return Ha([],e,{handler:t,src:e})}function Wa(e){var t=e.value;if(t&&e.isPlain){var n=e.result={};return e.copyTo(n,t),!0}return!1}function za(e,t){return jn(t,(function(t){!function(e,t,n){Ka([],e,t,{handler:void 0,src:t,path:[]})}(e,t)})),e}function Ba(e,t,n,i,r,o,s){return za(Va(e)||{},hi(arguments))}var $a=void 0,Ga="",Ja="extensionConfig",Ya="eventsSent",Xa="eventsDiscarded",Za="eventsSendRequest",Qa="perfEvent",ec=/-([a-z])/g,tc=/([^\w\d_$])/g,nc=/^(\d+[\w\d_$])/;function ic(e){return!x(e)}function rc(e){var t=e;return t&&N(t)&&(t=(t=(t=t.replace(ec,(function(e,t){return t.toUpperCase()}))).replace(tc,"_")).replace(nc,(function(e,t){return"_"+t}))),t}function oc(e,t){return!(!e||!t)&&-1!==tn(e,t)}function sc(e){return e&&e.toISOString()||""}function ac(e){return j(e)?e.name:Ga}function cc(e,t,n,i,r){var o=n;return e&&((o=e[t])===n||r&&!r(o)||i&&!i(n)||(o=n,e[t]=o)),o}function uc(e,t,n,i,r){e&&t&&n&&(!1!==r||k(e[t]))&&(e[t]=function(e,t){var n=null,i=null;return O(e)?n=e:i=e,function(){var e=arguments;if(n&&(i=n()),i)return i[t].apply(i,e)}}(n,i))}function lc(e,t,n,i){return e&&t&&A(e)&&F(n)&&jn(n,(function(n){N(n)&&uc(e,n,t,n,i)})),e}Object.getPrototypeOf;var dc=n(5108),fc="JSON",pc=null,gc=null;function hc(){return Boolean(typeof JSON===Fa&&JSON||null!==ue(fc))}function mc(){var e=fe();if(e&&(e.userAgent!==gc||null===pc)){var t=((gc=e.userAgent)||Ga).toLowerCase();pc=oc(t,"msie")||oc(t,"trident/")}return pc}var vc=4294967296,yc=4294967295,Cc=123456789,Sc=987654321,_c=!1,Tc=Cc,bc=Sc;function Rc(){try{var e=2147483647&un();(t=(Math.random()*vc^e)+e)<0&&(t>>>=0),Tc=Cc+t&yc,bc=Sc-t&yc,_c=!0}catch(e){}var t}function Dc(e){var t=0,n=ue("crypto")||ue("msCrypto");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&yc),0===t&&mc()&&(_c||Rc(),t=function(e){var t=((bc=36969*(65535&bc)+(bc>>16)&yc)<<16)+(65535&(Tc=18e3*(65535&Tc)+(Tc>>16)&yc))>>>0&yc|0;return t>>>=0}()&yc),0===t&&(t=Math.floor(vc*Math.random()|0)),e||(t>>>=0),t}var wc="."+function(e){void 0===e&&(e=22);for(var t=Dc()>>>0,n=0,i=Ga;i.length<e;)n++,i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(Dc()<<2&4294967295|3&t)>>>0,n=0);return i}(6),Ec=0;function Pc(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function kc(e,t){return void 0===t&&(t=!1),rc(e+Ec+++(t?".3.0.2":Ga)+wc)}function xc(e){return e&&A(e)&&(e.isVal||e.fb||W(e,"v")||W(e,"mrg")||W(e,"ref")||e.set)}function Ic(e,t,n){var i,r=n.dfVal||I;if(t&&n.fb){var o=n.fb;F(o)||(o=[o]);for(var s=0;s<o.length;s++){var a=o[s],c=t[a];if(r(c)?i=c:e&&(r(c=e.cfg[a])&&(i=c),e.set(e.cfg,Tt(a),c)),r(i))break}}return!r(i)&&r(n.v)&&(i=n.v),i}function Nc(e,t,n){var i,r=n;return n&&xc(n)&&(r=Ic(e,t,n)),r&&(xc(r)&&(r=Nc(e,t,r)),F(r)?(i=[]).length=r.length:An(r)&&(i={}),i&&(z(r,(function(n,r){r&&xc(r)&&(r=Nc(e,t,r)),i[n]=r})),r=i)),r}function Oc(e,t,n,i){var r,o,s,a,c,u,l,d,f=i;xc(f)?(r=f.isVal,o=f.set,u=f.rdOnly,l=f.blkVal,a=f.mrg,!(c=f.ref)&&k(c)&&(c=!!a),s=Ic(e,t,f)):s=i,l&&e.blkVal(t,n);var p=!0,g=t[n];!g&&x(g)||(d=g,p=!1,r&&d!==s&&!r(d)&&(d=s,p=!0),o&&(p=(d=o(d,s,t))===s)),p?d=s?Nc(e,t,s):s:(An(d)||F(s))&&a&&s&&(An(s)||F(s))&&z(s,(function(t,n){Oc(e,d,t,n)})),e.set(t,n,d),c&&e.ref(t,n),u&&e.rdOnly(t,n)}var Ac=ti("[[ai_dynCfg_1]]"),Fc=ti("[[ai_blkDynCfg_1]]"),Mc=ti("[[ai_frcDynCfg_1]]");function Lc(e){var t;return e&&(F(e)?(t=[]).length=e.length:An(e)&&(t={}),t)?(z(e,(function(e,n){t[e]=Lc(n)})),t):e}function qc(e,t,n){var i=!1;return n&&!e[t.blkVal]&&((i=n[Mc])||n[Fc]||(i=An(n)||F(n))),i}function jc(e){he("InvalidAccess:"+e)}var Uc,Hc=["push","pop","shift","unshift","splice"],Kc=function(e,t,n,i){e&&e.throwInternal(3,108,"".concat(n," [").concat(t,"] failed - ")+Ke(i))};function Vc(e,t){var n=K(e,t);return n&&n.get}function Wc(e,t,n,i){if(t){var r=Vc(t,n);r&&r[e.prop]?t[n]=i:function(e,t,n,i){var r={n,h:[],trk:function(t){t&&t.fn&&(-1===Un(r.h,t)&&r.h.push(t),e.trk(t,r))},clr:function(e){var t=Un(r.h,e);-1!==t&&r.h.splice(t,1)}},o=!0,s=!1;function a(){o&&(s=s||qc(a,e,i),i&&!i[Ac]&&s&&(i=Bc(e,i,n,"Converting")),o=!1);var t=e.act;return t&&r.trk(t),i}a[e.prop]={chng:function(){e.add(r)}},J(t,r.n,{g:a,s:function(c){if(i!==c){a[e.ro]&&!e.upd&&jc("["+n+"] is read-only:"+Ke(t)),o&&(s=s||qc(a,e,i),o=!1);var u=s&&a[e.rf];if(s)if(u){z(i,(function(e){i[e]=c?c[e]:$a}));try{z(c,(function(t,n){Wc(e,i,t,n)})),c=i}catch(t){Kc((e.hdlr||{}).logger,n,"Assigning",t),s=!1}}else i&&i[Ac]&&z(i,(function(t){var n=Vc(i,t);if(n){var r=n[e.prop];r&&r.chng()}}));if(c!==i){var l=c&&qc(a,e,c);!u&&l&&(c=Bc(e,c,n,"Converting")),i=c,s=l}e.add(r)}}})}(e,t,n,i)}return t}function zc(e,t,n,i){if(t){var r=Vc(t,n),o=r&&!!r[e.prop],s=i&&i[0],a=i&&i[1],c=i&&i[2];if(!o){if(c)try{!function(e){if(e&&(An(e)||F(e)))try{e[Fc]=!0}catch(e){}}(t)}catch(t){Kc((e.hdlr||{}).logger,n,"Blocking",t)}try{Wc(e,t,n,t[n]),r=Vc(t,n)}catch(t){Kc((e.hdlr||{}).logger,n,"State",t)}}s&&(r[e.rf]=s),a&&(r[e.ro]=a),c&&(r[e.blkVal]=!0)}return t}function Bc(e,t,n,i){try{z(t,(function(n,i){Wc(e,t,n,i)})),t[Ac]||(G(t,Ac,{get:function(){return e.hdlr}}),function(e,t,n){F(t)&&jn(Hc,(function(i){var r=t[i];t[i]=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=r.apply(this,i);return Bc(e,t,n,"Patching"),s}}))}(e,t,n))}catch(t){Kc((e.hdlr||{}).logger,n,i,t)}return t}var $c="]]";function Gc(e,t,n){var i,r=function(e){if(e){var t=e[Ac]||e;if(t.cfg&&(t.cfg===e||t.cfg[Ac]===t))return t}return null}(t);if(r)return r;var o,s=kc("dyncfg",!0),a=t&&!1!==n?t:Lc(t),c=((i={uid:null,cfg:a}).logger=e,i.notify=function(){o.notify()},i.set=function(t,n,i){try{t=Wc(o,t,n,i)}catch(t){Kc(e,n,"Setting value",t)}return t[n]},i.setDf=function(e,t){return t&&z(t,(function(t,n){Oc(c,e,t,n)})),e},i.watch=function(e){return function(e,t){var n={fn:t,rm:function(){n.fn=null,e=null,t=null}};return e.use(n,t),n}(o,e)},i.ref=function(e,t){var n;return zc(o,e,t,(n={},n[0]=!0,n))[t]},i.rdOnly=function(e,t){var n;return zc(o,e,t,(n={},n[1]=!0,n))[t]},i.blkVal=function(e,t){var n;return zc(o,e,t,(n={},n[2]=!0,n))[t]},i._block=function(e,t){o.use(null,(function(n){var i=o.upd;try{k(t)||(o.upd=t),e(n)}finally{o.upd=i}}))},i);return J(c,"uid",{c:!1,e:!1,w:!1,v:s}),Bc(o=function(e){var t,n,i=ei("[[ai_get"+e.uid+$c),r=ei("[[ai_ro"+e.uid+$c),o=ei("[[ai_rf"+e.uid+$c),s=ei("[[ai_blkVal"+e.uid+$c),a=ei("[[ai_dtl"+e.uid+$c),c=null,u=null;function l(t,i){var r=n.act;try{n.act=t,t&&t[a]&&(jn(t[a],(function(e){e.clr(t)})),t[a]=[]),i({cfg:e.cfg,set:e.set.bind(e),setDf:e.setDf.bind(e),ref:e.ref.bind(e),rdOnly:e.rdOnly.bind(e)})}catch(t){var o=e.logger;throw o&&o.throwInternal(1,107,Ke(t)),t}finally{n.act=r||null}}function d(){if(c){var e=c;c=null,u&&u.cancel(),u=null;var t=[];if(jn(e,(function(e){if(e&&(e[a]&&(jn(e[a],(function(t){t.clr(e)})),e[a]=null),e.fn))try{l(e,e.fn)}catch(e){t.push(e)}})),c)try{d()}catch(e){t.push(e)}t.length>0&&function(e,t){Uc||(Uc=bi("AggregationError",(function(e,t){t.length>1&&(e.errors=t[1])})));var n="Watcher error(s): ";throw jn(t,(function(e,t){n+="\n".concat(t," > ").concat(Ke(e))})),new Uc(n,t||[])}(0,t)}}return(t={prop:i,ro:r,rf:o}).blkVal=s,t.hdlr=e,t.add=function(e){if(e&&e.h.length>0){c||(c=[]),u||(u=yi((function(){u=null,d()}),0));for(var t=0;t<e.h.length;t++){var n=e.h[t];n&&-1===Un(c,n)&&c.push(n)}}},t.notify=d,t.use=l,t.trk=function(e,t){if(e){var n=e[a]=e[a]||[];-1===Un(n,t)&&n.push(t)}},n=t}(c),a,"config","Creating"),c}function Jc(e,t,n,i){var r=Gc(n,e||{},i);return t&&r.setDf(r.cfg,t),r}function Yc(e,t,n){var i=e[Ac]||e;return!i.cfg||i.cfg!==e&&i.cfg[Ac]!==i?(function(e,t){e?(e.warnToConsole(t),e.throwInternal(2,108,t)):jc(t)}(n,"Not dynamic - "+Ke(e)),Jc(e,null,n).watch(t)):i.watch(t)}var Xc=("length",function(e){return e.length});function Zc(e,t){if(e&&e.unload)return e.unload(t)}function Qc(e,t,n){var i;return n||(i=Js((function(e){n=e}))),e&&Xc(e)>0?xs(Zc(e[0],t),(function(){Qc(hi(e,1),t,n)})):n(),i}var eu,tu,nu=Et("endsWith",y,(function(e,t,n){N(e)||he("'"+Ke(e)+"' is not a string");var i=N(t)?t:Tt(t),r=i.length,o=e.length,s=!k(n)&&n<o?n:o;return ji(e,s-r,s)===i})),iu=[Ya,Xa,Za,Qa],ru=null;function ou(e,t){return function(){var n=arguments,i=su(t);if(i){var r=i.listener;r&&r[e]&&r[e].apply(r,n)}}}function su(e){var t,n=ru;return n||!0===e.disableDbgExt||(n=ru||((t=ue("Microsoft"))&&(ru=t.ApplicationInsights),ru)),n?n.ChromeDbgExt:null}var au="warnToConsole",cu={loggingLevelConsole:0,loggingLevelTelemetry:1,maxMessageLimit:25,enableDebug:!1},uu=((tu={})[0]=null,tu[1]="errorToConsole",tu[2]=au,tu[3]="debugToConsole",tu);function lu(e){return e?'"'+e.replace(/\"/g,Ga)+'"':Ga}function du(e,t){var n=void 0!==dc?dc:ue("console");if(n){var i="log";n[e]&&(i=e),O(n[i])&&n[i](t)}}var fu=function(){function e(e,t,n,i){void 0===n&&(n=!1);var r=this;r.messageId=e,r.message=(n?"AI: ":"AI (Internal): ")+e;var o=Ga;hc()&&(o=(hc()?JSON||ue(fc):null).stringify(i));var s=(t?" message:"+lu(t):Ga)+(i?" props:"+lu(o):Ga);r.message+=s}return e.dataType="MessageData",e}();function pu(e,t){return(e||{}).logger||new mu(t)}var gu,hu,mu=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,i,r,o,s,a=0,c={};Fe(e,this,(function(e){function u(t,n){if(!(a>=r)){var o=!0,s="AITR_"+n.messageId;if(c[s]?o=!1:c[s]=!0,o&&(t<=i&&(e.queue.push(n),a++,l(1===t?"error":"warn",n)),a===r)){var u="Internal events throttle limit per PageView reached for this app.",d=new fu(23,u,!1);e.queue.push(d),1===t?e.errorToConsole(u):e.warnToConsole(u)}}}function l(e,n){var i=su(t||{});i&&i.diagLog&&i.diagLog(e,n)}s=function(t){return Yc(Jc(t,cu,e).cfg,(function(e){var t=e.cfg;n=t.loggingLevelConsole,i=t.loggingLevelTelemetry,r=t.maxMessageLimit,o=t.enableDebug}))}(t||{}),e.consoleLoggingLevel=function(){return n},e.throwInternal=function(t,i,r,s,a){void 0===a&&(a=!1);var d=new fu(i,r,a,s);if(o)throw Ke(d);var f=uu[t]||au;if(k(d.message))l("throw"+(1===t?"Critical":"Warning"),d);else{if(a){var p=+d.messageId;!c[p]&&n>=t&&(e[f](d.message),c[p]=!0)}else n>=t&&e[f](d.message);u(t,d)}},e.debugToConsole=function(e){du("debug",e),l("warning",e)},e.warnToConsole=function(e){du("warn",e),l("warning",e)},e.errorToConsole=function(e){du("error",e),l("error",e)},e.resetInternalMessageCount=function(){a=0,c={}},e.logInternalMessage=u,e.unload=function(e){s&&s.rm(),s=null}}))}return e.__ieDyn=1,e}();function vu(e){return e||new mu}function yu(e,t,n,i,r,o){void 0===o&&(o=!1),vu(e).throwInternal(t,n,i,r,o)}var Cu,Su,_u="toGMTString",Tu="toUTCString",bu=null,Ru=null,Du=null,wu={},Eu={},Pu=((gu={cookieCfg:(hu={},hu.domain={fb:"cookieDomain",dfVal:ic},hu.path={fb:"cookiePath",dfVal:ic},hu.enabled=$a,hu.ignoreCookies=$a,hu.blockedCookies=$a,Su=hu,{mrg:!0,v:Su}),cookieDomain:$a,cookiePath:$a}).disableCookiesUsage=$a,gu);function ku(){!Cu&&(Cu=X((function(){return le()})))}function xu(e){return!e||e.isEnabled()}function Iu(e,t){return!!(t&&e&&F(e.ignoreCookies))&&-1!==Un(e.ignoreCookies,t)}function Nu(e,t){var n=t.enabled;if(x(n)){var i=void 0;k(e.isCookieUseDisabled)||(i=!e.isCookieUseDisabled),k(e.disableCookiesUsage)||(i=!e.disableCookiesUsage),n=i}return n}function Ou(e){if(null===bu){bu=!1,!Cu&&ku();try{var t=Cu.v||{};bu=void 0!==t.cookie}catch(t){yu(e,2,68,"Cannot access document.cookie - "+ac(t),{exception:Ke(t)})}}return bu}function Au(e){var t={};return e&&e.length&&jn(Ot(e).split(";"),(function(e){if(e=Ot(e||Ga)){var n=tn(e,"=");-1===n?t[e]=null:t[Ot(Hi(e,n))]=Ot(ji(e,n+1))}})),t}function Fu(e,t){return O(e[t])?e[t]():null}function Mu(e,t){var n=e||Ga;return z(t,(function(e,t){n+="; "+e+(x(t)?Ga:"="+t)})),n}function Lu(e){var t=Ga;if(!Cu&&ku(),Cu.v){var n=Cu.v.cookie||Ga;Du!==n&&(wu=Au(n),Du=n),t=Ot(wu[e]||Ga)}return t}function qu(e,t){!Cu&&ku(),Cu.v&&(Cu.v.cookie=e+"="+t)}var ju={perfEvtsSendAll:!1};function Uu(e,t,n,i){jn(e,(function(e){if(e&&e[t])if(n)yi((function(){return i(e)}),0);else try{i(e)}catch(e){}}))}var Hu=function(){function e(t){var n,i;this.listeners=[];var r=[],o=Jc(t,ju);i=o.watch((function(e){n=!!e.cfg.perfEvtsSendAll})),Fe(e,this,(function(e){J(e,"listeners",{g:function(){return r}}),e.addNotificationListener=function(e){r.push(e)},e.removeNotificationListener=function(e){for(var t=Un(r,e);t>-1;)r.splice(t,1),t=Un(r,e)},e.eventsSent=function(e){Uu(r,Ya,!0,(function(t){t.eventsSent(e)}))},e.eventsDiscarded=function(e,t){Uu(r,Xa,!0,(function(n){n.eventsDiscarded(e,t)}))},e.eventsSendRequest=function(e,t){Uu(r,Za,t,(function(n){n.eventsSendRequest(e,t)}))},e.perfEvent=function(e){e&&(!n&&e.isChildEvt()||Uu(r,Qa,!1,(function(t){e.isAsync?yi((function(){return t.perfEvent(e)}),0):t.perfEvent(e)})))},e.unload=function(e){var t,n=function(){i&&i.rm(),i=null,r=[]};if(Uu(r,"unload",!1,(function(n){var i=n.unload(e);i&&(t||(t=[]),t.push(i))})),t)return Js((function(e){return xs(Ys(t),(function(){n(),e()}))}));n()}}))}return e.__ieDyn=1,e}(),Ku=function(){function e(t,n,i){var r,o=this;o.start=un(),o.name=t,o.isAsync=i,o.isChildEvt=function(){return!1},O(n)&&J(o,"payload",{g:function(){return!r&&O(n)&&(r=n(),n=null),r}}),o.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?o[t]:(o.ctx||{})[t]:null},o.setCtx=function(t,n){t&&(t===e.ParentContextKey?(o[t]||(o.isChildEvt=function(){return!0}),o[t]=n):t===e.ChildrenContextKey?o[t]=n:(o.ctx=o.ctx||{})[t]=n)},o.complete=function(){var t=0,n=o.getCtx(e.ChildrenContextKey);if(F(n))for(var i=0;i<n.length;i++){var r=n[i];r&&(t+=r.time)}o.time=un()-o.start,o.exTime=o.time-t,o.complete=function(){}}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),Vu=function(){function e(t){this.ctx={},Fe(e,this,(function(e){e.create=function(e,t,n){return new Ku(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&O(t.perfEvent)&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e.getCtx=function(t){return(e.ctx||{})[t]}}))}return e.__ieDyn=1,e}(),Wu="CoreUtils.doPerf";function zu(e,t,n,i,r){if(e){var o=e;if(o.getPerfMgr&&(o=o.getPerfMgr()),o){var s=void 0,a=o.getCtx(Wu);try{if(s=o.create(t(),i,r)){if(a&&s.setCtx&&(s.setCtx(Ku.ParentContextKey,a),a.getCtx&&a.setCtx)){var c=a.getCtx(Ku.ChildrenContextKey);c||(c=[],a.setCtx(Ku.ChildrenContextKey,c)),c.push(s)}return o.setCtx(Wu,s),n(s)}}catch(e){s&&s.setCtx&&s.setCtx("exception",e)}finally{s&&o.fire(s),o.setCtx(Wu,a)}}}return n()}function Bu(e,t,n){return!(!e||e.length!==t||e===n||!e.match(/^[\da-f]*$/i))}var $u,Gu=$u={id:kc("_aiData-plugin.3.0.2"),accept:function(e){return Pc(e)},get:function(e,t,n,i){var r=e[$u.id];return r?r[rc(t)]:(i&&(r=function(e,t){var n=t[e.id];if(!n){n={};try{Pc(t)&&J(t,e.id,{e:!1,v:n})}catch(e){}}return n}($u,e),r[rc(t)]=n),n)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};function Ju(e){return Gu.get(e,"state",{},!0)}function Yu(e,t){for(var n,i=[],r=null,o=e.getNext();o;){var s=o.getPlugin();if(s){r&&r.setNextPlugin&&s.processTelemetry&&r.setNextPlugin(s);var a=!!(n=Ju(s)).isInitialized;s.isInitialized&&(a=s.isInitialized()),a||i.push(s),r=s,o=o.getNext()}}jn(i,(function(i){var r=e.core();i.initialize(e.getCfg(),r,t,e.getNext()),n=Ju(i),i.core||n.core||(n.core=r),n.isInitialized=!0,delete n.teardown}))}function Xu(e){return e.sort((function(e,t){var n=0;if(t){var i=t.processTelemetry;e.processTelemetry?n=i?e.priority-t.priority:1:i&&(n=-1)}else n=e?1:-1;return n}))}var Zu,Qu=0;function el(e,t,n,i){var r=null,o=[];t||(t=Jc({},null,n.logger)),null!==i&&(r=i?function(e,t,n){for(;e;){if(e.getPlugin()===n)return e;e=e.getNext()}return rl([n],t.config||{},t)}(e,n,i):e);var s={_next:function(){var e=r;if(r=e?e.getNext():null,!e){var t=o;t&&t.length>0&&(jn(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){yu(n.logger,2,73,"Unexpected Exception during onComplete - "+Ke(e))}})),o=[])}return e},ctx:{core:function(){return n},diagLog:function(){return pu(n,t.cfg)},getCfg:function(){return t.cfg},getExtCfg:function(e,n){var i=a(e,!0);return n&&z(n,(function(e,n){if(x(i[e])){var r=t.cfg[e];!r&&x(r)||(i[e]=r)}Oc(t,i,e,n)})),t.setDf(i,n)},getConfig:function(e,n,i){void 0===i&&(i=!1);var r,o=a(e,!1),s=t.cfg;return!o||!o[n]&&x(o[n])?!s[n]&&x(s[n])||(r=s[n]):r=o[n],r||!x(r)?r:i},hasNext:function(){return!!r},getNext:function(){return r},setNext:function(e){r=e},iterate:function(e){for(var t;t=s._next();){var n=t.getPlugin();n&&e(n)}},onComplete:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e&&o.push({func:e,self:k(t)?s.ctx:t,args:n})}}};function a(e,n){var i=null,r=t.cfg;if(r&&e){var o=r.extensionConfig;!o&&n&&(o={}),r.extensionConfig=o,(o=t.ref(r,Ja))&&(!(i=o[e])&&n&&(i={}),o[e]=i,i=t.ref(o,e))}return i}return s}function tl(e,t,n,i){var r=Jc(t),o=el(e,r,n,i),s=o.ctx;return s.processNext=function(e){var t=o._next();return t&&t.processTelemetry(e,s),!t},s.createNew=function(e,t){return void 0===e&&(e=null),F(e)&&(e=rl(e,r.cfg,n,t)),tl(e||s.getNext(),r.cfg,n,t)},s}function nl(e,t,n){var i=Jc(t.config),r=el(e,i,t,n),o=r.ctx;return o.processNext=function(e){var t=r._next();return t&&t.unload(o,e),!t},o.createNew=function(e,n){return void 0===e&&(e=null),F(e)&&(e=rl(e,i.cfg,t,n)),nl(e||o.getNext(),t,n)},o}function il(e,t,n){var i=Jc(t.config),r=el(e,i,t,n).ctx;return r.processNext=function(e){return r.iterate((function(t){O(t.update)&&t.update(r,e)}))},r.createNew=function(e,n){return void 0===e&&(e=null),F(e)&&(e=rl(e,i.cfg,t,n)),il(e||r.getNext(),t,n)},r}function rl(e,t,n,i){var r=null,o=!i;if(F(e)&&e.length>0){var s=null;jn(e,(function(e){if(o||i!==e||(o=!0),o&&e&&O(e.processTelemetry)){var a=function(e,t,n){var i,r=null,o=O(e.processTelemetry),s=O(e.setNextPlugin),a={getPlugin:function(){return e},getNext:function(){return r},processTelemetry:function(i,u){c(u=u||function(){var i;return e&&O(e._getTelCtx)&&(i=e._getTelCtx()),i||(i=tl(a,t,n)),i}(),(function(t){if(!e||!o)return!1;var n=Ju(e);return!n.teardown&&!n.disabled&&(s&&e.setNextPlugin(r),e.processTelemetry(i,t),!0)}),"processTelemetry",(function(){return{item:i}}),!i.sync)||u.processNext(i)},unload:function(t,n){c(t,(function(){var i=!1;if(e){var r=Ju(e),o=e.core||r.core;!e||o&&o!==t.core()||r.teardown||(r.core=null,r.teardown=!0,r.isInitialized=!1,e.teardown&&!0===e.teardown(t,n)&&(i=!0))}return i}),"unload",(function(){}),n.isAsync)||t.processNext(n)},update:function(t,n){c(t,(function(){var i=!1;if(e){var r=Ju(e),o=e.core||r.core;!e||o&&o!==t.core()||r.teardown||e.update&&!0===e.update(t,n)&&(i=!0)}return i}),"update",(function(){}),!1)||t.processNext(n)},_id:i=e?e.identifier+"-"+e.priority+"-"+Qu++:"Unknown-0-"+Qu++,_setNext:function(e){r=e}};function c(t,n,o,s,a){var c=!1,u=e?e.identifier:"TelemetryPluginChain",l=t._hasRun;return l||(l=t._hasRun={}),t.setNext(r),e&&zu(t.core(),(function(){return u+":"+o}),(function(){l[i]=!0;try{var e=r?r._id:Ga;e&&(l[e]=!1),c=n(t)}catch(e){var s=!r||l[r._id];s&&(c=!0),r&&s||yu(t.diagLog(),1,73,"Plugin ["+u+"] failed during "+o+" - "+Ke(e)+", run flags: "+Ke(l))}}),s,a),c}return Ue(a)}(e,t,n);r||(r=a),s&&s._setNext(a),s=a}}))}return i&&!r?rl([i],t,n):r}function ol(){var e=[];return{add:function(t){t&&e.push(t)},run:function(t,n){jn(e,(function(e){try{e(t,n)}catch(e){yu(t.diagLog(),2,73,"Unexpected error calling unload handler - "+Ke(e))}})),e=[]}}}function sl(){var e=[];return{run:function(t){var n=e;e=[],jn(n,(function(e){try{(e.rm||e.remove).call(e)}catch(e){yu(t,2,73,"Unloading:"+Ke(e))}}))},add:function(t){t&&Es(e,t)}}}var al,cl=((Zu={}).extensionConfig={isVal:ic,v:{}},Zu),ul=function(){function e(){var t,n,i,r,o,s=this;function a(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||tl(null,{},s.core);t=i&&i.getPlugin?r.createNew(null,i.getPlugin):r.createNew(null,i)}return t}function c(e,t,r){Jc(e,cl,pu(t)),!r&&t&&(r=t.getProcessTelContext().getNext());var o=i;i&&i.getPlugin&&(o=i.getPlugin()),s.core=t,n=tl(r,e,t,o)}function u(){t=!1,s.core=null,n=null,i=null,o=sl(),r=ol()}u(),Fe(e,s,(function(e){e.initialize=function(e,n,i,r){c(e,n,r),t=!0},e.teardown=function(t,n){var s,a=e.core;if(a&&(!t||a===t.core())){var c,l=!1,d=t||nl(null,a,i&&i.getPlugin?i.getPlugin():i),f=n||((s={reason:0}).isAsync=!1,s);return e._doTeardown&&!0===e._doTeardown(d,f,p)?c=!0:p(),c}function p(){l||(l=!0,r.run(d,n),o.run(d.diagLog()),!0===c&&d.processNext(f),u())}},e.update=function(t,n){var r=e.core;if(r&&(!t||r===t.core())){var o,s=!1,a=t||il(null,r,i&&i.getPlugin?i.getPlugin():i),u=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(a,u,l)?o=!0:l(),o}function l(){s||(s=!0,c(a.getCfg(),a.core(),a.getNext()))}},uc(e,"_addUnloadCb",(function(){return r}),"add"),uc(e,"_addHook",(function(){return o}),"add"),J(e,"_unloadHooks",{g:function(){return o}})})),s.diagLog=function(e){return a(e).diagLog()},s.isInitialized=function(){return t},s.setInitialized=function(e){t=e},s.setNextPlugin=function(e){i=e},s.processNext=function(e,t){t?t.processNext(e):i&&O(i.processTelemetry)&&i.processTelemetry(e,null)},s._getTelCtx=a}return e.__ieDyn=1,e}(),ll=function(e){function t(){var n,i,r=e.call(this)||this;function o(){n=0,i=[]}return r.identifier="TelemetryInitializerPlugin",r.priority=199,o(),Fe(t,r,(function(e,t){e.addTelemetryInitializer=function(e){return function(e,t,n){var i={id:t,fn:n};return Es(e,i),{remove:function(){jn(e,(function(t,n){if(t.id===i.id)return e.splice(n,1),-1}))}}}(i,n++,e)},e.processTelemetry=function(t,n){(function(e,t,n){for(var i=!1,r=e.length,o=0;o<r;++o){var s=e[o];if(s)try{if(!1===s.fn.apply(null,[t])){i=!0;break}}catch(e){yu(n,2,64,"Telemetry initializer failed: "+ac(e),{exception:Ke(e)},!0)}}return!i})(i,t,n?n.diagLog():e.diagLog())&&e.processNext(t,n)},e._doTeardown=function(){o()}})),r}return function(e,t){function n(){this.constructor=e}"function"!=typeof t&&null!==t&&he("Class extends value "+String(t)+" is not a constructor or null"),La(e,t),e.prototype=null===t?We(t):(n.prototype=t.prototype,new n)}(t,e),t.__ieDyn=1,t}(ul),dl="Plugins must provide initialize method",fl="SDK is still unloading...",pl=je(((al={cookieCfg:{}}).extensions={rdOnly:!0,ref:!0,v:[]},al.channels={rdOnly:!0,ref:!0,v:[]},al.extensionConfig={ref:!0,v:{}},al.createPerfMgr=$a,al.loggingLevelConsole=0,al.diagnosticLogInterval=$a,al));function gl(e,t){return new Vu(t)}function hl(e,t){var n=!1;return jn(t,(function(t){if(t===e)return n=!0,-1})),n}function ml(e,t,n,i){n&&z(n,(function(n,r){i&&An(r)&&An(t[n])&&ml(e,t[n],r,i),i&&An(r)&&An(t[n])?ml(e,t[n],r,i):e.set(t,n,r)}))}function vl(e,t){var n=null,i=-1;return jn(e,(function(e,r){if(e.w===t)return n=e,i=r,-1})),{i,l:n}}var yl=function(){function e(){var t,n,i,o,s,a,c,u,l,d,f,p,g,h,m,v,y,C,S,_,T,b,R,D,w,E,P,I;Fe(e,this,(function(e){function A(e){return E&&E.enabled||I||(e||i&&i.queue.length>0)&&(P||(P=!0,Z(t.watch((function(e){var t=e.cfg.diagnosticLogInterval;t&&t>0||(t=1e4);var n=!1;E&&(n=E.enabled,E.cancel()),E=function(e,t){return vi(this,!1,r,hi(arguments))}(B,t),E.unref(),E.enabled=n})))),E.enabled=!0),E}function M(){var e={};D=[];var t=function(t){t&&jn(t,(function(t){if(t.identifier&&t.version&&!e[t.identifier]){var n=t.identifier+"="+t.version;D.push(n),e[t.identifier]=t}}))};t(p),f&&jn(f,(function(e){t(e)})),t(d)}function L(){n=!1,(t=Jc({},pl,e.logger)).cfg.loggingLevelConsole=1,J(e,"config",{g:function(){return t.cfg},s:function(t){e.updateCfg(t,!1)}}),J(e,"pluginVersionStringArr",{g:function(){return D||M(),D}}),J(e,"pluginVersionString",{g:function(){return w||(D||M(),w=D.join(";")),w||Ga}}),J(e,"logger",{g:function(){return i||(i=new mu(t.cfg),t.logger=i),i},s:function(e){t.logger=e,i!==e&&(Zc(i,!1),i=e)}}),e.logger=new mu(t.cfg),R=[];var r=e.config.extensions||[];r.splice(0,r.length),Es(r,R),h=new ll,o=[],Zc(s,!1),s=null,a=null,c=null,Zc(u,!1),u=null,l=null,d=[],f=null,p=null,g=!1,m=null,v=kc("AIBaseCore",!0),y=ol(),_=null,T=null,C=sl(),b=[],w=null,D=null,I=!1}function q(){var n=tl(K(),t.cfg,e);return n.onComplete(A),n}function j(t){var n=function(e,t,n){var i,r=[],o=[],s={};return jn(n,(function(n){(x(n)||x(n.initialize))&&ge(dl);var i=n.priority,a=n.identifier;n&&i&&(x(s[i])?s[i]=a:function(e,t){vu(e).warnToConsole(t)}(e,"Two extensions have same priority #"+i+" - "+s[i]+", "+a)),!i||i<t?r.push(n):o.push(n)})),(i={}).core=r,i.channels=o,i}(e.logger,500,d);l=null,w=null,D=null,p=Xu(Es(p=(f||[])[0]||[],n.channels));var i=Es(Xu(n.core),p);R=Ue(i);var r=e.config.extensions||[];r.splice(0,r.length),Es(r,R);var o=q();p&&p.length>0&&Yu(o.createNew(p),i),Yu(o,i),t&&G(t)}function U(e){var t=null,n=null,i=[];return jn(R,(function(t){if(t.identifier===e&&t!==h)return n=t,-1;t.getChannel&&i.push(t)})),!n&&i.length>0&&jn(i,(function(t){if(!(n=t.getChannel(e)))return-1})),n&&(t={plugin:n,setEnabled:function(e){Ju(n).disabled=!e},isEnabled:function(){var e=Ju(n);return!e.teardown&&!e.disabled},remove:function(e,t){var i;void 0===e&&(e=!0);var r=[n],o=((i={reason:1}).isAsync=e,i);V(r,o,(function(e){e&&j({reason:32,removed:r}),t&&t(e)}))}}),t}function K(){if(!l){var n=(R||[]).slice();-1===Un(n,h)&&n.push(h),l=rl(Xu(n),t.cfg,e)}return l}function V(n,i,r){if(n&&n.length>0){var o=nl(rl(n,t.cfg,e),e);o.onComplete((function(){var e=!1,t=[];jn(d,(function(i,r){hl(i,n)?e=!0:t.push(i)})),d=t,w=null,D=null;var i=[];f&&(jn(f,(function(t,r){var o=[];jn(t,(function(t){hl(t,n)?e=!0:o.push(t)})),i.push(o)})),f=i),r&&r(e),A()})),o.processNext(i)}else r(!1)}function B(){if(i&&i.queue){var t=i.queue.slice(0);i.queue.length=0,jn(t,(function(t){var n,i=((n={}).name=m||"InternalMessageId: "+t.messageId,n.iKey=T,n.time=sc(new Date),n.baseType=fu.dataType,n.baseData={message:t.message},n);e.track(i)}))}}function $(e,t,n,i){var r=1,o=!1,s=null;function a(){r--,o&&0===r&&(s&&s.cancel(),s=null,t&&t(o),t=null)}return i=i||5e3,p&&p.length>0&&q().createNew(p).iterate((function(t){if(t.flush){r++;var o=!1;t.flush(e,(function(){o=!0,a()}),n)||o||(e&&null==s?s=yi((function(){s=null,a()}),i):a())}})),o=!0,a(),!0}function G(t){var n=il(K(),e);n.onComplete(A),e._updateHook&&!0===e._updateHook(n,t)||n.processNext(t)}function Y(t){var n=e.logger;n?(yu(n,2,73,t),A()):ge(t)}function X(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],2)}function Z(e){C.add(e)}L(),e._getDbgPlgTargets=function(){return[R]},e.isInitialized=function(){return n},e.initialize=function(r,o,a,u){g&&ge(fl),e.isInitialized()&&ge("Core cannot be initialized more than once"),r=(t=Jc(r,pl,a||e.logger,!1)).cfg,Z(t.watch((function(e){T=e.cfg.instrumentationKey;var t=e.ref(e.cfg,Ja);z(t,(function(n){e.ref(t,n)})),x(T)&&ge("Please provide instrumentation key")}))),!(s=u)&&e.getNotifyMgr(),Z(t.watch((function(e){var t=e.cfg.disableDbgExt;!0===t&&S&&(s.removeNotificationListener(S),S=null),s&&!S&&!0!==t&&(S=function(e){if(!eu){eu={};for(var t=0;t<iu.length;t++)eu[iu[t]]=ou(iu[t],e)}return eu}(e.cfg),s.addNotificationListener(S))}))),Z(t.watch((function(e){var t,n,i,r,o=e.cfg.enablePerfMgr;!o&&c&&(c=null),o&&(n="createPerfMgr",i=gl,(t=e.cfg)?!(r=t[n])&&x(r)&&(r=k(i)?{}:i,t[n]=r):r=k(i)?{}:i)}))),e.logger=a;var l=r.extensions;if((d=[]).push.apply(d,qa(qa([],o),l)),f=r.channels,j(null),p&&0!==p.length||ge("No channels available"),f&&f.length>1){var h=e.getPlugin("TeeChannelController");h&&h.plugin||yu(i,1,28,"TeeChannel required")}!function(e,t,n){jn(t,(function(t){var i=Yc(e,t.w,n);delete t.w,t.rm=function(){i.rm()}}))}(r,b,i),b=null,n=!0,e.releaseQueue(),e.pollInternalLogs()},e.getChannels=function(){var e=[];return p&&jn(p,(function(t){e.push(t)})),Ue(e)},e.track=function(t){zu(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===t&&(X(t),ge("Invalid telemetry item")),!t.name&&x(t.name)&&(X(t),ge("telemetry name required")),t.iKey=t.iKey||T,t.time=t.time||sc(new Date),t.ver=t.ver||"4.0",!g&&e.isInitialized()?q().processNext(t):o.push(t)}),(function(){return{item:t}}),!t.sync)},e.getProcessTelContext=q,e.getNotifyMgr=function(){return s||(s=new Hu(t.cfg),e._notificationManager=s),s},e.addNotificationListener=function(t){e.getNotifyMgr().addNotificationListener(t)},e.removeNotificationListener=function(e){s&&s.removeNotificationListener(e)},e.getCookieMgr=function(){return u||(u=function(e,t){var n,i,r,o,s,a,c,u,l;e=Jc(e||Eu,null,t).cfg,s=Yc(e,(function(t){t.setDf(t.cfg,Pu),i=t.ref(t.cfg,"cookieCfg"),r=i.path||"/",o=i.domain,a=!1!==Nu(e,i),c=i.getCookie||Lu,u=i.setCookie||qu,l=i.delCookie||qu}),t);var d=(n={isEnabled:function(){var n=!1!==Nu(e,i)&&a&&Ou(t),r=Eu._ckMgr;return n&&r&&d!==r&&(n=xu(r)),n},setEnabled:function(e){a=!1!==e,i.enabled=e},set:function(e,t,n,s,a){var c,l=!1;if(xu(d)&&!function(e,t){return!!(t&&e&&F(e.blockedCookies)&&-1!==Un(e.blockedCookies,t))||Iu(e,t)}(i,e)){var f={},p=Ot(t||Ga),g=tn(p,";");if(-1!==g&&(p=Ot(Hi(t,g)),f=Au(ji(t,g+1))),cc(f,"domain",s||o,H,k),!x(n)){var h=mc();if(k(f.expires)){var m=un()+1e3*n;if(m>0){var v=new Date;v.setTime(m),cc(f,"expires",Fu(v,h?_u:Tu)||Fu(v,h?_u:Tu)||Ga,H)}}h||cc(f,"max-age",Ga+n,null,k)}var y=typeof location===Fa&&location?location:ue("location");y&&"https:"===y.protocol&&(cc(f,"secure",null,null,k),null===Ru&&(c=(fe()||{}).userAgent,Ru=!(N(c)&&(oc(c,"CPU iPhone OS 12")||oc(c,"iPad; CPU OS 12")||oc(c,"Macintosh; Intel Mac OS X 10_14")&&oc(c,"Version/")&&oc(c,"Safari")||oc(c,"Macintosh; Intel Mac OS X 10_14")&&nu(c,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||oc(c,"Chrome/5")||oc(c,"Chrome/6")||oc(c,"UnrealEngine")&&!oc(c,"Chrome")||oc(c,"UCBrowser/12")||oc(c,"UCBrowser/11")))),Ru&&cc(f,"SameSite","None",null,k)),cc(f,"path",a||r,null,k),u(e,Mu(p,f)),l=!0}return l},get:function(e){var t=Ga;return xu(d)&&!Iu(i,e)&&(t=c(e)),t},del:function(e,t){var n=!1;return xu(d)&&(n=d.purge(e,t)),n},purge:function(e,n){var i,r=!1;if(Ou(t)){var o=((i={}).path=n||"/",i.expires="Thu, 01 Jan 1970 00:00:01 GMT",i);mc()||(o["max-age"]="0"),l(e,Mu(Ga,o)),r=!0}return r}},n.unload=function(e){s&&s.rm(),s=null},n);return d._ckMgr=d,d}(t.cfg,e.logger)),u},e.setCookieMgr=function(e){u!==e&&(Zc(u,!1),u=e)},e.getPerfMgr=function(){return a||c||Z(t.watch((function(t){if(t.cfg.enablePerfMgr){var n=t.cfg.createPerfMgr;O(n)&&(c=n(e,e.getNotifyMgr()))}}))),a||c||null},e.setPerfMgr=function(e){a=e},e.eventCnt=function(){return o.length},e.releaseQueue=function(){if(n&&o.length>0){var e=o;o=[],jn(e,(function(e){q().processNext(e)}))}},e.pollInternalLogs=function(e){return m=e||null,I=!1,E&&E.cancel(),A(!0)},e.stopPollingInternalLogs=function(){I=!0,E&&E.cancel(),B()},lc(e,(function(){return h}),["addTelemetryInitializer"]),e.unload=function(t,r,o){var a;void 0===t&&(t=!0),n||ge("SDK is not initialized"),g&&ge(fl);var c,l=((a={reason:50}).isAsync=t,a.flushComplete=!1,a);t&&!r&&(c=Js((function(e){r=e})));var d=nl(K(),e);function f(t){l.flushComplete=t,g=!0,y.run(d,l),e.stopPollingInternalLogs(),d.processNext(l)}return d.onComplete((function(){C.run(e.logger),Qc([u,s,i],t,(function(){L(),r&&r(l)}))}),e),B(),$(t,f,6,o)||f(!1),c},e.getPlugin=U,e.addPlugin=function(e,t,n,i){if(!e)return i&&i(!1),void Y(dl);var r=U(e.identifier);if(r&&!t)return i&&i(!1),void Y("Plugin ["+e.identifier+"] is already loaded!");var o={reason:16};function s(t){d.push(e),o.added=[e],j(o),i&&i(!0)}if(r){var a=[r.plugin];V(a,{reason:2,isAsync:!!n},(function(e){e?(o.removed=a,o.reason|=32,s()):i&&i(!1)}))}else s()},e.updateCfg=function(n,i){var r;if(void 0===i&&(i=!0),e.isInitialized()){r={reason:1,cfg:t.cfg,oldCfg:Ba({},t.cfg),newConfig:Ba({},n),merge:i},n=r.newConfig;var o=t.cfg;n.extensions=o.extensions,n.channels=o.channels}t._block((function(e){var t=e.cfg;ml(e,t,n,i),i||z(t,(function(i){W(n,i)||e.set(t,i,$a)})),e.setDf(t,pl)}),!0),t.notify(),r&&G(r)},e.evtNamespace=function(){return v},e.flush=$,e.getTraceCtx=function(e){var t;return _||(t={},_={getName:function(){return t.name},setName:function(e){t.name=e},getTraceId:function(){return t.traceId},setTraceId:function(e){Bu(e,32,"00000000000000000000000000000000")&&(t.traceId=e)},getSpanId:function(){return t.spanId},setSpanId:function(e){Bu(e,16,"0000000000000000")&&(t.spanId=e)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(e){t.traceFlags=e}}),_},e.setTraceCtx=function(e){_=e||null},e.addUnloadHook=Z,uc(e,"addUnloadCb",(function(){return y}),"add"),e.onCfgChange=function(i){var r,o,s,a;return n?r=Yc(t.cfg,i,e.logger):((a=vl(o=b,s=i).l)||(a={w:s,rm:function(){var e=vl(o,s);-1!==e.i&&o.splice(e.i,1)}},o.push(a)),r=a),{rm:function(){r.rm()}}},e.getWParam=function(){return le()||t.cfg.enableWParam?0:-1}}))}return e.__ieDyn=1,e}(),Cl=Tr({Verbose:0,Information:1,Warning:2,Error:3,Critical:4}),Sl={diagnosticLogInterval:{fb:void 0,isVal:function(e){return e&&e>0},v:1e4}},_l=function(){function e(t){var n,i=new yl;(x(t)||x(t.instrumentationKey)&&x(t.connectionString))&&ge("Invalid input configuration"),Fe(e,this,(function(e){function r(){var e=Jc(t||{},Sl);n=e.cfg,i.addUnloadHook(Yc(e,(function(){if(n.connectionString){var e=function(e){if(!e)return{};var t=e.split(";"),n=Aa(t,(function(e,t){var n=t.split("=");if(2===n.length){var i=n[0].toLowerCase(),r=n[1];e[i]=r}return e}),{});if(qe(n).length>0){if(n.endpointsuffix){var i=n.location?n.location+".":"";n.ingestionendpoint=n.ingestionendpoint||"https://"+i+"dc."+n.endpointsuffix}n.ingestionendpoint=n.ingestionendpoint||Ct}return n}(n.connectionString),t=e.ingestionendpoint;n.endpointUrl=t?t+St:n.endpointUrl,n.instrumentationKey=e.instrumentationkey||n.instrumentationKey}}))),i.initialize(n,[new Oa])}J(e,"config",{g:function(){return n}}),r(),e.initialize=r,lc(e,i,["track","flush","pollInternalLogs","stopPollingInternalLogs","unload","getPlugin","addPlugin","evtNamespace","addUnloadCb","onCfgChange"])}))}return e.__ieDyn=1,e}()},9141:(e,t,n)=>{"use strict";var i;n.d(t,{Z:()=>w});var r,o="undefined",s="prototype",a="function",c="_dynClass",u="_unknown_",l=Object,d=l.getPrototypeOf,f=l.getOwnPropertyNames,p=(typeof globalThis!==o&&(r=globalThis),r||typeof self===o||(r=self),r||typeof window===o||(r=window),r||typeof n.g===o||(r=n.g),r||{}),g=p.__dynProto$Gbl||(p.__dynProto$Gbl={o:(i={},i.setInstFuncs=!0,i.useBaseInst=!0,i),n:1e3});function h(e,t){return e&&l.prototype.hasOwnProperty.call(e,t)}function m(e){return e&&(e===l.prototype||e===Array.prototype)}function v(e){return m(e)||e===Function.prototype}function y(e){var t;if(e){if(d)return d(e);var n=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);t=e._dyn__proto__||n,h(e,"_dyn__proto__")||(delete e._dynInstProto,t=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=n)}return t}function C(e,t){var n=[];if(f)n=f(e);else for(var i in e)"string"==typeof i&&h(e,i)&&n.push(i);if(n&&n.length>0)for(var r=0;r<n.length;r++)t(n[r])}function S(e,t,n){return"constructor"!==t&&typeof e[t]===a&&(n||h(e,t))}function _(e){throw new TypeError("DynamicProto: "+e)}function T(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function b(e,t,n,i){var r=null;if(e&&h(n,c)){var o=e._dynInstFuncs||{};if((r=(o[n._dynClass]||{})[t])||_("Missing ["+t+"] "+a),!r._dynInstChk&&!1!==o._dynInstChk){for(var s=!h(e,t),u=y(e),l=[];s&&u&&!v(u)&&!T(l,u);){var d=u[t];if(d){s=d===i;break}l.push(u),u=y(u)}try{s&&(e[t]=r),r._dynInstChk=1}catch(e){o._dynInstChk=!1}}}return r}function R(e,t,n){var i=t[e];return i===n&&(i=y(t)[e]),typeof i!==a&&_("["+e+"] is not a "+a),i}function D(e,t){return h(e,s)?e.name||t||u:((e||{}).constructor||{}).name||t||u}function w(e,t,n,i){h(e,s)||_("theClass is an invalid class definition.");var r=e.prototype;(function(e,t){if(d){for(var n=[],i=y(t);i&&!v(i)&&!T(n,i);){if(i===e)return!0;n.push(i),i=y(i)}return!1}return!0})(r,t)||_("["+D(e)+"] not in hierarchy of ["+D(t)+"]");var o=null;h(r,c)?o=r._dynClass:(o="_dynCls$"+D(e,"_")+"$"+g.n,g.n++,r._dynClass=o);var a=w._dfOpts,u=!!a.useBaseInst;u&&i&&void 0!==i.useBaseInst&&(u=!!i.useBaseInst);var l=function(e){var t={};return C(e,(function(n){!t[n]&&S(e,n,!1)&&(t[n]=e[n])})),t}(t),f=function(e,t,n,i){function r(e,t,n){var r=t[n];if(r._isDynProxy&&i){var o=e._dynInstFuncs||{};!1!==o._dynInstChk&&(r=(o[t._dynClass]||{})[n]||r)}return function(){return r.apply(e,arguments)}}var o={};C(n,(function(e){o[e]=r(t,n,e)}));for(var s=y(e),a=[];s&&!v(s)&&!T(a,s);)C(s,(function(e){!o[e]&&S(s,e,!d)&&(o[e]=r(t,s,e))})),a.push(s),s=y(s);return o}(r,t,l,u);n(t,f);var p=!!d&&!!a.setInstFuncs;p&&i&&(p=!!i.setInstFuncs),function(e,t,n,i,r){if(!m(e)){var o=n._dynInstFuncs=n._dynInstFuncs||{},s=o[t]=o[t]||{};!1!==o._dynInstChk&&(o._dynInstChk=!!r),C(n,(function(t){S(n,t,!1)&&n[t]!==i[t]&&(s[t]=n[t],delete n[t],(!h(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function(){return(b(this,t,e,n)||R(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)))}))}}(r,o,t,l,!1!==p)}w._dfOpts=g.o},217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(9496);var r,o=n(5108);!function(e){e[e.NOT_INSTANTIATED=0]="NOT_INSTANTIATED",e[e.INSTANTIATING=1]="INSTANTIATING",e[e.INSTANTIATED=2]="INSTANTIATED"}(r||(r={}));class s{constructor(e,t){this._instantiationStatus=r.NOT_INSTANTIATED,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}sendEventData(e,t){this._telemetryClient?this._telemetryClient.logEvent(e,t):this._instantiationStatus!==r.INSTANTIATED&&this._eventQueue.push({eventName:e,data:t})}sendErrorData(e,t){if(!this._telemetryClient)return void(this._instantiationStatus!==r.INSTANTIATED&&this._exceptionQueue.push({exception:e,data:t}));const n={stack:e.stack,message:e.message,name:e.name};t?t.properties={...t.properties,...n}:t={properties:n},this._telemetryClient.logEvent("unhandlederror",t)}async flush(){return this._telemetryClient?.flush()}async dispose(){await this.flush(),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===r.NOT_INSTANTIATED&&(this._instantiationStatus=r.INSTANTIATING,this._clientFactory(this._key).then((e=>{this._telemetryClient=e,this._instantiationStatus=r.INSTANTIATED,this._flushQueues()})).catch((e=>{o.error(e),this._instantiationStatus=r.INSTANTIATED})))}}class a{static applyReplacements(e,t){for(const n of Object.keys(e))for(const i of t)i.lookup.test(n)&&(void 0!==i.replacementString?e[n]=i.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return 74===e.length&&"-"===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.8.4"}}static getInstance(){return a._instance||(a._instance=new a),a._instance}}function c(e){if(e.userAgentData){const t=e.userAgentData.brands[e.userAgentData.brands.length-1];return`${e.userAgentData.platform} - ${t?.brand} v${t?.version}}`}return e.appVersion}class u extends 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){const i={...t};for(const e of Object.keys(i??{})){const t=i[e];"string"==typeof e&&void 0!==t&&(i[e]=new this.vscodeAPI.TelemetryTrustedValue("string"==typeof t?t:t.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())))}}{constructor(e,t){let r=e=>(async(e,t)=>{let i;try{const t=await Promise.resolve().then(n.bind(n,2672));i=new t.ApplicationInsights({instrumentationKey:e,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0,autoTrackPageVisitTime:!1,emitLineDelimitedJson:!1,disableInstrumentationKeyValidation:!0})}catch(e){return Promise.reject(e)}return{logEvent:(e,n)=>{const r={...n?.properties,...n?.measurements};t?.length&&a.applyReplacements(r,t),i?.track({name:e,data:r})},flush:async()=>{i?.flush(!1)},dispose:async()=>(i?.flush(!0),new Promise((e=>{i?.unload(!0,(()=>{e(),i=void 0}))})))}})(e,t);a.shouldUseOneDataSystemSDK(e)&&(r=e=>(async(e,t,i)=>{let r=await(async(e,t,i)=>{const r=await Promise.resolve().then(n.bind(n,7164)),o=await Promise.resolve().then(n.bind(n,1488)),s=new r.AppInsightsCore,a=new o.PostChannel,c={instrumentationKey:e,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[a]]};if(i){c.extensionConfig={};const e={alwaysUseXhrOverride:!0,httpXHROverride:i};c.extensionConfig[a.identifier]=e}const u=t.workspace.getConfiguration("telemetry").get("internalTesting");return s.initialize(c,[]),s.addTelemetryInitializer((e=>{u&&(e.ext=e.ext??{},e.ext.utc=e.ext.utc??{},e.ext.utc.flags=8462029)})),s})(e,t,i);const o=async()=>{try{return new Promise(((e,t)=>{r?r.flush(!0,(e=>{e||t("Failed to flush app 1DS!")})):e()}))}catch(e){throw new Error("Failed to flush 1DS!\n"+e.message)}};return{logEvent:(e,t)=>{try{r?.track({name:e,baseData:{name:e,properties:t?.properties,measurements:t?.measurements}})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},flush:o,dispose:async()=>(await o(),new Promise((e=>{r?r.unload(!0,(()=>{e(),r=void 0})):e()})))}})(e,i));const o={release:c(navigator),platform:"web",architecture:"web"},u=new s(e,r);if(e&&0===e.indexOf("AIF"))throw new Error("AIF keys are no longer supported. Please switch to 1DS keys for 1st party extensions");super(u,i,{additionalCommonProperties:a.getAdditionalCommonProperties(o)})}}},8583:(e,t,n)=>{"use strict";var i=n(7418);function r(e,t){if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0}function o(e){return n.g.Buffer&&"function"==typeof n.g.Buffer.isBuffer?n.g.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var s=n(69),a=Object.prototype.hasOwnProperty,c=Array.prototype.slice,u="foo"===function(){}.name;function l(e){return Object.prototype.toString.call(e)}function d(e){return!o(e)&&"function"==typeof n.g.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer)))}var f=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function g(e){if(s.isFunction(e)){if(u)return e.name;var t=e.toString().match(p);return t&&t[1]}}function h(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function m(e){if(u||!s.isFunction(e))return s.inspect(e);var t=g(e);return"[Function"+(t?": "+t:"")+"]"}function v(e,t,n,i,r){throw new f.AssertionError({message:n,actual:e,expected:t,operator:i,stackStartFunction:r})}function y(e,t){e||v(e,!0,t,"==",f.ok)}function C(e,t,n,i){if(e===t)return!0;if(o(e)&&o(t))return 0===r(e,t);if(s.isDate(e)&&s.isDate(t))return e.getTime()===t.getTime();if(s.isRegExp(e)&&s.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(d(e)&&d(t)&&l(e)===l(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===r(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var a=(i=i||{actual:[],expected:[]}).actual.indexOf(e);return-1!==a&&a===i.expected.indexOf(t)||(i.actual.push(e),i.expected.push(t),function(e,t,n,i){if(null==e||null==t)return!1;if(s.isPrimitive(e)||s.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var r=S(e),o=S(t);if(r&&!o||!r&&o)return!1;if(r)return C(e=c.call(e),t=c.call(t),n);var a,u,l=b(e),d=b(t);if(l.length!==d.length)return!1;for(l.sort(),d.sort(),u=l.length-1;u>=0;u--)if(l[u]!==d[u])return!1;for(u=l.length-1;u>=0;u--)if(!C(e[a=l[u]],t[a],n,i))return!1;return!0}(e,t,n,i))}return n?e===t:e==t}function S(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function T(e,t,n,i){var r;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(i=n,n=null),r=function(e){var t;try{e()}catch(e){t=e}return t}(t),i=(n&&n.name?" ("+n.name+").":".")+(i?" "+i:"."),e&&!r&&v(r,n,"Missing expected exception"+i);var o="string"==typeof i,a=!e&&r&&!n;if((!e&&s.isError(r)&&o&&_(r,n)||a)&&v(r,n,"Got unwanted exception"+i),e&&r&&n&&!_(r,n)||!e&&r)throw r}f.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return h(m(e.actual),128)+" "+e.operator+" "+h(m(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var i=n.stack,r=g(t),o=i.indexOf("\n"+r);if(o>=0){var s=i.indexOf("\n",o+1);i=i.substring(s+1)}this.stack=i}}},s.inherits(f.AssertionError,Error),f.fail=v,f.ok=y,f.equal=function(e,t,n){e!=t&&v(e,t,n,"==",f.equal)},f.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",f.notEqual)},f.deepEqual=function(e,t,n){C(e,t,!1)||v(e,t,n,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,n){C(e,t,!0)||v(e,t,n,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,n){C(e,t,!1)&&v(e,t,n,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function e(t,n,i){C(t,n,!0)&&v(t,n,i,"notDeepStrictEqual",e)},f.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",f.strictEqual)},f.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",f.notStrictEqual)},f.throws=function(e,t,n){T(!0,e,t,n)},f.doesNotThrow=function(e,t,n){T(!1,e,t,n)},f.ifError=function(e){if(e)throw e},f.strict=i((function e(t,n){t||v(t,!0,n,"==",e)}),f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual}),f.strict.strict=f.strict;var b=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}},6076:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},2014:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},69:(e,t,n)=>{var i=n(4155),r=n(5108),o=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var i=arguments,r=i.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}})),a=i[n];n<r;a=i[++n])m(a)||!_(a)?s+=" "+a:s+=" "+c(a);return s},t.deprecate=function(e,o){if(C(n.g.process))return function(){return t.deprecate(e,o).apply(this,arguments)};if(!0===i.noDeprecation)return e;var s=!1;return function(){if(!s){if(i.throwDeprecation)throw new Error(o);i.traceDeprecation?r.trace(o):r.error(o),s=!0}return e.apply(this,arguments)}};var s,a={};function c(e,n){var i={seen:[],stylize:l};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),h(n)?i.showHidden=n:n&&t._extend(i,n),C(i.showHidden)&&(i.showHidden=!1),C(i.depth)&&(i.depth=2),C(i.colors)&&(i.colors=!1),C(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=u),d(i,e,i.depth)}function u(e,t){var n=c.styles[t];return n?"["+c.colors[n][0]+"m"+e+"["+c.colors[n][1]+"m":e}function l(e,t){return e}function d(e,n,i){if(e.customInspect&&n&&R(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return y(r)||(r=d(e,r,i)),r}var o=function(e,t){if(C(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return v(t)?e.stylize(""+t,"number"):h(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),b(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(n);if(0===s.length){if(R(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(S(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(T(n))return e.stylize(Date.prototype.toString.call(n),"date");if(b(n))return f(n)}var u,l="",_=!1,D=["{","}"];return g(n)&&(_=!0,D=["[","]"]),R(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),S(n)&&(l=" "+RegExp.prototype.toString.call(n)),T(n)&&(l=" "+Date.prototype.toUTCString.call(n)),b(n)&&(l=" "+f(n)),0!==s.length||_&&0!=n.length?i<0?S(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=_?function(e,t,n,i,r){for(var o=[],s=0,a=t.length;s<a;++s)k(t,String(s))?o.push(p(e,t,n,i,String(s),!0)):o.push("");return r.forEach((function(r){r.match(/^\d+$/)||o.push(p(e,t,n,i,r,!0))})),o}(e,n,i,a,s):s.map((function(t){return p(e,n,i,a,t,_)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,D)):D[0]+l+D[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,i,r,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),k(i,r)||(s="["+r+"]"),a||(e.seen.indexOf(c.value)<0?(a=m(n)?d(e,c.value,null):d(e,c.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),C(s)){if(o&&r.match(/^\d+$/))return a;(s=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function g(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function v(e){return"number"==typeof e}function y(e){return"string"==typeof e}function C(e){return void 0===e}function S(e){return _(e)&&"[object RegExp]"===D(e)}function _(e){return"object"==typeof e&&null!==e}function T(e){return _(e)&&"[object Date]"===D(e)}function b(e){return _(e)&&("[object Error]"===D(e)||e instanceof Error)}function R(e){return"function"==typeof e}function D(e){return Object.prototype.toString.call(e)}function w(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(C(s)&&(s=i.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var n=i.pid;a[e]=function(){var i=t.format.apply(t,arguments);r.error("%s %d: %s",e,n,i)}}else a[e]=function(){};return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=g,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=v,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=C,t.isRegExp=S,t.isObject=_,t.isDate=T,t.isError=b,t.isFunction=R,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(2014);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function P(){var e=new Date,t=[w(e.getHours()),w(e.getMinutes()),w(e.getSeconds())].join(":");return[e.getDate(),E[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){r.log("%s - %s",P(),t.format.apply(t,arguments))},t.inherits=n(6076),t._extend=function(e,t){if(!t||!_(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}},5623:e=>{"use strict";function t(e,t,r){e instanceof RegExp&&(e=n(e,r)),t instanceof RegExp&&(t=n(t,r));var o=i(e,t,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+e.length,o[1]),post:r.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function i(e,t,n){var i,r,o,s,a,c=n.indexOf(e),u=n.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(i=[],o=n.length;l>=0&&!a;)l==c?(i.push(l),c=n.indexOf(e,l+1)):1==i.length?a=[i.pop(),u]:((r=i.pop())<o&&(o=r,s=u),u=n.indexOf(t,l+1)),l=c<u&&c>=0?c:u;i.length&&(a=[o,s])}return a}e.exports=t,t.range=i},5108:(e,t,n)=>{var i=n(9539),r=n(8583);function o(){return(new Date).getTime()}var s,a=Array.prototype.slice,c={};s=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var u=[[function(){},"log"],[function(){s.log.apply(s,arguments)},"info"],[function(){s.log.apply(s,arguments)},"warn"],[function(){s.warn.apply(s,arguments)},"error"],[function(e){c[e]=o()},"time"],[function(e){var t=c[e];if(!t)throw new Error("No such label: "+e);delete c[e];var n=o()-t;s.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=i.format.apply(null,arguments),s.error(e.stack)},"trace"],[function(e){s.log(i.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=a.call(arguments,1);r.ok(!1,i.format.apply(null,t))}},"assert"]],l=0;l<u.length;l++){var d=u[l],f=d[0],p=d[1];s[p]||(s[p]=f)}e.exports=s},7418:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var s,a,c=r(e),u=1;u<arguments.length;u++){for(var l in s=Object(arguments[u]))n.call(s,l)&&(c[l]=s[l]);if(t){a=t(s);for(var d=0;d<a.length;d++)i.call(s,a[d])&&(c[a[d]]=s[a[d]])}}return c}},6470:(e,t,n)=>{var i=n(4155);function r(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var s=n>=0?arguments[n]:i.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,t="/"===s.charAt(0))}return(t?"/":"")+(e=r(o(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."},t.normalize=function(e){var n=t.isAbsolute(e),i="/"===s(e,-1);return(e=r(o(e.split("/"),(function(e){return!!e})),!n).join("/"))||n||(e="."),e&&i&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function i(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=i(e.split("/")),o=i(n.split("/")),s=Math.min(r.length,o.length),a=s,c=0;c<s;c++)if(r[c]!==o[c]){a=c;break}var u=[];for(c=a;c<r.length;c++)u.push("..");return(u=u.concat(o.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,i=-1,r=!0,o=e.length-1;o>=1;--o)if(47===(t=e.charCodeAt(o))){if(!r){i=o;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":e.slice(0,i)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,i=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){n=t+1;break}}else-1===i&&(r=!1,i=t+1);return-1===i?"":e.slice(n,i)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,i=-1,r=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===i&&(r=!1,i=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){n=s+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)};var s=function(e,t,n){return e.substr(t,n)}},4155:e=>{var t,n,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var a,c=[],u=!1,l=-1;function d(){u&&a&&(u=!1,a.length?c=a.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(a=c,c=[];++l<t;)a&&a[l].run();l=-1,t=c.length}a=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},8460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageClientMiddlewareBase=void 0;const i=n(6470),r=n(9496),o=n(5770),s=n(6298),a=n(6255),c=n(9467),u=n(5175),l=n(7962),d=n(24),f=n(3699),p=3e5,g=6e4;t.LanguageClientMiddlewareBase=class{constructor(e,t,n,i){this.serviceContainer=e,this.sendTelemetryEventFunc=n,this.serverVersion=i,this.lastCaptured=new Map,this.nextWindow=0,this.eventCount=0,this.workspace={configuration:async(e,t,n)=>{var i,s;if(!this.serviceContainer)return n(e,t);const c=this.serviceContainer.get(l.IInterpreterService),d=this.serviceContainer.get(u.IEnvironmentVariablesProvider);let f=n(e,t);if((0,a.isThenable)(f)&&(f=await f),f instanceof o.ResponseError)return f;for(const[t,n]of e.items.entries()){if("python"===n.section){const e=n.scopeUri?r.Uri.parse(n.scopeUri):void 0,o=f[t];o.pythonPath=null!==(s=null===(i=await c.getActiveInterpreter(e))||void 0===i?void 0:i.path)&&void 0!==s?s:"python";const a=(await d.getEnvironmentVariables(e)).PYTHONPATH;a&&(o._envPYTHONPATH=a)}this.configurationHook(n,f[t])}return f}},this.connectedPromise=(0,a.createDeferred)(),this.notebooks={didOpen:this.didOpenNotebook.bind(this),didSave:this.didSaveNotebook.bind(this),didChange:this.didChangeNotebook.bind(this),didClose:this.didCloseNotebook.bind(this)},this.handleDiagnostics=this.handleDiagnostics.bind(this),this.didOpen=this.didOpen.bind(this),this.didSave=this.didSave.bind(this),this.didChange=this.didChange.bind(this),this.didClose=this.didClose.bind(this),this.willSave=this.willSave.bind(this),this.willSaveWaitUntil=this.willSaveWaitUntil.bind(this),t===f.LanguageServerType.Node?this.eventName=d.EventName.LANGUAGE_SERVER_REQUEST:t===f.LanguageServerType.Jedi&&(this.eventName=d.EventName.JEDI_LANGUAGE_SERVER_REQUEST)}configurationHook(e,t){}get connected(){return this.connectedPromise.promise}connect(){this.connectedPromise.resolve(!0)}disconnect(){this.connectedPromise=(0,a.createDeferred)(),this.connectedPromise.resolve(!1)}didChange(){return this.callNext("didChange",arguments)}didOpen(){return this.callNext("didOpen",arguments)}didClose(){return this.callNext("didClose",arguments)}didSave(){return this.callNext("didSave",arguments)}willSave(){return this.callNext("willSave",arguments)}willSaveWaitUntil(){return this.callNext("willSaveWaitUntil",arguments)}async didOpenNotebook(){return this.callNotebooksNext("didOpen",arguments)}async didSaveNotebook(){return this.callNotebooksNext("didSave",arguments)}async didChangeNotebook(){return this.callNotebooksNext("didChange",arguments)}async didCloseNotebook(){return this.callNotebooksNext("didClose",arguments)}async provideCompletionItem(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/completion",p,"provideCompletionItem",arguments,((e,t)=>t?{resultLength:Array.isArray(t)?t.length:t.items.length}:{resultLength:0}))}async provideHover(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/hover",p,"provideHover",arguments)}async handleDiagnostics(e,t,n){if(await this.connected){const t=e.fsPath,n=t?i.basename(t):void 0;if(!n||!n.startsWith(s.HiddenFilePrefix))return this.callNext("handleDiagnostics",arguments)}}async resolveCompletionItem(){if(await this.connected)return this.callNextAndSendTelemetry("completionItem/resolve",p,"resolveCompletionItem",arguments)}async provideSignatureHelp(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/signatureHelp",p,"provideSignatureHelp",arguments)}async provideDefinition(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/definition",g,"provideDefinition",arguments)}async provideReferences(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/references",g,"provideReferences",arguments)}async provideDocumentHighlights(){if(await this.connected)return this.callNext("provideDocumentHighlights",arguments)}async provideDocumentSymbols(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/documentSymbol",p,"provideDocumentSymbols",arguments)}async provideWorkspaceSymbols(){if(await this.connected)return this.callNextAndSendTelemetry("workspace/symbol",g,"provideWorkspaceSymbols",arguments)}async provideCodeActions(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/codeAction",p,"provideCodeActions",arguments)}async provideCodeLenses(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/codeLens",p,"provideCodeLenses",arguments)}async resolveCodeLens(){if(await this.connected)return this.callNextAndSendTelemetry("codeLens/resolve",p,"resolveCodeLens",arguments)}async provideDocumentFormattingEdits(){if(await this.connected)return this.callNext("provideDocumentFormattingEdits",arguments)}async provideDocumentRangeFormattingEdits(){if(await this.connected)return this.callNext("provideDocumentRangeFormattingEdits",arguments)}async provideOnTypeFormattingEdits(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/onTypeFormatting",p,"provideOnTypeFormattingEdits",arguments)}async provideRenameEdits(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/rename",g,"provideRenameEdits",arguments)}async prepareRename(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/prepareRename",g,"prepareRename",arguments)}async provideDocumentLinks(){if(await this.connected)return this.callNext("provideDocumentLinks",arguments)}async resolveDocumentLink(){if(await this.connected)return this.callNext("resolveDocumentLink",arguments)}async provideDeclaration(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/declaration",g,"provideDeclaration",arguments)}async provideTypeDefinition(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/typeDefinition",g,"provideTypeDefinition",arguments)}async provideImplementation(){if(await this.connected)return this.callNext("provideImplementation",arguments)}async provideDocumentColors(){if(await this.connected)return this.callNext("provideDocumentColors",arguments)}async provideColorPresentations(){if(await this.connected)return this.callNext("provideColorPresentations",arguments)}async provideFoldingRanges(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/foldingRange",p,"provideFoldingRanges",arguments)}async provideSelectionRanges(){if(await this.connected)return this.callNextAndSendTelemetry("textDocument/selectionRange",g,"provideSelectionRanges",arguments)}async prepareCallHierarchy(){if(await this.connected)return this.callNext("prepareCallHierarchy",arguments)}async provideCallHierarchyIncomingCalls(){if(await this.connected)return this.callNext("provideCallHierarchyIncomingCalls",arguments)}async provideCallHierarchyOutgoingCalls(){if(await this.connected)return this.callNext("provideCallHierarchyOutgoingCalls",arguments)}async provideDocumentSemanticTokens(){if(await this.connected)return this.callNext("provideDocumentSemanticTokens",arguments)}async provideDocumentSemanticTokensEdits(){if(await this.connected)return this.callNext("provideDocumentSemanticTokensEdits",arguments)}async provideDocumentRangeSemanticTokens(){if(await this.connected)return this.callNext("provideDocumentRangeSemanticTokens",arguments)}async provideLinkedEditingRange(){if(await this.connected)return this.callNext("provideLinkedEditingRange",arguments)}callNext(e,t){return this.notebookAddon&&this.notebookAddon[e]?this.notebookAddon[e](...t):t[t.length-1](...t)}callNotebooksNext(e,t){var n;return(null===(n=this.notebookAddon)||void 0===n?void 0:n.notebooks)&&this.notebookAddon.notebooks[e]?this.notebookAddon.notebooks[e](...t):t[t.length-1](...t)}callNextAndSendTelemetry(e,t,n,i,r){const o=Date.now(),s=new c.StopWatch;let u=!1;const l=[...i];l[l.length-1]=(...e)=>(u=!0,i[i.length-1](...e)),o>this.nextWindow&&(this.nextWindow=o+36e5,this.eventCount=0);const d=this.lastCaptured.get(e),f=n=>{if(this.eventName&&u&&this.eventCount<100&&(!d||o-d>t)){this.lastCaptured.set(e,o),this.eventCount+=1;const t=e.replace(/\//g,"."),i={lsVersion:this.serverVersion||"unknown",method:t};let a=s.elapsedTime;r&&(a={duration:a,...r(this,n)}),this.sendTelemetryEventFunc(this.eventName,a,i)}return n},p=this.callNext(n,l);return(0,a.isThenable)(p)?p.then(f):f(p)}}},3699:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.IExtensionSingleActivationService=t.ILanguageServerOutputChannel=t.ILanguageServerProxy=t.ILanguageServerManager=t.ILanguageServerAnalysisOptions=t.ILanguageClientFactory=t.ILanguageServerActivator=t.LanguageServerType=t.IExtensionActivationService=t.IExtensionActivationManager=void 0,t.IExtensionActivationManager=Symbol("IExtensionActivationManager"),t.IExtensionActivationService=Symbol("IExtensionActivationService"),(n=t.LanguageServerType||(t.LanguageServerType={})).Jedi="Jedi",n.JediLSP="JediLSP",n.Microsoft="Microsoft",n.Node="Pylance",n.None="None",t.ILanguageServerActivator=Symbol("ILanguageServerActivator"),t.ILanguageClientFactory=Symbol("ILanguageClientFactory"),t.ILanguageServerAnalysisOptions=Symbol("ILanguageServerAnalysisOptions"),t.ILanguageServerManager=Symbol("ILanguageServerManager"),t.ILanguageServerProxy=Symbol("ILanguageServerProxy"),t.ILanguageServerOutputChannel=Symbol("ILanguageServerOutputChannel"),t.IExtensionSingleActivationService=Symbol("IExtensionSingleActivationService")},9497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildApi=void 0;const i=n(8595),r=n(6298);t.buildApi=function(e){return{pylance:{createClient:(...e)=>new i.LanguageClient(r.PYTHON_LANGUAGE,"Python Language Server",e[0],e[1]),start:e=>e.start(),stop:e=>e.stop(),getTelemetryReporter:()=>e}}}},774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createStatusItem=void 0;const i=n(9496),r=n(8654);t.createStatusItem=function(){if("createLanguageStatusItem"in i.languages){const e=i.languages.createLanguageStatusItem("python.projectStatus",{language:"python"});return e.name=r.LanguageService.statusItem.name,e.severity=i.LanguageStatusSeverity.Warning,e.text=r.LanguageService.statusItem.text,e.detail=r.LanguageService.statusItem.detail,e.command={title:r.Common.learnMore,command:"vscode.open",arguments:[i.Uri.parse("https://aka.ms/AAdzyh4")]},e}return{dispose:()=>{}}}},8654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Common=t.LanguageService=void 0;const i=n(9496);(t.LanguageService||(t.LanguageService={})).statusItem={name:i.l10n.t("Python IntelliSense Status"),text:i.l10n.t("Partial Mode"),detail:i.l10n.t("Limited IntelliSense provided by Pylance")},(t.Common||(t.Common={})).learnMore=i.l10n.t("Learn more")},6298:function(e,t,n){"use strict";var i,r,o,s,a=n(4155),c=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),u=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||c(t,e,n)};function l(){return"1"===a.env.VSC_PYTHON_UNIT_TEST}Object.defineProperty(t,"__esModule",{value:!0}),t.UseProposedApi=t.isUnitTestExecution=t.isTestExecution=t.isCI=t.DEFAULT_INTERPRETER_SETTING=t.ThemeIcons=t.Octicons=t.Commands=t.CommandSource=t.AppinsightsKey=t.TENSORBOARD_EXTENSION_ID=t.JUPYTER_EXTENSION_ID=t.PYLANCE_EXTENSION_ID=t.PVSC_EXTENSION_ID=t.PYTHON_NOTEBOOKS=t.PYTHON=t.InteractiveScheme=t.InteractiveInputScheme=t.NotebookCellScheme=t.PYTHON_WARNINGS=t.PYTHON_LANGUAGE=void 0,t.PYTHON_LANGUAGE="python",t.PYTHON_WARNINGS="PYTHONWARNINGS",t.NotebookCellScheme="vscode-notebook-cell",t.InteractiveInputScheme="vscode-interactive-input",t.InteractiveScheme="vscode-interactive",t.PYTHON=[{scheme:"file",language:t.PYTHON_LANGUAGE},{scheme:"untitled",language:t.PYTHON_LANGUAGE},{scheme:"vscode-notebook",language:t.PYTHON_LANGUAGE},{scheme:t.NotebookCellScheme,language:t.PYTHON_LANGUAGE},{scheme:t.InteractiveInputScheme,language:t.PYTHON_LANGUAGE}],t.PYTHON_NOTEBOOKS=[{scheme:"vscode-notebook",language:t.PYTHON_LANGUAGE},{scheme:t.NotebookCellScheme,language:t.PYTHON_LANGUAGE},{scheme:t.InteractiveInputScheme,language:t.PYTHON_LANGUAGE}],t.PVSC_EXTENSION_ID="ms-python.python",t.PYLANCE_EXTENSION_ID="ms-python.vscode-pylance",t.JUPYTER_EXTENSION_ID="ms-toolsai.jupyter",t.TENSORBOARD_EXTENSION_ID="ms-toolsai.tensorboard",t.AppinsightsKey="0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255",(s=t.CommandSource||(t.CommandSource={})).ui="ui",s.commandPalette="commandpalette",(o=t.Commands||(t.Commands={})).ClearStorage="python.clearCacheAndReload",o.CreateNewFile="python.createNewFile",o.ClearWorkspaceInterpreter="python.clearWorkspaceInterpreter",o.Create_Environment="python.createEnvironment",o.Create_Environment_Button="python.createEnvironment-button",o.Create_Environment_Check="python.createEnvironmentCheck",o.Create_Terminal="python.createTerminal",o.Debug_In_Terminal="python.debugInTerminal",o.Enable_SourceMap_Support="python.enableSourceMapSupport",o.Exec_In_Terminal="python.execInTerminal",o.Exec_In_Terminal_Icon="python.execInTerminal-icon",o.Exec_In_Separate_Terminal="python.execInDedicatedTerminal",o.Exec_In_REPL="python.execInREPL",o.Exec_Selection_In_Django_Shell="python.execSelectionInDjangoShell",o.Exec_In_REPL_Enter="python.execInREPLEnter",o.Exec_Selection_In_Terminal="python.execSelectionInTerminal",o.GetSelectedInterpreterPath="python.interpreterPath",o.InstallJupyter="python.installJupyter",o.InstallPython="python.installPython",o.InstallPythonOnLinux="python.installPythonOnLinux",o.InstallPythonOnMac="python.installPythonOnMac",o.LaunchTensorBoard="python.launchTensorBoard",o.PickLocalProcess="python.pickLocalProcess",o.RefreshTensorBoard="python.refreshTensorBoard",o.ReportIssue="python.reportIssue",o.Set_Interpreter="python.setInterpreter",o.Set_ShebangInterpreter="python.setShebangInterpreter",o.Start_REPL="python.startREPL",o.Tests_Configure="python.configureTests",o.TriggerEnvironmentSelection="python.triggerEnvSelection",o.ViewOutput="python.viewOutput",(r=t.Octicons||(t.Octicons={})).Add="$(add)",r.Test_Pass="$(check)",r.Test_Fail="$(alert)",r.Test_Error="$(x)",r.Test_Skip="$(circle-slash)",r.Downloading="$(cloud-download)",r.Installing="$(desktop-download)",r.Search="$(search)",r.Search_Stop="$(search-stop)",r.Star="$(star-full)",r.Gear="$(gear)",r.Warning="$(warning)",r.Error="$(error)",r.Lightbulb="$(lightbulb)",r.Folder="$(folder)",(i=t.ThemeIcons||(t.ThemeIcons={})).Refresh="refresh",i.SpinningLoader="loading~spin",t.DEFAULT_INTERPRETER_SETTING="python",t.isCI="true"===a.env.TRAVIS||void 0!==a.env.TF_BUILD||"true"===a.env.GITHUB_ACTIONS,t.isTestExecution=function(){return"1"===a.env.VSC_PYTHON_CI_TEST||l()},t.isUnitTestExecution=l,t.UseProposedApi=Symbol("USE_VSC_PROPOSED_API"),u(n(9732),t)},6255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.waitForCondition=t.flattenIterator=t.iterable=t.mapToIterator=t.chain=t.iterEmpty=t.createDeferredFromPromise=t.createDeferredFrom=t.createDeferred=t.isPromise=t.isThenable=t.sleep=void 0,t.sleep=async function(e){return new Promise((t=>{setTimeout((()=>t(e)),e)}))},t.isThenable=function(e){return"function"==typeof(null==e?void 0:e.then)},t.isPromise=function(e){return"function"==typeof(null==e?void 0:e.then)&&"function"==typeof(null==e?void 0:e.catch)};class n{constructor(e=null){this.scope=e,this._resolved=!1,this._rejected=!1,this._promise=new Promise(((e,t)=>{this._resolve=e,this._reject=t}))}resolve(e){this.completed||(this._resolve.apply(this.scope?this.scope:this,[e]),this._resolved=!0)}reject(e){this.completed||(this._reject.apply(this.scope?this.scope:this,[e]),this._rejected=!0)}get promise(){return this._promise}get resolved(){return this._resolved}get rejected(){return this._rejected}get completed(){return this._rejected||this._resolved}}function i(e=null){return new n(e)}async function r(e,t){const n=void 0===t?-1:t;try{return{index:n,result:await e.next(),err:null}}catch(e){return{index:n,err:e,result:null}}}t.createDeferred=i,t.createDeferredFrom=function(...e){const t=i();return Promise.all(e).then(t.resolve.bind(t)).catch(t.reject.bind(t)),t},t.createDeferredFromPromise=function(e){const t=i();return e.then(t.resolve.bind(t)).catch(t.reject.bind(t)),t},t.iterEmpty=function(){return async function*(){}()};const o=new Promise((()=>{}));async function*s(e,t){const n=e.map(r);let i=e.length;for(;i>0;){const{index:s,result:a,err:c}=await Promise.race(n);null!==c?(n[s]=o,i-=1,void 0!==t&&await t(c,s)):a.done?(n[s]=o,i-=1,void 0!==a.value&&(yield a.value)):(n[s]=r(e[s],s),yield a.value)}}function a(e){const t=e;return void 0===t[Symbol.asyncIterator]&&(t[Symbol.asyncIterator]=()=>t),t}t.chain=s,t.mapToIterator=async function*(e,t,n=!0){if(n){const n=e.map((e=>async function*(){yield t(e)}()));yield*a(s(n))}else yield*e.map(t)},t.iterable=a,t.flattenIterator=async function(e){const t=[];for await(const n of a(e))t.push(n);return t},t.waitForCondition=async function(e,t,n){return new Promise((async(i,r)=>{const o=setTimeout((()=>{clearTimeout(o),clearTimeout(s),r(new Error(n))}),t),s=setInterval((async()=>{await e().catch((()=>!1))&&(clearTimeout(o),clearTimeout(s),i())}),10)}))}},9467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StopWatch=void 0,t.StopWatch=class{constructor(){this.started=(new Date).getTime()}get elapsedTime(){return(new Date).getTime()-this.started}reset(){this.started=(new Date).getTime()}}},5175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEnvironmentVariablesProvider=t.IEnvironmentVariablesService=void 0,t.IEnvironmentVariablesService=Symbol("IEnvironmentVariablesService"),t.IEnvironmentVariablesProvider=Symbol("IEnvironmentVariablesProvider")},9732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HiddenFilePrefix=t.EXTENSION_ROOT_DIR=void 0;const i=n(6470),r=i.basename("/");t.EXTENSION_ROOT_DIR="client"===r?i.join("/","..",".."):i.join("/","..","..","..",".."),t.HiddenFilePrefix="_HiddenFile_"},7962:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IActivatedEnvironmentLaunch=t.IInterpreterStatusbarVisibilityFilter=t.IInterpreterHelper=t.IInterpreterDisplay=t.IInterpreterService=t.ICondaService=t.IComponentAdapter=void 0,t.IComponentAdapter=Symbol("IComponentAdapter"),t.ICondaService=Symbol("ICondaService"),t.IInterpreterService=Symbol("IInterpreterService"),t.IInterpreterDisplay=Symbol("IInterpreterDisplay"),t.IInterpreterHelper=Symbol("IInterpreterHelper"),t.IInterpreterStatusbarVisibilityFilter=Symbol("IInterpreterStatusbarVisibilityFilter"),t.IActivatedEnvironmentLaunch=Symbol("IActivatedEnvironmentLaunch")},24:(e,t)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformErrors=t.EventName=void 0,(i=t.EventName||(t.EventName={})).FORMAT_ON_TYPE="FORMAT.FORMAT_ON_TYPE",i.EDITOR_LOAD="EDITOR.LOAD",i.REPL="REPL",i.CREATE_NEW_FILE_COMMAND="CREATE_NEW_FILE_COMMAND",i.SELECT_INTERPRETER="SELECT_INTERPRETER",i.SELECT_INTERPRETER_ENTER_BUTTON="SELECT_INTERPRETER_ENTER_BUTTON",i.SELECT_INTERPRETER_ENTER_CHOICE="SELECT_INTERPRETER_ENTER_CHOICE",i.SELECT_INTERPRETER_SELECTED="SELECT_INTERPRETER_SELECTED",i.SELECT_INTERPRETER_ENTER_OR_FIND="SELECT_INTERPRETER_ENTER_OR_FIND",i.SELECT_INTERPRETER_ENTERED_EXISTS="SELECT_INTERPRETER_ENTERED_EXISTS",i.PYTHON_INTERPRETER="PYTHON_INTERPRETER",i.PYTHON_INSTALL_PACKAGE="PYTHON_INSTALL_PACKAGE",i.ENVIRONMENT_WITHOUT_PYTHON_SELECTED="ENVIRONMENT_WITHOUT_PYTHON_SELECTED",i.PYTHON_ENVIRONMENTS_API="PYTHON_ENVIRONMENTS_API",i.PYTHON_INTERPRETER_DISCOVERY="PYTHON_INTERPRETER_DISCOVERY",i.PYTHON_INTERPRETER_DISCOVERY_INVALID_NATIVE="PYTHON_INTERPRETER_DISCOVERY_INVALID_NATIVE",i.PYTHON_INTERPRETER_AUTO_SELECTION="PYTHON_INTERPRETER_AUTO_SELECTION",i.PYTHON_INTERPRETER_ACTIVATION_ENVIRONMENT_VARIABLES="PYTHON_INTERPRETER.ACTIVATION_ENVIRONMENT_VARIABLES",i.PYTHON_INTERPRETER_ACTIVATION_FOR_RUNNING_CODE="PYTHON_INTERPRETER_ACTIVATION_FOR_RUNNING_CODE",i.PYTHON_INTERPRETER_ACTIVATION_FOR_TERMINAL="PYTHON_INTERPRETER_ACTIVATION_FOR_TERMINAL",i.TERMINAL_SHELL_IDENTIFICATION="TERMINAL_SHELL_IDENTIFICATION",i.PYTHON_INTERPRETER_ACTIVATE_ENVIRONMENT_PROMPT="PYTHON_INTERPRETER_ACTIVATE_ENVIRONMENT_PROMPT",i.PYTHON_NOT_INSTALLED_PROMPT="PYTHON_NOT_INSTALLED_PROMPT",i.CONDA_INHERIT_ENV_PROMPT="CONDA_INHERIT_ENV_PROMPT",i.TERMINAL_DEACTIVATE_PROMPT="TERMINAL_DEACTIVATE_PROMPT",i.REQUIRE_JUPYTER_PROMPT="REQUIRE_JUPYTER_PROMPT",i.ACTIVATED_CONDA_ENV_LAUNCH="ACTIVATED_CONDA_ENV_LAUNCH",i.ENVFILE_VARIABLE_SUBSTITUTION="ENVFILE_VARIABLE_SUBSTITUTION",i.ENVFILE_WORKSPACE="ENVFILE_WORKSPACE",i.EXECUTION_CODE="EXECUTION_CODE",i.EXECUTION_DJANGO="EXECUTION_DJANGO",i.DEBUG_IN_TERMINAL_BUTTON="DEBUG.IN_TERMINAL",i.DEBUG_ADAPTER_USING_WHEELS_PATH="DEBUG_ADAPTER.USING_WHEELS_PATH",i.DEBUG_SESSION_ERROR="DEBUG_SESSION.ERROR",i.DEBUG_SESSION_START="DEBUG_SESSION.START",i.DEBUG_SESSION_STOP="DEBUG_SESSION.STOP",i.DEBUG_SESSION_USER_CODE_RUNNING="DEBUG_SESSION.USER_CODE_RUNNING",i.DEBUGGER="DEBUGGER",i.DEBUGGER_ATTACH_TO_CHILD_PROCESS="DEBUGGER.ATTACH_TO_CHILD_PROCESS",i.DEBUGGER_ATTACH_TO_LOCAL_PROCESS="DEBUGGER.ATTACH_TO_LOCAL_PROCESS",i.UNITTEST_CONFIGURING="UNITTEST.CONFIGURING",i.UNITTEST_CONFIGURE="UNITTEST.CONFIGURE",i.UNITTEST_DISCOVERY_TRIGGER="UNITTEST.DISCOVERY.TRIGGER",i.UNITTEST_DISCOVERING="UNITTEST.DISCOVERING",i.UNITTEST_DISCOVERING_STOP="UNITTEST.DISCOVERY.STOP",i.UNITTEST_DISCOVERY_DONE="UNITTEST.DISCOVERY.DONE",i.UNITTEST_RUN_STOP="UNITTEST.RUN.STOP",i.UNITTEST_RUN="UNITTEST.RUN",i.UNITTEST_RUN_ALL_FAILED="UNITTEST.RUN_ALL_FAILED",i.UNITTEST_DISABLED="UNITTEST.DISABLED",i.PYTHON_EXPERIMENTS_INIT_PERFORMANCE="PYTHON_EXPERIMENTS_INIT_PERFORMANCE",i.PYTHON_EXPERIMENTS_LSP_NOTEBOOKS="PYTHON_EXPERIMENTS_LSP_NOTEBOOKS",i.PYTHON_EXPERIMENTS_OPT_IN_OPT_OUT_SETTINGS="PYTHON_EXPERIMENTS_OPT_IN_OPT_OUT_SETTINGS",i.EXTENSION_SURVEY_PROMPT="EXTENSION_SURVEY_PROMPT",i.LANGUAGE_SERVER_ENABLED="LANGUAGE_SERVER.ENABLED",i.LANGUAGE_SERVER_TRIGGER_TIME="LANGUAGE_SERVER_TRIGGER_TIME",i.LANGUAGE_SERVER_STARTUP="LANGUAGE_SERVER.STARTUP",i.LANGUAGE_SERVER_READY="LANGUAGE_SERVER.READY",i.LANGUAGE_SERVER_TELEMETRY="LANGUAGE_SERVER.EVENT",i.LANGUAGE_SERVER_REQUEST="LANGUAGE_SERVER.REQUEST",i.LANGUAGE_SERVER_RESTART="LANGUAGE_SERVER.RESTART",i.TERMINAL_CREATE="TERMINAL.CREATE",i.ACTIVATE_ENV_IN_CURRENT_TERMINAL="ACTIVATE_ENV_IN_CURRENT_TERMINAL",i.ACTIVATE_ENV_TO_GET_ENV_VARS_FAILED="ACTIVATE_ENV_TO_GET_ENV_VARS_FAILED",i.DIAGNOSTICS_ACTION="DIAGNOSTICS.ACTION",i.DIAGNOSTICS_MESSAGE="DIAGNOSTICS.MESSAGE",i.USE_REPORT_ISSUE_COMMAND="USE_REPORT_ISSUE_COMMAND",i.HASHED_PACKAGE_NAME="HASHED_PACKAGE_NAME",i.JEDI_LANGUAGE_SERVER_ENABLED="JEDI_LANGUAGE_SERVER.ENABLED",i.JEDI_LANGUAGE_SERVER_STARTUP="JEDI_LANGUAGE_SERVER.STARTUP",i.JEDI_LANGUAGE_SERVER_READY="JEDI_LANGUAGE_SERVER.READY",i.JEDI_LANGUAGE_SERVER_REQUEST="JEDI_LANGUAGE_SERVER.REQUEST",i.TENSORBOARD_SESSION_LAUNCH="TENSORBOARD.SESSION_LAUNCH",i.TENSORBOARD_SESSION_DURATION="TENSORBOARD.SESSION_DURATION",i.TENSORBOARD_SESSION_DAEMON_STARTUP_DURATION="TENSORBOARD.SESSION_DAEMON_STARTUP_DURATION",i.TENSORBOARD_LAUNCH_PROMPT_SELECTION="TENSORBOARD.LAUNCH_PROMPT_SELECTION",i.TENSORBOARD_SESSION_E2E_STARTUP_DURATION="TENSORBOARD.SESSION_E2E_STARTUP_DURATION",i.TENSORBOARD_ENTRYPOINT_SHOWN="TENSORBOARD.ENTRYPOINT_SHOWN",i.TENSORBOARD_INSTALL_PROMPT_SHOWN="TENSORBOARD.INSTALL_PROMPT_SHOWN",i.TENSORBOARD_INSTALL_PROMPT_SELECTION="TENSORBOARD.INSTALL_PROMPT_SELECTION",i.TENSORBOARD_DETECTED_IN_INTEGRATED_TERMINAL="TENSORBOARD_DETECTED_IN_INTEGRATED_TERMINAL",i.TENSORBOARD_PACKAGE_INSTALL_RESULT="TENSORBOARD.PACKAGE_INSTALL_RESULT",i.TENSORBOARD_TORCH_PROFILER_IMPORT="TENSORBOARD.TORCH_PROFILER_IMPORT",i.TENSORBOARD_JUMP_TO_SOURCE_REQUEST="TENSORBOARD_JUMP_TO_SOURCE_REQUEST",i.TENSORBOARD_JUMP_TO_SOURCE_FILE_NOT_FOUND="TENSORBOARD_JUMP_TO_SOURCE_FILE_NOT_FOUND",i.ENVIRONMENT_CREATING="ENVIRONMENT.CREATING",i.ENVIRONMENT_CREATED="ENVIRONMENT.CREATED",i.ENVIRONMENT_FAILED="ENVIRONMENT.FAILED",i.ENVIRONMENT_INSTALLING_PACKAGES="ENVIRONMENT.INSTALLING_PACKAGES",i.ENVIRONMENT_INSTALLED_PACKAGES="ENVIRONMENT.INSTALLED_PACKAGES",i.ENVIRONMENT_INSTALLING_PACKAGES_FAILED="ENVIRONMENT.INSTALLING_PACKAGES_FAILED",i.ENVIRONMENT_BUTTON="ENVIRONMENT.BUTTON",i.ENVIRONMENT_DELETE="ENVIRONMENT.DELETE",i.ENVIRONMENT_REUSE="ENVIRONMENT.REUSE",i.ENVIRONMENT_CHECK_TRIGGER="ENVIRONMENT.CHECK.TRIGGER",i.ENVIRONMENT_CHECK_RESULT="ENVIRONMENT.CHECK.RESULT",i.ENVIRONMENT_TERMINAL_GLOBAL_PIP="ENVIRONMENT.TERMINAL.GLOBAL_PIP",(n=t.PlatformErrors||(t.PlatformErrors={})).FailedToParseVersion="FailedToParseVersion",n.FailedToDetermineOS="FailedToDetermineOS"},1496:e=>{"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},384:e=>{e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},9539:(e,t,n)=>{var i=n(4155),r=n(5108),o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++)n[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return n},s=/%[sdj%]/g;t.format=function(e){if(!C(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var i=arguments,r=i.length,o=String(e).replace(s,(function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}})),a=i[n];n<r;a=i[++n])v(a)||!T(a)?o+=" "+a:o+=" "+u(a);return o},t.deprecate=function(e,n){if(void 0!==i&&!0===i.noDeprecation)return e;if(void 0===i)return function(){return t.deprecate(e,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(i.throwDeprecation)throw new Error(n);i.traceDeprecation?r.trace(n):r.error(n),o=!0}return e.apply(this,arguments)}};var a,c={};function u(e,n){var i={seen:[],stylize:d};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),m(n)?i.showHidden=n:n&&t._extend(i,n),S(i.showHidden)&&(i.showHidden=!1),S(i.depth)&&(i.depth=2),S(i.colors)&&(i.colors=!1),S(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=l),f(i,e,i.depth)}function l(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function d(e,t){return e}function f(e,n,i){if(e.customInspect&&n&&D(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,e);return C(r)||(r=f(e,r,i)),r}var o=function(e,t){if(S(t))return e.stylize("undefined","undefined");if(C(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return y(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):v(t)?e.stylize("null","null"):void 0}(e,n);if(o)return o;var s=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(n)),R(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return p(n);if(0===s.length){if(D(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(b(n))return e.stylize(Date.prototype.toString.call(n),"date");if(R(n))return p(n)}var u,l="",d=!1,T=["{","}"];return h(n)&&(d=!0,T=["[","]"]),D(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(l=" "+RegExp.prototype.toString.call(n)),b(n)&&(l=" "+Date.prototype.toUTCString.call(n)),R(n)&&(l=" "+p(n)),0!==s.length||d&&0!=n.length?i<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),u=d?function(e,t,n,i,r){for(var o=[],s=0,a=t.length;s<a;++s)x(t,String(s))?o.push(g(e,t,n,i,String(s),!0)):o.push("");return r.forEach((function(r){r.match(/^\d+$/)||o.push(g(e,t,n,i,r,!0))})),o}(e,n,i,a,s):s.map((function(t){return g(e,n,i,a,t,d)})),e.seen.pop(),function(e,t,n){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(u,l,T)):T[0]+l+T[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,n,i,r,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),x(i,r)||(s="["+r+"]"),a||(e.seen.indexOf(c.value)<0?(a=v(n)?f(e,c.value,null):f(e,c.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),S(s)){if(o&&r.match(/^\d+$/))return a;(s=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function v(e){return null===e}function y(e){return"number"==typeof e}function C(e){return"string"==typeof e}function S(e){return void 0===e}function _(e){return T(e)&&"[object RegExp]"===w(e)}function T(e){return"object"==typeof e&&null!==e}function b(e){return T(e)&&"[object Date]"===w(e)}function R(e){return T(e)&&("[object Error]"===w(e)||e instanceof Error)}function D(e){return"function"==typeof e}function w(e){return Object.prototype.toString.call(e)}function E(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(S(a)&&(a=i.env.NODE_DEBUG||""),e=e.toUpperCase(),!c[e])if(new RegExp("\\b"+e+"\\b","i").test(a)){var n=i.pid;c[e]=function(){var i=t.format.apply(t,arguments);r.error("%s %d: %s",e,n,i)}}else c[e]=function(){};return c[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=m,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=C,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=S,t.isRegExp=_,t.isObject=T,t.isDate=b,t.isError=R,t.isFunction=D,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(384);var P=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var e=new Date,t=[E(e.getHours()),E(e.getMinutes()),E(e.getSeconds())].join(":");return[e.getDate(),P[e.getMonth()],t].join(" ")}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){r.log("%s - %s",k(),t.format.apply(t,arguments))},t.inherits=n(1496),t._extend=function(e,t){if(!t||!T(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function N(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(I&&e[I]){var t;if("function"!=typeof(t=e[I]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,i=new Promise((function(e,i){t=e,n=i})),r=[],o=0;o<arguments.length;o++)r.push(arguments[o]);r.push((function(e,i){e?n(e):t(i)}));try{e.apply(this,r)}catch(e){n(e)}return i}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),I&&Object.defineProperty(t,I,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=I,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return r.apply(o,arguments)};e.apply(this,t).then((function(e){i.nextTick(s,null,e)}),(function(e){i.nextTick(N,e,s)}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,o(e)),t}},1169:(e,t,n)=>{"use strict";e.exports=n(9054)},9054:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0,n(5669).default.install();const o=n(3870);r(n(3870),t);class s extends o.AbstractMessageReader{constructor(e){super(),this._onData=new o.Emitter,this._messageListener=e=>{this._onData.fire(e.data)},e.addEventListener("error",(e=>this.fireError(e))),e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}}t.BrowserMessageReader=s;class a extends o.AbstractMessageWriter{constructor(e){super(),this.port=e,this.errorCount=0,e.addEventListener("error",(e=>this.fireError(e)))}write(e){try{return this.port.postMessage(e),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}t.BrowserMessageWriter=a,t.createMessageConnection=function(e,t,n,i){return void 0===n&&(n=o.NullLogger),o.ConnectionStrategy.is(i)&&(i={connectionStrategy:i}),(0,o.createMessageConnection)(e,t,n,i)}},5669:(e,t,n)=>{"use strict";var i=n(5108);Object.defineProperty(t,"__esModule",{value:!0});const r=n(3870);class o extends r.AbstractMessageBuffer{constructor(e="utf-8"){super(e),this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return o.emptyBuffer}fromString(e,t){return(new TextEncoder).encode(e)}toString(e,t){return"ascii"===t?this.asciiDecoder.decode(e):new TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e:e.slice(0,t)}allocNative(e){return new Uint8Array(e)}}o.emptyBuffer=new Uint8Array(0);class s{constructor(e){this.socket=e,this._onData=new r.Emitter,this._messageListener=e=>{e.data.arrayBuffer().then((e=>{this._onData.fire(new Uint8Array(e))}),(()=>{(0,r.RAL)().console.error("Converting blob to array buffer failed.")}))},this.socket.addEventListener("message",this._messageListener)}onClose(e){return this.socket.addEventListener("close",e),r.Disposable.create((()=>this.socket.removeEventListener("close",e)))}onError(e){return this.socket.addEventListener("error",e),r.Disposable.create((()=>this.socket.removeEventListener("error",e)))}onEnd(e){return this.socket.addEventListener("end",e),r.Disposable.create((()=>this.socket.removeEventListener("end",e)))}onData(e){return this._onData.event(e)}}class a{constructor(e){this.socket=e}onClose(e){return this.socket.addEventListener("close",e),r.Disposable.create((()=>this.socket.removeEventListener("close",e)))}onError(e){return this.socket.addEventListener("error",e),r.Disposable.create((()=>this.socket.removeEventListener("error",e)))}onEnd(e){return this.socket.addEventListener("end",e),r.Disposable.create((()=>this.socket.removeEventListener("end",e)))}write(e,t){if("string"==typeof e){if(void 0!==t&&"utf-8"!==t)throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`);this.socket.send(e)}else this.socket.send(e);return Promise.resolve()}end(){this.socket.close()}}const c=new TextEncoder,u=Object.freeze({messageBuffer:Object.freeze({create:e=>new o(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if("utf-8"!==t.charset)throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`);return Promise.resolve(c.encode(JSON.stringify(e,void 0,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array))throw new Error("In a Browser environments only Uint8Arrays are supported.");return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new s(e),asWritableStream:e=>new a(e)}),console:i,timer:Object.freeze({setTimeout(e,t,...n){const i=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(i)}},setImmediate(e,...t){const n=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(n)}},setInterval(e,t,...n){const i=setInterval(e,t,...n);return{dispose:()=>clearInterval(i)}}})});function l(){return u}!function(e){e.install=function(){r.RAL.install(u)}}(l||(l={})),t.default=l},3870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0,t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.TraceValue=t.Trace=void 0;const i=n(839);Object.defineProperty(t,"Message",{enumerable:!0,get:function(){return i.Message}}),Object.defineProperty(t,"RequestType",{enumerable:!0,get:function(){return i.RequestType}}),Object.defineProperty(t,"RequestType0",{enumerable:!0,get:function(){return i.RequestType0}}),Object.defineProperty(t,"RequestType1",{enumerable:!0,get:function(){return i.RequestType1}}),Object.defineProperty(t,"RequestType2",{enumerable:!0,get:function(){return i.RequestType2}}),Object.defineProperty(t,"RequestType3",{enumerable:!0,get:function(){return i.RequestType3}}),Object.defineProperty(t,"RequestType4",{enumerable:!0,get:function(){return i.RequestType4}}),Object.defineProperty(t,"RequestType5",{enumerable:!0,get:function(){return i.RequestType5}}),Object.defineProperty(t,"RequestType6",{enumerable:!0,get:function(){return i.RequestType6}}),Object.defineProperty(t,"RequestType7",{enumerable:!0,get:function(){return i.RequestType7}}),Object.defineProperty(t,"RequestType8",{enumerable:!0,get:function(){return i.RequestType8}}),Object.defineProperty(t,"RequestType9",{enumerable:!0,get:function(){return i.RequestType9}}),Object.defineProperty(t,"ResponseError",{enumerable:!0,get:function(){return i.ResponseError}}),Object.defineProperty(t,"ErrorCodes",{enumerable:!0,get:function(){return i.ErrorCodes}}),Object.defineProperty(t,"NotificationType",{enumerable:!0,get:function(){return i.NotificationType}}),Object.defineProperty(t,"NotificationType0",{enumerable:!0,get:function(){return i.NotificationType0}}),Object.defineProperty(t,"NotificationType1",{enumerable:!0,get:function(){return i.NotificationType1}}),Object.defineProperty(t,"NotificationType2",{enumerable:!0,get:function(){return i.NotificationType2}}),Object.defineProperty(t,"NotificationType3",{enumerable:!0,get:function(){return i.NotificationType3}}),Object.defineProperty(t,"NotificationType4",{enumerable:!0,get:function(){return i.NotificationType4}}),Object.defineProperty(t,"NotificationType5",{enumerable:!0,get:function(){return i.NotificationType5}}),Object.defineProperty(t,"NotificationType6",{enumerable:!0,get:function(){return i.NotificationType6}}),Object.defineProperty(t,"NotificationType7",{enumerable:!0,get:function(){return i.NotificationType7}}),Object.defineProperty(t,"NotificationType8",{enumerable:!0,get:function(){return i.NotificationType8}}),Object.defineProperty(t,"NotificationType9",{enumerable:!0,get:function(){return i.NotificationType9}}),Object.defineProperty(t,"ParameterStructures",{enumerable:!0,get:function(){return i.ParameterStructures}});const r=n(6184);Object.defineProperty(t,"LinkedMap",{enumerable:!0,get:function(){return r.LinkedMap}}),Object.defineProperty(t,"LRUCache",{enumerable:!0,get:function(){return r.LRUCache}}),Object.defineProperty(t,"Touch",{enumerable:!0,get:function(){return r.Touch}});const o=n(3911);Object.defineProperty(t,"Disposable",{enumerable:!0,get:function(){return o.Disposable}});const s=n(7135);Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return s.Event}}),Object.defineProperty(t,"Emitter",{enumerable:!0,get:function(){return s.Emitter}});const a=n(3881);Object.defineProperty(t,"CancellationTokenSource",{enumerable:!0,get:function(){return a.CancellationTokenSource}}),Object.defineProperty(t,"CancellationToken",{enumerable:!0,get:function(){return a.CancellationToken}});const c=n(8211);Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:!0,get:function(){return c.SharedArraySenderStrategy}}),Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:!0,get:function(){return c.SharedArrayReceiverStrategy}});const u=n(6525);Object.defineProperty(t,"MessageReader",{enumerable:!0,get:function(){return u.MessageReader}}),Object.defineProperty(t,"AbstractMessageReader",{enumerable:!0,get:function(){return u.AbstractMessageReader}}),Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return u.ReadableStreamMessageReader}});const l=n(6654);Object.defineProperty(t,"MessageWriter",{enumerable:!0,get:function(){return l.MessageWriter}}),Object.defineProperty(t,"AbstractMessageWriter",{enumerable:!0,get:function(){return l.AbstractMessageWriter}}),Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return l.WriteableStreamMessageWriter}});const d=n(5530);Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:!0,get:function(){return d.AbstractMessageBuffer}});const f=n(1343);Object.defineProperty(t,"ConnectionStrategy",{enumerable:!0,get:function(){return f.ConnectionStrategy}}),Object.defineProperty(t,"ConnectionOptions",{enumerable:!0,get:function(){return f.ConnectionOptions}}),Object.defineProperty(t,"NullLogger",{enumerable:!0,get:function(){return f.NullLogger}}),Object.defineProperty(t,"createMessageConnection",{enumerable:!0,get:function(){return f.createMessageConnection}}),Object.defineProperty(t,"ProgressToken",{enumerable:!0,get:function(){return f.ProgressToken}}),Object.defineProperty(t,"ProgressType",{enumerable:!0,get:function(){return f.ProgressType}}),Object.defineProperty(t,"Trace",{enumerable:!0,get:function(){return f.Trace}}),Object.defineProperty(t,"TraceValue",{enumerable:!0,get:function(){return f.TraceValue}}),Object.defineProperty(t,"TraceFormat",{enumerable:!0,get:function(){return f.TraceFormat}}),Object.defineProperty(t,"SetTraceNotification",{enumerable:!0,get:function(){return f.SetTraceNotification}}),Object.defineProperty(t,"LogTraceNotification",{enumerable:!0,get:function(){return f.LogTraceNotification}}),Object.defineProperty(t,"ConnectionErrors",{enumerable:!0,get:function(){return f.ConnectionErrors}}),Object.defineProperty(t,"ConnectionError",{enumerable:!0,get:function(){return f.ConnectionError}}),Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return f.CancellationReceiverStrategy}}),Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:!0,get:function(){return f.CancellationSenderStrategy}}),Object.defineProperty(t,"CancellationStrategy",{enumerable:!0,get:function(){return f.CancellationStrategy}}),Object.defineProperty(t,"MessageStrategy",{enumerable:!0,get:function(){return f.MessageStrategy}}),Object.defineProperty(t,"TraceValues",{enumerable:!0,get:function(){return f.TraceValues}});const p=n(147);t.RAL=p.default},3881:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CancellationTokenSource=t.CancellationToken=void 0;const i=n(147),r=n(7574),o=n(7135);var s;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o.Event.None}),e.is=function(t){const n=t;return n&&(n===e.None||n===e.Cancelled||r.boolean(n.isCancellationRequested)&&!!n.onCancellationRequested)}}(s||(t.CancellationToken=s={}));const a=Object.freeze((function(e,t){const n=(0,i.default)().timer.setTimeout(e.bind(t),0);return{dispose(){n.dispose()}}}));class c{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?a:(this._emitter||(this._emitter=new o.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}t.CancellationTokenSource=class{get token(){return this._token||(this._token=new c),this._token}cancel(){this._token?this._token.cancel():this._token=s.Cancelled}dispose(){this._token?this._token instanceof c&&this._token.dispose():this._token=s.None}}},1343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.TraceValue=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const i=n(147),r=n(7574),o=n(839),s=n(6184),a=n(7135),c=n(3881);var u,l,d,f,p,g,h,m,v,y,C,S,_,T,b,R,D,w,E;!function(e){e.type=new o.NotificationType("$/cancelRequest")}(u||(u={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(l||(t.ProgressToken=l={})),function(e){e.type=new o.NotificationType("$/progress")}(d||(d={})),t.ProgressType=class{constructor(){}},function(e){e.is=function(e){return r.func(e)}}(f||(f={})),t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(p||(t.Trace=p={})),function(e){e.Off="off",e.Messages="messages",e.Compact="compact",e.Verbose="verbose"}(g||(t.TraceValue=g={})),t.TraceValues=g,function(e){e.fromString=function(t){if(!r.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(p||(t.Trace=p={})),function(e){e.Text="text",e.JSON="json"}(h||(t.TraceFormat=h={})),function(e){e.fromString=function(t){return r.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(h||(t.TraceFormat=h={})),function(e){e.type=new o.NotificationType("$/setTrace")}(m||(t.SetTraceNotification=m={})),function(e){e.type=new o.NotificationType("$/logTrace")}(v||(t.LogTraceNotification=v={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(y||(t.ConnectionErrors=y={}));class P extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,P.prototype)}}t.ConnectionError=P,function(e){e.is=function(e){const t=e;return t&&r.func(t.cancelUndispatched)}}(C||(t.ConnectionStrategy=C={})),function(e){e.is=function(e){const t=e;return t&&(void 0===t.kind||"id"===t.kind)&&r.func(t.createCancellationTokenSource)&&(void 0===t.dispose||r.func(t.dispose))}}(S||(t.IdCancellationReceiverStrategy=S={})),function(e){e.is=function(e){const t=e;return t&&"request"===t.kind&&r.func(t.createCancellationTokenSource)&&(void 0===t.dispose||r.func(t.dispose))}}(_||(t.RequestCancellationReceiverStrategy=_={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new c.CancellationTokenSource}),e.is=function(e){return S.is(e)||_.is(e)}}(T||(t.CancellationReceiverStrategy=T={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(u.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&r.func(t.sendCancellation)&&r.func(t.cleanup)}}(b||(t.CancellationSenderStrategy=b={})),function(e){e.Message=Object.freeze({receiver:T.Message,sender:b.Message}),e.is=function(e){const t=e;return t&&T.is(t.receiver)&&b.is(t.sender)}}(R||(t.CancellationStrategy=R={})),function(e){e.is=function(e){const t=e;return t&&r.func(t.handleMessage)}}(D||(t.MessageStrategy=D={})),function(e){e.is=function(e){const t=e;return t&&(R.is(t.cancellationStrategy)||C.is(t.connectionStrategy)||D.is(t.messageStrategy)||r.number(t.maxParallelism))}}(w||(t.ConnectionOptions=w={})),function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(E||(E={})),t.createMessageConnection=function(e,n,g,C){const _=void 0!==g?g:t.NullLogger;let T=0,b=0,w=0;const k="2.0",x=C?.maxParallelism??-1;let I,N=0;const O=new Map;let A;const F=new Map,M=new Map;let L,q,j=new s.LinkedMap,U=new Map,H=new Set,K=new Map,V=p.Off,W=h.Text,z=E.New;const B=new a.Emitter,$=new a.Emitter,G=new a.Emitter,J=new a.Emitter,Y=new a.Emitter,X=C&&C.cancellationStrategy?C.cancellationStrategy:R.Message;function Z(e){}function Q(){return z===E.Listening}function ee(){return z===E.Closed}function te(){return z===E.Disposed}function ne(){z!==E.New&&z!==E.Listening||(z=E.Closed,$.fire(void 0))}function ie(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function re(){L||0===j.size||-1!==x&&N>=x||(L=(0,i.default)().timer.setImmediate((async()=>{if(L=void 0,0===j.size)return;if(-1!==x&&N>=x)return;const e=j.shift();let t;try{N++;const n=C?.messageStrategy;t=D.is(n)?n.handleMessage(e,oe):oe(e)}catch(e){_.error(`Processing message queue failed: ${e.toString()}`)}finally{t instanceof Promise?t.then((()=>{N--,re()})).catch((e=>{_.error(`Processing message queue failed: ${e.toString()}`)})):N--,re()}})))}async function oe(e){return o.Message.isRequest(e)?async function(e){if(te())return Promise.resolve();function t(t,i,r){const s={jsonrpc:k,id:e.id};return t instanceof o.ResponseError?s.error=t.toJson():s.result=void 0===t?null:t,ue(s,i,r),n.write(s)}function i(t,i,r){const o={jsonrpc:k,id:e.id,error:t.toJson()};return ue(o,i,r),n.write(o)}!function(e){if(V!==p.Off&&q)if(W===h.Text){let t;V!==p.Verbose&&V!==p.Compact||!e.params||(t=`Params: ${ce(e.params)}\n\n`),q.log(`Received request '${e.method} - (${e.id})'.`,t)}else de("receive-request",e)}(e);const s=O.get(e.method);let a,c;s&&(a=s.type,c=s.handler);const u=Date.now();if(c||I){const n=e.id??String(Date.now()),s=S.is(X.receiver)?X.receiver.createCancellationTokenSource(n):X.receiver.createCancellationTokenSource(e);null!==e.id&&H.has(e.id)&&s.cancel(),null!==e.id&&K.set(n,s);try{let r;if(c)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return i(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but received none.`),e.method,u);r=c(s.token)}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byName)return i(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);r=c(...e.params,s.token)}else{if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byPosition)return i(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);r=c(e.params,s.token)}else I&&(r=I(e.method,e.params,s.token));const l=await r;await t(l,e.method,u)}catch(n){n instanceof o.ResponseError?await t(n,e.method,u):n&&r.string(n.message)?await i(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${n.message}`),e.method,u):await i(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}finally{K.delete(n)}}else await i(new o.ResponseError(o.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}(e):o.Message.isNotification(e)?async function(e){if(te())return;let t,n;if(e.method===u.type.method){const t=e.params.id;return H.delete(t),void le(e)}{const i=F.get(e.method);i&&(n=i.handler,t=i.type)}if(n||A)try{if(le(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==o.ParameterStructures.byName&&_.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),await n();else if(Array.isArray(e.params)){const i=e.params;e.method===d.type.method&&2===i.length&&l.is(i[0])?await n({token:i[0],value:i[1]}):(void 0!==t&&(t.parameterStructures===o.ParameterStructures.byName&&_.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&_.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${i.length} arguments`)),await n(...i))}else void 0!==t&&t.parameterStructures===o.ParameterStructures.byPosition&&_.error(`Notification ${e.method} defines parameters by position but received parameters by name`),await n(e.params);else A&&await A(e.method,e.params)}catch(t){t.message?_.error(`Notification handler '${e.method}' failed with message: ${t.message}`):_.error(`Notification handler '${e.method}' failed unexpectedly.`)}else G.fire(e)}(e):o.Message.isResponse(e)?ae(e):function(e){if(!e)return void _.error("Received empty message.");_.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(r.string(t.id)||r.number(t.id)){const e=t.id,n=U.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}e.onClose(ne),e.onError((function(e){B.fire([e,void 0,void 0])})),n.onClose(ne),n.onError((function(e){B.fire(e)}));const se=e=>{try{if(o.Message.isNotification(e)&&e.method===u.type.method){const t=e.params.id,i=ie(t),r=j.get(i);if(o.Message.isRequest(r)){const o=C?.connectionStrategy,s=o&&o.cancelUndispatched?o.cancelUndispatched(r,Z):void 0;if(s&&(void 0!==s.error||void 0!==s.result))return j.delete(i),K.delete(t),s.id=r.id,ue(s,e.method,Date.now()),void n.write(s).catch((()=>_.error("Sending response for canceled message failed.")))}const s=K.get(t);if(void 0!==s)return s.cancel(),void le(e);H.add(t)}!function(e,t){var n;o.Message.isRequest(t)?e.set(ie(t.id),t):o.Message.isResponse(t)?-1===x?e.set(null===(n=t.id)?"res-unknown-"+(++w).toString():"res-"+n.toString(),t):ae(t):e.set("not-"+(++b).toString(),t)}(j,e)}finally{re()}};function ae(e){if(!te())if(null===e.id)e.error?_.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):_.error("Received response message without id. No further error information provided.");else{const t=e.id,n=U.get(t);if(function(e,t){if(V!==p.Off&&q)if(W===h.Text){let n;if(V!==p.Verbose&&V!==p.Compact||(e.error&&e.error.data?n=`Error data: ${ce(e.error.data)}\n\n`:e.result?n=`Result: ${ce(e.result)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),t){const i=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";q.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${i}`,n)}else q.log(`Received response ${e.id} without active response promise.`,n)}else de("receive-response",e)}(e,n),void 0!==n){U.delete(t);try{if(e.error){const t=e.error;n.reject(new o.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?_.error(`Response handler '${n.method}' failed with message: ${e.message}`):_.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}function ce(e){if(null!=e)switch(V){case p.Verbose:return JSON.stringify(e,null,4);case p.Compact:return JSON.stringify(e);default:return}}function ue(e,t,n){if(V!==p.Off&&q)if(W===h.Text){let i;V!==p.Verbose&&V!==p.Compact||(e.error&&e.error.data?i=`Error data: ${ce(e.error.data)}\n\n`:e.result?i=`Result: ${ce(e.result)}\n\n`:void 0===e.error&&(i="No result returned.\n\n")),q.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,i)}else de("send-response",e)}function le(e){if(V!==p.Off&&q&&e.method!==v.type.method)if(W===h.Text){let t;V!==p.Verbose&&V!==p.Compact||(t=e.params?`Params: ${ce(e.params)}\n\n`:"No parameters provided.\n\n"),q.log(`Received notification '${e.method}'.`,t)}else de("receive-notification",e)}function de(e,t){if(!q||V===p.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};q.log(n)}function fe(){if(ee())throw new P(y.Closed,"Connection is closed.");if(te())throw new P(y.Disposed,"Connection is disposed.")}function pe(e){return void 0===e?null:e}function ge(e){return null===e?void 0:e}function he(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function me(e,t){switch(e){case o.ParameterStructures.auto:return he(t)?ge(t):[pe(t)];case o.ParameterStructures.byName:if(!he(t))throw new Error("Received parameters by name but param is not an object literal.");return ge(t);case o.ParameterStructures.byPosition:return[pe(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function ve(e,t){let n;const i=e.numberOfParams;switch(i){case 0:n=void 0;break;case 1:n=me(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<i;e++)n.push(pe(t[e]));if(t.length<i)for(let e=t.length;e<i;e++)n.push(null)}return n}const ye={sendNotification:(e,...t)=>{let i,s;if(fe(),r.string(e)){i=e;const n=t[0];let r=0,a=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(r=1,a=n);const c=t.length,u=c-r;switch(u){case 0:s=void 0;break;case 1:s=me(a,t[r]);break;default:if(a===o.ParameterStructures.byName)throw new Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);s=t.slice(r,c).map((e=>pe(e)))}}else{const n=t;i=e.method,s=ve(e,n)}const a={jsonrpc:k,method:i,params:s};return function(e){if(V!==p.Off&&q)if(W===h.Text){let t;V!==p.Verbose&&V!==p.Compact||(t=e.params?`Params: ${ce(e.params)}\n\n`:"No parameters provided.\n\n"),q.log(`Sending notification '${e.method}'.`,t)}else de("send-notification",e)}(a),n.write(a).catch((e=>{throw _.error("Sending notification failed."),e}))},onNotification:(e,t)=>{let n;return fe(),r.func(e)?A=e:t&&(r.string(e)?(n=e,F.set(e,{type:void 0,handler:t})):(n=e.method,F.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==n?F.delete(n):A=void 0}}},onProgress:(e,t,n)=>{if(M.has(t))throw new Error(`Progress handler for token ${t} already registered`);return M.set(t,n),{dispose:()=>{M.delete(t)}}},sendProgress:(e,t,n)=>ye.sendNotification(d.type,{token:t,value:n}),onUnhandledProgress:J.event,sendRequest:(e,...t)=>{function i(e,t){const n=X.sender.sendCancellation(e,t);void 0===n?_.log(`Received no promise from cancellation strategy when cancelling id ${t}`):n.catch((()=>{_.log(`Sending cancellation messages for id ${t} failed.`)}))}let s,a,u;if(fe(),function(){if(!Q())throw new Error("Call listen() first.")}(),r.string(e)){s=e;const n=t[0],i=t[t.length-1];let r=0,l=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(r=1,l=n);let d=t.length;c.CancellationToken.is(i)&&(d-=1,u=i);const f=d-r;switch(f){case 0:a=void 0;break;case 1:a=me(l,t[r]);break;default:if(l===o.ParameterStructures.byName)throw new Error(`Received ${f} parameters for 'by Name' request parameter structure.`);a=t.slice(r,d).map((e=>pe(e)))}}else{const n=t;s=e.method,a=ve(e,n);const i=e.numberOfParams;u=c.CancellationToken.is(n[i])?n[i]:void 0}const l=T++;let d,f=!1;void 0!==u&&(u.isCancellationRequested?f=!0:d=u.onCancellationRequested((()=>{i(ye,l)})));const g={jsonrpc:k,id:l,method:s,params:a};return function(e){if(V!==p.Off&&q)if(W===h.Text){let t;V!==p.Verbose&&V!==p.Compact||!e.params||(t=`Params: ${ce(e.params)}\n\n`),q.log(`Sending request '${e.method} - (${e.id})'.`,t)}else de("send-request",e)}(g),"function"==typeof X.sender.enableCancellation&&X.sender.enableCancellation(g),new Promise((async(e,t)=>{const r={method:s,timerStart:Date.now(),resolve:t=>{e(t),X.sender.cleanup(l),d?.dispose()},reject:e=>{t(e),X.sender.cleanup(l),d?.dispose()}};try{U.set(l,r),await n.write(g),f&&i(ye,l)}catch(e){throw U.delete(l),r.reject(new o.ResponseError(o.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),_.error("Sending request failed."),e}}))},onRequest:(e,t)=>{fe();let n=null;return f.is(e)?(n=void 0,I=e):r.string(e)?(n=null,void 0!==t&&(n=e,O.set(e,{handler:t,type:void 0}))):void 0!==t&&(n=e.method,O.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==n&&(void 0!==n?O.delete(n):I=void 0)}}},hasPendingResponse:()=>U.size>0,trace:async(e,t,n)=>{let i=!1,o=h.Text;void 0!==n&&(r.boolean(n)?i=n:(i=n.sendNotification||!1,o=n.traceFormat||h.Text)),V=e,W=o,q=V===p.Off?void 0:t,!i||ee()||te()||await ye.sendNotification(m.type,{value:p.toString(e)})},onError:B.event,onClose:$.event,onUnhandledNotification:G.event,onDispose:Y.event,end:()=>{n.end()},dispose:()=>{if(te())return;z=E.Disposed,Y.fire(void 0);const t=new o.ResponseError(o.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of U.values())e.reject(t);U=new Map,K=new Map,H=new Set,j=new s.LinkedMap,r.func(n.dispose)&&n.dispose(),r.func(e.dispose)&&e.dispose()},listen:()=>{fe(),function(){if(Q())throw new P(y.AlreadyListening,"Connection is already listening")}(),z=E.Listening,e.listen(se)},inspect:()=>{(0,i.default)().console.log("inspect")}};return ye.onNotification(v.type,(e=>{if(V===p.Off||!q)return;const t=V===p.Verbose||V===p.Compact;q.log(e.message,t?e.verbose:void 0)})),ye.onNotification(d.type,(async e=>{const t=M.get(e.token);t?await t(e.value):J.fire(e)})),ye}},3911:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Disposable=void 0,function(e){e.create=function(e){return{dispose:e}}}(n||(t.Disposable=n={}))},7135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Emitter=t.Event=void 0;const i=n(147);var r;!function(e){const t={dispose(){}};e.None=function(){return t}}(r||(t.Event=r={}));class o{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let i=0,r=this._callbacks.length;i<r;i++)if(this._callbacks[i]===e){if(this._contexts[i]===t)return this._callbacks.splice(i,1),void this._contexts.splice(i,1);n=!0}if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const t=[],n=this._callbacks.slice(0),r=this._contexts.slice(0);for(let o=0,s=n.length;o<s;o++)try{t.push(n[o].apply(r[o],e))}catch(e){(0,i.default)().console.error(e)}return t}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class s{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,n)=>{this._callbacks||(this._callbacks=new o),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=s._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(n)&&n.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}t.Emitter=s,s._noop=function(){}},7574:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))}},6184:(e,t)=>{"use strict";var n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.LRUCache=t.LinkedMap=t.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(i||(t.Touch=i={}));class r{constructor(){this[n]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}before(e){const t=this._map.get(e);return t?t.previous?.value:void 0}after(e){const t=this._map.get(e);return t?t.next?.value:void 0}has(e){return this._map.has(e)}get(e,t=i.None){const n=this._map.get(e);if(n)return t!==i.None&&this.touch(n,t),n.value}set(e,t,n=i.None){let r=this._map.get(e);if(r)r.value=t,n!==i.None&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case i.None:this.addItemLast(r);break;case i.First:this.addItemFirst(r);break;case i.Last:default:this.addItemLast(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let i=this._head;for(;i;){if(t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}[(n=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===i.First||t===i.Last)if(t===i.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===i.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=r,t.LRUCache=class extends r{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=i.AsNew){return super.get(e,t)}peek(e){return super.get(e,i.None)}set(e,t){return super.set(e,t,i.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}},5530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractMessageBuffer=void 0,t.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(e=!1){if(0===this._chunks.length)return;let t=0,n=0,i=0,r=0;e:for(;n<this._chunks.length;){const e=this._chunks[n];for(i=0;i<e.length;){switch(e[i]){case 13:switch(t){case 0:t=1;break;case 2:t=3;break;default:t=0}break;case 10:switch(t){case 1:t=2;break;case 3:t=4,i++;break e;default:t=0}break;default:t=0}i++}r+=e.byteLength,n++}if(4!==t)return;const o=this._read(r+i),s=new Map,a=this.toString(o,"ascii").split("\r\n");if(a.length<2)return s;for(let t=0;t<a.length-2;t++){const n=a[t],i=n.indexOf(":");if(-1===i)throw new Error(`Message header must separate key and value using ':'\n${n}`);const r=n.substr(0,i),o=n.substr(i+1).trim();s.set(e?r.toLowerCase():r,o)}return s}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const i=this._chunks[0];if(i.byteLength>e){const r=i.slice(0,e);t.set(r,n),n+=e,this._chunks[0]=i.slice(e),this._totalLength-=e,e-=e}else t.set(i,n),n+=i.byteLength,this._chunks.shift(),this._totalLength-=i.byteLength,e-=i.byteLength}return t}}},6525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const i=n(147),r=n(7574),o=n(7135),s=n(142);var a,c;!function(e){e.is=function(e){const t=e;return t&&r.func(t.listen)&&r.func(t.dispose)&&r.func(t.onError)&&r.func(t.onClose)&&r.func(t.onPartialMessage)}}(a||(t.MessageReader=a={}));class u{constructor(){this.errorEmitter=new o.Emitter,this.closeEmitter=new o.Emitter,this.partialMessageEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${r.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageReader=u,function(e){e.fromOptions=function(e){let t,n;const r=new Map;let o;const s=new Map;if(void 0===e||"string"==typeof e)t=e??"utf-8";else{if(t=e.charset??"utf-8",void 0!==e.contentDecoder&&(n=e.contentDecoder,r.set(n.name,n)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)r.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(o=e.contentTypeDecoder,s.set(o.name,o)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)s.set(t.name,t)}return void 0===o&&(o=(0,i.default)().applicationJson.decoder,s.set(o.name,o)),{charset:t,contentDecoder:n,contentDecoders:r,contentTypeDecoder:o,contentTypeDecoders:s}}}(c||(c={})),t.ReadableStreamMessageReader=class extends u{constructor(e,t){super(),this.readable=e,this.options=c.fromOptions(t),this.buffer=(0,i.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0,this.readSemaphore=new s.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){try{for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders(!0);if(!e)return;const t=e.get("content-length");if(!t)return void this.fireError(new Error(`Header must provide a Content-Length property.\n${JSON.stringify(Object.fromEntries(e))}`));const n=parseInt(t);if(isNaN(n))return void this.fireError(new Error(`Content-Length value must be a number. Got ${t}`));this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock((async()=>{const t=void 0!==this.options.contentDecoder?await this.options.contentDecoder.decode(e):e,n=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(n)})).catch((e=>{this.fireError(e)}))}}catch(e){this.fireError(e)}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,i.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}},6654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const i=n(147),r=n(7574),o=n(142),s=n(7135);var a,c;!function(e){e.is=function(e){const t=e;return t&&r.func(t.dispose)&&r.func(t.onClose)&&r.func(t.onError)&&r.func(t.write)}}(a||(t.MessageWriter=a={}));class u{constructor(){this.errorEmitter=new s.Emitter,this.closeEmitter=new s.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${r.string(e.message)?e.message:"unknown"}`)}}t.AbstractMessageWriter=u,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,i.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,i.default)().applicationJson.encoder}}}(c||(c={})),t.WriteableStreamMessageWriter=class extends u{constructor(e,t){super(),this.writable=e,this.options=c.fromOptions(t),this.errorCount=0,this.writeSemaphore=new o.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}},839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const i=n(7574);var r,o;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(r||(t.ErrorCodes=r={}));class s extends Error{constructor(e,t,n){super(t),this.code=i.number(e)?e:r.UnknownErrorCode,this.data=n,Object.setPrototypeOf(this,s.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}t.ResponseError=s;class a{constructor(e){this.kind=e}static is(e){return e===a.auto||e===a.byName||e===a.byPosition}toString(){return this.kind}}t.ParameterStructures=a,a.auto=new a("auto"),a.byPosition=new a("byPosition"),a.byName=new a("byName");class c{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return a.auto}}t.AbstractMessageSignature=c,t.RequestType0=class extends c{constructor(e){super(e,0)}},t.RequestType=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType1=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.RequestType2=class extends c{constructor(e){super(e,2)}},t.RequestType3=class extends c{constructor(e){super(e,3)}},t.RequestType4=class extends c{constructor(e){super(e,4)}},t.RequestType5=class extends c{constructor(e){super(e,5)}},t.RequestType6=class extends c{constructor(e){super(e,6)}},t.RequestType7=class extends c{constructor(e){super(e,7)}},t.RequestType8=class extends c{constructor(e){super(e,8)}},t.RequestType9=class extends c{constructor(e){super(e,9)}},t.NotificationType=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType0=class extends c{constructor(e){super(e,0)}},t.NotificationType1=class extends c{constructor(e,t=a.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},t.NotificationType2=class extends c{constructor(e){super(e,2)}},t.NotificationType3=class extends c{constructor(e){super(e,3)}},t.NotificationType4=class extends c{constructor(e){super(e,4)}},t.NotificationType5=class extends c{constructor(e){super(e,5)}},t.NotificationType6=class extends c{constructor(e){super(e,6)}},t.NotificationType7=class extends c{constructor(e){super(e,7)}},t.NotificationType8=class extends c{constructor(e){super(e,8)}},t.NotificationType9=class extends c{constructor(e){super(e,9)}},function(e){e.isRequest=function(e){const t=e;return t&&i.string(t.method)&&(i.string(t.id)||i.number(t.id))},e.isNotification=function(e){const t=e;return t&&i.string(t.method)&&void 0===e.id},e.isResponse=function(e){const t=e;return t&&(void 0!==t.result||!!t.error)&&(i.string(t.id)||i.number(t.id)||null===t.id)}}(o||(t.Message=o={}))},147:(e,t)=>{"use strict";let n;function i(){if(void 0===n)throw new Error("No runtime abstraction layer installed");return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");n=e}}(i||(i={})),t.default=i},142:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;const i=n(147);t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,i.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}}},8211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;const i=n(3881);var r;!function(e){e.Continue=0,e.Cancelled=1}(r||(r={})),t.SharedArraySenderStrategy=class{constructor(){this.buffers=new Map}enableCancellation(e){if(null===e.id)return;const t=new SharedArrayBuffer(4);new Int32Array(t,0,1)[0]=r.Continue,this.buffers.set(e.id,t),e.$cancellationData=t}async sendCancellation(e,t){const n=this.buffers.get(t);if(void 0===n)return;const i=new Int32Array(n,0,1);Atomics.store(i,0,r.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}};class o{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===r.Cancelled}get onCancellationRequested(){throw new Error("Cancellation over SharedArrayBuffer doesn't support cancellation events")}}class s{constructor(e){this.token=new o(e)}cancel(){}dispose(){}}t.SharedArrayReceiverStrategy=class{constructor(){this.kind="request"}createCancellationTokenSource(e){const t=e.$cancellationData;return void 0===t?new i.CancellationTokenSource:new s(t)}}},8595:(e,t,n)=>{"use strict";e.exports=n(5770)},5770:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageClient=void 0;const o=n(5734),s=n(5224);r(n(5224),t),r(n(5734),t);class a extends o.BaseLanguageClient{constructor(e,t,n,i){super(e,t,i),this.serverOptions=n}async createMessageTransports(e){if("function"==typeof this.serverOptions){const e=await this.serverOptions();return e instanceof Worker?this.createMessageTransportsFromWorker(e):e}return this.createMessageTransportsFromWorker(this.serverOptions)}createMessageTransportsFromWorker(e){const t=new s.BrowserMessageReader(e),n=new s.BrowserMessageWriter(e);return Promise.resolve({reader:t,writer:n})}}t.LanguageClient=a},5734:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticPullMode=t.vsdiag=void 0,r(n(152),t),r(n(8909),t);var o=n(2570);Object.defineProperty(t,"vsdiag",{enumerable:!0,get:function(){return o.vsdiag}}),Object.defineProperty(t,"DiagnosticPullMode",{enumerable:!0,get:function(){return o.DiagnosticPullMode}}),r(n(4384),t)},5578:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s{constructor(e){this.client=e,this.middleware=e.middleware}prepareCallHierarchy(e,t,n){const i=this.client,o=this.middleware,s=(e,t,n)=>{const o=i.code2ProtocolConverter.asTextDocumentPositionParams(e,t);return i.sendRequest(r.CallHierarchyPrepareRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asCallHierarchyItems(e,n)),(e=>i.handleFailedRequest(r.CallHierarchyPrepareRequest.type,n,e,null)))};return o.prepareCallHierarchy?o.prepareCallHierarchy(e,t,n,s):s(e,t,n)}provideCallHierarchyIncomingCalls(e,t){const n=this.client,i=this.middleware,o=(e,t)=>{const i={item:n.code2ProtocolConverter.asCallHierarchyItem(e)};return n.sendRequest(r.CallHierarchyIncomingCallsRequest.type,i,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCallHierarchyIncomingCalls(e,t)),(e=>n.handleFailedRequest(r.CallHierarchyIncomingCallsRequest.type,t,e,null)))};return i.provideCallHierarchyIncomingCalls?i.provideCallHierarchyIncomingCalls(e,t,o):o(e,t)}provideCallHierarchyOutgoingCalls(e,t){const n=this.client,i=this.middleware,o=(e,t)=>{const i={item:n.code2ProtocolConverter.asCallHierarchyItem(e)};return n.sendRequest(r.CallHierarchyOutgoingCallsRequest.type,i,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCallHierarchyOutgoingCalls(e,t)),(e=>n.handleFailedRequest(r.CallHierarchyOutgoingCallsRequest.type,t,e,null)))};return i.provideCallHierarchyOutgoingCalls?i.provideCallHierarchyOutgoingCalls(e,t,o):o(e,t)}}class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.CallHierarchyPrepareRequest.type)}fillClientCapabilities(e){const t=e;(0,o.ensure)((0,o.ensure)(t,"textDocument"),"callHierarchy").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.callHierarchyProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=this._client,n=new s(t);return[i.languages.registerCallHierarchyProvider(this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector),n),n]}}t.CallHierarchyFeature=a},4384:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProposedFeatures=t.LanguageClient=t.BaseLanguageClient=t.ShutdownMode=t.MessageTransports=t.SuspendMode=t.State=t.CloseAction=t.ErrorAction=t.RevealOutputChannelOn=void 0;const i=n(9496),r=n(152),o=n(71),s=n(8785),a=n(9763),c=n(4904),u=n(1980),l=n(8071),d=n(8909),f=n(2570),p=n(203),g=n(6495),h=n(743),m=n(1435),v=n(6782),y=n(122),C=n(2908),S=n(9959),_=n(2483),T=n(3051),b=n(8480),R=n(328),D=n(9889),w=n(8880),E=n(9474),P=n(7711),k=n(6426),x=n(6458),I=n(3471),N=n(4849),O=n(6454),A=n(707),F=n(750),M=n(5578),L=n(9957),q=n(3483),j=n(4175),U=n(5098),H=n(6190),K=n(5941),V=n(7606),W=n(8174),z=n(5338),B=n(3603);var $,G,J,Y,X,Z,Q,ee,te,ne;!function(e){e[e.Debug=0]="Debug",e[e.Info=1]="Info",e[e.Warn=2]="Warn",e[e.Error=3]="Error",e[e.Never=4]="Never"}($||(t.RevealOutputChannelOn=$={})),function(e){e[e.Continue=1]="Continue",e[e.Shutdown=2]="Shutdown"}(G||(t.ErrorAction=G={})),function(e){e[e.DoNotRestart=1]="DoNotRestart",e[e.Restart=2]="Restart"}(J||(t.CloseAction=J={})),function(e){e[e.Stopped=1]="Stopped",e[e.Starting=3]="Starting",e[e.StartFailed=4]="StartFailed",e[e.Running=2]="Running"}(Y||(t.State=Y={})),function(e){e.off="off",e.on="on"}(X||(t.SuspendMode=X={})),function(e){e.sanitizeIsTrusted=function(e){return null!=e&&!!("boolean"==typeof e||"object"==typeof e&&null!==e&&a.stringArray(e.enabledCommands))&&e}}(Z||(Z={}));class ie{constructor(e,t){this.client=e,this.maxRestartCount=t,this.restarts=[]}error(e,t,n){return n&&n<=3?{action:G.Continue}:{action:G.Shutdown}}closed(){return this.restarts.push(Date.now()),this.restarts.length<=this.maxRestartCount?{action:J.Restart}:this.restarts[this.restarts.length-1]-this.restarts[0]<=18e4?{action:J.DoNotRestart,message:`The ${this.client.name} server crashed ${this.maxRestartCount+1} times in the last 3 minutes. The server will not be restarted. See the output for more information.`}:(this.restarts.shift(),{action:J.Restart})}}!function(e){e.Initial="initial",e.Starting="starting",e.StartFailed="startFailed",e.Running="running",e.Stopping="stopping",e.Stopped="stopped"}(Q||(Q={})),function(e){e.is=function(e){return e&&r.MessageReader.is(e.reader)&&r.MessageWriter.is(e.writer)}}(ee||(t.MessageTransports=ee={})),function(e){e.Restart="restart",e.Stop="stop"}(te||(t.ShutdownMode=te={}));class re{constructor(e,t,n){this._traceFormat=r.TraceFormat.Text,this._diagnosticQueue=new Map,this._diagnosticQueueState={state:"idle"},this._features=[],this._dynamicFeatures=new Map,this.workspaceEditLock=new c.Semaphore(1),this._id=e,this._name=t;const i={isTrusted:!1,supportHtml:!1};void 0!==(n=n||{}).markdown&&(i.isTrusted=Z.sanitizeIsTrusted(n.markdown.isTrusted),i.supportHtml=!0===n.markdown.supportHtml),this._clientOptions={documentSelector:n.documentSelector??[],synchronize:n.synchronize??{},diagnosticCollectionName:n.diagnosticCollectionName,outputChannelName:n.outputChannelName??this._name,revealOutputChannelOn:n.revealOutputChannelOn??$.Error,stdioEncoding:n.stdioEncoding??"utf8",initializationOptions:n.initializationOptions,initializationFailedHandler:n.initializationFailedHandler,progressOnInitialization:!!n.progressOnInitialization,errorHandler:n.errorHandler??this.createDefaultErrorHandler(n.connectionOptions?.maxRestartCount),middleware:n.middleware??{},uriConverters:n.uriConverters,workspaceFolder:n.workspaceFolder,connectionOptions:n.connectionOptions,markdown:i,diagnosticPullOptions:n.diagnosticPullOptions??{onChange:!0,onSave:!1},notebookDocumentOptions:n.notebookDocumentOptions??{}},this._clientOptions.synchronize=this._clientOptions.synchronize||{},this._state=Q.Initial,this._ignoredRegistrations=new Set,this._listeners=[],this._notificationHandlers=new Map,this._pendingNotificationHandlers=new Map,this._notificationDisposables=new Map,this._requestHandlers=new Map,this._pendingRequestHandlers=new Map,this._requestDisposables=new Map,this._progressHandlers=new Map,this._pendingProgressHandlers=new Map,this._progressDisposables=new Map,this._connection=void 0,this._initializeResult=void 0,n.outputChannel?(this._outputChannel=n.outputChannel,this._disposeOutputChannel=!1):(this._outputChannel=void 0,this._disposeOutputChannel=!0),this._traceOutputChannel=n.traceOutputChannel,this._diagnostics=void 0,this._pendingOpenNotifications=new Set,this._pendingChangeSemaphore=new c.Semaphore(1),this._pendingChangeDelayer=new c.Delayer(250),this._fileEvents=[],this._fileEventDelayer=new c.Delayer(250),this._onStop=void 0,this._telemetryEmitter=new r.Emitter,this._stateChangeEmitter=new r.Emitter,this._trace=r.Trace.Off,this._tracer={log:(e,t)=>{a.string(e)?this.logTrace(e,t):this.logObjectTrace(e)}},this._c2p=o.createConverter(n.uriConverters?n.uriConverters.code2Protocol:void 0),this._p2c=s.createConverter(n.uriConverters?n.uriConverters.protocol2Code:void 0,this._clientOptions.markdown.isTrusted,this._clientOptions.markdown.supportHtml),this._syncedDocuments=new Map,this.registerBuiltinFeatures()}get name(){return this._name}get middleware(){return this._clientOptions.middleware??Object.create(null)}get clientOptions(){return this._clientOptions}get protocol2CodeConverter(){return this._p2c}get code2ProtocolConverter(){return this._c2p}get onTelemetry(){return this._telemetryEmitter.event}get onDidChangeState(){return this._stateChangeEmitter.event}get outputChannel(){return this._outputChannel||(this._outputChannel=i.window.createOutputChannel(this._clientOptions.outputChannelName?this._clientOptions.outputChannelName:this._name)),this._outputChannel}get traceOutputChannel(){return this._traceOutputChannel?this._traceOutputChannel:this.outputChannel}get diagnostics(){return this._diagnostics}get state(){return this.getPublicState()}get $state(){return this._state}set $state(e){const t=this.getPublicState();this._state=e;const n=this.getPublicState();n!==t&&this._stateChangeEmitter.fire({oldState:t,newState:n})}getPublicState(){switch(this.$state){case Q.Starting:return Y.Starting;case Q.Running:return Y.Running;case Q.StartFailed:return Y.StartFailed;default:return Y.Stopped}}get initializeResult(){return this._initializeResult}async sendRequest(e,...t){if(this.$state===Q.StartFailed||this.$state===Q.Stopping||this.$state===Q.Stopped)return Promise.reject(new r.ResponseError(r.ErrorCodes.ConnectionInactive,"Client is not running"));const n=await this.$start();let i,o;if(this._didChangeTextDocumentFeature.syncKind===r.TextDocumentSyncKind.Full&&await this.sendPendingFullTextDocumentChanges(n),1===t.length?r.CancellationToken.is(t[0])?o=t[0]:i=t[0]:2===t.length&&(i=t[0],o=t[1]),void 0!==o&&o.isCancellationRequested)return Promise.reject(new r.ResponseError(r.LSPErrorCodes.RequestCancelled,"Request got cancelled"));const s=this._clientOptions.middleware?.sendRequest;return void 0!==s?s(e,i,o,((e,t,i)=>{const r=[];return void 0!==t&&r.push(t),void 0!==i&&r.push(i),n.sendRequest(e,...r)})):n.sendRequest(e,...t)}onRequest(e,t){const n="string"==typeof e?e:e.method;this._requestHandlers.set(n,t);const i=this.activeConnection();let r;return void 0!==i?(this._requestDisposables.set(n,i.onRequest(e,t)),r={dispose:()=>{const e=this._requestDisposables.get(n);void 0!==e&&(e.dispose(),this._requestDisposables.delete(n))}}):(this._pendingRequestHandlers.set(n,t),r={dispose:()=>{this._pendingRequestHandlers.delete(n);const e=this._requestDisposables.get(n);void 0!==e&&(e.dispose(),this._requestDisposables.delete(n))}}),{dispose:()=>{this._requestHandlers.delete(n),r.dispose()}}}async sendNotification(e,t){if(this.$state===Q.StartFailed||this.$state===Q.Stopping||this.$state===Q.Stopped)return Promise.reject(new r.ResponseError(r.ErrorCodes.ConnectionInactive,"Client is not running"));const n=this._didChangeTextDocumentFeature.syncKind===r.TextDocumentSyncKind.Full;let i;n&&"string"!=typeof e&&e.method===r.DidOpenTextDocumentNotification.method&&(i=t?.textDocument.uri,this._pendingOpenNotifications.add(i));const o=await this.$start();n&&await this.sendPendingFullTextDocumentChanges(o),void 0!==i&&this._pendingOpenNotifications.delete(i);const s=this._clientOptions.middleware?.sendNotification;return s?s(e,o.sendNotification.bind(o),t):o.sendNotification(e,t)}onNotification(e,t){const n="string"==typeof e?e:e.method;this._notificationHandlers.set(n,t);const i=this.activeConnection();let r;return void 0!==i?(this._notificationDisposables.set(n,i.onNotification(e,t)),r={dispose:()=>{const e=this._notificationDisposables.get(n);void 0!==e&&(e.dispose(),this._notificationDisposables.delete(n))}}):(this._pendingNotificationHandlers.set(n,t),r={dispose:()=>{this._pendingNotificationHandlers.delete(n);const e=this._notificationDisposables.get(n);void 0!==e&&(e.dispose(),this._notificationDisposables.delete(n))}}),{dispose:()=>{this._notificationHandlers.delete(n),r.dispose()}}}async sendProgress(e,t,n){if(this.$state===Q.StartFailed||this.$state===Q.Stopping||this.$state===Q.Stopped)return Promise.reject(new r.ResponseError(r.ErrorCodes.ConnectionInactive,"Client is not running"));try{return(await this.$start()).sendProgress(e,t,n)}catch(e){throw this.error(`Sending progress for token ${t} failed.`,e),e}}onProgress(e,t,n){this._progressHandlers.set(t,{type:e,handler:n});const i=this.activeConnection();let o;const s=this._clientOptions.middleware?.handleWorkDoneProgress,a=r.WorkDoneProgress.is(e)&&void 0!==s?e=>{s(t,e,(()=>n(e)))}:n;return void 0!==i?(this._progressDisposables.set(t,i.onProgress(e,t,a)),o={dispose:()=>{const e=this._progressDisposables.get(t);void 0!==e&&(e.dispose(),this._progressDisposables.delete(t))}}):(this._pendingProgressHandlers.set(t,{type:e,handler:n}),o={dispose:()=>{this._pendingProgressHandlers.delete(t);const e=this._progressDisposables.get(t);void 0!==e&&(e.dispose(),this._progressDisposables.delete(t))}}),{dispose:()=>{this._progressHandlers.delete(t),o.dispose()}}}createDefaultErrorHandler(e){if(void 0!==e&&e<0)throw new Error(`Invalid maxRestartCount: ${e}`);return new ie(this,e??4)}async setTrace(e){this._trace=e;const t=this.activeConnection();void 0!==t&&await t.trace(this._trace,this._tracer,{sendNotification:!1,traceFormat:this._traceFormat})}data2String(e){if(e instanceof r.ResponseError){const t=e;return` Message: ${t.message}\n Code: ${t.code} ${t.data?"\n"+t.data.toString():""}`}return e instanceof Error?a.string(e.stack)?e.stack:e.message:a.string(e)?e:e.toString()}debug(e,t,n=!0){this.logOutputMessage(r.MessageType.Debug,$.Debug,"Debug",e,t,n)}info(e,t,n=!0){this.logOutputMessage(r.MessageType.Info,$.Info,"Info",e,t,n)}warn(e,t,n=!0){this.logOutputMessage(r.MessageType.Warning,$.Warn,"Warn",e,t,n)}error(e,t,n=!0){this.logOutputMessage(r.MessageType.Error,$.Error,"Error",e,t,n)}logOutputMessage(e,t,n,i,r,o){this.outputChannel.appendLine(`[${n.padEnd(5)} - ${(new Date).toLocaleTimeString()}] ${i}`),null!=r&&this.outputChannel.appendLine(this.data2String(r)),("force"===o||o&&this._clientOptions.revealOutputChannelOn<=t)&&this.showNotificationMessage(e,i)}showNotificationMessage(e,t){t=t??"A request has failed. See the output for more information.",(e===r.MessageType.Error?i.window.showErrorMessage:e===r.MessageType.Warning?i.window.showWarningMessage:i.window.showInformationMessage)(t,"Go to output").then((e=>{void 0!==e&&this.outputChannel.show(!0)}))}logTrace(e,t){this.traceOutputChannel.appendLine(`[Trace - ${(new Date).toLocaleTimeString()}] ${e}`),t&&this.traceOutputChannel.appendLine(this.data2String(t))}logObjectTrace(e){e.isLSPMessage&&e.type?this.traceOutputChannel.append(`[LSP - ${(new Date).toLocaleTimeString()}] `):this.traceOutputChannel.append(`[Trace - ${(new Date).toLocaleTimeString()}] `),e&&this.traceOutputChannel.appendLine(`${JSON.stringify(e)}`)}needsStart(){return this.$state===Q.Initial||this.$state===Q.Stopping||this.$state===Q.Stopped}needsStop(){return this.$state===Q.Starting||this.$state===Q.Running}activeConnection(){return this.$state===Q.Running&&void 0!==this._connection?this._connection:void 0}isRunning(){return this.$state===Q.Running}async start(){if("disposing"===this._disposed||"disposed"===this._disposed)throw new Error("Client got disposed and can't be restarted.");if(this.$state===Q.Stopping)throw new Error("Client is currently stopping. Can only restart a full stopped client");if(void 0!==this._onStart)return this._onStart;const[e,t,n]=this.createOnStartPromise();this._onStart=e,void 0===this._diagnostics&&(this._diagnostics=this._clientOptions.diagnosticCollectionName?i.languages.createDiagnosticCollection(this._clientOptions.diagnosticCollectionName):i.languages.createDiagnosticCollection());for(const[e,t]of this._notificationHandlers)this._pendingNotificationHandlers.has(e)||this._pendingNotificationHandlers.set(e,t);for(const[e,t]of this._requestHandlers)this._pendingRequestHandlers.has(e)||this._pendingRequestHandlers.set(e,t);for(const[e,t]of this._progressHandlers)this._pendingProgressHandlers.has(e)||this._pendingProgressHandlers.set(e,t);this.$state=Q.Starting;try{const e=await this.createConnection();e.onNotification(r.LogMessageNotification.type,(e=>{switch(e.type){case r.MessageType.Error:this.error(e.message,void 0,!1);break;case r.MessageType.Warning:this.warn(e.message,void 0,!1);break;case r.MessageType.Info:this.info(e.message,void 0,!1);break;case r.MessageType.Debug:this.debug(e.message,void 0,!1);break;default:this.outputChannel.appendLine(e.message)}})),e.onNotification(r.ShowMessageNotification.type,(e=>{switch(e.type){case r.MessageType.Error:i.window.showErrorMessage(e.message);break;case r.MessageType.Warning:i.window.showWarningMessage(e.message);break;case r.MessageType.Info:default:i.window.showInformationMessage(e.message)}})),e.onRequest(r.ShowMessageRequest.type,(e=>{let t;switch(e.type){case r.MessageType.Error:t=i.window.showErrorMessage;break;case r.MessageType.Warning:t=i.window.showWarningMessage;break;case r.MessageType.Info:default:t=i.window.showInformationMessage}const n=e.actions||[];return t(e.message,...n)})),e.onNotification(r.TelemetryEventNotification.type,(e=>{this._telemetryEmitter.fire(e)})),e.onRequest(r.ShowDocumentRequest.type,(async(e,t)=>{const n=async e=>{const t=this.protocol2CodeConverter.asUri(e.uri);try{if(!0===e.external)return{success:await i.env.openExternal(t)};{const n={};return void 0!==e.selection&&(n.selection=this.protocol2CodeConverter.asRange(e.selection)),void 0===e.takeFocus||!1===e.takeFocus?n.preserveFocus=!0:!0===e.takeFocus&&(n.preserveFocus=!1),await i.window.showTextDocument(t,n),{success:!0}}}catch(e){return{success:!1}}},r=this._clientOptions.middleware.window?.showDocument;return void 0!==r?r(e,t,n):n(e)})),e.listen(),await this.initialize(e),t()}catch(e){this.$state=Q.StartFailed,this.error(`${this._name} client: couldn't create connection to server.`,e,"force"),n(e)}return this._onStart}createOnStartPromise(){let e,t;return[new Promise(((n,i)=>{e=n,t=i})),e,t]}async initialize(e){this.refreshTrace(e,!1);const t=this._clientOptions.initializationOptions,[n,o]=void 0!==this._clientOptions.workspaceFolder?[this._clientOptions.workspaceFolder.uri.fsPath,[{uri:this._c2p.asUri(this._clientOptions.workspaceFolder.uri),name:this._clientOptions.workspaceFolder.name}]]:[this._clientGetRootPath(),null],s={processId:null,clientInfo:{name:i.env.appName,version:i.version},locale:this.getLocale(),rootPath:n||null,rootUri:n?this._c2p.asUri(i.Uri.file(n)):null,capabilities:this.computeClientCapabilities(),initializationOptions:a.func(t)?t():t,trace:r.Trace.toString(this._trace),workspaceFolders:o};if(this.fillInitializeParams(s),!this._clientOptions.progressOnInitialization)return this.doInitialize(e,s);{const t=u.generateUuid(),n=new l.ProgressPart(e,t);s.workDoneToken=t;try{const t=await this.doInitialize(e,s);return n.done(),t}catch(e){throw n.cancel(),e}}}async doInitialize(e,t){try{const n=await e.initialize(t);if(void 0!==n.capabilities.positionEncoding&&n.capabilities.positionEncoding!==r.PositionEncodingKind.UTF16)throw new Error(`Unsupported position encoding (${n.capabilities.positionEncoding}) received from server ${this.name}`);let i;this._initializeResult=n,this.$state=Q.Running,a.number(n.capabilities.textDocumentSync)?i=n.capabilities.textDocumentSync===r.TextDocumentSyncKind.None?{openClose:!1,change:r.TextDocumentSyncKind.None,save:void 0}:{openClose:!0,change:n.capabilities.textDocumentSync,save:{includeText:!1}}:void 0!==n.capabilities.textDocumentSync&&null!==n.capabilities.textDocumentSync&&(i=n.capabilities.textDocumentSync),this._capabilities=Object.assign({},n.capabilities,{resolvedTextDocumentSync:i}),e.onNotification(r.PublishDiagnosticsNotification.type,(e=>this.handleDiagnostics(e))),e.onRequest(r.RegistrationRequest.type,(e=>this.handleRegistrationRequest(e))),e.onRequest("client/registerFeature",(e=>this.handleRegistrationRequest(e))),e.onRequest(r.UnregistrationRequest.type,(e=>this.handleUnregistrationRequest(e))),e.onRequest("client/unregisterFeature",(e=>this.handleUnregistrationRequest(e))),e.onRequest(r.ApplyWorkspaceEditRequest.type,(e=>this.handleApplyWorkspaceEdit(e)));for(const[t,n]of this._pendingNotificationHandlers)this._notificationDisposables.set(t,e.onNotification(t,n));this._pendingNotificationHandlers.clear();for(const[t,n]of this._pendingRequestHandlers)this._requestDisposables.set(t,e.onRequest(t,n));this._pendingRequestHandlers.clear();for(const[t,n]of this._pendingProgressHandlers)this._progressDisposables.set(t,e.onProgress(n.type,t,n.handler));return this._pendingProgressHandlers.clear(),await e.sendNotification(r.InitializedNotification.type,{}),this.hookFileEvents(e),this.hookConfigurationChanged(e),this.initializeFeatures(e),n}catch(t){throw this._clientOptions.initializationFailedHandler?this._clientOptions.initializationFailedHandler(t)?this.initialize(e):this.stop():t instanceof r.ResponseError&&t.data&&t.data.retry?i.window.showErrorMessage(t.message,{title:"Retry",id:"retry"}).then((t=>{t&&"retry"===t.id?this.initialize(e):this.stop()})):(t&&t.message&&i.window.showErrorMessage(t.message),this.error("Server initialization failed.",t),this.stop()),t}}_clientGetRootPath(){const e=i.workspace.workspaceFolders;if(!e||0===e.length)return;const t=e[0];return"file"===t.uri.scheme?t.uri.fsPath:void 0}stop(e=2e3){return this.shutdown(te.Stop,e)}dispose(e=2e3){try{return this._disposed="disposing",this.stop(e)}finally{this._disposed="disposed"}}async shutdown(e,t=2e3){if(this.$state===Q.Stopped||this.$state===Q.Initial)return;if(this.$state===Q.Stopping){if(void 0!==this._onStop)return this._onStop;throw new Error("Client is stopping but no stop promise available.")}const n=this.activeConnection();if(void 0===n||this.$state!==Q.Running)throw new Error(`Client is not running and can't be stopped. It's current state is: ${this.$state}`);this._initializeResult=void 0,this.$state=Q.Stopping,this.cleanUp(e);const i=new Promise((e=>{(0,r.RAL)().timer.setTimeout(e,t)})),o=(async e=>(await e.shutdown(),await e.exit(),e))(n);return this._onStop=Promise.race([i,o]).then((e=>{if(void 0===e)throw this.error("Stopping server timed out",void 0,!1),new Error("Stopping the server timed out");e.end(),e.dispose()}),(e=>{throw this.error("Stopping server failed",e,!1),e})).finally((()=>{this.$state=Q.Stopped,e===te.Stop&&this.cleanUpChannel(),this._onStart=void 0,this._onStop=void 0,this._connection=void 0,this._ignoredRegistrations.clear()}))}cleanUp(e){this._fileEvents=[],this._fileEventDelayer.cancel();const t=this._listeners.splice(0,this._listeners.length);for(const e of t)e.dispose();this._syncedDocuments&&this._syncedDocuments.clear();for(const e of Array.from(this._features.entries()).map((e=>e[1])).reverse())e.clear();e!==te.Stop&&e!==te.Restart||void 0===this._diagnostics||(this._diagnostics.dispose(),this._diagnostics=void 0),void 0!==this._idleInterval&&(this._idleInterval.dispose(),this._idleInterval=void 0)}cleanUpChannel(){void 0!==this._outputChannel&&this._disposeOutputChannel&&(this._outputChannel.dispose(),this._outputChannel=void 0)}notifyFileEvent(e){const t=this;async function n(e){return t._fileEvents.push(e),t._fileEventDelayer.trigger((async()=>{await t.sendNotification(r.DidChangeWatchedFilesNotification.type,{changes:t._fileEvents}),t._fileEvents=[]}))}const i=this.clientOptions.middleware?.workspace;(i?.didChangeWatchedFile?i.didChangeWatchedFile(e,n):n(e)).catch((e=>{t.error("Notify file events failed.",e)}))}async sendPendingFullTextDocumentChanges(e){return this._pendingChangeSemaphore.lock((async()=>{try{const t=this._didChangeTextDocumentFeature.getPendingDocumentChanges(this._pendingOpenNotifications);if(0===t.length)return;for(const n of t){const t=this.code2ProtocolConverter.asChangeTextDocumentParams(n);await e.sendNotification(r.DidChangeTextDocumentNotification.type,t),this._didChangeTextDocumentFeature.notificationSent(n,r.DidChangeTextDocumentNotification.type,t)}}catch(e){throw this.error("Sending pending changes failed",e,!1),e}}))}triggerPendingChangeDelivery(){this._pendingChangeDelayer.trigger((async()=>{const e=this.activeConnection();void 0!==e?await this.sendPendingFullTextDocumentChanges(e):this.triggerPendingChangeDelivery()})).catch((e=>this.error("Delivering pending changes failed",e,!1)))}handleDiagnostics(e){if(!this._diagnostics)return;const t=e.uri;"busy"===this._diagnosticQueueState.state&&this._diagnosticQueueState.document===t&&this._diagnosticQueueState.tokenSource.cancel(),this._diagnosticQueue.set(e.uri,e.diagnostics),this.triggerDiagnosticQueue()}triggerDiagnosticQueue(){(0,r.RAL)().timer.setImmediate((()=>{this.workDiagnosticQueue()}))}workDiagnosticQueue(){if("busy"===this._diagnosticQueueState.state)return;const e=this._diagnosticQueue.entries().next();if(!0===e.done)return;const[t,n]=e.value;this._diagnosticQueue.delete(t);const r=new i.CancellationTokenSource;this._diagnosticQueueState={state:"busy",document:t,tokenSource:r},this._p2c.asDiagnostics(n,r.token).then((e=>{if(!r.token.isCancellationRequested){const n=this._p2c.asUri(t),i=this.clientOptions.middleware;i.handleDiagnostics?i.handleDiagnostics(n,e,((e,t)=>this.setDiagnostics(e,t))):this.setDiagnostics(n,e)}})).catch((e=>{this.error("Processing diagnostic queue failed.",e)})).finally((()=>{this._diagnosticQueueState={state:"idle"},this.triggerDiagnosticQueue()}))}setDiagnostics(e,t){this._diagnostics&&this._diagnostics.set(e,t)}getLocale(){return i.env.language}async $start(){if(this.$state===Q.StartFailed)throw new Error("Previous start failed. Can't restart server.");await this.start();const e=this.activeConnection();if(void 0===e)throw new Error("Starting server failed");return e}async createConnection(){const e=await this.createMessageTransports(this._clientOptions.stdioEncoding||"utf8");return this._connection=function(e,t,n,i,o){const s=new oe,c=(0,r.createProtocolConnection)(e,t,s,o);return c.onError((e=>{n(e[0],e[1],e[2])})),c.onClose(i),{listen:()=>c.listen(),sendRequest:c.sendRequest,onRequest:c.onRequest,hasPendingResponse:c.hasPendingResponse,sendNotification:c.sendNotification,onNotification:c.onNotification,onProgress:c.onProgress,sendProgress:c.sendProgress,trace:(e,t,n)=>{const i={sendNotification:!1,traceFormat:r.TraceFormat.Text};return void 0===n?c.trace(e,t,i):(a.boolean(n),c.trace(e,t,n))},initialize:e=>c.sendRequest(r.InitializeRequest.type,e),shutdown:()=>c.sendRequest(r.ShutdownRequest.type,void 0),exit:()=>c.sendNotification(r.ExitNotification.type),end:()=>c.end(),dispose:()=>c.dispose()}}(e.reader,e.writer,((e,t,n)=>{this.handleConnectionError(e,t,n).catch((e=>this.error("Handling connection error failed",e)))}),(()=>{this.handleConnectionClosed().catch((e=>this.error("Handling connection close failed",e)))}),this._clientOptions.connectionOptions),this._connection}async handleConnectionClosed(){if(this.$state===Q.Stopped)return;try{void 0!==this._connection&&this._connection.dispose()}catch(e){}let e={action:J.DoNotRestart};if(this.$state!==Q.Stopping)try{e=await this._clientOptions.errorHandler.closed()}catch(e){}this._connection=void 0,e.action===J.DoNotRestart?(this.error(e.message??"Connection to server got closed. Server will not be restarted.",void 0,!0!==e.handled&&"force"),this.cleanUp(te.Stop),this.$state===Q.Starting?this.$state=Q.StartFailed:this.$state=Q.Stopped,this._onStop=Promise.resolve(),this._onStart=void 0):e.action===J.Restart&&(this.info(e.message??"Connection to server got closed. Server will restart.",!e.handled),this.cleanUp(te.Restart),this.$state=Q.Initial,this._onStop=Promise.resolve(),this._onStart=void 0,this.start().catch((e=>this.error("Restarting server failed",e,"force"))))}async handleConnectionError(e,t,n){const i=await this._clientOptions.errorHandler.error(e,t,n);i.action===G.Shutdown?(this.error(i.message??`Client ${this._name}: connection to server is erroring.\n${e.message}\nShutting down server.`,void 0,!0!==i.handled&&"force"),this.stop().catch((e=>{this.error("Stopping server failed",e,!1)}))):this.error(i.message??`Client ${this._name}: connection to server is erroring.\n${e.message}`,void 0,!0!==i.handled&&"force")}hookConfigurationChanged(e){this._listeners.push(i.workspace.onDidChangeConfiguration((()=>{this.refreshTrace(e,!0)})))}refreshTrace(e,t=!1){const n=i.workspace.getConfiguration(this._id);let o=r.Trace.Off,s=r.TraceFormat.Text;if(n){const e=n.get("trace.server","off");"string"==typeof e?o=r.Trace.fromString(e):(o=r.Trace.fromString(n.get("trace.server.verbosity","off")),s=r.TraceFormat.fromString(n.get("trace.server.format","text")))}this._trace=o,this._traceFormat=s,e.trace(this._trace,this._tracer,{sendNotification:t,traceFormat:this._traceFormat}).catch((e=>{this.error("Updating trace failed with error",e,!1)}))}hookFileEvents(e){const t=this._clientOptions.synchronize.fileEvents;if(!t)return;let n;n=a.array(t)?t:[t],n&&this._dynamicFeatures.get(r.DidChangeWatchedFilesNotification.type.method).registerRaw(u.generateUuid(),n)}registerFeatures(e){for(const t of e)this.registerFeature(t)}registerFeature(e){if(this._features.push(e),d.DynamicFeature.is(e)){const t=e.registrationType;this._dynamicFeatures.set(t.method,e)}}getFeature(e){return this._dynamicFeatures.get(e)}hasDedicatedTextSynchronizationFeature(e){const t=this.getFeature(r.NotebookDocumentSyncRegistrationType.method);return void 0!==t&&t instanceof p.NotebookDocumentSyncFeature&&t.handles(e)}registerBuiltinFeatures(){const e=new Map;this.registerFeature(new g.ConfigurationFeature(this)),this.registerFeature(new h.DidOpenTextDocumentFeature(this,this._syncedDocuments)),this._didChangeTextDocumentFeature=new h.DidChangeTextDocumentFeature(this,e),this._didChangeTextDocumentFeature.onPendingChangeAdded((()=>{this.triggerPendingChangeDelivery()})),this.registerFeature(this._didChangeTextDocumentFeature),this.registerFeature(new h.WillSaveFeature(this)),this.registerFeature(new h.WillSaveWaitUntilFeature(this)),this.registerFeature(new h.DidSaveTextDocumentFeature(this)),this.registerFeature(new h.DidCloseTextDocumentFeature(this,this._syncedDocuments,e)),this.registerFeature(new z.FileSystemWatcherFeature(this,(e=>this.notifyFileEvent(e)))),this.registerFeature(new m.CompletionItemFeature(this)),this.registerFeature(new v.HoverFeature(this)),this.registerFeature(new C.SignatureHelpFeature(this)),this.registerFeature(new y.DefinitionFeature(this)),this.registerFeature(new b.ReferencesFeature(this)),this.registerFeature(new S.DocumentHighlightFeature(this)),this.registerFeature(new _.DocumentSymbolFeature(this)),this.registerFeature(new T.WorkspaceSymbolFeature(this)),this.registerFeature(new E.CodeActionFeature(this)),this.registerFeature(new P.CodeLensFeature(this)),this.registerFeature(new k.DocumentFormattingFeature(this)),this.registerFeature(new k.DocumentRangeFormattingFeature(this)),this.registerFeature(new k.DocumentOnTypeFormattingFeature(this)),this.registerFeature(new x.RenameFeature(this)),this.registerFeature(new I.DocumentLinkFeature(this)),this.registerFeature(new N.ExecuteCommandFeature(this)),this.registerFeature(new g.SyncConfigurationFeature(this)),this.registerFeature(new R.TypeDefinitionFeature(this)),this.registerFeature(new D.ImplementationFeature(this)),this.registerFeature(new w.ColorProviderFeature(this)),void 0===this.clientOptions.workspaceFolder&&this.registerFeature(new K.WorkspaceFoldersFeature(this)),this.registerFeature(new O.FoldingRangeFeature(this)),this.registerFeature(new A.DeclarationFeature(this)),this.registerFeature(new F.SelectionRangeFeature(this)),this.registerFeature(new B.ProgressFeature(this)),this.registerFeature(new M.CallHierarchyFeature(this)),this.registerFeature(new L.SemanticTokensFeature(this)),this.registerFeature(new q.LinkedEditingFeature(this)),this.registerFeature(new V.DidCreateFilesFeature(this)),this.registerFeature(new V.DidRenameFilesFeature(this)),this.registerFeature(new V.DidDeleteFilesFeature(this)),this.registerFeature(new V.WillCreateFilesFeature(this)),this.registerFeature(new V.WillRenameFilesFeature(this)),this.registerFeature(new V.WillDeleteFilesFeature(this)),this.registerFeature(new j.TypeHierarchyFeature(this)),this.registerFeature(new U.InlineValueFeature(this)),this.registerFeature(new H.InlayHintsFeature(this)),this.registerFeature(new f.DiagnosticFeature(this)),this.registerFeature(new p.NotebookDocumentSyncFeature(this))}registerProposedFeatures(){this.registerFeatures(ne.createAll(this))}fillInitializeParams(e){for(const t of this._features)a.func(t.fillInitializeParams)&&t.fillInitializeParams(e)}computeClientCapabilities(){const e={};(0,d.ensure)(e,"workspace").applyEdit=!0;const t=(0,d.ensure)((0,d.ensure)(e,"workspace"),"workspaceEdit");t.documentChanges=!0,t.resourceOperations=[r.ResourceOperationKind.Create,r.ResourceOperationKind.Rename,r.ResourceOperationKind.Delete],t.failureHandling=r.FailureHandlingKind.TextOnlyTransactional,t.normalizesLineEndings=!0,t.changeAnnotationSupport={groupsOnLabel:!0},t.metadataSupport=!0,t.snippetEditSupport=!0;const n=(0,d.ensure)((0,d.ensure)(e,"textDocument"),"publishDiagnostics");n.relatedInformation=!0,n.versionSupport=!1,n.tagSupport={valueSet:[r.DiagnosticTag.Unnecessary,r.DiagnosticTag.Deprecated]},n.codeDescriptionSupport=!0,n.dataSupport=!0;const i=(0,d.ensure)(e,"window");(0,d.ensure)(i,"showMessage").messageActionItem={additionalPropertiesSupport:!0},(0,d.ensure)(i,"showDocument").support=!0;const o=(0,d.ensure)(e,"general");o.staleRequestSupport={cancel:!0,retryOnContentModified:Array.from(re.RequestsToCancelOnContentModified)},o.regularExpressions={engine:"ECMAScript",version:"ES2020"},o.markdown={parser:"marked",version:"1.1.0"},o.positionEncodings=["utf-16"],this._clientOptions.markdown.supportHtml&&(o.markdown.allowedTags=["ul","li","p","code","blockquote","ol","h1","h2","h3","h4","h5","h6","hr","em","pre","table","thead","tbody","tr","th","td","div","del","a","strong","br","img","span"]);for(const t of this._features)t.fillClientCapabilities(e);return e}initializeFeatures(e){const t=this._clientOptions.documentSelector;for(const e of this._features)a.func(e.preInitialize)&&e.preInitialize(this._capabilities,t);for(const e of this._features)e.initialize(this._capabilities,t)}async handleRegistrationRequest(e){const t=this.clientOptions.middleware?.handleRegisterCapability;return t?t(e,(e=>this.doRegisterCapability(e))):this.doRegisterCapability(e)}async doRegisterCapability(e){if(this.isRunning())for(const t of e.registrations){const e=this._dynamicFeatures.get(t.method);if(void 0===e)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Registration failed.`));const n=t.registerOptions??{};n.documentSelector=n.documentSelector??this._clientOptions.documentSelector;const i={id:t.id,registerOptions:n};try{e.register(i)}catch(e){return Promise.reject(e)}}else for(const t of e.registrations)this._ignoredRegistrations.add(t.id)}async handleUnregistrationRequest(e){const t=this.clientOptions.middleware?.handleUnregisterCapability;return t?t(e,(e=>this.doUnregisterCapability(e))):this.doUnregisterCapability(e)}async doUnregisterCapability(e){for(const t of e.unregisterations){if(this._ignoredRegistrations.has(t.id))continue;const e=this._dynamicFeatures.get(t.method);if(!e)return Promise.reject(new Error(`No feature implementation for ${t.method} found. Unregistration failed.`));e.unregister(t.id)}}async handleApplyWorkspaceEdit(e){const t=this.clientOptions.middleware?.workspace?.handleApplyEdit;if(t){const n=await t(e,(e=>this.doHandleApplyWorkspaceEdit(e)));return n instanceof r.ResponseError?Promise.reject(n):n}return this.doHandleApplyWorkspaceEdit(e)}async doHandleApplyWorkspaceEdit(e){const t=e.edit,n=await this.workspaceEditLock.lock((()=>this._p2c.asWorkspaceEdit(t))),o=new Map;i.workspace.textDocuments.forEach((e=>o.set(e.uri.toString(),e)));let s=!1;if(t.documentChanges)for(const e of t.documentChanges)if(r.TextDocumentEdit.is(e)&&e.textDocument.version&&e.textDocument.version>=0){const t=this._p2c.asUri(e.textDocument.uri).toString(),n=o.get(t);if(n&&n.version!==e.textDocument.version){s=!0;break}}return s?Promise.resolve({applied:!1}):a.asPromise(i.workspace.applyEdit(n,{isRefactoring:e.metadata?.isRefactoring}).then((e=>({applied:e}))))}handleFailedRequest(e,t,n,o,s=!0,a=!1){if(n instanceof r.ResponseError){if(n.code===r.ErrorCodes.PendingResponseRejected||n.code===r.ErrorCodes.ConnectionInactive)return o;if(n.code===r.LSPErrorCodes.RequestCancelled||n.code===r.LSPErrorCodes.ServerCancelled){if(void 0!==t&&t.isCancellationRequested&&!a)return o;throw void 0!==n.data?new d.LSPCancellationError(n.data):new i.CancellationError}if(n.code===r.LSPErrorCodes.ContentModified){if(re.RequestsToCancelOnContentModified.has(e.method)||re.CancellableResolveCalls.has(e.method))throw new i.CancellationError;return o}}throw this.error(`Request ${e.method} failed.`,n,s),n}}t.BaseLanguageClient=re,re.RequestsToCancelOnContentModified=new Set([r.SemanticTokensRequest.method,r.SemanticTokensRangeRequest.method,r.SemanticTokensDeltaRequest.method]),re.CancellableResolveCalls=new Set([r.CompletionResolveRequest.method,r.CodeLensResolveRequest.method,r.CodeActionResolveRequest.method,r.InlayHintResolveRequest.method,r.DocumentLinkResolveRequest.method,r.WorkspaceSymbolResolveRequest.method]),t.LanguageClient=class extends re{constructor(e,t,n,i){super(e,t,i),this.serverOptions=n}async createMessageTransports(e){return this.serverOptions()}};class oe{error(e){(0,r.RAL)().console.error(e)}warn(e){(0,r.RAL)().console.warn(e)}info(e){(0,r.RAL)().console.info(e)}log(e){(0,r.RAL)().console.log(e)}}!function(e){e.createAll=function(e){return[new W.InlineCompletionItemFeature(e)]}}(ne||(t.ProposedFeatures=ne={}))},9474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionFeature=void 0;const i=n(9496),r=n(152),o=n(1980),s=n(8909);class a extends s.TextDocumentLanguageFeature{constructor(e){super(e,r.CodeActionRequest.type)}fillClientCapabilities(e){const t=(0,s.ensure)((0,s.ensure)(e,"textDocument"),"codeAction");t.dynamicRegistration=!0,t.isPreferredSupport=!0,t.disabledSupport=!0,t.dataSupport=!0,t.resolveSupport={properties:["edit","command"]},t.codeActionLiteralSupport={codeActionKind:{valueSet:[r.CodeActionKind.Empty,r.CodeActionKind.QuickFix,r.CodeActionKind.Refactor,r.CodeActionKind.RefactorExtract,r.CodeActionKind.RefactorInline,r.CodeActionKind.RefactorMove,r.CodeActionKind.RefactorRewrite,r.CodeActionKind.Source,r.CodeActionKind.SourceOrganizeImports,r.CodeActionKind.Notebook]}},t.honorsChangeAnnotations=!0,t.documentationSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.codeActionProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideCodeActions:(e,t,n,i)=>{const o=this._client,s=async(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),context:o.code2ProtocolConverter.asCodeActionContextSync(n)};return o.sendRequest(r.CodeActionRequest.type,s,i).then((e=>i.isCancellationRequested||null==e?null:o.protocol2CodeConverter.asCodeActionResult(e,i)),(e=>o.handleFailedRequest(r.CodeActionRequest.type,i,e,null)))},a=o.middleware;return a.provideCodeActions?a.provideCodeActions(e,t,n,i,s):s(e,t,n,i)},resolveCodeAction:e.resolveProvider?(e,t)=>{const n=this._client,i=this._client.middleware,o=async(e,t)=>n.sendRequest(r.CodeActionResolveRequest.type,n.code2ProtocolConverter.asCodeActionSync(e),t).then((i=>t.isCancellationRequested?e:n.protocol2CodeConverter.asCodeAction(i,t)),(i=>n.handleFailedRequest(r.CodeActionResolveRequest.type,t,i,e)));return i.resolveCodeAction?i.resolveCodeAction(e,t,o):o(e,t)}:void 0};return[i.languages.registerCodeActionsProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,this.getMetadata(e)),n]}getMetadata(e){if(void 0!==e.codeActionKinds||void 0!==e.documentation)return{providedCodeActionKinds:this._client.protocol2CodeConverter.asCodeActionKinds(e.codeActionKinds),documentation:this._client.protocol2CodeConverter.asCodeActionDocumentations(e.documentation)}}}t.CodeActionFeature=a},71:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConverter=void 0;const i=n(9496),r=n(152),o=n(9763),s=n(4904),a=n(1807),c=n(583),u=n(8705),l=n(6434),d=n(5316),f=n(8714),p=n(1365),g=n(3912),h=n(1065);var m;!function(e){e.is=function(e){const t=e;return t&&!!t.inserting&&!!t.replacing}}(m||(m={})),t.createConverter=function(e){const t=e||(e=>e.toString());function n(e){return t(e)}function v(e){return{uri:t(e.uri)}}function y(e){return{uri:t(e.uri),languageId:e.languageId,version:e.version,text:e.getText()}}function C(e){switch(e){case i.TextDocumentSaveReason.Manual:return r.TextDocumentSaveReason.Manual;case i.TextDocumentSaveReason.AfterDelay:return r.TextDocumentSaveReason.AfterDelay;case i.TextDocumentSaveReason.FocusOut:return r.TextDocumentSaveReason.FocusOut}return r.TextDocumentSaveReason.Manual}function S(e){switch(e){case i.CompletionTriggerKind.TriggerCharacter:return r.CompletionTriggerKind.TriggerCharacter;case i.CompletionTriggerKind.TriggerForIncompleteCompletions:return r.CompletionTriggerKind.TriggerForIncompleteCompletions;default:return r.CompletionTriggerKind.Invoked}}function _(e){switch(e){case i.SignatureHelpTriggerKind.Invoke:return r.SignatureHelpTriggerKind.Invoked;case i.SignatureHelpTriggerKind.TriggerCharacter:return r.SignatureHelpTriggerKind.TriggerCharacter;case i.SignatureHelpTriggerKind.ContentChange:return r.SignatureHelpTriggerKind.ContentChange}}function T(e){return{label:e.label}}function b(e){return{label:e.label,parameters:(t=e.parameters,t.map(T))};var t}function R(e){return{line:e.line,character:e.character}}function D(e){return null==e?e:{line:e.line>r.uinteger.MAX_VALUE?r.uinteger.MAX_VALUE:e.line,character:e.character>r.uinteger.MAX_VALUE?r.uinteger.MAX_VALUE:e.character}}function w(e){return null==e?e:{start:D(e.start),end:D(e.end)}}function E(e){return null==e?e:r.Location.create(n(e.uri),w(e.range))}function P(e){switch(e){case i.DiagnosticSeverity.Error:return r.DiagnosticSeverity.Error;case i.DiagnosticSeverity.Warning:return r.DiagnosticSeverity.Warning;case i.DiagnosticSeverity.Information:return r.DiagnosticSeverity.Information;case i.DiagnosticSeverity.Hint:return r.DiagnosticSeverity.Hint}}function k(e){switch(e){case i.DiagnosticTag.Unnecessary:return r.DiagnosticTag.Unnecessary;case i.DiagnosticTag.Deprecated:return r.DiagnosticTag.Deprecated;default:return}}function x(e){return{message:e.message,location:E(e.location)}}function I(e){const t=r.Diagnostic.create(w(e.range),e.message),i=e instanceof d.ProtocolDiagnostic?e:void 0;void 0!==i&&void 0!==i.data&&(t.data=i.data);const s=function(e){if(null!=e)return o.number(e)||o.string(e)?e:{value:e.value,target:n(e.target)}}(e.code);return d.DiagnosticCode.is(s)?void 0!==i&&i.hasDiagnosticCode?t.code=s:(t.code=s.value,t.codeDescription={href:s.target}):t.code=s,o.number(e.severity)&&(t.severity=P(e.severity)),Array.isArray(e.tags)&&(t.tags=function(e){if(!e)return;const t=[];for(const n of e){const e=k(n);void 0!==e&&t.push(e)}return t.length>0?t:void 0}(e.tags)),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(x)),e.source&&(t.source=e.source),t}function N(e,t){return null==e?e:s.map(e,I,t)}function O(e){return null==e?e:e.map(I)}function A(e){if(e===i.CompletionItemTag.Deprecated)return r.CompletionItemTag.Deprecated}function F(e){return{range:w(e.range),newText:e.newText}}function M(e){return null==e?e:e.map(F)}function L(e){return e<=i.SymbolKind.TypeParameter?e+1:r.SymbolKind.Property}function q(e){return e}function j(e){return e.map(q)}function U(e){switch(e){case i.CodeActionTriggerKind.Invoke:return r.CodeActionTriggerKind.Invoked;case i.CodeActionTriggerKind.Automatic:return r.CodeActionTriggerKind.Automatic;default:return}}function H(e){if(null!=e)return e.value}function K(e){return{triggerKind:V(e.triggerKind),selectedCompletionInfo:W(e.selectedCompletionInfo)}}function V(e){switch(e){case i.InlineCompletionTriggerKind.Invoke:return r.InlineCompletionTriggerKind.Invoked;case i.InlineCompletionTriggerKind.Automatic:return r.InlineCompletionTriggerKind.Automatic}}function W(e){if(null!=e)return{range:w(e.range),text:e.text}}function z(e){const t=r.Command.create(e.title,e.command);return e.tooltip&&(t.tooltip=e.tooltip),e.arguments&&(t.arguments=e.arguments),t}function B(e){const t=r.InlayHintLabelPart.create(e.value);return void 0!==e.location&&(t.location=E(e.location)),void 0!==e.command&&(t.command=z(e.command)),void 0!==e.tooltip&&(t.tooltip=$(e.tooltip)),t}function $(e){return"string"==typeof e?e:{kind:r.MarkupKind.Markdown,value:e.value}}return{asUri:n,asTextDocumentIdentifier:v,asTextDocumentItem:y,asVersionedTextDocumentIdentifier:function(e){return{uri:t(e.uri),version:e.version}},asOpenTextDocumentParams:function(e){return{textDocument:y(e)}},asChangeTextDocumentParams:function(e,n,i){if(function(e){const t=e;return!!t.uri&&!!t.version}(e))return{textDocument:{uri:t(e.uri),version:e.version},contentChanges:[{text:e.getText()}]};if(function(e){const t=e;return!!t.document&&!!t.contentChanges}(e)){const r=i;return{textDocument:{uri:t(n),version:r},contentChanges:e.contentChanges.map((e=>{const t=e.range;return{range:{start:{line:t.start.line,character:t.start.character},end:{line:t.end.line,character:t.end.character}},rangeLength:e.rangeLength,text:e.text}}))}}throw Error("Unsupported text document change parameter")},asCloseTextDocumentParams:function(e){return{textDocument:v(e)}},asSaveTextDocumentParams:function(e,t=!1){const n={textDocument:v(e)};return t&&(n.text=e.getText()),n},asWillSaveTextDocumentParams:function(e){return{textDocument:v(e.document),reason:C(e.reason)}},asDidCreateFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asDidRenameFilesParams:function(e){return{files:e.files.map((e=>({oldUri:t(e.oldUri),newUri:t(e.newUri)})))}},asDidDeleteFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asWillCreateFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asWillRenameFilesParams:function(e){return{files:e.files.map((e=>({oldUri:t(e.oldUri),newUri:t(e.newUri)})))}},asWillDeleteFilesParams:function(e){return{files:e.files.map((e=>({uri:t(e)})))}},asTextDocumentPositionParams:function(e,t){return{textDocument:v(e),position:R(t)}},asCompletionParams:function(e,t,n){return{textDocument:v(e),position:R(t),context:{triggerKind:S(n.triggerKind),triggerCharacter:n.triggerCharacter}}},asSignatureHelpParams:function(e,t,n){return{textDocument:v(e),position:R(t),context:{isRetrigger:n.isRetrigger,triggerCharacter:n.triggerCharacter,triggerKind:_(n.triggerKind),activeSignatureHelp:(i=n.activeSignatureHelp,void 0===i?i:{signatures:(r=i.signatures,r.map(b)),activeSignature:i.activeSignature,activeParameter:i.activeParameter})}};var i,r},asWorkerPosition:R,asRange:w,asRanges:function(e){return e.map(w)},asPosition:D,asPositions:function(e,t){return s.map(e,D,t)},asPositionsSync:function(e){return e.map(D)},asLocation:E,asDiagnosticSeverity:P,asDiagnosticTag:k,asDiagnostic:I,asDiagnostics:N,asDiagnosticsSync:O,asCompletionItem:function(e,t=!1){let n,s;o.string(e.label)?n=e.label:(n=e.label.label,!t||void 0===e.label.detail&&void 0===e.label.description||(s={detail:e.label.detail,description:e.label.description}));const c={label:n};void 0!==s&&(c.labelDetails=s);const u=e instanceof a.default?e:void 0;var l,d;e.detail&&(c.detail=e.detail),e.documentation&&(u&&"$string"!==u.documentationFormat?c.documentation=function(e,t){switch(e){case"$string":return t;case r.MarkupKind.PlainText:return{kind:e,value:t};case r.MarkupKind.Markdown:return{kind:e,value:t.value};default:return`Unsupported Markup content received. Kind is: ${e}`}}(u.documentationFormat,e.documentation):c.documentation=e.documentation),e.filterText&&(c.filterText=e.filterText),function(e,t){let n,o,s=r.InsertTextFormat.PlainText;t.textEdit?(n=t.textEdit.newText,o=t.textEdit.range):t.insertText instanceof i.SnippetString?(s=r.InsertTextFormat.Snippet,n=t.insertText.value):n=t.insertText,t.range&&(o=t.range),e.insertTextFormat=s,t.fromEdit&&void 0!==n&&void 0!==o?e.textEdit=function(e,t){return m.is(t)?r.InsertReplaceEdit.create(e,w(t.inserting),w(t.replacing)):{newText:e,range:w(t)}}(n,o):e.insertText=n}(c,e),o.number(e.kind)&&(c.kind=(l=e.kind,void 0!==(d=u&&u.originalItemKind)?d:l+1)),e.sortText&&(c.sortText=e.sortText),e.additionalTextEdits&&(c.additionalTextEdits=M(e.additionalTextEdits)),e.commitCharacters&&(c.commitCharacters=e.commitCharacters.slice()),e.command&&(c.command=z(e.command)),!0!==e.preselect&&!1!==e.preselect||(c.preselect=e.preselect);const f=function(e){if(void 0===e)return e;const t=[];for(const n of e){const e=A(n);void 0!==e&&t.push(e)}return t}(e.tags);if(u){if(void 0!==u.data&&(c.data=u.data),!0===u.deprecated||!1===u.deprecated){if(!0===u.deprecated&&void 0!==f&&f.length>0){const e=f.indexOf(i.CompletionItemTag.Deprecated);-1!==e&&f.splice(e,1)}c.deprecated=u.deprecated}void 0!==u.insertTextMode&&(c.insertTextMode=u.insertTextMode)}return void 0!==f&&f.length>0&&(c.tags=f),void 0===c.insertTextMode&&!0===e.keepWhitespace&&(c.insertTextMode=r.InsertTextMode.adjustIndentation),c},asTextEdit:F,asSymbolKind:L,asSymbolTag:q,asSymbolTags:j,asReferenceParams:function(e,t,n){return{textDocument:v(e),position:R(t),context:{includeDeclaration:n.includeDeclaration}}},asCodeAction:async function(e,t){const n=r.CodeAction.create(e.title);if(e instanceof l.default&&void 0!==e.data&&(n.data=e.data),void 0!==e.kind&&(n.kind=H(e.kind)),void 0!==e.diagnostics&&(n.diagnostics=await N(e.diagnostics,t)),void 0!==e.edit)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return void 0!==e.command&&(n.command=z(e.command)),void 0!==e.isPreferred&&(n.isPreferred=e.isPreferred),void 0!==e.disabled&&(n.disabled={reason:e.disabled.reason}),n},asCodeActionSync:function(e){const t=r.CodeAction.create(e.title);if(e instanceof l.default&&void 0!==e.data&&(t.data=e.data),void 0!==e.kind&&(t.kind=H(e.kind)),void 0!==e.diagnostics&&(t.diagnostics=O(e.diagnostics)),void 0!==e.edit)throw new Error("VS Code code actions can only be converted to a protocol code action without an edit.");return void 0!==e.command&&(t.command=z(e.command)),void 0!==e.isPreferred&&(t.isPreferred=e.isPreferred),void 0!==e.disabled&&(t.disabled={reason:e.disabled.reason}),t},asCodeActionContext:async function(e,t){if(null==e)return e;let n;return e.only&&o.string(e.only.value)&&(n=[e.only.value]),r.CodeActionContext.create(await N(e.diagnostics,t),n,U(e.triggerKind))},asCodeActionContextSync:function(e){if(null==e)return e;let t;return e.only&&o.string(e.only.value)&&(t=[e.only.value]),r.CodeActionContext.create(O(e.diagnostics),t,U(e.triggerKind))},asInlineValueContext:function(e){return r.InlineValueContext.create(e.frameId,w(e.stoppedLocation))},asCommand:z,asCodeLens:function(e){const t=r.CodeLens.create(w(e.range));return e.command&&(t.command=z(e.command)),e instanceof c.default&&e.data&&(t.data=e.data),t},asFormattingOptions:function(e,t){const n={tabSize:e.tabSize,insertSpaces:e.insertSpaces};return t.trimTrailingWhitespace&&(n.trimTrailingWhitespace=!0),t.trimFinalNewlines&&(n.trimFinalNewlines=!0),t.insertFinalNewline&&(n.insertFinalNewline=!0),n},asDocumentSymbolParams:function(e){return{textDocument:v(e)}},asCodeLensParams:function(e){return{textDocument:v(e)}},asDocumentLink:function(e){const t=r.DocumentLink.create(w(e.range));e.target&&(t.target=n(e.target)),void 0!==e.tooltip&&(t.tooltip=e.tooltip);const i=e instanceof u.default?e:void 0;return i&&i.data&&(t.data=i.data),t},asDocumentLinkParams:function(e){return{textDocument:v(e)}},asCallHierarchyItem:function(e){const t={name:e.name,kind:L(e.kind),uri:n(e.uri),range:w(e.range),selectionRange:w(e.selectionRange)};return void 0!==e.detail&&e.detail.length>0&&(t.detail=e.detail),void 0!==e.tags&&(t.tags=j(e.tags)),e instanceof f.default&&void 0!==e.data&&(t.data=e.data),t},asTypeHierarchyItem:function(e){const t={name:e.name,kind:L(e.kind),uri:n(e.uri),range:w(e.range),selectionRange:w(e.selectionRange)};return void 0!==e.detail&&e.detail.length>0&&(t.detail=e.detail),void 0!==e.tags&&(t.tags=j(e.tags)),e instanceof p.default&&void 0!==e.data&&(t.data=e.data),t},asInlayHint:function(e){const t="string"==typeof e.label?e.label:e.label.map(B),n=r.InlayHint.create(D(e.position),t);return void 0!==e.kind&&(n.kind=e.kind),void 0!==e.textEdits&&(n.textEdits=M(e.textEdits)),void 0!==e.tooltip&&(n.tooltip=$(e.tooltip)),void 0!==e.paddingLeft&&(n.paddingLeft=e.paddingLeft),void 0!==e.paddingRight&&(n.paddingRight=e.paddingRight),e instanceof h.default&&void 0!==e.data&&(n.data=e.data),n},asWorkspaceSymbol:function(e){const n=e instanceof g.default?{name:e.name,kind:L(e.kind),location:e.hasRange?E(e.location):{uri:t(e.location.uri)},data:e.data}:{name:e.name,kind:L(e.kind),location:E(e.location)};return void 0!==e.tags&&(n.tags=j(e.tags)),""!==e.containerName&&(n.containerName=e.containerName),n},asInlineCompletionParams:function(e,t,n){return{textDocument:v(e),position:D(t),context:K(n)}},asInlineCompletionContext:K}}},7711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeLensFeature=void 0;const i=n(9496),r=n(152),o=n(1980),s=n(8909);class a extends s.TextDocumentLanguageFeature{constructor(e){super(e,r.CodeLensRequest.type)}fillClientCapabilities(e){(0,s.ensure)((0,s.ensure)(e,"textDocument"),"codeLens").dynamicRegistration=!0,(0,s.ensure)((0,s.ensure)(e,"workspace"),"codeLens").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.CodeLensRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeCodeLensEmitter.fire()}));const n=this.getRegistrationOptions(t,e.codeLensProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n=new i.EventEmitter,o={onDidChangeCodeLenses:n.event,provideCodeLenses:(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.CodeLensRequest.type,n.code2ProtocolConverter.asCodeLensParams(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asCodeLenses(e,t)),(e=>n.handleFailedRequest(r.CodeLensRequest.type,t,e,null))),o=n.middleware;return o.provideCodeLenses?o.provideCodeLenses(e,t,i):i(e,t)},resolveCodeLens:e.resolveProvider?(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.CodeLensResolveRequest.type,n.code2ProtocolConverter.asCodeLens(e),t).then((i=>t.isCancellationRequested?e:n.protocol2CodeConverter.asCodeLens(i)),(i=>n.handleFailedRequest(r.CodeLensResolveRequest.type,t,i,e))),o=n.middleware;return o.resolveCodeLens?o.resolveCodeLens(e,t,i):i(e,t)}:void 0};return[i.languages.registerCodeLensProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),o),{provider:o,onDidChangeCodeLensEmitter:n}]}}t.CodeLensFeature=a},8880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorProviderFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentColorRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"colorProvider").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.colorProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideColorPresentations:(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={color:e,textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(t.document),range:i.code2ProtocolConverter.asRange(t.range)};return i.sendRequest(r.ColorPresentationRequest.type,o,n).then((e=>n.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorPresentations(e,n)),(e=>i.handleFailedRequest(r.ColorPresentationRequest.type,n,e,null)))},s=i.middleware;return s.provideColorPresentations?s.provideColorPresentations(e,t,n,o):o(e,t,n)},provideDocumentColors:(e,t)=>{const n=this._client,i=(e,t)=>{const i={textDocument:n.code2ProtocolConverter.asTextDocumentIdentifier(e)};return n.sendRequest(r.DocumentColorRequest.type,i,t).then((e=>t.isCancellationRequested?null:this._client.protocol2CodeConverter.asColorInformations(e,t)),(e=>n.handleFailedRequest(r.DocumentColorRequest.type,t,e,null)))},o=n.middleware;return o.provideDocumentColors?o.provideDocumentColors(e,t,i):i(e,t)}};return[i.languages.registerColorProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.ColorProviderFeature=s},1435:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompletionItemFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(1980),a=[r.CompletionItemKind.Text,r.CompletionItemKind.Method,r.CompletionItemKind.Function,r.CompletionItemKind.Constructor,r.CompletionItemKind.Field,r.CompletionItemKind.Variable,r.CompletionItemKind.Class,r.CompletionItemKind.Interface,r.CompletionItemKind.Module,r.CompletionItemKind.Property,r.CompletionItemKind.Unit,r.CompletionItemKind.Value,r.CompletionItemKind.Enum,r.CompletionItemKind.Keyword,r.CompletionItemKind.Snippet,r.CompletionItemKind.Color,r.CompletionItemKind.File,r.CompletionItemKind.Reference,r.CompletionItemKind.Folder,r.CompletionItemKind.EnumMember,r.CompletionItemKind.Constant,r.CompletionItemKind.Struct,r.CompletionItemKind.Event,r.CompletionItemKind.Operator,r.CompletionItemKind.TypeParameter];class c extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.CompletionRequest.type),this.labelDetailsSupport=new Map}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"completion");t.dynamicRegistration=!0,t.contextSupport=!0,t.completionItem={snippetSupport:!0,commitCharactersSupport:!0,documentationFormat:[r.MarkupKind.Markdown,r.MarkupKind.PlainText],deprecatedSupport:!0,preselectSupport:!0,tagSupport:{valueSet:[r.CompletionItemTag.Deprecated]},insertReplaceSupport:!0,resolveSupport:{properties:["documentation","detail","additionalTextEdits"]},insertTextModeSupport:{valueSet:[r.InsertTextMode.asIs,r.InsertTextMode.adjustIndentation]},labelDetailsSupport:!0},t.insertTextMode=r.InsertTextMode.adjustIndentation,t.completionItemKind={valueSet:a},t.completionList={itemDefaults:["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}}initialize(e,t){const n=this.getRegistrationOptions(t,e.completionProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e,t){this.labelDetailsSupport.set(t,!!e.completionItem?.labelDetailsSupport);const n=e.triggerCharacters??[],o=e.allCommitCharacters,s=e.documentSelector,a={provideCompletionItems:(e,t,n,i)=>{const s=this._client,a=this._client.middleware,c=(e,t,n,i)=>s.sendRequest(r.CompletionRequest.type,s.code2ProtocolConverter.asCompletionParams(e,t,n),i).then((e=>i.isCancellationRequested?null:s.protocol2CodeConverter.asCompletionResult(e,o,i)),(e=>s.handleFailedRequest(r.CompletionRequest.type,i,e,null)));return a.provideCompletionItem?a.provideCompletionItem(e,t,i,n,c):c(e,t,i,n)},resolveCompletionItem:e.resolveProvider?(e,n)=>{const i=this._client,o=this._client.middleware,s=(e,n)=>i.sendRequest(r.CompletionResolveRequest.type,i.code2ProtocolConverter.asCompletionItem(e,!!this.labelDetailsSupport.get(t)),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asCompletionItem(e)),(t=>i.handleFailedRequest(r.CompletionResolveRequest.type,n,t,e)));return o.resolveCompletionItem?o.resolveCompletionItem(e,n,s):s(e,n)}:void 0};return[i.languages.registerCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(s),a,...n),a]}}t.CompletionItemFeature=c},6495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SyncConfigurationFeature=t.toJSONObject=t.ConfigurationFeature=void 0;const i=n(9496),r=n(152),o=n(9763),s=n(1980),a=n(8909);function c(e){if(e){if(Array.isArray(e))return e.map(c);if("object"==typeof e){const t=Object.create(null);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=c(e[n]));return t}}return e}t.ConfigurationFeature=class{constructor(e){this._client=e}getState(){return{kind:"static"}}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.configuration=!0}initialize(){const e=this._client;e.onRequest(r.ConfigurationRequest.type,((t,n)=>{const i=e=>{const t=[];for(const n of e.items){const e=void 0!==n.scopeUri&&null!==n.scopeUri?this._client.protocol2CodeConverter.asUri(n.scopeUri):void 0;t.push(this.getConfiguration(e,null!==n.section?n.section:void 0))}return t},r=e.middleware.workspace;return r&&r.configuration?r.configuration(t,n,i):i(t)}))}getConfiguration(e,t){let n=null;if(t){const r=t.lastIndexOf(".");if(-1===r)n=c(i.workspace.getConfiguration(void 0,e).get(t));else{const o=i.workspace.getConfiguration(t.substr(0,r),e);o&&(n=c(o.get(t.substr(r+1))))}}else{const t=i.workspace.getConfiguration(void 0,e);n={};for(const e of Object.keys(t))t.has(e)&&(n[e]=c(t.get(e)))}return void 0===n&&(n=null),n}clear(){}},t.toJSONObject=c,t.SyncConfigurationFeature=class{constructor(e){this._client=e,this.isCleared=!1,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return r.DidChangeConfigurationNotification.type}fillClientCapabilities(e){(0,a.ensure)((0,a.ensure)(e,"workspace"),"didChangeConfiguration").dynamicRegistration=!0}initialize(){this.isCleared=!1;const e=this._client.clientOptions.synchronize?.configurationSection;void 0!==e&&this.register({id:s.generateUuid(),registerOptions:{section:e}})}register(e){const t=i.workspace.onDidChangeConfiguration((t=>{this.onDidChangeConfiguration(e.registerOptions.section,t)}));this._listeners.set(e.id,t),void 0!==e.registerOptions.section&&this.onDidChangeConfiguration(e.registerOptions.section,void 0)}unregister(e){const t=this._listeners.get(e);t&&(this._listeners.delete(e),t.dispose())}clear(){for(const e of this._listeners.values())e.dispose();this._listeners.clear(),this.isCleared=!0}onDidChangeConfiguration(e,t){if(this.isCleared)return;let n;if(n=o.string(e)?[e]:e,void 0!==n&&void 0!==t&&!n.some((e=>t.affectsConfiguration(e))))return;const i=async e=>void 0===e?this._client.sendNotification(r.DidChangeConfigurationNotification.type,{settings:null}):this._client.sendNotification(r.DidChangeConfigurationNotification.type,{settings:this.extractSettingsInformation(e)}),s=this._client.middleware.workspace?.didChangeConfiguration;(s?s(n,i):i(n)).catch((e=>{this._client.error(`Sending notification ${r.DidChangeConfigurationNotification.type.method} failed`,e)}))}extractSettingsInformation(e){function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let i=n[t[e]];i||(i=Object.create(null),n[t[e]]=i),n=i}return n}const n=this._client.clientOptions.workspaceFolder?this._client.clientOptions.workspaceFolder.uri:void 0,r=Object.create(null);for(let o=0;o<e.length;o++){const s=e[o],a=s.indexOf(".");let u=null;if(u=a>=0?i.workspace.getConfiguration(s.substr(0,a),n).get(s.substr(a+1)):i.workspace.getConfiguration(void 0,n).get(s),u){const n=e[o].split(".");t(r,n)[n[n.length-1]]=c(u)}}return r}}},707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DeclarationRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"declaration");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.declarationProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDeclaration:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.DeclarationRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asDeclarationResult(e,n)),(e=>i.handleFailedRequest(r.DeclarationRequest.type,n,e,null))),s=i.middleware;return s.provideDeclaration?s.provideDeclaration(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerDeclarationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.DeclarationFeature=s},122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefinitionFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DefinitionRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"definition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.definitionProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDefinition:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.DefinitionRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>i.handleFailedRequest(r.DefinitionRequest.type,n,e,null))),s=i.middleware;return s.provideDefinition?s.provideDefinition(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.DefinitionFeature=a},2570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticFeature=t.DiagnosticPullMode=t.vsdiag=void 0;const i=n(3634),r=n(9496),o=n(152),s=n(1980),a=n(8909),c=n(203);function u(e,t){return void 0===e[t]&&(e[t]={}),e[t]}var l,d,f,p,g;!function(e){let t;!function(e){e.full="full",e.unChanged="unChanged"}(t=e.DocumentDiagnosticReportKind||(e.DocumentDiagnosticReportKind={}))}(l||(t.vsdiag=l={})),function(e){e.onType="onType",e.onSave="onSave",e.onFocus="onFocus"}(d||(t.DiagnosticPullMode=d={})),function(e){e.active="open",e.reschedule="reschedule",e.outDated="drop"}(f||(f={}));class h{constructor(){this.open=new Set,this._onOpen=new r.EventEmitter,this._onClose=new r.EventEmitter,h.fillTabResources(this.open);void 0!==r.window.tabGroups.onDidChangeTabs?this.disposable=r.window.tabGroups.onDidChangeTabs((e=>{if(0===e.closed.length&&0===e.opened.length)return;const t=this.open,n=new Set;h.fillTabResources(n);const i=new Set,o=new Set(n);for(const e of t.values())n.has(e)?o.delete(e):i.add(e);if(this.open=n,i.size>0){const e=new Set;for(const t of i)e.add(r.Uri.parse(t));this._onClose.fire(e)}if(o.size>0){const e=new Set;for(const t of o)e.add(r.Uri.parse(t));this._onOpen.fire(e)}})):this.disposable={dispose:()=>{}}}get onClose(){return this._onClose.event}get onOpen(){return this._onOpen.event}dispose(){this.disposable.dispose()}isActive(e){return e instanceof r.Uri?r.window.activeTextEditor?.document.uri===e:r.window.activeTextEditor?.document===e}isVisible(e){const t=e instanceof r.Uri?e:e.uri;return t.scheme===c.NotebookDocumentSyncFeature.CellScheme?r.workspace.notebookDocuments.some((e=>!!this.open.has(e.uri.toString())&&void 0!==e.getCells().find((e=>e.document.uri.toString()===t.toString())))):this.open.has(t.toString())}getTabResources(){const e=new Set;return h.fillTabResources(new Set,e),e}static fillTabResources(e,t){const n=e??new Set;for(const e of r.window.tabGroups.all)for(const i of e.tabs){const e=i.input;let o;e instanceof r.TabInputText?o=e.uri:e instanceof r.TabInputTextDiff?o=e.modified:(e instanceof r.TabInputCustom||e instanceof r.TabInputNotebook)&&(o=e.uri),void 0===o||n.has(o.toString())||(n.add(o.toString()),void 0!==t&&t.add(o))}}}!function(e){e[e.document=1]="document",e[e.workspace=2]="workspace"}(p||(p={})),function(e){e.asKey=function(e){return e instanceof r.Uri?e.toString():e.uri.toString()}}(g||(g={}));class m{constructor(){this.documentPullStates=new Map,this.workspacePullStates=new Map}track(e,t,n){const i=e===p.document?this.documentPullStates:this.workspacePullStates,[o,s,a]=t instanceof r.Uri?[t.toString(),t,n]:[t.uri.toString(),t.uri,t.version];let c=i.get(o);return void 0===c&&(c={document:s,pulledVersion:a,resultId:void 0},i.set(o,c)),c}update(e,t,n,i){const o=e===p.document?this.documentPullStates:this.workspacePullStates,[s,a,c,u]=t instanceof r.Uri?[t.toString(),t,n,i]:[t.uri.toString(),t.uri,t.version,n];let l=o.get(s);void 0===l?(l={document:a,pulledVersion:c,resultId:u},o.set(s,l)):(l.pulledVersion=c,l.resultId=u)}unTrack(e,t){const n=g.asKey(t);(e===p.document?this.documentPullStates:this.workspacePullStates).delete(n)}tracks(e,t){const n=g.asKey(t);return(e===p.document?this.documentPullStates:this.workspacePullStates).has(n)}getResultId(e,t){const n=g.asKey(t);return(e===p.document?this.documentPullStates:this.workspacePullStates).get(n)?.resultId}getAllResultIds(){const e=[];for(let[t,n]of this.workspacePullStates)this.documentPullStates.has(t)&&(n=this.documentPullStates.get(t)),void 0!==n.resultId&&e.push({uri:t,value:n.resultId});return e}}class v{constructor(e,t,n){this.client=e,this.tabs=t,this.options=n,this.isDisposed=!1,this.onDidChangeDiagnosticsEmitter=new r.EventEmitter,this.provider=this.createProvider(),this.diagnostics=r.languages.createDiagnosticCollection(n.identifier),this.openRequests=new Map,this.documentStates=new m,this.workspaceErrorCounter=0}knows(e,t){const n=t instanceof r.Uri?t:t.uri;return this.documentStates.tracks(e,t)||this.openRequests.has(n.toString())}forget(e,t){this.documentStates.unTrack(e,t)}pull(e,t){if(this.isDisposed)return;const n=e instanceof r.Uri?e:e.uri;this.pullAsync(e).then((()=>{t&&t()}),(e=>{this.client.error(`Document pull failed for text document ${n.toString()}`,e,!1)}))}async pullAsync(e,t){if(this.isDisposed)return;const n=e instanceof r.Uri,i=n?e:e.uri,s=i.toString();t=n?t:e.version;const c=this.openRequests.get(s),u=n?this.documentStates.track(p.document,e,t):this.documentStates.track(p.document,e);if(void 0===c){const n=new r.CancellationTokenSource;let c,d;this.openRequests.set(s,{state:f.active,document:e,version:t,tokenSource:n});try{c=await this.provider.provideDiagnostics(e,u.resultId,n.token)??{kind:l.DocumentDiagnosticReportKind.full,items:[]}}catch(t){if(t instanceof a.LSPCancellationError&&o.DiagnosticServerCancellationData.is(t.data)&&!1===t.data.retriggerRequest&&(d={state:f.outDated,document:e}),!(void 0===d&&t instanceof r.CancellationError))throw t;d={state:f.reschedule,document:e}}if(d=d??this.openRequests.get(s),void 0===d)return this.client.error(`Lost request state in diagnostic pull model. Clearing diagnostics for ${s}`),void this.diagnostics.delete(i);if(this.openRequests.delete(s),!this.tabs.isVisible(e))return void this.documentStates.unTrack(p.document,e);if(d.state===f.outDated)return;void 0!==c&&(c.kind===l.DocumentDiagnosticReportKind.full&&this.diagnostics.set(i,c.items),u.pulledVersion=t,u.resultId=c.resultId),d.state===f.reschedule&&this.pull(e)}else c.state===f.active?(c.tokenSource.cancel(),this.openRequests.set(s,{state:f.reschedule,document:c.document})):c.state===f.outDated&&this.openRequests.set(s,{state:f.reschedule,document:c.document})}forgetDocument(e){const t=e instanceof r.Uri?e:e.uri,n=t.toString(),i=this.openRequests.get(n);this.options.workspaceDiagnostics?void 0!==i?this.openRequests.set(n,{state:f.reschedule,document:e}):this.pull(e,(()=>{this.forget(p.document,e)})):(void 0!==i&&(i.state===f.active&&i.tokenSource.cancel(),this.openRequests.set(n,{state:f.outDated,document:e})),this.diagnostics.delete(t),this.forget(p.document,e))}pullWorkspace(){this.isDisposed||this.pullWorkspaceAsync().then((()=>{this.workspaceTimeout=(0,o.RAL)().timer.setTimeout((()=>{this.pullWorkspace()}),2e3)}),(e=>{e instanceof a.LSPCancellationError||o.DiagnosticServerCancellationData.is(e.data)||(this.client.error("Workspace diagnostic pull failed.",e,!1),this.workspaceErrorCounter++),this.workspaceErrorCounter<=5&&(this.workspaceTimeout=(0,o.RAL)().timer.setTimeout((()=>{this.pullWorkspace()}),2e3))}))}async pullWorkspaceAsync(){if(!this.provider.provideWorkspaceDiagnostics||this.isDisposed)return;void 0!==this.workspaceCancellation&&(this.workspaceCancellation.cancel(),this.workspaceCancellation=void 0),this.workspaceCancellation=new r.CancellationTokenSource;const e=this.documentStates.getAllResultIds().map((e=>({uri:this.client.protocol2CodeConverter.asUri(e.uri),value:e.value})));await this.provider.provideWorkspaceDiagnostics(e,this.workspaceCancellation.token,(e=>{if(e&&!this.isDisposed)for(const t of e.items)t.kind===l.DocumentDiagnosticReportKind.full&&(this.documentStates.tracks(p.document,t.uri)||this.diagnostics.set(t.uri,t.items)),this.documentStates.update(p.workspace,t.uri,t.version??void 0,t.resultId)}))}createProvider(){const e={onDidChangeDiagnostics:this.onDidChangeDiagnosticsEmitter.event,provideDiagnostics:(e,t,n)=>{const i=(e,t,n)=>{const i={identifier:this.options.identifier,textDocument:{uri:this.client.code2ProtocolConverter.asUri(e instanceof r.Uri?e:e.uri)},previousResultId:t};return!0!==this.isDisposed&&this.client.isRunning()?this.client.sendRequest(o.DocumentDiagnosticRequest.type,i,n).then((async e=>null==e||this.isDisposed||n.isCancellationRequested?{kind:l.DocumentDiagnosticReportKind.full,items:[]}:e.kind===o.DocumentDiagnosticReportKind.Full?{kind:l.DocumentDiagnosticReportKind.full,resultId:e.resultId,items:await this.client.protocol2CodeConverter.asDiagnostics(e.items,n)}:{kind:l.DocumentDiagnosticReportKind.unChanged,resultId:e.resultId}),(e=>this.client.handleFailedRequest(o.DocumentDiagnosticRequest.type,n,e,{kind:l.DocumentDiagnosticReportKind.full,items:[]},!0,!0))):{kind:l.DocumentDiagnosticReportKind.full,items:[]}},s=this.client.middleware;return s.provideDiagnostics?s.provideDiagnostics(e,t,n,i):i(e,t,n)}};return this.options.workspaceDiagnostics&&(e.provideWorkspaceDiagnostics=(e,t,n)=>{const i=async e=>e.kind===o.DocumentDiagnosticReportKind.Full?{kind:l.DocumentDiagnosticReportKind.full,uri:this.client.protocol2CodeConverter.asUri(e.uri),resultId:e.resultId,version:e.version,items:await this.client.protocol2CodeConverter.asDiagnostics(e.items,t)}:{kind:l.DocumentDiagnosticReportKind.unChanged,uri:this.client.protocol2CodeConverter.asUri(e.uri),resultId:e.resultId,version:e.version},r=e=>{const t=[];for(const n of e)t.push({uri:this.client.code2ProtocolConverter.asUri(n.uri),value:n.value});return t},a=(e,t)=>{const a=(0,s.generateUuid)(),c=this.client.onProgress(o.WorkspaceDiagnosticRequest.partialResult,a,(async e=>{if(null==e)return void n(null);const t={items:[]};for(const n of e.items)try{t.items.push(await i(n))}catch(e){this.client.error("Converting workspace diagnostics failed.",e)}n(t)})),u={identifier:this.options.identifier,previousResultIds:r(e),partialResultToken:a};return!0!==this.isDisposed&&this.client.isRunning()?this.client.sendRequest(o.WorkspaceDiagnosticRequest.type,u,t).then((async e=>{if(t.isCancellationRequested)return{items:[]};const r={items:[]};for(const t of e.items)r.items.push(await i(t));return c.dispose(),n(r),{items:[]}}),(e=>(c.dispose(),this.client.handleFailedRequest(o.DocumentDiagnosticRequest.type,t,e,{items:[]})))):{items:[]}},c=this.client.middleware;return c.provideWorkspaceDiagnostics?c.provideWorkspaceDiagnostics(e,t,n,a):a(e,t)}),e}dispose(){this.isDisposed=!0,this.workspaceCancellation?.cancel(),this.workspaceTimeout?.dispose();for(const[e,t]of this.openRequests)t.state===f.active&&t.tokenSource.cancel(),this.openRequests.set(e,{state:f.outDated,document:t.document});this.diagnostics.dispose()}}class y{constructor(e,t){this.client=e,this.diagnosticRequestor=t,this.documents=new o.LinkedMap,this.isDisposed=!1}add(e){if(!0===this.isDisposed)return;const t=g.asKey(e);this.documents.has(t)||(this.documents.set(t,e,o.Touch.Last),this.lastDocumentToPull=e)}remove(e){const t=g.asKey(e);if(this.documents.delete(t),0!==this.documents.size){if(t===this.lastDocumentToPullKey()){const e=this.documents.before(t);void 0===e?this.stop():this.lastDocumentToPull=e}}else this.stop()}trigger(){this.lastDocumentToPull=this.documents.last,this.runLoop()}runLoop(){!0!==this.isDisposed&&(0!==this.documents.size?void 0!==this.lastDocumentToPull&&void 0===this.timeoutHandle&&(this.timeoutHandle=(0,o.RAL)().timer.setTimeout((()=>{const e=this.documents.first;if(void 0===e)return;const t=g.asKey(e);this.diagnosticRequestor.pullAsync(e).catch((e=>{this.client.error(`Document pull failed for text document ${t}`,e,!1)})).finally((()=>{this.timeoutHandle=void 0,this.documents.set(t,e,o.Touch.Last),t!==this.lastDocumentToPullKey()&&this.runLoop()}))}),500)):this.stop())}dispose(){this.isDisposed=!0,this.stop(),this.documents.clear(),this.lastDocumentToPull=void 0}stop(){this.timeoutHandle?.dispose(),this.timeoutHandle=void 0,this.lastDocumentToPull=void 0}lastDocumentToPullKey(){return void 0!==this.lastDocumentToPull?g.asKey(this.lastDocumentToPull):void 0}}class C{constructor(e,t,n){const s=Object.assign({onChange:!1,onSave:!1,onFocus:!1},e.clientOptions.diagnosticPullOptions),a=e.protocol2CodeConverter.asDocumentSelector(n.documentSelector),c=[],u=e=>e instanceof r.Uri?(e=>{const t=n.documentSelector;if(void 0!==s.match)return s.match(t,e);for(const n of t)if(o.TextDocumentFilter.is(n)){if("string"==typeof n)return!1;if(void 0!==n.language&&"*"!==n.language)return!1;if(void 0!==n.scheme&&"*"!==n.scheme&&n.scheme!==e.scheme)return!1;if(void 0!==n.pattern){const t=new i.Minimatch(n.pattern,{noext:!0});if(!t.makeRe())return!1;if(!t.match(e.fsPath))return!1}}return!0})(e):r.languages.match(a,e)>0&&t.isVisible(e),l=e=>r.languages.match(a,e.document)>0&&t.isVisible(e.notebook.uri),f=e=>e instanceof r.Uri?this.activeTextDocument?.uri.toString()===e.toString():this.activeTextDocument===e;this.diagnosticRequestor=new v(e,t,n),this.backgroundScheduler=new y(e,this.diagnosticRequestor);const g=e=>{u(e)&&n.interFileDependencies&&!f(e)&&!1!==s.onChange&&this.backgroundScheduler.add(e)},h=(e,t)=>(void 0===s.filter||!s.filter(e,t))&&this.diagnosticRequestor.knows(p.document,e);this.activeTextDocument=r.window.activeTextEditor?.document,c.push(r.window.onDidChangeActiveTextEditor((e=>{const t=this.activeTextDocument;this.activeTextDocument=e?.document,void 0!==t&&g(t),void 0!==this.activeTextDocument&&(this.backgroundScheduler.remove(this.activeTextDocument),!0===s.onFocus&&u(this.activeTextDocument)&&h(this.activeTextDocument,d.onFocus)&&this.diagnosticRequestor.pull(this.activeTextDocument))})));const m=e.getFeature(o.DidOpenTextDocumentNotification.method);c.push(m.onNotificationSent((e=>{const t=e.textDocument;this.diagnosticRequestor.knows(p.document,t)||u(t)&&this.diagnosticRequestor.pull(t,(()=>{g(t)}))})));const C=e.getFeature(o.NotebookDocumentSyncRegistrationType.method);c.push(C.onOpenNotificationSent((e=>{for(const t of e.getCells())l(t)&&this.diagnosticRequestor.pull(t.document,(()=>{g(t.document)}))}))),c.push(t.onOpen((e=>{for(const t of e){if(this.diagnosticRequestor.knows(p.document,t))continue;const e=t.toString();let n;for(const t of r.workspace.textDocuments)if(e===t.uri.toString()){n=t;break}void 0!==n&&u(n)&&this.diagnosticRequestor.pull(n,(()=>{g(n)}))}})));const S=new Set;for(const e of r.workspace.textDocuments)u(e)&&(this.diagnosticRequestor.pull(e,(()=>{g(e)})),S.add(e.uri.toString()));for(const e of r.workspace.notebookDocuments)for(const t of e.getCells())l(t)&&(this.diagnosticRequestor.pull(t.document,(()=>{g(t.document)})),S.add(t.document.uri.toString()));if(!0===s.onTabs)for(const e of t.getTabResources())!S.has(e.toString())&&u(e)&&this.diagnosticRequestor.pull(e,(()=>{g(e)}));if(!0===s.onChange){const t=e.getFeature(o.DidChangeTextDocumentNotification.method);c.push(t.onNotificationSent((async e=>{const t=e.textDocument;h(t,d.onType)&&this.diagnosticRequestor.pull(t,(()=>{this.backgroundScheduler.trigger()}))}))),c.push(C.onChangeNotificationSent((async e=>{const t=(e.cells?.textContent||[]).map((t=>e.notebook.getCells().find((e=>e.document.uri.toString()===t.document.uri.toString()))));for(const e of t)e&&l(e)&&this.diagnosticRequestor.pull(e.document,(()=>{this.backgroundScheduler.trigger()}));const n=e.cells?.structure?.didClose||[];for(const e of n)this.diagnosticRequestor.forgetDocument(e.document);const i=e.cells?.structure?.didOpen||[];for(const e of i)l(e)&&this.diagnosticRequestor.pull(e.document,(()=>{this.backgroundScheduler.trigger()}))})))}if(!0===s.onSave){const t=e.getFeature(o.DidSaveTextDocumentNotification.method);c.push(t.onNotificationSent((e=>{const t=e.textDocument;h(t,d.onSave)&&this.diagnosticRequestor.pull(e.textDocument)}))),c.push(C.onSaveNotificationSent((e=>{for(const t of e.getCells())l(t)&&this.diagnosticRequestor.pull(t.document)})))}const _=e.getFeature(o.DidCloseTextDocumentNotification.method);c.push(_.onNotificationSent((e=>{this.cleanUpDocument(e.textDocument)}))),c.push(C.onCloseNotificationSent((e=>{for(const t of e.getCells())this.cleanUpDocument(t.document)}))),t.onClose((e=>{for(const t of e)this.cleanUpDocument(t)})),this.diagnosticRequestor.onDidChangeDiagnosticsEmitter.event((()=>{for(const e of r.workspace.textDocuments)u(e)&&this.diagnosticRequestor.pull(e)})),!0===n.workspaceDiagnostics&&"da348dc5-c30a-4515-9d98-31ff3be38d14"!==n.identifier&&this.diagnosticRequestor.pullWorkspace(),this.disposable=r.Disposable.from(...c,this.backgroundScheduler,this.diagnosticRequestor)}get onDidChangeDiagnosticsEmitter(){return this.diagnosticRequestor.onDidChangeDiagnosticsEmitter}get diagnostics(){return this.diagnosticRequestor.provider}forget(e){this.cleanUpDocument(e)}cleanUpDocument(e){this.backgroundScheduler.remove(e),this.diagnosticRequestor.knows(p.document,e)&&this.diagnosticRequestor.forgetDocument(e)}}class S extends a.TextDocumentLanguageFeature{constructor(e){super(e,o.DocumentDiagnosticRequest.type)}fillClientCapabilities(e){const t=u(u(e,"textDocument"),"diagnostic");t.relatedInformation=!0,t.tagSupport={valueSet:[o.DiagnosticTag.Unnecessary,o.DiagnosticTag.Deprecated]},t.codeDescriptionSupport=!0,t.dataSupport=!0,t.dynamicRegistration=!0,t.relatedDocumentSupport=!1,u(u(e,"workspace"),"diagnostics").refreshSupport=!0}initialize(e,t){this._client.onRequest(o.DiagnosticRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeDiagnosticsEmitter.fire()}));const[n,i]=this.getRegistration(t,e.diagnosticProvider);n&&i&&this.register({id:n,registerOptions:i})}clear(){void 0!==this.tabs&&(this.tabs.dispose(),this.tabs=void 0),super.clear()}refresh(){for(const e of this.getAllProviders())e.onDidChangeDiagnosticsEmitter.fire()}registerLanguageProvider(e){void 0===this.tabs&&(this.tabs=new h);const t=new C(this._client,this.tabs,e);return[t.disposable,t]}}t.DiagnosticFeature=S},9959:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentHighlightFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentHighlightRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"documentHighlight").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentHighlightProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentHighlights:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.DocumentHighlightRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asDocumentHighlights(e,n)),(e=>i.handleFailedRequest(r.DocumentHighlightRequest.type,n,e,null))),s=i.middleware;return s.provideDocumentHighlights?s.provideDocumentHighlights(e,t,n,o):o(e,t,n)}};return[i.languages.registerDocumentHighlightProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentHighlightFeature=a},3471:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentLinkRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"documentLink");t.dynamicRegistration=!0,t.tooltipSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentLinkProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentLinks:(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.DocumentLinkRequest.type,n.code2ProtocolConverter.asDocumentLinkParams(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asDocumentLinks(e,t)),(e=>n.handleFailedRequest(r.DocumentLinkRequest.type,t,e,null))),o=n.middleware;return o.provideDocumentLinks?o.provideDocumentLinks(e,t,i):i(e,t)},resolveDocumentLink:e.resolveProvider?(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.DocumentLinkResolveRequest.type,n.code2ProtocolConverter.asDocumentLink(e),t).then((i=>t.isCancellationRequested?e:n.protocol2CodeConverter.asDocumentLink(i)),(i=>n.handleFailedRequest(r.DocumentLinkResolveRequest.type,t,i,e))),o=n.middleware;return o.resolveDocumentLink?o.resolveDocumentLink(e,t,i):i(e,t)}:void 0};return[i.languages.registerDocumentLinkProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentLinkFeature=a},2483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentSymbolFeature=t.SupportedSymbolTags=t.SupportedSymbolKinds=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(1980);t.SupportedSymbolKinds=[r.SymbolKind.File,r.SymbolKind.Module,r.SymbolKind.Namespace,r.SymbolKind.Package,r.SymbolKind.Class,r.SymbolKind.Method,r.SymbolKind.Property,r.SymbolKind.Field,r.SymbolKind.Constructor,r.SymbolKind.Enum,r.SymbolKind.Interface,r.SymbolKind.Function,r.SymbolKind.Variable,r.SymbolKind.Constant,r.SymbolKind.String,r.SymbolKind.Number,r.SymbolKind.Boolean,r.SymbolKind.Array,r.SymbolKind.Object,r.SymbolKind.Key,r.SymbolKind.Null,r.SymbolKind.EnumMember,r.SymbolKind.Struct,r.SymbolKind.Event,r.SymbolKind.Operator,r.SymbolKind.TypeParameter],t.SupportedSymbolTags=[r.SymbolTag.Deprecated];class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentSymbolRequest.type)}fillClientCapabilities(e){const n=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"documentSymbol");n.dynamicRegistration=!0,n.symbolKind={valueSet:t.SupportedSymbolKinds},n.hierarchicalDocumentSymbolSupport=!0,n.tagSupport={valueSet:t.SupportedSymbolTags},n.labelSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentSymbolProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentSymbols:(e,t)=>{const n=this._client,i=async(e,t)=>{try{const i=await n.sendRequest(r.DocumentSymbolRequest.type,n.code2ProtocolConverter.asDocumentSymbolParams(e),t);if(t.isCancellationRequested||null==i)return null;if(0===i.length)return[];{const e=i[0];return r.DocumentSymbol.is(e)?await n.protocol2CodeConverter.asDocumentSymbols(i,t):await n.protocol2CodeConverter.asSymbolInformations(i,t)}}catch(e){return n.handleFailedRequest(r.DocumentSymbolRequest.type,t,e,null)}},o=n.middleware;return o.provideDocumentSymbols?o.provideDocumentSymbols(e,t,i):i(e,t)}},o=void 0!==e.label?{label:e.label}:void 0;return[i.languages.registerDocumentSymbolProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,o),n]}}t.DocumentSymbolFeature=a},4849:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteCommandFeature=void 0;const i=n(9496),r=n(152),o=n(1980),s=n(8909);t.ExecuteCommandFeature=class{constructor(e){this._client=e,this._commands=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._commands.size>0}}get registrationType(){return r.ExecuteCommandRequest.type}fillClientCapabilities(e){(0,s.ensure)((0,s.ensure)(e,"workspace"),"executeCommand").dynamicRegistration=!0}initialize(e){e.executeCommandProvider&&this.register({id:o.generateUuid(),registerOptions:Object.assign({},e.executeCommandProvider)})}register(e){const t=this._client,n=t.middleware,o=(e,n)=>{const i={command:e,arguments:n};return t.sendRequest(r.ExecuteCommandRequest.type,i).then(void 0,(e=>t.handleFailedRequest(r.ExecuteCommandRequest.type,void 0,e,void 0)))};if(e.registerOptions.commands){const t=[];for(const r of e.registerOptions.commands)t.push(i.commands.registerCommand(r,((...e)=>n.executeCommand?n.executeCommand(r,e,o):o(r,e))));this._commands.set(e.id,t)}}unregister(e){const t=this._commands.get(e);t&&(this._commands.delete(e),t.forEach((e=>e.dispose())))}clear(){this._commands.forEach((e=>{e.forEach((e=>e.dispose()))})),this._commands.clear()}}},8909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFeature=t.TextDocumentLanguageFeature=t.TextDocumentEventFeature=t.DynamicDocumentFeature=t.DynamicFeature=t.StaticFeature=t.ensure=t.LSPCancellationError=void 0;const i=n(9496),r=n(152),o=n(9763),s=n(1980);class a extends i.CancellationError{constructor(e){super(),this.data=e}}var c,u;t.LSPCancellationError=a,t.ensure=function(e,t){return void 0===e[t]&&(e[t]={}),e[t]},function(e){e.is=function(e){const t=e;return null!=t&&o.func(t.fillClientCapabilities)&&o.func(t.initialize)&&o.func(t.getState)&&o.func(t.clear)&&(void 0===t.fillInitializeParams||o.func(t.fillInitializeParams))}}(c||(t.StaticFeature=c={})),function(e){e.is=function(e){const t=e;return null!=t&&o.func(t.fillClientCapabilities)&&o.func(t.initialize)&&o.func(t.getState)&&o.func(t.clear)&&(void 0===t.fillInitializeParams||o.func(t.fillInitializeParams))&&o.func(t.register)&&o.func(t.unregister)&&void 0!==t.registrationType}}(u||(t.DynamicFeature=u={}));class l{constructor(e){this._client=e}getState(){const e=this.getDocumentSelectors();let t=0;for(const n of e){t++;for(const e of i.workspace.textDocuments)if(i.languages.match(n,e)>0)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}const n=t>0;return{kind:"document",id:this.registrationType.method,registrations:n,matches:!1}}}t.DynamicDocumentFeature=l,t.TextDocumentEventFeature=class extends l{static textDocumentFilter(e,t){for(const n of e)if(i.languages.match(n,t)>0)return!0;return!1}constructor(e,t,n,r,o,s,a){super(e),this._event=t,this._type=n,this._middleware=r,this._createParams=o,this._textDocument=s,this._selectorFilter=a,this._selectors=new Map,this._onNotificationSent=new i.EventEmitter}getStateInfo(){return[this._selectors.values(),!1]}getDocumentSelectors(){return this._selectors.values()}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=this._event((e=>{this.callback(e).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed.`,e)}))}))),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}async callback(e){const t=async e=>{const t=this._createParams(e);await this._client.sendNotification(this._type,t),this.notificationSent(this.getTextDocument(e),this._type,t)};if(this.matches(e)){const n=this._middleware();return n?n(e,(e=>t(e))):t(e)}}matches(e){return!this._client.hasDedicatedTextSynchronizationFeature(this._textDocument(e))&&(!this._selectorFilter||this._selectorFilter(this._selectors.values(),e))}get onNotificationSent(){return this._onNotificationSent.event}notificationSent(e,t,n){this._onNotificationSent.fire({textDocument:e,type:t,params:n})}unregister(e){this._selectors.delete(e),0===this._selectors.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._onNotificationSent.dispose(),this._onNotificationSent=new i.EventEmitter,this._listener&&(this._listener.dispose(),this._listener=void 0)}getProvider(e){for(const t of this._selectors.values())if(i.languages.match(t,e)>0)return{send:e=>this.callback(e)}}},t.TextDocumentLanguageFeature=class extends l{constructor(e,t){super(e),this._registrationType=t,this._registrations=new Map}*getDocumentSelectors(){for(const e of this._registrations.values()){const t=e.data.registerOptions.documentSelector;null!==t&&(yield this._client.protocol2CodeConverter.asDocumentSelector(t))}}get registrationType(){return this._registrationType}register(e){if(!e.registerOptions.documentSelector)return;const t=this.registerLanguageProvider(e.registerOptions,e.id);this._registrations.set(e.id,{disposable:t[0],data:e,provider:t[1]})}unregister(e){const t=this._registrations.get(e);void 0!==t&&(this._registrations.delete(e),t.disposable.dispose())}clear(){this._registrations.forEach((e=>{e.disposable.dispose()})),this._registrations.clear()}getRegistration(e,t){if(!t)return[void 0,void 0];if(r.TextDocumentRegistrationOptions.is(t)){const n=r.StaticRegistrationOptions.hasId(t)?t.id:s.generateUuid(),i=t.documentSelector??e;if(i)return[n,Object.assign({},t,{documentSelector:i})]}else if(o.boolean(t)&&!0===t||r.WorkDoneProgressOptions.is(t)){if(!e)return[void 0,void 0];const n=o.boolean(t)&&!0===t?{documentSelector:e}:Object.assign({},t,{documentSelector:e});return[s.generateUuid(),n]}return[void 0,void 0]}getRegistrationOptions(e,t){if(e&&t)return o.boolean(t)&&!0===t?{documentSelector:e}:Object.assign({},t,{documentSelector:e})}getProvider(e){for(const t of this._registrations.values()){const n=t.data.registerOptions.documentSelector;if(null!==n&&i.languages.match(this._client.protocol2CodeConverter.asDocumentSelector(n),e)>0)return t.provider}}getAllProviders(){const e=[];for(const t of this._registrations.values())e.push(t.provider);return e}},t.WorkspaceFeature=class{constructor(e,t){this._client=e,this._registrationType=t,this._registrations=new Map}getState(){const e=this._registrations.size>0;return{kind:"workspace",id:this._registrationType.method,registrations:e}}get registrationType(){return this._registrationType}register(e){const t=this.registerLanguageProvider(e.registerOptions);this._registrations.set(e.id,{disposable:t[0],provider:t[1]})}unregister(e){const t=this._registrations.get(e);void 0!==t&&(this._registrations.delete(e),t.disposable.dispose())}clear(){this._registrations.forEach((e=>{e.disposable.dispose()})),this._registrations.clear()}getProviders(){const e=[];for(const t of this._registrations.values())e.push(t.provider);return e}}},7606:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesFeature=t.WillRenameFilesFeature=t.WillCreateFilesFeature=t.DidDeleteFilesFeature=t.DidRenameFilesFeature=t.DidCreateFilesFeature=void 0;const i=n(9496),r=n(3634),o=n(152),s=n(1980);function a(e,t){return void 0===e[t]&&(e[t]={}),e[t]}function c(e,t,n){e[t]=n}class u{constructor(e,t,n,i,r){this._client=e,this._event=t,this._registrationType=n,this._clientCapability=i,this._serverCapability=r,this._filters=new Map}getState(){return{kind:"workspace",id:this._registrationType.method,registrations:this._filters.size>0}}filterSize(){return this._filters.size}get registrationType(){return this._registrationType}fillClientCapabilities(e){const t=a(a(e,"workspace"),"fileOperations");c(t,"dynamicRegistration",!0),c(t,this._clientCapability,!0)}initialize(e){const t=e.workspace?.fileOperations,n=void 0!==t?t[this._serverCapability]:void 0;if(void 0!==n?.filters)try{this.register({id:s.generateUuid(),registerOptions:{filters:n.filters}})}catch(e){this._client.warn(`Ignoring invalid glob pattern for ${this._serverCapability} registration: ${e}`)}}register(e){this._listener||(this._listener=this._event(this.send,this));const t=e.registerOptions.filters.map((e=>{const t=new r.Minimatch(e.pattern.glob,u.asMinimatchOptions(e.pattern.options));if(!t.makeRe())throw new Error(`Invalid pattern ${e.pattern.glob}!`);return{scheme:e.scheme,matcher:t,kind:e.pattern.matches}}));this._filters.set(e.id,t)}unregister(e){this._filters.delete(e),0===this._filters.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._filters.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}getFileType(e){return u.getFileType(e)}async filter(e,t){const n=await Promise.all(e.files.map((async e=>{const n=t(e),r=n.fsPath.replace(/\\/g,"/");for(const e of this._filters.values())for(const t of e)if(void 0===t.scheme||t.scheme===n.scheme)if(t.matcher.match(r)){if(void 0===t.kind)return!0;const e=await this.getFileType(n);if(void 0===e)return this._client.error(`Failed to determine file type for ${n.toString()}.`),!0;if(e===i.FileType.File&&t.kind===o.FileOperationPatternKind.file||e===i.FileType.Directory&&t.kind===o.FileOperationPatternKind.folder)return!0}else if(t.kind===o.FileOperationPatternKind.folder&&await u.getFileType(n)===i.FileType.Directory&&t.matcher.match(`${r}/`))return!0;return!1}))),r=e.files.filter(((e,t)=>n[t]));return{...e,files:r}}static async getFileType(e){try{return(await i.workspace.fs.stat(e)).type}catch(e){return}}static asMinimatchOptions(e){const t={dot:!0};return!0===e?.ignoreCase&&(t.nocase=!0),t}}class l extends u{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r),this._notificationType=n,this._accessUri=o,this._createParams=s}async send(e){const t=await this.filter(e,this._accessUri);if(t.files.length){const e=async e=>this._client.sendNotification(this._notificationType,this._createParams(e));return this.doSend(t,e)}}}class d extends l{constructor(){super(...arguments),this._fsPathFileTypes=new Map}async getFileType(e){const t=e.fsPath;if(this._fsPathFileTypes.has(t))return this._fsPathFileTypes.get(t);const n=await u.getFileType(e);return n&&this._fsPathFileTypes.set(t,n),n}async cacheFileTypes(e,t){await this.filter(e,t)}clearFileTypeCache(){this._fsPathFileTypes.clear()}unregister(e){super.unregister(e),0===this.filterSize()&&this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}clear(){super.clear(),this._willListener&&(this._willListener.dispose(),this._willListener=void 0)}}t.DidCreateFilesFeature=class extends l{constructor(e){super(e,i.workspace.onDidCreateFiles,o.DidCreateFilesNotification.type,"didCreate","didCreate",(e=>e),e.code2ProtocolConverter.asDidCreateFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.didCreateFiles?n.didCreateFiles(e,t):t(e)}},t.DidRenameFilesFeature=class extends d{constructor(e){super(e,i.workspace.onDidRenameFiles,o.DidRenameFilesNotification.type,"didRename","didRename",(e=>e.oldUri),e.code2ProtocolConverter.asDidRenameFilesParams)}register(e){this._willListener||(this._willListener=i.workspace.onWillRenameFiles(this.willRename,this)),super.register(e)}willRename(e){e.waitUntil(this.cacheFileTypes(e,(e=>e.oldUri)))}doSend(e,t){this.clearFileTypeCache();const n=this._client.middleware.workspace;return n?.didRenameFiles?n.didRenameFiles(e,t):t(e)}},t.DidDeleteFilesFeature=class extends d{constructor(e){super(e,i.workspace.onDidDeleteFiles,o.DidDeleteFilesNotification.type,"didDelete","didDelete",(e=>e),e.code2ProtocolConverter.asDidDeleteFilesParams)}register(e){this._willListener||(this._willListener=i.workspace.onWillDeleteFiles(this.willDelete,this)),super.register(e)}willDelete(e){e.waitUntil(this.cacheFileTypes(e,(e=>e)))}doSend(e,t){this.clearFileTypeCache();const n=this._client.middleware.workspace;return n?.didDeleteFiles?n.didDeleteFiles(e,t):t(e)}};class f extends u{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r),this._requestType=n,this._accessUri=o,this._createParams=s}async send(e){const t=this.waitUntil(e);e.waitUntil(t)}async waitUntil(e){const t=await this.filter(e,this._accessUri);if(t.files.length){const e=e=>this._client.sendRequest(this._requestType,this._createParams(e),e.token).then(this._client.protocol2CodeConverter.asWorkspaceEdit);return this.doSend(t,e)}}}t.WillCreateFilesFeature=class extends f{constructor(e){super(e,i.workspace.onWillCreateFiles,o.WillCreateFilesRequest.type,"willCreate","willCreate",(e=>e),e.code2ProtocolConverter.asWillCreateFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.willCreateFiles?n.willCreateFiles(e,t):t(e)}},t.WillRenameFilesFeature=class extends f{constructor(e){super(e,i.workspace.onWillRenameFiles,o.WillRenameFilesRequest.type,"willRename","willRename",(e=>e.oldUri),e.code2ProtocolConverter.asWillRenameFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.willRenameFiles?n.willRenameFiles(e,t):t(e)}},t.WillDeleteFilesFeature=class extends f{constructor(e){super(e,i.workspace.onWillDeleteFiles,o.WillDeleteFilesRequest.type,"willDelete","willDelete",(e=>e),e.code2ProtocolConverter.asWillDeleteFilesParams)}doSend(e,t){const n=this._client.middleware.workspace;return n?.willDeleteFiles?n.willDeleteFiles(e,t):t(e)}}},5338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileSystemWatcherFeature=void 0;const i=n(9496),r=n(152),o=n(8909);t.FileSystemWatcherFeature=class{constructor(e,t){this._client=e,this._notifyFileEvent=t,this._watchers=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._watchers.size>0}}get registrationType(){return r.DidChangeWatchedFilesNotification.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"workspace"),"didChangeWatchedFiles").dynamicRegistration=!0,(0,o.ensure)((0,o.ensure)(e,"workspace"),"didChangeWatchedFiles").relativePatternSupport=!0}initialize(e,t){}register(e){if(!Array.isArray(e.registerOptions.watchers))return;const t=[];for(const n of e.registerOptions.watchers){const e=this._client.protocol2CodeConverter.asGlobPattern(n.globPattern);if(void 0===e)continue;let o=!0,s=!0,a=!0;void 0!==n.kind&&null!==n.kind&&(o=0!=(n.kind&r.WatchKind.Create),s=0!=(n.kind&r.WatchKind.Change),a=0!=(n.kind&r.WatchKind.Delete));const c=i.workspace.createFileSystemWatcher(e,!o,!s,!a);this.hookListeners(c,o,s,a,t),t.push(c)}this._watchers.set(e.id,t)}registerRaw(e,t){const n=[];for(const e of t)this.hookListeners(e,!0,!0,!0,n);this._watchers.set(e,n)}hookListeners(e,t,n,i,o){t&&e.onDidCreate((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:r.FileChangeType.Created})),null,o),n&&e.onDidChange((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:r.FileChangeType.Changed})),null,o),i&&e.onDidDelete((e=>this._notifyFileEvent({uri:this._client.code2ProtocolConverter.asUri(e),type:r.FileChangeType.Deleted})),null,o)}unregister(e){const t=this._watchers.get(e);if(t){this._watchers.delete(e);for(const e of t)e.dispose()}}clear(){this._watchers.forEach((e=>{for(const t of e)t.dispose()})),this._watchers.clear()}}},6454:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.FoldingRangeRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"foldingRange");t.dynamicRegistration=!0,t.rangeLimit=5e3,t.lineFoldingOnly=!0,t.foldingRangeKind={valueSet:[r.FoldingRangeKind.Comment,r.FoldingRangeKind.Imports,r.FoldingRangeKind.Region]},t.foldingRange={collapsedText:!1},(0,o.ensure)((0,o.ensure)(e,"workspace"),"foldingRange").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.FoldingRangeRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeFoldingRange.fire()}));const[n,i]=this.getRegistration(t,e.foldingRangeProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n=new i.EventEmitter,o={onDidChangeFoldingRanges:n.event,provideFoldingRanges:(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e)};return i.sendRequest(r.FoldingRangeRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asFoldingRanges(e,n)),(e=>i.handleFailedRequest(r.FoldingRangeRequest.type,n,e,null)))},s=i.middleware;return s.provideFoldingRanges?s.provideFoldingRanges(e,t,n,o):o(e,0,n)}};return[i.languages.registerFoldingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),o),{provider:o,onDidChangeFoldingRange:n}]}}t.FoldingRangeFeature=s},6426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentOnTypeFormattingFeature=t.DocumentRangeFormattingFeature=t.DocumentFormattingFeature=void 0;const i=n(9496),r=n(152),o=n(1980),s=n(8909);var a;!function(e){e.fromConfiguration=function(e){const t=i.workspace.getConfiguration("files",e);return{trimTrailingWhitespace:t.get("trimTrailingWhitespace"),trimFinalNewlines:t.get("trimFinalNewlines"),insertFinalNewline:t.get("insertFinalNewline")}}}(a||(a={}));class c extends s.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentFormattingRequest.type)}fillClientCapabilities(e){(0,s.ensure)((0,s.ensure)(e,"textDocument"),"formatting").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentFormattingProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentFormattingEdits:(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),options:i.code2ProtocolConverter.asFormattingOptions(t,a.fromConfiguration(e))};return i.sendRequest(r.DocumentFormattingRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asTextEdits(e,n)),(e=>i.handleFailedRequest(r.DocumentFormattingRequest.type,n,e,null)))},s=i.middleware;return s.provideDocumentFormattingEdits?s.provideDocumentFormattingEdits(e,t,n,o):o(e,t,n)}};return[i.languages.registerDocumentFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentFormattingFeature=c;class u extends s.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentRangeFormattingRequest.type)}fillClientCapabilities(e){const t=(0,s.ensure)((0,s.ensure)(e,"textDocument"),"rangeFormatting");t.dynamicRegistration=!0,t.rangesSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentRangeFormattingProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideDocumentRangeFormattingEdits:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),options:o.code2ProtocolConverter.asFormattingOptions(n,a.fromConfiguration(e))};return o.sendRequest(r.DocumentRangeFormattingRequest.type,s,i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asTextEdits(e,i)),(e=>o.handleFailedRequest(r.DocumentRangeFormattingRequest.type,i,e,null)))},c=o.middleware;return c.provideDocumentRangeFormattingEdits?c.provideDocumentRangeFormattingEdits(e,t,n,i,s):s(e,t,n,i)}};return e.rangesSupport&&(n.provideDocumentRangesFormattingEdits=(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),ranges:o.code2ProtocolConverter.asRanges(t),options:o.code2ProtocolConverter.asFormattingOptions(n,a.fromConfiguration(e))};return o.sendRequest(r.DocumentRangesFormattingRequest.type,s,i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asTextEdits(e,i)),(e=>o.handleFailedRequest(r.DocumentRangesFormattingRequest.type,i,e,null)))},c=o.middleware;return c.provideDocumentRangesFormattingEdits?c.provideDocumentRangesFormattingEdits(e,t,n,i,s):s(e,t,n,i)}),[i.languages.registerDocumentRangeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.DocumentRangeFormattingFeature=u;class l extends s.TextDocumentLanguageFeature{constructor(e){super(e,r.DocumentOnTypeFormattingRequest.type)}fillClientCapabilities(e){(0,s.ensure)((0,s.ensure)(e,"textDocument"),"onTypeFormatting").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.documentOnTypeFormattingProvider);n&&this.register({id:o.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideOnTypeFormattingEdits:(e,t,n,i,o)=>{const s=this._client,c=(e,t,n,i,o)=>{const c={textDocument:s.code2ProtocolConverter.asTextDocumentIdentifier(e),position:s.code2ProtocolConverter.asPosition(t),ch:n,options:s.code2ProtocolConverter.asFormattingOptions(i,a.fromConfiguration(e))};return s.sendRequest(r.DocumentOnTypeFormattingRequest.type,c,o).then((e=>o.isCancellationRequested?null:s.protocol2CodeConverter.asTextEdits(e,o)),(e=>s.handleFailedRequest(r.DocumentOnTypeFormattingRequest.type,o,e,null)))},u=s.middleware;return u.provideOnTypeFormattingEdits?u.provideOnTypeFormattingEdits(e,t,n,i,o,c):c(e,t,n,i,o)}},o=e.moreTriggerCharacter||[];return[i.languages.registerOnTypeFormattingEditProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n,e.firstTriggerCharacter,...o),n]}}t.DocumentOnTypeFormattingFeature=l},6782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HoverFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.HoverRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"hover");t.dynamicRegistration=!0,t.contentFormat=[r.MarkupKind.Markdown,r.MarkupKind.PlainText]}initialize(e,t){const n=this.getRegistrationOptions(t,e.hoverProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideHover:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.HoverRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asHover(e)),(e=>i.handleFailedRequest(r.HoverRequest.type,n,e,null))),s=i.middleware;return s.provideHover?s.provideHover(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerHoverProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.HoverFeature=a},9889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.ImplementationRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"implementation");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.implementationProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideImplementation:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.ImplementationRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>i.handleFailedRequest(r.ImplementationRequest.type,n,e,null))),s=i.middleware;return s.provideImplementation?s.provideImplementation(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerImplementationProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.ImplementationFeature=s},6190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintsFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.InlayHintRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"inlayHint");t.dynamicRegistration=!0,t.resolveSupport={properties:["tooltip","textEdits","label.tooltip","label.location","label.command"]},(0,o.ensure)((0,o.ensure)(e,"workspace"),"inlayHint").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.InlayHintRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeInlayHints.fire()}));const[n,i]=this.getRegistration(t,e.inlayHintProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n=new i.EventEmitter,o={onDidChangeInlayHints:n.event,provideInlayHints:(e,t,n)=>{const i=this._client,o=async(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),range:i.code2ProtocolConverter.asRange(t)};try{const e=await i.sendRequest(r.InlayHintRequest.type,o,n);return n.isCancellationRequested?null:i.protocol2CodeConverter.asInlayHints(e,n)}catch(e){return i.handleFailedRequest(r.InlayHintRequest.type,n,e,null)}},s=i.middleware;return s.provideInlayHints?s.provideInlayHints(e,t,n,o):o(e,t,n)}};return o.resolveInlayHint=!0===e.resolveProvider?(e,t)=>{const n=this._client,i=async(e,t)=>{try{const i=await n.sendRequest(r.InlayHintResolveRequest.type,n.code2ProtocolConverter.asInlayHint(e),t);if(t.isCancellationRequested)return null;const o=n.protocol2CodeConverter.asInlayHint(i,t);return t.isCancellationRequested?null:o}catch(e){return n.handleFailedRequest(r.InlayHintResolveRequest.type,t,e,null)}},o=n.middleware;return o.resolveInlayHint?o.resolveInlayHint(e,t,i):i(e,t)}:void 0,[this.registerProvider(t,o),{provider:o,onDidChangeInlayHints:n}]}registerProvider(e,t){return i.languages.registerInlayHintsProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.InlayHintsFeature=s},8174:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionItemFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.InlineCompletionRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"inlineCompletion").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.inlineCompletionProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideInlineCompletionItems:(e,t,n,i)=>{const o=this._client,s=this._client.middleware,a=(e,t,n,i)=>o.sendRequest(r.InlineCompletionRequest.type,o.code2ProtocolConverter.asInlineCompletionParams(e,t,n),i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asInlineCompletionResult(e,i)),(e=>o.handleFailedRequest(r.InlineCompletionRequest.type,i,e,null)));return s.provideInlineCompletionItems?s.provideInlineCompletionItems(e,t,n,i,a):a(e,t,n,i)}};return[i.languages.registerInlineCompletionItemProvider(this._client.protocol2CodeConverter.asDocumentSelector(t),n),n]}}t.InlineCompletionItemFeature=a},5098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.InlineValueRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"inlineValue").dynamicRegistration=!0,(0,o.ensure)((0,o.ensure)(e,"workspace"),"inlineValue").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.InlineValueRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeInlineValues.fire()}));const[n,i]=this.getRegistration(t,e.inlineValueProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n=new i.EventEmitter,o={onDidChangeInlineValues:n.event,provideInlineValues:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),range:o.code2ProtocolConverter.asRange(t),context:o.code2ProtocolConverter.asInlineValueContext(n)};return o.sendRequest(r.InlineValueRequest.type,s,i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asInlineValues(e,i)),(e=>o.handleFailedRequest(r.InlineValueRequest.type,i,e,null)))},a=o.middleware;return a.provideInlineValues?a.provideInlineValues(e,t,n,i,s):s(e,t,n,i)}};return[this.registerProvider(t,o),{provider:o,onDidChangeInlineValues:n}]}registerProvider(e,t){return i.languages.registerInlineValuesProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.InlineValueFeature=s},3483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.LinkedEditingRangeRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"linkedEditingRange").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.linkedEditingRangeProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideLinkedEditingRanges:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.LinkedEditingRangeRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asLinkedEditingRanges(e,n)),(e=>i.handleFailedRequest(r.LinkedEditingRangeRequest.type,n,e,null))),s=i.middleware;return s.provideLinkedEditingRange?s.provideLinkedEditingRange(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerLinkedEditingRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.LinkedEditingFeature=s},203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookDocumentSyncFeature=void 0;const i=n(9496),r=n(3634),o=n(152),s=n(1980),a=n(9763);function c(e,t){return void 0===e[t]&&(e[t]={}),e[t]}var u,l,d,f,p;!function(e){let t;!function(t){function n(e,t){return e.map((e=>s(e,t)))}function r(e){return c(new Set,e)}function s(e,t){const n=o.NotebookCell.create(function(e){switch(e){case i.NotebookCellKind.Markup:return o.NotebookCellKind.Markup;case i.NotebookCellKind.Code:return o.NotebookCellKind.Code}}(e.kind),t.asUri(e.document.uri));return Object.keys(e.metadata).length>0&&(n.metadata=r(e.metadata)),void 0!==e.executionSummary&&a.number(e.executionSummary.executionOrder)&&a.boolean(e.executionSummary.success)&&(n.executionSummary={executionOrder:e.executionSummary.executionOrder,success:e.executionSummary.success}),n}function c(e,t){if(e.has(t))throw new Error("Can't deep copy cyclic structures.");if(Array.isArray(t)){const n=[];for(const i of t)if(null!==i&&"object"==typeof i||Array.isArray(i))n.push(c(e,i));else{if(i instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");n.push(i)}return n}{const n=Object.keys(t),i=Object.create(null);for(const r of n){const n=t[r];if(null!==n&&"object"==typeof n||Array.isArray(n))i[r]=c(e,n);else{if(n instanceof RegExp)throw new Error("Can't transfer regular expressions to the server");i[r]=n}}return i}}t.asVersionedNotebookDocumentIdentifier=function(e,t){return{version:e.version,uri:t.asUri(e.uri)}},t.asNotebookDocument=function(e,t,i){const s=o.NotebookDocument.create(i.asUri(e.uri),e.notebookType,e.version,n(t,i));return Object.keys(e.metadata).length>0&&(s.metadata=r(e.metadata)),s},t.asNotebookCells=n,t.asMetadata=r,t.asNotebookCell=s,t.asTextContentChange=function(e,t){const n=t.asChangeTextDocumentParams(e,e.document.uri,e.document.version);return{document:n.textDocument,changes:n.contentChanges}},t.asNotebookDocumentChangeEvent=function(t,n){const i=Object.create(null);if(t.metadata&&(i.metadata=e.c2p.asMetadata(t.metadata)),void 0!==t.cells){const r=Object.create(null),o=t.cells;o.structure&&(r.structure={array:{start:o.structure.array.start,deleteCount:o.structure.array.deleteCount,cells:void 0!==o.structure.array.cells?o.structure.array.cells.map((t=>e.c2p.asNotebookCell(t,n))):void 0},didOpen:void 0!==o.structure.didOpen?o.structure.didOpen.map((e=>n.asOpenTextDocumentParams(e.document).textDocument)):void 0,didClose:void 0!==o.structure.didClose?o.structure.didClose.map((e=>n.asCloseTextDocumentParams(e.document).textDocument)):void 0}),void 0!==o.data&&(r.data=o.data.map((t=>e.c2p.asNotebookCell(t,n)))),void 0!==o.textContent&&(r.textContent=o.textContent.map((t=>e.c2p.asTextContentChange(t,n)))),Object.keys(r).length>0&&(i.cells=r)}return i}}(t=e.c2p||(e.c2p={}))}(u||(u={})),function(e){function t(e,t,i=!0){return!(e.kind!==t.kind||e.document.uri.toString()!==t.document.uri.toString()||e.document.languageId!==t.document.languageId||!function(e,t){return e===t||void 0!==e&&void 0!==t&&(e.executionOrder===t.executionOrder&&e.success===t.success&&function(e,t){return e===t||void 0!==e&&void 0!==t&&(e.startTime===t.startTime&&e.endTime===t.endTime)}(e.timing,t.timing))}(e.executionSummary,t.executionSummary))&&(!i||i&&n(e.metadata,t.metadata))}function n(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;const r=Array.isArray(e),o=Array.isArray(t);if(r!==o)return!1;if(r&&o){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1}if(i(e)&&i(t)){const i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;if(i.sort(),r.sort(),!n(i,r))return!1;for(let r=0;r<i.length;r++){const o=i[r];if(!n(e[o],t[o]))return!1}return!0}return!1}function i(e){return null!==e&&"object"==typeof e}e.computeDiff=function(e,n,i){const r=e.length,o=n.length;let s=0;for(;s<o&&s<r&&t(e[s],n[s],i);)s++;if(s<o&&s<r){let a=r-1,c=o-1;for(;a>=0&&c>=0&&t(e[a],n[c],i);)a--,c--;const u=a+1-s,l=s===c+1?void 0:n.slice(s,c+1);return void 0!==l?{start:s,deleteCount:u,cells:l}:{start:s,deleteCount:u}}return s<o?{start:s,deleteCount:0,cells:n.slice(s)}:s<r?{start:s,deleteCount:r-s}:void 0},e.isObjectLiteral=i}(l||(l={})),function(e){e.matchNotebook=function(e,t){if("string"==typeof e)return"*"===e||t.notebookType===e;if(void 0!==e.notebookType&&"*"!==e.notebookType&&t.notebookType!==e.notebookType)return!1;const n=t.uri;if(void 0!==e.scheme&&"*"!==e.scheme&&n.scheme!==e.scheme)return!1;if(void 0!==e.pattern){const t=new r.Minimatch(e.pattern,{noext:!0});if(!t.makeRe())return!1;if(!t.match(n.fsPath))return!1}return!0}}(d||(d={})),function(e){function t(e,t,n,i){return void 0===t&&void 0===n?{notebook:e,language:i}:{notebook:{notebookType:e,scheme:t,pattern:n},language:i}}e.asDocumentSelector=function(e){const n=e.notebookSelector,i=[];for(const e of n){const n=("string"==typeof e.notebook?e.notebook:e.notebook?.notebookType)??"*",r="string"==typeof e.notebook?void 0:e.notebook?.scheme,o="string"==typeof e.notebook?void 0:e.notebook?.pattern;if(void 0!==e.cells)for(const s of e.cells)i.push(t(n,r,o,s.language));else i.push(t(n,r,o,void 0))}return i}}(f||(f={})),function(e){e.create=function(e){return{cells:e,uris:new Set(e.map((e=>e.document.uri.toString())))}}}(p||(p={}));class g{constructor(e,t,n,r,o,s){this.client=e,this.options=t,this.notebookSyncInfo=new Map,this.notebookDidOpen=new Set,this.disposables=[],this.selector=e.protocol2CodeConverter.asDocumentSelector(f.asDocumentSelector(t)),this.onChangeNotificationSent=n,this.onOpenNotificationSent=r,this.onCloseNotificationSent=o,this.onSaveNotificationSent=s,i.workspace.onDidOpenNotebookDocument((e=>{this.notebookDidOpen.add(e.uri.toString()),this.didOpen(e)}),void 0,this.disposables);for(const e of i.workspace.notebookDocuments)this.notebookDidOpen.add(e.uri.toString()),this.didOpen(e);i.workspace.onDidChangeNotebookDocument((e=>this.didChangeNotebookDocument(e)),void 0,this.disposables),!0===this.options.save&&i.workspace.onDidSaveNotebookDocument((e=>this.didSave(e)),void 0,this.disposables),i.workspace.onDidCloseNotebookDocument((e=>{this.didClose(e),this.notebookDidOpen.delete(e.uri.toString())}),void 0,this.disposables)}getState(){for(const e of i.workspace.notebookDocuments)if(void 0!==this.getMatchingCellsConsideringSyncInfo(e))return{kind:"document",id:"$internal",registrations:!0,matches:!0};return{kind:"document",id:"$internal",registrations:!0,matches:!1}}get mode(){return"notebook"}handles(e){if(i.languages.match(this.selector,e)>0)return!0;const t=e.uri.toString();for(const e of this.notebookSyncInfo.values())if(e.uris.has(t))return!0;return!1}didOpenNotebookCellTextDocument(e,t){if(0===i.languages.match(this.selector,t.document))return;if(!this.notebookDidOpen.has(e.uri.toString()))return;const n=this.getSyncInfo(e),r=this.cellMatches(e,t);if(void 0!==n){const i=n.uris.has(t.document.uri.toString());if(r&&i||!r&&!i)return;if(r){const i=this.mergeCells(n,[t]);if(void 0!==i){const t=this.asNotebookDocumentChangeEvent(e,void 0,n,i);void 0!==t&&this.doSendChange(t,i).catch((()=>{}))}}}else r&&this.doSendOpen(e,[t]).catch((()=>{}))}didChangeNotebookCellTextDocument(e,t,n){if(0===i.languages.match(this.selector,n.document))return;const r=this.getSyncInfo(e);void 0!==r&&r.uris.has(t.document.uri.toString())&&this.doSendChange({notebook:e,cells:{textContent:[n]}},r.cells).catch((()=>{}))}didCloseNotebookCellTextDocument(e,t){const n=this.getSyncInfo(e);if(void 0===n)return;const i=t.document.uri,r=n.cells.findIndex((e=>e.document.uri.toString()===i.toString()));if(-1!==r)if(0===r&&1===n.cells.length)this.doSendClose(e,n.cells).catch((()=>{}));else{const t=n.cells.slice(),i=t.splice(r,1);this.doSendChange({notebook:e,cells:{structure:{array:{start:r,deleteCount:1},didClose:i}}},t).catch((()=>{}))}}dispose(){for(const e of this.disposables)e.dispose()}didOpen(e,t,n=this.getSyncInfo(e)){if(void 0!==n)if(void 0===t&&(t=n.cells.slice()),void 0!==t){const i=this.asNotebookDocumentChangeEvent(e,void 0,n,t);void 0!==i&&this.doSendChange(i,t).catch((()=>{}))}else this.doSendClose(e,[]).catch((()=>{}));else{if(void 0===(t=this.getMatchingCells(e)))return;this.doSendOpen(e,t).catch((()=>{}))}}didChangeNotebookDocument(e){const t=e.notebook,n=this.getSyncInfo(t);if(void 0===n){if(0===e.contentChanges.length)return;const i=this.getMatchingCells(t);if(void 0===i)return;this.didOpen(t,i,n)}else{const i=this.getMatchingCellsFromEvent(t,n,e);if(void 0===i)return void this.didClose(t,n);const r=this.asNotebookDocumentChangeEvent(e.notebook,e,n,i);void 0!==r&&this.doSendChange(r,i).catch((()=>{}))}}didSave(e){void 0!==this.getSyncInfo(e)&&this.doSendSave(e).catch((()=>{}))}didClose(e,t=this.getSyncInfo(e)){if(void 0===t)return;const n=e.getCells().filter((e=>t.uris.has(e.document.uri.toString())));this.doSendClose(e,n).catch((()=>{}))}async sendDidOpenNotebookDocument(e){if(void 0!==this.getSyncInfo(e))throw new Error(`Notebook document ${e.uri.toString()} is already open`);const t=this.getMatchingCells(e);if(void 0!==t)return this.doSendOpen(e,t)}async doSendOpen(e,t){const n=async(e,t)=>{const n=t.map((e=>this.client.code2ProtocolConverter.asTextDocumentItem(e.document)));try{await this.client.sendNotification(o.DidOpenNotebookDocumentNotification.type,{notebookDocument:u.c2p.asNotebookDocument(e,t,this.client.code2ProtocolConverter),cellTextDocuments:n}),this.onOpenNotificationSent.fire(e)}catch(e){throw this.client.error("Sending DidOpenNotebookDocumentNotification failed",e),e}},i=this.client.middleware?.notebooks;return this.notebookSyncInfo.set(e.uri.toString(),p.create(t)),void 0!==i?.didOpen?i.didOpen(e,t,n):n(e,t)}async sendDidChangeNotebookDocument(e){const t=this.getMatchingCellsFromSyncInfo(e.notebook);if(void 0===t)throw new Error(`Received changed event for un-synced notebook ${e.notebook.uri.toString()}`);return this.doSendChange(e,t)}async doSendChange(e,t){const n=async e=>{try{await this.client.sendNotification(o.DidChangeNotebookDocumentNotification.type,{notebookDocument:u.c2p.asVersionedNotebookDocumentIdentifier(e.notebook,this.client.code2ProtocolConverter),change:u.c2p.asNotebookDocumentChangeEvent(e,this.client.code2ProtocolConverter)}),this.onChangeNotificationSent.fire(e)}catch(e){throw this.client.error("Sending DidChangeNotebookDocumentNotification failed",e),e}},i=this.client.middleware?.notebooks;return void 0!==e.cells?.structure&&this.notebookSyncInfo.set(e.notebook.uri.toString(),p.create(t)),void 0!==i?.didChange?i?.didChange(e,n):n(e)}async sendDidSaveNotebookDocument(e){return this.doSendSave(e)}async doSendSave(e){const t=async e=>{try{await this.client.sendNotification(o.DidSaveNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(e.uri)}}),this.onSaveNotificationSent.fire(e)}catch(e){throw this.client.error("Sending DidSaveNotebookDocumentNotification failed",e),e}},n=this.client.middleware?.notebooks;return void 0!==n?.didSave?n.didSave(e,t):t(e)}async sendDidCloseNotebookDocument(e){const t=this.getMatchingCellsFromSyncInfo(e);if(void 0===t)throw new Error(`Received close event for un-synced notebook ${e.uri.toString()}`);return this.doSendClose(e,t)}async doSendClose(e,t){const n=async(e,t)=>{try{await this.client.sendNotification(o.DidCloseNotebookDocumentNotification.type,{notebookDocument:{uri:this.client.code2ProtocolConverter.asUri(e.uri)},cellTextDocuments:t.map((e=>this.client.code2ProtocolConverter.asTextDocumentIdentifier(e.document)))}),this.onCloseNotificationSent.fire(e)}catch(e){throw this.client.error("Sending DidCloseNotebookDocumentNotification failed",e),e}},i=this.client.middleware?.notebooks;return this.notebookSyncInfo.delete(e.uri.toString()),void 0!==i?.didClose?i.didClose(e,t,n):n(e,t)}getSynchronizedCells(e){return this.getSyncInfo(e)?.cells}asNotebookDocumentChangeEvent(e,t,n,i){if(void 0!==t&&t.notebook!==e)throw new Error("Notebook must be identical");const r={notebook:e};let o;if(void 0!==t?.metadata&&(r.metadata=u.c2p.asMetadata(t.metadata)),void 0!==t?.cellChanges&&t.cellChanges.length>0){const e=[];o=new Set(i.map((e=>e.document.uri.toString())));for(const n of t.cellChanges)!o.has(n.cell.document.uri.toString())||void 0===n.executionSummary&&void 0===n.metadata||e.push(n.cell);e.length>0&&(r.cells=r.cells??{},r.cells.data=e)}if((void 0!==t?.contentChanges&&t.contentChanges.length>0||void 0===t)&&void 0!==n&&void 0!==i){const e=n.cells,t=i,o=l.computeDiff(e,t,!1);let s,a;if(void 0!==o){s=void 0===o.cells?new Map:new Map(o.cells.map((e=>[e.document.uri.toString(),e]))),a=0===o.deleteCount?new Map:new Map(e.slice(o.start,o.start+o.deleteCount).map((e=>[e.document.uri.toString(),e])));for(const e of Array.from(a.keys()))s.has(e)&&(a.delete(e),s.delete(e));r.cells=r.cells??{};const t=[],n=[];if(s.size>0||a.size>0){for(const e of s.values())t.push(e);for(const e of a.values())n.push(e)}r.cells.structure={array:o,didOpen:t,didClose:n}}}return Object.keys(r).length>1?r:void 0}getMatchingCells(e,t=e.getCells()){if(void 0!==this.options.notebookSelector)for(const n of this.options.notebookSelector)if(void 0===n.notebook||d.matchNotebook(n.notebook,e)){const i=this.filterCells(e,t,n.cells);return 0===i.length?void 0:i}}getMatchingCellsFromEvent(e,t,n){if(void 0===this.options.notebookSelector)return;let i,r;for(const t of this.options.notebookSelector)if(void 0===t.notebook||d.matchNotebook(t.notebook,e)){i=t;break}if(void 0===i)return;if(!(void 0!==n.cellChanges&&0!==n.cellChanges.length||void 0!==n.contentChanges&&0!==n.contentChanges.length))return t.cells;if(void 0!==n.cellChanges&&n.cellChanges.length>0){const o=n.cellChanges.map((e=>e.cell)),s=this.filterCells(e,o,i.cells);if(s.length!==o.length){r=new Set(t.uris);for(const e of o)r.delete(e.document.uri.toString());for(const e of s)r.add(e.document.uri.toString())}}const o=[];if(void 0!==n.contentChanges&&n.contentChanges.length>0){void 0===r&&(r=new Set(t.uris));for(const t of n.contentChanges){for(const e of t.removedCells)r.delete(e.document.uri.toString());const n=this.filterCells(e,new Array(...t.addedCells),i.cells);for(const e of n)r.has(e.document.uri.toString())||o.push(e)}}if(void 0===r&&0===o.length)return t.cells;const s=[];if(void 0!==r)for(const e of t.cells)r.has(e.document.uri.toString())&&s.push(e);return o.length>0&&s.push(...o),s}getMatchingCellsFromSyncInfo(e){const t=this.getSyncInfo(e);return void 0!==t?t.cells:void 0}getMatchingCellsConsideringSyncInfo(e){const t=this.getSyncInfo(e);return void 0!==t?t.cells:this.getMatchingCells(e)}mergeCells(e,t){const n=e.cells.slice();for(const i of t)e.uris.has(i.document.uri.toString())||n.push(i);return n}cellMatches(e,t){const n=this.getMatchingCells(e,[t]);return void 0!==n&&n[0]===t}filterCells(e,t,n){const i=void 0!==n?t.filter((e=>{const t=e.document.languageId;return n.some((e=>"*"===e.language||t===e.language))})):t;return"function"==typeof this.client.clientOptions.notebookDocumentOptions?.filterCells?this.client.clientOptions.notebookDocumentOptions.filterCells(e,i):i}getSyncInfo(e){return this.notebookSyncInfo.get(e.uri.toString())}}class h{constructor(e){this.client=e,this.registrations=new Map,this.registrationType=o.NotebookDocumentSyncRegistrationType.type,this._onChangeNotificationSent=new i.EventEmitter,this._onOpenNotificationSent=new i.EventEmitter,this._onCloseNotificationSent=new i.EventEmitter,this._onSaveNotificationSent=new i.EventEmitter,i.workspace.onDidOpenTextDocument((e=>{if(e.uri.scheme!==h.CellScheme)return;const[t,n]=this.findNotebookDocumentAndCell(e);if(void 0!==t&&void 0!==n)for(const e of this.registrations.values())e instanceof g&&e.didOpenNotebookCellTextDocument(t,n)})),i.workspace.onDidChangeTextDocument((e=>{if(0===e.contentChanges.length)return;const t=e.document;if(t.uri.scheme!==h.CellScheme)return;const[n,i]=this.findNotebookDocumentAndCell(t);if(void 0!==n&&void 0!==i)for(const t of this.registrations.values())t instanceof g&&t.didChangeNotebookCellTextDocument(n,i,e)})),i.workspace.onDidCloseTextDocument((e=>{if(e.uri.scheme!==h.CellScheme)return;const[t,n]=this.findNotebookDocumentAndCell(e);if(void 0!==t&&void 0!==n)for(const e of this.registrations.values())e instanceof g&&e.didCloseNotebookCellTextDocument(t,n)}))}getState(){if(0===this.registrations.size)return{kind:"document",id:this.registrationType.method,registrations:!1,matches:!1};for(const e of this.registrations.values()){const t=e.getState();if("document"===t.kind&&!0===t.registrations&&!0===t.matches)return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!0}}return{kind:"document",id:this.registrationType.method,registrations:!0,matches:!1}}get onOpenNotificationSent(){return this._onOpenNotificationSent.event}get onChangeNotificationSent(){return this._onChangeNotificationSent.event}get onCloseNotificationSent(){return this._onCloseNotificationSent.event}get onSaveNotificationSent(){return this._onSaveNotificationSent.event}fillClientCapabilities(e){const t=c(c(e,"notebookDocument"),"synchronization");t.dynamicRegistration=!0,t.executionSummarySupport=!0}preInitialize(e){const t=e.notebookDocumentSync;void 0!==t&&(this.dedicatedChannel=this.client.protocol2CodeConverter.asDocumentSelector(f.asDocumentSelector(t)))}initialize(e){const t=e.notebookDocumentSync;if(void 0===t)return;const n=t.id??s.generateUuid();this.register({id:n,registerOptions:t})}register(e){const t=new g(this.client,e.registerOptions,this._onChangeNotificationSent,this._onOpenNotificationSent,this._onCloseNotificationSent,this._onSaveNotificationSent);this.registrations.set(e.id,t)}unregister(e){const t=this.registrations.get(e);void 0!==t&&(this.registrations.delete(e),t.dispose())}clear(){for(const e of this.registrations.values())e.dispose();this.registrations.clear(),this._onChangeNotificationSent.dispose(),this._onChangeNotificationSent=new i.EventEmitter,this._onOpenNotificationSent.dispose(),this._onOpenNotificationSent=new i.EventEmitter,this._onCloseNotificationSent.dispose(),this._onCloseNotificationSent=new i.EventEmitter,this._onSaveNotificationSent.dispose(),this._onSaveNotificationSent=new i.EventEmitter}handles(e){if(e.uri.scheme!==h.CellScheme)return!1;if(void 0!==this.dedicatedChannel&&i.languages.match(this.dedicatedChannel,e)>0)return!0;for(const t of this.registrations.values())if(t.handles(e))return!0;return!1}getProvider(e){for(const t of this.registrations.values())if(t.handles(e.document))return t}findNotebookDocumentAndCell(e){const t=e.uri.toString();for(const e of i.workspace.notebookDocuments)for(const n of e.getCells())if(n.document.uri.toString()===t)return[e,n];return[void 0,void 0]}}t.NotebookDocumentSyncFeature=h,h.CellScheme="vscode-notebook-cell"},3603:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressFeature=void 0;const i=n(152),r=n(8071);t.ProgressFeature=class{constructor(e){this._client=e,this.activeParts=new Set}getState(){return{kind:"window",id:i.WorkDoneProgressCreateRequest.method,registrations:this.activeParts.size>0}}fillClientCapabilities(e){var t,n;(t=e,n="window",void 0===t[n]&&(t[n]=Object.create(null)),t[n]).workDoneProgress=!0}initialize(){const e=this._client,t=e=>{this.activeParts.delete(e)};e.onRequest(i.WorkDoneProgressCreateRequest.type,(e=>{this.activeParts.add(new r.ProgressPart(this._client,e.token,t))}))}clear(){for(const e of this.activeParts)e.done();this.activeParts.clear()}}},8071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressPart=void 0;const i=n(9496),r=n(152),o=n(9763);t.ProgressPart=class{constructor(e,t,n){this._client=e,this._token=t,this._reported=0,this._infinite=!1,this._lspProgressDisposable=this._client.onProgress(r.WorkDoneProgress.type,this._token,(e=>{switch(e.kind){case"begin":this.begin(e);break;case"report":this.report(e);break;case"end":this.done(),n&&n(this)}}))}begin(e){this._infinite=void 0===e.percentage,void 0!==this._lspProgressDisposable&&i.window.withProgress({location:i.ProgressLocation.Window,cancellable:e.cancellable,title:e.title},(async(t,n)=>{if(void 0!==this._lspProgressDisposable)return this._progress=t,this._cancellationToken=n,this._tokenDisposable=this._cancellationToken.onCancellationRequested((()=>{this._client.sendNotification(r.WorkDoneProgressCancelNotification.type,{token:this._token})})),this.report(e),new Promise(((e,t)=>{this._resolve=e,this._reject=t}))}))}report(e){if(this._infinite&&o.string(e.message))void 0!==this._progress&&this._progress.report({message:e.message});else if(o.number(e.percentage)){const t=Math.max(0,Math.min(e.percentage,100)),n=Math.max(0,t-this._reported);this._reported+=n,void 0!==this._progress&&this._progress.report({message:e.message,increment:n})}}cancel(){this.cleanup(),void 0!==this._reject&&(this._reject(),this._resolve=void 0,this._reject=void 0)}done(){this.cleanup(),void 0!==this._resolve&&(this._resolve(),this._resolve=void 0,this._reject=void 0)}cleanup(){void 0!==this._lspProgressDisposable&&(this._lspProgressDisposable.dispose(),this._lspProgressDisposable=void 0),void 0!==this._tokenDisposable&&(this._tokenDisposable.dispose(),this._tokenDisposable=void 0),this._progress=void 0,this._cancellationToken=void 0}}},8714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.CallHierarchyItem{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r,o),void 0!==s&&(this.data=s)}}t.default=r},6434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.CodeAction{constructor(e,t){super(e),this.data=t}}t.default=r},583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.CodeLens{constructor(e){super(e)}}t.default=r},1807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.CompletionItem{constructor(e){super(e)}}t.default=r},8785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createConverter=void 0;const i=n(9496),r=n(152),o=n(9763),s=n(4904),a=n(1807),c=n(583),u=n(8705),l=n(6434),d=n(5316),f=n(8714),p=n(1365),g=n(3912),h=n(1065),m=n(152);var v;!function(e){e.is=function(e){const t=e;return t&&o.string(t.language)&&o.string(t.value)}}(v||(v={})),t.createConverter=function(e,t,n){const y=e||(e=>i.Uri.parse(e));function C(e){return y(e)}function S(e){const t=new d.ProtocolDiagnostic(b(e.range),e.message,D(e.severity),e.data);if(void 0!==e.code)if("string"==typeof e.code||"number"==typeof e.code)r.CodeDescription.is(e.codeDescription)?t.code={value:e.code,target:C(e.codeDescription.href)}:t.code=e.code;else if(d.DiagnosticCode.is(e.code)){t.hasDiagnosticCode=!0;const n=e.code;t.code={value:n.value,target:C(n.target)}}return e.source&&(t.source=e.source),e.relatedInformation&&(t.relatedInformation=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++){const r=e[n];t[n]=new i.DiagnosticRelatedInformation(L(r.location),r.message)}return t}(e.relatedInformation)),Array.isArray(e.tags)&&(t.tags=function(e){if(!e)return;const t=[];for(const n of e){const e=_(n);void 0!==e&&t.push(e)}return t.length>0?t:void 0}(e.tags)),t}function _(e){switch(e){case r.DiagnosticTag.Unnecessary:return i.DiagnosticTag.Unnecessary;case r.DiagnosticTag.Deprecated:return i.DiagnosticTag.Deprecated;default:return}}function T(e){return e?new i.Position(e.line,e.character):void 0}function b(e){return e?new i.Range(e.start.line,e.start.character,e.end.line,e.end.character):void 0}async function R(e,t){return s.map(e,(e=>new i.Range(e.start.line,e.start.character,e.end.line,e.end.character)),t)}function D(e){if(null==e)return i.DiagnosticSeverity.Error;switch(e){case r.DiagnosticSeverity.Error:return i.DiagnosticSeverity.Error;case r.DiagnosticSeverity.Warning:return i.DiagnosticSeverity.Warning;case r.DiagnosticSeverity.Information:return i.DiagnosticSeverity.Information;case r.DiagnosticSeverity.Hint:return i.DiagnosticSeverity.Hint}return i.DiagnosticSeverity.Error}function w(e){if(o.string(e))return e;switch(e.kind){case r.MarkupKind.Markdown:return E(e.value);case r.MarkupKind.PlainText:return e.value;default:return`Unsupported Markup content received. Kind is: ${e.kind}`}}function E(e){let o;if(void 0===e||"string"==typeof e)o=new i.MarkdownString(e);else switch(e.kind){case r.MarkupKind.Markdown:o=new i.MarkdownString(e.value);break;case r.MarkupKind.PlainText:o=new i.MarkdownString,o.appendText(e.value);break;default:o=new i.MarkdownString,o.appendText(`Unsupported Markup content received. Kind is: ${e.kind}`)}return o.isTrusted=t,o.supportHtml=n,o}function P(e){if(e===r.CompletionItemTag.Deprecated)return i.CompletionItemTag.Deprecated}function k(e,t,n,s,c,u){const l=function(e){if(null==e)return[];const t=[];for(const n of e){const e=P(n);void 0!==e&&t.push(e)}return t}(e.tags),d=function(e){return r.CompletionItemLabelDetails.is(e.labelDetails)?{label:e.label,detail:e.labelDetails.detail,description:e.labelDetails.description}:e.label}(e),f=new a.default(d);e.detail&&(f.detail=e.detail),e.documentation&&(f.documentation=w(e.documentation),f.documentationFormat=o.string(e.documentation)?"$string":e.documentation.kind),e.filterText&&(f.filterText=e.filterText);const p=function(e,t,n){const o=e.insertTextFormat??n;if(void 0!==e.textEdit||void 0!==t){const[n,a]=void 0!==e.textEdit?(s=e.textEdit,r.InsertReplaceEdit.is(s)?[{inserting:b(s.insert),replacing:b(s.replace)},s.newText]:[b(s.range),s.newText]):[t,e.textEditText??e.label];return o===r.InsertTextFormat.Snippet?{text:new i.SnippetString(a),range:n,fromEdit:!0}:{text:a,range:n,fromEdit:!0}}return e.insertText?o===r.InsertTextFormat.Snippet?{text:new i.SnippetString(e.insertText),fromEdit:!1}:{text:e.insertText,fromEdit:!1}:void 0;var s}(e,n,c);if(p&&(f.insertText=p.text,f.range=p.range,f.fromEdit=p.fromEdit),o.number(e.kind)){const[t,n]=(g=e.kind,r.CompletionItemKind.Text<=g&&g<=r.CompletionItemKind.TypeParameter?[g-1,void 0]:[i.CompletionItemKind.Text,g]);f.kind=t,n&&(f.originalItemKind=n)}var g;e.sortText&&(f.sortText=e.sortText),e.additionalTextEdits&&(f.additionalTextEdits=N(e.additionalTextEdits));const h=void 0!==e.commitCharacters?o.stringArray(e.commitCharacters)?e.commitCharacters:void 0:t;h&&(f.commitCharacters=h.slice()),e.command&&(f.command=G(e.command)),!0!==e.deprecated&&!1!==e.deprecated||(f.deprecated=e.deprecated,!0===e.deprecated&&l.push(i.CompletionItemTag.Deprecated)),!0!==e.preselect&&!1!==e.preselect||(f.preselect=e.preselect);const m=e.data??u;void 0!==m&&(f.data=m),l.length>0&&(f.tags=l);const v=e.insertTextMode??s;return void 0!==v&&(f.insertTextMode=v,v===r.InsertTextMode.asIs&&(f.keepWhitespace=!0)),f}function x(e){if(e)return new i.TextEdit(b(e.range),e.newText)}async function I(e,t){if(e)return s.map(e,x,t)}function N(e){if(!e)return;const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=x(e[n]);return t}async function O(e,t){return s.mapAsync(e,A,t)}async function A(e,t){const n=new i.SignatureInformation(e.label);return void 0!==e.documentation&&(n.documentation=w(e.documentation)),void 0!==e.parameters&&(n.parameters=await F(e.parameters,t)),void 0!==e.activeParameter&&(n.activeParameter=e.activeParameter??-1),n}function F(e,t){return s.map(e,M,t)}function M(e){const t=new i.ParameterInformation(e.label);return e.documentation&&(t.documentation=w(e.documentation)),t}function L(e){return e?new i.Location(y(e.uri),b(e.range)):void 0}function q(e){if(!e)return;const t={targetUri:y(e.targetUri),targetRange:b(e.targetRange),originSelectionRange:b(e.originSelectionRange),targetSelectionRange:b(e.targetSelectionRange)};if(!t.targetSelectionRange)throw new Error("targetSelectionRange must not be undefined or null");return t}async function j(e,t){if(e){if(o.array(e)){if(0===e.length)return[];if(r.LocationLink.is(e[0])){const n=e;return s.map(n,q,t)}{const n=e;return s.map(n,L,t)}}return r.LocationLink.is(e)?[q(e)]:L(e)}}function U(e){const t=new i.DocumentHighlight(b(e.range));return o.number(e.kind)&&(t.kind=H(e.kind)),t}function H(e){switch(e){case r.DocumentHighlightKind.Text:return i.DocumentHighlightKind.Text;case r.DocumentHighlightKind.Read:return i.DocumentHighlightKind.Read;case r.DocumentHighlightKind.Write:return i.DocumentHighlightKind.Write}return i.DocumentHighlightKind.Text}function K(e){return e<=r.SymbolKind.TypeParameter?e-1:i.SymbolKind.Property}function V(e){if(e===r.SymbolTag.Deprecated)return i.SymbolTag.Deprecated}function W(e){if(null==e)return;const t=[];for(const n of e){const e=V(n);void 0!==e&&t.push(e)}return 0===t.length?void 0:t}function z(e){const t=e.data,n=e.location,r=void 0===n.range||void 0!==t?new g.default(e.name,K(e.kind),e.containerName??"",void 0===n.range?y(n.uri):new i.Location(y(e.location.uri),b(n.range)),t):new i.SymbolInformation(e.name,K(e.kind),e.containerName??"",new i.Location(y(e.location.uri),b(n.range)));return $(r,e),r}function B(e){const t=new i.DocumentSymbol(e.name,e.detail||"",K(e.kind),b(e.range),b(e.selectionRange));if($(t,e),void 0!==e.children&&e.children.length>0){const n=[];for(const t of e.children)n.push(B(t));t.children=n}return t}function $(e,t){e.tags=W(t.tags),t.deprecated&&(e.tags?e.tags.includes(i.SymbolTag.Deprecated)||(e.tags=e.tags.concat(i.SymbolTag.Deprecated)):e.tags=[i.SymbolTag.Deprecated])}function G(e){const t={title:e.title,command:e.command};return e.tooltip&&(t.tooltip=e.tooltip),e.arguments&&(t.arguments=e.arguments),t}const J=new Map;function Y(e){if(null==e)return;let t=J.get(e);if(t)return t;const n=e.split(".");t=i.CodeActionKind.Empty;for(const e of n)t=t.append(e);return t}async function X(e,t){if(null==e)return;const n=new l.default(e.title,e.data);return void 0!==e.kind&&(n.kind=Y(e.kind)),void 0!==e.diagnostics&&(n.diagnostics=function(e){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=S(e[n]);return t}(e.diagnostics)),void 0!==e.edit&&(n.edit=await Q(e.edit,t)),void 0!==e.command&&(n.command=G(e.command)),void 0!==e.isPreferred&&(n.isPreferred=e.isPreferred),void 0!==e.disabled&&(n.disabled={reason:e.disabled.reason}),n}function Z(e){if(!e)return;const t=new c.default(b(e.range));return e.command&&(t.command=G(e.command)),void 0!==e.data&&null!==e.data&&(t.data=e.data),t}async function Q(e,t){if(!e)return;const n=new Map;if(void 0!==e.changeAnnotations){const i=e.changeAnnotations;await s.forEach(Object.keys(i),(e=>{const t=function(e){if(void 0!==e)return{label:e.label,needsConfirmation:!!e.needsConfirmation,description:e.description}}(i[e]);n.set(e,t)}),t)}const o=e=>void 0===e?void 0:n.get(e),a=new i.WorkspaceEdit;if(e.documentChanges){const n=e.documentChanges;await s.forEach(n,(e=>{if(r.CreateFile.is(e))a.createFile(y(e.uri),e.options,o(e.annotationId));else if(r.RenameFile.is(e))a.renameFile(y(e.oldUri),y(e.newUri),e.options,o(e.annotationId));else if(r.DeleteFile.is(e))a.deleteFile(y(e.uri),e.options,o(e.annotationId));else{if(!r.TextDocumentEdit.is(e))throw new Error(`Unknown workspace edit change received:\n${JSON.stringify(e,void 0,4)}`);{const t=y(e.textDocument.uri),n=[];for(const t of e.edits)r.AnnotatedTextEdit.is(t)?n.push([new i.TextEdit(b(t.range),t.newText),o(t.annotationId)]):r.SnippetTextEdit.is(t)?n.push([new i.SnippetTextEdit(b(t.range),new i.SnippetString(t.snippet.value)),o(t.annotationId)]):n.push([new i.TextEdit(b(t.range),t.newText),void 0]);a.set(t,n)}}}),t)}else if(e.changes){const n=e.changes;await s.forEach(Object.keys(n),(e=>{a.set(y(e),N(n[e]))}),t)}return a}function ee(e){const t=b(e.range),n=e.target?C(e.target):void 0,i=new u.default(t,n);return void 0!==e.tooltip&&(i.tooltip=e.tooltip),void 0!==e.data&&null!==e.data&&(i.data=e.data),i}function te(e){return new i.Color(e.red,e.green,e.blue,e.alpha)}function ne(e){return new i.ColorInformation(b(e.range),te(e.color))}function ie(e){const t=new i.ColorPresentation(e.label);return t.additionalTextEdits=N(e.additionalTextEdits),e.textEdit&&(t.textEdit=x(e.textEdit)),t}function re(e){if(e)switch(e){case r.FoldingRangeKind.Comment:return i.FoldingRangeKind.Comment;case r.FoldingRangeKind.Imports:return i.FoldingRangeKind.Imports;case r.FoldingRangeKind.Region:return i.FoldingRangeKind.Region}}function oe(e){return new i.FoldingRange(e.startLine,e.endLine,re(e.kind))}function se(e){return new i.SelectionRange(b(e.range),e.parent?se(e.parent):void 0)}function ae(e){return r.InlineValueText.is(e)?new i.InlineValueText(b(e.range),e.text):r.InlineValueVariableLookup.is(e)?new i.InlineValueVariableLookup(b(e.range),e.variableName,e.caseSensitiveLookup):new i.InlineValueEvaluatableExpression(b(e.range),e.expression)}async function ce(e,t){const n="string"==typeof e.label?e.label:await s.map(e.label,ue,t),i=new h.default(T(e.position),n);return void 0!==e.kind&&(i.kind=e.kind),void 0!==e.textEdits&&(i.textEdits=await I(e.textEdits,t)),void 0!==e.tooltip&&(i.tooltip=le(e.tooltip)),void 0!==e.paddingLeft&&(i.paddingLeft=e.paddingLeft),void 0!==e.paddingRight&&(i.paddingRight=e.paddingRight),void 0!==e.data&&(i.data=e.data),i}function ue(e){const t=new i.InlayHintLabelPart(e.value);return void 0!==e.location&&(t.location=L(e.location)),void 0!==e.tooltip&&(t.tooltip=le(e.tooltip)),void 0!==e.command&&(t.command=G(e.command)),t}function le(e){return"string"==typeof e?e:E(e)}function de(e){if(null===e)return;const t=new f.default(K(e.kind),e.name,e.detail||"",C(e.uri),b(e.range),b(e.selectionRange),e.data);return void 0!==e.tags&&(t.tags=W(e.tags)),t}async function fe(e,t){return new i.CallHierarchyIncomingCall(de(e.from),await R(e.fromRanges,t))}async function pe(e,t){return new i.CallHierarchyOutgoingCall(de(e.to),await R(e.fromRanges,t))}function ge(e){return new i.SemanticTokensEdit(e.start,e.deleteCount,void 0!==e.data?new Uint32Array(e.data):void 0)}function he(e){if(null===e)return;const t=new p.default(K(e.kind),e.name,e.detail||"",C(e.uri),b(e.range),b(e.selectionRange),e.data);return void 0!==e.tags&&(t.tags=W(e.tags)),t}function me(e){let t,n;t="string"==typeof e.insertText?e.insertText:new i.SnippetString(e.insertText.value),e.command&&(n=G(e.command));const r=new i.InlineCompletionItem(t,b(e.range),n);return e.filterText&&(r.filterText=e.filterText),r}return J.set(r.CodeActionKind.Empty,i.CodeActionKind.Empty),J.set(r.CodeActionKind.QuickFix,i.CodeActionKind.QuickFix),J.set(r.CodeActionKind.Refactor,i.CodeActionKind.Refactor),J.set(r.CodeActionKind.RefactorExtract,i.CodeActionKind.RefactorExtract),J.set(r.CodeActionKind.RefactorInline,i.CodeActionKind.RefactorInline),J.set(r.CodeActionKind.RefactorRewrite,i.CodeActionKind.RefactorRewrite),J.set(r.CodeActionKind.Source,i.CodeActionKind.Source),J.set(r.CodeActionKind.SourceOrganizeImports,i.CodeActionKind.SourceOrganizeImports),{asUri:C,asDocumentSelector:function(e){const t=[];for(const n of e)if("string"==typeof n)t.push(n);else if(m.NotebookCellTextDocumentFilter.is(n))if("string"==typeof n.notebook)t.push({notebookType:n.notebook,language:n.language});else{const e=n.notebook.notebookType??"*";t.push({notebookType:e,scheme:n.notebook.scheme,pattern:n.notebook.pattern,language:n.language})}else m.TextDocumentFilter.is(n)&&t.push({language:n.language,scheme:n.scheme,pattern:n.pattern});return t},asDiagnostics:async function(e,t){return s.map(e,S,t)},asDiagnostic:S,asRange:b,asRanges:R,asPosition:T,asDiagnosticSeverity:D,asDiagnosticTag:_,asHover:function(e){if(e)return new i.Hover(function(e){if(o.string(e))return E(e);if(v.is(e))return E().appendCodeblock(e.value,e.language);if(Array.isArray(e)){const t=[];for(const n of e){const e=E();v.is(n)?e.appendCodeblock(n.value,n.language):e.appendMarkdown(n),t.push(e)}return t}return E(e)}(e.contents),b(e.range))},asCompletionResult:async function(e,t,n){if(!e)return;if(Array.isArray(e))return s.map(e,(e=>k(e,t)),n);const o=e,{defaultRange:a,commitCharacters:c}=function(e,t){const n=e.itemDefaults?.editRange,i=e.itemDefaults?.commitCharacters??t;return r.Range.is(n)?{defaultRange:b(n),commitCharacters:i}:void 0!==n?{defaultRange:{inserting:b(n.insert),replacing:b(n.replace)},commitCharacters:i}:{defaultRange:void 0,commitCharacters:i}}(o,t),u=await s.map(o.items,(e=>k(e,c,a,o.itemDefaults?.insertTextMode,o.itemDefaults?.insertTextFormat,o.itemDefaults?.data)),n);return new i.CompletionList(u,o.isIncomplete)},asCompletionItem:k,asTextEdit:x,asTextEdits:I,asSignatureHelp:async function(e,t){if(!e)return;const n=new i.SignatureHelp;return o.number(e.activeSignature)?n.activeSignature=e.activeSignature:n.activeSignature=0,o.number(e.activeParameter)?n.activeParameter=e.activeParameter:null===e.activeParameter?n.activeParameter=-1:n.activeParameter=0,e.signatures&&(n.signatures=await O(e.signatures,t)),n},asSignatureInformations:O,asSignatureInformation:A,asParameterInformations:F,asParameterInformation:M,asDeclarationResult:async function(e,t){if(e)return j(e,t)},asDefinitionResult:async function(e,t){if(e)return j(e,t)},asLocation:L,asReferences:async function(e,t){if(e)return s.map(e,L,t)},asDocumentHighlights:async function(e,t){if(e)return s.map(e,U,t)},asDocumentHighlight:U,asDocumentHighlightKind:H,asSymbolKind:K,asSymbolTag:V,asSymbolTags:W,asSymbolInformations:async function(e,t){if(e)return s.map(e,z,t)},asSymbolInformation:z,asDocumentSymbols:async function(e,t){if(null!=e)return s.map(e,B,t)},asDocumentSymbol:B,asCommand:G,asCommands:async function(e,t){if(e)return s.map(e,G,t)},asCodeAction:X,asCodeActionKind:Y,asCodeActionKinds:function(e){if(null!=e)return e.map((e=>Y(e)))},asCodeActionDocumentations:function(e){if(null!=e)return e.map((e=>({kind:Y(e.kind),command:G(e.command)})))},asCodeActionResult:function(e,t){return s.mapAsync(e,(async e=>r.Command.is(e)?G(e):X(e,t)),t)},asCodeLens:Z,asCodeLenses:async function(e,t){if(e)return s.map(e,Z,t)},asWorkspaceEdit:Q,asDocumentLink:ee,asDocumentLinks:async function(e,t){if(e)return s.map(e,ee,t)},asFoldingRangeKind:re,asFoldingRange:oe,asFoldingRanges:async function(e,t){if(e)return s.map(e,oe,t)},asColor:te,asColorInformation:ne,asColorInformations:async function(e,t){if(e)return s.map(e,ne,t)},asColorPresentation:ie,asColorPresentations:async function(e,t){if(e)return s.map(e,ie,t)},asSelectionRange:se,asSelectionRanges:async function(e,t){return Array.isArray(e)?s.map(e,se,t):[]},asInlineValue:ae,asInlineValues:async function(e,t){return Array.isArray(e)?s.map(e,ae,t):[]},asInlayHint:ce,asInlayHints:async function(e,t){if(Array.isArray(e))return s.mapAsync(e,ce,t)},asSemanticTokensLegend:function(e){return e},asSemanticTokens:async function(e,t){if(null!=e)return new i.SemanticTokens(new Uint32Array(e.data),e.resultId)},asSemanticTokensEdit:ge,asSemanticTokensEdits:async function(e,t){if(null!=e)return new i.SemanticTokensEdits(e.edits.map(ge),e.resultId)},asCallHierarchyItem:de,asCallHierarchyItems:async function(e,t){if(null!==e)return s.map(e,de,t)},asCallHierarchyIncomingCall:fe,asCallHierarchyIncomingCalls:async function(e,t){if(null!==e)return s.mapAsync(e,fe,t)},asCallHierarchyOutgoingCall:pe,asCallHierarchyOutgoingCalls:async function(e,t){if(null!==e)return s.mapAsync(e,pe,t)},asLinkedEditingRanges:async function(e,t){if(null!=e)return new i.LinkedEditingRanges(await R(e.ranges,t),function(e){if(null!=e)return new RegExp(e)}(e.wordPattern))},asTypeHierarchyItem:he,asTypeHierarchyItems:async function(e,t){if(null!==e)return s.map(e,he,t)},asGlobPattern:function(e){if(o.string(e))return e;if(r.RelativePattern.is(e)){if(r.URI.is(e.baseUri))return new i.RelativePattern(C(e.baseUri),e.pattern);if(r.WorkspaceFolder.is(e.baseUri)){const t=i.workspace.getWorkspaceFolder(C(e.baseUri.uri));return void 0!==t?new i.RelativePattern(t,e.pattern):void 0}}},asInlineCompletionResult:async function(e,t){if(!e)return;if(Array.isArray(e))return s.map(e,(e=>me(e)),t);const n=e,r=await s.map(n.items,(e=>me(e)),t);return new i.InlineCompletionList(r)},asInlineCompletionItem:me}}},5316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolDiagnostic=t.DiagnosticCode=void 0;const i=n(9496),r=n(9763);var o;!function(e){e.is=function(e){const t=e;return null!=t&&(r.number(t.value)||r.string(t.value))&&r.string(t.target)}}(o||(t.DiagnosticCode=o={}));class s extends i.Diagnostic{constructor(e,t,n,i){super(e,t,n),this.data=i,this.hasDiagnosticCode=!1}}t.ProtocolDiagnostic=s},8705:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.DocumentLink{constructor(e,t){super(e,t)}}t.default=r},1065:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.InlayHint{constructor(e,t,n){super(e,t,n)}}t.default=r},1365:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.TypeHierarchyItem{constructor(e,t,n,i,r,o,s){super(e,t,n,i,r,o),void 0!==s&&(this.data=s)}}t.default=r},3912:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(9496);class r extends i.SymbolInformation{constructor(e,t,n,r,o){const s=!(r instanceof i.Uri);super(e,t,n,s?r:new i.Location(r,new i.Range(0,0,0,0))),this.hasRange=s,void 0!==o&&(this.data=o)}}t.default=r},8480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReferencesFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.ReferencesRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"references").dynamicRegistration=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.referencesProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t=e.documentSelector,n={provideReferences:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>o.sendRequest(r.ReferencesRequest.type,o.code2ProtocolConverter.asReferenceParams(e,t,n),i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asReferences(e,i)),(e=>o.handleFailedRequest(r.ReferencesRequest.type,i,e,null))),a=o.middleware;return a.provideReferences?a.provideReferences(e,t,n,i,s):s(e,t,n,i)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerReferenceProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.ReferencesFeature=a},6458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RenameFeature=void 0;const i=n(9496),r=n(152),o=n(1980),s=n(9763),a=n(8909);class c extends a.TextDocumentLanguageFeature{constructor(e){super(e,r.RenameRequest.type)}fillClientCapabilities(e){const t=(0,a.ensure)((0,a.ensure)(e,"textDocument"),"rename");t.dynamicRegistration=!0,t.prepareSupport=!0,t.prepareSupportDefaultBehavior=r.PrepareSupportDefaultBehavior.Identifier,t.honorsChangeAnnotations=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.renameProvider);n&&(s.boolean(e.renameProvider)&&(n.prepareProvider=!1),this.register({id:o.generateUuid(),registerOptions:n}))}registerLanguageProvider(e){const t=e.documentSelector,n={provideRenameEdits:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>{const s={textDocument:o.code2ProtocolConverter.asTextDocumentIdentifier(e),position:o.code2ProtocolConverter.asPosition(t),newName:n};return o.sendRequest(r.RenameRequest.type,s,i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asWorkspaceEdit(e,i)),(e=>o.handleFailedRequest(r.RenameRequest.type,i,e,null,!1)))},a=o.middleware;return a.provideRenameEdits?a.provideRenameEdits(e,t,n,i,s):s(e,t,n,i)},prepareRename:e.prepareProvider?(e,t,n)=>{const i=this._client,o=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),position:i.code2ProtocolConverter.asPosition(t)};return i.sendRequest(r.PrepareRenameRequest.type,o,n).then((e=>n.isCancellationRequested?null:r.Range.is(e)?i.protocol2CodeConverter.asRange(e):this.isDefaultBehavior(e)?!0===e.defaultBehavior?null:Promise.reject(new Error("The element can't be renamed.")):e&&r.Range.is(e.range)?{range:i.protocol2CodeConverter.asRange(e.range),placeholder:e.placeholder}:Promise.reject(new Error("The element can't be renamed."))),(e=>{throw"string"==typeof e.message?new Error(e.message):new Error("The element can't be renamed.")}))},s=i.middleware;return s.prepareRename?s.prepareRename(e,t,n,o):o(e,t,n)}:void 0};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerRenameProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}isDefaultBehavior(e){const t=e;return t&&s.boolean(t.defaultBehavior)}}t.RenameFeature=c},750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.SelectionRangeRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"selectionRange").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.selectionRangeProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideSelectionRanges:(e,t,n)=>{const i=this._client,o=async(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),positions:i.code2ProtocolConverter.asPositionsSync(t,n)};return i.sendRequest(r.SelectionRangeRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asSelectionRanges(e,n)),(e=>i.handleFailedRequest(r.SelectionRangeRequest.type,n,e,null)))},s=i.middleware;return s.provideSelectionRanges?s.provideSelectionRanges(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerSelectionRangeProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.SelectionRangeFeature=s},9957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(9763);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.SemanticTokensRegistrationType.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"semanticTokens");t.dynamicRegistration=!0,t.tokenTypes=[r.SemanticTokenTypes.namespace,r.SemanticTokenTypes.type,r.SemanticTokenTypes.class,r.SemanticTokenTypes.enum,r.SemanticTokenTypes.interface,r.SemanticTokenTypes.struct,r.SemanticTokenTypes.typeParameter,r.SemanticTokenTypes.parameter,r.SemanticTokenTypes.variable,r.SemanticTokenTypes.property,r.SemanticTokenTypes.enumMember,r.SemanticTokenTypes.event,r.SemanticTokenTypes.function,r.SemanticTokenTypes.method,r.SemanticTokenTypes.macro,r.SemanticTokenTypes.keyword,r.SemanticTokenTypes.modifier,r.SemanticTokenTypes.comment,r.SemanticTokenTypes.string,r.SemanticTokenTypes.number,r.SemanticTokenTypes.regexp,r.SemanticTokenTypes.operator,r.SemanticTokenTypes.decorator,r.SemanticTokenTypes.label],t.tokenModifiers=[r.SemanticTokenModifiers.declaration,r.SemanticTokenModifiers.definition,r.SemanticTokenModifiers.readonly,r.SemanticTokenModifiers.static,r.SemanticTokenModifiers.deprecated,r.SemanticTokenModifiers.abstract,r.SemanticTokenModifiers.async,r.SemanticTokenModifiers.modification,r.SemanticTokenModifiers.documentation,r.SemanticTokenModifiers.defaultLibrary],t.formats=[r.TokenFormat.Relative],t.requests={range:!0,full:{delta:!0}},t.multilineTokenSupport=!1,t.overlappingTokenSupport=!1,t.serverCancelSupport=!0,t.augmentsSyntaxTokens=!0,(0,o.ensure)((0,o.ensure)(e,"workspace"),"semanticTokens").refreshSupport=!0}initialize(e,t){this._client.onRequest(r.SemanticTokensRefreshRequest.type,(async()=>{for(const e of this.getAllProviders())e.onDidChangeSemanticTokensEmitter.fire()}));const[n,i]=this.getRegistration(t,e.semanticTokensProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n=s.boolean(e.full)?e.full:void 0!==e.full,o=void 0!==e.full&&"boolean"!=typeof e.full&&!0===e.full.delta,a=new i.EventEmitter,c=n?{onDidChangeSemanticTokens:a.event,provideDocumentSemanticTokens:(e,t)=>{const n=this._client,i=n.middleware,o=(e,t)=>{const i={textDocument:n.code2ProtocolConverter.asTextDocumentIdentifier(e)};return n.sendRequest(r.SemanticTokensRequest.type,i,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSemanticTokens(e,t)),(e=>n.handleFailedRequest(r.SemanticTokensRequest.type,t,e,null)))};return i.provideDocumentSemanticTokens?i.provideDocumentSemanticTokens(e,t,o):o(e,t)},provideDocumentSemanticTokensEdits:o?(e,t,n)=>{const i=this._client,o=i.middleware,s=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),previousResultId:t};return i.sendRequest(r.SemanticTokensDeltaRequest.type,o,n).then((async e=>n.isCancellationRequested?null:r.SemanticTokens.is(e)?await i.protocol2CodeConverter.asSemanticTokens(e,n):await i.protocol2CodeConverter.asSemanticTokensEdits(e,n)),(e=>i.handleFailedRequest(r.SemanticTokensDeltaRequest.type,n,e,null)))};return o.provideDocumentSemanticTokensEdits?o.provideDocumentSemanticTokensEdits(e,t,n,s):s(e,t,n)}:void 0}:void 0,u=!0===e.range?{provideDocumentRangeSemanticTokens:(e,t,n)=>{const i=this._client,o=i.middleware,s=(e,t,n)=>{const o={textDocument:i.code2ProtocolConverter.asTextDocumentIdentifier(e),range:i.code2ProtocolConverter.asRange(t)};return i.sendRequest(r.SemanticTokensRangeRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asSemanticTokens(e,n)),(e=>i.handleFailedRequest(r.SemanticTokensRangeRequest.type,n,e,null)))};return o.provideDocumentRangeSemanticTokens?o.provideDocumentRangeSemanticTokens(e,t,n,s):s(e,t,n)}}:void 0,l=[],d=this._client,f=d.protocol2CodeConverter.asSemanticTokensLegend(e.legend),p=d.protocol2CodeConverter.asDocumentSelector(t);return void 0!==c&&l.push(i.languages.registerDocumentSemanticTokensProvider(p,c,f)),void 0!==u&&l.push(i.languages.registerDocumentRangeSemanticTokensProvider(p,u,f)),[new i.Disposable((()=>l.forEach((e=>e.dispose())))),{range:u,full:c,onDidChangeSemanticTokensEmitter:a}]}}t.SemanticTokensFeature=a},2908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureHelpFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.SignatureHelpRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"signatureHelp");t.dynamicRegistration=!0,t.signatureInformation={documentationFormat:[r.MarkupKind.Markdown,r.MarkupKind.PlainText]},t.signatureInformation.parameterInformation={labelOffsetSupport:!0},t.signatureInformation.activeParameterSupport=!0,t.signatureInformation.noActiveParameterSupport=!0,t.contextSupport=!0}initialize(e,t){const n=this.getRegistrationOptions(t,e.signatureHelpProvider);n&&this.register({id:s.generateUuid(),registerOptions:n})}registerLanguageProvider(e){const t={provideSignatureHelp:(e,t,n,i)=>{const o=this._client,s=(e,t,n,i)=>o.sendRequest(r.SignatureHelpRequest.type,o.code2ProtocolConverter.asSignatureHelpParams(e,t,n),i).then((e=>i.isCancellationRequested?null:o.protocol2CodeConverter.asSignatureHelp(e,i)),(e=>o.handleFailedRequest(r.SignatureHelpRequest.type,i,e,null))),a=o.middleware;return a.provideSignatureHelp?a.provideSignatureHelp(e,t,i,n,s):s(e,t,i,n)}};return[this.registerProvider(e,t),t]}registerProvider(e,t){const n=this._client.protocol2CodeConverter.asDocumentSelector(e.documentSelector);if(void 0===e.retriggerCharacters){const r=e.triggerCharacters||[];return i.languages.registerSignatureHelpProvider(n,t,...r)}{const r={triggerCharacters:e.triggerCharacters||[],retriggerCharacters:e.retriggerCharacters||[]};return i.languages.registerSignatureHelpProvider(n,t,r)}}}t.SignatureHelpFeature=a},743:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidSaveTextDocumentFeature=t.WillSaveWaitUntilFeature=t.WillSaveFeature=t.DidChangeTextDocumentFeature=t.DidCloseTextDocumentFeature=t.DidOpenTextDocumentFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(1980);class a extends o.TextDocumentEventFeature{constructor(e,t){super(e,i.workspace.onDidOpenTextDocument,r.DidOpenTextDocumentNotification.type,(()=>e.middleware.didOpen),(t=>e.code2ProtocolConverter.asOpenTextDocumentParams(t)),(e=>e),o.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=t}get openDocuments(){return this._syncedDocuments.values()}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&n.openClose&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}get registrationType(){return r.DidOpenTextDocumentNotification.type}register(e){if(super.register(e),!e.registerOptions.documentSelector)return;const t=this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector);i.workspace.textDocuments.forEach((e=>{const n=e.uri.toString();if(!this._syncedDocuments.has(n)&&i.languages.match(t,e)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e)){const t=this._client.middleware,i=e=>this._client.sendNotification(this._type,this._createParams(e));(t.didOpen?t.didOpen(e,i):i(e)).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed`,e)})),this._syncedDocuments.set(n,e)}}))}getTextDocument(e){return e}notificationSent(e,t,n){this._syncedDocuments.set(e.uri.toString(),e),super.notificationSent(e,t,n)}}t.DidOpenTextDocumentFeature=a;class c extends o.TextDocumentEventFeature{constructor(e,t,n){super(e,i.workspace.onDidCloseTextDocument,r.DidCloseTextDocumentNotification.type,(()=>e.middleware.didClose),(t=>e.code2ProtocolConverter.asCloseTextDocumentParams(t)),(e=>e),o.TextDocumentEventFeature.textDocumentFilter),this._syncedDocuments=t,this._pendingTextDocumentChanges=n}get registrationType(){return r.DidCloseTextDocumentNotification.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&n.openClose&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}async callback(e){await super.callback(e),this._pendingTextDocumentChanges.delete(e.uri.toString())}getTextDocument(e){return e}notificationSent(e,t,n){this._syncedDocuments.delete(e.uri.toString()),super.notificationSent(e,t,n)}unregister(e){const t=this._selectors.get(e);if(void 0===t)return;super.unregister(e);const n=this._selectors.values();this._syncedDocuments.forEach((e=>{if(i.languages.match(t,e)>0&&!this._selectorFilter(n,e)&&!this._client.hasDedicatedTextSynchronizationFeature(e)){const t=this._client.middleware,n=e=>this._client.sendNotification(this._type,this._createParams(e));this._syncedDocuments.delete(e.uri.toString()),(t.didClose?t.didClose(e,n):n(e)).catch((e=>{this._client.error(`Sending document notification ${this._type.method} failed`,e)}))}}))}}t.DidCloseTextDocumentFeature=c;class u extends o.DynamicDocumentFeature{constructor(e,t){super(e),this._changeData=new Map,this._onNotificationSent=new i.EventEmitter,this._onPendingChangeAdded=new i.EventEmitter,this._pendingTextDocumentChanges=t,this._syncKind=r.TextDocumentSyncKind.None}get onNotificationSent(){return this._onNotificationSent.event}get onPendingChangeAdded(){return this._onPendingChangeAdded.event}get syncKind(){return this._syncKind}get registrationType(){return r.DidChangeTextDocumentNotification.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").dynamicRegistration=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&void 0!==n.change&&n.change!==r.TextDocumentSyncKind.None&&this.register({id:s.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},{syncKind:n.change})})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=i.workspace.onDidChangeTextDocument(this.callback,this)),this._changeData.set(e.id,{syncKind:e.registerOptions.syncKind,documentSelector:this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)}),this.updateSyncKind(e.registerOptions.syncKind))}*getDocumentSelectors(){for(const e of this._changeData.values())yield e.documentSelector}async callback(e){if(0===e.contentChanges.length)return;const t=e.document.uri,n=e.document.version,o=[];for(const s of this._changeData.values())if(i.languages.match(s.documentSelector,e.document)>0&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const i=this._client.middleware;if(s.syncKind===r.TextDocumentSyncKind.Incremental){const s=async e=>{const i=this._client.code2ProtocolConverter.asChangeTextDocumentParams(e,t,n);await this._client.sendNotification(r.DidChangeTextDocumentNotification.type,i),this.notificationSent(e.document,r.DidChangeTextDocumentNotification.type,i)};o.push(i.didChange?i.didChange(e,(e=>s(e))):s(e))}else if(s.syncKind===r.TextDocumentSyncKind.Full){const t=async e=>{const t=e.document.uri.toString();this._pendingTextDocumentChanges.set(t,e.document),this._onPendingChangeAdded.fire()};o.push(i.didChange?i.didChange(e,(e=>t(e))):t(e))}}return Promise.all(o).then(void 0,(e=>{throw this._client.error(`Sending document notification ${r.DidChangeTextDocumentNotification.type.method} failed`,e),e}))}notificationSent(e,t,n){this._onNotificationSent.fire({textDocument:e,type:t,params:n})}unregister(e){if(this._changeData.delete(e),0===this._changeData.size)this._listener&&(this._listener.dispose(),this._listener=void 0),this._syncKind=r.TextDocumentSyncKind.None;else{this._syncKind=r.TextDocumentSyncKind.None;for(const e of this._changeData.values())if(this.updateSyncKind(e.syncKind),this._syncKind===r.TextDocumentSyncKind.Full)break}}clear(){this._pendingTextDocumentChanges.clear(),this._changeData.clear(),this._syncKind=r.TextDocumentSyncKind.None,this._listener&&(this._listener.dispose(),this._listener=void 0)}getPendingDocumentChanges(e){if(0===this._pendingTextDocumentChanges.size)return[];let t;if(0===e.size)t=Array.from(this._pendingTextDocumentChanges.values()),this._pendingTextDocumentChanges.clear();else{t=[];for(const n of this._pendingTextDocumentChanges)e.has(n[0])||(t.push(n[1]),this._pendingTextDocumentChanges.delete(n[0]))}return t}getProvider(e){for(const t of this._changeData.values())if(i.languages.match(t.documentSelector,e)>0)return{send:e=>this.callback(e)}}updateSyncKind(e){if(this._syncKind!==r.TextDocumentSyncKind.Full)switch(e){case r.TextDocumentSyncKind.Full:this._syncKind=e;break;case r.TextDocumentSyncKind.Incremental:this._syncKind===r.TextDocumentSyncKind.None&&(this._syncKind=r.TextDocumentSyncKind.Incremental)}}}t.DidChangeTextDocumentFeature=u;class l extends o.TextDocumentEventFeature{constructor(e){super(e,i.workspace.onWillSaveTextDocument,r.WillSaveTextDocumentNotification.type,(()=>e.middleware.willSave),(t=>e.code2ProtocolConverter.asWillSaveTextDocumentParams(t)),(e=>e.document),((e,t)=>o.TextDocumentEventFeature.textDocumentFilter(e,t.document)))}get registrationType(){return r.WillSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").willSave=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&n.willSave&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}getTextDocument(e){return e.document}}t.WillSaveFeature=l;class d extends o.DynamicDocumentFeature{constructor(e){super(e),this._selectors=new Map}getDocumentSelectors(){return this._selectors.values()}get registrationType(){return r.WillSaveTextDocumentWaitUntilRequest.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").willSaveWaitUntil=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;t&&n&&n.willSaveWaitUntil&&this.register({id:s.generateUuid(),registerOptions:{documentSelector:t}})}register(e){e.registerOptions.documentSelector&&(this._listener||(this._listener=i.workspace.onWillSaveTextDocument(this.callback,this)),this._selectors.set(e.id,this._client.protocol2CodeConverter.asDocumentSelector(e.registerOptions.documentSelector)))}callback(e){if(o.TextDocumentEventFeature.textDocumentFilter(this._selectors.values(),e.document)&&!this._client.hasDedicatedTextSynchronizationFeature(e.document)){const t=this._client.middleware,n=e=>this._client.sendRequest(r.WillSaveTextDocumentWaitUntilRequest.type,this._client.code2ProtocolConverter.asWillSaveTextDocumentParams(e)).then((async e=>{const t=await this._client.protocol2CodeConverter.asTextEdits(e);return void 0===t?[]:t}));e.waitUntil(t.willSaveWaitUntil?t.willSaveWaitUntil(e,n):n(e))}}unregister(e){this._selectors.delete(e),0===this._selectors.size&&this._listener&&(this._listener.dispose(),this._listener=void 0)}clear(){this._selectors.clear(),this._listener&&(this._listener.dispose(),this._listener=void 0)}}t.WillSaveWaitUntilFeature=d;class f extends o.TextDocumentEventFeature{constructor(e){super(e,i.workspace.onDidSaveTextDocument,r.DidSaveTextDocumentNotification.type,(()=>e.middleware.didSave),(t=>e.code2ProtocolConverter.asSaveTextDocumentParams(t,this._includeText)),(e=>e),o.TextDocumentEventFeature.textDocumentFilter),this._includeText=!1}get registrationType(){return r.DidSaveTextDocumentNotification.type}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"synchronization").didSave=!0}initialize(e,t){const n=e.resolvedTextDocumentSync;if(t&&n&&n.save){const e="boolean"==typeof n.save?{includeText:!1}:{includeText:!!n.save.includeText};this.register({id:s.generateUuid(),registerOptions:Object.assign({},{documentSelector:t},e)})}}register(e){this._includeText=!!e.registerOptions.includeText,super.register(e)}getTextDocument(e){return e}}t.DidSaveTextDocumentFeature=f},328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.TypeDefinitionRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"typeDefinition").dynamicRegistration=!0;const t=(0,o.ensure)((0,o.ensure)(e,"textDocument"),"typeDefinition");t.dynamicRegistration=!0,t.linkSupport=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.typeDefinitionProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=e.documentSelector,n={provideTypeDefinition:(e,t,n)=>{const i=this._client,o=(e,t,n)=>i.sendRequest(r.TypeDefinitionRequest.type,i.code2ProtocolConverter.asTextDocumentPositionParams(e,t),n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asDefinitionResult(e,n)),(e=>i.handleFailedRequest(r.TypeDefinitionRequest.type,n,e,null))),s=i.middleware;return s.provideTypeDefinition?s.provideTypeDefinition(e,t,n,o):o(e,t,n)}};return[this.registerProvider(t,n),n]}registerProvider(e,t){return i.languages.registerTypeDefinitionProvider(this._client.protocol2CodeConverter.asDocumentSelector(e),t)}}t.TypeDefinitionFeature=s},4175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchyFeature=void 0;const i=n(9496),r=n(152),o=n(8909);class s{constructor(e){this.client=e,this.middleware=e.middleware}prepareTypeHierarchy(e,t,n){const i=this.client,o=this.middleware,s=(e,t,n)=>{const o=i.code2ProtocolConverter.asTextDocumentPositionParams(e,t);return i.sendRequest(r.TypeHierarchyPrepareRequest.type,o,n).then((e=>n.isCancellationRequested?null:i.protocol2CodeConverter.asTypeHierarchyItems(e,n)),(e=>i.handleFailedRequest(r.TypeHierarchyPrepareRequest.type,n,e,null)))};return o.prepareTypeHierarchy?o.prepareTypeHierarchy(e,t,n,s):s(e,t,n)}provideTypeHierarchySupertypes(e,t){const n=this.client,i=this.middleware,o=(e,t)=>{const i={item:n.code2ProtocolConverter.asTypeHierarchyItem(e)};return n.sendRequest(r.TypeHierarchySupertypesRequest.type,i,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asTypeHierarchyItems(e,t)),(e=>n.handleFailedRequest(r.TypeHierarchySupertypesRequest.type,t,e,null)))};return i.provideTypeHierarchySupertypes?i.provideTypeHierarchySupertypes(e,t,o):o(e,t)}provideTypeHierarchySubtypes(e,t){const n=this.client,i=this.middleware,o=(e,t)=>{const i={item:n.code2ProtocolConverter.asTypeHierarchyItem(e)};return n.sendRequest(r.TypeHierarchySubtypesRequest.type,i,t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asTypeHierarchyItems(e,t)),(e=>n.handleFailedRequest(r.TypeHierarchySubtypesRequest.type,t,e,null)))};return i.provideTypeHierarchySubtypes?i.provideTypeHierarchySubtypes(e,t,o):o(e,t)}}class a extends o.TextDocumentLanguageFeature{constructor(e){super(e,r.TypeHierarchyPrepareRequest.type)}fillClientCapabilities(e){(0,o.ensure)((0,o.ensure)(e,"textDocument"),"typeHierarchy").dynamicRegistration=!0}initialize(e,t){const[n,i]=this.getRegistration(t,e.typeHierarchyProvider);n&&i&&this.register({id:n,registerOptions:i})}registerLanguageProvider(e){const t=this._client,n=new s(t);return[i.languages.registerTypeHierarchyProvider(t.protocol2CodeConverter.asDocumentSelector(e.documentSelector),n),n]}}t.TypeHierarchyFeature=a},4904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=t.mapAsync=t.map=t.clearTestMode=t.setTestMode=t.Semaphore=t.Delayer=void 0;const i=n(152);t.Delayer=class{constructor(e){this.defaultDelay=e,this.timeout=void 0,this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0}trigger(e,t=this.defaultDelay){return this.task=e,t>=0&&this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e=>{this.onSuccess=e})).then((()=>{this.completionPromise=void 0,this.onSuccess=void 0;const e=this.task();return this.task=void 0,e}))),(t>=0||void 0===this.timeout)&&(this.timeout=(0,i.RAL)().timer.setTimeout((()=>{this.timeout=void 0,this.onSuccess(void 0)}),t>=0?t:this.defaultDelay)),this.completionPromise}forceDelivery(){if(!this.completionPromise)return;this.cancelTimeout();const e=this.task();return this.completionPromise=void 0,this.onSuccess=void 0,this.task=void 0,e}isTriggered(){return void 0!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise=void 0}cancelTimeout(){void 0!==this.timeout&&(this.timeout.dispose(),this.timeout=void 0)}},t.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,i.RAL)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}};let r=!1;t.setTestMode=function(){r=!0},t.clearTestMode=function(){r=!1};class o{constructor(e=15){this.yieldAfter=!0===r?Math.max(e,2):Math.max(e,15),this.startTime=Date.now(),this.counter=0,this.total=0,this.counterInterval=1}start(){this.counter=0,this.total=0,this.counterInterval=1,this.startTime=Date.now()}shouldYield(){if(++this.counter>=this.counterInterval){const e=Date.now()-this.startTime,t=Math.max(0,this.yieldAfter-e);if(this.total+=this.counter,this.counter=0,e>=this.yieldAfter||t<=1)return this.counterInterval=1,this.total=0,!0;switch(e){case 0:case 1:this.counterInterval=2*this.total}}return!1}}t.map=async function(e,t,n,r){if(0===e.length)return[];const s=new Array(e.length),a=new o(r?.yieldAfter);function c(n){a.start();for(let i=n;i<e.length;i++)if(s[i]=t(e[i]),a.shouldYield())return r?.yieldCallback&&r.yieldCallback(),i+1;return-1}let u=c(0);for(;-1!==u&&(void 0===n||!n.isCancellationRequested);)u=await new Promise((e=>{(0,i.RAL)().timer.setImmediate((()=>{e(c(u))}))}));return s},t.mapAsync=async function(e,t,n,r){if(0===e.length)return[];const s=new Array(e.length),a=new o(r?.yieldAfter);async function c(i){a.start();for(let o=i;o<e.length;o++)if(s[o]=await t(e[o],n),a.shouldYield())return r?.yieldCallback&&r.yieldCallback(),o+1;return-1}let u=await c(0);for(;-1!==u&&(void 0===n||!n.isCancellationRequested);)u=await new Promise((e=>{(0,i.RAL)().timer.setImmediate((()=>{e(c(u))}))}));return s},t.forEach=async function(e,t,n,r){if(0===e.length)return;const s=new o(r?.yieldAfter);function a(n){s.start();for(let i=n;i<e.length;i++)if(t(e[i]),s.shouldYield())return r?.yieldCallback&&r.yieldCallback(),i+1;return-1}let c=a(0);for(;-1!==c&&(void 0===n||!n.isCancellationRequested);)c=await new Promise((e=>{(0,i.RAL)().timer.setImmediate((()=>{e(a(c))}))}))}},9763:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function i(e){return"function"==typeof e}function r(e){return Array.isArray(e)}function o(e){return e&&i(e.then)}Object.defineProperty(t,"__esModule",{value:!0}),t.asPromise=t.thenable=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=i,t.array=r,t.stringArray=function(e){return r(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.thenable=o,t.asPromise=function(e){return e instanceof Promise?e:o(e)?new Promise(((t,n)=>{e.then((e=>t(e)),(e=>n(e)))})):Promise.resolve(e)}},1980:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateUuid=t.parse=t.isUUID=t.v4=t.empty=void 0;class n{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class i extends n{static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return i._oneOf(i._chars)}constructor(){super([i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),"-","4",i._randomHex(),i._randomHex(),i._randomHex(),"-",i._oneOf(i._timeHighBits),i._randomHex(),i._randomHex(),i._randomHex(),"-",i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex(),i._randomHex()].join(""))}}function r(){return new i}i._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"],i._timeHighBits=["8","9","a","b"],t.empty=new n("00000000-0000-0000-0000-000000000000"),t.v4=r;const o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return o.test(e)}t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new n(e)},t.generateUuid=function(){return r().asHex()}},5941:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceFoldersFeature=t.arrayDiff=void 0;const i=n(1980),r=n(9496),o=n(152);function s(e,t){if(null!=e)return e[t]}function a(e,t){return e.filter((e=>t.indexOf(e)<0))}t.arrayDiff=a,t.WorkspaceFoldersFeature=class{constructor(e){this._client=e,this._listeners=new Map}getState(){return{kind:"workspace",id:this.registrationType.method,registrations:this._listeners.size>0}}get registrationType(){return o.DidChangeWorkspaceFoldersNotification.type}fillInitializeParams(e){const t=r.workspace.workspaceFolders;this.initializeWithFolders(t),e.workspaceFolders=void 0===t?null:t.map((e=>this.asProtocol(e)))}initializeWithFolders(e){this._initialFolders=e}fillClientCapabilities(e){e.workspace=e.workspace||{},e.workspace.workspaceFolders=!0}initialize(e){const t=this._client;t.onRequest(o.WorkspaceFoldersRequest.type,(e=>{const n=()=>{const e=r.workspace.workspaceFolders;return void 0===e?null:e.map((e=>this.asProtocol(e)))},i=t.middleware.workspace;return i&&i.workspaceFolders?i.workspaceFolders(e,n):n()}));const n=s(s(s(e,"workspace"),"workspaceFolders"),"changeNotifications");let a;"string"==typeof n?a=n:!0===n&&(a=i.generateUuid()),a&&this.register({id:a,registerOptions:void 0})}sendInitialEvent(e){let t;if(this._initialFolders&&e){const n=a(this._initialFolders,e),i=a(e,this._initialFolders);(i.length>0||n.length>0)&&(t=this.doSendEvent(i,n))}else this._initialFolders?t=this.doSendEvent([],this._initialFolders):e&&(t=this.doSendEvent(e,[]));void 0!==t&&t.catch((e=>{this._client.error(`Sending notification ${o.DidChangeWorkspaceFoldersNotification.type.method} failed`,e)}))}doSendEvent(e,t){const n={event:{added:e.map((e=>this.asProtocol(e))),removed:t.map((e=>this.asProtocol(e)))}};return this._client.sendNotification(o.DidChangeWorkspaceFoldersNotification.type,n)}register(e){const t=e.id,n=this._client,i=r.workspace.onDidChangeWorkspaceFolders((e=>{const t=e=>this.doSendEvent(e.added,e.removed),i=n.middleware.workspace;(i&&i.didChangeWorkspaceFolders?i.didChangeWorkspaceFolders(e,t):t(e)).catch((e=>{this._client.error(`Sending notification ${o.DidChangeWorkspaceFoldersNotification.type.method} failed`,e)}))}));this._listeners.set(t,i),this.sendInitialEvent(r.workspace.workspaceFolders)}unregister(e){const t=this._listeners.get(e);void 0!==t&&(this._listeners.delete(e),t.dispose())}clear(){for(const e of this._listeners.values())e.dispose();this._listeners.clear()}asProtocol(e){return void 0===e?null:{uri:this._client.code2ProtocolConverter.asUri(e.uri),name:e.name}}}},3051:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkspaceSymbolFeature=void 0;const i=n(9496),r=n(152),o=n(8909),s=n(2483),a=n(1980);class c extends o.WorkspaceFeature{constructor(e){super(e,r.WorkspaceSymbolRequest.type)}fillClientCapabilities(e){const t=(0,o.ensure)((0,o.ensure)(e,"workspace"),"symbol");t.dynamicRegistration=!0,t.symbolKind={valueSet:s.SupportedSymbolKinds},t.tagSupport={valueSet:s.SupportedSymbolTags},t.resolveSupport={properties:["location.range"]}}initialize(e){e.workspaceSymbolProvider&&this.register({id:a.generateUuid(),registerOptions:!0===e.workspaceSymbolProvider?{workDoneProgress:!1}:e.workspaceSymbolProvider})}registerLanguageProvider(e){const t={provideWorkspaceSymbols:(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.WorkspaceSymbolRequest.type,{query:e},t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSymbolInformations(e,t)),(e=>n.handleFailedRequest(r.WorkspaceSymbolRequest.type,t,e,null))),o=n.middleware;return o.provideWorkspaceSymbols?o.provideWorkspaceSymbols(e,t,i):i(e,t)},resolveWorkspaceSymbol:!0===e.resolveProvider?(e,t)=>{const n=this._client,i=(e,t)=>n.sendRequest(r.WorkspaceSymbolResolveRequest.type,n.code2ProtocolConverter.asWorkspaceSymbol(e),t).then((e=>t.isCancellationRequested?null:n.protocol2CodeConverter.asSymbolInformation(e)),(e=>n.handleFailedRequest(r.WorkspaceSymbolResolveRequest.type,t,e,null))),o=n.middleware;return o.resolveWorkspaceSymbol?o.resolveWorkspaceSymbol(e,t,i):i(e,t)}:void 0};return[i.languages.registerWorkspaceSymbolProvider(t),t]}}t.WorkspaceSymbolFeature=c},7256:(e,t,n)=>{var i=n(5623);e.exports=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),m(function(e){return e.split("\\\\").join(r).split("\\{").join(o).split("\\}").join(s).split("\\,").join(a).split("\\.").join(c)}(e),!0).map(l)):[]};var r="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",s="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function u(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function l(e){return e.split(r).join("\\").split(o).join("{").split(s).join("}").split(a).join(",").split(c).join(".")}function d(e){if(!e)return[""];var t=[],n=i("{","}",e);if(!n)return e.split(",");var r=n.pre,o=n.body,s=n.post,a=r.split(",");a[a.length-1]+="{"+o+"}";var c=d(s);return s.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),t.push.apply(t,a),t}function f(e){return"{"+e+"}"}function p(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function h(e,t){return e>=t}function m(e,t){var n=[],r=i("{","}",e);if(!r)return[e];var o=r.pre,a=r.post.length?m(r.post,!1):[""];if(/\$$/.test(r.pre))for(var c=0;c<a.length;c++){var l=o+"{"+r.body+"}"+a[c];n.push(l)}else{var v,y,C=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),S=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),_=C||S,T=r.body.indexOf(",")>=0;if(!_&&!T)return r.post.match(/,.*\}/)?m(e=r.pre+"{"+r.body+s+r.post):[e];if(_)v=r.body.split(/\.\./);else if(1===(v=d(r.body)).length&&1===(v=m(v[0],!1).map(f)).length)return a.map((function(e){return r.pre+v[0]+e}));if(_){var b=u(v[0]),R=u(v[1]),D=Math.max(v[0].length,v[1].length),w=3==v.length?Math.abs(u(v[2])):1,E=g;R<b&&(w*=-1,E=h);var P=v.some(p);y=[];for(var k=b;E(k,R);k+=w){var x;if(S)"\\"===(x=String.fromCharCode(k))&&(x="");else if(x=String(k),P){var I=D-x.length;if(I>0){var N=new Array(I+1).join("0");x=k<0?"-"+N+x.slice(1):N+x}}y.push(x)}}else{y=[];for(var O=0;O<v.length;O++)y.push.apply(y,m(v[O],!1))}for(O=0;O<y.length;O++)for(c=0;c<a.length;c++)l=o+y[O]+a[c],(!t||_||l)&&n.push(l)}return n}},5224:(e,t,n)=>{"use strict";e.exports=n(152)},152:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const o=n(1169);r(n(1169),t),r(n(1661),t),t.createProtocolConnection=function(e,t,n,i){return(0,o.createMessageConnection)(e,t,n,i)}},1661:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LSPErrorCodes=t.createProtocolConnection=void 0,r(n(9054),t),r(n(2118),t),r(n(6140),t),r(n(542),t);var o,s=n(3767);Object.defineProperty(t,"createProtocolConnection",{enumerable:!0,get:function(){return s.createProtocolConnection}}),function(e){e.lspReservedErrorRangeStart=-32899,e.RequestFailed=-32803,e.ServerCancelled=-32802,e.ContentModified=-32801,e.RequestCancelled=-32800,e.lspReservedErrorRangeEnd=-32800}(o||(t.LSPErrorCodes=o={}))},3767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createProtocolConnection=void 0;const i=n(9054);t.createProtocolConnection=function(e,t,n,r){return i.ConnectionStrategy.is(r)&&(r={connectionStrategy:r}),(0,i.createMessageConnection)(e,t,n,r)}},6140:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtocolNotificationType=t.ProtocolNotificationType0=t.ProtocolRequestType=t.ProtocolRequestType0=t.RegistrationType=t.MessageDirection=void 0;const i=n(9054);var r;!function(e){e.clientToServer="clientToServer",e.serverToClient="serverToClient",e.both="both"}(r||(t.MessageDirection=r={})),t.RegistrationType=class{constructor(e){this.method=e}};class o extends i.RequestType0{constructor(e){super(e)}}t.ProtocolRequestType0=o;class s extends i.RequestType{constructor(e){super(e,i.ParameterStructures.byName)}}t.ProtocolRequestType=s;class a extends i.NotificationType0{constructor(e){super(e)}}t.ProtocolNotificationType0=a;class c extends i.NotificationType{constructor(e){super(e,i.ParameterStructures.byName)}}t.ProtocolNotificationType=c},2918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.CallHierarchyPrepareRequest=void 0;const i=n(6140);var r,o,s;!function(e){e.method="textDocument/prepareCallHierarchy",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.CallHierarchyPrepareRequest=r={})),function(e){e.method="callHierarchy/incomingCalls",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(o||(t.CallHierarchyIncomingCallsRequest=o={})),function(e){e.method="callHierarchy/outgoingCalls",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(s||(t.CallHierarchyOutgoingCallsRequest=s={}))},9891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorPresentationRequest=t.DocumentColorRequest=void 0;const i=n(6140);var r,o;!function(e){e.method="textDocument/documentColor",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.DocumentColorRequest=r={})),function(e){e.method="textDocument/colorPresentation",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(o||(t.ColorPresentationRequest=o={}))},5934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurationRequest=void 0;const i=n(6140);var r;!function(e){e.method="workspace/configuration",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(r||(t.ConfigurationRequest=r={}))},764:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeclarationRequest=void 0;const i=n(6140);var r;!function(e){e.method="textDocument/declaration",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.DeclarationRequest=r={}))},9824:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=void 0;const i=n(9054),r=n(9533),o=n(6140);var s,a,c,u,l;!function(e){e.is=function(e){const t=e;return t&&r.boolean(t.retriggerRequest)}}(s||(t.DiagnosticServerCancellationData=s={})),function(e){e.Full="full",e.Unchanged="unchanged"}(a||(t.DocumentDiagnosticReportKind=a={})),function(e){e.method="textDocument/diagnostic",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.ProtocolRequestType(e.method),e.partialResult=new i.ProgressType}(c||(t.DocumentDiagnosticRequest=c={})),function(e){e.method="workspace/diagnostic",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.ProtocolRequestType(e.method),e.partialResult=new i.ProgressType}(u||(t.WorkspaceDiagnosticRequest=u={})),function(e){e.method="workspace/diagnostic/refresh",e.messageDirection=o.MessageDirection.serverToClient,e.type=new o.ProtocolRequestType0(e.method)}(l||(t.DiagnosticRefreshRequest=l={}))},7846:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.DidRenameFilesNotification=t.WillRenameFilesRequest=t.DidCreateFilesNotification=t.WillCreateFilesRequest=t.FileOperationPatternKind=void 0;const i=n(6140);var r,o,s,a,c,u,l;!function(e){e.file="file",e.folder="folder"}(r||(t.FileOperationPatternKind=r={})),function(e){e.method="workspace/willCreateFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(o||(t.WillCreateFilesRequest=o={})),function(e){e.method="workspace/didCreateFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(s||(t.DidCreateFilesNotification=s={})),function(e){e.method="workspace/willRenameFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(a||(t.WillRenameFilesRequest=a={})),function(e){e.method="workspace/didRenameFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(c||(t.DidRenameFilesNotification=c={})),function(e){e.method="workspace/didDeleteFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(u||(t.DidDeleteFilesNotification=u={})),function(e){e.method="workspace/willDeleteFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(l||(t.WillDeleteFilesRequest=l={}))},3394:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=void 0;const i=n(6140);var r,o;!function(e){e.method="textDocument/foldingRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.FoldingRangeRequest=r={})),function(e){e.method="workspace/foldingRange/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(o||(t.FoldingRangeRefreshRequest=o={}))},2122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImplementationRequest=void 0;const i=n(6140);var r;!function(e){e.method="textDocument/implementation",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.ImplementationRequest=r={}))},9999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=void 0;const i=n(6140);var r,o,s;!function(e){e.method="textDocument/inlayHint",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.InlayHintRequest=r={})),function(e){e.method="inlayHint/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(o||(t.InlayHintResolveRequest=o={})),function(e){e.method="workspace/inlayHint/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(s||(t.InlayHintRefreshRequest=s={}))},7081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineCompletionRequest=void 0;const i=n(6140);var r;!function(e){e.method="textDocument/inlineCompletion",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.InlineCompletionRequest=r={}))},5246:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineValueRefreshRequest=t.InlineValueRequest=void 0;const i=n(6140);var r,o;!function(e){e.method="textDocument/inlineValue",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.InlineValueRequest=r={})),function(e){e.method="workspace/inlineValue/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(o||(t.InlineValueRefreshRequest=o={}))},542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeActionResolveRequest=t.CodeActionRequest=t.DocumentSymbolRequest=t.DocumentHighlightRequest=t.ReferencesRequest=t.DefinitionRequest=t.SignatureHelpRequest=t.SignatureHelpTriggerKind=t.HoverRequest=t.CompletionResolveRequest=t.CompletionRequest=t.CompletionTriggerKind=t.PublishDiagnosticsNotification=t.WatchKind=t.RelativePattern=t.FileChangeType=t.DidChangeWatchedFilesNotification=t.WillSaveTextDocumentWaitUntilRequest=t.WillSaveTextDocumentNotification=t.TextDocumentSaveReason=t.DidSaveTextDocumentNotification=t.DidCloseTextDocumentNotification=t.DidChangeTextDocumentNotification=t.TextDocumentContentChangeEvent=t.DidOpenTextDocumentNotification=t.TextDocumentSyncKind=t.TelemetryEventNotification=t.LogMessageNotification=t.ShowMessageRequest=t.ShowMessageNotification=t.MessageType=t.DidChangeConfigurationNotification=t.ExitNotification=t.ShutdownRequest=t.InitializedNotification=t.InitializeErrorCodes=t.InitializeRequest=t.WorkDoneProgressOptions=t.TextDocumentRegistrationOptions=t.StaticRegistrationOptions=t.PositionEncodingKind=t.RegularExpressionEngineKind=t.FailureHandlingKind=t.ResourceOperationKind=t.UnregistrationRequest=t.RegistrationRequest=t.DocumentSelector=t.NotebookCellTextDocumentFilter=t.NotebookDocumentFilter=t.TextDocumentFilter=void 0,t.MonikerKind=t.UniquenessLevel=t.WillDeleteFilesRequest=t.DidDeleteFilesNotification=t.WillRenameFilesRequest=t.DidRenameFilesNotification=t.WillCreateFilesRequest=t.DidCreateFilesNotification=t.FileOperationPatternKind=t.LinkedEditingRangeRequest=t.ShowDocumentRequest=t.SemanticTokensRegistrationType=t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.TokenFormat=t.CallHierarchyPrepareRequest=t.CallHierarchyOutgoingCallsRequest=t.CallHierarchyIncomingCallsRequest=t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=t.SelectionRangeRequest=t.DeclarationRequest=t.FoldingRangeRefreshRequest=t.FoldingRangeRequest=t.ColorPresentationRequest=t.DocumentColorRequest=t.ConfigurationRequest=t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=t.TypeDefinitionRequest=t.ImplementationRequest=t.ApplyWorkspaceEditRequest=t.ExecuteCommandRequest=t.PrepareRenameRequest=t.RenameRequest=t.PrepareSupportDefaultBehavior=t.DocumentOnTypeFormattingRequest=t.DocumentRangesFormattingRequest=t.DocumentRangeFormattingRequest=t.DocumentFormattingRequest=t.DocumentLinkResolveRequest=t.DocumentLinkRequest=t.CodeLensRefreshRequest=t.CodeLensResolveRequest=t.CodeLensRequest=t.WorkspaceSymbolResolveRequest=t.WorkspaceSymbolRequest=void 0,t.InlineCompletionRequest=t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=t.DiagnosticRefreshRequest=t.WorkspaceDiagnosticRequest=t.DocumentDiagnosticRequest=t.DocumentDiagnosticReportKind=t.DiagnosticServerCancellationData=t.InlayHintRefreshRequest=t.InlayHintResolveRequest=t.InlayHintRequest=t.InlineValueRefreshRequest=t.InlineValueRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchySubtypesRequest=t.TypeHierarchyPrepareRequest=t.MonikerRequest=void 0;const i=n(6140),r=n(2118),o=n(9533),s=n(2122);Object.defineProperty(t,"ImplementationRequest",{enumerable:!0,get:function(){return s.ImplementationRequest}});const a=n(1589);Object.defineProperty(t,"TypeDefinitionRequest",{enumerable:!0,get:function(){return a.TypeDefinitionRequest}});const c=n(8744);Object.defineProperty(t,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return c.WorkspaceFoldersRequest}}),Object.defineProperty(t,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return c.DidChangeWorkspaceFoldersNotification}});const u=n(5934);Object.defineProperty(t,"ConfigurationRequest",{enumerable:!0,get:function(){return u.ConfigurationRequest}});const l=n(9891);Object.defineProperty(t,"DocumentColorRequest",{enumerable:!0,get:function(){return l.DocumentColorRequest}}),Object.defineProperty(t,"ColorPresentationRequest",{enumerable:!0,get:function(){return l.ColorPresentationRequest}});const d=n(3394);Object.defineProperty(t,"FoldingRangeRequest",{enumerable:!0,get:function(){return d.FoldingRangeRequest}}),Object.defineProperty(t,"FoldingRangeRefreshRequest",{enumerable:!0,get:function(){return d.FoldingRangeRefreshRequest}});const f=n(764);Object.defineProperty(t,"DeclarationRequest",{enumerable:!0,get:function(){return f.DeclarationRequest}});const p=n(5206);Object.defineProperty(t,"SelectionRangeRequest",{enumerable:!0,get:function(){return p.SelectionRangeRequest}});const g=n(1862);Object.defineProperty(t,"WorkDoneProgress",{enumerable:!0,get:function(){return g.WorkDoneProgress}}),Object.defineProperty(t,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return g.WorkDoneProgressCreateRequest}}),Object.defineProperty(t,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return g.WorkDoneProgressCancelNotification}});const h=n(2918);Object.defineProperty(t,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return h.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(t,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return h.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(t,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return h.CallHierarchyPrepareRequest}});const m=n(9434);Object.defineProperty(t,"TokenFormat",{enumerable:!0,get:function(){return m.TokenFormat}}),Object.defineProperty(t,"SemanticTokensRequest",{enumerable:!0,get:function(){return m.SemanticTokensRequest}}),Object.defineProperty(t,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return m.SemanticTokensDeltaRequest}}),Object.defineProperty(t,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return m.SemanticTokensRangeRequest}}),Object.defineProperty(t,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return m.SemanticTokensRefreshRequest}}),Object.defineProperty(t,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return m.SemanticTokensRegistrationType}});const v=n(5726);Object.defineProperty(t,"ShowDocumentRequest",{enumerable:!0,get:function(){return v.ShowDocumentRequest}});const y=n(6305);Object.defineProperty(t,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return y.LinkedEditingRangeRequest}});const C=n(7846);Object.defineProperty(t,"FileOperationPatternKind",{enumerable:!0,get:function(){return C.FileOperationPatternKind}}),Object.defineProperty(t,"DidCreateFilesNotification",{enumerable:!0,get:function(){return C.DidCreateFilesNotification}}),Object.defineProperty(t,"WillCreateFilesRequest",{enumerable:!0,get:function(){return C.WillCreateFilesRequest}}),Object.defineProperty(t,"DidRenameFilesNotification",{enumerable:!0,get:function(){return C.DidRenameFilesNotification}}),Object.defineProperty(t,"WillRenameFilesRequest",{enumerable:!0,get:function(){return C.WillRenameFilesRequest}}),Object.defineProperty(t,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return C.DidDeleteFilesNotification}}),Object.defineProperty(t,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return C.WillDeleteFilesRequest}});const S=n(3443);Object.defineProperty(t,"UniquenessLevel",{enumerable:!0,get:function(){return S.UniquenessLevel}}),Object.defineProperty(t,"MonikerKind",{enumerable:!0,get:function(){return S.MonikerKind}}),Object.defineProperty(t,"MonikerRequest",{enumerable:!0,get:function(){return S.MonikerRequest}});const _=n(3693);Object.defineProperty(t,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return _.TypeHierarchyPrepareRequest}}),Object.defineProperty(t,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return _.TypeHierarchySubtypesRequest}}),Object.defineProperty(t,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return _.TypeHierarchySupertypesRequest}});const T=n(5246);Object.defineProperty(t,"InlineValueRequest",{enumerable:!0,get:function(){return T.InlineValueRequest}}),Object.defineProperty(t,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return T.InlineValueRefreshRequest}});const b=n(9999);Object.defineProperty(t,"InlayHintRequest",{enumerable:!0,get:function(){return b.InlayHintRequest}}),Object.defineProperty(t,"InlayHintResolveRequest",{enumerable:!0,get:function(){return b.InlayHintResolveRequest}}),Object.defineProperty(t,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return b.InlayHintRefreshRequest}});const R=n(9824);Object.defineProperty(t,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return R.DiagnosticServerCancellationData}}),Object.defineProperty(t,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return R.DocumentDiagnosticReportKind}}),Object.defineProperty(t,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return R.DocumentDiagnosticRequest}}),Object.defineProperty(t,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return R.WorkspaceDiagnosticRequest}}),Object.defineProperty(t,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return R.DiagnosticRefreshRequest}});const D=n(7169);Object.defineProperty(t,"NotebookCellKind",{enumerable:!0,get:function(){return D.NotebookCellKind}}),Object.defineProperty(t,"ExecutionSummary",{enumerable:!0,get:function(){return D.ExecutionSummary}}),Object.defineProperty(t,"NotebookCell",{enumerable:!0,get:function(){return D.NotebookCell}}),Object.defineProperty(t,"NotebookDocument",{enumerable:!0,get:function(){return D.NotebookDocument}}),Object.defineProperty(t,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return D.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(t,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return D.DidOpenNotebookDocumentNotification}}),Object.defineProperty(t,"NotebookCellArrayChange",{enumerable:!0,get:function(){return D.NotebookCellArrayChange}}),Object.defineProperty(t,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return D.DidChangeNotebookDocumentNotification}}),Object.defineProperty(t,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return D.DidSaveNotebookDocumentNotification}}),Object.defineProperty(t,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return D.DidCloseNotebookDocumentNotification}});const w=n(7081);var E,P,k,x,I,N,O,A,F,M,L,q,j,U,H,K,V,W,z,B,$,G,J,Y,X,Z,Q,ee,te,ne,ie,re,oe,se,ae,ce,ue,le,de,fe,pe,ge,he,me,ve,ye,Ce,Se,_e,Te,be,Re,De,we,Ee,Pe,ke,xe,Ie,Ne,Oe,Ae,Fe,Me,Le,qe;Object.defineProperty(t,"InlineCompletionRequest",{enumerable:!0,get:function(){return w.InlineCompletionRequest}}),function(e){e.is=function(e){const t=e;return o.string(t)||o.string(t.language)||o.string(t.scheme)||o.string(t.pattern)}}(E||(t.TextDocumentFilter=E={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(o.string(t.notebookType)||o.string(t.scheme)||o.string(t.pattern))}}(P||(t.NotebookDocumentFilter=P={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(o.string(t.notebook)||P.is(t.notebook))&&(void 0===t.language||o.string(t.language))}}(k||(t.NotebookCellTextDocumentFilter=k={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(const t of e)if(!o.string(t)&&!E.is(t)&&!k.is(t))return!1;return!0}}(x||(t.DocumentSelector=x={})),function(e){e.method="client/registerCapability",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(I||(t.RegistrationRequest=I={})),function(e){e.method="client/unregisterCapability",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(N||(t.UnregistrationRequest=N={})),function(e){e.Create="create",e.Rename="rename",e.Delete="delete"}(O||(t.ResourceOperationKind=O={})),function(e){e.Abort="abort",e.Transactional="transactional",e.TextOnlyTransactional="textOnlyTransactional",e.Undo="undo"}(A||(t.FailureHandlingKind=A={})),function(e){e.ES2020="ES2020"}(F||(t.RegularExpressionEngineKind=F={})),function(e){e.UTF8="utf-8",e.UTF16="utf-16",e.UTF32="utf-32"}(M||(t.PositionEncodingKind=M={})),function(e){e.hasId=function(e){const t=e;return t&&o.string(t.id)&&t.id.length>0}}(L||(t.StaticRegistrationOptions=L={})),function(e){e.is=function(e){const t=e;return t&&(null===t.documentSelector||x.is(t.documentSelector))}}(q||(t.TextDocumentRegistrationOptions=q={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(void 0===t.workDoneProgress||o.boolean(t.workDoneProgress))},e.hasWorkDoneProgress=function(e){const t=e;return t&&o.boolean(t.workDoneProgress)}}(j||(t.WorkDoneProgressOptions=j={})),function(e){e.method="initialize",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(U||(t.InitializeRequest=U={})),function(e){e.unknownProtocolVersion=1}(H||(t.InitializeErrorCodes=H={})),function(e){e.method="initialized",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(K||(t.InitializedNotification=K={})),function(e){e.method="shutdown",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType0(e.method)}(V||(t.ShutdownRequest=V={})),function(e){e.method="exit",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType0(e.method)}(W||(t.ExitNotification=W={})),function(e){e.method="workspace/didChangeConfiguration",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(z||(t.DidChangeConfigurationNotification=z={})),function(e){e.Error=1,e.Warning=2,e.Info=3,e.Log=4,e.Debug=5}(B||(t.MessageType=B={})),function(e){e.method="window/showMessage",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)}($||(t.ShowMessageNotification=$={})),function(e){e.method="window/showMessageRequest",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(G||(t.ShowMessageRequest=G={})),function(e){e.method="window/logMessage",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)}(J||(t.LogMessageNotification=J={})),function(e){e.method="telemetry/event",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)}(Y||(t.TelemetryEventNotification=Y={})),function(e){e.None=0,e.Full=1,e.Incremental=2}(X||(t.TextDocumentSyncKind=X={})),function(e){e.method="textDocument/didOpen",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(Z||(t.DidOpenTextDocumentNotification=Z={})),function(e){e.isIncremental=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},e.isFull=function(e){const t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength}}(Q||(t.TextDocumentContentChangeEvent=Q={})),function(e){e.method="textDocument/didChange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(ee||(t.DidChangeTextDocumentNotification=ee={})),function(e){e.method="textDocument/didClose",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(te||(t.DidCloseTextDocumentNotification=te={})),function(e){e.method="textDocument/didSave",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(ne||(t.DidSaveTextDocumentNotification=ne={})),function(e){e.Manual=1,e.AfterDelay=2,e.FocusOut=3}(ie||(t.TextDocumentSaveReason=ie={})),function(e){e.method="textDocument/willSave",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(re||(t.WillSaveTextDocumentNotification=re={})),function(e){e.method="textDocument/willSaveWaitUntil",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(oe||(t.WillSaveTextDocumentWaitUntilRequest=oe={})),function(e){e.method="workspace/didChangeWatchedFiles",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(se||(t.DidChangeWatchedFilesNotification=se={})),function(e){e.Created=1,e.Changed=2,e.Deleted=3}(ae||(t.FileChangeType=ae={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(r.URI.is(t.baseUri)||r.WorkspaceFolder.is(t.baseUri))&&o.string(t.pattern)}}(ce||(t.RelativePattern=ce={})),function(e){e.Create=1,e.Change=2,e.Delete=4}(ue||(t.WatchKind=ue={})),function(e){e.method="textDocument/publishDiagnostics",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolNotificationType(e.method)}(le||(t.PublishDiagnosticsNotification=le={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.TriggerForIncompleteCompletions=3}(de||(t.CompletionTriggerKind=de={})),function(e){e.method="textDocument/completion",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(fe||(t.CompletionRequest=fe={})),function(e){e.method="completionItem/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(pe||(t.CompletionResolveRequest=pe={})),function(e){e.method="textDocument/hover",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(ge||(t.HoverRequest=ge={})),function(e){e.Invoked=1,e.TriggerCharacter=2,e.ContentChange=3}(he||(t.SignatureHelpTriggerKind=he={})),function(e){e.method="textDocument/signatureHelp",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(me||(t.SignatureHelpRequest=me={})),function(e){e.method="textDocument/definition",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(ve||(t.DefinitionRequest=ve={})),function(e){e.method="textDocument/references",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(ye||(t.ReferencesRequest=ye={})),function(e){e.method="textDocument/documentHighlight",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Ce||(t.DocumentHighlightRequest=Ce={})),function(e){e.method="textDocument/documentSymbol",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Se||(t.DocumentSymbolRequest=Se={})),function(e){e.method="textDocument/codeAction",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(_e||(t.CodeActionRequest=_e={})),function(e){e.method="codeAction/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Te||(t.CodeActionResolveRequest=Te={})),function(e){e.method="workspace/symbol",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(be||(t.WorkspaceSymbolRequest=be={})),function(e){e.method="workspaceSymbol/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Re||(t.WorkspaceSymbolResolveRequest=Re={})),function(e){e.method="textDocument/codeLens",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(De||(t.CodeLensRequest=De={})),function(e){e.method="codeLens/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(we||(t.CodeLensResolveRequest=we={})),function(e){e.method="workspace/codeLens/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(Ee||(t.CodeLensRefreshRequest=Ee={})),function(e){e.method="textDocument/documentLink",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Pe||(t.DocumentLinkRequest=Pe={})),function(e){e.method="documentLink/resolve",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(ke||(t.DocumentLinkResolveRequest=ke={})),function(e){e.method="textDocument/formatting",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(xe||(t.DocumentFormattingRequest=xe={})),function(e){e.method="textDocument/rangeFormatting",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Ie||(t.DocumentRangeFormattingRequest=Ie={})),function(e){e.method="textDocument/rangesFormatting",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Ne||(t.DocumentRangesFormattingRequest=Ne={})),function(e){e.method="textDocument/onTypeFormatting",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Oe||(t.DocumentOnTypeFormattingRequest=Oe={})),function(e){e.Identifier=1}(Ae||(t.PrepareSupportDefaultBehavior=Ae={})),function(e){e.method="textDocument/rename",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Fe||(t.RenameRequest=Fe={})),function(e){e.method="textDocument/prepareRename",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Me||(t.PrepareRenameRequest=Me={})),function(e){e.method="workspace/executeCommand",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(Le||(t.ExecuteCommandRequest=Le={})),function(e){e.method="workspace/applyEdit",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType("workspace/applyEdit")}(qe||(t.ApplyWorkspaceEditRequest=qe={}))},6305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedEditingRangeRequest=void 0;const i=n(6140);var r;!function(e){e.method="textDocument/linkedEditingRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.LinkedEditingRangeRequest=r={}))},3443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MonikerRequest=t.MonikerKind=t.UniquenessLevel=void 0;const i=n(6140);var r,o,s;!function(e){e.document="document",e.project="project",e.group="group",e.scheme="scheme",e.global="global"}(r||(t.UniquenessLevel=r={})),function(e){e.$import="import",e.$export="export",e.local="local"}(o||(t.MonikerKind=o={})),function(e){e.method="textDocument/moniker",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(s||(t.MonikerRequest=s={}))},7169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidCloseNotebookDocumentNotification=t.DidSaveNotebookDocumentNotification=t.DidChangeNotebookDocumentNotification=t.NotebookCellArrayChange=t.DidOpenNotebookDocumentNotification=t.NotebookDocumentSyncRegistrationType=t.NotebookDocument=t.NotebookCell=t.ExecutionSummary=t.NotebookCellKind=void 0;const i=n(2118),r=n(9533),o=n(6140);var s,a,c,u,l,d,f,p,g,h;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(s||(t.NotebookCellKind=s={})),function(e){e.create=function(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const t=e;return r.objectLiteral(t)&&i.uinteger.is(t.executionOrder)&&(void 0===t.success||r.boolean(t.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}}(a||(t.ExecutionSummary=a={})),function(e){function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(typeof e!=typeof n)return!1;if("object"!=typeof e)return!1;const i=Array.isArray(e),o=Array.isArray(n);if(i!==o)return!1;if(i&&o){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++)if(!t(e[i],n[i]))return!1}if(r.objectLiteral(e)&&r.objectLiteral(n)){const i=Object.keys(e),r=Object.keys(n);if(i.length!==r.length)return!1;if(i.sort(),r.sort(),!t(i,r))return!1;for(let r=0;r<i.length;r++){const o=i[r];if(!t(e[o],n[o]))return!1}}return!0}e.create=function(e,t){return{kind:e,document:t}},e.is=function(e){const t=e;return r.objectLiteral(t)&&s.is(t.kind)&&i.DocumentUri.is(t.document)&&(void 0===t.metadata||r.objectLiteral(t.metadata))},e.diff=function(e,n){const i=new Set;return e.document!==n.document&&i.add("document"),e.kind!==n.kind&&i.add("kind"),e.executionSummary!==n.executionSummary&&i.add("executionSummary"),void 0===e.metadata&&void 0===n.metadata||t(e.metadata,n.metadata)||i.add("metadata"),void 0===e.executionSummary&&void 0===n.executionSummary||a.equals(e.executionSummary,n.executionSummary)||i.add("executionSummary"),i}}(c||(t.NotebookCell=c={})),function(e){e.create=function(e,t,n,i){return{uri:e,notebookType:t,version:n,cells:i}},e.is=function(e){const t=e;return r.objectLiteral(t)&&r.string(t.uri)&&i.integer.is(t.version)&&r.typedArray(t.cells,c.is)}}(u||(t.NotebookDocument=u={})),function(e){e.method="notebookDocument/sync",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.RegistrationType(e.method)}(l||(t.NotebookDocumentSyncRegistrationType=l={})),function(e){e.method="notebookDocument/didOpen",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.ProtocolNotificationType(e.method),e.registrationMethod=l.method}(d||(t.DidOpenNotebookDocumentNotification=d={})),function(e){e.is=function(e){const t=e;return r.objectLiteral(t)&&i.uinteger.is(t.start)&&i.uinteger.is(t.deleteCount)&&(void 0===t.cells||r.typedArray(t.cells,c.is))},e.create=function(e,t,n){const i={start:e,deleteCount:t};return void 0!==n&&(i.cells=n),i}}(f||(t.NotebookCellArrayChange=f={})),function(e){e.method="notebookDocument/didChange",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.ProtocolNotificationType(e.method),e.registrationMethod=l.method}(p||(t.DidChangeNotebookDocumentNotification=p={})),function(e){e.method="notebookDocument/didSave",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.ProtocolNotificationType(e.method),e.registrationMethod=l.method}(g||(t.DidSaveNotebookDocumentNotification=g={})),function(e){e.method="notebookDocument/didClose",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.ProtocolNotificationType(e.method),e.registrationMethod=l.method}(h||(t.DidCloseNotebookDocumentNotification=h={}))},1862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WorkDoneProgressCancelNotification=t.WorkDoneProgressCreateRequest=t.WorkDoneProgress=void 0;const i=n(9054),r=n(6140);var o,s,a;!function(e){e.type=new i.ProgressType,e.is=function(t){return t===e.type}}(o||(t.WorkDoneProgress=o={})),function(e){e.method="window/workDoneProgress/create",e.messageDirection=r.MessageDirection.serverToClient,e.type=new r.ProtocolRequestType(e.method)}(s||(t.WorkDoneProgressCreateRequest=s={})),function(e){e.method="window/workDoneProgress/cancel",e.messageDirection=r.MessageDirection.clientToServer,e.type=new r.ProtocolNotificationType(e.method)}(a||(t.WorkDoneProgressCancelNotification=a={}))},5206:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRangeRequest=void 0;const i=n(6140);var r;!function(e){e.method="textDocument/selectionRange",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.SelectionRangeRequest=r={}))},9434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticTokensRefreshRequest=t.SemanticTokensRangeRequest=t.SemanticTokensDeltaRequest=t.SemanticTokensRequest=t.SemanticTokensRegistrationType=t.TokenFormat=void 0;const i=n(6140);var r,o,s,a,c,u;!function(e){e.Relative="relative"}(r||(t.TokenFormat=r={})),function(e){e.method="textDocument/semanticTokens",e.type=new i.RegistrationType(e.method)}(o||(t.SemanticTokensRegistrationType=o={})),function(e){e.method="textDocument/semanticTokens/full",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=o.method}(s||(t.SemanticTokensRequest=s={})),function(e){e.method="textDocument/semanticTokens/full/delta",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=o.method}(a||(t.SemanticTokensDeltaRequest=a={})),function(e){e.method="textDocument/semanticTokens/range",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method),e.registrationMethod=o.method}(c||(t.SemanticTokensRangeRequest=c={})),function(e){e.method="workspace/semanticTokens/refresh",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(u||(t.SemanticTokensRefreshRequest=u={}))},5726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShowDocumentRequest=void 0;const i=n(6140);var r;!function(e){e.method="window/showDocument",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType(e.method)}(r||(t.ShowDocumentRequest=r={}))},1589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeDefinitionRequest=void 0;const i=n(6140);var r;!function(e){e.method="textDocument/typeDefinition",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.TypeDefinitionRequest=r={}))},3693:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHierarchySubtypesRequest=t.TypeHierarchySupertypesRequest=t.TypeHierarchyPrepareRequest=void 0;const i=n(6140);var r,o,s;!function(e){e.method="textDocument/prepareTypeHierarchy",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(r||(t.TypeHierarchyPrepareRequest=r={})),function(e){e.method="typeHierarchy/supertypes",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(o||(t.TypeHierarchySupertypesRequest=o={})),function(e){e.method="typeHierarchy/subtypes",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolRequestType(e.method)}(s||(t.TypeHierarchySubtypesRequest=s={}))},8744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DidChangeWorkspaceFoldersNotification=t.WorkspaceFoldersRequest=void 0;const i=n(6140);var r,o;!function(e){e.method="workspace/workspaceFolders",e.messageDirection=i.MessageDirection.serverToClient,e.type=new i.ProtocolRequestType0(e.method)}(r||(t.WorkspaceFoldersRequest=r={})),function(e){e.method="workspace/didChangeWorkspaceFolders",e.messageDirection=i.MessageDirection.clientToServer,e.type=new i.ProtocolNotificationType(e.method)}(o||(t.DidChangeWorkspaceFoldersNotification=o={}))},9533:(e,t)=>{"use strict";function n(e){return"string"==typeof e||e instanceof String}function i(e){return Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.objectLiteral=t.typedArray=t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0,t.boolean=function(e){return!0===e||!1===e},t.string=n,t.number=function(e){return"number"==typeof e||e instanceof Number},t.error=function(e){return e instanceof Error},t.func=function(e){return"function"==typeof e},t.array=i,t.stringArray=function(e){return i(e)&&e.every((e=>n(e)))},t.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},t.objectLiteral=function(e){return null!==e&&"object"==typeof e}},9496:e=>{"use strict";e.exports=require("vscode")},2657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertValidPattern=void 0,t.assertValidPattern=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")}},5193:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AST=void 0;const i=n(8283),r=n(3480),o=new Set(["!","?","+","*","@"]),s=e=>o.has(e),a="(?!\\.)",c=new Set(["[","."]),u=new Set(["..","."]),l=new Set("().*{}+?[]^$\\!"),d="[^/]*?",f="[^/]+?";class p{type;#e;#t;#n=!1;#i=[];#r;#o;#s;#a=!1;#c;#u;#l=!1;constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#r=t,this.#e=this.#r?this.#r.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#s=this.#e===this?[]:this.#e.#s,"!"!==e||this.#e.#a||this.#s.push(this),this.#o=this.#r?this.#r.#i.length:0}get hasMagic(){if(void 0!==this.#t)return this.#t;for(const e of this.#i)if("string"!=typeof e&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return void 0!==this.#u?this.#u:this.type?this.#u=this.type+"("+this.#i.map((e=>String(e))).join("|")+")":this.#u=this.#i.map((e=>String(e))).join("")}#d(){if(this!==this.#e)throw new Error("should only call on root");if(this.#a)return this;let e;for(this.toString(),this.#a=!0;e=this.#s.pop();){if("!"!==e.type)continue;let t=e,n=t.#r;for(;n;){for(let i=t.#o+1;!n.type&&i<n.#i.length;i++)for(const t of e.#i){if("string"==typeof t)throw new Error("string part in extglob AST??");t.copyIn(n.#i[i])}t=n,n=t.#r}}return this}push(...e){for(const t of e)if(""!==t){if("string"!=typeof t&&!(t instanceof p&&t.#r===this))throw new Error("invalid part: "+t);this.#i.push(t)}}toJSON(){const e=null===this.type?this.#i.slice().map((e=>"string"==typeof e?e:e.toJSON())):[this.type,...this.#i.map((e=>e.toJSON()))];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#a&&"!"===this.#r?.type)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#r?.isStart())return!1;if(0===this.#o)return!0;const e=this.#r;for(let t=0;t<this.#o;t++){const n=e.#i[t];if(!(n instanceof p&&"!"===n.type))return!1}return!0}isEnd(){if(this.#e===this)return!0;if("!"===this.#r?.type)return!0;if(!this.#r?.isEnd())return!1;if(!this.type)return this.#r?.isEnd();const e=this.#r?this.#r.#i.length:0;return this.#o===e-1}copyIn(e){"string"==typeof e?this.push(e):this.push(e.clone(this))}clone(e){const t=new p(this.type,e);for(const e of this.#i)t.copyIn(e);return t}static#f(e,t,n,i){let r=!1,o=!1,a=-1,c=!1;if(null===t.type){let u=n,l="";for(;u<e.length;){const n=e.charAt(u++);if(r||"\\"===n)r=!r,l+=n;else if(o)u===a+1?"^"!==n&&"!"!==n||(c=!0):"]"!==n||u===a+2&&c||(o=!1),l+=n;else if("["!==n)if(i.noext||!s(n)||"("!==e.charAt(u))l+=n;else{t.push(l),l="";const r=new p(n,t);u=p.#f(e,r,u,i),t.push(r)}else o=!0,a=u,c=!1,l+=n}return t.push(l),u}let u=n+1,l=new p(null,t);const d=[];let f="";for(;u<e.length;){const n=e.charAt(u++);if(r||"\\"===n)r=!r,f+=n;else if(o)u===a+1?"^"!==n&&"!"!==n||(c=!0):"]"!==n||u===a+2&&c||(o=!1),f+=n;else if("["!==n)if(s(n)&&"("===e.charAt(u)){l.push(f),f="";const t=new p(n,l);l.push(t),u=p.#f(e,t,u,i)}else if("|"!==n){if(")"===n)return""===f&&0===t.#i.length&&(t.#l=!0),l.push(f),f="",t.push(...d,l),u;f+=n}else l.push(f),f="",d.push(l),l=new p(null,t);else o=!0,a=u,c=!1,f+=n}return t.type=null,t.#t=void 0,t.#i=[e.substring(n-1)],u}static fromGlob(e,t={}){const n=new p(null,void 0,t);return p.#f(e,n,0,t),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();const e=this.toString(),[t,n,i,r]=this.toRegExpSource();if(!(i||this.#t||this.#c.nocase&&!this.#c.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;const o=(this.#c.nocase?"i":"")+(r?"u":"");return Object.assign(new RegExp(`^${t}$`,o),{_src:t,_glob:e})}toRegExpSource(e){const t=e??!!this.#c.dot;if(this.#e===this&&this.#d(),!this.type){const n=this.isStart()&&this.isEnd(),i=this.#i.map((t=>{const[i,r,o,s]="string"==typeof t?p.#p(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||o,this.#n=this.#n||s,i})).join("");let o="";if(this.isStart()&&"string"==typeof this.#i[0]&&(1!==this.#i.length||!u.has(this.#i[0]))){const n=c,r=t&&n.has(i.charAt(0))||i.startsWith("\\.")&&n.has(i.charAt(2))||i.startsWith("\\.\\.")&&n.has(i.charAt(4)),s=!t&&!e&&n.has(i.charAt(0));o=r?"(?!(?:^|/)\\.\\.?(?:$|/))":s?a:""}let s="";return this.isEnd()&&this.#e.#a&&"!"===this.#r?.type&&(s="(?:$|\\/)"),[o+i+s,(0,r.unescape)(i),this.#t=!!this.#t,this.#n]}const n="*"===this.type||"+"===this.type,i="!"===this.type?"(?:(?!(?:":"(?:";let o=this.#g(t);if(this.isStart()&&this.isEnd()&&!o&&"!"!==this.type){const e=this.toString();return this.#i=[e],this.type=null,this.#t=void 0,[e,(0,r.unescape)(this.toString()),!1,!1]}let s=!n||e||t?"":this.#g(!0);s===o&&(s=""),s&&(o=`(?:${o})(?:${s})*?`);let l="";return l="!"===this.type&&this.#l?(this.isStart()&&!t?a:"")+f:i+o+("!"===this.type?"))"+(!this.isStart()||t||e?"":a)+d+")":"@"===this.type?")":"?"===this.type?")?":"+"===this.type&&s?")":"*"===this.type&&s?")?":`)${this.type}`),[l,(0,r.unescape)(o),this.#t=!!this.#t,this.#n]}#g(e){return this.#i.map((t=>{if("string"==typeof t)throw new Error("string type in extglob ast??");const[n,i,r,o]=t.toRegExpSource(e);return this.#n=this.#n||o,n})).filter((e=>!(this.isStart()&&this.isEnd()&&!e))).join("|")}static#p(e,t,n=!1){let o=!1,s="",a=!1;for(let r=0;r<e.length;r++){const c=e.charAt(r);if(o)o=!1,s+=(l.has(c)?"\\":"")+c;else if("\\"!==c){if("["===c){const[n,o,c,u]=(0,i.parseClass)(e,r);if(c){s+=n,a=a||o,r+=c-1,t=t||u;continue}}"*"!==c?"?"!==c?s+=c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(s+="[^/]",t=!0):(s+=n&&"*"===e?f:d,t=!0)}else r===e.length-1?s+="\\\\":o=!0}return[s,(0,r.unescape)(e),!!t,a]}}t.AST=p},8283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseClass=void 0;const n={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},i=e=>e.replace(/[[\]\\-]/g,"\\$&"),r=e=>e.join("");t.parseClass=(e,t)=>{const o=t;if("["!==e.charAt(o))throw new Error("not in a brace expression");const s=[],a=[];let c=o+1,u=!1,l=!1,d=!1,f=!1,p=o,g="";e:for(;c<e.length;){const t=e.charAt(c);if("!"!==t&&"^"!==t||c!==o+1){if("]"===t&&u&&!d){p=c+1;break}if(u=!0,"\\"!==t||d){if("["===t&&!d)for(const[t,[i,r,u]]of Object.entries(n))if(e.startsWith(t,c)){if(g)return["$.",!1,e.length-o,!0];c+=t.length,u?a.push(i):s.push(i),l=l||r;continue e}d=!1,g?(t>g?s.push(i(g)+"-"+i(t)):t===g&&s.push(i(t)),g="",c++):e.startsWith("-]",c+1)?(s.push(i(t+"-")),c+=2):e.startsWith("-",c+1)?(g=t,c+=2):(s.push(i(t)),c++)}else d=!0,c++}else f=!0,c++}if(p<c)return["",!1,0,!1];if(!s.length&&!a.length)return["$.",!1,e.length-o,!0];if(0===a.length&&1===s.length&&/^\\?.$/.test(s[0])&&!f){return[(h=2===s[0].length?s[0].slice(-1):s[0],h.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,p-o,!1]}var h;const m="["+(f?"^":"")+r(s)+"]",v="["+(f?"":"^")+r(a)+"]";return[s.length&&a.length?"("+m+"|"+v+")":s.length?m:v,l,p-o,!0]}},8059:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escape=void 0,t.escape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&")},3634:function(e,t,n){"use strict";var i=n(4155),r=n(5108),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=t.escape=t.AST=t.Minimatch=t.match=t.makeRe=t.braceExpand=t.defaults=t.filter=t.GLOBSTAR=t.sep=t.minimatch=void 0;const s=o(n(7256)),a=n(2657),c=n(5193),u=n(8059),l=n(3480);t.minimatch=(e,t,n={})=>((0,a.assertValidPattern)(t),!(!n.nocomment&&"#"===t.charAt(0))&&new A(t,n).match(e));const d=/^\*+([^+@!?\*\[\(]*)$/,f=e=>t=>!t.startsWith(".")&&t.endsWith(e),p=e=>t=>t.endsWith(e),g=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),h=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),m=/^\*+\.\*+$/,v=e=>!e.startsWith(".")&&e.includes("."),y=e=>"."!==e&&".."!==e&&e.includes("."),C=/^\.\*+$/,S=e=>"."!==e&&".."!==e&&e.startsWith("."),_=/^\*+$/,T=e=>0!==e.length&&!e.startsWith("."),b=e=>0!==e.length&&"."!==e&&".."!==e,R=/^\?+([^+@!?\*\[\(]*)?$/,D=([e,t=""])=>{const n=k([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},w=([e,t=""])=>{const n=x([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},E=([e,t=""])=>{const n=x([e]);return t?e=>n(e)&&e.endsWith(t):n},P=([e,t=""])=>{const n=k([e]);return t?e=>n(e)&&e.endsWith(t):n},k=([e])=>{const t=e.length;return e=>e.length===t&&!e.startsWith(".")},x=([e])=>{const t=e.length;return e=>e.length===t&&"."!==e&&".."!==e},I="object"==typeof i&&i?"object"==typeof i.env&&i.env&&i.env.__MINIMATCH_TESTING_PLATFORM__||i.platform:"posix";t.sep="win32"===I?"\\":"/",t.minimatch.sep=t.sep,t.GLOBSTAR=Symbol("globstar **"),t.minimatch.GLOBSTAR=t.GLOBSTAR,t.filter=(e,n={})=>i=>(0,t.minimatch)(i,e,n),t.minimatch.filter=t.filter;const N=(e,t={})=>Object.assign({},e,t);t.defaults=e=>{if(!e||"object"!=typeof e||!Object.keys(e).length)return t.minimatch;const n=t.minimatch;return Object.assign(((t,i,r={})=>n(t,i,N(e,r))),{Minimatch:class extends n.Minimatch{constructor(t,n={}){super(t,N(e,n))}static defaults(t){return n.defaults(N(e,t)).Minimatch}},AST:class extends n.AST{constructor(t,n,i={}){super(t,n,N(e,i))}static fromGlob(t,i={}){return n.AST.fromGlob(t,N(e,i))}},unescape:(t,i={})=>n.unescape(t,N(e,i)),escape:(t,i={})=>n.escape(t,N(e,i)),filter:(t,i={})=>n.filter(t,N(e,i)),defaults:t=>n.defaults(N(e,t)),makeRe:(t,i={})=>n.makeRe(t,N(e,i)),braceExpand:(t,i={})=>n.braceExpand(t,N(e,i)),match:(t,i,r={})=>n.match(t,i,N(e,r)),sep:n.sep,GLOBSTAR:t.GLOBSTAR})},t.minimatch.defaults=t.defaults,t.braceExpand=(e,t={})=>((0,a.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,s.default)(e)),t.minimatch.braceExpand=t.braceExpand,t.makeRe=(e,t={})=>new A(e,t).makeRe(),t.minimatch.makeRe=t.makeRe,t.match=(e,t,n={})=>{const i=new A(t,n);return e=e.filter((e=>i.match(e))),i.options.nonull&&!e.length&&e.push(t),e},t.minimatch.match=t.match;const O=/[?*]|[+@!]\(.*?\)|\[|\]/;class A{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){(0,a.assertValidPattern)(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||I,this.isWindows="win32"===this.platform,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=void 0!==t.windowsNoMagicRoot?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const e of this.set)for(const t of e)if("string"!=typeof t)return!0;return!1}debug(...e){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>r.error(...e)),this.debug(this.pattern,this.globSet);const n=this.globSet.map((e=>this.slashSplit(e)));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map(((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){const t=!(""!==e[0]||""!==e[1]||"?"!==e[2]&&O.test(e[2])||O.test(e[3])),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map((e=>this.parse(e)))];if(n)return[e[0],...e.slice(1).map((e=>this.parse(e)))]}return e.map((e=>this.parse(e)))}));if(this.debug(this.pattern,i),this.set=i.filter((e=>-1===e.indexOf(!1))),this.isWindows)for(let e=0;e<this.set.length;e++){const t=this.set[e];""===t[0]&&""===t[1]&&"?"===this.globParts[e][2]&&"string"==typeof t[3]&&/^[a-z]:$/i.test(t[3])&&(t[2]="?")}this.debug(this.pattern,this.set)}preprocess(e){if(this.options.noglobstar)for(let t=0;t<e.length;t++)for(let n=0;n<e[t].length;n++)"**"===e[t][n]&&(e[t][n]="*");const{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map((e=>{let t=-1;for(;-1!==(t=e.indexOf("**",t+1));){let n=t;for(;"**"===e[n+1];)n++;n!==t&&e.splice(t,n-t)}return e}))}levelOneOptimize(e){return e.map((e=>0===(e=e.reduce(((e,t)=>{const n=e[e.length-1];return"**"===t&&"**"===n?e:".."===t&&n&&".."!==n&&"."!==n&&"**"!==n?(e.pop(),e):(e.push(t),e)}),[])).length?[""]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;n<e.length-1;n++){const i=e[n];1===n&&""===i&&""===e[0]||"."!==i&&""!==i||(t=!0,e.splice(n,1),n--)}"."!==e[0]||2!==e.length||"."!==e[1]&&""!==e[1]||(t=!0,e.pop())}let n=0;for(;-1!==(n=e.indexOf("..",n+1));){const i=e[n-1];i&&"."!==i&&".."!==i&&"**"!==i&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return 0===e.length?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let n of e){let i=-1;for(;-1!==(i=n.indexOf("**",i+1));){let r=i;for(;"**"===n[r+1];)r++;r>i&&n.splice(i+1,r-i);let o=n[i+1];const s=n[i+2],a=n[i+3];if(".."!==o)continue;if(!s||"."===s||".."===s||!a||"."===a||".."===a)continue;t=!0,n.splice(i,1);const c=n.slice(0);c[i]="**",e.push(c),i--}if(!this.preserveMultipleSlashes){for(let e=1;e<n.length-1;e++){const i=n[e];1===e&&""===i&&""===n[0]||"."!==i&&""!==i||(t=!0,n.splice(e,1),e--)}"."!==n[0]||2!==n.length||"."!==n[1]&&""!==n[1]||(t=!0,n.pop())}let r=0;for(;-1!==(r=n.indexOf("..",r+1));){const e=n[r-1];if(e&&"."!==e&&".."!==e&&"**"!==e){t=!0;const e=1===r&&"**"===n[r+1]?["."]:[];n.splice(r-1,2,...e),0===n.length&&n.push(""),r-=2}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let n=t+1;n<e.length;n++){const i=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);i&&(e[t]=i,e[n]=[])}return e.filter((e=>e.length))}partsMatch(e,t,n=!1){let i=0,r=0,o=[],s="";for(;i<e.length&&r<t.length;)if(e[i]===t[r])o.push("b"===s?t[r]:e[i]),i++,r++;else if(n&&"**"===e[i]&&t[r]===e[i+1])o.push(e[i]),i++;else if(n&&"**"===t[r]&&e[i]===t[r+1])o.push(t[r]),r++;else if("*"!==e[i]||!t[r]||!this.options.dot&&t[r].startsWith(".")||"**"===t[r]){if("*"!==t[r]||!e[i]||!this.options.dot&&e[i].startsWith(".")||"**"===e[i])return!1;if("a"===s)return!1;s="b",o.push(t[r]),i++,r++}else{if("b"===s)return!1;s="a",o.push(e[i]),i++,r++}return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;const e=this.pattern;let t=!1,n=0;for(let i=0;i<e.length&&"!"===e.charAt(i);i++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}matchOne(e,n,i=!1){const r=this.options;if(this.isWindows){const t="string"==typeof e[0]&&/^[a-z]:$/i.test(e[0]),i=!t&&""===e[0]&&""===e[1]&&"?"===e[2]&&/^[a-z]:$/i.test(e[3]),r="string"==typeof n[0]&&/^[a-z]:$/i.test(n[0]),o=i?3:t?0:void 0,s=!r&&""===n[0]&&""===n[1]&&"?"===n[2]&&"string"==typeof n[3]&&/^[a-z]:$/i.test(n[3])?3:r?0:void 0;if("number"==typeof o&&"number"==typeof s){const[t,i]=[e[o],n[s]];t.toLowerCase()===i.toLowerCase()&&(n[s]=t,s>o?n=n.slice(s):o>s&&(e=e.slice(o)))}}const{optimizationLevel:o=1}=this.options;o>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:n}),this.debug("matchOne",e.length,n.length);for(var s=0,a=0,c=e.length,u=n.length;s<c&&a<u;s++,a++){this.debug("matchOne loop");var l=n[a],d=e[s];if(this.debug(n,l,d),!1===l)return!1;if(l===t.GLOBSTAR){this.debug("GLOBSTAR",[n,l,d]);var f=s,p=a+1;if(p===u){for(this.debug("** at the end");s<c;s++)if("."===e[s]||".."===e[s]||!r.dot&&"."===e[s].charAt(0))return!1;return!0}for(;f<c;){var g=e[f];if(this.debug("\nglobstar while",e,f,n,p,g),this.matchOne(e.slice(f),n.slice(p),i))return this.debug("globstar found match!",f,c,g),!0;if("."===g||".."===g||!r.dot&&"."===g.charAt(0)){this.debug("dot detected!",e,f,n,p);break}this.debug("globstar swallow a segment, and continue"),f++}return!(!i||(this.debug("\n>>> no match, partial?",e,f,n,p),f!==c))}let o;if("string"==typeof l?(o=d===l,this.debug("string match",l,d,o)):(o=l.test(d),this.debug("pattern match",l,d,o)),!o)return!1}if(s===c&&a===u)return!0;if(s===c)return i;if(a===u)return s===c-1&&""===e[s];throw new Error("wtf?")}braceExpand(){return(0,t.braceExpand)(this.pattern,this.options)}parse(e){(0,a.assertValidPattern)(e);const n=this.options;if("**"===e)return t.GLOBSTAR;if(""===e)return"";let i,r=null;(i=e.match(_))?r=n.dot?b:T:(i=e.match(d))?r=(n.nocase?n.dot?h:g:n.dot?p:f)(i[1]):(i=e.match(R))?r=(n.nocase?n.dot?w:D:n.dot?E:P)(i):(i=e.match(m))?r=n.dot?y:v:(i=e.match(C))&&(r=S);const o=c.AST.fromGlob(e,this.options).toMMPattern();return r?Object.assign(o,{test:r}):o}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const n=this.options,i=n.noglobstar?"[^/]*?":n.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",r=new Set(n.nocase?["i"]:[]);let o=e.map((e=>{const n=e.map((e=>{if(e instanceof RegExp)for(const t of e.flags.split(""))r.add(t);return"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e===t.GLOBSTAR?t.GLOBSTAR:e._src}));return n.forEach(((e,r)=>{const o=n[r+1],s=n[r-1];e===t.GLOBSTAR&&s!==t.GLOBSTAR&&(void 0===s?void 0!==o&&o!==t.GLOBSTAR?n[r+1]="(?:\\/|"+i+"\\/)?"+o:n[r]=i:void 0===o?n[r-1]=s+"(?:\\/|"+i+")?":o!==t.GLOBSTAR&&(n[r-1]=s+"(?:\\/|\\/"+i+"\\/)"+o,n[r+1]=t.GLOBSTAR))})),n.filter((e=>e!==t.GLOBSTAR)).join("/")})).join("|");const[s,a]=e.length>1?["(?:",")"]:["",""];o="^"+s+o+a+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...r].join(""))}catch(e){this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;const n=this.options;this.isWindows&&(e=e.split("\\").join("/"));const i=this.slashSplit(e);this.debug(this.pattern,"split",i);const r=this.set;this.debug(this.pattern,"set",r);let o=i[i.length-1];if(!o)for(let e=i.length-2;!o&&e>=0;e--)o=i[e];for(let e=0;e<r.length;e++){const s=r[e];let a=i;if(n.matchBase&&1===s.length&&(a=[o]),this.matchOne(a,s,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}static defaults(e){return t.minimatch.defaults(e).Minimatch}}t.Minimatch=A;var F=n(5193);Object.defineProperty(t,"AST",{enumerable:!0,get:function(){return F.AST}});var M=n(8059);Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return M.escape}});var L=n(3480);Object.defineProperty(t,"unescape",{enumerable:!0,get:function(){return L.unescape}}),t.minimatch.AST=c.AST,t.minimatch.Minimatch=A,t.minimatch.escape=u.escape,t.minimatch.unescape=l.unescape},3480:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unescape=void 0,t.unescape=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},2118:(e,t,n)=>{"use strict";var i,r,o,s,a,c,u,l,d,f,p,g,h,m,v,y,C,S,_,T,b,R,D,w,E,P,k,x,I,N,O,A,F,M,L,q,j,U,H,K,V,W,z,B,$,G,J,Y,X,Z,Q,ee,te,ne,ie,re,oe,se,ae,ce,ue,le,de,fe,pe,ge,he,me,ve,ye,Ce,Se,_e,Te,be,Re,De,we,Ee,Pe;n.r(t),n.d(t,{AnnotatedTextEdit:()=>D,ChangeAnnotation:()=>b,ChangeAnnotationIdentifier:()=>R,CodeAction:()=>ae,CodeActionContext:()=>se,CodeActionKind:()=>re,CodeActionTriggerKind:()=>oe,CodeDescription:()=>C,CodeLens:()=>ce,Color:()=>d,ColorInformation:()=>f,ColorPresentation:()=>p,Command:()=>_,CompletionItem:()=>z,CompletionItemKind:()=>j,CompletionItemLabelDetails:()=>W,CompletionItemTag:()=>H,CompletionList:()=>B,CreateFile:()=>E,DeleteFile:()=>k,Diagnostic:()=>S,DiagnosticRelatedInformation:()=>m,DiagnosticSeverity:()=>v,DiagnosticTag:()=>y,DocumentHighlight:()=>Z,DocumentHighlightKind:()=>X,DocumentLink:()=>le,DocumentSymbol:()=>ie,DocumentUri:()=>i,EOL:()=>Ne,FoldingRange:()=>h,FoldingRangeKind:()=>g,FormattingOptions:()=>ue,Hover:()=>G,InlayHint:()=>_e,InlayHintKind:()=>Ce,InlayHintLabelPart:()=>Se,InlineCompletionContext:()=>Ee,InlineCompletionItem:()=>be,InlineCompletionList:()=>Re,InlineCompletionTriggerKind:()=>De,InlineValueContext:()=>ye,InlineValueEvaluatableExpression:()=>ve,InlineValueText:()=>he,InlineValueVariableLookup:()=>me,InsertReplaceEdit:()=>K,InsertTextFormat:()=>U,InsertTextMode:()=>V,LanguageKind:()=>F,Location:()=>u,LocationLink:()=>l,MarkedString:()=>$,MarkupContent:()=>q,MarkupKind:()=>L,OptionalVersionedTextDocumentIdentifier:()=>A,ParameterInformation:()=>J,Position:()=>a,Range:()=>c,RenameFile:()=>P,SelectedCompletionInfo:()=>we,SelectionRange:()=>de,SemanticTokenModifiers:()=>pe,SemanticTokenTypes:()=>fe,SemanticTokens:()=>ge,SignatureInformation:()=>Y,SnippetTextEdit:()=>I,StringValue:()=>Te,SymbolInformation:()=>te,SymbolKind:()=>Q,SymbolTag:()=>ee,TextDocument:()=>Oe,TextDocumentEdit:()=>w,TextDocumentIdentifier:()=>N,TextDocumentItem:()=>M,TextEdit:()=>T,URI:()=>r,VersionedTextDocumentIdentifier:()=>O,WorkspaceChange:()=>Ie,WorkspaceEdit:()=>x,WorkspaceFolder:()=>Pe,WorkspaceSymbol:()=>ne,integer:()=>o,uinteger:()=>s}),function(e){e.is=function(e){return"string"==typeof e}}(i||(i={})),function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(o||(o={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&Ae.uinteger(t.line)&&Ae.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,i){if(Ae.uinteger(e)&&Ae.uinteger(t)&&Ae.uinteger(n)&&Ae.uinteger(i))return{start:a.create(e,t),end:a.create(n,i)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${i}]`)},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(c||(c={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&c.is(t.range)&&(Ae.string(t.uri)||Ae.undefined(t.uri))}}(u||(u={})),function(e){e.create=function(e,t,n,i){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:i}},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&c.is(t.targetRange)&&Ae.string(t.targetUri)&&c.is(t.targetSelectionRange)&&(c.is(t.originSelectionRange)||Ae.undefined(t.originSelectionRange))}}(l||(l={})),function(e){e.create=function(e,t,n,i){return{red:e,green:t,blue:n,alpha:i}},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&Ae.numberRange(t.red,0,1)&&Ae.numberRange(t.green,0,1)&&Ae.numberRange(t.blue,0,1)&&Ae.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&c.is(t.range)&&d.is(t.color)}}(f||(f={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&Ae.string(t.label)&&(Ae.undefined(t.textEdit)||T.is(t))&&(Ae.undefined(t.additionalTextEdits)||Ae.typedArray(t.additionalTextEdits,T.is))}}(p||(p={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(g||(g={})),function(e){e.create=function(e,t,n,i,r,o){const s={startLine:e,endLine:t};return Ae.defined(n)&&(s.startCharacter=n),Ae.defined(i)&&(s.endCharacter=i),Ae.defined(r)&&(s.kind=r),Ae.defined(o)&&(s.collapsedText=o),s},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&Ae.uinteger(t.startLine)&&Ae.uinteger(t.startLine)&&(Ae.undefined(t.startCharacter)||Ae.uinteger(t.startCharacter))&&(Ae.undefined(t.endCharacter)||Ae.uinteger(t.endCharacter))&&(Ae.undefined(t.kind)||Ae.string(t.kind))}}(h||(h={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){const t=e;return Ae.defined(t)&&u.is(t.location)&&Ae.string(t.message)}}(m||(m={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(v||(v={})),function(e){e.Unnecessary=1,e.Deprecated=2}(y||(y={})),function(e){e.is=function(e){const t=e;return Ae.objectLiteral(t)&&Ae.string(t.href)}}(C||(C={})),function(e){e.create=function(e,t,n,i,r,o){const s={range:e,message:t};return Ae.defined(n)&&(s.severity=n),Ae.defined(i)&&(s.code=i),Ae.defined(r)&&(s.source=r),Ae.defined(o)&&(s.relatedInformation=o),s},e.is=function(e){var t;const n=e;return Ae.defined(n)&&c.is(n.range)&&Ae.string(n.message)&&(Ae.number(n.severity)||Ae.undefined(n.severity))&&(Ae.integer(n.code)||Ae.string(n.code)||Ae.undefined(n.code))&&(Ae.undefined(n.codeDescription)||Ae.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Ae.string(n.source)||Ae.undefined(n.source))&&(Ae.undefined(n.relatedInformation)||Ae.typedArray(n.relatedInformation,m.is))}}(S||(S={})),function(e){e.create=function(e,t,...n){const i={title:e,command:t};return Ae.defined(n)&&n.length>0&&(i.arguments=n),i},e.is=function(e){const t=e;return Ae.defined(t)&&Ae.string(t.title)&&(void 0===t.tooltip||Ae.string(t.tooltip))&&Ae.string(t.command)}}(_||(_={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&Ae.string(t.newText)&&c.is(t.range)}}(T||(T={})),function(e){e.create=function(e,t,n){const i={label:e};return void 0!==t&&(i.needsConfirmation=t),void 0!==n&&(i.description=n),i},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&Ae.string(t.label)&&(Ae.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Ae.string(t.description)||void 0===t.description)}}(b||(b={})),function(e){e.is=function(e){const t=e;return Ae.string(t)}}(R||(R={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return T.is(t)&&(b.is(t.annotationId)||R.is(t.annotationId))}}(D||(D={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){const t=e;return Ae.defined(t)&&A.is(t.textDocument)&&Array.isArray(t.edits)}}(w||(w={})),function(e){e.create=function(e,t,n){const i={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){const t=e;return t&&"create"===t.kind&&Ae.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Ae.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ae.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||R.is(t.annotationId))}}(E||(E={})),function(e){e.create=function(e,t,n,i){const r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==i&&(r.annotationId=i),r},e.is=function(e){const t=e;return t&&"rename"===t.kind&&Ae.string(t.oldUri)&&Ae.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Ae.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Ae.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||R.is(t.annotationId))}}(P||(P={})),function(e){e.create=function(e,t,n){const i={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(i.options=t),void 0!==n&&(i.annotationId=n),i},e.is=function(e){const t=e;return t&&"delete"===t.kind&&Ae.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Ae.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Ae.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||R.is(t.annotationId))}}(k||(k={})),function(e){e.is=function(e){const t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((e=>Ae.string(e.kind)?E.is(e)||P.is(e)||k.is(e):w.is(e))))}}(x||(x={}));class ke{constructor(e,t){this.edits=e,this.changeAnnotations=t}insert(e,t,n){let i,r;if(void 0===n?i=T.insert(e,t):R.is(n)?(r=n,i=D.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=D.insert(e,t,r)),this.edits.push(i),void 0!==r)return r}replace(e,t,n){let i,r;if(void 0===n?i=T.replace(e,t):R.is(n)?(r=n,i=D.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),i=D.replace(e,t,r)),this.edits.push(i),void 0!==r)return r}delete(e,t){let n,i;if(void 0===t?n=T.del(e):R.is(t)?(i=t,n=D.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),n=D.del(e,i)),this.edits.push(n),void 0!==i)return i}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")}}!function(e){e.is=function(e){const t=e;return Ae.objectLiteral(t)&&c.is(t.range)&&Te.isSnippet(t.snippet)&&(void 0===t.annotationId||b.is(t.annotationId)||R.is(t.annotationId))}}(I||(I={}));class xe{constructor(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,t){let n;if(R.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error(`Id ${n} is already in use.`);if(void 0===t)throw new Error(`No annotation provided for id ${n}`);return this._annotations[n]=t,this._size++,n}nextId(){return this._counter++,this._counter.toString()}}class Ie{constructor(e){this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new xe(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((e=>{if(w.is(e)){const t=new ke(e.edits,this._changeAnnotations);this._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((t=>{const n=new ke(e.changes[t]);this._textEditChanges[t]=n}))):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(e){if(A.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");const t={uri:e.uri,version:e.version};let n=this._textEditChanges[t.uri];if(!n){const e=[],i={textDocument:t,edits:e};this._workspaceEdit.documentChanges.push(i),n=new ke(e,this._changeAnnotations),this._textEditChanges[t.uri]=n}return n}{if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");let t=this._textEditChanges[e];if(!t){const n=[];this._workspaceEdit.changes[e]=n,t=new ke(n),this._textEditChanges[e]=t}return t}}initDocumentChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new xe,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))}createFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let i,r,o;if(b.is(t)||R.is(t)?i=t:n=t,void 0===i?r=E.create(e,n):(o=R.is(i)?i:this._changeAnnotations.manage(i),r=E.create(e,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o}renameFile(e,t,n,i){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let r,o,s;if(b.is(n)||R.is(n)?r=n:i=n,void 0===r?o=P.create(e,t,i):(s=R.is(r)?r:this._changeAnnotations.manage(r),o=P.create(e,t,i,s)),this._workspaceEdit.documentChanges.push(o),void 0!==s)return s}deleteFile(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");let i,r,o;if(b.is(t)||R.is(t)?i=t:n=t,void 0===i?r=k.create(e,n):(o=R.is(i)?i:this._changeAnnotations.manage(i),r=k.create(e,n,o)),this._workspaceEdit.documentChanges.push(r),void 0!==o)return o}}!function(e){e.create=function(e){return{uri:e}},e.is=function(e){const t=e;return Ae.defined(t)&&Ae.string(t.uri)}}(N||(N={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Ae.defined(t)&&Ae.string(t.uri)&&Ae.integer(t.version)}}(O||(O={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Ae.defined(t)&&Ae.string(t.uri)&&(null===t.version||Ae.integer(t.version))}}(A||(A={})),function(e){e.ABAP="abap",e.WindowsBat="bat",e.BibTeX="bibtex",e.Clojure="clojure",e.Coffeescript="coffeescript",e.C="c",e.CPP="cpp",e.CSharp="csharp",e.CSS="css",e.D="d",e.Delphi="pascal",e.Diff="diff",e.Dart="dart",e.Dockerfile="dockerfile",e.Elixir="elixir",e.Erlang="erlang",e.FSharp="fsharp",e.GitCommit="git-commit",e.GitRebase="rebase",e.Go="go",e.Groovy="groovy",e.Handlebars="handlebars",e.Haskell="haskell",e.HTML="html",e.Ini="ini",e.Java="java",e.JavaScript="javascript",e.JavaScriptReact="javascriptreact",e.JSON="json",e.LaTeX="latex",e.Less="less",e.Lua="lua",e.Makefile="makefile",e.Markdown="markdown",e.ObjectiveC="objective-c",e.ObjectiveCPP="objective-cpp",e.Pascal="pascal",e.Perl="perl",e.Perl6="perl6",e.PHP="php",e.Powershell="powershell",e.Pug="jade",e.Python="python",e.R="r",e.Razor="razor",e.Ruby="ruby",e.Rust="rust",e.SCSS="scss",e.SASS="sass",e.Scala="scala",e.ShaderLab="shaderlab",e.ShellScript="shellscript",e.SQL="sql",e.Swift="swift",e.TypeScript="typescript",e.TypeScriptReact="typescriptreact",e.TeX="tex",e.VisualBasic="vb",e.XML="xml",e.XSL="xsl",e.YAML="yaml"}(F||(F={})),function(e){e.create=function(e,t,n,i){return{uri:e,languageId:t,version:n,text:i}},e.is=function(e){const t=e;return Ae.defined(t)&&Ae.string(t.uri)&&Ae.string(t.languageId)&&Ae.integer(t.version)&&Ae.string(t.text)}}(M||(M={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(L||(L={})),function(e){e.is=function(e){const t=e;return Ae.objectLiteral(e)&&L.is(t.kind)&&Ae.string(t.value)}}(q||(q={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(j||(j={})),function(e){e.PlainText=1,e.Snippet=2}(U||(U={})),function(e){e.Deprecated=1}(H||(H={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Ae.string(t.newText)&&c.is(t.insert)&&c.is(t.replace)}}(K||(K={})),function(e){e.asIs=1,e.adjustIndentation=2}(V||(V={})),function(e){e.is=function(e){const t=e;return t&&(Ae.string(t.detail)||void 0===t.detail)&&(Ae.string(t.description)||void 0===t.description)}}(W||(W={})),function(e){e.create=function(e){return{label:e}}}(z||(z={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(B||(B={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Ae.string(t)||Ae.objectLiteral(t)&&Ae.string(t.language)&&Ae.string(t.value)}}($||($={})),function(e){e.is=function(e){const t=e;return!!t&&Ae.objectLiteral(t)&&(q.is(t.contents)||$.is(t.contents)||Ae.typedArray(t.contents,$.is))&&(void 0===e.range||c.is(e.range))}}(G||(G={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(J||(J={})),function(e){e.create=function(e,t,...n){const i={label:e};return Ae.defined(t)&&(i.documentation=t),Ae.defined(n)?i.parameters=n:i.parameters=[],i}}(Y||(Y={})),function(e){e.Text=1,e.Read=2,e.Write=3}(X||(X={})),function(e){e.create=function(e,t){const n={range:e};return Ae.number(t)&&(n.kind=t),n}}(Z||(Z={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Q||(Q={})),function(e){e.Deprecated=1}(ee||(ee={})),function(e){e.create=function(e,t,n,i,r){const o={name:e,kind:t,location:{uri:i,range:n}};return r&&(o.containerName=r),o}}(te||(te={})),function(e){e.create=function(e,t,n,i){return void 0!==i?{name:e,kind:t,location:{uri:n,range:i}}:{name:e,kind:t,location:{uri:n}}}}(ne||(ne={})),function(e){e.create=function(e,t,n,i,r,o){const s={name:e,detail:t,kind:n,range:i,selectionRange:r};return void 0!==o&&(s.children=o),s},e.is=function(e){const t=e;return t&&Ae.string(t.name)&&Ae.number(t.kind)&&c.is(t.range)&&c.is(t.selectionRange)&&(void 0===t.detail||Ae.string(t.detail))&&(void 0===t.deprecated||Ae.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(ie||(ie={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorMove="refactor.move",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e.Notebook="notebook"}(re||(re={})),function(e){e.Invoked=1,e.Automatic=2}(oe||(oe={})),function(e){e.create=function(e,t,n){const i={diagnostics:e};return null!=t&&(i.only=t),null!=n&&(i.triggerKind=n),i},e.is=function(e){const t=e;return Ae.defined(t)&&Ae.typedArray(t.diagnostics,S.is)&&(void 0===t.only||Ae.typedArray(t.only,Ae.string))&&(void 0===t.triggerKind||t.triggerKind===oe.Invoked||t.triggerKind===oe.Automatic)}}(se||(se={})),function(e){e.create=function(e,t,n){const i={title:e};let r=!0;return"string"==typeof t?(r=!1,i.kind=t):_.is(t)?i.command=t:i.edit=t,r&&void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return t&&Ae.string(t.title)&&(void 0===t.diagnostics||Ae.typedArray(t.diagnostics,S.is))&&(void 0===t.kind||Ae.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||_.is(t.command))&&(void 0===t.isPreferred||Ae.boolean(t.isPreferred))&&(void 0===t.edit||x.is(t.edit))}}(ae||(ae={})),function(e){e.create=function(e,t){const n={range:e};return Ae.defined(t)&&(n.data=t),n},e.is=function(e){const t=e;return Ae.defined(t)&&c.is(t.range)&&(Ae.undefined(t.command)||_.is(t.command))}}(ce||(ce={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){const t=e;return Ae.defined(t)&&Ae.uinteger(t.tabSize)&&Ae.boolean(t.insertSpaces)}}(ue||(ue={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){const t=e;return Ae.defined(t)&&c.is(t.range)&&(Ae.undefined(t.target)||Ae.string(t.target))}}(le||(le={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){const n=t;return Ae.objectLiteral(n)&&c.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(de||(de={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator",e.label="label"}(fe||(fe={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(pe||(pe={})),function(e){e.is=function(e){const t=e;return Ae.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(ge||(ge={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&Ae.string(t.text)}}(he||(he={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&Ae.boolean(t.caseSensitiveLookup)&&(Ae.string(t.variableName)||void 0===t.variableName)}}(me||(me={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&c.is(t.range)&&(Ae.string(t.expression)||void 0===t.expression)}}(ve||(ve={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Ae.defined(t)&&c.is(e.stoppedLocation)}}(ye||(ye={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Ce||(Ce={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&(void 0===t.tooltip||Ae.string(t.tooltip)||q.is(t.tooltip))&&(void 0===t.location||u.is(t.location))&&(void 0===t.command||_.is(t.command))}}(Se||(Se={})),function(e){e.create=function(e,t,n){const i={position:e,label:t};return void 0!==n&&(i.kind=n),i},e.is=function(e){const t=e;return Ae.objectLiteral(t)&&a.is(t.position)&&(Ae.string(t.label)||Ae.typedArray(t.label,Se.is))&&(void 0===t.kind||Ce.is(t.kind))&&void 0===t.textEdits||Ae.typedArray(t.textEdits,T.is)&&(void 0===t.tooltip||Ae.string(t.tooltip)||q.is(t.tooltip))&&(void 0===t.paddingLeft||Ae.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Ae.boolean(t.paddingRight))}}(_e||(_e={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}},e.isSnippet=function(e){const t=e;return Ae.objectLiteral(t)&&"snippet"===t.kind&&Ae.string(t.value)}}(Te||(Te={})),function(e){e.create=function(e,t,n,i){return{insertText:e,filterText:t,range:n,command:i}}}(be||(be={})),function(e){e.create=function(e){return{items:e}}}(Re||(Re={})),function(e){e.Invoked=1,e.Automatic=2}(De||(De={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(we||(we={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(Ee||(Ee={})),function(e){e.is=function(e){const t=e;return Ae.objectLiteral(t)&&r.is(t.uri)&&Ae.string(t.name)}}(Pe||(Pe={}));const Ne=["\n","\r\n","\r"];var Oe,Ae;!function(e){function t(e,n){if(e.length<=1)return e;const i=e.length/2|0,r=e.slice(0,i),o=e.slice(i);t(r,n),t(o,n);let s=0,a=0,c=0;for(;s<r.length&&a<o.length;){const t=n(r[s],o[a]);e[c++]=t<=0?r[s++]:o[a++]}for(;s<r.length;)e[c++]=r[s++];for(;a<o.length;)e[c++]=o[a++];return e}e.create=function(e,t,n,i){return new Fe(e,t,n,i)},e.is=function(e){const t=e;return!!(Ae.defined(t)&&Ae.string(t.uri)&&(Ae.undefined(t.languageId)||Ae.string(t.languageId))&&Ae.uinteger(t.lineCount)&&Ae.func(t.getText)&&Ae.func(t.positionAt)&&Ae.func(t.offsetAt))},e.applyEdits=function(e,n){let i=e.getText();const r=t(n,((e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}));let o=i.length;for(let t=r.length-1;t>=0;t--){const n=r[t],s=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=o))throw new Error("Overlapping edit");i=i.substring(0,s)+n.newText+i.substring(a,i.length),o=s}return i}}(Oe||(Oe={}));class Fe{constructor(e,t,n,i){this._uri=e,this._languageId=t,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){const e=[],t=this._content;let n=!0;for(let i=0;i<t.length;i++){n&&(e.push(i),n=!1);const r=t.charAt(i);n="\r"===r||"\n"===r,"\r"===r&&i+1<t.length&&"\n"===t.charAt(i+1)&&i++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,i=t.length;if(0===i)return a.create(0,e);for(;n<i;){const r=Math.floor((n+i)/2);t[r]>e?i=r:n=r+1}const r=n-1;return a.create(r,e-t[r])}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line],i=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,i),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,i){return"[object Number]"===t.call(e)&&n<=e&&e<=i},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Ae||(Ae={}))}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};(()=>{"use strict";var e=i,t=n(5108);Object.defineProperty(e,"__esModule",{value:!0}),e.deactivate=e.activate=void 0;const r=n(9496),o=n(8595),s=n(8460),a=n(3699),c=n(6298),u=n(24),l=n(774),d=n(9497);let f,p,g;async function h(e,n){e.subscriptions.push((0,l.createStatusItem)());const i=(n=await async function(e){return e.isActive||await e.activate(),e}(n)).exports;if(i.client&&i.client.isEnabled())return p=i,void await i.client.start();const{extensionUri:c,packageJSON:d}=n,g=r.Uri.joinPath(c,"dist");try{const t=new Worker(r.Uri.joinPath(g,"browser.server.bundle.js").toString()),n={distUrl:g.toString()};t.postMessage(n);const i=new s.LanguageClientMiddlewareBase(void 0,a.LanguageServerType.Node,v,d.version);i.connect();const c={documentSelector:[{language:"python"}],synchronize:{configurationSection:["python","jupyter.runStartupCommands"]},middleware:i},l=new o.LanguageClient("python","Python Language Server",t,c);f=l,e.subscriptions.push(r.commands.registerCommand("python.viewLanguageServerOutput",(()=>l.outputChannel.show()))),l.onTelemetry((e=>{var t;const n=e.EventName||u.EventName.LANGUAGE_SERVER_TELEMETRY,i={...e.Properties,method:null===(t=e.Properties.method)||void 0===t?void 0:t.replace(/\//g,".")};v(n,e.Measurements,i,e.Exception)})),await l.start()}catch(e){t.log(e)}}function m(){if(g)return g;const e=n(217).Z;return g=new e(c.AppinsightsKey,[{lookup:/(errorName|errorMessage|errorStack)/g}]),g}function v(e,n,i,r){var o;const s=m(),a="number"==typeof n?{duration:n}:n||void 0,c={},u=e;if(i){const n=i;Object.getOwnPropertyNames(n).forEach((i=>{if(void 0!==n[i]&&null!==n[i])try{switch(typeof n[i]){case"string":c[i]=n[i];break;case"object":c[i]="object";break;default:c[i]=n[i].toString()}}catch(n){t.error(`Failed to serialize ${i} for ${e}`,n)}}))}if(r){const e={errorName:r.name,errorStack:null!==(o=r.stack)&&void 0!==o?o:""};Object.assign(c,e),s.sendTelemetryErrorEvent(u,c,a)}else s.sendTelemetryEvent(u,c,a)}e.activate=function(e){const t=m(),n=Promise.resolve((0,d.buildApi)(t)),i=r.extensions.getExtension(c.PYLANCE_EXTENSION_ID);if(i)return n.then((()=>h(e,i))),n;const o=r.extensions.onDidChange((async()=>{const t=r.extensions.getExtension(c.PYLANCE_EXTENSION_ID);t&&(o.dispose(),await h(e,t))}));return n},e.deactivate=async function(){if(p){const e=p;p=void 0,await e.client.stop()}if(f){const e=f;f=void 0,await e.stop(),await e.dispose()}}})(),module.exports=i})();
|
||
//# sourceMappingURL=extension.browser.js.map
|