UNPKG

code-server

Version:

Run VS Code on a remote server.

179 lines • 1.11 MB
/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/(function(){var ve=["require","exports","vs/base/common/lifecycle","vs/base/common/platform","vs/base/common/uri","vs/platform/instantiation/common/instantiation","vs/base/common/path","vs/base/common/event","vs/base/common/network","vs/nls","vs/nls!vs/server/node/server.main","vs/base/common/errors","vs/base/common/types","vs/platform/log/common/log","vs/base/common/async","vs/base/common/buffer","vs/base/common/strings","vs/platform/files/common/files","vs/base/common/arrays","vs/base/common/resources","vs/base/common/cancellation","vs/base/node/pfs","vs/base/common/objects","vs/base/common/uuid","vs/base/common/map","vs/platform/configuration/common/configuration","vs/platform/product/common/productService","vs/base/common/process","os","vs/platform/environment/common/environment","fs","vs/platform/extensionManagement/common/extensionManagement","vs/platform/telemetry/common/telemetry","vs/base/common/extpath","vs/platform/registry/common/platform","vs/platform/extensionManagement/common/extensionManagementUtil","vs/platform/extensions/common/extensions","vs/platform/userDataProfile/common/userDataProfile","vs/base/common/errorMessage","vs/platform/uriIdentity/common/uriIdentity","vs/server/node/serverEnvironmentService","vs/base/common/codicons","vs/base/common/marshalling","child_process","vs/base/parts/ipc/common/ipc","vs/platform/telemetry/common/telemetryUtils","vs/base/common/iterator","vs/base/common/stream","vs/base/common/performance","vs/editor/common/core/range","vs/base/common/semver/semver","vs/platform/product/common/product","vs/platform/configuration/common/configurationRegistry","vs/platform/extensionManagement/common/extensionsProfileScannerService","vs/platform/request/common/request","vs/platform/extensionManagement/common/extensionsScannerService","vs/base/common/processes","vs/base/parts/ipc/node/ipc.net","vs/platform/environment/node/argv","vs/platform/instantiation/common/descriptors","vs/platform/files/common/watcher","vs/platform/files/node/diskFileSystemProvider","vs/platform/policy/common/policy","vs/workbench/api/node/uriTransformer","vs/base/common/functional","vs/base/common/json","vs/base/common/mime","vs/base/common/severity","vs/base/common/glob","vs/base/common/uriIpc","vs/platform/extensions/common/extensionValidator","vs/platform/credentials/common/credentials","vs/platform/download/common/download","vs/platform/instantiation/common/serviceCollection","vs/platform/languagePacks/common/languagePacks","vs/platform/remote/common/remoteHosts","url","vs/platform/shell/node/shellEnv","vs/platform/workspace/common/workspace","vs/server/node/remoteLanguagePacks","vs/workbench/contrib/testing/common/testId","vs/workbench/contrib/testing/common/testTypes","vs/base/common/decorators","vs/base/common/observableValue","vs/base/common/hash","vs/base/common/normalization","vs/base/common/htmlContent","path","vs/base/node/id","net","vs/base/node/powershell","vs/base/node/ps","vs/base/parts/ipc/common/ipc.net","vs/editor/common/core/position","vs/base/node/processes","vs/base/parts/ipc/node/ipc.cp","vs/platform/environment/common/environmentService","vs/platform/contextkey/common/contextkey","vs/platform/files/common/io","vs/platform/instantiation/common/instantiationService","vs/platform/files/common/fileService","vs/platform/log/common/logIpc","vs/platform/log/node/spdlogLog","vs/platform/configuration/common/configurationModels","vs/platform/configuration/common/configurationService","vs/platform/remote/common/remoteAuthorityResolver","vs/platform/extensionManagement/common/extensionManagementCLIService","vs/platform/languagePacks/node/languagePacks","crypto","vs/platform/telemetry/common/commonProperties","vs/platform/terminal/common/terminal","vs/platform/theme/common/themeService","vs/platform/uriIdentity/common/uriIdentityService","vs/platform/extensionManagement/common/extensionGalleryService","vs/server/node/extensionHostStatusService","vs/server/node/extensionsScannerService","vs/workbench/api/common/extHostTypes","vs/workbench/common/editor","vs/workbench/contrib/terminal/common/environmentVariable","vs/workbench/contrib/terminal/common/environmentVariableShared","vs/workbench/contrib/testing/common/testItemCollection","vs/workbench/api/common/extHostTestingPrivateApi","vs/workbench/services/editor/common/editorService","vs/workbench/api/common/extHostTypeConverters","vs/server/node/extensionHostConnection","vs/workbench/services/extensions/common/proxyIdentifier","vs/workbench/services/remote/common/remoteAgentService","vs/base/node/zip","vs/platform/extensionManagement/node/extensionManagementService","vs/platform/request/node/requestService","vs/base/common/amd","vs/base/common/assert","vs/base/common/lazy","vs/base/common/linkedList","vs/base/common/marked/marked","vs/base/common/skipList","vs/base/common/stopwatch","vs/base/common/cache","vs/base/common/filters","vs/base/common/iconLabels","vs/base/common/console","vs/base/common/labels","vs/base/node/decoder","vs/base/node/languagePacks","vs/base/node/macAddress","vs/base/node/extpath","vs/base/node/ports","vs/base/parts/storage/common/storage","vs/editor/common/tokenizationRegistry","vs/editor/common/languages","vs/nls!vs/base/common/date","vs/base/common/date","vs/nls!vs/base/common/errorMessage","vs/nls!vs/base/common/jsonErrorMessages","vs/base/common/jsonErrorMessages","vs/nls!vs/base/node/processes","vs/base/node/shell","vs/nls!vs/base/node/zip","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/environment/node/argv","vs/nls!vs/platform/environment/node/argvHelper","vs/nls!vs/platform/extensionManagement/common/abstractExtensionManagementService","vs/nls!vs/platform/extensionManagement/common/extensionManagement","vs/nls!vs/platform/extensionManagement/common/extensionManagementCLIService","vs/nls!vs/platform/extensionManagement/common/extensionsScannerService","vs/nls!vs/platform/extensionManagement/node/extensionManagementService","vs/nls!vs/platform/extensionManagement/node/extensionManagementUtil","vs/nls!vs/platform/extensions/common/extensionValidator","vs/nls!vs/platform/files/common/fileService","vs/nls!vs/platform/files/common/files","vs/nls!vs/platform/files/common/io","vs/nls!vs/platform/files/node/diskFileSystemProvider","vs/nls!vs/platform/languagePacks/common/languagePacks","vs/nls!vs/platform/markers/common/markers","vs/nls!vs/platform/request/common/request","vs/nls!vs/platform/shell/node/shellEnv","vs/nls!vs/platform/telemetry/common/telemetryService","vs/nls!vs/platform/terminal/common/terminalPlatformConfiguration","vs/nls!vs/platform/terminal/common/terminalProfiles","vs/nls!vs/platform/userDataProfile/common/userDataProfile","vs/nls!vs/platform/workspace/common/workspace","vs/nls!vs/server/node/serverEnvironmentService","vs/nls!vs/workbench/common/editor","vs/nls!vs/workbench/services/configurationResolver/common/variableResolver","vs/nls!vs/workbench/services/extensions/common/extensionsUtil","vs/platform/debug/common/extensionHostDebugIpc","vs/platform/download/common/downloadIpc","vs/platform/editor/common/editor","vs/platform/encryption/node/encryptionMainService","vs/platform/environment/node/argvHelper","vs/platform/environment/node/userDataPath","vs/platform/environment/node/environmentService","vs/platform/externalServices/common/serviceMachineId","vs/platform/instantiation/common/extensions","vs/platform/instantiation/common/graph","vs/platform/diagnostics/common/diagnostics","vs/platform/encryption/common/encryptionService","vs/platform/extensionManagement/common/extensionManagementIpc","vs/platform/files/common/diskFileSystemProviderClient","vs/platform/files/node/watcher/nodejs/nodejsWatcherLib","vs/platform/files/node/watcher/nodejs/nodejsWatcher","vs/platform/files/node/watcher/nodejs/nodejsClient","vs/platform/files/node/watcher/watcherClient","vs/platform/label/common/label","vs/platform/credentials/common/credentialsMainService","vs/platform/files/common/diskFileSystemProvider","vs/platform/files/node/diskFileSystemProviderServer","vs/platform/markers/common/markers","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/platform/configuration/common/configurations","vs/platform/extensionManagement/node/extensionDownloader","vs/platform/extensionManagement/node/extensionsManifestCache","vs/platform/download/common/downloadService","vs/platform/request/common/requestIpc","vs/platform/request/node/proxy","vs/platform/telemetry/common/errorTelemetry","vs/platform/telemetry/common/remoteTelemetryChannel","vs/platform/diagnostics/node/diagnosticsService","vs/platform/externalServices/common/marketplace","vs/platform/telemetry/common/1dsAppender","vs/platform/telemetry/common/telemetryService","vs/platform/telemetry/common/serverTelemetryService","vs/platform/telemetry/node/1dsAppender","https","vs/platform/telemetry/node/errorTelemetry","vs/platform/terminal/common/requestStore","vs/platform/terminal/node/terminalEnvironment","vs/platform/theme/common/theme","vs/platform/terminal/common/terminalProfiles","vs/platform/terminal/common/terminalPlatformConfiguration","vs/platform/terminal/node/terminalProfiles","vs/platform/terminal/node/ptyHostService","vs/platform/extensionManagement/node/extensionsWatcher","vs/platform/extensionManagement/common/abstractExtensionManagementService","vs/platform/extensionManagement/node/extensionLifecycle","vs/platform/storage/common/storage","vs/server/node/remoteExtensionManagement","vs/server/node/serverConnectionToken","cookie","vs/platform/credentials/node/credentialsMainService","vs/server/node/telemetryClient","http","vs/server/node/webClientServer","vs/workbench/api/common/extHostRpcService","vs/server/node/remoteFileSystemProviderServer","vs/workbench/contrib/notebook/common/notebookCommon","vs/workbench/contrib/terminal/common/environmentVariableCollection","vs/workbench/contrib/terminal/common/terminalEnvironment","vs/workbench/services/configuration/common/configuration","vs/workbench/services/configurationResolver/common/configurationResolver","vs/workbench/services/configurationResolver/common/variableResolver","vs/workbench/services/editor/common/editorGroupsService","vs/workbench/api/common/extHostTestItem","vs/workbench/contrib/terminal/common/remoteTerminalChannel","vs/workbench/services/extensions/common/extensionHostEnv","vs/workbench/services/extensions/common/extensionsUtil","vs/server/node/remoteAgentEnvironmentImpl","vs/workbench/api/common/extHost.protocol","vs/workbench/api/common/extHostCommands","vs/workbench/api/node/extHostCLIServer","vs/server/node/remoteTerminalChannel","vs/workbench/services/remote/common/remoteFileSystemProviderClient","vs/platform/extensionManagement/node/extensionManagementUtil","vs/server/node/remoteExtensionHostAgentCli","vs/server/node/serverServices","vs/server/node/remoteExtensionHostAgentServer","perf_hooks","string_decoder","util","minimist","assert","graceful-fs","@microsoft/1ds-core-js","yauzl","yazl","zlib","vs/server/node/server.main"],we=function(oe){for(var e=[],b=0,t=oe.length;b<t;b++)e[b]=ve[oe[b]];return e};define(ve[130],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LoaderStats=void 0;class b{static get(){const D=new Map,P=new Map,k=new Map,y=new Map;function p(E,d){E.has(d.detail)||E.set(d.detail,-d.timestamp)}function C(E,d){const I=E.get(d.detail);!I||I>=0||E.set(d.detail,I+d.timestamp)}const T=oe.getStats().slice(0).sort((E,d)=>E.timestamp-d.timestamp);for(const E of T)switch(E.type){case 10:p(D,E);break;case 11:case 12:C(D,E);break;case 21:p(P,E);break;case 22:C(P,E);break;case 33:p(k,E);break;case 34:C(k,E);break;case 31:p(y,E);break;case 32:C(y,E);break}let R=0;k.forEach(E=>R+=E);function w(E){const d=[];return E.forEach((I,v)=>d.push([v,I])),d}return{amdLoad:w(D),amdInvoke:w(P),nodeRequire:w(k),nodeEval:w(y),nodeRequireTotal:R}}static toMarkdownTable(D,P){let k="";const y=[];return D.forEach((p,C)=>{y[C]=p.length}),P.forEach(p=>{p.forEach((C,T)=>{typeof C=="undefined"&&(C=p[T]="-");const R=C.toString().length;y[T]=Math.max(R,y[T])})}),D.forEach((p,C)=>{k+=`| ${p+" ".repeat(y[C]-p.toString().length)} `}),k+=`|
`,D.forEach((p,C)=>{k+=`| ${"-".repeat(y[C])} `}),k+=`|
`,P.forEach(p=>{p.forEach((C,T)=>{typeof C!="undefined"&&(k+=`| ${C+" ".repeat(y[T]-C.toString().length)} `)}),k+=`|
`}),k}}e.LoaderStats=b}),define(ve[131],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ok=void 0;function b(t,D){if(!t)throw new Error(D?`Assertion failed (${D})`:"Assertion Failed")}e.ok=b}),define(ve[41],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CSSIcon=e.getClassNamesArray=e.Codicon=e.getCodiconAriaLabel=void 0;function b(k){return k?k.replace(/\$\((.*?)\)/g,(y,p)=>` ${p} `).trim():""}e.getCodiconAriaLabel=b;class t{constructor(y,p,C){this.id=y,this.definition=p,this.description=C,t._allCodicons.push(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}static getAll(){return t._allCodicons}}e.Codicon=t,t._allCodicons=[],t.add=new t("add",{fontCharacter:"\\ea60"}),t.plus=new t("plus",t.add.definition),t.gistNew=new t("gist-new",t.add.definition),t.repoCreate=new t("repo-create",t.add.definition),t.lightbulb=new t("lightbulb",{fontCharacter:"\\ea61"}),t.lightBulb=new t("light-bulb",{fontCharacter:"\\ea61"}),t.repo=new t("repo",{fontCharacter:"\\ea62"}),t.repoDelete=new t("repo-delete",{fontCharacter:"\\ea62"}),t.gistFork=new t("gist-fork",{fontCharacter:"\\ea63"}),t.repoForked=new t("repo-forked",{fontCharacter:"\\ea63"}),t.gitPullRequest=new t("git-pull-request",{fontCharacter:"\\ea64"}),t.gitPullRequestAbandoned=new t("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),t.recordKeys=new t("record-keys",{fontCharacter:"\\ea65"}),t.keyboard=new t("keyboard",{fontCharacter:"\\ea65"}),t.tag=new t("tag",{fontCharacter:"\\ea66"}),t.tagAdd=new t("tag-add",{fontCharacter:"\\ea66"}),t.tagRemove=new t("tag-remove",{fontCharacter:"\\ea66"}),t.person=new t("person",{fontCharacter:"\\ea67"}),t.personFollow=new t("person-follow",{fontCharacter:"\\ea67"}),t.personOutline=new t("person-outline",{fontCharacter:"\\ea67"}),t.personFilled=new t("person-filled",{fontCharacter:"\\ea67"}),t.gitBranch=new t("git-branch",{fontCharacter:"\\ea68"}),t.gitBranchCreate=new t("git-branch-create",{fontCharacter:"\\ea68"}),t.gitBranchDelete=new t("git-branch-delete",{fontCharacter:"\\ea68"}),t.sourceControl=new t("source-control",{fontCharacter:"\\ea68"}),t.mirror=new t("mirror",{fontCharacter:"\\ea69"}),t.mirrorPublic=new t("mirror-public",{fontCharacter:"\\ea69"}),t.star=new t("star",{fontCharacter:"\\ea6a"}),t.starAdd=new t("star-add",{fontCharacter:"\\ea6a"}),t.starDelete=new t("star-delete",{fontCharacter:"\\ea6a"}),t.starEmpty=new t("star-empty",{fontCharacter:"\\ea6a"}),t.comment=new t("comment",{fontCharacter:"\\ea6b"}),t.commentAdd=new t("comment-add",{fontCharacter:"\\ea6b"}),t.alert=new t("alert",{fontCharacter:"\\ea6c"}),t.warning=new t("warning",{fontCharacter:"\\ea6c"}),t.search=new t("search",{fontCharacter:"\\ea6d"}),t.searchSave=new t("search-save",{fontCharacter:"\\ea6d"}),t.logOut=new t("log-out",{fontCharacter:"\\ea6e"}),t.signOut=new t("sign-out",{fontCharacter:"\\ea6e"}),t.logIn=new t("log-in",{fontCharacter:"\\ea6f"}),t.signIn=new t("sign-in",{fontCharacter:"\\ea6f"}),t.eye=new t("eye",{fontCharacter:"\\ea70"}),t.eyeUnwatch=new t("eye-unwatch",{fontCharacter:"\\ea70"}),t.eyeWatch=new t("eye-watch",{fontCharacter:"\\ea70"}),t.circleFilled=new t("circle-filled",{fontCharacter:"\\ea71"}),t.primitiveDot=new t("primitive-dot",{fontCharacter:"\\ea71"}),t.closeDirty=new t("close-dirty",{fontCharacter:"\\ea71"}),t.debugBreakpoint=new t("debug-breakpoint",{fontCharacter:"\\ea71"}),t.debugBreakpointDisabled=new t("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),t.debugHint=new t("debug-hint",{fontCharacter:"\\ea71"}),t.primitiveSquare=new t("primitive-square",{fontCharacter:"\\ea72"}),t.edit=new t("edit",{fontCharacter:"\\ea73"}),t.pencil=new t("pencil",{fontCharacter:"\\ea73"}),t.info=new t("info",{fontCharacter:"\\ea74"}),t.issueOpened=new t("issue-opened",{fontCharacter:"\\ea74"}),t.gistPrivate=new t("gist-private",{fontCharacter:"\\ea75"}),t.gitForkPrivate=new t("git-fork-private",{fontCharacter:"\\ea75"}),t.lock=new t("lock",{fontCharacter:"\\ea75"}),t.mirrorPrivate=new t("mirror-private",{fontCharacter:"\\ea75"}),t.close=new t("close",{fontCharacter:"\\ea76"}),t.removeClose=new t("remove-close",{fontCharacter:"\\ea76"}),t.x=new t("x",{fontCharacter:"\\ea76"}),t.repoSync=new t("repo-sync",{fontCharacter:"\\ea77"}),t.sync=new t("sync",{fontCharacter:"\\ea77"}),t.clone=new t("clone",{fontCharacter:"\\ea78"}),t.desktopDownload=new t("desktop-download",{fontCharacter:"\\ea78"}),t.beaker=new t("beaker",{fontCharacter:"\\ea79"}),t.microscope=new t("microscope",{fontCharacter:"\\ea79"}),t.vm=new t("vm",{fontCharacter:"\\ea7a"}),t.deviceDesktop=new t("device-desktop",{fontCharacter:"\\ea7a"}),t.file=new t("file",{fontCharacter:"\\ea7b"}),t.fileText=new t("file-text",{fontCharacter:"\\ea7b"}),t.more=new t("more",{fontCharacter:"\\ea7c"}),t.ellipsis=new t("ellipsis",{fontCharacter:"\\ea7c"}),t.kebabHorizontal=new t("kebab-horizontal",{fontCharacter:"\\ea7c"}),t.mailReply=new t("mail-reply",{fontCharacter:"\\ea7d"}),t.reply=new t("reply",{fontCharacter:"\\ea7d"}),t.organization=new t("organization",{fontCharacter:"\\ea7e"}),t.organizationFilled=new t("organization-filled",{fontCharacter:"\\ea7e"}),t.organizationOutline=new t("organization-outline",{fontCharacter:"\\ea7e"}),t.newFile=new t("new-file",{fontCharacter:"\\ea7f"}),t.fileAdd=new t("file-add",{fontCharacter:"\\ea7f"}),t.newFolder=new t("new-folder",{fontCharacter:"\\ea80"}),t.fileDirectoryCreate=new t("file-directory-create",{fontCharacter:"\\ea80"}),t.trash=new t("trash",{fontCharacter:"\\ea81"}),t.trashcan=new t("trashcan",{fontCharacter:"\\ea81"}),t.history=new t("history",{fontCharacter:"\\ea82"}),t.clock=new t("clock",{fontCharacter:"\\ea82"}),t.folder=new t("folder",{fontCharacter:"\\ea83"}),t.fileDirectory=new t("file-directory",{fontCharacter:"\\ea83"}),t.symbolFolder=new t("symbol-folder",{fontCharacter:"\\ea83"}),t.logoGithub=new t("logo-github",{fontCharacter:"\\ea84"}),t.markGithub=new t("mark-github",{fontCharacter:"\\ea84"}),t.github=new t("github",{fontCharacter:"\\ea84"}),t.terminal=new t("terminal",{fontCharacter:"\\ea85"}),t.console=new t("console",{fontCharacter:"\\ea85"}),t.repl=new t("repl",{fontCharacter:"\\ea85"}),t.zap=new t("zap",{fontCharacter:"\\ea86"}),t.symbolEvent=new t("symbol-event",{fontCharacter:"\\ea86"}),t.error=new t("error",{fontCharacter:"\\ea87"}),t.stop=new t("stop",{fontCharacter:"\\ea87"}),t.variable=new t("variable",{fontCharacter:"\\ea88"}),t.symbolVariable=new t("symbol-variable",{fontCharacter:"\\ea88"}),t.array=new t("array",{fontCharacter:"\\ea8a"}),t.symbolArray=new t("symbol-array",{fontCharacter:"\\ea8a"}),t.symbolModule=new t("symbol-module",{fontCharacter:"\\ea8b"}),t.symbolPackage=new t("symbol-package",{fontCharacter:"\\ea8b"}),t.symbolNamespace=new t("symbol-namespace",{fontCharacter:"\\ea8b"}),t.symbolObject=new t("symbol-object",{fontCharacter:"\\ea8b"}),t.symbolMethod=new t("symbol-method",{fontCharacter:"\\ea8c"}),t.symbolFunction=new t("symbol-function",{fontCharacter:"\\ea8c"}),t.symbolConstructor=new t("symbol-constructor",{fontCharacter:"\\ea8c"}),t.symbolBoolean=new t("symbol-boolean",{fontCharacter:"\\ea8f"}),t.symbolNull=new t("symbol-null",{fontCharacter:"\\ea8f"}),t.symbolNumeric=new t("symbol-numeric",{fontCharacter:"\\ea90"}),t.symbolNumber=new t("symbol-number",{fontCharacter:"\\ea90"}),t.symbolStructure=new t("symbol-structure",{fontCharacter:"\\ea91"}),t.symbolStruct=new t("symbol-struct",{fontCharacter:"\\ea91"}),t.symbolParameter=new t("symbol-parameter",{fontCharacter:"\\ea92"}),t.symbolTypeParameter=new t("symbol-type-parameter",{fontCharacter:"\\ea92"}),t.symbolKey=new t("symbol-key",{fontCharacter:"\\ea93"}),t.symbolText=new t("symbol-text",{fontCharacter:"\\ea93"}),t.symbolReference=new t("symbol-reference",{fontCharacter:"\\ea94"}),t.goToFile=new t("go-to-file",{fontCharacter:"\\ea94"}),t.symbolEnum=new t("symbol-enum",{fontCharacter:"\\ea95"}),t.symbolValue=new t("symbol-value",{fontCharacter:"\\ea95"}),t.symbolRuler=new t("symbol-ruler",{fontCharacter:"\\ea96"}),t.symbolUnit=new t("symbol-unit",{fontCharacter:"\\ea96"}),t.activateBreakpoints=new t("activate-breakpoints",{fontCharacter:"\\ea97"}),t.archive=new t("archive",{fontCharacter:"\\ea98"}),t.arrowBoth=new t("arrow-both",{fontCharacter:"\\ea99"}),t.arrowDown=new t("arrow-down",{fontCharacter:"\\ea9a"}),t.arrowLeft=new t("arrow-left",{fontCharacter:"\\ea9b"}),t.arrowRight=new t("arrow-right",{fontCharacter:"\\ea9c"}),t.arrowSmallDown=new t("arrow-small-down",{fontCharacter:"\\ea9d"}),t.arrowSmallLeft=new t("arrow-small-left",{fontCharacter:"\\ea9e"}),t.arrowSmallRight=new t("arrow-small-right",{fontCharacter:"\\ea9f"}),t.arrowSmallUp=new t("arrow-small-up",{fontCharacter:"\\eaa0"}),t.arrowUp=new t("arrow-up",{fontCharacter:"\\eaa1"}),t.bell=new t("bell",{fontCharacter:"\\eaa2"}),t.bold=new t("bold",{fontCharacter:"\\eaa3"}),t.book=new t("book",{fontCharacter:"\\eaa4"}),t.bookmark=new t("bookmark",{fontCharacter:"\\eaa5"}),t.debugBreakpointConditionalUnverified=new t("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),t.debugBreakpointConditional=new t("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),t.debugBreakpointConditionalDisabled=new t("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),t.debugBreakpointDataUnverified=new t("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),t.debugBreakpointData=new t("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),t.debugBreakpointDataDisabled=new t("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),t.debugBreakpointLogUnverified=new t("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),t.debugBreakpointLog=new t("debug-breakpoint-log",{fontCharacter:"\\eaab"}),t.debugBreakpointLogDisabled=new t("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),t.briefcase=new t("briefcase",{fontCharacter:"\\eaac"}),t.broadcast=new t("broadcast",{fontCharacter:"\\eaad"}),t.browser=new t("browser",{fontCharacter:"\\eaae"}),t.bug=new t("bug",{fontCharacter:"\\eaaf"}),t.calendar=new t("calendar",{fontCharacter:"\\eab0"}),t.caseSensitive=new t("case-sensitive",{fontCharacter:"\\eab1"}),t.check=new t("check",{fontCharacter:"\\eab2"}),t.checklist=new t("checklist",{fontCharacter:"\\eab3"}),t.chevronDown=new t("chevron-down",{fontCharacter:"\\eab4"}),t.dropDownButton=new t("drop-down-button",t.chevronDown.definition),t.chevronLeft=new t("chevron-left",{fontCharacter:"\\eab5"}),t.chevronRight=new t("chevron-right",{fontCharacter:"\\eab6"}),t.chevronUp=new t("chevron-up",{fontCharacter:"\\eab7"}),t.chromeClose=new t("chrome-close",{fontCharacter:"\\eab8"}),t.chromeMaximize=new t("chrome-maximize",{fontCharacter:"\\eab9"}),t.chromeMinimize=new t("chrome-minimize",{fontCharacter:"\\eaba"}),t.chromeRestore=new t("chrome-restore",{fontCharacter:"\\eabb"}),t.circleOutline=new t("circle-outline",{fontCharacter:"\\eabc"}),t.debugBreakpointUnverified=new t("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),t.circleSlash=new t("circle-slash",{fontCharacter:"\\eabd"}),t.circuitBoard=new t("circuit-board",{fontCharacter:"\\eabe"}),t.clearAll=new t("clear-all",{fontCharacter:"\\eabf"}),t.clippy=new t("clippy",{fontCharacter:"\\eac0"}),t.closeAll=new t("close-all",{fontCharacter:"\\eac1"}),t.cloudDownload=new t("cloud-download",{fontCharacter:"\\eac2"}),t.cloudUpload=new t("cloud-upload",{fontCharacter:"\\eac3"}),t.code=new t("code",{fontCharacter:"\\eac4"}),t.collapseAll=new t("collapse-all",{fontCharacter:"\\eac5"}),t.colorMode=new t("color-mode",{fontCharacter:"\\eac6"}),t.commentDiscussion=new t("comment-discussion",{fontCharacter:"\\eac7"}),t.compareChanges=new t("compare-changes",{fontCharacter:"\\eafd"}),t.creditCard=new t("credit-card",{fontCharacter:"\\eac9"}),t.dash=new t("dash",{fontCharacter:"\\eacc"}),t.dashboard=new t("dashboard",{fontCharacter:"\\eacd"}),t.database=new t("database",{fontCharacter:"\\eace"}),t.debugContinue=new t("debug-continue",{fontCharacter:"\\eacf"}),t.debugDisconnect=new t("debug-disconnect",{fontCharacter:"\\ead0"}),t.debugPause=new t("debug-pause",{fontCharacter:"\\ead1"}),t.debugRestart=new t("debug-restart",{fontCharacter:"\\ead2"}),t.debugStart=new t("debug-start",{fontCharacter:"\\ead3"}),t.debugStepInto=new t("debug-step-into",{fontCharacter:"\\ead4"}),t.debugStepOut=new t("debug-step-out",{fontCharacter:"\\ead5"}),t.debugStepOver=new t("debug-step-over",{fontCharacter:"\\ead6"}),t.debugStop=new t("debug-stop",{fontCharacter:"\\ead7"}),t.debug=new t("debug",{fontCharacter:"\\ead8"}),t.deviceCameraVideo=new t("device-camera-video",{fontCharacter:"\\ead9"}),t.deviceCamera=new t("device-camera",{fontCharacter:"\\eada"}),t.deviceMobile=new t("device-mobile",{fontCharacter:"\\eadb"}),t.diffAdded=new t("diff-added",{fontCharacter:"\\eadc"}),t.diffIgnored=new t("diff-ignored",{fontCharacter:"\\eadd"}),t.diffModified=new t("diff-modified",{fontCharacter:"\\eade"}),t.diffRemoved=new t("diff-removed",{fontCharacter:"\\eadf"}),t.diffRenamed=new t("diff-renamed",{fontCharacter:"\\eae0"}),t.diff=new t("diff",{fontCharacter:"\\eae1"}),t.discard=new t("discard",{fontCharacter:"\\eae2"}),t.editorLayout=new t("editor-layout",{fontCharacter:"\\eae3"}),t.emptyWindow=new t("empty-window",{fontCharacter:"\\eae4"}),t.exclude=new t("exclude",{fontCharacter:"\\eae5"}),t.extensions=new t("extensions",{fontCharacter:"\\eae6"}),t.eyeClosed=new t("eye-closed",{fontCharacter:"\\eae7"}),t.fileBinary=new t("file-binary",{fontCharacter:"\\eae8"}),t.fileCode=new t("file-code",{fontCharacter:"\\eae9"}),t.fileMedia=new t("file-media",{fontCharacter:"\\eaea"}),t.filePdf=new t("file-pdf",{fontCharacter:"\\eaeb"}),t.fileSubmodule=new t("file-submodule",{fontCharacter:"\\eaec"}),t.fileSymlinkDirectory=new t("file-symlink-directory",{fontCharacter:"\\eaed"}),t.fileSymlinkFile=new t("file-symlink-file",{fontCharacter:"\\eaee"}),t.fileZip=new t("file-zip",{fontCharacter:"\\eaef"}),t.files=new t("files",{fontCharacter:"\\eaf0"}),t.filter=new t("filter",{fontCharacter:"\\eaf1"}),t.flame=new t("flame",{fontCharacter:"\\eaf2"}),t.foldDown=new t("fold-down",{fontCharacter:"\\eaf3"}),t.foldUp=new t("fold-up",{fontCharacter:"\\eaf4"}),t.fold=new t("fold",{fontCharacter:"\\eaf5"}),t.folderActive=new t("folder-active",{fontCharacter:"\\eaf6"}),t.folderOpened=new t("folder-opened",{fontCharacter:"\\eaf7"}),t.gear=new t("gear",{fontCharacter:"\\eaf8"}),t.gift=new t("gift",{fontCharacter:"\\eaf9"}),t.gistSecret=new t("gist-secret",{fontCharacter:"\\eafa"}),t.gist=new t("gist",{fontCharacter:"\\eafb"}),t.gitCommit=new t("git-commit",{fontCharacter:"\\eafc"}),t.gitCompare=new t("git-compare",{fontCharacter:"\\eafd"}),t.gitMerge=new t("git-merge",{fontCharacter:"\\eafe"}),t.githubAction=new t("github-action",{fontCharacter:"\\eaff"}),t.githubAlt=new t("github-alt",{fontCharacter:"\\eb00"}),t.globe=new t("globe",{fontCharacter:"\\eb01"}),t.grabber=new t("grabber",{fontCharacter:"\\eb02"}),t.graph=new t("graph",{fontCharacter:"\\eb03"}),t.gripper=new t("gripper",{fontCharacter:"\\eb04"}),t.heart=new t("heart",{fontCharacter:"\\eb05"}),t.home=new t("home",{fontCharacter:"\\eb06"}),t.horizontalRule=new t("horizontal-rule",{fontCharacter:"\\eb07"}),t.hubot=new t("hubot",{fontCharacter:"\\eb08"}),t.inbox=new t("inbox",{fontCharacter:"\\eb09"}),t.issueClosed=new t("issue-closed",{fontCharacter:"\\eba4"}),t.issueReopened=new t("issue-reopened",{fontCharacter:"\\eb0b"}),t.issues=new t("issues",{fontCharacter:"\\eb0c"}),t.italic=new t("italic",{fontCharacter:"\\eb0d"}),t.jersey=new t("jersey",{fontCharacter:"\\eb0e"}),t.json=new t("json",{fontCharacter:"\\eb0f"}),t.kebabVertical=new t("kebab-vertical",{fontCharacter:"\\eb10"}),t.key=new t("key",{fontCharacter:"\\eb11"}),t.law=new t("law",{fontCharacter:"\\eb12"}),t.lightbulbAutofix=new t("lightbulb-autofix",{fontCharacter:"\\eb13"}),t.linkExternal=new t("link-external",{fontCharacter:"\\eb14"}),t.link=new t("link",{fontCharacter:"\\eb15"}),t.listOrdered=new t("list-ordered",{fontCharacter:"\\eb16"}),t.listUnordered=new t("list-unordered",{fontCharacter:"\\eb17"}),t.liveShare=new t("live-share",{fontCharacter:"\\eb18"}),t.loading=new t("loading",{fontCharacter:"\\eb19"}),t.location=new t("location",{fontCharacter:"\\eb1a"}),t.mailRead=new t("mail-read",{fontCharacter:"\\eb1b"}),t.mail=new t("mail",{fontCharacter:"\\eb1c"}),t.markdown=new t("markdown",{fontCharacter:"\\eb1d"}),t.megaphone=new t("megaphone",{fontCharacter:"\\eb1e"}),t.mention=new t("mention",{fontCharacter:"\\eb1f"}),t.milestone=new t("milestone",{fontCharacter:"\\eb20"}),t.mortarBoard=new t("mortar-board",{fontCharacter:"\\eb21"}),t.move=new t("move",{fontCharacter:"\\eb22"}),t.multipleWindows=new t("multiple-windows",{fontCharacter:"\\eb23"}),t.mute=new t("mute",{fontCharacter:"\\eb24"}),t.noNewline=new t("no-newline",{fontCharacter:"\\eb25"}),t.note=new t("note",{fontCharacter:"\\eb26"}),t.octoface=new t("octoface",{fontCharacter:"\\eb27"}),t.openPreview=new t("open-preview",{fontCharacter:"\\eb28"}),t.package_=new t("package",{fontCharacter:"\\eb29"}),t.paintcan=new t("paintcan",{fontCharacter:"\\eb2a"}),t.pin=new t("pin",{fontCharacter:"\\eb2b"}),t.play=new t("play",{fontCharacter:"\\eb2c"}),t.run=new t("run",{fontCharacter:"\\eb2c"}),t.plug=new t("plug",{fontCharacter:"\\eb2d"}),t.preserveCase=new t("preserve-case",{fontCharacter:"\\eb2e"}),t.preview=new t("preview",{fontCharacter:"\\eb2f"}),t.project=new t("project",{fontCharacter:"\\eb30"}),t.pulse=new t("pulse",{fontCharacter:"\\eb31"}),t.question=new t("question",{fontCharacter:"\\eb32"}),t.quote=new t("quote",{fontCharacter:"\\eb33"}),t.radioTower=new t("radio-tower",{fontCharacter:"\\eb34"}),t.reactions=new t("reactions",{fontCharacter:"\\eb35"}),t.references=new t("references",{fontCharacter:"\\eb36"}),t.refresh=new t("refresh",{fontCharacter:"\\eb37"}),t.regex=new t("regex",{fontCharacter:"\\eb38"}),t.remoteExplorer=new t("remote-explorer",{fontCharacter:"\\eb39"}),t.remote=new t("remote",{fontCharacter:"\\eb3a"}),t.remove=new t("remove",{fontCharacter:"\\eb3b"}),t.replaceAll=new t("replace-all",{fontCharacter:"\\eb3c"}),t.replace=new t("replace",{fontCharacter:"\\eb3d"}),t.repoClone=new t("repo-clone",{fontCharacter:"\\eb3e"}),t.repoForcePush=new t("repo-force-push",{fontCharacter:"\\eb3f"}),t.repoPull=new t("repo-pull",{fontCharacter:"\\eb40"}),t.repoPush=new t("repo-push",{fontCharacter:"\\eb41"}),t.report=new t("report",{fontCharacter:"\\eb42"}),t.requestChanges=new t("request-changes",{fontCharacter:"\\eb43"}),t.rocket=new t("rocket",{fontCharacter:"\\eb44"}),t.rootFolderOpened=new t("root-folder-opened",{fontCharacter:"\\eb45"}),t.rootFolder=new t("root-folder",{fontCharacter:"\\eb46"}),t.rss=new t("rss",{fontCharacter:"\\eb47"}),t.ruby=new t("ruby",{fontCharacter:"\\eb48"}),t.saveAll=new t("save-all",{fontCharacter:"\\eb49"}),t.saveAs=new t("save-as",{fontCharacter:"\\eb4a"}),t.save=new t("save",{fontCharacter:"\\eb4b"}),t.screenFull=new t("screen-full",{fontCharacter:"\\eb4c"}),t.screenNormal=new t("screen-normal",{fontCharacter:"\\eb4d"}),t.searchStop=new t("search-stop",{fontCharacter:"\\eb4e"}),t.server=new t("server",{fontCharacter:"\\eb50"}),t.settingsGear=new t("settings-gear",{fontCharacter:"\\eb51"}),t.settings=new t("settings",{fontCharacter:"\\eb52"}),t.shield=new t("shield",{fontCharacter:"\\eb53"}),t.smiley=new t("smiley",{fontCharacter:"\\eb54"}),t.sortPrecedence=new t("sort-precedence",{fontCharacter:"\\eb55"}),t.splitHorizontal=new t("split-horizontal",{fontCharacter:"\\eb56"}),t.splitVertical=new t("split-vertical",{fontCharacter:"\\eb57"}),t.squirrel=new t("squirrel",{fontCharacter:"\\eb58"}),t.starFull=new t("star-full",{fontCharacter:"\\eb59"}),t.starHalf=new t("star-half",{fontCharacter:"\\eb5a"}),t.symbolClass=new t("symbol-class",{fontCharacter:"\\eb5b"}),t.symbolColor=new t("symbol-color",{fontCharacter:"\\eb5c"}),t.symbolCustomColor=new t("symbol-customcolor",{fontCharacter:"\\eb5c"}),t.symbolConstant=new t("symbol-constant",{fontCharacter:"\\eb5d"}),t.symbolEnumMember=new t("symbol-enum-member",{fontCharacter:"\\eb5e"}),t.symbolField=new t("symbol-field",{fontCharacter:"\\eb5f"}),t.symbolFile=new t("symbol-file",{fontCharacter:"\\eb60"}),t.symbolInterface=new t("symbol-interface",{fontCharacter:"\\eb61"}),t.symbolKeyword=new t("symbol-keyword",{fontCharacter:"\\eb62"}),t.symbolMisc=new t("symbol-misc",{fontCharacter:"\\eb63"}),t.symbolOperator=new t("symbol-operator",{fontCharacter:"\\eb64"}),t.symbolProperty=new t("symbol-property",{fontCharacter:"\\eb65"}),t.wrench=new t("wrench",{fontCharacter:"\\eb65"}),t.wrenchSubaction=new t("wrench-subaction",{fontCharacter:"\\eb65"}),t.symbolSnippet=new t("symbol-snippet",{fontCharacter:"\\eb66"}),t.tasklist=new t("tasklist",{fontCharacter:"\\eb67"}),t.telescope=new t("telescope",{fontCharacter:"\\eb68"}),t.textSize=new t("text-size",{fontCharacter:"\\eb69"}),t.threeBars=new t("three-bars",{fontCharacter:"\\eb6a"}),t.thumbsdown=new t("thumbsdown",{fontCharacter:"\\eb6b"}),t.thumbsup=new t("thumbsup",{fontCharacter:"\\eb6c"}),t.tools=new t("tools",{fontCharacter:"\\eb6d"}),t.triangleDown=new t("triangle-down",{fontCharacter:"\\eb6e"}),t.triangleLeft=new t("triangle-left",{fontCharacter:"\\eb6f"}),t.triangleRight=new t("triangle-right",{fontCharacter:"\\eb70"}),t.triangleUp=new t("triangle-up",{fontCharacter:"\\eb71"}),t.twitter=new t("twitter",{fontCharacter:"\\eb72"}),t.unfold=new t("unfold",{fontCharacter:"\\eb73"}),t.unlock=new t("unlock",{fontCharacter:"\\eb74"}),t.unmute=new t("unmute",{fontCharacter:"\\eb75"}),t.unverified=new t("unverified",{fontCharacter:"\\eb76"}),t.verified=new t("verified",{fontCharacter:"\\eb77"}),t.versions=new t("versions",{fontCharacter:"\\eb78"}),t.vmActive=new t("vm-active",{fontCharacter:"\\eb79"}),t.vmOutline=new t("vm-outline",{fontCharacter:"\\eb7a"}),t.vmRunning=new t("vm-running",{fontCharacter:"\\eb7b"}),t.watch=new t("watch",{fontCharacter:"\\eb7c"}),t.whitespace=new t("whitespace",{fontCharacter:"\\eb7d"}),t.wholeWord=new t("whole-word",{fontCharacter:"\\eb7e"}),t.window=new t("window",{fontCharacter:"\\eb7f"}),t.wordWrap=new t("word-wrap",{fontCharacter:"\\eb80"}),t.zoomIn=new t("zoom-in",{fontCharacter:"\\eb81"}),t.zoomOut=new t("zoom-out",{fontCharacter:"\\eb82"}),t.listFilter=new t("list-filter",{fontCharacter:"\\eb83"}),t.listFlat=new t("list-flat",{fontCharacter:"\\eb84"}),t.listSelection=new t("list-selection",{fontCharacter:"\\eb85"}),t.selection=new t("selection",{fontCharacter:"\\eb85"}),t.listTree=new t("list-tree",{fontCharacter:"\\eb86"}),t.debugBreakpointFunctionUnverified=new t("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),t.debugBreakpointFunction=new t("debug-breakpoint-function",{fontCharacter:"\\eb88"}),t.debugBreakpointFunctionDisabled=new t("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),t.debugStackframeActive=new t("debug-stackframe-active",{fontCharacter:"\\eb89"}),t.circleSmallFilled=new t("circle-small-filled",{fontCharacter:"\\eb8a"}),t.debugStackframeDot=new t("debug-stackframe-dot",t.circleSmallFilled.definition),t.debugStackframe=new t("debug-stackframe",{fontCharacter:"\\eb8b"}),t.debugStackframeFocused=new t("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),t.debugBreakpointUnsupported=new t("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),t.symbolString=new t("symbol-string",{fontCharacter:"\\eb8d"}),t.debugReverseContinue=new t("debug-reverse-continue",{fontCharacter:"\\eb8e"}),t.debugStepBack=new t("debug-step-back",{fontCharacter:"\\eb8f"}),t.debugRestartFrame=new t("debug-restart-frame",{fontCharacter:"\\eb90"}),t.callIncoming=new t("call-incoming",{fontCharacter:"\\eb92"}),t.callOutgoing=new t("call-outgoing",{fontCharacter:"\\eb93"}),t.menu=new t("menu",{fontCharacter:"\\eb94"}),t.expandAll=new t("expand-all",{fontCharacter:"\\eb95"}),t.feedback=new t("feedback",{fontCharacter:"\\eb96"}),t.groupByRefType=new t("group-by-ref-type",{fontCharacter:"\\eb97"}),t.ungroupByRefType=new t("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),t.account=new t("account",{fontCharacter:"\\eb99"}),t.bellDot=new t("bell-dot",{fontCharacter:"\\eb9a"}),t.debugConsole=new t("debug-console",{fontCharacter:"\\eb9b"}),t.library=new t("library",{fontCharacter:"\\eb9c"}),t.output=new t("output",{fontCharacter:"\\eb9d"}),t.runAll=new t("run-all",{fontCharacter:"\\eb9e"}),t.syncIgnored=new t("sync-ignored",{fontCharacter:"\\eb9f"}),t.pinned=new t("pinned",{fontCharacter:"\\eba0"}),t.githubInverted=new t("github-inverted",{fontCharacter:"\\eba1"}),t.debugAlt=new t("debug-alt",{fontCharacter:"\\eb91"}),t.serverProcess=new t("server-process",{fontCharacter:"\\eba2"}),t.serverEnvironment=new t("server-environment",{fontCharacter:"\\eba3"}),t.pass=new t("pass",{fontCharacter:"\\eba4"}),t.stopCircle=new t("stop-circle",{fontCharacter:"\\eba5"}),t.playCircle=new t("play-circle",{fontCharacter:"\\eba6"}),t.record=new t("record",{fontCharacter:"\\eba7"}),t.debugAltSmall=new t("debug-alt-small",{fontCharacter:"\\eba8"}),t.vmConnect=new t("vm-connect",{fontCharacter:"\\eba9"}),t.cloud=new t("cloud",{fontCharacter:"\\ebaa"}),t.merge=new t("merge",{fontCharacter:"\\ebab"}),t.exportIcon=new t("export",{fontCharacter:"\\ebac"}),t.graphLeft=new t("graph-left",{fontCharacter:"\\ebad"}),t.magnet=new t("magnet",{fontCharacter:"\\ebae"}),t.notebook=new t("notebook",{fontCharacter:"\\ebaf"}),t.redo=new t("redo",{fontCharacter:"\\ebb0"}),t.checkAll=new t("check-all",{fontCharacter:"\\ebb1"}),t.pinnedDirty=new t("pinned-dirty",{fontCharacter:"\\ebb2"}),t.passFilled=new t("pass-filled",{fontCharacter:"\\ebb3"}),t.circleLargeFilled=new t("circle-large-filled",{fontCharacter:"\\ebb4"}),t.circleLargeOutline=new t("circle-large-outline",{fontCharacter:"\\ebb5"}),t.combine=new t("combine",{fontCharacter:"\\ebb6"}),t.gather=new t("gather",{fontCharacter:"\\ebb6"}),t.table=new t("table",{fontCharacter:"\\ebb7"}),t.variableGroup=new t("variable-group",{fontCharacter:"\\ebb8"}),t.typeHierarchy=new t("type-hierarchy",{fontCharacter:"\\ebb9"}),t.typeHierarchySub=new t("type-hierarchy-sub",{fontCharacter:"\\ebba"}),t.typeHierarchySuper=new t("type-hierarchy-super",{fontCharacter:"\\ebbb"}),t.gitPullRequestCreate=new t("git-pull-request-create",{fontCharacter:"\\ebbc"}),t.runAbove=new t("run-above",{fontCharacter:"\\ebbd"}),t.runBelow=new t("run-below",{fontCharacter:"\\ebbe"}),t.notebookTemplate=new t("notebook-template",{fontCharacter:"\\ebbf"}),t.debugRerun=new t("debug-rerun",{fontCharacter:"\\ebc0"}),t.workspaceTrusted=new t("workspace-trusted",{fontCharacter:"\\ebc1"}),t.workspaceUntrusted=new t("workspace-untrusted",{fontCharacter:"\\ebc2"}),t.workspaceUnspecified=new t("workspace-unspecified",{fontCharacter:"\\ebc3"}),t.terminalCmd=new t("terminal-cmd",{fontCharacter:"\\ebc4"}),t.terminalDebian=new t("terminal-debian",{fontCharacter:"\\ebc5"}),t.terminalLinux=new t("terminal-linux",{fontCharacter:"\\ebc6"}),t.terminalPowershell=new t("terminal-powershell",{fontCharacter:"\\ebc7"}),t.terminalTmux=new t("terminal-tmux",{fontCharacter:"\\ebc8"}),t.terminalUbuntu=new t("terminal-ubuntu",{fontCharacter:"\\ebc9"}),t.terminalBash=new t("terminal-bash",{fontCharacter:"\\ebca"}),t.arrowSwap=new t("arrow-swap",{fontCharacter:"\\ebcb"}),t.copy=new t("copy",{fontCharacter:"\\ebcc"}),t.personAdd=new t("person-add",{fontCharacter:"\\ebcd"}),t.filterFilled=new t("filter-filled",{fontCharacter:"\\ebce"}),t.wand=new t("wand",{fontCharacter:"\\ebcf"}),t.debugLineByLine=new t("debug-line-by-line",{fontCharacter:"\\ebd0"}),t.inspect=new t("inspect",{fontCharacter:"\\ebd1"}),t.layers=new t("layers",{fontCharacter:"\\ebd2"}),t.layersDot=new t("layers-dot",{fontCharacter:"\\ebd3"}),t.layersActive=new t("layers-active",{fontCharacter:"\\ebd4"}),t.compass=new t("compass",{fontCharacter:"\\ebd5"}),t.compassDot=new t("compass-dot",{fontCharacter:"\\ebd6"}),t.compassActive=new t("compass-active",{fontCharacter:"\\ebd7"}),t.azure=new t("azure",{fontCharacter:"\\ebd8"}),t.issueDraft=new t("issue-draft",{fontCharacter:"\\ebd9"}),t.gitPullRequestClosed=new t("git-pull-request-closed",{fontCharacter:"\\ebda"}),t.gitPullRequestDraft=new t("git-pull-request-draft",{fontCharacter:"\\ebdb"}),t.debugAll=new t("debug-all",{fontCharacter:"\\ebdc"}),t.debugCoverage=new t("debug-coverage",{fontCharacter:"\\ebdd"}),t.runErrors=new t("run-errors",{fontCharacter:"\\ebde"}),t.folderLibrary=new t("folder-library",{fontCharacter:"\\ebdf"}),t.debugContinueSmall=new t("debug-continue-small",{fontCharacter:"\\ebe0"}),t.beakerStop=new t("beaker-stop",{fontCharacter:"\\ebe1"}),t.graphLine=new t("graph-line",{fontCharacter:"\\ebe2"}),t.graphScatter=new t("graph-scatter",{fontCharacter:"\\ebe3"}),t.pieChart=new t("pie-chart",{fontCharacter:"\\ebe4"}),t.bracket=new t("bracket",t.json.definition),t.bracketDot=new t("bracket-dot",{fontCharacter:"\\ebe5"}),t.bracketError=new t("bracket-error",{fontCharacter:"\\ebe6"}),t.lockSmall=new t("lock-small",{fontCharacter:"\\ebe7"}),t.azureDevops=new t("azure-devops",{fontCharacter:"\\ebe8"}),t.verifiedFilled=new t("verified-filled",{fontCharacter:"\\ebe9"}),t.newLine=new t("newline",{fontCharacter:"\\ebea"}),t.layout=new t("layout",{fontCharacter:"\\ebeb"}),t.layoutActivitybarLeft=new t("layout-activitybar-left",{fontCharacter:"\\ebec"}),t.layoutActivitybarRight=new t("layout-activitybar-right",{fontCharacter:"\\ebed"}),t.layoutPanelLeft=new t("layout-panel-left",{fontCharacter:"\\ebee"}),t.layoutPanelCenter=new t("layout-panel-center",{fontCharacter:"\\ebef"}),t.layoutPanelJustify=new t("layout-panel-justify",{fontCharacter:"\\ebf0"}),t.layoutPanelRight=new t("layout-panel-right",{fontCharacter:"\\ebf1"}),t.layoutPanel=new t("layout-panel",{fontCharacter:"\\ebf2"}),t.layoutSidebarLeft=new t("layout-sidebar-left",{fontCharacter:"\\ebf3"}),t.layoutSidebarRight=new t("layout-sidebar-right",{fontCharacter:"\\ebf4"}),t.layoutStatusbar=new t("layout-statusbar",{fontCharacter:"\\ebf5"}),t.layoutMenubar=new t("layout-menubar",{fontCharacter:"\\ebf6"}),t.layoutCentered=new t("layout-centered",{fontCharacter:"\\ebf7"}),t.layoutSidebarRightOff=new t("layout-sidebar-right-off",{fontCharacter:"\\ec00"}),t.layoutPanelOff=new t("layout-panel-off",{fontCharacter:"\\ec01"}),t.layoutSidebarLeftOff=new t("layout-sidebar-left-off",{fontCharacter:"\\ec02"}),t.target=new t("target",{fontCharacter:"\\ebf8"}),t.indent=new t("indent",{fontCharacter:"\\ebf9"}),t.recordSmall=new t("record-small",{fontCharacter:"\\ebfa"}),t.errorSmall=new t("error-small",{fontCharacter:"\\ebfb"}),t.arrowCircleDown=new t("arrow-circle-down",{fontCharacter:"\\ebfc"}),t.arrowCircleLeft=new t("arrow-circle-left",{fontCharacter:"\\ebfd"}),t.arrowCircleRight=new t("arrow-circle-right",{fontCharacter:"\\ebfe"}),t.arrowCircleUp=new t("arrow-circle-up",{fontCharacter:"\\ebff"}),t.heartFilled=new t("heart-filled",{fontCharacter:"\\ec04"}),t.map=new t("map",{fontCharacter:"\\ec05"}),t.mapFilled=new t("map-filled",{fontCharacter:"\\ec06"}),t.circleSmall=new t("circle-small",{fontCharacter:"\\ec07"}),t.bellSlash=new t("bell-slash",{fontCharacter:"\\ec08"}),t.bellSlashDot=new t("bell-slash-dot",{fontCharacter:"\\ec09"}),t.commentUnresolved=new t("comment-unresolved",{fontCharacter:"\\ec0a"}),t.gitPullRequestGoToChanges=new t("git-pull-request-go-to-changes",{fontCharacter:"\\ec0b"}),t.gitPullRequestNewChanges=new t("git-pull-request-new-changes",{fontCharacter:"\\ec0c"}),t.dialogError=new t("dialog-error",t.error.definition),t.dialogWarning=new t("dialog-warning",t.warning.definition),t.dialogInfo=new t("dialog-info",t.info.definition),t.dialogClose=new t("dialog-close",t.close.definition),t.treeItemExpanded=new t("tree-item-expanded",t.chevronDown.definition),t.treeFilterOnTypeOn=new t("tree-filter-on-type-on",t.listFilter.definition),t.treeFilterOnTypeOff=new t("tree-filter-on-type-off",t.listSelection.definition),t.treeFilterClear=new t("tree-filter-clear",t.close.definition),t.treeItemLoading=new t("tree-item-loading",t.loading.definition),t.menuSelection=new t("menu-selection",t.check.definition),t.menuSubmenu=new t("menu-submenu",t.chevronRight.definition),t.menuBarMore=new t("menubar-more",t.more.definition),t.scrollbarButtonLeft=new t("scrollbar-button-left",t.triangleLeft.definition),t.scrollbarButtonRight=new t("scrollbar-button-right",t.triangleRight.definition),t.scrollbarButtonUp=new t("scrollbar-button-up",t.triangleUp.definition),t.scrollbarButtonDown=new t("scrollbar-button-down",t.triangleDown.definition),t.toolBarMore=new t("toolbar-more",t.more.definition),t.quickInputBack=new t("quick-input-back",t.arrowLeft.definition);function D(k,y){const p=["codicon","codicon-"+k];return y&&p.push("codicon-modifier-"+y),p}e.getClassNamesArray=D;var P;(function(k){k.iconNameSegment="[A-Za-z0-9]+",k.iconNameExpression="[A-Za-z0-9-]+",k.iconModifierExpression="~[A-Za-z]+",k.iconNameCharacter="[A-Za-z0-9~-]";const y=new RegExp(`^(${k.iconNameExpression})(${k.iconModifierExpression})?$`);function p(R){if(R instanceof t)return["codicon","codicon-"+R.id];const w=y.exec(R.id);if(!w)return p(t.error);const[,E,d]=w,I=["codicon","codicon-"+E];return d&&I.push("codicon-modifier-"+d.substr(1)),I}k.asClassNameArray=p;function C(R){return p(R).join(" ")}k.asClassName=C;function T(R){return"."+p(R).join(".")}k.asCSSSelector=T})(P=e.CSSIcon||(e.CSSIcon={}))}),define(ve[82],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=e.createDecorator=void 0;function b(k){return(y,p,C)=>{let T=null,R=null;if(typeof C.value=="function"?(T="value",R=C.value):typeof C.get=="function"&&(T="get",R=C.get),!R)throw new Error("not supported");C[T]=k(R,p)}}e.createDecorator=b;function t(k,y,p){let C=null,T=null;if(typeof p.value=="function"?(C="value",T=p.value,T.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof p.get=="function"&&(C="get",T=p.get),!T)throw new Error("not supported");const R=`$memoize$${y}`;p[C]=function(...w){return this.hasOwnProperty(R)||Object.defineProperty(this,R,{configurable:!1,enumerable:!1,writable:!1,value:T.apply(this,w)}),this[R]}}e.memoize=t;function D(k,y,p){return b((C,T)=>{const R=`$debounce$${T}`,w=`$debounce$result$${T}`;return function(...E){this[w]||(this[w]=p?p():void 0),clearTimeout(this[R]),y&&(this[w]=y(this[w],...E),E=[this[w]]),this[R]=setTimeout(()=>{C.apply(this,E),this[w]=p?p():void 0},k)}})}e.debounce=D;function P(k,y,p){return b((C,T)=>{const R=`$throttle$timer$${T}`,w=`$throttle$result$${T}`,E=`$throttle$lastRun$${T}`,d=`$throttle$pending$${T}`;return function(...I){if(this[w]||(this[w]=p?p():void 0),(this[E]===null||this[E]===void 0)&&(this[E]=-Number.MAX_VALUE),y&&(this[w]=y(this[w],...I)),this[d])return;const v=this[E]+k;v<=Date.now()?(this[E]=Date.now(),C.apply(this,[this[w]]),this[w]=p?p():void 0):(this[d]=!0,this[R]=setTimeout(()=>{this[d]=!1,this[E]=Date.now(),C.apply(this,[this[w]]),this[w]=p?p():void 0},v-Date.now()))}})}e.throttle=P}),define(ve[11],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BugIndicatingError=e.ErrorNoTelemetry=e.ExpectedError=e.NotSupportedError=e.NotImplementedError=e.getErrorMessage=e.disposed=e.readonly=e.illegalState=e.illegalArgument=e.canceled=e.CancellationError=e.isCancellationError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class b{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(i){setTimeout(()=>{throw i.stack?u.isErrorNoTelemetry(i)?new u(i.message+`

`+i.stack):new Error(i.message+`

`+i.stack):i},0)}}addListener(i){return this.listeners.push(i),()=>{this._removeListener(i)}}emit(i){this.listeners.forEach(s=>{s(i)})}_removeListener(i){this.listeners.splice(this.listeners.indexOf(i),1)}setUnexpectedErrorHandler(i){this.unexpectedErrorHandler=i}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(i){this.unexpectedErrorHandler(i),this.emit(i)}onUnexpectedExternalError(i){this.unexpectedErrorHandler(i)}}e.ErrorHandler=b,e.errorHandler=new b;function t(f){e.errorHandler.setUnexpectedErrorHandler(f)}e.setUnexpectedErrorHandler=t;function D(f){p(f)||e.errorHandler.onUnexpectedError(f)}e.onUnexpectedError=D;function P(f){p(f)||e.errorHandler.onUnexpectedExternalError(f)}e.onUnexpectedExternalError=P;function k(f){if(f instanceof Error){const{name:i,message:s}=f,n=f.stacktrace||f.stack;return{$isError:!0,name:i,message:s,stack:n,noTelemetry:u.isErrorNoTelemetry(f)}}return f}e.transformErrorForSerialization=k;const y="Canceled";function p(f){return f instanceof C?!0:f instanceof Error&&f.name===y&&f.message===y}e.isCancellationError=p;class C extends Error{constructor(){super(y);this.name=this.message}}e.CancellationError=C;function T(){const f=new Error(y);return f.name=f.message,f}e.canceled=T;function R(f){return f?new Error(`Illegal argument: ${f}`):new Error("Illegal argument")}e.illegalArgument=R;function w(f){return f?new Error(`Illegal state: ${f}`):new Error("Illegal state")}e.illegalState=w;function E(f){return f?new Error(`readonly property '${f} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=E;function d(f){const i=new Error(`${f} has been disposed`);return i.name="DISPOSED",i}e.disposed=d;function I(f){return f?f.message?f.message:f.stack?f.stack.split(`
`)[0]:String(f):"Error"}e.getErrorMessage=I;class v extends Error{constructor(i){super("NotImplemented");i&&(this.message=i)}}e.NotImplementedError=v;class m extends Error{constructor(i){super("NotSupported");i&&(this.message=i)}}e.NotSupportedError=m;class g extends Error{constructor(){super(...arguments);this.isExpected=!0}}e.ExpectedError=g;class u extends Error{constructor(i){super(i);this.name="ErrorNoTelemetry"}static fromError(i){if(i instanceof u)return i;const s=new u;return s.message=i.message,s.stack=i.stack,s}static isErrorNoTelemetry(i){return i.name==="ErrorNoTelemetry"}}e.ErrorNoTelemetry=u;class c extends Error{constructor(i){super(i||"An unexpected bug occurred.");Object.setPrototypeOf(this,c.prototype);debugger}}e.BugIndicatingError=c}),define(ve[18],we([0,1,11]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayQueue=e.findMinBy=e.findLastMaxBy=e.findMaxBy=e.numberComparator=e.tieBreakComparators=e.compareBy=e.CompareResult=e.splice=e.insertInto=e.mapFind=e.getRandomElement=e.asArray=e.mapArrayOrNot=e.pushMany=e.pushToEnd=e.pushToStart=e.shuffle=e.arrayInsert=e.remove=e.insert=e.index=e.range=e.flatten=e.commonPrefixLength=e.lastOrDefault=e.firstOrDefault=e.lastIndex=e.findLast=e.uniqueFilter=e.distinct=e.isNonEmptyArray=e.isFalsyOrEmpty=e.move=e.coalesceInPlace=e.coalesce=e.topAsync=e.top=e.delta=e.sortedDiff=e.groupBy=e.quickSelect=e.findFirstInSorted=e.binarySearch2=e.binarySearch=e.removeFastWithoutKeepingOrder=e.equals=e.tail2=e.tail=void 0;function t(te,Q=0){return te[te.length-(1+Q)]}e.tail=t;function D(te){if(te.length===0)throw new Error("Invalid tail call");return[te.slice(0,te.length-1),te[te.length-1]]}e.tail2=D;function P(te,Q,Z=(ae,j)=>ae===j){if(te===Q)return!0;if(!te||!Q||te.length!==Q.length)return!1;for(let ae=0,j=te.length;ae<j;ae++)if(!Z(te[ae],Q[ae]))return!1;return!0}e.equals=P;function k(te,Q){const Z=te.length-1;Q<Z&&(te[Q]=te[Z]),te.pop()}e.removeFastWithoutKeepingOrder=k;function y(te,Q,Z){return p(te.length,ae=>Z(te[ae],Q))}e.binarySearch=y;function p(te,Q){let Z=0,ae=te-1;for(;Z<=ae;){const j=(Z+ae)/2|0,ie=Q(j);if(ie<0)Z=j+1;else if(ie>0)ae=j-1;else return j}return-(Z+1)}e.binarySearch2=p;function C(te,Q){let Z=0,ae=te.length;if(ae===0)return 0;for(;Z<ae;){const j=Math.floor((Z+ae)/2);Q(te[j])?ae=j:Z=j+1}return Z}e.findFirstInSorted=C;function T(te,Q,Z){if(te=te|0,te>=Q.length)throw new TypeError("invalid index");const ae=Q[Math.floor(Q.length*Math.random())],j=[],ie=[],H=[];for(const Y of Q){const le=Z(Y,ae);le<0?j.push(Y):le>0?ie.push(Y):H.push(Y)}return te<j.length?T(te,j,Z):te<j.length+H.length?H[0]:T(te-(j.length+H.length),ie,Z)}e.quickSelect=T;function R(te,Q){const Z=[];let ae;for(const j of te.slice(0).sort(Q))!ae||Q(ae[0],j)!==0?(ae=[j],Z.push(ae)):ae.push(j);return Z}e.groupBy=R;function w(te,Q,Z){const ae=[];function j(Y,le,pe){if(le===0&&pe.length===0)return;const Pe=ae[ae.length-1];Pe&&Pe.start+Pe.deleteCount===Y?(Pe.deleteCount+=le,Pe.toInsert.push(...pe)):ae.push({start:Y,deleteCount:le,toInsert:pe})}let ie=0,H=0;for(;;){if(ie===te.length){j(ie,0,Q.slice(H));break}if(H===Q.length){j(ie,te.length-ie,[]);break}const Y=te[ie],le=Q[H],pe=Z(Y,le);pe===0?(ie+=1,H+=1):pe<0?(j(ie,1,[]),ie+=1):pe>0&&(j(ie,0,[le]),H+=1)}return ae}e.sortedDiff=w;function E(te,Q,Z){const ae=w(te,Q,Z),j=[],ie=[];for(const H of ae)j.push(...te.slice(H.start,H.start+H.deleteCount)),ie.push(...H.toInsert);return{removed:j,added:ie}}e.delta=E;function d(te,Q,Z){if(Z===0)return[];const ae=te.slice(0,Z).sort(Q);return v(te,Q,ae,Z,te.length),ae}e.top=d;function I(te,Q,Z,ae,j){return Z===0?Promise.resolve([]):new Promise((ie,H)=>{(async()=>{const Y=te.length,le=te.slice(0,Z).sort(Q);for(let pe=Z,Pe=Math.min(Z+ae,Y);pe<Y;pe=Pe,Pe=Math.min(Pe+ae,Y)){if(pe>Z&&await new Promise(Te=>setTimeout(Te)),j&&j.isCancellationRequested)throw new b.CancellationError;v(te,Q,le,pe,Pe)}return le})().then(ie,H)})}e.topAsync=I;function v(te,Q,Z,ae,j){for(const ie=Z.length;ae<j;ae++){const H=te[ae];if(Q(H,Z[ie-1])<0){Z.pop();const Y=C(Z,le=>Q(H,le)<0);Z.splice(Y,0,H)}}}function m(te){return te.filter(Q=>!!Q)}e.coalesce=m;function g(te){let Q=0;for(let Z=0;Z<te.length;Z++)te[Z]&&(te[Q]=te[Z],Q+=1);te.length=Q}e.coalesceInPlace=g;function u(te,Q,Z){te.splice(Z,0,te.splice(Q,1)[0])}e.move=u;function c(te){return!Array.isArray(te)||te.length===0}e.isFalsyOrEmpty=c;function f(te){return Array.isArray(te)&&te.length>0}e.isNonEmptyArray=f;function i(te,Q=Z=>Z){const Z=new Set;return te.filter(ae=>{const j=Q(ae);return Z.has(j)?!1:(Z.add(j),!0)})}e.distinct=i;function s(te){const Q=new Set;return Z=>{const ae=te(Z);return Q.has(ae)?!1:(Q.add(ae),!0)}}e.uniqueFilter=s;function n(te,Q){const Z=a(te,Q);if(Z!==-1)return te[Z]}e.findLast=n;function a(te,Q){for(let Z=te.length-1;Z>=0;Z--){const ae=te[Z];if(Q(ae))return Z}return-1}e.lastIndex=a;function o(te,Q){return te.length>0?te[0]:Q}e.firstOrDefault=o;function r(te,Q){return te.length>0?te[te.length-1]:Q}e.lastOrDefault=r;function l(te,Q,Z=(ae,j)=>ae===j){let ae=0;for(let j=0,ie=Math.min(te.length,Q.length);j<ie&&Z(te[j],Q[j]);j++)ae++;return ae}e.commonPrefixLength=l;function h(te){return[].concat(...te)}e.flatten=h;function S(te,Q){let Z=typeof Q=="number"?te:0;typeof Q=="number"?Z=te:(Z=0,Q=te);const ae=[];if(Z<=Q)for(let j=Z;j<Q;j++)ae.push(j);else for(let j=Z;j>Q;j--)ae.push(j);return ae}e.range=S;function A(te,Q,Z){return te.reduce((ae,j)=>(ae[Q(j)]=Z?Z(j):j,ae),Object.create(null))}e.index=A;function $(te,Q){return te.push(Q),()=>W(te,Q)}e.insert=$;function W(te,Q){const Z=te.indexOf(Q);if(Z>-1)return te.splice(Z,1),Q}e.remove=W;function ee(te,Q,Z){const ae=te.slice(0,Q),j=te.slice(Q);return ae.concat(Z,j)}e.arrayInsert=ee;function L(te,Q){let Z;if(typeof Q=="number"){let ae=Q;Z=()=>{const j=Math.sin(ae++)*179426549;return j-Math.floor(j)}}else Z=Math.random;for(let ae=te.length-1;ae>0;ae-=1){const j=Math.floor(Z()*(ae+1)),ie=te[ae];te[ae]=te[j],te[j]=ie}}e.shuffle=L;function q(te,Q){const Z=te.indexOf(Q);Z>-1&&(te.splice(Z,1),te.unshift(Q))}e.pushToStart=q;function ne(te,Q){const Z=te.indexOf(Q);Z>-1&&(te.splice(Z,1),te.push(Q))}e.pushToEnd=ne;function x(te,Q){for(const Z of Q)te.push(Z)}e.pushMany=x;function fe(te,Q){return Array.isArray(te)?te.map(Q):Q(te)}e.mapArrayOrNot=fe;function M(te){return Array.isArray(te)?te:[te]}e.asArray=M;function B(te){return te[Math.floor(Math.random()*te.length)]}e.getRandomElement=B;function U(te,Q){for(const Z of te){const ae=Q(Z);if(ae!==void 0)return ae}}e.mapFind=U;function z(te,Q,Z){const ae=ue(te,Q),j=te.length,ie=Z.length;te.length=j+ie;for(let H=j-1;H>=ae;H--)te[H+ie]=te[H];for(let H=0;H<ie;H++)te[H+ae]=Z[H]}e.insertInto=z;function X(te,Q,Z,ae){const j=ue(te,Q),ie=te.splice(j,Z);return z(te,j,ae),ie}e.splice=X;function ue(te,Q){return Q<0?Math.max(Q+te.length,0):Math.min(Q,te.length)}var de;(function(te){function Q(j){return j<0}te.isLessThan=Q;function Z(j){return j>0}te.isGreaterThan=Z;function ae(j){return j===0}te.isNeitherLessOrGreaterThan=ae,te.greaterThan=1,te.lessThan=-1,te.neitherLessOrGreaterThan=0})(de=e.CompareResult||(e.CompareResult={}));function G(te,Q){return(Z,ae)=>Q(te(Z),te(ae))}e.compareBy=G;function se(...te){return(Q,Z)=>{for(const ae of te){const j=ae(Q,Z);if(!de.isNeitherLessOrGreaterThan(j))return j}return de.neitherLessOrGreaterThan}}e.tieBreakComparators=se;const O=(te,Q)=>te-Q;e.numberComparator=O;function F(te,Q){if(te.length===0)return;let Z=te[0];for(let ae=1;ae<te.length;ae++){const j=te[ae];Q(j,Z)>0&&(Z=j)}return Z}e.findMaxBy=F;function K(te,Q){if(te.length===0)return;let Z=te[0];for(let ae=1;ae<te.length;ae++){const j=te[ae];Q(j,Z)>=0&&(Z=j)}return Z}e.findLastMaxBy=K;function re(te,Q){return F(te,(Z,ae)=>-Q(Z,ae))}e.findMinBy=re;class he{constructor(Q){this.items=Q,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(Q){let Z=this.firstIdx;for(;Z<this.items.length&&Q(this.items[Z]);)Z++;const ae=Z===this.firstIdx?null:this.items.slice(this.firstIdx,Z);return this.firstIdx=Z,ae}takeFromEndWhile(Q){let Z=this.lastIdx;for(;Z>=0&&Q(this.items[Z]);)Z--;const ae=Z===this.lastIdx?null:this.items.slice(Z+1,this.lastIdx+1);return this.lastIdx=Z,ae}peek(){if(this.length!==0)return this.items[this.firstIdx]}peekLast(){if(this.length!==0)return this.items[this.lastIdx]}dequeue(){const Q=this.items[this.firstIdx];return this.firstIdx++,Q}removeLast(){const Q=this.items[this.lastIdx];return this.lastIdx--,Q}takeCount(Q){const Z=this.items.slice(this.firstIdx,this.firstIdx+Q);return this.firstIdx+=Q,Z}}e.ArrayQueue=he}),define(ve[64],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function b(t){const D=this;let P=!1,k;return function(){return P||(P=!0,k=t.apply(D,arguments)),k}}e.once=b}),define(ve[46],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var b;(function(t){function D(s){return s&&typeof s=="object"&&typeof s[Symbol.iterator]=="function"}t.is=D;const P=Object.freeze([]);function k(){return P}t.empty=k;function*y(s){yield s}t.single=y;function p(s){return s||P}t.from=p;function C(s){return!s||s[Symbol.iterator]().next().done===!0}t.isEmpty=C;function T(s){return s[Symbol.iterator]().next().value}t.first=T;function R(s,n){for(const a of s)if(n(a))return!0;return!1}t.some=R;function w(s,n){for(const a of s)if(n(a))return a}t.find=w;function*E(s,n){for(const a of s)n(a)&&(yield a)}t.filter=E;function*d(s,n){let a=0;for(const o of s)yield n(o,a++)}t.map=d;function*I(...s){for(const n of s)for(const a of n)yield a}t.concat=I;function*v(s){for(const n of s)for(const a of n)yield a}t.concatNested=v;function m(s,n,a){let o=a;for(const r of s)o=n(o,r);return o}t.reduce=m;function g(s,n){let a=0;for(const o of s)n(o,a++)}t.forEach=g;function*u(s,n,a=s.length){for(n<0&&(n+=s.length),a<0?a+=s.length:a>s.length&&(a=s.length);n<a;n++)yield s[n]}t.slice=u;function c(s,n=Number.POSITIVE_INFINITY){const a=[];if(n===0)return[a,s];const o=s[Symbol.iterator]();for(let r=0;r<n;r++){const l=o.next();if(l.done)return[a,t.empty()];a.push(l.value)}return[a,{[Symbol.iterator](){return o}}]}t.consume=c;function f(s){return c(s)[0]}t.collect=f;function i(s,n,a=(o,r)=>o===r){const o=s[Symbol.iterator](),r=n[Symbol.iterator]();for(;;){const l=o.next(),h=r.next();if(l.done!==h.done)return!1;if(l.done)return!0;if(!a(l.value,h.value))return!1}}t.equals=i})(b=e.Iterable||(e.Iterable={}))}),define(ve[65],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeType=e.stripComments=e.visit=e.findNodeAtOffset=e.contains=e.getNodeValue=e.getNodePath=e.findNodeAtLocation=e.parseTree=e.parse=e.getLocation=e.createScanner=e.ParseOptions=e.ParseErrorCode=e.SyntaxKind=e.ScanError=void 0;var b;(function(i){i[i.None=0]="None",i[i.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",i[i.UnexpectedEndOfString=2]="UnexpectedEndOfString",i[i.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",i[i.InvalidUnicode=4]="InvalidUnicode",i[i.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",i[i.InvalidCharacter=6]="InvalidCharacter"})(b=e.ScanError||(e.ScanError={}));var t;(function(i){i[i.OpenBraceToken=1]="OpenBraceToken",i[i.CloseBraceToken=2]="CloseBraceToken",i[i.OpenBracketToken=3]="OpenBracketToken",i[i.CloseBracketToken=4]="CloseBracketToken",i[i.CommaToken=5]="CommaToken",i[i.ColonToken=6]="ColonToken",i[i.NullKeyword=7]="NullKeyword",i[i.TrueKeyword=8]="TrueKeyword",i[i.FalseKeyword=9]="FalseKeyword",i[i.StringLiteral=10]="StringLiteral",i[i.NumericLiteral=11]="NumericLiteral",i[i.LineCommentTrivia=12]="LineCommentTrivia",i[i.BlockCommentTrivia=13]="BlockCommentTrivia",i[i.LineBreakTrivia=14]="LineBreakTrivia",i[i.Trivia=15]="Trivia",i[i.Unknown=16]="Unknown",i[i.EOF=17]="EOF"})(t=e.SyntaxKind||(e.SyntaxKind={}));var D;(function(i){i[i.InvalidSymbol=1]="InvalidSymbol",i[i.InvalidNumberFormat=2]="InvalidNumberFormat",i[i.PropertyNameExpected=3]="PropertyNameExpected",i[i.ValueExpected=4]="ValueExpected",i[i.ColonExpected=5]="ColonExpected",i[i.CommaExpected=6]="CommaExpected",i[i.CloseBraceExpected=7]="CloseBraceExpected",i[i.CloseBracketExpected=8]="CloseBracketExpected",i[i.EndOfFileExpected=9]="EndOfFileExpected",i[i.InvalidCommentToken=10]="InvalidCommentToken",i[i.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",i[i.UnexpectedEndOfString=12]="UnexpectedEndOfString",i[i.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",i[i.InvalidUnicode=14]="InvalidUnicode",i[i.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",i[i.InvalidCharacter=16]="InvalidCharacter"})(D=e.ParseErrorCode||(e.ParseErrorCode={}));var P;(function(i){i.DEFAULT={allowTrailingComma:!0}})(P=e.ParseOptions||(e.ParseOptions={}));function k(i,s=!1){let n=0;const a=i.length;let o="",r=0,l=16,h=0;function S(ne){let x=0,fe=0;for(;x<ne;){const M=i.charCodeAt(n);if(M>=48&&M<=57)fe=fe*16+M-48;else if(M>=65&&M<=70)fe=fe*16+M-65+10;else if(M>=97&&M<=102)fe=fe*16+M-97+10;else break;n++,x++}return x<ne&&(fe=-1),fe}function A(ne){n=ne,o="",r=0,l=16,h=0}function $(){const ne=n;if(i.charCodeAt(n)===48)n++;else for(n++;n<i.length&&C(i.charCodeAt(n));)n++;if(n<i.length&&i.charCodeAt(n)===46)if(n++,n<i.length&&C(i.charCodeAt(n)))for(n++;n<i.length&&C(i.charCodeAt(n));)n++;else return h=3,i.substring(ne,n);let x=n;if(n<i.length&&(i.charCodeAt(n)===69||i.charCodeAt(n)===101))if(n++,(n<i.length&&i.charCodeAt(n)===43||i.charCodeAt(n)===45)&&n++,n<i.length&&C(i.charCodeAt(n))){for(n++;n<i.length&&C(i.charCodeAt(n));)n++;x=n}else h=3;return i.substring(ne,x)}function W(){let ne="",x=n;for(;;){if(n>=a){ne+=i.substring(x,n),h=2;break}const fe=i.charCodeAt(n);if(fe===34){ne+=i.substring(x,n),n++;break}if(fe===92){if(ne+=i.substring(x,n),n++,n>=a){h=2;break}switch(i.charCodeAt(n++)){case 34:ne+='"';break;case 92:ne+="\\";break;case 47:ne+="/";break;case 98:ne+="\b";break;case 102:ne+="\f";break;case 110:ne+=`
`;break;case 114:ne+="\r";break;case 116:ne+="	";break;case 117:{const B=S(4);B>=0?ne+=String.fromCharCode(B):h=4;break}default:h=5}x=n;continue}if(fe>=0&&fe<=31)if(p(fe)){ne+=i.substring(x,n),h=2;break}else h=6;n++}return ne}function ee(){if(o="",h=0,r=n,n>=a)return r=a,l=17;let ne=i.charCodeAt(n);if(y(ne)){do n++,o+=String.fromCharCode(ne),ne=i.charCodeAt(n);while(y(ne));return l=15}if(p(ne))return n++,o+=String.fromCharCode(ne),ne===13&&i.charCodeAt(n)===10&&(n++,o+=`
`),l=14;switch(ne){case 123:return n++,l=1;case 125:return n++,l=2;case 91:return n++,l=3;case 93:return n++,l=4;case 58:return n++,l=6;case 44:return n++,l=5;case 34:return n++,o=W(),l=10;case 47:{const x=n-1;if(i.charCodeAt(n+1)===47){for(n+=2;n<a&&!p(i.charCodeAt(n));)n++;return o=i.substring(x,n),l=12}if(i.charCodeAt(n+1)===42){n+=2;const fe=a-1;let M=!1;for(;n<fe;){if(i.charCodeAt(n)===42&&i.charCodeAt(n+1)===47){n+=2,M=!0;break}n++}return M||(n++,h=1),o=i.substring(x,n),l=13}return o+=String.fromCharCode(ne),n++,l=16}case 45:if(o+=String.fromCharCode(ne),n++,n===a||!C(i.charCodeAt(n)))return l=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=$(),l=11;default:for(;n<a&&L(ne);)n++,ne=i.charCodeAt(n);if(r!==n){switch(o=i.substring(r,n),o){case"true":return l=8;case"false":return l=9;case"null":return l=7}return l=16}return o+=String.fromCharCode(ne),n++,l=16}}function L(ne){if(y(ne)||p(ne))return!1;switch(ne){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function q(){let ne;do ne=ee();while(ne>=12&&ne<=15);return ne}return{setPosition:A,getPosition:()=>n,scan:s?q:ee,getToken:()=>l,getTokenValue:()=>o,getTokenOffset:()=>r,getTokenLength:()=>n-r,getTokenError:()=>h}}e.createScanner=k;function y(i){return i===32||i===9||i===11||i===12||i===160||i===5760||i>=8192&&i<=8203||i===8239||i===8287||i===12288||i===65279}function p(i){return i===10||i===13||i===8232||i===8233}function C(i){return i>=48&&i<=57}var T;(function(i){i[i.nullCharacter=0]="nullCharacter",i[i.maxAsciiCharacter=127]="maxAsciiCharacter",i[i.lineFeed=10]="lineFeed",i[i.carriageReturn=13]="carriageReturn",i[i.lineSeparator=8232]="lineSeparator",i[i.paragraphSeparator=8233]="paragraphSeparator",i[i.nextLine=133]="nextLine",i[i.space=32]="space",i[i.nonBreakingSpace=160]="nonBreakingSpace",i[i.enQuad=8192]="enQuad",i[i.emQuad=8193]="emQuad",i[i.enSpace=8194]="enSpace",i[i.emSpace=8195]="emSpace",i[i.threePerEmSpace=8196]="threePerEmSpace",i[i.fourPerEmSpace=8197]="fourPerEmSpace",i[i.sixPerEmSpace=8198]="sixPerEmSpace",i[i.figureSpace=8199]="figureSpace",i[i.punctuationSpace=8200]="punctuationSpace",i[i.thinSpace=8201]="thinSpace",i[i.hairSpace=8202]="hairSpace",i[i.zeroWidthSpace=8203]="zeroWidthSpace",i[i.narrowNoBreakSpace=8239]="narrowNoBreakSpace",i[i.ideographicSpace=12288]="ideographicSpace",i[i.mathematicalSpace=8287]="mathematicalSpace",i[i.ogham=5760]="ogham",i[i._=95]="_",i[i.$=36]="$",i[i._0=48]="_0",i[i._1=49]="_1",i[i._2=50]="_2",i[i._3=51]="_3",i[i._4=52]="_4",i[i._5=53]="_5",i[i._6=54]="_6",i[i._7=55]="_7",i[i._8=56]="_8",i[i._9=57]="_9",i[i.a=97]="a",i[i.b=98]="b",i[i.c=99]="c",i[i.d=100]="d",i[i.e=101]="e",i[i.f=102]="f",i[i.g=103]="g",i[i.h=104]="h",i[i.i=105]="i",i[i.j=106]="j",i[i.k=107]="k",i[i.l=108]="l",i[i.m=109]="m",i[i.n=110]="n",i[i.o=111]="o",i[i.p=112]="p",i[i.q=113]="q",i[i.r=114]="r",i[i.s=115]="s",i[i.t=116]="t",i[i.u=117]="u",i[i.v=118]="v",i[i.w=119]="w",i[i.x=120]="x",i[i.y=121]="y",i[i.z=122]="z",i[i.A=65]="A",i[i.B=66]="B",i[i.C=67]="C",i[i.D=68]="D",i[i.E=69]="E",i[i.F=70]="F",i[i.G=71]="G",i[i.H=72]="H",i[i.I=73]="I",i[i.J=74]="J",i[i.K=75]="K",i[i.L=76]="L",i[i.M=77]="M",i[i.N=78]="N",i[i.O=79]="O",i[i.P=80]="P",i[i.Q=81]="Q",i[i.R=82]="R",i[i.S=83]="S",i[i.T=84]="T",i[i.U=85]="U",i[i.V=86]="V",i[i.W=87]="W",i[i.X=88]="X",i[i.Y=89]="Y",i[i.Z=90]="Z",i[i.ampersand=38]="ampersand",i[i.asterisk=42]="asterisk",i[i.at=64]="at",i[i.backslash=92]="backslash",i[i.bar=124]="bar",i[i.caret=94]="caret",i[i.closeBrace=125]="closeBrace",i[i.closeBracket=93]="closeBracket",i[i.closeParen=41]="closeParen",i[i.colon=58]="colon",i[i.comma=44]="comma",i[i.dot=46]="dot",i[i.doubleQuote=34]="doubleQuote",i[i.equals=61]="equals",i[i.exclamation=33]="exclamation",i[i.greaterThan=62]="greaterThan",i[i.lessThan=60]="lessThan",i[i.minus=45]="minus",i[i.openBrace=123]="openBrace",i[i.openBracket=91]="openBracket",i[i.openParen=40]="openParen",i[i.percent=37]="percent",i[i.plus=43]="plus",i[i.question=63]="question",i[i.semicolon=59]="semicolon",i[i.singleQuote=39]="singleQuote",i[i.slash=47]="slash",i[i.tilde=126]="tilde",i[i.backspace=8]="backspace",i[i.formFeed=12]="formFeed",i[i.byteOrderMark=65279]="byteOrderMark",i[i.tab=9]="tab",i[i.verticalTab=11]="verticalTab"})(T||(T={}));function R(i,s){const n=[],a=new Object;let o;const r={value:{},offset:0,length:0,type:"object",parent:void 0};let l=!1;function h(S,A,$,W){r.value=S,r.offset=A,r.length=$,r.type=W,r.colonOffset=void 0,o=r}try{u(i,{onObjectBegin:(S,A)=>{if(s<=S)throw a;o=void 0,l=s>S,n.push("")},onObjectProperty:(S,A,$)=>{if(s<A||(h(S,A,$,"property"),n[n.length-1]=S,s<=A+$))throw a},onObjectEnd:(S,A)=>{if(s<=S)throw a;o=void 0,n.pop()},onArrayBegin:(S,A)=>{if(s<=S)throw a;o=void 0,n.push(0)},onArrayEnd:(S,A)=>{if(s<=S)throw a;o=void 0,n.pop()},onLiteralValue:(S,A,$)=>{if(s<A||(h(S,A,$,f(S)),s<=A+$))throw a},onSeparator:(S,A,$)=>{if(s<=A)throw a;if(S===":"&&o&&o.type==="property")o.colonOffset=A,l=!1,o=void 0;else if(S===","){const W=n[n.length-1];typeof W=="number"?n[n.length-1]=W+1:(l=!0,n[n.length-1]=""),o=void 0}}})}catch(S){if(S!==a)throw S}return{path:n,previousNode:o,isAtPropertyKey:l,matches:S=>{let A=0;for(let $=0;A<S.length&&$<n.length;$++)if(S[A]===n[$]||S[A]==="*")A++;else if(S[A]!=="**")return!1;return A===S.length}}}e.getLocation=R;function w(i,s=[],n=P.DEFAULT){let a=null,o=[];const r=[];function l(S){Array.isArray(o)?o.push(S):a!==null&&(o[a]=S)}return u(i,{onObjectBegin:()=>{const S={};l(S),r.push(o),o=S,a=null},onObjectProperty:S=>{a=S},onObjectEnd:()=>{o=r.pop()},onArrayBegin:()=>{const S=[];l(S),r.push(o),o=S,a=null},onArrayEnd:()=>{o=r.pop()},onLiteralValue:l,onError:(S,A,$)=>{s.push({error:S,offset:A,length:$})}},n),o[0]}e.parse=w;function E(i,s=[],n=P.DEFAULT){let a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function o(S){a.type==="property"&&(a.length=S-a.offset,a=a.parent)}function r(S){return a.children.push(S),S}u(i,{onObjectBegin:S=>{a=r({type:"object",offset:S,length:-1,parent:a,children:[]})},onObjectProperty:(S,A,$)=>{a=r({type:"property",offset:A,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:S,offset:A,length:$,parent:a})},onObjectEnd:(S,A)=>{a.length=S+A-a.offset,a=a.parent,o(S+A)},onArrayBegin:(S,A)=>{a=r({type:"array",offset:S,length:-1,parent:a,children:[]})},onArrayEnd:(S,A)=>{a.length=S+A-a.offset,a=a.parent,o(S+A)},onLiteralValue:(S,A,$)=>{r({type:f(S),offset:A,length:$,parent:a,value:S}),o(A+$)},onSeparator:(S,A,$)=>{a.type==="property"&&(S===":"?a.colonOffset=A:S===","&&o(A))},onError:(S,A,$)=>{s.push({error:S,offset:A,length:$})}},n);const h=a.children[0];return h&&delete h.parent,h}e.parseTree=E;function d(i,s){if(!i)return;let n=i;for(const a of s)if(typeof a=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;let o=!1;for(const r of n.children)if(Array.isArray(r.children)&&r.children[0].value===a){n=r.children[1],o=!0;break}if(!o)return}else{const o=a;if(n.type!=="array"||o<0||!Array.isArray(n.children)||o>=n.children.length)return;n=n.children[o]}return n}e.findNodeAtLocation=d;function I(i){if(!i.parent||!i.parent.children)return[];const s=I(i.parent);if(i.parent.type==="property"){const n=i.parent.children[0].value;s.push(n)}else if(i.parent.type==="array"){const n=i.parent.children.indexOf(i);n!==-1&&s.push(n)}return s}e.getNodePath=I;function v(i){switch(i.type){case"array":return i.children.map(v);case"object":{const s=Object.create(null);for(const n of i.children){const a=n.children[1];a&&(s[n.children[0].value]=v(a))}return s}case"null":case"string":case"number":case"boolean":return i.value;default:return}}e.getNodeValue=v;function m(i,s,n=!1){return s>=i.offset&&s<i.offset+i.length||n&&s===i.offset+i.length}e.contains=m;function g(i,s,n=!1){if(m(i,s,n)){const a=i.children;if(Array.isArray(a))for(let o=0;o<a.length&&a[o].offset<=s;o++){const r=g(a[o],s,n);if(r)return r}return i}}e.findNodeAtOffset=g;function u(i,s,n=P.DEFAULT){const a=k(i,!1);function o(G){return G?()=>G(a.getTokenOffset(),a.getTokenLength()):()=>!0}function r(G){return G?se=>G(se,a.getTokenOffset(),a.getTokenLength()):()=>!0}const l=o(s.onObjectBegin),h=r(s.onObjectProperty),S=o(s.onObjectEnd),A=o(s.onArrayBegin),$=o(s.onArrayEnd),W=r(s.onLiteralValue),ee=r(s.onSeparator),L=o(s.onComment),q=r(s.onError),ne=n&&n.disallowComments,x=n&&n.allowTrailingComma;function fe(){for(;;){const G=a.scan();switch(a.getTokenError()){case 4:M(14);break;case 5:M(15);break;case 3:M(13);break;case 1:ne||M(11);break;case 2:M(12);break;case 6:M(16);break}switch(G){case 12:case 13:ne?M(10):L();break;case 16:M(1);break;case 15:case 14:break;default:return G}}}function M(G,se=[],O=[]){if(q(G),se.length+O.length>0){let F=a.getToken();for(;F!==17;){if(se.indexOf(F)!==-1){fe();break}else if(O.indexOf(F)!==-1)break;F=fe()}}}function B(G){const se=a.getTokenValue();return G?W(se):h(se),fe(),!0}function U(){switch(a.getToken()){case 11:{let G=0;try{G=JSON.parse(a.getTokenValue()),typeof G!="number"&&(M(2),G=0)}catch{M(2)}W(G);break}case 7:W(null);break;case 8:W(!0);break;case 9:W(!1);break;default:return!1}return fe(),!0}function z(){return a.getToken()!==10?(M(3,[],[2,5]),!1):(B(!1),a.getToken()===6?(ee(":"),fe(),de()||M(4,[],[2,5])):M(5,[],[2,5]),!0)}function X(){l(),fe();let G=!1;for(;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(G||M(4,[],[]),ee(","),fe(),a.getToken()===2&&x)break}else G&&M(6,[],[]);z()||M(4,[],[2,5]),G=!0}return S(),a.getToken()!==2?M(7,[2],[]):fe(),!0}function ue(){A(),fe();let G=!1;for(;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(G||M(4,[],[]),ee(","),fe(),a.getToken()===4&&x)break}else G&&M(6,[],[]);de()||M(4,[],[4,5]),G=!0}return $(),a.getToken()!==4?M(8,[4],[]):fe(),!0}function de(){switch(a.getToken()){case 3:return ue();case 1:return X();case 10:return B(!0);default:return U()}}return fe(),a.getToken()===17?n.allowEmptyContent?!0:(M(4,[],[]),!1):de()?(a.getToken()!==17&&M(9,[],[]),!0):(M(4,[],[]),!1)}e.visit=u;function c(i,s){const n=k(i),a=[];let o,r=0,l;do switch(l=n.getPosition(),o=n.scan(),o){case 12:case 13:case 17:r!==l&&a.push(i.substring(r,l)),s!==void 0&&a.push(n.getTokenValue().replace(/[^\r\n]/g,s)),r=n.getPosition();break}while(o!==17);return a.join("")}e.stripComments=c;function f(i){switch(typeof i){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(i){if(Array.isArray(i))return"array"}else return"null";return"object"}default:return"null"}}e.getNodeType=f}),define(ve[132],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class b{constructor(D){this.executor=D,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(D){this._error=D}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}map(D){return new b(()=>D(this.getValue()))}}e.Lazy=b}),define(ve[2],we([0,1,64,46]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.disposeOnReturn=e.ImmortalReference=e.AsyncReferenceCollection=e.ReferenceCollection=e.SafeDisposable=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.dispose=e.isDisposable=e.MultiDisposeError=e.markAsSingleton=e.setDisposableTracker=void 0;const D=!1;let P=null;function k(o){P=o}if(e.setDisposableTracker=k,D){const o="__is_disposable_tracked__";k(new class{trackDisposable(r){const l=new Error("Potentially leaked disposable").stack;setTimeout(()=>{r[o]||console.log(l)},3e3)}setParent(r,l){if(r&&r!==g.None)try{r[o]=!0}catch{}}markAsDisposed(r){if(r&&r!==g.None)try{r[o]=!0}catch{}}markAsSingleton(r){}})}function y(o){return P?.trackDisposable(o),o}function p(o){P?.markAsDisposed(o)}function C(o,r){P?.setParent(o,r)}function T(o,r){if(!!P)for(const l of o)P.setParent(l,r)}function R(o){return P?.markAsSingleton(o),o}e.markAsSingleton=R;class w extends Error{constructor(r){super(`Encountered errors while disposing of store. Errors: [${r.join(", ")}]`);this.errors=r}}e.MultiDisposeError=w;function E(o){return typeof o.dispose=="function"&&o.dispose.length===0}e.isDisposable=E;function d(o){if(t.Iterable.is(o)){const r=[];for(const l of o)if(l)try{l.dispose()}catch(h){r.push(h)}if(r.length===1)throw r[0];if(r.length>1)throw new w(r);return Array.isArray(o)?[]:o}else if(o)return o.dispose(),o}e.dispose=d;function I(...o){const r=v(()=>d(o));return T(o,r),r}e.combinedDisposable=I;function v(o){const r=y({dispose:(0,b.once)(()=>{p(r),o()})});return r}e.toDisposable=v;class m{constructor(){this._toDispose=new Set,this._isDisposed=!1,y(this)}dispose(){this._isDisposed||(p(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{d(this._toDispose.values())}finally{this._toDispose.clear()}}add(r){if(!r)return r;if(r===this)throw new Error("Cannot register a disposable on itself!");return C(r,this),this._isDisposed?m.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(r),r}}e.DisposableStore=m,m.DISABLE_DISPOSED_WARNING=!1;class g{constructor(){this._store=new m,y(this),C(this._store,this)}dispose(){p(this),this._store.dispose()}_register(r){if(r===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(r)}}e.Disposable=g,g.None=Object.freeze({dispose(){}});class u{constructor(){this._isDisposed=!1,y(this)}get value(){return this._isDisposed?void 0:this._value}set value(r){this._isDisposed||r===this._value||(this._value?.dispose(),r&&C(r,this),this._value=r)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,p(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const r=this._value;return this._value=void 0,r&&C(r,null),r}}e.MutableDisposable=u;class c{constructor(r){this._disposable=r,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose(),this}}e.RefCountedDisposable=c;class f{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,y(this)}set(r){let l=r;return this.unset=()=>l=void 0,this.isset=()=>l!==void 0,this.dispose=()=>{l&&(l(),l=void 0,p(this))},this}}e.SafeDisposable=f;class i{constructor(){this.references=new Map}acquire(r,...l){let h=this.references.get(r);h||(h={counter:0,object:this.createReferencedObject(r,...l)},this.references.set(r,h));const{object:S}=h,A=(0,b.once)(()=>{--h.counter==0&&(this.destroyReferencedObject(r,h.object),this.references.delete(r))});return h.counter++,{object:S,dispose:A}}}e.ReferenceCollection=i;class s{constructor(r){this.referenceCollection=r}async acquire(r,...l){const h=this.referenceCollection.acquire(r,...l);try{return{object:await h.object,dispose:()=>h.dispose()}}catch(S){throw h.dispose(),S}}}e.AsyncReferenceCollection=s;class n{constructor(r){this.object=r}dispose(){}}e.ImmortalReference=n;function a(o){const r=new m;try{o(r)}finally{r.dispose()}}e.disposeOnReturn=a}),define(ve[133],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class b{constructor(P){this.element=P,this.next=b.Undefined,this.prev=b.Undefined}}b.Undefined=new b(void 0);class t{constructor(){this._first=b.Undefined,this._last=b.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===b.Undefined}clear(){let P=this._first;for(;P!==b.Undefined;){const k=P.next;P.prev=b.Undefined,P.next=b.Undefined,P=k}this._first=b.Undefined,this._last=b.Undefined,this._size=0}unshift(P){return this._insert(P,!1)}push(P){return this._insert(P,!0)}_insert(P,k){const y=new b(P);if(this._first===b.Undefined)this._first=y,this._last=y;else if(k){const C=this._last;this._last=y,y.prev=C,C.next=y}else{const C=this._first;this._first=y,y.next=C,C.prev=y}this._size+=1;let p=!1;return()=>{p||(p=!0,this._remove(y))}}shift(){if(this._first!==b.Undefined){const P=this._first.element;return this._remove(this._first),P}}pop(){if(this._last!==b.Undefined){const P=this._last.element;return this._remove(this._last),P}}_remove(P){if(P.prev!==b.Undefined&&P.next!==b.Undefined){const k=P.prev;k.next=P.next,P.next.prev=k}else P.prev===b.Undefined&&P.next===b.Undefined?(this._first=b.Undefined,this._last=b.Undefined):P.next===b.Undefined?(this._last=this._last.prev,this._last.next=b.Undefined):P.prev===b.Undefined&&(this._first=this._first.next,this._first.prev=b.Undefined);this._size-=1}*[Symbol.iterator](){let P=this._first;for(;P!==b.Undefined;)yield P.element,P=P.next}}e.LinkedList=t}),function(oe,e){typeof exports=="object"&&typeof module!="undefined"?e(exports):typeof define=="function"&&define.amd?define(ve[134],we([1]),e):(oe=typeof globalThis!="undefined"?globalThis:oe||self,e(oe.marked={}))}(this,function(oe){"use strict";function e(Q,Z){for(var ae=0;ae<Z.length;ae++){var j=Z[ae];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(Q,j.key,j)}}function b(Q,Z,ae){return Z&&e(Q.prototype,Z),ae&&e(Q,ae),Object.defineProperty(Q,"prototype",{writable:!1}),Q}function t(Q,Z){if(!!Q){if(typeof Q=="string")return D(Q,Z);var ae=Object.prototype.toString.call(Q).slice(8,-1);if(ae==="Object"&&Q.constructor&&(ae=Q.constructor.name),ae==="Map"||ae==="Set")return Array.from(Q);if(ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return D(Q,Z)}}function D(Q,Z){(Z==null||Z>Q.length)&&(Z=Q.length);for(var ae=0,j=new Array(Z);ae<Z;ae++)j[ae]=Q[ae];return j}function P(Q,Z){var ae=typeof Symbol!="undefined"&&Q[Symbol.iterator]||Q["@@iterator"];if(ae)return(ae=ae.call(Q)).next.bind(ae);if(Array.isArray(Q)||(ae=t(Q))||Z&&Q&&typeof Q.length=="number"){ae&&(Q=ae);var j=0;return function(){return j>=Q.length?{done:!0}:{done:!1,value:Q[j++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}oe.defaults=k();function y(Q){oe.defaults=Q}var p=/[&<>"']/,C=/[&<>"']/g,T=/[<>"']|&(?!#?\w+;)/,R=/[<>"']|&(?!#?\w+;)/g,w={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},E=function(Z){return w[Z]};function d(Q,Z){if(Z){if(p.test(Q))return Q.replace(C,E)}else if(T.test(Q))return Q.replace(R,E);return Q}var I=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function v(Q){return Q.replace(I,function(Z,ae){return ae=ae.toLowerCase(),ae==="colon"?":":ae.charAt(0)==="#"?ae.charAt(1)==="x"?String.fromCharCode(parseInt(ae.substring(2),16)):String.fromCharCode(+ae.substring(1)):""})}var m=/(^|[^\[])\^/g;function g(Q,Z){Q=typeof Q=="string"?Q:Q.source,Z=Z||"";var ae={replace:function(ie,H){return H=H.source||H,H=H.replace(m,"$1"),Q=Q.replace(ie,H),ae},getRegex:function(){return new RegExp(Q,Z)}};return ae}var u=/[^\w:]/g,c=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function f(Q,Z,ae){if(Q){var j;try{j=decodeURIComponent(v(ae)).replace(u,"").toLowerCase()}catch{return null}if(j.indexOf("javascript:")===0||j.indexOf("vbscript:")===0||j.indexOf("data:")===0)return null}Z&&!c.test(ae)&&(ae=o(Z,ae));try{ae=encodeURI(ae).replace(/%25/g,"%")}catch{return null}return ae}var i={},s=/^[^:]+:\/*[^/]*$/,n=/^([^:]+:)[\s\S]*$/,a=/^([^:]+:\/*[^/]*)[\s\S]*$/;function o(Q,Z){i[" "+Q]||(s.test(Q)?i[" "+Q]=Q+"/":i[" "+Q]=S(Q,"/",!0)),Q=i[" "+Q];var ae=Q.indexOf(":")===-1;return Z.substring(0,2)==="//"?ae?Z:Q.replace(n,"$1")+Z:Z.charAt(0)==="/"?ae?Z:Q.replace(a,"$1")+Z:Q+Z}var r={exec:function(){}};function l(Q){for(var Z=1,ae,j;Z<arguments.length;Z++){ae=arguments[Z];for(j in ae)Object.prototype.hasOwnProperty.call(ae,j)&&(Q[j]=ae[j])}return Q}function h(Q,Z){var ae=Q.replace(/\|/g,function(H,Y,le){for(var pe=!1,Pe=Y;--Pe>=0&&le[Pe]==="\\";)pe=!pe;return pe?"|":" |"}),j=ae.split(/ \|/),ie=0;if(j[0].trim()||j.shift(),j.length>0&&!j[j.length-1].trim()&&j.pop(),j.length>Z)j.splice(Z);else for(;j.length<Z;)j.push("");for(;ie<j.length;ie++)j[ie]=j[ie].trim().replace(/\\\|/g,"|");return j}function S(Q,Z,ae){var j=Q.length;if(j===0)return"";for(var ie=0;ie<j;){var H=Q.charAt(j-ie-1);if(H===Z&&!ae)ie++;else if(H!==Z&&ae)ie++;else break}return Q.slice(0,j-ie)}function A(Q,Z){if(Q.indexOf(Z[1])===-1)return-1;for(var ae=Q.length,j=0,ie=0;ie<ae;ie++)if(Q[ie]==="\\")ie++;else if(Q[ie]===Z[0])j++;else if(Q[ie]===Z[1]&&(j--,j<0))return ie;return-1}function $(Q){Q&&Q.sanitize&&!Q.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function W(Q,Z){if(Z<1)return"";for(var ae="";Z>1;)Z&1&&(ae+=Q),Z>>=1,Q+=Q;return ae+Q}function ee(Q,Z,ae,j){var ie=Z.href,H=Z.title?d(Z.title):null,Y=Q[1].replace(/\\([\[\]])/g,"$1");if(Q[0].charAt(0)!=="!"){j.state.inLink=!0;var le={type:"link",raw:ae,href:ie,title:H,text:Y,tokens:j.inlineTokens(Y,[])};return j.state.inLink=!1,le}return{type:"image",raw:ae,href:ie,title:H,text:d(Y)}}function L(Q,Z){var ae=Q.match(/^(\s+)(?:```)/);if(ae===null)return Z;var j=ae[1];return Z.split(`
`).map(function(ie){var H=ie.match(/^\s+/);if(H===null)return ie;var Y=H[0];return Y.length>=j.length?ie.slice(j.length):ie}).join(`
`)}var q=function(){function Q(ae){this.options=ae||oe.defaults}var Z=Q.prototype;return Z.space=function(j){var ie=this.rules.block.newline.exec(j);if(ie&&ie[0].length>0)return{type:"space",raw:ie[0]}},Z.code=function(j){var ie=this.rules.block.code.exec(j);if(ie){var H=ie[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ie[0],codeBlockStyle:"indented",text:this.options.pedantic?H:S(H,`
`)}}},Z.fences=function(j){var ie=this.rules.block.fences.exec(j);if(ie){var H=ie[0],Y=L(H,ie[3]||"");return{type:"code",raw:H,lang:ie[2]?ie[2].trim():ie[2],text:Y}}},Z.heading=function(j){var ie=this.rules.block.heading.exec(j);if(ie){var H=ie[2].trim();if(/#$/.test(H)){var Y=S(H,"#");(this.options.pedantic||!Y||/ $/.test(Y))&&(H=Y.trim())}var le={type:"heading",raw:ie[0],depth:ie[1].length,text:H,tokens:[]};return this.lexer.inline(le.text,le.tokens),le}},Z.hr=function(j){var ie=this.rules.block.hr.exec(j);if(ie)return{type:"hr",raw:ie[0]}},Z.blockquote=function(j){var ie=this.rules.block.blockquote.exec(j);if(ie){var H=ie[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:ie[0],tokens:this.lexer.blockTokens(H,[]),text:H}}},Z.list=function(j){var ie=this.rules.block.list.exec(j);if(ie){var H,Y,le,pe,Pe,Te,Ne,Ue,ge,be,ye,Fe,Me=ie[1].trim(),Qe=Me.length>1,$e={type:"list",raw:"",ordered:Qe,start:Qe?+Me.slice(0,-1):"",loose:!1,items:[]};Me=Qe?"\\d{1,9}\\"+Me.slice(-1):"\\"+Me,this.options.pedantic&&(Me=Qe?Me:"[*+-]");for(var Ze=new RegExp("^( {0,3}"+Me+")((?:[	 ][^\\n]*)?(?:\\n|$))");j&&(Fe=!1,!(!(ie=Ze.exec(j))||this.rules.block.hr.test(j)));){if(H=ie[0],j=j.substring(H.length),Ue=ie[2].split(`
`,1)[0],ge=j.split(`
`,1)[0],this.options.pedantic?(pe=2,ye=Ue.trimLeft()):(pe=ie[2].search(/[^ ]/),pe=pe>4?1:pe,ye=Ue.slice(pe),pe+=ie[1].length),Te=!1,!Ue&&/^ *$/.test(ge)&&(H+=ge+`
`,j=j.substring(ge.length+1),Fe=!0),!Fe)for(var xe=new RegExp("^ {0,"+Math.min(3,pe-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),je=new RegExp("^ {0,"+Math.min(3,pe-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)");j&&(be=j.split(`
`,1)[0],Ue=be,this.options.pedantic&&(Ue=Ue.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(xe.test(Ue)||je.test(j)));){if(Ue.search(/[^ ]/)>=pe||!Ue.trim())ye+=`
`+Ue.slice(pe);else if(!Te)ye+=`
`+Ue;else break;!Te&&!Ue.trim()&&(Te=!0),H+=be+`
`,j=j.substring(be.length+1)}$e.loose||(Ne?$e.loose=!0:/\n *\n *$/.test(H)&&(Ne=!0)),this.options.gfm&&(Y=/^\[[ xX]\] /.exec(ye),Y&&(le=Y[0]!=="[ ] ",ye=ye.replace(/^\[[ xX]\] +/,""))),$e.items.push({type:"list_item",raw:H,task:!!Y,checked:le,loose:!1,text:ye}),$e.raw+=H}$e.items[$e.items.length-1].raw=H.trimRight(),$e.items[$e.items.length-1].text=ye.trimRight(),$e.raw=$e.raw.trimRight();var We=$e.items.length;for(Pe=0;Pe<We;Pe++){this.lexer.state.top=!1,$e.items[Pe].tokens=this.lexer.blockTokens($e.items[Pe].text,[]);var ce=$e.items[Pe].tokens.filter(function(ke){return ke.type==="space"}),Ce=ce.every(function(ke){for(var Oe=ke.raw.split(""),Re=0,Be=P(Oe),He;!(He=Be()).done;){var Ye=He.value;if(Ye===`
`&&(Re+=1),Re>1)return!0}return!1});!$e.loose&&ce.length&&Ce&&($e.loose=!0,$e.items[Pe].loose=!0)}return $e}},Z.html=function(j){var ie=this.rules.block.html.exec(j);if(ie){var H={type:"html",raw:ie[0],pre:!this.options.sanitizer&&(ie[1]==="pre"||ie[1]==="script"||ie[1]==="style"),text:ie[0]};return this.options.sanitize&&(H.type="paragraph",H.text=this.options.sanitizer?this.options.sanitizer(ie[0]):d(ie[0]),H.tokens=[],this.lexer.inline(H.text,H.tokens)),H}},Z.def=function(j){var ie=this.rules.block.def.exec(j);if(ie){ie[3]&&(ie[3]=ie[3].substring(1,ie[3].length-1));var H=ie[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:H,raw:ie[0],href:ie[2],title:ie[3]}}},Z.table=function(j){var ie=this.rules.block.table.exec(j);if(ie){var H={type:"table",header:h(ie[1]).map(function(Ne){return{text:Ne}}),align:ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:ie[3]&&ie[3].trim()?ie[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(H.header.length===H.align.length){H.raw=ie[0];var Y=H.align.length,le,pe,Pe,Te;for(le=0;le<Y;le++)/^ *-+: *$/.test(H.align[le])?H.align[le]="right":/^ *:-+: *$/.test(H.align[le])?H.align[le]="center":/^ *:-+ *$/.test(H.align[le])?H.align[le]="left":H.align[le]=null;for(Y=H.rows.length,le=0;le<Y;le++)H.rows[le]=h(H.rows[le],H.header.length).map(function(Ne){return{text:Ne}});for(Y=H.header.length,pe=0;pe<Y;pe++)H.header[pe].tokens=[],this.lexer.inline(H.header[pe].text,H.header[pe].tokens);for(Y=H.rows.length,pe=0;pe<Y;pe++)for(Te=H.rows[pe],Pe=0;Pe<Te.length;Pe++)Te[Pe].tokens=[],this.lexer.inline(Te[Pe].text,Te[Pe].tokens);return H}}},Z.lheading=function(j){var ie=this.rules.block.lheading.exec(j);if(ie){var H={type:"heading",raw:ie[0],depth:ie[2].charAt(0)==="="?1:2,text:ie[1],tokens:[]};return this.lexer.inline(H.text,H.tokens),H}},Z.paragraph=function(j){var ie=this.rules.block.paragraph.exec(j);if(ie){var H={type:"paragraph",raw:ie[0],text:ie[1].charAt(ie[1].length-1)===`
`?ie[1].slice(0,-1):ie[1],tokens:[]};return this.lexer.inline(H.text,H.tokens),H}},Z.text=function(j){var ie=this.rules.block.text.exec(j);if(ie){var H={type:"text",raw:ie[0],text:ie[0],tokens:[]};return this.lexer.inline(H.text,H.tokens),H}},Z.escape=function(j){var ie=this.rules.inline.escape.exec(j);if(ie)return{type:"escape",raw:ie[0],text:d(ie[1])}},Z.tag=function(j){var ie=this.rules.inline.tag.exec(j);if(ie)return!this.lexer.state.inLink&&/^<a /i.test(ie[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(ie[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(ie[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ie[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:ie[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ie[0]):d(ie[0]):ie[0]}},Z.link=function(j){var ie=this.rules.inline.link.exec(j);if(ie){var H=ie[2].trim();if(!this.options.pedantic&&/^</.test(H)){if(!/>$/.test(H))return;var Y=S(H.slice(0,-1),"\\");if((H.length-Y.length)%2==0)return}else{var le=A(ie[2],"()");if(le>-1){var pe=ie[0].indexOf("!")===0?5:4,Pe=pe+ie[1].length+le;ie[2]=ie[2].substring(0,le),ie[0]=ie[0].substring(0,Pe).trim(),ie[3]=""}}var Te=ie[2],Ne="";if(this.options.pedantic){var Ue=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Te);Ue&&(Te=Ue[1],Ne=Ue[3])}else Ne=ie[3]?ie[3].slice(1,-1):"";return Te=Te.trim(),/^</.test(Te)&&(this.options.pedantic&&!/>$/.test(H)?Te=Te.slice(1):Te=Te.slice(1,-1)),ee(ie,{href:Te&&Te.replace(this.rules.inline._escapes,"$1"),title:Ne&&Ne.replace(this.rules.inline._escapes,"$1")},ie[0],this.lexer)}},Z.reflink=function(j,ie){var H;if((H=this.rules.inline.reflink.exec(j))||(H=this.rules.inline.nolink.exec(j))){var Y=(H[2]||H[1]).replace(/\s+/g," ");if(Y=ie[Y.toLowerCase()],!Y||!Y.href){var le=H[0].charAt(0);return{type:"text",raw:le,text:le}}return ee(H,Y,H[0],this.lexer)}},Z.emStrong=function(j,ie,H){H===void 0&&(H="");var Y=this.rules.inline.emStrong.lDelim.exec(j);if(!!Y&&!(Y[3]&&H.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var le=Y[1]||Y[2]||"";if(!le||le&&(H===""||this.rules.inline.punctuation.exec(H))){var pe=Y[0].length-1,Pe,Te,Ne=pe,Ue=0,ge=Y[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(ge.lastIndex=0,ie=ie.slice(-1*j.length+pe);(Y=ge.exec(ie))!=null;)if(Pe=Y[1]||Y[2]||Y[3]||Y[4]||Y[5]||Y[6],!!Pe){if(Te=Pe.length,Y[3]||Y[4]){Ne+=Te;continue}else if((Y[5]||Y[6])&&pe%3&&!((pe+Te)%3)){Ue+=Te;continue}if(Ne-=Te,!(Ne>0)){if(Te=Math.min(Te,Te+Ne+Ue),Math.min(pe,Te)%2){var be=j.slice(1,pe+Y.index+Te);return{type:"em",raw:j.slice(0,pe+Y.index+Te+1),text:be,tokens:this.lexer.inlineTokens(be,[])}}var ye=j.slice(2,pe+Y.index+Te-1);return{type:"strong",raw:j.slice(0,pe+Y.index+Te+1),text:ye,tokens:this.lexer.inlineTokens(ye,[])}}}}}},Z.codespan=function(j){var ie=this.rules.inline.code.exec(j);if(ie){var H=ie[2].replace(/\n/g," "),Y=/[^ ]/.test(H),le=/^ /.test(H)&&/ $/.test(H);return Y&&le&&(H=H.substring(1,H.length-1)),H=d(H,!0),{type:"codespan",raw:ie[0],text:H}}},Z.br=function(j){var ie=this.rules.inline.br.exec(j);if(ie)return{type:"br",raw:ie[0]}},Z.del=function(j){var ie=this.rules.inline.del.exec(j);if(ie)return{type:"del",raw:ie[0],text:ie[2],tokens:this.lexer.inlineTokens(ie[2],[])}},Z.autolink=function(j,ie){var H=this.rules.inline.autolink.exec(j);if(H){var Y,le;return H[2]==="@"?(Y=d(this.options.mangle?ie(H[1]):H[1]),le="mailto:"+Y):(Y=d(H[1]),le=Y),{type:"link",raw:H[0],text:Y,href:le,tokens:[{type:"text",raw:Y,text:Y}]}}},Z.url=function(j,ie){var H;if(H=this.rules.inline.url.exec(j)){var Y,le;if(H[2]==="@")Y=d(this.options.mangle?ie(H[0]):H[0]),le="mailto:"+Y;else{var pe;do pe=H[0],H[0]=this.rules.inline._backpedal.exec(H[0])[0];while(pe!==H[0]);Y=d(H[0]),H[1]==="www."?le="http://"+Y:le=Y}return{type:"link",raw:H[0],text:Y,href:le,tokens:[{type:"text",raw:Y,text:Y}]}}},Z.inlineText=function(j,ie){var H=this.rules.inline.text.exec(j);if(H){var Y;return this.lexer.state.inRawBlock?Y=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(H[0]):d(H[0]):H[0]:Y=d(this.options.smartypants?ie(H[0]):H[0]),{type:"text",raw:H[0],text:Y}}},Q}(),ne={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?<?([^\s>]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:r,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};ne._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,ne._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,ne.def=g(ne.def).replace("label",ne._label).replace("title",ne._title).getRegex(),ne.bullet=/(?:[*+-]|\d{1,9}[.)])/,ne.listItemStart=g(/^( *)(bull) */).replace("bull",ne.bullet).getRegex(),ne.list=g(ne.list).replace(/bull/g,ne.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ne.def.source+")").getRegex(),ne._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ne._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,ne.html=g(ne.html,"i").replace("comment",ne._comment).replace("tag",ne._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ne.paragraph=g(ne._paragraph).replace("hr",ne.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ne._tag).getRegex(),ne.blockquote=g(ne.blockquote).replace("paragraph",ne.paragraph).getRegex(),ne.normal=l({},ne),ne.gfm=l({},ne.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ne.gfm.table=g(ne.gfm.table).replace("hr",ne.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ne._tag).getRegex(),ne.gfm.paragraph=g(ne._paragraph).replace("hr",ne.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",ne.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ne._tag).getRegex(),ne.pedantic=l({},ne.normal,{html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ne._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:r,paragraph:g(ne.normal._paragraph).replace("hr",ne.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",ne.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var x={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:r,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:r,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};x._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",x.punctuation=g(x.punctuation).replace(/punctuation/g,x._punctuation).getRegex(),x.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,x.escapedEmSt=/\\\*|\\_/g,x._comment=g(ne._comment).replace("(?:-->|$)","-->").getRegex(),x.emStrong.lDelim=g(x.emStrong.lDelim).replace(/punct/g,x._punctuation).getRegex(),x.emStrong.rDelimAst=g(x.emStrong.rDelimAst,"g").replace(/punct/g,x._punctuation).getRegex(),x.emStrong.rDelimUnd=g(x.emStrong.rDelimUnd,"g").replace(/punct/g,x._punctuation).getRegex(),x._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,x._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,x._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,x.autolink=g(x.autolink).replace("scheme",x._scheme).replace("email",x._email).getRegex(),x._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,x.tag=g(x.tag).replace("comment",x._comment).replace("attribute",x._attribute).getRegex(),x._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,x._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,x._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,x.link=g(x.link).replace("label",x._label).replace("href",x._href).replace("title",x._title).getRegex(),x.reflink=g(x.reflink).replace("label",x._label).replace("ref",ne._label).getRegex(),x.nolink=g(x.nolink).replace("ref",ne._label).getRegex(),x.reflinkSearch=g(x.reflinkSearch,"g").replace("reflink",x.reflink).replace("nolink",x.nolink).getRegex(),x.normal=l({},x),x.pedantic=l({},x.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",x._label).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",x._label).getRegex()}),x.gfm=l({},x.normal,{escape:g(x.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),x.gfm.url=g(x.gfm.url,"i").replace("email",x.gfm._extended_email).getRegex(),x.breaks=l({},x.gfm,{br:g(x.br).replace("{2,}","*").getRegex(),text:g(x.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function fe(Q){return Q.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function M(Q){var Z="",ae,j,ie=Q.length;for(ae=0;ae<ie;ae++)j=Q.charCodeAt(ae),Math.random()>.5&&(j="x"+j.toString(16)),Z+="&#"+j+";";return Z}var B=function(){function Q(ae){this.tokens=[],this.tokens.links=Object.create(null),this.options=ae||oe.defaults,this.options.tokenizer=this.options.tokenizer||new q,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var j={block:ne.normal,inline:x.normal};this.options.pedantic?(j.block=ne.pedantic,j.inline=x.pedantic):this.options.gfm&&(j.block=ne.gfm,this.options.breaks?j.inline=x.breaks:j.inline=x.gfm),this.tokenizer.rules=j}Q.lex=function(j,ie){var H=new Q(ie);return H.lex(j)},Q.lexInline=function(j,ie){var H=new Q(ie);return H.inlineTokens(j)};var Z=Q.prototype;return Z.lex=function(j){j=j.replace(/\r\n|\r/g,`
`),this.blockTokens(j,this.tokens);for(var ie;ie=this.inlineQueue.shift();)this.inlineTokens(ie.src,ie.tokens);return this.tokens},Z.blockTokens=function(j,ie){var H=this;ie===void 0&&(ie=[]),this.options.pedantic?j=j.replace(/\t/g,"    ").replace(/^ +$/gm,""):j=j.replace(/^( *)(\t+)/gm,function(Ne,Ue,ge){return Ue+"    ".repeat(ge.length)});for(var Y,le,pe,Pe;j;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Ne){return(Y=Ne.call({lexer:H},j,ie))?(j=j.substring(Y.raw.length),ie.push(Y),!0):!1}))){if(Y=this.tokenizer.space(j)){j=j.substring(Y.raw.length),Y.raw.length===1&&ie.length>0?ie[ie.length-1].raw+=`
`:ie.push(Y);continue}if(Y=this.tokenizer.code(j)){j=j.substring(Y.raw.length),le=ie[ie.length-1],le&&(le.type==="paragraph"||le.type==="text")?(le.raw+=`
`+Y.raw,le.text+=`
`+Y.text,this.inlineQueue[this.inlineQueue.length-1].src=le.text):ie.push(Y);continue}if(Y=this.tokenizer.fences(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.heading(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.hr(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.blockquote(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.list(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.html(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.def(j)){j=j.substring(Y.raw.length),le=ie[ie.length-1],le&&(le.type==="paragraph"||le.type==="text")?(le.raw+=`
`+Y.raw,le.text+=`
`+Y.raw,this.inlineQueue[this.inlineQueue.length-1].src=le.text):this.tokens.links[Y.tag]||(this.tokens.links[Y.tag]={href:Y.href,title:Y.title});continue}if(Y=this.tokenizer.table(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.lheading(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(pe=j,this.options.extensions&&this.options.extensions.startBlock&&function(){var Ne=1/0,Ue=j.slice(1),ge=void 0;H.options.extensions.startBlock.forEach(function(be){ge=be.call({lexer:this},Ue),typeof ge=="number"&&ge>=0&&(Ne=Math.min(Ne,ge))}),Ne<1/0&&Ne>=0&&(pe=j.substring(0,Ne+1))}(),this.state.top&&(Y=this.tokenizer.paragraph(pe))){le=ie[ie.length-1],Pe&&le.type==="paragraph"?(le.raw+=`
`+Y.raw,le.text+=`
`+Y.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=le.text):ie.push(Y),Pe=pe.length!==j.length,j=j.substring(Y.raw.length);continue}if(Y=this.tokenizer.text(j)){j=j.substring(Y.raw.length),le=ie[ie.length-1],le&&le.type==="text"?(le.raw+=`
`+Y.raw,le.text+=`
`+Y.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=le.text):ie.push(Y);continue}if(j){var Te="Infinite loop on byte: "+j.charCodeAt(0);if(this.options.silent){console.error(Te);break}else throw new Error(Te)}}return this.state.top=!0,ie},Z.inline=function(j,ie){this.inlineQueue.push({src:j,tokens:ie})},Z.inlineTokens=function(j,ie){var H=this;ie===void 0&&(ie=[]);var Y,le,pe,Pe=j,Te,Ne,Ue;if(this.tokens.links){var ge=Object.keys(this.tokens.links);if(ge.length>0)for(;(Te=this.tokenizer.rules.inline.reflinkSearch.exec(Pe))!=null;)ge.includes(Te[0].slice(Te[0].lastIndexOf("[")+1,-1))&&(Pe=Pe.slice(0,Te.index)+"["+W("a",Te[0].length-2)+"]"+Pe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(Te=this.tokenizer.rules.inline.blockSkip.exec(Pe))!=null;)Pe=Pe.slice(0,Te.index)+"["+W("a",Te[0].length-2)+"]"+Pe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(Te=this.tokenizer.rules.inline.escapedEmSt.exec(Pe))!=null;)Pe=Pe.slice(0,Te.index)+"++"+Pe.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;j;)if(Ne||(Ue=""),Ne=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(ye){return(Y=ye.call({lexer:H},j,ie))?(j=j.substring(Y.raw.length),ie.push(Y),!0):!1}))){if(Y=this.tokenizer.escape(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.tag(j)){j=j.substring(Y.raw.length),le=ie[ie.length-1],le&&Y.type==="text"&&le.type==="text"?(le.raw+=Y.raw,le.text+=Y.text):ie.push(Y);continue}if(Y=this.tokenizer.link(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.reflink(j,this.tokens.links)){j=j.substring(Y.raw.length),le=ie[ie.length-1],le&&Y.type==="text"&&le.type==="text"?(le.raw+=Y.raw,le.text+=Y.text):ie.push(Y);continue}if(Y=this.tokenizer.emStrong(j,Pe,Ue)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.codespan(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.br(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.del(j)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(Y=this.tokenizer.autolink(j,M)){j=j.substring(Y.raw.length),ie.push(Y);continue}if(!this.state.inLink&&(Y=this.tokenizer.url(j,M))){j=j.substring(Y.raw.length),ie.push(Y);continue}if(pe=j,this.options.extensions&&this.options.extensions.startInline&&function(){var ye=1/0,Fe=j.slice(1),Me=void 0;H.options.extensions.startInline.forEach(function(Qe){Me=Qe.call({lexer:this},Fe),typeof Me=="number"&&Me>=0&&(ye=Math.min(ye,Me))}),ye<1/0&&ye>=0&&(pe=j.substring(0,ye+1))}(),Y=this.tokenizer.inlineText(pe,fe)){j=j.substring(Y.raw.length),Y.raw.slice(-1)!=="_"&&(Ue=Y.raw.slice(-1)),Ne=!0,le=ie[ie.length-1],le&&le.type==="text"?(le.raw+=Y.raw,le.text+=Y.text):ie.push(Y);continue}if(j){var be="Infinite loop on byte: "+j.charCodeAt(0);if(this.options.silent){console.error(be);break}else throw new Error(be)}}return ie},b(Q,null,[{key:"rules",get:function(){return{block:ne,inline:x}}}]),Q}(),U=function(){function Q(ae){this.options=ae||oe.defaults}var Z=Q.prototype;return Z.code=function(j,ie,H){var Y=(ie||"").match(/\S*/)[0];if(this.options.highlight){var le=this.options.highlight(j,Y);le!=null&&le!==j&&(H=!0,j=le)}return j=j.replace(/\n$/,"")+`
`,Y?'<pre><code class="'+this.options.langPrefix+d(Y,!0)+'">'+(H?j:d(j,!0))+`</code></pre>
`:"<pre><code>"+(H?j:d(j,!0))+`</code></pre>
`},Z.blockquote=function(j){return`<blockquote>
`+j+`</blockquote>
`},Z.html=function(j){return j},Z.heading=function(j,ie,H,Y){if(this.options.headerIds){var le=this.options.headerPrefix+Y.slug(H);return"<h"+ie+' id="'+le+'">'+j+"</h"+ie+`>
`}return"<h"+ie+">"+j+"</h"+ie+`>
`},Z.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Z.list=function(j,ie,H){var Y=ie?"ol":"ul",le=ie&&H!==1?' start="'+H+'"':"";return"<"+Y+le+`>
`+j+"</"+Y+`>
`},Z.listitem=function(j){return"<li>"+j+`</li>
`},Z.checkbox=function(j){return"<input "+(j?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Z.paragraph=function(j){return"<p>"+j+`</p>
`},Z.table=function(j,ie){return ie&&(ie="<tbody>"+ie+"</tbody>"),`<table>
<thead>
`+j+`</thead>
`+ie+`</table>
`},Z.tablerow=function(j){return`<tr>
`+j+`</tr>
`},Z.tablecell=function(j,ie){var H=ie.header?"th":"td",Y=ie.align?"<"+H+' align="'+ie.align+'">':"<"+H+">";return Y+j+("</"+H+`>
`)},Z.strong=function(j){return"<strong>"+j+"</strong>"},Z.em=function(j){return"<em>"+j+"</em>"},Z.codespan=function(j){return"<code>"+j+"</code>"},Z.br=function(){return this.options.xhtml?"<br/>":"<br>"},Z.del=function(j){return"<del>"+j+"</del>"},Z.link=function(j,ie,H){if(j=f(this.options.sanitize,this.options.baseUrl,j),j===null)return H;var Y='<a href="'+d(j)+'"';return ie&&(Y+=' title="'+ie+'"'),Y+=">"+H+"</a>",Y},Z.image=function(j,ie,H){if(j=f(this.options.sanitize,this.options.baseUrl,j),j===null)return H;var Y='<img src="'+j+'" alt="'+H+'"';return ie&&(Y+=' title="'+ie+'"'),Y+=this.options.xhtml?"/>":">",Y},Z.text=function(j){return j},Q}(),z=function(){function Q(){}var Z=Q.prototype;return Z.strong=function(j){return j},Z.em=function(j){return j},Z.codespan=function(j){return j},Z.del=function(j){return j},Z.html=function(j){return j},Z.text=function(j){return j},Z.link=function(j,ie,H){return""+H},Z.image=function(j,ie,H){return""+H},Z.br=function(){return""},Q}(),X=function(){function Q(){this.seen={}}var Z=Q.prototype;return Z.serialize=function(j){return j.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Z.getNextSafeSlug=function(j,ie){var H=j,Y=0;if(this.seen.hasOwnProperty(H)){Y=this.seen[j];do Y++,H=j+"-"+Y;while(this.seen.hasOwnProperty(H))}return ie||(this.seen[j]=Y,this.seen[H]=0),H},Z.slug=function(j,ie){ie===void 0&&(ie={});var H=this.serialize(j);return this.getNextSafeSlug(H,ie.dryrun)},Q}(),ue=function(){function Q(ae){this.options=ae||oe.defaults,this.options.renderer=this.options.renderer||new U,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new z,this.slugger=new X}Q.parse=function(j,ie){var H=new Q(ie);return H.parse(j)},Q.parseInline=function(j,ie){var H=new Q(ie);return H.parseInline(j)};var Z=Q.prototype;return Z.parse=function(j,ie){ie===void 0&&(ie=!0);var H="",Y,le,pe,Pe,Te,Ne,Ue,ge,be,ye,Fe,Me,Qe,$e,Ze,xe,je,We,ce,Ce=j.length;for(Y=0;Y<Ce;Y++){if(ye=j[Y],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[ye.type]&&(ce=this.options.extensions.renderers[ye.type].call({parser:this},ye),ce!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(ye.type))){H+=ce||"";continue}switch(ye.type){case"space":continue;case"hr":{H+=this.renderer.hr();continue}case"heading":{H+=this.renderer.heading(this.parseInline(ye.tokens),ye.depth,v(this.parseInline(ye.tokens,this.textRenderer)),this.slugger);continue}case"code":{H+=this.renderer.code(ye.text,ye.lang,ye.escaped);continue}case"table":{for(ge="",Ue="",Pe=ye.header.length,le=0;le<Pe;le++)Ue+=this.renderer.tablecell(this.parseInline(ye.header[le].tokens),{header:!0,align:ye.align[le]});for(ge+=this.renderer.tablerow(Ue),be="",Pe=ye.rows.length,le=0;le<Pe;le++){for(Ne=ye.rows[le],Ue="",Te=Ne.length,pe=0;pe<Te;pe++)Ue+=this.renderer.tablecell(this.parseInline(Ne[pe].tokens),{header:!1,align:ye.align[pe]});be+=this.renderer.tablerow(Ue)}H+=this.renderer.table(ge,be);continue}case"blockquote":{be=this.parse(ye.tokens),H+=this.renderer.blockquote(be);continue}case"list":{for(Fe=ye.ordered,Me=ye.start,Qe=ye.loose,Pe=ye.items.length,be="",le=0;le<Pe;le++)Ze=ye.items[le],xe=Ze.checked,je=Ze.task,$e="",Ze.task&&(We=this.renderer.checkbox(xe),Qe?Ze.tokens.length>0&&Ze.tokens[0].type==="paragraph"?(Ze.tokens[0].text=We+" "+Ze.tokens[0].text,Ze.tokens[0].tokens&&Ze.tokens[0].tokens.length>0&&Ze.tokens[0].tokens[0].type==="text"&&(Ze.tokens[0].tokens[0].text=We+" "+Ze.tokens[0].tokens[0].text)):Ze.tokens.unshift({type:"text",text:We}):$e+=We),$e+=this.parse(Ze.tokens,Qe),be+=this.renderer.listitem($e,je,xe);H+=this.renderer.list(be,Fe,Me);continue}case"html":{H+=this.renderer.html(ye.text);continue}case"paragraph":{H+=this.renderer.paragraph(this.parseInline(ye.tokens));continue}case"text":{for(be=ye.tokens?this.parseInline(ye.tokens):ye.text;Y+1<Ce&&j[Y+1].type==="text";)ye=j[++Y],be+=`
`+(ye.tokens?this.parseInline(ye.tokens):ye.text);H+=ie?this.renderer.paragraph(be):be;continue}default:{var ke='Token with "'+ye.type+'" type was not found.';if(this.options.silent){console.error(ke);return}else throw new Error(ke)}}}return H},Z.parseInline=function(j,ie){ie=ie||this.renderer;var H="",Y,le,pe,Pe=j.length;for(Y=0;Y<Pe;Y++){if(le=j[Y],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[le.type]&&(pe=this.options.extensions.renderers[le.type].call({parser:this},le),pe!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(le.type))){H+=pe||"";continue}switch(le.type){case"escape":{H+=ie.text(le.text);break}case"html":{H+=ie.html(le.text);break}case"link":{H+=ie.link(le.href,le.title,this.parseInline(le.tokens,ie));break}case"image":{H+=ie.image(le.href,le.title,le.text);break}case"strong":{H+=ie.strong(this.parseInline(le.tokens,ie));break}case"em":{H+=ie.em(this.parseInline(le.tokens,ie));break}case"codespan":{H+=ie.codespan(le.text);break}case"br":{H+=ie.br();break}case"del":{H+=ie.del(this.parseInline(le.tokens,ie));break}case"text":{H+=ie.text(le.text);break}default:{var Te='Token with "'+le.type+'" type was not found.';if(this.options.silent){console.error(Te);return}else throw new Error(Te)}}}return H},Q}();function de(Q,Z,ae){if(typeof Q=="undefined"||Q===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Q!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Q)+", string expected");if(typeof Z=="function"&&(ae=Z,Z=null),Z=l({},de.defaults,Z||{}),$(Z),ae){var j=Z.highlight,ie;try{ie=B.lex(Q,Z)}catch(pe){return ae(pe)}var H=function(Pe){var Te;if(!Pe)try{Z.walkTokens&&de.walkTokens(ie,Z.walkTokens),Te=ue.parse(ie,Z)}catch(Ne){Pe=Ne}return Z.highlight=j,Pe?ae(Pe):ae(null,Te)};if(!j||j.length<3||(delete Z.highlight,!ie.length))return H();var Y=0;de.walkTokens(ie,function(pe){pe.type==="code"&&(Y++,setTimeout(function(){j(pe.text,pe.lang,function(Pe,Te){if(Pe)return H(Pe);Te!=null&&Te!==pe.text&&(pe.text=Te,pe.escaped=!0),Y--,Y===0&&H()})},0))}),Y===0&&H();return}try{var le=B.lex(Q,Z);return Z.walkTokens&&de.walkTokens(le,Z.walkTokens),ue.parse(le,Z)}catch(pe){if(pe.message+=`
Please report this to https://github.com/markedjs/marked.`,Z.silent)return"<p>An error occurred:</p><pre>"+d(pe.message+"",!0)+"</pre>";throw pe}}de.options=de.setOptions=function(Q){return l(de.defaults,Q),y(de.defaults),de},de.getDefaults=k,de.defaults=oe.defaults,de.use=function(){for(var Q=arguments.length,Z=new Array(Q),ae=0;ae<Q;ae++)Z[ae]=arguments[ae];var j=l.apply(void 0,[{}].concat(Z)),ie=de.defaults.extensions||{renderers:{},childTokens:{}},H;Z.forEach(function(Y){if(Y.extensions&&(H=!0,Y.extensions.forEach(function(pe){if(!pe.name)throw new Error("extension name required");if(pe.renderer){var Pe=ie.renderers?ie.renderers[pe.name]:null;Pe?ie.renderers[pe.name]=function(){for(var Te=arguments.length,Ne=new Array(Te),Ue=0;Ue<Te;Ue++)Ne[Ue]=arguments[Ue];var ge=pe.renderer.apply(this,Ne);return ge===!1&&(ge=Pe.apply(this,Ne)),ge}:ie.renderers[pe.name]=pe.renderer}if(pe.tokenizer){if(!pe.level||pe.level!=="block"&&pe.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");ie[pe.level]?ie[pe.level].unshift(pe.tokenizer):ie[pe.level]=[pe.tokenizer],pe.start&&(pe.level==="block"?ie.startBlock?ie.startBlock.push(pe.start):ie.startBlock=[pe.start]:pe.level==="inline"&&(ie.startInline?ie.startInline.push(pe.start):ie.startInline=[pe.start]))}pe.childTokens&&(ie.childTokens[pe.name]=pe.childTokens)})),Y.renderer&&function(){var pe=de.defaults.renderer||new U,Pe=function(Ue){var ge=pe[Ue];pe[Ue]=function(){for(var be=arguments.length,ye=new Array(be),Fe=0;Fe<be;Fe++)ye[Fe]=arguments[Fe];var Me=Y.renderer[Ue].apply(pe,ye);return Me===!1&&(Me=ge.apply(pe,ye)),Me}};for(var Te in Y.renderer)Pe(Te);j.renderer=pe}(),Y.tokenizer&&function(){var pe=de.defaults.tokenizer||new q,Pe=function(Ue){var ge=pe[Ue];pe[Ue]=function(){for(var be=arguments.length,ye=new Array(be),Fe=0;Fe<be;Fe++)ye[Fe]=arguments[Fe];var Me=Y.tokenizer[Ue].apply(pe,ye);return Me===!1&&(Me=ge.apply(pe,ye)),Me}};for(var Te in Y.tokenizer)Pe(Te);j.tokenizer=pe}(),Y.walkTokens){var le=de.defaults.walkTokens;j.walkTokens=function(pe){Y.walkTokens.call(this,pe),le&&le.call(this,pe)}}H&&(j.extensions=ie),de.setOptions(j)})},de.walkTokens=function(Q,Z){for(var ae=function(){var Y=ie.value;switch(Z.call(de,Y),Y.type){case"table":{for(var le=P(Y.header),pe;!(pe=le()).done;){var Pe=pe.value;de.walkTokens(Pe.tokens,Z)}for(var Te=P(Y.rows),Ne;!(Ne=Te()).done;)for(var Ue=Ne.value,ge=P(Ue),be;!(be=ge()).done;){var ye=be.value;de.walkTokens(ye.tokens,Z)}break}case"list":{de.walkTokens(Y.items,Z);break}default:de.defaults.extensions&&de.defaults.extensions.childTokens&&de.defaults.extensions.childTokens[Y.type]?de.defaults.extensions.childTokens[Y.type].forEach(function(Fe){de.walkTokens(Y[Fe],Z)}):Y.tokens&&de.walkTokens(Y.tokens,Z)}},j=P(Q),ie;!(ie=j()).done;)ae()},de.parseInline=function(Q,Z){if(typeof Q=="undefined"||Q===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Q!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Q)+", string expected");Z=l({},de.defaults,Z||{}),$(Z);try{var ae=B.lexInline(Q,Z);return Z.walkTokens&&de.walkTokens(ae,Z.walkTokens),ue.parseInline(ae,Z)}catch(j){if(j.message+=`
Please report this to https://github.com/markedjs/marked.`,Z.silent)return"<p>An error occurred:</p><pre>"+d(j.message+"",!0)+"</pre>";throw j}},de.Parser=ue,de.parser=ue.parse,de.Renderer=U,de.TextRenderer=z,de.Lexer=B,de.lexer=B.lex,de.Tokenizer=q,de.Slugger=X,de.parse=de;var G=de.options,se=de.setOptions,O=de.use,F=de.walkTokens,K=de.parseInline,re=de,he=ue.parse,te=B.lex;oe.Lexer=B,oe.Parser=ue,oe.Renderer=U,oe.Slugger=X,oe.TextRenderer=z,oe.Tokenizer=q,oe.getDefaults=k,oe.lexer=te,oe.marked=de,oe.options=G,oe.parse=re,oe.parseInline=K,oe.parser=he,oe.setOptions=se,oe.use=O,oe.walkTokens=F,Object.defineProperty(oe,"__esModule",{value:!0})}),function(){function oe(D){const P=[];typeof D=="number"&&P.push("code/timeOrigin",D);function k(p){P.push(p,Date.now())}function y(){const p=[];for(let C=0;C<P.length;C+=2)p.push({name:P[C],startTime:P[C+1]});return p}return{mark:k,getMarks:y}}function e(){if(typeof performance=="object"&&typeof performance.mark=="function"&&!performance.nodeTiming)return typeof performance.timeOrigin!="number"&&!performance.timing?oe():{mark(D){performance.mark(D)},getMarks(){let D=performance.timeOrigin;typeof D!="number"&&(D=performance.timing.navigationStart||performance.timing.redirectStart||performance.timing.fetchStart);const P=[{name:"code/timeOrigin",startTime:Math.round(D)}];for(const k of performance.getEntriesByType("mark"))P.push({name:k.name,startTime:Math.round(D+k.startTime)});return P}};if(typeof process=="object"){const D=Math.round((require.nodeRequire||require)("perf_hooks").performance.timeOrigin);return oe(D)}else return console.trace("perf-util loaded in UNKNOWN environment"),oe()}function b(D){return D.MonacoPerformanceMarks||(D.MonacoPerformanceMarks=e()),D.MonacoPerformanceMarks}var t;typeof global=="object"?t=global:typeof self=="object"?t=self:t={},typeof define=="function"?define("vs/base/common/performance",[],function(){return b(t)}):typeof module=="object"&&typeof module.exports=="object"?module.exports=b(t):(console.trace("perf-util defined in UNKNOWN context (neither requirejs or commonjs)"),t.perf=b(t))}(),define(ve[3],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.isLittleEndian=e.OS=e.OperatingSystem=e.setTimeout0=e.setTimeout0IsFaster=e.translationsConfigFile=e.locale=e.Language=e.language=e.userAgent=e.platform=e.isCI=e.isIOS=e.isWebWorker=e.isWeb=e.isElectron=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.globals=void 0;const b="en";let t=!1,D=!1,P=!1,k=!1,y=!1,p=!1,C=!1,T=!1,R=!1,w,E=b,d,I;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let v;typeof e.globals.vscode!="undefined"&&typeof e.globals.vscode.process!="undefined"?v=e.globals.vscode.process:typeof process!="undefined"&&(v=process);const m=typeof v?.versions?.electron=="string",g=m&&v?.type==="renderer";if(typeof navigator=="object"&&!g){I=navigator.userAgent,t=I.indexOf("Windows")>=0,D=I.indexOf("Macintosh")>=0,T=(I.indexOf("Macintosh")>=0||I.indexOf("iPad")>=0||I.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,P=I.indexOf("Linux")>=0,p=!0,w=b,E=w;const r=typeof document!="undefined"&&document.getElementById("vscode-remote-nls-configuration"),l=r&&r.getAttribute("data-settings");if(l)try{const h=JSON.parse(l);w=h.locale,d=h._translationsConfigFile,E=h.availableLanguages["*"]||b}catch{}}else if(typeof v=="object"){t=v.platform==="win32",D=v.platform==="darwin",P=v.platform==="linux",k=P&&!!v.env.SNAP&&!!v.env.SNAP_REVISION,C=m,R=!!v.env.CI||!!v.env.BUILD_ARTIFACTSTAGINGDIRECTORY,w=b,E=b;const r=v.env.VSCODE_NLS_CONFIG;if(r)try{const l=JSON.parse(r),h=l.availableLanguages["*"];w=l.locale,E=h||b,d=l._translationsConfigFile}catch{}y=!0}else console.error("Unable to resolve platform.");var u;(function(r){r[r.Web=0]="Web",r[r.Mac=1]="Mac",r[r.Linux=2]="Linux",r[r.Windows=3]="Windows"})(u=e.Platform||(e.Platform={}));function c(r){switch(r){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=c;let f=0;D?f=1:t?f=3:P&&(f=2),e.isWindows=t,e.isMacintosh=D,e.isLinux=P,e.isLinuxSnap=k,e.isNative=y,e.isElectron=C,e.isWeb=p,e.isWebWorker=p&&typeof e.globals.importScripts=="function",e.isIOS=T,e.isCI=R,e.platform=f,e.userAgent=I,e.language=E;var i;(function(r){function l(){return e.language}r.value=l;function h(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}r.isDefaultVariant=h;function S(){return e.language==="en"}r.isDefault=S})(i=e.Language||(e.Language={})),e.locale=w,e.translationsConfigFile=d,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const r=[];e.globals.addEventListener("message",h=>{if(h.data&&h.data.vscodeScheduleAsyncWork)for(let S=0,A=r.length;S<A;S++){const $=r[S];if($.id===h.data.vscodeScheduleAsyncWork){r.splice(S,1),$.callback();return}}});let l=0;return h=>{const S=++l;r.push({id:S,callback:h}),e.globals.postMessage({vscodeScheduleAsyncWork:S},"*")}}return r=>setTimeout(r)})();var s;(function(r){r[r.Windows=1]="Windows",r[r.Macintosh=2]="Macintosh",r[r.Linux=3]="Linux"})(s=e.OperatingSystem||(e.OperatingSystem={})),e.OS=D||T?2:t?1:3;let n=!0,a=!1;function o(){if(!a){a=!0;const r=new Uint8Array(2);r[0]=1,r[1]=2,n=new Uint16Array(r.buffer)[0]===(2<<8)+1}return n}e.isLittleEndian=o,e.isChrome=!!(e.userAgent&&e.userAgent.indexOf("Chrome")>=0),e.isFirefox=!!(e.userAgent&&e.userAgent.indexOf("Firefox")>=0),e.isSafari=!!(!e.isChrome&&e.userAgent&&e.userAgent.indexOf("Safari")>=0),e.isEdge=!!(e.userAgent&&e.userAgent.indexOf("Edg/")>=0),e.isAndroid=!!(e.userAgent&&e.userAgent.indexOf("Android")>=0)}),define(ve[27],we([0,1,3]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let t;if(typeof b.globals.vscode!="undefined"&&typeof b.globals.vscode.process!="undefined"){const D=b.globals.vscode.process;t={get platform(){return D.platform},get arch(){return D.arch},get env(){return D.env},cwd(){return D.cwd()}}}else typeof process!="undefined"?t={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:t={get platform(){return b.isWindows?"win32":b.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=t.cwd,e.env=t.env,e.platform=t.platform,e.arch=t.arch}),define(ve[6],we([0,1,27]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delimiter=e.sep=e.toNamespacedPath=e.parse=e.format=e.extname=e.basename=e.dirname=e.relative=e.resolve=e.join=e.isAbsolute=e.normalize=e.posix=e.win32=void 0;const t=65,D=97,P=90,k=122,y=46,p=47,C=92,T=58,R=63;class w extends Error{constructor(c,f,i){let s;typeof f=="string"&&f.indexOf("not ")===0?(s="must not be",f=f.replace(/^not /,"")):s="must be";const n=c.indexOf(".")!==-1?"property":"argument";let a=`The "${c}" ${n} ${s} of type ${f}`;a+=`. Received type ${typeof i}`;super(a);this.code="ERR_INVALID_ARG_TYPE"}}function E(u,c){if(typeof u!="string")throw new w(c,"string",u)}function d(u){return u===p||u===C}function I(u){return u===p}function v(u){return u>=t&&u<=P||u>=D&&u<=k}function m(u,c,f,i){let s="",n=0,a=-1,o=0,r=0;for(let l=0;l<=u.length;++l){if(l<u.length)r=u.charCodeAt(l);else{if(i(r))break;r=p}if(i(r)){if(!(a===l-1||o===1))if(o===2){if(s.length<2||n!==2||s.charCodeAt(s.length-1)!==y||s.charCodeAt(s.length-2)!==y){if(s.length>2){const h=s.lastIndexOf(f);h===-1?(s="",n=0):(s=s.slice(0,h),n=s.length-1-s.lastIndexOf(f)),a=l,o=0;continue}else if(s.length!==0){s="",n=0,a=l,o=0;continue}}c&&(s+=s.length>0?`${f}..`:"..",n=2)}else s.length>0?s+=`${f}${u.slice(a+1,l)}`:s=u.slice(a+1,l),n=l-a-1;a=l,o=0}else r===y&&o!==-1?++o:o=-1}return s}function g(u,c){if(c===null||typeof c!="object")throw new w("pathObject","Object",c);const f=c.dir||c.root,i=c.base||`${c.name||""}${c.ext||""}`;return f?f===c.root?`${f}${i}`:`${f}${u}${i}`:i}e.win32={resolve(...u){let c="",f="",i=!1;for(let s=u.length-1;s>=-1;s--){let n;if(s>=0){if(n=u[s],E(n,"path"),n.length===0)continue}else c.length===0?n=b.cwd():(n=b.env[`=${c}`]||b.cwd(),(n===void 0||n.slice(0,2).toLowerCase()!==c.toLowerCase()&&n.charCodeAt(2)===C)&&(n=`${c}\\`));const a=n.length;let o=0,r="",l=!1;const h=n.charCodeAt(0);if(a===1)d(h)&&(o=1,l=!0);else if(d(h))if(l=!0,d(n.charCodeAt(1))){let S=2,A=S;for(;S<a&&!d(n.charCodeAt(S));)S++;if(S<a&&S!==A){const $=n.slice(A,S);for(A=S;S<a&&d(n.charCodeAt(S));)S++;if(S<a&&S!==A){for(A=S;S<a&&!d(n.charCodeAt(S));)S++;(S===a||S!==A)&&(r=`\\\\${$}\\${n.slice(A,S)}`,o=S)}}}else o=1;else v(h)&&n.charCodeAt(1)===T&&(r=n.slice(0,2),o=2,a>2&&d(n.charCodeAt(2))&&(l=!0,o=3));if(r.length>0)if(c.length>0){if(r.toLowerCase()!==c.toLowerCase())continue}else c=r;if(i){if(c.length>0)break}else if(f=`${n.slice(o)}\\${f}`,i=l,l&&c.length>0)break}return f=m(f,!i,"\\",d),i?`${c}\\${f}`:`${c}${f}`||"."},normalize(u){E(u,"path");const c=u.length;if(c===0)return".";let f=0,i,s=!1;const n=u.charCodeAt(0);if(c===1)return I(n)?"\\":u;if(d(n))if(s=!0,d(u.charCodeAt(1))){let o=2,r=o;for(;o<c&&!d(u.charCodeAt(o));)o++;if(o<c&&o!==r){const l=u.slice(r,o);for(r=o;o<c&&d(u.charCodeAt(o));)o++;if(o<c&&o!==r){for(r=o;o<c&&!d(u.charCodeAt(o));)o++;if(o===c)return`\\\\${l}\\${u.slice(r)}\\`;o!==r&&(i=`\\\\${l}\\${u.slice(r,o)}`,f=o)}}}else f=1;else v(n)&&u.charCodeAt(1)===T&&(i=u.slice(0,2),f=2,c>2&&d(u.charCodeAt(2))&&(s=!0,f=3));let a=f<c?m(u.slice(f),!s,"\\",d):"";return a.length===0&&!s&&(a="."),a.length>0&&d(u.charCodeAt(c-1))&&(a+="\\"),i===void 0?s?`\\${a}`:a:s?`${i}\\${a}`:`${i}${a}`},isAbsolute(u){E(u,"path");const c=u.length;if(c===0)return!1;const f=u.charCodeAt(0);return d(f)||c>2&&v(f)&&u.charCodeAt(1)===T&&d(u.charCodeAt(2))},join(...u){if(u.length===0)return".";let c,f;for(let n=0;n<u.length;++n){const a=u[n];E(a,"path"),a.length>0&&(c===void 0?c=f=a:c+=`\\${a}`)}if(c===void 0)return".";let i=!0,s=0;if(typeof f=="string"&&d(f.charCodeAt(0))){++s;const n=f.length;n>1&&d(f.charCodeAt(1))&&(++s,n>2&&(d(f.charCodeAt(2))?++s:i=!1))}if(i){for(;s<c.length&&d(c.charCodeAt(s));)s++;s>=2&&(c=`\\${c.slice(s)}`)}return e.win32.normalize(c)},relative(u,c){if(E(u,"from"),E(c,"to"),u===c)return"";const f=e.win32.resolve(u),i=e.win32.resolve(c);if(f===i||(u=f.toLowerCase(),c=i.toLowerCase(),u===c))return"";let s=0;for(;s<u.length&&u.charCodeAt(s)===C;)s++;let n=u.length;for(;n-1>s&&u.charCodeAt(n-1)===C;)n--;const a=n-s;let o=0;for(;o<c.length&&c.charCodeAt(o)===C;)o++;let r=c.length;for(;r-1>o&&c.charCodeAt(r-1)===C;)r--;const l=r-o,h=a<l?a:l;let S=-1,A=0;for(;A<h;A++){const W=u.charCodeAt(s+A);if(W!==c.charCodeAt(o+A))break;W===C&&(S=A)}if(A!==h){if(S===-1)return i}else{if(l>h){if(c.charCodeAt(o+A)===C)return i.slice(o+A+1);if(A===2)return i.slice(o+A)}a>h&&(u.charCodeAt(s+A)===C?S=A:A===2&&(S=3)),S===-1&&(S=0)}let $="";for(A=s+S+1;A<=n;++A)(A===n||u.charCodeAt(A)===C)&&($+=$.length===0?"..":"\\..");return o+=S,$.length>0?`${$}${i.slice(o,r)}`:(i.charCodeAt(o)===C&&++o,i.slice(o,r))},toNamespacedPath(u){if(typeof u!="string")return u;if(u.length===0)return"";const c=e.win32.resolve(u);if(c.length<=2)return u;if(c.charCodeAt(0)===C){if(c.charCodeAt(1)===C){const f=c.charCodeAt(2);if(f!==R&&f!==y)return`\\\\?\\UNC\\${c.slice(2)}`}}else if(v(c.charCodeAt(0))&&c.charCodeAt(1)===T&&c.charCodeAt(2)===C)return`\\\\?\\${c}`;return u},dirname(u){E(u,"path");const c=u.length;if(c===0)return".";let f=-1,i=0;const s=u.charCodeAt(0);if(c===1)return d(s)?u:".";if(d(s)){if(f=i=1,d(u.charCodeAt(1))){let o=2,r=o;for(;o<c&&!d(u.charCodeAt(o));)o++;if(o<c&&o!==r){for(r=o;o<c&&d(u.charCodeAt(o));)o++;if(o<c&&o!==r){for(r=o;o<c&&!d(u.charCodeAt(o));)o++;if(o===c)return u;o!==r&&(f=i=o+1)}}}}else v(s)&&u.charCodeAt(1)===T&&(f=c>2&&d(u.charCodeAt(2))?3:2,i=f);let n=-1,a=!0;for(let o=c-1;o>=i;--o)if(d(u.charCodeAt(o))){if(!a){n=o;break}}else a=!1;if(n===-1){if(f===-1)return".";n=f}return u.slice(0,n)},basename(u,c){c!==void 0&&E(c,"ext"),E(u,"path");let f=0,i=-1,s=!0,n;if(u.length>=2&&v(u.charCodeAt(0))&&u.charCodeAt(1)===T&&(f=2),c!==void 0&&c.length>0&&c.length<=u.length){if(c===u)return"";let a=c.length-1,o=-1;for(n=u.length-1;n>=f;--n){const r=u.charCodeAt(n);if(d(r)){if(!s){f=n+1;break}}else o===-1&&(s=!1,o=n+1),a>=0&&(r===c.charCodeAt(a)?--a==-1&&(i=n):(a=-1,i=o))}return f===i?i=o:i===-1&&(i=u.length),u.slice(f,i)}for(n=u.length-1;n>=f;--n)if(d(u.charCodeAt(n))){if(!s){f=n+1;break}}else i===-1&&(s=!1,i=n+1);return i===-1?"":u.slice(f,i)},extname(u){E(u,"path");let c=0,f=-1,i=0,s=-1,n=!0,a=0;u.length>=2&&u.charCodeAt(1)===T&&v(u.charCodeAt(0))&&(c=i=2);for(let o=u.length-1;o>=c;--o){const r=u.charCodeAt(o);if(d(r)){if(!n){i=o+1;break}continue}s===-1&&(n=!1,s=o+1),r===y?f===-1?f=o:a!==1&&(a=1):f!==-1&&(a=-1)}return f===-1||s===-1||a===0||a===1&&f===s-1&&f===i+1?"":u.slice(f,s)},format:g.bind(null,"\\"),parse(u){E(u,"path");const c={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return c;const f=u.length;let i=0,s=u.charCodeAt(0);if(f===1)return d(s)?(c.root=c.dir=u,c):(c.base=c.name=u,c);if(d(s)){if(i=1,d(u.charCodeAt(1))){let S=2,A=S;for(;S<f&&!d(u.charCodeAt(S));)S++;if(S<f&&S!==A){for(A=S;S<f&&d(u.charCodeAt(S));)S++;if(S<f&&S!==A){for(A=S;S<f&&!d(u.charCodeAt(S));)S++;S===f?i=S:S!==A&&(i=S+1)}}}}else if(v(s)&&u.charCodeAt(1)===T){if(f<=2)return c.root=c.dir=u,c;if(i=2,d(u.charCodeAt(2))){if(f===3)return c.root=c.dir=u,c;i=3}}i>0&&(c.root=u.slice(0,i));let n=-1,a=i,o=-1,r=!0,l=u.length-1,h=0;for(;l>=i;--l){if(s=u.charCodeAt(l),d(s)){if(!r){a=l+1;break}continue}o===-1&&(r=!1,o=l+1),s===y?n===-1?n=l:h!==1&&(h=1):n!==-1&&(h=-1)}return o!==-1&&(n===-1||h===0||h===1&&n===o-1&&n===a+1?c.base=c.name=u.slice(a,o):(c.name=u.slice(a,n),c.base=u.slice(a,o),c.ext=u.slice(n,o))),a>0&&a!==i?c.dir=u.slice(0,a-1):c.dir=c.root,c},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...u){let c="",f=!1;for(let i=u.length-1;i>=-1&&!f;i--){const s=i>=0?u[i]:b.cwd();E(s,"path"),s.length!==0&&(c=`${s}/${c}`,f=s.charCodeAt(0)===p)}return c=m(c,!f,"/",I),f?`/${c}`:c.length>0?c:"."},normalize(u){if(E(u,"path"),u.length===0)return".";const c=u.charCodeAt(0)===p,f=u.charCodeAt(u.length-1)===p;return u=m(u,!c,"/",I),u.length===0?c?"/":f?"./":".":(f&&(u+="/"),c?`/${u}`:u)},isAbsolute(u){return E(u,"path"),u.length>0&&u.charCodeAt(0)===p},join(...u){if(u.length===0)return".";let c;for(let f=0;f<u.length;++f){const i=u[f];E(i,"path"),i.length>0&&(c===void 0?c=i:c+=`/${i}`)}return c===void 0?".":e.posix.normalize(c)},relative(u,c){if(E(u,"from"),E(c,"to"),u===c||(u=e.posix.resolve(u),c=e.posix.resolve(c),u===c))return"";const f=1,i=u.length,s=i-f,n=1,a=c.length-n,o=s<a?s:a;let r=-1,l=0;for(;l<o;l++){const S=u.charCodeAt(f+l);if(S!==c.charCodeAt(n+l))break;S===p&&(r=l)}if(l===o)if(a>o){if(c.charCodeAt(n+l)===p)return c.slice(n+l+1);if(l===0)return c.slice(n+l)}else s>o&&(u.charCodeAt(f+l)===p?r=l:l===0&&(r=0));let h="";for(l=f+r+1;l<=i;++l)(l===i||u.charCodeAt(l)===p)&&(h+=h.length===0?"..":"/..");return`${h}${c.slice(n+r)}`},toNamespacedPath(u){return u},dirname(u){if(E(u,"path"),u.length===0)return".";const c=u.charCodeAt(0)===p;let f=-1,i=!0;for(let s=u.length-1;s>=1;--s)if(u.charCodeAt(s)===p){if(!i){f=s;break}}else i=!1;return f===-1?c?"/":".":c&&f===1?"//":u.slice(0,f)},basename(u,c){c!==void 0&&E(c,"ext"),E(u,"path");let f=0,i=-1,s=!0,n;if(c!==void 0&&c.length>0&&c.length<=u.length){if(c===u)return"";let a=c.length-1,o=-1;for(n=u.length-1;n>=0;--n){const r=u.charCodeAt(n);if(r===p){if(!s){f=n+1;break}}else o===-1&&(s=!1,o=n+1),a>=0&&(r===c.charCodeAt(a)?--a==-1&&(i=n):(a=-1,i=o))}return f===i?i=o:i===-1&&(i=u.length),u.slice(f,i)}for(n=u.length-1;n>=0;--n)if(u.charCodeAt(n)===p){if(!s){f=n+1;break}}else i===-1&&(s=!1,i=n+1);return i===-1?"":u.slice(f,i)},extname(u){E(u,"path");let c=-1,f=0,i=-1,s=!0,n=0;for(let a=u.length-1;a>=0;--a){const o=u.charCodeAt(a);if(o===p){if(!s){f=a+1;break}continue}i===-1&&(s=!1,i=a+1),o===y?c===-1?c=a:n!==1&&(n=1):c!==-1&&(n=-1)}return c===-1||i===-1||n===0||n===1&&c===i-1&&c===f+1?"":u.slice(c,i)},format:g.bind(null,"/"),parse(u){E(u,"path");const c={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return c;const f=u.charCodeAt(0)===p;let i;f?(c.root="/",i=1):i=0;let s=-1,n=0,a=-1,o=!0,r=u.length-1,l=0;for(;r>=i;--r){const h=u.charCodeAt(r);if(h===p){if(!o){n=r+1;break}continue}a===-1&&(o=!1,a=r+1),h===y?s===-1?s=r:l!==1&&(l=1):s!==-1&&(l=-1)}if(a!==-1){const h=n===0&&f?1:n;s===-1||l===0||l===1&&s===a-1&&s===n+1?c.base=c.name=u.slice(h,a):(c.name=u.slice(h,s),c.base=u.slice(h,a),c.ext=u.slice(s,a))}return n>0?c.dir=u.slice(0,n-1):f&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=b.platform==="win32"?e.win32.normalize:e.posix.normalize,e.isAbsolute=b.platform==="win32"?e.win32.isAbsolute:e.posix.isAbsolute,e.join=b.platform==="win32"?e.win32.join:e.posix.join,e.resolve=b.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=b.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=b.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=b.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=b.platform==="win32"?e.win32.extname:e.posix.extname,e.format=b.platform==="win32"?e.win32.format:e.posix.format,e.parse=b.platform==="win32"?e.win32.parse:e.posix.parse,e.toNamespacedPath=b.platform==="win32"?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=b.platform==="win32"?e.win32.sep:e.posix.sep,e.delimiter=b.platform==="win32"?e.win32.delimiter:e.posix.delimiter}),define(ve[66],we([0,1,6]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeMimeType=e.getExtensionForMimeType=e.getMediaMime=e.getMediaOrTextMime=e.Mimes=void 0,e.Mimes=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"});const t={".css":"text/css",".csv":"text/csv",".htm":"text/html",".html":"text/html",".ics":"text/calendar",".js":"text/javascript",".mjs":"text/javascript",".txt":"text/plain",".xml":"text/xml"},D={".aac":"audio/x-aac",".avi":"video/x-msvideo",".bmp":"image/bmp",".flv":"video/x-flv",".gif":"image/gif",".ico":"image/x-icon",".jpe":"image/jpg",".jpeg":"image/jpg",".jpg":"image/jpg",".m1v":"video/mpeg",".m2a":"audio/mpeg",".m2v":"video/mpeg",".m3a":"audio/mpeg",".mid":"audio/midi",".midi":"audio/midi",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".mkv":"video/x-matroska",".mov":"video/quicktime",".movie":"video/x-sgi-movie",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",".mp3":"audio/mpeg",".mp4":"video/mp4",".mp4a":"audio/mp4",".mp4v":"video/mp4",".mpe":"video/mpeg",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpg4":"video/mp4",".mpga":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".opus":"audio/opus",".ogv":"video/ogg",".png":"image/png",".psd":"image/vnd.adobe.photoshop",".qt":"video/quicktime",".spx":"audio/ogg",".svg":"image/svg+xml",".tga":"image/x-tga",".tif":"image/tiff",".tiff":"image/tiff",".wav":"audio/x-wav",".webm":"video/webm",".webp":"image/webp",".wma":"audio/x-ms-wma",".wmv":"video/x-ms-wmv",".woff":"application/font-woff"};function P(T){const R=(0,b.extname)(T),w=t[R.toLowerCase()];return w!==void 0?w:k(T)}e.getMediaOrTextMime=P;function k(T){const R=(0,b.extname)(T);return D[R.toLowerCase()]}e.getMediaMime=k;function y(T){for(const R in D)if(D[R]===T)return R}e.getExtensionForMimeType=y;const p=/^(.+)\/(.+?)(;.+)?$/;function C(T,R){const w=p.exec(T);return w?`${w[1].toLowerCase()}/${w[2].toLowerCase()}${w[3]??""}`:R?void 0:T}e.normalizeMimeType=C}),define(ve[56],we([0,1,3]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeDangerousEnvVariables=e.sanitizeProcessEnvironment=e.TerminateResponseCode=e.Source=void 0;var t;(function(y){y[y.stdout=0]="stdout",y[y.stderr=1]="stderr"})(t=e.Source||(e.Source={}));var D;(function(y){y[y.Success=0]="Success",y[y.Unknown=1]="Unknown",y[y.AccessDenied=2]="AccessDenied",y[y.ProcessNotFound=3]="ProcessNotFound"})(D=e.TerminateResponseCode||(e.TerminateResponseCode={}));function P(y,...p){const C=p.reduce((w,E)=>(w[E]=!0,w),{}),T=[/^ELECTRON_.+$/,/^VSCODE_(?!SHELL_LOGIN).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/,/^CODE_SERVER_.+$/,/^CS_.+$/];Object.keys(y).filter(w=>!C[w]).forEach(w=>{for(let E=0;E<T.length;E++)if(w.search(T[E])!==-1){delete y[w];break}})}e.sanitizeProcessEnvironment=P;function k(y){!y||(delete y.DEBUG,b.isMacintosh&&delete y.DYLD_LIBRARY_PATH,b.isLinux&&delete y.LD_PRELOAD)}e.removeDangerousEnvVariables=k}),function(oe,e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define("vs/base/common/semver/semver",[],e);else{var b=e();for(var t in b)(typeof exports=="object"?exports:oe)[t]=b[t]}}(typeof self!="undefined"?self:this,function(){return function(oe){var e={};function b(t){if(e[t])return e[t].exports;var D=e[t]={i:t,l:!1,exports:{}};return oe[t].call(D.exports,D,D.exports,b),D.l=!0,D.exports}return b.m=oe,b.c=e,b.d=function(t,D,P){b.o(t,D)||Object.defineProperty(t,D,{enumerable:!0,get:P})},b.r=function(t){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},b.t=function(t,D){if(1&D&&(t=b(t)),8&D||4&D&&typeof t=="object"&&t&&t.__esModule)return t;var P=Object.create(null);if(b.r(P),Object.defineProperty(P,"default",{enumerable:!0,value:t}),2&D&&typeof t!="string")for(var k in t)b.d(P,k,function(y){return t[y]}.bind(null,k));return P},b.n=function(t){var D=t&&t.__esModule?function(){return t.default}:function(){return t};return b.d(D,"a",D),D},b.o=function(t,D){return Object.prototype.hasOwnProperty.call(t,D)},b.p="",b(b.s=0)}([function(oe,e,b){(function(t){var D;e=oe.exports=O,D=typeof t=="object"&&t.env&&t.env.NODE_DEBUG&&/\bsemver\b/i.test(t.env.NODE_DEBUG)?function(){var ge=Array.prototype.slice.call(arguments,0);ge.unshift("SEMVER"),console.log.apply(console,ge)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var P=256,k=Number.MAX_SAFE_INTEGER||9007199254740991,y=e.re=[],p=e.src=[],C=0,T=C++;p[T]="0|[1-9]\\d*";var R=C++;p[R]="[0-9]+";var w=C++;p[w]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var E=C++;p[E]="("+p[T]+")\\.("+p[T]+")\\.("+p[T]+")";var d=C++;p[d]="("+p[R]+")\\.("+p[R]+")\\.("+p[R]+")";var I=C++;p[I]="(?:"+p[T]+"|"+p[w]+")";var v=C++;p[v]="(?:"+p[R]+"|"+p[w]+")";var m=C++;p[m]="(?:-("+p[I]+"(?:\\."+p[I]+")*))";var g=C++;p[g]="(?:-?("+p[v]+"(?:\\."+p[v]+")*))";var u=C++;p[u]="[0-9A-Za-z-]+";var c=C++;p[c]="(?:\\+("+p[u]+"(?:\\."+p[u]+")*))";var f=C++,i="v?"+p[E]+p[m]+"?"+p[c]+"?";p[f]="^"+i+"$";var s="[v=\\s]*"+p[d]+p[g]+"?"+p[c]+"?",n=C++;p[n]="^"+s+"$";var a=C++;p[a]="((?:<|>)?=?)";var o=C++;p[o]=p[R]+"|x|X|\\*";var r=C++;p[r]=p[T]+"|x|X|\\*";var l=C++;p[l]="[v=\\s]*("+p[r]+")(?:\\.("+p[r]+")(?:\\.("+p[r]+")(?:"+p[m]+")?"+p[c]+"?)?)?";var h=C++;p[h]="[v=\\s]*("+p[o]+")(?:\\.("+p[o]+")(?:\\.("+p[o]+")(?:"+p[g]+")?"+p[c]+"?)?)?";var S=C++;p[S]="^"+p[a]+"\\s*"+p[l]+"$";var A=C++;p[A]="^"+p[a]+"\\s*"+p[h]+"$";var $=C++;p[$]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var W=C++;p[W]="(?:~>?)";var ee=C++;p[ee]="(\\s*)"+p[W]+"\\s+",y[ee]=new RegExp(p[ee],"g");var L=C++;p[L]="^"+p[W]+p[l]+"$";var q=C++;p[q]="^"+p[W]+p[h]+"$";var ne=C++;p[ne]="(?:\\^)";var x=C++;p[x]="(\\s*)"+p[ne]+"\\s+",y[x]=new RegExp(p[x],"g");var fe=C++;p[fe]="^"+p[ne]+p[l]+"$";var M=C++;p[M]="^"+p[ne]+p[h]+"$";var B=C++;p[B]="^"+p[a]+"\\s*("+s+")$|^$";var U=C++;p[U]="^"+p[a]+"\\s*("+i+")$|^$";var z=C++;p[z]="(\\s*)"+p[a]+"\\s*("+s+"|"+p[l]+")",y[z]=new RegExp(p[z],"g");var X=C++;p[X]="^\\s*("+p[l]+")\\s+-\\s+("+p[l]+")\\s*$";var ue=C++;p[ue]="^\\s*("+p[h]+")\\s+-\\s+("+p[h]+")\\s*$";var de=C++;p[de]="(<|>)?=?\\s*\\*";for(var G=0;G<35;G++)D(G,p[G]),y[G]||(y[G]=new RegExp(p[G]));function se(ge,be){if(ge instanceof O)return ge;if(typeof ge!="string"||ge.length>P||!(be?y[n]:y[f]).test(ge))return null;try{return new O(ge,be)}catch{return null}}function O(ge,be){if(ge instanceof O){if(ge.loose===be)return ge;ge=ge.version}else if(typeof ge!="string")throw new TypeError("Invalid Version: "+ge);if(ge.length>P)throw new TypeError("version is longer than "+P+" characters");if(!(this instanceof O))return new O(ge,be);D("SemVer",ge,be),this.loose=be;var ye=ge.trim().match(be?y[n]:y[f]);if(!ye)throw new TypeError("Invalid Version: "+ge);if(this.raw=ge,this.major=+ye[1],this.minor=+ye[2],this.patch=+ye[3],this.major>k||this.major<0)throw new TypeError("Invalid major version");if(this.minor>k||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>k||this.patch<0)throw new TypeError("Invalid patch version");ye[4]?this.prerelease=ye[4].split(".").map(function(Fe){if(/^[0-9]+$/.test(Fe)){var Me=+Fe;if(Me>=0&&Me<k)return Me}return Fe}):this.prerelease=[],this.build=ye[5]?ye[5].split("."):[],this.format()}e.parse=se,e.valid=function(ge,be){var ye=se(ge,be);return ye?ye.version:null},e.clean=function(ge,be){var ye=se(ge.trim().replace(/^[=v]+/,""),be);return ye?ye.version:null},e.SemVer=O,O.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},O.prototype.toString=function(){return this.version},O.prototype.compare=function(ge){return D("SemVer.compare",this.version,this.loose,ge),ge instanceof O||(ge=new O(ge,this.loose)),this.compareMain(ge)||this.comparePre(ge)},O.prototype.compareMain=function(ge){return ge instanceof O||(ge=new O(ge,this.loose)),K(this.major,ge.major)||K(this.minor,ge.minor)||K(this.patch,ge.patch)},O.prototype.comparePre=function(ge){if(ge instanceof O||(ge=new O(ge,this.loose)),this.prerelease.length&&!ge.prerelease.length)return-1;if(!this.prerelease.length&&ge.prerelease.length)return 1;if(!this.prerelease.length&&!ge.prerelease.length)return 0;var be=0;do{var ye=this.prerelease[be],Fe=ge.prerelease[be];if(D("prerelease compare",be,ye,Fe),ye===void 0&&Fe===void 0)return 0;if(Fe===void 0)return 1;if(ye===void 0)return-1;if(ye!==Fe)return K(ye,Fe)}while(++be)},O.prototype.inc=function(ge,be){switch(ge){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",be);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",be);break;case"prepatch":this.prerelease.length=0,this.inc("patch",be),this.inc("pre",be);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",be),this.inc("pre",be);break;case"major":this.minor===0&&this.patch===0&&this.prerelease.length!==0||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":this.patch===0&&this.prerelease.length!==0||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{for(var ye=this.prerelease.length;--ye>=0;)typeof this.prerelease[ye]=="number"&&(this.prerelease[ye]++,ye=-2);ye===-1&&this.prerelease.push(0)}be&&(this.prerelease[0]===be?isNaN(this.prerelease[1])&&(this.prerelease=[be,0]):this.prerelease=[be,0]);break;default:throw new Error("invalid increment argument: "+ge)}return this.format(),this.raw=this.version,this},e.inc=function(ge,be,ye,Fe){typeof ye=="string"&&(Fe=ye,ye=void 0);try{return new O(ge,ye).inc(be,Fe).version}catch{return null}},e.diff=function(ge,be){if(Q(ge,be))return null;var ye=se(ge),Fe=se(be);if(ye.prerelease.length||Fe.prerelease.length){for(var Me in ye)if((Me==="major"||Me==="minor"||Me==="patch")&&ye[Me]!==Fe[Me])return"pre"+Me;return"prerelease"}for(var Me in ye)if((Me==="major"||Me==="minor"||Me==="patch")&&ye[Me]!==Fe[Me])return Me},e.compareIdentifiers=K;var F=/^[0-9]+$/;function K(ge,be){var ye=F.test(ge),Fe=F.test(be);return ye&&Fe&&(ge=+ge,be=+be),ye&&!Fe?-1:Fe&&!ye?1:ge<be?-1:ge>be?1:0}function re(ge,be,ye){return new O(ge,ye).compare(new O(be,ye))}function he(ge,be,ye){return re(ge,be,ye)>0}function te(ge,be,ye){return re(ge,be,ye)<0}function Q(ge,be,ye){return re(ge,be,ye)===0}function Z(ge,be,ye){return re(ge,be,ye)!==0}function ae(ge,be,ye){return re(ge,be,ye)>=0}function j(ge,be,ye){return re(ge,be,ye)<=0}function ie(ge,be,ye,Fe){var Me;switch(be){case"===":typeof ge=="object"&&(ge=ge.version),typeof ye=="object"&&(ye=ye.version),Me=ge===ye;break;case"!==":typeof ge=="object"&&(ge=ge.version),typeof ye=="object"&&(ye=ye.version),Me=ge!==ye;break;case"":case"=":case"==":Me=Q(ge,ye,Fe);break;case"!=":Me=Z(ge,ye,Fe);break;case">":Me=he(ge,ye,Fe);break;case">=":Me=ae(ge,ye,Fe);break;case"<":Me=te(ge,ye,Fe);break;case"<=":Me=j(ge,ye,Fe);break;default:throw new TypeError("Invalid operator: "+be)}return Me}function H(ge,be){if(ge instanceof H){if(ge.loose===be)return ge;ge=ge.value}if(!(this instanceof H))return new H(ge,be);D("comparator",ge,be),this.loose=be,this.parse(ge),this.semver===Y?this.value="":this.value=this.operator+this.semver.version,D("comp",this)}e.rcompareIdentifiers=function(ge,be){return K(be,ge)},e.major=function(ge,be){return new O(ge,be).major},e.minor=function(ge,be){return new O(ge,be).minor},e.patch=function(ge,be){return new O(ge,be).patch},e.compare=re,e.compareLoose=function(ge,be){return re(ge,be,!0)},e.rcompare=function(ge,be,ye){return re(be,ge,ye)},e.sort=function(ge,be){return ge.sort(function(ye,Fe){return e.compare(ye,Fe,be)})},e.rsort=function(ge,be){return ge.sort(function(ye,Fe){return e.rcompare(ye,Fe,be)})},e.gt=he,e.lt=te,e.eq=Q,e.neq=Z,e.gte=ae,e.lte=j,e.cmp=ie,e.Comparator=H;var Y={};function le(ge,be){if(ge instanceof le)return ge.loose===be?ge:new le(ge.raw,be);if(ge instanceof H)return new le(ge.value,be);if(!(this instanceof le))return new le(ge,be);if(this.loose=be,this.raw=ge,this.set=ge.split(/\s*\|\|\s*/).map(function(ye){return this.parseRange(ye.trim())},this).filter(function(ye){return ye.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+ge);this.format()}function pe(ge){return!ge||ge.toLowerCase()==="x"||ge==="*"}function Pe(ge,be,ye,Fe,Me,Qe,$e,Ze,xe,je,We,ce,Ce){return((be=pe(ye)?"":pe(Fe)?">="+ye+".0.0":pe(Me)?">="+ye+"."+Fe+".0":">="+be)+" "+(Ze=pe(xe)?"":pe(je)?"<"+(+xe+1)+".0.0":pe(We)?"<"+xe+"."+(+je+1)+".0":ce?"<="+xe+"."+je+"."+We+"-"+ce:"<="+Ze)).trim()}function Te(ge,be){for(var ye=0;ye<ge.length;ye++)if(!ge[ye].test(be))return!1;if(be.prerelease.length){for(ye=0;ye<ge.length;ye++)if(D(ge[ye].semver),ge[ye].semver!==Y&&ge[ye].semver.prerelease.length>0){var Fe=ge[ye].semver;if(Fe.major===be.major&&Fe.minor===be.minor&&Fe.patch===be.patch)return!0}return!1}return!0}function Ne(ge,be,ye){try{be=new le(be,ye)}catch{return!1}return be.test(ge)}function Ue(ge,be,ye,Fe){var Me,Qe,$e,Ze,xe;switch(ge=new O(ge,Fe),be=new le(be,Fe),ye){case">":Me=he,Qe=j,$e=te,Ze=">",xe=">=";break;case"<":Me=te,Qe=ae,$e=he,Ze="<",xe="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Ne(ge,be,Fe))return!1;for(var je=0;je<be.set.length;++je){var We=be.set[je],ce=null,Ce=null;if(We.forEach(function(ke){ke.semver===Y&&(ke=new H(">=0.0.0")),ce=ce||ke,Ce=Ce||ke,Me(ke.semver,ce.semver,Fe)?ce=ke:$e(ke.semver,Ce.semver,Fe)&&(Ce=ke)}),ce.operator===Ze||ce.operator===xe||(!Ce.operator||Ce.operator===Ze)&&Qe(ge,Ce.semver)||Ce.operator===xe&&$e(ge,Ce.semver))return!1}return!0}H.prototype.parse=function(ge){var be=this.loose?y[B]:y[U],ye=ge.match(be);if(!ye)throw new TypeError("Invalid comparator: "+ge);this.operator=ye[1],this.operator==="="&&(this.operator=""),ye[2]?this.semver=new O(ye[2],this.loose):this.semver=Y},H.prototype.toString=function(){return this.value},H.prototype.test=function(ge){return D("Comparator.test",ge,this.loose),this.semver===Y||(typeof ge=="string"&&(ge=new O(ge,this.loose)),ie(ge,this.operator,this.semver,this.loose))},H.prototype.intersects=function(ge,be){if(!(ge instanceof H))throw new TypeError("a Comparator is required");var ye;if(this.operator==="")return ye=new le(ge.value,be),Ne(this.value,ye,be);if(ge.operator==="")return ye=new le(this.value,be),Ne(ge.semver,ye,be);var Fe=!(this.operator!==">="&&this.operator!==">"||ge.operator!==">="&&ge.operator!==">"),Me=!(this.operator!=="<="&&this.operator!=="<"||ge.operator!=="<="&&ge.operator!=="<"),Qe=this.semver.version===ge.semver.version,$e=!(this.operator!==">="&&this.operator!=="<="||ge.operator!==">="&&ge.operator!=="<="),Ze=ie(this.semver,"<",ge.semver,be)&&(this.operator===">="||this.operator===">")&&(ge.operator==="<="||ge.operator==="<"),xe=ie(this.semver,">",ge.semver,be)&&(this.operator==="<="||this.operator==="<")&&(ge.operator===">="||ge.operator===">");return Fe||Me||Qe&&$e||Ze||xe},e.Range=le,le.prototype.format=function(){return this.range=this.set.map(function(ge){return ge.join(" ").trim()}).join("||").trim(),this.range},le.prototype.toString=function(){return this.range},le.prototype.parseRange=function(ge){var be=this.loose;ge=ge.trim(),D("range",ge,be);var ye=be?y[ue]:y[X];ge=ge.replace(ye,Pe),D("hyphen replace",ge),ge=ge.replace(y[z],"$1$2$3"),D("comparator trim",ge,y[z]),ge=(ge=(ge=ge.replace(y[ee],"$1~")).replace(y[x],"$1^")).split(/\s+/).join(" ");var Fe=be?y[B]:y[U],Me=ge.split(" ").map(function(Qe){return function($e,Ze){return D("comp",$e),$e=function(xe,je){return xe.trim().split(/\s+/).map(function(We){return function(ce,Ce){D("caret",ce,Ce);var ke=Ce?y[M]:y[fe];return ce.replace(ke,function(Oe,Re,Be,He,Ye){var Xe;return D("caret",ce,Oe,Re,Be,He,Ye),pe(Re)?Xe="":pe(Be)?Xe=">="+Re+".0.0 <"+(+Re+1)+".0.0":pe(He)?Xe=Re==="0"?">="+Re+"."+Be+".0 <"+Re+"."+(+Be+1)+".0":">="+Re+"."+Be+".0 <"+(+Re+1)+".0.0":Ye?(D("replaceCaret pr",Ye),Ye.charAt(0)!=="-"&&(Ye="-"+Ye),Xe=Re==="0"?Be==="0"?">="+Re+"."+Be+"."+He+Ye+" <"+Re+"."+Be+"."+(+He+1):">="+Re+"."+Be+"."+He+Ye+" <"+Re+"."+(+Be+1)+".0":">="+Re+"."+Be+"."+He+Ye+" <"+(+Re+1)+".0.0"):(D("no pr"),Xe=Re==="0"?Be==="0"?">="+Re+"."+Be+"."+He+" <"+Re+"."+Be+"."+(+He+1):">="+Re+"."+Be+"."+He+" <"+Re+"."+(+Be+1)+".0":">="+Re+"."+Be+"."+He+" <"+(+Re+1)+".0.0"),D("caret return",Xe),Xe})}(We,je)}).join(" ")}($e,Ze),D("caret",$e),$e=function(xe,je){return xe.trim().split(/\s+/).map(function(We){return function(ce,Ce){var ke=Ce?y[q]:y[L];return ce.replace(ke,function(Oe,Re,Be,He,Ye){var Xe;return D("tilde",ce,Oe,Re,Be,He,Ye),pe(Re)?Xe="":pe(Be)?Xe=">="+Re+".0.0 <"+(+Re+1)+".0.0":pe(He)?Xe=">="+Re+"."+Be+".0 <"+Re+"."+(+Be+1)+".0":Ye?(D("replaceTilde pr",Ye),Ye.charAt(0)!=="-"&&(Ye="-"+Ye),Xe=">="+Re+"."+Be+"."+He+Ye+" <"+Re+"."+(+Be+1)+".0"):Xe=">="+Re+"."+Be+"."+He+" <"+Re+"."+(+Be+1)+".0",D("tilde return",Xe),Xe})}(We,je)}).join(" ")}($e,Ze),D("tildes",$e),$e=function(xe,je){return D("replaceXRanges",xe,je),xe.split(/\s+/).map(function(We){return function(ce,Ce){ce=ce.trim();var ke=Ce?y[A]:y[S];return ce.replace(ke,function(Oe,Re,Be,He,Ye,Xe){D("xRange",ce,Oe,Re,Be,He,Ye,Xe);var nt=pe(Be),it=nt||pe(He),rt=it||pe(Ye);return Re==="="&&rt&&(Re=""),nt?Oe=Re===">"||Re==="<"?"<0.0.0":"*":Re&&rt?(it&&(He=0),rt&&(Ye=0),Re===">"?(Re=">=",it?(Be=+Be+1,He=0,Ye=0):rt&&(He=+He+1,Ye=0)):Re==="<="&&(Re="<",it?Be=+Be+1:He=+He+1),Oe=Re+Be+"."+He+"."+Ye):it?Oe=">="+Be+".0.0 <"+(+Be+1)+".0.0":rt&&(Oe=">="+Be+"."+He+".0 <"+Be+"."+(+He+1)+".0"),D("xRange return",Oe),Oe})}(We,je)}).join(" ")}($e,Ze),D("xrange",$e),$e=function(xe,je){return D("replaceStars",xe,je),xe.trim().replace(y[de],"")}($e,Ze),D("stars",$e),$e}(Qe,be)}).join(" ").split(/\s+/);return this.loose&&(Me=Me.filter(function(Qe){return!!Qe.match(Fe)})),Me=Me.map(function(Qe){return new H(Qe,be)})},le.prototype.intersects=function(ge,be){if(!(ge instanceof le))throw new TypeError("a Range is required");return this.set.some(function(ye){return ye.every(function(Fe){return ge.set.some(function(Me){return Me.every(function(Qe){return Fe.intersects(Qe,be)})})})})},e.toComparators=function(ge,be){return new le(ge,be).set.map(function(ye){return ye.map(function(Fe){return Fe.value}).join(" ").trim().split(" ")})},le.prototype.test=function(ge){if(!ge)return!1;typeof ge=="string"&&(ge=new O(ge,this.loose));for(var be=0;be<this.set.length;be++)if(Te(this.set[be],ge))return!0;return!1},e.satisfies=Ne,e.maxSatisfying=function(ge,be,ye){var Fe=null,Me=null;try{var Qe=new le(be,ye)}catch{return null}return ge.forEach(function($e){Qe.test($e)&&(Fe&&Me.compare($e)!==-1||(Me=new O(Fe=$e,ye)))}),Fe},e.minSatisfying=function(ge,be,ye){var Fe=null,Me=null;try{var Qe=new le(be,ye)}catch{return null}return ge.forEach(function($e){Qe.test($e)&&(Fe&&Me.compare($e)!==1||(Me=new O(Fe=$e,ye)))}),Fe},e.validRange=function(ge,be){try{return new le(ge,be).range||"*"}catch{return null}},e.ltr=function(ge,be,ye){return Ue(ge,be,"<",ye)},e.gtr=function(ge,be,ye){return Ue(ge,be,">",ye)},e.outside=Ue,e.prerelease=function(ge,be){var ye=se(ge,be);return ye&&ye.prerelease.length?ye.prerelease:null},e.intersects=function(ge,be,ye){return ge=new le(ge,ye),be=new le(be,ye),ge.intersects(be)},e.coerce=function(ge){if(ge instanceof O)return ge;if(typeof ge!="string")return null;var be=ge.match(y[$]);return be==null?null:se((be[1]||"0")+"."+(be[2]||"0")+"."+(be[3]||"0"))}}).call(this,b(1))},function(oe,e){var b,t,D=oe.exports={};function P(){throw new Error("setTimeout has not been defined")}function k(){throw new Error("clearTimeout has not been defined")}function y(v){if(b===setTimeout)return setTimeout(v,0);if((b===P||!b)&&setTimeout)return b=setTimeout,setTimeout(v,0);try{return b(v,0)}catch{try{return b.call(null,v,0)}catch{return b.call(this,v,0)}}}(function(){try{b=typeof setTimeout=="function"?setTimeout:P}catch{b=P}try{t=typeof clearTimeout=="function"?clearTimeout:k}catch{t=k}})();var p,C=[],T=!1,R=-1;function w(){T&&p&&(T=!1,p.length?C=p.concat(C):R=-1,C.length&&E())}function E(){if(!T){var v=y(w);T=!0;for(var m=C.length;m;){for(p=C,C=[];++R<m;)p&&p[R].run();R=-1,m=C.length}p=null,T=!1,function(g){if(t===clearTimeout)return clearTimeout(g);if((t===k||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(g);try{t(g)}catch{try{return t.call(null,g)}catch{return t.call(this,g)}}}(v)}}function d(v,m){this.fun=v,this.array=m}function I(){}D.nextTick=function(v){var m=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)m[g-1]=arguments[g];C.push(new d(v,m)),C.length!==1||T||y(E)},d.prototype.run=function(){this.fun.apply(null,this.array)},D.title="browser",D.browser=!0,D.env={},D.argv=[],D.version="",D.versions={},D.on=I,D.addListener=I,D.once=I,D.off=I,D.removeListener=I,D.removeAllListeners=I,D.emit=I,D.prependListener=I,D.prependOnceListener=I,D.listeners=function(v){return[]},D.binding=function(v){throw new Error("process.binding is not supported")},D.cwd=function(){return"/"},D.chdir=function(v){throw new Error("process.chdir is not supported")},D.umask=function(){return 0}}])}),define(ve[135],we([0,1]),function(oe,e){"use strict";var b;Object.defineProperty(e,"__esModule",{value:!0}),e.SkipList=void 0;class t{constructor(y,p,C){this.level=y,this.key=p,this.value=C,this.forward=[]}}const D=void 0;class P{constructor(y,p=2**16){this.comparator=y,this[b]="SkipList",this._level=0,this._size=0,this._maxLevel=Math.max(1,Math.log2(p)|0),this._header=new t(this._maxLevel,D,D)}get size(){return this._size}clear(){this._header=new t(this._maxLevel,D,D)}has(y){return Boolean(P._search(this,y,this.comparator))}get(y){return P._search(this,y,this.comparator)?.value}set(y,p){return P._insert(this,y,p,this.comparator)&&(this._size+=1),this}delete(y){const p=P._delete(this,y,this.comparator);return p&&(this._size-=1),p}forEach(y,p){let C=this._header.forward[0];for(;C;)y.call(p,C.value,C.key,this),C=C.forward[0]}[(b=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}*entries(){let y=this._header.forward[0];for(;y;)yield[y.key,y.value],y=y.forward[0]}*keys(){let y=this._header.forward[0];for(;y;)yield y.key,y=y.forward[0]}*values(){let y=this._header.forward[0];for(;y;)yield y.value,y=y.forward[0]}toString(){let y="[SkipList]:",p=this._header.forward[0];for(;p;)y+=`node(${p.key}, ${p.value}, lvl:${p.level})`,p=p.forward[0];return y}static _search(y,p,C){let T=y._header;for(let R=y._level-1;R>=0;R--)for(;T.forward[R]&&C(T.forward[R].key,p)<0;)T=T.forward[R];if(T=T.forward[0],T&&C(T.key,p)===0)return T}static _insert(y,p,C,T){const R=[];let w=y._header;for(let E=y._level-1;E>=0;E--){for(;w.forward[E]&&T(w.forward[E].key,p)<0;)w=w.forward[E];R[E]=w}if(w=w.forward[0],w&&T(w.key,p)===0)return w.value=C,!1;{const E=P._randomLevel(y);if(E>y._level){for(let d=y._level;d<E;d++)R[d]=y._header;y._level=E}w=new t(E,p,C);for(let d=0;d<E;d++)w.forward[d]=R[d].forward[d],R[d].forward[d]=w;return!0}}static _randomLevel(y,p=.5){let C=1;for(;Math.random()<p&&C<y._maxLevel;)C+=1;return C}static _delete(y,p,C){const T=[];let R=y._header;for(let w=y._level-1;w>=0;w--){for(;R.forward[w]&&C(R.forward[w].key,p)<0;)R=R.forward[w];T[w]=R}if(R=R.forward[0],!R||C(R.key,p)!==0)return!1;for(let w=0;w<y._level&&T[w].forward[w]===R;w++)T[w].forward[w]=R.forward[w];for(;y._level>0&&y._header.forward[y._level-1]===D;)y._level-=1;return!0}}e.SkipList=P}),define(ve[136],we([0,1,3]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const t=b.globals.performance&&typeof b.globals.performance.now=="function";class D{constructor(k){this._highResolution=t&&k,this._startTime=this._now(),this._stopTime=-1}static create(k=!0){return new D(k)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?b.globals.performance.now():Date.now()}}e.StopWatch=D}),define(ve[7],we([0,1,11,64,2,133,136]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.EventMultiplexer=e.MicrotaskEmitter=e.DebounceEmitter=e.PauseableEmitter=e.AsyncEmitter=e.EventDeliveryQueue=e.Emitter=e.setGlobalLeakWarningThreshold=e.Event=void 0;const y=!1,p=!1;var C;(function(r){r.None=()=>D.Disposable.None;function l(F){if(p){const{onListenerDidAdd:K}=F,re=d.create();let he=0;F.onListenerDidAdd=()=>{++he==2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),re.print()),K?.()}}}function h(F){return(K,re=null,he)=>{let te=!1,Q;return Q=F(Z=>{if(!te)return Q?Q.dispose():te=!0,K.call(re,Z)},null,he),te&&Q.dispose(),Q}}r.once=h;function S(F,K,re){return q((he,te=null,Q)=>F(Z=>he.call(te,K(Z)),null,Q),re)}r.map=S;function A(F,K,re){return q((he,te=null,Q)=>F(Z=>{K(Z),he.call(te,Z)},null,Q),re)}r.forEach=A;function $(F,K,re){return q((he,te=null,Q)=>F(Z=>K(Z)&&he.call(te,Z),null,Q),re)}r.filter=$;function W(F){return F}r.signal=W;function ee(...F){return(K,re=null,he)=>(0,D.combinedDisposable)(...F.map(te=>te(Q=>K.call(re,Q),null,he)))}r.any=ee;function L(F,K,re,he){let te=re;return S(F,Q=>(te=K(te,Q),te),he)}r.reduce=L;function q(F,K){let re;const he={onFirstListenerAdd(){re=F(te.fire,te)},onLastListenerRemove(){re?.dispose()}};K||l(he);const te=new v(he);return K?.add(te),te.event}function ne(F,K,re=100,he=!1,te,Q){let Z,ae,j,ie=0;const H={leakWarningThreshold:te,onFirstListenerAdd(){Z=F(le=>{ie++,ae=K(ae,le),he&&!j&&(Y.fire(ae),ae=void 0),clearTimeout(j),j=setTimeout(()=>{const pe=ae;ae=void 0,j=void 0,(!he||ie>1)&&Y.fire(pe),ie=0},re)})},onLastListenerRemove(){Z.dispose()}};Q||l(H);const Y=new v(H);return Q?.add(Y),Y.event}r.debounce=ne;function x(F,K=(he,te)=>he===te,re){let he=!0,te;return $(F,Q=>{const Z=he||!K(Q,te);return he=!1,te=Q,Z},re)}r.latch=x;function fe(F,K,re){return[r.filter(F,K,re),r.filter(F,he=>!K(he),re)]}r.split=fe;function M(F,K=!1,re=[]){let he=re.slice(),te=F(ae=>{he?he.push(ae):Z.fire(ae)});const Q=()=>{he?.forEach(ae=>Z.fire(ae)),he=null},Z=new v({onFirstListenerAdd(){te||(te=F(ae=>Z.fire(ae)))},onFirstListenerDidAdd(){he&&(K?setTimeout(Q):Q())},onLastListenerRemove(){te&&te.dispose(),te=null}});return Z.event}r.buffer=M;class B{constructor(K){this.event=K,this.disposables=new D.DisposableStore}map(K){return new B(S(this.event,K,this.disposables))}forEach(K){return new B(A(this.event,K,this.disposables))}filter(K){return new B($(this.event,K,this.disposables))}reduce(K,re){return new B(L(this.event,K,re,this.disposables))}latch(){return new B(x(this.event,void 0,this.disposables))}debounce(K,re=100,he=!1,te){return new B(ne(this.event,K,re,he,te,this.disposables))}on(K,re,he){return this.event(K,re,he)}once(K,re,he){return h(this.event)(K,re,he)}dispose(){this.disposables.dispose()}}function U(F){return new B(F)}r.chain=U;function z(F,K,re=he=>he){const he=(...ae)=>Z.fire(re(...ae)),te=()=>F.on(K,he),Q=()=>F.removeListener(K,he),Z=new v({onFirstListenerAdd:te,onLastListenerRemove:Q});return Z.event}r.fromNodeEventEmitter=z;function X(F,K,re=he=>he){const he=(...ae)=>Z.fire(re(...ae)),te=()=>F.addEventListener(K,he),Q=()=>F.removeEventListener(K,he),Z=new v({onFirstListenerAdd:te,onLastListenerRemove:Q});return Z.event}r.fromDOMEventEmitter=X;function ue(F){return new Promise(K=>h(F)(K))}r.toPromise=ue;function de(F,K){return K(void 0),F(re=>K(re))}r.runAndSubscribe=de;function G(F,K){let re=null;function he(Q){re?.dispose(),re=new D.DisposableStore,K(Q,re)}he(void 0);const te=F(Q=>he(Q));return(0,D.toDisposable)(()=>{te.dispose(),re?.dispose()})}r.runAndSubscribeWithStore=G;class se{constructor(K,re){this.obs=K,this._counter=0,this._hasChanged=!1;const he={onFirstListenerAdd:()=>{K.addObserver(this)},onLastListenerRemove:()=>{K.removeObserver(this)}};re||l(he),this.emitter=new v(he),re&&re.add(this.emitter)}beginUpdate(K){this._counter++}handleChange(K,re){this._hasChanged=!0}endUpdate(K){--this._counter==0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function O(F,K){return new se(F,K).emitter.event}r.fromObservable=O})(C=e.Event||(e.Event={}));class T{constructor(l){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${l}_${T._idPool++}`}start(l){this._stopWatch=new k.StopWatch(!0),this._listenerCount=l}stop(){if(this._stopWatch){const l=this._stopWatch.elapsed();this._elapsedOverall+=l,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${l.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}T._idPool=0;let R=-1;function w(r){const l=R;return R=r,{dispose(){R=l}}}e.setGlobalLeakWarningThreshold=w;class E{constructor(l,h=Math.random().toString(18).slice(2,5)){this.customThreshold=l,this.name=h,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(l,h){let S=R;if(typeof this.customThreshold=="number"&&(S=this.customThreshold),S<=0||h<S)return;this._stacks||(this._stacks=new Map);const A=this._stacks.get(l.value)||0;if(this._stacks.set(l.value,A+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=S*.5;let $,W=0;for(const[ee,L]of this._stacks)(!$||W<L)&&($=ee,W=L);console.warn(`[${this.name}] potential listener LEAK detected, having ${h} listeners already. MOST frequent listener (${W}):`),console.warn($)}return()=>{const $=this._stacks.get(l.value)||0;this._stacks.set(l.value,$-1)}}}class d{constructor(l){this.value=l}static create(){return new d(new Error().stack??"")}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class I{constructor(l,h,S){this.callback=l,this.callbackThis=h,this.stack=S,this.subscription=new D.SafeDisposable}invoke(l){this.callback.call(this.callbackThis,l)}}class v{constructor(l){this._disposed=!1,this._options=l,this._leakageMon=R>0?new E(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=this._options?._profName?new T(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._listeners){if(y){const l=Array.from(this._listeners);queueMicrotask(()=>{for(const h of l)h.subscription.isset()&&(h.subscription.unset(),h.stack?.print())})}this._listeners.clear()}this._deliveryQueue?.clear(this),this._options?.onLastListenerRemove?.(),this._leakageMon?.dispose()}}get event(){return this._event||(this._event=(l,h,S)=>{this._listeners||(this._listeners=new P.LinkedList);const A=this._listeners.isEmpty();A&&this._options?.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);let $,W;this._leakageMon&&this._listeners.size>=30&&(W=d.create(),$=this._leakageMon.check(W,this._listeners.size+1)),y&&(W=W??d.create());const ee=new I(l,h,W),L=this._listeners.push(ee);A&&this._options?.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options?.onListenerDidAdd&&this._options.onListenerDidAdd(this,l,h);const q=ee.subscription.set(()=>{$?.(),this._disposed||(L(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return S instanceof D.DisposableStore?S.add(q):Array.isArray(S)&&S.push(q),q}),this._event}fire(l){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new g);for(const h of this._listeners)this._deliveryQueue.push(this,h,l);this._perfMon?.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),this._perfMon?.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}}e.Emitter=v;class m{constructor(){this._queue=new P.LinkedList}get size(){return this._queue.size}push(l,h,S){this._queue.push(new u(l,h,S))}clear(l){const h=new P.LinkedList;for(const S of this._queue)S.emitter!==l&&h.push(S);this._queue=h}deliver(){for(;this._queue.size>0;){const l=this._queue.shift();try{l.listener.invoke(l.event)}catch(h){(0,b.onUnexpectedError)(h)}}}}e.EventDeliveryQueue=m;class g extends m{clear(l){this._queue.clear()}}class u{constructor(l,h,S){this.emitter=l,this.listener=h,this.event=S}}class c extends v{async fireAsync(l,h,S){if(!!this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new P.LinkedList);for(const A of this._listeners)this._asyncDeliveryQueue.push([A,l]);for(;this._asyncDeliveryQueue.size>0&&!h.isCancellationRequested;){const[A,$]=this._asyncDeliveryQueue.shift(),W=[],ee={...$,token:h,waitUntil:L=>{if(Object.isFrozen(W))throw new Error("waitUntil can NOT be called asynchronous");S&&(L=S(L,A.callback)),W.push(L)}};try{A.invoke(ee)}catch(L){(0,b.onUnexpectedError)(L);continue}Object.freeze(W),await Promise.allSettled(W).then(L=>{for(const q of L)q.status==="rejected"&&(0,b.onUnexpectedError)(q.reason)})}}}}e.AsyncEmitter=c;class f extends v{constructor(l){super(l);this._isPaused=0,this._eventQueue=new P.LinkedList,this._mergeFn=l?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const l=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(l))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(l){this._listeners&&(this._isPaused!==0?this._eventQueue.push(l):super.fire(l))}}e.PauseableEmitter=f;class i extends f{constructor(l){super(l);this._delay=l.delay??100}fire(l){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(l)}}e.DebounceEmitter=i;class s extends v{constructor(l){super(l);this._queuedEvents=[],this._mergeFn=l?.merge}fire(l){this._queuedEvents.push(l),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(h=>super.fire(h)),this._queuedEvents=[]})}}e.MicrotaskEmitter=s;class n{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new v({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(l){const h={event:l,listener:null};this.events.push(h),this.hasListeners&&this.hook(h);const S=()=>{this.hasListeners&&this.unhook(h);const A=this.events.indexOf(h);this.events.splice(A,1)};return(0,D.toDisposable)((0,t.once)(S))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(l=>this.hook(l))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(l=>this.unhook(l))}hook(l){l.listener=l.event(h=>this.emitter.fire(h))}unhook(l){l.listener&&l.listener.dispose(),l.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=n;class a{constructor(){this.buffers=[]}wrapEvent(l){return(h,S,A)=>l($=>{const W=this.buffers[this.buffers.length-1];W?W.push(()=>h.call(S,$)):h.call(S,$)},void 0,A)}bufferEvents(l){const h=[];this.buffers.push(h);const S=l();return this.buffers.pop(),h.forEach(A=>A()),S}}e.EventBufferer=a;class o{constructor(){this.listening=!1,this.inputEvent=C.None,this.inputEventListener=D.Disposable.None,this.emitter=new v({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(l){this.inputEvent=l,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=l(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=o}),define(ve[20],we([0,1,7]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const t=Object.freeze(function(y,p){const C=setTimeout(y.bind(p),0);return{dispose(){clearTimeout(C)}}});var D;(function(y){function p(C){return C===y.None||C===y.Cancelled||C instanceof P?!0:!C||typeof C!="object"?!1:typeof C.isCancellationRequested=="boolean"&&typeof C.onCancellationRequested=="function"}y.isCancellationToken=p,y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:b.Event.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:t})})(D=e.CancellationToken||(e.CancellationToken={}));class P{constructor(){this._isCancelled=!1,this._emitter=null}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?t:(this._emitter||(this._emitter=new b.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class k{constructor(p){this._token=void 0,this._parentListener=void 0,this._parentListener=p&&p.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new P),this._token}cancel(){this._token?this._token instanceof P&&this._token.cancel():this._token=D.Cancelled}dispose(p=!1){p&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof P&&this._token.dispose():this._token=D.None}}e.CancellationTokenSource=k}),define(ve[137],we([0,1,20]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=e.Cache=void 0;class t{constructor(y){this.task=y,this.result=null}get(){if(this.result)return this.result;const y=new b.CancellationTokenSource,p=this.task(y.token);return this.result={promise:p,dispose:()=>{this.result=null,y.cancel(),y.dispose()}},this.result}}e.Cache=t;class D{constructor(y){this.fn=y,this.lastCache=void 0,this.lastArgKey=void 0}get(y){const p=JSON.stringify(y);return this.lastArgKey!==p&&(this.lastArgKey=p,this.lastCache=this.fn(y)),this.lastCache}}e.LRUCachedFunction=D;class P{constructor(y){this.fn=y,this._map=new Map}get cachedValues(){return this._map}get(y){if(this._map.has(y))return this._map.get(y);const p=this.fn(y);return this._map.set(y,p),p}}e.CachedFunction=P}),define(ve[83],we([0,1,7,2]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MutableObservableValue=e.staticObservableValue=void 0;const D=k=>({onDidChange:b.Event.None,value:k});e.staticObservableValue=D;class P extends t.Disposable{constructor(y){super();this._value=y,this.changeEmitter=this._register(new b.Emitter),this.onDidChange=this.changeEmitter.event}get value(){return this._value}set value(y){y!==this._value&&(this._value=y,this.changeEmitter.fire(y))}}e.MutableObservableValue=P}),define(ve[47],we([0,1,11,2]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prefixedStream=e.prefixedReadable=e.transform=e.toReadable=e.emptyStream=e.toStream=e.peekStream=e.listenStream=e.consumeStream=e.peekReadable=e.consumeReadable=e.newWriteableStream=e.isReadableBufferedStream=e.isReadableStream=e.isReadable=void 0;function D(c){const f=c;return f?typeof f.read=="function":!1}e.isReadable=D;function P(c){const f=c;return f?[f.on,f.pause,f.resume,f.destroy].every(i=>typeof i=="function"):!1}e.isReadableStream=P;function k(c){const f=c;return f?P(f.stream)&&Array.isArray(f.buffer)&&typeof f.ended=="boolean":!1}e.isReadableBufferedStream=k;function y(c,f){return new p(c,f)}e.newWriteableStream=y;class p{constructor(f,i){this.reducer=f,this.options=i,this.state={flowing:!1,ended:!1,destroyed:!1},this.buffer={data:[],error:[]},this.listeners={data:[],error:[],end:[]},this.pendingWritePromises=[]}pause(){this.state.destroyed||(this.state.flowing=!1)}resume(){this.state.destroyed||this.state.flowing||(this.state.flowing=!0,this.flowData(),this.flowErrors(),this.flowEnd())}write(f){if(!this.state.destroyed){if(this.state.flowing)this.emitData(f);else if(this.buffer.data.push(f),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(i=>this.pendingWritePromises.push(i))}}error(f){this.state.destroyed||(this.state.flowing?this.emitError(f):this.buffer.error.push(f))}end(f){this.state.destroyed||(typeof f!="undefined"&&this.write(f),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(f){this.listeners.data.slice(0).forEach(i=>i(f))}emitError(f){this.listeners.error.length===0?(0,b.onUnexpectedError)(f):this.listeners.error.slice(0).forEach(i=>i(f))}emitEnd(){this.listeners.end.slice(0).forEach(f=>f())}on(f,i){if(!this.state.destroyed)switch(f){case"data":this.listeners.data.push(i),this.resume();break;case"end":this.listeners.end.push(i),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(i),this.state.flowing&&this.flowErrors();break}}removeListener(f,i){if(this.state.destroyed)return;let s;switch(f){case"data":s=this.listeners.data;break;case"end":s=this.listeners.end;break;case"error":s=this.listeners.error;break}if(s){const n=s.indexOf(i);n>=0&&s.splice(n,1)}}flowData(){if(this.buffer.data.length>0){const f=this.reducer(this.buffer.data);this.emitData(f),this.buffer.data.length=0;const i=[...this.pendingWritePromises];this.pendingWritePromises.length=0,i.forEach(s=>s())}}flowErrors(){if(this.listeners.error.length>0){for(const f of this.buffer.error)this.emitError(f);this.buffer.error.length=0}}flowEnd(){return this.state.ended?(this.emitEnd(),this.listeners.end.length>0):!1}destroy(){this.state.destroyed||(this.state.destroyed=!0,this.state.ended=!0,this.buffer.data.length=0,this.buffer.error.length=0,this.listeners.data.length=0,this.listeners.error.length=0,this.listeners.end.length=0,this.pendingWritePromises.length=0)}}function C(c,f){const i=[];let s;for(;(s=c.read())!==null;)i.push(s);return f(i)}e.consumeReadable=C;function T(c,f,i){const s=[];let n;for(;(n=c.read())!==null&&s.length<i;)s.push(n);return n===null&&s.length>0?f(s):{read:()=>{if(s.length>0)return s.shift();if(typeof n!="undefined"){const a=n;return n=void 0,a}return c.read()}}}e.peekReadable=T;function R(c,f){return new Promise((i,s)=>{const n=[];w(c,{onData:a=>{f&&n.push(a)},onError:a=>{f?s(a):i(void 0)},onEnd:()=>{i(f?f(n):void 0)}})})}e.consumeStream=R;function w(c,f){let i=!1;return c.on("error",s=>{i||f.onError(s)}),c.on("end",()=>{i||f.onEnd()}),c.on("data",s=>{i||f.onData(s)}),(0,t.toDisposable)(()=>i=!0)}e.listenStream=w;function E(c,f){return new Promise((i,s)=>{const n=new t.DisposableStore,a=[],o=h=>{if(a.push(h),a.length>f)return n.dispose(),c.pause(),i({stream:c,buffer:a,ended:!1})},r=h=>s(h),l=()=>i({stream:c,buffer:a,ended:!0});n.add((0,t.toDisposable)(()=>c.removeListener("error",r))),c.on("error",r),n.add((0,t.toDisposable)(()=>c.removeListener("end",l))),c.on("end",l),n.add((0,t.toDisposable)(()=>c.removeListener("data",o))),c.on("data",o)})}e.peekStream=E;function d(c,f){const i=y(f);return i.end(c),i}e.toStream=d;function I(){const c=y(()=>{throw new Error("not supported")});return c.end(),c}e.emptyStream=I;function v(c){let f=!1;return{read:()=>f?null:(f=!0,c)}}e.toReadable=v;function m(c,f,i){const s=y(i);return w(c,{onData:n=>s.write(f.data(n)),onError:n=>s.error(f.error?f.error(n):n),onEnd:()=>s.end()}),s}e.transform=m;function g(c,f,i){let s=!1;return{read:()=>{const n=f.read();return s?n:(s=!0,n!==null?i([c,n]):c)}}}e.prefixedReadable=g;function u(c,f,i){let s=!1;const n=y(i);return w(f,{onData:a=>s?n.write(a):(s=!0,n.write(i([c,a]))),onError:a=>n.error(a),onEnd:()=>{s||(s=!0,n.write(c)),n.end()}}),n}e.prefixedStream=u}),define(ve[15],we([0,1,47]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeBase64=e.decodeBase64=e.prefixedBufferStream=e.prefixedBufferReadable=e.newWriteableBufferStream=e.streamToBufferReadableStream=e.bufferToStream=e.bufferedStreamToBuffer=e.streamToBuffer=e.bufferToReadable=e.readableToBuffer=e.writeUInt8=e.readUInt8=e.writeUInt32LE=e.readUInt32LE=e.writeUInt32BE=e.readUInt32BE=e.writeUInt16LE=e.readUInt16LE=e.VSBuffer=void 0;const t=typeof Buffer!="undefined";let D,P;class k{constructor(h){this.buffer=h,this.byteLength=this.buffer.byteLength}static alloc(h){return t?new k(Buffer.allocUnsafe(h)):new k(new Uint8Array(h))}static wrap(h){return t&&!Buffer.isBuffer(h)&&(h=Buffer.from(h.buffer,h.byteOffset,h.byteLength)),new k(h)}static fromString(h,S){return!(S?.dontUseNodeBuffer||!1)&&t?new k(Buffer.from(h)):(D||(D=new TextEncoder),new k(D.encode(h)))}static fromByteArray(h){const S=k.alloc(h.length);for(let A=0,$=h.length;A<$;A++)S.buffer[A]=h[A];return S}static concat(h,S){if(typeof S=="undefined"){S=0;for(let W=0,ee=h.length;W<ee;W++)S+=h[W].byteLength}const A=k.alloc(S);let $=0;for(let W=0,ee=h.length;W<ee;W++){const L=h[W];A.set(L,$),$+=L.byteLength}return A}clone(){const h=k.alloc(this.byteLength);return h.set(this),h}toString(){return t?this.buffer.toString():(P||(P=new TextDecoder),P.decode(this.buffer))}slice(h,S){return new k(this.buffer.subarray(h,S))}set(h,S){if(h instanceof k)this.buffer.set(h.buffer,S);else if(h instanceof Uint8Array)this.buffer.set(h,S);else if(h instanceof ArrayBuffer)this.buffer.set(new Uint8Array(h),S);else if(ArrayBuffer.isView(h))this.buffer.set(new Uint8Array(h.buffer,h.byteOffset,h.byteLength),S);else throw new Error("Unknown argument 'array'")}readUInt32BE(h){return C(this.buffer,h)}writeUInt32BE(h,S){T(this.buffer,h,S)}readUInt32LE(h){return R(this.buffer,h)}writeUInt32LE(h,S){w(this.buffer,h,S)}readUInt8(h){return E(this.buffer,h)}writeUInt8(h,S){d(this.buffer,h,S)}}e.VSBuffer=k;function y(l,h){return l[h+0]<<0>>>0|l[h+1]<<8>>>0}e.readUInt16LE=y;function p(l,h,S){l[S+0]=h&255,h=h>>>8,l[S+1]=h&255}e.writeUInt16LE=p;function C(l,h){return l[h]*2**24+l[h+1]*2**16+l[h+2]*2**8+l[h+3]}e.readUInt32BE=C;function T(l,h,S){l[S+3]=h,h=h>>>8,l[S+2]=h,h=h>>>8,l[S+1]=h,h=h>>>8,l[S]=h}e.writeUInt32BE=T;function R(l,h){return l[h+0]<<0>>>0|l[h+1]<<8>>>0|l[h+2]<<16>>>0|l[h+3]<<24>>>0}e.readUInt32LE=R;function w(l,h,S){l[S+0]=h&255,h=h>>>8,l[S+1]=h&255,h=h>>>8,l[S+2]=h&255,h=h>>>8,l[S+3]=h&255}e.writeUInt32LE=w;function E(l,h){return l[h]}e.readUInt8=E;function d(l,h,S){l[S]=h}e.writeUInt8=d;function I(l){return b.consumeReadable(l,h=>k.concat(h))}e.readableToBuffer=I;function v(l){return b.toReadable(l)}e.bufferToReadable=v;function m(l){return b.consumeStream(l,h=>k.concat(h))}e.streamToBuffer=m;async function g(l){return l.ended?k.concat(l.buffer):k.concat([...l.buffer,await m(l.stream)])}e.bufferedStreamToBuffer=g;function u(l){return b.toStream(l,h=>k.concat(h))}e.bufferToStream=u;function c(l){return b.transform(l,{data:h=>typeof h=="string"?k.fromString(h):k.wrap(h)},h=>k.concat(h))}e.streamToBufferReadableStream=c;function f(l){return b.newWriteableStream(h=>k.concat(h),l)}e.newWriteableBufferStream=f;function i(l,h){return b.prefixedReadable(l,h,S=>k.concat(S))}e.prefixedBufferReadable=i;function s(l,h){return b.prefixedStream(l,h,S=>k.concat(S))}e.prefixedBufferStream=s;function n(l){let h=0,S=0,A=0;const $=new Uint8Array(Math.floor(l.length/4*3)),W=L=>{switch(S){case 3:$[A++]=h|L,S=0;break;case 2:$[A++]=h|L>>>2,h=L<<6,S=3;break;case 1:$[A++]=h|L>>>4,h=L<<4,S=2;break;default:h=L<<2,S=1}};for(let L=0;L<l.length;L++){const q=l.charCodeAt(L);if(q>=65&&q<=90)W(q-65);else if(q>=97&&q<=122)W(q-97+26);else if(q>=48&&q<=57)W(q-48+52);else if(q===43||q===45)W(62);else if(q===47||q===95)W(63);else{if(q===61)break;throw new SyntaxError(`Unexpected base64 character ${l[L]}`)}}const ee=A;for(;S>0;)W(0);return k.wrap($).slice(0,ee)}e.decodeBase64=n;const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function r({buffer:l},h=!0,S=!1){const A=S?o:a;let $="";const W=l.byteLength%3;let ee=0;for(;ee<l.byteLength-W;ee+=3){const L=l[ee+0],q=l[ee+1],ne=l[ee+2];$+=A[L>>>2],$+=A[(L<<4|q>>>4)&63],$+=A[(q<<2|ne>>>6)&63],$+=A[ne&63]}if(W===1){const L=l[ee+0];$+=A[L>>>2],$+=A[L<<4&63],h&&($+="==")}else if(W===2){const L=l[ee+0],q=l[ee+1];$+=A[L>>>2],$+=A[(L<<4|q>>>4)&63],$+=A[q<<2&63],h&&($+="=")}return $}e.encodeBase64=r}),define(ve[16],we([0,1,137,132]),function(oe,e,b,t){"use strict";var D;Object.defineProperty(e,"__esModule",{value:!0}),e.InvisibleCharacters=e.AmbiguousCharacters=e.noBreakWhitespace=e.getLeftDeleteOffset=e.GraphemeBreakType=e.getGraphemeBreakType=e.singleLetterHash=e.getNLines=e.uppercaseFirstLetter=e.containsUppercaseCharacter=e.fuzzyContains=e.stripUTF8BOM=e.startsWithUTF8BOM=e.UTF8_BOM_CHARACTER=e.removeAnsiEscapeCodes=e.lcut=e.isEmojiImprecise=e.isFullWidthCharacter=e.containsUnusualLineTerminators=e.UNUSUAL_LINE_TERMINATORS=e.isBasicASCII=e.containsRTL=e.getCharContainingOffset=e.prevCharLength=e.nextCharLength=e.GraphemeIterator=e.CodePointIterator=e.getNextCodePoint=e.computeCodePoint=e.isLowSurrogate=e.isHighSurrogate=e.commonSuffixLength=e.commonPrefixLength=e.startsWithIgnoreCase=e.equalsIgnoreCase=e.isUpperAsciiLetter=e.isLowerAsciiLetter=e.isAsciiDigit=e.compareSubstringIgnoreCase=e.compareIgnoreCase=e.compareSubstring=e.compare=e.replaceAsync=e.lastNonWhitespaceIndex=e.getLeadingWhitespace=e.firstNonWhitespaceIndex=e.splitLines=e.regExpFlags=e.regExpContainsBackreference=e.regExpLeadsToEndlessLoop=e.createRegExp=e.stripWildcards=e.convertSimple2RegExpPattern=e.rtrim=e.ltrim=e.trim=e.truncate=e.count=e.escapeRegExpCharacters=e.escape=e.format2=e.format=e.isFalsyOrWhitespace=void 0;function P(ce){return!ce||typeof ce!="string"?!0:ce.trim().length===0}e.isFalsyOrWhitespace=P;const k=/{(\d+)}/g;function y(ce,...Ce){return Ce.length===0?ce:ce.replace(k,function(ke,Oe){const Re=parseInt(Oe,10);return isNaN(Re)||Re<0||Re>=Ce.length?ke:Ce[Re]})}e.format=y;const p=/{([^}]+)}/g;function C(ce,Ce){return ce.replace(p,(ke,Oe)=>Ce[Oe]??ke)}e.format2=C;function T(ce){return ce.replace(/[<>&]/g,function(Ce){switch(Ce){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return Ce}})}e.escape=T;function R(ce){return ce.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=R;function w(ce,Ce){let ke=0;const Oe=Ce.charCodeAt(0);for(let Re=ce.length-1;Re>=0;Re--)ce.charCodeAt(Re)===Oe&&ke++;return ke}e.count=w;function E(ce,Ce,ke="\u2026"){return ce.length<=Ce?ce:`${ce.substr(0,Ce)}${ke}`}e.truncate=E;function d(ce,Ce=" "){const ke=I(ce,Ce);return v(ke,Ce)}e.trim=d;function I(ce,Ce){if(!ce||!Ce)return ce;const ke=Ce.length;if(ke===0||ce.length===0)return ce;let Oe=0;for(;ce.indexOf(Ce,Oe)===Oe;)Oe=Oe+ke;return ce.substring(Oe)}e.ltrim=I;function v(ce,Ce){if(!ce||!Ce)return ce;const ke=Ce.length,Oe=ce.length;if(ke===0||Oe===0)return ce;let Re=Oe,Be=-1;for(;Be=ce.lastIndexOf(Ce,Re-1),!(Be===-1||Be+ke!==Re);){if(Be===0)return"";Re=Be}return ce.substring(0,Re)}e.rtrim=v;function m(ce){return ce.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=m;function g(ce){return ce.replace(/\*/g,"")}e.stripWildcards=g;function u(ce,Ce,ke={}){if(!ce)throw new Error("Cannot create regex from empty string");Ce||(ce=R(ce)),ke.wholeWord&&(/\B/.test(ce.charAt(0))||(ce="\\b"+ce),/\B/.test(ce.charAt(ce.length-1))||(ce=ce+"\\b"));let Oe="";return ke.global&&(Oe+="g"),ke.matchCase||(Oe+="i"),ke.multiline&&(Oe+="m"),ke.unicode&&(Oe+="u"),new RegExp(ce,Oe)}e.createRegExp=u;function c(ce){return ce.source==="^"||ce.source==="^$"||ce.source==="$"||ce.source==="^\\s*$"?!1:!!(ce.exec("")&&ce.lastIndex===0)}e.regExpLeadsToEndlessLoop=c;function f(ce){return!!ce.match(/([^\\]|^)(\\\\)*\\\d+/)}e.regExpContainsBackreference=f;function i(ce){return(ce.global?"g":"")+(ce.ignoreCase?"i":"")+(ce.multiline?"m":"")+(ce.unicode?"u":"")}e.regExpFlags=i;function s(ce){return ce.split(/\r\n|\r|\n/)}e.splitLines=s;function n(ce){for(let Ce=0,ke=ce.length;Ce<ke;Ce++){const Oe=ce.charCodeAt(Ce);if(Oe!==32&&Oe!==9)return Ce}return-1}e.firstNonWhitespaceIndex=n;function a(ce,Ce=0,ke=ce.length){for(let Oe=Ce;Oe<ke;Oe++){const Re=ce.charCodeAt(Oe);if(Re!==32&&Re!==9)return ce.substring(Ce,Oe)}return ce.substring(Ce,ke)}e.getLeadingWhitespace=a;function o(ce,Ce=ce.length-1){for(let ke=Ce;ke>=0;ke--){const Oe=ce.charCodeAt(ke);if(Oe!==32&&Oe!==9)return ke}return-1}e.lastNonWhitespaceIndex=o;function r(ce,Ce,ke){const Oe=[];let Re=0;for(const Be of ce.matchAll(Ce)){if(Oe.push(ce.slice(Re,Be.index)),Be.index===void 0)throw new Error("match.index should be defined");Re=Be.index+Be[0].length,Oe.push(ke(Be[0],...Be.slice(1),Be.index,ce,Be.groups))}return Oe.push(ce.slice(Re)),Promise.all(Oe).then(Be=>Be.join(""))}e.replaceAsync=r;function l(ce,Ce){return ce<Ce?-1:ce>Ce?1:0}e.compare=l;function h(ce,Ce,ke=0,Oe=ce.length,Re=0,Be=Ce.length){for(;ke<Oe&&Re<Be;ke++,Re++){const Xe=ce.charCodeAt(ke),nt=Ce.charCodeAt(Re);if(Xe<nt)return-1;if(Xe>nt)return 1}const He=Oe-ke,Ye=Be-Re;return He<Ye?-1:He>Ye?1:0}e.compareSubstring=h;function S(ce,Ce){return A(ce,Ce,0,ce.length,0,Ce.length)}e.compareIgnoreCase=S;function A(ce,Ce,ke=0,Oe=ce.length,Re=0,Be=Ce.length){for(;ke<Oe&&Re<Be;ke++,Re++){let Xe=ce.charCodeAt(ke),nt=Ce.charCodeAt(Re);if(Xe===nt)continue;if(Xe>=128||nt>=128)return h(ce.toLowerCase(),Ce.toLowerCase(),ke,Oe,Re,Be);W(Xe)&&(Xe-=32),W(nt)&&(nt-=32);const it=Xe-nt;if(it!==0)return it}const He=Oe-ke,Ye=Be-Re;return He<Ye?-1:He>Ye?1:0}e.compareSubstringIgnoreCase=A;function $(ce){return ce>=48&&ce<=57}e.isAsciiDigit=$;function W(ce){return ce>=97&&ce<=122}e.isLowerAsciiLetter=W;function ee(ce){return ce>=65&&ce<=90}e.isUpperAsciiLetter=ee;function L(ce,Ce){return ce.length===Ce.length&&A(ce,Ce)===0}e.equalsIgnoreCase=L;function q(ce,Ce){const ke=Ce.length;return Ce.length>ce.length?!1:A(ce,Ce,0,ke)===0}e.startsWithIgnoreCase=q;function ne(ce,Ce){const ke=Math.min(ce.length,Ce.length);let Oe;for(Oe=0;Oe<ke;Oe++)if(ce.charCodeAt(Oe)!==Ce.charCodeAt(Oe))return Oe;return ke}e.commonPrefixLength=ne;function x(ce,Ce){const ke=Math.min(ce.length,Ce.length);let Oe;const Re=ce.length-1,Be=Ce.length-1;for(Oe=0;Oe<ke;Oe++)if(ce.charCodeAt(Re-Oe)!==Ce.charCodeAt(Be-Oe))return Oe;return ke}e.commonSuffixLength=x;function fe(ce){return 55296<=ce&&ce<=56319}e.isHighSurrogate=fe;function M(ce){return 56320<=ce&&ce<=57343}e.isLowSurrogate=M;function B(ce,Ce){return(ce-55296<<10)+(Ce-56320)+65536}e.computeCodePoint=B;function U(ce,Ce,ke){const Oe=ce.charCodeAt(ke);if(fe(Oe)&&ke+1<Ce){const Re=ce.charCodeAt(ke+1);if(M(Re))return B(Oe,Re)}return Oe}e.getNextCodePoint=U;function z(ce,Ce){const ke=ce.charCodeAt(Ce-1);if(M(ke)&&Ce>1){const Oe=ce.charCodeAt(Ce-2);if(fe(Oe))return B(Oe,ke)}return ke}class X{constructor(Ce,ke=0){this._str=Ce,this._len=Ce.length,this._offset=ke}get offset(){return this._offset}setOffset(Ce){this._offset=Ce}prevCodePoint(){const Ce=z(this._str,this._offset);return this._offset-=Ce>=65536?2:1,Ce}nextCodePoint(){const Ce=U(this._str,this._len,this._offset);return this._offset+=Ce>=65536?2:1,Ce}eol(){return this._offset>=this._len}}e.CodePointIterator=X;class ue{constructor(Ce,ke=0){this._iterator=new X(Ce,ke)}get offset(){return this._iterator.offset}nextGraphemeLength(){const Ce=Fe.getInstance(),ke=this._iterator,Oe=ke.offset;let Re=Ce.getGraphemeBreakType(ke.nextCodePoint());for(;!ke.eol();){const Be=ke.offset,He=Ce.getGraphemeBreakType(ke.nextCodePoint());if(be(Re,He)){ke.setOffset(Be);break}Re=He}return ke.offset-Oe}prevGraphemeLength(){const Ce=Fe.getInstance(),ke=this._iterator,Oe=ke.offset;let Re=Ce.getGraphemeBreakType(ke.prevCodePoint());for(;ke.offset>0;){const Be=ke.offset,He=Ce.getGraphemeBreakType(ke.prevCodePoint());if(be(He,Re)){ke.setOffset(Be);break}Re=He}return Oe-ke.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=ue;function de(ce,Ce){return new ue(ce,Ce).nextGraphemeLength()}e.nextCharLength=de;function G(ce,Ce){return new ue(ce,Ce).prevGraphemeLength()}e.prevCharLength=G;function se(ce,Ce){Ce>0&&M(ce.charCodeAt(Ce))&&Ce--;const ke=Ce+de(ce,Ce);return[ke-G(ce,ke),ke]}e.getCharContainingOffset=se;const O=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function F(ce){return O.test(ce)}e.containsRTL=F;const K=/^[\t\n\r\x20-\x7E]*$/;function re(ce){return K.test(ce)}e.isBasicASCII=re,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function he(ce){return e.UNUSUAL_LINE_TERMINATORS.test(ce)}e.containsUnusualLineTerminators=he;function te(ce){return ce>=11904&&ce<=55215||ce>=63744&&ce<=64255||ce>=65281&&ce<=65374}e.isFullWidthCharacter=te;function Q(ce){return ce>=127462&&ce<=127487||ce===8986||ce===8987||ce===9200||ce===9203||ce>=9728&&ce<=10175||ce===11088||ce===11093||ce>=127744&&ce<=128591||ce>=128640&&ce<=128764||ce>=128992&&ce<=129008||ce>=129280&&ce<=129535||ce>=129648&&ce<=129782}e.isEmojiImprecise=Q;function Z(ce,Ce){if(ce.length<Ce)return ce;const ke=/\b/g;let Oe=0;for(;ke.test(ce)&&!(ce.length-ke.lastIndex<Ce);)Oe=ke.lastIndex,ke.lastIndex+=1;return ce.substring(Oe).replace(/^\s/,"")}e.lcut=Z;const ae=/\x1B\x5B[12]?K/g,j=/\x1b\[\d+m/g,ie=/\x1b\[0?m/g;function H(ce){return ce&&(ce=ce.replace(ae,""),ce=ce.replace(j,""),ce=ce.replace(ie,"")),ce}e.removeAnsiEscapeCodes=H,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function Y(ce){return!!(ce&&ce.length>0&&ce.charCodeAt(0)===65279)}e.startsWithUTF8BOM=Y;function le(ce){return Y(ce)?ce.substr(1):ce}e.stripUTF8BOM=le;function pe(ce,Ce){if(!ce||!Ce||ce.length<Ce.length)return!1;const ke=Ce.length,Oe=ce.toLowerCase();let Re=0,Be=-1;for(;Re<ke;){const He=Oe.indexOf(Ce[Re],Be+1);if(He<0)return!1;Be=He,Re++}return!0}e.fuzzyContains=pe;function Pe(ce,Ce=!1){return ce?(Ce&&(ce=ce.replace(/\\./g,"")),ce.toLowerCase()!==ce):!1}e.containsUppercaseCharacter=Pe;function Te(ce){return ce.charAt(0).toUpperCase()+ce.slice(1)}e.uppercaseFirstLetter=Te;function Ne(ce,Ce=1){if(Ce===0)return"";let ke=-1;do ke=ce.indexOf(`
`,ke+1),Ce--;while(Ce>0&&ke>=0);return ke===-1?ce:(ce[ke-1]==="\r"&&ke--,ce.substr(0,ke))}e.getNLines=Ne;function Ue(ce){const Ce=90-65+1;return ce=ce%(2*Ce),ce<Ce?String.fromCharCode(97+ce):String.fromCharCode(65+ce-Ce)}e.singleLetterHash=Ue;function ge(ce){return Fe.getInstance().getGraphemeBreakType(ce)}e.getGraphemeBreakType=ge;function be(ce,Ce){return ce===0?Ce!==5&&Ce!==7:ce===2&&Ce===3?!1:ce===4||ce===2||ce===3||Ce===4||Ce===2||Ce===3?!0:!(ce===8&&(Ce===8||Ce===9||Ce===11||Ce===12)||(ce===11||ce===9)&&(Ce===9||Ce===10)||(ce===12||ce===10)&&Ce===10||Ce===5||Ce===13||Ce===7||ce===1||ce===13&&Ce===14||ce===6&&Ce===6)}var ye;(function(ce){ce[ce.Other=0]="Other",ce[ce.Prepend=1]="Prepend",ce[ce.CR=2]="CR",ce[ce.LF=3]="LF",ce[ce.Control=4]="Control",ce[ce.Extend=5]="Extend",ce[ce.Regional_Indicator=6]="Regional_Indicator",ce[ce.SpacingMark=7]="SpacingMark",ce[ce.L=8]="L",ce[ce.V=9]="V",ce[ce.T=10]="T",ce[ce.LV=11]="LV",ce[ce.LVT=12]="LVT",ce[ce.ZWJ=13]="ZWJ",ce[ce.Extended_Pictographic=14]="Extended_Pictographic"})(ye=e.GraphemeBreakType||(e.GraphemeBreakType={}));class Fe{constructor(){this._data=Me()}static getInstance(){return Fe._INSTANCE||(Fe._INSTANCE=new Fe),Fe._INSTANCE}getGraphemeBreakType(Ce){if(Ce<32)return Ce===10?3:Ce===13?2:4;if(Ce<127)return 0;const ke=this._data,Oe=ke.length/3;let Re=1;for(;Re<=Oe;)if(Ce<ke[3*Re])Re=2*Re;else if(Ce>ke[3*Re+1])Re=2*Re+1;else return ke[3*Re+2];return 0}}Fe._INSTANCE=null;function Me(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function Qe(ce,Ce){if(ce===0)return 0;const ke=$e(ce,Ce);if(ke!==void 0)return ke;const Oe=new X(Ce,ce);return Oe.prevCodePoint(),Oe.offset}e.getLeftDeleteOffset=Qe;function $e(ce,Ce){const ke=new X(Ce,ce);let Oe=ke.prevCodePoint();for(;Ze(Oe)||Oe===65039||Oe===8419;){if(ke.offset===0)return;Oe=ke.prevCodePoint()}if(!Q(Oe))return;let Re=ke.offset;return Re>0&&ke.prevCodePoint()===8205&&(Re=ke.offset),Re}function Ze(ce){return 127995<=ce&&ce<=127999}var xe;(function(ce){ce[ce.zwj=8205]="zwj",ce[ce.emojiVariantSelector=65039]="emojiVariantSelector",ce[ce.enclosingKeyCap=8419]="enclosingKeyCap"})(xe||(xe={})),e.noBreakWhitespace="\xA0";class je{constructor(Ce){this.confusableDictionary=Ce}static getInstance(Ce){return je.cache.get(Array.from(Ce))}static getLocales(){return je._locales.getValue()}isAmbiguous(Ce){return this.confusableDictionary.has(Ce)}getPrimaryConfusable(Ce){return this.confusableDictionary.get(Ce)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=je,D=je,je.ambiguousCharacterData=new t.Lazy(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),je.cache=new b.LRUCachedFunction(ce=>{function Ce(nt){const it=new Map;for(let rt=0;rt<nt.length;rt+=2)it.set(nt[rt],nt[rt+1]);return it}function ke(nt,it){const rt=new Map(nt);for(const[ft,ut]of it)rt.set(ft,ut);return rt}function Oe(nt,it){if(!nt)return it;const rt=new Map;for(const[ft,ut]of nt)it.has(ft)&&rt.set(ft,ut);return rt}const Re=D.ambiguousCharacterData.getValue();let Be=ce.filter(nt=>!nt.startsWith("_")&&nt in Re);Be.length===0&&(Be=["_default"]);let He;for(const nt of Be){const it=Ce(Re[nt]);He=Oe(He,it)}const Ye=Ce(Re._common),Xe=ke(Ye,He);return new je(Xe)}),je._locales=new t.Lazy(()=>Object.keys(je.ambiguousCharacterData.getValue()).filter(ce=>!ce.startsWith("_")));class We{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(We.getRawData())),this._data}static isInvisibleCharacter(Ce){return We.getData().has(Ce)}static get codePoints(){return We.getData()}}e.InvisibleCharacters=We,We._data=void 0}),define(ve[84],we([0,1,16]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StringSHA1=e.toHexString=e.Hasher=e.stringHash=e.numberHash=e.doHash=e.hash=void 0;function t(m){return D(m,0)}e.hash=t;function D(m,g){switch(typeof m){case"object":return m===null?P(349,g):Array.isArray(m)?p(m,g):C(m,g);case"string":return y(m,g);case"boolean":return k(m,g);case"number":return P(m,g);case"undefined":return P(937,g);default:return P(617,g)}}e.doHash=D;function P(m,g){return(g<<5)-g+m|0}e.numberHash=P;function k(m,g){return P(m?433:863,g)}function y(m,g){g=P(149417,g);for(let u=0,c=m.length;u<c;u++)g=P(m.charCodeAt(u),g);return g}e.stringHash=y;function p(m,g){return g=P(104579,g),m.reduce((u,c)=>D(c,u),g)}function C(m,g){return g=P(181387,g),Object.keys(m).sort().reduce((u,c)=>(u=y(c,u),D(m[c],u)),g)}class T{constructor(){this._value=0}get value(){return this._value}hash(g){return this._value=D(g,this._value),this._value}}e.Hasher=T;var R;(function(m){m[m.BLOCK_SIZE=64]="BLOCK_SIZE",m[m.UNICODE_REPLACEMENT=65533]="UNICODE_REPLACEMENT"})(R||(R={}));function w(m,g,u=32){const c=u-g,f=~((1<<c)-1);return(m<<g|(f&m)>>>c)>>>0}function E(m,g=0,u=m.byteLength,c=0){for(let f=0;f<u;f++)m[g+f]=c}function d(m,g,u="0"){for(;m.length<g;)m=u+m;return m}function I(m,g=32){return m instanceof ArrayBuffer?Array.from(new Uint8Array(m)).map(u=>u.toString(16).padStart(2,"0")).join(""):d((m>>>0).toString(16),g/4)}e.toHexString=I;class v{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(64+3),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(g){const u=g.length;if(u===0)return;const c=this._buff;let f=this._buffLen,i=this._leftoverHighSurrogate,s,n;for(i!==0?(s=i,n=-1,i=0):(s=g.charCodeAt(0),n=0);;){let a=s;if(b.isHighSurrogate(s))if(n+1<u){const o=g.charCodeAt(n+1);b.isLowSurrogate(o)?(n++,a=b.computeCodePoint(s,o)):a=65533}else{i=s;break}else b.isLowSurrogate(s)&&(a=65533);if(f=this._push(c,f,a),n++,n<u)s=g.charCodeAt(n);else break}this._buffLen=f,this._leftoverHighSurrogate=i}_push(g,u,c){return c<128?g[u++]=c:c<2048?(g[u++]=192|(c&1984)>>>6,g[u++]=128|(c&63)>>>0):c<65536?(g[u++]=224|(c&61440)>>>12,g[u++]=128|(c&4032)>>>6,g[u++]=128|(c&63)>>>0):(g[u++]=240|(c&1835008)>>>18,g[u++]=128|(c&258048)>>>12,g[u++]=128|(c&4032)>>>6,g[u++]=128|(c&63)>>>0),u>=64&&(this._step(),u-=64,this._totalLen+=64,g[0]=g[64+0],g[1]=g[64+1],g[2]=g[64+2]),u}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),I(this._h0)+I(this._h1)+I(this._h2)+I(this._h3)+I(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,E(this._buff,this._buffLen),this._buffLen>56&&(this._step(),E(this._buff));const g=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(g/4294967296),!1),this._buffDV.setUint32(60,g%4294967296,!1),this._step()}_step(){const g=v._bigBlock32,u=this._buffDV;for(let l=0;l<64;l+=4)g.setUint32(l,u.getUint32(l,!1),!1);for(let l=64;l<320;l+=4)g.setUint32(l,w(g.getUint32(l-12,!1)^g.getUint32(l-32,!1)^g.getUint32(l-56,!1)^g.getUint32(l-64,!1),1),!1);let c=this._h0,f=this._h1,i=this._h2,s=this._h3,n=this._h4,a,o,r;for(let l=0;l<80;l++)l<20?(a=f&i|~f&s,o=1518500249):l<40?(a=f^i^s,o=1859775393):l<60?(a=f&i|f&s|i&s,o=2400959708):(a=f^i^s,o=3395469782),r=w(c,5)+a+n+o+g.getUint32(l*4,!1)&4294967295,n=s,s=i,i=w(f,30),f=c,c=r;this._h0=this._h0+c&4294967295,this._h1=this._h1+f&4294967295,this._h2=this._h2+i&4294967295,this._h3=this._h3+s&4294967295,this._h4=this._h4+n&4294967295}}e.StringSHA1=v,v._bigBlock32=new DataView(new ArrayBuffer(320))});var Pt=this&&this.__classPrivateFieldSet||function(oe,e,b,t,D){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!D)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?oe!==e||!D:!e.has(oe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?D.call(oe,b):D?D.value=b:e.set(oe,b),b},tt=this&&this.__classPrivateFieldGet||function(oe,e,b,t){if(b==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?oe!==e||!t:!e.has(oe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return b==="m"?t:b==="a"?t.call(oe):t?t.value:e.get(oe)};define(ve[24],we([0,1,18,16]),function(oe,e,b,t){"use strict";var D,P,k,y;Object.defineProperty(e,"__esModule",{value:!0}),e.ReadonlyMapView=e.LRUCache=e.LinkedMap=e.Touch=e.ResourceSet=e.ResourceMap=e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=e.setToString=e.mapToString=e.getOrSet=void 0;function p(o,r,l){let h=o.get(r);return h===void 0&&(h=l,o.set(r,h)),h}e.getOrSet=p;function C(o){const r=[];return o.forEach((l,h)=>{r.push(`${h} => ${l}`)}),`Map(${o.size}) {${r.join(", ")}}`}e.mapToString=C;function T(o){const r=[];return o.forEach(l=>{r.push(l)}),`Set(${o.size}) {${r.join(", ")}}`}e.setToString=T;class R{constructor(){this._value="",this._pos=0}reset(r){return this._value=r,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(r){const l=r.charCodeAt(0),h=this._value.charCodeAt(this._pos);return l-h}value(){return this._value[this._pos]}}e.StringIterator=R;class w{constructor(r=!0){this._caseSensitive=r}reset(r){return this._value=r,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let r=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(r)this._from++;else break;else r=!1;return this}cmp(r){return this._caseSensitive?(0,t.compareSubstring)(r,this._value,0,r.length,this._from,this._to):(0,t.compareSubstringIgnoreCase)(r,this._value,0,r.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.ConfigKeysIterator=w;class E{constructor(r=!0,l=!0){this._splitOnBackslash=r,this._caseSensitive=l}reset(r){this._from=0,this._to=0,this._value=r,this._valueLen=r.length;for(let l=r.length-1;l>=0;l--,this._valueLen--){const h=this._value.charCodeAt(l);if(!(h===47||this._splitOnBackslash&&h===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let r=!0;for(;this._to<this._valueLen;this._to++){const l=this._value.charCodeAt(this._to);if(l===47||this._splitOnBackslash&&l===92)if(r)this._from++;else break;else r=!1}return this}cmp(r){return this._caseSensitive?(0,t.compareSubstring)(r,this._value,0,r.length,this._from,this._to):(0,t.compareSubstringIgnoreCase)(r,this._value,0,r.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.PathIterator=E;var d;(function(o){o[o.Scheme=1]="Scheme",o[o.Authority=2]="Authority",o[o.Path=3]="Path",o[o.Query=4]="Query",o[o.Fragment=5]="Fragment"})(d||(d={}));class I{constructor(r,l){this._ignorePathCasing=r,this._ignoreQueryAndFragment=l,this._states=[],this._stateIdx=0}reset(r){return this._value=r,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new E(!1,!this._ignorePathCasing(r)),this._pathIterator.reset(r.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(r)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(r){if(this._states[this._stateIdx]===1)return(0,t.compareIgnoreCase)(r,this._value.scheme);if(this._states[this._stateIdx]===2)return(0,t.compareIgnoreCase)(r,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(r);if(this._states[this._stateIdx]===4)return(0,t.compare)(r,this._value.query);if(this._states[this._stateIdx]===5)return(0,t.compare)(r,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}e.UriIterator=I;class v{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const r=this.right;return this.right=r.left,r.left=this,this.updateHeight(),r.updateHeight(),r}rotateRight(){const r=this.left;return this.left=r.right,r.right=this,this.updateHeight(),r.updateHeight(),r}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}var m;(function(o){o[o.Left=-1]="Left",o[o.Mid=0]="Mid",o[o.Right=1]="Right"})(m||(m={}));class g{constructor(r){this._iter=r}static forUris(r=()=>!1,l=()=>!1){return new g(new I(r,l))}static forPaths(r=!1){return new g(new E(void 0,!r))}static forStrings(){return new g(new R)}static forConfigKeys(){return new g(new w)}clear(){this._root=void 0}fill(r,l){if(l){const h=l.slice(0);(0,b.shuffle)(h);for(const S of h)this.set(S,r)}else{const h=r.slice(0);(0,b.shuffle)(h);for(const S of h)this.set(S[0],S[1])}}set(r,l){const h=this._iter.reset(r);let S;this._root||(this._root=new v,this._root.segment=h.value());const A=[];for(S=this._root;;){const W=h.cmp(S.segment);if(W>0)S.left||(S.left=new v,S.left.segment=h.value()),A.push([-1,S]),S=S.left;else if(W<0)S.right||(S.right=new v,S.right.segment=h.value()),A.push([1,S]),S=S.right;else if(h.hasNext())h.next(),S.mid||(S.mid=new v,S.mid.segment=h.value()),A.push([0,S]),S=S.mid;else break}const $=S.value;S.value=l,S.key=r;for(let W=A.length-1;W>=0;W--){const ee=A[W][1];ee.updateHeight();const L=ee.balanceFactor();if(L<-1||L>1){const q=A[W][0],ne=A[W+1][0];if(q===1&&ne===1)A[W][1]=ee.rotateLeft();else if(q===-1&&ne===-1)A[W][1]=ee.rotateRight();else if(q===1&&ne===-1)ee.right=A[W+1][1]=A[W+1][1].rotateRight(),A[W][1]=ee.rotateLeft();else if(q===-1&&ne===1)ee.left=A[W+1][1]=A[W+1][1].rotateLeft(),A[W][1]=ee.rotateRight();else throw new Error;if(W>0)switch(A[W-1][0]){case-1:A[W-1][1].left=A[W][1];break;case 1:A[W-1][1].right=A[W][1];break;case 0:A[W-1][1].mid=A[W][1];break}else this._root=A[0][1]}}return $}get(r){return this._getNode(r)?.value}_getNode(r){const l=this._iter.reset(r);let h=this._root;for(;h;){const S=l.cmp(h.segment);if(S>0)h=h.left;else if(S<0)h=h.right;else if(l.hasNext())l.next(),h=h.mid;else break}return h}has(r){const l=this._getNode(r);return!(l?.value===void 0&&l?.mid===void 0)}delete(r){return this._delete(r,!1)}deleteSuperstr(r){return this._delete(r,!0)}_delete(r,l){const h=this._iter.reset(r),S=[];let A=this._root;for(;A;){const $=h.cmp(A.segment);if($>0)S.push([-1,A]),A=A.left;else if($<0)S.push([1,A]),A=A.right;else if(h.hasNext())h.next(),S.push([0,A]),A=A.mid;else break}if(!!A){if(l?(A.left=void 0,A.mid=void 0,A.right=void 0,A.height=1):(A.key=void 0,A.value=void 0),!A.mid&&!A.value)if(A.left&&A.right){const $=this._min(A.right),{key:W,value:ee,segment:L}=$;this._delete($.key,!1),A.key=W,A.value=ee,A.segment=L}else{const $=A.left??A.right;if(S.length>0){const[W,ee]=S[S.length-1];switch(W){case-1:ee.left=$;break;case 0:ee.mid=$;break;case 1:ee.right=$;break}}else this._root=$}for(let $=S.length-1;$>=0;$--){const W=S[$][1];W.updateHeight();const ee=W.balanceFactor();if(ee>1?(W.right.balanceFactor()>=0||(W.right=W.right.rotateRight()),S[$][1]=W.rotateLeft()):ee<-1&&(W.left.balanceFactor()<=0||(W.left=W.left.rotateLeft()),S[$][1]=W.rotateRight()),$>0)switch(S[$-1][0]){case-1:S[$-1][1].left=S[$][1];break;case 1:S[$-1][1].right=S[$][1];break;case 0:S[$-1][1].mid=S[$][1];break}else this._root=S[0][1]}}}_min(r){for(;r.left;)r=r.left;return r}findSubstr(r){const l=this._iter.reset(r);let h=this._root,S;for(;h;){const A=l.cmp(h.segment);if(A>0)h=h.left;else if(A<0)h=h.right;else if(l.hasNext())l.next(),S=h.value||S,h=h.mid;else break}return h&&h.value||S}findSuperstr(r){const l=this._iter.reset(r);let h=this._root;for(;h;){const S=l.cmp(h.segment);if(S>0)h=h.left;else if(S<0)h=h.right;else if(l.hasNext())l.next(),h=h.mid;else return h.mid?this._entries(h.mid):void 0}}forEach(r){for(const[l,h]of this)r(h,l)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(r){const l=[];return this._dfsEntries(r,l),l[Symbol.iterator]()}_dfsEntries(r,l){!r||(r.left&&this._dfsEntries(r.left,l),r.value&&l.push([r.key,r.value]),r.mid&&this._dfsEntries(r.mid,l),r.right&&this._dfsEntries(r.right,l))}_isBalanced(){const r=l=>{if(!l)return!0;const h=l.balanceFactor();return h<-1||h>1?!1:r(l.left)&&r(l.right)};return r(this._root)}}e.TernarySearchTree=g;class u{constructor(r,l){this.uri=r,this.value=l}}class c{constructor(r,l){this[D]="ResourceMap",r instanceof c?(this.map=new Map(r.map),this.toKey=l??c.defaultToKey):(this.map=new Map,this.toKey=r??c.defaultToKey)}set(r,l){return this.map.set(this.toKey(r),new u(r,l)),this}get(r){return this.map.get(this.toKey(r))?.value}has(r){return this.map.has(this.toKey(r))}get size(){return this.map.size}clear(){this.map.clear()}delete(r){return this.map.delete(this.toKey(r))}forEach(r,l){typeof l!="undefined"&&(r=r.bind(l));for(const[h,S]of this.map)r(S.value,S.uri,this)}*values(){for(const r of this.map.values())yield r.value}*keys(){for(const r of this.map.values())yield r.uri}*entries(){for(const r of this.map.values())yield[r.uri,r.value]}*[(D=Symbol.toStringTag,Symbol.iterator)](){for(const[,r]of this.map)yield[r.uri,r.value]}}e.ResourceMap=c,c.defaultToKey=o=>o.toString();class f{constructor(r,l){this[P]="ResourceSet",!r||typeof r=="function"?this._map=new c(r):(this._map=new c(l),r.forEach(this.add,this))}get size(){return this._map.size}add(r){return this._map.set(r,r),this}clear(){this._map.clear()}delete(r){return this._map.delete(r)}forEach(r,l){this._map.forEach((h,S)=>r.call(l,S,S,this))}has(r){return this._map.has(r)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(P=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}}e.ResourceSet=f;var i;(function(o){o[o.None=0]="None",o[o.AsOld=1]="AsOld",o[o.AsNew=2]="AsNew"})(i=e.Touch||(e.Touch={}));class s{constructor(){this[k]="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}has(r){return this._map.has(r)}get(r,l=0){const h=this._map.get(r);if(!!h)return l!==0&&this.touch(h,l),h.value}set(r,l,h=0){let S=this._map.get(r);if(S)S.value=l,h!==0&&this.touch(S,h);else{switch(S={key:r,value:l,next:void 0,previous:void 0},h){case 0:this.addItemLast(S);break;case 1:this.addItemFirst(S);break;case 2:this.addItemLast(S);break;default:this.addItemLast(S);break}this._map.set(r,S),this._size++}return this}delete(r){return!!this.remove(r)}remove(r){const l=this._map.get(r);if(!!l)return this._map.delete(r),this.removeItem(l),this._size--,l.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const r=this._head;return this._map.delete(r.key),this.removeItem(r),this._size--,r.value}forEach(r,l){const h=this._state;let S=this._head;for(;S;){if(l?r.bind(l)(S.value,S.key,this):r(S.value,S.key,this),this._state!==h)throw new Error("LinkedMap got modified during iteration.");S=S.next}}keys(){const r=this,l=this._state;let h=this._head;const S={[Symbol.iterator](){return S},next(){if(r._state!==l)throw new Error("LinkedMap got modified during iteration.");if(h){const A={value:h.key,done:!1};return h=h.next,A}else return{value:void 0,done:!0}}};return S}values(){const r=this,l=this._state;let h=this._head;const S={[Symbol.iterator](){return S},next(){if(r._state!==l)throw new Error("LinkedMap got modified during iteration.");if(h){const A={value:h.value,done:!1};return h=h.next,A}else return{value:void 0,done:!0}}};return S}entries(){const r=this,l=this._state;let h=this._head;const S={[Symbol.iterator](){return S},next(){if(r._state!==l)throw new Error("LinkedMap got modified during iteration.");if(h){const A={value:[h.key,h.value],done:!1};return h=h.next,A}else return{value:void 0,done:!0}}};return S}[(k=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(r){if(r>=this.size)return;if(r===0){this.clear();return}let l=this._head,h=this.size;for(;l&&h>r;)this._map.delete(l.key),l=l.next,h--;this._head=l,this._size=h,l&&(l.previous=void 0),this._state++}addItemFirst(r){if(!this._head&&!this._tail)this._tail=r;else if(this._head)r.next=this._head,this._head.previous=r;else throw new Error("Invalid list");this._head=r,this._state++}addItemLast(r){if(!this._head&&!this._tail)this._head=r;else if(this._tail)r.previous=this._tail,this._tail.next=r;else throw new Error("Invalid list");this._tail=r,this._state++}removeItem(r){if(r===this._head&&r===this._tail)this._head=void 0,this._tail=void 0;else if(r===this._head){if(!r.next)throw new Error("Invalid list");r.next.previous=void 0,this._head=r.next}else if(r===this._tail){if(!r.previous)throw new Error("Invalid list");r.previous.next=void 0,this._tail=r.previous}else{const l=r.next,h=r.previous;if(!l||!h)throw new Error("Invalid list");l.previous=h,h.next=l}r.next=void 0,r.previous=void 0,this._state++}touch(r,l){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(l!==1&&l!==2)){if(l===1){if(r===this._head)return;const h=r.next,S=r.previous;r===this._tail?(S.next=void 0,this._tail=S):(h.previous=S,S.next=h),r.previous=void 0,r.next=this._head,this._head.previous=r,this._head=r,this._state++}else if(l===2){if(r===this._tail)return;const h=r.next,S=r.previous;r===this._head?(h.previous=void 0,this._head=h):(h.previous=S,S.next=h),r.next=void 0,r.previous=this._tail,this._tail.next=r,this._tail=r,this._state++}}}toJSON(){const r=[];return this.forEach((l,h)=>{r.push([h,l])}),r}fromJSON(r){this.clear();for(const[l,h]of r)this.set(l,h)}}e.LinkedMap=s;class n extends s{constructor(r,l=1){super();this._limit=r,this._ratio=Math.min(Math.max(0,l),1)}get limit(){return this._limit}set limit(r){this._limit=r,this.checkTrim()}get ratio(){return this._ratio}set ratio(r){this._ratio=Math.min(Math.max(0,r),1),this.checkTrim()}get(r,l=2){return super.get(r,l)}peek(r){return super.get(r,0)}set(r,l){return super.set(r,l,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=n;class a{constructor(r){y.set(this,void 0),Pt(this,y,r,"f")}get size(){return tt(this,y,"f").size}forEach(r,l){tt(this,y,"f").forEach(r,l)}get(r){return tt(this,y,"f").get(r)}has(r){return tt(this,y,"f").has(r)}entries(){return tt(this,y,"f").entries()}keys(){return tt(this,y,"f").keys()}values(){return tt(this,y,"f").values()}[(y=new WeakMap,Symbol.iterator)](){return tt(this,y,"f").entries()}}e.ReadonlyMapView=a}),define(ve[138],we([0,1,24,16]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fuzzyScoreGraceful=e.fuzzyScoreGracefulAggressive=e.fuzzyScore=e.FuzzyScoreOptions=e.FuzzyScore=e.isPatternInWord=e.createMatches=e.anyScore=e.matchesFuzzy2=e.matchesFuzzy=e.matchesWords=e.matchesCamelCase=e.isUpper=e.matchesSubString=e.matchesContiguousSubString=e.matchesPrefix=e.matchesStrictPrefix=e.or=void 0;function D(...H){return function(Y,le){for(let pe=0,Pe=H.length;pe<Pe;pe++){const Te=H[pe](Y,le);if(Te)return Te}return null}}e.or=D,e.matchesStrictPrefix=P.bind(void 0,!1),e.matchesPrefix=P.bind(void 0,!0);function P(H,Y,le){if(!le||le.length<Y.length)return null;let pe;return H?pe=t.startsWithIgnoreCase(le,Y):pe=le.indexOf(Y)===0,pe?Y.length>0?[{start:0,end:Y.length}]:[]:null}function k(H,Y){const le=Y.toLowerCase().indexOf(H.toLowerCase());return le===-1?null:[{start:le,end:le+H.length}]}e.matchesContiguousSubString=k;function y(H,Y){return p(H.toLowerCase(),Y.toLowerCase(),0,0)}e.matchesSubString=y;function p(H,Y,le,pe){if(le===H.length)return[];if(pe===Y.length)return null;if(H[le]===Y[pe]){let Pe=null;return(Pe=p(H,Y,le+1,pe+1))?m({start:pe,end:pe+1},Pe):null}return p(H,Y,le,pe+1)}function C(H){return 97<=H&&H<=122}function T(H){return 65<=H&&H<=90}e.isUpper=T;function R(H){return 48<=H&&H<=57}function w(H){return H===32||H===9||H===10||H===13}const E=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(H=>E.add(H.charCodeAt(0)));function d(H){return w(H)||E.has(H)}function I(H,Y){return H===Y||d(H)&&d(Y)}function v(H){return C(H)||T(H)||R(H)}function m(H,Y){return Y.length===0?Y=[H]:H.end===Y[0].start?Y[0].start=H.start:Y.unshift(H),Y}function g(H,Y){for(let le=Y;le<H.length;le++){const pe=H.charCodeAt(le);if(T(pe)||R(pe)||le>0&&!v(H.charCodeAt(le-1)))return le}return H.length}function u(H,Y,le,pe){if(le===H.length)return[];if(pe===Y.length)return null;if(H[le]!==Y[pe].toLowerCase())return null;{let Pe=null,Te=pe+1;for(Pe=u(H,Y,le+1,pe+1);!Pe&&(Te=g(Y,Te))<Y.length;)Pe=u(H,Y,le+1,Te),Te++;return Pe===null?null:m({start:pe,end:pe+1},Pe)}}function c(H){let Y=0,le=0,pe=0,Pe=0,Te=0;for(let ye=0;ye<H.length;ye++)Te=H.charCodeAt(ye),T(Te)&&Y++,C(Te)&&le++,v(Te)&&pe++,R(Te)&&Pe++;const Ne=Y/H.length,Ue=le/H.length,ge=pe/H.length,be=Pe/H.length;return{upperPercent:Ne,lowerPercent:Ue,alphaPercent:ge,numericPercent:be}}function f(H){const{upperPercent:Y,lowerPercent:le}=H;return le===0&&Y>.6}function i(H){const{upperPercent:Y,lowerPercent:le,alphaPercent:pe,numericPercent:Pe}=H;return le>.2&&Y<.8&&pe>.6&&Pe<.2}function s(H){let Y=0,le=0,pe=0,Pe=0;for(let Te=0;Te<H.length;Te++)pe=H.charCodeAt(Te),T(pe)&&Y++,C(pe)&&le++,w(pe)&&Pe++;return(Y===0||le===0)&&Pe===0?H.length<=30:Y<=5}function n(H,Y){if(!Y||(Y=Y.trim(),Y.length===0)||!s(H)||Y.length>60)return null;const le=c(Y);if(!i(le)){if(!f(le))return null;Y=Y.toLowerCase()}let pe=null,Pe=0;for(H=H.toLowerCase();Pe<Y.length&&(pe=u(H,Y,0,Pe))===null;)Pe=g(Y,Pe+1);return pe}e.matchesCamelCase=n;function a(H,Y,le=!1){if(!Y||Y.length===0)return null;let pe=null,Pe=0;for(H=H.toLowerCase(),Y=Y.toLowerCase();Pe<Y.length&&(pe=o(H,Y,0,Pe,le))===null;)Pe=r(Y,Pe+1);return pe}e.matchesWords=a;function o(H,Y,le,pe,Pe){if(le===H.length)return[];if(pe===Y.length)return null;if(I(H.charCodeAt(le),Y.charCodeAt(pe))){let Te=null,Ne=pe+1;if(Te=o(H,Y,le+1,pe+1,Pe),!Pe)for(;!Te&&(Ne=r(Y,Ne))<Y.length;)Te=o(H,Y,le+1,Ne,Pe),Ne++;return Te===null?null:m({start:pe,end:pe+1},Te)}else return null}function r(H,Y){for(let le=Y;le<H.length;le++)if(d(H.charCodeAt(le))||le>0&&d(H.charCodeAt(le-1)))return le;return H.length}const l=D(e.matchesPrefix,n,k),h=D(e.matchesPrefix,n,y),S=new b.LRUCache(1e4);function A(H,Y,le=!1){if(typeof H!="string"||typeof Y!="string")return null;let pe=S.get(H);pe||(pe=new RegExp(t.convertSimple2RegExpPattern(H),"i"),S.set(H,pe));const Pe=pe.exec(Y);return Pe?[{start:Pe.index,end:Pe.index+Pe[0].length}]:le?h(H,Y):l(H,Y)}e.matchesFuzzy=A;function $(H,Y){const le=he(H,H.toLowerCase(),0,Y,Y.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return le?ee(le):null}e.matchesFuzzy2=$;function W(H,Y,le,pe,Pe,Te){const Ne=Math.min(13,H.length);for(;le<Ne;le++){const Ue=he(H,Y,le,pe,Pe,Te,{firstMatchCanBeWeak:!1,boostFullMatch:!0});if(Ue)return Ue}return[0,Te]}e.anyScore=W;function ee(H){if(typeof H=="undefined")return[];const Y=[],le=H[1];for(let pe=H.length-1;pe>1;pe--){const Pe=H[pe]+le,Te=Y[Y.length-1];Te&&Te.end===Pe?Te.end=Pe+1:Y.push({start:Pe,end:Pe+1})}return Y}e.createMatches=ee;const L=128;function q(){const H=[],Y=[];for(let le=0;le<=L;le++)Y[le]=0;for(let le=0;le<=L;le++)H.push(Y.slice(0));return H}function ne(H){const Y=[];for(let le=0;le<=H;le++)Y[le]=0;return Y}const x=ne(2*L),fe=ne(2*L),M=q(),B=q(),U=q(),z=!1;function X(H,Y,le,pe,Pe){function Te(Ue,ge,be=" "){for(;Ue.length<ge;)Ue=be+Ue;return Ue}let Ne=` |   |${pe.split("").map(Ue=>Te(Ue,3)).join("|")}
`;for(let Ue=0;Ue<=le;Ue++)Ue===0?Ne+=" |":Ne+=`${Y[Ue-1]}|`,Ne+=H[Ue].slice(0,Pe+1).map(ge=>Te(ge.toString(),3)).join("|")+`
`;return Ne}function ue(H,Y,le,pe){H=H.substr(Y),le=le.substr(pe),console.log(X(B,H,H.length,le,le.length)),console.log(X(U,H,H.length,le,le.length)),console.log(X(M,H,H.length,le,le.length))}function de(H,Y){if(Y<0||Y>=H.length)return!1;const le=H.codePointAt(Y);switch(le){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!t.isEmojiImprecise(le)}}function G(H,Y){if(Y<0||Y>=H.length)return!1;switch(H.charCodeAt(Y)){case 32:case 9:return!0;default:return!1}}function se(H,Y,le){return Y[H]!==le[H]}function O(H,Y,le,pe,Pe,Te,Ne=!1){for(;Y<le&&Pe<Te;)H[Y]===pe[Pe]&&(Ne&&(x[Y]=Pe),Y+=1),Pe+=1;return Y===le}e.isPatternInWord=O;var F;(function(H){H[H.Diag=1]="Diag",H[H.Left=2]="Left",H[H.LeftLeft=3]="LeftLeft"})(F||(F={}));var K;(function(H){H.Default=[-100,0];function Y(le){return!le||le.length===2&&le[0]===-100&&le[1]===0}H.isDefault=Y})(K=e.FuzzyScore||(e.FuzzyScore={}));class re{constructor(Y,le){this.firstMatchCanBeWeak=Y,this.boostFullMatch=le}}e.FuzzyScoreOptions=re,re.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};function he(H,Y,le,pe,Pe,Te,Ne=re.default){const Ue=H.length>L?L:H.length,ge=pe.length>L?L:pe.length;if(le>=Ue||Te>=ge||Ue-le>ge-Te||!O(Y,le,Ue,Pe,Te,ge,!0))return;te(Ue,ge,le,Te,Y,Pe);let be=1,ye=1,Fe=le,Me=Te;const Qe=[!1];for(be=1,Fe=le;Fe<Ue;be++,Fe++){const We=x[Fe],ce=fe[Fe],Ce=Fe+1<Ue?fe[Fe+1]:ge;for(ye=We-Te+1,Me=We;Me<Ce;ye++,Me++){let ke=Number.MIN_SAFE_INTEGER,Oe=!1;Me<=ce&&(ke=Q(H,Y,Fe,le,pe,Pe,Me,ge,Te,M[be-1][ye-1]===0,Qe));let Re=0;ke!==Number.MAX_SAFE_INTEGER&&(Oe=!0,Re=ke+B[be-1][ye-1]);const Be=Me>We,He=Be?B[be][ye-1]+(M[be][ye-1]>0?-5:0):0,Ye=Me>We+1&&M[be][ye-1]>0,Xe=Ye?B[be][ye-2]+(M[be][ye-2]>0?-5:0):0;if(Ye&&(!Be||Xe>=He)&&(!Oe||Xe>=Re))B[be][ye]=Xe,U[be][ye]=3,M[be][ye]=0;else if(Be&&(!Oe||He>=Re))B[be][ye]=He,U[be][ye]=2,M[be][ye]=0;else if(Oe)B[be][ye]=Re,U[be][ye]=1,M[be][ye]=M[be-1][ye-1]+1;else throw new Error("not possible")}}if(z&&ue(H,le,pe,Te),!Qe[0]&&!Ne.firstMatchCanBeWeak)return;be--,ye--;const $e=[B[be][ye],Te];let Ze=0,xe=0;for(;be>=1;){let We=ye;do{const ce=U[be][We];if(ce===3)We=We-2;else if(ce===2)We=We-1;else break}while(We>=1);Ze>1&&Y[le+be-1]===Pe[Te+ye-1]&&!se(We+Te-1,pe,Pe)&&Ze+1>M[be][We]&&(We=ye),We===ye?Ze++:Ze=1,xe||(xe=We),be--,ye=We-1,$e.push(ye)}ge===Ue&&Ne.boostFullMatch&&($e[0]+=2);const je=xe-Ue;return $e[0]-=je,$e}e.fuzzyScore=he;function te(H,Y,le,pe,Pe,Te){let Ne=H-1,Ue=Y-1;for(;Ne>=le&&Ue>=pe;)Pe[Ne]===Te[Ue]&&(fe[Ne]=Ue,Ne--),Ue--}function Q(H,Y,le,pe,Pe,Te,Ne,Ue,ge,be,ye){if(Y[le]!==Te[Ne])return Number.MIN_SAFE_INTEGER;let Fe=1,Me=!1;return Ne===le-pe?Fe=H[le]===Pe[Ne]?7:5:se(Ne,Pe,Te)&&(Ne===0||!se(Ne-1,Pe,Te))?(Fe=H[le]===Pe[Ne]?7:5,Me=!0):de(Te,Ne)&&(Ne===0||!de(Te,Ne-1))?Fe=5:(de(Te,Ne-1)||G(Te,Ne-1))&&(Fe=5,Me=!0),Fe>1&&le===pe&&(ye[0]=!0),Me||(Me=se(Ne,Pe,Te)||de(Te,Ne-1)||G(Te,Ne-1)),le===pe?Ne>ge&&(Fe-=Me?3:5):be?Fe+=Me?2:0:Fe+=Me?0:1,Ne+1===Ue&&(Fe-=Me?3:5),Fe}function Z(H,Y,le,pe,Pe,Te,Ne){return j(H,Y,le,pe,Pe,Te,!0,Ne)}e.fuzzyScoreGracefulAggressive=Z;function ae(H,Y,le,pe,Pe,Te,Ne){return j(H,Y,le,pe,Pe,Te,!1,Ne)}e.fuzzyScoreGraceful=ae;function j(H,Y,le,pe,Pe,Te,Ne,Ue){let ge=he(H,Y,le,pe,Pe,Te,Ue);if(ge&&!Ne)return ge;if(H.length>=3){const be=Math.min(7,H.length-1);for(let ye=le+1;ye<be;ye++){const Fe=ie(H,ye);if(Fe){const Me=he(Fe,Fe.toLowerCase(),le,pe,Pe,Te,Ue);Me&&(Me[0]-=3,(!ge||Me[0]>ge[0])&&(ge=Me))}}}return ge}function ie(H,Y){if(Y+1>=H.length)return;const le=H[Y],pe=H[Y+1];if(le!==pe)return H.slice(0,Y)+pe+le+H.slice(Y+2)}}),define(ve[139],we([0,1,41,138,16]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchesFuzzyIconAware=e.parseLabelWithIcons=e.stripIcons=e.markdownEscapeEscapedIcons=e.escapeIcons=e.iconStartMarker=void 0,e.iconStartMarker="$(";const P=new RegExp(`\\$\\(${b.CSSIcon.iconNameExpression}(?:${b.CSSIcon.iconModifierExpression})?\\)`,"g"),k=new RegExp(b.CSSIcon.iconNameCharacter),y=new RegExp(`(\\\\)?${P.source}`,"g");function p(v){return v.replace(y,(m,g)=>g?m:`\\${m}`)}e.escapeIcons=p;const C=new RegExp(`\\\\${P.source}`,"g");function T(v){return v.replace(C,m=>`\\${m}`)}e.markdownEscapeEscapedIcons=T;const R=new RegExp(`(\\s)?(\\\\)?${P.source}(\\s)?`,"g");function w(v){return v.indexOf(e.iconStartMarker)===-1?v:v.replace(R,(m,g,u,c)=>u?m:g||c||"")}e.stripIcons=w;function E(v){const m=v.indexOf(e.iconStartMarker);return m===-1?{text:v}:d(v,m)}e.parseLabelWithIcons=E;function d(v,m){const g=[];let u="";function c(l){if(l){u+=l;for(const h of l)g.push(s)}}let f=-1,i="",s=0,n,a,o=m;const r=v.length;for(c(v.substr(0,m));o<r;)n=v[o],a=v[o+1],n===e.iconStartMarker[0]&&a===e.iconStartMarker[1]?(f=o,c(i),i=e.iconStartMarker,o++):n===")"&&f!==-1?(s+=o-f+1,f=-1,i=""):f!==-1?k.test(n)?i+=n:(c(i),f=-1,i=""):c(n),o++;return c(i),{text:u,iconOffsets:g}}function I(v,m,g=!1){const{text:u,iconOffsets:c}=m;if(!c||c.length===0)return(0,t.matchesFuzzy)(v,u,g);const f=(0,D.ltrim)(u," "),i=u.length-f.length,s=(0,t.matchesFuzzy)(v,f,g);if(s)for(const n of s){const a=c[n.start+i]+i;n.start+=a,n.end+=a}return s}e.matchesFuzzyIconAware=I}),define(ve[85],we([0,1,24]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeAccents=e.normalizeNFD=e.normalizeNFC=void 0;const t=new b.LRUCache(1e4);function D(C){return p(C,"NFC",t)}e.normalizeNFC=D;const P=new b.LRUCache(1e4);function k(C){return p(C,"NFD",P)}e.normalizeNFD=k;const y=/[^\u0000-\u0080]/;function p(C,T,R){if(!C)return C;const w=R.get(C);if(w)return w;let E;return y.test(C)?E=C.normalize(T):E=C,R.set(C,E),E}e.removeAccents=function(){const C=/[\u0300-\u036f]/g;return function(T){return k(T).replace(C,"")}}()}),define(ve[67],we([0,1,16]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t;(function(D){D[D.Ignore=0]="Ignore",D[D.Info=1]="Info",D[D.Warning=2]="Warning",D[D.Error=3]="Error"})(t||(t={})),function(D){const P="error",k="warning",y="warn",p="info",C="ignore";function T(w){return w?b.equalsIgnoreCase(P,w)?D.Error:b.equalsIgnoreCase(k,w)||b.equalsIgnoreCase(y,w)?D.Warning:b.equalsIgnoreCase(p,w)?D.Info:D.Ignore:D.Ignore}D.fromValue=T;function R(w){switch(w){case D.Error:return P;case D.Warning:return k;case D.Info:return p;default:return C}}D.toString=R}(t||(t={})),e.default=t}),define(ve[12],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertNever=e.withUndefinedAsNull=e.withNullAsUndefined=e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.validateConstraint=e.validateConstraints=e.areFunctions=e.isFunction=e.isEmptyObject=e.assertAllDefined=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isIterable=e.isNumber=e.isTypedArray=e.isObject=e.isStringArray=e.isString=e.isArray=void 0;function b(l){return Array.isArray(l)}e.isArray=b;function t(l){return typeof l=="string"}e.isString=t;function D(l){return Array.isArray(l)&&l.every(h=>t(h))}e.isStringArray=D;function P(l){return typeof l=="object"&&l!==null&&!Array.isArray(l)&&!(l instanceof RegExp)&&!(l instanceof Date)}e.isObject=P;function k(l){const h=Object.getPrototypeOf(Uint8Array);return typeof l=="object"&&l instanceof h}e.isTypedArray=k;function y(l){return typeof l=="number"&&!isNaN(l)}e.isNumber=y;function p(l){return!!l&&typeof l[Symbol.iterator]=="function"}e.isIterable=p;function C(l){return l===!0||l===!1}e.isBoolean=C;function T(l){return typeof l=="undefined"}e.isUndefined=T;function R(l){return!w(l)}e.isDefined=R;function w(l){return T(l)||l===null}e.isUndefinedOrNull=w;function E(l,h){if(!l)throw new Error(h?`Unexpected type, expected '${h}'`:"Unexpected type")}e.assertType=E;function d(l){if(w(l))throw new Error("Assertion Failed: argument is undefined or null");return l}e.assertIsDefined=d;function I(...l){const h=[];for(let S=0;S<l.length;S++){const A=l[S];if(w(A))throw new Error(`Assertion Failed: argument at index ${S} is undefined or null`);h.push(A)}return h}e.assertAllDefined=I;const v=Object.prototype.hasOwnProperty;function m(l){if(!P(l))return!1;for(const h in l)if(v.call(l,h))return!1;return!0}e.isEmptyObject=m;function g(l){return typeof l=="function"}e.isFunction=g;function u(...l){return l.length>0&&l.every(g)}e.areFunctions=u;function c(l,h){const S=Math.min(l.length,h.length);for(let A=0;A<S;A++)f(l[A],h[A])}e.validateConstraints=c;function f(l,h){if(t(h)){if(typeof l!==h)throw new Error(`argument does not match constraint: typeof ${h}`)}else if(g(h)){try{if(l instanceof h)return}catch{}if(!w(l)&&l.constructor===h||h.length===1&&h.call(void 0,l)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}e.validateConstraint=f;function i(l){let h=[],S=Object.getPrototypeOf(l);for(;Object.prototype!==S;)h=h.concat(Object.getOwnPropertyNames(S)),S=Object.getPrototypeOf(S);return h}e.getAllPropertyNames=i;function s(l){const h=[];for(const S of i(l))typeof l[S]=="function"&&h.push(S);return h}e.getAllMethodNames=s;function n(l,h){const S=$=>function(){const W=Array.prototype.slice.call(arguments,0);return h($,W)},A={};for(const $ of l)A[$]=S($);return A}e.createProxyObject=n;function a(l){return l===null?void 0:l}e.withNullAsUndefined=a;function o(l){return typeof l=="undefined"?null:l}e.withUndefinedAsNull=o;function r(l,h="Unreachable"){throw new Error(h)}e.assertNever=r}),define(ve[33],we([0,1,6,3,16,12]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomPath=e.parseLineAndColumnAware=e.indexOfPath=e.getDriveLetter=e.hasDriveLetter=e.isRootOrDriveLetter=e.sanitizeFilePath=e.isWindowsDriveLetter=e.isEqualOrParent=e.isEqual=e.isValidBasename=e.isUNC=e.getRoot=e.toPosixPath=e.toSlashes=e.isPathSeparator=void 0;function k(o){return o===47||o===92}e.isPathSeparator=k;function y(o){return o.replace(/[\\/]/g,b.posix.sep)}e.toSlashes=y;function p(o){return o.indexOf("/")===-1&&(o=y(o)),/^[a-zA-Z]:(\/|$)/.test(o)&&(o="/"+o),o}e.toPosixPath=p;function C(o,r=b.posix.sep){if(!o)return"";const l=o.length,h=o.charCodeAt(0);if(k(h)){if(k(o.charCodeAt(1))&&!k(o.charCodeAt(2))){let A=3;const $=A;for(;A<l&&!k(o.charCodeAt(A));A++);if($!==A&&!k(o.charCodeAt(A+1))){for(A+=1;A<l;A++)if(k(o.charCodeAt(A)))return o.slice(0,A+1).replace(/[\\/]/g,r)}}return r}else if(m(h)&&o.charCodeAt(1)===58)return k(o.charCodeAt(2))?o.slice(0,2)+r:o.slice(0,2);let S=o.indexOf("://");if(S!==-1){for(S+=3;S<l;S++)if(k(o.charCodeAt(S)))return o.slice(0,S+1)}return""}e.getRoot=C;function T(o){if(!t.isWindows||!o||o.length<5)return!1;let r=o.charCodeAt(0);if(r!==92||(r=o.charCodeAt(1),r!==92))return!1;let l=2;const h=l;for(;l<o.length&&(r=o.charCodeAt(l),r!==92);l++);return!(h===l||(r=o.charCodeAt(l+1),isNaN(r)||r===92))}e.isUNC=T;const R=/[\\/:\*\?"<>\|]/g,w=/[\\/]/g,E=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function d(o,r=t.isWindows){const l=r?R:w;return!(!o||o.length===0||/^\s+$/.test(o)||(l.lastIndex=0,l.test(o))||r&&E.test(o)||o==="."||o===".."||r&&o[o.length-1]==="."||r&&o.length!==o.trim().length||o.length>255)}e.isValidBasename=d;function I(o,r,l){const h=o===r;return!l||h?h:!o||!r?!1:(0,D.equalsIgnoreCase)(o,r)}e.isEqual=I;function v(o,r,l,h=b.sep){if(o===r)return!0;if(!o||!r||r.length>o.length)return!1;if(l){if(!(0,D.startsWithIgnoreCase)(o,r))return!1;if(r.length===o.length)return!0;let A=r.length;return r.charAt(r.length-1)===h&&A--,o.charAt(A)===h}return r.charAt(r.length-1)!==h&&(r+=h),o.indexOf(r)===0}e.isEqualOrParent=v;function m(o){return o>=65&&o<=90||o>=97&&o<=122}e.isWindowsDriveLetter=m;function g(o,r){return t.isWindows&&o.endsWith(":")&&(o+=b.sep),(0,b.isAbsolute)(o)||(o=(0,b.join)(r,o)),o=(0,b.normalize)(o),t.isWindows?(o=(0,D.rtrim)(o,b.sep),o.endsWith(":")&&(o+=b.sep)):(o=(0,D.rtrim)(o,b.sep),o||(o=b.sep)),o}e.sanitizeFilePath=g;function u(o){const r=(0,b.normalize)(o);return t.isWindows?o.length>3?!1:c(r)&&(o.length===2||r.charCodeAt(2)===92):r===b.posix.sep}e.isRootOrDriveLetter=u;function c(o,r=t.isWindows){return r?m(o.charCodeAt(0))&&o.charCodeAt(1)===58:!1}e.hasDriveLetter=c;function f(o){return c(o)?o[0]:void 0}e.getDriveLetter=f;function i(o,r,l){return r.length>o.length?-1:o===r?0:(l&&(o=o.toLowerCase(),r=r.toLowerCase()),o.indexOf(r))}e.indexOfPath=i;function s(o){const r=o.split(":");let l,h,S;for(const A of r){const $=Number(A);(0,P.isNumber)($)?h===void 0?h=$:S===void 0&&(S=$):l=l?[l,A].join(":"):A}if(!l)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:l,line:h!==void 0?h:void 0,column:S!==void 0?S:h!==void 0?1:void 0}}e.parseLineAndColumnAware=s;const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function a(o,r,l=8){let h="";for(let A=0;A<l;A++)h+=n.charAt(Math.floor(Math.random()*n.length));let S;return r?S=`${r}-${h}`:S=h,o?(0,b.join)(o,S):S}e.randomPath=a}),define(ve[22],we([0,1,12]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filter=e.getCaseInsensitive=e.distinct=e.safeStringify=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function t(d){if(!d||typeof d!="object"||d instanceof RegExp)return d;const I=Array.isArray(d)?[]:{};return Object.keys(d).forEach(v=>{d[v]&&typeof d[v]=="object"?I[v]=t(d[v]):I[v]=d[v]}),I}e.deepClone=t;function D(d){if(!d||typeof d!="object")return d;const I=[d];for(;I.length>0;){const v=I.shift();Object.freeze(v);for(const m in v)if(P.call(v,m)){const g=v[m];typeof g=="object"&&!Object.isFrozen(g)&&!(0,b.isTypedArray)(g)&&I.push(g)}}return d}e.deepFreeze=D;const P=Object.prototype.hasOwnProperty;function k(d,I){return y(d,I,new Set)}e.cloneAndChange=k;function y(d,I,v){if((0,b.isUndefinedOrNull)(d))return d;const m=I(d);if(typeof m!="undefined")return m;if((0,b.isArray)(d)){const g=[];for(const u of d)g.push(y(u,I,v));return g}if((0,b.isObject)(d)){if(v.has(d))throw new Error("Cannot clone recursive data-structure");v.add(d);const g={};for(const u in d)P.call(d,u)&&(g[u]=y(d[u],I,v));return v.delete(d),g}return d}function p(d,I,v=!0){return(0,b.isObject)(d)?((0,b.isObject)(I)&&Object.keys(I).forEach(m=>{m in d?v&&((0,b.isObject)(d[m])&&(0,b.isObject)(I[m])?p(d[m],I[m],v):d[m]=I[m]):d[m]=I[m]}),d):I}e.mixin=p;function C(d,I){if(d===I)return!0;if(d==null||I===null||I===void 0||typeof d!=typeof I||typeof d!="object"||Array.isArray(d)!==Array.isArray(I))return!1;let v,m;if(Array.isArray(d)){if(d.length!==I.length)return!1;for(v=0;v<d.length;v++)if(!C(d[v],I[v]))return!1}else{const g=[];for(m in d)g.push(m);g.sort();const u=[];for(m in I)u.push(m);if(u.sort(),!C(g,u))return!1;for(v=0;v<g.length;v++)if(!C(d[g[v]],I[g[v]]))return!1}return!0}e.equals=C;function T(d){const I=new Set;return JSON.stringify(d,(v,m)=>{if((0,b.isObject)(m)||Array.isArray(m)){if(I.has(m))return"[Circular]";I.add(m)}return m})}e.safeStringify=T;function R(d,I){const v=Object.create(null);return!d||!I||Object.keys(I).forEach(g=>{const u=d[g],c=I[g];C(u,c)||(v[g]=c)}),v}e.distinct=R;function w(d,I){const v=I.toLowerCase(),m=Object.keys(d).find(g=>g.toLowerCase()===v);return m?d[m]:d[I]}e.getCaseInsensitive=w;function E(d,I){const v=Object.create(null);for(const[m,g]of Object.entries(d))I(m,g)&&(v[m]=g);return v}e.filter=E}),define(ve[4],we([0,1,6,3]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.URI=void 0;const D=/^\w[\w\d+.-]*$/,P=/^\//,k=/^\/\//;function y(n,a){if(!n.scheme&&a)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${n.authority}", path: "${n.path}", query: "${n.query}", fragment: "${n.fragment}"}`);if(n.scheme&&!D.test(n.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(n.path){if(n.authority){if(!P.test(n.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(k.test(n.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function p(n,a){return!n&&!a?"file":n}function C(n,a){switch(n){case"https":case"http":case"file":a?a[0]!==R&&(a=R+a):a=R;break}return a}const T="",R="/",w=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class E{constructor(a,o,r,l,h,S=!1){typeof a=="object"?(this.scheme=a.scheme||T,this.authority=a.authority||T,this.path=a.path||T,this.query=a.query||T,this.fragment=a.fragment||T):(this.scheme=p(a,S),this.authority=o||T,this.path=C(this.scheme,r||T),this.query=l||T,this.fragment=h||T,y(this,S))}static isUri(a){return a instanceof E?!0:a?typeof a.authority=="string"&&typeof a.fragment=="string"&&typeof a.path=="string"&&typeof a.query=="string"&&typeof a.scheme=="string"&&typeof a.fsPath=="string"&&typeof a.with=="function"&&typeof a.toString=="function":!1}get fsPath(){return u(this,!1)}with(a){if(!a)return this;let{scheme:o,authority:r,path:l,query:h,fragment:S}=a;return o===void 0?o=this.scheme:o===null&&(o=T),r===void 0?r=this.authority:r===null&&(r=T),l===void 0?l=this.path:l===null&&(l=T),h===void 0?h=this.query:h===null&&(h=T),S===void 0?S=this.fragment:S===null&&(S=T),o===this.scheme&&r===this.authority&&l===this.path&&h===this.query&&S===this.fragment?this:new I(o,r,l,h,S)}static parse(a,o=!1){const r=w.exec(a);return r?new I(r[2]||T,s(r[4]||T),s(r[5]||T),s(r[7]||T),s(r[9]||T),o):new I(T,T,T,T,T)}static file(a){let o=T;if(t.isWindows&&(a=a.replace(/\\/g,R)),a[0]===R&&a[1]===R){const r=a.indexOf(R,2);r===-1?(o=a.substring(2),a=R):(o=a.substring(2,r),a=a.substring(r)||R)}return new I("file",o,a,T,T)}static from(a){const o=new I(a.scheme,a.authority,a.path,a.query,a.fragment);return y(o,!0),o}static joinPath(a,...o){if(!a.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return t.isWindows&&a.scheme==="file"?r=E.file(b.win32.join(u(a,!0),...o)).path:r=b.posix.join(a.path,...o),a.with({path:r})}toString(a=!1){return c(this,a)}toJSON(){return this}static revive(a){if(a){if(a instanceof E)return a;{const o=new I(a);return o._formatted=a.external,o._fsPath=a._sep===d?a.fsPath:null,o}}else return a}}e.URI=E;const d=t.isWindows?1:void 0;class I extends E{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=u(this,!1)),this._fsPath}toString(a=!1){return a?c(this,!0):(this._formatted||(this._formatted=c(this,!1)),this._formatted)}toJSON(){const a={$mid:1};return this._fsPath&&(a.fsPath=this._fsPath,a._sep=d),this._formatted&&(a.external=this._formatted),this.path&&(a.path=this.path),this.scheme&&(a.scheme=this.scheme),this.authority&&(a.authority=this.authority),this.query&&(a.query=this.query),this.fragment&&(a.fragment=this.fragment),a}}const v={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function m(n,a){let o,r=-1;for(let l=0;l<n.length;l++){const h=n.charCodeAt(l);if(h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===45||h===46||h===95||h===126||a&&h===47)r!==-1&&(o+=encodeURIComponent(n.substring(r,l)),r=-1),o!==void 0&&(o+=n.charAt(l));else{o===void 0&&(o=n.substr(0,l));const S=v[h];S!==void 0?(r!==-1&&(o+=encodeURIComponent(n.substring(r,l)),r=-1),o+=S):r===-1&&(r=l)}}return r!==-1&&(o+=encodeURIComponent(n.substring(r))),o!==void 0?o:n}function g(n){let a;for(let o=0;o<n.length;o++){const r=n.charCodeAt(o);r===35||r===63?(a===void 0&&(a=n.substr(0,o)),a+=v[r]):a!==void 0&&(a+=n[o])}return a!==void 0?a:n}function u(n,a){let o;return n.authority&&n.path.length>1&&n.scheme==="file"?o=`//${n.authority}${n.path}`:n.path.charCodeAt(0)===47&&(n.path.charCodeAt(1)>=65&&n.path.charCodeAt(1)<=90||n.path.charCodeAt(1)>=97&&n.path.charCodeAt(1)<=122)&&n.path.charCodeAt(2)===58?a?o=n.path.substr(1):o=n.path[1].toLowerCase()+n.path.substr(2):o=n.path,t.isWindows&&(o=o.replace(/\//g,"\\")),o}e.uriToFsPath=u;function c(n,a){const o=a?g:m;let r="",{scheme:l,authority:h,path:S,query:A,fragment:$}=n;if(l&&(r+=l,r+=":"),(h||l==="file")&&(r+=R,r+=R),h){let W=h.indexOf("@");if(W!==-1){const ee=h.substr(0,W);h=h.substr(W+1),W=ee.indexOf(":"),W===-1?r+=o(ee,!1):(r+=o(ee.substr(0,W),!1),r+=":",r+=o(ee.substr(W+1),!1)),r+="@"}h=h.toLowerCase(),W=h.indexOf(":"),W===-1?r+=o(h,!1):(r+=o(h.substr(0,W),!1),r+=h.substr(W))}if(S){if(S.length>=3&&S.charCodeAt(0)===47&&S.charCodeAt(2)===58){const W=S.charCodeAt(1);W>=65&&W<=90&&(S=`/${String.fromCharCode(W+32)}:${S.substr(3)}`)}else if(S.length>=2&&S.charCodeAt(1)===58){const W=S.charCodeAt(0);W>=65&&W<=90&&(S=`${String.fromCharCode(W+32)}:${S.substr(2)}`)}r+=o(S,!0)}return A&&(r+="?",r+=o(A,!1)),$&&(r+="#",r+=a?$:m($,!1)),r}function f(n){try{return decodeURIComponent(n)}catch{return n.length>3?n.substr(0,3)+f(n.substr(3)):n}}const i=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function s(n){return n.match(i)?n.replace(i,a=>f(a)):n}}),define(ve[140],we([0,1,4]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.getFirstFrame=e.parse=e.isRemoteConsoleLog=void 0;function t(C){const T=C;return T&&typeof T.type=="string"&&typeof T.severity=="string"}e.isRemoteConsoleLog=t;function D(C){const T=[];let R;try{const w=JSON.parse(C.arguments),E=w[w.length-1];E&&E.__$stack&&(w.pop(),R=E.__$stack),T.push(...w)}catch{T.push("Unable to log remote console arguments",C.arguments)}return{args:T,stack:R}}e.parse=D;function P(C){if(typeof C!="string")return P(D(C).stack);const T=C;if(T){const R=k(T),w=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(R||"");if(w&&w.length===4)return{uri:b.URI.file(w[1]),line:Number(w[2]),column:Number(w[3])}}}e.getFirstFrame=P;function k(C){if(!C)return C;const T=C.indexOf(`
`);return T===-1?C:C.substring(0,T)}function y(C,T){const{args:R,stack:w}=D(C),E=typeof R[0]=="string"&&R.length===1;let d=k(w);d&&(d=`(${d.trim()})`);let I=[];if(typeof R[0]=="string"?d&&E?I=[`%c[${T}] %c${R[0]} %c${d}`,p("blue"),p(""),p("grey")]:I=[`%c[${T}] %c${R[0]}`,p("blue"),p(""),...R.slice(1)]:I=[`%c[${T}]%`,p("blue"),...R],d&&!E&&I.push(d),typeof console[C.severity]!="function")throw new Error("Unknown console method");console[C.severity].apply(console,I)}e.log=y;function p(C){return`color: ${C}`}}),define(ve[42],we([0,1,15,16,4]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=e.stringify=void 0;function P(C){return JSON.stringify(C,y)}e.stringify=P;function k(C){let T=JSON.parse(C);return T=p(T),T}e.parse=k;function y(C,T){return T instanceof RegExp?{$mid:2,source:T.source,flags:(0,t.regExpFlags)(T)}:T}function p(C,T=0){if(!C||T>200)return C;if(typeof C=="object"){switch(C.$mid){case 1:return D.URI.revive(C);case 2:return new RegExp(C.source,C.flags);case 14:return new Date(C.source)}if(C instanceof b.VSBuffer||C instanceof Uint8Array)return C;if(Array.isArray(C))for(let R=0;R<C.length;++R)C[R]=p(C[R],T+1);else for(const R in C)Object.hasOwnProperty.call(C,R)&&(C[R]=p(C[R],T+1))}return C}e.revive=p}),define(ve[8],we([0,1,3,4]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileAccess=e.RemoteAuthorities=e.connectionTokenQueryName=e.connectionTokenCookieName=e.Schemas=void 0;var D;(function(y){y.inMemory="inmemory",y.vscode="vscode",y.internal="private",y.walkThrough="walkThrough",y.walkThroughSnippet="walkThroughSnippet",y.http="http",y.https="https",y.file="file",y.mailto="mailto",y.untitled="untitled",y.data="data",y.command="command",y.vscodeRemote="vscode-remote",y.vscodeRemoteResource="vscode-remote-resource",y.vscodeUserData="vscode-userdata",y.vscodeCustomEditor="vscode-custom-editor",y.vscodeNotebook="vscode-notebook",y.vscodeNotebookCell="vscode-notebook-cell",y.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",y.vscodeNotebookCellOutput="vscode-notebook-cell-output",y.vscodeInteractive="vscode-interactive",y.vscodeInteractiveInput="vscode-interactive-input",y.vscodeSettings="vscode-settings",y.vscodeWorkspaceTrust="vscode-workspace-trust",y.vscodeTerminal="vscode-terminal",y.webviewPanel="webview-panel",y.vscodeWebview="vscode-webview",y.extension="extension",y.vscodeFileResource="vscode-file",y.tmp="tmp",y.vsls="vsls",y.vscodeSourceControl="vscode-scm"})(D=e.Schemas||(e.Schemas={})),e.connectionTokenCookieName="vscode-tkn",e.connectionTokenQueryName="tkn";class P{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${D.vscodeRemoteResource}`}setPreferredWebSchema(p){this._preferredWebSchema=p}setDelegate(p){this._delegate=p}setServerRootPath(p){this._remoteResourcesPath=`${p}/${D.vscodeRemoteResource}`}set(p,C,T){this._hosts[p]=C,this._ports[p]=T}setConnectionToken(p,C){this._connectionTokens[p]=C}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(p){if(this._delegate)return this._delegate(p);const C=p.authority;let T=this._hosts[C];T&&T.indexOf(":")!==-1&&(T=`[${T}]`);const R=this._ports[C],w=this._connectionTokens[C];let E=`path=${encodeURIComponent(p.path)}`;return typeof w=="string"&&(E+=`&${e.connectionTokenQueryName}=${encodeURIComponent(w)}`),t.URI.from({scheme:b.isWeb?this._preferredWebSchema:D.vscodeRemoteResource,authority:`${T}:${R}`,path:b.isWeb?(window.location.pathname+"/"+this._remoteResourcesPath).replace(/\/\/+/g,"/"):this._remoteResourcesPath,query:E})}}e.RemoteAuthorities=new P;class k{asBrowserUri(p,C){const T=this.toUri(p,C);return T.scheme===D.vscodeRemote?e.RemoteAuthorities.rewrite(T):T.scheme===D.file&&(b.isNative||b.isWebWorker&&b.globals.origin===`${D.vscodeFileResource}://${k.FALLBACK_AUTHORITY}`)?T.with({scheme:D.vscodeFileResource,authority:T.authority||k.FALLBACK_AUTHORITY,query:null,fragment:null}):T}asFileUri(p,C){const T=this.toUri(p,C);return T.scheme===D.vscodeFileResource?T.with({scheme:D.file,authority:T.authority!==k.FALLBACK_AUTHORITY?T.authority:null,query:null,fragment:null}):T}toUri(p,C){return t.URI.isUri(p)?p:t.URI.parse(C.toUrl(p))}}k.FALLBACK_AUTHORITY="vscode-app",e.FileAccess=new k}),define(ve[19],we([0,1,33,8,6,3,16,4]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toLocalResource=e.DataUri=e.distinctParents=e.addTrailingPathSeparator=e.removeTrailingPathSeparator=e.hasTrailingPathSeparator=e.isEqualAuthority=e.isAbsolutePath=e.resolvePath=e.relativePath=e.normalizePath=e.joinPath=e.dirname=e.extname=e.basename=e.basenameOrAuthority=e.getComparisonKey=e.isEqualOrParent=e.isEqual=e.extUriIgnorePathCase=e.extUriBiasedIgnorePathCase=e.extUri=e.ExtUri=e.originalFSPath=void 0;function p(E){return(0,y.uriToFsPath)(E,!0)}e.originalFSPath=p;class C{constructor(d){this._ignorePathCasing=d}compare(d,I,v=!1){return d===I?0:(0,k.compare)(this.getComparisonKey(d,v),this.getComparisonKey(I,v))}isEqual(d,I,v=!1){return d===I?!0:!d||!I?!1:this.getComparisonKey(d,v)===this.getComparisonKey(I,v)}getComparisonKey(d,I=!1){return d.with({path:this._ignorePathCasing(d)?d.path.toLowerCase():void 0,fragment:I?null:void 0}).toString()}ignorePathCasing(d){return this._ignorePathCasing(d)}isEqualOrParent(d,I,v=!1){if(d.scheme===I.scheme){if(d.scheme===t.Schemas.file)return b.isEqualOrParent(p(d),p(I),this._ignorePathCasing(d))&&d.query===I.query&&(v||d.fragment===I.fragment);if((0,e.isEqualAuthority)(d.authority,I.authority))return b.isEqualOrParent(d.path,I.path,this._ignorePathCasing(d),"/")&&d.query===I.query&&(v||d.fragment===I.fragment)}return!1}joinPath(d,...I){return y.URI.joinPath(d,...I)}basenameOrAuthority(d){return(0,e.basename)(d)||d.authority}basename(d){return D.posix.basename(d.path)}extname(d){return D.posix.extname(d.path)}dirname(d){if(d.path.length===0)return d;let I;return d.scheme===t.Schemas.file?I=y.URI.file(D.dirname(p(d))).path:(I=D.posix.dirname(d.path),d.authority&&I.length&&I.charCodeAt(0)!==47&&(console.error(`dirname("${d.toString})) resulted in a relative path`),I="/")),d.with({path:I})}normalizePath(d){if(!d.path.length)return d;let I;return d.scheme===t.Schemas.file?I=y.URI.file(D.normalize(p(d))).path:I=D.posix.normalize(d.path),d.with({path:I})}relativePath(d,I){if(d.scheme!==I.scheme||!(0,e.isEqualAuthority)(d.authority,I.authority))return;if(d.scheme===t.Schemas.file){const g=D.relative(p(d),p(I));return P.isWindows?b.toSlashes(g):g}let v=d.path||"/";const m=I.path||"/";if(this._ignorePathCasing(d)){let g=0;for(const u=Math.min(v.length,m.length);g<u&&!(v.charCodeAt(g)!==m.charCodeAt(g)&&v.charAt(g).toLowerCase()!==m.charAt(g).toLowerCase());g++);v=m.substr(0,g)+v.substr(g)}return D.posix.relative(v,m)}resolvePath(d,I){if(d.scheme===t.Schemas.file){const v=y.URI.file(D.resolve(p(d),I));return d.with({authority:v.authority,path:v.path})}return I=b.toPosixPath(I),d.with({path:D.posix.resolve(d.path,I)})}isAbsolutePath(d){return!!d.path&&d.path[0]==="/"}isEqualAuthority(d,I){return d===I||d!==void 0&&I!==void 0&&(0,k.equalsIgnoreCase)(d,I)}hasTrailingPathSeparator(d,I=D.sep){if(d.scheme===t.Schemas.file){const v=p(d);return v.length>b.getRoot(v).length&&v[v.length-1]===I}else{const v=d.path;return v.length>1&&v.charCodeAt(v.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(d.fsPath)}}removeTrailingPathSeparator(d,I=D.sep){return(0,e.hasTrailingPathSeparator)(d,I)?d.with({path:d.path.substr(0,d.path.length-1)}):d}addTrailingPathSeparator(d,I=D.sep){let v=!1;if(d.scheme===t.Schemas.file){const m=p(d);v=m!==void 0&&m.length===b.getRoot(m).length&&m[m.length-1]===I}else{I="/";const m=d.path;v=m.length===1&&m.charCodeAt(m.length-1)===47}return!v&&!(0,e.hasTrailingPathSeparator)(d,I)?d.with({path:d.path+"/"}):d}}e.ExtUri=C,e.extUri=new C(()=>!1),e.extUriBiasedIgnorePathCase=new C(E=>E.scheme===t.Schemas.file?!P.isLinux:!0),e.extUriIgnorePathCase=new C(E=>!0),e.isEqual=e.extUri.isEqual.bind(e.extUri),e.isEqualOrParent=e.extUri.isEqualOrParent.bind(e.extUri),e.getComparisonKey=e.extUri.getComparisonKey.bind(e.extUri),e.basenameOrAuthority=e.extUri.basenameOrAuthority.bind(e.extUri),e.basename=e.extUri.basename.bind(e.extUri),e.extname=e.extUri.extname.bind(e.extUri),e.dirname=e.extUri.dirname.bind(e.extUri),e.joinPath=e.extUri.joinPath.bind(e.extUri),e.normalizePath=e.extUri.normalizePath.bind(e.extUri),e.relativePath=e.extUri.relativePath.bind(e.extUri),e.resolvePath=e.extUri.resolvePath.bind(e.extUri),e.isAbsolutePath=e.extUri.isAbsolutePath.bind(e.extUri),e.isEqualAuthority=e.extUri.isEqualAuthority.bind(e.extUri),e.hasTrailingPathSeparator=e.extUri.hasTrailingPathSeparator.bind(e.extUri),e.removeTrailingPathSeparator=e.extUri.removeTrailingPathSeparator.bind(e.extUri),e.addTrailingPathSeparator=e.extUri.addTrailingPathSeparator.bind(e.extUri);function T(E,d){const I=[];for(let v=0;v<E.length;v++){const m=d(E[v]);E.some((g,u)=>u===v?!1:(0,e.isEqualOrParent)(m,d(g)))||I.push(E[v])}return I}e.distinctParents=T;var R;(function(E){E.META_DATA_LABEL="label",E.META_DATA_DESCRIPTION="description",E.META_DATA_SIZE="size",E.META_DATA_MIME="mime";function d(I){const v=new Map;I.path.substring(I.path.indexOf(";")+1,I.path.lastIndexOf(";")).split(";").forEach(u=>{const[c,f]=u.split(":");c&&f&&v.set(c,f)});const g=I.path.substring(0,I.path.indexOf(";"));return g&&v.set(E.META_DATA_MIME,g),v}E.parseMetaData=d})(R=e.DataUri||(e.DataUri={}));function w(E,d,I){if(d){let v=E.path;return v&&v[0]!==D.posix.sep&&(v=D.posix.sep+v),E.with({scheme:I,authority:d,path:v})}return E.with({scheme:I})}e.toLocalResource=w}),define(ve[14],we([0,1,20,11,7,2,19,3]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCancelableAsyncIterable=e.CancelableAsyncIterableObject=e.AsyncIterableObject=e.Promises=e.DeferredPromise=e.IntervalCounter=e.TaskSequentializer=e.retry=e.IdleValue=e.runWhenIdle=e.ThrottledWorker=e.RunOnceWorker=e.ProcessTimeRunOnceScheduler=e.RunOnceScheduler=e.IntervalTimer=e.TimeoutTimer=e.ResourceQueue=e.Queue=e.Limiter=e.firstParallel=e.first=e.sequence=e.disposableTimeout=e.timeout=e.AutoOpenBarrier=e.Barrier=e.ThrottledDelayer=e.Delayer=e.MicrotaskDelay=e.SequencerByKey=e.Sequencer=e.Throttler=e.asPromise=e.raceTimeout=e.raceCancellablePromises=e.raceCancellationError=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function p(se){return!!se&&typeof se.then=="function"}e.isThenable=p;function C(se){const O=new b.CancellationTokenSource,F=se(O.token),K=new Promise((re,he)=>{const te=O.token.onCancellationRequested(()=>{te.dispose(),O.dispose(),he(new t.CancellationError)});Promise.resolve(F).then(Q=>{te.dispose(),O.dispose(),re(Q)},Q=>{te.dispose(),O.dispose(),he(Q)})});return new class{cancel(){O.cancel()}then(re,he){return K.then(re,he)}catch(re){return this.then(void 0,re)}finally(re){return K.finally(re)}}}e.createCancelablePromise=C;function T(se,O,F){return new Promise((K,re)=>{const he=O.onCancellationRequested(()=>{he.dispose(),K(F)});se.then(K,re).finally(()=>he.dispose())})}e.raceCancellation=T;function R(se,O){return new Promise((F,K)=>{const re=O.onCancellationRequested(()=>{re.dispose(),K(new t.CancellationError)});se.then(F,K).finally(()=>re.dispose())})}e.raceCancellationError=R;async function w(se){let O=-1;const F=se.map((re,he)=>re.then(te=>(O=he,te))),K=await Promise.race(F);return se.forEach((re,he)=>{he!==O&&re.cancel()}),K}e.raceCancellablePromises=w;function E(se,O,F){let K;const re=setTimeout(()=>{K?.(void 0),F?.()},O);return Promise.race([se.finally(()=>clearTimeout(re)),new Promise(he=>K=he)])}e.raceTimeout=E;function d(se){return new Promise((O,F)=>{const K=se();p(K)?K.then(O,F):O(K)})}e.asPromise=d;class I{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(O){if(this.activePromise){if(this.queuedPromiseFactory=O,!this.queuedPromise){const F=()=>{this.queuedPromise=null;const K=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,K};this.queuedPromise=new Promise(K=>{this.activePromise.then(F,F).then(K)})}return new Promise((F,K)=>{this.queuedPromise.then(F,K)})}return this.activePromise=O(),new Promise((F,K)=>{this.activePromise.then(re=>{this.activePromise=null,F(re)},re=>{this.activePromise=null,K(re)})})}}e.Throttler=I;class v{constructor(){this.current=Promise.resolve(null)}queue(O){return this.current=this.current.then(()=>O(),()=>O())}}e.Sequencer=v;class m{constructor(){this.promiseMap=new Map}queue(O,F){const re=(this.promiseMap.get(O)??Promise.resolve()).catch(()=>{}).then(F).finally(()=>{this.promiseMap.get(O)===re&&this.promiseMap.delete(O)});return this.promiseMap.set(O,re),re}}e.SequencerByKey=m;const g=(se,O)=>{let F=!0;const K=setTimeout(()=>{F=!1,O()},se);return{isTriggered:()=>F,dispose:()=>{clearTimeout(K),F=!1}}},u=se=>{let O=!0;return queueMicrotask(()=>{O&&(O=!1,se())}),{isTriggered:()=>O,dispose:()=>{O=!1}}};e.MicrotaskDelay=Symbol("MicrotaskDelay");class c{constructor(O){this.defaultDelay=O,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(O,F=this.defaultDelay){this.task=O,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((re,he)=>{this.doResolve=re,this.doReject=he}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const re=this.task;return this.task=null,re()}}));const K=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=F===e.MicrotaskDelay?u(K):g(F,K),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new t.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=c;class f{constructor(O){this.delayer=new c(O),this.throttler=new I}trigger(O,F){return this.delayer.trigger(()=>this.throttler.queue(O),F)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=f;class i{constructor(){this._isOpen=!1,this._promise=new Promise((O,F)=>{this._completePromise=O})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=i;class s extends i{constructor(O){super();this._timeout=setTimeout(()=>this.open(),O)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=s;function n(se,O){return O?new Promise((F,K)=>{const re=setTimeout(()=>{he.dispose(),F()},se),he=O.onCancellationRequested(()=>{clearTimeout(re),he.dispose(),K(new t.CancellationError)})}):C(F=>n(se,F))}e.timeout=n;function a(se,O=0){const F=setTimeout(se,O);return(0,P.toDisposable)(()=>clearTimeout(F))}e.disposableTimeout=a;function o(se){const O=[];let F=0;const K=se.length;function re(){return F<K?se[F++]():null}function he(te){te!=null&&O.push(te);const Q=re();return Q?Q.then(he):Promise.resolve(O)}return Promise.resolve(null).then(he)}e.sequence=o;function r(se,O=K=>!!K,F=null){let K=0;const re=se.length,he=()=>{if(K>=re)return Promise.resolve(F);const te=se[K++];return Promise.resolve(te()).then(Z=>O(Z)?Promise.resolve(Z):he())};return he()}e.first=r;function l(se,O=K=>!!K,F=null){if(se.length===0)return Promise.resolve(F);let K=se.length;const re=()=>{K=-1;for(const he of se)he.cancel?.()};return new Promise((he,te)=>{for(const Q of se)Q.then(Z=>{--K>=0&&O(Z)?(re(),he(Z)):K===0&&he(F)}).catch(Z=>{--K>=0&&(re(),te(Z))})})}e.firstParallel=l;class h{constructor(O){this._size=0,this.maxDegreeOfParalellism=O,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new D.Emitter}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(O){return this._size++,new Promise((F,K)=>{this.outstandingPromises.push({factory:O,c:F,e:K}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const O=this.outstandingPromises.shift();this.runningPromises++;const F=O.factory();F.then(O.c,O.e),F.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onDrained.fire()}dispose(){this._onDrained.dispose()}}e.Limiter=h;class S extends h{constructor(){super(1)}}e.Queue=S;class A{constructor(){this.queues=new Map,this.drainers=new Set}async whenDrained(){if(this.isDrained())return;const O=new U;return this.drainers.add(O),O.p}isDrained(){for(const[,O]of this.queues)if(O.size>0)return!1;return!0}queueFor(O,F=k.extUri){const K=F.getComparisonKey(O);let re=this.queues.get(K);return re||(re=new S,D.Event.once(re.onDrained)(()=>{re?.dispose(),this.queues.delete(K),this.onDidQueueDrain()}),this.queues.set(K,re)),re}onDidQueueDrain(){!this.isDrained()||this.releaseDrainers()}releaseDrainers(){for(const O of this.drainers)O.complete();this.drainers.clear()}dispose(){for(const[,O]of this.queues)O.dispose();this.queues.clear(),this.releaseDrainers()}}e.ResourceQueue=A;class ${constructor(O,F){this._token=-1,typeof O=="function"&&typeof F=="number"&&this.setIfNotSet(O,F)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(O,F){this.cancel(),this._token=setTimeout(()=>{this._token=-1,O()},F)}setIfNotSet(O,F){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,O()},F))}}e.TimeoutTimer=$;class W{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(O,F){this.cancel(),this._token=setInterval(()=>{O()},F)}}e.IntervalTimer=W;class ee{constructor(O,F){this.timeoutToken=-1,this.runner=O,this.timeout=F,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(O=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,O)}get delay(){return this.timeout}set delay(O){this.timeout=O}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}e.RunOnceScheduler=ee;class L{constructor(O,F){F%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${F}ms is not a multiple of 1000ms.`),this.runner=O,this.timeout=F,this.counter=0,this.intervalToken=-1,this.intervalHandler=this.onInterval.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearInterval(this.intervalToken),this.intervalToken=-1)}schedule(O=this.timeout){O%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${O}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(O/1e3),this.intervalToken=setInterval(this.intervalHandler,1e3)}isScheduled(){return this.intervalToken!==-1}onInterval(){this.counter--,!(this.counter>0)&&(clearInterval(this.intervalToken),this.intervalToken=-1,this.runner?.())}}e.ProcessTimeRunOnceScheduler=L;class q extends ee{constructor(O,F){super(O,F);this.units=[]}work(O){this.units.push(O),this.isScheduled()||this.schedule()}doRun(){const O=this.units;this.units=[],this.runner?.(O)}dispose(){this.units=[],super.dispose()}}e.RunOnceWorker=q;class ne extends P.Disposable{constructor(O,F){super();this.options=O,this.handler=F,this.pendingWork=[],this.throttler=this._register(new P.MutableDisposable),this.disposed=!1}get pending(){return this.pendingWork.length}work(O){if(this.disposed)return!1;if(typeof this.options.maxBufferedWork=="number"){if(this.throttler.value){if(this.pending+O.length>this.options.maxBufferedWork)return!1}else if(this.pending+O.length-this.options.maxWorkChunkSize>this.options.maxBufferedWork)return!1}return this.pendingWork.push(...O),this.throttler.value||this.doWork(),!0}doWork(){this.handler(this.pendingWork.splice(0,this.options.maxWorkChunkSize)),this.pendingWork.length>0&&(this.throttler.value=new ee(()=>{this.throttler.clear(),this.doWork()},this.options.throttleDelay),this.throttler.value.schedule())}dispose(){super.dispose(),this.disposed=!0}}e.ThrottledWorker=ne,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=se=>{(0,y.setTimeout0)(()=>{if(O)return;const F=Date.now()+15;se(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,F-Date.now())}}))});let O=!1;return{dispose(){O||(O=!0)}}}:e.runWhenIdle=(se,O)=>{const F=requestIdleCallback(se,typeof O=="number"?{timeout:O}:void 0);let K=!1;return{dispose(){K||(K=!0,cancelIdleCallback(F))}}}}();class x{constructor(O){this._didRun=!1,this._executor=()=>{try{this._value=O()}catch(F){this._error=F}finally{this._didRun=!0}},this._handle=(0,e.runWhenIdle)(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}e.IdleValue=x;async function fe(se,O,F){let K;for(let re=0;re<F;re++)try{return await se()}catch(he){K=he,await n(O)}throw K}e.retry=fe;class M{hasPending(O){return this._pending?typeof O=="number"?this._pending.taskId===O:!!this._pending:!1}get pending(){return this._pending?this._pending.promise:void 0}cancelPending(){this._pending?.cancel()}setPending(O,F,K){return this._pending={taskId:O,cancel:()=>K?.(),promise:F},F.then(()=>this.donePending(O),()=>this.donePending(O)),F}donePending(O){this._pending&&O===this._pending.taskId&&(this._pending=void 0,this.triggerNext())}triggerNext(){if(this._next){const O=this._next;this._next=void 0,O.run().then(O.promiseResolve,O.promiseReject)}}setNext(O){if(this._next)this._next.run=O;else{let F,K;const re=new Promise((he,te)=>{F=he,K=te});this._next={run:O,promise:re,promiseResolve:F,promiseReject:K}}return this._next.promise}}e.TaskSequentializer=M;class B{constructor(O,F=()=>Date.now()){this.interval=O,this.nowFn=F,this.lastIncrementTime=0,this.value=0}increment(){const O=this.nowFn();return O-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=O,this.value=0),this.value++,this.value}}e.IntervalCounter=B;class U{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((O,F)=>{this.completeCallback=O,this.errorCallback=F})}get isRejected(){return this.rejected}get isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}complete(O){return new Promise(F=>{this.completeCallback(O),this.resolved=!0,F()})}error(O){return new Promise(F=>{this.errorCallback(O),this.rejected=!0,F()})}cancel(){new Promise(O=>{this.errorCallback(new t.CancellationError),this.rejected=!0,O()})}}e.DeferredPromise=U;var z;(function(se){async function O(K){let re;const he=await Promise.all(K.map(te=>te.then(Q=>Q,Q=>{re||(re=Q)})));if(typeof re!="undefined")throw re;return he}se.settled=O;function F(K){return new Promise(async(re,he)=>{try{await K(re,he)}catch(te){he(te)}})}se.withAsyncBody=F})(z=e.Promises||(e.Promises={}));var X;(function(se){se[se.Initial=0]="Initial",se[se.DoneOK=1]="DoneOK",se[se.DoneError=2]="DoneError"})(X||(X={}));class ue{constructor(O){this._state=0,this._results=[],this._error=null,this._onStateChanged=new D.Emitter,queueMicrotask(async()=>{const F={emitOne:K=>this.emitOne(K),emitMany:K=>this.emitMany(K),reject:K=>this.reject(K)};try{await Promise.resolve(O(F)),this.resolve()}catch(K){this.reject(K)}finally{F.emitOne=void 0,F.emitMany=void 0,F.reject=void 0}})}static fromArray(O){return new ue(F=>{F.emitMany(O)})}static fromPromise(O){return new ue(async F=>{F.emitMany(await O)})}static fromPromises(O){return new ue(async F=>{await Promise.all(O.map(async K=>F.emitOne(await K)))})}static merge(O){return new ue(async F=>{await Promise.all(O.map(async K=>{for await(const re of K)F.emitOne(re)}))})}[Symbol.asyncIterator](){let O=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(O<this._results.length)return{done:!1,value:this._results[O++]};if(this._state===1)return{done:!0,value:void 0};await D.Event.toPromise(this._onStateChanged.event)}while(!0)}}}static map(O,F){return new ue(async K=>{for await(const re of O)K.emitOne(F(re))})}map(O){return ue.map(this,O)}static filter(O,F){return new ue(async K=>{for await(const re of O)F(re)&&K.emitOne(re)})}filter(O){return ue.filter(this,O)}static coalesce(O){return ue.filter(O,F=>!!F)}coalesce(){return ue.coalesce(this)}static async toPromise(O){const F=[];for await(const K of O)F.push(K);return F}toPromise(){return ue.toPromise(this)}emitOne(O){this._state===0&&(this._results.push(O),this._onStateChanged.fire())}emitMany(O){this._state===0&&(this._results=this._results.concat(O),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(O){this._state===0&&(this._state=2,this._error=O,this._onStateChanged.fire())}}e.AsyncIterableObject=ue,ue.EMPTY=ue.fromArray([]);class de extends ue{constructor(O,F){super(F);this._source=O}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=de;function G(se){const O=new b.CancellationTokenSource,F=se(O.token);return new de(O,async K=>{const re=O.token.onCancellationRequested(()=>{re.dispose(),O.dispose(),K.reject(new t.CancellationError)});try{for await(const he of F){if(O.token.isCancellationRequested)return;K.emitOne(he)}re.dispose(),O.dispose()}catch(he){re.dispose(),O.dispose(),K.reject(he)}})}e.createCancelableAsyncIterable=G}),define(ve[68],we([0,1,18,14,33,24,6,3,16]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.patternsEquals=e.getPathTerms=e.getBasenameTerms=e.isRelativePattern=e.parse=e.match=e.splitGlobAware=e.GLOB_SPLIT=e.GLOBSTAR=e.getEmptyExpression=void 0;function C(){return Object.create(null)}e.getEmptyExpression=C,e.GLOBSTAR="**",e.GLOB_SPLIT="/";const T="[/\\\\]",R="[^/\\\\]",w=/\//g;function E(U,z){switch(U){case 0:return"";case 1:return`${R}*?`;default:return`(?:${T}|${R}+${T}${z?`|${T}${R}+`:""})*?`}}function d(U,z){if(!U)return[];const X=[];let ue=!1,de=!1,G="";for(const se of U){switch(se){case z:if(!ue&&!de){X.push(G),G="";continue}break;case"{":ue=!0;break;case"}":ue=!1;break;case"[":de=!0;break;case"]":de=!1;break}G+=se}return G&&X.push(G),X}e.splitGlobAware=d;function I(U){if(!U)return"";let z="";const X=d(U,e.GLOB_SPLIT);if(X.every(ue=>ue===e.GLOBSTAR))z=".*";else{let ue=!1;X.forEach((de,G)=>{if(de===e.GLOBSTAR){if(ue)return;z+=E(2,G===X.length-1)}else{let se=!1,O="",F=!1,K="";for(const re of de){if(re!=="}"&&se){O+=re;continue}if(F&&(re!=="]"||!K)){let he;re==="-"?he=re:(re==="^"||re==="!")&&!K?he="^":re===e.GLOB_SPLIT?he="":he=(0,p.escapeRegExpCharacters)(re),K+=he;continue}switch(re){case"{":se=!0;continue;case"[":F=!0;continue;case"}":{z+=`(?:${d(O,",").map(Q=>I(Q)).join("|")})`,se=!1,O="";break}case"]":{z+="["+K+"]",F=!1,K="";break}case"?":z+=R;continue;case"*":z+=E(1);continue;default:z+=(0,p.escapeRegExpCharacters)(re)}}G<X.length-1&&(X[G+1]!==e.GLOBSTAR||G+2<X.length)&&(z+=T)}ue=de===e.GLOBSTAR})}return z}const v=/^\*\*\/\*\.[\w\.-]+$/,m=/^\*\*\/([\w\.-]+)\/?$/,g=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,u=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,c=/^\*\*((\/[\w\.-]+)+)\/?$/,f=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,i=new P.LRUCache(1e4),s=function(){return!1},n=function(){return null};function a(U,z){if(!U)return n;let X;typeof U!="string"?X=U.pattern:X=U,X=X.trim();const ue=`${X}_${!!z.trimForExclusions}`;let de=i.get(ue);if(de)return o(de,U);let G;return v.test(X)?de=l(X.substr(4),X):(G=m.exec(r(X,z)))?de=h(G[1],X):(z.trimForExclusions?u:g).test(X)?de=S(X,z):(G=c.exec(r(X,z)))?de=A(G[1].substr(1),X,!0):(G=f.exec(r(X,z)))?de=A(G[1],X,!1):de=$(X),i.set(ue,de),o(de,U)}function o(U,z){if(typeof z=="string")return U;const X=function(ue,de){return(0,D.isEqualOrParent)(ue,z.base,!y.isLinux)?U(ue.substr(z.base.length+1),de):null};return X.allBasenames=U.allBasenames,X.allPaths=U.allPaths,X.basenames=U.basenames,X.patterns=U.patterns,X}function r(U,z){return z.trimForExclusions&&U.endsWith("/**")?U.substr(0,U.length-2):U}function l(U,z){return function(X,ue){return typeof X=="string"&&X.endsWith(U)?z:null}}function h(U,z){const X=`/${U}`,ue=`\\${U}`,de=function(se,O){return typeof se!="string"?null:O?O===U?z:null:se===U||se.endsWith(X)||se.endsWith(ue)?z:null},G=[U];return de.basenames=G,de.patterns=[z],de.allBasenames=G,de}function S(U,z){const X=M(U.slice(1,-1).split(",").map(O=>a(O,z)).filter(O=>O!==n),U),ue=X.length;if(!ue)return n;if(ue===1)return X[0];const de=function(O,F){for(let K=0,re=X.length;K<re;K++)if(X[K](O,F))return U;return null},G=X.find(O=>!!O.allBasenames);G&&(de.allBasenames=G.allBasenames);const se=X.reduce((O,F)=>F.allPaths?O.concat(F.allPaths):O,[]);return se.length&&(de.allPaths=se),de}function A(U,z,X){const ue=k.sep===k.posix.sep,de=ue?U:U.replace(w,k.sep),G=k.sep+de,se=k.posix.sep+U;let O;return X?O=function(F,K){return typeof F=="string"&&(F===de||F.endsWith(G)||!ue&&(F===U||F.endsWith(se)))?z:null}:O=function(F,K){return typeof F=="string"&&(F===de||!ue&&F===U)?z:null},O.allPaths=[(X?"*/":"./")+U],O}function $(U){try{const z=new RegExp(`^${I(U)}$`);return function(X){return z.lastIndex=0,typeof X=="string"&&z.test(X)?U:null}}catch{return n}}function W(U,z,X){return!U||typeof z!="string"?!1:ee(U)(z,void 0,X)}e.match=W;function ee(U,z={}){if(!U)return s;if(typeof U=="string"||L(U)){const X=a(U,z);if(X===n)return s;const ue=function(de,G){return!!X(de,G)};return X.allBasenames&&(ue.allBasenames=X.allBasenames),X.allPaths&&(ue.allPaths=X.allPaths),ue}return x(U,z)}e.parse=ee;function L(U){const z=U;return z?typeof z.base=="string"&&typeof z.pattern=="string":!1}e.isRelativePattern=L;function q(U){return U.allBasenames||[]}e.getBasenameTerms=q;function ne(U){return U.allPaths||[]}e.getPathTerms=ne;function x(U,z){const X=M(Object.getOwnPropertyNames(U).map(O=>fe(O,U[O],z)).filter(O=>O!==n)),ue=X.length;if(!ue)return n;if(!X.some(O=>!!O.requiresSiblings)){if(ue===1)return X[0];const O=function(re,he){let te;for(let Q=0,Z=X.length;Q<Z;Q++){const ae=X[Q](re,he);if(typeof ae=="string")return ae;(0,t.isThenable)(ae)&&(te||(te=[]),te.push(ae))}return te?(async()=>{for(const Q of te){const Z=await Q;if(typeof Z=="string")return Z}return null})():null},F=X.find(re=>!!re.allBasenames);F&&(O.allBasenames=F.allBasenames);const K=X.reduce((re,he)=>he.allPaths?re.concat(he.allPaths):re,[]);return K.length&&(O.allPaths=K),O}const de=function(O,F,K){let re,he;for(let te=0,Q=X.length;te<Q;te++){const Z=X[te];Z.requiresSiblings&&K&&(F||(F=(0,k.basename)(O)),re||(re=F.substr(0,F.length-(0,k.extname)(O).length)));const ae=Z(O,F,re,K);if(typeof ae=="string")return ae;(0,t.isThenable)(ae)&&(he||(he=[]),he.push(ae))}return he?(async()=>{for(const te of he){const Q=await te;if(typeof Q=="string")return Q}return null})():null},G=X.find(O=>!!O.allBasenames);G&&(de.allBasenames=G.allBasenames);const se=X.reduce((O,F)=>F.allPaths?O.concat(F.allPaths):O,[]);return se.length&&(de.allPaths=se),de}function fe(U,z,X){if(z===!1)return n;const ue=a(U,X);if(ue===n)return n;if(typeof z=="boolean")return ue;if(z){const de=z.when;if(typeof de=="string"){const G=(se,O,F,K)=>{if(!K||!ue(se,O))return null;const re=de.replace("$(basename)",F),he=K(re);return(0,t.isThenable)(he)?he.then(te=>te?U:null):he?U:null};return G.requiresSiblings=!0,G}}return ue}function M(U,z){const X=U.filter(O=>!!O.basenames);if(X.length<2)return U;const ue=X.reduce((O,F)=>{const K=F.basenames;return K?O.concat(K):O},[]);let de;if(z){de=[];for(let O=0,F=ue.length;O<F;O++)de.push(z)}else de=X.reduce((O,F)=>{const K=F.patterns;return K?O.concat(K):O},[]);const G=function(O,F){if(typeof O!="string")return null;if(!F){let re;for(re=O.length;re>0;re--){const he=O.charCodeAt(re-1);if(he===47||he===92)break}F=O.substr(re)}const K=ue.indexOf(F);return K!==-1?de[K]:null};G.basenames=ue,G.patterns=de,G.allBasenames=ue;const se=U.filter(O=>!O.basenames);return se.push(G),se}function B(U,z){return(0,b.equals)(U,z,(X,ue)=>typeof X=="string"&&typeof ue=="string"?X===ue:typeof X!="string"&&typeof ue!="string"?X.base===ue.base&&X.pattern===ue.pattern:!1)}e.patternsEquals=B}),define(ve[86],we([0,1,11,139,19,16,4]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseHrefAndDimensions=e.removeMarkdownEscapes=e.escapeDoubleQuotes=e.escapeMarkdownSyntaxTokens=e.markdownStringEqual=e.isMarkdownString=e.isEmptyMarkdownString=e.MarkdownString=e.MarkdownStringTextNewlineStyle=void 0;var y;(function(v){v[v.Paragraph=0]="Paragraph",v[v.Break=1]="Break"})(y=e.MarkdownStringTextNewlineStyle||(e.MarkdownStringTextNewlineStyle={}));class p{constructor(m="",g=!1){if(this.value=m,typeof this.value!="string")throw(0,b.illegalArgument)("value");typeof g=="boolean"?(this.isTrusted=g,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=g.isTrusted??void 0,this.supportThemeIcons=g.supportThemeIcons??!1,this.supportHtml=g.supportHtml??!1)}appendText(m,g=0){return this.value+=w(this.supportThemeIcons?(0,t.escapeIcons)(m):m).replace(/([ \t]+)/g,(u,c)=>"&nbsp;".repeat(c.length)).replace(/\>/gm,"\\>").replace(/\n/g,g===1?`\\
`:`

`),this}appendMarkdown(m){return this.value+=m,this}appendCodeblock(m,g){return this.value+="\n```",this.value+=m,this.value+=`
`,this.value+=g,this.value+="\n```\n",this}appendLink(m,g,u){return this.value+="[",this.value+=this._escape(g,"]"),this.value+="](",this.value+=this._escape(String(m),")"),u&&(this.value+=` "${this._escape(this._escape(u,'"'),")")}"`),this.value+=")",this}_escape(m,g){const u=new RegExp((0,P.escapeRegExpCharacters)(g),"g");return m.replace(u,(c,f)=>m.charAt(f-1)!=="\\"?`\\${c}`:c)}}e.MarkdownString=p;function C(v){return T(v)?!v.value:Array.isArray(v)?v.every(C):!0}e.isEmptyMarkdownString=C;function T(v){return v instanceof p?!0:v&&typeof v=="object"?typeof v.value=="string"&&(typeof v.isTrusted=="boolean"||v.isTrusted===void 0)&&(typeof v.supportThemeIcons=="boolean"||v.supportThemeIcons===void 0):!1}e.isMarkdownString=T;function R(v,m){return v===m?!0:!v||!m?!1:v.value===m.value&&v.isTrusted===m.isTrusted&&v.supportThemeIcons===m.supportThemeIcons&&v.supportHtml===m.supportHtml&&(v.baseUri===m.baseUri||!!v.baseUri&&!!m.baseUri&&(0,D.isEqual)(k.URI.from(v.baseUri),k.URI.from(m.baseUri)))}e.markdownStringEqual=R;function w(v){return v.replace(/[\\`*_{}[\]()#+\-!]/g,"\\$&")}e.escapeMarkdownSyntaxTokens=w;function E(v){return v.replace(/"/g,"&quot;")}e.escapeDoubleQuotes=E;function d(v){return v&&v.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}e.removeMarkdownEscapes=d;function I(v){const m=[],g=v.split("|").map(c=>c.trim());v=g[0];const u=g[1];if(u){const c=/height=(\d+)/.exec(u),f=/width=(\d+)/.exec(u),i=c?c[1]:"",s=f?f[1]:"",n=isFinite(parseInt(s)),a=isFinite(parseInt(i));n&&m.push(`width="${s}"`),a&&m.push(`height="${i}"`)}return{href:v,dimensions:m}}e.parseHrefAndDimensions=I}),define(ve[141],we([0,1,18,33,6,3,19,16]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitName=e.unmnemonicLabel=e.mnemonicButtonLabel=e.mnemonicMenuLabel=e.template=e.shorten=e.untildify=e.tildify=e.normalizeDriveLetter=e.getPathLabel=void 0;function p(n,a){const{os:o,tildify:r,relative:l}=a;if(l){const A=C(n,l,o);if(typeof A=="string")return A}let h=n.fsPath;if(o===1&&!P.isWindows?h=h.replace(/\//g,"\\"):o!==1&&P.isWindows&&(h=h.replace(/\\/g,"/")),o!==1&&r?.userHome){const A=r.userHome.fsPath;let $;n.scheme!==r.userHome.scheme&&n.path.startsWith(D.posix.sep)?$=r.userHome.with({path:n.path}).fsPath:$=n.fsPath,h=w($,A,o)}return(o===1?D.win32:D.posix).normalize(T(h,o===1))}e.getPathLabel=p;function C(n,a,o){const r=o===1?D.win32:D.posix,l=o===3?k.extUri:k.extUriIgnorePathCase,h=a.getWorkspace(),S=(0,b.firstOrDefault)(h.folders);if(!S)return;n.scheme!==S.uri.scheme&&n.path.startsWith(D.posix.sep)&&(n=S.uri.with({path:n.path}));const A=a.getWorkspaceFolder(n);if(!A)return;let $;if(l.isEqual(A.uri,n)?$="":$=l.relativePath(A.uri,n)??"",$&&($=r.normalize($)),h.folders.length>1&&!a.noPrefix){const W=A.name?A.name:l.basenameOrAuthority(A.uri);$=$?`${W} \u2022 ${$}`:W}return $}function T(n,a=P.isWindows){return(0,t.hasDriveLetter)(n,a)?n.charAt(0).toUpperCase()+n.slice(1):n}e.normalizeDriveLetter=T;let R=Object.create(null);function w(n,a,o=P.OS){if(o===1||!n||!a)return n;let r=R.original===a?R.normalized:void 0;r||(r=a,P.isWindows&&(r=(0,t.toSlashes)(r)),r=`${(0,y.rtrim)(r,D.posix.sep)}${D.posix.sep}`,R={original:a,normalized:r});let l=n;return P.isWindows&&(l=(0,t.toSlashes)(l)),(o===3?l.startsWith(r):(0,y.startsWithIgnoreCase)(l,r))?`~/${l.substr(r.length)}`:n}e.tildify=w;function E(n,a){return n.replace(/^~($|\/|\\)/,`${a}$1`)}e.untildify=E;const d="\u2026",I="\\\\",v="~";function m(n,a=D.sep){const o=new Array(n.length);let r=!1;for(let l=0;l<n.length;l++){const h=n[l];if(h===""){o[l]=`.${a}`;continue}if(!h){o[l]=h;continue}r=!0;let S="",A=h;A.indexOf(I)===0?(S=A.substr(0,A.indexOf(I)+I.length),A=A.substr(A.indexOf(I)+I.length)):A.indexOf(a)===0?(S=A.substr(0,A.indexOf(a)+a.length),A=A.substr(A.indexOf(a)+a.length)):A.indexOf(v)===0&&(S=A.substr(0,A.indexOf(v)+v.length),A=A.substr(A.indexOf(v)+v.length));const $=A.split(a);for(let W=1;r&&W<=$.length;W++)for(let ee=$.length-W;r&&ee>=0;ee--){r=!1;let L=$.slice(ee,ee+W).join(a);for(let q=0;!r&&q<n.length;q++)if(q!==l&&n[q]&&n[q].indexOf(L)>-1){const ne=ee+W===$.length,x=ee>0&&n[q].indexOf(a)>-1?a+L:L,fe=n[q].endsWith(x);r=!ne||fe}if(!r){let q="";($[0].endsWith(":")||S!=="")&&(ee===1&&(ee=0,W++,L=$[0]+a+L),ee>0&&(q=$[0]+a),q=S+q),ee>0&&(q=q+d+a),q=q+L,ee+W<$.length&&(q=q+a+d),o[l]=q}}r&&(o[l]=h)}return o}e.shorten=m;var g;(function(n){n[n.TEXT=0]="TEXT",n[n.VARIABLE=1]="VARIABLE",n[n.SEPARATOR=2]="SEPARATOR"})(g||(g={}));function u(n,a=Object.create(null)){const o=[];let r=!1,l="";for(const h of n)if(h==="$"||r&&h==="{")l&&o.push({value:l,type:g.TEXT}),l="",r=!0;else if(h==="}"&&r){const S=a[l];if(typeof S=="string")S.length&&o.push({value:S,type:g.VARIABLE});else if(S){const A=o[o.length-1];(!A||A.type!==g.SEPARATOR)&&o.push({value:S.label,type:g.SEPARATOR})}l="",r=!1}else l+=h;return l&&!r&&o.push({value:l,type:g.TEXT}),o.filter((h,S)=>{if(h.type===g.SEPARATOR){const A=o[S-1],$=o[S+1];return[A,$].every(W=>W&&(W.type===g.VARIABLE||W.type===g.TEXT)&&W.value.length>0)}return!0}).map(h=>h.value).join("")}e.template=u;function c(n,a){return P.isMacintosh||a?n.replace(/\(&&\w\)|&&/g,"").replace(/&/g,P.isMacintosh?"&":"&&"):n.replace(/&&|&/g,o=>o==="&"?"&&":"&")}e.mnemonicMenuLabel=c;function f(n,a){return P.isMacintosh||a?n.replace(/\(&&\w\)|&&/g,""):P.isWindows?n.replace(/&&|&/g,o=>o==="&"?"&&":"&"):n.replace(/&&/g,"_")}e.mnemonicButtonLabel=f;function i(n){return n.replace(/&/g,"&&")}e.unmnemonicLabel=i;function s(n){const a=n.indexOf("/")!==-1?D.posix:D.win32,o=a.basename(n),r=a.dirname(n);return o.length?{name:o,parentPath:r}:{name:r,parentPath:""}}e.splitName=s}),define(ve[69],we([0,1,4]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transformAndReviveIncomingURIs=e.transformIncomingURIs=e.transformOutgoingURIs=e.DefaultURITransformer=e.URITransformer=void 0;function t(T){return T.toJSON()}class D{constructor(R){this._uriTransformer=R}transformIncoming(R){const w=this._uriTransformer.transformIncoming(R);return w===R?R:t(b.URI.from(w))}transformOutgoing(R){const w=this._uriTransformer.transformOutgoing(R);return w===R?R:t(b.URI.from(w))}transformOutgoingURI(R){const w=this._uriTransformer.transformOutgoing(R);return w===R?R:b.URI.from(w)}transformOutgoingScheme(R){return this._uriTransformer.transformOutgoingScheme(R)}}e.URITransformer=D,e.DefaultURITransformer=new class{transformIncoming(T){return T}transformOutgoing(T){return T}transformOutgoingURI(T){return T}transformOutgoingScheme(T){return T}};function P(T,R,w){if(!T||w>200)return null;if(typeof T=="object"){if(T instanceof b.URI)return R.transformOutgoing(T);for(const E in T)if(Object.hasOwnProperty.call(T,E)){const d=P(T[E],R,w+1);d!==null&&(T[E]=d)}}return null}function k(T,R){const w=P(T,R,0);return w===null?T:w}e.transformOutgoingURIs=k;function y(T,R,w,E){if(!T||E>200)return null;if(typeof T=="object"){if(T.$mid===1)return w?b.URI.revive(R.transformIncoming(T)):R.transformIncoming(T);for(const d in T)if(Object.hasOwnProperty.call(T,d)){const I=y(T[d],R,w,E+1);I!==null&&(T[d]=I)}}return null}function p(T,R){const w=y(T,R,!1,0);return w===null?T:w}e.transformIncomingURIs=p;function C(T,R){const w=y(T,R,!0,0);return w===null?T:w}e.transformAndReviveIncomingURIs=C}),define(ve[23],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateUuid=e.isUUID=void 0;const b=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function t(D){return b.test(D)}e.isUUID=t,e.generateUuid=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let D;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?D=crypto.getRandomValues.bind(crypto):D=function(y){for(let p=0;p<y.length;p++)y[p]=Math.floor(Math.random()*256);return y};const P=new Uint8Array(16),k=[];for(let y=0;y<256;y++)k.push(y.toString(16).padStart(2,"0"));return function(){D(P),P[6]=P[6]&15|64,P[8]=P[8]&63|128;let p=0,C="";return C+=k[P[p++]],C+=k[P[p++]],C+=k[P[p++]],C+=k[P[p++]],C+="-",C+=k[P[p++]],C+=k[P[p++]],C+="-",C+=k[P[p++]],C+=k[P[p++]],C+="-",C+=k[P[p++]],C+=k[P[p++]],C+="-",C+=k[P[p++]],C+=k[P[p++]],C+=k[P[p++]],C+=k[P[p++]],C+=k[P[p++]],C+=k[P[p++]],C}}()}),define(ve[142],we([0,1,267]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineDecoder=void 0;class t{constructor(P="utf8"){this.stringDecoder=new b.StringDecoder(P),this.remaining=null}write(P){const k=[],y=this.remaining?this.remaining+this.stringDecoder.write(P):this.stringDecoder.write(P);if(y.length<1)return k;let p=0,C,T=p;for(;T<y.length;)if(C=y.charCodeAt(T),C===13||C===10){if(k.push(y.substring(p,T)),T++,T<y.length){const R=C;C=y.charCodeAt(T),(R===13&&C===10||R===10&&C===13)&&T++}p=T}else T++;return this.remaining=p<y.length?y.substr(p):null,k}end(){return this.remaining}}e.LineDecoder=t}),function(){"use strict";function oe(e,b,t,D){function P(d){return new Promise(I=>t.exists(d,I))}function k(d){return new Promise((I,v)=>{const m=new Date;t.utimes(d,m,m,g=>g?v(g):I())})}function y(d){return new Promise((I,v)=>t.mkdir(d,{recursive:!0},m=>m&&m.code!=="EEXIST"?v(m):I(d)))}function p(d){return new Promise((I,v)=>t.rm(d,{recursive:!0,force:!0,maxRetries:3},m=>m?v(m):I()))}function C(d){return new Promise((I,v)=>t.readFile(d,"utf8",(m,g)=>m?v(m):I(g)))}function T(d,I){return new Promise((v,m)=>t.writeFile(d,I,"utf8",g=>g?m(g):v()))}function R(d){const I=b.join(d,"languagepacks.json");try{return JSON.parse(t.readFileSync(I,"utf8"))}catch{}}function w(d,I){try{for(;I;){if(d[I])return I;{const v=I.lastIndexOf("-");if(v>0)I=I.substring(0,v);else return}}}catch(v){console.error("Resolving language pack configuration failed.",v)}}function E(d,I,v,m){if(m==="pseudo")return Promise.resolve({locale:m,availableLanguages:{},pseudo:!0});if(process.env.VSCODE_DEV)return Promise.resolve({locale:m,availableLanguages:{}});if(m&&(m==="en"||m==="en-us"))return Promise.resolve({locale:m,availableLanguages:{}});const g=m;D.mark("code/willGenerateNls");const u=function(c){return D.mark("code/didGenerateNls"),Promise.resolve({locale:c,availableLanguages:{}})};try{if(!d)return u(g);const c=R(I);if(!c||(m=w(c,m),!m))return u(g);const f=c[m];let i;return!f||typeof f.hash!="string"||!f.translations||typeof(i=f.translations.vscode)!="string"?u(g):P(i).then(s=>{if(!s)return u(g);const n=f.hash+"."+m,a=b.join(I,"clp",n),o=b.join(a,d),r=b.join(a,"tcf.json"),l=b.join(a,"corrupted.info"),h={locale:g,availableLanguages:{"*":m},_languagePackId:n,_translationsConfigFile:r,_cacheRoot:a,_resolvedLanguagePackCoreLocation:o,_corruptedFile:l};return P(l).then(S=>{let A;return S?A=p(a):A=Promise.resolve(void 0),A.then(()=>P(o).then($=>$?(k(o).catch(()=>{}),D.mark("code/didGenerateNls"),h):y(o).then(()=>Promise.all([C(v),C(i)])).then(W=>{const ee=JSON.parse(W[0]),L=JSON.parse(W[1]).contents,q=Object.keys(ee.bundles),ne=[];for(const x of q){const fe=ee.bundles[x],M=Object.create(null);for(const B of fe){const U=ee.keys[B],z=ee.messages[B],X=L[B];let ue;if(X){ue=[];for(let de=0;de<U.length;de++){const G=U[de],se=typeof G=="string"?G:G.key;let O=X[se];O===void 0&&(O=z[de]),ue.push(O)}}else ue=z;M[B]=ue}ne.push(T(b.join(o,x.replace(/\//g,"!")+".nls.json"),JSON.stringify(M)))}return ne.push(T(r,JSON.stringify(f.translations))),Promise.all(ne)}).then(()=>(D.mark("code/didGenerateNls"),h)).catch(W=>(console.error("Generating translation files failed.",W),u(m)))))})})}catch(c){return console.error("Generating translation files failed.",c),u(m)}}return{getNLSConfiguration:E}}if(typeof define=="function")define(ve[143],we([0,87,30,48]),function(e,b,t,D){return oe(e.__$__nodeRequire,b,t,D)});else if(typeof module=="object"&&typeof module.exports=="object"){const e=require("path"),b=require("fs"),t=require("../common/performance");module.exports=oe(require,e,b,t)}else throw new Error("Unknown context")}(),define(ve[144],we([0,1,28]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMac=void 0;const t=new Set(["00:00:00:00:00:00","ff:ff:ff:ff:ff:ff","ac:de:48:00:11:22"]);function D(k){const y=k.replace(/\-/g,":").toLowerCase();return!t.has(y)}function P(){const k=(0,b.networkInterfaces)();for(const y in k){const p=k[y];if(p){for(const{mac:C}of p)if(D(C))return C}}throw new Error("Unable to retrieve mac address (unexpected format)")}e.getMac=P}),define(ve[88],we([0,1,28,11,24,23,144]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMachineId=e.virtualMachineHint=void 0,e.virtualMachineHint=new class{_isVirtualMachineMacAddress(T){return this._virtualMachineOUIs||(this._virtualMachineOUIs=D.TernarySearchTree.forStrings(),this._virtualMachineOUIs.set("00-50-56",!0),this._virtualMachineOUIs.set("00-0C-29",!0),this._virtualMachineOUIs.set("00-05-69",!0),this._virtualMachineOUIs.set("00-03-FF",!0),this._virtualMachineOUIs.set("00-1C-42",!0),this._virtualMachineOUIs.set("00-16-3E",!0),this._virtualMachineOUIs.set("08-00-27",!0),this._virtualMachineOUIs.set("00:50:56",!0),this._virtualMachineOUIs.set("00:0C:29",!0),this._virtualMachineOUIs.set("00:05:69",!0),this._virtualMachineOUIs.set("00:03:FF",!0),this._virtualMachineOUIs.set("00:1C:42",!0),this._virtualMachineOUIs.set("00:16:3E",!0),this._virtualMachineOUIs.set("08:00:27",!0)),!!this._virtualMachineOUIs.findSubstr(T)}value(){if(this._value===void 0){let T=0,R=0;const w=(0,b.networkInterfaces)();for(const E in w){const d=w[E];if(d)for(const{mac:I,internal:v}of d)v||(R+=1,this._isVirtualMachineMacAddress(I.toUpperCase())&&(T+=1))}this._value=R>0?T/R:0}return this._value}};let y;async function p(){return y||(y=(async()=>await C()||P.generateUuid())()),y}e.getMachineId=p;async function C(){try{const T=await new Promise((w,E)=>{oe(["crypto"],w,E)}),R=(0,k.getMac)();return T.createHash("sha256").update(R,"utf8").digest("hex")}catch(T){t.onUnexpectedError(T);return}}}),define(ve[21],we([0,1,30,28,268,14,33,85,6,3,19,4]),function(oe,e,b,t,D,P,k,y,p,C,T,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Promises=e.writeFileSync=e.configureFlushOnWrite=e.SymlinkSupport=e.whenDeleted=e.readdirSync=e.rimrafSync=e.RimRafMode=void 0;var w;(function(x){x[x.UNLINK=0]="UNLINK",x[x.MOVE=1]="MOVE"})(w=e.RimRafMode||(e.RimRafMode={}));async function E(x,fe=w.UNLINK){if((0,k.isRootOrDriveLetter)(x))throw new Error("rimraf - will refuse to recursively delete root");return fe===w.UNLINK?I(x):d(x)}async function d(x){try{const fe=(0,k.randomPath)((0,t.tmpdir)());try{await b.promises.rename(x,fe)}catch{return I(x)}I(fe).catch(M=>{})}catch(fe){if(fe.code!=="ENOENT")throw fe}}async function I(x){return(0,D.promisify)(b.rm)(x,{recursive:!0,force:!0,maxRetries:3})}function v(x){if((0,k.isRootOrDriveLetter)(x))throw new Error("rimraf - will refuse to recursively delete root");b.rmSync(x,{recursive:!0,force:!0,maxRetries:3})}e.rimrafSync=v;async function m(x,fe){return c(await(fe?g(x):(0,D.promisify)(b.readdir)(x)))}async function g(x){try{return await(0,D.promisify)(b.readdir)(x,{withFileTypes:!0})}catch(B){console.warn("[node.js fs] readdir with filetypes failed with error: ",B)}const fe=[],M=await m(x);for(const B of M){let U=!1,z=!1,X=!1;try{const ue=await e.Promises.lstat((0,p.join)(x,B));U=ue.isFile(),z=ue.isDirectory(),X=ue.isSymbolicLink()}catch(ue){console.warn("[node.js fs] unexpected error from lstat after readdir: ",ue)}fe.push({name:B,isFile:()=>U,isDirectory:()=>z,isSymbolicLink:()=>X})}return fe}function u(x){return c(b.readdirSync(x))}e.readdirSync=u;function c(x){return x.map(fe=>typeof fe=="string"?C.isMacintosh?(0,y.normalizeNFC)(fe):fe:(fe.name=C.isMacintosh?(0,y.normalizeNFC)(fe.name):fe.name,fe))}async function f(x){const fe=await m(x),M=[];for(const B of fe)await s.existsDirectory((0,p.join)(x,B))&&M.push(B);return M}function i(x,fe=1e3){return new Promise(M=>{let B=!1;const U=setInterval(()=>{B||(B=!0,b.access(x,z=>{B=!1,z&&(clearInterval(U),M(void 0))}))},fe)})}e.whenDeleted=i;var s;(function(x){async function fe(U){let z;try{if(z=await e.Promises.lstat(U),!z.isSymbolicLink())return{stat:z}}catch{}try{return{stat:await e.Promises.stat(U),symbolicLink:z?.isSymbolicLink()?{dangling:!1}:void 0}}catch(X){if(X.code==="ENOENT"&&z)return{stat:z,symbolicLink:{dangling:!0}};if(C.isWindows&&X.code==="EACCES")try{return{stat:await e.Promises.stat(await e.Promises.readlink(U)),symbolicLink:{dangling:!1}}}catch(ue){if(ue.code==="ENOENT"&&z)return{stat:z,symbolicLink:{dangling:!0}};throw ue}throw X}}x.stat=fe;async function M(U){try{const{stat:z,symbolicLink:X}=await x.stat(U);return z.isFile()&&X?.dangling!==!0}catch{}return!1}x.existsFile=M;async function B(U){try{const{stat:z,symbolicLink:X}=await x.stat(U);return z.isDirectory()&&X?.dangling!==!0}catch{}return!1}x.existsDirectory=B})(s=e.SymlinkSupport||(e.SymlinkSupport={}));const n=new P.ResourceQueue;function a(x,fe,M){return n.queueFor(R.URI.file(x),T.extUriBiasedIgnorePathCase).queue(()=>{const B=S(M);return new Promise((U,z)=>l(x,fe,B,X=>X?z(X):U()))})}let o=!0;function r(x){o=x}e.configureFlushOnWrite=r;function l(x,fe,M,B){if(!o)return b.writeFile(x,fe,{mode:M.mode,flag:M.flag},B);b.open(x,M.flag,M.mode,(U,z)=>{if(U)return B(U);b.writeFile(z,fe,X=>{if(X)return b.close(z,()=>B(X));b.fdatasync(z,ue=>(ue&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",ue),r(!1)),b.close(z,de=>B(de))))})})}function h(x,fe,M){const B=S(M);if(!o)return b.writeFileSync(x,fe,{mode:B.mode,flag:B.flag});const U=b.openSync(x,B.flag,B.mode);try{b.writeFileSync(U,fe);try{b.fdatasyncSync(U)}catch(z){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",z),r(!1)}}finally{b.closeSync(U)}}e.writeFileSync=h;function S(x){return x?{mode:typeof x.mode=="number"?x.mode:438,flag:typeof x.flag=="string"?x.flag:"w"}:{mode:438,flag:"w"}}async function A(x,fe){if(x!==fe)try{await e.Promises.rename(x,fe)}catch(M){if(x.toLowerCase()!==fe.toLowerCase()&&M.code==="EXDEV"||x.endsWith("."))await $(x,fe,{preserveSymlinks:!1}),await E(x,w.MOVE);else throw M}}async function $(x,fe,M){return ee(x,fe,{root:{source:x,target:fe},options:M,handledSourcePaths:new Set})}const W=511;async function ee(x,fe,M){if(M.handledSourcePaths.has(x))return;M.handledSourcePaths.add(x);const{stat:B,symbolicLink:U}=await s.stat(x);if(U){if(M.options.preserveSymlinks)try{return await ne(x,fe,M)}catch(z){console.warn("[node.js fs] copy of symlink failed: ",z)}if(U.dangling)return}return B.isDirectory()?L(x,fe,B.mode&W,M):q(x,fe,B.mode&W)}async function L(x,fe,M,B){await e.Promises.mkdir(fe,{recursive:!0,mode:M});const U=await m(x);for(const z of U)await ee((0,p.join)(x,z),(0,p.join)(fe,z),B)}async function q(x,fe,M){await e.Promises.copyFile(x,fe),await e.Promises.chmod(fe,M)}async function ne(x,fe,M){let B=await e.Promises.readlink(x);(0,k.isEqualOrParent)(B,M.root.source,!C.isLinux)&&(B=(0,p.join)(M.root.target,B.substr(M.root.source.length+1))),await e.Promises.symlink(B,fe)}e.Promises=new class{get access(){return(0,D.promisify)(b.access)}get stat(){return(0,D.promisify)(b.stat)}get lstat(){return(0,D.promisify)(b.lstat)}get utimes(){return(0,D.promisify)(b.utimes)}get read(){return(x,fe,M,B,U)=>new Promise((z,X)=>{b.read(x,fe,M,B,U,(ue,de,G)=>ue?X(ue):z({bytesRead:de,buffer:G}))})}get readFile(){return(0,D.promisify)(b.readFile)}get write(){return(x,fe,M,B,U)=>new Promise((z,X)=>{b.write(x,fe,M,B,U,(ue,de,G)=>ue?X(ue):z({bytesWritten:de,buffer:G}))})}get appendFile(){return(0,D.promisify)(b.appendFile)}get fdatasync(){return(0,D.promisify)(b.fdatasync)}get truncate(){return(0,D.promisify)(b.truncate)}get rename(){return(0,D.promisify)(b.rename)}get copyFile(){return(0,D.promisify)(b.copyFile)}get open(){return(0,D.promisify)(b.open)}get close(){return(0,D.promisify)(b.close)}get symlink(){return(0,D.promisify)(b.symlink)}get readlink(){return(0,D.promisify)(b.readlink)}get chmod(){return(0,D.promisify)(b.chmod)}get mkdir(){return(0,D.promisify)(b.mkdir)}get unlink(){return(0,D.promisify)(b.unlink)}get rmdir(){return(0,D.promisify)(b.rmdir)}get realpath(){return(0,D.promisify)(b.realpath)}async exists(x){try{return await e.Promises.access(x),!0}catch{return!1}}get readdir(){return m}get readDirsInDir(){return f}get writeFile(){return a}get rm(){return E}get move(){return A}get copy(){return $}}}),define(ve[145],we([0,1,30,6,3,16,21]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.realpathSync=e.realpath=e.realcase=e.realcaseSync=void 0;function y(w){if(D.isLinux)return w;const E=(0,t.dirname)(w);if(w===E)return w;const d=((0,t.basename)(w)||w).toLowerCase();try{const v=(0,k.readdirSync)(E).filter(m=>m.toLowerCase()===d);if(v.length===1){const m=y(E);if(m)return(0,t.join)(m,v[0])}else if(v.length>1){const m=v.indexOf(d);if(m>=0){const g=y(E);if(g)return(0,t.join)(g,v[m])}}}catch{}return null}e.realcaseSync=y;async function p(w){if(D.isLinux)return w;const E=(0,t.dirname)(w);if(w===E)return w;const d=((0,t.basename)(w)||w).toLowerCase();try{const v=(await k.Promises.readdir(E)).filter(m=>m.toLowerCase()===d);if(v.length===1){const m=await p(E);if(m)return(0,t.join)(m,v[0])}else if(v.length>1){const m=v.indexOf(d);if(m>=0){const g=await p(E);if(g)return(0,t.join)(g,v[m])}}}catch{}return null}e.realcase=p;async function C(w){try{return await k.Promises.realpath(w)}catch{const d=R(w);return await k.Promises.access(d,b.constants.R_OK),d}}e.realpath=C;function T(w){try{return b.realpathSync(w)}catch{const d=R(w);return b.accessSync(d,b.constants.R_OK),d}}e.realpathSync=T;function R(w){return(0,P.rtrim)((0,t.normalize)(w),t.sep)}}),define(ve[146],we([0,1,89]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findFreePortFaster=e.BROWSER_RESTRICTED_PORTS=e.findFreePort=void 0;function t(y,p,C,T=1){let R=!1;return new Promise(w=>{const E=setTimeout(()=>{if(!R)return R=!0,w(0)},C);D(y,p,T,d=>{if(!R)return R=!0,clearTimeout(E),w(d)})})}e.findFreePort=t;function D(y,p,C,T){if(p===0)return T(0);const R=new b.Socket;R.once("connect",()=>(k(R),D(y+C,p-1,C,T))),R.once("data",()=>{}),R.once("error",w=>(k(R),w.code!=="ECONNREFUSED"?D(y+C,p-1,C,T):T(y))),R.connect(y,"127.0.0.1")}e.BROWSER_RESTRICTED_PORTS={1:!0,7:!0,9:!0,11:!0,13:!0,15:!0,17:!0,19:!0,20:!0,21:!0,22:!0,23:!0,25:!0,37:!0,42:!0,43:!0,53:!0,69:!0,77:!0,79:!0,87:!0,95:!0,101:!0,102:!0,103:!0,104:!0,109:!0,110:!0,111:!0,113:!0,115:!0,117:!0,119:!0,123:!0,135:!0,137:!0,139:!0,143:!0,161:!0,179:!0,389:!0,427:!0,465:!0,512:!0,513:!0,514:!0,515:!0,526:!0,530:!0,531:!0,532:!0,540:!0,548:!0,554:!0,556:!0,563:!0,587:!0,601:!0,636:!0,989:!0,990:!0,993:!0,995:!0,1719:!0,1720:!0,1723:!0,2049:!0,3659:!0,4045:!0,5060:!0,5061:!0,6e3:!0,6566:!0,6665:!0,6666:!0,6667:!0,6668:!0,6669:!0,6697:!0,10080:!0};function P(y,p,C){let T=!1,R,w=1;const E=b.createServer({pauseOnConnect:!0});function d(I,v){T||(T=!0,E.removeAllListeners(),E.close(),R&&clearTimeout(R),v(I))}return new Promise(I=>{R=setTimeout(()=>{d(0,I)},C),E.on("listening",()=>{d(y,I)}),E.on("error",v=>{v&&(v.code==="EADDRINUSE"||v.code==="EACCES")&&w<p?(y++,w++,E.listen(y,"127.0.0.1")):d(0,I)}),E.on("close",()=>{d(0,I)}),E.listen(y,"127.0.0.1")})}e.findFreePortFaster=P;function k(y){try{y.removeAllListeners("connect"),y.removeAllListeners("error"),y.end(),y.destroy(),y.unref()}catch(p){console.error(p)}}}),define(ve[90],we([0,1,28,6,21]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstAvailablePowerShellInstallation=e.enumeratePowerShellInstallations=void 0;const P=/^\d+$/,k=/^Microsoft.PowerShell_.*/,y=/^Microsoft.PowerShellPreview_.*/;var p;(function(c){c[c.x64=0]="x64",c[c.x86=1]="x86",c[c.ARM=2]="ARM"})(p||(p={}));let C;switch(process.arch){case"ia32":case"x32":C=1;break;case"arm":case"arm64":C=2;break;default:C=0;break}let T;process.env.PROCESSOR_ARCHITEW6432?T=process.env.PROCESSOR_ARCHITEW6432==="ARM64"?2:0:process.env.PROCESSOR_ARCHITECTURE==="ARM64"?T=2:process.env.PROCESSOR_ARCHITECTURE==="X86"?T=1:T=0;class R{constructor(f,i,s){this.exePath=f,this.displayName=i,this.knownToExist=s}async exists(){return this.knownToExist===void 0&&(this.knownToExist=await D.SymlinkSupport.existsFile(this.exePath)),this.knownToExist}}function w({useAlternateBitness:c=!1}={}){return c?C===0?process.env["ProgramFiles(x86)"]||null:T===0&&process.env.ProgramW6432||null:process.env.ProgramFiles||null}async function E({useAlternateBitness:c=!1,findPreview:f=!1}={}){const i=w({useAlternateBitness:c});if(!i)return null;const s=t.join(i,"PowerShell");if(!await D.SymlinkSupport.existsDirectory(s))return null;let n=-1,a=null;for(const l of await D.Promises.readdir(s)){let h=-1;if(f){const A=l.indexOf("-");if(A<0)continue;const $=l.substring(0,A);if(!P.test($)||l.substring(A+1)!=="preview")continue;h=parseInt($,10)}else{if(!P.test(l))continue;h=parseInt(l,10)}if(h<=n)continue;const S=t.join(s,l,"pwsh.exe");!await D.SymlinkSupport.existsFile(S)||(a=S,n=h)}if(!a)return null;const o=i.includes("x86")?" (x86)":"",r=f?" Preview":"";return new R(a,`PowerShell${r}${o}`,!0)}async function d({findPreview:c}={}){if(!process.env.LOCALAPPDATA)return null;const f=t.join(process.env.LOCALAPPDATA,"Microsoft","WindowsApps");if(!await D.SymlinkSupport.existsDirectory(f))return null;const{pwshMsixDirRegex:i,pwshMsixName:s}=c?{pwshMsixDirRegex:y,pwshMsixName:"PowerShell Preview (Store)"}:{pwshMsixDirRegex:k,pwshMsixName:"PowerShell (Store)"};for(const n of await D.Promises.readdir(f))if(i.test(n)){const a=t.join(f,n,"pwsh.exe");return new R(a,s)}return null}function I(){const c=t.join(b.homedir(),".dotnet","tools","pwsh.exe");return new R(c,".NET Core PowerShell Global Tool")}function v(){const c=t.join(process.env.windir,C===1&&T!==1?"SysNative":"System32","WindowsPowerShell","v1.0","powershell.exe");return new R(c,"Windows PowerShell",!0)}async function*m(){let c=await E();c&&(yield c),c=await E({useAlternateBitness:!0}),c&&(yield c),c=await d(),c&&(yield c),c=I(),c&&(yield c),c=await E({findPreview:!0}),c&&(yield c),c=await d({findPreview:!0}),c&&(yield c),c=await E({useAlternateBitness:!0,findPreview:!0}),c&&(yield c),c=v(),c&&(yield c)}async function*g(){for await(const c of m())await c.exists()&&(yield c)}e.enumeratePowerShellInstallations=g;async function u(){for await(const c of g())return c;return null}e.getFirstAvailablePowerShellInstallation=u}),define(ve[91],we([0,1,43,8]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.listProcesses=void 0;function D(k){return new Promise((y,p)=>{let C;const T=new Map;function R(E,d,I,v,m){const g=T.get(d);if(E===k||g){const u={name:w(I),cmd:I,pid:E,ppid:d,load:v,mem:m};T.set(E,u),E===k&&(C=u),g&&(g.children||(g.children=[]),g.children.push(u),g.children.length>1&&(g.children=g.children.sort((c,f)=>c.pid-f.pid)))}}function w(E){const d=/--vscode-window-kind=shared-process/,I=/--vscode-window-kind=issue-reporter/,v=/--vscode-window-kind=process-explorer/,m=/--utility-sub-type=network/,g=/--utility-sub-type=node.mojom.NodeService/,u=/--crashes-directory/,c=/\\pipe\\winpty-control/,f=/conhost\.exe/,i=/--type=([a-zA-Z-]+)/;if(u.exec(E))return"electron-crash-reporter";if(c.exec(E))return"winpty-process";if(f.exec(E))return"console-window-host (Windows internal process)";let s=i.exec(E);if(s&&s.length===2){if(s[1]==="renderer")return d.exec(E)?"shared-process":I.exec(E)?"issue-reporter":v.exec(E)?"process-explorer":"window";if(s[1]==="utility"){if(m.exec(E))return"utility-network-service";if(g.exec(E))return"extension-host"}return s[1]}const n=/[a-zA-Z-]+\.js/g;let a="";do s=n.exec(E),s&&(a+=s+" ");while(s);return a&&E.indexOf("node ")<0&&E.indexOf("node.exe")<0?`electron_node ${a}`:E}if(process.platform==="win32"){const E=d=>d.indexOf("\\\\?\\")===0||d.indexOf("\\??\\")===0?d.substr(4):d.indexOf('"\\\\?\\')===0||d.indexOf('"\\??\\')===0?'"'+d.substr(5):d;new Promise((d,I)=>{oe(["windows-process-tree"],d,I)}).then(d=>{d.getProcessList(k,I=>{if(!I){p(new Error(`Root process ${k} not found`));return}d.getProcessCpuUsage(I,v=>{const m=new Map;v.forEach(g=>{const u=E(g.commandLine||"");m.set(g.pid,{name:w(u),cmd:u,pid:g.pid,ppid:g.ppid,load:g.cpu||0,mem:g.memory||0})}),C=m.get(k),C?(m.forEach(g=>{const u=m.get(g.ppid);u&&(u.children||(u.children=[]),u.children.push(g))}),m.forEach(g=>{g.children&&(g.children=g.children.sort((u,c)=>u.pid-c.pid))}),y(C)):p(new Error(`Root process ${k} not found`))})},d.ProcessDataFlag.CommandLine|d.ProcessDataFlag.Memory)})}else{let E=function(){let d=[C];const I=[];for(;d.length;){const m=d.shift();m&&(I.push(m.pid),m.children&&(d=d.concat(m.children)))}let v=JSON.stringify(t.FileAccess.asFileUri("vs/base/node/cpuUsage.sh",oe).fsPath);v+=" "+I.join(" "),(0,b.exec)(v,{},(m,g,u)=>{if(m||u)p(m||new Error(u.toString()));else{const c=g.toString().split(`
`);for(let f=0;f<I.length;f++){const i=T.get(I[f]);i.load=parseFloat(c[f])}if(!C){p(new Error(`Root process ${k} not found`));return}y(C)}})};(0,b.exec)("which ps",{},(d,I,v)=>{if(d||v)if(process.platform!=="linux")p(d||new Error(v.toString()));else{const m=JSON.stringify(t.FileAccess.asFileUri("vs/base/node/ps.sh",oe).fsPath);(0,b.exec)(m,{},(g,u,c)=>{g||c?p(g||new Error(c.toString())):(P(u,R),E())})}else{const m=I.toString().trim(),g="-ax -o pid=,ppid=,pcpu=,pmem=,command=";(0,b.exec)(`${m} ${g}`,{maxBuffer:1e3*1024,env:{LC_NUMERIC:"en_US.UTF-8"}},(u,c,f)=>{u||f&&!f.includes("screen size is bogus")?p(u||new Error(f.toString())):(P(c,R),process.platform==="linux"?E():C?y(C):p(new Error(`Root process ${k} not found`)))})}})}})}e.listProcesses=D;function P(k,y){const p=/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/,C=k.toString().split(`
`);for(const T of C){const R=p.exec(T.trim());R&&R.length===6&&y(parseInt(R[1]),parseInt(R[2]),R[5],parseFloat(R[3]),parseFloat(R[4]))}}});var _e=this&&this.__decorate||function(oe,e,b,t){var D=arguments.length,P=D<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,b):t,k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(oe,e,b,t);else for(var y=oe.length-1;y>=0;y--)(k=oe[y])&&(P=(D<3?k(P):D>3?k(e,b,P):k(e,b))||P);return D>3&&P&&Object.defineProperty(e,b,P),P};define(ve[44],we([0,1,18,14,15,20,82,11,7,2,42,16,12]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IPCLogger=e.logWithColors=e.ProxyChannel=e.StaticRouter=e.getNextTickChannel=e.getDelayedChannel=e.IPCClient=e.IPCServer=e.ChannelClient=e.RequestInitiator=e.ChannelServer=e.ResponseType=e.RequestType=void 0;var E;(function(U){U[U.Promise=100]="Promise",U[U.PromiseCancel=101]="PromiseCancel",U[U.EventListen=102]="EventListen",U[U.EventDispose=103]="EventDispose"})(E=e.RequestType||(e.RequestType={}));function d(U){switch(U){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}var I;(function(U){U[U.Initialize=200]="Initialize",U[U.PromiseSuccess=201]="PromiseSuccess",U[U.PromiseError=202]="PromiseError",U[U.PromiseErrorObj=203]="PromiseErrorObj",U[U.EventFire=204]="EventFire"})(I=e.ResponseType||(e.ResponseType={}));function v(U){switch(U){case 200:return"init";case 201:return"reply:";case 202:case 203:return"replyErr:";case 204:return"event:"}}var m;(function(U){U[U.Uninitialized=0]="Uninitialized",U[U.Idle=1]="Idle"})(m||(m={}));class g{constructor(z){this.buffer=z,this.pos=0}read(z){const X=this.buffer.slice(this.pos,this.pos+z);return this.pos+=X.byteLength,X}}class u{constructor(){this.buffers=[]}get buffer(){return D.VSBuffer.concat(this.buffers)}write(z){this.buffers.push(z)}}var c;(function(U){U[U.Undefined=0]="Undefined",U[U.String=1]="String",U[U.Buffer=2]="Buffer",U[U.VSBuffer=3]="VSBuffer",U[U.Array=4]="Array",U[U.Object=5]="Object"})(c||(c={}));function f(U){const z=D.VSBuffer.alloc(4);return z.writeUInt32BE(U,0),z}function i(U){return U.read(4).readUInt32BE(0)}function s(U){const z=D.VSBuffer.alloc(1);return z.writeUInt8(U,0),z}const n={Undefined:s(c.Undefined),String:s(c.String),Buffer:s(c.Buffer),VSBuffer:s(c.VSBuffer),Array:s(c.Array),Object:s(c.Object)},a=typeof Buffer!="undefined";function o(U,z){if(typeof z=="undefined")U.write(n.Undefined);else if(typeof z=="string"){const X=D.VSBuffer.fromString(z);U.write(n.String),U.write(f(X.byteLength)),U.write(X)}else if(a&&Buffer.isBuffer(z)){const X=D.VSBuffer.wrap(z);U.write(n.Buffer),U.write(f(X.byteLength)),U.write(X)}else if(z instanceof D.VSBuffer)U.write(n.VSBuffer),U.write(f(z.byteLength)),U.write(z);else if(Array.isArray(z)){U.write(n.Array),U.write(f(z.length));for(const X of z)o(U,X)}else{const X=D.VSBuffer.fromString(JSON.stringify(z));U.write(n.Object),U.write(f(X.byteLength)),U.write(X)}}function r(U){switch(U.read(1).readUInt8(0)){case c.Undefined:return;case c.String:return U.read(i(U)).toString();case c.Buffer:return U.read(i(U)).buffer;case c.VSBuffer:return U.read(i(U));case c.Array:{const X=i(U),ue=[];for(let de=0;de<X;de++)ue.push(r(U));return ue}case c.Object:return JSON.parse(U.read(i(U)).toString())}}class l{constructor(z,X,ue=null,de=1e3){this.protocol=z,this.ctx=X,this.logger=ue,this.timeoutDelay=de,this.channels=new Map,this.activeRequests=new Map,this.pendingRequests=new Map,this.protocolListener=this.protocol.onMessage(G=>this.onRawMessage(G)),this.sendResponse({type:200})}registerChannel(z,X){this.channels.set(z,X),setTimeout(()=>this.flushPendingRequests(z),0)}sendResponse(z){switch(z.type){case 200:{const X=this.send([z.type]);this.logger?.logOutgoing(X,0,1,v(z.type));return}case 201:case 202:case 204:case 203:{const X=this.send([z.type,z.id],z.data);this.logger?.logOutgoing(X,z.id,1,v(z.type),z.data);return}}}send(z,X=void 0){const ue=new u;return o(ue,z),o(ue,X),this.sendBuffer(ue.buffer)}sendBuffer(z){try{return this.protocol.send(z),z.byteLength}catch{return 0}}onRawMessage(z){const X=new g(z),ue=r(X),de=r(X),G=ue[0];switch(G){case 100:return this.logger?.logIncoming(z.byteLength,ue[1],1,`${d(G)}: ${ue[2]}.${ue[3]}`,de),this.onPromise({type:G,id:ue[1],channelName:ue[2],name:ue[3],arg:de});case 102:return this.logger?.logIncoming(z.byteLength,ue[1],1,`${d(G)}: ${ue[2]}.${ue[3]}`,de),this.onEventListen({type:G,id:ue[1],channelName:ue[2],name:ue[3],arg:de});case 101:return this.logger?.logIncoming(z.byteLength,ue[1],1,`${d(G)}`),this.disposeActiveRequest({type:G,id:ue[1]});case 103:return this.logger?.logIncoming(z.byteLength,ue[1],1,`${d(G)}`),this.disposeActiveRequest({type:G,id:ue[1]})}}onPromise(z){const X=this.channels.get(z.channelName);if(!X){this.collectPendingRequest(z);return}const ue=new P.CancellationTokenSource;let de;try{de=X.call(this.ctx,z.name,z.arg,ue.token)}catch(O){de=Promise.reject(O)}const G=z.id;de.then(O=>{this.sendResponse({id:G,data:O,type:201}),this.activeRequests.delete(z.id)},O=>{O instanceof Error?this.sendResponse({id:G,data:{message:O.message,name:O.name,stack:O.stack?O.stack.split?O.stack.split(`
`):O.stack:void 0},type:202}):this.sendResponse({id:G,data:O,type:203}),this.activeRequests.delete(z.id)});const se=(0,C.toDisposable)(()=>ue.cancel());this.activeRequests.set(z.id,se)}onEventListen(z){const X=this.channels.get(z.channelName);if(!X){this.collectPendingRequest(z);return}const ue=z.id,G=X.listen(this.ctx,z.name,z.arg)(se=>this.sendResponse({id:ue,data:se,type:204}));this.activeRequests.set(z.id,G)}disposeActiveRequest(z){const X=this.activeRequests.get(z.id);X&&(X.dispose(),this.activeRequests.delete(z.id))}collectPendingRequest(z){let X=this.pendingRequests.get(z.channelName);X||(X=[],this.pendingRequests.set(z.channelName,X));const ue=setTimeout(()=>{console.error(`Unknown channel: ${z.channelName}`),z.type===100&&this.sendResponse({id:z.id,data:{name:"Unknown channel",message:`Channel name '${z.channelName}' timed out after ${this.timeoutDelay}ms`,stack:void 0},type:202})},this.timeoutDelay);X.push({request:z,timeoutTimer:ue})}flushPendingRequests(z){const X=this.pendingRequests.get(z);if(X){for(const ue of X)switch(clearTimeout(ue.timeoutTimer),ue.request.type){case 100:this.onPromise(ue.request);break;case 102:this.onEventListen(ue.request);break}this.pendingRequests.delete(z)}}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,C.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}e.ChannelServer=l;var h;(function(U){U[U.LocalSide=0]="LocalSide",U[U.OtherSide=1]="OtherSide"})(h=e.RequestInitiator||(e.RequestInitiator={}));class S{constructor(z,X=null){this.protocol=z,this.isDisposed=!1,this.state=m.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new p.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(ue=>this.onBuffer(ue)),this.logger=X}getChannel(z){const X=this;return{call(ue,de,G){return X.isDisposed?Promise.reject(y.canceled()):X.requestPromise(z,ue,de,G)},listen(ue,de){return X.isDisposed?p.Event.None:X.requestEvent(z,ue,de)}}}requestPromise(z,X,ue,de=P.CancellationToken.None){const G=this.lastRequestId++,O={id:G,type:100,channelName:z,name:X,arg:ue};if(de.isCancellationRequested)return Promise.reject(y.canceled());let F;return new Promise((re,he)=>{if(de.isCancellationRequested)return he(y.canceled());const te=()=>{const j=ie=>{switch(ie.type){case 201:this.handlers.delete(G),re(ie.data);break;case 202:{this.handlers.delete(G);const H=new Error(ie.data.message);H.stack=ie.data.stack,H.name=ie.data.name,he(H);break}case 203:this.handlers.delete(G),he(ie.data);break}};this.handlers.set(G,j),this.sendRequest(O)};let Q=null;this.state===m.Idle?te():(Q=(0,t.createCancelablePromise)(j=>this.whenInitialized()),Q.then(()=>{Q=null,te()}));const Z=()=>{Q?(Q.cancel(),Q=null):this.sendRequest({id:G,type:101}),he(y.canceled())},ae=de.onCancellationRequested(Z);F=(0,C.combinedDisposable)((0,C.toDisposable)(Z),ae),this.activeRequests.add(F)}).finally(()=>{this.activeRequests.delete(F)})}requestEvent(z,X,ue){const de=this.lastRequestId++,se={id:de,type:102,channelName:z,name:X,arg:ue};let O=null;const F=new p.Emitter({onFirstListenerAdd:()=>{O=(0,t.createCancelablePromise)(re=>this.whenInitialized()),O.then(()=>{O=null,this.activeRequests.add(F),this.sendRequest(se)})},onLastListenerRemove:()=>{O?(O.cancel(),O=null):(this.activeRequests.delete(F),this.sendRequest({id:de,type:103}))}}),K=re=>F.fire(re.data);return this.handlers.set(de,K),F.event}sendRequest(z){switch(z.type){case 100:case 102:{const X=this.send([z.type,z.id,z.channelName,z.name],z.arg);this.logger?.logOutgoing(X,z.id,0,`${d(z.type)}: ${z.channelName}.${z.name}`,z.arg);return}case 101:case 103:{const X=this.send([z.type,z.id]);this.logger?.logOutgoing(X,z.id,0,d(z.type));return}}}send(z,X=void 0){const ue=new u;return o(ue,z),o(ue,X),this.sendBuffer(ue.buffer)}sendBuffer(z){try{return this.protocol.send(z),z.byteLength}catch{return 0}}onBuffer(z){const X=new g(z),ue=r(X),de=r(X),G=ue[0];switch(G){case 200:return this.logger?.logIncoming(z.byteLength,0,0,v(G)),this.onResponse({type:ue[0]});case 201:case 202:case 204:case 203:return this.logger?.logIncoming(z.byteLength,ue[1],0,v(G),de),this.onResponse({type:ue[0],id:ue[1],data:de})}}onResponse(z){if(z.type===200){this.state=m.Idle,this._onDidInitialize.fire();return}this.handlers.get(z.id)?.(z)}get onDidInitializePromise(){return p.Event.toPromise(this.onDidInitialize)}whenInitialized(){return this.state===m.Idle?Promise.resolve():this.onDidInitializePromise}dispose(){this.isDisposed=!0,this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,C.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}_e([k.memoize],S.prototype,"onDidInitializePromise",null),e.ChannelClient=S;class A{constructor(z){this.channels=new Map,this._connections=new Set,this._onDidAddConnection=new p.Emitter,this.onDidAddConnection=this._onDidAddConnection.event,this._onDidRemoveConnection=new p.Emitter,this.onDidRemoveConnection=this._onDidRemoveConnection.event,z(({protocol:X,onDidClientDisconnect:ue})=>{p.Event.once(X.onMessage)(G=>{const se=new g(G),O=r(se),F=new l(X,O),K=new S(X);this.channels.forEach((he,te)=>F.registerChannel(te,he));const re={channelServer:F,channelClient:K,ctx:O};this._connections.add(re),this._onDidAddConnection.fire(re),ue(()=>{F.dispose(),K.dispose(),this._connections.delete(re),this._onDidRemoveConnection.fire(re)})})})}get connections(){const z=[];return this._connections.forEach(X=>z.push(X)),z}getChannel(z,X){const ue=this;return{call(de,G,se){let O;if((0,w.isFunction)(X)){const K=(0,b.getRandomElement)(ue.connections.filter(X));O=K?Promise.resolve(K):p.Event.toPromise(p.Event.filter(ue.onDidAddConnection,X))}else O=X.routeCall(ue,de,G);const F=O.then(K=>K.channelClient.getChannel(z));return W(F).call(de,G,se)},listen(de,G){if((0,w.isFunction)(X))return ue.getMulticastEvent(z,X,de,G);const se=X.routeEvent(ue,de,G).then(O=>O.channelClient.getChannel(z));return W(se).listen(de,G)}}}getMulticastEvent(z,X,ue,de){const G=this;let se=new C.DisposableStore;const O=new p.Emitter({onFirstListenerAdd:()=>{se=new C.DisposableStore;const F=new p.EventMultiplexer,K=new Map,re=te=>{const Z=te.channelClient.getChannel(z).listen(ue,de),ae=F.add(Z);K.set(te,ae)},he=te=>{const Q=K.get(te);!Q||(Q.dispose(),K.delete(te))};G.connections.filter(X).forEach(re),p.Event.filter(G.onDidAddConnection,X)(re,void 0,se),G.onDidRemoveConnection(he,void 0,se),F.event(O.fire,O,se),se.add(F)},onLastListenerRemove:()=>{se.dispose()}});return O.event}registerChannel(z,X){this.channels.set(z,X),this._connections.forEach(ue=>{ue.channelServer.registerChannel(z,X)})}dispose(){this.channels.clear(),this._connections.clear(),this._onDidAddConnection.dispose(),this._onDidRemoveConnection.dispose()}}e.IPCServer=A;class ${constructor(z,X,ue=null){const de=new u;o(de,X),z.send(de.buffer),this.channelClient=new S(z,ue),this.channelServer=new l(z,X,ue)}getChannel(z){return this.channelClient.getChannel(z)}registerChannel(z,X){this.channelServer.registerChannel(z,X)}dispose(){this.channelClient.dispose(),this.channelServer.dispose()}}e.IPCClient=$;function W(U){return{call(z,X,ue){return U.then(de=>de.call(z,X,ue))},listen(z,X){const ue=new p.Relay;return U.then(de=>ue.input=de.listen(z,X)),ue.event}}}e.getDelayedChannel=W;function ee(U){let z=!1;return{call(X,ue,de){return z?U.call(X,ue,de):(0,t.timeout)(0).then(()=>z=!0).then(()=>U.call(X,ue,de))},listen(X,ue){if(z)return U.listen(X,ue);const de=new p.Relay;return(0,t.timeout)(0).then(()=>z=!0).then(()=>de.input=U.listen(X,ue)),de.event}}}e.getNextTickChannel=ee;class L{constructor(z){this.fn=z}routeCall(z){return this.route(z)}routeEvent(z){return this.route(z)}async route(z){for(const X of z.connections)if(await Promise.resolve(this.fn(X.ctx)))return Promise.resolve(X);return await p.Event.toPromise(z.onDidAddConnection),await this.route(z)}}e.StaticRouter=L;var q;(function(U){function z(G,se){const O=G,F=se&&se.disableMarshalling,K=new Map;for(const re in O)ue(re)&&K.set(re,p.Event.buffer(O[re],!0));return new class{listen(re,he,te){const Q=K.get(he);if(Q)return Q;if(de(he)){const Z=O[he];if(typeof Z=="function")return Z.call(O,te)}throw new Error(`Event not found: ${he}`)}call(re,he,te){const Q=O[he];if(typeof Q=="function"){if(!F&&Array.isArray(te))for(let Z=0;Z<te.length;Z++)te[Z]=(0,T.revive)(te[Z]);return Q.apply(O,te)}throw new Error(`Method not found: ${he}`)}}}U.fromService=z;function X(G,se){const O=se&&se.disableMarshalling;return new Proxy({},{get(F,K){if(typeof K=="string")return se?.properties?.has(K)?se.properties.get(K):de(K)?function(re){return G.listen(K,re)}:ue(K)?G.listen(K):async function(...re){let he;se&&!(0,w.isUndefinedOrNull)(se.context)?he=[se.context,...re]:he=re;const te=await G.call(K,he);return O?te:(0,T.revive)(te)};throw new Error(`Property not found: ${String(K)}`)}})}U.toService=X;function ue(G){return G[0]==="o"&&G[1]==="n"&&R.isUpperAsciiLetter(G.charCodeAt(2))}function de(G){return/^onDynamic/.test(G)&&R.isUpperAsciiLetter(G.charCodeAt(9))}})(q=e.ProxyChannel||(e.ProxyChannel={}));const ne=[["#2977B1","#FC802D","#34A13A","#D3282F","#9366BA"],["#8B564C","#E177C0","#7F7F7F","#BBBE3D","#2EBECD"]];function x(U){if(Array.isArray(U))return U;if(U&&typeof U=="object"&&typeof U.toString=="function"){const z=U.toString();if(z!=="[object Object]")return z}return U}function fe(U){return Array.isArray(U)?U.map(x):x(U)}function M(U,z,X,ue,de,G,se){se=fe(se);const O=ne[de],F=O[ue%O.length];let K=[`%c[${U}]%c[${String(z).padStart(7," ")}]%c[len: ${String(X).padStart(5," ")}]%c${String(ue).padStart(5," ")} - ${G}`,"color: darkgreen","color: grey","color: grey",`color: ${F}`];/\($/.test(G)?(K=K.concat(se),K.push(")")):K.push(se),console.log.apply(console,K)}e.logWithColors=M;class B{constructor(z,X){this._outgoingPrefix=z,this._incomingPrefix=X,this._totalIncoming=0,this._totalOutgoing=0}logOutgoing(z,X,ue,de,G){this._totalOutgoing+=z,M(this._outgoingPrefix,this._totalOutgoing,z,X,ue,de,G)}logIncoming(z,X,ue,de,G){this._totalIncoming+=z,M(this._incomingPrefix,this._totalIncoming,z,X,ue,de,G)}}e.IPCLogger=B}),define(ve[92],we([0,1,15,7,2,44,3]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PersistentProtocol=e.BufferedEmitter=e.Client=e.Protocol=e.ProtocolConstants=e.ChunkStream=e.SocketCloseEventType=e.SocketDiagnostics=e.SocketDiagnosticsEventType=void 0;var y;(function(o){o.Created="created",o.Read="read",o.Write="write",o.Open="open",o.Error="error",o.Close="close",o.BrowserWebSocketBlobReceived="browserWebSocketBlobReceived",o.NodeEndReceived="nodeEndReceived",o.NodeEndSent="nodeEndSent",o.NodeDrainBegin="nodeDrainBegin",o.NodeDrainEnd="nodeDrainEnd",o.zlibInflateError="zlibInflateError",o.zlibInflateData="zlibInflateData",o.zlibInflateInitialWrite="zlibInflateInitialWrite",o.zlibInflateInitialFlushFired="zlibInflateInitialFlushFired",o.zlibInflateWrite="zlibInflateWrite",o.zlibInflateFlushFired="zlibInflateFlushFired",o.zlibDeflateError="zlibDeflateError",o.zlibDeflateData="zlibDeflateData",o.zlibDeflateWrite="zlibDeflateWrite",o.zlibDeflateFlushFired="zlibDeflateFlushFired",o.WebSocketNodeSocketWrite="webSocketNodeSocketWrite",o.WebSocketNodeSocketPeekedHeader="webSocketNodeSocketPeekedHeader",o.WebSocketNodeSocketReadHeader="webSocketNodeSocketReadHeader",o.WebSocketNodeSocketReadData="webSocketNodeSocketReadData",o.WebSocketNodeSocketUnmaskedData="webSocketNodeSocketUnmaskedData",o.WebSocketNodeSocketDrainBegin="webSocketNodeSocketDrainBegin",o.WebSocketNodeSocketDrainEnd="webSocketNodeSocketDrainEnd",o.ProtocolHeaderRead="protocolHeaderRead",o.ProtocolMessageRead="protocolMessageRead",o.ProtocolHeaderWrite="protocolHeaderWrite",o.ProtocolMessageWrite="protocolMessageWrite",o.ProtocolWrite="protocolWrite"})(y=e.SocketDiagnosticsEventType||(e.SocketDiagnosticsEventType={}));var p;(function(o){o.enableDiagnostics=!1,o.records=[];const r=new WeakMap;let l=0;function h(A,$){if(!r.has(A)){const W=String(++l);r.set(A,W)}return r.get(A)}function S(A,$,W,ee){if(!o.enableDiagnostics)return;const L=h(A,$);if(ee instanceof b.VSBuffer||ee instanceof Uint8Array||ee instanceof ArrayBuffer||ArrayBuffer.isView(ee)){const q=b.VSBuffer.alloc(ee.byteLength);q.set(ee),o.records.push({timestamp:Date.now(),id:L,label:$,type:W,buff:q})}else o.records.push({timestamp:Date.now(),id:L,label:$,type:W,data:ee})}o.traceSocketEvent=S})(p=e.SocketDiagnostics||(e.SocketDiagnostics={}));var C;(function(o){o[o.NodeSocketCloseEvent=0]="NodeSocketCloseEvent",o[o.WebSocketCloseEvent=1]="WebSocketCloseEvent"})(C=e.SocketCloseEventType||(e.SocketCloseEventType={}));let T=null;function R(){return T||(T=b.VSBuffer.alloc(0)),T}class w{constructor(){this._chunks=[],this._totalLength=0}get byteLength(){return this._totalLength}acceptChunk(r){this._chunks.push(r),this._totalLength+=r.byteLength}read(r){return this._read(r,!0)}peek(r){return this._read(r,!1)}_read(r,l){if(r===0)return R();if(r>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===r){const $=this._chunks[0];return l&&(this._chunks.shift(),this._totalLength-=r),$}if(this._chunks[0].byteLength>r){const $=this._chunks[0].slice(0,r);return l&&(this._chunks[0]=this._chunks[0].slice(r),this._totalLength-=r),$}const h=b.VSBuffer.alloc(r);let S=0,A=0;for(;r>0;){const $=this._chunks[A];if($.byteLength>r){const W=$.slice(0,r);h.set(W,S),S+=r,l&&(this._chunks[A]=$.slice(r),this._totalLength-=r),r-=r}else h.set($,S),S+=$.byteLength,l?(this._chunks.shift(),this._totalLength-=$.byteLength):A++,r-=$.byteLength}return h}}e.ChunkStream=w;var E;(function(o){o[o.None=0]="None",o[o.Regular=1]="Regular",o[o.Control=2]="Control",o[o.Ack=3]="Ack",o[o.Disconnect=5]="Disconnect",o[o.ReplayRequest=6]="ReplayRequest",o[o.Pause=7]="Pause",o[o.Resume=8]="Resume"})(E||(E={}));function d(o){switch(o){case 0:return"None";case 1:return"Regular";case 2:return"Control";case 3:return"Ack";case 5:return"Disconnect";case 6:return"ReplayRequest";case 7:return"PauseWriting";case 8:return"ResumeWriting"}}var I;(function(o){o[o.HeaderLength=13]="HeaderLength",o[o.AcknowledgeTime=2e3]="AcknowledgeTime",o[o.TimeoutTime=2e4]="TimeoutTime",o[o.ReconnectionGraceTime=108e5]="ReconnectionGraceTime",o[o.ReconnectionShortGraceTime=3e5]="ReconnectionShortGraceTime"})(I=e.ProtocolConstants||(e.ProtocolConstants={}));class v{constructor(r,l,h,S){this.type=r,this.id=l,this.ack=h,this.data=S,this.writtenTime=0}get size(){return this.data.byteLength}}class m extends D.Disposable{constructor(r){super();this._onMessage=this._register(new t.Emitter),this.onMessage=this._onMessage.event,this._state={readHead:!0,readLen:13,messageType:0,id:0,ack:0},this._socket=r,this._isDisposed=!1,this._incomingData=new w,this._register(this._socket.onData(l=>this.acceptChunk(l))),this.lastReadTime=Date.now()}acceptChunk(r){if(!(!r||r.byteLength===0))for(this.lastReadTime=Date.now(),this._incomingData.acceptChunk(r);this._incomingData.byteLength>=this._state.readLen;){const l=this._incomingData.read(this._state.readLen);if(this._state.readHead)this._state.readHead=!1,this._state.readLen=l.readUInt32BE(9),this._state.messageType=l.readUInt8(0),this._state.id=l.readUInt32BE(1),this._state.ack=l.readUInt32BE(5),this._socket.traceSocketEvent("protocolHeaderRead",{messageType:d(this._state.messageType),id:this._state.id,ack:this._state.ack,messageSize:this._state.readLen});else{const h=this._state.messageType,S=this._state.id,A=this._state.ack;if(this._state.readHead=!0,this._state.readLen=13,this._state.messageType=0,this._state.id=0,this._state.ack=0,this._socket.traceSocketEvent("protocolMessageRead",l),this._onMessage.fire(new v(h,S,A,l)),this._isDisposed)break}}}readEntireBuffer(){return this._incomingData.read(this._incomingData.byteLength)}dispose(){this._isDisposed=!0,super.dispose()}}class g{constructor(r){this._writeNowTimeout=null,this._isDisposed=!1,this._isPaused=!1,this._socket=r,this._data=[],this._totalLength=0,this.lastWriteTime=0}dispose(){try{this.flush()}catch{}this._isDisposed=!0}drain(){return this.flush(),this._socket.drain()}flush(){this._writeNow()}pause(){this._isPaused=!0}resume(){this._isPaused=!1,this._scheduleWriting()}write(r){if(this._isDisposed)return;r.writtenTime=Date.now(),this.lastWriteTime=Date.now();const l=b.VSBuffer.alloc(13);l.writeUInt8(r.type,0),l.writeUInt32BE(r.id,1),l.writeUInt32BE(r.ack,5),l.writeUInt32BE(r.data.byteLength,9),this._socket.traceSocketEvent("protocolHeaderWrite",{messageType:d(r.type),id:r.id,ack:r.ack,messageSize:r.data.byteLength}),this._socket.traceSocketEvent("protocolMessageWrite",r.data),this._writeSoon(l,r.data)}_bufferAdd(r,l){const h=this._totalLength===0;return this._data.push(r,l),this._totalLength+=r.byteLength+l.byteLength,h}_bufferTake(){const r=b.VSBuffer.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,r}_writeSoon(r,l){this._bufferAdd(r,l)&&this._scheduleWriting()}_scheduleWriting(){this._writeNowTimeout||(this._writeNowTimeout=setTimeout(()=>{this._writeNowTimeout=null,this._writeNow()}))}_writeNow(){if(this._totalLength===0||this._isPaused)return;const r=this._bufferTake();this._socket.traceSocketEvent("protocolWrite",{byteLength:r.byteLength}),this._socket.write(r)}}class u extends D.Disposable{constructor(r){super();this._onMessage=new t.Emitter,this.onMessage=this._onMessage.event,this._onDidDispose=new t.Emitter,this.onDidDispose=this._onDidDispose.event,this._socket=r,this._socketWriter=this._register(new g(this._socket)),this._socketReader=this._register(new m(this._socket)),this._register(this._socketReader.onMessage(l=>{l.type===1&&this._onMessage.fire(l.data)})),this._register(this._socket.onClose(()=>this._onDidDispose.fire()))}drain(){return this._socketWriter.drain()}getSocket(){return this._socket}sendDisconnect(){}send(r){this._socketWriter.write(new v(1,0,0,r))}}e.Protocol=u;class c extends P.IPCClient{constructor(r,l,h=null){super(r,l,h);this.protocol=r}static fromSocket(r,l){return new c(new u(r),l)}get onDidDispose(){return this.protocol.onDidDispose}dispose(){super.dispose();const r=this.protocol.getSocket();this.protocol.sendDisconnect(),this.protocol.dispose(),r.end()}}e.Client=c;class f{constructor(){this._hasListeners=!1,this._isDeliveringMessages=!1,this._bufferedMessages=[],this._emitter=new t.Emitter({onFirstListenerAdd:()=>{this._hasListeners=!0,queueMicrotask(()=>this._deliverMessages())},onLastListenerRemove:()=>{this._hasListeners=!1}}),this.event=this._emitter.event}_deliverMessages(){if(!this._isDeliveringMessages){for(this._isDeliveringMessages=!0;this._hasListeners&&this._bufferedMessages.length>0;)this._emitter.fire(this._bufferedMessages.shift());this._isDeliveringMessages=!1}}fire(r){this._hasListeners?this._bufferedMessages.length>0?this._bufferedMessages.push(r):this._emitter.fire(r):this._bufferedMessages.push(r)}flushBuffer(){this._bufferedMessages=[]}}e.BufferedEmitter=f;class i{constructor(r){this.data=r,this.next=null}}class s{constructor(){this._first=null,this._last=null}peek(){return this._first?this._first.data:null}toArray(){const r=[];let l=0,h=this._first;for(;h;)r[l++]=h.data,h=h.next;return r}pop(){if(!!this._first){if(this._first===this._last){this._first=null,this._last=null;return}this._first=this._first.next}}push(r){const l=new i(r);if(!this._first){this._first=l,this._last=l;return}this._last.next=l,this._last=l}}class n{constructor(){this.lastRuns=[];const r=Date.now();for(let l=0;l<n._HISTORY_LENGTH;l++)this.lastRuns[l]=r-1e3*l;setInterval(()=>{for(let l=n._HISTORY_LENGTH;l>=1;l--)this.lastRuns[l]=this.lastRuns[l-1];this.lastRuns[0]=Date.now()},1e3)}static getInstance(){return n._INSTANCE||(n._INSTANCE=new n),n._INSTANCE}load(){const r=Date.now(),l=(1+n._HISTORY_LENGTH)*1e3;let h=0;for(let S=0;S<n._HISTORY_LENGTH;S++)r-this.lastRuns[S]<=l&&h++;return 1-h/n._HISTORY_LENGTH}hasHighLoad(){return this.load()>=.5}}n._HISTORY_LENGTH=10,n._INSTANCE=null;class a{constructor(r,l=null,h=n.getInstance()){if(this._onControlMessage=new f,this.onControlMessage=this._onControlMessage.event,this._onMessage=new f,this.onMessage=this._onMessage.event,this._onDidDispose=new f,this.onDidDispose=this._onDidDispose.event,this._onSocketClose=new f,this.onSocketClose=this._onSocketClose.event,this._onSocketTimeout=new f,this.onSocketTimeout=this._onSocketTimeout.event,this._loadEstimator=h,this._isReconnecting=!1,this._outgoingUnackMsg=new s,this._outgoingMsgId=0,this._outgoingAckId=0,this._outgoingAckTimeout=null,this._incomingMsgId=0,this._incomingAckId=0,this._incomingMsgLastTime=0,this._incomingAckTimeout=null,this._lastReplayRequestTime=0,this._lastSocketTimeoutTime=Date.now(),this._socketDisposables=[],this._socket=r,this._socketWriter=new g(this._socket),this._socketDisposables.push(this._socketWriter),this._socketReader=new m(this._socket),this._socketDisposables.push(this._socketReader),k.isWeb){const S=setInterval(()=>{const A=new v(0,0,0,R());this._socketWriter.write(A)},45e3);this._socketDisposables.push({dispose:()=>{clearInterval(S)}})}this._socketDisposables.push(this._socketReader.onMessage(S=>this._receiveMessage(S))),this._socketDisposables.push(this._socket.onClose(S=>this._onSocketClose.fire(S))),l&&this._socketReader.acceptChunk(l)}get unacknowledgedCount(){return this._outgoingMsgId-this._outgoingAckId}dispose(){this._outgoingAckTimeout&&(clearTimeout(this._outgoingAckTimeout),this._outgoingAckTimeout=null),this._incomingAckTimeout&&(clearTimeout(this._incomingAckTimeout),this._incomingAckTimeout=null),this._socketDisposables=(0,D.dispose)(this._socketDisposables)}drain(){return this._socketWriter.drain()}sendDisconnect(){const r=new v(5,0,0,R());this._socketWriter.write(r),this._socketWriter.flush()}sendPause(){const r=new v(7,0,0,R());this._socketWriter.write(r)}sendResume(){const r=new v(8,0,0,R());this._socketWriter.write(r)}pauseSocketWriting(){this._socketWriter.pause()}getSocket(){return this._socket}getMillisSinceLastIncomingData(){return Date.now()-this._socketReader.lastReadTime}beginAcceptReconnection(r,l){this._isReconnecting=!0,this._socketDisposables=(0,D.dispose)(this._socketDisposables),this._onControlMessage.flushBuffer(),this._onSocketClose.flushBuffer(),this._onSocketTimeout.flushBuffer(),this._socket.dispose(),this._lastReplayRequestTime=0,this._lastSocketTimeoutTime=Date.now(),this._socket=r,this._socketWriter=new g(this._socket),this._socketDisposables.push(this._socketWriter),this._socketReader=new m(this._socket),this._socketDisposables.push(this._socketReader),this._socketDisposables.push(this._socketReader.onMessage(h=>this._receiveMessage(h))),this._socketDisposables.push(this._socket.onClose(h=>this._onSocketClose.fire(h))),this._socketReader.acceptChunk(l)}endAcceptReconnection(){this._isReconnecting=!1,this._incomingAckId=this._incomingMsgId;const r=new v(3,0,this._incomingAckId,R());this._socketWriter.write(r);const l=this._outgoingUnackMsg.toArray();for(let h=0,S=l.length;h<S;h++)this._socketWriter.write(l[h]);this._recvAckCheck()}acceptDisconnect(){this._onDidDispose.fire()}_receiveMessage(r){if(r.ack>this._outgoingAckId){this._outgoingAckId=r.ack;do{const l=this._outgoingUnackMsg.peek();if(l&&l.id<=r.ack)this._outgoingUnackMsg.pop();else break}while(!0)}switch(r.type){case 0:break;case 1:{if(r.id>this._incomingMsgId)if(r.id!==this._incomingMsgId+1){const l=Date.now();l-this._lastReplayRequestTime>1e4&&(this._lastReplayRequestTime=l,this._socketWriter.write(new v(6,0,0,R())))}else this._incomingMsgId=r.id,this._incomingMsgLastTime=Date.now(),this._sendAckCheck(),this._onMessage.fire(r.data);break}case 2:{this._onControlMessage.fire(r.data);break}case 3:break;case 5:{this._onDidDispose.fire();break}case 6:{const l=this._outgoingUnackMsg.toArray();for(let h=0,S=l.length;h<S;h++)this._socketWriter.write(l[h]);this._recvAckCheck();break}case 7:{this._socketWriter.pause();break}case 8:{this._socketWriter.resume();break}}}readEntireBuffer(){return this._socketReader.readEntireBuffer()}flush(){this._socketWriter.flush()}send(r){const l=++this._outgoingMsgId;this._incomingAckId=this._incomingMsgId;const h=new v(1,l,this._incomingAckId,r);this._outgoingUnackMsg.push(h),this._isReconnecting||(this._socketWriter.write(h),this._recvAckCheck())}sendControl(r){const l=new v(2,0,0,r);this._socketWriter.write(l)}_sendAckCheck(){if(this._incomingMsgId<=this._incomingAckId||this._incomingAckTimeout)return;const r=Date.now()-this._incomingMsgLastTime;if(r>=2e3){this._sendAck();return}this._incomingAckTimeout=setTimeout(()=>{this._incomingAckTimeout=null,this._sendAckCheck()},2e3-r+5)}_recvAckCheck(){if(this._outgoingMsgId<=this._outgoingAckId||this._outgoingAckTimeout||this._isReconnecting)return;const r=this._outgoingUnackMsg.peek(),l=Date.now()-r.writtenTime,h=Date.now()-this._socketReader.lastReadTime,S=Date.now()-this._lastSocketTimeoutTime;if(l>=2e4&&h>=2e4&&S>=2e4&&!this._loadEstimator.hasHighLoad()){this._lastSocketTimeoutTime=Date.now(),this._onSocketTimeout.fire(void 0);return}const A=Math.max(2e4-l,2e4-h,2e4-S,500);this._outgoingAckTimeout=setTimeout(()=>{this._outgoingAckTimeout=null,this._recvAckCheck()},A)}_sendAck(){if(this._incomingMsgId<=this._incomingAckId)return;this._incomingAckId=this._incomingMsgId;const r=new v(3,0,this._incomingAckId,R());this._socketWriter.write(r)}}e.PersistentProtocol=a}),define(ve[57],we([0,1,15,11,7,2,6,3,23,44,92]),function(oe,e,b,t,D,P,k,y,p,C,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.connect=e.serve=e.Server=e.createStaticIPCHandle=e.createRandomIPCHandle=e.XDG_RUNTIME_DIR=e.WebSocketNodeSocket=e.NodeSocket=void 0;function R(){return{crypto:oe.__$__nodeRequire("crypto"),zlib:oe.__$__nodeRequire("zlib"),net:oe.__$__nodeRequire("net"),os:oe.__$__nodeRequire("os")}}class w{constructor(l,h=""){this.debugLabel=h,this.socket=l,this.traceSocketEvent("created",{type:"NodeSocket"}),this._errorListener=S=>{if(this.traceSocketEvent("error",{code:S?.code,message:S?.message}),S){if(S.code==="EPIPE")return;(0,t.onUnexpectedError)(S)}},this.socket.on("error",this._errorListener)}traceSocketEvent(l,h){T.SocketDiagnostics.traceSocketEvent(this.socket,this.debugLabel,l,h)}dispose(){this.socket.off("error",this._errorListener),this.socket.destroy()}onData(l){const h=S=>{this.traceSocketEvent("read",S),l(b.VSBuffer.wrap(S))};return this.socket.on("data",h),{dispose:()=>this.socket.off("data",h)}}onClose(l){const h=S=>{this.traceSocketEvent("close",{hadError:S}),l({type:0,hadError:S,error:void 0})};return this.socket.on("close",h),{dispose:()=>this.socket.off("close",h)}}onEnd(l){const h=()=>{this.traceSocketEvent("nodeEndReceived"),l()};return this.socket.on("end",h),{dispose:()=>this.socket.off("end",h)}}write(l){if(!this.socket.destroyed)try{this.traceSocketEvent("write",l),this.socket.write(l.buffer,h=>{if(h){if(h.code==="EPIPE")return;(0,t.onUnexpectedError)(h)}})}catch(h){if(h.code==="EPIPE")return;(0,t.onUnexpectedError)(h)}}end(){this.traceSocketEvent("nodeEndSent"),this.socket.end()}drain(){return this.traceSocketEvent("nodeDrainBegin"),new Promise((l,h)=>{if(this.socket.bufferSize===0){this.traceSocketEvent("nodeDrainEnd"),l();return}const S=()=>{this.socket.off("close",S),this.socket.off("end",S),this.socket.off("error",S),this.socket.off("timeout",S),this.socket.off("drain",S),this.traceSocketEvent("nodeDrainEnd"),l()};this.socket.on("close",S),this.socket.on("end",S),this.socket.on("error",S),this.socket.on("timeout",S),this.socket.on("drain",S)})}}e.NodeSocket=w;var E;(function(r){r[r.MinHeaderByteSize=2]="MinHeaderByteSize"})(E||(E={}));var d;(function(r){r[r.PeekHeader=1]="PeekHeader",r[r.ReadHeader=2]="ReadHeader",r[r.ReadBody=3]="ReadBody",r[r.Fin=4]="Fin"})(d||(d={}));class I extends P.Disposable{constructor(l,h,S,A){super();this._onData=this._register(new D.Emitter),this._onClose=this._register(new D.Emitter),this._isEnded=!1,this._state={state:1,readLen:2,fin:0,compressed:!1,firstFrameOfMessage:!0,mask:0},this.socket=l,this.traceSocketEvent("created",{type:"WebSocketNodeSocket",permessageDeflate:h,inflateBytesLength:S?.byteLength||0,recordInflateBytes:A}),this._flowManager=this._register(new v(this,h,S,A,this._onData,($,W)=>this._write($,W))),this._register(this._flowManager.onError($=>{console.error($),(0,t.onUnexpectedError)($),this._onClose.fire({type:0,hadError:!0,error:$})})),this._incomingData=new T.ChunkStream,this._register(this.socket.onData($=>this._acceptChunk($))),this._register(this.socket.onClose($=>this._onClose.fire($)))}get permessageDeflate(){return this._flowManager.permessageDeflate}get recordedInflateBytes(){return this._flowManager.recordedInflateBytes}traceSocketEvent(l,h){this.socket.traceSocketEvent(l,h)}dispose(){this._flowManager.isProcessingWriteQueue()?this._register(this._flowManager.onDidFinishProcessingWriteQueue(()=>{this.dispose()})):(this.socket.dispose(),super.dispose())}onData(l){return this._onData.event(l)}onClose(l){return this._onClose.event(l)}onEnd(l){return this.socket.onEnd(l)}write(l){this._flowManager.writeMessage(l)}_write(l,h){if(this._isEnded)return;this.traceSocketEvent("webSocketNodeSocketWrite",l);let S=2;l.byteLength<126?S+=0:l.byteLength<2**16?S+=2:S+=8;const A=b.VSBuffer.alloc(S);if(h?A.writeUInt8(194,0):A.writeUInt8(130,0),l.byteLength<126)A.writeUInt8(l.byteLength,1);else if(l.byteLength<2**16){A.writeUInt8(126,1);let $=1;A.writeUInt8(l.byteLength>>>8&255,++$),A.writeUInt8(l.byteLength>>>0&255,++$)}else{A.writeUInt8(127,1);let $=1;A.writeUInt8(0,++$),A.writeUInt8(0,++$),A.writeUInt8(0,++$),A.writeUInt8(0,++$),A.writeUInt8(l.byteLength>>>24&255,++$),A.writeUInt8(l.byteLength>>>16&255,++$),A.writeUInt8(l.byteLength>>>8&255,++$),A.writeUInt8(l.byteLength>>>0&255,++$)}this.socket.write(b.VSBuffer.concat([A,l]))}end(){this._isEnded=!0,this.socket.end()}_acceptChunk(l){if(l.byteLength!==0){for(this._incomingData.acceptChunk(l);this._incomingData.byteLength>=this._state.readLen;)if(this._state.state===1){const h=this._incomingData.peek(this._state.readLen),S=h.readUInt8(0),A=(S&128)>>>7,$=(S&64)>>>6,W=h.readUInt8(1),ee=(W&128)>>>7,L=W&127;this._state.state=2,this._state.readLen=2+(ee?4:0)+(L===126?2:0)+(L===127?8:0),this._state.fin=A,this._state.firstFrameOfMessage&&(this._state.compressed=Boolean($)),this._state.firstFrameOfMessage=Boolean(A),this._state.mask=0,this.traceSocketEvent("webSocketNodeSocketPeekedHeader",{headerSize:this._state.readLen,compressed:this._state.compressed,fin:this._state.fin})}else if(this._state.state===2){const h=this._incomingData.read(this._state.readLen),S=h.readUInt8(1),A=(S&128)>>>7;let $=S&127,W=1;$===126?$=h.readUInt8(++W)*2**8+h.readUInt8(++W):$===127&&($=h.readUInt8(++W)*0+h.readUInt8(++W)*0+h.readUInt8(++W)*0+h.readUInt8(++W)*0+h.readUInt8(++W)*2**24+h.readUInt8(++W)*2**16+h.readUInt8(++W)*2**8+h.readUInt8(++W));let ee=0;A&&(ee=h.readUInt8(++W)*2**24+h.readUInt8(++W)*2**16+h.readUInt8(++W)*2**8+h.readUInt8(++W)),this._state.state=3,this._state.readLen=$,this._state.mask=ee,this.traceSocketEvent("webSocketNodeSocketPeekedHeader",{bodySize:this._state.readLen,compressed:this._state.compressed,fin:this._state.fin,mask:this._state.mask})}else if(this._state.state===3){const h=this._incomingData.read(this._state.readLen);this.traceSocketEvent("webSocketNodeSocketReadData",h),u(h,this._state.mask),this.traceSocketEvent("webSocketNodeSocketUnmaskedData",h),this._state.state=1,this._state.readLen=2,this._state.mask=0,this._flowManager.acceptFrame(h,this._state.compressed,!!this._state.fin)}}}async drain(){this.traceSocketEvent("webSocketNodeSocketDrainBegin"),this._flowManager.isProcessingWriteQueue()&&await D.Event.toPromise(this._flowManager.onDidFinishProcessingWriteQueue),await this.socket.drain(),this.traceSocketEvent("webSocketNodeSocketDrainEnd")}}e.WebSocketNodeSocket=I;class v extends P.Disposable{constructor(l,h,S,A,$,W){super();this._tracer=l,this._onData=$,this._writeFn=W,this._onError=this._register(new D.Emitter),this.onError=this._onError.event,this._writeQueue=[],this._readQueue=[],this._onDidFinishProcessingWriteQueue=this._register(new D.Emitter),this.onDidFinishProcessingWriteQueue=this._onDidFinishProcessingWriteQueue.event,this._isProcessingWriteQueue=!1,this._isProcessingReadQueue=!1,h?(this._zlibInflateStream=this._register(new m(this._tracer,A,S,{windowBits:15})),this._zlibDeflateStream=this._register(new g(this._tracer,{windowBits:15})),this._register(this._zlibInflateStream.onError(ee=>this._onError.fire(ee))),this._register(this._zlibDeflateStream.onError(ee=>this._onError.fire(ee)))):(this._zlibInflateStream=null,this._zlibDeflateStream=null)}get permessageDeflate(){return Boolean(this._zlibInflateStream&&this._zlibDeflateStream)}get recordedInflateBytes(){return this._zlibInflateStream?this._zlibInflateStream.recordedInflateBytes:b.VSBuffer.alloc(0)}writeMessage(l){this._writeQueue.push(l),this._processWriteQueue()}async _processWriteQueue(){if(!this._isProcessingWriteQueue){for(this._isProcessingWriteQueue=!0;this._writeQueue.length>0;){const l=this._writeQueue.shift();if(this._zlibDeflateStream){const h=await this._deflateMessage(this._zlibDeflateStream,l);this._writeFn(h,!0)}else this._writeFn(l,!1)}this._isProcessingWriteQueue=!1,this._onDidFinishProcessingWriteQueue.fire()}}isProcessingWriteQueue(){return this._isProcessingWriteQueue}_deflateMessage(l,h){return new Promise((S,A)=>{l.write(h),l.flush($=>S($))})}acceptFrame(l,h,S){this._readQueue.push({data:l,isCompressed:h,isLastFrameOfMessage:S}),this._processReadQueue()}async _processReadQueue(){if(!this._isProcessingReadQueue){for(this._isProcessingReadQueue=!0;this._readQueue.length>0;){const l=this._readQueue.shift();if(this._zlibInflateStream&&l.isCompressed){const h=await this._inflateFrame(this._zlibInflateStream,l.data,l.isLastFrameOfMessage);this._onData.fire(h)}else this._onData.fire(l.data)}this._isProcessingReadQueue=!1}}_inflateFrame(l,h,S){return new Promise((A,$)=>{l.write(h),S&&l.write(b.VSBuffer.fromByteArray([0,0,255,255])),l.flush(W=>A(W))})}}class m extends P.Disposable{constructor(l,h,S,A){super();this._tracer=l,this._recordInflateBytes=h,this._onError=this._register(new D.Emitter),this.onError=this._onError.event,this._recordedInflateBytes=[],this._pendingInflateData=[],this._zlibInflate=R().zlib.createInflateRaw(A),this._zlibInflate.on("error",$=>{this._tracer.traceSocketEvent("zlibInflateError",{message:$?.message,code:$?.code}),this._onError.fire($)}),this._zlibInflate.on("data",$=>{this._tracer.traceSocketEvent("zlibInflateData",$),this._pendingInflateData.push(b.VSBuffer.wrap($))}),S&&(this._tracer.traceSocketEvent("zlibInflateInitialWrite",S.buffer),this._zlibInflate.write(S.buffer),this._zlibInflate.flush(()=>{this._tracer.traceSocketEvent("zlibInflateInitialFlushFired"),this._pendingInflateData.length=0}))}get recordedInflateBytes(){return this._recordInflateBytes?b.VSBuffer.concat(this._recordedInflateBytes):b.VSBuffer.alloc(0)}write(l){this._recordInflateBytes&&this._recordedInflateBytes.push(l.clone()),this._tracer.traceSocketEvent("zlibInflateWrite",l),this._zlibInflate.write(l.buffer)}flush(l){this._zlibInflate.flush(()=>{this._tracer.traceSocketEvent("zlibInflateFlushFired");const h=b.VSBuffer.concat(this._pendingInflateData);this._pendingInflateData.length=0,l(h)})}}class g extends P.Disposable{constructor(l,h){super();this._tracer=l,this._onError=this._register(new D.Emitter),this.onError=this._onError.event,this._pendingDeflateData=[],this._zlibDeflate=R().zlib.createDeflateRaw({windowBits:15}),this._zlibDeflate.on("error",S=>{this._tracer.traceSocketEvent("zlibDeflateError",{message:S?.message,code:S?.code}),this._onError.fire(S)}),this._zlibDeflate.on("data",S=>{this._tracer.traceSocketEvent("zlibDeflateData",S),this._pendingDeflateData.push(b.VSBuffer.wrap(S))})}write(l){this._tracer.traceSocketEvent("zlibDeflateWrite",l.buffer),this._zlibDeflate.write(l.buffer)}flush(l){this._zlibDeflate.flush(2,()=>{this._tracer.traceSocketEvent("zlibDeflateFlushFired");let h=b.VSBuffer.concat(this._pendingDeflateData);this._pendingDeflateData.length=0,h=h.slice(0,h.byteLength-4),l(h)})}}function u(r,l){if(l===0)return;const h=r.byteLength>>>2;for(let L=0;L<h;L++){const q=r.readUInt32BE(L*4);r.writeUInt32BE(q^l,L*4)}const S=h*4,A=r.byteLength-S,$=l>>>24&255,W=l>>>16&255,ee=l>>>8&255;A>=1&&r.writeUInt8(r.readUInt8(S)^$,S),A>=2&&r.writeUInt8(r.readUInt8(S+1)^W,S+1),A>=3&&r.writeUInt8(r.readUInt8(S+2)^ee,S+2)}e.XDG_RUNTIME_DIR=typeof process!="undefined"?process.env.XDG_RUNTIME_DIR:void 0;const c={[2]:107,[1]:103};function f(){const r=(0,p.generateUuid)();if(process.platform==="win32")return`\\\\.\\pipe\\vscode-ipc-${r}-sock`;let l;return e.XDG_RUNTIME_DIR?l=(0,k.join)(e.XDG_RUNTIME_DIR,`vscode-ipc-${r}.sock`):l=(0,k.join)(R().os.tmpdir(),`vscode-ipc-${r}.sock`),s(l),l}e.createRandomIPCHandle=f;function i(r,l,h){const S=R().crypto.createHash("md5").update(r).digest("hex");if(process.platform==="win32")return`\\\\.\\pipe\\${S}-${h}-${l}-sock`;let A;return e.XDG_RUNTIME_DIR&&!process.env.VSCODE_PORTABLE?A=(0,k.join)(e.XDG_RUNTIME_DIR,`vscode-${S.substr(0,8)}-${h}-${l}.sock`):A=(0,k.join)(r,`${h}-${l}.sock`),s(A),A}e.createStaticIPCHandle=i;function s(r){const l=c[y.platform];typeof l=="number"&&r.length>=l&&console.warn(`WARNING: IPC handle "${r}" is longer than ${l} chars, try a shorter --user-data-dir`)}class n extends C.IPCServer{constructor(l){super(n.toClientConnectionEvent(l));this.server=l}static toClientConnectionEvent(l){const h=D.Event.fromNodeEventEmitter(l,"connection");return D.Event.map(h,S=>({protocol:new T.Protocol(new w(S,"ipc-server-connection")),onDidClientDisconnect:D.Event.once(D.Event.fromNodeEventEmitter(S,"close"))}))}dispose(){super.dispose(),this.server&&(this.server.close(),this.server=null)}}e.Server=n;function a(r){return new Promise((l,h)=>{const S=R().net.createServer();S.on("error",h),S.listen(r,()=>{S.removeListener("error",h),l(new n(S))})})}e.serve=a;function o(r,l){return new Promise((h,S)=>{const A=R().net.createConnection(r,()=>{A.removeListener("error",S),h(T.Client.fromSocket(new w(A,`ipc-client${l}`),l))});A.once("error",S)})}e.connect=o}),define(ve[147],we([0,1,14,7,2,12]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryStorageDatabase=e.Storage=e.StorageState=e.isStorageItemsChangeEvent=e.StorageHint=void 0;var k;(function(R){R[R.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST"})(k=e.StorageHint||(e.StorageHint={}));function y(R){const w=R;return w?.changed instanceof Map||w?.deleted instanceof Set}e.isStorageItemsChangeEvent=y;var p;(function(R){R[R.None=0]="None",R[R.Initialized=1]="Initialized",R[R.Closed=2]="Closed"})(p=e.StorageState||(e.StorageState={}));class C extends D.Disposable{constructor(w,E=Object.create(null)){super();this.database=w,this.options=E,this._onDidChangeStorage=this._register(new t.Emitter),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=p.None,this.cache=new Map,this.flushDelayer=new b.ThrottledDelayer(C.DEFAULT_FLUSH_DELAY),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.pendingClose=void 0,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(w=>this.onDidChangeItemsExternal(w)))}onDidChangeItemsExternal(w){w.changed?.forEach((E,d)=>this.accept(d,E)),w.deleted?.forEach(E=>this.accept(E,void 0))}accept(w,E){if(this.state===p.Closed)return;let d=!1;(0,P.isUndefinedOrNull)(E)?d=this.cache.delete(w):this.cache.get(w)!==E&&(this.cache.set(w,E),d=!0),d&&this._onDidChangeStorage.fire(w)}get items(){return this.cache}get size(){return this.cache.size}async init(){this.state===p.None&&(this.state=p.Initialized,this.options.hint!==k.STORAGE_DOES_NOT_EXIST&&(this.cache=await this.database.getItems()))}get(w,E){const d=this.cache.get(w);return(0,P.isUndefinedOrNull)(d)?E:d}getBoolean(w,E){const d=this.get(w);return(0,P.isUndefinedOrNull)(d)?E:d==="true"}getNumber(w,E){const d=this.get(w);return(0,P.isUndefinedOrNull)(d)?E:parseInt(d,10)}async set(w,E){if(this.state===p.Closed)return;if((0,P.isUndefinedOrNull)(E))return this.delete(w);const d=String(E);if(this.cache.get(w)!==d)return this.cache.set(w,d),this.pendingInserts.set(w,d),this.pendingDeletes.delete(w),this._onDidChangeStorage.fire(w),this.doFlush()}async delete(w){if(!(this.state===p.Closed||!this.cache.delete(w)))return this.pendingDeletes.has(w)||this.pendingDeletes.add(w),this.pendingInserts.delete(w),this._onDidChangeStorage.fire(w),this.doFlush()}async close(){return this.pendingClose||(this.pendingClose=this.doClose()),this.pendingClose}async doClose(){this.state=p.Closed;try{await this.doFlush(0)}catch{}await this.database.close(()=>this.cache)}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const w={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(w).finally(()=>{if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)this.whenFlushedCallbacks.pop()?.()})}async flush(w){if(!!this.hasPending)return this.doFlush(w)}async doFlush(w){return this.flushDelayer.trigger(()=>this.flushPending(),w)}async whenFlushed(){if(!!this.hasPending)return new Promise(w=>this.whenFlushedCallbacks.push(w))}dispose(){this.flushDelayer.dispose(),super.dispose()}}e.Storage=C,C.DEFAULT_FLUSH_DELAY=100;class T{constructor(){this.onDidChangeItemsExternal=t.Event.None,this.items=new Map}async getItems(){return this.items}async updateItems(w){w.insert?.forEach((E,d)=>this.items.set(d,E)),w.delete?.forEach(E=>this.items.delete(E))}async close(){}}e.InMemoryStorageDatabase=T}),define(ve[93],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Position=void 0;class b{constructor(D,P){this.lineNumber=D,this.column=P}with(D=this.lineNumber,P=this.column){return D===this.lineNumber&&P===this.column?this:new b(D,P)}delta(D=0,P=0){return this.with(this.lineNumber+D,this.column+P)}equals(D){return b.equals(this,D)}static equals(D,P){return!D&&!P?!0:!!D&&!!P&&D.lineNumber===P.lineNumber&&D.column===P.column}isBefore(D){return b.isBefore(this,D)}static isBefore(D,P){return D.lineNumber<P.lineNumber?!0:P.lineNumber<D.lineNumber?!1:D.column<P.column}isBeforeOrEqual(D){return b.isBeforeOrEqual(this,D)}static isBeforeOrEqual(D,P){return D.lineNumber<P.lineNumber?!0:P.lineNumber<D.lineNumber?!1:D.column<=P.column}static compare(D,P){const k=D.lineNumber|0,y=P.lineNumber|0;if(k===y){const p=D.column|0,C=P.column|0;return p-C}return k-y}clone(){return new b(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(D){return new b(D.lineNumber,D.column)}static isIPosition(D){return D&&typeof D.lineNumber=="number"&&typeof D.column=="number"}}e.Position=b}),define(ve[49],we([0,1,93]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Range=void 0;class t{constructor(P,k,y,p){P>y||P===y&&k>p?(this.startLineNumber=y,this.startColumn=p,this.endLineNumber=P,this.endColumn=k):(this.startLineNumber=P,this.startColumn=k,this.endLineNumber=y,this.endColumn=p)}isEmpty(){return t.isEmpty(this)}static isEmpty(P){return P.startLineNumber===P.endLineNumber&&P.startColumn===P.endColumn}containsPosition(P){return t.containsPosition(this,P)}static containsPosition(P,k){return!(k.lineNumber<P.startLineNumber||k.lineNumber>P.endLineNumber||k.lineNumber===P.startLineNumber&&k.column<P.startColumn||k.lineNumber===P.endLineNumber&&k.column>P.endColumn)}static strictContainsPosition(P,k){return!(k.lineNumber<P.startLineNumber||k.lineNumber>P.endLineNumber||k.lineNumber===P.startLineNumber&&k.column<=P.startColumn||k.lineNumber===P.endLineNumber&&k.column>=P.endColumn)}containsRange(P){return t.containsRange(this,P)}static containsRange(P,k){return!(k.startLineNumber<P.startLineNumber||k.endLineNumber<P.startLineNumber||k.startLineNumber>P.endLineNumber||k.endLineNumber>P.endLineNumber||k.startLineNumber===P.startLineNumber&&k.startColumn<P.startColumn||k.endLineNumber===P.endLineNumber&&k.endColumn>P.endColumn)}strictContainsRange(P){return t.strictContainsRange(this,P)}static strictContainsRange(P,k){return!(k.startLineNumber<P.startLineNumber||k.endLineNumber<P.startLineNumber||k.startLineNumber>P.endLineNumber||k.endLineNumber>P.endLineNumber||k.startLineNumber===P.startLineNumber&&k.startColumn<=P.startColumn||k.endLineNumber===P.endLineNumber&&k.endColumn>=P.endColumn)}plusRange(P){return t.plusRange(this,P)}static plusRange(P,k){let y,p,C,T;return k.startLineNumber<P.startLineNumber?(y=k.startLineNumber,p=k.startColumn):k.startLineNumber===P.startLineNumber?(y=k.startLineNumber,p=Math.min(k.startColumn,P.startColumn)):(y=P.startLineNumber,p=P.startColumn),k.endLineNumber>P.endLineNumber?(C=k.endLineNumber,T=k.endColumn):k.endLineNumber===P.endLineNumber?(C=k.endLineNumber,T=Math.max(k.endColumn,P.endColumn)):(C=P.endLineNumber,T=P.endColumn),new t(y,p,C,T)}intersectRanges(P){return t.intersectRanges(this,P)}static intersectRanges(P,k){let y=P.startLineNumber,p=P.startColumn,C=P.endLineNumber,T=P.endColumn;const R=k.startLineNumber,w=k.startColumn,E=k.endLineNumber,d=k.endColumn;return y<R?(y=R,p=w):y===R&&(p=Math.max(p,w)),C>E?(C=E,T=d):C===E&&(T=Math.min(T,d)),y>C||y===C&&p>T?null:new t(y,p,C,T)}equalsRange(P){return t.equalsRange(this,P)}static equalsRange(P,k){return!!P&&!!k&&P.startLineNumber===k.startLineNumber&&P.startColumn===k.startColumn&&P.endLineNumber===k.endLineNumber&&P.endColumn===k.endColumn}getEndPosition(){return t.getEndPosition(this)}static getEndPosition(P){return new b.Position(P.endLineNumber,P.endColumn)}getStartPosition(){return t.getStartPosition(this)}static getStartPosition(P){return new b.Position(P.startLineNumber,P.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(P,k){return new t(this.startLineNumber,this.startColumn,P,k)}setStartPosition(P,k){return new t(P,k,this.endLineNumber,this.endColumn)}collapseToStart(){return t.collapseToStart(this)}static collapseToStart(P){return new t(P.startLineNumber,P.startColumn,P.startLineNumber,P.startColumn)}static fromPositions(P,k=P){return new t(P.lineNumber,P.column,k.lineNumber,k.column)}static lift(P){return P?new t(P.startLineNumber,P.startColumn,P.endLineNumber,P.endColumn):null}static isIRange(P){return P&&typeof P.startLineNumber=="number"&&typeof P.startColumn=="number"&&typeof P.endLineNumber=="number"&&typeof P.endColumn=="number"}static areIntersectingOrTouching(P,k){return!(P.endLineNumber<k.startLineNumber||P.endLineNumber===k.startLineNumber&&P.endColumn<k.startColumn||k.endLineNumber<P.startLineNumber||k.endLineNumber===P.startLineNumber&&k.endColumn<P.startColumn)}static areIntersecting(P,k){return!(P.endLineNumber<k.startLineNumber||P.endLineNumber===k.startLineNumber&&P.endColumn<=k.startColumn||k.endLineNumber<P.startLineNumber||k.endLineNumber===P.startLineNumber&&k.endColumn<=P.startColumn)}static compareRangesUsingStarts(P,k){if(P&&k){const C=P.startLineNumber|0,T=k.startLineNumber|0;if(C===T){const R=P.startColumn|0,w=k.startColumn|0;if(R===w){const E=P.endLineNumber|0,d=k.endLineNumber|0;if(E===d){const I=P.endColumn|0,v=k.endColumn|0;return I-v}return E-d}return R-w}return C-T}return(P?1:0)-(k?1:0)}static compareRangesUsingEnds(P,k){return P.endLineNumber===k.endLineNumber?P.endColumn===k.endColumn?P.startLineNumber===k.startLineNumber?P.startColumn-k.startColumn:P.startLineNumber-k.startLineNumber:P.endColumn-k.endColumn:P.endLineNumber-k.endLineNumber}static spansMultipleLines(P){return P.endLineNumber>P.startLineNumber}toJSON(){return this}}e.Range=t}),define(ve[148],we([0,1,7,2]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TokenizationRegistry=void 0;class D{constructor(){this._map=new Map,this._factories=new Map,this._onDidChange=new b.Emitter,this.onDidChange=this._onDidChange.event,this._colorMap=null}fire(y){this._onDidChange.fire({changedLanguages:y,changedColorMap:!1})}register(y,p){return this._map.set(y,p),this.fire([y]),(0,t.toDisposable)(()=>{this._map.get(y)===p&&(this._map.delete(y),this.fire([y]))})}registerFactory(y,p){this._factories.get(y)?.dispose();const C=new P(this,y,p);return this._factories.set(y,C),(0,t.toDisposable)(()=>{const T=this._factories.get(y);!T||T!==C||(this._factories.delete(y),T.dispose())})}async getOrCreate(y){const p=this.get(y);if(p)return p;const C=this._factories.get(y);return!C||C.isResolved?null:(await C.resolve(),this.get(y))}get(y){return this._map.get(y)||null}isResolved(y){if(this.get(y))return!0;const C=this._factories.get(y);return!!(!C||C.isResolved)}setColorMap(y){this._colorMap=y,this._onDidChange.fire({changedLanguages:Array.from(this._map.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}e.TokenizationRegistry=D;class P extends t.Disposable{constructor(y,p,C){super();this._registry=y,this._languageId=p,this._factory=C,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}get isResolved(){return this._isResolved}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const y=await Promise.resolve(this._factory.createTokenizationSupport());this._isResolved=!0,y&&!this._isDisposed&&this._register(this._registry.register(this._languageId,y))}}}),define(ve[149],we([0,1,41,4,49,148]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExternalUriOpenerPriority=e.TokenizationRegistry=e.InlayHintKind=e.CommentMode=e.CommentThreadState=e.CommentThreadCollapsibleState=e.Command=e.FoldingRangeKind=e.SymbolKinds=e.SymbolTag=e.SymbolKind=e.isLocationLink=e.DocumentHighlightKind=e.SignatureHelpTriggerKind=e.CodeActionTriggerType=e.InlineCompletionTriggerKind=e.CompletionTriggerKind=e.CompletionItemInsertTextRule=e.CompletionItemTag=e.CompletionItemKinds=e.CompletionItemKind=e.EncodedTokenizationResult=e.TokenizationResult=e.Token=void 0;class k{constructor(S,A,$){this._tokenBrand=void 0,this.offset=S,this.type=A,this.language=$}toString(){return"("+this.offset+", "+this.type+")"}}e.Token=k;class y{constructor(S,A){this._tokenizationResultBrand=void 0,this.tokens=S,this.endState=A}}e.TokenizationResult=y;class p{constructor(S,A){this._encodedTokenizationResultBrand=void 0,this.tokens=S,this.endState=A}}e.EncodedTokenizationResult=p;var C;(function(h){h[h.Method=0]="Method",h[h.Function=1]="Function",h[h.Constructor=2]="Constructor",h[h.Field=3]="Field",h[h.Variable=4]="Variable",h[h.Class=5]="Class",h[h.Struct=6]="Struct",h[h.Interface=7]="Interface",h[h.Module=8]="Module",h[h.Property=9]="Property",h[h.Event=10]="Event",h[h.Operator=11]="Operator",h[h.Unit=12]="Unit",h[h.Value=13]="Value",h[h.Constant=14]="Constant",h[h.Enum=15]="Enum",h[h.EnumMember=16]="EnumMember",h[h.Keyword=17]="Keyword",h[h.Text=18]="Text",h[h.Color=19]="Color",h[h.File=20]="File",h[h.Reference=21]="Reference",h[h.Customcolor=22]="Customcolor",h[h.Folder=23]="Folder",h[h.TypeParameter=24]="TypeParameter",h[h.User=25]="User",h[h.Issue=26]="Issue",h[h.Snippet=27]="Snippet"})(C=e.CompletionItemKind||(e.CompletionItemKind={}));var T;(function(h){const S=new Map;S.set(0,b.Codicon.symbolMethod),S.set(1,b.Codicon.symbolFunction),S.set(2,b.Codicon.symbolConstructor),S.set(3,b.Codicon.symbolField),S.set(4,b.Codicon.symbolVariable),S.set(5,b.Codicon.symbolClass),S.set(6,b.Codicon.symbolStruct),S.set(7,b.Codicon.symbolInterface),S.set(8,b.Codicon.symbolModule),S.set(9,b.Codicon.symbolProperty),S.set(10,b.Codicon.symbolEvent),S.set(11,b.Codicon.symbolOperator),S.set(12,b.Codicon.symbolUnit),S.set(13,b.Codicon.symbolValue),S.set(15,b.Codicon.symbolEnum),S.set(14,b.Codicon.symbolConstant),S.set(15,b.Codicon.symbolEnum),S.set(16,b.Codicon.symbolEnumMember),S.set(17,b.Codicon.symbolKeyword),S.set(27,b.Codicon.symbolSnippet),S.set(18,b.Codicon.symbolText),S.set(19,b.Codicon.symbolColor),S.set(20,b.Codicon.symbolFile),S.set(21,b.Codicon.symbolReference),S.set(22,b.Codicon.symbolCustomColor),S.set(23,b.Codicon.symbolFolder),S.set(24,b.Codicon.symbolTypeParameter),S.set(25,b.Codicon.account),S.set(26,b.Codicon.issues);function A(ee){let L=S.get(ee);return L||(console.info("No codicon found for CompletionItemKind "+ee),L=b.Codicon.symbolProperty),L}h.toIcon=A;const $=new Map;$.set("method",0),$.set("function",1),$.set("constructor",2),$.set("field",3),$.set("variable",4),$.set("class",5),$.set("struct",6),$.set("interface",7),$.set("module",8),$.set("property",9),$.set("event",10),$.set("operator",11),$.set("unit",12),$.set("value",13),$.set("constant",14),$.set("enum",15),$.set("enum-member",16),$.set("enumMember",16),$.set("keyword",17),$.set("snippet",27),$.set("text",18),$.set("color",19),$.set("file",20),$.set("reference",21),$.set("customcolor",22),$.set("folder",23),$.set("type-parameter",24),$.set("typeParameter",24),$.set("account",25),$.set("issue",26);function W(ee,L){let q=$.get(ee);return typeof q=="undefined"&&!L&&(q=9),q}h.fromString=W})(T=e.CompletionItemKinds||(e.CompletionItemKinds={}));var R;(function(h){h[h.Deprecated=1]="Deprecated"})(R=e.CompletionItemTag||(e.CompletionItemTag={}));var w;(function(h){h[h.KeepWhitespace=1]="KeepWhitespace",h[h.InsertAsSnippet=4]="InsertAsSnippet"})(w=e.CompletionItemInsertTextRule||(e.CompletionItemInsertTextRule={}));var E;(function(h){h[h.Invoke=0]="Invoke",h[h.TriggerCharacter=1]="TriggerCharacter",h[h.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(E=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var d;(function(h){h[h.Automatic=0]="Automatic",h[h.Explicit=1]="Explicit"})(d=e.InlineCompletionTriggerKind||(e.InlineCompletionTriggerKind={}));var I;(function(h){h[h.Invoke=1]="Invoke",h[h.Auto=2]="Auto"})(I=e.CodeActionTriggerType||(e.CodeActionTriggerType={}));var v;(function(h){h[h.Invoke=1]="Invoke",h[h.TriggerCharacter=2]="TriggerCharacter",h[h.ContentChange=3]="ContentChange"})(v=e.SignatureHelpTriggerKind||(e.SignatureHelpTriggerKind={}));var m;(function(h){h[h.Text=0]="Text",h[h.Read=1]="Read",h[h.Write=2]="Write"})(m=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));function g(h){return h&&t.URI.isUri(h.uri)&&D.Range.isIRange(h.range)&&(D.Range.isIRange(h.originSelectionRange)||D.Range.isIRange(h.targetSelectionRange))}e.isLocationLink=g;var u;(function(h){h[h.File=0]="File",h[h.Module=1]="Module",h[h.Namespace=2]="Namespace",h[h.Package=3]="Package",h[h.Class=4]="Class",h[h.Method=5]="Method",h[h.Property=6]="Property",h[h.Field=7]="Field",h[h.Constructor=8]="Constructor",h[h.Enum=9]="Enum",h[h.Interface=10]="Interface",h[h.Function=11]="Function",h[h.Variable=12]="Variable",h[h.Constant=13]="Constant",h[h.String=14]="String",h[h.Number=15]="Number",h[h.Boolean=16]="Boolean",h[h.Array=17]="Array",h[h.Object=18]="Object",h[h.Key=19]="Key",h[h.Null=20]="Null",h[h.EnumMember=21]="EnumMember",h[h.Struct=22]="Struct",h[h.Event=23]="Event",h[h.Operator=24]="Operator",h[h.TypeParameter=25]="TypeParameter"})(u=e.SymbolKind||(e.SymbolKind={}));var c;(function(h){h[h.Deprecated=1]="Deprecated"})(c=e.SymbolTag||(e.SymbolTag={}));var f;(function(h){const S=new Map;S.set(0,b.Codicon.symbolFile),S.set(1,b.Codicon.symbolModule),S.set(2,b.Codicon.symbolNamespace),S.set(3,b.Codicon.symbolPackage),S.set(4,b.Codicon.symbolClass),S.set(5,b.Codicon.symbolMethod),S.set(6,b.Codicon.symbolProperty),S.set(7,b.Codicon.symbolField),S.set(8,b.Codicon.symbolConstructor),S.set(9,b.Codicon.symbolEnum),S.set(10,b.Codicon.symbolInterface),S.set(11,b.Codicon.symbolFunction),S.set(12,b.Codicon.symbolVariable),S.set(13,b.Codicon.symbolConstant),S.set(14,b.Codicon.symbolString),S.set(15,b.Codicon.symbolNumber),S.set(16,b.Codicon.symbolBoolean),S.set(17,b.Codicon.symbolArray),S.set(18,b.Codicon.symbolObject),S.set(19,b.Codicon.symbolKey),S.set(20,b.Codicon.symbolNull),S.set(21,b.Codicon.symbolEnumMember),S.set(22,b.Codicon.symbolStruct),S.set(23,b.Codicon.symbolEvent),S.set(24,b.Codicon.symbolOperator),S.set(25,b.Codicon.symbolTypeParameter);function A($){let W=S.get($);return W||(console.info("No codicon found for SymbolKind "+$),W=b.Codicon.symbolProperty),W}h.toIcon=A})(f=e.SymbolKinds||(e.SymbolKinds={}));class i{constructor(S){this.value=S}}e.FoldingRangeKind=i,i.Comment=new i("comment"),i.Imports=new i("imports"),i.Region=new i("region");var s;(function(h){function S(A){return!A||typeof A!="object"?!1:typeof A.id=="string"&&typeof A.title=="string"}h.is=S})(s=e.Command||(e.Command={}));var n;(function(h){h[h.Collapsed=0]="Collapsed",h[h.Expanded=1]="Expanded"})(n=e.CommentThreadCollapsibleState||(e.CommentThreadCollapsibleState={}));var a;(function(h){h[h.Unresolved=0]="Unresolved",h[h.Resolved=1]="Resolved"})(a=e.CommentThreadState||(e.CommentThreadState={}));var o;(function(h){h[h.Editing=0]="Editing",h[h.Preview=1]="Preview"})(o=e.CommentMode||(e.CommentMode={}));var r;(function(h){h[h.Type=1]="Type",h[h.Parameter=2]="Parameter"})(r=e.InlayHintKind||(e.InlayHintKind={})),e.TokenizationRegistry=new P.TokenizationRegistry;var l;(function(h){h[h.None=0]="None",h[h.Option=1]="Option",h[h.Default=2]="Default",h[h.Preferred=3]="Preferred"})(l=e.ExternalUriOpenerPriority||(e.ExternalUriOpenerPriority={}))}),define(ve[150],we([9,10]),function(oe,e){return oe.create("vs/base/common/date",e)}),define(ve[151],we([0,1,150]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toLocalISOString=e.fromNow=void 0;const t=60,D=t*60,P=D*24,k=P*7,y=P*30,p=P*365;function C(R,w,E){typeof R!="number"&&(R=R.getTime());const d=Math.round((new Date().getTime()-R)/1e3);if(d<-30)return(0,b.localize)(0,null,C(new Date().getTime()+d*1e3,!1));if(d<30)return(0,b.localize)(1,null);let I;return d<t?(I=d,w?I===1?E?(0,b.localize)(2,null,I):(0,b.localize)(3,null,I):E?(0,b.localize)(4,null,I):(0,b.localize)(5,null,I):I===1?E?(0,b.localize)(6,null,I):(0,b.localize)(7,null,I):E?(0,b.localize)(8,null,I):(0,b.localize)(9,null,I)):d<D?(I=Math.floor(d/t),w?I===1?E?(0,b.localize)(10,null,I):(0,b.localize)(11,null,I):E?(0,b.localize)(12,null,I):(0,b.localize)(13,null,I):I===1?E?(0,b.localize)(14,null,I):(0,b.localize)(15,null,I):E?(0,b.localize)(16,null,I):(0,b.localize)(17,null,I)):d<P?(I=Math.floor(d/D),w?I===1?E?(0,b.localize)(18,null,I):(0,b.localize)(19,null,I):E?(0,b.localize)(20,null,I):(0,b.localize)(21,null,I):I===1?E?(0,b.localize)(22,null,I):(0,b.localize)(23,null,I):E?(0,b.localize)(24,null,I):(0,b.localize)(25,null,I)):d<k?(I=Math.floor(d/P),w?I===1?(0,b.localize)(26,null,I):(0,b.localize)(27,null,I):I===1?(0,b.localize)(28,null,I):(0,b.localize)(29,null,I)):d<y?(I=Math.floor(d/k),w?I===1?E?(0,b.localize)(30,null,I):(0,b.localize)(31,null,I):E?(0,b.localize)(32,null,I):(0,b.localize)(33,null,I):I===1?E?(0,b.localize)(34,null,I):(0,b.localize)(35,null,I):E?(0,b.localize)(36,null,I):(0,b.localize)(37,null,I)):d<p?(I=Math.floor(d/y),w?I===1?E?(0,b.localize)(38,null,I):(0,b.localize)(39,null,I):E?(0,b.localize)(40,null,I):(0,b.localize)(41,null,I):I===1?E?(0,b.localize)(42,null,I):(0,b.localize)(43,null,I):E?(0,b.localize)(44,null,I):(0,b.localize)(45,null,I)):(I=Math.floor(d/p),w?I===1?E?(0,b.localize)(46,null,I):(0,b.localize)(47,null,I):E?(0,b.localize)(48,null,I):(0,b.localize)(49,null,I):I===1?E?(0,b.localize)(50,null,I):(0,b.localize)(51,null,I):E?(0,b.localize)(52,null,I):(0,b.localize)(53,null,I))}e.fromNow=C;function T(R){return R.getFullYear()+"-"+String(R.getMonth()+1).padStart(2,"0")+"-"+String(R.getDate()).padStart(2,"0")+"T"+String(R.getHours()).padStart(2,"0")+":"+String(R.getMinutes()).padStart(2,"0")+":"+String(R.getSeconds()).padStart(2,"0")+"."+(R.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}e.toLocalISOString=T}),define(ve[152],we([9,10]),function(oe,e){return oe.create("vs/base/common/errorMessage",e)}),define(ve[38],we([0,1,18,12,152]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.toErrorMessage=void 0;function P(R,w){return w&&(R.stack||R.stacktrace)?D.localize(0,null,y(R),k(R.stack)||k(R.stacktrace)):y(R)}function k(R){return Array.isArray(R)?R.join(`
`):R}function y(R){return typeof R.code=="string"&&typeof R.errno=="number"&&typeof R.syscall=="string"?D.localize(1,null,R.message):R.message||D.localize(2,null)}function p(R=null,w=!1){if(!R)return D.localize(3,null);if(Array.isArray(R)){const E=b.coalesce(R),d=p(E[0],w);return E.length>1?D.localize(4,null,d,E.length):d}if(t.isString(R))return R;if(R.detail){const E=R.detail;if(E.error)return P(E.error,w);if(E.exception)return P(E.exception,w)}return R.stack?P(R,w):R.message?R.message:D.localize(5,null)}e.toErrorMessage=p;function C(R){const w=R;return w instanceof Error&&Array.isArray(w.actions)}e.isErrorWithActions=C;function T(R,w){let E;return typeof R=="string"?E=new Error(R):E=R,E.actions=w,E}e.createErrorWithActions=T}),define(ve[153],we([9,10]),function(oe,e){return oe.create("vs/base/common/jsonErrorMessages",e)}),define(ve[154],we([0,1,153]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getParseErrorMessage=void 0;function t(D){switch(D){case 1:return(0,b.localize)(0,null);case 2:return(0,b.localize)(1,null);case 3:return(0,b.localize)(2,null);case 4:return(0,b.localize)(3,null);case 5:return(0,b.localize)(4,null);case 6:return(0,b.localize)(5,null);case 7:return(0,b.localize)(6,null);case 8:return(0,b.localize)(7,null);case 9:return(0,b.localize)(8,null);default:return""}}e.getParseErrorMessage=t}),define(ve[155],we([9,10]),function(oe,e){return oe.create("vs/base/node/processes",e)}),define(ve[94],we([0,1,43,33,8,22,6,3,27,56,12,142,21,155]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.win32=e.createQueuedSender=e.LineProcess=e.AbstractProcess=e.getWindowsShell=e.TerminateResponseCode=e.Source=void 0,Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return C.Source}}),Object.defineProperty(e,"TerminateResponseCode",{enumerable:!0,get:function(){return C.TerminateResponseCode}});function d(f){switch(f){case 0:return 0;case 1:return 2;case 128:return 3;default:return 1}}function I(f,i){if(y.isWindows)try{const s={stdio:["pipe","pipe","ignore"]};i&&(s.cwd=i);const n=b.execFile("taskkill",["/T","/F","/PID",f.pid.toString()],s);return new Promise(a=>{n.once("error",o=>{a({success:!1,error:o})}),n.once("exit",(o,r)=>{a(o===0?{success:!0}:{success:!1,code:o!==null?o:1})})})}catch(s){return Promise.resolve({success:!1,error:s,code:s.status?d(s.status):1})}else if(y.isLinux||y.isMacintosh)try{const s=D.FileAccess.asFileUri("vs/base/node/terminateProcess.sh",oe).fsPath;return new Promise(n=>{b.execFile(s,[f.pid.toString()],{encoding:"utf8",shell:!0},(a,o,r)=>{n(a?{success:!1,error:a}:{success:!0})})})}catch(s){return Promise.resolve({success:!1,error:s})}else f.kill("SIGKILL");return Promise.resolve({success:!0})}function v(f=p.env){return f.comspec||"cmd.exe"}e.getWindowsShell=v;class m{constructor(i,s,n,a){if(s!==void 0&&n!==void 0&&a!==void 0)this.cmd=i,this.args=s,this.shell=n,this.options=a;else{const o=i;this.cmd=o.command,this.shell=o.isShellCommand,this.args=o.args.slice(0),this.options=o.options||{}}if(this.childProcess=null,this.childProcessPromise=null,this.terminateRequested=!1,this.options.env){const o=Object.create(null);Object.keys(p.env).forEach(r=>{o[r]=p.env[r]}),Object.keys(this.options.env).forEach(r=>{o[r]=this.options.env[r]}),this.options.env=o}}getSanitizedCommand(){let i=this.cmd.toLowerCase();const s=i.lastIndexOf(k.sep);return s!==-1&&(i=i.substring(s+1)),m.WellKnowCommands[i]?i:"other"}start(i){return y.isWindows&&(this.options&&this.options.cwd&&t.isUNC(this.options.cwd)||!this.options&&t.isUNC(p.cwd()))?Promise.reject(new Error(E.localize(0,null))):this.useExec().then(s=>{let n,a;const o=new Promise((r,l)=>{n=r,a=l});if(s){let r=this.cmd;this.args&&(r=r+" "+this.args.join(" ")),this.childProcess=b.exec(r,this.options,(l,h,S)=>{this.childProcess=null;const A=l;A&&A.killed?a({killed:this.terminateRequested,stdout:h.toString(),stderr:S.toString()}):this.handleExec(n,i,l,h,S)})}else{let r=null;const l=h=>{this.childProcess=null,this.childProcessPromise=null,this.handleClose(h,n,i,a);const S={terminated:this.terminateRequested};T.isNumber(h)&&(S.cmdCode=h),n(S)};if(this.shell&&y.isWindows){const h=P.deepClone(this.options);h.windowsVerbatimArguments=!0,h.detached=!1;let S=!1,A=!1;const $=[];let W=this.ensureQuotes(this.cmd);$.push(W.value),S=W.quoted,this.args&&this.args.forEach(L=>{W=this.ensureQuotes(L),$.push(W.value),A=A&&W.quoted});const ee=["/s","/c"];S?A?ee.push('"'+$.join(" ")+'"'):$.length>1?ee.push('"'+$[0]+'" '+$.slice(1).join(" ")):ee.push('"'+$[0]+'"'):ee.push($.join(" ")),r=b.spawn(v(),ee,h)}else this.cmd&&(r=b.spawn(this.cmd,this.args,this.options));r&&(this.childProcess=r,this.childProcessPromise=Promise.resolve(r),this.pidResolve&&(this.pidResolve(T.isNumber(r.pid)?r.pid:-1),this.pidResolve=void 0),r.on("error",h=>{this.childProcess=null,a({terminated:this.terminateRequested,error:h})}),r.pid&&(this.childProcess.on("close",l),this.handleSpawn(r,n,i,a,!0)))}return o})}handleClose(i,s,n,a){}ensureQuotes(i){return m.regexp.test(i)?{value:'"'+i+'"',quoted:!0}:{value:i,quoted:i.length>0&&i[0]==='"'&&i[i.length-1]==='"'}}get pid(){return this.childProcessPromise?this.childProcessPromise.then(i=>i.pid,i=>-1):new Promise(i=>{this.pidResolve=i})}terminate(){return this.childProcessPromise?this.childProcessPromise.then(i=>(this.terminateRequested=!0,I(i,this.options.cwd).then(s=>(s.success&&(this.childProcess=null),s))),i=>({success:!0})):Promise.resolve({success:!0})}useExec(){return new Promise(i=>{if(!this.shell||!y.isWindows)return i(!1);const s=b.spawn(v(),["/s","/c"]);s.on("error",n=>i(!0)),s.on("exit",n=>i(!1))})}}e.AbstractProcess=m,m.WellKnowCommands={ant:!0,cmake:!0,eslint:!0,gradle:!0,grunt:!0,gulp:!0,jake:!0,jenkins:!0,jshint:!0,make:!0,maven:!0,msbuild:!0,msc:!0,nmake:!0,npm:!0,rake:!0,tsc:!0,xbuild:!0},m.regexp=/^[^"].* .*[^"]/;class g extends m{constructor(i,s,n,a){super(i,s,n,a);this.stdoutLineDecoder=null,this.stderrLineDecoder=null}handleExec(i,s,n,a,o){[a,o].forEach((r,l)=>{const h=new R.LineDecoder;h.write(r).forEach($=>{s({line:$,source:l===0?0:1})});const A=h.end();A&&s({line:A,source:l===0?0:1})}),i({terminated:this.terminateRequested,error:n})}handleSpawn(i,s,n,a,o){const r=new R.LineDecoder,l=new R.LineDecoder;i.stdout.on("data",h=>{r.write(h).forEach(A=>n({line:A,source:0}))}),i.stderr.on("data",h=>{l.write(h).forEach(A=>n({line:A,source:1}))}),this.stdoutLineDecoder=r,this.stderrLineDecoder=l}handleClose(i,s,n,a){const o=this.stdoutLineDecoder?this.stdoutLineDecoder.end():null;o&&n({line:o,source:0});const r=this.stderrLineDecoder?this.stderrLineDecoder.end():null;r&&n({line:r,source:1})}}e.LineProcess=g;function u(f){let i=[],s=!1;const n=function(a){if(s){i.push(a);return}(!f.send(a,r=>{if(r&&console.error(r),s=!1,i.length>0){const l=i.slice(0);i=[],l.forEach(h=>n(h))}})||y.isWindows)&&(s=!0)};return{send:n}}e.createQueuedSender=u;var c;(function(f){async function i(s,n,a){if(k.isAbsolute(s))return s;if(n===void 0&&(n=p.cwd()),k.dirname(s)!=="."||(a===void 0&&T.isString(p.env.PATH)&&(a=p.env.PATH.split(k.delimiter)),a===void 0||a.length===0))return k.join(n,s);async function r(l){if(await w.Promises.exists(l)){let h;try{h=await w.Promises.stat(l)}catch(S){S.message.startsWith("EACCES")&&(h=await w.Promises.lstat(l))}return h?!h.isDirectory():!1}return!1}for(const l of a){let h;if(k.isAbsolute(l)?h=k.join(l,s):h=k.join(n,l,s),await r(h))return h;let S=h+".com";if(await r(S)||(S=h+".exe",await r(S)))return S}return k.join(n,s)}f.findExecutable=i})(c=e.win32||(e.win32={}))}),define(ve[156],we([0,1,28,3,90,94]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSystemShellSync=e.getSystemShell=void 0;async function k(E,d){return E===1?t.isWindows?R():P.getWindowsShell(d):C(E,d)}e.getSystemShell=k;function y(E,d){return E===1?t.isWindows?w(d):P.getWindowsShell(d):C(E,d)}e.getSystemShellSync=y;let p=null;function C(E,d){if(t.isLinux&&E===2||t.isMacintosh&&E===3)return"/bin/bash";if(!p){let I;if(t.isWindows)I="/bin/bash";else{if(I=d.SHELL,!I)try{I=(0,b.userInfo)().shell}catch{}I||(I="sh"),I==="/bin/false"&&(I="/bin/bash")}p=I}return p}let T=null;async function R(){return T||(T=(await(0,D.getFirstAvailablePowerShellInstallation)()).exePath),T}function w(E){if(T)return T;const d=t.isWindows&&parseFloat((0,b.release)())>=10,I=E.hasOwnProperty("PROCESSOR_ARCHITEW6432"),v=`${E.windir}\\${I?"Sysnative":"System32"}\\WindowsPowerShell\\v1.0\\powershell.exe`;return d?v:P.getWindowsShell(E)}}),define(ve[95],we([0,1,43,14,15,20,140,11,7,2,22,94,56,44]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Client=e.Server=void 0;class d extends E.ChannelServer{constructor(m){super({send:g=>{try{process.send?.(g.buffer.toString("base64"))}catch{}},onMessage:p.Event.fromNodeEventEmitter(process,"message",g=>D.VSBuffer.wrap(Buffer.from(g,"base64")))},m);process.once("disconnect",()=>this.dispose())}}e.Server=d;class I{constructor(m,g){this.modulePath=m,this.options=g,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new p.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;const u=g&&g.timeout?g.timeout:6e4;this.disposeDelayer=new t.Delayer(u),this.child=null,this._client=null}getChannel(m){const g=this;return{call(u,c,f){return g.requestPromise(m,u,c,f)},listen(u,c){return g.requestEvent(m,u,c)}}}requestPromise(m,g,u,c=P.CancellationToken.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(c.isCancellationRequested)return Promise.reject(y.canceled());this.disposeDelayer.cancel();const f=this.getCachedChannel(m),i=(0,t.createCancelablePromise)(a=>f.call(g,u,a)),s=c.onCancellationRequested(()=>i.cancel()),n=(0,C.toDisposable)(()=>i.cancel());return this.activeRequests.add(n),i.finally(()=>{s.dispose(),this.activeRequests.delete(n),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}),i}requestEvent(m,g,u){if(!this.disposeDelayer)return p.Event.None;this.disposeDelayer.cancel();let c;const f=new p.Emitter({onFirstListenerAdd:()=>{c=this.getCachedChannel(m).listen(g,u)(f.fire,f),this.activeRequests.add(c)},onLastListenerRemove:()=>{this.activeRequests.delete(c),c.dispose(),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return f.event}get client(){if(!this._client){const m=this.options&&this.options.args?this.options.args:[],g=Object.create(null);g.env={...(0,T.deepClone)(process.env),VSCODE_PARENT_PID:String(process.pid)},this.options&&this.options.env&&(g.env={...g.env,...this.options.env}),this.options&&this.options.freshExecArgv&&(g.execArgv=[]),this.options&&typeof this.options.debug=="number"&&(g.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&typeof this.options.debugBrk=="number"&&(g.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),g.execArgv===void 0&&(g.execArgv=process.execArgv.filter(o=>!/^--inspect(-brk)?=/.test(o))),(0,w.removeDangerousEnvVariables)(g.env),this.child=(0,b.fork)(this.modulePath,m,g);const u=new p.Emitter;p.Event.fromNodeEventEmitter(this.child,"message",o=>o)(o=>{if((0,k.isRemoteConsoleLog)(o)){(0,k.log)(o,`IPC Library: ${this.options.serverName}`);return}u.fire(D.VSBuffer.wrap(Buffer.from(o,"base64")))});const f=this.options.useQueue?(0,R.createQueuedSender)(this.child):this.child,i=o=>this.child&&this.child.connected&&f.send(o.buffer.toString("base64")),s=u.event,n={send:i,onMessage:s};this._client=new E.ChannelClient(n);const a=()=>this.disposeClient();process.once("exit",a),this.child.on("error",o=>console.warn('IPC "'+this.options.serverName+'" errored with '+o)),this.child.on("exit",(o,r)=>{process.removeListener("exit",a),this.activeRequests.forEach(l=>(0,C.dispose)(l)),this.activeRequests.clear(),o!==0&&r!=="SIGTERM"&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+o+" and signal "+r),this.disposeDelayer&&this.disposeDelayer.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:o,signal:r})})}return this._client}getCachedChannel(m){let g=this.channels.get(m);return g||(g=this.client.getChannel(m),this.channels.set(m,g)),g}disposeClient(){this._client&&(this.child&&(this.child.kill(),this.child=null),this._client=null,this.channels.clear())}dispose(){this._onDidProcessExit.dispose(),this.disposeDelayer&&(this.disposeDelayer.cancel(),this.disposeDelayer=void 0),this.disposeClient(),this.activeRequests.clear()}}e.Client=I}),define(ve[157],we([9,10]),function(oe,e){return oe.create("vs/base/node/zip",e)}),define(ve[158],we([9,10]),function(oe,e){return oe.create("vs/platform/configuration/common/configurationRegistry",e)}),define(ve[159],we([9,10]),function(oe,e){return oe.create("vs/platform/environment/node/argv",e)}),define(ve[160],we([9,10]),function(oe,e){return oe.create("vs/platform/environment/node/argvHelper",e)}),define(ve[161],we([9,10]),function(oe,e){return oe.create("vs/platform/extensionManagement/common/abstractExtensionManagementService",e)}),define(ve[162],we([9,10]),function(oe,e){return oe.create("vs/platform/extensionManagement/common/extensionManagement",e)}),define(ve[163],we([9,10]),function(oe,e){return oe.create("vs/platform/extensionManagement/common/extensionManagementCLIService",e)}),define(ve[164],we([9,10]),function(oe,e){return oe.create("vs/platform/extensionManagement/common/extensionsScannerService",e)}),define(ve[165],we([9,10]),function(oe,e){return oe.create("vs/platform/extensionManagement/node/extensionManagementService",e)}),define(ve[166],we([9,10]),function(oe,e){return oe.create("vs/platform/extensionManagement/node/extensionManagementUtil",e)}),define(ve[167],we([9,10]),function(oe,e){return oe.create("vs/platform/extensions/common/extensionValidator",e)}),define(ve[168],we([9,10]),function(oe,e){return oe.create("vs/platform/files/common/fileService",e)}),define(ve[169],we([9,10]),function(oe,e){return oe.create("vs/platform/files/common/files",e)}),define(ve[170],we([9,10]),function(oe,e){return oe.create("vs/platform/files/common/io",e)}),define(ve[171],we([9,10]),function(oe,e){return oe.create("vs/platform/files/node/diskFileSystemProvider",e)}),define(ve[172],we([9,10]),function(oe,e){return oe.create("vs/platform/languagePacks/common/languagePacks",e)}),define(ve[173],we([9,10]),function(oe,e){return oe.create("vs/platform/markers/common/markers",e)}),define(ve[174],we([9,10]),function(oe,e){return oe.create("vs/platform/request/common/request",e)}),define(ve[175],we([9,10]),function(oe,e){return oe.create("vs/platform/shell/node/shellEnv",e)}),define(ve[176],we([9,10]),function(oe,e){return oe.create("vs/platform/telemetry/common/telemetryService",e)}),define(ve[177],we([9,10]),function(oe,e){return oe.create("vs/platform/terminal/common/terminalPlatformConfiguration",e)}),define(ve[178],we([9,10]),function(oe,e){return oe.create("vs/platform/terminal/common/terminalProfiles",e)}),define(ve[179],we([9,10]),function(oe,e){return oe.create("vs/platform/userDataProfile/common/userDataProfile",e)}),define(ve[180],we([9,10]),function(oe,e){return oe.create("vs/platform/workspace/common/workspace",e)}),define(ve[181],we([9,10]),function(oe,e){return oe.create("vs/server/node/serverEnvironmentService",e)}),define(ve[182],we([9,10]),function(oe,e){return oe.create("vs/workbench/common/editor",e)}),define(ve[183],we([9,10]),function(oe,e){return oe.create("vs/workbench/services/configurationResolver/common/variableResolver",e)}),define(ve[184],we([9,10]),function(oe,e){return oe.create("vs/workbench/services/extensions/common/extensionsUtil",e)}),define(ve[185],we([0,1,7,2]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionHostDebugChannelClient=e.ExtensionHostDebugBroadcastChannel=void 0;class D{constructor(){this._onCloseEmitter=new b.Emitter,this._onReloadEmitter=new b.Emitter,this._onTerminateEmitter=new b.Emitter,this._onAttachEmitter=new b.Emitter}call(y,p,C){switch(p){case"close":return Promise.resolve(this._onCloseEmitter.fire({sessionId:C[0]}));case"reload":return Promise.resolve(this._onReloadEmitter.fire({sessionId:C[0]}));case"terminate":return Promise.resolve(this._onTerminateEmitter.fire({sessionId:C[0]}));case"attach":return Promise.resolve(this._onAttachEmitter.fire({sessionId:C[0],port:C[1],subId:C[2]}))}throw new Error("Method not implemented.")}listen(y,p,C){switch(p){case"close":return this._onCloseEmitter.event;case"reload":return this._onReloadEmitter.event;case"terminate":return this._onTerminateEmitter.event;case"attach":return this._onAttachEmitter.event}throw new Error("Method not implemented.")}}e.ExtensionHostDebugBroadcastChannel=D,D.ChannelName="extensionhostdebugservice";class P extends t.Disposable{constructor(y){super();this.channel=y}reload(y){this.channel.call("reload",[y])}get onReload(){return this.channel.listen("reload")}close(y){this.channel.call("close",[y])}get onClose(){return this.channel.listen("close")}attachSession(y,p,C){this.channel.call("attach",[y,p,C])}get onAttachSession(){return this.channel.listen("attach")}terminateSession(y,p){this.channel.call("terminate",[y,p])}get onTerminateSession(){return this.channel.listen("terminate")}openExtensionDevelopmentHostWindow(y,p){return this.channel.call("openExtensionDevelopmentHostWindow",[y,p])}}e.ExtensionHostDebugChannelClient=P}),define(ve[186],we([0,1,4]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DownloadServiceChannelClient=e.DownloadServiceChannel=void 0;class t{constructor(k){this.service=k}listen(k,y,p){throw new Error("Invalid listen")}call(k,y,p){switch(y){case"download":return this.service.download(b.URI.revive(p[0]),b.URI.revive(p[1]))}throw new Error("Invalid call")}}e.DownloadServiceChannel=t;class D{constructor(k,y){this.channel=k,this.getUriTransformer=y}async download(k,y){const p=this.getUriTransformer();p&&(k=p.transformOutgoingURI(k),y=p.transformOutgoingURI(y)),await this.channel.call("download",[k,y])}}e.DownloadServiceChannelClient=D}),define(ve[187],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TextEditorSelectionSource=e.TextEditorSelectionRevealType=e.EditorOpenSource=e.EditorResolution=e.EditorActivation=void 0;var b;(function(y){y[y.ACTIVATE=1]="ACTIVATE",y[y.RESTORE=2]="RESTORE",y[y.PRESERVE=3]="PRESERVE"})(b=e.EditorActivation||(e.EditorActivation={}));var t;(function(y){y[y.PICK=0]="PICK",y[y.DISABLED=1]="DISABLED",y[y.EXCLUSIVE_ONLY=2]="EXCLUSIVE_ONLY"})(t=e.EditorResolution||(e.EditorResolution={}));var D;(function(y){y[y.API=0]="API",y[y.USER=1]="USER"})(D=e.EditorOpenSource||(e.EditorOpenSource={}));var P;(function(y){y[y.Center=0]="Center",y[y.CenterIfOutsideViewport=1]="CenterIfOutsideViewport",y[y.NearTop=2]="NearTop",y[y.NearTopIfOutsideViewport=3]="NearTopIfOutsideViewport"})(P=e.TextEditorSelectionRevealType||(e.TextEditorSelectionRevealType={}));var k;(function(y){y.PROGRAMMATIC="api",y.NAVIGATION="code.navigation",y.JUMP="code.jump"})(k=e.TextEditorSelectionSource||(e.TextEditorSelectionSource={}))}),define(ve[188],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EncryptionMainService=void 0;class b{constructor(D){this.machineId=D}encryption(){return new Promise((D,P)=>oe(["vscode-encrypt"],D,P))}async encrypt(D){try{return(await this.encryption()).encrypt(this.machineId,D)}catch{return D}}async decrypt(D){try{return(await this.encryption()).decrypt(this.machineId,D)}catch{return D}}}e.EncryptionMainService=b}),define(ve[96],we([0,1,151,82,8,6,27,19,4]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePtyHostPort=e.parseSearchPort=e.parseExtensionHostPort=e.AbstractNativeEnvironmentService=void 0;class C{constructor(I,v,m){this._args=I,this.paths=v,this.productService=m,this.editSessionId=this.args.editSessionId}get appRoot(){return(0,P.dirname)(D.FileAccess.asFileUri("",oe).fsPath)}get userHome(){return p.URI.file(this.paths.homeDir)}get userDataPath(){return this.paths.userDataDir}get appSettingsHome(){return p.URI.file((0,P.join)(this.userDataPath,"User"))}get tmpDir(){return p.URI.file(this.paths.tmpDir)}get cacheHome(){return p.URI.file(this.userDataPath)}get stateResource(){return(0,y.joinPath)(this.appSettingsHome,"globalStorage","storage.json")}get userRoamingDataHome(){return this.appSettingsHome}get userDataSyncHome(){return(0,y.joinPath)(this.userRoamingDataHome,"sync")}get logsPath(){if(!this.args.logsPath){const I=(0,b.toLocalISOString)(new Date).replace(/-|:|\.\d+Z$/g,"");this.args.logsPath=(0,P.join)(this.userDataPath,"logs",I)}return this.args.logsPath}get userDataSyncLogResource(){return p.URI.file((0,P.join)(this.logsPath,"userDataSync.log"))}get editSessionsLogResource(){return p.URI.file((0,P.join)(this.logsPath,"editSessions.log"))}get sync(){return this.args.sync}get machineSettingsResource(){return(0,y.joinPath)(p.URI.file((0,P.join)(this.userDataPath,"Machine")),"settings.json")}get workspaceStorageHome(){return(0,y.joinPath)(this.appSettingsHome,"workspaceStorage")}get localHistoryHome(){return(0,y.joinPath)(this.appSettingsHome,"History")}get keyboardLayoutResource(){return(0,y.joinPath)(this.userRoamingDataHome,"keyboardLayout.json")}get argvResource(){const I=k.env.VSCODE_PORTABLE;return I?p.URI.file((0,P.join)(I,"argv.json")):(0,y.joinPath)(this.appSettingsHome,"argv.json")}get isExtensionDevelopment(){return!!this.args.extensionDevelopmentPath}get untitledWorkspacesHome(){return p.URI.file((0,P.join)(this.userDataPath,"Workspaces"))}get installSourcePath(){return(0,P.join)(this.userDataPath,"installSource")}get builtinExtensionsPath(){const I=this.args["builtin-extensions-dir"];return I?(0,P.resolve)(I):(0,P.normalize)((0,P.join)(D.FileAccess.asFileUri("",oe).fsPath,"..","extensions"))}get extensionsDownloadPath(){const I=this.args["extensions-download-dir"];return I?(0,P.resolve)(I):(0,P.join)(this.userDataPath,"CachedExtensionVSIXs")}get extensionsPath(){const I=this.args["extensions-dir"];if(I)return(0,P.resolve)(I);const v=k.env.VSCODE_EXTENSIONS;if(v)return v;const m=k.env.VSCODE_PORTABLE;return m?(0,P.join)(m,"extensions"):(0,y.joinPath)(this.userHome,this.productService.dataFolderName,"extensions").fsPath}get extensionDevelopmentLocationURI(){const I=this.args.extensionDevelopmentPath;if(Array.isArray(I))return I.map(v=>/^[^:/?#]+?:\/\//.test(v)?p.URI.parse(v):p.URI.file((0,P.normalize)(v)))}get extensionDevelopmentKind(){return this.args.extensionDevelopmentKind?.map(I=>I==="ui"||I==="workspace"||I==="web"?I:"workspace")}get extensionTestsLocationURI(){const I=this.args.extensionTestsPath;if(I)return/^[^:/?#]+?:\/\//.test(I)?p.URI.parse(I):p.URI.file((0,P.normalize)(I))}get disableExtensions(){if(this.args["disable-extensions"])return!0;const I=this.args["disable-extension"];if(I){if(typeof I=="string")return[I];if(Array.isArray(I)&&I.length>0)return I}return!1}get debugExtensionHost(){return T(this.args,this.isBuilt)}get debugRenderer(){return!!this.args.debugRenderer}get isBuilt(){return!k.env.VSCODE_DEV}get verbose(){return!!this.args.verbose}get logLevel(){return this.args.log}get serviceMachineIdResource(){return(0,y.joinPath)(p.URI.file(this.userDataPath),"machineid")}get crashReporterId(){return this.args["crash-reporter-id"]}get crashReporterDirectory(){return this.args["crash-reporter-directory"]}get telemetryLogResource(){return p.URI.file((0,P.join)(this.logsPath,"telemetry.log"))}get disableTelemetry(){return!!this.args["disable-telemetry"]}get disableWorkspaceTrust(){return!!this.args["disable-workspace-trust"]}get policyFile(){if(this.args["__enable-file-policy"]){const I=k.env.VSCODE_PORTABLE;return I?p.URI.file((0,P.join)(I,"policy.json")):(0,y.joinPath)(this.userHome,this.productService.dataFolderName,"policy.json")}}get args(){return this._args}}_e([t.memoize],C.prototype,"appRoot",null),_e([t.memoize],C.prototype,"userHome",null),_e([t.memoize],C.prototype,"userDataPath",null),_e([t.memoize],C.prototype,"appSettingsHome",null),_e([t.memoize],C.prototype,"tmpDir",null),_e([t.memoize],C.prototype,"cacheHome",null),_e([t.memoize],C.prototype,"stateResource",null),_e([t.memoize],C.prototype,"userRoamingDataHome",null),_e([t.memoize],C.prototype,"userDataSyncHome",null),_e([t.memoize],C.prototype,"userDataSyncLogResource",null),_e([t.memoize],C.prototype,"editSessionsLogResource",null),_e([t.memoize],C.prototype,"sync",null),_e([t.memoize],C.prototype,"machineSettingsResource",null),_e([t.memoize],C.prototype,"workspaceStorageHome",null),_e([t.memoize],C.prototype,"localHistoryHome",null),_e([t.memoize],C.prototype,"keyboardLayoutResource",null),_e([t.memoize],C.prototype,"argvResource",null),_e([t.memoize],C.prototype,"isExtensionDevelopment",null),_e([t.memoize],C.prototype,"untitledWorkspacesHome",null),_e([t.memoize],C.prototype,"installSourcePath",null),_e([t.memoize],C.prototype,"builtinExtensionsPath",null),_e([t.memoize],C.prototype,"extensionsPath",null),_e([t.memoize],C.prototype,"extensionDevelopmentLocationURI",null),_e([t.memoize],C.prototype,"extensionDevelopmentKind",null),_e([t.memoize],C.prototype,"extensionTestsLocationURI",null),_e([t.memoize],C.prototype,"debugExtensionHost",null),_e([t.memoize],C.prototype,"serviceMachineIdResource",null),_e([t.memoize],C.prototype,"telemetryLogResource",null),_e([t.memoize],C.prototype,"disableWorkspaceTrust",null),_e([t.memoize],C.prototype,"policyFile",null),e.AbstractNativeEnvironmentService=C;function T(d,I){return E(d["inspect-extensions"],d["inspect-brk-extensions"],5870,I,d.debugId,d.extensionEnvironment)}e.parseExtensionHostPort=T;function R(d,I){return E(d["inspect-search"],d["inspect-brk-search"],5876,I,d.extensionEnvironment)}e.parseSearchPort=R;function w(d,I){return E(d["inspect-ptyhost"],d["inspect-brk-ptyhost"],5877,I,d.extensionEnvironment)}e.parsePtyHostPort=w;function E(d,I,v,m,g,u){const f=Number(I||d)||(m?null:v),i=f?Boolean(!!I):!1;let s;if(u)try{s=JSON.parse(u)}catch{}return{port:f,break:i,debugId:g,env:s}}}),define(ve[58],we([0,1,269,3,159]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildVersionMessage=e.buildHelpMessage=e.formatOptions=e.parseArgs=e.OPTIONS=void 0;const P={o:(0,D.localize)(0,null),e:(0,D.localize)(1,null),t:(0,D.localize)(2,null)};e.OPTIONS={diff:{type:"boolean",cat:"o",alias:"d",args:["file","file"],description:(0,D.localize)(3,null)},merge:{type:"boolean",cat:"o",alias:"m",args:["path1","path2","base","result"],description:(0,D.localize)(4,null)},add:{type:"boolean",cat:"o",alias:"a",args:"folder",description:(0,D.localize)(5,null)},goto:{type:"boolean",cat:"o",alias:"g",args:"file:line[:character]",description:(0,D.localize)(6,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:(0,D.localize)(7,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:(0,D.localize)(8,null)},wait:{type:"boolean",cat:"o",alias:"w",description:(0,D.localize)(9,null)},waitMarkerFilePath:{type:"string"},locale:{type:"string",cat:"o",args:"locale",description:(0,D.localize)(10,null)},"user-data-dir":{type:"string",cat:"o",args:"dir",description:(0,D.localize)(11,null)},help:{type:"boolean",cat:"o",alias:"h",description:(0,D.localize)(12,null)},"extensions-dir":{type:"string",deprecates:["extensionHomePath"],cat:"e",args:"dir",description:(0,D.localize)(13,null)},"extensions-download-dir":{type:"string"},"builtin-extensions-dir":{type:"string"},"list-extensions":{type:"boolean",cat:"e",description:(0,D.localize)(14,null)},"show-versions":{type:"boolean",cat:"e",description:(0,D.localize)(15,null)},category:{type:"string",cat:"e",description:(0,D.localize)(16,null),args:"category"},"install-extension":{type:"string[]",cat:"e",args:"ext-id | path",description:(0,D.localize)(17,null)},"pre-release":{type:"boolean",cat:"e",description:(0,D.localize)(18,null)},"uninstall-extension":{type:"string[]",cat:"e",args:"ext-id",description:(0,D.localize)(19,null)},"enable-proposed-api":{type:"string[]",allowEmptyValue:!0,cat:"e",args:"ext-id",description:(0,D.localize)(20,null)},version:{type:"boolean",cat:"t",alias:"v",description:(0,D.localize)(21,null)},verbose:{type:"boolean",cat:"t",description:(0,D.localize)(22,null)},log:{type:"string",cat:"t",args:"level",description:(0,D.localize)(23,null)},status:{type:"boolean",alias:"s",cat:"t",description:(0,D.localize)(24,null)},"prof-startup":{type:"boolean",cat:"t",description:(0,D.localize)(25,null)},"prof-append-timers":{type:"string"},"no-cached-data":{type:"boolean"},"prof-startup-prefix":{type:"string"},"prof-v8-extensions":{type:"boolean"},"disable-extensions":{type:"boolean",deprecates:["disableExtensions"],cat:"t",description:(0,D.localize)(26,null)},"disable-extension":{type:"string[]",cat:"t",args:"ext-id",description:(0,D.localize)(27,null)},sync:{type:"string",cat:"t",description:(0,D.localize)(28,null),args:["on | off"]},"inspect-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugPluginHost"],args:"port",cat:"t",description:(0,D.localize)(29,null)},"inspect-brk-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugBrkPluginHost"],args:"port",cat:"t",description:(0,D.localize)(30,null)},"disable-gpu":{type:"boolean",cat:"t",description:(0,D.localize)(31,null)},"ms-enable-electron-run-as-node":{type:"boolean"},"max-memory":{type:"string",cat:"t",description:(0,D.localize)(32,null),args:"memory"},telemetry:{type:"boolean",cat:"t",description:(0,D.localize)(33,null)},remote:{type:"string",allowEmptyValue:!0},"folder-uri":{type:"string[]",cat:"o",args:"uri"},"file-uri":{type:"string[]",cat:"o",args:"uri"},"locate-extension":{type:"string[]"},extensionDevelopmentPath:{type:"string[]"},extensionDevelopmentKind:{type:"string[]"},extensionTestsPath:{type:"string"},extensionEnvironment:{type:"string"},debugId:{type:"string"},debugRenderer:{type:"boolean"},"inspect-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-brk-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-search":{type:"string",deprecates:["debugSearch"],allowEmptyValue:!0},"inspect-brk-search":{type:"string",deprecates:["debugBrkSearch"],allowEmptyValue:!0},"export-default-configuration":{type:"string"},"install-source":{type:"string"},"enable-smoke-test-driver":{type:"boolean"},logExtensionHostCommunication:{type:"boolean"},"skip-release-notes":{type:"boolean"},"skip-welcome":{type:"boolean"},"disable-telemetry":{type:"boolean"},"disable-updates":{type:"boolean"},"disable-keytar":{type:"boolean"},"disable-workspace-trust":{type:"boolean"},"disable-crash-reporter":{type:"boolean"},"crash-reporter-directory":{type:"string"},"crash-reporter-id":{type:"string"},"skip-add-to-recently-opened":{type:"boolean"},"unity-launch":{type:"boolean"},"open-url":{type:"boolean"},"file-write":{type:"boolean"},"file-chmod":{type:"boolean"},"install-builtin-extension":{type:"string[]"},force:{type:"boolean"},"do-not-sync":{type:"boolean"},trace:{type:"boolean"},"trace-category-filter":{type:"string"},"trace-options":{type:"string"},"force-user-env":{type:"boolean"},"force-disable-user-env":{type:"boolean"},"open-devtools":{type:"boolean"},logsPath:{type:"string"},"__enable-file-policy":{type:"boolean"},editSessionId:{type:"string"},"locate-shell-integration-path":{type:"string",args:["bash","pwsh","zsh"]},"no-proxy-server":{type:"boolean"},"no-sandbox":{type:"boolean",alias:"sandbox"},"proxy-server":{type:"string"},"proxy-bypass-list":{type:"string"},"proxy-pac-url":{type:"string"},"js-flags":{type:"string"},inspect:{type:"string",allowEmptyValue:!0},"inspect-brk":{type:"string",allowEmptyValue:!0},nolazy:{type:"boolean"},"force-device-scale-factor":{type:"string"},"force-renderer-accessibility":{type:"boolean"},"ignore-certificate-errors":{type:"boolean"},"allow-insecure-localhost":{type:"boolean"},"log-net-log":{type:"string"},vmodule:{type:"string"},_urls:{type:"string[]"},"disable-dev-shm-usage":{type:"boolean"},_:{type:"string[]"}};const k={onUnknownOption:()=>{},onMultipleValues:()=>{},onEmptyValue:()=>{},onDeprecatedOption:()=>{}};function y(d,I,v=k){const m={},g=["_"],u=[];for(const s in I){const n=I[s];n.alias&&(m[s]=n.alias),n.type==="string"||n.type==="string[]"?(g.push(s),n.deprecates&&g.push(...n.deprecates)):n.type==="boolean"&&(u.push(s),n.deprecates&&u.push(...n.deprecates))}const c=b(d,{string:g,boolean:u,alias:m}),f={},i=c;f._=c._.map(s=>String(s)).filter(s=>s.length>0),delete i._;for(const s in I){const n=I[s];n.alias&&delete i[n.alias];let a=i[s];if(n.deprecates)for(const o of n.deprecates)i.hasOwnProperty(o)&&(a||(a=i[o],a&&v.onDeprecatedOption(o,n.deprecationMessage||(0,D.localize)(34,null,s))),delete i[o]);if(typeof a!="undefined"){if(n.type==="string[]"){if(Array.isArray(a)||(a=[a]),!n.allowEmptyValue){const o=a.filter(r=>r.length>0);o.length!==a.length&&(v.onEmptyValue(s),a=o.length>0?o:void 0)}}else n.type==="string"&&(Array.isArray(a)?(a=a.pop(),v.onMultipleValues(s,a)):!a&&!n.allowEmptyValue&&(v.onEmptyValue(s),a=void 0));f[s]=a,n.deprecationMessage&&v.onDeprecatedOption(s,n.deprecationMessage)}delete i[s]}for(const s in i)v.onUnknownOption(s);return f}e.parseArgs=y;function p(d,I){let v="";return I.args&&(Array.isArray(I.args)?v=` <${I.args.join("> <")}>`:v=` <${I.args}>`),I.alias?`-${I.alias} --${d}${v}`:`--${d}${v}`}function C(d,I){let v=0;const m=[];for(const f in d){const i=d[f],s=p(f,i);v=Math.max(v,s.length),m.push([s,i.description])}const g=v+2+1;if(I-g<25)return m.reduce((f,i)=>f.concat([`  ${i[0]}`,`      ${i[1]}`]),[]);const u=I-g-1,c=[];for(const f of m){const i=f[0],s=R(f[1],u),n=T(g-i.length-2);c.push("  "+i+n+s[0]);for(let a=1;a<s.length;a++)c.push(T(g)+s[a])}return c}e.formatOptions=C;function T(d){return" ".repeat(d)}function R(d,I){const v=[];for(;d.length;){const m=d.length<I?d.length:d.lastIndexOf(" ",I),g=d.slice(0,m).trim();d=d.slice(m),v.push(g)}return v}function w(d,I,v,m,g){const u=process.stdout.isTTY&&process.stdout.columns||80,c=g?.noInputFiles!==!0?`[${(0,D.localize)(35,null)}...]`:"",f=[`${d} ${v}`];f.push(""),f.push(`${(0,D.localize)(36,null)}: ${I} [${(0,D.localize)(37,null)}]${c}`),f.push(""),g?.noPipe!==!0&&(t.isWindows?f.push((0,D.localize)(38,null,I)):f.push((0,D.localize)(39,null,I)),f.push(""));const i={};for(const s in m){const n=m[s];if(n.description&&n.cat){let a=i[n.cat];a||(i[n.cat]=a={}),a[s]=n}}for(const s in i){const n=s,a=i[n];a&&(f.push(P[n]),f.push(...C(a,u)),f.push(""))}return f.join(`
`)}e.buildHelpMessage=w;function E(d,I){return`${d||(0,D.localize)(40,null)}
${I||(0,D.localize)(41,null)}
${process.arch}`}e.buildVersionMessage=E}),define(ve[189],we([0,1,270,160,58]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isLaunchedFromCli=e.addArg=e.parseCLIProcessArgv=e.parseMainProcessArgv=void 0;const P=2048;function k(w,E){const d={onUnknownOption:v=>{console.warn((0,t.localize)(0,null,v))},onMultipleValues:(v,m)=>{console.warn((0,t.localize)(1,null,v,m))},onEmptyValue:v=>{console.warn((0,t.localize)(2,null,v))},onDeprecatedOption:(v,m)=>{console.warn((0,t.localize)(3,null,v,m))}},I=(0,D.parseArgs)(w,D.OPTIONS,E?d:void 0);return I.goto&&I._.forEach(v=>b(/^(\w:)?[^:]+(:\d*){0,2}$/.test(v),(0,t.localize)(4,null))),I["max-memory"]&&b(parseInt(I["max-memory"])>=P,`The max-memory argument cannot be specified lower than ${P} MB.`),I}function y(w){const E=w.findIndex(d=>!/^-/.test(d));if(E>-1)return[...w.slice(0,E),...w.slice(E+1)]}function p(w){let[,...E]=w;process.env.VSCODE_DEV&&(E=y(E)||[]);const d=!R(process.env);return k(E,d)}e.parseMainProcessArgv=p;function C(w){const[,,...E]=w;return k(E,!0)}e.parseCLIProcessArgv=C;function T(w,...E){const d=w.indexOf("--");return d===-1?w.push(...E):w.splice(d,0,...E),w}e.addArg=T;function R(w){return w.VSCODE_CLI==="1"}e.isLaunchedFromCli=R}),function(){"use strict";function oe(e,b,t,D){function P(y){const p=k(y),C=[p];return e.isAbsolute(p)||C.unshift(D),e.resolve(...C)}function k(y){const p=process.env.VSCODE_PORTABLE;if(p)return e.join(p,"user-data");let C=process.env.VSCODE_APPDATA;if(C)return e.join(C,t);const T=y["user-data-dir"];if(T)return T;switch(process.platform){case"win32":if(C=process.env.APPDATA,!C){const R=process.env.USERPROFILE;if(typeof R!="string")throw new Error("Windows: Unexpected undefined %USERPROFILE% environment variable");C=e.join(R,"AppData","Roaming")}break;case"darwin":C=e.join(b.homedir(),"Library","Application Support");break;case"linux":C=process.env.XDG_CONFIG_HOME||e.join(b.homedir(),".config");break;default:throw new Error("Platform not supported")}return e.join(C,t)}return{getUserDataPath:P}}if(typeof define=="function")define(ve[190],we([0,87,28,8,19,27]),function(e,b,t,D,P,k){const y=P.dirname(D.FileAccess.asFileUri("",e)),p=e.__$__nodeRequire(P.joinPath(y,"package.json").fsPath);return oe(b,t,p.name,k.cwd())});else if(typeof module=="object"&&typeof module.exports=="object"){const e=require("../../../../../package.json"),b=require("path"),t=require("os");module.exports=oe(b,t,e.name,process.env.VSCODE_CWD||process.cwd())}else throw new Error("Unknown context")}(),define(ve[191],we([0,1,28,96,190]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeEnvironmentService=void 0;class P extends t.AbstractNativeEnvironmentService{constructor(y,p){super(y,{homeDir:(0,b.homedir)(),tmpDir:(0,b.tmpdir)(),userDataDir:(0,D.getUserDataPath)(y)},p)}}e.NativeEnvironmentService=P}),define(ve[70],we([0,1,19,67,167,50]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isEngineValid=e.isValidExtensionVersion=e.validateExtensionManifest=e.isValidVersion=e.normalizeVersion=e.parseVersion=e.isValidVersionStr=void 0;const k=/^(\^|>=)?((\d+)|x)\.((\d+)|x)\.((\d+)|x)(\-.*)?$/,y=/^-(\d{4})(\d{2})(\d{2})$/;function p(m){return m=m.trim(),m==="*"||k.test(m)}e.isValidVersionStr=p;function C(m){if(!p(m))return null;if(m=m.trim(),m==="*")return{hasCaret:!1,hasGreaterEquals:!1,majorBase:0,majorMustEqual:!1,minorBase:0,minorMustEqual:!1,patchBase:0,patchMustEqual:!1,preRelease:null};const g=m.match(k);return g?{hasCaret:g[1]==="^",hasGreaterEquals:g[1]===">=",majorBase:g[2]==="x"?0:parseInt(g[2],10),majorMustEqual:g[2]!=="x",minorBase:g[4]==="x"?0:parseInt(g[4],10),minorMustEqual:g[4]!=="x",patchBase:g[6]==="x"?0:parseInt(g[6],10),patchMustEqual:g[6]!=="x",preRelease:g[8]||null}:null}e.parseVersion=C;function T(m){if(!m)return null;const g=m.majorBase,u=m.majorMustEqual,c=m.minorBase;let f=m.minorMustEqual;const i=m.patchBase;let s=m.patchMustEqual;m.hasCaret&&(g===0||(f=!1),s=!1);let n=0;if(m.preRelease){const a=y.exec(m.preRelease);if(a){const[,o,r,l]=a;n=Date.UTC(Number(o),Number(r)-1,Number(l))}}return{majorBase:g,majorMustEqual:u,minorBase:c,minorMustEqual:f,patchBase:i,patchMustEqual:s,isMinimum:m.hasGreaterEquals,notBefore:n}}e.normalizeVersion=T;function R(m,g,u){let c;typeof m=="string"?c=T(C(m)):c=m;let f;g instanceof Date?f=g.getTime():typeof g=="string"&&(f=new Date(g).getTime());let i;if(typeof u=="string"?i=T(C(u)):i=u,!c||!i)return!1;const s=c.majorBase,n=c.minorBase,a=c.patchBase;let o=i.majorBase,r=i.minorBase,l=i.patchBase;const h=i.notBefore;let S=i.majorMustEqual,A=i.minorMustEqual,$=i.patchMustEqual;return i.isMinimum?s>o?!0:s<o?!1:n>r?!0:n<r||f&&f<h?!1:a>=l:(s===1&&o===0&&(!S||!A||!$)&&(o=1,r=0,l=0,S=!0,A=!1,$=!1),s<o?!1:s>o?!S:n<r?!1:n>r?!A:a<l?!1:a>l?!$:!(f&&f<h))}e.isValidVersion=R;function w(m,g,u,c,f){const i=[];if(typeof c.publisher!="undefined"&&typeof c.publisher!="string")return i.push([t.default.Error,D.localize(0,null)]),i;if(typeof c.name!="string")return i.push([t.default.Error,D.localize(1,null,"name")]),i;if(typeof c.version!="string")return i.push([t.default.Error,D.localize(2,null,"version")]),i;if(!c.engines)return i.push([t.default.Error,D.localize(3,null,"engines")]),i;if(typeof c.engines.vscode!="string")return i.push([t.default.Error,D.localize(4,null,"engines.vscode")]),i;if(typeof c.extensionDependencies!="undefined"&&!v(c.extensionDependencies))return i.push([t.default.Error,D.localize(5,null,"extensionDependencies")]),i;if(typeof c.activationEvents!="undefined"){if(!v(c.activationEvents))return i.push([t.default.Error,D.localize(6,null,"activationEvents")]),i;if(typeof c.main=="undefined"&&typeof c.browser=="undefined")return i.push([t.default.Error,D.localize(7,null,"activationEvents","main")]),i}if(typeof c.extensionKind!="undefined"&&typeof c.main=="undefined"&&i.push([t.default.Warning,D.localize(8,null,"extensionKind")]),typeof c.main!="undefined"){if(typeof c.main!="string")return i.push([t.default.Error,D.localize(9,null,"main")]),i;{const a=(0,b.joinPath)(u,c.main);(0,b.isEqualOrParent)(a,u)||i.push([t.default.Warning,D.localize(10,null,a.path,u.path)])}if(typeof c.activationEvents=="undefined")return i.push([t.default.Error,D.localize(11,null,"activationEvents","main")]),i}if(typeof c.browser!="undefined"){if(typeof c.browser!="string")return i.push([t.default.Error,D.localize(12,null,"browser")]),i;{const a=(0,b.joinPath)(u,c.browser);(0,b.isEqualOrParent)(a,u)||i.push([t.default.Warning,D.localize(13,null,a.path,u.path)])}if(typeof c.activationEvents=="undefined")return i.push([t.default.Error,D.localize(14,null,"activationEvents","browser")]),i}if(!P.valid(c.version))return i.push([t.default.Error,D.localize(15,null)]),i;const s=[];if(!E(m,g,c,f,s))for(const a of s)i.push([t.default.Error,a]);return i}e.validateExtensionManifest=w;function E(m,g,u,c,f){return c||typeof u.main=="undefined"&&typeof u.browser=="undefined"?!0:I(m,g,u.engines.vscode,f)}e.isValidExtensionVersion=E;function d(m,g,u){return m==="*"||I(g,u,m)}e.isEngineValid=d;function I(m,g,u,c=[]){const f=T(C(u));if(!f)return c.push(D.localize(16,null,u)),!1;if(f.majorBase===0){if(!f.majorMustEqual||!f.minorMustEqual)return c.push(D.localize(17,null,u)),!1}else if(!f.majorMustEqual)return c.push(D.localize(18,null,u)),!1;return R(m,g,f)?!0:(c.push(D.localize(19,null,m,u)),!1)}function v(m){if(!Array.isArray(m))return!1;for(let g=0,u=m.length;g<u;g++)if(typeof m[g]!="string")return!1;return!0}}),define(ve[192],we([0,1,15,23]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getServiceMachineId=void 0;async function D(P,k,y){let p=y&&y.get("storage.serviceMachineId",-1)||null;if(p)return p;try{const T=(await k.readFile(P.serviceMachineIdResource)).value.toString();p=(0,t.isUUID)(T)?T:null}catch{p=null}if(!p){p=(0,t.generateUuid)();try{await k.writeFile(P.serviceMachineIdResource,b.VSBuffer.fromString(p))}catch{}}return y?.store("storage.serviceMachineId",p,-1,1),p}e.getServiceMachineId=D}),define(ve[59],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SyncDescriptor=void 0;class b{constructor(D,P=[],k=!1){this.ctor=D,this.staticArguments=P,this.supportsDelayedInstantiation=k}}e.SyncDescriptor=b}),define(ve[193],we([0,1,59]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSingletonServiceDescriptors=e.registerSingleton=void 0;const t=[];function D(k,y,p){y instanceof b.SyncDescriptor||(y=new b.SyncDescriptor(y,[],p)),t.push([k,y])}e.registerSingleton=D;function P(){return t}e.getSingletonServiceDescriptors=P}),define(ve[194],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=e.Node=void 0;class b{constructor(P){this.incoming=new Map,this.outgoing=new Map,this.data=P}}e.Node=b;class t{constructor(P){this._hashFn=P,this._nodes=new Map}roots(){const P=[];for(const k of this._nodes.values())k.outgoing.size===0&&P.push(k);return P}insertEdge(P,k){const y=this.lookupOrInsertNode(P),p=this.lookupOrInsertNode(k);y.outgoing.set(this._hashFn(k),p),p.incoming.set(this._hashFn(P),y)}removeNode(P){const k=this._hashFn(P);this._nodes.delete(k);for(const y of this._nodes.values())y.outgoing.delete(k),y.incoming.delete(k)}lookupOrInsertNode(P){const k=this._hashFn(P);let y=this._nodes.get(k);return y||(y=new b(P),this._nodes.set(k,y)),y}lookup(P){return this._nodes.get(this._hashFn(P))}isEmpty(){return this._nodes.size===0}toString(){const P=[];for(const[k,y]of this._nodes)P.push(`${k}, (incoming)[${[...y.incoming.keys()].join(", ")}], (outgoing)[${[...y.outgoing.keys()].join(",")}]`);return P.join(`
`)}findCycleSlow(){for(const[P,k]of this._nodes){const y=new Set([P]),p=this._findCycle(k,y);if(p)return p}}_findCycle(P,k){for(const[y,p]of P.outgoing){if(k.has(y))return[...k,y].join(" -> ");k.add(y);const C=this._findCycle(p,k);if(C)return C;k.delete(y)}}}e.Graph=t}),define(ve[5],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refineServiceDecorator=e.createDecorator=e.IInstantiationService=e._util=void 0;var b;(function(k){k.serviceIds=new Map,k.DI_TARGET="$di$target",k.DI_DEPENDENCIES="$di$dependencies";function y(p){return p[k.DI_DEPENDENCIES]||[]}k.getServiceDependencies=y})(b=e._util||(e._util={})),e.IInstantiationService=D("instantiationService");function t(k,y,p){y[b.DI_TARGET]===y?y[b.DI_DEPENDENCIES].push({id:k,index:p}):(y[b.DI_DEPENDENCIES]=[{id:k,index:p}],y[b.DI_TARGET]=y)}function D(k){if(b.serviceIds.has(k))return b.serviceIds.get(k);const y=function(p,C,T){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");t(y,p,T)};return y.toString=()=>k,b.serviceIds.set(k,y),y}e.createDecorator=D;function P(k){return k}e.refineServiceDecorator=P}),define(ve[25],we([0,1,12,4,5]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLanguageTagSettingPlainKey=e.getMigratedSettingValue=e.merge=e.getConfigurationValue=e.removeFromValueTree=e.addToValueTree=e.toValuesTree=e.ConfigurationTargetToString=e.ConfigurationTarget=e.isConfigurationUpdateOverrides=e.isConfigurationOverrides=e.IConfigurationService=void 0,e.IConfigurationService=(0,D.createDecorator)("configurationService");function P(m){return m&&typeof m=="object"&&(!m.overrideIdentifier||typeof m.overrideIdentifier=="string")&&(!m.resource||m.resource instanceof t.URI)}e.isConfigurationOverrides=P;function k(m){return m&&typeof m=="object"&&(!m.overrideIdentifiers||b.isArray(m.overrideIdentifiers))&&!m.overrideIdentifier&&(!m.resource||m.resource instanceof t.URI)}e.isConfigurationUpdateOverrides=k;var y;(function(m){m[m.APPLICATION=1]="APPLICATION",m[m.USER=2]="USER",m[m.USER_LOCAL=3]="USER_LOCAL",m[m.USER_REMOTE=4]="USER_REMOTE",m[m.WORKSPACE=5]="WORKSPACE",m[m.WORKSPACE_FOLDER=6]="WORKSPACE_FOLDER",m[m.DEFAULT=7]="DEFAULT",m[m.MEMORY=8]="MEMORY"})(y=e.ConfigurationTarget||(e.ConfigurationTarget={}));function p(m){switch(m){case 1:return"APPLICATION";case 2:return"USER";case 3:return"USER_LOCAL";case 4:return"USER_REMOTE";case 5:return"WORKSPACE";case 6:return"WORKSPACE_FOLDER";case 7:return"DEFAULT";case 8:return"MEMORY"}}e.ConfigurationTargetToString=p;function C(m,g){const u=Object.create(null);for(const c in m)T(u,c,m[c],g);return u}e.toValuesTree=C;function T(m,g,u,c){const f=g.split("."),i=f.pop();let s=m;for(let n=0;n<f.length;n++){const a=f[n];let o=s[a];switch(typeof o){case"undefined":o=s[a]=Object.create(null);break;case"object":break;default:c(`Ignoring ${g} as ${f.slice(0,n+1).join(".")} is ${JSON.stringify(o)}`);return}s=o}if(typeof s=="object"&&s!==null)try{s[i]=u}catch{c(`Ignoring ${g} as ${f.join(".")} is ${JSON.stringify(s)}`)}else c(`Ignoring ${g} as ${f.join(".")} is ${JSON.stringify(s)}`)}e.addToValueTree=T;function R(m,g){const u=g.split(".");w(m,u)}e.removeFromValueTree=R;function w(m,g){const u=g.shift();if(g.length===0){delete m[u];return}if(Object.keys(m).indexOf(u)!==-1){const c=m[u];typeof c=="object"&&!Array.isArray(c)&&(w(c,g),Object.keys(c).length===0&&delete m[u])}}function E(m,g,u){function c(s,n){let a=s;for(const o of n){if(typeof a!="object"||a===null)return;a=a[o]}return a}const f=g.split("."),i=c(m,f);return typeof i=="undefined"?u:i}e.getConfigurationValue=E;function d(m,g,u){Object.keys(g).forEach(c=>{c!=="__proto__"&&(c in m?b.isObject(m[c])&&b.isObject(g[c])?d(m[c],g[c],u):u&&(m[c]=g[c]):m[c]=g[c])})}e.merge=d;function I(m,g,u){const c=m.inspect(g),f=m.inspect(u);return typeof c.userValue!="undefined"||typeof c.workspaceValue!="undefined"||typeof c.workspaceFolderValue!="undefined"?c.value:typeof f.userValue!="undefined"||typeof f.workspaceValue!="undefined"||typeof f.workspaceFolderValue!="undefined"?f.value:c.defaultValue}e.getMigratedSettingValue=I;function v(m){return m.replace(/[\[\]]/g,"")}e.getLanguageTagSettingPlainKey=v}),define(ve[97],we([0,1,3,16,5]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.implies=e.SET_CONTEXT_COMMAND_ID=e.IContextKeyService=e.RawContextKey=e.ContextKeyNotRegexExpr=e.ContextKeyRegexExpr=e.ContextKeySmallerEqualsExpr=e.ContextKeySmallerExpr=e.ContextKeyGreaterEqualsExpr=e.ContextKeyGreaterExpr=e.ContextKeyNotExpr=e.ContextKeyNotEqualsExpr=e.ContextKeyNotInExpr=e.ContextKeyInExpr=e.ContextKeyEqualsExpr=e.ContextKeyDefinedExpr=e.ContextKeyTrueExpr=e.ContextKeyFalseExpr=e.expressionsAreEqualWithConstantSubstitution=e.ContextKeyExpr=e.ContextKeyExprType=void 0;const P=new Map;P.set("false",!1),P.set("true",!0),P.set("isMac",b.isMacintosh),P.set("isLinux",b.isLinux),P.set("isWindows",b.isWindows),P.set("isWeb",b.isWeb),P.set("isMacNative",b.isMacintosh&&!b.isWeb),P.set("isEdge",b.isEdge),P.set("isFirefox",b.isFirefox),P.set("isChrome",b.isChrome),P.set("isSafari",b.isSafari);const k=Object.prototype.hasOwnProperty;var y;(function(ee){ee[ee.False=0]="False",ee[ee.True=1]="True",ee[ee.Defined=2]="Defined",ee[ee.Not=3]="Not",ee[ee.Equals=4]="Equals",ee[ee.NotEquals=5]="NotEquals",ee[ee.And=6]="And",ee[ee.Regex=7]="Regex",ee[ee.NotRegex=8]="NotRegex",ee[ee.Or=9]="Or",ee[ee.In=10]="In",ee[ee.NotIn=11]="NotIn",ee[ee.Greater=12]="Greater",ee[ee.GreaterEquals=13]="GreaterEquals",ee[ee.Smaller=14]="Smaller",ee[ee.SmallerEquals=15]="SmallerEquals"})(y=e.ContextKeyExprType||(e.ContextKeyExprType={}));class p{static false(){return R.INSTANCE}static true(){return w.INSTANCE}static has(L){return E.create(L)}static equals(L,q){return d.create(L,q)}static notEquals(L,q){return m.create(L,q)}static regex(L,q){return n.create(L,q)}static in(L,q){return I.create(L,q)}static notIn(L,q){return v.create(L,q)}static not(L){return g.create(L)}static and(...L){return r.create(L,null)}static or(...L){return l.create(L,null,!0)}static greater(L,q){return c.create(L,q)}static greaterEquals(L,q){return f.create(L,q)}static smaller(L,q){return i.create(L,q)}static smallerEquals(L,q){return s.create(L,q)}static deserialize(L,q=!1){if(!!L)return this._deserializeOrExpression(L,q)}static _deserializeOrExpression(L,q){const ne=L.split("||");return l.create(ne.map(x=>this._deserializeAndExpression(x,q)),null,!0)}static _deserializeAndExpression(L,q){const ne=L.split("&&");return r.create(ne.map(x=>this._deserializeOne(x,q)),null)}static _deserializeOne(L,q){if(L=L.trim(),L.indexOf("!=")>=0){const ne=L.split("!=");return m.create(ne[0].trim(),this._deserializeValue(ne[1],q))}if(L.indexOf("==")>=0){const ne=L.split("==");return d.create(ne[0].trim(),this._deserializeValue(ne[1],q))}if(L.indexOf("=~")>=0){const ne=L.split("=~");return n.create(ne[0].trim(),this._deserializeRegexValue(ne[1],q))}if(L.indexOf(" not in ")>=0){const ne=L.split(" not in ");return v.create(ne[0].trim(),ne[1].trim())}if(L.indexOf(" in ")>=0){const ne=L.split(" in ");return I.create(ne[0].trim(),ne[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(L)){const ne=L.split(">=");return f.create(ne[0].trim(),ne[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(L)){const ne=L.split(">");return c.create(ne[0].trim(),ne[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(L)){const ne=L.split("<=");return s.create(ne[0].trim(),ne[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(L)){const ne=L.split("<");return i.create(ne[0].trim(),ne[1].trim())}return/^\!\s*/.test(L)?g.create(L.substr(1).trim()):E.create(L)}static _deserializeValue(L,q){if(L=L.trim(),L==="true")return!0;if(L==="false")return!1;const ne=/^'([^']*)'$/.exec(L);return ne?ne[1].trim():L}static _deserializeRegexValue(L,q){if((0,t.isFalsyOrWhitespace)(L)){if(q)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}const ne=L.indexOf("/"),x=L.lastIndexOf("/");if(ne===x||ne<0){if(q)throw new Error(`bad regexp-value '${L}', missing /-enclosure`);return console.warn(`bad regexp-value '${L}', missing /-enclosure`),null}const fe=L.slice(ne+1,x),M=L[x+1]==="i"?"i":"";try{return new RegExp(fe,M)}catch(B){if(q)throw new Error(`bad regexp-value '${L}', parse error: ${B}`);return console.warn(`bad regexp-value '${L}', parse error: ${B}`),null}}}e.ContextKeyExpr=p;function C(ee,L){const q=ee?ee.substituteConstants():void 0,ne=L?L.substituteConstants():void 0;return!q&&!ne?!0:!q||!ne?!1:q.equals(ne)}e.expressionsAreEqualWithConstantSubstitution=C;function T(ee,L){return ee.cmp(L)}class R{constructor(){this.type=0}cmp(L){return this.type-L.type}equals(L){return L.type===this.type}substituteConstants(){return this}evaluate(L){return!1}serialize(){return"false"}keys(){return[]}map(L){return this}negate(){return w.INSTANCE}}e.ContextKeyFalseExpr=R,R.INSTANCE=new R;class w{constructor(){this.type=1}cmp(L){return this.type-L.type}equals(L){return L.type===this.type}substituteConstants(){return this}evaluate(L){return!0}serialize(){return"true"}keys(){return[]}map(L){return this}negate(){return R.INSTANCE}}e.ContextKeyTrueExpr=w,w.INSTANCE=new w;class E{constructor(L,q){this.key=L,this.negated=q,this.type=2}static create(L,q=null){const ne=P.get(L);return typeof ne=="boolean"?ne?w.INSTANCE:R.INSTANCE:new E(L,q)}cmp(L){return L.type!==this.type?this.type-L.type:S(this.key,L.key)}equals(L){return L.type===this.type?this.key===L.key:!1}substituteConstants(){const L=P.get(this.key);return typeof L=="boolean"?L?w.INSTANCE:R.INSTANCE:this}evaluate(L){return!!L.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}map(L){return L.mapDefined(this.key)}negate(){return this.negated||(this.negated=g.create(this.key,this)),this.negated}}e.ContextKeyDefinedExpr=E;class d{constructor(L,q,ne){this.key=L,this.value=q,this.negated=ne,this.type=4}static create(L,q,ne=null){if(typeof q=="boolean")return q?E.create(L,ne):g.create(L,ne);const x=P.get(L);return typeof x=="boolean"?q===(x?"true":"false")?w.INSTANCE:R.INSTANCE:new d(L,q,ne)}cmp(L){return L.type!==this.type?this.type-L.type:A(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){const L=P.get(this.key);if(typeof L=="boolean"){const q=L?"true":"false";return this.value===q?w.INSTANCE:R.INSTANCE}return this}evaluate(L){return L.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}map(L){return L.mapEquals(this.key,this.value)}negate(){return this.negated||(this.negated=m.create(this.key,this.value,this)),this.negated}}e.ContextKeyEqualsExpr=d;class I{constructor(L,q){this.key=L,this.valueKey=q,this.type=10,this.negated=null}static create(L,q){return new I(L,q)}cmp(L){return L.type!==this.type?this.type-L.type:A(this.key,this.valueKey,L.key,L.valueKey)}equals(L){return L.type===this.type?this.key===L.key&&this.valueKey===L.valueKey:!1}substituteConstants(){return this}evaluate(L){const q=L.getValue(this.valueKey),ne=L.getValue(this.key);return Array.isArray(q)?q.includes(ne):typeof ne=="string"&&typeof q=="object"&&q!==null?k.call(q,ne):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}map(L){return L.mapIn(this.key,this.valueKey)}negate(){return this.negated||(this.negated=v.create(this.key,this.valueKey)),this.negated}}e.ContextKeyInExpr=I;class v{constructor(L,q){this.key=L,this.valueKey=q,this.type=11,this._negated=I.create(L,q)}static create(L,q){return new v(L,q)}cmp(L){return L.type!==this.type?this.type-L.type:this._negated.cmp(L._negated)}equals(L){return L.type===this.type?this._negated.equals(L._negated):!1}substituteConstants(){return this}evaluate(L){return!this._negated.evaluate(L)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}map(L){return L.mapNotIn(this.key,this.valueKey)}negate(){return this._negated}}e.ContextKeyNotInExpr=v;class m{constructor(L,q,ne){this.key=L,this.value=q,this.negated=ne,this.type=5}static create(L,q,ne=null){if(typeof q=="boolean")return q?g.create(L,ne):E.create(L,ne);const x=P.get(L);return typeof x=="boolean"?q===(x?"true":"false")?R.INSTANCE:w.INSTANCE:new m(L,q,ne)}cmp(L){return L.type!==this.type?this.type-L.type:A(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){const L=P.get(this.key);if(typeof L=="boolean"){const q=L?"true":"false";return this.value===q?R.INSTANCE:w.INSTANCE}return this}evaluate(L){return L.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}map(L){return L.mapNotEquals(this.key,this.value)}negate(){return this.negated||(this.negated=d.create(this.key,this.value,this)),this.negated}}e.ContextKeyNotEqualsExpr=m;class g{constructor(L,q){this.key=L,this.negated=q,this.type=3}static create(L,q=null){const ne=P.get(L);return typeof ne=="boolean"?ne?R.INSTANCE:w.INSTANCE:new g(L,q)}cmp(L){return L.type!==this.type?this.type-L.type:S(this.key,L.key)}equals(L){return L.type===this.type?this.key===L.key:!1}substituteConstants(){const L=P.get(this.key);return typeof L=="boolean"?L?R.INSTANCE:w.INSTANCE:this}evaluate(L){return!L.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}map(L){return L.mapNot(this.key)}negate(){return this.negated||(this.negated=E.create(this.key,this)),this.negated}}e.ContextKeyNotExpr=g;function u(ee,L){if(typeof ee=="string"){const q=parseFloat(ee);isNaN(q)||(ee=q)}return typeof ee=="string"||typeof ee=="number"?L(ee):R.INSTANCE}class c{constructor(L,q,ne){this.key=L,this.value=q,this.negated=ne,this.type=12}static create(L,q,ne=null){return u(q,x=>new c(L,x,ne))}cmp(L){return L.type!==this.type?this.type-L.type:A(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){return this}evaluate(L){return typeof this.value=="string"?!1:parseFloat(L.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}map(L){return L.mapGreater(this.key,this.value)}negate(){return this.negated||(this.negated=s.create(this.key,this.value,this)),this.negated}}e.ContextKeyGreaterExpr=c;class f{constructor(L,q,ne){this.key=L,this.value=q,this.negated=ne,this.type=13}static create(L,q,ne=null){return u(q,x=>new f(L,x,ne))}cmp(L){return L.type!==this.type?this.type-L.type:A(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){return this}evaluate(L){return typeof this.value=="string"?!1:parseFloat(L.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}map(L){return L.mapGreaterEquals(this.key,this.value)}negate(){return this.negated||(this.negated=i.create(this.key,this.value,this)),this.negated}}e.ContextKeyGreaterEqualsExpr=f;class i{constructor(L,q,ne){this.key=L,this.value=q,this.negated=ne,this.type=14}static create(L,q,ne=null){return u(q,x=>new i(L,x,ne))}cmp(L){return L.type!==this.type?this.type-L.type:A(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){return this}evaluate(L){return typeof this.value=="string"?!1:parseFloat(L.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}map(L){return L.mapSmaller(this.key,this.value)}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}e.ContextKeySmallerExpr=i;class s{constructor(L,q,ne){this.key=L,this.value=q,this.negated=ne,this.type=15}static create(L,q,ne=null){return u(q,x=>new s(L,x,ne))}cmp(L){return L.type!==this.type?this.type-L.type:A(this.key,this.value,L.key,L.value)}equals(L){return L.type===this.type?this.key===L.key&&this.value===L.value:!1}substituteConstants(){return this}evaluate(L){return typeof this.value=="string"?!1:parseFloat(L.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}map(L){return L.mapSmallerEquals(this.key,this.value)}negate(){return this.negated||(this.negated=c.create(this.key,this.value,this)),this.negated}}e.ContextKeySmallerEqualsExpr=s;class n{constructor(L,q){this.key=L,this.regexp=q,this.type=7,this.negated=null}static create(L,q){return new n(L,q)}cmp(L){if(L.type!==this.type)return this.type-L.type;if(this.key<L.key)return-1;if(this.key>L.key)return 1;const q=this.regexp?this.regexp.source:"",ne=L.regexp?L.regexp.source:"";return q<ne?-1:q>ne?1:0}equals(L){if(L.type===this.type){const q=this.regexp?this.regexp.source:"",ne=L.regexp?L.regexp.source:"";return this.key===L.key&&q===ne}return!1}substituteConstants(){return this}evaluate(L){const q=L.getValue(this.key);return this.regexp?this.regexp.test(q):!1}serialize(){const L=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${L}`}keys(){return[this.key]}map(L){return L.mapRegex(this.key,this.regexp)}negate(){return this.negated||(this.negated=a.create(this)),this.negated}}e.ContextKeyRegexExpr=n;class a{constructor(L){this._actual=L,this.type=8}static create(L){return new a(L)}cmp(L){return L.type!==this.type?this.type-L.type:this._actual.cmp(L._actual)}equals(L){return L.type===this.type?this._actual.equals(L._actual):!1}substituteConstants(){return this}evaluate(L){return!this._actual.evaluate(L)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}map(L){return new a(this._actual.map(L))}negate(){return this._actual}}e.ContextKeyNotRegexExpr=a;function o(ee){let L=null;for(let q=0,ne=ee.length;q<ne;q++){const x=ee[q].substituteConstants();if(ee[q]!==x&&L===null){L=[];for(let fe=0;fe<q;fe++)L[fe]=ee[fe]}L!==null&&(L[q]=x)}return L===null?ee:L}class r{constructor(L,q){this.expr=L,this.negated=q,this.type=6}static create(L,q){return r._normalizeArr(L,q)}cmp(L){if(L.type!==this.type)return this.type-L.type;if(this.expr.length<L.expr.length)return-1;if(this.expr.length>L.expr.length)return 1;for(let q=0,ne=this.expr.length;q<ne;q++){const x=T(this.expr[q],L.expr[q]);if(x!==0)return x}return 0}equals(L){if(L.type===this.type){if(this.expr.length!==L.expr.length)return!1;for(let q=0,ne=this.expr.length;q<ne;q++)if(!this.expr[q].equals(L.expr[q]))return!1;return!0}return!1}substituteConstants(){const L=o(this.expr);return L===this.expr?this:r.create(L,this.negated)}evaluate(L){for(let q=0,ne=this.expr.length;q<ne;q++)if(!this.expr[q].evaluate(L))return!1;return!0}static _normalizeArr(L,q){const ne=[];let x=!1;for(const fe of L)if(!!fe){if(fe.type===1){x=!0;continue}if(fe.type===0)return R.INSTANCE;if(fe.type===6){ne.push(...fe.expr);continue}ne.push(fe)}if(ne.length===0&&x)return w.INSTANCE;if(ne.length!==0){if(ne.length===1)return ne[0];ne.sort(T);for(let fe=1;fe<ne.length;fe++)ne[fe-1].equals(ne[fe])&&(ne.splice(fe,1),fe--);if(ne.length===1)return ne[0];for(;ne.length>1;){const fe=ne[ne.length-1];if(fe.type!==9)break;ne.pop();const M=ne.pop(),B=ne.length===0,U=l.create(fe.expr.map(z=>r.create([z,M],null)),null,B);U&&(ne.push(U),ne.sort(T))}return ne.length===1?ne[0]:new r(ne,q)}}serialize(){return this.expr.map(L=>L.serialize()).join(" && ")}keys(){const L=[];for(const q of this.expr)L.push(...q.keys());return L}map(L){return new r(this.expr.map(q=>q.map(L)),null)}negate(){if(!this.negated){const L=[];for(const q of this.expr)L.push(q.negate());this.negated=l.create(L,this,!0)}return this.negated}}class l{constructor(L,q){this.expr=L,this.negated=q,this.type=9}static create(L,q,ne){return l._normalizeArr(L,q,ne)}cmp(L){if(L.type!==this.type)return this.type-L.type;if(this.expr.length<L.expr.length)return-1;if(this.expr.length>L.expr.length)return 1;for(let q=0,ne=this.expr.length;q<ne;q++){const x=T(this.expr[q],L.expr[q]);if(x!==0)return x}return 0}equals(L){if(L.type===this.type){if(this.expr.length!==L.expr.length)return!1;for(let q=0,ne=this.expr.length;q<ne;q++)if(!this.expr[q].equals(L.expr[q]))return!1;return!0}return!1}substituteConstants(){const L=o(this.expr);return L===this.expr?this:l.create(L,this.negated,!1)}evaluate(L){for(let q=0,ne=this.expr.length;q<ne;q++)if(this.expr[q].evaluate(L))return!0;return!1}static _normalizeArr(L,q,ne){let x=[],fe=!1;if(L){for(let M=0,B=L.length;M<B;M++){const U=L[M];if(!!U){if(U.type===0){fe=!0;continue}if(U.type===1)return w.INSTANCE;if(U.type===9){x=x.concat(U.expr);continue}x.push(U)}}if(x.length===0&&fe)return R.INSTANCE;x.sort(T)}if(x.length!==0){if(x.length===1)return x[0];for(let M=1;M<x.length;M++)x[M-1].equals(x[M])&&(x.splice(M,1),M--);if(x.length===1)return x[0];if(ne){for(let M=0;M<x.length;M++)for(let B=M+1;B<x.length;B++)$(x[M],x[B])&&(x.splice(B,1),B--);if(x.length===1)return x[0]}return new l(x,q)}}serialize(){return this.expr.map(L=>L.serialize()).join(" || ")}keys(){const L=[];for(const q of this.expr)L.push(...q.keys());return L}map(L){return new l(this.expr.map(q=>q.map(L)),null)}negate(){if(!this.negated){const L=[];for(const q of this.expr)L.push(q.negate());for(;L.length>1;){const q=L.shift(),ne=L.shift(),x=[];for(const M of W(q))for(const B of W(ne))x.push(r.create([M,B],null));const fe=L.length===0;L.unshift(l.create(x,null,fe))}this.negated=L[0]}return this.negated}}class h extends E{constructor(L,q,ne){super(L,null);this._defaultValue=q,typeof ne=="object"?h._info.push({...ne,key:L}):ne!==!0&&h._info.push({key:L,description:ne,type:q!=null?typeof q:void 0})}static all(){return h._info.values()}bindTo(L){return L.createKey(this.key,this._defaultValue)}getValue(L){return L.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(L){return d.create(this.key,L)}notEqualsTo(L){return m.create(this.key,L)}}e.RawContextKey=h,h._info=[],e.IContextKeyService=(0,D.createDecorator)("contextKeyService"),e.SET_CONTEXT_COMMAND_ID="setContext";function S(ee,L){return ee<L?-1:ee>L?1:0}function A(ee,L,q,ne){return ee<q?-1:ee>q?1:L<ne?-1:L>ne?1:0}function $(ee,L){if(L.type===6&&ee.type!==9&&ee.type!==6){for(const x of L.expr)if(ee.equals(x))return!0}const q=ee.negate(),ne=W(q).concat(W(L));ne.sort(T);for(let x=0;x<ne.length;x++){const M=ne[x].negate();for(let B=x+1;B<ne.length;B++){const U=ne[B];if(M.equals(U))return!0}}return!1}e.implies=$;function W(ee){return ee.type===9?ee.expr:[ee]}}),define(ve[71],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemoryCredentialsProvider=e.ICredentialsMainService=e.ICredentialsService=void 0,e.ICredentialsService=(0,b.createDecorator)("credentialsService"),e.ICredentialsMainService=(0,b.createDecorator)("credentialsMainService");class t{constructor(){this.secretVault={}}async getPassword(P,k){return this.secretVault[P]?.[k]??null}async setPassword(P,k,y){this.secretVault[P]=this.secretVault[P]??{},this.secretVault[P][k]=y}async deletePassword(P,k){return this.secretVault[P]?.[k]?(delete this.secretVault[P][k],Object.keys(this.secretVault[P]).length===0&&delete this.secretVault[P],!0):!1}async findPassword(P){return JSON.stringify(this.secretVault[P])??null}async findCredentials(P){const k=[];for(const y of Object.keys(this.secretVault[P]||{}))k.push({account:y,password:this.secretVault[P][y]});return k}async clear(){this.secretVault={}}}e.InMemoryCredentialsProvider=t}),define(ve[195],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullDiagnosticsService=e.isRemoteDiagnosticError=e.IDiagnosticsService=e.ID=void 0,e.ID="diagnosticsService",e.IDiagnosticsService=(0,b.createDecorator)(e.ID);function t(P){return!!P.hostName&&!!P.errorMessage}e.isRemoteDiagnosticError=t;class D{async getPerformanceInfo(k,y){return{}}async getSystemInfo(k,y){return{processArgs:"nullProcessArgs",gpuStatus:"nullGpuStatus",screenReader:"nullScreenReader",remoteData:[],os:"nullOs",memory:"nullMemory",vmHint:"nullVmHint"}}async getDiagnostics(k,y){return""}async getWorkspaceFileExtensions(k){return{extensions:[]}}async reportWorkspaceStats(k){}}e.NullDiagnosticsService=D}),define(ve[72],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IDownloadService=void 0,e.IDownloadService=(0,b.createDecorator)("downloadService")}),define(ve[196],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEncryptionMainService=void 0,e.IEncryptionMainService=(0,b.createDecorator)("encryptionMainService")}),define(ve[29],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INativeEnvironmentService=e.IEnvironmentService=void 0,e.IEnvironmentService=(0,b.createDecorator)("environmentService"),e.INativeEnvironmentService=(0,b.refineServiceDecorator)(e.IEnvironmentService)}),define(ve[31],we([0,1,162,5]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IDefaultExtensionsProfileInitService=e.IExtensionManagementCLIService=e.PreferencesLocalizedLabel=e.PreferencesLabel=e.ExtensionsChannelId=e.ExtensionsLocalizedLabel=e.ExtensionsLabel=e.IExtensionTipsService=e.IGlobalExtensionEnablementService=e.ENABLED_EXTENSIONS_STORAGE_PATH=e.DISABLED_EXTENSIONS_STORAGE_PATH=e.IServerExtensionManagementService=e.IExtensionManagementService=e.ExtensionManagementError=e.ExtensionManagementErrorCode=e.IExtensionGalleryService=e.InstallOperation=e.StatisticType=e.SortOrder=e.SortBy=e.isIExtensionIdentifier=e.getFallbackTargetPlarforms=e.isTargetPlatformCompatible=e.isNotWebExtensionInWebTargetPlatform=e.getTargetPlatform=e.toTargetPlatform=e.TargetPlatformToString=e.WEB_EXTENSION_TAG=e.EXTENSION_IDENTIFIER_REGEX=e.EXTENSION_IDENTIFIER_PATTERN=void 0,e.EXTENSION_IDENTIFIER_PATTERN="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",e.EXTENSION_IDENTIFIER_REGEX=new RegExp(e.EXTENSION_IDENTIFIER_PATTERN),e.WEB_EXTENSION_TAG="__web_extension";function D(m){switch(m){case"win32-x64":return"Windows 64 bit";case"win32-ia32":return"Windows 32 bit";case"win32-arm64":return"Windows ARM";case"linux-x64":return"Linux 64 bit";case"linux-arm64":return"Linux ARM 64";case"linux-armhf":return"Linux ARM";case"alpine-x64":return"Alpine Linux 64 bit";case"alpine-arm64":return"Alpine ARM 64";case"darwin-x64":return"Mac";case"darwin-arm64":return"Mac Silicon";case"web":return"Web";case"universal":return"universal";case"unknown":return"unknown";case"undefined":return"undefined"}}e.TargetPlatformToString=D;function P(m){switch(m){case"win32-x64":return"win32-x64";case"win32-ia32":return"win32-ia32";case"win32-arm64":return"win32-arm64";case"linux-x64":return"linux-x64";case"linux-arm64":return"linux-arm64";case"linux-armhf":return"linux-armhf";case"alpine-x64":return"alpine-x64";case"alpine-arm64":return"alpine-arm64";case"darwin-x64":return"darwin-x64";case"darwin-arm64":return"darwin-arm64";case"web":return"web";case"universal":return"universal";default:return"unknown"}}e.toTargetPlatform=P;function k(m,g){switch(m){case 3:return g==="x64"?"win32-x64":g==="ia32"?"win32-ia32":g==="arm64"?"win32-arm64":"unknown";case 2:return g==="x64"?"linux-x64":g==="arm64"?"linux-arm64":g==="arm"?"linux-armhf":"unknown";case"alpine":return g==="x64"?"alpine-x64":g==="arm64"?"alpine-arm64":"unknown";case 1:return g==="x64"?"darwin-x64":g==="arm64"?"darwin-arm64":"unknown";case 0:return"web"}}e.getTargetPlatform=k;function y(m,g){return g==="web"&&!m.includes("web")}e.isNotWebExtensionInWebTargetPlatform=y;function p(m,g,u){return y(g,u)?!1:m==="undefined"||m==="universal"?!0:m==="unknown"?!1:m===u?!0:C(u).includes(m)}e.isTargetPlatformCompatible=p;function C(m){switch(m){case"win32-x64":return["win32-ia32"];case"win32-arm64":return["win32-ia32"]}return[]}e.getFallbackTargetPlarforms=C;function T(m){return m&&typeof m=="object"&&typeof m.id=="string"&&(!m.uuid||typeof m.uuid=="string")}e.isIExtensionIdentifier=T;var R;(function(m){m[m.NoneOrRelevance=0]="NoneOrRelevance",m[m.LastUpdatedDate=1]="LastUpdatedDate",m[m.Title=2]="Title",m[m.PublisherName=3]="PublisherName",m[m.InstallCount=4]="InstallCount",m[m.PublishedDate=10]="PublishedDate",m[m.AverageRating=6]="AverageRating",m[m.WeightedRating=12]="WeightedRating"})(R=e.SortBy||(e.SortBy={}));var w;(function(m){m[m.Default=0]="Default",m[m.Ascending=1]="Ascending",m[m.Descending=2]="Descending"})(w=e.SortOrder||(e.SortOrder={}));var E;(function(m){m.Install="install",m.Uninstall="uninstall"})(E=e.StatisticType||(e.StatisticType={}));var d;(function(m){m[m.None=1]="None",m[m.Install=2]="Install",m[m.Update=3]="Update",m[m.Migrate=4]="Migrate"})(d=e.InstallOperation||(e.InstallOperation={})),e.IExtensionGalleryService=(0,t.createDecorator)("extensionGalleryService");var I;(function(m){m.Unsupported="Unsupported",m.Deprecated="Deprecated",m.Malicious="Malicious",m.Incompatible="Incompatible",m.IncompatiblePreRelease="IncompatiblePreRelease",m.IncompatibleTargetPlatform="IncompatibleTargetPlatform",m.ReleaseVersionNotFound="ReleaseVersionNotFound",m.Invalid="Invalid",m.Download="Download",m.Extract="Extract",m.Delete="Delete",m.Rename="Rename",m.CorruptZip="CorruptZip",m.IncompleteZip="IncompleteZip",m.Internal="Internal"})(I=e.ExtensionManagementErrorCode||(e.ExtensionManagementErrorCode={}));class v extends Error{constructor(g,u){super(g);this.code=u,this.name=u}}e.ExtensionManagementError=v,e.IExtensionManagementService=(0,t.createDecorator)("extensionManagementService"),e.IServerExtensionManagementService=(0,t.refineServiceDecorator)(e.IExtensionManagementService),e.DISABLED_EXTENSIONS_STORAGE_PATH="extensionsIdentifiers/disabled",e.ENABLED_EXTENSIONS_STORAGE_PATH="extensionsIdentifiers/enabled",e.IGlobalExtensionEnablementService=(0,t.createDecorator)("IGlobalExtensionEnablementService"),e.IExtensionTipsService=(0,t.createDecorator)("IExtensionTipsService"),e.ExtensionsLabel=(0,b.localize)(0,null),e.ExtensionsLocalizedLabel={value:e.ExtensionsLabel,original:"Extensions"},e.ExtensionsChannelId="extensions",e.PreferencesLabel=(0,b.localize)(1,null),e.PreferencesLocalizedLabel={value:e.PreferencesLabel,original:"Preferences"},e.IExtensionManagementCLIService=(0,t.createDecorator)("IExtensionManagementCLIService"),e.IDefaultExtensionsProfileInitService=(0,t.createDecorator)("IDefaultExtensionsProfileInitService")}),define(ve[197],we([0,1,7,2,42,22,4,69,31]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionTipsChannel=e.ExtensionManagementChannelClient=e.ExtensionManagementChannel=void 0;function C(v,m){return k.URI.revive(m?m.transformIncoming(v):v)}function T(v,m){return m?m.transformOutgoingURI(v):v}function R(v,m){m=m||y.DefaultURITransformer;const g=v.manifest;return{...(0,y.transformAndReviveIncomingURIs)({...v,manifest:void 0},m),manifest:g}}function w(v,m){return m?(0,P.cloneAndChange)(v,g=>g instanceof k.URI?m.transformOutgoingURI(g):void 0):v}class E{constructor(m,g){this.service=m,this.getUriTransformer=g,this.onInstallExtension=b.Event.buffer(m.onInstallExtension,!0),this.onDidInstallExtensions=b.Event.buffer(m.onDidInstallExtensions,!0),this.onUninstallExtension=b.Event.buffer(m.onUninstallExtension,!0),this.onDidUninstallExtension=b.Event.buffer(m.onDidUninstallExtension,!0)}listen(m,g){const u=this.getUriTransformer(m);switch(g){case"onInstallExtension":return this.onInstallExtension;case"onDidInstallExtensions":return b.Event.map(this.onDidInstallExtensions,c=>c.map(f=>({...f,local:f.local?w(f.local,u):f.local})));case"onUninstallExtension":return this.onUninstallExtension;case"onDidUninstallExtension":return this.onDidUninstallExtension}throw new Error("Invalid listen")}call(m,g,u){const c=this.getUriTransformer(m);switch(g){case"zip":return this.service.zip(R(u[0],c)).then(f=>T(f,c));case"unzip":return this.service.unzip(C(u[0],c));case"install":return this.service.install(C(u[0],c),(0,D.revive)(u[1]));case"getManifest":return this.service.getManifest(C(u[0],c));case"getTargetPlatform":return this.service.getTargetPlatform();case"canInstall":return this.service.canInstall(u[0]);case"installFromGallery":return this.service.installFromGallery(u[0],(0,D.revive)(u[1]));case"uninstall":return this.service.uninstall(R(u[0],c),(0,D.revive)(u[1]));case"reinstallFromGallery":return this.service.reinstallFromGallery(R(u[0],c));case"getInstalled":return this.service.getInstalled(u[0],k.URI.revive(u[1])).then(f=>f.map(i=>w(i,c)));case"getMetadata":return this.service.getMetadata(R(u[0],c));case"updateMetadata":return this.service.updateMetadata(R(u[0],c),u[1]).then(f=>w(f,c));case"updateExtensionScope":return this.service.updateExtensionScope(R(u[0],c),u[1]).then(f=>w(f,c));case"getExtensionsControlManifest":return this.service.getExtensionsControlManifest()}throw new Error("Invalid call")}}e.ExtensionManagementChannel=E;class d extends t.Disposable{constructor(m){super();this.channel=m,this._onInstallExtension=this._register(new b.Emitter),this._onDidInstallExtensions=this._register(new b.Emitter),this._onUninstallExtension=this._register(new b.Emitter),this._onDidUninstallExtension=this._register(new b.Emitter),this._register(this.channel.listen("onInstallExtension")(g=>this._onInstallExtension.fire({identifier:g.identifier,source:this.isUriComponents(g.source)?k.URI.revive(g.source):g.source,profileLocation:k.URI.revive(g.profileLocation)}))),this._register(this.channel.listen("onDidInstallExtensions")(g=>this._onDidInstallExtensions.fire(g.map(u=>({...u,local:u.local?R(u.local,null):u.local,source:this.isUriComponents(u.source)?k.URI.revive(u.source):u.source,profileLocation:k.URI.revive(u.profileLocation)}))))),this._register(this.channel.listen("onUninstallExtension")(g=>this._onUninstallExtension.fire({identifier:g.identifier,profileLocation:k.URI.revive(g.profileLocation)}))),this._register(this.channel.listen("onDidUninstallExtension")(g=>this._onDidUninstallExtension.fire({...g,profileLocation:k.URI.revive(g.profileLocation)})))}get onInstallExtension(){return this._onInstallExtension.event}get onDidInstallExtensions(){return this._onDidInstallExtensions.event}get onUninstallExtension(){return this._onUninstallExtension.event}get onDidUninstallExtension(){return this._onDidUninstallExtension.event}isUriComponents(m){return m?typeof m.path=="string"&&typeof m.scheme=="string":!1}getTargetPlatform(){return this._targetPlatformPromise||(this._targetPlatformPromise=this.channel.call("getTargetPlatform")),this._targetPlatformPromise}async canInstall(m){const g=await this.getTargetPlatform();return m.allTargetPlatforms.some(u=>(0,p.isTargetPlatformCompatible)(u,m.allTargetPlatforms,g))}zip(m){return Promise.resolve(this.channel.call("zip",[m]).then(g=>k.URI.revive(g)))}unzip(m){return Promise.resolve(this.channel.call("unzip",[m]))}install(m,g){return Promise.resolve(this.channel.call("install",[m,g])).then(u=>R(u,null))}getManifest(m){return Promise.resolve(this.channel.call("getManifest",[m]))}installFromGallery(m,g){return Promise.resolve(this.channel.call("installFromGallery",[m,g])).then(u=>R(u,null))}uninstall(m,g){return Promise.resolve(this.channel.call("uninstall",[m,g]))}reinstallFromGallery(m){return Promise.resolve(this.channel.call("reinstallFromGallery",[m]))}getInstalled(m=null,g){return Promise.resolve(this.channel.call("getInstalled",[m,g])).then(u=>u.map(c=>R(c,null)))}getMetadata(m){return Promise.resolve(this.channel.call("getMetadata",[m]))}updateMetadata(m,g){return Promise.resolve(this.channel.call("updateMetadata",[m,g])).then(u=>R(u,null))}updateExtensionScope(m,g){return Promise.resolve(this.channel.call("updateExtensionScope",[m,g])).then(u=>R(u,null))}getExtensionsControlManifest(){return Promise.resolve(this.channel.call("getExtensionsControlManifest"))}registerParticipant(){throw new Error("Not Supported")}}e.ExtensionManagementChannelClient=d;class I{constructor(m){this.service=m}listen(m,g){throw new Error("Invalid listen")}call(m,g,u){switch(g){case"getConfigBasedTips":return this.service.getConfigBasedTips(k.URI.revive(u[0]));case"getImportantExecutableBasedTips":return this.service.getImportantExecutableBasedTips();case"getOtherExecutableBasedTips":return this.service.getOtherExecutableBasedTips();case"getAllWorkspacesTips":return this.service.getAllWorkspacesTips()}throw new Error("Invalid call")}}e.ExtensionTipsChannel=I}),define(ve[17],we([0,1,24,6,16,12,4,169,5]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPlatformLimits=e.Arch=e.ByteSize=e.FALLBACK_MAX_MEMORY_SIZE_MB=e.MIN_MAX_MEMORY_SIZE_MB=e.whenProviderRegistered=e.etag=e.ETAG_DISABLED=e.FileKind=e.FILES_EXCLUDE_CONFIG=e.FILES_ASSOCIATIONS_CONFIG=e.HotExitConfiguration=e.AutoSaveConfiguration=e.FileOperationResult=e.NotModifiedSinceFileOperationError=e.FileOperationError=e.isParent=e.FileChangesEvent=e.FileChangeType=e.FileOperationEvent=e.FileOperation=e.toFileOperationResult=e.toFileSystemProviderErrorCode=e.markAsFileSystemProviderError=e.ensureFileSystemProviderError=e.createFileSystemProviderError=e.FileSystemProviderError=e.FileSystemProviderErrorCode=e.hasFileAtomicReadCapability=e.hasFileReadStreamCapability=e.hasOpenReadWriteCloseCapability=e.hasFileCloneCapability=e.hasFileFolderCopyCapability=e.hasReadWriteCapability=e.FileSystemProviderCapabilities=e.FilePermission=e.FileType=e.isFileOpenForWriteOptions=e.IFileService=void 0,e.IFileService=(0,p.createDecorator)("fileService");function C(M){return M.create===!0}e.isFileOpenForWriteOptions=C;var T;(function(M){M[M.Unknown=0]="Unknown",M[M.File=1]="File",M[M.Directory=2]="Directory",M[M.SymbolicLink=64]="SymbolicLink"})(T=e.FileType||(e.FileType={}));var R;(function(M){M[M.Readonly=1]="Readonly"})(R=e.FilePermission||(e.FilePermission={}));var w;(function(M){M[M.FileReadWrite=2]="FileReadWrite",M[M.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",M[M.FileReadStream=16]="FileReadStream",M[M.FileFolderCopy=8]="FileFolderCopy",M[M.PathCaseSensitive=1024]="PathCaseSensitive",M[M.Readonly=2048]="Readonly",M[M.Trash=4096]="Trash",M[M.FileWriteUnlock=8192]="FileWriteUnlock",M[M.FileAtomicRead=16384]="FileAtomicRead",M[M.FileClone=32768]="FileClone"})(w=e.FileSystemProviderCapabilities||(e.FileSystemProviderCapabilities={}));function E(M){return!!(M.capabilities&2)}e.hasReadWriteCapability=E;function d(M){return!!(M.capabilities&8)}e.hasFileFolderCopyCapability=d;function I(M){return!!(M.capabilities&32768)}e.hasFileCloneCapability=I;function v(M){return!!(M.capabilities&4)}e.hasOpenReadWriteCloseCapability=v;function m(M){return!!(M.capabilities&16)}e.hasFileReadStreamCapability=m;function g(M){return E(M)?!!(M.capabilities&16384):!1}e.hasFileAtomicReadCapability=g;var u;(function(M){M.FileExists="EntryExists",M.FileNotFound="EntryNotFound",M.FileNotADirectory="EntryNotADirectory",M.FileIsADirectory="EntryIsADirectory",M.FileExceedsMemoryLimit="EntryExceedsMemoryLimit",M.FileTooLarge="EntryTooLarge",M.FileWriteLocked="EntryWriteLocked",M.NoPermissions="NoPermissions",M.Unavailable="Unavailable",M.Unknown="Unknown"})(u=e.FileSystemProviderErrorCode||(e.FileSystemProviderErrorCode={}));class c extends Error{constructor(B,U){super(B);this.code=U}}e.FileSystemProviderError=c;function f(M,B){const U=new c(M.toString(),B);return s(U,B),U}e.createFileSystemProviderError=f;function i(M){return M||f((0,y.localize)(0,null),u.Unknown)}e.ensureFileSystemProviderError=i;function s(M,B){return M.name=B?`${B} (FileSystemError)`:"FileSystemError",M}e.markAsFileSystemProviderError=s;function n(M){if(!M)return u.Unknown;if(M instanceof c)return M.code;const B=/^(.+) \(FileSystemError\)$/.exec(M.name);if(!B)return u.Unknown;switch(B[1]){case u.FileExists:return u.FileExists;case u.FileIsADirectory:return u.FileIsADirectory;case u.FileNotADirectory:return u.FileNotADirectory;case u.FileNotFound:return u.FileNotFound;case u.FileExceedsMemoryLimit:return u.FileExceedsMemoryLimit;case u.FileTooLarge:return u.FileTooLarge;case u.FileWriteLocked:return u.FileWriteLocked;case u.NoPermissions:return u.NoPermissions;case u.Unavailable:return u.Unavailable}return u.Unknown}e.toFileSystemProviderErrorCode=n;function a(M){if(M instanceof A)return M.fileOperationResult;switch(n(M)){case u.FileNotFound:return 1;case u.FileIsADirectory:return 0;case u.FileNotADirectory:return 10;case u.FileWriteLocked:return 5;case u.NoPermissions:return 6;case u.FileExists:return 4;case u.FileExceedsMemoryLimit:return 9;case u.FileTooLarge:return 7;default:return 11}}e.toFileOperationResult=a;var o;(function(M){M[M.CREATE=0]="CREATE",M[M.DELETE=1]="DELETE",M[M.MOVE=2]="MOVE",M[M.COPY=3]="COPY",M[M.WRITE=4]="WRITE"})(o=e.FileOperation||(e.FileOperation={}));class r{constructor(B,U,z){this.resource=B,this.operation=U,this.target=z}isOperation(B){return this.operation===B}}e.FileOperationEvent=r;var l;(function(M){M[M.UPDATED=0]="UPDATED",M[M.ADDED=1]="ADDED",M[M.DELETED=2]="DELETED"})(l=e.FileChangeType||(e.FileChangeType={}));class h{constructor(B,U){this.added=void 0,this.updated=void 0,this.deleted=void 0,this.rawChanges=[],this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[],this.rawChanges=B;const z=new Map;for(const X of B){const ue=z.get(X.type);switch(ue?ue.push([X.resource,X]):z.set(X.type,[[X.resource,X]]),X.type){case 1:this.rawAdded.push(X.resource);break;case 0:this.rawUpdated.push(X.resource);break;case 2:this.rawDeleted.push(X.resource);break}}for(const[X,ue]of z)switch(X){case 1:this.added=b.TernarySearchTree.forUris(()=>U),this.added.fill(ue);break;case 0:this.updated=b.TernarySearchTree.forUris(()=>U),this.updated.fill(ue);break;case 2:this.deleted=b.TernarySearchTree.forUris(()=>U),this.deleted.fill(ue);break}}contains(B,...U){return this.doContains(B,{includeChildren:!1},...U)}affects(B,...U){return this.doContains(B,{includeChildren:!0},...U)}doContains(B,U,...z){if(!B)return!1;const X=z.length>0;return!!((!X||z.includes(1))&&(this.added?.get(B)||U.includeChildren&&this.added?.findSuperstr(B))||(!X||z.includes(0))&&(this.updated?.get(B)||U.includeChildren&&this.updated?.findSuperstr(B))||(!X||z.includes(2))&&(this.deleted?.findSubstr(B)||U.includeChildren&&this.deleted?.findSuperstr(B)))}gotAdded(){return!!this.added}gotDeleted(){return!!this.deleted}gotUpdated(){return!!this.updated}}e.FileChangesEvent=h;function S(M,B,U){return!M||!B||M===B||B.length>M.length?!1:(B.charAt(B.length-1)!==t.sep&&(B+=t.sep),U?(0,D.startsWithIgnoreCase)(M,B):M.indexOf(B)===0)}e.isParent=S;class A extends Error{constructor(B,U,z){super(B);this.fileOperationResult=U,this.options=z}}e.FileOperationError=A;class $ extends A{constructor(B,U,z){super(B,2,z);this.stat=U}}e.NotModifiedSinceFileOperationError=$;var W;(function(M){M[M.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",M[M.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",M[M.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",M[M.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",M[M.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",M[M.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",M[M.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",M[M.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",M[M.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",M[M.FILE_EXCEEDS_MEMORY_LIMIT=9]="FILE_EXCEEDS_MEMORY_LIMIT",M[M.FILE_NOT_DIRECTORY=10]="FILE_NOT_DIRECTORY",M[M.FILE_OTHER_ERROR=11]="FILE_OTHER_ERROR"})(W=e.FileOperationResult||(e.FileOperationResult={})),e.AutoSaveConfiguration={OFF:"off",AFTER_DELAY:"afterDelay",ON_FOCUS_CHANGE:"onFocusChange",ON_WINDOW_CHANGE:"onWindowChange"},e.HotExitConfiguration={OFF:"off",ON_EXIT:"onExit",ON_EXIT_AND_WINDOW_CLOSE:"onExitAndWindowClose"},e.FILES_ASSOCIATIONS_CONFIG="files.associations",e.FILES_EXCLUDE_CONFIG="files.exclude";var ee;(function(M){M[M.FILE=0]="FILE",M[M.FOLDER=1]="FOLDER",M[M.ROOT_FOLDER=2]="ROOT_FOLDER"})(ee=e.FileKind||(e.FileKind={})),e.ETAG_DISABLED="";function L(M){if(!(typeof M.size!="number"||typeof M.mtime!="number"))return M.mtime.toString(29)+M.size.toString(31)}e.etag=L;async function q(M,B){if(!B.hasProvider(k.URI.from({scheme:M.scheme})))return new Promise(U=>{const z=B.onDidChangeFileSystemProviderRegistrations(X=>{X.scheme===M.scheme&&X.added&&(z.dispose(),U())})})}e.whenProviderRegistered=q,e.MIN_MAX_MEMORY_SIZE_MB=2048,e.FALLBACK_MAX_MEMORY_SIZE_MB=4096;class ne{static formatSize(B){return(0,P.isNumber)(B)||(B=0),B<ne.KB?(0,y.localize)(1,null,B.toFixed(0)):B<ne.MB?(0,y.localize)(2,null,(B/ne.KB).toFixed(2)):B<ne.GB?(0,y.localize)(3,null,(B/ne.MB).toFixed(2)):B<ne.TB?(0,y.localize)(4,null,(B/ne.GB).toFixed(2)):(0,y.localize)(5,null,(B/ne.TB).toFixed(2))}}e.ByteSize=ne,ne.KB=1024,ne.MB=ne.KB*ne.KB,ne.GB=ne.MB*ne.KB,ne.TB=ne.GB*ne.KB;var x;(function(M){M[M.IA32=0]="IA32",M[M.OTHER=1]="OTHER"})(x=e.Arch||(e.Arch={}));function fe(M){return{maxFileSize:M===0?300*ne.MB:16*ne.GB,maxHeapSize:M===0?700*ne.MB:2*700*ne.MB}}e.getPlatformLimits=fe}),define(ve[198],we([0,1,15,38,11,7,2,47,4,23,17]),function(oe,e,b,t,D,P,k,y,p,C,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiskFileSystemProviderClient=e.LOCAL_FILE_SYSTEM_CHANNEL_NAME=void 0,e.LOCAL_FILE_SYSTEM_CHANNEL_NAME="localFilesystem";class R extends k.Disposable{constructor(E,d){super();this.channel=E,this.extraCapabilities=d,this.onDidChangeCapabilities=P.Event.None,this._onDidChange=this._register(new P.Emitter),this.onDidChangeFile=this._onDidChange.event,this._onDidWatchError=this._register(new P.Emitter),this.onDidWatchError=this._onDidWatchError.event,this.sessionId=(0,C.generateUuid)(),this.registerFileChangeListeners()}get capabilities(){return this._capabilities||(this._capabilities=2|4|16|8|8192|16384|32768,this.extraCapabilities.pathCaseSensitive&&(this._capabilities|=1024),this.extraCapabilities.trash&&(this._capabilities|=4096)),this._capabilities}stat(E){return this.channel.call("stat",[E])}readdir(E){return this.channel.call("readdir",[E])}async readFile(E,d){const{buffer:I}=await this.channel.call("readFile",[E,d]);return I}readFileStream(E,d,I){const v=(0,y.newWriteableStream)(g=>b.VSBuffer.concat(g.map(u=>b.VSBuffer.wrap(u))).buffer),m=this.channel.listen("readFileStream",[E,d])(g=>{if(g instanceof b.VSBuffer)v.write(g.buffer);else{if(g==="end")v.end();else{let u=g;u instanceof Error||(u=(0,T.createFileSystemProviderError)((0,t.toErrorMessage)(u),T.FileSystemProviderErrorCode.Unknown)),v.error(u),v.end()}m.dispose()}});return I.onCancellationRequested(()=>{v.error((0,D.canceled)()),v.end(),m.dispose()}),v}writeFile(E,d,I){return this.channel.call("writeFile",[E,b.VSBuffer.wrap(d),I])}open(E,d){return this.channel.call("open",[E,d])}close(E){return this.channel.call("close",[E])}async read(E,d,I,v,m){const[g,u]=await this.channel.call("read",[E,d,m]);return I.set(g.buffer.slice(0,u),v),u}write(E,d,I,v,m){return this.channel.call("write",[E,d,b.VSBuffer.wrap(I),v,m])}mkdir(E){return this.channel.call("mkdir",[E])}delete(E,d){return this.channel.call("delete",[E,d])}rename(E,d,I){return this.channel.call("rename",[E,d,I])}copy(E,d,I){return this.channel.call("copy",[E,d,I])}cloneFile(E,d){return this.channel.call("cloneFile",[E,d])}registerFileChangeListeners(){this._register(this.channel.listen("fileChange",[this.sessionId])(E=>{if(Array.isArray(E)){const d=E;this._onDidChange.fire(d.map(I=>({resource:p.URI.revive(I.resource),type:I.type})))}else{const d=E;this._onDidWatchError.fire(d)}}))}watch(E,d){const I=(0,C.generateUuid)();return this.channel.call("watch",[this.sessionId,I,E,d]),(0,k.toDisposable)(()=>this.channel.call("unwatch",[this.sessionId,I]))}}e.DiskFileSystemProviderClient=R}),define(ve[98],we([0,1,15,11,170,17]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readFileIntoStream=void 0;async function k(T,R,w,E,d,I){let v;try{await y(T,R,w,E,d,I)}catch(m){v=m}finally{v&&d.errorTransformer&&(v=d.errorTransformer(v)),typeof v!="undefined"&&w.error(v),w.end()}}e.readFileIntoStream=k;async function y(T,R,w,E,d,I){p(I);const v=await T.open(R,{create:!1});try{p(I);let m=0,g=0,u=d&&typeof d.length=="number"?d.length:void 0,c=b.VSBuffer.alloc(Math.min(d.bufferSize,typeof u=="number"?u:d.bufferSize)),f=d&&typeof d.position=="number"?d.position:0,i=0;do g=await T.read(v,f,c.buffer,i,c.byteLength-i),f+=g,i+=g,m+=g,typeof u=="number"&&(u-=g),i===c.byteLength&&(await w.write(E(c)),c=b.VSBuffer.alloc(Math.min(d.bufferSize,typeof u=="number"?u:d.bufferSize)),i=0);while(g>0&&(typeof u!="number"||u>0)&&p(I)&&C(m,d));if(i>0){let s=i;typeof u=="number"&&(s=Math.min(i,u)),w.write(E(c.slice(0,s)))}}catch(m){throw(0,P.ensureFileSystemProviderError)(m)}finally{await T.close(v)}}function p(T){if(T.isCancellationRequested)throw(0,t.canceled)();return!0}function C(T,R){if(R?.limits){if(typeof R.limits.memory=="number"&&T>R.limits.memory)throw(0,P.createFileSystemProviderError)((0,D.localize)(0,null),P.FileSystemProviderErrorCode.FileExceedsMemoryLimit);if(typeof R.limits.size=="number"&&T>R.limits.size)throw(0,P.createFileSystemProviderError)((0,D.localize)(1,null),P.FileSystemProviderErrorCode.FileTooLarge)}return!0}}),define(ve[60],we([0,1,68,2,6,3,4,17]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseWatcherPatterns=e.normalizeWatcherPattern=e.coalesceEvents=e.toFileChanges=e.AbstractUniversalWatcherClient=e.AbstractNonRecursiveWatcherClient=e.AbstractWatcherClient=e.isRecursiveWatchRequest=void 0;function p(m){return m.recursive===!0}e.isRecursiveWatchRequest=p;class C extends t.Disposable{constructor(g,u,c,f){super();this.onFileChanges=g,this.onLogMessage=u,this.verboseLogging=c,this.options=f,this.watcherDisposables=this._register(new t.MutableDisposable),this.requests=void 0,this.restartCounter=0}init(){const g=new t.DisposableStore;this.watcherDisposables.value=g,this.watcher=this.createWatcher(g),this.watcher.setVerboseLogging(this.verboseLogging),g.add(this.watcher.onDidChangeFile(u=>this.onFileChanges(u))),g.add(this.watcher.onDidLogMessage(u=>this.onLogMessage(u))),g.add(this.watcher.onDidError(u=>this.onError(u)))}onError(g){this.options.restartOnError?this.restartCounter<C.MAX_RESTARTS&&this.requests?(this.error(`restarting watcher after error: ${g}`),this.restart(this.requests)):this.error(`gave up attempting to restart watcher after error: ${g}`):this.error(g)}restart(g){this.restartCounter++,this.init(),this.watch(g)}async watch(g){this.requests=g,await this.watcher?.watch(g)}async setVerboseLogging(g){this.verboseLogging=g,await this.watcher?.setVerboseLogging(g)}error(g){this.onLogMessage({type:"error",message:`[File Watcher (${this.options.type})] ${g}`})}dispose(){return this.watcher=void 0,super.dispose()}}e.AbstractWatcherClient=C,C.MAX_RESTARTS=5;class T extends C{constructor(g,u,c){super(g,u,c,{type:"node.js",restartOnError:!1})}}e.AbstractNonRecursiveWatcherClient=T;class R extends C{constructor(g,u,c){super(g,u,c,{type:"universal",restartOnError:!0})}}e.AbstractUniversalWatcherClient=R;function w(m){return m.map(g=>({type:g.type,resource:k.URI.file(g.path)}))}e.toFileChanges=w;function E(m){const g=new v;for(const u of m)g.processEvent(u);return g.coalesce()}e.coalesceEvents=E;function d(m,g){return typeof g=="string"&&!g.startsWith(b.GLOBSTAR)&&!(0,D.isAbsolute)(g)?{base:m,pattern:g}:g}e.normalizeWatcherPattern=d;function I(m,g){const u=[];for(const c of g)u.push((0,b.parse)(d(m,c)));return u}e.parseWatcherPatterns=I;class v{constructor(){this.coalesced=new Set,this.mapPathToChange=new Map}toKey(g){return P.isLinux?g.path:g.path.toLowerCase()}processEvent(g){const u=this.mapPathToChange.get(this.toKey(g));let c=!1;if(u){const f=u.type,i=g.type;u.path!==g.path&&(g.type===2||g.type===1)?c=!0:f===1&&i===2?(this.mapPathToChange.delete(this.toKey(g)),this.coalesced.delete(u)):f===2&&i===1?u.type=0:f===1&&i===0||(u.type=i)}else c=!0;c&&(this.coalesced.add(g),this.mapPathToChange.set(this.toKey(g),g))}coalesce(){const g=[],u=[];return Array.from(this.coalesced).filter(c=>c.type!==2?(g.push(c),!1):!0).sort((c,f)=>c.path.length-f.path.length).filter(c=>u.some(f=>(0,y.isParent)(c.path,f,!P.isLinux))?!1:(u.push(c.path),!0)).concat(g)}}}),define(ve[199],we([0,1,30,14,20,33,2,85,6,3,145,21,60]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.watchFileContents=e.NodeJSFileWatcherLibrary=void 0;class E extends k.Disposable{constructor(v,m,g,u){super();this.request=v,this.onDidFilesChange=m,this.onLogMessage=g,this.verboseLogging=u,this.throttledFileChangesWorker=new t.ThrottledWorker({maxWorkChunkSize:100,throttleDelay:200,maxBufferedWork:1e4},c=>this.onDidFilesChange(c)),this.fileChangesDelayer=this._register(new t.ThrottledDelayer(E.FILE_CHANGES_HANDLER_DELAY)),this.fileChangesBuffer=[],this.excludes=(0,w.parseWatcherPatterns)(this.request.path,this.request.excludes),this.includes=this.request.includes?(0,w.parseWatcherPatterns)(this.request.path,this.request.includes):void 0,this.cts=new D.CancellationTokenSource,this.ready=this.watch()}async watch(){try{const v=await this.normalizePath(this.request);if(this.cts.token.isCancellationRequested)return;const m=await R.Promises.stat(v);this._register(await this.doWatch(v,m.isDirectory()))}catch(v){v.code!=="ENOENT"?this.error(v):this.trace(v)}}async normalizePath(v){let m=v.path;try{m=await R.Promises.realpath(v.path),v.path===m&&(m=await(0,T.realcase)(v.path)??v.path),v.path!==m&&this.trace(`correcting a path to watch that seems to be a symbolic link or wrong casing (original: ${v.path}, real: ${m})`)}catch{}return m}async doWatch(v,m){if(C.isMacintosh&&(0,P.isEqualOrParent)(v,"/Volumes/",!0))return this.error(`Refusing to watch ${v} for changes using fs.watch() for possibly being a network share where watching is unreliable and unstable.`),k.Disposable.None;const g=new D.CancellationTokenSource(this.cts.token),u=new k.DisposableStore;try{const c=(0,p.basename)(v),f=(0,b.watch)(v);u.add((0,k.toDisposable)(()=>{f.removeAllListeners(),f.close()})),this.trace(`Started watching: '${v}'`);const i=new Set;if(m)try{for(const n of await R.Promises.readdir(v))i.add(n)}catch(n){this.error(n)}const s=new Map;u.add((0,k.toDisposable)(()=>{for(const[,n]of s)n.dispose();s.clear()})),f.on("error",(n,a)=>{this.error(`Failed to watch ${v} for changes using fs.watch() (${n}, ${a})`),this.dispose()}),f.on("change",(n,a)=>{if(g.token.isCancellationRequested)return;this.trace(`[raw] ["${n}"] ${a}`);let o="";if(a&&(o=a.toString(),C.isMacintosh&&(o=(0,y.normalizeNFC)(o))),!(!o||n!=="change"&&n!=="rename"))if(m)if(n==="rename"){s.get(o)?.dispose();const r=setTimeout(async()=>{if(s.delete(o),o===c&&!await R.Promises.exists(v)){this.warn("Watcher shutdown because watched path got deleted"),this.dispose();return}const l=await this.existsChildStrictCase((0,p.join)(v,o));if(g.token.isCancellationRequested)return;let h;l?i.has(o)?h=0:(h=1,i.add(o)):(i.delete(o),h=2),this.onFileChange({path:(0,p.join)(this.request.path,o),type:h})},E.FILE_DELETE_HANDLER_DELAY);s.set(o,(0,k.toDisposable)(()=>clearTimeout(r)))}else{let r;i.has(o)?r=0:(r=1,i.add(o)),this.onFileChange({path:(0,p.join)(this.request.path,o),type:r})}else if(n==="rename"||o!==c){const r=setTimeout(async()=>{const l=await R.Promises.exists(v);g.token.isCancellationRequested||(l?(this.onFileChange({path:this.request.path,type:0},!0),u.add(await this.doWatch(v,!1))):(await this.onFileChange({path:this.request.path,type:2},!0),this.dispose()))},E.FILE_DELETE_HANDLER_DELAY);u.clear(),u.add((0,k.toDisposable)(()=>clearTimeout(r)))}else this.onFileChange({path:this.request.path,type:0},!0)})}catch(c){await R.Promises.exists(v)&&!g.token.isCancellationRequested&&this.error(`Failed to watch ${v} for changes using fs.watch() (${c.toString()})`)}return(0,k.toDisposable)(()=>{g.dispose(!0),u.dispose()})}async onFileChange(v,m=!1){if(!this.cts.token.isCancellationRequested){this.verboseLogging&&this.trace(`${v.type===1?"[ADDED]":v.type===2?"[DELETED]":"[CHANGED]"} ${v.path}`),!m&&this.excludes.some(g=>g(v.path))?this.verboseLogging&&this.trace(` >> ignored (excluded) ${v.path}`):!m&&this.includes&&this.includes.length>0&&!this.includes.some(g=>g(v.path))?this.verboseLogging&&this.trace(` >> ignored (not included) ${v.path}`):this.fileChangesBuffer.push(v);try{await this.fileChangesDelayer.trigger(async()=>{const g=this.fileChangesBuffer;this.fileChangesBuffer=[];const u=(0,w.coalesceEvents)(g);if(u.length>0){if(this.verboseLogging)for(const f of u)this.trace(`>> normalized ${f.type===1?"[ADDED]":f.type===2?"[DELETED]":"[CHANGED]"} ${f.path}`);this.throttledFileChangesWorker.work(u)?this.throttledFileChangesWorker.pending>0&&this.trace(`started throttling events due to large amount of file change events at once (pending: ${this.throttledFileChangesWorker.pending}, most recent change: ${u[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`):this.warn(`started ignoring events due to too many file change events at once (incoming: ${u.length}, most recent change: ${u[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`)}})}catch{}}}async existsChildStrictCase(v){if(C.isLinux)return R.Promises.exists(v);try{const m=(0,p.basename)(v);return(await R.Promises.readdir((0,p.dirname)(v))).some(u=>u===m)}catch(m){return this.trace(m),!1}}setVerboseLogging(v){this.verboseLogging=v}error(v){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"error",message:`[File Watcher (node.js)] ${v}`})}warn(v){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"warn",message:`[File Watcher (node.js)] ${v}`})}trace(v){!this.cts.token.isCancellationRequested&&this.verboseLogging&&this.onLogMessage?.({type:"trace",message:`[File Watcher (node.js)] ${v}`})}dispose(){this.trace(`stopping file watcher on ${this.request.path}`),this.cts.dispose(!0),super.dispose()}}e.NodeJSFileWatcherLibrary=E,E.FILE_DELETE_HANDLER_DELAY=100,E.FILE_CHANGES_HANDLER_DELAY=50;async function d(I,v,m,g,u=512){const c=await R.Promises.open(I,"r"),f=Buffer.allocUnsafe(u),i=new D.CancellationTokenSource(g);let s,n=!1;const a={path:I,excludes:[],recursive:!1},o=new E(a,r=>{(async()=>{for(const{type:l}of r)if(l===0){if(n)return;n=!0;try{for(;!i.token.isCancellationRequested;){const{bytesRead:h}=await R.Promises.read(c,f,0,u,null);if(!h||i.token.isCancellationRequested)break;v(f.slice(0,h))}}catch(h){s=new Error(h),i.dispose(!0)}finally{n=!1}}})()});return await o.ready,m(),new Promise((r,l)=>{i.token.onCancellationRequested(async()=>{o.dispose();try{await R.Promises.close(c)}catch(h){s=new Error(h)}s?l(s):r()})})}e.watchFileContents=d}),define(ve[200],we([0,1,7,68,2,3,199]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeJSWatcher=void 0;class y extends D.Disposable{constructor(){super(...arguments);this._onDidChangeFile=this._register(new b.Emitter),this.onDidChangeFile=this._onDidChangeFile.event,this._onDidLogMessage=this._register(new b.Emitter),this.onDidLogMessage=this._onDidLogMessage.event,this.onDidError=b.Event.None,this.watchers=new Map,this.verboseLogging=!1}async watch(C){const T=this.normalizeRequests(C),R=T.filter(E=>{const d=this.watchers.get(E.path);return d?!(0,t.patternsEquals)(d.request.excludes,E.excludes)||!(0,t.patternsEquals)(d.request.includes,E.includes):!0}),w=Array.from(this.watchers.values()).filter(({request:E})=>!T.find(d=>d.path===E.path&&(0,t.patternsEquals)(d.excludes,E.excludes)&&(0,t.patternsEquals)(d.includes,E.includes))).map(({request:E})=>E.path);R.length&&this.trace(`Request to start watching: ${R.map(E=>`${E.path} (excludes: ${E.excludes.length>0?E.excludes:"<none>"}, includes: ${E.includes&&E.includes.length>0?JSON.stringify(E.includes):"<all>"})`).join(",")}`),w.length&&this.trace(`Request to stop watching: ${w.join(",")}`);for(const E of w)this.stopWatching(E);for(const E of R)this.startWatching(E)}startWatching(C){const T=new k.NodeJSFileWatcherLibrary(C,w=>this._onDidChangeFile.fire(w),w=>this._onDidLogMessage.fire(w),this.verboseLogging),R={request:C,instance:T};this.watchers.set(C.path,R)}async stop(){for(const[C]of this.watchers)this.stopWatching(C);this.watchers.clear()}stopWatching(C){const T=this.watchers.get(C);T&&(this.watchers.delete(C),T.instance.dispose())}normalizeRequests(C){const T=new Map;for(const R of C){const w=P.isLinux?R.path:R.path.toLowerCase();T.set(w,R)}return Array.from(T.values())}async setVerboseLogging(C){this.verboseLogging=C;for(const[,T]of this.watchers)T.instance.setVerboseLogging(C)}trace(C){this.verboseLogging&&this._onDidLogMessage.fire({type:"trace",message:this.toMessage(C)})}toMessage(C,T){return T?`[File Watcher (node.js)] ${C} (path: ${T.request.path})`:`[File Watcher (node.js)] ${C}`}}e.NodeJSWatcher=y}),define(ve[201],we([0,1,60,200]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeJSWatcherClient=void 0;class D extends b.AbstractNonRecursiveWatcherClient{constructor(k,y,p){super(k,y,p);this.init()}createWatcher(){return new t.NodeJSWatcher}}e.NodeJSWatcherClient=D}),define(ve[202],we([0,1,8,44,95,60]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UniversalWatcherClient=void 0;class k extends P.AbstractUniversalWatcherClient{constructor(p,C,T){super(p,C,T);this.init()}createWatcher(p){const C=p.add(new D.Client(b.FileAccess.asFileUri("bootstrap-fork",oe).fsPath,{serverName:"File Watcher",args:["--type=fileWatcher"],env:{VSCODE_AMD_ENTRYPOINT:"vs/platform/files/node/watcher/watcherMain",VSCODE_PIPE_LOGGING:"true",VSCODE_VERBOSE_LOGGING:"true"}}));return p.add(C.onDidProcessExit(({code:T,signal:R})=>this.onError(`terminated by itself with code ${T}, signal: ${R}`))),t.ProxyChannel.toService((0,t.getNextTickChannel)(C.getChannel("watcher")))}}e.UniversalWatcherClient=k}),define(ve[73],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceCollection=void 0;class b{constructor(...D){this._entries=new Map;for(const[P,k]of D)this.set(P,k)}set(D,P){const k=this._entries.get(D);return this._entries.set(D,P),k}has(D){return this._entries.has(D)}get(D){return this._entries.get(D)}}e.ServiceCollection=b}),define(ve[99],we([0,1,14,11,59,194,5,73]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trace=e.InstantiationService=void 0;const p=!1;class C extends Error{constructor(d){super("cyclic dependency between services");this.message=d.findCycleSlow()??`UNABLE to detect cycle, dumping graph: 
${d.toString()}`}}class T{constructor(d=new y.ServiceCollection,I=!1,v){this._activeInstantiations=new Set,this._services=d,this._strict=I,this._parent=v,this._services.set(k.IInstantiationService,this)}createChild(d){return new T(d,this._strict,this)}invokeFunction(d,...I){const v=w.traceInvocation(d);let m=!1;try{return d({get:u=>{if(m)throw(0,t.illegalState)("service accessor is only valid during the invocation of its target method");const c=this._getOrCreateServiceInstance(u,v);if(!c)throw new Error(`[invokeFunction] unknown service '${u}'`);return c}},...I)}finally{m=!0,v.stop()}}createInstance(d,...I){let v,m;return d instanceof D.SyncDescriptor?(v=w.traceCreation(d.ctor),m=this._createInstance(d.ctor,d.staticArguments.concat(I),v)):(v=w.traceCreation(d),m=this._createInstance(d,I,v)),v.stop(),m}_createInstance(d,I=[],v){const m=k._util.getServiceDependencies(d).sort((c,f)=>c.index-f.index),g=[];for(const c of m){const f=this._getOrCreateServiceInstance(c.id,v);f||this._throwIfStrict(`[createInstance] ${d.name} depends on UNKNOWN service ${c.id}.`,!1),g.push(f)}const u=m.length>0?m[0].index:I.length;if(I.length!==u){console.trace(`[createInstance] First service dependency of ${d.name} at position ${u+1} conflicts with ${I.length} static arguments`);const c=u-I.length;c>0?I=I.concat(new Array(c)):I=I.slice(0,u)}return new d(...[...I,...g])}_setServiceInstance(d,I){if(this._services.get(d)instanceof D.SyncDescriptor)this._services.set(d,I);else if(this._parent)this._parent._setServiceInstance(d,I);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(d){const I=this._services.get(d);return!I&&this._parent?this._parent._getServiceInstanceOrDescriptor(d):I}_getOrCreateServiceInstance(d,I){const v=this._getServiceInstanceOrDescriptor(d);return v instanceof D.SyncDescriptor?this._safeCreateAndCacheServiceInstance(d,v,I.branch(d,!0)):(I.branch(d,!1),v)}_safeCreateAndCacheServiceInstance(d,I,v){if(this._activeInstantiations.has(d))throw new Error(`illegal state - RECURSIVELY instantiating service '${d}'`);this._activeInstantiations.add(d);try{return this._createAndCacheServiceInstance(d,I,v)}finally{this._activeInstantiations.delete(d)}}_createAndCacheServiceInstance(d,I,v){const m=new P.Graph(c=>c.id.toString());let g=0;const u=[{id:d,desc:I,_trace:v}];for(;u.length;){const c=u.pop();if(m.lookupOrInsertNode(c),g++>1e3)throw new C(m);for(const f of k._util.getServiceDependencies(c.desc.ctor)){const i=this._getServiceInstanceOrDescriptor(f.id);if(i||this._throwIfStrict(`[createInstance] ${d} depends on ${f.id} which is NOT registered.`,!0),i instanceof D.SyncDescriptor){const s={id:f.id,desc:i,_trace:c._trace.branch(f.id,!0)};m.insertEdge(c,s),u.push(s)}}}for(;;){const c=m.roots();if(c.length===0){if(!m.isEmpty())throw new C(m);break}for(const{data:f}of c){if(this._getServiceInstanceOrDescriptor(f.id)instanceof D.SyncDescriptor){const s=this._createServiceInstanceWithOwner(f.id,f.desc.ctor,f.desc.staticArguments,f.desc.supportsDelayedInstantiation,f._trace);this._setServiceInstance(f.id,s)}m.removeNode(f)}}return this._getServiceInstanceOrDescriptor(d)}_createServiceInstanceWithOwner(d,I,v=[],m,g){if(this._services.get(d)instanceof D.SyncDescriptor)return this._createServiceInstance(I,v,m,g);if(this._parent)return this._parent._createServiceInstanceWithOwner(d,I,v,m,g);throw new Error(`illegalState - creating UNKNOWN service instance ${I.name}`)}_createServiceInstance(d,I=[],v,m){if(v){const g=new b.IdleValue(()=>this._createInstance(d,I,m));return new Proxy(Object.create(null),{get(u,c){if(c in u)return u[c];const f=g.value;let i=f[c];return typeof i!="function"||(i=i.bind(f),u[c]=i),i},set(u,c,f){return g.value[c]=f,!0}})}else return this._createInstance(d,I,m)}_throwIfStrict(d,I){if(I&&console.warn(d),this._strict)throw new Error(d)}}e.InstantiationService=T;var R;(function(E){E[E.Creation=0]="Creation",E[E.Invocation=1]="Invocation",E[E.Branch=2]="Branch"})(R||(R={}));class w{constructor(d,I){this.type=d,this.name=I,this._start=Date.now(),this._dep=[]}static traceInvocation(d){return p?new w(1,d.name||d.toString().substring(0,42).replace(/\n/g,"")):w._None}static traceCreation(d){return p?new w(0,d.name):w._None}branch(d,I){const v=new w(2,d.toString());return this._dep.push([d,I,v]),v}stop(){const d=Date.now()-this._start;w._totals+=d;let I=!1;function v(g,u){const c=[],f=new Array(g+1).join("	");for(const[i,s,n]of u._dep)if(s&&n){I=!0,c.push(`${f}CREATES -> ${i}`);const a=v(g+1,n);a&&c.push(a)}else c.push(`${f}uses -> ${i}`);return c.join(`
`)}const m=[`${this.type===0?"CREATE":"CALL"} ${this.name}`,`${v(1,this)}`,`DONE, took ${d.toFixed(2)}ms (grand total ${w._totals.toFixed(2)}ms)`];(d>2||I)&&console.log(m.join(`
`))}}e.Trace=w,w._None=new class extends w{constructor(){super(-1,null)}stop(){}branch(){return this}},w._totals=0}),define(ve[203],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILabelService=void 0,e.ILabelService=(0,b.createDecorator)("labelService")});var Ae=this&&this.__param||function(oe,e){return function(b,t){e(b,t,oe)}};define(ve[74],we([0,1,20,2,3,172,31,5]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LanguagePackBaseService=e.ILanguagePackService=void 0,e.ILanguagePackService=(0,y.createDecorator)("languagePackService");let p=class extends t.Disposable{constructor(T){super();this.extensionGalleryService=T}async getAvailableLanguages(){const T=new b.CancellationTokenSource;setTimeout(()=>T.cancel(),1e3);let R;try{R=await this.extensionGalleryService.query({text:'category:"language packs"',pageSize:20},T.token)}catch{return[]}const E=R.firstPage.filter(d=>d.properties.localizedLanguages?.length&&d.tags.some(I=>I.startsWith("lp-"))).map(d=>{const I=d.properties.localizedLanguages?.[0],v=this.getLocale(d);return{...this.createQuickPickItem({locale:v,label:I}),extensionId:d.identifier.id,galleryExtension:d}});return E.push({...this.createQuickPickItem({locale:"en",label:"English"}),extensionId:"default"}),E}getLocale(T){return T.tags.find(R=>R.startsWith("lp-"))?.split("lp-")[1]}createQuickPickItem(T){const R=T.label??T.locale;let w=T.locale!==T.label?T.locale:void 0;return T.locale.toLowerCase()===D.language.toLowerCase()&&(w||(w=""),w+=(0,P.localize)(0,null)),{id:T.locale,label:R,description:w}}};p=_e([Ae(0,k.IExtensionGalleryService)],p),e.LanguagePackBaseService=p}),define(ve[13],we([0,1,38,7,2,3,5]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevelToString=e.parseLogLevel=e.getLogLevel=e.NullLogService=e.AbstractLoggerService=e.LogService=e.MultiplexLogService=e.AdapterLogger=e.ConsoleLogger=e.ConsoleMainLogger=e.AbstractMessageLogger=e.AbstractLogger=e.format=e.log=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILoggerService=e.ILogService=void 0,e.ILogService=(0,k.createDecorator)("logService"),e.ILoggerService=(0,k.createDecorator)("loggerService");function y(){return new Date().toISOString()}var p;(function(s){s[s.Trace=0]="Trace",s[s.Debug=1]="Debug",s[s.Info=2]="Info",s[s.Warning=3]="Warning",s[s.Error=4]="Error",s[s.Critical=5]="Critical",s[s.Off=6]="Off"})(p=e.LogLevel||(e.LogLevel={})),e.DEFAULT_LOG_LEVEL=p.Info;function C(s,n,a){switch(n){case p.Trace:s.trace(a);break;case p.Debug:s.debug(a);break;case p.Info:s.info(a);break;case p.Warning:s.warn(a);break;case p.Error:s.error(a);break;case p.Critical:s.critical(a);break;default:throw new Error("Invalid log level")}}e.log=C;function T(s){let n="";for(let a=0;a<s.length;a++){let o=s[a];if(typeof o=="object")try{o=JSON.stringify(o)}catch{}n+=(a>0?" ":"")+o}return n}e.format=T;class R extends D.Disposable{constructor(){super(...arguments);this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new t.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(n){this.level!==n&&(this.level=n,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}e.AbstractLogger=R;class w extends R{constructor(n){super();this.logAlways=n}checkLogLevel(n){return this.logAlways||this.getLevel()<=n}trace(n,...a){this.checkLogLevel(p.Trace)&&this.log(p.Trace,T([n,...a]))}debug(n,...a){this.checkLogLevel(p.Debug)&&this.log(p.Debug,T([n,...a]))}info(n,...a){this.checkLogLevel(p.Info)&&this.log(p.Info,T([n,...a]))}warn(n,...a){this.checkLogLevel(p.Warning)&&this.log(p.Warning,T([n,...a]))}error(n,...a){if(this.checkLogLevel(p.Error))if(n instanceof Error){const o=Array.prototype.slice.call(arguments);o[0]=n.stack,this.log(p.Error,T(o))}else this.log(p.Error,T([n,...a]))}critical(n,...a){this.checkLogLevel(p.Critical)&&this.log(p.Critical,T([n,...a]))}flush(){}}e.AbstractMessageLogger=w;class E extends R{constructor(n=e.DEFAULT_LOG_LEVEL){super();this.setLevel(n),this.useColors=!P.isWindows}trace(n,...a){this.getLevel()<=p.Trace&&(this.useColors?console.log(`[main ${y()}]`,n,...a):console.log(`[main ${y()}]`,n,...a))}debug(n,...a){this.getLevel()<=p.Debug&&(this.useColors?console.log(`[main ${y()}]`,n,...a):console.log(`[main ${y()}]`,n,...a))}info(n,...a){this.getLevel()<=p.Info&&(this.useColors?console.log(`[main ${y()}]`,n,...a):console.log(`[main ${y()}]`,n,...a))}warn(n,...a){this.getLevel()<=p.Warning&&(this.useColors?console.warn(`[main ${y()}]`,n,...a):console.warn(`[main ${y()}]`,n,...a))}error(n,...a){this.getLevel()<=p.Error&&(this.useColors?console.error(`[main ${y()}]`,n,...a):console.error(`[main ${y()}]`,n,...a))}critical(n,...a){this.getLevel()<=p.Critical&&(this.useColors?console.error(`[main ${y()}]`,n,...a):console.error(`[main ${y()}]`,n,...a))}dispose(){}flush(){}}e.ConsoleMainLogger=E;class d extends R{constructor(n=e.DEFAULT_LOG_LEVEL){super();this.setLevel(n)}trace(n,...a){this.getLevel()<=p.Trace&&console.log("%cTRACE","color: #888",n,...a)}debug(n,...a){this.getLevel()<=p.Debug&&console.log("%cDEBUG","background: #eee; color: #888",n,...a)}info(n,...a){this.getLevel()<=p.Info&&console.log("%c INFO","color: #33f",n,...a)}warn(n,...a){this.getLevel()<=p.Warning&&console.log("%c WARN","color: #993",n,...a)}error(n,...a){this.getLevel()<=p.Error&&console.log("%c  ERR","color: #f33",n,...a)}critical(n,...a){this.getLevel()<=p.Critical&&console.log("%cCRITI","background: #f33; color: white",n,...a)}dispose(){}flush(){}}e.ConsoleLogger=d;class I extends R{constructor(n,a=e.DEFAULT_LOG_LEVEL){super();this.adapter=n,this.setLevel(a)}trace(n,...a){this.getLevel()<=p.Trace&&this.adapter.log(p.Trace,[this.extractMessage(n),...a])}debug(n,...a){this.getLevel()<=p.Debug&&this.adapter.log(p.Debug,[this.extractMessage(n),...a])}info(n,...a){this.getLevel()<=p.Info&&this.adapter.log(p.Info,[this.extractMessage(n),...a])}warn(n,...a){this.getLevel()<=p.Warning&&this.adapter.log(p.Warning,[this.extractMessage(n),...a])}error(n,...a){this.getLevel()<=p.Error&&this.adapter.log(p.Error,[this.extractMessage(n),...a])}critical(n,...a){this.getLevel()<=p.Critical&&this.adapter.log(p.Critical,[this.extractMessage(n),...a])}extractMessage(n){return typeof n=="string"?n:(0,b.toErrorMessage)(n,this.getLevel()<=p.Trace)}dispose(){}flush(){}}e.AdapterLogger=I;class v extends R{constructor(n){super();this.logServices=n,n.length&&this.setLevel(n[0].getLevel())}setLevel(n){for(const a of this.logServices)a.setLevel(n);super.setLevel(n)}trace(n,...a){for(const o of this.logServices)o.trace(n,...a)}debug(n,...a){for(const o of this.logServices)o.debug(n,...a)}info(n,...a){for(const o of this.logServices)o.info(n,...a)}warn(n,...a){for(const o of this.logServices)o.warn(n,...a)}error(n,...a){for(const o of this.logServices)o.error(n,...a)}critical(n,...a){for(const o of this.logServices)o.critical(n,...a)}flush(){for(const n of this.logServices)n.flush()}dispose(){for(const n of this.logServices)n.dispose()}}e.MultiplexLogService=v;class m extends D.Disposable{constructor(n){super();this.logger=n,this._register(n)}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(n){this.logger.setLevel(n)}getLevel(){return this.logger.getLevel()}trace(n,...a){this.logger.trace(n,...a)}debug(n,...a){this.logger.debug(n,...a)}info(n,...a){this.logger.info(n,...a)}warn(n,...a){this.logger.warn(n,...a)}error(n,...a){this.logger.error(n,...a)}critical(n,...a){this.logger.critical(n,...a)}flush(){this.logger.flush()}}e.LogService=m;class g extends D.Disposable{constructor(n,a){super();this.logLevel=n,this.loggers=new Map,this.logLevelChangeableLoggers=[],this._register(a(o=>{this.logLevel=o,this.logLevelChangeableLoggers.forEach(r=>r.setLevel(o))}))}getLogger(n){return this.loggers.get(n.toString())}createLogger(n,a){let o=this.loggers.get(n.toString());return o||(o=this.doCreateLogger(n,a?.always?p.Trace:this.logLevel,a),this.loggers.set(n.toString(),o),a?.always||this.logLevelChangeableLoggers.push(o)),o}dispose(){this.logLevelChangeableLoggers.splice(0,this.logLevelChangeableLoggers.length),this.loggers.forEach(n=>n.dispose()),this.loggers.clear(),super.dispose()}}e.AbstractLoggerService=g;class u{constructor(){this.onDidChangeLogLevel=new t.Emitter().event}setLevel(n){}getLevel(){return p.Info}trace(n,...a){}debug(n,...a){}info(n,...a){}warn(n,...a){}error(n,...a){}critical(n,...a){}dispose(){}flush(){}}e.NullLogService=u;function c(s){if(s.verbose)return p.Trace;if(typeof s.logLevel=="string"){const n=f(s.logLevel.toLowerCase());if(n!==void 0)return n}return e.DEFAULT_LOG_LEVEL}e.getLogLevel=c;function f(s){switch(s){case"trace":return p.Trace;case"debug":return p.Debug;case"info":return p.Info;case"warn":return p.Warning;case"error":return p.Error;case"critical":return p.Critical;case"off":return p.Off}}e.parseLogLevel=f;function i(s){switch(s){case p.Trace:return"trace";case p.Debug:return"debug";case p.Info:return"info";case p.Warning:return"warn";case p.Error:return"error";case p.Critical:return"critical";case p.Off:return"off"}}e.LogLevelToString=i}),define(ve[204],we([0,1,71,7,2,13,3]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaseCredentialsMainService=void 0;let y=class zt extends D.Disposable{constructor(C){super();this.logService=C,this._onDidChangePassword=this._register(new t.Emitter),this.onDidChangePassword=this._onDidChangePassword.event}async getPassword(C,T){let R;try{R=await this.withKeytar()}catch{return null}const w=await R.getPassword(C,T);if(w)try{let{content:E,hasNextChunk:d}=JSON.parse(w);if(!E||!d)return w;let I=1;for(;d;){const v=await R.getPassword(C,`${T}-${I}`),m=JSON.parse(v);E+=m.content,d=m.hasNextChunk,I++}return E}catch{return w}return w}async setPassword(C,T,R){let w;try{w=await this.withKeytar()}catch(I){throw this.surfaceKeytarLoadError?.(I),I}const E=3,d=async(I,v,m)=>{let g=0,u;for(;g<E;)try{await w.setPassword(I,v,m);return}catch(c){u=c,this.logService.warn("Error attempting to set a password: ",c?.message??c),g++,await new Promise(f=>setTimeout(f,200))}throw u};if(k.isWindows&&R.length>zt.MAX_PASSWORD_LENGTH){let I=0,v=0,m=!0;for(;m;){const g=R.substring(I,I+zt.PASSWORD_CHUNK_SIZE);I+=zt.PASSWORD_CHUNK_SIZE,m=R.length-I>0;const u={content:g,hasNextChunk:m};await d(C,v?`${T}-${v}`:T,JSON.stringify(u)),v++}}else await d(C,T,R);this._onDidChangePassword.fire({service:C,account:T})}async deletePassword(C,T){let R;try{R=await this.withKeytar()}catch(d){throw this.surfaceKeytarLoadError?.(d),d}const w=await R.getPassword(C,T);if(!w)return!1;const E=await R.deletePassword(C,T);try{let{content:d,hasNextChunk:I}=JSON.parse(w);if(d&&I){let v=1;for(;I;){const m=`${T}-${v}`,g=await R.getPassword(C,m);await R.deletePassword(C,m),I=JSON.parse(g).hasNextChunk,v++}}}catch{}return E&&this._onDidChangePassword.fire({service:C,account:T}),E}async findPassword(C){let T;try{T=await this.withKeytar()}catch{return null}return T.findPassword(C)}async findCredentials(C){let T;try{T=await this.withKeytar()}catch{return[]}return T.findCredentials(C)}clear(){return this._keytarCache instanceof b.InMemoryCredentialsProvider?this._keytarCache.clear():Promise.resolve()}};y.MAX_PASSWORD_LENGTH=2500,y.PASSWORD_CHUNK_SIZE=y.MAX_PASSWORD_LENGTH-100,y=_e([Ae(0,P.ILogService)],y),e.BaseCredentialsMainService=y}),define(ve[205],we([0,1,18,14,11,7,2,6,60,13]),function(oe,e,b,t,D,P,k,y,p,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractDiskFileSystemProvider=void 0;class T extends k.Disposable{constructor(w,E){super();this.logService=w,this.options=E,this._onDidChangeFile=this._register(new P.Emitter),this.onDidChangeFile=this._onDidChangeFile.event,this._onDidWatchError=this._register(new P.Emitter),this.onDidWatchError=this._onDidWatchError.event,this.universalPathsToWatch=[],this.universalWatchRequestDelayer=this._register(new t.ThrottledDelayer(0)),this.nonRecursivePathsToWatch=[],this.nonRecursiveWatchRequestDelayer=this._register(new t.ThrottledDelayer(0))}watch(w,E){return E.recursive||this.options?.watcher?.forceUniversal?this.watchUniversal(w,E):this.watchNonRecursive(w,E)}watchUniversal(w,E){const d={path:this.toFilePath(w),excludes:E.excludes,includes:E.includes,recursive:E.recursive},I=(0,b.insert)(this.universalPathsToWatch,d);return this.refreshUniversalWatchers(),(0,k.toDisposable)(()=>{I(),this.refreshUniversalWatchers()})}refreshUniversalWatchers(){this.universalWatchRequestDelayer.trigger(()=>this.doRefreshUniversalWatchers()).catch(w=>(0,D.onUnexpectedError)(w))}doRefreshUniversalWatchers(){this.universalWatcher||(this.universalWatcher=this._register(this.createUniversalWatcher(E=>this._onDidChangeFile.fire((0,p.toFileChanges)(E)),E=>this.onWatcherLogMessage(E),this.logService.getLevel()===C.LogLevel.Trace)),this._register(this.logService.onDidChangeLogLevel(()=>{this.universalWatcher?.setVerboseLogging(this.logService.getLevel()===C.LogLevel.Trace)})));const w=this.options?.watcher?.recursive?.usePolling;if(w===!0)for(const E of this.universalPathsToWatch)(0,p.isRecursiveWatchRequest)(E)&&(E.pollingInterval=this.options?.watcher?.recursive?.pollingInterval??5e3);else if(Array.isArray(w))for(const E of this.universalPathsToWatch)(0,p.isRecursiveWatchRequest)(E)&&w.includes(E.path)&&(E.pollingInterval=this.options?.watcher?.recursive?.pollingInterval??5e3);return this.universalWatcher.watch(this.universalPathsToWatch)}watchNonRecursive(w,E){const d={path:this.toFilePath(w),excludes:E.excludes,includes:E.includes,recursive:!1},I=(0,b.insert)(this.nonRecursivePathsToWatch,d);return this.refreshNonRecursiveWatchers(),(0,k.toDisposable)(()=>{I(),this.refreshNonRecursiveWatchers()})}refreshNonRecursiveWatchers(){this.nonRecursiveWatchRequestDelayer.trigger(()=>this.doRefreshNonRecursiveWatchers()).catch(w=>(0,D.onUnexpectedError)(w))}doRefreshNonRecursiveWatchers(){return this.nonRecursiveWatcher||(this.nonRecursiveWatcher=this._register(this.createNonRecursiveWatcher(w=>this._onDidChangeFile.fire((0,p.toFileChanges)(w)),w=>this.onWatcherLogMessage(w),this.logService.getLevel()===C.LogLevel.Trace)),this._register(this.logService.onDidChangeLogLevel(()=>{this.nonRecursiveWatcher?.setVerboseLogging(this.logService.getLevel()===C.LogLevel.Trace)}))),this.nonRecursiveWatcher.watch(this.nonRecursivePathsToWatch)}onWatcherLogMessage(w){w.type==="error"&&this._onDidWatchError.fire(w.message),this.logService[w.type](w.message)}toFilePath(w){return(0,y.normalize)(w.fsPath)}}e.AbstractDiskFileSystemProvider=T}),define(ve[100],we([0,1,18,14,15,20,7,84,46,2,24,8,48,19,47,168,17,98,13]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileService=void 0;let u=class extends C.Disposable{constructor(f){super();this.logService=f,this.BUFFER_SIZE=256*1024,this._onDidChangeFileSystemProviderRegistrations=this._register(new k.Emitter),this.onDidChangeFileSystemProviderRegistrations=this._onDidChangeFileSystemProviderRegistrations.event,this._onWillActivateFileSystemProvider=this._register(new k.Emitter),this.onWillActivateFileSystemProvider=this._onWillActivateFileSystemProvider.event,this._onDidChangeFileSystemProviderCapabilities=this._register(new k.Emitter),this.onDidChangeFileSystemProviderCapabilities=this._onDidChangeFileSystemProviderCapabilities.event,this.provider=new Map,this._onDidRunOperation=this._register(new k.Emitter),this.onDidRunOperation=this._onDidRunOperation.event,this._onDidFilesChange=this._register(new k.Emitter),this.onDidFilesChange=this._onDidFilesChange.event,this._onDidWatchError=this._register(new k.Emitter),this.onDidWatchError=this._onDidWatchError.event,this.activeWatchers=new Map,this.writeQueue=this._register(new t.ResourceQueue)}registerProvider(f,i){if(this.provider.has(f))throw new Error(`A filesystem provider for the scheme '${f}' is already registered.`);(0,w.mark)(`code/registerFilesystem/${f}`);const s=new C.DisposableStore;return this.provider.set(f,i),this._onDidChangeFileSystemProviderRegistrations.fire({added:!0,scheme:f,provider:i}),s.add(i.onDidChangeFile(n=>this._onDidFilesChange.fire(new v.FileChangesEvent(n,!this.isPathCaseSensitive(i))))),typeof i.onDidWatchError=="function"&&s.add(i.onDidWatchError(n=>this._onDidWatchError.fire(new Error(n)))),s.add(i.onDidChangeCapabilities(()=>this._onDidChangeFileSystemProviderCapabilities.fire({provider:i,scheme:f}))),(0,C.toDisposable)(()=>{this._onDidChangeFileSystemProviderRegistrations.fire({added:!1,scheme:f,provider:i}),this.provider.delete(f),(0,C.dispose)(s)})}getProvider(f){return this.provider.get(f)}async activateProvider(f){const i=[];this._onWillActivateFileSystemProvider.fire({scheme:f,join(s){i.push(s)}}),!this.provider.has(f)&&await t.Promises.settled(i)}async canHandleResource(f){return await this.activateProvider(f.scheme),this.hasProvider(f)}hasProvider(f){return this.provider.has(f.scheme)}hasCapability(f,i){const s=this.provider.get(f.scheme);return!!(s&&s.capabilities&i)}listCapabilities(){return p.Iterable.map(this.provider,([f,i])=>({scheme:f,capabilities:i.capabilities}))}async withProvider(f){if(!(0,E.isAbsolutePath)(f))throw new v.FileOperationError((0,I.localize)(0,null,this.resourceForError(f)),8);await this.activateProvider(f.scheme);const i=this.provider.get(f.scheme);if(!i){const s=new Error;throw s.name="ENOPRO",s.message=(0,I.localize)(1,null,f.toString()),s}return i}async withReadProvider(f){const i=await this.withProvider(f);if((0,v.hasOpenReadWriteCloseCapability)(i)||(0,v.hasReadWriteCapability)(i)||(0,v.hasFileReadStreamCapability)(i))return i;throw new Error(`Filesystem provider for scheme '${f.scheme}' neither has FileReadWrite, FileReadStream nor FileOpenReadWriteClose capability which is needed for the read operation.`)}async withWriteProvider(f){const i=await this.withProvider(f);if((0,v.hasOpenReadWriteCloseCapability)(i)||(0,v.hasReadWriteCapability)(i))return i;throw new Error(`Filesystem provider for scheme '${f.scheme}' neither has FileReadWrite nor FileOpenReadWriteClose capability which is needed for the write operation.`)}async resolve(f,i){try{return await this.doResolveFile(f,i)}catch(s){throw(0,v.toFileSystemProviderErrorCode)(s)===v.FileSystemProviderErrorCode.FileNotFound?new v.FileOperationError((0,I.localize)(2,null,this.resourceForError(f)),1):(0,v.ensureFileSystemProviderError)(s)}}async doResolveFile(f,i){const s=await this.withProvider(f),n=this.isPathCaseSensitive(s),a=i?.resolveTo,o=i?.resolveSingleChildDescendants,r=i?.resolveMetadata,l=await s.stat(f);let h;return this.toFileStat(s,f,l,void 0,!!r,(S,A)=>(h||(h=T.TernarySearchTree.forUris(()=>!n),h.set(f,!0),a&&h.fill(!0,a)),h.get(S.resource)||h.findSuperstr(S.resource.with({query:null,fragment:null}))?!0:S.isDirectory&&o?A===1:!1))}async toFileStat(f,i,s,n,a,o){const{providerExtUri:r}=this.getExtUri(f),l={resource:i,name:r.basename(i),isFile:(s.type&v.FileType.File)!=0,isDirectory:(s.type&v.FileType.Directory)!=0,isSymbolicLink:(s.type&v.FileType.SymbolicLink)!=0,mtime:s.mtime,ctime:s.ctime,size:s.size,readonly:Boolean((s.permissions??0)&v.FilePermission.Readonly)||Boolean(f.capabilities&2048),etag:(0,v.etag)({mtime:s.mtime,size:s.size}),children:void 0};if(l.isDirectory&&o(l,n)){try{const h=await f.readdir(i),S=await t.Promises.settled(h.map(async([A,$])=>{try{const W=r.joinPath(i,A),ee=a?await f.stat(W):{type:$};return await this.toFileStat(f,W,ee,h.length,a,o)}catch(W){return this.logService.trace(W),null}}));l.children=(0,b.coalesce)(S)}catch(h){this.logService.trace(h),l.children=[]}return l}return l}async resolveAll(f){return t.Promises.settled(f.map(async i=>{try{return{stat:await this.doResolveFile(i.resource,i.options),success:!0}}catch(s){return this.logService.trace(s),{stat:void 0,success:!1}}}))}async stat(f){const i=await this.withProvider(f),s=await i.stat(f);return this.toFileStat(i,f,s,void 0,!0,()=>!1)}async exists(f){const i=await this.withProvider(f);try{return!!await i.stat(f)}catch{return!1}}async canCreateFile(f,i){try{await this.doValidateCreateFile(f,i)}catch(s){return s}return!0}async doValidateCreateFile(f,i){if(!i?.overwrite&&await this.exists(f))throw new v.FileOperationError((0,I.localize)(3,null,this.resourceForError(f)),3,i)}async createFile(f,i=D.VSBuffer.fromString(""),s){await this.doValidateCreateFile(f,s);const n=await this.writeFile(f,i);return this._onDidRunOperation.fire(new v.FileOperationEvent(f,0,n)),n}async writeFile(f,i,s){const n=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(f),f),{providerExtUri:a}=this.getExtUri(n);try{await this.validateWriteFile(n,f,s)||await this.mkdirp(n,a.dirname(f));let r;if((0,v.hasReadWriteCapability)(n)&&!(i instanceof D.VSBuffer))if((0,d.isReadableStream)(i)){const l=await(0,d.peekStream)(i,3);l.ended?r=D.VSBuffer.concat(l.buffer):r=l}else r=(0,d.peekReadable)(i,l=>D.VSBuffer.concat(l),3);else r=i;!(0,v.hasOpenReadWriteCloseCapability)(n)||(0,v.hasReadWriteCapability)(n)&&r instanceof D.VSBuffer?await this.doWriteUnbuffered(n,f,s,r):await this.doWriteBuffered(n,f,s,r instanceof D.VSBuffer?(0,D.bufferToReadable)(r):r),this._onDidRunOperation.fire(new v.FileOperationEvent(f,4))}catch(o){throw new v.FileOperationError((0,I.localize)(4,null,this.resourceForError(f),(0,v.ensureFileSystemProviderError)(o).toString()),(0,v.toFileOperationResult)(o),s)}return this.resolve(f,{resolveMetadata:!0})}async validateWriteFile(f,i,s){if(!!s?.unlock&&!(f.capabilities&8192))throw new Error((0,I.localize)(5,null,this.resourceForError(i)));let a;try{a=await f.stat(i)}catch{return}if((a.type&v.FileType.Directory)!=0)throw new v.FileOperationError((0,I.localize)(6,null,this.resourceForError(i)),0,s);if(this.throwIfFileIsReadonly(i,a),typeof s?.mtime=="number"&&typeof s.etag=="string"&&s.etag!==v.ETAG_DISABLED&&typeof a.mtime=="number"&&typeof a.size=="number"&&s.mtime<a.mtime&&s.etag!==(0,v.etag)({mtime:s.mtime,size:a.size}))throw new v.FileOperationError((0,I.localize)(7,null),3,s);return a}async readFile(f,i,s){const n=await this.withReadProvider(f);return i?.atomic?this.doReadFileAtomic(n,f,i,s):this.doReadFile(n,f,i,s)}async doReadFileAtomic(f,i,s,n){return new Promise((a,o)=>{this.writeQueue.queueFor(i,this.getExtUri(f).providerExtUri).queue(async()=>{try{const r=await this.doReadFile(f,i,s,n);a(r)}catch(r){o(r)}})})}async doReadFile(f,i,s,n){const a=await this.doReadFileStream(f,i,{...s,preferUnbuffered:!0},n);return{...a,value:await(0,D.streamToBuffer)(a.value)}}async readFileStream(f,i,s){const n=await this.withReadProvider(f);return this.doReadFileStream(n,f,i,s)}async doReadFileStream(f,i,s,n){const a=new P.CancellationTokenSource(n),o=this.validateReadFile(i,s).then(l=>l,l=>{throw a.cancel(),l});let r;try{return typeof s?.etag=="string"&&s.etag!==v.ETAG_DISABLED&&await o,s?.atomic&&(0,v.hasFileAtomicReadCapability)(f)||!((0,v.hasOpenReadWriteCloseCapability)(f)||(0,v.hasFileReadStreamCapability)(f))||(0,v.hasReadWriteCapability)(f)&&s?.preferUnbuffered?r=this.readFileUnbuffered(f,i,s):(0,v.hasFileReadStreamCapability)(f)?r=this.readFileStreamed(f,i,a.token,s):r=this.readFileBuffered(f,i,a.token,s),{...await o,value:r}}catch(l){r&&await(0,d.consumeStream)(r);const h=(0,I.localize)(8,null,this.resourceForError(i),(0,v.ensureFileSystemProviderError)(l).toString());throw l instanceof v.NotModifiedSinceFileOperationError?new v.NotModifiedSinceFileOperationError(h,l.stat,s):new v.FileOperationError(h,(0,v.toFileOperationResult)(l),s)}}readFileStreamed(f,i,s,n=Object.create(null)){const a=f.readFileStream(i,n,s);return(0,d.transform)(a,{data:o=>o instanceof D.VSBuffer?o:D.VSBuffer.wrap(o),error:o=>new v.FileOperationError((0,I.localize)(9,null,this.resourceForError(i),(0,v.ensureFileSystemProviderError)(o).toString()),(0,v.toFileOperationResult)(o),n)},o=>D.VSBuffer.concat(o))}readFileBuffered(f,i,s,n=Object.create(null)){const a=(0,D.newWriteableBufferStream)();return(0,m.readFileIntoStream)(f,i,a,o=>o,{...n,bufferSize:this.BUFFER_SIZE,errorTransformer:o=>new v.FileOperationError((0,I.localize)(10,null,this.resourceForError(i),(0,v.ensureFileSystemProviderError)(o).toString()),(0,v.toFileOperationResult)(o),n)},s),a}readFileUnbuffered(f,i,s){const n=(0,d.newWriteableStream)(a=>D.VSBuffer.concat(a));return(async()=>{try{let a;s?.atomic&&(0,v.hasFileAtomicReadCapability)(f)?a=await f.readFile(i,{atomic:!0}):a=await f.readFile(i),typeof s?.position=="number"&&(a=a.slice(s.position)),typeof s?.length=="number"&&(a=a.slice(0,s.length)),this.validateReadFileLimits(i,a.byteLength,s),n.end(D.VSBuffer.wrap(a))}catch(a){n.error(a),n.end()}})(),n}async validateReadFile(f,i){const s=await this.resolve(f,{resolveMetadata:!0});if(s.isDirectory)throw new v.FileOperationError((0,I.localize)(11,null,this.resourceForError(f)),0,i);if(typeof i?.etag=="string"&&i.etag!==v.ETAG_DISABLED&&i.etag===s.etag)throw new v.NotModifiedSinceFileOperationError((0,I.localize)(12,null),s,i);return this.validateReadFileLimits(f,s.size,i),s}validateReadFileLimits(f,i,s){if(s?.limits){let n;if(typeof s.limits.memory=="number"&&i>s.limits.memory&&(n=9),typeof s.limits.size=="number"&&i>s.limits.size&&(n=7),typeof n=="number")throw new v.FileOperationError((0,I.localize)(13,null,this.resourceForError(f)),n)}}async canMove(f,i,s){return this.doCanMoveCopy(f,i,"move",s)}async canCopy(f,i,s){return this.doCanMoveCopy(f,i,"copy",s)}async doCanMoveCopy(f,i,s,n){if(f.toString()!==i.toString())try{const a=s==="move"?this.throwIfFileSystemIsReadonly(await this.withWriteProvider(f),f):await this.withReadProvider(f),o=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(i),i);await this.doValidateMoveCopy(a,f,o,i,s,n)}catch(a){return a}return!0}async move(f,i,s){const n=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(f),f),a=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(i),i),o=await this.doMoveCopy(n,f,a,i,"move",!!s),r=await this.resolve(i,{resolveMetadata:!0});return this._onDidRunOperation.fire(new v.FileOperationEvent(f,o==="move"?2:3,r)),r}async copy(f,i,s){const n=await this.withReadProvider(f),a=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(i),i),o=await this.doMoveCopy(n,f,a,i,"copy",!!s),r=await this.resolve(i,{resolveMetadata:!0});return this._onDidRunOperation.fire(new v.FileOperationEvent(f,o==="copy"?3:2,r)),r}async doMoveCopy(f,i,s,n,a,o){if(i.toString()===n.toString())return a;const{exists:r,isSameResourceWithDifferentPathCase:l}=await this.doValidateMoveCopy(f,i,s,n,a,o);if(r&&!l&&o&&await this.del(n,{recursive:!0}),await this.mkdirp(s,this.getExtUri(s).providerExtUri.dirname(n)),a==="copy"){if(f===s&&(0,v.hasFileFolderCopyCapability)(f))await f.copy(i,n,{overwrite:o});else{const h=await this.resolve(i);h.isDirectory?await this.doCopyFolder(f,h,s,n):await this.doCopyFile(f,i,s,n)}return a}else return f===s?(await f.rename(i,n,{overwrite:o}),a):(await this.doMoveCopy(f,i,s,n,"copy",o),await this.del(i,{recursive:!0}),"copy")}async doCopyFile(f,i,s,n){if((0,v.hasOpenReadWriteCloseCapability)(f)&&(0,v.hasOpenReadWriteCloseCapability)(s))return this.doPipeBuffered(f,i,s,n);if((0,v.hasOpenReadWriteCloseCapability)(f)&&(0,v.hasReadWriteCapability)(s))return this.doPipeBufferedToUnbuffered(f,i,s,n);if((0,v.hasReadWriteCapability)(f)&&(0,v.hasOpenReadWriteCloseCapability)(s))return this.doPipeUnbufferedToBuffered(f,i,s,n);if((0,v.hasReadWriteCapability)(f)&&(0,v.hasReadWriteCapability)(s))return this.doPipeUnbuffered(f,i,s,n)}async doCopyFolder(f,i,s,n){await s.mkdir(n),Array.isArray(i.children)&&await t.Promises.settled(i.children.map(async a=>{const o=this.getExtUri(s).providerExtUri.joinPath(n,a.name);return a.isDirectory?this.doCopyFolder(f,await this.resolve(a.resource),s,o):this.doCopyFile(f,a.resource,s,o)}))}async doValidateMoveCopy(f,i,s,n,a,o){let r=!1;if(f===s){const{providerExtUri:h,isPathCaseSensitive:S}=this.getExtUri(f);if(S||(r=h.isEqual(i,n)),r&&a==="copy")throw new Error((0,I.localize)(14,null,this.resourceForError(i),this.resourceForError(n)));if(!r&&h.isEqualOrParent(n,i))throw new Error((0,I.localize)(15,null,this.resourceForError(i),this.resourceForError(n)))}const l=await this.exists(n);if(l&&!r){if(!o)throw new v.FileOperationError((0,I.localize)(16,null,this.resourceForError(i),this.resourceForError(n)),4);if(f===s){const{providerExtUri:h}=this.getExtUri(f);if(h.isEqualOrParent(i,n))throw new Error((0,I.localize)(17,null,this.resourceForError(i),this.resourceForError(n)))}}return{exists:l,isSameResourceWithDifferentPathCase:r}}getExtUri(f){const i=this.isPathCaseSensitive(f);return{providerExtUri:i?E.extUri:E.extUriIgnorePathCase,isPathCaseSensitive:i}}isPathCaseSensitive(f){return!!(f.capabilities&1024)}async createFolder(f){const i=this.throwIfFileSystemIsReadonly(await this.withProvider(f),f);await this.mkdirp(i,f);const s=await this.resolve(f,{resolveMetadata:!0});return this._onDidRunOperation.fire(new v.FileOperationEvent(f,0,s)),s}async mkdirp(f,i){const s=[],{providerExtUri:n}=this.getExtUri(f);for(;!n.isEqual(i,n.dirname(i));)try{if(((await f.stat(i)).type&v.FileType.Directory)==0)throw new Error((0,I.localize)(18,null,this.resourceForError(i)));break}catch(a){if((0,v.toFileSystemProviderErrorCode)(a)!==v.FileSystemProviderErrorCode.FileNotFound)throw a;s.push(n.basename(i)),i=n.dirname(i)}for(let a=s.length-1;a>=0;a--){i=n.joinPath(i,s[a]);try{await f.mkdir(i)}catch(o){if((0,v.toFileSystemProviderErrorCode)(o)!==v.FileSystemProviderErrorCode.FileExists)throw o}}}async canDelete(f,i){try{await this.doValidateDelete(f,i)}catch(s){return s}return!0}async doValidateDelete(f,i){const s=this.throwIfFileSystemIsReadonly(await this.withProvider(f),f);if(!!i?.useTrash&&!(s.capabilities&4096))throw new Error((0,I.localize)(19,null,this.resourceForError(f)));let a;try{a=await s.stat(f)}catch{}if(a)this.throwIfFileIsReadonly(f,a);else throw new v.FileOperationError((0,I.localize)(20,null,this.resourceForError(f)),1);if(!!!i?.recursive){const r=await this.resolve(f);if(r.isDirectory&&Array.isArray(r.children)&&r.children.length>0)throw new Error((0,I.localize)(21,null,this.resourceForError(f)))}return s}async del(f,i){const s=await this.doValidateDelete(f,i),n=!!i?.useTrash,a=!!i?.recursive;await s.delete(f,{recursive:a,useTrash:n}),this._onDidRunOperation.fire(new v.FileOperationEvent(f,1))}async cloneFile(f,i){const s=await this.withProvider(f),n=this.throwIfFileSystemIsReadonly(await this.withWriteProvider(i),i);if(s===n&&this.getExtUri(s).providerExtUri.isEqual(f,i))return;if(s===n&&(0,v.hasFileCloneCapability)(s))return s.cloneFile(f,i);await this.mkdirp(n,this.getExtUri(n).providerExtUri.dirname(i));const a=this.writeQueue.queueFor(f,this.getExtUri(s).providerExtUri);return s===n&&(0,v.hasFileFolderCopyCapability)(s)?a.queue(()=>s.copy(f,i,{overwrite:!0})):a.queue(()=>this.doCopyFile(s,f,n,i))}watch(f,i={recursive:!1,excludes:[]}){const s=new C.DisposableStore;let n=!1,a=()=>{n=!0};return s.add((0,C.toDisposable)(()=>a())),(async()=>{try{const o=await this.doWatch(f,i);n?(0,C.dispose)(o):a=()=>(0,C.dispose)(o)}catch(o){this.logService.error(o)}})(),s}async doWatch(f,i){const s=await this.withProvider(f),n=(0,y.hash)([this.getExtUri(s).providerExtUri.getComparisonKey(f),i]);let a=this.activeWatchers.get(n);return a||(a={count:0,disposable:s.watch(f,i)},this.activeWatchers.set(n,a)),a.count+=1,(0,C.toDisposable)(()=>{a&&(a.count--,a.count===0&&((0,C.dispose)(a.disposable),this.activeWatchers.delete(n)))})}dispose(){super.dispose();for(const[,f]of this.activeWatchers)(0,C.dispose)(f.disposable);this.activeWatchers.clear()}async doWriteBuffered(f,i,s,n){return this.writeQueue.queueFor(i,this.getExtUri(f).providerExtUri).queue(async()=>{const a=await f.open(i,{create:!0,unlock:s?.unlock??!1});try{(0,d.isReadableStream)(n)||(0,d.isReadableBufferedStream)(n)?await this.doWriteStreamBufferedQueued(f,a,n):await this.doWriteReadableBufferedQueued(f,a,n)}catch(o){throw(0,v.ensureFileSystemProviderError)(o)}finally{await f.close(a)}})}async doWriteStreamBufferedQueued(f,i,s){let n=0,a;if((0,d.isReadableBufferedStream)(s)){if(s.buffer.length>0){const o=D.VSBuffer.concat(s.buffer);await this.doWriteBuffer(f,i,o,o.byteLength,n,0),n+=o.byteLength}if(s.ended)return;a=s.stream}else a=s;return new Promise((o,r)=>{(0,d.listenStream)(a,{onData:async l=>{a.pause();try{await this.doWriteBuffer(f,i,l,l.byteLength,n,0)}catch(h){return r(h)}n+=l.byteLength,setTimeout(()=>a.resume())},onError:l=>r(l),onEnd:()=>o()})})}async doWriteReadableBufferedQueued(f,i,s){let n=0,a;for(;(a=s.read())!==null;)await this.doWriteBuffer(f,i,a,a.byteLength,n,0),n+=a.byteLength}async doWriteBuffer(f,i,s,n,a,o){let r=0;for(;r<n;)r+=await f.write(i,a+r,s.buffer,o+r,n-r)}async doWriteUnbuffered(f,i,s,n){return this.writeQueue.queueFor(i,this.getExtUri(f).providerExtUri).queue(()=>this.doWriteUnbufferedQueued(f,i,s,n))}async doWriteUnbufferedQueued(f,i,s,n){let a;n instanceof D.VSBuffer?a=n:(0,d.isReadableStream)(n)?a=await(0,D.streamToBuffer)(n):(0,d.isReadableBufferedStream)(n)?a=await(0,D.bufferedStreamToBuffer)(n):a=(0,D.readableToBuffer)(n),await f.writeFile(i,a.buffer,{create:!0,overwrite:!0,unlock:s?.unlock??!1})}async doPipeBuffered(f,i,s,n){return this.writeQueue.queueFor(n,this.getExtUri(s).providerExtUri).queue(()=>this.doPipeBufferedQueued(f,i,s,n))}async doPipeBufferedQueued(f,i,s,n){let a,o;try{a=await f.open(i,{create:!1}),o=await s.open(n,{create:!0,unlock:!1});const r=D.VSBuffer.alloc(this.BUFFER_SIZE);let l=0,h=0,S=0;do S=await f.read(a,l,r.buffer,h,r.byteLength-h),await this.doWriteBuffer(s,o,r,S,l,h),l+=S,h+=S,h===r.byteLength&&(h=0);while(S>0)}catch(r){throw(0,v.ensureFileSystemProviderError)(r)}finally{await t.Promises.settled([typeof a=="number"?f.close(a):Promise.resolve(),typeof o=="number"?s.close(o):Promise.resolve()])}}async doPipeUnbuffered(f,i,s,n){return this.writeQueue.queueFor(n,this.getExtUri(s).providerExtUri).queue(()=>this.doPipeUnbufferedQueued(f,i,s,n))}async doPipeUnbufferedQueued(f,i,s,n){return s.writeFile(n,await f.readFile(i),{create:!0,overwrite:!0,unlock:!1})}async doPipeUnbufferedToBuffered(f,i,s,n){return this.writeQueue.queueFor(n,this.getExtUri(s).providerExtUri).queue(()=>this.doPipeUnbufferedToBufferedQueued(f,i,s,n))}async doPipeUnbufferedToBufferedQueued(f,i,s,n){const a=await s.open(n,{create:!0,unlock:!1});try{const o=await f.readFile(i);await this.doWriteBuffer(s,a,D.VSBuffer.wrap(o),o.byteLength,0,0)}catch(o){throw(0,v.ensureFileSystemProviderError)(o)}finally{await s.close(a)}}async doPipeBufferedToUnbuffered(f,i,s,n){const a=await(0,D.streamToBuffer)(this.readFileBuffered(f,i,P.CancellationToken.None));await this.doWriteUnbuffered(s,n,void 0,a)}throwIfFileSystemIsReadonly(f,i){if(f.capabilities&2048)throw new v.FileOperationError((0,I.localize)(22,null,this.resourceForError(i)),6);return f}throwIfFileIsReadonly(f,i){if((i.permissions??0)&v.FilePermission.Readonly)throw new v.FileOperationError((0,I.localize)(23,null,this.resourceForError(f)),6)}resourceForError(f){return f.scheme===R.Schemas.file?f.fsPath:f.toString(!0)}};u=_e([Ae(0,g.ILogService)],u),e.FileService=u}),define(ve[61],we([0,1,30,271,14,24,15,7,33,2,6,3,19,47,21,171,17,98,205,38,202,201]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g,u,c,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiskFileSystemProvider=void 0,(()=>{try{(0,t.gracefulify)(b)}catch(s){console.error(`Error enabling graceful-fs: ${(0,u.toErrorMessage)(s)}`)}})();class i extends g.AbstractDiskFileSystemProvider{constructor(n,a){super(n,a);this.onDidChangeCapabilities=y.Event.None,this.resourceLocks=new P.ResourceMap(o=>w.extUriBiasedIgnorePathCase.getComparisonKey(o)),this.mapHandleToPos=new Map,this.mapHandleToLock=new Map,this.writeHandles=new Map}get capabilities(){return this._capabilities||(this._capabilities=2|4|16|8|8192|16384|32768,R.isLinux&&(this._capabilities|=1024)),this._capabilities}async stat(n){try{const{stat:a,symbolicLink:o}=await d.SymlinkSupport.stat(this.toFilePath(n));return{type:this.toType(a,o),ctime:a.birthtime.getTime(),mtime:a.mtime.getTime(),size:a.size}}catch(a){throw this.toFileSystemProviderError(a)}}async readdir(n){try{const a=await d.Promises.readdir(this.toFilePath(n),{withFileTypes:!0}),o=[];return await Promise.all(a.map(async r=>{try{let l;r.isSymbolicLink()?l=(await this.stat((0,w.joinPath)(n,r.name))).type:l=this.toType(r),o.push([r.name,l])}catch(l){this.logService.trace(l)}})),o}catch(a){throw this.toFileSystemProviderError(a)}}toType(n,a){let o;return a?.dangling?o=v.FileType.Unknown:n.isFile()?o=v.FileType.File:n.isDirectory()?o=v.FileType.Directory:o=v.FileType.Unknown,a&&(o|=v.FileType.SymbolicLink),o}async createResourceLock(n){const a=this.toFilePath(n);this.logService.trace(`[Disk FileSystemProvider]: createResourceLock() - request to acquire resource lock (${a})`);let o;for(;o=this.resourceLocks.get(n);)this.logService.trace(`[Disk FileSystemProvider]: createResourceLock() - waiting for resource lock to be released (${a})`),await o.wait();const r=new D.Barrier;return this.resourceLocks.set(n,r),this.logService.trace(`[Disk FileSystemProvider]: createResourceLock() - new resource lock created (${a})`),(0,C.toDisposable)(()=>{this.logService.trace(`[Disk FileSystemProvider]: createResourceLock() - resource lock dispose() (${a})`),this.resourceLocks.get(n)===r&&(this.logService.trace(`[Disk FileSystemProvider]: createResourceLock() - resource lock removed from resource-lock map (${a})`),this.resourceLocks.delete(n)),this.logService.trace(`[Disk FileSystemProvider]: createResourceLock() - resource lock barrier open() (${a})`),r.open()})}async readFile(n,a){let o;try{a?.atomic&&(this.logService.trace(`[Disk FileSystemProvider]: atomic read operation started (${this.toFilePath(n)})`),o=await this.createResourceLock(n));const r=this.toFilePath(n);return await d.Promises.readFile(r)}catch(r){throw this.toFileSystemProviderError(r)}finally{o?.dispose()}}readFileStream(n,a,o){const r=(0,E.newWriteableStream)(l=>k.VSBuffer.concat(l.map(h=>k.VSBuffer.wrap(h))).buffer);return(0,m.readFileIntoStream)(this,n,r,l=>l.buffer,{...a,bufferSize:256*1024},o),r}async writeFile(n,a,o){let r;try{const l=this.toFilePath(n);if(!o.create||!o.overwrite){if(await d.Promises.exists(l)){if(!o.overwrite)throw(0,v.createFileSystemProviderError)((0,I.localize)(0,null),v.FileSystemProviderErrorCode.FileExists)}else if(!o.create)throw(0,v.createFileSystemProviderError)((0,I.localize)(1,null),v.FileSystemProviderErrorCode.FileNotFound)}r=await this.open(n,{create:!0,unlock:o.unlock}),await this.write(r,0,a,0,a.byteLength)}catch(l){throw await this.toFileSystemProviderWriteError(n,l)}finally{typeof r=="number"&&await this.close(r)}}static configureFlushOnWrite(n){i.canFlush=n}async open(n,a){const o=this.toFilePath(n);let r;(0,v.isFileOpenForWriteOptions)(a)&&(r=await this.createResourceLock(n));let l;try{if((0,v.isFileOpenForWriteOptions)(a)&&a.unlock)try{const{stat:S}=await d.SymlinkSupport.stat(o);S.mode&128||await d.Promises.chmod(o,S.mode|128)}catch(S){this.logService.trace(S)}let h;if((0,v.isFileOpenForWriteOptions)(a)){if(R.isWindows)try{await d.Promises.truncate(o,0),h="r+"}catch(S){S.code!=="ENOENT"&&this.logService.trace(S)}h||(h="w")}else h="r";l=await d.Promises.open(o,h)}catch(h){throw r?.dispose(),(0,v.isFileOpenForWriteOptions)(a)?await this.toFileSystemProviderWriteError(n,h):this.toFileSystemProviderError(h)}if(this.mapHandleToPos.set(l,0),(0,v.isFileOpenForWriteOptions)(a)&&this.writeHandles.set(l,n),r){const h=this.mapHandleToLock.get(l);this.logService.trace(`[Disk FileSystemProvider]: open() - storing lock for handle ${l} (${o})`),this.mapHandleToLock.set(l,r),h&&(this.logService.trace(`[Disk FileSystemProvider]: open() - disposing a previous lock that was still stored on same handle ${l} (${o})`),h.dispose())}return l}async close(n){const a=this.mapHandleToLock.get(n);try{if(this.mapHandleToPos.delete(n),this.writeHandles.delete(n)&&i.canFlush)try{await d.Promises.fdatasync(n)}catch(o){i.configureFlushOnWrite(!1),this.logService.error(o)}return await d.Promises.close(n)}catch(o){throw this.toFileSystemProviderError(o)}finally{a&&(this.mapHandleToLock.get(n)===a&&(this.logService.trace(`[Disk FileSystemProvider]: close() - resource lock removed from handle-lock map ${n}`),this.mapHandleToLock.delete(n)),this.logService.trace(`[Disk FileSystemProvider]: close() - disposing lock for handle ${n}`),a.dispose())}}async read(n,a,o,r,l){const h=this.normalizePos(n,a);let S=null;try{S=(await d.Promises.read(n,o,r,l,h)).bytesRead}catch(A){throw this.toFileSystemProviderError(A)}finally{this.updatePos(n,h,S)}return S}normalizePos(n,a){return a===this.mapHandleToPos.get(n)?null:a}updatePos(n,a,o){const r=this.mapHandleToPos.get(n);typeof r=="number"&&(typeof a=="number"||(typeof o=="number"?this.mapHandleToPos.set(n,r+o):this.mapHandleToPos.delete(n)))}async write(n,a,o,r,l){return(0,D.retry)(()=>this.doWrite(n,a,o,r,l),100,3)}async doWrite(n,a,o,r,l){const h=this.normalizePos(n,a);let S=null;try{S=(await d.Promises.write(n,o,r,l,h)).bytesWritten}catch(A){throw await this.toFileSystemProviderWriteError(this.writeHandles.get(n),A)}finally{this.updatePos(n,h,S)}return S}async mkdir(n){try{await d.Promises.mkdir(this.toFilePath(n))}catch(a){throw this.toFileSystemProviderError(a)}}async delete(n,a){try{const o=this.toFilePath(n);a.recursive?await d.Promises.rm(o,d.RimRafMode.MOVE):await d.Promises.unlink(o)}catch(o){throw this.toFileSystemProviderError(o)}}async rename(n,a,o){const r=this.toFilePath(n),l=this.toFilePath(a);if(r!==l)try{await this.validateTargetDeleted(n,a,"move",o.overwrite),await d.Promises.move(r,l)}catch(h){throw(h.code==="EINVAL"||h.code==="EBUSY"||h.code==="ENAMETOOLONG")&&(h=new Error((0,I.localize)(2,null,(0,T.basename)(r),(0,T.basename)((0,T.dirname)(l)),h.toString()))),this.toFileSystemProviderError(h)}}async copy(n,a,o){const r=this.toFilePath(n),l=this.toFilePath(a);if(r!==l)try{await this.validateTargetDeleted(n,a,"copy",o.overwrite),await d.Promises.copy(r,l,{preserveSymlinks:!0})}catch(h){throw(h.code==="EINVAL"||h.code==="EBUSY"||h.code==="ENAMETOOLONG")&&(h=new Error((0,I.localize)(3,null,(0,T.basename)(r),(0,T.basename)((0,T.dirname)(l)),h.toString()))),this.toFileSystemProviderError(h)}}async validateTargetDeleted(n,a,o,r){const l=this.toFilePath(n),h=this.toFilePath(a);let S=!1;if(!!(this.capabilities&1024)||(S=(0,p.isEqual)(l,h,!0)),S&&o==="copy")throw(0,v.createFileSystemProviderError)((0,I.localize)(4,null),v.FileSystemProviderErrorCode.FileExists);if(!S&&await d.Promises.exists(h)){if(!r)throw(0,v.createFileSystemProviderError)((0,I.localize)(5,null),v.FileSystemProviderErrorCode.FileExists);await this.delete(a,{recursive:!0,useTrash:!1})}}async cloneFile(n,a){return this.doCloneFile(n,a,!1)}async doCloneFile(n,a,o){const r=this.toFilePath(n),l=this.toFilePath(a),h=!!(this.capabilities&1024);if((0,p.isEqual)(r,l,!h))return;const S=new C.DisposableStore;try{const[A,$]=await Promise.all([this.createResourceLock(n),this.createResourceLock(a)]);S.add(A),S.add($),o&&await d.Promises.mkdir((0,T.dirname)(l),{recursive:!0}),await d.Promises.copyFile(r,l)}catch(A){if(A.code==="ENOENT"&&!o)return this.doCloneFile(n,a,!0);throw this.toFileSystemProviderError(A)}finally{S.dispose()}}createUniversalWatcher(n,a,o){return new c.UniversalWatcherClient(r=>n(r),r=>a(r),o)}createNonRecursiveWatcher(n,a,o){return new f.NodeJSWatcherClient(r=>n(r),r=>a(r),o)}toFileSystemProviderError(n){if(n instanceof v.FileSystemProviderError)return n;let a;switch(n.code){case"ENOENT":a=v.FileSystemProviderErrorCode.FileNotFound;break;case"EISDIR":a=v.FileSystemProviderErrorCode.FileIsADirectory;break;case"ENOTDIR":a=v.FileSystemProviderErrorCode.FileNotADirectory;break;case"EEXIST":a=v.FileSystemProviderErrorCode.FileExists;break;case"EPERM":case"EACCES":a=v.FileSystemProviderErrorCode.NoPermissions;break;default:a=v.FileSystemProviderErrorCode.Unknown}return(0,v.createFileSystemProviderError)(n,a)}async toFileSystemProviderWriteError(n,a){let o=this.toFileSystemProviderError(a);if(n&&o.code===v.FileSystemProviderErrorCode.NoPermissions)try{const{stat:r}=await d.SymlinkSupport.stat(this.toFilePath(n));r.mode&128||(o=(0,v.createFileSystemProviderError)(a,v.FileSystemProviderErrorCode.FileWriteLocked))}catch(r){this.logService.trace(r)}return o}}e.DiskFileSystemProvider=i,i.canFlush=!0}),define(ve[206],we([0,1,7,61,2,15,47,20]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractSessionFileWatcher=e.AbstractDiskFileSystemProviderChannel=void 0;class p extends D.Disposable{constructor(R,w){super();this.provider=R,this.logService=w,this.sessionToWatcher=new Map,this.watchRequests=new Map}call(R,w,E){const d=this.getUriTransformer(R);switch(w){case"stat":return this.stat(d,E[0]);case"readdir":return this.readdir(d,E[0]);case"open":return this.open(d,E[0],E[1]);case"close":return this.close(E[0]);case"read":return this.read(E[0],E[1],E[2]);case"readFile":return this.readFile(d,E[0],E[1]);case"write":return this.write(E[0],E[1],E[2],E[3],E[4]);case"writeFile":return this.writeFile(d,E[0],E[1],E[2]);case"rename":return this.rename(d,E[0],E[1],E[2]);case"copy":return this.copy(d,E[0],E[1],E[2]);case"cloneFile":return this.cloneFile(d,E[0],E[1]);case"mkdir":return this.mkdir(d,E[0]);case"delete":return this.delete(d,E[0],E[1]);case"watch":return this.watch(d,E[0],E[1],E[2],E[3]);case"unwatch":return this.unwatch(E[0],E[1])}throw new Error(`IPC Command ${w} not found`)}listen(R,w,E){const d=this.getUriTransformer(R);switch(w){case"fileChange":return this.onFileChange(d,E[0]);case"readFileStream":return this.onReadFileStream(d,E[0],E[1])}throw new Error(`Unknown event ${w}`)}stat(R,w){const E=this.transformIncoming(R,w,!0);return this.provider.stat(E)}readdir(R,w){const E=this.transformIncoming(R,w);return this.provider.readdir(E)}async readFile(R,w,E){const d=this.transformIncoming(R,w,!0),I=await this.provider.readFile(d,E);return P.VSBuffer.wrap(I)}onReadFileStream(R,w,E){const d=this.transformIncoming(R,w,!0),I=new y.CancellationTokenSource,v=new b.Emitter({onLastListenerRemove:()=>{I.cancel()}}),m=this.provider.readFileStream(d,E,I.token);return(0,k.listenStream)(m,{onData:g=>v.fire(P.VSBuffer.wrap(g)),onError:g=>v.fire(g),onEnd:()=>{v.fire("end"),v.dispose(),I.dispose()}}),v.event}writeFile(R,w,E,d){const I=this.transformIncoming(R,w);return this.provider.writeFile(I,E.buffer,d)}open(R,w,E){const d=this.transformIncoming(R,w,!0);return this.provider.open(d,E)}close(R){return this.provider.close(R)}async read(R,w,E){const d=P.VSBuffer.alloc(E),I=0,v=await this.provider.read(R,w,d.buffer,I,E);return[d,v]}write(R,w,E,d,I){return this.provider.write(R,w,E.buffer,d,I)}mkdir(R,w){const E=this.transformIncoming(R,w);return this.provider.mkdir(E)}delete(R,w,E){const d=this.transformIncoming(R,w);return this.provider.delete(d,E)}rename(R,w,E,d){const I=this.transformIncoming(R,w),v=this.transformIncoming(R,E);return this.provider.rename(I,v,d)}copy(R,w,E,d){const I=this.transformIncoming(R,w),v=this.transformIncoming(R,E);return this.provider.copy(I,v,d)}cloneFile(R,w,E){const d=this.transformIncoming(R,w),I=this.transformIncoming(R,E);return this.provider.cloneFile(d,I)}onFileChange(R,w){const E=new b.Emitter({onFirstListenerAdd:()=>{this.sessionToWatcher.set(w,this.createSessionFileWatcher(R,E))},onLastListenerRemove:()=>{(0,D.dispose)(this.sessionToWatcher.get(w)),this.sessionToWatcher.delete(w)}});return E.event}async watch(R,w,E,d,I){const v=this.sessionToWatcher.get(w);if(v){const m=this.transformIncoming(R,d),g=v.watch(E,m,I);this.watchRequests.set(w+E,g)}}async unwatch(R,w){const E=R+w,d=this.watchRequests.get(E);d&&((0,D.dispose)(d),this.watchRequests.delete(E))}dispose(){super.dispose();for(const[,R]of this.watchRequests)R.dispose();this.watchRequests.clear();for(const[,R]of this.sessionToWatcher)R.dispose();this.sessionToWatcher.clear()}}e.AbstractDiskFileSystemProviderChannel=p;class C extends D.Disposable{constructor(R,w,E,d){super();this.uriTransformer=R,this.logService=E,this.environmentService=d,this.watcherRequests=new Map,this.fileWatcher=this._register(new t.DiskFileSystemProvider(this.logService,{watcher:{recursive:this.getRecursiveWatcherOptions(this.environmentService)}})),this.registerListeners(w)}registerListeners(R){const w=this._register(new b.Emitter);this._register(w.event(E=>{R.fire(E.map(d=>({resource:this.uriTransformer.transformOutgoingURI(d.resource),type:d.type})))})),this._register(this.fileWatcher.onDidChangeFile(E=>w.fire(E))),this._register(this.fileWatcher.onDidWatchError(E=>R.fire(E)))}getRecursiveWatcherOptions(R){}getExtraExcludes(R){}watch(R,w,E){const d=this.getExtraExcludes(this.environmentService);return Array.isArray(d)&&(E.excludes=[...E.excludes,...d]),this.watcherRequests.set(R,this.fileWatcher.watch(w,E)),(0,D.toDisposable)(()=>{(0,D.dispose)(this.watcherRequests.get(R)),this.watcherRequests.delete(R)})}dispose(){super.dispose();for(const[,R]of this.watcherRequests)R.dispose();this.watcherRequests.clear()}}e.AbstractSessionFileWatcher=C}),define(ve[101],we([0,1,7,4,13]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FollowerLogService=e.LoggerChannelClient=e.LoggerChannel=e.LogLevelChannelClient=e.LogLevelChannel=void 0;class P{constructor(w){this.service=w,this.onDidChangeLogLevel=b.Event.buffer(w.onDidChangeLogLevel,!0)}listen(w,E){switch(E){case"onDidChangeLogLevel":return this.onDidChangeLogLevel}throw new Error(`Event not found: ${E}`)}async call(w,E,d){switch(E){case"setLevel":return this.service.setLevel(d)}throw new Error(`Call not found: ${E}`)}}e.LogLevelChannel=P;class k{constructor(w){this.channel=w}get onDidChangeLogLevel(){return this.channel.listen("onDidChangeLogLevel")}setLevel(w){k.setLevel(this.channel,w)}static setLevel(w,E){return w.call("setLevel",E)}}e.LogLevelChannelClient=k;class y{constructor(w){this.loggerService=w,this.loggers=new Map}listen(w,E){throw new Error(`Event not found: ${E}`)}async call(w,E,d){switch(E){case"createLogger":this.createLogger(t.URI.revive(d[0]),d[1]);return;case"log":return this.log(t.URI.revive(d[0]),d[1]);case"consoleLog":return this.consoleLog(d[0],d[1])}throw new Error(`Call not found: ${E}`)}createLogger(w,E){this.loggers.set(w.toString(),this.loggerService.createLogger(w,E))}consoleLog(w,E){let d=console.log;switch(w){case D.LogLevel.Error:d=console.error;break;case D.LogLevel.Warning:d=console.warn;break;case D.LogLevel.Info:d=console.info;break}d.call(console,...E)}log(w,E){const d=this.loggers.get(w.toString());if(!d)throw new Error("Create the logger before logging");for(const[I,v]of E)(0,D.log)(d,I,v)}}e.LoggerChannel=y;class p extends D.AbstractLoggerService{constructor(w,E,d){super(w,E);this.channel=d}createConsoleMainLogger(){return new D.AdapterLogger({log:(w,E)=>{this.channel.call("consoleLog",[w,E])}})}doCreateLogger(w,E,d){return new C(this.channel,w,E,d)}}e.LoggerChannelClient=p;class C extends D.AbstractMessageLogger{constructor(w,E,d,I){super(I?.always);this.channel=w,this.file=E,this.isLoggerCreated=!1,this.buffer=[],this.setLevel(d),this.channel.call("createLogger",[E,I]).then(()=>{this.doLog(this.buffer),this.isLoggerCreated=!0})}log(w,E){const d=[[w,E]];this.isLoggerCreated?this.doLog(d):this.buffer.push(...d)}doLog(w){this.channel.call("log",[this.file,w])}}class T extends D.LogService{constructor(w,E){super(E);this.parent=w,this._register(w.onDidChangeLogLevel(d=>E.setLevel(d)))}setLevel(w){super.setLevel(w),this.parent.setLevel(w)}}e.FollowerLogService=T}),define(ve[102],we([0,1,17,13]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SpdLogLogger=void 0;async function D(y,p,C,T,R){try{const w=await new Promise((d,I)=>{oe(["spdlog"],d,I)});w.setFlushOn(t.LogLevel.Trace);const E=await w.createAsyncRotatingLogger(y,p,C,T);return R&&E.clearFormatters(),E}catch(w){console.error(w)}return null}function P(y,p,C){switch(p){case t.LogLevel.Trace:y.trace(C);break;case t.LogLevel.Debug:y.debug(C);break;case t.LogLevel.Info:y.info(C);break;case t.LogLevel.Warning:y.warn(C);break;case t.LogLevel.Error:y.error(C);break;case t.LogLevel.Critical:y.critical(C);break;default:throw new Error("Invalid log level")}}class k extends t.AbstractMessageLogger{constructor(p,C,T,R,w){super();this.buffer=[],this.setLevel(w),this._loggerCreationPromise=this._createSpdLogLogger(p,C,T,R),this._register(this.onDidChangeLogLevel(E=>{this._logger?.setLevel(E)}))}async _createSpdLogLogger(p,C,T,R){const w=T?6:1,E=30/w*b.ByteSize.MB,d=await D(p,C,E,w,R);if(d){this._logger=d,this._logger.setLevel(this.getLevel());for(const{level:I,message:v}of this.buffer)P(this._logger,I,v);this.buffer=[]}}log(p,C){this._logger?P(this._logger,p,C):this.getLevel()<=p&&this.buffer.push({level:p,message:C})}flush(){this._logger?this._logger.flush():this._loggerCreationPromise.then(()=>this.flush())}dispose(){this._logger?this.disposeLogger():this._loggerCreationPromise.then(()=>this.disposeLogger())}disposeLogger(){this._logger&&(this._logger.drop(),this._logger=void 0)}}e.SpdLogLogger=k}),define(ve[207],we([0,1,67,173,5]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerService=e.IMarkerData=e.MarkerSeverity=e.MarkerTag=void 0;var P;(function(p){p[p.Unnecessary=1]="Unnecessary",p[p.Deprecated=2]="Deprecated"})(P=e.MarkerTag||(e.MarkerTag={}));var k;(function(p){p[p.Hint=1]="Hint",p[p.Info=2]="Info",p[p.Warning=4]="Warning",p[p.Error=8]="Error"})(k=e.MarkerSeverity||(e.MarkerSeverity={})),function(p){function C(d,I){return I-d}p.compare=C;const T=Object.create(null);T[p.Error]=(0,t.localize)(0,null),T[p.Warning]=(0,t.localize)(1,null),T[p.Info]=(0,t.localize)(2,null);function R(d){return T[d]||""}p.toString=R;function w(d){switch(d){case b.default.Error:return p.Error;case b.default.Warning:return p.Warning;case b.default.Info:return p.Info;case b.default.Ignore:return p.Hint}}p.fromSeverity=w;function E(d){switch(d){case p.Error:return b.default.Error;case p.Warning:return b.default.Warning;case p.Info:return b.default.Info;case p.Hint:return b.default.Ignore}}p.toSeverity=E}(k=e.MarkerSeverity||(e.MarkerSeverity={}));var y;(function(p){const C="";function T(w){return R(w,!0)}p.makeKey=T;function R(w,E){const d=[C];return w.source?d.push(w.source.replace("\xA6","\\\xA6")):d.push(C),w.code?typeof w.code=="string"?d.push(w.code.replace("\xA6","\\\xA6")):d.push(w.code.value.replace("\xA6","\\\xA6")):d.push(C),w.severity!==void 0&&w.severity!==null?d.push(k.toString(w.severity)):d.push(C),w.message&&E?d.push(w.message.replace("\xA6","\\\xA6")):d.push(C),w.startLineNumber!==void 0&&w.startLineNumber!==null?d.push(w.startLineNumber.toString()):d.push(C),w.startColumn!==void 0&&w.startColumn!==null?d.push(w.startColumn.toString()):d.push(C),w.endLineNumber!==void 0&&w.endLineNumber!==null?d.push(w.endLineNumber.toString()):d.push(C),w.endColumn!==void 0&&w.endColumn!==null?d.push(w.endColumn.toString()):d.push(C),d.push(C),d.join("\xA6")}p.makeKeyOptionalMessage=R})(y=e.IMarkerData||(e.IMarkerData={})),e.IMarkerService=(0,D.createDecorator)("markerService")}),define(ve[62],we([0,1,7,46,2,5]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullPolicyService=e.AbstractPolicyService=e.IPolicyService=void 0,e.IPolicyService=(0,P.createDecorator)("policy");class k extends D.Disposable{constructor(){super(...arguments);this.policyDefinitions={},this.policies=new Map,this._onDidChange=this._register(new b.Emitter),this.onDidChange=this._onDidChange.event}async registerPolicyDefinitions(C){const T=Object.keys(this.policyDefinitions).length;return this.policyDefinitions={...C,...this.policyDefinitions},T!==Object.keys(this.policyDefinitions).length&&await this.initializePolicies(C),t.Iterable.reduce(this.policies.entries(),(R,[w,E])=>({...R,[w]:E}),{})}getPolicyValue(C){return this.policies.get(C)}serialize(){return t.Iterable.reduce(Object.entries(this.policyDefinitions),(C,[T,R])=>({...C,[T]:{definition:R,value:this.policies.get(T)}}),{})}}e.AbstractPolicyService=k;class y{constructor(){this.onDidChange=b.Event.None}async registerPolicyDefinitions(){return{}}getPolicyValue(){}serialize(){}}e.NullPolicyService=y}),define(ve[51],we([0,1,8,3,27,19]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let k;if(typeof t.globals.vscode!="undefined"&&typeof t.globals.vscode.context!="undefined"){const y=t.globals.vscode.context.configuration();if(y)k=y.product;else throw new Error("Sandbox: unable to resolve product configuration from preload script.")}else if(typeof oe?.__$__nodeRequire=="function"){const y=(0,P.dirname)(b.FileAccess.asFileUri("",oe));k=oe.__$__nodeRequire((0,P.joinPath)(y,"product.json").fsPath);const p=oe.__$__nodeRequire((0,P.joinPath)(y,"package.json").fsPath);D.env.VSCODE_DEV&&Object.assign(k,{nameShort:`${k.nameShort} Dev`,nameLong:`${k.nameLong} Dev`,dataFolderName:`${k.dataFolderName}-dev`,serverDataFolderName:k.serverDataFolderName?`${k.serverDataFolderName}-dev`:void 0}),Object.assign(k,{version:p.version,extensionsGallery:D.env.EXTENSIONS_GALLERY?JSON.parse(D.env.EXTENSIONS_GALLERY):k.extensionsGallery||{serviceUrl:"https://open-vsx.org/vscode/gallery",itemUrl:"https://open-vsx.org/vscode/item",resourceUrlTemplate:"https://open-vsx.org/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}",controlUrl:"",recommendationsUrl:""}})}else k={nameShort:"code-server",nameLong:"code-server",applicationName:"code-server",dataFolderName:".code-server",win32MutexName:"codeserver",licenseName:"MIT",licenseUrl:"https://github.com/coder/code-server/blob/main/LICENSE",serverGreeting:[],serverLicense:[],serverLicensePrompt:"",serverApplicationName:"code-server-oss",serverDataFolderName:".vscode-server-oss",win32DirName:"code-server",win32NameVersion:"code-server",win32RegValueName:"CodeOSS",win32AppId:"{{E34003BB-9E10-4501-8C11-BE3FAA83F23F}",win32x64AppId:"{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}",win32arm64AppId:"{{D1ACE434-89C5-48D1-88D3-E2991DF85475}",win32UserAppId:"{{C6065F05-9603-4FC4-8101-B9781A25D88E}",win32x64UserAppId:"{{CC6B787D-37A0-49E8-AE24-8559A032BE0C}",win32arm64UserAppId:"{{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}",win32AppUserModelId:"coder.code-server",win32ShellNameShort:"c&ode-server",darwinBundleIdentifier:"com.coder.code.server",linuxIconName:"com.coder.code.server",licenseFileName:"LICENSE.txt",reportIssueUrl:"https://github.com/coder/code-server/issues/new",urlProtocol:"code-oss",webviewContentExternalBaseUrlTemplate:"https://{{uuid}}.vscode-cdn.net/insider/3c8520fab514b9f56070214496b26ff68d1b1cb5/out/vs/workbench/contrib/webview/browser/pre/",builtInExtensions:[{name:"ms-vscode.js-debug-companion",version:"1.0.18",repo:"https://github.com/microsoft/vscode-js-debug-companion",metadata:{id:"99cb0b7f-7354-4278-b8da-6cc79972169d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.js-debug",version:"1.70.0",repo:"https://github.com/microsoft/vscode-js-debug",metadata:{id:"25629058-ddac-4e17-abba-74678e126c5d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.vscode-js-profile-table",version:"1.0.3",repo:"https://github.com/microsoft/vscode-js-profile-visualizer",metadata:{id:"7e52b41b-71ad-457b-ab7e-0620f1fc4feb",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}}],enableTelemetry:!0,quality:"stable",codeServerVersion:"4.6.1",documentationUrl:"https://go.microsoft.com/fwlink/?LinkID=533484#vscode",keyboardShortcutsUrlMac:"https://go.microsoft.com/fwlink/?linkid=832143",keyboardShortcutsUrlLinux:"https://go.microsoft.com/fwlink/?linkid=832144",keyboardShortcutsUrlWin:"https://go.microsoft.com/fwlink/?linkid=832145",introductoryVideosUrl:"https://go.microsoft.com/fwlink/?linkid=832146",tipsAndTricksUrl:"https://go.microsoft.com/fwlink/?linkid=852118",newsletterSignupUrl:"https://www.research.net/r/vsc-newsletter",linkProtectionTrustedDomains:["https://open-vsx.org"],version:"1.70.2",commit:"e4503b30fc78200f846c62cf8091b76ff5547662",date:"2022-08-31T17:57:20.072Z"},Object.keys(k).length===0&&Object.assign(k,{version:"1.67.0-dev",nameShort:"Code - OSS Dev",nameLong:"Code - OSS Dev",applicationName:"code-oss",dataFolderName:".vscode-oss",urlProtocol:"code-oss",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt"});e.default=k}),define(ve[26],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.productSchemaId=e.IProductService=void 0,e.IProductService=(0,b.createDecorator)("productService"),e.productSchemaId="vscode://schemas/vscode-product"}),define(ve[34],we([0,1,131,12]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=void 0;class D{constructor(){this.data=new Map}add(k,y){b.ok(t.isString(k)),b.ok(t.isObject(y)),b.ok(!this.data.has(k),"There is already an extension with this id"),this.data.set(k,y)}knows(k){return this.data.has(k)}as(k){return this.data.get(k)||null}}e.Registry=new D}),define(ve[208],we([0,1,7,34]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Extensions=void 0,e.Extensions={JSONContribution:"base.contributions.json"};function D(y){return y.length>0&&y.charAt(y.length-1)==="#"?y.substring(0,y.length-1):y}class P{constructor(){this._onDidChangeSchema=new b.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.schemasById={}}registerSchema(p,C){this.schemasById[D(p)]=C,this._onDidChangeSchema.fire(p)}notifySchemaChanged(p){this._onDidChangeSchema.fire(p)}getSchemaContributions(){return{schemas:this.schemasById}}}const k=new P;t.Registry.add(e.Extensions.JSONContribution,k)}),define(ve[52],we([0,1,18,7,12,158,25,208,34]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getScopes=e.validateProperty=e.getDefaultValue=e.keyFromOverrideIdentifiers=e.overrideIdentifiersFromKey=e.OVERRIDE_PROPERTY_REGEX=e.OVERRIDE_PROPERTY_PATTERN=e.configurationDefaultsSchemaId=e.resourceLanguageSettingsSchemaId=e.resourceSettings=e.windowSettings=e.machineOverridableSettings=e.machineSettings=e.applicationSettings=e.allSettings=e.ConfigurationScope=e.Extensions=e.EditPresentationTypes=void 0;var C;(function(f){f.Multiline="multilineText",f.Singleline="singlelineText"})(C=e.EditPresentationTypes||(e.EditPresentationTypes={})),e.Extensions={Configuration:"base.contributions.configuration"};var T;(function(f){f[f.APPLICATION=1]="APPLICATION",f[f.MACHINE=2]="MACHINE",f[f.WINDOW=3]="WINDOW",f[f.RESOURCE=4]="RESOURCE",f[f.LANGUAGE_OVERRIDABLE=5]="LANGUAGE_OVERRIDABLE",f[f.MACHINE_OVERRIDABLE=6]="MACHINE_OVERRIDABLE"})(T=e.ConfigurationScope||(e.ConfigurationScope={})),e.allSettings={properties:{},patternProperties:{}},e.applicationSettings={properties:{},patternProperties:{}},e.machineSettings={properties:{},patternProperties:{}},e.machineOverridableSettings={properties:{},patternProperties:{}},e.windowSettings={properties:{},patternProperties:{}},e.resourceSettings={properties:{},patternProperties:{}},e.resourceLanguageSettingsSchemaId="vscode://schemas/settings/resourceLanguage",e.configurationDefaultsSchemaId="vscode://schemas/settings/configurationDefaults";const R=p.Registry.as(y.Extensions.JSONContribution);class w{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new t.Emitter,this.onDidSchemaChange=this._onDidSchemaChange.event,this._onDidUpdateConfiguration=new t.Emitter,this.onDidUpdateConfiguration=this._onDidUpdateConfiguration.event,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:P.localize(0,null),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},R.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(i,s=!0){this.registerConfigurations([i],s)}registerConfigurations(i,s=!0){const n=this.doRegisterConfigurations(i,s);R.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}deregisterConfigurations(i){const s=this.doDeregisterConfigurations(i);R.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:s})}updateConfigurations({add:i,remove:s}){const n=[];n.push(...this.doDeregisterConfigurations(s)),n.push(...this.doRegisterConfigurations(i,!1)),R.registerSchema(e.resourceLanguageSettingsSchemaId,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:(0,b.distinct)(n)})}registerDefaultConfigurations(i){const s=[],n=[];for(const{overrides:a,source:o}of i)for(const r in a)if(s.push(r),e.OVERRIDE_PROPERTY_REGEX.test(r)){const l=this.configurationDefaultsOverrides.get(r),h=l?.valuesSources??new Map;if(o)for(const W of Object.keys(a[r]))h.set(W,o);const S={...l?.value||{},...a[r]};this.configurationDefaultsOverrides.set(r,{source:o,value:S,valuesSources:h});const A=(0,k.getLanguageTagSettingPlainKey)(r),$={type:"object",default:S,description:P.localize(1,null,A),$ref:e.resourceLanguageSettingsSchemaId,defaultDefaultValue:S,source:D.isString(o)?void 0:o,defaultValueSource:o};n.push(...I(r)),this.configurationProperties[r]=$,this.defaultLanguageConfigurationOverridesNode.properties[r]=$}else{this.configurationDefaultsOverrides.set(r,{value:a[r],source:o});const l=this.configurationProperties[r];l&&(this.updatePropertyDefaultValue(r,l),this.updateSchema(r,l))}this.registerOverrideIdentifiers(n),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:s,defaultsOverrides:!0})}deregisterDefaultConfigurations(i){const s=[];for(const{overrides:n,source:a}of i)for(const o in n){const r=this.configurationDefaultsOverrides.get(o),l=D.isString(a)?a:a?.id,h=D.isString(r?.source)?r?.source:r?.source?.id;if(l===h)if(s.push(o),this.configurationDefaultsOverrides.delete(o),e.OVERRIDE_PROPERTY_REGEX.test(o))delete this.configurationProperties[o],delete this.defaultLanguageConfigurationOverridesNode.properties[o];else{const S=this.configurationProperties[o];S&&(this.updatePropertyDefaultValue(o,S),this.updateSchema(o,S))}}this.updateOverridePropertyPatternKey(),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:s,defaultsOverrides:!0})}notifyConfigurationSchemaUpdated(...i){this._onDidSchemaChange.fire()}registerOverrideIdentifiers(i){for(const s of i)this.overrideIdentifiers.add(s);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(i,s){const n=[];return i.forEach(a=>{n.push(...this.validateAndRegisterProperties(a,s,a.extensionInfo,a.restrictedProperties)),this.configurationContributors.push(a),this.registerJSONConfiguration(a)}),n}doDeregisterConfigurations(i){const s=[],n=a=>{if(a.properties)for(const o in a.properties){s.push(o);const r=this.configurationProperties[o];r?.policy?.name&&this.policyConfigurations.delete(r.policy.name),delete this.configurationProperties[o],this.removeFromSchema(o,a.properties[o])}a.allOf?.forEach(o=>n(o))};for(const a of i){n(a);const o=this.configurationContributors.indexOf(a);o!==-1&&this.configurationContributors.splice(o,1)}return s}validateAndRegisterProperties(i,s=!0,n,a,o=3){o=D.isUndefinedOrNull(i.scope)?o:i.scope;const r=[],l=i.properties;if(l)for(const S in l){const A=l[S];if(s&&u(S,A)){delete l[S];continue}if(A.source=n,A.defaultDefaultValue=l[S].default,this.updatePropertyDefaultValue(S,A),e.OVERRIDE_PROPERTY_REGEX.test(S)?A.scope=void 0:(A.scope=D.isUndefinedOrNull(A.scope)?o:A.scope,A.restricted=D.isUndefinedOrNull(A.restricted)?!!a?.includes(S):A.restricted),l[S].hasOwnProperty("included")&&!l[S].included){this.excludedConfigurationProperties[S]=l[S],delete l[S];continue}else this.configurationProperties[S]=l[S],l[S].policy?.name&&this.policyConfigurations.set(l[S].policy.name,S);!l[S].deprecationMessage&&l[S].markdownDeprecationMessage&&(l[S].deprecationMessage=l[S].markdownDeprecationMessage),r.push(S)}const h=i.allOf;if(h)for(const S of h)r.push(...this.validateAndRegisterProperties(S,s,n,a,o));return r}getConfigurations(){return this.configurationContributors}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}getExcludedConfigurationProperties(){return this.excludedConfigurationProperties}getConfigurationDefaultsOverrides(){return this.configurationDefaultsOverrides}registerJSONConfiguration(i){const s=n=>{const a=n.properties;if(a)for(const r in a)this.updateSchema(r,a[r]);n.allOf?.forEach(s)};s(i)}updateSchema(i,s){switch(e.allSettings.properties[i]=s,s.scope){case 1:e.applicationSettings.properties[i]=s;break;case 2:e.machineSettings.properties[i]=s;break;case 6:e.machineOverridableSettings.properties[i]=s;break;case 3:e.windowSettings.properties[i]=s;break;case 4:e.resourceSettings.properties[i]=s;break;case 5:e.resourceSettings.properties[i]=s,this.resourceLanguageSettingsSchema.properties[i]=s;break}}removeFromSchema(i,s){switch(delete e.allSettings.properties[i],s.scope){case 1:delete e.applicationSettings.properties[i];break;case 2:delete e.machineSettings.properties[i];break;case 6:delete e.machineOverridableSettings.properties[i];break;case 3:delete e.windowSettings.properties[i];break;case 4:case 5:delete e.resourceSettings.properties[i],delete this.resourceLanguageSettingsSchema.properties[i];break}}updateOverridePropertyPatternKey(){for(const i of this.overrideIdentifiers.values()){const s=`[${i}]`,n={type:"object",description:P.localize(2,null),errorMessage:P.localize(3,null),$ref:e.resourceLanguageSettingsSchemaId};this.updatePropertyDefaultValue(s,n),e.allSettings.properties[s]=n,e.applicationSettings.properties[s]=n,e.machineSettings.properties[s]=n,e.machineOverridableSettings.properties[s]=n,e.windowSettings.properties[s]=n,e.resourceSettings.properties[s]=n}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){const i={type:"object",description:P.localize(4,null),errorMessage:P.localize(5,null),$ref:e.resourceLanguageSettingsSchemaId};e.allSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=i,e.applicationSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=i,e.machineSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=i,e.machineOverridableSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=i,e.windowSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=i,e.resourceSettings.patternProperties[e.OVERRIDE_PROPERTY_PATTERN]=i,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(i,s){const n=this.configurationDefaultsOverrides.get(i);let a=n?.value,o=n?.source;D.isUndefined(a)&&(a=s.defaultDefaultValue,o=void 0),D.isUndefined(a)&&(a=m(s.type)),s.default=a,s.defaultValueSource=o}}const E="\\[([^\\]]+)\\]",d=new RegExp(E,"g");e.OVERRIDE_PROPERTY_PATTERN=`^(${E})+$`,e.OVERRIDE_PROPERTY_REGEX=new RegExp(e.OVERRIDE_PROPERTY_PATTERN);function I(f){const i=[];if(e.OVERRIDE_PROPERTY_REGEX.test(f)){let s=d.exec(f);for(;s?.length;){const n=s[1].trim();n&&i.push(n),s=d.exec(f)}}return(0,b.distinct)(i)}e.overrideIdentifiersFromKey=I;function v(f){return f.reduce((i,s)=>`${i}[${s}]`,"")}e.keyFromOverrideIdentifiers=v;function m(f){switch(Array.isArray(f)?f[0]:f){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}e.getDefaultValue=m;const g=new w;p.Registry.add(e.Extensions.Configuration,g);function u(f,i){return f.trim()?e.OVERRIDE_PROPERTY_REGEX.test(f)?P.localize(7,null,f):g.getConfigurationProperties()[f]!==void 0?P.localize(8,null,f):i.policy?.name&&g.getPolicyConfigurations().get(i.policy?.name)!==void 0?P.localize(9,null,f,i.policy?.name,g.getPolicyConfigurations().get(i.policy?.name)):null:P.localize(6,null)}e.validateProperty=u;function c(){const f=[],i=g.getConfigurationProperties();for(const s of Object.keys(i))f.push([s,i[s].scope]);return f.push(["launch",4]),f.push(["task",4]),f}e.getScopes=c}),define(ve[103],we([0,1,18,7,65,2,24,22,12,4,25,52,34]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AllKeysConfigurationChangeEvent=e.ConfigurationChangeEvent=e.mergeChanges=e.Configuration=e.UserSettings=e.ConfigurationModelParser=e.ConfigurationModel=void 0;class E{constructor(s={},n=[],a=[]){this._contents=s,this._keys=n,this._overrides=a,this.frozen=!1,this.overrideConfigurations=new Map}get contents(){return this.checkAndFreeze(this._contents)}get overrides(){return this.checkAndFreeze(this._overrides)}get keys(){return this.checkAndFreeze(this._keys)}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}isFrozen(){return this.frozen}getValue(s){return s?(0,T.getConfigurationValue)(this.contents,s):this.contents}getOverrideValue(s,n){const a=this.getContentsForOverrideIdentifer(n);return a?s?(0,T.getConfigurationValue)(a,s):a:void 0}getKeysForOverrideIdentifier(s){const n=[];for(const a of this.overrides)a.identifiers.includes(s)&&n.push(...a.keys);return b.distinct(n)}getAllOverrideIdentifiers(){const s=[];for(const n of this.overrides)s.push(...n.identifiers);return b.distinct(s)}override(s){let n=this.overrideConfigurations.get(s);return n||(n=this.createOverrideConfigurationModel(s),this.overrideConfigurations.set(s,n)),n}merge(...s){const n=y.deepClone(this.contents),a=y.deepClone(this.overrides),o=[...this.keys];for(const r of s)if(!r.isEmpty()){this.mergeContents(n,r.contents);for(const l of r.overrides){const[h]=a.filter(S=>b.equals(S.identifiers,l.identifiers));h?(this.mergeContents(h.contents,l.contents),h.keys.push(...l.keys),h.keys=b.distinct(h.keys)):a.push(y.deepClone(l))}for(const l of r.keys)o.indexOf(l)===-1&&o.push(l)}return new E(n,o,a)}freeze(){return this.frozen=!0,this}clone(){return new E(y.deepClone(this.contents),[...this.keys],y.deepClone(this.overrides))}createOverrideConfigurationModel(s){const n=this.getContentsForOverrideIdentifer(s);if(!n||typeof n!="object"||!Object.keys(n).length)return this;const a={};for(const o of b.distinct([...Object.keys(this.contents),...Object.keys(n)])){let r=this.contents[o];const l=n[o];l&&(typeof r=="object"&&typeof l=="object"?(r=y.deepClone(r),this.mergeContents(r,l)):r=l),a[o]=r}return new E(a,this.keys,this.overrides)}mergeContents(s,n){for(const a of Object.keys(n)){if(a in s&&p.isObject(s[a])&&p.isObject(n[a])){this.mergeContents(s[a],n[a]);continue}s[a]=y.deepClone(n[a])}}checkAndFreeze(s){return this.frozen&&!Object.isFrozen(s)?y.deepFreeze(s):s}getContentsForOverrideIdentifer(s){let n=null,a=null;const o=r=>{r&&(a?this.mergeContents(a,r):a=y.deepClone(r))};for(const r of this.overrides)b.equals(r.identifiers,[s])?n=r.contents:r.identifiers.includes(s)&&o(r.contents);return o(n),a}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}setValue(s,n){this.addKey(s),(0,T.addToValueTree)(this.contents,s,n,a=>{throw new Error(a)})}removeValue(s){this.removeKey(s)&&(0,T.removeFromValueTree)(this.contents,s)}addKey(s){let n=this.keys.length;for(let a=0;a<n;a++)s.indexOf(this.keys[a])===0&&(n=a);this.keys.splice(n,1,s)}removeKey(s){const n=this.keys.indexOf(s);return n!==-1?(this.keys.splice(n,1),!0):!1}}e.ConfigurationModel=E;class d{constructor(s){this._name=s,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[],this._parseErrors=[]}get configurationModel(){return this._configurationModel||new E}get restrictedConfigurations(){return this._restrictedConfigurations}get errors(){return this._parseErrors}parse(s,n){if(!p.isUndefinedOrNull(s)){const a=this.doParseContent(s);this.parseRaw(a,n)}}reparse(s){this._raw&&this.parseRaw(this._raw,s)}parseRaw(s,n){this._raw=s;const{contents:a,keys:o,overrides:r,restricted:l}=this.doParseRaw(s,n);this._configurationModel=new E(a,o,r),this._restrictedConfigurations=l||[]}doParseContent(s){let n={},a=null,o=[];const r=[],l=[];function h(A){Array.isArray(o)?o.push(A):a!==null&&(o[a]=A)}const S={onObjectBegin:()=>{const A={};h(A),r.push(o),o=A,a=null},onObjectProperty:A=>{a=A},onObjectEnd:()=>{o=r.pop()},onArrayBegin:()=>{const A=[];h(A),r.push(o),o=A,a=null},onArrayEnd:()=>{o=r.pop()},onLiteralValue:h,onError:(A,$,W)=>{l.push({error:A,offset:$,length:W})}};if(s)try{D.visit(s,S),n=o[0]||{}}catch(A){console.error(`Error while parsing settings file ${this._name}: ${A}`),this._parseErrors=[A]}return n}doParseRaw(s,n){const a=w.Registry.as(R.Extensions.Configuration).getConfigurationProperties(),o=this.filter(s,a,!0,n);s=o.raw;const r=(0,T.toValuesTree)(s,S=>console.error(`Conflict in settings file ${this._name}: ${S}`)),l=Object.keys(s),h=this.toOverrides(s,S=>console.error(`Conflict in settings file ${this._name}: ${S}`));return{contents:r,keys:l,overrides:h,restricted:o.restricted}}filter(s,n,a,o){if(!o?.scopes&&!o?.skipRestricted)return{raw:s,restricted:[]};const r={},l=[];for(const h in s)if(R.OVERRIDE_PROPERTY_REGEX.test(h)&&a){const S=this.filter(s[h],n,!1,o);r[h]=S.raw,l.push(...S.restricted)}else{const S=n[h],A=S?typeof S.scope!="undefined"?S.scope:3:void 0;S?.restricted&&l.push(h),(A===void 0||o.scopes===void 0||o.scopes.includes(A))&&(o.skipRestricted&&S?.restricted||(r[h]=s[h]))}return{raw:r,restricted:l}}toOverrides(s,n){const a=[];for(const o of Object.keys(s))if(R.OVERRIDE_PROPERTY_REGEX.test(o)){const r={};for(const l in s[o])r[l]=s[o][l];a.push({identifiers:(0,R.overrideIdentifiersFromKey)(o),keys:Object.keys(r),contents:(0,T.toValuesTree)(r,n)})}return a}}e.ConfigurationModelParser=d;class I extends P.Disposable{constructor(s,n,a,o){super();this.userSettingsResource=s,this.scopes=n,this.fileService=o,this._onDidChange=this._register(new t.Emitter),this.onDidChange=this._onDidChange.event,this.parser=new d(this.userSettingsResource.toString()),this.parseOptions={scopes:this.scopes},this._register(this.fileService.watch(a.dirname(this.userSettingsResource))),this._register(this.fileService.watch(this.userSettingsResource)),this._register(t.Event.any(t.Event.filter(this.fileService.onDidFilesChange,r=>r.contains(this.userSettingsResource)),t.Event.filter(this.fileService.onDidRunOperation,r=>(r.isOperation(0)||r.isOperation(3)||r.isOperation(1)||r.isOperation(4))&&a.isEqual(r.resource,s)))(()=>this._onDidChange.fire()))}async loadConfiguration(){try{const s=await this.fileService.readFile(this.userSettingsResource);return this.parser.parse(s.value.toString()||"{}",this.parseOptions),this.parser.configurationModel}catch{return new E}}reparse(){return this.parser.reparse(this.parseOptions),this.parser.configurationModel}getRestrictedSettings(){return this.parser.restrictedConfigurations}}e.UserSettings=I;class v{constructor(s,n,a,o,r=new E,l=new E,h=new k.ResourceMap,S=new E,A=new k.ResourceMap,$=!0){this._defaultConfiguration=s,this._policyConfiguration=n,this._applicationConfiguration=a,this._localUserConfiguration=o,this._remoteUserConfiguration=r,this._workspaceConfiguration=l,this._folderConfigurations=h,this._memoryConfiguration=S,this._memoryConfigurationByResource=A,this._freeze=$,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new k.ResourceMap,this._userConfiguration=null}getValue(s,n,a){return this.getConsolidatedConfigurationModel(s,n,a).getValue(s)}updateValue(s,n,a={}){let o;a.resource?(o=this._memoryConfigurationByResource.get(a.resource),o||(o=new E,this._memoryConfigurationByResource.set(a.resource,o))):o=this._memoryConfiguration,n===void 0?o.removeValue(s):o.setValue(s,n),a.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(s,n,a){const o=this.getConsolidatedConfigurationModel(s,n,a),r=this.getFolderConfigurationModelForResource(n.resource,a),l=n.resource?this._memoryConfigurationByResource.get(n.resource)||this._memoryConfiguration:this._memoryConfiguration,h=n.overrideIdentifier?this._defaultConfiguration.freeze().override(n.overrideIdentifier).getValue(s):this._defaultConfiguration.freeze().getValue(s),S=this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration.freeze().getValue(s),A=this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration.freeze().getValue(s),$=n.overrideIdentifier?this.userConfiguration.freeze().override(n.overrideIdentifier).getValue(s):this.userConfiguration.freeze().getValue(s),W=n.overrideIdentifier?this.localUserConfiguration.freeze().override(n.overrideIdentifier).getValue(s):this.localUserConfiguration.freeze().getValue(s),ee=n.overrideIdentifier?this.remoteUserConfiguration.freeze().override(n.overrideIdentifier).getValue(s):this.remoteUserConfiguration.freeze().getValue(s),L=a?n.overrideIdentifier?this._workspaceConfiguration.freeze().override(n.overrideIdentifier).getValue(s):this._workspaceConfiguration.freeze().getValue(s):void 0,q=r?n.overrideIdentifier?r.freeze().override(n.overrideIdentifier).getValue(s):r.freeze().getValue(s):void 0,ne=n.overrideIdentifier?l.override(n.overrideIdentifier).getValue(s):l.getValue(s),x=o.getValue(s),fe=b.distinct(o.overrides.map(M=>M.identifiers).flat()).filter(M=>o.getOverrideValue(s,M)!==void 0);return{defaultValue:h,policyValue:S,applicationValue:A,userValue:$,userLocalValue:W,userRemoteValue:ee,workspaceValue:L,workspaceFolderValue:q,memoryValue:ne,value:x,default:h!==void 0?{value:this._defaultConfiguration.freeze().getValue(s),override:n.overrideIdentifier?this._defaultConfiguration.freeze().getOverrideValue(s,n.overrideIdentifier):void 0}:void 0,policy:S!==void 0?{value:S}:void 0,application:A!==void 0?{value:A,override:n.overrideIdentifier?this.applicationConfiguration.freeze().getOverrideValue(s,n.overrideIdentifier):void 0}:void 0,user:$!==void 0?{value:this.userConfiguration.freeze().getValue(s),override:n.overrideIdentifier?this.userConfiguration.freeze().getOverrideValue(s,n.overrideIdentifier):void 0}:void 0,userLocal:W!==void 0?{value:this.localUserConfiguration.freeze().getValue(s),override:n.overrideIdentifier?this.localUserConfiguration.freeze().getOverrideValue(s,n.overrideIdentifier):void 0}:void 0,userRemote:ee!==void 0?{value:this.remoteUserConfiguration.freeze().getValue(s),override:n.overrideIdentifier?this.remoteUserConfiguration.freeze().getOverrideValue(s,n.overrideIdentifier):void 0}:void 0,workspace:L!==void 0?{value:this._workspaceConfiguration.freeze().getValue(s),override:n.overrideIdentifier?this._workspaceConfiguration.freeze().getOverrideValue(s,n.overrideIdentifier):void 0}:void 0,workspaceFolder:q!==void 0?{value:r?.freeze().getValue(s),override:n.overrideIdentifier?r?.freeze().getOverrideValue(s,n.overrideIdentifier):void 0}:void 0,memory:ne!==void 0?{value:l.getValue(s),override:n.overrideIdentifier?l.getOverrideValue(s,n.overrideIdentifier):void 0}:void 0,overrideIdentifiers:fe.length?fe:void 0}}keys(s){const n=this.getFolderConfigurationModelForResource(void 0,s);return{default:this._defaultConfiguration.freeze().keys,user:this.userConfiguration.freeze().keys,workspace:this._workspaceConfiguration.freeze().keys,workspaceFolder:n?n.freeze().keys:[]}}updateDefaultConfiguration(s){this._defaultConfiguration=s,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updatePolicyConfiguration(s){this._policyConfiguration=s}updateApplicationConfiguration(s){this._applicationConfiguration=s,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateLocalUserConfiguration(s){this._localUserConfiguration=s,this._userConfiguration=null,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateRemoteUserConfiguration(s){this._remoteUserConfiguration=s,this._userConfiguration=null,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateWorkspaceConfiguration(s){this._workspaceConfiguration=s,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()}updateFolderConfiguration(s,n){this._folderConfigurations.set(s,n),this._foldersConsolidatedConfigurations.delete(s)}deleteFolderConfiguration(s){this.folderConfigurations.delete(s),this._foldersConsolidatedConfigurations.delete(s)}compareAndUpdateDefaultConfiguration(s,n){const a=[];if(!n){const{added:o,updated:r,removed:l}=c(this._defaultConfiguration,s);n=[...o,...r,...l]}for(const o of n)for(const r of(0,R.overrideIdentifiersFromKey)(o)){const l=this._defaultConfiguration.getKeysForOverrideIdentifier(r),h=s.getKeysForOverrideIdentifier(r),S=[...h.filter(A=>l.indexOf(A)===-1),...l.filter(A=>h.indexOf(A)===-1),...l.filter(A=>!y.equals(this._defaultConfiguration.override(r).getValue(A),s.override(r).getValue(A)))];a.push([r,S])}return this.updateDefaultConfiguration(s),{keys:n,overrides:a}}compareAndUpdatePolicyConfiguration(s){const{added:n,updated:a,removed:o}=c(this._policyConfiguration,s),r=[...n,...a,...o];return r.length&&this.updatePolicyConfiguration(s),{keys:r,overrides:[]}}compareAndUpdateApplicationConfiguration(s){const{added:n,updated:a,removed:o,overrides:r}=c(this.applicationConfiguration,s),l=[...n,...a,...o];return l.length&&this.updateApplicationConfiguration(s),{keys:l,overrides:r}}compareAndUpdateLocalUserConfiguration(s){const{added:n,updated:a,removed:o,overrides:r}=c(this.localUserConfiguration,s),l=[...n,...a,...o];return l.length&&this.updateLocalUserConfiguration(s),{keys:l,overrides:r}}compareAndUpdateRemoteUserConfiguration(s){const{added:n,updated:a,removed:o,overrides:r}=c(this.remoteUserConfiguration,s),l=[...n,...a,...o];return l.length&&this.updateRemoteUserConfiguration(s),{keys:l,overrides:r}}compareAndUpdateWorkspaceConfiguration(s){const{added:n,updated:a,removed:o,overrides:r}=c(this.workspaceConfiguration,s),l=[...n,...a,...o];return l.length&&this.updateWorkspaceConfiguration(s),{keys:l,overrides:r}}compareAndUpdateFolderConfiguration(s,n){const a=this.folderConfigurations.get(s),{added:o,updated:r,removed:l,overrides:h}=c(a,n),S=[...o,...r,...l];return(S.length||!a)&&this.updateFolderConfiguration(s,n),{keys:S,overrides:h}}compareAndDeleteFolderConfiguration(s){const n=this.folderConfigurations.get(s);if(!n)throw new Error("Unknown folder");this.deleteFolderConfiguration(s);const{added:a,updated:o,removed:r,overrides:l}=c(n,void 0);return{keys:[...a,...o,...r],overrides:l}}get defaults(){return this._defaultConfiguration}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration),this._freeze&&this._userConfiguration.freeze()),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}get workspaceConfiguration(){return this._workspaceConfiguration}get folderConfigurations(){return this._folderConfigurations}getConsolidatedConfigurationModel(s,n,a){let o=this.getConsolidatedConfigurationModelForResource(n,a);return n.overrideIdentifier&&(o=o.override(n.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(s)!==void 0&&(o=o.merge(this._policyConfiguration)),o}getConsolidatedConfigurationModelForResource({resource:s},n){let a=this.getWorkspaceConsolidatedConfiguration();if(n&&s){const o=n.getFolder(s);o&&(a=this.getFolderConsolidatedConfiguration(o.uri)||a);const r=this._memoryConfigurationByResource.get(s);r&&(a=a.merge(r))}return a}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(s){let n=this._foldersConsolidatedConfigurations.get(s);if(!n){const a=this.getWorkspaceConsolidatedConfiguration(),o=this._folderConfigurations.get(s);o?(n=a.merge(o),this._freeze&&(n=n.freeze()),this._foldersConsolidatedConfigurations.set(s,n)):n=a}return n}getFolderConfigurationModelForResource(s,n){if(n&&s){const a=n.getFolder(s);if(a)return this._folderConfigurations.get(a.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((s,n)=>{const{contents:a,overrides:o,keys:r}=this._folderConfigurations.get(n);return s.push([n,{contents:a,overrides:o,keys:r}]),s},[])}}allKeys(){const s=new Set;return this._defaultConfiguration.freeze().keys.forEach(n=>s.add(n)),this.userConfiguration.freeze().keys.forEach(n=>s.add(n)),this._workspaceConfiguration.freeze().keys.forEach(n=>s.add(n)),this._folderConfigurations.forEach(n=>n.freeze().keys.forEach(a=>s.add(a))),[...s.values()]}allOverrideIdentifiers(){const s=new Set;return this._defaultConfiguration.freeze().getAllOverrideIdentifiers().forEach(n=>s.add(n)),this.userConfiguration.freeze().getAllOverrideIdentifiers().forEach(n=>s.add(n)),this._workspaceConfiguration.freeze().getAllOverrideIdentifiers().forEach(n=>s.add(n)),this._folderConfigurations.forEach(n=>n.freeze().getAllOverrideIdentifiers().forEach(a=>s.add(a))),[...s.values()]}getAllKeysForOverrideIdentifier(s){const n=new Set;return this._defaultConfiguration.getKeysForOverrideIdentifier(s).forEach(a=>n.add(a)),this.userConfiguration.getKeysForOverrideIdentifier(s).forEach(a=>n.add(a)),this._workspaceConfiguration.getKeysForOverrideIdentifier(s).forEach(a=>n.add(a)),this._folderConfigurations.forEach(a=>a.getKeysForOverrideIdentifier(s).forEach(o=>n.add(o))),[...n.values()]}static parse(s){const n=this.parseConfigurationModel(s.defaults),a=this.parseConfigurationModel(s.policy),o=this.parseConfigurationModel(s.application),r=this.parseConfigurationModel(s.user),l=this.parseConfigurationModel(s.workspace),h=s.folders.reduce((S,A)=>(S.set(C.URI.revive(A[0]),this.parseConfigurationModel(A[1])),S),new k.ResourceMap);return new v(n,a,o,r,new E,l,h,new E,new k.ResourceMap,!1)}static parseConfigurationModel(s){return new E(s.contents,s.keys,s.overrides).freeze()}}e.Configuration=v;function m(...i){if(i.length===0)return{keys:[],overrides:[]};if(i.length===1)return i[0];const s=new Set,n=new Map;for(const o of i)o.keys.forEach(r=>s.add(r)),o.overrides.forEach(([r,l])=>{const h=(0,k.getOrSet)(n,r,new Set);l.forEach(S=>h.add(S))});const a=[];return n.forEach((o,r)=>a.push([r,[...o.values()]])),{keys:[...s.values()],overrides:a}}e.mergeChanges=m;class g{constructor(s,n,a,o){this.change=s,this.previous=n,this.currentConfiguraiton=a,this.currentWorkspace=o,this._previousConfiguration=void 0;const r=new Set;s.keys.forEach(h=>r.add(h)),s.overrides.forEach(([,h])=>h.forEach(S=>r.add(S))),this.affectedKeys=[...r.values()];const l=new E;this.affectedKeys.forEach(h=>l.setValue(h,{})),this.affectedKeysTree=l.contents}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=v.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(s,n){if(this.doesAffectedKeysTreeContains(this.affectedKeysTree,s)){if(n){const a=this.previousConfiguration?this.previousConfiguration.getValue(s,n,this.previous?.workspace):void 0,o=this.currentConfiguraiton.getValue(s,n,this.currentWorkspace);return!y.equals(a,o)}return!0}return!1}doesAffectedKeysTreeContains(s,n){let a=(0,T.toValuesTree)({[n]:!0},()=>{}),o;for(;typeof a=="object"&&(o=Object.keys(a)[0]);){if(s=s[o],!s)return!1;a=a[o]}return!0}}e.ConfigurationChangeEvent=g;class u extends g{constructor(s,n,a,o){super({keys:s.allKeys(),overrides:[]},void 0,s,n);this.source=a,this.sourceConfig=o}}e.AllKeysConfigurationChangeEvent=u;function c(i,s){const{added:n,removed:a,updated:o}=f(s,i),r=[],l=i?.getAllOverrideIdentifiers()||[],h=s?.getAllOverrideIdentifiers()||[];if(s){const S=h.filter(A=>!l.includes(A));for(const A of S)r.push([A,s.getKeysForOverrideIdentifier(A)])}if(i){const S=l.filter(A=>!h.includes(A));for(const A of S)r.push([A,i.getKeysForOverrideIdentifier(A)])}if(s&&i){for(const S of l)if(h.includes(S)){const A=f({contents:i.getOverrideValue(void 0,S)||{},keys:i.getKeysForOverrideIdentifier(S)},{contents:s.getOverrideValue(void 0,S)||{},keys:s.getKeysForOverrideIdentifier(S)});r.push([S,[...A.added,...A.removed,...A.updated]])}}return{added:n,removed:a,updated:o,overrides:r}}function f(i,s){const n=i?s?i.keys.filter(r=>s.keys.indexOf(r)===-1):[...i.keys]:[],a=s?i?s.keys.filter(r=>i.keys.indexOf(r)===-1):[...s.keys]:[],o=[];if(i&&s){for(const r of s.keys)if(i.keys.indexOf(r)!==-1){const l=(0,T.getConfigurationValue)(s.contents,r),h=(0,T.getConfigurationValue)(i.contents,r);y.equals(l,h)||o.push(r)}}return{added:n,removed:a,updated:o}}}),define(ve[209],we([0,1,18,7,2,22,12,25,103,52,13,62,34]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PolicyConfiguration=e.NullPolicyConfiguration=e.DefaultConfigurationModel=e.DefaultConfiguration=void 0;class E extends D.Disposable{constructor(){super(...arguments);this._onDidChangeConfiguration=this._register(new t.Emitter),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event}get configurationModel(){return this._configurationModel||(this._configurationModel=new d(this.getConfigurationDefaultOverrides())),this._configurationModel}async initialize(){return this._configurationModel=void 0,this._register(w.Registry.as(C.Extensions.Configuration).onDidUpdateConfiguration(({properties:g,defaultsOverrides:u})=>this.onDidUpdateConfiguration(g,u))),this.configurationModel}reload(){return this._configurationModel=void 0,this.configurationModel}onDidUpdateConfiguration(g,u){this._configurationModel=void 0,this._onDidChangeConfiguration.fire({defaults:this.configurationModel,properties:g})}getConfigurationDefaultOverrides(){return{}}}e.DefaultConfiguration=E;class d extends p.ConfigurationModel{constructor(g={}){const u=w.Registry.as(C.Extensions.Configuration).getConfigurationProperties(),c=Object.keys(u),f=Object.create(null),i=[];for(const s in u){const n=g[s],a=n!==void 0?n:u[s].default;(0,y.addToValueTree)(f,s,a,o=>console.error(`Conflict in default settings: ${o}`))}for(const s of Object.keys(f))C.OVERRIDE_PROPERTY_REGEX.test(s)&&i.push({identifiers:(0,C.overrideIdentifiersFromKey)(s),keys:Object.keys(f[s]),contents:(0,y.toValuesTree)(f[s],n=>console.error(`Conflict in default settings file: ${n}`))});super(f,c,i)}}e.DefaultConfigurationModel=d;class I{constructor(){this.onDidChangeConfiguration=t.Event.None,this.configurationModel=new p.ConfigurationModel}async initialize(){return this.configurationModel}}e.NullPolicyConfiguration=I;let v=class extends D.Disposable{constructor(g,u,c){super();this.defaultConfiguration=g,this.policyService=u,this.logService=c,this._onDidChangeConfiguration=this._register(new t.Emitter),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._configurationModel=new p.ConfigurationModel}get configurationModel(){return this._configurationModel}async initialize(){return this.update(await this.registerPolicyDefinitions(this.defaultConfiguration.configurationModel.keys),!1),this._register(this.policyService.onDidChange(g=>this.onDidChangePolicies(g))),this._register(this.defaultConfiguration.onDidChangeConfiguration(async({properties:g})=>this.update(await this.registerPolicyDefinitions(g),!0))),this._configurationModel}async registerPolicyDefinitions(g){const u={},c=[],f=w.Registry.as(C.Extensions.Configuration).getConfigurationProperties();for(const i of g){const s=f[i];if(!s){c.push(i);continue}if(s.policy){if(s.type!=="string"&&s.type!=="number"){this.logService.warn(`Policy ${s.policy.name} has unsupported type ${s.type}`);continue}c.push(i),u[s.policy.name]={type:s.type}}}return(0,k.isEmptyObject)(u)||await this.policyService.registerPolicyDefinitions(u),c}onDidChangePolicies(g){const u=w.Registry.as(C.Extensions.Configuration).getPolicyConfigurations(),c=(0,b.coalesce)(g.map(f=>u.get(f)));this.update(c,!0)}update(g,u){const c=w.Registry.as(C.Extensions.Configuration).getConfigurationProperties(),f=[],i=this._configurationModel.isEmpty();for(const s of g){const n=c[s]?.policy?.name;if(n){const a=this.policyService.getPolicyValue(n);(i?a!==void 0:!(0,P.equals)(this._configurationModel.getValue(s),a))&&f.push([s,a])}else this._configurationModel.getValue(s)!==void 0&&f.push([s,void 0])}if(f.length){const s=this._configurationModel;this._configurationModel=new p.ConfigurationModel;for(const n of s.keys)this._configurationModel.setValue(n,s.getValue(n));for(const[n,a]of f)a===void 0?this._configurationModel.removeValue(n):this._configurationModel.setValue(n,a);u&&this._onDidChangeConfiguration.fire(this._configurationModel)}}};v=_e([Ae(1,R.IPolicyService),Ae(2,T.ILogService)],v),e.PolicyConfiguration=v}),define(ve[104],we([0,1,14,7,2,19,25,103,209,62]),function(oe,e,b,t,D,P,k,y,p,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationService=void 0;class T extends D.Disposable{constructor(w,E,d,I){super();this.settingsResource=w,this._onDidChangeConfiguration=this._register(new t.Emitter),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this.defaultConfiguration=this._register(new p.DefaultConfiguration),this.policyConfiguration=d instanceof C.NullPolicyService?new p.NullPolicyConfiguration:this._register(new p.PolicyConfiguration(this.defaultConfiguration,d,I)),this.userConfiguration=this._register(new y.UserSettings(this.settingsResource,void 0,P.extUriBiasedIgnorePathCase,E)),this.configuration=new y.Configuration(this.defaultConfiguration.configurationModel,this.policyConfiguration.configurationModel,new y.ConfigurationModel,new y.ConfigurationModel),this.reloadConfigurationScheduler=this._register(new b.RunOnceScheduler(()=>this.reloadConfiguration(),50)),this._register(this.defaultConfiguration.onDidChangeConfiguration(({defaults:v,properties:m})=>this.onDidDefaultConfigurationChange(v,m))),this._register(this.policyConfiguration.onDidChangeConfiguration(v=>this.onDidPolicyConfigurationChange(v))),this._register(this.userConfiguration.onDidChange(()=>this.reloadConfigurationScheduler.schedule()))}async initialize(){const[w,E,d]=await Promise.all([this.defaultConfiguration.initialize(),this.policyConfiguration.initialize(),this.userConfiguration.loadConfiguration()]);this.configuration=new y.Configuration(w,E,new y.ConfigurationModel,d)}getConfigurationData(){return this.configuration.toData()}getValue(w,E){const d=typeof w=="string"?w:void 0,I=(0,k.isConfigurationOverrides)(w)?w:(0,k.isConfigurationOverrides)(E)?E:{};return this.configuration.getValue(d,I,void 0)}updateValue(w,E,d,I){return Promise.reject(new Error("not supported"))}inspect(w){return this.configuration.inspect(w,{},void 0)}keys(){return this.configuration.keys(void 0)}async reloadConfiguration(){const w=await this.userConfiguration.loadConfiguration();this.onDidChangeUserConfiguration(w)}onDidChangeUserConfiguration(w){const E=this.configuration.toData(),d=this.configuration.compareAndUpdateLocalUserConfiguration(w);this.trigger(d,E,2)}onDidDefaultConfigurationChange(w,E){const d=this.configuration.toData(),I=this.configuration.compareAndUpdateDefaultConfiguration(w,E);this.trigger(I,d,7)}onDidPolicyConfigurationChange(w){const E=this.configuration.toData(),d=this.configuration.compareAndUpdatePolicyConfiguration(w);this.trigger(d,E,7)}trigger(w,E,d){const I=new y.ConfigurationChangeEvent(w,{data:E},this.configuration);I.source=d,I.sourceConfig=this.getTargetConfiguration(d),this._onDidChangeConfiguration.fire(I)}getTargetConfiguration(w){switch(w){case 7:return this.configuration.defaults.contents;case 2:return this.configuration.localUserConfiguration.contents}return{}}}e.ConfigurationService=T}),define(ve[105],we([0,1,11,5]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RemoteAuthorityResolverError=e.RemoteAuthorityResolverErrorCode=e.IRemoteAuthorityResolverService=void 0,e.IRemoteAuthorityResolverService=(0,t.createDecorator)("remoteAuthorityResolverService");var D;(function(k){k.Unknown="Unknown",k.NotAvailable="NotAvailable",k.TemporarilyNotAvailable="TemporarilyNotAvailable",k.NoResolverFound="NoResolverFound"})(D=e.RemoteAuthorityResolverErrorCode||(e.RemoteAuthorityResolverErrorCode={}));class P extends b.ErrorNoTelemetry{constructor(y,p=D.Unknown,C){super(y);this._message=y,this._code=p,this._detail=C,this.isHandled=p===D.NotAvailable&&C===!0,typeof Object.setPrototypeOf=="function"&&Object.setPrototypeOf(this,P.prototype)}static isTemporarilyNotAvailable(y){return y instanceof P&&y._code===D.TemporarilyNotAvailable}static isNoResolverFound(y){return y instanceof P&&y._code===D.NoResolverFound}static isHandled(y){return y instanceof P&&y.isHandled}}e.RemoteAuthorityResolverError=P}),define(ve[75],we([0,1,8]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseAuthorityWithOptionalPort=e.parseAuthorityWithPort=e.getRemoteServerRootPath=e.getRemoteName=e.getRemoteAuthority=void 0;function t(C){return C.scheme===b.Schemas.vscodeRemote?C.authority:void 0}e.getRemoteAuthority=t;function D(C){if(!C)return;const T=C.indexOf("+");return T<0?C:C.substr(0,T)}e.getRemoteName=D;function P(C){return`/${C.quality??"oss"}-${C.commit??"dev"}`}e.getRemoteServerRootPath=P;function k(C){const{host:T,port:R}=p(C);if(typeof R=="undefined")throw new Error("Remote authority doesn't contain a port!");return{host:T,port:R}}e.parseAuthorityWithPort=k;function y(C,T){let{host:R,port:w}=p(C);return typeof w=="undefined"&&(w=T),{host:R,port:w}}e.parseAuthorityWithOptionalPort=y;function p(C){const T=C.match(/^(\[[0-9a-z:]+\]):(\d+)$/);if(T)return{host:T[1],port:parseInt(T[2],10)};const R=C.match(/^(\[[0-9a-z:]+\])$/);if(R)return{host:R[1],port:void 0};const w=C.match(/(.*):(\d+)$/);return w?{host:w[1],port:parseInt(w[2],10)}:{host:C,port:void 0}}}),define(ve[36],we([0,1,16,5,75]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IBuiltinExtensionsScannerService=e.isResolverExtension=e.isAuthenticationProviderExtension=e.isLanguagePackExtension=e.isApplicationScopedExtension=e.ExtensionIdentifier=e.TargetPlatform=e.ExtensionType=e.EXTENSION_CATEGORIES=e.isIExtensionIdentifier=e.getWorkspaceSupportTypeMessage=e.ALL_EXTENSION_KINDS=e.UNDEFINED_PUBLISHER=e.BUILTIN_MANIFEST_CACHE_FILE=e.USER_MANIFEST_CACHE_FILE=e.MANIFEST_CACHE_FOLDER=void 0,e.MANIFEST_CACHE_FOLDER="CachedExtensions",e.USER_MANIFEST_CACHE_FILE="user",e.BUILTIN_MANIFEST_CACHE_FILE="builtin",e.UNDEFINED_PUBLISHER="undefined_publisher",e.ALL_EXTENSION_KINDS=["ui","workspace","web"];function P(d){if(typeof d=="object"&&d!==null&&d.supported!==!0)return d.description}e.getWorkspaceSupportTypeMessage=P;function k(d){return d&&typeof d=="object"&&typeof d.id=="string"&&(!d.uuid||typeof d.uuid=="string")}e.isIExtensionIdentifier=k,e.EXTENSION_CATEGORIES=["Azure","Data Science","Debuggers","Extension Packs","Education","Formatters","Keymaps","Language Packs","Linters","Machine Learning","Notebooks","Programming Languages","SCM Providers","Snippets","Testing","Themes","Visualization","Other"];var y;(function(d){d[d.System=0]="System",d[d.User=1]="User"})(y=e.ExtensionType||(e.ExtensionType={}));var p;(function(d){d.WIN32_X64="win32-x64",d.WIN32_IA32="win32-ia32",d.WIN32_ARM64="win32-arm64",d.LINUX_X64="linux-x64",d.LINUX_ARM64="linux-arm64",d.LINUX_ARMHF="linux-armhf",d.ALPINE_X64="alpine-x64",d.ALPINE_ARM64="alpine-arm64",d.DARWIN_X64="darwin-x64",d.DARWIN_ARM64="darwin-arm64",d.WEB="web",d.UNIVERSAL="universal",d.UNKNOWN="unknown",d.UNDEFINED="undefined"})(p=e.TargetPlatform||(e.TargetPlatform={}));class C{constructor(I){this.value=I,this._lower=I.toLowerCase()}static equals(I,v){if(typeof I=="undefined"||I===null)return typeof v=="undefined"||v===null;if(typeof v=="undefined"||v===null)return!1;if(typeof I=="string"||typeof v=="string"){const m=typeof I=="string"?I:I.value,g=typeof v=="string"?v:v.value;return b.equalsIgnoreCase(m,g)}return I._lower===v._lower}static toKey(I){return typeof I=="string"?I.toLowerCase():I._lower}}e.ExtensionIdentifier=C;function T(d){return R(d)}e.isApplicationScopedExtension=T;function R(d){return d.contributes&&d.contributes.localizations?d.contributes.localizations.length>0:!1}e.isLanguagePackExtension=R;function w(d){return d.contributes&&d.contributes.authentication?d.contributes.authentication.length>0:!1}e.isAuthenticationProviderExtension=w;function E(d,I){if(I){const v=`onResolveRemoteAuthority:${(0,D.getRemoteName)(I)}`;return d.activationEvents?.indexOf(v)!==-1}return!1}e.isResolverExtension=E,e.IBuiltinExtensionsScannerService=(0,t.createDecorator)("IBuiltinExtensionsScannerService")}),define(ve[35],we([0,1,16,31,36,3,4,11,27]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computeTargetPlatform=e.isAlpineLinux=e.getExtensionDependencies=e.BetterMergeId=e.getGalleryExtensionTelemetryData=e.getLocalExtensionTelemetryData=e.groupByExtension=e.getGalleryExtensionId=e.adoptToGalleryExtensionId=e.getExtensionId=e.getIdAndVersion=e.ExtensionKey=e.areSameExtensions=void 0;function C(s,n){return s.uuid&&n.uuid?s.uuid===n.uuid:s.id===n.id?!0:(0,b.compareIgnoreCase)(s.id,n.id)===0}e.areSameExtensions=C;const T=/^([^.]+\..+)-(\d+\.\d+\.\d+)(-(.+))?$/;class R{constructor(n,a,o="undefined"){this.version=a,this.targetPlatform=o,this.id=n.id}static create(n){const a=n.manifest?n.manifest.version:n.version,o=n.manifest?n.targetPlatform:n.properties.targetPlatform;return new R(n.identifier,a,o)}static parse(n){const a=T.exec(n);return a&&a[1]&&a[2]?new R({id:a[1]},a[2],a[4]||void 0):null}toString(){return`${this.id}-${this.version}${this.targetPlatform!=="undefined"?`-${this.targetPlatform}`:""}`}equals(n){return n instanceof R?C(this,n)&&this.version===n.version&&this.targetPlatform===n.targetPlatform:!1}}e.ExtensionKey=R;const w=/^([^.]+\..+)@((prerelease)|(\d+\.\d+\.\d+(-.*)?))$/;function E(s){const n=w.exec(s);return n&&n[1]?[I(n[1]),n[2]]:[I(s),void 0]}e.getIdAndVersion=E;function d(s,n){return`${s}.${n}`}e.getExtensionId=d;function I(s){return s.toLocaleLowerCase()}e.adoptToGalleryExtensionId=I;function v(s,n){return I(d(s,n))}e.getGalleryExtensionId=v;function m(s,n){const a=[],o=r=>{for(const l of a)if(l.some(h=>C(n(h),n(r))))return l;return null};for(const r of s){const l=o(r);l?l.push(r):a.push([r])}return a}e.groupByExtension=m;function g(s){return{id:s.identifier.id,name:s.manifest.name,galleryId:null,publisherId:s.publisherId,publisherName:s.manifest.publisher,publisherDisplayName:s.publisherDisplayName,dependencies:s.manifest.extensionDependencies&&s.manifest.extensionDependencies.length>0}}e.getLocalExtensionTelemetryData=g;function u(s){return{id:s.identifier.id,name:s.name,galleryId:s.identifier.uuid,publisherId:s.publisherId,publisherName:s.publisher,publisherDisplayName:s.publisherDisplayName,isPreReleaseVersion:s.properties.isPreReleaseVersion,dependencies:!!(s.properties.dependencies&&s.properties.dependencies.length>0),...s.telemetryData}}e.getGalleryExtensionTelemetryData=u,e.BetterMergeId=new D.ExtensionIdentifier("pprice.better-merge");function c(s,n){const a=[],o=n.manifest.extensionDependencies?.slice(0)??[];for(;o.length;){const r=o.shift();if(r&&a.every(l=>!C(l.identifier,{id:r}))){const l=s.filter(h=>C(h.identifier,{id:r}));l.length===1&&(a.push(l[0]),o.push(...l[0].manifest.extensionDependencies?.slice(0)??[]))}}return a}e.getExtensionDependencies=c;async function f(s,n){if(!P.isLinux)return!1;let a;try{a=(await s.readFile(k.URI.file("/etc/os-release"))).value.toString()}catch{try{a=(await s.readFile(k.URI.file("/usr/lib/os-release"))).value.toString()}catch(r){n.debug("Error while getting the os-release file.",(0,y.getErrorMessage)(r))}}return!!a&&(a.match(/^ID=([^\u001b\r\n]*)/m)||[])[1]==="alpine"}e.isAlpineLinux=f;async function i(s,n){const a=await f(s,n),o=(0,t.getTargetPlatform)(a?"alpine":P.platform,p.arch);return n.debug("ComputeTargetPlatform:",o),o}e.computeTargetPlatform=i}),define(ve[106],we([0,1,20,11,8,19,50,4,163,31,35,36]),function(oe,e,b,t,D,P,k,y,p,C,T,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionManagementCLIService=void 0;const w=v=>(0,p.localize)(0,null,v),E=(0,p.localize)(1,null,"ms-dotnettools.csharp");function d(v,m){return m?`${v.publisher}.${v.name}@${v.version}`:`${v.publisher}.${v.name}`}let I=class{constructor(m,g){this.extensionManagementService=m,this.extensionGalleryService=g}get location(){}async listExtensions(m,g,u=console){let c=await this.extensionManagementService.getInstalled(1);const f=R.EXTENSION_CATEGORIES.map(s=>s.toLowerCase());if(g&&g!==""){if(f.indexOf(g.toLowerCase())<0){u.log("Invalid category please enter a valid category. To list valid categories run --category without a category specified");return}c=c.filter(s=>s.manifest.categories?s.manifest.categories.map(a=>a.toLowerCase()).indexOf(g.toLowerCase())>-1:!1)}else if(g===""){u.log("Possible Categories: "),f.forEach(s=>{u.log(s)});return}this.location&&u.log((0,p.localize)(2,null,this.location)),c=c.sort((s,n)=>s.identifier.id.localeCompare(n.identifier.id));let i;for(const s of c)i!==s.identifier.id&&(i=s.identifier.id,u.log(d(s.manifest,m)))}async installExtensions(m,g,u,c,f=console){const i=[],s=[];m.length&&f.log(this.location?(0,p.localize)(3,null,this.location):(0,p.localize)(4,null));const n=await this.extensionManagementService.getInstalled(1),a=(h,S)=>{const A=n.find($=>(0,T.areSameExtensions)($.identifier,{id:h}));if(A){if(!c&&(!S||S==="prerelease"&&A.preRelease))return f.log((0,p.localize)(5,null,h,A.manifest.version,h)),!1;if(S&&A.manifest.version===S)return f.log((0,p.localize)(6,null,`${h}@${S}`)),!1}return!0},o=(h,S,A)=>{l.push({id:h,version:S!=="prerelease"?S:void 0,installOptions:{...u,isBuiltin:A,installPreReleaseVersion:S==="prerelease"||u.installPreReleaseVersion}})},r=[],l=[];for(const h of m)if(h instanceof y.URI)r.push(h);else{const[S,A]=(0,T.getIdAndVersion)(h);a(S,A)&&o(S,A,!1)}for(const h of g){const[S,A]=(0,T.getIdAndVersion)(h);a(S,A)&&o(S,A,!0)}if(r.length&&await Promise.all(r.map(async h=>{try{const S=await this.installVSIX(h,{...u,isBuiltin:!1},c,f);S&&s.push(S)}catch(S){f.error(S.message||S.stack||S),i.push(h.toString())}})),l.length){const h=await this.getGalleryExtensions(l);await Promise.all(l.map(async S=>{const A=h.get(S.id.toLowerCase());if(A)try{const $=await this.installFromGallery(S,A,n,c,f);$&&s.push($)}catch($){f.error($.message||$.stack||$),i.push(S.id)}else f.error(`${w(S.version?`${S.id}@${S.version}`:S.id)}
${E}`),i.push(S.id)}))}if(i.length)throw new Error((0,p.localize)(7,null,i.join(", ")))}async installVSIX(m,g,u,c){const f=await this.extensionManagementService.getManifest(m);if(!f)throw new Error("Invalid vsix");if(await this.validateVSIX(f,u,c))try{return await this.extensionManagementService.install(m,g),c.log((0,p.localize)(8,null,(0,P.basename)(m))),f}catch(s){if((0,t.isCancellationError)(s))return c.log((0,p.localize)(9,null,(0,P.basename)(m))),null;throw s}return null}async getGalleryExtensions(m){const g=new Map,u=m.some(f=>f.installOptions.installPreReleaseVersion),c=await this.extensionGalleryService.getExtensions(m.map(f=>({...f,preRelease:u})),b.CancellationToken.None);for(const f of c)g.set(f.identifier.id.toLowerCase(),f);return g}async installFromGallery({id:m,version:g,installOptions:u},c,f,i,s){const n=await this.extensionGalleryService.getManifest(c,b.CancellationToken.None);if(n&&!this.validateExtensionKind(n,s))return null;const a=f.find(o=>(0,T.areSameExtensions)(o.identifier,c.identifier));if(a){if(c.version===a.manifest.version)return s.log((0,p.localize)(10,null,g?`${m}@${g}`:m)),null;s.log((0,p.localize)(11,null,m,c.version))}try{u.isBuiltin?s.log(g?(0,p.localize)(12,null,m,g):(0,p.localize)(13,null,m)):s.log(g?(0,p.localize)(14,null,m,g):(0,p.localize)(15,null,m));const o=await this.extensionManagementService.installFromGallery(c,{...u,installGivenVersion:!!g});return s.log((0,p.localize)(16,null,m,o.manifest.version)),n}catch(o){if((0,t.isCancellationError)(o))return s.log((0,p.localize)(17,null,m)),null;throw o}}validateExtensionKind(m,g){return!0}async validateVSIX(m,g,u){const c={id:(0,T.getGalleryExtensionId)(m.publisher,m.name)},i=(await this.extensionManagementService.getInstalled(1)).find(s=>(0,T.areSameExtensions)(c,s.identifier)&&(0,k.gt)(s.manifest.version,m.version));return i&&!g?(u.log((0,p.localize)(18,null,i.identifier.id,i.manifest.version,m.version)),!1):this.validateExtensionKind(m,u)}async uninstallExtensions(m,g,u=console){const c=async i=>{if(i instanceof y.URI){const s=await this.extensionManagementService.getManifest(i);return d(s)}return i},f=[];for(const i of m){const s=await c(i),a=(await this.extensionManagementService.getInstalled()).filter(o=>(0,T.areSameExtensions)(o.identifier,{id:s}));if(!a.length)throw new Error(`${this.notInstalled(s)}
${E}`);if(a.some(o=>o.type===0)){u.log((0,p.localize)(19,null,s));return}if(!g&&a.some(o=>o.isBuiltin)){u.log((0,p.localize)(20,null,s));return}u.log((0,p.localize)(21,null,s));for(const o of a)await this.extensionManagementService.uninstall(o),f.push(o);this.location?u.log((0,p.localize)(22,null,s,this.location)):u.log((0,p.localize)(23,null,s))}}async locateExtension(m,g=console){const u=await this.extensionManagementService.getInstalled();m.forEach(c=>{u.forEach(f=>{if(f.identifier.id===c&&f.location.scheme===D.Schemas.file){g.log(f.location.fsPath);return}})})}notInstalled(m){return this.location?(0,p.localize)(24,null,m,this.location):(0,p.localize)(25,null,m)}};I=_e([Ae(0,C.IExtensionManagementService),Ae(1,C.IExtensionGalleryService)],I),e.ExtensionManagementCLIService=I}),define(ve[53],we([0,1,14,15,2,24,4,35,17,5,13]),function(oe,e,b,t,D,P,k,y,p,C,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsProfileScannerService=e.IExtensionsProfileScannerService=void 0,e.IExtensionsProfileScannerService=(0,C.createDecorator)("IExtensionsProfileScannerService");let R=class extends D.Disposable{constructor(E,d){super();this.fileService=E,this.logService=d,this.resourcesAccessQueueMap=new P.ResourceMap}scanProfileExtensions(E){return this.withProfileExtensions(E)}addExtensionsToProfile(E,d){return this.withProfileExtensions(d,I=>(I=I.filter(v=>E.some(([m])=>!(0,y.areSameExtensions)(v.identifier,m.identifier))),I.push(...E.map(([v,m])=>({identifier:v.identifier,version:v.manifest.version,location:v.location,metadata:m}))),I))}removeExtensionFromProfile(E,d){return this.withProfileExtensions(d,I=>I.filter(v=>!(0,y.areSameExtensions)(v.identifier,E)))}async withProfileExtensions(E,d){return this.getResourceAccessQueue(E).queue(async()=>{let I=[];try{const v=await this.fileService.readFile(E),m=JSON.parse(v.value.toString());for(const g of m){if(!g.identifier){this.logService.info("Ignoring invalid extension while scanning. Identifier does not exist.",g);continue}if(!g.location){this.logService.info("Ignoring invalid extension while scanning. Location does not exist.",g);continue}if(!g.version){this.logService.info("Ignoring invalid extension while scanning. Version does not exist.",g);continue}I.push({identifier:g.identifier,location:k.URI.revive(g.location),version:g.version,metadata:g.metadata})}}catch(v){v.fileOperationResult!==1&&this.logService.error(v)}if(d){I=d(I);const v=I.map(m=>({identifier:m.identifier,version:m.version,location:m.location.toJSON(),metadata:m.metadata}));await this.fileService.writeFile(E,t.VSBuffer.fromString(JSON.stringify(v)))}return I})}getResourceAccessQueue(E){let d=this.resourcesAccessQueueMap.get(E);return d||(d=new b.Queue,this.resourcesAccessQueueMap.set(E,d)),d}};R=_e([Ae(0,p.IFileService),Ae(1,T.ILogService)],R),e.ExtensionsProfileScannerService=R}),define(ve[210],we([0,1,14,11,2,3,19,50,4,23,21,29,31,35,17,13]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsDownloader=void 0;let v=class extends D.Disposable{constructor(g,u,c,f){super();this.fileService=u,this.extensionGalleryService=c,this.logService=f,this.extensionsDownloadDir=p.URI.file(g.extensionsDownloadPath),this.cache=20,this.cleanUpPromise=this.cleanUp()}async downloadExtension(g,u){await this.cleanUpPromise;const c=this.getName(g),f=(0,k.joinPath)(this.extensionsDownloadDir,c);if(!await this.fileService.exists(f)){const i=(0,k.joinPath)(this.extensionsDownloadDir,`.${(0,C.generateUuid)()}`);await this.fileService.exists(i)||await this.extensionGalleryService.download(g,i,u);try{await this.rename(i,f,Date.now()+2*60*1e3)}catch(s){try{await this.fileService.del(i)}catch{}if(s.code==="ENOTEMPTY")this.logService.info("Rename failed because vsix was downloaded by another source. So ignoring renaming.",g.identifier.id);else throw this.logService.info(`Rename failed because of ${(0,t.getErrorMessage)(s)}. Deleted the vsix from downloaded location`,i.path),s}}return f}async delete(g){await this.cleanUpPromise,await this.fileService.del(g)}async rename(g,u,c){try{await T.Promises.rename(g.fsPath,u.fsPath)}catch(f){if(P.isWindows&&f&&f.code==="EPERM"&&Date.now()<c)return this.logService.info(`Failed renaming ${g} to ${u} with 'EPERM' error. Trying again...`),this.rename(g,u,c);throw f}}async cleanUp(){try{if(!await this.fileService.exists(this.extensionsDownloadDir)){this.logService.trace("Extension VSIX downlads cache dir does not exist");return}const g=await this.fileService.resolve(this.extensionsDownloadDir,{resolveMetadata:!0});if(g.children){const u=[],c=[];for(const s of g.children){const n=E.ExtensionKey.parse(s.name);n&&c.push([n,s])}const f=(0,E.groupByExtension)(c,([s])=>s),i=[];for(const s of f)s.sort((n,a)=>y.rcompare(n[0].version,a[0].version)),u.push(...s.slice(1).map(n=>n[1].resource)),i.push(s[0][1]);i.sort((s,n)=>s.mtime-n.mtime),u.push(...i.slice(0,Math.max(0,i.length-this.cache)).map(s=>s.resource)),await b.Promises.settled(u.map(s=>(this.logService.trace("Deleting vsix from cache",s.path),this.fileService.del(s))))}}catch(g){this.logService.error(g)}}getName(g){return this.cache?E.ExtensionKey.create(g).toString().toLowerCase():(0,C.generateUuid)()}};v=_e([Ae(0,R.INativeEnvironmentService),Ae(1,d.IFileService),Ae(2,w.IExtensionGalleryService),Ae(3,I.ILogService)],v),e.ExtensionsDownloader=v}),define(ve[211],we([0,1,2,6,21,36]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsManifestCache=void 0;class k extends b.Disposable{constructor(p,C){super();this.environmentService=p,this.extensionsManifestCache=(0,t.join)(this.environmentService.userDataPath,P.MANIFEST_CACHE_FOLDER,P.USER_MANIFEST_CACHE_FILE),this._register(C.onDidInstallExtensions(T=>this.onDidInstallExtensions(T))),this._register(C.onDidUninstallExtension(T=>this.onDidUnInstallExtension(T)))}onDidInstallExtensions(p){p.some(C=>!!C.local)&&this.invalidate()}onDidUnInstallExtension(p){p.error||this.invalidate()}invalidate(){D.Promises.rm(this.extensionsManifestCache,D.RimRafMode.MOVE).then(()=>{},()=>{})}}e.ExtensionsManifestCache=k}),define(ve[107],we([0,1,108,18,14,2,8,6,21,29,31,35,13,74]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeLanguagePackService=void 0;let d=class extends E.LanguagePackBaseService{constructor(g,u,c,f){super(c);this.extensionManagementService=g,this.logService=f,this.cache=this._register(new I(u,f)),this.extensionManagementService.registerParticipant({postInstall:async i=>this.postInstallExtension(i),postUninstall:async i=>this.postUninstallExtension(i)})}async getInstalledLanguages(){const g=await this.cache.getLanguagePacks(),u=Object.keys(g).map(c=>{const f=g[c];return{...this.createQuickPickItem({locale:c,label:f.label}),extensionId:f.extensions[0].extensionIdentifier.id}});return u.push({...this.createQuickPickItem({locale:"en",label:"English"}),extensionId:"default"}),u}async postInstallExtension(g){g&&g.manifest&&g.manifest.contributes&&g.manifest.contributes.localizations&&g.manifest.contributes.localizations.length&&(this.logService.info("Adding language packs from the extension",g.identifier.id),await this.update())}async postUninstallExtension(g){const u=await this.cache.getLanguagePacks();Object.keys(u).some(c=>u[c]&&u[c].extensions.some(f=>(0,R.areSameExtensions)(f.extensionIdentifier,g.identifier)))&&(this.logService.info("Removing language packs from the extension",g.identifier.id),await this.update())}async update(){const[g,u]=await Promise.all([this.cache.getLanguagePacks(),this.extensionManagementService.getInstalled()]),c=await this.cache.update(u);return!(0,t.equals)(Object.keys(g),Object.keys(c))}};d=_e([Ae(0,T.IExtensionManagementService),Ae(1,C.INativeEnvironmentService),Ae(2,T.IExtensionGalleryService),Ae(3,w.ILogService)],d),e.NativeLanguagePackService=d;let I=class extends P.Disposable{constructor(g,u){super();this.logService=u,this.languagePacks={},this.languagePacksFilePath=(0,y.join)(g.userDataPath,"languagepacks.json"),this.languagePacksFileLimiter=new D.Queue}getLanguagePacks(){return this.languagePacksFileLimiter.size||!this.initializedCache?this.withLanguagePacks().then(()=>this.languagePacks):Promise.resolve(this.languagePacks)}update(g){return this.withLanguagePacks(u=>{Object.keys(u).forEach(c=>delete u[c]),this.createLanguagePacksFromExtensions(u,...g)}).then(()=>this.languagePacks)}createLanguagePacksFromExtensions(g,...u){for(const c of u)c&&c.manifest&&c.manifest.contributes&&c.manifest.contributes.localizations&&c.manifest.contributes.localizations.length&&this.createLanguagePacksFromExtension(g,c);Object.keys(g).forEach(c=>this.updateHash(g[c]))}createLanguagePacksFromExtension(g,u){const c=u.identifier,f=u.manifest.contributes&&u.manifest.contributes.localizations?u.manifest.contributes.localizations:[];for(const i of f)if(u.location.scheme===k.Schemas.file&&v(i)){let s=g[i.languageId];s||(s={hash:"",extensions:[],translations:{},label:i.localizedLanguageName??i.languageName},g[i.languageId]=s);const n=s.extensions.filter(a=>(0,R.areSameExtensions)(a.extensionIdentifier,c))[0];n?n.version=u.manifest.version:s.extensions.push({extensionIdentifier:c,version:u.manifest.version});for(const a of i.translations)s.translations[a.id]=(0,y.join)(u.location.fsPath,a.path)}}updateHash(g){if(g){const u=(0,b.createHash)("md5");for(const c of g.extensions)u.update(c.extensionIdentifier.uuid||c.extensionIdentifier.id).update(c.version);g.hash=u.digest("hex")}}withLanguagePacks(g=()=>null){return this.languagePacksFileLimiter.queue(()=>{let u=null;return p.Promises.readFile(this.languagePacksFilePath,"utf8").then(void 0,c=>c.code==="ENOENT"?Promise.resolve("{}"):Promise.reject(c)).then(c=>{try{return JSON.parse(c)}catch{return{}}}).then(c=>(u=g(c),c)).then(c=>{for(const i of Object.keys(c))c[i]||delete c[i];this.languagePacks=c,this.initializedCache=!0;const f=JSON.stringify(this.languagePacks);return this.logService.debug("Writing language packs",f),p.Promises.writeFile(this.languagePacksFilePath,f)}).then(()=>u,c=>this.logService.error(c))})}};I=_e([Ae(0,C.INativeEnvironmentService),Ae(1,w.ILogService)],I);function v(m){if(typeof m.languageId!="string"||!Array.isArray(m.translations)||m.translations.length===0)return!1;for(const g of m.translations)if(typeof g.id!="string"||typeof g.path!="string")return!1;return!(m.languageName&&typeof m.languageName!="string"||m.localizedLanguageName&&typeof m.localizedLanguageName!="string")}}),define(ve[54],we([0,1,15,174,52,5,34]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateProxyConfigurationsScope=e.asJson=e.asTextOrError=e.asText=e.isSuccess=e.IRequestService=void 0,e.IRequestService=(0,P.createDecorator)("requestService");function y(I){return I.res.statusCode&&I.res.statusCode>=200&&I.res.statusCode<300||I.res.statusCode===1223}e.isSuccess=y;function p(I){return I.res.statusCode===204}async function C(I){return p(I)?null:(await(0,b.streamToBuffer)(I.stream)).toString()}e.asText=C;async function T(I){if(!y(I))throw new Error("Server returned "+I.res.statusCode);return C(I)}e.asTextOrError=T;async function R(I){if(!y(I))throw new Error("Server returned "+I.res.statusCode);if(p(I))return null;const m=(await(0,b.streamToBuffer)(I.stream)).toString();try{return JSON.parse(m)}catch(g){throw g.message+=`:
`+m,g}}e.asJson=R;function w(I){d(I)}e.updateProxyConfigurationsScope=w;let E;function d(I){const v=k.Registry.as(D.Extensions.Configuration),m=E;E={id:"http",order:15,title:(0,t.localize)(0,null),type:"object",scope:I,properties:{"http.proxy":{type:"string",pattern:"^(https?|socks5?)://([^:]*(:[^@]*)?@)?([^:]+|\\[[:0-9a-fA-F]+\\])(:\\d+)?/?$|^$",markdownDescription:(0,t.localize)(1,null),restricted:!0},"http.proxyStrictSSL":{type:"boolean",default:!0,description:(0,t.localize)(2,null),restricted:!0},"http.proxyAuthorization":{type:["null","string"],default:null,markdownDescription:(0,t.localize)(3,null),restricted:!0},"http.proxySupport":{type:"string",enum:["off","on","fallback","override"],enumDescriptions:[(0,t.localize)(4,null),(0,t.localize)(5,null),(0,t.localize)(6,null),(0,t.localize)(7,null)],default:"override",description:(0,t.localize)(8,null),restricted:!0},"http.systemCertificates":{type:"boolean",default:!0,description:(0,t.localize)(9,null),restricted:!0}}},v.updateConfigurations({add:[E],remove:m?[m]:[]})}d(2)}),define(ve[212],we([0,1,20,8,17,54]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DownloadService=void 0;let k=class{constructor(p,C){this.requestService=p,this.fileService=C}async download(p,C,T=b.CancellationToken.None){if(p.scheme===t.Schemas.file||p.scheme===t.Schemas.vscodeRemote){await this.fileService.copy(p,C);return}const R={type:"GET",url:p.toString(!0)},w=await this.requestService.request(R,T);if(w.res.statusCode===200)await this.fileService.writeFile(C,w.stream);else{const E=await(0,P.asTextOrError)(w);throw new Error(`Expected 200, got back ${w.res.statusCode} instead.

${E}`)}}};k=_e([Ae(0,P.IRequestService),Ae(1,D.IFileService)],k),e.DownloadService=k}),define(ve[213],we([0,1,15,20]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RequestChannelClient=e.RequestChannel=void 0;class D{constructor(y){this.service=y}listen(y,p){throw new Error("Invalid listen")}call(y,p,C,T=t.CancellationToken.None){switch(p){case"request":return this.service.request(C[0],T).then(async({res:R,stream:w})=>{const E=await(0,b.streamToBuffer)(w);return[{statusCode:R.statusCode,headers:R.headers},E]});case"resolveProxy":return this.service.resolveProxy(C[0])}throw new Error("Invalid call")}}e.RequestChannel=D;class P{constructor(y){this.channel=y}async request(y,p){const[C,T]=await this.channel.call("request",[y],p);return{res:C,stream:(0,b.bufferToStream)(T)}}async resolveProxy(y){return this.channel.call("resolveProxy",[y])}}e.RequestChannelClient=P}),define(ve[214],we([0,1,76,12]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getProxyAgent=void 0;function D(k,y){return k.protocol==="http:"?y.HTTP_PROXY||y.http_proxy||null:k.protocol==="https:"&&(y.HTTPS_PROXY||y.https_proxy||y.HTTP_PROXY||y.http_proxy)||null}async function P(k,y,p={}){const C=(0,b.parse)(k),T=p.proxyUrl||D(C,y);if(!T)return null;const R=(0,b.parse)(T);if(!/^https?:$/.test(R.protocol||""))return null;const w={host:R.hostname||"",port:R.port||(R.protocol==="https"?"443":"80"),auth:R.auth,rejectUnauthorized:(0,t.isBoolean)(p.strictSSL)?p.strictSSL:!0};return C.protocol==="http:"?new(await new Promise((E,d)=>{oe(["http-proxy-agent"],E,d)}))(w):new(await new Promise((E,d)=>{oe(["https-proxy-agent"],E,d)}))(w)}e.getProxyAgent=P}),define(ve[77],we([0,1,43,6,175,20,38,11,3,23,156,189,14]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getResolvedShellEnv=void 0;const E=1e4;let d;async function I(m,g,u){return g["force-disable-user-env"]?(m.trace("resolveShellEnv(): skipped (--force-disable-user-env)"),{}):p.isWindows?(m.trace("resolveShellEnv(): skipped (Windows)"),{}):(0,R.isLaunchedFromCli)(u)&&!g["force-user-env"]?(m.trace("resolveShellEnv(): skipped (VSCODE_CLI is set)"),{}):((0,R.isLaunchedFromCli)(u)?m.trace("resolveShellEnv(): running (--force-user-env)"):m.trace("resolveShellEnv(): running (macOS/Linux)"),d||(d=w.Promises.withAsyncBody(async(c,f)=>{const i=new P.CancellationTokenSource,s=setTimeout(()=>{i.dispose(!0),f(new Error((0,D.localize)(0,null)))},E);try{c(await v(m,i.token))}catch(n){!(0,y.isCancellationError)(n)&&!i.token.isCancellationRequested?f(new Error((0,D.localize)(1,null,(0,k.toErrorMessage)(n)))):c({})}finally{clearTimeout(s),i.dispose()}})),d)}e.getResolvedShellEnv=I;async function v(m,g){const u=process.env.ELECTRON_RUN_AS_NODE;m.trace("getUnixShellEnvironment#runAsNode",u);const c=process.env.ELECTRON_NO_ATTACH_CONSOLE;m.trace("getUnixShellEnvironment#noAttach",c);const f=(0,C.generateUuid)().replace(/-/g,"").substr(0,12),i=new RegExp(f+"(.*)"+f),s={...process.env,ELECTRON_RUN_AS_NODE:"1",ELECTRON_NO_ATTACH_CONSOLE:"1"};m.trace("getUnixShellEnvironment#env",s);const n=await(0,T.getSystemShell)(p.OS,s);return m.trace("getUnixShellEnvironment#shell",n),new Promise((a,o)=>{if(g.isCancellationRequested)return o((0,y.canceled)());const r=(0,t.basename)(n);let l,h;const S=process.versions.electron&&process.versions["microsoft-build"]?"--ms-enable-electron-run-as-node":"";/^pwsh(-preview)?$/.test(r)?(l=`& '${process.execPath}' ${S} -p '''${f}'' + JSON.stringify(process.env) + ''${f}'''`,h=["-Login","-Command"]):(l=`'${process.execPath}' ${S} -p '"${f}" + JSON.stringify(process.env) + "${f}"'`,r==="tcsh"?h=["-ic"]:h=["-ilc"]),m.trace("getUnixShellEnvironment#spawn",JSON.stringify(h),l);const A=(0,b.spawn)(n,[...h,l],{detached:!0,stdio:["ignore","pipe","pipe"],env:s});g.onCancellationRequested(()=>(A.kill(),o((0,y.canceled)()))),A.on("error",ee=>{m.error("getUnixShellEnvironment#errorChildProcess",(0,k.toErrorMessage)(ee)),o(ee)});const $=[];A.stdout.on("data",ee=>$.push(ee));const W=[];A.stderr.on("data",ee=>W.push(ee)),A.on("close",(ee,L)=>{const q=Buffer.concat($).toString("utf8");m.trace("getUnixShellEnvironment#raw",q);const ne=Buffer.concat(W).toString("utf8");if(ne.trim()&&m.trace("getUnixShellEnvironment#stderr",ne),ee||L)return o(new Error((0,D.localize)(2,null,ee,L)));const x=i.exec(q),fe=x?x[1]:"{}";try{const M=JSON.parse(fe);u?M.ELECTRON_RUN_AS_NODE=u:delete M.ELECTRON_RUN_AS_NODE,c?M.ELECTRON_NO_ATTACH_CONSOLE=c:delete M.ELECTRON_NO_ATTACH_CONSOLE,delete M.XDG_RUNTIME_DIR,m.trace("getUnixShellEnvironment#result",M),a(M)}catch(M){m.error("getUnixShellEnvironment#errorCaught",(0,k.toErrorMessage)(M)),o(M)}})})}}),define(ve[109],we([0,1,3,27,4,23]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.verifyMicrosoftInternalDomain=e.resolveCommonProperties=void 0;function k(C){if(b.platform===2&&/^penguin(\.|$)/i.test(C))return"chromebook"}async function y(C,T,R,w,E,d,I,v,m,g){const u=Object.create(null);u["common.machineId"]=I,u.sessionID=(0,P.generateUuid)()+Date.now(),u.commitHash=E,u.version=d,u["common.platformVersion"]=(T||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),u["common.platform"]=(0,b.PlatformToString)(b.platform),u["common.nodePlatform"]=t.platform,u["common.nodeArch"]=w,u["common.product"]=g||"desktop",v&&(u["common.msftInternal"]=v);let c=0;const f=Date.now();Object.defineProperties(u,{timestamp:{get:()=>new Date,enumerable:!0},"common.timesincesessionstart":{get:()=>Date.now()-f,enumerable:!0},"common.sequence":{get:()=>c++,enumerable:!0}}),b.isLinuxSnap&&(u["common.snap"]="true");const i=k(R);i&&(u["common.platformDetail"]=i);try{const s=await C.readFile(D.URI.file(m));u["common.source"]=s.value.toString().slice(0,30)}catch{}return u}e.resolveCommonProperties=y;function p(C){const T=t.env.USERDNSDOMAIN;if(!T)return!1;const R=T.toLowerCase();return C.some(w=>R===w)}e.verifyMicrosoftInternalDomain=p}),define(ve[215],we([0,1,18,11,2,22]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorEvent=void 0;var k;(function(p){function C(T,R){return T.callstack<R.callstack?-1:T.callstack>R.callstack?1:0}p.compare=C})(k=e.ErrorEvent||(e.ErrorEvent={}));class y{constructor(C,T=y.ERROR_FLUSH_TIMEOUT){this._flushHandle=-1,this._buffer=[],this._disposables=new D.DisposableStore,this._telemetryService=C,this._flushDelay=T;const R=t.errorHandler.addListener(w=>this._onErrorEvent(w));this._disposables.add((0,D.toDisposable)(R)),this.installErrorListeners()}dispose(){clearTimeout(this._flushHandle),this._flushBuffer(),this._disposables.dispose()}installErrorListeners(){}_onErrorEvent(C){if(!C||(C.detail&&C.detail.stack&&(C=C.detail),t.ErrorNoTelemetry.isErrorNoTelemetry(C)))return;const T=Array.isArray(C.stack)?C.stack.join(`
`):C.stack,R=C.message?C.message:(0,P.safeStringify)(C);!T||this._enqueue({msg:R,callstack:T})}_enqueue(C){const T=(0,b.binarySearch)(this._buffer,C,k.compare);T<0?(C.count=1,this._buffer.splice(~T,0,C)):(this._buffer[T].count||(this._buffer[T].count=0),this._buffer[T].count+=1),this._flushHandle===-1&&(this._flushHandle=setTimeout(()=>{this._flushBuffer(),this._flushHandle=-1},this._flushDelay))}_flushBuffer(){for(const C of this._buffer)this._telemetryService.publicLogError2("UnhandledError",C);this._buffer.length=0}}e.default=y,y.ERROR_FLUSH_TIMEOUT=5*1e3}),define(ve[216],we([0,1,2]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServerTelemetryChannel=void 0;class t extends b.Disposable{constructor(P,k){super();this.telemetryService=P,this.telemetryAppender=k}async call(P,k,y){switch(k){case"updateTelemetryLevel":{const{telemetryLevel:p}=y;return this.telemetryService.updateInjectedTelemetryLevel(p)}case"logTelemetry":{const{eventName:p,data:C}=y;return this.telemetryAppender?this.telemetryAppender.log(p,C):Promise.resolve()}case"flushTelemetry":return this.telemetryAppender?this.telemetryAppender.flush():Promise.resolve();case"ping":return}throw new Error(`IPC Command ${k} not found`)}listen(P,k,y){throw new Error("Not supported")}dispose(){this.telemetryService.updateInjectedTelemetryLevel(0),super.dispose()}}e.ServerTelemetryChannel=t}),define(ve[32],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryConfiguration=e.TelemetryLevel=e.TELEMETRY_OLD_SETTING_ID=e.TELEMETRY_SETTING_ID=e.TELEMETRY_SECTION_ID=e.machineIdKey=e.lastSessionDateStorageKey=e.firstSessionDateStorageKey=e.currentSessionDateStorageKey=e.ICustomEndpointTelemetryService=e.ITelemetryService=void 0,e.ITelemetryService=(0,b.createDecorator)("telemetryService"),e.ICustomEndpointTelemetryService=(0,b.createDecorator)("customEndpointTelemetryService"),e.currentSessionDateStorageKey="telemetry.currentSessionDate",e.firstSessionDateStorageKey="telemetry.firstSessionDate",e.lastSessionDateStorageKey="telemetry.lastSessionDate",e.machineIdKey="telemetry.machineId",e.TELEMETRY_SECTION_ID="telemetry",e.TELEMETRY_SETTING_ID="telemetry.telemetryLevel",e.TELEMETRY_OLD_SETTING_ID="telemetry.enableTelemetry";var t;(function(P){P[P.NONE=0]="NONE",P[P.CRASH=1]="CRASH",P[P.ERROR=2]="ERROR",P[P.USAGE=3]="USAGE"})(t=e.TelemetryLevel||(e.TelemetryLevel={}));var D;(function(P){P.OFF="off",P.CRASH="crash",P.ERROR="error",P.ON="all"})(D=e.TelemetryConfiguration||(e.TelemetryConfiguration={}))}),define(ve[217],we([0,1,28,46,14,65,8,6,3,4,88,21,91,195,17,26,32]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticsService=e.collectLaunchConfigs=e.getMachineInfo=e.collectWorkspaceStats=void 0;const m=new Map;async function g(s,n){const a=`${s}::${n.join(":")}`,o=m.get(a);if(o)return o;const r=[{tag:"grunt.js",filePattern:/^gruntfile\.js$/i},{tag:"gulp.js",filePattern:/^gulpfile\.js$/i},{tag:"tsconfig.json",filePattern:/^tsconfig\.json$/i},{tag:"package.json",filePattern:/^package\.json$/i},{tag:"jsconfig.json",filePattern:/^jsconfig\.json$/i},{tag:"tslint.json",filePattern:/^tslint\.json$/i},{tag:"eslint.json",filePattern:/^eslint\.json$/i},{tag:"tasks.json",filePattern:/^tasks\.json$/i},{tag:"launch.json",filePattern:/^launch\.json$/i},{tag:"settings.json",filePattern:/^settings\.json$/i},{tag:"webpack.config.js",filePattern:/^webpack\.config\.js$/i},{tag:"project.json",filePattern:/^project\.json$/i},{tag:"makefile",filePattern:/^makefile$/i},{tag:"sln",filePattern:/^.+\.sln$/i},{tag:"csproj",filePattern:/^.+\.csproj$/i},{tag:"cmake",filePattern:/^.+\.cmake$/i},{tag:"github-actions",filePattern:/^.+\.ya?ml$/i,relativePathPattern:/^\.github(?:\/|\\)workflows$/i},{tag:"devcontainer.json",filePattern:/^devcontainer\.json$/i},{tag:"dockerfile",filePattern:/^(dockerfile|docker\-compose\.ya?ml)$/i}],l=new Map,h=new Map,S=2e4;function A(W,ee,L,q){const ne=ee.substring(W.length+1);return D.Promises.withAsyncBody(async x=>{let fe;try{fe=await R.Promises.readdir(ee,{withFileTypes:!0})}catch{x();return}if(q.count>=S){q.count+=fe.length,q.maxReached=!0,x();return}let M=fe.length;if(M===0){x();return}let B=fe;q.count+fe.length>S&&(q.maxReached=!0,M=S-q.count,B=fe.slice(0,M)),q.count+=fe.length;for(const U of B)if(U.isDirectory()){if(L.includes(U.name)||await A(W,(0,y.join)(ee,U.name),L,q),--M==0){x();return}}else{const z=U.name.lastIndexOf(".");if(z>=0){const X=U.name.substring(z+1);X&&l.set(X,(l.get(X)??0)+1)}for(const X of r)X.relativePathPattern?.test(ne)!==!1&&X.filePattern.test(U.name)&&h.set(X.tag,(h.get(X.tag)??0)+1);if(--M==0){x();return}}})}const $=D.Promises.withAsyncBody(async W=>{const ee={count:0,maxReached:!1};await A(s,s,n,ee);const L=await f(s);W({configFiles:u(h),fileTypes:u(l),fileCount:ee.count,maxFilesReached:ee.maxReached,launchConfigFiles:L})});return m.set(a,$),$}e.collectWorkspaceStats=g;function u(s){return[...t.Iterable.map(s.entries(),([n,a])=>({name:n,count:a}))].sort((n,a)=>a.count-n.count)}function c(){const s={os:`${b.type()} ${b.arch()} ${b.release()}`,memory:`${(b.totalmem()/d.ByteSize.GB).toFixed(2)}GB (${(b.freemem()/d.ByteSize.GB).toFixed(2)}GB free)`,vmHint:`${Math.round(T.virtualMachineHint.value()*100)}%`},n=b.cpus();return n&&n.length>0&&(s.cpus=`${n[0].model} (${n.length} x ${n[0].speed})`),s}e.getMachineInfo=c;async function f(s){try{const n=new Map,a=(0,y.join)(s,".vscode","launch.json"),o=await R.Promises.readFile(a),r=[],l=(0,P.parse)(o.toString(),r);if(r.length)return console.log(`Unable to parse ${a}`),[];if((0,P.getNodeType)(l)==="object"&&l.configurations)for(const h of l.configurations){const S=h.type;S&&(n.has(S)?n.set(S,n.get(S)+1):n.set(S,1))}return u(n)}catch{return[]}}e.collectLaunchConfigs=f;let i=class{constructor(n,a){this.telemetryService=n,this.productService=a}formatMachineInfo(n){const a=[];return a.push(`OS Version:       ${n.os}`),a.push(`CPUs:             ${n.cpus}`),a.push(`Memory (System):  ${n.memory}`),a.push(`VM:               ${n.vmHint}`),a.join(`
`)}formatEnvironment(n){const a=[];a.push(`Version:          ${this.productService.nameShort} ${this.productService.version} (${this.productService.commit||"Commit unknown"}, ${this.productService.date||"Date unknown"})`),a.push(`OS Version:       ${b.type()} ${b.arch()} ${b.release()}`);const o=b.cpus();return o&&o.length>0&&a.push(`CPUs:             ${o[0].model} (${o.length} x ${o[0].speed})`),a.push(`Memory (System):  ${(b.totalmem()/d.ByteSize.GB).toFixed(2)}GB (${(b.freemem()/d.ByteSize.GB).toFixed(2)}GB free)`),p.isWindows||a.push(`Load (avg):       ${b.loadavg().map(r=>Math.round(r)).join(", ")}`),a.push(`VM:               ${Math.round(T.virtualMachineHint.value()*100)}%`),a.push(`Screen Reader:    ${n.screenReader?"yes":"no"}`),a.push(`Process Argv:     ${n.mainArguments.join(" ")}`),a.push(`GPU Status:       ${this.expandGPUFeatures(n.gpuFeatureStatus)}`),a.join(`
`)}async getPerformanceInfo(n,a){return Promise.all([(0,w.listProcesses)(n.mainPID),this.formatWorkspaceMetadata(n)]).then(async o=>{let[r,l]=o,h=this.formatProcessList(n,r);return a.forEach(S=>{if((0,E.isRemoteDiagnosticError)(S))h+=`
${S.errorMessage}`,l+=`
${S.errorMessage}`;else if(h+=`

Remote: ${S.hostName}`,S.processes&&(h+=`
${this.formatProcessList(n,S.processes)}`),S.workspaceMetadata){l+=`
|  Remote: ${S.hostName}`;for(const A of Object.keys(S.workspaceMetadata)){const $=S.workspaceMetadata[A];let W=`${$.fileCount} files`;$.maxFilesReached&&(W=`more than ${W}`),l+=`|    Folder (${A}): ${W}`,l+=this.formatWorkspaceStats($)}}}),{processInfo:h,workspaceInfo:l}})}async getSystemInfo(n,a){const{memory:o,vmHint:r,os:l,cpus:h}=c(),S={os:l,memory:o,cpus:h,vmHint:r,processArgs:`${n.mainArguments.join(" ")}`,gpuStatus:n.gpuFeatureStatus,screenReader:`${n.screenReader?"yes":"no"}`,remoteData:a};return p.isWindows||(S.load=`${b.loadavg().map(A=>Math.round(A)).join(", ")}`),p.isLinux&&(S.linuxEnv={desktopSession:process.env.DESKTOP_SESSION,xdgSessionDesktop:process.env.XDG_SESSION_DESKTOP,xdgCurrentDesktop:process.env.XDG_CURRENT_DESKTOP,xdgSessionType:process.env.XDG_SESSION_TYPE}),Promise.resolve(S)}async getDiagnostics(n,a){const o=[];return(0,w.listProcesses)(n.mainPID).then(async r=>(o.push(""),o.push(this.formatEnvironment(n)),o.push(""),o.push(this.formatProcessList(n,r)),n.windows.some(l=>l.folderURIs&&l.folderURIs.length>0&&!l.remoteAuthority)&&(o.push(""),o.push("Workspace Stats: "),o.push(await this.formatWorkspaceMetadata(n))),a.forEach(l=>{if((0,E.isRemoteDiagnosticError)(l))o.push(`
${l.errorMessage}`);else if(o.push(`

`),o.push(`Remote:           ${l.hostName}`),o.push(this.formatMachineInfo(l.machineInfo)),l.processes&&o.push(this.formatProcessList(n,l.processes)),l.workspaceMetadata)for(const h of Object.keys(l.workspaceMetadata)){const S=l.workspaceMetadata[h];let A=`${S.fileCount} files`;S.maxFilesReached&&(A=`more than ${A}`),o.push(`Folder (${h}): ${A}`),o.push(this.formatWorkspaceStats(S))}}),o.push(""),o.push(""),o.join(`
`)))}formatWorkspaceStats(n){const a=[],o=60;let r=0;const l=($,W)=>{const ee=` ${$}(${W})`;r+ee.length>o?(a.push(h),h="|                 ",r=h.length):r+=ee.length,h+=ee};let h="|      File types:";const S=10,A=n.fileTypes.length>S?S:n.fileTypes.length;for(let $=0;$<A;$++){const W=n.fileTypes[$];l(W.name,W.count)}if(a.push(h),n.configFiles.length>=0&&(h="|      Conf files:",r=0,n.configFiles.forEach($=>{l($.name,$.count)}),a.push(h)),n.launchConfigFiles.length>0){let $="|      Launch Configs:";n.launchConfigFiles.forEach(W=>{$+=W.count>1?` ${W.name}(${W.count})`:` ${W.name}`}),a.push($)}return a.join(`
`)}expandGPUFeatures(n){const a=Math.max(...Object.keys(n).map(o=>o.length));return Object.keys(n).map(o=>`${o}:  ${" ".repeat(a-o.length)}  ${n[o]}`).join(`
                  `)}formatWorkspaceMetadata(n){const a=[],o=[];return n.windows.forEach(r=>{r.folderURIs.length===0||!!r.remoteAuthority||(a.push(`|  Window (${r.title})`),r.folderURIs.forEach(l=>{const h=C.URI.revive(l);if(h.scheme===k.Schemas.file){const S=h.fsPath;o.push(g(S,["node_modules",".git"]).then(A=>{let $=`${A.fileCount} files`;A.maxFilesReached&&($=`more than ${$}`),a.push(`|    Folder (${(0,y.basename)(S)}): ${$}`),a.push(this.formatWorkspaceStats(A))}).catch(A=>{a.push(`|      Error: Unable to collect workspace stats for folder ${S} (${A.toString()})`)}))}else a.push(`|    Folder (${h.toString()}): Workspace stats not available.`)}))}),Promise.all(o).then(r=>a.join(`
`)).catch(r=>`Unable to collect workspace stats: ${r}`)}formatProcessList(n,a){const o=new Map;n.windows.forEach(l=>o.set(l.pid,l.title));const r=[];return r.push("CPU %	Mem MB	   PID	Process"),a&&this.formatProcessItem(n.mainPID,o,r,a,0),r.join(`
`)}formatProcessItem(n,a,o,r,l){const h=l===0;let S;h?S=r.pid===n?`${this.productService.applicationName} main`:"remote agent":(S=`${"  ".repeat(l)} ${r.name}`,r.name==="window"&&(S=`${S} (${a.get(r.pid)})`));const A=process.platform==="win32"?r.mem:b.totalmem()*(r.mem/100);o.push(`${r.load.toFixed(0).padStart(5," ")}	${(A/d.ByteSize.MB).toFixed(0).padStart(6," ")}	${r.pid.toFixed(0).padStart(6," ")}	${S}`),Array.isArray(r.children)&&r.children.forEach($=>this.formatProcessItem(n,a,o,$,l+1))}async getWorkspaceFileExtensions(n){const a=new Set;for(const{uri:o}of n.folders){const r=C.URI.revive(o);if(r.scheme!==k.Schemas.file)continue;const l=r.fsPath;try{(await g(l,["node_modules",".git"])).fileTypes.forEach(S=>a.add(S.name))}catch{}}return{extensions:[...a]}}async reportWorkspaceStats(n){for(const{uri:a}of n.folders){const o=C.URI.revive(a);if(o.scheme!==k.Schemas.file)continue;const r=o.fsPath;try{const l=await g(r,["node_modules",".git"]);this.telemetryService.publicLog2("workspace.stats",{"workspace.id":n.telemetryId,rendererSessionId:n.rendererSessionId}),l.fileTypes.forEach(h=>{this.telemetryService.publicLog2("workspace.stats.file",{rendererSessionId:n.rendererSessionId,type:h.name,count:h.count})}),l.launchConfigFiles.forEach(h=>{this.telemetryService.publicLog2("workspace.stats.launchConfigFile",{rendererSessionId:n.rendererSessionId,type:h.name,count:h.count})}),l.configFiles.forEach(h=>{this.telemetryService.publicLog2("workspace.stats.configFiles",{rendererSessionId:n.rendererSessionId,type:h.name,count:h.count})})}catch{}}}};i=_e([Ae(0,v.ITelemetryService),Ae(1,I.IProductService)],i),e.DiagnosticsService=i}),define(ve[45],we([0,1,22,83,12,25,109,32]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPiiPathsFromEnvironment=e.isInternalTelemetry=e.cleanRemoteAuthority=e.validateTelemetryData=e.getTelemetryLevel=e.supportsTelemetry=e.configurationTelemetry=e.NullAppender=e.NullEndpointTelemetryService=e.NullTelemetryService=e.NullTelemetryServiceShape=void 0;class p{constructor(){this.sendErrorTelemetry=!1,this.telemetryLevel=(0,t.staticObservableValue)(0)}publicLog(i,s){return Promise.resolve(void 0)}publicLog2(i,s){return this.publicLog(i,s)}publicLogError(i,s){return Promise.resolve(void 0)}publicLogError2(i,s){return this.publicLogError(i,s)}setExperimentProperty(){}getTelemetryInfo(){return Promise.resolve({instanceId:"someValue.instanceId",sessionId:"someValue.sessionId",machineId:"someValue.machineId",firstSessionDate:"someValue.firstSessionDate"})}}e.NullTelemetryServiceShape=p,e.NullTelemetryService=new p;class C{async publicLog(i,s,n){}async publicLogError(i,s,n){}}e.NullEndpointTelemetryService=C,e.NullAppender={log:()=>null,flush:()=>Promise.resolve(null)};function T(f,i){return i.onDidChangeConfiguration(s=>{s.source!==7&&f.publicLog2("updateConfiguration",{configurationSource:(0,P.ConfigurationTargetToString)(s.source),configurationKeys:m(s.sourceConfig)})})}e.configurationTelemetry=T;function R(f,i){return!(i.disableTelemetry||!f.enableTelemetry||i.extensionTestsLocationURI)}e.supportsTelemetry=R;function w(f){const i=f.getValue(y.TELEMETRY_SETTING_ID),s=f.getValue("telemetry.enableCrashReporter");if(f.getValue(y.TELEMETRY_OLD_SETTING_ID)===!1||s===!1)return 0;switch(i??"all"){case"all":return 3;case"error":return 2;case"crash":return 1;case"off":return 0}}e.getTelemetryLevel=w;function E(f){const i={},s={},n={};v(f,n);for(let a in n){a=a.length>150?a.substr(a.length-149):a;const o=n[a];typeof o=="number"?s[a]=o:typeof o=="boolean"?s[a]=o?1:0:typeof o=="string"?(o.length>8192&&console.warn(`Telemetry property: ${a} has been trimmed to 8192, the original length is ${o.length}`),i[a]=o.substring(0,8191)):typeof o!="undefined"&&o!==null&&(i[a]=o)}return{properties:i,measurements:s}}e.validateTelemetryData=E;const d=["ssh-remote","dev-container","attached-container","wsl","tunneling"];function I(f){if(!f)return"none";for(const i of d)if(f.startsWith(`${i}+`))return i;return"other"}e.cleanRemoteAuthority=I;function v(f,i,s=0,n){if(!!f)for(const a of Object.getOwnPropertyNames(f)){const o=f[a],r=n?n+a:a;Array.isArray(o)?i[r]=(0,b.safeStringify)(o):o instanceof Date?i[r]=o.toISOString():(0,D.isObject)(o)?s<2?v(o,i,s+1,r+"."):i[r]=(0,b.safeStringify)(o):i[r]=o}}function m(f){if(!f)return[];const i=[];return g(i,"",f),i}function g(f,i,s){s&&typeof s=="object"&&!Array.isArray(s)?Object.keys(s).forEach(n=>g(f,i?`${i}.${n}`:n,s[n])):f.push(i)}function u(f,i){const s=f.msftInternalDomains||[],n=i.getValue("telemetry.internalTesting");return(0,k.verifyMicrosoftInternalDomain)(s)||n}e.isInternalTelemetry=u;function c(f){return[f.appRoot,f.extensionsPath,f.userHome.fsPath,f.tmpDir.fsPath,f.userDataPath]}e.getPiiPathsFromEnvironment=c}),define(ve[218],we([0,1,192,45]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveMarketplaceHeaders=void 0;async function D(P,k,y,p,C,T,R){const w={"X-Market-Client-Id":`VSCode ${P}`,"User-Agent":`VSCode ${P} (${k.nameShort})`},E=await(0,b.getServiceMachineId)(y,C,T),{sessionId:d}=await R.getTelemetryInfo();return(0,t.supportsTelemetry)(k,y)&&(0,t.getTelemetryLevel)(p)===3&&(w["X-Market-User-Id"]=E,w["VSCode-SessionId"]=d),w}e.resolveMarketplaceHeaders=D}),define(ve[219],we([0,1,11,22,45]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractOneDataSystemAppender=e.telemetryEndpointUrl=void 0,e.telemetryEndpointUrl="https://mobile.events.data.microsoft.com/OneCollector/1.0";async function P(y,p,C){const T=await new Promise((I,v)=>{oe(["@microsoft/1ds-core-js"],I,v)}),R=await new Promise((I,v)=>{oe(["@microsoft/1ds-post-js"],I,v)}),w=new T.AppInsightsCore,E=new R.PostChannel,d={instrumentationKey:y,endpointUrl:e.telemetryEndpointUrl,loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[E]]};if(C){d.extensionConfig={};const I={alwaysUseXhrOverride:!0,httpXHROverride:C};d.extensionConfig[E.identifier]=I}return w.initialize(d,[]),w.addTelemetryInitializer(I=>{p&&(I.ext=I.ext??{},I.ext.utc=I.ext.utc??{},I.ext.utc.flags=8462029)}),w}class k{constructor(p,C,T,R,w){this._isInternalTelemetry=p,this._eventPrefix=C,this._defaultData=T,this._xhrOverride=w,this.endPointUrl=e.telemetryEndpointUrl,this._defaultData||(this._defaultData={}),typeof R=="function"?this._aiCoreOrKey=R():this._aiCoreOrKey=R,this._asyncAiCore=null}_withAIClient(p){if(!!this._aiCoreOrKey){if(typeof this._aiCoreOrKey!="string"){p(this._aiCoreOrKey);return}this._asyncAiCore||(this._asyncAiCore=P(this._aiCoreOrKey,this._isInternalTelemetry,this._xhrOverride)),this._asyncAiCore.then(C=>{p(C)},C=>{(0,b.onUnexpectedError)(C),console.error(C)})}}log(p,C){if(!this._aiCoreOrKey)return;C=(0,t.mixin)(C,this._defaultData),C=(0,D.validateTelemetryData)(C);const T=this._eventPrefix+"/"+p;try{this._withAIClient(R=>{R.pluginVersionString=C?.properties.version??"Unknown",R.track({name:T,baseData:{name:T,properties:C?.properties,measurements:C?.measurements}})})}catch{}}flush(){return this._aiCoreOrKey?new Promise(p=>{this._withAIClient(C=>{C.unload(!0,()=>{this._aiCoreOrKey=void 0,p(void 0)})})}):Promise.resolve(void 0)}}e.AbstractOneDataSystemAppender=k}),define(ve[220],we([0,1,2,22,83,3,16,176,25,52,51,26,34,32,45]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryService=void 0;let I=class{constructor(g,u,c){this._configurationService=u,this._productService=c,this._experimentProperties={},this.telemetryLevel=new D.MutableObservableValue(3),this._disposables=new b.DisposableStore,this._cleanupPatterns=[],this._appenders=g.appenders,this._commonProperties=g.commonProperties||Promise.resolve({}),this._piiPaths=g.piiPaths||[],this._sendErrorTelemetry=!!g.sendErrorTelemetry,this._cleanupPatterns=[/file:\/\/\/.*?\/resources\/app\//gi];for(const f of this._piiPaths)this._cleanupPatterns.push(new RegExp((0,k.escapeRegExpCharacters)(f),"gi"));this._updateTelemetryLevel(),this._configurationService.onDidChangeConfiguration(this._updateTelemetryLevel,this,this._disposables)}setExperimentProperty(g,u){this._experimentProperties[g]=u}_updateTelemetryLevel(){let g=(0,d.getTelemetryLevel)(this._configurationService);const u=this._productService.enabledTelemetryLevels;if(u){this._sendErrorTelemetry=this.sendErrorTelemetry?u.error:!1;const c=u.usage?3:u.error?2:0;g=Math.min(g,c)}this.telemetryLevel.value=g}get sendErrorTelemetry(){return this._sendErrorTelemetry}async getTelemetryInfo(){const g=await this._commonProperties,u=g.sessionID,c=g["common.machineId"],f=g["common.firstSessionDate"],i=g["common.msftInternal"];return{sessionId:u,machineId:c,firstSessionDate:f,msftInternal:i}}dispose(){this._disposables.dispose()}_log(g,u,c,f){return this.telemetryLevel.value<u?Promise.resolve(void 0):this._commonProperties.then(i=>{c=(0,t.mixin)(c,i),c=(0,t.mixin)(c,this._experimentProperties),c=(0,t.cloneAndChange)(c,s=>{if(typeof s=="string")return this._cleanupInfo(s,f)}),this._appenders.forEach(s=>s.log(g,c))},i=>{console.error(i)})}publicLog(g,u,c){return this._log(g,3,u,c)}publicLog2(g,u,c){return this.publicLog(g,u,c)}publicLogError(g,u){return this._sendErrorTelemetry?this._log(g,2,u,!0):Promise.resolve(void 0)}publicLogError2(g,u){return this.publicLogError(g,u)}_anonymizeFilePaths(g){let u=g;const c=[];for(const n of this._cleanupPatterns)for(;;){const a=n.exec(g);if(!a)break;c.push([a.index,n.lastIndex])}const f=/^[\\\/]?(node_modules|node_modules\.asar)[\\\/]/,i=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-\._]+(\\\\|\\|\/))+[\w-\._]*/g;let s=0;for(u="";;){const n=i.exec(g);if(!n)break;!f.test(n[0])&&c.every(([a,o])=>n.index<a||n.index>=o)&&(u+=g.substring(s,n.index)+"<REDACTED: user-file-path>",s=i.lastIndex)}return s<g.length&&(u+=g.substr(s)),u}_removePropertiesWithPossibleUserInfo(g){if(!g)return g;const u=g.toLowerCase(),c=[{label:"Google API Key",regex:/AIza[A-Za-z0-9_\\\-]{35}/},{label:"Slack Token",regex:/xox[pbar]\-[A-Za-z0-9]/},{label:"Generic Secret",regex:/(key|token|sig|secret|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/},{label:"Email",regex:/@[a-zA-Z0-9-.]+/}];for(const f of c)if(f.regex.test(u))return`<REDACTED: ${f.label}>`;return g}_cleanupInfo(g,u){let c=g;u&&(c=this._anonymizeFilePaths(c));for(const f of this._cleanupPatterns)c=c.replace(f,"");return c=this._removePropertiesWithPossibleUserInfo(c),c}};I.IDLE_START_EVENT_NAME="UserIdleStart",I.IDLE_STOP_EVENT_NAME="UserIdleStop",I=_e([Ae(1,p.IConfigurationService),Ae(2,R.IProductService)],I),e.TelemetryService=I;function v(){const m=(0,y.localize)(0,null,T.default.nameLong),g=T.default.privacyStatementUrl?(0,y.localize)(2,null,"https://aka.ms/vscode-telemetry",T.default.privacyStatementUrl):(0,y.localize)(1,null,"https://aka.ms/vscode-telemetry"),u=P.isWeb?"":(0,y.localize)(3,null),c=(0,y.localize)(4,null),f=(0,y.localize)(5,null),i=(0,y.localize)(6,null),s=(0,y.localize)(7,null),n=`
|       | ${c} | ${f} | ${i} |
|:------|:---------------------:|:---------------:|:--------------:|
| all   |            \u2713          |        \u2713        |        \u2713       |
| error |            \u2713          |        \u2713        |        -       |
| crash |            \u2713          |        -        |        -       |
| off   |            -          |        -        |        -       |
`,a=(0,y.localize)(8,null);return`
${m} ${g} ${u}

&nbsp;

${s}
${n}

&nbsp;

${a}
`}w.Registry.as(C.Extensions.Configuration).registerConfiguration({id:E.TELEMETRY_SECTION_ID,order:110,type:"object",title:(0,y.localize)(9,null),properties:{[E.TELEMETRY_SETTING_ID]:{type:"string",enum:["all","error","crash","off"],enumDescriptions:[(0,y.localize)(10,null),(0,y.localize)(11,null),(0,y.localize)(12,null),(0,y.localize)(13,null)],markdownDescription:v(),default:"all",restricted:!0,scope:1,tags:["usesOnlineServices","telemetry"]}}}),w.Registry.as(C.Extensions.Configuration).registerConfiguration({id:E.TELEMETRY_SECTION_ID,order:110,type:"object",title:(0,y.localize)(14,null),properties:{[E.TELEMETRY_OLD_SETTING_ID]:{type:"boolean",markdownDescription:T.default.privacyStatementUrl?(0,y.localize)(16,null,T.default.nameLong,T.default.privacyStatementUrl):(0,y.localize)(15,null,T.default.nameLong),default:!0,restricted:!0,markdownDeprecationMessage:(0,y.localize)(17,null,`\`#${E.TELEMETRY_SETTING_ID}#\``),scope:1,tags:["usesOnlineServices","telemetry"]}}})}),define(ve[221],we([0,1,25,5,26,32,220,45]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IServerTelemetryService=e.ServerNullTelemetryService=e.ServerTelemetryService=void 0;let p=class extends k.TelemetryService{constructor(T,R,w,E){super(T,w,E);this._injectedTelemetryLevel=R}publicLog(T,R,w){return this._injectedTelemetryLevel<3?Promise.resolve(void 0):super.publicLog(T,R,w)}publicLog2(T,R,w){return this.publicLog(T,R,w)}publicLogError(T,R){return this._injectedTelemetryLevel<2?Promise.resolve(void 0):super.publicLogError(T,R)}publicLogError2(T,R){return this.publicLogError(T,R)}async updateInjectedTelemetryLevel(T){if(T===void 0)throw this._injectedTelemetryLevel=0,new Error("Telemetry level cannot be undefined. This will cause infinite looping!");this._injectedTelemetryLevel=this._injectedTelemetryLevel?Math.min(this._injectedTelemetryLevel,T):T,this._injectedTelemetryLevel===0&&this.dispose()}};p=_e([Ae(2,b.IConfigurationService),Ae(3,D.IProductService)],p),e.ServerTelemetryService=p,e.ServerNullTelemetryService=new class extends y.NullTelemetryServiceShape{async updateInjectedTelemetryLevel(){}},e.IServerTelemetryService=(0,t.refineServiceDecorator)(P.ITelemetryService)}),define(ve[222],we([0,1,223,219]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OneDataSystemAppender=void 0;class D extends t.AbstractOneDataSystemAppender{constructor(k,y,p,C){const T={sendPOST:(R,w)=>{const E={method:"POST",headers:{...R.headers,"Content-Type":"application/json","Content-Length":Buffer.byteLength(R.data)}};try{const d=b.request(R.urlString,E,I=>{I.on("data",function(v){w(I.statusCode??200,I.headers,v.toString())}),I.on("error",function(v){w(0,{})})});d.write(R.data),d.end()}catch{w(0,{})}}};super(k,y,p,C,T)}}e.OneDataSystemAppender=D}),define(ve[224],we([0,1,11,215]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class D extends t.default{installErrorListeners(){(0,b.setUnexpectedErrorHandler)(y=>console.error(y));const k=[];process.on("unhandledRejection",(y,p)=>{k.push(p),setTimeout(()=>{const C=k.indexOf(p);C>=0&&p.catch(T=>{k.splice(C,1),(0,b.isCancellationError)(T)||(console.warn(`rejected promise not handled within 1 second: ${T}`),T.stack&&console.warn(`stack trace: ${T.stack}`),y&&(0,b.onUnexpectedError)(y))})},1e3)}),process.on("rejectionHandled",y=>{const p=k.indexOf(y);p>=0&&k.splice(p,1)}),process.on("uncaughtException",y=>{(0,b.onUnexpectedError)(y)})}}e.default=D}),define(ve[225],we([0,1,14,20,7,2,13]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RequestStore=void 0;let y=class extends P.Disposable{constructor(C,T){super();this._logService=T,this._lastRequestId=0,this._pendingRequests=new Map,this._pendingRequestDisposables=new Map,this._onCreateRequest=this._register(new D.Emitter),this.onCreateRequest=this._onCreateRequest.event,this._timeout=C===void 0?15e3:C}createRequest(C){return new Promise((T,R)=>{const w=++this._lastRequestId;this._pendingRequests.set(w,T),this._onCreateRequest.fire({requestId:w,...C});const E=new t.CancellationTokenSource;(0,b.timeout)(this._timeout,E.token).then(()=>R(`Request ${w} timed out (${this._timeout}ms)`)),this._pendingRequestDisposables.set(w,[(0,P.toDisposable)(()=>E.cancel())])})}acceptReply(C,T){const R=this._pendingRequests.get(C);R?(this._pendingRequests.delete(C),(0,P.dispose)(this._pendingRequestDisposables.get(C)||[]),this._pendingRequestDisposables.delete(C),R(T)):this._logService.warn(`RequestStore#acceptReply was called without receiving a matching request ${C}`)}};y=_e([Ae(1,k.ILogService)],y),e.RequestStore=y}),define(ve[110],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalExitReason=e.ShellIntegrationStatus=e.ProfileSource=e.FlowControlConstants=e.LocalReconnectConstants=e.TerminalLocationString=e.TerminalLocation=e.HeartbeatConstants=e.ProcessPropertyType=e.IPtyService=e.TerminalIpcChannels=e.TitleEventSource=e.WindowsShellType=e.PosixShellType=e.TerminalLogConstants=e.TerminalSettingId=e.TerminalSettingPrefix=void 0;var t;(function(u){u.Shell="terminal.integrated.shell.",u.ShellArgs="terminal.integrated.shellArgs.",u.DefaultProfile="terminal.integrated.defaultProfile.",u.Profiles="terminal.integrated.profiles."})(t=e.TerminalSettingPrefix||(e.TerminalSettingPrefix={}));var D;(function(u){u.ShellLinux="terminal.integrated.shell.linux",u.ShellMacOs="terminal.integrated.shell.osx",u.ShellWindows="terminal.integrated.shell.windows",u.SendKeybindingsToShell="terminal.integrated.sendKeybindingsToShell",u.AutomationShellLinux="terminal.integrated.automationShell.linux",u.AutomationShellMacOs="terminal.integrated.automationShell.osx",u.AutomationShellWindows="terminal.integrated.automationShell.windows",u.AutomationProfileLinux="terminal.integrated.automationProfile.linux",u.AutomationProfileMacOs="terminal.integrated.automationProfile.osx",u.AutomationProfileWindows="terminal.integrated.automationProfile.windows",u.ShellArgsLinux="terminal.integrated.shellArgs.linux",u.ShellArgsMacOs="terminal.integrated.shellArgs.osx",u.ShellArgsWindows="terminal.integrated.shellArgs.windows",u.ProfilesWindows="terminal.integrated.profiles.windows",u.ProfilesMacOs="terminal.integrated.profiles.osx",u.ProfilesLinux="terminal.integrated.profiles.linux",u.DefaultProfileLinux="terminal.integrated.defaultProfile.linux",u.DefaultProfileMacOs="terminal.integrated.defaultProfile.osx",u.DefaultProfileWindows="terminal.integrated.defaultProfile.windows",u.UseWslProfiles="terminal.integrated.useWslProfiles",u.TabsDefaultColor="terminal.integrated.tabs.defaultColor",u.TabsDefaultIcon="terminal.integrated.tabs.defaultIcon",u.TabsEnabled="terminal.integrated.tabs.enabled",u.TabsEnableAnimation="terminal.integrated.tabs.enableAnimation",u.TabsHideCondition="terminal.integrated.tabs.hideCondition",u.TabsShowActiveTerminal="terminal.integrated.tabs.showActiveTerminal",u.TabsShowActions="terminal.integrated.tabs.showActions",u.TabsLocation="terminal.integrated.tabs.location",u.TabsFocusMode="terminal.integrated.tabs.focusMode",u.MacOptionIsMeta="terminal.integrated.macOptionIsMeta",u.MacOptionClickForcesSelection="terminal.integrated.macOptionClickForcesSelection",u.AltClickMovesCursor="terminal.integrated.altClickMovesCursor",u.CopyOnSelection="terminal.integrated.copyOnSelection",u.EnableMultiLinePasteWarning="terminal.integrated.enableMultiLinePasteWarning",u.DrawBoldTextInBrightColors="terminal.integrated.drawBoldTextInBrightColors",u.FontFamily="terminal.integrated.fontFamily",u.FontSize="terminal.integrated.fontSize",u.LetterSpacing="terminal.integrated.letterSpacing",u.LineHeight="terminal.integrated.lineHeight",u.MinimumContrastRatio="terminal.integrated.minimumContrastRatio",u.FastScrollSensitivity="terminal.integrated.fastScrollSensitivity",u.MouseWheelScrollSensitivity="terminal.integrated.mouseWheelScrollSensitivity",u.BellDuration="terminal.integrated.bellDuration",u.FontWeight="terminal.integrated.fontWeight",u.FontWeightBold="terminal.integrated.fontWeightBold",u.CursorBlinking="terminal.integrated.cursorBlinking",u.CursorStyle="terminal.integrated.cursorStyle",u.CursorWidth="terminal.integrated.cursorWidth",u.Scrollback="terminal.integrated.scrollback",u.DetectLocale="terminal.integrated.detectLocale",u.DefaultLocation="terminal.integrated.defaultLocation",u.GpuAcceleration="terminal.integrated.gpuAcceleration",u.TerminalTitleSeparator="terminal.integrated.tabs.separator",u.TerminalTitle="terminal.integrated.tabs.title",u.TerminalDescription="terminal.integrated.tabs.description",u.RightClickBehavior="terminal.integrated.rightClickBehavior",u.Cwd="terminal.integrated.cwd",u.ConfirmOnExit="terminal.integrated.confirmOnExit",u.ConfirmOnKill="terminal.integrated.confirmOnKill",u.EnableBell="terminal.integrated.enableBell",u.CommandsToSkipShell="terminal.integrated.commandsToSkipShell",u.AllowChords="terminal.integrated.allowChords",u.AllowMnemonics="terminal.integrated.allowMnemonics",u.EnvMacOs="terminal.integrated.env.osx",u.EnvLinux="terminal.integrated.env.linux",u.EnvWindows="terminal.integrated.env.windows",u.EnvironmentChangesIndicator="terminal.integrated.environmentChangesIndicator",u.EnvironmentChangesRelaunch="terminal.integrated.environmentChangesRelaunch",u.ShowExitAlert="terminal.integrated.showExitAlert",u.SplitCwd="terminal.integrated.splitCwd",u.WindowsEnableConpty="terminal.integrated.windowsEnableConpty",u.WordSeparators="terminal.integrated.wordSeparators",u.EnableFileLinks="terminal.integrated.enableFileLinks",u.UnicodeVersion="terminal.integrated.unicodeVersion",u.LocalEchoLatencyThreshold="terminal.integrated.localEchoLatencyThreshold",u.LocalEchoEnabled="terminal.integrated.localEchoEnabled",u.LocalEchoExcludePrograms="terminal.integrated.localEchoExcludePrograms",u.LocalEchoStyle="terminal.integrated.localEchoStyle",u.EnablePersistentSessions="terminal.integrated.enablePersistentSessions",u.PersistentSessionReviveProcess="terminal.integrated.persistentSessionReviveProcess",u.CustomGlyphs="terminal.integrated.customGlyphs",u.PersistentSessionScrollback="terminal.integrated.persistentSessionScrollback",u.InheritEnv="terminal.integrated.inheritEnv",u.ShowLinkHover="terminal.integrated.showLinkHover",u.IgnoreProcessNames="terminal.integrated.ignoreProcessNames",u.AutoReplies="terminal.integrated.autoReplies",u.ShellIntegrationEnabled="terminal.integrated.shellIntegration.enabled",u.ShellIntegrationShowWelcome="terminal.integrated.shellIntegration.showWelcome",u.ShellIntegrationDecorationsEnabled="terminal.integrated.shellIntegration.decorationsEnabled",u.ShellIntegrationDecorationIcon="terminal.integrated.shellIntegration.decorationIcon",u.ShellIntegrationDecorationIconError="terminal.integrated.shellIntegration.decorationIconError",u.ShellIntegrationDecorationIconSuccess="terminal.integrated.shellIntegration.decorationIconSuccess",u.ShellIntegrationCommandHistory="terminal.integrated.shellIntegration.history"})(D=e.TerminalSettingId||(e.TerminalSettingId={}));var P;(function(u){u.FileName="ptyhost"})(P=e.TerminalLogConstants||(e.TerminalLogConstants={}));var k;(function(u){u.PowerShell="pwsh",u.Bash="bash",u.Fish="fish",u.Sh="sh",u.Csh="csh",u.Ksh="ksh",u.Zsh="zsh"})(k=e.PosixShellType||(e.PosixShellType={}));var y;(function(u){u.CommandPrompt="cmd",u.PowerShell="pwsh",u.Wsl="wsl",u.GitBash="gitbash"})(y=e.WindowsShellType||(e.WindowsShellType={}));var p;(function(u){u[u.Api=0]="Api",u[u.Process=1]="Process",u[u.Sequence=2]="Sequence",u[u.Config=3]="Config"})(p=e.TitleEventSource||(e.TitleEventSource={}));var C;(function(u){u.LocalPty="localPty",u.PtyHost="ptyHost",u.Log="log",u.Heartbeat="heartbeat"})(C=e.TerminalIpcChannels||(e.TerminalIpcChannels={})),e.IPtyService=(0,b.createDecorator)("ptyService");var T;(function(u){u.Cwd="cwd",u.InitialCwd="initialCwd",u.FixedDimensions="fixedDimensions",u.Title="title",u.ShellType="shellType",u.HasChildProcesses="hasChildProcesses",u.ResolvedShellLaunchConfig="resolvedShellLaunchConfig",u.OverrideDimensions="overrideDimensions",u.FailedShellIntegrationActivation="failedShellIntegrationActivation",u.UsedShellIntegrationInjection="usedShellIntegrationInjection"})(T=e.ProcessPropertyType||(e.ProcessPropertyType={}));var R;(function(u){u[u.BeatInterval=5e3]="BeatInterval",u[u.FirstWaitMultiplier=1.2]="FirstWaitMultiplier",u[u.SecondWaitMultiplier=1]="SecondWaitMultiplier",u[u.CreateProcessTimeout=5e3]="CreateProcessTimeout"})(R=e.HeartbeatConstants||(e.HeartbeatConstants={}));var w;(function(u){u[u.Panel=1]="Panel",u[u.Editor=2]="Editor"})(w=e.TerminalLocation||(e.TerminalLocation={}));var E;(function(u){u.TerminalView="view",u.Editor="editor"})(E=e.TerminalLocationString||(e.TerminalLocationString={}));var d;(function(u){u[u.GraceTime=6e4]="GraceTime",u[u.ShortGraceTime=6e3]="ShortGraceTime"})(d=e.LocalReconnectConstants||(e.LocalReconnectConstants={}));var I;(function(u){u[u.HighWatermarkChars=1e5]="HighWatermarkChars",u[u.LowWatermarkChars=5e3]="LowWatermarkChars",u[u.CharCountAckSize=5e3]="CharCountAckSize"})(I=e.FlowControlConstants||(e.FlowControlConstants={}));var v;(function(u){u.GitBash="Git Bash",u.Pwsh="PowerShell"})(v=e.ProfileSource||(e.ProfileSource={}));var m;(function(u){u[u.Off=0]="Off",u[u.FinalTerm=1]="FinalTerm",u[u.VSCode=2]="VSCode"})(m=e.ShellIntegrationStatus||(e.ShellIntegrationStatus={}));var g;(function(u){u[u.Unknown=0]="Unknown",u[u.Shutdown=1]="Shutdown",u[u.Process=2]="Process",u[u.User=3]="User",u[u.Extension=4]="Extension"})(g=e.TerminalExitReason||(e.TerminalExitReason={}))}),define(ve[226],we([0,1,28,8,22,6,3,27,16,12,21]),function(oe,e,b,t,D,P,k,y,p,C,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shellIntegrationArgs=e.ShellIntegrationExecutable=e.getShellIntegrationInjection=e.findExecutable=e.getWindowsBuildNumber=void 0;function R(){const c=/(\d+)\.(\d+)\.(\d+)/g.exec(b.release());let f=0;return c&&c.length===4&&(f=parseInt(c[3])),f}e.getWindowsBuildNumber=R;async function w(c,f,i,s=y.env,n=T.Promises.exists){if(P.isAbsolute(c))return await n(c)?c:void 0;if(f===void 0&&(f=y.cwd()),P.dirname(c)!=="."){const l=P.join(f,c);return await n(l)?l:void 0}const o=(0,D.getCaseInsensitive)(s,"PATH");if(i===void 0&&(0,C.isString)(o)&&(i=o.split(P.delimiter)),i===void 0||i.length===0){const l=P.join(f,c);return await n(l)?l:void 0}for(const l of i){let h;if(P.isAbsolute(l)?h=P.join(l,c):h=P.join(f,l,c),await n(h))return h;if(k.isWindows){let S=h+".com";if(await n(S)||(S=h+".exe",await n(S)))return S}}const r=P.join(f,c);return await n(r)?r:void 0}e.findExecutable=w;function E(c,f,i){if(!f.enabled||!c.executable||c.isFeatureTerminal||c.hideFromUser||c.ignoreShellIntegration)return;const s=c.args,n=y.platform==="win32"?P.basename(c.executable).toLowerCase():P.basename(c.executable),a=P.dirname(t.FileAccess.asFileUri("",oe).fsPath);let o;const r={VSCODE_INJECTION:"1"};if(k.isWindows){if(n==="pwsh.exe")return!s||g(s)?o=e.shellIntegrationArgs.get(d.WindowsPwsh):m(s)&&(o=e.shellIntegrationArgs.get(d.WindowsPwshLogin)),o?(o&&(o=[...o],o[o.length-1]=(0,p.format)(o[o.length-1],a,"")),{newArgs:o,envMixin:r}):void 0;i.warn(`Shell integration cannot be enabled for executable "${c.executable}" and args`,c.args);return}switch(n){case"bash":return!s||s.length===0?o=e.shellIntegrationArgs.get(d.Bash):u(s)&&(r.VSCODE_SHELL_LOGIN="1",o=e.shellIntegrationArgs.get(d.Bash)),o?(o=[...o],o[o.length-1]=(0,p.format)(o[o.length-1],a),{newArgs:o,envMixin:r}):void 0;case"pwsh":return!s||g(s)?o=e.shellIntegrationArgs.get(d.Pwsh):m(s)&&(o=e.shellIntegrationArgs.get(d.PwshLogin)),o?(o=[...o],o[o.length-1]=(0,p.format)(o[o.length-1],a,""),{newArgs:o,envMixin:r}):void 0;case"zsh":{if(!s||s.length===0?o=e.shellIntegrationArgs.get(d.Zsh):u(s)?o=e.shellIntegrationArgs.get(d.ZshLogin):(s===e.shellIntegrationArgs.get(d.Zsh)||s===e.shellIntegrationArgs.get(d.ZshLogin))&&(o=s),!o)return;o=[...o],o[o.length-1]=(0,p.format)(o[o.length-1],a);const l=P.join(b.tmpdir(),"vscode-zsh");r.ZDOTDIR=l;const h=[];return h.push({source:P.join(a,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh"),dest:P.join(l,".zshrc")}),h.push({source:P.join(a,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-profile.zsh"),dest:P.join(l,".zprofile")}),h.push({source:P.join(a,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-env.zsh"),dest:P.join(l,".zshenv")}),h.push({source:P.join(a,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-login.zsh"),dest:P.join(l,".zlogin")}),{newArgs:o,envMixin:r,filesToCopy:h}}}i.warn(`Shell integration cannot be enabled for executable "${c.executable}" and args`,c.args)}e.getShellIntegrationInjection=E;var d;(function(c){c.WindowsPwsh="windows-pwsh",c.WindowsPwshLogin="windows-pwsh-login",c.Pwsh="pwsh",c.PwshLogin="pwsh-login",c.Zsh="zsh",c.ZshLogin="zsh-login",c.Bash="bash"})(d=e.ShellIntegrationExecutable||(e.ShellIntegrationExecutable={})),e.shellIntegrationArgs=new Map,e.shellIntegrationArgs.set(d.WindowsPwsh,["-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1" } catch {}{1}']),e.shellIntegrationArgs.set(d.WindowsPwshLogin,["-l","-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1" } catch {}{1}']),e.shellIntegrationArgs.set(d.Pwsh,["-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"{1}']),e.shellIntegrationArgs.set(d.PwshLogin,["-l","-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"']),e.shellIntegrationArgs.set(d.Zsh,["-i"]),e.shellIntegrationArgs.set(d.ZshLogin,["-il"]),e.shellIntegrationArgs.set(d.Bash,["--init-file","{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh"]);const I=["-login","-l"],v=["-nol","-nologo"];function m(c){return typeof c=="string"?I.includes(c.toLowerCase()):c.length===1&&I.includes(c[0].toLowerCase())||c.length===2&&(I.includes(c[0].toLowerCase())||I.includes(c[1].toLowerCase()))&&(v.includes(c[0].toLowerCase())||v.includes(c[1].toLowerCase()))}function g(c){return typeof c=="string"?v.includes(c.toLowerCase()):c.length===0||c?.length===1&&v.includes(c[0].toLowerCase())}function u(c){return c==="string"&&I.includes(c.toLowerCase())||typeof c!="string"&&c.length===1&&I.includes(c[0].toLowerCase())}}),define(ve[227],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isDark=e.isHighContrast=e.ColorScheme=void 0;var b;(function(P){P.DARK="dark",P.LIGHT="light",P.HIGH_CONTRAST_DARK="hcDark",P.HIGH_CONTRAST_LIGHT="hcLight"})(b=e.ColorScheme||(e.ColorScheme={}));function t(P){return P===b.HIGH_CONTRAST_DARK||P===b.HIGH_CONTRAST_LIGHT}e.isHighContrast=t;function D(P){return P===b.DARK||P===b.HIGH_CONTRAST_DARK}e.isDark=D}),define(ve[111],we([0,1,41,7,2,5,34,227]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Themable=e.registerThemingParticipant=e.Extensions=e.getThemeTypeSelector=e.FolderThemeIcon=e.FileThemeIcon=e.ThemeIcon=e.themeColorFromId=e.ThemeColor=e.IThemeService=void 0,e.IThemeService=(0,P.createDecorator)("themeService");var p;(function(v){function m(g){return g&&typeof g=="object"&&typeof g.id=="string"}v.isThemeColor=m})(p=e.ThemeColor||(e.ThemeColor={}));function C(v){return{id:v}}e.themeColorFromId=C;var T;(function(v){function m(a){return a&&typeof a=="object"&&typeof a.id=="string"&&(typeof a.color=="undefined"||p.isThemeColor(a.color))}v.isThemeIcon=m;const g=new RegExp(`^\\$\\((${b.CSSIcon.iconNameExpression}(?:${b.CSSIcon.iconModifierExpression})?)\\)$`);function u(a){const o=g.exec(a);if(!o)return;const[,r]=o;return{id:r}}v.fromString=u;function c(a){return{id:a}}v.fromId=c;function f(a,o){let r=a.id;const l=r.lastIndexOf("~");return l!==-1&&(r=r.substring(0,l)),o&&(r=`${r}~${o}`),{id:r}}v.modify=f;function i(a){const o=a.id.lastIndexOf("~");if(o!==-1)return a.id.substring(o+1)}v.getModifier=i;function s(a,o){return a.id===o.id&&a.color?.id===o.color?.id}v.isEqual=s;function n(a,o){return{id:a.id,color:o?C(o):void 0}}v.asThemeIcon=n,v.asClassNameArray=b.CSSIcon.asClassNameArray,v.asClassName=b.CSSIcon.asClassName,v.asCSSSelector=b.CSSIcon.asCSSSelector})(T=e.ThemeIcon||(e.ThemeIcon={})),e.FileThemeIcon=b.Codicon.file,e.FolderThemeIcon=b.Codicon.folder;function R(v){switch(v){case y.ColorScheme.DARK:return"vs-dark";case y.ColorScheme.HIGH_CONTRAST_DARK:return"hc-black";case y.ColorScheme.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}e.getThemeTypeSelector=R,e.Extensions={ThemingContribution:"base.contributions.theming"};class w{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new t.Emitter}onColorThemeChange(m){return this.themingParticipants.push(m),this.onThemingParticipantAddedEmitter.fire(m),(0,D.toDisposable)(()=>{const g=this.themingParticipants.indexOf(m);this.themingParticipants.splice(g,1)})}get onThemingParticipantAdded(){return this.onThemingParticipantAddedEmitter.event}getThemingParticipants(){return this.themingParticipants}}const E=new w;k.Registry.add(e.Extensions.ThemingContribution,E);function d(v){return E.onColorThemeChange(v)}e.registerThemingParticipant=d;class I extends D.Disposable{constructor(m){super();this.themeService=m,this.theme=m.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(g=>this.onThemeChange(g)))}onThemeChange(m){this.theme=m,this.updateStyles()}updateStyles(){}getColor(m,g){let u=this.theme.getColor(m);return u&&g&&(u=g(u,this.theme)),u?u.toString():null}}e.Themable=I}),define(ve[228],we([0,1,41,4,178,111]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isUriComponents=e.terminalIconsEqual=e.terminalProfileArgsMatch=e.createProfileSchemaEnums=void 0;function k(w,E){const d=[{name:null,description:(0,D.localize)(0,null)}];return d.push(...w.map(I=>({name:I.profileName,description:y(I)}))),E&&d.push(...E.map(I=>({name:I.title,description:p(I)}))),{values:d.map(I=>I.name),markdownDescriptions:d.map(I=>I.description)}}e.createProfileSchemaEnums=k;function y(w){let E=`$(${P.ThemeIcon.isThemeIcon(w.icon)?w.icon.id:w.icon?w.icon:b.Codicon.terminal.id}) ${w.profileName}
- path: ${w.path}`;return w.args&&(typeof w.args=="string"?E+=`
- args: "${w.args}"`:E+=`
- args: [${w.args.length===0?"":`'${w.args.join("','")}'`}]`),w.overrideName!==void 0&&(E+=`
- overrideName: ${w.overrideName}`),w.color&&(E+=`
- color: ${w.color}`),w.env&&(E+=`
- env: ${JSON.stringify(w.env)}`),E}function p(w){return`$(${P.ThemeIcon.isThemeIcon(w.icon)?w.icon.id:w.icon?w.icon:b.Codicon.terminal.id}) ${w.title}
- extensionIdentifier: ${w.extensionIdentifier}`}function C(w,E){if(!w&&!E)return!0;if(typeof w=="string"&&typeof E=="string")return w===E;if(Array.isArray(w)&&Array.isArray(E)){if(w.length!==E.length)return!1;for(let d=0;d<w.length;d++)if(w[d]!==E[d])return!1;return!0}return!1}e.terminalProfileArgsMatch=C;function T(w,E){if(!w&&!E)return!0;if(!w||!E)return!1;if(P.ThemeIcon.isThemeIcon(w)&&P.ThemeIcon.isThemeIcon(E))return w.id===E.id&&w.color===E.color;if(typeof w=="object"&&w&&"light"in w&&"dark"in w&&typeof E=="object"&&E&&"light"in E&&"dark"in E){const d=w,I=E;if((t.URI.isUri(d.light)||R(d.light))&&(t.URI.isUri(d.dark)||R(d.dark))&&(t.URI.isUri(I.light)||R(I.light))&&(t.URI.isUri(I.dark)||R(I.dark)))return d.light.path===I.light.path&&d.dark.path===I.dark.path}if(t.URI.isUri(w)&&t.URI.isUri(E)||R(w)||R(E)){const d=w,I=E;return d.path===I.path&&d.scheme===I.scheme}return!1}e.terminalIconsEqual=T;function R(w){return w?typeof w.path=="string"&&typeof w.scheme=="string":!1}e.isUriComponents=R}),define(ve[229],we([0,1,41,177,52,34,228]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTerminalDefaultProfileConfiguration=e.registerTerminalPlatformConfiguration=e.terminalIconSchema=e.terminalColorSchema=void 0,e.terminalColorSchema={type:["string","null"],enum:["terminal.ansiBlack","terminal.ansiRed","terminal.ansiGreen","terminal.ansiYellow","terminal.ansiBlue","terminal.ansiMagenta","terminal.ansiCyan","terminal.ansiWhite"],default:null},e.terminalIconSchema={type:"string",enum:Array.from(b.Codicon.getAll(),c=>c.id),markdownEnumDescriptions:Array.from(b.Codicon.getAll(),c=>`$(${c.id})`)};const y={args:{description:(0,t.localize)(0,null),type:"array",items:{type:"string"}},overrideName:{description:(0,t.localize)(1,null),type:"boolean"},icon:{description:(0,t.localize)(2,null),...e.terminalIconSchema},color:{description:(0,t.localize)(3,null),...e.terminalColorSchema},env:{markdownDescription:(0,t.localize)(4,null),type:"object",additionalProperties:{type:["string","null"]},default:{}}},p={type:"object",required:["path"],properties:{path:{description:(0,t.localize)(5,null),type:["string","array"],items:{type:"string"}},...y}},C={type:"object",required:["path"],properties:{path:{description:(0,t.localize)(6,null),type:["string"],items:{type:"string"}},...y}},T=(0,t.localize)(7,null,"`#terminal.integrated.profiles.linux#`","`#terminal.integrated.defaultProfile.linux#`"),R=(0,t.localize)(8,null,"`#terminal.integrated.profiles.osx#`","`#terminal.integrated.defaultProfile.osx#`"),w=(0,t.localize)(9,null,"`#terminal.integrated.profiles.windows#`","`#terminal.integrated.defaultProfile.windows#`"),E=(0,t.localize)(10,null,"`#terminal.integrated.automationProfile.linux#`"),d=(0,t.localize)(11,null,"`#terminal.integrated.automationProfile.osx#`"),I=(0,t.localize)(12,null,"`#terminal.integrated.automationProfile.windows#`"),v={id:"terminal",order:100,title:(0,t.localize)(13,null),type:"object",properties:{["terminal.integrated.automationShell.linux"]:{restricted:!0,markdownDescription:(0,t.localize)(14,null,"`terminal.integrated.shell.linux`","`shellArgs`"),type:["string","null"],default:null,markdownDeprecationMessage:E},["terminal.integrated.automationShell.osx"]:{restricted:!0,markdownDescription:(0,t.localize)(15,null,"`terminal.integrated.shell.osx`","`shellArgs`"),type:["string","null"],default:null,markdownDeprecationMessage:d},["terminal.integrated.automationShell.windows"]:{restricted:!0,markdownDescription:(0,t.localize)(16,null,"`terminal.integrated.shell.windows`","`shellArgs`"),type:["string","null"],default:null,markdownDeprecationMessage:I},["terminal.integrated.automationProfile.linux"]:{restricted:!0,markdownDescription:(0,t.localize)(17,null,"`#terminal.integrated.automationShell.linux#`"),type:["object","null"],default:null,anyOf:[{type:"null"},C],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},["terminal.integrated.automationProfile.osx"]:{restricted:!0,markdownDescription:(0,t.localize)(18,null,"`#terminal.integrated.automationShell.osx#`"),type:["object","null"],default:null,anyOf:[{type:"null"},C],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},["terminal.integrated.automationProfile.windows"]:{restricted:!0,markdownDescription:(0,t.localize)(19,null,"`#terminal.integrated.automationShell.windows#`"),type:["object","null"],default:null,anyOf:[{type:"null"},C],defaultSnippets:[{body:{path:"${1}",icon:"${2}"}}]},["terminal.integrated.shell.linux"]:{restricted:!0,markdownDescription:(0,t.localize)(20,null),type:["string","null"],default:null,markdownDeprecationMessage:T},["terminal.integrated.shell.osx"]:{restricted:!0,markdownDescription:(0,t.localize)(21,null),type:["string","null"],default:null,markdownDeprecationMessage:R},["terminal.integrated.shell.windows"]:{restricted:!0,markdownDescription:(0,t.localize)(22,null),type:["string","null"],default:null,markdownDeprecationMessage:w},["terminal.integrated.shellArgs.linux"]:{restricted:!0,markdownDescription:(0,t.localize)(23,null),type:"array",items:{type:"string"},default:[],markdownDeprecationMessage:T},["terminal.integrated.shellArgs.osx"]:{restricted:!0,markdownDescription:(0,t.localize)(24,null),type:"array",items:{type:"string"},default:["-l"],markdownDeprecationMessage:R},["terminal.integrated.shellArgs.windows"]:{restricted:!0,markdownDescription:(0,t.localize)(25,null),anyOf:[{type:"array",items:{type:"string",markdownDescription:(0,t.localize)(26,null)}},{type:"string",markdownDescription:(0,t.localize)(27,null)}],default:[],markdownDeprecationMessage:w},["terminal.integrated.profiles.windows"]:{restricted:!0,markdownDescription:(0,t.localize)(28,null,"`source`","`path`","`args`","`null`",'`"Ubuntu-20.04 (WSL)": null`'),type:"object",default:{PowerShell:{source:"PowerShell",icon:"terminal-powershell"},"Command Prompt":{path:["${env:windir}\\Sysnative\\cmd.exe","${env:windir}\\System32\\cmd.exe"],args:[],icon:"terminal-cmd"},"Git Bash":{source:"Git Bash"}},additionalProperties:{anyOf:[{type:"object",required:["source"],properties:{source:{description:(0,t.localize)(29,null),enum:["PowerShell","Git Bash"]},...y}},{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:(0,t.localize)(30,null),type:"string"},id:{description:(0,t.localize)(31,null),type:"string"},title:{description:(0,t.localize)(32,null),type:"string"},...y}},{type:"null"},p]}},["terminal.integrated.profiles.osx"]:{restricted:!0,markdownDescription:(0,t.localize)(33,null,"`path`","`args`","`null`",'`"bash": null`'),type:"object",default:{bash:{path:"bash",args:["-l"],icon:"terminal-bash"},zsh:{path:"zsh",args:["-l"]},fish:{path:"fish",args:["-l"]},tmux:{path:"tmux",icon:"terminal-tmux"},pwsh:{path:"pwsh",icon:"terminal-powershell"}},additionalProperties:{anyOf:[{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:(0,t.localize)(34,null),type:"string"},id:{description:(0,t.localize)(35,null),type:"string"},title:{description:(0,t.localize)(36,null),type:"string"},...y}},{type:"null"},p]}},["terminal.integrated.profiles.linux"]:{restricted:!0,markdownDescription:(0,t.localize)(37,null,"`path`","`args`","`null`",'`"bash": null`'),type:"object",default:{bash:{path:"bash",icon:"terminal-bash"},zsh:{path:"zsh"},fish:{path:"fish"},tmux:{path:"tmux",icon:"terminal-tmux"},pwsh:{path:"pwsh",icon:"terminal-powershell"}},additionalProperties:{anyOf:[{type:"object",required:["extensionIdentifier","id","title"],properties:{extensionIdentifier:{description:(0,t.localize)(38,null),type:"string"},id:{description:(0,t.localize)(39,null),type:"string"},title:{description:(0,t.localize)(40,null),type:"string"},...y}},{type:"null"},p]}},["terminal.integrated.useWslProfiles"]:{description:(0,t.localize)(41,null),type:"boolean",default:!0},["terminal.integrated.inheritEnv"]:{scope:1,description:(0,t.localize)(42,null),type:"boolean",default:!0},["terminal.integrated.persistentSessionScrollback"]:{scope:1,markdownDescription:(0,t.localize)(43,null),type:"number",default:100},["terminal.integrated.showLinkHover"]:{scope:1,description:(0,t.localize)(44,null),type:"boolean",default:!0},["terminal.integrated.ignoreProcessNames"]:{description:(0,t.localize)(45,null,"`terminal.integrated.confirmOnKill`"),type:"array",items:{type:"string",uniqueItems:!0},default:["starship","oh-my-posh","bash","zsh"]}}};function m(){P.Registry.as(D.Extensions.Configuration).registerConfiguration(v),u()}e.registerTerminalPlatformConfiguration=m;let g;function u(c,f){const i=P.Registry.as(D.Extensions.Configuration);let s;c&&(s=(0,k.createProfileSchemaEnums)(c?.profiles,f));const n=g;g={id:"terminal",order:100,title:(0,t.localize)(46,null),type:"object",properties:{["terminal.integrated.defaultProfile.linux"]:{restricted:!0,markdownDescription:(0,t.localize)(47,null,"`terminal.integrated.shell.linux`","`terminal.integrated.shellArgs.linux`"),type:["string","null"],default:null,enum:c?.os===3?s?.values:void 0,markdownEnumDescriptions:c?.os===3?s?.markdownDescriptions:void 0},["terminal.integrated.defaultProfile.osx"]:{restricted:!0,markdownDescription:(0,t.localize)(48,null,"`terminal.integrated.shell.osx`","`terminal.integrated.shellArgs.osx`"),type:["string","null"],default:null,enum:c?.os===2?s?.values:void 0,markdownEnumDescriptions:c?.os===2?s?.markdownDescriptions:void 0},["terminal.integrated.defaultProfile.windows"]:{restricted:!0,markdownDescription:(0,t.localize)(49,null,"`terminal.integrated.shell.windows`","`terminal.integrated.shellArgs.windows`"),type:["string","null"],default:null,enum:c?.os===1?s?.values:void 0,markdownEnumDescriptions:c?.os===1?s?.markdownDescriptions:void 0}}},i.updateConfigurations({add:[g],remove:n?[n]:[]})}e.registerTerminalDefaultProfileConfiguration=u}),define(ve[230],we([0,1,43,41,6,3,21,90,226,111]),function(oe,e,b,t,D,P,k,y,p,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.detectAvailableProfiles=void 0;let T,R=!0;function w(s,n,a,o,r=process.env,l,h,S,A){return l=l||{existsFile:k.SymlinkSupport.existsFile,readFile:k.Promises.readFile},P.isWindows?E(a,l,r,h,o.getValue("terminal.integrated.useWslProfiles")!==!1,s&&typeof s=="object"?{...s}:o.getValue("terminal.integrated.profiles.windows"),typeof n=="string"?n:o.getValue("terminal.integrated.defaultProfile.windows"),A,S):c(l,h,a,s&&typeof s=="object"?{...s}:o.getValue(P.isLinux?"terminal.integrated.profiles.linux":"terminal.integrated.profiles.osx"),typeof n=="string"?n:o.getValue(P.isLinux?"terminal.integrated.defaultProfile.linux":"terminal.integrated.defaultProfile.osx"),A,S,r)}e.detectAvailableProfiles=w;async function E(s,n,a,o,r,l,h,S,A){const $=process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432"),W=`${process.env.windir}\\${$?"Sysnative":"System32"}`;let ee=!1;(0,p.getWindowsBuildNumber)()>=16299&&(ee=!0),await v(S);const L=new Map;s&&(L.set("PowerShell",{source:"PowerShell",icon:t.Codicon.terminalPowershell,isAutoDetected:!0}),L.set("Windows PowerShell",{path:`${W}\\WindowsPowerShell\\v1.0\\powershell.exe`,icon:t.Codicon.terminalPowershell,isAutoDetected:!0}),L.set("Git Bash",{source:"Git Bash",isAutoDetected:!0}),L.set("Cygwin",{path:[`${process.env.HOMEDRIVE}\\cygwin64\\bin\\bash.exe`,`${process.env.HOMEDRIVE}\\cygwin\\bin\\bash.exe`],args:["--login"],isAutoDetected:!0}),L.set("Command Prompt",{path:`${W}\\cmd.exe`,icon:t.Codicon.terminalCmd,isAutoDetected:!0})),f(l,L);const q=await d(L.entries(),h,n,a,o,A);if(s||!s&&r)try{const ne=await g(`${W}\\${ee?"wsl":"bash"}.exe`,h);for(const x of ne)(!l||!(x.profileName in l))&&q.push(x)}catch{R&&(o?.info("WSL is not installed, so could not detect WSL profiles"),R=!1)}return q}async function d(s,n,a,o=process.env,r,l){const h=[];for(const[S,A]of s){if(A===null)continue;let $,W,ee;if("source"in A){const ne=T?.get(A.source);if(!ne)continue;$=ne.paths,W=A.args||ne.args,A.icon?ee=I(A.icon):ne.icon&&(ee=ne.icon)}else $=Array.isArray(A.path)?A.path:[A.path],W=P.isWindows||Array.isArray(A.args)?A.args:void 0,ee=I(A.icon);const L=await l?.($)||$.slice(),q=await i(S,n,L,a,o,W,A.env,A.overrideName,A.isAutoDetected,r);q?(q.isAutoDetected=A.isAutoDetected,q.icon=ee,q.color=A.color,h.push(q)):r?.debug("Terminal profile not validated",S,$)}return r?.debug("Validated terminal profiles",h),h}function I(s){return typeof s=="string"?{id:s}:s}async function v(s){T&&!s||(T=new Map,T.set("Git Bash",{profileName:"Git Bash",paths:[`${process.env.ProgramW6432}\\Git\\bin\\bash.exe`,`${process.env.ProgramW6432}\\Git\\usr\\bin\\bash.exe`,`${process.env.ProgramFiles}\\Git\\bin\\bash.exe`,`${process.env.ProgramFiles}\\Git\\usr\\bin\\bash.exe`,`${process.env.LocalAppData}\\Programs\\Git\\bin\\bash.exe`,`${process.env.UserProfile}\\scoop\\apps\\git-with-openssh\\current\\bin\\bash.exe`,`${process.env.AllUsersProfile}\\scoop\\apps\\git-with-openssh\\current\\bin\\bash.exe`],args:["--login"]}),T.set("PowerShell",{profileName:"PowerShell",paths:s||await m(),icon:C.ThemeIcon.asThemeIcon(t.Codicon.terminalPowershell)}))}async function m(){const s=[];for await(const n of(0,y.enumeratePowerShellInstallations)())s.push(n.exePath);return s}async function g(s,n){const a=[],o=await new Promise((h,S)=>{b.exec("wsl.exe -l -q",{encoding:"utf16le",timeout:1e3},(A,$)=>{if(A)return S("Problem occurred when getting wsl distros");h($)})});if(!o)return[];const r=new RegExp(/[\r?\n]/),l=o.split(r).filter(h=>h.trim().length>0&&h!=="");for(const h of l){if(h===""||h.startsWith("docker-desktop"))continue;const S=`${h} (WSL)`,A={profileName:S,path:s,args:["-d",`${h}`],isDefault:S===n,icon:u(h),isAutoDetected:!1};a.push(A)}return a}function u(s){return s.includes("Ubuntu")?C.ThemeIcon.asThemeIcon(t.Codicon.terminalUbuntu):s.includes("Debian")?C.ThemeIcon.asThemeIcon(t.Codicon.terminalDebian):C.ThemeIcon.asThemeIcon(t.Codicon.terminalLinux)}async function c(s,n,a,o,r,l,h,S){const A=new Map;if(a){const $=(await s.readFile("/etc/shells")).toString(),W=l||$.split(`
`).filter(L=>L.trim().indexOf("#")!==0&&L.trim().length>0),ee=new Map;for(const L of W){let q=(0,D.basename)(L),ne=ee.get(q)||0;ne++,ne>1&&(q=`${q} (${ne})`),ee.set(q,ne),A.set(q,{path:L,isAutoDetected:!0})}}return f(o,A),await d(A.entries(),r,s,S,n,h)}function f(s,n){if(!!s)for(const[a,o]of Object.entries(s))o===null||!("path"in o)&&!("source"in o)?n.delete(a):(o.icon=o.icon||n.get(a)?.icon,n.set(a,o))}async function i(s,n,a,o,r,l,h,S,A,$){if(a.length===0)return Promise.resolve(void 0);const W=a.shift();if(W==="")return i(s,n,a,o,r,l,h,S,A);const ee={profileName:s,path:W,args:l,env:h,overrideName:S,isAutoDetected:A,isDefault:s===n};if((0,D.basename)(W)===W){const q=r.PATH?r.PATH.split(D.delimiter):void 0,ne=await(0,p.findExecutable)(W,void 0,q,void 0,o.existsFile);return ne?(ee.path=ne,ee.isFromPath=!0,ee):i(s,n,a,o,r,l)}return await o.existsFile((0,D.normalize)(W))?ee:i(s,n,a,o,r,l,h,S,A)}}),define(ve[231],we([0,1,7,2,8,3,44,95,25,29,96,77,13,101,225,110,229,230]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PtyHostService=void 0;var g;(function(f){f[f.MaxRestarts=5]="MaxRestarts"})(g||(g={}));let u=0,c=class extends t.Disposable{constructor(i,s,n,a){super();this._reconnectConstants=i,this._configurationService=s,this._environmentService=n,this._logService=a,this._restartCount=0,this._isResponsive=!0,this._isDisposed=!1,this._onPtyHostExit=this._register(new b.Emitter),this.onPtyHostExit=this._onPtyHostExit.event,this._onPtyHostStart=this._register(new b.Emitter),this.onPtyHostStart=this._onPtyHostStart.event,this._onPtyHostUnresponsive=this._register(new b.Emitter),this.onPtyHostUnresponsive=this._onPtyHostUnresponsive.event,this._onPtyHostResponsive=this._register(new b.Emitter),this.onPtyHostResponsive=this._onPtyHostResponsive.event,this._onPtyHostRequestResolveVariables=this._register(new b.Emitter),this.onPtyHostRequestResolveVariables=this._onPtyHostRequestResolveVariables.event,this._onProcessData=this._register(new b.Emitter),this.onProcessData=this._onProcessData.event,this._onProcessReady=this._register(new b.Emitter),this.onProcessReady=this._onProcessReady.event,this._onProcessReplay=this._register(new b.Emitter),this.onProcessReplay=this._onProcessReplay.event,this._onProcessOrphanQuestion=this._register(new b.Emitter),this.onProcessOrphanQuestion=this._onProcessOrphanQuestion.event,this._onDidRequestDetach=this._register(new b.Emitter),this.onDidRequestDetach=this._onDidRequestDetach.event,this._onDidChangeProperty=this._register(new b.Emitter),this.onDidChangeProperty=this._onDidChangeProperty.event,this._onProcessExit=this._register(new b.Emitter),this.onProcessExit=this._onProcessExit.event,(0,v.registerTerminalPlatformConfiguration)(),this._shellEnv=this._resolveShellEnv(),this._register((0,t.toDisposable)(()=>this._disposePtyHost())),this._resolveVariablesRequestStore=this._register(new d.RequestStore(void 0,this._logService)),this._resolveVariablesRequestStore.onCreateRequest(this._onPtyHostRequestResolveVariables.fire,this._onPtyHostRequestResolveVariables),[this._client,this._proxy]=this._startPtyHost(),this._register(this._configurationService.onDidChangeConfiguration(async o=>{o.affectsConfiguration("terminal.integrated.ignoreProcessNames")&&await this._refreshIgnoreProcessNames()}))}initialize(){this._refreshIgnoreProcessNames()}get _ignoreProcessNames(){return this._configurationService.getValue("terminal.integrated.ignoreProcessNames")}async _refreshIgnoreProcessNames(){return this._proxy.refreshIgnoreProcessNames?.(this._ignoreProcessNames)}async _resolveShellEnv(){if(P.isWindows)return process.env;try{return await(0,R.getResolvedShellEnv)(this._logService,{_:[]},process.env)}catch(i){return this._logService.error("ptyHost was unable to resolve shell environment",i),{}}}_startPtyHost(){const i={serverName:"Pty Host",args:["--type=ptyHost","--logsPath",this._environmentService.logsPath],env:{VSCODE_LAST_PTY_ID:u,VSCODE_AMD_ENTRYPOINT:"vs/platform/terminal/node/ptyHostMain",VSCODE_PIPE_LOGGING:"true",VSCODE_VERBOSE_LOGGING:"true",VSCODE_RECONNECT_GRACE_TIME:this._reconnectConstants.graceTime,VSCODE_RECONNECT_SHORT_GRACE_TIME:this._reconnectConstants.shortGraceTime,VSCODE_RECONNECT_SCROLLBACK:this._reconnectConstants.scrollback}},s=(0,T.parsePtyHostPort)(this._environmentService.args,this._environmentService.isBuilt);s&&(s.break&&s.port?i.debugBrk=s.port:!s.break&&s.port&&(i.debug=s.port));const n=new y.Client(D.FileAccess.asFileUri("bootstrap-fork",oe).fsPath,i);this._onPtyHostStart.fire(),k.ProxyChannel.toService(n.getChannel(I.TerminalIpcChannels.Heartbeat)).onBeat(()=>this._handleHeartbeat()),this._handleHeartbeat(),this._register(n.onDidProcessExit(l=>{this._onPtyHostExit.fire(l.code),this._isDisposed||(this._restartCount<=g.MaxRestarts?(this._logService.error(`ptyHost terminated unexpectedly with code ${l.code}`),this._restartCount++,this.restartPtyHost()):this._logService.error(`ptyHost terminated unexpectedly with code ${l.code}, giving up`))}));const o=n.getChannel(I.TerminalIpcChannels.Log);E.LogLevelChannelClient.setLevel(o,this._logService.getLevel()),this._register(this._logService.onDidChangeLogLevel(()=>{E.LogLevelChannelClient.setLevel(o,this._logService.getLevel())}));const r=k.ProxyChannel.toService(n.getChannel(I.TerminalIpcChannels.PtyHost));return this._register(r.onProcessData(l=>this._onProcessData.fire(l))),this._register(r.onProcessReady(l=>this._onProcessReady.fire(l))),this._register(r.onProcessExit(l=>this._onProcessExit.fire(l))),this._register(r.onDidChangeProperty(l=>this._onDidChangeProperty.fire(l))),this._register(r.onProcessReplay(l=>this._onProcessReplay.fire(l))),this._register(r.onProcessOrphanQuestion(l=>this._onProcessOrphanQuestion.fire(l))),this._register(r.onDidRequestDetach(l=>this._onDidRequestDetach.fire(l))),[n,r]}dispose(){this._isDisposed=!0,super.dispose()}async createProcess(i,s,n,a,o,r,l,h,S,A,$){const W=setTimeout(()=>this._handleUnresponsiveCreateProcess(),I.HeartbeatConstants.CreateProcessTimeout),ee=await this._proxy.createProcess(i,s,n,a,o,r,l,h,S,A,$);return clearTimeout(W),u=Math.max(u,ee),ee}updateTitle(i,s,n){return this._proxy.updateTitle(i,s,n)}updateIcon(i,s,n){return this._proxy.updateIcon(i,s,n)}attachToProcess(i){return this._proxy.attachToProcess(i)}detachFromProcess(i){return this._proxy.detachFromProcess(i)}listProcesses(){return this._proxy.listProcesses()}reduceConnectionGraceTime(){return this._proxy.reduceConnectionGraceTime()}start(i){return this._proxy.start(i)}shutdown(i,s){return this._proxy.shutdown(i,s)}input(i,s){return this._proxy.input(i,s)}processBinary(i,s){return this._proxy.processBinary(i,s)}resize(i,s,n){return this._proxy.resize(i,s,n)}acknowledgeDataEvent(i,s){return this._proxy.acknowledgeDataEvent(i,s)}setUnicodeVersion(i,s){return this._proxy.setUnicodeVersion(i,s)}getInitialCwd(i){return this._proxy.getInitialCwd(i)}getCwd(i){return this._proxy.getCwd(i)}getLatency(i){return this._proxy.getLatency(i)}orphanQuestionReply(i){return this._proxy.orphanQuestionReply(i)}installAutoReply(i,s){return this._proxy.installAutoReply(i,s)}uninstallAllAutoReplies(){return this._proxy.uninstallAllAutoReplies()}uninstallAutoReply(i){return this._proxy.uninstallAutoReply(i)}getDefaultSystemShell(i){return this._proxy.getDefaultSystemShell(i)}async getProfiles(i,s,n,a=!1){const o=await this._shellEnv;return(0,m.detectAvailableProfiles)(s,n,a,this._configurationService,o,void 0,this._logService,this._resolveVariables.bind(this,i))}getEnvironment(){return this._proxy.getEnvironment()}getWslPath(i){return this._proxy.getWslPath(i)}getRevivedPtyNewId(i){return this._proxy.getRevivedPtyNewId(i)}setTerminalLayoutInfo(i){return this._proxy.setTerminalLayoutInfo(i)}async getTerminalLayoutInfo(i){return await this._proxy.getTerminalLayoutInfo(i)}async requestDetachInstance(i,s){return this._proxy.requestDetachInstance(i,s)}async acceptDetachInstanceReply(i,s){return this._proxy.acceptDetachInstanceReply(i,s)}async serializeTerminalState(i){return this._proxy.serializeTerminalState(i)}async reviveTerminalProcesses(i,s){return this._proxy.reviveTerminalProcesses(i,s)}async refreshProperty(i,s){return this._proxy.refreshProperty(i,s)}async updateProperty(i,s,n){return this._proxy.updateProperty(i,s,n)}async restartPtyHost(){this._isResponsive=!0,this._disposePtyHost(),[this._client,this._proxy]=this._startPtyHost()}_disposePtyHost(){this._proxy.shutdownAll?.(),this._client.dispose()}_handleHeartbeat(){this._clearHeartbeatTimeouts(),this._heartbeatFirstTimeout=setTimeout(()=>this._handleHeartbeatFirstTimeout(),I.HeartbeatConstants.BeatInterval*I.HeartbeatConstants.FirstWaitMultiplier),this._isResponsive||(this._isResponsive=!0,this._onPtyHostResponsive.fire())}_handleHeartbeatFirstTimeout(){this._logService.warn(`No ptyHost heartbeat after ${I.HeartbeatConstants.BeatInterval*I.HeartbeatConstants.FirstWaitMultiplier/1e3} seconds`),this._heartbeatFirstTimeout=void 0,this._heartbeatSecondTimeout=setTimeout(()=>this._handleHeartbeatSecondTimeout(),I.HeartbeatConstants.BeatInterval*I.HeartbeatConstants.SecondWaitMultiplier)}_handleHeartbeatSecondTimeout(){this._logService.error(`No ptyHost heartbeat after ${(I.HeartbeatConstants.BeatInterval*I.HeartbeatConstants.FirstWaitMultiplier+I.HeartbeatConstants.BeatInterval*I.HeartbeatConstants.FirstWaitMultiplier)/1e3} seconds`),this._heartbeatSecondTimeout=void 0,this._isResponsive&&(this._isResponsive=!1,this._onPtyHostUnresponsive.fire())}_handleUnresponsiveCreateProcess(){this._clearHeartbeatTimeouts(),this._logService.error(`No ptyHost response to createProcess after ${I.HeartbeatConstants.CreateProcessTimeout/1e3} seconds`),this._isResponsive&&(this._isResponsive=!1,this._onPtyHostUnresponsive.fire())}_clearHeartbeatTimeouts(){this._heartbeatFirstTimeout&&(clearTimeout(this._heartbeatFirstTimeout),this._heartbeatFirstTimeout=void 0),this._heartbeatSecondTimeout&&(clearTimeout(this._heartbeatSecondTimeout),this._heartbeatSecondTimeout=void 0)}_resolveVariables(i,s){return this._resolveVariablesRequestStore.createRequest({workspaceId:i,originalText:s})}async acceptPtyHostResolvedVariables(i,s){this._resolveVariablesRequestStore.acceptReply(i,s)}};c=_e([Ae(1,p.IConfigurationService),Ae(2,C.IEnvironmentService),Ae(3,w.ILogService)],c),e.PtyHostService=c}),define(ve[39],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IUriIdentityService=void 0,e.IUriIdentityService=(0,b.createDecorator)("IUriIdentityService")}),define(ve[232],we([0,1,7,2,4,29,35,17,13,39]),function(oe,e,b,t,D,P,k,y,p,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsWatcher=void 0;let T=class extends t.Disposable{constructor(w,E,d,I,v){super();this.extensionsManagementService=w,this.logService=I,this.uriIdentityService=v,this._onDidChangeExtensionsByAnotherSource=this._register(new b.Emitter),this.onDidChangeExtensionsByAnotherSource=this._onDidChangeExtensionsByAnotherSource.event,this.startTimestamp=0,this.installingExtensions=[],this.extensionsManagementService.getInstalled().then(g=>{this.installedExtensions=g.map(u=>u.identifier),this.startTimestamp=Date.now()}),this._register(w.onInstallExtension(g=>this.onInstallExtension(g))),this._register(w.onDidInstallExtensions(g=>this.onDidInstallExtensions(g))),this._register(w.onDidUninstallExtension(g=>this.onDidUninstallExtension(g)));const m=D.URI.file(d.extensionsPath);this._register(E.watch(m)),this._register(b.Event.filter(E.onDidFilesChange,g=>g.rawChanges.some(u=>this.doesChangeAffects(u,m)))(()=>this.onDidChange()))}doesChangeAffects(w,E){return w.type!==1&&w.type!==2||!this.uriIdentityService.extUri.isEqual(this.uriIdentityService.extUri.dirname(w.resource),E)?!1:this.uriIdentityService.extUri.isEqual(w.resource,this.uriIdentityService.extUri.joinPath(E,".obsolete"))?!0:!this.uriIdentityService.extUri.basename(w.resource).startsWith(".")}onInstallExtension(w){this.addInstallingExtension(w.identifier)}onDidInstallExtensions(w){for(const E of w)this.removeInstallingExtension(E.identifier),E.local&&this.addInstalledExtension(E.identifier)}onDidUninstallExtension(w){w.error||this.removeInstalledExtension(w.identifier)}addInstallingExtension(w){this.removeInstallingExtension(w),this.installingExtensions.push(w)}removeInstallingExtension(w){this.installingExtensions=this.installingExtensions.filter(E=>!(0,k.areSameExtensions)(E,w))}addInstalledExtension(w){this.installedExtensions&&(this.removeInstalledExtension(w),this.installedExtensions.push(w))}removeInstalledExtension(w){this.installedExtensions&&(this.installedExtensions=this.installedExtensions.filter(E=>!(0,k.areSameExtensions)(E,w)))}async onDidChange(){if(this.installedExtensions){const w=await this.extensionsManagementService.getInstalled(),E=w.filter(I=>[...this.installingExtensions,...this.installedExtensions].some(v=>(0,k.areSameExtensions)(v,I.identifier))?!1:I.installedTimestamp&&I.installedTimestamp>this.startTimestamp?(this.logService.info("Detected extension installed from another source",I.identifier.id),!0):(this.logService.info("Ignored extension installed by another source because of invalid timestamp",I.identifier.id),!1)),d=this.installedExtensions.filter(I=>this.installingExtensions.some(v=>(0,k.areSameExtensions)(v,I))?!1:w.every(v=>!(0,k.areSameExtensions)(v.identifier,I))?(this.logService.info("Detected extension removed from another source",I.id),!0):!1);this.installedExtensions=w.map(I=>I.identifier),(E.length||d.length)&&this._onDidChangeExtensionsByAnotherSource.fire({added:E,removed:d})}}};T=_e([Ae(1,y.IFileService),Ae(2,P.INativeEnvironmentService),Ae(3,p.ILogService),Ae(4,C.IUriIdentityService)],T),e.ExtensionsWatcher=T}),define(ve[112],we([0,1,39,193,17,19,135,7,2]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UriIdentityService=void 0;class C{constructor(w){this.uri=w,this.time=C._clock++}touch(){return this.time=C._clock++,this}}C._clock=0;let T=class{constructor(w){this._fileService=w,this._dispooables=new p.DisposableStore,this._limit=2**16;const E=new Map,d=I=>{let v=E.get(I.scheme);return v===void 0&&(v=w.hasProvider(I)&&!this._fileService.hasCapability(I,1024),E.set(I.scheme,v)),v};this._dispooables.add(y.Event.any(w.onDidChangeFileSystemProviderRegistrations,w.onDidChangeFileSystemProviderCapabilities)(I=>{E.delete(I.scheme)})),this.extUri=new P.ExtUri(d),this._canonicalUris=new k.SkipList((I,v)=>this.extUri.compare(I,v,!0),this._limit)}dispose(){this._dispooables.dispose(),this._canonicalUris.clear()}asCanonicalUri(w){this._fileService.hasProvider(w)&&(w=(0,P.normalizePath)(w));const E=this._canonicalUris.get(w);return E?E.touch().uri.with({fragment:w.fragment}):(this._canonicalUris.set(w,new C(w)),this._checkTrim(),w)}_checkTrim(){if(this._canonicalUris.size<this._limit)return;const w=[...this._canonicalUris.entries()].sort((d,I)=>d[1].touch<I[1].touch?1:d[1].touch>I[1].touch?-1:0);C._clock=0,this._canonicalUris.clear();const E=this._limit*.5;for(let d=0;d<E;d++)this._canonicalUris.set(w[d][0],w[d][1].touch())}};T=_e([Ae(0,D.IFileService)],T),e.UriIdentityService=T,(0,t.registerSingleton)(b.IUriIdentityService,T,!0)}),define(ve[78],we([0,1,180,6,24,19,4,5,8]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasWorkspaceFileExtension=e.isSavedWorkspace=e.isTemporaryWorkspace=e.isUntitledWorkspace=e.UNTITLED_WORKSPACE_NAME=e.WORKSPACE_FILTER=e.WORKSPACE_EXTENSION=e.toWorkspaceFolder=e.WorkspaceFolder=e.Workspace=e.isWorkspaceFolder=e.isWorkspace=e.WorkbenchState=e.reviveIdentifier=e.isWorkspaceIdentifier=e.toWorkspaceIdentifier=e.isSingleFolderWorkspaceIdentifier=e.IWorkspaceContextService=void 0,e.IWorkspaceContextService=(0,y.createDecorator)("contextService");function C(n){const a=n;return typeof a?.id=="string"&&k.URI.isUri(a.uri)}e.isSingleFolderWorkspaceIdentifier=C;function T(n){if(n.configuration)return{id:n.id,configPath:n.configuration};if(n.folders.length===1)return{id:n.id,uri:n.folders[0].uri}}e.toWorkspaceIdentifier=T;function R(n){const a=n;return typeof a?.id=="string"&&k.URI.isUri(a.configPath)}e.isWorkspaceIdentifier=R;function w(n){const a=n;if(a?.uri)return{id:a.id,uri:k.URI.revive(a.uri)};const o=n;if(o?.configPath)return{id:o.id,configPath:k.URI.revive(o.configPath)};if(n?.id)return{id:n.id}}e.reviveIdentifier=w;var E;(function(n){n[n.EMPTY=1]="EMPTY",n[n.FOLDER=2]="FOLDER",n[n.WORKSPACE=3]="WORKSPACE"})(E=e.WorkbenchState||(e.WorkbenchState={}));function d(n){const a=n;return!!(a&&typeof a=="object"&&typeof a.id=="string"&&Array.isArray(a.folders))}e.isWorkspace=d;function I(n){const a=n;return!!(a&&typeof a=="object"&&k.URI.isUri(a.uri)&&typeof a.name=="string"&&typeof a.toResource=="function")}e.isWorkspaceFolder=I;class v{constructor(a,o,r,l,h){this._id=a,this._transient=r,this._configuration=l,this._ignorePathCasing=h,this._foldersMap=D.TernarySearchTree.forUris(this._ignorePathCasing,()=>!0),this.folders=o}update(a){this._id=a.id,this._configuration=a.configuration,this._transient=a.transient,this._ignorePathCasing=a._ignorePathCasing,this.folders=a.folders}get folders(){return this._folders}set folders(a){this._folders=a,this.updateFoldersMap()}get id(){return this._id}get transient(){return this._transient}get configuration(){return this._configuration}set configuration(a){this._configuration=a}getFolder(a){return a&&this._foldersMap.findSubstr(a)||null}updateFoldersMap(){this._foldersMap=D.TernarySearchTree.forUris(this._ignorePathCasing,()=>!0);for(const a of this.folders)this._foldersMap.set(a.uri,a)}toJSON(){return{id:this.id,folders:this.folders,transient:this.transient,configuration:this.configuration}}}e.Workspace=v;class m{constructor(a,o){this.raw=o,this.uri=a.uri,this.index=a.index,this.name=a.name}toResource(a){return(0,P.joinPath)(this.uri,a)}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}e.WorkspaceFolder=m;function g(n){return new m({uri:n,index:0,name:(0,P.basenameOrAuthority)(n)},{uri:n.toString()})}e.toWorkspaceFolder=g,e.WORKSPACE_EXTENSION="code-workspace";const u=`.${e.WORKSPACE_EXTENSION}`;e.WORKSPACE_FILTER=[{name:(0,b.localize)(0,null),extensions:[e.WORKSPACE_EXTENSION]}],e.UNTITLED_WORKSPACE_NAME="workspace.json";function c(n,a){return P.extUriBiasedIgnorePathCase.isEqualOrParent(n,a.untitledWorkspacesHome)}e.isUntitledWorkspace=c;function f(n){let a;return k.URI.isUri(n)?a=n:a=n.configuration,a?.scheme===p.Schemas.tmp}e.isTemporaryWorkspace=f;function i(n,a){return!c(n,a)&&!f(n)}e.isSavedWorkspace=i;function s(n){return(typeof n=="string"?(0,t.extname)(n):(0,P.extname)(n))===u}e.hasWorkspaceFileExtension=s}),define(ve[37],we([0,1,84,7,2,19,12,4,179,29,17,5,13,78,24,39,14,23]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UserDataProfilesService=e.toUserDataProfile=e.EXTENSIONS_RESOURCE_NAME=e.reviveProfile=e.IUserDataProfilesService=e.PROFILES_ENABLEMENT_CONFIG=e.isUserDataProfile=void 0;function g(i){const s=i;return!!(s&&typeof s=="object"&&typeof s.id=="string"&&typeof s.isDefault=="boolean"&&typeof s.name=="string"&&y.URI.isUri(s.location)&&y.URI.isUri(s.globalStorageHome)&&y.URI.isUri(s.settingsResource)&&y.URI.isUri(s.keybindingsResource)&&y.URI.isUri(s.tasksResource)&&y.URI.isUri(s.snippetsHome)&&((0,k.isUndefined)(s.extensionsResource)||y.URI.isUri(s.extensionsResource)))}e.isUserDataProfile=g,e.PROFILES_ENABLEMENT_CONFIG="workbench.experimental.settingsProfiles.enabled",e.IUserDataProfilesService=(0,R.createDecorator)("IUserDataProfilesService");function u(i,s){return{id:i.id,isDefault:i.isDefault,name:i.name,location:y.URI.revive(i.location).with({scheme:s}),globalStorageHome:y.URI.revive(i.globalStorageHome).with({scheme:s}),settingsResource:y.URI.revive(i.settingsResource).with({scheme:s}),keybindingsResource:y.URI.revive(i.keybindingsResource).with({scheme:s}),tasksResource:y.URI.revive(i.tasksResource).with({scheme:s}),snippetsHome:y.URI.revive(i.snippetsHome).with({scheme:s}),extensionsResource:y.URI.revive(i.extensionsResource)?.with({scheme:s})}}e.reviveProfile=u,e.EXTENSIONS_RESOURCE_NAME="extensions.json";function c(i,s,n){return{id:(0,b.hash)(s.path).toString(16),name:i,location:s,isDefault:!1,globalStorageHome:(0,P.joinPath)(s,"globalStorage"),settingsResource:(0,P.joinPath)(s,"settings.json"),keybindingsResource:(0,P.joinPath)(s,"keybindings.json"),tasksResource:(0,P.joinPath)(s,"tasks.json"),snippetsHome:(0,P.joinPath)(s,"snippets"),extensionsResource:(0,P.joinPath)(s,e.EXTENSIONS_RESOURCE_NAME),useDefaultFlags:n}}e.toUserDataProfile=c;let f=class extends D.Disposable{constructor(s,n,a,o){super();this.environmentService=s,this.fileService=n,this.uriIdentityService=a,this.logService=o,this.enabled=!1,this.defaultProfileShouldIncludeExtensionsResourceAlways=!1,this._onDidChangeProfiles=this._register(new t.Emitter),this.onDidChangeProfiles=this._onDidChangeProfiles.event,this._onWillCreateProfile=this._register(new t.Emitter),this.onWillCreateProfile=this._onWillCreateProfile.event,this._onWillRemoveProfile=this._register(new t.Emitter),this.onWillRemoveProfile=this._onWillRemoveProfile.event,this.profilesHome=(0,P.joinPath)(this.environmentService.userRoamingDataHome,"profiles")}get defaultProfile(){return this.profiles[0]}get profiles(){return this.profilesObject.profiles}setEnablement(s){this.enabled!==s&&(this._profilesObject=void 0,this.enabled=s)}get profilesObject(){if(!this._profilesObject){const s=this.enabled?this.getStoredProfiles().map(r=>c(r.name,r.location,r.useDefaultFlags)):[];let n;const a=new d.ResourceMap;if(s.length){const r=this.getStoredProfileAssociations();if(r.workspaces)for(const[l,h]of Object.entries(r.workspaces)){const S=y.URI.parse(l),A=y.URI.parse(h),$=s.find(W=>this.uriIdentityService.extUri.isEqual(W.location,A));$&&a.set(S,$)}if(r.emptyWindow){const l=y.URI.parse(r.emptyWindow);n=s.find(h=>this.uriIdentityService.extUri.isEqual(h.location,l))}}const o=c((0,p.localize)(0,null),this.environmentService.userRoamingDataHome);s.unshift({...o,isDefault:!0,extensionsResource:this.defaultProfileShouldIncludeExtensionsResourceAlways||s.length>0?o.extensionsResource:void 0}),this._profilesObject={profiles:s,workspaces:a,emptyWindow:n}}return this._profilesObject}getProfile(s){const n=this.getWorkspace(s);return(y.URI.isUri(n)?this.profilesObject.workspaces.get(n):this.profilesObject.emptyWindow)??this.defaultProfile}getWorkspace(s){return(0,E.isSingleFolderWorkspaceIdentifier)(s)?s.uri:(0,E.isWorkspaceIdentifier)(s)?s.configPath:"empty-window"}async createProfile(s,n,a){if(!this.enabled)throw new Error(`Settings Profiles are disabled. Enable them via the '${e.PROFILES_ENABLEMENT_CONFIG}' setting.`);if(this.getStoredProfiles().some(l=>l.name===s))throw new Error(`Profile with name ${s} already exists`);const o=c(s,(0,P.joinPath)(this.profilesHome,(0,b.hash)((0,m.generateUuid)()).toString(16)),n);await this.fileService.createFolder(o.location);const r=[];return this._onWillCreateProfile.fire({profile:o,join(l){r.push(l)}}),await v.Promises.settled(r),this.updateProfiles([o],[],[]),a&&await this.setProfileForWorkspace(o,a),o}async updateProfile(s,n,a){if(!this.enabled)throw new Error(`Settings Profiles are disabled. Enable them via the '${e.PROFILES_ENABLEMENT_CONFIG}' setting.`);let o=this.profiles.find(r=>r.id===s.id);if(!o)throw new Error(`Profile '${s.name}' does not exist`);return o=c(n,o.location,a),this.updateProfiles([],[],[o]),o}async setProfileForWorkspace(s,n){if(!this.enabled)throw new Error(`Settings Profiles are disabled. Enable them via the '${e.PROFILES_ENABLEMENT_CONFIG}' setting.`);const a=this.profiles.find(o=>o.id===s.id);if(!a)throw new Error(`Profile '${s.name}' does not exist`);this.updateWorkspaceAssociation(n,a)}async unsetWorkspace(s){if(!this.enabled)throw new Error(`Settings Profiles are disabled. Enable them via the '${e.PROFILES_ENABLEMENT_CONFIG}' setting.`);this.updateWorkspaceAssociation(s)}async removeProfile(s){if(!this.enabled)throw new Error(`Settings Profiles are disabled. Enable them via the '${e.PROFILES_ENABLEMENT_CONFIG}' setting.`);if(s.isDefault)throw new Error("Cannot remove default profile");const n=this.profiles.find(o=>o.id===s.id);if(!n)throw new Error(`Profile '${s.name}' does not exist`);const a=[];this._onWillRemoveProfile.fire({profile:n,join(o){a.push(o)}}),await v.Promises.settled(a),n.id===this.profilesObject.emptyWindow?.id&&(this.profilesObject.emptyWindow=void 0);for(const o of[...this.profilesObject.workspaces.keys()])n.id===this.profilesObject.workspaces.get(o)?.id&&this.profilesObject.workspaces.delete(o);this.updateStoredProfileAssociations(),this.updateProfiles([],[n],[]);try{this.profiles.length===1?await this.fileService.del(this.profilesHome,{recursive:!0}):await this.fileService.del(n.location,{recursive:!0})}catch(o){this.logService.error(o)}}updateProfiles(s,n,a){const o=[];for(let r of[...this.profilesObject.profiles,...s])r.isDefault||n.some(l=>r.id===l.id)||(r=a.find(l=>r.id===l.id)??r,o.push({location:r.location,name:r.name,useDefaultFlags:r.useDefaultFlags}));this.saveStoredProfiles(o),this._profilesObject=void 0,this.triggerProfilesChanges(s,n,a)}triggerProfilesChanges(s,n,a){this._onDidChangeProfiles.fire({added:s,removed:n,updated:a,all:this.profiles})}updateWorkspaceAssociation(s,n){const a=this.getWorkspace(s);y.URI.isUri(a)?(this.profilesObject.workspaces.delete(a),n&&!n.isDefault&&this.profilesObject.workspaces.set(a,n)):this.profilesObject.emptyWindow=n?.isDefault?void 0:n,this.updateStoredProfileAssociations()}updateStoredProfileAssociations(){const s={};for(const[a,o]of this.profilesObject.workspaces.entries())s[a.toString()]=o.location.toString();const n=this.profilesObject.emptyWindow?.location.toString();this.saveStoredProfileAssociations({workspaces:s,emptyWindow:n}),this._profilesObject=void 0}getStoredProfiles(){return[]}saveStoredProfiles(s){throw new Error("not implemented")}getStoredProfileAssociations(){return{}}saveStoredProfileAssociations(s){throw new Error("not implemented")}};f.PROFILES_KEY="userDataProfiles",f.PROFILE_ASSOCIATIONS_KEY="profileAssociations",f=_e([Ae(0,C.IEnvironmentService),Ae(1,T.IFileService),Ae(2,I.IUriIdentityService),Ae(3,w.ILogService)],f),e.UserDataProfilesService=f}),define(ve[233],we([0,1,18,14,20,11,7,2,3,4,161,31,35,36,13,26,32,37]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractExtensionTask=e.reportTelemetry=e.joinErrors=e.AbstractExtensionManagementService=void 0;let g=class extends y.Disposable{constructor(n,a,o,r,l){super();this.galleryService=n,this.telemetryService=a,this.logService=o,this.productService=r,this.userDataProfilesService=l,this.lastReportTimestamp=0,this.installingExtensions=new Map,this.uninstallingExtensions=new Map,this._onInstallExtension=this._register(new k.Emitter),this.onInstallExtension=this._onInstallExtension.event,this._onDidInstallExtensions=this._register(new k.Emitter),this.onDidInstallExtensions=this._onDidInstallExtensions.event,this._onUninstallExtension=this._register(new k.Emitter),this.onUninstallExtension=this._onUninstallExtension.event,this._onDidUninstallExtension=this._register(new k.Emitter),this.onDidUninstallExtension=this._onDidUninstallExtension.event,this.participants=[],this._register((0,y.toDisposable)(()=>{this.installingExtensions.forEach(h=>h.cancel()),this.uninstallingExtensions.forEach(h=>h.cancel()),this.installingExtensions.clear(),this.uninstallingExtensions.clear()}))}async canInstall(n){const a=await this.getTargetPlatform();return n.allTargetPlatforms.some(o=>(0,R.isTargetPlatformCompatible)(o,n.allTargetPlatforms,a))}async installFromGallery(n,a={}){try{if(!this.galleryService.isEnabled())throw new R.ExtensionManagementError(T.localize(0,null),R.ExtensionManagementErrorCode.Internal);const o=await this.checkAndGetCompatibleVersion(n,!!a.installGivenVersion,!!a.installPreReleaseVersion);return await this.installExtension(o.manifest,o.extension,a)}catch(o){throw f(this.telemetryService,"extensionGallery:install",{extensionData:(0,w.getGalleryExtensionTelemetryData)(n),error:o}),this.logService.error("Failed to install extension.",n.identifier.id),this.logService.error(o),c(o)}}async uninstall(n,a={}){return this.logService.trace("ExtensionManagementService#uninstall",n.identifier.id),this.uninstallExtension(n,a)}async reinstallFromGallery(n){if(this.logService.trace("ExtensionManagementService#reinstallFromGallery",n.identifier.id),!this.galleryService.isEnabled())throw new Error(T.localize(1,null));const a=await this.getTargetPlatform(),[o]=await this.galleryService.getExtensions([{...n.identifier,preRelease:n.preRelease}],{targetPlatform:a,compatible:!0},D.CancellationToken.None);if(!o)throw new Error(T.localize(2,null));await this.createUninstallExtensionTask(n,{remove:!0,versionOnly:!0}).run(),await this.installFromGallery(o)}getExtensionsControlManifest(){const n=new Date().getTime();return(!this.extensionsControlManifest||n-this.lastReportTimestamp>1e3*60*5)&&(this.extensionsControlManifest=this.updateControlCache(),this.lastReportTimestamp=n),this.extensionsControlManifest}registerParticipant(n){this.participants.push(n)}async installExtension(n,a,o){const r=$=>`${w.ExtensionKey.create($).toString()}${o.profileLocation?`-${o.profileLocation.toString()}`:""}`;if(!C.URI.isUri(a)){const $=this.installingExtensions.get(r(a));if($){this.logService.info("Extensions is already requested to install",a.identifier.id);const{local:W}=await $.waitUntilTaskIsFinished();return W}o={...o,installOnlyNewlyAddedFromExtensionPack:!0}}const l=[],h=[],S=this.createInstallExtensionTask(n,a,o);C.URI.isUri(a)||this.installingExtensions.set(r(a),S),this._onInstallExtension.fire({identifier:S.identifier,source:a,profileLocation:o.profileLocation}),this.logService.info("Installing extension:",S.identifier.id),l.push({task:S,manifest:n});let A=!1;try{if(o.donotIncludePackAndDependencies)this.logService.info("Installing the extension without checking dependencies and pack",S.identifier.id);else try{const W=await this.getAllDepsAndPackExtensionsToInstall(S.identifier,n,!!o.installOnlyNewlyAddedFromExtensionPack,!!o.installPreReleaseVersion,o.profileLocation);for(const{gallery:ee,manifest:L}of W){A=A||!!L.extensionDependencies?.some(ne=>(0,w.areSameExtensions)({id:ne},S.identifier));const q=r(ee);if(this.installingExtensions.has(q))this.logService.info("Extension is already requested to install",ee.identifier.id);else{const ne=this.createInstallExtensionTask(L,ee,{...o,donotIncludePackAndDependencies:!0});this.installingExtensions.set(q,ne),this._onInstallExtension.fire({identifier:ne.identifier,source:ee,profileLocation:o.profileLocation}),this.logService.info("Installing extension:",ne.identifier.id),l.push({task:ne,manifest:L})}}}catch(W){if(C.URI.isUri(S.source))(0,b.isNonEmptyArray)(n.extensionDependencies)&&this.logService.warn("Cannot install dependencies of extension:",S.identifier.id,W.message),(0,b.isNonEmptyArray)(n.extensionPack)&&this.logService.warn("Cannot install packed extensions of extension:",S.identifier.id,W.message);else throw this.logService.error("Error while preparing to install dependencies and extension packs of the extension:",S.identifier.id),W}const $=l.reduce((W,{task:ee,manifest:L})=>(W.set(ee.identifier.id.toLowerCase(),{task:ee,manifest:L}),W),new Map);for(;$.size;){let W;const ee=[...$.values()].filter(({manifest:L})=>!L.extensionDependencies?.some(q=>$.has(q.toLowerCase())));ee.length?W=$.size===1?ee:ee.filter(({task:L})=>!(L===S&&!A)):(this.logService.info("Found extensions with circular dependencies",ee.map(({task:L})=>L.identifier.id)),W=[...$.values()]),await this.joinAllSettled(W.map(async({task:L})=>{const q=new Date().getTime();try{const{local:ne}=await L.run();if(await this.joinAllSettled(this.participants.map(x=>x.postInstall(ne,L.source,o,D.CancellationToken.None))),!C.URI.isUri(L.source)){const x=L.operation===3,fe=x?void 0:(new Date().getTime()-L.source.lastUpdated)/1e3;if(f(this.telemetryService,x?"extensionGallery:update":"extensionGallery:install",{extensionData:(0,w.getGalleryExtensionTelemetryData)(L.source),duration:new Date().getTime()-q,durationSinceUpdate:fe}),p.isWeb&&L.operation!==3)try{await this.galleryService.reportStatistic(ne.manifest.publisher,ne.manifest.name,ne.manifest.version,"install")}catch{}}h.push({local:ne,identifier:L.identifier,operation:L.operation,source:L.source,context:o.context,profileLocation:o.profileLocation,applicationScoped:ne.isApplicationScoped})}catch(ne){throw C.URI.isUri(L.source)||f(this.telemetryService,L.operation===3?"extensionGallery:update":"extensionGallery:install",{extensionData:(0,w.getGalleryExtensionTelemetryData)(L.source),duration:new Date().getTime()-q,error:ne}),this.logService.error("Error while installing the extension:",L.identifier.id),ne}finally{$.delete(L.identifier.id.toLowerCase())}}))}return h.forEach(({identifier:W})=>this.logService.info("Extension installed successfully:",W.id)),this._onDidInstallExtensions.fire(h),h.filter(({identifier:W})=>(0,w.areSameExtensions)(W,S.identifier))[0].local}catch($){if(l.forEach(({task:W})=>W.cancel()),h.length)try{const W=await Promise.allSettled(h.map(({local:ee})=>this.createUninstallExtensionTask(ee,{versionOnly:!0,profileLocation:o.profileLocation}).run()));for(let ee=0;ee<W.length;ee++){const L=W[ee],{identifier:q}=h[ee];L.status==="fulfilled"?this.logService.info("Rollback: Uninstalled extension",q.id):this.logService.warn("Rollback: Error while uninstalling extension",q.id,(0,P.getErrorMessage)(L.reason))}}catch(W){this.logService.warn("Error while rolling back extensions",(0,P.getErrorMessage)(W),h.map(({identifier:ee})=>ee.id))}throw this._onDidInstallExtensions.fire(l.map(({task:W})=>({identifier:W.identifier,operation:2,source:W.source,context:o.context,profileLocation:o.profileLocation}))),$}finally{for(const{task:$}of l)if(!C.URI.isUri($.source)){const W=r($.source);this.installingExtensions.delete(W)||this.logService.warn("Installation task is not found in the cache",W)}}}async joinAllSettled(n){const a=[],o=[],r=await Promise.allSettled(n);for(const l of r)l.status==="fulfilled"?a.push(l.value):o.push(l.reason);if(o.length)throw u(o);return a}async getAllDepsAndPackExtensionsToInstall(n,a,o,r,l){if(!this.galleryService.isEnabled())return[];let h=await this.getInstalled(void 0,l);const S=[n,...h.map(W=>W.identifier)],A=[],$=async(W,ee)=>{const L=ee.extensionDependencies||[],q=[...L];if(ee.extensionPack){const ne=o?h.find(x=>(0,w.areSameExtensions)(x.identifier,W)):void 0;for(const x of ee.extensionPack)ne&&ne.manifest.extensionPack&&ne.manifest.extensionPack.some(fe=>(0,w.areSameExtensions)({id:fe},{id:x}))||q.every(fe=>!(0,w.areSameExtensions)({id:fe},{id:x}))&&q.push(x)}if(q.length){const ne=[...S,...A.map(fe=>fe.gallery.identifier)],x=q.filter(fe=>ne.every(M=>!(0,w.areSameExtensions)(M,{id:fe})));if(x.length){const fe=await this.galleryService.getExtensions(x.map(M=>({id:M,preRelease:r})),D.CancellationToken.None);for(const M of fe){if(ne.find(z=>(0,w.areSameExtensions)(z,M.identifier)))continue;const B=L.some(z=>(0,w.areSameExtensions)({id:z},M.identifier));let U;try{U=await this.checkAndGetCompatibleVersion(M,!1,r)}catch(z){if(z instanceof R.ExtensionManagementError&&z.code===R.ExtensionManagementErrorCode.IncompatibleTargetPlatform&&!B){this.logService.info("Skipping the packed extension as it cannot be installed",M.identifier.id);continue}else throw z}A.push({gallery:U.extension,manifest:U.manifest}),await $(U.extension.identifier,U.manifest)}}}};return await $(n,a),h=await this.getInstalled(void 0,l),A.filter(W=>!h.some(ee=>(0,w.areSameExtensions)(ee.identifier,W.gallery.identifier)))}async checkAndGetCompatibleVersion(n,a,o){if((await this.getExtensionsControlManifest()).malicious.some(S=>(0,w.areSameExtensions)(n.identifier,S)))throw new R.ExtensionManagementError(T.localize(3,null,n.identifier.id),R.ExtensionManagementErrorCode.Malicious);if(!await this.canInstall(n)){const S=await this.getTargetPlatform();throw new R.ExtensionManagementError(T.localize(4,null,n.identifier.id,this.productService.nameLong,(0,R.TargetPlatformToString)(S)),R.ExtensionManagementErrorCode.IncompatibleTargetPlatform)}const l=await this.getCompatibleVersion(n,a,o);if(l){if(o&&!a&&n.hasPreReleaseVersion&&!l.properties.isPreReleaseVersion)throw new R.ExtensionManagementError(T.localize(5,null,n.identifier.id,this.productService.nameLong,this.productService.version),R.ExtensionManagementErrorCode.IncompatiblePreRelease)}else throw!o&&n.properties.isPreReleaseVersion&&(await this.galleryService.getExtensions([n.identifier],D.CancellationToken.None))[0]?new R.ExtensionManagementError(T.localize(6,null,n.identifier.id),R.ExtensionManagementErrorCode.ReleaseVersionNotFound):new R.ExtensionManagementError(T.localize(7,null,n.identifier.id,this.productService.nameLong,this.productService.version),R.ExtensionManagementErrorCode.Incompatible);this.logService.info("Getting Manifest...",l.identifier.id);const h=await this.galleryService.getManifest(l,D.CancellationToken.None);if(h===null)throw new R.ExtensionManagementError(`Missing manifest for extension ${n.identifier.id}`,R.ExtensionManagementErrorCode.Invalid);if(h.version!==l.version)throw new R.ExtensionManagementError(`Cannot install '${n.identifier.id}' extension because of version mismatch in Marketplace`,R.ExtensionManagementErrorCode.Invalid);return{extension:l,manifest:h}}async getCompatibleVersion(n,a,o){const r=await this.getTargetPlatform();let l=null;return!a&&n.hasPreReleaseVersion&&n.properties.isPreReleaseVersion!==o&&(l=(await this.galleryService.getExtensions([{...n.identifier,preRelease:o}],{targetPlatform:r,compatible:!0},D.CancellationToken.None))[0]||null),!l&&await this.galleryService.isExtensionCompatible(n,o,r)&&(l=n),l||(a?l=(await this.galleryService.getExtensions([{...n.identifier,version:n.version}],{targetPlatform:r,compatible:!0},D.CancellationToken.None))[0]||null:l=await this.galleryService.getCompatibleExtension(n,o,r)),l}async uninstallExtension(n,a){const o=$=>`${$.id.toLowerCase()}${a.versionOnly?`-${n.manifest.version}`:""}${a.profileLocation?`@${a.profileLocation.toString()}`:""}`,r=this.uninstallingExtensions.get(o(n.identifier));if(r)return this.logService.info("Extensions is already requested to uninstall",n.identifier.id),r.waitUntilTaskIsFinished();const l=($,W)=>{const ee=this.createUninstallExtensionTask($,W);return this.uninstallingExtensions.set(o(ee.extension.identifier),ee),a.profileLocation?this.logService.info("Uninstalling extension from the profile:",`${$.identifier.id}@${$.manifest.version}`,a.profileLocation.toString()):this.logService.info("Uninstalling extension:",`${$.identifier.id}@${$.manifest.version}`),this._onUninstallExtension.fire({identifier:$.identifier,profileLocation:a.profileLocation,applicationScoped:$.isApplicationScoped}),ee},h=($,W)=>{W?a.profileLocation?this.logService.error("Failed to uninstall extension from the profile:",`${$.identifier.id}@${$.manifest.version}`,a.profileLocation.toString(),W.message):this.logService.error("Failed to uninstall extension:",`${$.identifier.id}@${$.manifest.version}`,W.message):a.profileLocation?this.logService.info("Successfully uninstalled extension from the profile",`${$.identifier.id}@${$.manifest.version}`,a.profileLocation.toString()):this.logService.info("Successfully uninstalled extension:",`${$.identifier.id}@${$.manifest.version}`),f(this.telemetryService,"extensionGallery:uninstall",{extensionData:(0,w.getLocalExtensionTelemetryData)($),error:W}),this._onDidUninstallExtension.fire({identifier:$.identifier,version:$.manifest.version,error:W?.code,profileLocation:a.profileLocation,applicationScoped:$.isApplicationScoped})},S=[],A=[];try{S.push(l(n,a));const $=await this.getInstalled(1,a.profileLocation);if(a.donotIncludePack)this.logService.info("Uninstalling the extension without including packed extension",`${n.identifier.id}@${n.manifest.version}`);else{const W=this.getAllPackExtensionsToUninstall(n,$);for(const ee of W)this.uninstallingExtensions.has(o(ee.identifier))?this.logService.info("Extensions is already requested to uninstall",ee.identifier.id):S.push(l(ee,a))}a.donotCheckDependents?this.logService.info("Uninstalling the extension without checking dependents",`${n.identifier.id}@${n.manifest.version}`):this.checkForDependents(S.map(W=>W.extension),$,n),await this.joinAllSettled(S.map(async W=>{try{if(await W.run(),await this.joinAllSettled(this.participants.map(ee=>ee.postUninstall(W.extension,a,D.CancellationToken.None))),W.extension.identifier.uuid)try{await this.galleryService.reportStatistic(W.extension.manifest.publisher,W.extension.manifest.name,W.extension.manifest.version,"uninstall")}catch{}h(W.extension)}catch(ee){const L=ee instanceof R.ExtensionManagementError?ee:new R.ExtensionManagementError((0,P.getErrorMessage)(ee),R.ExtensionManagementErrorCode.Internal);throw h(W.extension,L),L}finally{A.push(W)}}))}catch($){const W=$ instanceof R.ExtensionManagementError?$:new R.ExtensionManagementError((0,P.getErrorMessage)($),R.ExtensionManagementErrorCode.Internal);for(const ee of S){try{ee.cancel()}catch{}A.includes(ee)||h(ee.extension,W)}throw W}finally{for(const $ of S)this.uninstallingExtensions.delete(o($.extension.identifier))||this.logService.warn("Uninstallation task is not found in the cache",$.extension.identifier.id)}}checkForDependents(n,a,o){for(const r of n){const l=this.getDependents(r,a);if(l.length){const h=l.filter(S=>!n.some(A=>(0,w.areSameExtensions)(A.identifier,S.identifier)));if(h.length)throw new Error(this.getDependentsErrorMessage(r,h,o))}}}getDependentsErrorMessage(n,a,o){return o===n?a.length===1?T.localize(8,null,o.manifest.displayName||o.manifest.name,a[0].manifest.displayName||a[0].manifest.name):a.length===2?T.localize(9,null,o.manifest.displayName||o.manifest.name,a[0].manifest.displayName||a[0].manifest.name,a[1].manifest.displayName||a[1].manifest.name):T.localize(10,null,o.manifest.displayName||o.manifest.name,a[0].manifest.displayName||a[0].manifest.name,a[1].manifest.displayName||a[1].manifest.name):a.length===1?T.localize(11,null,o.manifest.displayName||o.manifest.name,n.manifest.displayName||n.manifest.name,a[0].manifest.displayName||a[0].manifest.name):a.length===2?T.localize(12,null,o.manifest.displayName||o.manifest.name,n.manifest.displayName||n.manifest.name,a[0].manifest.displayName||a[0].manifest.name,a[1].manifest.displayName||a[1].manifest.name):T.localize(13,null,o.manifest.displayName||o.manifest.name,n.manifest.displayName||n.manifest.name,a[0].manifest.displayName||a[0].manifest.name,a[1].manifest.displayName||a[1].manifest.name)}getAllPackExtensionsToUninstall(n,a,o=[]){if(o.indexOf(n)!==-1)return[];o.push(n);const r=n.manifest.extensionPack?n.manifest.extensionPack:[];if(r.length){const l=a.filter(S=>!S.isBuiltin&&r.some(A=>(0,w.areSameExtensions)({id:A},S.identifier))),h=[];for(const S of l)h.push(...this.getAllPackExtensionsToUninstall(S,a,o));return[...l,...h]}return[]}getDependents(n,a){return a.filter(o=>o.manifest.extensionDependencies&&o.manifest.extensionDependencies.some(r=>(0,w.areSameExtensions)({id:r},n.identifier)))}async updateControlCache(){try{this.logService.trace("ExtensionManagementService.refreshReportedCache");const n=await this.galleryService.getExtensionsControlManifest();return this.logService.trace("ExtensionManagementService.refreshControlCache",n),n}catch{return this.logService.trace("ExtensionManagementService.refreshControlCache - failed to get extension control manifest"),{malicious:[],deprecated:{}}}}createInstallExtensionTask(n,a,o){return o.profileLocation&&(0,E.isApplicationScopedExtension)(n)&&(o={...o,profileLocation:this.userDataProfilesService.defaultProfile.extensionsResource}),this.doCreateInstallExtensionTask(n,a,o)}createUninstallExtensionTask(n,a){return a.profileLocation&&n.isApplicationScoped&&(a={...a,profileLocation:this.userDataProfilesService.defaultProfile.extensionsResource}),this.doCreateUninstallExtensionTask(n,a)}};g=_e([Ae(0,R.IExtensionGalleryService),Ae(1,v.ITelemetryService),Ae(2,d.ILogService),Ae(3,I.IProductService),Ae(4,m.IUserDataProfilesService)],g),e.AbstractExtensionManagementService=g;function u(s){const n=Array.isArray(s)?s:[s];return n.length===1?n[0]instanceof Error?n[0]:new Error(n[0]):n.reduce((a,o)=>new Error(`${a.message}${a.message?",":""}${o instanceof Error?o.message:o}`),new Error(""))}e.joinErrors=u;function c(s){if(s instanceof R.ExtensionManagementError)return s;const n=new R.ExtensionManagementError(s.message,R.ExtensionManagementErrorCode.Internal);return n.stack=s.stack,n}function f(s,n,{extensionData:a,duration:o,error:r,durationSinceUpdate:l}){const h=r?r instanceof R.ExtensionManagementError?r.code:R.ExtensionManagementErrorCode.Internal:void 0;s.publicLog(n,{...a,success:!r,duration:o,errorcode:h,durationSinceUpdate:l})}e.reportTelemetry=f;class i{constructor(){this.barrier=new t.Barrier}async waitUntilTaskIsFinished(){return await this.barrier.wait(),this.cancellablePromise}async run(){return this.cancellablePromise||(this.cancellablePromise=(0,t.createCancelablePromise)(n=>this.doRun(n))),this.barrier.open(),this.cancellablePromise}cancel(){this.cancellablePromise||(this.cancellablePromise=(0,t.createCancelablePromise)(n=>new Promise((a,o)=>{const r=n.onCancellationRequested(()=>{r.dispose(),o(new P.CancellationError)})})),this.barrier.open()),this.cancellablePromise.cancel()}}e.AbstractExtensionTask=i}),define(ve[55],we([0,1,18,14,22,15,11,65,154,2,8,6,3,19,50,67,12,4,164,29,35,36,70,17,5,13,26,7,42,53,37,39]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g,u,c,f,i,s,n,a,o,r,l,h,S,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeExtensionsScannerService=e.toExtensionDescription=e.AbstractExtensionsScannerService=e.IExtensionsScannerService=e.Translations=void 0;var $;(function(fe){function M(B,U){if(B===U)return!0;const z=Object.keys(B),X=new Set;for(const ue of Object.keys(U))X.add(ue);if(z.length!==X.size)return!1;for(const ue of z){if(B[ue]!==U[ue])return!1;X.delete(ue)}return X.size===0}fe.equals=M})($=e.Translations||(e.Translations={})),e.IExtensionsScannerService=(0,n.createDecorator)("IExtensionsScannerService");let W=class extends C.Disposable{constructor(M,B,U,z,X,ue,de,G,se,O,F){super();this.systemExtensionsLocation=M,this.userExtensionsLocation=B,this.extensionsControlLocation=U,this.cacheLocation=z,this.userDataProfilesService=X,this.extensionsProfileScannerService=ue,this.fileService=de,this.logService=G,this.environmentService=se,this.productService=O,this.instantiationService=F,this._onDidChangeCache=this._register(new r.Emitter),this.onDidChangeCache=this._onDidChangeCache.event,this.obsoleteFile=(0,E.joinPath)(this.userExtensionsLocation,".obsolete"),this.systemExtensionsCachedScanner=this._register(this.instantiationService.createInstance(q,(0,E.joinPath)(this.cacheLocation,f.BUILTIN_MANIFEST_CACHE_FILE),this.obsoleteFile)),this.userExtensionsCachedScanner=this._register(this.instantiationService.createInstance(q,(0,E.joinPath)(this.cacheLocation,f.USER_MANIFEST_CACHE_FILE),this.obsoleteFile)),this.extensionsScanner=this._register(this.instantiationService.createInstance(L,this.obsoleteFile)),this._register(this.systemExtensionsCachedScanner.onDidChangeCache(()=>this._onDidChangeCache.fire(0))),this._register(this.userExtensionsCachedScanner.onDidChangeCache(()=>this._onDidChangeCache.fire(1)))}getTargetPlatform(){return this._targetPlatformPromise||(this._targetPlatformPromise=(0,c.computeTargetPlatform)(this.fileService,this.logService)),this._targetPlatformPromise}async scanAllExtensions(M,B){const[U,z]=await Promise.all([this.scanSystemExtensions(M),this.scanUserExtensions(B)]),X=await this.scanExtensionsUnderDevelopment(M,[...U,...z]);return this.dedupExtensions(U,z,X,await this.getTargetPlatform(),!0)}async scanSystemExtensions(M){const B=[];B.push(this.scanDefaultSystemExtensions(!!M.useCache,M.language)),B.push(this.scanDevSystemExtensions(M.language,!!M.checkControlFile));const[U,z]=await Promise.all(B);return this.applyScanOptions([...U,...z],0,M,!1)}async scanUserExtensions(M){this.logService.trace("Started scanning user extensions");const B=await this.createExtensionScannerInput(M.profileLocation??this.userExtensionsLocation,!!M.profileLocation,1,!M.includeUninstalled,M.language);let z=await(M.useCache&&!B.devMode&&B.excludeObsolete?this.userExtensionsCachedScanner:this.extensionsScanner).scanExtensions(B);return z=await this.applyScanOptions(z,1,M,!0),this.logService.trace("Scanned user extensions:",z.length),z}async scanExtensionsUnderDevelopment(M,B){if(this.environmentService.isExtensionDevelopment&&this.environmentService.extensionDevelopmentLocationURI){const U=(await Promise.all(this.environmentService.extensionDevelopmentLocationURI.filter(z=>z.scheme===T.Schemas.file).map(async z=>{const X=await this.createExtensionScannerInput(z,!1,1,!0,M.language,!1);return(await this.extensionsScanner.scanOneOrMultipleExtensions(X)).map(de=>(de.type=B.find(G=>(0,c.areSameExtensions)(G.identifier,de.identifier))?.type??de.type,this.extensionsScanner.validate(de,X)))}))).flat();return this.applyScanOptions(U,"development",M,!0)}return[]}async scanExistingExtension(M,B,U){const z=await this.createExtensionScannerInput(M,!1,B,!0,U.language),X=await this.extensionsScanner.scanExtension(z);return!X||!U.includeInvalid&&!X.isValid?null:X}async scanOneOrMultipleExtensions(M,B,U){const z=await this.createExtensionScannerInput(M,!1,B,!0,U.language),X=await this.extensionsScanner.scanOneOrMultipleExtensions(z);return this.applyScanOptions(X,B,U,!0)}async scanMetadata(M){const B=(0,E.joinPath)(M,"package.json"),U=(await this.fileService.readFile(B)).value.toString();return JSON.parse(U).__metadata}async updateMetadata(M,B){const U=(0,E.joinPath)(M,"package.json"),z=(await this.fileService.readFile(U)).value.toString(),X=JSON.parse(z);B.isMachineScoped=B.isMachineScoped||void 0,B.isBuiltin=B.isBuiltin||void 0,B.installedTimestamp=B.installedTimestamp||void 0,X.__metadata={...X.__metadata,...B},await this.fileService.writeFile((0,E.joinPath)(M,"package.json"),P.VSBuffer.fromString(JSON.stringify(X,null,"	")))}async applyScanOptions(M,B,U,z){return U.includeAllVersions||(M=this.dedupExtensions(B===0?M:void 0,B===1?M:void 0,B==="development"?M:void 0,await this.getTargetPlatform(),z)),U.includeInvalid||(M=M.filter(X=>X.isValid)),M.sort((X,ue)=>{const de=R.basename(X.location.fsPath),G=R.basename(ue.location.fsPath);return de<G?-1:de>G?1:0})}dedupExtensions(M,B,U,z,X){const ue=(G,se,O)=>{if(G.isValid&&!se.isValid)return!1;if(G.isValid===se.isValid){if(X&&d.gt(G.manifest.version,se.manifest.version))return this.logService.debug(`Skipping extension ${se.location.path} with lower version ${se.manifest.version} in favour of ${G.location.path} with version ${G.manifest.version}`),!1;if(d.eq(G.manifest.version,se.manifest.version)){if(G.type===0)return this.logService.debug(`Skipping extension ${se.location.path} in favour of system extension ${G.location.path} with same version`),!1;if(G.targetPlatform===z)return this.logService.debug(`Skipping extension ${se.location.path} from different target platform ${se.targetPlatform}`),!1}}return O?this.logService.warn(`Overwriting user extension ${G.location.path} with ${se.location.path}.`):this.logService.debug(`Overwriting user extension ${G.location.path} with ${se.location.path}.`),!0},de=new Map;return M?.forEach(G=>{const se=f.ExtensionIdentifier.toKey(G.identifier.id),O=de.get(se);(!O||ue(O,G,!1))&&de.set(se,G)}),B?.forEach(G=>{const se=f.ExtensionIdentifier.toKey(G.identifier.id),O=de.get(se);if(!O&&M&&G.type===0){this.logService.debug(`Skipping obsolete system extension ${G.location.path}.`);return}(!O||ue(O,G,!1))&&de.set(se,G)}),U?.forEach(G=>{const se=f.ExtensionIdentifier.toKey(G.identifier.id),O=de.get(se);(!O||ue(O,G,!0))&&de.set(se,G),de.set(se,G)}),[...de.values()]}async scanDefaultSystemExtensions(M,B){this.logService.trace("Started scanning system extensions");const U=await this.createExtensionScannerInput(this.systemExtensionsLocation,!1,0,!0,B),X=await(M&&!U.devMode?this.systemExtensionsCachedScanner:this.extensionsScanner).scanExtensions(U);return this.logService.trace("Scanned system extensions:",X.length),X}async scanDevSystemExtensions(M,B){const U=this.environmentService.isBuilt?[]:this.productService.builtInExtensions;if(!U?.length)return[];this.logService.trace("Started scanning dev system extensions");const z=B?await this.getBuiltInExtensionControl():{},X=[],ue=m.URI.file(R.normalize(R.join(T.FileAccess.asFileUri("",oe).fsPath,"..",".build","builtInExtensions")));for(const G of U){const se=z[G.name]||"marketplace";switch(se){case"disabled":break;case"marketplace":X.push((0,E.joinPath)(ue,G.name));break;default:X.push(m.URI.file(se));break}}const de=await Promise.all(X.map(async G=>this.extensionsScanner.scanExtension(await this.createExtensionScannerInput(G,!1,0,!0,M))));return this.logService.trace("Scanned dev system extensions:",de.length),(0,b.coalesce)(de)}async getBuiltInExtensionControl(){try{const M=await this.fileService.readFile(this.extensionsControlLocation);return JSON.parse(M.value.toString())}catch{return{}}}async createExtensionScannerInput(M,B,U,z,X,ue=!0){const de=await this.getTranslations(X??w.language),G=await this.getMtime(M),se=B?this.userDataProfilesService.defaultProfile.extensionsResource:void 0,O=se?await this.getMtime(se):void 0;return new ee(M,G,se,O,B,U,z,ue,this.productService.version,this.productService.date,this.productService.commit,!this.environmentService.isBuilt,X,de)}async getMtime(M){try{const B=await this.fileService.stat(M);if(typeof B.mtime=="number")return B.mtime}catch{}}};W=_e([Ae(4,S.IUserDataProfilesService),Ae(5,h.IExtensionsProfileScannerService),Ae(6,s.IFileService),Ae(7,a.ILogService),Ae(8,u.IEnvironmentService),Ae(9,o.IProductService),Ae(10,n.IInstantiationService)],W),e.AbstractExtensionsScannerService=W;class ee{constructor(M,B,U,z,X,ue,de,G,se,O,F,K,re,he){this.location=M,this.mtime=B,this.applicationExtensionslocation=U,this.applicationExtensionslocationMtime=z,this.profile=X,this.type=ue,this.excludeObsolete=de,this.validate=G,this.productVersion=se,this.productDate=O,this.productCommit=F,this.devMode=K,this.language=re,this.translations=he}static createNlsConfiguration(M){return{language:M.language,pseudo:M.language==="pseudo",devMode:M.devMode,translations:M.translations}}static equals(M,B){return(0,E.isEqual)(M.location,B.location)&&M.mtime===B.mtime&&(0,E.isEqual)(M.applicationExtensionslocation,B.applicationExtensionslocation)&&M.applicationExtensionslocationMtime===B.applicationExtensionslocationMtime&&M.profile===B.profile&&M.type===B.type&&M.excludeObsolete===B.excludeObsolete&&M.validate===B.validate&&M.productVersion===B.productVersion&&M.productDate===B.productDate&&M.productCommit===B.productCommit&&M.devMode===B.devMode&&M.language===B.language&&$.equals(M.translations,B.translations)}}let L=class extends C.Disposable{constructor(M,B,U,z,X){super();this.obsoleteFile=M,this.extensionsProfileScannerService=B,this.uriIdentityService=U,this.fileService=z,this.logService=X}async scanExtensions(M){const B=M.profile?await this.scanExtensionsFromProfile(M):await this.scanExtensionsFromLocation(M);let U={};if(M.excludeObsolete&&M.type===1)try{const z=(await this.fileService.readFile(this.obsoleteFile)).value.toString();U=JSON.parse(z)}catch{}return(0,v.isEmptyObject)(U)?B:B.filter(z=>!U[c.ExtensionKey.create(z).toString()])}async scanExtensionsFromLocation(M){const B=await this.fileService.resolve(M.location);if(!B.children?.length)return[];const U=await Promise.all(B.children.map(async z=>{if(!z.isDirectory||M.type===1&&(0,E.basename)(z.resource).indexOf(".")===0)return null;const X=new ee(z.resource,M.mtime,M.applicationExtensionslocation,M.applicationExtensionslocationMtime,M.profile,M.type,M.excludeObsolete,M.validate,M.productVersion,M.productDate,M.productCommit,M.devMode,M.language,M.translations);return this.scanExtension(X)}));return(0,b.coalesce)(U).sort((z,X)=>z.location.path<X.location.path?-1:1)}async scanExtensionsFromProfile(M){let B=await this.scanExtensionsFromProfileResource(M.location,()=>!0,M);if(M.applicationExtensionslocation&&!this.uriIdentityService.extUri.isEqual(M.location,M.applicationExtensionslocation)){B=B.filter(z=>!z.metadata?.isApplicationScoped);const U=await this.scanExtensionsFromProfileResource(M.applicationExtensionslocation,z=>!!z.metadata?.isApplicationScoped,M);B.push(...U)}return B}async scanExtensionsFromProfileResource(M,B,U){const z=await this.extensionsProfileScannerService.scanProfileExtensions(M);if(!z.length)return[];const X=await Promise.all(z.map(async ue=>{if(B(ue)){const de=new ee(ue.location,U.mtime,U.applicationExtensionslocation,U.applicationExtensionslocationMtime,U.profile,U.type,U.excludeObsolete,U.validate,U.productVersion,U.productDate,U.productCommit,U.devMode,U.language,U.translations);return this.scanExtension(de,ue.metadata)}return null}));return(0,b.coalesce)(X)}async scanOneOrMultipleExtensions(M){try{if(await this.fileService.exists((0,E.joinPath)(M.location,"package.json"))){const B=await this.scanExtension(M);return B?[B]:[]}else return await this.scanExtensions(M)}catch(B){return this.logService.error(`Error scanning extensions at ${M.location.path}:`,(0,k.getErrorMessage)(B)),[]}}async scanExtension(M,B){try{let U=await this.scanExtensionManifest(M.location);if(U){U.publisher||(U.publisher=f.UNDEFINED_PUBLISHER),B=B??U.__metadata,delete U.__metadata;const z=(0,c.getGalleryExtensionId)(U.publisher,U.name),X=B?.id?{id:z,uuid:B.id}:{id:z},ue=B?.isSystem?0:M.type,de=ue===0||!!B?.isBuiltin;U=await this.translateManifest(M.location,U,ee.createNlsConfiguration(M));const G={type:ue,identifier:X,manifest:U,location:M.location,isBuiltin:de,targetPlatform:B?.targetPlatform??"undefined",metadata:B,isValid:!0,validations:[]};return M.validate?this.validate(G,M):G}}catch(U){M.type!==0&&this.logService.error(U)}return null}validate(M,B){let U=!0;const z=(0,i.validateExtensionManifest)(B.productVersion,B.productDate,B.location,M.manifest,M.isBuiltin);for(const[X,ue]of z)X===I.default.Error&&(U=!1,this.logService.error(this.formatMessage(B.location,ue)));return M.isValid=U,M.validations=z,M}async scanExtensionManifest(M){const B=(0,E.joinPath)(M,"package.json");let U;try{U=(await this.fileService.readFile(B)).value.toString()}catch(X){return(0,s.toFileOperationResult)(X)!==1&&this.logService.error(this.formatMessage(M,(0,g.localize)(0,null,B.path,X.message))),null}let z;try{z=JSON.parse(U)}catch{const ue=[];(0,y.parse)(U,ue);for(const de of ue)this.logService.error(this.formatMessage(M,(0,g.localize)(1,null,B.path,de.offset,de.length,(0,p.getParseErrorMessage)(de.error))));return null}return(0,y.getNodeType)(z)!=="object"?(this.logService.error(this.formatMessage(M,(0,g.localize)(2,null,B.path))),null):z}async translateManifest(M,B,U){const z=await this.getLocalizedMessages(M,B,U);if(z)try{const X=[],ue=await this.resolveOriginalMessageBundle(z.default,X);if(X.length>0)return X.forEach(G=>{this.logService.error(this.formatMessage(M,(0,g.localize)(3,null,z.default?.path,(0,p.getParseErrorMessage)(G.error))))}),B;if((0,y.getNodeType)(z)!=="object")return this.logService.error(this.formatMessage(M,(0,g.localize)(4,null,z.default?.path))),B;const de=z.values||Object.create(null);this.replaceNLStrings(U.pseudo,B,de,ue,M)}catch{}return B}async getLocalizedMessages(M,B,U){const z=(0,E.joinPath)(M,"package.nls.json"),X=(se,O)=>{O.forEach(F=>{this.logService.error(this.formatMessage(M,(0,g.localize)(5,null,se?.path,(0,p.getParseErrorMessage)(F.error))))})},ue=se=>{this.logService.error(this.formatMessage(M,(0,g.localize)(6,null,se?.path)))},de=`${B.publisher}.${B.name}`,G=U.translations[de];if(G)try{const se=m.URI.file(G),O=(await this.fileService.readFile(se)).value.toString(),F=[],K=(0,y.parse)(O,F);return F.length>0?(X(se,F),{values:void 0,default:z}):(0,y.getNodeType)(K)!=="object"?(ue(se),{values:void 0,default:z}):{values:K.contents?K.contents.package:void 0,default:z}}catch{return{values:void 0,default:z}}else{if(!await this.fileService.exists(z))return;let O;try{O=await this.findMessageBundles(M,U)}catch{return}if(!O.localized)return{values:void 0,default:O.original};try{const F=(await this.fileService.readFile(O.localized)).value.toString(),K=[],re=(0,y.parse)(F,K);return K.length>0?(X(O.localized,K),{values:void 0,default:O.original}):(0,y.getNodeType)(re)!=="object"?(ue(O.localized),{values:void 0,default:O.original}):{values:re,default:O.original}}catch{return{values:void 0,default:O.original}}}}async resolveOriginalMessageBundle(M,B){if(M)try{const U=(await this.fileService.readFile(M)).value.toString();return(0,y.parse)(U,B)}catch{return null}else return null}findMessageBundles(M,B){return new Promise((U,z)=>{const X=ue=>{const de=(0,E.joinPath)(M,`package.nls.${ue}.json`);this.fileService.exists(de).then(G=>{G&&U({localized:de,original:(0,E.joinPath)(M,"package.nls.json")});const se=ue.lastIndexOf("-");se===-1?U({localized:(0,E.joinPath)(M,"package.nls.json"),original:null}):(ue=ue.substring(0,se),X(ue))})};if(B.devMode||B.pseudo||!B.language)return U({localized:(0,E.joinPath)(M,"package.nls.json"),original:null});X(B.language)})}replaceNLStrings(M,B,U,z,X){const ue=(de,G,se)=>{const O=de[G];if((0,v.isString)(O)){const F=O,K=F.length;if(K>1&&F[0]==="%"&&F[K-1]==="%"){const re=F.substr(1,K-2);let he=U[re];he===void 0&&z&&(he=z[re]);let te=typeof he=="string"?he:he.message;if(te!==void 0)if(M&&(te="\uFF3B"+te.replace(/[aouei]/g,"$&$&")+"\uFF3D"),se&&z&&(G==="title"||G==="category")){const Q=z[re],Z={value:te,original:typeof Q=="string"?Q:Q?.message};de[G]=Z}else de[G]=te;else this.logService.warn(this.formatMessage(X,(0,g.localize)(7,null,re)))}}else if((0,v.isObject)(O))for(const F in O)O.hasOwnProperty(F)&&(F==="commands"?ue(O,F,!0):ue(O,F,se));else if((0,v.isArray)(O))for(let F=0;F<O.length;F++)ue(O,F,se)};for(const de in B)B.hasOwnProperty(de)&&ue(B,de)}formatMessage(M,B){return`[${M.path}]: ${B}`}};L=_e([Ae(1,h.IExtensionsProfileScannerService),Ae(2,A.IUriIdentityService),Ae(3,s.IFileService),Ae(4,a.ILogService)],L);let q=class extends L{constructor(M,B,U,z,X,ue){super(B,U,z,X,ue);this.cacheFile=M,this.cacheValidatorThrottler=this._register(new t.ThrottledDelayer(3e3)),this._onDidChangeCache=this._register(new r.Emitter),this.onDidChangeCache=this._onDidChangeCache.event}async scanExtensions(M){const B=await this.readExtensionCache();if(this.input=M,B&&B.input&&ee.equals(B.input,this.input))return this.cacheValidatorThrottler.trigger(()=>this.validateCache()),B.result.map(z=>(z.location=m.URI.revive(z.location),z));const U=await super.scanExtensions(M);return await this.writeExtensionCache({input:M,result:U}),U}async readExtensionCache(){try{const M=await this.fileService.readFile(this.cacheFile),B=JSON.parse(M.value.toString());return{result:B.result,input:(0,l.revive)(B.input)}}catch(M){this.logService.debug("Error while reading the extension cache file:",this.cacheFile.path,(0,k.getErrorMessage)(M))}return null}async writeExtensionCache(M){try{await this.fileService.writeFile(this.cacheFile,P.VSBuffer.fromString(JSON.stringify(M)))}catch(B){this.logService.debug("Error while writing the extension cache file:",this.cacheFile.path,(0,k.getErrorMessage)(B))}}async validateCache(){if(!this.input)return;const M=await this.readExtensionCache();if(!M)return;const B=M.result,U=JSON.parse(JSON.stringify(await super.scanExtensions(this.input)));if(!D.equals(U,B))try{await this.fileService.del(this.cacheFile),this._onDidChangeCache.fire()}catch(z){this.logService.error(z)}}};q=_e([Ae(2,h.IExtensionsProfileScannerService),Ae(3,A.IUriIdentityService),Ae(4,s.IFileService),Ae(5,a.ILogService)],q);function ne(fe,M){const B=(0,c.getExtensionId)(fe.manifest.publisher,fe.manifest.name);return{id:B,identifier:new f.ExtensionIdentifier(B),isBuiltin:fe.type===0,isUserBuiltin:fe.type===1&&fe.isBuiltin,isUnderDevelopment:M,extensionLocation:fe.location,uuid:fe.identifier.uuid,targetPlatform:fe.targetPlatform,...fe.manifest}}e.toExtensionDescription=ne;class x extends W{constructor(M,B,U,z,X,ue,de,G,se,O,F){super(M,B,(0,E.joinPath)(U,".vscode-oss-dev","extensions","control.json"),(0,E.joinPath)(z,f.MANIFEST_CACHE_FOLDER),X,ue,de,G,se,O,F);this.translationsPromise=(async()=>{if(w.translationsConfigFile)try{const K=await this.fileService.readFile(m.URI.file(w.translationsConfigFile));return JSON.parse(K.value.toString())}catch{}return Object.create(null)})()}getTranslations(M){return this.translationsPromise}}e.NativeExtensionsScannerService=x}),define(ve[234],we([0,1,43,14,38,7,2,8,6,21,13,37]),function(oe,e,b,t,D,P,k,y,p,C,T,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsLifecycle=void 0;let w=class extends k.Disposable{constructor(d,I){super();this.userDataProfilesService=d,this.logService=I,this.processesLimiter=new t.Limiter(5)}async postUninstall(d){const I=this.parseScript(d,"uninstall");return I&&(this.logService.info(d.identifier.id,d.manifest.version,"Running post uninstall script"),await this.processesLimiter.queue(()=>this.runLifecycleHook(I.script,"uninstall",I.args,!0,d).then(()=>this.logService.info(d.identifier.id,d.manifest.version,"Finished running post uninstall script"),v=>this.logService.error(d.identifier.id,d.manifest.version,`Failed to run post uninstall script: ${v}`)))),C.Promises.rm(this.getExtensionStoragePath(d)).then(void 0,v=>this.logService.error("Error while removing extension storage path",v))}parseScript(d,I){const v=`vscode:${I}`;if(d.location.scheme===y.Schemas.file&&d.manifest&&d.manifest.scripts&&typeof d.manifest.scripts[v]=="string"){const m=d.manifest.scripts[v].split(" ");return m.length<2||m[0]!=="node"||!m[1]?(this.logService.warn(d.identifier.id,d.manifest.version,`${v} should be a node script`),null):{script:(0,p.join)(d.location.fsPath,m[1]),args:m.slice(2)||[]}}return null}runLifecycleHook(d,I,v,m,g){return new Promise((u,c)=>{const f=this.start(d,I,v,g);let i;const s=n=>{i&&(clearTimeout(i),i=null),n?c(n):u(void 0)};f.on("error",n=>{s((0,D.toErrorMessage)(n)||"Unknown")}),f.on("exit",(n,a)=>{s(n?`post-${I} process exited with code ${n}`:void 0)}),m&&(i=setTimeout(()=>{i=null,f.kill(),c("timed out")},5e3))})}start(d,I,v,m){const g={silent:!0,execArgv:void 0},u=(0,b.fork)(d,[`--type=extension-post-${I}`,...v],g);u.stdout.setEncoding("utf8"),u.stderr.setEncoding("utf8");const c=P.Event.fromNodeEventEmitter(u.stdout,"data"),f=P.Event.fromNodeEventEmitter(u.stderr,"data");c(n=>this.logService.info(m.identifier.id,m.manifest.version,`post-${I}`,n)),f(n=>this.logService.error(m.identifier.id,m.manifest.version,`post-${I}`,n));const i=P.Event.any(P.Event.map(c,n=>({data:`%c${n}`,format:[""]})),P.Event.map(f,n=>({data:`%c${n}`,format:["color: red"]})));return P.Event.debounce(i,(n,a)=>n?{data:n.data+a.data,format:[...n.format,...a.format]}:{data:a.data,format:a.format},100)(n=>{console.group(m.identifier.id),console.log(n.data,...n.format),console.groupEnd()}),u}getExtensionStoragePath(d){return(0,p.join)(this.userDataProfilesService.defaultProfile.globalStorageHome.fsPath,d.identifier.id.toLowerCase())}};w=_e([Ae(0,R.IUserDataProfilesService),Ae(1,T.ILogService)],w),e.ExtensionsLifecycle=w}),define(ve[235],we([0,1,14,7,2,48,12,147,5,37]),function(oe,e,b,t,D,P,k,y,p,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.logStorage=e.InMemoryStorageService=e.isProfileUsingDefaultStorage=e.AbstractStorageService=e.StorageTarget=e.StorageScope=e.WillSaveStateReason=e.IStorageService=e.IS_NEW_KEY=void 0,e.IS_NEW_KEY="__$__isNewStorageMarker";const T="__$__targetStorageMarker";e.IStorageService=(0,p.createDecorator)("storageService");var R;(function(g){g[g.NONE=0]="NONE",g[g.SHUTDOWN=1]="SHUTDOWN"})(R=e.WillSaveStateReason||(e.WillSaveStateReason={}));var w;(function(g){g[g.APPLICATION=-1]="APPLICATION",g[g.PROFILE=0]="PROFILE",g[g.WORKSPACE=1]="WORKSPACE"})(w=e.StorageScope||(e.StorageScope={}));var E;(function(g){g[g.USER=0]="USER",g[g.MACHINE=1]="MACHINE"})(E=e.StorageTarget||(e.StorageTarget={}));class d extends D.Disposable{constructor(u={flushInterval:d.DEFAULT_FLUSH_INTERVAL}){super();this.options=u,this._onDidChangeValue=this._register(new t.PauseableEmitter),this.onDidChangeValue=this._onDidChangeValue.event,this._onDidChangeTarget=this._register(new t.PauseableEmitter),this.onDidChangeTarget=this._onDidChangeTarget.event,this._onWillSaveState=this._register(new t.Emitter),this.onWillSaveState=this._onWillSaveState.event,this.flushWhenIdleScheduler=this._register(new b.RunOnceScheduler(()=>this.doFlushWhenIdle(),this.options.flushInterval)),this.runFlushWhenIdle=this._register(new D.MutableDisposable),this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}doFlushWhenIdle(){this.runFlushWhenIdle.value=(0,b.runWhenIdle)(()=>{this.shouldFlushWhenIdle()&&this.flush(),this.flushWhenIdleScheduler.schedule()})}shouldFlushWhenIdle(){return!0}stopFlushWhenIdle(){(0,D.dispose)([this.runFlushWhenIdle,this.flushWhenIdleScheduler])}initialize(){return this.initializationPromise||(this.initializationPromise=(async()=>{(0,P.mark)("code/willInitStorage");try{await this.doInitialize()}finally{(0,P.mark)("code/didInitStorage")}this.flushWhenIdleScheduler.schedule()})()),this.initializationPromise}emitDidChangeValue(u,c){if(c===T){switch(u){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:u})}else this._onDidChangeValue.fire({scope:u,key:c,target:this.getKeyTargets(u)[c]})}emitWillSaveState(u){this._onWillSaveState.fire({reason:u})}get(u,c,f){return this.getStorage(c)?.get(u,f)}getBoolean(u,c,f){return this.getStorage(c)?.getBoolean(u,f)}getNumber(u,c,f){return this.getStorage(c)?.getNumber(u,f)}store(u,c,f,i){if((0,k.isUndefinedOrNull)(c)){this.remove(u,f);return}this.withPausedEmitters(()=>{this.updateKeyTarget(u,f,i),this.getStorage(f)?.set(u,c)})}remove(u,c){this.withPausedEmitters(()=>{this.updateKeyTarget(u,c,void 0),this.getStorage(c)?.delete(u)})}withPausedEmitters(u){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{u()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}keys(u,c){const f=[],i=this.getKeyTargets(u);for(const s of Object.keys(i))i[s]===c&&f.push(s);return f}updateKeyTarget(u,c,f){const i=this.getKeyTargets(c);typeof f=="number"?i[u]!==f&&(i[u]=f,this.getStorage(c)?.set(T,JSON.stringify(i))):typeof i[u]=="number"&&(delete i[u],this.getStorage(c)?.set(T,JSON.stringify(i)))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(u){switch(u){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(u){const c=this.get(T,u);if(c)try{return JSON.parse(c)}catch{}return Object.create(null)}isNew(u){return this.getBoolean(e.IS_NEW_KEY,u)===!0}async flush(u=R.NONE){this._onWillSaveState.fire({reason:u});const c=this.getStorage(-1),f=this.getStorage(0),i=this.getStorage(1);switch(u){case R.NONE:await b.Promises.settled([c?.whenFlushed()??Promise.resolve(),f?.whenFlushed()??Promise.resolve(),i?.whenFlushed()??Promise.resolve()]);break;case R.SHUTDOWN:await b.Promises.settled([c?.flush(0)??Promise.resolve(),f?.flush(0)??Promise.resolve(),i?.flush(0)??Promise.resolve()]);break}}async log(){const u=this.getStorage(-1)?.items??new Map,c=this.getStorage(0)?.items??new Map,f=this.getStorage(1)?.items??new Map;return m(u,c,f,this.getLogDetails(-1)??"",this.getLogDetails(0)??"",this.getLogDetails(1)??"")}async switch(u,c){return this.emitWillSaveState(R.NONE),(0,C.isUserDataProfile)(u)?this.switchToProfile(u,c):this.switchToWorkspace(u,c)}canSwitchProfile(u,c){return!(u.id===c.id||I(c)&&I(u))}switchData(u,c,f,i){this.withPausedEmitters(()=>{if(i)for(const[s,n]of u)c.set(s,n);else{const s=new Set;for(const[n,a]of u)s.add(n),c.get(n)!==a&&this.emitDidChangeValue(f,n);for(const[n]of c.items)s.has(n)||this.emitDidChangeValue(f,n)}})}}e.AbstractStorageService=d,d.DEFAULT_FLUSH_INTERVAL=60*1e3;function I(g){return g.isDefault||!!g.useDefaultFlags?.uiState}e.isProfileUsingDefaultStorage=I;class v extends d{constructor(){super();this.applicationStorage=this._register(new y.Storage(new y.InMemoryStorageDatabase)),this.profileStorage=this._register(new y.Storage(new y.InMemoryStorageDatabase)),this.workspaceStorage=this._register(new y.Storage(new y.InMemoryStorageDatabase)),this._register(this.workspaceStorage.onDidChangeStorage(u=>this.emitDidChangeValue(1,u))),this._register(this.profileStorage.onDidChangeStorage(u=>this.emitDidChangeValue(0,u))),this._register(this.applicationStorage.onDidChangeStorage(u=>this.emitDidChangeValue(-1,u)))}getStorage(u){switch(u){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}getLogDetails(u){switch(u){case-1:return"inMemory (application)";case 0:return"inMemory (profile)";default:return"inMemory (workspace)"}}async doInitialize(){}async switchToProfile(){}async switchToWorkspace(){}}e.InMemoryStorageService=v;async function m(g,u,c,f,i,s){const n=W=>{try{return JSON.parse(W)}catch{return W}},a=new Map,o=new Map;g.forEach((W,ee)=>{a.set(ee,W),o.set(ee,n(W))});const r=new Map,l=new Map;u.forEach((W,ee)=>{r.set(ee,W),l.set(ee,n(W))});const h=new Map,S=new Map;c.forEach((W,ee)=>{h.set(ee,W),S.set(ee,n(W))}),console.group(f!==i?`Storage: Application (path: ${f})`:`Storage: Application & Profile (path: ${f}, default profile)`);const A=[];if(a.forEach((W,ee)=>{A.push({key:ee,value:W})}),console.table(A),console.groupEnd(),console.log(o),f!==i){console.group(`Storage: Profile (path: ${i}, profile specific)`);const W=[];r.forEach((ee,L)=>{W.push({key:L,value:ee})}),console.table(W),console.groupEnd(),console.log(l)}console.group(`Storage: Workspace (path: ${s})`);const $=[];h.forEach((W,ee)=>{$.push({key:ee,value:W})}),console.table($),console.groupEnd(),console.log(S)}e.logStorage=m}),define(ve[113],we([0,1,18,20,11,3,27,12,4,25,29,31,35,70,17,13,26,54,218,235,32]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g,u,c){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionGalleryServiceWithNoStorageService=e.ExtensionGalleryService=e.sortExtensionVersions=void 0;const f=P.isWeb?"web":(0,R.getTargetPlatform)(P.platform,k.arch);var i;(function(O){O[O.None=0]="None",O[O.IncludeVersions=1]="IncludeVersions",O[O.IncludeFiles=2]="IncludeFiles",O[O.IncludeCategoryAndTags=4]="IncludeCategoryAndTags",O[O.IncludeSharedAccounts=8]="IncludeSharedAccounts",O[O.IncludeVersionProperties=16]="IncludeVersionProperties",O[O.ExcludeNonValidated=32]="ExcludeNonValidated",O[O.IncludeInstallationTargets=64]="IncludeInstallationTargets",O[O.IncludeAssetUri=128]="IncludeAssetUri",O[O.IncludeStatistics=256]="IncludeStatistics",O[O.IncludeLatestVersionOnly=512]="IncludeLatestVersionOnly",O[O.Unpublished=4096]="Unpublished",O[O.IncludeNameConflictInfo=32768]="IncludeNameConflictInfo"})(i||(i={}));function s(...O){return String(O.reduce((F,K)=>F|K,0))}var n;(function(O){O[O.Tag=1]="Tag",O[O.ExtensionId=4]="ExtensionId",O[O.Category=5]="Category",O[O.ExtensionName=7]="ExtensionName",O[O.Target=8]="Target",O[O.Featured=9]="Featured",O[O.SearchText=10]="SearchText",O[O.ExcludeWithFlags=12]="ExcludeWithFlags"})(n||(n={}));const a={Icon:"Microsoft.VisualStudio.Services.Icons.Default",Details:"Microsoft.VisualStudio.Services.Content.Details",Changelog:"Microsoft.VisualStudio.Services.Content.Changelog",Manifest:"Microsoft.VisualStudio.Code.Manifest",VSIX:"Microsoft.VisualStudio.Services.VSIXPackage",License:"Microsoft.VisualStudio.Services.Content.License",Repository:"Microsoft.VisualStudio.Services.Links.Source"},o={Dependency:"Microsoft.VisualStudio.Code.ExtensionDependencies",ExtensionPack:"Microsoft.VisualStudio.Code.ExtensionPack",Engine:"Microsoft.VisualStudio.Code.Engine",PreRelease:"Microsoft.VisualStudio.Code.PreRelease",LocalizedLanguages:"Microsoft.VisualStudio.Code.LocalizedLanguages",WebExtension:"Microsoft.VisualStudio.Code.WebExtension",SponsorLink:"Microsoft.VisualStudio.Code.SponsorLink"},l={pageNumber:1,pageSize:10,sortBy:0,sortOrder:0,flags:i.None,criteria:[],assetTypes:[]};class h{constructor(F=l){this.state=F}get pageNumber(){return this.state.pageNumber}get pageSize(){return this.state.pageSize}get sortBy(){return this.state.sortBy}get sortOrder(){return this.state.sortOrder}get flags(){return this.state.flags}withPage(F,K=this.state.pageSize){return new h({...this.state,pageNumber:F,pageSize:K})}withFilter(F,...K){const re=[...this.state.criteria,...K.length?K.map(he=>({filterType:F,value:he})):[{filterType:F}]];return new h({...this.state,criteria:re})}withSortBy(F){return new h({...this.state,sortBy:F})}withSortOrder(F){return new h({...this.state,sortOrder:F})}withFlags(...F){return new h({...this.state,flags:F.reduce((K,re)=>K|re,0)})}withAssetTypes(...F){return new h({...this.state,assetTypes:F})}withSource(F){return new h({...this.state,source:F})}get raw(){const{criteria:F,pageNumber:K,pageSize:re,sortBy:he,sortOrder:te,flags:Q,assetTypes:Z}=this.state;return{filters:[{criteria:F,pageNumber:K,pageSize:re,sortBy:he,sortOrder:te}],assetTypes:Z,flags:Q}}get searchText(){const F=this.state.criteria.filter(K=>K.filterType===n.SearchText)[0];return F&&F.value?F.value:""}get telemetryData(){return{filterTypes:this.state.criteria.map(F=>String(F.filterType)),flags:this.state.flags,sortBy:String(this.sortBy),sortOrder:String(this.sortOrder),pageNumber:String(this.pageNumber),source:this.state.source,searchTextLength:this.searchText.length}}}function S(O,F){const K=(O||[]).filter(re=>re.statisticName===F)[0];return K?K.value:0}function A(O){const F="Microsoft.VisualStudio.Code.Translation.";return O.files.filter(re=>re.assetType.indexOf(F)===0).reduce((re,he)=>{const te=ee(O,he.assetType);return te&&re.push([he.assetType.substring(F.length),te]),re},[])}function $(O){if(O.properties){const F=O.properties.filter(he=>he.key===a.Repository),K=new RegExp("((git|ssh|http(s)?)|(git@[\\w.]+))(:(//)?)([\\w.@:/\\-~]+)(.git)(/)?"),re=F.filter(he=>K.test(he.value))[0];return re?{uri:re.value,fallbackUri:re.value}:null}return ee(O,a.Repository)}function W(O){return{uri:`${O.fallbackAssetUri}/${a.VSIX}?redirect=true${O.targetPlatform?`&targetPlatform=${O.targetPlatform}`:""}`,fallbackUri:`${O.fallbackAssetUri}/${a.VSIX}${O.targetPlatform?`?targetPlatform=${O.targetPlatform}`:""}`}}function ee(O,F){return O.files.filter(re=>re.assetType===F)[0]?{uri:`${O.assetUri}/${F}${O.targetPlatform?`?targetPlatform=${O.targetPlatform}`:""}`,fallbackUri:`${O.fallbackAssetUri}/${F}${O.targetPlatform?`?targetPlatform=${O.targetPlatform}`:""}`}:null}function L(O,F){const K=O.properties?O.properties.filter(he=>he.key===F):[],re=K.length>0&&K[0].value;return re?re.split(",").map(he=>(0,w.adoptToGalleryExtensionId)(he)):[]}function q(O){const F=O.properties?O.properties.filter(K=>K.key===o.Engine):[];return F.length>0&&F[0].value||""}function ne(O){const F=O.properties?O.properties.filter(K=>K.key===o.PreRelease):[];return F.length>0&&F[0].value==="true"}function x(O){const F=O.properties?O.properties.filter(re=>re.key===o.LocalizedLanguages):[],K=F.length>0&&F[0].value||"";return K?K.split(","):[]}function fe(O){return O.properties?.find(F=>F.key===o.SponsorLink)?.value}function M(O){return O.indexOf("preview")!==-1}function B(O){return O.targetPlatform?(0,R.toTargetPlatform)(O.targetPlatform):"undefined"}function U(O){const F=(0,b.distinct)(O.versions.map(B)),K=!!O.tags?.includes(R.WEB_EXTENSION_TAG),re=F.indexOf("web");return K?re===-1&&F.push("web"):re!==-1&&F.splice(re,1),F}function z(O,F){const K=(0,R.getFallbackTargetPlarforms)(F);for(let re=0;re<O.length;re++){const he=O[re];if(he.version===O[re-1]?.version){let te=re;const Q=B(he);if(Q===F)for(;te>0&&O[te-1].version===he.version;)te--;else if(K.includes(Q))for(;te>0&&O[te-1].version===he.version&&B(O[te-1])!==F;)te--;te!==re&&(O.splice(re,1),O.splice(te,0,he))}}return O}e.sortExtensionVersions=z;function X(O,F,K){O.telemetryData={index:F,querySource:K}}function ue(O,F,K){const re=O.versions[0],he={manifest:ee(F,a.Manifest),readme:ee(F,a.Details),changelog:ee(F,a.Changelog),license:ee(F,a.License),repository:$(F),download:W(F),icon:ee(F,a.Icon),coreTranslations:A(F)};return{identifier:{id:(0,w.getGalleryExtensionId)(O.publisher.publisherName,O.extensionName),uuid:O.extensionId},name:O.extensionName,version:F.version,displayName:O.displayName,publisherId:O.publisher.publisherId,publisher:O.publisher.publisherName,publisherDisplayName:O.publisher.displayName,publisherDomain:O.publisher.domain?{link:O.publisher.domain,verified:!!O.publisher.isDomainVerified}:void 0,publisherSponsorLink:fe(re),description:O.shortDescription||"",installCount:S(O.statistics,"install"),rating:S(O.statistics,"averagerating"),ratingCount:S(O.statistics,"ratingcount"),categories:O.categories||[],tags:O.tags||[],releaseDate:Date.parse(O.releaseDate),lastUpdated:Date.parse(O.lastUpdated),allTargetPlatforms:K,assets:he,properties:{dependencies:L(F,o.Dependency),extensionPack:L(F,o.ExtensionPack),engine:q(F),localizedLanguages:x(F),targetPlatform:B(F),isPreReleaseVersion:ne(F)},hasPreReleaseVersion:ne(re),hasReleaseVersion:!0,preview:M(O.flags)}}let de=class{constructor(F,K,re,he,te,Q,Z,ae){this.requestService=K,this.logService=re,this.environmentService=he,this.telemetryService=te,this.fileService=Q,this.productService=Z,this.configurationService=ae;const j=Z.extensionsGallery;this.extensionsGalleryUrl=j&&j.serviceUrl,this.extensionsControlUrl=j&&j.controlUrl,this.commonHeadersPromise=(0,g.resolveMarketplaceHeaders)(Z.version,Z,this.environmentService,this.configurationService,this.fileService,F,this.telemetryService)}api(F=""){return`${this.extensionsGalleryUrl}${F}`}isEnabled(){return!!this.extensionsGalleryUrl}async getExtensions(F,K,re){const he=t.CancellationToken.isCancellationToken(K)?{}:K,te=t.CancellationToken.isCancellationToken(K)?K:re,Q=[],Z=[],ae=[],j=[];let ie=!0;for(const le of F){le.uuid?Z.push(le.uuid):Q.push(le.id);const pe=!!(le.version||le.preRelease);ae.push({id:le.id,uuid:le.uuid,includePreRelease:pe}),le.version&&j.push({id:le.id,uuid:le.uuid,version:le.version}),ie=ie&&!!le.hasPreRelease&&!pe}if(!Z.length&&!Q.length)return[];let H=new h().withPage(1,F.length);Z.length&&(H=H.withFilter(n.ExtensionId,...Z)),Q.length&&(H=H.withFilter(n.ExtensionName,...Q)),(he.queryAllVersions||ie)&&(H=H.withFlags(H.flags,i.IncludeVersions)),he.source&&(H=H.withSource(he.source));const{extensions:Y}=await this.queryGalleryExtensions(H,{targetPlatform:he.targetPlatform??f,includePreRelease:ae,versions:j,compatible:!!he.compatible},te);return he.source&&Y.forEach((le,pe)=>X(le,pe,he.source)),Y}async getCompatibleExtension(F,K,re){if((0,R.isNotWebExtensionInWebTargetPlatform)(F.allTargetPlatforms,re))return null;if(await this.isExtensionCompatible(F,K,re))return F;const he=new h().withFlags(i.IncludeVersions).withPage(1,1).withFilter(n.ExtensionId,F.identifier.uuid),{extensions:te}=await this.queryGalleryExtensions(he,{targetPlatform:re,compatible:!0,includePreRelease:K},t.CancellationToken.None);return te[0]||null}async isExtensionCompatible(F,K,re){if(!(0,R.isTargetPlatformCompatible)(F.properties.targetPlatform,F.allTargetPlatforms,re)||!K&&F.properties.isPreReleaseVersion)return!1;let he=F.properties.engine;if(!he){const te=await this.getManifest(F,t.CancellationToken.None);if(!te)throw new Error("Manifest was not found");he=te.engines.vscode}return(0,E.isEngineValid)(he,this.productService.version,this.productService.date)}async isValidVersion(F,K,re,he,te){if(!(0,R.isTargetPlatformCompatible)(B(F),he,te)||K!=="any"&&ne(F)!==(K==="prerelease"))return!1;if(re)try{const Q=await this.getEngine(F);if(!(0,E.isEngineValid)(Q,this.productService.version,this.productService.date))return!1}catch(Q){return this.logService.error(`Error while getting the engine for the version ${F.version}.`,(0,D.getErrorMessage)(Q)),!1}return!0}async query(F,K){if(!this.isEnabled())throw new Error("No extension gallery service configured.");let re=F.text||"";const he=F.pageSize??50;let te=new h().withPage(1,he);re?(re=re.replace(/\bcategory:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g,(ie,H,Y)=>(te=te.withFilter(n.Category,Y||H),"")),re=re.replace(/\btag:("([^"]*)"|([^"]\S*))(\s+|\b|$)/g,(ie,H,Y)=>(te=te.withFilter(n.Tag,Y||H),"")),re=re.replace(/\bfeatured(\s+|\b|$)/g,()=>(te=te.withFilter(n.Featured),"")),re=re.trim(),re&&(re=re.length<200?re:re.substring(0,200),te=te.withFilter(n.SearchText,re)),te=te.withSortBy(0)):F.ids?te=te.withFilter(n.ExtensionId,...F.ids):F.names?te=te.withFilter(n.ExtensionName,...F.names):te=te.withSortBy(4),typeof F.sortBy=="number"&&(te=te.withSortBy(F.sortBy)),typeof F.sortOrder=="number"&&(te=te.withSortOrder(F.sortOrder)),F.source&&(te=te.withSource(F.source));const Q=async(ie,H)=>{const{extensions:Y,total:le}=await this.queryGalleryExtensions(ie,{targetPlatform:f,compatible:!1,includePreRelease:!!F.includePreRelease},H);return Y.forEach((pe,Pe)=>X(pe,(ie.pageNumber-1)*ie.pageSize+Pe,F.source)),{extensions:Y,total:le}},{extensions:Z,total:ae}=await Q(te,K),j=async(ie,H)=>{if(H.isCancellationRequested)throw new D.CancellationError;const{extensions:Y}=await Q(te.withPage(ie+1),H);return Y};return{firstPage:Z,total:ae,pageSize:te.pageSize,getPage:j}}async queryGalleryExtensions(F,K,re){const he=F.flags;!!(F.flags&i.IncludeLatestVersionOnly)&&!!(F.flags&i.IncludeVersions)&&(F=F.withFlags(F.flags&~i.IncludeVersions,i.IncludeLatestVersionOnly)),!(F.flags&i.IncludeLatestVersionOnly)&&!(F.flags&i.IncludeVersions)&&(F=F.withFlags(F.flags,i.IncludeLatestVersionOnly)),K.versions?.length&&(F=F.withFlags(F.flags&~i.IncludeLatestVersionOnly,i.IncludeVersions)),F=F.withFlags(F.flags,i.IncludeAssetUri,i.IncludeCategoryAndTags,i.IncludeFiles,i.IncludeStatistics,i.IncludeVersionProperties);const{galleryExtensions:te,total:Q}=await this.queryRawGalleryExtensions(F,re);if(!(F.flags&i.IncludeLatestVersionOnly)){const ie=[];for(const H of te){const Y=await this.toGalleryExtensionWithCriteria(H,K);Y&&ie.push(Y)}return{extensions:ie,total:Q}}const ae=[],j=new Map;for(let ie=0;ie<te.length;ie++){const H=te[ie],Y={id:(0,w.getGalleryExtensionId)(H.publisher.publisherName,H.extensionName),uuid:H.extensionId},le=(0,y.isBoolean)(K.includePreRelease)?K.includePreRelease:!!K.includePreRelease.find(Pe=>(0,w.areSameExtensions)(Pe,Y))?.includePreRelease;if(K.compatible&&(0,R.isNotWebExtensionInWebTargetPlatform)(U(H),K.targetPlatform))continue;const pe=await this.toGalleryExtensionWithCriteria(H,K);!pe||pe.properties.isPreReleaseVersion&&(!le||!pe.hasReleaseVersion)||!pe.properties.isPreReleaseVersion&&pe.properties.targetPlatform!==K.targetPlatform&&pe.hasPreReleaseVersion?j.set(H.extensionId,ie):ae.push([ie,pe])}if(j.size){const ie=new Date().getTime(),H=new h().withFlags(he&~i.IncludeLatestVersionOnly,i.IncludeVersions).withPage(1,j.size).withFilter(n.ExtensionId,...j.keys()),{extensions:Y}=await this.queryGalleryExtensions(H,K,re);this.telemetryService.publicLog2("galleryService:additionalQuery",{duration:new Date().getTime()-ie,count:j.size});for(const le of Y){const pe=j.get(le.identifier.uuid);ae.push([pe,le])}}return{extensions:ae.sort((ie,H)=>ie[0]-H[0]).map(([,ie])=>ie),total:Q}}async toGalleryExtensionWithCriteria(F,K){const re={id:(0,w.getGalleryExtensionId)(F.publisher.publisherName,F.extensionName),uuid:F.extensionId},he=K.versions?.find(ae=>(0,w.areSameExtensions)(ae,re))?.version,te=(0,y.isBoolean)(K.includePreRelease)?K.includePreRelease:!!K.includePreRelease.find(ae=>(0,w.areSameExtensions)(ae,re))?.includePreRelease,Q=U(F),Z=z(F.versions,K.targetPlatform);if(K.compatible&&(0,R.isNotWebExtensionInWebTargetPlatform)(Q,K.targetPlatform))return null;for(let ae=0;ae<Z.length;ae++){const j=Z[ae];if(!(he&&j.version!==he)){if(await this.isValidVersion(j,te?"any":"release",K.compatible,Q,K.targetPlatform))return ue(F,j,Q);if(he&&j.version===he)return null}}return he||K.compatible?null:ue(F,F.versions[0],Q)}async queryRawGalleryExtensions(F,K){if(!this.isEnabled())throw new Error("No extension gallery service configured.");F=F.withFlags(F.flags,i.ExcludeNonValidated).withFilter(n.Target,"Microsoft.VisualStudio.Code").withFilter(n.ExcludeWithFlags,s(i.Unpublished));const re=await this.commonHeadersPromise,he=JSON.stringify(F.raw),te={...re,"Content-Type":"application/json",Accept:"application/json;api-version=3.0-preview.1","Accept-Encoding":"gzip","Content-Length":String(he.length)},Q=new Date().getTime();let Z,ae,j=0;try{if(Z=await this.requestService.request({type:"POST",url:this.api("/extensionquery"),data:he,headers:te},K),Z.res.statusCode&&Z.res.statusCode>=400&&Z.res.statusCode<500)return{galleryExtensions:[],total:j};const ie=await(0,m.asJson)(Z);if(ie){const H=ie.results[0],Y=H.extensions,le=H.resultMetadata&&H.resultMetadata.filter(pe=>pe.metadataType==="ResultCount")[0];return j=le&&le.metadataItems.filter(pe=>pe.name==="TotalCount")[0].count||0,{galleryExtensions:Y,total:j}}return{galleryExtensions:[],total:j}}catch(ie){throw ae=ie,ie}finally{this.telemetryService.publicLog2("galleryService:query",{...F.telemetryData,requestBodySize:String(he.length),duration:new Date().getTime()-Q,success:!!Z&&(0,m.isSuccess)(Z),responseBodySize:Z?.res.headers["Content-Length"],statusCode:Z?String(Z.res.statusCode):void 0,errorCode:ae?(0,D.isCancellationError)(ae)?"canceled":(0,D.getErrorMessage)(ae).startsWith("XHR timeout")?"timeout":"failed":void 0,count:String(j)})}}async reportStatistic(F,K,re,he){if(!this.isEnabled())return;const te=P.isWeb?this.api(`/itemName/${F}.${K}/version/${re}/statType/${he==="install"?"1":"3"}/vscodewebextension`):this.api(`/publishers/${F}/extensions/${K}/${re}/stats?statType=${he}`),Q=P.isWeb?"api-version=6.1-preview.1":"*/*;api-version=4.0-preview.1",ae={...await this.commonHeadersPromise,Accept:Q};try{await this.requestService.request({type:"POST",url:te,headers:ae},t.CancellationToken.None)}catch{}}async download(F,K,re){this.logService.trace("ExtensionGalleryService#download",F.identifier.id);const he=(0,w.getGalleryExtensionTelemetryData)(F),te=new Date().getTime(),Q=ie=>this.telemetryService.publicLog("galleryService:downloadVSIX",{...he,duration:ie}),Z=re===2?"install":re===3?"update":"",ae=Z?{uri:`${F.assets.download.uri}${p.URI.parse(F.assets.download.uri).query?"&":"?"}${Z}=true`,fallbackUri:`${F.assets.download.fallbackUri}${p.URI.parse(F.assets.download.fallbackUri).query?"&":"?"}${Z}=true`}:F.assets.download,j=await this.getAsset(ae);await this.fileService.writeFile(K,j.stream),Q(new Date().getTime()-te)}async getReadme(F,K){if(F.assets.readme){const re=await this.getAsset(F.assets.readme,{},K);return await(0,m.asTextOrError)(re)||""}return""}async getManifest(F,K){if(F.assets.manifest){const re=await this.getAsset(F.assets.manifest,{},K),he=await(0,m.asTextOrError)(re);return he?JSON.parse(he):null}return null}async getManifestFromRawExtensionVersion(F,K){const re=ee(F,a.Manifest);if(!re)throw new Error("Manifest was not found");const he={"Accept-Encoding":"gzip"},te=await this.getAsset(re,{headers:he});return await(0,m.asJson)(te)}async getCoreTranslation(F,K){const re=F.assets.coreTranslations.filter(he=>he[0]===K.toUpperCase())[0];if(re){const he=await this.getAsset(re[1]),te=await(0,m.asTextOrError)(he);return te?JSON.parse(te):null}return null}async getChangelog(F,K){if(F.assets.changelog){const re=await this.getAsset(F.assets.changelog,{},K);return await(0,m.asTextOrError)(re)||""}return""}async getAllCompatibleVersions(F,K,re){let he=new h().withFlags(i.IncludeVersions,i.IncludeCategoryAndTags,i.IncludeFiles,i.IncludeVersionProperties).withPage(1,1);F.identifier.uuid?he=he.withFilter(n.ExtensionId,F.identifier.uuid):he=he.withFilter(n.ExtensionName,F.identifier.id);const{galleryExtensions:te}=await this.queryRawGalleryExtensions(he,t.CancellationToken.None);if(!te.length)return[];const Q=U(te[0]);if((0,R.isNotWebExtensionInWebTargetPlatform)(Q,re))return[];const Z=[];await Promise.all(te[0].versions.map(async ie=>{try{await this.isValidVersion(ie,K?"any":"release",!0,Q,re)&&Z.push(ie)}catch{}}));const ae=[],j=new Set;for(const ie of z(Z,re))j.has(ie.version)||(j.add(ie.version),ae.push({version:ie.version,date:ie.lastUpdated,isPreReleaseVersion:ne(ie)}));return ae}async getAsset(F,K={},re=t.CancellationToken.None){const he=await this.commonHeadersPromise,te={type:"GET"},Q={...he,...K.headers||{}};K={...K,...te,headers:Q};const Z=F.uri,ae=F.fallbackUri,j={...K,url:Z};try{const ie=await this.requestService.request(j,re);if(ie.res.statusCode===200)return ie;const H=await(0,m.asTextOrError)(ie);throw new Error(`Expected 200, got back ${ie.res.statusCode} instead.

${H}`)}catch(ie){if((0,D.isCancellationError)(ie))throw ie;const H=(0,D.getErrorMessage)(ie);this.telemetryService.publicLog2("galleryService:cdnFallback",{url:Z,message:H});const Y={...K,url:ae};return this.requestService.request(Y,re)}}async getEngine(F){let K=q(F);if(!K){const re=await this.getManifestFromRawExtensionVersion(F,t.CancellationToken.None);if(!re)throw new Error("Manifest was not found");K=re.engines.vscode}return K}async getExtensionsControlManifest(){if(!this.isEnabled())throw new Error("No extension gallery service configured.");if(!this.extensionsControlUrl)return{malicious:[],deprecated:{}};const F=await this.requestService.request({type:"GET",url:this.extensionsControlUrl},t.CancellationToken.None);if(F.res.statusCode!==200)throw new Error("Could not get extensions report.");const K=await(0,m.asJson)(F),re=[],he={};if(K){for(const te of K.malicious)re.push({id:te});if(K.migrateToPreRelease)for(const[te,Q]of Object.entries(K.migrateToPreRelease))(!Q.engine||(0,E.isEngineValid)(Q.engine,this.productService.version,this.productService.date))&&(he[te.toLowerCase()]={disallowInstall:!0,extension:{id:Q.id,displayName:Q.displayName,autoMigrate:{storage:!!Q.migrateStorage},preRelease:!0}});if(K.deprecated)for(const[te,Q]of Object.entries(K.deprecated))Q&&(he[te.toLowerCase()]=(0,y.isBoolean)(Q)?{}:Q)}return{malicious:re,deprecated:he}}};de=_e([Ae(1,m.IRequestService),Ae(2,I.ILogService),Ae(3,T.IEnvironmentService),Ae(4,c.ITelemetryService),Ae(5,d.IFileService),Ae(6,v.IProductService),Ae(7,C.IConfigurationService)],de);let G=class extends de{constructor(F,K,re,he,te,Q,Z,ae){super(F,K,re,he,te,Q,Z,ae)}};G=_e([Ae(0,u.IStorageService),Ae(1,m.IRequestService),Ae(2,I.ILogService),Ae(3,T.IEnvironmentService),Ae(4,c.ITelemetryService),Ae(5,d.IFileService),Ae(6,v.IProductService),Ae(7,C.IConfigurationService)],G),e.ExtensionGalleryService=G;let se=class extends de{constructor(F,K,re,he,te,Q,Z){super(void 0,F,K,re,he,te,Q,Z)}};se=_e([Ae(0,m.IRequestService),Ae(1,I.ILogService),Ae(2,T.IEnvironmentService),Ae(3,c.ITelemetryService),Ae(4,d.IFileService),Ae(5,v.IProductService),Ae(6,C.IConfigurationService)],se),e.ExtensionGalleryServiceWithNoStorageService=se}),define(ve[114],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionHostStatusService=e.IExtensionHostStatusService=void 0,e.IExtensionHostStatusService=(0,b.createDecorator)("extensionHostStatusService");class t{constructor(){this._exitInfo=new Map}setExitInfo(P,k){this._exitInfo.set(P,k)}getExitInfo(P){return this._exitInfo.get(P)||null}}e.ExtensionHostStatusService=t}),define(ve[236],we([0,1,7,14]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ManagementConnection=e.printTime=void 0;function D(k){let y=0,p=0,C=0;k>=1e3&&(C=Math.floor(k/1e3),k-=C*1e3),C>=60&&(p=Math.floor(C/60),C-=p*60),p>=60&&(y=Math.floor(p/60),p-=y*60);const T=y?`${y}h`:"",R=p?`${p}m`:"",w=C?`${C}s`:"",E=k?`${k}ms`:"";return`${T}${R}${w}${E}`}e.printTime=D;class P{constructor(y,p,C,T){this._logService=y,this._reconnectionToken=p,this._onClose=new b.Emitter,this.onClose=this._onClose.event,this._reconnectionGraceTime=108e5,this._reconnectionShortGraceTime=3e5,this._remoteAddress=C,this.protocol=T,this._disposed=!1,this._disconnectRunner1=new t.ProcessTimeRunOnceScheduler(()=>{this._log(`The reconnection grace time of ${D(this._reconnectionGraceTime)} has expired, so the connection will be disposed.`),this._cleanResources()},this._reconnectionGraceTime),this._disconnectRunner2=new t.ProcessTimeRunOnceScheduler(()=>{this._log(`The reconnection short grace time of ${D(this._reconnectionShortGraceTime)} has expired, so the connection will be disposed.`),this._cleanResources()},this._reconnectionShortGraceTime),this.protocol.onDidDispose(()=>{this._log("The client has disconnected gracefully, so the connection will be disposed."),this._cleanResources()}),this.protocol.onSocketClose(()=>{this._log(`The client has disconnected, will wait for reconnection ${D(this._reconnectionGraceTime)} before disposing...`),this._disconnectRunner1.schedule()}),this._log("New connection established.")}_log(y){this._logService.info(`[${this._remoteAddress}][${this._reconnectionToken.substr(0,8)}][ManagementConnection] ${y}`)}shortenReconnectionGraceTimeIfNecessary(){this._disconnectRunner2.isScheduled()||this._disconnectRunner1.isScheduled()&&(this._log(`Another client has connected, will shorten the wait for reconnection ${D(this._reconnectionShortGraceTime)} before disposing...`),this._disconnectRunner2.schedule())}_cleanResources(){if(this._disposed)return;this._disposed=!0,this._disconnectRunner1.dispose(),this._disconnectRunner2.dispose();const y=this.protocol.getSocket();this.protocol.sendDisconnect(),this.protocol.dispose(),y.end(),this._onClose.fire(void 0)}acceptReconnection(y,p,C){this._remoteAddress=y,this._log("The client has reconnected."),this._disconnectRunner1.cancel(),this._disconnectRunner2.cancel(),this.protocol.beginAcceptReconnection(p,C),this.protocol.endAcceptReconnection()}}e.ManagementConnection=P}),define(ve[79],we([0,1,30,8,6,143,51]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLocaleFromConfig=e.InternalNLSConfiguration=e.getNLSConfiguration=void 0;const y=D.join(t.FileAccess.asFileUri("",oe).fsPath,"nls.metadata.json"),p=new Map;function C(d){return new Promise(I=>b.exists(d,I))}function T(d,I){return C(y).then(v=>{if(!v||!k.default.commit)return Promise.resolve({locale:"en",availableLanguages:{}});const m=`${d}||${I}`;let g=p.get(m);return g||(g=P.getNLSConfiguration(k.default.commit,I,y,d).then(u=>(R.is(u)&&(u._languagePackSupport=!0),u.locale!=="en"&&u.locale!=="en-us"&&Object.keys(u.availableLanguages).length===0&&p.delete(m),u)),p.set(m,g)),g})}e.getNLSConfiguration=T;var R;(function(d){function I(v){const m=v;return m&&typeof m._languagePackId=="string"}d.is=I})(R=e.InternalNLSConfiguration||(e.InternalNLSConfiguration={}));const w=async d=>{try{const I=E(await b.promises.readFile(d,"utf8"));return JSON.parse(I).locale}catch(I){return I.code!=="ENOENT"&&console.warn(I),"en"}};e.getLocaleFromConfig=w;const E=d=>{const I=/('(?:[^\\']*(?:\\.)?)*')|('(?:[^\\']*(?:\\.)?)*')|(\/\*(?:\r?\n|.)*?\*\/)|(\/{2,}.*?(?:(?:\r?\n)|$))/g;return d.replace(I,(v,m,g,u,c)=>{if(u)return"";if(c){const f=c.length;return f>2&&c[f-1]===`
`?c[f-2]==="\r"?`\r
`:`
`:""}else return v})}}),define(ve[115],we([0,1,19,4,29,53,55,36,17,5,13,26,37,79]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionsScannerService=void 0;let d=class extends k.AbstractExtensionsScannerService{constructor(v,m,g,u,c,f,i){super(t.URI.file(c.builtinExtensionsPath),t.URI.file(c.extensionsPath),(0,b.joinPath)(c.userHome,".vscode-oss-dev","extensions","control.json"),(0,b.joinPath)(t.URI.file(c.userDataPath),y.MANIFEST_CACHE_FOLDER),v,m,g,u,c,f,i);this.nativeEnvironmentService=c}async getTranslations(v){const m=await(0,E.getNLSConfiguration)(v,this.nativeEnvironmentService.userDataPath);if(E.InternalNLSConfiguration.is(m))try{const g=await this.fileService.readFile(t.URI.file(m._translationsConfigFile));return JSON.parse(g.value.toString())}catch{}return Object.create(null)}};d=_e([Ae(0,w.IUserDataProfilesService),Ae(1,P.IExtensionsProfileScannerService),Ae(2,p.IFileService),Ae(3,T.ILogService),Ae(4,D.INativeEnvironmentService),Ae(5,R.IProductService),Ae(6,C.IInstantiationService)],d),e.ExtensionsScannerService=d}),define(ve[237],we([0,1,238,30,6,23,8,21]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.requestHasValidConnectionToken=e.determineServerConnectionToken=e.parseServerConnectionToken=e.ServerConnectionTokenParseError=e.MandatoryServerConnectionToken=e.OptionalServerConnectionToken=e.NoneServerConnectionToken=e.ServerConnectionTokenType=void 0;const p=/^[0-9A-Za-z-]+$/;var C;(function(m){m[m.None=0]="None",m[m.Optional=1]="Optional",m[m.Mandatory=2]="Mandatory"})(C=e.ServerConnectionTokenType||(e.ServerConnectionTokenType={}));class T{constructor(){this.type=0}validate(g){return!0}}e.NoneServerConnectionToken=T;class R{constructor(g){this.value=g,this.type=1}validate(g){return g===this.value}}e.OptionalServerConnectionToken=R;class w{constructor(g){this.value=g,this.type=2}validate(g){return g===this.value}}e.MandatoryServerConnectionToken=w;class E{constructor(g){this.message=g}}e.ServerConnectionTokenParseError=E;async function d(m,g){const u=m["without-connection-token"],c=m["connection-token"],f=m["connection-token-file"],i=m.compatibility==="1.63";if(u)return typeof c!="undefined"||typeof f!="undefined"?new E("Please do not use the argument '--connection-token' or '--connection-token-file' at the same time as '--without-connection-token'."):new T;if(typeof f!="undefined"){if(typeof c!="undefined")return new E("Please do not use the argument '--connection-token' at the same time as '--connection-token-file'.");let s;try{s=t.readFileSync(f).toString().replace(/\r?\n$/,"")}catch{return new E(`Unable to read the connection token file at '${f}'.`)}return p.test(s)?new w(s):new E(`The connection token defined in '${f} does not adhere to the characters 0-9, a-z, A-Z or -.`)}return typeof c!="undefined"?p.test(c)?i?new R(c):new w(c):new E(`The connection token '${c} does not adhere to the characters 0-9, a-z, A-Z or -.`):i?(console.log("Breaking change in the next release: Please use one of the following arguments: '--connection-token', '--connection-token-file' or '--without-connection-token'."),new R(await g())):new w(await g())}e.parseServerConnectionToken=d;async function I(m){return d(m,async()=>{if(!m["user-data-dir"])return(0,P.generateUuid)();const u=D.join(m["user-data-dir"],"token");try{const i=(await y.Promises.readFile(u)).toString().replace(/\r?\n$/,"");if(p.test(i))return i}catch{}const c=(0,P.generateUuid)();try{await y.Promises.writeFile(u,c,{mode:384})}catch{}return c})}e.determineServerConnectionToken=I;function v(m,g,u){if(m.validate(u.query[k.connectionTokenQueryName]))return!0;const c=b.parse(g.headers.cookie||"");return m.validate(c[k.connectionTokenCookieName])}e.requestHasValidConnectionToken=v}),define(ve[40],we([0,1,181,191,58,5,29]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ServerEnvironmentService=e.IServerEnvironmentService=e.serverOptions=void 0,e.serverOptions={"disable-update-check":{type:"boolean"},auth:{type:"string"},"disable-file-downloads":{type:"boolean"},locale:{type:"string"},host:{type:"string",cat:"o",args:"ip-address",description:b.localize(0,null)},port:{type:"string",cat:"o",args:"port | port range",description:b.localize(1,null)},"pick-port":{type:"string",deprecationMessage:"Use the range notation in 'port' instead."},"socket-path":{type:"string",cat:"o",args:"path",description:b.localize(2,null)},"connection-token":{type:"string",cat:"o",args:"token",deprecates:["connectionToken"],description:b.localize(3,null)},"connection-token-file":{type:"string",cat:"o",args:"path",deprecates:["connection-secret","connectionTokenFile"],description:b.localize(4,null)},"without-connection-token":{type:"boolean",cat:"o",description:b.localize(5,null)},"disable-websocket-compression":{type:"boolean"},"print-startup-performance":{type:"boolean"},"print-ip-address":{type:"boolean"},"accept-server-license-terms":{type:"boolean",cat:"o",description:b.localize(6,null)},"server-data-dir":{type:"string",cat:"o",description:b.localize(7,null)},"telemetry-level":{type:"string",cat:"o",args:"level",description:b.localize(8,null)},"user-data-dir":D.OPTIONS["user-data-dir"],"enable-smoke-test-driver":D.OPTIONS["enable-smoke-test-driver"],"disable-telemetry":D.OPTIONS["disable-telemetry"],"disable-workspace-trust":D.OPTIONS["disable-workspace-trust"],"file-watcher-polling":{type:"string",deprecates:["fileWatcherPolling"]},log:D.OPTIONS.log,logsPath:D.OPTIONS.logsPath,"force-disable-user-env":D.OPTIONS["force-disable-user-env"],folder:{type:"string",deprecationMessage:"No longer supported. Folder needs to be provided in the browser URL or with `default-folder`."},workspace:{type:"string",deprecationMessage:"No longer supported. Workspace needs to be provided in the browser URL or with `default-workspace`."},"default-folder":{type:"string",description:b.localize(9,null)},"default-workspace":{type:"string",description:b.localize(10,null)},"enable-sync":{type:"boolean"},"github-auth":{type:"string"},"extensions-dir":D.OPTIONS["extensions-dir"],"extensions-download-dir":D.OPTIONS["extensions-download-dir"],"builtin-extensions-dir":D.OPTIONS["builtin-extensions-dir"],"install-extension":D.OPTIONS["install-extension"],"install-builtin-extension":D.OPTIONS["install-builtin-extension"],"uninstall-extension":D.OPTIONS["uninstall-extension"],"list-extensions":D.OPTIONS["list-extensions"],"locate-extension":D.OPTIONS["locate-extension"],"show-versions":D.OPTIONS["show-versions"],category:D.OPTIONS.category,force:D.OPTIONS.force,"do-not-sync":D.OPTIONS["do-not-sync"],"pre-release":D.OPTIONS["pre-release"],"start-server":{type:"boolean",cat:"e",description:b.localize(11,null)},"enable-remote-auto-shutdown":{type:"boolean"},"remote-auto-shutdown-without-delay":{type:"boolean"},"use-host-proxy":{type:"boolean"},"without-browser-env-var":{type:"boolean"},help:D.OPTIONS.help,version:D.OPTIONS.version,"locate-shell-integration-path":D.OPTIONS["locate-shell-integration-path"],compatibility:{type:"string"},_:D.OPTIONS._},e.IServerEnvironmentService=(0,P.refineServiceDecorator)(k.IEnvironmentService);class y extends t.NativeEnvironmentService{get args(){return super.args}}e.ServerEnvironmentService=y}),define(ve[239],we([0,1,71,13,40,26,204,23,18]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CredentialsWebMainService=void 0;let C=class extends k.BaseCredentialsMainService{constructor(R,w,E){super(R);this.environmentMainService=w,this.productService=E,this.environmentMainService.args["github-auth"]&&this.storeGitHubToken(this.environmentMainService.args["github-auth"]).catch(d=>{this.logService.error("Failed to store provided GitHub token",d)})}async getSecretStoragePrefix(){return Promise.resolve(`${this.productService.urlProtocol}-server`)}async withKeytar(){if(this._keytarCache)return this._keytarCache;if(this.environmentMainService.disableKeytar)return this.logService.info("Keytar is disabled. Using in-memory credential store instead."),this._keytarCache=new b.InMemoryCredentialsProvider,this._keytarCache;try{this._keytarCache=await new Promise((R,w)=>{oe(["keytar"],R,w)}),await this._keytarCache.findCredentials("test-keytar-loads")}catch(R){this.logService.warn(`Using the in-memory credential store as the operating system's credential store could not be accessed. Please see https://aka.ms/vscode-server-keyring on how to set this up. Details: ${R.message??R}`),this._keytarCache=new b.InMemoryCredentialsProvider}return this._keytarCache}async storeGitHubToken(R){const w="vscode.github-authentication",E=`${await this.getSecretStoragePrefix()}${w}`,d="github.auth",v=[["read:user","user:email","repo"]].map(u=>({id:(0,y.generateUuid)(),scopes:u.sort(),accessToken:R})),m=await this.getPassword(E,d);let g;if(m)try{const u=JSON.parse(m);u.content=JSON.parse(u.content),g=u}catch(u){this.logService.error("Failed to parse existing GitHub credentials",u)}return g?.content&&(g.content=g.content.filter(u=>{const c=u.scopes.sort();return!v.find(f=>(0,p.equals)(c,f.scopes)&&f.account?.label===u.account?.label)})),this.setPassword(E,d,JSON.stringify({extensionId:w,...g||{},content:JSON.stringify([...v,...g?.content||[]])}))}};C=_e([Ae(0,t.ILogService),Ae(1,D.IServerEnvironmentService),Ae(2,P.IProductService)],C),e.CredentialsWebMainService=C}),define(ve[240],we([0,1,272,223,241,28]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryClient=void 0;class k extends b.AppInsightsCore{constructor(p){super();this.endpoint=p}track(p){const C=p.baseData||{};C.properties||(C.properties={}),C.measurements||(C.measurements={});try{const T=P.cpus();C.measurements.cores=T.length,C.properties["common.cpuModel"]=T[0].model}catch{}try{C.measurements.memoryFree=P.freemem(),C.measurements.memoryTotal=P.totalmem()}catch{}try{C.properties["common.shell"]=P.userInfo().shell,C.properties["common.release"]=P.release(),C.properties["common.arch"]=P.arch()}catch{}try{const T=(/^http:/.test(this.endpoint)?D:t).request(this.endpoint,{method:"POST",headers:{"Content-Type":"application/json"}});T.on("error",()=>{}),T.write(JSON.stringify(C)),T.end()}catch{}}}e.TelemetryClient=k}),define(ve[242],we([0,1,30,87,76,238,108,33,66,3,13,40,6,8,23,26,54,20,4,15,12,79,75]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g,u,c,f,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOriginalUrl=e.relativePath=e.relativeRoot=e.normalizeUrlPath=e.WebClientServer=e.serveFile=e.CacheControl=e.serveError=void 0;const s={".html":"text/html",".js":"text/javascript",".json":"application/json",".css":"text/css",".svg":"image/svg+xml"};async function n(W,ee,L,q){ee.writeHead(L,{"Content-Type":"text/plain"}),ee.end(q)}e.serveError=n;var a;(function(W){W[W.NO_CACHING=0]="NO_CACHING",W[W.ETAG=1]="ETAG",W[W.NO_EXPIRY=2]="NO_EXPIRY"})(a=e.CacheControl||(e.CacheControl={}));async function o(W,ee,L,q,ne,x){try{const fe=await b.promises.stat(W);if(ee===1){const M=`W/"${[fe.ino,fe.size,fe.mtime.getTime()].join("-")}"`;if(q.headers["if-none-match"]===M)return ne.writeHead(304),ne.end();x.Etag=M}else ee===2?x["Cache-Control"]="public, max-age=31536000":ee===0&&(x["Cache-Control"]="no-store");x["Content-Type"]=s[(0,w.extname)(W)]||(0,p.getMediaMime)(W)||"text/plain",ne.writeHead(200,x),(0,b.createReadStream)(W).pipe(ne)}catch(fe){return fe.code!=="ENOENT"?(L.error(fe),console.error(fe.toString())):console.error(`File not found: ${W}`),ne.writeHead(404,{"Content-Type":"text/plain"}),ne.end("Not found")}}e.serveFile=o;const r=(0,w.dirname)(E.FileAccess.asFileUri("",oe).fsPath);let l=class{constructor(ee,L,q,ne,x){this._connectionToken=ee,this._environmentService=L,this._logService=q,this._requestService=ne,this._productService=x,this._webExtensionResourceUrlTemplate=this._productService.extensionsGallery?.resourceUrlTemplate?g.URI.parse(this._productService.extensionsGallery.resourceUrlTemplate):void 0;const fe=(0,i.getRemoteServerRootPath)(x);this._staticRoute=`${fe}/static`,this._callbackRoute=`${fe}/callback`,this._webExtensionRoute="/web-extension-resource"}async handle(ee,L,q){try{const ne=q.pathname;return ne.startsWith(this._staticRoute)&&ne.charCodeAt(this._staticRoute.length)===47?this._handleStatic(ee,L,q):ne==="/"?this._handleRoot(ee,L,q):ne===this._callbackRoute?this._handleCallback(L):ne.startsWith(this._webExtensionRoute)&&ne.charCodeAt(this._webExtensionRoute.length)===47?this._handleWebExtensionResource(ee,L,q):n(ee,L,404,"Not found.")}catch(ne){return this._logService.error(ne),console.error(ne.toString()),n(ee,L,500,"Internal Server Error.")}}async _handleStatic(ee,L,q){const ne=Object.create(null),fe=decodeURIComponent(q.pathname).substring(this._staticRoute.length+1),M=(0,w.join)(r,fe);return(0,y.isEqualOrParent)(M,r,!C.isLinux)?o(M,this._environmentService.isBuilt?2:1,this._logService,ee,L,ne):n(ee,L,400,"Bad request.")}_getResourceURLTemplateAuthority(ee){const L=ee.authority.indexOf(".");return L!==-1?ee.authority.substring(L+1):void 0}async _handleWebExtensionResource(ee,L,q){if(!this._webExtensionResourceUrlTemplate)return n(ee,L,500,"No extension gallery service configured.");const ne=decodeURIComponent(q.pathname),x=(0,w.normalize)(ne.substring(this._webExtensionRoute.length+1)),fe=g.URI.parse(x).with({scheme:this._webExtensionResourceUrlTemplate.scheme,authority:x.substring(0,x.indexOf("/")),path:x.substring(x.indexOf("/")+1)});if(this._getResourceURLTemplateAuthority(this._webExtensionResourceUrlTemplate)!==this._getResourceURLTemplateAuthority(fe))return n(ee,L,403,"Request Forbidden");const M={},B=G=>{const se=ee.headers[G];se&&((0,c.isString)(se)||se[0])?M[G]=(0,c.isString)(se)?se:se[0]:G!==G.toLowerCase()&&B(G.toLowerCase())};B("X-Client-Name"),B("X-Client-Version"),B("X-Machine-Id"),B("X-Client-Commit");const U=await this._requestService.request({type:"GET",url:fe.toString(!0),headers:M},m.CancellationToken.None),z=U.res.statusCode||500;if(z!==200){let G=null;try{G=await(0,v.asTextOrError)(U)}catch{}return n(ee,L,z,G||`Request failed with status ${z}`)}const X=Object.create(null),ue=G=>{const se=U.res.headers[G];se?X[G]=se:G!==G.toLowerCase()&&ue(G.toLowerCase())};ue("Cache-Control"),ue("Content-Type"),L.writeHead(200,X);const de=await(0,u.streamToBuffer)(U.stream);return L.end(de.buffer)}async _handleRoot(ee,L,q){const ne=q.query[E.connectionTokenQueryName];if(typeof ne=="string"){const te=Object.create(null);te["Set-Cookie"]=P.serialize(E.connectionTokenCookieName,ne,{sameSite:"lax",maxAge:60*60*24*7});const Q=Object.create(null);for(const ae in q.query)ae!==E.connectionTokenQueryName&&(Q[ae]=q.query[ae]);const Z=D.format({pathname:"/",query:Q});return te.Location=Z,L.writeHead(302,te),L.end()}const x="remote";if(!x)return n(ee,L,400,"Bad request.");function fe(te){return JSON.stringify(te).replace(/"/g,"&quot;")}let M;this._environmentService.args["enable-smoke-test-driver"]&&(M=!1);const B=te=>te&&g.URI.file(t.resolve(te)).with({scheme:E.Schemas.vscodeRemote,authority:x}),U=E.FileAccess.asFileUri(this._environmentService.isBuilt?"vs/code/browser/workbench/workbench.html":"vs/code/browser/workbench/workbench-dev.html",oe).fsPath,z=!this._environmentService.isBuilt&&this._environmentService.args["github-auth"]?{id:(0,d.generateUuid)(),providerId:"github",accessToken:this._environmentService.args["github-auth"],scopes:[["user:email"],["repo"]]}:void 0,X=(0,e.relativeRoot)((0,e.getOriginalUrl)(ee)),ue=(0,e.relativePath)((0,e.getOriginalUrl)(ee)),de=this._environmentService.args.locale||await(0,f.getLocaleFromConfig)(this._environmentService.argvResource.fsPath),G=await(0,f.getNLSConfiguration)(de,this._environmentService.userDataPath),se={remoteAuthority:x,webviewEndpoint:ue+this._staticRoute+"/out/vs/workbench/contrib/webview/browser/pre",userDataPath:this._environmentService.userDataPath,isEnabledFileDownloads:!this._environmentService.args["disable-file-downloads"],_wrapWebWorkerExtHostInIframe:M,developmentOptions:{enableSmokeTestDriver:this._environmentService.args["enable-smoke-test-driver"]?!0:void 0,logLevel:this._logService.getLevel()},settingsSyncOptions:!this._environmentService.isBuilt&&this._environmentService.args["enable-sync"]?{enabled:!0}:void 0,enableWorkspaceTrust:!this._environmentService.args["disable-workspace-trust"],folderUri:B(this._environmentService.args["default-folder"]),workspaceUri:B(this._environmentService.args["default-workspace"]),productConfiguration:{codeServerVersion:this._productService.codeServerVersion,rootEndpoint:X,updateEndpoint:this._environmentService.args["disable-update-check"]?void 0:X+"/update/check",logoutEndpoint:this._environmentService.args.auth&&this._environmentService.args.auth!=="none"?X+"/logout":void 0,proxyEndpointTemplate:X+"/proxy/{{port}}",serviceWorker:{scope:ue+"/",path:X+"/_static/out/browser/serviceWorker.js"},enableTelemetry:this._productService.enableTelemetry,embedderIdentifier:"server-distro",extensionsGallery:this._productService.extensionsGallery},callbackRoute:this._callbackRoute},O=this._productService.extensionsGallery?.nlsBaseUrl,F={WORKBENCH_WEB_CONFIGURATION:fe(se),WORKBENCH_AUTH_SESSION:z?fe(z):"",WORKBENCH_WEB_BASE_URL:ue+this._staticRoute,WORKBENCH_NLS_BASE_URL:ue+(O?`${O}${O.endsWith("/")?"":"/"}${this._productService.commit}/${this._productService.version}/`:""),BASE:X,VS_BASE:ue,NLS_CONFIGURATION:fe(G)};let K;try{K=(await b.promises.readFile(U)).toString().replace(/\{\{([^}]+)\}\}/g,(Q,Z)=>F[Z]??"undefined")}catch{return L.writeHead(404,{"Content-Type":"text/plain"}),L.end("Not found")}const re=["default-src 'self';","img-src 'self' https: data: blob:;","media-src 'self';",`script-src 'self' 'unsafe-eval' ${this._getScriptCspHashes(K).join(" ")} 'sha256-fh3TwPMflhsEIpR8g1OYTIMVWhXTLcjQ9kh2tIpmv54=';`,"child-src 'self';","frame-src 'self' https://*.vscode-cdn.net data:;","worker-src 'self' data:;","style-src 'self' 'unsafe-inline';","connect-src 'self' ws: wss: https:;","font-src 'self' blob:;","manifest-src 'self';"].join(" "),he={"Content-Type":"text/html","Content-Security-Policy":re};return this._connectionToken.type!==0&&(he["Set-Cookie"]=P.serialize(E.connectionTokenCookieName,this._connectionToken.value,{sameSite:"lax",maxAge:60*60*24*7})),L.writeHead(200,he),L.end(K)}_getScriptCspHashes(ee){const L=/<script>([\s\S]+?)<\/script>/img,q=[];let ne;for(;ne=L.exec(ee);){const x=k.createHash("sha256"),fe=ne[1].replace(/\r\n/g,`
`),M=x.update(Buffer.from(fe)).digest().toString("base64");q.push(`'sha256-${M}'`)}return q}async _handleCallback(ee){const L=E.FileAccess.asFileUri("vs/code/browser/workbench/callback.html",oe).fsPath,q=(await b.promises.readFile(L)).toString(),ne=["default-src 'self';","img-src 'self' https: data: blob:;","media-src 'none';",`script-src 'self' ${this._getScriptCspHashes(q).join(" ")};`,"style-src 'self' 'unsafe-inline';","font-src 'self' blob:;"].join(" ");return ee.writeHead(200,{"Content-Type":"text/html","Content-Security-Policy":ne}),ee.end(q)}};l=_e([Ae(1,R.IServerEnvironmentService),Ae(2,T.ILogService),Ae(3,v.IRequestService),Ae(4,I.IProductService)],l),e.WebClientServer=l;const h=(W,ee=!1)=>W.replace(/\/\/+/g,"/").replace(/\/+$/,ee?"/":"");e.normalizeUrlPath=h;const S=W=>{const ee=(W.split("?",1)[0].match(/\//g)||[]).length;return(0,e.normalizeUrlPath)("./"+(ee>1?"../".repeat(ee-1):""))};e.relativeRoot=S;const A=W=>{const ee=W.split("?",1)[0].split("/");return(0,e.normalizeUrlPath)("./"+ee[ee.length-1])};e.relativePath=A;const $=W=>W.originalUrl||W.url;e.getOriginalUrl=$}),define(ve[243],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostRpcService=e.IExtHostRpcService=void 0,e.IExtHostRpcService=(0,b.createDecorator)("IExtHostRpcService");class t{constructor(P){this.getProxy=P.getProxy.bind(P),this.set=P.set.bind(P),this.dispose=P.dispose.bind(P),this.assertRegistered=P.assertRegistered.bind(P),this.drain=P.drain.bind(P)}}e.ExtHostRpcService=t});var Pt=this&&this.__classPrivateFieldSet||function(oe,e,b,t,D){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!D)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?oe!==e||!D:!e.has(oe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?D.call(oe,b):D?D.value=b:e.set(oe,b),b},tt=this&&this.__classPrivateFieldGet||function(oe,e,b,t){if(b==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?oe!==e||!t:!e.has(oe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return b==="m"?t:b==="a"?t.call(oe):t?t.value:e.get(oe)};define(ve[116],we([0,1,18,11,86,24,66,16,12,4,23,17,105]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w){"use strict";var E,d,I,v,m,g,u,c,f,i,s,n,a,o,r,l,h,S,A,$,W,ee,L;Object.defineProperty(e,"__esModule",{value:!0}),e.InteractiveWindowInput=e.TerminalEditorTabInput=e.NotebookDiffEditorTabInput=e.NotebookEditorTabInput=e.WebviewEditorTabInput=e.CustomEditorTabInput=e.TextMergeTabInput=e.TextDiffTabInput=e.TextTabInput=e.TypeHierarchyItem=e.PortAutoForwardAction=e.WorkspaceTrustState=e.ExternalUriOpenerPriority=e.FunctionCoverage=e.BranchCoverage=e.StatementCoverage=e.FileCoverage=e.CoveredCount=e.TestTag=e.TestMessage=e.TestRunRequest=e.TestRunProfileKind=e.TestResultState=e.PortAttributes=e.LinkedEditingRanges=e.StandardTokenType=e.ExtensionRuntime=e.ExtensionMode=e.TimelineItem=e.NotebookRendererScript=e.NotebookControllerAffinity=e.NotebookCellStatusBarItem=e.NotebookEditorRevealType=e.NotebookCellStatusBarAlignment=e.NotebookCellExecutionState=e.NotebookCellKind=e.NotebookCellOutput=e.NotebookCellOutputItem=e.NotebookData=e.NotebookCellData=e.NotebookRange=e.ColorThemeKind=e.ColorTheme=e.FileDecoration=e.ExtensionKind=e.InputBoxValidationSeverity=e.QuickPickItemKind=e.QuickInputButtons=e.DebugConsoleMode=e.SemanticTokensEdits=e.SemanticTokensEdit=e.SemanticTokens=e.SemanticTokensBuilder=e.SemanticTokensLegend=e.CommentThreadState=e.CommentMode=e.CommentThreadCollapsibleState=e.FoldingRangeKind=e.FoldingRange=e.FileSystemError=e.FileChangeType=e.InlineValueContext=e.InlineValueEvaluatableExpression=e.InlineValueVariableLookup=e.InlineValueText=e.InlineCompletionTriggerKindNew=e.InlineCompletionTriggerKind=e.EvaluatableExpression=e.DebugAdapterInlineImplementation=e.DebugAdapterNamedPipeServer=e.DebugAdapterServer=e.DebugAdapterExecutable=e.DataBreakpoint=e.FunctionBreakpoint=e.SourceBreakpoint=e.Breakpoint=e.RelativePattern=e.ConfigurationTarget=e.ThemeColor=e.ThemeIcon=e.DocumentPasteEdit=e.DocumentDropEdit=e.DataTransfer=e.DataTransferItem=e.TreeItemCollapsibleState=e.TreeItem=e.ProgressLocation=e.Task=e.CustomExecution=e.TaskScope=e.ShellQuoting=e.ShellExecution=e.ProcessExecution=e.TaskGroup=e.TaskPanelKind=e.TaskRevealKind=e.TerminalProfile=e.TerminalLocation=e.TerminalLink=e.TerminalExitReason=e.SourceControlInputBoxValidationType=e.ColorFormat=e.ColorPresentation=e.ColorInformation=e.Color=e.DocumentLink=e.DecorationRangeBehavior=e.TextDocumentChangeReason=e.TextEditorSelectionChangeKind=e.TextEditorRevealType=e.TextDocumentSaveReason=e.TextEditorLineNumbersStyle=e.StatusBarAlignment=e.ViewColumn=e.InlineSuggestionsNew=e.InlineSuggestionNew=e.InlineSuggestionList=e.InlineSuggestion=e.CompletionList=e.CompletionItem=e.CompletionItemTag=e.CompletionItemKind=e.CompletionTriggerKind=e.InlayHint=e.InlayHintLabelPart=e.InlayHintKind=e.SignatureHelpTriggerKind=e.SignatureHelp=e.SignatureInformation=e.ParameterInformation=e.MarkdownString=e.CodeLens=e.LanguageStatusSeverity=e.CallHierarchyOutgoingCall=e.CallHierarchyIncomingCall=e.CallHierarchyItem=e.SelectionRange=e.CodeActionKind=e.CodeAction=e.CodeActionTriggerKind=e.DocumentSymbol=e.SymbolInformation=e.SymbolTag=e.SymbolKind=e.DocumentHighlight=e.DocumentHighlightKind=e.Hover=e.Diagnostic=e.DiagnosticRelatedInformation=e.Location=e.DiagnosticSeverity=e.DiagnosticTag=e.SnippetString=e.WorkspaceEdit=e.FileEditType=e.NotebookEdit=e.TextEdit=e.EnvironmentVariableMutatorType=e.EndOfLine=e.RemoteAuthorityResolverError=e.ResolvedAuthority=e.Selection=e.Range=e.Position=e.Disposable=void 0;function q(N){function _(){return Reflect.construct(N,arguments,this.constructor)}return Object.defineProperty(_,"name",Object.getOwnPropertyDescriptor(N,"name")),Object.setPrototypeOf(_,N),Object.setPrototypeOf(_.prototype,N.prototype),_}let ne=g=class{constructor(_){E.set(this,void 0),Pt(this,E,_,"f")}static from(..._){let J=_;return new g(function(){if(J){for(const Ee of J)Ee&&typeof Ee.dispose=="function"&&Ee.dispose();J=void 0}})}dispose(){typeof tt(this,E,"f")=="function"&&(tt(this,E,"f").call(this),Pt(this,E,void 0,"f"))}};E=new WeakMap,ne=g=_e([q],ne),e.Disposable=ne;let x=u=class{constructor(_,J){if(_<0)throw(0,t.illegalArgument)("line must be non-negative");if(J<0)throw(0,t.illegalArgument)("character must be non-negative");this._line=_,this._character=J}static Min(..._){if(_.length===0)throw new TypeError;let J=_[0];for(let Ee=1;Ee<_.length;Ee++){const ze=_[Ee];ze.isBefore(J)&&(J=ze)}return J}static Max(..._){if(_.length===0)throw new TypeError;let J=_[0];for(let Ee=1;Ee<_.length;Ee++){const ze=_[Ee];ze.isAfter(J)&&(J=ze)}return J}static isPosition(_){if(!_)return!1;if(_ instanceof u)return!0;const{line:J,character:Ee}=_;return typeof J=="number"&&typeof Ee=="number"}static of(_){if(_ instanceof u)return _;if(this.isPosition(_))return new u(_.line,_.character);throw new Error("Invalid argument, is NOT a position-like object")}get line(){return this._line}get character(){return this._character}isBefore(_){return this._line<_._line?!0:_._line<this._line?!1:this._character<_._character}isBeforeOrEqual(_){return this._line<_._line?!0:_._line<this._line?!1:this._character<=_._character}isAfter(_){return!this.isBeforeOrEqual(_)}isAfterOrEqual(_){return!this.isBefore(_)}isEqual(_){return this._line===_._line&&this._character===_._character}compareTo(_){return this._line<_._line?-1:this._line>_.line?1:this._character<_._character?-1:this._character>_._character?1:0}translate(_,J=0){if(_===null||J===null)throw(0,t.illegalArgument)();let Ee;return typeof _=="undefined"?Ee=0:typeof _=="number"?Ee=_:(Ee=typeof _.lineDelta=="number"?_.lineDelta:0,J=typeof _.characterDelta=="number"?_.characterDelta:0),Ee===0&&J===0?this:new u(this.line+Ee,this.character+J)}with(_,J=this.character){if(_===null||J===null)throw(0,t.illegalArgument)();let Ee;return typeof _=="undefined"?Ee=this.line:typeof _=="number"?Ee=_:(Ee=typeof _.line=="number"?_.line:this.line,J=typeof _.character=="number"?_.character:this.character),Ee===this.line&&J===this.character?this:new u(Ee,J)}toJSON(){return{line:this.line,character:this.character}}};x=u=_e([q],x),e.Position=x;let fe=c=class{constructor(_,J,Ee,ze){let qe,Je;if(typeof _=="number"&&typeof J=="number"&&typeof Ee=="number"&&typeof ze=="number"?(qe=new x(_,J),Je=new x(Ee,ze)):x.isPosition(_)&&x.isPosition(J)&&(qe=x.of(_),Je=x.of(J)),!qe||!Je)throw new Error("Invalid arguments");qe.isBefore(Je)?(this._start=qe,this._end=Je):(this._start=Je,this._end=qe)}static isRange(_){return _ instanceof c?!0:_?x.isPosition(_.start)&&x.isPosition(_.end):!1}static of(_){if(_ instanceof c)return _;if(this.isRange(_))return new c(_.start,_.end);throw new Error("Invalid argument, is NOT a range-like object")}get start(){return this._start}get end(){return this._end}contains(_){return c.isRange(_)?this.contains(_.start)&&this.contains(_.end):x.isPosition(_)?!(x.of(_).isBefore(this._start)||this._end.isBefore(_)):!1}isEqual(_){return this._start.isEqual(_._start)&&this._end.isEqual(_._end)}intersection(_){const J=x.Max(_.start,this._start),Ee=x.Min(_.end,this._end);if(!J.isAfter(Ee))return new c(J,Ee)}union(_){if(this.contains(_))return this;if(_.contains(this))return _;const J=x.Min(_.start,this._start),Ee=x.Max(_.end,this.end);return new c(J,Ee)}get isEmpty(){return this._start.isEqual(this._end)}get isSingleLine(){return this._start.line===this._end.line}with(_,J=this.end){if(_===null||J===null)throw(0,t.illegalArgument)();let Ee;return _?x.isPosition(_)?Ee=_:(Ee=_.start||this.start,J=_.end||this.end):Ee=this.start,Ee.isEqual(this._start)&&J.isEqual(this.end)?this:new c(Ee,J)}toJSON(){return[this.start,this.end]}};fe=c=_e([q],fe),e.Range=fe;let M=f=class extends fe{constructor(_,J,Ee,ze){let qe,Je;if(typeof _=="number"&&typeof J=="number"&&typeof Ee=="number"&&typeof ze=="number"?(qe=new x(_,J),Je=new x(Ee,ze)):x.isPosition(_)&&x.isPosition(J)&&(qe=x.of(_),Je=x.of(J)),!qe||!Je)throw new Error("Invalid arguments");super(qe,Je);this._anchor=qe,this._active=Je}static isSelection(_){return _ instanceof f?!0:_?fe.isRange(_)&&x.isPosition(_.anchor)&&x.isPosition(_.active)&&typeof _.isReversed=="boolean":!1}get anchor(){return this._anchor}get active(){return this._active}get isReversed(){return this._anchor===this._end}toJSON(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}}};M=f=_e([q],M),e.Selection=M;class B{constructor(_,J,Ee){if(typeof _!="string"||_.length===0)throw(0,t.illegalArgument)("host");if(typeof J!="number"||J===0||Math.round(J)!==J)throw(0,t.illegalArgument)("port");if(typeof Ee!="undefined"&&(typeof Ee!="string"||Ee.length===0||!/^[0-9A-Za-z\-]+$/.test(Ee)))throw(0,t.illegalArgument)("connectionToken");this.host=_,this.port=Math.round(J),this.connectionToken=Ee}}e.ResolvedAuthority=B;class U extends Error{constructor(_,J=w.RemoteAuthorityResolverErrorCode.Unknown,Ee){super(_);this._message=_,this._code=J,this._detail=Ee,typeof Object.setPrototypeOf=="function"&&Object.setPrototypeOf(this,U.prototype)}static NotAvailable(_,J){return new U(_,w.RemoteAuthorityResolverErrorCode.NotAvailable,J)}static TemporarilyNotAvailable(_){return new U(_,w.RemoteAuthorityResolverErrorCode.TemporarilyNotAvailable)}}e.RemoteAuthorityResolverError=U;var z;(function(N){N[N.LF=1]="LF",N[N.CRLF=2]="CRLF"})(z=e.EndOfLine||(e.EndOfLine={}));var X;(function(N){N[N.Replace=1]="Replace",N[N.Append=2]="Append",N[N.Prepend=3]="Prepend"})(X=e.EnvironmentVariableMutatorType||(e.EnvironmentVariableMutatorType={}));let ue=i=class{constructor(_,J){this._range=_,this._newText=J}static isTextEdit(_){return _ instanceof i?!0:_?fe.isRange(_)&&typeof _.newText=="string":!1}static replace(_,J){return new i(_,J)}static insert(_,J){return i.replace(new fe(_,_),J)}static delete(_){return i.replace(_,"")}static setEndOfLine(_){const J=new i(new fe(new x(0,0),new x(0,0)),"");return J.newEol=_,J}get range(){return this._range}set range(_){if(_&&!fe.isRange(_))throw(0,t.illegalArgument)("range");this._range=_}get newText(){return this._newText||""}set newText(_){if(_&&typeof _!="string")throw(0,t.illegalArgument)("newText");this._newText=_}get newEol(){return this._newEol}set newEol(_){if(_&&typeof _!="number")throw(0,t.illegalArgument)("newEol");this._newEol=_}toJSON(){return{range:this.range,newText:this.newText,newEol:this._newEol}}};ue=i=_e([q],ue),e.TextEdit=ue;let de=s=class{constructor(_,J){this.range=_,this.newCells=J}static isNotebookCellEdit(_){return _ instanceof s?!0:_?It.isNotebookRange(_)&&Array.isArray(_.newCells):!1}static replaceCells(_,J){return new s(_,J)}static insertCells(_,J){return new s(new It(_,_),J)}static deleteCells(_){return new s(_,[])}static updateCellMetadata(_,J){const Ee=new s(new It(_,_),[]);return Ee.newCellMetadata=J,Ee}static updateNotebookMetadata(_){const J=new s(new It(0,0),[]);return J.newNotebookMetadata=_,J}};de=s=_e([q],de),e.NotebookEdit=de;var G;(function(N){N[N.File=1]="File",N[N.Text=2]="Text",N[N.Cell=3]="Cell",N[N.CellReplace=5]="CellReplace",N[N.Snippet=6]="Snippet"})(G=e.FileEditType||(e.FileEditType={}));let se=class{constructor(){this._edits=[]}_allEntries(){return this._edits}renameFile(_,J,Ee,ze){this._edits.push({_type:1,from:_,to:J,options:Ee,metadata:ze})}createFile(_,J,Ee){this._edits.push({_type:1,from:void 0,to:_,options:J,metadata:Ee})}deleteFile(_,J,Ee){this._edits.push({_type:1,from:_,to:void 0,options:J,metadata:Ee})}replaceNotebookMetadata(_,J,Ee){this._edits.push({_type:3,metadata:Ee,uri:_,edit:{editType:5,metadata:J},notebookMetadata:J})}replaceNotebookCells(_,J,Ee,ze,qe){let Je,et,ot=[],ct;if(It.isNotebookRange(J)&&_t.isNotebookCellDataArray(Ee)&&!_t.isNotebookCellDataArray(ze)?(Je=J.start,et=J.end,ot=Ee,ct=ze):typeof J=="number"&&typeof Ee=="number"&&_t.isNotebookCellDataArray(ze)&&(Je=J,et=Ee,ot=ze,ct=qe),Je===void 0||et===void 0)throw new Error("Invalid arguments");(Je!==et||ot.length>0)&&this._edits.push({_type:5,uri:_,index:Je,count:et-Je,cells:ot,metadata:ct})}replaceNotebookCellMetadata(_,J,Ee,ze){this._edits.push({_type:3,metadata:ze,uri:_,edit:{editType:8,index:J,metadata:Ee}})}replace(_,J,Ee,ze){typeof Ee=="string"?this._edits.push({_type:2,uri:_,edit:new ue(J,Ee),metadata:ze}):this._edits.push({_type:6,uri:_,range:J,edit:Ee,metadata:ze})}insert(_,J,Ee,ze){this.replace(_,new fe(J,J),Ee,ze)}delete(_,J,Ee){this.replace(_,J,"",Ee)}has(_){return this._edits.some(J=>J._type===2&&J.uri.toString()===_.toString())}set(_,J){if(J)for(const Ee of J)Ee&&(de.isNotebookCellEdit(Ee)?Ee.newCellMetadata?this.replaceNotebookCellMetadata(_,Ee.range.start,Ee.newCellMetadata):Ee.newNotebookMetadata?this.replaceNotebookMetadata(_,Ee.newNotebookMetadata):this.replaceNotebookCells(_,Ee.range,Ee.newCells):this._edits.push({_type:2,uri:_,edit:Ee}));else{for(let Ee=0;Ee<this._edits.length;Ee++){const ze=this._edits[Ee];ze._type===2&&ze.uri.toString()===_.toString()&&(this._edits[Ee]=void 0)}(0,b.coalesceInPlace)(this._edits)}}get(_){const J=[];for(const Ee of this._edits)Ee._type===2&&Ee.uri.toString()===_.toString()&&J.push(Ee.edit);return J}entries(){const _=new P.ResourceMap;for(const J of this._edits)if(J._type===2){let Ee=_.get(J.uri);Ee||(Ee=[J.uri,[]],_.set(J.uri,Ee)),Ee[1].push(J.edit)}return[..._.values()]}get size(){return this.entries().length}toJSON(){return this.entries()}};se=_e([q],se),e.WorkspaceEdit=se;let O=n=class{constructor(_){this._tabstop=1,this.value=_||""}static isSnippetString(_){return _ instanceof n?!0:_?typeof _.value=="string":!1}static _escape(_){return _.replace(/\$|}|\\/g,"\\$&")}appendText(_){return this.value+=n._escape(_),this}appendTabstop(_=this._tabstop++){return this.value+="$",this.value+=_,this}appendPlaceholder(_,J=this._tabstop++){if(typeof _=="function"){const Ee=new n;Ee._tabstop=this._tabstop,_(Ee),this._tabstop=Ee._tabstop,_=Ee.value}else _=n._escape(_);return this.value+="${",this.value+=J,this.value+=":",this.value+=_,this.value+="}",this}appendChoice(_,J=this._tabstop++){const Ee=_.map(ze=>ze.replace(/\$|}|\\|,/g,"\\$&")).join(",");return this.value+="${",this.value+=J,this.value+="|",this.value+=Ee,this.value+="|}",this}appendVariable(_,J){if(typeof J=="function"){const Ee=new n;Ee._tabstop=this._tabstop,J(Ee),this._tabstop=Ee._tabstop,J=Ee.value}else typeof J=="string"&&(J=J.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=_,J&&(this.value+=":",this.value+=J),this.value+="}",this}};O=n=_e([q],O),e.SnippetString=O;var F;(function(N){N[N.Unnecessary=1]="Unnecessary",N[N.Deprecated=2]="Deprecated"})(F=e.DiagnosticTag||(e.DiagnosticTag={}));var K;(function(N){N[N.Hint=3]="Hint",N[N.Information=2]="Information",N[N.Warning=1]="Warning",N[N.Error=0]="Error"})(K=e.DiagnosticSeverity||(e.DiagnosticSeverity={}));let re=a=class{constructor(_,J){if(this.uri=_,J)if(fe.isRange(J))this.range=fe.of(J);else if(x.isPosition(J))this.range=new fe(J,J);else throw new Error("Illegal argument")}static isLocation(_){return _ instanceof a?!0:_?fe.isRange(_.range)&&C.URI.isUri(_.uri):!1}toJSON(){return{uri:this.uri,range:this.range}}};re=a=_e([q],re),e.Location=re;let he=class{constructor(_,J){this.location=_,this.message=J}static is(_){return _?typeof _.message=="string"&&_.location&&fe.isRange(_.location.range)&&C.URI.isUri(_.location.uri):!1}static isEqual(_,J){return _===J?!0:!_||!J?!1:_.message===J.message&&_.location.range.isEqual(J.location.range)&&_.location.uri.toString()===J.location.uri.toString()}};he=_e([q],he),e.DiagnosticRelatedInformation=he;let te=class{constructor(_,J,Ee=K.Error){if(!fe.isRange(_))throw new TypeError("range must be set");if(!J)throw new TypeError("message must be set");this.range=_,this.message=J,this.severity=Ee}toJSON(){return{severity:K[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}}static isEqual(_,J){return _===J?!0:!_||!J?!1:_.message===J.message&&_.severity===J.severity&&_.code===J.code&&_.severity===J.severity&&_.source===J.source&&_.range.isEqual(J.range)&&(0,b.equals)(_.tags,J.tags)&&(0,b.equals)(_.relatedInformation,J.relatedInformation,he.isEqual)}};te=_e([q],te),e.Diagnostic=te;let Q=class{constructor(_,J){if(!_)throw new Error("Illegal argument, contents must be defined");Array.isArray(_)?this.contents=_:this.contents=[_],this.range=J}};Q=_e([q],Q),e.Hover=Q;var Z;(function(N){N[N.Text=0]="Text",N[N.Read=1]="Read",N[N.Write=2]="Write"})(Z=e.DocumentHighlightKind||(e.DocumentHighlightKind={}));let ae=class{constructor(_,J=Z.Text){this.range=_,this.kind=J}toJSON(){return{range:this.range,kind:Z[this.kind]}}};ae=_e([q],ae),e.DocumentHighlight=ae;var j;(function(N){N[N.File=0]="File",N[N.Module=1]="Module",N[N.Namespace=2]="Namespace",N[N.Package=3]="Package",N[N.Class=4]="Class",N[N.Method=5]="Method",N[N.Property=6]="Property",N[N.Field=7]="Field",N[N.Constructor=8]="Constructor",N[N.Enum=9]="Enum",N[N.Interface=10]="Interface",N[N.Function=11]="Function",N[N.Variable=12]="Variable",N[N.Constant=13]="Constant",N[N.String=14]="String",N[N.Number=15]="Number",N[N.Boolean=16]="Boolean",N[N.Array=17]="Array",N[N.Object=18]="Object",N[N.Key=19]="Key",N[N.Null=20]="Null",N[N.EnumMember=21]="EnumMember",N[N.Struct=22]="Struct",N[N.Event=23]="Event",N[N.Operator=24]="Operator",N[N.TypeParameter=25]="TypeParameter"})(j=e.SymbolKind||(e.SymbolKind={}));var ie;(function(N){N[N.Deprecated=1]="Deprecated"})(ie=e.SymbolTag||(e.SymbolTag={}));let H=o=class{constructor(_,J,Ee,ze,qe){this.name=_,this.kind=J,this.containerName=qe,typeof Ee=="string"&&(this.containerName=Ee),ze instanceof re?this.location=ze:Ee instanceof fe&&(this.location=new re(ze,Ee)),o.validate(this)}static validate(_){if(!_.name)throw new Error("name must not be falsy")}toJSON(){return{name:this.name,kind:j[this.kind],location:this.location,containerName:this.containerName}}};H=o=_e([q],H),e.SymbolInformation=H;let Y=r=class{constructor(_,J,Ee,ze,qe){this.name=_,this.detail=J,this.kind=Ee,this.range=ze,this.selectionRange=qe,this.children=[],r.validate(this)}static validate(_){if(!_.name)throw new Error("name must not be falsy");if(!_.range.contains(_.selectionRange))throw new Error("selectionRange must be contained in fullRange");_.children?.forEach(r.validate)}};Y=r=_e([q],Y),e.DocumentSymbol=Y;var le;(function(N){N[N.Invoke=1]="Invoke",N[N.Automatic=2]="Automatic"})(le=e.CodeActionTriggerKind||(e.CodeActionTriggerKind={}));let pe=class{constructor(_,J){this.title=_,this.kind=J}};pe=_e([q],pe),e.CodeAction=pe;let Pe=l=class{constructor(_){this.value=_}append(_){return new l(this.value?this.value+l.sep+_:_)}intersects(_){return this.contains(_)||_.contains(this)}contains(_){return this.value===_.value||_.value.startsWith(this.value+l.sep)}};Pe.sep=".",Pe=l=_e([q],Pe),e.CodeActionKind=Pe,Pe.Empty=new Pe(""),Pe.QuickFix=Pe.Empty.append("quickfix"),Pe.Refactor=Pe.Empty.append("refactor"),Pe.RefactorExtract=Pe.Refactor.append("extract"),Pe.RefactorInline=Pe.Refactor.append("inline"),Pe.RefactorRewrite=Pe.Refactor.append("rewrite"),Pe.Source=Pe.Empty.append("source"),Pe.SourceOrganizeImports=Pe.Source.append("organizeImports"),Pe.SourceFixAll=Pe.Source.append("fixAll");let Te=class{constructor(_,J){if(this.range=_,this.parent=J,J&&!J.range.contains(this.range))throw new Error("Invalid argument: parent must contain this range")}};Te=_e([q],Te),e.SelectionRange=Te;class Ne{constructor(_,J,Ee,ze,qe,Je){this.kind=_,this.name=J,this.detail=Ee,this.uri=ze,this.range=qe,this.selectionRange=Je}}e.CallHierarchyItem=Ne;class Ue{constructor(_,J){this.fromRanges=J,this.from=_}}e.CallHierarchyIncomingCall=Ue;class ge{constructor(_,J){this.fromRanges=J,this.to=_}}e.CallHierarchyOutgoingCall=ge;var be;(function(N){N[N.Information=0]="Information",N[N.Warning=1]="Warning",N[N.Error=2]="Error"})(be=e.LanguageStatusSeverity||(e.LanguageStatusSeverity={}));let ye=class{constructor(_,J){this.range=_,this.command=J}get isResolved(){return!!this.command}};ye=_e([q],ye),e.CodeLens=ye;let Fe=h=class{constructor(_,J=!1){d.set(this,void 0),Pt(this,d,new D.MarkdownString(_,{supportThemeIcons:J}),"f")}static isMarkdownString(_){return _ instanceof h?!0:_&&_.appendCodeblock&&_.appendMarkdown&&_.appendText&&_.value!==void 0}get value(){return tt(this,d,"f").value}set value(_){tt(this,d,"f").value=_}get isTrusted(){return tt(this,d,"f").isTrusted}set isTrusted(_){tt(this,d,"f").isTrusted=_}get supportThemeIcons(){return tt(this,d,"f").supportThemeIcons}set supportThemeIcons(_){tt(this,d,"f").supportThemeIcons=_}get supportHtml(){return tt(this,d,"f").supportHtml}set supportHtml(_){tt(this,d,"f").supportHtml=_}get baseUri(){return tt(this,d,"f").baseUri}set baseUri(_){tt(this,d,"f").baseUri=_}appendText(_){return tt(this,d,"f").appendText(_),this}appendMarkdown(_){return tt(this,d,"f").appendMarkdown(_),this}appendCodeblock(_,J){return tt(this,d,"f").appendCodeblock(J??"",_),this}};d=new WeakMap,Fe=h=_e([q],Fe),e.MarkdownString=Fe;let Me=class{constructor(_,J){this.label=_,this.documentation=J}};Me=_e([q],Me),e.ParameterInformation=Me;let Qe=class{constructor(_,J){this.label=_,this.documentation=J,this.parameters=[]}};Qe=_e([q],Qe),e.SignatureInformation=Qe;let $e=class{constructor(){this.activeSignature=0,this.activeParameter=0,this.signatures=[]}};$e=_e([q],$e),e.SignatureHelp=$e;var Ze;(function(N){N[N.Invoke=1]="Invoke",N[N.TriggerCharacter=2]="TriggerCharacter",N[N.ContentChange=3]="ContentChange"})(Ze=e.SignatureHelpTriggerKind||(e.SignatureHelpTriggerKind={}));var xe;(function(N){N[N.Type=1]="Type",N[N.Parameter=2]="Parameter"})(xe=e.InlayHintKind||(e.InlayHintKind={}));let je=class{constructor(_){this.value=_}};je=_e([q],je),e.InlayHintLabelPart=je;let We=class{constructor(_,J,Ee){this.position=_,this.label=J,this.kind=Ee}};We=_e([q],We),e.InlayHint=We;var ce;(function(N){N[N.Invoke=0]="Invoke",N[N.TriggerCharacter=1]="TriggerCharacter",N[N.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(ce=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var Ce;(function(N){N[N.Text=0]="Text",N[N.Method=1]="Method",N[N.Function=2]="Function",N[N.Constructor=3]="Constructor",N[N.Field=4]="Field",N[N.Variable=5]="Variable",N[N.Class=6]="Class",N[N.Interface=7]="Interface",N[N.Module=8]="Module",N[N.Property=9]="Property",N[N.Unit=10]="Unit",N[N.Value=11]="Value",N[N.Enum=12]="Enum",N[N.Keyword=13]="Keyword",N[N.Snippet=14]="Snippet",N[N.Color=15]="Color",N[N.File=16]="File",N[N.Reference=17]="Reference",N[N.Folder=18]="Folder",N[N.EnumMember=19]="EnumMember",N[N.Constant=20]="Constant",N[N.Struct=21]="Struct",N[N.Event=22]="Event",N[N.Operator=23]="Operator",N[N.TypeParameter=24]="TypeParameter",N[N.User=25]="User",N[N.Issue=26]="Issue"})(Ce=e.CompletionItemKind||(e.CompletionItemKind={}));var ke;(function(N){N[N.Deprecated=1]="Deprecated"})(ke=e.CompletionItemTag||(e.CompletionItemTag={}));let Oe=class{constructor(_,J){this.label=_,this.kind=J}toJSON(){return{label:this.label,kind:this.kind&&Ce[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}}};Oe=_e([q],Oe),e.CompletionItem=Oe;let Re=class{constructor(_=[],J=!1){this.items=_,this.isIncomplete=J}};Re=_e([q],Re),e.CompletionList=Re;let Be=class{constructor(_,J,Ee){this.insertText=_,this.range=J,this.command=Ee}};Be=_e([q],Be),e.InlineSuggestion=Be;let He=class{constructor(_){this.commands=void 0,this.items=_}};He=_e([q],He),e.InlineSuggestionList=He;let Ye=class{constructor(_,J,Ee){this.insertText=_,this.range=J,this.command=Ee}};Ye=_e([q],Ye),e.InlineSuggestionNew=Ye;let Xe=class{constructor(_,J){this.items=_,this.commands=J}};Xe=_e([q],Xe),e.InlineSuggestionsNew=Xe;var nt;(function(N){N[N.Active=-1]="Active",N[N.Beside=-2]="Beside",N[N.One=1]="One",N[N.Two=2]="Two",N[N.Three=3]="Three",N[N.Four=4]="Four",N[N.Five=5]="Five",N[N.Six=6]="Six",N[N.Seven=7]="Seven",N[N.Eight=8]="Eight",N[N.Nine=9]="Nine"})(nt=e.ViewColumn||(e.ViewColumn={}));var it;(function(N){N[N.Left=1]="Left",N[N.Right=2]="Right"})(it=e.StatusBarAlignment||(e.StatusBarAlignment={}));var rt;(function(N){N[N.Off=0]="Off",N[N.On=1]="On",N[N.Relative=2]="Relative"})(rt=e.TextEditorLineNumbersStyle||(e.TextEditorLineNumbersStyle={}));var ft;(function(N){N[N.Manual=1]="Manual",N[N.AfterDelay=2]="AfterDelay",N[N.FocusOut=3]="FocusOut"})(ft=e.TextDocumentSaveReason||(e.TextDocumentSaveReason={}));var ut;(function(N){N[N.Default=0]="Default",N[N.InCenter=1]="InCenter",N[N.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",N[N.AtTop=3]="AtTop"})(ut=e.TextEditorRevealType||(e.TextEditorRevealType={}));var kt;(function(N){N[N.Keyboard=1]="Keyboard",N[N.Mouse=2]="Mouse",N[N.Command=3]="Command"})(kt=e.TextEditorSelectionChangeKind||(e.TextEditorSelectionChangeKind={}));var yt;(function(N){N[N.Undo=1]="Undo",N[N.Redo=2]="Redo"})(yt=e.TextDocumentChangeReason||(e.TextDocumentChangeReason={}));var At;(function(N){N[N.OpenOpen=0]="OpenOpen",N[N.ClosedClosed=1]="ClosedClosed",N[N.OpenClosed=2]="OpenClosed",N[N.ClosedOpen=3]="ClosedOpen"})(At=e.DecorationRangeBehavior||(e.DecorationRangeBehavior={})),function(N){function _(J){switch(J){case"keyboard":return N.Keyboard;case"mouse":return N.Mouse;case"api":return N.Command}}N.fromValue=_}(kt=e.TextEditorSelectionChangeKind||(e.TextEditorSelectionChangeKind={}));let ht=class{constructor(_,J){if(J&&!C.URI.isUri(J))throw(0,t.illegalArgument)("target");if(!fe.isRange(_)||_.isEmpty)throw(0,t.illegalArgument)("range");this.range=_,this.target=J}};ht=_e([q],ht),e.DocumentLink=ht;let Et=class{constructor(_,J,Ee,ze){this.red=_,this.green=J,this.blue=Ee,this.alpha=ze}};Et=_e([q],Et),e.Color=Et;let Tt=class{constructor(_,J){if(J&&!(J instanceof Et))throw(0,t.illegalArgument)("color");if(!fe.isRange(_)||_.isEmpty)throw(0,t.illegalArgument)("range");this.range=_,this.color=J}};Tt=_e([q],Tt),e.ColorInformation=Tt;let st=class{constructor(_){if(!_||typeof _!="string")throw(0,t.illegalArgument)("label");this.label=_}};st=_e([q],st),e.ColorPresentation=st;var St;(function(N){N[N.RGB=0]="RGB",N[N.HEX=1]="HEX",N[N.HSL=2]="HSL"})(St=e.ColorFormat||(e.ColorFormat={}));var dt;(function(N){N[N.Error=0]="Error",N[N.Warning=1]="Warning",N[N.Information=2]="Information"})(dt=e.SourceControlInputBoxValidationType||(e.SourceControlInputBoxValidationType={}));var mt;(function(N){N[N.Unknown=0]="Unknown",N[N.Shutdown=1]="Shutdown",N[N.Process=2]="Process",N[N.User=3]="User",N[N.Extension=4]="Extension"})(mt=e.TerminalExitReason||(e.TerminalExitReason={}));class Se{constructor(_,J,Ee){if(this.startIndex=_,this.length=J,this.tooltip=Ee,typeof _!="number"||_<0)throw(0,t.illegalArgument)("startIndex");if(typeof J!="number"||J<1)throw(0,t.illegalArgument)("length");if(Ee!==void 0&&typeof Ee!="string")throw(0,t.illegalArgument)("tooltip")}}e.TerminalLink=Se;var Ie;(function(N){N[N.Panel=1]="Panel",N[N.Editor=2]="Editor"})(Ie=e.TerminalLocation||(e.TerminalLocation={}));class me{constructor(_){if(this.options=_,typeof _!="object")throw(0,t.illegalArgument)("options")}}e.TerminalProfile=me;var V;(function(N){N[N.Always=1]="Always",N[N.Silent=2]="Silent",N[N.Never=3]="Never"})(V=e.TaskRevealKind||(e.TaskRevealKind={}));var De;(function(N){N[N.Shared=1]="Shared",N[N.Dedicated=2]="Dedicated",N[N.New=3]="New"})(De=e.TaskPanelKind||(e.TaskPanelKind={}));let Le=S=class{constructor(_,J){if(this.label=J,typeof _!="string"||typeof J!="string")throw(0,t.illegalArgument)("name");this._id=_}static from(_){switch(_){case"clean":return S.Clean;case"build":return S.Build;case"rebuild":return S.Rebuild;case"test":return S.Test;default:return}}get id(){return this._id}};Le.Clean=new S("clean","Clean"),Le.Build=new S("build","Build"),Le.Rebuild=new S("rebuild","Rebuild"),Le.Test=new S("test","Test"),Le=S=_e([q],Le),e.TaskGroup=Le;function Ke(N){let _="";for(let J=0;J<N.length;J++)_+=N[J].replace(/,/g,",,")+",";return _}let Ge=class{constructor(_,J,Ee){if(typeof _!="string")throw(0,t.illegalArgument)("process");this._args=[],this._process=_,J!==void 0&&(Array.isArray(J)?(this._args=J,this._options=Ee):this._options=J)}get process(){return this._process}set process(_){if(typeof _!="string")throw(0,t.illegalArgument)("process");this._process=_}get args(){return this._args}set args(_){Array.isArray(_)||(_=[]),this._args=_}get options(){return this._options}set options(_){this._options=_}computeId(){const _=[];if(_.push("process"),this._process!==void 0&&_.push(this._process),this._args&&this._args.length>0)for(const J of this._args)_.push(J);return Ke(_)}};Ge=_e([q],Ge),e.ProcessExecution=Ge;let Ve=class{constructor(_,J,Ee){if(this._args=[],Array.isArray(J)){if(!_)throw(0,t.illegalArgument)("command can't be undefined or null");if(typeof _!="string"&&typeof _.value!="string")throw(0,t.illegalArgument)("command");this._command=_,this._args=J,this._options=Ee}else{if(typeof _!="string")throw(0,t.illegalArgument)("commandLine");this._commandLine=_,this._options=J}}get commandLine(){return this._commandLine}set commandLine(_){if(typeof _!="string")throw(0,t.illegalArgument)("commandLine");this._commandLine=_}get command(){return this._command?this._command:""}set command(_){if(typeof _!="string"&&typeof _.value!="string")throw(0,t.illegalArgument)("command");this._command=_}get args(){return this._args}set args(_){this._args=_||[]}get options(){return this._options}set options(_){this._options=_}computeId(){const _=[];if(_.push("shell"),this._commandLine!==void 0&&_.push(this._commandLine),this._command!==void 0&&_.push(typeof this._command=="string"?this._command:this._command.value),this._args&&this._args.length>0)for(const J of this._args)_.push(typeof J=="string"?J:J.value);return Ke(_)}};Ve=_e([q],Ve),e.ShellExecution=Ve;var lt;(function(N){N[N.Escape=1]="Escape",N[N.Strong=2]="Strong",N[N.Weak=3]="Weak"})(lt=e.ShellQuoting||(e.ShellQuoting={}));var bt;(function(N){N[N.Global=1]="Global",N[N.Workspace=2]="Workspace"})(bt=e.TaskScope||(e.TaskScope={}));class vt{constructor(_){this._callback=_}computeId(){return"customExecution"+(0,T.generateUuid)()}set callback(_){this._callback=_}get callback(){return this._callback}}e.CustomExecution=vt;let at=A=class{constructor(_,J,Ee,ze,qe,Je){this.__deprecated=!1,this._definition=this.definition=_;let et;typeof J=="string"?(this._name=this.name=J,this._source=this.source=Ee,this.execution=ze,et=qe,this.__deprecated=!0):J===bt.Global||J===bt.Workspace?(this.target=J,this._name=this.name=Ee,this._source=this.source=ze,this.execution=qe,et=Je):(this.target=J,this._name=this.name=Ee,this._source=this.source=ze,this.execution=qe,et=Je),typeof et=="string"?(this._problemMatchers=[et],this._hasDefinedMatchers=!0):Array.isArray(et)?(this._problemMatchers=et,this._hasDefinedMatchers=!0):(this._problemMatchers=[],this._hasDefinedMatchers=!1),this._isBackground=!1,this._presentationOptions=Object.create(null),this._runOptions=Object.create(null)}get _id(){return this.__id}set _id(_){this.__id=_}get _deprecated(){return this.__deprecated}clear(){this.__id!==void 0&&(this.__id=void 0,this._scope=void 0,this.computeDefinitionBasedOnExecution())}computeDefinitionBasedOnExecution(){this._execution instanceof Ge?this._definition={type:A.ProcessType,id:this._execution.computeId()}:this._execution instanceof Ve?this._definition={type:A.ShellType,id:this._execution.computeId()}:this._execution instanceof vt?this._definition={type:A.ExtensionCallbackType,id:this._execution.computeId()}:this._definition={type:A.EmptyType,id:(0,T.generateUuid)()}}get definition(){return this._definition}set definition(_){if(_==null)throw(0,t.illegalArgument)("Kind can't be undefined or null");this.clear(),this._definition=_}get scope(){return this._scope}set target(_){this.clear(),this._scope=_}get name(){return this._name}set name(_){if(typeof _!="string")throw(0,t.illegalArgument)("name");this.clear(),this._name=_}get execution(){return this._execution}set execution(_){_===null&&(_=void 0),this.clear(),this._execution=_;const J=this._definition.type;(A.EmptyType===J||A.ProcessType===J||A.ShellType===J||A.ExtensionCallbackType===J)&&this.computeDefinitionBasedOnExecution()}get problemMatchers(){return this._problemMatchers}set problemMatchers(_){if(Array.isArray(_))this.clear(),this._problemMatchers=_,this._hasDefinedMatchers=!0;else{this.clear(),this._problemMatchers=[],this._hasDefinedMatchers=!1;return}}get hasDefinedMatchers(){return this._hasDefinedMatchers}get isBackground(){return this._isBackground}set isBackground(_){_!==!0&&_!==!1&&(_=!1),this.clear(),this._isBackground=_}get source(){return this._source}set source(_){if(typeof _!="string"||_.length===0)throw(0,t.illegalArgument)("source must be a string of length > 0");this.clear(),this._source=_}get group(){return this._group}set group(_){_===null&&(_=void 0),this.clear(),this._group=_}get detail(){return this._detail}set detail(_){_===null&&(_=void 0),this._detail=_}get presentationOptions(){return this._presentationOptions}set presentationOptions(_){_==null&&(_=Object.create(null)),this.clear(),this._presentationOptions=_}get runOptions(){return this._runOptions}set runOptions(_){_==null&&(_=Object.create(null)),this.clear(),this._runOptions=_}};at.ExtensionCallbackType="customExecution",at.ProcessType="process",at.ShellType="shell",at.EmptyType="$empty",at=A=_e([q],at),e.Task=at;var Ct;(function(N){N[N.SourceControl=1]="SourceControl",N[N.Window=10]="Window",N[N.Notification=15]="Notification"})(Ct=e.ProgressLocation||(e.ProgressLocation={}));let $t=$=class{constructor(_,J=Mt.None){this.collapsibleState=J,C.URI.isUri(_)?this.resourceUri=_:this.label=_}static isTreeItem(_){if(_ instanceof $)return!0;const J=_;if(J.label!==void 0&&!(0,p.isString)(J.label)&&!J.label.label)return console.log("INVALID tree item, invalid label",J.label),!1;if(J.id!==void 0&&!(0,p.isString)(J.id))return console.log("INVALID tree item, invalid id",J.id),!1;if(J.iconPath!==void 0&&!(0,p.isString)(J.iconPath)&&!C.URI.isUri(J.iconPath)&&!(0,p.isString)(J.iconPath.id)){const Ee=J.iconPath;if(!(0,p.isString)(Ee.light)&&!C.URI.isUri(Ee.light)&&!(0,p.isString)(Ee.dark)&&!C.URI.isUri(Ee.dark))return console.log("INVALID tree item, invalid iconPath",J.iconPath),!1}return J.description!==void 0&&!(0,p.isString)(J.description)&&typeof J.description!="boolean"?(console.log("INVALID tree item, invalid description",J.description),!1):J.resourceUri!==void 0&&!C.URI.isUri(J.resourceUri)?(console.log("INVALID tree item, invalid resourceUri",J.resourceUri),!1):J.tooltip!==void 0&&!(0,p.isString)(J.tooltip)&&!(J.tooltip instanceof Fe)?(console.log("INVALID tree item, invalid tooltip",J.tooltip),!1):J.command!==void 0&&!J.command.command?(console.log("INVALID tree item, invalid command",J.command),!1):J.collapsibleState!==void 0&&J.collapsibleState<Mt.None&&J.collapsibleState>Mt.Expanded?(console.log("INVALID tree item, invalid collapsibleState",J.collapsibleState),!1):J.contextValue!==void 0&&!(0,p.isString)(J.contextValue)?(console.log("INVALID tree item, invalid contextValue",J.contextValue),!1):J.accessibilityInformation!==void 0&&!J.accessibilityInformation.label?(console.log("INVALID tree item, invalid accessibilityInformation",J.accessibilityInformation),!1):!0}};$t=$=_e([q],$t),e.TreeItem=$t;var Mt;(function(N){N[N.None=0]="None",N[N.Collapsed=1]="Collapsed",N[N.Expanded=2]="Expanded"})(Mt=e.TreeItemCollapsibleState||(e.TreeItemCollapsibleState={}));let Wt=class{constructor(_){this.value=_}async asString(){return typeof this.value=="string"?this.value:JSON.stringify(this.value)}asFile(){}};Wt=_e([q],Wt),e.DataTransferItem=Wt;let Ht=class{constructor(_){I.set(this,new Map);for(const[J,Ee]of _??[]){const ze=tt(this,I,"f").get(J);ze?ze.push(Ee):tt(this,I,"f").set(J,[Ee])}}get(_){return tt(this,I,"f").get(_)?.[0]}set(_,J){tt(this,I,"f").set(_,[J])}forEach(_,J){for(const[Ee,ze]of tt(this,I,"f"))for(const qe of ze)_.call(J,qe,Ee,this)}*[(I=new WeakMap,Symbol.iterator)](){for(const[_,J]of tt(this,I,"f"))for(const Ee of J)yield[_,Ee]}};Ht=_e([q],Ht),e.DataTransfer=Ht;let jt=class{constructor(_){this.insertText=_}};jt=_e([q],jt),e.DocumentDropEdit=jt;let Vt=class{constructor(_){this.insertText=_}};Vt=_e([q],Vt),e.DocumentPasteEdit=Vt;let Rt=class{constructor(_,J){this.id=_,this.color=J}};Rt=_e([q],Rt),e.ThemeIcon=Rt,Rt.File=new Rt("file"),Rt.Folder=new Rt("folder");let qt=class{constructor(_){this.id=_}};qt=_e([q],qt),e.ThemeColor=qt;var En;(function(N){N[N.Global=1]="Global",N[N.Workspace=2]="Workspace",N[N.WorkspaceFolder=3]="WorkspaceFolder"})(En=e.ConfigurationTarget||(e.ConfigurationTarget={}));let xt=class{constructor(_,J){if(typeof _!="string"&&(!_||!C.URI.isUri(_)&&!C.URI.isUri(_.uri)))throw(0,t.illegalArgument)("base");if(typeof J!="string")throw(0,t.illegalArgument)("pattern");typeof _=="string"?this.baseUri=C.URI.file(_):C.URI.isUri(_)?this.baseUri=_:this.baseUri=_.uri,this.pattern=J}get base(){return this._base}set base(_){this._base=_,this._baseUri=C.URI.file(_)}get baseUri(){return this._baseUri}set baseUri(_){this._baseUri=_,this._base=_.fsPath}toJSON(){return{pattern:this.pattern,base:this.base,baseUri:this.baseUri.toJSON()}}};xt=_e([q],xt),e.RelativePattern=xt;let Lt=class{constructor(_,J,Ee,ze){this.enabled=typeof _=="boolean"?_:!0,typeof J=="string"&&(this.condition=J),typeof Ee=="string"&&(this.hitCondition=Ee),typeof ze=="string"&&(this.logMessage=ze)}get id(){return this._id||(this._id=(0,T.generateUuid)()),this._id}};Lt=_e([q],Lt),e.Breakpoint=Lt;let Gt=class extends Lt{constructor(_,J,Ee,ze,qe){super(J,Ee,ze,qe);if(_===null)throw(0,t.illegalArgument)("location");this.location=_}};Gt=_e([q],Gt),e.SourceBreakpoint=Gt;let Kt=class extends Lt{constructor(_,J,Ee,ze,qe){super(J,Ee,ze,qe);this.functionName=_}};Kt=_e([q],Kt),e.FunctionBreakpoint=Kt;let Qt=class extends Lt{constructor(_,J,Ee,ze,qe,Je,et){super(ze,qe,Je,et);if(!J)throw(0,t.illegalArgument)("dataId");this.label=_,this.dataId=J,this.canPersist=Ee}};Qt=_e([q],Qt),e.DataBreakpoint=Qt;let Yt=class{constructor(_,J,Ee){this.command=_,this.args=J||[],this.options=Ee}};Yt=_e([q],Yt),e.DebugAdapterExecutable=Yt;let Xt=class{constructor(_,J){this.port=_,this.host=J}};Xt=_e([q],Xt),e.DebugAdapterServer=Xt;let Jt=class{constructor(_){this.path=_}};Jt=_e([q],Jt),e.DebugAdapterNamedPipeServer=Jt;let Zt=class{constructor(_){this.implementation=_}};Zt=_e([q],Zt),e.DebugAdapterInlineImplementation=Zt;let en=class{constructor(_,J){this.range=_,this.expression=J}};en=_e([q],en),e.EvaluatableExpression=en;var Sn;(function(N){N[N.Invoke=0]="Invoke",N[N.Automatic=1]="Automatic"})(Sn=e.InlineCompletionTriggerKind||(e.InlineCompletionTriggerKind={}));var bn;(function(N){N[N.Invoke=0]="Invoke",N[N.Automatic=1]="Automatic"})(bn=e.InlineCompletionTriggerKindNew||(e.InlineCompletionTriggerKindNew={}));let tn=class{constructor(_,J){this.range=_,this.text=J}};tn=_e([q],tn),e.InlineValueText=tn;let nn=class{constructor(_,J,Ee=!0){this.range=_,this.variableName=J,this.caseSensitiveLookup=Ee}};nn=_e([q],nn),e.InlineValueVariableLookup=nn;let rn=class{constructor(_,J){this.range=_,this.expression=J}};rn=_e([q],rn),e.InlineValueEvaluatableExpression=rn;let sn=class{constructor(_,J){this.frameId=_,this.stoppedLocation=J}};sn=_e([q],sn),e.InlineValueContext=sn;var Cn;(function(N){N[N.Changed=1]="Changed",N[N.Created=2]="Created",N[N.Deleted=3]="Deleted"})(Cn=e.FileChangeType||(e.FileChangeType={}));let on=W=class extends Error{constructor(_,J=R.FileSystemProviderErrorCode.Unknown,Ee){super(C.URI.isUri(_)?_.toString(!0):_);this.code=Ee?.name??"Unknown",(0,R.markAsFileSystemProviderError)(this,J),typeof Object.setPrototypeOf=="function"&&Object.setPrototypeOf(this,W.prototype),typeof Error.captureStackTrace=="function"&&typeof Ee=="function"&&Error.captureStackTrace(this,Ee)}static FileExists(_){return new W(_,R.FileSystemProviderErrorCode.FileExists,W.FileExists)}static FileNotFound(_){return new W(_,R.FileSystemProviderErrorCode.FileNotFound,W.FileNotFound)}static FileNotADirectory(_){return new W(_,R.FileSystemProviderErrorCode.FileNotADirectory,W.FileNotADirectory)}static FileIsADirectory(_){return new W(_,R.FileSystemProviderErrorCode.FileIsADirectory,W.FileIsADirectory)}static NoPermissions(_){return new W(_,R.FileSystemProviderErrorCode.NoPermissions,W.NoPermissions)}static Unavailable(_){return new W(_,R.FileSystemProviderErrorCode.Unavailable,W.Unavailable)}};on=W=_e([q],on),e.FileSystemError=on;let an=class{constructor(_,J,Ee){this.start=_,this.end=J,this.kind=Ee}};an=_e([q],an),e.FoldingRange=an;var In;(function(N){N[N.Comment=1]="Comment",N[N.Imports=2]="Imports",N[N.Region=3]="Region"})(In=e.FoldingRangeKind||(e.FoldingRangeKind={}));var Dn;(function(N){N[N.Collapsed=0]="Collapsed",N[N.Expanded=1]="Expanded"})(Dn=e.CommentThreadCollapsibleState||(e.CommentThreadCollapsibleState={}));var Pn;(function(N){N[N.Editing=0]="Editing",N[N.Preview=1]="Preview"})(Pn=e.CommentMode||(e.CommentMode={}));var kn;(function(N){N[N.Unresolved=0]="Unresolved",N[N.Resolved=1]="Resolved"})(kn=e.CommentThreadState||(e.CommentThreadState={}));class Tn{constructor(_,J=[]){this.tokenTypes=_,this.tokenModifiers=J}}e.SemanticTokensLegend=Tn;function Rn(N){return typeof N=="undefined"||(0,p.isStringArray)(N)}class ln{constructor(_){if(this._prevLine=0,this._prevChar=0,this._dataIsSortedAndDeltaEncoded=!0,this._data=[],this._dataLen=0,this._tokenTypeStrToInt=new Map,this._tokenModifierStrToInt=new Map,this._hasLegend=!1,_){this._hasLegend=!0;for(let J=0,Ee=_.tokenTypes.length;J<Ee;J++)this._tokenTypeStrToInt.set(_.tokenTypes[J],J);for(let J=0,Ee=_.tokenModifiers.length;J<Ee;J++)this._tokenModifierStrToInt.set(_.tokenModifiers[J],J)}}push(_,J,Ee,ze,qe){if(typeof _=="number"&&typeof J=="number"&&typeof Ee=="number"&&typeof ze=="number"&&(typeof qe=="number"||typeof qe=="undefined"))return typeof qe=="undefined"&&(qe=0),this._pushEncoded(_,J,Ee,ze,qe);if(fe.isRange(_)&&typeof J=="string"&&Rn(Ee))return this._push(_,J,Ee);throw(0,t.illegalArgument)()}_push(_,J,Ee){if(!this._hasLegend)throw new Error("Legend must be provided in constructor");if(_.start.line!==_.end.line)throw new Error("`range` cannot span multiple lines");if(!this._tokenTypeStrToInt.has(J))throw new Error("`tokenType` is not in the provided legend");const ze=_.start.line,qe=_.start.character,Je=_.end.character-_.start.character,et=this._tokenTypeStrToInt.get(J);let ot=0;if(Ee)for(const ct of Ee){if(!this._tokenModifierStrToInt.has(ct))throw new Error("`tokenModifier` is not in the provided legend");const pt=this._tokenModifierStrToInt.get(ct);ot|=1<<pt>>>0}this._pushEncoded(ze,qe,Je,et,ot)}_pushEncoded(_,J,Ee,ze,qe){if(this._dataIsSortedAndDeltaEncoded&&(_<this._prevLine||_===this._prevLine&&J<this._prevChar)){this._dataIsSortedAndDeltaEncoded=!1;const ot=this._data.length/5|0;let ct=0,pt=0;for(let wt=0;wt<ot;wt++){let Dt=this._data[5*wt],Ft=this._data[5*wt+1];Dt===0?(Dt=ct,Ft+=pt):Dt+=ct,this._data[5*wt]=Dt,this._data[5*wt+1]=Ft,ct=Dt,pt=Ft}}let Je=_,et=J;this._dataIsSortedAndDeltaEncoded&&this._dataLen>0&&(Je-=this._prevLine,Je===0&&(et-=this._prevChar)),this._data[this._dataLen++]=Je,this._data[this._dataLen++]=et,this._data[this._dataLen++]=Ee,this._data[this._dataLen++]=ze,this._data[this._dataLen++]=qe,this._prevLine=_,this._prevChar=J}static _sortAndDeltaEncode(_){const J=[],Ee=_.length/5|0;for(let et=0;et<Ee;et++)J[et]=et;J.sort((et,ot)=>{const ct=_[5*et],pt=_[5*ot];if(ct===pt){const wt=_[5*et+1],Dt=_[5*ot+1];return wt-Dt}return ct-pt});const ze=new Uint32Array(_.length);let qe=0,Je=0;for(let et=0;et<Ee;et++){const ot=5*J[et],ct=_[ot+0],pt=_[ot+1],wt=_[ot+2],Dt=_[ot+3],Ft=_[ot+4],yn=ct-qe,hi=yn===0?pt-Je:pt,Nt=5*et;ze[Nt+0]=yn,ze[Nt+1]=hi,ze[Nt+2]=wt,ze[Nt+3]=Dt,ze[Nt+4]=Ft,qe=ct,Je=pt}return ze}build(_){return this._dataIsSortedAndDeltaEncoded?new cn(new Uint32Array(this._data),_):new cn(ln._sortAndDeltaEncode(this._data),_)}}e.SemanticTokensBuilder=ln;class cn{constructor(_,J){this.resultId=J,this.data=_}}e.SemanticTokens=cn;class _n{constructor(_,J,Ee){this.start=_,this.deleteCount=J,this.data=Ee}}e.SemanticTokensEdit=_n;class An{constructor(_,J){this.resultId=J,this.edits=_}}e.SemanticTokensEdits=An;var Ln;(function(N){N[N.Separate=0]="Separate",N[N.MergeWithParent=1]="MergeWithParent"})(Ln=e.DebugConsoleMode||(e.DebugConsoleMode={}));let Ut=class{constructor(){}};Ut.Back={iconPath:new Rt("arrow-left")},Ut=_e([q],Ut),e.QuickInputButtons=Ut;var On;(function(N){N[N.Separator=-1]="Separator",N[N.Default=0]="Default"})(On=e.QuickPickItemKind||(e.QuickPickItemKind={}));var Fn;(function(N){N[N.Info=1]="Info",N[N.Warning=2]="Warning",N[N.Error=3]="Error"})(Fn=e.InputBoxValidationSeverity||(e.InputBoxValidationSeverity={}));var Nn;(function(N){N[N.UI=1]="UI",N[N.Workspace=2]="Workspace"})(Nn=e.ExtensionKind||(e.ExtensionKind={}));class Mn{constructor(_,J,Ee){this.badge=_,this.tooltip=J,this.color=Ee}static validate(_){if(_.badge){let J=(0,y.nextCharLength)(_.badge,0);if(J<_.badge.length&&(J+=(0,y.nextCharLength)(_.badge,J)),_.badge.length>J)throw new Error("The 'badge'-property must be undefined or a short character")}if(!_.color&&!_.badge&&!_.tooltip)throw new Error("The decoration is empty");return!0}}e.FileDecoration=Mn;let un=class{constructor(_){this.kind=_}};un=_e([q],un),e.ColorTheme=un;var Un;(function(N){N[N.Light=1]="Light",N[N.Dark=2]="Dark",N[N.HighContrast=3]="HighContrast",N[N.HighContrastLight=4]="HighContrastLight"})(Un=e.ColorThemeKind||(e.ColorThemeKind={}));class It{constructor(_,J){if(_<0)throw(0,t.illegalArgument)("start must be positive");if(J<0)throw(0,t.illegalArgument)("end must be positive");_<=J?(this._start=_,this._end=J):(this._start=J,this._end=_)}static isNotebookRange(_){return _ instanceof It?!0:_?typeof _.start=="number"&&typeof _.end=="number":!1}get start(){return this._start}get end(){return this._end}get isEmpty(){return this._start===this._end}with(_){let J=this._start,Ee=this._end;return _.start!==void 0&&(J=_.start),_.end!==void 0&&(Ee=_.end),J===this._start&&Ee===this._end?this:new It(J,Ee)}}e.NotebookRange=It;class _t{constructor(_,J,Ee,ze,qe,Je,et){this.kind=_,this.value=J,this.languageId=Ee,this.mime=ze,this.outputs=qe??[],this.metadata=Je,this.executionSummary=et,_t.validate(this)}static validate(_){if(typeof _.kind!="number")throw new Error("NotebookCellData MUST have 'kind' property");if(typeof _.value!="string")throw new Error("NotebookCellData MUST have 'value' property");if(typeof _.languageId!="string")throw new Error("NotebookCellData MUST have 'languageId' property")}static isNotebookCellDataArray(_){return Array.isArray(_)&&_.every(J=>_t.isNotebookCellData(J))}static isNotebookCellData(_){return!0}}e.NotebookCellData=_t;class Bn{constructor(_){this.cells=_}}e.NotebookData=Bn;class gt{constructor(_,J){this.data=_,this.mime=J;const Ee=(0,k.normalizeMimeType)(J,!0);if(!Ee)throw new Error(`INVALID mime type: ${J}. Must be in the format "type/subtype[;optionalparameter]"`);this.mime=Ee}static isNotebookCellOutputItem(_){return _ instanceof gt?!0:_?typeof _.mime=="string"&&_.data instanceof Uint8Array:!1}static error(_){const J={name:_.name,message:_.message,stack:_.stack};return gt.json(J,"application/vnd.code.notebook.error")}static stdout(_){return gt.text(_,"application/vnd.code.notebook.stdout")}static stderr(_){return gt.text(_,"application/vnd.code.notebook.stderr")}static bytes(_,J="application/octet-stream"){return new gt(_,J)}static text(_,J=k.Mimes.text){const Ee=tt(gt,v,"f",m).encode(String(_));return new gt(Ee,J)}static json(_,J="text/x-json"){const Ee=JSON.stringify(_,void 0,"	");return gt.text(Ee,J)}}e.NotebookCellOutputItem=gt,v=gt,m={value:new TextEncoder};class Bt{constructor(_,J,Ee){this.items=Bt.ensureUniqueMimeTypes(_,!0),typeof J=="string"?(this.id=J,this.metadata=Ee):(this.id=(0,T.generateUuid)(),this.metadata=J??Ee)}static isNotebookCellOutput(_){return _ instanceof Bt?!0:!_||typeof _!="object"?!1:typeof _.id=="string"&&(0,p.isArray)(_.items)}static ensureUniqueMimeTypes(_,J=!1){const Ee=new Set,ze=new Set;for(let qe=0;qe<_.length;qe++){const Je=_[qe],et=(0,k.normalizeMimeType)(Je.mime);if(!Ee.has(et)){Ee.add(et);continue}ze.add(qe),J&&console.warn(`DUPLICATED mime type '${Je.mime}' will be dropped`)}return ze.size===0?_:_.filter((qe,Je)=>!ze.has(Je))}}e.NotebookCellOutput=Bt;var zn;(function(N){N[N.Markup=1]="Markup",N[N.Code=2]="Code"})(zn=e.NotebookCellKind||(e.NotebookCellKind={}));var $n;(function(N){N[N.Idle=1]="Idle",N[N.Pending=2]="Pending",N[N.Executing=3]="Executing"})($n=e.NotebookCellExecutionState||(e.NotebookCellExecutionState={}));var Wn;(function(N){N[N.Left=1]="Left",N[N.Right=2]="Right"})(Wn=e.NotebookCellStatusBarAlignment||(e.NotebookCellStatusBarAlignment={}));var Hn;(function(N){N[N.Default=0]="Default",N[N.InCenter=1]="InCenter",N[N.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",N[N.AtTop=3]="AtTop"})(Hn=e.NotebookEditorRevealType||(e.NotebookEditorRevealType={}));class jn{constructor(_,J){this.text=_,this.alignment=J}}e.NotebookCellStatusBarItem=jn;var Vn;(function(N){N[N.Default=1]="Default",N[N.Preferred=2]="Preferred"})(Vn=e.NotebookControllerAffinity||(e.NotebookControllerAffinity={}));class qn{constructor(_,J=[]){this.uri=_,this.provides=(0,b.asArray)(J)}}e.NotebookRendererScript=qn;let fn=class{constructor(_,J){this.label=_,this.timestamp=J}};fn=_e([q],fn),e.TimelineItem=fn;var xn;(function(N){N[N.Production=1]="Production",N[N.Development=2]="Development",N[N.Test=3]="Test"})(xn=e.ExtensionMode||(e.ExtensionMode={}));var Gn;(function(N){N[N.Node=1]="Node",N[N.Webworker=2]="Webworker"})(Gn=e.ExtensionRuntime||(e.ExtensionRuntime={}));var Kn;(function(N){N[N.Other=0]="Other",N[N.Comment=1]="Comment",N[N.String=2]="String",N[N.RegEx=3]="RegEx"})(Kn=e.StandardTokenType||(e.StandardTokenType={}));class Qn{constructor(_,J){this.ranges=_,this.wordPattern=J}}e.LinkedEditingRanges=Qn;class Yn{constructor(_,J){this._port=_,this._autoForwardAction=J}get port(){return this._port}get autoForwardAction(){return this._autoForwardAction}}e.PortAttributes=Yn;var Xn;(function(N){N[N.Queued=1]="Queued",N[N.Running=2]="Running",N[N.Passed=3]="Passed",N[N.Failed=4]="Failed",N[N.Skipped=5]="Skipped",N[N.Errored=6]="Errored"})(Xn=e.TestResultState||(e.TestResultState={}));var Jn;(function(N){N[N.Run=1]="Run",N[N.Debug=2]="Debug",N[N.Coverage=3]="Coverage"})(Jn=e.TestRunProfileKind||(e.TestRunProfileKind={}));let hn=class{constructor(_=void 0,J=void 0,Ee=void 0){this.include=_,this.exclude=J,this.profile=Ee}};hn=_e([q],hn),e.TestRunRequest=hn;let dn=ee=class{constructor(_){this.message=_}static diff(_,J,Ee){const ze=new ee(_);return ze.expectedOutput=J,ze.actualOutput=Ee,ze}};dn=ee=_e([q],dn),e.TestMessage=dn;let mn=class{constructor(_){this.id=_}};mn=_e([q],mn),e.TestTag=mn;let Ot=class{constructor(_,J){this.covered=_,this.total=J}};Ot=_e([q],Ot),e.CoveredCount=Ot;let gn=L=class{constructor(_,J,Ee,ze){this.uri=_,this.statementCoverage=J,this.branchCoverage=Ee,this.functionCoverage=ze}static fromDetails(_,J){const Ee=new Ot(0,0),ze=new Ot(0,0),qe=new Ot(0,0);for(const et of J)if("branches"in et){Ee.total+=1,Ee.covered+=et.executionCount>0?1:0;for(const ot of et.branches)ze.total+=1,ze.covered+=ot.executionCount>0?1:0}else qe.total+=1,qe.covered+=et.executionCount>0?1:0;const Je=new L(_,Ee,ze.total>0?ze:void 0,qe.total>0?qe:void 0);return Je.detailedCoverage=J,Je}};gn=L=_e([q],gn),e.FileCoverage=gn;let pn=class{constructor(_,J,Ee=[]){this.executionCount=_,this.location=J,this.branches=Ee}};pn=_e([q],pn),e.StatementCoverage=pn;let vn=class{constructor(_,J){this.executionCount=_,this.location=J}};vn=_e([q],vn),e.BranchCoverage=vn;let wn=class{constructor(_,J){this.executionCount=_,this.location=J}};wn=_e([q],wn),e.FunctionCoverage=wn;var Zn;(function(N){N[N.None=0]="None",N[N.Option=1]="Option",N[N.Default=2]="Default",N[N.Preferred=3]="Preferred"})(Zn=e.ExternalUriOpenerPriority||(e.ExternalUriOpenerPriority={}));var ei;(function(N){N[N.Untrusted=0]="Untrusted",N[N.Trusted=1]="Trusted",N[N.Unspecified=2]="Unspecified"})(ei=e.WorkspaceTrustState||(e.WorkspaceTrustState={}));var ti;(function(N){N[N.Notify=1]="Notify",N[N.OpenBrowser=2]="OpenBrowser",N[N.OpenPreview=3]="OpenPreview",N[N.Silent=4]="Silent",N[N.Ignore=5]="Ignore",N[N.OpenBrowserOnce=6]="OpenBrowserOnce"})(ti=e.PortAutoForwardAction||(e.PortAutoForwardAction={}));class ni{constructor(_,J,Ee,ze,qe,Je){this.kind=_,this.name=J,this.detail=Ee,this.uri=ze,this.range=qe,this.selectionRange=Je}}e.TypeHierarchyItem=ni;class ii{constructor(_){this.uri=_}}e.TextTabInput=ii;class ri{constructor(_,J){this.original=_,this.modified=J}}e.TextDiffTabInput=ri;class si{constructor(_,J,Ee,ze){this.base=_,this.input1=J,this.input2=Ee,this.result=ze}}e.TextMergeTabInput=si;class oi{constructor(_,J){this.uri=_,this.viewType=J}}e.CustomEditorTabInput=oi;class ai{constructor(_){this.viewType=_}}e.WebviewEditorTabInput=ai;class li{constructor(_,J){this.uri=_,this.notebookType=J}}e.NotebookEditorTabInput=li;class ci{constructor(_,J,Ee){this.original=_,this.modified=J,this.notebookType=Ee}}e.NotebookDiffEditorTabInput=ci;class ui{constructor(){}}e.TerminalEditorTabInput=ui;class fi{constructor(_,J){this.uri=_,this.inputBoxUri=J}}e.InteractiveWindowInput=fi}),define(ve[63],we([0,1,69]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createURITransformer=void 0;function t(P){return{transformIncoming:k=>k.scheme==="vscode-remote"?{scheme:"file",path:k.path,query:k.query,fragment:k.fragment}:k.scheme==="file"?{scheme:"vscode-local",path:k.path,query:k.query,fragment:k.fragment}:k,transformOutgoing:k=>k.scheme==="file"?{scheme:"vscode-remote",authority:P,path:k.path,query:k.query,fragment:k.fragment}:k.scheme==="vscode-local"?{scheme:"file",path:k.path,query:k.query,fragment:k.fragment}:k,transformOutgoingScheme:k=>k==="file"?"vscode-remote":k==="vscode-local"?"file":k}}function D(P){return new b.URITransformer(t(P))}e.createURITransformer=D}),define(ve[244],we([0,1,4,63,61,6,206]),function(oe,e,b,t,D,P,k){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RemoteAgentFileSystemProviderChannel=void 0;class y extends k.AbstractDiskFileSystemProviderChannel{constructor(T,R){super(new D.DiskFileSystemProvider(T),T);this.environmentService=R,this.uriTransformerCache=new Map,this._register(this.provider)}getUriTransformer(T){let R=this.uriTransformerCache.get(T.remoteAuthority);return R||(R=(0,t.createURITransformer)(T.remoteAuthority),this.uriTransformerCache.set(T.remoteAuthority,R)),R}transformIncoming(T,R,w=!1){if(w&&R.path==="/vscode-resource"&&R.query){const E=JSON.parse(R.query).requestResourcePath;return b.URI.from({scheme:"file",path:E})}return b.URI.revive(T.transformIncoming(R))}createSessionFileWatcher(T,R){return new p(T,R,this.logService,this.environmentService)}}e.RemoteAgentFileSystemProviderChannel=y;class p extends k.AbstractSessionFileWatcher{constructor(T,R,w,E){super(T,R,w,E)}getRecursiveWatcherOptions(T){const R=T.args["file-watcher-polling"];if(R){const w=R.split(P.delimiter),E=Number(w[0]);if(E>0)return{usePolling:w.length>1?w.slice(1):!0,pollingInterval:E}}}getExtraExcludes(T){if(T.extensionsPath)return[P.posix.join(T.extensionsPath,"**")]}}}),define(ve[117],we([0,1,182,12,4,2,5,34,17,18,8]),function(oe,e,b,t,D,P,k,y,p,C,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTextEditorViewState=e.EditorsOrder=e.pathsToEditors=e.CloseDirection=e.EditorResourceAccessor=e.SideBySideEditor=e.GroupModelChangeKind=e.EditorCloseContext=e.isEditorIdentifier=e.isEditorInputWithOptionsAndGroup=e.isEditorInputWithOptions=e.isDiffEditorInput=e.isSideBySideEditorInput=e.isEditorInput=e.AbstractEditorInput=e.EditorInputCapabilities=e.SaveSourceRegistry=e.SaveReason=e.Verbosity=e.isResourceMergeEditorInput=e.isUntitledResourceEditorInput=e.isResourceSideBySideEditorInput=e.isResourceDiffEditorInput=e.isResourceEditorInput=e.findViewStateForEditor=e.isEditorPaneWithSelection=e.EditorPaneSelectionCompareResult=e.EditorPaneSelectionChangeReason=e.BINARY_DIFF_EDITOR_ID=e.TEXT_DIFF_EDITOR_ID=e.SIDE_BY_SIDE_EDITOR_ID=e.DEFAULT_EDITOR_ASSOCIATION=e.EditorExtensions=void 0,e.EditorExtensions={EditorPane:"workbench.contributions.editors",EditorFactory:"workbench.contributions.editor.inputFactories"},e.DEFAULT_EDITOR_ASSOCIATION={id:"default",displayName:(0,b.localize)(0,null),providerDisplayName:(0,b.localize)(1,null)},e.SIDE_BY_SIDE_EDITOR_ID="workbench.editor.sidebysideEditor",e.TEXT_DIFF_EDITOR_ID="workbench.editors.textDiffEditor",e.BINARY_DIFF_EDITOR_ID="workbench.editors.binaryResourceDiffEditor";var R;(function(B){B[B.PROGRAMMATIC=1]="PROGRAMMATIC",B[B.USER=2]="USER",B[B.EDIT=3]="EDIT",B[B.NAVIGATION=4]="NAVIGATION",B[B.JUMP=5]="JUMP"})(R=e.EditorPaneSelectionChangeReason||(e.EditorPaneSelectionChangeReason={}));var w;(function(B){B[B.IDENTICAL=1]="IDENTICAL",B[B.SIMILAR=2]="SIMILAR",B[B.DIFFERENT=3]="DIFFERENT"})(w=e.EditorPaneSelectionCompareResult||(e.EditorPaneSelectionCompareResult={}));function E(B){const U=B;return!!U&&typeof U.getSelection=="function"&&!!U.onDidChangeSelection}e.isEditorPaneWithSelection=E;function d(B,U,z){for(const X of z.visibleEditorPanes)if(X.group.id===U&&B.matches(X.input))return X.getViewState()}e.findViewStateForEditor=d;function I(B){if(a(B))return!1;const U=B;return D.URI.isUri(U?.resource)}e.isResourceEditorInput=I;function v(B){if(a(B))return!1;const U=B;return U?.original!==void 0&&U.modified!==void 0}e.isResourceDiffEditorInput=v;function m(B){if(a(B)||v(B))return!1;const U=B;return U?.primary!==void 0&&U.secondary!==void 0}e.isResourceSideBySideEditorInput=m;function g(B){if(a(B))return!1;const U=B;return U?U.resource===void 0||U.resource.scheme===T.Schemas.untitled||U.forceUntitled===!0:!1}e.isUntitledResourceEditorInput=g;function u(B){if(a(B))return!1;const U=B;return D.URI.isUri(U?.base?.resource)&&D.URI.isUri(U?.input1?.resource)&&D.URI.isUri(U?.input2?.resource)&&D.URI.isUri(U?.result?.resource)}e.isResourceMergeEditorInput=u;var c;(function(B){B[B.SHORT=0]="SHORT",B[B.MEDIUM=1]="MEDIUM",B[B.LONG=2]="LONG"})(c=e.Verbosity||(e.Verbosity={}));var f;(function(B){B[B.EXPLICIT=1]="EXPLICIT",B[B.AUTO=2]="AUTO",B[B.FOCUS_CHANGE=3]="FOCUS_CHANGE",B[B.WINDOW_CHANGE=4]="WINDOW_CHANGE"})(f=e.SaveReason||(e.SaveReason={}));class i{constructor(){this.mapIdToSaveSource=new Map}registerSource(U,z){let X=this.mapIdToSaveSource.get(U);return X||(X={source:U,label:z},this.mapIdToSaveSource.set(U,X)),X.source}getSourceLabel(U){return this.mapIdToSaveSource.get(U)?.label??U}}e.SaveSourceRegistry=new i;var s;(function(B){B[B.None=0]="None",B[B.Readonly=2]="Readonly",B[B.Untitled=4]="Untitled",B[B.Singleton=8]="Singleton",B[B.RequiresTrust=16]="RequiresTrust",B[B.CanSplitInGroup=32]="CanSplitInGroup",B[B.ForceDescription=64]="ForceDescription",B[B.CanDropIntoEditor=128]="CanDropIntoEditor",B[B.MultipleEditors=256]="MultipleEditors"})(s=e.EditorInputCapabilities||(e.EditorInputCapabilities={}));class n extends P.Disposable{}e.AbstractEditorInput=n;function a(B){return B instanceof n}e.isEditorInput=a;function o(B){const U=B;return D.URI.isUri(U?.preferredResource)}function r(B){const U=B;return a(U?.primary)&&a(U?.secondary)}e.isSideBySideEditorInput=r;function l(B){const U=B;return a(U?.modified)&&a(U?.original)}e.isDiffEditorInput=l;function h(B){return a(B?.editor)}e.isEditorInputWithOptions=h;function S(B){const U=B;return h(B)&&U?.group!==void 0}e.isEditorInputWithOptionsAndGroup=S;function A(B){const U=B;return typeof U?.groupId=="number"&&a(U.editor)}e.isEditorIdentifier=A;var $;(function(B){B[B.UNKNOWN=0]="UNKNOWN",B[B.REPLACE=1]="REPLACE",B[B.MOVE=2]="MOVE",B[B.UNPIN=3]="UNPIN"})($=e.EditorCloseContext||(e.EditorCloseContext={}));var W;(function(B){B[B.GROUP_ACTIVE=0]="GROUP_ACTIVE",B[B.GROUP_INDEX=1]="GROUP_INDEX",B[B.GROUP_LOCKED=2]="GROUP_LOCKED",B[B.EDITOR_OPEN=3]="EDITOR_OPEN",B[B.EDITOR_CLOSE=4]="EDITOR_CLOSE",B[B.EDITOR_MOVE=5]="EDITOR_MOVE",B[B.EDITOR_ACTIVE=6]="EDITOR_ACTIVE",B[B.EDITOR_LABEL=7]="EDITOR_LABEL",B[B.EDITOR_CAPABILITIES=8]="EDITOR_CAPABILITIES",B[B.EDITOR_PIN=9]="EDITOR_PIN",B[B.EDITOR_STICKY=10]="EDITOR_STICKY",B[B.EDITOR_DIRTY=11]="EDITOR_DIRTY",B[B.EDITOR_WILL_DISPOSE=12]="EDITOR_WILL_DISPOSE"})(W=e.GroupModelChangeKind||(e.GroupModelChangeKind={}));var ee;(function(B){B[B.PRIMARY=1]="PRIMARY",B[B.SECONDARY=2]="SECONDARY",B[B.BOTH=3]="BOTH",B[B.ANY=4]="ANY"})(ee=e.SideBySideEditor||(e.SideBySideEditor={}));class L{getOriginalUri(U,z){if(!U)return;if(u(U))return e.EditorResourceAccessor.getOriginalUri(U.result,z);if(z?.supportSideBySide){const{primary:ue,secondary:de}=this.getSideEditors(U);if(ue&&de){if(z?.supportSideBySide===ee.BOTH)return{primary:this.getOriginalUri(ue,{filterByScheme:z.filterByScheme}),secondary:this.getOriginalUri(de,{filterByScheme:z.filterByScheme})};if(z?.supportSideBySide===ee.ANY)return this.getOriginalUri(ue,{filterByScheme:z.filterByScheme})??this.getOriginalUri(de,{filterByScheme:z.filterByScheme});U=z.supportSideBySide===ee.PRIMARY?ue:de}}if(v(U)||m(U)||u(U))return;const X=o(U)?U.preferredResource:U.resource;return!X||!z||!z.filterByScheme?X:this.filterUri(X,z.filterByScheme)}getSideEditors(U){return r(U)||m(U)?{primary:U.primary,secondary:U.secondary}:l(U)||v(U)?{primary:U.modified,secondary:U.original}:{primary:void 0,secondary:void 0}}getCanonicalUri(U,z){if(!U)return;if(u(U))return e.EditorResourceAccessor.getCanonicalUri(U.result,z);if(z?.supportSideBySide){const{primary:ue,secondary:de}=this.getSideEditors(U);if(ue&&de){if(z?.supportSideBySide===ee.BOTH)return{primary:this.getCanonicalUri(ue,{filterByScheme:z.filterByScheme}),secondary:this.getCanonicalUri(de,{filterByScheme:z.filterByScheme})};if(z?.supportSideBySide===ee.ANY)return this.getCanonicalUri(ue,{filterByScheme:z.filterByScheme})??this.getCanonicalUri(de,{filterByScheme:z.filterByScheme});U=z.supportSideBySide===ee.PRIMARY?ue:de}}if(v(U)||m(U)||u(U))return;const X=U.resource;return!X||!z||!z.filterByScheme?X:this.filterUri(X,z.filterByScheme)}filterUri(U,z){if(Array.isArray(z)){if(z.some(X=>U.scheme===X))return U}else if(z===U.scheme)return U}}e.EditorResourceAccessor=new L;var q;(function(B){B[B.LEFT=0]="LEFT",B[B.RIGHT=1]="RIGHT"})(q=e.CloseDirection||(e.CloseDirection={}));class ne{constructor(){this.editorSerializerConstructors=new Map,this.editorSerializerInstances=new Map}start(U){const z=this.instantiationService=U.get(k.IInstantiationService);for(const[X,ue]of this.editorSerializerConstructors)this.createEditorSerializer(X,ue,z);this.editorSerializerConstructors.clear()}createEditorSerializer(U,z,X){const ue=X.createInstance(z);this.editorSerializerInstances.set(U,ue)}registerFileEditorFactory(U){if(this.fileEditorFactory)throw new Error("Can only register one file editor factory.");this.fileEditorFactory=U}getFileEditorFactory(){return(0,t.assertIsDefined)(this.fileEditorFactory)}registerEditorSerializer(U,z){if(this.editorSerializerConstructors.has(U)||this.editorSerializerInstances.has(U))throw new Error(`A editor serializer with type ID '${U}' was already registered.`);return this.instantiationService?this.createEditorSerializer(U,z,this.instantiationService):this.editorSerializerConstructors.set(U,z),(0,P.toDisposable)(()=>{this.editorSerializerConstructors.delete(U),this.editorSerializerInstances.delete(U)})}getEditorSerializer(U){return this.editorSerializerInstances.get(typeof U=="string"?U:U.typeId)}}y.Registry.add(e.EditorExtensions.EditorFactory,new ne);async function x(B,U){if(!B||!B.length)return[];const z=await Promise.all(B.map(async X=>{const ue=D.URI.revive(X.fileUri);if(!ue||!await U.canHandleResource(ue))return;let G=X.exists,se=X.type;if(typeof G!="boolean"||typeof se!="number")try{se=(await U.stat(ue)).isDirectory?p.FileType.Directory:p.FileType.Unknown,G=!0}catch{G=!1}if(!G&&X.openOnlyIfExists||se===p.FileType.Directory)return;const O={...X.options,pinned:!0};let F;return G?F={resource:ue,options:O}:F={resource:ue,options:O,forceUntitled:!0},F}));return(0,C.coalesce)(z)}e.pathsToEditors=x;var fe;(function(B){B[B.MOST_RECENTLY_ACTIVE=0]="MOST_RECENTLY_ACTIVE",B[B.SEQUENTIAL=1]="SEQUENTIAL"})(fe=e.EditorsOrder||(e.EditorsOrder={}));function M(B){const U=B;if(!U)return!1;const z=U;if(z.modified)return M(z.modified);const X=U;return!!(X.contributionsState&&X.viewState&&Array.isArray(X.cursorState))}e.isTextEditorViewState=M}),define(ve[245],we([0,1,15,68,46,66,8,6,3,97]),function(oe,e,b,t,D,P,k,y,p,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NotebookWorkingCopyTypeIdentifier=e.CellStatusbarAlignment=e.NotebookSetting=e.notebookDocumentFilterMatch=e.isDocumentExcludePattern=e.NotebookEditorPriority=e.NOTEBOOK_EDITOR_CURSOR_BOUNDARY=e.diff=e.MimeTypeDisplayOrder=e.CellUri=e.CellEditType=e.SelectionStateType=e.NotebookCellsChangeType=e.RendererMessagingSpec=e.NotebookRendererMatch=e.NotebookCellExecutionState=e.NotebookRunState=e.RENDERER_NOT_AVAILABLE=e.RENDERER_EQUIVALENT_EXTENSIONS=e.ACCESSIBLE_NOTEBOOK_DISPLAY_ORDER=e.NOTEBOOK_DISPLAY_ORDER=e.CellKind=e.NOTEBOOK_DIFF_EDITOR_ID=e.NOTEBOOK_EDITOR_ID=void 0,e.NOTEBOOK_EDITOR_ID="workbench.editor.notebook",e.NOTEBOOK_DIFF_EDITOR_ID="workbench.editor.notebookTextDiffEditor";var T;(function(r){r[r.Markup=1]="Markup",r[r.Code=2]="Code"})(T=e.CellKind||(e.CellKind={})),e.NOTEBOOK_DISPLAY_ORDER=["application/json","application/javascript","text/html","image/svg+xml",P.Mimes.latex,P.Mimes.markdown,"image/png","image/jpeg",P.Mimes.text],e.ACCESSIBLE_NOTEBOOK_DISPLAY_ORDER=[P.Mimes.latex,P.Mimes.markdown,"application/json",P.Mimes.text,"text/html","image/svg+xml","image/png","image/jpeg"],e.RENDERER_EQUIVALENT_EXTENSIONS=new Map([["ms-toolsai.jupyter",new Set(["jupyter-notebook","interactive"])],["ms-toolsai.jupyter-renderers",new Set(["jupyter-notebook","interactive"])]]),e.RENDERER_NOT_AVAILABLE="_notAvailable";var R;(function(r){r[r.Running=1]="Running",r[r.Idle=2]="Idle"})(R=e.NotebookRunState||(e.NotebookRunState={}));var w;(function(r){r[r.Unconfirmed=1]="Unconfirmed",r[r.Pending=2]="Pending",r[r.Executing=3]="Executing"})(w=e.NotebookCellExecutionState||(e.NotebookCellExecutionState={}));var E;(function(r){r[r.WithHardKernelDependency=0]="WithHardKernelDependency",r[r.WithOptionalKernelDependency=1]="WithOptionalKernelDependency",r[r.Pure=2]="Pure",r[r.Never=3]="Never"})(E=e.NotebookRendererMatch||(e.NotebookRendererMatch={}));var d;(function(r){r.Always="always",r.Never="never",r.Optional="optional"})(d=e.RendererMessagingSpec||(e.RendererMessagingSpec={}));var I;(function(r){r[r.ModelChange=1]="ModelChange",r[r.Move=2]="Move",r[r.ChangeCellLanguage=5]="ChangeCellLanguage",r[r.Initialize=6]="Initialize",r[r.ChangeCellMetadata=7]="ChangeCellMetadata",r[r.Output=8]="Output",r[r.OutputItem=9]="OutputItem",r[r.ChangeCellContent=10]="ChangeCellContent",r[r.ChangeDocumentMetadata=11]="ChangeDocumentMetadata",r[r.ChangeCellInternalMetadata=12]="ChangeCellInternalMetadata",r[r.ChangeCellMime=13]="ChangeCellMime",r[r.Unknown=100]="Unknown"})(I=e.NotebookCellsChangeType||(e.NotebookCellsChangeType={}));var v;(function(r){r[r.Handle=0]="Handle",r[r.Index=1]="Index"})(v=e.SelectionStateType||(e.SelectionStateType={}));var m;(function(r){r[r.Replace=1]="Replace",r[r.Output=2]="Output",r[r.Metadata=3]="Metadata",r[r.CellLanguage=4]="CellLanguage",r[r.DocumentMetadata=5]="DocumentMetadata",r[r.Move=6]="Move",r[r.OutputItems=7]="OutputItems",r[r.PartialMetadata=8]="PartialMetadata",r[r.PartialInternalMetadata=9]="PartialInternalMetadata"})(m=e.CellEditType||(e.CellEditType={}));var g;(function(r){r.scheme=k.Schemas.vscodeNotebookCell;const l=["W","X","Y","Z","a","b","c","d","e","f"],h=new RegExp(`^[${l.join("")}]+`),S=7;function A(x,fe){const M=fe.toString(S),U=`${M.length<l.length?l[M.length-1]:"z"}${M}s${(0,b.encodeBase64)(b.VSBuffer.fromString(x.scheme),!0,!0)}`;return x.with({scheme:r.scheme,fragment:U})}r.generate=A;function $(x){if(x.scheme!==r.scheme)return;const fe=x.fragment.indexOf("s");if(fe<0)return;const M=parseInt(x.fragment.substring(0,fe).replace(h,""),S),B=(0,b.decodeBase64)(x.fragment.substring(fe+1)).toString();if(!isNaN(M))return{handle:M,notebook:x.with({scheme:B,fragment:null})}}r.parse=$;const W=/^(\d{8,})(\w[\w\d+.-]*)$/;function ee(x,fe){return x.with({scheme:k.Schemas.vscodeNotebookCellOutput,fragment:`op${fe??""},${x.scheme!==k.Schemas.file?x.scheme:""}`})}r.generateCellOutputUri=ee;function L(x){if(x.scheme!==k.Schemas.vscodeNotebookCellOutput)return;const fe=/^op([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})?\,(.*)$/i.exec(x.fragment);if(!fe)return;const M=fe[1]&&fe[1]!==""?fe[1]:void 0,B=fe[2];return{outputId:M,notebook:x.with({scheme:B||k.Schemas.file,fragment:null})}}r.parseCellOutputUri=L;function q(x,fe,M){return x.with({scheme:M,fragment:`ch${fe.toString().padStart(7,"0")}${x.scheme!==k.Schemas.file?x.scheme:""}`})}r.generateCellUri=q;function ne(x,fe){if(x.scheme!==fe)return;const M=W.exec(x.fragment);return M?{handle:Number(M[1]),notebook:x.with({scheme:x.fragment.substring(M[0].length)||k.Schemas.file,fragment:null})}:void 0}r.parseCellUri=ne})(g=e.CellUri||(e.CellUri={}));const u=r=>p.isWindows?r.replace(/\//g,"\\"):r;class c{constructor(l=[],h=e.NOTEBOOK_DISPLAY_ORDER){this.defaultOrder=h,this.order=[...new Set(l)].map(S=>({pattern:S,matches:t.parse(u(S))}))}sort(l){const h=new Map(D.Iterable.map(l,A=>[A,u(A)]));let S=[];for(const{matches:A}of this.order)for(const[$,W]of h)if(A(W)){S.push($),h.delete($);break}return h.size&&(S=S.concat([...h.keys()].sort((A,$)=>this.defaultOrder.indexOf(A)-this.defaultOrder.indexOf($)))),S}prioritize(l,h){const S=this.findIndex(l);if(S===-1){this.order.unshift({pattern:l,matches:t.parse(u(l))});return}const A=new Set(h.map(W=>this.findIndex(W,S)));A.delete(-1);const $=Array.from(A).sort();this.order.splice(S+1,0,...$.map(W=>this.order[W]));for(let W=$.length-1;W>=0;W--)this.order.splice($[W],1)}toArray(){return this.order.map(l=>l.pattern)}findIndex(l,h=this.order.length){const S=u(l);for(let A=0;A<h;A++)if(this.order[A].matches(S))return A;return-1}}e.MimeTypeDisplayOrder=c;function f(r,l,h,S=(A,$)=>A===$){const A=[];function $(L,q,ne){if(q===0&&ne.length===0)return;const x=A[A.length-1];x&&x.start+x.deleteCount===L?(x.deleteCount+=q,x.toInsert.push(...ne)):A.push({start:L,deleteCount:q,toInsert:ne})}let W=0,ee=0;for(;;){if(W===r.length){$(W,0,l.slice(ee));break}if(ee===l.length){$(W,r.length-W,[]);break}const L=r[W],q=l[ee];if(S(L,q)){W+=1,ee+=1;continue}h(q)?($(W,1,[]),W+=1):($(W,0,[q]),ee+=1)}return A}e.diff=f,e.NOTEBOOK_EDITOR_CURSOR_BOUNDARY=new C.RawContextKey("notebookEditorCursorAtBoundary","none");var i;(function(r){r.default="default",r.option="option"})(i=e.NotebookEditorPriority||(e.NotebookEditorPriority={}));function s(r){const l=r;return!!((typeof l.include=="string"||t.isRelativePattern(l.include))&&(typeof l.exclude=="string"||t.isRelativePattern(l.exclude)))}e.isDocumentExcludePattern=s;function n(r,l,h){if(Array.isArray(r.viewType)&&r.viewType.indexOf(l)>=0||r.viewType===l)return!0;if(r.filenamePattern){const S=s(r.filenamePattern)?r.filenamePattern.include:r.filenamePattern,A=s(r.filenamePattern)?r.filenamePattern.exclude:void 0;if(t.match(S,(0,y.basename)(h.fsPath).toLowerCase()))return!(A&&t.match(A,(0,y.basename)(h.fsPath).toLowerCase()))}return!1}e.notebookDocumentFilterMatch=n,e.NotebookSetting={displayOrder:"notebook.displayOrder",cellToolbarLocation:"notebook.cellToolbarLocation",cellToolbarVisibility:"notebook.cellToolbarVisibility",showCellStatusBar:"notebook.showCellStatusBar",textDiffEditorPreview:"notebook.diff.enablePreview",experimentalInsertToolbarAlignment:"notebook.experimental.insertToolbarAlignment",compactView:"notebook.compactView",focusIndicator:"notebook.cellFocusIndicator",insertToolbarLocation:"notebook.insertToolbarLocation",globalToolbar:"notebook.globalToolbar",undoRedoPerCell:"notebook.undoRedoPerCell",consolidatedOutputButton:"notebook.consolidatedOutputButton",showFoldingControls:"notebook.showFoldingControls",dragAndDropEnabled:"notebook.dragAndDropEnabled",cellEditorOptionsCustomizations:"notebook.editorOptionsCustomizations",consolidatedRunButton:"notebook.consolidatedRunButton",openGettingStarted:"notebook.experimental.openGettingStarted",textOutputLineLimit:"notebook.output.textLineLimit",globalToolbarShowLabel:"notebook.globalToolbarShowLabel",markupFontSize:"notebook.markup.fontSize",interactiveWindowCollapseCodeCells:"interactiveWindow.collapseCellInputCode",outputLineHeight:"notebook.outputLineHeight",outputFontSize:"notebook.outputFontSize",outputFontFamily:"notebook.outputFontFamily"};var a;(function(r){r[r.Left=1]="Left",r[r.Right=2]="Right"})(a=e.CellStatusbarAlignment||(e.CellStatusbarAlignment={}));class o{static create(l){return`${o._prefix}${l}`}static parse(l){if(l.startsWith(o._prefix))return l.substring(o._prefix.length)}}e.NotebookWorkingCopyTypeIdentifier=o,o._prefix="notebook/"}),define(ve[118],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EnvironmentVariableMutatorType=e.IEnvironmentVariableService=void 0,e.IEnvironmentVariableService=(0,b.createDecorator)("environmentVariableService");var t;(function(D){D[D.Replace=1]="Replace",D[D.Append=2]="Append",D[D.Prepend=3]="Prepend"})(t=e.EnvironmentVariableMutatorType||(e.EnvironmentVariableMutatorType={}))}),define(ve[246],we([0,1,3,118]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MergedEnvironmentVariableCollection=void 0;class D{constructor(p){this.collections=p,this.map=new Map,p.forEach((C,T)=>{const R=C.map.entries();let w=R.next();for(;!w.done;){const E=w.value[0];let d=this.map.get(E);if(d||(d=[],this.map.set(E,d)),d.length>0&&d[0].type===t.EnvironmentVariableMutatorType.Replace){w=R.next();continue}const I=w.value[1];d.unshift({extensionIdentifier:T,value:I.value,type:I.type}),w=R.next()}})}async applyToProcessEnvironment(p,C){let T;b.isWindows&&(T={},Object.keys(p).forEach(R=>T[R.toLowerCase()]=R));for(const[R,w]of this.map){const E=b.isWindows&&T[R.toLowerCase()]||R;for(const d of w){const I=C?await C(d.value):d.value;switch(d.type){case t.EnvironmentVariableMutatorType.Append:p[E]=(p[E]||"")+I;break;case t.EnvironmentVariableMutatorType.Prepend:p[E]=I+(p[E]||"");break;case t.EnvironmentVariableMutatorType.Replace:p[E]=I;break}}}}diff(p){const C=new Map,T=new Map,R=new Map;if(p.map.forEach((w,E)=>{const d=this.map.get(E),I=P(w,d);I&&C.set(E,I)}),this.map.forEach((w,E)=>{const d=p.map.get(E),I=P(w,d);I&&R.set(E,I)}),this.map.forEach((w,E)=>{const d=p.map.get(E),I=k(w,d);I&&T.set(E,I)}),!(C.size===0&&T.size===0&&R.size===0))return{added:C,changed:T,removed:R}}}e.MergedEnvironmentVariableCollection=D;function P(y,p){if(!p)return y;const C=new Set;p.forEach(R=>C.add(R.extensionIdentifier));const T=[];return y.forEach(R=>{C.has(R.extensionIdentifier)||T.push(R)}),T.length===0?void 0:T}function k(y,p){if(!p)return;const C=new Map;p.forEach(R=>C.set(R.extensionIdentifier,R));const T=[];return y.forEach(R=>{const w=C.get(R.extensionIdentifier);w&&(R.type!==w.type||R.value!==w.value)&&T.push(w)}),T.length===0?void 0:T}}),define(ve[119],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deserializeEnvironmentVariableCollections=e.serializeEnvironmentVariableCollections=e.deserializeEnvironmentVariableCollection=e.serializeEnvironmentVariableCollection=void 0;function b(k){return[...k.entries()]}e.serializeEnvironmentVariableCollection=b;function t(k){return new Map(k)}e.deserializeEnvironmentVariableCollection=t;function D(k){return Array.from(k.entries()).map(y=>[y[0],b(y[1].map)])}e.serializeEnvironmentVariableCollections=D;function P(k){return new Map(k.map(y=>[y[0],{map:t(y[1])}]))}e.deserializeEnvironmentVariableCollections=P}),define(ve[247],we([0,1,6,56,3]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTerminalEnvironment=e.getDefaultShellArgs=e.getDefaultShell=e.createVariableResolver=e.getCwd=e.getLangEnvVariable=e.shouldSetLangEnvVariable=e.addTerminalEnvironmentKeys=e.mergeEnvironments=void 0;function P(c,f){if(!!f)if(D.isWindows)for(const i in f){let s=i;for(const a in c)if(i.toLowerCase()===a.toLowerCase()){s=a;break}const n=f[i];n!==void 0&&k(c,s,n)}else Object.keys(f).forEach(i=>{const s=f[i];s!==void 0&&k(c,i,s)})}e.mergeEnvironments=P;function k(c,f,i){typeof i=="string"?c[f]=i:delete c[f]}function y(c,f,i,s){c.TERM_PROGRAM="vscode",f&&(c.TERM_PROGRAM_VERSION=f),T(c,s)&&(c.LANG=R(i)),c.COLORTERM="truecolor"}e.addTerminalEnvironmentKeys=y;function p(c,f){if(!!f)for(const i of Object.keys(f)){const s=f[i];s&&(c[i]=s)}}async function C(c,f){return await Promise.all(Object.entries(f).map(async([i,s])=>{if(typeof s=="string")try{f[i]=await c(s)}catch{f[i]=s}})),f}function T(c,f){if(f==="on")return!0;if(f==="auto"){const i=c.LANG;return!i||i.search(/\.UTF\-8$/)===-1&&i.search(/\.utf8$/)===-1&&i.search(/\.euc.+/)===-1}return!1}e.shouldSetLangEnvVariable=T;function R(c){const f=c?c.split("-"):[],i=f.length;if(i===0)return"en_US.UTF-8";if(i===1){const s={af:"ZA",am:"ET",be:"BY",bg:"BG",ca:"ES",cs:"CZ",da:"DK",de:"DE",el:"GR",en:"US",es:"ES",et:"EE",eu:"ES",fi:"FI",fr:"FR",he:"IL",hr:"HR",hu:"HU",hy:"AM",is:"IS",it:"IT",ja:"JP",kk:"KZ",ko:"KR",lt:"LT",nl:"NL",no:"NO",pl:"PL",pt:"BR",ro:"RO",ru:"RU",sk:"SK",sl:"SI",sr:"YU",sv:"SE",tr:"TR",uk:"UA",zh:"CN"};f[0]in s&&f.push(s[f[0]])}else f[1]=f[1].toUpperCase();return f.join("_")+".UTF-8"}e.getLangEnvVariable=R;async function w(c,f,i,s,n,a){if(c.cwd){const r=typeof c.cwd=="object"?c.cwd.fsPath:c.cwd,l=await E(r,i);return d(l||r)}let o;return!c.ignoreConfigurationCwd&&n&&(i&&(n=await E(n,i,a)),n&&(b.isAbsolute(n)?o=n:s&&(o=b.join(s.fsPath,n)))),o||(o=s?s.fsPath:f||""),d(o)}e.getCwd=w;async function E(c,f,i){if(f)try{return await f(c)}catch(s){i?.error("Could not resolve terminal cwd",s);return}return c}function d(c){return D.OS===1&&c&&c[1]===":"?c[0].toUpperCase()+c.substr(1):c}function I(c,f,i){if(!!i)return s=>i.resolveWithEnvironment(f,c,s)}e.createVariableResolver=I;async function v(c,f,i,s,n,a,o,r=D.platform){let l;o&&(l=g(c,"automationShell",r)),l||(l=g(c,"shell",r));let h=l||f;if(r===3&&!i&&s){const S=b.join(s,"Sysnative").replace(/\//g,"\\").toLowerCase();h&&h.toLowerCase().indexOf(S)===0&&(h=b.join(s,"System32",h.substr(S.length+1)))}if(h&&r===3&&(h=h.replace(/\//g,"\\")),n)try{h=await n(h)}catch(S){a.error("Could not resolve shell",S)}return h}e.getDefaultShell=v;async function m(c,f,i,s,n=D.platform){if(f&&g(c,"automationShell",n))return[];const a=n===3?"windows":n===1?"osx":"linux";let o=c(`terminal.integrated.shellArgs.${a}`);if(!o)return[];if(typeof o=="string"&&n===3)return i?await i(o):o;if(i){const r=[];for(const l of o)try{r.push(await i(l))}catch(h){s.error(`Could not resolve terminal.integrated.shellArgs.${a}`,h),r.push(l)}o=r}return o}e.getDefaultShellArgs=m;function g(c,f,i=D.platform){return c(`terminal.integrated.${f}.${i===3?"windows":i===1?"osx":"linux"}`)}async function u(c,f,i,s,n,a){const o={};if(c.strictEnv)p(o,c.env);else{p(o,a);const r={...f};i&&(r&&await C(i,r),c.env&&await C(i,c.env)),(0,t.sanitizeProcessEnvironment)(o,"VSCODE_IPC_HOOK_CLI","VSCODE_PROXY_URI"),P(o,r),P(o,c.env),y(o,s,D.locale,n)}return o}e.createTerminalEnvironment=u}),define(ve[80],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TestId=e.TestPosition=e.TestIdPathParts=void 0;var b;(function(P){P.Delimiter="\0"})(b=e.TestIdPathParts||(e.TestIdPathParts={}));var t;(function(P){P[P.IsSame=0]="IsSame",P[P.Disconnected=1]="Disconnected",P[P.IsChild=2]="IsChild",P[P.IsParent=3]="IsParent"})(t=e.TestPosition||(e.TestPosition={}));class D{constructor(k,y=k.length){if(this.path=k,this.viewEnd=y,k.length===0||y<1)throw new Error("cannot create test with empty path")}static fromExtHostTestItem(k,y,p=k.parent){if(k.id===y)return new D([y]);const C=[k.id];for(let T=p;T&&T.id!==y;T=T.parent)C.push(T.id);return C.push(y),new D(C.reverse())}static isRoot(k){return!k.includes("\0")}static root(k){const y=k.indexOf("\0");return y===-1?k:k.slice(0,y)}static fromString(k){return new D(k.split("\0"))}static join(k,y){return new D([...k.path,y])}static joinToString(k,y){return k.toString()+"\0"+y}static compare(k,y){return k===y?0:y.startsWith(k+"\0")?2:k.startsWith(y+"\0")?3:1}get parentId(){return this.viewEnd>1?new D(this.path,this.viewEnd-1):this}get localId(){return this.path[this.viewEnd-1]}get controllerId(){return this.path[0]}get isRoot(){return this.viewEnd===1}*idsFromRoot(){for(let k=1;k<=this.viewEnd;k++)yield new D(this.path,k)}compare(k){if(typeof k=="string")return D.compare(this.toString(),k);for(let y=0;y<k.viewEnd&&y<this.viewEnd;y++)if(k.path[y]!==this.path[y])return 1;return k.viewEnd>this.viewEnd?2:k.viewEnd<this.viewEnd?3:0}toJSON(){return this.toString()}toString(){if(!this.stringifed){this.stringifed=this.path[0];for(let k=1;k<this.viewEnd;k++)this.stringifed+="\0",this.stringifed+=this.path[k]}return this.stringifed}}e.TestId=D}),define(ve[81],we([0,1,4,49]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractIncrementalTestCollection=e.IncrementalChangeCollector=e.TestsDiffOp=e.TestDiffOpType=e.DetailType=e.TestResultItem=e.applyTestItemUpdate=e.ITestItemUpdate=e.InternalTestItem=e.TestItemExpandState=e.ITestItem=e.denamespaceTestTag=e.namespaceTestTag=e.ITestTaskState=e.ITestMessage=e.ITestOutputMessage=e.ITestErrorMessage=e.TestMessageType=e.IRichLocation=e.testRunProfileBitsetList=e.TestRunProfileBitset=e.TestResultState=void 0;var D;(function(o){o[o.Unset=0]="Unset",o[o.Queued=1]="Queued",o[o.Running=2]="Running",o[o.Passed=3]="Passed",o[o.Failed=4]="Failed",o[o.Skipped=5]="Skipped",o[o.Errored=6]="Errored"})(D=e.TestResultState||(e.TestResultState={}));var P;(function(o){o[o.Run=2]="Run",o[o.Debug=4]="Debug",o[o.Coverage=8]="Coverage",o[o.HasNonDefaultProfile=16]="HasNonDefaultProfile",o[o.HasConfigurable=32]="HasConfigurable"})(P=e.TestRunProfileBitset||(e.TestRunProfileBitset={})),e.testRunProfileBitsetList=[2,4,8,16];var k;(function(o){o.serialize=r=>({range:r.range.toJSON(),uri:r.uri.toJSON()}),o.deserialize=r=>({range:t.Range.lift(r.range),uri:b.URI.revive(r.uri)})})(k=e.IRichLocation||(e.IRichLocation={}));var y;(function(o){o[o.Error=0]="Error",o[o.Output=1]="Output"})(y=e.TestMessageType||(e.TestMessageType={}));var p;(function(o){o.serialize=r=>({message:r.message,type:0,expected:r.expected,actual:r.actual,location:r.location&&k.serialize(r.location)}),o.deserialize=r=>({message:r.message,type:0,expected:r.expected,actual:r.actual,location:r.location&&k.deserialize(r.location)})})(p=e.ITestErrorMessage||(e.ITestErrorMessage={}));var C;(function(o){o.serialize=r=>({message:r.message,type:1,offset:r.offset,location:r.location&&k.serialize(r.location)}),o.deserialize=r=>({message:r.message,type:1,offset:r.offset,location:r.location&&k.deserialize(r.location)})})(C=e.ITestOutputMessage||(e.ITestOutputMessage={}));var T;(function(o){o.serialize=r=>r.type===0?p.serialize(r):C.serialize(r),o.deserialize=r=>r.type===0?p.deserialize(r):C.deserialize(r)})(T=e.ITestMessage||(e.ITestMessage={}));var R;(function(o){o.serialize=r=>({state:r.state,duration:r.duration,messages:r.messages.map(T.serialize)}),o.deserialize=r=>({state:r.state,duration:r.duration,messages:r.messages.map(T.deserialize)})})(R=e.ITestTaskState||(e.ITestTaskState={}));const w="\0",E=(o,r)=>o+w+r;e.namespaceTestTag=E;const d=o=>{const r=o.indexOf(w);return{ctrlId:o.slice(0,r),tagId:o.slice(r+1)}};e.denamespaceTestTag=d;var I;(function(o){o.serialize=r=>({extId:r.extId,label:r.label,tags:r.tags,busy:r.busy,children:void 0,uri:r.uri?.toJSON(),range:r.range?.toJSON()||null,description:r.description,error:r.error,sortText:r.sortText}),o.deserialize=r=>({extId:r.extId,label:r.label,tags:r.tags,busy:r.busy,children:void 0,uri:r.uri?b.URI.revive(r.uri):void 0,range:r.range?t.Range.lift(r.range):null,description:r.description,error:r.error,sortText:r.sortText})})(I=e.ITestItem||(e.ITestItem={}));var v;(function(o){o[o.NotExpandable=0]="NotExpandable",o[o.Expandable=1]="Expandable",o[o.BusyExpanding=2]="BusyExpanding",o[o.Expanded=3]="Expanded"})(v=e.TestItemExpandState||(e.TestItemExpandState={}));var m;(function(o){o.serialize=r=>({controllerId:r.controllerId,expand:r.expand,parent:r.parent,item:I.serialize(r.item)}),o.deserialize=r=>({controllerId:r.controllerId,expand:r.expand,parent:r.parent,item:I.deserialize(r.item)})})(m=e.InternalTestItem||(e.InternalTestItem={}));var g;(function(o){o.serialize=r=>{let l;return r.item&&(l={},r.item.label!==void 0&&(l.label=r.item.label),r.item.tags!==void 0&&(l.tags=r.item.tags),r.item.busy!==void 0&&(l.busy=r.item.busy),r.item.uri!==void 0&&(l.uri=r.item.uri?.toJSON()),r.item.range!==void 0&&(l.range=r.item.range?.toJSON()),r.item.description!==void 0&&(l.description=r.item.description),r.item.error!==void 0&&(l.error=r.item.error),r.item.sortText!==void 0&&(l.sortText=r.item.sortText)),{extId:r.extId,expand:r.expand,item:l}},o.deserialize=r=>{let l;return r.item&&(l={},r.item.label!==void 0&&(l.label=r.item.label),r.item.tags!==void 0&&(l.tags=r.item.tags),r.item.busy!==void 0&&(l.busy=r.item.busy),r.item.range!==void 0&&(l.range=r.item.range?t.Range.lift(r.item.range):null),r.item.description!==void 0&&(l.description=r.item.description),r.item.error!==void 0&&(l.error=r.item.error),r.item.sortText!==void 0&&(l.sortText=r.item.sortText)),{extId:r.extId,expand:r.expand,item:l}}})(g=e.ITestItemUpdate||(e.ITestItemUpdate={}));const u=(o,r)=>{r.expand!==void 0&&(o.expand=r.expand),r.item!==void 0&&(o.item=o.item?Object.assign(o.item,r.item):r.item)};e.applyTestItemUpdate=u;var c;(function(o){o.serialize=(r,l)=>({...m.serialize(r),children:l,ownComputedState:r.ownComputedState,computedState:r.computedState,tasks:r.tasks.map(R.serialize)})})(c=e.TestResultItem||(e.TestResultItem={}));var f;(function(o){o[o.Function=0]="Function",o[o.Statement=1]="Statement"})(f=e.DetailType||(e.DetailType={}));var i;(function(o){o[o.Add=0]="Add",o[o.Update=1]="Update",o[o.Remove=2]="Remove",o[o.IncrementPendingExtHosts=3]="IncrementPendingExtHosts",o[o.Retire=4]="Retire",o[o.AddTag=5]="AddTag",o[o.RemoveTag=6]="RemoveTag"})(i=e.TestDiffOpType||(e.TestDiffOpType={}));var s;(function(o){o.deserialize=r=>r.op===0?{op:r.op,item:m.deserialize(r.item)}:r.op===1?{op:r.op,item:g.deserialize(r.item)}:r,o.serialize=r=>r.op===0?{op:r.op,item:m.serialize(r.item)}:r.op===1?{op:r.op,item:g.serialize(r.item)}:r})(s=e.TestsDiffOp||(e.TestsDiffOp={}));class n{add(r){}update(r){}remove(r,l){}complete(){}}e.IncrementalChangeCollector=n;class a{constructor(){this._tags=new Map,this.items=new Map,this.roots=new Set,this.busyControllerCount=0,this.pendingRootCount=0,this.tags=this._tags}apply(r){const l=this.createChangeCollector();for(const h of r)switch(h.op){case 0:{const S=m.deserialize(h.item);if(S.parent){if(this.items.has(S.parent)){const A=this.items.get(S.parent);A.children.add(S.item.extId);const $=this.createItem(S,A);this.items.set(S.item.extId,$),l.add($)}}else{const A=this.createItem(S);this.roots.add(A),this.items.set(S.item.extId,A),l.add(A)}S.expand===2&&this.busyControllerCount++;break}case 1:{const S=g.deserialize(h.item),A=this.items.get(S.extId);if(!A)break;S.expand!==void 0&&(A.expand===2&&this.busyControllerCount--,S.expand===2&&this.busyControllerCount++),(0,e.applyTestItemUpdate)(A,S),l.update(A);break}case 2:{const S=this.items.get(h.itemId);if(!S)break;S.parent?this.items.get(S.parent).children.delete(S.item.extId):this.roots.delete(S);const A=[[h.itemId]];for(;A.length;)for(const $ of A.pop()){const W=this.items.get($);W&&(A.push(W.children),this.items.delete($),l.remove(W,W!==S),W.expand===2&&this.busyControllerCount--)}break}case 4:this.retireTest(h.itemId);break;case 3:this.updatePendingRoots(h.amount);break;case 5:this._tags.set(h.tag.id,h.tag);break;case 6:this._tags.delete(h.id);break}l.complete()}retireTest(r){}updatePendingRoots(r){this.pendingRootCount+=r}createChangeCollector(){return new n}}e.AbstractIncrementalTestCollection=a}),define(ve[120],we([0,1,14,7,2,12,81,80]),function(oe,e,b,t,D,P,k,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTestItemChildren=e.MixedTestItemController=e.InvalidTestItemError=e.DuplicateTestItemError=e.TestItemCollection=e.TestItemEventOp=void 0;var p;(function(m){m[m.Upsert=0]="Upsert",m[m.SetTags=1]="SetTags",m[m.UpdateCanResolveChildren=2]="UpdateCanResolveChildren",m[m.RemoveChild=3]="RemoveChild",m[m.SetProp=4]="SetProp",m[m.Bulk=5]="Bulk"})(p=e.TestItemEventOp||(e.TestItemEventOp={}));const C=(m,g)=>m===g,T={range:(m,g)=>m===g?!0:!m||!g?!1:m.equalsRange(g),busy:C,label:C,description:C,error:C,tags:(m,g)=>!(m.length!==g.length||m.some(u=>!g.includes(u)))},R=(m,g)=>{let u;for(const[c,f]of Object.entries(T))f(m[c],g[c])||(u?u[c]=g[c]:u={[c]:g[c]});return u};class w extends D.Disposable{constructor(g){super();this.options=g,this.debounceSendDiff=this._register(new b.RunOnceScheduler(()=>this.flushDiff(),200)),this.diffOpEmitter=this._register(new t.Emitter),this.tree=new Map,this.tags=new Map,this.diff=[],this.onDidGenerateDiff=this.diffOpEmitter.event,this.root.canResolveChildren=!0,this.upsertItem(this.root,void 0)}get root(){return this.options.root}set resolveHandler(g){this._resolveHandler=g;for(const u of this.tree.values())this.updateExpandability(u)}collectDiff(){const g=this.diff;return this.diff=[],g}pushDiff(g){const u=this.diff[this.diff.length-1];if(u&&g.op===1){if(u.op===1&&u.item.extId===g.item.extId){(0,k.applyTestItemUpdate)(u.item,g.item);return}if(u.op===0&&u.item.item.extId===g.item.extId){(0,k.applyTestItemUpdate)(u.item,g.item);return}}this.diff.push(g),this.debounceSendDiff.isScheduled()||this.debounceSendDiff.schedule()}expand(g,u){const c=this.tree.get(g);if(!!c){if((c.expandLevels===void 0||u>c.expandLevels)&&(c.expandLevels=u),c.expand===1){const f=this.resolveChildren(c);return f.isOpen()?this.expandChildren(c,u-1):f.wait().then(()=>this.expandChildren(c,u-1))}else if(c.expand===3)return c.resolveBarrier?.isOpen()===!1?c.resolveBarrier.wait().then(()=>this.expandChildren(c,u-1)):this.expandChildren(c,u-1)}}dispose(){for(const g of this.tree.values())this.options.getApiFor(g.actual).listener=void 0;this.tree.clear(),this.diff=[],super.dispose()}onTestItemEvent(g,u){switch(u.op){case 3:this.removeItem(y.TestId.joinToString(g.fullId,u.id));break;case 0:this.upsertItem(u.item,g);break;case 5:for(const c of u.ops)this.onTestItemEvent(g,c);break;case 1:this.diffTagRefs(u.new,u.old,g.fullId.toString());break;case 2:this.updateExpandability(g);break;case 4:this.pushDiff({op:1,item:{extId:g.fullId.toString(),item:u.update}});break;default:(0,P.assertNever)(u)}}upsertItem(g,u){const c=y.TestId.fromExtHostTestItem(g,this.root.id,u?.actual),f=this.options.getApiFor(g);f.parent&&f.parent!==u?.actual&&this.options.getChildren(f.parent).delete(g.id);let i=this.tree.get(c.toString());if(!i){i={fullId:c,actual:g,parent:u?c.parentId:null,expandLevels:u?.expandLevels?u.expandLevels-1:void 0,expand:0},g.tags.forEach(this.incrementTagRefs,this),this.tree.set(i.fullId.toString(),i),this.setItemParent(g,u),this.pushDiff({op:0,item:{parent:i.parent&&i.parent.toString(),controllerId:this.options.controllerId,expand:i.expand,item:this.options.toITestItem(g)}}),this.connectItemAndChildren(g,i,u);return}if(i.actual===g){this.connectItem(g,i,u);return}const s=this.options.getChildren(i.actual),n=i.actual,a=R(this.options.toITestItem(n),this.options.toITestItem(g));this.options.getApiFor(n).listener=void 0,i.actual=g,i.expand=0,a&&(a.hasOwnProperty("tags")&&(this.diffTagRefs(g.tags,n.tags,c.toString()),delete a.tags),this.onTestItemEvent(i,{op:4,update:a})),this.connectItemAndChildren(g,i,u);for(const[o,r]of s)this.options.getChildren(g).get(r.id)||this.removeItem(y.TestId.joinToString(c,r.id))}diffTagRefs(g,u,c){const f=new Set(u.map(i=>i.id));for(const i of g)f.delete(i.id)||this.incrementTagRefs(i);this.pushDiff({op:1,item:{extId:c,item:{tags:g.map(i=>(0,k.namespaceTestTag)(this.options.controllerId,i.id))}}}),f.forEach(this.decrementTagRefs,this)}incrementTagRefs(g){const u=this.tags.get(g.id);u?u.refCount++:(this.tags.set(g.id,{refCount:1}),this.pushDiff({op:5,tag:{id:(0,k.namespaceTestTag)(this.options.controllerId,g.id)}}))}decrementTagRefs(g){const u=this.tags.get(g);u&&!--u.refCount&&(this.tags.delete(g),this.pushDiff({op:6,id:(0,k.namespaceTestTag)(this.options.controllerId,g)}))}setItemParent(g,u){this.options.getApiFor(g).parent=u&&u.actual!==this.root?u.actual:void 0}connectItem(g,u,c){this.setItemParent(g,c);const f=this.options.getApiFor(g);f.parent=c?.actual,f.listener=i=>this.onTestItemEvent(u,i),this.updateExpandability(u)}connectItemAndChildren(g,u,c){this.connectItem(g,u,c);for(const[f,i]of this.options.getChildren(g))this.upsertItem(i,u)}updateExpandability(g){let u;this._resolveHandler?g.resolveBarrier?u=g.resolveBarrier.isOpen()?3:2:u=g.actual.canResolveChildren?1:0:u=0,u!==g.expand&&(g.expand=u,this.pushDiff({op:1,item:{extId:g.fullId.toString(),expand:u}}),u===1&&g.expandLevels!==void 0&&this.resolveChildren(g))}expandChildren(g,u){if(u<0)return;const c=[];for(const[f,i]of this.options.getChildren(g.actual)){const s=this.expand(y.TestId.joinToString(g.fullId,i.id),u);(0,b.isThenable)(s)&&c.push(s)}if(c.length)return Promise.all(c).then(()=>{})}resolveChildren(g){if(g.resolveBarrier)return g.resolveBarrier;if(!this._resolveHandler){const i=new b.Barrier;return i.open(),i}g.expand=2,this.pushExpandStateUpdate(g);const u=g.resolveBarrier=new b.Barrier,c=i=>{console.error(`Unhandled error in resolveHandler of test controller "${this.options.controllerId}"`,i)};let f;try{f=this._resolveHandler(g.actual===this.root?void 0:g.actual)}catch(i){c(i)}return(0,b.isThenable)(f)?f.catch(c).then(()=>{u.open(),this.updateExpandability(g)}):(u.open(),this.updateExpandability(g)),g.resolveBarrier}pushExpandStateUpdate(g){this.pushDiff({op:1,item:{extId:g.fullId.toString(),expand:g.expand}})}removeItem(g){const u=this.tree.get(g);if(!u)throw new Error("attempting to remove non-existent child");this.pushDiff({op:2,itemId:g});const c=[u];for(;c.length;){const f=c.pop();if(!!f){this.options.getApiFor(f.actual).listener=void 0;for(const i of f.actual.tags)this.decrementTagRefs(i.id);this.tree.delete(f.fullId.toString());for(const[i,s]of this.options.getChildren(f.actual))c.push(this.tree.get(y.TestId.joinToString(f.fullId,s.id)))}}}flushDiff(){const g=this.collectDiff();g.length&&this.diffOpEmitter.fire(g)}}e.TestItemCollection=w;class E extends Error{constructor(g){super(`Attempted to insert a duplicate test item ID ${g}`)}}e.DuplicateTestItemError=E;class d extends Error{constructor(g){super(`TestItem with ID "${g}" is invalid. Make sure to create it from the createTestItem method.`)}}e.InvalidTestItemError=d;class I extends Error{constructor(g,u,c){super(`TestItem with ID "${g}" is from controller "${u}" and cannot be added as a child of an item from controller "${c}".`)}}e.MixedTestItemController=I;const v=(m,g,u)=>{let c=new Map;return{get size(){return c.size},forEach(f,i){for(const s of c.values())f.call(i,s,this)},[Symbol.iterator](){return c.entries()},replace(f){const i=new Map,s=new Set(c.keys()),n={op:5,ops:[]};for(const a of f){if(!(a instanceof u))throw new d(a.id);const o=g(a).controllerId;if(o!==m.controllerId)throw new I(a.id,o,m.controllerId);if(i.has(a.id))throw new E(a.id);i.set(a.id,a),s.delete(a.id),n.ops.push({op:0,item:a})}for(const a of s.keys())n.ops.push({op:3,id:a});m.listener?.(n),c=i},add(f){if(!(f instanceof u))throw new d(f.id);c.set(f.id,f),m.listener?.({op:0,item:f})},delete(f){c.delete(f)&&m.listener?.({op:3,id:f})},get(f){return c.get(f)},toJSON(){return Array.from(c.values())}}};e.createTestItemChildren=v}),define(ve[121],we([0,1,120]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPrivateApiFor=e.createPrivateApiFor=void 0;const t=new WeakMap,D=(k,y)=>{const p={controllerId:y};return t.set(k,p),p};e.createPrivateApiFor=D;const P=k=>{const y=t.get(k);if(!y)throw new b.InvalidTestItemError(k?.id||"<unknown>");return y};e.getPrivateApiFor=P}),define(ve[248],we([0,1,25,5]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TASKS_DEFAULT=e.IWorkbenchConfigurationService=e.USER_STANDALONE_CONFIGURATIONS=e.WORKSPACE_STANDALONE_CONFIGURATIONS=e.LAUNCH_CONFIGURATION_KEY=e.TASKS_CONFIGURATION_KEY=e.FOLDER_SCOPES=e.WORKSPACE_SCOPES=e.REMOTE_MACHINE_SCOPES=e.LOCAL_MACHINE_SCOPES=e.LOCAL_MACHINE_PROFILE_SCOPES=e.PROFILE_SCOPES=e.APPLICATION_SCOPES=e.tasksSchemaId=e.launchSchemaId=e.folderSettingsSchemaId=e.workspaceSettingsSchemaId=e.machineSettingsSchemaId=e.profileSettingsSchemaId=e.userSettingsSchemaId=e.defaultSettingsSchemaId=e.FOLDER_SETTINGS_PATH=e.FOLDER_SETTINGS_NAME=e.FOLDER_CONFIG_FOLDER_NAME=void 0,e.FOLDER_CONFIG_FOLDER_NAME=".vscode",e.FOLDER_SETTINGS_NAME="settings",e.FOLDER_SETTINGS_PATH=`${e.FOLDER_CONFIG_FOLDER_NAME}/${e.FOLDER_SETTINGS_NAME}.json`,e.defaultSettingsSchemaId="vscode://schemas/settings/default",e.userSettingsSchemaId="vscode://schemas/settings/user",e.profileSettingsSchemaId="vscode://schemas/settings/profile",e.machineSettingsSchemaId="vscode://schemas/settings/machine",e.workspaceSettingsSchemaId="vscode://schemas/settings/workspace",e.folderSettingsSchemaId="vscode://schemas/settings/folder",e.launchSchemaId="vscode://schemas/launch",e.tasksSchemaId="vscode://schemas/tasks",e.APPLICATION_SCOPES=[1],e.PROFILE_SCOPES=[2,3,4,5],e.LOCAL_MACHINE_PROFILE_SCOPES=[3,4,5],e.LOCAL_MACHINE_SCOPES=[1,...e.LOCAL_MACHINE_PROFILE_SCOPES],e.REMOTE_MACHINE_SCOPES=[2,3,4,5,6],e.WORKSPACE_SCOPES=[3,4,5,6],e.FOLDER_SCOPES=[4,5,6],e.TASKS_CONFIGURATION_KEY="tasks",e.LAUNCH_CONFIGURATION_KEY="launch",e.WORKSPACE_STANDALONE_CONFIGURATIONS=Object.create(null),e.WORKSPACE_STANDALONE_CONFIGURATIONS[e.TASKS_CONFIGURATION_KEY]=`${e.FOLDER_CONFIG_FOLDER_NAME}/${e.TASKS_CONFIGURATION_KEY}.json`,e.WORKSPACE_STANDALONE_CONFIGURATIONS[e.LAUNCH_CONFIGURATION_KEY]=`${e.FOLDER_CONFIG_FOLDER_NAME}/${e.LAUNCH_CONFIGURATION_KEY}.json`,e.USER_STANDALONE_CONFIGURATIONS=Object.create(null),e.USER_STANDALONE_CONFIGURATIONS[e.TASKS_CONFIGURATION_KEY]=`${e.TASKS_CONFIGURATION_KEY}.json`,e.IWorkbenchConfigurationService=(0,t.refineServiceDecorator)(b.IConfigurationService),e.TASKS_DEFAULT=`{
	"version": "2.0.0",
	"tasks": []
}`}),define(ve[249],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IConfigurationResolverService=void 0,e.IConfigurationResolverService=(0,b.createDecorator)("configurationResolverService")}),define(ve[250],we([0,1,6,27,12,22,3,141,183,16]),function(oe,e,b,t,D,P,k,y,p,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractVariableResolverService=void 0;class T{constructor(w,E,d,I){this._contributedVariables=new Map,this._context=w,this._labelService=E,this._userHomePromise=d,I&&(this._envVariablesPromise=I.then(v=>this.prepareEnv(v)))}prepareEnv(w){if(k.isWindows){const E=Object.create(null);return Object.keys(w).forEach(d=>{E[d.toLowerCase()]=w[d]}),E}return w}resolveWithEnvironment(w,E,d){return this.recursiveResolve({env:this.prepareEnv(w),userHome:void 0},E?E.uri:void 0,d)}async resolveAsync(w,E){const d={env:await this._envVariablesPromise,userHome:await this._userHomePromise};return this.recursiveResolve(d,w?w.uri:void 0,E)}async resolveAnyBase(w,E,d,I){const v=P.deepClone(E);k.isWindows&&v.windows?Object.keys(v.windows).forEach(g=>v[g]=v.windows[g]):k.isMacintosh&&v.osx?Object.keys(v.osx).forEach(g=>v[g]=v.osx[g]):k.isLinux&&v.linux&&Object.keys(v.linux).forEach(g=>v[g]=v.linux[g]),delete v.windows,delete v.osx,delete v.linux;const m={env:await this._envVariablesPromise,userHome:await this._userHomePromise};return this.recursiveResolve(m,w?w.uri:void 0,v,d,I)}async resolveAnyAsync(w,E,d){return this.resolveAnyBase(w,E,d)}async resolveAnyMap(w,E,d){const I=new Map;return{newConfig:await this.resolveAnyBase(w,E,d,I),resolvedVariables:I}}resolveWithInteractionReplace(w,E,d,I){throw new Error("resolveWithInteractionReplace not implemented.")}resolveWithInteraction(w,E,d,I){throw new Error("resolveWithInteraction not implemented.")}contributeVariable(w,E){if(this._contributedVariables.has(w))throw new Error("Variable "+w+" is contributed twice.");this._contributedVariables.set(w,E)}async recursiveResolve(w,E,d,I,v){if(D.isString(d))return this.resolveString(w,E,d,I,v);if(D.isArray(d))return Promise.all(d.map(m=>this.recursiveResolve(w,E,m,I,v)));if(D.isObject(d)){const m=Object.create(null),g=await Promise.all(Object.keys(d).map(async u=>[await this.resolveString(w,E,u,I,v),await this.recursiveResolve(w,E,d[u],I,v)]));for(const[u,c]of g)m[u]=c;return m}return d}resolveString(w,E,d,I,v){return(0,C.replaceAsync)(d,T.VARIABLE_REGEXP,async(m,g)=>{if(g.includes(T.VARIABLE_LHS))return m;let u=await this.evaluateSingleVariable(w,m,g,E,I);return v?.set(g,u),u!==m&&D.isString(u)&&u.match(T.VARIABLE_REGEXP)&&(u=await this.resolveString(w,E,u,I,v)),u})}fsPath(w){return this._labelService?this._labelService.getUriLabel(w,{noPrefix:!0}):w.fsPath}async evaluateSingleVariable(w,E,d,I,v){let m;const g=d.split(":");g.length>1&&(d=g[0],m=g[1]);const u=()=>{const i=this._context.getFilePath();if(i)return i;throw new Error((0,p.localize)(0,null,E))},c=()=>{const i=u();if(this._context.getWorkspaceFolderPathForFile){const s=this._context.getWorkspaceFolderPathForFile();if(s)return s}throw new Error((0,p.localize)(1,null,E,b.basename(i)))},f=()=>{if(m){const i=this._context.getFolderUri(m);if(i)return i;throw new Error((0,p.localize)(2,null,E,m))}if(I)return I;throw this._context.getWorkspaceFolderCount()>1?new Error((0,p.localize)(3,null,E)):new Error((0,p.localize)(4,null,E))};switch(d){case"env":if(m){if(w.env){const i=w.env[k.isWindows?m.toLowerCase():m];if(D.isString(i))return i}return""}throw new Error((0,p.localize)(5,null,E));case"config":if(m){const i=this._context.getConfigurationValue(I,m);if(D.isUndefinedOrNull(i))throw new Error((0,p.localize)(6,null,E,m));if(D.isObject(i))throw new Error((0,p.localize)(7,null,E,m));return i}throw new Error((0,p.localize)(8,null,E));case"command":return this.resolveFromMap(E,m,v,"command");case"input":return this.resolveFromMap(E,m,v,"input");case"extensionInstallFolder":if(m){const i=await this._context.getExtension(m);if(!i)throw new Error((0,p.localize)(9,null,E,m));return this.fsPath(i.extensionLocation)}throw new Error((0,p.localize)(10,null,E));default:switch(d){case"workspaceRoot":case"workspaceFolder":return(0,y.normalizeDriveLetter)(this.fsPath(f()));case"cwd":return I||m?(0,y.normalizeDriveLetter)(this.fsPath(f())):t.cwd();case"workspaceRootFolderName":case"workspaceFolderBasename":return b.basename(this.fsPath(f()));case"userHome":{if(w.userHome)return w.userHome;throw new Error((0,p.localize)(11,null,E))}case"lineNumber":{const i=this._context.getLineNumber();if(i)return i;throw new Error((0,p.localize)(12,null,E))}case"selectedText":{const i=this._context.getSelectedText();if(i)return i;throw new Error((0,p.localize)(13,null,E))}case"file":return u();case"fileWorkspaceFolder":return c();case"relativeFile":return I||m?b.relative(this.fsPath(f()),u()):u();case"relativeFileDirname":{const i=b.dirname(u());if(I||m){const s=b.relative(this.fsPath(f()),i);return s.length===0?".":s}return i}case"fileDirname":return b.dirname(u());case"fileExtname":return b.extname(u());case"fileBasename":return b.basename(u());case"fileBasenameNoExtension":{const i=b.basename(u());return i.slice(0,i.length-b.extname(i).length)}case"fileDirnameBasename":return b.basename(b.dirname(u()));case"execPath":{const i=this._context.getExecPath();return i||E}case"execInstallFolder":{const i=this._context.getAppRoot();return i||E}case"pathSeparator":return b.sep;default:try{const i=m?`${d}:${m}`:d;return this.resolveFromMap(E,i,v,void 0)}catch{return E}}}}resolveFromMap(w,E,d,I){if(E&&d){const v=I===void 0?d[E]:d[I+":"+E];if(typeof v=="string")return v;throw new Error((0,p.localize)(14,null,w))}return w}}e.AbstractVariableResolverService=T,T.VARIABLE_LHS="${",T.VARIABLE_REGEXP=/\$\{(.*?)\}/g}),define(ve[251],we([0,1,5,117]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.preferredSideBySideGroupDirection=e.isEditorGroup=e.OpenEditorContext=e.GroupsOrder=e.isEditorReplacement=e.MergeGroupMode=e.GroupsArrangement=e.GroupLocation=e.GroupOrientation=e.GroupDirection=e.IEditorGroupsService=void 0,e.IEditorGroupsService=(0,b.createDecorator)("editorGroupsService");var D;(function(d){d[d.UP=0]="UP",d[d.DOWN=1]="DOWN",d[d.LEFT=2]="LEFT",d[d.RIGHT=3]="RIGHT"})(D=e.GroupDirection||(e.GroupDirection={}));var P;(function(d){d[d.HORIZONTAL=0]="HORIZONTAL",d[d.VERTICAL=1]="VERTICAL"})(P=e.GroupOrientation||(e.GroupOrientation={}));var k;(function(d){d[d.FIRST=0]="FIRST",d[d.LAST=1]="LAST",d[d.NEXT=2]="NEXT",d[d.PREVIOUS=3]="PREVIOUS"})(k=e.GroupLocation||(e.GroupLocation={}));var y;(function(d){d[d.MAXIMIZE=0]="MAXIMIZE",d[d.EVEN=1]="EVEN",d[d.TOGGLE=2]="TOGGLE"})(y=e.GroupsArrangement||(e.GroupsArrangement={}));var p;(function(d){d[d.COPY_EDITORS=0]="COPY_EDITORS",d[d.MOVE_EDITORS=1]="MOVE_EDITORS"})(p=e.MergeGroupMode||(e.MergeGroupMode={}));function C(d){const I=d;return(0,t.isEditorInput)(I?.editor)&&(0,t.isEditorInput)(I?.replacement)}e.isEditorReplacement=C;var T;(function(d){d[d.CREATION_TIME=0]="CREATION_TIME",d[d.MOST_RECENTLY_ACTIVE=1]="MOST_RECENTLY_ACTIVE",d[d.GRID_APPEARANCE=2]="GRID_APPEARANCE"})(T=e.GroupsOrder||(e.GroupsOrder={}));var R;(function(d){d[d.NEW_EDITOR=1]="NEW_EDITOR",d[d.MOVE_EDITOR=2]="MOVE_EDITOR",d[d.COPY_EDITOR=3]="COPY_EDITOR"})(R=e.OpenEditorContext||(e.OpenEditorContext={}));function w(d){const I=d;return!!I&&typeof I.id=="number"&&Array.isArray(I.editors)}e.isEditorGroup=w;function E(d){return d.getValue("workbench.editor.openSideBySideDirection")==="down"?1:3}e.preferredSideBySideGroupDirection=E}),define(ve[122],we([0,1,5,251]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPreferredGroup=e.SIDE_GROUP=e.ACTIVE_GROUP=e.IEditorService=void 0,e.IEditorService=(0,b.createDecorator)("editorService"),e.ACTIVE_GROUP=-1,e.SIDE_GROUP=-2;function D(P){const k=P;return typeof P=="number"||(0,t.isEditorGroup)(k)}e.isPreferredGroup=D}),define(ve[123],we([0,1,18,15,86,24,134,42,22,12,4,49,149,187,207,121,245,80,81,122,116,64]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g,u,c,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataTransfer=e.DataTransferItem=e.ViewBadge=e.TypeHierarchyItem=e.CodeActionTriggerKind=e.TestCoverage=e.TestResults=e.TestItem=e.TestTag=e.TestMessage=e.NotebookRendererScript=e.NotebookDocumentContentOptions=e.NotebookStatusBarItem=e.NotebookExclusiveDocumentPattern=e.NotebookCellOutput=e.NotebookCellOutputItem=e.NotebookCellData=e.NotebookData=e.NotebookCellKind=e.NotebookCellExecutionState=e.NotebookCellExecutionSummary=e.NotebookRange=e.LanguageSelector=e.GlobPattern=e.TextEditorOpenOptions=e.FoldingRangeKind=e.FoldingRange=e.ProgressLocation=e.EndOfLine=e.TextEditorLineNumbersStyle=e.TextDocumentSaveReason=e.SelectionRange=e.Color=e.ColorPresentation=e.DocumentLink=e.InlayHintKind=e.InlayHintLabelPart=e.InlayHint=e.SignatureHelp=e.SignatureInformation=e.ParameterInformation=e.CompletionItem=e.CompletionItemKind=e.CompletionItemTag=e.CompletionContext=e.CompletionTriggerKind=e.DocumentHighlight=e.InlineValueContext=e.InlineValue=e.EvaluatableExpression=e.Hover=e.DefinitionLink=e.location=e.CallHierarchyOutgoingCall=e.CallHierarchyIncomingCall=e.CallHierarchyItem=e.DocumentSymbol=e.WorkspaceSymbol=e.SymbolTag=e.SymbolKind=e.WorkspaceEdit=e.TextEdit=e.DecorationRenderOptions=e.DecorationRangeBehavior=e.ThemableDecorationRenderOptions=e.ThemableDecorationAttachmentRenderOptions=e.pathOrURIToURI=e.fromRangeOrRangeWithMessage=e.MarkdownString=e.isDecorationOptionsArr=e.ViewColumn=e.DiagnosticSeverity=e.DiagnosticRelatedInformation=e.Diagnostic=e.DiagnosticTag=e.DocumentSelector=e.Position=e.TokenType=e.Range=e.Selection=void 0;var i;(function(Se){function Ie(V){const{selectionStartLineNumber:De,selectionStartColumn:Le,positionLineNumber:Ke,positionColumn:Ge}=V,Ve=new c.Position(De-1,Le-1),lt=new c.Position(Ke-1,Ge-1);return new c.Selection(Ve,lt)}Se.to=Ie;function me(V){const{anchor:De,active:Le}=V;return{selectionStartLineNumber:De.line+1,selectionStartColumn:De.character+1,positionLineNumber:Le.line+1,positionColumn:Le.character+1}}Se.from=me})(i=e.Selection||(e.Selection={}));var s;(function(Se){function Ie(V){if(!V)return;const{start:De,end:Le}=V;return{startLineNumber:De.line+1,startColumn:De.character+1,endLineNumber:Le.line+1,endColumn:Le.character+1}}Se.from=Ie;function me(V){if(!V)return;const{startLineNumber:De,startColumn:Le,endLineNumber:Ke,endColumn:Ge}=V;return new c.Range(De-1,Le-1,Ke-1,Ge-1)}Se.to=me})(s=e.Range||(e.Range={}));var n;(function(Se){function Ie(me){switch(me){case 1:return c.StandardTokenType.Comment;case 0:return c.StandardTokenType.Other;case 3:return c.StandardTokenType.RegEx;case 2:return c.StandardTokenType.String}}Se.to=Ie})(n=e.TokenType||(e.TokenType={}));var a;(function(Se){function Ie(V){return new c.Position(V.lineNumber-1,V.column-1)}Se.to=Ie;function me(V){return{lineNumber:V.line+1,column:V.character+1}}Se.from=me})(a=e.Position||(e.Position={}));var o;(function(Se){function Ie(De,Le){return(0,b.coalesce)((0,b.asArray)(De).map(Ke=>me(Ke,Le)))}Se.from=Ie;function me(De,Le){if(typeof De=="string")return{$serialized:!0,language:De};if(De)return{$serialized:!0,language:De.language,scheme:V(De.scheme,Le),pattern:ce.from(De.pattern)??void 0,exclusive:De.exclusive,notebookType:De.notebookType}}function V(De,Le){return Le&&typeof De=="string"?Le.transformOutgoingScheme(De):De}})(o=e.DocumentSelector||(e.DocumentSelector={}));var r;(function(Se){function Ie(V){switch(V){case c.DiagnosticTag.Unnecessary:return 1;case c.DiagnosticTag.Deprecated:return 2}}Se.from=Ie;function me(V){switch(V){case 1:return c.DiagnosticTag.Unnecessary;case 2:return c.DiagnosticTag.Deprecated;default:return}}Se.to=me})(r=e.DiagnosticTag||(e.DiagnosticTag={}));var l;(function(Se){function Ie(V){let De;return V.code&&((0,C.isString)(V.code)||(0,C.isNumber)(V.code)?De=String(V.code):De={value:String(V.code.value),target:V.code.target}),{...s.from(V.range),message:V.message,source:V.source,code:De,severity:S.from(V.severity),relatedInformation:V.relatedInformation&&V.relatedInformation.map(h.from),tags:Array.isArray(V.tags)?(0,b.coalesce)(V.tags.map(r.from)):void 0}}Se.from=Ie;function me(V){const De=new c.Diagnostic(s.to(V),V.message,S.to(V.severity));return De.source=V.source,De.code=(0,C.isString)(V.code)?V.code:V.code?.value,De.relatedInformation=V.relatedInformation&&V.relatedInformation.map(h.to),De.tags=V.tags&&(0,b.coalesce)(V.tags.map(r.to)),De}Se.to=me})(l=e.Diagnostic||(e.Diagnostic={}));var h;(function(Se){function Ie(V){return{...s.from(V.location.range),message:V.message,resource:V.location.uri}}Se.from=Ie;function me(V){return new c.DiagnosticRelatedInformation(new c.Location(V.resource,s.to(V)),V.message)}Se.to=me})(h=e.DiagnosticRelatedInformation||(e.DiagnosticRelatedInformation={}));var S;(function(Se){function Ie(V){switch(V){case c.DiagnosticSeverity.Error:return d.MarkerSeverity.Error;case c.DiagnosticSeverity.Warning:return d.MarkerSeverity.Warning;case c.DiagnosticSeverity.Information:return d.MarkerSeverity.Info;case c.DiagnosticSeverity.Hint:return d.MarkerSeverity.Hint}return d.MarkerSeverity.Error}Se.from=Ie;function me(V){switch(V){case d.MarkerSeverity.Info:return c.DiagnosticSeverity.Information;case d.MarkerSeverity.Warning:return c.DiagnosticSeverity.Warning;case d.MarkerSeverity.Error:return c.DiagnosticSeverity.Error;case d.MarkerSeverity.Hint:return c.DiagnosticSeverity.Hint;default:return c.DiagnosticSeverity.Error}}Se.to=me})(S=e.DiagnosticSeverity||(e.DiagnosticSeverity={}));var A;(function(Se){function Ie(V){return typeof V=="number"&&V>=c.ViewColumn.One?V-1:V===c.ViewColumn.Beside?u.SIDE_GROUP:u.ACTIVE_GROUP}Se.from=Ie;function me(V){if(typeof V=="number"&&V>=0)return V+1;throw new Error("invalid 'EditorGroupColumn'")}Se.to=me})(A=e.ViewColumn||(e.ViewColumn={}));function $(Se){return typeof Se.range!="undefined"}function W(Se){return Se.length===0?!0:!!$(Se[0])}e.isDecorationOptionsArr=W;var ee;(function(Se){function Ie(Ge){return Ge.map(Se.from)}Se.fromMany=Ie;function me(Ge){return Ge&&typeof Ge=="object"&&typeof Ge.language=="string"&&typeof Ge.value=="string"}function V(Ge){let Ve;if(me(Ge)){const{language:at,value:Ct}=Ge;Ve={value:"```"+at+`
`+Ct+"\n```\n"}}else c.MarkdownString.isMarkdownString(Ge)?Ve={value:Ge.value,isTrusted:Ge.isTrusted,supportThemeIcons:Ge.supportThemeIcons,supportHtml:Ge.supportHtml,baseUri:Ge.baseUri}:typeof Ge=="string"?Ve={value:Ge}:Ve={value:""};const lt=Object.create(null);Ve.uris=lt;const bt=at=>{try{let Ct=T.URI.parse(at,!0);Ct=Ct.with({query:De(Ct.query,lt)}),lt[at]=Ct}catch{}return""},vt=new k.marked.Renderer;return vt.link=bt,vt.image=at=>typeof at=="string"?bt(D.parseHrefAndDimensions(at).href):"",(0,k.marked)(Ve.value,{renderer:vt}),Ve}Se.from=V;function De(Ge,Ve){if(!Ge)return Ge;let lt;try{lt=(0,y.parse)(Ge)}catch{}if(!lt)return Ge;let bt=!1;return lt=(0,p.cloneAndChange)(lt,vt=>{if(T.URI.isUri(vt)){const at=`__uri_${Math.random().toString(16).slice(2,8)}`;return Ve[at]=vt,bt=!0,at}else return}),bt?JSON.stringify(lt):Ge}function Le(Ge){const Ve=new c.MarkdownString(Ge.value,Ge.supportThemeIcons);return Ve.isTrusted=Ge.isTrusted,Ve.supportHtml=Ge.supportHtml,Ve.baseUri=Ge.baseUri?T.URI.from(Ge.baseUri):void 0,Ve}Se.to=Le;function Ke(Ge){if(!!Ge)return typeof Ge=="string"?Ge:Se.from(Ge)}Se.fromStrict=Ke})(ee=e.MarkdownString||(e.MarkdownString={}));function L(Se){return W(Se)?Se.map(Ie=>({range:s.from(Ie.range),hoverMessage:Array.isArray(Ie.hoverMessage)?ee.fromMany(Ie.hoverMessage):Ie.hoverMessage?ee.from(Ie.hoverMessage):void 0,renderOptions:Ie.renderOptions})):Se.map(Ie=>({range:s.from(Ie)}))}e.fromRangeOrRangeWithMessage=L;function q(Se){return typeof Se=="undefined"?Se:typeof Se=="string"?T.URI.file(Se):Se}e.pathOrURIToURI=q;var ne;(function(Se){function Ie(me){return typeof me=="undefined"?me:{contentText:me.contentText,contentIconPath:me.contentIconPath?q(me.contentIconPath):void 0,border:me.border,borderColor:me.borderColor,fontStyle:me.fontStyle,fontWeight:me.fontWeight,textDecoration:me.textDecoration,color:me.color,backgroundColor:me.backgroundColor,margin:me.margin,width:me.width,height:me.height}}Se.from=Ie})(ne=e.ThemableDecorationAttachmentRenderOptions||(e.ThemableDecorationAttachmentRenderOptions={}));var x;(function(Se){function Ie(me){return typeof me=="undefined"?me:{backgroundColor:me.backgroundColor,outline:me.outline,outlineColor:me.outlineColor,outlineStyle:me.outlineStyle,outlineWidth:me.outlineWidth,border:me.border,borderColor:me.borderColor,borderRadius:me.borderRadius,borderSpacing:me.borderSpacing,borderStyle:me.borderStyle,borderWidth:me.borderWidth,fontStyle:me.fontStyle,fontWeight:me.fontWeight,textDecoration:me.textDecoration,cursor:me.cursor,color:me.color,opacity:me.opacity,letterSpacing:me.letterSpacing,gutterIconPath:me.gutterIconPath?q(me.gutterIconPath):void 0,gutterIconSize:me.gutterIconSize,overviewRulerColor:me.overviewRulerColor,before:me.before?ne.from(me.before):void 0,after:me.after?ne.from(me.after):void 0}}Se.from=Ie})(x=e.ThemableDecorationRenderOptions||(e.ThemableDecorationRenderOptions={}));var fe;(function(Se){function Ie(me){if(typeof me=="undefined")return me;switch(me){case c.DecorationRangeBehavior.OpenOpen:return 0;case c.DecorationRangeBehavior.ClosedClosed:return 1;case c.DecorationRangeBehavior.OpenClosed:return 2;case c.DecorationRangeBehavior.ClosedOpen:return 3}}Se.from=Ie})(fe=e.DecorationRangeBehavior||(e.DecorationRangeBehavior={}));var M;(function(Se){function Ie(me){return{isWholeLine:me.isWholeLine,rangeBehavior:me.rangeBehavior?fe.from(me.rangeBehavior):void 0,overviewRulerLane:me.overviewRulerLane,light:me.light?x.from(me.light):void 0,dark:me.dark?x.from(me.dark):void 0,backgroundColor:me.backgroundColor,outline:me.outline,outlineColor:me.outlineColor,outlineStyle:me.outlineStyle,outlineWidth:me.outlineWidth,border:me.border,borderColor:me.borderColor,borderRadius:me.borderRadius,borderSpacing:me.borderSpacing,borderStyle:me.borderStyle,borderWidth:me.borderWidth,fontStyle:me.fontStyle,fontWeight:me.fontWeight,textDecoration:me.textDecoration,cursor:me.cursor,color:me.color,opacity:me.opacity,letterSpacing:me.letterSpacing,gutterIconPath:me.gutterIconPath?q(me.gutterIconPath):void 0,gutterIconSize:me.gutterIconSize,overviewRulerColor:me.overviewRulerColor,before:me.before?ne.from(me.before):void 0,after:me.after?ne.from(me.after):void 0}}Se.from=Ie})(M=e.DecorationRenderOptions||(e.DecorationRenderOptions={}));var B;(function(Se){function Ie(V){return{text:V.newText,eol:V.newEol&&$e.from(V.newEol),range:s.from(V.range)}}Se.from=Ie;function me(V){const De=new c.TextEdit(s.to(V.range),V.text);return De.newEol=typeof V.eol=="undefined"?void 0:$e.to(V.eol),De}Se.to=me})(B=e.TextEdit||(e.TextEdit={}));var U;(function(Se){function Ie(V,De,Le){const Ke={edits:[]};if(V instanceof c.WorkspaceEdit){const Ge=new P.ResourceSet;for(const Ve of V._allEntries())Ve._type===1&&T.URI.isUri(Ve.to)&&Ve.from===void 0&&Ge.add(Ve.to);for(const Ve of V._allEntries())if(Ve._type===1)Ke.edits.push({oldResource:Ve.from,newResource:Ve.to,options:Ve.options,metadata:Ve.metadata});else if(Ve._type===2)Ke.edits.push({resource:Ve.uri,textEdit:B.from(Ve.edit),versionId:Ge.has(Ve.uri)?void 0:De?.getTextDocumentVersion(Ve.uri),metadata:Ve.metadata});else if(Ve._type===6){if(!Le){console.warn("DROPPING snippet text edit because proposal IS NOT ENABLED",Ve);continue}Ke.edits.push({resource:Ve.uri,textEdit:{range:s.from(Ve.range),text:Ve.edit.value,insertAsSnippet:!0},versionId:Ge.has(Ve.uri)?void 0:De?.getTextDocumentVersion(Ve.uri),metadata:Ve.metadata})}else Ve._type===3?Ke.edits.push({metadata:Ve.metadata,resource:Ve.uri,cellEdit:Ve.edit,notebookMetadata:Ve.notebookMetadata,notebookVersionId:De?.getNotebookDocumentVersion(Ve.uri)}):Ve._type===5&&Ke.edits.push({metadata:Ve.metadata,resource:Ve.uri,notebookVersionId:De?.getNotebookDocumentVersion(Ve.uri),cellEdit:{editType:1,index:Ve.index,count:Ve.count,cells:Ve.cells.map(Ye.from)}})}return Ke}Se.from=Ie;function me(V){const De=new c.WorkspaceEdit;for(const Le of V.edits)Le.textEdit?De.replace(T.URI.revive(Le.resource),s.to(Le.textEdit.range),Le.textEdit.text):De.renameFile(T.URI.revive(Le.oldResource),T.URI.revive(Le.newResource),Le.options);return De}Se.to=me})(U=e.WorkspaceEdit||(e.WorkspaceEdit={}));var z;(function(Se){const Ie=Object.create(null);Ie[c.SymbolKind.File]=0,Ie[c.SymbolKind.Module]=1,Ie[c.SymbolKind.Namespace]=2,Ie[c.SymbolKind.Package]=3,Ie[c.SymbolKind.Class]=4,Ie[c.SymbolKind.Method]=5,Ie[c.SymbolKind.Property]=6,Ie[c.SymbolKind.Field]=7,Ie[c.SymbolKind.Constructor]=8,Ie[c.SymbolKind.Enum]=9,Ie[c.SymbolKind.Interface]=10,Ie[c.SymbolKind.Function]=11,Ie[c.SymbolKind.Variable]=12,Ie[c.SymbolKind.Constant]=13,Ie[c.SymbolKind.String]=14,Ie[c.SymbolKind.Number]=15,Ie[c.SymbolKind.Boolean]=16,Ie[c.SymbolKind.Array]=17,Ie[c.SymbolKind.Object]=18,Ie[c.SymbolKind.Key]=19,Ie[c.SymbolKind.Null]=20,Ie[c.SymbolKind.EnumMember]=21,Ie[c.SymbolKind.Struct]=22,Ie[c.SymbolKind.Event]=23,Ie[c.SymbolKind.Operator]=24,Ie[c.SymbolKind.TypeParameter]=25;function me(De){return typeof Ie[De]=="number"?Ie[De]:6}Se.from=me;function V(De){for(const Le in Ie)if(Ie[Le]===De)return Number(Le);return c.SymbolKind.Property}Se.to=V})(z=e.SymbolKind||(e.SymbolKind={}));var X;(function(Se){function Ie(V){switch(V){case c.SymbolTag.Deprecated:return 1}}Se.from=Ie;function me(V){switch(V){case 1:return c.SymbolTag.Deprecated}}Se.to=me})(X=e.SymbolTag||(e.SymbolTag={}));var ue;(function(Se){function Ie(V){return{name:V.name,kind:z.from(V.kind),tags:V.tags&&V.tags.map(X.from),containerName:V.containerName,location:F.from(V.location)}}Se.from=Ie;function me(V){const De=new c.SymbolInformation(V.name,z.to(V.kind),V.containerName,F.to(V.location));return De.tags=V.tags&&V.tags.map(X.to),De}Se.to=me})(ue=e.WorkspaceSymbol||(e.WorkspaceSymbol={}));var de;(function(Se){function Ie(V){const De={name:V.name||"!!MISSING: name!!",detail:V.detail,range:s.from(V.range),selectionRange:s.from(V.selectionRange),kind:z.from(V.kind),tags:V.tags?.map(X.from)??[]};return V.children&&(De.children=V.children.map(Ie)),De}Se.from=Ie;function me(V){const De=new c.DocumentSymbol(V.name,V.detail,z.to(V.kind),s.to(V.range),s.to(V.selectionRange));return(0,b.isNonEmptyArray)(V.tags)&&(De.tags=V.tags.map(X.to)),V.children&&(De.children=V.children.map(me)),De}Se.to=me})(de=e.DocumentSymbol||(e.DocumentSymbol={}));var G;(function(Se){function Ie(V){const De=new c.CallHierarchyItem(z.to(V.kind),V.name,V.detail||"",T.URI.revive(V.uri),s.to(V.range),s.to(V.selectionRange));return De._sessionId=V._sessionId,De._itemId=V._itemId,De}Se.to=Ie;function me(V,De,Le){if(De=De??V._sessionId,Le=Le??V._itemId,De===void 0||Le===void 0)throw new Error("invalid item");return{_sessionId:De,_itemId:Le,name:V.name,detail:V.detail,kind:z.from(V.kind),uri:V.uri,range:s.from(V.range),selectionRange:s.from(V.selectionRange),tags:V.tags?.map(X.from)}}Se.from=me})(G=e.CallHierarchyItem||(e.CallHierarchyItem={}));var se;(function(Se){function Ie(me){return new c.CallHierarchyIncomingCall(G.to(me.from),me.fromRanges.map(V=>s.to(V)))}Se.to=Ie})(se=e.CallHierarchyIncomingCall||(e.CallHierarchyIncomingCall={}));var O;(function(Se){function Ie(me){return new c.CallHierarchyOutgoingCall(G.to(me.to),me.fromRanges.map(V=>s.to(V)))}Se.to=Ie})(O=e.CallHierarchyOutgoingCall||(e.CallHierarchyOutgoingCall={}));var F;(function(Se){function Ie(V){return{range:V.range&&s.from(V.range),uri:V.uri}}Se.from=Ie;function me(V){return new c.Location(T.URI.revive(V.uri),s.to(V.range))}Se.to=me})(F=e.location||(e.location={}));var K;(function(Se){function Ie(V){const De=V,Le=V;return{originSelectionRange:De.originSelectionRange?s.from(De.originSelectionRange):void 0,uri:De.targetUri?De.targetUri:Le.uri,range:s.from(De.targetRange?De.targetRange:Le.range),targetSelectionRange:De.targetSelectionRange?s.from(De.targetSelectionRange):void 0}}Se.from=Ie;function me(V){return{targetUri:T.URI.revive(V.uri),targetRange:s.to(V.range),targetSelectionRange:V.targetSelectionRange?s.to(V.targetSelectionRange):void 0,originSelectionRange:V.originSelectionRange?s.to(V.originSelectionRange):void 0}}Se.to=me})(K=e.DefinitionLink||(e.DefinitionLink={}));var re;(function(Se){function Ie(V){return{range:s.from(V.range),contents:ee.fromMany(V.contents)}}Se.from=Ie;function me(V){return new c.Hover(V.contents.map(ee.to),s.to(V.range))}Se.to=me})(re=e.Hover||(e.Hover={}));var he;(function(Se){function Ie(V){return{range:s.from(V.range),expression:V.expression}}Se.from=Ie;function me(V){return new c.EvaluatableExpression(s.to(V.range),V.expression)}Se.to=me})(he=e.EvaluatableExpression||(e.EvaluatableExpression={}));var te;(function(Se){function Ie(V){if(V instanceof c.InlineValueText)return{type:"text",range:s.from(V.range),text:V.text};if(V instanceof c.InlineValueVariableLookup)return{type:"variable",range:s.from(V.range),variableName:V.variableName,caseSensitiveLookup:V.caseSensitiveLookup};if(V instanceof c.InlineValueEvaluatableExpression)return{type:"expression",range:s.from(V.range),expression:V.expression};throw new Error("Unknown 'InlineValue' type")}Se.from=Ie;function me(V){switch(V.type){case"text":return{range:s.to(V.range),text:V.text};case"variable":return{range:s.to(V.range),variableName:V.variableName,caseSensitiveLookup:V.caseSensitiveLookup};case"expression":return{range:s.to(V.range),expression:V.expression}}}Se.to=me})(te=e.InlineValue||(e.InlineValue={}));var Q;(function(Se){function Ie(V){return{frameId:V.frameId,stoppedLocation:s.from(V.stoppedLocation)}}Se.from=Ie;function me(V){return new c.InlineValueContext(V.frameId,s.to(V.stoppedLocation))}Se.to=me})(Q=e.InlineValueContext||(e.InlineValueContext={}));var Z;(function(Se){function Ie(V){return{range:s.from(V.range),kind:V.kind}}Se.from=Ie;function me(V){return new c.DocumentHighlight(s.to(V.range),V.kind)}Se.to=me})(Z=e.DocumentHighlight||(e.DocumentHighlight={}));var ae;(function(Se){function Ie(me){switch(me){case 1:return c.CompletionTriggerKind.TriggerCharacter;case 2:return c.CompletionTriggerKind.TriggerForIncompleteCompletions;case 0:default:return c.CompletionTriggerKind.Invoke}}Se.to=Ie})(ae=e.CompletionTriggerKind||(e.CompletionTriggerKind={}));var j;(function(Se){function Ie(me){return{triggerKind:ae.to(me.triggerKind),triggerCharacter:me.triggerCharacter}}Se.to=Ie})(j=e.CompletionContext||(e.CompletionContext={}));var ie;(function(Se){function Ie(V){switch(V){case c.CompletionItemTag.Deprecated:return 1}}Se.from=Ie;function me(V){switch(V){case 1:return c.CompletionItemTag.Deprecated}}Se.to=me})(ie=e.CompletionItemTag||(e.CompletionItemTag={}));var H;(function(Se){const Ie=new Map([[c.CompletionItemKind.Method,0],[c.CompletionItemKind.Function,1],[c.CompletionItemKind.Constructor,2],[c.CompletionItemKind.Field,3],[c.CompletionItemKind.Variable,4],[c.CompletionItemKind.Class,5],[c.CompletionItemKind.Interface,7],[c.CompletionItemKind.Struct,6],[c.CompletionItemKind.Module,8],[c.CompletionItemKind.Property,9],[c.CompletionItemKind.Unit,12],[c.CompletionItemKind.Value,13],[c.CompletionItemKind.Constant,14],[c.CompletionItemKind.Enum,15],[c.CompletionItemKind.EnumMember,16],[c.CompletionItemKind.Keyword,17],[c.CompletionItemKind.Snippet,27],[c.CompletionItemKind.Text,18],[c.CompletionItemKind.Color,19],[c.CompletionItemKind.File,20],[c.CompletionItemKind.Reference,21],[c.CompletionItemKind.Folder,23],[c.CompletionItemKind.Event,10],[c.CompletionItemKind.Operator,11],[c.CompletionItemKind.TypeParameter,24],[c.CompletionItemKind.Issue,26],[c.CompletionItemKind.User,25]]);function me(Le){return Ie.get(Le)??9}Se.from=me;const V=new Map([[0,c.CompletionItemKind.Method],[1,c.CompletionItemKind.Function],[2,c.CompletionItemKind.Constructor],[3,c.CompletionItemKind.Field],[4,c.CompletionItemKind.Variable],[5,c.CompletionItemKind.Class],[7,c.CompletionItemKind.Interface],[6,c.CompletionItemKind.Struct],[8,c.CompletionItemKind.Module],[9,c.CompletionItemKind.Property],[12,c.CompletionItemKind.Unit],[13,c.CompletionItemKind.Value],[14,c.CompletionItemKind.Constant],[15,c.CompletionItemKind.Enum],[16,c.CompletionItemKind.EnumMember],[17,c.CompletionItemKind.Keyword],[27,c.CompletionItemKind.Snippet],[18,c.CompletionItemKind.Text],[19,c.CompletionItemKind.Color],[20,c.CompletionItemKind.File],[21,c.CompletionItemKind.Reference],[23,c.CompletionItemKind.Folder],[10,c.CompletionItemKind.Event],[11,c.CompletionItemKind.Operator],[24,c.CompletionItemKind.TypeParameter],[25,c.CompletionItemKind.User],[26,c.CompletionItemKind.Issue]]);function De(Le){return V.get(Le)??c.CompletionItemKind.Property}Se.to=De})(H=e.CompletionItemKind||(e.CompletionItemKind={}));var Y;(function(Se){function Ie(me,V){const De=new c.CompletionItem(me.label);return De.insertText=me.insertText,De.kind=H.to(me.kind),De.tags=me.tags?.map(ie.to),De.detail=me.detail,De.documentation=D.isMarkdownString(me.documentation)?ee.to(me.documentation):me.documentation,De.sortText=me.sortText,De.filterText=me.filterText,De.preselect=me.preselect,De.commitCharacters=me.commitCharacters,R.Range.isIRange(me.range)?De.range=s.to(me.range):typeof me.range=="object"&&(De.range={inserting:s.to(me.range.insert),replacing:s.to(me.range.replace)}),De.keepWhitespace=typeof me.insertTextRules=="undefined"?!1:Boolean(me.insertTextRules&1),typeof me.insertTextRules!="undefined"&&me.insertTextRules&4?De.insertText=new c.SnippetString(me.insertText):(De.insertText=me.insertText,De.textEdit=De.range instanceof c.Range?new c.TextEdit(De.range,De.insertText):void 0),me.additionalTextEdits&&me.additionalTextEdits.length>0&&(De.additionalTextEdits=me.additionalTextEdits.map(Le=>B.to(Le))),De.command=V&&me.command?V.fromInternal(me.command):void 0,De}Se.to=Ie})(Y=e.CompletionItem||(e.CompletionItem={}));var le;(function(Se){function Ie(V){return{label:V.label,documentation:ee.fromStrict(V.documentation)}}Se.from=Ie;function me(V){return{label:V.label,documentation:D.isMarkdownString(V.documentation)?ee.to(V.documentation):V.documentation}}Se.to=me})(le=e.ParameterInformation||(e.ParameterInformation={}));var pe;(function(Se){function Ie(V){return{label:V.label,documentation:ee.fromStrict(V.documentation),parameters:Array.isArray(V.parameters)?V.parameters.map(le.from):[],activeParameter:V.activeParameter}}Se.from=Ie;function me(V){return{label:V.label,documentation:D.isMarkdownString(V.documentation)?ee.to(V.documentation):V.documentation,parameters:Array.isArray(V.parameters)?V.parameters.map(le.to):[],activeParameter:V.activeParameter}}Se.to=me})(pe=e.SignatureInformation||(e.SignatureInformation={}));var Pe;(function(Se){function Ie(V){return{activeSignature:V.activeSignature,activeParameter:V.activeParameter,signatures:Array.isArray(V.signatures)?V.signatures.map(pe.from):[]}}Se.from=Ie;function me(V){return{activeSignature:V.activeSignature,activeParameter:V.activeParameter,signatures:Array.isArray(V.signatures)?V.signatures.map(pe.to):[]}}Se.to=me})(Pe=e.SignatureHelp||(e.SignatureHelp={}));var Te;(function(Se){function Ie(me,V){const De=new c.InlayHint(a.to(V.position),typeof V.label=="string"?V.label:V.label.map(Ne.to.bind(void 0,me)),V.kind&&Ue.to(V.kind));return De.textEdits=V.textEdits&&V.textEdits.map(B.to),De.tooltip=D.isMarkdownString(V.tooltip)?ee.to(V.tooltip):V.tooltip,De.paddingLeft=V.paddingLeft,De.paddingRight=V.paddingRight,De}Se.to=Ie})(Te=e.InlayHint||(e.InlayHint={}));var Ne;(function(Se){function Ie(me,V){const De=new c.InlayHintLabelPart(V.label);return De.tooltip=D.isMarkdownString(V.tooltip)?ee.to(V.tooltip):V.tooltip,w.Command.is(V.command)&&(De.command=me.fromInternal(V.command)),V.location&&(De.location=F.to(V.location)),De}Se.to=Ie})(Ne=e.InlayHintLabelPart||(e.InlayHintLabelPart={}));var Ue;(function(Se){function Ie(V){return V}Se.from=Ie;function me(V){return V}Se.to=me})(Ue=e.InlayHintKind||(e.InlayHintKind={}));var ge;(function(Se){function Ie(V){return{range:s.from(V.range),url:V.target,tooltip:V.tooltip}}Se.from=Ie;function me(V){let De;if(V.url)try{De=typeof V.url=="string"?T.URI.parse(V.url,!0):T.URI.revive(V.url)}catch{}return new c.DocumentLink(s.to(V.range),De)}Se.to=me})(ge=e.DocumentLink||(e.DocumentLink={}));var be;(function(Se){function Ie(V){const De=new c.ColorPresentation(V.label);return V.textEdit&&(De.textEdit=B.to(V.textEdit)),V.additionalTextEdits&&(De.additionalTextEdits=V.additionalTextEdits.map(Le=>B.to(Le))),De}Se.to=Ie;function me(V){return{label:V.label,textEdit:V.textEdit?B.from(V.textEdit):void 0,additionalTextEdits:V.additionalTextEdits?V.additionalTextEdits.map(De=>B.from(De)):void 0}}Se.from=me})(be=e.ColorPresentation||(e.ColorPresentation={}));var ye;(function(Se){function Ie(V){return new c.Color(V[0],V[1],V[2],V[3])}Se.to=Ie;function me(V){return[V.red,V.green,V.blue,V.alpha]}Se.from=me})(ye=e.Color||(e.Color={}));var Fe;(function(Se){function Ie(V){return{range:s.from(V.range)}}Se.from=Ie;function me(V){return new c.SelectionRange(s.to(V.range))}Se.to=me})(Fe=e.SelectionRange||(e.SelectionRange={}));var Me;(function(Se){function Ie(me){switch(me){case 2:return c.TextDocumentSaveReason.AfterDelay;case 1:return c.TextDocumentSaveReason.Manual;case 3:case 4:return c.TextDocumentSaveReason.FocusOut}}Se.to=Ie})(Me=e.TextDocumentSaveReason||(e.TextDocumentSaveReason={}));var Qe;(function(Se){function Ie(V){switch(V){case c.TextEditorLineNumbersStyle.Off:return 0;case c.TextEditorLineNumbersStyle.Relative:return 2;case c.TextEditorLineNumbersStyle.On:default:return 1}}Se.from=Ie;function me(V){switch(V){case 0:return c.TextEditorLineNumbersStyle.Off;case 2:return c.TextEditorLineNumbersStyle.Relative;case 1:default:return c.TextEditorLineNumbersStyle.On}}Se.to=me})(Qe=e.TextEditorLineNumbersStyle||(e.TextEditorLineNumbersStyle={}));var $e;(function(Se){function Ie(V){if(V===c.EndOfLine.CRLF)return 1;if(V===c.EndOfLine.LF)return 0}Se.from=Ie;function me(V){if(V===1)return c.EndOfLine.CRLF;if(V===0)return c.EndOfLine.LF}Se.to=me})($e=e.EndOfLine||(e.EndOfLine={}));var Ze;(function(Se){function Ie(me){if(typeof me=="object")return me.viewId;switch(me){case c.ProgressLocation.SourceControl:return 3;case c.ProgressLocation.Window:return 10;case c.ProgressLocation.Notification:return 15}throw new Error("Unknown 'ProgressLocation'")}Se.from=Ie})(Ze=e.ProgressLocation||(e.ProgressLocation={}));var xe;(function(Se){function Ie(me){const V={start:me.start+1,end:me.end+1};return me.kind&&(V.kind=je.from(me.kind)),V}Se.from=Ie})(xe=e.FoldingRange||(e.FoldingRange={}));var je;(function(Se){function Ie(me){if(me)switch(me){case c.FoldingRangeKind.Comment:return w.FoldingRangeKind.Comment;case c.FoldingRangeKind.Imports:return w.FoldingRangeKind.Imports;case c.FoldingRangeKind.Region:return w.FoldingRangeKind.Region}}Se.from=Ie})(je=e.FoldingRangeKind||(e.FoldingRangeKind={}));var We;(function(Se){function Ie(me){if(me)return{pinned:typeof me.preview=="boolean"?!me.preview:void 0,inactive:me.background,preserveFocus:me.preserveFocus,selection:typeof me.selection=="object"?s.from(me.selection):void 0,override:typeof me.override=="boolean"?E.EditorResolution.DISABLED:void 0}}Se.from=Ie})(We=e.TextEditorOpenOptions||(e.TextEditorOpenOptions={}));var ce;(function(Se){function Ie(Le){return Le instanceof c.RelativePattern?Le.toJSON():typeof Le=="string"?Le:me(Le)||V(Le)?new c.RelativePattern(Le.baseUri??Le.base,Le.pattern).toJSON():Le}Se.from=Ie;function me(Le){const Ke=Le;return Ke?T.URI.isUri(Ke.baseUri)&&typeof Ke.pattern=="string":!1}function V(Le){const Ke=Le;return Ke?typeof Ke.base=="string"&&typeof Ke.pattern=="string":!1}function De(Le){return typeof Le=="string"?Le:new c.RelativePattern(T.URI.revive(Le.baseUri),Le.pattern)}Se.to=De})(ce=e.GlobPattern||(e.GlobPattern={}));var Ce;(function(Se){function Ie(me){if(me){if(Array.isArray(me))return me.map(Ie);if(typeof me=="string")return me;{const V=me;return{language:V.language,scheme:V.scheme,pattern:ce.from(V.pattern),exclusive:V.exclusive,notebookType:V.notebookType}}}else return}Se.from=Ie})(Ce=e.LanguageSelector||(e.LanguageSelector={}));var ke;(function(Se){function Ie(V){return{start:V.start,end:V.end}}Se.from=Ie;function me(V){return new c.NotebookRange(V.start,V.end)}Se.to=me})(ke=e.NotebookRange||(e.NotebookRange={}));var Oe;(function(Se){function Ie(V){return{timing:typeof V.runStartTime=="number"&&typeof V.runEndTime=="number"?{startTime:V.runStartTime,endTime:V.runEndTime}:void 0,executionOrder:V.executionOrder,success:V.lastRunSuccess}}Se.to=Ie;function me(V){return{lastRunSuccess:V.success,runStartTime:V.timing?.startTime,runEndTime:V.timing?.endTime,executionOrder:V.executionOrder}}Se.from=me})(Oe=e.NotebookCellExecutionSummary||(e.NotebookCellExecutionSummary={}));var Re;(function(Se){function Ie(me){if(me===v.NotebookCellExecutionState.Executing)return c.NotebookCellExecutionState.Executing;if(me===v.NotebookCellExecutionState.Pending)return c.NotebookCellExecutionState.Pending;if(me===v.NotebookCellExecutionState.Unconfirmed)return c.NotebookCellExecutionState.Pending;throw new Error(`Unknown state: ${me}`)}Se.to=Ie})(Re=e.NotebookCellExecutionState||(e.NotebookCellExecutionState={}));var Be;(function(Se){function Ie(V){switch(V){case c.NotebookCellKind.Markup:return v.CellKind.Markup;case c.NotebookCellKind.Code:default:return v.CellKind.Code}}Se.from=Ie;function me(V){switch(V){case v.CellKind.Markup:return c.NotebookCellKind.Markup;case v.CellKind.Code:default:return c.NotebookCellKind.Code}}Se.to=me})(Be=e.NotebookCellKind||(e.NotebookCellKind={}));var He;(function(Se){function Ie(V){const De={metadata:V.metadata??Object.create(null),cells:[]};for(const Le of V.cells)c.NotebookCellData.validate(Le),De.cells.push(Ye.from(Le));return De}Se.from=Ie;function me(V){const De=new c.NotebookData(V.cells.map(Ye.to));return(0,C.isEmptyObject)(V.metadata)||(De.metadata=V.metadata),De}Se.to=me})(He=e.NotebookData||(e.NotebookData={}));var Ye;(function(Se){function Ie(V){return{cellKind:Be.from(V.kind),language:V.languageId,mime:V.mime,source:V.value,metadata:V.metadata,internalMetadata:Oe.from(V.executionSummary??{}),outputs:V.outputs?V.outputs.map(nt.from):[]}}Se.from=Ie;function me(V){return new c.NotebookCellData(Be.to(V.cellKind),V.source,V.language,V.mime,V.outputs?V.outputs.map(nt.to):void 0,V.metadata,V.internalMetadata?Oe.to(V.internalMetadata):void 0)}Se.to=me})(Ye=e.NotebookCellData||(e.NotebookCellData={}));var Xe;(function(Se){function Ie(V){return{mime:V.mime,valueBytes:t.VSBuffer.wrap(V.data)}}Se.from=Ie;function me(V){return new c.NotebookCellOutputItem(V.valueBytes.buffer,V.mime)}Se.to=me})(Xe=e.NotebookCellOutputItem||(e.NotebookCellOutputItem={}));var nt;(function(Se){function Ie(V){return{outputId:V.id,items:V.items.map(Xe.from),metadata:V.metadata}}Se.from=Ie;function me(V){const De=V.items.map(Xe.to);return new c.NotebookCellOutput(De,V.outputId,V.metadata)}Se.to=me})(nt=e.NotebookCellOutput||(e.NotebookCellOutput={}));var it;(function(Se){function Ie(De){return V(De)?{include:(0,C.withNullAsUndefined)(ce.from(De.include)),exclude:(0,C.withNullAsUndefined)(ce.from(De.exclude))}:(0,C.withNullAsUndefined)(ce.from(De))}Se.from=Ie;function me(De){return V(De)?{include:ce.to(De.include),exclude:ce.to(De.exclude)}:ce.to(De)}Se.to=me;function V(De){const Le=De;return Le?!(0,C.isUndefinedOrNull)(Le.include)&&!(0,C.isUndefinedOrNull)(Le.exclude):!1}})(it=e.NotebookExclusiveDocumentPattern||(e.NotebookExclusiveDocumentPattern={}));var rt;(function(Se){function Ie(me,V,De){const Le=typeof me.command=="string"?{title:"",command:me.command}:me.command;return{alignment:me.alignment===c.NotebookCellStatusBarAlignment.Left?1:2,command:V.toInternal(Le,De),text:me.text,tooltip:me.tooltip,accessibilityInformation:me.accessibilityInformation,priority:me.priority}}Se.from=Ie})(rt=e.NotebookStatusBarItem||(e.NotebookStatusBarItem={}));var ft;(function(Se){function Ie(me){return{transientOutputs:me?.transientOutputs??!1,transientCellMetadata:me?.transientCellMetadata??{},transientDocumentMetadata:me?.transientDocumentMetadata??{}}}Se.from=Ie})(ft=e.NotebookDocumentContentOptions||(e.NotebookDocumentContentOptions={}));var ut;(function(Se){function Ie(V){return{uri:V.uri,provides:V.provides}}Se.from=Ie;function me(V){return new c.NotebookRendererScript(T.URI.revive(V.uri),V.provides)}Se.to=me})(ut=e.NotebookRendererScript||(e.NotebookRendererScript={}));var kt;(function(Se){function Ie(V){return{message:ee.fromStrict(V.message)||"",type:0,expected:V.expectedOutput,actual:V.actualOutput,location:V.location&&{range:s.from(V.location.range),uri:V.location.uri}}}Se.from=Ie;function me(V){const De=new c.TestMessage(typeof V.message=="string"?V.message:ee.to(V.message));return De.actualOutput=V.actual,De.expectedOutput=V.expected,De.location=V.location?F.to(V.location):void 0,De}Se.to=me})(kt=e.TestMessage||(e.TestMessage={}));var yt;(function(Se){Se.namespace=g.namespaceTestTag,Se.denamespace=g.denamespaceTestTag})(yt=e.TestTag||(e.TestTag={}));var At;(function(Se){function Ie(V){const De=(0,I.getPrivateApiFor)(V).controllerId;return{extId:m.TestId.fromExtHostTestItem(V,De).toString(),label:V.label,uri:T.URI.revive(V.uri),busy:!1,tags:V.tags.map(Le=>yt.namespace(De,Le.id)),range:R.Range.lift(s.from(V.range)),description:V.description||null,sortText:V.sortText||null,error:V.error&&ee.fromStrict(V.error)||null}}Se.from=Ie;function me(V){return{parent:void 0,error:void 0,id:m.TestId.fromString(V.extId).localId,label:V.label,uri:T.URI.revive(V.uri),tags:(V.tags||[]).map(De=>{const{tagId:Le}=yt.denamespace(De);return new c.TestTag(Le)}),children:{add:()=>{},delete:()=>{},forEach:()=>{},*[Symbol.iterator](){},get:()=>{},replace:()=>{},size:0},range:s.to(V.range||void 0),canResolveChildren:!1,busy:!1,description:V.description||void 0,sortText:V.sortText||void 0}}Se.toPlain=me})(At=e.TestItem||(e.TestItem={})),function(Se){function Ie(V){return{id:V.id}}Se.from=Ie;function me(V){return new c.TestTag(V.id)}Se.to=me}(yt=e.TestTag||(e.TestTag={}));var ht;(function(Se){const Ie=(V,De)=>{const Le={...At.toPlain(V.item),parent:void 0,taskStates:V.tasks.map(Ke=>({state:Ke.state,duration:Ke.duration,messages:Ke.messages.filter(Ge=>Ge.type===0).map(kt.to)})),children:V.children.map(Ke=>De.get(Ke)).filter(C.isDefined).map(Ke=>Ie(Ke,De))};for(const Ke of Le.children)Ke.parent=Le;return Le};function me(V){const De=[],Le=new Map;for(const Ke of V.items)Le.set(Ke.item.extId,Ke),V.request.targets.some(Ge=>Ge.controllerId===Ke.controllerId&&Ge.testIds.includes(Ke.item.extId))&&De.push(Ke);return{completedAt:V.completedAt,results:De.map(Ke=>Ie(Ke,Le))}}Se.to=me})(ht=e.TestResults||(e.TestResults={}));var Et;(function(Se){function Ie(Le){return{covered:Le.covered,total:Le.covered}}function me(Le){return"line"in Le?a.from(Le):s.from(Le)}function V(Le){return"branches"in Le?{count:Le.executionCount,location:me(Le.location),type:1,branches:Le.branches.length?Le.branches.map(Ke=>({count:Ke.executionCount,location:Ke.location&&me(Ke.location)})):void 0}:{type:0,count:Le.executionCount,location:me(Le.location)}}Se.fromDetailed=V;function De(Le){return{uri:Le.uri,statement:Ie(Le.statementCoverage),branch:Le.branchCoverage&&Ie(Le.branchCoverage),function:Le.functionCoverage&&Ie(Le.functionCoverage),details:Le.detailedCoverage?.map(V)}}Se.fromFile=De})(Et=e.TestCoverage||(e.TestCoverage={}));var Tt;(function(Se){function Ie(me){switch(me){case 1:return c.CodeActionTriggerKind.Invoke;case 2:return c.CodeActionTriggerKind.Automatic}}Se.to=Ie})(Tt=e.CodeActionTriggerKind||(e.CodeActionTriggerKind={}));var st;(function(Se){function Ie(V){const De=new c.TypeHierarchyItem(z.to(V.kind),V.name,V.detail||"",T.URI.revive(V.uri),s.to(V.range),s.to(V.selectionRange));return De._sessionId=V._sessionId,De._itemId=V._itemId,De}Se.to=Ie;function me(V,De,Le){if(De=De??V._sessionId,Le=Le??V._itemId,De===void 0||Le===void 0)throw new Error("invalid item");return{_sessionId:De,_itemId:Le,kind:z.from(V.kind),name:V.name,detail:V.detail??"",uri:V.uri,range:s.from(V.range),selectionRange:s.from(V.selectionRange),tags:V.tags?.map(X.from)}}Se.from=me})(st=e.TypeHierarchyItem||(e.TypeHierarchyItem={}));var St;(function(Se){function Ie(me){if(!!me)return{value:me.value,tooltip:me.tooltip}}Se.from=Ie})(St=e.ViewBadge||(e.ViewBadge={}));var dt;(function(Se){function Ie(me,V){const De=me.fileData;return De?new class extends c.DataTransferItem{asFile(){return{name:De.name,uri:T.URI.revive(De.uri),data:(0,f.once)(()=>V())}}}(""):new c.DataTransferItem(me.asString)}Se.toDataTransferItem=Ie})(dt=e.DataTransferItem||(e.DataTransferItem={}));var mt;(function(Se){function Ie(V,De){const Le=V.items.map(([Ke,Ge],Ve)=>[Ke,dt.toDataTransferItem(Ge,()=>De(Ve))]);return new c.DataTransfer(Le)}Se.toDataTransfer=Ie;async function me(V){const De={items:[]},Le=[];return V.forEach((Ke,Ge)=>{Le.push((async()=>{const Ve=await Ke.asString(),lt=Ke.asFile();De.items.push([Ge,{asString:Ve,fileData:lt?{name:lt.name,uri:lt.uri}:void 0}])})())}),await Promise.all(Le),De}Se.toDataTransferDTO=me})(mt=e.DataTransfer||(e.DataTransfer={}))}),define(ve[252],we([0,1,49,121,80,120,81,123,4]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostTestItemCollection=e.TestItemRootImpl=e.TestItemImpl=e.toItemFromContext=void 0;const C=(u,c,f,i)=>{let s=c;return{enumerable:!0,configurable:!1,get(){return s},set(n){if(!f(s,n)){const a=s;s=n,u.listener?.(i(n,a))}}}},T=(u,c)=>u===c,R={range:(u,c)=>u===c?!0:!u||!c?!1:u.isEqual(c),label:T,description:T,sortText:T,busy:T,error:T,canResolveChildren:T,tags:(u,c)=>!(u.length!==c.length||u.some(f=>!c.find(i=>f.id===i.id)))},w=u=>c=>({op:4,update:u(c)}),E=(u,c)=>({range:C(u,void 0,R.range,w(f=>({range:b.Range.lift(y.Range.from(f))}))),label:C(u,c,R.label,w(f=>({label:f}))),description:C(u,void 0,R.description,w(f=>({description:f}))),sortText:C(u,void 0,R.sortText,w(f=>({sortText:f}))),canResolveChildren:C(u,!1,R.canResolveChildren,f=>({op:2,state:f})),busy:C(u,!1,R.busy,w(f=>({busy:f}))),error:C(u,void 0,R.error,w(f=>({error:y.MarkdownString.fromStrict(f)||null}))),tags:C(u,[],R.tags,(f,i)=>({op:1,new:f.map(y.TestTag.from),old:i.map(y.TestTag.from)}))}),d=u=>{const c=D.TestId.fromString(u.extId),f=new v(c.controllerId,c.localId,u.label,p.URI.revive(u.uri)||void 0);return f.range=y.Range.to(u.range||void 0),f.description=u.description||void 0,f.sortText=u.sortText||void 0,f.tags=u.tags.map(i=>y.TestTag.to({id:(0,k.denamespaceTestTag)(i).tagId})),f},I=u=>{let c;for(const f of u.tests){const i=d(f.item);(0,t.getPrivateApiFor)(i).parent=c,c=i}return c};e.toItemFromContext=I;class v{constructor(c,f,i,s){if(f.includes("\0"))throw new Error(`Test IDs may not include the ${JSON.stringify(f)} symbol`);const n=(0,t.createPrivateApiFor)(this,c);Object.defineProperties(this,{id:{value:f,enumerable:!0,writable:!1},uri:{value:s,enumerable:!0,writable:!1},parent:{enumerable:!1,get(){return n.parent instanceof m?void 0:n.parent}},children:{value:(0,P.createTestItemChildren)(n,t.getPrivateApiFor,v),enumerable:!0,writable:!1},...E(n,i)})}}e.TestItemImpl=v;class m extends v{constructor(c,f){super(c,c,f,void 0)}}e.TestItemRootImpl=m;class g extends P.TestItemCollection{constructor(c,f){super({controllerId:c,getApiFor:t.getPrivateApiFor,getChildren:i=>i.children,root:new m(c,f),toITestItem:y.TestItem.from})}}e.ExtHostTestItemCollection=g}),define(ve[253],we([0,1,12,248,13,105,78,119,249,117,122,8,203,118]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RemoteTerminalChannelClient=e.REMOTE_TERMINAL_CHANNEL_NAME=void 0,e.REMOTE_TERMINAL_CHANNEL_NAME="remoteterminal";let d=class{constructor(v,m,g,u,c,f,i,s,n,a){this._remoteAuthority=v,this._channel=m,this._configurationService=g,this._workspaceContextService=u,this._resolverService=c,this._environmentVariableService=f,this._remoteAuthorityResolverService=i,this._logService=s,this._editorService=n,this._labelService=a}get onPtyHostExit(){return this._channel.listen("$onPtyHostExitEvent")}get onPtyHostStart(){return this._channel.listen("$onPtyHostStartEvent")}get onPtyHostUnresponsive(){return this._channel.listen("$onPtyHostUnresponsiveEvent")}get onPtyHostResponsive(){return this._channel.listen("$onPtyHostResponsiveEvent")}get onPtyHostRequestResolveVariables(){return this._channel.listen("$onPtyHostRequestResolveVariablesEvent")}get onProcessData(){return this._channel.listen("$onProcessDataEvent")}get onProcessExit(){return this._channel.listen("$onProcessExitEvent")}get onProcessReady(){return this._channel.listen("$onProcessReadyEvent")}get onProcessReplay(){return this._channel.listen("$onProcessReplayEvent")}get onProcessOrphanQuestion(){return this._channel.listen("$onProcessOrphanQuestion")}get onExecuteCommand(){return this._channel.listen("$onExecuteCommand")}get onDidRequestDetach(){return this._channel.listen("$onDidRequestDetach")}get onDidChangeProperty(){return this._channel.listen("$onDidChangeProperty")}restartPtyHost(){return this._channel.call("$restartPtyHost",[])}async createProcess(v,m,g,u,c,f,i,s){await this._configurationService.whenRemoteConfigurationLoaded();const n=Object.create(null),a=g?(0,b.withNullAsUndefined)(this._workspaceContextService.getWorkspaceFolder(g)):void 0;let o;try{o=(await this._resolverService.resolveAnyMap(a,{shellLaunchConfig:v,configuration:m})).resolvedVariables}catch(L){this._logService.error(L)}if(o)for(const[L,q]of o.entries())(/^config:/.test(L)||L==="selectedText"||L==="lineNumber")&&(n[L]=q);const r=[];for(const[L,q]of this._environmentVariableService.collections.entries())r.push([L,(0,y.serializeEnvironmentVariableCollection)(q.map)]);const l=await this._remoteAuthorityResolverService.resolveAuthority(this._remoteAuthority),h=l.options&&l.options.extensionHostEnv,S=this._workspaceContextService.getWorkspace(),A=S.folders,$=g?this._workspaceContextService.getWorkspaceFolder(g):null,W=C.EditorResourceAccessor.getOriginalUri(this._editorService.activeEditor,{supportSideBySide:C.SideBySideEditor.PRIMARY,filterByScheme:[R.Schemas.file,R.Schemas.vscodeUserData,R.Schemas.vscodeRemote]}),ee={configuration:m,resolvedVariables:n,envVariableCollections:r,shellLaunchConfig:v,workspaceId:S.id,workspaceName:this._labelService.getWorkspaceLabel(S),workspaceFolders:A,activeWorkspaceFolder:$,activeFileResource:W,shouldPersistTerminal:c,options:u,cols:f,rows:i,unicodeVersion:s,resolverEnv:h};return await this._channel.call("$createProcess",ee)}requestDetachInstance(v,m){return this._channel.call("$requestDetachInstance",[v,m])}acceptDetachInstanceReply(v,m){return this._channel.call("$acceptDetachInstanceReply",[v,m])}attachToProcess(v){return this._channel.call("$attachToProcess",[v])}detachFromProcess(v){return this._channel.call("$detachFromProcess",[v])}listProcesses(){return this._channel.call("$listProcesses")}reduceConnectionGraceTime(){return this._channel.call("$reduceConnectionGraceTime")}processBinary(v,m){return this._channel.call("$processBinary",[v,m])}start(v){return this._channel.call("$start",[v])}input(v,m){return this._channel.call("$input",[v,m])}acknowledgeDataEvent(v,m){return this._channel.call("$acknowledgeDataEvent",[v,m])}setUnicodeVersion(v,m){return this._channel.call("$setUnicodeVersion",[v,m])}shutdown(v,m){return this._channel.call("$shutdown",[v,m])}resize(v,m,g){return this._channel.call("$resize",[v,m,g])}getInitialCwd(v){return this._channel.call("$getInitialCwd",[v])}getCwd(v){return this._channel.call("$getCwd",[v])}orphanQuestionReply(v){return this._channel.call("$orphanQuestionReply",[v])}sendCommandResult(v,m,g){return this._channel.call("$sendCommandResult",[v,m,g])}installAutoReply(v,m){return this._channel.call("$installAutoReply",[v,m])}uninstallAllAutoReplies(){return this._channel.call("$uninstallAllAutoReplies",[])}getDefaultSystemShell(v){return this._channel.call("$getDefaultSystemShell",[v])}getProfiles(v,m,g){return this._channel.call("$getProfiles",[this._workspaceContextService.getWorkspace().id,v,m,g])}acceptPtyHostResolvedVariables(v,m){return this._channel.call("$acceptPtyHostResolvedVariables",[v,m])}getEnvironment(){return this._channel.call("$getEnvironment")}getWslPath(v){return this._channel.call("$getWslPath",[v])}setTerminalLayoutInfo(v){const g={workspaceId:this._workspaceContextService.getWorkspace().id,tabs:v?v.tabs:[]};return this._channel.call("$setTerminalLayoutInfo",g)}updateTitle(v,m,g){return this._channel.call("$updateTitle",[v,m,g])}updateIcon(v,m,g){return this._channel.call("$updateIcon",[v,m,g])}refreshProperty(v,m){return this._channel.call("$refreshProperty",[v,m])}updateProperty(v,m,g){return this._channel.call("$updateProperty",[v,m,g])}getTerminalLayoutInfo(){const m={workspaceId:this._workspaceContextService.getWorkspace().id};return this._channel.call("$getTerminalLayoutInfo",m)}reviveTerminalProcesses(v,m){return this._channel.call("$reviveTerminalProcesses",[v,m])}getRevivedPtyNewId(v){return this._channel.call("$getRevivedPtyNewId",[v])}serializeTerminalState(v){return this._channel.call("$serializeTerminalState",[v])}};d=_e([Ae(2,t.IWorkbenchConfigurationService),Ae(3,k.IWorkspaceContextService),Ae(4,p.IConfigurationResolverService),Ae(5,E.IEnvironmentVariableService),Ae(6,P.IRemoteAuthorityResolverService),Ae(7,D.ILogService),Ae(8,T.IEditorService),Ae(9,w.ILabelService)],d),e.RemoteTerminalChannelClient=d}),define(ve[254],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readExtHostConnection=e.writeExtHostConnection=e.MessagePortExtHostConnection=e.SocketExtHostConnection=e.IPCExtHostConnection=e.ExtHostConnectionType=void 0;var b;(function(T){T[T.IPC=1]="IPC",T[T.Socket=2]="Socket",T[T.MessagePort=3]="MessagePort"})(b=e.ExtHostConnectionType||(e.ExtHostConnectionType={}));class t{constructor(R){this.pipeName=R,this.type=1}serialize(R){R[t.ENV_KEY]=this.pipeName}}e.IPCExtHostConnection=t,t.ENV_KEY="VSCODE_EXTHOST_IPC_HOOK";class D{constructor(){this.type=2}serialize(R){R[D.ENV_KEY]="1"}}e.SocketExtHostConnection=D,D.ENV_KEY="VSCODE_EXTHOST_WILL_SEND_SOCKET";class P{constructor(){this.type=3}serialize(R){R[P.ENV_KEY]="1"}}e.MessagePortExtHostConnection=P,P.ENV_KEY="VSCODE_WILL_SEND_MESSAGE_PORT";function k(T){delete T[t.ENV_KEY],delete T[D.ENV_KEY],delete T[P.ENV_KEY]}function y(T,R){k(R),T.serialize(R)}e.writeExtHostConnection=y;function p(T){if(T[t.ENV_KEY])return C(T,new t(T[t.ENV_KEY]));if(T[D.ENV_KEY])return C(T,new D);if(T[P.ENV_KEY])return C(T,new P);throw new Error("No connection information defined in environment!")}e.readExtHostConnection=p;function C(T,R){return k(T),R}}),define(ve[124],we([0,1,43,89,79,8,6,15,7,57,77,13,40,3,56,114,2,254]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionHostConnection=e.buildUserEnvironment=void 0;async function g(n={},a,o,r,l){const h=await(0,D.getNLSConfiguration)(o,r.userDataPath);let S={};if(a)try{S=await(0,T.getResolvedShellEnv)(l,r.args,process.env)}catch(q){l.error("ExtensionHostConnection#buildUserEnvironment resolving shell environment failed",q)}const $={...process.env,...S,VSCODE_AMD_ENTRYPOINT:"vs/workbench/api/node/extensionHostProcess",VSCODE_HANDLES_UNCAUGHT_ERRORS:"true",VSCODE_NLS_CONFIG:JSON.stringify(h,void 0,0),...n},W=r.isBuilt?(0,k.join)(r.appRoot,"bin"):(0,k.join)(r.appRoot,"resources","server","bin-dev"),ee=(0,k.join)(W,"remote-cli");let L=f($,"PATH");return L?L=ee+k.delimiter+L:L=ee,i($,"PATH",L),r.args["without-browser-env-var"]||($.BROWSER=(0,k.join)(W,"helpers",E.isWindows?"browser.cmd":"browser.sh")),s($),$}e.buildUserEnvironment=g;class u{constructor(a,o){this.socket=a,this.initialDataChunk=o}socketDrain(){return this.socket.drain()}toIExtHostSocketMessage(){let a,o,r;return this.socket instanceof C.NodeSocket?(a=!0,o=!1,r=y.VSBuffer.alloc(0)):(a=!1,o=this.socket.permessageDeflate,r=this.socket.recordedInflateBytes),{type:"VSCODE_EXTHOST_IPC_SOCKET",initialDataChunk:this.initialDataChunk.buffer.toString("base64"),skipWebSocketFrames:a,permessageDeflate:o,inflateBytes:r.buffer.toString("base64")}}}let c=class{constructor(a,o,r,l,h,S,A){this._reconnectionToken=a,this._environmentService=h,this._logService=S,this._extensionHostStatusService=A,this._onClose=new p.Emitter,this.onClose=this._onClose.event,this._canSendSocket=!E.isWindows||!this._environmentService.args["socket-path"],this._disposed=!1,this._remoteAddress=o,this._extensionHostProcess=null,this._connectionData=new u(r,l),this._log("New connection established.")}get _logPrefix(){return`[${this._remoteAddress}][${this._reconnectionToken.substr(0,8)}][ExtensionHostConnection] `}_log(a){this._logService.info(`${this._logPrefix}${a}`)}_logError(a){this._logService.error(`${this._logPrefix}${a}`)}async _pipeSockets(a,o){const r=new v.DisposableStore;r.add(o.socket),r.add((0,v.toDisposable)(()=>{a.destroy()}));const l=()=>{r.dispose()};r.add(o.socket.onEnd(l)),r.add(o.socket.onClose(l)),r.add(p.Event.fromNodeEventEmitter(a,"end")(l)),r.add(p.Event.fromNodeEventEmitter(a,"close")(l)),r.add(p.Event.fromNodeEventEmitter(a,"error")(l)),r.add(o.socket.onData(h=>a.write(h.buffer))),r.add(p.Event.fromNodeEventEmitter(a,"data")(h=>{o.socket.write(y.VSBuffer.wrap(h))})),o.initialDataChunk.byteLength>0&&a.write(o.initialDataChunk.buffer)}async _sendSocketToExtensionHost(a,o){await o.socketDrain();const r=o.toIExtHostSocketMessage();let l;o.socket instanceof C.NodeSocket?l=o.socket.socket:l=o.socket.socket.socket,a.send(r,l)}shortenReconnectionGraceTimeIfNecessary(){if(!this._extensionHostProcess)return;const a={type:"VSCODE_EXTHOST_IPC_REDUCE_GRACE_TIME"};this._extensionHostProcess.send(a)}acceptReconnection(a,o,r){this._remoteAddress=a,this._log("The client has reconnected.");const l=new u(o,r);if(!this._extensionHostProcess){this._connectionData=l;return}this._sendSocketToExtensionHost(this._extensionHostProcess,l)}_cleanResources(){this._disposed||(this._disposed=!0,this._connectionData&&(this._connectionData.socket.end(),this._connectionData=null),this._extensionHostProcess&&(this._extensionHostProcess.kill(),this._extensionHostProcess=null),this._onClose.fire(void 0))}async start(a){try{let o=process.execArgv?process.execArgv.filter(L=>!/^--inspect(-brk)?=/.test(L)):[];a.port&&!process.pkg&&(o=[`--inspect${a.break?"-brk":""}=${a.port}`]);const r=await g(a.env,!0,a.language,this._environmentService,this._logService);(0,d.removeDangerousEnvVariables)(r);let l;if(this._canSendSocket)(0,m.writeExtHostConnection)(new m.SocketExtHostConnection,r),l=null;else{const{namedPipeServer:L,pipeName:q}=await this._listenOnPipe();(0,m.writeExtHostConnection)(new m.IPCExtHostConnection(q),r),l=L}const h={env:r,execArgv:o,silent:!0},S=["--type=extensionHost","--transformURIs"],A=this._environmentService.args["use-host-proxy"];S.push(`--useHostProxy=${A?"true":"false"}`),this._extensionHostProcess=b.fork(P.FileAccess.asFileUri("bootstrap-fork",oe).fsPath,S,h);const $=this._extensionHostProcess.pid;this._log(`<${$}> Launched Extension Host Process.`),this._extensionHostProcess.stdout.setEncoding("utf8"),this._extensionHostProcess.stderr.setEncoding("utf8");const W=p.Event.fromNodeEventEmitter(this._extensionHostProcess.stdout,"data"),ee=p.Event.fromNodeEventEmitter(this._extensionHostProcess.stderr,"data");if(W(L=>this._log(`<${$}> ${L}`)),ee(L=>this._log(`<${$}><stderr> ${L}`)),this._extensionHostProcess.on("error",L=>{this._logError(`<${$}> Extension Host Process had an error`),this._logService.error(L),this._cleanResources()}),this._extensionHostProcess.on("exit",(L,q)=>{this._extensionHostStatusService.setExitInfo(this._reconnectionToken,{code:L,signal:q}),this._log(`<${$}> Extension Host Process exited with code: ${L}, signal: ${q}.`),this._cleanResources()}),l)l.on("connection",L=>{l.close(),this._pipeSockets(L,this._connectionData)});else{const L=q=>{q.type==="VSCODE_EXTHOST_IPC_READY"&&(this._extensionHostProcess.removeListener("message",L),this._sendSocketToExtensionHost(this._extensionHostProcess,this._connectionData),this._connectionData=null)};this._extensionHostProcess.on("message",L)}}catch(o){console.error("ExtensionHostConnection errored"),o&&console.error(o)}}_listenOnPipe(){return new Promise((a,o)=>{const r=(0,C.createRandomIPCHandle)(),l=t.createServer();l.on("error",o),l.listen(r,()=>{l?.removeListener("error",o),a({pipeName:r,namedPipeServer:l})})})}};c=_e([Ae(4,w.IServerEnvironmentService),Ae(5,R.ILogService),Ae(6,I.IExtensionHostStatusService)],c),e.ExtensionHostConnection=c;function f(n,a){const o=Object.keys(n).filter(l=>l.toLowerCase()===a.toLowerCase()),r=o.length>0?o[0]:a;return n[r]}function i(n,a,o){const r=Object.keys(n).filter(h=>h.toLowerCase()===a.toLowerCase()),l=r.length>0?r[0]:a;n[l]=o}function s(n){for(const a of Object.keys(n))n[a]===null&&delete n[a]}}),define(ve[255],we([0,1,36,184,50]),function(oe,e,b,t,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dedupExtensions=void 0;function P(k,y,p,C){const T=new Map;k.forEach(w=>{const E=b.ExtensionIdentifier.toKey(w.identifier),d=T.get(E);d&&C.warn((0,t.localize)(0,null,d.extensionLocation.fsPath,w.extensionLocation.fsPath)),T.set(E,w)}),y.forEach(w=>{const E=b.ExtensionIdentifier.toKey(w.identifier),d=T.get(E);if(d)if(d.isBuiltin){if(D.gte(d.version,w.version)){C.warn(`Skipping extension ${w.extensionLocation.path} in favour of the builtin extension ${d.extensionLocation.path}.`);return}w.isBuiltin=!0}else C.warn((0,t.localize)(1,null,d.extensionLocation.fsPath,w.extensionLocation.fsPath));else if(w.isBuiltin){C.warn(`Skipping obsolete builtin extension ${w.extensionLocation.path}`);return}T.set(E,w)}),p.forEach(w=>{C.info((0,t.localize)(2,null,w.extensionLocation.fsPath));const E=b.ExtensionIdentifier.toKey(w.identifier),d=T.get(E);d&&d.isBuiltin&&(w.isBuiltin=!0),T.set(E,w)});const R=[];return T.forEach(w=>R.push(w)),R}e.dedupExtensions=P}),define(ve[256],we([0,1,3,48,4,63,8,69,97,91,217,6,27,55,255]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RemoteAgentEnvironmentChannel=void 0;class I{constructor(m,g,u,c,f,i,s){if(this._connectionToken=m,this._environmentService=g,this._userDataProfilesService=u,this._logService=f,this._extensionHostStatusService=i,this._extensionsScannerService=s,g.args["install-builtin-extension"]){const a={isMachineScoped:!!g.args["do-not-sync"],installPreReleaseVersion:!!g.args["pre-release"]};this.whenExtensionsReady=c.installExtensions([],g.args["install-builtin-extension"],a,!!g.args.force).then(null,o=>{f.error(o)})}else this.whenExtensionsReady=Promise.resolve();const n=g.args["install-extension"];if(n){const a=n.map(o=>/\.vsix$/i.test(o)?D.URI.file((0,R.isAbsolute)(o)?o:(0,R.join)((0,w.cwd)(),o)):o);this.whenExtensionsReady.then(()=>c.installExtensions(a,[],{isMachineScoped:!!g.args["do-not-sync"],installPreReleaseVersion:!!g.args["pre-release"]},!!g.args.force)).then(null,o=>{f.error(o)})}}async call(m,g,u){switch(g){case"getEnvironmentData":{const c=u,f=(0,P.createURITransformer)(c.remoteAuthority);let i=await this._getEnvironmentData();return i=(0,y.transformOutgoingURIs)(i,f),i}case"getExtensionHostExitInfo":{const c=u;return this._extensionHostStatusService.getExitInfo(c.reconnectionToken)}case"whenExtensionsReady":{await this.whenExtensionsReady;return}case"scanExtensions":{await this.whenExtensionsReady;const c=u,f=c.language;this._logService.trace(`Scanning extensions using UI language: ${f}`);const i=(0,P.createURITransformer)(c.remoteAuthority),s=c.extensionDevelopmentPath&&c.extensionDevelopmentPath.map(o=>D.URI.revive(i.transformIncoming(o))),n=s?s.filter(o=>o.scheme===k.Schemas.file).map(o=>o.fsPath):void 0;let a=await this._scanExtensions(f,n);return a=(0,y.transformOutgoingURIs)(a,i),this._logService.trace("Scanned Extensions",a),I._massageWhenConditions(a),a}case"scanSingleExtension":{await this.whenExtensionsReady;const c=u,f=c.language,i=c.isBuiltin,s=(0,P.createURITransformer)(c.remoteAuthority),n=D.URI.revive(s.transformIncoming(c.extensionLocation)),a=n.scheme===k.Schemas.file?n.fsPath:null;if(!a)return null;let o=await this._scanSingleExtension(a,i,f);return o?(o=(0,y.transformOutgoingURIs)(o,s),I._massageWhenConditions([o]),o):null}case"getDiagnosticInfo":{const c=u,f={machineInfo:(0,T.getMachineInfo)()},i=c.includeProcesses?(0,C.listProcesses)(process.pid):Promise.resolve();let s=[];const n={};if(c.folders){const a=(0,P.createURITransformer)("");s=c.folders.map(r=>D.URI.revive(a.transformIncoming(r))).filter(r=>r.scheme==="file").map(r=>(0,T.collectWorkspaceStats)(r.fsPath,["node_modules",".git"]).then(l=>{n[(0,R.basename)(r.fsPath)]=l}))}return Promise.all([i,...s]).then(([a,o])=>(f.processes=a||void 0,f.workspaceMetadata=c.folders?n:void 0,f))}}throw new Error(`IPC Command ${g} not found`)}listen(m,g,u){throw new Error("Not supported")}static _massageWhenConditions(m){const g=(n,a)=>n.replace(/file/g,"vscode-remote"),u=n=>{let a="";return a+=n.global?"g":"",a+=n.ignoreCase?"i":"",a+=n.multiline?"m":"",new RegExp(g(n.source,!0),a)},c=new class{mapDefined(n){return p.ContextKeyDefinedExpr.create(n)}mapNot(n){return p.ContextKeyNotExpr.create(n)}mapEquals(n,a){return n==="resourceScheme"&&typeof a=="string"?p.ContextKeyEqualsExpr.create(n,g(a,!1)):p.ContextKeyEqualsExpr.create(n,a)}mapNotEquals(n,a){return n==="resourceScheme"&&typeof a=="string"?p.ContextKeyNotEqualsExpr.create(n,g(a,!1)):p.ContextKeyNotEqualsExpr.create(n,a)}mapGreater(n,a){return p.ContextKeyGreaterExpr.create(n,a)}mapGreaterEquals(n,a){return p.ContextKeyGreaterEqualsExpr.create(n,a)}mapSmaller(n,a){return p.ContextKeySmallerExpr.create(n,a)}mapSmallerEquals(n,a){return p.ContextKeySmallerEqualsExpr.create(n,a)}mapRegex(n,a){return n==="resourceScheme"&&a?p.ContextKeyRegexExpr.create(n,u(a)):p.ContextKeyRegexExpr.create(n,a)}mapIn(n,a){return p.ContextKeyInExpr.create(n,a)}mapNotIn(n,a){return p.ContextKeyNotInExpr.create(n,a)}},f=n=>{if(!n||!n.when||!/resourceScheme/.test(n.when))return;const a=p.ContextKeyExpr.deserialize(n.when);if(!a)return;const o=a.map(c);n.when=o.serialize()},i=n=>{if(Array.isArray(n))for(const a of n)f(a);else f(n)},s=n=>{for(const a in n)i(n[a])};m.forEach(n=>{n.contributes&&(n.contributes.menus&&s(n.contributes.menus),n.contributes.keybindings&&i(n.contributes.keybindings),n.contributes.views&&s(n.contributes.views))})}async _getEnvironmentData(){return{pid:process.pid,connectionToken:this._connectionToken.type!==0?this._connectionToken.value:"",appRoot:D.URI.file(this._environmentService.appRoot),settingsPath:this._environmentService.machineSettingsResource,logsPath:D.URI.file(this._environmentService.logsPath),extensionsPath:D.URI.file(this._environmentService.extensionsPath),extensionHostLogsPath:D.URI.file((0,R.join)(this._environmentService.logsPath,`exthost${I._namePool++}`)),globalStorageHome:this._userDataProfilesService.defaultProfile.globalStorageHome,workspaceStorageHome:this._environmentService.workspaceStorageHome,localHistoryHome:this._environmentService.localHistoryHome,userHome:this._environmentService.userHome,os:b.OS,arch:process.arch,marks:t.getMarks(),useHostProxy:!!this._environmentService.args["use-host-proxy"]}}async _scanExtensions(m,g){const[u,c,f]=await Promise.all([this._scanBuiltinExtensions(m),this._scanInstalledExtensions(m),this._scanDevelopedExtensions(m,g)]);return(0,d.dedupExtensions)(u,c,f,this._logService)}async _scanDevelopedExtensions(m,g){return g?(await Promise.all(g.map(u=>this._extensionsScannerService.scanOneOrMultipleExtensions(D.URI.file((0,R.resolve)(u)),1,{language:m})))).flat().map(u=>(0,E.toExtensionDescription)(u,!0)):[]}async _scanBuiltinExtensions(m){return(await this._extensionsScannerService.scanSystemExtensions({language:m,useCache:!0})).map(u=>(0,E.toExtensionDescription)(u,!1))}async _scanInstalledExtensions(m){return(await this._extensionsScannerService.scanUserExtensions({language:m,useCache:!0})).map(u=>(0,E.toExtensionDescription)(u,!1))}async _scanSingleExtension(m,g,u){const c=D.URI.file((0,R.resolve)(m)),f=g?0:1,i=await this._extensionsScannerService.scanExistingExtension(c,f,{language:u});return i?(0,E.toExtensionDescription)(i,!1):null}}e.RemoteAgentEnvironmentChannel=I,I._namePool=1}),define(ve[125],we([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SerializableObjectWithBuffers=e.getStringIdentifierForProxy=e.createProxyIdentifier=e.ProxyIdentifier=void 0;class b{constructor(p){this._proxyIdentifierBrand=void 0,this.sid=p,this.nid=++b.count}}e.ProxyIdentifier=b,b.count=0;const t=[];function D(y){const p=new b(y);return t[p.nid]=p,p}e.createProxyIdentifier=D;function P(y){return t[y].sid}e.getStringIdentifierForProxy=P;class k{constructor(p){this.value=p}}e.SerializableObjectWithBuffers=k}),define(ve[257],we([0,1,42,125]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtHostContext=e.MainContext=e.ExtHostTestingResource=e.reviveWorkspaceEditDto=e.ISuggestResultDtoField=e.ISuggestDataDtoField=e.IdObject=e.CandidatePortSource=e.NotebookEditorRevealType=e.CellOutputKind=e.WebviewMessageArrayBufferViewType=e.WebviewEditorCapabilities=e.TabModelOperationKind=e.TabInputKind=e.TextEditorRevealType=void 0;var D;(function(m){m[m.Default=0]="Default",m[m.InCenter=1]="InCenter",m[m.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",m[m.AtTop=3]="AtTop"})(D=e.TextEditorRevealType||(e.TextEditorRevealType={}));var P;(function(m){m[m.UnknownInput=0]="UnknownInput",m[m.TextInput=1]="TextInput",m[m.TextDiffInput=2]="TextDiffInput",m[m.TextMergeInput=3]="TextMergeInput",m[m.NotebookInput=4]="NotebookInput",m[m.NotebookDiffInput=5]="NotebookDiffInput",m[m.CustomEditorInput=6]="CustomEditorInput",m[m.WebviewEditorInput=7]="WebviewEditorInput",m[m.TerminalEditorInput=8]="TerminalEditorInput",m[m.InteractiveEditorInput=9]="InteractiveEditorInput"})(P=e.TabInputKind||(e.TabInputKind={}));var k;(function(m){m[m.TAB_OPEN=0]="TAB_OPEN",m[m.TAB_CLOSE=1]="TAB_CLOSE",m[m.TAB_UPDATE=2]="TAB_UPDATE",m[m.TAB_MOVE=3]="TAB_MOVE"})(k=e.TabModelOperationKind||(e.TabModelOperationKind={}));var y;(function(m){m[m.Editable=0]="Editable",m[m.SupportsHotExit=1]="SupportsHotExit"})(y=e.WebviewEditorCapabilities||(e.WebviewEditorCapabilities={}));var p;(function(m){m[m.Int8Array=1]="Int8Array",m[m.Uint8Array=2]="Uint8Array",m[m.Uint8ClampedArray=3]="Uint8ClampedArray",m[m.Int16Array=4]="Int16Array",m[m.Uint16Array=5]="Uint16Array",m[m.Int32Array=6]="Int32Array",m[m.Uint32Array=7]="Uint32Array",m[m.Float32Array=8]="Float32Array",m[m.Float64Array=9]="Float64Array",m[m.BigInt64Array=10]="BigInt64Array",m[m.BigUint64Array=11]="BigUint64Array"})(p=e.WebviewMessageArrayBufferViewType||(e.WebviewMessageArrayBufferViewType={}));var C;(function(m){m[m.Text=1]="Text",m[m.Error=2]="Error",m[m.Rich=3]="Rich"})(C=e.CellOutputKind||(e.CellOutputKind={}));var T;(function(m){m[m.Default=0]="Default",m[m.InCenter=1]="InCenter",m[m.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",m[m.AtTop=3]="AtTop"})(T=e.NotebookEditorRevealType||(e.NotebookEditorRevealType={}));var R;(function(m){m[m.None=0]="None",m[m.Process=1]="Process",m[m.Output=2]="Output"})(R=e.CandidatePortSource||(e.CandidatePortSource={}));class w{static mixin(g){return g._id=w._n++,g}}e.IdObject=w,w._n=0;var E;(function(m){m.label="a",m.kind="b",m.detail="c",m.documentation="d",m.sortText="e",m.filterText="f",m.preselect="g",m.insertText="h",m.insertTextRules="i",m.range="j",m.commitCharacters="k",m.additionalTextEdits="l",m.command="m",m.kindModifier="n"})(E=e.ISuggestDataDtoField||(e.ISuggestDataDtoField={}));var d;(function(m){m.defaultRanges="a",m.completions="b",m.isIncomplete="c",m.duration="d"})(d=e.ISuggestResultDtoField||(e.ISuggestResultDtoField={}));function I(m){return m&&m.edits&&(0,b.revive)(m),m}e.reviveWorkspaceEditDto=I;var v;(function(m){m[m.Workspace=0]="Workspace",m[m.TextDocument=1]="TextDocument"})(v=e.ExtHostTestingResource||(e.ExtHostTestingResource={})),e.MainContext={MainThreadAuthentication:(0,t.createProxyIdentifier)("MainThreadAuthentication"),MainThreadBulkEdits:(0,t.createProxyIdentifier)("MainThreadBulkEdits"),MainThreadClipboard:(0,t.createProxyIdentifier)("MainThreadClipboard"),MainThreadCommands:(0,t.createProxyIdentifier)("MainThreadCommands"),MainThreadComments:(0,t.createProxyIdentifier)("MainThreadComments"),MainThreadConfiguration:(0,t.createProxyIdentifier)("MainThreadConfiguration"),MainThreadConsole:(0,t.createProxyIdentifier)("MainThreadConsole"),MainThreadDebugService:(0,t.createProxyIdentifier)("MainThreadDebugService"),MainThreadDecorations:(0,t.createProxyIdentifier)("MainThreadDecorations"),MainThreadDiagnostics:(0,t.createProxyIdentifier)("MainThreadDiagnostics"),MainThreadDialogs:(0,t.createProxyIdentifier)("MainThreadDiaglogs"),MainThreadDocuments:(0,t.createProxyIdentifier)("MainThreadDocuments"),MainThreadDocumentContentProviders:(0,t.createProxyIdentifier)("MainThreadDocumentContentProviders"),MainThreadTextEditors:(0,t.createProxyIdentifier)("MainThreadTextEditors"),MainThreadEditorInsets:(0,t.createProxyIdentifier)("MainThreadEditorInsets"),MainThreadEditorTabs:(0,t.createProxyIdentifier)("MainThreadEditorTabs"),MainThreadErrors:(0,t.createProxyIdentifier)("MainThreadErrors"),MainThreadTreeViews:(0,t.createProxyIdentifier)("MainThreadTreeViews"),MainThreadDownloadService:(0,t.createProxyIdentifier)("MainThreadDownloadService"),MainThreadKeytar:(0,t.createProxyIdentifier)("MainThreadKeytar"),MainThreadLanguageFeatures:(0,t.createProxyIdentifier)("MainThreadLanguageFeatures"),MainThreadLanguages:(0,t.createProxyIdentifier)("MainThreadLanguages"),MainThreadLogger:(0,t.createProxyIdentifier)("MainThreadLogger"),MainThreadMessageService:(0,t.createProxyIdentifier)("MainThreadMessageService"),MainThreadOutputService:(0,t.createProxyIdentifier)("MainThreadOutputService"),MainThreadProgress:(0,t.createProxyIdentifier)("MainThreadProgress"),MainThreadQuickOpen:(0,t.createProxyIdentifier)("MainThreadQuickOpen"),MainThreadStatusBar:(0,t.createProxyIdentifier)("MainThreadStatusBar"),MainThreadSecretState:(0,t.createProxyIdentifier)("MainThreadSecretState"),MainThreadStorage:(0,t.createProxyIdentifier)("MainThreadStorage"),MainThreadTelemetry:(0,t.createProxyIdentifier)("MainThreadTelemetry"),MainThreadTerminalService:(0,t.createProxyIdentifier)("MainThreadTerminalService"),MainThreadWebviews:(0,t.createProxyIdentifier)("MainThreadWebviews"),MainThreadWebviewPanels:(0,t.createProxyIdentifier)("MainThreadWebviewPanels"),MainThreadWebviewViews:(0,t.createProxyIdentifier)("MainThreadWebviewViews"),MainThreadCustomEditors:(0,t.createProxyIdentifier)("MainThreadCustomEditors"),MainThreadUrls:(0,t.createProxyIdentifier)("MainThreadUrls"),MainThreadUriOpeners:(0,t.createProxyIdentifier)("MainThreadUriOpeners"),MainThreadWorkspace:(0,t.createProxyIdentifier)("MainThreadWorkspace"),MainThreadFileSystem:(0,t.createProxyIdentifier)("MainThreadFileSystem"),MainThreadExtensionService:(0,t.createProxyIdentifier)("MainThreadExtensionService"),MainThreadSCM:(0,t.createProxyIdentifier)("MainThreadSCM"),MainThreadSearch:(0,t.createProxyIdentifier)("MainThreadSearch"),MainThreadTask:(0,t.createProxyIdentifier)("MainThreadTask"),MainThreadWindow:(0,t.createProxyIdentifier)("MainThreadWindow"),MainThreadLabelService:(0,t.createProxyIdentifier)("MainThreadLabelService"),MainThreadNotebook:(0,t.createProxyIdentifier)("MainThreadNotebook"),MainThreadNotebookDocuments:(0,t.createProxyIdentifier)("MainThreadNotebookDocumentsShape"),MainThreadNotebookEditors:(0,t.createProxyIdentifier)("MainThreadNotebookEditorsShape"),MainThreadNotebookKernels:(0,t.createProxyIdentifier)("MainThreadNotebookKernels"),MainThreadNotebookRenderers:(0,t.createProxyIdentifier)("MainThreadNotebookRenderers"),MainThreadInteractive:(0,t.createProxyIdentifier)("MainThreadInteractive"),MainThreadTheming:(0,t.createProxyIdentifier)("MainThreadTheming"),MainThreadTunnelService:(0,t.createProxyIdentifier)("MainThreadTunnelService"),MainThreadTimeline:(0,t.createProxyIdentifier)("MainThreadTimeline"),MainThreadTesting:(0,t.createProxyIdentifier)("MainThreadTesting")},e.ExtHostContext={ExtHostCommands:(0,t.createProxyIdentifier)("ExtHostCommands"),ExtHostConfiguration:(0,t.createProxyIdentifier)("ExtHostConfiguration"),ExtHostDiagnostics:(0,t.createProxyIdentifier)("ExtHostDiagnostics"),ExtHostDebugService:(0,t.createProxyIdentifier)("ExtHostDebugService"),ExtHostDecorations:(0,t.createProxyIdentifier)("ExtHostDecorations"),ExtHostDocumentsAndEditors:(0,t.createProxyIdentifier)("ExtHostDocumentsAndEditors"),ExtHostDocuments:(0,t.createProxyIdentifier)("ExtHostDocuments"),ExtHostDocumentContentProviders:(0,t.createProxyIdentifier)("ExtHostDocumentContentProviders"),ExtHostDocumentSaveParticipant:(0,t.createProxyIdentifier)("ExtHostDocumentSaveParticipant"),ExtHostEditors:(0,t.createProxyIdentifier)("ExtHostEditors"),ExtHostTreeViews:(0,t.createProxyIdentifier)("ExtHostTreeViews"),ExtHostFileSystem:(0,t.createProxyIdentifier)("ExtHostFileSystem"),ExtHostFileSystemInfo:(0,t.createProxyIdentifier)("ExtHostFileSystemInfo"),ExtHostFileSystemEventService:(0,t.createProxyIdentifier)("ExtHostFileSystemEventService"),ExtHostLanguages:(0,t.createProxyIdentifier)("ExtHostLanguages"),ExtHostLanguageFeatures:(0,t.createProxyIdentifier)("ExtHostLanguageFeatures"),ExtHostQuickOpen:(0,t.createProxyIdentifier)("ExtHostQuickOpen"),ExtHostExtensionService:(0,t.createProxyIdentifier)("ExtHostExtensionService"),ExtHostLogLevelServiceShape:(0,t.createProxyIdentifier)("ExtHostLogLevelServiceShape"),ExtHostTerminalService:(0,t.createProxyIdentifier)("ExtHostTerminalService"),ExtHostSCM:(0,t.createProxyIdentifier)("ExtHostSCM"),ExtHostSearch:(0,t.createProxyIdentifier)("ExtHostSearch"),ExtHostTask:(0,t.createProxyIdentifier)("ExtHostTask"),ExtHostWorkspace:(0,t.createProxyIdentifier)("ExtHostWorkspace"),ExtHostWindow:(0,t.createProxyIdentifier)("ExtHostWindow"),ExtHostWebviews:(0,t.createProxyIdentifier)("ExtHostWebviews"),ExtHostWebviewPanels:(0,t.createProxyIdentifier)("ExtHostWebviewPanels"),ExtHostCustomEditors:(0,t.createProxyIdentifier)("ExtHostCustomEditors"),ExtHostWebviewViews:(0,t.createProxyIdentifier)("ExtHostWebviewViews"),ExtHostEditorInsets:(0,t.createProxyIdentifier)("ExtHostEditorInsets"),ExtHostEditorTabs:(0,t.createProxyIdentifier)("ExtHostEditorTabs"),ExtHostProgress:(0,t.createProxyIdentifier)("ExtHostProgress"),ExtHostComments:(0,t.createProxyIdentifier)("ExtHostComments"),ExtHostSecretState:(0,t.createProxyIdentifier)("ExtHostSecretState"),ExtHostStorage:(0,t.createProxyIdentifier)("ExtHostStorage"),ExtHostUrls:(0,t.createProxyIdentifier)("ExtHostUrls"),ExtHostUriOpeners:(0,t.createProxyIdentifier)("ExtHostUriOpeners"),ExtHostOutputService:(0,t.createProxyIdentifier)("ExtHostOutputService"),ExtHosLabelService:(0,t.createProxyIdentifier)("ExtHostLabelService"),ExtHostNotebook:(0,t.createProxyIdentifier)("ExtHostNotebook"),ExtHostNotebookDocuments:(0,t.createProxyIdentifier)("ExtHostNotebookDocuments"),ExtHostNotebookEditors:(0,t.createProxyIdentifier)("ExtHostNotebookEditors"),ExtHostNotebookKernels:(0,t.createProxyIdentifier)("ExtHostNotebookKernels"),ExtHostNotebookRenderers:(0,t.createProxyIdentifier)("ExtHostNotebookRenderers"),ExtHostInteractive:(0,t.createProxyIdentifier)("ExtHostInteractive"),ExtHostTheming:(0,t.createProxyIdentifier)("ExtHostTheming"),ExtHostTunnelService:(0,t.createProxyIdentifier)("ExtHostTunnelService"),ExtHostAuthentication:(0,t.createProxyIdentifier)("ExtHostAuthentication"),ExtHostTimeline:(0,t.createProxyIdentifier)("ExtHostTimeline"),ExtHostTesting:(0,t.createProxyIdentifier)("ExtHostTesting"),ExtHostTelemetry:(0,t.createProxyIdentifier)("ExtHostTelemetry")}});var Pt=this&&this.__classPrivateFieldSet||function(oe,e,b,t,D){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!D)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?oe!==e||!D:!e.has(oe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?D.call(oe,b):D?D.value=b:e.set(oe,b),b},tt=this&&this.__classPrivateFieldGet||function(oe,e,b,t){if(b==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?oe!==e||!t:!e.has(oe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return b==="m"?t:b==="a"?t.call(oe):t?t.value:e.get(oe)};define(ve[258],we([0,1,12,116,123,22,257,18,13,42,49,93,4,2,5,243,252,15,125,38]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g,u){"use strict";var c,f;Object.defineProperty(e,"__esModule",{value:!0}),e.ApiCommand=e.ApiCommandResult=e.ApiCommandArgument=e.CommandsConverter=e.IExtHostCommands=e.ExtHostCommands=void 0;let i=class{constructor(l,h){c.set(this,void 0),this._commands=new Map,this._apiCommands=new Map,f.set(this,void 0),Pt(this,c,l.getProxy(k.MainContext.MainThreadCommands),"f"),this._logService=h,Pt(this,f,l.getProxy(k.MainContext.MainThreadTelemetry),"f"),this.converter=new s(this,S=>{const A=this._apiCommands.get(S);return A?.result===a.Void?A:void 0},h),this._argumentProcessors=[{processArgument(S){return(0,C.revive)(S)}},{processArgument(S){return(0,P.cloneAndChange)(S,function(A){if(T.Range.isIRange(A))return D.Range.to(A);if(R.Position.isIPosition(A))return D.Position.to(A);if(T.Range.isIRange(A.range)&&w.URI.isUri(A.uri))return D.location.to(A);if(A instanceof m.VSBuffer)return A.buffer.buffer;if(!Array.isArray(A))return A})}}]}registerArgumentProcessor(l){this._argumentProcessors.push(l)}registerApiCommand(l){const h=this.registerCommand(!1,l.id,async(...S)=>{const A=l.args.map((W,ee)=>{if(!W.validate(S[ee]))throw new Error(`Invalid argument '${W.name}' when running '${l.id}', received: ${S[ee]}`);return W.convert(S[ee])}),$=await this.executeCommand(l.internalId,...A);return l.result.convert($,S,this.converter)},void 0,{description:l.description,args:l.args,returns:l.result.description});return this._apiCommands.set(l.id,l),new t.Disposable(()=>{h.dispose(),this._apiCommands.delete(l.id)})}registerCommand(l,h,S,A,$,W){if(this._logService.trace("ExtHostCommands#registerCommand",h),!h.trim().length)throw new Error("invalid id");if(this._commands.has(h))throw new Error(`command '${h}' already exists`);return this._commands.set(h,{callback:S,thisArg:A,description:$,extension:W}),l&&tt(this,c,"f").$registerCommand(h),new t.Disposable(()=>{this._commands.delete(h)&&l&&tt(this,c,"f").$unregisterCommand(h)})}executeCommand(l,...h){return this._logService.trace("ExtHostCommands#executeCommand",l),this._doExecuteCommand(l,h,!0)}async _doExecuteCommand(l,h,S){if(this._commands.has(l))return tt(this,c,"f").$fireCommandActivationEvent(l),this._executeContributedCommand(l,h,!1);{let A=!1;const $=(0,P.cloneAndChange)(h,function(W){if(W instanceof t.Position)return D.Position.from(W);if(W instanceof t.Range)return D.Range.from(W);if(W instanceof t.Location)return D.location.from(W);if(t.NotebookRange.isNotebookRange(W))return D.NotebookRange.from(W);if(W instanceof ArrayBuffer)return A=!0,m.VSBuffer.wrap(new Uint8Array(W));if(W instanceof Uint8Array)return A=!0,m.VSBuffer.wrap(W);if(W instanceof m.VSBuffer)return A=!0,W;if(!Array.isArray(W))return W});try{const W=await tt(this,c,"f").$executeCommand(l,A?new g.SerializableObjectWithBuffers($):$,S);return(0,C.revive)(W)}catch(W){if(W instanceof Error&&W.message==="$executeCommand:retry")return this._doExecuteCommand(l,h,!1);throw W}}}async _executeContributedCommand(l,h,S){const A=this._commands.get(l);if(!A)throw new Error("Unknown command");this._reportTelemetry(A,l);const{callback:$,thisArg:W,description:ee}=A;if(ee)for(let L=0;L<ee.args.length;L++)try{(0,b.validateConstraint)(h[L],ee.args[L].constraint)}catch{throw new Error(`Running the contributed command: '${l}' failed. Illegal argument '${ee.args[L].name}' - ${ee.args[L].description}`)}try{return await $.apply(W,h)}catch(L){if(l===this.converter.delegatingCommandId){const q=this.converter.getActualCommand(...h);q&&(l=q.command)}throw this._logService.error(L,l,A.extension?.identifier),S?new class extends Error{constructor(){super((0,u.toErrorMessage)(L));this.id=l,this.source=A.extension?.displayName??A.extension?.name}}:L}}_reportTelemetry(l,h){!l.extension||l.extension.isBuiltin||tt(this,f,"f").$publicLog2("Extension:ActionExecuted",{extensionId:l.extension.identifier.value,id:h})}$executeContributedCommand(l,...h){return this._logService.trace("ExtHostCommands#$executeContributedCommand",l),this._commands.has(l)?(h=h.map(S=>this._argumentProcessors.reduce((A,$)=>$.processArgument(A),S)),this._executeContributedCommand(l,h,!0)):Promise.reject(new Error(`Contributed command '${l}' does not exist.`))}getCommands(l=!1){return this._logService.trace("ExtHostCommands#getCommands",l),tt(this,c,"f").$getCommands().then(h=>(l&&(h=h.filter(S=>S[0]!=="_")),h))}$getContributedCommandHandlerDescriptions(){const l=Object.create(null);for(const[h,S]of this._commands){const{description:A}=S;A&&(l[h]=A)}return Promise.resolve(l)}};c=new WeakMap,f=new WeakMap,i=_e([Ae(0,I.IExtHostRpcService),Ae(1,p.ILogService)],i),e.ExtHostCommands=i,e.IExtHostCommands=(0,d.createDecorator)("IExtHostCommands");class s{constructor(l,h,S){this._commands=l,this._lookupApiCommand=h,this._logService=S,this.delegatingCommandId=`_vscode_delegate_cmd_${Date.now().toString(36)}`,this._cache=new Map,this._cachIdPool=0,this._commands.registerCommand(!0,this.delegatingCommandId,this._executeConvertedCommand,this)}toInternal(l,h){if(!l)return;const S={$ident:void 0,id:l.command,title:l.title,tooltip:l.tooltip};if(!l.command)return S;const A=this._lookupApiCommand(l.command);if(A)S.id=A.internalId,S.arguments=A.args.map(($,W)=>$.convert(l.arguments&&l.arguments[W]));else if((0,y.isNonEmptyArray)(l.arguments)){const $=++this._cachIdPool;this._cache.set($,l),h.add((0,E.toDisposable)(()=>{this._cache.delete($),this._logService.trace("CommandsConverter#DISPOSE",$)})),S.$ident=$,S.id=this.delegatingCommandId,S.arguments=[$],this._logService.trace("CommandsConverter#CREATE",l.command,$)}return S}fromInternal(l){return typeof l.$ident=="number"?this._cache.get(l.$ident):{command:l.id,title:l.title,arguments:l.arguments}}getActualCommand(...l){return this._cache.get(l[0])}_executeConvertedCommand(...l){const h=this.getActualCommand(...l);return this._logService.trace("CommandsConverter#EXECUTE",l[0],h?h.command:"MISSING"),h?this._commands.executeCommand(h.command,...h.arguments||[]):Promise.reject("actual command NOT FOUND")}}e.CommandsConverter=s;class n{constructor(l,h,S,A){this.name=l,this.description=h,this.validate=S,this.convert=A}optional(){return new n(this.name,`(optional) ${this.description}`,l=>l==null||this.validate(l),l=>l===void 0?void 0:l===null?null:this.convert(l))}with(l,h){return new n(l??this.name,h??this.description,this.validate,this.convert)}}e.ApiCommandArgument=n,n.Uri=new n("uri","Uri of a text document",r=>w.URI.isUri(r),r=>r),n.Position=new n("position","A position in a text document",r=>t.Position.isPosition(r),D.Position.from),n.Range=new n("range","A range in a text document",r=>t.Range.isRange(r),D.Range.from),n.Selection=new n("selection","A selection in a text document",r=>t.Selection.isSelection(r),D.Selection.from),n.Number=new n("number","",r=>typeof r=="number",r=>r),n.String=new n("string","",r=>typeof r=="string",r=>r),n.CallHierarchyItem=new n("item","A call hierarchy item",r=>r instanceof t.CallHierarchyItem,D.CallHierarchyItem.from),n.TypeHierarchyItem=new n("item","A type hierarchy item",r=>r instanceof t.TypeHierarchyItem,D.TypeHierarchyItem.from),n.TestItem=new n("testItem","A VS Code TestItem",r=>r instanceof v.TestItemImpl,D.TestItem.from);class a{constructor(l,h){this.description=l,this.convert=h}}e.ApiCommandResult=a,a.Void=new a("no result",r=>r);class o{constructor(l,h,S,A,$){this.id=l,this.internalId=h,this.description=S,this.args=A,this.result=$}}e.ApiCommand=o}),define(ve[259],we([0,1,57,241,30,258,4,13,78]),function(oe,e,b,t,D,P,k,y,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CLIServer=e.CLIServerBase=void 0;class C{constructor(w,E,d){this._commands=w,this.logService=E,this._ipcHandlePath=d,this._server=t.createServer((I,v)=>this.onRequest(I,v)),this.setup().catch(I=>(E.error(I),""))}get ipcHandlePath(){return this._ipcHandlePath}async setup(){try{this._server.listen(this.ipcHandlePath),this._server.on("error",w=>this.logService.error(w))}catch{this.logService.error("Could not start open from terminal server.")}return this._ipcHandlePath}onRequest(w,E){const d=(v,m)=>{E.writeHead(v,{"content-type":"application/json"}),E.end(JSON.stringify(m||null),g=>g&&this.logService.error(g))},I=[];w.setEncoding("utf8"),w.on("data",v=>I.push(v)),w.on("end",async()=>{try{const v=JSON.parse(I.join(""));let m;switch(v.type){case"open":m=await this.open(v);break;case"openExternal":m=await this.openExternal(v);break;case"status":m=await this.getStatus(v);break;case"extensionManagement":m=await this.manageExtensions(v);break;default:d(404,`Unknown message type: ${v.type}`);break}d(200,m)}catch(v){const m=v instanceof Error?v.message:JSON.stringify(v);d(500,m),this.logService.error("Error while processing pipe request",v)}})}async open(w){const{fileURIs:E,folderURIs:d,forceNewWindow:I,diffMode:v,mergeMode:m,addMode:g,forceReuseWindow:u,gotoLineMode:c,waitMarkerFilePath:f,remoteAuthority:i}=w,s=[];if(Array.isArray(d))for(const r of d)try{s.push({folderUri:k.URI.parse(r)})}catch{}if(Array.isArray(E))for(const r of E)try{(0,p.hasWorkspaceFileExtension)(r)?s.push({workspaceUri:k.URI.parse(r)}):s.push({fileUri:k.URI.parse(r)})}catch{}const n=f?k.URI.file(f):void 0,o={forceNewWindow:I,diffMode:v,mergeMode:m,addMode:g,gotoLineMode:c,forceReuseWindow:u,preferNewWindow:!u&&!n&&!g,waitMarkerFileURI:n,remoteAuthority:i};return this._commands.executeCommand("_remoteCLI.windowOpen",s,o),""}async openExternal(w){for(const E of w.uris){const d=k.URI.parse(E),I=d.scheme==="file"?d:E;await this._commands.executeCommand("_remoteCLI.openExternal",I)}}async manageExtensions(w){const E=I=>I?.map(v=>/\.vsix$/i.test(v)?k.URI.parse(v):v),d={list:w.list,install:E(w.install),uninstall:E(w.uninstall),force:w.force};return await this._commands.executeCommand("_remoteCLI.manageExtensions",d)}async getStatus(w){return await this._commands.executeCommand("_remoteCLI.getSystemStatus")}dispose(){this._server.close(),this._ipcHandlePath&&process.platform!=="win32"&&D.existsSync(this._ipcHandlePath)&&D.unlinkSync(this._ipcHandlePath)}}e.CLIServerBase=C;let T=class extends C{constructor(w,E){super(w,E,(0,b.createRandomIPCHandle)())}};T=_e([Ae(0,P.IExtHostCommands),Ae(1,y.ILogService)],T),e.CLIServer=T}),define(ve[260],we([0,1,28,7,22,2,6,3,4,57,63,259,246,119,247,250,124]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RemoteTerminalChannel=void 0;class m extends I.AbstractVariableResolverService{constructor(c,f,i,s,n){super({getFolderUri:a=>{const o=f.filter(r=>r.name===a);if(o&&o.length>0)return o[0].uri},getWorkspaceFolderCount:()=>f.length,getConfigurationValue:(a,o)=>s[`config:${o}`],getExecPath:()=>c.VSCODE_EXEC_PATH,getAppRoot:()=>c.VSCODE_CWD,getFilePath:()=>{if(i)return k.normalize(i.fsPath)},getSelectedText:()=>s.selectedText,getLineNumber:()=>s.lineNumber,getExtension:async a=>{const r=(await n.getInstalled()).find(l=>l.identifier.id===a);return r&&{extensionLocation:r.location}}},void 0,Promise.resolve(b.homedir()),Promise.resolve(c))}}class g extends P.Disposable{constructor(c,f,i,s,n){super();this._environmentService=c,this._logService=f,this._ptyService=i,this._productService=s,this._extensionManagementService=n,this._lastReqId=0,this._pendingCommands=new Map,this._onExecuteCommand=this._register(new t.Emitter),this.onExecuteCommand=this._onExecuteCommand.event}async call(c,f,i){switch(f){case"$restartPtyHost":return this._ptyService.restartPtyHost?.apply(this._ptyService,i);case"$createProcess":{const s=(0,T.createURITransformer)(c.remoteAuthority);return this._createProcess(s,i)}case"$attachToProcess":return this._ptyService.attachToProcess.apply(this._ptyService,i);case"$detachFromProcess":return this._ptyService.detachFromProcess.apply(this._ptyService,i);case"$listProcesses":return this._ptyService.listProcesses.apply(this._ptyService,i);case"$orphanQuestionReply":return this._ptyService.orphanQuestionReply.apply(this._ptyService,i);case"$acceptPtyHostResolvedVariables":return this._ptyService.acceptPtyHostResolvedVariables?.apply(this._ptyService,i);case"$start":return this._ptyService.start.apply(this._ptyService,i);case"$input":return this._ptyService.input.apply(this._ptyService,i);case"$acknowledgeDataEvent":return this._ptyService.acknowledgeDataEvent.apply(this._ptyService,i);case"$shutdown":return this._ptyService.shutdown.apply(this._ptyService,i);case"$resize":return this._ptyService.resize.apply(this._ptyService,i);case"$getInitialCwd":return this._ptyService.getInitialCwd.apply(this._ptyService,i);case"$getCwd":return this._ptyService.getCwd.apply(this._ptyService,i);case"$processBinary":return this._ptyService.processBinary.apply(this._ptyService,i);case"$sendCommandResult":return this._sendCommandResult(i[0],i[1],i[2]);case"$installAutoReply":return this._ptyService.installAutoReply.apply(this._ptyService,i);case"$uninstallAllAutoReplies":return this._ptyService.uninstallAllAutoReplies.apply(this._ptyService,i);case"$getDefaultSystemShell":return this._getDefaultSystemShell.apply(this,i);case"$getProfiles":return this._getProfiles.apply(this,i);case"$getEnvironment":return this._getEnvironment();case"$getWslPath":return this._getWslPath(i[0]);case"$getTerminalLayoutInfo":return this._ptyService.getTerminalLayoutInfo(i);case"$setTerminalLayoutInfo":return this._ptyService.setTerminalLayoutInfo(i);case"$serializeTerminalState":return this._ptyService.serializeTerminalState.apply(this._ptyService,i);case"$reviveTerminalProcesses":return this._ptyService.reviveTerminalProcesses.apply(this._ptyService,i);case"$getRevivedPtyNewId":return this._ptyService.getRevivedPtyNewId.apply(this._ptyService,i);case"$setUnicodeVersion":return this._ptyService.setUnicodeVersion.apply(this._ptyService,i);case"$reduceConnectionGraceTime":return this._reduceConnectionGraceTime();case"$updateIcon":return this._ptyService.updateIcon.apply(this._ptyService,i);case"$updateTitle":return this._ptyService.updateTitle.apply(this._ptyService,i);case"$updateProperty":return this._ptyService.updateProperty.apply(this._ptyService,i);case"$refreshProperty":return this._ptyService.refreshProperty.apply(this._ptyService,i);case"$requestDetachInstance":return this._ptyService.requestDetachInstance(i[0],i[1]);case"$acceptDetachedInstance":return this._ptyService.acceptDetachInstanceReply(i[0],i[1])}throw new Error(`IPC Command ${f} not found`)}listen(c,f,i){switch(f){case"$onPtyHostExitEvent":return this._ptyService.onPtyHostExit||t.Event.None;case"$onPtyHostStartEvent":return this._ptyService.onPtyHostStart||t.Event.None;case"$onPtyHostUnresponsiveEvent":return this._ptyService.onPtyHostUnresponsive||t.Event.None;case"$onPtyHostResponsiveEvent":return this._ptyService.onPtyHostResponsive||t.Event.None;case"$onPtyHostRequestResolveVariablesEvent":return this._ptyService.onPtyHostRequestResolveVariables||t.Event.None;case"$onProcessDataEvent":return this._ptyService.onProcessData;case"$onProcessReadyEvent":return this._ptyService.onProcessReady;case"$onProcessExitEvent":return this._ptyService.onProcessExit;case"$onProcessReplayEvent":return this._ptyService.onProcessReplay;case"$onProcessOrphanQuestion":return this._ptyService.onProcessOrphanQuestion;case"$onExecuteCommand":return this.onExecuteCommand;case"$onDidRequestDetach":return this._ptyService.onDidRequestDetach||t.Event.None;case"$onDidChangeProperty":return this._ptyService.onDidChangeProperty;default:break}throw new Error("Not supported")}async _createProcess(c,f){const i={name:f.shellLaunchConfig.name,executable:f.shellLaunchConfig.executable,args:f.shellLaunchConfig.args,cwd:typeof f.shellLaunchConfig.cwd=="string"||typeof f.shellLaunchConfig.cwd=="undefined"?f.shellLaunchConfig.cwd:p.URI.revive(c.transformIncoming(f.shellLaunchConfig.cwd)),env:f.shellLaunchConfig.env,useShellEnvironment:f.shellLaunchConfig.useShellEnvironment},s=await(0,v.buildUserEnvironment)(f.resolverEnv,!!f.shellLaunchConfig.useShellEnvironment,y.language,this._environmentService,this._logService);this._logService.trace("baseEnv",s);const n=x=>({uri:p.URI.revive(c.transformIncoming(x.uri)),name:x.name,index:x.index,toResource:()=>{throw new Error("Not implemented")}}),a=f.workspaceFolders.map(n),o=f.activeWorkspaceFolder?n(f.activeWorkspaceFolder):void 0,r=f.activeFileResource?p.URI.revive(c.transformIncoming(f.activeFileResource)):void 0,l=new m(s,a,r,f.resolvedVariables,this._extensionManagementService),h=d.createVariableResolver(o,process.env,l),S=await d.getCwd(i,b.homedir(),h,o?.uri,f.configuration["terminal.integrated.cwd"],this._logService);i.cwd=S;const A=y.isWindows?"terminal.integrated.env.windows":y.isMacintosh?"terminal.integrated.env.osx":"terminal.integrated.env.linux",$=f.configuration[A],W=await d.createTerminalEnvironment(i,$,h,this._productService.version,f.configuration["terminal.integrated.detectLocale"],s);if(!i.strictEnv){const x=[];for(const[B,U]of f.envVariableCollections)x.push([B,{map:(0,E.deserializeEnvironmentVariableCollection)(U)}]);const fe=new Map(x);await new w.MergedEnvironmentVariableCollection(fe).applyToProcessEnvironment(W,h)}this._logService.debug("Terminal process launching on remote agent",{shellLaunchConfig:i,initialCwd:S,cols:f.cols,rows:f.rows,env:W});const ee=(0,C.createRandomIPCHandle)();W.VSCODE_IPC_HOOK_CLI=ee;const L={executeCommand:(x,...fe)=>this._executeCommand(ne,x,fe,c)},q=new R.CLIServerBase(L,this._logService,ee),ne=await this._ptyService.createProcess(i,S,f.cols,f.rows,f.unicodeVersion,W,s,f.options,f.shouldPersistTerminal,f.workspaceId,f.workspaceName);return this._ptyService.onProcessExit(x=>x.id===ne&&q.dispose()),{persistentTerminalId:ne,resolvedShellLaunchConfig:i}}_executeCommand(c,f,i,s){let n,a;const o=new Promise((h,S)=>{n=h,a=S}),r=++this._lastReqId;this._pendingCommands.set(r,{resolve:n,reject:a,uriTransformer:s});const l=(0,D.cloneAndChange)(i,h=>{if(h&&h.$mid===1)return s.transformOutgoing(h);if(h&&h instanceof p.URI)return s.transformOutgoingURI(h)});return this._onExecuteCommand.fire({reqId:r,terminalId:c,commandId:f,commandArgs:l}),o}_sendCommandResult(c,f,i){const s=this._pendingCommands.get(c);if(!s)return;this._pendingCommands.delete(c);const n=(0,D.cloneAndChange)(i,a=>{if(a&&a.$mid===1)return s.uriTransformer.transformIncoming(a)});f?s.reject(n):s.resolve(n)}_getDefaultSystemShell(c){return this._ptyService.getDefaultSystemShell(c)}async _getProfiles(c,f,i,s){return this._ptyService.getProfiles?.(c,f,i,s)||[]}_getEnvironment(){return{...process.env}}_getWslPath(c){return this._ptyService.getWslPath(c)}_reduceConnectionGraceTime(){return this._ptyService.reduceConnectionGraceTime()}}e.RemoteTerminalChannel=g}),define(ve[126],we([0,1,5]),function(oe,e,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IRemoteAgentService=e.RemoteExtensionLogFileName=void 0,e.RemoteExtensionLogFileName="remoteagent",e.IRemoteAgentService=(0,b.createDecorator)("remoteAgentService")}),define(ve[261],we([0,1,11,2,8,198]),function(oe,e,b,t,D,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RemoteFileSystemProviderClient=e.REMOTE_FILE_SYSTEM_CHANNEL_NAME=void 0,e.REMOTE_FILE_SYSTEM_CHANNEL_NAME="remoteFilesystem";class k extends P.DiskFileSystemProviderClient{static register(p,C,T){const R=p.getConnection();if(!R)return t.Disposable.None;const w=new t.DisposableStore,E=(async()=>{try{const d=await p.getRawEnvironment();d?C.registerProvider(D.Schemas.vscodeRemote,w.add(new k(d,R))):T.error("Cannot register remote filesystem provider. Remote environment doesnot exist.")}catch(d){T.error("Cannot register remote filesystem provider. Error while fetching remote environment.",(0,b.getErrorMessage)(d))}})();return w.add(C.onWillActivateFileSystemProvider(d=>{d.scheme===D.Schemas.vscodeRemote&&d.join(E)})),w}constructor(p,C){super(C.getChannel(e.REMOTE_FILE_SYSTEM_CHANNEL_NAME),{pathCaseSensitive:p.os===3})}}e.RemoteFileSystemProviderClient=k}),define(ve[127],we([0,1,30,14,6,12,21,157,273,274]),function(oe,e,b,t,D,P,k,y,p,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buffer=e.extract=e.zip=e.ExtractError=void 0;class T extends Error{constructor(i,s){let n=s.message;switch(i){case"CorruptZip":n=`Corrupt ZIP: ${n}`;break}super(n);this.type=i,this.cause=s}}e.ExtractError=T;function R(f){const i=f.externalFileAttributes>>16||33188;return[448,56,7].map(s=>i&s).reduce((s,n)=>s+n,i&61440)}function w(f){if(f instanceof T)return f;let i;return/end of central directory record signature not found/.test(f.message)&&(i="CorruptZip"),new T(i,f)}function E(f,i,s,n,a,o){const r=D.dirname(i),l=D.join(n,r);if(!l.startsWith(n))return Promise.reject(new Error(y.localize(0,null,i)));const h=D.join(n,i);let S;return o.onCancellationRequested(()=>{S&&S.destroy()}),Promise.resolve(k.Promises.mkdir(l,{recursive:!0})).then(()=>new Promise((A,$)=>{if(!o.isCancellationRequested)try{S=(0,b.createWriteStream)(h,{mode:s}),S.once("close",()=>A()),S.once("error",$),f.once("error",$),f.pipe(S)}catch(W){$(W)}}))}function d(f,i,s,n){let a=(0,t.createCancelablePromise)(()=>Promise.resolve()),o=0;return n.onCancellationRequested(()=>{a.cancel(),f.close()}),new Promise((r,l)=>{const h=new t.Sequencer,S=A=>{A.isCancellationRequested||(o++,f.readEntry())};f.once("error",l),f.once("close",()=>a.then(()=>{n.isCancellationRequested||f.entryCount===o?r():l(new T("Incomplete",new Error(y.localize(1,null,o,f.entryCount))))},l)),f.readEntry(),f.on("entry",A=>{if(n.isCancellationRequested)return;if(!s.sourcePathRegex.test(A.fileName)){S(n);return}const $=A.fileName.replace(s.sourcePathRegex,"");if(/\/$/.test($)){const L=D.join(i,$);a=(0,t.createCancelablePromise)(q=>k.Promises.mkdir(L,{recursive:!0}).then(()=>S(q)).then(void 0,l));return}const W=v(f,A),ee=R(A);a=(0,t.createCancelablePromise)(L=>h.queue(()=>W.then(q=>E(q,$,ee,i,s,L).then(()=>S(L)))).then(null,l))})})}function I(f,i=!1){return new Promise((s,n)=>{(0,p.open)(f,i?{lazyEntries:!0}:void 0,(a,o)=>{a?n(w(a)):s((0,P.assertIsDefined)(o))})})}function v(f,i){return new Promise((s,n)=>{f.openReadStream(i,(a,o)=>{a?n(w(a)):s((0,P.assertIsDefined)(o))})})}function m(f,i){return new Promise((s,n)=>{const a=new C.ZipFile;i.forEach(r=>{r.contents?a.addBuffer(typeof r.contents=="string"?Buffer.from(r.contents,"utf8"):r.contents,r.path):r.localPath&&a.addFile(r.localPath,r.path)}),a.end();const o=(0,b.createWriteStream)(f);a.outputStream.pipe(o),a.outputStream.once("error",n),o.once("error",n),o.once("finish",()=>s(f))})}e.zip=m;function g(f,i,s={},n){const a=new RegExp(s.sourcePath?`^${s.sourcePath}`:"");let o=I(f,!0);return s.overwrite&&(o=o.then(r=>k.Promises.rm(i).then(()=>r))),o.then(r=>d(r,i,{sourcePathRegex:a},n))}e.extract=g;function u(f,i){return I(f).then(s=>new Promise((n,a)=>{s.on("entry",o=>{o.fileName===i&&v(s,o).then(r=>n(r),r=>a(r))}),s.once("close",()=>a(new Error(y.localize(2,null,i))))}))}function c(f,i){return u(f,i).then(s=>new Promise((n,a)=>{const o=[];s.once("error",a),s.on("data",r=>o.push(r)),s.on("end",()=>n(Buffer.concat(o)))}))}e.buffer=c}),define(ve[262],we([0,1,127,166]),function(oe,e,b,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getManifest=void 0;function D(P){return(0,b.buffer)(P,"extension/package.json").then(k=>{try{return JSON.parse(k.toString("utf8"))}catch{throw new Error((0,t.localize)(0,null))}})}e.getManifest=D}),define(ve[128],we([0,1,14,38,11,2,8,6,3,19,50,12,4,23,21,127,165,72,29,233,31,35,53,55,210,234,262,211,232,36,70,17,5,13,26,32,39,37]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g,u,c,f,i,s,n,a,o,r,l,h,S,A,$,W,ee,L,q,ne){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionManagementService=e.INativeServerExtensionManagementService=void 0,e.INativeServerExtensionManagementService=(0,$.refineServiceDecorator)(c.IServerExtensionManagementService);let x=class extends u.AbstractExtensionManagementService{constructor(G,se,O,F,K,re,he,te,Q,Z,ae,j){super(G,se,O,Z,j);this.environmentService=F,this.extensionsScannerService=K,this.extensionsProfileScannerService=re,this.downloadService=he,this.fileService=Q,this.installGalleryExtensionsTasks=new Map;const ie=this._register(te.createInstance(a.ExtensionsLifecycle));this.extensionsScanner=this._register(te.createInstance(fe,Y=>ie.postUninstall(Y))),this.manifestCache=this._register(new r.ExtensionsManifestCache(F,this)),this.extensionsDownloader=this._register(te.createInstance(n.ExtensionsDownloader));const H=this._register(new l.ExtensionsWatcher(this,Q,F,O,ae));this._register(H.onDidChangeExtensionsByAnotherSource(({added:Y,removed:le})=>{Y.length&&this._onDidInstallExtensions.fire(Y.map(pe=>({identifier:pe.identifier,operation:1,local:pe}))),le.forEach(pe=>this._onDidUninstallExtension.fire({identifier:pe}))}))}getTargetPlatform(){return this._targetPlatformPromise||(this._targetPlatformPromise=(0,f.computeTargetPlatform)(this.fileService,this.logService)),this._targetPlatformPromise}async zip(G){this.logService.trace("ExtensionManagementService#zip",G.identifier.id);const se=await this.collectFiles(G),O=await(0,I.zip)((0,C.joinPath)(this.environmentService.tmpDir,(0,E.generateUuid)()).fsPath,se);return w.URI.file(O)}async unzip(G){return this.logService.trace("ExtensionManagementService#unzip",G.toString()),(await this.install(G)).identifier}async getManifest(G){const se=await this.downloadVsix(G),O=y.resolve(se.fsPath);return(0,o.getManifest)(O)}getInstalled(G,se){return this.extensionsScanner.scanExtensions(G??null,se)}getAllUserInstalled(){return this.extensionsScanner.scanUserExtensions(!1)}async install(G,se={}){this.logService.trace("ExtensionManagementService#install",G.toString());const O=await this.downloadVsix(G),F=await(0,o.getManifest)(y.resolve(O.fsPath));if(F.engines&&F.engines.vscode&&!(0,S.isEngineValid)(F.engines.vscode,this.productService.version,this.productService.date))throw new Error(v.localize(0,null,(0,f.getGalleryExtensionId)(F.publisher,F.name),this.productService.version));return this.installExtension(F,O,se)}getMetadata(G){return this.extensionsScannerService.scanMetadata(G.location)}async updateMetadata(G,se){this.logService.trace("ExtensionManagementService#updateMetadata",G.identifier.id);const O={...se};return se.isPreReleaseVersion&&(O.preRelease=!0),G=await this.extensionsScanner.updateMetadata(G,O),this.manifestCache.invalidate(),G}async updateExtensionScope(G,se){return this.logService.trace("ExtensionManagementService#updateExtensionScope",G.identifier.id),G=await this.extensionsScanner.updateMetadata(G,{isMachineScoped:se}),this.manifestCache.invalidate(),G}removeUninstalledExtensions(G){return this.extensionsScanner.cleanUp(G)}async downloadVsix(G){if(G.scheme===k.Schemas.file)return G;const se=(0,C.joinPath)(this.environmentService.tmpDir,(0,E.generateUuid)());return await this.downloadService.download(G,se),se}doCreateInstallExtensionTask(G,se,O){let F;if(w.URI.isUri(se))F=new U(G,se,O,this.galleryService,this.extensionsScanner,this.logService);else{const K=f.ExtensionKey.create(se).toString();F=this.installGalleryExtensionsTasks.get(K),F||(this.installGalleryExtensionsTasks.set(K,F=new B(G,se,O,this.extensionsDownloader,this.extensionsScanner,this.logService)),F.waitUntilTaskIsFinished().then(()=>this.installGalleryExtensionsTasks.delete(K)))}return O.profileLocation?new z(F,O.profileLocation,this.extensionsProfileScannerService):F}doCreateUninstallExtensionTask(G,se){return se.profileLocation?new ue(G,se.profileLocation,this.extensionsProfileScannerService):new X(G,se,this.extensionsScanner)}async collectFiles(G){const se=async F=>{let K=await d.Promises.readdir(F);K=K.map(te=>y.join(F,te));const re=await Promise.all(K.map(te=>d.Promises.stat(te)));let he=Promise.resolve([]);return re.forEach((te,Q)=>{const Z=K[Q];te.isFile()&&(he=he.then(ae=>[...ae,Z])),te.isDirectory()&&(he=he.then(ae=>se(Z).then(j=>[...ae,...j])))}),he};return(await se(G.location.fsPath)).map(F=>({path:`extension/${y.relative(G.location.fsPath,F)}`,localPath:F}))}};x=_e([Ae(0,c.IExtensionGalleryService),Ae(1,L.ITelemetryService),Ae(2,W.ILogService),Ae(3,g.INativeEnvironmentService),Ae(4,s.IExtensionsScannerService),Ae(5,i.IExtensionsProfileScannerService),Ae(6,m.IDownloadService),Ae(7,$.IInstantiationService),Ae(8,A.IFileService),Ae(9,ee.IProductService),Ae(10,q.IUriIdentityService),Ae(11,ne.IUserDataProfilesService)],x),e.ExtensionManagementService=x;let fe=class extends P.Disposable{constructor(G,se,O,F){super();this.beforeRemovingExtension=G,this.fileService=se,this.extensionsScannerService=O,this.logService=F,this.uninstalledPath=(0,C.joinPath)(this.extensionsScannerService.userExtensionsLocation,".obsolete").fsPath,this.uninstalledFileLimiter=new b.Queue}async cleanUp(G){await this.removeUninstalledExtensions(),G&&await this.removeOutdatedExtensions()}async scanExtensions(G,se){const O={includeInvalid:!0,profileLocation:se};let F=[];return G===null||G===0?F.push(...await this.extensionsScannerService.scanAllExtensions({includeInvalid:!0},O)):G===1&&F.push(...await this.extensionsScannerService.scanUserExtensions(O)),F=G!==null?F.filter(K=>K.type===G):F,Promise.all(F.map(K=>this.toLocalExtension(K)))}async scanUserExtensions(G){const se=await this.extensionsScannerService.scanUserExtensions({includeAllVersions:!G,includeInvalid:!0});return Promise.all(se.map(O=>this.toLocalExtension(O)))}async extractUserExtension(G,se,O,F){const K=G.toString(),re=y.join(this.extensionsScannerService.userExtensionsLocation.fsPath,`.${(0,E.generateUuid)()}`),he=y.join(this.extensionsScannerService.userExtensionsLocation.fsPath,K);try{await d.Promises.rm(he)}catch{throw new c.ExtensionManagementError(v.localize(1,null,he,G.id),c.ExtensionManagementErrorCode.Delete)}await this.extractAtLocation(G,se,re,F),O={...O,installedTimestamp:Date.now()},await this.extensionsScannerService.updateMetadata(w.URI.file(re),O);try{await this.rename(G,re,he,Date.now()+2*60*1e3),this.logService.info("Renamed to",he)}catch(te){try{await d.Promises.rm(re)}catch{}if(te.code==="ENOTEMPTY")this.logService.info("Rename failed because extension was installed by another source. So ignoring renaming.",G.id);else throw this.logService.info(`Rename failed because of ${(0,D.getErrorMessage)(te)}. Deleted from extracted location`,re),te}return this.scanLocalExtension(w.URI.file(he),1)}async updateMetadata(G,se){return await this.extensionsScannerService.updateMetadata(G.location,se),this.scanLocalExtension(G.location,G.type)}getUninstalledExtensions(){return this.withUninstalledExtensions()}async setUninstalled(...G){const se=G.map(O=>f.ExtensionKey.create(O));await this.withUninstalledExtensions(O=>{se.forEach(F=>O[F.toString()]=!0)})}async setInstalled(G){await this.withUninstalledExtensions(F=>delete F[G.toString()]);const O=(await this.scanUserExtensions(!0)).find(F=>f.ExtensionKey.create(F).equals(G))||null;return O?this.updateMetadata(O,{installedTimestamp:Date.now()}):null}async removeExtension(G,se){this.logService.trace(`Deleting ${se} extension from disk`,G.identifier.id,G.location.fsPath),await d.Promises.rm(G.location.fsPath),this.logService.info("Deleted from disk",G.identifier.id,G.location.fsPath)}async removeUninstalledExtension(G){await this.removeExtension(G,"uninstalled"),await this.withUninstalledExtensions(se=>delete se[f.ExtensionKey.create(G).toString()])}async withUninstalledExtensions(G){return this.uninstalledFileLimiter.queue(async()=>{let se;try{se=await d.Promises.readFile(this.uninstalledPath,"utf8")}catch(F){if(F.code!=="ENOENT")throw F}let O={};if(se)try{O=JSON.parse(se)}catch{}return G&&(G(O),Object.keys(O).length?await d.Promises.writeFile(this.uninstalledPath,JSON.stringify(O)):await d.Promises.rm(this.uninstalledPath)),O})}async extractAtLocation(G,se,O,F){this.logService.trace(`Started extracting the extension from ${se} to ${O}`);try{await d.Promises.rm(O)}catch(K){throw new c.ExtensionManagementError(this.joinErrors(K).message,c.ExtensionManagementErrorCode.Delete)}try{await(0,I.extract)(se,O,{sourcePath:"extension",overwrite:!0},F),this.logService.info(`Extracted extension to ${O}:`,G.id)}catch(K){try{await d.Promises.rm(O)}catch{}let re=c.ExtensionManagementErrorCode.Extract;throw K instanceof I.ExtractError&&(K.type==="CorruptZip"?re=c.ExtensionManagementErrorCode.CorruptZip:K.type==="Incomplete"&&(re=c.ExtensionManagementErrorCode.IncompleteZip)),new c.ExtensionManagementError(K.message,re)}}async rename(G,se,O,F){try{await d.Promises.rename(se,O)}catch(K){if(p.isWindows&&K&&K.code==="EPERM"&&Date.now()<F)return this.logService.info(`Failed renaming ${se} to ${O} with 'EPERM' error. Trying again...`,G.id),this.rename(G,se,O,F);throw new c.ExtensionManagementError(K.message||v.localize(2,null,se,O),K.code||c.ExtensionManagementErrorCode.Rename)}}async scanLocalExtension(G,se){const O=await this.extensionsScannerService.scanExistingExtension(G,se,{includeInvalid:!0});if(O)return this.toLocalExtension(O);throw new Error(v.localize(3,null,G.path))}async toLocalExtension(G){const se=await this.fileService.resolve(G.location);let O,F;return se.children&&(O=se.children.find(({name:K})=>/^readme(\.txt|\.md|)$/i.test(K))?.resource,F=se.children.find(({name:K})=>/^changelog(\.txt|\.md|)$/i.test(K))?.resource),{identifier:G.identifier,type:G.type,isBuiltin:G.isBuiltin||!!G.metadata?.isBuiltin,location:G.location,manifest:G.manifest,targetPlatform:G.targetPlatform,validations:G.validations,isValid:G.isValid,readmeUrl:O,changelogUrl:F,publisherDisplayName:G.metadata?.publisherDisplayName||null,publisherId:G.metadata?.publisherId||null,isApplicationScoped:!!G.metadata?.isApplicationScoped,isMachineScoped:!!G.metadata?.isMachineScoped,isPreReleaseVersion:!!G.metadata?.isPreReleaseVersion,preRelease:!!G.metadata?.preRelease,installedTimestamp:G.metadata?.installedTimestamp,updated:!!G.metadata?.updated}}async removeUninstalledExtensions(){const G=await this.getUninstalledExtensions(),se=await this.extensionsScannerService.scanUserExtensions({includeAllVersions:!0,includeUninstalled:!0,includeInvalid:!0}),O=new Set;for(const re of se)G[f.ExtensionKey.create(re).toString()]||O.add(re.identifier.id.toLowerCase());const F=(0,f.groupByExtension)(se,re=>re.identifier);await b.Promises.settled(F.map(async re=>{const he=re.sort((te,Q)=>T.rcompare(te.manifest.version,Q.manifest.version))[0];O.has(he.identifier.id.toLowerCase())||await this.beforeRemovingExtension(await this.toLocalExtension(he))}));const K=se.filter(re=>G[f.ExtensionKey.create(re).toString()]);await b.Promises.settled(K.map(re=>this.removeUninstalledExtension(re)))}async removeOutdatedExtensions(){const G=await this.extensionsScannerService.scanSystemExtensions({}),se=await this.extensionsScannerService.scanUserExtensions({includeAllVersions:!0,includeUninstalled:!0,includeInvalid:!0}),O=[],F=await this.extensionsScannerService.getTargetPlatform(),K=(0,f.groupByExtension)(se,re=>re.identifier);for(const re of K)if(re.length>1&&O.push(...re.sort((he,te)=>{const Q=T.rcompare(he.manifest.version,te.manifest.version);return Q!==0?Q:he.targetPlatform===F?-1:1}).slice(1)),re[0].type===0){const he=G.find(te=>(0,f.areSameExtensions)(te.identifier,re[0].identifier));(!he||T.gte(he.manifest.version,re[0].manifest.version))&&O.push(re[0])}await b.Promises.settled(O.map(re=>this.removeExtension(re,"outdated")))}joinErrors(G){const se=Array.isArray(G)?G:[G];return se.length===1?se[0]instanceof Error?se[0]:new Error(se[0]):se.reduce((O,F)=>new Error(`${O.message}${O.message?",":""}${F instanceof Error?F.message:F}`),new Error(""))}};fe=_e([Ae(1,A.IFileService),Ae(2,s.IExtensionsScannerService),Ae(3,W.ILogService)],fe);class M extends u.AbstractExtensionTask{constructor(G,se,O,F,K){super();this.identifier=G,this.source=se,this.options=O,this.extensionsScanner=F,this.logService=K,this._operation=2}get operation(){return(0,R.isUndefined)(this.options.operation)?this._operation:this.options.operation}async installExtension(G,se){try{const O=await this.unsetUninstalledAndGetLocal(G.key);if(O)return G.metadata?this.extensionsScanner.updateMetadata(O,G.metadata):O}catch{throw p.isMacintosh?new c.ExtensionManagementError(v.localize(4,null),c.ExtensionManagementErrorCode.Internal):new c.ExtensionManagementError(v.localize(5,null),c.ExtensionManagementErrorCode.Internal)}return this.extract(G,se)}async unsetUninstalledAndGetLocal(G){if(!await this.isUninstalled(G))return null;this.logService.trace("Removing the extension from uninstalled list:",G.id);const O=await this.extensionsScanner.setInstalled(G);return this.logService.info("Removed the extension from uninstalled list:",G.id),O}async isUninstalled(G){return!!(await this.extensionsScanner.getUninstalledExtensions())[G.toString()]}async extract({zipPath:G,key:se,metadata:O},F){const K=await this.extensionsScanner.extractUserExtension(se,G,O,F);return this.logService.info("Extracting completed.",se.id),K}}class B extends M{constructor(G,se,O,F,K,re){super(se.identifier,se,O,K,re);this.manifest=G,this.gallery=se,this.extensionsDownloader=F}async doRun(G){const O=(await this.extensionsScanner.scanExtensions(null,void 0)).find(re=>(0,f.areSameExtensions)(re.identifier,this.gallery.identifier));O&&(this._operation=3);const F={id:this.gallery.identifier.uuid,publisherId:this.gallery.publisherId,publisherDisplayName:this.gallery.publisherDisplayName,targetPlatform:this.gallery.properties.targetPlatform,isApplicationScoped:(0,h.isApplicationScopedExtension)(this.manifest),isMachineScoped:this.options.isMachineScoped||O?.isMachineScoped,isBuiltin:this.options.isBuiltin||O?.isBuiltin,isSystem:O?.type===0?!0:void 0,updated:!!O,isPreReleaseVersion:this.gallery.properties.isPreReleaseVersion,preRelease:this.gallery.properties.isPreReleaseVersion||((0,R.isBoolean)(this.options.installPreReleaseVersion)?this.options.installPreReleaseVersion:O?.preRelease)};if(O?.manifest.version===this.gallery.version)return{local:await this.extensionsScanner.updateMetadata(O,F),metadata:F};const K=await this.downloadExtension(this.gallery,this._operation);try{const re=await this.installExtension({zipPath:K,key:f.ExtensionKey.create(this.gallery),metadata:F},G);return O&&!this.options.profileLocation&&(O.targetPlatform!==re.targetPlatform||T.neq(O.manifest.version,re.manifest.version))&&await this.extensionsScanner.setUninstalled(O),{local:re,metadata:F}}catch(re){throw await this.deleteDownloadedVSIX(K),re}}async deleteDownloadedVSIX(G){try{await this.extensionsDownloader.delete(w.URI.file(G))}catch(se){this.logService.warn("Error while deleting the downloaded vsix",G.toString(),(0,D.getErrorMessage)(se))}}async downloadExtension(G,se){let O;try{this.logService.trace("Started downloading extension:",G.identifier.id),O=(await this.extensionsDownloader.downloadExtension(G,se)).fsPath,this.logService.info("Downloaded extension:",G.identifier.id,O)}catch(F){throw new c.ExtensionManagementError((0,u.joinErrors)(F).message,c.ExtensionManagementErrorCode.Download)}try{return await(0,o.getManifest)(O),O}catch(F){throw await this.deleteDownloadedVSIX(O),new c.ExtensionManagementError((0,u.joinErrors)(F).message,c.ExtensionManagementErrorCode.Invalid)}}}class U extends M{constructor(G,se,O,F,K,re){super({id:(0,f.getGalleryExtensionId)(G.publisher,G.name)},se,O,K,re);this.manifest=G,this.location=se,this.galleryService=F}async doRun(G){const se=new f.ExtensionKey(this.identifier,this.manifest.version),F=(await this.extensionsScanner.scanExtensions(1,void 0)).find(he=>(0,f.areSameExtensions)(this.identifier,he.identifier)),K=await this.getMetadata(this.identifier.id,this.manifest.version,G);if(K.isApplicationScoped=(0,h.isApplicationScopedExtension)(this.manifest),K.isMachineScoped=this.options.isMachineScoped||F?.isMachineScoped,K.isBuiltin=this.options.isBuiltin||F?.isBuiltin,F)if(this._operation=3,se.equals(new f.ExtensionKey(F.identifier,F.manifest.version)))try{await this.extensionsScanner.removeExtension(F,"existing")}catch{throw new Error(v.localize(6,null,this.manifest.displayName||this.manifest.name))}else!this.options.profileLocation&&T.gt(F.manifest.version,this.manifest.version)&&await this.extensionsScanner.setUninstalled(F);else{const he=await this.unsetUninstalledAndGetLocal(se);if(he)try{await this.extensionsScanner.removeExtension(he,"existing")}catch{throw new Error(v.localize(7,null,this.manifest.displayName||this.manifest.name))}}return{local:await this.installExtension({zipPath:y.resolve(this.location.fsPath),key:se,metadata:K},G),metadata:K}}async getMetadata(G,se,O){try{let[F]=await this.galleryService.getExtensions([{id:G,version:se}],O);if(F||([F]=await this.galleryService.getExtensions([{id:G}],O)),F)return{id:F.identifier.uuid,publisherDisplayName:F.publisherDisplayName,publisherId:F.publisherId,isPreReleaseVersion:F.properties.isPreReleaseVersion,preRelease:F.properties.isPreReleaseVersion||this.options.installPreReleaseVersion}}catch{}return{}}}class z{constructor(G,se,O){this.task=G,this.profileLocation=se,this.extensionsProfileScannerService=O,this.identifier=this.task.identifier,this.source=this.task.source,this.operation=this.task.operation,this.promise=this.waitAndAddExtensionToProfile()}async waitAndAddExtensionToProfile(){const G=await this.task.waitUntilTaskIsFinished();return await this.extensionsProfileScannerService.addExtensionsToProfile([[G.local,G.metadata]],this.profileLocation),G}async run(){return await this.task.run(),this.promise}waitUntilTaskIsFinished(){return this.promise}cancel(){return this.task.cancel()}}class X extends u.AbstractExtensionTask{constructor(G,se,O){super();this.extension=G,this.options=se,this.extensionsScanner=O}async doRun(G){const se=[],O=await this.extensionsScanner.scanUserExtensions(!1);if(this.options.versionOnly){const F=f.ExtensionKey.create(this.extension);se.push(...O.filter(K=>F.equals(f.ExtensionKey.create(K))))}else se.push(...O.filter(F=>(0,f.areSameExtensions)(F.identifier,this.extension.identifier)));if(!se.length)throw new Error(v.localize(8,null,this.extension.manifest.displayName||this.extension.manifest.name));if(await this.extensionsScanner.setUninstalled(...se),this.options.remove)for(const F of se)try{G.isCancellationRequested||await this.extensionsScanner.removeUninstalledExtension(F)}catch(K){throw new Error(v.localize(9,null,(0,t.toErrorMessage)(K)))}}}class ue extends u.AbstractExtensionTask{constructor(G,se,O){super();this.extension=G,this.profileLocation=se,this.extensionsProfileScannerService=O}async doRun(G){await this.extensionsProfileScannerService.removeExtensionFromProfile(this.extension.identifier,this.profileLocation)}}}),define(ve[129],we([0,1,76,14,15,11,2,12,25,29,77,13,214,275]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RequestService=void 0;let d=class extends k.Disposable{constructor(v,m,g){super();this.environmentService=m,this.logService=g,this.configure(v.getValue()),this._register(v.onDidChangeConfiguration(()=>this.configure(v.getValue()),this))}configure(v){this.proxyUrl=v.http&&v.http.proxy,this.strictSSL=!!(v.http&&v.http.proxyStrictSSL),this.authorization=v.http&&v.http.proxyAuthorization}async request(v,m){this.logService.trace("RequestService#request (node) - begin",v.url);const{proxyUrl:g,strictSSL:u}=this;let c;try{c=await(0,T.getResolvedShellEnv)(this.logService,this.environmentService.args,process.env)}catch(s){this.shellEnvErrorLogged||(this.shellEnvErrorLogged=!0,this.logService.error("RequestService#request (node) resolving shell environment failed",s))}const f={...process.env,...c},i=v.agent?v.agent:await(0,w.getProxyAgent)(v.url||"",f,{proxyUrl:g,strictSSL:u});v.agent=i,v.strictSSL=u,this.authorization&&(v.headers={...v.headers||{},"Proxy-Authorization":this.authorization});try{const s=await this._request(v,m);return this.logService.trace("RequestService#request (node) - success",v.url),s}catch(s){throw this.logService.trace("RequestService#request (node) - error",v.url,s),s}}async getNodeRequest(v){return((0,b.parse)(v.url).protocol==="https:"?await new Promise((u,c)=>{oe(["https"],u,c)}):await new Promise((u,c)=>{oe(["http"],u,c)})).request}_request(v,m){return t.Promises.withAsyncBody(async(g,u)=>{const c=(0,b.parse)(v.url),f=v.getRawRequest?v.getRawRequest(v):await this.getNodeRequest(v),i={hostname:c.hostname,port:c.port?parseInt(c.port):c.protocol==="https:"?443:80,protocol:c.protocol,path:c.path,method:v.type||"GET",headers:v.headers,agent:v.agent,rejectUnauthorized:(0,y.isBoolean)(v.strictSSL)?v.strictSSL:!0};v.user&&v.password&&(i.auth=v.user+":"+v.password);const s=f(i,n=>{const a=(0,y.isNumber)(v.followRedirects)?v.followRedirects:3;if(n.statusCode&&n.statusCode>=300&&n.statusCode<400&&a>0&&n.headers.location)this._request({...v,url:n.headers.location,followRedirects:a-1},m).then(g,u);else{let o=n;n.headers["content-encoding"]==="gzip"&&(o=n.pipe((0,E.createGunzip)())),g({res:n,stream:(0,D.streamToBufferReadableStream)(o)})}});s.on("error",u),v.timeout&&s.setTimeout(v.timeout),v.data&&typeof v.data=="string"&&s.write(v.data),s.end(),m.onCancellationRequested(()=>{s.abort(),u(new P.CancellationError)})})}async resolveProxy(v){}};d=_e([Ae(0,p.IConfigurationService),Ae(1,C.INativeEnvironmentService),Ae(2,R.ILogService)],d),e.RequestService=d}),define(ve[263],we([0,1,73,13,59,104,25,54,129,45,32,31,113,128,99,51,2,100,61,8,17,26,102,126,40,106,74,107,11,4,6,27,212,72,39,112,58,3,55,115,37,53,62]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g,u,c,f,i,s,n,a,o,r,l,h,S,A,$,W,ee,L,q,ne,x,fe,M,B,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.run=void 0;class z extends v.Disposable{constructor(G,se){super();this.args=G,this.remoteDataFolder=se,this.registerListeners()}registerListeners(){process.once("exit",()=>this.dispose())}async run(){await(await this.initServices()).invokeFunction(async se=>{const O=se.get(t.ILogService),F=se.get(R.IExtensionManagementCLIService);try{await this.doRun(F)}catch(K){throw O.error(K),console.error((0,l.getErrorMessage)(K)),K}})}async initServices(){const G=new b.ServiceCollection,se={_serviceBrand:void 0,...I.default};G.set(f.IProductService,se);const O=new n.ServerEnvironmentService(this.args,se);G.set(n.IServerEnvironmentService,O);const F=new t.LogService(new i.SpdLogLogger(s.RemoteExtensionLogFileName,(0,S.join)(O.logsPath,`${s.RemoteExtensionLogFileName}.log`),!0,!1,(0,t.getLogLevel)(O)));G.set(t.ILogService,F),F.trace(`Remote configuration data at ${this.remoteDataFolder}`),F.trace("process arguments:",this.args);const K=this._register(new m.FileService(F));G.set(c.IFileService,K),K.registerProvider(u.Schemas.file,this._register(new g.DiskFileSystemProvider(F)));const re=new L.UriIdentityService(K);G.set(ee.IUriIdentityService,re);const he=this._register(new M.UserDataProfilesService(O,K,re,F));G.set(M.IUserDataProfilesService,he);const te=this._register(new P.ConfigurationService(he.defaultProfile.settingsResource,K,new U.NullPolicyService,F));return await te.initialize(),G.set(k.IConfigurationService,te),G.set(y.IRequestService,new D.SyncDescriptor(p.RequestService)),G.set(W.IDownloadService,new D.SyncDescriptor($.DownloadService)),G.set(T.ITelemetryService,C.NullTelemetryService),G.set(R.IExtensionGalleryService,new D.SyncDescriptor(w.ExtensionGalleryServiceWithNoStorageService)),G.set(B.IExtensionsProfileScannerService,new D.SyncDescriptor(B.ExtensionsProfileScannerService)),G.set(x.IExtensionsScannerService,new D.SyncDescriptor(fe.ExtensionsScannerService)),G.set(E.INativeServerExtensionManagementService,new D.SyncDescriptor(E.ExtensionManagementService)),G.set(R.IExtensionManagementCLIService,new D.SyncDescriptor(a.ExtensionManagementCLIService)),G.set(o.ILanguagePackService,new D.SyncDescriptor(r.NativeLanguagePackService)),new d.InstantiationService(G)}async doRun(G){if(this.args["list-extensions"])return G.listExtensions(!!this.args["show-versions"],this.args.category);if(this.args["install-extension"]||this.args["install-builtin-extension"]){const se={isMachineScoped:!!this.args["do-not-sync"],installPreReleaseVersion:!!this.args["pre-release"]};return G.installExtensions(this.asExtensionIdOrVSIX(this.args["install-extension"]||[]),this.args["install-builtin-extension"]||[],se,!!this.args.force)}else{if(this.args["uninstall-extension"])return G.uninstallExtensions(this.asExtensionIdOrVSIX(this.args["uninstall-extension"]),!!this.args.force);if(this.args["locate-extension"])return G.locateExtension(this.args["locate-extension"])}}asExtensionIdOrVSIX(G){return G.map(se=>/\.vsix$/i.test(se)?h.URI.file((0,S.isAbsolute)(se)?se:(0,S.join)((0,A.cwd)(),se)):se)}}function X(de){setTimeout(()=>process.exit(de),0)}async function ue(de,G,se){if(de.help){const F=I.default.serverApplicationName+(ne.isWindows?".cmd":"");console.log((0,q.buildHelpMessage)(I.default.nameLong,F,I.default.version,se,{noInputFiles:!0,noPipe:!0}));return}if(de.version){console.log((0,q.buildVersionMessage)(I.default.version,I.default.commit));return}const O=new z(de,G);try{await O.run(),X(0)}catch{X(1)}finally{O.dispose()}}e.run=ue}),define(ve[264],we([0,1,28,7,2,8,6,88,21,44,25,104,71,239,185,72,186,196,188,29,113,31,106,197,128,17,100,61,59,99,73,74,107,13,101,102,51,26,54,213,129,109,32,45,224,110,231,39,112,256,244,216,221,260,63,40,253,126,261,114,55,115,53,37,240,62,222]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g,u,c,f,i,s,n,a,o,r,l,h,S,A,$,W,ee,L,q,ne,x,fe,M,B,U,z,X,ue,de,G,se,O,F,K,re,he,te,Q,Z,ae,j,ie,H,Y,le,pe,Pe,Te,Ne){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SocketServer=e.setupServerServices=void 0;const Ue="monacoworkbench";async function ge(xe,je,We,ce){const Ce=new S.ServiceCollection,ke=new Fe,Oe={_serviceBrand:void 0,...q.default};Ce.set(ne.IProductService,Oe);const Re=new Q.ServerEnvironmentService(je,Oe);Ce.set(u.IEnvironmentService,Re),Ce.set(u.INativeEnvironmentService,Re);const Be=new W.LogService(new L.SpdLogLogger(ae.RemoteExtensionLogFileName,k.join(Re.logsPath,`${ae.RemoteExtensionLogFileName}.log`),!0,!1,(0,W.getLogLevel)(Re))),He=new W.MultiplexLogService([new Me((0,W.getLogLevel)(Re)),Be]);Ce.set(W.ILogService,He),setTimeout(()=>Ze(Re.logsPath).then(null,st=>He.error(st)),1e4),He.trace(`Remote configuration data at ${We}`),He.trace("process arguments:",Re.args),Array.isArray(Oe.serverGreeting)&&Be.info(`

${Oe.serverGreeting.join(`
`)}

`),ke.registerChannel(d.ExtensionHostDebugBroadcastChannel.ChannelName,new d.ExtensionHostDebugBroadcastChannel);const Ye=new C.StaticRouter(st=>st.clientId==="renderer");ke.registerChannel("logger",new ee.LogLevelChannel(He));const Xe=ce.add(new o.FileService(He));Ce.set(a.IFileService,Xe),Xe.registerProvider(P.Schemas.file,ce.add(new r.DiskFileSystemProvider(He)));const nt=new se.UriIdentityService(Xe);Ce.set(G.IUriIdentityService,nt);const it=new pe.UserDataProfilesService(Re,Xe,nt,He);Ce.set(pe.IUserDataProfilesService,it);const rt=new R.ConfigurationService(Re.machineSettingsResource,Xe,new Te.NullPolicyService,He);Ce.set(T.IConfigurationService,rt),await rt.initialize();const ft=new ie.ExtensionHostStatusService;Ce.set(ie.IExtensionHostStatusService,ft),Ce.set(x.IRequestService,new l.SyncDescriptor(M.RequestService));let ut=z.NullAppender;const kt=await(0,y.getMachineId)(),yt=(0,z.isInternalTelemetry)(Oe,rt);if((0,z.supportsTelemetry)(Oe,Re)){const st=process.env.CS_TELEMETRY_URL||"https://v1.telemetry.coder.com/track";st?ut=new Ne.OneDataSystemAppender(!1,Ue,null,()=>new Pe.TelemetryClient(st)):Oe.aiConfig&&Oe.aiConfig.ariaKey&&(ut=new Ne.OneDataSystemAppender(yt,Ue,null,Oe.aiConfig.ariaKey)),ce.add((0,D.toDisposable)(()=>ut?.flush()));const St={appenders:[ut],commonProperties:(0,B.resolveCommonProperties)(Xe,(0,b.release)(),(0,b.hostname)(),process.arch,Oe.commit,Oe.version+"-remote",kt,yt,Re.installSourcePath,"remoteAgent"),piiPaths:(0,z.getPiiPathsFromEnvironment)(Re)},dt=Re.args["telemetry-level"];let mt=3;dt==="all"?mt=3:dt==="error"?mt=2:dt==="crash"?mt=1:dt!==void 0&&(mt=0),Ce.set(re.IServerTelemetryService,new l.SyncDescriptor(re.ServerTelemetryService,[St,mt]))}else Ce.set(re.IServerTelemetryService,re.ServerNullTelemetryService);Ce.set(f.IExtensionGalleryService,new l.SyncDescriptor(c.ExtensionGalleryServiceWithNoStorageService));const At=ke.getChannel("download",Ye);Ce.set(I.IDownloadService,new v.DownloadServiceChannelClient(At,()=>ye("renderer"))),Ce.set(le.IExtensionsProfileScannerService,new l.SyncDescriptor(le.ExtensionsProfileScannerService)),Ce.set(H.IExtensionsScannerService,new l.SyncDescriptor(Y.ExtensionsScannerService)),Ce.set(n.INativeServerExtensionManagementService,new l.SyncDescriptor(n.ExtensionManagementService));const ht=new h.InstantiationService(Ce);Ce.set(A.ILanguagePackService,ht.createInstance($.NativeLanguagePackService));const Et=ht.createInstance(i.ExtensionManagementCLIService);Ce.set(f.IExtensionManagementCLIService,Et);const Tt=ht.createInstance(de.PtyHostService,{graceTime:108e5,shortGraceTime:3e5,scrollback:rt.getValue("terminal.integrated.persistentSessionScrollback")??100});return Ce.set(ue.IPtyService,Tt),Ce.set(m.IEncryptionMainService,new l.SyncDescriptor(g.EncryptionMainService,[kt])),Ce.set(w.ICredentialsMainService,new l.SyncDescriptor(E.CredentialsWebMainService)),ht.invokeFunction(st=>{const St=st.get(n.INativeServerExtensionManagementService),dt=st.get(H.IExtensionsScannerService),mt=new O.RemoteAgentEnvironmentChannel(xe,Re,it,Et,He,ft,dt);ke.registerChannel("remoteextensionsenvironment",mt);const Se=new K.ServerTelemetryChannel(st.get(re.IServerTelemetryService),ut);ke.registerChannel("telemetry",Se),ke.registerChannel(Z.REMOTE_TERMINAL_CHANNEL_NAME,new he.RemoteTerminalChannel(Re,He,Tt,Oe,St));const Ie=new F.RemoteAgentFileSystemProviderChannel(He,Re);ke.registerChannel(j.REMOTE_FILE_SYSTEM_CHANNEL_NAME,Ie),ke.registerChannel("request",new fe.RequestChannel(st.get(x.IRequestService)));const me=new s.ExtensionManagementChannel(St,Ke=>ye(Ke.remoteAuthority));ke.registerChannel("extensions",me);const V=C.ProxyChannel.fromService(st.get(A.ILanguagePackService));ke.registerChannel("languagePacks",V);const De=C.ProxyChannel.fromService(st.get(m.IEncryptionMainService));ke.registerChannel("encryption",De);const Le=C.ProxyChannel.fromService(st.get(w.ICredentialsMainService));return ke.registerChannel("credentials",Le),St.removeUninstalledExtensions(!0),ce.add(new X.default(st.get(U.ITelemetryService))),{telemetryService:st.get(U.ITelemetryService)}}),{socketServer:ke,instantiationService:ht}}e.setupServerServices=ge;const be=Object.create(null);function ye(xe){return be[xe]||(be[xe]=(0,te.createURITransformer)(xe)),be[xe]}class Fe extends C.IPCServer{constructor(){const je=new t.Emitter;super(je.event);this._onDidConnectEmitter=je}acceptConnection(je,We){this._onDidConnectEmitter.fire({protocol:je,onDidClientDisconnect:We})}}e.SocketServer=Fe;class Me extends W.AbstractLogger{constructor(je=W.DEFAULT_LOG_LEVEL){super();this.setLevel(je),this.useColors=Boolean(process.stdout.isTTY)}trace(je,...We){this.getLevel()<=W.LogLevel.Trace&&(this.useColors?console.log(`[${Qe()}]`,je,...We):console.log(`[${Qe()}]`,je,...We))}debug(je,...We){this.getLevel()<=W.LogLevel.Debug&&(this.useColors?console.log(`[${Qe()}]`,je,...We):console.log(`[${Qe()}]`,je,...We))}info(je,...We){this.getLevel()<=W.LogLevel.Info&&(this.useColors?console.log(`[${Qe()}]`,je,...We):console.log(`[${Qe()}]`,je,...We))}warn(je,...We){this.getLevel()<=W.LogLevel.Warning&&(this.useColors?console.warn(`[${Qe()}]`,je,...We):console.warn(`[${Qe()}]`,je,...We))}error(je,...We){this.getLevel()<=W.LogLevel.Error&&(this.useColors?console.error(`[${Qe()}]`,je,...We):console.error(`[${Qe()}]`,je,...We))}critical(je,...We){this.getLevel()<=W.LogLevel.Critical&&(this.useColors?console.error(`[${Qe()}]`,je,...We):console.error(`[${Qe()}]`,je,...We))}dispose(){}flush(){}}function Qe(){const xe=new Date;return`${$e(xe.getHours())}:${$e(xe.getMinutes())}:${$e(xe.getSeconds())}`}function $e(xe){return xe<10?`0${xe}`:String(xe)}async function Ze(xe){const je=k.basename(xe),We=k.dirname(xe),ke=(await p.Promises.readdir(We)).filter(Re=>/^\d{8}T\d{6}$/.test(Re)).sort().filter(Re=>Re!==je),Oe=ke.slice(0,Math.max(0,ke.length-9));await Promise.all(Oe.map(Re=>p.Promises.rm(k.join(We,Re))))}}),define(ve[265],we([0,1,108,30,89,266,76,130,15,11,33,2,8,6,48,3,16,4,23,146,92,57,5,13,26,75,32,124,236,237,40,264,242]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w,E,d,I,v,m,g,u,c,f,i,s,n,a,o,r,l,h,S,A,$){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createServer=e.RemoteExtensionHostAgentServer=void 0;const W=5*60*1e3;let ee=class extends R.Disposable{constructor(x,fe,M,B,U,z,X,ue){super();this._socketServer=x,this._connectionToken=fe,this._vsdaMod=M,this._environmentService=U,this._productService=z,this._logService=X,this._instantiationService=ue,this._webEndpointOriginChecker=q.create(this._productService),this._serverRootPath=(0,a.getRemoteServerRootPath)(z),this._extHostConnections=Object.create(null),this._managementConnections=Object.create(null),this._allReconnectionTokens=new Set,this._webClientServer=B?this._instantiationService.createInstance($.WebClientServer,this._connectionToken):null,this._logService.info("Extension host agent started.")}async handleRequest(x,fe){if(x.method!=="GET")return(0,$.serveError)(x,fe,405,`Unsupported method ${x.method}`);if(!x.url)return(0,$.serveError)(x,fe,400,"Bad request.");const M=k.parse(x.url,!0);let B=M.pathname;if(!B)return(0,$.serveError)(x,fe,400,"Bad request.");if(B.startsWith(this._serverRootPath)&&B.charCodeAt(this._serverRootPath.length)===47&&(B=B.substring(this._serverRootPath.length)),B==="/version")return fe.writeHead(200,{"Content-Type":"text/plain"}),fe.end(this._productService.commit||"");if(B==="/delay-shutdown")return this._delayShutdown(),fe.writeHead(200),fe.end("OK");if(!(0,h.requestHasValidConnectionToken)(this._connectionToken,x,M))return(0,$.serveError)(x,fe,403,"Forbidden.");if(B==="/vscode-remote-resource"){const U=M.query.path;if(typeof U!="string")return(0,$.serveError)(x,fe,400,"Bad request.");let z;try{z=m.URI.from({scheme:w.Schemas.file,path:U}).fsPath}catch{return(0,$.serveError)(x,fe,400,"Bad request.")}const X=Object.create(null);this._environmentService.isBuilt&&((0,T.isEqualOrParent)(z,this._environmentService.builtinExtensionsPath,!I.isLinux)||(0,T.isEqualOrParent)(z,this._environmentService.extensionsPath,!I.isLinux))&&(X["Cache-Control"]="public, max-age=31536000"),X.Vary="Origin";const ue=x.headers.origin;return ue&&this._webEndpointOriginChecker.matches(ue)&&(X["Access-Control-Allow-Origin"]=ue),(0,$.serveFile)(z,1,this._logService,x,fe,X)}if(this._webClientServer){this._webClientServer.handle(x,fe,M);return}return fe.writeHead(404,{"Content-Type":"text/plain"}),fe.end("Not found")}handleUpgrade(x,fe){let M=(0,g.generateUuid)(),B=!1,U=!1;if(x.url){const se=k.parse(x.url,!0).query;typeof se.reconnectionToken=="string"&&(M=se.reconnectionToken),se.reconnection==="true"&&(B=!0),se.skipWebSocketFrames==="true"&&(U=!0)}if(x.headers.upgrade===void 0||x.headers.upgrade.toLowerCase()!=="websocket"){fe.end("HTTP/1.1 400 Bad Request");return}const z=x.headers["sec-websocket-key"],X=b.createHash("sha1");X.update(z+"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");const ue=X.digest("base64"),de=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${ue}`];let G=!1;if(!U&&!this._environmentService.args["disable-websocket-compression"]&&x.headers["sec-websocket-extensions"]){const se=Array.isArray(x.headers["sec-websocket-extensions"])?x.headers["sec-websocket-extensions"]:[x.headers["sec-websocket-extensions"]];for(const O of se)if(!/\b((server_max_window_bits)|(server_no_context_takeover)|(client_no_context_takeover))\b/.test(O)){if(/\b(permessage-deflate)\b/.test(O)){G=!0,de.push("Sec-WebSocket-Extensions: permessage-deflate");break}if(/\b(x-webkit-deflate-frame)\b/.test(O)){G=!0,de.push("Sec-WebSocket-Extensions: x-webkit-deflate-frame");break}}}fe.write(de.join(`\r
`)+`\r
\r
`),fe.setTimeout(0),fe.setNoDelay(!0),U?this._handleWebSocketConnection(new f.NodeSocket(fe,`server-connection-${M}`),B,M):this._handleWebSocketConnection(new f.WebSocketNodeSocket(new f.NodeSocket(fe,`server-connection-${M}`),G,null,!0),B,M)}handleServerError(x){this._logService.error("Error occurred in server"),this._logService.error(x)}_getRemoteAddress(x){let fe;return x instanceof f.NodeSocket?fe=x.socket:fe=x.socket.socket,fe.remoteAddress||"<unknown>"}async _rejectWebSocketConnection(x,fe,M){const B=fe.getSocket();this._logService.error(`${x} ${M}.`);const U={type:"error",reason:M};fe.sendControl(p.VSBuffer.fromString(JSON.stringify(U))),fe.dispose(),await B.drain(),B.dispose()}_handleWebSocketConnection(x,fe,M){const B=this._getRemoteAddress(x),U=`[${B}][${M.substr(0,8)}]`,z=new c.PersistentProtocol(x),X=this._vsdaMod?new this._vsdaMod.validator:null,ue=this._vsdaMod?new this._vsdaMod.signer:null;let de;(function(F){F[F.WaitingForAuth=0]="WaitingForAuth",F[F.WaitingForConnectionType=1]="WaitingForConnectionType",F[F.Done=2]="Done",F[F.Error=3]="Error"})(de||(de={}));let G=0;const se=F=>{G=3,O.dispose(),this._rejectWebSocketConnection(U,z,F)},O=z.onControlMessage(F=>{if(G===0){let K;try{K=JSON.parse(F.toString())}catch{return se("Malformed first message")}if(K.type!=="auth")return se("Invalid first message");if(this._connectionToken.type===2&&!this._connectionToken.validate(K.auth))return se("Unauthorized client refused: auth mismatch");let re=(0,g.generateUuid)();if(ue)try{re=ue.sign(K.data)}catch{}let he=(0,g.generateUuid)();if(X)try{he=X.createNewMessage(he)}catch{}const te={type:"sign",data:he,signedData:re};z.sendControl(p.VSBuffer.fromString(JSON.stringify(te))),G=1}else if(G===1){let K;try{K=JSON.parse(F.toString())}catch{return se("Malformed second message")}if(K.type!=="connectionType")return se("Invalid second message");if(typeof K.signedData!="string")return se("Invalid second message field type");const re=K.commit,he=this._productService.commit;if(re&&he&&re!==he)return se("Client refused: version mismatch");let te=!1;if(!X)te=!0;else if(this._connectionToken.validate(K.signedData))te=!0;else try{te=X.validate(K.signedData)==="ok"}catch{}if(!te){if(this._environmentService.isBuilt)return se("Unauthorized client refused");this._logService.error(`${U} Unauthorized client handshake failed but we proceed because of dev mode.`)}for(const Q in this._managementConnections)this._managementConnections[Q].shortenReconnectionGraceTimeIfNecessary();for(const Q in this._extHostConnections)this._extHostConnections[Q].shortenReconnectionGraceTimeIfNecessary();G=2,O.dispose(),this._handleConnectionType(B,U,z,x,fe,M,K)}})}async _handleConnectionType(x,fe,M,B,U,z,X){const ue=X.desiredConnectionType===1?`${fe}[ManagementConnection]`:X.desiredConnectionType===2?`${fe}[ExtensionHostConnection]`:fe;if(X.desiredConnectionType===1)if(U){if(!this._managementConnections[z])return this._allReconnectionTokens.has(z)?this._rejectWebSocketConnection(ue,M,"Unknown reconnection token (seen before)"):this._rejectWebSocketConnection(ue,M,"Unknown reconnection token (never seen)");M.sendControl(p.VSBuffer.fromString(JSON.stringify({type:"ok"})));const de=M.readEntireBuffer();M.dispose(),this._managementConnections[z].acceptReconnection(x,B,de)}else{if(this._managementConnections[z])return this._rejectWebSocketConnection(ue,M,"Duplicate reconnection token");M.sendControl(p.VSBuffer.fromString(JSON.stringify({type:"ok"})));const de=new l.ManagementConnection(this._logService,z,x,M);this._socketServer.acceptConnection(de.protocol,de.onClose),this._managementConnections[z]=de,this._allReconnectionTokens.add(z),de.onClose(()=>{delete this._managementConnections[z]})}else if(X.desiredConnectionType===2){const de=X.args||{language:"en"},G=await this._updateWithFreeDebugPort(de);if(G.port&&this._logService.trace(`${ue} - startParams debug port ${G.port}`),this._logService.trace(`${ue} - startParams language: ${G.language}`),this._logService.trace(`${ue} - startParams env: ${JSON.stringify(G.env)}`),U){if(!this._extHostConnections[z])return this._allReconnectionTokens.has(z)?this._rejectWebSocketConnection(ue,M,"Unknown reconnection token (seen before)"):this._rejectWebSocketConnection(ue,M,"Unknown reconnection token (never seen)");M.sendPause(),M.sendControl(p.VSBuffer.fromString(JSON.stringify(G.port?{debugPort:G.port}:{})));const se=M.readEntireBuffer();M.dispose(),this._extHostConnections[z].acceptReconnection(x,B,se)}else{if(this._extHostConnections[z])return this._rejectWebSocketConnection(ue,M,"Duplicate reconnection token");M.sendPause(),M.sendControl(p.VSBuffer.fromString(JSON.stringify(G.port?{debugPort:G.port}:{})));const se=M.readEntireBuffer();M.dispose();const O=this._instantiationService.createInstance(r.ExtensionHostConnection,z,x,B,se);this._extHostConnections[z]=O,this._allReconnectionTokens.add(z),O.onClose(()=>{delete this._extHostConnections[z],this._onDidCloseExtHostConnection()}),O.start(G)}}else if(X.desiredConnectionType===3){const de=X.args;this._createTunnel(M,de)}else return this._rejectWebSocketConnection(ue,M,"Unknown initial data received")}async _createTunnel(x,fe){const M=x.getSocket().socket,B=x.readEntireBuffer();x.dispose(),M.pause();const U=await this._connectTunnelSocket(fe.host,fe.port);B.byteLength>0&&U.write(B.buffer),U.on("end",()=>M.end()),U.on("close",()=>M.end()),U.on("error",()=>M.destroy()),M.on("end",()=>U.end()),M.on("close",()=>U.end()),M.on("error",()=>U.destroy()),U.pipe(M),M.pipe(U)}_connectTunnelSocket(x,fe){return new Promise((M,B)=>{const U=D.createConnection({host:x,port:fe},()=>{U.removeListener("error",B),U.pause(),M(U)});U.once("error",B)})}_updateWithFreeDebugPort(x){return typeof x.port=="number"?(0,u.findFreePort)(x.port,10,5e3).then(fe=>(x.port=fe,x)):(x.debugId=void 0,x.port=void 0,x.break=void 0,Promise.resolve(x))}async _onDidCloseExtHostConnection(){if(!this._environmentService.args["enable-remote-auto-shutdown"])return;this._cancelShutdown(),!!Object.keys(this._extHostConnections).length||(console.log("Last EH closed, waiting before shutting down"),this._logService.info("Last EH closed, waiting before shutting down"),this._waitThenShutdown())}_waitThenShutdown(){!this._environmentService.args["enable-remote-auto-shutdown"]||(this._environmentService.args["remote-auto-shutdown-without-delay"]?this._shutdown():this.shutdownTimer=setTimeout(()=>{this.shutdownTimer=void 0,this._shutdown()},W))}_shutdown(){if(!!Object.keys(this._extHostConnections).length){console.log("New EH opened, aborting shutdown"),this._logService.info("New EH opened, aborting shutdown");return}else console.log("Last EH closed, shutting down"),this._logService.info("Last EH closed, shutting down"),this.dispose(),process.exit(0)}_delayShutdown(){this.shutdownTimer&&(console.log("Got delay-shutdown request while in shutdown timeout, delaying"),this._logService.info("Got delay-shutdown request while in shutdown timeout, delaying"),this._cancelShutdown(),this._waitThenShutdown())}_cancelShutdown(){this.shutdownTimer&&(console.log("Cancelling previous shutdown timeout"),this._logService.info("Cancelling previous shutdown timeout"),clearTimeout(this.shutdownTimer),this.shutdownTimer=void 0)}};ee=_e([Ae(4,S.IServerEnvironmentService),Ae(5,n.IProductService),Ae(6,s.ILogService),Ae(7,i.IInstantiationService)],ee),e.RemoteExtensionHostAgentServer=ee;async function L(ne,x,fe){const M=await(0,h.determineServerConnectionToken)(x);M instanceof h.ServerConnectionTokenParseError&&(console.warn(M.message),process.exit(1));const B=new R.DisposableStore,{socketServer:U,instantiationService:z}=await(0,A.setupServerServices)(M,x,fe,B);z.invokeFunction(K=>{const re=K.get(s.ILogService);(0,C.setUnexpectedErrorHandler)(he=>{he&&he.code==="EPIPE"&&he.syscall==="write"&&he.stack&&/unexpectedErrorHandler/.test(he.stack)||re.error(he)}),process.on("SIGPIPE",()=>{(0,C.onUnexpectedError)(new Error("Unexpected SIGPIPE"))})}),z.invokeFunction(K=>{const re=K.get(s.ILogService);if(process.platform==="win32"&&process.env.HOMEDRIVE&&process.env.HOMEPATH){const he=(0,E.join)(process.env.HOMEDRIVE,"node_modules"),te=(0,E.dirname)((0,E.join)(process.env.HOMEDRIVE,process.env.HOMEPATH)),Q=(0,E.join)(te,"node_modules");if(t.existsSync(he)||t.existsSync(Q)){const Z=`

*
* !!!! Server terminated due to presence of CVE-2020-1416 !!!!
*
* Please remove the following directories and re-try
* ${he}
* ${Q}
*
* For more information on the vulnerability https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-1416
*

`;re.warn(Z),console.warn(Z),process.exit(0)}}});const X=z.invokeFunction(K=>{const re=K.get(s.ILogService);if(t.existsSync((0,E.join)(w.FileAccess.asFileUri("",oe).fsPath,"../node_modules/vsda")))try{return oe.__$__nodeRequire("vsda")}catch(te){re.error(te)}return null}),ue=t.existsSync(w.FileAccess.asFileUri("vs/code/browser/workbench/workbench.html",oe).fsPath);if(ue&&ne&&typeof ne!="string"){const K=M.type!==0?`?${w.connectionTokenQueryName}=${M.value}`:"";console.log(`Web UI available at http://localhost${ne.port===80?"":`:${ne.port}`}/${K}`)}const de=z.createInstance(ee,U,M,X,ue);d.mark("code/server/ready");const G=P.performance.now(),se=global.vscodeServerStartTime,O=global.vscodeServerListenTime,F=global.vscodeServerCodeLoadedTime;if(z.invokeFunction(K=>{K.get(o.ITelemetryService).publicLog2("serverStart",{startTime:se,startedTime:O,codeLoadedTime:F,readyTime:G})}),x["print-startup-performance"]){const K=y.LoaderStats.get();let re="";re+=`

### Load AMD-module
`,re+=y.LoaderStats.toMarkdownTable(["Module","Duration"],K.amdLoad),re+=`

### Load commonjs-module
`,re+=y.LoaderStats.toMarkdownTable(["Module","Duration"],K.nodeRequire),re+=`

### Invoke AMD-module factory
`,re+=y.LoaderStats.toMarkdownTable(["Module","Duration"],K.amdInvoke),re+=`

### Invoke commonjs-module
`,re+=y.LoaderStats.toMarkdownTable(["Module","Duration"],K.nodeEval),re+=`Start-up time: ${O-se}
`,re+=`Code loading time: ${F-se}
`,re+=`Initialized time: ${G-se}
`,re+=`
`,console.log(re)}return de}e.createServer=L;class q{constructor(x){this._originRegExp=x}static create(x){const fe=x.webEndpointUrlTemplate,M=x.commit,B=x.quality;if(!fe||!M||!B)return new q(null);const U=(0,g.generateUuid)(),X=new URL(fe.replace("{{uuid}}",U).replace("{{commit}}",M).replace("{{quality}}",B)).origin,ue=(0,v.escapeRegExpCharacters)(X).replace(U,"[a-zA-Z0-9\\-]+");try{const de=(0,v.createRegExp)(`^${ue}$`,!0,{matchCase:!1});return new q(de)}catch{return new q(null)}}matches(x){return this._originRegExp?this._originRegExp.test(x):!1}}}),define(ve[276],we([0,1,28,30,8,263,265,58,6,266,40,51,48]),function(oe,e,b,t,D,P,k,y,p,C,T,R,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createServer=e.spawnCli=void 0,w.mark("code/server/codeLoaded"),global.vscodeServerCodeLoadedTime=C.performance.now();const E={onMultipleValues:(g,u)=>{console.error(`Option '${g}' can only be defined once. Using value ${u}.`)},onEmptyValue:g=>{console.error(`Ignoring option '${g}': Value must not be empty.`)},onUnknownOption:g=>{console.error(`Ignoring option '${g}': not supported for server.`)},onDeprecatedOption:(g,u)=>{console.warn(`Option '${g}' is deprecated: ${u}`)}};function d(){return(0,y.parseArgs)(process.argv.slice(2),T.serverOptions,E)}function I(g){const u=g["server-data-dir"]||g["user-data-dir"]||process.env.VSCODE_AGENT_FOLDER||(0,p.join)(b.homedir(),R.default.serverDataFolderName||".vscode-remote"),c=g["user-data-dir"]||(0,p.join)(u,"data"),f=(0,p.join)(c,"User"),i=(0,p.join)(f,"globalStorage"),s=(0,p.join)(f,"History"),n=(0,p.join)(c,"Machine");g["user-data-dir"]=c;const a=(0,p.dirname)(D.FileAccess.asFileUri("",oe).fsPath),o=g["builtin-extensions-dir"]||(0,p.join)(a,"extensions");return g["builtin-extensions-dir"]=o,g["extensions-dir"]=g["extensions-dir"]||(0,p.join)(u,"extensions"),[u,g["extensions-dir"],c,f,n,i,s].forEach(r=>{try{t.existsSync(r)||t.mkdirSync(r,{mode:448})}catch(l){console.error(l)}}),u}function v(g=d()){return(0,P.run)(g,I(g),T.serverOptions)}e.spawnCli=v;function m(g,u=d()){return(0,k.createServer)(g,u,I(u))}e.createServer=m})}).call(this);

//# sourceMappingURL=server.main.js.map