diff --git a/.all-contributorsrc b/.all-contributorsrc index fa3dbdfb6ed..8f46055c343 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -1634,6 +1634,15 @@ "content", "maintenance" ] + }, + { + "login": "stevenhao", + "name": "Steven Hao", + "avatar_url": "https://avatars.githubusercontent.com/u/1988030?v=4", + "profile": "https://github.com/stevenhao", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7, diff --git a/README.md b/README.md index e9aaddad6fc..af6332de50c 100644 --- a/README.md +++ b/README.md @@ -263,6 +263,7 @@ Thanks goes to these wonderful people Ryan Waldon
Ryan Waldon

💻 Andrew Cherniavskii
Andrew Cherniavskii

💻 NullVoxPopuli
NullVoxPopuli

💻 🖋 🚧 + Steven Hao
Steven Hao

💻 diff --git a/packages/app/config/build.js b/packages/app/config/build.js index e79d89da90e..f24ddaaaac0 100644 --- a/packages/app/config/build.js +++ b/packages/app/config/build.js @@ -3,11 +3,11 @@ const { SANDBOX_ONLY } = process.env; const staticAssets = [ !SANDBOX_ONLY && { from: 'standalone-packages/vscode-editor/release/min/vs', - to: 'public/vscode31/vs', + to: 'public/vscode32/vs', }, !SANDBOX_ONLY && { from: 'standalone-packages/vscode-extensions/out', - to: 'public/vscode-extensions/v17', + to: 'public/vscode-extensions/v18', }, !SANDBOX_ONLY && { from: 'node_modules/vscode-oniguruma/release/onig.wasm', diff --git a/packages/app/config/webpack.prod.js b/packages/app/config/webpack.prod.js index 5d3b72a50a1..f7427926a22 100644 --- a/packages/app/config/webpack.prod.js +++ b/packages/app/config/webpack.prod.js @@ -184,7 +184,7 @@ module.exports = merge(commonConfig, { }, }, { - urlPattern: /\/vscode31/, + urlPattern: /\/vscode32/, handler: 'cacheFirst', options: { cache: { diff --git a/packages/app/scripts/copy-assets.js b/packages/app/scripts/copy-assets.js index ccc671bad3d..685ed06b614 100644 --- a/packages/app/scripts/copy-assets.js +++ b/packages/app/scripts/copy-assets.js @@ -22,7 +22,7 @@ const assets = [ }, !SANDBOX_ONLY && { from: 'standalone-packages/vscode-editor/release/min/vs', - to: 'public/vscode31/vs', + to: 'public/vscode32/vs', }, { from: 'packages/app/public', diff --git a/packages/app/src/app/index.html b/packages/app/src/app/index.html index ee81cd22bf1..445c34880f3 100644 --- a/packages/app/src/app/index.html +++ b/packages/app/src/app/index.html @@ -76,10 +76,10 @@ } - + - + diff --git a/packages/app/src/app/overmind/effects/vscode/constants.ts b/packages/app/src/app/overmind/effects/vscode/constants.ts index 68f8de70674..ce16e3a6436 100644 --- a/packages/app/src/app/overmind/effects/vscode/constants.ts +++ b/packages/app/src/app/overmind/effects/vscode/constants.ts @@ -1,6 +1,6 @@ export const EXTENSIONS_LOCATION = process.env.VSCODE ? '/vscode/extensions-bundle' - : '/public/vscode-extensions/v17'; + : '/public/vscode-extensions/v18'; export const VIM_EXTENSION_ID = 'vscodevim.vim'; diff --git a/packages/app/src/app/overmind/effects/vscode/metadata.ts b/packages/app/src/app/overmind/effects/vscode/metadata.ts index c4df9691d8e..1d804dd8737 100644 --- a/packages/app/src/app/overmind/effects/vscode/metadata.ts +++ b/packages/app/src/app/overmind/effects/vscode/metadata.ts @@ -1,7 +1,7 @@ const VSCODE_METADATA = { CORE: { paths: { - src: process.env.VSCODE ? '/vscode/out/vs' : '/public/vscode31/vs', + src: process.env.VSCODE ? '/vscode/out/vs' : '/public/vscode32/vs', 'npm/dev': 'node_modules/monaco-editor-core/dev/vs', 'npm/min': 'node_modules/monaco-editor-core/min/vs', built: '/vscode/out-monaco-editor-core/min/vs', diff --git a/packages/app/src/embed/components/Content/Monaco/grammars/tmGrammars/TypeScriptReact.tmLanguage b/packages/app/src/embed/components/Content/Monaco/grammars/tmGrammars/TypeScriptReact.tmLanguage index c9301ce5b3b..3e580f27859 100644 --- a/packages/app/src/embed/components/Content/Monaco/grammars/tmGrammars/TypeScriptReact.tmLanguage +++ b/packages/app/src/embed/components/Content/Monaco/grammars/tmGrammars/TypeScriptReact.tmLanguage @@ -3837,7 +3837,7 @@ ternary-expression begin - (?!\?\.\s*[^[:digit:]])(\?) + (?!\?\.\s*[^[:digit:]])(\?)(?!\?) beginCaptures 1 @@ -4295,7 +4295,7 @@ name keyword.operator.logical.tsx match - \!|&&|\|\| + \!|&&|\|\||\?\? name diff --git a/standalone-packages/vscode-editor/release/min/vs/editor/codesandbox.editor.main.js b/standalone-packages/vscode-editor/release/min/vs/editor/codesandbox.editor.main.js index cdb46c9f1fc..799791b6146 100644 --- a/standalone-packages/vscode-editor/release/min/vs/editor/codesandbox.editor.main.js +++ b/standalone-packages/vscode-editor/release/min/vs/editor/codesandbox.editor.main.js @@ -1,2 +1,2 @@ -(function(){var e,t,i=["require","exports","vs/base/common/lifecycle","vs/nls!vs/editor/codesandbox.editor.main","vs/nls","vs/base/common/event","vs/platform/instantiation/common/instantiation","vs/base/browser/dom","vs/editor/common/core/range","vs/base/common/strings","vs/base/common/uri","vs/base/common/errors","vs/base/common/platform","vs/base/common/async","vs/css!vs/editor/codesandbox.editor.main","vs/platform/contextkey/common/contextkey","vs/platform/theme/common/themeService","vs/base/common/arrays","vs/platform/configuration/common/configuration","vs/platform/registry/common/platform","vs/editor/browser/editorExtensions","vs/base/common/resources","vs/platform/theme/common/colorRegistry","vs/base/common/types","vs/workbench/services/editor/common/editorService","vs/base/common/objects","vs/platform/files/common/files","vs/editor/common/core/position","vs/platform/notification/common/notification","vs/base/common/actions","vs/editor/common/modes","vs/platform/commands/common/commands","vs/platform/workspace/common/workspace","vs/base/common/network","vs/workbench/common/editor","vs/base/common/path","vs/base/common/cancellation","vs/platform/telemetry/common/telemetry","vs/platform/actions/common/actions","vs/platform/instantiation/common/extensions","vs/platform/storage/common/storage","vs/base/common/map","vs/editor/common/services/modelService","vs/platform/windows/common/windows","vs/platform/keybinding/common/keybinding","vs/platform/environment/common/environment","vs/editor/common/services/modeService","vs/editor/common/core/selection","vs/editor/common/editorContextKeys","vs/base/common/color","vs/workbench/services/textfile/common/textfiles","vs/platform/contextview/browser/contextView","vs/workbench/api/node/extHost.protocol","vs/editor/common/model/textModel","vs/base/common/keyCodes","vs/workbench/api/electron-browser/extHostCustomers","vs/workbench/services/editor/common/editorGroupsService","vs/workbench/services/extensions/common/extensions","vs/platform/theme/common/styler","vs/editor/browser/services/codeEditorService","vs/base/browser/keyboardEvent","vs/base/browser/ui/actionbar/actionbar","vs/base/browser/fastDomNode","vs/platform/configuration/common/configurationRegistry","vs/platform/log/common/log","vs/editor/common/services/resolverService","vs/workbench/services/layout/browser/layoutService","vs/platform/label/common/label","vs/base/browser/browser","vs/base/browser/ui/widget","vs/workbench/contrib/files/common/files","vs/editor/common/core/editOperation","vs/platform/quickOpen/common/quickOpen","vs/workbench/common/actions","vs/platform/keybinding/common/keybindingsRegistry","vs/editor/browser/editorBrowser","vs/base/browser/mouseEvent","vs/editor/common/view/editorColorRegistry","vs/platform/list/browser/listService","vs/workbench/common/theme","vs/workbench/services/untitled/common/untitledEditorService","vs/base/common/labels","vs/workbench/services/viewlet/browser/viewlet","vs/base/common/json","vs/base/common/filters","vs/platform/lifecycle/common/lifecycle","vs/workbench/services/preferences/common/preferences","vs/platform/quickinput/common/quickInput","vs/editor/browser/view/viewPart","vs/editor/common/modes/languageConfigurationRegistry","vs/workbench/browser/quickopen","vs/platform/progress/common/progress","vs/base/common/iterator","vs/platform/opener/common/opener","vs/platform/dialogs/common/dialogs","vs/editor/common/model","vs/editor/common/controller/cursorCommon","vs/editor/common/services/resourceConfiguration","vs/platform/workspaces/common/workspaces","vs/base/common/collections","vs/base/parts/quickopen/browser/quickOpenModel","vs/base/browser/ui/aria/aria","vs/platform/clipboard/common/clipboardService","vs/platform/extensions/common/extensions","vs/base/browser/touch","vs/base/browser/event","vs/base/browser/ui/scrollbar/scrollableElement","vs/base/common/decorators","vs/workbench/services/extensions/common/extensionsRegistry","vs/workbench/services/search/common/search","vs/editor/common/config/editorOptions","vs/platform/extensionManagement/common/extensionManagement","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/workbench/browser/parts/editor/baseEditor","vs/base/common/htmlContent","vs/workbench/common/contributions","vs/base/common/errorMessage","vs/platform/instantiation/common/descriptors","vs/editor/contrib/snippet/snippetController2","vs/base/common/glob","vs/workbench/services/themes/common/workbenchThemeService","vs/platform/markers/common/markers","vs/base/browser/ui/list/listWidget","vs/platform/extensionManagement/common/extensionManagementUtil","vs/base/common/extpath","vs/editor/common/services/editorWorkerService","vs/base/browser/ui/inputbox/inputBox","vs/base/common/severity","vs/codesandbox/services/codesandbox/common/codesandbox","vs/editor/common/services/getIconClasses","vs/platform/accessibility/common/accessibility","vs/base/common/mime","vs/base/node/pfs","vs/editor/browser/services/bulkEditService","vs/base/browser/dnd","vs/base/common/idGenerator","vs/platform/product/node/product","vs/workbench/browser/editor","vs/editor/browser/core/editorState","vs/workbench/browser/parts/editor/editorCommands","vs/workbench/common/resources","vs/editor/browser/config/configuration","vs/editor/common/editorCommon","fs","vs/workbench/browser/dnd","vs/workbench/services/backup/common/backup","vs/editor/contrib/suggest/suggest","vs/base/browser/ui/iconLabel/iconLabel","vs/platform/instantiation/common/serviceCollection","vs/editor/common/modes/modesRegistry","vs/workbench/browser/labels","vs/editor/browser/view/dynamicViewOverlay","vs/workbench/services/panel/common/panelService","vs/workbench/browser/parts/editor/editor","vs/editor/browser/widget/codeEditorWidget","vs/editor/common/view/viewEvents","vs/base/node/extfs","vs/workbench/contrib/snippets/browser/snippets.contribution","vs/editor/common/core/characterClassifier","vs/workbench/browser/viewlet","vs/workbench/contrib/preferences/common/preferences","vs/base/browser/globalMouseMoveMonitor","vs/base/browser/ui/splitview/splitview","vs/editor/common/viewModel/viewModel","vs/workbench/common/views","vs/workbench/browser/actions","vs/editor/common/modes/languageConfiguration","vs/workbench/services/hash/common/hashService","vs/workbench/common/editor/resourceEditorInput","vs/editor/common/modes/nullMode","vs/base/node/encoding","vs/workbench/common/editor/diffEditorInput","vs/editor/common/commands/replaceCommand","vs/workbench/services/workspace/common/workspaceEditing","vs/platform/actions/browser/menuItemActionItem","vs/editor/common/view/renderingContext","vs/base/browser/htmlContentRenderer","vs/base/browser/ui/list/listView","vs/base/common/assert","vs/workbench/browser/parts/editor/textEditor","vs/base/browser/ui/sash/sash","vs/workbench/contrib/search/common/search","vs/editor/contrib/find/findModel","vs/workbench/contrib/search/common/replace","vs/base/common/comparers","vs/workbench/contrib/webview/electron-browser/webviewEditorInput","vs/base/common/scanCode","vs/platform/keybinding/common/resolvedKeybindingItem","vs/editor/contrib/snippet/snippetParser","vs/platform/configuration/common/configurationModels","vs/editor/contrib/codeAction/codeActionTrigger","vs/workbench/contrib/files/common/explorerModel","electron","vs/platform/statusbar/common/statusbar","vs/base/browser/ui/button/button","vs/workbench/browser/parts/quickopen/quickopen","vs/base/parts/ipc/node/ipc","vs/editor/common/controller/wordCharacterClassifier","vs/base/common/amd","vs/workbench/services/history/common/history","vs/workbench/contrib/files/common/editors/fileEditorInput","vs/workbench/common/editor/textEditorModel","vs/editor/common/viewModel/viewEventHandler","vs/workbench/contrib/search/common/searchModel","vs/workbench/services/files/node/watcher/common","vs/base/browser/ui/highlightedlabel/highlightedLabel","vs/workbench/services/configuration/common/configuration","vs/workbench/contrib/files/browser/fileCommands","vs/workbench/services/textfile/common/textFileEditorModel","vs/base/browser/ui/checkbox/checkbox","vs/platform/keybinding/common/keybindingResolver","vs/platform/telemetry/common/telemetryUtils","vs/editor/common/config/editorZoom","vs/base/browser/ui/menu/menu","vs/base/browser/ui/toolbar/toolbar","vs/base/parts/quickopen/common/quickOpenScorer","vs/editor/contrib/markdown/markdownRenderer","vs/base/browser/ui/tree/objectTree","vs/workbench/contrib/files/browser/fileActions","vs/workbench/contrib/webview/electron-browser/webviewEditorService","vs/editor/contrib/find/findController","vs/editor/contrib/message/messageController","vs/base/common/keybindingLabels","vs/editor/contrib/referenceSearch/peekViewWidget","vs/base/common/numbers","vs/workbench/contrib/search/common/constants","vs/platform/url/common/url","vs/workbench/contrib/search/browser/searchActions","vs/base/common/linkedList","vs/editor/contrib/documentSymbols/outlineModel","vs/base/common/stopwatch","vs/workbench/contrib/preferences/browser/preferencesWidgets","vs/editor/common/config/commonEditorConfig","vs/base/browser/ui/progressbar/progressbar","vs/base/parts/tree/browser/treeDefaults","vs/workbench/common/editor/untitledEditorInput","vs/editor/contrib/referenceSearch/referencesModel","vs/platform/browser/contextScopedHistoryWidget","vs/workbench/browser/parts/editor/breadcrumbs","vs/platform/remote/common/remoteHosts","vs/editor/common/core/uint","vs/workbench/services/preferences/common/preferencesModels","vs/base/common/jsonEdit","vs/base/common/marshalling","vs/workbench/browser/parts/views/panelViewlet","vs/workbench/common/editor/binaryEditorModel","os","vs/css!vs/workbench/browser/parts/quickinput/quickInput","vs/editor/common/model/textModelSearch","vs/editor/common/model/wordHelper","vs/workbench/common/component","vs/workbench/services/decorations/browser/decorations","child_process","vs/workbench/browser/part","vs/workbench/browser/parts/editor/sideBySideEditor","crypto","vs/workbench/contrib/codeEditor/browser/menuPreventer","vs/workbench/contrib/codeEditor/browser/selectionClipboard","vs/editor/contrib/suggest/suggestController","vs/editor/contrib/referenceSearch/referencesController","vs/workbench/contrib/preferences/browser/settingsWidgets","vs/editor/contrib/referenceSearch/referencesWidget","vs/platform/update/common/update","vs/editor/contrib/codeAction/codeActionCommands","vs/editor/browser/widget/embeddedCodeEditorWidget","vs/workbench/contrib/search/common/searchHistoryService","vs/editor/browser/widget/diffEditorWidget","vs/workbench/services/activity/common/activity","vs/editor/contrib/parameterHints/provideSignatureHelp","vs/workbench/services/broadcast/electron-browser/broadcastService","vs/editor/contrib/format/format","vs/workbench/services/configuration/common/jsonEditing","vs/editor/contrib/contextmenu/contextmenu","vs/editor/contrib/codeAction/codeAction","vs/editor/browser/controller/coreCommands","vs/workbench/api/shared/editor","vs/workbench/browser/parts/editor/binaryEditor","vs/base/common/performance","vs/platform/keybinding/common/baseResolvedKeybinding","vs/platform/contextkey/common/contextkeys","vs/editor/common/view/minimapCharRenderer","vs/editor/common/controller/cursorWordOperations","vs/editor/common/controller/cursorTypeOperations","vs/editor/common/commands/shiftCommand","vs/editor/common/core/lineTokens","vs/workbench/common/contextkeys","vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/base/common/jsonErrorMessages","vs/workbench/services/mode/common/workbenchModeService","vs/base/browser/ui/tree/abstractTree","vs/editor/contrib/folding/foldingRanges","vs/workbench/contrib/preferences/browser/settingsTreeModels","vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/workbench/services/remote/node/remoteAgentService","vs/editor/common/viewModel/prefixSumComputer","vs/workbench/contrib/search/common/queryBuilder","vs/editor/common/viewLayout/viewLineRenderer","vs/workbench/services/textMate/common/textMateService","vs/editor/common/viewLayout/lineDecorations","vs/editor/common/modes/supports/richEditBrackets","vs/editor/common/modes/supports","vs/workbench/browser/parts/editor/editorActions","vs/editor/common/core/token","vs/editor/browser/view/viewLayer","vs/codesandbox/services/codesandbox/inputs/ReactEditorInput","vs/editor/common/core/stringBuilder","vs/editor/browser/editorDom","vs/base/browser/ui/countBadge/countBadge","vs/base/node/console","vs/base/common/uuid","vs/base/common/keybindingParser","vs/base/common/range","vs/base/common/process","vs/base/browser/ui/scrollbar/scrollbarArrow","vs/base/browser/ui/tree/objectTreeModel","vs/base/common/functional","vs/base/common/diff/diff","vs/platform/layout/browser/layoutService","vs/workbench/browser/parts/quickinput/quickInputUtils","vs/platform/extensions/common/extensionHost","vs/workbench/browser/parts/statusbar/statusbar","vs/editor/browser/controller/textAreaState","vs/editor/browser/widget/diffNavigator","vs/base/common/worker/simpleWorker","vs/editor/browser/viewParts/margin/margin","vs/editor/common/commands/trimTrailingWhitespaceCommand","vs/base/common/hash","vs/workbench/common/editor/dataUriEditorInput","vs/workbench/common/editor/diffEditorModel","vs/workbench/common/editor/editorGroup","vs/workbench/common/editor/textDiffEditorModel","vs/editor/contrib/comment/blockCommentCommand","vs/editor/contrib/find/findState","vs/workbench/common/editor/resourceEditorModel","vs/editor/common/services/markersDecorationService","vs/editor/browser/controller/textAreaInput","vs/editor/contrib/folding/syntaxRangeProvider","vs/workbench/browser/composite","vs/workbench/browser/panel","vs/editor/common/modes/languageFeatureRegistry","vs/editor/contrib/format/formattingEdit","vs/platform/state/common/state","vs/editor/contrib/goToDefinition/clickLinkGesture","vs/editor/contrib/hover/hoverOperation","vs/editor/contrib/hover/hoverWidgets","vs/editor/contrib/indentation/indentUtils","vs/workbench/contrib/codeinset/common/codeInset","vs/workbench/contrib/extensions/common/extensions","vs/editor/contrib/smartSelect/bracketSelections","vs/workbench/contrib/output/common/output","vs/editor/common/controller/cursorMoveOperations","vs/workbench/contrib/preferences/browser/keybindingWidgets","vs/workbench/contrib/preferences/browser/settingsLayout","vs/editor/common/controller/cursorDeleteOperations","vs/base/node/decoder","vs/css!vs/base/browser/ui/grid/gridview","vs/editor/contrib/codeAction/codeActionModel","vs/editor/contrib/colorPicker/color","vs/editor/contrib/colorPicker/colorDetector","vs/editor/common/controller/cursorMoveCommands","vs/workbench/contrib/snippets/browser/snippetCompletionProvider","vs/workbench/contrib/snippets/browser/snippetsFile","vs/editor/contrib/folding/folding","vs/editor/common/modes/textToHtmlTokenizer","vs/workbench/common/editor/untitledEditorModel","vs/editor/contrib/goToDefinition/goToDefinition","vs/editor/contrib/linesOperations/linesOperations","vs/workbench/services/configuration/common/configurationModels","vs/css!vs/base/browser/ui/list/list","vs/base/browser/ui/octiconLabel/octiconLabel","vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode","vs/editor/contrib/wordOperations/wordOperations","vs/workbench/api/node/extHostTypeConverters","vs/base/node/flow","vs/workbench/browser/parts/editor/resourceViewer","vs/editor/common/viewModel/splitLinesCollection","vs/workbench/browser/parts/editor/binaryDiffEditor","vs/platform/contextkey/browser/contextKeyService","vs/workbench/browser/parts/editor/editorPicker","vs/workbench/contrib/search/browser/openSymbolHandler","vs/base/browser/ui/selectBox/selectBox","vs/base/browser/ui/scrollbar/abstractScrollbar","vs/workbench/api/common/jsonValidationExtensionPoint","vs/workbench/services/extensions/electron-browser/inactiveExtensionUrlHandler","vs/workbench/services/extensions/electron-browser/extensionHost","vs/workbench/services/extensions/node/proxyIdentifier","vs/base/browser/ui/scrollbar/scrollbarState","vs/workbench/api/electron-browser/mainThreadEditor","vs/workbench/api/electron-browser/mainThreadEditors","vs/workbench/api/electron-browser/mainThreadHeapService","vs/workbench/services/extensions/electron-browser/extensionService","vs/base/browser/ui/findinput/findInputCheckboxes","vs/editor/browser/viewParts/lines/viewLine","vs/editor/browser/controller/mouseTarget","vs/base/browser/ui/tree/indexTreeModel","vs/workbench/services/keybinding/common/windowsKeyboardMapper","vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/workbench/browser/actions/layoutActions","vs/base/node/config","vs/base/browser/iframe","vs/workbench/contrib/webview/electron-browser/webviewElement","vs/workbench/contrib/webview/electron-browser/webviewEditor","vs/base/common/errorsWithActions","vs/workbench/contrib/snippets/browser/snippetsService","vs/workbench/contrib/snippets/browser/tabCompletion","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase","vs/workbench/services/preferences/common/keybindingsEditorModel","vs/editor/contrib/find/findWidget","vs/base/browser/ui/grid/gridview","vs/workbench/contrib/preferences/browser/settingsTree","vs/workbench/services/preferences/common/preferencesEditorInput","vs/base/browser/ui/splitview/panelview","vs/css!vs/editor/contrib/documentSymbols/media/symbol-icons","vs/editor/contrib/multicursor/multicursor","vs/css!vs/editor/contrib/goToDefinition/goToDefinitionMouse","vs/workbench/services/search/common/searchHelpers","vs/platform/keybinding/common/abstractKeybindingService","vs/workbench/services/textMate/common/TMGrammars","vs/css!vs/workbench/browser/parts/editor/media/breadcrumbscontrol","vs/editor/common/standalone/standaloneBase","vs/editor/common/view/overviewZoneManager","vs/workbench/browser/parts/editor/textDiffEditor","vs/platform/keybinding/common/usLayoutResolvedKeybinding","vs/editor/contrib/snippet/snippetVariables","vs/workbench/browser/parts/quickopen/quickOpenController","vs/base/parts/ipc/node/ipc.cp","net","vs/editor/contrib/gotoError/gotoError","vs/workbench/contrib/files/browser/files","vs/base/node/stream","vs/workbench/services/configuration/node/jsonEditingService","vs/workbench/services/keybinding/common/keybindingEditing","vs/editor/contrib/goToDefinition/goToDefinitionCommands","vs/workbench/services/themes/common/colorThemeSchema","vs/workbench/services/themes/common/fileIconThemeData","vs/base/parts/tree/browser/treeImpl","vs/workbench/contrib/search/browser/openAnythingHandler","vs/workbench/services/themes/browser/colorThemeData","vs/platform/menubar/common/menubar","vs/workbench/api/electron-browser/mainThreadDocuments","vs/base/browser/ui/list/list","vs/editor/standalone/browser/simpleServices","vs/workbench/browser/parts/editor/breadcrumbsControl","vs/workbench/browser/parts/editor/titleControl","vs/workbench/services/editor/browser/editorService","vs/editor/common/config/fontInfo","vs/workbench/browser/parts/views/views","vs/workbench/api/node/extHostTypes","vs/base/parts/ipc/node/ipc.net","vs/base/common/scrollable","vs/workbench/contrib/search/browser/searchWidget","vs/workbench/services/progress/browser/progressService","vs/codesandbox/services/codesandbox/browser/codesandboxService","vs/workbench/browser/actions/workspaceCommands","vs/workbench/browser/actions/workspaceActions","vs/workbench/browser/parts/editor/breadcrumbsModel","vs/workbench/browser/parts/editor/editorWidgets","vs/workbench/contrib/files/browser/saveErrorHandler","vs/nls!vs/editor/contrib/referenceSearch/referenceSearch","vs/nls!vs/editor/contrib/referenceSearch/referencesController","vs/nls!vs/editor/contrib/referenceSearch/referencesModel","vs/css!vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/nls!vs/editor/contrib/referenceSearch/referencesTree","vs/nls!vs/editor/contrib/referenceSearch/referencesWidget","vs/nls!vs/editor/contrib/rename/rename","vs/nls!vs/editor/contrib/rename/renameInputField","vs/nls!vs/editor/contrib/smartSelect/smartSelect","vs/nls!vs/editor/contrib/snippet/snippetVariables","vs/nls!vs/editor/contrib/suggest/suggestController","vs/nls!vs/editor/contrib/suggest/suggestWidget","vs/nls!vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode","vs/nls!vs/editor/contrib/tokenization/tokenization","vs/nls!vs/editor/contrib/wordHighlighter/wordHighlighter","vs/nls!vs/editor/standalone/browser/simpleServices","vs/nls!vs/platform/actions/browser/menuItemActionItem","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/dialogs/common/dialogs","vs/nls!vs/platform/extensionManagement/common/extensionEnablementService","vs/nls!vs/platform/extensionManagement/common/extensionManagement","vs/nls!vs/platform/extensionManagement/node/extensionManagementUtil","vs/nls!vs/platform/extensions/node/extensionValidator","vs/nls!vs/platform/keybinding/common/abstractKeybindingService","vs/nls!vs/platform/label/common/label","vs/nls!vs/platform/list/browser/listService","vs/nls!vs/platform/markers/common/markers","vs/nls!vs/platform/menubar/electron-main/menubar","vs/nls!vs/platform/theme/common/colorRegistry","vs/nls!vs/platform/workspaces/common/workspaces","vs/nls!vs/workbench/api/common/configurationExtensionPoint","vs/nls!vs/workbench/api/common/jsonValidationExtensionPoint","vs/nls!vs/workbench/api/common/menusExtensionPoint","vs/nls!vs/workbench/api/electron-browser/mainThreadEditors","vs/nls!vs/workbench/api/electron-browser/mainThreadMessageService","vs/nls!vs/workbench/api/electron-browser/mainThreadSaveParticipant","vs/nls!vs/workbench/api/electron-browser/mainThreadWebview","vs/nls!vs/workbench/api/electron-browser/mainThreadWorkspace","vs/nls!vs/workbench/browser/actions/layoutActions","vs/nls!vs/workbench/browser/actions/workspaceActions","vs/nls!vs/workbench/browser/actions/workspaceCommands","vs/nls!vs/workbench/browser/parts/compositePart","vs/nls!vs/workbench/browser/parts/editor/binaryDiffEditor","vs/nls!vs/workbench/browser/parts/editor/binaryEditor","vs/nls!vs/workbench/browser/parts/editor/breadcrumbs","vs/nls!vs/workbench/browser/parts/editor/breadcrumbsControl","vs/nls!vs/workbench/browser/parts/editor/editor.contribution","vs/nls!vs/workbench/browser/parts/editor/editorActions","vs/nls!vs/workbench/browser/parts/editor/editorCommands","vs/nls!vs/workbench/browser/parts/editor/editorGroupView","vs/nls!vs/workbench/browser/parts/editor/editorPart","vs/nls!vs/workbench/browser/parts/editor/editorPicker","vs/nls!vs/workbench/browser/parts/editor/editorStatus","vs/nls!vs/workbench/browser/parts/editor/editorWidgets","vs/nls!vs/workbench/browser/parts/editor/resourceViewer","vs/nls!vs/workbench/browser/parts/editor/tabsTitleControl","vs/nls!vs/workbench/browser/parts/editor/textDiffEditor","vs/nls!vs/workbench/browser/parts/editor/textEditor","vs/nls!vs/workbench/browser/parts/editor/textResourceEditor","vs/nls!vs/workbench/browser/parts/editor/titleControl","vs/nls!vs/workbench/browser/parts/quickinput/quickInput","vs/nls!vs/workbench/browser/parts/quickopen/quickOpenController","vs/nls!vs/workbench/browser/parts/quickopen/quickopen","vs/nls!vs/workbench/browser/parts/sidebar/sidebarPart","vs/nls!vs/workbench/browser/parts/statusbar/statusbarPart","vs/nls!vs/workbench/browser/parts/views/panelViewlet","vs/nls!vs/workbench/browser/parts/views/views","vs/nls!vs/workbench/browser/parts/views/viewsViewlet","vs/nls!vs/workbench/browser/quickopen","vs/nls!vs/workbench/browser/viewlet","vs/nls!vs/workbench/common/theme","vs/nls!vs/workbench/common/views","vs/nls!vs/workbench/contrib/codeEditor/browser/accessibility/accessibility","vs/nls!vs/workbench/contrib/codeEditor/browser/inspectKeybindings","vs/nls!vs/workbench/contrib/codeEditor/browser/inspectTMScopes/inspectTMScopes","vs/nls!vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint","vs/nls!vs/workbench/contrib/codeEditor/browser/largeFileOptimizations","vs/nls!vs/workbench/contrib/codeEditor/browser/toggleMinimap","vs/nls!vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier","vs/nls!vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter","vs/nls!vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace","vs/nls!vs/workbench/contrib/codeEditor/browser/toggleWordWrap","vs/nls!vs/workbench/contrib/codeinset/electron-browser/codeInset.contribution","vs/nls!vs/workbench/contrib/emmet/browser/actions/expandAbbreviation","vs/nls!vs/workbench/contrib/emmet/browser/actions/showEmmetCommands","vs/nls!vs/workbench/contrib/files/browser/editors/binaryFileEditor","vs/nls!vs/workbench/contrib/files/browser/editors/textFileEditor","vs/nls!vs/workbench/contrib/files/browser/explorerViewlet","vs/nls!vs/workbench/contrib/files/browser/fileActions","vs/nls!vs/workbench/contrib/files/browser/fileCommands","vs/nls!vs/workbench/contrib/files/browser/files.contribution","vs/nls!vs/workbench/contrib/files/browser/saveErrorHandler","vs/nls!vs/workbench/contrib/files/browser/views/emptyView","vs/nls!vs/workbench/contrib/files/browser/views/explorerDecorationsProvider","vs/nls!vs/workbench/contrib/files/browser/views/explorerView","vs/nls!vs/workbench/contrib/files/browser/views/explorerViewer","vs/nls!vs/workbench/contrib/files/browser/views/openEditorsView","vs/nls!vs/workbench/contrib/files/common/dirtyFilesTracker","vs/nls!vs/workbench/contrib/files/common/editors/fileEditorInput","vs/nls!vs/workbench/contrib/format/browser/format.contribution","vs/nls!vs/workbench/contrib/preferences/browser/keybindingWidgets","vs/nls!vs/workbench/contrib/preferences/browser/keybindingsEditor","vs/nls!vs/workbench/contrib/preferences/browser/keybindingsEditorContribution","vs/nls!vs/workbench/contrib/preferences/browser/preferencesActions","vs/nls!vs/workbench/contrib/preferences/browser/preferencesEditor","vs/nls!vs/workbench/contrib/preferences/browser/preferencesRenderers","vs/nls!vs/workbench/contrib/preferences/browser/preferencesWidgets","vs/nls!vs/workbench/contrib/preferences/browser/settingsLayout","vs/nls!vs/workbench/contrib/preferences/browser/settingsTree","vs/nls!vs/workbench/contrib/preferences/browser/settingsTreeModels","vs/nls!vs/workbench/contrib/preferences/browser/settingsWidgets","vs/nls!vs/workbench/contrib/preferences/browser/tocTree","vs/nls!vs/workbench/contrib/preferences/electron-browser/preferences.contribution","vs/nls!vs/workbench/contrib/preferences/electron-browser/settingsEditor2","vs/nls!vs/workbench/contrib/quickopen/browser/commandsHandler","vs/nls!vs/workbench/contrib/quickopen/browser/gotoLineHandler","vs/nls!vs/workbench/contrib/quickopen/browser/gotoSymbolHandler","vs/nls!vs/workbench/contrib/quickopen/browser/helpHandler","vs/nls!vs/workbench/contrib/quickopen/browser/quickopen.contribution","vs/nls!vs/workbench/contrib/quickopen/browser/viewPickerHandler","vs/nls!vs/workbench/contrib/search/browser/openAnythingHandler","vs/nls!vs/workbench/contrib/search/browser/openFileHandler","vs/nls!vs/workbench/contrib/search/browser/openSymbolHandler","vs/nls!vs/workbench/contrib/search/browser/patternInputWidget","vs/nls!vs/workbench/contrib/search/browser/replaceService","vs/nls!vs/workbench/contrib/search/browser/search.contribution","vs/nls!vs/workbench/contrib/search/browser/searchActions","vs/nls!vs/workbench/contrib/search/browser/searchResultsView","vs/nls!vs/workbench/contrib/search/browser/searchView","vs/nls!vs/workbench/contrib/search/browser/searchWidget","vs/nls!vs/workbench/contrib/search/common/queryBuilder","vs/nls!vs/workbench/contrib/snippets/browser/configureSnippets","vs/nls!vs/workbench/contrib/snippets/browser/insertSnippet","vs/nls!vs/workbench/contrib/snippets/browser/snippetCompletionProvider","vs/nls!vs/workbench/contrib/snippets/browser/snippets.contribution","vs/nls!vs/workbench/contrib/snippets/browser/snippetsFile","vs/nls!vs/workbench/contrib/snippets/browser/snippetsService","vs/nls!vs/workbench/contrib/terminal/common/terminalColorRegistry","vs/nls!vs/workbench/contrib/themes/browser/themes.contribution","vs/nls!vs/workbench/contrib/webview/electron-browser/webview.contribution","vs/nls!vs/workbench/contrib/webview/electron-browser/webviewCommands","vs/nls!vs/workbench/services/bulkEdit/browser/bulkEditService","vs/nls!vs/workbench/services/configuration/node/configurationEditingService","vs/nls!vs/workbench/services/configuration/node/configurationService","vs/nls!vs/workbench/services/configuration/node/jsonEditingService","vs/nls!vs/workbench/services/configurationResolver/browser/configurationResolverService","vs/nls!vs/workbench/services/configurationResolver/common/variableResolver","vs/nls!vs/workbench/services/decorations/browser/decorationsService","vs/nls!vs/workbench/services/dialogs/electron-browser/dialogService","vs/nls!vs/workbench/services/dialogs/electron-browser/remoteFileDialog","vs/nls!vs/workbench/services/editor/browser/editorService","vs/nls!vs/workbench/services/extensionManagement/node/multiExtensionManagement","vs/nls!vs/workbench/services/extensions/common/extensionsRegistry","vs/nls!vs/workbench/services/extensions/electron-browser/cachedExtensionScanner","vs/nls!vs/workbench/services/extensions/electron-browser/extensionHost","vs/nls!vs/workbench/services/extensions/electron-browser/extensionHostProcessManager","vs/nls!vs/workbench/services/extensions/electron-browser/extensionService","vs/nls!vs/workbench/services/extensions/electron-browser/inactiveExtensionUrlHandler","vs/nls!vs/workbench/services/extensions/node/extensionPoints","vs/nls!vs/workbench/services/files/node/fileService","vs/nls!vs/workbench/services/files/node/remoteFileService","vs/nls!vs/workbench/services/keybinding/common/keybindingEditing","vs/nls!vs/workbench/services/keybinding/electron-browser/keybindingService","vs/nls!vs/workbench/services/label/common/labelService","vs/nls!vs/workbench/services/mode/common/workbenchModeService","vs/nls!vs/workbench/services/preferences/browser/preferencesService","vs/nls!vs/workbench/services/preferences/common/keybindingsEditorModel","vs/nls!vs/workbench/services/preferences/common/preferences","vs/nls!vs/workbench/services/preferences/common/preferencesEditorInput","vs/nls!vs/workbench/services/preferences/common/preferencesModels","vs/nls!vs/workbench/services/progress/browser/progressService2","vs/nls!vs/workbench/services/textMate/common/TMGrammars","vs/nls!vs/workbench/services/textMate/electron-browser/textMateService","vs/css!vs/editor/browser/viewParts/rulers/rulers","vs/nls!vs/workbench/services/textfile/common/textFileService","vs/nls!vs/workbench/services/themes/browser/colorThemeData","vs/nls!vs/workbench/services/themes/browser/colorThemeStore","vs/nls!vs/workbench/services/themes/browser/workbenchThemeService","vs/nls!vs/workbench/services/themes/common/colorExtensionPoint","vs/nls!vs/workbench/services/themes/common/colorThemeSchema","vs/nls!vs/workbench/services/themes/common/fileIconThemeData","vs/nls!vs/workbench/services/themes/common/fileIconThemeSchema","vs/nls!vs/workbench/services/themes/common/fileIconThemeStore","vs/nls!vs/workbench/services/workspace/node/workspaceEditingService","vs/css!vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/css!vs/editor/browser/viewParts/selections/selections","vs/css!vs/editor/browser/viewParts/viewCursors/viewCursors","vs/platform/files/node/files","vs/css!vs/editor/browser/widget/media/diffEditor","vs/css!vs/editor/browser/widget/media/diffReview","vs/platform/instantiation/common/graph","vs/css!vs/editor/browser/widget/media/editor","vs/css!vs/editor/browser/widget/media/tokens","vs/codesandbox/services/codesandbox/codesandboxActions","vs/codesandbox/services/codesandbox/common/codesandboxEditorConnector","vs/codesandbox/workbench","vs/css!vs/editor/contrib/bracketMatching/bracketMatching","vs/css!vs/editor/contrib/clipboard/clipboard","vs/css!vs/editor/contrib/codeAction/lightBulbWidget","vs/css!vs/editor/contrib/codelens/codelensWidget","vs/css!vs/editor/contrib/colorPicker/colorPicker","vs/css!vs/editor/contrib/dnd/dnd","vs/css!vs/editor/contrib/documentSymbols/media/outlineTree","vs/base/common/uriIpc","vs/css!vs/editor/contrib/find/findWidget","vs/css!vs/editor/contrib/find/simpleFindWidget","vs/editor/common/model/textModelTokens","vs/css!vs/editor/contrib/folding/folding","vs/base/parts/quickopen/browser/quickOpenViewer","vs/css!vs/editor/contrib/gotoError/media/gotoErrorWidget","vs/editor/common/controller/cursorColumnSelection","vs/css!vs/editor/contrib/hover/hover","vs/css!vs/editor/contrib/links/links","vs/css!vs/editor/contrib/message/messageController","vs/css!vs/editor/contrib/parameterHints/parameterHints","vs/css!vs/editor/contrib/referenceSearch/media/peekViewWidget","vs/editor/common/controller/oneCursor","vs/editor/common/controller/cursorCollection","vs/editor/common/controller/cursor","vs/css!vs/editor/contrib/referenceSearch/media/referencesWidget","vs/css!vs/editor/contrib/rename/renameInputField","vs/css!vs/editor/contrib/snippet/snippetSession","vs/editor/common/services/editorWorkerServiceImpl","vs/css!vs/editor/contrib/suggest/media/suggest","vs/editor/common/view/runtimeMinimapCharRenderer","vs/css!vs/editor/contrib/zoneWidget/zoneWidget","vs/editor/common/viewModel/characterHardWrappingLineMapper","vs/editor/common/viewModel/viewModelImpl","vs/css!vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/editor/contrib/folding/foldingDecorations","vs/editor/contrib/folding/indentRangeProvider","vs/editor/contrib/linesOperations/moveLinesCommand","vs/editor/contrib/zoneWidget/zoneWidget","vs/css!vs/editor/standalone/browser/standalone-tokens","vs/css!vs/platform/contextview/browser/contextMenuHandler","vs/css!vs/workbench/browser/actions/media/actions","vs/editor/browser/services/openerService","vs/editor/contrib/links/getLinks","vs/css!vs/workbench/browser/media/part","vs/base/browser/ui/list/splice","vs/editor/contrib/suggest/suggestAlternatives","vs/editor/contrib/suggest/wordContextKey","vs/css!vs/workbench/browser/parts/editor/media/editordroptarget","vs/css!vs/workbench/browser/parts/editor/media/editorgroupview","vs/css!vs/workbench/browser/parts/editor/media/editorpicker","vs/platform/dialogs/node/dialogIpc","vs/platform/download/common/download","vs/css!vs/workbench/browser/parts/editor/media/editorstatus","vs/css!vs/workbench/browser/parts/editor/media/notabstitlecontrol","vs/css!vs/workbench/browser/parts/editor/media/resourceviewer","vs/platform/history/common/history","vs/css!vs/workbench/browser/parts/editor/media/tabstitlecontrol","vs/platform/instantiation/common/instantiationService","vs/css!vs/workbench/browser/parts/editor/media/titlecontrol","vs/css!vs/workbench/browser/parts/media/compositepart","vs/base/parts/tree/browser/tree","vs/css!vs/workbench/browser/parts/quickopen/media/quickopen","vs/css!vs/workbench/browser/parts/sidebar/media/sidebarpart","vs/css!vs/workbench/browser/parts/statusbar/media/statusbarpart","vs/platform/contextview/browser/contextViewService","vs/css!vs/workbench/browser/parts/views/media/panelviewlet","vs/css!vs/workbench/browser/parts/views/media/views","vs/css!vs/workbench/contrib/codeEditor/browser/accessibility/accessibility","vs/platform/markers/common/markerService","vs/css!vs/workbench/contrib/codeEditor/browser/inspectTMScopes/inspectTMScopes","vs/css!vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput","vs/codesandbox/notificationService","vs/css!vs/workbench/contrib/codeinset/electron-browser/codeInsetWidget","vs/css!vs/workbench/contrib/files/browser/media/explorerviewlet","vs/editor/contrib/hover/modesGlyphHover","vs/platform/extensions/node/extensionValidator","vs/platform/product/node/package","vs/platform/extensions/node/extensionsUtil","vs/css!vs/workbench/contrib/files/browser/media/fileactions","vs/css!vs/workbench/contrib/preferences/browser/media/keybindings","vs/css!vs/workbench/contrib/preferences/browser/media/keybindingsEditor","vs/css!vs/workbench/contrib/preferences/browser/media/preferences","vs/codesandbox/fileDialogService","vs/css!vs/workbench/contrib/preferences/browser/media/settingsWidgets","vs/css!vs/workbench/contrib/preferences/electron-browser/media/settingsEditor2","vs/css!vs/workbench/contrib/search/browser/media/search.contribution","vs/css!vs/workbench/contrib/search/browser/media/searchview","vs/css!vs/workbench/services/progress/browser/media/progressService2","vs/editor/browser/config/charWidthReader","vs/editor/browser/config/elementSizeObserver","vs/editor/browser/view/viewOverlays","vs/editor/browser/viewParts/viewCursors/viewCursor","vs/editor/common/services/languagesRegistry","vs/editor/common/services/modeServiceImpl","vs/base/parts/tree/browser/treeDnd","vs/codesandbox/telemetryService","vs/editor/common/services/modelServiceImpl","vs/editor/common/services/resourceConfigurationImpl","vs/base/parts/tree/browser/treeModel","vs/platform/configuration/node/configuration","vs/editor/browser/services/abstractCodeEditorService","vs/base/parts/tree/browser/treeViewModel","vs/base/worker/defaultWorkerFactory","vs/codesandbox/activityService","vs/platform/lifecycle/electron-main/lifecycleMain","vs/codesandbox/backupFileService","vs/codesandbox/broadcastService","vs/codesandbox/clipboardService","vs/codesandbox/lifecycleService","vs/codesandbox/environmentService","vs/editor/contrib/suggest/suggestMemory","vs/editor/common/core/rgba","vs/codesandbox/extensionGalleryService","vs/codesandbox/extensionManagementService","vs/codesandbox/hashService","vs/editor/browser/view/viewController","vs/editor/contrib/caretOperations/caretOperations","vs/editor/contrib/caretOperations/transpose","vs/editor/contrib/clipboard/clipboard","vs/editor/common/commands/surroundSelectionCommand","vs/codesandbox/outputService","vs/editor/contrib/codeAction/lightBulbWidget","vs/editor/contrib/codelens/codelens","vs/codesandbox/panelService","vs/codesandbox/remoteAgentService","vs/editor/contrib/comment/comment","vs/codesandbox/requestService","vs/editor/contrib/cursorUndo/cursorUndo","vs/editor/contrib/dnd/dnd","vs/base/common/jsonFormatter","vs/editor/contrib/fontZoom/fontZoom","vs/codesandbox/shims/encoding","vs/editor/contrib/format/formatActions","vs/editor/common/diff/diffComputer","vs/editor/contrib/hover/getHover","vs/editor/contrib/indentation/indentation","vs/editor/common/editorAction","vs/codesandbox/storageService","vs/editor/contrib/parameterHints/parameterHintsModel","vs/editor/contrib/quickOpen/quickOpen","vs/editor/contrib/smartSelect/smartSelect","vs/codesandbox/updateService","vs/codesandbox/windowsService","vs/editor/contrib/tokenization/tokenization","vs/editor/common/model/editStack","vs/editor/contrib/wordPartOperations/wordPartOperations","vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/editor/common/model/indentationGuesser","vs/platform/actions/common/menuService","vs/editor/common/model/intervalTree","vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase","vs/editor/common/model/textModelEvents","vs/codesandbox/workspacesService","vs/editor/contrib/rename/renameInputField","vs/css!vs/base/browser/ui/actionbar/actionbar","vs/platform/contextview/browser/contextMenuHandler","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer","vs/editor/browser/services/codeEditorServiceImpl","vs/editor/browser/viewParts/editorScrollbar/editorScrollbar","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder","vs/nls!vs/workbench/services/textfile/common/textFileEditorModel","vs/editor/browser/controller/mouseHandler","vs/editor/browser/controller/pointerHandler","vs/editor/browser/view/viewOutgoingEvents","vs/editor/browser/viewParts/lines/viewLines","vs/editor/browser/viewParts/minimap/minimap","vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/editor/browser/viewParts/selections/selections","vs/editor/common/modes/abstractMode","vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight","vs/editor/browser/viewParts/indentGuides/indentGuides","vs/css!vs/base/browser/ui/aria/aria","vs/editor/browser/controller/textAreaHandler","vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler","vs/editor/browser/viewParts/rulers/rulers","vs/editor/browser/viewParts/viewCursors/viewCursors","vs/editor/browser/view/viewImpl","vs/editor/common/modes/languageSelector","vs/editor/browser/widget/diffReview","vs/editor/common/modes/linkComputer","vs/css!vs/base/browser/ui/breadcrumbs/breadcrumbsWidget","vs/editor/common/services/markerDecorationsServiceImpl","vs/editor/contrib/bracketMatching/bracketMatching","vs/editor/contrib/codelens/codelensWidget","vs/editor/contrib/codelens/codelensController","vs/editor/contrib/colorPicker/colorPickerWidget","vs/editor/contrib/documentSymbols/outlineTree","vs/editor/contrib/find/findDecorations","vs/editor/common/modes/supports/characterPair","vs/editor/contrib/find/findOptionsWidget","vs/editor/common/modes/supports/indentRules","vs/editor/common/modes/supports/inplaceReplaceSupport","vs/editor/contrib/find/simpleFindWidget","vs/editor/contrib/inPlaceReplace/inPlaceReplace","vs/editor/contrib/links/links","vs/editor/common/modes/supports/onEnter","vs/css!vs/base/browser/ui/button/button","vs/editor/contrib/codeAction/codeActionContributions","vs/editor/common/modes/supports/electricCharacter","vs/editor/contrib/parameterHints/parameterHintsWidget","vs/editor/contrib/parameterHints/parameterHints","vs/base/browser/ui/list/rangeMap","vs/editor/contrib/rename/rename","vs/editor/contrib/suggest/suggestWidget","vs/editor/contrib/wordHighlighter/wordHighlighter","vs/platform/contextview/browser/contextMenuService","vs/editor/common/modes/supports/tokenization","vs/editor/common/modes/tokenizationRegistry","vs/editor/common/standalone/standaloneEnums","vs/platform/url/common/urlService","vs/css!vs/base/browser/ui/checkbox/checkbox","vs/platform/accessibility/node/accessibilityService","vs/platform/sharedProcess/node/sharedProcessService","vs/platform/windows/electron-browser/windowService","vs/platform/windows/electron-main/windows","vs/platform/menubar/electron-main/menubar","vs/platform/menubar/electron-main/menubarService","vs/workbench/services/extensionManagement/node/multiExtensionManagement","vs/css!vs/base/browser/ui/contextview/contextview","vs/base/browser/ui/contextview/contextview","vs/editor/contrib/referenceSearch/referencesTree","vs/editor/browser/viewParts/lines/rangeUtil","vs/editor/contrib/gotoError/gotoErrorWidget","vs/editor/common/view/viewContext","vs/editor/contrib/hover/modesContentHover","vs/editor/contrib/hover/hover","vs/editor/common/view/viewEventDispatcher","vs/css!vs/base/browser/ui/countBadge/countBadge","vs/editor/contrib/goToDefinition/goToDefinitionMouse","vs/editor/contrib/referenceSearch/referenceSearch","vs/codesandbox/codesandbox.all","vs/editor/contrib/snippet/snippetSession","vs/css!vs/base/browser/ui/dropdown/dropdown","vs/editor/contrib/suggest/suggestModel","vs/editor/common/viewLayout/viewLinesViewportData","vs/editor/editor.all","vs/editor/common/viewLayout/whitespaceComputer","vs/platform/extensionManagement/common/extensionEnablementService","vs/editor/common/viewLayout/linesLayout","vs/css!vs/base/browser/ui/findinput/findInput","vs/editor/common/model/mirrorTextModel","vs/editor/common/services/editorSimpleWorker","vs/css!vs/base/browser/ui/findinput/findInputCheckboxes","vs/base/browser/ui/list/rowCache","vs/css!vs/base/browser/ui/iconLabel/iconlabel","vs/workbench/browser/parts/quickinput/quickInputBox","vs/editor/browser/viewParts/contentWidgets/contentWidgets","vs/workbench/browser/parts/quickinput/quickInputList","vs/editor/browser/viewParts/decorations/decorations","vs/css!vs/base/browser/ui/inputbox/inputBox","vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/css!vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/editor/browser/viewParts/overviewRuler/overviewRuler","vs/editor/browser/viewParts/viewZones/viewZones","assert","vs/editor/common/viewLayout/viewLayout","vs/editor/common/viewModel/viewModelDecorations","vs/editor/contrib/caretOperations/moveCaretCommand","vs/css!vs/base/browser/ui/menu/menu","vs/editor/contrib/codeAction/codeActionWidget","vs/editor/contrib/colorPicker/colorPickerModel","vs/workbench/common/memento","vs/css!vs/base/browser/ui/octiconLabel/octicons/octicons","vs/editor/contrib/comment/lineCommentCommand","vs/editor/contrib/dnd/dragAndDropCommand","vs/css!vs/base/browser/ui/octiconLabel/octicons/octicons-animations","vs/editor/contrib/find/replaceAllCommand","vs/editor/contrib/find/replacePattern","vs/base/browser/ui/selectBox/selectBoxNative","vs/editor/contrib/folding/foldingModel","vs/editor/contrib/folding/hiddenRangeModel","vs/workbench/common/viewlet","vs/base/common/diff/diffChange","vs/workbench/contrib/codeEditor/browser/accessibility/accessibility","vs/workbench/contrib/codeEditor/browser/largeFileOptimizations","vs/editor/contrib/folding/intializingRangeProvider","vs/base/browser/ui/scrollbar/scrollbarVisibilityController","vs/workbench/contrib/codeEditor/browser/toggleMinimap","vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier","vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter","vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace","vs/workbench/contrib/codeEditor/browser/toggleWordWrap","vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch","vs/workbench/contrib/codeEditor/electron-browser/sleepResumeRepaintMinimap","vs/workbench/contrib/codeEditor/electron-browser/codeEditor.contribution","vs/css!vs/base/browser/ui/progressbar/progressbar","vs/workbench/contrib/codeinset/electron-browser/codeInsetWidget","vs/workbench/contrib/codeinset/electron-browser/codeInset.contribution","vs/workbench/contrib/emmet/browser/actions/showEmmetCommands","vs/base/common/marked/marked","vs/css!vs/base/browser/ui/sash/sash","vs/editor/contrib/inPlaceReplace/inPlaceReplaceCommand","vs/base/common/history","vs/editor/contrib/linesOperations/copyLinesCommand","vs/editor/contrib/linesOperations/sortLinesCommand","vs/css!vs/base/browser/ui/scrollbar/media/scrollbars","vs/editor/contrib/smartSelect/wordSelections","vs/workbench/contrib/preferences/common/smartSnippetInserter","vs/workbench/contrib/search/browser/patternInputWidget","vs/base/common/normalization","vs/editor/contrib/suggest/wordDistance","vs/nls!vs/base/browser/ui/actionbar/actionbar","vs/base/browser/ui/breadcrumbs/breadcrumbsWidget","vs/base/node/ports","vs/workbench/contrib/snippets/browser/configureSnippets","vs/nls!vs/base/browser/ui/aria/aria","vs/css!vs/base/browser/ui/selectBox/selectBox","vs/workbench/contrib/snippets/browser/insertSnippet","vs/workbench/contrib/terminal/common/terminal","vs/workbench/contrib/terminal/common/terminalColorRegistry","vs/workbench/contrib/webview/electron-browser/webviewFindWidget","vs/workbench/contrib/webview/electron-browser/webviewProtocols","vs/nls!vs/base/browser/ui/findinput/findInput","vs/nls!vs/base/browser/ui/findinput/findInputCheckboxes","vs/nls!vs/base/browser/ui/inputbox/inputBox","vs/workbench/services/backup/node/backupFileService","vs/nls!vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/nls!vs/base/browser/ui/list/listWidget","vs/css!vs/base/browser/ui/selectBox/selectBoxCustom","vs/base/browser/ui/list/listPaging","vs/workbench/services/configuration/node/configuration","vs/workbench/services/configurationResolver/common/configurationResolver","vs/workbench/services/configurationResolver/common/variableResolver","vs/base/browser/ui/selectBox/selectBoxCustom","vs/workbench/services/decorations/browser/decorationsService","vs/workbench/services/dialogs/electron-browser/remoteFileDialog","vs/css!vs/base/browser/ui/splitview/panelview","vs/css!vs/base/browser/ui/splitview/splitview","vs/base/common/octicon","vs/workbench/api/node/apiCommands","vs/base/browser/ui/dropdown/dropdown","vs/workbench/browser/parts/editor/rangeDecorations","vs/base/browser/ui/centered/centeredViewLayout","vs/base/browser/ui/scrollbar/horizontalScrollbar","vs/base/browser/ui/findinput/findInput","vs/nls!vs/base/browser/ui/menu/menu","vs/base/browser/ui/grid/grid","vs/workbench/contrib/codeEditor/browser/inspectKeybindings","vs/workbench/contrib/quickopen/browser/gotoLineHandler","vs/workbench/contrib/quickopen/browser/gotoSymbolHandler","vs/workbench/contrib/quickopen/browser/helpHandler","vs/base/browser/contextmenu","vs/workbench/contrib/webview/electron-browser/webviewCommands","vs/workbench/services/configurationResolver/browser/configurationResolverService","vs/workbench/services/editor/browser/codeEditorService","vs/nls!vs/base/browser/ui/menu/menubar","vs/workbench/contrib/quickopen/browser/commandsHandler","vs/workbench/services/commands/common/commandService","vs/base/browser/ui/menu/menubar","vs/workbench/api/common/configurationExtensionPoint","vs/nls!vs/base/browser/ui/toolbar/toolbar","vs/workbench/api/common/menusExtensionPoint","vs/workbench/services/extensions/electron-browser/extensionHostProfiler","vs/base/browser/ui/scrollbar/verticalScrollbar","vs/workbench/services/extensions/node/extensionDescriptionRegistry","vs/workbench/services/extensions/node/extensionHostProtocol","vs/nls!vs/base/browser/ui/tree/abstractTree","vs/workbench/services/extensions/node/extensionPoints","vs/platform/extensionManagement/node/extensionManagementUtil","vs/workbench/services/extensions/electron-browser/cachedExtensionScanner","vs/workbench/services/extensions/node/lazyPromise","vs/css!vs/base/browser/ui/toolbar/toolbar","vs/base/browser/ui/tree/dataTree","vs/workbench/api/electron-browser/mainThreadClipboard","vs/workbench/api/electron-browser/mainThreadCommands","vs/workbench/api/electron-browser/mainThreadConfiguration","vs/workbench/api/electron-browser/mainThreadConsole","vs/workbench/api/electron-browser/mainThreadDecorations","vs/workbench/api/electron-browser/mainThreadDiagnostics","vs/workbench/api/electron-browser/mainThreadDialogs","vs/workbench/api/electron-browser/mainThreadDocumentContentProviders","vs/css!vs/base/browser/ui/tree/media/tree","vs/base/browser/ui/tree/asyncDataTree","vs/workbench/api/electron-browser/mainThreadErrors","vs/workbench/api/electron-browser/mainThreadFileSystem","vs/nls!vs/base/common/errorMessage","vs/workbench/api/electron-browser/mainThreadLanguageFeatures","vs/workbench/api/electron-browser/mainThreadLanguages","vs/workbench/api/electron-browser/mainThreadLogService","vs/workbench/api/electron-browser/mainThreadMessageService","vs/workbench/api/electron-browser/mainThreadProgress","vs/workbench/api/electron-browser/mainThreadQuickOpen","vs/workbench/api/electron-browser/mainThreadStatusBar","vs/workbench/api/electron-browser/mainThreadStorage","vs/workbench/api/electron-browser/mainThreadTelemetry","vs/workbench/api/electron-browser/mainThreadUrls","vs/workbench/api/electron-browser/mainThreadWindow","vs/workbench/services/extensions/node/rpcProtocol","vs/workbench/services/extensions/electron-browser/extensionHostProcessManager","vs/css!vs/base/parts/quickopen/browser/quickopen","vs/workbench/api/electron-browser/mainThreadExtensionService","vs/workbench/services/files/node/encoding","vs/workbench/services/files/node/streams","vs/base/node/zip","vs/nls!vs/base/common/jsonErrorMessages","vs/workbench/services/files/node/watcher/nsfw/watcherIpc","vs/workbench/services/files/node/watcher/nsfw/watcherService","vs/workbench/services/files/node/watcher/unix/watcherIpc","vs/workbench/services/files/node/watcher/unix/watcherService","vs/workbench/services/files/node/watcher/win32/csharpWatcherService","vs/workbench/services/files/node/watcher/win32/watcherService","vs/workbench/services/files/node/fileService","vs/workbench/services/files/node/remoteFileService","vs/codesandbox/fileService","vs/workbench/services/textMate/electron-browser/textMateService","vs/css!vs/base/parts/tree/browser/tree","vs/nls!vs/base/common/keybindingLabels","vs/css!vs/editor/browser/controller/textAreaHandler","vs/workbench/services/dialogs/electron-browser/dialogService","vs/workbench/services/keybinding/common/keybindingIO","vs/workbench/services/keybinding/common/keyboardMapper","vs/workbench/services/keybinding/common/macLinuxFallbackKeyboardMapper","vs/workbench/services/keybinding/common/macLinuxKeyboardMapper","vs/css!vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/workbench/contrib/preferences/browser/keybindingsEditorContribution","vs/workbench/services/keybinding/electron-browser/keybindingService","vs/workbench/services/workspace/node/workspaceEditingService","vs/workbench/services/label/common/labelService","vs/nls!vs/base/common/severity","vs/codesandbox/configuration.contribution","vs/css!vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight","vs/workbench/browser/parts/editor/editorControl","vs/workbench/browser/parts/quickinput/quickInput","vs/workbench/browser/parts/statusbar/statusbarPart","vs/nls!vs/base/node/processes","vs/base/node/processes","vs/workbench/contrib/webview/electron-browser/webviewEditorInputFactory","vs/css!vs/editor/browser/viewParts/decorations/decorations","vs/css!vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/workbench/api/electron-browser/mainThreadWebview","vs/workbench/contrib/webview/electron-browser/webview.contribution","vs/css!vs/editor/browser/viewParts/indentGuides/indentGuides","vs/nls!vs/base/node/zip","vs/nls!vs/base/parts/quickopen/browser/quickOpenModel","vs/workbench/contrib/codeEditor/browser/simpleEditorOptions","vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput","vs/css!vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/nls!vs/base/parts/quickopen/browser/quickOpenWidget","vs/nls!vs/base/parts/tree/browser/treeDefaults","vs/codesandbox/menubarControl2","vs/css!vs/editor/browser/viewParts/lines/viewLines","vs/base/parts/tree/browser/treeView","vs/workbench/contrib/preferences/browser/tocTree","vs/workbench/contrib/preferences/common/preferencesContribution","vs/workbench/contrib/preferences/electron-browser/settingsEditor2","vs/css!vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/base/parts/quickopen/browser/quickOpenWidget","vs/workbench/contrib/preferences/browser/preferencesRenderers","vs/workbench/contrib/preferences/electron-browser/preferencesSearch","vs/workbench/contrib/search/browser/search.contribution","vs/workbench/services/preferences/browser/preferencesService","vs/nls!vs/codesandbox/configuration.contribution","vs/workbench/services/search/common/replace","vs/nls!vs/codesandbox/fileService","vs/nls!vs/codesandbox/menubarControl2","vs/workbench/services/history/browser/history","vs/nls!vs/codesandbox/services/codesandbox/codesandboxFileActions.contribution","vs/nls!vs/codesandbox/telemetryService","vs/nls!vs/editor/browser/controller/coreCommands","vs/workbench/contrib/emmet/browser/emmetActions","vs/workbench/contrib/emmet/browser/actions/expandAbbreviation","vs/workbench/contrib/emmet/browser/emmet.contribution","vs/workbench/services/textMate/common/TMHelper","vs/nls!vs/editor/browser/widget/codeEditorWidget","vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint","vs/nls!vs/editor/browser/widget/diffEditorWidget","vs/workbench/api/electron-browser/mainThreadFileSystemEventService","vs/nls!vs/editor/browser/widget/diffReview","vs/nls!vs/editor/common/config/commonEditorConfig","vs/nls!vs/editor/common/config/editorOptions","vs/css!vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/css!vs/editor/browser/viewParts/minimap/minimap","vs/workbench/browser/parts/quickopen/quickOpenActions","vs/editor/contrib/suggest/completionModel","vs/workbench/browser/parts/editor/textResourceEditor","vs/nls!vs/editor/common/modes/modesRegistry","vs/nls!vs/editor/common/view/editorColorRegistry","vs/codesandbox/services/codesandbox/configurationUIService","vs/codesandbox/services/codesandbox/inputs/reactEditor","vs/codesandbox/services/codesandbox/codesandbox.contribution","vs/nls!vs/editor/contrib/bracketMatching/bracketMatching","vs/workbench/contrib/files/browser/views/explorerDecorationsProvider","vs/nls!vs/editor/contrib/caretOperations/caretOperations","vs/workbench/contrib/files/browser/editors/binaryFileEditor","vs/workbench/contrib/files/browser/editors/fileEditorTracker","vs/workbench/contrib/files/common/explorerService","vs/workbench/contrib/preferences/browser/preferencesEditor","vs/workbench/contrib/search/browser/replaceService","vs/workbench/contrib/search/browser/replaceContributions","vs/workbench/services/bulkEdit/browser/bulkEditService","vs/workbench/services/configuration/node/configurationEditingService","vs/nls!vs/editor/contrib/caretOperations/transpose","vs/workbench/services/configuration/node/configurationService","vs/nls!vs/editor/contrib/clipboard/clipboard","vs/workbench/contrib/preferences/browser/keybindingsEditor","vs/nls!vs/editor/contrib/codeAction/codeActionCommands","vs/workbench/api/electron-browser/mainThreadSaveParticipant","vs/workbench/services/textfile/common/textFileEditorModelManager","vs/workbench/services/textfile/node/textResourcePropertiesService","vs/workbench/services/themes/browser/themeCompatibility","vs/workbench/services/themes/common/colorExtensionPoint","vs/nls!vs/editor/contrib/comment/comment","vs/nls!vs/editor/contrib/contextmenu/contextmenu","vs/workbench/services/themes/common/fileIconThemeSchema","vs/workbench/services/themes/common/fileIconThemeStore","vs/workbench/services/themes/common/plistParser","vs/nls!vs/editor/contrib/cursorUndo/cursorUndo","vs/codesandbox/services/codesandbox/browser/codesandboxEditorConnectorService","vs/workbench/contrib/codeEditor/browser/inspectTMScopes/inspectTMScopes","vs/workbench/contrib/codeEditor/browser/codeEditor.contribution","vs/workbench/contrib/search/browser/openFileHandler","vs/nls!vs/editor/contrib/documentSymbols/outlineTree","vs/nls!vs/editor/contrib/find/findController","vs/workbench/services/themes/browser/colorThemeStore","vs/workbench/services/themes/browser/workbenchThemeService","vs/nls!vs/editor/contrib/find/findWidget","vs/codesandbox/searchService","vs/nls!vs/editor/contrib/find/simpleFindWidget","vs/workbench/api/electron-browser/mainThreadDocumentsAndEditors","vs/nls!vs/editor/contrib/folding/folding","vs/nls!vs/editor/contrib/fontZoom/fontZoom","vs/workbench/browser/parts/editor/breadcrumbsPicker","vs/nls!vs/editor/contrib/format/formatActions","vs/workbench/browser/parts/editor/editorDropTarget","vs/workbench/browser/parts/editor/editorStatus","vs/workbench/browser/parts/editor/editor.contribution","vs/nls!vs/editor/contrib/goToDefinition/goToDefinitionCommands","vs/workbench/browser/parts/editor/noTabsTitleControl","vs/workbench/browser/parts/editor/tabsTitleControl","vs/workbench/contrib/files/common/dirtyFilesTracker","vs/nls!vs/editor/contrib/goToDefinition/goToDefinitionMouse","vs/workbench/services/textfile/common/textFileService","vs/workbench/services/textmodelResolver/common/textModelResolverService","vs/nls!vs/editor/contrib/gotoError/gotoError","vs/nls!vs/editor/contrib/gotoError/gotoErrorWidget","vs/nls!vs/editor/contrib/hover/hover","vs/nls!vs/editor/contrib/hover/modesContentHover","vs/workbench/browser/parts/views/viewsViewlet","vs/workbench/contrib/files/browser/editors/textFileEditor","vs/workbench/contrib/format/browser/format.contribution","vs/workbench/contrib/quickopen/browser/viewPickerHandler","vs/workbench/contrib/quickopen/browser/quickopen.contribution","vs/nls!vs/editor/contrib/inPlaceReplace/inPlaceReplace","vs/workbench/contrib/search/browser/searchResultsView","vs/nls!vs/editor/contrib/indentation/indentation","vs/workbench/contrib/themes/browser/themes.contribution","vs/nls!vs/editor/contrib/linesOperations/linesOperations","vs/workbench/browser/parts/compositePart","vs/workbench/browser/parts/editor/editorGroupView","vs/workbench/browser/parts/editor/editorPart","vs/workbench/browser/parts/sidebar/sidebarPart","vs/codesandbox/sidebarPart","vs/codesandbox/codesandbox.services","vs/workbench/contrib/search/browser/searchView","vs/editor/standalone/browser/codesandbox.standaloneEditor","vs/editor/codesandbox.editor.api","vs/workbench/services/progress/browser/progressService2","vs/nls!vs/editor/contrib/links/links","vs/workbench/api/electron-browser/mainThreadWorkspace","vs/workbench/api/electron-browser/extensionHost.contribution","vs/nls!vs/editor/contrib/message/messageController","vs/nls!vs/editor/contrib/multicursor/multicursor","vs/nls!vs/editor/contrib/parameterHints/parameterHints","vs/nls!vs/editor/contrib/parameterHints/parameterHintsWidget","vs/nls!vs/editor/contrib/referenceSearch/peekViewWidget","vs/codesandbox/services/codesandbox/codesandboxFileActions.contribution","vs/workbench/contrib/files/browser/views/emptyView","vs/workbench/contrib/files/browser/views/explorerViewer","vs/workbench/contrib/files/browser/views/explorerView","vs/workbench/contrib/files/browser/views/openEditorsView","vs/workbench/contrib/files/browser/explorerViewlet","vs/workbench/contrib/files/browser/files.contribution","vs/workbench/contrib/preferences/browser/preferencesActions","vs/workbench/contrib/preferences/electron-browser/preferences.contribution","yauzl","vs/platform/request/node/request","native-keymap","path","vscode-textmate","stream","vs/base/node/request","yazl","semver","vs/editor/common/standalone/promise-polyfill/polyfill","string_decoder","vs/editor/codesandbox.editor.main"],n=function(e){for(var t=[],n=0,r=e.length;n0?t.insertBefore(e,i[i.length-1]):t.appendChild(e)},e.prototype.createLinkTag=function(e,t,i,n){var r=this,o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css"),o.setAttribute("data-name",e);return this.attachListeners(e,o,function(){return r._onLoad(e,i)},function(t){return r._onLoadError(e,n,t)}),o.setAttribute("href",t),o},e.prototype._linkTagExists=function(e,t){var i,n,r,o,s=document.getElementsByTagName("link");for(i=0,n=s.length;i=0)},e}();function i(e,t,i){var n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,function(e,i){var n=i[0],r=t[n],o=e;return"string"==typeof r?o=r:"number"!=typeof r&&"boolean"!=typeof r&&null!=r||(o=String(r)),o}),i.isPseudo&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function n(e,t){return function(n,r){var o=Array.prototype.slice.call(arguments,2);return i(e[n],o,t)}}var r=function(){function e(e){var t=this;this._env=e,this.localize=function(e,n){for(var r=[],o=2;o0&&n>i;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var c=Math.round(Math.max(20,Math.floor(i*s/n))),l=(s-c)/(n-i),u=r*l;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(c),computedSliderRatio:l,computedSliderPosition:Math.round(u)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},e}();t.ScrollbarState=i}),define(i[178],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ok=function(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}}),define(i[99],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.prototype.hasOwnProperty;t.values=function(e){var t=[];for(var n in e)i.call(e,n)&&t.push(e[n]);return t},t.size=function(e){var t=0;for(var n in e)i.call(e,n)&&(t+=1);return t},t.first=function(e){for(var t in e)if(i.call(e,t))return e[t]},t.forEach=function(e,t){var n=function(n){if(i.call(e,n)&&!1===t({key:n,value:e[n]},function(){delete e[n]}))return{value:void 0}};for(var r in e){var o=n(r);if("object"==typeof o)return o.value}},t.groupBy=function(e,t){for(var i=Object.create(null),n=0,r=e;n0){switch(l=Math.min(u<=.5?d/(2*u):d/(2-2*u),1),s){case i:c=(n-r)/d+(n1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e},e.toRGBA=function(t){var i,r,o,s=t.h/360,a=t.s,c=t.l,l=t.a;if(0===a)i=r=o=c;else{var u=c<.5?c*(1+a):c+a-c*a,d=2*c-u;i=e._hue2rgb(d,u,s+1/3),r=e._hue2rgb(d,u,s),o=e._hue2rgb(d,u,s-1/3)}return new n(Math.round(255*i),Math.round(255*r),Math.round(255*o),l)},e}();t.HSLA=r;var o=function(){function e(e,t,n,r){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var i,n=t.r/255,r=t.g/255,o=t.b/255,s=Math.max(n,r,o),a=s-Math.min(n,r,o),c=0===s?0:a/s;return i=0===a?0:s===n?((r-o)/a%6+6)%6:s===r?(o-n)/a+2:(n-r)/a+4,new e(Math.round(60*i),c,s,t.a)},e.toRGBA=function(e){var t=e.h,i=e.s,r=e.v,o=e.a,s=r*i,a=s*(1-Math.abs(t/60%2-1)),c=r-s,l=[0,0,0],u=l[0],d=l[1],h=l[2];return t<60?(u=s,d=a):t<120?(u=a,d=s):t<180?(d=s,h=a):t<240?(d=a,h=s):t<300?(u=a,h=s):t<360&&(u=s,h=a),u=Math.round(255*(u+c)),d=Math.round(255*(d+c)),h=Math.round(255*(h+c)),new n(u,d,h,o)},e}();t.HSVA=o;var s=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof n)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:r.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&n.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){return i(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.getContrastRatio=function(e){var t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},e.prototype.isDarker=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3<128},e.prototype.isLighter=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128},e.prototype.isLighterThan=function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()},e.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()0||this.m_modifiedCount>0)&&this.m_changes.push(new i.DiffChange(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),a=function(){function e(e,t,i){void 0===i&&(i=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=i,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,i,n,r){var o=this.ComputeDiffRecursive(e,t,i,n,[!1]);return r?this.PrettifyChanges(o):o},e.prototype.ComputeDiffRecursive=function(e,t,n,o,s){for(s[0]=!1;e<=t&&n<=o&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&o>=n&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||n>o){var a=void 0;return n<=o?(r.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a=[new i.DiffChange(e,0,n,o-n+1)]):e<=t?(r.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[new i.DiffChange(e,t-e+1,n,0)]):(r.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[]),a}var c=[0],l=[0],u=this.ComputeRecursionPoint(e,t,n,o,c,l,s),d=c[0],h=l[0];if(null!==u)return u;if(!s[0]){var p=this.ComputeDiffRecursive(e,d,n,h,s),f=[];return f=s[0]?[new i.DiffChange(d+1,t-(d+1)+1,h+1,o-(h+1)+1)]:this.ComputeDiffRecursive(d+1,t,h+1,o,s),this.ConcatenateChanges(p,f)}return[new i.DiffChange(e,t-e+1,n,o-n+1)]},e.prototype.WALKTRACE=function(e,t,n,r,o,a,c,l,u,d,h,p,f,g,v,m,y,b){var _,S,C=null,w=new s,E=t,I=n,x=f[0]-m[0]-r,D=Number.MIN_VALUE,k=this.m_forwardHistory.length-1;do{(S=x+e)===E||S=0&&(e=(u=this.m_forwardHistory[k])[0],E=1,I=u.length-1)}while(--k>=-1);if(_=w.getReverseChanges(),b[0]){var L=f[0]+1,M=m[0]+1;if(null!==_&&_.length>0){var R=_[_.length-1];L=Math.max(L,R.getOriginalEnd()),M=Math.max(M,R.getModifiedEnd())}C=[new i.DiffChange(L,p-L+1,M,v-M+1)]}else{w=new s,E=a,I=c,x=f[0]-m[0]-l,D=Number.MAX_VALUE,k=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(S=x+o)===E||S=d[S+1]?(g=(h=d[S+1]-1)-x-l,h>D&&w.MarkNextChange(),D=h+1,w.AddOriginalElement(h+1,g+1),x=S+1-o):(g=(h=d[S-1])-x-l,h>D&&w.MarkNextChange(),D=h,w.AddModifiedElement(h+1,g+1),x=S-1-o),k>=0&&(o=(d=this.m_reverseHistory[k])[0],E=1,I=d.length-1)}while(--k>=-1);C=w.getChanges()}return this.ConcatenateChanges(_,C)},e.prototype.ComputeRecursionPoint=function(e,t,n,r,s,a,c){var l,u=0,d=0,h=0,p=0,f=0,g=0;e--,n--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var v,m,y=t-e+(r-n),b=y+1,_=new Array(b),S=new Array(b),C=r-n,w=t-e,E=e-n,I=t-r,x=(w-C)%2==0;for(_[C]=e,S[w]=t,c[0]=!1,l=1;l<=y/2+1;l++){var D=0,k=0;for(h=this.ClipDiagonalBound(C-l,l,C,b),p=this.ClipDiagonalBound(C+l,l,C,b),v=h;v<=p;v+=2){for(d=(u=v===h||vD+k&&(D=u,k=d),!x&&Math.abs(v-w)<=l-1&&u>=S[v])return s[0]=u,a[0]=d,m<=S[v]&&l<=1448?this.WALKTRACE(C,h,p,E,w,f,g,I,_,S,u,t,s,d,r,a,x,c):null}var L=(D-e+(k-n)-l)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(D,this.OriginalSequence,L))return c[0]=!0,s[0]=D,a[0]=k,L>0&&l<=1448?this.WALKTRACE(C,h,p,E,w,f,g,I,_,S,u,t,s,d,r,a,x,c):(e++,n++,[new i.DiffChange(e,t-e+1,n,r-n+1)]);for(f=this.ClipDiagonalBound(w-l,l,w,b),g=this.ClipDiagonalBound(w+l,l,w,b),v=f;v<=g;v+=2){for(d=(u=v===f||v=S[v+1]?S[v+1]-1:S[v-1])-(v-w)-I,m=u;u>e&&d>n&&this.ElementsAreEqual(u,d);)u--,d--;if(S[v]=u,x&&Math.abs(v-C)<=l&&u<=_[v])return s[0]=u,a[0]=d,m>=_[v]&&l<=1448?this.WALKTRACE(C,h,p,E,w,f,g,I,_,S,u,t,s,d,r,a,x,c):null}if(l<=1447){var M=new Array(p-h+2);M[0]=C-h+1,o.Copy(_,h,M,1,p-h+1),this.m_forwardHistory.push(M),(M=new Array(g-f+2))[0]=w-f+1,o.Copy(S,f,M,1,g-f+1),this.m_reverseHistory.push(M)}}return this.WALKTRACE(C,h,p,E,w,f,g,I,_,S,u,t,s,d,r,a,x,c)},e.prototype.PrettifyChanges=function(e){for(var t=0;t0,s=i.modifiedLength>0;i.originalStart+i.originalLength=0;t--){i=e[t],n=0,r=0;if(t>0){var c=e[t-1];c.originalLength>0&&(n=c.originalStart+c.originalLength),c.modifiedLength>0&&(r=c.modifiedStart+c.modifiedLength)}o=i.originalLength>0,s=i.modifiedLength>0;for(var l=0,u=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength),d=1;;d++){var h=i.originalStart-d,p=i.modifiedStart-d;if(hu&&(u=f,l=d)}i.originalStart-=l,i.modifiedStart-=l}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1},e.prototype._boundaryScore=function(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)},e.prototype.ConcatenateChanges=function(e,t){var i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){var n=new Array(e.length+t.length-1);return o.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],o.Copy(t,1,n,e.length,t.length-1),n}n=new Array(e.length+t.length);return o.Copy(e,0,n,0,e.length),o.Copy(t,0,n,e.length,t.length),n},e.prototype.ChangesOverlap=function(e,t,n){if(r.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),r.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var o=e.originalStart,s=e.originalLength,a=e.modifiedStart,c=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(c=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i.DiffChange(o,s,a,c),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,i,n){if(e>=0&&e0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]n?e[c]=o[a++]:a>r?e[c]=o[s++]:t(o[a],o[s])<0?e[c]=o[a++]:e[c]=o[s++]}(t,i,n,s,r,o)}(e,t,0,e.length-1,[]),e}function a(e,t,i){var n=[];function r(e,t,i){var r;if(0!==t||0!==i.length){var o=n[n.length-1];o&&o.start+o.deleteCount===e?(o.deleteCount+=t,(r=o.toInsert).push.apply(r,i)):n.push({start:e,deleteCount:t,toInsert:i})}}for(var o=0,s=0;;){if(o===e.length){r(o,0,t.slice(s));break}if(s===t.length){r(o,e.length-o,[]);break}var a=e[o],c=t[s],l=i(a,c);0===l?(o+=1,s+=1):l<0?(r(o,1,[]),o+=1):l>0&&(r(o,0,[c]),s+=1)}return n}function c(e,t,i,r,o){for(var s=function(o){var s=e[r];if(t(s,i[o-1])<0){i.pop();var a=n(i,function(e){return t(s,e)<0});i.splice(a,0,s)}},a=i.length;r0))return o;r=o-1}}return-(n+1)},t.findFirstInSorted=n,t.mergeSort=s,t.groupBy=function(e,t){for(var i=[],n=void 0,r=0,o=s(e.slice(0),t);rn?[4,new Promise(function(e){return setTimeout(e)})]:[3,3]:[3,5];case 2:o.sent(),o.label=3;case 3:if(a&&a.isCancellationRequested)throw i.canceled();c(e,t,l,u,d),o.label=4;case 4:return u=d,d=Math.min(d+s,r),[3,1];case 5:return[2,l]}})}).then(u,d)})},t.coalesce=function(e){return e?e.filter(function(e){return!!e}):e},t.coalesceInPlace=function(e){if(e){for(var t=0,i=0;i0},t.distinct=function(e,t){if(!t)return e.filter(function(t,i){return e.indexOf(t)===i});var i=Object.create(null);return e.filter(function(e){var n=t(e);return!i[n]&&(i[n]=!0,!0)})},t.uniqueFilter=function(e){var t=Object.create(null);return function(i){var n=e(i);return!t[n]&&(t[n]=!0,!0)}},t.firstIndex=l,t.first=function(e,t,i){void 0===i&&(i=null);var n=l(e,t);return n<0?i:e[n]},t.commonPrefixLength=function(e,t,i){void 0===i&&(i=function(e,t){return e===t});for(var n=0,r=0,o=Math.min(e.length,t.length);rt;r--)n.push(r);return n},t.fill=function(e,t,i){void 0===i&&(i=[]);for(var n=0;n-1&&e.splice(i,1)}},t.arrayInsert=function(e,t,i){var n=e.slice(0,t),r=e.slice(t);return n.concat(i,r)},t.shuffle=function(e,t){var i;if("number"==typeof t){var n=t;i=function(){var e=179426549*Math.sin(n++);return e-Math.floor(e)}}else i=Math.random;for(var r=e.length-1;r>0;r-=1){var o=Math.floor(i()*(r+1)),s=e[r];e[r]=e[o],e[o]=s}},t.pushToStart=function(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))},t.pushToEnd=function(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))},t.find=function(e,t){for(var i=0;i=n?t.FIN:{done:!1,value:e[i++]}}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,i){return{next:function(){var n=e.next();return n.done?t.FIN:{done:!1,value:i(n.value)}}}},e.filter=function(e,i){return{next:function(){for(;;){var n=e.next();if(n.done)return t.FIN;if(i(n.value))return{done:!1,value:n.value}}}}},e.forEach=n,e.collect=function(e){var t=[];return n(e,function(e){return t.push(e)}),t}}(i=t.Iterator||(t.Iterator={})),t.getSequenceIterator=function(e){return Array.isArray(e)?i.fromArray(e):e};var n=function(){function e(e,t,i,n){void 0===t&&(t=0),void 0===i&&(i=e.length),void 0===n&&(n=t-1),this.items=e,this.start=t,this.end=i,this.index=n}return e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}();t.ArrayIterator=n;var r=function(e){function t(t,i,n,r){return void 0===i&&(i=0),void 0===n&&(n=t.length),void 0===r&&(r=i-1),e.call(this,t,i,n,r)||this}return a(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(n);t.ArrayNavigator=r;var o=function(){function e(e,t){this.iterator=e,this.fn=t}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}();t.MappedIterator=o;var s=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.navigator=t,n}return a(t,e),t.prototype.current=function(){return this.fn(this.navigator.current())},t.prototype.previous=function(){return this.fn(this.navigator.previous())},t.prototype.parent=function(){return this.fn(this.navigator.parent())},t.prototype.first=function(){return this.fn(this.navigator.first())},t.prototype.last=function(){return this.fn(this.navigator.last())},t.prototype.next=function(){return this.fn(this.navigator.next())},t}(o);t.MappedNavigator=s}),define(i[948],n([0,1,92]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._initialize(e),this._limit=t,this._onChange()}return e.prototype.getHistory=function(){return this._elements},e.prototype.add=function(e){this._history.delete(e),this._history.add(e),this._onChange()},e.prototype.next=function(){return this._navigator.next()},e.prototype.previous=function(){return this._navigator.previous()},e.prototype.current=function(){return this._navigator.current()},e.prototype.parent=function(){return null},e.prototype.first=function(){return this._navigator.first()},e.prototype.last=function(){return this._navigator.last()},e.prototype.has=function(e){return this._history.has(e)},e.prototype.clear=function(){this._initialize([]),this._onChange()},e.prototype._onChange=function(){this._reduceToLimit(),this._navigator=new i.ArrayNavigator(this._elements,0,this._elements.length,this._elements.length)},e.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))},e.prototype._initialize=function(e){this._history=new Set;for(var t=0,i=e;t=48&&o<=57)r=16*r+o-48;else if(o>=65&&o<=70)r=16*r+o-65+10;else{if(!(o>=97&&o<=102))break;r=16*r+o-97+10}i++,n++}return n=n)return c=n,l=17;var t=e.charCodeAt(i);if(r(t)){do{i++,a+=String.fromCharCode(t),t=e.charCodeAt(i)}while(r(t));return l=15}if(o(t))return i++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(i)&&(i++,a+="\n"),l=14;switch(t){case 123:return i++,l=1;case 125:return i++,l=2;case 91:return i++,l=3;case 93:return i++,l=4;case 58:return i++,l=6;case 44:return i++,l=5;case 34:return i++,a=function(){for(var t="",r=i;;){if(i>=n){t+=e.substring(r,i),u=2;break}var s=e.charCodeAt(i);if(34===s){t+=e.substring(r,i),i++;break}if(92!==s){if(s>=0&&s<=31){if(o(s)){t+=e.substring(r,i),u=2;break}u=6}i++}else{if(t+=e.substring(r,i),++i>=n){u=2;break}switch(s=e.charCodeAt(i++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=d(4);a>=0?t+=String.fromCharCode(a):u=4;break;default:u=5}r=i}}return t}(),l=10;case 47:var h=i-1;if(47===e.charCodeAt(i+1)){for(i+=2;i=12&&e<=15);return e}:h,getToken:function(){return l},getTokenValue:function(){return a},getTokenOffset:function(){return c},getTokenLength:function(){return i-c},getTokenError:function(){return u}}}function r(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function o(e){return 10===e||13===e||8232===e||8233===e}function s(e){return e>=48&&e<=57}function a(e,t,i){return void 0===i&&(i=!1),t>=e.offset&&t0)for(var n=o.getToken();17!==n;){if(-1!==t.indexOf(n)){b();break}if(-1!==i.indexOf(n))break;n=b()}}function S(e){var t=o.getTokenValue();return e?p(t):l(t),b(),!0}function C(){switch(o.getToken()){case 3:return function(){d(),b();for(var e=!1;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(e||_(4,[],[]),f(","),b(),4===o.getToken()&&y)break}else e&&_(6,[],[]);C()||_(4,[],[4,5]),e=!0}return h(),4!==o.getToken()?_(8,[4],[]):b(),!0}();case 1:return function(){c(),b();for(var e=!1;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(e||_(4,[],[]),f(","),b(),2===o.getToken()&&y)break}else e&&_(6,[],[]);(10!==o.getToken()?(_(3,[],[2,5]),0):(S(!1),6===o.getToken()?(f(":"),b(),C()||_(4,[],[2,5])):_(5,[],[2,5]),1))||_(4,[],[2,5]),e=!0}return u(),2!==o.getToken()?_(7,[2],[]):b(),!0}();case 10:return S(!0);default:return function(){switch(o.getToken()){case 11:var e=0;try{"number"!=typeof(e=JSON.parse(o.getTokenValue()))&&(_(2),e=0)}catch(e){_(2)}p(e);break;case 7:p(null);break;case 8:p(!0);break;case 9:p(!1);break;default:return!1}return b(),!0}()}}return b(),17===o.getToken()||(C()?(17!==o.getToken()&&_(9,[],[]),!0):(_(4,[],[]),!1))}function l(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.DEFAULT={allowTrailingComma:!0}}(i=t.ParseOptions||(t.ParseOptions={})),t.createScanner=n,t.getLocation=function(e,t){var i=[],n=new Object,r=void 0,o={value:{},offset:0,length:0,type:"object",parent:void 0},s=!1;function a(e,t,i,n){o.value=e,o.offset=t,o.length=i,o.type=n,o.colonOffset=void 0,r=o}try{c(e,{onObjectBegin:function(e,o){if(t<=e)throw n;r=void 0,s=t>e,i.push("")},onObjectProperty:function(e,r,o){if(t=i.children.length)return;i=i.children[u]}}return i}},t.getNodePath=function e(t){if(!t.parent||!t.parent.children)return[];var i=e(t.parent);if("property"===t.parent.type){var n=t.parent.children[0].value;i.push(n)}else if("array"===t.parent.type){var r=t.parent.children.indexOf(t);-1!==r&&i.push(r)}return i},t.getNodeValue=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":for(var i=Object.create(null),n=0,r=t.children;n0&&!r(e,c-1);)c--;for(var d=u;dl&&e.substring(i,n)!==t&&_.push({offset:i,length:n-i,content:t})}var C=b();if(17!==C){var w=v.getTokenOffset()+c;S(n(h,s),c,w)}for(;17!==C;){for(var E=v.getTokenOffset()+v.getTokenLength()+c,I=b(),x="";!f&&(12===I||13===I);)S(" ",E,v.getTokenOffset()+c),E=v.getTokenOffset()+v.getTokenLength()+c,x=12===I?y():"",I=b();if(2===I)1!==C&&(g--,x=y());else if(4===I)3!==C&&(g--,x=y());else{switch(C){case 3:case 1:g++,x=y();break;case 5:case 12:x=y();break;case 13:x=f?y():" ";break;case 6:x=" ";break;case 10:if(6===I){x="";break}case 7:case 8:case 9:case 11:case 2:case 4:12===I||13===I?x=" ":5!==I&&17!==I&&(m=!0);break;case 16:m=!0}!f||12!==I&&13!==I||(x=y())}S(x,E,v.getTokenOffset()+c),C=I}return _},t.isEOL=r}),define(i[242],n([0,1,83,782]),function(e,t,i,n){"use strict";function r(e,t,n,r,s){for(var a,c=t.slice(),l=i.parseTree(e,[]),u=void 0,d=void 0;c.length>0&&(d=c.pop(),void 0===(u=i.findNodeAtLocation(l,c))&&void 0!==n);)"string"==typeof d?((a={})[d]=n,n=a):n=[n];if(u){if("object"===u.type&&"string"==typeof d&&Array.isArray(u.children)){var h=i.findNodeAtLocation(u,[d]);if(void 0!==h){if(void 0===n){if(!h.parent)throw new Error("Malformed AST");var p=u.children.indexOf(h.parent),f=void 0,g=h.parent.offset+h.parent.length;if(p>0)f=(S=u.children[p-1]).offset+S.length;else if(f=u.offset+1,u.children.length>1)g=u.children[1].offset;return o(e,{offset:f,length:g-f,content:""},r)}return o(e,{offset:h.offset,length:h.length,content:JSON.stringify(n)},r)}if(void 0===n)return[];var v=JSON.stringify(d)+": "+JSON.stringify(n),m=s?s(u.children.map(function(e){return e.children[0].value})):u.children.length,y=void 0;return o(e,y=m>0?{offset:(S=u.children[m-1]).offset+S.length,length:0,content:","+v}:0===u.children.length?{offset:u.offset+1,length:0,content:v}:{offset:u.offset+1,length:0,content:v+","},r)}if("array"===u.type&&"number"==typeof d&&Array.isArray(u.children)){if(-1===d){v=""+JSON.stringify(n),y=void 0;if(0===u.children.length)y={offset:u.offset+1,length:0,content:v};else y={offset:(S=u.children[u.children.length-1]).offset+S.length,length:0,content:","+v};return o(e,y,r)}if(void 0===n&&u.children.length>=0){var b=d,_=u.children[b];y=void 0;if(1===u.children.length)y={offset:u.offset+1,length:u.length-2,content:""};else if(u.children.length-1===b){var S,C=(S=u.children[b-1]).offset+S.length;y={offset:C,length:u.offset+u.length-2-C,content:""}}else y={offset:_.offset,length:u.children[b+1].offset-_.offset,content:""};return o(e,y,r)}throw new Error("Array modification not supported yet")}throw new Error("Can not add "+("number"!=typeof d?"index":"property")+" to parent of type "+u.type)}if(void 0===n)throw new Error("Can not delete in empty document");return o(e,{offset:l?l.offset:0,length:l?l.length:0,content:JSON.stringify(n)},r)}function o(e,t,i){var r=s(e,t),o=t.offset,a=t.offset+t.content.length;if(0===t.length||0===t.content.length){for(;o>0&&!n.isEOL(r,o-1);)o--;for(;a=0;l--){var u=c[l];r=s(r,u),o=Math.min(o,u.offset),a=Math.max(a,u.offset+u.length),a+=u.content.length-u.length}return[{offset:o,length:e.length-(r.length-a)-o,content:r.substring(o,a)}]}function s(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}Object.defineProperty(t,"__esModule",{value:!0}),t.removeProperty=function(e,t,i){return r(e,t,void 0,i)},t.setProperty=r,t.applyEdit=s,t.isWS=function(e,t){return-1!=="\r\n \t".indexOf(e.charAt(t))}}),define(i[54],n([0,1,11]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),r=new n,o=new n,s=new n;function a(e,t){var i=!!(2048&e),n=!!(256&e);return new c(2===t?n:i,!!(1024&e),!!(512&e),2===t?i:n,255&e)}!function(){function e(e,t,i,n){void 0===i&&(i=t),void 0===n&&(n=i),r.define(e,t),o.define(e,i),s.define(e,n)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return r.keyCodeToStr(e)},e.fromString=function(e){return r.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return s.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||s.strToKeyCode(e)}}(t.KeyCodeUtils||(t.KeyCodeUtils={})),t.KeyChord=function(e,t){return(e|(65535&t)<<16>>>0)>>>0},t.createKeybinding=function(e,t){if(0===e)return null;var i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new l(0!==n?[a(i,t),a(n,t)]:[a(i,t)])},t.createSimpleKeybinding=a;var c=function(){function e(e,t,i,n,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=r}return e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.getHashCode=function(){return""+(this.ctrlKey?"1":"0")+(this.shiftKey?"1":"0")+(this.altKey?"1":"0")+(this.metaKey?"1":"0")+this.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new l([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}();t.SimpleKeybinding=c;var l=function(){function e(e){if(0===e.length)throw i.illegalArgument("parts");this.parts=e}return e.prototype.getHashCode=function(){for(var e="",t=0,i=this.parts.length;t1)&&l.fire(e),c=0},i)})},onLastListenerRemove:function(){o.dispose()}});return l.event},e.stopwatch=function(e){var t=(new Date).getTime();return n(i(e),function(e){return(new Date).getTime()-t})},e.latch=l,e.buffer=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=[]);var n=i.slice(),r=e(function(e){n?n.push(e):s.fire(e)}),o=function(){n&&n.forEach(function(e){return s.fire(e)}),n=null},s=new h({onFirstListenerAdd:function(){r||(r=e(function(e){return s.fire(e)}))},onFirstListenerDidAdd:function(){n&&(t?setTimeout(o):o())},onLastListenerRemove:function(){r&&r.dispose(),r=null}});return s.event},e.echo=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=[]),i=i.slice(),e(function(e){i.push(e),r.fire(e)});var n=function(e,t){return i.forEach(function(i){return e.call(t,i)})},r=new h({onListenerDidAdd:function(e,i,r){t?setTimeout(function(){return n(i,r)}):n(i,r)}});return r.event};var u=function(){function e(e){this.event=e}return e.prototype.map=function(t){return new e(n(this.event,t))},e.prototype.forEach=function(t){return new e(r(this.event,t))},e.prototype.filter=function(t){return new e(o(this.event,t))},e.prototype.reduce=function(t,i){return new e(a(this.event,t,i))},e.prototype.latch=function(){return new e(l(this.event))},e.prototype.on=function(e,t,i){return this.event(e,t,i)},e.prototype.once=function(e,t,n){return i(this.event)(e,t,n)},e}();e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,t,i){void 0===i&&(i=function(e){return e});var n=function(){for(var e=[],t=0;t0?new d(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(i,n,r){t._listeners||(t._listeners=new c.LinkedList);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s,a,l=t._listeners.push(n?[i,n]:i);return o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,i,n),t._leakageMon&&(s=t._leakageMon.check(t._listeners.size)),a={dispose:function(){(s&&s(),a.dispose=e._noop,t._disposed)||(l(),t._options&&t._options.onLastListenerRemove&&(t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)))}},Array.isArray(r)&&r.push(a),a}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){var r=this._deliveryQueue.shift(),o=r[0],s=r[1];try{"function"==typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(n){i.onUnexpectedError(n)}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}();t.Emitter=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.fireAsync=function(e){return r(this,void 0,void 0,function(){var t,n,r,s,a,c;return o(this,function(o){switch(o.label){case 0:if(!this._listeners)return[2];for(this._asyncDeliveryQueue||(this._asyncDeliveryQueue=[]),t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())c=[],this._asyncDeliveryQueue.push([n.value,e(c,"function"==typeof n.value?n.value:n.value[0]),c]);o.label=1;case 1:if(!(this._asyncDeliveryQueue.length>0))return[3,3];r=this._asyncDeliveryQueue.shift(),s=r[0],a=r[1],c=r[2];try{"function"==typeof s?s.call(void 0,a):s[0].call(s[1],a)}catch(e){return i.onUnexpectedError(e),[3,1]}return Object.freeze(c),[4,Promise.all(c)];case 2:return o.sent(),[3,1];case 3:return[2]}})})},t}(h);t.AsyncEmitter=p;var f=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new h({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,i={event:e,listener:null};this.events.push(i),this.hasListeners&&this.hook(i);return s.toDisposable(n.once(function(){t.hasListeners&&t.unhook(i);var e=t.events.indexOf(i);t.events.splice(e,1)}))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}();t.EventMultiplexer=f;var g=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(i,n,r){return e(function(e){var r=t.buffers[t.buffers.length-1];r?r.push(function(){return i.call(n,e)}):i.call(n,e)},void 0,r)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var i=e();return this.buffers.pop(),t.forEach(function(e){return e()}),i},e}();t.EventBufferer=g;var v=function(){function e(){var e=this;this.listening=!1,this.inputEvent=l.None,this.inputEventListener=s.Disposable.None,this.emitter=new h({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}();t.Relay=v}),define(i[68],n([0,1,5]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new i.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1,this._onDidChangeFullscreen=new i.Emitter,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.setZoomLevel=function(e,t){this._zoomLevel!==e&&(this._zoomLevel=e,this._lastZoomLevelChangeTime=t?0:Date.now(),this._onDidChangeZoomLevel.fire(this._zoomLevel))},e.prototype.getZoomFactor=function(){return this._zoomFactor},e.prototype.setZoomFactor=function(e){this._zoomFactor=e},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)},e.prototype.setFullscreen=function(e){this._fullscreen!==e&&(this._fullscreen=e,this._onDidChangeFullscreen.fire())},e.prototype.isFullscreen=function(){return this._fullscreen},e.INSTANCE=new e,e}();t.setZoomLevel=function(e,t){n.INSTANCE.setZoomLevel(e,t)},t.getZoomLevel=function(){return n.INSTANCE.getZoomLevel()},t.getTimeSinceLastZoomLevelChanged=function(){return n.INSTANCE.getTimeSinceLastZoomLevelChanged()},t.onDidChangeZoomLevel=function(e){return n.INSTANCE.onDidChangeZoomLevel(e)},t.getZoomFactor=function(){return n.INSTANCE.getZoomFactor()},t.setZoomFactor=function(e){n.INSTANCE.setZoomFactor(e)},t.getPixelRatio=function(){return n.INSTANCE.getPixelRatio()},t.setFullscreen=function(e){n.INSTANCE.setFullscreen(e)},t.isFullscreen=function(){return n.INSTANCE.isFullscreen()},t.onDidChangeFullscreen=n.INSTANCE.onDidChangeFullscreen;var r=navigator.userAgent;t.isIE=r.indexOf("Trident")>=0,t.isEdge=r.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isOpera=r.indexOf("Opera")>=0,t.isFirefox=r.indexOf("Firefox")>=0,t.isWebKit=r.indexOf("AppleWebKit")>=0,t.isChrome=r.indexOf("Chrome")>=0,t.isSafari=!t.isChrome&&r.indexOf("Safari")>=0,t.isWebkitWebView=!t.isChrome&&!t.isSafari&&t.isWebKit,t.isIPad=r.indexOf("iPad")>=0,t.isEdgeWebView=t.isEdge&&r.indexOf("WebView/")>=0,t.hasClipboardSupport=function(){if(t.isIE)return!1;if(t.isEdge){var e=r.indexOf("Edge/"),i=parseInt(r.substring(e+5,r.indexOf(".",e)),10);if(!i||i>=12&&i<=16)return!1}return!0}}),define(i[105],n([0,1,5]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domEvent=function(e,t,n){var r=function(e){return o.fire(e)},o=new i.Emitter({onFirstListenerAdd:function(){e.addEventListener(t,r,n)},onLastListenerRemove:function(){e.removeEventListener(t,r,n)}});return o.event},t.stop=function(e){return i.Event.map(e,function(e){return e.preventDefault(),e.stopPropagation(),e})}}),define(i[394],n([0,1,17,5,92]),function(e,t,i,n,r){"use strict";function o(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function s(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function a(e){var t=e.element,i=e.collapsed;return{element:t,children:r.Iterator.map(r.Iterator.fromArray(e.children),a),collapsed:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.isFilterResult=o,t.getVisibleState=s;var c=function(){function e(e,t,i){void 0===i&&(i={}),this.list=e,this.rootRef=[],this.eventBufferer=new n.EventBufferer,this._onDidChangeCollapseState=new n.Emitter,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new n.Emitter,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new n.Emitter,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=void 0!==i.collapseByDefault&&i.collapseByDefault,this.filter=i.filter,this.autoExpandSingleChildren=void 0!==i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:t,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return e.prototype.splice=function(e,t,i,n,o){var s,c=this;if(0===e.length)throw new Error("Invalid tree location");for(var l=this.getParentNodeWithListIndex(e),u=l.parentNode,d=l.listIndex,h=l.revealed,p=l.visible,f=[],g=r.Iterator.map(r.Iterator.from(i),function(e){return c.createTreeNode(e,u,u.visible?1:0,h,f,n)}),v=e[e.length-1],m=0,y=v;y>=0&&y0&&o){var k=function(e){o(e),e.children.forEach(k)};C.forEach(k)}var L=r.Iterator.map(r.Iterator.fromArray(C),a);return this._onDidSplice.fire({insertedNodes:b,deletedNodes:C}),L},e.prototype.rerender=function(e){if(0===e.length)throw new Error("Invalid tree location");var t=this.getTreeNodeWithListIndex(e),i=t.node,n=t.listIndex;t.revealed&&this.list.splice(n,1,[i])},e.prototype.getListIndex=function(e){var t=this.getTreeNodeWithListIndex(e),i=t.listIndex,n=t.visible,r=t.revealed;return n&&r?i:-1},e.prototype.getListRenderCount=function(e){return this.getTreeNode(e).renderNodeCount},e.prototype.isCollapsible=function(e){return this.getTreeNode(e).collapsible},e.prototype.isCollapsed=function(e){return this.getTreeNode(e).collapsed},e.prototype.setCollapsed=function(e,t,i){var n=this,r=this.getTreeNode(e);return void 0===t&&(t=!r.collapsed),this.eventBufferer.bufferEvents(function(){return n._setCollapsed(e,t,i)})},e.prototype._setCollapsed=function(e,t,i){var n=this.getTreeNodeWithListIndex(e),r=n.node,o=n.listIndex,s=n.revealed,a=this._setListNodeCollapsed(r,o,s,t,i||!1);if(this.autoExpandSingleChildren&&!t&&!i){for(var c=-1,l=0;l-1){c=-1;break}c=l}}c>-1&&this._setCollapsed(e.concat([c]),!1,!1)}return a},e.prototype._setListNodeCollapsed=function(e,t,i,n,r){var o=this._setNodeCollapsed(e,n,r,!1);if(!i||!e.visible)return o;var s=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),c=s-(-1===t?0:1);return this.list.splice(t+1,c,a.slice(1)),o},e.prototype._setNodeCollapsed=function(e,t,i,n){var r=e.collapsible&&e.collapsed!==t;if(e.collapsible&&(e.collapsed=t,r&&this._onDidChangeCollapseState.fire({node:e,deep:n})),i)for(var o=0,s=e.children;o0,c.visibleChildrenCount=p,c.visible=2===l?p>0:1===l,c.visible?c.collapsed||(c.renderNodeCount=f):(c.renderNodeCount=0,n&&o.pop()),s&&s(c),c},e.prototype.updateNodeAfterCollapseChange=function(e){var t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i},e.prototype._updateNodeAfterCollapseChange=function(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(var i=0,n=e.children;it.children.length)throw new Error("Invalid tree location");return this.getTreeNode(n,t.children[i])},e.prototype.getTreeNodeWithListIndex=function(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var t=this.getParentNodeWithListIndex(e),i=t.parentNode,n=t.listIndex,r=t.revealed,o=t.visible,s=e[e.length-1];if(s<0||s>i.children.length)throw new Error("Invalid tree location");var a=i.children[s];return{node:a,listIndex:n,revealed:r,visible:o&&a.visible}},e.prototype.getParentNodeWithListIndex=function(e,t,i,n,r){void 0===t&&(t=this.root),void 0===i&&(i=0),void 0===n&&(n=!0),void 0===r&&(r=!0);var o=e[0],s=e.slice(1);if(o<0||o>t.children.length)throw new Error("Invalid tree location");for(var a=0;a{};return{mark:function(t){e._performanceEntries.push(t,Date.now()),i(t)},getEntries:function(){const i=[],n=e._performanceEntries;for(let e=0;e=0;e-=t)if(r[e]===o){if(o!==n)return r[s+1]-r[e+1];s=e,o=i}return 0},importEntries:function(t){e._performanceEntries.splice(0,0,...t)},exportEntries:function(){return e._performanceEntries.slice(0)}}}let d;define(i[314],n([0,1,92,394]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){void 0===t&&(t={}),this.rootRef=null,this.nodes=new Map,this.model=new n.IndexTreeModel(e,null,t),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,t.sorter&&(this.sorter={compare:function(e,i){return t.sorter.compare(e.element,i.element)}})}return Object.defineProperty(e.prototype,"size",{get:function(){return this.nodes.size},enumerable:!0,configurable:!0}),e.prototype.setChildren=function(e,t,i,n){var r=this.getElementLocation(e);return this._setChildren(r,this.preserveCollapseState(t),i,n)},e.prototype._setChildren=function(e,t,i,n){var r=this,o=new Set;return this.model.splice(e.concat([0]),Number.MAX_VALUE,t,function(e){o.add(e.element),r.nodes.set(e.element,e),i&&i(e)},function(e){o.has(e.element)||r.nodes.delete(e.element),n&&n(e)})},e.prototype.preserveCollapseState=function(e){var t=this,n=e?i.getSequenceIterator(e):i.Iterator.empty();return this.sorter&&(n=i.Iterator.fromArray(i.Iterator.collect(n).sort(this.sorter.compare.bind(this.sorter)))),i.Iterator.map(n,function(e){var i=t.nodes.get(e.element);if(!i)return l({},e,{children:t.preserveCollapseState(e.children)});var n="boolean"==typeof e.collapsible?e.collapsible:i.collapsible,r=void 0!==e.collapsed?e.collapsed:i.collapsed;return l({},e,{collapsible:n,collapsed:r,children:t.preserveCollapseState(e.children)})})},e.prototype.rerender=function(e){var t=this.getElementLocation(e);this.model.rerender(t)},e.prototype.resort=function(e,t){if(void 0===e&&(e=null),void 0===t&&(t=!0),this.sorter){var i=this.getElementLocation(e),n=this.model.getNode(i);this._setChildren(i,this.resortChildren(n,t))}},e.prototype.resortChildren=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=i.Iterator.fromArray(e.children);return(t||n)&&(o=i.Iterator.fromArray(i.Iterator.collect(o).sort(this.sorter.compare.bind(this.sorter)))),i.Iterator.map(o,function(e){return{element:e.element,collapsible:e.collapsible,collapsed:e.collapsed,children:r.resortChildren(e,t,!1)}})},e.prototype.getParentElement=function(e){void 0===e&&(e=null);var t=this.getElementLocation(e);return this.model.getParentElement(t)},e.prototype.getFirstElementChild=function(e){void 0===e&&(e=null);var t=this.getElementLocation(e);return this.model.getFirstElementChild(t)},e.prototype.getLastElementAncestor=function(e){void 0===e&&(e=null);var t=this.getElementLocation(e);return this.model.getLastElementAncestor(t)},e.prototype.getListIndex=function(e){var t=this.getElementLocation(e);return this.model.getListIndex(t)},e.prototype.getListRenderCount=function(e){var t=this.getElementLocation(e);return this.model.getListRenderCount(t)},e.prototype.isCollapsible=function(e){var t=this.getElementLocation(e);return this.model.isCollapsible(t)},e.prototype.isCollapsed=function(e){var t=this.getElementLocation(e);return this.model.isCollapsed(t)},e.prototype.setCollapsed=function(e,t,i){var n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)},e.prototype.expandTo=function(e){var t=this.getElementLocation(e);this.model.expandTo(t)},e.prototype.refilter=function(){this.model.refilter()},e.prototype.getNode=function(e){void 0===e&&(e=null);var t=this.getElementLocation(e);return this.model.getNode(t)},e.prototype.getNodeLocation=function(e){return e.element},e.prototype.getParentNodeLocation=function(e){var t=this.nodes.get(e);if(!t)throw new Error("Tree element not found: "+e);return t.parent.element},e.prototype.getElementLocation=function(e){if(null===e)return[];var t=this.nodes.get(e);if(!t)throw new Error("Tree element not found: "+e);return this.model.getNodeLocation(t)},e}();t.ObjectTreeModel=r}),define(i[29],n([0,1,2,5]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,i,r,o){void 0===t&&(t=""),void 0===i&&(i=""),void 0===r&&(r=!0),this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event,this._id=e,this._label=t,this._cssClass=i,this._enabled=r,this._actionCallback=o}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),e.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),e.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(e.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),e.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),e.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),e.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},e.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},e.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},e.prototype.dispose=function(){this._onDidChange.dispose()},e}();t.Action=r;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new n.Emitter),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new n.Emitter),t.onDidRun=t._onDidRun.event,t}return a(t,e),t.prototype.run=function(e,t){var i=this;return e.enabled?(this._onDidBeforeRun.fire({action:e}),this.runAction(e,t).then(function(t){i._onDidRun.fire({action:e,result:t})},function(t){i._onDidRun.fire({action:e,error:t})})):Promise.resolve(null)},t.prototype.runAction=function(e,t){var i=t?e.run(t):e.run();return Promise.resolve(i)},t}(i.Disposable);t.ActionRunner=o;var s=function(e){function t(t){var n=e.call(this)||this;return n.actions=t,n._register(i.combinedDisposable(t.map(function(e){return e.onDidChange(function(i){if(i.checked&&e.checked)for(var n=0,r=t;n=r)return Promise.resolve(i);var s=e[n++];return Promise.resolve(s()).then(function(e){return t(e)?Promise.resolve(e):o()})};return o()};var f=function(){function e(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new r.Emitter}return Object.defineProperty(e.prototype,"onFinished",{get:function(){return this._onFinished.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.queue=function(e){var t=this;return this._size++,new Promise(function(i,n){t.outstandingPromises.push({factory:e,c:i,e:n}),t.consume()})},e.prototype.consume=function(){for(var e=this;this.outstandingPromises.length&&this.runningPromises0?this.consume():this._onFinished.fire()},e.prototype.dispose=function(){this._onFinished.dispose()},e}();t.Limiter=f;var g=function(e){function t(){return e.call(this,1)||this}return a(t,e),t}(f);t.Queue=g;var v=function(){function e(){this.queues=Object.create(null)}return e.prototype.queueFor=function(e){var t=this,i=e.toString();if(!this.queues[i]){var n=new g;n.onFinished(function(){n.dispose(),delete t.queues[i]}),this.queues[i]=n}return this.queues[i]},e}();t.ResourceQueue=v;var m=function(e){function t(t,i){var n=e.call(this)||this;return n._token=-1,"function"==typeof t&&"number"==typeof i&&n.setIfNotSet(t,i),n}return a(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){var i=this;this.cancel(),this._token=setTimeout(function(){i._token=-1,e()},t)},t.prototype.setIfNotSet=function(e,t){var i=this;-1===this._token&&(this._token=setTimeout(function(){i._token=-1,e()},t))},t}(o.Disposable);t.TimeoutTimer=m;var y=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return a(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval(function(){e()},t)},t}(o.Disposable);t.IntervalTimer=y;var b=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),this.runner=null},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return-1!==this.timeoutToken},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},e.prototype.doRun=function(){this.runner&&this.runner()},e}();t.RunOnceScheduler=b;var _=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.units=[],n}return a(t,e),t.prototype.work=function(e){this.units.push(e),this.isScheduled()||this.schedule()},t.prototype.doRun=function(){var e=this.units;this.units=[],this.runner&&this.runner(e)},t.prototype.dispose=function(){this.units=[],e.prototype.dispose.call(this)},t}(b);t.RunOnceWorker=_,t.nfcall=function(e){for(var t=[],i=1;i ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)|(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:g,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function i(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||b.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=d(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d+\.)/,t.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,t.item=d(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=d(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._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",t._comment=//,t.html=d(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=d(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag",t._tag).getRegex(),t.blockquote=d(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=v({},t),t.gfm=v({},t.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=d(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=v({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=v({},t.normal,{html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),i.rules=t,i.lex=function(e,t){return new i(t).lex(e)},i.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},i.prototype.token=function(e,i){var n,r,o,s,a,c,l,u,d,h,p,f,g,v,b,_;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:y(o,"\n")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(i&&(o=this.rules.nptable.exec(e))&&(c={type:"table",header:m(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===c.align.length){for(e=e.substring(o[0].length),p=0;p ?/gm,""),this.token(o,i),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),l={type:"list_start",ordered:v=(s=o[2]).length>1,start:v?+s:"",loose:!1},this.tokens.push(l),u=[],n=!1,g=(o=o[0].match(this.rules.item)).length,p=0;p1&&a.length>1||(e=o.slice(p+1).join("\n")+e,p=g-1)),r=n||/\n\n(?!\s*$)/.test(c),p!==g-1&&(n="\n"===c.charAt(c.length-1),r||(r=n)),r&&(l.loose=!0),_=void 0,(b=/^\[[ xX]\] /.test(c))&&(_=" "!==c[1],c=c.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:b,checked:_,loose:r},u.push(d),this.tokens.push(d),this.token(c,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(g=u.length,p=0;p?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s])__(?!_)|^\*\*([^\s])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_)|^_([^\s_][\s\S]*?[^\s])_(?!_)|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:g,text:/^[\s\S]+?(?=[\\/g,">").replace(/"/g,""").replace(/'/g,"'")}function u(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function d(e,t){return e=e.source||e,t=t||"",{replace:function(t,i){return i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,i),this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t){return p[" "+e]||(/^[^:]+:\/*[^\/]*$/.test(e)?p[" "+e]=e+"/":p[" "+e]=y(e,"/",!0)),e=p[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^\/]*)[\s\S]*/,"$1")+t:e+t}n._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,n._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,n._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])?)+(?![-_])/,n.autolink=d(n.autolink).replace("scheme",n._scheme).replace("email",n._email).getRegex(),n._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,n.tag=d(n.tag).replace("comment",t._comment).replace("attribute",n._attribute).getRegex(),n._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/,n._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f\\]*\)|[^\s\x00-\x1f()\\])*?)/,n._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,n.link=d(n.link).replace("label",n._label).replace("href",n._href).replace("title",n._title).getRegex(),n.reflink=d(n.reflink).replace("label",n._label).getRegex(),n.normal=v({},n),n.pedantic=v({},n.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",n._label).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",n._label).getRegex()}),n.gfm=v({},n.normal,{escape:d(n.escape).replace("])","~|])").getRegex(),url:d(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",n._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:d(n.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),n.breaks=v({},n.gfm,{br:d(n.br).replace("{2,}","*").getRegex(),text:d(n.gfm.text).replace("{2,}","*").getRegex()}),r.rules=n,r.output=function(e,t,i){return new r(t,i).output(e)},r.prototype.output=function(e){for(var t,i,n,o,s,a,c="";e;)if(s=this.rules.escape.exec(e))e=e.substring(s[0].length),c+=s[1];else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),n="@"===s[2]?"mailto:"+(i=l(this.mangle(s[1]))):i=l(s[1]),c+=this.renderer.link(n,null,i);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.tag.exec(e))!this.inLink&&/^/i.test(s[0])&&(this.inLink=!1),e=e.substring(s[0].length),c+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):l(s[0]):s[0];else if(s=this.rules.link.exec(e))e=e.substring(s[0].length),this.inLink=!0,n=s[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n))?(n=t[1],o=t[3]):o="":o=s[3]?s[3].slice(1,-1):"",n=n.trim().replace(/^<([\s\S]*)>$/,"$1"),c+=this.outputLink(s,{href:r.escapes(n),title:r.escapes(o)}),this.inLink=!1;else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){c+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,c+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),c+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),c+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),c+=this.renderer.codespan(l(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),c+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),c+=this.renderer.del(this.output(s[1]));else if(s=this.rules.text.exec(e))e=e.substring(s[0].length),c+=this.renderer.text(l(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{do{a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0]}while(a!==s[0]);e=e.substring(s[0].length),"@"===s[2]?n="mailto:"+(i=l(s[0])):(i=l(s[0]),n="www."===s[1]?"http://"+i:i),c+=this.renderer.link(n,null,i)}return c},r.escapes=function(e){return e?e.replace(r.rules._escapes,"$1"):e},r.prototype.outputLink=function(e,t){var i=t.href,n=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(i,n,this.output(e[1])):this.renderer.image(i,n,l(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,i="",n=e.length,r=0;r.5&&(t="x"+t.toString(16)),i+="&#"+t+";";return i},o.prototype.code=function(e,t,i){if(this.options.highlight){var n=this.options.highlight(e,t);null!=n&&n!==e&&(i=!0,e=n)}return t?'
'+(i?e:l(e,!0))+"
\n":"
"+(i?e:l(e,!0))+"
"},o.prototype.blockquote=function(e){return"
\n"+e+"
\n"},o.prototype.html=function(e){return e},o.prototype.heading=function(e,t,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"},o.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},o.prototype.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"\n"},o.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},o.prototype.checkbox=function(e){return" "},o.prototype.paragraph=function(e){return"

    "+e+"

    \n"},o.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},o.prototype.tablerow=function(e){return"\n"+e+"\n"},o.prototype.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"\n"},o.prototype.strong=function(e){return""+e+""},o.prototype.em=function(e){return""+e+""},o.prototype.codespan=function(e){return""+e+""},o.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},o.prototype.del=function(e){return""+e+""},o.prototype.link=function(e,t,i){if(this.options.sanitize){try{var n=decodeURIComponent(u(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return i}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return i}this.options.baseUrl&&!f.test(e)&&(e=h(this.options.baseUrl,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return i}var r='
    "},o.prototype.image=function(e,t,i){this.options.baseUrl&&!f.test(e)&&(e=h(this.options.baseUrl,e));var n=''+i+'":">"},o.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,i){return""+i},s.prototype.br=function(){return""},a.parse=function(e,t){return new a(t).parse(e)},a.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,v({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,u(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,i,n,r="",o="";for(i="",e=0;e=0&&"\\"===i[r];)n=!n;return n?"|":" |"}).split(/ \|/),n=0;if(i.length>t)i.splice(t);else for(;i.lengthAn error occurred:

    "+l(e.message+"",!0)+"
    ";throw e}}g.exec=g,b.options=b.setOptions=function(e){return v(b.defaults,e),b},b.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new o,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},b.defaults=b.getDefaults(),b.Parser=a,b.parser=a.parse,b.Renderer=o,b.TextRenderer=s,b.Lexer=i,b.lexer=i.lex,b.InlineLexer=r,b.inlineLexer=r.output,b.parse=b,c=b}.call(this),define("vs/base/common/marked/marked",function(){return c}),define(i[33],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command"}(t.Schemas||(t.Schemas={}))}),define(i[224],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=function(e,t,i){return Math.min(Math.max(e,t),i)},t.rot=function(e,t){return(t+e%t)%t};var i=function(){function e(){this._next=0}return e.prototype.getNext=function(){return this._next++},e}();t.Counter=i}),d="object"==typeof global?global:"object"==typeof self?self:{},"function"==typeof define?define("vs/base/common/performance",[],function(){return u(d)}):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=u(d)),define(i[12],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LANGUAGE_DEFAULT="en";var i=!1,n=!1,r=!1,o=!1,s=!1,a=void 0,c=t.LANGUAGE_DEFAULT,l=void 0,u="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type;if("object"!=typeof navigator||u){if("object"==typeof process){i="win32"===process.platform,n="darwin"===process.platform,r="linux"===process.platform,a=t.LANGUAGE_DEFAULT,c=t.LANGUAGE_DEFAULT;var d=process.env.VSCODE_NLS_CONFIG;if(d)try{var h=JSON.parse(d),p=h.availableLanguages["*"];a=h.locale,c=p||t.LANGUAGE_DEFAULT,l=h._translationsConfigFile}catch(e){}o=!0}}else{var f=navigator.userAgent;i=f.indexOf("Windows")>=0,n=f.indexOf("Macintosh")>=0,r=f.indexOf("Linux")>=0,s=!0,c=a=navigator.language}t.PlatformToString=function(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}};var g=0;o&&(n?g=1:i?g=3:r&&(g=2)),t.isWindows=i,t.isMacintosh=n,t.isLinux=r,t.isNative=o,t.isWeb=s,t.platform=g,t.isRootUser=function(){return o&&!i&&0===process.getuid()},t.language=c,t.locale=a,t.translationsConfigFile=l;var v="object"==typeof self?self:"object"==typeof global?global:{};t.globals=v;var m=null;t.setImmediate=function(e){return null===m&&(m=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):t.globals.setTimeout.bind(t.globals)),m(e)},t.OS=n?2:i?1:3}),define(i[60],n([0,1,68,54,12]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=new Array(230),s=new Array(112);!function(){for(var e=0;e=0;){if(o=s+r,(0===s||32===i.charCodeAt(s-1))&&32===i.charCodeAt(o))return this._lastStart=s,void(this._lastEnd=o+1);if(s>0&&32===i.charCodeAt(s-1)&&o===n)return this._lastStart=s-1,void(this._lastEnd=o);if(0===s&&o===n)return this._lastStart=0,void(this._lastEnd=o)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClasses=function(e){for(var t=this,i=[],n=1;n0;){_.sort(E.sort),_.shift().execute()}C=!1},t.scheduleAtNextAnimationFrame=function(e,t){void 0===t&&(t=0);var i,n=new E(e,t);return b.push(n),S||(S=!0,i=w,y||(y=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout(function(){return e((new Date).getTime())},0)}),y.call(self,i)),n},t.runAtThisOrScheduleAtNextAnimationFrame=function(e,i){if(C){var n=new E(e,i);return _.push(n),n}return t.scheduleAtNextAnimationFrame(e,i)},t.measure=function(e){return t.scheduleAtNextAnimationFrame(e,1e4)},t.modify=function(e){return t.scheduleAtNextAnimationFrame(e,-1e4)};var I=16,x=function(e,t){return t},D=function(e){function t(t,i,n,r,o){void 0===r&&(r=x),void 0===o&&(o=I);var a=e.call(this)||this,c=null,l=0,u=a._register(new s.TimeoutTimer),d=function(){l=(new Date).getTime(),n(c),c=null};return a._register(m(t,i,function(e){c=r(c,e);var t=(new Date).getTime()-l;t>=o?(u.cancel(),d()):u.setIfNotSet(d,o-t)})),a}return a(t,e),t}(u.Disposable);function k(e){return document.defaultView.getComputedStyle(e,null)}t.addDisposableThrottledListener=function(e,t,i,n,r){return new D(e,t,i,n,r)},t.getComputedStyle=k;var L=function(e,t){return parseFloat(t)||0};function M(e,t,i){var n=k(e),r="0";return n&&(r=n.getPropertyValue?n.getPropertyValue(t):n.getAttribute(i)),L(e,r)}t.getClientArea=function(e){if(e!==document.body)return new O(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new O(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new O(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new O(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")};var R={getBorderLeftWidth:function(e){return M(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return M(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return M(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return M(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return M(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return M(e,"padding-right","paddingRight")},getPaddingTop:function(e){return M(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return M(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return M(e,"margin-left","marginLeft")},getMarginTop:function(e){return M(e,"margin-top","marginTop")},getMarginRight:function(e){return M(e,"margin-right","marginRight")},getMarginBottom:function(e){return M(e,"margin-bottom","marginBottom")},__commaSentinel:!1},O=function(){function e(e,t){this.width=e,this.height=t}return e.equals=function(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)},e}();function T(e){for(var t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){i-=e.scrollTop;var r=k(e);r&&(n-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=R.getBorderLeftWidth(e),i+=R.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function P(e){var t=R.getMarginLeft(e)+R.getMarginRight(e);return e.offsetWidth+t}function A(e){var t=R.getMarginLeft(e)+R.getMarginRight(e);return e.scrollWidth+t}function N(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function F(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}t.Dimension=O,t.getTopLeftOffset=T,t.size=function(e,t,i){"number"==typeof t&&(e.style.width=t+"px"),"number"==typeof i&&(e.style.height=i+"px")},t.position=function(e,t,i,n,r,o){void 0===o&&(o="absolute"),"number"==typeof t&&(e.style.top=t+"px"),"number"==typeof i&&(e.style.right=i+"px"),"number"==typeof n&&(e.style.bottom=n+"px"),"number"==typeof r&&(e.style.left=r+"px"),e.style.position=o},t.getDomNodePagePosition=function(e){var i=e.getBoundingClientRect();return{left:i.left+t.StandardWindow.scrollX,top:i.top+t.StandardWindow.scrollY,width:i.width,height:i.height}},t.StandardWindow=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}()),t.getTotalWidth=P,t.getContentWidth=function(e){var t=R.getBorderLeftWidth(e)+R.getBorderRightWidth(e),i=R.getPaddingLeft(e)+R.getPaddingRight(e);return e.offsetWidth-t-i},t.getTotalScrollWidth=A,t.getContentHeight=function(e){var t=R.getBorderTopWidth(e)+R.getBorderBottomWidth(e),i=R.getPaddingTop(e)+R.getPaddingBottom(e);return e.offsetHeight-t-i},t.getTotalHeight=function(e){var t=R.getMarginTop(e)+R.getMarginBottom(e);return e.offsetHeight+t},t.getLargestChildWidth=function(e,t){var i=t.map(function(t){return Math.max(A(t),P(t))+function(e,t){if(null===e)return 0;var i=T(e),n=T(t);return i.left-n.left}(t,e)||0});return Math.max.apply(Math,i)},t.isAncestor=N,t.findParentWithClass=function(e,i,n){for(;e;){if(t.hasClass(e,i))return e;if(n)if("string"==typeof n){if(t.hasClass(e,n))return null}else if(e===n)return null;e=e.parentNode}return null},t.createStyleSheet=F;var W=null;function B(){return W||(W=F()),W}t.createCSSRule=function(e,t,i){void 0===i&&(i=B()),i&&t&&i.sheet.insertRule(e+"{"+t+"}",0)},t.removeCSSRulesContainingSelector=function(e,t){if(void 0===t&&(t=B()),t){for(var i=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),n=[],r=0;r=0;r--)t.sheet.deleteRule(n[r])}},t.isHTMLElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName},t.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:i.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:i.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i.isWebKit?"webkitAnimationIteration":"animationiteration"},t.EventHelper={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},t.saveParentsScrollTop=function(e){for(var t=[],i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t},t.restoreParentsScrollTop=function(e,t){for(var i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode};var V=function(){function e(e){var i=this;this._onDidFocus=new l.Emitter,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new l.Emitter,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var r=N(document.activeElement,e),o=!1;n.domEvent(e,t.EventType.FOCUS,!0)(function(){o=!1,r||(r=!0,i._onDidFocus.fire())},null,this.disposables),n.domEvent(e,t.EventType.BLUR,!0)(function(){r&&(o=!0,window.setTimeout(function(){o&&(o=!1,r=!1,i._onDidBlur.fire())},0))},null,this.disposables)}return e.prototype.dispose=function(){this.disposables=u.dispose(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();t.trackFocus=function(e){return new V(e)},t.append=function(e){for(var t=[],i=1;i0&&(t instanceof Node?i.push(t.cloneNode()):i.push(document.createTextNode(t))),i.push(e)}),i},t.show=function(){for(var e=[],t=0;t0},t.prototype.startMonitoring=function(e,t,o){var s=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=o;for(var a=n.IframeUtils.getSameOriginWindowChain(),c=0,l=a;c=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};define(i[104],n([0,1,17,2,7,107]),function(e,t,i,n,r,o){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(s=t.EventType||(t.EventType={}));var c=function(e){function t(){var t=e.call(this)||this;return t.activeTouches={},t.handle=null,t.targets=[],t._register(r.addDisposableListener(document,"touchstart",function(e){return t.onTouchStart(e)})),t._register(r.addDisposableListener(document,"touchend",function(e){return t.onTouchEnd(e)})),t._register(r.addDisposableListener(document,"touchmove",function(e){return t.onTouchMove(e)})),t}return a(t,e),t.addTarget=function(e){t.isTouchDevice()&&(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e))},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var i=0,n=e.targetTouches.length;i=t.HOLD_DELAY&&Math.abs(u.initialPageX-i.tail(u.rollingPageX))<30&&Math.abs(u.initialPageY-i.tail(u.rollingPageY))<30){var h;(h=a.newGestureEvent(s.Contextmenu,u.initialTarget)).pageX=i.tail(u.rollingPageX),h.pageY=i.tail(u.rollingPageY),a.dispatchEvent(h)}else if(1===r){var p=i.tail(u.rollingPageX),f=i.tail(u.rollingPageY),g=i.tail(u.rollingTimestamps)-u.rollingTimestamps[0],v=p-u.rollingPageX[0],m=f-u.rollingPageY[0],y=a.targets.filter(function(e){return u.initialTarget instanceof Node&&e.contains(u.initialTarget)});a.inertia(y,n,Math.abs(v)/g,v>0?1:-1,p,Math.abs(m)/g,m>0?1:-1,f)}a.dispatchEvent(a.newGestureEvent(s.End,u.initialTarget)),delete a.activeTouches[l.identifier]},a=this,c=0,l=e.changedTouches.length;c0&&(g=!1,p=o*n*h),c>0&&(g=!1,f=l*c*h);var v=d.newGestureEvent(s.Change);v.translationX=p,v.translationY=f,e.forEach(function(e){return e.dispatchEvent(v)}),g||d.inertia(e,r,n,o,a+p,c,l,u+f)})},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,r=e.changedTouches.length;n3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(o.pageX),a.rollingPageY.push(o.pageY),a.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,p([o.memoize],t,"isTouchDevice",null),t}(n.Disposable);t.Gesture=c}),define(i[897],n([0,1,7]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.renderers=e,this.cache=new Map}return e.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=i.$(".monaco-list-row");t={domNode:n,templateId:e,templateData:this.getRenderer(e).renderTemplate(n)}}return t},e.prototype.release=function(e){e&&this.releaseRow(e)},e.prototype.releaseRow=function(e){var t=e.domNode,n=e.templateId;t&&(i.removeClass(t,"scrolling"),function(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(e){}}(t)),this.getTemplateCache(n).push(e)},e.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t},e.prototype.garbageCollect=function(){var e=this;this.renderers&&(this.cache.forEach(function(t,i){for(var n=0,r=t;n=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected140)i._setDesiredScrollPositionNow(s.getScrollPosition());else{var a=i._sliderMousePosition(e)-n;i._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(a))}},function(){i.slider.toggleClassName("active",!1),i._host.onDragEnd(),t()}),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(c.Widget);t.AbstractScrollbar=u}),define(i[989],n([0,1,76,381,313,386]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t,n,s){var a=e.call(this,{lazyRender:n.lazyRender,host:s,scrollbarState:new o.ScrollbarState(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var c=(n.arrowSize-r.ARROW_IMG_SIZE)/2,l=(n.horizontalScrollbarSize-r.ARROW_IMG_SIZE)/2;a._createArrow({className:"left-arrow",top:l,left:c,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return a._host.onMouseWheel(new i.StandardWheelEvent(null,1,0))}}),a._createArrow({className:"right-arrow",top:l,left:void 0,bottom:void 0,right:c,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return a._host.onMouseWheel(new i.StandardWheelEvent(null,-1,0))}})}return a._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),a}return a(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(n.AbstractScrollbar);t.HorizontalScrollbar=s}),define(i[1009],n([0,1,76,381,313,386]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t,n,s){var a=e.call(this,{lazyRender:n.lazyRender,host:s,scrollbarState:new o.ScrollbarState(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var c=(n.arrowSize-r.ARROW_IMG_SIZE)/2,l=(n.verticalScrollbarSize-r.ARROW_IMG_SIZE)/2;a._createArrow({className:"up-arrow",top:c,left:l,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return a._host.onMouseWheel(new i.StandardWheelEvent(null,0,1))}}),a._createArrow({className:"down-arrow",top:void 0,left:l,bottom:c,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return a._host.onMouseWheel(new i.StandardWheelEvent(null,0,-1))}})}return a._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),a}return a(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(n.AbstractScrollbar);t.VerticalScrollbar=s}),define(i[312],n([0,1,12]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"==typeof process?{cwd:function(){return"/"},env:Object.create(null),get platform(){return i.isWindows?"win32":i.isMacintosh?"darwin":"linux"},nextTick:function(e){return i.setImmediate(e)}}:process;t.cwd=n.cwd,t.env=n.env,t.platform=n.platform,t.nextTick=n.nextTick}),define(i[35],n([0,1,312]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=65,r=97,o=90,s=122,c=46,l=47,u=92,d=function(e){function t(t,i,n){var r,o;"string"==typeof i&&0===i.indexOf("not ")?(r="must not be",i=i.replace(/^not /,"")):r="must be";var s=-1!==t.indexOf(".")?"property":"argument";return o='The "'+t+'" '+s+" "+r+" of type "+i,o+=". Received type "+typeof n,e.call(this,o)||this}return a(t,e),t}(Error);function h(e,t){if("string"!=typeof e)throw new d(t,"string",e)}function p(e){return e===l||e===u}function f(e){return e===l}function g(e){return e>=n&&e<=o||e>=r&&e<=s}function v(e,t,i,n){for(var r,o="",s=0,a=-1,u=0,d=0;d<=e.length;++d){if(d2){var h=o.lastIndexOf(i);-1===h?(o="",s=0):s=(o=o.slice(0,h)).length-1-o.lastIndexOf(i),a=d,u=0;continue}if(2===o.length||1===o.length){o="",s=0,a=d,u=0;continue}}t&&(o.length>0?o+=i+"..":o="..",s=2)}else o.length>0?o+=i+e.slice(a+1,d):o=e.slice(a+1,d),s=d-a-1;a=d,u=0}else r===c&&-1!==u?++u:u=-1}return o}function m(e,t){var i=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+n:i+e+n:n}t.win32={resolve:function(){for(var e=[],t=0;t=-1;s--){var a=void 0;if(s>=0?a=e[s]:n?void 0!==(a=i.env["="+n]||i.cwd())&&a.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(a=n+"\\"):a=i.cwd(),h(a,"path"),0!==a.length){var c=a.length,l=0,u="",d=!1,f=a.charCodeAt(0);if(c>1)if(p(f))if(d=!0,p(a.charCodeAt(1))){for(var m=2,y=m;m2&&p(a.charCodeAt(2))&&(d=!0,l=3));else p(f)&&(l=1,d=!0);if(!(u.length>0&&n.length>0&&u.toLowerCase()!==n.toLowerCase())&&(0===n.length&&u.length>0&&(n=u),o||(r=a.slice(l)+"\\"+r,o=d),n.length>0&&o))break}}return n+(o?"\\":"")+(r=v(r,!o,"\\",p))||"."},normalize:function(e){h(e,"path");var t=e.length;if(0===t)return".";var i,n,r=0,o=!1,s=e.charCodeAt(0);if(t>1)if(p(s))if(o=!0,p(e.charCodeAt(1))){for(var a=2,c=a;a2&&p(e.charCodeAt(2))&&(o=!0,r=3));else if(p(s))return"\\";return 0!==(n=r0&&p(e.charCodeAt(t-1))&&(n+="\\"),void 0===i?o?n.length>0?"\\"+n:"\\":n.length>0?n:"":o?n.length>0?i+"\\"+n:i+"\\":n.length>0?i+n:i},isAbsolute:function(e){h(e,"path");var t=e.length;if(0===t)return!1;var i=e.charCodeAt(0);return!!p(i)||!!(g(i)&&t>2&&58===e.charCodeAt(1)&&p(e.charCodeAt(2)))},join:function(){for(var e,i,n=[],r=0;r0&&(void 0===e?e=i=s:e+="\\"+s)}if(void 0===e)return".";var a=!0,c=0;if(p(i.charCodeAt(0))){++c;var l=i.length;l>1&&p(i.charCodeAt(1))&&(++c,l>2&&(p(i.charCodeAt(2))?++c:a=!1))}if(a){for(;c=2&&(e="\\"+e.slice(c))}return t.win32.normalize(e)},relative:function(e,i){if(h(e,"from"),h(i,"to"),e===i)return"";var n=t.win32.resolve(e),r=t.win32.resolve(i);if(n===r)return"";if((e=n.toLowerCase())===(i=r.toLowerCase()))return"";for(var o=0;oo&&e.charCodeAt(s-1)===u;--s);for(var a=s-o,c=0;cc&&i.charCodeAt(l-1)===u;--l);for(var d=l-c,p=ap){if(i.charCodeAt(c+g)===u)return r.slice(c+g+1);if(2===g)return r.slice(c+g)}a>p&&(e.charCodeAt(o+g)===u?f=g:2===g&&(f=3));break}var v=e.charCodeAt(o+g);if(v!==i.charCodeAt(c+g))break;v===u&&(f=g)}if(g!==p&&-1===f)return r;var m="";for(-1===f&&(f=0),g=o+f+1;g<=s;++g)g!==s&&e.charCodeAt(g)!==u||(0===m.length?m+="..":m+="\\..");return m.length>0?m+r.slice(c+f,l):(c+=f,r.charCodeAt(c)===u&&++c,r.slice(c,l))},toNamespacedPath:function(e){if("string"!=typeof e)return e;if(0===e.length)return"";var i=t.win32.resolve(e);if(i.length>=3)if(i.charCodeAt(0)===u){if(i.charCodeAt(1)===u){var n=i.charCodeAt(2);if(63!==n&&n!==c)return"\\\\?\\UNC\\"+i.slice(2)}}else if(g(i.charCodeAt(0))&&58===i.charCodeAt(1)&&i.charCodeAt(2)===u)return"\\\\?\\"+i;return e},dirname:function(e){h(e,"path");var t=e.length;if(0===t)return".";var i=-1,n=-1,r=!0,o=0,s=e.charCodeAt(0);if(t>1)if(p(s)){if(i=o=1,p(e.charCodeAt(1))){for(var a=2,c=a;a2&&p(e.charCodeAt(2))&&(i=o=3));else if(p(s))return e;for(var l=t-1;l>=o;--l)if(p(e.charCodeAt(l))){if(!r){n=l;break}}else r=!1;if(-1===n){if(-1===i)return".";n=i}return e.slice(0,n)},basename:function(e,t){void 0!==t&&h(t,"ext"),h(e,"path");var i,n=0,r=-1,o=!0;e.length>=2&&(g(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2));if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){var c=e.charCodeAt(i);if(p(c)){if(!o){n=i+1;break}}else-1===a&&(o=!1,a=i+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(p(e.charCodeAt(i))){if(!o){n=i+1;break}}else-1===r&&(o=!1,r=i+1);return-1===r?"":e.slice(n,r)},extname:function(e){h(e,"path");var t=0,i=-1,n=0,r=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&g(e.charCodeAt(0))&&(t=n=2);for(var a=e.length-1;a>=t;--a){var l=e.charCodeAt(a);if(p(l)){if(!o){n=a+1;break}}else-1===r&&(o=!1,r=a+1),l===c?-1===i?i=a:1!==s&&(s=1):-1!==i&&(s=-1)}return-1===i||-1===r||0===s||1===s&&i===r-1&&i===n+1?"":e.slice(i,r)},format:function(e){if(null===e||"object"!=typeof e)throw new d("pathObject","Object",e);return m("\\",e)},parse:function(e){h(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var i=e.length,n=0,r=e.charCodeAt(0);if(i>1){if(p(r)){if(n=1,p(e.charCodeAt(1))){for(var o=2,s=o;o2))return t.root=t.dir=e,t;if(p(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;n=3}}}else if(p(r))return t.root=t.dir=e,t;n>0&&(t.root=e.slice(0,n));for(var a=-1,l=n,u=-1,d=!0,f=e.length-1,v=0;f>=n;--f)if(p(r=e.charCodeAt(f))){if(!d){l=f+1;break}}else-1===u&&(d=!1,u=f+1),r===c?-1===a?a=f:1!==v&&(v=1):-1!==a&&(v=-1);return-1===a||-1===u||0===v||1===v&&a===u-1&&a===l+1?-1!==u&&(t.base=t.name=e.slice(l,u)):(t.name=e.slice(l,a),t.base=e.slice(l,u),t.ext=e.slice(a,u)),t.dir=l>0&&l!==n?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve:function(){for(var e=[],t=0;t=-1&&!r;o--){var s=void 0;h(s=o>=0?e[o]:i.cwd(),"path"),0!==s.length&&(n=s+"/"+n,r=s.charCodeAt(0)===l)}return n=v(n,!r,"/",f),r?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(h(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===l,i=e.charCodeAt(e.length-1)===l;return 0!==(e=v(e,!t,"/",f)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return h(e,"path"),e.length>0&&e.charCodeAt(0)===l},join:function(){for(var e,i=[],n=0;n0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":t.posix.normalize(e)},relative:function(e,i){if(h(e,"from"),h(i,"to"),e===i)return"";if((e=t.posix.resolve(e))===(i=t.posix.resolve(i)))return"";for(var n=1;nc){if(i.charCodeAt(s+d)===l)return i.slice(s+d+1);if(0===d)return i.slice(s+d)}else o>c&&(e.charCodeAt(n+d)===l?u=d:0===d&&(u=0));break}var p=e.charCodeAt(n+d);if(p!==i.charCodeAt(s+d))break;p===l&&(u=d)}var f="";for(d=n+u+1;d<=r;++d)d!==r&&e.charCodeAt(d)!==l||(0===f.length?f+="..":f+="/..");return f.length>0?f+i.slice(s+u):(s+=u,i.charCodeAt(s)===l&&++s,i.slice(s))},toNamespacedPath:function(e){return e},dirname:function(e){if(h(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===l,i=-1,n=!0,r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===l){if(!n){i=r;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename:function(e,t){void 0!==t&&h(t,"ext"),h(e,"path");var i,n=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(c===l){if(!o){n=i+1;break}}else-1===a&&(o=!1,a=i+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===l){if(!o){n=i+1;break}}else-1===r&&(o=!1,r=i+1);return-1===r?"":e.slice(n,r)},extname:function(e){h(e,"path");for(var t=-1,i=0,n=-1,r=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(a!==l)-1===n&&(r=!1,n=s+1),a===c?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){i=s+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new d("pathObject","Object",e);return m("/",e)},parse:function(e){h(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var i,n=e.charCodeAt(0)===l;n?(t.root="/",i=1):i=0;for(var r=-1,o=0,s=-1,a=!0,u=e.length-1,d=0;u>=i;--u){var p=e.charCodeAt(u);if(p!==l)-1===s&&(a=!1,s=u+1),p===c?-1===r?r=u:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){o=u+1;break}}return-1===r||-1===s||0===d||1===d&&r===s-1&&r===o+1?-1!==s&&(t.base=t.name=0===o&&n?e.slice(1,s):e.slice(o,s)):(0===o&&n?(t.name=e.slice(1,r),t.base=e.slice(1,s)):(t.name=e.slice(o,r),t.base=e.slice(o,s)),t.ext=e.slice(r,s)),o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},t.posix.win32=t.win32.win32=t.win32,t.posix.posix=t.win32.posix=t.posix,t.normalize="win32"===i.platform?t.win32.normalize:t.posix.normalize,t.isAbsolute="win32"===i.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===i.platform?t.win32.join:t.posix.join,t.resolve="win32"===i.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===i.platform?t.win32.relative:t.posix.relative,t.dirname="win32"===i.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===i.platform?t.win32.basename:t.posix.basename,t.extname="win32"===i.platform?t.win32.extname:t.posix.extname,t.format="win32"===i.platform?t.win32.format:t.posix.format,t.parse="win32"===i.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===i.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===i.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===i.platform?t.win32.delimiter:t.posix.delimiter}),define(i[311],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){var n=[],r={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return i(r)||n.push(r),i(o)||n.push(o),n}}(t.Range||(t.Range={}))}),define(i[855],n([0,1,311]),function(e,t,i){"use strict";function n(e,t){for(var n=[],r=0,o=t;r=s.range.end)){if(e.end0?(i=e.substring(0,a),e=e.substring(a)):(i=e,e=""),{remains:e,ctrl:n,shift:r,alt:o,meta:s,key:i}},e.parseSimpleKeybinding=function(e){var t=this._readModifiers(e),n=i.KeyCodeUtils.fromUserSettings(t.key);return[new i.SimpleKeybinding(t.ctrl,t.shift,t.alt,t.meta,n),t.remains]},e.parseKeybinding=function(e,t){var n;if(!e)return null;var r,o=[];do{r=(n=this.parseSimpleKeybinding(e))[0],e=n[1],o.push(r)}while(e.length>0);return new i.ChordKeybinding(o)},e.parseSimpleUserBinding=function(e){var t=this._readModifiers(e),r=t.key.match(/^\[([^\]]+)\]$/);if(r){var o=r[1],s=n.ScanCodeUtils.lowerCaseToEnum(o);return[new n.ScanCodeBinding(t.ctrl,t.shift,t.alt,t.meta,s),t.remains]}var a=i.KeyCodeUtils.fromUserSettings(t.key);return[new i.SimpleKeybinding(t.ctrl,t.shift,t.alt,t.meta,a),t.remains]},e.parseUserBinding=function(e){var t;if(!e)return[];for(var i,n=[];e.length>0;)i=(t=this.parseSimpleUserBinding(e))[0],e=t[1],n.push(i);return n},e}();t.KeybindingParser=r}),define(i[449],n([0,1,5,2]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,i,n,r,o){(e|=0)<0&&(e=0),(i|=0)+e>(t|=0)&&(i=t-e),i<0&&(i=0),(n|=0)<0&&(n=0),(o|=0)+n>(r|=0)&&(o=r-n),o<0&&(o=0),this.width=e,this.scrollWidth=t,this.scrollLeft=i,this.height=n,this.scrollHeight=r,this.scrollTop=o}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},e.prototype.withScrollDimensions=function(t){return new e(void 0!==t.width?t.width:this.width,void 0!==t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==t.height?t.height:this.height,void 0!==t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,void 0!==t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==t.scrollTop?t.scrollTop:this.scrollTop)},e.prototype.createScrollEvent=function(e){var t=this.width!==e.width,i=this.scrollWidth!==e.scrollWidth,n=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:i,scrollLeftChanged:n,heightChanged:r,scrollHeightChanged:o,scrollTopChanged:s}},e}();t.ScrollState=r;var o=function(e){function t(t,n){var o=e.call(this)||this;return o._onScroll=o._register(new i.Emitter),o.onScroll=o._onScroll.event,o._smoothScrollDuration=t,o._scheduleAtNextAnimationFrame=n,o._state=new r(0,0,0,0,0,0),o._smoothScrolling=null,o}return a(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this)},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._state},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;var n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=n}else{i=this._state.withScrollPosition(e);this._smoothScrolling=l.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())})},t.prototype._performSmoothScrolling=function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),i=this._state.withScrollPosition(t);if(this._setState(i),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())})}},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(n.Disposable);t.Scrollable=o;var s=function(){return function(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}();function c(e,t){var i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}t.SmoothScrollingUpdate=s;var l=function(){function e(e,t,i,n){this.from=e,this.to=t,this.duration=n,this._startTime=i,this.animationFrameDisposable=null,this._initAnimations()}return e.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},e.prototype._initAnimation=function(e,t,i){var n,r,o;if(Math.abs(e-t)>2.5*i){var s=void 0,a=void 0;return et?1:0}function a(e){return e>=97&&e<=122}function c(e){return e>=65&&e<=90}function l(e){return a(e)||c(e)}function u(e,t,i){if(void 0===i&&(i=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var n=0;n=t.length?e:t[n]})},t.escape=function(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})},t.escapeRegExpCharacters=n,t.trim=function(e,t){return void 0===t&&(t=" "),o(r(e,t),t)},t.ltrim=r,t.rtrim=o,t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.stripWildcards=function(e){return e.replace(/\*/g,"")},t.startsWith=function(e,t){if(e.length0?e.indexOf(t,i)===i:0===i&&e===t},t.createRegExp=function(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var r="";return i.global&&(r+="g"),i.matchCase||(r+="i"),i.multiline&&(r+="m"),i.unicode&&(r+="u"),new RegExp(e,r)},t.regExpLeadsToEndlessLoop=function(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)},t.regExpContainsBackreference=function(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)},t.regExpFlags=function(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")},t.firstNonWhitespaceIndex=function(e){for(var t=0,i=e.length;t=0;i--){var n=e.charCodeAt(i);if(32!==n&&9!==n)return i}return-1},t.compare=s,t.compareIgnoreCase=function(e,t){for(var i=Math.min(e.length,t.length),n=0;nt.length?1:0},t.isLowerAsciiLetter=a,t.isUpperAsciiLetter=c,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&u(e,t)},t.startsWithIgnoreCase=function(e,t){var i=t.length;return!(t.length>e.length)&&u(e,t,i)},t.commonPrefixLength=function(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i0;){if(d(e,r,i,t,0,n))return n;n-=1,r+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343};var h=/(?:[\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-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;t.containsRTL=function(e){return h.test(e)};var p=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;t.containsEmoji=function(e){return p.test(e)};var f=/^[\t\n\r\x20-\x7E]*$/;function g(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}t.isBasicASCII=function(e){return f.test(e)},t.containsFullWidthCharacter=function(e){for(var t=0,i=e.length;t0&&65279===e.charCodeAt(0))}t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(m,"")).replace(y,"")),e},t.removeAccents=function(){if("function"!=typeof String.prototype.normalize)return function(e){return e};var e=/[\u0300-\u036f]/g;return function(i){return i.normalize("NFD").replace(e,t.empty)}}(),t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=b,t.stripUTF8BOM=function(e){return b(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){for(var i="",n=0;n0&&i>=0);return i>=0?e.substr(0,i):e}}),define(i[184],n([0,1,9,35]),function(e,t,i,n){"use strict";var r;function o(e,t,i){if(void 0===i&&(i=!1),r){var n=e||"",o=t||"",s=r.getValue().collator.compare(n,o);return r.getValue().collatorIsNumeric&&0===s&&n!==o?no.length)return 1}return 0}t.noIntlCompareFileNames=a,t.compareFileExtensions=function(e,t){if(r){var i=c(e),n=i[0],o=i[1],s=c(t),a=s[0],l=s[1],u=r.getValue().collator.compare(o,l);if(0===u){if(r.getValue().collatorIsNumeric&&o!==l)return o\|]/g:/[\\\/]/g,a=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;function c(e){return e>=65&&e<=90||e>=97&&e<=122}t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(s.lastIndex=0,s.test(e)||i.isWindows&&a.test(e)||"."===e||".."===e||i.isWindows&&"."===e[e.length-1]||i.isWindows&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,i){var r=e===t;return!i||r?r:!(!e||!t)&&n.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,i,o){if(void 0===o&&(o=r.sep),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!n.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;var s=t.length;return t.charAt(t.length-1)===o&&s--,e.charAt(s)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)},t.isWindowsDriveLetter=c}),define(i[23],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==i.number||e.constructor!==Array)}function r(e){return typeof e===i.string||e instanceof String}function o(e){return!(typeof e!==i.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return typeof e===i.undefined}function a(e){return s(e)||null===e}t.isArray=n,t.isString=r,t.isStringArray=function(e){return n(e)&&e.every(function(e){return r(e)})},t.isObject=o,t.isNumber=function(e){return(typeof e===i.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=s,t.isUndefinedOrNull=a;var c=Object.prototype.hasOwnProperty;function l(e){return typeof e===i.function}function u(e,t){if(r(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(l(t)){try{if(e instanceof t)return}catch(e){}if(!a(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}t.isEmptyObject=function(e){if(!o(e))return!1;for(var t in e)if(c.call(e,t))return!1;return!0},t.isFunction=l,t.areFunctions=function(){for(var e=[],t=0;t0&&e.every(l)},t.validateConstraints=function(e,t){for(var i=Math.min(e.length,t.length),n=0;n0;){var i=t.shift();for(var r in Object.freeze(i),i)if(n.call(i,r)){var o=i[r];"object"!=typeof o||Object.isFrozen(o)||t.push(o)}}return e};var n=Object.prototype.hasOwnProperty;function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==n&&(i+=encodeURIComponent(e.substring(n,r)),n=-1),void 0!==i&&(i+=e.charAt(r));else{void 0===i&&(i=e.substr(0,r));var s=p[o];void 0!==s?(-1!==n&&(i+=encodeURIComponent(e.substring(n,r)),n=-1),i+=s):-1===n&&(n=r)}}return-1!==n&&(i+=encodeURIComponent(e.substring(n))),void 0!==i?i:e}function g(e){for(var t=void 0,i=0;i1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path}function m(e,t){var i=t?g:f,n="",r=e.scheme,o=e.authority,s=e.path,a=e.query,c=e.fragment;if(r&&(n+=r,n+=":"),(o||"file"===r)&&(n+=l,n+=l),o){var u=o.indexOf("@");if(-1!==u){var d=o.substr(0,u);o=o.substr(u+1),-1===(u=d.indexOf(":"))?n+=i(d,!1):(n+=i(d.substr(0,u),!1),n+=":",n+=i(d.substr(u+1),!1)),n+="@"}-1===(u=(o=o.toLowerCase()).indexOf(":"))?n+=i(o,!1):(n+=i(o.substr(0,u),!1),n+=o.substr(u))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(h=s.charCodeAt(1))>=65&&h<=90&&(s="/"+String.fromCharCode(h+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var h;(h=s.charCodeAt(0))>=65&&h<=90&&(s=String.fromCharCode(h+32)+":"+s.substr(2))}n+=i(s,!0)}return a&&(n+="?",n+=i(a,!1)),c&&(n+="#",n+=t?c:f(c,!1)),n}}),define(i[41],n([0,1,10,92]),function(e,t,i,n){"use strict";function r(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function o(e){var t=[];return e.forEach(function(e,i){return t.push(i)}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=r,t.keys=o,t.getOrSet=function(e,t,i){var n=e.get(t);return void 0===n&&(n=i,e.set(t,n)),n},t.mapToString=function(e){var t=[];return e.forEach(function(e,i){t.push(i+" => "+e)}),"Map("+e.size+") {"+t.join(", ")+"}"},t.setToString=function(e){var t=[];return e.forEach(function(e){t.push(e)}),"Set("+e.size+") {"+t.join(", ")+"}"},t.mapToSerializable=function(e){var t=[];return e.forEach(function(e,i){t.push([i,e])}),t},t.serializableToMap=function(e){for(var t=new Map,i=0,n=e;i0)i.left||(i.left=new l,i.left.segment=n.value()),i=i.left;else if(r<0)i.right||(i.right=new l,i.right.segment=n.value()),i=i.right;else{if(!n.hasNext())break;n.next(),i.mid||(i.mid=new l,i.mid.segment=n.value()),i=i.mid}}var o=i.value;return i.value=t,i.key=e,o},e.prototype.get=function(e){for(var t=this._iter.reset(e),i=this._root;i;){var n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i?i.value:void 0},e.prototype.delete=function(e){for(var t=this._iter.reset(e),i=[],n=this._root;n;){var r=t.cmp(n.segment);if(r>0)i.push([1,n]),n=n.left;else if(r<0)i.push([-1,n]),n=n.right;else{if(!t.hasNext()){for(n.value=void 0;i.length>0&&n.isEmpty();){var o=i.pop(),s=o[0],a=o[1];switch(s){case 1:a.left=void 0;break;case 0:a.mid=void 0;break;case-1:a.right=void 0}n=a}break}t.next(),i.push([0,n]),n=n.mid}}},e.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),i=this._root,n=void 0;i;){var r=t.cmp(i.segment);if(r>0)i=i.left;else if(r<0)i=i.right;else{if(!t.hasNext())break;t.next(),n=i.value||n,i=i.mid}}return i&&i.value||n},e.prototype.findSuperstr=function(e){for(var t=this._iter.reset(e),i=this._root;i;){var n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else{if(!t.hasNext())return i.mid?this._nodeIterator(i.mid):void 0;t.next(),i=i.mid}}},e.prototype._nodeIterator=function(e){var t,i,r,o=this;return{next:function(){return r||(r=[],i=0,o._forEach(e,function(e){return r.push(e)})),i>=r.length?n.FIN:(t?t.value=r[i++]:t={done:!1,value:r[i++]},t)}}},e.prototype.forEach=function(e){this._forEach(this._root,e)},e.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},e}();t.TernarySearchTree=u;var d=function(){function e(){this.map=new Map,this.ignoreCase=!1}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.has=function(e){return this.map.has(this.toKey(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.delete=function(e){return this.map.delete(this.toKey(e))},e.prototype.forEach=function(e){this.map.forEach(e)},e.prototype.values=function(){return r(this.map)},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e.prototype.keys=function(){return o(this.map).map(function(e){return i.URI.parse(e)})},e.prototype.clone=function(){var t=new e;return this.map.forEach(function(e,i){return t.map.set(i,e)}),t},e}();t.ResourceMap=d;var h=function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},e.prototype.isEmpty=function(){return!this._head&&!this._tail},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.get=function(e,t){void 0===t&&(t=0);var i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value},e.prototype.set=function(e,t,i){void 0===i&&(i=0);var n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:default:this.addItemLast(n)}this._map.set(e,n),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.shift=function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}},e.prototype.forEach=function(e,t){for(var i=this._head;i;)t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),i=i.next},e.prototype.values=function(){for(var e=[],t=this._head;t;)e.push(t.value),t=t.next;return e},e.prototype.keys=function(){for(var e=[],t=this._head;t;)e.push(t.key),t=t.next;return e},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,i=this.size;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0)}else this.clear()},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var i=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(i.previous=n,n.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;i=e.next,n=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=n,n.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e.prototype.toJSON=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),e},e.prototype.fromJSON=function(e){this.clear();for(var t=0,i=e;tthis._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(h);t.LRUCache=p}),define(i[84],n([0,1,41,9]),function(e,t,i,n){"use strict";function r(){for(var e=[],t=0;t0?[{start:0,end:t.length}]:[]:null}function s(e,t){var i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function a(e,t){return function e(t,i,n,r){if(n===t.length)return[];if(r===i.length)return null;if(t[n]===i[r]){var o=null;return(o=e(t,i,n+1,r+1))?p({start:r,end:r+1},o):null}return e(t,i,n,r+1)}(e.toLowerCase(),t.toLowerCase(),0,0)}function c(e){return 97<=e&&e<=122}function l(e){return 65<=e&&e<=90}function u(e){return 48<=e&&e<=57}function d(e){return 32===e||9===e||10===e||13===e}function h(e){return c(e)||l(e)||u(e)}function p(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function f(e,t){for(var i=t;i0&&!h(e.charCodeAt(i-1)))return i}return e.length}function g(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;var r=null,o=n+1;for(r=g(e,t,i+1,n+1);!r&&(o=f(t,o))60)return null;var i=function(e){for(var t=0,i=0,n=0,r=0,o=0,s=0;s.2&&t<.8&&n>.6&&r<.2}(i)){if(!function(e){var t=e.upperPercent;return 0===e.lowerPercent&&t>.6}(i))return null;t=t.toLowerCase()}var n=null,r=0;for(e=e.toLowerCase();r0&&d(e.charCodeAt(i-1)))return i}return e.length}Object.defineProperty(t,"__esModule",{value:!0}),t.or=r,t.matchesStrictPrefix=o.bind(void 0,!1),t.matchesPrefix=o.bind(void 0,!0),t.matchesContiguousSubString=s,t.matchesSubString=a,t.isUpper=l,t.matchesCamelCase=v,t.matchesWords=function(e,t,i){if(void 0===i&&(i=!1),!t||0===t.length)return null;var n=null,r=0;for(e=e.toLowerCase(),t=t.toLowerCase();r=0&&(c+=1,a+=Math.pow(2,d),l=d+1)}return[c,a,o]},t.createMatches=C;var w=53;function E(){for(var e=[],t=[0],i=1;i<=w;i++)t.push(-i);for(i=0;i<=w;i++){var n=t.slice(0);n[0]=-i,e.push(n)}return e}var I=E(),x=E(),D=E(),k=!1;function L(e,t,i,n,r){function o(e,t,i){for(void 0===i&&(i=" ");e.length=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function R(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function O(e,t,i){return t[e]!==i[e]}function T(e,t,i,n,r,o,s){var a=e.length>w?w:e.length,c=n.length>w?w:n.length;if(!(i>=a||o>=c||a>c)&&function(e,t,i,n,r,o){for(;t1?1:d),p=I[i-1][o]+-1,f=I[i][o-1]+-1;f>=p?f>h?(I[i][o]=f,D[i][o]=4):f===h?(I[i][o]=f,D[i][o]=6):(I[i][o]=h,D[i][o]=2):p>h?(I[i][o]=p,D[i][o]=1):p===h?(I[i][o]=p,D[i][o]=3):(I[i][o]=h,D[i][o]=2)}if(k&&(console.log(L(I,e,a,n,c)),console.log(L(D,e,a,n,c)),console.log(L(x,e,a,n,c))),P=0,N=-100,F=l,W=s,function e(t,i,n,r,o){if(P>=10||n<-25)return;var s=0;for(;t>F&&i>0;){var a=x[t][i],c=D[t][i];if(4===c)i-=1,o?n-=5:0!==r&&(n-=1),o=!1,s=0;else{if(!(2&c))return;if(4&c&&e(t,i-1,0!==r?n-1:n,r,o),n+=a,t-=1,i-=1,o=!0,r+=Math.pow(2,i),1===a){if(s+=1,t===F&&!W)return}else n+=1+s*(a-1),s=0}}n-=i>=3?9:3*i;P+=1;n>N&&(N=n,A=r)}(a,c,a===c?1:0,0,!1),0!==P)return[N,A,u]}}!function(e){e.Default=[-100,0,0],e.isDefault=function(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}}(t.FuzzyScore||(t.FuzzyScore={})),t.fuzzyScore=T;var P=0,A=0,N=0,F=0,W=!1;function B(e,t,i,n,r,o,s,a){var c=T(e,t,i,n,r,o,a);if(c&&!s)return c;if(e.length>=3)for(var l=Math.min(7,e.length-1),u=i+1;uc[0])&&(c=h))}}return c}function V(e,t){if(!(t+1>=e.length)){var i=e[t],n=e[t+1];if(i!==n)return e.slice(0,t)+n+i+e.slice(t+2)}}t.fuzzyScoreGracefulAggressive=function(e,t,i,n,r,o,s){return B(e,t,i,n,r,o,!0,s)},t.fuzzyScoreGraceful=function(e,t,i,n,r,o,s){return B(e,t,i,n,r,o,!1,s)}}),define(i[119],n([0,1,17,9,124,35,41,13]),function(e,t,i,n,r,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};var c="**",l="/",u="[/\\\\]",d="[^/\\\\]",h=/\//g;function p(e){switch(e){case 0:return"";case 1:return d+"*?";default:return"(?:"+u+"|"+d+"+"+u+"|"+u+d+"+)*?"}}function f(e,t){if(!e)return[];for(var i=[],n=!1,r=!1,o="",s=0,a=e;s0;i--){var o=e.charCodeAt(i-1);if(47===o||92===o)break}t=e.substr(i)}var s=r.indexOf(t);return-1!==s?n[s]:null};a.basenames=r,a.patterns=n,a.allBasenames=r;var c=e.filter(function(e){return!e.basenames});return c.push(a),c}t.match=function(e,t,i){return!(!e||"string"!=typeof t)&&k(e)(t,void 0,i)},t.parse=k,t.hasSiblingPromiseFn=function(e){var t;if(e)return function(i){return t||(t=(e()||Promise.resolve([])).then(function(e){return e?L(e):{}})),t.then(function(e){return!!e[i]})}},t.hasSiblingFn=function(e){var t;if(e)return function(i){if(!t){var n=e();t=n?L(n):{}}return!!t[i]}},t.isRelativePattern=M,t.parseToAsync=function(e,t){var i=k(e,t);return function(e,t,n){var r=i(e,t,n);return a.isThenable(r)?r:Promise.resolve(r)}},t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(i[243],n([0,1,10,9]),function(e,t,i,n){"use strict";function r(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:n.regExpFlags(t)}:t}function o(e,t){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return i.URI.revive(e);case 2:return new RegExp(e.source,e.flags)}for(var n in e)Object.hasOwnProperty.call(e,n)&&(e[n]=o(e[n],t+1))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e){return JSON.stringify(e,r)},t.parse=function(e){var t=JSON.parse(e);return t=o(t,0)},t.revive=o}),define(i[176],n([0,1,7,135,9,114,945,11,10,243,25]),function(e,t,i,n,r,o,s,a,c,l,u){"use strict";function d(e){var t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}Object.defineProperty(t,"__esModule",{value:!0}),t.renderText=function(e,t){void 0===t&&(t={});var i=d(t);return i.textContent=e,i},t.renderFormattedText=function(e,t){void 0===t&&(t={});var n=d(t);return function e(t,n,r){var o;if(2===n.type)o=document.createTextNode(n.content||"");else if(3===n.type)o=document.createElement("b");else if(4===n.type)o=document.createElement("i");else if(5===n.type&&r){var s=document.createElement("a");s.href="#",r.disposeables.push(i.addStandardDisposableListener(s,"click",function(e){r.callback(String(n.index),e)})),o=s}else 7===n.type?o=document.createElement("br"):1===n.type&&(o=t);o&&t!==o&&t.appendChild(o),o&&Array.isArray(n.children)&&n.children.forEach(function(t){e(o,t,r)})}(n,function(e){for(var t={type:1,children:[]},i=0,n=t,r=[],o=new h(e);!o.eos();){var s=o.next(),a="\\"===s&&0!==p(o.peek());if(a&&(s=o.next()),a||0===p(s)||s!==o.peek())if("\n"===s)2===n.type&&(n=r.pop()),n.children.push({type:7});else if(2!==n.type){var c={type:2,content:s};n.children.push(c),r.push(n),n=c}else n.content+=s;else{o.advance(),2===n.type&&(n=r.pop());var l=p(s);if(n.type===l||5===n.type&&6===l)n=r.pop();else{var u={type:l,children:[]};5===l&&(u.index=i,i++),n.children.push(u),r.push(n),n=u}}}return 2===n.type&&(n=r.pop()),r.length,t}(e),t.actionHandler),n},t.renderMarkdown=function(e,t){void 0===t&&(t={});var h,p=d(t),f=function(t){var i;try{i=l.parse(decodeURIComponent(t))}catch(e){}return i?(i=u.cloneAndChange(i,function(t){return e.uris&&e.uris[t]?c.URI.revive(e.uris[t]):void 0}),encodeURIComponent(JSON.stringify(i))):t},g=function(t){var i=e.uris&&e.uris[t];if(!i)return t;var n=c.URI.revive(i);return n.query&&(n=n.with({query:f(n.query)})),i&&(t=n.toString(!0)),t},v=new Promise(function(e){return h=e}),m=new s.Renderer;m.image=function(e,t,i){var n=[];if(e=g(e)){var r=e.split("|").map(function(e){return e.trim()});e=r[0];var o=r[1];if(o){var s=/height=(\d+)/.exec(o),a=/width=(\d+)/.exec(o),c=s?s[1]:"",l=a?a[1]:"",u=isFinite(parseInt(l)),d=isFinite(parseInt(c));u&&n.push('width="'+l+'"'),d&&n.push('height="'+c+'"')}}var h=[];return e&&h.push('src="'+e+'"'),i&&h.push('alt="'+i+'"'),t&&h.push('title="'+t+'"'),n.length&&(h=h.concat(n)),""},m.link=function(t,i,n){return t===n&&(n=o.removeMarkdownEscapes(n)),t=g(t),i=o.removeMarkdownEscapes(i),!(t=o.removeMarkdownEscapes(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?n:'
    /g,">").replace(/"/g,""").replace(/'/g,"'"))+'" title="'+(i||t)+'">'+n+""},m.paragraph=function(e){return"

    "+e+"

    "},t.codeBlockRenderer&&(m.code=function(e,i){var o=t.codeBlockRenderer(i,e),s=n.defaultGenerator.nextId(),a=Promise.all([o,v]).then(function(e){var t=e[0],i=p.querySelector('div[data-code="'+s+'"]');i&&(i.innerHTML=t)}).catch(function(e){});return t.codeBlockRenderCallback&&a.then(t.codeBlockRenderCallback),'
    '+r.escape(e)+"
    "}),t.actionHandler&&t.actionHandler.disposeables.push(i.addStandardDisposableListener(p,"click",function(e){var i=e.target;if("A"===i.tagName||(i=i.parentElement)&&"A"===i.tagName)try{var n=i.dataset.href;n&&t.actionHandler.callback(n,e)}catch(e){a.onUnexpectedError(e)}finally{e.preventDefault()}}));var y={sanitize:!0,renderer:m};return p.innerHTML=s.parse(e.value,y),h(),p};var h=function(){function e(e){this.source=e,this.index=0}return e.prototype.eos=function(){return this.index>=this.source.length},e.prototype.next=function(){var e=this.peek();return this.advance(),e},e.prototype.peek=function(){return this.source[this.index]},e.prototype.advance=function(){this.index++},e}();function p(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}}),define(i[131],n([0,1,35,9,17,119]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIME_TEXT="text/plain",t.MIME_BINARY="application/octet-stream",t.MIME_UNKNOWN="application/unknown";var s=[],a=[],c=[];function l(e,t,i){for(var r=null,s=null,a=null,c=i.length-1;c>=0;c--){var l=i[c];if(t===l.filenameLowercase){r=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){var u=l.filepatternOnPath?e:t;o.match(l.filepatternLowercase,u)&&(s=l)}l.extension&&(!a||l.extension.length>a.extension.length)&&n.endsWith(t,l.extensionLowercase)&&(a=l)}return r?r.mime:s?s.mime:a?a.mime:null}t.registerTextMime=function(e,t){void 0===t&&(t=!1);var n=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(i.posix.sep)>=0}}(e);s.push(n),n.userConfigured?c.push(n):a.push(n),t&&!n.userConfigured&&s.forEach(function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))})},t.clearTextMimes=function(e){e?(s=s.filter(function(e){return!e.userConfigured}),c=[]):(s=[],a=[],c=[])},t.guessMimeTypes=function(e,r){if(!e)return[t.MIME_UNKNOWN];e=e.toLowerCase();var o=i.basename(e),u=l(e,o,c);if(u)return[u,t.MIME_TEXT];var d=l(e,o,a);if(d)return[d,t.MIME_TEXT];if(r){var h=function(e){if(n.startsWithUTF8BOM(e)&&(e=e.substr(1)),e.length>0)for(var t=0,i=s;t0)return r.mime}}return null}(r);if(h)return[h,t.MIME_TEXT]}return[t.MIME_UNKNOWN]},t.isUnspecific=function e(i){return!i||("string"==typeof i?i===t.MIME_BINARY||i===t.MIME_TEXT||i===t.MIME_UNKNOWN:1===i.length&&e(i[0]))},t.suggestFilename=function(e,t){var i=s.filter(function(t){return!t.userConfigured&&t.extension&&t.id===e}).map(function(e){return e.extension}),o=r.coalesce(i).filter(function(e){return n.startsWith(e,".")});return o.length>0?t+o[0]:i[0]||t};var u={".bmp":"image/bmp",".gif":"image/gif",".jpg":"image/jpg",".jpeg":"image/jpg",".jpe":"image/jpg",".png":"image/png",".tiff":"image/tiff",".tif":"image/tiff",".ico":"image/x-icon",".tga":"image/x-tga",".psd":"image/vnd.adobe.photoshop",".webp":"image/webp",".mid":"audio/midi",".midi":"audio/midi",".mp4a":"audio/mp4",".mpga":"audio/mpeg",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",".mp3":"audio/mpeg",".m2a":"audio/mpeg",".m3a":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".spx":"audio/ogg",".aac":"audio/x-aac",".wav":"audio/x-wav",".wma":"audio/x-ms-wma",".mp4":"video/mp4",".mp4v":"video/mp4",".mpg4":"video/mp4",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpe":"video/mpeg",".m1v":"video/mpeg",".m2v":"video/mpeg",".ogv":"video/ogg",".qt":"video/quicktime",".mov":"video/quicktime",".webm":"video/webm",".mkv":"video/x-matroska",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".avi":"video/x-msvideo",".movie":"video/x-sgi-movie"};t.getMediaMime=function(e){var t=i.extname(e);return u[t.toLowerCase()]}}),define(i[955],n([0,1,41]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canNormalize="function"==typeof"".normalize;var n=new i.LRUCache(1e4);t.normalizeNFC=function(e){return s(e,"NFC",n)};var r=new i.LRUCache(1e4);t.normalizeNFD=function(e){return s(e,"NFD",r)};var o=/[^\u0000-\u0080]/;function s(e,i,n){if(!t.canNormalize||!e)return e;var r,s=n.get(e);return s||(r=o.test(e)?e.normalize(i):e,n.set(e,r),r)}}),define(i[984],n([0,1,84,9]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="$(";t.parseOcticons=function(e){var t=e.indexOf(r);return-1===t?{text:e}:function(e,t){var i=[],n="";function o(e){if(e){n+=e;for(var t=0,r=e;t1&&"file"===e.scheme?"//"+e.authority+n:u&&47===n.charCodeAt(0)&&i.isWindowsDriveLetter(n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,u&&(t=t.replace(/\//g,"\\")),t}function v(e){if(e.scheme===s.Schemas.file){var t=g(e);return t.length>i.getRoot(t).length&&t[t.length-1]===n.sep}var r=e.path;return r.length>1&&47===r.charCodeAt(r.length-1)}function m(e,t){if(e.scheme===t.scheme&&p(e.authority,t.authority)){if(e.scheme===s.Schemas.file){var r=n.relative(e.path,t.path);return u?i.toSlashes(r):r}return n.posix.relative(e.path||"/",t.path||"/")}}t.getComparisonKey=function(e){return d(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=d,t.basenameOrAuthority=function(e){return f(e)||e.authority},t.isEqualOrParent=h,t.isEqualAuthority=p,t.isEqual=function(e,t,i){if(void 0===i&&(i=d(e)),e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!p(e.authority,t.authority))return!1;var n=e.path||"/",r=t.path||"/";return n===r||i&&o.equalsIgnoreCase(n||"/",r||"/")},t.basename=f,t.extname=function(e){return n.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===s.Schemas.file)return r.URI.file(n.dirname(g(e)));var t=n.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error('dirname("'+e.toString+")) resulted in a relative path"),t="/"),e.with({path:t})},t.joinPath=function(e){for(var t,i,o=[],a=1;a1,f=void 0;if(f=a.isEqual(h.uri,e)?"":n.normalize(r.ltrim(e.path.substr(h.uri.path.length),n.posix.sep)),p){var g=h&&h.name?h.name:a.basename(h.uri);f=f?g+" • "+f:g}return f}}if(e.scheme!==o.Schemas.file&&e.scheme!==o.Schemas.untitled)return e.with({query:null,fragment:null}).toString(!0);if(c(e.fsPath))return n.normalize(l(e.fsPath));var v=n.normalize(e.fsPath);return!s.isWindows&&t&&(v=d(v,t.userHome)),v},t.getBaseLabel=function(e){if(e){"string"==typeof e&&(e=i.URI.file(e));var t=a.basename(e)||(e.scheme===o.Schemas.file?e.fsPath:e.path);return c(t)?l(t):t}},t.normalizeDriveLetter=l;var u=Object.create(null);function d(e,t){if(s.isWindows||!e||!t)return e;var i=u.original===t?u.normalized:void 0;return i||(i=""+r.rtrim(t,n.posix.sep)+n.posix.sep,u={original:t,normalized:i}),(s.isLinux?r.startsWith(e,i):r.startsWithIgnoreCase(e,i))&&(e="~/"+e.substr(i.length)),e}t.tildify=d,t.untildify=function(e,t){return e.replace(/^~($|\/|\\)/,t+"$1")};var h,p="…",f="\\\\",g="~";t.shorten=function(e){for(var t=new Array(e.length),i=!1,o=0;o=0;u--){i=!1;for(var d=c.slice(u,u+l).join(n.sep),h=0;!i&&h-1){var v=u+l===c.length,m=u>0&&e[h].indexOf(n.sep)>-1?n.sep+d:d,y=r.endsWith(e[h],m);i=!v||y}if(!i){var b="";(r.endsWith(c[0],":")||""!==a)&&(1===u&&(u=0,l++,d=c[0]+n.sep+d),u>0&&(b=c[0]+n.sep),b=a+b),u>0&&(b=b+p+n.sep),b+=d,u+l0})}).map(function(e){return e.value}).join("")};var v=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),m=/firefox/i.test(navigator.userAgent);t.mnemonicMenuLabel=function(e,t){return!s.isWeb&&s.isMacintosh||t||v||m?e.replace(/\(&&\w\)|&&/g,"").replace(/&/g,s.isMacintosh?"&":"&&"):e.replace(/&&|&/g,function(e){return"&"===e?"&&":"&"})},t.mnemonicButtonLabel=function(e){return!s.isWeb&&s.isMacintosh?e.replace(/\(&&\w\)|&&/g,""):s.isWindows?e.replace(/&&|&/g,function(e){return"&"===e?"&&":"&"}):e.replace(/&&/g,"_")},t.unmnemonicLabel=function(e){return e.replace(/&/g,"&&")}}),define(i[661],n([0,1,10]),function(e,t,i){"use strict";function n(e,t,r,o){if(!e||o>200)return null;if("object"==typeof e){if(1===e.$mid)return r?i.URI.revive(t.transformIncoming(e)):t.transformIncoming(e);for(var s in e)if(Object.hasOwnProperty.call(e,s)){var a=n(e[s],t,r,o+1);null!==a&&(e[s]=a)}}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultURITransformer=new(function(){function e(){}return e.prototype.transformIncoming=function(e){return e},e.prototype.transformOutgoing=function(e){return e},e.prototype.transformOutgoingURI=function(e){return e},e}()),t.transformOutgoingURIs=function(e,t){var n=function e(t,n,r){if(!t||r>200)return null;if("object"==typeof t){if(t instanceof i.URI)return n.transformOutgoing(t);for(var o in t)if(Object.hasOwnProperty.call(t,o)){var s=e(t[o],n,r+1);null!==s&&(t[o]=s)}}return null}(e,t,0);return null===n?e:n},t.transformIncomingURIs=function(e,t){var i=n(e,t,!1,0);return null===i?e:i},t.transformAndReviveIncomingURIs=function(e,t){var i=n(e,t,!0,0);return null===i?e:i}}),define(i[309],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._value=e}return e.prototype.asHex=function(){return this._value},e}(),n=function(e){function t(){return e.call(this,[t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-","4",t._randomHex(),t._randomHex(),t._randomHex(),"-",t._oneOf(t._timeHighBits),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex()].join(""))||this}return a(t,e),t._oneOf=function(e){return e[Math.floor(e.length*Math.random())]},t._randomHex=function(){return t._oneOf(t._chars)},t._chars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t._timeHighBits=["8","9","a","b"],t}(i);function r(){return new n}t.v4=r;var o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return o.test(e)}t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new i(e)},t.generateUuid=function(){return r().asHex()}}),define(i[323],n([0,1,11,2,12,23]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s="$initialize",c=!1;t.logOnceWebWorkerWarning=function(e){r.isWeb&&(c||(c=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(e.message))};var l=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,t){var i=this,n=String(++this._lastSentReq);return new Promise(function(r,o){i._pendingReplies[n]={resolve:r,reject:o},i._send({vsWorker:i._workerId,req:n,method:e,args:t})})},e.prototype.handleMessage=function(e){var t;try{t=JSON.parse(e)}catch(e){return}t&&t.vsWorker&&(-1!==this._workerId&&t.vsWorker!==this._workerId||this._handleMessage(t))},e.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return void console.warn("Got reply to unknown seq");var r=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var o=n.err;return n.err.$isError&&((o=new Error).name=n.err.name,o.message=n.err.message,o.stack=n.err.stack),void r.reject(o)}r.resolve(n.res)}else{var s=e,a=s.req;this._handler.handleMessage(s.method,s.args).then(function(e){t._send({vsWorker:t._workerId,seq:a,res:e,err:void 0})},function(e){e.detail instanceof Error&&(e.detail=i.transformErrorForSerialization(e.detail)),t._send({vsWorker:t._workerId,seq:a,res:void 0,err:i.transformErrorForSerialization(e)})})}},e.prototype._send=function(e){var t=JSON.stringify(e);this._handler.sendMessage(t)},e}(),u=function(e){function t(t,i){var n=e.call(this)||this,r=null;n._worker=n._register(t.create("vs/base/common/worker/simpleWorker",function(e){n._protocol.handleMessage(e)},function(e){r&&r(e)})),n._protocol=new l({sendMessage:function(e){n._worker.postMessage(e)},handleMessage:function(e,t){return Promise.resolve(null)}}),n._protocol.setWorkerId(n._worker.getId());var o=null;void 0!==self.require&&"function"==typeof self.require.getConfig?o=self.require.getConfig():void 0!==self.requirejs&&(o=self.requirejs.s.contexts._.config),n._onModuleLoaded=n._protocol.sendMessage(s,[n._worker.getId(),i,o]),n._lazyProxy=new Promise(function(e,t){r=t,n._onModuleLoaded.then(function(t){for(var i={},n=0,r=t;n1,"Need at least one error handler and one function to process sequence"),e.forEach(function(e){i.ok("function"==typeof e)});var t=e.splice(0,1)[0],r=null;n(e,function(e,t){try{e.call(function(e,i){!0!==e&&!1!==e||(i=e,e=null),e?t(e,null):(r=i,t(null,null))},r)}catch(e){t(e,null)}},function(e,i){e&&t(e)})}(Array.isArray(e)?e:Array.prototype.slice.call(arguments))}}),define(i[156],n([0,1,143,35,13,955,12,9,309,170,373,2]),function(e,t,i,n,r,o,s,a,c,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=u.loop;function p(e){return s.isMacintosh?i.readdirSync(e).map(function(e){return o.normalizeNFC(e)}):i.readdirSync(e)}function f(e,t){return s.isMacintosh?i.readdir(e,function(e,i){return e?t(e,[]):t(null,i.map(function(e){return o.normalizeNFC(e)}))}):i.readdir(e,t)}function g(e,t,r,o){var s=o||Object.create(null);i.stat(e,function(o,a){if(o)return r(o);if(!a.isDirectory())return function(e,t,n,r){var o=i.createReadStream(e),s=i.createWriteStream(t,{mode:n}),a=!1,c=function(e){a||(a=!0,e?r(e):i.chmod(t,n,r))};o.once("error",function(e){return c(e)}),s.once("error",function(e){return c(e)}),s.once("close",function(){return c()}),o.pipe(s)}(e,t,511&a.mode,r);if(s[e])return r(null);s[e]=!0;var c=function(){f(e,function(i,o){h(o,function(i,r){g(n.join(e,i),n.join(t,i),function(e){return r(e,[])},s)},r)})};v(t,511&a.mode).then(c,c)})}function v(e,t,o){var s=function(){return r.nfcall(i.mkdir,e,t).then(void 0,function(t){return"ENOENT"===t.code?Promise.reject(t):r.nfcall(i.stat,e).then(function(t){return t.isDirectory()?null:Promise.reject(new Error("'"+e+"' exists and is not a directory."))},function(e){return Promise.reject(t)})})};return e===n.dirname(e)?Promise.resolve(!0):s().then(void 0,function(i){return o&&o.isCancellationRequested?Promise.resolve(!1):"ENOENT"===i.code?v(n.dirname(e),t).then(s):Promise.reject(i)})}function m(e,t){if(e===n.win32.sep||e===n.posix.sep)return t(new Error("Will not delete root!"));i.exists(e,function(r){r?i.lstat(e,function(r,o){if(r||!o)t(r);else if(!o.isDirectory()||o.isSymbolicLink()){var s=o.mode;128&s?i.unlink(e,t):i.chmod(e,128|s,function(n){n?t(n):i.unlink(e,t)})}else f(e,function(r,o){if(r||!o)t(r);else if(0===o.length)i.rmdir(e,t);else{var s=null,a=o.length;o.forEach(function(r){m(n.join(e,r),function(n){n&&(s=s||n),0===--a&&(s?t(s):i.rmdir(e,t))})})}})}):t(null)})}t.readdirSync=p,t.readdir=f,t.statLink=function(e,t){i.lstat(e,function(n,r){n||r.isSymbolicLink()?i.stat(e,function(e,i){if(e)return t(e,null);t(null,{stat:i,isSymbolicLink:r&&r.isSymbolicLink()})}):t(null,{stat:r,isSymbolicLink:!1})})},t.copy=g,t.mkdirp=v,t.del=function(e,t,r,o){i.exists(e,function(s){if(!s)return r(null);i.stat(e,function(s,l){if(s||!l)return r(s);if("."===e[e.length-1]||a.endsWith(e,"./")||a.endsWith(e,".\\"))return m(e,r);var u=n.join(t,c.generateUuid());i.rename(e,u,function(t){if(t)return m(e,r);r(null),m(u,function(e){e&&console.error(e),o&&o(e)})})})})},t.delSync=function e(t){if(t===n.win32.sep||t===n.posix.sep)throw new Error("Will not delete root!");try{var r=i.lstatSync(t);r.isDirectory()&&!r.isSymbolicLink()?(p(t).forEach(function(i){return e(n.join(t,i))}),i.rmdirSync(t)):i.unlinkSync(t)}catch(e){if("ENOENT"===e.code)return;throw e}},t.mv=function(e,t,n){if(e===t)return n(null);function r(e){if(e)return n(e);i.stat(t,function(e,r){return e?n(e):r.isDirectory()?n(null):void i.open(t,"a",null,function(e,t){if(e)return n(e);i.futimes(t,r.atime,new Date,function(e){if(e)return n(e);i.close(t,n)})})})}i.rename(e,t,function(i){return i?i&&e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===i.code||a.endsWith(e,".")?g(e,t,function(t){if(t)return n(t);m(e,r)}):n(i):r(null)})};var y=!0;function b(e){if(!e)return{mode:438,flag:"w"};var t={mode:e.mode,flag:e.flag,encoding:e.encoding};return"number"!=typeof t.mode&&(t.mode=438),"string"!=typeof t.flag&&(t.flag="w"),t}function _(e){return a.rtrim(n.normalize(e),n.sep)}t.writeFileAndFlush=function(e,t,n,r){n=b(n),"string"==typeof t||Buffer.isBuffer(t)?function(e,t,n,r){if(n.encoding&&(t=l.encode(t,n.encoding.charset,{addBOM:n.encoding.addBOM})),!y)return i.writeFile(e,t,{mode:n.mode,flag:n.flag},r);i.open(e,"string"==typeof n.flag?n.flag:"r",n.mode,function(n,o){if(n)return r(n);i.writeFile(e,t,function(e){if(e)return i.close(o,function(){return r(e)});i.fdatasync(o,function(e){return e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),y=!1),i.close(o,function(e){return r(e)})})})})}(e,t,n,r):function(e,t,n,r){var o,s,a=!1,c=function(e){a||(a=!0,e?s?(u.once("close",function(){return r(e)}),u.destroy()):r(e):r())},u=i.createWriteStream(e,{mode:n.mode,flags:n.flag,autoClose:!1});u.once("open",function(e){o=e,s=!0,n.encoding&&(t=t.pipe(l.encodeStream(n.encoding.charset,{addBOM:n.encoding.addBOM}))),t.pipe(u)}),t.once("error",function(e){return c(e)}),u.once("error",function(e){return c(e)}),u.once("finish",function(){y&&s?i.fdatasync(o,function(e){e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),y=!1),u.destroy()}):u.destroy()}),u.once("close",function(){return c()})}(e,t,n,r)},t.writeFileAndFlushSync=function(e,t,n){if((n=b(n)).encoding&&(t=l.encode(t,n.encoding.charset,{addBOM:n.encoding.addBOM})),!y)return i.writeFileSync(e,t,{mode:n.mode,flag:n.flag});var r=i.openSync(e,"string"==typeof n.flag?n.flag:"r",n.mode);try{i.writeFileSync(r,t);try{i.fdatasyncSync(r)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),y=!1}}finally{i.closeSync(r)}},t.realcaseSync=function e(t){var i=n.dirname(t);if(t===i)return t;var r=(n.basename(t)||t).toLowerCase();try{var o=p(i).filter(function(e){return e.toLowerCase()===r});if(1===o.length){if(s=e(i))return n.join(s,o[0])}else if(o.length>1){var s,a=o.indexOf(r);if(a>=0&&(s=e(i)))return n.join(s,o[a])}}catch(e){}return null},t.realpathSync=function(e){try{return i.realpathSync(e)}catch(n){var t=_(e);return i.accessSync(t,i.constants.R_OK),t}},t.realpath=function(e,t){return i.realpath(e,function(n,r){if(!n)return t(null,r);var o=_(e);return i.access(o,i.constants.R_OK,function(e){return t(e,o)})})},t.watch=function(e,t,n){try{var r=i.watch(e);return r.on("change",function(e,i){var n=null;i&&(n=i.toString(),s.isMacintosh&&(n=o.normalizeNFC(n))),t(e,n)}),r.on("error",function(t,i){return n("Failed to watch "+e+" for changes ("+t+", "+i+")")}),{dispose:function(){r.close()}}}catch(t){i.exists(e,function(i){i&&n("Failed to watch "+e+" for changes ("+t.toString()+")")})}return d.Disposable.None},t.sanitizeFilePath=function(e,t){return s.isWindows&&a.endsWith(e,":")&&(e+=n.sep),n.isAbsolute(e)||(e=n.join(t,e)),e=n.normalize(e),s.isWindows?(e=a.rtrim(e,n.sep),a.endsWith(e,":")&&(e+=n.sep)):(e=a.rtrim(e,n.sep))||(e=n.sep),e}}),define(i[398],n([0,1,143,35,25,2,5,83,156,12]),function(e,t,i,n,r,o,s,a,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){void 0===t&&(t={defaultConfig:Object.create(null),onError:function(e){return console.error(e)}}),this._path=e,this.options=t,this.disposables=[],this.configName=n.basename(this._path),this._onDidUpdateConfiguration=new s.Emitter,this.disposables.push(this._onDidUpdateConfiguration),this.registerWatcher(),this.initAsync()}return Object.defineProperty(e.prototype,"path",{get:function(){return this._path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasParseErrors",{get:function(){return this.parseErrors&&this.parseErrors.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidUpdateConfiguration",{get:function(){return this._onDidUpdateConfiguration.event},enumerable:!0,configurable:!0}),e.prototype.initAsync=function(){var e=this;this.loadAsync(function(t){e.loaded||e.updateCache(t),e.options.initCallback&&e.options.initCallback(e.getConfig())})},e.prototype.updateCache=function(e){this.cache=e,this.loaded=!0},e.prototype.loadSync=function(){try{return this.parse(i.readFileSync(this._path).toString())}catch(e){return this.options.defaultConfig}},e.prototype.loadAsync=function(e){var t=this;i.readFile(this._path,function(i,n){return e(i?t.options.defaultConfig:t.parse(n.toString()))})},e.prototype.parse=function(e){try{return this.parseErrors=[],(this.options.parse?this.options.parse(e,this.parseErrors):a.parse(e,this.parseErrors))||this.options.defaultConfig}catch(e){return this.options.defaultConfig}},e.prototype.registerWatcher=function(){var e=this,t=n.dirname(this._path);this.watch(t,!0),i.lstat(this._path,function(t,n){t||n.isDirectory()||n.isSymbolicLink()&&i.readlink(e._path,function(t,i){t||e.watch(i,!1)})})},e.prototype.watch=function(e,t){var i=this;this.disposed||this.disposables.push(c.watch(e,function(e,n){return i.onConfigFileChange(e,n,t)},function(e){return i.options.onError(e)}))},e.prototype.onConfigFileChange=function(e,t,i){var r=this;i&&(l.isWindows&&t&&t!==this.configName&&(t=n.basename(t)),t!==this.configName)||(this.timeoutHandle&&(global.clearTimeout(this.timeoutHandle),this.timeoutHandle=null),this.timeoutHandle=global.setTimeout(function(){return r.reload()},this.options.changeBufferDelay||0))},e.prototype.reload=function(e){var t=this;this.loadAsync(function(i){if(r.equals(i,t.cache)||(t.updateCache(i),t._onDidUpdateConfiguration.fire({config:t.cache})),e)return e(i)})},e.prototype.getConfig=function(){return this.ensureLoaded(),this.cache},e.prototype.ensureLoaded=function(){this.loaded||this.updateCache(this.loadSync())},e.prototype.dispose=function(){this.disposed=!0,this.disposables=o.dispose(this.disposables)},e}();t.ConfigWatcher=u}),define(i[132],n([0,1,156,35,13,143,246,12,5]),function(e,t,i,n,r,o,s,a,c){"use strict";function l(e){return r.nfcall(i.readdir,e)}function u(e){return r.nfcall(o.stat,e)}function d(e){return r.nfcall(o.lstat,e)}function h(e){return r.nfcall(o.rmdir,e)}function p(e){return r.nfcall(o.unlink,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=l,t.exists=function(e){return new Promise(function(t){return o.exists(e,t)})},t.chmod=function(e,t){return r.nfcall(o.chmod,e,t)},t.mkdirp=i.mkdirp,t.rimraf=function e(t){return d(t).then(function(i){return i.isDirectory()&&!i.isSymbolicLink()?l(t).then(function(i){return Promise.all(i.map(function(i){return e(n.join(t,i))}))}).then(function(){return h(t)}):p(t)},function(e){if("ENOENT"!==e.code)return Promise.reject(e)})},t.realpath=function(e){return r.nfcall(i.realpath,e)},t.stat=u,t.statLink=function(e){return r.nfcall(i.statLink,e)},t.lstat=d,t.rename=function(e,t){return r.nfcall(o.rename,e,t)},t.renameIgnoreError=function(e,t){return new Promise(function(i){o.rename(e,t,function(){return i()})})},t.rmdir=h,t.unlink=p,t.symlink=function(e,t,i){return r.nfcall(o.symlink,e,t,i)},t.readlink=function(e){return r.nfcall(o.readlink,e)},t.truncate=function(e,t){return r.nfcall(o.truncate,e,t)},t.readFile=function(e,t){return r.nfcall(o.readFile,e,t)};var f=Object.create(null);function g(e){return u(e).then(function(e){return e.isDirectory()},function(){return!1})}t.writeFile=function(e,t,n){return function(e){var t=f[e];if(!t){t=new r.Queue,f[e]=t;var i=c.Event.once(t.onFinished);i(function(){delete f[e],t.dispose()})}return t}(function(e){var t=e;return(a.isWindows||a.isMacintosh)&&(t=t.toLowerCase()),t}(e)).queue(function(){return r.nfcall(i.writeFileAndFlush,e,t,n)})},t.readDirsInDir=function(e){return l(e).then(function(t){return Promise.all(t.map(function(t){return g(n.join(e,t))})).then(function(e){return t.filter(function(t,i){return e[i]})})})},t.dirExists=g,t.fileExists=function(e){return u(e).then(function(e){return e.isFile()},function(){return!1})};var v=null;t.del=function(e,t){return void 0===t&&(v||(v=s.tmpdir()),t=v),r.nfcall(i.del,e,t)},t.whenDeleted=function(e){return new Promise(function(t){var i=!1,n=setInterval(function(){i||(i=!0,o.exists(e,function(e){i=!1,e||(clearInterval(n),t(void 0))}))},1e3)})},t.copy=function(e,t){return r.nfcall(i.copy,e,t)}}),define(i[959],n([0,1,426]),function(e,t,i){"use strict";function n(e){try{e.removeAllListeners("connect"),e.removeAllListeners("error"),e.end(),e.destroy(),e.unref()}catch(e){console.error(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.randomPort=function(){return 1025+Math.floor(64510*Math.random())},t.findFreePort=function(e,t,r){var o=!1;return new Promise(function(s){var a=setTimeout(function(){if(!o)return o=!0,s(0)},r);!function e(t,r,o){if(0===r)return o(0);var s=new i.Socket;s.once("connect",function(){return n(s),e(t+1,r-1,o)}),s.once("data",function(){}),s.once("error",function(i){return n(s),"ECONNREFUSED"!==i.code?e(t+1,r-1,o):o(t)}),s.connect(t,"127.0.0.1")}(e,t,function(e){if(!o)return o=!0,clearTimeout(a),s(e)})})}}),define(i[429],n([0,1,143]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readExactlyByFile=function(e,t){return new Promise(function(n,r){i.open(e,"r",null,function(e,o){if(e)return r(e);function s(e,t,s){i.close(o,function(i){return i?r(i):e&&"EISDIR"===e.code?r(e):n({buffer:t,bytesRead:s})})}var a=Buffer.allocUnsafe(t),c=0;!function e(){i.read(o,a,c,t-c,null,function(i,n){return i?s(i,null,0):0===n?s(null,a,c):(c+=n)===t?s(null,a,c):e()})}()})})},t.readToMatchingString=function(e,t,n,r){return new Promise(function(o,s){return i.open(e,"r",null,function(a,c){if(a)return s(a);function l(e,t){i.close(c,function(i){return i?s(i):e&&"EISDIR"===e.code?s(e):o(t)})}var u=Buffer.allocUnsafe(r),d=0;!function o(){i.read(c,u,d,n,null,function(i,n){if(i)return l(i,null);if(0===n)return l(null,null);d+=n;var s=u.indexOf(t);return s>=0?l(null,u.toString("utf8").substr(0,s)):d>=r?l(new Error("Could not find "+t+" in first "+r+" bytes of "+e),null):o()})}()})})}}),define(i[196],n([0,1,2,5,13,36,11]),function(e,t,i,n,s,a,c){"use strict";var l;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(l||(l={}));var u,d=function(){function e(e){this.buffer=e,this.pos=0}return e.prototype.read=function(e){var t=this.buffer.slice(this.pos,this.pos+e);return this.pos+=t.length,t},e}(),h=function(){function e(){this.buffers=[]}return Object.defineProperty(e.prototype,"buffer",{get:function(){return Buffer.concat(this.buffers)},enumerable:!0,configurable:!0}),e.prototype.write=function(e){this.buffers.push(e)},e}();function p(e){var t=Buffer.allocUnsafe(4);return t.writeUInt32BE(e,0),t}function f(e){return e.read(4).readUInt32BE(0)}!function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.Array=3]="Array",e[e.Object=4]="Object"}(u||(u={}));var g={Undefined:Buffer.alloc(1,u.Undefined),String:Buffer.alloc(1,u.String),Buffer:Buffer.alloc(1,u.Buffer),Array:Buffer.alloc(1,u.Array),Object:Buffer.alloc(1,u.Object)};function v(e,t){if(void 0===t)e.write(g.Undefined);else if("string"==typeof t){var i=Buffer.from(t);e.write(g.String),e.write(p(i.length)),e.write(i)}else if(Buffer.isBuffer(t))e.write(g.Buffer),e.write(p(t.length)),e.write(t);else if(Array.isArray(t)){e.write(g.Array),e.write(p(t.length));for(var n=0,r=t;nthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){var t=this._chunks.shift();return this._totalLength-=e,t}if(this._chunks[0].byteLength>e){var i=this._chunks[0].slice(0,e);return this._chunks[0]=this._chunks[0].slice(e),this._totalLength-=e,i}for(var n=Buffer.allocUnsafe(e),r=0;e>0;){var o=this._chunks[0];o.byteLength>e?(this._chunks[0]=o.slice(e),o.copy(n,r,0,e),r+=e,this._totalLength-=e,e-=e):(this._chunks.shift(),o.copy(n,r,0,o.byteLength),r+=o.byteLength,this._totalLength-=o.byteLength,e-=o.byteLength)}return n},e}(),u=function(){function e(t){var i=this;this._socket=t,this._onMessage=new n.Emitter,this.onMessage=this._onMessage.event,this._onClose=new n.Emitter,this.onClose=this._onClose.event,this._writeBuffer=new(function(){function e(){this._data=[],this._totalLength=0}return e.prototype.add=function(e,t){var i=0===this._totalLength;return this._data.push(e,t),this._totalLength+=e.length+t.length,i},e.prototype.take=function(){var e=Buffer.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,e},e}()),this._isDisposed=!1,this._incomingData=new l;var r={readHead:!0,bodyLen:-1};this._socketDataListener=function(t){!function(t){for(i._incomingData.acceptChunk(t);i._incomingData.byteLength>0;){if(r.readHead){if(!(i._incomingData.byteLength>=e._headerLen))break;r.bodyLen=i._incomingData.readUInt32BE(),r.readHead=!1}if(!r.readHead){if(!(i._incomingData.byteLength>=r.bodyLen))break;var n=i._incomingData.read(r.bodyLen);if(r.bodyLen=-1,r.readHead=!0,i._onMessage.fire(n),i._isDisposed)break}}}(t)},t.on("data",this._socketDataListener),this._socketEndListener=function(){},t.on("end",this._socketEndListener),this._socketCloseListener=function(){i._onClose.fire()},t.once("close",this._socketCloseListener)}return e.prototype.dispose=function(){this._isDisposed=!0,this._socket.removeListener("data",this._socketDataListener),this._socket.removeListener("end",this._socketEndListener),this._socket.removeListener("close",this._socketCloseListener)},e.prototype.end=function(){this._socket.end()},e.prototype.readEntireBuffer=function(){return this._incomingData.read(this._incomingData.byteLength)},e.prototype.send=function(t){var i=Buffer.allocUnsafe(e._headerLen);i.writeUInt32BE(t.length,0,!0),this._writeSoon(i,t)},e.prototype._writeSoon=function(e,t){var i=this;this._writeBuffer.add(e,t)&&setImmediate(function(){i._socket.destroyed||i._socket.write(i._writeBuffer.take())})},e._headerLen=4,e}();t.Protocol=u;var d=function(e){function t(i){var n=e.call(this,t.toClientConnectionEvent(i))||this;return n.server=i,n}return a(t,e),t.toClientConnectionEvent=function(e){var t=n.Event.fromNodeEventEmitter(e,"connection");return n.Event.map(t,function(e){return{protocol:new u(e),onDidClientDisconnect:n.Event.once(n.Event.fromNodeEventEmitter(e,"close"))}})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.server&&(this.server.close(),this.server=null)},t}(r.IPCServer);t.Server=d;var h=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.protocol=t,n}return a(t,e),t.fromSocket=function(e,i){return new t(new u(e),i)},Object.defineProperty(t.prototype,"onClose",{get:function(){return this.protocol.onClose},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.protocol.end()},t}(r.IPCClient);function p(e){var t,i=!1,r=!1,o=[],s=function(){if(!r){for(r=!0;i&&o.length>0;)t.fire(o.shift());r=!1}};return e(function(e){o.push(e),s()}),(t=new n.Emitter({onFirstListenerAdd:function(){i=!0,process.nextTick(s)},onLastListenerRemove:function(){i=!1}})).event}t.Client=h,t.serve=function(e){return new Promise(function(t,n){var r=i.createServer();r.on("error",n),r.listen(e,function(){r.removeListener("error",n),t(new d(r))})})},t.connect=function(e,t){return new Promise(function(n,r){var o=i.createConnection(e,function(){o.removeListener("error",r),n(h.fromSocket(o,t))});o.once("error",r)})};var f=function(){function e(e){this._actual=e,this.onMessage=p(this._actual.onMessage),this.onClose=p(this._actual.onClose)}return e.prototype.send=function(e){this._actual.send(e)},e.prototype.end=function(){this._actual.end()},e}();t.BufferedProtocol=f}),define(i[666],n([0,1,23]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.modelProvider=i.isFunction(e.getModel)?e:{getModel:function(){return e}}}return e.prototype.getId=function(e,t){if(!t)return null;var i=this.modelProvider.getModel();return i===t?"__root__":i.dataSource.getId(t)},e.prototype.hasChildren=function(e,t){var i=this.modelProvider.getModel();return!!(i&&i===t&&i.entries.length>0)},e.prototype.getChildren=function(e,t){var i=this.modelProvider.getModel();return Promise.resolve(i===t?i.entries:[])},e.prototype.getParent=function(e,t){return Promise.resolve(null)},e}();t.DataSource=n;var r=function(){function e(e){this.modelProvider=e}return e.prototype.getAriaLabel=function(e,t){var i=this.modelProvider.getModel();return i.accessibilityProvider?i.accessibilityProvider.getAriaLabel(t):null},e.prototype.getPosInSet=function(e,t){var i=this.modelProvider.getModel(),n=0;if(i.filter)for(var r=0,o=i.entries;r0,f=e[l],g=t[l],v=0;v0,y=d+v,b=y-1,_=h+v-1,S=m?s[b]:0,C=p&&m?s[_]:0,w=p&&m?c[_]:0,E=void 0;(E=!C&&p?0:u(f,g,n,r,v,w))&&C+E>=S?(c[y]=w+1,s[y]=C+E):(c[y]=a,s[y]=S)}var I=[],x=i-1,D=o-1;for(;x>=0&&D>=0;){var y=x*o+D,k=c[y];k===a?D--:(I.push(D),x--,D--)}return[s[i*o-1],I.reverse()]}(t,i,o,e,s,r)}function u(e,t,i,r,o,s){var a=0;if(t!==r[o])return a;if(a+=1,s>0&&(a+=5*s),e===i[o]&&(a+=1),0===o)a+=8;else{var c=function(e){switch(e){case 47:case 92:return 5;case 95:case 45:case 46:case 32:case 39:case 34:case 58:return 4;default:return 0}}(i.charCodeAt(o-1));c?a+=c:n.isUpper(i.charCodeAt(o))&&(a+=1)}return a}t.score=l;var d=Object.freeze({score:0}),h=1<<18,p=1<<17,f=65536,g=32768;function v(e,t,i,a,c){if(!e||!t.value)return d;var u=a.getItemLabel(e);if(!u)return d;var v,y=a.getItemDescription(e),b=c[v=y?""+u+y+t.value+i:""+u+t.value+i];if(b)return b;var _=function(e,t,i,a,c){if(i&&(o.isLinux?a.original===i:s.equalsIgnoreCase(a.original,i)))return{score:h,labelMatch:[{start:0,end:e.length}],descriptionMatch:t?[{start:0,end:t.length}]:void 0};if(!i||!a.containsPathSeparator){var u=n.matchesPrefix(a.value,e);if(u)return{score:p,labelMatch:u};var v=n.matchesCamelCase(a.value,e);if(v)return{score:f,labelMatch:v};var y=l(e,a.value,a.lowercase,c),b=y[0],_=y[1];if(b)return{score:b+g,labelMatch:m(_)}}if(t){var S=t;i&&(S=""+t+r.sep);var C=S.length,w=""+S+e,E=l(w,a.value,a.lowercase,c),I=E[0],x=E[1];if(I){var D=m(x),k=[],L=[];return D.forEach(function(e){e.startC?(k.push({start:0,end:e.end-C}),L.push({start:e.start,end:C})):e.start>=C?k.push({start:e.start-C,end:e.end-C}):L.push(e)}),{score:I,labelMatch:k,descriptionMatch:L}}}return d}(u,y,a.getItemPath(e),t,i);return c[v]=_,_}function m(e){var t,i=[];if(!e)return i;for(var n=0,r=e;n=0;return{original:e,value:t,lowercase:i,containsPathSeparator:n}},t.scoreItem=v,t.compareItemsByScore=function(e,t,i,n,r,o,s){void 0===s&&(s=b);var a=v(e,i,n,r,o),c=v(t,i,n,r,o),l=a.score,u=c.score;if((l===h||u===h)&&l!==u)return l===h?-1:1;if(l===p||u===p){if(l!==u)return l===p?-1:1;var d=r.getItemLabel(e)||"",m=r.getItemLabel(t)||"";if(d.length!==m.length)return d.length-m.length}if(l===f||u===f){if(l!==u)return l===f?-1:1;d=r.getItemLabel(e)||"",m=r.getItemLabel(t)||"";var _=function(e,t){if(!e&&!t||!(e&&e.length||t&&t.length))return 0;if(!t||!t.length)return-1;if(!e||!e.length)return 1;var i=e[0].start,n=e[e.length-1].end-i,r=t[0].start,o=t[t.length-1].end-r;return n===o?0:og||u>g){if(uu?-1:1;var S=y(e,a,r),C=y(t,c,r);return S&&C&&S!==C?C>S?-1:1:s(e,t,i,r)},t.fallbackCompare=b}),define(i[713],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,i){this._posx=e,this._posy=t,this._target=i}return e.prototype.preventDefault=function(){},e.prototype.stopPropagation=function(){},Object.defineProperty(e.prototype,"posx",{get:function(){return this._posx},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"posy",{get:function(){return this._posy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),e}();t.ContextMenuEvent=i;var n=function(e){function t(t){var i=e.call(this,t.posx,t.posy,t.target)||this;return i.originalEvent=t,i}return a(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(i);t.MouseContextMenuEvent=n;var r=function(e){function t(t,i,n){var r=e.call(this,t,i,n.target)||this;return r.originalEvent=n,r}return a(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(i);t.KeyboardContextMenuEvent=r,t.DRAG_OVER_REJECT={accept:!1},t.DRAG_OVER_ACCEPT={accept:!0},t.DRAG_OVER_ACCEPT_BUBBLE_UP={accept:!0,bubble:1},t.DRAG_OVER_ACCEPT_BUBBLE_DOWN=function(e){return void 0===e&&(e=!1),{accept:!0,bubble:0,autoExpand:e}},t.DRAG_OVER_ACCEPT_BUBBLE_UP_COPY={accept:!0,bubble:1,effect:0},t.DRAG_OVER_ACCEPT_BUBBLE_DOWN_COPY=function(e){return void 0===e&&(e=!1),{accept:!0,bubble:0,effect:0,autoExpand:e}}}),define(i[747],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e.prototype.getData=function(){return this.elements},e}();t.ElementsDragAndDropData=i;var n=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e.prototype.getData=function(){return this.elements},e}();t.ExternalElementsDragAndDropData=n;var r=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){e.types&&(this.types=[],Array.prototype.push.apply(this.types,e.types)),e.files&&(this.files=[],Array.prototype.push.apply(this.files,e.files),this.files=this.files.filter(function(e){return e.size||e.type}))},e.prototype.getData=function(){return{types:this.types,files:this.files}},e}();t.DesktopDragAndDropData=r}),define(i[751],n([0,1,178,11,2,17,5]),function(e,t,i,n,r,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e){this._onDispose=new s.Emitter,this.onDispose=this._onDispose.event,this._item=e}return Object.defineProperty(e.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},e}();t.LockData=c;var l=function(){function e(){this.locks=Object.create({})}return e.prototype.isLocked=function(e){return!!this.locks[e.id]},e.prototype.run=function(e,t){var i=this,n=this.getLock(e);return n?new Promise(function(r,o){s.Event.once(n.onDispose)(function(){return i.run(e,t).then(r,o)})}):new Promise(function(n,r){if(e.isDisposed())return r(new Error("Item is disposed."));var o=i.locks[e.id]=new c(e);return t().then(function(t){return delete i.locks[e.id],o.dispose(),t}).then(n,r)})},e.prototype.getLock=function(e){var t;for(t in this.locks){var i=this.locks[t];if(e.intersects(i.item))return i}return null},e}();t.Lock=l;var u=function(){function e(){this._isDisposed=!1,this._onDidRevealItem=new s.EventMultiplexer,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new s.EventMultiplexer,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new s.EventMultiplexer,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new s.EventMultiplexer,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new s.EventMultiplexer,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new s.EventMultiplexer,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new s.EventMultiplexer,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new s.EventMultiplexer,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new s.EventMultiplexer,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new s.EventMultiplexer,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new s.EventMultiplexer,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return e.prototype.register=function(e){i.ok(!this.isRegistered(e.id),"item already registered: "+e.id);var t=r.combinedDisposable([this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose)]);this.items[e.id]={item:e,disposable:t}},e.prototype.deregister=function(e){i.ok(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},e.prototype.dispose=function(){this.items=null,this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},e.prototype.isDisposed=function(){return this._isDisposed},e}();t.ItemRegistry=u;var d=function(){function e(e,t,i,n,r){this._onDidCreate=new s.Emitter,this.onDidCreate=this._onDidCreate.event,this._onDidReveal=new s.Emitter,this.onDidReveal=this._onDidReveal.event,this._onExpand=new s.Emitter,this.onExpand=this._onExpand.event,this._onDidExpand=new s.Emitter,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new s.Emitter,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new s.Emitter,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new s.Emitter,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new s.Emitter,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new s.Emitter,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new s.Emitter,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new s.Emitter,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new s.Emitter,this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=i,this.lock=n,this.element=r,this.id=e,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!(!this.context.dataSource.shouldAutoexpand||!this.context.dataSource.shouldAutoexpand(this.context.tree,r)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return e.prototype.getElement=function(){return this.element},e.prototype.hasChildren=function(){return this.doesHaveChildren},e.prototype.getDepth=function(){return this.depth},e.prototype.isVisible=function(){return this.visible},e.prototype.setVisible=function(e){this.visible=e},e.prototype.isExpanded=function(){return this.expanded},e.prototype._setExpanded=function(e){this.expanded=e},e.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},e.prototype.expand=function(){var e=this;return this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){if(e.isExpanded()||!e.doesHaveChildren)return Promise.resolve(!1);var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Promise.resolve(null)).then(function(){return e._setExpanded(!0),e._onDidExpand.fire(t),!0})}).then(function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then(function(){return!0}):t)})},e.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var i=Promise.resolve(null);return this.forEachChild(function(e){i=i.then(function(){return e.collapse(!0)})}),i.then(function(){return t.collapse(!1)})}return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Promise.resolve(!0)})},e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},e.prototype.hasTrait=function(e){return this.traits[e]||!1},e.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},e.prototype.getHeight=function(){return this.height},e.prototype.refreshChildren=function(t,i,r){var o=this;if(void 0===i&&(i=!1),void 0===r&&(r=!1),!r&&!this.isExpanded()){var s=function(e){e.needsChildrenRefresh=!0,e.forEachChild(s)};return s(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var a=function(){var r={item:o,isNested:i};return o._onRefreshChildren.fire(r),(o.doesHaveChildren?o.context.dataSource.getChildren(o.context.tree,o.element):Promise.resolve([])).then(function(i){if(o.isDisposed()||o.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(i))return Promise.reject(new Error("Please return an array of children."));i=i?i.slice(0):[],i=o.sort(i);for(var n={};null!==o.firstChild;)n[o.firstChild.id]=o.firstChild,o.removeChild(o.firstChild);for(var r=0,s=i.length;r0?r[0]:this.input,s=this.getNavigator(o,!1),a=0;a0?i[0]:this.input,r=this.getNavigator(n,!1).parent();r&&(t?this.setSelection([r],e):this.select(r,e))},e.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var i={focus:this.getFocus(),payload:t};this._onDidFocus.fire(i)},e.prototype.isFocused=function(e){var t=this.getItem(e);return!!t&&t.hasTrait("focused")},e.prototype.getFocus=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]},e.prototype.focusNext=function(e,t){void 0===e&&(e=1);for(var i,n=this.getFocus()||this.input,r=this.getNavigator(n,!1),o=0;o=0;r--)this.onInsertItem(l[r]);for(r=this.heightMap.length-1;r>=n;r--)this.onRefreshItem(this.heightMap[r]);return a},e.prototype.onInsertItem=function(e){},e.prototype.onRemoveItems=function(e){for(var t,i=null,n=null,r=0,o=0;i=e.next();){if(r=this.indexes[i],!(t=this.heightMap[r]))return void console.error("view item doesnt exist");o-=t.height,delete this.indexes[i],this.onRemoveItem(t),null===n&&(n=r)}if(0!==o&&null!==n)for(this.heightMap.splice(n,r-n+1),r=n;r=i.top+i.height))return t;if(n===t)break;n=t}return this.heightMap.length},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},e.prototype.itemAtIndex=function(e){return this.heightMap[e]},e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},e.prototype.createViewItem=function(e){throw new Error("not implemented")},e.prototype.dispose=function(){this.heightMap=[],this.indexes={}},e}();t.HeightMap=n}),define(i[755],n([0,1,12,323]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function t(t,n,r,o,s){this.id=n;var a=function(t,n){if(i.globals.MonacoEnvironment){if("function"==typeof i.globals.MonacoEnvironment.getWorker)return i.globals.MonacoEnvironment.getWorker(t,n);if("function"==typeof i.globals.MonacoEnvironment.getWorkerUrl)return new Worker(i.globals.MonacoEnvironment.getWorkerUrl(t,n))}if("function"==typeof e){var r=e.toUrl("./"+t);if(/^(http:)|(https:)|(file:)/.test(r)){var o=String(window.location),s=o.substr(0,o.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,s.length)!==s){var a=r.substr(0,r.length-"vs/base/worker/workerMain.js".length),c="data:text/javascript;charset=utf-8,"+encodeURIComponent("/*"+n+"*/self.MonacoEnvironment={baseUrl: '"+a+"'};importScripts('"+r+"');/*"+n+"*/");return new Worker(c)}}return new Worker(r+"#"+n)}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",r);"function"==typeof a.then?this.worker=a:this.worker=Promise.resolve(a),this.postMessage(t),this.worker.then(function(e){e.onmessage=function(e){o(e.data)},e.onmessageerror=s,"function"==typeof e.addEventListener&&e.addEventListener("error",s)})}return t.prototype.getId=function(){return this.id},t.prototype.postMessage=function(e){this.worker&&this.worker.then(function(t){return t.postMessage(e)})},t.prototype.dispose=function(){this.worker&&this.worker.then(function(e){return e.terminate()}),this.worker=null},t}(),o=function(){function e(e){this._label=e,this._webWorkerFailedBeforeError=!1}return e.prototype.create=function(t,i,o){var s=this,a=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new r(t,a,this._label||"anonymous"+a,i,function(e){n.logOnceWebWorkerWarning(e),s._webWorkerFailedBeforeError=e,o(e)})},e.LAST_WORKER_ID=0,e}();t.DefaultWorkerFactory=o}),define(i[756],n([0,1,2]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.showActivity=function(e,t,n,r){return i.toDisposable(function(){return!0})},e.prototype.getPinnedViewletIds=function(){return[]},e}();t.CodeSandboxActivityService=n}),define(i[758],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.hasBackups=function(){return new Promise(function(e){return e(!1)})},e.prototype.loadBackupResource=function(e){return new Promise(function(e){return e(null)})},e.prototype.toBackupResource=function(e){return e},e.prototype.backupResource=function(e,t,i){return new Promise(function(e){return e(null)})},e.prototype.getWorkspaceFileBackups=function(){return new Promise(function(e){return e(null)})},e.prototype.resolveBackupContent=function(e){return new Promise(function(e){return e(null)})},e.prototype.discardResourceBackup=function(e){return Promise.resolve(void 0)},e.prototype.discardAllWorkspaceBackups=function(){return Promise.resolve(void 0)},e}();t.CodeSandboxBackupService=i}),define(i[759],n([0,1,5]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.windowId=e,this._onBroadcast=new i.Emitter,this.registerListeners()}return e.prototype.registerListeners=function(){var e=this;(window||self).addEventListener("message",function(t){var i=t.data;if("broadcast"===i.$type&&i.$windowId!==e.windowId){var n=i.b;e._onBroadcast.fire(n)}})},Object.defineProperty(e.prototype,"onBroadcast",{get:function(){return this._onBroadcast.event},enumerable:!0,configurable:!0}),e.prototype.broadcast=function(e){(window.parent||window).postMessage({$type:"broadcast",$windowId:this.windowId,b:e},"*")},e}();t.CodeSandboxBroadcastService=n}),define(i[760],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.writeText=function(e){navigator.clipboard.writeText(e)},e.prototype.readText=function(){return function(){var e=document.createElement("input");document.body.appendChild(e),e.focus(),document.execCommand("paste");var t=e.value;return document.body.removeChild(e),t}()||""},e.prototype.readFindText=function(){return""},e.prototype.writeFindText=function(e){},e.prototype.writeResources=function(e){},e.prototype.readResources=function(){return[]},e.prototype.hasResources=function(){return!1},e}();t.CodeSandboxClipboardService=i}),define(i[762],n([0,1,10]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(){this.globalStorageHome="/vscode/globalStorage",this.untitledWorkspacesHome=i.URI.file("/vscode/untitledWorkspaces"),this.args={_:[]},this.appRoot="/vscode",this.userHome="/home/sandbox",this.userDataPath="/vscode/userdata",this.appNameLong="CodeSandbox",this.appQuality="Very Good",this.appSettingsHome="/vscode",this.appSettingsPath="/vscode/settings.json",this.appKeybindingsPath="/vscode/keybindings.json",this.isExtensionDevelopment=!1,this.disableExtensions=!1,this.extensionsPath="/vscode/extensions",this.debugExtensionHost={debugId:"",port:null,break:!1},this.logsPath="/home/sandbox/.vscode/logs",this.builtinExtensionsPath="/extensions"}}();t.CodeSandboxEnvironmentService=n}),define(i[765],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.getAllVersions=function(e,t){return Promise.resolve([])},e.prototype.getCompatibleExtension=function(e,t){return Promise.resolve({})},e.prototype.getExtension=function(e,t){throw new Error("Method not implemented.")},e.prototype.isEnabled=function(){return!1},e.prototype.reportStatistic=function(e,t,i,n){throw new Error("Method not implemented.")},e.prototype.query=function(e){throw new Error("query not implemented")},e.prototype.download=function(e,t){throw new Error("\tdownload not implemented")},e.prototype.getReadme=function(e){throw new Error("\tgetReadme not implemented")},e.prototype.getManifest=function(e){throw new Error("\tgetManifest not implemented")},e.prototype.getChangelog=function(e){throw new Error("\tgetChangelog not implemented")},e.prototype.getCoreTranslation=function(e,t){throw new Error("getCoreTranslation not implemented")},e.prototype.loadCompatibleVersion=function(e){throw new Error("loadCompatibleVersion not implemented")},e.prototype.loadAllDependencies=function(e){throw new Error("loadAllDependencies not implemented")},e.prototype.getExtensionsReport=function(){throw new Error("getExtensionsReport not implemented")},e}();t.CodeSandboxExtensionGalleryService=i}),define(i[766],n([0,1,5]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._onInstallExtension=new i.Emitter,this.onInstallExtension=this._onInstallExtension.event,this._onDidInstallExtension=new i.Emitter,this.onDidInstallExtension=this._onDidInstallExtension.event,this._onUninstallExtension=new i.Emitter,this.onUninstallExtension=this._onUninstallExtension.event,this._onDidUninstallExtension=new i.Emitter,this.onDidUninstallExtension=this._onDidUninstallExtension.event}return e.prototype.zip=function(e){throw new Error("zip not implemented")},e.prototype.unzip=function(e,t){throw new Error("unzip not implemented")},e.prototype.install=function(e){throw new Error("install not implemented")},e.prototype.installFromGallery=function(e){throw new Error("installFromGallery not implemented")},e.prototype.uninstall=function(e,t){throw new Error("uninstall not implemented")},e.prototype.reinstallFromGallery=function(e){throw new Error("reinstallFromGallery not implemented")},e.prototype.getInstalled=function(e){return new Promise(function(){return[]})},e.prototype.getExtensionsReport=function(){throw new Error("getExtensionsReport not implemented")},e.prototype.updateMetadata=function(e,t){throw new Error("updateMetadata not implemented")},e}();t.CodeSandboxExtensionManagementService=n}),define(i[767],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.createSHA1=function(e){return e},e}();t.CodeSandboxHashService=i}),define(i[773],n([0,1,5]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.onActiveOutputChannel=(new i.Emitter).event}return e.prototype.getChannelDescriptors=function(){throw new Error("Method not implemented.")},e.prototype.getChannel=function(e){throw new Error("getChannel not implemented.")},e.prototype.getActiveChannel=function(){throw new Error("getActiveChannel not implemented.")},e.prototype.showChannel=function(e,t){throw new Error("showChannel not implemented.")},e}();t.CodeSandboxOutputService=n}),define(i[776],n([0,1,5,2]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){for(var e=[],t=0;t1&&a._register(i.addDisposableListener(c.element,i.EventType.KEY_DOWN,function(e){var t,r=new n.StandardKeyboardEvent(e),a=!0;r.equals(15)?t=s>0?s-1:o._buttons.length-1:r.equals(17)?t=s===o._buttons.length-1?0:s+1:a=!1,a&&"number"==typeof t&&(o._buttons[t].focus(),i.EventHelper.stop(e,!0))}))},a=this,c=0;c'})}Object.defineProperty(t,"__esModule",{value:!0}),t.renderOcticons=n;var r=function(){function e(e){this._container=e}return Object.defineProperty(e.prototype,"text",{set:function(e){this._container.innerHTML=n(e||"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this._container.title=e},enumerable:!0,configurable:!0}),e}();t.OcticonLabel=r}),define(i[205],n([0,1,7,25,369,9]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){this.supportOcticons=t,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",this.didEverRender=!1,e.appendChild(this.domNode)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),e.prototype.set=function(t,i,r,o){void 0===i&&(i=[]),void 0===r&&(r=""),t||(t=""),o&&(t=e.escapeNewLines(t,i)),this.didEverRender&&this.text===t&&this.title===r&&n.equals(this.highlights,i)||(Array.isArray(i)||(i=[]),this.text=t,this.title=r,this.highlights=i,this.render())},e.prototype.render=function(){i.clearNode(this.domNode);for(var e=[],t=0,n=0,s=this.highlights;n");var c=this.text.substring(t,a.start);e.push(this.supportOcticons?r.renderOcticons(c):o.escape(c)),e.push(""),t=a.end}e.push('');var l=this.text.substring(a.start,a.end);e.push(this.supportOcticons?r.renderOcticons(l):o.escape(l)),e.push(""),t=a.end}}if(t");l=this.text.substring(t);e.push(this.supportOcticons?r.renderOcticons(l):o.escape(l)),e.push("")}this.domNode.innerHTML=e.join(""),this.domNode.title=this.title,this.didEverRender=!0},e.escapeNewLines=function(e,t){var i=0,n=0;return e.replace(/\r\n|\r|\n/,function(e,r){n="\r\n"===e?-1:0,r+=i;for(var o=0,s=t;o=r&&(a.start+=n),a.end>=r&&(a.end+=n))}return i+=n,"⏎"})},e}();t.HighlightedLabel=s}),define(i[147],n([0,1,7,205,2,898]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this._element=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":null)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposed=!0},e}(),s=function(e){function t(t,r){var s=e.call(this)||this;return s.domNode=s._register(new o(i.append(t,i.$(".monaco-icon-label")))),s.labelDescriptionContainer=s._register(new o(i.append(s.domNode.element,i.$(".monaco-icon-label-description-container")))),r&&r.supportHighlights?s.labelNode=new n.HighlightedLabel(i.append(s.labelDescriptionContainer.element,i.$("a.label-name")),!r.donotSupportOcticons):s.labelNode=s._register(new o(i.append(s.labelDescriptionContainer.element,i.$("a.label-name")))),r&&r.supportDescriptionHighlights?s.descriptionNodeFactory=function(){return new n.HighlightedLabel(i.append(s.labelDescriptionContainer.element,i.$("span.label-description")),!r.donotSupportOcticons)}:s.descriptionNodeFactory=function(){return s._register(new o(i.append(s.labelDescriptionContainer.element,i.$("span.label-description"))))},s}return a(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.domNode.element},enumerable:!0,configurable:!0}),t.prototype.setLabel=function(e,t,i){var r=["monaco-icon-label"];i&&(i.extraClasses&&r.push.apply(r,i.extraClasses),i.italic&&r.push("italic")),this.domNode.className=r.join(" "),this.domNode.title=i&&i.title?i.title:"",this.labelNode instanceof n.HighlightedLabel?this.labelNode.set(e||"",i?i.matches:void 0,i&&i.title?i.title:void 0,i&&i.labelEscapeNewLines):this.labelNode.textContent=e||"",(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof n.HighlightedLabel?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),i&&i.descriptionTitle?this.descriptionNode.element.title=i.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=i&&i.descriptionTitle?i.descriptionTitle:"",this.descriptionNode.empty=!t))},t}(r.Disposable);t.IconLabel=s}),define(i[941],n([14]),{}),define(i[233],n([0,1,178,2,49,25,7,13,941]),function(e,t,i,n,r,o,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={progressBarBackground:r.Color.fromHex("#0E70C0")},u=function(e){function t(t,i){var n=e.call(this)||this;return n.options=i||Object.create(null),o.mixin(n.options,l,!1),n.workedVal=0,n.progressBarBackground=n.options.progressBarBackground,n._register(n.showDelayedScheduler=new c.RunOnceScheduler(function(){return s.show(n.element)},0)),n.create(t),n}return a(t,e),t.prototype.create=function(e){this.element=document.createElement("div"),s.addClass(this.element,"monaco-progress-container"),e.appendChild(this.element),this.bit=document.createElement("div"),s.addClass(this.bit,"progress-bit"),this.element.appendChild(this.bit),this.applyStyles()},t.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",s.removeClasses(this.element,"active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0},t.prototype.done=function(){return this.doDone(!0)},t.prototype.stop=function(){return this.doDone(!1)},t.prototype.doDone=function(e){var t=this;return s.addClass(this.element,"done"),s.hasClass(this.element,"infinite")?(this.bit.style.opacity="0",e?setTimeout(function(){return t.off()},200):this.off()):(this.bit.style.width="inherit",e?setTimeout(function(){return t.off()},200):this.off()),this},t.prototype.infinite=function(){return this.bit.style.width="2%",this.bit.style.opacity="1",s.removeClasses(this.element,"discrete","done"),s.addClasses(this.element,"active","infinite"),this},t.prototype.total=function(e){return this.workedVal=0,this.totalWork=e,this},t.prototype.hasTotal=function(){return!isNaN(this.totalWork)},t.prototype.worked=function(e){return e=Number(e),i.ok(!isNaN(e),"Value is not a number"),e=Math.max(1,e),this.doSetWorked(this.workedVal+e)},t.prototype.setWorked=function(e){return e=Number(e),i.ok(!isNaN(e),"Value is not a number"),e=Math.max(1,e),this.doSetWorked(e)},t.prototype.doSetWorked=function(e){return i.ok(!isNaN(this.totalWork),"Total work not set"),this.workedVal=e,this.workedVal=Math.min(this.totalWork,this.workedVal),s.hasClass(this.element,"infinite")&&s.removeClass(this.element,"infinite"),s.hasClass(this.element,"done")&&s.removeClass(this.element,"done"),s.hasClass(this.element,"active")||s.addClass(this.element,"active"),s.hasClass(this.element,"discrete")||s.addClass(this.element,"discrete"),this.bit.style.width=this.workedVal/this.totalWork*100+"%",this},t.prototype.getContainer=function(){return this.element},t.prototype.show=function(e){this.showDelayedScheduler.cancel(),"number"==typeof e?this.showDelayedScheduler.schedule(e):s.show(this.element)},t.prototype.hide=function(){s.hide(this.element),this.showDelayedScheduler.cancel()},t.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},t.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():null;this.bit.style.backgroundColor=e}},t}(n.Disposable);t.ProgressBar=u}),define(i[946],n([14]),{}),define(i[180],n([0,1,2,68,12,23,104,76,5,7,105,946]),function(e,t,i,n,r,o,s,c,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=!1,p=function(e){function t(t,i,o){void 0===o&&(o={});var a=e.call(this)||this;return a._state=3,a._onDidEnablementChange=a._register(new l.Emitter),a.onDidEnablementChange=a._onDidEnablementChange.event,a._onDidStart=a._register(new l.Emitter),a.onDidStart=a._onDidStart.event,a._onDidChange=a._register(new l.Emitter),a.onDidChange=a._onDidChange.event,a._onDidReset=a._register(new l.Emitter),a.onDidReset=a._onDidReset.event,a._onDidEnd=a._register(new l.Emitter),a.onDidEnd=a._onDidEnd.event,a.linkedSash=void 0,a.orthogonalStartSashDisposables=[],a.orthogonalEndSashDisposables=[],a.el=u.append(t,u.$(".monaco-sash")),r.isMacintosh&&u.addClass(a.el,"mac"),a._register(d.domEvent(a.el,"mousedown")(a.onMouseDown,a)),a._register(d.domEvent(a.el,"dblclick")(a.onMouseDoubleClick,a)),s.Gesture.addTarget(a.el),a._register(d.domEvent(a.el,s.EventType.Start)(a.onTouchStart,a)),n.isIPad&&u.addClass(a.el,"touch"),a.setOrientation(o.orientation||0),a.hidden=!1,a.layoutProvider=i,a.orthogonalStartSash=o.orthogonalStartSash,a.orthogonalEndSash=o.orthogonalEndSash,u.toggleClass(a.el,"debug",h),a}return a(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(u.toggleClass(this.el,"disabled",0===e),u.toggleClass(this.el,"minimum",1===e),u.toggleClass(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){this.orthogonalStartSashDisposables=i.dispose(this.orthogonalStartSashDisposables),e?(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this,this.orthogonalStartSashDisposables),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){this.orthogonalEndSashDisposables=i.dispose(this.orthogonalEndSashDisposables),e?(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this,this.orthogonalEndSashDisposables),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),t.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(u.addClass(this.el,"horizontal"),u.removeClass(this.el,"vertical")):(u.removeClass(this.el,"horizontal"),u.addClass(this.el,"vertical")),this.layoutProvider&&this.layout()},t.prototype.onMouseDown=function(e){var t=this;u.EventHelper.stop(e,!1);var n=!1;if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),!e.__orthogonalSashEvent){var o=void 0;0===this.orientation?e.offsetY<=4?o=this.orthogonalStartSash:e.offsetY>=this.el.clientHeight-4&&(o=this.orthogonalEndSash):e.offsetX<=4?o=this.orthogonalStartSash:e.offsetX>=this.el.clientWidth-4&&(o=this.orthogonalEndSash),o&&(n=!0,e.__orthogonalSashEvent=!0,o.onMouseDown(e))}if(this.state){for(var s=0,a=u.getElementsByTagName("iframe");s0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}();t.MouseWheelClassifier=g;var v=function(e){function t(t,i,r){var a=e.call(this)||this;a._onScroll=a._register(new u.Emitter),a.onScroll=a._onScroll.event,t.style.overflow="hidden",a._options=_(i),a._scrollable=r,a._register(a._scrollable.onScroll(function(e){a._onDidScroll(e),a._onScroll.fire(e)}));var c={onMouseWheel:function(e){return a._onMouseWheel(e)},onDragStart:function(){return a._onDragStart()},onDragEnd:function(){return a._onDragEnd()}};return a._verticalScrollbar=a._register(new s.VerticalScrollbar(a._scrollable,a._options,c)),a._horizontalScrollbar=a._register(new o.HorizontalScrollbar(a._scrollable,a._options,c)),a._domNode=document.createElement("div"),a._domNode.className="monaco-scrollable-element "+a._options.className,a._domNode.setAttribute("role","presentation"),a._domNode.style.position="relative",a._domNode.style.overflow="hidden",a._domNode.appendChild(t),a._domNode.appendChild(a._horizontalScrollbar.domNode.domNode),a._domNode.appendChild(a._verticalScrollbar.domNode.domNode),a._options.useShadows&&(a._leftShadowDomNode=n.createFastDomNode(document.createElement("div")),a._leftShadowDomNode.setClassName("shadow"),a._domNode.appendChild(a._leftShadowDomNode.domNode),a._topShadowDomNode=n.createFastDomNode(document.createElement("div")),a._topShadowDomNode.setClassName("shadow"),a._domNode.appendChild(a._topShadowDomNode.domNode),a._topLeftShadowDomNode=n.createFastDomNode(document.createElement("div")),a._topLeftShadowDomNode.setClassName("shadow top-left-corner"),a._domNode.appendChild(a._topLeftShadowDomNode.domNode)),a._listenOnDomNode=a._options.listenOnDomNode||a._domNode,a._mouseWheelToDispose=[],a._setListeningToMouseWheel(a._options.handleMouseWheel),a.onmouseover(a._listenOnDomNode,function(e){return a._onMouseOver(e)}),a.onnonbubblingmouseout(a._listenOnDomNode,function(e){return a._onMouseOut(e)}),a._hideTimeout=a._register(new l.TimeoutTimer),a._isDragging=!1,a._mouseIsOver=!1,a._shouldRender=!0,a._revealOnScroll=!0,a}return a(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=d.dispose(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,h.isMacintosh&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=_(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=t.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype.setRevealOnScroll=function(e){this._revealOnScroll=e},t.prototype._setListeningToMouseWheel=function(e){var t=this;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=d.dispose(this._mouseWheelToDispose),e)){var n=function(e){t._onMouseWheel(new r.StandardWheelEvent(e))};this._mouseWheelToDispose.push(i.addDisposableListener(this._listenOnDomNode,"mousewheel",n)),this._mouseWheelToDispose.push(i.addDisposableListener(this._listenOnDomNode,"DOMMouseScroll",n))}},t.prototype._onMouseWheel=function(e){var t,i=g.INSTANCE;if(i.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var n=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(n=(t=[r,n])[0],r=t[1]);var o=!h.isMacintosh&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||r||(r=n,n=0),e.browserEvent&&e.browserEvent.altKey&&(r*=this._options.fastScrollSensitivity,n*=this._options.fastScrollSensitivity);var s=this._scrollable.getFutureScrollPosition(),a={};if(n){var c=s.scrollTop-50*n;this._verticalScrollbar.writeScrollPosition(a,c)}if(r){var l=s.scrollLeft-50*r;this._horizontalScrollbar.writeScrollPosition(a,l)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop)this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),this._shouldRender=!0}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(i?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(i?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide()},500)},t}(c.Widget);t.AbstractScrollableElement=v;var m=function(e){function t(t,n){var r=this;(n=n||{}).mouseWheelSmoothScroll=!1;var o=new p.Scrollable(0,function(e){return i.scheduleAtNextAnimationFrame(e)});return(r=e.call(this,t,n,o)||this)._register(o),r}return a(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(v);t.ScrollableElement=m;var y=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}return a(t,e),t}(v);t.SmoothScrollableElement=y;var b=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._element=t,n.onScroll(function(e){e.scrollTopChanged&&(n._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(n._element.scrollLeft=e.scrollLeft)}),n.scanDomNode(),n}return a(t,e),t.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},t}(m);function _(e){var t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,h.isMacintosh&&(t.className+=" mac"),t}t.DomScrollableElement=b}),define(i[958],n([0,1,7,106,17,5,2,834]),function(e,t,i,n,r,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(){}return e.prototype.dispose=function(){},e}();t.BreadcrumbsItem=c;var l=function(e){function t(t,i){void 0===i&&(i=t);var n=e.call(this)||this;return n.text=t,n.title=i,n}return a(t,e),t.prototype.equals=function(e){return e===this||e instanceof t&&e.text===this.text&&e.title===this.title},t.prototype.render=function(e){var t=document.createElement("div");t.title=this.title,t.innerText=this.text,e.appendChild(t)},t}(c);t.SimpleBreadcrumbsItem=l;var u=function(){function e(e){var t=this;this._disposables=new Array,this._onDidSelectItem=new o.Emitter,this._onDidFocusItem=new o.Emitter,this._onDidChangeFocus=new o.Emitter,this.onDidSelectItem=this._onDidSelectItem.event,this.onDidFocusItem=this._onDidFocusItem.event,this.onDidChangeFocus=this._onDidChangeFocus.event,this._items=new Array,this._nodes=new Array,this._freeNodes=new Array,this._focusedItemIdx=-1,this._selectedItemIdx=-1,this._domNode=document.createElement("div"),this._domNode.className="monaco-breadcrumbs",this._domNode.tabIndex=0,this._domNode.setAttribute("role","list"),this._scrollable=new n.DomScrollableElement(this._domNode,{vertical:2,horizontal:1,horizontalScrollbarSize:3,useShadows:!1,scrollYToX:!0}),this._disposables.push(this._scrollable),this._disposables.push(i.addStandardDisposableListener(this._domNode,"click",function(e){return t._onClick(e)})),e.appendChild(this._scrollable.getDomNode()),this._styleElement=i.createStyleSheet(this._domNode);var r=i.trackFocus(this._domNode);this._disposables.push(r),this._disposables.push(r.onDidBlur(function(e){return t._onDidChangeFocus.fire(!1)})),this._disposables.push(r.onDidFocus(function(e){return t._onDidChangeFocus.fire(!0)}))}return e.prototype.dispose=function(){s.dispose(this._disposables),s.dispose(this._pendingLayout),this._onDidSelectItem.dispose(),this._onDidFocusItem.dispose(),this._onDidChangeFocus.dispose(),this._domNode.remove(),this._disposables.length=0,this._nodes.length=0,this._freeNodes.length=0},e.prototype.layout=function(e){e&&i.Dimension.equals(e,this._dimension)||(this._pendingLayout&&this._pendingLayout.dispose(),this._pendingLayout=e?this._updateDimensions(e):this._updateScrollbar())},e.prototype._updateDimensions=function(e){var t=this,n=[];return n.push(i.modify(function(){t._dimension=e,t._domNode.style.width=e.width+"px",t._domNode.style.height=e.height+"px",n.push(t._updateScrollbar())})),s.combinedDisposable(n)},e.prototype._updateScrollbar=function(){var e=this;return i.measure(function(){i.measure(function(){e._scrollable.setRevealOnScroll(!1),e._scrollable.scanDomNode(),e._scrollable.setRevealOnScroll(!0)})})},e.prototype.style=function(e){var t="";e.breadcrumbsBackground&&(t+=".monaco-breadcrumbs { background-color: "+e.breadcrumbsBackground+"}"),e.breadcrumbsForeground&&(t+=".monaco-breadcrumbs .monaco-breadcrumb-item { color: "+e.breadcrumbsForeground+"}\n"),e.breadcrumbsFocusForeground&&(t+=".monaco-breadcrumbs .monaco-breadcrumb-item.focused { color: "+e.breadcrumbsFocusForeground+"}\n"),e.breadcrumbsFocusAndSelectionForeground&&(t+=".monaco-breadcrumbs .monaco-breadcrumb-item.focused.selected { color: "+e.breadcrumbsFocusAndSelectionForeground+"}\n"),e.breadcrumbsHoverForeground&&(t+=".monaco-breadcrumbs .monaco-breadcrumb-item:hover:not(.focused):not(.selected) { color: "+e.breadcrumbsHoverForeground+"}\n"),this._styleElement.innerHTML!==t&&(this._styleElement.innerHTML=t)},e.prototype.domFocus=function(){var e=this._focusedItemIdx>=0?this._focusedItemIdx:this._items.length-1;e>=0&&e0&&this._focus(this._focusedItemIdx-1,e)},e.prototype.focusNext=function(e){this._focusedItemIdx+1=0&&this._reveal(t,!1)},e.prototype._reveal=function(e,t){var i=this._nodes[e];if(i){var n=this._scrollable.getScrollDimensions().width,r=this._scrollable.getScrollPosition().scrollLeft;(!t||i.offsetLeft>r+n||i.offsetLeft0?this._freeNodes.pop():document.createElement("div"))&&(this._renderItem(t,i),this._domNode.appendChild(i),this._nodes.push(i))}this.layout(void 0)},e.prototype._renderItem=function(e,t){i.clearNode(t),t.className="",e.render(t),t.tabIndex=-1,t.setAttribute("role","listitem"),i.addClass(t,"monaco-breadcrumb-item")},e.prototype._onClick=function(e){for(var t=e.target;t;t=t.parentElement){var i=this._nodes.indexOf(t);if(i>=0){this._focus(i,e),this._select(i,e);break}}},e}();t.BreadcrumbsWidget=u}),define(i[177],n([0,1,25,2,104,7,5,105,106,855,897,12,68,107,311,17,134,13]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,f,g,v,m,y){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var b={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(e){return[e]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},_=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}();t.ElementsDragAndDropData=_;var S=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}();t.ExternalElementsDragAndDropData=S;var C=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){var t;if(e.types&&(t=this.types).splice.apply(t,[0,this.types.length].concat(e.types)),e.files){this.files.splice(0,this.files.length);for(var i=0;i=this.items.length?(this.rangeMap=new l.RangeMap,this.rangeMap.splice(0,0,v),this.items=v,d=[]):(this.rangeMap.splice(e,t,v),d=(r=this.items).splice.apply(r,[e,t].concat(v)));var m=i.length-t,y=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),b=l.shift(p,m),_=g.Range.intersect(y,b);for(u=_.start;u<_.end;u++)this.updateItemInDOM(this.items[u],u);for(var S=0,C=g.Range.relativeComplement(b,y);Sthis.scrollWidth&&(this.scrollWidth=t.width,this.scrollableElement.setScrollDimensions({scrollWidth:this.scrollWidth+10}))}},e.prototype.rerender=function(){if(this.supportDynamicHeights){for(var e=0,t=this.items;e=-1&&ei&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}},e.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},e.prototype.getItemIndexFromEventTarget=function(e){for(var t=e;t instanceof HTMLElement&&t!==this.rowsContainer;){var i=t.getAttribute("data-index");if(i){var n=Number(i);if(!isNaN(n))return n}t=t.parentElement}},e.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},e.prototype._rerender=function(e,t){var i,n,r=this.getRenderRange(e,t);e===this.elementTop(r.start)?(i=r.start,n=0):r.end-r.start>1&&(i=r.start+1,n=this.elementTop(i)-e);for(var o=0;;){for(var s=this.getRenderRange(e,t),a=!1,c=s.start;c1){var y=0===this.orientation?1:0,b=0===this.orientation?{getHorizontalSashTop:function(e){return s.getSashPosition(e)}}:{getVerticalSashLeft:function(e){return s.getSashPosition(e)}},_=new l.Sash(this.sashContainer,b,{orientation:y,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),S=0===this.orientation?function(e){return{sash:_,start:e.startY,current:e.currentY,alt:e.altKey}}:function(e){return{sash:_,start:e.startX,current:e.currentX,alt:e.altKey}},C=n.Event.map(_.onDidStart,S)(this.onSashStart,this),w=n.Event.map(_.onDidChange,S)(this.onSashChange,this),E=n.Event.map(_.onDidEnd,function(){return c.firstIndex(s.sashItems,function(e){return e.sash===_})})(this.onSashEnd,this),I=_.onDidReset(function(){return s._onDidSashReset.fire(c.firstIndex(s.sashItems,function(e){return e.sash===_}))}),x=i.combinedDisposable([C,w,E,I,_]),D={sash:_,disposable:x};this.sashItems.splice(r-1,0,D)}a.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(v=t.index),this.relayout(r,v),this.state=h.Idle,"number"!=typeof t&&"distribute"===t.type&&this.distributeViewSizes()},t.prototype.removeView=function(e,t){if(this.state!==h.Idle)throw new Error("Cant modify splitview");if(this.state=h.Busy,e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");var i=this.viewItems.splice(e,1)[0];if(i.disposable.dispose(),this.viewItems.length>=1){var n=Math.max(e-1,0);this.sashItems.splice(n,1)[0].disposable.dispose()}return this.relayout(),this.state=h.Idle,t&&"distribute"===t.type&&this.distributeViewSizes(),i.view},t.prototype.moveView=function(e,t){if(this.state!==h.Idle)throw new Error("Cant modify splitview");var i=this.getViewSize(e),n=this.removeView(e);this.addView(n,i,t)},t.prototype.swapViews=function(e,t){if(this.state!==h.Idle)throw new Error("Cant modify splitview");if(e>t)return this.swapViews(t,e);var i=this.getViewSize(e),n=this.getViewSize(t),r=this.removeView(t),o=this.removeView(e);this.addView(r,i,e),this.addView(o,n,t)},t.prototype.relayout=function(e,t){var i=this.viewItems.reduce(function(e,t){return e+t.size},0),n="number"==typeof e?[e]:void 0,r="number"==typeof t?[t]:void 0;this.resize(this.viewItems.length-1,this.size-i,void 0,n,r),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},t.prototype.layout=function(e){var t=this,i=Math.max(this.size,this.contentSize);if(this.size=e,this.proportions)for(var n=0;n0&&(this.proportions=this.viewItems.map(function(t){return t.size/e.contentSize}))},t.prototype.onSashStart=function(e){var t=this,n=e.sash,r=e.start,o=e.alt,s=c.firstIndex(this.sashItems,function(e){return e.sash===n}),a=i.combinedDisposable([d.domEvent(document.body,"keydown")(function(e){return l(t.sashDragState.current,e.altKey)}),d.domEvent(document.body,"keyup")(function(){return l(t.sashDragState.current,!1)})]),l=function(e,i){var n,r=t.viewItems.map(function(e){return e.size}),o=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY;(t.inverseAltBehavior&&(i=!i),i)&&(s===t.sashItems.length-1?(o=((n=t.viewItems[s]).view.minimumSize-n.size)/2,c=(n.view.maximumSize-n.size)/2):(o=((n=t.viewItems[s+1]).size-n.view.maximumSize)/2,c=(n.size-n.view.minimumSize)/2));t.sashDragState={start:e,current:e,index:s,sizes:r,minDelta:o,maxDelta:c,alt:i,disposable:a}};l(r,o)},t.prototype.onSashChange=function(e){var t=e.current,i=this.sashDragState,n=i.index,r=i.start,o=i.sizes,s=i.alt,a=i.minDelta,c=i.maxDelta;this.sashDragState.current=t;var l=t-r,u=this.resize(n,l,o,void 0,void 0,a,c);if(s){var d=n===this.sashItems.length-1,h=this.viewItems.map(function(e){return e.size}),p=d?n:n+1,f=this.viewItems[p],g=f.size-f.view.maximumSize,v=f.size-f.view.minimumSize,m=d?n-1:n+1;this.resize(m,-u,h,void 0,void 0,g,v)}this.distributeEmptySpace(),this.layoutViews()},t.prototype.onSashEnd=function(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions()},t.prototype.onViewChange=function(e,t){var i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"==typeof t?t:e.size,t=s.clamp(t,e.view.minimumSize,e.view.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout(i,void 0)))},t.prototype.resizeView=function(e,t){var i=this;if(this.state!==h.Idle)throw new Error("Cant modify splitview");if(this.state=h.Busy,!(e<0||e>=this.viewItems.length)){var n=this.viewItems[e];t=Math.round(t);var r=(t=s.clamp(t,n.view.minimumSize,n.view.maximumSize))-n.size;if(0!==r&&e0){var d=c.range(e-1,-1),p=d.reduce(function(e,t){return e+(i.viewItems[t].size-i.viewItems[t].view.minimumSize)},0),f=d.reduce(function(e,t){return e+(i.viewItems[t].view.maximumSize-i.viewItems[t].size)},0),g=s.clamp(-r,-p,f);this.resize(e-1,g)}this.distributeEmptySpace(),this.layoutViews(),this.saveProportions(),this.state=h.Idle}},t.prototype.distributeViewSizes=function(){for(var e=Math.floor(this.size/this.viewItems.length),t=0;t=this.viewItems.length?-1:this.viewItems[e].size},t.prototype.resize=function(e,t,i,n,r,o,a){var l=this;if(void 0===i&&(i=this.viewItems.map(function(e){return e.size})),void 0===o&&(o=Number.NEGATIVE_INFINITY),void 0===a&&(a=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var u=c.range(e,-1),d=c.range(e+1,this.viewItems.length);if(r)for(var h=0,p=r;h=0;i--){var n=this.viewItems[i],r=s.clamp(n.size+t,n.view.minimumSize,n.view.maximumSize);t-=r-n.size,n.size=r}},t.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce(function(e,t){return e+t.size},0),this.viewItems.forEach(function(e){return e.layout()}),this.sashItems.forEach(function(e){return e.sash.layout()});var e=!1,t=this.viewItems.map(function(t){return e=t.size-t.view.minimumSize>0||e});e=!1;var i=this.viewItems.map(function(t){return e=t.view.maximumSize-t.size>0||e}),n=this.viewItems.slice().reverse();e=!1;var r=n.map(function(t){return e=t.size-t.view.minimumSize>0||e}).reverse();e=!1;var o=n.map(function(t){return e=t.view.maximumSize-t.size>0||e}).reverse();this.sashItems.forEach(function(e,n){var s=!(t[n]&&o[n+1]),a=!(i[n]&&r[n+1]);e.sash.state=s&&a?0:s&&!a?1:!s&&a?2:3})},t.prototype.getSashPosition=function(e){for(var t=0,i=0;ithis.children.length)throw new Error("Invalid index");this.splitview.addView(e,t,i),this._addChild(e,i),this.onDidChildrenChange()},e.prototype._addChild=function(e,t){var i=0===t,n=t===this.children.length;this.children.splice(t,0,e),e.orthogonalStartSash=this.splitview.sashes[t-1],e.orthogonalEndSash=this.splitview.sashes[t],i||(this.children[t-1].orthogonalEndSash=this.splitview.sashes[t-1]),n||(this.children[t+1].orthogonalStartSash=this.splitview.sashes[t])},e.prototype.removeChild=function(e,t){if(e<0||e>=this.children.length)throw new Error("Invalid index");this.splitview.removeView(e,t),this._removeChild(e),this.onDidChildrenChange()},e.prototype._removeChild=function(e){var t=0===e,i=e===this.children.length-1,n=this.children.splice(e,1)[0];return t||(this.children[e-1].orthogonalEndSash=this.splitview.sashes[e-1]),i||(this.children[e].orthogonalStartSash=this.splitview.sashes[Math.max(e-1,0)]),n},e.prototype.moveChild=function(e,t){if(e!==t){if(e<0||e>=this.children.length)throw new Error("Invalid from index");if(t<0||t>this.children.length)throw new Error("Invalid to index");e=this.children.length)throw new Error("Invalid from index");if(t<0||t>=this.children.length)throw new Error("Invalid to index");this.splitview.swapViews(e,t),i=[this.children[t].orthogonalStartSash,this.children[t].orthogonalEndSash,this.children[e].orthogonalStartSash,this.children[e].orthogonalEndSash],this.children[e].orthogonalStartSash=i[0],this.children[e].orthogonalEndSash=i[1],this.children[t].orthogonalStartSash=i[2],this.children[t].orthogonalEndSash=i[3],n=[this.children[t],this.children[e]],this.children[e]=n[0],this.children[t]=n[1]}},e.prototype.resizeChild=function(e,t){if(e<0||e>=this.children.length)throw new Error("Invalid index");this.splitview.resizeView(e,t)},e.prototype.distributeViewSizes=function(t){if(void 0===t&&(t=!1),this.splitview.distributeViewSizes(),t)for(var i=0,n=this.children;i=this.children.length)throw new Error("Invalid index");return this.splitview.getViewSize(e)},e.prototype.onDidChildrenChange=function(){var e=i.Event.map(i.Event.any.apply(i.Event,this.children.map(function(e){return e.onDidChange})),function(){});this.childrenChangeDisposable.dispose(),this.childrenChangeDisposable=e(this._onDidChange.fire,this._onDidChange);var t=i.Event.any.apply(i.Event,this.children.map(function(e,t){return i.Event.map(e.onDidSashReset,function(e){return[t].concat(e)})}));this.childrenSashResetDisposable.dispose(),this.childrenSashResetDisposable=t(this._onDidSashReset.fire,this._onDidSashReset),this._onDidChange.fire(void 0)},e.prototype.trySet2x2=function(e){if(2!==this.children.length||2!==e.children.length)return r.Disposable.None;if(this.getChildSize(0)!==e.getChildSize(0))return r.Disposable.None;var t=this.children,i=t[0],n=t[1],o=e.children,s=o[0],a=o[1];if(!(i instanceof h&&n instanceof h))return r.Disposable.None;if(!(s instanceof h&&a instanceof h))return r.Disposable.None;0===this.orientation?(n.linkedWidthNode=s.linkedHeightNode=i,i.linkedWidthNode=a.linkedHeightNode=n,a.linkedWidthNode=i.linkedHeightNode=s,s.linkedWidthNode=n.linkedHeightNode=a):(s.linkedWidthNode=n.linkedHeightNode=i,a.linkedWidthNode=i.linkedHeightNode=n,i.linkedWidthNode=a.linkedHeightNode=s,n.linkedWidthNode=s.linkedHeightNode=a);var c=this.splitview.sashes[0],l=e.splitview.sashes[0];return c.linkedSash=l,l.linkedSash=c,this._onDidChange.fire(void 0),e._onDidChange.fire(void 0),r.toDisposable(function(){c.linkedSash=l.linkedSash=void 0,i.linkedHeightNode=i.linkedWidthNode=void 0,n.linkedHeightNode=n.linkedWidthNode=void 0,s.linkedHeightNode=s.linkedWidthNode=void 0,a.linkedHeightNode=a.linkedWidthNode=void 0})},e.prototype.dispose=function(){for(var e=0,t=this.children;e=0;s--){var a=t.children[s],c=a instanceof d?a.orthogonalSize:a.size,u=0===t.size?0:Math.round(i*c/t.size);o+=u,0===s&&(u+=i-o),r.addChild(e(a,n,u),u,0)}return r}return new h(t.view,l(t.orientation),n)}(this._root,n,i),this.root.layout(i),this.root.orthogonalLayout(n)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.root.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.root.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimumWidth",{get:function(){return this.root.minimumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimumHeight",{get:function(){return this.root.minimumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumWidth",{get:function(){return this.root.maximumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumHeight",{get:function(){return this.root.maximumHeight},enumerable:!0,configurable:!0}),e.prototype.style=function(e){this.styles=e,this.root.style(e)},e.prototype.layout=function(e,t){var i=1===this.root.orientation?[t,e]:[e,t],n=i[0],r=i[1];this.root.layout(n),this.root.orthogonalLayout(r)},e.prototype.addView=function(e,t,i){this.disposable2x2.dispose(),this.disposable2x2=r.Disposable.None;var o=s.tail2(i),a=o[0],c=o[1],u=this.getNode(a),p=u[0],f=u[1];if(f instanceof d){var g=new h(e,l(f.orientation),f.orthogonalSize);f.addChild(g,t,c)}else{var v=s.tail2(p)[1],m=s.tail2(a)[1];v.removeChild(m);var y=new d(f.orientation,this.styles,this.proportionalLayout,f.size,f.orthogonalSize);v.addChild(y,f.size,m),y.orthogonalLayout(f.orthogonalSize);var b=new h(f.view,v.orientation,f.size);y.addChild(b,0,0),"number"!=typeof t&&"split"===t.type&&(t=n.Sizing.Split(0));g=new h(e,v.orientation,f.size);y.addChild(g,t,c)}},e.prototype.removeView=function(e,t){this.disposable2x2.dispose(),this.disposable2x2=r.Disposable.None;var i=s.tail2(e),n=i[0],o=i[1],a=this.getNode(n),c=a[0],u=a[1];if(!(u instanceof d))throw new Error("Invalid location");var p=u.children[o];if(!(p instanceof h))throw new Error("Invalid location");if(u.removeChild(o,t),0===u.children.length)throw new Error("Invalid grid state");if(u.children.length>1)return p.view;if(0===c.length){var f=u.children[0];return f instanceof h?p.view:(u.removeChild(0),this.root=f,p.view)}var g=s.tail2(c)[1],v=s.tail2(n)[1],m=u.children[0];u.removeChild(0);var y=g.children.map(function(e,t){return g.getChildSize(t)});if(g.removeChild(v,t),m instanceof d){y.splice.apply(y,[v,1].concat(m.children.map(function(e){return e.size})));for(var b=0;b=t.children.length)throw new Error("Invalid location");var o=t.children[n];return i.push(t),this.getNode(r,o,i)},e.prototype.trySet2x2=function(){if(this.disposable2x2.dispose(),this.disposable2x2=r.Disposable.None,2===this.root.children.length){var e=this.root.children,t=e[0],i=e[1];t instanceof d&&i instanceof d&&(this.disposable2x2=t.trySet2x2(i))}},e.prototype.dispose=function(){this.onDidSashResetRelay.dispose(),this.root.dispose(),this.element&&this.element.parentElement&&this.element.parentElement.removeChild(this.element)},e}();t.GridView=p}),define(i[992],n([0,1,2,17,408,5,7,355]),function(e,t,i,n,r,o,s){"use strict";function c(e){return!!e.children}function l(e,t){var i=d(t);return{offset:0===t?e.top:3===t?e.left+e.width:1===t?e.top+e.height:e.left,range:{start:1===i?e.top:e.left,end:1===i?e.top+e.height:e.left+e.width}}}function u(e,t){return t.length%2==0?r.orthogonal(e):e}function d(e){return 0===e||1===e?0:1}function h(e,t){return 1===t?e.width:e.height}function p(e,t,i){if(u(e,t)===d(i)){var r=n.tail2(t),o=r[0],s=r[1];return 3!==i&&1!==i||(s+=1),o.concat([s])}s=3===i||1===i?1:0;return t.concat([s])}function f(e){var t=e.parentElement;if(!t)throw new Error("Invalid grid element");if(/\bmonaco-grid-view\b/.test(t.className))return[];var i=function(e){var t=e.parentElement;if(!t)throw new Error("Invalid grid element");for(var i=t.firstElementChild,n=0;i!==e&&i!==t.lastElementChild&&i;)i=i.nextElementSibling,n++;return n}(t);return f(t.parentElement.parentElement.parentElement).concat([i])}Object.defineProperty(t,"__esModule",{value:!0}),t.isGridBranchNode=c,t.getRelativeLocation=p;var g=function(){function e(e,t){void 0===t&&(t={}),this.views=new Map,this.disposables=[],this.sashResetSizing="distribute",this.gridview=new r.GridView(t),this.disposables.push(this.gridview),this.gridview.onDidSashReset(this.doResetViewSize,this,this.disposables),this._addView(e,0,[0])}return Object.defineProperty(e.prototype,"orientation",{get:function(){return this.gridview.orientation},set:function(e){this.gridview.orientation=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.gridview.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.gridview.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimumWidth",{get:function(){return this.gridview.minimumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimumHeight",{get:function(){return this.gridview.minimumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumWidth",{get:function(){return this.gridview.maximumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumHeight",{get:function(){return this.gridview.maximumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this.gridview.onDidChange},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.gridview.element},enumerable:!0,configurable:!0}),e.prototype.style=function(e){this.gridview.style(e)},e.prototype.layout=function(e,t){this.gridview.layout(e,t)},e.prototype.hasView=function(e){return this.views.has(e)},e.prototype.addView=function(e,t,i,o){if(this.views.has(e))throw new Error("Can't add same view twice");var s=d(o);1===this.views.size&&this.orientation!==s&&(this.orientation=s);var a,c=this.getViewLocation(i),l=p(this.gridview.orientation,c,o);if("split"===t){var u=n.tail2(c)[1];a=r.Sizing.Split(u)}else a="distribute"===t?r.Sizing.Distribute:t;this._addView(e,a,l)},e.prototype._addView=function(e,t,i){this.views.set(e,e.element),this.gridview.addView(e,t,i)},e.prototype.removeView=function(e,t){if(1===this.views.size)throw new Error("Can't remove last view");var i=this.getViewLocation(e);this.gridview.removeView(i,"distribute"===t?r.Sizing.Distribute:void 0),this.views.delete(e)},e.prototype.moveView=function(e,t,i,r){var o=this.getViewLocation(e),s=n.tail2(o),a=s[0],c=s[1],l=this.getViewLocation(i),u=p(this.gridview.orientation,l,r),d=n.tail2(u),h=d[0],f=d[1];n.equals(a,h)?this.gridview.moveView(a,c,f):(this.removeView(e,"number"==typeof t?void 0:t),this.addView(e,t,i,r))},e.prototype.swapViews=function(e,t){var i=this.getViewLocation(e),n=this.getViewLocation(t);return this.gridview.swapViews(i,n)},e.prototype.resizeView=function(e,t){var i=this.getViewLocation(e);return this.gridview.resizeView(i,t)},e.prototype.getViewSize=function(e){var t=this.getViewLocation(e),i=this.gridview.getViewSize(t);return 1===u(this.orientation,t)?i.width:i.height},e.prototype.getViewSize2=function(e){var t=this.getViewLocation(e);return this.gridview.getViewSize(t)},e.prototype.maximizeViewSize=function(e){var t=this.getViewLocation(e);this.gridview.maximizeViewSize(t)},e.prototype.distributeViewSizes=function(){this.gridview.distributeViewSizes()},e.prototype.getViews=function(){return this.gridview.getViews()},e.prototype.getNeighborViews=function(e,t,i){void 0===i&&(i=!1);var n=this.getViewLocation(e),r=this.getViews(),o=function e(t,i){if(0===i.length)return t;if(!c(t))throw new Error("Invalid location");var n=i[0],r=i.slice(1);return e(t.children[n],r)}(r,n),s=l(o.box,t);return i&&(0===t&&0===o.box.top?s={offset:r.box.top+r.box.height,range:s.range}:3===t&&o.box.left+o.box.width===r.box.width?s={offset:0,range:s.range}:1===t&&o.box.top+o.box.height===r.box.height?s={offset:0,range:s.range}:2===t&&0===o.box.left&&(s={offset:r.box.left+r.box.width,range:s.range})),function(e,t,i){var n=[];return function e(t,i,r){if(c(t))for(var o=0,s=t.children;o=p.end||p.start>=h.end)||n.push(t)}var h,p}(e,t,i),n}(r,function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 3;case 3:return 2}}(t),s).map(function(e){return e.view})},e.prototype.getViewLocation=function(e){var t=this.views.get(e);if(!t)throw new Error("View not found");return f(t)},e.prototype.doResetViewSize=function(e){if("split"===this.sashResetSizing){var t=u(this.orientation,e),i=h(this.gridview.getViewSize(e),t),r=n.tail2(e),o=r[0],s=r[1],a=i+h(this.gridview.getViewSize(o.concat([s+1])),t);this.gridview.resizeView(e,Math.floor(a/2))}else{o=n.tail2(e)[0];this.gridview.distributeViewSizes(o)}},e.prototype.dispose=function(){this.disposables=i.dispose(this.disposables)},e}();t.Grid=g;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.serializeNode=function(e,i){var n=0===i?e.box.width:e.box.height;return c(e)?{type:"branch",data:e.children.map(function(e){return t.serializeNode(e,r.orthogonal(i))}),size:n}:{type:"leaf",data:e.view.toJSON(),size:n}},t.deserializeNode=function(e,i,n,o){if(!e||"object"!=typeof e)throw new Error("Invalid JSON");if("branch"===e.type){if(!Array.isArray(e.data))throw new Error("Invalid JSON: 'data' property of branch must be an array.");for(var s=[],a=0,c=0,l=e.data;c0?t:1)/(e.groups.length-i),s=0,a=e.groups;s0&&(e=(this.panel.dropBackground||t.DefaultDragOverBackgroundColor).toString()),this.panel.dropTargetElement.style.backgroundColor=e},t.DefaultDragOverBackgroundColor=new l.Color(new l.RGBA(128,128,128,.5)),t}(i.Disposable),p=function(){function e(){}return e.prototype.canDrag=function(e){return!0},e.prototype.canDrop=function(e,t){return!0},e}();t.DefaultPanelDndController=p;var f=function(e){function t(t,i){void 0===i&&(i={});var r=e.call(this)||this;return r.dndContext={draggable:null},r.panelItems=[],r.animationTimer=void 0,r._onDidDrop=r._register(new n.Emitter),r.onDidDrop=r._onDidDrop.event,r.dnd=i.dnd,r.el=s.append(t,s.$(".monaco-panel-view")),r.splitview=r._register(new u.SplitView(r.el)),r.onDidSashChange=r.splitview.onDidSashChange,r}return a(t,e),t.prototype.addPanel=function(e,t,r){void 0===r&&(r=this.splitview.length);var o=[],a=!1;o.push(s.scheduleAtNextAnimationFrame(function(){return a=!0})),n.Event.filter(e.onDidChange,function(){return a})(this.setupAnimation,this,o);var c={panel:e,disposable:i.combinedDisposable(o)};if(this.panelItems.splice(r,0,c),e.width=this.width,this.splitview.addView(e,t,r),this.dnd){var l=new h(e,this.dnd,this.dndContext);o.push(l),l.onDidDrop(this._onDidDrop.fire,this._onDidDrop,o)}},t.prototype.removePanel=function(e){var t=c.firstIndex(this.panelItems,function(t){return t.panel===e});-1!==t&&(this.splitview.removeView(t),this.panelItems.splice(t,1)[0].disposable.dispose())},t.prototype.movePanel=function(e,t){var i=c.firstIndex(this.panelItems,function(t){return t.panel===e}),n=c.firstIndex(this.panelItems,function(e){return e.panel===t});if(-1!==i&&-1!==n){var r=this.panelItems.splice(i,1)[0];this.panelItems.splice(n,0,r),this.splitview.moveView(i,n)}},t.prototype.resizePanel=function(e,t){var i=c.firstIndex(this.panelItems,function(t){return t.panel===e});-1!==i&&this.splitview.resizeView(i,t)},t.prototype.getPanelSize=function(e){var t=c.firstIndex(this.panelItems,function(t){return t.panel===e});return-1===t?-1:this.splitview.getViewSize(t)},t.prototype.layout=function(e,t){this.width=t;for(var i=0,n=this.panelItems;i0){i=r[0].getStartPosition();var o=t.getTopForPosition(i.lineNumber,i.column);n=t.getScrollTop()-o}}return new e(i,n)},e.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},e}();t.StableEditorScrollState=r}),define(i[306],n([0,1,7,161,76,2]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toClientCoordinates=function(){return new c(this.x-i.StandardWindow.scrollX,this.y-i.StandardWindow.scrollY)},e}();t.PageCoordinates=s;var c=function(){function e(e,t){this.clientX=e,this.clientY=t}return e.prototype.toPageCoordinates=function(){return new s(this.clientX+i.StandardWindow.scrollX,this.clientY+i.StandardWindow.scrollY)},e}();t.ClientCoordinates=c;var l=function(){return function(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n}}();function u(e){var t=i.getDomNodePagePosition(e);return new l(t.left,t.top,t.width,t.height)}t.EditorPagePosition=l,t.createEditorPagePosition=u;var d=function(e){function t(t,i){var n=e.call(this,t)||this;return n.pos=new s(n.posx,n.posy),n.editorPos=u(i),n}return a(t,e),t}(r.StandardMouseEvent);t.EditorMouseEvent=d;var h=function(){function e(e){this._editorViewDomNode=e}return e.prototype._create=function(e){return new d(e,this._editorViewDomNode)},e.prototype.onContextMenu=function(e,t){var n=this;return i.addDisposableListener(e,"contextmenu",function(e){t(n._create(e))})},e.prototype.onMouseUp=function(e,t){var n=this;return i.addDisposableListener(e,"mouseup",function(e){t(n._create(e))})},e.prototype.onMouseDown=function(e,t){var n=this;return i.addDisposableListener(e,"mousedown",function(e){t(n._create(e))})},e.prototype.onMouseLeave=function(e,t){var n=this;return i.addDisposableNonBubblingMouseOutListener(e,function(e){t(n._create(e))})},e.prototype.onMouseMoveThrottled=function(e,t,n,r){var o=this;return i.addDisposableThrottledListener(e,"mousemove",t,function(e,t){return n(e,o._create(t))},r)},e}();t.EditorMouseEventFactory=h;var p=function(e){function t(t){var i=e.call(this)||this;return i._editorViewDomNode=t,i._globalMouseMoveMonitor=i._register(new n.GlobalMouseMoveMonitor),i._keydownListener=null,i}return a(t,e),t.prototype.startMonitoring=function(e,t,n){var r=this;this._keydownListener=i.addStandardDisposableListener(document,"keydown",function(e){e.toKeybinding().isModifierKey()||r._globalMouseMoveMonitor.stopMonitoring(!0)},!0);this._globalMouseMoveMonitor.startMonitoring(function(t,i){return e(t,new d(i,r._editorViewDomNode))},t,function(){r._keydownListener.dispose(),n()})},t}(o.Disposable);t.GlobalEditorMouseMoveMonitor=p}),define(i[753],n([0,1,5,2]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){var t=e.call(this)||this;return t._onCodeEditorAdd=t._register(new i.Emitter),t.onCodeEditorAdd=t._onCodeEditorAdd.event,t._onCodeEditorRemove=t._register(new i.Emitter),t.onCodeEditorRemove=t._onCodeEditorRemove.event,t._onDiffEditorAdd=t._register(new i.Emitter),t.onDiffEditorAdd=t._onDiffEditorAdd.event,t._onDiffEditorRemove=t._register(new i.Emitter),t.onDiffEditorRemove=t._onDiffEditorRemove.event,t._onDidChangeTransientModelProperty=t._register(new i.Emitter),t.onDidChangeTransientModelProperty=t._onDidChangeTransientModelProperty.event,t._transientWatchers={},t._codeEditors=Object.create(null),t._diffEditors=Object.create(null),t}return a(t,e),t.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)},t.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},t.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map(function(t){return e._codeEditors[t]})},t.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)},t.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)},t.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map(function(t){return e._diffEditors[t]})},t.prototype.getFocusedCodeEditor=function(){for(var e=null,t=0,i=this.listCodeEditors();ti||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,i){var n,r,o,s;return i.startLineNumbert.endLineNumber?(o=i.endLineNumber,s=i.endColumn):i.endLineNumber===t.endLineNumber?(o=i.endLineNumber,s=Math.max(i.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(n,r,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,i){var n=t.startLineNumber,r=t.startColumn,o=t.endLineNumber,s=t.endColumn,a=i.startLineNumber,c=i.startColumn,l=i.endLineNumber,u=i.endColumn;return nl?(o=l,s=u):o===l&&(s=Math.min(s,u)),n>o?null:n===o&&r>s?null:new e(n,r,o,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new i.Position(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new i.Position(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,i){return new e(this.startLineNumber,this.startColumn,t,i)},e.prototype.setStartPosition=function(t,i){return new e(t,i,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,i){return void 0===i&&(i=t),new e(t.lineNumber,t.column,i.lineNumber,i.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},e}();t.Range=n}),define(i[321],n([0,1,9,27,8]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,i,n,r){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selectionStartPosition=n,this.selectionEndPosition=r}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,i){t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var i=this.value.substring(this.selectionStart,e);if(-1===i.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,i,1);var n=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,i){for(var n=0,r=-1;-1!==(r=t.indexOf("\n",r+1));)n++;return[e,i*t.length,n]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n,r){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,s=e.selectionStart,a=e.selectionEnd,c=t.value,l=t.selectionStart,u=t.selectionEnd;r&&o.length>0&&s===a&&l===u&&!i.startsWith(c,o)&&i.endsWith(c,o)&&(s=0,a=0);var d=o.substring(a),h=c.substring(u),p=i.commonSuffixLength(d,h);c=c.substring(0,c.length-p);var f=(o=o.substring(0,o.length-p)).substring(0,s),g=c.substring(0,l),v=i.commonPrefixLength(f,g);if(c=c.substring(v),o=o.substring(v),l-=v,s-=v,u-=v,a-=v,n&&l===u&&o.length>0){var m=null;if(l===c.length?i.startsWith(c,o)&&(m=c.substring(o.length)):i.endsWith(c,o)&&(m=c.substring(0,c.length-o.length)),null!==m&&m.length>0&&(/\uFE0F/.test(m)||i.containsEmoji(m)))return{text:m,replaceCharCnt:0}}return l===u?o===c&&0===s&&a===o.length&&l===c.length&&-1===c.indexOf("\n")&&i.containsFullWidthCharacter(c)?{text:"",replaceCharCnt:0}:{text:c,replaceCharCnt:f.length-v}:{text:c,replaceCharCnt:a-s}},e.EMPTY=new e("",0,0,null,null),e}();t.TextAreaState=o;var s=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var i=t*e._LINES_PER_PAGE,n=i+1,o=i+e._LINES_PER_PAGE;return new r.Range(n,1,o+1,1)},e.fromEditorSelection=function(t,i,s,a){var c,l=e._getPageOfLine(s.startLineNumber),u=e._getRangeForPage(l),d=e._getPageOfLine(s.endLineNumber),h=e._getRangeForPage(d),p=u.intersectRanges(new r.Range(1,1,s.startLineNumber,s.startColumn)),f=i.getValueInRange(p,1),g=i.getLineCount(),v=i.getLineMaxColumn(g),m=h.intersectRanges(new r.Range(s.endLineNumber,s.endColumn,g,v)),y=i.getValueInRange(m,1);if(l===d||l+1===d)c=i.getValueInRange(s,1);else{var b=u.intersectRanges(s),_=h.intersectRanges(s);c=i.getValueInRange(b,1)+String.fromCharCode(8230)+i.getValueInRange(_,1)}if(a){f.length>500&&(f=f.substring(f.length-500,f.length)),y.length>500&&(y=y.substring(0,500)),c.length>1e3&&(c=c.substring(0,500)+String.fromCharCode(8230)+c.substring(c.length-500,c.length))}return new o(f+c+y,f.length,f.length+c.length,new n.Position(s.startLineNumber,s.startColumn),new n.Position(s.endLineNumber,s.endColumn))},e._LINES_PER_PAGE=10,e}();t.PagedScreenReaderStrategy=s}),define(i[322],n([0,1,178,5,2,25,8]),function(e,t,i,n,r,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},c=function(){function e(e,t){void 0===t&&(t={});var i=this;this._onDidUpdate=new n.Emitter,this.onDidUpdate=this._onDidUpdate.event,this._editor=e,this._options=o.mixin(t,a,!1),this.disposed=!1,this._disposables=[],this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._disposables.push(this._editor.onDidDispose(function(){return i.dispose()})),this._disposables.push(this._editor.onDidUpdateDiff(function(){return i._onDiffUpdated()})),this._options.followsCaret&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeCursorPosition(function(e){i.ignoreSelectionChange||(i.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeModel(function(e){i.revealFirst=!0})),this._init()}return e.prototype._init=function(){this._editor.getLineChanges()},e.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))},e.prototype._compute=function(e){var t=this;this.ranges=[],e&&e.forEach(function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(function(e){t.ranges.push({rhs:!0,range:new s.Range(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):t.ranges.push({rhs:!0,range:new s.Range(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})}),this.ranges.sort(function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},e.prototype._initIdx=function(e){var t=!1,i=this._editor.getPosition();if(i){for(var n=0,r=this.ranges.length;n=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var r=n.range.getStartPosition();this._editor.setPosition(r),this._editor.revealPositionInCenter(r,t)}finally{this.ignoreSelectionChange=!1}}},e.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},e.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},e.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},e.prototype.dispose=function(){r.dispose(this._disposables),this._disposables.length=0,this._onDidUpdate.dispose(),this.ranges=[],this.disposed=!0},e}();t.DiffNavigator=c}),define(i[71],n([0,1,8]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.insert=function(e,t){return{range:new i.Range(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,t){return{range:e,text:t}},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},e}();t.EditOperation=n}),define(i[325],n([0,1,9,71,8]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){this.selection=e,this.cursors=t}return e.prototype.getEditOperations=function(e,t){for(var i=s(e,this.cursors),n=0,r=i.length;n=0;o--)t[o].lineNumber===t[o+1].lineNumber&&t.splice(o,1);for(var s=[],a=0,c=0,l=t.length,u=1,d=e.getLineCount();u<=d;u++){var h=e.getLineContent(u),p=h.length+1,f=0;if(!(c255?255:0|e},e.Empty=new e(0,0,0,0),e}();t.RGBA8=i}),define(i[47],n([0,1,27,8]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t,i,n,r){var o=e.call(this,t,i,n,r)||this;return o.selectionStartLineNumber=t,o.selectionStartColumn=i,o.positionLineNumber=n,o.positionColumn=r,o}return a(t,e),t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},t.prototype.setEndPosition=function(e,i){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,i):new t(e,i,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new i.Position(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,i){return 0===this.getDirection()?new t(e,i,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,i)},t.fromPositions=function(e,i){return void 0===i&&(i=e),new t(e.lineNumber,e.column,i.lineNumber,i.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var i=0,n=e.length;i=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var i=0;i=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;for(var o=0,s=0,a=i;a<=n;a++){var c=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(o=c,s=1):s++)}if(e=i&&o<=n&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var i=t-e+1,n=this.getStartLineNumber(),r=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>r)return null;if(i+e>r)return this._lines.splice(e-this._rendLineNumberStart,r-e+1);for(var o=[],s=0;si))for(var a=Math.max(t,s.fromLineNumber),c=Math.min(i,s.toLineNumber),l=a;l<=c;l++){var u=l-this._rendLineNumberStart;this._lines[u].onTokensChanged(),n=!0}}return n},e}();t.RenderedLinesCollection=r;var o=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new r(function(){return t._host.createVisibleLine()})}return e.prototype._createDomNode=function(){var e=i.createFastDomNode(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return e.layoutInfo},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var i=0,n=t.length;it)(c=t)<=(s=Math.min(i,r.rendLineNumberStart-1))&&(this._insertLinesBefore(r,c,s,n,t),r.linesLength+=s-c+1);else if(r.rendLineNumberStart0&&(this._removeLinesBefore(r,a),r.linesLength-=a)}if(r.rendLineNumberStart=t,r.rendLineNumberStart+r.linesLength-1i){var s,a,c=Math.max(0,i-r.rendLineNumberStart+1);(a=(s=r.linesLength-1)-c+1)>0&&(this._removeLinesAfter(r,a),r.linesLength-=a)}return this._finishRendering(r,!1,n),r},e.prototype._renderUntouchedLines=function(e,t,i,n,r){for(var o=e.rendLineNumberStart,s=e.lines,a=t;a<=i;a++){var c=o+a;s[a].layoutLine(c,n[c-r])}},e.prototype._insertLinesBefore=function(e,t,i,n,r){for(var o=[],s=0,a=t;a<=i;a++)o[s++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var i=0;i=0;s--){var a=e.lines[s];n[s]&&(a.setDomNode(o),o=o.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,i){var n=document.createElement("div");n.innerHTML=t;for(var r=0;r4294967295?4294967295:0|e}t.Uint8Matrix=i,t.toUint8=function(e){return e<0?0:e>255?255:0|e},t.toUint32=n,t.toUint32Array=function(e){for(var t=e.length,i=new Uint32Array(t),r=0;r=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}();t.CharacterClassifier=n;var r=function(){function e(){this._actual=new n(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}();t.CharacterSet=r}),define(i[197],n([0,1,158]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r,o=function(e){function t(t){for(var i=e.call(this,0)||this,n=0,r=t.length;n1&&m>1;){if(f.charCodeAt(v-2)!==g.charCodeAt(m-2))break;v--,m--}(v>1||m>1)&&this._pushTrimWhitespaceCharChange(r,o+1,1,v,c+1,1,m);for(var y=a._getLastNonBlankColumn(f,1),b=a._getLastNonBlankColumn(g,1),_=f.length+1,S=g.length+1;y<_&&b=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e.prototype.redo=function(e){for(var t=0;t0){var e=this.past.pop();try{e.undo(this.model)}catch(e){return i.onUnexpectedError(e),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},e.prototype.canUndo=function(){return this.past.length>0||null!==this.currentOpenStackElement},e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(e){return i.onUnexpectedError(e),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},e.prototype.canRedo=function(){return this.future.length>0},e}();t.EditStack=s}),define(i[800],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(){}}();function n(e,t,i,n,r){var o;for(r.spacesDiff=0,r.looksLikeAlignment=!1,o=0;o0&&a>0||l>0&&u>0)){var d=Math.abs(a-u),h=Math.abs(s-l);if(0===d)return r.spacesDiff=h,void(h>0&&0<=l-1&&l-10?s++:y>1&&a++,n(c,l,f,m,d),!d.looksLikeAlignment)){var w=d.spacesDiff;w<=8&&u[w]++,c=f,l=m}}var E=r;s!==a&&(E=sx&&(x=t,I=e)}),4===I&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(I=2),{insertSpaces:E,tabSize:I}}}),define(i[802],n([0,1]),function(e,t){"use strict";function i(e){return(1&e.metadata)>>>0}function n(e,t){e.metadata=254&e.metadata|t<<0}function r(e){return(2&e.metadata)>>>1==1}function o(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function s(e){return(4&e.metadata)>>>2==1}function a(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function c(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function l(e,t){e.metadata=207&e.metadata|t<<4}function u(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeColor=i,t.getNodeIsInOverviewRuler=function(e){return(8&e.metadata)>>>3==1},t.setNodeStickiness=function(e,t){l(e,t)};var d=function(){function e(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,n(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,a(this,!1),l(this,1),c(this,!1),u(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,o(this,!1)}return e.prototype.reset=function(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;a(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),l(this,this.options.stickiness),c(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),u(this,this.options.collapseOnReplaceEdit)},e.prototype.setCachedOffsets=function(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}();t.IntervalNode=d,t.SENTINEL=new d(null,0,0),t.SENTINEL.parent=t.SENTINEL,t.SENTINEL.left=t.SENTINEL,t.SENTINEL.right=t.SENTINEL,n(t.SENTINEL,0);var h=function(){function e(){this.root=t.SENTINEL,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,i,n,a,c){return this.root===t.SENTINEL?[]:function(e,i,n,a,c,l){var u=e.root,d=0,h=0,p=0,f=[],g=0;for(;u!==t.SENTINEL;)if(r(u))o(u.left,!1),o(u.right,!1),u===u.parent.right&&(d-=u.parent.delta),u=u.parent;else{if(!r(u.left)){if(d+u.maxEndn)o(u,!0);else{if((p=d+u.end)>=i){u.setCachedOffsets(h,p,l);var v=!0;a&&u.ownerId&&u.ownerId!==a&&(v=!1),c&&s(u)&&(v=!1),v&&(f[g++]=u)}o(u,!0),u.right===t.SENTINEL||r(u.right)||(d+=u.delta,u=u.right)}}return o(e.root,!1),f}(this,e,i,n,a,c)},e.prototype.search=function(e,i,n){return this.root===t.SENTINEL?[]:g(this,e,i,n)},e.prototype.collectNodesFromOwner=function(e){return function(e,i){var n=e.root,s=[],a=0;for(;n!==t.SENTINEL;)r(n)?(o(n.left,!1),o(n.right,!1),n=n.parent):n.left===t.SENTINEL||r(n.left)?(n.ownerId===i&&(s[a++]=n),o(n,!0),n.right===t.SENTINEL||r(n.right)||(n=n.right)):n=n.left;return o(e.root,!1),s}(this,e)},e.prototype.collectNodesPostOrder=function(){return function(e){var i=e.root,n=[],s=0;for(;i!==t.SENTINEL;)r(i)?(o(i.left,!1),o(i.right,!1),i=i.parent):i.left===t.SENTINEL||r(i.left)?i.right===t.SENTINEL||r(i.right)?(n[s++]=i,o(i,!0)):i=i.right:i=i.left;return o(e.root,!1),n}(this)},e.prototype.insert=function(e){v(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){m(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){for(var i=e,n=0;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;var r=i.start+n,o=i.end+n;i.setCachedOffsets(r,o,t)},e.prototype.acceptReplace=function(e,i,n,s){for(var a=function(e,i,n){var s=e.root,a=0,c=0,l=0,u=[],d=0;for(;s!==t.SENTINEL;)if(r(s))o(s.left,!1),o(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!r(s.left)){if(a+s.maxEndn?o(s,!0):((l=a+s.end)>=i&&(s.setCachedOffsets(c,l,0),u[d++]=s),o(s,!0),s.right===t.SENTINEL||r(s.right)||(a+=s.delta,s=s.right))}return o(e.root,!1),u}(this,e,e+i),c=0,l=a.length;cn?(a.start+=l,a.end+=l,a.delta+=l,(a.delta<-1073741824||a.delta>1073741824)&&(e.requestNormalizeDelta=!0),o(a,!0)):(o(a,!0),a.right===t.SENTINEL||r(a.right)||(c+=a.delta,a=a.right))}o(e.root,!1)}(this,e,e+i,n),this._normalizeDeltaIfNecessary();for(c=0,l=a.length;ci)&&(1!==n&&(2===n||t))}function f(e,t,i,n,r){var o=function(e){return(48&e.metadata)>>>4}(e),s=0===o||2===o,a=1===o||2===o,c=i-t,l=n,u=Math.min(c,l),d=e.start,h=!1,f=e.end,g=!1;t<=d&&f<=i&&function(e){return(64&e.metadata)>>>6==1}(e)&&(e.start=t,h=!0,e.end=t,g=!0);var v=r?1:c>0?2:0;if(!h&&p(d,s,t,v)&&(h=!0),!g&&p(f,a,t,v)&&(g=!0),u>0&&!r){v=c>l?2:0;!h&&p(d,s,t+u,v)&&(h=!0),!g&&p(f,a,t+u,v)&&(g=!0)}v=r?1:0;!h&&p(d,s,i,v)&&(e.start=t+l,h=!0),!g&&p(f,a,i,v)&&(e.end=t+l,g=!0);var m=l-c;h||(e.start=Math.max(0,d+m)),g||(e.end=Math.max(0,f+m)),e.start>e.end&&(e.end=e.start)}function g(e,i,n,a){for(var c=e.root,l=0,u=0,d=0,h=[],p=0;c!==t.SENTINEL;)if(r(c))o(c.left,!1),o(c.right,!1),c===c.parent.right&&(l-=c.parent.delta),c=c.parent;else if(c.left===t.SENTINEL||r(c.left)){u=l+c.start,d=l+c.end,c.setCachedOffsets(u,d,a);var f=!0;i&&c.ownerId&&c.ownerId!==i&&(f=!1),n&&s(c)&&(f=!1),f&&(h[p++]=c),o(c,!0),c.right===t.SENTINEL||r(c.right)||(l+=c.delta,c=c.right)}else c=c.left;return o(e.root,!1),h}function v(e,r){if(e.root===t.SENTINEL)return r.parent=t.SENTINEL,r.left=t.SENTINEL,r.right=t.SENTINEL,n(r,0),e.root=r,e.root;!function(e,i){var r=0,o=e.root,s=i.start,a=i.end;for(;;){var c=E(s,a,o.start+r,o.end+r);if(c<0){if(o.left===t.SENTINEL){i.start-=r,i.end-=r,i.maxEnd-=r,o.left=i;break}o=o.left}else{if(o.right===t.SENTINEL){i.start-=r+o.delta,i.end-=r+o.delta,i.maxEnd-=r+o.delta,o.right=i;break}r+=o.delta,o=o.right}}i.parent=o,i.left=t.SENTINEL,i.right=t.SENTINEL,n(i,1)}(e,r),w(r.parent);for(var o=r;o!==e.root&&1===i(o.parent);){var s;if(o.parent===o.parent.parent.left)1===i(s=o.parent.parent.right)?(n(o.parent,0),n(s,0),n(o.parent.parent,1),o=o.parent.parent):(o===o.parent.right&&b(e,o=o.parent),n(o.parent,0),n(o.parent.parent,1),_(e,o.parent.parent));else 1===i(s=o.parent.parent.left)?(n(o.parent,0),n(s,0),n(o.parent.parent,1),o=o.parent.parent):(o===o.parent.left&&_(e,o=o.parent),n(o.parent,0),n(o.parent.parent,1),b(e,o.parent.parent))}return n(e.root,0),r}function m(e,r){var o,s;if(r.left===t.SENTINEL?(s=r,(o=r.right).delta+=r.delta,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),o.start+=r.delta,o.end+=r.delta):r.right===t.SENTINEL?(o=r.left,s=r):((o=(s=function(e){for(;e.left!==t.SENTINEL;)e=e.left;return e}(r.right)).right).start+=s.delta,o.end+=s.delta,o.delta+=s.delta,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),s.start+=r.delta,s.end+=r.delta,s.delta=r.delta,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0)),s===e.root)return e.root=o,n(o,0),r.detach(),y(),C(o),void(e.root.parent=t.SENTINEL);var a,c=1===i(s);if(s===s.parent.left?s.parent.left=o:s.parent.right=o,s===r?o.parent=s.parent:(s.parent===r?o.parent=s:o.parent=s.parent,s.left=r.left,s.right=r.right,s.parent=r.parent,n(s,i(r)),r===e.root?e.root=s:r===r.parent.left?r.parent.left=s:r.parent.right=s,s.left!==t.SENTINEL&&(s.left.parent=s),s.right!==t.SENTINEL&&(s.right.parent=s)),r.detach(),c)return w(o.parent),s!==r&&(w(s),w(s.parent)),void y();for(w(o),w(o.parent),s!==r&&(w(s),w(s.parent));o!==e.root&&0===i(o);)o===o.parent.left?(1===i(a=o.parent.right)&&(n(a,0),n(o.parent,1),b(e,o.parent),a=o.parent.right),0===i(a.left)&&0===i(a.right)?(n(a,1),o=o.parent):(0===i(a.right)&&(n(a.left,0),n(a,1),_(e,a),a=o.parent.right),n(a,i(o.parent)),n(o.parent,0),n(a.right,0),b(e,o.parent),o=e.root)):(1===i(a=o.parent.left)&&(n(a,0),n(o.parent,1),_(e,o.parent),a=o.parent.left),0===i(a.left)&&0===i(a.right)?(n(a,1),o=o.parent):(0===i(a.left)&&(n(a.right,0),n(a,1),b(e,a),a=o.parent.left),n(a,i(o.parent)),n(o.parent,0),n(a.left,0),_(e,o.parent),o=e.root));n(o,0),y()}function y(){t.SENTINEL.parent=t.SENTINEL,t.SENTINEL.delta=0,t.SENTINEL.start=0,t.SENTINEL.end=0}function b(e,i){var n=i.right;n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=i.delta,n.end+=i.delta,i.right=n.left,n.left!==t.SENTINEL&&(n.left.parent=i),n.parent=i.parent,i.parent===t.SENTINEL?e.root=n:i===i.parent.left?i.parent.left=n:i.parent.right=n,n.left=i,i.parent=n,C(i),C(n)}function _(e,i){var n=i.left;i.delta-=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start-=n.delta,i.end-=n.delta,i.left=n.right,n.right!==t.SENTINEL&&(n.right.parent=i),n.parent=i.parent,i.parent===t.SENTINEL?e.root=n:i===i.parent.right?i.parent.right=n:i.parent.left=n,n.right=i,i.parent=n,C(i),C(n)}function S(e){var i=e.end;if(e.left!==t.SENTINEL){var n=e.left.maxEnd;n>i&&(i=n)}if(e.right!==t.SENTINEL){var r=e.right.maxEnd+e.delta;r>i&&(i=r)}return i}function C(e){e.maxEnd=S(e)}function w(e){for(;e!==t.SENTINEL;){var i=S(e);if(e.maxEnd===i)return;e.maxEnd=i,e=e.parent}}function E(e,t,i,n){return e===i?t-n:e-i}t.IntervalTree=h,t.nodeAcceptEdit=f,t.recomputeMaxEnd=C,t.intervalCompare=E}),define(i[803],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return e.prototype.next=function(){if(this.right!==t.SENTINEL)return n(this.right);for(var e=this;e.parent!==t.SENTINEL&&e.parent.left!==e;)e=e.parent;return e.parent===t.SENTINEL?t.SENTINEL:e.parent},e.prototype.prev=function(){if(this.left!==t.SENTINEL)return r(this.left);for(var e=this;e.parent!==t.SENTINEL&&e.parent.right!==e;)e=e.parent;return e.parent===t.SENTINEL?t.SENTINEL:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}();function n(e){for(;e.left!==t.SENTINEL;)e=e.left;return e}function r(e){for(;e.right!==t.SENTINEL;)e=e.right;return e}function o(e){return e===t.SENTINEL?0:e.size_left+e.piece.length+o(e.right)}function s(e){return e===t.SENTINEL?0:e.lf_left+e.piece.lineFeedCnt+s(e.right)}function a(){t.SENTINEL.parent=t.SENTINEL}function c(e,i){var n=i.right;n.size_left+=i.size_left+(i.piece?i.piece.length:0),n.lf_left+=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),i.right=n.left,n.left!==t.SENTINEL&&(n.left.parent=i),n.parent=i.parent,i.parent===t.SENTINEL?e.root=n:i.parent.left===i?i.parent.left=n:i.parent.right=n,n.left=i,i.parent=n}function l(e,i){var n=i.left;i.left=n.right,n.right!==t.SENTINEL&&(n.right.parent=i),n.parent=i.parent,i.size_left-=n.size_left+(n.piece?n.piece.length:0),i.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),i.parent===t.SENTINEL?e.root=n:i===i.parent.right?i.parent.right=n:i.parent.left=n,n.right=i,i.parent=n}function u(e,i,n,r){for(;i!==e.root&&i!==t.SENTINEL;)i.parent.left===i&&(i.parent.size_left+=n,i.parent.lf_left+=r),i=i.parent}function d(e,t){var i=0,n=0;if(t!==e.root){if(0===i){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;i=o((t=t.parent).left)-t.size_left,n=s(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n}for(;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}t.TreeNode=i,t.SENTINEL=new i(null,0),t.SENTINEL.parent=t.SENTINEL,t.SENTINEL.left=t.SENTINEL,t.SENTINEL.right=t.SENTINEL,t.SENTINEL.color=0,t.leftest=n,t.righttest=r,t.calculateSize=o,t.calculateLF=s,t.resetSentinel=a,t.leftRotate=c,t.rightRotate=l,t.rbDelete=function(e,i){var r,h;if(r=i.left===t.SENTINEL?(h=i).right:i.right===t.SENTINEL?(h=i).left:(h=n(i.right)).right,h===e.root)return e.root=r,r.color=0,i.detach(),a(),void(e.root.parent=t.SENTINEL);var p=1===h.color;if(h===h.parent.left?h.parent.left=r:h.parent.right=r,h===i?(r.parent=h.parent,d(e,r)):(h.parent===i?r.parent=h:r.parent=h.parent,d(e,r),h.left=i.left,h.right=i.right,h.parent=i.parent,h.color=i.color,i===e.root?e.root=h:i===i.parent.left?i.parent.left=h:i.parent.right=h,h.left!==t.SENTINEL&&(h.left.parent=h),h.right!==t.SENTINEL&&(h.right.parent=h),h.size_left=i.size_left,h.lf_left=i.lf_left,d(e,h)),i.detach(),r.parent.left===r){var f=o(r),g=s(r);if(f!==r.parent.size_left||g!==r.parent.lf_left){var v=f-r.parent.size_left,m=g-r.parent.lf_left;r.parent.size_left=f,r.parent.lf_left=g,u(e,r.parent,v,m)}}if(d(e,r.parent),p)a();else{for(var y;r!==e.root&&0===r.color;)r===r.parent.left?(1===(y=r.parent.right).color&&(y.color=0,r.parent.color=1,c(e,r.parent),y=r.parent.right),0===y.left.color&&0===y.right.color?(y.color=1,r=r.parent):(0===y.right.color&&(y.left.color=0,y.color=1,l(e,y),y=r.parent.right),y.color=r.parent.color,r.parent.color=0,y.right.color=0,c(e,r.parent),r=e.root)):(1===(y=r.parent.left).color&&(y.color=0,r.parent.color=1,l(e,r.parent),y=r.parent.left),0===y.left.color&&0===y.right.color?(y.color=1,r=r.parent):(0===y.left.color&&(y.right.color=0,y.color=1,c(e,y),y=r.parent.left),y.color=r.parent.color,r.parent.color=0,y.left.color=0,l(e,r.parent),r=e.root));r.color=0,a()}},t.fixInsert=function(e,t){for(d(e,t);t!==e.root&&1===t.parent.color;){var i;t.parent===t.parent.parent.left?1===(i=t.parent.parent.right).color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&c(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,l(e,t.parent.parent)):1===(i=t.parent.parent.left).color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&l(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,c(e,t.parent.parent))}e.root.color=0},t.updateTreeMetadata=u,t.recomputeTreeMetadata=d}),define(i[804],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(){this.changeType=1}}();t.ModelRawFlush=i;var n=function(){return function(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}}();t.ModelRawLineChanged=n;var r=function(){return function(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}();t.ModelRawLinesDeleted=r;var o=function(){return function(e,t,i){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}();t.ModelRawLinesInserted=o;var s=function(){return function(){this.changeType=5}}();t.ModelRawEOLChanged=s;var a=function(){function e(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n}return e.prototype.containsEvent=function(e){for(var t=0,i=this.changes.length;t=0;var t=null;try{t=i.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0})}catch(e){return null}if(!t)return null;var r=!this.isRegex&&!e;return r&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(r=this.matchCase),new l(t,this.wordSeparators?n.getMapForWordSeparators(this.wordSeparators):null,r?this.searchString:null)},e}();function c(e){if(!e||0===e.length)return!1;for(var t=0,i=e.length;t=i)break;var n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}t.SearchParams=a,t.isMultilineRegexSource=c;var l=function(){return function(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}();function u(e,t,i){if(!i)return new s.FindMatch(e,null);for(var n=[],r=0,o=t.length;r>0);t[r]>=e?n=r-1:t[r+1]>=e?(i=r,n=r):i=r+1}return i+1},e}(),h=function(){function e(){}return e.findMatches=function(e,t,i,n,r){var o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,i,new f(o.wordSeparators,o.regex),n,r):this._doFindMatchesLineByLine(e,i,o,n,r):[]},e._getMultilineMatchRange=function(e,t,i,n,r,s){var a,c,l=0;if(a=n?t+r+(l=n.findLineFeedCountBeforeOffset(r)):t+r,n){var u=n.findLineFeedCountBeforeOffset(r+s.length)-l;c=a+s.length+u}else c=a+s.length;var d=e.getPositionAt(a),h=e.getPositionAt(c);return new o.Range(d.lineNumber,d.column,h.lineNumber,h.column)},e._doFindMatchesMultiline=function(e,t,i,n,r){var o,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),c="\r\n"===e.getEOL()?new d(a):null,l=[],h=0;for(i.reset(0);o=i.next(a);)if(l[h++]=u(this._getMultilineMatchRange(e,s,a,c,o.index,o[0]),o,n),h>=r)return l;return l},e._doFindMatchesLineByLine=function(e,t,i,n,r){var o=[],s=0;if(t.startLineNumber===t.endLineNumber){var a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,s,o,n,r),o}var c=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(i,c,t.startLineNumber,t.startColumn-1,s,o,n,r);for(var l=t.startLineNumber+1;l=l))return r;return r}var y,b=new f(e.wordSeparators,e.regex);b.reset(0);do{if((y=b.next(t))&&(a[r++]=u(new o.Range(i,y.index+1+n,i,y.index+1+y[0].length+n),y,c),r>=l))return r}while(y);return r},e.findNextMatch=function(e,t,i,n){var r=t.parseSearchRequest();if(!r)return null;var o=new f(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,i,o,n):this._doFindNextMatchLineByLine(e,i,o,n)},e._doFindNextMatchMultiline=function(e,t,i,n){var s=new r.Position(t.lineNumber,1),a=e.getOffsetAt(s),c=e.getLineCount(),l=e.getValueInRange(new o.Range(s.lineNumber,s.column,c,e.getLineMaxColumn(c)),1),h="\r\n"===e.getEOL()?new d(l):null;i.reset(t.column-1);var p=i.next(l);return p?u(this._getMultilineMatchRange(e,a,l,h,p.index,p[0]),p,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.Position(1,1),i,n):null},e._doFindNextMatchLineByLine=function(e,t,i,n){var r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(i,s,o,t.column,n);if(a)return a;for(var c=1;c<=r;c++){var l=(o+c-1)%r,u=e.getLineContent(l+1),d=this._findFirstMatchInLine(i,u,l+1,1,n);if(d)return d}return null},e._findFirstMatchInLine=function(e,t,i,n,r){e.reset(n-1);var s=e.next(t);return s?u(new o.Range(i,s.index+1,i,s.index+1+s[0].length),s,r):null},e.findPreviousMatch=function(e,t,i,n){var r=t.parseSearchRequest();if(!r)return null;var o=new f(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,i,o,n):this._doFindPreviousMatchLineByLine(e,i,o,n)},e._doFindPreviousMatchMultiline=function(e,t,i,n){var s=this._doFindMatchesMultiline(e,new o.Range(1,1,t.lineNumber,t.column),i,n,9990);if(s.length>0)return s[s.length-1];var a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r.Position(a,e.getLineMaxColumn(a)),i,n):null},e._doFindPreviousMatchLineByLine=function(e,t,i,n){var r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(i,s,o,n);if(a)return a;for(var c=1;c<=r;c++){var l=(r+o-c-1)%r,u=e.getLineContent(l+1),d=this._findLastMatchInLine(i,u,l+1,n);if(d)return d}return null},e._findLastMatchInLine=function(e,t,i,n){var r,s=null;for(e.reset(0);r=e.next(t);)s=u(new o.Range(i,r.index+1,i,r.index+1+r[0].length),r,n);return s},e}();function p(e,t,i,n,r){return function(e,t,i,n,r){if(0===n)return!0;var o=t.charCodeAt(n-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){var s=t.charCodeAt(n);if(0!==e.get(s))return!0}return!1}(e,t,0,n,r)&&function(e,t,i,n,r){if(n+r===i)return!0;var o=t.charCodeAt(n+r);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){var s=t.charCodeAt(n+r-1);if(0!==e.get(s))return!0}return!1}(e,t,i,n,r)}t.TextModelSearch=h,t.isValidMatch=p;var f=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,i=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===i)return null;if(!(t=this._searchRegex.exec(e)))return null;var n=t.index,r=t[0].length;if(n===this._prevMatchStartIndex&&r===this._prevMatchLength)return null;if(this._prevMatchStartIndex=n,this._prevMatchLength=r,!this._wordSeparators||p(this._wordSeparators,e,i,n,r))return t}while(t);return null},e}();t.Searcher=f}),define(i[405],n([0,1,27,8,95,803,248]),function(e,t,i,n,r,o,s){"use strict";function a(e){var t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}Object.defineProperty(t,"__esModule",{value:!0}),t.AverageBufferSize=65535,t.createUintArray=a;var c=function(){return function(e,t,i,n,r){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=r}}();function l(e,t){void 0===t&&(t=!0);for(var i=[0],n=1,r=0,o=e.length;r126)&&(s=!1)}var h=new c(a(e),n,r,o,s);return e.length=0,h};var u=function(){return function(e,t,i,n,r){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=r}}();t.Piece=u;var d=function(){return function(e,t){this.buffer=e,this.lineStarts=t}}();t.StringBuffer=d;var h=function(){function e(e,t){var i=this;this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==o.SENTINEL&&e.iterate(e.root,function(e){return e!==o.SENTINEL&&i._pieces.push(e.piece),!0})}return e.prototype.read=function(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])},e}(),p=function(){function e(e){this._limit=e,this._cache=[]}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,i=this._cache,n=0;n=e)&&(i[n]=null,t=!0)}if(t){for(var o=[],s=0,a=i;s0){e[r].lineStarts||(e[r].lineStarts=l(e[r].buffer));var a=new u(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),n=this.rbInsertRight(n,a)}this._searchCache=new p(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var i=this,n=t.AverageBufferSize,r=n-Math.floor(n/3),o=2*r,s="",a=0,c=[];if(this.iterate(this.root,function(t){var n=i.getNodeContent(t),u=n.length;if(a<=r||a+u0){var u=s.replace(/\r\n|\r|\n/g,e);c.push(new d(u,l(u)))}this.create(c,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.createSnapshot=function(e){return new h(this,e)},e.prototype.equal=function(e){var t=this;if(this.getLength()!==e.getLength())return!1;if(this.getLineCount()!==e.getLineCount())return!1;return this.iterate(this.root,function(i){if(i===o.SENTINEL)return!0;var n=t.getNodeContent(i),r=n.length,s=e.nodeAt(0),a=e.nodeAt(0+r);return n===e.getValueInRange2(s,a)})},e.prototype.getOffsetAt=function(e,t){for(var i=0,n=this.root;n!==o.SENTINEL;)if(n.left!==o.SENTINEL&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return(i+=n.size_left)+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1);e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,r=e;t!==o.SENTINEL;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var s=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+s.index,0===s.index){var a=r-this.getOffsetAt(n+1,1);return new i.Position(n+1,a+1)}return new i.Position(n+1,s.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===o.SENTINEL){a=r-e-this.getOffsetAt(n+1,1);return new i.Position(n+1,a+1)}t=t.right}return new i.Position(1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(i,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(r+e.remainder,r+t.remainder)}var s=e.node,a=this._buffers[s.piece.bufferIndex].buffer,c=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start),l=a.substring(c+e.remainder,c+s.piece.length);for(s=s.next();s!==o.SENTINEL;){var u=this._buffers[s.piece.bufferIndex].buffer,d=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start);if(s===t.node){l+=u.substring(d,d+t.remainder);break}l+=u.substr(d,s.piece.length),s=s.next()}return l},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},e.prototype.getLineCharCode=function(e,t){var i=this.nodeAt2(e,t+1);if(i.remainder===i.node.piece.length){var n=i.node.next();if(!n)return 0;var r=this._buffers[n.piece.bufferIndex],o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.buffer.charCodeAt(o)}r=this._buffers[i.node.piece.bufferIndex];var s=(o=this.offsetInBuffer(i.node.piece.bufferIndex,i.node.piece.start))+i.remainder;return r.buffer.charCodeAt(s)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,i,r,o,a,c,l,u,d,h){var p,f=this._buffers[e.piece.bufferIndex],g=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),v=this.offsetInBuffer(e.piece.bufferIndex,o),m=this.offsetInBuffer(e.piece.bufferIndex,a);t.reset(v);var y={line:0,column:0};do{if(p=t.next(f.buffer)){if(p.index>=m)return d;this.positionInBuffer(e,p.index-g,y);var b=this.getLineFeedCnt(e.piece.bufferIndex,o,y),_=y.line===o.line?y.column-o.column+r:y.column+1,S=_+p[0].length;if(h[d++]=s.createFindMatch(new n.Range(i+b,_,i+b,S),p,l),p.index+p[0].length>=m)return d;if(d>=u)return d}}while(p);return d},e.prototype.findMatchesLineByLine=function(e,t,i,n){var r=[],o=0,a=new s.Searcher(t.wordSeparators,t.regex),c=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===c)return[];var l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];var u=this.positionInBuffer(c.node,c.remainder),d=this.positionInBuffer(l.node,l.remainder);if(c.node===l.node)return this.findMatchesInNode(c.node,a,e.startLineNumber,e.startColumn,u,d,t,i,n,o,r),r;for(var h=e.startLineNumber,p=c.node;p!==l.node;){var f=this.getLineFeedCnt(p.piece.bufferIndex,u,p.piece.end);if(f>=1){var g=this._buffers[p.piece.bufferIndex].lineStarts,v=this.offsetInBuffer(p.piece.bufferIndex,p.piece.start),m=g[u.line+f],y=h===e.startLineNumber?e.startColumn:1;if((o=this.findMatchesInNode(p,a,h,y,u,this.positionInBuffer(p,m-v),t,i,n,o,r))>=n)return r;h+=f}var b=h===e.startLineNumber?e.startColumn-1:0;if(h===e.endLineNumber){var _=this.getLineContent(h).substring(b,e.endColumn-1);return o=this._findMatchesInLine(t,a,_,e.endLineNumber,b,o,r,i,n),r}if((o=this._findMatchesInLine(t,a,this.getLineContent(h).substr(b),h,b,o,r,i,n))>=n)return r;h++,p=(c=this.nodeAt2(h,1)).node,u=this.positionInBuffer(c.node,c.remainder)}if(h===e.endLineNumber){var S=h===e.startLineNumber?e.startColumn-1:0;_=this.getLineContent(h).substring(S,e.endColumn-1);return o=this._findMatchesInLine(t,a,_,e.endLineNumber,S,o,r,i,n),r}var C=h===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(l.node,a,h,C,u,d,t,i,n,o,r),r},e.prototype._findMatchesInLine=function(e,t,i,o,a,c,l,u,d){var h,p=e.wordSeparators;if(!u&&e.simpleSearch){for(var f=e.simpleSearch,g=f.length,v=i.length,m=-g;-1!==(m=i.indexOf(f,m+g));)if((!p||s.isValidMatch(p,i,v,m,g))&&(l[c++]=new r.FindMatch(new n.Range(o,m+1+a,o,m+1+g+a),null),c>=d))return c;return c}t.reset(0);do{if((h=t.next(i))&&(l[c++]=s.createFindMatch(new n.Range(o,h.index+1+a,o,h.index+1+h[0].length+a),h,u),c>=d))return c}while(h);return c},e.prototype.insert=function(e,i,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==o.SENTINEL){var r=this.nodeAt(e),s=r.node,a=r.remainder,c=r.nodeStartOffset,l=s.piece,d=l.bufferIndex,h=this.positionInBuffer(s,a);if(0===s.piece.bufferIndex&&l.end.line===this._lastChangeBufferPos.line&&l.end.column===this._lastChangeBufferPos.column&&c+l.length===e&&i.lengthe){var p=[],f=new u(l.bufferIndex,h,l.end,this.getLineFeedCnt(l.bufferIndex,h,l.end),this.offsetInBuffer(d,l.end)-this.offsetInBuffer(d,h));if(this.shouldCheckCRLF()&&this.endWithCR(i))if(10===this.nodeCharCodeAt(s,a)){var g={line:f.start.line+1,column:0};f=new u(f.bufferIndex,g,f.end,this.getLineFeedCnt(f.bufferIndex,g,f.end),f.length-1),i+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(i))if(13===this.nodeCharCodeAt(s,a-1)){var v=this.positionInBuffer(s,a-1);this.deleteNodeTail(s,v),i="\r"+i,0===s.piece.length&&p.push(s)}else this.deleteNodeTail(s,h);else this.deleteNodeTail(s,h);var m=this.createNewPieces(i);f.length>0&&this.rbInsertRight(s,f);for(var y=s,b=0;b=0;l--)c=this.rbInsertLeft(c,a[l]);this.validateCRLFWithPrevNode(c),this.deleteNodes(i)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]),r=n,o=1;o=u))break;a=l+1}return i?(i.line=l,i.column=s-d,null):{line:l,column:s-d}},e.prototype.getLineFeedCnt=function(e,t,i){if(0===i.column)return i.line-t.line;var n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;var r=n[i.line+1],o=n[i.line]+i.column;if(r>o+1)return i.line-t.line;var s=o-1;return 13===this._buffers[e].buffer.charCodeAt(s)?i.line-t.line+1:i.line-t.line},e.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;tt.AverageBufferSize){for(var i=[];e.length>t.AverageBufferSize;){var n=e.charCodeAt(t.AverageBufferSize-1),r=void 0;13===n||n>=55296&&n<=56319?(r=e.substring(0,t.AverageBufferSize-1),e=e.substring(t.AverageBufferSize-1)):(r=e.substring(0,t.AverageBufferSize),e=e.substring(t.AverageBufferSize));var o=l(r);i.push(new u(this._buffers.length,{line:0,column:0},{line:o.length-1,column:r.length-o[o.length-1]},o.length-1,r.length)),this._buffers.push(new d(r,o))}var s=l(e);return i.push(new u(this._buffers.length,{line:0,column:0},{line:s.length-1,column:e.length-s[s.length-1]},s.length-1,e.length)),this._buffers.push(new d(e,s)),i}var a=this._buffers[0].buffer.length,c=l(e,!1),h=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===a&&0!==a&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},h=this._lastChangeBufferPos;for(var p=0;p=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){s=this.getAccumulatedValue(i,e-i.lf_left-2),l=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return u+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:u,nodeStartLineNumber:d-(e-1-i.lf_left)}),a.substring(c+s,c+l-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){s=this.getAccumulatedValue(i,e-i.lf_left-2),a=this._buffers[i.piece.bufferIndex].buffer,c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=a.substring(c+s,c+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,u+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==o.SENTINEL;){a=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){l=this.getAccumulatedValue(i,0),c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=a.substring(c,c+l-t)}c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=a.substr(c,i.piece.length),i=i.next()}return n},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,i=0;e!==o.SENTINEL;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var i=e.piece,n=this.positionInBuffer(e,t),r=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){var o=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(o!==r)return{index:o,remainder:0}}return{index:r,remainder:n.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,r=i.start.line+t+1;return r>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[r]-n[i.start.line]-i.start.column},e.prototype.deleteNodeTail=function(e,t){var i=e.piece,n=i.lineFeedCnt,r=this.offsetInBuffer(i.bufferIndex,i.end),s=t,a=this.offsetInBuffer(i.bufferIndex,s),c=this.getLineFeedCnt(i.bufferIndex,i.start,s),l=c-n,d=a-r,h=i.length+d;e.piece=new u(i.bufferIndex,i.start,s,c,h),o.updateTreeMetadata(this,e,d,l)},e.prototype.deleteNodeHead=function(e,t){var i=e.piece,n=i.lineFeedCnt,r=this.offsetInBuffer(i.bufferIndex,i.start),s=t,a=this.getLineFeedCnt(i.bufferIndex,s,i.end),c=a-n,l=r-this.offsetInBuffer(i.bufferIndex,s),d=i.length+l;e.piece=new u(i.bufferIndex,s,i.end,a,d),o.updateTreeMetadata(this,e,l,c)},e.prototype.shrinkNode=function(e,t,i){var n=e.piece,r=n.start,s=n.end,a=n.length,c=n.lineFeedCnt,l=t,d=this.getLineFeedCnt(n.bufferIndex,n.start,l),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,r);e.piece=new u(n.bufferIndex,n.start,l,d,h),o.updateTreeMetadata(this,e,h-a,d-c);var p=new u(n.bufferIndex,i,s,this.getLineFeedCnt(n.bufferIndex,i,s),this.offsetInBuffer(n.bufferIndex,s)-this.offsetInBuffer(n.bufferIndex,i)),f=this.rbInsertRight(e,p);this.validateCRLFWithPrevNode(f)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var r=l(t,!1),s=0;se)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;var r={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(r),r}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){for(var i=this.root,n=0;i!==o.SENTINEL;)if(i.left!==o.SENTINEL&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){var r=this.getAccumulatedValue(i,e-i.lf_left-2),s=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(r+t-1,s),nodeStartOffset:n}}if(i.lf_left+i.piece.lineFeedCnt===e-1){if((r=this.getAccumulatedValue(i,e-i.lf_left-2))+t-1<=i.piece.length)return{node:i,remainder:r+t-1,nodeStartOffset:n};t-=i.piece.length-r;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==o.SENTINEL;){if(i.piece.lineFeedCnt>0){s=this.getAccumulatedValue(i,0);var a=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,s),nodeStartOffset:a}}if(i.piece.length>=t-1)return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)};t-=i.piece.length,i=i.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)},e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===o.SENTINEL||0===e.piece.lineFeedCnt)return!1;var t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,r=i[n]+t.start.column;return n!==i.length-1&&(!(i[n+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r))},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==o.SENTINEL&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var i,n=[],r=this._buffers[e.piece.bufferIndex].lineStarts;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var s=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new u(e.piece.bufferIndex,e.piece.start,i,a,s),o.updateTreeMetadata(this,e,-1,-1),0===e.piece.length&&n.push(e);var c={line:t.piece.start.line+1,column:0},l=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,c,t.piece.end);t.piece=new u(t.piece.bufferIndex,c,t.piece.end,d,l),o.updateTreeMetadata(this,t,-1,-1),0===t.piece.length&&n.push(t);var h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(var p=0;p0){m.sort(function(e,t){return t.lineNumber-e.lineNumber}),w=[];l=0;for(var E=m.length;l0&&m[l-1].lineNumber===b)){var I=m[l].oldContent,x=this.getLineContent(b);0!==x.length&&x!==I&&-1===i.firstNonWhitespaceIndex(x)&&w.push(b)}}}return new r.ApplyEditsResult(S,C,w)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,i=e[0].range,r=e[e.length-1].range,o=new n.Range(i.startLineNumber,i.startColumn,r.endLineNumber,r.endColumn),s=i.startLineNumber,a=i.startColumn,c=[],l=0,u=e.length;l0){var h=c.lines.length,p=c.lines[0],f=c.lines[h-1];d=1===h?new n.Range(l,u,l,u+p.length):new n.Range(l,u,l+h-1,f.length+1)}else d=new n.Range(l,u,l,u);i=d.endLineNumber,r=d.endColumn,t.push(d),o=c}return t},e._sortOpsAscending=function(e,t){var i=n.Range.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i},e._sortOpsDescending=function(e,t){var i=n.Range.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i},e}();t.PieceTreeTextBuffer=s}),define(i[812],n([0,1,9,405,809]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,i,n,r,o,s,a){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=r,this._containsRTL=o,this._isBasicASCII=s,this._normalizeEOL=a}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var o=0,s=i.length;o=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},e.prototype._acceptChunk2=function(e){var t=n.createLineStarts(this._tmpLineStarts,e);this.chunks.push(new n.StringBuffer(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=i.containsRTL(e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new o(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=n.createLineStartsFast(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}();t.PieceTreeTextBufferBuilder=s}),define(i[249],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",t.DEFAULT_WORD_REGEXP=function(e){void 0===e&&(e="");for(var i="(-?\\d*\\.\\d\\w*)|([^",n=0,r=t.USUAL_WORD_SEPARATORS;n=0||(i+="\\"+o)}return i+="\\s]+)",new RegExp(i,"g")}(),t.ensureValidWordDefinition=function(e){var i=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)i=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),i=new RegExp(e.source,n)}return i.lastIndex=0,i},t.getWordAtText=function(e,t,i,n){t.lastIndex=0;var r=t.exec(i);if(!r)return null;var o=r[0].indexOf(" ")>=0?function(e,t,i,n){var r,o=e-1-n;for(t.lastIndex=0;r=t.exec(i);){var s=r.index||0;if(s>o)return null;if(t.lastIndex>=o)return{word:r[0],startColumn:n+1+s,endColumn:n+1+t.lastIndex}}return null}(e,t,i,n):function(e,t,i,n){var r,o=e-1-n,s=i.lastIndexOf(" ",o-1)+1;for(t.lastIndex=s;r=t.exec(i);){var a=r.index||0;if(a<=o&&t.lastIndex>=o)return{word:r[0],startColumn:n+1+a,endColumn:n+1+t.lastIndex}}return null}(e,t,i,n);return t.lastIndex=0,o}}),define(i[821],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._languageIdentifier=e}return e.prototype.getId=function(){return this._languageIdentifier.language},e.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},e}();t.FrankensteinMode=i}),define(i[166],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(t.IndentAction||(t.IndentAction={}));var i=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,i=e.notIn.length;ts&&(s=l)}return s}if("string"==typeof t)return o?"*"===t?5:t===r?10:0:0;if(t){var u=t.language,d=t.pattern,h=t.scheme,p=t.hasAccessToAllModels;if(!o&&!p)return 0;if(s=0,h)if(h===n.scheme)s=10;else{if("*"!==h)return 0;s=5}if(u)if(u===r)s=10;else{if("*"!==u)return 0;s=Math.max(s,5)}if(d){if(d!==n.fsPath&&!i.match(d,n.fsPath))return 0;s=10}return s}return 0}}),define(i[833],n([0,1,158,240]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){for(var t=0,i=0,r=0,o=e.length;rt&&(t=u),a>i&&(i=a),(d=s[2])>i&&(i=d)}t++,i++;var c=new n.Uint8Matrix(i,t,0);for(r=0,o=e.length;r=this._maxCharCode?0:this._states.get(e,t)},e}();t.StateMachine=r;var o=null;var s=null;var a=function(){function e(){}return e._createLink=function(e,t,i,n,r){var o=r-1;do{var s=t.charCodeAt(o);if(2!==e.get(s))break;o--}while(o>n);if(n>0){var a=t.charCodeAt(n-1),c=t.charCodeAt(o);(40===a&&41===c||91===a&&93===c||123===a&&125===c)&&o--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:o+2},url:t.substring(n,o+1)}},e.computeLinks=function(t,n){void 0===n&&(null===o&&(o=new r([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),n=o);for(var a=function(){if(null===s){s=new i.CharacterClassifier(0);for(var e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)s.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(e=0;e<".,;".length;e++)s.set(".,;".charCodeAt(e),2)}return s}(),c=[],l=1,u=t.getLineCount();l<=u;l++){for(var d=t.getLineContent(l),h=d.length,p=0,f=0,g=0,v=1,m=!1,y=!1,b=!1;p0&&e.getLanguageId(a-1)===o;)a--;return new i(e,o,a,s+1,e.getStartOffset(a),e.getEndOffset(s))};var i=function(){function e(e,t,i,n,r,o){this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=r,this._lastCharOffset=o}return e.prototype.getLineContent=function(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();t.ScopedLineTokens=i,t.ignoreBracketsInToken=function(e){return 0!=(7&e)}}),define(i[842],n([0,1,166]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(t){t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map(function(e){return new i.StandardAutoClosingPairConditional(e)}):t.brackets?this._autoClosingPairs=t.brackets.map(function(e){return new i.StandardAutoClosingPairConditional({open:e[0],close:e[1]})}):this._autoClosingPairs=[],this._autoCloseBefore="string"==typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},e.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},e.prototype.shouldAutoClosePair=function(e,t,i){if(0===t.getTokenCount())return!0;for(var n=t.findTokenIndexAtOffset(i-2),r=t.getStandardTokenType(n),o=0,s=this._autoClosingPairs;o=0?((n+=i?1:-1)<0?n=e.length-1:n%=e.length,e[n]):null},e.INSTANCE=new e,e}();t.BasicInplaceReplace=i}),define(i[849],n([0,1,11,9,166]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(t){var i=this;(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach(function(t){var n=e._createOpenBracketRegExp(t[0]),r=e._createCloseBracketRegExp(t[1]);n&&r&&i._brackets.push({open:t[0],openRegExp:n,close:t[1],closeRegExp:r})}),this._regExpRules=t.regExpRules||[]}return e.prototype.onEnter=function(e,t,i){for(var n=0,o=this._regExpRules.length;n0&&i.length>0)for(n=0,o=this._brackets.length;n0)for(n=0,o=this._brackets.length;n=0;i--)t+=e.charAt(i);return t}(e=i)),t}}(),f=function(){function e(){}return e._findPrevBracketInText=function(e,t,i,r){var o=i.match(e);if(!o)return null;var s=i.length-(o.index||0),a=o[0].length,c=r+s;return new n.Range(t,c-a+1,t,c+1)},e.findPrevBracketInToken=function(e,t,i,n,r){var o=p(i).substring(i.length-r,i.length-n);return this._findPrevBracketInText(e,t,o,n)},e.findNextBracketInText=function(e,t,i,r){var o=i.match(e);if(!o)return null;var s=o.index||0,a=o[0].length;if(0===a)return null;var c=r+s;return new n.Range(t,c+1,t,c+1+a)},e.findNextBracketInToken=function(e,t,i,n,r){var o=i.substring(n,r);return this.findNextBracketInText(e,t,o,n)},e}();t.BracketsUtils=f}),define(i[852],n([0,1,166,300,299]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,n){n=n||{},this._richEditBrackets=e,this._complexAutoClosePairs=t.filter(function(e){return e.open.length>1&&!!e.close}).map(function(e){return new i.StandardAutoClosingPairConditional(e)}),n.docComment&&this._complexAutoClosePairs.push(new i.StandardAutoClosingPairConditional({open:n.docComment.open,close:n.docComment.close}))}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,i=this._richEditBrackets.brackets.length;t=0))return{appendText:s.close}}}}return null},e}();t.BracketElectricCharacterSupport=o}),define(i[89],n([0,1,11,5,2,9,8,249,166,300,842,852,844,849,299]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(t,i,n){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var r=null;i&&(r=i._conf),this._conf=e._mergeConf(r,n),this.onEnter=e._handleOnEnter(this._conf),this.comments=e._handleComments(this._conf),this.characterPair=new u.CharacterPairSupport(this._conf),this.wordDefinition=this._conf.wordPattern||a.DEFAULT_WORD_REGEXP,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules&&(this.indentRulesSupport=new h.IndentRulesSupport(this._conf.indentationRules)),this.foldingRules=this._conf.folding||{}}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new f.RichEditBrackets(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){if(!this._electricCharacter){var e=[];this._conf.autoClosingPairs?e=this._conf.autoClosingPairs:this._conf.brackets&&(e=this._conf.brackets.map(function(e){return{open:e[0],close:e[1]}})),this._electricCharacter=new d.BracketElectricCharacterSupport(this.brackets,e,this._conf.__electricCharacterSupport)}return this._electricCharacter},enumerable:!0,configurable:!0}),e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleOnEnter=function(e){var t={},i=!0;return e.brackets&&(i=!1,t.brackets=e.brackets),e.indentationRules&&(i=!1),e.onEnterRules&&(i=!1,t.regExpRules=e.onEnterRules),i?null:new p.OnEnterSupport(t)},e._handleComments=function(e){var t=e.comments;if(!t)return null;var i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){var n=t.blockComment,r=n[0],o=n[1];i.blockCommentStartToken=r,i.blockCommentEndToken=o}return i},e}();t.RichEditSupport=g;var v=function(){return function(){}}();t.LanguageConfigurationChangeEvent=v;var m=function(){function e(){this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event,this._entries=[]}return e.prototype.register=function(e,t){var i=this,n=this._getRichEditSupport(e.id),o=new g(e,n,t);return this._entries[e.id]=o,this._onDidChange.fire({languageIdentifier:e}),r.toDisposable(function(){i._entries[e.id]===o&&(i._entries[e.id]=n,i._onDidChange.fire({languageIdentifier:e}))})},e.prototype._getRichEditSupport=function(e){return this._entries[e]||null},e.prototype.getIndentationRules=function(e){var t=this._entries[e];return t&&t.indentationRules||null},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,i){var n=l.createScopedLineTokens(t,i-1),r=this._getElectricCharacterSupport(n.languageId);return r?r.onElectricCharacter(e,n,i-n.firstCharOffset):null},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t&&t.comments||null},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():u.CharacterPairSupport.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,i){var n=l.createScopedLineTokens(t,i-1),r=this._getCharacterPairSupport(n.languageId);return!!r&&r.shouldAutoClosePair(e,n,i-n.firstCharOffset)},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return t?a.ensureValidWordDefinition(t.wordDefinition||null):a.ensureValidWordDefinition(null)},e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},e.prototype.getPrecedingValidLine=function(e,t,i){var n=e.getLanguageIdAtPosition(t,0);if(t>1){var r=void 0,o=-1;for(r=t-1;r>=1;r--){if(e.getLanguageIdAtPosition(r,0)!==n)return o;var s=e.getLineContent(r);if(!i.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return r;o=r}}return-1},e.prototype.getInheritIndentForLine=function(e,t,i){void 0===i&&(i=!0);var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!n)return null;if(t<=1)return{indentation:"",action:null};var r=this.getPrecedingValidLine(e,t,n);if(r<0)return null;if(r<1)return{indentation:"",action:null};var s=e.getLineContent(r);if(n.shouldIncrease(s)||n.shouldIndentNextLine(s))return{indentation:o.getLeadingWhitespace(s),action:c.IndentAction.Indent,line:r};if(n.shouldDecrease(s))return{indentation:o.getLeadingWhitespace(s),action:null,line:r};if(1===r)return{indentation:o.getLeadingWhitespace(e.getLineContent(r)),action:null,line:r};var a=r-1,l=n.getIndentMetadata(e.getLineContent(a));if(!(3&l)&&4&l){for(var u=0,d=a-1;d>0;d--)if(!n.shouldIndentNextLine(e.getLineContent(d))){u=d;break}return{indentation:o.getLeadingWhitespace(e.getLineContent(u+1)),action:null,line:u+1}}if(i)return{indentation:o.getLeadingWhitespace(e.getLineContent(r)),action:null,line:r};for(d=r;d>0;d--){var h=e.getLineContent(d);if(n.shouldIncrease(h))return{indentation:o.getLeadingWhitespace(h),action:c.IndentAction.Indent,line:d};if(n.shouldIndentNextLine(h)){u=0;for(var p=d-1;p>0;p--)if(!n.shouldIndentNextLine(e.getLineContent(d))){u=p;break}return{indentation:o.getLeadingWhitespace(e.getLineContent(u+1)),action:null,line:u+1}}if(n.shouldDecrease(h))return{indentation:o.getLeadingWhitespace(h),action:null,line:d}}return{indentation:o.getLeadingWhitespace(e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,r){var s=this.getIndentRulesSupport(t);if(!s)return null;var a=this.getInheritIndentForLine(e,n),l=e.getLineContent(n);if(a){var u=a.line;if(void 0!==u){var d=this._getOnEnterSupport(t),h=null;try{d&&(h=d.onEnter("",e.getLineContent(u),""))}catch(e){i.onUnexpectedError(e)}if(h){var p=o.getLeadingWhitespace(e.getLineContent(u));return h.removeText&&(p=p.substring(0,p.length-h.removeText)),h.indentAction===c.IndentAction.Indent||h.indentAction===c.IndentAction.IndentOutdent?p=r.shiftIndent(p):h.indentAction===c.IndentAction.Outdent&&(p=r.unshiftIndent(p)),s.shouldDecrease(l)&&(p=r.unshiftIndent(p)),h.appendText&&(p+=h.appendText),o.getLeadingWhitespace(p)}}return s.shouldDecrease(l)?a.action===c.IndentAction.Indent?a.indentation:r.unshiftIndent(a.indentation):a.action===c.IndentAction.Indent?r.shiftIndent(a.indentation):a.indentation}return null},e.prototype.getIndentForEnter=function(e,t,i,n){e.forceTokenization(t.startLineNumber);var r,s,a=e.getLineTokens(t.startLineNumber),u=l.createScopedLineTokens(a,t.startColumn-1),d=u.getLineContent(),h=!1;(u.firstCharOffset>0&&a.getLanguageId(0)!==u.languageId?(h=!0,r=d.substr(0,t.startColumn-1-u.firstCharOffset)):r=a.getLineContent().substring(0,t.startColumn-1),t.isEmpty())?s=d.substr(t.startColumn-1-u.firstCharOffset):s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-u.firstCharOffset);var p=this.getIndentRulesSupport(u.languageId);if(!p)return null;var f=r,g=o.getLeadingWhitespace(r);if(!n&&!h){var v=this.getInheritIndentForLine(e,t.startLineNumber);p.shouldDecrease(r)&&v&&(g=v.indentation,v.action!==c.IndentAction.Indent&&(g=i.unshiftIndent(g))),f=g+o.ltrim(o.ltrim(r," "),"\t")}var m={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,i){return e.getLanguageIdAtPosition(t,i)},getLineContent:function(i){return i===t.startLineNumber?f:e.getLineContent(i)}},y=o.getLeadingWhitespace(a.getLineContent()),b=this.getInheritIndentForLine(m,t.startLineNumber+1);if(!b){var _=h?y:g;return{beforeEnter:_,afterEnter:_}}var S=h?y:b.indentation;return b.action===c.IndentAction.Indent&&(S=i.shiftIndent(S)),p.shouldDecrease(s)&&(S=i.unshiftIndent(S)),{beforeEnter:h?y:g,afterEnter:S}},e.prototype.getIndentActionForType=function(e,t,i,n){var r=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this.getIndentRulesSupport(r.languageId);if(!o)return null;var s,a=r.getLineContent(),l=a.substr(0,t.startColumn-1-r.firstCharOffset);t.isEmpty()?s=a.substr(t.startColumn-1-r.firstCharOffset):s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-r.firstCharOffset);if(!o.shouldDecrease(l+s)&&o.shouldDecrease(l+i+s)){var u=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!u)return null;var d=u.indentation;return u.action!==c.IndentAction.Indent&&(d=n.unshiftIndent(d)),d}return null},e.prototype.getIndentMetadata=function(e,t){var i=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return i?t<1||t>e.getLineCount()?null:i.getIndentMetadata(e.getLineContent(t)):null},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},e.prototype.getRawEnterActionAtPosition=function(e,t,i){var n=this.getEnterAction(e,new s.Range(t,i,t,i));return n?n.enterAction:null},e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),r=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this._getOnEnterSupport(r.languageId);if(!o)return null;var s,a=r.getLineContent(),l=a.substr(0,t.startColumn-1-r.firstCharOffset);t.isEmpty()?s=a.substr(t.startColumn-1-r.firstCharOffset):s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-r.firstCharOffset);var u=t.startLineNumber,d="";if(u>1&&0===r.firstCharOffset){var h=this.getScopedLineTokens(e,u-1);h.languageId===r.languageId&&(d=h.getLineContent())}var p=null;try{p=o.onEnter(d,l,s)}catch(e){i.onUnexpectedError(e)}return p?(p.appendText||(p.indentAction===c.IndentAction.Indent||p.indentAction===c.IndentAction.IndentOutdent?p.appendText="\t":p.appendText=""),p.removeText&&(n=n.substring(0,n.length-p.removeText)),{enterAction:p,indentation:n}):null},e.prototype.getIndentationAtPosition=function(e,t,i){var n=e.getLineContent(t),r=o.getLeadingWhitespace(n);return r.length>i-1&&(r=r.substring(0,i-1)),r},e.prototype.getScopedLineTokens=function(e,t,i){e.forceTokenization(t);var n=e.getLineTokens(t),r=void 0===i?e.getLineMaxColumn(t)-1:i-1;return l.createScopedLineTokens(n,r)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},e}();t.LanguageConfigurationRegistryImpl=m,t.LanguageConfigurationRegistry=new m}),define(i[860],n([0,1,49]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t,i,n,r){this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=r}}();function r(e){if(!e||!Array.isArray(e))return[];for(var t=[],i=0,r=0,o=e.length;r=1&&""===e[0].token;){var o=e.shift();-1!==o.fontStyle&&(i=o.fontStyle),null!==o.foreground&&(n=o.foreground),null!==o.background&&(r=o.background)}for(var s=new a,l=0,u=t;l>>0,this._cache.set(t,i)}return(i|e<<0)>>>0},e}();t.TokenTheme=c;var l=/\b(comment|string|regex|regexp)\b/;function u(e){var t=e.match(l);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function d(e,t){return et?1:0}t.toStandardTokenType=u,t.strcmp=d;var h=function(){function e(e,t,i){this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}();t.ThemeTrieElementRule=h;var p=function(){return function(e,t){this.mainRule=e,this.children=t||Object.create(null)}}();t.ExternalThemeTrieElement=p;var f=function(){function e(e){this._mainRule=e,this._children=new Map}return e.prototype.toExternalThemeTrieElement=function(){var e=Object.create(null);return this._children.forEach(function(t,i){e[i]=t.toExternalThemeTrieElement()}),new p(this._mainRule,e)},e.prototype.match=function(e){if(""===e)return this._mainRule;var t,i,n=e.indexOf(".");-1===n?(t=e,i=""):(t=e.substring(0,n),i=e.substring(n+1));var r=this._children.get(t);return void 0!==r?r.match(i):this._mainRule},e.prototype.insert=function(t,i,n,r){if(""!==t){var o,s,a=t.indexOf(".");-1===a?(o=t,s=""):(o=t.substring(0,a),s=t.substring(a+1));var c=this._children.get(o);void 0===c&&(c=new e(this._mainRule.clone()),this._children.set(o,c)),c.insert(s,i,n,r)}else this._mainRule.acceptOverwrite(i,n,r)},e}();t.ThemeTrieElement=f,t.generateTokensCSSForColorMap=function(e){for(var t=[],i=1,n=e.length;i2?this._colorMap[2]:null},e}();t.TokenizationRegistryImpl=r}),h=function(){"use strict";function e(e){var t=this.constructor;return this.then(function(i){return t.resolve(e()).then(function(){return i})},function(i){return t.resolve(e()).then(function(){return t.reject(i)})})}var t=setTimeout;function i(){}function n(e){if(!(this instanceof n))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function r(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,n._immediateFn(function(){var i=1===e._state?t.onFulfilled:t.onRejected;if(null!==i){var n;try{n=i(e._value)}catch(e){return void s(t.promise,e)}o(t.promise,n)}else(1===e._state?o:s)(t.promise,e._value)})):e._deferreds.push(t)}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var i=t.then;if(t instanceof n)return e._state=3,e._value=t,void a(e);if("function"==typeof i)return void l((r=i,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,a(e)}catch(t){s(e,t)}var r,o}function s(e,t){e._state=2,e._value=t,a(e)}function a(e){2===e._state&&0===e._deferreds.length&&n._immediateFn(function(){e._handled||n._unhandledRejectionFn(e._value)});for(var t=0,i=e._deferreds.length;tn&&(p=n-f);var g=l.color,v=this._color2Id[g];v||(v=++this._lastAssignedId,this._color2Id[g]=v,this._id2Color[v]=g);var m=new i(p-f,p+f,v);l.setColorZone(m),s.push(m)}return this._colorZonesInvalid=!1,s.sort(i.compare),s},e}();t.OverviewZoneManager=r}),define(i[175],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}return e.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},e}();t.RestrictedRenderingContext=i;var n=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r._viewLines=n,r}return a(t,e),t.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)},t.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},t}(i);t.RenderingContext=n;var r=function(){return function(e,t){this.lineNumber=e,this.ranges=t}}();t.LineVisibleRanges=r;var o=function(){function e(e,t){this.left=Math.round(e),this.width=Math.round(t)}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e}();t.HorizontalRange=o}),define(i[875],n([0,1,175]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.left=e,this.width=t}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e.compare=function(e,t){return e.left-t.left},e}(),r=function(){function e(){}return e._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},e._detachRange=function(e,t){e.selectNodeContents(t)},e._readClientRects=function(e,t,i,n,r){var o=this._createRange();try{return o.setStart(e,t),o.setEnd(i,n),o.getClientRects()}catch(e){return null}finally{this._detachRange(o,r)}},e._mergeAdjacentRanges=function(e){if(1===e.length)return[new i.HorizontalRange(e[0].left,e[0].width)];e.sort(n.compare);for(var t=[],r=0,o=e[0].left,s=e[0].width,a=1,c=e.length;a=u?s=Math.max(s,u+d-o):(t[r++]=new i.HorizontalRange(o,s),o=u,s=d)}return t[r++]=new i.HorizontalRange(o,s),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var i=[],r=0,o=e.length;ra)return null;(t=Math.min(a,Math.max(0,t)))!==(n=Math.min(a,Math.max(0,n)))&&n>0&&0===r&&(n--,r=Number.MAX_VALUE);var c=e.children[t].firstChild,l=e.children[n].firstChild;if(c&&l||(!c&&0===i&&t>0&&(c=e.children[t-1].firstChild,i=1073741824),!l&&0===r&&n>0&&(l=e.children[n-1].firstChild,r=1073741824)),!c||!l)return null;i=Math.min(c.textContent.length,Math.max(0,i)),r=Math.min(l.textContent.length,Math.max(0,r));var u=this._readClientRects(c,i,l,r,s);return this._createHorizontalRangesFromClientRects(u,o)},e}();t.RangeUtil=r}),define(i[877],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,i,n){this.configuration=e,this.theme=t,this.model=i,this.viewLayout=i.viewLayout,this.privateViewEventBus=n}return e.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},e.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)},e}();t.ViewContext=i}),define(i[880],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return e.prototype.addEventHandler=function(e){for(var t=0,i=this._eventHandlers.length;t0&&this._emit(e)}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),i=0,n=t.length;ii)&&(!u.isEmpty()||0!==l.type&&3!==l.type)){var d=u.startLineNumber===i?u.startColumn:n,h=u.endLineNumber===i?u.endColumn:r;o[s++]=new e(d,h,l.inlineClassName,l.type)}}return o},e.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.classNamet.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},e}();t.LineDecoration=n;var r=function(){return function(e,t,i){this.startOffset=e,this.endOffset=t,this.className=i}}();t.DecorationSegment=r;var o=function(){function e(){this.stopOffsets=[],this.classNames=[],this.count=0}return e.prototype.consumeLowerThan=function(e,t,i){for(;this.count>0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(i,0,e),this.classNames.splice(i,0,t);break}this.count++},e}(),s=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],r=new o,s=0,a=0,c=t.length;a1){var p=e.charCodeAt(u-2);i.isHighSurrogate(p)&&u--}if(d>1){p=e.charCodeAt(d-2);i.isHighSurrogate(p)&&d--}var f=u-1,g=d-2;s=r.consumeLowerThan(f,s,n),0===r.count&&(s=f),r.insert(g,h)}return r.consumeLowerThan(1073741824,s,n),n},e}();t.LineDecorationsNormalizer=s}),define(i[296],n([0,1,9,305,298]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){this.endIndex=e,this.type=t}}(),s=function(){function e(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=r,this.containsRTL=o,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=c,this.tabSize=l,this.spaceWidth=u,this.stopRenderingLineAfter=d,this.renderWhitespace="all"===h?2:"boundary"===h?1:0,this.renderControlCharacters=p,this.fontLigatures=f}return e.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&r.LineDecoration.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)},e}();t.RenderLineInput=s;var a=function(){function e(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return e.getPartIndex=function(e){return(4294901760&e)>>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,i,n){var r=(t<<16|i<<0)>>>0;this._data[e]=r,this._absoluteOffsets[e]=n+i},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,i,n){if(0===this.length)return 0;for(var r=(t<<16|n<<0)>>>0,o=0,s=this.length-1;o+1>>1,c=this._data[a];if(c===r)return a;c>r?s=a:o=a}if(o===s)return o;var l=this._data[o],u=this._data[s];if(l===r)return o;if(u===r)return s;var d=e.getPartIndex(l);return n-e.getCharIndex(l)<=(d!==e.getPartIndex(u)?i:e.getCharIndex(u))-n?o:s},e}();t.CharacterMapping=a;var c=function(){return function(e,t,i){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}();function l(e,t){if(0===e.lineContent.length){var n=0,s=" ";if(e.lineDecorations.length>0){for(var l=[],u=0,h=e.lineDecorations.length;u')}return t.appendASCIIString(s),new c(new a(0,0),!1,n)}return function(e,t){var n=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,s=e.lineContent,l=e.len,u=e.isOverflowing,d=e.parts,h=e.tabSize,p=e.containsRTL,f=e.spaceWidth,g=e.renderWhitespace,v=e.renderControlCharacters,m=new a(l+1,d.length),y=0,b=0,_=0,S=0,C=0;t.appendASCIIString("");for(var w=0,E=d.length;w=0;if(_=0,t.appendASCIIString('0&&(!r||T>1?t.write1(8594):t.write1(65515),T--);T>0;)t.write1(160),T--}else t.write1(183);_++}S=L}else{var L=0;for(p&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);y0;)t.write1(160),L++,T--;break;case 32:t.write1(160),L++;break;case 60:t.appendASCIIString("<"),L++;break;case 62:t.appendASCIIString(">"),L++;break;case 38:t.appendASCIIString("&"),L++;break;case 0:t.appendASCIIString("�"),L++;break;case 65279:case 8232:t.write1(65533),L++;break;default:i.isFullWidthCharacter(O)&&b++,v&&O<32?(t.write1(9216+O),L++):(t.write1(O),L++)}_++}S=L}t.appendASCIIString("")}m.setPartData(l,d.length-1,_,C),u&&t.appendASCIIString("");return t.appendASCIIString(""),new c(m,p,o)}(function(e){var t,n,s=e.useMonospaceOptimizations,a=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(n[r++]=new o(t,""));for(var s=0,a=e.getCount();s=i){n[r++]=new o(i,l);break}n[r++]=new o(c,l)}}return n}(e.lineTokens,e.fauxIndentLength,n);2!==e.renderWhitespace&&1!==e.renderWhitespace||(c=function(e,t,n,r,s,a,c,l){var u,d=[],h=0,p=0,f=r[p].type,g=r[p].endIndex,v=r.length,m=i.firstNonWhitespaceIndex(e);-1===m?(m=t,u=t):u=i.lastNonWhitespaceIndex(e);for(var y=0,b=0;bu)C=!0;else if(9===_)C=!0;else if(32===_)if(l)if(S)C=!0;else{var w=b+1=a)&&(d[h++]=new o(b,"vs-whitespace"),y%=a):(b===g||C&&b>s)&&(d[h++]=new o(b,f),y%=a),9===_?y=a:i.isFullWidthCharacter(_)?y+=2:y++,S=C,b===g&&++p0?e.charCodeAt(t-1):0,x=t>1?e.charCodeAt(t-2):0,D=32===I&&32!==x&&9!==x;D||(E=!0)}else E=!0;return d[h++]=new o(t,E?"vs-whitespace":f),d}(a,n,e.continuesWithWrappedLine,c,e.fauxIndentLength,e.tabSize,s,1===e.renderWhitespace));var l=0;if(e.lineDecorations.length>0){for(var u=0,h=e.lineDecorations.length;ud&&(d=m.startOffset,l[u++]=new o(d,v)),!(m.endOffset+1<=g)){d=g,l[u++]=new o(d,v+" "+m.className);break}d=m.endOffset+1,l[u++]=new o(d,v+" "+m.className),c++}g>d&&(d=g,l[u++]=new o(d,v))}var y=i[i.length-1].endIndex;if(c=50&&(r[s++]=new o(h+1,d),p=h+1,h=-1);p!==u&&(r[s++]=new o(u,d))}else r[s++]=l;n=u}else for(var a=0,c=t.length;a50){for(var d=l.type,v=Math.ceil(g/50),f=1;f>>1;t===e[s]?n=t&&(this._whitespaceId2Index[l]=u+1)}this._whitespaceId2Index[e.toString()]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},e.prototype.changeWhitespace=function(e,t,i){e|=0,t|=0,i|=0;var n=!1;return n=this.changeWhitespaceHeight(e,i)||n,n=this.changeWhitespaceAfterLineNumber(e,t)||n},e.prototype.changeWhitespaceHeight=function(e,t){t|=0;var i=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(i)){var n=this._whitespaceId2Index[i];if(this._heights[n]!==t)return this._heights[n]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1),!0}return!1},e.prototype.changeWhitespaceAfterLineNumber=function(t,i){i|=0;var n=(t|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(n)){var r=this._whitespaceId2Index[n];if(this._afterLineNumbers[r]!==i){var o=this._ordinals[r],s=this._heights[r],a=this._minWidths[r];this.removeWhitespace(t);var c=e.findInsertionIndex(this._afterLineNumbers,i,this._ordinals,o);return this._insertWhitespaceAtIndex(t,c,i,o,s,a),!0}}return!1},e.prototype.removeWhitespace=function(e){var t=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(t)){var i=this._whitespaceId2Index[t];return delete this._whitespaceId2Index[t],this._removeWhitespaceAtIndex(i),this._minWidth=-1,!0}return!1},e.prototype._removeWhitespaceAtIndex=function(e){e|=0,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),i=0,n=t.length;i=e&&(this._whitespaceId2Index[r]=o-1)}},e.prototype.onLinesDeleted=function(e,t){e|=0,t|=0;for(var i=0,n=this._afterLineNumbers.length;it&&(this._afterLineNumbers[i]-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){e|=0,t|=0;for(var i=0,n=this._afterLineNumbers.length;i=t.length||t[r+1]>=e)return r;i=r+1|0}else n=r-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t1?this._lineHeight*(e-1):0)+this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.hasWhitespace=function(){return this._whitespaces.getCount()>0},e.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth()},e.prototype.isAfterLines=function(e){return e>this.getLinesTotalHeight()},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if((e|=0)<0)return 1;for(var t=0|this._lineCount,i=this._lineHeight,n=1,r=t;n=s+i)n=o+1;else{if(e>=s)return o;r=o}}return n>t?t:n},e.prototype.getLinesViewportData=function(e,t){e|=0,t|=0;var i,n,r=this._lineHeight,o=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(o),a=0|this._lineCount,c=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(o),l=0|this._whitespaces.getCount();-1===c?(c=l,n=a+1,i=0):(n=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(c),i=0|this._whitespaces.getHeightForWhitespaceIndex(c));var u=s,d=u,h=0;s>=5e5&&(h=5e5*Math.floor(s/5e5),d-=h=Math.floor(h/r)*r);for(var p=[],f=e+(t-e)/2,g=-1,v=o;v<=a;v++){if(-1===g){(u<=f&&ff)&&(g=v)}for(u+=r,p[v-o]=d,d+=r;n===v;)d+=i,u+=i,++c>=l?n=a+1:(n=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(c),i=0|this._whitespaces.getHeightForWhitespaceIndex(c));if(u>=t){a=v;break}}-1===g&&(g=a);var m=0|this.getVerticalOffsetForLineNumber(a),y=o,b=a;return yt&&b--,{bigNumbersDelta:h,startLineNumber:o,endLineNumber:a,relativeVerticalOffset:p,centeredLineNumber:g,completelyVisibleStartLineNumber:y,completelyVisibleEndLineNumber:b}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e|=0;var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e);return(t>=1?this._lineHeight*t:0)+(e>0?this._whitespaces.getAccumulatedHeight(e-1):0)},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,i,n=0,r=this._whitespaces.getCount()-1;if(r<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(r)+this._whitespaces.getHeightForWhitespaceIndex(r))return-1;for(;n=(i=this.getVerticalOffsetForWhitespaceIndex(t))+this._whitespaces.getHeightForWhitespaceIndex(t))n=t+1;else{if(e>=i)return t;r=t}return n},e.prototype.getWhitespaceAtVerticalOffset=function(e){e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;var n=this._whitespaces.getHeightForWhitespaceIndex(t);return{id:this._whitespaces.getIdForWhitespaceIndex(t),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:n}},e.prototype.getWhitespaceViewportData=function(e,t){e|=0,t|=0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this._whitespaces.getCount()-1;if(i<0)return[];for(var r=[],o=i;o<=n;o++){var s=this.getVerticalOffsetForWhitespaceIndex(o),a=this._whitespaces.getHeightForWhitespaceIndex(o);if(s>=t)break;r.push({id:this._whitespaces.getIdForWhitespaceIndex(o),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:s,height:a})}return r},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},e}();t.LinesLayout=n}),define(i[294],n([0,1,240]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t){this.index=e,this.remainder=t}}();t.PrefixSumIndexOfResult=n;var r=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=i.toUint32(e);var n=this.values,r=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=i.toUint32(e),t=i.toUint32(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;var o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=i.toUint32(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,i=this.values.length-1,r=0,o=0,s=0;t<=i;)if(r=t+(i-t)/2|0,e<(s=(o=this.prefixSum[r])-this.values[r]))i=r-1;else{if(!(e>=o))break;t=r+1}return new n(r,e-s)},e}();t.PrefixSumComputer=r;var o=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new r(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t=n._lines.length?r.FIN:(i=n._lines[o],a=n._wordenize(i,e),s=0,o+=1,c())};return{next:c}},t.prototype.getLineWords=function(e,t){for(var i=this._lines[e-1],n=[],r=0,o=this._wordenize(i,t);rthis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{var r=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>r&&(i=r,n=!0)}return n?{lineNumber:t,column:i}:e},t}(d.MirrorTextModel),y=function(){function t(e){this.removedListeners=[],this._foreignModuleFactory=e,this._foreignModule=null}return t.prototype.computeDiff=function(e,t,i){var n=this._getModel(e),r=this._getModel(t);if(!n||!r)return Promise.resolve(null);var o=n.getLinesContent(),s=r.getLinesContent(),a=new u.DiffComputer(o,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0}).computeDiff(),c=!(a.length>0)&&this._modelsAreIdentical(n,r);return Promise.resolve({identical:c,changes:a})},t.prototype._modelsAreIdentical=function(e,t){var i=e.getLineCount();if(i!==t.getLineCount())return!1;for(var n=1;n<=i;n++){if(e.getLineContent(n)!==t.getLineContent(n))return!1}return!0},t.prototype.computeDirtyDiff=function(e,t,i){var n=this._getModel(e),r=this._getModel(t);if(!n||!r)return Promise.resolve(null);var o=n.getLinesContent(),s=r.getLinesContent(),a=new u.DiffComputer(o,s,{shouldComputeCharChanges:!1,shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0});return Promise.resolve(a.computeDiff())},t.prototype.computeMoreMinimalEdits=function(e,r){var o=this._getModel(e);if(!o)return Promise.resolve(r);for(var s=[],a=void 0,c=0,u=r=i.mergeSort(r,function(e,t){return e.range&&t.range?l.Range.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)});ct._diffLimit)s.push({range:h,text:p});else for(var v=n.stringDiff(g,p,!1),m=o.offsetAt(l.Range.lift(h).getStartPosition()),y=0,b=v;y=n,u=a,d=r.viewportHeight-a>=n,h=e.left,p=t.left;return h+i>r.scrollLeft+r.viewportWidth&&(h=r.scrollLeft+r.viewportWidth-i),p+i>r.scrollLeft+r.viewportWidth&&(p=r.scrollLeft+r.viewportWidth-i),hthis._contentWidth)return null;var c,l=e.top-r,u=t.top+this._lineHeight,d=s+this._contentLeft,h=a+this._contentLeft,p=i.getDomNodePagePosition(this._viewDomNode.domNode),f=p.top+l-i.StandardWindow.scrollY,g=p.top+u-i.StandardWindow.scrollY,v=p.left+d-i.StandardWindow.scrollX,m=p.left+h-i.StandardWindow.scrollX,y=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b=f>=22,_=g+r<=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-22;v+n+20>y&&(v-=c=v-(y-n-20),d-=c);m+n+20>y&&(m-=c=m-(y-n-20),h-=c);v<0&&(v-=c=v,d-=c);m<0&&(m-=c=m,h-=c);return this._fixedOverflowWidgets&&(l=f,u=g,d=v,h=m),{fitsAbove:b,aboveTop:l,aboveLeft:d,fitsBelow:_,belowTop:u,belowLeft:h}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new o(e.top,e.left+this._contentLeft)},e.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var i=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop,n=new o(i,t.left),r=this._viewPosition.lineNumber,s=t.left;if(this._viewRange){var a=e.linesVisibleRangesForRange(this._viewRange,!1);if(a&&a.length>0)for(var c=a.length-1;c>=0;c--){var l=a[c];if(l.lineNumber>=r){l.lineNumber>r&&(r=l.lineNumber,s=1073741824);for(var u=0,d=l.ranges.length;ue.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},e.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},e}()}),define(i[902],n([0,1,151,8,175,1083]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var i=e.call(this)||this;return i._context=t,i._lineHeight=i._context.configuration.editor.lineHeight,i._typicalHalfwidthCharacterWidth=i._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return a(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),i=[],r=0,o=0,s=t.length;ot.options.zIndex)return 1;var i=e.options.className,r=t.options.className;return ir?1:n.Range.compareRangesUsingStarts(e.range,t.range)});for(var c=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,u=[],d=c;d<=l;d++){u[d-c]=""}this._renderWholeLineDecorations(e,i,u),this._renderNormalDecorations(e,i,u),this._renderResult=u},t.prototype._renderWholeLineDecorations=function(e,t,i){for(var n=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,s=0,a=t.length;s',u=Math.max(c.range.startLineNumber,r),d=Math.min(c.range.endLineNumber,o),h=u;h<=d;h++){i[h-r]+=l}}},t.prototype._renderNormalDecorations=function(e,t,i){for(var r=String(this._lineHeight),o=e.visibleRange.startLineNumber,s=null,a=!1,c=null,l=0,u=t.length;l';a[h]+=m}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]},t}(i.DynamicViewOverlay);t.DecorationsOverlay=o}),define(i[292],n([0,1,151,1084]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t,i){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}();t.DecorationToRender=n;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype._render=function(e,t,i){for(var n=[],r=e;r<=t;r++){n[r-e]=[]}if(0===i.length)return n;i.sort(function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className',s=[],a=t;a<=i;a++){var c=a-t,l=n[c];0===l.length?s[c]="":s[c]='
    =this._renderResult.length?"":this._renderResult[i]},t}(r);t.GlyphMarginOverlay=o}),define(i[904],n([0,1,292,1101]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){var i=e.call(this)||this;return i._context=t,i._decorationsLeft=i._context.configuration.editor.layoutInfo.decorationsLeft,i._decorationsWidth=i._context.configuration.editor.layoutInfo.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return a(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],r=0,o=0,s=t.length;o
    ',o=[],s=t;s<=i;s++){for(var a=s-t,c=n[a],l="",u=0,d=c.length;u';r[s]=c}this._renderResult=r},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(i.DedupOverlay);t.MarginViewLineDecorationsOverlay=n}),define(i[907],n([0,1,62,88,461]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){var r=e.call(this,t)||this;return r._widgets={},r._verticalScrollbarWidth=r._context.configuration.editor.layoutInfo.verticalScrollbarWidth,r._minimapWidth=r._context.configuration.editor.layoutInfo.minimapWidth,r._horizontalScrollbarHeight=r._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,r._editorHeight=r._context.configuration.editor.layoutInfo.height,r._editorWidth=r._context.configuration.editor.layoutInfo.width,r._domNode=i.createFastDomNode(document.createElement("div")),n.PartFingerprints.write(r._domNode,4),r._domNode.setClassName("overlayWidgets"),r}return a(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return!!e.layoutInfo&&(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0)},t.prototype.addWidget=function(e){var t=i.createFastDomNode(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t){var i=this._widgets[e.getId()];return i.preference!==t&&(i.preference=t,this.setShouldRender(),!0)},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var i=this._widgets[t].domNode.domNode;delete this._widgets[t],i.parentNode.removeChild(i),this.setShouldRender()}},t.prototype._renderWidget=function(e){var t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){var i=t.domNode.clientHeight;t.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),i=0,n=t.length;i0&&this._renderOneLane(r,i,n,e),!0},t.prototype._renderOneLane=function(e,t,i,n){for(var r=0,o=0,s=0,a=0,c=t;a=d?s=Math.max(s,h):(e.fillRect(0,o,n,s-o),o=d,s=h)}e.fillRect(0,o,n,s-o)},t}(r.ViewEventHandler);t.OverviewRuler=o}),define(i[909],n([0,1,62,11,88,27]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=e.call(this,t)||this;return n._lineHeight=n._context.configuration.editor.lineHeight,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode=i.createFastDomNode(document.createElement("div")),n.domNode.setClassName("view-zones"),n.domNode.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.marginDomNode=i.createFastDomNode(document.createElement("div")),n.marginDomNode.setClassName("margin-view-zones"),n.marginDomNode.setPosition("absolute"),n.marginDomNode.setAttribute("role","presentation"),n.marginDomNode.setAttribute("aria-hidden","true"),n._zones={},n}return a(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._zones={}},t.prototype._recomputeWhitespacesProps=function(){for(var e=!1,t=Object.keys(this._zones),i=0,n=t.length;i=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?t+=e.height-this._configuration.editor.lineHeight:t+=this._getHorizontalScrollbarHeight(e),Math.max(e.height,t)},t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new o.Viewport(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new o.Viewport(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeScrollWidth=function(e,t){if(!this._configuration.editor.wrappingInfo.isViewportWrapping){var i=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+i,t,n)}return Math.max(e,t)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight()},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}},t.prototype.addWhitespace=function(e,t,i,n){return this._linesLayout.insertWhitespace(e,t,i,n)},t.prototype.changeWhitespace=function(e,t,i){return this._linesLayout.changeWhitespace(e,t,i)},t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e)},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},t.prototype.getScrollWidth=function(){return this.scrollable.getScrollDimensions().scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollable.getScrollDimensions().scrollHeight},t.prototype.getCurrentScrollLeft=function(){return this.scrollable.getCurrentScrollPosition().scrollLeft},t.prototype.getCurrentScrollTop=function(){return this.scrollable.getCurrentScrollPosition().scrollTop},t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)},t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)},t.prototype.deltaScrollNow=function(e,t){var i=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})},t}(i.Disposable);t.ViewLayout=s}),define(i[912],n([0,1,27,8,163]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,i,n,r){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=r,this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},e.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,o=this._decorationsCache[t];if(!o){var s=e.range,a=e.options,c=void 0;if(a.isWholeLine){var l=this._coordinatesConverter.convertModelPositionToViewPosition(new i.Position(s.startLineNumber,1)),u=this._coordinatesConverter.convertModelPositionToViewPosition(new i.Position(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber)));c=new n.Range(l.lineNumber,l.column,u.lineNumber,u.column)}else c=this._coordinatesConverter.convertModelRangeToViewRange(s);o=new r.ViewModelDecoration(c,a),this._decorationsCache[t]=o}return o},e.prototype.getDecorationsViewportData=function(e){var t=null!==this._cachedModelDecorationsResolver;return(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly),i=e.startLineNumber,o=e.endLineNumber,s=[],a=0,c=[],l=i;l<=o;l++)c[l-i]=[];for(var u=0,d=t.length;ue.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),e.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},e.prototype.guessColorPresentation=function(e,t){for(var i=0;ie.length)return!1;for(var r=0;r=65&&o<=90&&o+32===s||s>=65&&s<=90&&s+32===o))return!1}return!0},e.prototype._createOperationsForBlockComment=function(t,i,n,o,s){var a,c=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,d=t.endColumn,h=o.getLineContent(c),p=o.getLineContent(u),f=h.lastIndexOf(i,l-1+i.length),g=p.indexOf(n,d-1-n.length);if(-1!==f&&-1!==g)if(c===u){h.substring(f+i.length,g).indexOf(n)>=0&&(f=-1,g=-1)}else{var v=h.substring(f+i.length),m=p.substring(0,g);(v.indexOf(n)>=0||m.indexOf(n)>=0)&&(f=-1,g=-1)}-1!==f&&-1!==g?(f+i.length0&&32===p.charCodeAt(g-1)&&(n=" "+n,g-=1),a=e._createRemoveBlockCommentOperations(new r.Range(c,f+i.length+1,u,g+1),i,n)):(a=e._createAddBlockCommentOperations(t,i,n),this._usedEndToken=1===a.length?n:null);for(var y=0,b=a;ya?o-1:o}},e}();t.LineCommentCommand=l}),define(i[920],n([0,1,47,8]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i}return e.prototype.getEditOperations=function(e,t){var r=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new n.Range(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),r),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new i.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new i.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumbert&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,r.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,r.matchesCount=!0,o=!0),void 0!==i&&(n.Range.equalsRange(this._currentMatch,i)||(this._currentMatch=i,r.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(r)},e.prototype.change=function(e,t,i){void 0===i&&(i=!0);var r={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1,s=this.isRegex,a=this.wholeWord,c=this.matchCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,r.searchString=!0,o=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,r.replaceString=!0,o=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,r.isRevealed=!0,o=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,r.isReplaceRevealed=!0,o=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.searchScope&&(n.Range.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,r.searchScope=!0,o=!0)),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,s!==this.isRegex&&(o=!0,r.isRegex=!0),a!==this.wholeWord&&(o=!0,r.wholeWord=!0),c!==this.matchCase&&(o=!0,r.matchCase=!0),o&&this._onFindReplaceStateChange.fire(r)},e}();t.FindReplaceState=o}),define(i[922],n([0,1,8]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i}return e.prototype.getEditOperations=function(e,t){if(this._ranges.length>0){for(var n=[],r=0;r0;){if(e=n)break;if(36===(l=e.charCodeAt(i))){t.emitUnchanged(i-1),t.emitStatic("$",i+1);continue}if(48===l||38===l){t.emitUnchanged(i-1),t.emitMatchIndex(0,i+1);continue}if(49<=l&&l<=57){var a=l-48;if(i+1=n)break;var l;switch(l=e.charCodeAt(i)){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic("\n",i+1);break;case 116:t.emitUnchanged(i-1),t.emitStatic("\t",i+1)}}}return t.finalize()}}),define(i[290],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_FOLDING_REGIONS=65535,t.MAX_LINE_NUMBER=16777215;var i=function(){function e(e,i,n){if(e.length!==i.length||e.length>t.MAX_FOLDING_REGIONS)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=i,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n}return e.prototype.ensureParentIndices=function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var i=[],n=function(t,n){var r=i[i.length-1];return e.getStartLineNumber(r)<=t&&e.getEndLineNumber(r)>=n},r=0,o=this._startIndexes.length;rt.MAX_LINE_NUMBER||a>t.MAX_LINE_NUMBER)throw new Error("startLineNumber or endLineNumber must not exceed "+t.MAX_LINE_NUMBER);for(;i.length>0&&!n(s,a);)i.pop();var c=i.length>0?i[i.length-1]:-1;i.push(r),this._startIndexes[r]=s+((255&c)<<24),this._endIndexes[r]=a+((65280&c)<<16)}}},Object.defineProperty(e.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),e.prototype.getStartLineNumber=function(e){return this._startIndexes[e]&t.MAX_LINE_NUMBER},e.prototype.getEndLineNumber=function(e){return this._endIndexes[e]&t.MAX_LINE_NUMBER},e.prototype.getType=function(e){return this._types?this._types[e]:void 0},e.prototype.hasTypes=function(){return!!this._types},e.prototype.isCollapsed=function(e){var t=e/32|0,i=e%32;return 0!=(this._collapseStates[t]&1<>>24)+((4278190080&this._endIndexes[e])>>>16);return i===t.MAX_FOLDING_REGIONS?-1:i},e.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},e.prototype.findIndex=function(e){var t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},e.prototype.toString=function(){for(var e=[],t=0;t=this.endLineNumber},e.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},e.prototype.hidesLine=function(e){return this.startLineNumber=d))break;r(a,u===d),a++}}c=s()}for(;a0)return e},e.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],i=0,n=e;i=0;){var o=this._regions.toRegion(n);t&&!t(o,r)||i.push(o),r++,n=o.parentIndex}return i},e.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null},e.prototype.getRegionsInside=function(e,t){var i=[],n=e?e.regionIndex+1:0,r=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length)for(var o=[],s=n,a=this._regions.length;s0&&!c.containedBy(o[o.length-1]);)o.pop();o.push(c),t(c,o.length)&&i.push(c)}else for(s=n,a=this._regions.length;s0)for(var o=0,s=n;o1)){var l=e.getRegionsInside(c,function(e,n){return e.isCollapsed!==t&&n=0;s--)if(i!==r.isCollapsed(s)){var a=r.getStartLineNumber(s);t.test(n.getLineContent(a))&&o.push(r.toRegion(s))}e.toggleCollapseState(o)},t.setCollapseStateForType=function(e,t,i){for(var n=e.regions,r=[],o=n.length-1;o>=0;o--)i!==n.isCollapsed(o)&&t===n.getType(o)&&r.push(n.toRegion(o));e.toggleCollapseState(r)}}),define(i[926],n([0,1,5,8,17]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){var t=this;this._updateEventEmitter=new i.Emitter,this._foldingModel=e,this._foldingModelListener=e.onDidChange(function(e){return t.updateHiddenRanges()}),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),e.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],i=0,r=0,o=Number.MAX_VALUE,s=-1,a=this._foldingModel.regions;i0},e.prototype.isHidden=function(e){return null!==s(this._hiddenRanges,e)},e.prototype.adjustSelections=function(e){for(var t=this,i=!1,n=this._foldingModel.textModel,r=null,o=function(e){return r&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,r)||(r=s(t._hiddenRanges,e)),r?r.startLineNumber-1:null},a=0,c=e.length;a0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},e}();function s(e,t){var i=r.findFirstInSorted(e,function(e){return t=0&&e[i].endLineNumber>=t?e[i]:null}t.HiddenRangeModel=o}),define(i[336],n([0,1,11,290]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=5e3,o={};t.ID_SYNTAX_PROVIDER="syntax";var s=function(){function e(e,i,n){void 0===n&&(n=r),this.editorModel=e,this.providers=i,this.limit=n,this.id=t.ID_SYNTAX_PROVIDER}return e.prototype.compute=function(e){var t=this;return function(e,t,n){var r=null,s=e.map(function(e,s){return Promise.resolve(e.provideFoldingRanges(t,o,n)).then(function(e){if(!n.isCancellationRequested&&Array.isArray(e)){Array.isArray(r)||(r=[]);for(var i=t.getLineCount(),o=0,a=e;o0&&c.end>c.start&&c.end<=i&&r.push({start:c.start,end:c.end,rank:s,kind:c.kind})}}},i.onUnexpectedExternalError)});return Promise.all(s).then(function(e){return r})}(this.providers,this.editorModel,e).then(function(e){return e?c(e,t.limit):null})},e.prototype.dispose=function(){},e}();t.SyntaxRangeProvider=s;var a=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.add=function(e,t,i,r){if(!(e>n.MAX_LINE_NUMBER||t>n.MAX_LINE_NUMBER)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=r,this._types[o]=i,this._length++,r<30&&(this._nestingLevelCounts[r]=(this._nestingLevelCounts[r]||0)+1)}},e.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var e=new Uint32Array(this._length),t=new Uint32Array(this._length),i=0;ithis._foldingRangesLimit){o=i;break}r+=s}}e=new Uint32Array(this._foldingRangesLimit),t=new Uint32Array(this._foldingRangesLimit);for(var a=[],c=(i=0,0);ir.start)if(l.end<=r.end)o.push(r),r=l,n.add(l.start,l.end,l.kind&&l.kind.value,o.length);else{if(l.start>r.end){do{r=o.pop()}while(r&&l.start>r.end);r&&o.push(r),r=l}n.add(l.start,l.end,l.kind&&l.kind.value,o.length)}}else r=l,n.add(l.start,l.end,l.kind&&l.kind.value,o.length)}return n.toIndentRanges()}t.RangesCollector=a,t.sanitizeRanges=c}),define(i[931],n([0,1,336]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ID_INIT_PROVIDER="init";var n=function(){function e(e,i,n,r){if(this.editorModel=e,this.id=t.ID_INIT_PROVIDER,i.length){this.decorationIds=e.deltaDecorations([],i.map(function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}}})),this.timeout=setTimeout(n,r)}}return e.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"==typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},e.prototype.compute=function(e){var t=[];if(this.decorationIds)for(var n=0,r=this.decorationIds;n=r)return null;for(var o=[],s=n;s<=r;s++)o.push(e.getLineContent(s));var a=o.slice(0);return a.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}),!0===i&&(a=a.reverse()),{startLineNumber:n,endLineNumber:r,before:o,after:a}}t.SortLinesCommand=r}),define(i[348],n([0,1,27,8,228]),function(e,t,i,n,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){}return e.prototype.provideSelectionRanges=function(t,i){return r(this,void 0,void 0,function(){var n,r,s,a,c;return o(this,function(l){switch(l.label){case 0:n=[],r=function(i){var r,s;return o(this,function(o){switch(o.label){case 0:return r=[],n.push(r),s=new Map,[4,new Promise(function(n){return e._bracketsRightYield(n,0,t,i,s)})];case 1:return o.sent(),[4,new Promise(function(n){return e._bracketsLeftYield(n,0,t,i,s,r)})];case 2:return o.sent(),[2]}})},s=0,a=i,l.label=1;case 1:return s=e._maxRounds){t();break}if(!r){t();break}var l=n.findNextBracket(r);if(!l){t();break}if(Date.now()-c>e._maxDuration){setTimeout(function(){return e._bracketsRightYield(t,i+1,n,r,o)});break}var u=l.close;if(l.isOpen){var d=a.has(u)?a.get(u):0;a.set(u,d+1)}else{d=a.has(u)?a.get(u):0;if(d-=1,a.set(u,Math.max(0,d)),d<0){var h=o.get(u);h||(h=new s.LinkedList,o.set(u,h)),h.push(l.range)}}r=l.range.getEndPosition()}},e._bracketsLeftYield=function(t,i,r,o,s,a){for(var c=new Map,l=Date.now();;){if(i>=e._maxRounds&&0===s.size){t();break}if(!o){t();break}var u=r.findPrevBracket(o);if(!u){t();break}if(Date.now()-l>e._maxDuration){setTimeout(function(){return e._bracketsLeftYield(t,i+1,r,o,s,a)});break}var d=u.close;if(u.isOpen){v=c.has(d)?c.get(d):0;if(v-=1,c.set(d,Math.max(0,v)),v<0){var h=s.get(d);if(h){var p=h.shift();0===h.size&&s.delete(d);var f=n.Range.fromPositions(u.range.getEndPosition(),p.getStartPosition()),g=n.Range.fromPositions(u.range.getStartPosition(),p.getEndPosition());a.push({range:f,kind:"statement.brackets"}),a.push({range:g,kind:"statement.brackets.full"}),e._addBracketLeading(r,g,a)}}}else{var v=c.has(d)?c.get(d):0;c.set(d,v+1)}o=u.range.getStartPosition()}},e._addBracketLeading=function(e,t,r){if(t.startLineNumber!==t.endLineNumber){var o=t.startLineNumber,s=e.getLineFirstNonWhitespaceColumn(o);0!==s&&s!==t.startColumn&&(r.push({range:n.Range.fromPositions(new i.Position(o,s),t.getEndPosition()),kind:"statement.brackets.leading"}),r.push({range:n.Range.fromPositions(new i.Position(o,1),t.getEndPosition()),kind:"statement.brackets.leading.full"}));var a=o-1;if(a>0){var c=e.getLineFirstNonWhitespaceColumn(a);c===t.startColumn&&c!==e.getLineLastNonWhitespaceColumn(a)&&(r.push({range:n.Range.fromPositions(new i.Position(a,c),t.getEndPosition()),kind:"statement.brackets.leading"}),r.push({range:n.Range.fromPositions(new i.Position(a,1),t.getEndPosition()),kind:"statement.brackets.leading.full"}))}}},e._maxDuration=30,e._maxRounds=2,e}();t.BracketSelectionRangeProvider=a}),define(i[952],n([0,1,8,9]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.provideSelectionRanges=function(e,t){for(var i=[],n=0,r=t;n=0;l--){if(95===(h=s.charCodeAt(l))||45===h)break;if(n.isLowerAsciiLetter(h)&&n.isUpperAsciiLetter(d))break;d=h}for(l+=1;u0&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new i.Range(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber)),kind:"statement.line"})},e}();t.WordSelectionRangeProvider=r}),define(i[188],n([0,1]),function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.text("")}return e.isDigitCharacter=function(e){return e>=48&&e<=57},e.isVariableCharacter=function(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90},e.prototype.text=function(e){this.value=e,this.pos=0},e.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len)},e.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var t,i=this.pos,n=0,r=this.value.charCodeAt(i);if("number"==typeof(t=e._table[r]))return this.pos+=1,{type:t,pos:i,len:1};if(e.isDigitCharacter(r)){t=8;do{n+=1,r=this.value.charCodeAt(i+n)}while(e.isDigitCharacter(r));return this.pos+=n,{type:t,pos:i,len:n}}if(e.isVariableCharacter(r)){t=9;do{r=this.value.charCodeAt(i+ ++n)}while(e.isVariableCharacter(r)||e.isDigitCharacter(r));return this.pos+=n,{type:t,pos:i,len:n}}t=10;do{n+=1,r=this.value.charCodeAt(i+n)}while(!isNaN(r)&&void 0===e._table[r]&&!e.isDigitCharacter(r)&&!e.isVariableCharacter(r));return this.pos+=n,{type:t,pos:i,len:n}},e._table=((i={})[36]=0,i[58]=1,i[44]=2,i[123]=3,i[125]=4,i[92]=5,i[47]=6,i[124]=7,i[43]=11,i[45]=12,i[63]=13,i),e}();t.Scanner=n;var r=function(){function e(){this._children=[]}return e.prototype.appendChild=function(e){return e instanceof o&&this._children[this._children.length-1]instanceof o?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this},e.prototype.replace=function(e,t){var i=e.parent,n=i.children.indexOf(e),r=i.children.slice(0);r.splice.apply(r,[n,1].concat(t)),i._children=r,function e(t,i){for(var n=0,r=t;nt.index?1:0},Object.defineProperty(t.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0},enumerable:!0,configurable:!0}),t.prototype.toTextmateString=function(){var e="";return this.transform&&(e=this.transform.toTextmateString()),0!==this.children.length||this.transform?0===this.children.length?"${"+this.index+e+"}":this.choice?"${"+this.index+"|"+this.choice.toTextmateString()+"|"+e+"}":"${"+this.index+":"+this.children.map(function(e){return e.toTextmateString()}).join("")+e+"}":"$"+this.index},t.prototype.clone=function(){var e=new t(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(function(e){return e.clone()}),e},t}(s);t.Placeholder=c;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=[],t}return a(t,e),t.prototype.appendChild=function(e){return e instanceof o&&(e.parent=this,this.options.push(e)),this},t.prototype.toString=function(){return this.options[0].value},t.prototype.toTextmateString=function(){return this.options.map(function(e){return e.value.replace(/\||,/g,"\\$&")}).join(",")},t.prototype.len=function(){return this.options[0].len()},t.prototype.clone=function(){var e=new t;return this.options.forEach(e.appendChild,e),e},t}(r);t.Choice=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.resolve=function(e){var t=this,i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(function(e){return e instanceof d&&Boolean(e.elseValue)})&&(n=this._replace([])),n},t.prototype._replace=function(e){for(var t="",i=0,n=this._children;i0;){var n=i.shift();if(!t(n))break;i.unshift.apply(i,n.children)}}t.Variable=h;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),Object.defineProperty(t.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk(function(i){return i instanceof c&&(t.push(i),e=!e||e.index0?r.set(e.index,e.children):o.push(e)),!0});for(var a=0,l=o;a0&&t),!r.has(0)&&i&&n.appendChild(new c(0)),n},e.prototype._accept=function(e,t){if(void 0===e||this._token.type===e){var i=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),i}return!1},e.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},e.prototype._until=function(e){if(14===this._token.type)return!1;for(var t=this._token;this._token.type!==e;)if(this._token=this._scanner.next(),14===this._token.type)return!1;var i=this._scanner.value.substring(t.pos,this._token.pos);return this._token=this._scanner.next(),i},e.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},e.prototype._parseEscaped=function(e){var t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new o(t)),!0)},e.prototype._parseTabstopOrVariableName=function(e){var t,i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new c(Number(t)):new h(t)),!0):this._backTo(i)},e.prototype._parseComplexPlaceholder=function(e){var t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);var n=new c(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(n.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(var r=new l;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(r),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}},e.prototype._parseChoiceElement=function(e){for(var t=this._token,i=[];2!==this._token.type&&7!==this._token.type;){var n=void 0;if(!(n=(n=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:this._accept(void 0,!0)))return this._backTo(t),!1;i.push(n)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new o(i.join(""))),!0)},e.prototype._parseComplexVariable=function(e){var t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);var n=new h(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}},e.prototype._parseTransform=function(e){for(var t=new u,i="",n="";!this._accept(6);){var r=void 0;if(r=this._accept(5,!0))i+=r=this._accept(6,!0)||r;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){r=void 0;if(r=this._accept(5,!0))r=this._accept(5,!0)||this._accept(6,!0)||r,t.appendChild(new o(r));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,n)}catch(e){return!1}return e.transform=t,!0},e.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(0))return!1;var i=!1;this._accept(3)&&(i=!0);var n=this._accept(8,!0);if(!n)return this._backTo(t),!1;if(!i)return e.appendChild(new d(Number(n))),!0;if(this._accept(4))return e.appendChild(new d(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var r=this._accept(9,!0);return r&&this._accept(4)?(e.appendChild(new d(Number(n),r)),!0):(this._backTo(t),!1)}if(this._accept(11)){if(o=this._until(4))return e.appendChild(new d(Number(n),void 0,o,void 0)),!0}else if(this._accept(12)){if(s=this._until(4))return e.appendChild(new d(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){var o;if(o=this._until(1))if(s=this._until(4))return e.appendChild(new d(Number(n),void 0,o,s)),!0}else{var s;if(s=this._until(4))return e.appendChild(new d(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1},e.prototype._parseAnything=function(e){return 14!==this._token.type&&(e.appendChild(new o(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},e}();t.SnippetParser=g}),define(i[956],n([0,1,17,8,348]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.create=function(t,o){if(!o.getConfiguration().contribInfo.suggest.localityBonus)return Promise.resolve(e.None);if(!o.hasModel())return Promise.resolve(e.None);var s=o.getModel(),c=o.getPosition();return t.canComputeWordRanges(s.uri)?(new r.BracketSelectionRangeProvider).provideSelectionRanges(s,[c]).then(function(r){return r&&0!==r.length&&0!==r[0].length?t.computeWordRanges(s.uri,r[0][0].range).then(function(t){return new(function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return a(s,e),s.prototype.distance=function(e,s){if(!t||!c.equals(o.getPosition()))return 0;if(17===s.kind)return 2<<20;var a=s.label,l=t[a];if(i.isFalsyOrEmpty(l))return 2<<20;for(var u=i.binarySearch(l,n.Range.fromPositions(e),n.Range.compareRangesUsingStarts),d=u>=0?l[u]:l[Math.max(0,~u-1)],h=r.length,p=0,f=r[0];p=0){var r=this.renderedElements[n];this.trait.unrender(i),r.index=t}else{r={index:t,templateData:i};this.renderedElements.push(r)}this.trait.renderIndex(t,i)},e.prototype.splice=function(e,t,i){for(var n=[],r=0,o=this.renderedElements;r=e+t&&n.push({index:s.index+i-t,templateData:s.templateData})}this.renderedElements=n},e.prototype.renderIndexes=function(e){for(var t=0,i=this.renderedElements;t-1&&this.trait.renderIndex(r,o)}},e.prototype.disposeTemplate=function(e){var t=o.firstIndex(this.renderedElements,function(t){return t.templateData===e});t<0||this.renderedElements.splice(t,1)},e}(),E=function(){function e(e){this._trait=e,this._onChange=new f.Emitter,this.indexes=[]}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new w(this)},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,i){var n=i.length-t,r=e+t,o=this.indexes.filter(function(t){return t=r}).map(function(e){return e+n}));this.renderer.splice(e,t,i.length),this.set(o)},e.prototype.renderIndex=function(e,t){c.toggleClass(t,this._trait,this.contains(e))},e.prototype.unrender=function(e){c.removeClass(e,this._trait)},e.prototype.set=function(e,t){var i=this.indexes;this.indexes=e;var n=H(i,e);return this.renderer.renderIndexes(n),this._onChange.fire({indexes:e,browserEvent:t}),i},e.prototype.get=function(){return this.indexes},e.prototype.contains=function(e){return this.indexes.some(function(t){return t===e})},e.prototype.dispose=function(){this._onChange=n.dispose(this._onChange)},p([s.memoize],e.prototype,"renderer",null),e}(),I=function(e){function t(){return e.call(this,"focused")||this}return a(t,e),t.prototype.renderIndex=function(t,i){e.prototype.renderIndex.call(this,t,i),this.contains(t)?i.setAttribute("aria-selected","true"):i.removeAttribute("aria-selected")},t}(E),x=function(){function e(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}return e.prototype.splice=function(e,t,i){var n=this;if(!this.identityProvider)return this.trait.splice(e,t,i.map(function(){return!1}));var r=this.trait.get().map(function(e){return n.identityProvider.getId(n.view.element(e)).toString()}),o=i.map(function(e){return r.indexOf(n.identityProvider.getId(e).toString())>-1});this.trait.splice(e,t,o)},e}();function D(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var k,L=function(){function e(e,t,i){this.list=e,this.view=t;var n=!(!1===i.multipleSelectionSupport);this.disposables=[],this.openController=i.openController||F;var r=f.Event.chain(g.domEvent(t.domNode,"keydown")).filter(function(e){return!D(e.target)}).map(function(e){return new h.StandardKeyboardEvent(e)});r.filter(function(e){return 3===e.keyCode}).on(this.onEnter,this,this.disposables),r.filter(function(e){return 16===e.keyCode}).on(this.onUpArrow,this,this.disposables),r.filter(function(e){return 18===e.keyCode}).on(this.onDownArrow,this,this.disposables),r.filter(function(e){return 11===e.keyCode}).on(this.onPageUpArrow,this,this.disposables),r.filter(function(e){return 12===e.keyCode}).on(this.onPageDownArrow,this,this.disposables),r.filter(function(e){return 9===e.keyCode}).on(this.onEscape,this,this.disposables),n&&r.filter(function(e){return(u.isMacintosh?e.metaKey:e.ctrlKey)&&31===e.keyCode}).on(this.onCtrlA,this,this.disposables)}return e.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent)},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(o.range(this.list.length),e.browserEvent),this.view.domNode.focus()},e.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()},e.prototype.dispose=function(){this.disposables=n.dispose(this.disposables)},e}();function M(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=80&&e.keyCode<=90)}!function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(k||(k={})),t.mightProducePrintableCharacter=M;var R=function(){function e(e,t,i){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.enabled=!1,this.state=k.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=[],this.disposables=[],this.updateOptions(e.options)}return e.prototype.updateOptions=function(e){void 0===e.enableKeyboardNavigation||!!e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)},e.prototype.toggle=function(){this.triggered=!this.triggered},e.prototype.enable=function(){var e=this;if(!this.enabled){var t=f.Event.chain(g.domEvent(this.view.domNode,"keydown")).filter(function(e){return!D(e.target)}).filter(function(){return e.automaticKeyboardNavigation||e.triggered}).map(function(e){return new h.StandardKeyboardEvent(e)}).filter(this.keyboardNavigationLabelProvider.mightProducePrintableCharacter?function(t){return e.keyboardNavigationLabelProvider.mightProducePrintableCharacter(t)}:function(e){return M(e)}).forEach(function(e){e.stopPropagation(),e.preventDefault()}).map(function(e){return e.browserEvent.key}).event,i=f.Event.debounce(t,function(){return null},800);f.Event.reduce(f.Event.any(t,i),function(e,t){return null===t?null:(e||"")+t})(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this.enabled&&(this.enabledDisposables=n.dispose(this.enabledDisposables),this.enabled=!1,this.triggered=!1)},e.prototype.onInput=function(e){if(!e)return this.state=k.Idle,void(this.triggered=!1);var t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===k.Idle?1:0;this.state=k.Typing;for(var r=0;r=0&&e[r]===t-(i-r);)n.push(e[r--]);n.reverse(),r=i;for(;r=e.length)i.push(t[r++]);else if(r>=t.length)i.push(e[n++]);else{if(e[n]===t[r]){n++,r++;continue}e[n]=e.length)i.push(t[r++]);else if(r>=t.length)i.push(e[n++]);else{if(e[n]===t[r]){i.push(e[n]),n++,r++;continue}e[n]-1?t:[e]},e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e)},e.prototype.getDragLabel=function(e){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)},e.prototype.onDragOver=function(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)},e.prototype.drop=function(e,t,i,n){this.dnd.drop(e,t,i,n)},e}(),q=function(){function e(e,t,n,r){void 0===r&&(r=z),this._options=r,this.eventBufferer=new f.EventBufferer,this._onDidOpen=new f.Emitter,this.onDidOpen=this._onDidOpen.event,this._onPin=new f.Emitter,this.didJustPressContextMenuKey=!1,this._onDidDispose=new f.Emitter,this.focus=new I,this.selection=new E("selected"),b.mixin(r,V,!1);var o=[this.focus.renderer,this.selection.renderer];r.accessibilityProvider&&o.push(new j(r.accessibilityProvider)),n=n.map(function(e){return new U(e.templateId,o.concat([e]))});var s=l({},r,{dnd:r.dnd&&new G(this,r.dnd)});if(this.view=new m.ListView(e,t,n,s),"string"!=typeof r.ariaRole?this.view.domNode.setAttribute("role",v.ListAriaRootRole.TREE):this.view.domNode.setAttribute("role",r.ariaRole),this.styleElement=c.createStyleSheet(this.view.domNode),this.styleController=r.styleController||new B(this.styleElement,this.view.domId),this.spliceable=new _.CombinedSpliceable([new x(this.focus,this.view,r.identityProvider),new x(this.selection,this.view,r.identityProvider),this.view]),this.disposables=[this.focus,this.selection,this.view,this._onDidDispose],this.onDidFocus=f.Event.map(g.domEvent(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=f.Event.map(g.domEvent(this.view.domNode,"blur",!0),function(){return null}),this.disposables.push(new O(this,this.view)),"boolean"!=typeof r.keyboardSupport||r.keyboardSupport){var a=new L(this,this.view,r);this.disposables.push(a)}r.keyboardNavigationLabelProvider&&(this.typeLabelController=new R(this,this.view,r.keyboardNavigationLabelProvider),this.disposables.push(this.typeLabelController)),this.disposables.push(this.createMouseController(r)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),r.ariaLabel&&this.view.domNode.setAttribute("aria-label",i.localize(0,null,r.ariaLabel)),this.style(r)}return Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return f.Event.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(t){return e.toListEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){var e=this;return f.Event.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(t){return e.toListEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onPin",{get:function(){var e=this;return f.Event.map(this._onPin.event,function(t){return e.toListEvent({indexes:t})})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidScroll",{get:function(){return this.view.onDidScroll},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseUp",{get:function(){return this.view.onMouseUp},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseOver",{get:function(){return this.view.onMouseOver},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMove",{get:function(){return this.view.onMouseMove},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseOut",{get:function(){return this.view.onMouseOut},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this,t=f.Event.chain(g.domEvent(this.view.domNode,"keydown")).map(function(e){return new h.StandardKeyboardEvent(e)}).filter(function(t){return e.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode}).filter(function(e){return e.preventDefault(),e.stopPropagation(),!1}).event,i=f.Event.chain(g.domEvent(this.view.domNode,"keyup")).filter(function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t}).filter(function(){return e.getFocus().length>0&&!!e.view.domElement(e.getFocus()[0])}).map(function(t){var i=e.getFocus()[0];return{index:i,element:e.view.element(i),anchor:e.view.domElement(i),browserEvent:t}}).event,n=f.Event.chain(this.view.onContextMenu).filter(function(){return!e.didJustPressContextMenuKey}).map(function(e){var t=e.element,i=e.index,n=e.browserEvent;return{element:t,index:i,anchor:{x:n.clientX+1,y:n.clientY},browserEvent:n}}).event;return f.Event.any(t,i,n)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyDown",{get:function(){return g.domEvent(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyUp",{get:function(){return g.domEvent(this.view.domNode,"keyup")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyPress",{get:function(){return g.domEvent(this.view.domNode,"keypress")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this._onDidDispose.event},enumerable:!0,configurable:!0}),e.prototype.createMouseController=function(e){return new W(this)},e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=l({},this._options,e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,i){var n=this;if(void 0===i&&(i=[]),e<0||e>this.view.length)throw new Error("Invalid start index: "+e);if(t<0)throw new Error("Invalid delete count: "+t);0===t&&0===i.length||this.eventBufferer.bufferEvents(function(){return n.spliceable.splice(e,t,i)})},e.prototype.updateWidth=function(e){this.view.updateWidth(e)},e.prototype.rerender=function(){this.view.rerender()},e.prototype.element=function(e){return this.view.element(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeContentHeight",{get:function(){return this.view.onDidChangeContentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this.view.scrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderHeight",{get:function(){return this.view.renderHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstVisibleIndex",{get:function(){return this.view.firstVisibleIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastVisibleIndex",{get:function(){return this.view.lastVisibleIndex},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.view.domNode.focus()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.toggleKeyboardNavigation=function(){this.typeLabelController&&this.typeLabelController.toggle()},e.prototype.setSelection=function(e,t){for(var i=0,n=e;i=this.length)throw new Error("Invalid index "+r)}e=e.sort(K),this.selection.set(e,t)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.getSelectedElements=function(){var e=this;return this.getSelection().map(function(t){return e.view.element(t)})},e.prototype.setFocus=function(e,t){for(var i=0,n=e;i=this.length)throw new Error("Invalid index "+r)}e=e.sort(K),this.focus.set(e,t)},e.prototype.focusNext=function(e,t,i,n){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var r=this.focus.get(),o=this.findNextIndex(r.length>0?r[0]+e:0,t,n);o>-1&&this.setFocus([o],i)}},e.prototype.focusPrevious=function(e,t,i,n){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var r=this.focus.get(),o=this.findPreviousIndex(r.length>0?r[0]-e:0,t,n);o>-1&&this.setFocus([o],i)}},e.prototype.focusNextPage=function(e,t){var i=this,n=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);n=0===n?0:n-1;var r=this.view.element(n),o=this.getFocusedElements()[0];if(o!==r){var s=this.findPreviousIndex(n,!1,t);s>-1&&o!==this.view.element(s)?this.setFocus([s],e):this.setFocus([n],e)}else{var a=this.view.getScrollTop();this.view.setScrollTop(a+this.view.renderHeight-this.view.elementHeight(n)),this.view.getScrollTop()!==a&&setTimeout(function(){return i.focusNextPage(e,t)},0)}},e.prototype.focusPreviousPage=function(e,t){var i,n=this,r=this.view.getScrollTop();i=0===r?this.view.indexAt(r):this.view.indexAfter(r-1);var o=this.view.element(i),s=this.getFocusedElements()[0];if(s!==o){var a=this.findNextIndex(i,!1,t);a>-1&&s!==this.view.element(a)?this.setFocus([a],e):this.setFocus([i],e)}else{var c=r;this.view.setScrollTop(r-this.view.renderHeight),this.view.getScrollTop()!==c&&setTimeout(function(){return n.focusPreviousPage(e,t)},0)}},e.prototype.focusLast=function(e,t){if(0!==this.length){var i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}},e.prototype.focusFirst=function(e,t){if(0!==this.length){var i=this.findNextIndex(0,!1,t);i>-1&&this.setFocus([i],e)}},e.prototype.findNextIndex=function(e,t,i){void 0===t&&(t=!1);for(var n=0;n=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1},e.prototype.findPreviousIndex=function(e,t,i){void 0===t&&(t=!1);for(var n=0;n=this.length)throw new Error("Invalid index "+e);var i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if(r.isNumber(t)){var s=o-this.view.renderHeight;this.view.setScrollTop(s*S.clamp(t,0,1)+n)}else{var a=n+o,c=i+this.view.renderHeight;n=c&&this.view.setScrollTop(a-this.view.renderHeight)}},e.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var t=this.view.getScrollTop(),i=this.view.elementTop(e),n=this.view.elementHeight(e);if(it+this.view.renderHeight)return null;var r=n-this.view.renderHeight;return Math.abs((t-i)/r)},e.prototype.isDOMFocused=function(){return this.view.domNode===document.activeElement},e.prototype.getHTMLElement=function(){return this.view.domNode},e.prototype.open=function(e,t){for(var i=this,n=0,r=e;n=this.length)throw new Error("Invalid index "+o)}this._onDidOpen.fire({indexes:e,elements:e.map(function(e){return i.view.element(e)}),browserEvent:t})},e.prototype.pin=function(e){for(var t=0,i=e;t=this.length)throw new Error("Invalid index "+n)}this._onPin.fire(e)},e.prototype.style=function(e){this.styleController.style(e)},e.prototype.toListEvent=function(e){var t=this,i=e.indexes,n=e.browserEvent;return{indexes:i,elements:i.map(function(e){return t.view.element(e)}),browserEvent:n}},e.prototype._onFocusChange=function(){var e=this.focus.get();e.length>0?this.view.domNode.setAttribute("aria-activedescendant",this.view.getElementDomId(e[0])):this.view.domNode.removeAttribute("aria-activedescendant"),this.view.domNode.setAttribute("role","tree"),c.toggleClass(this.view.domNode,"element-focused",e.length>0)},e.prototype._onSelectionChange=function(){var e=this.selection.get();c.toggleClass(this.view.domNode,"selection-none",0===e.length),c.toggleClass(this.view.domNode,"selection-single",1===e.length),c.toggleClass(this.view.domNode,"selection-multiple",e.length>1)},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables=n.dispose(this.disposables),this._onDidOpen.dispose(),this._onPin.dispose(),this._onDidDispose.dispose()},p([s.memoize],e.prototype,"onFocusChange",null),p([s.memoize],e.prototype,"onSelectionChange",null),p([s.memoize],e.prototype,"onPin",null),p([s.memoize],e.prototype,"onContextMenu",null),e}();t.List=q}),define(i[975],n([0,1,17,122,5,36,368]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){this.renderer=e,this.modelProvider=t}return Object.defineProperty(e.prototype,"templateId",{get:function(){return this.renderer.templateId},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return{data:this.renderer.renderTemplate(e),disposable:{dispose:function(){}}}},e.prototype.renderElement=function(e,t,i,n){var r=this;if(i.disposable&&i.disposable.dispose(),i.data){var s=this.modelProvider();if(s.isResolved(e))return this.renderer.renderElement(s.get(e),e,i.data,n);var a=new o.CancellationTokenSource,c=s.resolve(e,a.token);i.disposable={dispose:function(){return a.cancel()}},this.renderer.renderPlaceholder(e,i.data),c.then(function(t){return r.renderer.renderElement(t,e,i.data,n)})}},e.prototype.disposeTemplate=function(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)},e}(),a=function(){function e(e,t,i,r){void 0===r&&(r={});var o=this,a=i.map(function(e){return new s(e,function(){return o.model})});this.list=new n.List(e,t,a,r)}return e.prototype.getHTMLElement=function(){return this.list.getHTMLElement()},e.prototype.isDOMFocused=function(){return this.list.getHTMLElement()===document.activeElement},e.prototype.domFocus=function(){this.list.domFocus()},Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.list.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this.list.onDidBlur},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widget",{get:function(){return this.list},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this.list.onDidDispose},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return r.Event.map(this.list.onFocusChange,function(t){var i=t.elements,n=t.indexes;return{elements:i.map(function(t){return e._model.get(t)}),indexes:n}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onOpen",{get:function(){var e=this;return r.Event.map(this.list.onDidOpen,function(t){var i=t.elements,n=t.indexes,r=t.browserEvent;return{elements:i.map(function(t){return e._model.get(t)}),indexes:n,browserEvent:r}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){var e=this;return r.Event.map(this.list.onSelectionChange,function(t){var i=t.elements,n=t.indexes;return{elements:i.map(function(t){return e._model.get(t)}),indexes:n}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onPin",{get:function(){var e=this;return r.Event.map(this.list.onPin,function(t){var i=t.elements,n=t.indexes;return{elements:i.map(function(t){return e._model.get(t)}),indexes:n}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return r.Event.map(this.list.onContextMenu,function(t){var i=t.element,n=t.index,r=t.anchor,o=t.browserEvent;return void 0===i?{element:i,index:n,anchor:r,browserEvent:o}:{element:e._model.get(i),index:n,anchor:r,browserEvent:o}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e,this.list.splice(0,this.list.length,i.range(e.length))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.list.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.list.scrollTop},set:function(e){this.list.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.open=function(e,t){this.list.open(e,t)},e.prototype.setFocus=function(e){this.list.setFocus(e)},e.prototype.focusNext=function(e,t){this.list.focusNext(e,t)},e.prototype.focusPrevious=function(e,t){this.list.focusPrevious(e,t)},e.prototype.focusNextPage=function(){this.list.focusNextPage()},e.prototype.focusPreviousPage=function(){this.list.focusPreviousPage()},e.prototype.getFocus=function(){return this.list.getFocus()},e.prototype.setSelection=function(e){this.list.setSelection(e)},e.prototype.getSelection=function(){return this.list.getSelection()},e.prototype.layout=function(e,t){this.list.layout(e,t)},e.prototype.toggleKeyboardNavigation=function(){this.list.toggleKeyboardNavigation()},e.prototype.reveal=function(e,t){this.list.reveal(e,t)},e.prototype.style=function(e){this.list.style(e)},e.prototype.dispose=function(){this.list.dispose()},e}();t.PagedList=a}),define(i[979],n([0,1,2,5,54,60,7,17,122,105,12,176,974]),function(e,t,i,n,r,o,s,a,c,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=s.$,p=function(){function e(){}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"selectOption.entry.template"},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=Object.create(null);return t.disposables=[],t.root=e,t.text=s.append(e,h(".option-text")),t.decoratorRight=s.append(e,h(".option-decorator-right")),t.itemDescription=s.append(e,h(".option-text-description")),s.addClass(t.itemDescription,"visually-hidden"),t},e.prototype.renderElement=function(e,t,i){var n=i,r=e.text,o=e.decoratorRight,a=e.isDisabled;if(n.text.textContent=r,n.decoratorRight.innerText=o||"","string"==typeof e.description){var c=r.replace(/ /g,"_").toLowerCase()+"_description_"+n.root.id;n.text.setAttribute("aria-describedby",c),n.itemDescription.id=c,n.itemDescription.innerText=e.description}a?s.addClass(n.root,"option-disabled"):s.removeClass(n.root,"option-disabled")},e.prototype.disposeTemplate=function(e){e.disposables=i.dispose(e.disposables)},e}(),f=function(){function e(t,i,r,o,s){this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this.toDispose=[],this._isVisible=!1,this.selectBoxOptions=s||Object.create(null),"number"!=typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=e.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.setAttribute("role","combobox"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"==typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),this._onDidSelect=new n.Emitter,this.toDispose.push(this._onDidSelect),this.styles=o,this.registerListeners(),this.constructSelectDropDown(r),this.selected=i||0,t&&this.setOptions(t,i)}return e.prototype.getHeight=function(){return 18},e.prototype.getTemplateId=function(){return"selectOption.entry.template"},e.prototype.constructSelectDropDown=function(e){this.contextViewProvider=e,this.selectDropDownContainer=s.$(".monaco-select-box-dropdown-container"),s.addClass(this.selectDropDownContainer,"monaco-select-box-dropdown-padding"),this.selectionDetailsPane=s.append(this.selectDropDownContainer,h(".select-box-details-pane"));var t=s.append(this.selectDropDownContainer,h(".select-box-dropdown-container-width-control")),i=s.append(t,h(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",s.append(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=s.createStyleSheet(this.selectDropDownContainer)},e.prototype.registerListeners=function(){var e=this;this.toDispose.push(s.addStandardDisposableListener(this.selectElement,"change",function(t){e.selected=t.target.selectedIndex,e._onDidSelect.fire({index:t.target.selectedIndex,selected:t.target.value})})),this.toDispose.push(s.addDisposableListener(this.selectElement,s.EventType.CLICK,function(t){s.EventHelper.stop(t),e._isVisible?e.hideSelectDropDown(!0):e.showSelectDropDown()})),this.toDispose.push(s.addDisposableListener(this.selectElement,s.EventType.MOUSE_DOWN,function(e){s.EventHelper.stop(e)})),this.toDispose.push(s.addDisposableListener(this.selectElement,s.EventType.KEY_DOWN,function(t){var i=new o.StandardKeyboardEvent(t),n=!1;u.isMacintosh?18!==i.keyCode&&16!==i.keyCode&&10!==i.keyCode&&3!==i.keyCode||(n=!0):(18===i.keyCode&&i.altKey||16===i.keyCode&&i.altKey||10===i.keyCode||3===i.keyCode)&&(n=!0),n&&(e.showSelectDropDown(),s.EventHelper.stop(t))}))},Object.defineProperty(e.prototype,"onDidSelect",{get:function(){return this._onDidSelect.event},enumerable:!0,configurable:!0}),e.prototype.setOptions=function(e,t){var i=this;this.options&&a.equals(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this.options.forEach(function(e,t){i.selectElement.add(i.createOption(e.text,t,e.isDisabled)),"string"==typeof e.description&&(i._hasDetails=!0)})),void 0!==t&&(this.select(t),this._currentSelection=this.selected)},e.prototype.setOptionsList=function(){this.selectList&&this.options&&this.selectList.splice(0,this.selectList.length,this.options)},e.prototype.select=function(e){e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected},e.prototype.setAriaLabel=function(e){this.selectBoxOptions.ariaLabel=e,this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel)},e.prototype.focus=function(){this.selectElement&&this.selectElement.focus()},e.prototype.blur=function(){this.selectElement&&this.selectElement.blur()},e.prototype.render=function(e){s.addClass(e,"select-container"),e.appendChild(this.selectElement),this.applyStyles()},e.prototype.style=function(e){var t=[];this.styles=e,this.styles.listFocusBackground&&t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: "+this.styles.listFocusBackground+" !important; }"),this.styles.listFocusForeground&&t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused:not(:hover) { color: "+this.styles.listFocusForeground+" !important; }"),this.styles.decoratorRightForeground&&t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row .option-decorator-right { color: "+this.styles.decoratorRightForeground+" !important; }"),this.styles.selectBackground&&this.styles.selectBorder&&!this.styles.selectBorder.equals(this.styles.selectBackground)?(t.push(".monaco-select-box-dropdown-container { border: 1px solid "+this.styles.selectBorder+" } "),t.push(".monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid "+this.styles.selectBorder+" } "),t.push(".monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid "+this.styles.selectBorder+" } ")):this.styles.selectListBorder&&(t.push(".monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid "+this.styles.selectListBorder+" } "),t.push(".monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid "+this.styles.selectListBorder+" } ")),this.styles.listHoverForeground&&(t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:hover { color: "+this.styles.listHoverForeground+" !important; }"),t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: "+this.styles.listActiveSelectionForeground+" !important; }")),this.styles.listHoverBackground&&(t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: "+this.styles.listHoverBackground+" !important; }"),t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: "+this.styles.selectBackground+" !important; }")),this.styles.listFocusOutline&&t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted "+this.styles.listFocusOutline+" !important; outline-offset: -1.6px !important; }"),this.styles.listHoverOutline&&(t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:hover:not(.focused) { outline: 1.6px dashed "+this.styles.listHoverOutline+" !important; outline-offset: -1.6px !important; }"),t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { outline: none !important; }")),this.styleElement.innerHTML=t.join("\n"),this.applyStyles()},e.prototype.applyStyles=function(){if(this.selectElement){var e=this.styles.selectBackground?this.styles.selectBackground.toString():null,t=this.styles.selectForeground?this.styles.selectForeground.toString():null,i=this.styles.selectBorder?this.styles.selectBorder.toString():null;this.selectElement.style.backgroundColor=e,this.selectElement.style.color=t,this.selectElement.style.borderColor=i}this.selectList&&this.styleList()},e.prototype.styleList=function(){if(this.selectList){var e=this.styles.selectBackground?this.styles.selectBackground.toString():null;this.selectList.style({});var t=this.styles.selectListBackground?this.styles.selectListBackground.toString():e;this.selectDropDownListContainer.style.backgroundColor=t,this.selectionDetailsPane.style.backgroundColor=t;var i=this.styles.focusBorder?this.styles.focusBorder.toString():null;this.selectDropDownContainer.style.outlineColor=i,this.selectDropDownContainer.style.outlineOffset="-1px"}},e.prototype.createOption=function(e,t,i){var n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n},e.prototype.showSelectDropDown=function(){var e=this;this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:function(){return e.selectElement},render:function(t){return e.renderSelectDropDown(t,!0)},layout:function(){e.layoutSelectDropDown()},onHide:function(){s.toggleClass(e.selectDropDownContainer,"visible",!1),s.toggleClass(e.selectElement,"synthetic-focus",!1)},anchorPosition:this._dropDownPosition}),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:function(){return e.selectElement},render:function(t){return e.renderSelectDropDown(t)},layout:function(){return e.layoutSelectDropDown()},onHide:function(){s.toggleClass(e.selectDropDownContainer,"visible",!1),s.toggleClass(e.selectElement,"synthetic-focus",!1)},anchorPosition:this._dropDownPosition}),this._currentSelection=this.selected,this._isVisible=!0)},e.prototype.hideSelectDropDown=function(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())},e.prototype.renderSelectDropDown=function(e,t){var i=this;return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:function(){try{e.removeChild(i.selectDropDownContainer)}catch(e){}}}},e.prototype.measureMaxDetailsHeight=function(){var e=this,t=0;this.options.forEach(function(i,n){e.selectionDetailsPane.innerText="",i.description?(i.descriptionIsMarkdown?e.selectionDetailsPane.appendChild(e.renderDescriptionMarkdown(i.description)):e.selectionDetailsPane.innerText=i.description,e.selectionDetailsPane.style.display="block"):e.selectionDetailsPane.style.display="none",e.selectionDetailsPane.offsetHeight>t&&(t=e.selectionDetailsPane.offsetHeight)}),this.selectionDetailsPane.innerText="";var i=this.options[this.selected].description||null,n=this.options[this.selected].descriptionIsMarkdown||null;return i&&(n?this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(i)):this.selectionDetailsPane.innerText=i,this.selectionDetailsPane.style.display="block"),t},e.prototype.layoutSelectDropDown=function(t){if(this._skipLayout)return!1;if(this.selectList){s.toggleClass(this.selectDropDownContainer,"visible",!0);var i=s.getDomNodePagePosition(this.selectElement),n=getComputedStyle(this.selectElement),r=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),o=window.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-e.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,c=this.selectElement.offsetWidth,l=this.setWidthControlElement(this.widthControlElement),u=Math.max(l,Math.round(c)).toString()+"px";this.selectDropDownContainer.style.width=u,this.selectList.getHTMLElement().style.height="",this.selectList.layout();var d=this.selectList.contentHeight,h=this._hasDetails?this.measureMaxDetailsHeight():0,p=d+r+h,f=Math.floor((o-r-h)/this.getHeight()),g=Math.floor((a-r-h)/this.getHeight());if(t)return!(i.top+i.height>window.innerHeight-22||i.topf&&this.options.length>f?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),s.removeClass(this.selectionDetailsPane,"border-top"),s.addClass(this.selectionDetailsPane,"border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),s.removeClass(this.selectionDetailsPane,"border-bottom"),s.addClass(this.selectionDetailsPane,"border-top")),!0);if(i.top+i.height>window.innerHeight-22||i.topo&&(d=f*this.getHeight())}else p>a&&(d=g*this.getHeight());return this.selectList.layout(d),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=d+r+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=d+r+"px",this.selectDropDownContainer.style.width=u,this.selectDropDownListContainer.setAttribute("tabindex","0"),s.toggleClass(this.selectElement,"synthetic-focus",!0),s.toggleClass(this.selectDropDownContainer,"synthetic-focus",!0),!0}return!1},e.prototype.setWidthControlElement=function(e){var t=0;if(e&&this.options){var i=0,n=0;this.options.forEach(function(e,t){var r=e.text.length+(e.decoratorRight?e.decoratorRight.length:0);r>n&&(i=t,n=r)}),e.innerHTML=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=s.getTotalWidth(e)}return t},e.prototype.createSelectList=function(e){var t=this;if(!this.selectList){this.selectDropDownListContainer=s.append(e,h(".select-box-dropdown-list-container")),this.listRenderer=new p,this.selectList=new c.List(this.selectDropDownListContainer,this,[this.listRenderer],{ariaLabel:this.selectBoxOptions.ariaLabel,useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1});var i=n.Event.chain(l.domEvent(this.selectDropDownListContainer,"keydown")).filter(function(){return t.selectList.length>0}).map(function(e){return new o.StandardKeyboardEvent(e)});i.filter(function(e){return 3===e.keyCode}).on(function(e){return t.onEnter(e)},this,this.toDispose),i.filter(function(e){return 9===e.keyCode}).on(function(e){return t.onEscape(e)},this,this.toDispose),i.filter(function(e){return 16===e.keyCode}).on(this.onUpArrow,this,this.toDispose),i.filter(function(e){return 18===e.keyCode}).on(this.onDownArrow,this,this.toDispose),i.filter(function(e){return 12===e.keyCode}).on(this.onPageDown,this,this.toDispose),i.filter(function(e){return 11===e.keyCode}).on(this.onPageUp,this,this.toDispose),i.filter(function(e){return 14===e.keyCode}).on(this.onHome,this,this.toDispose),i.filter(function(e){return 13===e.keyCode}).on(this.onEnd,this,this.toDispose),i.filter(function(e){return e.keyCode>=21&&e.keyCode<=56||e.keyCode>=80&&e.keyCode<=108}).on(this.onCharacter,this,this.toDispose),n.Event.chain(l.domEvent(this.selectList.getHTMLElement(),"mouseup")).filter(function(){return t.selectList.length>0}).on(function(e){return t.onMouseUp(e)},this,this.toDispose),this.toDispose.push(this.selectList.onDidBlur(function(e){return t.onListBlur()}),this.selectList.onMouseOver(function(e){return void 0!==e.index&&t.selectList.setFocus([e.index])}),this.selectList.onFocusChange(function(e){return t.onListFocus(e)})),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}},e.prototype.onMouseUp=function(e){s.EventHelper.stop(e);var t=e.target;if(t&&!t.classList.contains("slider")){var i=t.closest(".monaco-list-row");if(i){var n=Number(i.getAttribute("data-index")),r=i.classList.contains("option-disabled");n>=0&&nthis.selected+2)this.selected+=2;else{if(e)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}},e.prototype.onUpArrow=function(){this.selected>0&&(this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]))},e.prototype.onPageUp=function(e){var t=this;s.EventHelper.stop(e),this.selectList.focusPreviousPage(),setTimeout(function(){t.selected=t.selectList.getFocus()[0],t.options[t.selected].isDisabled&&t.selected0&&(t.selected--,t.selectList.setFocus([t.selected])),t.selectList.reveal(t.selected),t.select(t.selected)},1)},e.prototype.onHome=function(e){s.EventHelper.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))},e.prototype.onEnd=function(e){s.EventHelper.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))},e.prototype.onCharacter=function(e){for(var t=r.KeyCodeUtils.toString(e.keyCode),i=-1,n=0;n=i.actionsList.children.length?(i.actionsList.appendChild(n),i.items.push(o)):(i.actionsList.insertBefore(n,i.actionsList.children[r]),i.items.splice(r,0,o),r++)})},t.prototype.getWidth=function(e){if(e>=0&&e=0&&e=0&&e1||(r.visible?r.hide():r.show())}))}r._register(o.addDisposableListener(r._label,o.EventType.KEY_UP,function(e){var t=new s.StandardKeyboardEvent(e);(t.equals(3)||t.equals(10))&&(o.EventHelper.stop(e,!0),r.visible?r.hide():r.show())}));var f=a(r._label);return f&&r._register(f),i.Gesture.addTarget(r._label),r}return a(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{set:function(e){this._label&&(this._label.title=e)},enumerable:!0,configurable:!0}),t.prototype.show=function(){this.visible=!0},t.prototype.hide=function(){this.visible=!1},t.prototype.onEvent=function(e,t){this.hide()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)},t}(n.ActionRunner);t.BaseDropdown=c;var u=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.contextViewProvider=i.contextViewProvider,n}return a(t,e),t.prototype.show=function(){var t=this;e.prototype.show.call(this),o.addClass(this.element,"active"),this.contextViewProvider.showContextView({getAnchor:function(){return t.getAnchor()},render:function(e){return t.renderContents(e)},onDOMEvent:function(e,i){t.onEvent(e,i)},onHide:function(){return t.onHide()}})},t.prototype.getAnchor=function(){return this.element},t.prototype.onHide=function(){o.removeClass(this.element,"active")},t.prototype.hide=function(){e.prototype.hide.call(this),this.contextViewProvider&&this.contextViewProvider.hideContextView()},t.prototype.renderContents=function(e){return null},t}(c);t.Dropdown=u;var d=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._contextMenuProvider=i.contextMenuProvider,n.actions=i.actions||[],n.actionProvider=i.actionProvider,n.menuClassName=i.menuClassName||"",n}return a(t,e),Object.defineProperty(t.prototype,"menuOptions",{get:function(){return this._menuOptions},set:function(e){this._menuOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actions",{get:function(){return this.actionProvider?this.actionProvider.getActions():this._actions},set:function(e){this._actions=e},enumerable:!0,configurable:!0}),t.prototype.show=function(){var t=this;e.prototype.show.call(this),o.addClass(this.element,"active"),this._contextMenuProvider.showContextMenu({getAnchor:function(){return t.element},getActions:function(){return t.actions},getActionsContext:function(){return t.menuOptions?t.menuOptions.context:null},getActionItem:function(e){return t.menuOptions&&t.menuOptions.actionItemProvider?t.menuOptions.actionItemProvider(e):null},getKeyBinding:function(e){return t.menuOptions&&t.menuOptions.getKeyBinding?t.menuOptions.getKeyBinding(e):void 0},getMenuClassName:function(){return t.menuClassName},onHide:function(){return t.onHide()},actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions.anchorAlignment})},t.prototype.hide=function(){e.prototype.hide.call(this)},t.prototype.onHide=function(){this.hide(),o.removeClass(this.element,"active")},t}(c);t.DropdownMenu=d;var h=function(e){function t(t,i,n,r,o,s,a,c){var l=e.call(this,null,t)||this;return l.menuActionsOrProvider=i,l.contextMenuProvider=n,l.actionItemProvider=r,l.actionRunner=o,l.keybindings=s,l.clazz=a,l.anchorAlignmentProvider=c,l}return a(t,e),t.prototype.render=function(e){var t=this,i={contextMenuProvider:this.contextMenuProvider,labelRenderer:function(e){return t.element=o.append(e,o.$("a.action-label.icon")),o.addClasses(t.element,t.clazz),t.element.tabIndex=0,t.element.setAttribute("role","button"),t.element.setAttribute("aria-haspopup","true"),t.element.title=t._action.label||"",null}};if(Array.isArray(this.menuActionsOrProvider)?i.actions=this.menuActionsOrProvider:i.actionProvider=this.menuActionsOrProvider,this.dropdownMenu=this._register(new d(e,i)),this.dropdownMenu.menuOptions={actionItemProvider:this.actionItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.keybindings,context:this._context},this.anchorAlignmentProvider){var n=this;this.dropdownMenu.menuOptions=l({},this.dropdownMenu.menuOptions,{get anchorAlignment(){return n.anchorAlignmentProvider()}})}},t.prototype.setActionContext=function(t){e.prototype.setActionContext.call(this,t),this.dropdownMenu&&(this.dropdownMenu.menuOptions.context=t)},t.prototype.show=function(){this.dropdownMenu&&this.dropdownMenu.show()},t}(r.BaseActionItem);t.DropdownMenuActionItem=h}),define(i[391],n([0,1,209,969,896]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n.localize(0,null),o=n.localize(1,null),s=n.localize(2,null),c=function(e){function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:r+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return a(t,e),t}(i.Checkbox);t.CaseSensitiveCheckbox=c;var l=function(e){function t(t){return e.call(this,{actionClassName:"monaco-whole-word",title:o+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return a(t,e),t}(i.Checkbox);t.WholeWordsCheckbox=l;var u=function(e){function t(t){return e.call(this,{actionClassName:"monaco-regex",title:s+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return a(t,e),t}(i.Checkbox);t.RegexCheckbox=u}),define(i[126],n([0,1,970,68,7,176,101,61,5,69,49,25,948,903]),function(e,t,i,n,r,o,s,c,l,u,d,h,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=r.$,g={inputBackground:d.Color.fromHex("#3C3C3C"),inputForeground:d.Color.fromHex("#CCCCCC"),inputValidationInfoBorder:d.Color.fromHex("#55AAFF"),inputValidationInfoBackground:d.Color.fromHex("#063B49"),inputValidationWarningBorder:d.Color.fromHex("#B89500"),inputValidationWarningBackground:d.Color.fromHex("#352A05"),inputValidationErrorBorder:d.Color.fromHex("#BE1100"),inputValidationErrorBackground:d.Color.fromHex("#5A1D1D")},v=function(e){function t(t,i,o){var s=e.call(this)||this;s.state="idle",s._onDidChange=s._register(new l.Emitter),s.onDidChange=s._onDidChange.event,s._onDidHeightChange=s._register(new l.Emitter),s.onDidHeightChange=s._onDidHeightChange.event,s.contextViewProvider=i,s.options=o||Object.create(null),h.mixin(s.options,g,!1),s.message=null,s.cachedHeight=null,s.placeholder=s.options.placeholder||"",s.ariaLabel=s.options.ariaLabel||"",s.inputBackground=s.options.inputBackground,s.inputForeground=s.options.inputForeground,s.inputBorder=s.options.inputBorder,s.inputValidationInfoBorder=s.options.inputValidationInfoBorder,s.inputValidationInfoBackground=s.options.inputValidationInfoBackground,s.inputValidationInfoForeground=s.options.inputValidationInfoForeground,s.inputValidationWarningBorder=s.options.inputValidationWarningBorder,s.inputValidationWarningBackground=s.options.inputValidationWarningBackground,s.inputValidationWarningForeground=s.options.inputValidationWarningForeground,s.inputValidationErrorBorder=s.options.inputValidationErrorBorder,s.inputValidationErrorBackground=s.options.inputValidationErrorBackground,s.inputValidationErrorForeground=s.options.inputValidationErrorForeground,s.options.validationOptions&&(s.validation=s.options.validationOptions.validation),s.element=r.append(t,f(".monaco-inputbox.idle"));var a=s.options.flexibleHeight?"textarea":"input",u=r.append(s.element,f(".wrapper"));return s.input=r.append(u,f(a+".input")),s.input.setAttribute("autocorrect","off"),s.input.setAttribute("autocapitalize","off"),s.input.setAttribute("spellcheck","false"),s.onfocus(s.input,function(){return r.addClass(s.element,"synthetic-focus")}),s.onblur(s.input,function(){return r.removeClass(s.element,"synthetic-focus")}),s.options.flexibleHeight?(s.mirror=r.append(u,f("div.mirror")),s.mirror.innerHTML=" "):(s.input.type=s.options.type||"text",s.input.setAttribute("wrap","off")),s.ariaLabel&&s.input.setAttribute("aria-label",s.ariaLabel),s.placeholder&&s.setPlaceHolder(s.placeholder),s.oninput(s.input,function(){return s.onValueChange()}),s.onblur(s.input,function(){return s.onBlur()}),s.onfocus(s.input,function(){return s.onFocus()}),s.placeholder&&n.isIE&&s.onclick(s.input,function(e){r.EventHelper.stop(e,!0),s.input.focus()}),setTimeout(function(){s.input&&s.updateMirror()},0),s.options.actions&&(s.actionbar=s._register(new c.ActionBar(s.element)),s.actionbar.push(s.options.actions,{icon:!0,label:!1})),s.applyStyles(),s}return a(t,e),t.prototype.onBlur=function(){this._hideMessage()},t.prototype.onFocus=function(){this._showMessage()},t.prototype.setPlaceHolder=function(e){this.input&&(this.input.setAttribute("placeholder",e),this.input.title=e)},t.prototype.setAriaLabel=function(e){this.ariaLabel=e,this.input&&(e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label"))},Object.defineProperty(t.prototype,"mirrorElement",{get:function(){return this.mirror},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return null===this.cachedHeight?r.getTotalHeight(this.element):this.cachedHeight},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.hasFocus=function(){return document.activeElement===this.input},t.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},t.prototype.enable=function(){this.input.removeAttribute("disabled")},t.prototype.disable=function(){this.input.disabled=!0,this._hideMessage()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},Object.defineProperty(t.prototype,"width",{get:function(){return r.getTotalWidth(this.input)},set:function(e){this.input.style.width=e+"px",this.mirror&&(this.mirror.style.width=e+"px")},enumerable:!0,configurable:!0}),t.prototype.showMessage=function(e,t){this.message=e,r.removeClass(this.element,"idle"),r.removeClass(this.element,"info"),r.removeClass(this.element,"warning"),r.removeClass(this.element,"error"),r.addClass(this.element,this.classForType(e.type));var n,o=this.stylesForType(this.message.type);this.element.style.border=o.border?"1px solid "+o.border:null,n=3===e.type?i.localize(0,null,e.content):2===e.type?i.localize(1,null,e.content):i.localize(2,null,e.content),s.alert(n),(this.hasFocus()||t)&&this._showMessage()},t.prototype.hideMessage=function(){this.message=null,r.removeClass(this.element,"info"),r.removeClass(this.element,"warning"),r.removeClass(this.element,"error"),r.addClass(this.element,"idle"),this._hideMessage(),this.applyStyles()},t.prototype.isInputValid=function(){return!!this.validation&&!this.validation(this.value)},t.prototype.validate=function(){var e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e},t.prototype.stylesForType=function(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}},t.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}},t.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,i=function(){return t.style.width=r.getTotalWidth(e.element)+"px"};this.state="open",this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(n){if(!e.message)return null;t=r.append(n,f(".monaco-inputbox-container")),i();var s={inline:!0,className:"monaco-inputbox-message"},a=e.message.formatContent?o.renderFormattedText(e.message.content,s):o.renderText(e.message.content,s);r.addClass(a,e.classForType(e.message.type));var c=e.stylesForType(e.message.type);return a.style.backgroundColor=c.background?c.background.toString():null,a.style.color=c.foreground?c.foreground.toString():null,a.style.border=c.border?"1px solid "+c.border:null,r.append(t,a),null},layout:i})}},t.prototype._hideMessage=function(){this.contextViewProvider&&"open"===this.state&&(this.state="idle",this.contextViewProvider.hideContextView())},t.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()},t.prototype.updateMirror=function(){if(this.mirror){var e=this.value||this.placeholder,t=10===e.charCodeAt(e.length-1)?" ":"";e+t?this.mirror.textContent=e+t:this.mirror.innerHTML=" ",this.layout()}},t.prototype.style=function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.inputBackground?this.inputBackground.toString():null,t=this.inputForeground?this.inputForeground.toString():null,i=this.inputBorder?this.inputBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=i?"1px":null,this.element.style.borderStyle=i?"solid":null,this.element.style.borderColor=i}},t.prototype.layout=function(){if(this.mirror){var e=this.cachedHeight;this.cachedHeight=r.getTotalHeight(this.mirror),e!==this.cachedHeight&&(this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedHeight))}},t.prototype.dispose=function(){this._hideMessage(),this.element=null,this.input=null,this.contextViewProvider=void 0,this.message=null,this.validation=void 0,this.state=null,this.actionbar=void 0,e.prototype.dispose.call(this)},t}(u.Widget);t.InputBox=v;var m=function(e){function t(t,i,n){var r=e.call(this,t,i,n)||this;return r.history=new p.HistoryNavigator(n.history,100),r}return a(t,e),t.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},t.prototype.getHistory=function(){return this.history.getHistory()},t.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,s.status(this.value))},t.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,s.status(this.value))},t.prototype.clearHistory=function(){this.history.clear()},t.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e},t.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},t.prototype.getNextValue=function(){return this.history.next()||this.history.last()},t}(v);t.HistoryInputBox=m}),define(i[990],n([0,1,968,7,126,69,5,391,893]),function(e,t,i,n,r,o,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i.localize(0,null),u=function(e){function t(t,i,n,r){var o=e.call(this)||this;return o._showOptionButtons=n,o.fixFocusOnOptionClickEnabled=!0,o._onDidOptionChange=o._register(new s.Emitter),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new s.Emitter),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new s.Emitter),o.onMouseDown=o._onMouseDown.event,o._onInput=o._register(new s.Emitter),o.onInput=o._onInput.event,o._onKeyUp=o._register(new s.Emitter),o.onKeyUp=o._onKeyUp.event,o._onCaseSensitiveKeyDown=o._register(new s.Emitter),o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event,o._onRegexKeyDown=o._register(new s.Emitter),o.onRegexKeyDown=o._onRegexKeyDown.event,o._lastHighlightFindOptions=0,o.contextViewProvider=i,o.placeholder=r.placeholder||"",o.validation=r.validation,o.label=r.label||l,o.inputActiveOptionBorder=r.inputActiveOptionBorder,o.inputBackground=r.inputBackground,o.inputForeground=r.inputForeground,o.inputBorder=r.inputBorder,o.inputValidationInfoBorder=r.inputValidationInfoBorder,o.inputValidationInfoBackground=r.inputValidationInfoBackground,o.inputValidationInfoForeground=r.inputValidationInfoForeground,o.inputValidationWarningBorder=r.inputValidationWarningBorder,o.inputValidationWarningBackground=r.inputValidationWarningBackground,o.inputValidationWarningForeground=r.inputValidationWarningForeground,o.inputValidationErrorBorder=r.inputValidationErrorBorder,o.inputValidationErrorBackground=r.inputValidationErrorBackground,o.inputValidationErrorForeground=r.inputValidationErrorForeground,o.buildDomNode(r.appendCaseSensitiveLabel||"",r.appendWholeWordsLabel||"",r.appendRegexLabel||"",r.history||[],!!r.flexibleHeight),t&&t.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,function(e){return o._onKeyDown.fire(e)}),o.onkeyup(o.inputBox.inputElement,function(e){return o._onKeyUp.fire(e)}),o.oninput(o.inputBox.inputElement,function(e){return o._onInput.fire()}),o.onmousedown(o.inputBox.inputElement,function(e){return o._onMouseDown.fire(e)}),o}return a(t,e),t.prototype.enable=function(){n.removeClass(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},t.prototype.disable=function(){n.addClass(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},t.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.clear=function(){this.clearValidation(),this.setValue(""),this.focus()},t.prototype.getValue=function(){return this.inputBox.value},t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},t.prototype.onSearchSubmit=function(){this.inputBox.addToHistory()},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e},t.prototype.getWholeWords=function(){return this.wholeWords.checked},t.prototype.setWholeWords=function(e){this.wholeWords.checked=e},t.prototype.getRegex=function(){return this.regex.checked},t.prototype.setRegex=function(e){this.regex.checked=e,this.validate()},t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},t.prototype.focusOnRegex=function(){this.regex.focus()},t.prototype.highlightFindOptions=function(){n.removeClass(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,n.addClass(this.domNode,"highlight-"+this._lastHighlightFindOptions)},t.prototype.buildDomNode=function(e,t,i,o,s){var a=this;if(this.domNode=document.createElement("div"),n.addClass(this.domNode,"monaco-findInput"),this.inputBox=this._register(new r.HistoryInputBox(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:o,flexibleHeight:s})),this.regex=this._register(new c.RegexCheckbox({appendTitle:i,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.regex.onChange(function(e){a._onDidOptionChange.fire(e),!e&&a.fixFocusOnOptionClickEnabled&&a.inputBox.focus(),a.validate()})),this._register(this.regex.onKeyDown(function(e){a._onRegexKeyDown.fire(e)})),this.wholeWords=this._register(new c.WholeWordsCheckbox({appendTitle:t,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.wholeWords.onChange(function(e){a._onDidOptionChange.fire(e),!e&&a.fixFocusOnOptionClickEnabled&&a.inputBox.focus(),a.validate()})),this.caseSensitive=this._register(new c.CaseSensitiveCheckbox({appendTitle:e,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.caseSensitive.onChange(function(e){a._onDidOptionChange.fire(e),!e&&a.fixFocusOnOptionClickEnabled&&a.inputBox.focus(),a.validate()})),this._register(this.caseSensitive.onKeyDown(function(e){a._onCaseSensitiveKeyDown.fire(e)})),this._showOptionButtons){var l=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width()+"px";this.inputBox.inputElement.style.paddingRight=l,this.inputBox.mirrorElement&&(this.inputBox.mirrorElement.style.paddingRight=l)}var u=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=u.indexOf(document.activeElement);if(t>=0){var i=-1;e.equals(17)?i=(t+1)%u.length:e.equals(15)&&(i=0===t?u.length-1:t-1),e.equals(9)?u[t].blur():i>=0&&u[i].focus(),n.EventHelper.stop(e,!0)}}});var d=document.createElement("div");d.className="controls",d.style.display=this._showOptionButtons?"block":"none",d.appendChild(this.caseSensitive.domNode),d.appendChild(this.wholeWords.domNode),d.appendChild(this.regex.domNode),this.domNode.appendChild(d)},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},t.prototype.showMessage=function(e){this.inputBox&&this.inputBox.showMessage(e)},t.prototype.clearMessage=function(){this.inputBox&&this.inputBox.hideMessage()},t.prototype.clearValidation=function(){this.inputBox&&this.inputBox.hideMessage()},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.OPTION_CHANGE="optionChange",t}(o.Widget);t.FindInput=u}),define(i[991],n([4,3]),function(e,t){return e.create("vs/base/browser/ui/menu/menu",t)}),define(i[213],n([0,1,991,9,29,61,7,60,13,2,106,5,12,914]),function(e,t,i,n,r,o,s,c,l,u,d,h,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MENU_MNEMONIC_REGEX=function(){try{return new RegExp("\\(&([^\\s&])\\)|(?1){var n=i.shift();n&&(r.focusItemByElement(n.container),i.push(n)),r.mnemonics.set(t,i)}}})),p.isLinux&&r._register(s.addDisposableListener(o,s.EventType.KEY_DOWN,function(e){var t=new c.StandardKeyboardEvent(e);t.equals(14)||t.equals(11)?(r.focusedItem=r.items.length-1,r.focusNext(),s.EventHelper.stop(e,!0)):(t.equals(13)||t.equals(12))&&(r.focusedItem=0,r.focusPrevious(),s.EventHelper.stop(e,!0))})),r._register(s.addDisposableListener(r.domNode,s.EventType.MOUSE_OUT,function(e){var t=e.relatedTarget;s.isAncestor(t,r.domNode)||(r.focusedItem=void 0,r.scrollTopHold=r.menuElement.scrollTop,r.updateFocus(),e.stopPropagation())})),r._register(s.addDisposableListener(r.domNode,s.EventType.MOUSE_UP,function(e){s.EventHelper.stop(e,!0)})),r._register(s.addDisposableListener(r.actionsList,s.EventType.MOUSE_OVER,function(e){var t=e.target;if(t&&s.isAncestor(t,r.actionsList)&&t!==r.actionsList){for(;t.parentElement!==r.actionsList&&null!==t.parentElement;)t=t.parentElement;if(s.hasClass(t,"action-item")){var i=r.focusedItem;r.scrollTopHold=r.menuElement.scrollTop,r.setFocusedItem(t),i!==r.focusedItem&&r.updateFocus()}}}));var a={parent:r};return r.mnemonics=new Map,r.push(i,{icon:!0,label:!0,isMenu:!0}),r.scrollableElement=r._register(new d.DomScrollableElement(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0})),r.scrollableElement.getDomNode().style.position=null,o.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",r.scrollableElement.onScroll(function(){r._onScroll.fire()},r,r.menuDisposables),r._register(s.addDisposableListener(r.menuElement,s.EventType.SCROLL,function(e){void 0!==r.scrollTopHold&&(r.menuElement.scrollTop=r.scrollTopHold,r.scrollTopHold=void 0),r.scrollableElement.scanDomNode()})),t.appendChild(r.scrollableElement.getDomNode()),r.scrollableElement.scanDomNode(),r.items.filter(function(e){return!(e instanceof y)}).forEach(function(e,t,i){e.updatePositionInSet(t+1,i.length)}),r}return a(t,e),t.prototype.style=function(e){var t=this.getContainer(),i=e.foregroundColor?""+e.foregroundColor:null,n=e.backgroundColor?""+e.backgroundColor:null,r=e.borderColor?"2px solid "+e.borderColor:null,o=e.shadowColor?"0 2px 4px "+e.shadowColor:null;t.style.border=r,this.domNode.style.color=i,this.domNode.style.backgroundColor=n,t.style.boxShadow=o,this.items&&this.items.forEach(function(t){(t instanceof v||t instanceof y)&&t.style(e)})},t.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),t.prototype.trigger=function(t){if(t<=this.items.length&&t>=0){var i=this.items[t];if(i instanceof m)e.prototype.focus.call(this,t),i.open(!0);else{if(!(i instanceof v))return;e.prototype.run.call(this,i._action,i._context)}}},t.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},t.prototype.setFocusedItem=function(e){for(var t=0;t
    ");b()}function D(){return 1===p?_("unexpected "):2!==p?_("unexpected "):void b()}function k(e){if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function L(e){if(isNaN(e))return _("cannot parse float");if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function M(e){if(isNaN(e))return _("cannot parse integer");if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function R(e){if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function O(e){if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function T(e){if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function P(e){if(e.isClosed)return"";var t=h(""),t.replace(/&#([0-9]+);/g,function(e,t){return String.fromCodePoint(parseInt(t,10))}).replace(/&#x([0-9a-f]+);/g,function(e,t){return String.fromCodePoint(parseInt(t,16))}).replace(/&|<|>|"|'/g,function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e})}for(;r=n));){var A=e.charCodeAt(r);if(a(1),60!==A)return _("expected <");if(r>=n)return _("unexpected end of input");var N=e.charCodeAt(r);if(63!==N)if(33!==N){if(47===N){if(a(1),l(),u("plist")){d(">");continue}if(u("dict")){d(">"),x();continue}if(u("array")){d(">"),D();continue}return _("unexpected closed tag")}var F=(C=void 0,w=void 0,C=h(">"),w=!1,47===C.charCodeAt(C.length-1)&&(w=!0,C=C.substring(0,C.length-1)),{name:C.trim(),isClosed:w});switch(F.name){case"dict":1===p?E.enterDict():2===p?I.enterDict():(f={},null!==i&&(f[i]={filename:t,line:o,char:s}),y(1,f)),F.isClosed&&x();continue;case"array":1===p?E.enterArray():2===p?I.enterArray():y(2,f=[]),F.isClosed&&D();continue;case"key":S=P(F),1!==p?_("unexpected "):null!==m?_("too many "):m=S;continue;case"string":k(P(F));continue;case"real":L(parseFloat(P(F)));continue;case"integer":M(parseInt(P(F),10));continue;case"date":R(new Date(P(F)));continue;case"data":O(P(F));continue;case"true":P(F),T(!0);continue;case"false":P(F),T(!1);continue}if(!/^plist/.test(F.name))return _("unexpected opened tag "+F.name)}else{if(a(1),u("--")){d("--\x3e");continue}d(">")}else a(1),d("?>")}return f}Object.defineProperty(t,"__esModule",{value:!0}),t.parseWithLocation=function(e,t,n){return i(e,t,n)},t.parse=function(e){return i(e,null,null)}}),define(i[120],n([0,1,6]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkbenchThemeService=i.createDecorator("themeService"),t.VS_LIGHT_THEME="vs",t.VS_DARK_THEME="vs-dark",t.VS_HC_THEME="hc-black",t.HC_THEME_ID="Default High Contrast",t.COLOR_THEME_SETTING="workbench.colorTheme",t.DETECT_HC_SETTING="window.autoDetectHighContrast",t.ICON_THEME_SETTING="workbench.iconTheme",t.CUSTOM_WORKBENCH_COLORS_SETTING="workbench.colorCustomizations",t.CUSTOM_EDITOR_COLORS_SETTING="editor.tokenColorCustomizations"}),define(i[1163],n([0,1,128,24,2,34,19,120,22,49]),function(e,t,i,n,r,o,s,a,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t,i){this._codesandboxService=e,this._editorService=t,this.themeService=i,this._toDispose=[],t.onDidActiveEditorChange(this.updateCurrentFileOpen,this,this._toDispose),i.onDidColorThemeChange(this.syncCodeSandboxTheme.bind(this)),this.syncCodeSandboxTheme()}return e.prototype.syncCodeSandboxTheme=function(){this._codesandboxService.runSignal("preferences.settingChanged",{name:"customVSCodeTheme",value:this.getColorTheme()})},e.prototype.getColorTheme=function(){for(var e=this.themeService.getColorTheme(),t={},i=[],n=0,r=s.Registry.as(c.Extensions.ColorContribution).getColors().map(function(e){return e.id}).sort();n=0;o--){var a=i.tokens1[o];if(t.column-1>=a.startIndex){n=o;break}}var c=0;for(o=i.tokens2.length>>>1;o>=0;o--)if(t.column-1>=i.tokens2[o<<1]){c=o;break}var l="",u=i.tokens1[n].startIndex,d=i.tokens1[n].endIndex,h=this._model.getLineContent(t.lineNumber).substring(u,d);l+='

    '+function(e){e.length>40&&(e=e.substr(0,20)+"…"+e.substr(e.length-20));for(var t="",i=0,n=e.length;i('+h.length+" "+(1===h.length?"char":"chars")+")

    ",l+='';var p=this._decodeMetadata(i.tokens2[1+(c<<1)]);l+='',l+='",l+='",l+='",l+='",l+='",p.background.isOpaque()&&p.foreground.isOpaque()?l+='":l+='',l+="";var f=this._themeService.getColorTheme();l+='';var g=v.findMatchingThemeRule(f,i.tokens1[n].scopes,!1);l+=g?''+g.rawSelector+"\n"+JSON.stringify(g.settings,null,"\t")+"":'No theme selector.',l+='',l+="
      ";for(o=i.tokens1[n].scopes.length-1;o>=0;o--)l+="
    • "+s.escape(i.tokens1[n].scopes[o])+"
    • ";l+="
    ",this._domNode.innerHTML=l,this._editor.layoutContentWidget(this)}},t.prototype._decodeMetadata=function(e){var t=l.TokenizationRegistry.getColorMap(),i=l.TokenMetadata.getLanguageId(e),n=l.TokenMetadata.getTokenType(e),r=l.TokenMetadata.getFontStyle(e),o=l.TokenMetadata.getForeground(e),s=l.TokenMetadata.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(i),tokenType:n,fontStyle:r,foreground:t[o],background:t[s]}},t.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},t.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},t.prototype._getTokensAtLine=function(e,t){var i=this._getStateBeforeLine(e,t),n=e.tokenizeLine(this._model.getLineContent(t),i),r=e.tokenizeLine2(this._model.getLineContent(t),i);return{startState:i,tokens1:n.tokens,tokens2:r.tokens,endState:n.ruleStack}},t.prototype._getStateBeforeLine=function(e,t){for(var i=null,n=1;n1){var n=parseInt(i[1],10);if(o.isNumber(n)){if(t={startLineNumber:n,startColumn:1,endLineNumber:n,endColumn:1},i.length>3){var r=parseInt(i[3],10);o.isNumber(r)&&(t={startLineNumber:t.startLineNumber,startColumn:r,endLineNumber:t.endLineNumber,endColumn:r})}}else""===i[1]&&(t={startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1})}return i&&t?{search:e.substr(0,i.index),range:t}:null},c.prototype.getGroupLabel=function(){return this.includeSymbols?n.localize(0,null):n.localize(1,null)},c.prototype.getAutoFocus=function(e){return{autoFocusFirstEntry:!0}},c.prototype.onOpen=function(){this.openSymbolHandler.onOpen(),this.openFileHandler.onOpen()},c.prototype.onClose=function(e){this.isClosed=!0,this.scorerCache=Object.create(null),this.openSymbolHandler.onClose(e),this.openFileHandler.onClose(e)},c.ID="workbench.picker.anything",c.LINE_COLON_PATTERN=/[#:\(](\d*)([#:,](\d*))?\)?$/,c.TYPING_SEARCH_DELAY=200,c.MAX_DISPLAYED_RESULTS=512,c=p([f(0,v.INotificationService),f(1,d.IInstantiationService),f(2,h.IConfigurationService)],c)}(c.QuickOpenHandler);t.OpenAnythingHandler=y}),define(i[437],n([0,1,35,83,49,120,1155,633,23,25,21,22,19,287,1161,9]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=h.Registry.as(d.Extensions.ColorContribution),m={comments:["comment"],strings:["string"],keywords:["keyword - keyword.operator","keyword.control","storage","storage.type"],numbers:["constant.numeric"],types:["entity.name.type","entity.name.class","support.type","support.class"],functions:["entity.name.function","support.function"],variables:["variable","entity.name.variable"]},y=function(){function e(e,t,i){this.themeTokenColors=[],this.customTokenColors=[],this.colorMap={},this.customColorMap={},this.id=e,this.label=t,this.settingsId=i,this.isLoaded=!1}return Object.defineProperty(e.prototype,"tokenColors",{get:function(){return this.themeTokenColors.concat(this.customTokenColors)},enumerable:!0,configurable:!0}),e.prototype.getColor=function(e,t){var i=this.customColorMap[e];return i||(i=this.colorMap[e],!1!==t&&c.isUndefined(i)&&(i=this.getDefault(e)),i)},e.prototype.getDefault=function(e){return v.resolveDefaultColor(e,this)},e.prototype.defines=function(e){return this.customColorMap.hasOwnProperty(e)||this.colorMap.hasOwnProperty(e)},e.prototype.setCustomColors=function(e){this.customColorMap={},this.overwriteCustomColors(e);var t=e["["+this.settingsId+"]"];c.isObject(t)&&this.overwriteCustomColors(t),this.themeTokenColors&&this.themeTokenColors.length&&_(this.themeTokenColors[0],this)},e.prototype.overwriteCustomColors=function(e){for(var t in e){var i=e[t];"string"==typeof i&&(this.customColorMap[t]=r.Color.fromHex(i))}},e.prototype.setCustomTokenColors=function(e){this.customTokenColors=[],this.addCustomTokenColors(e);var t=e["["+this.settingsId+"]"];c.isObject(t)&&this.addCustomTokenColors(t)},e.prototype.addCustomTokenColors=function(e){for(var t in m){var i=e[t];if(i)for(var n="string"==typeof i?{foreground:i}:i,r=0,o=m[t];r0)return Promise.reject(new Error(a.localize(0,null,d.map(function(e){return p.getParseErrorMessage(e.error)}).join(", "))));var f=Promise.resolve(null);return h.include&&(f=e(t,u.joinPath(u.dirname(i),h.include),o,c)),f.then(function(e){if(Array.isArray(h.settings))return s.convertSettings(h.settings,o,c),null;var n=h.colors;if(n){if("object"!=typeof n)return Promise.reject(new Error(a.localize(1,null,i.toString())));for(var l in n){var d=n[l];"string"==typeof d&&(c[l]=r.Color.fromHex(n[l]))}}var p=h.tokenColors;return p?Array.isArray(p)?(o.push.apply(o,p),null):"string"==typeof p?b(t,u.joinPath(u.dirname(i),p),o,{}):Promise.reject(new Error(a.localize(2,null,i.toString()))):null})}):b(t,i,o,c)}(e,this.location,this.themeTokenColors,this.colorMap).then(function(e){t.isLoaded=!0,t.sanitizeTokenColors()}):Promise.resolve(void 0)},e.prototype.sanitizeTokenColors=function(){var e=!1,t=[_({settings:{}},this)];this.themeTokenColors.forEach(function(i){i.scope&&i.settings&&("token.info-token"===i.scope&&(e=!0),t.push(i))}),e||t.push.apply(t,S[this.type]),this.themeTokenColors=t},e.prototype.toStorageData=function(){var e={};for(var t in this.colorMap)e[t]=r.Color.Format.CSS.formatHexA(this.colorMap[t],!0);return JSON.stringify({id:this.id,label:this.label,settingsId:this.settingsId,selector:this.id.split(" ").join("."),themeTokenColors:this.themeTokenColors,extensionData:this.extensionData,colorMap:e,watch:this.watch})},e.prototype.hasEqualData=function(e){return l.equals(this.colorMap,e.colorMap)&&l.equals(this.tokenColors,e.tokenColors)},Object.defineProperty(e.prototype,"baseTheme",{get:function(){return this.id.split(" ")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){switch(this.baseTheme){case o.VS_LIGHT_THEME:return"light";case o.VS_HC_THEME:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),e.createUnloadedTheme=function(t){var i=new e(t,"","__"+t);return i.isLoaded=!1,i.themeTokenColors=[{settings:{}}],i.watch=!1,i},e.createLoadedEmptyTheme=function(t,i){var n=new e(t,"",i);return n.isLoaded=!0,n.themeTokenColors=[{settings:{}}],n.watch=!1,n},e.fromStorageData=function(t){try{var i=JSON.parse(t),n=new e("","","");for(var o in i)switch(o){case"colorMap":var s=i[o];for(var a in s)n.colorMap[a]=r.Color.fromHex(s[a]);break;case"themeTokenColors":case"id":case"label":case"settingsId":case"extensionData":case"watch":n[o]=i[o]}if(!n.id||!n.settingsId)return;return n}catch(e){return}},e.fromExtensionTheme=function(t,n,r){var o=(t.uiTheme||"vs-dark")+" "+function(e,t){g.startsWith(t,"./")&&(t=t.substr(2));var i=e+"-"+t;(i=i.replace(/[^_\-a-zA-Z0-9]/g,"-")).charAt(0).match(/[0-9\-]/)&&(i="_"+i);return i}(r.extensionId,t.path),s=t.label||i.basename(t.path),a=new e(o,s,t.id||s);return a.description=t.description,a.watch=!0===t._watch,a.location=n,a.extensionData=r,a.isLoaded=!1,a},e}();function b(e,t,i,n){return e.resolveContent(t,{encoding:"utf8"}).then(function(e){try{var t=f.parse(e.value.toString()).settings;return Array.isArray(t)?(s.convertSettings(t,i,n),Promise.resolve(null)):Promise.reject(new Error(a.localize(3,null)))}catch(e){return Promise.reject(new Error(a.localize(4,null,e.message)))}},function(e){return Promise.reject(new Error(a.localize(5,null,t.toString(),e.message)))})}function _(e,t){var i=t.getColor(d.editorForeground)||t.getDefault(d.editorForeground),n=t.getColor(d.editorBackground)||t.getDefault(d.editorBackground);return e.settings.foreground=r.Color.Format.CSS.formatHexA(i),e.settings.background=r.Color.Format.CSS.formatHexA(n),e}t.ColorThemeData=y;var S={light:[{scope:"token.info-token",settings:{foreground:"#316bcd"}},{scope:"token.warn-token",settings:{foreground:"#cd9731"}},{scope:"token.error-token",settings:{foreground:"#cd3131"}},{scope:"token.debug-token",settings:{foreground:"#800080"}}],dark:[{scope:"token.info-token",settings:{foreground:"#6796e6"}},{scope:"token.warn-token",settings:{foreground:"#cd9731"}},{scope:"token.error-token",settings:{foreground:"#f44747"}},{scope:"token.debug-token",settings:{foreground:"#b267e6"}}],hc:[{scope:"token.info-token",settings:{foreground:"#6796e6"}},{scope:"token.warn-token",settings:{foreground:"#008000"}},{scope:"token.error-token",settings:{foreground:"#FF0000"}},{scope:"token.debug-token",settings:{foreground:"#b267e6"}}]}}),define(i[1169],n([0,1,634,23,21,108,120,437,57,5]),function(e,t,i,n,r,o,s,a,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"themes",jsonSchema:{description:i.localize(0,null),type:"array",items:{type:"object",defaultSnippets:[{body:{label:"${1:label}",id:"${2:id}",uiTheme:s.VS_DARK_THEME,path:"./themes/${3:id}.tmTheme."}}],properties:{id:{description:i.localize(1,null),type:"string"},label:{description:i.localize(2,null),type:"string"},uiTheme:{description:i.localize(3,null),enum:[s.VS_LIGHT_THEME,s.VS_DARK_THEME,s.VS_HC_THEME]},path:{description:i.localize(4,null),type:"string"}},required:["path","uiTheme"]}}}),d=function(){function e(e,t){this.extensionService=e,this.extensionsColorThemes=[t],this.onDidChangeEmitter=new l.Emitter,this.initialize()}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this.onDidChangeEmitter.event},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){var e=this;u.setHandler(function(t,i){for(var n={},r=[],o=0,s=e.extensionsColorThemes;o=0;e--){var t=document.body.classList.item(e);if(t===a.VS_LIGHT_THEME||t===a.VS_DARK_THEME||t===a.VS_HC_THEME)return t}return a.VS_DARK_THEME},e=p([f(0,s.IExtensionService),f(1,c.IStorageService),f(2,h.IConfigurationService),f(3,l.ITelemetryService),f(4,E.IWindowService),f(5,v.IInstantiationService),f(6,x.IEnvironmentService)],e)}();function K(e,t){return U(e.styleSheetContent,V),t(e)}function U(e,t){var i=document.head.getElementsByClassName(t);if(0===i.length){var n=document.createElement("style");n.type="text/css",n.className=t,n.innerHTML=e,document.head.appendChild(n)}else i[0].innerHTML=e}t.WorkbenchThemeService=H,k.registerColorThemeSchemas(),_.registerFileIconThemeSchemas();var j=function(){function e(e){this.configurationService=e}return e.prototype.writeConfiguration=function(e,t,i){var r=this.configurationService.inspect(e);if("auto"===i&&(i=n.isUndefined(r.workspaceFolder)?n.isUndefined(r.workspace)?1:2:3),1===i){if(t===r.user)return Promise.resolve(void 0);if(t===r.default){if(n.isUndefined(r.user))return Promise.resolve(void 0);t=void 0}}else if((2===i||3===i)&&t===r.value)return Promise.resolve(void 0);return this.configurationService.updateValue(e,t,i)},e=p([f(0,h.IConfigurationService)],e)}(),G=u.Registry.as(g.Extensions.Configuration),q={type:"string",description:i.localize(1,null),default:P,enum:[],enumDescriptions:[],errorMessage:i.localize(2,null)},Y={type:["string","null"],default:B,description:i.localize(3,null),enum:[null],enumDescriptions:[i.localize(4,null)],errorMessage:i.localize(5,null)},$={type:"object",description:i.localize(6,null),allOf:[{$ref:L.workbenchColorsSchemaId}],default:{},defaultSnippets:[{body:{}}]},Q={id:"workbench",order:7.1,type:"object",properties:(R={},R[a.COLOR_THEME_SETTING]=q,R[a.ICON_THEME_SETTING]=Y,R[a.CUSTOM_WORKBENCH_COLORS_SETTING]=$,R)};function X(e){return{description:e,default:"#FF0000",anyOf:[{type:"string",format:"color-hex"},{$ref:k.textmateColorSettingsSchemaId}]}}G.registerConfiguration(Q);var Z={properties:{comments:X(i.localize(7,null)),strings:X(i.localize(8,null)),keywords:X(i.localize(9,null)),numbers:X(i.localize(10,null)),types:X(i.localize(11,null)),functions:X(i.localize(12,null)),variables:X(i.localize(13,null)),textMateRules:{description:i.localize(14,null),$ref:k.textmateColorsSchemaId}}},J={description:i.localize(15,null),default:{},allOf:[Z]},ee={id:"editor",order:7.2,type:"object",properties:(O={},O[a.CUSTOM_EDITOR_COLORS_SETTING]=J,O)};G.registerConfiguration(ee),M.registerSingleton(a.IWorkbenchThemeService,H)}),define(i[80],n([0,1,10,6,17,235,18,5,41,33,2,39]),function(e,t,i,n,r,o,s,c,l,u,d,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IUntitledEditorService=n.createDecorator("untitledEditorService");var g=function(e){function t(t,i){var n=e.call(this)||this;return n.instantiationService=t,n.configurationService=i,n.mapResourceToInput=new l.ResourceMap,n.mapResourceToAssociatedFilePath=new l.ResourceMap,n._onDidChangeContent=n._register(new c.Emitter),n._onDidChangeDirty=n._register(new c.Emitter),n._onDidChangeEncoding=n._register(new c.Emitter),n._onDidDisposeModel=n._register(new c.Emitter),n}return a(t,e),Object.defineProperty(t.prototype,"onDidChangeContent",{get:function(){return this._onDidChangeContent.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidChangeDirty",{get:function(){return this._onDidChangeDirty.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidChangeEncoding",{get:function(){return this._onDidChangeEncoding.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidDisposeModel",{get:function(){return this._onDidDisposeModel.event},enumerable:!0,configurable:!0}),t.prototype.get=function(e){return this.mapResourceToInput.get(e)},t.prototype.getAll=function(e){var t=this;return e?r.coalesce(e.map(function(e){return t.get(e)})):this.mapResourceToInput.values()},t.prototype.exists=function(e){return this.mapResourceToInput.has(e)},t.prototype.revertAll=function(e,t){var i=[];return this.getAll(e).forEach(function(e){e&&(e.revert(),e.dispose(),i.push(e.getResource()))}),i},t.prototype.isDirty=function(e){var t=this.get(e);return!!t&&t.isDirty()},t.prototype.getDirty=function(e){var t=this;return(e?r.coalesce(e.map(function(e){return t.get(e)})):this.mapResourceToInput.values()).filter(function(e){return e.isDirty()}).map(function(e){return e.getResource()})},t.prototype.loadOrCreate=function(e){return void 0===e&&(e=Object.create(null)),this.createOrGet(e.resource,e.modeId,e.initialValue,e.encoding,e.useResourcePath).resolve()},t.prototype.createOrGet=function(e,t,i,n,r){return void 0===r&&(r=!1),e&&(e.scheme===u.Schemas.file&&(r=!0,e=e.with({scheme:u.Schemas.untitled})),r&&this.mapResourceToAssociatedFilePath.set(e,!0)),e&&this.mapResourceToInput.has(e)?this.mapResourceToInput.get(e):this.doCreate(e,r,t,i,n)},t.prototype.doCreate=function(e,t,n,r,s){var a=this;if(!e){var l=this.mapResourceToInput.size+1;do{e=i.URI.from({scheme:u.Schemas.untitled,path:"Untitled-"+l}),l++}while(this.mapResourceToInput.has(e))}if(!n&&!t){var d=this.configurationService.getValue();d.files&&d.files.defaultLanguage&&(n=d.files.defaultLanguage)}var h=this.instantiationService.createInstance(o.UntitledEditorInput,e,t,n,r,s),p=h.onDidModelChangeContent(function(){a._onDidChangeContent.fire(e)}),f=h.onDidChangeDirty(function(){a._onDidChangeDirty.fire(e)}),g=h.onDidModelChangeEncoding(function(){a._onDidChangeEncoding.fire(e)}),v=h.onDispose(function(){a._onDidDisposeModel.fire(e)});return c.Event.once(h.onDispose)(function(){a.mapResourceToInput.delete(h.getResource()),a.mapResourceToAssociatedFilePath.delete(h.getResource()),p.dispose(),f.dispose(),g.dispose(),v.dispose()}),this.mapResourceToInput.set(e,h),h},t.prototype.hasAssociatedFilePath=function(e){return this.mapResourceToAssociatedFilePath.has(e)},t.prototype.suggestFileName=function(e){var t=this.get(e);return t?t.suggestFileName():void 0},t.prototype.getEncoding=function(e){var t=this.get(e);return t?t.getEncoding():void 0},t=p([f(0,n.IInstantiationService),f(1,s.IConfigurationService)],t)}(d.Disposable);t.UntitledEditorService=g,h.registerSingleton(t.IUntitledEditorService,g,!0)}),define(i[1172],n([0,1,17,11,2,41,33,230,10,42,45,64,37,24,57,415,80,128,109,6]),function(e,t,i,n,r,o,s,c,u,d,h,g,v,m,y,b,_,S,C,w){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var E=function(e){function t(t,i,n,r,o,s,a,c){var l=e.call(this)||this;return l.instantiationService=t,l.modelService=i,l.untitledEditorService=n,l.editorService=r,l.telemetryService=s,l.logService=a,l.extensionService=c,l.fileSearchProviders=new Map,l.textSearchProviders=new Map,l.diskSearch=l.instantiationService.createInstance(I),l}return a(t,e),t.prototype.registerSearchResultProvider=function(e,t,i){var n;if(0===t)n=this.fileSearchProviders;else{if(1!==t)throw new Error("Unknown SearchProviderType");n=this.textSearchProviders}return n.set(e,i),r.toDisposable(function(){n.delete(e)})},t.prototype.textSearch=function(e,t,n){var r=this,o=this.getLocalResults(e);n&&i.coalesce(o.values()).forEach(n);return this.doSearch(e,t,function(e){e.resource?!o.has(e.resource)&&n&&n(e):n&&n(e),e.message&&r.logService.debug("SearchService#search",e.message)})},t.prototype.fileSearch=function(e,t){return this.doSearch(e,t)},t.prototype.doSearch=function(e,t,r){var o=this;this.logService.trace("SearchService#search",JSON.stringify(e));var s=this.getSchemesInQuery(e),a=[Promise.resolve(null)];s.forEach(function(e){return a.push(o.extensionService.activateByEvent("onSearch:"+e))}),a.push(this.extensionService.activateByEvent("onSearch:file"));var c=Promise.all(a).then(function(){return o.extensionService.whenInstalledExtensionsRegistered()}).then(function(){if(t&&t.isCancellationRequested)return Promise.reject(n.canceled());return o.searchWithProviders(e,function(e){t&&t.isCancellationRequested||r&&r(e)},t)}).then(function(e){return(e=i.coalesce(e)).length?{limitHit:e[0]&&e[0].limitHit,stats:e[0].stats,results:i.flatten(e.map(function(e){return e.results}))}:{limitHit:!1,results:[]}});return new Promise(function(e,i){t&&t.onCancellationRequested(function(){i(n.canceled())}),c.then(e,i)})},t.prototype.getSchemesInQuery=function(e){var t=new Set;return e.folderQueries&&e.folderQueries.forEach(function(e){return t.add(e.folder.scheme)}),e.extraFileResources&&e.extraFileResources.forEach(function(e){return t.add(e.scheme)}),t},t.prototype.searchWithProviders=function(e,t,i){var n=this,r=c.StopWatch.create(!1),a=[],u=[],d=this.groupFolderQueriesByScheme(e);o.keys(d).forEach(function(r){var o=d.get(r),s=1===e.type?n.fileSearchProviders.get(r):n.textSearchProviders.get(r);if(s||"file"!==r)if(s){var c=l({},e,{folderQueries:o});u.push(1===e.type?s.fileSearch(c,i):s.textSearch(c,t,i))}else console.warn("No search provider registered for scheme: "+r);else a.push.apply(a,o)});var h=e.extraFileResources&&e.extraFileResources.filter(function(e){return e.scheme===s.Schemas.file});if(a.length||h){var p=l({},e,{folderQueries:a},{extraFileResources:h});u.push(1===p.type?this.diskSearch.fileSearch(p,i):this.diskSearch.textSearch(p,t,i))}return Promise.all(u).then(function(t){var i=r.elapsed();return n.logService.trace("SearchService#search: "+i+"ms"),t.forEach(function(t){n.sendTelemetry(e,i,t)}),t},function(t){var i=r.elapsed();n.logService.trace("SearchService#search: "+i+"ms");var o=C.deserializeSearchError(t.message);throw n.sendTelemetry(e,i,null,o),o})},t.prototype.groupFolderQueriesByScheme=function(e){var t=new Map;return e.folderQueries.forEach(function(e){var i=t.get(e.folder.scheme)||[];i.push(e),t.set(e.folder.scheme,i)}),t},t.prototype.sendTelemetry=function(e,t,i,n){var r=e.folderQueries.every(function(e){return"file"===e.folder.scheme}),o=e.folderQueries.every(function(e){return"file"!==e.folder.scheme}),s=r?"file":o?"other":"mixed";if(1===e.type&&i&&i.stats){var a=i.stats;if(a.fromCache){var c=a.detailStats;this.telemetryService.publicLog("cachedSearchComplete",{reason:e._reason,resultCount:a.resultCount,workspaceFolderCount:e.folderQueries.length,type:a.type,endToEndTime:t,sortingTime:a.sortingTime,cacheWasResolved:c.cacheWasResolved,cacheLookupTime:c.cacheLookupTime,cacheFilterTime:c.cacheFilterTime,cacheEntryCount:c.cacheEntryCount,scheme:s})}else{var l=a.detailStats;this.telemetryService.publicLog("searchComplete",{reason:e._reason,resultCount:a.resultCount,workspaceFolderCount:e.folderQueries.length,type:a.type,endToEndTime:t,sortingTime:a.sortingTime,fileWalkTime:l.fileWalkTime,directoriesWalked:l.directoriesWalked,filesWalked:l.filesWalked,cmdTime:l.cmdTime,cmdResultCount:l.cmdResultCount,scheme:s})}}else if(2===e.type){var u=void 0;n&&(u=n.code===C.SearchErrorCode.regexParseError?"regex":n.code===C.SearchErrorCode.unknownEncoding?"encoding":n.code===C.SearchErrorCode.globParseError?"glob":n.code===C.SearchErrorCode.invalidLiteral?"literal":n.code===C.SearchErrorCode.other?"other":"unknown"),this.telemetryService.publicLog("textSearchComplete",{reason:e._reason,workspaceFolderCount:e.folderQueries.length,endToEndTime:t,scheme:s,error:u,usePCRE2:!!e.usePCRE2})}},t.prototype.getLocalResults=function(e){var t=this,i=new o.ResourceMap;2===e.type&&this.modelService.getModels().forEach(function(n){var r=n.uri;if(r&&t.editorService.isOpen({resource:r})){if(r.scheme===s.Schemas.untitled){if(!t.untitledEditorService.exists(r))return}else if(r.scheme!==s.Schemas.file)return;if(t.matches(r,e)){var o=n.findMatches(e.contentPattern.pattern,!1,e.contentPattern.isRegExp,e.contentPattern.isCaseSensitive,e.contentPattern.isWordMatch?e.contentPattern.wordSeparators:null,!1,e.maxResults);if(o.length){var a=new C.FileMatch(r);i.set(r,a);var c=b.editorMatchesToTextSearchResults(o,n,e.previewOptions);a.results=b.addContextToEditorMatches(c,n,e)}else i.set(r,null)}}});return i},t.prototype.matches=function(e,t){return(!t.includePattern||e.scheme===s.Schemas.file)&&C.pathIncludedInQuery(t,e.fsPath)},t.prototype.clearCache=function(e){var t=[this.diskSearch].concat(o.values(this.fileSearchProviders)).map(function(t){return t&&t.clearCache(e)});return Promise.all(t).then(function(){})},t=p([f(0,w.IInstantiationService),f(1,d.IModelService),f(2,_.IUntitledEditorService),f(3,m.IEditorService),f(4,h.IEnvironmentService),f(5,v.ITelemetryService),f(6,g.ILogService),f(7,y.IExtensionService)],t)}(r.Disposable);t.CodeSandboxSearchService=E;var I=function(){function e(e){this.codesandboxService=e,this.cache=new Map}return e.prototype.fileSearch=function(e,t){var i=this;e.folderQueries;return new Promise(function(t){var n=i.codesandboxService.getFilesByPath(),r=e.cacheKey;if(i.cache.get(r))t(i.cache.get(r));else{var o={results:Object.keys(n).filter(function(e){return"directory"!==n[e].type}).map(function(e){return{resource:u.URI.file(e)}}),limitHit:!1};r&&i.cache.set(r,o),t(o)}})},e.createFileMatch=function(e){var t,i=new C.FileMatch(u.URI.file(e.path));return e.results&&(t=i.results).push.apply(t,e.results),i},e.collectResultsFromEvent=function(e,t,i){var r,o=this,s=[];return new Promise(function(a,c){i&&i.onCancellationRequested(function(){r&&r.dispose(),c(n.canceled())}),r=e(function(e){if(C.isSerializedSearchComplete(e))C.isSerializedSearchSuccess(e)?a({limitHit:e.limitHit,results:s,stats:e.stats}):c(e.error),r.dispose();else if(Array.isArray(e)){var i=e.map(function(e){return o.createFileMatch(e)});s=s.concat(i),t&&i.forEach(t)}else if(e.path){var n=o.createFileMatch(e);s.push(n),t&&t(n)}else t&&t(e)})})},e.prototype.textSearch=function(e,t,i){return new Promise(function(e){return e({results:[]})})},e.prototype.clearCache=function(e){var t=this;return new Promise(function(i){t.cache.delete(e),i()})},e=p([f(0,S.ICodeSandboxService)],e)}();t.DiskSearch=I}),define(i[439],n([0,1,116,2,33,10,46,42,65,26,52,50,80]),function(e,t,i,n,r,o,s,a,c,l,u,d,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(e,t){void 0===e&&(e=18e4),void 0===t&&(t=83886080),this._maxAge=e,this._maxLength=t,this._data=new Array,this._length=0}return e.prototype.dispose=function(){this._data=n.dispose(this._data)},e.prototype.add=function(e){var t,i,n=this,r=e.object.textEditorModel.getValueLength(),o=function(){var o=n._data.indexOf(i);o>=0&&(n._length-=r,e.dispose(),clearTimeout(t),n._data.splice(o,1))};t=setTimeout(o,this._maxAge),i={length:r,dispose:o},this._data.push(i),this._length+=r,this._cleanup()},e.prototype._cleanup=function(){for(;this._length>this._maxLength;)this._data[0].dispose()},e}();t.BoundModelReferenceCollection=g;var v=function(){function e(e,t,i,n,r,o,s,a){var c=this;this._modelReferenceCollection=new g,this._modelService=i,this._textModelResolverService=s,this._textFileService=r,this._fileService=o,this._untitledEditorService=a,this._proxy=t.getProxy(u.ExtHostContext.ExtHostDocuments),this._modelIsSynced={},this._toDispose=[],this._toDispose.push(e.onDocumentAdd(function(e){return e.forEach(c._onModelAdded,c)})),this._toDispose.push(e.onDocumentRemove(function(e){return e.forEach(c._onModelRemoved,c)})),this._toDispose.push(this._modelReferenceCollection),this._toDispose.push(i.onModelModeChanged(this._onModelModeChanged,this)),this._toDispose.push(r.models.onModelSaved(function(e){c._shouldHandleFileEvent(e)&&c._proxy.$acceptModelSaved(e.resource)})),this._toDispose.push(r.models.onModelReverted(function(e){c._shouldHandleFileEvent(e)&&c._proxy.$acceptDirtyStateChanged(e.resource,!1)})),this._toDispose.push(r.models.onModelDirty(function(e){c._shouldHandleFileEvent(e)&&c._proxy.$acceptDirtyStateChanged(e.resource,!0)})),this._modelToDisposeMap=Object.create(null)}return e.prototype.dispose=function(){var e=this;Object.keys(this._modelToDisposeMap).forEach(function(t){e._modelToDisposeMap[t].dispose()}),this._modelToDisposeMap=Object.create(null),this._toDispose=n.dispose(this._toDispose)},e.prototype._shouldHandleFileEvent=function(e){var t=this._modelService.getModel(e.resource);return!!t&&a.shouldSynchronizeModel(t)},e.prototype._onModelAdded=function(e){var t=this;if(a.shouldSynchronizeModel(e)){var i=e.uri;this._modelIsSynced[i.toString()]=!0,this._modelToDisposeMap[i.toString()]=e.onDidChangeContent(function(e){t._proxy.$acceptModelChanged(i,e,t._textFileService.isDirty(i))})}},e.prototype._onModelModeChanged=function(e){var t=e.model,i=e.oldModeId,n=t.uri;this._modelIsSynced[n.toString()]&&this._proxy.$acceptModelModeChanged(t.uri,i,t.getLanguageIdentifier().language)},e.prototype._onModelRemoved=function(e){var t=e.toString();this._modelIsSynced[t]&&(delete this._modelIsSynced[t],this._modelToDisposeMap[t].dispose(),delete this._modelToDisposeMap[t])},e.prototype.$trySaveDocument=function(e){return this._textFileService.save(o.URI.revive(e))},e.prototype.$tryOpenDocument=function(e){var t,n=this,s=o.URI.revive(e);if(!s.scheme||!s.fsPath&&!s.authority)return Promise.reject(new Error("Invalid uri. Scheme and authority or path must be set."));switch(s.scheme){case r.Schemas.untitled:t=this._handleUntitledScheme(s);break;case r.Schemas.file:default:t=this._handleAsResourceInput(s)}return t.then(function(e){return e?n._modelIsSynced[s.toString()]?void 0:Promise.reject(new Error("cannot open "+s.toString()+". Detail: Files above 50MB cannot be synchronized with extensions.")):Promise.reject(new Error("cannot open "+s.toString()))},function(e){return Promise.reject(new Error("cannot open "+s.toString()+". Detail: "+i.toErrorMessage(e)))})},e.prototype.$tryCreateDocument=function(e){return this._doCreateUntitled(void 0,e?e.language:void 0,e?e.content:void 0)},e.prototype._handleAsResourceInput=function(e){var t=this;return this._textModelResolverService.createModelReference(e).then(function(e){return t._modelReferenceCollection.add(e),!!e.object})},e.prototype._handleUntitledScheme=function(e){var t=this,i=e.with({scheme:r.Schemas.file});return this._fileService.resolveFile(i).then(function(e){return Promise.reject(new Error("file already exists on disk"))},function(i){return t._doCreateUntitled(e).then(function(e){return!!e})})},e.prototype._doCreateUntitled=function(e,t,i){var n=this;return this._untitledEditorService.loadOrCreate({resource:e,modeId:t,initialValue:i,useResourcePath:Boolean(e&&e.path)}).then(function(e){var t=e.getResource();if(!n._modelIsSynced[t.toString()])throw new Error("expected URI "+t.toString()+" to have come to LIFE");return n._proxy.$acceptDirtyStateChanged(t,!0),t})},e=p([f(2,a.IModelService),f(3,s.IModeService),f(4,d.ITextFileService),f(5,l.IFileService),f(6,c.ITextModelService),f(7,h.IUntitledEditorService)],e)}();t.MainThreadDocuments=v}),define(i[1174],n([0,1,5,2,41,75,133,59,46,42,65,26,55,439,387,388,52,275,179,24,56,152,50,80]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I){"use strict";var x;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ofSets=function(e,t){var i=[],n=[];return e.forEach(function(e){t.has(e)||i.push(e)}),t.forEach(function(t){e.has(t)||n.push(t)}),{removed:i,added:n}},e.ofMaps=function(e,t){var i=[],n=[];return e.forEach(function(e,n){t.has(n)||i.push(e)}),t.forEach(function(t,i){e.has(i)||n.push(t)}),{removed:i,added:n}}}(x||(x={}));var D=function(){return function(e){this.editor=e,this.id=e.getId()+","+e.getModel().id}}(),k=function(){function e(e,t,i,n,r,o){this.removedDocuments=e,this.addedDocuments=t,this.removedEditors=i,this.addedEditors=n,this.oldActiveEditor=r,this.newActiveEditor=o,this.isEmpty=0===this.removedDocuments.length&&0===this.addedDocuments.length&&0===this.removedEditors.length&&0===this.addedEditors.length&&r===o}return e.prototype.toString=function(){var e="DocumentAndEditorStateDelta\n";return e+="\tRemoved Documents: ["+this.removedDocuments.map(function(e){return e.uri.toString(!0)}).join(", ")+"]\n",e+="\tAdded Documents: ["+this.addedDocuments.map(function(e){return e.uri.toString(!0)}).join(", ")+"]\n",e+="\tRemoved Editors: ["+this.removedEditors.map(function(e){return e.id}).join(", ")+"]\n",e+="\tAdded Editors: ["+this.addedEditors.map(function(e){return e.id}).join(", ")+"]\n",e+="\tNew Active Editor: "+this.newActiveEditor+"\n"},e}(),L=function(){function e(e,t,i){this.documents=e,this.textEditors=t,this.activeEditor=i}return e.compute=function(e,t){if(!e)return new k([],r.values(t.documents),[],r.values(t.textEditors),void 0,t.activeEditor);var i=x.ofSets(e.documents,t.documents),n=x.ofMaps(e.textEditors,t.textEditors),o=e.activeEditor!==t.activeEditor?e.activeEditor:void 0,s=e.activeEditor!==t.activeEditor?t.activeEditor:void 0;return new k(i.removed,i.added,n.removed,n.added,o,s)},e}(),M=function(){function e(e,t,i,n,r){var o=this;this._onDidChangeState=e,this._modelService=t,this._codeEditorService=i,this._editorService=n,this._panelService=r,this._toDispose=[],this._toDisposeOnEditorRemove=new Map,this._activeEditorOrder=0,this._modelService.onModelAdded(this._updateStateOnModelAdd,this,this._toDispose),this._modelService.onModelRemoved(function(e){return o._updateState()},this,this._toDispose),this._editorService.onDidActiveEditorChange(function(e){return o._updateState()},this,this._toDispose),this._codeEditorService.onCodeEditorAdd(this._onDidAddEditor,this,this._toDispose),this._codeEditorService.onCodeEditorRemove(this._onDidRemoveEditor,this,this._toDispose),this._codeEditorService.listCodeEditors().forEach(this._onDidAddEditor,this),this._panelService.onDidPanelOpen(function(e){return o._activeEditorOrder=1},void 0,this._toDispose),this._panelService.onDidPanelClose(function(e){return o._activeEditorOrder=0},void 0,this._toDispose),this._editorService.onDidVisibleEditorsChange(function(e){return o._activeEditorOrder=0},void 0,this._toDispose),this._updateState()}return e.prototype.dispose=function(){this._toDispose=n.dispose(this._toDispose)},e.prototype._onDidAddEditor=function(e){var t=this;this._toDisposeOnEditorRemove.set(e.getId(),n.combinedDisposable([e.onDidChangeModel(function(){return t._updateState()}),e.onDidFocusEditorText(function(){return t._updateState()}),e.onDidFocusEditorWidget(function(){return t._updateState(e)})])),this._updateState()},e.prototype._onDidRemoveEditor=function(e){var t=this._toDisposeOnEditorRemove.get(e.getId());t&&(this._toDisposeOnEditorRemove.delete(e.getId()),t.dispose(),this._updateState())},e.prototype._updateStateOnModelAdd=function(e){l.shouldSynchronizeModel(e)&&(this._currentState?(this._currentState=new L(this._currentState.documents.add(e),this._currentState.textEditors,this._currentState.activeEditor),this._onDidChangeState(new k([],[e],[],[],void 0,void 0))):this._updateState())},e.prototype._updateState=function(e){for(var t=new Set,i=0,n=this._modelService.getModels();i0&&(p=!1,h.removedDocuments=t),n.length>0&&(p=!1,h.removedEditors=n),e.addedDocuments.length>0&&(p=!1,h.addedDocuments=e.addedDocuments.map(function(e){return i._toModelAddData(e)})),e.addedEditors.length>0&&(p=!1,h.addedEditors=r.map(function(e){return i._toTextEditorAddData(e)})),p||(this._proxy.$acceptDocumentsAndEditorsDelta(h),this._onDocumentRemove.fire(t),this._onDocumentAdd.fire(e.addedDocuments),this._onTextEditorRemove.fire(n),this._onTextEditorAdd.fire(r))},e.prototype._toModelAddData=function(e){return{uri:e.uri,versionId:e.getVersionId(),lines:e.getLinesContent(),EOL:e.getEOL(),modeId:e.getLanguageIdentifier().language,isDirty:this._textFileService.isDirty(e.uri)}},e.prototype._toTextEditorAddData=function(e){var t=e.getProperties();return{id:e.getId(),documentUri:e.getModel().uri,options:t.options,selections:t.selections,visibleRanges:t.visibleRanges,editorPosition:this._findEditorPosition(e)}},e.prototype._findEditorPosition=function(e){for(var t=0,i=this._editorService.visibleControls;t0){if(!i){var r=e.dataTransfer.getData(t.CodeDataTransfers.EDITORS);if(r)try{JSON.parse(r).forEach(function(e){n.push({resource:c.URI.parse(e.resource),backupResource:e.backupResource?c.URI.parse(e.backupResource):void 0,viewState:e.viewState,isExternal:!1})})}catch(e){}else try{var o=e.dataTransfer.getData(v.DataTransfers.RESOURCES);if(o){var s=JSON.parse(o);n.push.apply(n,s.map(function(e){return{resource:c.URI.parse(e),isExternal:!1}}))}}catch(e){}}if(e.dataTransfer&&e.dataTransfer.files)for(var a=function(t){var i=e.dataTransfer.files[t];if(i&&i.path&&!n.some(function(e){return e.resource.fsPath===i.path}))try{n.push({resource:c.URI.file(i.path),isExternal:!0})}catch(e){}},l=0;l0)return Promise.all(i.map(function(e){return t.handleDirtyEditorDrop(e)})).then(function(){return!1});if(this.options.allowWorkspaceOpen){var n=e.filter(function(e){return e.isExternal&&e.resource.scheme===d.Schemas.file}).map(function(e){return e.resource});if(n.length>0)return this.handleWorkspaceFileDrop(n)}return Promise.resolve(!1)},e.prototype.handleDirtyEditorDrop=function(e){var t=this;return e.resource.scheme===d.Schemas.untitled&&(e.resource=this.untitledEditorService.createOrGet().getResource()),this.textFileService.isDirty(e.resource)||this.editorService.isOpen({resource:e.resource})?Promise.resolve(!1):this.backupFileService.resolveBackupContent(e.backupResource).then(function(i){return t.backupFileService.backupResource(e.resource,i.create(t.getDefaultEOL()).createSnapshot(!0))}).then(function(){return!1},function(){return!1})},e.prototype.getDefaultEOL=function(){return"\r\n"===this.configurationService.getValue("files.eol")?2:1},e.prototype.handleWorkspaceFileDrop=function(e){var t=this,n={workspaces:[],folders:[]};return Promise.all(e.map(function(e){if(!i.hasWorkspaceFileExtension(e.fsPath))return t.fileService.resolveFile(e).then(function(e){e.isDirectory&&n.folders.push({uri:e.resource,typeHint:"folder"})},function(e){});n.workspaces.push({uri:e,typeHint:"file"})})).then(function(e){var i,r=n.workspaces,o=n.folders;return(0!==r.length||0!==o.length)&&(t.windowService.focusWindow(),r.length>0||1===o.length?i=Promise.resolve(r.concat(o)):o.length>1&&(i=t.workspacesService.createUntitledWorkspace(o).then(function(e){return[{uri:e.configPath,typeHint:"file"}]})),i&&i.then(function(e){t.windowService.openWindow(e,{forceReuseWindow:!0})}),!0)})},e=p([f(1,o.IFileService),f(2,s.IWindowsService),f(3,s.IWindowService),f(4,i.IWorkspacesService),f(5,l.ITextFileService),f(6,u.IBackupFileService),f(7,h.IUntitledEditorService),f(8,S.IEditorService),f(9,g.IConfigurationService)],e)}();t.ResourcesDropHandler=D,t.fillResourceDataTransfers=function(e,i,o){if(0!==i.length&&o.dataTransfer){var s=i.map(function(e){return c.URI.isUri(e)?{resource:e,isDirectory:!1}:e}),a=s[0],h=b.isWindows?"\r\n":"\n";o.dataTransfer.setData(v.DataTransfers.TEXT,s.map(function(e){return e.resource.scheme===d.Schemas.file?n.normalize(m.normalizeDriveLetter(e.resource.fsPath)):e.resource.toString()}).join(h)),a.resource.scheme===d.Schemas.file&&o.dataTransfer.setData(v.DataTransfers.DOWNLOAD_URL,[y.MIME_BINARY,r.basename(a.resource),a.resource.toString()].join(":"));var p=s.filter(function(e){return!e.isDirectory});p.length&&o.dataTransfer.setData(v.DataTransfers.RESOURCES,JSON.stringify(p.map(function(e){return e.resource.toString()})));var f=e.get(l.ITextFileService),g=e.get(u.IBackupFileService),C=e.get(S.IEditorService),w=[];p.forEach(function(e){for(var t=null,i=0,n=C.visibleTextEditorWidgets;i-1&&(this._widgets.splice(t,1),this._labels.splice(t,1)),C.dispose(e)},t.prototype.clear=function(){this._widgets=C.dispose(this._widgets),this._labels=[]},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clear()},t=p([f(1,w.IInstantiationService),f(2,r.IExtensionService),f(3,u.IConfigurationService),f(4,d.IModelService),f(5,g.IDecorationsService),f(6,y.IThemeService)],t)}(C.Disposable);t.ResourceLabels=E;var I,x=function(e){function i(i,n,r,o,s,a,c,l,u){var d=e.call(this,t.DEFAULT_LABELS_CONTAINER,r,o,s,a,c,l)||this;return d._label=d._register(d.create(i,n)),d}return a(i,e),Object.defineProperty(i.prototype,"element",{get:function(){return this._label},enumerable:!0,configurable:!0}),i=p([f(2,w.IInstantiationService),f(3,r.IExtensionService),f(4,u.IConfigurationService),f(5,d.IModelService),f(6,g.IDecorationsService),f(7,y.IThemeService),f(8,_.ILabelService)],i)}(E);t.ResourceLabel=x,function(e){e[e.Basic=1]="Basic",e[e.Full=2]="Full"}(I||(I={}));var D=function(e){function t(t,i,n,r,o,s,a,c){var l=e.call(this,t,i)||this;return l.modeService=n,l.modelService=r,l.decorationsService=o,l.labelService=s,l.untitledEditorService=a,l.contextService=c,l._onDidRender=l._register(new b.Emitter),l.isHidden=!1,l}return a(t,e),Object.defineProperty(t.prototype,"onDidRender",{get:function(){return this._onDidRender.event},enumerable:!0,configurable:!0}),t.prototype.notifyVisibilityChanged=function(e){e===this.isHidden&&(this.isHidden=!e,e&&this.needsRedraw&&(this.render(this.needsRedraw!==I.Basic),this.needsRedraw=void 0))},t.prototype.notifyModelModeChanged=function(e){this.label&&this.label.resource&&e.model.uri.toString()===this.label.resource.toString()&&this.lastKnownConfiguredLangId!==e.model.getLanguageIdentifier().language&&this.render(!0)},t.prototype.notifyFileDecorationsChanges=function(e){this.options&&this.label&&this.label.resource&&this.options.fileDecorations&&e.affectsResource(this.label.resource)&&this.render(!1)},t.prototype.notifyExtensionsRegistered=function(){this.render(!0)},t.prototype.notifyThemeChange=function(){this.render(!1)},t.prototype.notifyFileAssociationsChange=function(){this.render(!0)},t.prototype.setResource=function(e,t){var i=this.hasResourceChanged(e,t);this.label=e,this.options=t,i&&(this.computedPathLabel=void 0),this.render(i)},t.prototype.hasResourceChanged=function(e,t){var i=e?e.resource:void 0,n=this.label?this.label.resource:void 0;return(t?t.fileKind:void 0)!==(this.options?this.options.fileKind:void 0)||(!(!i||this.computedPathLabel===this.labelService.getUriLabel(i))||(i&&n?i.toString()!==n.toString():!(!i&&!n)))},t.prototype.setEditor=function(e,t){this.setResource({resource:s.toResource(e,{supportSideBySide:!0})||void 0,name:e.getName()||void 0,description:e.getDescription()||void 0},t)},t.prototype.setFile=function(e,t){var n,r;if(!(t&&t.hideLabel)){if(t&&t.fileKind===m.FileKind.ROOT_FOLDER){var o=this.contextService.getWorkspaceFolder(e);o&&(n=o.name)}n||(n=i.basenameOrAuthority(e))}t&&t.hidePath||e.scheme===v.Schemas.untitled&&!this.untitledEditorService.hasAssociatedFilePath(e)||(r=this.labelService.getUriLabel(i.dirname(e),{relative:!0})),this.setResource({resource:e,name:n,description:r},t)},t.prototype.clear=function(){this.label=void 0,this.options=void 0,this.lastKnownConfiguredLangId=void 0,this.computedIconClasses=void 0,this.computedPathLabel=void 0,this.setLabel()},t.prototype.render=function(e){var t;if(this.isHidden)return this.needsRedraw||(this.needsRedraw=e?I.Full:I.Basic),void(this.needsRedraw===I.Basic&&e&&(this.needsRedraw=I.Full));if(this.label){var i=this.label.resource?S.getConfiguredLangId(this.modelService,this.modeService,this.label.resource):null;this.lastKnownConfiguredLangId!==i&&(e=!0,this.lastKnownConfiguredLangId=i||void 0)}if(e&&(this.computedIconClasses=void 0),this.label){var n={title:"",italic:this.options&&this.options.italic,matches:this.options&&this.options.matches,extraClasses:[]},r=this.label.resource,o=this.label.name;if(this.options&&"string"==typeof this.options.title?n.title=this.options.title:r&&r.scheme!==v.Schemas.data&&(this.computedPathLabel||(this.computedPathLabel=this.labelService.getUriLabel(r)),n.title=this.computedPathLabel),this.options&&!this.options.hideIcon&&(this.computedIconClasses||(this.computedIconClasses=S.getIconClasses(this.modelService,this.modeService,r,this.options&&this.options.fileKind)),n.extraClasses=this.computedIconClasses.slice(0)),this.options&&this.options.extraClasses&&(t=n.extraClasses).push.apply(t,this.options.extraClasses),this.options&&this.options.fileDecorations&&r){var s=this.decorationsService.getDecoration(r,this.options.fileKind!==m.FileKind.FILE,this.options.fileDecorations.data);s&&(s.tooltip&&(n.title=n.title+" • "+s.tooltip),this.options.fileDecorations.colors&&n.extraClasses.push(s.labelClassName),this.options.fileDecorations.badges&&n.extraClasses.push(s.badgeClassName))}this.setLabel(o,this.label.description,n),this._onDidRender.fire()}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.label=void 0,this.options=void 0,this.lastKnownConfiguredLangId=void 0,this.computedIconClasses=void 0,this.computedPathLabel=void 0},t=p([f(2,o.IModeService),f(3,d.IModelService),f(4,g.IDecorationsService),f(5,_.ILabelService),f(6,h.IUntitledEditorService),f(7,l.IWorkspaceContextService)],t)}(n.IconLabel)}),define(i[1177],n([0,1,7,184,11,5,84,119,2,35,21,10,229,18,26,6,78,22,32,150,238,455,120,840,418]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBreadcrumbsPicker=function(e,t,i){var n=i instanceof E.FileElement?A:N;return e.createInstance(n,t)};var D=function(){function e(e,t,i,n){this._instantiationService=t,this._themeService=i,this._configurationService=n,this._disposables=new Array,this._fakeEvent=new UIEvent("fakeEvent"),this._onDidPickElement=new o.Emitter,this.onDidPickElement=this._onDidPickElement.event,this._onDidFocusElement=new o.Emitter,this.onDidFocusElement=this._onDidFocusElement.event,this._domNode=document.createElement("div"),this._domNode.className="monaco-breadcrumbs-picker show-file-icons",e.appendChild(this._domNode)}return e.prototype.dispose=function(){l.dispose(this._disposables),this._onDidPickElement.dispose(),this._tree.dispose()},e.prototype.show=function(e,t,i,n,o){var s=this,a=this._themeService.getTheme().getColor(_.breadcrumbsPickerBackground);this._arrow=document.createElement("div"),this._arrow.className="arrow",this._arrow.style.borderColor="transparent transparent "+(a?a.toString():""),this._domNode.appendChild(this._arrow),this._treeContainer=document.createElement("div"),this._treeContainer.style.background=a?a.toString():"",this._treeContainer.style.paddingTop="2px",this._treeContainer.style.boxShadow="0px 5px 8px "+this._themeService.getTheme().getColor(_.widgetShadow),this._domNode.appendChild(this._treeContainer);var c=w.BreadcrumbsConfig.FilterOnType.bindTo(this._configurationService);this._disposables.push(c),this._layoutInfo={maxHeight:t,width:i,arrowSize:n,arrowOffset:o,inputHeight:0},this._tree=this._createTree(this._treeContainer),this._disposables.push(this._tree.onDidChangeSelection(function(e){if(e.browserEvent!==s._fakeEvent){var t=s._getTargetFromEvent(e.elements[0],e.browserEvent);t&&setTimeout(function(e){s._onDidPickElement.fire({target:t,payload:void 0})},0)}})),this._disposables.push(this._tree.onDidChangeFocus(function(e){var t=s._getTargetFromEvent(e.elements[0],e.browserEvent);t&&s._onDidFocusElement.fire({target:t,payload:void 0})})),this._disposables.push(this._tree.onDidChangeContentHeight(function(){s._layout()}));var l=w.BreadcrumbsConfig.FilterOnType.bindTo(this._configurationService);this._tree.updateOptions({filterOnType:l.getValue()}),this._disposables.push(this._tree.onDidUpdateOptions(function(e){s._configurationService.updateValue(l.name,e.filterOnType,5)})),this._domNode.focus(),this._setInput(e).then(function(){s._layout()}).catch(r.onUnexpectedError)},e.prototype._layout=function(){var e=2*this._layoutInfo.arrowSize,t=Math.min(this._layoutInfo.maxHeight-e,this._tree.contentHeight),i=t+e;this._domNode.style.height=i+"px",this._domNode.style.width=this._layoutInfo.width+"px",this._arrow.style.top="-"+2*this._layoutInfo.arrowSize+"px",this._arrow.style.borderWidth=this._layoutInfo.arrowSize+"px",this._arrow.style.marginLeft=this._layoutInfo.arrowOffset+"px",this._treeContainer.style.height=t+"px",this._treeContainer.style.width=this._layoutInfo.width+"px",this._tree.layout(t,this._layoutInfo.width)},e=p([f(1,y.IInstantiationService),f(2,I.IWorkbenchThemeService),f(3,v.IConfigurationService)],e)}();t.BreadcrumbsPicker=D;var k=function(){function e(){}return e.prototype.getHeight=function(e){return 22},e.prototype.getTemplateId=function(e){return"FileStat"},e}(),L=function(){function e(){}return e.prototype.getId=function(e){return h.URI.isUri(e)?e.toString():S.IWorkspace.isIWorkspace(e)?e.id:S.IWorkspaceFolder.isIWorkspaceFolder(e)?e.uri.toString():e.resource.toString()},e}(),M=function(){function e(e){this._fileService=e,this._parents=new WeakMap}return e.prototype.hasChildren=function(e){return h.URI.isUri(e)||S.IWorkspace.isIWorkspace(e)||S.IWorkspaceFolder.isIWorkspaceFolder(e)||e.isDirectory},e.prototype.getChildren=function(e){var t,i=this;return S.IWorkspace.isIWorkspace(e)?Promise.resolve(e.folders).then(function(t){for(var n=0,r=t;n=window.innerHeight&&(a=window.innerHeight-u-30);var d=l.left;if(d+c>=s&&(d=s-c),e.payload instanceof n.StandardMouseEvent){var h=c-16;(t=e.payload.posx-d)>h&&(d=Math.min(s-c,d+t-h),t=h)}else t=l.left+.3*l.width-d;return o.show(r,a,c,8,Math.max(0,t)),{x:d,y:u}},onHide:function(e){c&&(c.deltaDecorations(l,[]),a&&c.restoreViewState(a)),t._breadcrumbsPickerShowing=!1,t._updateCkBreadcrumbsActive(),e===t&&(t._widget.setFocused(void 0),t._widget.setSelection(void 0))}})}},e.prototype._updateCkBreadcrumbsActive=function(){var e=this._widget.isDOMFocused()||this._breadcrumbsPickerShowing;this._ckBreadcrumbsActive.set(e)},e.prototype._revealInEditor=function(t,i,n,r){if(void 0===r&&(r=!1),i instanceof F.FileElement)if(i.kind===D.FileKind.FILE)this._editorService.openEditor({resource:i.uri,options:{pinned:r}},n);else{var o=this._widget.getItems(),s=o.indexOf(t.item);this._widget.setFocused(o[s+1]),this._widget.setSelection(o[s+1],e.Payload_Pick)}else if(i instanceof _.OutlineElement){var a=_.OutlineModel.get(i);a&&this._codeEditorService.openCodeEditor({resource:a.textModel.uri,options:{selection:y.Range.collapseToStart(i.symbol.selectionRange),revealInCenterIfOutsideViewport:!0}},this._getActiveCodeEditor()||null,n===V.SIDE_GROUP)}},e.prototype._getEditorGroup=function(t){return t===e.Payload_RevealAside||t instanceof n.StandardMouseEvent&&t.altKey?V.SIDE_GROUP:t===e.Payload_Reveal||t instanceof n.StandardMouseEvent&&t.metaKey?V.ACTIVE_GROUP:void 0},e.HEIGHT=22,e.Payload_Reveal={},e.Payload_RevealAside={},e.Payload_Pick={},e.CK_BreadcrumbsPossible=new I.RawContextKey("breadcrumbsPossible",!1),e.CK_BreadcrumbsVisible=new I.RawContextKey("breadcrumbsVisible",!1),e.CK_BreadcrumbsActive=new I.RawContextKey("breadcrumbsActive",!1),e=p([f(3,I.IContextKeyService),f(4,x.IContextViewService),f(5,V.IEditorService),f(6,K.ICodeEditorService),f(7,P.IWorkspaceContextService),f(8,k.IInstantiationService),f(9,T.IThemeService),f(10,R.IQuickOpenService),f(11,E.IConfigurationService),f(12,D.IFileService),f(13,H.ITelemetryService),f(14,N.IBreadcrumbsService)],e)}();function Y(e,t){var i=e.get(z.IEditorGroupsService),n=e.get(N.IBreadcrumbsService).getWidget(i.activeGroup.id);if(n){var r=l.tail(n.getItems());n.setFocused(r),t&&n.setSelection(r,q.Payload_Pick)}}t.BreadcrumbsControl=q,C.MenuRegistry.appendMenuItem(0,{command:{id:"breadcrumbs.toggle",title:{value:S.localize(0,null),original:"View: Toggle Breadcrumbs"},category:S.localize(1,null)}}),C.MenuRegistry.appendMenuItem(26,{group:"5_editor",order:99,command:{id:"breadcrumbs.toggle",title:S.localize(2,null),toggled:I.ContextKeyExpr.equals("config.breadcrumbs.enabled",!0)}}),w.CommandsRegistry.registerCommand("breadcrumbs.toggle",function(e){var t=e.get(E.IConfigurationService),i=N.BreadcrumbsConfig.IsEnabled.bindTo(t).getValue();N.BreadcrumbsConfig.IsEnabled.bindTo(t).updateValue(!i)}),C.MenuRegistry.appendMenuItem(0,{command:{id:"breadcrumbs.focusAndSelect",title:{value:S.localize(3,null),original:"Focus Breadcrumbs"},precondition:q.CK_BreadcrumbsVisible}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.focusAndSelect",weight:200,primary:3156,when:q.CK_BreadcrumbsPossible,handler:function(e){return Y(e,!0)}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.focus",weight:200,primary:3152,when:q.CK_BreadcrumbsPossible,handler:function(e){return Y(e,!1)}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.toggleToOn",weight:200,primary:3156,when:I.ContextKeyExpr.not("config.breadcrumbs.enabled"),handler:function(e){return r(j,void 0,void 0,function(){var t,i,n;return o(this,function(r){switch(r.label){case 0:return t=e.get(k.IInstantiationService),i=e.get(E.IConfigurationService),(n=N.BreadcrumbsConfig.IsEnabled.bindTo(i)).getValue()?[3,3]:[4,n.updateValue(!0)];case 1:return r.sent(),[4,u.timeout(50)];case 2:r.sent(),r.label=3;case 3:return[2,t.invokeFunction(Y,!0)]}})})}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.focusNext",weight:200,primary:17,secondary:[2065],mac:{primary:17,secondary:[529]},when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive),handler:function(e){var t=e.get(z.IEditorGroupsService),i=e.get(N.IBreadcrumbsService).getWidget(t.activeGroup.id);i&&i.focusNext()}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.focusPrevious",weight:200,primary:15,secondary:[2063],mac:{primary:15,secondary:[527]},when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive),handler:function(e){var t=e.get(z.IEditorGroupsService),i=e.get(N.IBreadcrumbsService).getWidget(t.activeGroup.id);i&&i.focusPrev()}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.selectFocused",weight:200,primary:3,secondary:[18],when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive),handler:function(e){var t=e.get(z.IEditorGroupsService),i=e.get(N.IBreadcrumbsService).getWidget(t.activeGroup.id);i&&i.setSelection(i.getFocused(),q.Payload_Pick)}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.revealFocused",weight:200,primary:10,secondary:[2051],when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive),handler:function(e){var t=e.get(z.IEditorGroupsService),i=e.get(N.IBreadcrumbsService).getWidget(t.activeGroup.id);i&&i.setSelection(i.getFocused(),q.Payload_Reveal)}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.selectEditor",weight:201,primary:9,when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive),handler:function(e){var t=e.get(z.IEditorGroupsService),i=e.get(N.IBreadcrumbsService).getWidget(t.activeGroup.id);i&&(i.setFocused(void 0),i.setSelection(void 0),t.activeGroup.activeControl&&t.activeGroup.activeControl.focus())}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.revealFocusedFromTreeAside",weight:200,primary:2051,when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive,M.WorkbenchListFocusContextKey),handler:function(e){var t=e.get(V.IEditorService),i=e.get(M.IListService),n=i.lastFocusedList?i.lastFocusedList.getFocus():void 0;if(n instanceof _.OutlineElement){var r=_.OutlineModel.get(n);if(!r)return;return t.openEditor({resource:r.textModel.uri,options:{selection:y.Range.collapseToStart(n.symbol.selectionRange)}},V.SIDE_GROUP)}return n&&v.URI.isUri(n.resource)?t.openEditor({resource:n.resource},V.SIDE_GROUP):void 0}})}),define(i[1179],n([0,1,144,7,153,79,16,22,34,12,2,6,13,700]),function(e,t,i,n,r,o,s,c,l,u,d,h,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(e){function t(t,n,r,o){var s=e.call(this,r)||this;return s.accessor=t,s.groupView=n,s.instantiationService=o,s.editorTransfer=i.LocalSelectionTransfer.getInstance(),s.groupTransfer=i.LocalSelectionTransfer.getInstance(),s.cleanupOverlayScheduler=s._register(new g.RunOnceScheduler(function(){return s.dispose()},300)),s.create(),s}return a(t,e),Object.defineProperty(t.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),t.prototype.create=function(){var e=this,i=this.getOverlayOffsetHeight();this.container=document.createElement("div"),this.container.id=t.OVERLAY_ID,this.container.style.top=i+"px",this.groupView.element.appendChild(this.container),n.addClass(this.groupView.element,"dragged-over"),this._register(d.toDisposable(function(){e.groupView.element.removeChild(e.container),n.removeClass(e.groupView.element,"dragged-over")})),this.overlay=document.createElement("div"),n.addClass(this.overlay,"editor-group-overlay-indicator"),this.container.appendChild(this.overlay),this.registerListeners(),this.updateStyles()},t.prototype.updateStyles=function(){this.overlay.style.backgroundColor=this.getColor(o.EDITOR_DRAG_AND_DROP_BACKGROUND);var e=this.getColor(c.activeContrastBorder);this.overlay.style.outlineColor=e,this.overlay.style.outlineOffset=e?"-2px":null,this.overlay.style.outlineStyle=e?"dashed":null,this.overlay.style.outlineWidth=e?"2px":null},t.prototype.registerListeners=function(){var e=this;this._register(new i.DragAndDropObserver(this.container,{onDragEnter:function(e){},onDragOver:function(t){var n=e.groupTransfer.hasData(i.DraggedEditorGroupIdentifier.prototype),r=e.editorTransfer.hasData(i.DraggedEditorIdentifier.prototype);if(r||n||!t.dataTransfer||(t.dataTransfer.dropEffect="copy"),!(n?e.isCopyOperation(t):!r||e.isCopyOperation(t,e.editorTransfer.getData(i.DraggedEditorIdentifier.prototype)[0].identifier))){var o=e.findSourceGroupView();if(o===e.groupView&&(n||r&&o.count<2))return void e.hideOverlay()}e.positionOverlay(t.offsetX,t.offsetY,n),e.cleanupOverlayScheduler.isScheduled()&&e.cleanupOverlayScheduler.cancel()},onDragLeave:function(t){return e.dispose()},onDragEnd:function(t){return e.dispose()},onDrop:function(t){n.EventHelper.stop(t,!0),e.dispose(),e.currentDropOperation&&e.handleDrop(t,e.currentDropOperation.splitDirection)}})),this._register(n.addDisposableListener(this.container,n.EventType.MOUSE_OVER,function(){e.cleanupOverlayScheduler.isScheduled()||e.cleanupOverlayScheduler.schedule()}))},t.prototype.findSourceGroupView=function(){return this.groupTransfer.hasData(i.DraggedEditorGroupIdentifier.prototype)?this.accessor.getGroup(this.groupTransfer.getData(i.DraggedEditorGroupIdentifier.prototype)[0].identifier):this.editorTransfer.hasData(i.DraggedEditorIdentifier.prototype)?this.accessor.getGroup(this.editorTransfer.getData(i.DraggedEditorIdentifier.prototype)[0].identifier.groupId):void 0},t.prototype.handleDrop=function(e,t){var n=this,o=function(){return"number"==typeof t?n.accessor.addGroup(n.groupView,t):n.groupView};if(this.groupTransfer.hasData(i.DraggedEditorGroupIdentifier.prototype)){var s=this.groupTransfer.getData(i.DraggedEditorGroupIdentifier.prototype)[0].identifier,a=this.accessor.getGroup(s);if("number"!=typeof t&&a===this.groupView)return;var c=void 0;c="number"==typeof t?this.isCopyOperation(e)?this.accessor.copyGroup(a,this.groupView,t):this.accessor.moveGroup(a,this.groupView,t):this.isCopyOperation(e)?this.accessor.mergeGroup(a,this.groupView,{mode:0}):this.accessor.mergeGroup(a,this.groupView),this.accessor.activateGroup(c),this.groupTransfer.clearData(i.DraggedEditorGroupIdentifier.prototype)}else if(this.editorTransfer.hasData(i.DraggedEditorIdentifier.prototype)){var u=this.editorTransfer.getData(i.DraggedEditorIdentifier.prototype)[0].identifier;c=o();if((a=this.accessor.getGroup(u.groupId))===c)return;var d=r.getActiveTextEditorOptions(a,u.editor,l.EditorOptions.create({pinned:!0}));c.openEditor(u.editor,d),c.focus(),this.isCopyOperation(e,u)||a.closeEditor(u.editor),this.editorTransfer.clearData(i.DraggedEditorIdentifier.prototype)}else{this.instantiationService.createInstance(i.ResourcesDropHandler,{allowWorkspaceOpen:!0}).handleDrop(e,function(){return o()},function(e){return e.focus()})}},t.prototype.isCopyOperation=function(e,t){return!(t&&!t.editor.supportsSplitEditor())&&(e.ctrlKey&&!u.isMacintosh||e.altKey&&u.isMacintosh)},t.prototype.positionOverlay=function(e,t,i){var r,o=this,s="right"===this.accessor.partOptions.openSideBySideDirection,a=this.groupView.element.clientWidth,c=this.groupView.element.clientHeight-this.getOverlayOffsetHeight(),l=a*(i&&s?.3:.1),u=c*(i?s?.1:.3:.1),d=a/3,h=c/3;switch(r=e>l&&eu&&t2*d?3:t2*h?1:e0?r.format(Z,e.selections.length):void 0},e.prototype.onModeClick=function(){var e=this.instantiationService.createInstance(ue,ue.ID,ue.LABEL);e.run(),e.dispose()},e.prototype.onIndentationClick=function(){var e=this.instantiationService.createInstance(de,de.ID,de.LABEL);e.run(),e.dispose()},e.prototype.onScreenReaderModeClick=function(){var e=this;this.screenReaderNotification||(this.screenReaderNotification=this.notificationService.prompt(H.Severity.Info,i.localize(16,null),[{label:i.localize(17,null),run:function(){e.configurationService.updateValue("editor.accessibilitySupport","on",1)}},{label:i.localize(18,null),run:function(){e.configurationService.updateValue("editor.accessibilitySupport","off",1)}}],{sticky:!0}),K.Event.once(this.screenReaderNotification.onDidClose)(function(){e.screenReaderNotification=null}))},e.prototype.onSelectionClick=function(){this.quickOpenService.show(":")},e.prototype.onEOLClick=function(){var e=this.instantiationService.createInstance(he,he.ID,he.LABEL);e.run(),e.dispose()},e.prototype.onEncodingClick=function(){var e=this.instantiationService.createInstance(pe,pe.ID,pe.LABEL);e.run(),e.dispose()},e.prototype.onTabFocusModeClick=function(){L.TabFocus.setTabFocusMode(!1)},e.prototype.updateStatusBar=function(){var e=this,t=this.editorService.activeControl,i=t&&N.getCodeEditor(t.getControl())||void 0;if(this.onScreenReaderModeChange(i),this.onSelectionChange(i),this.onModeChange(i),this.onEOLChange(i),this.onEncodingChange(t),this.onIndentationChange(i),this.onMetadataChange(t),g.dispose(this.activeEditorListeners),i)this.activeEditorListeners.push(i.onDidChangeConfiguration(function(t){t.accessibilitySupport&&e.onScreenReaderModeChange(i)})),this.activeEditorListeners.push(i.onDidChangeCursorPosition(function(t){e.onSelectionChange(i)})),this.activeEditorListeners.push(i.onDidChangeModelLanguage(function(t){e.onModeChange(i)})),this.activeEditorListeners.push(i.onDidChangeModelContent(function(t){e.onEOLChange(i);var n=i.getSelections();if(n)for(var r=function(t){if(n.some(function(e){return D.Range.areIntersecting(e,t.range)}))return e.onSelectionChange(i),"break"},o=0,s=t.changes;o1&&(o=u.localize(1,null,o,t.group.count-1)),i.applyDragImage(n,o,"monaco-editor-group-drag-image")}}})),this._register(n.addDisposableListener(e,n.EventType.DRAG_END,function(){t.groupTransfer.clearData(x.DraggedEditorGroupIdentifier.prototype)}))},t.prototype.onContextMenu=function(e,t,i){var n=this,o=this.resourceContext.get();this.resourceContext.set(R.toResource(e,{supportSideBySide:!0}));var s=i;if(t instanceof MouseEvent){var a=new r.StandardMouseEvent(t);s={x:a.posx,y:a.posy}}var c=[];d.fillInContextMenuActions(this.contextMenu,{shouldForwardArgs:!0,arg:this.resourceContext.get()},c,this.contextMenuService),this.contextMenuService.showContextMenu({getAnchor:function(){return s},getActions:function(){return c},getActionsContext:function(){return{groupId:n.group.id,editorIndex:n.group.getIndexOfEditor(e)}},getKeyBinding:function(e){return n.getKeybinding(e)},onHide:function(){n.resourceContext.set(o||null),n.accessor.activeGroup.focus()}})},t.prototype.getKeybinding=function(e){return this.keybindingService.lookupKeybinding(e.id)},t.prototype.getKeybindingLabel=function(e){var t=this.getKeybinding(e);return t&&t.getLabel()||void 0},t.prototype.layout=function(e){this.breadcrumbsControl&&this.breadcrumbsControl.layout(void 0)},t.prototype.getPreferredHeight=function(){return M.EDITOR_TITLE_HEIGHT+(this.breadcrumbsControl&&!this.breadcrumbsControl.isHidden()?L.BreadcrumbsControl.HEIGHT:0)},t.prototype.dispose=function(){c.dispose(this.breadcrumbsControl),this.breadcrumbsControl=void 0,this.editorToolBarMenuDisposables=c.dispose(this.editorToolBarMenuDisposables),e.prototype.dispose.call(this)},t=p([f(3,m.IContextMenuService),f(4,y.IInstantiationService),f(5,v.IContextKeyService),f(6,b.IKeybindingService),f(7,C.ITelemetryService),f(8,_.INotificationService),f(9,h.IMenuService),f(10,S.IQuickOpenService),f(11,E.IThemeService),f(12,P.IExtensionService),f(13,g.IConfigurationService),f(14,A.IFileService)],t)}(T.Themable);t.TitleControl=N,E.registerThemingParticipant(function(e,t){var i=e.getColor(w.listActiveSelectionBackground),n=e.getColor(w.listActiveSelectionForeground);t.addRule("\n\t\t.monaco-editor-group-drag-image {\n\t\t\tbackground: "+i+";\n\t\t\tcolor: "+n+";\n\t\t}\n\t")})}),define(i[1183],n([0,1,34,443,150,79,104,7,153,139,49,706]),function(e,t,i,n,r,o,s,c,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeLabel=Object.create(null),t}return a(t,e),t.prototype.create=function(e){var t=this;this.titleContainer=e,this.titleContainer.draggable=!0,this.registerContainerListeners(),s.Gesture.addTarget(this.titleContainer);var i=document.createElement("div");c.addClass(i,"label-container"),this.titleContainer.appendChild(i),this.editorLabel=this._register(this.instantiationService.createInstance(r.ResourceLabel,i,void 0)).element,this._register(c.addDisposableListener(this.editorLabel.element,c.EventType.CLICK,function(e){return t.onTitleLabelClick(e)})),this.createBreadcrumbsControl(i,{showFileIcons:!1,showSymbolIcons:!0,showDecorationColors:!1,breadcrumbsBackground:function(){return d.Color.transparent}}),c.toggleClass(this.titleContainer,"breadcrumbs",Boolean(this.breadcrumbsControl)),this.toDispose.push({dispose:function(){return c.removeClass(t.titleContainer,"breadcrumbs")}});var n=document.createElement("div");c.addClass(n,"title-actions"),this.titleContainer.appendChild(n),this.createEditorActionsToolBar(n)},t.prototype.registerContainerListeners=function(){var e=this;this.enableGroupDragging(this.titleContainer),this._register(c.addDisposableListener(this.titleContainer,c.EventType.DBLCLICK,function(t){return e.onTitleDoubleClick(t)})),this._register(c.addDisposableListener(this.titleContainer,c.EventType.MOUSE_UP,function(t){return e.onTitleClick(t)})),this._register(c.addDisposableListener(this.titleContainer,s.EventType.Tap,function(t){return e.onTitleClick(t)})),this._register(c.addDisposableListener(this.titleContainer,c.EventType.CONTEXT_MENU,function(t){e.group.activeEditor&&e.onContextMenu(e.group.activeEditor,t,e.titleContainer)})),this._register(c.addDisposableListener(this.titleContainer,s.EventType.Contextmenu,function(t){e.group.activeEditor&&e.onContextMenu(e.group.activeEditor,t,e.titleContainer)}))},t.prototype.onTitleLabelClick=function(e){var t=this;c.EventHelper.stop(e,!1),setTimeout(function(){return t.quickOpenService.show()})},t.prototype.onTitleDoubleClick=function(e){c.EventHelper.stop(e),this.group.pinEditor()},t.prototype.onTitleClick=function(e){e instanceof MouseEvent&&1===e.button&&(c.EventHelper.stop(e,!0),this.group.activeEditor&&this.group.closeEditor(this.group.activeEditor))},t.prototype.getPreferredHeight=function(){return l.EDITOR_TITLE_HEIGHT},t.prototype.openEditor=function(e){var t=this;this.ifActiveEditorChanged(function(){return t.redraw()})||this.ifActiveEditorPropertiesChanged(function(){return t.redraw()})},t.prototype.closeEditor=function(e){var t=this;this.ifActiveEditorChanged(function(){return t.redraw()})},t.prototype.closeEditors=function(e){var t=this;this.ifActiveEditorChanged(function(){return t.redraw()})},t.prototype.closeAllEditors=function(){this.redraw()},t.prototype.moveEditor=function(e,t,i){var n=this;this.ifActiveEditorChanged(function(){return n.redraw()})},t.prototype.pinEditor=function(e){var t=this;this.ifEditorIsActive(e,function(){return t.redraw()})},t.prototype.setActive=function(e){this.redraw()},t.prototype.updateEditorLabel=function(e){var t=this;this.ifEditorIsActive(e,function(){return t.redraw()})},t.prototype.updateEditorDirty=function(e){var t=this;this.ifEditorIsActive(e,function(){e.isDirty()?c.addClass(t.titleContainer,"dirty"):c.removeClass(t.titleContainer,"dirty")})},t.prototype.updateOptions=function(e,t){e.labelFormat!==t.labelFormat&&this.redraw()},t.prototype.updateStyles=function(){this.redraw()},t.prototype.handleBreadcrumbsEnablementChange=function(){c.toggleClass(this.titleContainer,"breadcrumbs",Boolean(this.breadcrumbsControl)),this.redraw()},t.prototype.ifActiveEditorChanged=function(e){return!(!(!this.activeLabel.editor&&this.group.activeEditor||this.activeLabel.editor&&!this.group.activeEditor)&&this.activeLabel.editor&&this.group.isActive(this.activeLabel.editor))&&(e(),!0)},t.prototype.ifActiveEditorPropertiesChanged=function(e){this.activeLabel.editor&&this.group.activeEditor&&this.activeLabel.pinned!==this.group.isPinned(this.group.activeEditor)&&e()},t.prototype.ifEditorIsActive=function(e,t){this.group.isActive(e)&&t()},t.prototype.redraw=function(){var e=this.group.activeEditor,t=!!this.group.activeEditor&&this.group.isPinned(this.group.activeEditor),n=this.accessor.activeGroup===this.group;if(this.activeLabel={editor:e||void 0,pinned:t},this.breadcrumbsControl&&(n?(this.breadcrumbsControl.update(),c.toggleClass(this.breadcrumbsControl.domNode,"preview",!t)):this.breadcrumbsControl.hide()),e){this.updateEditorDirty(e);var r=i.toResource(e,{supportSideBySide:!0}),s=e.getName()||"",a=this.accessor.partOptions.labelFormat,l=void 0;l=this.breadcrumbsControl&&!this.breadcrumbsControl.isHidden()?"":("default"!==a||n)&&e.getDescription(this.getVerbosity(a))||"";var u=e.getTitle(2);l===u&&(u=""),this.editorLabel.setResource({name:s,description:l,resource:r||void 0},{title:"string"==typeof u?u:void 0,italic:!t,extraClasses:["no-tabs","title-label"]}),this.editorLabel.element.style.color=n?this.getColor(o.TAB_ACTIVE_FOREGROUND):this.getColor(o.TAB_UNFOCUSED_ACTIVE_FOREGROUND),this.updateEditorActionsToolbar()}else c.removeClass(this.titleContainer,"dirty"),this.editorLabel.clear(),this.clearEditorActionsToolbar()},t.prototype.getVerbosity=function(e){switch(e){case"short":return 0;case"long":return 2;default:return 1}},t.prototype.prepareEditorActions=function(t){return this.accessor.activeGroup===this.group?e.prototype.prepareEditorActions.call(this,t):{primaryEditorActions:t.primary.filter(function(e){return e.id===u.CLOSE_EDITOR_COMMAND_ID}),secondaryEditorActions:[]}},t}(n.TitleControl);t.NoTabsTitleControl=h}),define(i[1184],n([0,1,12,81,34,60,104,150,61,51,37,6,44,15,38,443,72,2,106,41,16,79,22,144,28,57,80,7,513,301,18,442,26,709]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var N=function(e){function t(t,i,n,r,o,s,a,c,l,u,d,h,p,f,g,v){var m=e.call(this,t,i,n,r,o,a,c,l,u,d,h,p,f,g,v)||this;return m.untitledEditorService=s,m.tabLabels=[],m.tabDisposeables=[],m}return a(t,e),t.prototype.create=function(e){this.titleContainer=e;var t=document.createElement("div");M.addClass(t,"tabs-and-actions-container"),this.titleContainer.appendChild(t),this.tabsContainer=document.createElement("div"),this.tabsContainer.setAttribute("role","tablist"),this.tabsContainer.draggable=!0,M.addClass(this.tabsContainer,"tabs-container"),this.registerTabsContainerListeners(),this.tabsScrollbar=this.createTabsScrollbar(this.tabsContainer),t.appendChild(this.tabsScrollbar.getDomNode()),this.editorToolbarContainer=document.createElement("div"),M.addClass(this.editorToolbarContainer,"editor-actions"),t.appendChild(this.editorToolbarContainer),this.createEditorActionsToolBar(this.editorToolbarContainer),this.closeOneEditorAction=this._register(this.instantiationService.createInstance(O.CloseOneEditorAction,O.CloseOneEditorAction.ID,O.CloseOneEditorAction.LABEL));var i=document.createElement("div");M.addClass(i,"tabs-breadcrumbs"),this.titleContainer.appendChild(i),this.createBreadcrumbsControl(i,{showFileIcons:!0,showSymbolIcons:!0,showDecorationColors:!1,breadcrumbsBackground:I.breadcrumbsBackground}),this.tabResourceLabels=this._register(this.instantiationService.createInstance(c.ResourceLabels,c.DEFAULT_LABELS_CONTAINER))},t.prototype.createTabsScrollbar=function(e){var t=new S.ScrollableElement(e,{horizontal:1,vertical:2,scrollYToX:!0,useShadows:!1,horizontalScrollbarSize:3});return t.onScroll(function(t){e.scrollLeft=t.scrollLeft}),t},t.prototype.updateBreadcrumbsControl=function(){this.breadcrumbsControl&&this.breadcrumbsControl.update()&&this.group.relayout()},t.prototype.handleBreadcrumbsEnablementChange=function(){this.group.relayout()},t.prototype.registerTabsContainerListeners=function(){var e=this;this.enableGroupDragging(this.tabsContainer),this._register(M.addDisposableListener(this.tabsContainer,M.EventType.SCROLL,function(){M.hasClass(e.tabsContainer,"scroll")&&e.tabsScrollbar.setScrollPosition({scrollLeft:e.tabsContainer.scrollLeft})})),this._register(M.addDisposableListener(this.tabsContainer,M.EventType.DBLCLICK,function(t){t.target===e.tabsContainer&&(M.EventHelper.stop(t),e.group.openEditor(e.untitledEditorService.createOrGet(),{pinned:!0,index:e.group.count}))})),this._register(M.addDisposableListener(this.tabsContainer,M.EventType.MOUSE_DOWN,function(e){1===e.button&&e.preventDefault()})),this._register(new x.DragAndDropObserver(this.tabsContainer,{onDragEnter:function(t){if(M.addClass(e.tabsContainer,"scroll"),t.target===e.tabsContainer)if(e.isSupportedDropTransfer(t)){var i=!1;if(e.editorTransfer.hasData(x.DraggedEditorIdentifier.prototype)){i=!0;var n=e.editorTransfer.getData(x.DraggedEditorIdentifier.prototype)[0].identifier;if(e.group.id===n.groupId&&e.group.getIndexOfEditor(n.editor)===e.group.count-1)return void(t.dataTransfer.dropEffect="none")}i||(t.dataTransfer.dropEffect="copy"),e.updateDropFeedback(e.tabsContainer,!0)}else t.dataTransfer.dropEffect="none";else e.updateDropFeedback(e.tabsContainer,!1)},onDragLeave:function(t){e.updateDropFeedback(e.tabsContainer,!1),M.removeClass(e.tabsContainer,"scroll")},onDragEnd:function(t){e.updateDropFeedback(e.tabsContainer,!1),M.removeClass(e.tabsContainer,"scroll")},onDrop:function(t){e.updateDropFeedback(e.tabsContainer,!1),M.removeClass(e.tabsContainer,"scroll"),t.target===e.tabsContainer&&e.onDrop(t,e.group.count)}}))},t.prototype.updateEditorActionsToolbar=function(){e.prototype.updateEditorActionsToolbar.call(this),this.layout(this.dimension)},t.prototype.openEditor=function(e){for(var t=this.tabsContainer.children.length;tthis.group.count;)this.tabsContainer.lastChild.remove(),this.tabDisposeables.pop().dispose();this.computeTabLabels(),this.redraw()}else M.clearNode(this.tabsContainer),this.tabDisposeables=_.dispose(this.tabDisposeables),this.tabResourceLabels.clear(),this.tabLabels=[],this.clearEditorActionsToolbar();this.updateBreadcrumbsControl()},t.prototype.moveEditor=function(e,t,i){var n=this,r=this.tabLabels[t];this.tabLabels.splice(t,1),this.tabLabels.splice(i,0,r),this.forEachTab(function(e,t,i,r,o){n.redrawTab(e,t,i,r,o)}),this.layout(this.dimension)},t.prototype.pinEditor=function(e){var t=this;this.withTab(e,function(i,n,r){return t.redrawLabel(e,i,n,r)})},t.prototype.setActive=function(e){var t=this;this.forEachTab(function(i,n,r,o,s){t.redrawEditorActiveAndDirty(e,i,r,o)}),this.updateEditorActionsToolbar(),this.layout(this.dimension)},t.prototype.updateEditorLabel=function(e){var t=this;this.computeTabLabels(),this.forEachTab(function(e,i,n,r,o){t.redrawLabel(e,n,r,o)}),this.layout(this.dimension)},t.prototype.updateEditorDirty=function(e){var t=this;this.withTab(e,function(i,n){return t.redrawEditorActiveAndDirty(t.accessor.activeGroup===t.group,e,i,n)})},t.prototype.updateOptions=function(e,t){e.labelFormat!==t.labelFormat&&this.computeTabLabels(),e.labelFormat===t.labelFormat&&e.tabCloseButton===t.tabCloseButton&&e.tabSizing===t.tabSizing&&e.showIcons===t.showIcons&&e.iconTheme===t.iconTheme&&e.highlightModifiedTabs===t.highlightModifiedTabs||this.redraw()},t.prototype.updateStyles=function(){this.redraw()},t.prototype.withTab=function(e,t){var i=this.group.getIndexOfEditor(e),n=this.tabsContainer.children[i];n&&t(n,this.tabResourceLabels.get(i),this.tabLabels[i])},t.prototype.createTab=function(e){var t=this,i=document.createElement("div");i.draggable=!0,i.tabIndex=0,i.setAttribute("role","presentation"),M.addClass(i,"tab"),s.Gesture.addTarget(i);var n=document.createElement("div");M.addClass(n,"tab-border-top-container"),i.appendChild(n);var o=this.tabResourceLabels.create(i),a=document.createElement("div");M.addClass(a,"tab-close"),i.appendChild(a);var c=document.createElement("div");M.addClass(c,"tab-border-bottom-container"),i.appendChild(c);var u=new r.EditorCommandsContextActionRunner({groupId:this.group.id,editorIndex:e}),d=new l.ActionBar(a,{ariaLabel:R.localize(0,null),actionRunner:u});d.push(this.closeOneEditorAction,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(this.closeOneEditorAction)}),d.onDidBeforeRun(function(){return t.blockRevealActiveTabOnce()});var h=this.registerTabListeners(i,e);return this.tabDisposeables.push(_.combinedDisposable([h,d,u,o])),i},t.prototype.registerTabListeners=function(e,t){var i=this,n=[],a=function(n){if(e.blur(),n instanceof MouseEvent&&0!==n.button)1===n.button&&n.preventDefault();else if(!i.originatesFromTabActionBar(n)){var r=i.group.getEditor(t);r&&i.group.openEditor(r)}},c=function(n){M.EventHelper.stop(n);var r=i.group.getEditor(t);r&&i.onContextMenu(r,n,e)};return n.push(M.addDisposableListener(e,M.EventType.MOUSE_DOWN,function(e){return a(e)})),n.push(M.addDisposableListener(e,s.EventType.Tap,function(e){return a(e)})),n.push(M.addDisposableListener(e,s.EventType.Change,function(e){i.tabsScrollbar.setScrollPosition({scrollLeft:i.tabsScrollbar.getScrollPosition().scrollLeft-e.translationX})})),n.push(M.addDisposableListener(e,M.EventType.MOUSE_UP,function(n){M.EventHelper.stop(n),e.blur(),1===n.button&&(n.stopPropagation(),i.blockRevealActiveTabOnce(),i.closeOneEditorAction.run({groupId:i.group.id,editorIndex:t}))})),n.push(M.addDisposableListener(e,M.EventType.KEY_DOWN,function(e){var t=new o.StandardKeyboardEvent(e);t.shiftKey&&68===t.keyCode&&c(e)})),n.push(M.addDisposableListener(e,s.EventType.Contextmenu,function(e){c(e)})),n.push(M.addDisposableListener(e,M.EventType.KEY_UP,function(e){var n=new o.StandardKeyboardEvent(e),r=!1;if(n.equals(3)||n.equals(10)){r=!0;var s=i.group.getEditor(t);s&&i.group.openEditor(s)}else if([15,17,16,18,14,13].some(function(e){return n.equals(e)})){var a=void 0;a=n.equals(15)||n.equals(16)?t-1:n.equals(17)||n.equals(18)?t+1:n.equals(14)?0:i.group.count-1;var c=i.group.getEditor(a);c&&(r=!0,i.group.openEditor(c,{preserveFocus:!0}),i.tabsContainer.childNodes[a].focus())}r&&M.EventHelper.stop(e,!0),i.tabsScrollbar.setScrollPosition({scrollLeft:i.tabsContainer.scrollLeft})})),n.push(M.addDisposableListener(e,M.EventType.DBLCLICK,function(e){M.EventHelper.stop(e),i.group.pinEditor(i.group.getEditor(t)||void 0)})),n.push(M.addDisposableListener(e,M.EventType.CONTEXT_MENU,function(n){M.EventHelper.stop(n,!0);var r=i.group.getEditor(t);r&&i.onContextMenu(r,n,e)},!0)),n.push(M.addDisposableListener(e,M.EventType.DRAG_START,function(n){var o=i.group.getEditor(t);if(o){i.editorTransfer.setData([new x.DraggedEditorIdentifier({editor:o,groupId:i.group.id})],x.DraggedEditorIdentifier.prototype),n.dataTransfer.effectAllowed="copyMove";var s=r.toResource(o,{supportSideBySide:!0});s&&i.instantiationService.invokeFunction(x.fillResourceDataTransfers,[s],n),M.addClass(e,"dragged"),M.scheduleAtNextAnimationFrame(function(){return M.removeClass(e,"dragged")})}})),n.push(new x.DragAndDropObserver(e,{onDragEnter:function(n){if(M.addClass(e,"dragged-over"),i.isSupportedDropTransfer(n)){var r=!1;if(i.editorTransfer.hasData(x.DraggedEditorIdentifier.prototype)){r=!0;var o=i.editorTransfer.getData(x.DraggedEditorIdentifier.prototype)[0].identifier;if(o.editor===i.group.getEditor(t)&&o.groupId===i.group.id)return void(n.dataTransfer.dropEffect="none")}r||(n.dataTransfer.dropEffect="copy"),i.updateDropFeedback(e,!0,t)}else n.dataTransfer.dropEffect="none"},onDragLeave:function(n){M.removeClass(e,"dragged-over"),i.updateDropFeedback(e,!1,t)},onDragEnd:function(n){M.removeClass(e,"dragged-over"),i.updateDropFeedback(e,!1,t),i.editorTransfer.clearData(x.DraggedEditorIdentifier.prototype)},onDrop:function(n){M.removeClass(e,"dragged-over"),i.updateDropFeedback(e,!1,t),i.onDrop(n,t)}})),_.combinedDisposable(n)},t.prototype.isSupportedDropTransfer=function(e){return this.groupTransfer.hasData(x.DraggedEditorGroupIdentifier.prototype)?this.groupTransfer.getData(x.DraggedEditorGroupIdentifier.prototype)[0].identifier!==this.group.id:!!this.editorTransfer.hasData(x.DraggedEditorIdentifier.prototype)||!!(e.dataTransfer&&e.dataTransfer.types.length>0)},t.prototype.updateDropFeedback=function(e,t,i){var n="number"==typeof i,r="number"==typeof i?this.group.getEditor(i):null,o=n&&!!r&&this.group.isActive(r),s=n?this.getColor(o?E.TAB_ACTIVE_BACKGROUND:E.TAB_INACTIVE_BACKGROUND):null;e.style.backgroundColor=t?this.getColor(E.EDITOR_DRAG_AND_DROP_BACKGROUND):s;var a=this.getColor(I.activeContrastBorder);a&&t?(e.style.outlineWidth="2px",e.style.outlineStyle="dashed",e.style.outlineColor=a,e.style.outlineOffset=n?"-5px":"-3px"):(e.style.outlineWidth=null,e.style.outlineStyle=null,e.style.outlineColor=a,e.style.outlineOffset=null)},t.prototype.computeTabLabels=function(){var e=this.accessor.partOptions.labelFormat,t=this.getLabelConfigFlags(e),i=t.verbosity,n=t.shortenDuplicates,r=this.group.editors.map(function(e){return{editor:e,name:e.getName(),description:e.getDescription(i)||void 0,title:e.getTitle(2)||void 0}});n&&this.shortenTabLabels(r),this.tabLabels=r},t.prototype.shortenTabLabels=function(e){for(var t=new Map,i=0,r=e;i1){var i=e.map(function(e){return e.editor.getDescription(2)}),n=i[0],r=i.slice(1);s=r.some(function(e){return e!==n})}}),s&&(t.clear(),e.forEach(function(e){e.description=e.editor.getDescription(2)||void 0,C.getOrSet(t,e.description,[]).push(e)}));var a=[];if(t.forEach(function(e,t){return a.push(t)}),1!==a.length){var c=n.shorten(a);a.forEach(function(e,i){for(var n=0,r=t.get(e)||[];ni||!a)&&this.tabsScrollbar.setScrollPosition({scrollLeft:i})}}},t.prototype.getTab=function(e){var t=this.group.getIndexOfEditor(e);if(t>=0)return this.tabsContainer.children[t]},t.prototype.blockRevealActiveTabOnce=function(){this.blockRevealActiveTab=!0},t.prototype.originatesFromTabActionBar=function(e){var t;return t=e instanceof MouseEvent?e.target||e.srcElement:e.initialTarget,!!M.findParentWithClass(t,"action-item","tab")},t.prototype.onDrop=function(e,t){var i=this;if(M.EventHelper.stop(e,!0),this.updateDropFeedback(this.tabsContainer,!1),M.removeClass(this.tabsContainer,"scroll"),this.editorTransfer.hasData(x.DraggedEditorIdentifier.prototype)){var n=this.editorTransfer.getData(x.DraggedEditorIdentifier.prototype)[0].identifier,r=this.accessor.getGroup(n.groupId);this.isMoveOperation(e,n.groupId)?r.moveEditor(n.editor,this.group,{index:t}):r.copyEditor(n.editor,this.group,{index:t}),this.group.focus(),this.editorTransfer.clearData(x.DraggedEditorIdentifier.prototype)}else if(this.groupTransfer.hasData(x.DraggedEditorGroupIdentifier.prototype)){r=this.accessor.getGroup(this.groupTransfer.getData(x.DraggedEditorGroupIdentifier.prototype)[0].identifier);var o={index:t};this.isMoveOperation(e,r.id)||(o.mode=0),this.accessor.mergeGroup(r,this.group,o),this.group.focus(),this.groupTransfer.clearData(x.DraggedEditorGroupIdentifier.prototype)}else{this.instantiationService.createInstance(x.ResourcesDropHandler,{allowWorkspaceOpen:!1}).handleDrop(e,function(){return i.group},function(){return i.group.focus()},t)}},t.prototype.isMoveOperation=function(e,t){return!(e.ctrlKey&&!i.isMacintosh||e.altKey&&i.isMacintosh)||t===this.group.id},t.prototype.dispose=function(){e.prototype.dispose.call(this),_.dispose(this.layoutScheduled),this.layoutScheduled=void 0},t=p([f(3,u.IContextMenuService),f(4,h.IInstantiationService),f(5,L.IUntitledEditorService),f(6,v.IContextKeyService),f(7,g.IKeybindingService),f(8,d.ITelemetryService),f(9,D.INotificationService),f(10,m.IMenuService),f(11,b.IQuickOpenService),f(12,w.IThemeService),f(13,k.IExtensionService),f(14,T.IConfigurationService),f(15,A.IFileService)],t)}(y.TitleControl);t.TabsTitleControl=N,w.registerThemingParticipant(function(e,t){e.getColor(I.activeContrastBorder)&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.active,\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.active:hover {\n\t\t\t\toutline: 1px solid;\n\t\t\t\toutline-offset: -5px;\n\t\t\t}\n\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab:hover {\n\t\t\t\toutline: 1px dashed;\n\t\t\t\toutline-offset: -5px;\n\t\t\t}\n\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.active > .tab-close .action-label,\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.active:hover > .tab-close .action-label,\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.dirty > .tab-close .action-label,\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab:hover > .tab-close .action-label {\n\t\t\t\topacity: 1 !important;\n\t\t\t}\n\t\t");var i=e.getColor(I.contrastBorder);I.contrastBorder&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .editor-actions {\n\t\t\t\toutline: 1px solid "+i+"\n\t\t\t}\n\t\t");var n=e.getColor(E.TAB_HOVER_BACKGROUND);n&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container.active > .title .tabs-container > .tab:hover {\n\t\t\t\tbackground-color: "+n+" !important;\n\t\t\t}\n\t\t");var r=e.getColor(E.TAB_UNFOCUSED_HOVER_BACKGROUND);r&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab:hover {\n\t\t\t\tbackground-color: "+r+" !important;\n\t\t\t}\n\t\t");var o=e.getColor(E.TAB_HOVER_BORDER);o&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container.active > .title .tabs-container > .tab:hover {\n\t\t\t\tbox-shadow: "+o+" 0 -1px inset !important;\n\t\t\t}\n\t\t");var s=e.getColor(E.TAB_UNFOCUSED_HOVER_BORDER);if(s&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab:hover {\n\t\t\t\tbox-shadow: "+s+" 0 -1px inset !important;\n\t\t\t}\n\t\t"),"hc"!==e.type){var a=E.WORKBENCH_BACKGROUND(e),c=e.getColor(I.editorBackground),l=e.getColor(E.EDITOR_GROUP_HEADER_TABS_BACKGROUND),u=e.getColor(E.EDITOR_DRAG_AND_DROP_BACKGROUND),d=void 0;l&&c&&(d=l.flatten(c,c,a));var h=void 0;if(l&&c&&u&&c&&(h=l.flatten(c,u,c,a)),n&&d&&h){var p=n.flatten(d),f=n.flatten(h);t.addRule("\n\t\t\t\t.monaco-workbench .part.editor > .content:not(.dragged-over) .editor-group-container.active > .title .tabs-container > .tab.sizing-shrink:not(.dragged):hover > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+p+", transparent) !important;\n\t\t\t\t}\n\n\n\t\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container.active > .title .tabs-container > .tab.sizing-shrink:not(.dragged):hover > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+f+", transparent) !important;\n\t\t\t\t}\n\t\t\t")}if(r&&d&&h){p=r.flatten(d),f=r.flatten(h);t.addRule("\n\t\t\t\t.monaco-workbench .part.editor > .content:not(.dragged-over) .editor-group-container > .title .tabs-container > .tab.sizing-shrink:not(.dragged):hover > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+p+", transparent) !important;\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container > .title .tabs-container > .tab.sizing-shrink:not(.dragged):hover > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+f+", transparent) !important;\n\t\t\t\t}\n\t\t\t")}if(u&&h){f=u.flatten(h);t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container.active > .title .tabs-container > .tab.sizing-shrink.dragged-over:not(.active):not(.dragged) > .tab-label::after,\n\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container:not(.active) > .title .tabs-container > .tab.sizing-shrink.dragged-over:not(.dragged) > .tab-label::after {\n\t\t\t\tbackground: linear-gradient(to left, "+f+", transparent) !important;\n\t\t\t}\n\t\t")}var g=e.getColor(E.TAB_ACTIVE_BACKGROUND);if(g&&d&&h){p=g.flatten(d),f=g.flatten(h);t.addRule("\n\t\t\t\t.monaco-workbench .part.editor > .content:not(.dragged-over) .editor-group-container > .title .tabs-container > .tab.sizing-shrink.active:not(.dragged) > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+p+", transparent);\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container > .title .tabs-container > .tab.sizing-shrink.active:not(.dragged) > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+f+", transparent);\n\t\t\t\t}\n\t\t\t")}var v=e.getColor(E.TAB_INACTIVE_BACKGROUND);if(v&&d&&h){p=v.flatten(d),f=v.flatten(h);t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content:not(.dragged-over) .editor-group-container > .title .tabs-container > .tab.sizing-shrink:not(.dragged) > .tab-label::after {\n\t\t\t\tbackground: linear-gradient(to left, "+p+", transparent);\n\t\t\t}\n\n\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container > .title .tabs-container > .tab.sizing-shrink:not(.dragged) > .tab-label::after {\n\t\t\t\tbackground: linear-gradient(to left, "+f+", transparent);\n\t\t\t}\n\t\t")}}})}),define(i[1185],n([0,1,555,70,50,12,43,85,2,267,80,17,24]),function(e,t,i,n,r,o,s,c,l,u,d,h,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(e){function t(t,i,n,r,o,s){var a=e.call(this)||this;return a.textFileService=t,a.lifecycleService=i,a.editorService=n,a.activityService=r,a.windowService=o,a.untitledEditorService=s,a.isDocumentedEdited=!1,a.registerListeners(),a}return a(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.untitledEditorService.onDidChangeDirty(function(t){return e.onUntitledDidChangeDirty(t)})),this._register(this.textFileService.models.onModelsDirty(function(t){return e.onTextFilesDirty(t)})),this._register(this.textFileService.models.onModelsSaved(function(t){return e.onTextFilesSaved(t)})),this._register(this.textFileService.models.onModelsSaveError(function(t){return e.onTextFilesSaveError(t)})),this._register(this.textFileService.models.onModelsReverted(function(t){return e.onTextFilesReverted(t)})),this.lifecycleService.onShutdown(this.dispose,this)},t.prototype.onUntitledDidChangeDirty=function(e){var t=this.untitledEditorService.isDirty(e);(!this.isDocumentedEdited&&t||this.isDocumentedEdited&&!t)&&this.updateDocumentEdited(),(t||this.lastDirtyCount>0)&&this.updateActivityBadge()},t.prototype.onTextFilesDirty=function(e){var t=this;1===this.textFileService.getAutoSaveMode()||this.isDocumentedEdited||this.updateDocumentEdited(),1!==this.textFileService.getAutoSaveMode()&&this.updateActivityBadge(),this.doOpenDirtyResources(h.distinct(e.filter(function(e){var i=t.textFileService.models.get(e.resource);return i&&i.isDirty()&&!i.hasState(2)&&!t.editorService.isOpen({resource:e.resource})}).map(function(e){return e.resource}),function(e){return e.toString()}))},t.prototype.doOpenDirtyResources=function(e){var t=this.editorService.activeControl;this.editorService.openEditors(e.map(function(e){return{resource:e,options:{inactive:!0,pinned:!0,preserveFocus:!0}}}),t?t.group:g.ACTIVE_GROUP)},t.prototype.onTextFilesSaved=function(e){this.isDocumentedEdited&&this.updateDocumentEdited(),this.lastDirtyCount>0&&this.updateActivityBadge()},t.prototype.onTextFilesSaveError=function(e){this.isDocumentedEdited||this.updateDocumentEdited(),this.updateActivityBadge()},t.prototype.onTextFilesReverted=function(e){this.isDocumentedEdited&&this.updateDocumentEdited(),this.lastDirtyCount>0&&this.updateActivityBadge()},t.prototype.updateActivityBadge=function(){var e=this.textFileService.getDirty().length;this.lastDirtyCount=e,l.dispose(this.badgeHandle),e>0&&(this.badgeHandle=this.activityService.showActivity(n.VIEWLET_ID,new u.NumberBadge(e,function(t){return 1===t?i.localize(0,null):i.localize(1,null,e)}),"explorer-viewlet-label"))},t.prototype.updateDocumentEdited=function(){if(1===o.platform){var e=this.textFileService.isDirty();this.isDocumentedEdited=e,this.windowService.setDocumentEdited(e)}},t=p([f(0,r.ITextFileService),f(1,c.ILifecycleService),f(2,g.IEditorService),f(3,u.IActivityService),f(4,s.IWindowService),f(5,d.IUntitledEditorService)],t)}(l.Disposable);t.DirtyFilesTracker=v}),define(i[444],n([0,1,6,34,168,327,19,41,80,26,33,5,10,21,171,608,56,24,18,2,17,75,67,39]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var D=function(e){function t(t,i,r,o,a,c){var l=e.call(this)||this;return l.editorGroupService=t,l.untitledEditorService=i,l.instantiationService=r,l.labelService=o,l.fileService=a,l.configurationService=c,l._onDidActiveEditorChange=l._register(new h.Emitter),l._onDidVisibleEditorsChange=l._register(new h.Emitter),l._onDidCloseEditor=l._register(new h.Emitter),l._onDidOpenEditorFail=l._register(new h.Emitter),l.openEditorHandlers=[],l.fileInputFactory=s.Registry.as(n.Extensions.EditorInputFactories).getFileInputFactory(),l.registerListeners(),l}return a(t,e),Object.defineProperty(t.prototype,"onDidActiveEditorChange",{get:function(){return this._onDidActiveEditorChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidVisibleEditorsChange",{get:function(){return this._onDidVisibleEditorsChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidCloseEditor",{get:function(){return this._onDidCloseEditor.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidOpenEditorFail",{get:function(){return this._onDidOpenEditorFail.event},enumerable:!0,configurable:!0}),t.prototype.registerListeners=function(){var e=this;this.editorGroupService.whenRestored.then(function(){return e.onEditorsRestored()}),this.editorGroupService.onDidActiveGroupChange(function(t){return e.handleActiveEditorChange(t)}),this.editorGroupService.onDidAddGroup(function(t){return e.registerGroupListeners(t)})},t.prototype.onEditorsRestored=function(){var e=this;this.editorGroupService.groups.forEach(function(t){return e.registerGroupListeners(t)}),this.activeEditor&&(this.doEmitActiveEditorChangeEvent(),this._onDidVisibleEditorsChange.fire())},t.prototype.handleActiveEditorChange=function(e){e===this.editorGroupService.activeGroup&&(this.lastActiveEditor||e.activeEditor)&&(this.lastActiveGroupId===e.id&&this.lastActiveEditor===e.activeEditor||this.doEmitActiveEditorChangeEvent())},t.prototype.doEmitActiveEditorChangeEvent=function(){var e=this.editorGroupService.activeGroup;this.lastActiveGroupId=e.id,this.lastActiveEditor=e.activeEditor,this._onDidActiveEditorChange.fire()},t.prototype.registerGroupListeners=function(e){var t=this,i=[];i.push(e.onDidGroupChange(function(i){5===i.kind&&(t.handleActiveEditorChange(e),t._onDidVisibleEditorsChange.fire())})),i.push(e.onDidCloseEditor(function(e){t._onDidCloseEditor.fire(e)})),i.push(e.onWillOpenEditor(function(i){t.onGroupWillOpenEditor(e,i)})),i.push(e.onDidOpenEditorFail(function(i){t._onDidOpenEditorFail.fire({editor:i,groupId:e.id})})),h.Event.once(e.onWillDispose)(function(){C.dispose(i)})},t.prototype.onGroupWillOpenEditor=function(e,t){for(var i=function(i){var n=i(t.editor,t.options,e);if(n&&n.override)return t.prevent(function(){return n.override}),"break"},n=0,r=this.openEditorHandlers;n=0&&t.openEditorHandlers.splice(i,1)})},t.prototype.openEditor=function(e,t,i){if(e instanceof n.EditorInput){var r=this.toOptions(t),o=this.findTargetGroup(e,r,i);return this.doOpenEditor(o,e,r)}var s=e,a=this.createInput(s);if(a){r=n.TextEditorOptions.from(s),o=this.findTargetGroup(a,r,t);return this.doOpenEditor(o,a,r)}return Promise.resolve(null)},t.prototype.doOpenEditor=function(e,t,i){return e.openEditor(t,i)},t.prototype.findTargetGroup=function(e,t,i){var n;if(i&&"number"!=typeof i)return i;if(i===_.SIDE_GROUP)n=this.findSideBySideGroup();else if("number"==typeof i&&i>=0)n=this.editorGroupService.getGroup(i);else if(!t||"number"!=typeof t.index){var r=this.editorGroupService.getGroups(1);if(t&&t.revealIfVisible)for(var o=0,s=r;o=0?(r=n,null):n})),a={name:i.localize(1,null),extensions:["*"]};return r?(s.unshift(r),s.unshift(a)):s.unshift(a),s.push({name:i.localize(2,null),extensions:[""]}),n.filters=s,n},t.prototype.confirmSave=function(e){if(this.environmentService.isExtensionDevelopment)return Promise.resolve(1);var t=this.getDirty(e);if(0===t.length)return Promise.resolve(1);var n=1===t.length?i.localize(3,null,T.basename(t[0])):A.getConfirmMessage(i.localize(4,null,t.length),t),r=[t.length>1?i.localize(5,null):i.localize(6,null),i.localize(7,null),i.localize(8,null)];return this.dialogService.show(O.Severity.Warning,n,r,{cancelId:2,detail:i.localize(9,null)}).then(function(e){switch(e){case 0:return 0;case 1:return 1;default:return 2}})},t.prototype.confirmOverwrite=function(e){var t={message:i.localize(10,null,T.basename(e)),detail:i.localize(11,null,T.basename(T.dirname(e))),primaryButton:i.localize(12,null),type:"warning"};return this.dialogService.confirm(t).then(function(e){return e.confirmed})},t.prototype.registerListeners=function(){var e=this;this.lifecycleService.onBeforeShutdown(function(t){return t.veto(e.beforeShutdown(t.reason))}),this.lifecycleService.onShutdown(this.dispose,this),this._register(this.configurationService.onDidChangeConfiguration(function(t){t.affectsConfiguration("files")&&e.onFilesConfigurationChange(e.configurationService.getValue())}))},t.prototype.beforeShutdown=function(e){var t=this,i=this.getDirty();return i.length?0!==this.getAutoSaveMode()?this.saveAll(!1,{skipSaveParticipants:!0}).then(function(){var i=t.getDirty();if(i.length)return t.handleDirtyBeforeShutdown(i,e)}):this.handleDirtyBeforeShutdown(i,e):this.noVeto({cleanUpBackups:!0})},t.prototype.handleDirtyBeforeShutdown=function(e,t){var n=this;return this.isHotExitEnabled?this.backupBeforeShutdown(e,this.models,t).then(function(e){return e.didBackup?n.noVeto({cleanUpBackups:!1}):n.confirmBeforeShutdown()},function(e){var t=e[0];return n.notificationService.error(i.localize(13,null,t.message)),!0}):this.confirmBeforeShutdown()},t.prototype.backupBeforeShutdown=function(e,t,i){var n=this;return this.windowsService.getWindowCount().then(function(r){var o;switch(i){case 1:o=1!==n.contextService.getWorkbenchState()&&n.configuredHotExit===y.HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE||!(r>1||u.isMacintosh);break;case 2:case 3:o=!0;break;case 4:o=1!==n.contextService.getWorkbenchState()&&n.configuredHotExit===y.HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE}return o?n.backupAll(e,t).then(function(){return{didBackup:!0}}):{didBackup:!1}})},t.prototype.backupAll=function(e,t){var i=this,n=[],r=[];return e.forEach(function(e){i.fileService.canHandleResource(e)?n.push(t.get(e)):e.scheme===D.Schemas.untitled&&r.push(e)}),this.doBackupAll(n,r)},t.prototype.doBackupAll=function(e,t){var i=this;return Promise.all(e.map(function(e){return i.backupFileService.backupResource(e.getResource(),e.createSnapshot(),e.getVersionId())})).then(function(e){var n=t.filter(function(e){return i.untitledEditorService.exists(e)}).map(function(e){return i.untitledEditorService.loadOrCreate({resource:e})});return Promise.all(n).then(function(e){var t=e.map(function(e){return i.backupFileService.backupResource(e.getResource(),e.createSnapshot(),e.getVersionId())});return Promise.all(t).then(function(){})})})},t.prototype.confirmBeforeShutdown=function(){var e=this;return this.confirmSave().then(function(t){return 0===t?e.saveAll(!0,{skipSaveParticipants:!0}).then(function(t){return!!t.results.some(function(e){return!e.success})||e.noVeto({cleanUpBackups:!0})}):1===t?(e.untitledEditorService.revertAll(),e.noVeto({cleanUpBackups:!0})):2===t||void 0})},t.prototype.noVeto=function(e){return!!e.cleanUpBackups&&(!(this.lifecycleService.phase<3)&&this.cleanupBackupsBeforeShutdown().then(function(){return!1},function(){return!1}))},t.prototype.cleanupBackupsBeforeShutdown=function(){return this.environmentService.isExtensionDevelopment?Promise.resolve(void 0):this.backupFileService.discardAllWorkspaceBackups()},t.prototype.onFilesConfigurationChange=function(e){var t=0!==this.getAutoSaveMode(),i=e&&e.files&&e.files.autoSave||y.AutoSaveConfiguration.OFF;switch(this.autoSaveContext.set(i),i){case y.AutoSaveConfiguration.AFTER_DELAY:this.configuredAutoSaveDelay=e&&e.files&&e.files.autoSaveDelay,this.configuredAutoSaveOnFocusChange=!1,this.configuredAutoSaveOnWindowChange=!1;break;case y.AutoSaveConfiguration.ON_FOCUS_CHANGE:this.configuredAutoSaveDelay=void 0,this.configuredAutoSaveOnFocusChange=!0,this.configuredAutoSaveOnWindowChange=!1;break;case y.AutoSaveConfiguration.ON_WINDOW_CHANGE:this.configuredAutoSaveDelay=void 0,this.configuredAutoSaveOnFocusChange=!1,this.configuredAutoSaveOnWindowChange=!0;break;default:this.configuredAutoSaveDelay=void 0,this.configuredAutoSaveOnFocusChange=!1,this.configuredAutoSaveOnWindowChange=!1}this._onAutoSaveConfigurationChange.fire(this.getAutoSaveConfiguration()),t||0===this.getAutoSaveMode()||this.saveAll();var n=e&&e.files&&e.files.associations;c.equals(this.currentFilesAssociationConfig,n)||(this.currentFilesAssociationConfig=n,this._onFilesAssociationChange.fire());var r=e&&e.files&&e.files.hotExit;r===y.HotExitConfiguration.OFF||r===y.HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE?this.configuredHotExit=r:this.configuredHotExit=y.HotExitConfiguration.ON_EXIT},t.prototype.getDirty=function(e){var t=this.getDirtyFileModels(e).map(function(e){return e.getResource()});return t.push.apply(t,this.untitledEditorService.getDirty(e)),t},t.prototype.isDirty=function(e){return!!this._models.getAll(e).some(function(e){return e.isDirty()})||this.untitledEditorService.getDirty().some(function(t){return!e||t.toString()===e.toString()})},t.prototype.save=function(e,t){if(t&&t.force&&this.fileService.canHandleResource(e)&&!this.isDirty(e)){var i=this._models.get(e);if(i)return t.reason=1,i.save(t).then(function(){return!i.isDirty()})}return this.saveAll([e],t).then(function(e){return 1===e.results.length&&!!e.results[0].success})},t.prototype.saveAll=function(e,t){var i=[];i=Array.isArray(e)?this.getDirty(e):this.getDirty();var n=[],r=[];return i.forEach(function(t){!Array.isArray(e)&&!0!==e||t.scheme!==D.Schemas.untitled?n.push(t):r.push(t)}),this.doSaveAll(n,r,t)},t.prototype.doSaveAll=function(e,t,i){var n=this;return this.doSaveAllFiles(e,i).then(function(i){return r(n,void 0,void 0,function(){var n,r,s,a,c,l,u,d=this;return o(this,function(o){switch(o.label){case 0:n=[],r=0,s=t,o.label=1;case 1:return r0?this.configuredAutoSaveDelay<=1e3?1:2:0},t.prototype.getAutoSaveConfiguration=function(){return{autoSaveDelay:this.configuredAutoSaveDelay&&this.configuredAutoSaveDelay>0?this.configuredAutoSaveDelay:void 0,autoSaveFocusChange:this.configuredAutoSaveOnFocusChange,autoSaveApplicationChange:this.configuredAutoSaveOnWindowChange}},Object.defineProperty(t.prototype,"isHotExitEnabled",{get:function(){return!this.environmentService.isExtensionDevelopment&&this.configuredHotExit!==y.HotExitConfiguration.OFF},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._models.clear(),e.prototype.dispose.call(this)},t=p([f(0,m.IWorkspaceContextService),f(1,y.IFileService),f(2,C.IUntitledEditorService),f(3,v.ILifecycleService),f(4,I.IInstantiationService),f(5,b.IConfigurationService),f(6,N.IModeService),f(7,R.IModelService),f(8,d.IWindowService),f(9,S.IEnvironmentService),f(10,O.INotificationService),f(11,h.IBackupFileService),f(12,d.IWindowsService),f(13,k.IHistoryService),f(14,L.IContextKeyService),f(15,A.IDialogService),f(16,A.IFileDialogService),f(17,F.IEditorService)],t)}(_.Disposable);t.TextFileService=z,V.registerSingleton(g.ITextFileService,z)}),define(i[1188],n([0,1,10,13,6,2,42,333,50,33,65,80,208,26,39]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var y=function(e){function t(t,i,n){var r=e.call(this)||this;return r.instantiationService=t,r.textFileService=i,r.fileService=n,r.providers=Object.create(null),r.modelsToDispose=new Set,r}return a(t,e),t.prototype.createReferencedObject=function(e,t){var n=this;this.modelsToDispose.delete(e);var r=i.URI.parse(e);return this.fileService.canHandleResource(r)?this.textFileService.models.loadOrCreate(r,{reason:2}):this.providers[r.scheme]?this.resolveTextModelContent(e).then(function(){return n.instantiationService.createInstance(c.ResourceEditorModel,r)}):t?Promise.reject(new Error("resource is not available")):this.fileService.activateProvider(r.scheme).then(function(){return n.createReferencedObject(e,!0)})},t.prototype.destroyReferencedObject=function(e,t){var i=this;this.modelsToDispose.add(e),t.then(function(t){i.modelsToDispose.has(e)&&(t instanceof g.TextFileEditorModel?i.textFileService.models.disposeModel(t):t.dispose())},function(e){})},t.prototype.registerTextModelContentProvider=function(e,t){var i=this.providers;return(i[e]||(i[e]=[])).unshift(t),o.toDisposable(function(){var n=i[e];if(n){var r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete i[e])}})},t.prototype.hasTextModelContentProvider=function(e){return void 0!==this.providers[e]},t.prototype.resolveTextModelContent=function(e){var t=i.URI.parse(e),r=(this.providers[t.scheme]||[]).map(function(e){return function(){return Promise.resolve(e.provideTextContent(t))}});return n.first(r).then(function(e){return e||Promise.reject(new Error("resource is not available"))})},t=p([f(0,r.IInstantiationService),f(1,l.ITextFileService),f(2,v.IFileService)],t)}(o.ReferenceCollection),b=function(){function e(e,t,i){this.untitledEditorService=e,this.instantiationService=t,this.modelService=i,this.resourceModelCollection=t.createInstance(y)}return e.prototype.createModelReference=function(e){return this._createModelReference(e)},e.prototype._createModelReference=function(e){if(e.scheme===u.Schemas.untitled)return this.untitledEditorService.loadOrCreate({resource:e}).then(function(e){return new o.ImmortalReference(e)});if(e.scheme===u.Schemas.inMemory)return this.modelService.getModel(e)?Promise.resolve(new o.ImmortalReference(this.instantiationService.createInstance(c.ResourceEditorModel,e))):Promise.reject(new Error("Cant resolve inmemory resource"));var t=this.resourceModelCollection.acquire(e.toString());return t.object.then(function(e){return{object:e,dispose:function(){return t.dispose()}}},function(e){return t.dispose(),Promise.reject(e)})},e.prototype.registerTextModelContentProvider=function(e,t){return this.resourceModelCollection.registerTextModelContentProvider(e,t)},e.prototype.hasTextModelContentProvider=function(e){return this.resourceModelCollection.hasTextModelContentProvider(e)},e=p([f(0,h.IUntitledEditorService),f(1,r.IInstantiationService),f(2,s.IModelService)],e)}();t.TextModelResolverService=b,m.registerSingleton(d.ITextModelService,b,!0)}),define(i[82],n([0,1,6]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IViewletService=i.createDecorator("viewletService")}),define(i[446],n([0,1,2,164,19,40,82,15,5,17,32,23,38,31,524,74,41,7,39,719]),function(e,t,i,n,r,o,s,c,u,d,h,g,v,m,y,b,_,S,C){"use strict";function w(e,t){return u.Event.chain(t).map(function(t){var i=t.views;return t.viewContainer===e?i:[]}).filter(function(e){return e.length>0}).event}Object.defineProperty(t,"__esModule",{value:!0});var E=function(){function e(){this.map=new Map}return e.prototype.add=function(e){return this.map.set(e,(this.map.get(e)||0)+1),this},e.prototype.delete=function(e){var t=this.map.get(e)||0;return 0!==t&&(0===--t?this.map.delete(e):this.map.set(e,t),!0)},e.prototype.has=function(e){return this.map.has(e)},e}(),I=function(e){function t(t,i){var r=e.call(this)||this;r.contextKeyService=i,r.contextKeys=new E,r.items=[],r._onDidChange=r._register(new u.Emitter),r.onDidChangeActiveViews=r._onDidChange.event;var o=w(t,n.ViewsRegistry.onViewsRegistered);r._register(o(r.onViewsRegistered,r));var s=function(e,t){return u.Event.chain(t).map(function(t){var i=t.views,n=t.from,r=t.to;return n===e?{removed:i}:r===e?{added:i}:{}}).filter(function(e){var t=e.added,i=e.removed;return d.isNonEmptyArray(t)||d.isNonEmptyArray(i)}).event}(t,n.ViewsRegistry.onDidChangeContainer);r._register(s(function(e){var t=e.added,i=e.removed;d.isNonEmptyArray(t)&&r.onViewsRegistered(t),d.isNonEmptyArray(i)&&r.onViewsDeregistered(i)}));var a=w(t,n.ViewsRegistry.onViewsDeregistered);r._register(a(r.onViewsDeregistered,r));var c=u.Event.filter(i.onDidChangeContext,function(e){return e.affectsSome(r.contextKeys)});return r._register(c(r.onContextChanged,r)),r.onViewsRegistered(n.ViewsRegistry.getViews(t)),r}return a(t,e),Object.defineProperty(t.prototype,"activeViewDescriptors",{get:function(){return this.items.filter(function(e){return e.active}).map(function(e){return e.viewDescriptor})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allViewDescriptors",{get:function(){return this.items.map(function(e){return e.viewDescriptor})},enumerable:!0,configurable:!0}),t.prototype.onViewsRegistered=function(e){for(var t=[],i=0,n=e;i0)for(var t=0,i=this.panelItems;t=this.panelItems.length||n<0||n>=this.panelItems.length)){var r=this.panelItems.splice(i,1)[0];this.panelItems.splice(n,0,r),this.panelview.movePanel(e,t)}},t.prototype.resizePanel=function(e,t){this.panelview.resizePanel(e,t)},t.prototype.getPanelSize=function(e){return this.panelview.getPanelSize(e)},t.prototype.updateViewHeaders=function(){this.isSingleView()?(this.panelItems[0].panel.setExpanded(!0),this.panelItems[0].panel.headerVisible=!1):this.panelItems.forEach(function(e){return e.panel.headerVisible=!0})},t.prototype.isSingleView=function(){return this.options.showHeaderInTitleWhenSingleView&&1===this.panelItems.length},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.panelItems.forEach(function(e){return e.disposable.dispose()}),this.panelview.dispose()},t=p([f(2,S.IConfigurationService),f(3,C.IWorkbenchLayoutService),f(4,m.IContextMenuService),f(5,y.ITelemetryService),f(6,b.IThemeService),f(7,E.IStorageService)],t)}(h.Viewlet);t.PanelViewlet=x}),define(i[1193],n([0,1,7,2,61,17,57,51,164,37,16,6,40,32,15,76,244,411,78,5,18,66,525,446,19]),function(e,t,i,n,r,o,s,c,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var L=function(e){function t(t,i,r,o,s,a,c,l,d,h,p,f){var g=e.call(this,t,{showHeaderInTitleWhenSingleView:r,dnd:new S.DefaultPanelDndController},o,s,h,a,d,c)||this;g.storageService=c,g.instantiationService=l,g.contextMenuService=h,g.extensionService=p,g.contextService=f,g.didLayout=!1,g.areExtensionsReady=!1,g.viewDisposables=[];var v=k.Registry.as(u.Extensions.ViewContainersRegistry).get(t);return g.viewsModel=g._register(g.instantiationService.createInstance(D.PersistentContributableViewsModel,v,i)),g.viewletState=g.getMemento(1),g.visibleViewsStorageId=t+".numberOfVisibleViews",g.visibleViewsCountFromCache=g.storageService.getNumber(g.visibleViewsStorageId,1,1),g._register(n.toDisposable(function(){return g.viewDisposables=n.dispose(g.viewDisposables)})),g}return a(t,e),t.prototype.create=function(t){var i=this;e.prototype.create.call(this,t),this._register(this.onDidSashChange(function(){return i.saveViewSizes()})),this.viewsModel.onDidAdd(function(e){return i.onDidAddViews(e)}),this.viewsModel.onDidRemove(function(e){return i.onDidRemoveViews(e)});var n=this.viewsModel.visibleViewDescriptors.map(function(e,t){return{viewDescriptor:e,index:t,size:i.viewsModel.getSize(e.id),collapsed:i.viewsModel.isCollapsed(e.id)}});n.length&&this.onDidAddViews(n),this.extensionService.whenInstalledExtensionsRegistered().then(function(){i.areExtensionsReady=!0,i.panels.length&&(i.updateTitleArea(),i.updateViewHeaders())}),this.focus()},t.prototype.getContextMenuActions=function(){var t=this,i=[],n=this.viewsModel.viewDescriptors.map(function(e){return{id:e.id+".toggleVisibility",label:e.name,checked:t.viewsModel.isVisible(e.id),enabled:e.canToggleVisibility,run:function(){return t.toggleViewVisibility(e.id)}}});i.push.apply(i,n);var o=e.prototype.getContextMenuActions.call(this);return n.length&&o.length&&i.push(new r.Separator),i.push.apply(i,o),i},t.prototype.setVisible=function(t){e.prototype.setVisible.call(this,t),this.panels.filter(function(e){return e.isVisible()!==t}).map(function(e){return e.setVisible(t)})},t.prototype.openView=function(e,t){t&&this.focus();var i=this.getView(e);return i||this.toggleViewVisibility(e),(i=this.getView(e)).setExpanded(!0),t&&i.focus(),i},t.prototype.movePanel=function(t,i){var n=o.firstIndex(this.panels,function(e){return e===t}),r=o.firstIndex(this.panels,function(e){return e===i}),s=this.viewsModel.visibleViewDescriptors[n],a=this.viewsModel.visibleViewDescriptors[r];e.prototype.movePanel.call(this,t,i),this.viewsModel.move(s.id,a.id)},t.prototype.layout=function(t){e.prototype.layout.call(this,t),this.dimension=t,this.didLayout?this.saveViewSizes():(this.didLayout=!0,this.restoreViewSizes())},t.prototype.getOptimalWidth=function(){return Math.max.apply(Math,this.panels.map(function(e){return e.getOptimalWidth()||0}))+16},t.prototype.isSingleView=function(){return!!e.prototype.isSingleView.call(this)&&(!!this.areExtensionsReady||1===this.visibleViewsCountFromCache)},t.prototype.createView=function(e,t){var i;return(i=this.instantiationService).createInstance.apply(i,[e.ctorDescriptor.ctor].concat(e.ctorDescriptor.arguments||[],[t]))},t.prototype.getView=function(e){return this.panels.filter(function(t){return t.id===e})[0]},t.prototype.onDidAddViews=function(e){for(var t=this,r=[],o=function(e,o,a,c){var l=s.createView(e,{id:e.id,title:e.name,actionRunner:s.getActionRunner(),expanded:!o,viewletState:s.viewletState});l.render();var u=i.addDisposableListener(l.draggableElement,"contextmenu",function(i){i.stopPropagation(),i.preventDefault(),t.onContextMenu(new b.StandardMouseEvent(i),e)}),d=w.Event.latch(w.Event.map(l.onDidChange,function(){return!l.isExpanded()}))(function(i){t.viewsModel.setCollapsed(e.id,i)});s.viewDisposables.splice(a,0,n.combinedDisposable([u,d])),r.push({panel:l,size:c||l.minimumSize,index:a})},s=this,a=0,c=e;a0),e.setGroupLabel(i),s[i]&&e.setGroupLabel(s[i]+" / "+i)):(e.setShowBorder(!1),e.setGroupLabel(void 0))}),Promise.resolve(new n.QuickOpenModel(o))},t.prototype.getViewEntries=function(){var e=this,t=[],n=this.viewletService.getViewlets();n.forEach(function(n,r){return t.push(new _(n.name,i.localize(1,null),function(){return e.viewletService.openViewlet(n.id,!0)}))}),this.panelService.getPanels().forEach(function(n,r){return t.push(new _(n.name,i.localize(2,null),function(){return e.panelService.openPanel(n.id,!0)}))}),n.forEach(function(i,n){var r=b.Registry.as(m.Extensions.ViewContainersRegistry).get(i.id);if(r){var o=function(t,i){var n=m.ViewsRegistry.getViews(i),r=[];if(n.length)for(var o=function(i){e.contextKeyService.contextMatchesRules(i.when||null)&&r.push(new _(i.name,t.name,function(){return e.viewsService.openView(i.id,!0)}))},s=0,a=n;s0?n[0]:null)}return T(e,t)}function R(e,t,i){return e.getViewlets().filter(function(e){return e.id===x.VIEW_ID}).length?e.openViewlet(x.VIEW_ID,i).then(function(e){return e}):Promise.resolve(t.openPanel(x.VIEW_ID,i))}function O(e,t){var i=e.getActiveViewlet();if(i&&i.getId()===x.VIEW_ID)return i;var n=t.getActivePanel();return n&&n.getId()===x.VIEW_ID?n:null}function T(e,t){return t?e+" ("+t.getLabel()+")":e}Object.defineProperty(t,"__esModule",{value:!0}),t.isSearchViewFocused=L,t.appendKeyBindingLabel=M,t.openSearchView=R,t.getSearchView=O,t.toggleCaseSensitiveCommand=function(e){O(e.get(k.IViewletService),e.get(I.IPanelService)).toggleCaseSensitive()},t.toggleWholeWordCommand=function(e){O(e.get(k.IViewletService),e.get(I.IPanelService)).toggleWholeWords()},t.toggleRegexCommand=function(e){O(e.get(k.IViewletService),e.get(I.IPanelService)).toggleRegex()};var P=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.panelService=r,o}return a(t,e),t.prototype.run=function(){return O(this.viewletService,this.panelService).focusNextInputBox(),Promise.resolve(null)},t.ID="search.focus.nextInputBox",t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.FocusNextInputAction=P;var A=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.panelService=r,o}return a(t,e),t.prototype.run=function(){return O(this.viewletService,this.panelService).focusPreviousInputBox(),Promise.resolve(null)},t.ID="search.focus.previousInputBox",t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.FocusPreviousInputAction=A;var N=function(e){function t(t,i,n,r,o){var s=e.call(this,t,i)||this;return s.viewletService=n,s.panelService=r,s.expandSearchReplaceWidget=o,s}return a(t,e),t.prototype.run=function(){var e=this;return R(this.viewletService,this.panelService,!1).then(function(t){t.searchAndReplaceWidget.toggleReplace(e.expandSearchReplaceWidget);var i=t.updateTextFromSelection(!e.expandSearchReplaceWidget);t.searchAndReplaceWidget.focus(void 0,i,i)})},t}(n.Action);t.FindOrReplaceInFilesAction=N;var F=function(e){function t(t,i,n,r){return e.call(this,t,i,n,r,!1)||this}return a(t,e),t.LABEL=g.localize(0,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(N);t.FindInFilesAction=F;var W=function(e){function t(t,i,n,r,o){var s=e.call(this,t,i,n,r,!1)||this;return s.editorGroupService=o,s}return a(t,e),t.prototype.run=function(){return this.otherViewletShowing()||!L(this.viewletService,this.panelService)?e.prototype.run.call(this):(this.editorGroupService.activeGroup.focus(),Promise.resolve(!0))},t.prototype.otherViewletShowing=function(){return!O(this.viewletService,this.panelService)},t.LABEL=g.localize(1,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService),f(4,w.IEditorGroupsService)],t)}(N);t.OpenSearchViewletAction=W;var B=function(e){function t(t,i,n,r){return e.call(this,t,i,n,r,!0)||this}return a(t,e),t.ID="workbench.action.replaceInFiles",t.LABEL=g.localize(2,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(N);t.ReplaceInFilesAction=B;var V=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.panelService=r,o}return a(t,e),t.prototype.run=function(){var e=O(this.viewletService,this.panelService);return e.searchAndReplaceWidget.toggleReplace(!1),e.searchAndReplaceWidget.focus(),Promise.resolve(null)},t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.CloseReplaceAction=V;var z=function(e){function t(t,i,n,r){var o=e.call(this,t,i,"search-action refresh")||this;return o.viewletService=n,o.panelService=r,o.searchView=O(o.viewletService,o.panelService),o}return a(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.searchView&&this.searchView.isSearchSubmitted()},enumerable:!0,configurable:!0}),t.prototype.update=function(){this._setEnabled(this.enabled)},t.prototype.run=function(){var e=O(this.viewletService,this.panelService);return e&&e.onQueryChanged(),Promise.resolve(null)},t.ID="search.action.refreshSearchResults",t.LABEL=g.localize(3,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.RefreshAction=z;var H=function(e){function t(t,i,n,r){var o=e.call(this,t,i,"search-action collapse")||this;return o.viewletService=n,o.panelService=r,o.update(),o}return a(t,e),t.prototype.update=function(){var e=O(this.viewletService,this.panelService);this.enabled=!!e&&e.hasSearchResults()},t.prototype.run=function(){var e=O(this.viewletService,this.panelService);if(e){var t=e.getControl(),i=t.navigate(),n=i.first(),r=!1;if(n instanceof C.BaseFolderMatch)for(;n=i.next();)if(n instanceof C.Match){r=!0;break}if(r){n=i.first();do{n instanceof C.FileMatch&&t.collapse(n)}while(n=i.next())}else t.collapseAll();t.domFocus(),t.focusFirst()}return Promise.resolve(void 0)},t.ID="search.action.collapseSearchResults",t.LABEL=g.localize(4,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.CollapseDeepestExpandedLevelAction=H;var K=function(e){function t(t,i,n,r){var o=e.call(this,t,i,"search-action clear-search-results")||this;return o.viewletService=n,o.panelService=r,o.update(),o}return a(t,e),t.prototype.update=function(){var e=O(this.viewletService,this.panelService);this.enabled=!!e&&(!e.allSearchFieldsClear()||e.hasSearchResults())},t.prototype.run=function(){var e=O(this.viewletService,this.panelService);return e&&e.clearSearchResults(),Promise.resolve()},t.ID="search.action.clearSearchResults",t.LABEL=g.localize(5,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.ClearSearchResultsAction=K;var U=function(e){function t(t,i,n,r){var o=e.call(this,t,i,"search-action cancel-search")||this;return o.viewletService=n,o.panelService=r,o.update(),o}return a(t,e),t.prototype.update=function(){var e=O(this.viewletService,this.panelService);this.enabled=!!e&&e.isSearching()},t.prototype.run=function(){var e=O(this.viewletService,this.panelService);return e&&e.cancelSearch(),Promise.resolve(void 0)},t.ID="search.action.cancelSearch",t.LABEL=g.localize(6,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.CancelSearchAction=U;var j=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.panelService=r,o}return a(t,e),t.prototype.run=function(){return R(this.viewletService,this.panelService).then(function(e){e.selectNextMatch()})},t.ID="search.action.focusNextSearchResult",t.LABEL=g.localize(7,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.FocusNextSearchResultAction=j;var G=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.panelService=r,o}return a(t,e),t.prototype.run=function(){return R(this.viewletService,this.panelService).then(function(e){e.selectPreviousMatch()})},t.ID="search.action.focusPreviousSearchResult",t.LABEL=g.localize(8,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.FocusPreviousSearchResultAction=G;var q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getElementToFocusAfterRemoved=function(e,t){return this.getNextElementAfterRemoved(e,t)||this.getPreviousElementAfterRemoved(e,t)},t.prototype.getNextElementAfterRemoved=function(e,t){var i=e.navigate(t);if(t instanceof C.BaseFolderMatch)for(;i.next()&&!(i.current()instanceof C.BaseFolderMatch););else if(t instanceof C.FileMatch)for(;i.next()&&!(i.current()instanceof C.FileMatch););else for(;i.next()&&!(i.current()instanceof C.Match);)e.expand(i.current());return i.current()},t.prototype.getPreviousElementAfterRemoved=function(e,t){var i=e.navigate(t),n=i.previous(),r=t.parent();return r===n&&(n=i.previous()),r instanceof C.FileMatch&&r.parent()===n&&(n=i.previous()),t instanceof C.Match&&n&&n instanceof C.BaseFolderMatch&&(i.next(),e.expand(n),n=i.previous()),t instanceof C.Match&&n&&n instanceof C.FileMatch&&(i.next(),e.expand(n),n=i.previous()),n},t}(n.Action);t.AbstractSearchAndReplaceAction=q;var Y=function(e){function t(i,n){var r=e.call(this,"remove",t.LABEL,"action-remove")||this;return r.viewer=i,r.element=n,r}return a(t,e),t.prototype.run=function(){var e=this.viewer.getFocus()[0],t=!e||e instanceof C.SearchResult||function(e,t){do{if(e===t)return!0}while(!(e.parent()instanceof C.SearchResult)&&(e=e.parent()));return!1}(e,this.element)?this.getElementToFocusAfterRemoved(this.viewer,this.element):null;return t&&(this.viewer.reveal(t),this.viewer.setFocus([t],b.getSelectionKeyboardEvent())),this.element.parent().remove(this.element),this.viewer.domFocus(),Promise.resolve()},t.LABEL=g.localize(9,null),t}(q);t.RemoveAction=Y;var $=function(e){function t(i,n,r){var o=e.call(this,_.ReplaceAllInFileActionId,M(t.LABEL,r.lookupKeybinding(_.ReplaceAllInFileActionId),r),"action-replace-all")||this;return o.viewlet=i,o.fileMatch=n,o}return a(t,e),t.prototype.run=function(){var e=this,t=this.viewlet.getControl(),i=this.getElementToFocusAfterRemoved(t,this.fileMatch);return this.fileMatch.parent().replace(this.fileMatch).then(function(){i&&t.setFocus([i],b.getSelectionKeyboardEvent()),t.domFocus(),e.viewlet.open(e.fileMatch,!0)})},t.LABEL=g.localize(10,null),t=p([f(2,y.IKeybindingService)],t)}(q);t.ReplaceAllAction=$;var Q=function(e){function t(i,n,r){var o=e.call(this,_.ReplaceAllInFolderActionId,M(t.LABEL,r.lookupKeybinding(_.ReplaceAllInFolderActionId),r),"action-replace-all")||this;return o.viewer=i,o.folderMatch=n,o}return a(t,e),t.prototype.run=function(){var e=this,t=this.getElementToFocusAfterRemoved(this.viewer,this.folderMatch);return this.folderMatch.replaceAll().then(function(){t&&e.viewer.setFocus([t],b.getSelectionKeyboardEvent()),e.viewer.domFocus()})},t.LABEL=g.localize(11,null),t=p([f(2,y.IKeybindingService)],t)}(q);t.ReplaceAllInFolderAction=Q;var X=function(e){function t(i,n,r,o,s,a,c){var l=e.call(this,_.ReplaceActionId,M(t.LABEL,s.lookupKeybinding(_.ReplaceActionId),s),"action-replace")||this;return l.viewer=i,l.element=n,l.viewlet=r,l.replaceService=o,l.editorService=a,l.configurationService=c,l}return a(t,e),t.prototype.run=function(){var e=this;return this.enabled=!1,this.element.parent().replace(this.element).then(function(){var t=e.getElementToFocusAfterReplace();return t&&e.viewer.setFocus([t],b.getSelectionKeyboardEvent()),e.getElementToShowReplacePreview(t)}).then(function(t){e.viewer.domFocus(),e.configurationService.getValue().search.useReplacePreview&&t&&!e.hasToOpenFile()?e.replaceService.openReplacePreview(t,!0):e.viewlet.open(e.element,!0)})},t.prototype.getElementToFocusAfterReplace=function(){var e=this.viewer.navigate(),t=!1,i=null;do{if((i=e.current())instanceof C.Match){if(i.parent().id()===this.element.parent().id()){if(t=!0,this.element.range().getStartPosition().isBeforeOrEqual(i.range().getStartPosition()))break}else if(t)break}else if(t&&this.viewer.isCollapsed(i))break}while(e.next());return i},t.prototype.getElementToShowReplacePreview=function(e){return r(this,void 0,void 0,function(){var t;return o(this,function(i){switch(i.label){case 0:return this.hasSameParent(e)?[2,e]:[4,this.getPreviousElementAfterRemoved(this.viewer,this.element)];case 1:return t=i.sent(),this.hasSameParent(t)?[2,t]:[2,null]}})})},t.prototype.hasSameParent=function(e){return e&&e instanceof C.Match&&e.parent().resource()===this.element.parent().resource()},t.prototype.hasToOpenFile=function(){var e=this.editorService.activeEditor,t=e?e.getResource():void 0;return!!t&&t.toString()===this.element.parent().resource().toString()},t.LABEL=g.localize(12,null),t=p([f(3,S.IReplaceService),f(4,y.IKeybindingService),f(5,E.IEditorService),f(6,m.IConfigurationService)],t)}(q);function Z(e){return e.scheme===l.Schemas.file?u.normalize(c.normalizeDriveLetter(e.fsPath)):e.toString()}function J(e,t){void 0===t&&(t=0);var i=function(){return e.range().startLineNumber+","+e.range().startColumn},n=function(t){return e.range().startLineNumber+t+""},r=e.fullPreviewLines(),o=r.reduce(function(e,t,r){var o=0===r?i().length:n(r).length;return Math.max(o,e)},0);return r.map(function(e,r){var s=0===r?i():n(r),a=h.repeat(" ",o-s.length);return""+h.repeat(" ",t)+s+": "+a+e}).join("\n")}t.ReplaceAction=X,t.copyPathCommand=function(e,t){var i=e.get(v.IClipboardService),n=Z(t.resource());i.writeText(n)};var ee=d.isWindows?"\r\n":"\n";function te(e,t){var i=e.matches().sort(C.searchMatchComparer).slice(0,t).map(function(e){return J(e,2)});return{text:""+Z(e.resource())+ee+i.join(ee),count:i.length}}function ie(e,t){for(var i=[],n=0,r=e.matches().sort(C.searchMatchComparer),o=0;o1?l.localize(1,null,o):l.localize(2,null,o)),i.actions.clear();var s=[];this.searchModel.isReplaceActive()&&o>0&&s.push(this.instantiationService.createInstance(b.ReplaceAllInFolderAction,this.searchView.getControl(),n)),s.push(new b.RemoveAction(this.searchView.getControl(),n)),i.actions.push(s,{icon:!0,label:!1})},t.prototype.disposeElement=function(e,t,i){},t.prototype.disposeTemplate=function(e){o.dispose(e.disposables)},t.TEMPLATE_ID="folderMatch",t=p([f(3,h.IInstantiationService),f(4,m.IThemeService),f(5,y.IWorkspaceContextService)],t)}(o.Disposable);t.FolderMatchRenderer=w;var E=function(e){function t(i,n,r,o,s,a){var c=e.call(this)||this;return c.searchModel=i,c.searchView=n,c.labels=r,c.instantiationService=o,c.themeService=s,c.contextService=a,c.templateId=t.TEMPLATE_ID,c}return a(t,e),t.prototype.renderTemplate=function(e){var t=[],o=i.append(e,i.$(".filematch")),s=this.labels.create(o);t.push(s);var a=new r.CountBadge(i.append(o,i.$(".badge")));t.push(v.attachBadgeStyler(a,this.themeService));var c=i.append(o,i.$(".actionBarContainer")),l=new n.ActionBar(c,{animated:!1});return t.push(l),{el:o,label:s,badge:a,actions:l,disposables:t}},t.prototype.renderElement=function(e,t,i){var n=e.element;i.el.setAttribute("data-resource",n.resource().toString()),i.label.setFile(n.resource(),{hideIcon:!1});var r=n.count();i.badge.setCount(r),i.badge.setTitleFormat(r>1?l.localize(3,null,r):l.localize(4,null,r)),i.actions.clear();var o=[];this.searchModel.isReplaceActive()&&r>0&&o.push(this.instantiationService.createInstance(b.ReplaceAllAction,this.searchView,n)),o.push(new b.RemoveAction(this.searchView.getControl(),n)),i.actions.push(o,{icon:!0,label:!1})},t.prototype.disposeElement=function(e,t,i){},t.prototype.disposeTemplate=function(e){o.dispose(e.disposables)},t.TEMPLATE_ID="fileMatch",t=p([f(3,h.IInstantiationService),f(4,m.IThemeService),f(5,y.IWorkspaceContextService)],t)}(o.Disposable);t.FileMatchRenderer=E;var I=function(e){function t(i,n,r,o,s){var a=e.call(this)||this;return a.searchModel=i,a.searchView=n,a.instantiationService=r,a.contextService=o,a.configurationService=s,a.templateId=t.TEMPLATE_ID,a}return a(t,e),t.prototype.renderTemplate=function(e){i.addClass(e,"linematch");var t=i.append(e,i.$("a.plain.match")),r=i.append(t,i.$("span")),o=i.append(t,i.$("span.findInFileMatch")),s=i.append(t,i.$("span.replaceMatch")),a=i.append(t,i.$("span")),c=i.append(e,i.$("span.matchLineNum")),l=i.append(e,i.$("span.actionBarContainer"));return{parent:t,before:r,match:o,replace:s,after:a,lineNumber:c,actions:new n.ActionBar(l,{animated:!1})}},t.prototype.renderElement=function(e,t,n){var r=e.element,o=r.preview(),s=this.searchModel.isReplaceActive()&&!!this.searchModel.replaceString;n.before.textContent=o.before,n.match.textContent=o.inside,i.toggleClass(n.match,"replace",s),n.replace.textContent=s?r.replaceString:"",n.after.textContent=o.after,n.parent.title=(o.before+(s?r.replaceString:o.inside)+o.after).trim().substr(0,999);var a=r.range().endLineNumber-r.range().startLineNumber,c=a>0?"+"+a:"",l=this.configurationService.getValue("search").showLineNumbers,u=l?":"+r.range().startLineNumber:"";i.toggleClass(n.lineNumber,"show",a>0||l),n.lineNumber.textContent=u+c,n.lineNumber.setAttribute("title",this.getMatchTitle(r,l)),n.actions.clear(),this.searchModel.isReplaceActive()?n.actions.push([this.instantiationService.createInstance(b.ReplaceAction,this.searchView.getControl(),r,this.searchView),new b.RemoveAction(this.searchView.getControl(),r)],{icon:!0,label:!1}):n.actions.push([new b.RemoveAction(this.searchView.getControl(),r)],{icon:!0,label:!1})},t.prototype.disposeElement=function(e,t,i){},t.prototype.disposeTemplate=function(e){e.actions.dispose()},t.prototype.getMatchTitle=function(e,t){var i=e.range().startLineNumber,n=e.range().endLineNumber-e.range().startLineNumber;return(t?l.localize(5,null,i,n)+" ":"")+(n>0?"+ "+l.localize(6,null,n):"")},t.TEMPLATE_ID="match",t=p([f(2,h.IInstantiationService),f(3,y.IWorkspaceContextService),f(4,u.IConfigurationService)],t)}(o.Disposable);t.MatchRenderer=I;var x=function(){function e(e,t){this.searchModel=e,this.labelService=t}return e.prototype.getAriaLabel=function(e){if(e instanceof _.BaseFolderMatch)return e.hasResource()?l.localize(7,null,e.count(),e.name()):l.localize(8,null,e.count());if(e instanceof _.FileMatch){var t=this.labelService.getUriLabel(e.resource(),{relative:!0})||e.resource().fsPath;return l.localize(9,null,e.count(),e.name(),s.dirname(t))}if(e instanceof _.Match){var i=e,n=this.searchModel,r=n.isReplaceActive()&&!!n.replaceString,o=i.getMatchString(),a=i.range(),c=i.text().substr(0,a.endColumn+150);return r?l.localize(10,null,o,i.replaceString,a.startColumn+1,c):l.localize(11,null,o,a.startColumn+1,c)}return null},e=p([f(1,g.ILabelService)],e)}();t.SearchAccessibilityProvider=x;var D=function(){function e(e){this.instantiationService=e}return e.prototype.onDragOver=function(e,t,i,n){return!1},e.prototype.getDragURI=function(e){return e instanceof _.FileMatch?e.remove.toString():null},e.prototype.getDragLabel=function(e){if(e.length>1)return String(e.length);var t=e[0];return t instanceof _.FileMatch?c.basename(t.resource()):void 0},e.prototype.onDragStart=function(e,t){var i=e.elements.filter(function(e){return e instanceof _.FileMatch}).map(function(e){return e.resource()});i.length&&this.instantiationService.invokeFunction(S.fillResourceDataTransfers,i,t)},e.prototype.drop=function(e,t,i,n){},e=p([f(0,h.IInstantiationService)],e)}();t.SearchDND=D}),define(i[450],n([0,1,7,61,194,69,29,13,5,9,182,587,102,18,15,51,44,74,58,16,237,227,225,152,82,130]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var L=function(e){function t(){var i=e.call(this,t.ID,"","action-replace-all",!1)||this;return i._searchWidget=null,i}return a(t,e),Object.defineProperty(t,"INSTANCE",{get:function(){return null===t.fgInstance&&(t.fgInstance=new t),t.fgInstance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"searchWidget",{set:function(e){this._searchWidget=e},enumerable:!0,configurable:!0}),t.prototype.run=function(){return this._searchWidget?this._searchWidget.triggerReplaceAll():Promise.resolve(null)},t.fgInstance=null,t.ID="search.action.replaceAll",t}(s.Action),M=function(e){function t(t,i,n,r,o,s,a,u,d){var h=e.call(this)||this;return h.contextViewService=n,h.themeService=r,h.contextKeyService=o,h.keyBindingService=s,h.clipboardServce=a,h.configurationService=u,h.accessibilityService=d,h.ignoreGlobalFindBufferOnNextFocus=!1,h._onSearchSubmit=h._register(new l.Emitter),h.onSearchSubmit=h._onSearchSubmit.event,h._onSearchCancel=h._register(new l.Emitter),h.onSearchCancel=h._onSearchCancel.event,h._onReplaceToggled=h._register(new l.Emitter),h.onReplaceToggled=h._onReplaceToggled.event,h._onReplaceStateChange=h._register(new l.Emitter),h.onReplaceStateChange=h._onReplaceStateChange.event,h._onReplaceValueChanged=h._register(new l.Emitter),h.onReplaceValueChanged=h._onReplaceValueChanged.event,h._onReplaceAll=h._register(new l.Emitter),h.onReplaceAll=h._onReplaceAll.event,h._onBlur=h._register(new l.Emitter),h.onBlur=h._onBlur.event,h._onDidHeightChange=h._register(new l.Emitter),h.onDidHeightChange=h._onDidHeightChange.event,h.replaceActive=I.ReplaceActiveKey.bindTo(h.contextKeyService),h.searchInputBoxFocused=I.SearchInputBoxFocusedKey.bindTo(h.contextKeyService),h.replaceInputBoxFocused=I.ReplaceInputBoxFocusedKey.bindTo(h.contextKeyService),h._replaceHistoryDelayer=new c.Delayer(500),h.render(t,i),h.configurationService.onDidChangeConfiguration(function(e){e.affectsConfiguration("editor.accessibilitySupport")&&h.updateAccessibilitySupport()}),h.accessibilityService.onDidChangeAccessibilitySupport(function(){return h.updateAccessibilitySupport()}),h.updateAccessibilitySupport(),h}return a(t,e),t.prototype.focus=function(e,t,i){void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===i&&(i=!1),this.ignoreGlobalFindBufferOnNextFocus=i,t&&this.isReplaceShown()?(this.replaceInput.focus(),e&&this.replaceInput.select()):(this.searchInput.focus(),e&&this.searchInput.select())},t.prototype.setWidth=function(e){this.searchInput.inputBox.layout(),this.replaceInput.width=e-28,this.replaceInput.layout()},t.prototype.clear=function(){this.searchInput.clear(),this.replaceInput.value="",this.setReplaceAllActionState(!1)},t.prototype.isReplaceShown=function(){return!i.hasClass(this.replaceContainer,"disabled")},t.prototype.isReplaceActive=function(){return!!this.replaceActive.get()},t.prototype.getReplaceValue=function(){return this.replaceInput.value},t.prototype.toggleReplace=function(e){void 0!==e&&e===this.isReplaceShown()||this.onToggleReplaceButton()},t.prototype.getSearchHistory=function(){return this.searchInput.inputBox.getHistory()},t.prototype.getReplaceHistory=function(){return this.replaceInput.getHistory()},t.prototype.clearHistory=function(){this.searchInput.inputBox.clearHistory()},t.prototype.showNextSearchTerm=function(){this.searchInput.inputBox.showNextValue()},t.prototype.showPreviousSearchTerm=function(){this.searchInput.inputBox.showPreviousValue()},t.prototype.showNextReplaceTerm=function(){this.replaceInput.showNextValue()},t.prototype.showPreviousReplaceTerm=function(){this.replaceInput.showPreviousValue()},t.prototype.searchInputHasFocus=function(){return!!this.searchInputBoxFocused.get()},t.prototype.replaceInputHasFocus=function(){return this.replaceInput.hasFocus()},t.prototype.focusReplaceAllAction=function(){this.replaceActionBar.focus(!0)},t.prototype.focusRegexAction=function(){this.searchInput.focusOnRegex()},t.prototype.render=function(e,t){this.domNode=i.append(e,i.$(".search-widget")),this.domNode.style.position="relative",this.renderToggleReplaceButton(this.domNode),this.renderSearchInput(this.domNode,t),this.renderReplaceInput(this.domNode,t)},t.prototype.isScreenReaderOptimized=function(){var e=2===this.accessibilityService.getAccessibilitySupport(),t=this.configurationService.getValue("editor").accessibilitySupport;return"on"===t||"auto"===t&&e},t.prototype.updateAccessibilitySupport=function(){this.searchInput.setFocusInputOnOptionClick(!this.isScreenReaderOptimized())},t.prototype.renderToggleReplaceButton=function(e){var t=this,i={buttonBackground:void 0,buttonBorder:void 0,buttonForeground:void 0,buttonHoverBackground:void 0};this.toggleReplaceButton=this._register(new r.Button(e,i)),this.toggleReplaceButton.element.setAttribute("aria-expanded","false"),this.toggleReplaceButton.element.classList.add("collapse"),this.toggleReplaceButton.icon="toggle-replace-button",this.toggleReplaceButton.onDidClick(function(){return t.onToggleReplaceButton()}),this.toggleReplaceButton.element.title=h.localize(2,null)},t.prototype.renderSearchInput=function(e,t){var n=this,r={label:h.localize(3,null),validation:function(e){return n.validateSearchInput(e)},placeholder:h.localize(4,null),appendCaseSensitiveLabel:E.appendKeyBindingLabel("",this.keyBindingService.lookupKeybinding(I.ToggleCaseSensitiveCommandId),this.keyBindingService),appendWholeWordsLabel:E.appendKeyBindingLabel("",this.keyBindingService.lookupKeybinding(I.ToggleWholeWordCommandId),this.keyBindingService),appendRegexLabel:E.appendKeyBindingLabel("",this.keyBindingService.lookupKeybinding(I.ToggleRegexCommandId),this.keyBindingService),history:t.searchHistory,flexibleHeight:!0},o=i.append(e,i.$(".search-container.input-box"));this.searchInput=this._register(new w.ContextScopedFindInput(o,this.contextViewService,r,this.contextKeyService,!0)),this._register(S.attachFindInputBoxStyler(this.searchInput,this.themeService)),this.searchInput.onKeyDown(function(e){return n.onSearchInputKeyDown(e)}),this.searchInput.setValue(t.value||""),this.searchInput.setRegex(!!t.isRegex),this.searchInput.setCaseSensitive(!!t.isCaseSensitive),this.searchInput.setWholeWords(!!t.isWholeWords),this._register(this.onSearchSubmit(function(){n.searchInput.inputBox.addToHistory()})),this._register(this.searchInput.onCaseSensitiveKeyDown(function(e){return n.onCaseSensitiveKeyDown(e)})),this._register(this.searchInput.onRegexKeyDown(function(e){return n.onRegexKeyDown(e)})),this._register(this.searchInput.inputBox.onDidChange(function(){return n.onSearchInputChanged()})),this._register(this.searchInput.inputBox.onDidHeightChange(function(){return n._onDidHeightChange.fire()})),this._register(this.onReplaceValueChanged(function(){n._replaceHistoryDelayer.trigger(function(){return n.replaceInput.addToHistory()})})),this.searchInputFocusTracker=this._register(i.trackFocus(this.searchInput.inputBox.inputElement)),this._register(this.searchInputFocusTracker.onDidFocus(function(){n.searchInputBoxFocused.set(!0);var e=n.searchConfiguration.globalFindClipboard;if(!n.ignoreGlobalFindBufferOnNextFocus&&e){var t=n.clipboardServce.readFindText();n.previousGlobalFindBufferValue!==t&&(n.searchInput.inputBox.addToHistory(),n.searchInput.setValue(t),n.searchInput.select()),n.previousGlobalFindBufferValue=t}n.ignoreGlobalFindBufferOnNextFocus=!1})),this._register(this.searchInputFocusTracker.onDidBlur(function(){return n.searchInputBoxFocused.set(!1)}))},t.prototype.renderReplaceInput=function(e,r){var o=this;this.replaceContainer=i.append(e,i.$(".replace-container.disabled"));var s=i.append(this.replaceContainer,i.$(".input-box"));this.replaceInput=this._register(new w.ContextScopedHistoryInputBox(s,this.contextViewService,{ariaLabel:h.localize(5,null),placeholder:h.localize(6,null),history:r.replaceHistory||[],flexibleHeight:!0},this.contextKeyService)),this._register(S.attachInputBoxStyler(this.replaceInput,this.themeService)),this.onkeydown(this.replaceInput.inputElement,function(e){return o.onReplaceInputKeyDown(e)}),this.replaceInput.value=r.replaceValue||"",this._register(this.replaceInput.onDidChange(function(){return o._onReplaceValueChanged.fire(void 0)})),this._register(this.replaceInput.onDidHeightChange(function(){return o._onDidHeightChange.fire()})),this.replaceAllAction=L.INSTANCE,this.replaceAllAction.searchWidget=this,this.replaceAllAction.label=t.REPLACE_ALL_DISABLED_LABEL,this.replaceActionBar=this._register(new n.ActionBar(this.replaceContainer)),this.replaceActionBar.push([this.replaceAllAction],{icon:!0,label:!1}),this.onkeydown(this.replaceActionBar.domNode,function(e){return o.onReplaceActionbarKeyDown(e)}),this.replaceInputFocusTracker=this._register(i.trackFocus(this.replaceInput.inputElement)),this._register(this.replaceInputFocusTracker.onDidFocus(function(){return o.replaceInputBoxFocused.set(!0)})),this._register(this.replaceInputFocusTracker.onDidBlur(function(){return o.replaceInputBoxFocused.set(!1)}))},t.prototype.triggerReplaceAll=function(){return this._onReplaceAll.fire(),Promise.resolve(null)},t.prototype.onToggleReplaceButton=function(){i.toggleClass(this.replaceContainer,"disabled"),i.toggleClass(this.toggleReplaceButton.element,"collapse"),i.toggleClass(this.toggleReplaceButton.element,"expand"),this.toggleReplaceButton.element.setAttribute("aria-expanded",this.isReplaceShown()?"true":"false"),this.updateReplaceActiveState(),this._onReplaceToggled.fire()},t.prototype.setReplaceAllActionState=function(e){this.replaceAllAction.enabled!==e&&(this.replaceAllAction.enabled=e,this.replaceAllAction.label=e?t.REPLACE_ALL_ENABLED_LABEL(this.keyBindingService):t.REPLACE_ALL_DISABLED_LABEL,this.updateReplaceActiveState())},t.prototype.updateReplaceActiveState=function(){var e=this.isReplaceActive(),t=this.isReplaceShown()&&this.replaceAllAction.enabled;e!==t&&(this.replaceActive.set(t),this._onReplaceStateChange.fire(t),this.replaceInput.layout())},t.prototype.validateSearchInput=function(e){if(0===e.length)return null;if(!this.searchInput.getRegex())return null;try{new RegExp(e)}catch(e){return{content:e.message}}return u.regExpContainsBackreference(e)&&!this.searchConfiguration.usePCRE2?{content:h.localize(7,null)}:null},t.prototype.onSearchInputChanged=function(){this.searchInput.clearMessage(),this.setReplaceAllActionState(!1)},t.prototype.onSearchInputKeyDown=function(e){if(e.equals(3))this.submitSearch(),e.preventDefault();else if(e.equals(9))this._onSearchCancel.fire(),e.preventDefault();else if(e.equals(2))this.isReplaceShown()?this.replaceInput.focus():this.searchInput.focusOnCaseSensitive(),e.preventDefault();else if(e.equals(16)){var t=this.searchInput.domNode.querySelector("textarea"),i=!!this.searchInput.getValue().match(/\n/);t&&i&&t.selectionStart>0&&e.stopPropagation()}else if(e.equals(18)){t=this.searchInput.domNode.querySelector("textarea"),i=!!this.searchInput.getValue().match(/\n/);t&&i&&t.selectionEnd0&&e.stopPropagation()}else if(e.equals(18)){var t;(t=this.searchInput.domNode.querySelector("textarea"))&&t.selectionEnd0&&t&&i.unshift({type:"separator",label:t}),i}var M=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.themeService=n,o.editorService=r,o}return a(t,e),t.prototype.run=function(){for(var e=this.themeService.getColorTheme(),t={},i=[],n=0,r=c.Registry.as(m.Extensions.ColorContribution).getColors().map(function(e){return e.id}).sort();n0){var t=this.progressState.whileDelay-(Date.now()-this.progressState.whileStart);t>0&&(e=t)}this.doShowWhile(e)}else 2===this.progressState.type?this.progressbar.infinite().show():4===this.progressState.type&&(this.progressState.total&&this.progressbar.total(this.progressState.total).show(),this.progressState.worked&&this.progressbar.worked(this.progressState.worked).show())},t.prototype.show=function(e,t){var i=this;return this.progressState="boolean"==typeof e?s.Infinite:new s.Work(e,void 0),this.isActive&&(2===this.progressState.type?this.progressbar.infinite().show(t):4===this.progressState.type&&"number"==typeof this.progressState.total&&this.progressbar.total(this.progressState.total).show(t)),{total:function(e){i.progressState=new s.Work(e,4===i.progressState.type?i.progressState.worked:void 0),i.isActive&&i.progressbar.total(e)},worked:function(e){!i.isActive||i.progressbar.hasTotal()?(i.progressState=new s.Work(4===i.progressState.type?i.progressState.total:void 0,4===i.progressState.type&&"number"==typeof i.progressState.worked?i.progressState.worked+e:e),i.isActive&&i.progressbar.worked(e)):(i.progressState=s.Infinite,i.progressbar.infinite().show())},done:function(){i.progressState=s.Done,i.isActive&&i.progressbar.stop().hide()}}},t.prototype.showWhile=function(e,t){var i=this;3===this.progressState.type&&(e=Promise.all([e,this.progressState.whilePromise])),this.progressState=new s.While(e,t||0,Date.now());var n=function(){3===i.progressState.type&&i.progressState.whilePromise!==e||(i.progressState=s.None,i.isActive&&i.progressbar.stop().hide())};return this.doShowWhile(t),e.then(n,n)},t.prototype.doShowWhile=function(e){this.isActive&&this.progressbar.infinite().show(e)},t=p([f(3,r.IViewletService),f(4,o.IPanelService)],t)}(c);t.ScopedProgressService=l;var u=function(){function e(e){this.progressbar=e}return e.prototype.show=function(e,t){var i=this;return"boolean"==typeof e?this.progressbar.infinite().show(t):this.progressbar.total(e).show(t),{total:function(e){i.progressbar.total(e)},worked:function(e){i.progressbar.hasTotal()?i.progressbar.worked(e):i.progressbar.infinite().show()},done:function(){i.progressbar.stop().hide()}}},e.prototype.showWhile=function(e,t){var i=this,n=function(){i.progressbar.stop().hide()};return this.progressbar.infinite().show(t),e.then(n,n)},e}();t.ProgressService=u}),define(i[1203],n([0,1,499,135,2,9,5,11,214,233,165,253,451,148,91,58,7,712]),function(e,t,i,n,r,o,s,c,l,u,d,h,p,f,g,v,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var y=function(e){function t(t,i,n,r,o,a,c,l,u,d,h,p,f,g,v,m){var y=e.call(this,v,m,l,i,o)||this;return y.notificationService=t,y.storageService=i,y.telemetryService=n,y.contextMenuService=r,y.layoutService=o,y.keybindingService=a,y.instantiationService=c,y.registry=u,y.activeCompositeSettingsKey=d,y.defaultCompositeId=h,y.nameForTelemetry=p,y.compositeCSSClass=f,y.titleForegroundColor=g,y.onDidCompositeOpen=y._register(new s.Emitter),y.onDidCompositeClose=y._register(new s.Emitter),y.mapCompositeToCompositeContainer={},y.mapActionsBindingToComposite={},y.activeComposite=null,y.instantiatedCompositeItems=new Map,y.lastActiveCompositeId=i.get(d,1,y.defaultCompositeId),y}return a(t,e),t.prototype.openComposite=function(e,t){return this.activeComposite&&this.activeComposite.getId()===e?(t&&this.activeComposite.focus(),this.activeComposite):this.doOpenComposite(e,t)},t.prototype.doOpenComposite=function(e,t){void 0===t&&(t=!1);var i=n.defaultGenerator.nextId();this.currentCompositeOpenToken=i,this.activeComposite&&this.hideActiveComposite(),this.updateTitle(e);var r=this.createComposite(e,!0);if(!(this.currentCompositeOpenToken!==i||this.activeComposite&&this.activeComposite.getId()!==r.getId()))return this.activeComposite&&this.activeComposite.getId()===r.getId()?(t&&r.focus(),this.onDidCompositeOpen.fire({composite:r,focus:t}),r):(this.showComposite(r),t&&r.focus(),r&&this.onDidCompositeOpen.fire({composite:r,focus:t}),r)},t.prototype.createComposite=function(e,t){var i=this,n=this.instantiatedCompositeItems.get(e);if(n)return n.composite;var o=this.registry.getComposite(e);if(o){var s=this.instantiationService.createInstance(p.ScopedProgressService,this.progressBar,o.id,t),a=this.instantiationService.createChild(new f.ServiceCollection([g.IProgressService,s])),c=o.instantiate(a),l=[];return this.instantiatedCompositeItems.set(e,{composite:c,disposable:r.toDisposable(function(){return r.dispose(l)}),progressService:s}),c.onTitleAreaUpdate(function(){return i.onTitleAreaUpdate(c.getId())},this,l),c}throw new Error("Unable to find composite with id "+e)},t.prototype.showComposite=function(e){var t=this;this.activeComposite=e;var i=this.activeComposite.getId();i!==this.defaultCompositeId?this.storageService.store(this.activeCompositeSettingsKey,i,1):this.storageService.remove(this.activeCompositeSettingsKey,1),this.lastActiveCompositeId=this.activeComposite.getId();var n=this.mapCompositeToCompositeContainer[e.getId()];n||(n=m.$(".composite"),m.addClasses(n,this.compositeCSSClass),n.id=e.getId(),e.create(n),e.updateStyles(),this.mapCompositeToCompositeContainer[e.getId()]=n);var r=this.instantiatedCompositeItems.get(e.getId());if(r&&!n&&r.progressService.showWhile(Promise.resolve(),this.layoutService.isRestored()?800:3200),this.activeComposite&&e.getId()===this.activeComposite.getId()){var o=this.getContentArea();o&&o.appendChild(n),m.show(n),this.toolBar.actionRunner=e.getActionRunner();var s=this.registry.getComposite(e.getId());s&&s.name!==e.getTitle()&&this.updateTitle(e.getId(),e.getTitle()||void 0);var a=this.mapActionsBindingToComposite[e.getId()];a||(a=this.collectCompositeActions(e),this.mapActionsBindingToComposite[e.getId()]=a),a(),this.telemetryActionsListener&&(this.telemetryActionsListener.dispose(),this.telemetryActionsListener=null),this.telemetryActionsListener=this.toolBar.actionRunner.onDidRun(function(e){e.error&&!c.isPromiseCanceledError(e.error)&&t.notificationService.error(e.error),t.telemetryService&&t.telemetryService.publicLog("workbenchActionExecuted",{id:e.action.id,from:t.nameForTelemetry})}),e.setVisible(!0),this.activeComposite&&e.getId()===this.activeComposite.getId()&&this.contentAreaSize&&e.layout(this.contentAreaSize)}},t.prototype.onTitleAreaUpdate=function(e){if(this.activeComposite&&this.activeComposite.getId()===e){this.updateTitle(this.activeComposite.getId(),this.activeComposite.getTitle()||void 0);var t=this.collectCompositeActions(this.activeComposite);this.mapActionsBindingToComposite[this.activeComposite.getId()]=t,t()}else delete this.mapActionsBindingToComposite[e]},t.prototype.updateTitle=function(e,t){var n=this.registry.getComposite(e);if(n&&this.titleLabel){t||(t=n.name);var r=this.keybindingService.lookupKeybinding(e);this.titleLabel.updateTitle(e,t,r&&r.getLabel()||void 0),this.toolBar.setAriaLabel(i.localize(0,null,t))}},t.prototype.collectCompositeActions=function(e){var t=e.getActions().slice(0),i=e.getSecondaryActions().slice(0);return t.push.apply(t,this.getActions()),i.push.apply(i,this.getSecondaryActions()),this.toolBar.context=this.actionsContextProvider(),this.toolBar.setActions(d.prepareActions(t),d.prepareActions(i))},t.prototype.getActiveComposite=function(){return this.activeComposite},t.prototype.getLastActiveCompositetId=function(){return this.lastActiveCompositeId},t.prototype.hideActiveComposite=function(){if(this.activeComposite){var e=this.activeComposite;this.activeComposite=null;var t=this.mapCompositeToCompositeContainer[e.getId()];return e.setVisible(!1),t.remove(),m.hide(t),this.progressBar.stop().hide(),this.toolBar.setActions([])(),this.onDidCompositeClose.fire(e),e}},t.prototype.createTitleArea=function(e){var t=this,i=m.append(e,m.$(".composite"));m.addClass(i,"title"),this.titleLabel=this.createTitleLabel(i);var n=m.append(i,m.$(".title-actions"));return this.toolBar=this._register(new l.ToolBar(n,this.contextMenuService,{actionItemProvider:function(e){return t.actionItemProvider(e)},orientation:0,getKeyBinding:function(e){return t.keybindingService.lookupKeybinding(e.id)},anchorAlignmentProvider:function(){return t.getTitleAreaDropDownAnchorAlignment()}})),i},t.prototype.createTitleLabel=function(e){var t=m.append(e,m.$(".title-label")),n=m.append(t,m.$("h2")),r=this;return{updateTitle:function(e,t,r){n.innerHTML=o.escape(t),n.title=r?i.localize(1,null,t,r):t},updateStyles:function(){n.style.color=r.titleForegroundColor?r.getColor(r.titleForegroundColor):null}}},t.prototype.updateStyles=function(){e.prototype.updateStyles.call(this),this.titleLabel.updateStyles()},t.prototype.actionItemProvider=function(e){return this.activeComposite?this.activeComposite.getActionItem(e):null},t.prototype.actionsContextProvider=function(){return this.activeComposite?this.activeComposite.getActionsContext():null},t.prototype.createContentArea=function(e){var t=m.append(e,m.$(".content"));return this.progressBar=this._register(new u.ProgressBar(t)),this._register(v.attachProgressBarStyler(this.progressBar,this.themeService)),this.progressBar.hide(),t},t.prototype.getProgressIndicator=function(e){var t=this.instantiatedCompositeItems.get(e);return t?t.progressService:null},t.prototype.getActions=function(){return[]},t.prototype.getSecondaryActions=function(){return[]},t.prototype.getTitleAreaDropDownAnchorAlignment=function(){return 1},t.prototype.layout=function(t,i){this.contentAreaSize=e.prototype.layoutContents.call(this,t,i).contentSize,this.activeComposite&&this.activeComposite.layout(this.contentAreaSize)},t.prototype.removeComposite=function(e){if(this.activeComposite&&this.activeComposite.getId()===e)return!1;delete this.mapCompositeToCompositeContainer[e],delete this.mapActionsBindingToComposite[e];var t=this.instantiatedCompositeItems.get(e);return t&&(t.composite.dispose(),r.dispose(t.disposable),this.instantiatedCompositeItems.delete(e)),!0},t.prototype.dispose=function(){this.mapCompositeToCompositeContainer=null,this.mapActionsBindingToComposite=null,this.instantiatedCompositeItems.forEach(function(e){e.composite.dispose(),r.dispose(e.disposable)}),this.instantiatedCompositeItems.clear(),e.prototype.dispose.call(this)},t}(h.Part);t.CompositePart=y}),define(i[1204],n([0,1,329,34,5,6,7,148,15,233,58,16,22,79,1184,1077,91,451,507,11,2,28,116,37,13,104,153,80,35,61,44,29,139,1183,38,76,174,51,402,10,701]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F,W,B,V,z,H){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var K=function(e){function t(n,o,s,a,c,l,u,d,h,p,f,g){var v=e.call(this,l)||this;return v.accessor=n,v._label=s,v.instantiationService=a,v.contextKeyService=c,v.notificationService=u,v.telemetryService=d,v.untitledEditorService=h,v.keybindingService=p,v.menuService=f,v.contextMenuService=g,v._onDidFocus=v._register(new r.Emitter),v._onWillDispose=v._register(new r.Emitter),v._onDidGroupChange=v._register(new r.Emitter),v._onWillOpenEditor=v._register(new r.Emitter),v._onDidOpenEditorFail=v._register(new r.Emitter),v._onWillCloseEditor=v._register(new r.Emitter),v._onDidCloseEditor=v._register(new r.Emitter),v.mapEditorToPendingConfirmation=new Map,v.element=document.createElement("div"),v._onDidChange=v._register(new r.Relay),v.onDidChange=v._onDidChange.event,o instanceof t?v._group=v._register(o.group.clone()):i.isSerializedEditorGroup(o)?v._group=v._register(a.createInstance(i.EditorGroup,o)):v._group=v._register(a.createInstance(i.EditorGroup,void 0)),v.disposedEditorsWorker=v._register(new D.RunOnceWorker(function(e){return v.handleDisposedEditors(e)},0)),v.create(),v._whenRestored=v.restoreEditors(o),v._whenRestored.then(function(){return v.isRestored=!0}),v.registerListeners(),v}return a(t,e),t.createNew=function(e,i,n){return n.createInstance(t,e,null,i)},t.createFromSerialized=function(e,i,n,r){return r.createInstance(t,i,e,n)},t.createCopy=function(e,i,n,r){return r.createInstance(t,i,e,n)},Object.defineProperty(t.prototype,"onDidFocus",{get:function(){return this._onDidFocus.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onWillDispose",{get:function(){return this._onWillDispose.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidGroupChange",{get:function(){return this._onDidGroupChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onWillOpenEditor",{get:function(){return this._onWillOpenEditor.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidOpenEditorFail",{get:function(){return this._onDidOpenEditorFail.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onWillCloseEditor",{get:function(){return this._onWillCloseEditor.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidCloseEditor",{get:function(){return this._onDidCloseEditor.event},enumerable:!0,configurable:!0}),t.prototype.create=function(){s.addClasses(this.element,"editor-group-container"),this.registerContainerListeners(),this.createContainerToolbar(),this.createContainerContextMenu();var e=document.createElement("div");s.addClass(e,"editor-group-letterpress"),this.element.appendChild(e),this.progressBar=this._register(new u.ProgressBar(this.element)),this._register(d.attachProgressBarStyler(this.progressBar,this.themeService)),this.progressBar.hide();var t=this._register(this.contextKeyService.createScoped(this.element));this.scopedInstantiationService=this.instantiationService.createChild(new c.ServiceCollection([l.IContextKeyService,t],[b.IProgressService,new _.ProgressService(this.progressBar)])),this.handleGroupContextKeys(t),this.titleContainer=document.createElement("div"),s.addClass(this.titleContainer,"title"),this.element.appendChild(this.titleContainer),this.createTitleAreaControl(),this.editorContainer=document.createElement("div"),s.addClass(this.editorContainer,"editor-container"),this.element.appendChild(this.editorContainer),this.editorControl=this._register(this.scopedInstantiationService.createInstance(y.EditorControl,this.editorContainer,this)),this._onDidChange.input=this.editorControl.onDidSizeConstraintsChange,this.doTrackFocus(),this.updateTitleContainer(),this.updateContainer(),this.updateStyles()},t.prototype.handleGroupContextKeys=function(e){var t,i=this,r=n.EditorGroupActiveEditorDirtyContext.bindTo(e),o=function(){t=w.dispose(t);var e=i._group.activeEditor;e?(r.set(e.isDirty()),t=e.onDidChangeDirty(function(){return r.set(e.isDirty())})):r.set(!1)};this._register(this.onDidGroupChange(function(e){5===e.kind&&o()})),o()},t.prototype.registerContainerListeners=function(){var e=this;this._register(s.addDisposableListener(this.element,s.EventType.DBLCLICK,function(t){e.isEmpty()&&(s.EventHelper.stop(t),e.openEditor(e.untitledEditorService.createOrGet(),n.EditorOptions.create({pinned:!0})))})),this._register(s.addDisposableListener(this.element,s.EventType.MOUSE_UP,function(t){e.isEmpty()&&1===t.button&&(s.EventHelper.stop(t),e.accessor.removeGroup(e))}))},t.prototype.createContainerToolbar=function(){var e=this,t=document.createElement("div");s.addClass(t,"editor-group-container-toolbar"),this.element.appendChild(t);var i=this._group.id,n=new O.ActionBar(t,{ariaLabel:S.localize(0,null),actionRunner:this._register(new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(e){return e.run(i)},t}(P.ActionRunner)))}),r=this._register(new P.Action(A.CLOSE_EDITOR_GROUP_COMMAND_ID,S.localize(1,null),"close-editor-group",!0,function(){return e.accessor.removeGroup(e),Promise.resolve(!0)})),o=this.keybindingService.lookupKeybinding(r.id);n.push(r,{icon:!0,label:!1,keybinding:o?o.getLabel():void 0})},t.prototype.createContainerContextMenu=function(){var e=this,t=this._register(this.menuService.createMenu(10,this.contextKeyService));this._register(s.addDisposableListener(this.element,s.EventType.CONTEXT_MENU,function(i){return e.onShowContainerContextMenu(t,i)})),this._register(s.addDisposableListener(this.element,k.EventType.Contextmenu,function(i){return e.onShowContainerContextMenu(t)}))},t.prototype.onShowContainerContextMenu=function(e,t){var i=this;if(this.isEmpty()){var n=this.element;if(t instanceof MouseEvent){var r=new W.StandardMouseEvent(t);n={x:r.posx,y:r.posy}}var o=[];B.fillInContextMenuActions(e,void 0,o,this.contextMenuService),this.contextMenuService.showContextMenu({getAnchor:function(){return n},getActions:function(){return o},onHide:function(){return i.focus()}})}},t.prototype.doTrackFocus=function(){var e=this,t=this._register(s.trackFocus(this.element));this._register(t.onDidFocus(function(){e.isEmpty()&&e._onDidFocus.fire()}));var i=function(t){var i;if(t instanceof MouseEvent){if(0!==t.button)return;i=t.target}else i=t.initialTarget;s.findParentWithClass(i,"monaco-action-bar",e.titleContainer)||s.findParentWithClass(i,"monaco-breadcrumb-item",e.titleContainer)||setTimeout(function(){e.focus()})};this._register(s.addDisposableListener(this.titleContainer,s.EventType.MOUSE_DOWN,function(e){return i(e)})),this._register(s.addDisposableListener(this.titleContainer,k.EventType.Tap,function(e){return i(e)})),this._register(this.editorControl.onDidFocus(function(){e._onDidFocus.fire()}))},t.prototype.updateContainer=function(){this.isEmpty()?(s.addClass(this.element,"empty"),this.element.tabIndex=0,this.element.setAttribute("aria-label",S.localize(2,null,this.label))):(s.removeClass(this.element,"empty"),this.element.removeAttribute("tabIndex"),this.element.removeAttribute("aria-label")),this.updateStyles()},t.prototype.updateTitleContainer=function(){s.toggleClass(this.titleContainer,"tabs",this.accessor.partOptions.showTabs),s.toggleClass(this.titleContainer,"show-file-icons",this.accessor.partOptions.showIcons)},t.prototype.createTitleAreaControl=function(){this.titleAreaControl&&(this.titleAreaControl.dispose(),s.clearNode(this.titleContainer)),this.accessor.partOptions.showTabs?this.titleAreaControl=this.scopedInstantiationService.createInstance(m.TabsTitleControl,this.titleContainer,this.accessor,this):this.titleAreaControl=this.scopedInstantiationService.createInstance(N.NoTabsTitleControl,this.titleContainer,this.accessor,this)},t.prototype.restoreEditors=function(e){var i,r=this;if(0===this._group.count)return Promise.resolve();i=e instanceof t?L.getActiveTextEditorOptions(e):new n.EditorOptions;var o=this._group.activeEditor;if(!o)return Promise.resolve();i.pinned=this._group.isPinned(o),i.preserveFocus=!0;var s=document.activeElement;return this.doShowEditor(o,!0,i).then(function(){r.accessor.activeGroup===r&&s===document.activeElement&&r.focus()})},t.prototype.registerListeners=function(){var e=this;this._register(this._group.onDidEditorPin(function(t){return e.onDidEditorPin(t)})),this._register(this._group.onDidEditorOpen(function(t){return e.onDidEditorOpen(t)})),this._register(this._group.onDidEditorClose(function(t){return e.onDidEditorClose(t)})),this._register(this._group.onDidEditorDispose(function(t){return e.onDidEditorDispose(t)})),this._register(this._group.onDidEditorBecomeDirty(function(t){return e.onDidEditorBecomeDirty(t)})),this._register(this._group.onDidEditorLabelChange(function(t){return e.onDidEditorLabelChange(t)})),this._register(this.accessor.onDidEditorPartOptionsChange(function(t){return e.onDidEditorPartOptionsChange(t)}))},t.prototype.onDidEditorPin=function(e){this._onDidGroupChange.fire({kind:7,editor:e})},t.prototype.onDidEditorOpen=function(e){this.telemetryService.publicLog("editorOpened",e.getTelemetryDescriptor()),this.updateContainer(),this._onDidGroupChange.fire({kind:2,editor:e})},t.prototype.onDidEditorClose=function(e){var t=this;this._onWillCloseEditor.fire(e);var i=e.editor,r=[i];i instanceof n.SideBySideEditorInput&&!this.accessor.groups.some(function(e){return e.group.contains(i)})&&r.push(i.master,i.details),r.forEach(function(e){var i=e?e.getResource():void 0;t.accessor.groups.some(function(t){return t.group.contains(i||e)})||e.close()}),this.telemetryService.publicLog("editorClosed",e.editor.getTelemetryDescriptor()),this.updateContainer(),this._onDidCloseEditor.fire(e),this._onDidGroupChange.fire({kind:3,editor:i,editorIndex:e.index})},t.prototype.onDidEditorDispose=function(e){this.disposedEditorsWorker.work(e)},t.prototype.handleDisposedEditors=function(e){var t,i=this,n=[];e.forEach(function(e){i._group.isActive(e)?t=e:i._group.contains(e)&&n.push(e)}),n.forEach(function(e){return i.doCloseEditor(e,!1)}),t&&this.doCloseEditor(t,!1)},t.prototype.onDidEditorPartOptionsChange=function(e){this.updateTitleContainer(),e.oldPartOptions.showTabs!==e.newPartOptions.showTabs?(this.createTitleAreaControl(),this._group.activeEditor&&this.titleAreaControl.openEditor(this._group.activeEditor)):this.titleAreaControl.updateOptions(e.oldPartOptions,e.newPartOptions),this.updateStyles(),e.oldPartOptions.enablePreview&&!e.newPartOptions.enablePreview&&this._group.previewEditor&&this.pinEditor(this._group.previewEditor)},t.prototype.onDidEditorBecomeDirty=function(e){this.pinEditor(e),this.titleAreaControl.updateEditorDirty(e),this._onDidGroupChange.fire({kind:8,editor:e})},t.prototype.onDidEditorLabelChange=function(e){this.titleAreaControl.updateEditorLabel(e),this._onDidGroupChange.fire({kind:6,editor:e})},Object.defineProperty(t.prototype,"group",{get:function(){return this._group},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"whenRestored",{get:function(){return this._whenRestored},enumerable:!0,configurable:!0}),t.prototype.setLabel=function(e){this._label!==e&&(this._label=e,this._onDidGroupChange.fire({kind:1}))},t.prototype.setActive=function(e){this.active=e,s.toggleClass(this.element,"active",e),s.toggleClass(this.element,"inactive",!e),this.titleAreaControl.setActive(e),this.updateStyles(),this._onDidGroupChange.fire({kind:0})},t.prototype.isEmpty=function(){return 0===this._group.count},Object.defineProperty(t.prototype,"id",{get:function(){return this._group.id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editors",{get:function(){return this._group.getEditors()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._group.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeControl",{get:function(){return this.editorControl&&this.editorControl.activeControl||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeEditor",{get:function(){return this._group.activeEditor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"previewEditor",{get:function(){return this._group.previewEditor},enumerable:!0,configurable:!0}),t.prototype.isPinned=function(e){return this._group.isPinned(e)},t.prototype.isActive=function(e){return this._group.isActive(e)},t.prototype.getEditors=function(e){return 0===e?this._group.getEditors(!0):this.editors},t.prototype.getEditor=function(e){return this._group.getEditor(e)},t.prototype.getIndexOfEditor=function(e){return this._group.indexOf(e)},t.prototype.isOpened=function(e){return this._group.contains(e)},t.prototype.focus=function(){this.activeControl?this.activeControl.focus():this.element.focus(),this._onDidFocus.fire()},t.prototype.pinEditor=function(e){void 0===e&&(e=this.activeEditor||void 0),e&&!this._group.isPinned(e)&&(this._group.pin(e),this.titleAreaControl.pinEditor(e))},t.prototype.invokeWithinContext=function(e){return this.scopedInstantiationService.invokeFunction(e)},t.prototype.openEditor=function(e,t){if(!e)return Promise.resolve(null);var i=new U(this._group.id,e,t);this._onWillOpenEditor.fire(i);var n=i.isPrevented();return n?n():this.doOpenEditor(e,t)},t.prototype.doOpenEditor=function(e,t){var i={index:t?t.index:void 0,pinned:!this.accessor.partOptions.enablePreview||e.isDirty()||t&&t.pinned||t&&"number"==typeof t.index,active:0===this._group.count||!t||!t.inactive};if(!i.active&&!i.pinned&&this._group.activeEditor&&this._group.isPreview(this._group.activeEditor)&&(i.active=!0),!i.active||t&&t.preserveFocus||this.accessor.activateGroup(this),"number"==typeof i.index){var n=this._group.indexOf(e);-1!==n&&n!==i.index&&this.doMoveEditorInsideGroup(e,i)}return this._group.openEditor(e,i),this.doShowEditor(e,!!i.active,t)},t.prototype.doShowEditor=function(e,t,i){var n,r=this;return n=t?this.editorControl.openEditor(e,i).then(function(t){return t.editorChanged&&r._onDidGroupChange.fire({kind:5,editor:e}),t.control},function(t){return r.doHandleOpenEditorError(t,e,i),null}):Promise.resolve(null),this.titleAreaControl.openEditor(e),n},t.prototype.doHandleOpenEditorError=function(e,t,i){if(this.isRestored&&!C.isPromiseCanceledError(e)&&(!i||!i.ignoreError)){var n={primary:[]};z.isErrorWithActions(e)&&(n.primary=e.actions);var o=this.notificationService.notify({severity:E.Severity.Error,message:S.localize(3,null,t.getName(),I.toErrorMessage(e)),actions:n});r.Event.once(o.onDidClose)(function(){return n.primary&&w.dispose(n.primary)})}if(this._onDidOpenEditorFail.fire(t),this.activeEditor===t){var s=!i||!i.preserveFocus;this.doCloseEditor(t,s,!0)}},t.prototype.openEditors=function(e){var t,i=this;if(!e.length)return Promise.resolve(null);var r=(e=e.slice(0)).shift(),o=r.editor,s=r.options;return this.openEditor(o,s).then(function(r){t=r;var s=i.getIndexOfEditor(o)+1;return Promise.all(e.map(function(e,r){var o=e.editor,a=e.options||new n.EditorOptions;return a.inactive=!0,a.pinned=!0,a.index=s+r,i.openEditor(o,a).then(function(e){t||(t=e)})})).then(function(){return t})})},t.prototype.moveEditor=function(e,t,i){this===t?this.doMoveEditorInsideGroup(e,i):this.doMoveOrCopyEditorAcrossGroups(e,t,i)},t.prototype.doMoveEditorInsideGroup=function(e,t){var i=t?t.index:void 0;if("number"==typeof i){var n=this._group.indexOf(e);n!==i&&(this._group.moveEditor(e,i),this._group.pin(e),this.titleAreaControl.moveEditor(e,n,i),this.titleAreaControl.pinEditor(e),this._onDidGroupChange.fire({kind:4,editor:e}))}},t.prototype.doMoveOrCopyEditorAcrossGroups=function(e,t,i,r){void 0===i&&(i=Object.create(null));var o=L.getActiveTextEditorOptions(this,e,n.EditorOptions.create(i));o.pinned=!0,t.openEditor(e,o),r||this.doCloseEditor(e,!1)},t.prototype.copyEditor=function(e,t,i){this===t?this.doMoveEditorInsideGroup(e,i):this.doMoveOrCopyEditorAcrossGroups(e,t,i,!0)},t.prototype.closeEditor=function(e,t){var i=this;return void 0===e&&(e=this.activeEditor||void 0),e?this.handleDirty([e]).then(function(n){n||i.doCloseEditor(e,(!t||!t.preserveFocus)&&void 0)}):Promise.resolve()},t.prototype.doCloseEditor=function(e,t,i){void 0===t&&(t=this.accessor.activeGroup===this),this._group.isActive(e)?this.doCloseActiveEditor(t,i):this.doCloseInactiveEditor(e),this.titleAreaControl.closeEditor(e)},t.prototype.doCloseActiveEditor=function(e,t){void 0===e&&(e=this.accessor.activeGroup===this);var i=this.activeEditor,r=this.shouldRestoreFocus(this.element),o=this.accessor.partOptions.closeEmptyGroups;if(o&&this.active&&1===this._group.count){var s=this.accessor.getGroups(1)[1];s&&(r?s.focus():this.accessor.activateGroup(s))}i&&this._group.closeEditor(i);var a=this._group.activeEditor;if(a){var c=n.EditorOptions.create({preserveFocus:!e});t&&(c.ignoreError=!0),this.openEditor(a,c)}else i&&this.editorControl.closeEditor(i),r&&!o&&this.focus(),this._onDidGroupChange.fire({kind:5}),o&&this.accessor.removeGroup(this)},t.prototype.shouldRestoreFocus=function(e){var t=document.activeElement;return t===document.body||s.isAncestor(t,e)},t.prototype.doCloseInactiveEditor=function(e){this._group.closeEditor(e)},t.prototype.handleDirty=function(e){var t=this;if(!e.length)return Promise.resolve(!1);var i=e.shift(),n=this.mapEditorToPendingConfirmation.get(i);return n||(n=this.doHandleDirty(i),this.mapEditorToPendingConfirmation.set(i,n)),n.then(function(n){return t.mapEditorToPendingConfirmation.delete(i),n||t.handleDirty(e)})},t.prototype.doHandleDirty=function(e){var t=this;return!e.isDirty()||this.accessor.groups.some(function(i){return i!==t&&i.group.contains(e,!0)})||e instanceof n.SideBySideEditorInput&&this.isOpened(e.master)?Promise.resolve(!1):this.openEditor(e).then(function(){return e.confirmSave().then(function(t){if(!e.isDirty())return 2===t;switch(t){case 0:return e.save().then(function(e){return!e});case 1:return e.revert().then(function(e){return!e},function(t){return e.revert({soft:!0}).then(function(e){return!e})});case 2:return!0}})})},t.prototype.closeEditors=function(e,t){var i=this;if(this.isEmpty())return Promise.resolve();var n=this.getEditorsToClose(e);return this.handleDirty(n.slice(0)).then(function(e){e||i.doCloseEditors(n,t)})},t.prototype.getEditorsToClose=function(e){if(Array.isArray(e))return e;var t=e,i="number"==typeof t.direction,n=this._group.getEditors(!i);return t.savedOnly?n=n.filter(function(e){return!e.isDirty()}):i?n=0===t.direction?n.slice(0,this._group.indexOf(t.except)):n.slice(this._group.indexOf(t.except)+1):t.except&&(n=n.filter(function(e){return!e.matches(t.except)})),n},t.prototype.doCloseEditors=function(e,t){var i=this,n=!1;e.forEach(function(e){i.isActive(e)?n=!0:i.doCloseInactiveEditor(e)}),n&&this.doCloseActiveEditor((!t||!t.preserveFocus)&&void 0),this.titleAreaControl.closeEditors(e)},t.prototype.closeAllEditors=function(){var e=this;if(this.isEmpty())return this.accessor.partOptions.closeEmptyGroups&&this.accessor.removeGroup(this),Promise.resolve();var t=this._group.getEditors(!0);return this.handleDirty(t.slice(0)).then(function(t){t||e.doCloseAllEditors()})},t.prototype.doCloseAllEditors=function(){var e=this;this.editors.forEach(function(t){e.isActive(t)||e.doCloseInactiveEditor(t)}),this.doCloseActiveEditor(),this.titleAreaControl.closeAllEditors()},t.prototype.replaceEditors=function(e){var t,i=this,r=[];if(e.forEach(function(e){var o=e.editor,s=e.replacement,a=e.options;if(!o.isDirty()){var c=i.getIndexOfEditor(o);if(c>=0){var l=i.isActive(o);a?a.index=c:a=n.EditorOptions.create({index:c}),a.inactive=!l,a.pinned=!0;var u={editor:o,replacement:s,options:a};l?t=u:r.push(u)}}}),r.forEach(function(e){var t=e.editor,n=e.replacement,r=e.options;i.doOpenEditor(n,r),t.matches(n)||(i.doCloseInactiveEditor(t),i.titleAreaControl.closeEditor(t))}),t){var o=this.doOpenEditor(t.replacement,t.options);return t.editor.matches(t.replacement)||(this.doCloseInactiveEditor(t.editor),this.titleAreaControl.closeEditor(t.editor)),o.then(function(){})}return Promise.resolve()},t.prototype.updateStyles=function(){var e=this.isEmpty();this.element.style.backgroundColor=e?this.getColor(v.EDITOR_GROUP_EMPTY_BACKGROUND):null;var t=this.accessor.partOptions.showTabs,i=this.getColor(v.EDITOR_GROUP_HEADER_TABS_BORDER)||this.getColor(g.contrastBorder);!e&&t&&i?(s.addClass(this.titleContainer,"title-border-bottom"),this.titleContainer.style.setProperty("--title-border-bottom-color",i.toString())):(s.removeClass(this.titleContainer,"title-border-bottom"),this.titleContainer.style.removeProperty("--title-border-bottom-color")),this.titleContainer.style.backgroundColor=this.getColor(t?v.EDITOR_GROUP_HEADER_TABS_BACKGROUND:v.EDITOR_GROUP_HEADER_NO_TABS_BACKGROUND),this.editorContainer.style.backgroundColor=this.getColor(g.editorBackground)},Object.defineProperty(t.prototype,"minimumWidth",{get:function(){return this.editorControl.minimumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimumHeight",{get:function(){return this.editorControl.minimumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximumWidth",{get:function(){return this.editorControl.maximumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximumHeight",{get:function(){return this.editorControl.maximumHeight},enumerable:!0,configurable:!0}),t.prototype.layout=function(e,t){this.dimension=new s.Dimension(e,t),this.editorContainer.style.height="calc(100% - "+this.titleAreaControl.getPreferredHeight()+"px)",this.titleAreaControl.layout(new s.Dimension(this.dimension.width,this.titleAreaControl.getPreferredHeight())),this.editorControl.layout(new s.Dimension(this.dimension.width,this.dimension.height-this.titleAreaControl.getPreferredHeight()))},t.prototype.relayout=function(){if(this.dimension){var e=this.dimension,t=e.width,i=e.height;this.layout(t,i)}},t.prototype.toJSON=function(){return this._group.serialize()},t.prototype.dispose=function(){this._disposed=!0,this._onWillDispose.fire(),this.titleAreaControl.dispose(),e.prototype.dispose.call(this)},t=p([f(3,o.IInstantiationService),f(4,l.IContextKeyService),f(5,h.IThemeService),f(6,E.INotificationService),f(7,x.ITelemetryService),f(8,M.IUntitledEditorService),f(9,T.IKeybindingService),f(10,F.IMenuService),f(11,V.IContextMenuService)],t)}(v.Themable);t.EditorGroupView=K;var U=function(){function e(e,t,i){this._group=e,this._editor=t,this._options=i}return Object.defineProperty(e.prototype,"groupId",{get:function(){return this._group},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editor",{get:function(){return this._editor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.prevent=function(e){this.override=e},e.prototype.isPrevented=function(){return this.override},e}();h.registerThemingParticipant(function(e,t,i){var n="resources/letterpress"+("dark"===e.type?"-dark":"hc"===e.type?"-hc":"")+".svg";t.addRule("\n\t\t.monaco-workbench .part.editor > .content .editor-group-container.empty .editor-group-letterpress {\n\t\t\tbackground-image: url('"+H.URI.file(R.join(i.appRoot,n)).toString()+"')\n\t\t}\n\t");var r=e.getColor(v.EDITOR_GROUP_FOCUSED_EMPTY_BORDER);r?t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content:not(.empty) .editor-group-container.empty.active:focus {\n\t\t\t\toutline-width: 1px;\n\t\t\t\toutline-color: "+r+";\n\t\t\t\toutline-offset: -2px;\n\t\t\t\toutline-style: solid;\n\t\t\t}\n\n\t\t\t.monaco-workbench .part.editor > .content.empty .editor-group-container.empty.active:focus {\n\t\t\t\toutline: none; /* never show outline for empty group if it is the last */\n\t\t\t}\n\t\t"):t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container.empty.active:focus {\n\t\t\t\toutline: none; /* disable focus outline unless active empty group border is defined */\n\t\t\t}\n\t\t")})}),define(i[1205],n([0,1,16,253,7,5,22,56,6,992,41,79,17,153,1204,18,2,25,40,329,1179,508,49,988,408,11,66,39,1181]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var R=function(){function e(){this.element=r.$(".grid-view-container"),this._onDidChange=new o.Relay,this.onDidChange=this._onDidChange.event}return Object.defineProperty(e.prototype,"minimumWidth",{get:function(){return this.gridWidget?this.gridWidget.minimumWidth:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumWidth",{get:function(){return this.gridWidget?this.gridWidget.maximumWidth:Number.POSITIVE_INFINITY},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimumHeight",{get:function(){return this.gridWidget?this.gridWidget.minimumHeight:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumHeight",{get:function(){return this.gridWidget?this.gridWidget.maximumHeight:Number.POSITIVE_INFINITY},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridWidget",{get:function(){return this._gridWidget},set:function(e){this.element.innerHTML="",e?(this.element.appendChild(e.element),this._onDidChange.input=e.onDidChange):this._onDidChange.input=o.Event.None,this._gridWidget=e},enumerable:!0,configurable:!0}),e.prototype.layout=function(e,t){this.gridWidget&&this.gridWidget.layout(e,t)},e.prototype.dispose=function(){this._onDidChange.dispose()},e}(),O=function(e){function t(t,i,n,r,s){var a=e.call(this,"workbench.parts.editor",{hasTitle:!1},i,r,s)||this;return a.instantiationService=t,a.configurationService=n,a._onDidLayout=a._register(new o.Emitter),a._onDidActiveGroupChange=a._register(new o.Emitter),a._onDidActivateGroup=a._register(new o.Emitter),a._onDidAddGroup=a._register(new o.Emitter),a._onDidRemoveGroup=a._register(new o.Emitter),a._onDidMoveGroup=a._register(new o.Emitter),a.onDidSetGridWidget=a._register(new o.Emitter),a._onDidSizeConstraintsChange=a._register(new o.Relay),a._onDidPreferredSizeChange=a._register(new o.Emitter),a.groupViews=new Map,a.mostRecentActiveGroups=[],a.enforcedPartOptions=[],a._onDidEditorPartOptionsChange=a._register(new o.Emitter),a.priority=2,a.gridWidgetView=new R,a._partOptions=v.getEditorPartOptions(a.configurationService.getValue()),a.workspaceMemento=a.getMemento(1),a.globalMemento=a.getMemento(0),a._whenRestored=new Promise(function(e){return a.whenRestoredResolve=e}),a.registerListeners(),a}return a(t,e),Object.defineProperty(t.prototype,"onDidLayout",{get:function(){return this._onDidLayout.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidActiveGroupChange",{get:function(){return this._onDidActiveGroupChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidActivateGroup",{get:function(){return this._onDidActivateGroup.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidAddGroup",{get:function(){return this._onDidAddGroup.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidRemoveGroup",{get:function(){return this._onDidRemoveGroup.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidMoveGroup",{get:function(){return this._onDidMoveGroup.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidSizeConstraintsChange",{get:function(){return o.Event.any(this.onDidSetGridWidget.event,this._onDidSizeConstraintsChange.event)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidPreferredSizeChange",{get:function(){return this._onDidPreferredSizeChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidEditorPartOptionsChange",{get:function(){return this._onDidEditorPartOptionsChange.event},enumerable:!0,configurable:!0}),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration(function(t){return e.onConfigurationUpdated(t)}))},t.prototype.onConfigurationUpdated=function(e){v.impactsEditorPartOptions(e)&&this.handleChangedPartOptions()},t.prototype.handleChangedPartOptions=function(){var e=this._partOptions,t=v.getEditorPartOptions(this.configurationService.getValue());this.enforcedPartOptions.forEach(function(e){_.assign(t,e)}),this._partOptions=t,this._onDidEditorPartOptionsChange.fire({oldPartOptions:e,newPartOptions:t})},Object.defineProperty(t.prototype,"partOptions",{get:function(){return this._partOptions},enumerable:!0,configurable:!0}),t.prototype.enforcePartOptions=function(e){var t=this;return this.enforcedPartOptions.push(e),this.handleChangedPartOptions(),b.toDisposable(function(){t.enforcedPartOptions.splice(t.enforcedPartOptions.indexOf(e),1),t.handleChangedPartOptions()})},Object.defineProperty(t.prototype,"activeGroup",{get:function(){return this._activeGroup},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return d.values(this.groupViews)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.groupViews.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){if(this.gridWidget)return 0===this.gridWidget.orientation?1:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"whenRestored",{get:function(){return this._whenRestored},enumerable:!0,configurable:!0}),t.prototype.getGroups=function(e){var t=this;switch(void 0===e&&(e=0),e){case 0:return this.groups;case 1:var i=this.mostRecentActiveGroups.map(function(e){return t.getGroup(e)});return g.distinct(i.concat(this.groups));case 2:var n=[];return this.gridWidget&&this.fillGridNodes(n,this.gridWidget.getViews()),n}},t.prototype.fillGridNodes=function(e,t){var i=this;u.isGridBranchNode(t)?t.children.forEach(function(t){return i.fillGridNodes(e,t)}):e.push(t.view)},t.prototype.getGroup=function(e){return this.groupViews.get(e)},t.prototype.findGroup=function(e,t,i){return void 0===t&&(t=this.activeGroup),"number"==typeof e.direction?this.doFindGroupByDirection(e.direction,t,i):this.doFindGroupByLocation(e.location,t,i)},t.prototype.doFindGroupByDirection=function(e,t,i){var n=this,r=this.assertGroupView(t),o=this.gridWidget.getNeighborViews(r,this.toGridViewDirection(e),i);return o.sort(function(e,t){return n.mostRecentActiveGroups.indexOf(e.id)-n.mostRecentActiveGroups.indexOf(t.id)}),o[0]},t.prototype.doFindGroupByLocation=function(e,t,i){var n=this.assertGroupView(t),r=this.getGroups(2),o=r.indexOf(n);switch(e){case 0:return r[0];case 1:return r[r.length-1];case 2:var s=r[o+1];return!s&&i&&(s=this.doFindGroupByLocation(0,t)),s;case 3:var a=r[o-1];return!a&&i&&(a=this.doFindGroupByLocation(1,t)),a}},t.prototype.activateGroup=function(e){var t=this.assertGroupView(e);return this.doSetGroupActive(t),this._onDidActivateGroup.fire(t),t},t.prototype.getSize=function(e){var t=this.assertGroupView(e);return this.gridWidget.getViewSize(t)},t.prototype.setSize=function(e,t){var i=this.assertGroupView(e);this.gridWidget.resizeView(i,t)},t.prototype.arrangeGroups=function(e){this.count<2||this.gridWidget&&(1===e?this.gridWidget.distributeViewSizes():this.gridWidget.maximizeViewSize(this.activeGroup))},t.prototype.setGroupOrientation=function(e){if(this.gridWidget){var t=0===e?1:0;this.gridWidget.orientation!==t&&(this.gridWidget.orientation=t,this.resetPreferredSize())}},t.prototype.applyLayout=function(e){var t=this,i=this.shouldRestoreFocus(this.container),n=0;!function e(t){t.forEach(function(t){Array.isArray(t.groups)?e(t.groups):n++})}(e.groups);var r=this.getGroups(2);if(n=n&&t.mergeGroup(e,o)}),r=this.getGroups(2)}var s=this.activeGroup,a=u.createSerializedGrid({orientation:this.toGridViewOrientation(e.orientation,this.isTwoDimensionalGrid()?this.gridWidget.orientation:D.orthogonal(this.gridWidget.orientation)),groups:e.groups});this.doCreateGridControlWithState(a,s.id,r),this.doLayout(this.dimension),this.updateContainer(),this.resetPreferredSize(),this.getGroups(2).forEach(function(e){-1===r.indexOf(e)&&t._onDidAddGroup.fire(e)}),this.updateGroupLabels(),i&&this._activeGroup.focus()},t.prototype.shouldRestoreFocus=function(e){var t=document.activeElement;return t===document.body||r.isAncestor(t,e)},t.prototype.isTwoDimensionalGrid=function(){var e=this.gridWidget.getViews();return!!u.isGridBranchNode(e)&&e.children.some(function(e){return u.isGridBranchNode(e)})},t.prototype.addGroup=function(e,t,i){var n=this.assertGroupView(e),r=this.doAddGroup(n,t);return i&&i.activate&&this.doSetGroupActive(r),r},t.prototype.doAddGroup=function(e,t,i){var n=this.doCreateGroupView(i);return this.gridWidget.addView(n,"distribute",e,this.toGridViewDirection(t)),this.updateContainer(),this.resetPreferredSize(),this._onDidAddGroup.fire(n),this.updateGroupLabels(),n},t.prototype.doCreateGroupView=function(e){var t,i=this,n=this.getGroupLabel(this.count+1);t=e instanceof m.EditorGroupView?m.EditorGroupView.createCopy(e,this,n,this.instantiationService):C.isSerializedEditorGroup(e)?m.EditorGroupView.createFromSerialized(e,this,n,this.instantiationService):m.EditorGroupView.createNew(this,n,this.instantiationService),this.groupViews.set(t.id,t);var r=[];return r.push(t.onDidFocus(function(){i.doSetGroupActive(t)})),r.push(t.onDidGroupChange(function(e){5===e.kind&&i.updateContainer()})),o.Event.once(t.onWillDispose)(function(){r=b.dispose(r),i.groupViews.delete(t.id),i.doUpdateMostRecentActive(t)}),t},t.prototype.doSetGroupActive=function(e){if(this._activeGroup!==e){var t=this._activeGroup;if(this._activeGroup=e,this.doUpdateMostRecentActive(e,!0),t&&t.setActive(!1),e.setActive(!0),this.gridWidget){var i=this.gridWidget.getViewSize2(e);i.width!==e.minimumWidth&&i.height!==e.minimumHeight||this.arrangeGroups(0)}this._onDidActiveGroupChange.fire(e)}},t.prototype.doUpdateMostRecentActive=function(e,t){var i=this.mostRecentActiveGroups.indexOf(e.id);-1!==i&&this.mostRecentActiveGroups.splice(i,1),t&&this.mostRecentActiveGroups.unshift(e.id)},t.prototype.toGridViewDirection=function(e){switch(e){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3}},t.prototype.toGridViewOrientation=function(e,t){return"number"==typeof e?0===e?1:0:t},t.prototype.removeGroup=function(e){var t=this.assertGroupView(e);if(1!==this.groupViews.size)return t.isEmpty()?this.doRemoveEmptyGroup(t):void this.doRemoveGroupWithEditors(t)},t.prototype.doRemoveGroupWithEditors=function(e){var t,i=this.getGroups(1);t=this._activeGroup===e?i[1]:i[0],this.mergeGroup(e,t)},t.prototype.doRemoveEmptyGroup=function(e){var t=this.shouldRestoreFocus(this.container);if(this._activeGroup===e){var i=this.getGroups(1)[1];this.activateGroup(i)}this.gridWidget.removeView(e,"distribute"),e.dispose(),t&&this._activeGroup.focus(),this.updateGroupLabels(),this.updateContainer(),this.resetPreferredSize(),this._onDidRemoveGroup.fire(e)},t.prototype.moveGroup=function(e,t,i){var n=this.assertGroupView(e),r=this.assertGroupView(t);if(n.id===r.id)throw new Error("Cannot move group into its own");var o=this.shouldRestoreFocus(n.element);return this.gridWidget.moveView(n,"distribute",r,this.toGridViewDirection(i)),o&&n.focus(),this._onDidMoveGroup.fire(n),n},t.prototype.copyGroup=function(e,t,i){var n=this.assertGroupView(e),r=this.assertGroupView(t),o=this.shouldRestoreFocus(n.element),s=this.doAddGroup(r,i,n);return o&&s.focus(),s},t.prototype.mergeGroup=function(e,t,i){var n=this,r=this.assertGroupView(e),o=this.assertGroupView(t),s=i&&"number"==typeof i.index?i.index:o.count;return r.editors.forEach(function(e){var t=!r.isActive(e)||n._activeGroup!==r,a={index:s,inactive:t,preserveFocus:t};i&&0===i.mode?r.copyEditor(e,o,a):r.moveEditor(e,o,a),s++}),r.isEmpty()&&!r.disposed&&this.removeGroup(r),o},t.prototype.assertGroupView=function(e){if("number"==typeof e&&(e=this.getGroup(e)),!e)throw new Error("Invalid editor group provided!");return e},Object.defineProperty(t.prototype,"minimumWidth",{get:function(){return this.centeredLayoutWidget.minimumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximumWidth",{get:function(){return this.centeredLayoutWidget.maximumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimumHeight",{get:function(){return this.centeredLayoutWidget.minimumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximumHeight",{get:function(){return this.centeredLayoutWidget.maximumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preferredSize",{get:function(){return this._preferredSize||(this._preferredSize=new r.Dimension(this.gridWidget.minimumWidth,this.gridWidget.minimumHeight)),this._preferredSize},enumerable:!0,configurable:!0}),t.prototype.resetPreferredSize=function(){this._preferredSize=void 0,this._onDidPreferredSizeChange.fire()},Object.defineProperty(t.prototype,"gridSeparatorBorder",{get:function(){return this.theme.getColor(h.EDITOR_GROUP_BORDER)||this.theme.getColor(s.contrastBorder)||I.Color.transparent},enumerable:!0,configurable:!0}),t.prototype.updateStyles=function(){this.container.style.backgroundColor=this.getColor(s.editorBackground);var e={separatorBorder:this.gridSeparatorBorder,background:this.theme.getColor(h.EDITOR_PANE_BACKGROUND)||I.Color.transparent};this.gridWidget.style(e),this.centeredLayoutWidget.styles(e)},t.prototype.createContentArea=function(e,i){return this.element=e,this.container=document.createElement("div"),r.addClass(this.container,"content"),e.appendChild(this.container),this.doCreateGridControl(i),this.centeredLayoutWidget=this._register(new x.CenteredViewLayout(this.container,this.gridWidgetView,this.globalMemento[t.EDITOR_PART_CENTERED_VIEW_STORAGE_KEY])),this._register(this.instantiationService.createInstance(w.EditorDropTarget,this,this.container)),this.container},t.prototype.centerLayout=function(e){this.centeredLayoutWidget.activate(e),this._activeGroup.focus()},t.prototype.isLayoutCentered=function(){return this.centeredLayoutWidget.isActive()},t.prototype.doCreateGridControl=function(e){var t=this;if(e&&!e.restorePreviousState||this.doCreateGridControlWithPreviousState(),!this.gridWidget){var i=this.doCreateGroupView();this.doSetGridWidget(new u.SerializableGrid(i)),this.doSetGroupActive(i)}Promise.all(this.groups.map(function(e){return e.whenRestored})).finally(function(){return t.whenRestoredResolve()}),this.updateContainer()},t.prototype.doCreateGridControlWithPreviousState=function(){var e=this.workspaceMemento[t.EDITOR_PART_UI_STATE_STORAGE_KEY];if(e&&e.serializedGrid)try{this.mostRecentActiveGroups=e.mostRecentActiveGroups,this.doCreateGridControlWithState(e.serializedGrid,e.activeGroup),this._activeGroup.focus()}catch(t){this.handleGridRestoreError(t,e)}},t.prototype.handleGridRestoreError=function(e,t){k.onUnexpectedError(new Error("Error restoring editor grid widget: "+e+" (with state: "+JSON.stringify(t)+")")),this.gridWidget&&this.doSetGridWidget(),this.groupViews.forEach(function(e){return e.dispose()}),this.groupViews.clear(),this._activeGroup=void 0,this.mostRecentActiveGroups=[]},t.prototype.doCreateGridControlWithState=function(e,t,i){var n,r=this;n=i?i.slice(0):[];var o=[],s=u.SerializableGrid.deserialize(e,{fromJSON:function(e){var i;return i=n.length>0?n.shift():r.doCreateGroupView(e),o.push(i),i.id===t&&r.doSetGroupActive(i),i}},{styles:{separatorBorder:this.gridSeparatorBorder}});this._activeGroup||this.doSetGroupActive(o[0]),this.mostRecentActiveGroups.some(function(e){return!r.getGroup(e)})&&(this.mostRecentActiveGroups=o.map(function(e){return e.id})),this.doSetGridWidget(s)},t.prototype.doSetGridWidget=function(e){this.gridWidget&&this.gridWidget.dispose(),this.gridWidget=e,this.gridWidgetView.gridWidget=e,e&&(this._onDidSizeConstraintsChange.input=e.onDidChange),this.onDidSetGridWidget.fire(void 0)},t.prototype.updateContainer=function(){r.toggleClass(this.container,"empty",this.isEmpty())},t.prototype.updateGroupLabels=function(){var e=this;this.getGroups(2).forEach(function(t,i){t.setLabel(e.getGroupLabel(i+1))})},t.prototype.getGroupLabel=function(e){return E.localize(0,null,e)},t.prototype.isEmpty=function(){return 1===this.groupViews.size&&this._activeGroup.isEmpty()},t.prototype.layout=function(t,i){var n=e.prototype.layoutContents.call(this,t,i).contentSize;this.doLayout(n)},t.prototype.doLayout=function(e){this.dimension=e,this.centeredLayoutWidget.layout(this.dimension.width,this.dimension.height),this._onDidLayout.fire(e)},t.prototype.saveState=function(){if(this.gridWidget){var i={serializedGrid:this.gridWidget.serialize(),activeGroup:this._activeGroup.id,mostRecentActiveGroups:this.mostRecentActiveGroups};this.isEmpty()?delete this.workspaceMemento[t.EDITOR_PART_UI_STATE_STORAGE_KEY]:this.workspaceMemento[t.EDITOR_PART_UI_STATE_STORAGE_KEY]=i}var n=this.centeredLayoutWidget.state;this.centeredLayoutWidget.isDefault(n)?delete this.globalMemento[t.EDITOR_PART_CENTERED_VIEW_STORAGE_KEY]:this.globalMemento[t.EDITOR_PART_CENTERED_VIEW_STORAGE_KEY]=n,e.prototype.saveState.call(this)},t.prototype.dispose=function(){this.groupViews.forEach(function(e){return e.dispose()}),this.groupViews.clear(),this.gridWidget&&this.gridWidget.dispose(),e.prototype.dispose.call(this)},t.prototype.toJSON=function(){return{type:"workbench.parts.editor"}},t.EDITOR_PART_UI_STATE_STORAGE_KEY="editorpart.state",t.EDITOR_PART_CENTERED_VIEW_STORAGE_KEY="editorpart.centeredview",t=p([f(0,l.IInstantiationService),f(1,i.IThemeService),f(2,y.IConfigurationService),f(3,S.IStorageService),f(4,L.IWorkbenchLayoutService)],t)}(n.Part);t.EditorPart=O,M.registerSingleton(c.IEditorGroupsService,O)}),define(i[1206],n([0,1,521,19,29,1203,159,73,38,82,66,927,40,51,37,44,6,5,16,22,79,28,7,76,15,57,39,715]),function(e,t,i,n,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var O=function(e){function t(i,r,o,s,a,c,u,d,h,p){var f=e.call(this,i,r,o,s,a,c,u,d,n.Registry.as(l.Extensions.Viewlets),t.activeViewletSettingsKey,n.Registry.as(l.Extensions.Viewlets).getDefaultViewletId(),"sideBar","viewlet",I.SIDE_BAR_TITLE_FOREGROUND,"workbench.parts.sidebar",{hasTitle:!0,borderWidth:function(){return f.getColor(I.SIDE_BAR_BORDER)||f.getColor(E.contrastBorder)?1:0}})||this;return f.extensionService=p,f.minimumWidth=170,f.maximumWidth=Number.POSITIVE_INFINITY,f.minimumHeight=0,f.maximumHeight=Number.POSITIVE_INFINITY,f.snapSize=50,f.priority=1,f._onDidViewletDeregister=f._register(new C.Emitter),f.viewletRegistry=n.Registry.as(l.Extensions.Viewlets),f.sideBarFocusContextKey=v.SidebarFocusContext.bindTo(h),f.activeViewletContextKey=v.ActiveViewletContext.bindTo(h),f.registerListeners(),f}return a(t,e),Object.defineProperty(t.prototype,"onDidViewletRegister",{get:function(){return this.viewletRegistry.onDidRegister},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidViewletDeregister",{get:function(){return this._onDidViewletDeregister.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidViewletOpen",{get:function(){return C.Event.map(this.onDidCompositeOpen.event,function(e){return e.composite})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidViewletClose",{get:function(){return this.onDidCompositeClose.event},enumerable:!0,configurable:!0}),t.prototype.registerListeners=function(){var e=this;this._register(this.onDidViewletOpen(function(t){e.activeViewletContextKey.set(t.getId())})),this._register(this.onDidViewletClose(function(t){e.activeViewletContextKey.get()===t.getId()&&e.activeViewletContextKey.reset()})),this._register(this.registry.onDidDeregister(function(t){return r(e,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.getActiveViewlet().getId()!==t.id?[3,2]:[4,this.openViewlet(this.getDefaultViewletId())];case 1:e.sent(),e.label=2;case 2:return this.removeComposite(t.id),this._onDidViewletDeregister.fire(t),[2]}})})}))},t.prototype.create=function(t){var i=this;this.element=t,e.prototype.create.call(this,t);var n=this._register(D.trackFocus(t));this._register(n.onDidFocus(function(){return i.sideBarFocusContextKey.set(!0)})),this._register(n.onDidBlur(function(){return i.sideBarFocusContextKey.set(!1)}))},t.prototype.createTitleArea=function(t){var i=this,n=e.prototype.createTitleArea.call(this,t);return this._register(D.addDisposableListener(n,D.EventType.CONTEXT_MENU,function(e){i.onTitleAreaContextMenu(new k.StandardMouseEvent(e))})),n},t.prototype.updateStyles=function(){e.prototype.updateStyles.call(this);var t=this.getContainer();t.style.backgroundColor=this.getColor(I.SIDE_BAR_BACKGROUND),t.style.color=this.getColor(I.SIDE_BAR_FOREGROUND);var i=this.getColor(I.SIDE_BAR_BORDER)||this.getColor(E.contrastBorder),n=0===this.layoutService.getSideBarPosition();t.style.borderRightWidth=i&&n?"1px":null,t.style.borderRightStyle=i&&n?"solid":null,t.style.borderRightColor=n?i:null,t.style.borderLeftWidth=i&&!n?"1px":null,t.style.borderLeftStyle=i&&!n?"solid":null,t.style.borderLeftColor=n?null:i},t.prototype.layout=function(t,i){this.layoutService.isVisible("workbench.parts.sidebar")&&e.prototype.layout.call(this,t,i)},t.prototype.getActiveViewlet=function(){return this.getActiveComposite()},t.prototype.getLastActiveViewletId=function(){return this.getLastActiveCompositetId()},t.prototype.hideActiveViewlet=function(){this.hideActiveComposite()},t.prototype.openViewlet=function(e,t){var i=this;return"string"==typeof e&&this.getViewlet(e)?Promise.resolve(this.doOpenViewlet(e,t)):this.extensionService.whenInstalledExtensionsRegistered().then(function(){return"string"==typeof e&&i.getViewlet(e)?i.doOpenViewlet(e,t):null})},t.prototype.getViewlets=function(){return this.viewletRegistry.getViewlets().sort(function(e,t){return e.order-t.order})},t.prototype.getDefaultViewletId=function(){return this.viewletRegistry.getDefaultViewletId()},t.prototype.getViewlet=function(e){return this.getViewlets().filter(function(t){return t.id===e})[0]},t.prototype.doOpenViewlet=function(e,t){if(this.blockOpeningViewlet)return null;if(!this.layoutService.isVisible("workbench.parts.sidebar"))try{this.blockOpeningViewlet=!0,this.layoutService.setSideBarHidden(!1)}finally{this.blockOpeningViewlet=!1}return this.openComposite(e,t)},t.prototype.getTitleAreaDropDownAnchorAlignment=function(){return 0===this.layoutService.getSideBarPosition()?0:1},t.prototype.onTitleAreaContextMenu=function(e){var t=this,i=this.getActiveViewlet();if(i){var n=i?i.getContextMenuActions():[];if(n.length){var r={x:e.posx,y:e.posy};this.contextMenuService.showContextMenu({getAnchor:function(){return r},getActions:function(){return n},getActionItem:function(e){return t.actionItemProvider(e)},actionRunner:i.getActionRunner()})}}},t.prototype.toJSON=function(){return{type:"workbench.parts.sidebar"}},t.activeViewletSettingsKey="workbench.sidebar.activeviewletid",t=p([f(0,x.INotificationService),f(1,m.IStorageService),f(2,b.ITelemetryService),f(3,y.IContextMenuService),f(4,g.IWorkbenchLayoutService),f(5,_.IKeybindingService),f(6,S.IInstantiationService),f(7,w.IThemeService),f(8,L.IContextKeyService),f(9,M.IExtensionService)],t)}(c.CompositePart);t.SidebarPart=O;var T=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.layoutService=r,o}return a(t,e),t.prototype.run=function(){if(!this.layoutService.isVisible("workbench.parts.sidebar"))return Promise.resolve(this.layoutService.setSideBarHidden(!1));var e=this.viewletService.getActiveViewlet();return e&&e.focus(),Promise.resolve(!0)},t.ID="workbench.action.focusSideBar",t.LABEL=i.localize(0,null),t=p([f(2,h.IViewletService),f(3,g.IWorkbenchLayoutService)],t)}(s.Action);n.Registry.as(u.Extensions.WorkbenchActions).registerWorkbenchAction(new d.SyncActionDescriptor(T,T.ID,T.LABEL,{primary:2069}),"View: Focus into Side Bar",i.localize(1,null)),R.registerSingleton(h.IViewletService,O)}),define(i[1207],n([0,1,1206,28,40,37,51,44,6,16,15,128,70,66,57]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var y=function(e){function t(t,i,n,r,o,s,a,c,l,u,d){var h=e.call(this,t,i,n,r,o,s,a,c,l,u)||this;return h.codesandboxService=d,h}return a(t,e),t.prototype.openViewlet=function(e,t){switch(this.layoutService.isVisible("workbench.parts.sidebar")||this.layoutService.setSideBarHidden(!1),e){case g.VIEWLET_ID:this.codesandboxService.runSignal("workspace.setWorkspaceItem",{item:"files"});default:console.warn("Unknown viewlet id: "+e)}return Promise.resolve(null)},t=p([f(0,n.INotificationService),f(1,r.IStorageService),f(2,o.ITelemetryService),f(3,s.IContextMenuService),f(4,v.IWorkbenchLayoutService),f(5,c.IKeybindingService),f(6,l.IInstantiationService),f(7,u.IThemeService),f(8,d.IContextKeyService),f(9,m.IExtensionService),f(10,h.ICodeSandboxService)],t)}(i.SidebarPart);t.CodeSandboxSidebarPart=y}),define(i[1208],n([0,1,40,94,26,43,111,167,145,98,82,267,152,795,652,1231,779,102,760,85,761,39,756,773,776,759,805,117,1059,765,735,766,867,758,767,653,1172,1163,128,452,28,724,790,1133,226,863,120,6,16,18,293,777,22,79,438,870,262,794,1095,1207,349,269,109,317,51,859,19,115,34,165,441,37,748]),function(e,t,i,n,s,a,c,l,u,d,h,p,f,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F,W,B,V,z,H,K,U,j,G,q,Y,$,Q,X,Z,J,ee,te,ie,ne,re,oe,se,ae,ce,le,ue,de,he,pe,fe,ge,ve,me,ye,be,_e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadCodesandboxServices=function(e,t,Q){return r(this,void 0,void 0,function(){var r,ee,te,Se;return o(this,function(o){for(e.set(S.ILifecycleService,new L.SyncDescriptor(C.CodeSandboxLifecycleService)),e.set(a.IWindowService,new L.SyncDescriptor(P.WindowService,[{}])),e.set(G.IURLService,new L.SyncDescriptor(q.URLService)),e.set(ie.IMenubarService,new L.SyncDescriptor(ne.MenubarService)),e.set(be.ITelemetryService,new L.SyncDescriptor(_e.CodeSandboxTelemetryService)),r=w.getServices(),ee=0,te=r;ee .shadow.top {\n\t\t\t\tbox-shadow: "+a+" 0 6px 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-shell .monaco-scrollable-element > .shadow.left {\n\t\t\t\tbox-shadow: "+a+" 6px 0 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-shell .monaco-scrollable-element > .shadow.top.left {\n\t\t\t\tbox-shadow: "+a+" 6px 6px 6px -6px inset;\n\t\t\t}\n\t\t");var c=e.getColor(ee.scrollbarSliderBackground);c&&t.addRule("\n\t\t\t.monaco-shell .monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\tbackground: "+c+";\n\t\t\t}\n\t\t");var l=e.getColor(ee.scrollbarSliderHoverBackground);l&&t.addRule("\n\t\t\t.monaco-shell .monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\tbackground: "+l+";\n\t\t\t}\n\t\t");var u=e.getColor(ee.scrollbarSliderActiveBackground);u&&t.addRule("\n\t\t\t.monaco-shell .monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\tbackground: "+u+";\n\t\t\t}\n\t\t");var d=e.getColor(ee.focusBorder);d&&t.addRule('\n\t\t.monaco-shell [tabindex="0"]:focus,\n\t\t.monaco-shell .synthetic-focus,\n\t\t.monaco-shell select:focus,\n\t\t.monaco-shell .monaco-tree.focused.no-focused-item:focus:before,\n\t\t.monaco-shell .monaco-list:not(.element-focused):focus:before,\n\t\t.monaco-shell input[type="button"]:focus,\n\t\t.monaco-shell input[type="text"]:focus,\n\t\t.monaco-shell button:focus,\n\t\t.monaco-shell textarea:focus,\n\t\t.monaco-shell input[type="search"]:focus,\n\t\t.monaco-shell input[type="checkbox"]:focus {\n\t\t\toutline-color: '+d+";\n\t\t}\n\t\t"),e.type===Q.HIGH_CONTRAST&&t.addRule('\n\t\t.monaco-shell.hc-black [tabindex="0"]:focus,\n\t\t.monaco-shell.hc-black .synthetic-focus,\n\t\t.monaco-shell.hc-black select:focus,\n\t\t.monaco-shell.hc-black input[type="button"]:focus,\n\t\t.monaco-shell.hc-black input[type="text"]:focus,\n\t\t.monaco-shell.hc-black textarea:focus,\n\t\t.monaco-shell.hc-black input[type="checkbox"]:focus {\n\t\t\toutline-style: solid;\n\t\t\toutline-width: 1px;\n\t\t}\n\n\t\t.monaco-shell.hc-black .monaco-tree.focused.no-focused-item:focus:before {\n\t\t\toutline-width: 1px;\n\t\t\toutline-offset: -2px;\n\t\t}\n\n\t\t.monaco-shell.hc-black .synthetic-focus input {\n\t\t\tbackground: transparent; /* Search input focus fix when in high contrast */\n\t\t}\n\t\t')})}),define(i[1210],n([0,1,10,441,121,6,15,18,1208,148,32,94,721,91,64,78,377,45,762,19,73,38,29,1148,710,691]),function(e,t,i,n,s,c,l,u,d,h,p,f,g,v,m,y,b,_,S,C,w,E,I,x,D){"use strict";function k(e,t,i){var n=new x.WorkspaceService(t);return n.initialize(e).then(function(){return n},function(e){return i.error(e),n})}Object.defineProperty(t,"__esModule",{value:!0});var L=new g.MarkerService;function M(){return r(this,void 0,void 0,function(){var e,t,i,r,a,d;return o(this,function(o){switch(o.label){case 0:return e=new h.ServiceCollection,t=new D.InstantiationService(e,!0),i=new m.NullLogService,e.set(m.ILogService,i),r=t.createInstance(S.CodeSandboxEnvironmentService),e.set(_.IEnvironmentService,r),[4,k(F(),r,i)];case 1:return a=o.sent(),e.set(p.IWorkspaceContextService,a),e.set(c.IInstantiationService,t),e.set(u.IConfigurationService,a),e.set(f.IDialogService,new n.SimpleDialogService),e.set(s.IMarkerService,L),e.set(v.IProgressService,new n.SimpleProgressService),d=new b.ContextKeyService(a),e.set(l.IContextKeyService,d),e.set(y.IListService,new y.ListService(d)),[2,{serviceCollection:e,instantiationService:t}]}})})}function R(e,t,i){!function(e,t,i){r(this,void 0,void 0,function(){var e,n,r;return o(this,function(o){switch(o.label){case 0:return[4,M()];case 1:return e=o.sent(),n=e.serviceCollection,r=e.instantiationService,t?[4,d.loadCodesandboxServices(n,r,t)]:[3,3];case 2:o.sent(),o.label=3;case 3:return i({serviceCollection:n}),[2]}})})}(0,t,i)}t.create=R;var O=function(e,t,i){var n;return(n=function(t){function i(e,i){return t.call(this,e,i)||this}return a(i,t),i.prototype.run=function(){return e()},i}(I.Action)).ID=t,n.LABEL=i,n},T=C.Registry.as(w.Extensions.WorkbenchActions);function P(e){var t=e.id,i=e.label,n=e.commandLabel,r=e.run,o=e.category,s=void 0===o?"CodeSandbox":o,a=e.keybindings,c=void 0===a?{primary:0}:a;T.registerWorkbenchAction(new E.SyncActionDescriptor(O(r,t,n||i),t,i,c),i,s)}function A(e,t){var i=t.group,n=t.command,r=t.order;E.MenuRegistry.appendMenuItem(e,{group:i,command:n,order:r})}function N(e,t,i){e&&L.changeOne(t,e.uri,i)}function F(){var e=i.URI.file("/sandbox");return{id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82"+Math.floor(1e3*Math.random()),folder:e}}t.addWorkbenchActions=P,t.appendMenuItem=A,t.setModelMarkers=N,t.getDefaultWorkspace=F,t.createMonacoEditorAPI=function(){return{create:R,addWorkbenchActions:P,appendMenuItem:A,setModelMarkers:N,getDefaultWorkspace:F}}}),define(i[1211],n([0,1,419,1210,30,110]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=self;o.EDITOR_DEFAULTS.wrappingIndent=0,o.EDITOR_DEFAULTS.viewInfo.glyphMargin=!1,o.EDITOR_DEFAULTS.autoIndent=!1;var a=s.monaco||i.createMonacoBaseAPI();a.editor=n.createMonacoEditorAPI(),a.languages={registerDocumentFormattingEditProvider:function(e,t){return r.DocumentFormattingEditProviderRegistry.register(e,t)}},t.CancellationTokenSource=a.CancellationTokenSource,t.Emitter=a.Emitter,t.KeyCode=a.KeyCode,t.KeyMod=a.KeyMod,t.Position=a.Position,t.Range=a.Range,t.Selection=a.Selection,t.SelectionDirection=a.SelectionDirection,t.MarkerSeverity=a.MarkerSeverity,t.MarkerTag=a.MarkerTag,t.Promise=a.Promise,t.Uri=a.Uri,t.Token=a.Token,t.editor=a.editor,t.languages=a.languages,s.monaco=a,void 0!==s.require&&"function"==typeof s.require.config&&s.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})}),define(i[1212],n([0,1,628,2,91,82,193,13,267,28,29,5,39,740]),function(e,t,i,n,r,o,s,c,l,u,d,h,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(){function e(e,t,i,n){this._activityBar=e,this._viewletService=t,this._notificationService=i,this._statusbarService=n,this._stack=[]}return e.prototype.withProgress=function(e,t,i){var n=e.location;if("string"==typeof n)return this._viewletService.getViewlet(n)?this._withViewletProgress(n,t):Promise.reject(new Error("Bad progress location: "+n));switch(n){case 15:return this._withNotificationProgress(e,t,i);case 10:return this._withWindowProgress(e,t);case 1:return this._withViewletProgress("workbench.view.explorer",t);case 3:return this._withViewletProgress("workbench.view.scm",t);case 5:return this._withViewletProgress("workbench.view.extensions",t);default:return Promise.reject(new Error("Bad progress location: "+n))}},e.prototype._withWindowProgress=function(e,t){var i=this,n=[e,new r.Progress(function(){return i._updateWindowProgress()})],o=t(n[1]),s=setTimeout(function(){s=void 0,i._stack.unshift(n),i._updateWindowProgress(),Promise.all([c.timeout(150),o]).finally(function(){var e=i._stack.indexOf(n);i._stack.splice(e,1),i._updateWindowProgress()})},150);return o.finally(function(){return clearTimeout(s)})},e.prototype._updateWindowProgress=function(e){if(void 0===e&&(e=0),n.dispose(this._globalStatusEntry),e=0?(e.progress.total(100),e.progress.worked(t)):e.progress.infinite()},f=function(t,c){if(o){if("string"==typeof t){var f=void 0;f="string"==typeof e.title?e.title+": "+t:t,o.updateMessage(f)}"number"==typeof c&&p(o,c)}else o=function(t,o){if(t){var c={primary:[]};if(e.cancellable){var f=new(function(e){function t(){return e.call(this,"progress.cancel",i.localize(4,null),void 0,!0)||this}return a(t,e),t.prototype.run=function(){return"function"==typeof r&&r(),Promise.resolve(void 0)},t}(d.Action));l.push(f),c.primary.push(f)}var g=s._notificationService.notify({severity:u.Severity.Info,message:t,source:e.source,actions:c});return p(g,o),h.Event.once(g.onDidClose)(function(){n.dispose(l)}),g}}(t,c)};f(e.title);var g=t({report:function(e){f(e.message,e.increment)}});return Promise.all([c.timeout(800),g]).finally(function(){o&&o.close()}),g},e.prototype._withViewletProgress=function(e,t){var i,o=this,s=t(r.emptyProgress),a=this._viewletService.getProgressIndicator(e);a&&a.showWhile(s);var c=setTimeout(function(){c=void 0;var t=o._activityBar.showActivity(e,new l.ProgressBadge(function(){return""}),"progress-badge",100),n=Date.now();i={dispose:function(){var e=Date.now()-n;e<300?setTimeout(function(){return t.dispose()},300-e):t.dispose()}}},300),u=function(){clearTimeout(c),n.dispose(i)};return s.then(u,u),s},e=p([f(0,l.IActivityService),f(1,o.IViewletService),f(2,u.INotificationService),f(3,s.IStatusbarService)],e)}();t.ProgressService2=v,g.registerSingleton(r.IProgressService2,v,!0)}),define(i[173],n([0,1,6]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkspaceEditingService=i.createDecorator("workspaceEditingService")}),define(i[1214],n([0,1,11,2,10,495,31,103,6,67,109,193,43,32,55,295,57,50,173,52]),function(e,t,i,n,s,a,c,l,u,d,h,g,v,m,y,b,_,S,C,w){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var E=function(){function e(e,t,i,n,r,o,s,a,c){var l=this;this._searchService=t,this._contextService=i,this._textFileService=n,this._workspaceEditingService=r,this._statusbarService=o,this._windowService=s,this._instantiationService=a,this._labelService=c,this._toDispose=[],this._activeCancelTokens=Object.create(null),this._queryBuilder=this._instantiationService.createInstance(b.QueryBuilder),this._proxy=e.getProxy(w.ExtHostContext.ExtHostWorkspace),this._contextService.getCompleteWorkspace().then(function(e){return l._proxy.$initializeWorkspace(l.getWorkspaceData(e))}),this._contextService.onDidChangeWorkspaceFolders(this._onDidChangeWorkspace,this,this._toDispose),this._contextService.onDidChangeWorkbenchState(this._onDidChangeWorkspace,this,this._toDispose)}return e.prototype.dispose=function(){for(var e in n.dispose(this._toDispose),this._activeCancelTokens){this._activeCancelTokens[e].cancel()}},e.prototype.$updateWorkspaceFolders=function(e,t,i,n){var r=n.map(function(e){return{uri:s.URI.revive(e.uri),name:e.name}});return this._statusbarService.setStatusMessage(this.getStatusMessage(e,r.length,i),1e4),this._workspaceEditingService.updateFolders(t,i,r,!0)},e.prototype.getStatusMessage=function(e,t,i){var n=t>0,r=i>0;return n&&!r?1===t?a.localize(0,null,e):a.localize(1,null,e,t):r&&!n?1===i?a.localize(2,null,e):a.localize(3,null,e,i):a.localize(4,null,e)},e.prototype._onDidChangeWorkspace=function(){this._proxy.$acceptWorkspaceData(this.getWorkspaceData(this._contextService.getWorkspace()))},e.prototype.getWorkspaceData=function(e){return 1===this._contextService.getWorkbenchState()?null:{configuration:e.configuration||void 0,folders:e.folders,id:e.id,name:this._labelService.getWorkspaceLabel(e)}},e.prototype.$startFileSearch=function(e,t,n,r,o){var a=s.URI.revive(t),c=this._contextService.getWorkspace();if(!c.folders.length)return Promise.resolve(void 0);var l=this._queryBuilder.file(a?[a]:c.folders.map(function(e){return e.uri}),{maxResults:r,disregardExcludeSettings:!1===n||void 0,disregardSearchExcludeSettings:!0,disregardIgnoreFiles:!0,includePattern:e,excludePattern:"string"==typeof n?n:void 0,_reason:"startFileSearch"});return this._searchService.fileSearch(l,o).then(function(e){return e.results.map(function(e){return e.resource})},function(e){if(!i.isPromiseCanceledError(e))return Promise.reject(e)})},e.prototype.$startTextSearch=function(e,t,n,r){var o=this,s=this._contextService.getWorkspace().folders.map(function(e){return e.uri}),a=this._queryBuilder.text(e,s,t);a._reason="startTextSearch";return this._searchService.textSearch(a,r,function(e){e.results&&o._proxy.$handleTextSearchResult(e,n)}).then(function(e){return{limitHit:e.limitHit}},function(e){if(!i.isPromiseCanceledError(e))return Promise.reject(e)})},e.prototype.$checkExists=function(e,t){var n=this._instantiationService.createInstance(b.QueryBuilder),r=this._contextService.getWorkspace().folders.map(function(e){return e.uri}),o=n.file(r,{_reason:"checkExists",includePattern:e.join(", "),expandPatterns:!0,exists:!0});return this._searchService.fileSearch(o,t).then(function(e){return e.limitHit},function(e){if(!i.isPromiseCanceledError(e))return Promise.reject(e)})},e.prototype.$saveAll=function(e){return this._textFileService.saveAll(e).then(function(e){return e.results.every(function(e){return!0===e.success})})},e.prototype.$resolveProxy=function(e){return this._windowService.resolveProxy(e)},e=p([y.extHostNamedCustomer(w.MainContext.MainThreadWorkspace),f(1,h.ISearchService),f(2,m.IWorkspaceContextService),f(3,S.ITextFileService),f(4,C.IWorkspaceEditingService),f(5,g.IStatusbarService),f(6,v.IWindowService),f(7,u.IInstantiationService),f(8,d.ILabelService)],e)}();t.MainThreadWorkspace=E,c.CommandsRegistry.registerCommand("_workbench.enterWorkspace",function(e,t,i){return r(this,void 0,void 0,function(){var n,r,s,a;return o(this,function(o){switch(o.label){case 0:return n=e.get(C.IWorkspaceEditingService),r=e.get(_.IExtensionService),s=e.get(v.IWindowService),i&&i.length?[4,r.getExtensions()]:[3,2];case 1:if(a=o.sent(),i&&a.some(function(e){return i.some(function(t){return l.ExtensionIdentifier.equals(e.identifier,t)})}))return[2,s.openWindow([{uri:t,typeHint:"file"}],{args:{_:[],"disable-extension":i}})];o.label=2;case 2:return[2,n.enterWorkspace(t)]}})})})}),define(i[1215],n([0,1,115,19,6,382,1156,1120,985,1019,1020,1021,1022,1023,1024,1025,1026,439,1174,387,388,1029,1046,1030,1122,389,1032,1033,1035,1036,1037,1152,1038,1039,1040,1034,1085,1041,1042,1214]),function(e,t,i,n,r,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e){this.instantiationService=e,this.instantiationService.createInstance(o.JSONValidationExtensionPoint),this.instantiationService.createInstance(s.ColorExtensionPoint),this.instantiationService.createInstance(a.LanguageConfigurationFileHandler)}return e=p([f(0,r.IInstantiationService)],e)}();t.ExtensionPoints=c,n.Registry.as(i.Extensions.Workbench).registerWorkbenchContribution(c,1)}),define(i[453],n([0,1,498,32,173,21,82,36,81,31,26,67,87,129,42,46,94]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f,g,v){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ADD_ROOT_FOLDER_COMMAND_ID="addRootFolder",t.ADD_ROOT_FOLDER_LABEL=i.localize(0,null),t.PICK_WORKSPACE_FOLDER_COMMAND_ID="_workbench.pickWorkspaceFolder",l.CommandsRegistry.registerCommand({id:"workbench.action.files.openFileFolderInNewWindow",handler:function(e){return e.get(v.IFileDialogService).pickFileFolderAndOpen({forceNewWindow:!0})}}),l.CommandsRegistry.registerCommand({id:"_files.pickFolderAndOpen",handler:function(e,t){return e.get(v.IFileDialogService).pickFolderAndOpen({forceNewWindow:t})}}),l.CommandsRegistry.registerCommand({id:"workbench.action.files.openFolderInNewWindow",handler:function(e){return e.get(v.IFileDialogService).pickFolderAndOpen({forceNewWindow:!0})}}),l.CommandsRegistry.registerCommand({id:"workbench.action.files.openFileInNewWindow",handler:function(e){return e.get(v.IFileDialogService).pickFileAndOpen({forceNewWindow:!0})}}),l.CommandsRegistry.registerCommand({id:"workbench.action.openWorkspaceInNewWindow",handler:function(e){return e.get(v.IFileDialogService).pickWorkspaceAndOpen({forceNewWindow:!0})}}),l.CommandsRegistry.registerCommand({id:t.ADD_ROOT_FOLDER_COMMAND_ID,handler:function(e){var t=e.get(s.IViewletService),n=e.get(r.IWorkspaceEditingService),o=e.get(v.IFileDialogService);return o.showOpenDialog({openLabel:c.mnemonicButtonLabel(i.localize(1,null)),title:i.localize(2,null),canSelectFolders:!0,canSelectMany:!0,defaultUri:o.defaultFolderPath()}).then(function(e){return e&&e.length?n.addFolders(e.map(function(e){return{uri:e}})).then(function(){return t.openViewlet(t.getDefaultViewletId(),!0)}).then(function(){}):null})}}),l.CommandsRegistry.registerCommand(t.PICK_WORKSPACE_FOLDER_COMMAND_ID,function(e,t){var r=e.get(h.IQuickInputService),s=e.get(d.ILabelService),c=e.get(n.IWorkspaceContextService),l=e.get(f.IModelService),v=e.get(g.IModeService),m=c.getWorkspace().folders;if(m.length){var y=m.map(function(e){return{label:e.name,description:s.getUriLabel(o.dirname(e.uri),{relative:!0}),folder:e,iconClasses:p.getIconClasses(l,v,e.uri,u.FileKind.ROOT_FOLDER)}}),b=(t?t[0]:void 0)||Object.create(null);b.activeItem||(b.activeItem=y[0]),b.placeHolder||(b.placeHolder=i.localize(3,null)),"boolean"!=typeof b.matchOnDescription&&(b.matchOnDescription=!0);var _=(t?t[1]:void 0)||a.CancellationToken.None;return r.pick(y,b,_).then(function(e){if(e)return m[y.indexOf(e)]})}})}),define(i[454],n([0,1,29,497,43,32,173,98,24,31,453,94,28]),function(e,t,i,n,r,o,s,c,l,u,d,h,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.dialogService=n,r}return a(t,e),t.prototype.run=function(e,t){return this.dialogService.pickFileAndOpen({forceNewWindow:!1,telemetryExtraData:t})},t.ID="workbench.action.files.openFile",t.LABEL=n.localize(0,null),t=p([f(2,h.IFileDialogService)],t)}(i.Action);t.OpenFileAction=v;var m=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.dialogService=n,r}return a(t,e),t.prototype.run=function(e,t){return this.dialogService.pickFolderAndOpen({forceNewWindow:!1,telemetryExtraData:t})},t.ID="workbench.action.files.openFolder",t.LABEL=n.localize(1,null),t=p([f(2,h.IFileDialogService)],t)}(i.Action);t.OpenFolderAction=m;var y=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.dialogService=n,r}return a(t,e),t.prototype.run=function(e,t){return this.dialogService.pickFileFolderAndOpen({forceNewWindow:!1,telemetryExtraData:t})},t.ID="workbench.action.files.openFileFolder",t.LABEL=n.localize(2,null),t=p([f(2,h.IFileDialogService)],t)}(i.Action);t.OpenFileFolderAction=y;var b=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.commandService=n,r}return a(t,e),t.prototype.run=function(){return this.commandService.executeCommand(d.ADD_ROOT_FOLDER_COMMAND_ID)},t.ID="workbench.action.addRootFolder",t.LABEL=d.ADD_ROOT_FOLDER_LABEL,t=p([f(2,u.ICommandService)],t)}(i.Action);t.AddRootFolderAction=b;var _=function(e){function t(t,i,n,r,o){var s=e.call(this,t,i)||this;return s.workspaceEditingService=n,s.contextService=r,s.commandService=o,s}return a(t,e),t.prototype.run=function(){var e=this,t=this.contextService.getWorkbenchState();return 3===t||2===t?this.commandService.executeCommand(d.PICK_WORKSPACE_FOLDER_COMMAND_ID).then(function(t){return!t||e.workspaceEditingService.removeFolders([t.uri]).then(function(){return!0})}):Promise.resolve(!0)},t.ID="workbench.action.removeRootFolder",t.LABEL=n.localize(3,null),t=p([f(2,s.IWorkspaceEditingService),f(3,o.IWorkspaceContextService),f(4,u.ICommandService)],t)}(i.Action);t.GlobalRemoveRootFolderAction=_;var S=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.contextService=n,o.workspaceEditingService=r,o}return a(t,e),t.prototype.run=function(){var e=this;return this.workspaceEditingService.pickNewWorkspacePath().then(function(t){if(t)switch(e.contextService.getWorkbenchState()){case 1:case 2:var i=e.contextService.getWorkspace().folders.map(function(e){return{uri:e.uri}});return e.workspaceEditingService.createAndEnterWorkspace(i,t);case 3:return e.workspaceEditingService.saveAndEnterWorkspace(t)}})},t.ID="workbench.action.saveWorkspaceAs",t.LABEL=n.localize(4,null),t=p([f(2,o.IWorkspaceContextService),f(3,s.IWorkspaceEditingService)],t)}(i.Action);t.SaveWorkspaceAsAction=S;var C=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.dialogService=n,r}return a(t,e),t.prototype.run=function(e,t){return this.dialogService.pickWorkspaceAndOpen({telemetryExtraData:t})},t.ID="workbench.action.openWorkspace",t.LABEL=n.localize(5,null),t=p([f(2,h.IFileDialogService)],t)}(i.Action);t.OpenWorkspaceAction=C;var w=function(e){function t(t,i,n,r,o){var s=e.call(this,t,i)||this;return s.contextService=n,s.notificationService=r,s.windowService=o,s}return a(t,e),t.prototype.run=function(){return 1===this.contextService.getWorkbenchState()?(this.notificationService.info(n.localize(7,null)),Promise.resolve(void 0)):this.windowService.closeWorkspace()},t.ID="workbench.action.closeFolder",t.LABEL=n.localize(6,null),t=p([f(2,o.IWorkspaceContextService),f(3,g.INotificationService),f(4,r.IWindowService)],t)}(i.Action);t.CloseWorkspaceAction=w;var E=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.workspaceContextService=n,o.editorService=r,o.enabled=!!o.workspaceContextService.getWorkspace().configuration,o}return a(t,e),t.prototype.run=function(){var e=this.workspaceContextService.getWorkspace().configuration;return e?this.editorService.openEditor({resource:e}):Promise.resolve()},t.ID="workbench.action.openWorkspaceConfigFile",t.LABEL=n.localize(8,null),t=p([f(2,o.IWorkspaceContextService),f(3,l.IEditorService)],t)}(i.Action);t.OpenWorkspaceConfigFileAction=E;var I=function(e){function t(t,i,n,r,o,s){var a=e.call(this,t,i)||this;return a.workspaceContextService=n,a.workspaceEditingService=r,a.windowService=o,a.workspacesService=s,a}return a(t,e),t.prototype.run=function(){var e=this,t=this.workspaceContextService.getWorkspace().folders,i=this.windowService.getConfiguration().remoteAuthority;return this.workspacesService.createUntitledWorkspace(t,i).then(function(t){return e.workspaceEditingService.copyWorkspaceSettings(t).then(function(){return e.windowService.openWindow([{uri:t.configPath,typeHint:"file"}],{forceNewWindow:!0})})})},t.ID="workbench.action.duplicateWorkspaceInNewWindow",t.LABEL=n.localize(9,null),t=p([f(2,o.IWorkspaceContextService),f(3,s.IWorkspaceEditingService),f(4,r.IWindowService),f(5,c.IWorkspacesService)],t)}(i.Action);t.DuplicateWorkspaceInNewWindowAction=I}),define(i[207],n([0,1,547,10,34,43,6,82,32,70,102,50,116,78,31,15,26,80,75,74,54,12,65,13,428,173,139,33,28,48,24,56,67,11,21]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P){"use strict";function A(e,t,i,n,o,s,a,c){function l(e){return e?e.force=!0:e={force:!0},e}if(e&&(o.canHandleResource(e)||e.scheme===D.Schemas.untitled)){if(t||e.scheme===D.Schemas.untitled){var u,d;if(e.scheme===D.Schemas.untitled)u=s.getEncoding(e);else if(o.canHandleResource(e)){var h=a.models.get(e);u=h&&h.getEncoding()}var p=y.getCodeEditor(n.activeTextEditorWidget);if(p){var f=r.toResource(n.activeEditor||null,{supportSideBySide:!0});f&&(o.canHandleResource(f)||e.scheme===D.Schemas.untitled)&&f.toString()===e.toString()&&(d=p.saveViewState())}var g=void 0;return!t&&e.scheme===D.Schemas.untitled&&s.hasAssociatedFilePath(e)?g=a.save(e,i).then(function(t){return t?e.with({scheme:D.Schemas.file}):null}):(i=l(i),g=a.saveAs(e,void 0,i)),g.then(function(t){if(!t||t.toString()===e.toString())return!1;var i={resource:t,encoding:u,options:{pinned:!0,viewState:d||void 0}};return Promise.all(c.groups.map(function(t){return n.replaceEditors([{editor:{resource:e},replacement:i}],t)})).then(function(){return!0})})}var v=n.activeControl,m=v&&v.input&&v.input.getResource();return v&&m&&m.toString()===e.toString()&&v.group.pinEditor(v.input),i=l(i),a.save(e,i)}return Promise.resolve(!1)}function N(e,t,i,n,r){var o=new Map;return r.groups.forEach(function(e){var t=e.activeEditor&&e.activeEditor.getResource();e.editors.forEach(function(n){var r=n.getResource();r&&i.isDirty(r)&&(o.has(e.id)||o.set(e.id,[]),o.get(e.id).push({encoding:i.getEncoding(r),resource:r,options:{inactive:!t||t.toString()!==r.toString(),pinned:!0,preserveFocus:!0,index:e.getIndexOfEditor(n)}}))})}),n.saveAll(e).then(function(e){o.forEach(function(i,n){i.forEach(function(t){var i=e.results.filter(function(e){return e.success&&e.source.toString()===t.resource.toString()}).pop();i&&(t.resource=i.target)}),t.openEditors(i,n)})})}Object.defineProperty(t,"__esModule",{value:!0}),t.REVEAL_IN_OS_COMMAND_ID="revealFileInOS",t.REVEAL_IN_OS_LABEL=S.isWindows?i.localize(0,null):S.isMacintosh?i.localize(1,null):i.localize(2,null),t.REVEAL_IN_EXPLORER_COMMAND_ID="revealInExplorer",t.REVERT_FILE_COMMAND_ID="workbench.action.files.revert",t.OPEN_TO_SIDE_COMMAND_ID="explorer.openToSide",t.SELECT_FOR_COMPARE_COMMAND_ID="selectForCompare",t.COMPARE_SELECTED_COMMAND_ID="compareSelected",t.COMPARE_RESOURCE_COMMAND_ID="compareFiles",t.COMPARE_WITH_SAVED_COMMAND_ID="workbench.files.action.compareWithSaved",t.COPY_PATH_COMMAND_ID="copyFilePath",t.COPY_RELATIVE_PATH_COMMAND_ID="copyRelativeFilePath",t.SAVE_FILE_AS_COMMAND_ID="workbench.action.files.saveAs",t.SAVE_FILE_AS_LABEL=i.localize(3,null),t.SAVE_FILE_COMMAND_ID="workbench.action.files.save",t.SAVE_FILE_LABEL=i.localize(4,null),t.SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID="workbench.action.files.saveWithoutFormatting",t.SAVE_FILE_WITHOUT_FORMATTING_LABEL=i.localize(5,null),t.SAVE_ALL_COMMAND_ID="saveAll",t.SAVE_ALL_LABEL=i.localize(6,null),t.SAVE_ALL_IN_GROUP_COMMAND_ID="workbench.files.action.saveAllInGroup",t.SAVE_FILES_COMMAND_ID="workbench.action.files.saveFiles",t.OpenEditorsGroupContext=new g.RawContextKey("groupFocusedInOpenEditors",!1),t.DirtyEditorContext=new g.RawContextKey("dirtyEditor",!1),t.ResourceSelectedForCompareContext=new g.RawContextKey("resourceSelectedForCompare",!1),t.REMOVE_ROOT_FOLDER_COMMAND_ID="removeRootFolder",t.REMOVE_ROOT_FOLDER_LABEL=i.localize(7,null),t.openWindowCommand=function(e,t,i){var r=e.get(o.IWindowService);Array.isArray(t)?r.openWindow(t.map(function(e){return{uri:"string"==typeof e?n.URI.file(e):e}},{forceNewWindow:i})):t&&r.openWindow(t.urisToOpen,{forceNewWindow:t.forceNewWindow,diffMode:t.diffMode,addMode:t.addMode,forceReuseWindow:t.forceReuseWindow})},f.CommandsRegistry.registerCommand({id:t.REVERT_FILE_COMMAND_ID,handler:function(e,t){var n=e.get(M.IEditorService),r=e.get(d.ITextFileService),o=e.get(k.INotificationService),s=E.getMultiSelectedResources(t,e.get(p.IListService),n).filter(function(e){return e.scheme!==D.Schemas.untitled});return s.length?r.revertAll(s,{force:!0}).then(void 0,function(e){o.error(i.localize(8,null,s.map(function(e){return P.basename(e)}).join(", "),h.toErrorMessage(e,!1)))}):Promise.resolve(!0)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({weight:200,when:l.ExplorerFocusCondition,primary:2051,mac:{primary:259},id:t.OPEN_TO_SIDE_COMMAND_ID,handler:function(e,t){var i=e.get(M.IEditorService),n=e.get(p.IListService),r=e.get(v.IFileService),o=E.getMultiSelectedResources(t,n,i);return o.length?r.resolveFiles(o.map(function(e){return{resource:e}})).then(function(e){var t=e.filter(function(e){return e.success&&!e.stat.isDirectory}).map(function(e){return{resource:e.stat.resource}});return i.openEditors(t,M.SIDE_GROUP)}):Promise.resolve(!0)}});var F,W,B;function V(e,t,n,r){e.length?w.sequence(e.map(function(e){return function(){return t.showItemInFolder(e)}})):r.getWorkspace().folders.length?t.showItemInFolder(r.getWorkspace().folders[0].uri):n.info(i.localize(10,null))}function z(e,t,n,r,o){if(e.length){var s=S.isWindows?"\r\n":"\n",a=e.map(function(e){return o.getUriLabel(e,{relative:t,noPrefix:!0})}).join(s);n.writeText(a)}else r.info(i.localize(11,null))}b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:t.COMPARE_WITH_SAVED_COMMAND_ID,when:void 0,weight:200,primary:_.KeyChord(2089,34),handler:function(e,t){if(!F){var n=e.get(s.IInstantiationService),r=e.get(C.ITextModelService);F=n.createInstance(l.FileOnDiskContentProvider),r.registerTextModelContentProvider("showModifications",F)}var o=e.get(M.IEditorService),a=E.getResourceForCommand(t,e.get(p.IListService),o);if(a&&a.scheme===D.Schemas.file){var c=P.basename(a),u=i.localize(9,null,c,c);return o.openEditor({leftResource:a.with({scheme:"showModifications"}),rightResource:a,label:u}).then(function(){})}return Promise.resolve(!0)}}),f.CommandsRegistry.registerCommand({id:t.SELECT_FOR_COMPARE_COMMAND_ID,handler:function(e,i){var n=e.get(p.IListService);W=E.getResourceForCommand(i,n,e.get(M.IEditorService)),B||(B=t.ResourceSelectedForCompareContext.bindTo(e.get(g.IContextKeyService))),B.set(!0)}}),f.CommandsRegistry.registerCommand({id:t.COMPARE_SELECTED_COMMAND_ID,handler:function(e,t){var i=e.get(M.IEditorService),n=E.getMultiSelectedResources(t,e.get(p.IListService),i);return 2===n.length?i.openEditor({leftResource:n[0],rightResource:n[1]}):Promise.resolve(!0)}}),f.CommandsRegistry.registerCommand({id:t.COMPARE_RESOURCE_COMMAND_ID,handler:function(e,t){var i=e.get(M.IEditorService),n=e.get(p.IListService);return i.openEditor({leftResource:W,rightResource:E.getResourceForCommand(t,n,i)}).then(function(){})}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:t.REVEAL_IN_OS_COMMAND_ID,weight:200,when:L.EditorContextKeys.focus.toNegated(),primary:2608,win:{primary:1584},handler:function(e,t){V(E.getMultiSelectedResources(t,e.get(p.IListService),e.get(M.IEditorService)),e.get(o.IWindowsService),e.get(k.INotificationService),e.get(c.IWorkspaceContextService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({weight:200,when:void 0,primary:_.KeyChord(2089,48),id:"workbench.action.files.revealActiveFileInWindows",handler:function(e){var t=e.get(M.IEditorService).activeEditor;V(t&&t.getResource()?[t.getResource()]:[],e.get(o.IWindowsService),e.get(k.INotificationService),e.get(c.IWorkspaceContextService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({weight:200,when:L.EditorContextKeys.focus.toNegated(),primary:2593,win:{primary:1569},id:t.COPY_PATH_COMMAND_ID,handler:function(e,t){z(E.getMultiSelectedResources(t,e.get(p.IListService),e.get(M.IEditorService)),!1,e.get(u.IClipboardService),e.get(k.INotificationService),e.get(O.ILabelService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({weight:200,when:L.EditorContextKeys.focus.toNegated(),primary:3617,win:{primary:_.KeyChord(2089,3105)},id:t.COPY_RELATIVE_PATH_COMMAND_ID,handler:function(e,t){z(E.getMultiSelectedResources(t,e.get(p.IListService),e.get(M.IEditorService)),!0,e.get(u.IClipboardService),e.get(k.INotificationService),e.get(O.ILabelService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({weight:200,when:void 0,primary:_.KeyChord(2089,46),id:"workbench.action.files.copyPathOfActiveFile",handler:function(e){var t=e.get(M.IEditorService).activeEditor;z(t&&t.getResource()?[t.getResource()]:[],!1,e.get(u.IClipboardService),e.get(k.INotificationService),e.get(O.ILabelService))}}),f.CommandsRegistry.registerCommand({id:t.REVEAL_IN_EXPLORER_COMMAND_ID,handler:function(e,t){var i=e.get(a.IViewletService),n=e.get(c.IWorkspaceContextService),r=e.get(l.IExplorerService),o=E.getResourceForCommand(t,e.get(p.IListService),e.get(M.IEditorService));i.openViewlet(l.VIEWLET_ID,!1).then(function(e){if(n.isInsideWorkspace(o)){var t=e.getExplorerView();t&&(t.setExpanded(!0),r.select(o,!0).then(function(){return t.focus()},T.onUnexpectedError))}else{var i=e.getOpenEditorsView();i&&(i.setExpanded(!0),i.focus())}})}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:t.SAVE_FILE_AS_COMMAND_ID,weight:200,when:void 0,primary:3121,handler:function(e,t){var i=e.get(M.IEditorService);return A(t&&"from"in t&&"menu"===t.from?r.toResource(i.activeEditor):E.getResourceForCommand(t,e.get(p.IListService),i),!0,void 0,i,e.get(v.IFileService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({when:void 0,weight:200,primary:2097,id:t.SAVE_FILE_COMMAND_ID,handler:function(e,t){var i=e.get(M.IEditorService),n=E.getMultiSelectedResources(t,e.get(p.IListService),i);return 1===n.length?A(n[0],!1,void 0,i,e.get(v.IFileService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService)):N(n,i,e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({when:void 0,weight:200,primary:_.KeyChord(2089,49),win:{primary:_.KeyChord(2089,3121)},id:t.SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID,handler:function(e){var t=e.get(M.IEditorService),i=r.toResource(t.activeEditor,{supportSideBySide:!0});if(i)return A(i,!1,{skipSaveParticipants:!0},t,e.get(v.IFileService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),f.CommandsRegistry.registerCommand({id:t.SAVE_ALL_COMMAND_ID,handler:function(e){return N(!0,e.get(M.IEditorService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),f.CommandsRegistry.registerCommand({id:t.SAVE_ALL_IN_GROUP_COMMAND_ID,handler:function(e,t,i){var n,o=x.getMultiSelectedEditorContexts(i,e.get(p.IListService),e.get(R.IEditorGroupsService)),s=e.get(R.IEditorGroupsService);if(o.length){var a=e.get(v.IFileService);n=[],o.forEach(function(e){s.getGroup(e.groupId).editors.forEach(function(e){var t=r.toResource(e,{supportSideBySide:!0});t&&(t.scheme===D.Schemas.untitled||a.canHandleResource(t))&&n.push(t)})})}else n=!0;return N(n,e.get(M.IEditorService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),f.CommandsRegistry.registerCommand({id:t.SAVE_FILES_COMMAND_ID,handler:function(e){return N(!1,e.get(M.IEditorService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),f.CommandsRegistry.registerCommand({id:t.REMOVE_ROOT_FOLDER_COMMAND_ID,handler:function(e,t){var i=e.get(I.IWorkspaceEditingService),n=e.get(c.IWorkspaceContextService).getWorkspace(),r=E.getMultiSelectedResources(t,e.get(p.IListService),e.get(M.IEditorService)).filter(function(e){return n.folders.some(function(t){return t.uri.toString()===e.toString()})});return i.removeFolders(r)}})}),define(i[218],n([0,1,546,23,12,124,21,10,116,9,29,2,70,50,26,34,80,72,82,6,43,207,65,18,102,46,42,31,78,15,33,94,28,24,139,17,191,11,13,731]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F,W,B,V,z){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NEW_FILE_COMMAND_ID="explorer.newFile",t.NEW_FILE_LABEL=i.localize(0,null),t.NEW_FOLDER_COMMAND_ID="explorer.newFolder",t.NEW_FOLDER_LABEL=i.localize(1,null),t.TRIGGER_RENAME_LABEL=i.localize(2,null),t.MOVE_FILE_TO_TRASH_LABEL=i.localize(3,null),t.COPY_FILE_LABEL=i.localize(4,null),t.PASTE_FILE_LABEL=i.localize(5,null),t.FileCopiedContext=new O.RawContextKey("fileCopied",!1);var H=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r._notificationService=n,r}return a(t,e),Object.defineProperty(t.prototype,"notificationService",{get:function(){return this._notificationService},enumerable:!0,configurable:!0}),t.prototype.onError=function(e){"string"===e.message&&(e=e.message),this._notificationService.error(l.toErrorMessage(e,!1))},t.prototype.onErrorWithRetry=function(e,t){this._notificationService.prompt(A.Severity.Error,l.toErrorMessage(e,!1),[{label:i.localize(6,null),run:function(){return t()}}])},t}(d.Action);t.BaseErrorReportingAction=H;var K=c.URI.file("");function U(e,t){e&&(e.indexOf("/")>=0||e.indexOf("\\")>=0)&&t.refresh()}var j=function(e){function n(i,n,r,o,s){var a=e.call(this,"explorer.newFile",t.NEW_FILE_LABEL,n)||this;return a.getElement=i,a.explorerService=r,a.fileService=o,a.editorService=s,a.toDispose=[],a.class="explorer-action new-file",a.toDispose.push(a.explorerService.onDidChangeEditable(function(e){var t=a.explorerService.isEditable(e);a.enabled=!t})),a}return a(n,e),n.prototype.run=function(){var e,t=this,i=this.getElement();if((e=i?i.isDirectory?i:i.parent:this.explorerService.roots[0]).isReadonly)return Promise.reject(new Error("Parent folder is readonly."));var n=new B.ExplorerItem(K,e,!1);return e.fetchChildren(this.fileService).then(function(){e.addChild(n);var i=function(n){return t.fileService.createFile(s.joinPath(e.resource,n)).then(function(e){return U(n,t.explorerService),t.editorService.openEditor({resource:e.resource,options:{pinned:!0}})},function(e){t.onErrorWithRetry(e,function(){return i(n)})})};t.explorerService.setEditable(n,{validationMessage:function(e){return ue(n,e)},onFinish:function(r,o){e.removeChild(n),t.explorerService.setEditable(n,null),o?i(r):t.explorerService.select(e.resource).then(void 0,V.onUnexpectedError)}})})},n.prototype.dispose=function(){e.prototype.dispose.call(this),h.dispose(this.toDispose)},n.ID="workbench.files.action.createFileFromExplorer",n.LABEL=i.localize(7,null),n=p([f(1,A.INotificationService),f(2,g.IExplorerService),f(3,m.IFileService),f(4,N.IEditorService)],n)}(H);t.NewFileAction=j;var G=function(e){function n(i,n,r,o){var s=e.call(this,"explorer.newFolder",t.NEW_FOLDER_LABEL,n)||this;return s.getElement=i,s.fileService=r,s.explorerService=o,s.toDispose=[],s.class="explorer-action new-folder",s.toDispose.push(s.explorerService.onDidChangeEditable(function(e){var t=s.explorerService.isEditable(e);s.enabled=!t})),s}return a(n,e),n.prototype.run=function(){var e,t=this,i=this.getElement();if((e=i?i.isDirectory?i:i.parent:this.explorerService.roots[0]).isReadonly)return Promise.reject(new Error("Parent folder is readonly."));var n=new B.ExplorerItem(K,e,!0);return e.fetchChildren(this.fileService).then(function(){e.addChild(n);var i=function(n){return t.fileService.createFolder(s.joinPath(e.resource,n)).then(function(e){return U(n,t.explorerService),t.explorerService.select(e.resource,!0)},function(e){t.onErrorWithRetry(e,function(){return i(n)})})};t.explorerService.setEditable(n,{validationMessage:function(e){return ue(n,e)},onFinish:function(r,o){e.removeChild(n),t.explorerService.setEditable(n,null),o?i(r):t.explorerService.select(e.resource).then(void 0,V.onUnexpectedError)}})})},n.prototype.dispose=function(){e.prototype.dispose.call(this),h.dispose(this.toDispose)},n.ID="workbench.files.action.createFolderFromExplorer",n.LABEL=i.localize(8,null),n=p([f(1,A.INotificationService),f(2,m.IFileService),f(3,g.IExplorerService)],n)}(H);t.NewFolderAction=G;var q=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.editorService=n,r}return a(t,e),t.prototype.run=function(){return this.editorService.openEditor({options:{pinned:!0}})},t.ID="workbench.action.files.newUntitledFile",t.LABEL=i.localize(9,null),t=p([f(2,N.IEditorService)],t)}(d.Action);t.GlobalNewUntitledFileAction=q;var Y=function(e){function n(i,n,r,s,a,c,l){var u=e.call(this,"moveFileToTrash",t.MOVE_FILE_TO_TRASH_LABEL,s)||this;return u.elements=i,u.useTrash=n,u.fileService=r,u.dialogService=a,u.textFileService=c,u.configurationService=l,u.useTrash=n&&i.every(function(e){return!o.isUNC(e.resource.fsPath)}),u.enabled=u.elements&&u.elements.every(function(e){return!e.isReadonly}),u}return a(n,e),n.prototype.run=function(){var e,t=this;e=this.useTrash?r.isWindows?i.localize(10,null):i.localize(11,null):i.localize(12,null);var o=s.distinctParents(this.elements,function(e){return e.resource}),a=Promise.resolve(!0),c=this.textFileService.getDirty().filter(function(e){return o.some(function(t){return s.isEqualOrParent(e,t.resource,!r.isLinux)})});if(c.length){var u=void 0;u=o.length>1?i.localize(13,null):o[0].isDirectory?1===c.length?i.localize(14,null):i.localize(15,null,c.length):i.localize(16,null),a=this.dialogService.confirm({message:u,type:"warning",detail:i.localize(17,null),primaryButton:e}).then(function(e){return!!e.confirmed&&(t.skipConfirm=!0,t.textFileService.revertAll(c).then(function(){return!0}))})}return a.then(function(s){if(!s)return null;var a;if(t.skipConfirm||t.useTrash&&!1===t.configurationService.getValue(n.CONFIRM_DELETE_SETTING_KEY))a=Promise.resolve({confirmed:!0});else if(t.useTrash){var c=t.getMoveToTrashMessage(o);a=t.dialogService.confirm({message:c,detail:r.isWindows?i.localize(18,null):i.localize(19,null),primaryButton:e,checkbox:{label:i.localize(20,null)},type:"question"})}else{c=t.getDeleteMessage(o);a=t.dialogService.confirm({message:c,detail:i.localize(21,null),primaryButton:e,type:"warning"})}return a.then(function(e){var s=Promise.resolve(void 0);return e.confirmed&&!0===e.checkboxChecked&&(s=t.configurationService.updateValue(n.CONFIRM_DELETE_SETTING_KEY,!1,1)),s.then(function(){return e.confirmed?Promise.all(o.map(function(e){return t.fileService.del(e.resource,{useTrash:t.useTrash,recursive:!0})})).then(void 0,function(e){var n,o,s;return t.useTrash?(n=r.isWindows?i.localize(22,null):i.localize(23,null),o=i.localize(24,null),s=i.localize(25,null)):(n=l.toErrorMessage(e,!1),s=i.localize(26,null)),t.dialogService.confirm({message:n,detail:o,type:"warning",primaryButton:s}).then(function(e){return e.confirmed?(t.useTrash&&(t.useTrash=!1),t.skipConfirm=!0,t.run()):Promise.resolve(void 0)})}):Promise.resolve(null)})})})},n.prototype.getMoveToTrashMessage=function(e){return this.containsBothDirectoryAndFile(e)?P.getConfirmMessage(i.localize(27,null,e.length),e.map(function(e){return e.resource})):e.length>1?e[0].isDirectory?P.getConfirmMessage(i.localize(28,null,e.length),e.map(function(e){return e.resource})):P.getConfirmMessage(i.localize(29,null,e.length),e.map(function(e){return e.resource})):e[0].isDirectory?i.localize(30,null,e[0].name):i.localize(31,null,e[0].name)},n.prototype.getDeleteMessage=function(e){return this.containsBothDirectoryAndFile(e)?P.getConfirmMessage(i.localize(32,null,e.length),e.map(function(e){return e.resource})):e.length>1?e[0].isDirectory?P.getConfirmMessage(i.localize(33,null,e.length),e.map(function(e){return e.resource})):P.getConfirmMessage(i.localize(34,null,e.length),e.map(function(e){return e.resource})):e[0].isDirectory?i.localize(35,null,e[0].name):i.localize(36,null,e[0].name)},n.prototype.containsBothDirectoryAndFile=function(e){var t=e.filter(function(e){return e.isDirectory}),i=e.filter(function(e){return!e.isDirectory});return t.length>0&&i.length>0},n.CONFIRM_DELETE_SETTING_KEY="explorer.confirmDelete",n=p([f(2,m.IFileService),f(3,A.INotificationService),f(4,P.IDialogService),f(5,v.ITextFileService),f(6,x.IConfigurationService)],n)}(H),$=!1,Q=function(e){function n(i,r,o,s,a){var c=e.call(this,n.ID,t.PASTE_FILE_LABEL,o)||this;return c.element=i,c.fileService=r,c.editorService=s,c.explorerService=a,c.element||(c.element=c.explorerService.roots[0]),c}return a(n,e),n.prototype.run=function(e){var t=this;if(this.element.resource.toString()!==e.toString()&&s.isEqualOrParent(this.element.resource,e,!r.isLinux))throw new Error(i.localize(37,null));return this.fileService.resolveFile(e).then(function(i){var n=X(t.element.resource.toString()===e.toString()?t.element.parent:t.element.isDirectory?t.element:t.element.parent,{resource:e,isDirectory:i.isDirectory,allowOverwirte:$});return($?t.fileService.moveFile(e,n):t.fileService.copyFile(e,n)).then(function(e){if($&&t.explorerService.setToCopy([],!1),!e.isDirectory)return t.editorService.openEditor({resource:e.resource,options:{pinned:!0,preserveFocus:!0}})},function(e){return t.onError(e)})},function(e){t.onError(new Error(i.localize(38,null)))})},n.ID="filesExplorer.paste",n=p([f(1,m.IFileService),f(2,A.INotificationService),f(3,N.IEditorService),f(4,g.IExplorerService)],n)}(H);function X(e,t){for(var i=s.basenameOrAuthority(t.resource),n=s.joinPath(e.resource,i);!t.allowOverwirte&&e.root.find(n);)i=Z(i,!!t.isDirectory),n=s.joinPath(e.resource,i);return n}function Z(e,t){var i=RegExp("(.*[\\.\\-_])(\\d+)(\\..*)$");if(!t&&e.match(i))return e.replace(i,function(e,t,i,n){var r=parseInt(i);return r<1073741824?t+u.pad(r+1,i.length)+n:u.format("{0}{1}.1{2}",t,i,n)});var n=RegExp("(\\d+)([\\.\\-_].*)(\\..*)$");if(!t&&e.match(n))return e.replace(n,function(e,t,i,n){var r=parseInt(t);return r<1073741824?u.pad(r+1,t.length)+i+n:u.format("{0}{1}.1{2}",t,i,n)});var r=RegExp("(\\d+)(\\..*)$");if(!t&&e.match(r))return e.replace(r,function(e,t,i){var n=parseInt(t);return n<1073741824?u.pad(n+1,t.length)+i:u.format("{0}.1{1}",t,i)});var o=e.lastIndexOf(".");return!t&&o>=0?u.format("{0}.1{1}",e.substr(0,o),e.substr(o)):t&&e.match(/(\d+)$/)?e.replace(/(\d+)$/,function(e){for(var t=[],i=1;i255)return i.localize(56,null,de(t));return null}function de(e){return e&&e.length>255?e.substr(0,255)+"...":e}function he(e){return e?(e=u.trim(e,"\t"),e=u.rtrim(e,"."),e=u.rtrim(e,"/"),e=u.rtrim(e,"\\")):e}t.ShowOpenedFileInNewWindow=le,t.validateFileName=ue,t.getWellFormedFileName=he;var pe=function(e){function t(t,i,n,r,o,s){var a=e.call(this,t,i)||this;return a.editorService=n,a.instantiationService=r,a.textModelService=o,a.fileService=s,a.enabled=!0,a}return a(t,e),t.prototype.run=function(){var e=this,n=y.toResource(this.editorService.activeEditor||null,{supportSideBySide:!0});if(n&&(this.fileService.canHandleResource(n)||n.scheme===T.Schemas.untitled)){if(!this.registrationDisposal){var r=this.instantiationService.createInstance(fe);this.registrationDisposal=this.textModelService.registerTextModelContentProvider(t.SCHEME,r)}var o=s.basename(n),a=i.localize(58,null,o);return this.editorService.openEditor({leftResource:n.with({scheme:t.SCHEME}),rightResource:n,label:a}).finally(function(){e.registrationDisposal=h.dispose(e.registrationDisposal)})}return Promise.resolve(!0)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.registrationDisposal=h.dispose(this.registrationDisposal)},t.ID="workbench.files.action.compareWithClipboard",t.LABEL=i.localize(57,null),t.SCHEME="clipboardCompare",t=p([f(2,N.IEditorService),f(3,C.IInstantiationService),f(4,I.ITextModelService),f(5,m.IFileService)],t)}(d.Action);t.CompareWithClipboardAction=pe;var fe=function(){function e(e,t,i){this.clipboardService=e,this.modeService=t,this.modelService=i}return e.prototype.provideTextContent=function(e){var t=this.modelService.createModel(this.clipboardService.readText(),this.modeService.create("text/plain"),e);return Promise.resolve(t)},e=p([f(0,D.IClipboardService),f(1,k.IModeService),f(2,L.IModelService)],e)}();function ge(e){var t=e,i=t.getFocus(),n=i.length?i[0]:void 0,r=t.getSelection();return{stat:n,selection:r&&void 0!==n&&r.indexOf(n)>=0?r:[]}}function ve(e,t){var i=e.get(C.IInstantiationService),n=e.get(R.IListService),r=e.get(S.IViewletService),o=r.getActiveViewlet(),s=Promise.resolve(o);return o&&o.getId()===g.VIEWLET_ID||(s=r.openViewlet(g.VIEWLET_ID,!0)),s.then(function(e){var r=e.getExplorerView();if(r&&r.isBodyVisible()&&n.lastFocusedList){r.focus();var o=ge(n.lastFocusedList).stat;return i.createInstance(t,function(){return o}).run()}})}M.CommandsRegistry.registerCommand({id:t.NEW_FILE_COMMAND_ID,handler:function(e){return ve(e,j)}}),M.CommandsRegistry.registerCommand({id:t.NEW_FOLDER_COMMAND_ID,handler:function(e){return ve(e,G)}}),t.renameHandler=function(e){var t=e.get(R.IListService),i=e.get(g.IExplorerService),n=e.get(v.ITextFileService);if(t.lastFocusedList){var r=ge(t.lastFocusedList).stat;i.setEditable(r,{validationMessage:function(e){return ue(r,e)},onFinish:function(e,t){if(t){var o=r.parent.resource,a=s.joinPath(o,e);n.move(r.resource,a).then(function(){return U(e,i)},V.onUnexpectedError)}i.setEditable(r,null)}})}},t.moveFileToTrashHandler=function(e){var t=e.get(C.IInstantiationService),i=e.get(R.IListService);if(!i.lastFocusedList)return Promise.resolve();var n=ge(i.lastFocusedList),r=n.selection.length>1?n.selection:[n.stat];return t.createInstance(Y,r,!0).run()},t.deleteFileHandler=function(e){var t=e.get(C.IInstantiationService),i=e.get(R.IListService);if(!i.lastFocusedList)return Promise.resolve();var n=ge(i.lastFocusedList),r=n.selection.length>1?n.selection:[n.stat];return t.createInstance(Y,r,!1).run()},t.copyFileHandler=function(e){var t=e.get(R.IListService);if(t.lastFocusedList){var i=ge(t.lastFocusedList),n=e.get(g.IExplorerService),r=i.selection.length>1?i.selection:[i.stat];n.setToCopy(r,!1),$=!1}},t.cutFileHandler=function(e){var t=e.get(R.IListService);if(t.lastFocusedList){var i=ge(t.lastFocusedList),n=e.get(g.IExplorerService),r=i.selection.length>1?i.selection:[i.stat];n.setToCopy(r,!0),$=!0}},t.pasteFileHandler=function(e){var t=e.get(C.IInstantiationService),i=e.get(R.IListService),n=e.get(D.IClipboardService);if(!i.lastFocusedList)return Promise.resolve();var r=ge(i.lastFocusedList);return z.sequence(s.distinctParents(n.readResources(),function(e){return e}).map(function(e){var i=t.createInstance(Q,r.stat);return function(){return i.run(e)}}))}}),define(i[457],n([0,1,549,116,21,29,10,50,6,2,208,65,41,171,168,15,70,200,42,207,53,28,93,40,38,45,5,24,12]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONFLICT_RESOLUTION_CONTEXT="saveConflictResolutionContext",t.CONFLICT_RESOLUTION_SCHEME="conflictResolution";var O=i.localize(0,null),T=function(e){function o(i,n,r,o,s,a,c){var l=e.call(this)||this;l.notificationService=i,l.textFileService=n,l.editorService=o,l.instantiationService=a,l.storageService=c,l.messages=new g.ResourceMap,l.conflictResolutionContext=new y.RawContextKey(t.CONFLICT_RESOLUTION_CONTEXT,!1).bindTo(r);var u=l._register(a.createInstance(b.FileOnDiskContentProvider));return l._register(s.registerTextModelContentProvider(t.CONFLICT_RESOLUTION_SCHEME,u)),d.TextFileEditorModel.setSaveErrorHandler(l),l.registerListeners(),l}return a(o,e),o.prototype.registerListeners=function(){var e=this;this._register(this.textFileService.models.onModelSaved(function(t){return e.onFileSavedOrReverted(t.resource)})),this._register(this.textFileService.models.onModelReverted(function(t){return e.onFileSavedOrReverted(t.resource)})),this._register(this.editorService.onDidActiveEditorChange(function(){return e.onActiveEditorChanged()}))},o.prototype.onActiveEditorChanged=function(){var e,i=!1,n=this.editorService.activeEditor;if(n instanceof v.DiffEditorInput&&n.originalInput instanceof m.ResourceEditorInput&&n.modifiedInput instanceof _.FileEditorInput){var r=n.originalInput.getResource();r&&r.scheme===t.CONFLICT_RESOLUTION_SCHEME&&(i=!0,e=n.modifiedInput.getResource())}this.conflictResolutionContext.set(i),this.activeConflictResolutionResource=e},o.prototype.onFileSavedOrReverted=function(e){var t=this.messages.get(e);t&&(t.close(),this.messages.delete(e))},o.prototype.onSaveError=function(e,t){var o,s=e,a=t.getResource(),c={primary:[],secondary:[]};if(4===s.fileOperationResult)if(this.activeConflictResolutionResource&&this.activeConflictResolutionResource.toString()===t.getResource().toString()){if(this.storageService.getBoolean("learnMoreDirtyWriteError",0))return;o=O,c.primary.push(this.instantiationService.createInstance(N)),c.secondary.push(this.instantiationService.createInstance(F))}else o=i.localize(1,null,r.basename(a)),c.primary.push(this.instantiationService.createInstance(W,t));else{var l=6===s.fileOperationResult,d=l&&s.options&&s.options.overwriteReadonly,h=7===s.fileOperationResult;h||d?c.primary.push(this.instantiationService.createInstance(B,t,d)):l?c.primary.push(this.instantiationService.createInstance(V,t)):c.primary.push(this.instantiationService.createInstance(D.ExecuteCommandAction,C.SAVE_FILE_COMMAND_ID,i.localize(2,null))),c.primary.push(this.instantiationService.createInstance(D.ExecuteCommandAction,C.SAVE_FILE_AS_COMMAND_ID,C.SAVE_FILE_AS_LABEL)),c.primary.push(this.instantiationService.createInstance(D.ExecuteCommandAction,C.REVERT_FILE_COMMAND_ID,i.localize(3,null))),o=l?d?R.isWindows?i.localize(4,null,r.basename(a)):i.localize(5,null,r.basename(a)):i.localize(6,null,r.basename(a)):h?R.isWindows?i.localize(7,null,r.basename(a)):i.localize(8,null,r.basename(a)):i.localize(9,null,r.basename(a),n.toErrorMessage(e,!1))}var p=this.notificationService.notify({severity:E.Severity.Error,message:o,actions:c});L.Event.once(p.onDidClose)(function(){return u.dispose.apply(void 0,c.primary.concat(c.secondary))}),this.messages.set(t.getResource(),p)},o.prototype.dispose=function(){e.prototype.dispose.call(this),this.messages.clear()},o=p([f(0,E.INotificationService),f(1,c.ITextFileService),f(2,y.IContextKeyService),f(3,M.IEditorService),f(4,h.ITextModelService),f(5,l.IInstantiationService),f(6,x.IStorageService)],o)}(u.Disposable);t.SaveErrorHandler=T;var P=[];function A(){for(;P.length>0;){var e=P.pop();e&&e.close()}}var N=function(e){function t(t){var n=e.call(this,"workbench.files.action.resolveConflictLearnMore",i.localize(10,null))||this;return n.openerService=t,n}return a(t,e),t.prototype.run=function(){return this.openerService.open(s.URI.parse("https://go.microsoft.com/fwlink/?linkid=868264"))},t=p([f(0,I.IOpenerService)],t)}(o.Action),F=function(e){function t(t){var n=e.call(this,"workbench.files.action.resolveConflictLearnMoreDoNotShowAgain",i.localize(11,null))||this;return n.storageService=t,n}return a(t,e),t.prototype.run=function(e){return this.storageService.store("learnMoreDirtyWriteError",!0,0),e.dispose(),Promise.resolve()},t=p([f(0,x.IStorageService)],t)}(o.Action),W=function(e){function n(t,n,r,o,s,a){var c=e.call(this,"workbench.files.action.resolveConflict",i.localize(12,null))||this;return c.model=t,c.editorService=n,c.notificationService=r,c.instantiationService=o,c.storageService=s,c.environmentService=a,c}return a(n,e),n.prototype.run=function(){var e=this;if(!this.model.isDisposed()){var n=this.model.getResource(),o=r.basename(n),a=i.localize(13,null,o,o,this.environmentService.appNameLong);return this.editorService.openEditor({leftResource:s.URI.from({scheme:t.CONFLICT_RESOLUTION_SCHEME,path:n.fsPath}),rightResource:n,label:a,options:{pinned:!0}}).then(function(){if(!e.storageService.getBoolean("learnMoreDirtyWriteError",0)){var t={primary:[],secondary:[]};t.primary.push(e.instantiationService.createInstance(N)),t.secondary.push(e.instantiationService.createInstance(F));var i=e.notificationService.notify({severity:E.Severity.Info,message:O,actions:t});L.Event.once(i.onDidClose)(function(){return u.dispose.apply(void 0,t.primary.concat(t.secondary))}),P.push(i)}})}return Promise.resolve(!0)},n=p([f(1,M.IEditorService),f(2,E.INotificationService),f(3,l.IInstantiationService),f(4,x.IStorageService),f(5,k.IEnvironmentService)],n)}(o.Action),B=function(e){function t(t,n){var r=e.call(this,"workbench.files.action.saveElevated",n?R.isWindows?i.localize(14,null):i.localize(15,null):R.isWindows?i.localize(16,null):i.localize(17,null))||this;return r.model=t,r.triedToMakeWriteable=n,r}return a(t,e),t.prototype.run=function(){return this.model.isDisposed()||this.model.save({writeElevated:!0,overwriteReadonly:this.triedToMakeWriteable}),Promise.resolve(!0)},t}(o.Action),V=function(e){function t(t){var n=e.call(this,"workbench.files.action.overwrite",i.localize(18,null))||this;return n.model=t,n}return a(t,e),t.prototype.run=function(){return this.model.isDisposed()||this.model.save({overwriteReadonly:!0}),Promise.resolve(!0)},t}(o.Action);t.acceptLocalChangesCommand=function(e,t){var i=e.get(M.IEditorService),n=e.get(h.ITextModelService),r=e.get(S.IModelService),o=i.activeControl;if(o){var s=o.input,a=o.group;n.createModelReference(t).then(function(e){var t=e.object,n=t.createSnapshot();return A(),t.revert().then(function(){return r.updateModel(t.textEditorModel,w.createTextBufferFactoryFromSnapshot(n)),t.save().then(function(){return i.openEditor({resource:t.getResource()},a).then(function(){a.closeEditor(s),s.dispose(),e.dispose()})})})})}},t.revertLocalChangesCommand=function(e,t){var i=e.get(M.IEditorService),n=e.get(h.ITextModelService),r=i.activeControl;if(r){var o=r.input,s=r.group;n.createModelReference(t).then(function(e){var t=e.object;return A(),t.revert().then(function(){return i.openEditor({resource:t.getResource()},s).then(function(){s.closeEditor(o),o.dispose(),e.dispose()})})})}}}),define(i[1221],n([0,1,10,1112,31,38,15,139,19,73,54,12,457,207,218]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=n.localize(0,null),v=c.Registry.as(l.Extensions.WorkbenchActions);function m(e,t,i,n,a){r.CommandsRegistry.registerCommand(e,a),o.MenuRegistry.appendMenuItem(8,{command:{id:e,title:t,iconLocation:i},when:s.ContextKeyExpr.equals(h.CONFLICT_RESOLUTION_CONTEXT,!0),group:"navigation",order:n})}function y(e,t,i,n){o.MenuRegistry.appendMenuItem(0,{command:{id:e,title:t,category:i},when:n})}v.registerWorkbenchAction(new o.SyncActionDescriptor(f.SaveAllAction,f.SaveAllAction.ID,f.SaveAllAction.LABEL,{primary:void 0,mac:{primary:2609},win:{primary:u.KeyChord(2089,49)}}),"File: Save All",g),v.registerWorkbenchAction(new o.SyncActionDescriptor(f.GlobalCompareResourcesAction,f.GlobalCompareResourcesAction.ID,f.GlobalCompareResourcesAction.LABEL),"File: Compare Active File With...",g),v.registerWorkbenchAction(new o.SyncActionDescriptor(f.CollapseExplorerView,f.CollapseExplorerView.ID,f.CollapseExplorerView.LABEL),"File: Collapse Folders in Explorer",g),v.registerWorkbenchAction(new o.SyncActionDescriptor(f.GlobalNewUntitledFileAction,f.GlobalNewUntitledFileAction.ID,f.GlobalNewUntitledFileAction.LABEL,{primary:2092}),"File: New Untitled File",g),v.registerWorkbenchAction(new o.SyncActionDescriptor(f.ToggleAutoSaveAction,f.ToggleAutoSaveAction.ID,f.ToggleAutoSaveAction.LABEL),"File: Toggle Auto Save",g),m("workbench.files.action.acceptLocalChanges",n.localize(1,null),{light:i.URI.parse(e.toUrl("vs/workbench/contrib/files/browser/media/check.svg")),dark:i.URI.parse(e.toUrl("vs/workbench/contrib/files/browser/media/check-inverse.svg"))},-10,h.acceptLocalChangesCommand),m("workbench.files.action.revertLocalChanges",n.localize(2,null),{light:i.URI.parse(e.toUrl("vs/workbench/contrib/files/browser/media/undo.svg")),dark:i.URI.parse(e.toUrl("vs/workbench/contrib/files/browser/media/undo-inverse.svg"))},-9,h.revertLocalChangesCommand),o.MenuRegistry.appendMenuItem(15,{group:"1_new",command:{id:f.GlobalNewUntitledFileAction.ID,title:n.localize(3,null)},order:1}),o.MenuRegistry.appendMenuItem(15,{group:"4_save",command:{id:p.SAVE_FILE_COMMAND_ID,title:n.localize(4,null)},order:1}),o.MenuRegistry.appendMenuItem(15,{group:"4_save",command:{id:p.SAVE_FILE_AS_COMMAND_ID,title:n.localize(5,null)},order:2}),o.MenuRegistry.appendMenuItem(15,{group:"4_save",command:{id:f.SaveAllAction.ID,title:n.localize(6,null)},order:3}),o.MenuRegistry.appendMenuItem(15,{group:"6_close",command:{id:p.REVERT_FILE_COMMAND_ID,title:n.localize(8,null),precondition:p.DirtyEditorContext},order:1}),o.MenuRegistry.appendMenuItem(15,{group:"6_close",command:{id:a.CLOSE_EDITOR_COMMAND_ID,title:n.localize(9,null)},order:2}),y(p.COPY_PATH_COMMAND_ID,{value:n.localize(10,null),original:"File: Copy Path of Active File"},g),y(p.COPY_RELATIVE_PATH_COMMAND_ID,{value:n.localize(11,null),original:"File: Copy Relative Path of Active File"},g),y(p.SAVE_FILE_COMMAND_ID,{value:p.SAVE_FILE_LABEL,original:"File: Save"},g),y(p.SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID,{value:p.SAVE_FILE_WITHOUT_FORMATTING_LABEL,original:"File: Save without Formatting"},g),y(p.SAVE_ALL_IN_GROUP_COMMAND_ID,{value:n.localize(12,null),original:"File: Save All in Group"},g),y(p.SAVE_FILES_COMMAND_ID,{value:n.localize(13,null),original:"File: Save All Files"},g),y(p.REVERT_FILE_COMMAND_ID,{value:n.localize(14,null),original:"File: Revert File"},g),y(p.COMPARE_WITH_SAVED_COMMAND_ID,{value:n.localize(15,null),original:"File: Compare Active File with Saved"},g),y(p.REVEAL_IN_OS_COMMAND_ID,{value:p.REVEAL_IN_OS_LABEL,original:d.isWindows?"File: Reveal in Explorer":d.isMacintosh?"File: Reveal in Finder":"File: Open Containing Folder"},g),y(p.SAVE_FILE_AS_COMMAND_ID,{value:p.SAVE_FILE_AS_LABEL,original:"File: Save As..."},g),y(a.CLOSE_EDITOR_COMMAND_ID,{value:n.localize(16,null),original:"View: Close Editor"},n.localize(17,null))}),define(i[1222],n([0,1,550,11,12,7,194,6,454,58,16,44,51,32,18,244,144,22,79]),function(e,t,i,n,r,o,s,c,u,d,h,g,v,m,y,b,_,S,C){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var w=function(e){function t(t,n,r,o,s,a,c){var u=e.call(this,l({},t,{ariaHeaderLabel:i.localize(1,null)}),o,s,c)||this;return u.themeService=n,u.instantiationService=r,u.contextService=a,u.contextService.onDidChangeWorkbenchState(function(){return u.setLabels()}),u}return a(t,e),t.prototype.renderHeader=function(e){var t=document.createElement("div");o.addClass(t,"title"),e.appendChild(t),this.titleElement=document.createElement("span"),this.titleElement.textContent=name,t.appendChild(this.titleElement)},t.prototype.renderBody=function(e){var t=this;o.addClass(e,"explorer-empty-view"),e.tabIndex=0;var i=document.createElement("div");o.addClass(i,"section"),e.appendChild(i),this.messageElement=document.createElement("p"),i.appendChild(this.messageElement),this.button=new s.Button(i),d.attachButtonStyler(this.button,this.themeService),this.disposables.push(this.button.onDidClick(function(){if(t.actionRunner){var e=3===t.contextService.getWorkbenchState()?u.AddRootFolderAction:r.isMacintosh?u.OpenFileFolderAction:u.OpenFolderAction,i=t.instantiationService.createInstance(e,e.ID,e.LABEL);t.actionRunner.run(i).then(function(){i.dispose()},function(e){i.dispose(),n.onUnexpectedError(e)})}})),this.disposables.push(new _.DragAndDropObserver(e,{onDrop:function(i){var n=t.themeService.getTheme().getColor(C.SIDE_BAR_BACKGROUND);e.style.backgroundColor=n?n.toString():"",t.instantiationService.createInstance(_.ResourcesDropHandler,{allowWorkspaceOpen:!0}).handleDrop(i,function(){},function(e){})},onDragEnter:function(i){var n=t.themeService.getTheme().getColor(S.listDropBackground);e.style.backgroundColor=n?n.toString():""},onDragEnd:function(){var i=t.themeService.getTheme().getColor(C.SIDE_BAR_BACKGROUND);e.style.backgroundColor=i?i.toString():""},onDragLeave:function(){var i=t.themeService.getTheme().getColor(C.SIDE_BAR_BACKGROUND);e.style.backgroundColor=i?i.toString():""},onDragOver:function(e){e.dataTransfer.dropEffect="copy"}})),this.setLabels()},t.prototype.setLabels=function(){3===this.contextService.getWorkbenchState()?(this.messageElement.textContent=i.localize(2,null),this.button&&(this.button.label=i.localize(3,null)),this.titleElement.textContent=t.NAME):(this.messageElement.textContent=i.localize(4,null),this.button&&(this.button.label=i.localize(5,null)),this.titleElement.textContent=this.title)},t.prototype.layoutBody=function(e){},t.prototype.focusBody=function(){this.button&&this.button.element.focus()},t.ID="workbench.explorer.emptyView",t.NAME=i.localize(0,null),t=p([f(1,h.IThemeService),f(2,c.IInstantiationService),f(3,g.IKeybindingService),f(4,v.IContextMenuService),f(5,m.IWorkspaceContextService),f(6,y.IConfigurationService)],t)}(b.ViewletPanel);t.EmptyView=w}),define(i[1223],n([0,1,7,119,91,28,26,66,32,2,51,16,18,70,21,126,553,58,315,25,35,191,184,144,6,134,33,177,12,94,50,43,173,13,24,218,84]),function(e,t,i,n,s,a,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F,W,B,V){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var z=function(){function e(){}return e.prototype.getHeight=function(t){return e.ITEM_HEIGHT},e.prototype.getTemplateId=function(e){return K.ID},e.ITEM_HEIGHT=22,e}();t.ExplorerDelegate=z;var H=function(){function e(e,t,i,n){this.progressService=e,this.notificationService=t,this.layoutService=i,this.fileService=n}return e.prototype.hasChildren=function(e){return Array.isArray(e)||e.isDirectory},e.prototype.getChildren=function(e){var t=this;if(Array.isArray(e))return Promise.resolve(e);var i=e.fetchChildren(this.fileService).then(void 0,function(i){return e instanceof I.ExplorerItem&&e.isRoot||t.notificationService.error(i),[]});return this.progressService.showWhile(i,this.layoutService.isRestored()?800:3200),i},e=p([f(0,s.IProgressService),f(1,a.INotificationService),f(2,l.IWorkbenchLayoutService),f(3,c.IFileService)],e)}();t.ExplorerDataSource=H;var K=function(){function e(e,t,i,n,r,o){var s=this;this.labels=e,this.updateWidth=t,this.contextViewService=i,this.themeService=n,this.configurationService=r,this.explorerService=o,this.config=this.configurationService.getValue(),this.configListener=this.configurationService.onDidChangeConfiguration(function(e){e.affectsConfiguration("explorer")&&(s.config=s.configurationService.getValue())})}return Object.defineProperty(e.prototype,"templateId",{get:function(){return e.ID},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return{elementDisposable:d.Disposable.None,label:this.labels.create(e,{supportHighlights:!0}),container:e}},e.prototype.renderElement=function(e,t,i){var n=this;i.elementDisposable.dispose();var r=e.element,o=this.explorerService.getEditableData(r);if(o)i.label.element.style.display="none",i.elementDisposable=this.renderInputBox(i.container,r,o);else{i.label.element.style.display="flex";var s=["explorer-item"];this.explorerService.isCut(r)&&s.push("cut"),i.label.setFile(r.resource,{hidePath:!0,fileKind:r.isRoot?c.FileKind.ROOT_FOLDER:r.isDirectory?c.FileKind.FOLDER:c.FileKind.FILE,extraClasses:s,fileDecorations:this.config.explorer.decorations,matches:V.createMatches(e.filterData)}),i.elementDisposable=i.label.onDidRender(function(){n.updateWidth(r)})}},e.prototype.renderInputBox=function(e,t,n){var s=this,a=this.labels.create(e),l={hidePath:!0,hideLabel:!0,fileKind:t.isRoot?c.FileKind.ROOT_FOLDER:t.isDirectory?c.FileKind.FOLDER:c.FileKind.FILE,extraClasses:["explorer-item","explorer-item-edited"]},u=t.name?y.dirname(t.resource):t.resource,h=t.name||"";a.setFile(y.joinPath(u,h||" "),l);var p=new b.InputBox(a.element,this.contextViewService,{validationOptions:{validation:function(e){var t=n.validationMessage(e);return t?{content:t,formatContent:!0,type:3}:null}},ariaLabel:_.localize(0,null)}),f=S.attachInputBoxStyler(p,this.themeService);p.onDidChange(function(e){a.setFile(y.joinPath(u,e||" "),l)});var g=h.lastIndexOf(".");p.value=h,p.focus(),p.select({start:0,end:g>0&&!t.isDirectory?g:h.length});var v=C.once(function(t){return r(s,void 0,void 0,function(){var i;return o(this,function(r){return a.element.style.display="none",i=p.value,d.dispose(E),e.removeChild(a.element),n.onFinish(i,t),[2]})})}),m=!0;setTimeout(function(){return m=!1},0);var w=i.addDisposableListener(p.inputElement,i.EventType.BLUR,function(){m||v(p.isInputValid())}),E=[p,i.addStandardDisposableListener(p.inputElement,i.EventType.KEY_DOWN,function(e){e.equals(3)?p.validate()&&v(!0):e.equals(9)&&v(!1)}),w,a,f];return d.toDisposable(function(){m||(w.dispose(),v(p.isInputValid()))})},e.prototype.disposeElement=function(e,t,i){i.elementDisposable.dispose()},e.prototype.disposeTemplate=function(e){e.elementDisposable.dispose(),e.label.dispose()},e.prototype.dispose=function(){this.configListener.dispose()},e.ID="file",e=p([f(2,h.IContextViewService),f(3,g.IThemeService),f(4,v.IConfigurationService),f(5,m.IExplorerService)],e)}();t.FilesRenderer=K;var U=function(){function e(){}return e.prototype.getAriaLabel=function(e){return e.name},e}();t.ExplorerAccessibilityProvider=U;var j=function(){function e(e,t,i){var n=this;this.contextService=e,this.configurationService=t,this.explorerService=i,this.hiddenExpressionPerRoot=new Map,this.workspaceFolderChangeListener=this.contextService.onDidChangeWorkspaceFolders(function(){return n.updateConfiguration()})}return e.prototype.updateConfiguration=function(){var e=this,t=!1;return this.contextService.getWorkspace().folders.forEach(function(i){var r=e.configurationService.getValue({resource:i.uri}),o=r&&r.files&&r.files.exclude||Object.create(null);if(!t){var s=e.hiddenExpressionPerRoot.get(i.uri.toString());t=!s||!w.equals(s.original,o)}var a=w.deepClone(o);e.hiddenExpressionPerRoot.set(i.uri.toString(),{original:a,parsed:n.parse(a)})}),t},e.prototype.filter=function(e,t){if(0===t)return!1;if(this.explorerService.getEditableData(e)||e.isRoot)return!0;var i=this.hiddenExpressionPerRoot.get(e.root.resource.toString());return!i||!i.parsed(E.normalize(E.relative(e.root.resource.path,e.resource.path)),e.name,function(t){return!!e.parent.getChild(t)})},e.prototype.dispose=function(){this.workspaceFolderChangeListener=d.dispose(this.workspaceFolderChangeListener)},e=p([f(0,u.IWorkspaceContextService),f(1,v.IConfigurationService),f(2,m.IExplorerService)],e)}();t.FilesFilter=j;var G=function(){function e(e,t){this.explorerService=e,this.contextService=t}return e.prototype.compare=function(e,t){if(e.isRoot)return t.isRoot?this.contextService.getWorkspaceFolder(e.resource).index-this.contextService.getWorkspaceFolder(t.resource).index:-1;if(t.isRoot)return 1;var i=this.explorerService.sortOrder;switch(i){case"type":if(e.isDirectory&&!t.isDirectory)return-1;if(t.isDirectory&&!e.isDirectory)return 1;if(e.isDirectory&&t.isDirectory)return x.compareFileNames(e.name,t.name);break;case"filesFirst":if(e.isDirectory&&!t.isDirectory)return 1;if(t.isDirectory&&!e.isDirectory)return-1;break;case"mixed":break;default:if(e.isDirectory&&!t.isDirectory)return-1;if(t.isDirectory&&!e.isDirectory)return 1}switch(i){case"type":return x.compareFileExtensions(e.name,t.name);case"modified":return e.mtime!==t.mtime?e.mtime1?String(e.length):e[0].name},e.prototype.onDragStart=function(e,t){var i=e.elements;if(i&&i.length){this.instantiationService.invokeFunction(D.fillResourceDataTransfers,i,t);var n=i.filter(function(e){return!e.isDirectory&&e.resource.scheme===M.Schemas.file}).map(function(e){return e.resource.fsPath});n.length&&t.dataTransfer.setData(D.CodeDataTransfers.FILES,JSON.stringify(n))}},e.prototype.drop=function(e,t,i,n){t||(t=this.explorerService.roots[this.explorerService.roots.length-1]),t.isDirectory||(t=t.parent),t.isReadonly||(e instanceof R.DesktopDragAndDropData?this.handleExternalDrop(e,t,n):this.handleExplorerDrop(e,t,n))},e.prototype.handleExternalDrop=function(e,t,i){var n=this,r=D.extractResources(i,!0);return this.fileService.resolveFiles(r).then(function(e){n.windowService.focusWindow();var i=e.filter(function(e){return e.success&&e.stat.isDirectory}).map(function(e){return{uri:e.stat.resource}});if(i.length>0){var o=Promise.resolve({confirmed:!0});return 3!==n.contextService.getWorkbenchState()&&(o=n.dialogService.confirm({message:i.length>1?_.localize(1,null):_.localize(2,null),type:"question",primaryButton:i.length>1?_.localize(3,null):_.localize(4,null)})),o.then(function(e){if(e.confirmed)return n.workspaceEditingService.addFolders(i)})}if(t instanceof I.ExplorerItem)return n.addResources(t,r.map(function(e){return e.resource}))})},e.prototype.addResources=function(e,t){var i=this;return t&&t.length>0?this.fileService.resolveFile(e.resource).then(function(n){var r=new Set;n.children.forEach(function(e){r.add(O.isLinux?e.name:e.name.toLowerCase())});var o=Promise.resolve({confirmed:!0});if(t.some(function(e){return r.has(y.hasToIgnoreCase(e)?y.basename(e).toLowerCase():y.basename(e))})){var s={message:_.localize(5,null),detail:_.localize(6,null),primaryButton:_.localize(7,null),type:"warning"};o=i.dialogService.confirm(s)}return o.then(function(n){if(n.confirmed){var r=[];return t.forEach(function(n){r.push(function(){var r=n,o=y.joinPath(e.resource,y.basename(r)),s=Promise.resolve(null);return i.textFileService.isDirty(o)&&(s=i.textFileService.revertAll([o],{soft:!0})),s.then(function(){var n=y.joinPath(e.resource,y.basename(r));return i.fileService.copyFile(r,n,!0).then(function(e){1===t.length&&i.editorService.openEditor({resource:e.resource,options:{pinned:!0}})})})})}),F.sequence(r)}})}):Promise.resolve(void 0)},e.prototype.handleExplorerDrop=function(t,i,n){var r=this,o=t.elements,s=y.distinctParents(o,function(e){return e.resource}),a=n.ctrlKey&&!O.isMacintosh||n.altKey&&O.isMacintosh;return(!a&&this.configurationService.getValue(e.CONFIRM_DND_SETTING_KEY)?this.dialogService.confirm({message:s.length>1&&s.every(function(e){return e.isRoot})?_.localize(8,null):s.length>1?T.getConfirmMessage(_.localize(9,null,s.length),s.map(function(e){return e.resource})):s[0].isRoot?_.localize(10,null,s[0].name):_.localize(11,null,s[0].name),checkbox:{label:_.localize(12,null)},type:"question",primaryButton:_.localize(13,null)}):Promise.resolve({confirmed:!0})).then(function(t){var n=Promise.resolve(void 0);return t.confirmed&&!0===t.checkboxChecked&&(n=r.configurationService.updateValue(e.CONFIRM_DND_SETTING_KEY,!1,1)),n.then(function(){if(t.confirmed){var e=r.doHandleRootDrop(s.filter(function(e){return e.isRoot}),i);return Promise.all(s.filter(function(e){return!e.isRoot}).map(function(e){return r.doHandleExplorerDrop(e,i,a)}).concat(e)).then(function(){})}return Promise.resolve(void 0)})})},e.prototype.doHandleRootDrop=function(e,t){if(0===e.length)return Promise.resolve(void 0);for(var i,n=this.contextService.getWorkspace().folders,r=[],o=[],s=function(s){var a={uri:n[s].uri};t instanceof I.ExplorerItem&&n[s].uri.toString()===t.resource.toString()&&(i=s),e.every(function(e){return e.resource.toString()!==n[s].uri.toString()})?r.push(a):o.push(a)},a=0;a0?t[0]:void 0};return t.push(this.instantiationService.createInstance(d.NewFileAction,i)),t.push(this.instantiationService.createInstance(d.NewFolderAction,i)),t.push(this.instantiationService.createInstance(d.RefreshExplorerView,d.RefreshExplorerView.ID,d.RefreshExplorerView.LABEL)),t.push(this.instantiationService.createInstance(m.CollapseAction,this.tree,!0,"explorer-action collapse-explorer")),t},t.prototype.focus=function(){this.tree.domFocus();var e=this.tree.getFocus();1===e.length&&(this.autoReveal&&this.tree.reveal(e[0],.5),this.getActiveFile()||e[0].isDirectory||this.editorService.openEditor({resource:e[0].resource,options:{preserveFocus:!0,revealIfVisible:!0}}).then(void 0,V.onUnexpectedError))},t.prototype.selectActiveFile=function(e,t){if(void 0===t&&(t=this.autoReveal),this.autoReveal){var i=this.getActiveFile();if(i){var n=this.tree.getFocus();if(1===n.length&&n[0].resource.toString()===i.toString())return;this.explorerService.select(this.getActiveFile(),t)}else e&&(this.tree.setSelection([]),this.tree.setFocus([]))}},t.prototype.createTree=function(e){var n=this;this.filter=this.instantiationService.createInstance(P.FilesFilter),this.disposables.push(this.filter);var r=this.instantiationService.createInstance(z.ResourceLabels,{onDidChangeVisibility:this.onDidChangeBodyVisibility});this.disposables.push(r);var o=this.instantiationService.createInstance(P.FilesRenderer,r,function(e){return n.tree.updateWidth(e)});this.disposables.push(o),this.disposables.push(H.createFileIconThemableTreeContainerScope(e,this.themeService)),this.tree=new L.WorkbenchAsyncDataTree(e,new P.ExplorerDelegate,[o],this.instantiationService.createInstance(P.ExplorerDataSource),{accessibilityProvider:new P.ExplorerAccessibilityProvider,ariaLabel:i.localize(1,null),identityProvider:{getId:function(e){return e.resource}},keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:function(e){if(!n.explorerService.isEditable(e))return e.name}},multipleSelectionSupport:!0,filter:this.filter,sorter:this.instantiationService.createInstance(P.FileSorter),dnd:this.instantiationService.createInstance(P.FileDragAndDrop),autoExpandSingleChildren:!0},this.contextKeyService,this.listService,this.themeService,this.configurationService,this.keybindingService),this.disposables.push(this.tree),u.FilesExplorerFocusedContext.bindTo(this.tree.contextKeyService),u.ExplorerFocusedContext.bindTo(this.tree.contextKeyService),this.disposables.push(this.tree.onDidChangeFocus(function(e){return n.onFocusChanged(e.elements)})),this.onFocusChanged([]);var s=new L.TreeResourceNavigator2(this.tree);this.disposables.push(s),this.disposables.push(s.onDidOpenResource(function(e){var t=n.tree.getSelection(),i=e.browserEvent instanceof KeyboardEvent&&e.browserEvent.shiftKey;if(1===t.length&&!i){if(!t[0].name||t[0].isDirectory)return;n.telemetryService.publicLog("workbenchActionExecuted",{id:"workbench.files.openFile",from:"explorer"}),n.editorService.openEditor({resource:t[0].resource,options:{preserveFocus:e.editorOptions.preserveFocus,pinned:e.editorOptions.pinned}},e.sideBySide?R.SIDE_GROUP:R.ACTIVE_GROUP).then(void 0,V.onUnexpectedError)}})),this.disposables.push(this.tree.onContextMenu(function(e){return n.onContextMenu(e)})),this.disposables.push(this.tree.onKeyDown(function(e){var t=new G.StandardKeyboardEvent(e);if(j.isMacintosh?18===t.keyCode&&t.metaKey:3===t.keyCode){var i=n.tree.getFocus();1===i.length&&i[0].isDirectory&&n.tree.toggleCollapsed(i[0])}})),this.storageService.onWillSaveState(function(){n.storageService.store(t.TREE_VIEW_STATE_STORAGE_KEY,JSON.stringify(n.tree.getViewState()),1)},null,this.disposables)},t.prototype.onConfigurationUpdated=function(e,t){this.autoReveal=e&&e.explorer&&e.explorer.autoReveal;var i=!1;this.filter&&(i=this.filter.updateConfiguration()),t&&!i&&(i=t.affectsConfiguration("explorer.decorations.colors")||t.affectsConfiguration("explorer.decorations.badges")),t&&i&&this.refresh()},t.prototype.onContextMenu=function(e){var t=this,i=e.element;this.fileCopiedContextKey.set(this.clipboardService.hasResources());var n=this.tree.getSelection();this.contextMenuService.showContextMenu({getAnchor:function(){return e.anchor},getActions:function(){var e=[],n=t.explorerService.roots,r=i instanceof B.ExplorerItem?i.resource:1===n.length?n[0].resource:{};return F.fillInContextMenuActions(t.contributedContextMenu,{arg:r,shouldForwardArgs:!0},e,t.contextMenuService),e},onHide:function(e){e&&t.tree.domFocus()},getActionsContext:function(){return n&&n.indexOf(i)>=0?n.map(function(e){return e.resource}):i instanceof B.ExplorerItem?[i.resource]:[]}})},t.prototype.onFocusChanged=function(e){var t=e&&e.length?e[0]:void 0,i=2===this.contextService.getWorkbenchState(),n=t?t.resource:i?this.contextService.getWorkspace().folders[0].uri:void 0;this.resourceContext.set(n),this.folderContext.set(i&&!t||!!t&&t.isDirectory),this.readonlyContext.set(!!t&&t.isReadonly),this.rootContext.set(!t||t&&t.isRoot)},t.prototype.refresh=function(e){if(!this.tree||!this.isBodyVisible())return this.shouldRefresh=!0,Promise.resolve(void 0);if(e&&!this.tree.hasNode(e))return Promise.resolve(void 0);var t=!e,i=e||this.tree.getInput();return this.tree.updateChildren(i,t)},t.prototype.getOptimalWidth=function(){var e=this.tree.getHTMLElement(),t=[].slice.call(e.querySelectorAll(".explorer-item .label-name"));return v.getLargestChildWidth(e,t)},t.prototype.setTreeInput=function(){var e=this;if(!this.isBodyVisible())return this.shouldRefresh=!0,Promise.resolve(void 0);var i=!this.tree.getInput();i&&n.mark("willResolveExplorer");var r,o=this.explorerService.roots,s=o[0];if((2!==this.contextService.getWorkbenchState()||o[0].isError)&&(s=o),this.tree&&this.tree.getInput())r=this.tree.getViewState();else{var a=this.storageService.get(t.TREE_VIEW_STATE_STORAGE_KEY,1);a&&(r=JSON.parse(a))}var c=this.tree.getInput(),l=this.tree.setInput(s,r).then(function(){Array.isArray(s)&&((!r||c instanceof B.ExplorerItem)&&s.forEach(function(t){return e.tree.expand(t).then(void 0,V.onUnexpectedError)}),Array.isArray(c)&&c.length0),this.resourceCutContextKey.set(t&&e.length>0),i&&i.forEach(function(e){return n.tree.rerender(e)}),t&&e.forEach(function(e){return n.tree.rerender(e)})},t.prototype.collapseAll=function(){this.tree.collapseAll()},t.prototype.dispose=function(){this.dragHandler&&this.dragHandler.dispose(),e.prototype.dispose.call(this)},t.ID="workbench.explorer.fileView",t.TREE_VIEW_STATE_STORAGE_KEY="workbench.explorer.treeViewState",p([c.memoize],t.prototype,"contributedContextMenu",null),p([c.memoize],t.prototype,"fileCopiedContextKey",null),p([c.memoize],t.prototype,"resourceCutContextKey",null),t=p([f(1,I.IContextMenuService),f(2,w.IInstantiationService),f(3,_.IWorkspaceContextService),f(4,E.IProgressService),f(5,R.IEditorService),f(6,y.IWorkbenchLayoutService),f(7,C.IKeybindingService),f(8,x.IContextKeyService),f(9,S.IConfigurationService),f(10,k.IDecorationsService),f(11,T.ILabelService),f(12,A.IThemeService),f(13,L.IListService),f(14,N.IMenuService),f(15,W.ITelemetryService),f(16,u.IExplorerService),f(17,K.IStorageService),f(18,U.IClipboardService)],t)}(O.ViewletPanel);t.ExplorerView=q}),define(i[1225],n([0,1,554,13,29,7,51,6,56,18,44,218,70,50,80,301,397,15,58,16,22,78,150,61,37,24,2,174,38,207,140,144,244,134,107,177]),function(e,t,i,n,r,o,s,c,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F,W,B){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var V=o.$,z=function(e){function t(t,r,o,s,a,c,u,d,h,p,f,g,v){var m=e.call(this,l({},t,{ariaHeaderLabel:i.localize(1,null)}),d,o,u)||this;return m.instantiationService=r,m.textFileService=s,m.editorService=a,m.editorGroupService=c,m.untitledEditorService=h,m.contextKeyService=p,m.themeService=f,m.telemetryService=g,m.menuService=v,m.structuralRefreshDelay=0,m.listRefreshScheduler=new n.RunOnceScheduler(function(){var e=m.list.length;m.list.splice(0,m.list.length,m.elements),m.focusActiveEditor(),e!==m.list.length&&m.updateSize(),m.needsRefresh=!1},m.structuralRefreshDelay),m.registerUpdateEvents(),m.disposables.push(m.configurationService.onDidChangeConfiguration(function(e){return m.onConfigurationChange(e)})),m.disposables.push(m.untitledEditorService.onDidChangeDirty(function(){return m.updateDirtyIndicator()})),m.disposables.push(m.textFileService.models.onModelsDirty(function(){return m.updateDirtyIndicator()})),m.disposables.push(m.textFileService.models.onModelsSaved(function(){return m.updateDirtyIndicator()})),m.disposables.push(m.textFileService.models.onModelsSaveError(function(){return m.updateDirtyIndicator()})),m.disposables.push(m.textFileService.models.onModelsReverted(function(){return m.updateDirtyIndicator()})),m}return a(t,e),t.prototype.registerUpdateEvents=function(){var e=this,t=function(){e.isBodyVisible()&&e.list?e.listRefreshScheduler.schedule(e.structuralRefreshDelay):e.needsRefresh=!0},i=new Map,n=function(t){i.set(t.id,t.onDidGroupChange(function(i){if(!e.listRefreshScheduler.isScheduled())if(e.isBodyVisible()&&e.list){var n=e.getIndex(t,i.editor);switch(i.kind){case 1:e.showGroups&&e.list.splice(n,1,[t]);break;case 0:case 5:e.focusActiveEditor();break;case 8:case 6:case 7:e.list.splice(n,1,[new v.OpenEditor(i.editor,t)]);break;case 2:e.list.splice(n,0,[new v.OpenEditor(i.editor,t)]),setTimeout(function(){return e.updateSize()},e.structuralRefreshDelay);break;case 3:var r=e.getIndex(t,void 0)+i.editorIndex+(e.showGroups?1:0);e.list.splice(r,1),e.updateSize();break;case 4:e.listRefreshScheduler.schedule()}}else e.needsRefresh=!0})),e.disposables.push(i.get(t.id))};this.editorGroupService.groups.forEach(function(e){return n(e)}),this.disposables.push(this.editorGroupService.onDidAddGroup(function(e){n(e),t()})),this.disposables.push(this.editorGroupService.onDidMoveGroup(function(){return t()})),this.disposables.push(this.editorGroupService.onDidRemoveGroup(function(e){M.dispose(i.get(e.id)),t()}))},t.prototype.renderHeaderTitle=function(t){var i=this;e.prototype.renderHeaderTitle.call(this,t,this.title);var n=o.append(t,V(".count"));this.dirtyCountElement=o.append(n,V(".monaco-count-badge")),this.disposables.push(C.attachStylerCallback(this.themeService,{badgeBackground:E.badgeBackground,badgeForeground:E.badgeForeground,contrastBorder:E.contrastBorder},function(e){var t=e.badgeBackground?e.badgeBackground.toString():null,n=e.badgeForeground?e.badgeForeground.toString():null,r=e.contrastBorder?e.contrastBorder.toString():null;i.dirtyCountElement.style.backgroundColor=t,i.dirtyCountElement.style.color=n,i.dirtyCountElement.style.borderWidth=r?"1px":null,i.dirtyCountElement.style.borderStyle=r?"solid":null,i.dirtyCountElement.style.borderColor=r})),this.updateDirtyIndicator()},t.prototype.renderBody=function(e){var t=this;o.addClass(e,"explorer-open-editors"),o.addClass(e,"show-file-icons");var i=new K;this.list&&this.list.dispose(),this.listLabels&&this.listLabels.clear(),this.listLabels=this.instantiationService.createInstance(x.ResourceLabels,{onDidChangeVisibility:this.onDidChangeBodyVisibility}),this.list=this.instantiationService.createInstance(I.WorkbenchList,e,i,[new U(this.keybindingService,this.instantiationService),new j(this.listLabels,this.instantiationService,this.keybindingService,this.configurationService)],{identityProvider:{getId:function(e){return e instanceof v.OpenEditor?e.getId():e.id.toString()}},dnd:new G(this.instantiationService,this.editorGroupService)}),this.disposables.push(this.list),this.disposables.push(this.listLabels),this.contributedContextMenu=this.menuService.createMenu(27,this.list.contextKeyService),this.disposables.push(this.contributedContextMenu),this.updateSize(),v.OpenEditorsFocusedContext.bindTo(this.list.contextKeyService),v.ExplorerFocusedContext.bindTo(this.list.contextKeyService),this.resourceContext=this.instantiationService.createInstance(P.ResourceContextKey),this.disposables.push(this.resourceContext),this.groupFocusedContext=T.OpenEditorsGroupContext.bindTo(this.contextKeyService),this.dirtyEditorFocusedContext=T.DirtyEditorContext.bindTo(this.contextKeyService),this.disposables.push(this.list.onContextMenu(function(e){return t.onListContextMenu(e)})),this.list.onFocusChange(function(e){t.resourceContext.reset(),t.groupFocusedContext.reset(),t.dirtyEditorFocusedContext.reset();var i=e.elements.length?e.elements[0]:void 0;i instanceof v.OpenEditor?(t.dirtyEditorFocusedContext.set(t.textFileService.isDirty(i.getResource())),t.resourceContext.set(i.getResource())):i&&t.groupFocusedContext.set(!0)}),this.disposables.push(this.list.onMouseMiddleClick(function(e){e&&e.element instanceof v.OpenEditor&&e.element.group.closeEditor(e.element.editor,{preserveFocus:!0})})),this.disposables.push(this.list.onDidOpen(function(e){var i=e.browserEvent,n=!1,r=!1,o=!1;i instanceof MouseEvent&&(r=1===i.detail,o=2===i.detail,n=t.list.useAltAsMultipleSelectionModifier?i.ctrlKey||i.metaKey:i.altKey);var s=t.list.getFocusedElements(),a=s.length?s[0]:void 0;a instanceof v.OpenEditor?t.openEditor(a,{preserveFocus:r,pinned:o,sideBySide:n}):a&&t.editorGroupService.activateGroup(a)})),this.listRefreshScheduler.schedule(0),this.disposables.push(this.onDidChangeBodyVisibility(function(e){e&&t.needsRefresh&&t.listRefreshScheduler.schedule(0)}))},t.prototype.getActions=function(){return[this.instantiationService.createInstance(_.ToggleEditorLayoutAction,_.ToggleEditorLayoutAction.ID,_.ToggleEditorLayoutAction.LABEL),this.instantiationService.createInstance(g.SaveAllAction,g.SaveAllAction.ID,g.SaveAllAction.LABEL),this.instantiationService.createInstance(b.CloseAllEditorsAction,b.CloseAllEditorsAction.ID,b.CloseAllEditorsAction.LABEL)]},t.prototype.focus=function(){e.prototype.focus.call(this),this.list.domFocus()},t.prototype.getList=function(){return this.list},t.prototype.layoutBody=function(e,t){this.list&&this.list.layout(e,t)},Object.defineProperty(t.prototype,"showGroups",{get:function(){return this.editorGroupService.groups.length>1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){var e=this,t=[];return this.editorGroupService.getGroups(2).forEach(function(i){e.showGroups&&t.push(i),t.push.apply(t,i.editors.map(function(e){return new v.OpenEditor(e,i)}))}),t},enumerable:!0,configurable:!0}),t.prototype.getIndex=function(e,t){var i=t?e.getIndexOfEditor(t):0;if(!this.showGroups)return i;for(var n=0,r=this.editorGroupService.getGroups(2);n a"));return o.getLargestChildWidth(e,t)},t.DEFAULT_VISIBLE_OPEN_EDITORS=9,t.ID="workbench.explorer.openEditorsView",t.NAME=i.localize(0,null),t=p([f(1,c.IInstantiationService),f(2,s.IContextMenuService),f(3,m.ITextFileService),f(4,L.IEditorService),f(5,u.IEditorGroupsService),f(6,d.IConfigurationService),f(7,h.IKeybindingService),f(8,y.IUntitledEditorService),f(9,S.IContextKeyService),f(10,w.IThemeService),f(11,k.ITelemetryService),f(12,O.IMenuService)],t)}(N.ViewletPanel);t.OpenEditorsView=z;var H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(t,i){return e.prototype.run.call(this,t,{groupId:this.editor.groupId,editorIndex:this.editor.editorIndex})},t}(r.ActionRunner),K=function(){function e(){}return e.prototype.getHeight=function(t){return e.ITEM_HEIGHT},e.prototype.getTemplateId=function(e){return e instanceof v.OpenEditor?j.ID:U.ID},e.ITEM_HEIGHT=22,e}(),U=function(){function e(e,t){this.keybindingService=e,this.instantiationService=t}return Object.defineProperty(e.prototype,"templateId",{get:function(){return e.ID},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=Object.create(null);t.root=o.append(e,V(".editor-group")),t.name=o.append(t.root,V("span.name")),t.actionBar=new D.ActionBar(e);var i=this.instantiationService.createInstance(g.SaveAllInGroupAction,g.SaveAllInGroupAction.ID,g.SaveAllInGroupAction.LABEL),n=this.keybindingService.lookupKeybinding(i.id);t.actionBar.push(i,{icon:!0,label:!1,keybinding:n?n.getLabel():void 0});var r=this.instantiationService.createInstance(g.CloseGroupAction,g.CloseGroupAction.ID,g.CloseGroupAction.LABEL),s=this.keybindingService.lookupKeybinding(r.id);return t.actionBar.push(r,{icon:!0,label:!1,keybinding:s?s.getLabel():void 0}),t},e.prototype.renderElement=function(e,t,i){i.editorGroup=e,i.name.textContent=e.label,i.actionBar.context={groupId:e.id}},e.prototype.disposeTemplate=function(e){e.actionBar.dispose()},e.ID="editorgroup",e}(),j=function(){function e(e,t,i,n){this.labels=e,this.instantiationService=t,this.keybindingService=i,this.configurationService=n}return Object.defineProperty(e.prototype,"templateId",{get:function(){return e.ID},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=Object.create(null);t.container=e,t.actionRunner=new H,t.actionBar=new D.ActionBar(e,{actionRunner:t.actionRunner}),e.draggable=!0;var i=this.instantiationService.createInstance(b.CloseEditorAction,b.CloseEditorAction.ID,b.CloseEditorAction.LABEL),n=this.keybindingService.lookupKeybinding(i.id);return t.actionBar.push(i,{icon:!0,label:!1,keybinding:n?n.getLabel():void 0}),t.root=this.labels.create(e),t},e.prototype.renderElement=function(e,t,i){i.actionRunner.editor=e,e.isDirty()?o.addClass(i.container,"dirty"):o.removeClass(i.container,"dirty"),i.root.setEditor(e.editor,{italic:e.isPreview(),extraClasses:["open-editor"],fileDecorations:this.configurationService.getValue().explorer.decorations})},e.prototype.disposeTemplate=function(e){e.actionBar.dispose(),e.root.dispose(),e.actionRunner.dispose()},e.ID="openeditor",e}(),G=function(){function e(e,t){this.instantiationService=e,this.editorGroupService=t}return Object.defineProperty(e.prototype,"dropHandler",{get:function(){return this.instantiationService.createInstance(A.ResourcesDropHandler,{allowWorkspaceOpen:!1})},enumerable:!0,configurable:!0}),e.prototype.getDragURI=function(e){if(e instanceof v.OpenEditor){var t=e.getResource();if(t)return t.toString()}return null},e.prototype.getDragLabel=function(e){if(e.length>1)return String(e.length);var t=e[0];return t instanceof v.OpenEditor?t.editor.getName():t.label},e.prototype.onDragStart=function(e,t){var i=e.elements,n=[];i&&i.forEach(function(e){e instanceof v.OpenEditor&&n.push(e.getResource())}),n.length&&this.instantiationService.invokeFunction(A.fillResourceDataTransfers,n,t)},e.prototype.onDragOver=function(e,t,i,n){if(e instanceof B.DesktopDragAndDropData){for(var r=n.dataTransfer.types,o=[],s=0;s0},i.prototype.run=function(){var e=this;return this.commandService.executeCommand(g.PICK_WORKSPACE_FOLDER_COMMAND_ID).then(function(t){return t?e.preferencesService.openFolderSettings(t.uri):null})},i.prototype.dispose=function(){this.disposables=n.dispose(this.disposables),e.prototype.dispose.call(this)},i.ID="workbench.action.openFolderSettings",i.LABEL=t.OPEN_FOLDER_SETTINGS_LABEL,i=p([f(2,h.IWorkspaceContextService),f(3,v.IPreferencesService),f(4,u.ICommandService)],i)}(i.Action);t.OpenFolderSettingsAction=I;var x=function(e){function t(t,i,n,r,o,s){var a=e.call(this,t,i)||this;return a.modelService=n,a.modeService=r,a.quickInputService=o,a.preferencesService=s,a}return a(t,e),t.prototype.run=function(){var e=this,t=this.modeService.getRegisteredLanguageNames().sort().map(function(t,i){var n,s=l.localize(10,null,e.modeService.getModeIdForLanguageName(t.toLowerCase())),a=e.modeService.getExtensions(t);if(a&&a.length)n=r.URI.file(a[0]);else{var c=e.modeService.getFilenames(t);c&&c.length&&(n=r.URI.file(c[0]))}return{label:t,iconClasses:o.getIconClasses(e.modelService,e.modeService,n),description:s}});return this.quickInputService.pick(t,{placeHolder:l.localize(11,null)}).then(function(t){if(t){var i=e.modeService.getModeIdForLanguageName(t.label.toLowerCase());if("string"==typeof i)return e.preferencesService.configureSettingsForLanguage(i)}})},t.ID="workbench.action.configureLanguageBasedSettings",t.LABEL=l.localize(9,null),t=p([f(2,s.IModelService),f(3,c.IModeService),f(4,d.IQuickInputService),f(5,v.IPreferencesService)],t)}(i.Action);t.ConfigureLanguageBasedSettingsAction=x}),define(i[1229],n([0,1,54,2,10,20,146,570,38,31,15,285,45,117,39,6,74,19,32,137,73,115,34,140,1150,1228,1142,160,1099,1104,1100,24,86,410,70,734]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),m.registerSingleton(M.IPreferencesSearchService,O.PreferencesSearchService,!0),_.Registry.as(C.Extensions.Editors).registerEditor(new C.EditorDescriptor(L.PreferencesEditor,L.PreferencesEditor.ID,c.localize(0,null)),[new v.SyncDescriptor(N.PreferencesEditorInput)]),_.Registry.as(C.Extensions.Editors).registerEditor(new C.EditorDescriptor(T.SettingsEditor2,T.SettingsEditor2.ID,c.localize(1,null)),[new v.SyncDescriptor(N.SettingsEditor2Input)]),_.Registry.as(C.Extensions.Editors).registerEditor(new C.EditorDescriptor(D.KeybindingsEditor,D.KeybindingsEditor.ID,c.localize(2,null)),[new v.SyncDescriptor(N.KeybindingsEditorInput)]);var W=function(){function e(){}return e.prototype.serialize=function(e){var t=e;if(t.details&&t.master){var i=_.Registry.as(I.Extensions.EditorInputFactories),n=i.getEditorInputFactory(t.details.getTypeId()),r=i.getEditorInputFactory(t.master.getTypeId());if(n&&r){var o=n.serialize(t.details),s=r.serialize(t.master);if(o&&s)return JSON.stringify({name:t.getName(),description:t.getDescription(),detailsSerialized:o,masterSerialized:s,detailsTypeId:t.details.getTypeId(),masterTypeId:t.master.getTypeId()})}}return null},e.prototype.deserialize=function(e,t){var i=JSON.parse(t),n=_.Registry.as(I.Extensions.EditorInputFactories),r=n.getEditorInputFactory(i.detailsTypeId),o=n.getEditorInputFactory(i.masterTypeId);if(r&&o){var s=r.deserialize(e,i.detailsSerialized),a=o.deserialize(e,i.masterSerialized);if(s&&a)return new N.PreferencesEditorInput(i.name,i.description,s,a)}return null},e}(),B=function(){function e(){}return e.prototype.serialize=function(e){var t=e;return JSON.stringify({name:t.getName(),typeId:t.getTypeId()})},e.prototype.deserialize=function(e,t){return e.createInstance(N.KeybindingsEditorInput)},e}(),V=function(){function e(){}return e.prototype.serialize=function(e){return JSON.stringify({})},e.prototype.deserialize=function(e,t){return e.createInstance(N.SettingsEditor2Input)},e}(),z=function(){function e(){}return e.prototype.serialize=function(e){var t={resource:e.getResource().toString()};return JSON.stringify(t)},e.prototype.deserialize=function(e,t){var i=JSON.parse(t);return e.createInstance(N.DefaultPreferencesEditorInput,r.URI.parse(i.resource))},e}();_.Registry.as(I.Extensions.EditorInputFactories).registerEditorInputFactory(N.PreferencesEditorInput.ID,W),_.Registry.as(I.Extensions.EditorInputFactories).registerEditorInputFactory(N.DefaultPreferencesEditorInput.ID,z),_.Registry.as(I.Extensions.EditorInputFactories).registerEditorInputFactory(N.KeybindingsEditorInput.ID,B),_.Registry.as(I.Extensions.EditorInputFactories).registerEditorInputFactory(N.SettingsEditor2Input.ID,V);var H=c.localize(3,null),K=_.Registry.as(w.Extensions.WorkbenchActions);K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenRawDefaultSettingsAction,k.OpenRawDefaultSettingsAction.ID,k.OpenRawDefaultSettingsAction.LABEL),"Preferences: Open Raw Default Settings",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenSettingsJsonAction,k.OpenSettingsJsonAction.ID,k.OpenSettingsJsonAction.LABEL),"Preferences: Open Settings (JSON)",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenSettings2Action,k.OpenSettings2Action.ID,k.OpenSettings2Action.LABEL),"Preferences: Open Settings (UI)",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenGlobalSettingsAction,k.OpenGlobalSettingsAction.ID,k.OpenGlobalSettingsAction.LABEL),"Preferences: Open User Settings",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenGlobalKeybindingsAction,k.OpenGlobalKeybindingsAction.ID,k.OpenGlobalKeybindingsAction.LABEL,{primary:i.KeyChord(2089,2097)}),"Preferences: Open Keyboard Shortcuts",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenDefaultKeybindingsFileAction,k.OpenDefaultKeybindingsFileAction.ID,k.OpenDefaultKeybindingsFileAction.LABEL),"Preferences: Open Default Keyboard Shortcuts File",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenGlobalKeybindingsFileAction,k.OpenGlobalKeybindingsFileAction.ID,k.OpenGlobalKeybindingsFileAction.LABEL,{primary:0}),"Preferences: Open Keyboard Shortcuts File",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.ConfigureLanguageBasedSettingsAction,k.ConfigureLanguageBasedSettingsAction.ID,k.ConfigureLanguageBasedSettingsAction.LABEL),"Preferences: Configure Language Specific Settings...",H),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.SETTINGS_COMMAND_OPEN_SETTINGS,weight:200,when:null,primary:2130,handler:function(e,t){e.get(A.IPreferencesService).openSettings()}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_DEFINE,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:i.KeyChord(2089,2089),handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.defineKeybinding(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_DEFINE_WHEN,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:i.KeyChord(2089,2083),handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.defineWhenExpression(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_REMOVE,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:20,mac:{primary:i.KeyChord(2089,2049)},handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.removeKeybinding(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_RESET,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:0,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.resetKeybinding(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_SEARCH,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR),primary:2084,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.focusSearch()}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_RECORD_SEARCH_KEYS,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDINGS_SEARCH_FOCUS),primary:553,mac:{primary:2601},handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.recordSearchKeys()}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_SORTBY_PRECEDENCE,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR),primary:558,mac:{primary:2606},handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.toggleSortByPrecedence()}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_SHOW_SIMILAR,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:0,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i.showSimilarKeybindings(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_COPY,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:2081,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i.copyKeybinding(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_COPY_COMMAND,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:0,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i.copyKeybindingCommand(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_FOCUS_KEYBINDINGS,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDINGS_SEARCH_FOCUS),primary:18,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i.focusKeybindings()}});var U=function(t){function i(i,n,o){var s=t.call(this)||this;s.preferencesService=n,s.workpsaceContextService=o,l.MenuRegistry.appendMenuItem(8,{command:{id:k.OpenGlobalKeybindingsAction.ID,title:k.OpenGlobalKeybindingsAction.LABEL,iconLocation:{light:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor.svg")),dark:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor-inverse.svg"))}},when:x.ResourceContextKey.Resource.isEqualTo(r.URI.file(i.appKeybindingsPath).toString()),group:"navigation",order:1});var a="_workbench.openUserSettingsEditor";return u.CommandsRegistry.registerCommand(a,function(){return s.preferencesService.openGlobalSettings(!1)}),l.MenuRegistry.appendMenuItem(8,{command:{id:a,title:k.OpenSettings2Action.LABEL,iconLocation:{light:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor.svg")),dark:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor-inverse.svg"))}},when:x.ResourceContextKey.Resource.isEqualTo(r.URI.file(i.appSettingsPath).toString()),group:"navigation",order:1}),s.updatePreferencesEditorMenuItem(),s._register(o.onDidChangeWorkbenchState(function(){return s.updatePreferencesEditorMenuItem()})),s._register(o.onDidChangeWorkspaceFolders(function(){return s.updatePreferencesEditorMenuItemForWorkspaceFolders()})),s}return a(i,t),i.prototype.updatePreferencesEditorMenuItem=function(){var t=this,i="_workbench.openWorkspaceSettingsEditor";3!==this.workpsaceContextService.getWorkbenchState()||u.CommandsRegistry.getCommand(i)||(u.CommandsRegistry.registerCommand(i,function(){return t.preferencesService.openWorkspaceSettings(!1)}),l.MenuRegistry.appendMenuItem(8,{command:{id:i,title:k.OpenSettings2Action.LABEL,iconLocation:{light:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor.svg")),dark:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor-inverse.svg"))}},when:d.ContextKeyExpr.and(x.ResourceContextKey.Resource.isEqualTo(this.preferencesService.workspaceSettingsResource.toString()),h.WorkbenchStateContext.isEqualTo("workspace")),group:"navigation",order:1})),this.updatePreferencesEditorMenuItemForWorkspaceFolders()},i.prototype.updatePreferencesEditorMenuItemForWorkspaceFolders=function(){for(var t=this,i=function(i){var o="_workbench.openFolderSettings."+i.uri.toString();u.CommandsRegistry.getCommand(o)||(u.CommandsRegistry.registerCommand(o,function(){return 2===t.workpsaceContextService.getWorkbenchState()?t.preferencesService.openWorkspaceSettings(!1):t.preferencesService.openFolderSettings(i.uri,!1)}),l.MenuRegistry.appendMenuItem(8,{command:{id:o,title:k.OpenSettings2Action.LABEL,iconLocation:{light:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor.svg")),dark:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor-inverse.svg"))}},when:d.ContextKeyExpr.and(x.ResourceContextKey.Resource.isEqualTo(n.preferencesService.getFolderSettingsResource(i.uri).toString())),group:"navigation",order:1}))},n=this,o=0,s=this.workpsaceContextService.getWorkspace().folders;o10&&"alwaysExpand"!==t;return{element:e,children:n,collapsed:o}})},t.prototype.createFileIterator=function(e){var t=l.Iterator.from(e.matches().sort(G.searchMatchComparer));return l.Iterator.map(t,function(e){return{element:e}})},t.prototype.createIterator=function(e,t){return e instanceof G.SearchResult?this.createResultIterator(t):e instanceof G.BaseFolderMatch?this.createFolderIterator(e,t):this.createFileIterator(e)},t.prototype.replaceAll=function(){var e=this;if(0!==this.viewModel.searchResult.count()){var t=this.progressService.show(100),n=this.viewModel.searchResult.count(),r=this.viewModel.searchResult.fileCount(),o=this.searchWidget.getReplaceValue()||"",a=this.buildAfterReplaceAllMessage(n,r,o),c={title:v.localize(5,null),message:this.buildReplaceAllConfirmationMessage(n,r,o),primaryButton:v.localize(6,null),type:"question"};this.dialogService.confirm(c).then(function(n){n.confirmed&&(e.searchWidget.setReplaceAllActionState(!1),e.viewModel.searchResult.replaceAll(t).then(function(){t.done();var n=e.clearMessage();i.append(n,ee("p",void 0,a))},function(i){t.done(),s.isPromiseCanceledError(i),e.notificationService.error(i)}))})}},t.prototype.buildAfterReplaceAllMessage=function(e,t,i){return 1===e?1===t?i?v.localize(7,null,e,t,i):v.localize(8,null,e,t):i?v.localize(9,null,e,t,i):v.localize(10,null,e,t):1===t?i?v.localize(11,null,e,t,i):v.localize(12,null,e,t):i?v.localize(13,null,e,t,i):v.localize(14,null,e,t)},t.prototype.buildReplaceAllConfirmationMessage=function(e,t,i){return 1===e?1===t?i?v.localize(15,null,e,t,i):v.localize(16,null,e,t):i?v.localize(17,null,e,t,i):v.localize(18,null,e,t):1===t?i?v.localize(19,null,e,t,i):v.localize(20,null,e,t):i?v.localize(21,null,e,t,i):v.localize(22,null,e,t)},t.prototype.clearMessage=function(){return this.searchWithoutFolderMessageElement=void 0,i.clearNode(this.messagesElement),i.show(this.messagesElement),u.dispose(this.messageDisposables),this.messageDisposables=[],i.append(this.messagesElement,ee(".message"))},t.prototype.createSearchResultsView=function(e){var t=this;this.resultsElement=i.append(e,ee(".results.show-file-icons"));var n=this.instantiationService.createInstance(V.SearchDelegate);this.treeLabels=this._register(this.instantiationService.createInstance(N.ResourceLabels,this)),this.tree=this._register(this.instantiationService.createInstance(I.WorkbenchObjectTree,this.resultsElement,n,[this._register(this.instantiationService.createInstance(V.FolderMatchRenderer,this.viewModel,this,this.treeLabels)),this._register(this.instantiationService.createInstance(V.FileMatchRenderer,this.viewModel,this,this.treeLabels)),this._register(this.instantiationService.createInstance(V.MatchRenderer,this.viewModel,this))],{identityProvider:{getId:function(e){return e.id()}},accessibilityProvider:this.instantiationService.createInstance(V.SearchAccessibilityProvider,this.viewModel),dnd:this.instantiationService.createInstance(V.SearchDND),multipleSelectionSupport:!1})),this._register(this.tree.onContextMenu(function(e){return t.onContextMenu(e)}));var r=this._register(new I.TreeResourceNavigator2(this.tree,{openOnFocus:!0}));this._register(c.Event.debounce(r.onDidOpenResource,function(e,t){return t},75,!0)(function(e){if(e.element instanceof G.Match){var i=e.element;t.currentSelectedFileMatch&&t.currentSelectedFileMatch.setSelectedMatch(null),t.currentSelectedFileMatch=i.parent(),t.currentSelectedFileMatch.setSelectedMatch(i),t.onFocus(i,e.editorOptions.preserveFocus,e.sideBySide,e.editorOptions.pinned)}})),this._register(c.Event.any(this.tree.onDidFocus,this.tree.onDidChangeFocus)(function(){if(t.tree.isDOMFocused()){var e=t.tree.getFocus()[0];t.firstMatchFocused.set(t.tree.navigate().first()===e),t.fileMatchOrMatchFocused.set(!!e),t.fileMatchFocused.set(e instanceof G.FileMatch),t.folderMatchFocused.set(e instanceof G.FolderMatch),t.matchFocused.set(e instanceof G.Match),t.fileMatchOrFolderMatchFocus.set(e instanceof G.FileMatch||e instanceof G.FolderMatch)}})),this._register(this.tree.onDidBlur(function(e){t.firstMatchFocused.reset(),t.fileMatchOrMatchFocused.reset(),t.fileMatchFocused.reset(),t.folderMatchFocused.reset(),t.matchFocused.reset(),t.fileMatchOrFolderMatchFocus.reset()}))},t.prototype.onContextMenu=function(e){var t=this;e.element&&(this.contextMenu||(this.contextMenu=this._register(this.menuService.createMenu(34,this.contextKeyService))),e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.contextMenuService.showContextMenu({getAnchor:function(){return e.anchor},getActions:function(){var e=[];return m.fillInContextMenuActions(t.contextMenu,{shouldForwardArgs:!0},e,t.contextMenuService),e},getActionsContext:function(){return e.element}}))},t.prototype.selectCurrentMatch=function(){var e=this.tree.getFocus()[0],t=I.getSelectionKeyboardEvent(void 0,!1);this.tree.setSelection([e],t)},t.prototype.selectNextMatch=function(){var e=this.tree.getSelection()[0];e instanceof G.FileMatch&&this.tree.isCollapsed(e)&&this.tree.expand(e);var t=this.tree.navigate(e),i=t.next();for(i||(i=(t=this.tree.navigate()).first());!(i instanceof G.Match);)this.tree.isCollapsed(i)&&this.tree.expand(i),i=t.next();i&&(this.tree.setFocus([i],I.getSelectionKeyboardEvent(void 0,!1)),this.tree.reveal(i),this.selectCurrentMatchEmitter.fire(void 0))},t.prototype.selectPreviousMatch=function(){var e=this.tree.getSelection()[0],t=this.tree.navigate(e),i=t.previous();if(!(i instanceof G.Match)){if(!(i=t.previous())){i=t.last(),this.tree.expand(i);for(var n=void 0;n=t.next();)i=n}if(!(i instanceof G.Match)){var r=t.next();this.tree.expand(i),i=(t=this.tree.navigate(r)).previous()}}i&&(this.tree.setFocus([i],I.getSelectionKeyboardEvent(void 0,!1)),this.tree.reveal(i),this.selectCurrentMatchEmitter.fire(void 0))},t.prototype.moveFocusToResults=function(){this.tree.domFocus()},t.prototype.focus=function(){e.prototype.focus.call(this);var t=this.updateTextFromSelection();this.searchWidget.focus(void 0,void 0,t)},t.prototype.updateTextFromSelection=function(e){void 0===e&&(e=!0);var t=!1;if(this.configurationService.getValue("editor").find.seedSearchStringFromSelection){var i=this.getSearchTextFromEditor(e);i&&(this.searchWidget.searchInput.getRegex()&&(i=h.escapeRegExpCharacters(i)),this.searchWidget.searchInput.setValue(i),t=!0)}return t},t.prototype.focusNextInputBox=function(){if(this.searchWidget.searchInputHasFocus())this.searchWidget.isReplaceShown()?this.searchWidget.focus(!0,!0):this.moveFocusFromSearchOrReplace();else{if(!this.searchWidget.replaceInputHasFocus())return this.inputPatternIncludes.inputHasFocus()?(this.inputPatternExcludes.focus(),void this.inputPatternExcludes.select()):void(this.inputPatternExcludes.inputHasFocus()&&this.selectTreeIfNotSelected());this.moveFocusFromSearchOrReplace()}},t.prototype.moveFocusFromSearchOrReplace=function(){this.showsFileTypes()?this.toggleQueryDetails(!0,this.showsFileTypes()):this.selectTreeIfNotSelected()},t.prototype.focusPreviousInputBox=function(){if(!this.searchWidget.searchInputHasFocus())if(this.searchWidget.replaceInputHasFocus())this.searchWidget.focus(!0);else{if(!this.inputPatternIncludes.inputHasFocus())return this.inputPatternExcludes.inputHasFocus()?(this.inputPatternIncludes.focus(),void this.inputPatternIncludes.select()):void(this.tree.isDOMFocused()&&this.moveFocusFromResults());this.searchWidget.focus(!0,!0)}},t.prototype.moveFocusFromResults=function(){this.showsFileTypes()?this.toggleQueryDetails(!0,!0,!1,!0):this.searchWidget.focus(!0,!0)},t.prototype.reLayout=function(){if(!this.isDisposed){var e=this.configurationService.getValue("search").actionsPosition;i.toggleClass(this.getContainer(),t.ACTIONS_RIGHT_CLASS_NAME,"right"===e),i.toggleClass(this.getContainer(),t.WIDE_CLASS_NAME,this.size.width>=t.WIDE_VIEW_SIZE),this.searchWidget.setWidth(this.size.width-28),this.inputPatternExcludes.setWidth(this.size.width-28),this.inputPatternIncludes.setWidth(this.size.width-28);var n="none"===this.messagesElement.style.display?0:i.getTotalHeight(this.messagesElement),r=this.size.height-n-i.getTotalHeight(this.searchWidgetsContainerElement);this.resultsElement.style.height=r+"px",this.tree.layout(r,this.size.width)}},t.prototype.layout=function(e){this.size=e,this.reLayout()},t.prototype.getControl=function(){return this.tree},t.prototype.isSearchSubmitted=function(){return this.searchSubmitted},t.prototype.isSearching=function(){return this.searching},t.prototype.allSearchFieldsClear=function(){return""===this.searchWidget.getReplaceValue()&&""===this.searchWidget.searchInput.getValue()},t.prototype.hasSearchResults=function(){return!this.viewModel.searchResult.isEmpty()},t.prototype.clearSearchResults=function(){this.viewModel.searchResult.clear(),this.showEmptyStage(),1===this.contextService.getWorkbenchState()&&this.showSearchWithoutFolderMessage(),this.searchWidget.clear(),this.viewModel.cancelSearch(),this.updateActions()},t.prototype.cancelSearch=function(){return!!this.viewModel.cancelSearch()&&(this.searchWidget.focus(),!0)},t.prototype.selectTreeIfNotSelected=function(){this.tree.getNode(null)&&(this.tree.domFocus(),0===this.tree.getSelection().length&&this.tree.focusNext())},t.prototype.getSearchTextFromEditor=function(e){if(!this.editorService.activeEditor)return null;if(i.isAncestor(document.activeElement,this.getContainer()))return null;var t=this.editorService.activeTextEditorWidget;if(g.isDiffEditor(t)&&(t=t.getOriginalEditor().hasTextFocus()?t.getOriginalEditor():t.getModifiedEditor()),!g.isCodeEditor(t)||!t.hasModel())return null;var n=t.getSelection();if(!n)return null;if(n.isEmpty()&&!this.searchWidget.searchInput.getValue()&&e){var r=t.getModel().getWordAtPosition(n.getStartPosition());if(r)return r.word}if(!n.isEmpty()){for(var o="",s=n.startLineNumber;s<=n.endLineNumber;s++){var a=t.getModel().getLineContent(s);s===n.endLineNumber&&(a=a.substring(0,n.endColumn-1)),s===n.startLineNumber&&(a=a.substring(n.startColumn-1)),s!==n.startLineNumber&&(a="\n"+a),o+=a}return o}return null},t.prototype.showsFileTypes=function(){return i.hasClass(this.queryDetails,"more")},t.prototype.toggleCaseSensitive=function(){this.searchWidget.searchInput.setCaseSensitive(!this.searchWidget.searchInput.getCaseSensitive()),this.onQueryChanged(!0)},t.prototype.toggleWholeWords=function(){this.searchWidget.searchInput.setWholeWords(!this.searchWidget.searchInput.getWholeWords()),this.onQueryChanged(!0)},t.prototype.toggleRegex=function(){this.searchWidget.searchInput.setRegex(!this.searchWidget.searchInput.getRegex()),this.onQueryChanged(!0)},t.prototype.toggleQueryDetails=function(e,t,n,r){void 0===e&&(e=!0);t=void 0===t?!i.hasClass(this.queryDetails,"more"):Boolean(t),this.viewletState["query.queryDetailsExpanded"]=t,n=Boolean(n),t?(this.toggleQueryDetailsButton.setAttribute("aria-expanded","true"),i.addClass(this.queryDetails,"more"),e&&(r?(this.inputPatternExcludes.focus(),this.inputPatternExcludes.select()):(this.inputPatternIncludes.focus(),this.inputPatternIncludes.select()))):(this.toggleQueryDetailsButton.setAttribute("aria-expanded","false"),i.removeClass(this.queryDetails,"more"),e&&this.searchWidget.focus()),!n&&this.size&&this.layout(this.size)},t.prototype.searchInFolders=function(e){var t=this,i=[],n=this.contextService.getWorkspace();if(e&&e.forEach(function(e){var r;if(2===t.contextService.getWorkbenchState())(r=Z.relativePath(n.folders[0].uri,e))&&"."!==r&&(r="./"+r);else{var o=t.contextService.getWorkspaceFolder(e);if(o){var s=o.name;if(1===n.folders.filter(function(e){return e.name===s}).length){var a=Z.relativePath(o.uri,e);r=""===a?"./"+o.name:"./"+o.name+"/"+a}else r=e.fsPath}}r&&i.push(r)}),!i.length||i.some(function(e){return"."===e}))return this.inputPatternIncludes.setValue(""),void this.searchWidget.focus();this.showsFileTypes()||this.toggleQueryDetails(!0,!0),this.inputPatternIncludes.setValue(i.join(", ")),this.searchWidget.focus(!1)},t.prototype.onQueryChanged=function(e){var i=this,n=this.searchWidget.searchInput.getRegex(),r=this.searchWidget.searchInput.getWholeWords(),o=this.searchWidget.searchInput.getCaseSensitive(),s=this.searchWidget.searchInput.getValue(),a=this.inputPatternExcludes.getValue().trim(),c=this.inputPatternIncludes.getValue().trim(),l=this.inputPatternExcludes.useExcludesAndIgnoreFiles();if(0!==s.length){var u,d={pattern:s,isRegExp:n,isCaseSensitive:o,isWordMatch:r},h=this.inputPatternExcludes.getValue(),p=this.inputPatternIncludes.getValue(),f=d.isRegExp?1e4:250,g={_reason:"searchView",extraFileResources:j.getOutOfWorkspaceEditorResources(this.editorService,this.contextService),maxResults:t.MAX_TEXT_RESULTS,disregardIgnoreFiles:!l||void 0,disregardExcludeSettings:!l||void 0,excludePattern:h,includePattern:p,previewOptions:{matchLines:1,charsPerLine:f},isSmartCase:this.configurationService.getValue().search.smartCase,expandPatterns:!0},v=this.contextService.getWorkspace().folders,m=function(e){i.searchWidget.searchInput.showMessage({content:e.message,type:3}),i.viewModel.searchResult.clear()};try{u=this.queryBuilder.text(d,v.map(function(e){return e.uri}),g)}catch(e){return void m(e)}this.validateQuery(u).then(function(){i.onQueryTriggered(u,g,a,c),e||i.searchWidget.focus(!1)},m)}},t.prototype.validateQuery=function(e){var t=this,i=e.folderQueries.map(function(e){return t.fileService.existsFile(e.folder)});return Promise.resolve(i).then(function(t){var i=e.folderQueries.filter(function(e,i){return t[i]});if(e.folderQueries.length&&!i.length){var n=e.folderQueries[0].folder.fsPath,r=v.localize(23,null,n);return Promise.reject(new Error(r))}e.folderQueries=i})},t.prototype.onQueryTriggered=function(e,t,i,n){var r=this;this.searchWidget.searchInput.onSearchSubmit(),this.inputPatternExcludes.onSearchSubmit(),this.inputPatternIncludes.onSearchSubmit(),this.viewModel.cancelSearch(),this.currentSearchQ=this.currentSearchQ.then(function(){return r.doSearch(e,t,i,n)}).then(function(){},function(){})},t.prototype.doSearch=function(e,t,n,o){var a=this,c=this.progressService.show(!0);this.searchWidget.searchInput.clearMessage(),this.searching=!0,setTimeout(function(){a.searching&&(a.updateActions(),a.updateTitleArea())},2e3),this.showEmptyStage();var l=function(e){if(a.searching=!1,c.done(),a.onSearchResultsChanged(),"alwaysCollapse"!==a.configurationService.getValue("search").collapseResults&&1===a.viewModel.searchResult.matches().length){var t=a.viewModel.searchResult.matches()[0];t.count()<50&&a.tree.expand(t)}a.viewModel.replaceString=a.searchWidget.getReplaceValue(),a.searchSubmitted=!0,a.updateActions(),a.updateTitleArea();var s=!a.viewModel.searchResult.isEmpty();if(e&&e.limitHit&&a.searchWidget.searchInput.showMessage({content:v.localize(24,null),type:2}),s)a.viewModel.searchResult.toggleHighlights(a.isVisible()),r.status(v.localize(34,null,a.viewModel.searchResult.count(),a.viewModel.searchResult.fileCount()));else{var l=!!n,u=!!o,d=void 0;d=e?u&&l?v.localize(26,null,o,n):u?v.localize(27,null,o):l?v.localize(28,null,n):v.localize(29,null):v.localize(25,null),r.status(d),i.hide(a.resultsElement);var h=a.clearMessage(),p=i.append(h,ee("p",void 0,d));if(e)if(u||l){g=i.append(p,ee("a.pointer.prominent",{tabindex:0},v.localize(31,null)));a.messageDisposables.push(i.addDisposableListener(g,i.EventType.CLICK,function(e){i.EventHelper.stop(e,!1),a.inputPatternExcludes.setValue(""),a.inputPatternIncludes.setValue(""),a.onQueryChanged()}))}else{var f=i.append(p,ee("a.pointer.prominent",{tabindex:0},v.localize(32,null)));a.addClickEvents(f,a.onOpenSettings)}else{var g=i.append(p,ee("a.pointer.prominent",void 0,v.localize(30,null)));a.messageDisposables.push(i.addDisposableListener(g,i.EventType.CLICK,function(e){i.EventHelper.stop(e,!1),a.onQueryChanged()}))}if(e){i.append(p,ee("span",void 0," - "));var m=i.append(p,ee("a.pointer.prominent",{tabindex:0},v.localize(33,null)));a.addClickEvents(m,a.onLearnMore)}1===a.contextService.getWorkbenchState()&&a.showSearchWithoutFolderMessage()}},u=0,d=setInterval(function(){if(a.searching){var e=a.viewModel.searchResult.fileCount();u!==e&&(u=e,a.refreshAndUpdateCount()),e>0&&a.updateActions()}else window.clearInterval(d)},100);return this.searchWidget.setReplaceAllActionState(!1),this.viewModel.search(e).then(l,function(e){return s.isPromiseCanceledError(e)?l(null):(a.searching=!1,a.updateActions(),a.updateTitleArea(),c.done(),a.searchWidget.searchInput.showMessage({content:e.message,type:3}),a.viewModel.searchResult.clear(),e.code!==k.SearchErrorCode.regexParseError||a.configurationService.getValue("search.usePCRE2")||a.showPcre2Hint(),Promise.resolve())})},t.prototype.showPcre2Hint=function(){var e=this;this.globalMemento.disablePcre2Hint||this.notificationService.prompt(x.Severity.Info,v.localize(35,null),[{label:v.localize(36,null),run:function(){return e.globalMemento.disablePcre2Hint=!0},isSecondary:!0},{label:v.localize(37,null),run:function(){return e.openSettings("search.usePCRE2")}}])},t.prototype.openSettings=function(e){var t={query:e};return 1!==this.contextService.getWorkbenchState()?this.preferencesService.openWorkspaceSettings(void 0,t):this.preferencesService.openGlobalSettings(void 0,t)},t.prototype.updateSearchResultCount=function(e){var t=this.viewModel.searchResult.fileCount();this.hasSearchResultsKey.set(t>0);var n="none"===this.messagesElement.style.display;if(t>0){var r=this.clearMessage(),o=this.buildResultCountMessage(this.viewModel.searchResult.count(),t);e&&(o+=v.localize(38,null)),i.append(r,ee("p",void 0,o)),this.reLayout()}else n||i.hide(this.messagesElement)},t.prototype.buildResultCountMessage=function(e,t){return 1===e&&1===t?v.localize(39,null,e,t):1===e?v.localize(40,null,e,t):1===t?v.localize(41,null,e,t):v.localize(42,null,e,t)},t.prototype.showSearchWithoutFolderMessage=function(){var e=this;this.searchWithoutFolderMessageElement=this.clearMessage();var t=i.append(this.searchWithoutFolderMessageElement,ee("p",void 0,v.localize(43,null))),n=i.append(t,ee("a.pointer.prominent",{tabindex:0},v.localize(44,null)));this.messageDisposables.push(i.addDisposableListener(n,i.EventType.CLICK,function(t){i.EventHelper.stop(t,!1);var n=d.isMacintosh?A.OpenFileFolderAction:A.OpenFolderAction,r=e.instantiationService.createInstance(n,n.ID,n.LABEL);e.actionRunner.run(r).then(function(){r.dispose()},function(e){r.dispose(),s.onUnexpectedError(e)})}))},t.prototype.showEmptyStage=function(){this.searchSubmitted=!1,this.updateActions(),i.hide(this.messagesElement),i.show(this.resultsElement),this.currentSelectedFileMatch=null},t.prototype.onFocus=function(e,t,i,n){return e instanceof G.Match?this.configurationService.getValue().search.useReplacePreview&&this.viewModel.isReplaceActive()&&this.viewModel.replaceString?this.replaceService.openReplacePreview(e,t,i,n):this.open(e,t,i,n):(this.viewModel.searchResult.rangeHighlightDecorations.removeHighlightRange(),Promise.resolve(!0))},t.prototype.open=function(e,t,i,n){var r=this,o=this.getSelectionFrom(e),a=e instanceof G.Match?e.parent().resource():e.resource();return this.editorService.openEditor({resource:a,options:{preserveFocus:t,pinned:n,selection:o,revealIfVisible:!0}},i?q.SIDE_GROUP:q.ACTIVE_GROUP).then(function(i){return i&&e instanceof G.Match&&t?r.viewModel.searchResult.rangeHighlightDecorations.highlightRange(i.getControl().getModel(),e.range()):r.viewModel.searchResult.rangeHighlightDecorations.removeHighlightRange(),i?r.editorGroupsService.activateGroup(i.group):Promise.resolve(null)},s.onUnexpectedError)},t.prototype.getSelectionFrom=function(e){var t=null;if(e instanceof G.Match&&(t=e),e instanceof G.FileMatch&&e.count()>0&&(t=e.matches()[e.matches().length-1]),t){var i=t.range();if(this.viewModel.isReplaceActive()&&this.viewModel.replaceString){var n=t.replaceString;return{startLineNumber:i.startLineNumber,startColumn:i.startColumn,endLineNumber:i.startLineNumber,endColumn:i.startColumn+n.length}}return i}},t.prototype.onUntitledDidChangeDirty=function(e){if(this.viewModel&&!this.untitledEditorService.isDirty(e))for(var t=this.viewModel.searchResult.matches(),i=0,n=t.length;i0,a=Array.isArray(i)&&i.length>0;return a||s?a&&!s&&Array.isArray(i)?this.doAddFolders(i,e,n):s&&!a?this.removeFolders(o):this.includesSingleFolderWorkspace(o)?this.createAndEnterWorkspace(i):3!==this.contextService.getWorkbenchState()?this.doAddFolders(i,e,n):this.doUpdateFolders(i,o,e,n):Promise.resolve()},e.prototype.doUpdateFolders=function(e,t,i,n){var r=this;return void 0===n&&(n=!1),this.contextService.updateFolders(e,t,i).then(function(){return null},function(e){return n?Promise.reject(e):r.handleWorkspaceConfigurationEditingError(e)})},e.prototype.addFolders=function(e,t){return void 0===t&&(t=!1),this.doAddFolders(e,void 0,t)},e.prototype.doAddFolders=function(e,t,i){var n=this;void 0===i&&(i=!1);var r=this.contextService.getWorkbenchState();if(3!==r){var o=this.contextService.getWorkspace().folders.map(function(e){return{uri:e.uri}});return o.splice.apply(o,["number"==typeof t?t:o.length,0].concat(e)),o=b.distinct(o,function(e){return _.isLinux?e.uri.toString():e.uri.toString().toLowerCase()}),1===r&&0===o.length||2===r&&1===o.length?Promise.resolve():this.createAndEnterWorkspace(o)}return this.contextService.addFolders(e,t).then(function(){return null},function(e){return i?Promise.reject(e):n.handleWorkspaceConfigurationEditingError(e)})},e.prototype.removeFolders=function(e,t){var i=this;return void 0===t&&(t=!1),this.includesSingleFolderWorkspace(e)?this.createAndEnterWorkspace([]):this.contextService.removeFolders(e).then(function(){return null},function(e){return t?Promise.reject(e):i.handleWorkspaceConfigurationEditingError(e)})},e.prototype.includesSingleFolderWorkspace=function(e){if(2===this.contextService.getWorkbenchState()){var t=this.contextService.getWorkspace().folders[0];return e.some(function(e){return S.isEqual(e,t.uri)})}return!1},e.prototype.createAndEnterWorkspace=function(e,t){return r(this,void 0,void 0,function(){var i;return o(this,function(n){switch(n.label){case 0:return t&&!this.isValidTargetWorkspacePath(t)?[2,Promise.reject(null)]:[4,this.workspaceService.createUntitledWorkspace(e)];case 1:return i=n.sent(),t?[4,this.saveWorkspaceAs(i,t)]:[3,3];case 2:return n.sent(),[3,4];case 3:t=i.configPath,n.label=4;case 4:return[2,this.enterWorkspace(t)]}})})},e.prototype.saveAndEnterWorkspace=function(e){return r(this,void 0,void 0,function(){var t;return o(this,function(i){switch(i.label){case 0:return this.isValidTargetWorkspacePath(e)&&(t=this.getCurrentWorkspaceIdentifier())?[4,this.saveWorkspaceAs(t,e)]:[2,Promise.reject(null)];case 1:return i.sent(),[2,this.enterWorkspace(e)]}})})},e.prototype.isValidTargetWorkspacePath=function(e){return r(this,void 0,void 0,function(){var t;return o(this,function(i){switch(i.label){case 0:return[4,this.windowsService.getWindows()];case 1:return i.sent().some(function(t){return!!t.workspace&&S.isEqual(t.workspace.configPath,e)})?(t={type:"info",buttons:[n.localize(7,null)],message:n.localize(8,null,S.basename(e)),detail:n.localize(9,null),noLink:!0},[2,this.windowService.showMessageBox(t).then(function(){return!1})]):[2,Promise.resolve(!0)]}})})},e.prototype.saveWorkspaceAs=function(e,t){return r(this,void 0,void 0,function(){var i,n,r;return o(this,function(o){switch(o.label){case 0:return i=e.configPath,S.isEqual(i,t)?[2,Promise.resolve(null)]:[4,this.fileSystemService.resolveContent(i)];case 1:return n=o.sent(),r=l.rewriteWorkspaceFileForNewLocation(n.value,i,t),[4,this.fileSystemService.createFile(t,r,{overwrite:!0})];case 2:return o.sent(),[2]}})})},e.prototype.handleWorkspaceConfigurationEditingError=function(e){switch(e.code){case 1:return this.onInvalidWorkspaceConfigurationFileError(),Promise.resolve();case 0:return this.onWorkspaceConfigurationFileDirtyError(),Promise.resolve()}return this.notificationService.error(e.message),Promise.resolve()},e.prototype.onInvalidWorkspaceConfigurationFileError=function(){var e=n.localize(10,null);this.askToOpenWorkspaceConfigurationFile(e)},e.prototype.onWorkspaceConfigurationFileDirtyError=function(){var e=n.localize(11,null);this.askToOpenWorkspaceConfigurationFile(e)},e.prototype.askToOpenWorkspaceConfigurationFile=function(e){var t=this;this.notificationService.prompt(C.Severity.Error,e,[{label:n.localize(12,null),run:function(){return t.commandService.executeCommand("workbench.action.openWorkspaceConfigFile")}}])},e.prototype.enterWorkspace=function(e){var t=this;if(this.environmentService.extensionTestsLocationURI)return Promise.reject(new Error("Entering a new workspace is not possible in tests."));this.extensionService.stopExtensionHost();var i=!1,n=function(){t.windowService.getConfiguration().remoteAuthority&&t.windowService.reloadWindow(),t.extensionService.startExtensionHost(),i=!0};return this.windowService.enterWorkspace(e).then(function(e){return e?t.migrate(e.workspace).then(function(){return t.backupFileService instanceof m.BackupFileService&&t.backupFileService.initialize(e.backupPath),t.contextService.initialize(e.workspace,n)}):Promise.resolve()}).then(void 0,function(e){return i||n(),Promise.reject(e)})},e.prototype.migrate=function(e){var t=this;return this.migrateStorage(e).then(function(){if(2===t.contextService.getWorkbenchState())return t.migrateWorkspaceSettings(e)})},e.prototype.migrateStorage=function(e){return this.storageService.migrate(e)},e.prototype.migrateWorkspaceSettings=function(e){return this.doCopyWorkspaceSettings(e,function(e){return 2===e.scope})},e.prototype.copyWorkspaceSettings=function(e){return this.doCopyWorkspaceSettings(e)},e.prototype.doCopyWorkspaceSettings=function(e,t){for(var i=h.Registry.as(d.Extensions.Configuration).getConfigurationProperties(),n={},r=0,o=this.workspaceConfigurationService.keys().workspace;r=0;i--){var n=e[i],r=t[i];if(n.scope!==r.scope)return!0;var o=n.settings,s=r.settings;if(o&&s){if(o.fontStyle!==s.fontStyle||o.foreground!==s.foreground||o.background!==s.background)return!0}else if(!o||!s)return!0}return!1},h.prototype._handleGrammarExtensionPointUser=function(e,t,n){if(!t.language||"string"==typeof t.language&&this._modeService.isRegisteredMode(t.language))if(t.scopeName&&"string"==typeof t.scopeName)if(t.path&&"string"==typeof t.path)if(!t.injectTo||Array.isArray(t.injectTo)&&!t.injectTo.some(function(e){return"string"!=typeof e}))if(!t.embeddedLanguages||d.isObject(t.embeddedLanguages))if(!t.tokenTypes||d.isObject(t.tokenTypes)){var r=u.joinPath(e,t.path);if(u.isEqualOrParent(r,e)||n.warn(i.localize(6,null,C.grammarsExtPoint.name,r.path,e.path)),this._scopeRegistry.register(t.scopeName,r,t.embeddedLanguages,t.tokenTypes),t.injectTo){for(var o=0,s=t.injectTo;o0,[4,this._getOrCreateGrammarRegistry()];case 1:return v=o.sent(),m=v[0],y=v[1],[4,m.loadGrammarWithConfiguration(t,f,{embeddedLanguages:r,tokenTypes:n.tokenTypes})];case 2:return b=o.sent(),[2,{languageId:f,grammar:b,initialState:y,containsEmbeddedLanguages:g}]}})})},h=p([f(0,y.IModeService),f(1,E.IWorkbenchThemeService),f(2,b.IFileService),f(3,S.INotificationService),f(4,_.ILogService),f(5,D.IConfigurationService)],h)}(x.Disposable);t.TextMateService=R;var O=function(){function e(e,t,i,n,r,o,s){this.notificationService=o,this.configurationService=s,this._scopeRegistry=e,this._languageId=t,this._grammar=i,this._initialState=n,this._containsEmbeddedLanguages=r,this._seenLanguages=[],this._maxTokenizationLineLength=s.getValue("editor.maxTokenizationLineLength")}return e.prototype.getInitialState=function(){return this._initialState},e.prototype.tokenize=function(e,t,i){throw new Error("Not supported!")},e.prototype.tokenize2=function(e,t,n){if(0!==n)throw new Error("Unexpected: offsetDelta should be 0.");if(e.length>=this._maxTokenizationLineLength)return this._tokenizationWarningAlreadyShown||(this._tokenizationWarningAlreadyShown=!0,this.notificationService.warn(i.localize(9,null))),console.log("Line ("+e.substr(0,15)+"...): longer than "+this._maxTokenizationLineLength+" characters, tokenization skipped."),v.nullTokenize2(this._languageId,e,t,n);var r,o=this._grammar.tokenizeLine2(e,t);if(this._containsEmbeddedLanguages)for(var s=this._seenLanguages,a=o.tokens,c=0,l=a.length>>>1;c>16||33188;return[448,56,7].map(function(e){return t&e}).reduce(function(e,t){return e+t},61440&t)}(d);l=o.createCancelablePromise(function(e){return g.queue(function(){return m.then(function(o){return function(e,t,o,a,c,l){var d=n.dirname(t),h=n.join(a,d);if(0!==h.indexOf(a))return Promise.reject(new Error(i.localize(0,null,t)));var p,f=n.join(a,t);return u.Event.once(l.onCancellationRequested)(function(){p&&p.destroy()}),Promise.resolve(s.mkdirp(h,void 0,l)).then(function(){return new Promise(function(t,i){if(!l.isCancellationRequested)try{(p=r.createWriteStream(f,{mode:o})).once("close",function(){return t()}),p.once("error",i),e.once("error",i),e.pipe(p)}catch(e){i(e)}})})}(o,h,y,t,0,e).then(function(){return v(e)})})}).then(null,f)})}}else v(c)})})}function p(e,t){return void 0===t&&(t=!1),o.nfcall(c.open,e,t?{lazyEntries:!0}:void 0).then(void 0,function(e){return Promise.reject(function(e){if(e instanceof d)return e;var t=void 0;return/end of central directory record signature not found/.test(e.message)&&(t="CorruptZip"),new d(t,e)}(e))})}t.ExtractError=d,t.zip=function(e,t){return new Promise(function(i,n){var o=new l.ZipFile;t.forEach(function(e){e.contents?o.addBuffer("string"==typeof e.contents?Buffer.from(e.contents,"utf8"):e.contents,e.path):e.localPath&&o.addFile(e.localPath,e.path)}),o.end();var s=r.createWriteStream(e);o.outputStream.pipe(s),o.outputStream.once("error",n),s.once("error",n),s.once("finish",function(){return i(e)})})},t.extract=function(e,t,i,n){void 0===i&&(i={});var r=new RegExp(i.sourcePath?"^"+i.sourcePath:""),o=p(e,!0);return i.overwrite&&(o=o.then(function(e){return s.rimraf(t).then(function(){return e})})),o.then(function(e){return h(e,t,{sourcePathRegex:r},n)})},t.buffer=function(e,t){return function(e,t){return p(e).then(function(e){return new Promise(function(n,r){e.on("entry",function(i){i.fileName===t&&o.ninvoke(e,e.openReadStream,i).then(function(e){return n(e)},function(e){return r(e)})}),e.once("close",function(){return r(new Error(i.localize(2,null,t)))})})})}(e,t).then(function(e){return new Promise(function(t,i){var n=[];e.once("error",i),e.on("data",function(e){return n.push(e)}),e.on("end",function(){return t(Buffer.concat(n))})})})}}),define(i[1014],n([0,1,1049,479]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getManifest=function(e){return i.buffer(e,"extension/package.json").then(function(e){try{return JSON.parse(e.toString("utf8"))}catch(e){throw new Error(n.localize(0,null))}})}}),define(i[871],n([0,1,5,111,17,103,2,18,36,293,1014,64,123,609,730,39]),function(e,t,i,n,s,c,l,u,d,h,g,v,m,y,b,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var S=function(e){function t(t,n,r,o,s){var a=e.call(this)||this;return a.extensionManagementServerService=t,a.extensionGalleryService=n,a.configurationService=r,a.remoteAgentService=o,a.logService=s,a.servers=a.extensionManagementServerService.remoteExtensionManagementServer?[a.extensionManagementServerService.localExtensionManagementServer,a.extensionManagementServerService.remoteExtensionManagementServer]:[a.extensionManagementServerService.localExtensionManagementServer],a.onInstallExtension=a._register(a.servers.reduce(function(e,t){return e.add(t.extensionManagementService.onInstallExtension),e},new i.EventMultiplexer)).event,a.onDidInstallExtension=a._register(a.servers.reduce(function(e,t){return e.add(t.extensionManagementService.onDidInstallExtension),e},new i.EventMultiplexer)).event,a.onUninstallExtension=a._register(a.servers.reduce(function(e,t){return e.add(t.extensionManagementService.onUninstallExtension),e},new i.EventMultiplexer)).event,a.onDidUninstallExtension=a._register(a.servers.reduce(function(e,t){return e.add(t.extensionManagementService.onDidUninstallExtension),e},new i.EventMultiplexer)).event,a}return a(t,e),t.prototype.getInstalled=function(e){return Promise.all(this.servers.map(function(t){return t.extensionManagementService.getInstalled(e)})).then(function(e){return s.flatten(e)})},t.prototype.uninstall=function(e,t){return r(this,void 0,void 0,function(){var i;return o(this,function(n){switch(n.label){case 0:return this.extensionManagementServerService.remoteExtensionManagementServer?(i=this.getServer(e))?[4,this.hasToSyncExtensions()]:[2,Promise.reject("Invalid location "+e.location.toString())]:[3,2];case 1:return n.sent()||c.isLanguagePackExtension(e.manifest)?[2,this.uninstallEverywhere(e,t)]:[2,this.uninstallInServer(e,i,t)];case 2:return[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.uninstall(e,t)]}})})},t.prototype.uninstallEverywhere=function(e,t){return r(this,void 0,void 0,function(){var t,i,n,r;return o(this,function(o){switch(o.label){case 0:return(t=this.getServer(e))?(i=t.extensionManagementService.uninstall(e),[4,(n=t===this.extensionManagementServerService.localExtensionManagementServer?this.extensionManagementServerService.remoteExtensionManagementServer:this.extensionManagementServerService.localExtensionManagementServer).extensionManagementService.getInstalled(1)]):[2,Promise.reject("Invalid location "+e.location.toString())];case 1:return r=o.sent(),(e=r.filter(function(t){return m.areSameExtensions(t.identifier,e.identifier)})[0])?[4,n.extensionManagementService.uninstall(e)]:[3,3];case 2:o.sent(),o.label=3;case 3:return[2,i]}})})},t.prototype.uninstallInServer=function(e,t,i){return r(this,void 0,void 0,function(){var n,r,s=this;return o(this,function(o){switch(o.label){case 0:return t!==this.extensionManagementServerService.localExtensionManagementServer?[3,2]:[4,this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.getInstalled(1)];case 1:if(n=o.sent(),(r=n.filter(function(t){return!b.isUIExtension(t.manifest,s.configurationService)&&t.manifest.extensionDependencies&&t.manifest.extensionDependencies.some(function(t){return m.areSameExtensions({id:t},e.identifier)})})).length)return[2,Promise.reject(new Error(this.getDependentsErrorMessage(e,r)))];o.label=2;case 2:return[2,t.extensionManagementService.uninstall(e,i)]}})})},t.prototype.getDependentsErrorMessage=function(e,t){return 1===t.length?y.localize(0,null,e.manifest.displayName||e.manifest.name,t[0].manifest.displayName||t[0].manifest.name):2===t.length?y.localize(1,null,e.manifest.displayName||e.manifest.name,t[0].manifest.displayName||t[0].manifest.name,t[1].manifest.displayName||t[1].manifest.name):y.localize(2,null,e.manifest.displayName||e.manifest.name,t[0].manifest.displayName||t[0].manifest.name,t[1].manifest.displayName||t[1].manifest.name)},t.prototype.reinstallFromGallery=function(e){var t=this.getServer(e);return t?t.extensionManagementService.reinstallFromGallery(e):Promise.reject("Invalid location "+e.location.toString())},t.prototype.updateMetadata=function(e,t){var i=this.getServer(e);return i?i.extensionManagementService.updateMetadata(e,t):Promise.reject("Invalid location "+e.location.toString())},t.prototype.zip=function(e){throw new Error("Not Supported")},t.prototype.unzip=function(e,t){return Promise.all(this.servers.map(function(i){return i.extensionManagementService.unzip(e,t)})).then(function(e){return e[0]})},t.prototype.install=function(e){return r(this,void 0,void 0,function(){var t,i,n;return o(this,function(r){switch(r.label){case 0:return this.extensionManagementServerService.remoteExtensionManagementServer?[4,this.hasToSyncExtensions()]:[3,6];case 1:return t=r.sent(),[4,g.getManifest(e.fsPath)];case 2:return i=r.sent(),t||c.isLanguagePackExtension(i)?[4,Promise.all(this.servers.map(function(t){return t.extensionManagementService.install(e)}))]:[3,4];case 3:return[2,r.sent()[0]];case 4:return b.isUIExtension(i,this.configurationService)?[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.install(e)]:(n=this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.install(e),[4,this.installUIDependencies(i)]);case 5:return r.sent(),[2,n];case 6:return[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.install(e)]}})})},t.prototype.installFromGallery=function(e){return r(this,void 0,void 0,function(){var t,i,n,r;return o(this,function(o){switch(o.label){case 0:return this.extensionManagementServerService.remoteExtensionManagementServer?[4,Promise.all([this.extensionGalleryService.getManifest(e,d.CancellationToken.None),this.hasToSyncExtensions()])]:[3,4];case 1:return t=o.sent(),i=t[0],n=t[1],i?n||c.isLanguagePackExtension(i)?[2,Promise.all(this.servers.map(function(t){return t.extensionManagementService.installFromGallery(e)})).then(function(){})]:b.isUIExtension(i,this.configurationService)?[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.installFromGallery(e)]:(r=this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.installFromGallery(e),[4,this.installUIDependencies(i)]):[3,3];case 2:return o.sent(),[2,r];case 3:return this.logService.info("Manifest was not found. Hence installing only in local server"),[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.installFromGallery(e)];case 4:return[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.installFromGallery(e)]}})})},t.prototype.installUIDependencies=function(e){return r(this,void 0,void 0,function(){var t,i=this;return o(this,function(n){switch(n.label){case 0:return e.extensionDependencies&&e.extensionDependencies.length?[4,this.extensionGalleryService.loadAllDependencies(e.extensionDependencies.map(function(e){return{id:e}}),d.CancellationToken.None)]:[3,3];case 1:return(t=n.sent()).length?[4,Promise.all(t.map(function(e){return r(i,void 0,void 0,function(){var t;return o(this,function(i){switch(i.label){case 0:return[4,this.extensionGalleryService.getManifest(e,d.CancellationToken.None)];case 1:return(t=i.sent())&&b.isUIExtension(t,this.configurationService)?[4,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.installFromGallery(e)]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}})})}))]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.getExtensionsReport=function(){return this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.getExtensionsReport()},t.prototype.getServer=function(e){return this.extensionManagementServerService.getExtensionManagementServer(e.location)},t.prototype.hasToSyncExtensions=function(){return r(this,void 0,void 0,function(){var e,t;return o(this,function(i){switch(i.label){case 0:return this.extensionManagementServerService.remoteExtensionManagementServer&&(e=this.remoteAgentService.getConnection())?[4,e.getEnvironment()]:[2,!1];case 1:return(t=i.sent())?[2,t.syncExtensions]:[2,!1]}})})},t=p([f(0,n.IExtensionManagementServerService),f(1,n.IExtensionGalleryService),f(2,u.IConfigurationService),f(3,h.IRemoteAgentService),f(4,v.ILogService)],t)}(l.Disposable);t.MultiExtensionManagementService=S,_.registerSingleton(n.IExtensionManagementService,S)}),define(i[884],n([0,1,334,39,835,38,801,93,694,15,377,42,749,97,750,130,865,51,717,125,680,111,891,1145,431,1060,999,1072,383,980,1212,1e3,1106,430,1188,1187,1064,444,1111,1071,80,1154,288,1003,1170,390,871,1073,1197,378,1105,1221,436,1075,1229,1227,1135,1201,1005,1215,382,1007,157,403,963,960,404,1086,1117,1195,1070,452,1078,424,1128,1205,1079,1165,940,965]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f,g,v,m,y,b,_,S,C){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.registerSingleton(o.IMenuService,s.MenuService,!0),n.registerSingleton(a.IOpenerService,c.OpenerService,!0),n.registerSingleton(b.IEditorWorkerService,_.EditorWorkerServiceImpl),n.registerSingleton(i.IMarkerDecorationsService,r.MarkerDecorationsService),n.registerSingleton(l.IContextKeyService,u.ContextKeyService),n.registerSingleton(d.IModelService,h.ModelServiceImpl,!0),n.registerSingleton(S.IExtensionEnablementService,C.ExtensionEnablementService,!0),n.registerSingleton(p.ITextResourceConfigurationService,f.TextResourceConfigurationService),n.registerSingleton(g.IAccessibilityService,v.AccessibilityService,!0),n.registerSingleton(m.IContextViewService,y.ContextViewService,!0)}),define(i[1241],n([0,1,1211,889,799,884]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}(i)})}).call(this); +(function(){var e,t,i=["require","exports","vs/base/common/lifecycle","vs/nls!vs/editor/codesandbox.editor.main","vs/nls","vs/base/common/event","vs/platform/instantiation/common/instantiation","vs/base/browser/dom","vs/editor/common/core/range","vs/base/common/strings","vs/base/common/uri","vs/base/common/errors","vs/base/common/platform","vs/base/common/async","vs/css!vs/editor/codesandbox.editor.main","vs/platform/contextkey/common/contextkey","vs/platform/theme/common/themeService","vs/base/common/arrays","vs/platform/configuration/common/configuration","vs/platform/registry/common/platform","vs/editor/browser/editorExtensions","vs/base/common/resources","vs/platform/theme/common/colorRegistry","vs/base/common/types","vs/workbench/services/editor/common/editorService","vs/base/common/objects","vs/platform/files/common/files","vs/editor/common/core/position","vs/platform/notification/common/notification","vs/base/common/actions","vs/editor/common/modes","vs/platform/commands/common/commands","vs/platform/workspace/common/workspace","vs/base/common/network","vs/workbench/common/editor","vs/base/common/path","vs/base/common/cancellation","vs/platform/telemetry/common/telemetry","vs/platform/actions/common/actions","vs/platform/instantiation/common/extensions","vs/platform/storage/common/storage","vs/base/common/map","vs/editor/common/services/modelService","vs/platform/windows/common/windows","vs/platform/keybinding/common/keybinding","vs/platform/environment/common/environment","vs/editor/common/services/modeService","vs/editor/common/core/selection","vs/editor/common/editorContextKeys","vs/base/common/color","vs/workbench/services/textfile/common/textfiles","vs/platform/contextview/browser/contextView","vs/workbench/api/node/extHost.protocol","vs/editor/common/model/textModel","vs/base/common/keyCodes","vs/workbench/api/electron-browser/extHostCustomers","vs/workbench/services/editor/common/editorGroupsService","vs/workbench/services/extensions/common/extensions","vs/platform/theme/common/styler","vs/editor/browser/services/codeEditorService","vs/base/browser/keyboardEvent","vs/base/browser/ui/actionbar/actionbar","vs/base/browser/fastDomNode","vs/platform/configuration/common/configurationRegistry","vs/platform/log/common/log","vs/editor/common/services/resolverService","vs/workbench/services/layout/browser/layoutService","vs/platform/label/common/label","vs/base/browser/browser","vs/base/browser/ui/widget","vs/workbench/contrib/files/common/files","vs/editor/common/core/editOperation","vs/platform/quickOpen/common/quickOpen","vs/workbench/common/actions","vs/platform/keybinding/common/keybindingsRegistry","vs/editor/browser/editorBrowser","vs/base/browser/mouseEvent","vs/editor/common/view/editorColorRegistry","vs/platform/list/browser/listService","vs/workbench/common/theme","vs/workbench/services/untitled/common/untitledEditorService","vs/base/common/labels","vs/workbench/services/viewlet/browser/viewlet","vs/base/common/json","vs/base/common/filters","vs/platform/lifecycle/common/lifecycle","vs/workbench/services/preferences/common/preferences","vs/platform/quickinput/common/quickInput","vs/editor/browser/view/viewPart","vs/editor/common/modes/languageConfigurationRegistry","vs/workbench/browser/quickopen","vs/platform/progress/common/progress","vs/base/common/iterator","vs/platform/opener/common/opener","vs/platform/dialogs/common/dialogs","vs/editor/common/model","vs/editor/common/controller/cursorCommon","vs/editor/common/services/resourceConfiguration","vs/platform/workspaces/common/workspaces","vs/base/common/collections","vs/base/parts/quickopen/browser/quickOpenModel","vs/base/browser/ui/aria/aria","vs/platform/clipboard/common/clipboardService","vs/platform/extensions/common/extensions","vs/base/browser/touch","vs/base/browser/event","vs/base/browser/ui/scrollbar/scrollableElement","vs/base/common/decorators","vs/workbench/services/extensions/common/extensionsRegistry","vs/workbench/services/search/common/search","vs/editor/common/config/editorOptions","vs/platform/extensionManagement/common/extensionManagement","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/workbench/browser/parts/editor/baseEditor","vs/base/common/htmlContent","vs/workbench/common/contributions","vs/base/common/errorMessage","vs/platform/instantiation/common/descriptors","vs/editor/contrib/snippet/snippetController2","vs/base/common/glob","vs/workbench/services/themes/common/workbenchThemeService","vs/platform/markers/common/markers","vs/base/browser/ui/list/listWidget","vs/platform/extensionManagement/common/extensionManagementUtil","vs/base/common/extpath","vs/editor/common/services/editorWorkerService","vs/base/browser/ui/inputbox/inputBox","vs/base/common/severity","vs/codesandbox/services/codesandbox/common/codesandbox","vs/editor/common/services/getIconClasses","vs/platform/accessibility/common/accessibility","vs/base/common/mime","vs/base/node/pfs","vs/editor/browser/services/bulkEditService","vs/base/browser/dnd","vs/base/common/idGenerator","vs/platform/product/node/product","vs/workbench/browser/editor","vs/editor/browser/core/editorState","vs/workbench/browser/parts/editor/editorCommands","vs/workbench/common/resources","vs/editor/browser/config/configuration","vs/editor/common/editorCommon","fs","vs/workbench/browser/dnd","vs/workbench/services/backup/common/backup","vs/editor/contrib/suggest/suggest","vs/base/browser/ui/iconLabel/iconLabel","vs/platform/instantiation/common/serviceCollection","vs/editor/common/modes/modesRegistry","vs/workbench/browser/labels","vs/editor/browser/view/dynamicViewOverlay","vs/workbench/services/panel/common/panelService","vs/workbench/browser/parts/editor/editor","vs/editor/browser/widget/codeEditorWidget","vs/editor/common/view/viewEvents","vs/base/node/extfs","vs/workbench/contrib/snippets/browser/snippets.contribution","vs/editor/common/core/characterClassifier","vs/workbench/browser/viewlet","vs/workbench/contrib/preferences/common/preferences","vs/base/browser/globalMouseMoveMonitor","vs/base/browser/ui/splitview/splitview","vs/editor/common/viewModel/viewModel","vs/workbench/common/views","vs/workbench/browser/actions","vs/editor/common/modes/languageConfiguration","vs/workbench/services/hash/common/hashService","vs/workbench/common/editor/resourceEditorInput","vs/editor/common/modes/nullMode","vs/base/node/encoding","vs/workbench/common/editor/diffEditorInput","vs/editor/common/commands/replaceCommand","vs/workbench/services/workspace/common/workspaceEditing","vs/platform/actions/browser/menuItemActionItem","vs/editor/common/view/renderingContext","vs/base/browser/htmlContentRenderer","vs/base/browser/ui/list/listView","vs/base/common/assert","vs/workbench/browser/parts/editor/textEditor","vs/base/browser/ui/sash/sash","vs/workbench/contrib/search/common/search","vs/editor/contrib/find/findModel","vs/workbench/contrib/search/common/replace","vs/base/common/comparers","vs/workbench/contrib/webview/electron-browser/webviewEditorInput","vs/base/common/scanCode","vs/platform/keybinding/common/resolvedKeybindingItem","vs/editor/contrib/snippet/snippetParser","vs/platform/configuration/common/configurationModels","vs/editor/contrib/codeAction/codeActionTrigger","vs/workbench/contrib/files/common/explorerModel","electron","vs/platform/statusbar/common/statusbar","vs/base/browser/ui/button/button","vs/workbench/browser/parts/quickopen/quickopen","vs/base/parts/ipc/node/ipc","vs/editor/common/controller/wordCharacterClassifier","vs/base/common/amd","vs/workbench/services/history/common/history","vs/workbench/contrib/files/common/editors/fileEditorInput","vs/workbench/common/editor/textEditorModel","vs/editor/common/viewModel/viewEventHandler","vs/workbench/contrib/search/common/searchModel","vs/workbench/services/files/node/watcher/common","vs/base/browser/ui/highlightedlabel/highlightedLabel","vs/workbench/services/configuration/common/configuration","vs/workbench/contrib/files/browser/fileCommands","vs/workbench/services/textfile/common/textFileEditorModel","vs/base/browser/ui/checkbox/checkbox","vs/platform/keybinding/common/keybindingResolver","vs/platform/telemetry/common/telemetryUtils","vs/editor/common/config/editorZoom","vs/base/browser/ui/menu/menu","vs/base/browser/ui/toolbar/toolbar","vs/base/parts/quickopen/common/quickOpenScorer","vs/editor/contrib/markdown/markdownRenderer","vs/base/browser/ui/tree/objectTree","vs/workbench/contrib/files/browser/fileActions","vs/workbench/contrib/webview/electron-browser/webviewEditorService","vs/editor/contrib/find/findController","vs/editor/contrib/message/messageController","vs/base/common/keybindingLabels","vs/editor/contrib/referenceSearch/peekViewWidget","vs/base/common/numbers","vs/workbench/contrib/search/common/constants","vs/platform/url/common/url","vs/workbench/contrib/search/browser/searchActions","vs/base/common/linkedList","vs/editor/contrib/documentSymbols/outlineModel","vs/base/common/stopwatch","vs/workbench/contrib/preferences/browser/preferencesWidgets","vs/editor/common/config/commonEditorConfig","vs/base/browser/ui/progressbar/progressbar","vs/base/parts/tree/browser/treeDefaults","vs/workbench/common/editor/untitledEditorInput","vs/editor/contrib/referenceSearch/referencesModel","vs/platform/browser/contextScopedHistoryWidget","vs/workbench/browser/parts/editor/breadcrumbs","vs/platform/remote/common/remoteHosts","vs/editor/common/core/uint","vs/workbench/services/preferences/common/preferencesModels","vs/base/common/jsonEdit","vs/base/common/marshalling","vs/workbench/browser/parts/views/panelViewlet","vs/workbench/common/editor/binaryEditorModel","os","vs/css!vs/workbench/browser/parts/quickinput/quickInput","vs/editor/common/model/textModelSearch","vs/editor/common/model/wordHelper","vs/workbench/common/component","vs/workbench/services/decorations/browser/decorations","child_process","vs/workbench/browser/part","vs/workbench/browser/parts/editor/sideBySideEditor","crypto","vs/workbench/contrib/codeEditor/browser/menuPreventer","vs/workbench/contrib/codeEditor/browser/selectionClipboard","vs/editor/contrib/suggest/suggestController","vs/editor/contrib/referenceSearch/referencesController","vs/workbench/contrib/preferences/browser/settingsWidgets","vs/editor/contrib/referenceSearch/referencesWidget","vs/platform/update/common/update","vs/editor/contrib/codeAction/codeActionCommands","vs/editor/browser/widget/embeddedCodeEditorWidget","vs/workbench/contrib/search/common/searchHistoryService","vs/editor/browser/widget/diffEditorWidget","vs/workbench/services/activity/common/activity","vs/editor/contrib/parameterHints/provideSignatureHelp","vs/workbench/services/broadcast/electron-browser/broadcastService","vs/editor/contrib/format/format","vs/workbench/services/configuration/common/jsonEditing","vs/editor/contrib/contextmenu/contextmenu","vs/editor/contrib/codeAction/codeAction","vs/editor/browser/controller/coreCommands","vs/workbench/api/shared/editor","vs/workbench/browser/parts/editor/binaryEditor","vs/base/common/performance","vs/platform/keybinding/common/baseResolvedKeybinding","vs/platform/contextkey/common/contextkeys","vs/editor/common/view/minimapCharRenderer","vs/editor/common/controller/cursorWordOperations","vs/editor/common/controller/cursorTypeOperations","vs/editor/common/commands/shiftCommand","vs/editor/common/core/lineTokens","vs/workbench/common/contextkeys","vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/base/common/jsonErrorMessages","vs/workbench/services/mode/common/workbenchModeService","vs/base/browser/ui/tree/abstractTree","vs/editor/contrib/folding/foldingRanges","vs/workbench/contrib/preferences/browser/settingsTreeModels","vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/workbench/services/remote/node/remoteAgentService","vs/editor/common/viewModel/prefixSumComputer","vs/workbench/contrib/search/common/queryBuilder","vs/editor/common/viewLayout/viewLineRenderer","vs/workbench/services/textMate/common/textMateService","vs/editor/common/viewLayout/lineDecorations","vs/editor/common/modes/supports/richEditBrackets","vs/editor/common/modes/supports","vs/workbench/browser/parts/editor/editorActions","vs/editor/common/core/token","vs/editor/browser/view/viewLayer","vs/codesandbox/services/codesandbox/inputs/ReactEditorInput","vs/editor/common/core/stringBuilder","vs/editor/browser/editorDom","vs/base/browser/ui/countBadge/countBadge","vs/base/node/console","vs/base/common/uuid","vs/base/common/keybindingParser","vs/base/common/range","vs/base/common/process","vs/base/browser/ui/scrollbar/scrollbarArrow","vs/base/browser/ui/tree/objectTreeModel","vs/base/common/functional","vs/base/common/diff/diff","vs/platform/layout/browser/layoutService","vs/workbench/browser/parts/quickinput/quickInputUtils","vs/platform/extensions/common/extensionHost","vs/workbench/browser/parts/statusbar/statusbar","vs/editor/browser/controller/textAreaState","vs/editor/browser/widget/diffNavigator","vs/base/common/worker/simpleWorker","vs/editor/browser/viewParts/margin/margin","vs/editor/common/commands/trimTrailingWhitespaceCommand","vs/base/common/hash","vs/workbench/common/editor/dataUriEditorInput","vs/workbench/common/editor/diffEditorModel","vs/workbench/common/editor/editorGroup","vs/workbench/common/editor/textDiffEditorModel","vs/editor/contrib/comment/blockCommentCommand","vs/editor/contrib/find/findState","vs/workbench/common/editor/resourceEditorModel","vs/editor/common/services/markersDecorationService","vs/editor/browser/controller/textAreaInput","vs/editor/contrib/folding/syntaxRangeProvider","vs/workbench/browser/composite","vs/workbench/browser/panel","vs/editor/common/modes/languageFeatureRegistry","vs/editor/contrib/format/formattingEdit","vs/platform/state/common/state","vs/editor/contrib/goToDefinition/clickLinkGesture","vs/editor/contrib/hover/hoverOperation","vs/editor/contrib/hover/hoverWidgets","vs/editor/contrib/indentation/indentUtils","vs/workbench/contrib/codeinset/common/codeInset","vs/workbench/contrib/extensions/common/extensions","vs/editor/contrib/smartSelect/bracketSelections","vs/workbench/contrib/output/common/output","vs/editor/common/controller/cursorMoveOperations","vs/workbench/contrib/preferences/browser/keybindingWidgets","vs/workbench/contrib/preferences/browser/settingsLayout","vs/editor/common/controller/cursorDeleteOperations","vs/base/node/decoder","vs/css!vs/base/browser/ui/grid/gridview","vs/editor/contrib/codeAction/codeActionModel","vs/editor/contrib/colorPicker/color","vs/editor/contrib/colorPicker/colorDetector","vs/editor/common/controller/cursorMoveCommands","vs/workbench/contrib/snippets/browser/snippetCompletionProvider","vs/workbench/contrib/snippets/browser/snippetsFile","vs/editor/contrib/folding/folding","vs/editor/common/modes/textToHtmlTokenizer","vs/workbench/common/editor/untitledEditorModel","vs/editor/contrib/goToDefinition/goToDefinition","vs/editor/contrib/linesOperations/linesOperations","vs/workbench/services/configuration/common/configurationModels","vs/css!vs/base/browser/ui/list/list","vs/base/browser/ui/octiconLabel/octiconLabel","vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode","vs/editor/contrib/wordOperations/wordOperations","vs/workbench/api/node/extHostTypeConverters","vs/base/node/flow","vs/workbench/browser/parts/editor/resourceViewer","vs/editor/common/viewModel/splitLinesCollection","vs/workbench/browser/parts/editor/binaryDiffEditor","vs/platform/contextkey/browser/contextKeyService","vs/workbench/browser/parts/editor/editorPicker","vs/workbench/contrib/search/browser/openSymbolHandler","vs/base/browser/ui/selectBox/selectBox","vs/base/browser/ui/scrollbar/abstractScrollbar","vs/workbench/api/common/jsonValidationExtensionPoint","vs/workbench/services/extensions/electron-browser/inactiveExtensionUrlHandler","vs/workbench/services/extensions/electron-browser/extensionHost","vs/workbench/services/extensions/node/proxyIdentifier","vs/base/browser/ui/scrollbar/scrollbarState","vs/workbench/api/electron-browser/mainThreadEditor","vs/workbench/api/electron-browser/mainThreadEditors","vs/workbench/api/electron-browser/mainThreadHeapService","vs/workbench/services/extensions/electron-browser/extensionService","vs/base/browser/ui/findinput/findInputCheckboxes","vs/editor/browser/viewParts/lines/viewLine","vs/editor/browser/controller/mouseTarget","vs/base/browser/ui/tree/indexTreeModel","vs/workbench/services/keybinding/common/windowsKeyboardMapper","vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/workbench/browser/actions/layoutActions","vs/base/node/config","vs/base/browser/iframe","vs/workbench/contrib/webview/electron-browser/webviewElement","vs/workbench/contrib/webview/electron-browser/webviewEditor","vs/base/common/errorsWithActions","vs/workbench/contrib/snippets/browser/snippetsService","vs/workbench/contrib/snippets/browser/tabCompletion","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase","vs/workbench/services/preferences/common/keybindingsEditorModel","vs/editor/contrib/find/findWidget","vs/base/browser/ui/grid/gridview","vs/workbench/contrib/preferences/browser/settingsTree","vs/workbench/services/preferences/common/preferencesEditorInput","vs/base/browser/ui/splitview/panelview","vs/css!vs/editor/contrib/documentSymbols/media/symbol-icons","vs/editor/contrib/multicursor/multicursor","vs/css!vs/editor/contrib/goToDefinition/goToDefinitionMouse","vs/workbench/services/search/common/searchHelpers","vs/platform/keybinding/common/abstractKeybindingService","vs/workbench/services/textMate/common/TMGrammars","vs/css!vs/workbench/browser/parts/editor/media/breadcrumbscontrol","vs/editor/common/standalone/standaloneBase","vs/editor/common/view/overviewZoneManager","vs/workbench/browser/parts/editor/textDiffEditor","vs/platform/keybinding/common/usLayoutResolvedKeybinding","vs/editor/contrib/snippet/snippetVariables","vs/workbench/browser/parts/quickopen/quickOpenController","vs/base/parts/ipc/node/ipc.cp","net","vs/editor/contrib/gotoError/gotoError","vs/workbench/contrib/files/browser/files","vs/base/node/stream","vs/workbench/services/configuration/node/jsonEditingService","vs/workbench/services/keybinding/common/keybindingEditing","vs/editor/contrib/goToDefinition/goToDefinitionCommands","vs/workbench/services/themes/common/colorThemeSchema","vs/workbench/services/themes/common/fileIconThemeData","vs/base/parts/tree/browser/treeImpl","vs/workbench/contrib/search/browser/openAnythingHandler","vs/workbench/services/themes/browser/colorThemeData","vs/platform/menubar/common/menubar","vs/workbench/api/electron-browser/mainThreadDocuments","vs/base/browser/ui/list/list","vs/editor/standalone/browser/simpleServices","vs/workbench/browser/parts/editor/breadcrumbsControl","vs/workbench/browser/parts/editor/titleControl","vs/workbench/services/editor/browser/editorService","vs/editor/common/config/fontInfo","vs/workbench/browser/parts/views/views","vs/workbench/api/node/extHostTypes","vs/base/parts/ipc/node/ipc.net","vs/base/common/scrollable","vs/workbench/contrib/search/browser/searchWidget","vs/workbench/services/progress/browser/progressService","vs/codesandbox/services/codesandbox/browser/codesandboxService","vs/workbench/browser/actions/workspaceCommands","vs/workbench/browser/actions/workspaceActions","vs/workbench/browser/parts/editor/breadcrumbsModel","vs/workbench/browser/parts/editor/editorWidgets","vs/workbench/contrib/files/browser/saveErrorHandler","vs/nls!vs/editor/contrib/referenceSearch/referenceSearch","vs/nls!vs/editor/contrib/referenceSearch/referencesController","vs/nls!vs/editor/contrib/referenceSearch/referencesModel","vs/css!vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/nls!vs/editor/contrib/referenceSearch/referencesTree","vs/nls!vs/editor/contrib/referenceSearch/referencesWidget","vs/nls!vs/editor/contrib/rename/rename","vs/nls!vs/editor/contrib/rename/renameInputField","vs/nls!vs/editor/contrib/smartSelect/smartSelect","vs/nls!vs/editor/contrib/snippet/snippetVariables","vs/nls!vs/editor/contrib/suggest/suggestController","vs/nls!vs/editor/contrib/suggest/suggestWidget","vs/nls!vs/editor/contrib/toggleTabFocusMode/toggleTabFocusMode","vs/nls!vs/editor/contrib/tokenization/tokenization","vs/nls!vs/editor/contrib/wordHighlighter/wordHighlighter","vs/nls!vs/editor/standalone/browser/simpleServices","vs/nls!vs/platform/actions/browser/menuItemActionItem","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/dialogs/common/dialogs","vs/nls!vs/platform/extensionManagement/common/extensionEnablementService","vs/nls!vs/platform/extensionManagement/common/extensionManagement","vs/nls!vs/platform/extensionManagement/node/extensionManagementUtil","vs/nls!vs/platform/extensions/node/extensionValidator","vs/nls!vs/platform/keybinding/common/abstractKeybindingService","vs/nls!vs/platform/label/common/label","vs/nls!vs/platform/list/browser/listService","vs/nls!vs/platform/markers/common/markers","vs/nls!vs/platform/menubar/electron-main/menubar","vs/nls!vs/platform/theme/common/colorRegistry","vs/nls!vs/platform/workspaces/common/workspaces","vs/nls!vs/workbench/api/common/configurationExtensionPoint","vs/nls!vs/workbench/api/common/jsonValidationExtensionPoint","vs/nls!vs/workbench/api/common/menusExtensionPoint","vs/nls!vs/workbench/api/electron-browser/mainThreadEditors","vs/nls!vs/workbench/api/electron-browser/mainThreadMessageService","vs/nls!vs/workbench/api/electron-browser/mainThreadSaveParticipant","vs/nls!vs/workbench/api/electron-browser/mainThreadWebview","vs/nls!vs/workbench/api/electron-browser/mainThreadWorkspace","vs/nls!vs/workbench/browser/actions/layoutActions","vs/nls!vs/workbench/browser/actions/workspaceActions","vs/nls!vs/workbench/browser/actions/workspaceCommands","vs/nls!vs/workbench/browser/parts/compositePart","vs/nls!vs/workbench/browser/parts/editor/binaryDiffEditor","vs/nls!vs/workbench/browser/parts/editor/binaryEditor","vs/nls!vs/workbench/browser/parts/editor/breadcrumbs","vs/nls!vs/workbench/browser/parts/editor/breadcrumbsControl","vs/nls!vs/workbench/browser/parts/editor/editor.contribution","vs/nls!vs/workbench/browser/parts/editor/editorActions","vs/nls!vs/workbench/browser/parts/editor/editorCommands","vs/nls!vs/workbench/browser/parts/editor/editorGroupView","vs/nls!vs/workbench/browser/parts/editor/editorPart","vs/nls!vs/workbench/browser/parts/editor/editorPicker","vs/nls!vs/workbench/browser/parts/editor/editorStatus","vs/nls!vs/workbench/browser/parts/editor/editorWidgets","vs/nls!vs/workbench/browser/parts/editor/resourceViewer","vs/nls!vs/workbench/browser/parts/editor/tabsTitleControl","vs/nls!vs/workbench/browser/parts/editor/textDiffEditor","vs/nls!vs/workbench/browser/parts/editor/textEditor","vs/nls!vs/workbench/browser/parts/editor/textResourceEditor","vs/nls!vs/workbench/browser/parts/editor/titleControl","vs/nls!vs/workbench/browser/parts/quickinput/quickInput","vs/nls!vs/workbench/browser/parts/quickopen/quickOpenController","vs/nls!vs/workbench/browser/parts/quickopen/quickopen","vs/nls!vs/workbench/browser/parts/sidebar/sidebarPart","vs/nls!vs/workbench/browser/parts/statusbar/statusbarPart","vs/nls!vs/workbench/browser/parts/views/panelViewlet","vs/nls!vs/workbench/browser/parts/views/views","vs/nls!vs/workbench/browser/parts/views/viewsViewlet","vs/nls!vs/workbench/browser/quickopen","vs/nls!vs/workbench/browser/viewlet","vs/nls!vs/workbench/common/theme","vs/nls!vs/workbench/common/views","vs/nls!vs/workbench/contrib/codeEditor/browser/accessibility/accessibility","vs/nls!vs/workbench/contrib/codeEditor/browser/inspectKeybindings","vs/nls!vs/workbench/contrib/codeEditor/browser/inspectTMScopes/inspectTMScopes","vs/nls!vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint","vs/nls!vs/workbench/contrib/codeEditor/browser/largeFileOptimizations","vs/nls!vs/workbench/contrib/codeEditor/browser/toggleMinimap","vs/nls!vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier","vs/nls!vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter","vs/nls!vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace","vs/nls!vs/workbench/contrib/codeEditor/browser/toggleWordWrap","vs/nls!vs/workbench/contrib/codeinset/electron-browser/codeInset.contribution","vs/nls!vs/workbench/contrib/emmet/browser/actions/expandAbbreviation","vs/nls!vs/workbench/contrib/emmet/browser/actions/showEmmetCommands","vs/nls!vs/workbench/contrib/files/browser/editors/binaryFileEditor","vs/nls!vs/workbench/contrib/files/browser/editors/textFileEditor","vs/nls!vs/workbench/contrib/files/browser/explorerViewlet","vs/nls!vs/workbench/contrib/files/browser/fileActions","vs/nls!vs/workbench/contrib/files/browser/fileCommands","vs/nls!vs/workbench/contrib/files/browser/files.contribution","vs/nls!vs/workbench/contrib/files/browser/saveErrorHandler","vs/nls!vs/workbench/contrib/files/browser/views/emptyView","vs/nls!vs/workbench/contrib/files/browser/views/explorerDecorationsProvider","vs/nls!vs/workbench/contrib/files/browser/views/explorerView","vs/nls!vs/workbench/contrib/files/browser/views/explorerViewer","vs/nls!vs/workbench/contrib/files/browser/views/openEditorsView","vs/nls!vs/workbench/contrib/files/common/dirtyFilesTracker","vs/nls!vs/workbench/contrib/files/common/editors/fileEditorInput","vs/nls!vs/workbench/contrib/format/browser/format.contribution","vs/nls!vs/workbench/contrib/preferences/browser/keybindingWidgets","vs/nls!vs/workbench/contrib/preferences/browser/keybindingsEditor","vs/nls!vs/workbench/contrib/preferences/browser/keybindingsEditorContribution","vs/nls!vs/workbench/contrib/preferences/browser/preferencesActions","vs/nls!vs/workbench/contrib/preferences/browser/preferencesEditor","vs/nls!vs/workbench/contrib/preferences/browser/preferencesRenderers","vs/nls!vs/workbench/contrib/preferences/browser/preferencesWidgets","vs/nls!vs/workbench/contrib/preferences/browser/settingsLayout","vs/nls!vs/workbench/contrib/preferences/browser/settingsTree","vs/nls!vs/workbench/contrib/preferences/browser/settingsTreeModels","vs/nls!vs/workbench/contrib/preferences/browser/settingsWidgets","vs/nls!vs/workbench/contrib/preferences/browser/tocTree","vs/nls!vs/workbench/contrib/preferences/electron-browser/preferences.contribution","vs/nls!vs/workbench/contrib/preferences/electron-browser/settingsEditor2","vs/nls!vs/workbench/contrib/quickopen/browser/commandsHandler","vs/nls!vs/workbench/contrib/quickopen/browser/gotoLineHandler","vs/nls!vs/workbench/contrib/quickopen/browser/gotoSymbolHandler","vs/nls!vs/workbench/contrib/quickopen/browser/helpHandler","vs/nls!vs/workbench/contrib/quickopen/browser/quickopen.contribution","vs/nls!vs/workbench/contrib/quickopen/browser/viewPickerHandler","vs/nls!vs/workbench/contrib/search/browser/openAnythingHandler","vs/nls!vs/workbench/contrib/search/browser/openFileHandler","vs/nls!vs/workbench/contrib/search/browser/openSymbolHandler","vs/nls!vs/workbench/contrib/search/browser/patternInputWidget","vs/nls!vs/workbench/contrib/search/browser/replaceService","vs/nls!vs/workbench/contrib/search/browser/search.contribution","vs/nls!vs/workbench/contrib/search/browser/searchActions","vs/nls!vs/workbench/contrib/search/browser/searchResultsView","vs/nls!vs/workbench/contrib/search/browser/searchView","vs/nls!vs/workbench/contrib/search/browser/searchWidget","vs/nls!vs/workbench/contrib/search/common/queryBuilder","vs/nls!vs/workbench/contrib/snippets/browser/configureSnippets","vs/nls!vs/workbench/contrib/snippets/browser/insertSnippet","vs/nls!vs/workbench/contrib/snippets/browser/snippetCompletionProvider","vs/nls!vs/workbench/contrib/snippets/browser/snippets.contribution","vs/nls!vs/workbench/contrib/snippets/browser/snippetsFile","vs/nls!vs/workbench/contrib/snippets/browser/snippetsService","vs/nls!vs/workbench/contrib/terminal/common/terminalColorRegistry","vs/nls!vs/workbench/contrib/themes/browser/themes.contribution","vs/nls!vs/workbench/contrib/webview/electron-browser/webview.contribution","vs/nls!vs/workbench/contrib/webview/electron-browser/webviewCommands","vs/nls!vs/workbench/services/bulkEdit/browser/bulkEditService","vs/nls!vs/workbench/services/configuration/node/configurationEditingService","vs/nls!vs/workbench/services/configuration/node/configurationService","vs/nls!vs/workbench/services/configuration/node/jsonEditingService","vs/nls!vs/workbench/services/configurationResolver/browser/configurationResolverService","vs/nls!vs/workbench/services/configurationResolver/common/variableResolver","vs/nls!vs/workbench/services/decorations/browser/decorationsService","vs/nls!vs/workbench/services/dialogs/electron-browser/dialogService","vs/nls!vs/workbench/services/dialogs/electron-browser/remoteFileDialog","vs/nls!vs/workbench/services/editor/browser/editorService","vs/nls!vs/workbench/services/extensionManagement/node/multiExtensionManagement","vs/nls!vs/workbench/services/extensions/common/extensionsRegistry","vs/nls!vs/workbench/services/extensions/electron-browser/cachedExtensionScanner","vs/nls!vs/workbench/services/extensions/electron-browser/extensionHost","vs/nls!vs/workbench/services/extensions/electron-browser/extensionHostProcessManager","vs/nls!vs/workbench/services/extensions/electron-browser/extensionService","vs/nls!vs/workbench/services/extensions/electron-browser/inactiveExtensionUrlHandler","vs/nls!vs/workbench/services/extensions/node/extensionPoints","vs/nls!vs/workbench/services/files/node/fileService","vs/nls!vs/workbench/services/files/node/remoteFileService","vs/nls!vs/workbench/services/keybinding/common/keybindingEditing","vs/nls!vs/workbench/services/keybinding/electron-browser/keybindingService","vs/nls!vs/workbench/services/label/common/labelService","vs/nls!vs/workbench/services/mode/common/workbenchModeService","vs/nls!vs/workbench/services/preferences/browser/preferencesService","vs/nls!vs/workbench/services/preferences/common/keybindingsEditorModel","vs/nls!vs/workbench/services/preferences/common/preferences","vs/nls!vs/workbench/services/preferences/common/preferencesEditorInput","vs/nls!vs/workbench/services/preferences/common/preferencesModels","vs/nls!vs/workbench/services/progress/browser/progressService2","vs/nls!vs/workbench/services/textMate/common/TMGrammars","vs/nls!vs/workbench/services/textMate/electron-browser/textMateService","vs/css!vs/editor/browser/viewParts/rulers/rulers","vs/nls!vs/workbench/services/textfile/common/textFileService","vs/nls!vs/workbench/services/themes/browser/colorThemeData","vs/nls!vs/workbench/services/themes/browser/colorThemeStore","vs/nls!vs/workbench/services/themes/browser/workbenchThemeService","vs/nls!vs/workbench/services/themes/common/colorExtensionPoint","vs/nls!vs/workbench/services/themes/common/colorThemeSchema","vs/nls!vs/workbench/services/themes/common/fileIconThemeData","vs/nls!vs/workbench/services/themes/common/fileIconThemeSchema","vs/nls!vs/workbench/services/themes/common/fileIconThemeStore","vs/nls!vs/workbench/services/workspace/node/workspaceEditingService","vs/css!vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/css!vs/editor/browser/viewParts/selections/selections","vs/css!vs/editor/browser/viewParts/viewCursors/viewCursors","vs/platform/files/node/files","vs/css!vs/editor/browser/widget/media/diffEditor","vs/css!vs/editor/browser/widget/media/diffReview","vs/platform/instantiation/common/graph","vs/css!vs/editor/browser/widget/media/editor","vs/css!vs/editor/browser/widget/media/tokens","vs/codesandbox/services/codesandbox/codesandboxActions","vs/codesandbox/services/codesandbox/common/codesandboxEditorConnector","vs/codesandbox/workbench","vs/css!vs/editor/contrib/bracketMatching/bracketMatching","vs/css!vs/editor/contrib/clipboard/clipboard","vs/css!vs/editor/contrib/codeAction/lightBulbWidget","vs/css!vs/editor/contrib/codelens/codelensWidget","vs/css!vs/editor/contrib/colorPicker/colorPicker","vs/css!vs/editor/contrib/dnd/dnd","vs/css!vs/editor/contrib/documentSymbols/media/outlineTree","vs/base/common/uriIpc","vs/css!vs/editor/contrib/find/findWidget","vs/css!vs/editor/contrib/find/simpleFindWidget","vs/editor/common/model/textModelTokens","vs/css!vs/editor/contrib/folding/folding","vs/base/parts/quickopen/browser/quickOpenViewer","vs/css!vs/editor/contrib/gotoError/media/gotoErrorWidget","vs/editor/common/controller/cursorColumnSelection","vs/css!vs/editor/contrib/hover/hover","vs/css!vs/editor/contrib/links/links","vs/css!vs/editor/contrib/message/messageController","vs/css!vs/editor/contrib/parameterHints/parameterHints","vs/css!vs/editor/contrib/referenceSearch/media/peekViewWidget","vs/editor/common/controller/oneCursor","vs/editor/common/controller/cursorCollection","vs/editor/common/controller/cursor","vs/css!vs/editor/contrib/referenceSearch/media/referencesWidget","vs/css!vs/editor/contrib/rename/renameInputField","vs/css!vs/editor/contrib/snippet/snippetSession","vs/editor/common/services/editorWorkerServiceImpl","vs/css!vs/editor/contrib/suggest/media/suggest","vs/editor/common/view/runtimeMinimapCharRenderer","vs/css!vs/editor/contrib/zoneWidget/zoneWidget","vs/editor/common/viewModel/characterHardWrappingLineMapper","vs/editor/common/viewModel/viewModelImpl","vs/css!vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/editor/contrib/folding/foldingDecorations","vs/editor/contrib/folding/indentRangeProvider","vs/editor/contrib/linesOperations/moveLinesCommand","vs/editor/contrib/zoneWidget/zoneWidget","vs/css!vs/editor/standalone/browser/standalone-tokens","vs/css!vs/platform/contextview/browser/contextMenuHandler","vs/css!vs/workbench/browser/actions/media/actions","vs/editor/browser/services/openerService","vs/editor/contrib/links/getLinks","vs/css!vs/workbench/browser/media/part","vs/base/browser/ui/list/splice","vs/editor/contrib/suggest/suggestAlternatives","vs/editor/contrib/suggest/wordContextKey","vs/css!vs/workbench/browser/parts/editor/media/editordroptarget","vs/css!vs/workbench/browser/parts/editor/media/editorgroupview","vs/css!vs/workbench/browser/parts/editor/media/editorpicker","vs/platform/dialogs/node/dialogIpc","vs/platform/download/common/download","vs/css!vs/workbench/browser/parts/editor/media/editorstatus","vs/css!vs/workbench/browser/parts/editor/media/notabstitlecontrol","vs/css!vs/workbench/browser/parts/editor/media/resourceviewer","vs/platform/history/common/history","vs/css!vs/workbench/browser/parts/editor/media/tabstitlecontrol","vs/platform/instantiation/common/instantiationService","vs/css!vs/workbench/browser/parts/editor/media/titlecontrol","vs/css!vs/workbench/browser/parts/media/compositepart","vs/base/parts/tree/browser/tree","vs/css!vs/workbench/browser/parts/quickopen/media/quickopen","vs/css!vs/workbench/browser/parts/sidebar/media/sidebarpart","vs/css!vs/workbench/browser/parts/statusbar/media/statusbarpart","vs/platform/contextview/browser/contextViewService","vs/css!vs/workbench/browser/parts/views/media/panelviewlet","vs/css!vs/workbench/browser/parts/views/media/views","vs/css!vs/workbench/contrib/codeEditor/browser/accessibility/accessibility","vs/platform/markers/common/markerService","vs/css!vs/workbench/contrib/codeEditor/browser/inspectTMScopes/inspectTMScopes","vs/css!vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput","vs/codesandbox/notificationService","vs/css!vs/workbench/contrib/codeinset/electron-browser/codeInsetWidget","vs/css!vs/workbench/contrib/files/browser/media/explorerviewlet","vs/editor/contrib/hover/modesGlyphHover","vs/platform/extensions/node/extensionValidator","vs/platform/product/node/package","vs/platform/extensions/node/extensionsUtil","vs/css!vs/workbench/contrib/files/browser/media/fileactions","vs/css!vs/workbench/contrib/preferences/browser/media/keybindings","vs/css!vs/workbench/contrib/preferences/browser/media/keybindingsEditor","vs/css!vs/workbench/contrib/preferences/browser/media/preferences","vs/codesandbox/fileDialogService","vs/css!vs/workbench/contrib/preferences/browser/media/settingsWidgets","vs/css!vs/workbench/contrib/preferences/electron-browser/media/settingsEditor2","vs/css!vs/workbench/contrib/search/browser/media/search.contribution","vs/css!vs/workbench/contrib/search/browser/media/searchview","vs/css!vs/workbench/services/progress/browser/media/progressService2","vs/editor/browser/config/charWidthReader","vs/editor/browser/config/elementSizeObserver","vs/editor/browser/view/viewOverlays","vs/editor/browser/viewParts/viewCursors/viewCursor","vs/editor/common/services/languagesRegistry","vs/editor/common/services/modeServiceImpl","vs/base/parts/tree/browser/treeDnd","vs/codesandbox/telemetryService","vs/editor/common/services/modelServiceImpl","vs/editor/common/services/resourceConfigurationImpl","vs/base/parts/tree/browser/treeModel","vs/platform/configuration/node/configuration","vs/editor/browser/services/abstractCodeEditorService","vs/base/parts/tree/browser/treeViewModel","vs/base/worker/defaultWorkerFactory","vs/codesandbox/activityService","vs/platform/lifecycle/electron-main/lifecycleMain","vs/codesandbox/backupFileService","vs/codesandbox/broadcastService","vs/codesandbox/clipboardService","vs/codesandbox/lifecycleService","vs/codesandbox/environmentService","vs/editor/contrib/suggest/suggestMemory","vs/editor/common/core/rgba","vs/codesandbox/extensionGalleryService","vs/codesandbox/extensionManagementService","vs/codesandbox/hashService","vs/editor/browser/view/viewController","vs/editor/contrib/caretOperations/caretOperations","vs/editor/contrib/caretOperations/transpose","vs/editor/contrib/clipboard/clipboard","vs/editor/common/commands/surroundSelectionCommand","vs/codesandbox/outputService","vs/editor/contrib/codeAction/lightBulbWidget","vs/editor/contrib/codelens/codelens","vs/codesandbox/panelService","vs/codesandbox/remoteAgentService","vs/editor/contrib/comment/comment","vs/codesandbox/requestService","vs/editor/contrib/cursorUndo/cursorUndo","vs/editor/contrib/dnd/dnd","vs/base/common/jsonFormatter","vs/editor/contrib/fontZoom/fontZoom","vs/codesandbox/shims/encoding","vs/editor/contrib/format/formatActions","vs/editor/common/diff/diffComputer","vs/editor/contrib/hover/getHover","vs/editor/contrib/indentation/indentation","vs/editor/common/editorAction","vs/codesandbox/storageService","vs/editor/contrib/parameterHints/parameterHintsModel","vs/editor/contrib/quickOpen/quickOpen","vs/editor/contrib/smartSelect/smartSelect","vs/codesandbox/updateService","vs/codesandbox/windowsService","vs/editor/contrib/tokenization/tokenization","vs/editor/common/model/editStack","vs/editor/contrib/wordPartOperations/wordPartOperations","vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard","vs/editor/common/model/indentationGuesser","vs/platform/actions/common/menuService","vs/editor/common/model/intervalTree","vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase","vs/editor/common/model/textModelEvents","vs/codesandbox/workspacesService","vs/editor/contrib/rename/renameInputField","vs/css!vs/base/browser/ui/actionbar/actionbar","vs/platform/contextview/browser/contextMenuHandler","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer","vs/editor/browser/services/codeEditorServiceImpl","vs/editor/browser/viewParts/editorScrollbar/editorScrollbar","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder","vs/nls!vs/workbench/services/textfile/common/textFileEditorModel","vs/editor/browser/controller/mouseHandler","vs/editor/browser/controller/pointerHandler","vs/editor/browser/view/viewOutgoingEvents","vs/editor/browser/viewParts/lines/viewLines","vs/editor/browser/viewParts/minimap/minimap","vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/editor/browser/viewParts/selections/selections","vs/editor/common/modes/abstractMode","vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight","vs/editor/browser/viewParts/indentGuides/indentGuides","vs/css!vs/base/browser/ui/aria/aria","vs/editor/browser/controller/textAreaHandler","vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler","vs/editor/browser/viewParts/rulers/rulers","vs/editor/browser/viewParts/viewCursors/viewCursors","vs/editor/browser/view/viewImpl","vs/editor/common/modes/languageSelector","vs/editor/browser/widget/diffReview","vs/editor/common/modes/linkComputer","vs/css!vs/base/browser/ui/breadcrumbs/breadcrumbsWidget","vs/editor/common/services/markerDecorationsServiceImpl","vs/editor/contrib/bracketMatching/bracketMatching","vs/editor/contrib/codelens/codelensWidget","vs/editor/contrib/codelens/codelensController","vs/editor/contrib/colorPicker/colorPickerWidget","vs/editor/contrib/documentSymbols/outlineTree","vs/editor/contrib/find/findDecorations","vs/editor/common/modes/supports/characterPair","vs/editor/contrib/find/findOptionsWidget","vs/editor/common/modes/supports/indentRules","vs/editor/common/modes/supports/inplaceReplaceSupport","vs/editor/contrib/find/simpleFindWidget","vs/editor/contrib/inPlaceReplace/inPlaceReplace","vs/editor/contrib/links/links","vs/editor/common/modes/supports/onEnter","vs/css!vs/base/browser/ui/button/button","vs/editor/contrib/codeAction/codeActionContributions","vs/editor/common/modes/supports/electricCharacter","vs/editor/contrib/parameterHints/parameterHintsWidget","vs/editor/contrib/parameterHints/parameterHints","vs/base/browser/ui/list/rangeMap","vs/editor/contrib/rename/rename","vs/editor/contrib/suggest/suggestWidget","vs/editor/contrib/wordHighlighter/wordHighlighter","vs/platform/contextview/browser/contextMenuService","vs/editor/common/modes/supports/tokenization","vs/editor/common/modes/tokenizationRegistry","vs/editor/common/standalone/standaloneEnums","vs/platform/url/common/urlService","vs/css!vs/base/browser/ui/checkbox/checkbox","vs/platform/accessibility/node/accessibilityService","vs/platform/sharedProcess/node/sharedProcessService","vs/platform/windows/electron-browser/windowService","vs/platform/windows/electron-main/windows","vs/platform/menubar/electron-main/menubar","vs/platform/menubar/electron-main/menubarService","vs/workbench/services/extensionManagement/node/multiExtensionManagement","vs/css!vs/base/browser/ui/contextview/contextview","vs/base/browser/ui/contextview/contextview","vs/editor/contrib/referenceSearch/referencesTree","vs/editor/browser/viewParts/lines/rangeUtil","vs/editor/contrib/gotoError/gotoErrorWidget","vs/editor/common/view/viewContext","vs/editor/contrib/hover/modesContentHover","vs/editor/contrib/hover/hover","vs/editor/common/view/viewEventDispatcher","vs/css!vs/base/browser/ui/countBadge/countBadge","vs/editor/contrib/goToDefinition/goToDefinitionMouse","vs/editor/contrib/referenceSearch/referenceSearch","vs/codesandbox/codesandbox.all","vs/editor/contrib/snippet/snippetSession","vs/css!vs/base/browser/ui/dropdown/dropdown","vs/editor/contrib/suggest/suggestModel","vs/editor/common/viewLayout/viewLinesViewportData","vs/editor/editor.all","vs/editor/common/viewLayout/whitespaceComputer","vs/platform/extensionManagement/common/extensionEnablementService","vs/editor/common/viewLayout/linesLayout","vs/css!vs/base/browser/ui/findinput/findInput","vs/editor/common/model/mirrorTextModel","vs/editor/common/services/editorSimpleWorker","vs/css!vs/base/browser/ui/findinput/findInputCheckboxes","vs/base/browser/ui/list/rowCache","vs/css!vs/base/browser/ui/iconLabel/iconlabel","vs/workbench/browser/parts/quickinput/quickInputBox","vs/editor/browser/viewParts/contentWidgets/contentWidgets","vs/workbench/browser/parts/quickinput/quickInputList","vs/editor/browser/viewParts/decorations/decorations","vs/css!vs/base/browser/ui/inputbox/inputBox","vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/css!vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/editor/browser/viewParts/overviewRuler/overviewRuler","vs/editor/browser/viewParts/viewZones/viewZones","assert","vs/editor/common/viewLayout/viewLayout","vs/editor/common/viewModel/viewModelDecorations","vs/editor/contrib/caretOperations/moveCaretCommand","vs/css!vs/base/browser/ui/menu/menu","vs/editor/contrib/codeAction/codeActionWidget","vs/editor/contrib/colorPicker/colorPickerModel","vs/workbench/common/memento","vs/css!vs/base/browser/ui/octiconLabel/octicons/octicons","vs/editor/contrib/comment/lineCommentCommand","vs/editor/contrib/dnd/dragAndDropCommand","vs/css!vs/base/browser/ui/octiconLabel/octicons/octicons-animations","vs/editor/contrib/find/replaceAllCommand","vs/editor/contrib/find/replacePattern","vs/base/browser/ui/selectBox/selectBoxNative","vs/editor/contrib/folding/foldingModel","vs/editor/contrib/folding/hiddenRangeModel","vs/workbench/common/viewlet","vs/base/common/diff/diffChange","vs/workbench/contrib/codeEditor/browser/accessibility/accessibility","vs/workbench/contrib/codeEditor/browser/largeFileOptimizations","vs/editor/contrib/folding/intializingRangeProvider","vs/base/browser/ui/scrollbar/scrollbarVisibilityController","vs/workbench/contrib/codeEditor/browser/toggleMinimap","vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier","vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter","vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace","vs/workbench/contrib/codeEditor/browser/toggleWordWrap","vs/workbench/contrib/codeEditor/browser/workbenchReferenceSearch","vs/workbench/contrib/codeEditor/electron-browser/sleepResumeRepaintMinimap","vs/workbench/contrib/codeEditor/electron-browser/codeEditor.contribution","vs/css!vs/base/browser/ui/progressbar/progressbar","vs/workbench/contrib/codeinset/electron-browser/codeInsetWidget","vs/workbench/contrib/codeinset/electron-browser/codeInset.contribution","vs/workbench/contrib/emmet/browser/actions/showEmmetCommands","vs/base/common/marked/marked","vs/css!vs/base/browser/ui/sash/sash","vs/editor/contrib/inPlaceReplace/inPlaceReplaceCommand","vs/base/common/history","vs/editor/contrib/linesOperations/copyLinesCommand","vs/editor/contrib/linesOperations/sortLinesCommand","vs/css!vs/base/browser/ui/scrollbar/media/scrollbars","vs/editor/contrib/smartSelect/wordSelections","vs/workbench/contrib/preferences/common/smartSnippetInserter","vs/workbench/contrib/search/browser/patternInputWidget","vs/base/common/normalization","vs/editor/contrib/suggest/wordDistance","vs/nls!vs/base/browser/ui/actionbar/actionbar","vs/base/browser/ui/breadcrumbs/breadcrumbsWidget","vs/base/node/ports","vs/workbench/contrib/snippets/browser/configureSnippets","vs/nls!vs/base/browser/ui/aria/aria","vs/css!vs/base/browser/ui/selectBox/selectBox","vs/workbench/contrib/snippets/browser/insertSnippet","vs/workbench/contrib/terminal/common/terminal","vs/workbench/contrib/terminal/common/terminalColorRegistry","vs/workbench/contrib/webview/electron-browser/webviewFindWidget","vs/workbench/contrib/webview/electron-browser/webviewProtocols","vs/nls!vs/base/browser/ui/findinput/findInput","vs/nls!vs/base/browser/ui/findinput/findInputCheckboxes","vs/nls!vs/base/browser/ui/inputbox/inputBox","vs/workbench/services/backup/node/backupFileService","vs/nls!vs/base/browser/ui/keybindingLabel/keybindingLabel","vs/nls!vs/base/browser/ui/list/listWidget","vs/css!vs/base/browser/ui/selectBox/selectBoxCustom","vs/base/browser/ui/list/listPaging","vs/workbench/services/configuration/node/configuration","vs/workbench/services/configurationResolver/common/configurationResolver","vs/workbench/services/configurationResolver/common/variableResolver","vs/base/browser/ui/selectBox/selectBoxCustom","vs/workbench/services/decorations/browser/decorationsService","vs/workbench/services/dialogs/electron-browser/remoteFileDialog","vs/css!vs/base/browser/ui/splitview/panelview","vs/css!vs/base/browser/ui/splitview/splitview","vs/base/common/octicon","vs/workbench/api/node/apiCommands","vs/base/browser/ui/dropdown/dropdown","vs/workbench/browser/parts/editor/rangeDecorations","vs/base/browser/ui/centered/centeredViewLayout","vs/base/browser/ui/scrollbar/horizontalScrollbar","vs/base/browser/ui/findinput/findInput","vs/nls!vs/base/browser/ui/menu/menu","vs/base/browser/ui/grid/grid","vs/workbench/contrib/codeEditor/browser/inspectKeybindings","vs/workbench/contrib/quickopen/browser/gotoLineHandler","vs/workbench/contrib/quickopen/browser/gotoSymbolHandler","vs/workbench/contrib/quickopen/browser/helpHandler","vs/base/browser/contextmenu","vs/workbench/contrib/webview/electron-browser/webviewCommands","vs/workbench/services/configurationResolver/browser/configurationResolverService","vs/workbench/services/editor/browser/codeEditorService","vs/nls!vs/base/browser/ui/menu/menubar","vs/workbench/contrib/quickopen/browser/commandsHandler","vs/workbench/services/commands/common/commandService","vs/base/browser/ui/menu/menubar","vs/workbench/api/common/configurationExtensionPoint","vs/nls!vs/base/browser/ui/toolbar/toolbar","vs/workbench/api/common/menusExtensionPoint","vs/workbench/services/extensions/electron-browser/extensionHostProfiler","vs/base/browser/ui/scrollbar/verticalScrollbar","vs/workbench/services/extensions/node/extensionDescriptionRegistry","vs/workbench/services/extensions/node/extensionHostProtocol","vs/nls!vs/base/browser/ui/tree/abstractTree","vs/workbench/services/extensions/node/extensionPoints","vs/platform/extensionManagement/node/extensionManagementUtil","vs/workbench/services/extensions/electron-browser/cachedExtensionScanner","vs/workbench/services/extensions/node/lazyPromise","vs/css!vs/base/browser/ui/toolbar/toolbar","vs/base/browser/ui/tree/dataTree","vs/workbench/api/electron-browser/mainThreadClipboard","vs/workbench/api/electron-browser/mainThreadCommands","vs/workbench/api/electron-browser/mainThreadConfiguration","vs/workbench/api/electron-browser/mainThreadConsole","vs/workbench/api/electron-browser/mainThreadDecorations","vs/workbench/api/electron-browser/mainThreadDiagnostics","vs/workbench/api/electron-browser/mainThreadDialogs","vs/workbench/api/electron-browser/mainThreadDocumentContentProviders","vs/css!vs/base/browser/ui/tree/media/tree","vs/base/browser/ui/tree/asyncDataTree","vs/workbench/api/electron-browser/mainThreadErrors","vs/workbench/api/electron-browser/mainThreadFileSystem","vs/nls!vs/base/common/errorMessage","vs/workbench/api/electron-browser/mainThreadLanguageFeatures","vs/workbench/api/electron-browser/mainThreadLanguages","vs/workbench/api/electron-browser/mainThreadLogService","vs/workbench/api/electron-browser/mainThreadMessageService","vs/workbench/api/electron-browser/mainThreadProgress","vs/workbench/api/electron-browser/mainThreadQuickOpen","vs/workbench/api/electron-browser/mainThreadStatusBar","vs/workbench/api/electron-browser/mainThreadStorage","vs/workbench/api/electron-browser/mainThreadTelemetry","vs/workbench/api/electron-browser/mainThreadUrls","vs/workbench/api/electron-browser/mainThreadWindow","vs/workbench/services/extensions/node/rpcProtocol","vs/workbench/services/extensions/electron-browser/extensionHostProcessManager","vs/css!vs/base/parts/quickopen/browser/quickopen","vs/workbench/api/electron-browser/mainThreadExtensionService","vs/workbench/services/files/node/encoding","vs/workbench/services/files/node/streams","vs/base/node/zip","vs/nls!vs/base/common/jsonErrorMessages","vs/workbench/services/files/node/watcher/nsfw/watcherIpc","vs/workbench/services/files/node/watcher/nsfw/watcherService","vs/workbench/services/files/node/watcher/unix/watcherIpc","vs/workbench/services/files/node/watcher/unix/watcherService","vs/workbench/services/files/node/watcher/win32/csharpWatcherService","vs/workbench/services/files/node/watcher/win32/watcherService","vs/workbench/services/files/node/fileService","vs/workbench/services/files/node/remoteFileService","vs/codesandbox/fileService","vs/workbench/services/textMate/electron-browser/textMateService","vs/css!vs/base/parts/tree/browser/tree","vs/nls!vs/base/common/keybindingLabels","vs/css!vs/editor/browser/controller/textAreaHandler","vs/workbench/services/dialogs/electron-browser/dialogService","vs/workbench/services/keybinding/common/keybindingIO","vs/workbench/services/keybinding/common/keyboardMapper","vs/workbench/services/keybinding/common/macLinuxFallbackKeyboardMapper","vs/workbench/services/keybinding/common/macLinuxKeyboardMapper","vs/css!vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/workbench/contrib/preferences/browser/keybindingsEditorContribution","vs/workbench/services/keybinding/electron-browser/keybindingService","vs/workbench/services/workspace/node/workspaceEditingService","vs/workbench/services/label/common/labelService","vs/nls!vs/base/common/severity","vs/codesandbox/configuration.contribution","vs/css!vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight","vs/workbench/browser/parts/editor/editorControl","vs/workbench/browser/parts/quickinput/quickInput","vs/workbench/browser/parts/statusbar/statusbarPart","vs/nls!vs/base/node/processes","vs/base/node/processes","vs/workbench/contrib/webview/electron-browser/webviewEditorInputFactory","vs/css!vs/editor/browser/viewParts/decorations/decorations","vs/css!vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/workbench/api/electron-browser/mainThreadWebview","vs/workbench/contrib/webview/electron-browser/webview.contribution","vs/css!vs/editor/browser/viewParts/indentGuides/indentGuides","vs/nls!vs/base/node/zip","vs/nls!vs/base/parts/quickopen/browser/quickOpenModel","vs/workbench/contrib/codeEditor/browser/simpleEditorOptions","vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput","vs/css!vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/nls!vs/base/parts/quickopen/browser/quickOpenWidget","vs/nls!vs/base/parts/tree/browser/treeDefaults","vs/codesandbox/menubarControl2","vs/css!vs/editor/browser/viewParts/lines/viewLines","vs/base/parts/tree/browser/treeView","vs/workbench/contrib/preferences/browser/tocTree","vs/workbench/contrib/preferences/common/preferencesContribution","vs/workbench/contrib/preferences/electron-browser/settingsEditor2","vs/css!vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/base/parts/quickopen/browser/quickOpenWidget","vs/workbench/contrib/preferences/browser/preferencesRenderers","vs/workbench/contrib/preferences/electron-browser/preferencesSearch","vs/workbench/contrib/search/browser/search.contribution","vs/workbench/services/preferences/browser/preferencesService","vs/nls!vs/codesandbox/configuration.contribution","vs/workbench/services/search/common/replace","vs/nls!vs/codesandbox/fileService","vs/nls!vs/codesandbox/menubarControl2","vs/workbench/services/history/browser/history","vs/nls!vs/codesandbox/services/codesandbox/codesandboxFileActions.contribution","vs/nls!vs/codesandbox/telemetryService","vs/nls!vs/editor/browser/controller/coreCommands","vs/workbench/contrib/emmet/browser/emmetActions","vs/workbench/contrib/emmet/browser/actions/expandAbbreviation","vs/workbench/contrib/emmet/browser/emmet.contribution","vs/workbench/services/textMate/common/TMHelper","vs/nls!vs/editor/browser/widget/codeEditorWidget","vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint","vs/nls!vs/editor/browser/widget/diffEditorWidget","vs/workbench/api/electron-browser/mainThreadFileSystemEventService","vs/nls!vs/editor/browser/widget/diffReview","vs/nls!vs/editor/common/config/commonEditorConfig","vs/nls!vs/editor/common/config/editorOptions","vs/css!vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/css!vs/editor/browser/viewParts/minimap/minimap","vs/workbench/browser/parts/quickopen/quickOpenActions","vs/editor/contrib/suggest/completionModel","vs/workbench/browser/parts/editor/textResourceEditor","vs/nls!vs/editor/common/modes/modesRegistry","vs/nls!vs/editor/common/view/editorColorRegistry","vs/codesandbox/services/codesandbox/configurationUIService","vs/codesandbox/services/codesandbox/inputs/reactEditor","vs/codesandbox/services/codesandbox/codesandbox.contribution","vs/nls!vs/editor/contrib/bracketMatching/bracketMatching","vs/workbench/contrib/files/browser/views/explorerDecorationsProvider","vs/nls!vs/editor/contrib/caretOperations/caretOperations","vs/workbench/contrib/files/browser/editors/binaryFileEditor","vs/workbench/contrib/files/browser/editors/fileEditorTracker","vs/workbench/contrib/files/common/explorerService","vs/workbench/contrib/preferences/browser/preferencesEditor","vs/workbench/contrib/search/browser/replaceService","vs/workbench/contrib/search/browser/replaceContributions","vs/workbench/services/bulkEdit/browser/bulkEditService","vs/workbench/services/configuration/node/configurationEditingService","vs/nls!vs/editor/contrib/caretOperations/transpose","vs/workbench/services/configuration/node/configurationService","vs/nls!vs/editor/contrib/clipboard/clipboard","vs/workbench/contrib/preferences/browser/keybindingsEditor","vs/nls!vs/editor/contrib/codeAction/codeActionCommands","vs/workbench/api/electron-browser/mainThreadSaveParticipant","vs/workbench/services/textfile/common/textFileEditorModelManager","vs/workbench/services/textfile/node/textResourcePropertiesService","vs/workbench/services/themes/browser/themeCompatibility","vs/workbench/services/themes/common/colorExtensionPoint","vs/nls!vs/editor/contrib/comment/comment","vs/nls!vs/editor/contrib/contextmenu/contextmenu","vs/workbench/services/themes/common/fileIconThemeSchema","vs/workbench/services/themes/common/fileIconThemeStore","vs/workbench/services/themes/common/plistParser","vs/nls!vs/editor/contrib/cursorUndo/cursorUndo","vs/codesandbox/services/codesandbox/browser/codesandboxEditorConnectorService","vs/workbench/contrib/codeEditor/browser/inspectTMScopes/inspectTMScopes","vs/workbench/contrib/codeEditor/browser/codeEditor.contribution","vs/workbench/contrib/search/browser/openFileHandler","vs/nls!vs/editor/contrib/documentSymbols/outlineTree","vs/nls!vs/editor/contrib/find/findController","vs/workbench/services/themes/browser/colorThemeStore","vs/workbench/services/themes/browser/workbenchThemeService","vs/nls!vs/editor/contrib/find/findWidget","vs/codesandbox/searchService","vs/nls!vs/editor/contrib/find/simpleFindWidget","vs/workbench/api/electron-browser/mainThreadDocumentsAndEditors","vs/nls!vs/editor/contrib/folding/folding","vs/nls!vs/editor/contrib/fontZoom/fontZoom","vs/workbench/browser/parts/editor/breadcrumbsPicker","vs/nls!vs/editor/contrib/format/formatActions","vs/workbench/browser/parts/editor/editorDropTarget","vs/workbench/browser/parts/editor/editorStatus","vs/workbench/browser/parts/editor/editor.contribution","vs/nls!vs/editor/contrib/goToDefinition/goToDefinitionCommands","vs/workbench/browser/parts/editor/noTabsTitleControl","vs/workbench/browser/parts/editor/tabsTitleControl","vs/workbench/contrib/files/common/dirtyFilesTracker","vs/nls!vs/editor/contrib/goToDefinition/goToDefinitionMouse","vs/workbench/services/textfile/common/textFileService","vs/workbench/services/textmodelResolver/common/textModelResolverService","vs/nls!vs/editor/contrib/gotoError/gotoError","vs/nls!vs/editor/contrib/gotoError/gotoErrorWidget","vs/nls!vs/editor/contrib/hover/hover","vs/nls!vs/editor/contrib/hover/modesContentHover","vs/workbench/browser/parts/views/viewsViewlet","vs/workbench/contrib/files/browser/editors/textFileEditor","vs/workbench/contrib/format/browser/format.contribution","vs/workbench/contrib/quickopen/browser/viewPickerHandler","vs/workbench/contrib/quickopen/browser/quickopen.contribution","vs/nls!vs/editor/contrib/inPlaceReplace/inPlaceReplace","vs/workbench/contrib/search/browser/searchResultsView","vs/nls!vs/editor/contrib/indentation/indentation","vs/workbench/contrib/themes/browser/themes.contribution","vs/nls!vs/editor/contrib/linesOperations/linesOperations","vs/workbench/browser/parts/compositePart","vs/workbench/browser/parts/editor/editorGroupView","vs/workbench/browser/parts/editor/editorPart","vs/workbench/browser/parts/sidebar/sidebarPart","vs/codesandbox/sidebarPart","vs/codesandbox/codesandbox.services","vs/workbench/contrib/search/browser/searchView","vs/editor/standalone/browser/codesandbox.standaloneEditor","vs/editor/codesandbox.editor.api","vs/workbench/services/progress/browser/progressService2","vs/nls!vs/editor/contrib/links/links","vs/workbench/api/electron-browser/mainThreadWorkspace","vs/workbench/api/electron-browser/extensionHost.contribution","vs/nls!vs/editor/contrib/message/messageController","vs/nls!vs/editor/contrib/multicursor/multicursor","vs/nls!vs/editor/contrib/parameterHints/parameterHints","vs/nls!vs/editor/contrib/parameterHints/parameterHintsWidget","vs/nls!vs/editor/contrib/referenceSearch/peekViewWidget","vs/codesandbox/services/codesandbox/codesandboxFileActions.contribution","vs/workbench/contrib/files/browser/views/emptyView","vs/workbench/contrib/files/browser/views/explorerViewer","vs/workbench/contrib/files/browser/views/explorerView","vs/workbench/contrib/files/browser/views/openEditorsView","vs/workbench/contrib/files/browser/explorerViewlet","vs/workbench/contrib/files/browser/files.contribution","vs/workbench/contrib/preferences/browser/preferencesActions","vs/workbench/contrib/preferences/electron-browser/preferences.contribution","yauzl","vs/platform/request/node/request","native-keymap","path","vscode-textmate","stream","vs/base/node/request","yazl","semver","vs/editor/common/standalone/promise-polyfill/polyfill","string_decoder","vs/editor/codesandbox.editor.main"],n=function(e){for(var t=[],n=0,r=e.length;n0?t.insertBefore(e,i[i.length-1]):t.appendChild(e)},e.prototype.createLinkTag=function(e,t,i,n){var r=this,o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("type","text/css"),o.setAttribute("data-name",e);return this.attachListeners(e,o,function(){return r._onLoad(e,i)},function(t){return r._onLoadError(e,n,t)}),o.setAttribute("href",t),o},e.prototype._linkTagExists=function(e,t){var i,n,r,o,s=document.getElementsByTagName("link");for(i=0,n=s.length;i=0)},e}();function i(e,t,i){var n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,function(e,i){var n=i[0],r=t[n],o=e;return"string"==typeof r?o=r:"number"!=typeof r&&"boolean"!=typeof r&&null!=r||(o=String(r)),o}),i.isPseudo&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function n(e,t){return function(n,r){var o=Array.prototype.slice.call(arguments,2);return i(e[n],o,t)}}var r=function(){function e(e){var t=this;this._env=e,this.localize=function(e,n){for(var r=[],o=2;o0&&n>i;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var c=Math.round(Math.max(20,Math.floor(i*s/n))),l=(s-c)/(n-i),u=r*l;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(c),computedSliderRatio:l,computedSliderPosition:Math.round(u)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},e}();t.ScrollbarState=i}),define(i[178],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ok=function(e,t){if(!e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}}),define(i[99],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.prototype.hasOwnProperty;t.values=function(e){var t=[];for(var n in e)i.call(e,n)&&t.push(e[n]);return t},t.size=function(e){var t=0;for(var n in e)i.call(e,n)&&(t+=1);return t},t.first=function(e){for(var t in e)if(i.call(e,t))return e[t]},t.forEach=function(e,t){var n=function(n){if(i.call(e,n)&&!1===t({key:n,value:e[n]},function(){delete e[n]}))return{value:void 0}};for(var r in e){var o=n(r);if("object"==typeof o)return o.value}},t.groupBy=function(e,t){for(var i=Object.create(null),n=0,r=e;n0){switch(l=Math.min(u<=.5?d/(2*u):d/(2-2*u),1),s){case i:c=(n-r)/d+(n1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e},e.toRGBA=function(t){var i,r,o,s=t.h/360,a=t.s,c=t.l,l=t.a;if(0===a)i=r=o=c;else{var u=c<.5?c*(1+a):c+a-c*a,d=2*c-u;i=e._hue2rgb(d,u,s+1/3),r=e._hue2rgb(d,u,s),o=e._hue2rgb(d,u,s-1/3)}return new n(Math.round(255*i),Math.round(255*r),Math.round(255*o),l)},e}();t.HSLA=r;var o=function(){function e(e,t,n,r){this.h=0|Math.max(Math.min(360,e),0),this.s=i(Math.max(Math.min(1,t),0),3),this.v=i(Math.max(Math.min(1,n),0),3),this.a=i(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var i,n=t.r/255,r=t.g/255,o=t.b/255,s=Math.max(n,r,o),a=s-Math.min(n,r,o),c=0===s?0:a/s;return i=0===a?0:s===n?((r-o)/a%6+6)%6:s===r?(o-n)/a+2:(n-r)/a+4,new e(Math.round(60*i),c,s,t.a)},e.toRGBA=function(e){var t=e.h,i=e.s,r=e.v,o=e.a,s=r*i,a=s*(1-Math.abs(t/60%2-1)),c=r-s,l=[0,0,0],u=l[0],d=l[1],h=l[2];return t<60?(u=s,d=a):t<120?(u=a,d=s):t<180?(d=s,h=a):t<240?(d=a,h=s):t<300?(u=a,h=s):t<360&&(u=s,h=a),u=Math.round(255*(u+c)),d=Math.round(255*(d+c)),h=Math.round(255*(h+c)),new n(u,d,h,o)},e}();t.HSVA=o;var s=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof n)this.rgba=e;else if(e instanceof r)this._hsla=e,this.rgba=r.toRGBA(e);else{if(!(e instanceof o))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=o.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:r.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:o.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&n.equals(this.rgba,e.rgba)&&r.equals(this.hsla,e.hsla)&&o.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){return i(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.getContrastRatio=function(e){var t=this.getRelativeLuminance(),i=e.getRelativeLuminance();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},e.prototype.isDarker=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3<128},e.prototype.isLighter=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128},e.prototype.isLighterThan=function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()},e.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()0||this.m_modifiedCount>0)&&this.m_changes.push(new i.DiffChange(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),a=function(){function e(e,t,i){void 0===i&&(i=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=i,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,i,n,r){var o=this.ComputeDiffRecursive(e,t,i,n,[!1]);return r?this.PrettifyChanges(o):o},e.prototype.ComputeDiffRecursive=function(e,t,n,o,s){for(s[0]=!1;e<=t&&n<=o&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&o>=n&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||n>o){var a=void 0;return n<=o?(r.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a=[new i.DiffChange(e,0,n,o-n+1)]):e<=t?(r.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[new i.DiffChange(e,t-e+1,n,0)]):(r.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r.Assert(n===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[]),a}var c=[0],l=[0],u=this.ComputeRecursionPoint(e,t,n,o,c,l,s),d=c[0],h=l[0];if(null!==u)return u;if(!s[0]){var p=this.ComputeDiffRecursive(e,d,n,h,s),f=[];return f=s[0]?[new i.DiffChange(d+1,t-(d+1)+1,h+1,o-(h+1)+1)]:this.ComputeDiffRecursive(d+1,t,h+1,o,s),this.ConcatenateChanges(p,f)}return[new i.DiffChange(e,t-e+1,n,o-n+1)]},e.prototype.WALKTRACE=function(e,t,n,r,o,a,c,l,u,d,h,p,f,g,v,m,y,b){var _,S,C=null,w=new s,E=t,I=n,x=f[0]-m[0]-r,D=Number.MIN_VALUE,k=this.m_forwardHistory.length-1;do{(S=x+e)===E||S=0&&(e=(u=this.m_forwardHistory[k])[0],E=1,I=u.length-1)}while(--k>=-1);if(_=w.getReverseChanges(),b[0]){var L=f[0]+1,M=m[0]+1;if(null!==_&&_.length>0){var R=_[_.length-1];L=Math.max(L,R.getOriginalEnd()),M=Math.max(M,R.getModifiedEnd())}C=[new i.DiffChange(L,p-L+1,M,v-M+1)]}else{w=new s,E=a,I=c,x=f[0]-m[0]-l,D=Number.MAX_VALUE,k=y?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(S=x+o)===E||S=d[S+1]?(g=(h=d[S+1]-1)-x-l,h>D&&w.MarkNextChange(),D=h+1,w.AddOriginalElement(h+1,g+1),x=S+1-o):(g=(h=d[S-1])-x-l,h>D&&w.MarkNextChange(),D=h,w.AddModifiedElement(h+1,g+1),x=S-1-o),k>=0&&(o=(d=this.m_reverseHistory[k])[0],E=1,I=d.length-1)}while(--k>=-1);C=w.getChanges()}return this.ConcatenateChanges(_,C)},e.prototype.ComputeRecursionPoint=function(e,t,n,r,s,a,c){var l,u=0,d=0,h=0,p=0,f=0,g=0;e--,n--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var v,m,y=t-e+(r-n),b=y+1,_=new Array(b),S=new Array(b),C=r-n,w=t-e,E=e-n,I=t-r,x=(w-C)%2==0;for(_[C]=e,S[w]=t,c[0]=!1,l=1;l<=y/2+1;l++){var D=0,k=0;for(h=this.ClipDiagonalBound(C-l,l,C,b),p=this.ClipDiagonalBound(C+l,l,C,b),v=h;v<=p;v+=2){for(d=(u=v===h||vD+k&&(D=u,k=d),!x&&Math.abs(v-w)<=l-1&&u>=S[v])return s[0]=u,a[0]=d,m<=S[v]&&l<=1448?this.WALKTRACE(C,h,p,E,w,f,g,I,_,S,u,t,s,d,r,a,x,c):null}var L=(D-e+(k-n)-l)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(D,this.OriginalSequence,L))return c[0]=!0,s[0]=D,a[0]=k,L>0&&l<=1448?this.WALKTRACE(C,h,p,E,w,f,g,I,_,S,u,t,s,d,r,a,x,c):(e++,n++,[new i.DiffChange(e,t-e+1,n,r-n+1)]);for(f=this.ClipDiagonalBound(w-l,l,w,b),g=this.ClipDiagonalBound(w+l,l,w,b),v=f;v<=g;v+=2){for(d=(u=v===f||v=S[v+1]?S[v+1]-1:S[v-1])-(v-w)-I,m=u;u>e&&d>n&&this.ElementsAreEqual(u,d);)u--,d--;if(S[v]=u,x&&Math.abs(v-C)<=l&&u<=_[v])return s[0]=u,a[0]=d,m>=_[v]&&l<=1448?this.WALKTRACE(C,h,p,E,w,f,g,I,_,S,u,t,s,d,r,a,x,c):null}if(l<=1447){var M=new Array(p-h+2);M[0]=C-h+1,o.Copy(_,h,M,1,p-h+1),this.m_forwardHistory.push(M),(M=new Array(g-f+2))[0]=w-f+1,o.Copy(S,f,M,1,g-f+1),this.m_reverseHistory.push(M)}}return this.WALKTRACE(C,h,p,E,w,f,g,I,_,S,u,t,s,d,r,a,x,c)},e.prototype.PrettifyChanges=function(e){for(var t=0;t0,s=i.modifiedLength>0;i.originalStart+i.originalLength=0;t--){i=e[t],n=0,r=0;if(t>0){var c=e[t-1];c.originalLength>0&&(n=c.originalStart+c.originalLength),c.modifiedLength>0&&(r=c.modifiedStart+c.modifiedLength)}o=i.originalLength>0,s=i.modifiedLength>0;for(var l=0,u=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength),d=1;;d++){var h=i.originalStart-d,p=i.modifiedStart-d;if(hu&&(u=f,l=d)}i.originalStart-=l,i.modifiedStart-=l}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var i=e+t;if(this._OriginalIsBoundary(i-1)||this._OriginalIsBoundary(i))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var i=e+t;if(this._ModifiedIsBoundary(i-1)||this._ModifiedIsBoundary(i))return!0}return!1},e.prototype._boundaryScore=function(e,t,i,n){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(i,n)?1:0)},e.prototype.ConcatenateChanges=function(e,t){var i=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],i)){var n=new Array(e.length+t.length-1);return o.Copy(e,0,n,0,e.length-1),n[e.length-1]=i[0],o.Copy(t,1,n,e.length,t.length-1),n}n=new Array(e.length+t.length);return o.Copy(e,0,n,0,e.length),o.Copy(t,0,n,e.length,t.length),n},e.prototype.ChangesOverlap=function(e,t,n){if(r.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),r.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var o=e.originalStart,s=e.originalLength,a=e.modifiedStart,c=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(c=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new i.DiffChange(o,s,a,c),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,i,n){if(e>=0&&e0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]n?e[c]=o[a++]:a>r?e[c]=o[s++]:t(o[a],o[s])<0?e[c]=o[a++]:e[c]=o[s++]}(t,i,n,s,r,o)}(e,t,0,e.length-1,[]),e}function a(e,t,i){var n=[];function r(e,t,i){var r;if(0!==t||0!==i.length){var o=n[n.length-1];o&&o.start+o.deleteCount===e?(o.deleteCount+=t,(r=o.toInsert).push.apply(r,i)):n.push({start:e,deleteCount:t,toInsert:i})}}for(var o=0,s=0;;){if(o===e.length){r(o,0,t.slice(s));break}if(s===t.length){r(o,e.length-o,[]);break}var a=e[o],c=t[s],l=i(a,c);0===l?(o+=1,s+=1):l<0?(r(o,1,[]),o+=1):l>0&&(r(o,0,[c]),s+=1)}return n}function c(e,t,i,r,o){for(var s=function(o){var s=e[r];if(t(s,i[o-1])<0){i.pop();var a=n(i,function(e){return t(s,e)<0});i.splice(a,0,s)}},a=i.length;r0))return o;r=o-1}}return-(n+1)},t.findFirstInSorted=n,t.mergeSort=s,t.groupBy=function(e,t){for(var i=[],n=void 0,r=0,o=s(e.slice(0),t);rn?[4,new Promise(function(e){return setTimeout(e)})]:[3,3]:[3,5];case 2:o.sent(),o.label=3;case 3:if(a&&a.isCancellationRequested)throw i.canceled();c(e,t,l,u,d),o.label=4;case 4:return u=d,d=Math.min(d+s,r),[3,1];case 5:return[2,l]}})}).then(u,d)})},t.coalesce=function(e){return e?e.filter(function(e){return!!e}):e},t.coalesceInPlace=function(e){if(e){for(var t=0,i=0;i0},t.distinct=function(e,t){if(!t)return e.filter(function(t,i){return e.indexOf(t)===i});var i=Object.create(null);return e.filter(function(e){var n=t(e);return!i[n]&&(i[n]=!0,!0)})},t.uniqueFilter=function(e){var t=Object.create(null);return function(i){var n=e(i);return!t[n]&&(t[n]=!0,!0)}},t.firstIndex=l,t.first=function(e,t,i){void 0===i&&(i=null);var n=l(e,t);return n<0?i:e[n]},t.commonPrefixLength=function(e,t,i){void 0===i&&(i=function(e,t){return e===t});for(var n=0,r=0,o=Math.min(e.length,t.length);rt;r--)n.push(r);return n},t.fill=function(e,t,i){void 0===i&&(i=[]);for(var n=0;n-1&&e.splice(i,1)}},t.arrayInsert=function(e,t,i){var n=e.slice(0,t),r=e.slice(t);return n.concat(i,r)},t.shuffle=function(e,t){var i;if("number"==typeof t){var n=t;i=function(){var e=179426549*Math.sin(n++);return e-Math.floor(e)}}else i=Math.random;for(var r=e.length-1;r>0;r-=1){var o=Math.floor(i()*(r+1)),s=e[r];e[r]=e[o],e[o]=s}},t.pushToStart=function(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))},t.pushToEnd=function(e,t){var i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))},t.find=function(e,t){for(var i=0;i=n?t.FIN:{done:!1,value:e[i++]}}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,i){return{next:function(){var n=e.next();return n.done?t.FIN:{done:!1,value:i(n.value)}}}},e.filter=function(e,i){return{next:function(){for(;;){var n=e.next();if(n.done)return t.FIN;if(i(n.value))return{done:!1,value:n.value}}}}},e.forEach=n,e.collect=function(e){var t=[];return n(e,function(e){return t.push(e)}),t}}(i=t.Iterator||(t.Iterator={})),t.getSequenceIterator=function(e){return Array.isArray(e)?i.fromArray(e):e};var n=function(){function e(e,t,i,n){void 0===t&&(t=0),void 0===i&&(i=e.length),void 0===n&&(n=t-1),this.items=e,this.start=t,this.end=i,this.index=n}return e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}();t.ArrayIterator=n;var r=function(e){function t(t,i,n,r){return void 0===i&&(i=0),void 0===n&&(n=t.length),void 0===r&&(r=i-1),e.call(this,t,i,n,r)||this}return a(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(n);t.ArrayNavigator=r;var o=function(){function e(e,t){this.iterator=e,this.fn=t}return e.prototype.next=function(){return this.fn(this.iterator.next())},e}();t.MappedIterator=o;var s=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.navigator=t,n}return a(t,e),t.prototype.current=function(){return this.fn(this.navigator.current())},t.prototype.previous=function(){return this.fn(this.navigator.previous())},t.prototype.parent=function(){return this.fn(this.navigator.parent())},t.prototype.first=function(){return this.fn(this.navigator.first())},t.prototype.last=function(){return this.fn(this.navigator.last())},t.prototype.next=function(){return this.fn(this.navigator.next())},t}(o);t.MappedNavigator=s}),define(i[948],n([0,1,92]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._initialize(e),this._limit=t,this._onChange()}return e.prototype.getHistory=function(){return this._elements},e.prototype.add=function(e){this._history.delete(e),this._history.add(e),this._onChange()},e.prototype.next=function(){return this._navigator.next()},e.prototype.previous=function(){return this._navigator.previous()},e.prototype.current=function(){return this._navigator.current()},e.prototype.parent=function(){return null},e.prototype.first=function(){return this._navigator.first()},e.prototype.last=function(){return this._navigator.last()},e.prototype.has=function(e){return this._history.has(e)},e.prototype.clear=function(){this._initialize([]),this._onChange()},e.prototype._onChange=function(){this._reduceToLimit(),this._navigator=new i.ArrayNavigator(this._elements,0,this._elements.length,this._elements.length)},e.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))},e.prototype._initialize=function(e){this._history=new Set;for(var t=0,i=e;t=48&&o<=57)r=16*r+o-48;else if(o>=65&&o<=70)r=16*r+o-65+10;else{if(!(o>=97&&o<=102))break;r=16*r+o-97+10}i++,n++}return n=n)return c=n,l=17;var t=e.charCodeAt(i);if(r(t)){do{i++,a+=String.fromCharCode(t),t=e.charCodeAt(i)}while(r(t));return l=15}if(o(t))return i++,a+=String.fromCharCode(t),13===t&&10===e.charCodeAt(i)&&(i++,a+="\n"),l=14;switch(t){case 123:return i++,l=1;case 125:return i++,l=2;case 91:return i++,l=3;case 93:return i++,l=4;case 58:return i++,l=6;case 44:return i++,l=5;case 34:return i++,a=function(){for(var t="",r=i;;){if(i>=n){t+=e.substring(r,i),u=2;break}var s=e.charCodeAt(i);if(34===s){t+=e.substring(r,i),i++;break}if(92!==s){if(s>=0&&s<=31){if(o(s)){t+=e.substring(r,i),u=2;break}u=6}i++}else{if(t+=e.substring(r,i),++i>=n){u=2;break}switch(s=e.charCodeAt(i++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var a=d(4);a>=0?t+=String.fromCharCode(a):u=4;break;default:u=5}r=i}}return t}(),l=10;case 47:var h=i-1;if(47===e.charCodeAt(i+1)){for(i+=2;i=12&&e<=15);return e}:h,getToken:function(){return l},getTokenValue:function(){return a},getTokenOffset:function(){return c},getTokenLength:function(){return i-c},getTokenError:function(){return u}}}function r(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function o(e){return 10===e||13===e||8232===e||8233===e}function s(e){return e>=48&&e<=57}function a(e,t,i){return void 0===i&&(i=!1),t>=e.offset&&t0)for(var n=o.getToken();17!==n;){if(-1!==t.indexOf(n)){b();break}if(-1!==i.indexOf(n))break;n=b()}}function S(e){var t=o.getTokenValue();return e?p(t):l(t),b(),!0}function C(){switch(o.getToken()){case 3:return function(){d(),b();for(var e=!1;4!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(e||_(4,[],[]),f(","),b(),4===o.getToken()&&y)break}else e&&_(6,[],[]);C()||_(4,[],[4,5]),e=!0}return h(),4!==o.getToken()?_(8,[4],[]):b(),!0}();case 1:return function(){c(),b();for(var e=!1;2!==o.getToken()&&17!==o.getToken();){if(5===o.getToken()){if(e||_(4,[],[]),f(","),b(),2===o.getToken()&&y)break}else e&&_(6,[],[]);(10!==o.getToken()?(_(3,[],[2,5]),0):(S(!1),6===o.getToken()?(f(":"),b(),C()||_(4,[],[2,5])):_(5,[],[2,5]),1))||_(4,[],[2,5]),e=!0}return u(),2!==o.getToken()?_(7,[2],[]):b(),!0}();case 10:return S(!0);default:return function(){switch(o.getToken()){case 11:var e=0;try{"number"!=typeof(e=JSON.parse(o.getTokenValue()))&&(_(2),e=0)}catch(e){_(2)}p(e);break;case 7:p(null);break;case 8:p(!0);break;case 9:p(!1);break;default:return!1}return b(),!0}()}}return b(),17===o.getToken()||(C()?(17!==o.getToken()&&_(9,[],[]),!0):(_(4,[],[]),!1))}function l(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.DEFAULT={allowTrailingComma:!0}}(i=t.ParseOptions||(t.ParseOptions={})),t.createScanner=n,t.getLocation=function(e,t){var i=[],n=new Object,r=void 0,o={value:{},offset:0,length:0,type:"object",parent:void 0},s=!1;function a(e,t,i,n){o.value=e,o.offset=t,o.length=i,o.type=n,o.colonOffset=void 0,r=o}try{c(e,{onObjectBegin:function(e,o){if(t<=e)throw n;r=void 0,s=t>e,i.push("")},onObjectProperty:function(e,r,o){if(t=i.children.length)return;i=i.children[u]}}return i}},t.getNodePath=function e(t){if(!t.parent||!t.parent.children)return[];var i=e(t.parent);if("property"===t.parent.type){var n=t.parent.children[0].value;i.push(n)}else if("array"===t.parent.type){var r=t.parent.children.indexOf(t);-1!==r&&i.push(r)}return i},t.getNodeValue=function e(t){switch(t.type){case"array":return t.children.map(e);case"object":for(var i=Object.create(null),n=0,r=t.children;n0&&!r(e,c-1);)c--;for(var d=u;dl&&e.substring(i,n)!==t&&_.push({offset:i,length:n-i,content:t})}var C=b();if(17!==C){var w=v.getTokenOffset()+c;S(n(h,s),c,w)}for(;17!==C;){for(var E=v.getTokenOffset()+v.getTokenLength()+c,I=b(),x="";!f&&(12===I||13===I);)S(" ",E,v.getTokenOffset()+c),E=v.getTokenOffset()+v.getTokenLength()+c,x=12===I?y():"",I=b();if(2===I)1!==C&&(g--,x=y());else if(4===I)3!==C&&(g--,x=y());else{switch(C){case 3:case 1:g++,x=y();break;case 5:case 12:x=y();break;case 13:x=f?y():" ";break;case 6:x=" ";break;case 10:if(6===I){x="";break}case 7:case 8:case 9:case 11:case 2:case 4:12===I||13===I?x=" ":5!==I&&17!==I&&(m=!0);break;case 16:m=!0}!f||12!==I&&13!==I||(x=y())}S(x,E,v.getTokenOffset()+c),C=I}return _},t.isEOL=r}),define(i[242],n([0,1,83,782]),function(e,t,i,n){"use strict";function r(e,t,n,r,s){for(var a,c=t.slice(),l=i.parseTree(e,[]),u=void 0,d=void 0;c.length>0&&(d=c.pop(),void 0===(u=i.findNodeAtLocation(l,c))&&void 0!==n);)"string"==typeof d?((a={})[d]=n,n=a):n=[n];if(u){if("object"===u.type&&"string"==typeof d&&Array.isArray(u.children)){var h=i.findNodeAtLocation(u,[d]);if(void 0!==h){if(void 0===n){if(!h.parent)throw new Error("Malformed AST");var p=u.children.indexOf(h.parent),f=void 0,g=h.parent.offset+h.parent.length;if(p>0)f=(S=u.children[p-1]).offset+S.length;else if(f=u.offset+1,u.children.length>1)g=u.children[1].offset;return o(e,{offset:f,length:g-f,content:""},r)}return o(e,{offset:h.offset,length:h.length,content:JSON.stringify(n)},r)}if(void 0===n)return[];var v=JSON.stringify(d)+": "+JSON.stringify(n),m=s?s(u.children.map(function(e){return e.children[0].value})):u.children.length,y=void 0;return o(e,y=m>0?{offset:(S=u.children[m-1]).offset+S.length,length:0,content:","+v}:0===u.children.length?{offset:u.offset+1,length:0,content:v}:{offset:u.offset+1,length:0,content:v+","},r)}if("array"===u.type&&"number"==typeof d&&Array.isArray(u.children)){if(-1===d){v=""+JSON.stringify(n),y=void 0;if(0===u.children.length)y={offset:u.offset+1,length:0,content:v};else y={offset:(S=u.children[u.children.length-1]).offset+S.length,length:0,content:","+v};return o(e,y,r)}if(void 0===n&&u.children.length>=0){var b=d,_=u.children[b];y=void 0;if(1===u.children.length)y={offset:u.offset+1,length:u.length-2,content:""};else if(u.children.length-1===b){var S,C=(S=u.children[b-1]).offset+S.length;y={offset:C,length:u.offset+u.length-2-C,content:""}}else y={offset:_.offset,length:u.children[b+1].offset-_.offset,content:""};return o(e,y,r)}throw new Error("Array modification not supported yet")}throw new Error("Can not add "+("number"!=typeof d?"index":"property")+" to parent of type "+u.type)}if(void 0===n)throw new Error("Can not delete in empty document");return o(e,{offset:l?l.offset:0,length:l?l.length:0,content:JSON.stringify(n)},r)}function o(e,t,i){var r=s(e,t),o=t.offset,a=t.offset+t.content.length;if(0===t.length||0===t.content.length){for(;o>0&&!n.isEOL(r,o-1);)o--;for(;a=0;l--){var u=c[l];r=s(r,u),o=Math.min(o,u.offset),a=Math.max(a,u.offset+u.length),a+=u.content.length-u.length}return[{offset:o,length:e.length-(r.length-a)-o,content:r.substring(o,a)}]}function s(e,t){return e.substring(0,t.offset)+t.content+e.substring(t.offset+t.length)}Object.defineProperty(t,"__esModule",{value:!0}),t.removeProperty=function(e,t,i){return r(e,t,void 0,i)},t.setProperty=r,t.applyEdit=s,t.isWS=function(e,t){return-1!=="\r\n \t".indexOf(e.charAt(t))}}),define(i[54],n([0,1,11]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),r=new n,o=new n,s=new n;function a(e,t){var i=!!(2048&e),n=!!(256&e);return new c(2===t?n:i,!!(1024&e),!!(512&e),2===t?i:n,255&e)}!function(){function e(e,t,i,n){void 0===i&&(i=t),void 0===n&&(n=i),r.define(e,t),o.define(e,i),s.define(e,n)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return r.keyCodeToStr(e)},e.fromString=function(e){return r.strToKeyCode(e)},e.toUserSettingsUS=function(e){return o.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return s.keyCodeToStr(e)},e.fromUserSettings=function(e){return o.strToKeyCode(e)||s.strToKeyCode(e)}}(t.KeyCodeUtils||(t.KeyCodeUtils={})),t.KeyChord=function(e,t){return(e|(65535&t)<<16>>>0)>>>0},t.createKeybinding=function(e,t){if(0===e)return null;var i=(65535&e)>>>0,n=(4294901760&e)>>>16;return new l(0!==n?[a(i,t),a(n,t)]:[a(i,t)])},t.createSimpleKeybinding=a;var c=function(){function e(e,t,i,n,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=n,this.keyCode=r}return e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.getHashCode=function(){return""+(this.ctrlKey?"1":"0")+(this.shiftKey?"1":"0")+(this.altKey?"1":"0")+(this.metaKey?"1":"0")+this.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new l([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}();t.SimpleKeybinding=c;var l=function(){function e(e){if(0===e.length)throw i.illegalArgument("parts");this.parts=e}return e.prototype.getHashCode=function(){for(var e="",t=0,i=this.parts.length;t1)&&l.fire(e),c=0},i)})},onLastListenerRemove:function(){o.dispose()}});return l.event},e.stopwatch=function(e){var t=(new Date).getTime();return n(i(e),function(e){return(new Date).getTime()-t})},e.latch=l,e.buffer=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=[]);var n=i.slice(),r=e(function(e){n?n.push(e):s.fire(e)}),o=function(){n&&n.forEach(function(e){return s.fire(e)}),n=null},s=new h({onFirstListenerAdd:function(){r||(r=e(function(e){return s.fire(e)}))},onFirstListenerDidAdd:function(){n&&(t?setTimeout(o):o())},onLastListenerRemove:function(){r&&r.dispose(),r=null}});return s.event},e.echo=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=[]),i=i.slice(),e(function(e){i.push(e),r.fire(e)});var n=function(e,t){return i.forEach(function(i){return e.call(t,i)})},r=new h({onListenerDidAdd:function(e,i,r){t?setTimeout(function(){return n(i,r)}):n(i,r)}});return r.event};var u=function(){function e(e){this.event=e}return e.prototype.map=function(t){return new e(n(this.event,t))},e.prototype.forEach=function(t){return new e(r(this.event,t))},e.prototype.filter=function(t){return new e(o(this.event,t))},e.prototype.reduce=function(t,i){return new e(a(this.event,t,i))},e.prototype.latch=function(){return new e(l(this.event))},e.prototype.on=function(e,t,i){return this.event(e,t,i)},e.prototype.once=function(e,t,n){return i(this.event)(e,t,n)},e}();e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,t,i){void 0===i&&(i=function(e){return e});var n=function(){for(var e=[],t=0;t0?new d(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(i,n,r){t._listeners||(t._listeners=new c.LinkedList);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s,a,l=t._listeners.push(n?[i,n]:i);return o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,i,n),t._leakageMon&&(s=t._leakageMon.check(t._listeners.size)),a={dispose:function(){(s&&s(),a.dispose=e._noop,t._disposed)||(l(),t._options&&t._options.onLastListenerRemove&&(t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)))}},Array.isArray(r)&&r.push(a),a}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){var r=this._deliveryQueue.shift(),o=r[0],s=r[1];try{"function"==typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(n){i.onUnexpectedError(n)}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}();t.Emitter=h;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.fireAsync=function(e){return r(this,void 0,void 0,function(){var t,n,r,s,a,c;return o(this,function(o){switch(o.label){case 0:if(!this._listeners)return[2];for(this._asyncDeliveryQueue||(this._asyncDeliveryQueue=[]),t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())c=[],this._asyncDeliveryQueue.push([n.value,e(c,"function"==typeof n.value?n.value:n.value[0]),c]);o.label=1;case 1:if(!(this._asyncDeliveryQueue.length>0))return[3,3];r=this._asyncDeliveryQueue.shift(),s=r[0],a=r[1],c=r[2];try{"function"==typeof s?s.call(void 0,a):s[0].call(s[1],a)}catch(e){return i.onUnexpectedError(e),[3,1]}return Object.freeze(c),[4,Promise.all(c)];case 2:return o.sent(),[3,1];case 3:return[2]}})})},t}(h);t.AsyncEmitter=p;var f=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new h({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,i={event:e,listener:null};this.events.push(i),this.hasListeners&&this.hook(i);return s.toDisposable(n.once(function(){t.hasListeners&&t.unhook(i);var e=t.events.indexOf(i);t.events.splice(e,1)}))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}();t.EventMultiplexer=f;var g=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(i,n,r){return e(function(e){var r=t.buffers[t.buffers.length-1];r?r.push(function(){return i.call(n,e)}):i.call(n,e)},void 0,r)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var i=e();return this.buffers.pop(),t.forEach(function(e){return e()}),i},e}();t.EventBufferer=g;var v=function(){function e(){var e=this;this.listening=!1,this.inputEvent=l.None,this.inputEventListener=s.Disposable.None,this.emitter=new h({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}();t.Relay=v}),define(i[68],n([0,1,5]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new i.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=1,this._onDidChangeFullscreen=new i.Emitter,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},e.prototype.setZoomLevel=function(e,t){this._zoomLevel!==e&&(this._zoomLevel=e,this._lastZoomLevelChangeTime=t?0:Date.now(),this._onDidChangeZoomLevel.fire(this._zoomLevel))},e.prototype.getZoomFactor=function(){return this._zoomFactor},e.prototype.setZoomFactor=function(e){this._zoomFactor=e},e.prototype.getPixelRatio=function(){var e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)},e.prototype.setFullscreen=function(e){this._fullscreen!==e&&(this._fullscreen=e,this._onDidChangeFullscreen.fire())},e.prototype.isFullscreen=function(){return this._fullscreen},e.INSTANCE=new e,e}();t.setZoomLevel=function(e,t){n.INSTANCE.setZoomLevel(e,t)},t.getZoomLevel=function(){return n.INSTANCE.getZoomLevel()},t.getTimeSinceLastZoomLevelChanged=function(){return n.INSTANCE.getTimeSinceLastZoomLevelChanged()},t.onDidChangeZoomLevel=function(e){return n.INSTANCE.onDidChangeZoomLevel(e)},t.getZoomFactor=function(){return n.INSTANCE.getZoomFactor()},t.setZoomFactor=function(e){n.INSTANCE.setZoomFactor(e)},t.getPixelRatio=function(){return n.INSTANCE.getPixelRatio()},t.setFullscreen=function(e){n.INSTANCE.setFullscreen(e)},t.isFullscreen=function(){return n.INSTANCE.isFullscreen()},t.onDidChangeFullscreen=n.INSTANCE.onDidChangeFullscreen;var r=navigator.userAgent;t.isIE=r.indexOf("Trident")>=0,t.isEdge=r.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isOpera=r.indexOf("Opera")>=0,t.isFirefox=r.indexOf("Firefox")>=0,t.isWebKit=r.indexOf("AppleWebKit")>=0,t.isChrome=r.indexOf("Chrome")>=0,t.isSafari=!t.isChrome&&r.indexOf("Safari")>=0,t.isWebkitWebView=!t.isChrome&&!t.isSafari&&t.isWebKit,t.isIPad=r.indexOf("iPad")>=0,t.isEdgeWebView=t.isEdge&&r.indexOf("WebView/")>=0,t.hasClipboardSupport=function(){if(t.isIE)return!1;if(t.isEdge){var e=r.indexOf("Edge/"),i=parseInt(r.substring(e+5,r.indexOf(".",e)),10);if(!i||i>=12&&i<=16)return!1}return!0}}),define(i[105],n([0,1,5]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.domEvent=function(e,t,n){var r=function(e){return o.fire(e)},o=new i.Emitter({onFirstListenerAdd:function(){e.addEventListener(t,r,n)},onLastListenerRemove:function(){e.removeEventListener(t,r,n)}});return o.event},t.stop=function(e){return i.Event.map(e,function(e){return e.preventDefault(),e.stopPropagation(),e})}}),define(i[394],n([0,1,17,5,92]),function(e,t,i,n,r){"use strict";function o(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function s(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function a(e){var t=e.element,i=e.collapsed;return{element:t,children:r.Iterator.map(r.Iterator.fromArray(e.children),a),collapsed:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.isFilterResult=o,t.getVisibleState=s;var c=function(){function e(e,t,i){void 0===i&&(i={}),this.list=e,this.rootRef=[],this.eventBufferer=new n.EventBufferer,this._onDidChangeCollapseState=new n.Emitter,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new n.Emitter,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new n.Emitter,this.onDidSplice=this._onDidSplice.event,this.collapseByDefault=void 0!==i.collapseByDefault&&i.collapseByDefault,this.filter=i.filter,this.autoExpandSingleChildren=void 0!==i.autoExpandSingleChildren&&i.autoExpandSingleChildren,this.root={parent:void 0,element:t,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visible:!0,filterData:void 0}}return e.prototype.splice=function(e,t,i,n,o){var s,c=this;if(0===e.length)throw new Error("Invalid tree location");for(var l=this.getParentNodeWithListIndex(e),u=l.parentNode,d=l.listIndex,h=l.revealed,p=l.visible,f=[],g=r.Iterator.map(r.Iterator.from(i),function(e){return c.createTreeNode(e,u,u.visible?1:0,h,f,n)}),v=e[e.length-1],m=0,y=v;y>=0&&y0&&o){var k=function(e){o(e),e.children.forEach(k)};C.forEach(k)}var L=r.Iterator.map(r.Iterator.fromArray(C),a);return this._onDidSplice.fire({insertedNodes:b,deletedNodes:C}),L},e.prototype.rerender=function(e){if(0===e.length)throw new Error("Invalid tree location");var t=this.getTreeNodeWithListIndex(e),i=t.node,n=t.listIndex;t.revealed&&this.list.splice(n,1,[i])},e.prototype.getListIndex=function(e){var t=this.getTreeNodeWithListIndex(e),i=t.listIndex,n=t.visible,r=t.revealed;return n&&r?i:-1},e.prototype.getListRenderCount=function(e){return this.getTreeNode(e).renderNodeCount},e.prototype.isCollapsible=function(e){return this.getTreeNode(e).collapsible},e.prototype.isCollapsed=function(e){return this.getTreeNode(e).collapsed},e.prototype.setCollapsed=function(e,t,i){var n=this,r=this.getTreeNode(e);return void 0===t&&(t=!r.collapsed),this.eventBufferer.bufferEvents(function(){return n._setCollapsed(e,t,i)})},e.prototype._setCollapsed=function(e,t,i){var n=this.getTreeNodeWithListIndex(e),r=n.node,o=n.listIndex,s=n.revealed,a=this._setListNodeCollapsed(r,o,s,t,i||!1);if(this.autoExpandSingleChildren&&!t&&!i){for(var c=-1,l=0;l-1){c=-1;break}c=l}}c>-1&&this._setCollapsed(e.concat([c]),!1,!1)}return a},e.prototype._setListNodeCollapsed=function(e,t,i,n,r){var o=this._setNodeCollapsed(e,n,r,!1);if(!i||!e.visible)return o;var s=e.renderNodeCount,a=this.updateNodeAfterCollapseChange(e),c=s-(-1===t?0:1);return this.list.splice(t+1,c,a.slice(1)),o},e.prototype._setNodeCollapsed=function(e,t,i,n){var r=e.collapsible&&e.collapsed!==t;if(e.collapsible&&(e.collapsed=t,r&&this._onDidChangeCollapseState.fire({node:e,deep:n})),i)for(var o=0,s=e.children;o0,c.visibleChildrenCount=p,c.visible=2===l?p>0:1===l,c.visible?c.collapsed||(c.renderNodeCount=f):(c.renderNodeCount=0,n&&o.pop()),s&&s(c),c},e.prototype.updateNodeAfterCollapseChange=function(e){var t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i},e.prototype._updateNodeAfterCollapseChange=function(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(var i=0,n=e.children;it.children.length)throw new Error("Invalid tree location");return this.getTreeNode(n,t.children[i])},e.prototype.getTreeNodeWithListIndex=function(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var t=this.getParentNodeWithListIndex(e),i=t.parentNode,n=t.listIndex,r=t.revealed,o=t.visible,s=e[e.length-1];if(s<0||s>i.children.length)throw new Error("Invalid tree location");var a=i.children[s];return{node:a,listIndex:n,revealed:r,visible:o&&a.visible}},e.prototype.getParentNodeWithListIndex=function(e,t,i,n,r){void 0===t&&(t=this.root),void 0===i&&(i=0),void 0===n&&(n=!0),void 0===r&&(r=!0);var o=e[0],s=e.slice(1);if(o<0||o>t.children.length)throw new Error("Invalid tree location");for(var a=0;a{};return{mark:function(t){e._performanceEntries.push(t,Date.now()),i(t)},getEntries:function(){const i=[],n=e._performanceEntries;for(let e=0;e=0;e-=t)if(r[e]===o){if(o!==n)return r[s+1]-r[e+1];s=e,o=i}return 0},importEntries:function(t){e._performanceEntries.splice(0,0,...t)},exportEntries:function(){return e._performanceEntries.slice(0)}}}let d;define(i[314],n([0,1,92,394]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){void 0===t&&(t={}),this.rootRef=null,this.nodes=new Map,this.model=new n.IndexTreeModel(e,null,t),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,t.sorter&&(this.sorter={compare:function(e,i){return t.sorter.compare(e.element,i.element)}})}return Object.defineProperty(e.prototype,"size",{get:function(){return this.nodes.size},enumerable:!0,configurable:!0}),e.prototype.setChildren=function(e,t,i,n){var r=this.getElementLocation(e);return this._setChildren(r,this.preserveCollapseState(t),i,n)},e.prototype._setChildren=function(e,t,i,n){var r=this,o=new Set;return this.model.splice(e.concat([0]),Number.MAX_VALUE,t,function(e){o.add(e.element),r.nodes.set(e.element,e),i&&i(e)},function(e){o.has(e.element)||r.nodes.delete(e.element),n&&n(e)})},e.prototype.preserveCollapseState=function(e){var t=this,n=e?i.getSequenceIterator(e):i.Iterator.empty();return this.sorter&&(n=i.Iterator.fromArray(i.Iterator.collect(n).sort(this.sorter.compare.bind(this.sorter)))),i.Iterator.map(n,function(e){var i=t.nodes.get(e.element);if(!i)return l({},e,{children:t.preserveCollapseState(e.children)});var n="boolean"==typeof e.collapsible?e.collapsible:i.collapsible,r=void 0!==e.collapsed?e.collapsed:i.collapsed;return l({},e,{collapsible:n,collapsed:r,children:t.preserveCollapseState(e.children)})})},e.prototype.rerender=function(e){var t=this.getElementLocation(e);this.model.rerender(t)},e.prototype.resort=function(e,t){if(void 0===e&&(e=null),void 0===t&&(t=!0),this.sorter){var i=this.getElementLocation(e),n=this.model.getNode(i);this._setChildren(i,this.resortChildren(n,t))}},e.prototype.resortChildren=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=i.Iterator.fromArray(e.children);return(t||n)&&(o=i.Iterator.fromArray(i.Iterator.collect(o).sort(this.sorter.compare.bind(this.sorter)))),i.Iterator.map(o,function(e){return{element:e.element,collapsible:e.collapsible,collapsed:e.collapsed,children:r.resortChildren(e,t,!1)}})},e.prototype.getParentElement=function(e){void 0===e&&(e=null);var t=this.getElementLocation(e);return this.model.getParentElement(t)},e.prototype.getFirstElementChild=function(e){void 0===e&&(e=null);var t=this.getElementLocation(e);return this.model.getFirstElementChild(t)},e.prototype.getLastElementAncestor=function(e){void 0===e&&(e=null);var t=this.getElementLocation(e);return this.model.getLastElementAncestor(t)},e.prototype.getListIndex=function(e){var t=this.getElementLocation(e);return this.model.getListIndex(t)},e.prototype.getListRenderCount=function(e){var t=this.getElementLocation(e);return this.model.getListRenderCount(t)},e.prototype.isCollapsible=function(e){var t=this.getElementLocation(e);return this.model.isCollapsible(t)},e.prototype.isCollapsed=function(e){var t=this.getElementLocation(e);return this.model.isCollapsed(t)},e.prototype.setCollapsed=function(e,t,i){var n=this.getElementLocation(e);return this.model.setCollapsed(n,t,i)},e.prototype.expandTo=function(e){var t=this.getElementLocation(e);this.model.expandTo(t)},e.prototype.refilter=function(){this.model.refilter()},e.prototype.getNode=function(e){void 0===e&&(e=null);var t=this.getElementLocation(e);return this.model.getNode(t)},e.prototype.getNodeLocation=function(e){return e.element},e.prototype.getParentNodeLocation=function(e){var t=this.nodes.get(e);if(!t)throw new Error("Tree element not found: "+e);return t.parent.element},e.prototype.getElementLocation=function(e){if(null===e)return[];var t=this.nodes.get(e);if(!t)throw new Error("Tree element not found: "+e);return this.model.getNodeLocation(t)},e}();t.ObjectTreeModel=r}),define(i[29],n([0,1,2,5]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,i,r,o){void 0===t&&(t=""),void 0===i&&(i=""),void 0===r&&(r=!0),this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event,this._id=e,this._label=t,this._cssClass=i,this._enabled=r,this._actionCallback=o}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),e.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),e.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(e.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),e.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),e.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),e.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},e.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},e.prototype.run=function(e,t){return this._actionCallback?this._actionCallback(e):Promise.resolve(!0)},e.prototype.dispose=function(){this._onDidChange.dispose()},e}();t.Action=r;var o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onDidBeforeRun=t._register(new n.Emitter),t.onDidBeforeRun=t._onDidBeforeRun.event,t._onDidRun=t._register(new n.Emitter),t.onDidRun=t._onDidRun.event,t}return a(t,e),t.prototype.run=function(e,t){var i=this;return e.enabled?(this._onDidBeforeRun.fire({action:e}),this.runAction(e,t).then(function(t){i._onDidRun.fire({action:e,result:t})},function(t){i._onDidRun.fire({action:e,error:t})})):Promise.resolve(null)},t.prototype.runAction=function(e,t){var i=t?e.run(t):e.run();return Promise.resolve(i)},t}(i.Disposable);t.ActionRunner=o;var s=function(e){function t(t){var n=e.call(this)||this;return n.actions=t,n._register(i.combinedDisposable(t.map(function(e){return e.onDidChange(function(i){if(i.checked&&e.checked)for(var n=0,r=t;n=r)return Promise.resolve(i);var s=e[n++];return Promise.resolve(s()).then(function(e){return t(e)?Promise.resolve(e):o()})};return o()};var f=function(){function e(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new r.Emitter}return Object.defineProperty(e.prototype,"onFinished",{get:function(){return this._onFinished.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.queue=function(e){var t=this;return this._size++,new Promise(function(i,n){t.outstandingPromises.push({factory:e,c:i,e:n}),t.consume()})},e.prototype.consume=function(){for(var e=this;this.outstandingPromises.length&&this.runningPromises0?this.consume():this._onFinished.fire()},e.prototype.dispose=function(){this._onFinished.dispose()},e}();t.Limiter=f;var g=function(e){function t(){return e.call(this,1)||this}return a(t,e),t}(f);t.Queue=g;var v=function(){function e(){this.queues=Object.create(null)}return e.prototype.queueFor=function(e){var t=this,i=e.toString();if(!this.queues[i]){var n=new g;n.onFinished(function(){n.dispose(),delete t.queues[i]}),this.queues[i]=n}return this.queues[i]},e}();t.ResourceQueue=v;var m=function(e){function t(t,i){var n=e.call(this)||this;return n._token=-1,"function"==typeof t&&"number"==typeof i&&n.setIfNotSet(t,i),n}return a(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){var i=this;this.cancel(),this._token=setTimeout(function(){i._token=-1,e()},t)},t.prototype.setIfNotSet=function(e,t){var i=this;-1===this._token&&(this._token=setTimeout(function(){i._token=-1,e()},t))},t}(o.Disposable);t.TimeoutTimer=m;var y=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return a(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval(function(){e()},t)},t}(o.Disposable);t.IntervalTimer=y;var b=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),this.runner=null},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return-1!==this.timeoutToken},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},e.prototype.doRun=function(){this.runner&&this.runner()},e}();t.RunOnceScheduler=b;var _=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.units=[],n}return a(t,e),t.prototype.work=function(e){this.units.push(e),this.isScheduled()||this.schedule()},t.prototype.doRun=function(){var e=this.units;this.units=[],this.runner&&this.runner(e)},t.prototype.dispose=function(){this.units=[],e.prototype.dispose.call(this)},t}(b);t.RunOnceWorker=_,t.nfcall=function(e){for(var t=[],i=1;i ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)|(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:g,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};function i(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||b.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=d(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d+\.)/,t.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,t.item=d(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=d(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._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",t._comment=//,t.html=d(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=d(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag",t._tag).getRegex(),t.blockquote=d(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=v({},t),t.gfm=v({},t.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=d(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=v({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=v({},t.normal,{html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/}),i.rules=t,i.lex=function(e,t){return new i(t).lex(e)},i.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},i.prototype.token=function(e,i){var n,r,o,s,a,c,l,u,d,h,p,f,g,v,b,_;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:y(o,"\n")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(i&&(o=this.rules.nptable.exec(e))&&(c={type:"table",header:m(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===c.align.length){for(e=e.substring(o[0].length),p=0;p ?/gm,""),this.token(o,i),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),l={type:"list_start",ordered:v=(s=o[2]).length>1,start:v?+s:"",loose:!1},this.tokens.push(l),u=[],n=!1,g=(o=o[0].match(this.rules.item)).length,p=0;p1&&a.length>1||(e=o.slice(p+1).join("\n")+e,p=g-1)),r=n||/\n\n(?!\s*$)/.test(c),p!==g-1&&(n="\n"===c.charAt(c.length-1),r||(r=n)),r&&(l.loose=!0),_=void 0,(b=/^\[[ xX]\] /.test(c))&&(_=" "!==c[1],c=c.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:b,checked:_,loose:r},u.push(d),this.tokens.push(d),this.token(c,!1),this.tokens.push({type:"list_item_end"});if(l.loose)for(g=u.length,p=0;p?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s])__(?!_)|^\*\*([^\s])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_)|^_([^\s_][\s\S]*?[^\s])_(?!_)|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:g,text:/^[\s\S]+?(?=[\\/g,">").replace(/"/g,""").replace(/'/g,"'")}function u(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function d(e,t){return e=e.source||e,t=t||"",{replace:function(t,i){return i=(i=i.source||i).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,i),this},getRegex:function(){return new RegExp(e,t)}}}function h(e,t){return p[" "+e]||(/^[^:]+:\/*[^\/]*$/.test(e)?p[" "+e]=e+"/":p[" "+e]=y(e,"/",!0)),e=p[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^\/]*)[\s\S]*/,"$1")+t:e+t}n._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,n._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,n._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])?)+(?![-_])/,n.autolink=d(n.autolink).replace("scheme",n._scheme).replace("email",n._email).getRegex(),n._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,n.tag=d(n.tag).replace("comment",t._comment).replace("attribute",n._attribute).getRegex(),n._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/,n._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f\\]*\)|[^\s\x00-\x1f()\\])*?)/,n._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,n.link=d(n.link).replace("label",n._label).replace("href",n._href).replace("title",n._title).getRegex(),n.reflink=d(n.reflink).replace("label",n._label).getRegex(),n.normal=v({},n),n.pedantic=v({},n.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",n._label).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",n._label).getRegex()}),n.gfm=v({},n.normal,{escape:d(n.escape).replace("])","~|])").getRegex(),url:d(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",n._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:d(n.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),n.breaks=v({},n.gfm,{br:d(n.br).replace("{2,}","*").getRegex(),text:d(n.gfm.text).replace("{2,}","*").getRegex()}),r.rules=n,r.output=function(e,t,i){return new r(t,i).output(e)},r.prototype.output=function(e){for(var t,i,n,o,s,a,c="";e;)if(s=this.rules.escape.exec(e))e=e.substring(s[0].length),c+=s[1];else if(s=this.rules.autolink.exec(e))e=e.substring(s[0].length),n="@"===s[2]?"mailto:"+(i=l(this.mangle(s[1]))):i=l(s[1]),c+=this.renderer.link(n,null,i);else if(this.inLink||!(s=this.rules.url.exec(e))){if(s=this.rules.tag.exec(e))!this.inLink&&/^/i.test(s[0])&&(this.inLink=!1),e=e.substring(s[0].length),c+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):l(s[0]):s[0];else if(s=this.rules.link.exec(e))e=e.substring(s[0].length),this.inLink=!0,n=s[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n))?(n=t[1],o=t[3]):o="":o=s[3]?s[3].slice(1,-1):"",n=n.trim().replace(/^<([\s\S]*)>$/,"$1"),c+=this.outputLink(s,{href:r.escapes(n),title:r.escapes(o)}),this.inLink=!1;else if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){if(e=e.substring(s[0].length),t=(s[2]||s[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){c+=s[0].charAt(0),e=s[0].substring(1)+e;continue}this.inLink=!0,c+=this.outputLink(s,t),this.inLink=!1}else if(s=this.rules.strong.exec(e))e=e.substring(s[0].length),c+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.em.exec(e))e=e.substring(s[0].length),c+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));else if(s=this.rules.code.exec(e))e=e.substring(s[0].length),c+=this.renderer.codespan(l(s[2].trim(),!0));else if(s=this.rules.br.exec(e))e=e.substring(s[0].length),c+=this.renderer.br();else if(s=this.rules.del.exec(e))e=e.substring(s[0].length),c+=this.renderer.del(this.output(s[1]));else if(s=this.rules.text.exec(e))e=e.substring(s[0].length),c+=this.renderer.text(l(this.smartypants(s[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{do{a=s[0],s[0]=this.rules._backpedal.exec(s[0])[0]}while(a!==s[0]);e=e.substring(s[0].length),"@"===s[2]?n="mailto:"+(i=l(s[0])):(i=l(s[0]),n="www."===s[1]?"http://"+i:i),c+=this.renderer.link(n,null,i)}return c},r.escapes=function(e){return e?e.replace(r.rules._escapes,"$1"):e},r.prototype.outputLink=function(e,t){var i=t.href,n=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(i,n,this.output(e[1])):this.renderer.image(i,n,l(e[1]))},r.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},r.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,i="",n=e.length,r=0;r.5&&(t="x"+t.toString(16)),i+="&#"+t+";";return i},o.prototype.code=function(e,t,i){if(this.options.highlight){var n=this.options.highlight(e,t);null!=n&&n!==e&&(i=!0,e=n)}return t?'
    '+(i?e:l(e,!0))+"
    \n":"
    "+(i?e:l(e,!0))+"
    "},o.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},o.prototype.html=function(e){return e},o.prototype.heading=function(e,t,i){return this.options.headerIds?"'+e+"\n":""+e+"\n"},o.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},o.prototype.list=function(e,t,i){var n=t?"ol":"ul";return"<"+n+(t&&1!==i?' start="'+i+'"':"")+">\n"+e+"\n"},o.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},o.prototype.checkbox=function(e){return" "},o.prototype.paragraph=function(e){return"

    "+e+"

    \n"},o.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},o.prototype.tablerow=function(e){return"\n"+e+"\n"},o.prototype.tablecell=function(e,t){var i=t.header?"th":"td";return(t.align?"<"+i+' align="'+t.align+'">':"<"+i+">")+e+"\n"},o.prototype.strong=function(e){return""+e+""},o.prototype.em=function(e){return""+e+""},o.prototype.codespan=function(e){return""+e+""},o.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},o.prototype.del=function(e){return""+e+""},o.prototype.link=function(e,t,i){if(this.options.sanitize){try{var n=decodeURIComponent(u(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return i}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return i}this.options.baseUrl&&!f.test(e)&&(e=h(this.options.baseUrl,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return i}var r='
    "},o.prototype.image=function(e,t,i){this.options.baseUrl&&!f.test(e)&&(e=h(this.options.baseUrl,e));var n=''+i+'":">"},o.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,i){return""+i},s.prototype.br=function(){return""},a.parse=function(e,t){return new a(t).parse(e)},a.prototype.parse=function(e){this.inline=new r(e.links,this.options),this.inlineText=new r(e.links,v({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},a.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,u(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,i,n,r="",o="";for(i="",e=0;e=0&&"\\"===i[r];)n=!n;return n?"|":" |"}).split(/ \|/),n=0;if(i.length>t)i.splice(t);else for(;i.lengthAn error occurred:

    "+l(e.message+"",!0)+"
    ";throw e}}g.exec=g,b.options=b.setOptions=function(e){return v(b.defaults,e),b},b.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new o,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},b.defaults=b.getDefaults(),b.Parser=a,b.parser=a.parse,b.Renderer=o,b.TextRenderer=s,b.Lexer=i,b.lexer=i.lex,b.InlineLexer=r,b.inlineLexer=r.output,b.parse=b,c=b}.call(this),define("vs/base/common/marked/marked",function(){return c}),define(i[33],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command"}(t.Schemas||(t.Schemas={}))}),define(i[224],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=function(e,t,i){return Math.min(Math.max(e,t),i)},t.rot=function(e,t){return(t+e%t)%t};var i=function(){function e(){this._next=0}return e.prototype.getNext=function(){return this._next++},e}();t.Counter=i}),d="object"==typeof global?global:"object"==typeof self?self:{},"function"==typeof define?define("vs/base/common/performance",[],function(){return u(d)}):"object"==typeof module&&"object"==typeof module.exports&&(module.exports=u(d)),define(i[12],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LANGUAGE_DEFAULT="en";var i=!1,n=!1,r=!1,o=!1,s=!1,a=void 0,c=t.LANGUAGE_DEFAULT,l=void 0,u="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type;if("object"!=typeof navigator||u){if("object"==typeof process){i="win32"===process.platform,n="darwin"===process.platform,r="linux"===process.platform,a=t.LANGUAGE_DEFAULT,c=t.LANGUAGE_DEFAULT;var d=process.env.VSCODE_NLS_CONFIG;if(d)try{var h=JSON.parse(d),p=h.availableLanguages["*"];a=h.locale,c=p||t.LANGUAGE_DEFAULT,l=h._translationsConfigFile}catch(e){}o=!0}}else{var f=navigator.userAgent;i=f.indexOf("Windows")>=0,n=f.indexOf("Macintosh")>=0,r=f.indexOf("Linux")>=0,s=!0,c=a=navigator.language}t.PlatformToString=function(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}};var g=0;o&&(n?g=1:i?g=3:r&&(g=2)),t.isWindows=i,t.isMacintosh=n,t.isLinux=r,t.isNative=o,t.isWeb=s,t.platform=g,t.isRootUser=function(){return o&&!i&&0===process.getuid()},t.language=c,t.locale=a,t.translationsConfigFile=l;var v="object"==typeof self?self:"object"==typeof global?global:{};t.globals=v;var m=null;t.setImmediate=function(e){return null===m&&(m=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):t.globals.setTimeout.bind(t.globals)),m(e)},t.OS=n?2:i?1:3}),define(i[60],n([0,1,68,54,12]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=new Array(230),s=new Array(112);!function(){for(var e=0;e=0;){if(o=s+r,(0===s||32===i.charCodeAt(s-1))&&32===i.charCodeAt(o))return this._lastStart=s,void(this._lastEnd=o+1);if(s>0&&32===i.charCodeAt(s-1)&&o===n)return this._lastStart=s-1,void(this._lastEnd=o);if(0===s&&o===n)return this._lastStart=0,void(this._lastEnd=o)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClasses=function(e){for(var t=this,i=[],n=1;n0;){_.sort(E.sort),_.shift().execute()}C=!1},t.scheduleAtNextAnimationFrame=function(e,t){void 0===t&&(t=0);var i,n=new E(e,t);return b.push(n),S||(S=!0,i=w,y||(y=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout(function(){return e((new Date).getTime())},0)}),y.call(self,i)),n},t.runAtThisOrScheduleAtNextAnimationFrame=function(e,i){if(C){var n=new E(e,i);return _.push(n),n}return t.scheduleAtNextAnimationFrame(e,i)},t.measure=function(e){return t.scheduleAtNextAnimationFrame(e,1e4)},t.modify=function(e){return t.scheduleAtNextAnimationFrame(e,-1e4)};var I=16,x=function(e,t){return t},D=function(e){function t(t,i,n,r,o){void 0===r&&(r=x),void 0===o&&(o=I);var a=e.call(this)||this,c=null,l=0,u=a._register(new s.TimeoutTimer),d=function(){l=(new Date).getTime(),n(c),c=null};return a._register(m(t,i,function(e){c=r(c,e);var t=(new Date).getTime()-l;t>=o?(u.cancel(),d()):u.setIfNotSet(d,o-t)})),a}return a(t,e),t}(u.Disposable);function k(e){return document.defaultView.getComputedStyle(e,null)}t.addDisposableThrottledListener=function(e,t,i,n,r){return new D(e,t,i,n,r)},t.getComputedStyle=k;var L=function(e,t){return parseFloat(t)||0};function M(e,t,i){var n=k(e),r="0";return n&&(r=n.getPropertyValue?n.getPropertyValue(t):n.getAttribute(i)),L(e,r)}t.getClientArea=function(e){if(e!==document.body)return new O(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new O(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new O(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new O(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")};var R={getBorderLeftWidth:function(e){return M(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return M(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return M(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return M(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return M(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return M(e,"padding-right","paddingRight")},getPaddingTop:function(e){return M(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return M(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return M(e,"margin-left","marginLeft")},getMarginTop:function(e){return M(e,"margin-top","marginTop")},getMarginRight:function(e){return M(e,"margin-right","marginRight")},getMarginBottom:function(e){return M(e,"margin-bottom","marginBottom")},__commaSentinel:!1},O=function(){function e(e,t){this.width=e,this.height=t}return e.equals=function(e,t){return e===t||!(!e||!t)&&(e.width===t.width&&e.height===t.height)},e}();function T(e){for(var t=e.offsetParent,i=e.offsetTop,n=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){i-=e.scrollTop;var r=k(e);r&&(n-="rtl"!==r.direction?e.scrollLeft:-e.scrollLeft),e===t&&(n+=R.getBorderLeftWidth(e),i+=R.getBorderTopWidth(e),i+=e.offsetTop,n+=e.offsetLeft,t=e.offsetParent)}return{left:n,top:i}}function P(e){var t=R.getMarginLeft(e)+R.getMarginRight(e);return e.offsetWidth+t}function A(e){var t=R.getMarginLeft(e)+R.getMarginRight(e);return e.scrollWidth+t}function N(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function F(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}t.Dimension=O,t.getTopLeftOffset=T,t.size=function(e,t,i){"number"==typeof t&&(e.style.width=t+"px"),"number"==typeof i&&(e.style.height=i+"px")},t.position=function(e,t,i,n,r,o){void 0===o&&(o="absolute"),"number"==typeof t&&(e.style.top=t+"px"),"number"==typeof i&&(e.style.right=i+"px"),"number"==typeof n&&(e.style.bottom=n+"px"),"number"==typeof r&&(e.style.left=r+"px"),e.style.position=o},t.getDomNodePagePosition=function(e){var i=e.getBoundingClientRect();return{left:i.left+t.StandardWindow.scrollX,top:i.top+t.StandardWindow.scrollY,width:i.width,height:i.height}},t.StandardWindow=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}()),t.getTotalWidth=P,t.getContentWidth=function(e){var t=R.getBorderLeftWidth(e)+R.getBorderRightWidth(e),i=R.getPaddingLeft(e)+R.getPaddingRight(e);return e.offsetWidth-t-i},t.getTotalScrollWidth=A,t.getContentHeight=function(e){var t=R.getBorderTopWidth(e)+R.getBorderBottomWidth(e),i=R.getPaddingTop(e)+R.getPaddingBottom(e);return e.offsetHeight-t-i},t.getTotalHeight=function(e){var t=R.getMarginTop(e)+R.getMarginBottom(e);return e.offsetHeight+t},t.getLargestChildWidth=function(e,t){var i=t.map(function(t){return Math.max(A(t),P(t))+function(e,t){if(null===e)return 0;var i=T(e),n=T(t);return i.left-n.left}(t,e)||0});return Math.max.apply(Math,i)},t.isAncestor=N,t.findParentWithClass=function(e,i,n){for(;e;){if(t.hasClass(e,i))return e;if(n)if("string"==typeof n){if(t.hasClass(e,n))return null}else if(e===n)return null;e=e.parentNode}return null},t.createStyleSheet=F;var W=null;function B(){return W||(W=F()),W}t.createCSSRule=function(e,t,i){void 0===i&&(i=B()),i&&t&&i.sheet.insertRule(e+"{"+t+"}",0)},t.removeCSSRulesContainingSelector=function(e,t){if(void 0===t&&(t=B()),t){for(var i=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),n=[],r=0;r=0;r--)t.sheet.deleteRule(n[r])}},t.isHTMLElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName},t.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:i.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:i.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:i.isWebKit?"webkitAnimationIteration":"animationiteration"},t.EventHelper={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},t.saveParentsScrollTop=function(e){for(var t=[],i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)t[i]=e.scrollTop,e=e.parentNode;return t},t.restoreParentsScrollTop=function(e,t){for(var i=0;e&&e.nodeType===e.ELEMENT_NODE;i++)e.scrollTop!==t[i]&&(e.scrollTop=t[i]),e=e.parentNode};var V=function(){function e(e){var i=this;this._onDidFocus=new l.Emitter,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new l.Emitter,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var r=N(document.activeElement,e),o=!1;n.domEvent(e,t.EventType.FOCUS,!0)(function(){o=!1,r||(r=!0,i._onDidFocus.fire())},null,this.disposables),n.domEvent(e,t.EventType.BLUR,!0)(function(){r&&(o=!0,window.setTimeout(function(){o&&(o=!1,r=!1,i._onDidBlur.fire())},0))},null,this.disposables)}return e.prototype.dispose=function(){this.disposables=u.dispose(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();t.trackFocus=function(e){return new V(e)},t.append=function(e){for(var t=[],i=1;i0&&(t instanceof Node?i.push(t.cloneNode()):i.push(document.createTextNode(t))),i.push(e)}),i},t.show=function(){for(var e=[],t=0;t0},t.prototype.startMonitoring=function(e,t,o){var s=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=o;for(var a=n.IframeUtils.getSameOriginWindowChain(),c=0,l=a;c=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};define(i[104],n([0,1,17,2,7,107]),function(e,t,i,n,r,o){"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(s=t.EventType||(t.EventType={}));var c=function(e){function t(){var t=e.call(this)||this;return t.activeTouches={},t.handle=null,t.targets=[],t._register(r.addDisposableListener(document,"touchstart",function(e){return t.onTouchStart(e)})),t._register(r.addDisposableListener(document,"touchend",function(e){return t.onTouchEnd(e)})),t._register(r.addDisposableListener(document,"touchmove",function(e){return t.onTouchMove(e)})),t}return a(t,e),t.addTarget=function(e){t.isTouchDevice()&&(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e))},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var i=0,n=e.targetTouches.length;i=t.HOLD_DELAY&&Math.abs(u.initialPageX-i.tail(u.rollingPageX))<30&&Math.abs(u.initialPageY-i.tail(u.rollingPageY))<30){var h;(h=a.newGestureEvent(s.Contextmenu,u.initialTarget)).pageX=i.tail(u.rollingPageX),h.pageY=i.tail(u.rollingPageY),a.dispatchEvent(h)}else if(1===r){var p=i.tail(u.rollingPageX),f=i.tail(u.rollingPageY),g=i.tail(u.rollingTimestamps)-u.rollingTimestamps[0],v=p-u.rollingPageX[0],m=f-u.rollingPageY[0],y=a.targets.filter(function(e){return u.initialTarget instanceof Node&&e.contains(u.initialTarget)});a.inertia(y,n,Math.abs(v)/g,v>0?1:-1,p,Math.abs(m)/g,m>0?1:-1,f)}a.dispatchEvent(a.newGestureEvent(s.End,u.initialTarget)),delete a.activeTouches[l.identifier]},a=this,c=0,l=e.changedTouches.length;c0&&(g=!1,p=o*n*h),c>0&&(g=!1,f=l*c*h);var v=d.newGestureEvent(s.Change);v.translationX=p,v.translationY=f,e.forEach(function(e){return e.dispatchEvent(v)}),g||d.inertia(e,r,n,o,a+p,c,l,u+f)})},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,r=e.changedTouches.length;n3&&(a.rollingPageX.shift(),a.rollingPageY.shift(),a.rollingTimestamps.shift()),a.rollingPageX.push(o.pageX),a.rollingPageY.push(o.pageY),a.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,p([o.memoize],t,"isTouchDevice",null),t}(n.Disposable);t.Gesture=c}),define(i[897],n([0,1,7]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.renderers=e,this.cache=new Map}return e.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var n=i.$(".monaco-list-row");t={domNode:n,templateId:e,templateData:this.getRenderer(e).renderTemplate(n)}}return t},e.prototype.release=function(e){e&&this.releaseRow(e)},e.prototype.releaseRow=function(e){var t=e.domNode,n=e.templateId;t&&(i.removeClass(t,"scrolling"),function(e){try{e.parentElement&&e.parentElement.removeChild(e)}catch(e){}}(t)),this.getTemplateCache(n).push(e)},e.prototype.getTemplateCache=function(e){var t=this.cache.get(e);return t||(t=[],this.cache.set(e,t)),t},e.prototype.garbageCollect=function(){var e=this;this.renderers&&(this.cache.forEach(function(t,i){for(var n=0,r=t;n=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected140)i._setDesiredScrollPositionNow(s.getScrollPosition());else{var a=i._sliderMousePosition(e)-n;i._setDesiredScrollPositionNow(s.getDesiredScrollPositionFromDelta(a))}},function(){i.slider.toggleClassName("active",!1),i._host.onDragEnd(),t()}),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(c.Widget);t.AbstractScrollbar=u}),define(i[989],n([0,1,76,381,313,386]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t,n,s){var a=e.call(this,{lazyRender:n.lazyRender,host:s,scrollbarState:new o.ScrollbarState(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var c=(n.arrowSize-r.ARROW_IMG_SIZE)/2,l=(n.horizontalScrollbarSize-r.ARROW_IMG_SIZE)/2;a._createArrow({className:"left-arrow",top:l,left:c,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return a._host.onMouseWheel(new i.StandardWheelEvent(null,1,0))}}),a._createArrow({className:"right-arrow",top:l,left:void 0,bottom:void 0,right:c,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return a._host.onMouseWheel(new i.StandardWheelEvent(null,-1,0))}})}return a._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),a}return a(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(n.AbstractScrollbar);t.HorizontalScrollbar=s}),define(i[1009],n([0,1,76,381,313,386]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t,n,s){var a=e.call(this,{lazyRender:n.lazyRender,host:s,scrollbarState:new o.ScrollbarState(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var c=(n.arrowSize-r.ARROW_IMG_SIZE)/2,l=(n.verticalScrollbarSize-r.ARROW_IMG_SIZE)/2;a._createArrow({className:"up-arrow",top:c,left:l,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return a._host.onMouseWheel(new i.StandardWheelEvent(null,0,1))}}),a._createArrow({className:"down-arrow",top:void 0,left:l,bottom:c,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return a._host.onMouseWheel(new i.StandardWheelEvent(null,0,-1))}})}return a._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),a}return a(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(n.AbstractScrollbar);t.VerticalScrollbar=s}),define(i[312],n([0,1,12]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="undefined"==typeof process?{cwd:function(){return"/"},env:Object.create(null),get platform(){return i.isWindows?"win32":i.isMacintosh?"darwin":"linux"},nextTick:function(e){return i.setImmediate(e)}}:process;t.cwd=n.cwd,t.env=n.env,t.platform=n.platform,t.nextTick=n.nextTick}),define(i[35],n([0,1,312]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=65,r=97,o=90,s=122,c=46,l=47,u=92,d=function(e){function t(t,i,n){var r,o;"string"==typeof i&&0===i.indexOf("not ")?(r="must not be",i=i.replace(/^not /,"")):r="must be";var s=-1!==t.indexOf(".")?"property":"argument";return o='The "'+t+'" '+s+" "+r+" of type "+i,o+=". Received type "+typeof n,e.call(this,o)||this}return a(t,e),t}(Error);function h(e,t){if("string"!=typeof e)throw new d(t,"string",e)}function p(e){return e===l||e===u}function f(e){return e===l}function g(e){return e>=n&&e<=o||e>=r&&e<=s}function v(e,t,i,n){for(var r,o="",s=0,a=-1,u=0,d=0;d<=e.length;++d){if(d2){var h=o.lastIndexOf(i);-1===h?(o="",s=0):s=(o=o.slice(0,h)).length-1-o.lastIndexOf(i),a=d,u=0;continue}if(2===o.length||1===o.length){o="",s=0,a=d,u=0;continue}}t&&(o.length>0?o+=i+"..":o="..",s=2)}else o.length>0?o+=i+e.slice(a+1,d):o=e.slice(a+1,d),s=d-a-1;a=d,u=0}else r===c&&-1!==u?++u:u=-1}return o}function m(e,t){var i=t.dir||t.root,n=t.base||(t.name||"")+(t.ext||"");return i?i===t.root?i+n:i+e+n:n}t.win32={resolve:function(){for(var e=[],t=0;t=-1;s--){var a=void 0;if(s>=0?a=e[s]:n?void 0!==(a=i.env["="+n]||i.cwd())&&a.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(a=n+"\\"):a=i.cwd(),h(a,"path"),0!==a.length){var c=a.length,l=0,u="",d=!1,f=a.charCodeAt(0);if(c>1)if(p(f))if(d=!0,p(a.charCodeAt(1))){for(var m=2,y=m;m2&&p(a.charCodeAt(2))&&(d=!0,l=3));else p(f)&&(l=1,d=!0);if(!(u.length>0&&n.length>0&&u.toLowerCase()!==n.toLowerCase())&&(0===n.length&&u.length>0&&(n=u),o||(r=a.slice(l)+"\\"+r,o=d),n.length>0&&o))break}}return n+(o?"\\":"")+(r=v(r,!o,"\\",p))||"."},normalize:function(e){h(e,"path");var t=e.length;if(0===t)return".";var i,n,r=0,o=!1,s=e.charCodeAt(0);if(t>1)if(p(s))if(o=!0,p(e.charCodeAt(1))){for(var a=2,c=a;a2&&p(e.charCodeAt(2))&&(o=!0,r=3));else if(p(s))return"\\";return 0!==(n=r0&&p(e.charCodeAt(t-1))&&(n+="\\"),void 0===i?o?n.length>0?"\\"+n:"\\":n.length>0?n:"":o?n.length>0?i+"\\"+n:i+"\\":n.length>0?i+n:i},isAbsolute:function(e){h(e,"path");var t=e.length;if(0===t)return!1;var i=e.charCodeAt(0);return!!p(i)||!!(g(i)&&t>2&&58===e.charCodeAt(1)&&p(e.charCodeAt(2)))},join:function(){for(var e,i,n=[],r=0;r0&&(void 0===e?e=i=s:e+="\\"+s)}if(void 0===e)return".";var a=!0,c=0;if(p(i.charCodeAt(0))){++c;var l=i.length;l>1&&p(i.charCodeAt(1))&&(++c,l>2&&(p(i.charCodeAt(2))?++c:a=!1))}if(a){for(;c=2&&(e="\\"+e.slice(c))}return t.win32.normalize(e)},relative:function(e,i){if(h(e,"from"),h(i,"to"),e===i)return"";var n=t.win32.resolve(e),r=t.win32.resolve(i);if(n===r)return"";if((e=n.toLowerCase())===(i=r.toLowerCase()))return"";for(var o=0;oo&&e.charCodeAt(s-1)===u;--s);for(var a=s-o,c=0;cc&&i.charCodeAt(l-1)===u;--l);for(var d=l-c,p=ap){if(i.charCodeAt(c+g)===u)return r.slice(c+g+1);if(2===g)return r.slice(c+g)}a>p&&(e.charCodeAt(o+g)===u?f=g:2===g&&(f=3));break}var v=e.charCodeAt(o+g);if(v!==i.charCodeAt(c+g))break;v===u&&(f=g)}if(g!==p&&-1===f)return r;var m="";for(-1===f&&(f=0),g=o+f+1;g<=s;++g)g!==s&&e.charCodeAt(g)!==u||(0===m.length?m+="..":m+="\\..");return m.length>0?m+r.slice(c+f,l):(c+=f,r.charCodeAt(c)===u&&++c,r.slice(c,l))},toNamespacedPath:function(e){if("string"!=typeof e)return e;if(0===e.length)return"";var i=t.win32.resolve(e);if(i.length>=3)if(i.charCodeAt(0)===u){if(i.charCodeAt(1)===u){var n=i.charCodeAt(2);if(63!==n&&n!==c)return"\\\\?\\UNC\\"+i.slice(2)}}else if(g(i.charCodeAt(0))&&58===i.charCodeAt(1)&&i.charCodeAt(2)===u)return"\\\\?\\"+i;return e},dirname:function(e){h(e,"path");var t=e.length;if(0===t)return".";var i=-1,n=-1,r=!0,o=0,s=e.charCodeAt(0);if(t>1)if(p(s)){if(i=o=1,p(e.charCodeAt(1))){for(var a=2,c=a;a2&&p(e.charCodeAt(2))&&(i=o=3));else if(p(s))return e;for(var l=t-1;l>=o;--l)if(p(e.charCodeAt(l))){if(!r){n=l;break}}else r=!1;if(-1===n){if(-1===i)return".";n=i}return e.slice(0,n)},basename:function(e,t){void 0!==t&&h(t,"ext"),h(e,"path");var i,n=0,r=-1,o=!0;e.length>=2&&(g(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(n=2));if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(i=e.length-1;i>=n;--i){var c=e.charCodeAt(i);if(p(c)){if(!o){n=i+1;break}}else-1===a&&(o=!1,a=i+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=n;--i)if(p(e.charCodeAt(i))){if(!o){n=i+1;break}}else-1===r&&(o=!1,r=i+1);return-1===r?"":e.slice(n,r)},extname:function(e){h(e,"path");var t=0,i=-1,n=0,r=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&g(e.charCodeAt(0))&&(t=n=2);for(var a=e.length-1;a>=t;--a){var l=e.charCodeAt(a);if(p(l)){if(!o){n=a+1;break}}else-1===r&&(o=!1,r=a+1),l===c?-1===i?i=a:1!==s&&(s=1):-1!==i&&(s=-1)}return-1===i||-1===r||0===s||1===s&&i===r-1&&i===n+1?"":e.slice(i,r)},format:function(e){if(null===e||"object"!=typeof e)throw new d("pathObject","Object",e);return m("\\",e)},parse:function(e){h(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var i=e.length,n=0,r=e.charCodeAt(0);if(i>1){if(p(r)){if(n=1,p(e.charCodeAt(1))){for(var o=2,s=o;o2))return t.root=t.dir=e,t;if(p(e.charCodeAt(2))){if(3===i)return t.root=t.dir=e,t;n=3}}}else if(p(r))return t.root=t.dir=e,t;n>0&&(t.root=e.slice(0,n));for(var a=-1,l=n,u=-1,d=!0,f=e.length-1,v=0;f>=n;--f)if(p(r=e.charCodeAt(f))){if(!d){l=f+1;break}}else-1===u&&(d=!1,u=f+1),r===c?-1===a?a=f:1!==v&&(v=1):-1!==a&&(v=-1);return-1===a||-1===u||0===v||1===v&&a===u-1&&a===l+1?-1!==u&&(t.base=t.name=e.slice(l,u)):(t.name=e.slice(l,a),t.base=e.slice(l,u),t.ext=e.slice(a,u)),t.dir=l>0&&l!==n?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},t.posix={resolve:function(){for(var e=[],t=0;t=-1&&!r;o--){var s=void 0;h(s=o>=0?e[o]:i.cwd(),"path"),0!==s.length&&(n=s+"/"+n,r=s.charCodeAt(0)===l)}return n=v(n,!r,"/",f),r?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(h(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===l,i=e.charCodeAt(e.length-1)===l;return 0!==(e=v(e,!t,"/",f)).length||t||(e="."),e.length>0&&i&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return h(e,"path"),e.length>0&&e.charCodeAt(0)===l},join:function(){for(var e,i=[],n=0;n0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":t.posix.normalize(e)},relative:function(e,i){if(h(e,"from"),h(i,"to"),e===i)return"";if((e=t.posix.resolve(e))===(i=t.posix.resolve(i)))return"";for(var n=1;nc){if(i.charCodeAt(s+d)===l)return i.slice(s+d+1);if(0===d)return i.slice(s+d)}else o>c&&(e.charCodeAt(n+d)===l?u=d:0===d&&(u=0));break}var p=e.charCodeAt(n+d);if(p!==i.charCodeAt(s+d))break;p===l&&(u=d)}var f="";for(d=n+u+1;d<=r;++d)d!==r&&e.charCodeAt(d)!==l||(0===f.length?f+="..":f+="/..");return f.length>0?f+i.slice(s+u):(s+=u,i.charCodeAt(s)===l&&++s,i.slice(s))},toNamespacedPath:function(e){return e},dirname:function(e){if(h(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===l,i=-1,n=!0,r=e.length-1;r>=1;--r)if(e.charCodeAt(r)===l){if(!n){i=r;break}}else n=!1;return-1===i?t?"/":".":t&&1===i?"//":e.slice(0,i)},basename:function(e,t){void 0!==t&&h(t,"ext"),h(e,"path");var i,n=0,r=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(i=e.length-1;i>=0;--i){var c=e.charCodeAt(i);if(c===l){if(!o){n=i+1;break}}else-1===a&&(o=!1,a=i+1),s>=0&&(c===t.charCodeAt(s)?-1==--s&&(r=i):(s=-1,r=a))}return n===r?r=a:-1===r&&(r=e.length),e.slice(n,r)}for(i=e.length-1;i>=0;--i)if(e.charCodeAt(i)===l){if(!o){n=i+1;break}}else-1===r&&(o=!1,r=i+1);return-1===r?"":e.slice(n,r)},extname:function(e){h(e,"path");for(var t=-1,i=0,n=-1,r=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(a!==l)-1===n&&(r=!1,n=s+1),a===c?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!r){i=s+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===i+1?"":e.slice(t,n)},format:function(e){if(null===e||"object"!=typeof e)throw new d("pathObject","Object",e);return m("/",e)},parse:function(e){h(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var i,n=e.charCodeAt(0)===l;n?(t.root="/",i=1):i=0;for(var r=-1,o=0,s=-1,a=!0,u=e.length-1,d=0;u>=i;--u){var p=e.charCodeAt(u);if(p!==l)-1===s&&(a=!1,s=u+1),p===c?-1===r?r=u:1!==d&&(d=1):-1!==r&&(d=-1);else if(!a){o=u+1;break}}return-1===r||-1===s||0===d||1===d&&r===s-1&&r===o+1?-1!==s&&(t.base=t.name=0===o&&n?e.slice(1,s):e.slice(o,s)):(0===o&&n?(t.name=e.slice(1,r),t.base=e.slice(1,s)):(t.name=e.slice(o,r),t.base=e.slice(o,s)),t.ext=e.slice(r,s)),o>0?t.dir=e.slice(0,o-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},t.posix.win32=t.win32.win32=t.win32,t.posix.posix=t.win32.posix=t.posix,t.normalize="win32"===i.platform?t.win32.normalize:t.posix.normalize,t.isAbsolute="win32"===i.platform?t.win32.isAbsolute:t.posix.isAbsolute,t.join="win32"===i.platform?t.win32.join:t.posix.join,t.resolve="win32"===i.platform?t.win32.resolve:t.posix.resolve,t.relative="win32"===i.platform?t.win32.relative:t.posix.relative,t.dirname="win32"===i.platform?t.win32.dirname:t.posix.dirname,t.basename="win32"===i.platform?t.win32.basename:t.posix.basename,t.extname="win32"===i.platform?t.win32.extname:t.posix.extname,t.format="win32"===i.platform?t.win32.format:t.posix.format,t.parse="win32"===i.platform?t.win32.parse:t.posix.parse,t.toNamespacedPath="win32"===i.platform?t.win32.toNamespacedPath:t.posix.toNamespacedPath,t.sep="win32"===i.platform?t.win32.sep:t.posix.sep,t.delimiter="win32"===i.platform?t.win32.delimiter:t.posix.delimiter}),define(i[311],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var i=Math.max(e.start,t.start),n=Math.min(e.end,t.end);return n-i<=0?{start:0,end:0}:{start:i,end:n}}function i(e){return e.end-e.start<=0}e.intersect=t,e.isEmpty=i,e.intersects=function(e,n){return!i(t(e,n))},e.relativeComplement=function(e,t){var n=[],r={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return i(r)||n.push(r),i(o)||n.push(o),n}}(t.Range||(t.Range={}))}),define(i[855],n([0,1,311]),function(e,t,i){"use strict";function n(e,t){for(var n=[],r=0,o=t;r=s.range.end)){if(e.end0?(i=e.substring(0,a),e=e.substring(a)):(i=e,e=""),{remains:e,ctrl:n,shift:r,alt:o,meta:s,key:i}},e.parseSimpleKeybinding=function(e){var t=this._readModifiers(e),n=i.KeyCodeUtils.fromUserSettings(t.key);return[new i.SimpleKeybinding(t.ctrl,t.shift,t.alt,t.meta,n),t.remains]},e.parseKeybinding=function(e,t){var n;if(!e)return null;var r,o=[];do{r=(n=this.parseSimpleKeybinding(e))[0],e=n[1],o.push(r)}while(e.length>0);return new i.ChordKeybinding(o)},e.parseSimpleUserBinding=function(e){var t=this._readModifiers(e),r=t.key.match(/^\[([^\]]+)\]$/);if(r){var o=r[1],s=n.ScanCodeUtils.lowerCaseToEnum(o);return[new n.ScanCodeBinding(t.ctrl,t.shift,t.alt,t.meta,s),t.remains]}var a=i.KeyCodeUtils.fromUserSettings(t.key);return[new i.SimpleKeybinding(t.ctrl,t.shift,t.alt,t.meta,a),t.remains]},e.parseUserBinding=function(e){var t;if(!e)return[];for(var i,n=[];e.length>0;)i=(t=this.parseSimpleUserBinding(e))[0],e=t[1],n.push(i);return n},e}();t.KeybindingParser=r}),define(i[449],n([0,1,5,2]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,i,n,r,o){(e|=0)<0&&(e=0),(i|=0)+e>(t|=0)&&(i=t-e),i<0&&(i=0),(n|=0)<0&&(n=0),(o|=0)+n>(r|=0)&&(o=r-n),o<0&&(o=0),this.width=e,this.scrollWidth=t,this.scrollLeft=i,this.height=n,this.scrollHeight=r,this.scrollTop=o}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},e.prototype.withScrollDimensions=function(t){return new e(void 0!==t.width?t.width:this.width,void 0!==t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==t.height?t.height:this.height,void 0!==t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,void 0!==t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==t.scrollTop?t.scrollTop:this.scrollTop)},e.prototype.createScrollEvent=function(e){var t=this.width!==e.width,i=this.scrollWidth!==e.scrollWidth,n=this.scrollLeft!==e.scrollLeft,r=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:i,scrollLeftChanged:n,heightChanged:r,scrollHeightChanged:o,scrollTopChanged:s}},e}();t.ScrollState=r;var o=function(e){function t(t,n){var o=e.call(this)||this;return o._onScroll=o._register(new i.Emitter),o.onScroll=o._onScroll.event,o._smoothScrollDuration=t,o._scheduleAtNextAnimationFrame=n,o._state=new r(0,0,0,0,0,0),o._smoothScrolling=null,o}return a(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this)},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._state},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var i=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===i.scrollLeft&&this._smoothScrolling.to.scrollTop===i.scrollTop)return;var n=this._smoothScrolling.combine(this._state,i,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=n}else{i=this._state.withScrollPosition(e);this._smoothScrolling=l.start(this._state,i,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())})},t.prototype._performSmoothScrolling=function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),i=this._state.withScrollPosition(t);if(this._setState(i),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())})}},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(n.Disposable);t.Scrollable=o;var s=function(){return function(e,t,i){this.scrollLeft=e,this.scrollTop=t,this.isDone=i}}();function c(e,t){var i=t-e;return function(t){return e+i*(1-function(e){return Math.pow(e,3)}(1-t))}}t.SmoothScrollingUpdate=s;var l=function(){function e(e,t,i,n){this.from=e,this.to=t,this.duration=n,this._startTime=i,this.animationFrameDisposable=null,this._initAnimations()}return e.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},e.prototype._initAnimation=function(e,t,i){var n,r,o;if(Math.abs(e-t)>2.5*i){var s=void 0,a=void 0;return et?1:0}function a(e){return e>=97&&e<=122}function c(e){return e>=65&&e<=90}function l(e){return a(e)||c(e)}function u(e,t,i){if(void 0===i&&(i=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var n=0;n=t.length?e:t[n]})},t.escape=function(e){return e.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})},t.escapeRegExpCharacters=n,t.trim=function(e,t){return void 0===t&&(t=" "),o(r(e,t),t)},t.ltrim=r,t.rtrim=o,t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.stripWildcards=function(e){return e.replace(/\*/g,"")},t.startsWith=function(e,t){if(e.length0?e.indexOf(t,i)===i:0===i&&e===t},t.createRegExp=function(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),i.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var r="";return i.global&&(r+="g"),i.matchCase||(r+="i"),i.multiline&&(r+="m"),i.unicode&&(r+="u"),new RegExp(e,r)},t.regExpLeadsToEndlessLoop=function(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&!(!e.exec("")||0!==e.lastIndex)},t.regExpContainsBackreference=function(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)},t.regExpFlags=function(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")},t.firstNonWhitespaceIndex=function(e){for(var t=0,i=e.length;t=0;i--){var n=e.charCodeAt(i);if(32!==n&&9!==n)return i}return-1},t.compare=s,t.compareIgnoreCase=function(e,t){for(var i=Math.min(e.length,t.length),n=0;nt.length?1:0},t.isLowerAsciiLetter=a,t.isUpperAsciiLetter=c,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&u(e,t)},t.startsWithIgnoreCase=function(e,t){var i=t.length;return!(t.length>e.length)&&u(e,t,i)},t.commonPrefixLength=function(e,t){var i,n=Math.min(e.length,t.length);for(i=0;i0;){if(d(e,r,i,t,0,n))return n;n-=1,r+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343};var h=/(?:[\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-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;t.containsRTL=function(e){return h.test(e)};var p=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;t.containsEmoji=function(e){return p.test(e)};var f=/^[\t\n\r\x20-\x7E]*$/;function g(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}t.isBasicASCII=function(e){return f.test(e)},t.containsFullWidthCharacter=function(e){for(var t=0,i=e.length;t0&&65279===e.charCodeAt(0))}t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(m,"")).replace(y,"")),e},t.removeAccents=function(){if("function"!=typeof String.prototype.normalize)return function(e){return e};var e=/[\u0300-\u036f]/g;return function(i){return i.normalize("NFD").replace(e,t.empty)}}(),t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=b,t.stripUTF8BOM=function(e){return b(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){for(var i="",n=0;n0&&i>=0);return i>=0?e.substr(0,i):e}}),define(i[184],n([0,1,9,35]),function(e,t,i,n){"use strict";var r;function o(e,t,i){if(void 0===i&&(i=!1),r){var n=e||"",o=t||"",s=r.getValue().collator.compare(n,o);return r.getValue().collatorIsNumeric&&0===s&&n!==o?no.length)return 1}return 0}t.noIntlCompareFileNames=a,t.compareFileExtensions=function(e,t){if(r){var i=c(e),n=i[0],o=i[1],s=c(t),a=s[0],l=s[1],u=r.getValue().collator.compare(o,l);if(0===u){if(r.getValue().collatorIsNumeric&&o!==l)return o\|]/g:/[\\\/]/g,a=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;function c(e){return e>=65&&e<=90||e>=97&&e<=122}t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(s.lastIndex=0,s.test(e)||i.isWindows&&a.test(e)||"."===e||".."===e||i.isWindows&&"."===e[e.length-1]||i.isWindows&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,i){var r=e===t;return!i||r?r:!(!e||!t)&&n.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,i,o){if(void 0===o&&(o=r.sep),e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(i){if(!n.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;var s=t.length;return t.charAt(t.length-1)===o&&s--,e.charAt(s)===o}return t.charAt(t.length-1)!==o&&(t+=o),0===e.indexOf(t)},t.isWindowsDriveLetter=c}),define(i[23],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==i.number||e.constructor!==Array)}function r(e){return typeof e===i.string||e instanceof String}function o(e){return!(typeof e!==i.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return typeof e===i.undefined}function a(e){return s(e)||null===e}t.isArray=n,t.isString=r,t.isStringArray=function(e){return n(e)&&e.every(function(e){return r(e)})},t.isObject=o,t.isNumber=function(e){return(typeof e===i.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=s,t.isUndefinedOrNull=a;var c=Object.prototype.hasOwnProperty;function l(e){return typeof e===i.function}function u(e,t){if(r(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(l(t)){try{if(e instanceof t)return}catch(e){}if(!a(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}t.isEmptyObject=function(e){if(!o(e))return!1;for(var t in e)if(c.call(e,t))return!1;return!0},t.isFunction=l,t.areFunctions=function(){for(var e=[],t=0;t0&&e.every(l)},t.validateConstraints=function(e,t){for(var i=Math.min(e.length,t.length),n=0;n0;){var i=t.shift();for(var r in Object.freeze(i),i)if(n.call(i,r)){var o=i[r];"object"!=typeof o||Object.isFrozen(o)||t.push(o)}}return e};var n=Object.prototype.hasOwnProperty;function r(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var i,n;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(i=0;i=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==n&&(i+=encodeURIComponent(e.substring(n,r)),n=-1),void 0!==i&&(i+=e.charAt(r));else{void 0===i&&(i=e.substr(0,r));var s=p[o];void 0!==s?(-1!==n&&(i+=encodeURIComponent(e.substring(n,r)),n=-1),i+=s):-1===n&&(n=r)}}return-1!==n&&(i+=encodeURIComponent(e.substring(n))),void 0!==i?i:e}function g(e){for(var t=void 0,i=0;i1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path}function m(e,t){var i=t?g:f,n="",r=e.scheme,o=e.authority,s=e.path,a=e.query,c=e.fragment;if(r&&(n+=r,n+=":"),(o||"file"===r)&&(n+=l,n+=l),o){var u=o.indexOf("@");if(-1!==u){var d=o.substr(0,u);o=o.substr(u+1),-1===(u=d.indexOf(":"))?n+=i(d,!1):(n+=i(d.substr(0,u),!1),n+=":",n+=i(d.substr(u+1),!1)),n+="@"}-1===(u=(o=o.toLowerCase()).indexOf(":"))?n+=i(o,!1):(n+=i(o.substr(0,u),!1),n+=o.substr(u))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(h=s.charCodeAt(1))>=65&&h<=90&&(s="/"+String.fromCharCode(h+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var h;(h=s.charCodeAt(0))>=65&&h<=90&&(s=String.fromCharCode(h+32)+":"+s.substr(2))}n+=i(s,!0)}return a&&(n+="?",n+=i(a,!1)),c&&(n+="#",n+=t?c:f(c,!1)),n}}),define(i[41],n([0,1,10,92]),function(e,t,i,n){"use strict";function r(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function o(e){var t=[];return e.forEach(function(e,i){return t.push(i)}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=r,t.keys=o,t.getOrSet=function(e,t,i){var n=e.get(t);return void 0===n&&(n=i,e.set(t,n)),n},t.mapToString=function(e){var t=[];return e.forEach(function(e,i){t.push(i+" => "+e)}),"Map("+e.size+") {"+t.join(", ")+"}"},t.setToString=function(e){var t=[];return e.forEach(function(e){t.push(e)}),"Set("+e.size+") {"+t.join(", ")+"}"},t.mapToSerializable=function(e){var t=[];return e.forEach(function(e,i){t.push([i,e])}),t},t.serializableToMap=function(e){for(var t=new Map,i=0,n=e;i0)i.left||(i.left=new l,i.left.segment=n.value()),i=i.left;else if(r<0)i.right||(i.right=new l,i.right.segment=n.value()),i=i.right;else{if(!n.hasNext())break;n.next(),i.mid||(i.mid=new l,i.mid.segment=n.value()),i=i.mid}}var o=i.value;return i.value=t,i.key=e,o},e.prototype.get=function(e){for(var t=this._iter.reset(e),i=this._root;i;){var n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else{if(!t.hasNext())break;t.next(),i=i.mid}}return i?i.value:void 0},e.prototype.delete=function(e){for(var t=this._iter.reset(e),i=[],n=this._root;n;){var r=t.cmp(n.segment);if(r>0)i.push([1,n]),n=n.left;else if(r<0)i.push([-1,n]),n=n.right;else{if(!t.hasNext()){for(n.value=void 0;i.length>0&&n.isEmpty();){var o=i.pop(),s=o[0],a=o[1];switch(s){case 1:a.left=void 0;break;case 0:a.mid=void 0;break;case-1:a.right=void 0}n=a}break}t.next(),i.push([0,n]),n=n.mid}}},e.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),i=this._root,n=void 0;i;){var r=t.cmp(i.segment);if(r>0)i=i.left;else if(r<0)i=i.right;else{if(!t.hasNext())break;t.next(),n=i.value||n,i=i.mid}}return i&&i.value||n},e.prototype.findSuperstr=function(e){for(var t=this._iter.reset(e),i=this._root;i;){var n=t.cmp(i.segment);if(n>0)i=i.left;else if(n<0)i=i.right;else{if(!t.hasNext())return i.mid?this._nodeIterator(i.mid):void 0;t.next(),i=i.mid}}},e.prototype._nodeIterator=function(e){var t,i,r,o=this;return{next:function(){return r||(r=[],i=0,o._forEach(e,function(e){return r.push(e)})),i>=r.length?n.FIN:(t?t.value=r[i++]:t={done:!1,value:r[i++]},t)}}},e.prototype.forEach=function(e){this._forEach(this._root,e)},e.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},e}();t.TernarySearchTree=u;var d=function(){function e(){this.map=new Map,this.ignoreCase=!1}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.has=function(e){return this.map.has(this.toKey(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.delete=function(e){return this.map.delete(this.toKey(e))},e.prototype.forEach=function(e){this.map.forEach(e)},e.prototype.values=function(){return r(this.map)},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e.prototype.keys=function(){return o(this.map).map(function(e){return i.URI.parse(e)})},e.prototype.clone=function(){var t=new e;return this.map.forEach(function(e,i){return t.map.set(i,e)}),t},e}();t.ResourceMap=d;var h=function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},e.prototype.isEmpty=function(){return!this._head&&!this._tail},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.get=function(e,t){void 0===t&&(t=0);var i=this._map.get(e);if(i)return 0!==t&&this.touch(i,t),i.value},e.prototype.set=function(e,t,i){void 0===i&&(i=0);var n=this._map.get(e);if(n)n.value=t,0!==i&&this.touch(n,i);else{switch(n={key:e,value:t,next:void 0,previous:void 0},i){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:default:this.addItemLast(n)}this._map.set(e,n),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.shift=function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}},e.prototype.forEach=function(e,t){for(var i=this._head;i;)t?e.bind(t)(i.value,i.key,this):e(i.value,i.key,this),i=i.next},e.prototype.values=function(){for(var e=[],t=this._head;t;)e.push(t.value),t=t.next;return e},e.prototype.keys=function(){for(var e=[],t=this._head;t;)e.push(t.key),t=t.next;return e},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,i=this.size;t&&i>e;)this._map.delete(t.key),t=t.next,i--;this._head=t,this._size=i,t&&(t.previous=void 0)}else this.clear()},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,i=e.previous;if(!t||!i)throw new Error("Invalid list");t.previous=i,i.next=t}e.next=void 0,e.previous=void 0},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var i=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(i.previous=n,n.next=i),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;i=e.next,n=e.previous;e===this._head?(i.previous=void 0,this._head=i):(i.previous=n,n.next=i),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e.prototype.toJSON=function(){var e=[];return this.forEach(function(t,i){e.push([i,t])}),e},e.prototype.fromJSON=function(e){this.clear();for(var t=0,i=e;tthis._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(h);t.LRUCache=p}),define(i[84],n([0,1,41,9]),function(e,t,i,n){"use strict";function r(){for(var e=[],t=0;t0?[{start:0,end:t.length}]:[]:null}function s(e,t){var i=t.toLowerCase().indexOf(e.toLowerCase());return-1===i?null:[{start:i,end:i+e.length}]}function a(e,t){return function e(t,i,n,r){if(n===t.length)return[];if(r===i.length)return null;if(t[n]===i[r]){var o=null;return(o=e(t,i,n+1,r+1))?p({start:r,end:r+1},o):null}return e(t,i,n,r+1)}(e.toLowerCase(),t.toLowerCase(),0,0)}function c(e){return 97<=e&&e<=122}function l(e){return 65<=e&&e<=90}function u(e){return 48<=e&&e<=57}function d(e){return 32===e||9===e||10===e||13===e}function h(e){return c(e)||l(e)||u(e)}function p(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function f(e,t){for(var i=t;i0&&!h(e.charCodeAt(i-1)))return i}return e.length}function g(e,t,i,n){if(i===e.length)return[];if(n===t.length)return null;if(e[i]!==t[n].toLowerCase())return null;var r=null,o=n+1;for(r=g(e,t,i+1,n+1);!r&&(o=f(t,o))60)return null;var i=function(e){for(var t=0,i=0,n=0,r=0,o=0,s=0;s.2&&t<.8&&n>.6&&r<.2}(i)){if(!function(e){var t=e.upperPercent;return 0===e.lowerPercent&&t>.6}(i))return null;t=t.toLowerCase()}var n=null,r=0;for(e=e.toLowerCase();r0&&d(e.charCodeAt(i-1)))return i}return e.length}Object.defineProperty(t,"__esModule",{value:!0}),t.or=r,t.matchesStrictPrefix=o.bind(void 0,!1),t.matchesPrefix=o.bind(void 0,!0),t.matchesContiguousSubString=s,t.matchesSubString=a,t.isUpper=l,t.matchesCamelCase=v,t.matchesWords=function(e,t,i){if(void 0===i&&(i=!1),!t||0===t.length)return null;var n=null,r=0;for(e=e.toLowerCase(),t=t.toLowerCase();r=0&&(c+=1,a+=Math.pow(2,d),l=d+1)}return[c,a,o]},t.createMatches=C;var w=53;function E(){for(var e=[],t=[0],i=1;i<=w;i++)t.push(-i);for(i=0;i<=w;i++){var n=t.slice(0);n[0]=-i,e.push(n)}return e}var I=E(),x=E(),D=E(),k=!1;function L(e,t,i,n,r){function o(e,t,i){for(void 0===i&&(i=" ");e.length=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function R(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function O(e,t,i){return t[e]!==i[e]}function T(e,t,i,n,r,o,s){var a=e.length>w?w:e.length,c=n.length>w?w:n.length;if(!(i>=a||o>=c||a>c)&&function(e,t,i,n,r,o){for(;t1?1:d),p=I[i-1][o]+-1,f=I[i][o-1]+-1;f>=p?f>h?(I[i][o]=f,D[i][o]=4):f===h?(I[i][o]=f,D[i][o]=6):(I[i][o]=h,D[i][o]=2):p>h?(I[i][o]=p,D[i][o]=1):p===h?(I[i][o]=p,D[i][o]=3):(I[i][o]=h,D[i][o]=2)}if(k&&(console.log(L(I,e,a,n,c)),console.log(L(D,e,a,n,c)),console.log(L(x,e,a,n,c))),P=0,N=-100,F=l,W=s,function e(t,i,n,r,o){if(P>=10||n<-25)return;var s=0;for(;t>F&&i>0;){var a=x[t][i],c=D[t][i];if(4===c)i-=1,o?n-=5:0!==r&&(n-=1),o=!1,s=0;else{if(!(2&c))return;if(4&c&&e(t,i-1,0!==r?n-1:n,r,o),n+=a,t-=1,i-=1,o=!0,r+=Math.pow(2,i),1===a){if(s+=1,t===F&&!W)return}else n+=1+s*(a-1),s=0}}n-=i>=3?9:3*i;P+=1;n>N&&(N=n,A=r)}(a,c,a===c?1:0,0,!1),0!==P)return[N,A,u]}}!function(e){e.Default=[-100,0,0],e.isDefault=function(e){return!e||-100===e[0]&&0===e[1]&&0===e[2]}}(t.FuzzyScore||(t.FuzzyScore={})),t.fuzzyScore=T;var P=0,A=0,N=0,F=0,W=!1;function B(e,t,i,n,r,o,s,a){var c=T(e,t,i,n,r,o,a);if(c&&!s)return c;if(e.length>=3)for(var l=Math.min(7,e.length-1),u=i+1;uc[0])&&(c=h))}}return c}function V(e,t){if(!(t+1>=e.length)){var i=e[t],n=e[t+1];if(i!==n)return e.slice(0,t)+n+i+e.slice(t+2)}}t.fuzzyScoreGracefulAggressive=function(e,t,i,n,r,o,s){return B(e,t,i,n,r,o,!0,s)},t.fuzzyScoreGraceful=function(e,t,i,n,r,o,s){return B(e,t,i,n,r,o,!1,s)}}),define(i[119],n([0,1,17,9,124,35,41,13]),function(e,t,i,n,r,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};var c="**",l="/",u="[/\\\\]",d="[^/\\\\]",h=/\//g;function p(e){switch(e){case 0:return"";case 1:return d+"*?";default:return"(?:"+u+"|"+d+"+"+u+"|"+u+d+"+)*?"}}function f(e,t){if(!e)return[];for(var i=[],n=!1,r=!1,o="",s=0,a=e;s0;i--){var o=e.charCodeAt(i-1);if(47===o||92===o)break}t=e.substr(i)}var s=r.indexOf(t);return-1!==s?n[s]:null};a.basenames=r,a.patterns=n,a.allBasenames=r;var c=e.filter(function(e){return!e.basenames});return c.push(a),c}t.match=function(e,t,i){return!(!e||"string"!=typeof t)&&k(e)(t,void 0,i)},t.parse=k,t.hasSiblingPromiseFn=function(e){var t;if(e)return function(i){return t||(t=(e()||Promise.resolve([])).then(function(e){return e?L(e):{}})),t.then(function(e){return!!e[i]})}},t.hasSiblingFn=function(e){var t;if(e)return function(i){if(!t){var n=e();t=n?L(n):{}}return!!t[i]}},t.isRelativePattern=M,t.parseToAsync=function(e,t){var i=k(e,t);return function(e,t,n){var r=i(e,t,n);return a.isThenable(r)?r:Promise.resolve(r)}},t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(i[243],n([0,1,10,9]),function(e,t,i,n){"use strict";function r(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:n.regExpFlags(t)}:t}function o(e,t){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return i.URI.revive(e);case 2:return new RegExp(e.source,e.flags)}for(var n in e)Object.hasOwnProperty.call(e,n)&&(e[n]=o(e[n],t+1))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e){return JSON.stringify(e,r)},t.parse=function(e){var t=JSON.parse(e);return t=o(t,0)},t.revive=o}),define(i[176],n([0,1,7,135,9,114,945,11,10,243,25]),function(e,t,i,n,r,o,s,a,c,l,u){"use strict";function d(e){var t=e.inline?"span":"div",i=document.createElement(t);return e.className&&(i.className=e.className),i}Object.defineProperty(t,"__esModule",{value:!0}),t.renderText=function(e,t){void 0===t&&(t={});var i=d(t);return i.textContent=e,i},t.renderFormattedText=function(e,t){void 0===t&&(t={});var n=d(t);return function e(t,n,r){var o;if(2===n.type)o=document.createTextNode(n.content||"");else if(3===n.type)o=document.createElement("b");else if(4===n.type)o=document.createElement("i");else if(5===n.type&&r){var s=document.createElement("a");s.href="#",r.disposeables.push(i.addStandardDisposableListener(s,"click",function(e){r.callback(String(n.index),e)})),o=s}else 7===n.type?o=document.createElement("br"):1===n.type&&(o=t);o&&t!==o&&t.appendChild(o),o&&Array.isArray(n.children)&&n.children.forEach(function(t){e(o,t,r)})}(n,function(e){for(var t={type:1,children:[]},i=0,n=t,r=[],o=new h(e);!o.eos();){var s=o.next(),a="\\"===s&&0!==p(o.peek());if(a&&(s=o.next()),a||0===p(s)||s!==o.peek())if("\n"===s)2===n.type&&(n=r.pop()),n.children.push({type:7});else if(2!==n.type){var c={type:2,content:s};n.children.push(c),r.push(n),n=c}else n.content+=s;else{o.advance(),2===n.type&&(n=r.pop());var l=p(s);if(n.type===l||5===n.type&&6===l)n=r.pop();else{var u={type:l,children:[]};5===l&&(u.index=i,i++),n.children.push(u),r.push(n),n=u}}}return 2===n.type&&(n=r.pop()),r.length,t}(e),t.actionHandler),n},t.renderMarkdown=function(e,t){void 0===t&&(t={});var h,p=d(t),f=function(t){var i;try{i=l.parse(decodeURIComponent(t))}catch(e){}return i?(i=u.cloneAndChange(i,function(t){return e.uris&&e.uris[t]?c.URI.revive(e.uris[t]):void 0}),encodeURIComponent(JSON.stringify(i))):t},g=function(t){var i=e.uris&&e.uris[t];if(!i)return t;var n=c.URI.revive(i);return n.query&&(n=n.with({query:f(n.query)})),i&&(t=n.toString(!0)),t},v=new Promise(function(e){return h=e}),m=new s.Renderer;m.image=function(e,t,i){var n=[];if(e=g(e)){var r=e.split("|").map(function(e){return e.trim()});e=r[0];var o=r[1];if(o){var s=/height=(\d+)/.exec(o),a=/width=(\d+)/.exec(o),c=s?s[1]:"",l=a?a[1]:"",u=isFinite(parseInt(l)),d=isFinite(parseInt(c));u&&n.push('width="'+l+'"'),d&&n.push('height="'+c+'"')}}var h=[];return e&&h.push('src="'+e+'"'),i&&h.push('alt="'+i+'"'),t&&h.push('title="'+t+'"'),n.length&&(h=h.concat(n)),""},m.link=function(t,i,n){return t===n&&(n=o.removeMarkdownEscapes(n)),t=g(t),i=o.removeMarkdownEscapes(i),!(t=o.removeMarkdownEscapes(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?n:'
    /g,">").replace(/"/g,""").replace(/'/g,"'"))+'" title="'+(i||t)+'">'+n+""},m.paragraph=function(e){return"

    "+e+"

    "},t.codeBlockRenderer&&(m.code=function(e,i){var o=t.codeBlockRenderer(i,e),s=n.defaultGenerator.nextId(),a=Promise.all([o,v]).then(function(e){var t=e[0],i=p.querySelector('div[data-code="'+s+'"]');i&&(i.innerHTML=t)}).catch(function(e){});return t.codeBlockRenderCallback&&a.then(t.codeBlockRenderCallback),'
    '+r.escape(e)+"
    "}),t.actionHandler&&t.actionHandler.disposeables.push(i.addStandardDisposableListener(p,"click",function(e){var i=e.target;if("A"===i.tagName||(i=i.parentElement)&&"A"===i.tagName)try{var n=i.dataset.href;n&&t.actionHandler.callback(n,e)}catch(e){a.onUnexpectedError(e)}finally{e.preventDefault()}}));var y={sanitize:!0,renderer:m};return p.innerHTML=s.parse(e.value,y),h(),p};var h=function(){function e(e){this.source=e,this.index=0}return e.prototype.eos=function(){return this.index>=this.source.length},e.prototype.next=function(){var e=this.peek();return this.advance(),e},e.prototype.peek=function(){return this.source[this.index]},e.prototype.advance=function(){this.index++},e}();function p(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}}),define(i[131],n([0,1,35,9,17,119]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MIME_TEXT="text/plain",t.MIME_BINARY="application/octet-stream",t.MIME_UNKNOWN="application/unknown";var s=[],a=[],c=[];function l(e,t,i){for(var r=null,s=null,a=null,c=i.length-1;c>=0;c--){var l=i[c];if(t===l.filenameLowercase){r=l;break}if(l.filepattern&&(!s||l.filepattern.length>s.filepattern.length)){var u=l.filepatternOnPath?e:t;o.match(l.filepatternLowercase,u)&&(s=l)}l.extension&&(!a||l.extension.length>a.extension.length)&&n.endsWith(t,l.extensionLowercase)&&(a=l)}return r?r.mime:s?s.mime:a?a.mime:null}t.registerTextMime=function(e,t){void 0===t&&(t=!1);var n=function(e){return{id:e.id,mime:e.mime,filename:e.filename,extension:e.extension,filepattern:e.filepattern,firstline:e.firstline,userConfigured:e.userConfigured,filenameLowercase:e.filename?e.filename.toLowerCase():void 0,extensionLowercase:e.extension?e.extension.toLowerCase():void 0,filepatternLowercase:e.filepattern?e.filepattern.toLowerCase():void 0,filepatternOnPath:!!e.filepattern&&e.filepattern.indexOf(i.posix.sep)>=0}}(e);s.push(n),n.userConfigured?c.push(n):a.push(n),t&&!n.userConfigured&&s.forEach(function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))})},t.clearTextMimes=function(e){e?(s=s.filter(function(e){return!e.userConfigured}),c=[]):(s=[],a=[],c=[])},t.guessMimeTypes=function(e,r){if(!e)return[t.MIME_UNKNOWN];e=e.toLowerCase();var o=i.basename(e),u=l(e,o,c);if(u)return[u,t.MIME_TEXT];var d=l(e,o,a);if(d)return[d,t.MIME_TEXT];if(r){var h=function(e){if(n.startsWithUTF8BOM(e)&&(e=e.substr(1)),e.length>0)for(var t=0,i=s;t0)return r.mime}}return null}(r);if(h)return[h,t.MIME_TEXT]}return[t.MIME_UNKNOWN]},t.isUnspecific=function e(i){return!i||("string"==typeof i?i===t.MIME_BINARY||i===t.MIME_TEXT||i===t.MIME_UNKNOWN:1===i.length&&e(i[0]))},t.suggestFilename=function(e,t){var i=s.filter(function(t){return!t.userConfigured&&t.extension&&t.id===e}).map(function(e){return e.extension}),o=r.coalesce(i).filter(function(e){return n.startsWith(e,".")});return o.length>0?t+o[0]:i[0]||t};var u={".bmp":"image/bmp",".gif":"image/gif",".jpg":"image/jpg",".jpeg":"image/jpg",".jpe":"image/jpg",".png":"image/png",".tiff":"image/tiff",".tif":"image/tiff",".ico":"image/x-icon",".tga":"image/x-tga",".psd":"image/vnd.adobe.photoshop",".webp":"image/webp",".mid":"audio/midi",".midi":"audio/midi",".mp4a":"audio/mp4",".mpga":"audio/mpeg",".mp2":"audio/mpeg",".mp2a":"audio/mpeg",".mp3":"audio/mpeg",".m2a":"audio/mpeg",".m3a":"audio/mpeg",".oga":"audio/ogg",".ogg":"audio/ogg",".spx":"audio/ogg",".aac":"audio/x-aac",".wav":"audio/x-wav",".wma":"audio/x-ms-wma",".mp4":"video/mp4",".mp4v":"video/mp4",".mpg4":"video/mp4",".mpeg":"video/mpeg",".mpg":"video/mpeg",".mpe":"video/mpeg",".m1v":"video/mpeg",".m2v":"video/mpeg",".ogv":"video/ogg",".qt":"video/quicktime",".mov":"video/quicktime",".webm":"video/webm",".mkv":"video/x-matroska",".mk3d":"video/x-matroska",".mks":"video/x-matroska",".wmv":"video/x-ms-wmv",".flv":"video/x-flv",".avi":"video/x-msvideo",".movie":"video/x-sgi-movie"};t.getMediaMime=function(e){var t=i.extname(e);return u[t.toLowerCase()]}}),define(i[955],n([0,1,41]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canNormalize="function"==typeof"".normalize;var n=new i.LRUCache(1e4);t.normalizeNFC=function(e){return s(e,"NFC",n)};var r=new i.LRUCache(1e4);t.normalizeNFD=function(e){return s(e,"NFD",r)};var o=/[^\u0000-\u0080]/;function s(e,i,n){if(!t.canNormalize||!e)return e;var r,s=n.get(e);return s||(r=o.test(e)?e.normalize(i):e,n.set(e,r),r)}}),define(i[984],n([0,1,84,9]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="$(";t.parseOcticons=function(e){var t=e.indexOf(r);return-1===t?{text:e}:function(e,t){var i=[],n="";function o(e){if(e){n+=e;for(var t=0,r=e;t1&&"file"===e.scheme?"//"+e.authority+n:u&&47===n.charCodeAt(0)&&i.isWindowsDriveLetter(n.charCodeAt(1))&&58===n.charCodeAt(2)?n.substr(1):n,u&&(t=t.replace(/\//g,"\\")),t}function v(e){if(e.scheme===s.Schemas.file){var t=g(e);return t.length>i.getRoot(t).length&&t[t.length-1]===n.sep}var r=e.path;return r.length>1&&47===r.charCodeAt(r.length-1)}function m(e,t){if(e.scheme===t.scheme&&p(e.authority,t.authority)){if(e.scheme===s.Schemas.file){var r=n.relative(e.path,t.path);return u?i.toSlashes(r):r}return n.posix.relative(e.path||"/",t.path||"/")}}t.getComparisonKey=function(e){return d(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=d,t.basenameOrAuthority=function(e){return f(e)||e.authority},t.isEqualOrParent=h,t.isEqualAuthority=p,t.isEqual=function(e,t,i){if(void 0===i&&(i=d(e)),e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!p(e.authority,t.authority))return!1;var n=e.path||"/",r=t.path||"/";return n===r||i&&o.equalsIgnoreCase(n||"/",r||"/")},t.basename=f,t.extname=function(e){return n.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===s.Schemas.file)return r.URI.file(n.dirname(g(e)));var t=n.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error('dirname("'+e.toString+")) resulted in a relative path"),t="/"),e.with({path:t})},t.joinPath=function(e){for(var t,i,o=[],a=1;a1,f=void 0;if(f=a.isEqual(h.uri,e)?"":n.normalize(r.ltrim(e.path.substr(h.uri.path.length),n.posix.sep)),p){var g=h&&h.name?h.name:a.basename(h.uri);f=f?g+" • "+f:g}return f}}if(e.scheme!==o.Schemas.file&&e.scheme!==o.Schemas.untitled)return e.with({query:null,fragment:null}).toString(!0);if(c(e.fsPath))return n.normalize(l(e.fsPath));var v=n.normalize(e.fsPath);return!s.isWindows&&t&&(v=d(v,t.userHome)),v},t.getBaseLabel=function(e){if(e){"string"==typeof e&&(e=i.URI.file(e));var t=a.basename(e)||(e.scheme===o.Schemas.file?e.fsPath:e.path);return c(t)?l(t):t}},t.normalizeDriveLetter=l;var u=Object.create(null);function d(e,t){if(s.isWindows||!e||!t)return e;var i=u.original===t?u.normalized:void 0;return i||(i=""+r.rtrim(t,n.posix.sep)+n.posix.sep,u={original:t,normalized:i}),(s.isLinux?r.startsWith(e,i):r.startsWithIgnoreCase(e,i))&&(e="~/"+e.substr(i.length)),e}t.tildify=d,t.untildify=function(e,t){return e.replace(/^~($|\/|\\)/,t+"$1")};var h,p="…",f="\\\\",g="~";t.shorten=function(e){for(var t=new Array(e.length),i=!1,o=0;o=0;u--){i=!1;for(var d=c.slice(u,u+l).join(n.sep),h=0;!i&&h-1){var v=u+l===c.length,m=u>0&&e[h].indexOf(n.sep)>-1?n.sep+d:d,y=r.endsWith(e[h],m);i=!v||y}if(!i){var b="";(r.endsWith(c[0],":")||""!==a)&&(1===u&&(u=0,l++,d=c[0]+n.sep+d),u>0&&(b=c[0]+n.sep),b=a+b),u>0&&(b=b+p+n.sep),b+=d,u+l0})}).map(function(e){return e.value}).join("")};var v=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),m=/firefox/i.test(navigator.userAgent);t.mnemonicMenuLabel=function(e,t){return!s.isWeb&&s.isMacintosh||t||v||m?e.replace(/\(&&\w\)|&&/g,"").replace(/&/g,s.isMacintosh?"&":"&&"):e.replace(/&&|&/g,function(e){return"&"===e?"&&":"&"})},t.mnemonicButtonLabel=function(e){return!s.isWeb&&s.isMacintosh?e.replace(/\(&&\w\)|&&/g,""):s.isWindows?e.replace(/&&|&/g,function(e){return"&"===e?"&&":"&"}):e.replace(/&&/g,"_")},t.unmnemonicLabel=function(e){return e.replace(/&/g,"&&")}}),define(i[661],n([0,1,10]),function(e,t,i){"use strict";function n(e,t,r,o){if(!e||o>200)return null;if("object"==typeof e){if(1===e.$mid)return r?i.URI.revive(t.transformIncoming(e)):t.transformIncoming(e);for(var s in e)if(Object.hasOwnProperty.call(e,s)){var a=n(e[s],t,r,o+1);null!==a&&(e[s]=a)}}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultURITransformer=new(function(){function e(){}return e.prototype.transformIncoming=function(e){return e},e.prototype.transformOutgoing=function(e){return e},e.prototype.transformOutgoingURI=function(e){return e},e}()),t.transformOutgoingURIs=function(e,t){var n=function e(t,n,r){if(!t||r>200)return null;if("object"==typeof t){if(t instanceof i.URI)return n.transformOutgoing(t);for(var o in t)if(Object.hasOwnProperty.call(t,o)){var s=e(t[o],n,r+1);null!==s&&(t[o]=s)}}return null}(e,t,0);return null===n?e:n},t.transformIncomingURIs=function(e,t){var i=n(e,t,!1,0);return null===i?e:i},t.transformAndReviveIncomingURIs=function(e,t){var i=n(e,t,!0,0);return null===i?e:i}}),define(i[309],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._value=e}return e.prototype.asHex=function(){return this._value},e}(),n=function(e){function t(){return e.call(this,[t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-","4",t._randomHex(),t._randomHex(),t._randomHex(),"-",t._oneOf(t._timeHighBits),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex()].join(""))||this}return a(t,e),t._oneOf=function(e){return e[Math.floor(e.length*Math.random())]},t._randomHex=function(){return t._oneOf(t._chars)},t._chars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t._timeHighBits=["8","9","a","b"],t}(i);function r(){return new n}t.v4=r;var o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function s(e){return o.test(e)}t.isUUID=s,t.parse=function(e){if(!s(e))throw new Error("invalid uuid");return new i(e)},t.generateUuid=function(){return r().asHex()}}),define(i[323],n([0,1,11,2,12,23]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s="$initialize",c=!1;t.logOnceWebWorkerWarning=function(e){r.isWeb&&(c||(c=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(e.message))};var l=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,t){var i=this,n=String(++this._lastSentReq);return new Promise(function(r,o){i._pendingReplies[n]={resolve:r,reject:o},i._send({vsWorker:i._workerId,req:n,method:e,args:t})})},e.prototype.handleMessage=function(e){var t;try{t=JSON.parse(e)}catch(e){return}t&&t.vsWorker&&(-1!==this._workerId&&t.vsWorker!==this._workerId||this._handleMessage(t))},e.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return void console.warn("Got reply to unknown seq");var r=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var o=n.err;return n.err.$isError&&((o=new Error).name=n.err.name,o.message=n.err.message,o.stack=n.err.stack),void r.reject(o)}r.resolve(n.res)}else{var s=e,a=s.req;this._handler.handleMessage(s.method,s.args).then(function(e){t._send({vsWorker:t._workerId,seq:a,res:e,err:void 0})},function(e){e.detail instanceof Error&&(e.detail=i.transformErrorForSerialization(e.detail)),t._send({vsWorker:t._workerId,seq:a,res:void 0,err:i.transformErrorForSerialization(e)})})}},e.prototype._send=function(e){var t=JSON.stringify(e);this._handler.sendMessage(t)},e}(),u=function(e){function t(t,i){var n=e.call(this)||this,r=null;n._worker=n._register(t.create("vs/base/common/worker/simpleWorker",function(e){n._protocol.handleMessage(e)},function(e){r&&r(e)})),n._protocol=new l({sendMessage:function(e){n._worker.postMessage(e)},handleMessage:function(e,t){return Promise.resolve(null)}}),n._protocol.setWorkerId(n._worker.getId());var o=null;void 0!==self.require&&"function"==typeof self.require.getConfig?o=self.require.getConfig():void 0!==self.requirejs&&(o=self.requirejs.s.contexts._.config),n._onModuleLoaded=n._protocol.sendMessage(s,[n._worker.getId(),i,o]),n._lazyProxy=new Promise(function(e,t){r=t,n._onModuleLoaded.then(function(t){for(var i={},n=0,r=t;n1,"Need at least one error handler and one function to process sequence"),e.forEach(function(e){i.ok("function"==typeof e)});var t=e.splice(0,1)[0],r=null;n(e,function(e,t){try{e.call(function(e,i){!0!==e&&!1!==e||(i=e,e=null),e?t(e,null):(r=i,t(null,null))},r)}catch(e){t(e,null)}},function(e,i){e&&t(e)})}(Array.isArray(e)?e:Array.prototype.slice.call(arguments))}}),define(i[156],n([0,1,143,35,13,955,12,9,309,170,373,2]),function(e,t,i,n,r,o,s,a,c,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=u.loop;function p(e){return s.isMacintosh?i.readdirSync(e).map(function(e){return o.normalizeNFC(e)}):i.readdirSync(e)}function f(e,t){return s.isMacintosh?i.readdir(e,function(e,i){return e?t(e,[]):t(null,i.map(function(e){return o.normalizeNFC(e)}))}):i.readdir(e,t)}function g(e,t,r,o){var s=o||Object.create(null);i.stat(e,function(o,a){if(o)return r(o);if(!a.isDirectory())return function(e,t,n,r){var o=i.createReadStream(e),s=i.createWriteStream(t,{mode:n}),a=!1,c=function(e){a||(a=!0,e?r(e):i.chmod(t,n,r))};o.once("error",function(e){return c(e)}),s.once("error",function(e){return c(e)}),s.once("close",function(){return c()}),o.pipe(s)}(e,t,511&a.mode,r);if(s[e])return r(null);s[e]=!0;var c=function(){f(e,function(i,o){h(o,function(i,r){g(n.join(e,i),n.join(t,i),function(e){return r(e,[])},s)},r)})};v(t,511&a.mode).then(c,c)})}function v(e,t,o){var s=function(){return r.nfcall(i.mkdir,e,t).then(void 0,function(t){return"ENOENT"===t.code?Promise.reject(t):r.nfcall(i.stat,e).then(function(t){return t.isDirectory()?null:Promise.reject(new Error("'"+e+"' exists and is not a directory."))},function(e){return Promise.reject(t)})})};return e===n.dirname(e)?Promise.resolve(!0):s().then(void 0,function(i){return o&&o.isCancellationRequested?Promise.resolve(!1):"ENOENT"===i.code?v(n.dirname(e),t).then(s):Promise.reject(i)})}function m(e,t){if(e===n.win32.sep||e===n.posix.sep)return t(new Error("Will not delete root!"));i.exists(e,function(r){r?i.lstat(e,function(r,o){if(r||!o)t(r);else if(!o.isDirectory()||o.isSymbolicLink()){var s=o.mode;128&s?i.unlink(e,t):i.chmod(e,128|s,function(n){n?t(n):i.unlink(e,t)})}else f(e,function(r,o){if(r||!o)t(r);else if(0===o.length)i.rmdir(e,t);else{var s=null,a=o.length;o.forEach(function(r){m(n.join(e,r),function(n){n&&(s=s||n),0===--a&&(s?t(s):i.rmdir(e,t))})})}})}):t(null)})}t.readdirSync=p,t.readdir=f,t.statLink=function(e,t){i.lstat(e,function(n,r){n||r.isSymbolicLink()?i.stat(e,function(e,i){if(e)return t(e,null);t(null,{stat:i,isSymbolicLink:r&&r.isSymbolicLink()})}):t(null,{stat:r,isSymbolicLink:!1})})},t.copy=g,t.mkdirp=v,t.del=function(e,t,r,o){i.exists(e,function(s){if(!s)return r(null);i.stat(e,function(s,l){if(s||!l)return r(s);if("."===e[e.length-1]||a.endsWith(e,"./")||a.endsWith(e,".\\"))return m(e,r);var u=n.join(t,c.generateUuid());i.rename(e,u,function(t){if(t)return m(e,r);r(null),m(u,function(e){e&&console.error(e),o&&o(e)})})})})},t.delSync=function e(t){if(t===n.win32.sep||t===n.posix.sep)throw new Error("Will not delete root!");try{var r=i.lstatSync(t);r.isDirectory()&&!r.isSymbolicLink()?(p(t).forEach(function(i){return e(n.join(t,i))}),i.rmdirSync(t)):i.unlinkSync(t)}catch(e){if("ENOENT"===e.code)return;throw e}},t.mv=function(e,t,n){if(e===t)return n(null);function r(e){if(e)return n(e);i.stat(t,function(e,r){return e?n(e):r.isDirectory()?n(null):void i.open(t,"a",null,function(e,t){if(e)return n(e);i.futimes(t,r.atime,new Date,function(e){if(e)return n(e);i.close(t,n)})})})}i.rename(e,t,function(i){return i?i&&e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===i.code||a.endsWith(e,".")?g(e,t,function(t){if(t)return n(t);m(e,r)}):n(i):r(null)})};var y=!0;function b(e){if(!e)return{mode:438,flag:"w"};var t={mode:e.mode,flag:e.flag,encoding:e.encoding};return"number"!=typeof t.mode&&(t.mode=438),"string"!=typeof t.flag&&(t.flag="w"),t}function _(e){return a.rtrim(n.normalize(e),n.sep)}t.writeFileAndFlush=function(e,t,n,r){n=b(n),"string"==typeof t||Buffer.isBuffer(t)?function(e,t,n,r){if(n.encoding&&(t=l.encode(t,n.encoding.charset,{addBOM:n.encoding.addBOM})),!y)return i.writeFile(e,t,{mode:n.mode,flag:n.flag},r);i.open(e,"string"==typeof n.flag?n.flag:"r",n.mode,function(n,o){if(n)return r(n);i.writeFile(e,t,function(e){if(e)return i.close(o,function(){return r(e)});i.fdatasync(o,function(e){return e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),y=!1),i.close(o,function(e){return r(e)})})})})}(e,t,n,r):function(e,t,n,r){var o,s,a=!1,c=function(e){a||(a=!0,e?s?(u.once("close",function(){return r(e)}),u.destroy()):r(e):r())},u=i.createWriteStream(e,{mode:n.mode,flags:n.flag,autoClose:!1});u.once("open",function(e){o=e,s=!0,n.encoding&&(t=t.pipe(l.encodeStream(n.encoding.charset,{addBOM:n.encoding.addBOM}))),t.pipe(u)}),t.once("error",function(e){return c(e)}),u.once("error",function(e){return c(e)}),u.once("finish",function(){y&&s?i.fdatasync(o,function(e){e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),y=!1),u.destroy()}):u.destroy()}),u.once("close",function(){return c()})}(e,t,n,r)},t.writeFileAndFlushSync=function(e,t,n){if((n=b(n)).encoding&&(t=l.encode(t,n.encoding.charset,{addBOM:n.encoding.addBOM})),!y)return i.writeFileSync(e,t,{mode:n.mode,flag:n.flag});var r=i.openSync(e,"string"==typeof n.flag?n.flag:"r",n.mode);try{i.writeFileSync(r,t);try{i.fdatasyncSync(r)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),y=!1}}finally{i.closeSync(r)}},t.realcaseSync=function e(t){var i=n.dirname(t);if(t===i)return t;var r=(n.basename(t)||t).toLowerCase();try{var o=p(i).filter(function(e){return e.toLowerCase()===r});if(1===o.length){if(s=e(i))return n.join(s,o[0])}else if(o.length>1){var s,a=o.indexOf(r);if(a>=0&&(s=e(i)))return n.join(s,o[a])}}catch(e){}return null},t.realpathSync=function(e){try{return i.realpathSync(e)}catch(n){var t=_(e);return i.accessSync(t,i.constants.R_OK),t}},t.realpath=function(e,t){return i.realpath(e,function(n,r){if(!n)return t(null,r);var o=_(e);return i.access(o,i.constants.R_OK,function(e){return t(e,o)})})},t.watch=function(e,t,n){try{var r=i.watch(e);return r.on("change",function(e,i){var n=null;i&&(n=i.toString(),s.isMacintosh&&(n=o.normalizeNFC(n))),t(e,n)}),r.on("error",function(t,i){return n("Failed to watch "+e+" for changes ("+t+", "+i+")")}),{dispose:function(){r.close()}}}catch(t){i.exists(e,function(i){i&&n("Failed to watch "+e+" for changes ("+t.toString()+")")})}return d.Disposable.None},t.sanitizeFilePath=function(e,t){return s.isWindows&&a.endsWith(e,":")&&(e+=n.sep),n.isAbsolute(e)||(e=n.join(t,e)),e=n.normalize(e),s.isWindows?(e=a.rtrim(e,n.sep),a.endsWith(e,":")&&(e+=n.sep)):(e=a.rtrim(e,n.sep))||(e=n.sep),e}}),define(i[398],n([0,1,143,35,25,2,5,83,156,12]),function(e,t,i,n,r,o,s,a,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){void 0===t&&(t={defaultConfig:Object.create(null),onError:function(e){return console.error(e)}}),this._path=e,this.options=t,this.disposables=[],this.configName=n.basename(this._path),this._onDidUpdateConfiguration=new s.Emitter,this.disposables.push(this._onDidUpdateConfiguration),this.registerWatcher(),this.initAsync()}return Object.defineProperty(e.prototype,"path",{get:function(){return this._path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasParseErrors",{get:function(){return this.parseErrors&&this.parseErrors.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidUpdateConfiguration",{get:function(){return this._onDidUpdateConfiguration.event},enumerable:!0,configurable:!0}),e.prototype.initAsync=function(){var e=this;this.loadAsync(function(t){e.loaded||e.updateCache(t),e.options.initCallback&&e.options.initCallback(e.getConfig())})},e.prototype.updateCache=function(e){this.cache=e,this.loaded=!0},e.prototype.loadSync=function(){try{return this.parse(i.readFileSync(this._path).toString())}catch(e){return this.options.defaultConfig}},e.prototype.loadAsync=function(e){var t=this;i.readFile(this._path,function(i,n){return e(i?t.options.defaultConfig:t.parse(n.toString()))})},e.prototype.parse=function(e){try{return this.parseErrors=[],(this.options.parse?this.options.parse(e,this.parseErrors):a.parse(e,this.parseErrors))||this.options.defaultConfig}catch(e){return this.options.defaultConfig}},e.prototype.registerWatcher=function(){var e=this,t=n.dirname(this._path);this.watch(t,!0),i.lstat(this._path,function(t,n){t||n.isDirectory()||n.isSymbolicLink()&&i.readlink(e._path,function(t,i){t||e.watch(i,!1)})})},e.prototype.watch=function(e,t){var i=this;this.disposed||this.disposables.push(c.watch(e,function(e,n){return i.onConfigFileChange(e,n,t)},function(e){return i.options.onError(e)}))},e.prototype.onConfigFileChange=function(e,t,i){var r=this;i&&(l.isWindows&&t&&t!==this.configName&&(t=n.basename(t)),t!==this.configName)||(this.timeoutHandle&&(global.clearTimeout(this.timeoutHandle),this.timeoutHandle=null),this.timeoutHandle=global.setTimeout(function(){return r.reload()},this.options.changeBufferDelay||0))},e.prototype.reload=function(e){var t=this;this.loadAsync(function(i){if(r.equals(i,t.cache)||(t.updateCache(i),t._onDidUpdateConfiguration.fire({config:t.cache})),e)return e(i)})},e.prototype.getConfig=function(){return this.ensureLoaded(),this.cache},e.prototype.ensureLoaded=function(){this.loaded||this.updateCache(this.loadSync())},e.prototype.dispose=function(){this.disposed=!0,this.disposables=o.dispose(this.disposables)},e}();t.ConfigWatcher=u}),define(i[132],n([0,1,156,35,13,143,246,12,5]),function(e,t,i,n,r,o,s,a,c){"use strict";function l(e){return r.nfcall(i.readdir,e)}function u(e){return r.nfcall(o.stat,e)}function d(e){return r.nfcall(o.lstat,e)}function h(e){return r.nfcall(o.rmdir,e)}function p(e){return r.nfcall(o.unlink,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=l,t.exists=function(e){return new Promise(function(t){return o.exists(e,t)})},t.chmod=function(e,t){return r.nfcall(o.chmod,e,t)},t.mkdirp=i.mkdirp,t.rimraf=function e(t){return d(t).then(function(i){return i.isDirectory()&&!i.isSymbolicLink()?l(t).then(function(i){return Promise.all(i.map(function(i){return e(n.join(t,i))}))}).then(function(){return h(t)}):p(t)},function(e){if("ENOENT"!==e.code)return Promise.reject(e)})},t.realpath=function(e){return r.nfcall(i.realpath,e)},t.stat=u,t.statLink=function(e){return r.nfcall(i.statLink,e)},t.lstat=d,t.rename=function(e,t){return r.nfcall(o.rename,e,t)},t.renameIgnoreError=function(e,t){return new Promise(function(i){o.rename(e,t,function(){return i()})})},t.rmdir=h,t.unlink=p,t.symlink=function(e,t,i){return r.nfcall(o.symlink,e,t,i)},t.readlink=function(e){return r.nfcall(o.readlink,e)},t.truncate=function(e,t){return r.nfcall(o.truncate,e,t)},t.readFile=function(e,t){return r.nfcall(o.readFile,e,t)};var f=Object.create(null);function g(e){return u(e).then(function(e){return e.isDirectory()},function(){return!1})}t.writeFile=function(e,t,n){return function(e){var t=f[e];if(!t){t=new r.Queue,f[e]=t;var i=c.Event.once(t.onFinished);i(function(){delete f[e],t.dispose()})}return t}(function(e){var t=e;return(a.isWindows||a.isMacintosh)&&(t=t.toLowerCase()),t}(e)).queue(function(){return r.nfcall(i.writeFileAndFlush,e,t,n)})},t.readDirsInDir=function(e){return l(e).then(function(t){return Promise.all(t.map(function(t){return g(n.join(e,t))})).then(function(e){return t.filter(function(t,i){return e[i]})})})},t.dirExists=g,t.fileExists=function(e){return u(e).then(function(e){return e.isFile()},function(){return!1})};var v=null;t.del=function(e,t){return void 0===t&&(v||(v=s.tmpdir()),t=v),r.nfcall(i.del,e,t)},t.whenDeleted=function(e){return new Promise(function(t){var i=!1,n=setInterval(function(){i||(i=!0,o.exists(e,function(e){i=!1,e||(clearInterval(n),t(void 0))}))},1e3)})},t.copy=function(e,t){return r.nfcall(i.copy,e,t)}}),define(i[959],n([0,1,426]),function(e,t,i){"use strict";function n(e){try{e.removeAllListeners("connect"),e.removeAllListeners("error"),e.end(),e.destroy(),e.unref()}catch(e){console.error(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.randomPort=function(){return 1025+Math.floor(64510*Math.random())},t.findFreePort=function(e,t,r){var o=!1;return new Promise(function(s){var a=setTimeout(function(){if(!o)return o=!0,s(0)},r);!function e(t,r,o){if(0===r)return o(0);var s=new i.Socket;s.once("connect",function(){return n(s),e(t+1,r-1,o)}),s.once("data",function(){}),s.once("error",function(i){return n(s),"ECONNREFUSED"!==i.code?e(t+1,r-1,o):o(t)}),s.connect(t,"127.0.0.1")}(e,t,function(e){if(!o)return o=!0,clearTimeout(a),s(e)})})}}),define(i[429],n([0,1,143]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readExactlyByFile=function(e,t){return new Promise(function(n,r){i.open(e,"r",null,function(e,o){if(e)return r(e);function s(e,t,s){i.close(o,function(i){return i?r(i):e&&"EISDIR"===e.code?r(e):n({buffer:t,bytesRead:s})})}var a=Buffer.allocUnsafe(t),c=0;!function e(){i.read(o,a,c,t-c,null,function(i,n){return i?s(i,null,0):0===n?s(null,a,c):(c+=n)===t?s(null,a,c):e()})}()})})},t.readToMatchingString=function(e,t,n,r){return new Promise(function(o,s){return i.open(e,"r",null,function(a,c){if(a)return s(a);function l(e,t){i.close(c,function(i){return i?s(i):e&&"EISDIR"===e.code?s(e):o(t)})}var u=Buffer.allocUnsafe(r),d=0;!function o(){i.read(c,u,d,n,null,function(i,n){if(i)return l(i,null);if(0===n)return l(null,null);d+=n;var s=u.indexOf(t);return s>=0?l(null,u.toString("utf8").substr(0,s)):d>=r?l(new Error("Could not find "+t+" in first "+r+" bytes of "+e),null):o()})}()})})}}),define(i[196],n([0,1,2,5,13,36,11]),function(e,t,i,n,s,a,c){"use strict";var l;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(l||(l={}));var u,d=function(){function e(e){this.buffer=e,this.pos=0}return e.prototype.read=function(e){var t=this.buffer.slice(this.pos,this.pos+e);return this.pos+=t.length,t},e}(),h=function(){function e(){this.buffers=[]}return Object.defineProperty(e.prototype,"buffer",{get:function(){return Buffer.concat(this.buffers)},enumerable:!0,configurable:!0}),e.prototype.write=function(e){this.buffers.push(e)},e}();function p(e){var t=Buffer.allocUnsafe(4);return t.writeUInt32BE(e,0),t}function f(e){return e.read(4).readUInt32BE(0)}!function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.Array=3]="Array",e[e.Object=4]="Object"}(u||(u={}));var g={Undefined:Buffer.alloc(1,u.Undefined),String:Buffer.alloc(1,u.String),Buffer:Buffer.alloc(1,u.Buffer),Array:Buffer.alloc(1,u.Array),Object:Buffer.alloc(1,u.Object)};function v(e,t){if(void 0===t)e.write(g.Undefined);else if("string"==typeof t){var i=Buffer.from(t);e.write(g.String),e.write(p(i.length)),e.write(i)}else if(Buffer.isBuffer(t))e.write(g.Buffer),e.write(p(t.length)),e.write(t);else if(Array.isArray(t)){e.write(g.Array),e.write(p(t.length));for(var n=0,r=t;nthis._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){var t=this._chunks.shift();return this._totalLength-=e,t}if(this._chunks[0].byteLength>e){var i=this._chunks[0].slice(0,e);return this._chunks[0]=this._chunks[0].slice(e),this._totalLength-=e,i}for(var n=Buffer.allocUnsafe(e),r=0;e>0;){var o=this._chunks[0];o.byteLength>e?(this._chunks[0]=o.slice(e),o.copy(n,r,0,e),r+=e,this._totalLength-=e,e-=e):(this._chunks.shift(),o.copy(n,r,0,o.byteLength),r+=o.byteLength,this._totalLength-=o.byteLength,e-=o.byteLength)}return n},e}(),u=function(){function e(t){var i=this;this._socket=t,this._onMessage=new n.Emitter,this.onMessage=this._onMessage.event,this._onClose=new n.Emitter,this.onClose=this._onClose.event,this._writeBuffer=new(function(){function e(){this._data=[],this._totalLength=0}return e.prototype.add=function(e,t){var i=0===this._totalLength;return this._data.push(e,t),this._totalLength+=e.length+t.length,i},e.prototype.take=function(){var e=Buffer.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,e},e}()),this._isDisposed=!1,this._incomingData=new l;var r={readHead:!0,bodyLen:-1};this._socketDataListener=function(t){!function(t){for(i._incomingData.acceptChunk(t);i._incomingData.byteLength>0;){if(r.readHead){if(!(i._incomingData.byteLength>=e._headerLen))break;r.bodyLen=i._incomingData.readUInt32BE(),r.readHead=!1}if(!r.readHead){if(!(i._incomingData.byteLength>=r.bodyLen))break;var n=i._incomingData.read(r.bodyLen);if(r.bodyLen=-1,r.readHead=!0,i._onMessage.fire(n),i._isDisposed)break}}}(t)},t.on("data",this._socketDataListener),this._socketEndListener=function(){},t.on("end",this._socketEndListener),this._socketCloseListener=function(){i._onClose.fire()},t.once("close",this._socketCloseListener)}return e.prototype.dispose=function(){this._isDisposed=!0,this._socket.removeListener("data",this._socketDataListener),this._socket.removeListener("end",this._socketEndListener),this._socket.removeListener("close",this._socketCloseListener)},e.prototype.end=function(){this._socket.end()},e.prototype.readEntireBuffer=function(){return this._incomingData.read(this._incomingData.byteLength)},e.prototype.send=function(t){var i=Buffer.allocUnsafe(e._headerLen);i.writeUInt32BE(t.length,0,!0),this._writeSoon(i,t)},e.prototype._writeSoon=function(e,t){var i=this;this._writeBuffer.add(e,t)&&setImmediate(function(){i._socket.destroyed||i._socket.write(i._writeBuffer.take())})},e._headerLen=4,e}();t.Protocol=u;var d=function(e){function t(i){var n=e.call(this,t.toClientConnectionEvent(i))||this;return n.server=i,n}return a(t,e),t.toClientConnectionEvent=function(e){var t=n.Event.fromNodeEventEmitter(e,"connection");return n.Event.map(t,function(e){return{protocol:new u(e),onDidClientDisconnect:n.Event.once(n.Event.fromNodeEventEmitter(e,"close"))}})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.server&&(this.server.close(),this.server=null)},t}(r.IPCServer);t.Server=d;var h=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.protocol=t,n}return a(t,e),t.fromSocket=function(e,i){return new t(new u(e),i)},Object.defineProperty(t.prototype,"onClose",{get:function(){return this.protocol.onClose},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.protocol.end()},t}(r.IPCClient);function p(e){var t,i=!1,r=!1,o=[],s=function(){if(!r){for(r=!0;i&&o.length>0;)t.fire(o.shift());r=!1}};return e(function(e){o.push(e),s()}),(t=new n.Emitter({onFirstListenerAdd:function(){i=!0,process.nextTick(s)},onLastListenerRemove:function(){i=!1}})).event}t.Client=h,t.serve=function(e){return new Promise(function(t,n){var r=i.createServer();r.on("error",n),r.listen(e,function(){r.removeListener("error",n),t(new d(r))})})},t.connect=function(e,t){return new Promise(function(n,r){var o=i.createConnection(e,function(){o.removeListener("error",r),n(h.fromSocket(o,t))});o.once("error",r)})};var f=function(){function e(e){this._actual=e,this.onMessage=p(this._actual.onMessage),this.onClose=p(this._actual.onClose)}return e.prototype.send=function(e){this._actual.send(e)},e.prototype.end=function(){this._actual.end()},e}();t.BufferedProtocol=f}),define(i[666],n([0,1,23]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.modelProvider=i.isFunction(e.getModel)?e:{getModel:function(){return e}}}return e.prototype.getId=function(e,t){if(!t)return null;var i=this.modelProvider.getModel();return i===t?"__root__":i.dataSource.getId(t)},e.prototype.hasChildren=function(e,t){var i=this.modelProvider.getModel();return!!(i&&i===t&&i.entries.length>0)},e.prototype.getChildren=function(e,t){var i=this.modelProvider.getModel();return Promise.resolve(i===t?i.entries:[])},e.prototype.getParent=function(e,t){return Promise.resolve(null)},e}();t.DataSource=n;var r=function(){function e(e){this.modelProvider=e}return e.prototype.getAriaLabel=function(e,t){var i=this.modelProvider.getModel();return i.accessibilityProvider?i.accessibilityProvider.getAriaLabel(t):null},e.prototype.getPosInSet=function(e,t){var i=this.modelProvider.getModel(),n=0;if(i.filter)for(var r=0,o=i.entries;r0,f=e[l],g=t[l],v=0;v0,y=d+v,b=y-1,_=h+v-1,S=m?s[b]:0,C=p&&m?s[_]:0,w=p&&m?c[_]:0,E=void 0;(E=!C&&p?0:u(f,g,n,r,v,w))&&C+E>=S?(c[y]=w+1,s[y]=C+E):(c[y]=a,s[y]=S)}var I=[],x=i-1,D=o-1;for(;x>=0&&D>=0;){var y=x*o+D,k=c[y];k===a?D--:(I.push(D),x--,D--)}return[s[i*o-1],I.reverse()]}(t,i,o,e,s,r)}function u(e,t,i,r,o,s){var a=0;if(t!==r[o])return a;if(a+=1,s>0&&(a+=5*s),e===i[o]&&(a+=1),0===o)a+=8;else{var c=function(e){switch(e){case 47:case 92:return 5;case 95:case 45:case 46:case 32:case 39:case 34:case 58:return 4;default:return 0}}(i.charCodeAt(o-1));c?a+=c:n.isUpper(i.charCodeAt(o))&&(a+=1)}return a}t.score=l;var d=Object.freeze({score:0}),h=1<<18,p=1<<17,f=65536,g=32768;function v(e,t,i,a,c){if(!e||!t.value)return d;var u=a.getItemLabel(e);if(!u)return d;var v,y=a.getItemDescription(e),b=c[v=y?""+u+y+t.value+i:""+u+t.value+i];if(b)return b;var _=function(e,t,i,a,c){if(i&&(o.isLinux?a.original===i:s.equalsIgnoreCase(a.original,i)))return{score:h,labelMatch:[{start:0,end:e.length}],descriptionMatch:t?[{start:0,end:t.length}]:void 0};if(!i||!a.containsPathSeparator){var u=n.matchesPrefix(a.value,e);if(u)return{score:p,labelMatch:u};var v=n.matchesCamelCase(a.value,e);if(v)return{score:f,labelMatch:v};var y=l(e,a.value,a.lowercase,c),b=y[0],_=y[1];if(b)return{score:b+g,labelMatch:m(_)}}if(t){var S=t;i&&(S=""+t+r.sep);var C=S.length,w=""+S+e,E=l(w,a.value,a.lowercase,c),I=E[0],x=E[1];if(I){var D=m(x),k=[],L=[];return D.forEach(function(e){e.startC?(k.push({start:0,end:e.end-C}),L.push({start:e.start,end:C})):e.start>=C?k.push({start:e.start-C,end:e.end-C}):L.push(e)}),{score:I,labelMatch:k,descriptionMatch:L}}}return d}(u,y,a.getItemPath(e),t,i);return c[v]=_,_}function m(e){var t,i=[];if(!e)return i;for(var n=0,r=e;n=0;return{original:e,value:t,lowercase:i,containsPathSeparator:n}},t.scoreItem=v,t.compareItemsByScore=function(e,t,i,n,r,o,s){void 0===s&&(s=b);var a=v(e,i,n,r,o),c=v(t,i,n,r,o),l=a.score,u=c.score;if((l===h||u===h)&&l!==u)return l===h?-1:1;if(l===p||u===p){if(l!==u)return l===p?-1:1;var d=r.getItemLabel(e)||"",m=r.getItemLabel(t)||"";if(d.length!==m.length)return d.length-m.length}if(l===f||u===f){if(l!==u)return l===f?-1:1;d=r.getItemLabel(e)||"",m=r.getItemLabel(t)||"";var _=function(e,t){if(!e&&!t||!(e&&e.length||t&&t.length))return 0;if(!t||!t.length)return-1;if(!e||!e.length)return 1;var i=e[0].start,n=e[e.length-1].end-i,r=t[0].start,o=t[t.length-1].end-r;return n===o?0:og||u>g){if(uu?-1:1;var S=y(e,a,r),C=y(t,c,r);return S&&C&&S!==C?C>S?-1:1:s(e,t,i,r)},t.fallbackCompare=b}),define(i[713],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,i){this._posx=e,this._posy=t,this._target=i}return e.prototype.preventDefault=function(){},e.prototype.stopPropagation=function(){},Object.defineProperty(e.prototype,"posx",{get:function(){return this._posx},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"posy",{get:function(){return this._posy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),e}();t.ContextMenuEvent=i;var n=function(e){function t(t){var i=e.call(this,t.posx,t.posy,t.target)||this;return i.originalEvent=t,i}return a(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(i);t.MouseContextMenuEvent=n;var r=function(e){function t(t,i,n){var r=e.call(this,t,i,n.target)||this;return r.originalEvent=n,r}return a(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(i);t.KeyboardContextMenuEvent=r,t.DRAG_OVER_REJECT={accept:!1},t.DRAG_OVER_ACCEPT={accept:!0},t.DRAG_OVER_ACCEPT_BUBBLE_UP={accept:!0,bubble:1},t.DRAG_OVER_ACCEPT_BUBBLE_DOWN=function(e){return void 0===e&&(e=!1),{accept:!0,bubble:0,autoExpand:e}},t.DRAG_OVER_ACCEPT_BUBBLE_UP_COPY={accept:!0,bubble:1,effect:0},t.DRAG_OVER_ACCEPT_BUBBLE_DOWN_COPY=function(e){return void 0===e&&(e=!1),{accept:!0,bubble:0,effect:0,autoExpand:e}}}),define(i[747],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e.prototype.getData=function(){return this.elements},e}();t.ElementsDragAndDropData=i;var n=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e.prototype.getData=function(){return this.elements},e}();t.ExternalElementsDragAndDropData=n;var r=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){e.types&&(this.types=[],Array.prototype.push.apply(this.types,e.types)),e.files&&(this.files=[],Array.prototype.push.apply(this.files,e.files),this.files=this.files.filter(function(e){return e.size||e.type}))},e.prototype.getData=function(){return{types:this.types,files:this.files}},e}();t.DesktopDragAndDropData=r}),define(i[751],n([0,1,178,11,2,17,5]),function(e,t,i,n,r,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e){this._onDispose=new s.Emitter,this.onDispose=this._onDispose.event,this._item=e}return Object.defineProperty(e.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},e}();t.LockData=c;var l=function(){function e(){this.locks=Object.create({})}return e.prototype.isLocked=function(e){return!!this.locks[e.id]},e.prototype.run=function(e,t){var i=this,n=this.getLock(e);return n?new Promise(function(r,o){s.Event.once(n.onDispose)(function(){return i.run(e,t).then(r,o)})}):new Promise(function(n,r){if(e.isDisposed())return r(new Error("Item is disposed."));var o=i.locks[e.id]=new c(e);return t().then(function(t){return delete i.locks[e.id],o.dispose(),t}).then(n,r)})},e.prototype.getLock=function(e){var t;for(t in this.locks){var i=this.locks[t];if(e.intersects(i.item))return i}return null},e}();t.Lock=l;var u=function(){function e(){this._isDisposed=!1,this._onDidRevealItem=new s.EventMultiplexer,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new s.EventMultiplexer,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new s.EventMultiplexer,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new s.EventMultiplexer,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new s.EventMultiplexer,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new s.EventMultiplexer,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new s.EventMultiplexer,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new s.EventMultiplexer,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new s.EventMultiplexer,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new s.EventMultiplexer,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new s.EventMultiplexer,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return e.prototype.register=function(e){i.ok(!this.isRegistered(e.id),"item already registered: "+e.id);var t=r.combinedDisposable([this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose)]);this.items[e.id]={item:e,disposable:t}},e.prototype.deregister=function(e){i.ok(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},e.prototype.dispose=function(){this.items=null,this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},e.prototype.isDisposed=function(){return this._isDisposed},e}();t.ItemRegistry=u;var d=function(){function e(e,t,i,n,r){this._onDidCreate=new s.Emitter,this.onDidCreate=this._onDidCreate.event,this._onDidReveal=new s.Emitter,this.onDidReveal=this._onDidReveal.event,this._onExpand=new s.Emitter,this.onExpand=this._onExpand.event,this._onDidExpand=new s.Emitter,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new s.Emitter,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new s.Emitter,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new s.Emitter,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new s.Emitter,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new s.Emitter,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new s.Emitter,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new s.Emitter,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new s.Emitter,this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=i,this.lock=n,this.element=r,this.id=e,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!(!this.context.dataSource.shouldAutoexpand||!this.context.dataSource.shouldAutoexpand(this.context.tree,r)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return e.prototype.getElement=function(){return this.element},e.prototype.hasChildren=function(){return this.doesHaveChildren},e.prototype.getDepth=function(){return this.depth},e.prototype.isVisible=function(){return this.visible},e.prototype.setVisible=function(e){this.visible=e},e.prototype.isExpanded=function(){return this.expanded},e.prototype._setExpanded=function(e){this.expanded=e},e.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)},e.prototype.expand=function(){var e=this;return this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){if(e.isExpanded()||!e.doesHaveChildren)return Promise.resolve(!1);var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Promise.resolve(null)).then(function(){return e._setExpanded(!0),e._onDidExpand.fire(t),!0})}).then(function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then(function(){return!0}):t)})},e.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var i=Promise.resolve(null);return this.forEachChild(function(e){i=i.then(function(){return e.collapse(!0)})}),i.then(function(){return t.collapse(!1)})}return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Promise.resolve(!0)})},e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},e.prototype.hasTrait=function(e){return this.traits[e]||!1},e.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},e.prototype.getHeight=function(){return this.height},e.prototype.refreshChildren=function(t,i,r){var o=this;if(void 0===i&&(i=!1),void 0===r&&(r=!1),!r&&!this.isExpanded()){var s=function(e){e.needsChildrenRefresh=!0,e.forEachChild(s)};return s(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var a=function(){var r={item:o,isNested:i};return o._onRefreshChildren.fire(r),(o.doesHaveChildren?o.context.dataSource.getChildren(o.context.tree,o.element):Promise.resolve([])).then(function(i){if(o.isDisposed()||o.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(i))return Promise.reject(new Error("Please return an array of children."));i=i?i.slice(0):[],i=o.sort(i);for(var n={};null!==o.firstChild;)n[o.firstChild.id]=o.firstChild,o.removeChild(o.firstChild);for(var r=0,s=i.length;r0?r[0]:this.input,s=this.getNavigator(o,!1),a=0;a0?i[0]:this.input,r=this.getNavigator(n,!1).parent();r&&(t?this.setSelection([r],e):this.select(r,e))},e.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var i={focus:this.getFocus(),payload:t};this._onDidFocus.fire(i)},e.prototype.isFocused=function(e){var t=this.getItem(e);return!!t&&t.hasTrait("focused")},e.prototype.getFocus=function(e){void 0===e&&(e=!1);var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]},e.prototype.focusNext=function(e,t){void 0===e&&(e=1);for(var i,n=this.getFocus()||this.input,r=this.getNavigator(n,!1),o=0;o=0;r--)this.onInsertItem(l[r]);for(r=this.heightMap.length-1;r>=n;r--)this.onRefreshItem(this.heightMap[r]);return a},e.prototype.onInsertItem=function(e){},e.prototype.onRemoveItems=function(e){for(var t,i=null,n=null,r=0,o=0;i=e.next();){if(r=this.indexes[i],!(t=this.heightMap[r]))return void console.error("view item doesnt exist");o-=t.height,delete this.indexes[i],this.onRemoveItem(t),null===n&&(n=r)}if(0!==o&&null!==n)for(this.heightMap.splice(n,r-n+1),r=n;r=i.top+i.height))return t;if(n===t)break;n=t}return this.heightMap.length},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},e.prototype.itemAtIndex=function(e){return this.heightMap[e]},e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},e.prototype.createViewItem=function(e){throw new Error("not implemented")},e.prototype.dispose=function(){this.heightMap=[],this.indexes={}},e}();t.HeightMap=n}),define(i[755],n([0,1,12,323]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function t(t,n,r,o,s){this.id=n;var a=function(t,n){if(i.globals.MonacoEnvironment){if("function"==typeof i.globals.MonacoEnvironment.getWorker)return i.globals.MonacoEnvironment.getWorker(t,n);if("function"==typeof i.globals.MonacoEnvironment.getWorkerUrl)return new Worker(i.globals.MonacoEnvironment.getWorkerUrl(t,n))}if("function"==typeof e){var r=e.toUrl("./"+t);if(/^(http:)|(https:)|(file:)/.test(r)){var o=String(window.location),s=o.substr(0,o.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(r.substring(0,s.length)!==s){var a=r.substr(0,r.length-"vs/base/worker/workerMain.js".length),c="data:text/javascript;charset=utf-8,"+encodeURIComponent("/*"+n+"*/self.MonacoEnvironment={baseUrl: '"+a+"'};importScripts('"+r+"');/*"+n+"*/");return new Worker(c)}}return new Worker(r+"#"+n)}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}("workerMain.js",r);"function"==typeof a.then?this.worker=a:this.worker=Promise.resolve(a),this.postMessage(t),this.worker.then(function(e){e.onmessage=function(e){o(e.data)},e.onmessageerror=s,"function"==typeof e.addEventListener&&e.addEventListener("error",s)})}return t.prototype.getId=function(){return this.id},t.prototype.postMessage=function(e){this.worker&&this.worker.then(function(t){return t.postMessage(e)})},t.prototype.dispose=function(){this.worker&&this.worker.then(function(e){return e.terminate()}),this.worker=null},t}(),o=function(){function e(e){this._label=e,this._webWorkerFailedBeforeError=!1}return e.prototype.create=function(t,i,o){var s=this,a=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new r(t,a,this._label||"anonymous"+a,i,function(e){n.logOnceWebWorkerWarning(e),s._webWorkerFailedBeforeError=e,o(e)})},e.LAST_WORKER_ID=0,e}();t.DefaultWorkerFactory=o}),define(i[756],n([0,1,2]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.prototype.showActivity=function(e,t,n,r){return i.toDisposable(function(){return!0})},e.prototype.getPinnedViewletIds=function(){return[]},e}();t.CodeSandboxActivityService=n}),define(i[758],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.hasBackups=function(){return new Promise(function(e){return e(!1)})},e.prototype.loadBackupResource=function(e){return new Promise(function(e){return e(null)})},e.prototype.toBackupResource=function(e){return e},e.prototype.backupResource=function(e,t,i){return new Promise(function(e){return e(null)})},e.prototype.getWorkspaceFileBackups=function(){return new Promise(function(e){return e(null)})},e.prototype.resolveBackupContent=function(e){return new Promise(function(e){return e(null)})},e.prototype.discardResourceBackup=function(e){return Promise.resolve(void 0)},e.prototype.discardAllWorkspaceBackups=function(){return Promise.resolve(void 0)},e}();t.CodeSandboxBackupService=i}),define(i[759],n([0,1,5]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.windowId=e,this._onBroadcast=new i.Emitter,this.registerListeners()}return e.prototype.registerListeners=function(){var e=this;(window||self).addEventListener("message",function(t){var i=t.data;if("broadcast"===i.$type&&i.$windowId!==e.windowId){var n=i.b;e._onBroadcast.fire(n)}})},Object.defineProperty(e.prototype,"onBroadcast",{get:function(){return this._onBroadcast.event},enumerable:!0,configurable:!0}),e.prototype.broadcast=function(e){(window.parent||window).postMessage({$type:"broadcast",$windowId:this.windowId,b:e},"*")},e}();t.CodeSandboxBroadcastService=n}),define(i[760],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.writeText=function(e){navigator.clipboard.writeText(e)},e.prototype.readText=function(){return function(){var e=document.createElement("input");document.body.appendChild(e),e.focus(),document.execCommand("paste");var t=e.value;return document.body.removeChild(e),t}()||""},e.prototype.readFindText=function(){return""},e.prototype.writeFindText=function(e){},e.prototype.writeResources=function(e){},e.prototype.readResources=function(){return[]},e.prototype.hasResources=function(){return!1},e}();t.CodeSandboxClipboardService=i}),define(i[762],n([0,1,10]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(){this.globalStorageHome="/vscode/globalStorage",this.untitledWorkspacesHome=i.URI.file("/vscode/untitledWorkspaces"),this.args={_:[]},this.appRoot="/vscode",this.userHome="/home/sandbox",this.userDataPath="/vscode/userdata",this.appNameLong="CodeSandbox",this.appQuality="Very Good",this.appSettingsHome="/vscode",this.appSettingsPath="/vscode/settings.json",this.appKeybindingsPath="/vscode/keybindings.json",this.isExtensionDevelopment=!1,this.disableExtensions=!1,this.extensionsPath="/vscode/extensions",this.debugExtensionHost={debugId:"",port:null,break:!1},this.logsPath="/home/sandbox/.vscode/logs",this.builtinExtensionsPath="/extensions"}}();t.CodeSandboxEnvironmentService=n}),define(i[765],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.getAllVersions=function(e,t){return Promise.resolve([])},e.prototype.getCompatibleExtension=function(e,t){return Promise.resolve({})},e.prototype.getExtension=function(e,t){throw new Error("Method not implemented.")},e.prototype.isEnabled=function(){return!1},e.prototype.reportStatistic=function(e,t,i,n){throw new Error("Method not implemented.")},e.prototype.query=function(e){throw new Error("query not implemented")},e.prototype.download=function(e,t){throw new Error("\tdownload not implemented")},e.prototype.getReadme=function(e){throw new Error("\tgetReadme not implemented")},e.prototype.getManifest=function(e){throw new Error("\tgetManifest not implemented")},e.prototype.getChangelog=function(e){throw new Error("\tgetChangelog not implemented")},e.prototype.getCoreTranslation=function(e,t){throw new Error("getCoreTranslation not implemented")},e.prototype.loadCompatibleVersion=function(e){throw new Error("loadCompatibleVersion not implemented")},e.prototype.loadAllDependencies=function(e){throw new Error("loadAllDependencies not implemented")},e.prototype.getExtensionsReport=function(){throw new Error("getExtensionsReport not implemented")},e}();t.CodeSandboxExtensionGalleryService=i}),define(i[766],n([0,1,5]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._onInstallExtension=new i.Emitter,this.onInstallExtension=this._onInstallExtension.event,this._onDidInstallExtension=new i.Emitter,this.onDidInstallExtension=this._onDidInstallExtension.event,this._onUninstallExtension=new i.Emitter,this.onUninstallExtension=this._onUninstallExtension.event,this._onDidUninstallExtension=new i.Emitter,this.onDidUninstallExtension=this._onDidUninstallExtension.event}return e.prototype.zip=function(e){throw new Error("zip not implemented")},e.prototype.unzip=function(e,t){throw new Error("unzip not implemented")},e.prototype.install=function(e){throw new Error("install not implemented")},e.prototype.installFromGallery=function(e){throw new Error("installFromGallery not implemented")},e.prototype.uninstall=function(e,t){throw new Error("uninstall not implemented")},e.prototype.reinstallFromGallery=function(e){throw new Error("reinstallFromGallery not implemented")},e.prototype.getInstalled=function(e){return new Promise(function(){return[]})},e.prototype.getExtensionsReport=function(){throw new Error("getExtensionsReport not implemented")},e.prototype.updateMetadata=function(e,t){throw new Error("updateMetadata not implemented")},e}();t.CodeSandboxExtensionManagementService=n}),define(i[767],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.createSHA1=function(e){return e},e}();t.CodeSandboxHashService=i}),define(i[773],n([0,1,5]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.onActiveOutputChannel=(new i.Emitter).event}return e.prototype.getChannelDescriptors=function(){throw new Error("Method not implemented.")},e.prototype.getChannel=function(e){throw new Error("getChannel not implemented.")},e.prototype.getActiveChannel=function(){throw new Error("getActiveChannel not implemented.")},e.prototype.showChannel=function(e,t){throw new Error("showChannel not implemented.")},e}();t.CodeSandboxOutputService=n}),define(i[776],n([0,1,5,2]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){for(var e=[],t=0;t1&&a._register(i.addDisposableListener(c.element,i.EventType.KEY_DOWN,function(e){var t,r=new n.StandardKeyboardEvent(e),a=!0;r.equals(15)?t=s>0?s-1:o._buttons.length-1:r.equals(17)?t=s===o._buttons.length-1?0:s+1:a=!1,a&&"number"==typeof t&&(o._buttons[t].focus(),i.EventHelper.stop(e,!0))}))},a=this,c=0;c'})}Object.defineProperty(t,"__esModule",{value:!0}),t.renderOcticons=n;var r=function(){function e(e){this._container=e}return Object.defineProperty(e.prototype,"text",{set:function(e){this._container.innerHTML=n(e||"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this._container.title=e},enumerable:!0,configurable:!0}),e}();t.OcticonLabel=r}),define(i[205],n([0,1,7,25,369,9]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){this.supportOcticons=t,this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",this.didEverRender=!1,e.appendChild(this.domNode)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),e.prototype.set=function(t,i,r,o){void 0===i&&(i=[]),void 0===r&&(r=""),t||(t=""),o&&(t=e.escapeNewLines(t,i)),this.didEverRender&&this.text===t&&this.title===r&&n.equals(this.highlights,i)||(Array.isArray(i)||(i=[]),this.text=t,this.title=r,this.highlights=i,this.render())},e.prototype.render=function(){i.clearNode(this.domNode);for(var e=[],t=0,n=0,s=this.highlights;n");var c=this.text.substring(t,a.start);e.push(this.supportOcticons?r.renderOcticons(c):o.escape(c)),e.push(""),t=a.end}e.push('');var l=this.text.substring(a.start,a.end);e.push(this.supportOcticons?r.renderOcticons(l):o.escape(l)),e.push(""),t=a.end}}if(t");l=this.text.substring(t);e.push(this.supportOcticons?r.renderOcticons(l):o.escape(l)),e.push("")}this.domNode.innerHTML=e.join(""),this.domNode.title=this.title,this.didEverRender=!0},e.escapeNewLines=function(e,t){var i=0,n=0;return e.replace(/\r\n|\r|\n/,function(e,r){n="\r\n"===e?-1:0,r+=i;for(var o=0,s=t;o=r&&(a.start+=n),a.end>=r&&(a.end+=n))}return i+=n,"⏎"})},e}();t.HighlightedLabel=s}),define(i[147],n([0,1,7,205,2,898]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this._element=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":null)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposed=!0},e}(),s=function(e){function t(t,r){var s=e.call(this)||this;return s.domNode=s._register(new o(i.append(t,i.$(".monaco-icon-label")))),s.labelDescriptionContainer=s._register(new o(i.append(s.domNode.element,i.$(".monaco-icon-label-description-container")))),r&&r.supportHighlights?s.labelNode=new n.HighlightedLabel(i.append(s.labelDescriptionContainer.element,i.$("a.label-name")),!r.donotSupportOcticons):s.labelNode=s._register(new o(i.append(s.labelDescriptionContainer.element,i.$("a.label-name")))),r&&r.supportDescriptionHighlights?s.descriptionNodeFactory=function(){return new n.HighlightedLabel(i.append(s.labelDescriptionContainer.element,i.$("span.label-description")),!r.donotSupportOcticons)}:s.descriptionNodeFactory=function(){return s._register(new o(i.append(s.labelDescriptionContainer.element,i.$("span.label-description"))))},s}return a(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.domNode.element},enumerable:!0,configurable:!0}),t.prototype.setLabel=function(e,t,i){var r=["monaco-icon-label"];i&&(i.extraClasses&&r.push.apply(r,i.extraClasses),i.italic&&r.push("italic")),this.domNode.className=r.join(" "),this.domNode.title=i&&i.title?i.title:"",this.labelNode instanceof n.HighlightedLabel?this.labelNode.set(e||"",i?i.matches:void 0,i&&i.title?i.title:void 0,i&&i.labelEscapeNewLines):this.labelNode.textContent=e||"",(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof n.HighlightedLabel?(this.descriptionNode.set(t||"",i?i.descriptionMatches:void 0),i&&i.descriptionTitle?this.descriptionNode.element.title=i.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=i&&i.descriptionTitle?i.descriptionTitle:"",this.descriptionNode.empty=!t))},t}(r.Disposable);t.IconLabel=s}),define(i[941],n([14]),{}),define(i[233],n([0,1,178,2,49,25,7,13,941]),function(e,t,i,n,r,o,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l={progressBarBackground:r.Color.fromHex("#0E70C0")},u=function(e){function t(t,i){var n=e.call(this)||this;return n.options=i||Object.create(null),o.mixin(n.options,l,!1),n.workedVal=0,n.progressBarBackground=n.options.progressBarBackground,n._register(n.showDelayedScheduler=new c.RunOnceScheduler(function(){return s.show(n.element)},0)),n.create(t),n}return a(t,e),t.prototype.create=function(e){this.element=document.createElement("div"),s.addClass(this.element,"monaco-progress-container"),e.appendChild(this.element),this.bit=document.createElement("div"),s.addClass(this.bit,"progress-bit"),this.element.appendChild(this.bit),this.applyStyles()},t.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",s.removeClasses(this.element,"active","infinite","discrete"),this.workedVal=0,this.totalWork=void 0},t.prototype.done=function(){return this.doDone(!0)},t.prototype.stop=function(){return this.doDone(!1)},t.prototype.doDone=function(e){var t=this;return s.addClass(this.element,"done"),s.hasClass(this.element,"infinite")?(this.bit.style.opacity="0",e?setTimeout(function(){return t.off()},200):this.off()):(this.bit.style.width="inherit",e?setTimeout(function(){return t.off()},200):this.off()),this},t.prototype.infinite=function(){return this.bit.style.width="2%",this.bit.style.opacity="1",s.removeClasses(this.element,"discrete","done"),s.addClasses(this.element,"active","infinite"),this},t.prototype.total=function(e){return this.workedVal=0,this.totalWork=e,this},t.prototype.hasTotal=function(){return!isNaN(this.totalWork)},t.prototype.worked=function(e){return e=Number(e),i.ok(!isNaN(e),"Value is not a number"),e=Math.max(1,e),this.doSetWorked(this.workedVal+e)},t.prototype.setWorked=function(e){return e=Number(e),i.ok(!isNaN(e),"Value is not a number"),e=Math.max(1,e),this.doSetWorked(e)},t.prototype.doSetWorked=function(e){return i.ok(!isNaN(this.totalWork),"Total work not set"),this.workedVal=e,this.workedVal=Math.min(this.totalWork,this.workedVal),s.hasClass(this.element,"infinite")&&s.removeClass(this.element,"infinite"),s.hasClass(this.element,"done")&&s.removeClass(this.element,"done"),s.hasClass(this.element,"active")||s.addClass(this.element,"active"),s.hasClass(this.element,"discrete")||s.addClass(this.element,"discrete"),this.bit.style.width=this.workedVal/this.totalWork*100+"%",this},t.prototype.getContainer=function(){return this.element},t.prototype.show=function(e){this.showDelayedScheduler.cancel(),"number"==typeof e?this.showDelayedScheduler.schedule(e):s.show(this.element)},t.prototype.hide=function(){s.hide(this.element),this.showDelayedScheduler.cancel()},t.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},t.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():null;this.bit.style.backgroundColor=e}},t}(n.Disposable);t.ProgressBar=u}),define(i[946],n([14]),{}),define(i[180],n([0,1,2,68,12,23,104,76,5,7,105,946]),function(e,t,i,n,r,o,s,c,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=!1,p=function(e){function t(t,i,o){void 0===o&&(o={});var a=e.call(this)||this;return a._state=3,a._onDidEnablementChange=a._register(new l.Emitter),a.onDidEnablementChange=a._onDidEnablementChange.event,a._onDidStart=a._register(new l.Emitter),a.onDidStart=a._onDidStart.event,a._onDidChange=a._register(new l.Emitter),a.onDidChange=a._onDidChange.event,a._onDidReset=a._register(new l.Emitter),a.onDidReset=a._onDidReset.event,a._onDidEnd=a._register(new l.Emitter),a.onDidEnd=a._onDidEnd.event,a.linkedSash=void 0,a.orthogonalStartSashDisposables=[],a.orthogonalEndSashDisposables=[],a.el=u.append(t,u.$(".monaco-sash")),r.isMacintosh&&u.addClass(a.el,"mac"),a._register(d.domEvent(a.el,"mousedown")(a.onMouseDown,a)),a._register(d.domEvent(a.el,"dblclick")(a.onMouseDoubleClick,a)),s.Gesture.addTarget(a.el),a._register(d.domEvent(a.el,s.EventType.Start)(a.onTouchStart,a)),n.isIPad&&u.addClass(a.el,"touch"),a.setOrientation(o.orientation||0),a.hidden=!1,a.layoutProvider=i,a.orthogonalStartSash=o.orthogonalStartSash,a.orthogonalEndSash=o.orthogonalEndSash,u.toggleClass(a.el,"debug",h),a}return a(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(u.toggleClass(this.el,"disabled",0===e),u.toggleClass(this.el,"minimum",1===e),u.toggleClass(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){this.orthogonalStartSashDisposables=i.dispose(this.orthogonalStartSashDisposables),e?(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this,this.orthogonalStartSashDisposables),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){this.orthogonalEndSashDisposables=i.dispose(this.orthogonalEndSashDisposables),e?(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this,this.orthogonalEndSashDisposables),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),t.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(u.addClass(this.el,"horizontal"),u.removeClass(this.el,"vertical")):(u.removeClass(this.el,"horizontal"),u.addClass(this.el,"vertical")),this.layoutProvider&&this.layout()},t.prototype.onMouseDown=function(e){var t=this;u.EventHelper.stop(e,!1);var n=!1;if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),!e.__orthogonalSashEvent){var o=void 0;0===this.orientation?e.offsetY<=4?o=this.orthogonalStartSash:e.offsetY>=this.el.clientHeight-4&&(o=this.orthogonalEndSash):e.offsetX<=4?o=this.orthogonalStartSash:e.offsetX>=this.el.clientWidth-4&&(o=this.orthogonalEndSash),o&&(n=!0,e.__orthogonalSashEvent=!0,o.onMouseDown(e))}if(this.state){for(var s=0,a=u.getElementsByTagName("iframe");s0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}();t.MouseWheelClassifier=g;var v=function(e){function t(t,i,r){var a=e.call(this)||this;a._onScroll=a._register(new u.Emitter),a.onScroll=a._onScroll.event,t.style.overflow="hidden",a._options=_(i),a._scrollable=r,a._register(a._scrollable.onScroll(function(e){a._onDidScroll(e),a._onScroll.fire(e)}));var c={onMouseWheel:function(e){return a._onMouseWheel(e)},onDragStart:function(){return a._onDragStart()},onDragEnd:function(){return a._onDragEnd()}};return a._verticalScrollbar=a._register(new s.VerticalScrollbar(a._scrollable,a._options,c)),a._horizontalScrollbar=a._register(new o.HorizontalScrollbar(a._scrollable,a._options,c)),a._domNode=document.createElement("div"),a._domNode.className="monaco-scrollable-element "+a._options.className,a._domNode.setAttribute("role","presentation"),a._domNode.style.position="relative",a._domNode.style.overflow="hidden",a._domNode.appendChild(t),a._domNode.appendChild(a._horizontalScrollbar.domNode.domNode),a._domNode.appendChild(a._verticalScrollbar.domNode.domNode),a._options.useShadows&&(a._leftShadowDomNode=n.createFastDomNode(document.createElement("div")),a._leftShadowDomNode.setClassName("shadow"),a._domNode.appendChild(a._leftShadowDomNode.domNode),a._topShadowDomNode=n.createFastDomNode(document.createElement("div")),a._topShadowDomNode.setClassName("shadow"),a._domNode.appendChild(a._topShadowDomNode.domNode),a._topLeftShadowDomNode=n.createFastDomNode(document.createElement("div")),a._topLeftShadowDomNode.setClassName("shadow top-left-corner"),a._domNode.appendChild(a._topLeftShadowDomNode.domNode)),a._listenOnDomNode=a._options.listenOnDomNode||a._domNode,a._mouseWheelToDispose=[],a._setListeningToMouseWheel(a._options.handleMouseWheel),a.onmouseover(a._listenOnDomNode,function(e){return a._onMouseOver(e)}),a.onnonbubblingmouseout(a._listenOnDomNode,function(e){return a._onMouseOut(e)}),a._hideTimeout=a._register(new l.TimeoutTimer),a._isDragging=!1,a._mouseIsOver=!1,a._shouldRender=!0,a._revealOnScroll=!0,a}return a(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=d.dispose(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,h.isMacintosh&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=_(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=t.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype.setRevealOnScroll=function(e){this._revealOnScroll=e},t.prototype._setListeningToMouseWheel=function(e){var t=this;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=d.dispose(this._mouseWheelToDispose),e)){var n=function(e){t._onMouseWheel(new r.StandardWheelEvent(e))};this._mouseWheelToDispose.push(i.addDisposableListener(this._listenOnDomNode,"mousewheel",n)),this._mouseWheelToDispose.push(i.addDisposableListener(this._listenOnDomNode,"DOMMouseScroll",n))}},t.prototype._onMouseWheel=function(e){var t,i=g.INSTANCE;if(i.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var n=e.deltaY*this._options.mouseWheelScrollSensitivity,r=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(n=(t=[r,n])[0],r=t[1]);var o=!h.isMacintosh&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||r||(r=n,n=0),e.browserEvent&&e.browserEvent.altKey&&(r*=this._options.fastScrollSensitivity,n*=this._options.fastScrollSensitivity);var s=this._scrollable.getFutureScrollPosition(),a={};if(n){var c=s.scrollTop-50*n;this._verticalScrollbar.writeScrollPosition(a,c)}if(r){var l=s.scrollLeft-50*r;this._horizontalScrollbar.writeScrollPosition(a,l)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop)this._options.mouseWheelSmoothScroll&&i.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),this._shouldRender=!0}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,i=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(i?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(i?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide()},500)},t}(c.Widget);t.AbstractScrollableElement=v;var m=function(e){function t(t,n){var r=this;(n=n||{}).mouseWheelSmoothScroll=!1;var o=new p.Scrollable(0,function(e){return i.scheduleAtNextAnimationFrame(e)});return(r=e.call(this,t,n,o)||this)._register(o),r}return a(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(v);t.ScrollableElement=m;var y=function(e){function t(t,i,n){return e.call(this,t,i,n)||this}return a(t,e),t}(v);t.SmoothScrollableElement=y;var b=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._element=t,n.onScroll(function(e){e.scrollTopChanged&&(n._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(n._element.scrollLeft=e.scrollLeft)}),n.scanDomNode(),n}return a(t,e),t.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},t}(m);function _(e){var t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,h.isMacintosh&&(t.className+=" mac"),t}t.DomScrollableElement=b}),define(i[958],n([0,1,7,106,17,5,2,834]),function(e,t,i,n,r,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(){}return e.prototype.dispose=function(){},e}();t.BreadcrumbsItem=c;var l=function(e){function t(t,i){void 0===i&&(i=t);var n=e.call(this)||this;return n.text=t,n.title=i,n}return a(t,e),t.prototype.equals=function(e){return e===this||e instanceof t&&e.text===this.text&&e.title===this.title},t.prototype.render=function(e){var t=document.createElement("div");t.title=this.title,t.innerText=this.text,e.appendChild(t)},t}(c);t.SimpleBreadcrumbsItem=l;var u=function(){function e(e){var t=this;this._disposables=new Array,this._onDidSelectItem=new o.Emitter,this._onDidFocusItem=new o.Emitter,this._onDidChangeFocus=new o.Emitter,this.onDidSelectItem=this._onDidSelectItem.event,this.onDidFocusItem=this._onDidFocusItem.event,this.onDidChangeFocus=this._onDidChangeFocus.event,this._items=new Array,this._nodes=new Array,this._freeNodes=new Array,this._focusedItemIdx=-1,this._selectedItemIdx=-1,this._domNode=document.createElement("div"),this._domNode.className="monaco-breadcrumbs",this._domNode.tabIndex=0,this._domNode.setAttribute("role","list"),this._scrollable=new n.DomScrollableElement(this._domNode,{vertical:2,horizontal:1,horizontalScrollbarSize:3,useShadows:!1,scrollYToX:!0}),this._disposables.push(this._scrollable),this._disposables.push(i.addStandardDisposableListener(this._domNode,"click",function(e){return t._onClick(e)})),e.appendChild(this._scrollable.getDomNode()),this._styleElement=i.createStyleSheet(this._domNode);var r=i.trackFocus(this._domNode);this._disposables.push(r),this._disposables.push(r.onDidBlur(function(e){return t._onDidChangeFocus.fire(!1)})),this._disposables.push(r.onDidFocus(function(e){return t._onDidChangeFocus.fire(!0)}))}return e.prototype.dispose=function(){s.dispose(this._disposables),s.dispose(this._pendingLayout),this._onDidSelectItem.dispose(),this._onDidFocusItem.dispose(),this._onDidChangeFocus.dispose(),this._domNode.remove(),this._disposables.length=0,this._nodes.length=0,this._freeNodes.length=0},e.prototype.layout=function(e){e&&i.Dimension.equals(e,this._dimension)||(this._pendingLayout&&this._pendingLayout.dispose(),this._pendingLayout=e?this._updateDimensions(e):this._updateScrollbar())},e.prototype._updateDimensions=function(e){var t=this,n=[];return n.push(i.modify(function(){t._dimension=e,t._domNode.style.width=e.width+"px",t._domNode.style.height=e.height+"px",n.push(t._updateScrollbar())})),s.combinedDisposable(n)},e.prototype._updateScrollbar=function(){var e=this;return i.measure(function(){i.measure(function(){e._scrollable.setRevealOnScroll(!1),e._scrollable.scanDomNode(),e._scrollable.setRevealOnScroll(!0)})})},e.prototype.style=function(e){var t="";e.breadcrumbsBackground&&(t+=".monaco-breadcrumbs { background-color: "+e.breadcrumbsBackground+"}"),e.breadcrumbsForeground&&(t+=".monaco-breadcrumbs .monaco-breadcrumb-item { color: "+e.breadcrumbsForeground+"}\n"),e.breadcrumbsFocusForeground&&(t+=".monaco-breadcrumbs .monaco-breadcrumb-item.focused { color: "+e.breadcrumbsFocusForeground+"}\n"),e.breadcrumbsFocusAndSelectionForeground&&(t+=".monaco-breadcrumbs .monaco-breadcrumb-item.focused.selected { color: "+e.breadcrumbsFocusAndSelectionForeground+"}\n"),e.breadcrumbsHoverForeground&&(t+=".monaco-breadcrumbs .monaco-breadcrumb-item:hover:not(.focused):not(.selected) { color: "+e.breadcrumbsHoverForeground+"}\n"),this._styleElement.innerHTML!==t&&(this._styleElement.innerHTML=t)},e.prototype.domFocus=function(){var e=this._focusedItemIdx>=0?this._focusedItemIdx:this._items.length-1;e>=0&&e0&&this._focus(this._focusedItemIdx-1,e)},e.prototype.focusNext=function(e){this._focusedItemIdx+1=0&&this._reveal(t,!1)},e.prototype._reveal=function(e,t){var i=this._nodes[e];if(i){var n=this._scrollable.getScrollDimensions().width,r=this._scrollable.getScrollPosition().scrollLeft;(!t||i.offsetLeft>r+n||i.offsetLeft0?this._freeNodes.pop():document.createElement("div"))&&(this._renderItem(t,i),this._domNode.appendChild(i),this._nodes.push(i))}this.layout(void 0)},e.prototype._renderItem=function(e,t){i.clearNode(t),t.className="",e.render(t),t.tabIndex=-1,t.setAttribute("role","listitem"),i.addClass(t,"monaco-breadcrumb-item")},e.prototype._onClick=function(e){for(var t=e.target;t;t=t.parentElement){var i=this._nodes.indexOf(t);if(i>=0){this._focus(i,e),this._select(i,e);break}}},e}();t.BreadcrumbsWidget=u}),define(i[177],n([0,1,25,2,104,7,5,105,106,855,897,12,68,107,311,17,134,13]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,f,g,v,m,y){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var b={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements:function(e){return[e]},getDragURI:function(){return null},onDragStart:function(){},onDragOver:function(){return!1},drop:function(){}},horizontalScrolling:!1},_=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}();t.ElementsDragAndDropData=_;var S=function(){function e(e){this.elements=e}return e.prototype.update=function(){},e.prototype.getData=function(){return this.elements},e}();t.ExternalElementsDragAndDropData=S;var C=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){var t;if(e.types&&(t=this.types).splice.apply(t,[0,this.types.length].concat(e.types)),e.files){this.files.splice(0,this.files.length);for(var i=0;i=this.items.length?(this.rangeMap=new l.RangeMap,this.rangeMap.splice(0,0,v),this.items=v,d=[]):(this.rangeMap.splice(e,t,v),d=(r=this.items).splice.apply(r,[e,t].concat(v)));var m=i.length-t,y=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),b=l.shift(p,m),_=g.Range.intersect(y,b);for(u=_.start;u<_.end;u++)this.updateItemInDOM(this.items[u],u);for(var S=0,C=g.Range.relativeComplement(b,y);Sthis.scrollWidth&&(this.scrollWidth=t.width,this.scrollableElement.setScrollDimensions({scrollWidth:this.scrollWidth+10}))}},e.prototype.rerender=function(){if(this.supportDynamicHeights){for(var e=0,t=this.items;e=-1&&ei&&(this.scrollTop+=Math.min(14,Math.floor(.3*(t-i))))}},e.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},e.prototype.getItemIndexFromEventTarget=function(e){for(var t=e;t instanceof HTMLElement&&t!==this.rowsContainer;){var i=t.getAttribute("data-index");if(i){var n=Number(i);if(!isNaN(n))return n}t=t.parentElement}},e.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},e.prototype._rerender=function(e,t){var i,n,r=this.getRenderRange(e,t);e===this.elementTop(r.start)?(i=r.start,n=0):r.end-r.start>1&&(i=r.start+1,n=this.elementTop(i)-e);for(var o=0;;){for(var s=this.getRenderRange(e,t),a=!1,c=s.start;c1){var y=0===this.orientation?1:0,b=0===this.orientation?{getHorizontalSashTop:function(e){return s.getSashPosition(e)}}:{getVerticalSashLeft:function(e){return s.getSashPosition(e)}},_=new l.Sash(this.sashContainer,b,{orientation:y,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),S=0===this.orientation?function(e){return{sash:_,start:e.startY,current:e.currentY,alt:e.altKey}}:function(e){return{sash:_,start:e.startX,current:e.currentX,alt:e.altKey}},C=n.Event.map(_.onDidStart,S)(this.onSashStart,this),w=n.Event.map(_.onDidChange,S)(this.onSashChange,this),E=n.Event.map(_.onDidEnd,function(){return c.firstIndex(s.sashItems,function(e){return e.sash===_})})(this.onSashEnd,this),I=_.onDidReset(function(){return s._onDidSashReset.fire(c.firstIndex(s.sashItems,function(e){return e.sash===_}))}),x=i.combinedDisposable([C,w,E,I,_]),D={sash:_,disposable:x};this.sashItems.splice(r-1,0,D)}a.appendChild(e.element),"number"!=typeof t&&"split"===t.type&&(v=t.index),this.relayout(r,v),this.state=h.Idle,"number"!=typeof t&&"distribute"===t.type&&this.distributeViewSizes()},t.prototype.removeView=function(e,t){if(this.state!==h.Idle)throw new Error("Cant modify splitview");if(this.state=h.Busy,e<0||e>=this.viewItems.length)throw new Error("Index out of bounds");var i=this.viewItems.splice(e,1)[0];if(i.disposable.dispose(),this.viewItems.length>=1){var n=Math.max(e-1,0);this.sashItems.splice(n,1)[0].disposable.dispose()}return this.relayout(),this.state=h.Idle,t&&"distribute"===t.type&&this.distributeViewSizes(),i.view},t.prototype.moveView=function(e,t){if(this.state!==h.Idle)throw new Error("Cant modify splitview");var i=this.getViewSize(e),n=this.removeView(e);this.addView(n,i,t)},t.prototype.swapViews=function(e,t){if(this.state!==h.Idle)throw new Error("Cant modify splitview");if(e>t)return this.swapViews(t,e);var i=this.getViewSize(e),n=this.getViewSize(t),r=this.removeView(t),o=this.removeView(e);this.addView(r,i,e),this.addView(o,n,t)},t.prototype.relayout=function(e,t){var i=this.viewItems.reduce(function(e,t){return e+t.size},0),n="number"==typeof e?[e]:void 0,r="number"==typeof t?[t]:void 0;this.resize(this.viewItems.length-1,this.size-i,void 0,n,r),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},t.prototype.layout=function(e){var t=this,i=Math.max(this.size,this.contentSize);if(this.size=e,this.proportions)for(var n=0;n0&&(this.proportions=this.viewItems.map(function(t){return t.size/e.contentSize}))},t.prototype.onSashStart=function(e){var t=this,n=e.sash,r=e.start,o=e.alt,s=c.firstIndex(this.sashItems,function(e){return e.sash===n}),a=i.combinedDisposable([d.domEvent(document.body,"keydown")(function(e){return l(t.sashDragState.current,e.altKey)}),d.domEvent(document.body,"keyup")(function(){return l(t.sashDragState.current,!1)})]),l=function(e,i){var n,r=t.viewItems.map(function(e){return e.size}),o=Number.NEGATIVE_INFINITY,c=Number.POSITIVE_INFINITY;(t.inverseAltBehavior&&(i=!i),i)&&(s===t.sashItems.length-1?(o=((n=t.viewItems[s]).view.minimumSize-n.size)/2,c=(n.view.maximumSize-n.size)/2):(o=((n=t.viewItems[s+1]).size-n.view.maximumSize)/2,c=(n.size-n.view.minimumSize)/2));t.sashDragState={start:e,current:e,index:s,sizes:r,minDelta:o,maxDelta:c,alt:i,disposable:a}};l(r,o)},t.prototype.onSashChange=function(e){var t=e.current,i=this.sashDragState,n=i.index,r=i.start,o=i.sizes,s=i.alt,a=i.minDelta,c=i.maxDelta;this.sashDragState.current=t;var l=t-r,u=this.resize(n,l,o,void 0,void 0,a,c);if(s){var d=n===this.sashItems.length-1,h=this.viewItems.map(function(e){return e.size}),p=d?n:n+1,f=this.viewItems[p],g=f.size-f.view.maximumSize,v=f.size-f.view.minimumSize,m=d?n-1:n+1;this.resize(m,-u,h,void 0,void 0,g,v)}this.distributeEmptySpace(),this.layoutViews()},t.prototype.onSashEnd=function(e){this._onDidSashChange.fire(e),this.sashDragState.disposable.dispose(),this.saveProportions()},t.prototype.onViewChange=function(e,t){var i=this.viewItems.indexOf(e);i<0||i>=this.viewItems.length||(t="number"==typeof t?t:e.size,t=s.clamp(t,e.view.minimumSize,e.view.maximumSize),this.inverseAltBehavior&&i>0?(this.resize(i-1,Math.floor((e.size-t)/2)),this.distributeEmptySpace(),this.layoutViews()):(e.size=t,this.relayout(i,void 0)))},t.prototype.resizeView=function(e,t){var i=this;if(this.state!==h.Idle)throw new Error("Cant modify splitview");if(this.state=h.Busy,!(e<0||e>=this.viewItems.length)){var n=this.viewItems[e];t=Math.round(t);var r=(t=s.clamp(t,n.view.minimumSize,n.view.maximumSize))-n.size;if(0!==r&&e0){var d=c.range(e-1,-1),p=d.reduce(function(e,t){return e+(i.viewItems[t].size-i.viewItems[t].view.minimumSize)},0),f=d.reduce(function(e,t){return e+(i.viewItems[t].view.maximumSize-i.viewItems[t].size)},0),g=s.clamp(-r,-p,f);this.resize(e-1,g)}this.distributeEmptySpace(),this.layoutViews(),this.saveProportions(),this.state=h.Idle}},t.prototype.distributeViewSizes=function(){for(var e=Math.floor(this.size/this.viewItems.length),t=0;t=this.viewItems.length?-1:this.viewItems[e].size},t.prototype.resize=function(e,t,i,n,r,o,a){var l=this;if(void 0===i&&(i=this.viewItems.map(function(e){return e.size})),void 0===o&&(o=Number.NEGATIVE_INFINITY),void 0===a&&(a=Number.POSITIVE_INFINITY),e<0||e>=this.viewItems.length)return 0;var u=c.range(e,-1),d=c.range(e+1,this.viewItems.length);if(r)for(var h=0,p=r;h=0;i--){var n=this.viewItems[i],r=s.clamp(n.size+t,n.view.minimumSize,n.view.maximumSize);t-=r-n.size,n.size=r}},t.prototype.layoutViews=function(){this.contentSize=this.viewItems.reduce(function(e,t){return e+t.size},0),this.viewItems.forEach(function(e){return e.layout()}),this.sashItems.forEach(function(e){return e.sash.layout()});var e=!1,t=this.viewItems.map(function(t){return e=t.size-t.view.minimumSize>0||e});e=!1;var i=this.viewItems.map(function(t){return e=t.view.maximumSize-t.size>0||e}),n=this.viewItems.slice().reverse();e=!1;var r=n.map(function(t){return e=t.size-t.view.minimumSize>0||e}).reverse();e=!1;var o=n.map(function(t){return e=t.view.maximumSize-t.size>0||e}).reverse();this.sashItems.forEach(function(e,n){var s=!(t[n]&&o[n+1]),a=!(i[n]&&r[n+1]);e.sash.state=s&&a?0:s&&!a?1:!s&&a?2:3})},t.prototype.getSashPosition=function(e){for(var t=0,i=0;ithis.children.length)throw new Error("Invalid index");this.splitview.addView(e,t,i),this._addChild(e,i),this.onDidChildrenChange()},e.prototype._addChild=function(e,t){var i=0===t,n=t===this.children.length;this.children.splice(t,0,e),e.orthogonalStartSash=this.splitview.sashes[t-1],e.orthogonalEndSash=this.splitview.sashes[t],i||(this.children[t-1].orthogonalEndSash=this.splitview.sashes[t-1]),n||(this.children[t+1].orthogonalStartSash=this.splitview.sashes[t])},e.prototype.removeChild=function(e,t){if(e<0||e>=this.children.length)throw new Error("Invalid index");this.splitview.removeView(e,t),this._removeChild(e),this.onDidChildrenChange()},e.prototype._removeChild=function(e){var t=0===e,i=e===this.children.length-1,n=this.children.splice(e,1)[0];return t||(this.children[e-1].orthogonalEndSash=this.splitview.sashes[e-1]),i||(this.children[e].orthogonalStartSash=this.splitview.sashes[Math.max(e-1,0)]),n},e.prototype.moveChild=function(e,t){if(e!==t){if(e<0||e>=this.children.length)throw new Error("Invalid from index");if(t<0||t>this.children.length)throw new Error("Invalid to index");e=this.children.length)throw new Error("Invalid from index");if(t<0||t>=this.children.length)throw new Error("Invalid to index");this.splitview.swapViews(e,t),i=[this.children[t].orthogonalStartSash,this.children[t].orthogonalEndSash,this.children[e].orthogonalStartSash,this.children[e].orthogonalEndSash],this.children[e].orthogonalStartSash=i[0],this.children[e].orthogonalEndSash=i[1],this.children[t].orthogonalStartSash=i[2],this.children[t].orthogonalEndSash=i[3],n=[this.children[t],this.children[e]],this.children[e]=n[0],this.children[t]=n[1]}},e.prototype.resizeChild=function(e,t){if(e<0||e>=this.children.length)throw new Error("Invalid index");this.splitview.resizeView(e,t)},e.prototype.distributeViewSizes=function(t){if(void 0===t&&(t=!1),this.splitview.distributeViewSizes(),t)for(var i=0,n=this.children;i=this.children.length)throw new Error("Invalid index");return this.splitview.getViewSize(e)},e.prototype.onDidChildrenChange=function(){var e=i.Event.map(i.Event.any.apply(i.Event,this.children.map(function(e){return e.onDidChange})),function(){});this.childrenChangeDisposable.dispose(),this.childrenChangeDisposable=e(this._onDidChange.fire,this._onDidChange);var t=i.Event.any.apply(i.Event,this.children.map(function(e,t){return i.Event.map(e.onDidSashReset,function(e){return[t].concat(e)})}));this.childrenSashResetDisposable.dispose(),this.childrenSashResetDisposable=t(this._onDidSashReset.fire,this._onDidSashReset),this._onDidChange.fire(void 0)},e.prototype.trySet2x2=function(e){if(2!==this.children.length||2!==e.children.length)return r.Disposable.None;if(this.getChildSize(0)!==e.getChildSize(0))return r.Disposable.None;var t=this.children,i=t[0],n=t[1],o=e.children,s=o[0],a=o[1];if(!(i instanceof h&&n instanceof h))return r.Disposable.None;if(!(s instanceof h&&a instanceof h))return r.Disposable.None;0===this.orientation?(n.linkedWidthNode=s.linkedHeightNode=i,i.linkedWidthNode=a.linkedHeightNode=n,a.linkedWidthNode=i.linkedHeightNode=s,s.linkedWidthNode=n.linkedHeightNode=a):(s.linkedWidthNode=n.linkedHeightNode=i,a.linkedWidthNode=i.linkedHeightNode=n,i.linkedWidthNode=a.linkedHeightNode=s,n.linkedWidthNode=s.linkedHeightNode=a);var c=this.splitview.sashes[0],l=e.splitview.sashes[0];return c.linkedSash=l,l.linkedSash=c,this._onDidChange.fire(void 0),e._onDidChange.fire(void 0),r.toDisposable(function(){c.linkedSash=l.linkedSash=void 0,i.linkedHeightNode=i.linkedWidthNode=void 0,n.linkedHeightNode=n.linkedWidthNode=void 0,s.linkedHeightNode=s.linkedWidthNode=void 0,a.linkedHeightNode=a.linkedWidthNode=void 0})},e.prototype.dispose=function(){for(var e=0,t=this.children;e=0;s--){var a=t.children[s],c=a instanceof d?a.orthogonalSize:a.size,u=0===t.size?0:Math.round(i*c/t.size);o+=u,0===s&&(u+=i-o),r.addChild(e(a,n,u),u,0)}return r}return new h(t.view,l(t.orientation),n)}(this._root,n,i),this.root.layout(i),this.root.orthogonalLayout(n)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.root.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.root.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimumWidth",{get:function(){return this.root.minimumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimumHeight",{get:function(){return this.root.minimumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumWidth",{get:function(){return this.root.maximumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumHeight",{get:function(){return this.root.maximumHeight},enumerable:!0,configurable:!0}),e.prototype.style=function(e){this.styles=e,this.root.style(e)},e.prototype.layout=function(e,t){var i=1===this.root.orientation?[t,e]:[e,t],n=i[0],r=i[1];this.root.layout(n),this.root.orthogonalLayout(r)},e.prototype.addView=function(e,t,i){this.disposable2x2.dispose(),this.disposable2x2=r.Disposable.None;var o=s.tail2(i),a=o[0],c=o[1],u=this.getNode(a),p=u[0],f=u[1];if(f instanceof d){var g=new h(e,l(f.orientation),f.orthogonalSize);f.addChild(g,t,c)}else{var v=s.tail2(p)[1],m=s.tail2(a)[1];v.removeChild(m);var y=new d(f.orientation,this.styles,this.proportionalLayout,f.size,f.orthogonalSize);v.addChild(y,f.size,m),y.orthogonalLayout(f.orthogonalSize);var b=new h(f.view,v.orientation,f.size);y.addChild(b,0,0),"number"!=typeof t&&"split"===t.type&&(t=n.Sizing.Split(0));g=new h(e,v.orientation,f.size);y.addChild(g,t,c)}},e.prototype.removeView=function(e,t){this.disposable2x2.dispose(),this.disposable2x2=r.Disposable.None;var i=s.tail2(e),n=i[0],o=i[1],a=this.getNode(n),c=a[0],u=a[1];if(!(u instanceof d))throw new Error("Invalid location");var p=u.children[o];if(!(p instanceof h))throw new Error("Invalid location");if(u.removeChild(o,t),0===u.children.length)throw new Error("Invalid grid state");if(u.children.length>1)return p.view;if(0===c.length){var f=u.children[0];return f instanceof h?p.view:(u.removeChild(0),this.root=f,p.view)}var g=s.tail2(c)[1],v=s.tail2(n)[1],m=u.children[0];u.removeChild(0);var y=g.children.map(function(e,t){return g.getChildSize(t)});if(g.removeChild(v,t),m instanceof d){y.splice.apply(y,[v,1].concat(m.children.map(function(e){return e.size})));for(var b=0;b=t.children.length)throw new Error("Invalid location");var o=t.children[n];return i.push(t),this.getNode(r,o,i)},e.prototype.trySet2x2=function(){if(this.disposable2x2.dispose(),this.disposable2x2=r.Disposable.None,2===this.root.children.length){var e=this.root.children,t=e[0],i=e[1];t instanceof d&&i instanceof d&&(this.disposable2x2=t.trySet2x2(i))}},e.prototype.dispose=function(){this.onDidSashResetRelay.dispose(),this.root.dispose(),this.element&&this.element.parentElement&&this.element.parentElement.removeChild(this.element)},e}();t.GridView=p}),define(i[992],n([0,1,2,17,408,5,7,355]),function(e,t,i,n,r,o,s){"use strict";function c(e){return!!e.children}function l(e,t){var i=d(t);return{offset:0===t?e.top:3===t?e.left+e.width:1===t?e.top+e.height:e.left,range:{start:1===i?e.top:e.left,end:1===i?e.top+e.height:e.left+e.width}}}function u(e,t){return t.length%2==0?r.orthogonal(e):e}function d(e){return 0===e||1===e?0:1}function h(e,t){return 1===t?e.width:e.height}function p(e,t,i){if(u(e,t)===d(i)){var r=n.tail2(t),o=r[0],s=r[1];return 3!==i&&1!==i||(s+=1),o.concat([s])}s=3===i||1===i?1:0;return t.concat([s])}function f(e){var t=e.parentElement;if(!t)throw new Error("Invalid grid element");if(/\bmonaco-grid-view\b/.test(t.className))return[];var i=function(e){var t=e.parentElement;if(!t)throw new Error("Invalid grid element");for(var i=t.firstElementChild,n=0;i!==e&&i!==t.lastElementChild&&i;)i=i.nextElementSibling,n++;return n}(t);return f(t.parentElement.parentElement.parentElement).concat([i])}Object.defineProperty(t,"__esModule",{value:!0}),t.isGridBranchNode=c,t.getRelativeLocation=p;var g=function(){function e(e,t){void 0===t&&(t={}),this.views=new Map,this.disposables=[],this.sashResetSizing="distribute",this.gridview=new r.GridView(t),this.disposables.push(this.gridview),this.gridview.onDidSashReset(this.doResetViewSize,this,this.disposables),this._addView(e,0,[0])}return Object.defineProperty(e.prototype,"orientation",{get:function(){return this.gridview.orientation},set:function(e){this.gridview.orientation=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.gridview.width},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.gridview.height},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimumWidth",{get:function(){return this.gridview.minimumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimumHeight",{get:function(){return this.gridview.minimumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumWidth",{get:function(){return this.gridview.maximumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumHeight",{get:function(){return this.gridview.maximumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this.gridview.onDidChange},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.gridview.element},enumerable:!0,configurable:!0}),e.prototype.style=function(e){this.gridview.style(e)},e.prototype.layout=function(e,t){this.gridview.layout(e,t)},e.prototype.hasView=function(e){return this.views.has(e)},e.prototype.addView=function(e,t,i,o){if(this.views.has(e))throw new Error("Can't add same view twice");var s=d(o);1===this.views.size&&this.orientation!==s&&(this.orientation=s);var a,c=this.getViewLocation(i),l=p(this.gridview.orientation,c,o);if("split"===t){var u=n.tail2(c)[1];a=r.Sizing.Split(u)}else a="distribute"===t?r.Sizing.Distribute:t;this._addView(e,a,l)},e.prototype._addView=function(e,t,i){this.views.set(e,e.element),this.gridview.addView(e,t,i)},e.prototype.removeView=function(e,t){if(1===this.views.size)throw new Error("Can't remove last view");var i=this.getViewLocation(e);this.gridview.removeView(i,"distribute"===t?r.Sizing.Distribute:void 0),this.views.delete(e)},e.prototype.moveView=function(e,t,i,r){var o=this.getViewLocation(e),s=n.tail2(o),a=s[0],c=s[1],l=this.getViewLocation(i),u=p(this.gridview.orientation,l,r),d=n.tail2(u),h=d[0],f=d[1];n.equals(a,h)?this.gridview.moveView(a,c,f):(this.removeView(e,"number"==typeof t?void 0:t),this.addView(e,t,i,r))},e.prototype.swapViews=function(e,t){var i=this.getViewLocation(e),n=this.getViewLocation(t);return this.gridview.swapViews(i,n)},e.prototype.resizeView=function(e,t){var i=this.getViewLocation(e);return this.gridview.resizeView(i,t)},e.prototype.getViewSize=function(e){var t=this.getViewLocation(e),i=this.gridview.getViewSize(t);return 1===u(this.orientation,t)?i.width:i.height},e.prototype.getViewSize2=function(e){var t=this.getViewLocation(e);return this.gridview.getViewSize(t)},e.prototype.maximizeViewSize=function(e){var t=this.getViewLocation(e);this.gridview.maximizeViewSize(t)},e.prototype.distributeViewSizes=function(){this.gridview.distributeViewSizes()},e.prototype.getViews=function(){return this.gridview.getViews()},e.prototype.getNeighborViews=function(e,t,i){void 0===i&&(i=!1);var n=this.getViewLocation(e),r=this.getViews(),o=function e(t,i){if(0===i.length)return t;if(!c(t))throw new Error("Invalid location");var n=i[0],r=i.slice(1);return e(t.children[n],r)}(r,n),s=l(o.box,t);return i&&(0===t&&0===o.box.top?s={offset:r.box.top+r.box.height,range:s.range}:3===t&&o.box.left+o.box.width===r.box.width?s={offset:0,range:s.range}:1===t&&o.box.top+o.box.height===r.box.height?s={offset:0,range:s.range}:2===t&&0===o.box.left&&(s={offset:r.box.left+r.box.width,range:s.range})),function(e,t,i){var n=[];return function e(t,i,r){if(c(t))for(var o=0,s=t.children;o=p.end||p.start>=h.end)||n.push(t)}var h,p}(e,t,i),n}(r,function(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 3;case 3:return 2}}(t),s).map(function(e){return e.view})},e.prototype.getViewLocation=function(e){var t=this.views.get(e);if(!t)throw new Error("View not found");return f(t)},e.prototype.doResetViewSize=function(e){if("split"===this.sashResetSizing){var t=u(this.orientation,e),i=h(this.gridview.getViewSize(e),t),r=n.tail2(e),o=r[0],s=r[1],a=i+h(this.gridview.getViewSize(o.concat([s+1])),t);this.gridview.resizeView(e,Math.floor(a/2))}else{o=n.tail2(e)[0];this.gridview.distributeViewSizes(o)}},e.prototype.dispose=function(){this.disposables=i.dispose(this.disposables)},e}();t.Grid=g;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.serializeNode=function(e,i){var n=0===i?e.box.width:e.box.height;return c(e)?{type:"branch",data:e.children.map(function(e){return t.serializeNode(e,r.orthogonal(i))}),size:n}:{type:"leaf",data:e.view.toJSON(),size:n}},t.deserializeNode=function(e,i,n,o){if(!e||"object"!=typeof e)throw new Error("Invalid JSON");if("branch"===e.type){if(!Array.isArray(e.data))throw new Error("Invalid JSON: 'data' property of branch must be an array.");for(var s=[],a=0,c=0,l=e.data;c0?t:1)/(e.groups.length-i),s=0,a=e.groups;s0&&(e=(this.panel.dropBackground||t.DefaultDragOverBackgroundColor).toString()),this.panel.dropTargetElement.style.backgroundColor=e},t.DefaultDragOverBackgroundColor=new l.Color(new l.RGBA(128,128,128,.5)),t}(i.Disposable),p=function(){function e(){}return e.prototype.canDrag=function(e){return!0},e.prototype.canDrop=function(e,t){return!0},e}();t.DefaultPanelDndController=p;var f=function(e){function t(t,i){void 0===i&&(i={});var r=e.call(this)||this;return r.dndContext={draggable:null},r.panelItems=[],r.animationTimer=void 0,r._onDidDrop=r._register(new n.Emitter),r.onDidDrop=r._onDidDrop.event,r.dnd=i.dnd,r.el=s.append(t,s.$(".monaco-panel-view")),r.splitview=r._register(new u.SplitView(r.el)),r.onDidSashChange=r.splitview.onDidSashChange,r}return a(t,e),t.prototype.addPanel=function(e,t,r){void 0===r&&(r=this.splitview.length);var o=[],a=!1;o.push(s.scheduleAtNextAnimationFrame(function(){return a=!0})),n.Event.filter(e.onDidChange,function(){return a})(this.setupAnimation,this,o);var c={panel:e,disposable:i.combinedDisposable(o)};if(this.panelItems.splice(r,0,c),e.width=this.width,this.splitview.addView(e,t,r),this.dnd){var l=new h(e,this.dnd,this.dndContext);o.push(l),l.onDidDrop(this._onDidDrop.fire,this._onDidDrop,o)}},t.prototype.removePanel=function(e){var t=c.firstIndex(this.panelItems,function(t){return t.panel===e});-1!==t&&(this.splitview.removeView(t),this.panelItems.splice(t,1)[0].disposable.dispose())},t.prototype.movePanel=function(e,t){var i=c.firstIndex(this.panelItems,function(t){return t.panel===e}),n=c.firstIndex(this.panelItems,function(e){return e.panel===t});if(-1!==i&&-1!==n){var r=this.panelItems.splice(i,1)[0];this.panelItems.splice(n,0,r),this.splitview.moveView(i,n)}},t.prototype.resizePanel=function(e,t){var i=c.firstIndex(this.panelItems,function(t){return t.panel===e});-1!==i&&this.splitview.resizeView(i,t)},t.prototype.getPanelSize=function(e){var t=c.firstIndex(this.panelItems,function(t){return t.panel===e});return-1===t?-1:this.splitview.getViewSize(t)},t.prototype.layout=function(e,t){this.width=t;for(var i=0,n=this.panelItems;i0){i=r[0].getStartPosition();var o=t.getTopForPosition(i.lineNumber,i.column);n=t.getScrollTop()-o}}return new e(i,n)},e.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},e}();t.StableEditorScrollState=r}),define(i[306],n([0,1,7,161,76,2]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toClientCoordinates=function(){return new c(this.x-i.StandardWindow.scrollX,this.y-i.StandardWindow.scrollY)},e}();t.PageCoordinates=s;var c=function(){function e(e,t){this.clientX=e,this.clientY=t}return e.prototype.toPageCoordinates=function(){return new s(this.clientX+i.StandardWindow.scrollX,this.clientY+i.StandardWindow.scrollY)},e}();t.ClientCoordinates=c;var l=function(){return function(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n}}();function u(e){var t=i.getDomNodePagePosition(e);return new l(t.left,t.top,t.width,t.height)}t.EditorPagePosition=l,t.createEditorPagePosition=u;var d=function(e){function t(t,i){var n=e.call(this,t)||this;return n.pos=new s(n.posx,n.posy),n.editorPos=u(i),n}return a(t,e),t}(r.StandardMouseEvent);t.EditorMouseEvent=d;var h=function(){function e(e){this._editorViewDomNode=e}return e.prototype._create=function(e){return new d(e,this._editorViewDomNode)},e.prototype.onContextMenu=function(e,t){var n=this;return i.addDisposableListener(e,"contextmenu",function(e){t(n._create(e))})},e.prototype.onMouseUp=function(e,t){var n=this;return i.addDisposableListener(e,"mouseup",function(e){t(n._create(e))})},e.prototype.onMouseDown=function(e,t){var n=this;return i.addDisposableListener(e,"mousedown",function(e){t(n._create(e))})},e.prototype.onMouseLeave=function(e,t){var n=this;return i.addDisposableNonBubblingMouseOutListener(e,function(e){t(n._create(e))})},e.prototype.onMouseMoveThrottled=function(e,t,n,r){var o=this;return i.addDisposableThrottledListener(e,"mousemove",t,function(e,t){return n(e,o._create(t))},r)},e}();t.EditorMouseEventFactory=h;var p=function(e){function t(t){var i=e.call(this)||this;return i._editorViewDomNode=t,i._globalMouseMoveMonitor=i._register(new n.GlobalMouseMoveMonitor),i._keydownListener=null,i}return a(t,e),t.prototype.startMonitoring=function(e,t,n){var r=this;this._keydownListener=i.addStandardDisposableListener(document,"keydown",function(e){e.toKeybinding().isModifierKey()||r._globalMouseMoveMonitor.stopMonitoring(!0)},!0);this._globalMouseMoveMonitor.startMonitoring(function(t,i){return e(t,new d(i,r._editorViewDomNode))},t,function(){r._keydownListener.dispose(),n()})},t}(o.Disposable);t.GlobalEditorMouseMoveMonitor=p}),define(i[753],n([0,1,5,2]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(){var t=e.call(this)||this;return t._onCodeEditorAdd=t._register(new i.Emitter),t.onCodeEditorAdd=t._onCodeEditorAdd.event,t._onCodeEditorRemove=t._register(new i.Emitter),t.onCodeEditorRemove=t._onCodeEditorRemove.event,t._onDiffEditorAdd=t._register(new i.Emitter),t.onDiffEditorAdd=t._onDiffEditorAdd.event,t._onDiffEditorRemove=t._register(new i.Emitter),t.onDiffEditorRemove=t._onDiffEditorRemove.event,t._onDidChangeTransientModelProperty=t._register(new i.Emitter),t.onDidChangeTransientModelProperty=t._onDidChangeTransientModelProperty.event,t._transientWatchers={},t._codeEditors=Object.create(null),t._diffEditors=Object.create(null),t}return a(t,e),t.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)},t.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},t.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map(function(t){return e._codeEditors[t]})},t.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e,this._onDiffEditorAdd.fire(e)},t.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)},t.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map(function(t){return e._diffEditors[t]})},t.prototype.getFocusedCodeEditor=function(){for(var e=null,t=0,i=this.listCodeEditors();ti||e===i&&t>n?(this.startLineNumber=i,this.startColumn=n,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=i,this.endColumn=n)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,i){var n,r,o,s;return i.startLineNumbert.endLineNumber?(o=i.endLineNumber,s=i.endColumn):i.endLineNumber===t.endLineNumber?(o=i.endLineNumber,s=Math.max(i.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(n,r,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,i){var n=t.startLineNumber,r=t.startColumn,o=t.endLineNumber,s=t.endColumn,a=i.startLineNumber,c=i.startColumn,l=i.endLineNumber,u=i.endColumn;return nl?(o=l,s=u):o===l&&(s=Math.min(s,u)),n>o?null:n===o&&r>s?null:new e(n,r,o,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new i.Position(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new i.Position(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,i){return new e(this.startLineNumber,this.startColumn,t,i)},e.prototype.setStartPosition=function(t,i){return new e(t,i,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,i){return void 0===i&&(i=t),new e(t.lineNumber,t.column,i.lineNumber,i.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},e}();t.Range=n}),define(i[321],n([0,1,9,27,8]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,i,n,r){this.value=e,this.selectionStart=t,this.selectionEnd=i,this.selectionStartPosition=n,this.selectionEndPosition=r}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,i){t.setValue(e,this.value),i&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var i=this.value.substring(this.selectionStart,e);if(-1===i.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,i,1);var n=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,n,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,i){for(var n=0,r=-1;-1!==(r=t.indexOf("\n",r+1));)n++;return[e,i*t.length,n]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n,r){if(!e)return{text:"",replaceCharCnt:0};var o=e.value,s=e.selectionStart,a=e.selectionEnd,c=t.value,l=t.selectionStart,u=t.selectionEnd;r&&o.length>0&&s===a&&l===u&&!i.startsWith(c,o)&&i.endsWith(c,o)&&(s=0,a=0);var d=o.substring(a),h=c.substring(u),p=i.commonSuffixLength(d,h);c=c.substring(0,c.length-p);var f=(o=o.substring(0,o.length-p)).substring(0,s),g=c.substring(0,l),v=i.commonPrefixLength(f,g);if(c=c.substring(v),o=o.substring(v),l-=v,s-=v,u-=v,a-=v,n&&l===u&&o.length>0){var m=null;if(l===c.length?i.startsWith(c,o)&&(m=c.substring(o.length)):i.endsWith(c,o)&&(m=c.substring(0,c.length-o.length)),null!==m&&m.length>0&&(/\uFE0F/.test(m)||i.containsEmoji(m)))return{text:m,replaceCharCnt:0}}return l===u?o===c&&0===s&&a===o.length&&l===c.length&&-1===c.indexOf("\n")&&i.containsFullWidthCharacter(c)?{text:"",replaceCharCnt:0}:{text:c,replaceCharCnt:f.length-v}:{text:c,replaceCharCnt:a-s}},e.EMPTY=new e("",0,0,null,null),e}();t.TextAreaState=o;var s=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var i=t*e._LINES_PER_PAGE,n=i+1,o=i+e._LINES_PER_PAGE;return new r.Range(n,1,o+1,1)},e.fromEditorSelection=function(t,i,s,a){var c,l=e._getPageOfLine(s.startLineNumber),u=e._getRangeForPage(l),d=e._getPageOfLine(s.endLineNumber),h=e._getRangeForPage(d),p=u.intersectRanges(new r.Range(1,1,s.startLineNumber,s.startColumn)),f=i.getValueInRange(p,1),g=i.getLineCount(),v=i.getLineMaxColumn(g),m=h.intersectRanges(new r.Range(s.endLineNumber,s.endColumn,g,v)),y=i.getValueInRange(m,1);if(l===d||l+1===d)c=i.getValueInRange(s,1);else{var b=u.intersectRanges(s),_=h.intersectRanges(s);c=i.getValueInRange(b,1)+String.fromCharCode(8230)+i.getValueInRange(_,1)}if(a){f.length>500&&(f=f.substring(f.length-500,f.length)),y.length>500&&(y=y.substring(0,500)),c.length>1e3&&(c=c.substring(0,500)+String.fromCharCode(8230)+c.substring(c.length-500,c.length))}return new o(f+c+y,f.length,f.length+c.length,new n.Position(s.startLineNumber,s.startColumn),new n.Position(s.endLineNumber,s.endColumn))},e._LINES_PER_PAGE=10,e}();t.PagedScreenReaderStrategy=s}),define(i[322],n([0,1,178,5,2,25,8]),function(e,t,i,n,r,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},c=function(){function e(e,t){void 0===t&&(t={});var i=this;this._onDidUpdate=new n.Emitter,this.onDidUpdate=this._onDidUpdate.event,this._editor=e,this._options=o.mixin(t,a,!1),this.disposed=!1,this._disposables=[],this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=Boolean(this._options.alwaysRevealFirst),this._disposables.push(this._editor.onDidDispose(function(){return i.dispose()})),this._disposables.push(this._editor.onDidUpdateDiff(function(){return i._onDiffUpdated()})),this._options.followsCaret&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeCursorPosition(function(e){i.ignoreSelectionChange||(i.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeModel(function(e){i.revealFirst=!0})),this._init()}return e.prototype._init=function(){this._editor.getLineChanges()},e.prototype._onDiffUpdated=function(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&null!==this._editor.getLineChanges()&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))},e.prototype._compute=function(e){var t=this;this.ranges=[],e&&e.forEach(function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(function(e){t.ranges.push({rhs:!0,range:new s.Range(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):t.ranges.push({rhs:!0,range:new s.Range(e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})}),this.ranges.sort(function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0}),this._onDidUpdate.fire(this)},e.prototype._initIdx=function(e){var t=!1,i=this._editor.getPosition();if(i){for(var n=0,r=this.ranges.length;n=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var r=n.range.getStartPosition();this._editor.setPosition(r),this._editor.revealPositionInCenter(r,t)}finally{this.ignoreSelectionChange=!1}}},e.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},e.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},e.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},e.prototype.dispose=function(){r.dispose(this._disposables),this._disposables.length=0,this._onDidUpdate.dispose(),this.ranges=[],this.disposed=!0},e}();t.DiffNavigator=c}),define(i[71],n([0,1,8]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.insert=function(e,t){return{range:new i.Range(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,t){return{range:e,text:t}},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},e}();t.EditOperation=n}),define(i[325],n([0,1,9,71,8]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){this.selection=e,this.cursors=t}return e.prototype.getEditOperations=function(e,t){for(var i=s(e,this.cursors),n=0,r=i.length;n=0;o--)t[o].lineNumber===t[o+1].lineNumber&&t.splice(o,1);for(var s=[],a=0,c=0,l=t.length,u=1,d=e.getLineCount();u<=d;u++){var h=e.getLineContent(u),p=h.length+1,f=0;if(!(c255?255:0|e},e.Empty=new e(0,0,0,0),e}();t.RGBA8=i}),define(i[47],n([0,1,27,8]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t,i,n,r){var o=e.call(this,t,i,n,r)||this;return o.selectionStartLineNumber=t,o.selectionStartColumn=i,o.positionLineNumber=n,o.positionColumn=r,o}return a(t,e),t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},t.prototype.setEndPosition=function(e,i){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,i):new t(e,i,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new i.Position(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,i){return 0===this.getDirection()?new t(e,i,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,i)},t.fromPositions=function(e,i){return void 0===i&&(i=e),new t(e.lineNumber,e.column,i.lineNumber,i.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var i=0,n=e.length;i=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var i=0;i=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var i=this.getStartLineNumber(),n=this.getEndLineNumber();if(tn)return null;for(var o=0,s=0,a=i;a<=n;a++){var c=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(o=c,s=1):s++)}if(e=i&&o<=n&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),r=!0);return r},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var i=t-e+1,n=this.getStartLineNumber(),r=this.getEndLineNumber();if(e<=n)return this._rendLineNumberStart+=i,null;if(e>r)return null;if(i+e>r)return this._lines.splice(e-this._rendLineNumberStart,r-e+1);for(var o=[],s=0;si))for(var a=Math.max(t,s.fromLineNumber),c=Math.min(i,s.toLineNumber),l=a;l<=c;l++){var u=l-this._rendLineNumberStart;this._lines[u].onTokensChanged(),n=!0}}return n},e}();t.RenderedLinesCollection=r;var o=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new r(function(){return t._host.createVisibleLine()})}return e.prototype._createDomNode=function(){var e=i.createFastDomNode(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return e.layoutInfo},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var i=0,n=t.length;it)(c=t)<=(s=Math.min(i,r.rendLineNumberStart-1))&&(this._insertLinesBefore(r,c,s,n,t),r.linesLength+=s-c+1);else if(r.rendLineNumberStart0&&(this._removeLinesBefore(r,a),r.linesLength-=a)}if(r.rendLineNumberStart=t,r.rendLineNumberStart+r.linesLength-1i){var s,a,c=Math.max(0,i-r.rendLineNumberStart+1);(a=(s=r.linesLength-1)-c+1)>0&&(this._removeLinesAfter(r,a),r.linesLength-=a)}return this._finishRendering(r,!1,n),r},e.prototype._renderUntouchedLines=function(e,t,i,n,r){for(var o=e.rendLineNumberStart,s=e.lines,a=t;a<=i;a++){var c=o+a;s[a].layoutLine(c,n[c-r])}},e.prototype._insertLinesBefore=function(e,t,i,n,r){for(var o=[],s=0,a=t;a<=i;a++)o[s++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var i=0;i=0;s--){var a=e.lines[s];n[s]&&(a.setDomNode(o),o=o.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,i){var n=document.createElement("div");n.innerHTML=t;for(var r=0;r4294967295?4294967295:0|e}t.Uint8Matrix=i,t.toUint8=function(e){return e<0?0:e>255?255:0|e},t.toUint32=n,t.toUint32Array=function(e){for(var t=e.length,i=new Uint32Array(t),r=0;r=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}();t.CharacterClassifier=n;var r=function(){function e(){this._actual=new n(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}();t.CharacterSet=r}),define(i[197],n([0,1,158]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,r,o=function(e){function t(t){for(var i=e.call(this,0)||this,n=0,r=t.length;n1&&m>1;){if(f.charCodeAt(v-2)!==g.charCodeAt(m-2))break;v--,m--}(v>1||m>1)&&this._pushTrimWhitespaceCharChange(r,o+1,1,v,c+1,1,m);for(var y=a._getLastNonBlankColumn(f,1),b=a._getLastNonBlankColumn(g,1),_=f.length+1,S=g.length+1;y<_&&b=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e.prototype.redo=function(e){for(var t=0;t0){var e=this.past.pop();try{e.undo(this.model)}catch(e){return i.onUnexpectedError(e),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},e.prototype.canUndo=function(){return this.past.length>0||null!==this.currentOpenStackElement},e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(e){return i.onUnexpectedError(e),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},e.prototype.canRedo=function(){return this.future.length>0},e}();t.EditStack=s}),define(i[800],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(){}}();function n(e,t,i,n,r){var o;for(r.spacesDiff=0,r.looksLikeAlignment=!1,o=0;o0&&a>0||l>0&&u>0)){var d=Math.abs(a-u),h=Math.abs(s-l);if(0===d)return r.spacesDiff=h,void(h>0&&0<=l-1&&l-10?s++:y>1&&a++,n(c,l,f,m,d),!d.looksLikeAlignment)){var w=d.spacesDiff;w<=8&&u[w]++,c=f,l=m}}var E=r;s!==a&&(E=sx&&(x=t,I=e)}),4===I&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(I=2),{insertSpaces:E,tabSize:I}}}),define(i[802],n([0,1]),function(e,t){"use strict";function i(e){return(1&e.metadata)>>>0}function n(e,t){e.metadata=254&e.metadata|t<<0}function r(e){return(2&e.metadata)>>>1==1}function o(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function s(e){return(4&e.metadata)>>>2==1}function a(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function c(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function l(e,t){e.metadata=207&e.metadata|t<<4}function u(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeColor=i,t.getNodeIsInOverviewRuler=function(e){return(8&e.metadata)>>>3==1},t.setNodeStickiness=function(e,t){l(e,t)};var d=function(){function e(e,t,i){this.metadata=0,this.parent=this,this.left=this,this.right=this,n(this,1),this.start=t,this.end=i,this.delta=0,this.maxEnd=i,this.id=e,this.ownerId=0,this.options=null,a(this,!1),l(this,1),c(this,!1),u(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=null,o(this,!1)}return e.prototype.reset=function(e,t,i,n){this.start=t,this.end=i,this.maxEnd=i,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=i,this.range=n},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;a(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),l(this,this.options.stickiness),c(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),u(this,this.options.collapseOnReplaceEdit)},e.prototype.setCachedOffsets=function(e,t,i){this.cachedVersionId!==i&&(this.range=null),this.cachedVersionId=i,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}();t.IntervalNode=d,t.SENTINEL=new d(null,0,0),t.SENTINEL.parent=t.SENTINEL,t.SENTINEL.left=t.SENTINEL,t.SENTINEL.right=t.SENTINEL,n(t.SENTINEL,0);var h=function(){function e(){this.root=t.SENTINEL,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,i,n,a,c){return this.root===t.SENTINEL?[]:function(e,i,n,a,c,l){var u=e.root,d=0,h=0,p=0,f=[],g=0;for(;u!==t.SENTINEL;)if(r(u))o(u.left,!1),o(u.right,!1),u===u.parent.right&&(d-=u.parent.delta),u=u.parent;else{if(!r(u.left)){if(d+u.maxEndn)o(u,!0);else{if((p=d+u.end)>=i){u.setCachedOffsets(h,p,l);var v=!0;a&&u.ownerId&&u.ownerId!==a&&(v=!1),c&&s(u)&&(v=!1),v&&(f[g++]=u)}o(u,!0),u.right===t.SENTINEL||r(u.right)||(d+=u.delta,u=u.right)}}return o(e.root,!1),f}(this,e,i,n,a,c)},e.prototype.search=function(e,i,n){return this.root===t.SENTINEL?[]:g(this,e,i,n)},e.prototype.collectNodesFromOwner=function(e){return function(e,i){var n=e.root,s=[],a=0;for(;n!==t.SENTINEL;)r(n)?(o(n.left,!1),o(n.right,!1),n=n.parent):n.left===t.SENTINEL||r(n.left)?(n.ownerId===i&&(s[a++]=n),o(n,!0),n.right===t.SENTINEL||r(n.right)||(n=n.right)):n=n.left;return o(e.root,!1),s}(this,e)},e.prototype.collectNodesPostOrder=function(){return function(e){var i=e.root,n=[],s=0;for(;i!==t.SENTINEL;)r(i)?(o(i.left,!1),o(i.right,!1),i=i.parent):i.left===t.SENTINEL||r(i.left)?i.right===t.SENTINEL||r(i.right)?(n[s++]=i,o(i,!0)):i=i.right:i=i.left;return o(e.root,!1),n}(this)},e.prototype.insert=function(e){v(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){m(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){for(var i=e,n=0;e!==this.root;)e===e.parent.right&&(n+=e.parent.delta),e=e.parent;var r=i.start+n,o=i.end+n;i.setCachedOffsets(r,o,t)},e.prototype.acceptReplace=function(e,i,n,s){for(var a=function(e,i,n){var s=e.root,a=0,c=0,l=0,u=[],d=0;for(;s!==t.SENTINEL;)if(r(s))o(s.left,!1),o(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!r(s.left)){if(a+s.maxEndn?o(s,!0):((l=a+s.end)>=i&&(s.setCachedOffsets(c,l,0),u[d++]=s),o(s,!0),s.right===t.SENTINEL||r(s.right)||(a+=s.delta,s=s.right))}return o(e.root,!1),u}(this,e,e+i),c=0,l=a.length;cn?(a.start+=l,a.end+=l,a.delta+=l,(a.delta<-1073741824||a.delta>1073741824)&&(e.requestNormalizeDelta=!0),o(a,!0)):(o(a,!0),a.right===t.SENTINEL||r(a.right)||(c+=a.delta,a=a.right))}o(e.root,!1)}(this,e,e+i,n),this._normalizeDeltaIfNecessary();for(c=0,l=a.length;ci)&&(1!==n&&(2===n||t))}function f(e,t,i,n,r){var o=function(e){return(48&e.metadata)>>>4}(e),s=0===o||2===o,a=1===o||2===o,c=i-t,l=n,u=Math.min(c,l),d=e.start,h=!1,f=e.end,g=!1;t<=d&&f<=i&&function(e){return(64&e.metadata)>>>6==1}(e)&&(e.start=t,h=!0,e.end=t,g=!0);var v=r?1:c>0?2:0;if(!h&&p(d,s,t,v)&&(h=!0),!g&&p(f,a,t,v)&&(g=!0),u>0&&!r){v=c>l?2:0;!h&&p(d,s,t+u,v)&&(h=!0),!g&&p(f,a,t+u,v)&&(g=!0)}v=r?1:0;!h&&p(d,s,i,v)&&(e.start=t+l,h=!0),!g&&p(f,a,i,v)&&(e.end=t+l,g=!0);var m=l-c;h||(e.start=Math.max(0,d+m)),g||(e.end=Math.max(0,f+m)),e.start>e.end&&(e.end=e.start)}function g(e,i,n,a){for(var c=e.root,l=0,u=0,d=0,h=[],p=0;c!==t.SENTINEL;)if(r(c))o(c.left,!1),o(c.right,!1),c===c.parent.right&&(l-=c.parent.delta),c=c.parent;else if(c.left===t.SENTINEL||r(c.left)){u=l+c.start,d=l+c.end,c.setCachedOffsets(u,d,a);var f=!0;i&&c.ownerId&&c.ownerId!==i&&(f=!1),n&&s(c)&&(f=!1),f&&(h[p++]=c),o(c,!0),c.right===t.SENTINEL||r(c.right)||(l+=c.delta,c=c.right)}else c=c.left;return o(e.root,!1),h}function v(e,r){if(e.root===t.SENTINEL)return r.parent=t.SENTINEL,r.left=t.SENTINEL,r.right=t.SENTINEL,n(r,0),e.root=r,e.root;!function(e,i){var r=0,o=e.root,s=i.start,a=i.end;for(;;){var c=E(s,a,o.start+r,o.end+r);if(c<0){if(o.left===t.SENTINEL){i.start-=r,i.end-=r,i.maxEnd-=r,o.left=i;break}o=o.left}else{if(o.right===t.SENTINEL){i.start-=r+o.delta,i.end-=r+o.delta,i.maxEnd-=r+o.delta,o.right=i;break}r+=o.delta,o=o.right}}i.parent=o,i.left=t.SENTINEL,i.right=t.SENTINEL,n(i,1)}(e,r),w(r.parent);for(var o=r;o!==e.root&&1===i(o.parent);){var s;if(o.parent===o.parent.parent.left)1===i(s=o.parent.parent.right)?(n(o.parent,0),n(s,0),n(o.parent.parent,1),o=o.parent.parent):(o===o.parent.right&&b(e,o=o.parent),n(o.parent,0),n(o.parent.parent,1),_(e,o.parent.parent));else 1===i(s=o.parent.parent.left)?(n(o.parent,0),n(s,0),n(o.parent.parent,1),o=o.parent.parent):(o===o.parent.left&&_(e,o=o.parent),n(o.parent,0),n(o.parent.parent,1),b(e,o.parent.parent))}return n(e.root,0),r}function m(e,r){var o,s;if(r.left===t.SENTINEL?(s=r,(o=r.right).delta+=r.delta,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),o.start+=r.delta,o.end+=r.delta):r.right===t.SENTINEL?(o=r.left,s=r):((o=(s=function(e){for(;e.left!==t.SENTINEL;)e=e.left;return e}(r.right)).right).start+=s.delta,o.end+=s.delta,o.delta+=s.delta,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),s.start+=r.delta,s.end+=r.delta,s.delta=r.delta,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0)),s===e.root)return e.root=o,n(o,0),r.detach(),y(),C(o),void(e.root.parent=t.SENTINEL);var a,c=1===i(s);if(s===s.parent.left?s.parent.left=o:s.parent.right=o,s===r?o.parent=s.parent:(s.parent===r?o.parent=s:o.parent=s.parent,s.left=r.left,s.right=r.right,s.parent=r.parent,n(s,i(r)),r===e.root?e.root=s:r===r.parent.left?r.parent.left=s:r.parent.right=s,s.left!==t.SENTINEL&&(s.left.parent=s),s.right!==t.SENTINEL&&(s.right.parent=s)),r.detach(),c)return w(o.parent),s!==r&&(w(s),w(s.parent)),void y();for(w(o),w(o.parent),s!==r&&(w(s),w(s.parent));o!==e.root&&0===i(o);)o===o.parent.left?(1===i(a=o.parent.right)&&(n(a,0),n(o.parent,1),b(e,o.parent),a=o.parent.right),0===i(a.left)&&0===i(a.right)?(n(a,1),o=o.parent):(0===i(a.right)&&(n(a.left,0),n(a,1),_(e,a),a=o.parent.right),n(a,i(o.parent)),n(o.parent,0),n(a.right,0),b(e,o.parent),o=e.root)):(1===i(a=o.parent.left)&&(n(a,0),n(o.parent,1),_(e,o.parent),a=o.parent.left),0===i(a.left)&&0===i(a.right)?(n(a,1),o=o.parent):(0===i(a.left)&&(n(a.right,0),n(a,1),b(e,a),a=o.parent.left),n(a,i(o.parent)),n(o.parent,0),n(a.left,0),_(e,o.parent),o=e.root));n(o,0),y()}function y(){t.SENTINEL.parent=t.SENTINEL,t.SENTINEL.delta=0,t.SENTINEL.start=0,t.SENTINEL.end=0}function b(e,i){var n=i.right;n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=i.delta,n.end+=i.delta,i.right=n.left,n.left!==t.SENTINEL&&(n.left.parent=i),n.parent=i.parent,i.parent===t.SENTINEL?e.root=n:i===i.parent.left?i.parent.left=n:i.parent.right=n,n.left=i,i.parent=n,C(i),C(n)}function _(e,i){var n=i.left;i.delta-=n.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start-=n.delta,i.end-=n.delta,i.left=n.right,n.right!==t.SENTINEL&&(n.right.parent=i),n.parent=i.parent,i.parent===t.SENTINEL?e.root=n:i===i.parent.right?i.parent.right=n:i.parent.left=n,n.right=i,i.parent=n,C(i),C(n)}function S(e){var i=e.end;if(e.left!==t.SENTINEL){var n=e.left.maxEnd;n>i&&(i=n)}if(e.right!==t.SENTINEL){var r=e.right.maxEnd+e.delta;r>i&&(i=r)}return i}function C(e){e.maxEnd=S(e)}function w(e){for(;e!==t.SENTINEL;){var i=S(e);if(e.maxEnd===i)return;e.maxEnd=i,e=e.parent}}function E(e,t,i,n){return e===i?t-n:e-i}t.IntervalTree=h,t.nodeAcceptEdit=f,t.recomputeMaxEnd=C,t.intervalCompare=E}),define(i[803],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return e.prototype.next=function(){if(this.right!==t.SENTINEL)return n(this.right);for(var e=this;e.parent!==t.SENTINEL&&e.parent.left!==e;)e=e.parent;return e.parent===t.SENTINEL?t.SENTINEL:e.parent},e.prototype.prev=function(){if(this.left!==t.SENTINEL)return r(this.left);for(var e=this;e.parent!==t.SENTINEL&&e.parent.right!==e;)e=e.parent;return e.parent===t.SENTINEL?t.SENTINEL:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}();function n(e){for(;e.left!==t.SENTINEL;)e=e.left;return e}function r(e){for(;e.right!==t.SENTINEL;)e=e.right;return e}function o(e){return e===t.SENTINEL?0:e.size_left+e.piece.length+o(e.right)}function s(e){return e===t.SENTINEL?0:e.lf_left+e.piece.lineFeedCnt+s(e.right)}function a(){t.SENTINEL.parent=t.SENTINEL}function c(e,i){var n=i.right;n.size_left+=i.size_left+(i.piece?i.piece.length:0),n.lf_left+=i.lf_left+(i.piece?i.piece.lineFeedCnt:0),i.right=n.left,n.left!==t.SENTINEL&&(n.left.parent=i),n.parent=i.parent,i.parent===t.SENTINEL?e.root=n:i.parent.left===i?i.parent.left=n:i.parent.right=n,n.left=i,i.parent=n}function l(e,i){var n=i.left;i.left=n.right,n.right!==t.SENTINEL&&(n.right.parent=i),n.parent=i.parent,i.size_left-=n.size_left+(n.piece?n.piece.length:0),i.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),i.parent===t.SENTINEL?e.root=n:i===i.parent.right?i.parent.right=n:i.parent.left=n,n.right=i,i.parent=n}function u(e,i,n,r){for(;i!==e.root&&i!==t.SENTINEL;)i.parent.left===i&&(i.parent.size_left+=n,i.parent.lf_left+=r),i=i.parent}function d(e,t){var i=0,n=0;if(t!==e.root){if(0===i){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;i=o((t=t.parent).left)-t.size_left,n=s(t.left)-t.lf_left,t.size_left+=i,t.lf_left+=n}for(;t!==e.root&&(0!==i||0!==n);)t.parent.left===t&&(t.parent.size_left+=i,t.parent.lf_left+=n),t=t.parent}}t.TreeNode=i,t.SENTINEL=new i(null,0),t.SENTINEL.parent=t.SENTINEL,t.SENTINEL.left=t.SENTINEL,t.SENTINEL.right=t.SENTINEL,t.SENTINEL.color=0,t.leftest=n,t.righttest=r,t.calculateSize=o,t.calculateLF=s,t.resetSentinel=a,t.leftRotate=c,t.rightRotate=l,t.rbDelete=function(e,i){var r,h;if(r=i.left===t.SENTINEL?(h=i).right:i.right===t.SENTINEL?(h=i).left:(h=n(i.right)).right,h===e.root)return e.root=r,r.color=0,i.detach(),a(),void(e.root.parent=t.SENTINEL);var p=1===h.color;if(h===h.parent.left?h.parent.left=r:h.parent.right=r,h===i?(r.parent=h.parent,d(e,r)):(h.parent===i?r.parent=h:r.parent=h.parent,d(e,r),h.left=i.left,h.right=i.right,h.parent=i.parent,h.color=i.color,i===e.root?e.root=h:i===i.parent.left?i.parent.left=h:i.parent.right=h,h.left!==t.SENTINEL&&(h.left.parent=h),h.right!==t.SENTINEL&&(h.right.parent=h),h.size_left=i.size_left,h.lf_left=i.lf_left,d(e,h)),i.detach(),r.parent.left===r){var f=o(r),g=s(r);if(f!==r.parent.size_left||g!==r.parent.lf_left){var v=f-r.parent.size_left,m=g-r.parent.lf_left;r.parent.size_left=f,r.parent.lf_left=g,u(e,r.parent,v,m)}}if(d(e,r.parent),p)a();else{for(var y;r!==e.root&&0===r.color;)r===r.parent.left?(1===(y=r.parent.right).color&&(y.color=0,r.parent.color=1,c(e,r.parent),y=r.parent.right),0===y.left.color&&0===y.right.color?(y.color=1,r=r.parent):(0===y.right.color&&(y.left.color=0,y.color=1,l(e,y),y=r.parent.right),y.color=r.parent.color,r.parent.color=0,y.right.color=0,c(e,r.parent),r=e.root)):(1===(y=r.parent.left).color&&(y.color=0,r.parent.color=1,l(e,r.parent),y=r.parent.left),0===y.left.color&&0===y.right.color?(y.color=1,r=r.parent):(0===y.left.color&&(y.right.color=0,y.color=1,c(e,y),y=r.parent.left),y.color=r.parent.color,r.parent.color=0,y.left.color=0,l(e,r.parent),r=e.root));r.color=0,a()}},t.fixInsert=function(e,t){for(d(e,t);t!==e.root&&1===t.parent.color;){var i;t.parent===t.parent.parent.left?1===(i=t.parent.parent.right).color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&c(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,l(e,t.parent.parent)):1===(i=t.parent.parent.left).color?(t.parent.color=0,i.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&l(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,c(e,t.parent.parent))}e.root.color=0},t.updateTreeMetadata=u,t.recomputeTreeMetadata=d}),define(i[804],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){return function(){this.changeType=1}}();t.ModelRawFlush=i;var n=function(){return function(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}}();t.ModelRawLineChanged=n;var r=function(){return function(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}();t.ModelRawLinesDeleted=r;var o=function(){return function(e,t,i){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=i}}();t.ModelRawLinesInserted=o;var s=function(){return function(){this.changeType=5}}();t.ModelRawEOLChanged=s;var a=function(){function e(e,t,i,n){this.changes=e,this.versionId=t,this.isUndoing=i,this.isRedoing=n}return e.prototype.containsEvent=function(e){for(var t=0,i=this.changes.length;t=0;var t=null;try{t=i.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0})}catch(e){return null}if(!t)return null;var r=!this.isRegex&&!e;return r&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(r=this.matchCase),new l(t,this.wordSeparators?n.getMapForWordSeparators(this.wordSeparators):null,r?this.searchString:null)},e}();function c(e){if(!e||0===e.length)return!1;for(var t=0,i=e.length;t=i)break;var n=e.charCodeAt(t);if(110===n||114===n||87===n)return!0}}return!1}t.SearchParams=a,t.isMultilineRegexSource=c;var l=function(){return function(e,t,i){this.regex=e,this.wordSeparators=t,this.simpleSearch=i}}();function u(e,t,i){if(!i)return new s.FindMatch(e,null);for(var n=[],r=0,o=t.length;r>0);t[r]>=e?n=r-1:t[r+1]>=e?(i=r,n=r):i=r+1}return i+1},e}(),h=function(){function e(){}return e.findMatches=function(e,t,i,n,r){var o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,i,new f(o.wordSeparators,o.regex),n,r):this._doFindMatchesLineByLine(e,i,o,n,r):[]},e._getMultilineMatchRange=function(e,t,i,n,r,s){var a,c,l=0;if(a=n?t+r+(l=n.findLineFeedCountBeforeOffset(r)):t+r,n){var u=n.findLineFeedCountBeforeOffset(r+s.length)-l;c=a+s.length+u}else c=a+s.length;var d=e.getPositionAt(a),h=e.getPositionAt(c);return new o.Range(d.lineNumber,d.column,h.lineNumber,h.column)},e._doFindMatchesMultiline=function(e,t,i,n,r){var o,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),c="\r\n"===e.getEOL()?new d(a):null,l=[],h=0;for(i.reset(0);o=i.next(a);)if(l[h++]=u(this._getMultilineMatchRange(e,s,a,c,o.index,o[0]),o,n),h>=r)return l;return l},e._doFindMatchesLineByLine=function(e,t,i,n,r){var o=[],s=0;if(t.startLineNumber===t.endLineNumber){var a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(i,a,t.startLineNumber,t.startColumn-1,s,o,n,r),o}var c=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(i,c,t.startLineNumber,t.startColumn-1,s,o,n,r);for(var l=t.startLineNumber+1;l=l))return r;return r}var y,b=new f(e.wordSeparators,e.regex);b.reset(0);do{if((y=b.next(t))&&(a[r++]=u(new o.Range(i,y.index+1+n,i,y.index+1+y[0].length+n),y,c),r>=l))return r}while(y);return r},e.findNextMatch=function(e,t,i,n){var r=t.parseSearchRequest();if(!r)return null;var o=new f(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindNextMatchMultiline(e,i,o,n):this._doFindNextMatchLineByLine(e,i,o,n)},e._doFindNextMatchMultiline=function(e,t,i,n){var s=new r.Position(t.lineNumber,1),a=e.getOffsetAt(s),c=e.getLineCount(),l=e.getValueInRange(new o.Range(s.lineNumber,s.column,c,e.getLineMaxColumn(c)),1),h="\r\n"===e.getEOL()?new d(l):null;i.reset(t.column-1);var p=i.next(l);return p?u(this._getMultilineMatchRange(e,a,l,h,p.index,p[0]),p,n):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.Position(1,1),i,n):null},e._doFindNextMatchLineByLine=function(e,t,i,n){var r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(i,s,o,t.column,n);if(a)return a;for(var c=1;c<=r;c++){var l=(o+c-1)%r,u=e.getLineContent(l+1),d=this._findFirstMatchInLine(i,u,l+1,1,n);if(d)return d}return null},e._findFirstMatchInLine=function(e,t,i,n,r){e.reset(n-1);var s=e.next(t);return s?u(new o.Range(i,s.index+1,i,s.index+1+s[0].length),s,r):null},e.findPreviousMatch=function(e,t,i,n){var r=t.parseSearchRequest();if(!r)return null;var o=new f(r.wordSeparators,r.regex);return r.regex.multiline?this._doFindPreviousMatchMultiline(e,i,o,n):this._doFindPreviousMatchLineByLine(e,i,o,n)},e._doFindPreviousMatchMultiline=function(e,t,i,n){var s=this._doFindMatchesMultiline(e,new o.Range(1,1,t.lineNumber,t.column),i,n,9990);if(s.length>0)return s[s.length-1];var a=e.getLineCount();return t.lineNumber!==a||t.column!==e.getLineMaxColumn(a)?this._doFindPreviousMatchMultiline(e,new r.Position(a,e.getLineMaxColumn(a)),i,n):null},e._doFindPreviousMatchLineByLine=function(e,t,i,n){var r=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(i,s,o,n);if(a)return a;for(var c=1;c<=r;c++){var l=(r+o-c-1)%r,u=e.getLineContent(l+1),d=this._findLastMatchInLine(i,u,l+1,n);if(d)return d}return null},e._findLastMatchInLine=function(e,t,i,n){var r,s=null;for(e.reset(0);r=e.next(t);)s=u(new o.Range(i,r.index+1,i,r.index+1+r[0].length),r,n);return s},e}();function p(e,t,i,n,r){return function(e,t,i,n,r){if(0===n)return!0;var o=t.charCodeAt(n-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){var s=t.charCodeAt(n);if(0!==e.get(s))return!0}return!1}(e,t,0,n,r)&&function(e,t,i,n,r){if(n+r===i)return!0;var o=t.charCodeAt(n+r);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(r>0){var s=t.charCodeAt(n+r-1);if(0!==e.get(s))return!0}return!1}(e,t,i,n,r)}t.TextModelSearch=h,t.isValidMatch=p;var f=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,i=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===i)return null;if(!(t=this._searchRegex.exec(e)))return null;var n=t.index,r=t[0].length;if(n===this._prevMatchStartIndex&&r===this._prevMatchLength)return null;if(this._prevMatchStartIndex=n,this._prevMatchLength=r,!this._wordSeparators||p(this._wordSeparators,e,i,n,r))return t}while(t);return null},e}();t.Searcher=f}),define(i[405],n([0,1,27,8,95,803,248]),function(e,t,i,n,r,o,s){"use strict";function a(e){var t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}Object.defineProperty(t,"__esModule",{value:!0}),t.AverageBufferSize=65535,t.createUintArray=a;var c=function(){return function(e,t,i,n,r){this.lineStarts=e,this.cr=t,this.lf=i,this.crlf=n,this.isBasicASCII=r}}();function l(e,t){void 0===t&&(t=!0);for(var i=[0],n=1,r=0,o=e.length;r126)&&(s=!1)}var h=new c(a(e),n,r,o,s);return e.length=0,h};var u=function(){return function(e,t,i,n,r){this.bufferIndex=e,this.start=t,this.end=i,this.lineFeedCnt=n,this.length=r}}();t.Piece=u;var d=function(){return function(e,t){this.buffer=e,this.lineStarts=t}}();t.StringBuffer=d;var h=function(){function e(e,t){var i=this;this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==o.SENTINEL&&e.iterate(e.root,function(e){return e!==o.SENTINEL&&i._pieces.push(e.piece),!0})}return e.prototype.read=function(){return 0===this._pieces.length?0===this._index?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])},e}(),p=function(){function e(e){this._limit=e,this._cache=[]}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var i=this._cache[t];if(i.nodeStartOffset<=e&&i.nodeStartOffset+i.node.piece.length>=e)return i}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var i=this._cache[t];if(i.nodeStartLineNumber&&i.nodeStartLineNumber=e)return i}return null},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,i=this._cache,n=0;n=e)&&(i[n]=null,t=!0)}if(t){for(var o=[],s=0,a=i;s0){e[r].lineStarts||(e[r].lineStarts=l(e[r].buffer));var a=new u(r+1,{line:0,column:0},{line:e[r].lineStarts.length-1,column:e[r].buffer.length-e[r].lineStarts[e[r].lineStarts.length-1]},e[r].lineStarts.length-1,e[r].buffer.length);this._buffers.push(e[r]),n=this.rbInsertRight(n,a)}this._searchCache=new p(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var i=this,n=t.AverageBufferSize,r=n-Math.floor(n/3),o=2*r,s="",a=0,c=[];if(this.iterate(this.root,function(t){var n=i.getNodeContent(t),u=n.length;if(a<=r||a+u0){var u=s.replace(/\r\n|\r|\n/g,e);c.push(new d(u,l(u)))}this.create(c,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.createSnapshot=function(e){return new h(this,e)},e.prototype.equal=function(e){var t=this;if(this.getLength()!==e.getLength())return!1;if(this.getLineCount()!==e.getLineCount())return!1;return this.iterate(this.root,function(i){if(i===o.SENTINEL)return!0;var n=t.getNodeContent(i),r=n.length,s=e.nodeAt(0),a=e.nodeAt(0+r);return n===e.getValueInRange2(s,a)})},e.prototype.getOffsetAt=function(e,t){for(var i=0,n=this.root;n!==o.SENTINEL;)if(n.left!==o.SENTINEL&&n.lf_left+1>=e)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt+1>=e)return(i+=n.size_left)+(this.getAccumulatedValue(n,e-n.lf_left-2)+t-1);e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}return i},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,r=e;t!==o.SENTINEL;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var s=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+s.index,0===s.index){var a=r-this.getOffsetAt(n+1,1);return new i.Position(n+1,a+1)}return new i.Position(n+1,s.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===o.SENTINEL){a=r-e-this.getOffsetAt(n+1,1);return new i.Position(n+1,a+1)}t=t.right}return new i.Position(1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var i=this.nodeAt2(e.startLineNumber,e.startColumn),n=this.nodeAt2(e.endLineNumber,e.endColumn),r=this.getValueInRange2(i,n);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?r:r.replace(/\r\n|\r|\n/g,t):r},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var i=e.node,n=this._buffers[i.piece.bufferIndex].buffer,r=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n.substring(r+e.remainder,r+t.remainder)}var s=e.node,a=this._buffers[s.piece.bufferIndex].buffer,c=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start),l=a.substring(c+e.remainder,c+s.piece.length);for(s=s.next();s!==o.SENTINEL;){var u=this._buffers[s.piece.bufferIndex].buffer,d=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start);if(s===t.node){l+=u.substring(d,d+t.remainder);break}l+=u.substr(d,s.piece.length),s=s.next()}return l},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},e.prototype.getLineCharCode=function(e,t){var i=this.nodeAt2(e,t+1);if(i.remainder===i.node.piece.length){var n=i.node.next();if(!n)return 0;var r=this._buffers[n.piece.bufferIndex],o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.buffer.charCodeAt(o)}r=this._buffers[i.node.piece.bufferIndex];var s=(o=this.offsetInBuffer(i.node.piece.bufferIndex,i.node.piece.start))+i.remainder;return r.buffer.charCodeAt(s)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,i,r,o,a,c,l,u,d,h){var p,f=this._buffers[e.piece.bufferIndex],g=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),v=this.offsetInBuffer(e.piece.bufferIndex,o),m=this.offsetInBuffer(e.piece.bufferIndex,a);t.reset(v);var y={line:0,column:0};do{if(p=t.next(f.buffer)){if(p.index>=m)return d;this.positionInBuffer(e,p.index-g,y);var b=this.getLineFeedCnt(e.piece.bufferIndex,o,y),_=y.line===o.line?y.column-o.column+r:y.column+1,S=_+p[0].length;if(h[d++]=s.createFindMatch(new n.Range(i+b,_,i+b,S),p,l),p.index+p[0].length>=m)return d;if(d>=u)return d}}while(p);return d},e.prototype.findMatchesLineByLine=function(e,t,i,n){var r=[],o=0,a=new s.Searcher(t.wordSeparators,t.regex),c=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===c)return[];var l=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===l)return[];var u=this.positionInBuffer(c.node,c.remainder),d=this.positionInBuffer(l.node,l.remainder);if(c.node===l.node)return this.findMatchesInNode(c.node,a,e.startLineNumber,e.startColumn,u,d,t,i,n,o,r),r;for(var h=e.startLineNumber,p=c.node;p!==l.node;){var f=this.getLineFeedCnt(p.piece.bufferIndex,u,p.piece.end);if(f>=1){var g=this._buffers[p.piece.bufferIndex].lineStarts,v=this.offsetInBuffer(p.piece.bufferIndex,p.piece.start),m=g[u.line+f],y=h===e.startLineNumber?e.startColumn:1;if((o=this.findMatchesInNode(p,a,h,y,u,this.positionInBuffer(p,m-v),t,i,n,o,r))>=n)return r;h+=f}var b=h===e.startLineNumber?e.startColumn-1:0;if(h===e.endLineNumber){var _=this.getLineContent(h).substring(b,e.endColumn-1);return o=this._findMatchesInLine(t,a,_,e.endLineNumber,b,o,r,i,n),r}if((o=this._findMatchesInLine(t,a,this.getLineContent(h).substr(b),h,b,o,r,i,n))>=n)return r;h++,p=(c=this.nodeAt2(h,1)).node,u=this.positionInBuffer(c.node,c.remainder)}if(h===e.endLineNumber){var S=h===e.startLineNumber?e.startColumn-1:0;_=this.getLineContent(h).substring(S,e.endColumn-1);return o=this._findMatchesInLine(t,a,_,e.endLineNumber,S,o,r,i,n),r}var C=h===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(l.node,a,h,C,u,d,t,i,n,o,r),r},e.prototype._findMatchesInLine=function(e,t,i,o,a,c,l,u,d){var h,p=e.wordSeparators;if(!u&&e.simpleSearch){for(var f=e.simpleSearch,g=f.length,v=i.length,m=-g;-1!==(m=i.indexOf(f,m+g));)if((!p||s.isValidMatch(p,i,v,m,g))&&(l[c++]=new r.FindMatch(new n.Range(o,m+1+a,o,m+1+g+a),null),c>=d))return c;return c}t.reset(0);do{if((h=t.next(i))&&(l[c++]=s.createFindMatch(new n.Range(o,h.index+1+a,o,h.index+1+h[0].length+a),h,u),c>=d))return c}while(h);return c},e.prototype.insert=function(e,i,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==o.SENTINEL){var r=this.nodeAt(e),s=r.node,a=r.remainder,c=r.nodeStartOffset,l=s.piece,d=l.bufferIndex,h=this.positionInBuffer(s,a);if(0===s.piece.bufferIndex&&l.end.line===this._lastChangeBufferPos.line&&l.end.column===this._lastChangeBufferPos.column&&c+l.length===e&&i.lengthe){var p=[],f=new u(l.bufferIndex,h,l.end,this.getLineFeedCnt(l.bufferIndex,h,l.end),this.offsetInBuffer(d,l.end)-this.offsetInBuffer(d,h));if(this.shouldCheckCRLF()&&this.endWithCR(i))if(10===this.nodeCharCodeAt(s,a)){var g={line:f.start.line+1,column:0};f=new u(f.bufferIndex,g,f.end,this.getLineFeedCnt(f.bufferIndex,g,f.end),f.length-1),i+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(i))if(13===this.nodeCharCodeAt(s,a-1)){var v=this.positionInBuffer(s,a-1);this.deleteNodeTail(s,v),i="\r"+i,0===s.piece.length&&p.push(s)}else this.deleteNodeTail(s,h);else this.deleteNodeTail(s,h);var m=this.createNewPieces(i);f.length>0&&this.rbInsertRight(s,f);for(var y=s,b=0;b=0;l--)c=this.rbInsertLeft(c,a[l]);this.validateCRLFWithPrevNode(c),this.deleteNodes(i)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var i=this.createNewPieces(e),n=this.rbInsertRight(t,i[0]),r=n,o=1;o=u))break;a=l+1}return i?(i.line=l,i.column=s-d,null):{line:l,column:s-d}},e.prototype.getLineFeedCnt=function(e,t,i){if(0===i.column)return i.line-t.line;var n=this._buffers[e].lineStarts;if(i.line===n.length-1)return i.line-t.line;var r=n[i.line+1],o=n[i.line]+i.column;if(r>o+1)return i.line-t.line;var s=o-1;return 13===this._buffers[e].buffer.charCodeAt(s)?i.line-t.line+1:i.line-t.line},e.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;tt.AverageBufferSize){for(var i=[];e.length>t.AverageBufferSize;){var n=e.charCodeAt(t.AverageBufferSize-1),r=void 0;13===n||n>=55296&&n<=56319?(r=e.substring(0,t.AverageBufferSize-1),e=e.substring(t.AverageBufferSize-1)):(r=e.substring(0,t.AverageBufferSize),e=e.substring(t.AverageBufferSize));var o=l(r);i.push(new u(this._buffers.length,{line:0,column:0},{line:o.length-1,column:r.length-o[o.length-1]},o.length-1,r.length)),this._buffers.push(new d(r,o))}var s=l(e);return i.push(new u(this._buffers.length,{line:0,column:0},{line:s.length-1,column:e.length-s[s.length-1]},s.length-1,e.length)),this._buffers.push(new d(e,s)),i}var a=this._buffers[0].buffer.length,c=l(e,!1),h=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===a&&0!==a&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},h=this._lastChangeBufferPos;for(var p=0;p=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){s=this.getAccumulatedValue(i,e-i.lf_left-2),l=this.getAccumulatedValue(i,e-i.lf_left-1),a=this._buffers[i.piece.bufferIndex].buffer,c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return u+=i.size_left,this._searchCache.set({node:i,nodeStartOffset:u,nodeStartLineNumber:d-(e-1-i.lf_left)}),a.substring(c+s,c+l-t)}if(i.lf_left+i.piece.lineFeedCnt===e-1){s=this.getAccumulatedValue(i,e-i.lf_left-2),a=this._buffers[i.piece.bufferIndex].buffer,c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n=a.substring(c+s,c+i.piece.length);break}e-=i.lf_left+i.piece.lineFeedCnt,u+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==o.SENTINEL;){a=this._buffers[i.piece.bufferIndex].buffer;if(i.piece.lineFeedCnt>0){l=this.getAccumulatedValue(i,0),c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);return n+=a.substring(c,c+l-t)}c=this.offsetInBuffer(i.piece.bufferIndex,i.piece.start);n+=a.substr(c,i.piece.length),i=i.next()}return n},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,i=0;e!==o.SENTINEL;)t+=e.lf_left+e.piece.lineFeedCnt,i+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=i,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var i=e.piece,n=this.positionInBuffer(e,t),r=n.line-i.start.line;if(this.offsetInBuffer(i.bufferIndex,i.end)-this.offsetInBuffer(i.bufferIndex,i.start)===t){var o=this.getLineFeedCnt(e.piece.bufferIndex,i.start,n);if(o!==r)return{index:o,remainder:0}}return{index:r,remainder:n.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var i=e.piece,n=this._buffers[i.bufferIndex].lineStarts,r=i.start.line+t+1;return r>i.end.line?n[i.end.line]+i.end.column-n[i.start.line]-i.start.column:n[r]-n[i.start.line]-i.start.column},e.prototype.deleteNodeTail=function(e,t){var i=e.piece,n=i.lineFeedCnt,r=this.offsetInBuffer(i.bufferIndex,i.end),s=t,a=this.offsetInBuffer(i.bufferIndex,s),c=this.getLineFeedCnt(i.bufferIndex,i.start,s),l=c-n,d=a-r,h=i.length+d;e.piece=new u(i.bufferIndex,i.start,s,c,h),o.updateTreeMetadata(this,e,d,l)},e.prototype.deleteNodeHead=function(e,t){var i=e.piece,n=i.lineFeedCnt,r=this.offsetInBuffer(i.bufferIndex,i.start),s=t,a=this.getLineFeedCnt(i.bufferIndex,s,i.end),c=a-n,l=r-this.offsetInBuffer(i.bufferIndex,s),d=i.length+l;e.piece=new u(i.bufferIndex,s,i.end,a,d),o.updateTreeMetadata(this,e,l,c)},e.prototype.shrinkNode=function(e,t,i){var n=e.piece,r=n.start,s=n.end,a=n.length,c=n.lineFeedCnt,l=t,d=this.getLineFeedCnt(n.bufferIndex,n.start,l),h=this.offsetInBuffer(n.bufferIndex,t)-this.offsetInBuffer(n.bufferIndex,r);e.piece=new u(n.bufferIndex,n.start,l,d,h),o.updateTreeMetadata(this,e,h-a,d-c);var p=new u(n.bufferIndex,i,s,this.getLineFeedCnt(n.bufferIndex,i,s),this.offsetInBuffer(n.bufferIndex,s)-this.offsetInBuffer(n.bufferIndex,i)),f=this.rbInsertRight(e,p);this.validateCRLFWithPrevNode(f)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var i=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),n=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var r=l(t,!1),s=0;se)t=t.left;else{if(t.size_left+t.piece.length>=e){n+=t.size_left;var r={node:t,remainder:e-t.size_left,nodeStartOffset:n};return this._searchCache.set(r),r}e-=t.size_left+t.piece.length,n+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){for(var i=this.root,n=0;i!==o.SENTINEL;)if(i.left!==o.SENTINEL&&i.lf_left>=e-1)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt>e-1){var r=this.getAccumulatedValue(i,e-i.lf_left-2),s=this.getAccumulatedValue(i,e-i.lf_left-1);return n+=i.size_left,{node:i,remainder:Math.min(r+t-1,s),nodeStartOffset:n}}if(i.lf_left+i.piece.lineFeedCnt===e-1){if((r=this.getAccumulatedValue(i,e-i.lf_left-2))+t-1<=i.piece.length)return{node:i,remainder:r+t-1,nodeStartOffset:n};t-=i.piece.length-r;break}e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}for(i=i.next();i!==o.SENTINEL;){if(i.piece.lineFeedCnt>0){s=this.getAccumulatedValue(i,0);var a=this.offsetOfNode(i);return{node:i,remainder:Math.min(t-1,s),nodeStartOffset:a}}if(i.piece.length>=t-1)return{node:i,remainder:t-1,nodeStartOffset:this.offsetOfNode(i)};t-=i.piece.length,i=i.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var i=this._buffers[e.piece.bufferIndex],n=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return i.buffer.charCodeAt(n)},e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===o.SENTINEL||0===e.piece.lineFeedCnt)return!1;var t=e.piece,i=this._buffers[t.bufferIndex].lineStarts,n=t.start.line,r=i[n]+t.start.column;return n!==i.length-1&&(!(i[n+1]>r+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(r))},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==o.SENTINEL&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var i,n=[],r=this._buffers[e.piece.bufferIndex].lineStarts;i=0===e.piece.end.column?{line:e.piece.end.line-1,column:r[e.piece.end.line]-r[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var s=e.piece.length-1,a=e.piece.lineFeedCnt-1;e.piece=new u(e.piece.bufferIndex,e.piece.start,i,a,s),o.updateTreeMetadata(this,e,-1,-1),0===e.piece.length&&n.push(e);var c={line:t.piece.start.line+1,column:0},l=t.piece.length-1,d=this.getLineFeedCnt(t.piece.bufferIndex,c,t.piece.end);t.piece=new u(t.piece.bufferIndex,c,t.piece.end,d,l),o.updateTreeMetadata(this,t,-1,-1),0===t.piece.length&&n.push(t);var h=this.createNewPieces("\r\n");this.rbInsertRight(e,h[0]);for(var p=0;p0){m.sort(function(e,t){return t.lineNumber-e.lineNumber}),w=[];l=0;for(var E=m.length;l0&&m[l-1].lineNumber===b)){var I=m[l].oldContent,x=this.getLineContent(b);0!==x.length&&x!==I&&-1===i.firstNonWhitespaceIndex(x)&&w.push(b)}}}return new r.ApplyEditsResult(S,C,w)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,i=e[0].range,r=e[e.length-1].range,o=new n.Range(i.startLineNumber,i.startColumn,r.endLineNumber,r.endColumn),s=i.startLineNumber,a=i.startColumn,c=[],l=0,u=e.length;l0){var h=c.lines.length,p=c.lines[0],f=c.lines[h-1];d=1===h?new n.Range(l,u,l,u+p.length):new n.Range(l,u,l+h-1,f.length+1)}else d=new n.Range(l,u,l,u);i=d.endLineNumber,r=d.endColumn,t.push(d),o=c}return t},e._sortOpsAscending=function(e,t){var i=n.Range.compareRangesUsingEnds(e.range,t.range);return 0===i?e.sortIndex-t.sortIndex:i},e._sortOpsDescending=function(e,t){var i=n.Range.compareRangesUsingEnds(e.range,t.range);return 0===i?t.sortIndex-e.sortIndex:-i},e}();t.PieceTreeTextBuffer=s}),define(i[812],n([0,1,9,405,809]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,i,n,r,o,s,a){this._chunks=e,this._bom=t,this._cr=i,this._lf=n,this._crlf=r,this._containsRTL=o,this._isBasicASCII=s,this._normalizeEOL=a}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,i=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":i>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),i=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var o=0,s=i.length;o=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},e.prototype._acceptChunk2=function(e){var t=n.createLineStarts(this._tmpLineStarts,e);this.chunks.push(new n.StringBuffer(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=i.containsRTL(e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new o(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=n.createLineStartsFast(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}();t.PieceTreeTextBufferBuilder=s}),define(i[249],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",t.DEFAULT_WORD_REGEXP=function(e){void 0===e&&(e="");for(var i="(-?\\d*\\.\\d\\w*)|([^",n=0,r=t.USUAL_WORD_SEPARATORS;n=0||(i+="\\"+o)}return i+="\\s]+)",new RegExp(i,"g")}(),t.ensureValidWordDefinition=function(e){var i=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)i=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),i=new RegExp(e.source,n)}return i.lastIndex=0,i},t.getWordAtText=function(e,t,i,n){t.lastIndex=0;var r=t.exec(i);if(!r)return null;var o=r[0].indexOf(" ")>=0?function(e,t,i,n){var r,o=e-1-n;for(t.lastIndex=0;r=t.exec(i);){var s=r.index||0;if(s>o)return null;if(t.lastIndex>=o)return{word:r[0],startColumn:n+1+s,endColumn:n+1+t.lastIndex}}return null}(e,t,i,n):function(e,t,i,n){var r,o=e-1-n,s=i.lastIndexOf(" ",o-1)+1;for(t.lastIndex=s;r=t.exec(i);){var a=r.index||0;if(a<=o&&t.lastIndex>=o)return{word:r[0],startColumn:n+1+a,endColumn:n+1+t.lastIndex}}return null}(e,t,i,n);return t.lastIndex=0,o}}),define(i[821],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._languageIdentifier=e}return e.prototype.getId=function(){return this._languageIdentifier.language},e.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},e}();t.FrankensteinMode=i}),define(i[166],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(t.IndentAction||(t.IndentAction={}));var i=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,i=e.notIn.length;ts&&(s=l)}return s}if("string"==typeof t)return o?"*"===t?5:t===r?10:0:0;if(t){var u=t.language,d=t.pattern,h=t.scheme,p=t.hasAccessToAllModels;if(!o&&!p)return 0;if(s=0,h)if(h===n.scheme)s=10;else{if("*"!==h)return 0;s=5}if(u)if(u===r)s=10;else{if("*"!==u)return 0;s=Math.max(s,5)}if(d){if(d!==n.fsPath&&!i.match(d,n.fsPath))return 0;s=10}return s}return 0}}),define(i[833],n([0,1,158,240]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){for(var t=0,i=0,r=0,o=e.length;rt&&(t=u),a>i&&(i=a),(d=s[2])>i&&(i=d)}t++,i++;var c=new n.Uint8Matrix(i,t,0);for(r=0,o=e.length;r=this._maxCharCode?0:this._states.get(e,t)},e}();t.StateMachine=r;var o=null;var s=null;var a=function(){function e(){}return e._createLink=function(e,t,i,n,r){var o=r-1;do{var s=t.charCodeAt(o);if(2!==e.get(s))break;o--}while(o>n);if(n>0){var a=t.charCodeAt(n-1),c=t.charCodeAt(o);(40===a&&41===c||91===a&&93===c||123===a&&125===c)&&o--}return{range:{startLineNumber:i,startColumn:n+1,endLineNumber:i,endColumn:o+2},url:t.substring(n,o+1)}},e.computeLinks=function(t,n){void 0===n&&(null===o&&(o=new r([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),n=o);for(var a=function(){if(null===s){s=new i.CharacterClassifier(0);for(var e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)s.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(e=0;e<".,;".length;e++)s.set(".,;".charCodeAt(e),2)}return s}(),c=[],l=1,u=t.getLineCount();l<=u;l++){for(var d=t.getLineContent(l),h=d.length,p=0,f=0,g=0,v=1,m=!1,y=!1,b=!1;p0&&e.getLanguageId(a-1)===o;)a--;return new i(e,o,a,s+1,e.getStartOffset(a),e.getEndOffset(s))};var i=function(){function e(e,t,i,n,r,o){this._actual=e,this.languageId=t,this._firstTokenIndex=i,this._lastTokenIndex=n,this.firstCharOffset=r,this._lastCharOffset=o}return e.prototype.getLineContent=function(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();t.ScopedLineTokens=i,t.ignoreBracketsInToken=function(e){return 0!=(7&e)}}),define(i[842],n([0,1,166]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(t){t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map(function(e){return new i.StandardAutoClosingPairConditional(e)}):t.brackets?this._autoClosingPairs=t.brackets.map(function(e){return new i.StandardAutoClosingPairConditional({open:e[0],close:e[1]})}):this._autoClosingPairs=[],this._autoCloseBefore="string"==typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},e.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},e.prototype.shouldAutoClosePair=function(e,t,i){if(0===t.getTokenCount())return!0;for(var n=t.findTokenIndexAtOffset(i-2),r=t.getStandardTokenType(n),o=0,s=this._autoClosingPairs;o=0?((n+=i?1:-1)<0?n=e.length-1:n%=e.length,e[n]):null},e.INSTANCE=new e,e}();t.BasicInplaceReplace=i}),define(i[849],n([0,1,11,9,166]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(t){var i=this;(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],t.brackets.forEach(function(t){var n=e._createOpenBracketRegExp(t[0]),r=e._createCloseBracketRegExp(t[1]);n&&r&&i._brackets.push({open:t[0],openRegExp:n,close:t[1],closeRegExp:r})}),this._regExpRules=t.regExpRules||[]}return e.prototype.onEnter=function(e,t,i){for(var n=0,o=this._regExpRules.length;n0&&i.length>0)for(n=0,o=this._brackets.length;n0)for(n=0,o=this._brackets.length;n=0;i--)t+=e.charAt(i);return t}(e=i)),t}}(),f=function(){function e(){}return e._findPrevBracketInText=function(e,t,i,r){var o=i.match(e);if(!o)return null;var s=i.length-(o.index||0),a=o[0].length,c=r+s;return new n.Range(t,c-a+1,t,c+1)},e.findPrevBracketInToken=function(e,t,i,n,r){var o=p(i).substring(i.length-r,i.length-n);return this._findPrevBracketInText(e,t,o,n)},e.findNextBracketInText=function(e,t,i,r){var o=i.match(e);if(!o)return null;var s=o.index||0,a=o[0].length;if(0===a)return null;var c=r+s;return new n.Range(t,c+1,t,c+1+a)},e.findNextBracketInToken=function(e,t,i,n,r){var o=i.substring(n,r);return this.findNextBracketInText(e,t,o,n)},e}();t.BracketsUtils=f}),define(i[852],n([0,1,166,300,299]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,n){n=n||{},this._richEditBrackets=e,this._complexAutoClosePairs=t.filter(function(e){return e.open.length>1&&!!e.close}).map(function(e){return new i.StandardAutoClosingPairConditional(e)}),n.docComment&&this._complexAutoClosePairs.push(new i.StandardAutoClosingPairConditional({open:n.docComment.open,close:n.docComment.close}))}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,i=this._richEditBrackets.brackets.length;t=0))return{appendText:s.close}}}}return null},e}();t.BracketElectricCharacterSupport=o}),define(i[89],n([0,1,11,5,2,9,8,249,166,300,842,852,844,849,299]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(t,i,n){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var r=null;i&&(r=i._conf),this._conf=e._mergeConf(r,n),this.onEnter=e._handleOnEnter(this._conf),this.comments=e._handleComments(this._conf),this.characterPair=new u.CharacterPairSupport(this._conf),this.wordDefinition=this._conf.wordPattern||a.DEFAULT_WORD_REGEXP,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules&&(this.indentRulesSupport=new h.IndentRulesSupport(this._conf.indentationRules)),this.foldingRules=this._conf.folding||{}}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new f.RichEditBrackets(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){if(!this._electricCharacter){var e=[];this._conf.autoClosingPairs?e=this._conf.autoClosingPairs:this._conf.brackets&&(e=this._conf.brackets.map(function(e){return{open:e[0],close:e[1]}})),this._electricCharacter=new d.BracketElectricCharacterSupport(this.brackets,e,this._conf.__electricCharacterSupport)}return this._electricCharacter},enumerable:!0,configurable:!0}),e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,autoCloseBefore:e?t.autoCloseBefore||e.autoCloseBefore:t.autoCloseBefore,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleOnEnter=function(e){var t={},i=!0;return e.brackets&&(i=!1,t.brackets=e.brackets),e.indentationRules&&(i=!1),e.onEnterRules&&(i=!1,t.regExpRules=e.onEnterRules),i?null:new p.OnEnterSupport(t)},e._handleComments=function(e){var t=e.comments;if(!t)return null;var i={};if(t.lineComment&&(i.lineCommentToken=t.lineComment),t.blockComment){var n=t.blockComment,r=n[0],o=n[1];i.blockCommentStartToken=r,i.blockCommentEndToken=o}return i},e}();t.RichEditSupport=g;var v=function(){return function(){}}();t.LanguageConfigurationChangeEvent=v;var m=function(){function e(){this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event,this._entries=[]}return e.prototype.register=function(e,t){var i=this,n=this._getRichEditSupport(e.id),o=new g(e,n,t);return this._entries[e.id]=o,this._onDidChange.fire({languageIdentifier:e}),r.toDisposable(function(){i._entries[e.id]===o&&(i._entries[e.id]=n,i._onDidChange.fire({languageIdentifier:e}))})},e.prototype._getRichEditSupport=function(e){return this._entries[e]||null},e.prototype.getIndentationRules=function(e){var t=this._entries[e];return t&&t.indentationRules||null},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,i){var n=l.createScopedLineTokens(t,i-1),r=this._getElectricCharacterSupport(n.languageId);return r?r.onElectricCharacter(e,n,i-n.firstCharOffset):null},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t&&t.comments||null},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoCloseBeforeSet():u.CharacterPairSupport.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,i){var n=l.createScopedLineTokens(t,i-1),r=this._getCharacterPairSupport(n.languageId);return!!r&&r.shouldAutoClosePair(e,n,i-n.firstCharOffset)},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return t?a.ensureValidWordDefinition(t.wordDefinition||null):a.ensureValidWordDefinition(null)},e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},e.prototype.getPrecedingValidLine=function(e,t,i){var n=e.getLanguageIdAtPosition(t,0);if(t>1){var r=void 0,o=-1;for(r=t-1;r>=1;r--){if(e.getLanguageIdAtPosition(r,0)!==n)return o;var s=e.getLineContent(r);if(!i.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return r;o=r}}return-1},e.prototype.getInheritIndentForLine=function(e,t,i){void 0===i&&(i=!0);var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!n)return null;if(t<=1)return{indentation:"",action:null};var r=this.getPrecedingValidLine(e,t,n);if(r<0)return null;if(r<1)return{indentation:"",action:null};var s=e.getLineContent(r);if(n.shouldIncrease(s)||n.shouldIndentNextLine(s))return{indentation:o.getLeadingWhitespace(s),action:c.IndentAction.Indent,line:r};if(n.shouldDecrease(s))return{indentation:o.getLeadingWhitespace(s),action:null,line:r};if(1===r)return{indentation:o.getLeadingWhitespace(e.getLineContent(r)),action:null,line:r};var a=r-1,l=n.getIndentMetadata(e.getLineContent(a));if(!(3&l)&&4&l){for(var u=0,d=a-1;d>0;d--)if(!n.shouldIndentNextLine(e.getLineContent(d))){u=d;break}return{indentation:o.getLeadingWhitespace(e.getLineContent(u+1)),action:null,line:u+1}}if(i)return{indentation:o.getLeadingWhitespace(e.getLineContent(r)),action:null,line:r};for(d=r;d>0;d--){var h=e.getLineContent(d);if(n.shouldIncrease(h))return{indentation:o.getLeadingWhitespace(h),action:c.IndentAction.Indent,line:d};if(n.shouldIndentNextLine(h)){u=0;for(var p=d-1;p>0;p--)if(!n.shouldIndentNextLine(e.getLineContent(d))){u=p;break}return{indentation:o.getLeadingWhitespace(e.getLineContent(u+1)),action:null,line:u+1}}if(n.shouldDecrease(h))return{indentation:o.getLeadingWhitespace(h),action:null,line:d}}return{indentation:o.getLeadingWhitespace(e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,r){var s=this.getIndentRulesSupport(t);if(!s)return null;var a=this.getInheritIndentForLine(e,n),l=e.getLineContent(n);if(a){var u=a.line;if(void 0!==u){var d=this._getOnEnterSupport(t),h=null;try{d&&(h=d.onEnter("",e.getLineContent(u),""))}catch(e){i.onUnexpectedError(e)}if(h){var p=o.getLeadingWhitespace(e.getLineContent(u));return h.removeText&&(p=p.substring(0,p.length-h.removeText)),h.indentAction===c.IndentAction.Indent||h.indentAction===c.IndentAction.IndentOutdent?p=r.shiftIndent(p):h.indentAction===c.IndentAction.Outdent&&(p=r.unshiftIndent(p)),s.shouldDecrease(l)&&(p=r.unshiftIndent(p)),h.appendText&&(p+=h.appendText),o.getLeadingWhitespace(p)}}return s.shouldDecrease(l)?a.action===c.IndentAction.Indent?a.indentation:r.unshiftIndent(a.indentation):a.action===c.IndentAction.Indent?r.shiftIndent(a.indentation):a.indentation}return null},e.prototype.getIndentForEnter=function(e,t,i,n){e.forceTokenization(t.startLineNumber);var r,s,a=e.getLineTokens(t.startLineNumber),u=l.createScopedLineTokens(a,t.startColumn-1),d=u.getLineContent(),h=!1;(u.firstCharOffset>0&&a.getLanguageId(0)!==u.languageId?(h=!0,r=d.substr(0,t.startColumn-1-u.firstCharOffset)):r=a.getLineContent().substring(0,t.startColumn-1),t.isEmpty())?s=d.substr(t.startColumn-1-u.firstCharOffset):s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-u.firstCharOffset);var p=this.getIndentRulesSupport(u.languageId);if(!p)return null;var f=r,g=o.getLeadingWhitespace(r);if(!n&&!h){var v=this.getInheritIndentForLine(e,t.startLineNumber);p.shouldDecrease(r)&&v&&(g=v.indentation,v.action!==c.IndentAction.Indent&&(g=i.unshiftIndent(g))),f=g+o.ltrim(o.ltrim(r," "),"\t")}var m={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,i){return e.getLanguageIdAtPosition(t,i)},getLineContent:function(i){return i===t.startLineNumber?f:e.getLineContent(i)}},y=o.getLeadingWhitespace(a.getLineContent()),b=this.getInheritIndentForLine(m,t.startLineNumber+1);if(!b){var _=h?y:g;return{beforeEnter:_,afterEnter:_}}var S=h?y:b.indentation;return b.action===c.IndentAction.Indent&&(S=i.shiftIndent(S)),p.shouldDecrease(s)&&(S=i.unshiftIndent(S)),{beforeEnter:h?y:g,afterEnter:S}},e.prototype.getIndentActionForType=function(e,t,i,n){var r=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this.getIndentRulesSupport(r.languageId);if(!o)return null;var s,a=r.getLineContent(),l=a.substr(0,t.startColumn-1-r.firstCharOffset);t.isEmpty()?s=a.substr(t.startColumn-1-r.firstCharOffset):s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-r.firstCharOffset);if(!o.shouldDecrease(l+s)&&o.shouldDecrease(l+i+s)){var u=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!u)return null;var d=u.indentation;return u.action!==c.IndentAction.Indent&&(d=n.unshiftIndent(d)),d}return null},e.prototype.getIndentMetadata=function(e,t){var i=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return i?t<1||t>e.getLineCount()?null:i.getIndentMetadata(e.getLineContent(t)):null},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},e.prototype.getRawEnterActionAtPosition=function(e,t,i){var n=this.getEnterAction(e,new s.Range(t,i,t,i));return n?n.enterAction:null},e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),r=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this._getOnEnterSupport(r.languageId);if(!o)return null;var s,a=r.getLineContent(),l=a.substr(0,t.startColumn-1-r.firstCharOffset);t.isEmpty()?s=a.substr(t.startColumn-1-r.firstCharOffset):s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-r.firstCharOffset);var u=t.startLineNumber,d="";if(u>1&&0===r.firstCharOffset){var h=this.getScopedLineTokens(e,u-1);h.languageId===r.languageId&&(d=h.getLineContent())}var p=null;try{p=o.onEnter(d,l,s)}catch(e){i.onUnexpectedError(e)}return p?(p.appendText||(p.indentAction===c.IndentAction.Indent||p.indentAction===c.IndentAction.IndentOutdent?p.appendText="\t":p.appendText=""),p.removeText&&(n=n.substring(0,n.length-p.removeText)),{enterAction:p,indentation:n}):null},e.prototype.getIndentationAtPosition=function(e,t,i){var n=e.getLineContent(t),r=o.getLeadingWhitespace(n);return r.length>i-1&&(r=r.substring(0,i-1)),r},e.prototype.getScopedLineTokens=function(e,t,i){e.forceTokenization(t);var n=e.getLineTokens(t),r=void 0===i?e.getLineMaxColumn(t)-1:i-1;return l.createScopedLineTokens(n,r)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},e}();t.LanguageConfigurationRegistryImpl=m,t.LanguageConfigurationRegistry=new m}),define(i[860],n([0,1,49]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t,i,n,r){this.token=e,this.index=t,this.fontStyle=i,this.foreground=n,this.background=r}}();function r(e){if(!e||!Array.isArray(e))return[];for(var t=[],i=0,r=0,o=e.length;r=1&&""===e[0].token;){var o=e.shift();-1!==o.fontStyle&&(i=o.fontStyle),null!==o.foreground&&(n=o.foreground),null!==o.background&&(r=o.background)}for(var s=new a,l=0,u=t;l>>0,this._cache.set(t,i)}return(i|e<<0)>>>0},e}();t.TokenTheme=c;var l=/\b(comment|string|regex|regexp)\b/;function u(e){var t=e.match(l);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function d(e,t){return et?1:0}t.toStandardTokenType=u,t.strcmp=d;var h=function(){function e(e,t,i){this._fontStyle=e,this._foreground=t,this._background=i,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,i){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==i&&(this._background=i),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}();t.ThemeTrieElementRule=h;var p=function(){return function(e,t){this.mainRule=e,this.children=t||Object.create(null)}}();t.ExternalThemeTrieElement=p;var f=function(){function e(e){this._mainRule=e,this._children=new Map}return e.prototype.toExternalThemeTrieElement=function(){var e=Object.create(null);return this._children.forEach(function(t,i){e[i]=t.toExternalThemeTrieElement()}),new p(this._mainRule,e)},e.prototype.match=function(e){if(""===e)return this._mainRule;var t,i,n=e.indexOf(".");-1===n?(t=e,i=""):(t=e.substring(0,n),i=e.substring(n+1));var r=this._children.get(t);return void 0!==r?r.match(i):this._mainRule},e.prototype.insert=function(t,i,n,r){if(""!==t){var o,s,a=t.indexOf(".");-1===a?(o=t,s=""):(o=t.substring(0,a),s=t.substring(a+1));var c=this._children.get(o);void 0===c&&(c=new e(this._mainRule.clone()),this._children.set(o,c)),c.insert(s,i,n,r)}else this._mainRule.acceptOverwrite(i,n,r)},e}();t.ThemeTrieElement=f,t.generateTokensCSSForColorMap=function(e){for(var t=[],i=1,n=e.length;i2?this._colorMap[2]:null},e}();t.TokenizationRegistryImpl=r}),h=function(){"use strict";function e(e){var t=this.constructor;return this.then(function(i){return t.resolve(e()).then(function(){return i})},function(i){return t.resolve(e()).then(function(){return t.reject(i)})})}var t=setTimeout;function i(){}function n(e){if(!(this instanceof n))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function r(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,n._immediateFn(function(){var i=1===e._state?t.onFulfilled:t.onRejected;if(null!==i){var n;try{n=i(e._value)}catch(e){return void s(t.promise,e)}o(t.promise,n)}else(1===e._state?o:s)(t.promise,e._value)})):e._deferreds.push(t)}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var i=t.then;if(t instanceof n)return e._state=3,e._value=t,void a(e);if("function"==typeof i)return void l((r=i,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,a(e)}catch(t){s(e,t)}var r,o}function s(e,t){e._state=2,e._value=t,a(e)}function a(e){2===e._state&&0===e._deferreds.length&&n._immediateFn(function(){e._handled||n._unhandledRejectionFn(e._value)});for(var t=0,i=e._deferreds.length;tn&&(p=n-f);var g=l.color,v=this._color2Id[g];v||(v=++this._lastAssignedId,this._color2Id[g]=v,this._id2Color[v]=g);var m=new i(p-f,p+f,v);l.setColorZone(m),s.push(m)}return this._colorZonesInvalid=!1,s.sort(i.compare),s},e}();t.OverviewZoneManager=r}),define(i[175],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}return e.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop},e.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)},e.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()},e}();t.RestrictedRenderingContext=i;var n=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r._viewLines=n,r}return a(t,e),t.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)},t.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)},t}(i);t.RenderingContext=n;var r=function(){return function(e,t){this.lineNumber=e,this.ranges=t}}();t.LineVisibleRanges=r;var o=function(){function e(e,t){this.left=Math.round(e),this.width=Math.round(t)}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e}();t.HorizontalRange=o}),define(i[875],n([0,1,175]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.left=e,this.width=t}return e.prototype.toString=function(){return"["+this.left+","+this.width+"]"},e.compare=function(e,t){return e.left-t.left},e}(),r=function(){function e(){}return e._createRange=function(){return this._handyReadyRange||(this._handyReadyRange=document.createRange()),this._handyReadyRange},e._detachRange=function(e,t){e.selectNodeContents(t)},e._readClientRects=function(e,t,i,n,r){var o=this._createRange();try{return o.setStart(e,t),o.setEnd(i,n),o.getClientRects()}catch(e){return null}finally{this._detachRange(o,r)}},e._mergeAdjacentRanges=function(e){if(1===e.length)return[new i.HorizontalRange(e[0].left,e[0].width)];e.sort(n.compare);for(var t=[],r=0,o=e[0].left,s=e[0].width,a=1,c=e.length;a=u?s=Math.max(s,u+d-o):(t[r++]=new i.HorizontalRange(o,s),o=u,s=d)}return t[r++]=new i.HorizontalRange(o,s),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var i=[],r=0,o=e.length;ra)return null;(t=Math.min(a,Math.max(0,t)))!==(n=Math.min(a,Math.max(0,n)))&&n>0&&0===r&&(n--,r=Number.MAX_VALUE);var c=e.children[t].firstChild,l=e.children[n].firstChild;if(c&&l||(!c&&0===i&&t>0&&(c=e.children[t-1].firstChild,i=1073741824),!l&&0===r&&n>0&&(l=e.children[n-1].firstChild,r=1073741824)),!c||!l)return null;i=Math.min(c.textContent.length,Math.max(0,i)),r=Math.min(l.textContent.length,Math.max(0,r));var u=this._readClientRects(c,i,l,r,s);return this._createHorizontalRangesFromClientRects(u,o)},e}();t.RangeUtil=r}),define(i[877],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,i,n){this.configuration=e,this.theme=t,this.model=i,this.viewLayout=i.viewLayout,this.privateViewEventBus=n}return e.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)},e.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)},e}();t.ViewContext=i}),define(i[880],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return e.prototype.addEventHandler=function(e){for(var t=0,i=this._eventHandlers.length;t0&&this._emit(e)}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),i=0,n=t.length;ii)&&(!u.isEmpty()||0!==l.type&&3!==l.type)){var d=u.startLineNumber===i?u.startColumn:n,h=u.endLineNumber===i?u.endColumn:r;o[s++]=new e(d,h,l.inlineClassName,l.type)}}return o},e.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.classNamet.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},e}();t.LineDecoration=n;var r=function(){return function(e,t,i){this.startOffset=e,this.endOffset=t,this.className=i}}();t.DecorationSegment=r;var o=function(){function e(){this.stopOffsets=[],this.classNames=[],this.count=0}return e.prototype.consumeLowerThan=function(e,t,i){for(;this.count>0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(i,0,e),this.classNames.splice(i,0,t);break}this.count++},e}(),s=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],r=new o,s=0,a=0,c=t.length;a1){var p=e.charCodeAt(u-2);i.isHighSurrogate(p)&&u--}if(d>1){p=e.charCodeAt(d-2);i.isHighSurrogate(p)&&d--}var f=u-1,g=d-2;s=r.consumeLowerThan(f,s,n),0===r.count&&(s=f),r.insert(g,h)}return r.consumeLowerThan(1073741824,s,n),n},e}();t.LineDecorationsNormalizer=s}),define(i[296],n([0,1,9,305,298]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){return function(e,t){this.endIndex=e,this.type=t}}(),s=function(){function e(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=i,this.continuesWithWrappedLine=n,this.isBasicASCII=r,this.containsRTL=o,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=c,this.tabSize=l,this.spaceWidth=u,this.stopRenderingLineAfter=d,this.renderWhitespace="all"===h?2:"boundary"===h?1:0,this.renderControlCharacters=p,this.fontLigatures=f}return e.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineContent===e.lineContent&&this.continuesWithWrappedLine===e.continuesWithWrappedLine&&this.isBasicASCII===e.isBasicASCII&&this.containsRTL===e.containsRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.fontLigatures===e.fontLigatures&&r.LineDecoration.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)},e}();t.RenderLineInput=s;var a=function(){function e(e,t){this.length=e,this._data=new Uint32Array(this.length),this._absoluteOffsets=new Uint32Array(this.length)}return e.getPartIndex=function(e){return(4294901760&e)>>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,i,n){var r=(t<<16|i<<0)>>>0;this._data[e]=r,this._absoluteOffsets[e]=n+i},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,i,n){if(0===this.length)return 0;for(var r=(t<<16|n<<0)>>>0,o=0,s=this.length-1;o+1>>1,c=this._data[a];if(c===r)return a;c>r?s=a:o=a}if(o===s)return o;var l=this._data[o],u=this._data[s];if(l===r)return o;if(u===r)return s;var d=e.getPartIndex(l);return n-e.getCharIndex(l)<=(d!==e.getPartIndex(u)?i:e.getCharIndex(u))-n?o:s},e}();t.CharacterMapping=a;var c=function(){return function(e,t,i){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=i}}();function l(e,t){if(0===e.lineContent.length){var n=0,s=" ";if(e.lineDecorations.length>0){for(var l=[],u=0,h=e.lineDecorations.length;u')}return t.appendASCIIString(s),new c(new a(0,0),!1,n)}return function(e,t){var n=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,o=e.containsForeignElements,s=e.lineContent,l=e.len,u=e.isOverflowing,d=e.parts,h=e.tabSize,p=e.containsRTL,f=e.spaceWidth,g=e.renderWhitespace,v=e.renderControlCharacters,m=new a(l+1,d.length),y=0,b=0,_=0,S=0,C=0;t.appendASCIIString("");for(var w=0,E=d.length;w=0;if(_=0,t.appendASCIIString('0&&(!r||T>1?t.write1(8594):t.write1(65515),T--);T>0;)t.write1(160),T--}else t.write1(183);_++}S=L}else{var L=0;for(p&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);y0;)t.write1(160),L++,T--;break;case 32:t.write1(160),L++;break;case 60:t.appendASCIIString("<"),L++;break;case 62:t.appendASCIIString(">"),L++;break;case 38:t.appendASCIIString("&"),L++;break;case 0:t.appendASCIIString("�"),L++;break;case 65279:case 8232:t.write1(65533),L++;break;default:i.isFullWidthCharacter(O)&&b++,v&&O<32?(t.write1(9216+O),L++):(t.write1(O),L++)}_++}S=L}t.appendASCIIString("")}m.setPartData(l,d.length-1,_,C),u&&t.appendASCIIString("");return t.appendASCIIString(""),new c(m,p,o)}(function(e){var t,n,s=e.useMonospaceOptimizations,a=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(n[r++]=new o(t,""));for(var s=0,a=e.getCount();s=i){n[r++]=new o(i,l);break}n[r++]=new o(c,l)}}return n}(e.lineTokens,e.fauxIndentLength,n);2!==e.renderWhitespace&&1!==e.renderWhitespace||(c=function(e,t,n,r,s,a,c,l){var u,d=[],h=0,p=0,f=r[p].type,g=r[p].endIndex,v=r.length,m=i.firstNonWhitespaceIndex(e);-1===m?(m=t,u=t):u=i.lastNonWhitespaceIndex(e);for(var y=0,b=0;bu)C=!0;else if(9===_)C=!0;else if(32===_)if(l)if(S)C=!0;else{var w=b+1=a)&&(d[h++]=new o(b,"vs-whitespace"),y%=a):(b===g||C&&b>s)&&(d[h++]=new o(b,f),y%=a),9===_?y=a:i.isFullWidthCharacter(_)?y+=2:y++,S=C,b===g&&++p0?e.charCodeAt(t-1):0,x=t>1?e.charCodeAt(t-2):0,D=32===I&&32!==x&&9!==x;D||(E=!0)}else E=!0;return d[h++]=new o(t,E?"vs-whitespace":f),d}(a,n,e.continuesWithWrappedLine,c,e.fauxIndentLength,e.tabSize,s,1===e.renderWhitespace));var l=0;if(e.lineDecorations.length>0){for(var u=0,h=e.lineDecorations.length;ud&&(d=m.startOffset,l[u++]=new o(d,v)),!(m.endOffset+1<=g)){d=g,l[u++]=new o(d,v+" "+m.className);break}d=m.endOffset+1,l[u++]=new o(d,v+" "+m.className),c++}g>d&&(d=g,l[u++]=new o(d,v))}var y=i[i.length-1].endIndex;if(c=50&&(r[s++]=new o(h+1,d),p=h+1,h=-1);p!==u&&(r[s++]=new o(u,d))}else r[s++]=l;n=u}else for(var a=0,c=t.length;a50){for(var d=l.type,v=Math.ceil(g/50),f=1;f>>1;t===e[s]?n=t&&(this._whitespaceId2Index[l]=u+1)}this._whitespaceId2Index[e.toString()]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},e.prototype.changeWhitespace=function(e,t,i){e|=0,t|=0,i|=0;var n=!1;return n=this.changeWhitespaceHeight(e,i)||n,n=this.changeWhitespaceAfterLineNumber(e,t)||n},e.prototype.changeWhitespaceHeight=function(e,t){t|=0;var i=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(i)){var n=this._whitespaceId2Index[i];if(this._heights[n]!==t)return this._heights[n]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1),!0}return!1},e.prototype.changeWhitespaceAfterLineNumber=function(t,i){i|=0;var n=(t|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(n)){var r=this._whitespaceId2Index[n];if(this._afterLineNumbers[r]!==i){var o=this._ordinals[r],s=this._heights[r],a=this._minWidths[r];this.removeWhitespace(t);var c=e.findInsertionIndex(this._afterLineNumbers,i,this._ordinals,o);return this._insertWhitespaceAtIndex(t,c,i,o,s,a),!0}}return!1},e.prototype.removeWhitespace=function(e){var t=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(t)){var i=this._whitespaceId2Index[t];return delete this._whitespaceId2Index[t],this._removeWhitespaceAtIndex(i),this._minWidth=-1,!0}return!1},e.prototype._removeWhitespaceAtIndex=function(e){e|=0,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),i=0,n=t.length;i=e&&(this._whitespaceId2Index[r]=o-1)}},e.prototype.onLinesDeleted=function(e,t){e|=0,t|=0;for(var i=0,n=this._afterLineNumbers.length;it&&(this._afterLineNumbers[i]-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){e|=0,t|=0;for(var i=0,n=this._afterLineNumbers.length;i=t.length||t[r+1]>=e)return r;i=r+1|0}else n=r-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t1?this._lineHeight*(e-1):0)+this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.hasWhitespace=function(){return this._whitespaces.getCount()>0},e.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth()},e.prototype.isAfterLines=function(e){return e>this.getLinesTotalHeight()},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if((e|=0)<0)return 1;for(var t=0|this._lineCount,i=this._lineHeight,n=1,r=t;n=s+i)n=o+1;else{if(e>=s)return o;r=o}}return n>t?t:n},e.prototype.getLinesViewportData=function(e,t){e|=0,t|=0;var i,n,r=this._lineHeight,o=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(o),a=0|this._lineCount,c=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(o),l=0|this._whitespaces.getCount();-1===c?(c=l,n=a+1,i=0):(n=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(c),i=0|this._whitespaces.getHeightForWhitespaceIndex(c));var u=s,d=u,h=0;s>=5e5&&(h=5e5*Math.floor(s/5e5),d-=h=Math.floor(h/r)*r);for(var p=[],f=e+(t-e)/2,g=-1,v=o;v<=a;v++){if(-1===g){(u<=f&&ff)&&(g=v)}for(u+=r,p[v-o]=d,d+=r;n===v;)d+=i,u+=i,++c>=l?n=a+1:(n=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(c),i=0|this._whitespaces.getHeightForWhitespaceIndex(c));if(u>=t){a=v;break}}-1===g&&(g=a);var m=0|this.getVerticalOffsetForLineNumber(a),y=o,b=a;return yt&&b--,{bigNumbersDelta:h,startLineNumber:o,endLineNumber:a,relativeVerticalOffset:p,centeredLineNumber:g,completelyVisibleStartLineNumber:y,completelyVisibleEndLineNumber:b}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e|=0;var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e);return(t>=1?this._lineHeight*t:0)+(e>0?this._whitespaces.getAccumulatedHeight(e-1):0)},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,i,n=0,r=this._whitespaces.getCount()-1;if(r<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(r)+this._whitespaces.getHeightForWhitespaceIndex(r))return-1;for(;n=(i=this.getVerticalOffsetForWhitespaceIndex(t))+this._whitespaces.getHeightForWhitespaceIndex(t))n=t+1;else{if(e>=i)return t;r=t}return n},e.prototype.getWhitespaceAtVerticalOffset=function(e){e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>e)return null;var n=this._whitespaces.getHeightForWhitespaceIndex(t);return{id:this._whitespaces.getIdForWhitespaceIndex(t),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:i,height:n}},e.prototype.getWhitespaceViewportData=function(e,t){e|=0,t|=0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),n=this._whitespaces.getCount()-1;if(i<0)return[];for(var r=[],o=i;o<=n;o++){var s=this.getVerticalOffsetForWhitespaceIndex(o),a=this._whitespaces.getHeightForWhitespaceIndex(o);if(s>=t)break;r.push({id:this._whitespaces.getIdForWhitespaceIndex(o),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:s,height:a})}return r},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},e}();t.LinesLayout=n}),define(i[294],n([0,1,240]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t){this.index=e,this.remainder=t}}();t.PrefixSumIndexOfResult=n;var r=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=i.toUint32(e);var n=this.values,r=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(t,e),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=i.toUint32(e),t=i.toUint32(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;var o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=i.toUint32(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,i=this.values.length-1,r=0,o=0,s=0;t<=i;)if(r=t+(i-t)/2|0,e<(s=(o=this.prefixSum[r])-this.values[r]))i=r-1;else{if(!(e>=o))break;t=r+1}return new n(r,e-s)},e}();t.PrefixSumComputer=r;var o=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new r(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t=n._lines.length?r.FIN:(i=n._lines[o],a=n._wordenize(i,e),s=0,o+=1,c())};return{next:c}},t.prototype.getLineWords=function(e,t){for(var i=this._lines[e-1],n=[],r=0,o=this._wordenize(i,t);rthis._lines.length)t=this._lines.length,i=this._lines[t-1].length+1,n=!0;else{var r=this._lines[t-1].length+1;i<1?(i=1,n=!0):i>r&&(i=r,n=!0)}return n?{lineNumber:t,column:i}:e},t}(d.MirrorTextModel),y=function(){function t(e){this.removedListeners=[],this._foreignModuleFactory=e,this._foreignModule=null}return t.prototype.computeDiff=function(e,t,i){var n=this._getModel(e),r=this._getModel(t);if(!n||!r)return Promise.resolve(null);var o=n.getLinesContent(),s=r.getLinesContent(),a=new u.DiffComputer(o,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0}).computeDiff(),c=!(a.length>0)&&this._modelsAreIdentical(n,r);return Promise.resolve({identical:c,changes:a})},t.prototype._modelsAreIdentical=function(e,t){var i=e.getLineCount();if(i!==t.getLineCount())return!1;for(var n=1;n<=i;n++){if(e.getLineContent(n)!==t.getLineContent(n))return!1}return!0},t.prototype.computeDirtyDiff=function(e,t,i){var n=this._getModel(e),r=this._getModel(t);if(!n||!r)return Promise.resolve(null);var o=n.getLinesContent(),s=r.getLinesContent(),a=new u.DiffComputer(o,s,{shouldComputeCharChanges:!1,shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:i,shouldMakePrettyDiff:!0});return Promise.resolve(a.computeDiff())},t.prototype.computeMoreMinimalEdits=function(e,r){var o=this._getModel(e);if(!o)return Promise.resolve(r);for(var s=[],a=void 0,c=0,u=r=i.mergeSort(r,function(e,t){return e.range&&t.range?l.Range.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)});ct._diffLimit)s.push({range:h,text:p});else for(var v=n.stringDiff(g,p,!1),m=o.offsetAt(l.Range.lift(h).getStartPosition()),y=0,b=v;y=n,u=a,d=r.viewportHeight-a>=n,h=e.left,p=t.left;return h+i>r.scrollLeft+r.viewportWidth&&(h=r.scrollLeft+r.viewportWidth-i),p+i>r.scrollLeft+r.viewportWidth&&(p=r.scrollLeft+r.viewportWidth-i),hthis._contentWidth)return null;var c,l=e.top-r,u=t.top+this._lineHeight,d=s+this._contentLeft,h=a+this._contentLeft,p=i.getDomNodePagePosition(this._viewDomNode.domNode),f=p.top+l-i.StandardWindow.scrollY,g=p.top+u-i.StandardWindow.scrollY,v=p.left+d-i.StandardWindow.scrollX,m=p.left+h-i.StandardWindow.scrollX,y=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,b=f>=22,_=g+r<=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-22;v+n+20>y&&(v-=c=v-(y-n-20),d-=c);m+n+20>y&&(m-=c=m-(y-n-20),h-=c);v<0&&(v-=c=v,d-=c);m<0&&(m-=c=m,h-=c);return this._fixedOverflowWidgets&&(l=f,u=g,d=v,h=m),{fitsAbove:b,aboveTop:l,aboveLeft:d,fitsBelow:_,belowTop:u,belowLeft:h}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new o(e.top,e.left+this._contentLeft)},e.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var i=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop,n=new o(i,t.left),r=this._viewPosition.lineNumber,s=t.left;if(this._viewRange){var a=e.linesVisibleRangesForRange(this._viewRange,!1);if(a&&a.length>0)for(var c=a.length-1;c>=0;c--){var l=a[c];if(l.lineNumber>=r){l.lineNumber>r&&(r=l.lineNumber,s=1073741824);for(var u=0,d=l.ranges.length;ue.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},e.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},e}()}),define(i[902],n([0,1,151,8,175,1083]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){var i=e.call(this)||this;return i._context=t,i._lineHeight=i._context.configuration.editor.lineHeight,i._typicalHalfwidthCharacterWidth=i._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return a(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),i=[],r=0,o=0,s=t.length;ot.options.zIndex)return 1;var i=e.options.className,r=t.options.className;return ir?1:n.Range.compareRangesUsingStarts(e.range,t.range)});for(var c=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,u=[],d=c;d<=l;d++){u[d-c]=""}this._renderWholeLineDecorations(e,i,u),this._renderNormalDecorations(e,i,u),this._renderResult=u},t.prototype._renderWholeLineDecorations=function(e,t,i){for(var n=String(this._lineHeight),r=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,s=0,a=t.length;s',u=Math.max(c.range.startLineNumber,r),d=Math.min(c.range.endLineNumber,o),h=u;h<=d;h++){i[h-r]+=l}}},t.prototype._renderNormalDecorations=function(e,t,i){for(var r=String(this._lineHeight),o=e.visibleRange.startLineNumber,s=null,a=!1,c=null,l=0,u=t.length;l';a[h]+=m}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]},t}(i.DynamicViewOverlay);t.DecorationsOverlay=o}),define(i[292],n([0,1,151,1084]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t,i){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(i)}}();t.DecorationToRender=n;var r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype._render=function(e,t,i){for(var n=[],r=e;r<=t;r++){n[r-e]=[]}if(0===i.length)return n;i.sort(function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className',s=[],a=t;a<=i;a++){var c=a-t,l=n[c];0===l.length?s[c]="":s[c]='
    =this._renderResult.length?"":this._renderResult[i]},t}(r);t.GlyphMarginOverlay=o}),define(i[904],n([0,1,292,1101]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){var i=e.call(this)||this;return i._context=t,i._decorationsLeft=i._context.configuration.editor.layoutInfo.decorationsLeft,i._decorationsWidth=i._context.configuration.editor.layoutInfo.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return a(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],r=0,o=0,s=t.length;o
    ',o=[],s=t;s<=i;s++){for(var a=s-t,c=n[a],l="",u=0,d=c.length;u';r[s]=c}this._renderResult=r},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(i.DedupOverlay);t.MarginViewLineDecorationsOverlay=n}),define(i[907],n([0,1,62,88,461]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){var r=e.call(this,t)||this;return r._widgets={},r._verticalScrollbarWidth=r._context.configuration.editor.layoutInfo.verticalScrollbarWidth,r._minimapWidth=r._context.configuration.editor.layoutInfo.minimapWidth,r._horizontalScrollbarHeight=r._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,r._editorHeight=r._context.configuration.editor.layoutInfo.height,r._editorWidth=r._context.configuration.editor.layoutInfo.width,r._domNode=i.createFastDomNode(document.createElement("div")),n.PartFingerprints.write(r._domNode,4),r._domNode.setClassName("overlayWidgets"),r}return a(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return!!e.layoutInfo&&(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0)},t.prototype.addWidget=function(e){var t=i.createFastDomNode(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t){var i=this._widgets[e.getId()];return i.preference!==t&&(i.preference=t,this.setShouldRender(),!0)},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var i=this._widgets[t].domNode.domNode;delete this._widgets[t],i.parentNode.removeChild(i),this.setShouldRender()}},t.prototype._renderWidget=function(e){var t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){var i=t.domNode.clientHeight;t.setTop(this._editorHeight-i-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),i=0,n=t.length;i0&&this._renderOneLane(r,i,n,e),!0},t.prototype._renderOneLane=function(e,t,i,n){for(var r=0,o=0,s=0,a=0,c=t;a=d?s=Math.max(s,h):(e.fillRect(0,o,n,s-o),o=d,s=h)}e.fillRect(0,o,n,s-o)},t}(r.ViewEventHandler);t.OverviewRuler=o}),define(i[909],n([0,1,62,11,88,27]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=e.call(this,t)||this;return n._lineHeight=n._context.configuration.editor.lineHeight,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode=i.createFastDomNode(document.createElement("div")),n.domNode.setClassName("view-zones"),n.domNode.setPosition("absolute"),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.marginDomNode=i.createFastDomNode(document.createElement("div")),n.marginDomNode.setClassName("margin-view-zones"),n.marginDomNode.setPosition("absolute"),n.marginDomNode.setAttribute("role","presentation"),n.marginDomNode.setAttribute("aria-hidden","true"),n._zones={},n}return a(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._zones={}},t.prototype._recomputeWhitespacesProps=function(){for(var e=!1,t=Object.keys(this._zones),i=0,n=t.length;i=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?t+=e.height-this._configuration.editor.lineHeight:t+=this._getHorizontalScrollbarHeight(e),Math.max(e.height,t)},t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new o.Viewport(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new o.Viewport(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeScrollWidth=function(e,t){if(!this._configuration.editor.wrappingInfo.isViewportWrapping){var i=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+i,t,n)}return Math.max(e,t)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight()},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,i=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(i),scrollLeft:e.scrollLeft}},t.prototype.addWhitespace=function(e,t,i,n){return this._linesLayout.insertWhitespace(e,t,i,n)},t.prototype.changeWhitespace=function(e,t,i){return this._linesLayout.changeWhitespace(e,t,i)},t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e)},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},t.prototype.getScrollWidth=function(){return this.scrollable.getScrollDimensions().scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollable.getScrollDimensions().scrollHeight},t.prototype.getCurrentScrollLeft=function(){return this.scrollable.getCurrentScrollPosition().scrollLeft},t.prototype.getCurrentScrollTop=function(){return this.scrollable.getCurrentScrollPosition().scrollTop},t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)},t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)},t.prototype.deltaScrollNow=function(e,t){var i=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:i.scrollLeft+e,scrollTop:i.scrollTop+t})},t}(i.Disposable);t.ViewLayout=s}),define(i[912],n([0,1,27,8,163]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,i,n,r){this.editorId=e,this.model=t,this.configuration=i,this._linesCollection=n,this._coordinatesConverter=r,this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},e.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,o=this._decorationsCache[t];if(!o){var s=e.range,a=e.options,c=void 0;if(a.isWholeLine){var l=this._coordinatesConverter.convertModelPositionToViewPosition(new i.Position(s.startLineNumber,1)),u=this._coordinatesConverter.convertModelPositionToViewPosition(new i.Position(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber)));c=new n.Range(l.lineNumber,l.column,u.lineNumber,u.column)}else c=this._coordinatesConverter.convertModelRangeToViewRange(s);o=new r.ViewModelDecoration(c,a),this._decorationsCache[t]=o}return o},e.prototype.getDecorationsViewportData=function(e){var t=null!==this._cachedModelDecorationsResolver;return(t=t&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly),i=e.startLineNumber,o=e.endLineNumber,s=[],a=0,c=[],l=i;l<=o;l++)c[l-i]=[];for(var u=0,d=t.length;ue.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),e.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},e.prototype.guessColorPresentation=function(e,t){for(var i=0;ie.length)return!1;for(var r=0;r=65&&o<=90&&o+32===s||s>=65&&s<=90&&s+32===o))return!1}return!0},e.prototype._createOperationsForBlockComment=function(t,i,n,o,s){var a,c=t.startLineNumber,l=t.startColumn,u=t.endLineNumber,d=t.endColumn,h=o.getLineContent(c),p=o.getLineContent(u),f=h.lastIndexOf(i,l-1+i.length),g=p.indexOf(n,d-1-n.length);if(-1!==f&&-1!==g)if(c===u){h.substring(f+i.length,g).indexOf(n)>=0&&(f=-1,g=-1)}else{var v=h.substring(f+i.length),m=p.substring(0,g);(v.indexOf(n)>=0||m.indexOf(n)>=0)&&(f=-1,g=-1)}-1!==f&&-1!==g?(f+i.length0&&32===p.charCodeAt(g-1)&&(n=" "+n,g-=1),a=e._createRemoveBlockCommentOperations(new r.Range(c,f+i.length+1,u,g+1),i,n)):(a=e._createAddBlockCommentOperations(t,i,n),this._usedEndToken=1===a.length?n:null);for(var y=0,b=a;ya?o-1:o}},e}();t.LineCommentCommand=l}),define(i[920],n([0,1,47,8]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,i){this.selection=e,this.targetPosition=t,this.copy=i}return e.prototype.getEditOperations=function(e,t){var r=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new n.Range(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),r),!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?this.targetSelection=new i.Selection(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?this.targetSelection=new i.Selection(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumbert&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,r.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,r.matchesCount=!0,o=!0),void 0!==i&&(n.Range.equalsRange(this._currentMatch,i)||(this._currentMatch=i,r.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(r)},e.prototype.change=function(e,t,i){void 0===i&&(i=!0);var r={moveCursor:t,updateHistory:i,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1,s=this.isRegex,a=this.wholeWord,c=this.matchCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,r.searchString=!0,o=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,r.replaceString=!0,o=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,r.isRevealed=!0,o=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,r.isReplaceRevealed=!0,o=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.searchScope&&(n.Range.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,r.searchScope=!0,o=!0)),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,s!==this.isRegex&&(o=!0,r.isRegex=!0),a!==this.wholeWord&&(o=!0,r.wholeWord=!0),c!==this.matchCase&&(o=!0,r.matchCase=!0),o&&this._onFindReplaceStateChange.fire(r)},e}();t.FindReplaceState=o}),define(i[922],n([0,1,8]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,i){this._editorSelection=e,this._ranges=t,this._replaceStrings=i}return e.prototype.getEditOperations=function(e,t){if(this._ranges.length>0){for(var n=[],r=0;r0;){if(e=n)break;if(36===(l=e.charCodeAt(i))){t.emitUnchanged(i-1),t.emitStatic("$",i+1);continue}if(48===l||38===l){t.emitUnchanged(i-1),t.emitMatchIndex(0,i+1);continue}if(49<=l&&l<=57){var a=l-48;if(i+1=n)break;var l;switch(l=e.charCodeAt(i)){case 92:t.emitUnchanged(i-1),t.emitStatic("\\",i+1);break;case 110:t.emitUnchanged(i-1),t.emitStatic("\n",i+1);break;case 116:t.emitUnchanged(i-1),t.emitStatic("\t",i+1)}}}return t.finalize()}}),define(i[290],n([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_FOLDING_REGIONS=65535,t.MAX_LINE_NUMBER=16777215;var i=function(){function e(e,i,n){if(e.length!==i.length||e.length>t.MAX_FOLDING_REGIONS)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=i,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n}return e.prototype.ensureParentIndices=function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var i=[],n=function(t,n){var r=i[i.length-1];return e.getStartLineNumber(r)<=t&&e.getEndLineNumber(r)>=n},r=0,o=this._startIndexes.length;rt.MAX_LINE_NUMBER||a>t.MAX_LINE_NUMBER)throw new Error("startLineNumber or endLineNumber must not exceed "+t.MAX_LINE_NUMBER);for(;i.length>0&&!n(s,a);)i.pop();var c=i.length>0?i[i.length-1]:-1;i.push(r),this._startIndexes[r]=s+((255&c)<<24),this._endIndexes[r]=a+((65280&c)<<16)}}},Object.defineProperty(e.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),e.prototype.getStartLineNumber=function(e){return this._startIndexes[e]&t.MAX_LINE_NUMBER},e.prototype.getEndLineNumber=function(e){return this._endIndexes[e]&t.MAX_LINE_NUMBER},e.prototype.getType=function(e){return this._types?this._types[e]:void 0},e.prototype.hasTypes=function(){return!!this._types},e.prototype.isCollapsed=function(e){var t=e/32|0,i=e%32;return 0!=(this._collapseStates[t]&1<>>24)+((4278190080&this._endIndexes[e])>>>16);return i===t.MAX_FOLDING_REGIONS?-1:i},e.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},e.prototype.findIndex=function(e){var t=0,i=this._startIndexes.length;if(0===i)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},e.prototype.toString=function(){for(var e=[],t=0;t=this.endLineNumber},e.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},e.prototype.hidesLine=function(e){return this.startLineNumber=d))break;r(a,u===d),a++}}c=s()}for(;a0)return e},e.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],i=0,n=e;i=0;){var o=this._regions.toRegion(n);t&&!t(o,r)||i.push(o),r++,n=o.parentIndex}return i},e.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null},e.prototype.getRegionsInside=function(e,t){var i=[],n=e?e.regionIndex+1:0,r=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length)for(var o=[],s=n,a=this._regions.length;s0&&!c.containedBy(o[o.length-1]);)o.pop();o.push(c),t(c,o.length)&&i.push(c)}else for(s=n,a=this._regions.length;s0)for(var o=0,s=n;o1)){var l=e.getRegionsInside(c,function(e,n){return e.isCollapsed!==t&&n=0;s--)if(i!==r.isCollapsed(s)){var a=r.getStartLineNumber(s);t.test(n.getLineContent(a))&&o.push(r.toRegion(s))}e.toggleCollapseState(o)},t.setCollapseStateForType=function(e,t,i){for(var n=e.regions,r=[],o=n.length-1;o>=0;o--)i!==n.isCollapsed(o)&&t===n.getType(o)&&r.push(n.toRegion(o));e.toggleCollapseState(r)}}),define(i[926],n([0,1,5,8,17]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){var t=this;this._updateEventEmitter=new i.Emitter,this._foldingModel=e,this._foldingModelListener=e.onDidChange(function(e){return t.updateHiddenRanges()}),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),e.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],i=0,r=0,o=Number.MAX_VALUE,s=-1,a=this._foldingModel.regions;i0},e.prototype.isHidden=function(e){return null!==s(this._hiddenRanges,e)},e.prototype.adjustSelections=function(e){for(var t=this,i=!1,n=this._foldingModel.textModel,r=null,o=function(e){return r&&function(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}(e,r)||(r=s(t._hiddenRanges,e)),r?r.startLineNumber-1:null},a=0,c=e.length;a0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},e}();function s(e,t){var i=r.findFirstInSorted(e,function(e){return t=0&&e[i].endLineNumber>=t?e[i]:null}t.HiddenRangeModel=o}),define(i[336],n([0,1,11,290]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=5e3,o={};t.ID_SYNTAX_PROVIDER="syntax";var s=function(){function e(e,i,n){void 0===n&&(n=r),this.editorModel=e,this.providers=i,this.limit=n,this.id=t.ID_SYNTAX_PROVIDER}return e.prototype.compute=function(e){var t=this;return function(e,t,n){var r=null,s=e.map(function(e,s){return Promise.resolve(e.provideFoldingRanges(t,o,n)).then(function(e){if(!n.isCancellationRequested&&Array.isArray(e)){Array.isArray(r)||(r=[]);for(var i=t.getLineCount(),o=0,a=e;o0&&c.end>c.start&&c.end<=i&&r.push({start:c.start,end:c.end,rank:s,kind:c.kind})}}},i.onUnexpectedExternalError)});return Promise.all(s).then(function(e){return r})}(this.providers,this.editorModel,e).then(function(e){return e?c(e,t.limit):null})},e.prototype.dispose=function(){},e}();t.SyntaxRangeProvider=s;var a=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.add=function(e,t,i,r){if(!(e>n.MAX_LINE_NUMBER||t>n.MAX_LINE_NUMBER)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=r,this._types[o]=i,this._length++,r<30&&(this._nestingLevelCounts[r]=(this._nestingLevelCounts[r]||0)+1)}},e.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var e=new Uint32Array(this._length),t=new Uint32Array(this._length),i=0;ithis._foldingRangesLimit){o=i;break}r+=s}}e=new Uint32Array(this._foldingRangesLimit),t=new Uint32Array(this._foldingRangesLimit);for(var a=[],c=(i=0,0);ir.start)if(l.end<=r.end)o.push(r),r=l,n.add(l.start,l.end,l.kind&&l.kind.value,o.length);else{if(l.start>r.end){do{r=o.pop()}while(r&&l.start>r.end);r&&o.push(r),r=l}n.add(l.start,l.end,l.kind&&l.kind.value,o.length)}}else r=l,n.add(l.start,l.end,l.kind&&l.kind.value,o.length)}return n.toIndentRanges()}t.RangesCollector=a,t.sanitizeRanges=c}),define(i[931],n([0,1,336]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ID_INIT_PROVIDER="init";var n=function(){function e(e,i,n,r){if(this.editorModel=e,this.id=t.ID_INIT_PROVIDER,i.length){this.decorationIds=e.deltaDecorations([],i.map(function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}}})),this.timeout=setTimeout(n,r)}}return e.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),"number"==typeof this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)},e.prototype.compute=function(e){var t=[];if(this.decorationIds)for(var n=0,r=this.decorationIds;n=r)return null;for(var o=[],s=n;s<=r;s++)o.push(e.getLineContent(s));var a=o.slice(0);return a.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}),!0===i&&(a=a.reverse()),{startLineNumber:n,endLineNumber:r,before:o,after:a}}t.SortLinesCommand=r}),define(i[348],n([0,1,27,8,228]),function(e,t,i,n,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){}return e.prototype.provideSelectionRanges=function(t,i){return r(this,void 0,void 0,function(){var n,r,s,a,c;return o(this,function(l){switch(l.label){case 0:n=[],r=function(i){var r,s;return o(this,function(o){switch(o.label){case 0:return r=[],n.push(r),s=new Map,[4,new Promise(function(n){return e._bracketsRightYield(n,0,t,i,s)})];case 1:return o.sent(),[4,new Promise(function(n){return e._bracketsLeftYield(n,0,t,i,s,r)})];case 2:return o.sent(),[2]}})},s=0,a=i,l.label=1;case 1:return s=e._maxRounds){t();break}if(!r){t();break}var l=n.findNextBracket(r);if(!l){t();break}if(Date.now()-c>e._maxDuration){setTimeout(function(){return e._bracketsRightYield(t,i+1,n,r,o)});break}var u=l.close;if(l.isOpen){var d=a.has(u)?a.get(u):0;a.set(u,d+1)}else{d=a.has(u)?a.get(u):0;if(d-=1,a.set(u,Math.max(0,d)),d<0){var h=o.get(u);h||(h=new s.LinkedList,o.set(u,h)),h.push(l.range)}}r=l.range.getEndPosition()}},e._bracketsLeftYield=function(t,i,r,o,s,a){for(var c=new Map,l=Date.now();;){if(i>=e._maxRounds&&0===s.size){t();break}if(!o){t();break}var u=r.findPrevBracket(o);if(!u){t();break}if(Date.now()-l>e._maxDuration){setTimeout(function(){return e._bracketsLeftYield(t,i+1,r,o,s,a)});break}var d=u.close;if(u.isOpen){v=c.has(d)?c.get(d):0;if(v-=1,c.set(d,Math.max(0,v)),v<0){var h=s.get(d);if(h){var p=h.shift();0===h.size&&s.delete(d);var f=n.Range.fromPositions(u.range.getEndPosition(),p.getStartPosition()),g=n.Range.fromPositions(u.range.getStartPosition(),p.getEndPosition());a.push({range:f,kind:"statement.brackets"}),a.push({range:g,kind:"statement.brackets.full"}),e._addBracketLeading(r,g,a)}}}else{var v=c.has(d)?c.get(d):0;c.set(d,v+1)}o=u.range.getStartPosition()}},e._addBracketLeading=function(e,t,r){if(t.startLineNumber!==t.endLineNumber){var o=t.startLineNumber,s=e.getLineFirstNonWhitespaceColumn(o);0!==s&&s!==t.startColumn&&(r.push({range:n.Range.fromPositions(new i.Position(o,s),t.getEndPosition()),kind:"statement.brackets.leading"}),r.push({range:n.Range.fromPositions(new i.Position(o,1),t.getEndPosition()),kind:"statement.brackets.leading.full"}));var a=o-1;if(a>0){var c=e.getLineFirstNonWhitespaceColumn(a);c===t.startColumn&&c!==e.getLineLastNonWhitespaceColumn(a)&&(r.push({range:n.Range.fromPositions(new i.Position(a,c),t.getEndPosition()),kind:"statement.brackets.leading"}),r.push({range:n.Range.fromPositions(new i.Position(a,1),t.getEndPosition()),kind:"statement.brackets.leading.full"}))}}},e._maxDuration=30,e._maxRounds=2,e}();t.BracketSelectionRangeProvider=a}),define(i[952],n([0,1,8,9]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.provideSelectionRanges=function(e,t){for(var i=[],n=0,r=t;n=0;l--){if(95===(h=s.charCodeAt(l))||45===h)break;if(n.isLowerAsciiLetter(h)&&n.isUpperAsciiLetter(d))break;d=h}for(l+=1;u0&&0===t.getLineFirstNonWhitespaceColumn(n.lineNumber)&&0===t.getLineLastNonWhitespaceColumn(n.lineNumber)&&e.push({range:new i.Range(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber)),kind:"statement.line"})},e}();t.WordSelectionRangeProvider=r}),define(i[188],n([0,1]),function(e,t){"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.text("")}return e.isDigitCharacter=function(e){return e>=48&&e<=57},e.isVariableCharacter=function(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90},e.prototype.text=function(e){this.value=e,this.pos=0},e.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len)},e.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var t,i=this.pos,n=0,r=this.value.charCodeAt(i);if("number"==typeof(t=e._table[r]))return this.pos+=1,{type:t,pos:i,len:1};if(e.isDigitCharacter(r)){t=8;do{n+=1,r=this.value.charCodeAt(i+n)}while(e.isDigitCharacter(r));return this.pos+=n,{type:t,pos:i,len:n}}if(e.isVariableCharacter(r)){t=9;do{r=this.value.charCodeAt(i+ ++n)}while(e.isVariableCharacter(r)||e.isDigitCharacter(r));return this.pos+=n,{type:t,pos:i,len:n}}t=10;do{n+=1,r=this.value.charCodeAt(i+n)}while(!isNaN(r)&&void 0===e._table[r]&&!e.isDigitCharacter(r)&&!e.isVariableCharacter(r));return this.pos+=n,{type:t,pos:i,len:n}},e._table=((i={})[36]=0,i[58]=1,i[44]=2,i[123]=3,i[125]=4,i[92]=5,i[47]=6,i[124]=7,i[43]=11,i[45]=12,i[63]=13,i),e}();t.Scanner=n;var r=function(){function e(){this._children=[]}return e.prototype.appendChild=function(e){return e instanceof o&&this._children[this._children.length-1]instanceof o?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this},e.prototype.replace=function(e,t){var i=e.parent,n=i.children.indexOf(e),r=i.children.slice(0);r.splice.apply(r,[n,1].concat(t)),i._children=r,function e(t,i){for(var n=0,r=t;nt.index?1:0},Object.defineProperty(t.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof l?this._children[0]:void 0},enumerable:!0,configurable:!0}),t.prototype.toTextmateString=function(){var e="";return this.transform&&(e=this.transform.toTextmateString()),0!==this.children.length||this.transform?0===this.children.length?"${"+this.index+e+"}":this.choice?"${"+this.index+"|"+this.choice.toTextmateString()+"|"+e+"}":"${"+this.index+":"+this.children.map(function(e){return e.toTextmateString()}).join("")+e+"}":"$"+this.index},t.prototype.clone=function(){var e=new t(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(function(e){return e.clone()}),e},t}(s);t.Placeholder=c;var l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=[],t}return a(t,e),t.prototype.appendChild=function(e){return e instanceof o&&(e.parent=this,this.options.push(e)),this},t.prototype.toString=function(){return this.options[0].value},t.prototype.toTextmateString=function(){return this.options.map(function(e){return e.value.replace(/\||,/g,"\\$&")}).join(",")},t.prototype.len=function(){return this.options[0].len()},t.prototype.clone=function(){var e=new t;return this.options.forEach(e.appendChild,e),e},t}(r);t.Choice=l;var u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.resolve=function(e){var t=this,i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(function(e){return e instanceof d&&Boolean(e.elseValue)})&&(n=this._replace([])),n},t.prototype._replace=function(e){for(var t="",i=0,n=this._children;i0;){var n=i.shift();if(!t(n))break;i.unshift.apply(i,n.children)}}t.Variable=h;var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),Object.defineProperty(t.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk(function(i){return i instanceof c&&(t.push(i),e=!e||e.index0?r.set(e.index,e.children):o.push(e)),!0});for(var a=0,l=o;a0&&t),!r.has(0)&&i&&n.appendChild(new c(0)),n},e.prototype._accept=function(e,t){if(void 0===e||this._token.type===e){var i=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),i}return!1},e.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},e.prototype._until=function(e){if(14===this._token.type)return!1;for(var t=this._token;this._token.type!==e;)if(this._token=this._scanner.next(),14===this._token.type)return!1;var i=this._scanner.value.substring(t.pos,this._token.pos);return this._token=this._scanner.next(),i},e.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},e.prototype._parseEscaped=function(e){var t;return!!(t=this._accept(5,!0))&&(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new o(t)),!0)},e.prototype._parseTabstopOrVariableName=function(e){var t,i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new c(Number(t)):new h(t)),!0):this._backTo(i)},e.prototype._parseComplexPlaceholder=function(e){var t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);var n=new c(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}else{if(!(n.index>0&&this._accept(7)))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(var r=new l;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(n.appendChild(r),this._accept(4)))return e.appendChild(n),!0}return this._backTo(i),!1}}},e.prototype._parseChoiceElement=function(e){for(var t=this._token,i=[];2!==this._token.type&&7!==this._token.type;){var n=void 0;if(!(n=(n=this._accept(5,!0))?this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:this._accept(void 0,!0)))return this._backTo(t),!1;i.push(n)}return 0===i.length?(this._backTo(t),!1):(e.appendChild(new o(i.join(""))),!0)},e.prototype._parseComplexVariable=function(e){var t,i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);var n=new h(t);if(!this._accept(1))return this._accept(6)?this._parseTransform(n)?(e.appendChild(n),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(n),!0):this._backTo(i);for(;;){if(this._accept(4))return e.appendChild(n),!0;if(!this._parse(n))return e.appendChild(new o("${"+t+":")),n.children.forEach(e.appendChild,e),!0}},e.prototype._parseTransform=function(e){for(var t=new u,i="",n="";!this._accept(6);){var r=void 0;if(r=this._accept(5,!0))i+=r=this._accept(6,!0)||r;else{if(14===this._token.type)return!1;i+=this._accept(void 0,!0)}}for(;!this._accept(6);){r=void 0;if(r=this._accept(5,!0))r=this._accept(5,!0)||this._accept(6,!0)||r,t.appendChild(new o(r));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1}for(;!this._accept(4);){if(14===this._token.type)return!1;n+=this._accept(void 0,!0)}try{t.regexp=new RegExp(i,n)}catch(e){return!1}return e.transform=t,!0},e.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(0))return!1;var i=!1;this._accept(3)&&(i=!0);var n=this._accept(8,!0);if(!n)return this._backTo(t),!1;if(!i)return e.appendChild(new d(Number(n))),!0;if(this._accept(4))return e.appendChild(new d(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1;if(this._accept(6)){var r=this._accept(9,!0);return r&&this._accept(4)?(e.appendChild(new d(Number(n),r)),!0):(this._backTo(t),!1)}if(this._accept(11)){if(o=this._until(4))return e.appendChild(new d(Number(n),void 0,o,void 0)),!0}else if(this._accept(12)){if(s=this._until(4))return e.appendChild(new d(Number(n),void 0,void 0,s)),!0}else if(this._accept(13)){var o;if(o=this._until(1))if(s=this._until(4))return e.appendChild(new d(Number(n),void 0,o,s)),!0}else{var s;if(s=this._until(4))return e.appendChild(new d(Number(n),void 0,void 0,s)),!0}return this._backTo(t),!1},e.prototype._parseAnything=function(e){return 14!==this._token.type&&(e.appendChild(new o(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},e}();t.SnippetParser=g}),define(i[956],n([0,1,17,8,348]),function(e,t,i,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.create=function(t,o){if(!o.getConfiguration().contribInfo.suggest.localityBonus)return Promise.resolve(e.None);if(!o.hasModel())return Promise.resolve(e.None);var s=o.getModel(),c=o.getPosition();return t.canComputeWordRanges(s.uri)?(new r.BracketSelectionRangeProvider).provideSelectionRanges(s,[c]).then(function(r){return r&&0!==r.length&&0!==r[0].length?t.computeWordRanges(s.uri,r[0][0].range).then(function(t){return new(function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return a(s,e),s.prototype.distance=function(e,s){if(!t||!c.equals(o.getPosition()))return 0;if(17===s.kind)return 2<<20;var a=s.label,l=t[a];if(i.isFalsyOrEmpty(l))return 2<<20;for(var u=i.binarySearch(l,n.Range.fromPositions(e),n.Range.compareRangesUsingStarts),d=u>=0?l[u]:l[Math.max(0,~u-1)],h=r.length,p=0,f=r[0];p=0){var r=this.renderedElements[n];this.trait.unrender(i),r.index=t}else{r={index:t,templateData:i};this.renderedElements.push(r)}this.trait.renderIndex(t,i)},e.prototype.splice=function(e,t,i){for(var n=[],r=0,o=this.renderedElements;r=e+t&&n.push({index:s.index+i-t,templateData:s.templateData})}this.renderedElements=n},e.prototype.renderIndexes=function(e){for(var t=0,i=this.renderedElements;t-1&&this.trait.renderIndex(r,o)}},e.prototype.disposeTemplate=function(e){var t=o.firstIndex(this.renderedElements,function(t){return t.templateData===e});t<0||this.renderedElements.splice(t,1)},e}(),E=function(){function e(e){this._trait=e,this._onChange=new f.Emitter,this.indexes=[]}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new w(this)},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,i){var n=i.length-t,r=e+t,o=this.indexes.filter(function(t){return t=r}).map(function(e){return e+n}));this.renderer.splice(e,t,i.length),this.set(o)},e.prototype.renderIndex=function(e,t){c.toggleClass(t,this._trait,this.contains(e))},e.prototype.unrender=function(e){c.removeClass(e,this._trait)},e.prototype.set=function(e,t){var i=this.indexes;this.indexes=e;var n=H(i,e);return this.renderer.renderIndexes(n),this._onChange.fire({indexes:e,browserEvent:t}),i},e.prototype.get=function(){return this.indexes},e.prototype.contains=function(e){return this.indexes.some(function(t){return t===e})},e.prototype.dispose=function(){this._onChange=n.dispose(this._onChange)},p([s.memoize],e.prototype,"renderer",null),e}(),I=function(e){function t(){return e.call(this,"focused")||this}return a(t,e),t.prototype.renderIndex=function(t,i){e.prototype.renderIndex.call(this,t,i),this.contains(t)?i.setAttribute("aria-selected","true"):i.removeAttribute("aria-selected")},t}(E),x=function(){function e(e,t,i){this.trait=e,this.view=t,this.identityProvider=i}return e.prototype.splice=function(e,t,i){var n=this;if(!this.identityProvider)return this.trait.splice(e,t,i.map(function(){return!1}));var r=this.trait.get().map(function(e){return n.identityProvider.getId(n.view.element(e)).toString()}),o=i.map(function(e){return r.indexOf(n.identityProvider.getId(e).toString())>-1});this.trait.splice(e,t,o)},e}();function D(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var k,L=function(){function e(e,t,i){this.list=e,this.view=t;var n=!(!1===i.multipleSelectionSupport);this.disposables=[],this.openController=i.openController||F;var r=f.Event.chain(g.domEvent(t.domNode,"keydown")).filter(function(e){return!D(e.target)}).map(function(e){return new h.StandardKeyboardEvent(e)});r.filter(function(e){return 3===e.keyCode}).on(this.onEnter,this,this.disposables),r.filter(function(e){return 16===e.keyCode}).on(this.onUpArrow,this,this.disposables),r.filter(function(e){return 18===e.keyCode}).on(this.onDownArrow,this,this.disposables),r.filter(function(e){return 11===e.keyCode}).on(this.onPageUpArrow,this,this.disposables),r.filter(function(e){return 12===e.keyCode}).on(this.onPageDownArrow,this,this.disposables),r.filter(function(e){return 9===e.keyCode}).on(this.onEscape,this,this.disposables),n&&r.filter(function(e){return(u.isMacintosh?e.metaKey:e.ctrlKey)&&31===e.keyCode}).on(this.onCtrlA,this,this.disposables)}return e.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus(),e.browserEvent),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent)},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(1,!1,e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(e.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(o.range(this.list.length),e.browserEvent),this.view.domNode.focus()},e.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([],e.browserEvent),this.view.domNode.focus()},e.prototype.dispose=function(){this.disposables=n.dispose(this.disposables)},e}();function M(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30||e.keyCode>=80&&e.keyCode<=90)}!function(e){e[e.Idle=0]="Idle",e[e.Typing=1]="Typing"}(k||(k={})),t.mightProducePrintableCharacter=M;var R=function(){function e(e,t,i){this.list=e,this.view=t,this.keyboardNavigationLabelProvider=i,this.enabled=!1,this.state=k.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=[],this.disposables=[],this.updateOptions(e.options)}return e.prototype.updateOptions=function(e){void 0===e.enableKeyboardNavigation||!!e.enableKeyboardNavigation?this.enable():this.disable(),void 0!==e.automaticKeyboardNavigation&&(this.automaticKeyboardNavigation=e.automaticKeyboardNavigation)},e.prototype.toggle=function(){this.triggered=!this.triggered},e.prototype.enable=function(){var e=this;if(!this.enabled){var t=f.Event.chain(g.domEvent(this.view.domNode,"keydown")).filter(function(e){return!D(e.target)}).filter(function(){return e.automaticKeyboardNavigation||e.triggered}).map(function(e){return new h.StandardKeyboardEvent(e)}).filter(this.keyboardNavigationLabelProvider.mightProducePrintableCharacter?function(t){return e.keyboardNavigationLabelProvider.mightProducePrintableCharacter(t)}:function(e){return M(e)}).forEach(function(e){e.stopPropagation(),e.preventDefault()}).map(function(e){return e.browserEvent.key}).event,i=f.Event.debounce(t,function(){return null},800);f.Event.reduce(f.Event.any(t,i),function(e,t){return null===t?null:(e||"")+t})(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1}},e.prototype.disable=function(){this.enabled&&(this.enabledDisposables=n.dispose(this.enabledDisposables),this.enabled=!1,this.triggered=!1)},e.prototype.onInput=function(e){if(!e)return this.state=k.Idle,void(this.triggered=!1);var t=this.list.getFocus(),i=t.length>0?t[0]:0,n=this.state===k.Idle?1:0;this.state=k.Typing;for(var r=0;r=0&&e[r]===t-(i-r);)n.push(e[r--]);n.reverse(),r=i;for(;r=e.length)i.push(t[r++]);else if(r>=t.length)i.push(e[n++]);else{if(e[n]===t[r]){n++,r++;continue}e[n]=e.length)i.push(t[r++]);else if(r>=t.length)i.push(e[n++]);else{if(e[n]===t[r]){i.push(e[n]),n++,r++;continue}e[n]-1?t:[e]},e.prototype.getDragURI=function(e){return this.dnd.getDragURI(e)},e.prototype.getDragLabel=function(e){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(e)},e.prototype.onDragStart=function(e,t){this.dnd.onDragStart&&this.dnd.onDragStart(e,t)},e.prototype.onDragOver=function(e,t,i,n){return this.dnd.onDragOver(e,t,i,n)},e.prototype.drop=function(e,t,i,n){this.dnd.drop(e,t,i,n)},e}(),q=function(){function e(e,t,n,r){void 0===r&&(r=z),this._options=r,this.eventBufferer=new f.EventBufferer,this._onDidOpen=new f.Emitter,this.onDidOpen=this._onDidOpen.event,this._onPin=new f.Emitter,this.didJustPressContextMenuKey=!1,this._onDidDispose=new f.Emitter,this.focus=new I,this.selection=new E("selected"),b.mixin(r,V,!1);var o=[this.focus.renderer,this.selection.renderer];r.accessibilityProvider&&o.push(new j(r.accessibilityProvider)),n=n.map(function(e){return new U(e.templateId,o.concat([e]))});var s=l({},r,{dnd:r.dnd&&new G(this,r.dnd)});if(this.view=new m.ListView(e,t,n,s),"string"!=typeof r.ariaRole?this.view.domNode.setAttribute("role",v.ListAriaRootRole.TREE):this.view.domNode.setAttribute("role",r.ariaRole),this.styleElement=c.createStyleSheet(this.view.domNode),this.styleController=r.styleController||new B(this.styleElement,this.view.domId),this.spliceable=new _.CombinedSpliceable([new x(this.focus,this.view,r.identityProvider),new x(this.selection,this.view,r.identityProvider),this.view]),this.disposables=[this.focus,this.selection,this.view,this._onDidDispose],this.onDidFocus=f.Event.map(g.domEvent(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=f.Event.map(g.domEvent(this.view.domNode,"blur",!0),function(){return null}),this.disposables.push(new O(this,this.view)),"boolean"!=typeof r.keyboardSupport||r.keyboardSupport){var a=new L(this,this.view,r);this.disposables.push(a)}r.keyboardNavigationLabelProvider&&(this.typeLabelController=new R(this,this.view,r.keyboardNavigationLabelProvider),this.disposables.push(this.typeLabelController)),this.disposables.push(this.createMouseController(r)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),r.ariaLabel&&this.view.domNode.setAttribute("aria-label",i.localize(0,null,r.ariaLabel)),this.style(r)}return Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return f.Event.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(t){return e.toListEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){var e=this;return f.Event.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(t){return e.toListEvent(t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onPin",{get:function(){var e=this;return f.Event.map(this._onPin.event,function(t){return e.toListEvent({indexes:t})})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidScroll",{get:function(){return this.view.onDidScroll},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseUp",{get:function(){return this.view.onMouseUp},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseOver",{get:function(){return this.view.onMouseOver},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMove",{get:function(){return this.view.onMouseMove},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseOut",{get:function(){return this.view.onMouseOut},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this,t=f.Event.chain(g.domEvent(this.view.domNode,"keydown")).map(function(e){return new h.StandardKeyboardEvent(e)}).filter(function(t){return e.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode}).filter(function(e){return e.preventDefault(),e.stopPropagation(),!1}).event,i=f.Event.chain(g.domEvent(this.view.domNode,"keyup")).filter(function(){var t=e.didJustPressContextMenuKey;return e.didJustPressContextMenuKey=!1,t}).filter(function(){return e.getFocus().length>0&&!!e.view.domElement(e.getFocus()[0])}).map(function(t){var i=e.getFocus()[0];return{index:i,element:e.view.element(i),anchor:e.view.domElement(i),browserEvent:t}}).event,n=f.Event.chain(this.view.onContextMenu).filter(function(){return!e.didJustPressContextMenuKey}).map(function(e){var t=e.element,i=e.index,n=e.browserEvent;return{element:t,index:i,anchor:{x:n.clientX+1,y:n.clientY},browserEvent:n}}).event;return f.Event.any(t,i,n)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyDown",{get:function(){return g.domEvent(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyUp",{get:function(){return g.domEvent(this.view.domNode,"keyup")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onKeyPress",{get:function(){return g.domEvent(this.view.domNode,"keypress")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this._onDidDispose.event},enumerable:!0,configurable:!0}),e.prototype.createMouseController=function(e){return new W(this)},e.prototype.updateOptions=function(e){void 0===e&&(e={}),this._options=l({},this._options,e),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,i){var n=this;if(void 0===i&&(i=[]),e<0||e>this.view.length)throw new Error("Invalid start index: "+e);if(t<0)throw new Error("Invalid delete count: "+t);0===t&&0===i.length||this.eventBufferer.bufferEvents(function(){return n.spliceable.splice(e,t,i)})},e.prototype.updateWidth=function(e){this.view.updateWidth(e)},e.prototype.rerender=function(){this.view.rerender()},e.prototype.element=function(e){return this.view.element(e)},Object.defineProperty(e.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeContentHeight",{get:function(){return this.view.onDidChangeContentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(e){this.view.setScrollTop(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollHeight",{get:function(){return this.view.scrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderHeight",{get:function(){return this.view.renderHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstVisibleIndex",{get:function(){return this.view.firstVisibleIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastVisibleIndex",{get:function(){return this.view.lastVisibleIndex},enumerable:!0,configurable:!0}),e.prototype.domFocus=function(){this.view.domNode.focus()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.toggleKeyboardNavigation=function(){this.typeLabelController&&this.typeLabelController.toggle()},e.prototype.setSelection=function(e,t){for(var i=0,n=e;i=this.length)throw new Error("Invalid index "+r)}e=e.sort(K),this.selection.set(e,t)},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.getSelectedElements=function(){var e=this;return this.getSelection().map(function(t){return e.view.element(t)})},e.prototype.setFocus=function(e,t){for(var i=0,n=e;i=this.length)throw new Error("Invalid index "+r)}e=e.sort(K),this.focus.set(e,t)},e.prototype.focusNext=function(e,t,i,n){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var r=this.focus.get(),o=this.findNextIndex(r.length>0?r[0]+e:0,t,n);o>-1&&this.setFocus([o],i)}},e.prototype.focusPrevious=function(e,t,i,n){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var r=this.focus.get(),o=this.findPreviousIndex(r.length>0?r[0]-e:0,t,n);o>-1&&this.setFocus([o],i)}},e.prototype.focusNextPage=function(e,t){var i=this,n=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);n=0===n?0:n-1;var r=this.view.element(n),o=this.getFocusedElements()[0];if(o!==r){var s=this.findPreviousIndex(n,!1,t);s>-1&&o!==this.view.element(s)?this.setFocus([s],e):this.setFocus([n],e)}else{var a=this.view.getScrollTop();this.view.setScrollTop(a+this.view.renderHeight-this.view.elementHeight(n)),this.view.getScrollTop()!==a&&setTimeout(function(){return i.focusNextPage(e,t)},0)}},e.prototype.focusPreviousPage=function(e,t){var i,n=this,r=this.view.getScrollTop();i=0===r?this.view.indexAt(r):this.view.indexAfter(r-1);var o=this.view.element(i),s=this.getFocusedElements()[0];if(s!==o){var a=this.findNextIndex(i,!1,t);a>-1&&s!==this.view.element(a)?this.setFocus([a],e):this.setFocus([i],e)}else{var c=r;this.view.setScrollTop(r-this.view.renderHeight),this.view.getScrollTop()!==c&&setTimeout(function(){return n.focusPreviousPage(e,t)},0)}},e.prototype.focusLast=function(e,t){if(0!==this.length){var i=this.findPreviousIndex(this.length-1,!1,t);i>-1&&this.setFocus([i],e)}},e.prototype.focusFirst=function(e,t){if(0!==this.length){var i=this.findNextIndex(0,!1,t);i>-1&&this.setFocus([i],e)}},e.prototype.findNextIndex=function(e,t,i){void 0===t&&(t=!1);for(var n=0;n=this.length&&!t)return-1;if(e%=this.length,!i||i(this.element(e)))return e;e++}return-1},e.prototype.findPreviousIndex=function(e,t,i){void 0===t&&(t=!1);for(var n=0;n=this.length)throw new Error("Invalid index "+e);var i=this.view.getScrollTop(),n=this.view.elementTop(e),o=this.view.elementHeight(e);if(r.isNumber(t)){var s=o-this.view.renderHeight;this.view.setScrollTop(s*S.clamp(t,0,1)+n)}else{var a=n+o,c=i+this.view.renderHeight;n=c&&this.view.setScrollTop(a-this.view.renderHeight)}},e.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var t=this.view.getScrollTop(),i=this.view.elementTop(e),n=this.view.elementHeight(e);if(it+this.view.renderHeight)return null;var r=n-this.view.renderHeight;return Math.abs((t-i)/r)},e.prototype.isDOMFocused=function(){return this.view.domNode===document.activeElement},e.prototype.getHTMLElement=function(){return this.view.domNode},e.prototype.open=function(e,t){for(var i=this,n=0,r=e;n=this.length)throw new Error("Invalid index "+o)}this._onDidOpen.fire({indexes:e,elements:e.map(function(e){return i.view.element(e)}),browserEvent:t})},e.prototype.pin=function(e){for(var t=0,i=e;t=this.length)throw new Error("Invalid index "+n)}this._onPin.fire(e)},e.prototype.style=function(e){this.styleController.style(e)},e.prototype.toListEvent=function(e){var t=this,i=e.indexes,n=e.browserEvent;return{indexes:i,elements:i.map(function(e){return t.view.element(e)}),browserEvent:n}},e.prototype._onFocusChange=function(){var e=this.focus.get();e.length>0?this.view.domNode.setAttribute("aria-activedescendant",this.view.getElementDomId(e[0])):this.view.domNode.removeAttribute("aria-activedescendant"),this.view.domNode.setAttribute("role","tree"),c.toggleClass(this.view.domNode,"element-focused",e.length>0)},e.prototype._onSelectionChange=function(){var e=this.selection.get();c.toggleClass(this.view.domNode,"selection-none",0===e.length),c.toggleClass(this.view.domNode,"selection-single",1===e.length),c.toggleClass(this.view.domNode,"selection-multiple",e.length>1)},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables=n.dispose(this.disposables),this._onDidOpen.dispose(),this._onPin.dispose(),this._onDidDispose.dispose()},p([s.memoize],e.prototype,"onFocusChange",null),p([s.memoize],e.prototype,"onSelectionChange",null),p([s.memoize],e.prototype,"onPin",null),p([s.memoize],e.prototype,"onContextMenu",null),e}();t.List=q}),define(i[975],n([0,1,17,122,5,36,368]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){this.renderer=e,this.modelProvider=t}return Object.defineProperty(e.prototype,"templateId",{get:function(){return this.renderer.templateId},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return{data:this.renderer.renderTemplate(e),disposable:{dispose:function(){}}}},e.prototype.renderElement=function(e,t,i,n){var r=this;if(i.disposable&&i.disposable.dispose(),i.data){var s=this.modelProvider();if(s.isResolved(e))return this.renderer.renderElement(s.get(e),e,i.data,n);var a=new o.CancellationTokenSource,c=s.resolve(e,a.token);i.disposable={dispose:function(){return a.cancel()}},this.renderer.renderPlaceholder(e,i.data),c.then(function(t){return r.renderer.renderElement(t,e,i.data,n)})}},e.prototype.disposeTemplate=function(e){e.disposable&&(e.disposable.dispose(),e.disposable=void 0),e.data&&(this.renderer.disposeTemplate(e.data),e.data=void 0)},e}(),a=function(){function e(e,t,i,r){void 0===r&&(r={});var o=this,a=i.map(function(e){return new s(e,function(){return o.model})});this.list=new n.List(e,t,a,r)}return e.prototype.getHTMLElement=function(){return this.list.getHTMLElement()},e.prototype.isDOMFocused=function(){return this.list.getHTMLElement()===document.activeElement},e.prototype.domFocus=function(){this.list.domFocus()},Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.list.onDidFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this.list.onDidBlur},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"widget",{get:function(){return this.list},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this.list.onDidDispose},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return r.Event.map(this.list.onFocusChange,function(t){var i=t.elements,n=t.indexes;return{elements:i.map(function(t){return e._model.get(t)}),indexes:n}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onOpen",{get:function(){var e=this;return r.Event.map(this.list.onDidOpen,function(t){var i=t.elements,n=t.indexes,r=t.browserEvent;return{elements:i.map(function(t){return e._model.get(t)}),indexes:n,browserEvent:r}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){var e=this;return r.Event.map(this.list.onSelectionChange,function(t){var i=t.elements,n=t.indexes;return{elements:i.map(function(t){return e._model.get(t)}),indexes:n}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onPin",{get:function(){var e=this;return r.Event.map(this.list.onPin,function(t){var i=t.elements,n=t.indexes;return{elements:i.map(function(t){return e._model.get(t)}),indexes:n}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return r.Event.map(this.list.onContextMenu,function(t){var i=t.element,n=t.index,r=t.anchor,o=t.browserEvent;return void 0===i?{element:i,index:n,anchor:r,browserEvent:o}:{element:e._model.get(i),index:n,anchor:r,browserEvent:o}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e,this.list.splice(0,this.list.length,i.range(e.length))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.list.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.list.scrollTop},set:function(e){this.list.scrollTop=e},enumerable:!0,configurable:!0}),e.prototype.open=function(e,t){this.list.open(e,t)},e.prototype.setFocus=function(e){this.list.setFocus(e)},e.prototype.focusNext=function(e,t){this.list.focusNext(e,t)},e.prototype.focusPrevious=function(e,t){this.list.focusPrevious(e,t)},e.prototype.focusNextPage=function(){this.list.focusNextPage()},e.prototype.focusPreviousPage=function(){this.list.focusPreviousPage()},e.prototype.getFocus=function(){return this.list.getFocus()},e.prototype.setSelection=function(e){this.list.setSelection(e)},e.prototype.getSelection=function(){return this.list.getSelection()},e.prototype.layout=function(e,t){this.list.layout(e,t)},e.prototype.toggleKeyboardNavigation=function(){this.list.toggleKeyboardNavigation()},e.prototype.reveal=function(e,t){this.list.reveal(e,t)},e.prototype.style=function(e){this.list.style(e)},e.prototype.dispose=function(){this.list.dispose()},e}();t.PagedList=a}),define(i[979],n([0,1,2,5,54,60,7,17,122,105,12,176,974]),function(e,t,i,n,r,o,s,a,c,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=s.$,p=function(){function e(){}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"selectOption.entry.template"},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=Object.create(null);return t.disposables=[],t.root=e,t.text=s.append(e,h(".option-text")),t.decoratorRight=s.append(e,h(".option-decorator-right")),t.itemDescription=s.append(e,h(".option-text-description")),s.addClass(t.itemDescription,"visually-hidden"),t},e.prototype.renderElement=function(e,t,i){var n=i,r=e.text,o=e.decoratorRight,a=e.isDisabled;if(n.text.textContent=r,n.decoratorRight.innerText=o||"","string"==typeof e.description){var c=r.replace(/ /g,"_").toLowerCase()+"_description_"+n.root.id;n.text.setAttribute("aria-describedby",c),n.itemDescription.id=c,n.itemDescription.innerText=e.description}a?s.addClass(n.root,"option-disabled"):s.removeClass(n.root,"option-disabled")},e.prototype.disposeTemplate=function(e){e.disposables=i.dispose(e.disposables)},e}(),f=function(){function e(t,i,r,o,s){this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this.toDispose=[],this._isVisible=!1,this.selectBoxOptions=s||Object.create(null),"number"!=typeof this.selectBoxOptions.minBottomMargin?this.selectBoxOptions.minBottomMargin=e.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.setAttribute("role","combobox"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding","string"==typeof this.selectBoxOptions.ariaLabel&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),this._onDidSelect=new n.Emitter,this.toDispose.push(this._onDidSelect),this.styles=o,this.registerListeners(),this.constructSelectDropDown(r),this.selected=i||0,t&&this.setOptions(t,i)}return e.prototype.getHeight=function(){return 18},e.prototype.getTemplateId=function(){return"selectOption.entry.template"},e.prototype.constructSelectDropDown=function(e){this.contextViewProvider=e,this.selectDropDownContainer=s.$(".monaco-select-box-dropdown-container"),s.addClass(this.selectDropDownContainer,"monaco-select-box-dropdown-padding"),this.selectionDetailsPane=s.append(this.selectDropDownContainer,h(".select-box-details-pane"));var t=s.append(this.selectDropDownContainer,h(".select-box-dropdown-container-width-control")),i=s.append(t,h(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",s.append(i,this.widthControlElement),this._dropDownPosition=0,this.styleElement=s.createStyleSheet(this.selectDropDownContainer)},e.prototype.registerListeners=function(){var e=this;this.toDispose.push(s.addStandardDisposableListener(this.selectElement,"change",function(t){e.selected=t.target.selectedIndex,e._onDidSelect.fire({index:t.target.selectedIndex,selected:t.target.value})})),this.toDispose.push(s.addDisposableListener(this.selectElement,s.EventType.CLICK,function(t){s.EventHelper.stop(t),e._isVisible?e.hideSelectDropDown(!0):e.showSelectDropDown()})),this.toDispose.push(s.addDisposableListener(this.selectElement,s.EventType.MOUSE_DOWN,function(e){s.EventHelper.stop(e)})),this.toDispose.push(s.addDisposableListener(this.selectElement,s.EventType.KEY_DOWN,function(t){var i=new o.StandardKeyboardEvent(t),n=!1;u.isMacintosh?18!==i.keyCode&&16!==i.keyCode&&10!==i.keyCode&&3!==i.keyCode||(n=!0):(18===i.keyCode&&i.altKey||16===i.keyCode&&i.altKey||10===i.keyCode||3===i.keyCode)&&(n=!0),n&&(e.showSelectDropDown(),s.EventHelper.stop(t))}))},Object.defineProperty(e.prototype,"onDidSelect",{get:function(){return this._onDidSelect.event},enumerable:!0,configurable:!0}),e.prototype.setOptions=function(e,t){var i=this;this.options&&a.equals(this.options,e)||(this.options=e,this.selectElement.options.length=0,this._hasDetails=!1,this.options.forEach(function(e,t){i.selectElement.add(i.createOption(e.text,t,e.isDisabled)),"string"==typeof e.description&&(i._hasDetails=!0)})),void 0!==t&&(this.select(t),this._currentSelection=this.selected)},e.prototype.setOptionsList=function(){this.selectList&&this.options&&this.selectList.splice(0,this.selectList.length,this.options)},e.prototype.select=function(e){e>=0&&ethis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected},e.prototype.setAriaLabel=function(e){this.selectBoxOptions.ariaLabel=e,this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel)},e.prototype.focus=function(){this.selectElement&&this.selectElement.focus()},e.prototype.blur=function(){this.selectElement&&this.selectElement.blur()},e.prototype.render=function(e){s.addClass(e,"select-container"),e.appendChild(this.selectElement),this.applyStyles()},e.prototype.style=function(e){var t=[];this.styles=e,this.styles.listFocusBackground&&t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: "+this.styles.listFocusBackground+" !important; }"),this.styles.listFocusForeground&&t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused:not(:hover) { color: "+this.styles.listFocusForeground+" !important; }"),this.styles.decoratorRightForeground&&t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row .option-decorator-right { color: "+this.styles.decoratorRightForeground+" !important; }"),this.styles.selectBackground&&this.styles.selectBorder&&!this.styles.selectBorder.equals(this.styles.selectBackground)?(t.push(".monaco-select-box-dropdown-container { border: 1px solid "+this.styles.selectBorder+" } "),t.push(".monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid "+this.styles.selectBorder+" } "),t.push(".monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid "+this.styles.selectBorder+" } ")):this.styles.selectListBorder&&(t.push(".monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid "+this.styles.selectListBorder+" } "),t.push(".monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid "+this.styles.selectListBorder+" } ")),this.styles.listHoverForeground&&(t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:hover { color: "+this.styles.listHoverForeground+" !important; }"),t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: "+this.styles.listActiveSelectionForeground+" !important; }")),this.styles.listHoverBackground&&(t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: "+this.styles.listHoverBackground+" !important; }"),t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: "+this.styles.selectBackground+" !important; }")),this.styles.listFocusOutline&&t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted "+this.styles.listFocusOutline+" !important; outline-offset: -1.6px !important; }"),this.styles.listHoverOutline&&(t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:hover:not(.focused) { outline: 1.6px dashed "+this.styles.listHoverOutline+" !important; outline-offset: -1.6px !important; }"),t.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { outline: none !important; }")),this.styleElement.innerHTML=t.join("\n"),this.applyStyles()},e.prototype.applyStyles=function(){if(this.selectElement){var e=this.styles.selectBackground?this.styles.selectBackground.toString():null,t=this.styles.selectForeground?this.styles.selectForeground.toString():null,i=this.styles.selectBorder?this.styles.selectBorder.toString():null;this.selectElement.style.backgroundColor=e,this.selectElement.style.color=t,this.selectElement.style.borderColor=i}this.selectList&&this.styleList()},e.prototype.styleList=function(){if(this.selectList){var e=this.styles.selectBackground?this.styles.selectBackground.toString():null;this.selectList.style({});var t=this.styles.selectListBackground?this.styles.selectListBackground.toString():e;this.selectDropDownListContainer.style.backgroundColor=t,this.selectionDetailsPane.style.backgroundColor=t;var i=this.styles.focusBorder?this.styles.focusBorder.toString():null;this.selectDropDownContainer.style.outlineColor=i,this.selectDropDownContainer.style.outlineOffset="-1px"}},e.prototype.createOption=function(e,t,i){var n=document.createElement("option");return n.value=e,n.text=e,n.disabled=!!i,n},e.prototype.showSelectDropDown=function(){var e=this;this.selectionDetailsPane.innerText="",this.contextViewProvider&&!this._isVisible&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:function(){return e.selectElement},render:function(t){return e.renderSelectDropDown(t,!0)},layout:function(){e.layoutSelectDropDown()},onHide:function(){s.toggleClass(e.selectDropDownContainer,"visible",!1),s.toggleClass(e.selectElement,"synthetic-focus",!1)},anchorPosition:this._dropDownPosition}),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:function(){return e.selectElement},render:function(t){return e.renderSelectDropDown(t)},layout:function(){return e.layoutSelectDropDown()},onHide:function(){s.toggleClass(e.selectDropDownContainer,"visible",!1),s.toggleClass(e.selectElement,"synthetic-focus",!1)},anchorPosition:this._dropDownPosition}),this._currentSelection=this.selected,this._isVisible=!0)},e.prototype.hideSelectDropDown=function(e){this.contextViewProvider&&this._isVisible&&(this._isVisible=!1,e&&this.selectElement.focus(),this.contextViewProvider.hideContextView())},e.prototype.renderSelectDropDown=function(e,t){var i=this;return e.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(t),{dispose:function(){try{e.removeChild(i.selectDropDownContainer)}catch(e){}}}},e.prototype.measureMaxDetailsHeight=function(){var e=this,t=0;this.options.forEach(function(i,n){e.selectionDetailsPane.innerText="",i.description?(i.descriptionIsMarkdown?e.selectionDetailsPane.appendChild(e.renderDescriptionMarkdown(i.description)):e.selectionDetailsPane.innerText=i.description,e.selectionDetailsPane.style.display="block"):e.selectionDetailsPane.style.display="none",e.selectionDetailsPane.offsetHeight>t&&(t=e.selectionDetailsPane.offsetHeight)}),this.selectionDetailsPane.innerText="";var i=this.options[this.selected].description||null,n=this.options[this.selected].descriptionIsMarkdown||null;return i&&(n?this.selectionDetailsPane.appendChild(this.renderDescriptionMarkdown(i)):this.selectionDetailsPane.innerText=i,this.selectionDetailsPane.style.display="block"),t},e.prototype.layoutSelectDropDown=function(t){if(this._skipLayout)return!1;if(this.selectList){s.toggleClass(this.selectDropDownContainer,"visible",!0);var i=s.getDomNodePagePosition(this.selectElement),n=getComputedStyle(this.selectElement),r=parseFloat(n.getPropertyValue("--dropdown-padding-top"))+parseFloat(n.getPropertyValue("--dropdown-padding-bottom")),o=window.innerHeight-i.top-i.height-(this.selectBoxOptions.minBottomMargin||0),a=i.top-e.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,c=this.selectElement.offsetWidth,l=this.setWidthControlElement(this.widthControlElement),u=Math.max(l,Math.round(c)).toString()+"px";this.selectDropDownContainer.style.width=u,this.selectList.getHTMLElement().style.height="",this.selectList.layout();var d=this.selectList.contentHeight,h=this._hasDetails?this.measureMaxDetailsHeight():0,p=d+r+h,f=Math.floor((o-r-h)/this.getHeight()),g=Math.floor((a-r-h)/this.getHeight());if(t)return!(i.top+i.height>window.innerHeight-22||i.topf&&this.options.length>f?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),s.removeClass(this.selectionDetailsPane,"border-top"),s.addClass(this.selectionDetailsPane,"border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),s.removeClass(this.selectionDetailsPane,"border-bottom"),s.addClass(this.selectionDetailsPane,"border-top")),!0);if(i.top+i.height>window.innerHeight-22||i.topo&&(d=f*this.getHeight())}else p>a&&(d=g*this.getHeight());return this.selectList.layout(d),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=d+r+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=d+r+"px",this.selectDropDownContainer.style.width=u,this.selectDropDownListContainer.setAttribute("tabindex","0"),s.toggleClass(this.selectElement,"synthetic-focus",!0),s.toggleClass(this.selectDropDownContainer,"synthetic-focus",!0),!0}return!1},e.prototype.setWidthControlElement=function(e){var t=0;if(e&&this.options){var i=0,n=0;this.options.forEach(function(e,t){var r=e.text.length+(e.decoratorRight?e.decoratorRight.length:0);r>n&&(i=t,n=r)}),e.innerHTML=this.options[i].text+(this.options[i].decoratorRight?this.options[i].decoratorRight+" ":""),t=s.getTotalWidth(e)}return t},e.prototype.createSelectList=function(e){var t=this;if(!this.selectList){this.selectDropDownListContainer=s.append(e,h(".select-box-dropdown-list-container")),this.listRenderer=new p,this.selectList=new c.List(this.selectDropDownListContainer,this,[this.listRenderer],{ariaLabel:this.selectBoxOptions.ariaLabel,useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1});var i=n.Event.chain(l.domEvent(this.selectDropDownListContainer,"keydown")).filter(function(){return t.selectList.length>0}).map(function(e){return new o.StandardKeyboardEvent(e)});i.filter(function(e){return 3===e.keyCode}).on(function(e){return t.onEnter(e)},this,this.toDispose),i.filter(function(e){return 9===e.keyCode}).on(function(e){return t.onEscape(e)},this,this.toDispose),i.filter(function(e){return 16===e.keyCode}).on(this.onUpArrow,this,this.toDispose),i.filter(function(e){return 18===e.keyCode}).on(this.onDownArrow,this,this.toDispose),i.filter(function(e){return 12===e.keyCode}).on(this.onPageDown,this,this.toDispose),i.filter(function(e){return 11===e.keyCode}).on(this.onPageUp,this,this.toDispose),i.filter(function(e){return 14===e.keyCode}).on(this.onHome,this,this.toDispose),i.filter(function(e){return 13===e.keyCode}).on(this.onEnd,this,this.toDispose),i.filter(function(e){return e.keyCode>=21&&e.keyCode<=56||e.keyCode>=80&&e.keyCode<=108}).on(this.onCharacter,this,this.toDispose),n.Event.chain(l.domEvent(this.selectList.getHTMLElement(),"mouseup")).filter(function(){return t.selectList.length>0}).on(function(e){return t.onMouseUp(e)},this,this.toDispose),this.toDispose.push(this.selectList.onDidBlur(function(e){return t.onListBlur()}),this.selectList.onMouseOver(function(e){return void 0!==e.index&&t.selectList.setFocus([e.index])}),this.selectList.onFocusChange(function(e){return t.onListFocus(e)})),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}},e.prototype.onMouseUp=function(e){s.EventHelper.stop(e);var t=e.target;if(t&&!t.classList.contains("slider")){var i=t.closest(".monaco-list-row");if(i){var n=Number(i.getAttribute("data-index")),r=i.classList.contains("option-disabled");n>=0&&nthis.selected+2)this.selected+=2;else{if(e)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}},e.prototype.onUpArrow=function(){this.selected>0&&(this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]))},e.prototype.onPageUp=function(e){var t=this;s.EventHelper.stop(e),this.selectList.focusPreviousPage(),setTimeout(function(){t.selected=t.selectList.getFocus()[0],t.options[t.selected].isDisabled&&t.selected0&&(t.selected--,t.selectList.setFocus([t.selected])),t.selectList.reveal(t.selected),t.select(t.selected)},1)},e.prototype.onHome=function(e){s.EventHelper.stop(e),this.options.length<2||(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))},e.prototype.onEnd=function(e){s.EventHelper.stop(e),this.options.length<2||(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))},e.prototype.onCharacter=function(e){for(var t=r.KeyCodeUtils.toString(e.keyCode),i=-1,n=0;n=i.actionsList.children.length?(i.actionsList.appendChild(n),i.items.push(o)):(i.actionsList.insertBefore(n,i.actionsList.children[r]),i.items.splice(r,0,o),r++)})},t.prototype.getWidth=function(e){if(e>=0&&e=0&&e=0&&e1||(r.visible?r.hide():r.show())}))}r._register(o.addDisposableListener(r._label,o.EventType.KEY_UP,function(e){var t=new s.StandardKeyboardEvent(e);(t.equals(3)||t.equals(10))&&(o.EventHelper.stop(e,!0),r.visible?r.hide():r.show())}));var f=a(r._label);return f&&r._register(f),i.Gesture.addTarget(r._label),r}return a(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{set:function(e){this._label&&(this._label.title=e)},enumerable:!0,configurable:!0}),t.prototype.show=function(){this.visible=!0},t.prototype.hide=function(){this.visible=!1},t.prototype.onEvent=function(e,t){this.hide()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)},t}(n.ActionRunner);t.BaseDropdown=c;var u=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n.contextViewProvider=i.contextViewProvider,n}return a(t,e),t.prototype.show=function(){var t=this;e.prototype.show.call(this),o.addClass(this.element,"active"),this.contextViewProvider.showContextView({getAnchor:function(){return t.getAnchor()},render:function(e){return t.renderContents(e)},onDOMEvent:function(e,i){t.onEvent(e,i)},onHide:function(){return t.onHide()}})},t.prototype.getAnchor=function(){return this.element},t.prototype.onHide=function(){o.removeClass(this.element,"active")},t.prototype.hide=function(){e.prototype.hide.call(this),this.contextViewProvider&&this.contextViewProvider.hideContextView()},t.prototype.renderContents=function(e){return null},t}(c);t.Dropdown=u;var d=function(e){function t(t,i){var n=e.call(this,t,i)||this;return n._contextMenuProvider=i.contextMenuProvider,n.actions=i.actions||[],n.actionProvider=i.actionProvider,n.menuClassName=i.menuClassName||"",n}return a(t,e),Object.defineProperty(t.prototype,"menuOptions",{get:function(){return this._menuOptions},set:function(e){this._menuOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actions",{get:function(){return this.actionProvider?this.actionProvider.getActions():this._actions},set:function(e){this._actions=e},enumerable:!0,configurable:!0}),t.prototype.show=function(){var t=this;e.prototype.show.call(this),o.addClass(this.element,"active"),this._contextMenuProvider.showContextMenu({getAnchor:function(){return t.element},getActions:function(){return t.actions},getActionsContext:function(){return t.menuOptions?t.menuOptions.context:null},getActionItem:function(e){return t.menuOptions&&t.menuOptions.actionItemProvider?t.menuOptions.actionItemProvider(e):null},getKeyBinding:function(e){return t.menuOptions&&t.menuOptions.getKeyBinding?t.menuOptions.getKeyBinding(e):void 0},getMenuClassName:function(){return t.menuClassName},onHide:function(){return t.onHide()},actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions.anchorAlignment})},t.prototype.hide=function(){e.prototype.hide.call(this)},t.prototype.onHide=function(){this.hide(),o.removeClass(this.element,"active")},t}(c);t.DropdownMenu=d;var h=function(e){function t(t,i,n,r,o,s,a,c){var l=e.call(this,null,t)||this;return l.menuActionsOrProvider=i,l.contextMenuProvider=n,l.actionItemProvider=r,l.actionRunner=o,l.keybindings=s,l.clazz=a,l.anchorAlignmentProvider=c,l}return a(t,e),t.prototype.render=function(e){var t=this,i={contextMenuProvider:this.contextMenuProvider,labelRenderer:function(e){return t.element=o.append(e,o.$("a.action-label.icon")),o.addClasses(t.element,t.clazz),t.element.tabIndex=0,t.element.setAttribute("role","button"),t.element.setAttribute("aria-haspopup","true"),t.element.title=t._action.label||"",null}};if(Array.isArray(this.menuActionsOrProvider)?i.actions=this.menuActionsOrProvider:i.actionProvider=this.menuActionsOrProvider,this.dropdownMenu=this._register(new d(e,i)),this.dropdownMenu.menuOptions={actionItemProvider:this.actionItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.keybindings,context:this._context},this.anchorAlignmentProvider){var n=this;this.dropdownMenu.menuOptions=l({},this.dropdownMenu.menuOptions,{get anchorAlignment(){return n.anchorAlignmentProvider()}})}},t.prototype.setActionContext=function(t){e.prototype.setActionContext.call(this,t),this.dropdownMenu&&(this.dropdownMenu.menuOptions.context=t)},t.prototype.show=function(){this.dropdownMenu&&this.dropdownMenu.show()},t}(r.BaseActionItem);t.DropdownMenuActionItem=h}),define(i[391],n([0,1,209,969,896]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n.localize(0,null),o=n.localize(1,null),s=n.localize(2,null),c=function(e){function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:r+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return a(t,e),t}(i.Checkbox);t.CaseSensitiveCheckbox=c;var l=function(e){function t(t){return e.call(this,{actionClassName:"monaco-whole-word",title:o+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return a(t,e),t}(i.Checkbox);t.WholeWordsCheckbox=l;var u=function(e){function t(t){return e.call(this,{actionClassName:"monaco-regex",title:s+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return a(t,e),t}(i.Checkbox);t.RegexCheckbox=u}),define(i[126],n([0,1,970,68,7,176,101,61,5,69,49,25,948,903]),function(e,t,i,n,r,o,s,c,l,u,d,h,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=r.$,g={inputBackground:d.Color.fromHex("#3C3C3C"),inputForeground:d.Color.fromHex("#CCCCCC"),inputValidationInfoBorder:d.Color.fromHex("#55AAFF"),inputValidationInfoBackground:d.Color.fromHex("#063B49"),inputValidationWarningBorder:d.Color.fromHex("#B89500"),inputValidationWarningBackground:d.Color.fromHex("#352A05"),inputValidationErrorBorder:d.Color.fromHex("#BE1100"),inputValidationErrorBackground:d.Color.fromHex("#5A1D1D")},v=function(e){function t(t,i,o){var s=e.call(this)||this;s.state="idle",s._onDidChange=s._register(new l.Emitter),s.onDidChange=s._onDidChange.event,s._onDidHeightChange=s._register(new l.Emitter),s.onDidHeightChange=s._onDidHeightChange.event,s.contextViewProvider=i,s.options=o||Object.create(null),h.mixin(s.options,g,!1),s.message=null,s.cachedHeight=null,s.placeholder=s.options.placeholder||"",s.ariaLabel=s.options.ariaLabel||"",s.inputBackground=s.options.inputBackground,s.inputForeground=s.options.inputForeground,s.inputBorder=s.options.inputBorder,s.inputValidationInfoBorder=s.options.inputValidationInfoBorder,s.inputValidationInfoBackground=s.options.inputValidationInfoBackground,s.inputValidationInfoForeground=s.options.inputValidationInfoForeground,s.inputValidationWarningBorder=s.options.inputValidationWarningBorder,s.inputValidationWarningBackground=s.options.inputValidationWarningBackground,s.inputValidationWarningForeground=s.options.inputValidationWarningForeground,s.inputValidationErrorBorder=s.options.inputValidationErrorBorder,s.inputValidationErrorBackground=s.options.inputValidationErrorBackground,s.inputValidationErrorForeground=s.options.inputValidationErrorForeground,s.options.validationOptions&&(s.validation=s.options.validationOptions.validation),s.element=r.append(t,f(".monaco-inputbox.idle"));var a=s.options.flexibleHeight?"textarea":"input",u=r.append(s.element,f(".wrapper"));return s.input=r.append(u,f(a+".input")),s.input.setAttribute("autocorrect","off"),s.input.setAttribute("autocapitalize","off"),s.input.setAttribute("spellcheck","false"),s.onfocus(s.input,function(){return r.addClass(s.element,"synthetic-focus")}),s.onblur(s.input,function(){return r.removeClass(s.element,"synthetic-focus")}),s.options.flexibleHeight?(s.mirror=r.append(u,f("div.mirror")),s.mirror.innerHTML=" "):(s.input.type=s.options.type||"text",s.input.setAttribute("wrap","off")),s.ariaLabel&&s.input.setAttribute("aria-label",s.ariaLabel),s.placeholder&&s.setPlaceHolder(s.placeholder),s.oninput(s.input,function(){return s.onValueChange()}),s.onblur(s.input,function(){return s.onBlur()}),s.onfocus(s.input,function(){return s.onFocus()}),s.placeholder&&n.isIE&&s.onclick(s.input,function(e){r.EventHelper.stop(e,!0),s.input.focus()}),setTimeout(function(){s.input&&s.updateMirror()},0),s.options.actions&&(s.actionbar=s._register(new c.ActionBar(s.element)),s.actionbar.push(s.options.actions,{icon:!0,label:!1})),s.applyStyles(),s}return a(t,e),t.prototype.onBlur=function(){this._hideMessage()},t.prototype.onFocus=function(){this._showMessage()},t.prototype.setPlaceHolder=function(e){this.input&&(this.input.setAttribute("placeholder",e),this.input.title=e)},t.prototype.setAriaLabel=function(e){this.ariaLabel=e,this.input&&(e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label"))},Object.defineProperty(t.prototype,"mirrorElement",{get:function(){return this.mirror},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return null===this.cachedHeight?r.getTotalHeight(this.element):this.cachedHeight},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.hasFocus=function(){return document.activeElement===this.input},t.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},t.prototype.enable=function(){this.input.removeAttribute("disabled")},t.prototype.disable=function(){this.input.disabled=!0,this._hideMessage()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},Object.defineProperty(t.prototype,"width",{get:function(){return r.getTotalWidth(this.input)},set:function(e){this.input.style.width=e+"px",this.mirror&&(this.mirror.style.width=e+"px")},enumerable:!0,configurable:!0}),t.prototype.showMessage=function(e,t){this.message=e,r.removeClass(this.element,"idle"),r.removeClass(this.element,"info"),r.removeClass(this.element,"warning"),r.removeClass(this.element,"error"),r.addClass(this.element,this.classForType(e.type));var n,o=this.stylesForType(this.message.type);this.element.style.border=o.border?"1px solid "+o.border:null,n=3===e.type?i.localize(0,null,e.content):2===e.type?i.localize(1,null,e.content):i.localize(2,null,e.content),s.alert(n),(this.hasFocus()||t)&&this._showMessage()},t.prototype.hideMessage=function(){this.message=null,r.removeClass(this.element,"info"),r.removeClass(this.element,"warning"),r.removeClass(this.element,"error"),r.addClass(this.element,"idle"),this._hideMessage(),this.applyStyles()},t.prototype.isInputValid=function(){return!!this.validation&&!this.validation(this.value)},t.prototype.validate=function(){var e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e},t.prototype.stylesForType=function(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}},t.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}},t.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,i=function(){return t.style.width=r.getTotalWidth(e.element)+"px"};this.state="open",this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(n){if(!e.message)return null;t=r.append(n,f(".monaco-inputbox-container")),i();var s={inline:!0,className:"monaco-inputbox-message"},a=e.message.formatContent?o.renderFormattedText(e.message.content,s):o.renderText(e.message.content,s);r.addClass(a,e.classForType(e.message.type));var c=e.stylesForType(e.message.type);return a.style.backgroundColor=c.background?c.background.toString():null,a.style.color=c.foreground?c.foreground.toString():null,a.style.border=c.border?"1px solid "+c.border:null,r.append(t,a),null},layout:i})}},t.prototype._hideMessage=function(){this.contextViewProvider&&"open"===this.state&&(this.state="idle",this.contextViewProvider.hideContextView())},t.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()},t.prototype.updateMirror=function(){if(this.mirror){var e=this.value||this.placeholder,t=10===e.charCodeAt(e.length-1)?" ":"";e+t?this.mirror.textContent=e+t:this.mirror.innerHTML=" ",this.layout()}},t.prototype.style=function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.inputBackground?this.inputBackground.toString():null,t=this.inputForeground?this.inputForeground.toString():null,i=this.inputBorder?this.inputBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=i?"1px":null,this.element.style.borderStyle=i?"solid":null,this.element.style.borderColor=i}},t.prototype.layout=function(){if(this.mirror){var e=this.cachedHeight;this.cachedHeight=r.getTotalHeight(this.mirror),e!==this.cachedHeight&&(this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedHeight))}},t.prototype.dispose=function(){this._hideMessage(),this.element=null,this.input=null,this.contextViewProvider=void 0,this.message=null,this.validation=void 0,this.state=null,this.actionbar=void 0,e.prototype.dispose.call(this)},t}(u.Widget);t.InputBox=v;var m=function(e){function t(t,i,n){var r=e.call(this,t,i,n)||this;return r.history=new p.HistoryNavigator(n.history,100),r}return a(t,e),t.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},t.prototype.getHistory=function(){return this.history.getHistory()},t.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,s.status(this.value))},t.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,s.status(this.value))},t.prototype.clearHistory=function(){this.history.clear()},t.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e},t.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},t.prototype.getNextValue=function(){return this.history.next()||this.history.last()},t}(v);t.HistoryInputBox=m}),define(i[990],n([0,1,968,7,126,69,5,391,893]),function(e,t,i,n,r,o,s,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i.localize(0,null),u=function(e){function t(t,i,n,r){var o=e.call(this)||this;return o._showOptionButtons=n,o.fixFocusOnOptionClickEnabled=!0,o._onDidOptionChange=o._register(new s.Emitter),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new s.Emitter),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new s.Emitter),o.onMouseDown=o._onMouseDown.event,o._onInput=o._register(new s.Emitter),o.onInput=o._onInput.event,o._onKeyUp=o._register(new s.Emitter),o.onKeyUp=o._onKeyUp.event,o._onCaseSensitiveKeyDown=o._register(new s.Emitter),o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event,o._onRegexKeyDown=o._register(new s.Emitter),o.onRegexKeyDown=o._onRegexKeyDown.event,o._lastHighlightFindOptions=0,o.contextViewProvider=i,o.placeholder=r.placeholder||"",o.validation=r.validation,o.label=r.label||l,o.inputActiveOptionBorder=r.inputActiveOptionBorder,o.inputBackground=r.inputBackground,o.inputForeground=r.inputForeground,o.inputBorder=r.inputBorder,o.inputValidationInfoBorder=r.inputValidationInfoBorder,o.inputValidationInfoBackground=r.inputValidationInfoBackground,o.inputValidationInfoForeground=r.inputValidationInfoForeground,o.inputValidationWarningBorder=r.inputValidationWarningBorder,o.inputValidationWarningBackground=r.inputValidationWarningBackground,o.inputValidationWarningForeground=r.inputValidationWarningForeground,o.inputValidationErrorBorder=r.inputValidationErrorBorder,o.inputValidationErrorBackground=r.inputValidationErrorBackground,o.inputValidationErrorForeground=r.inputValidationErrorForeground,o.buildDomNode(r.appendCaseSensitiveLabel||"",r.appendWholeWordsLabel||"",r.appendRegexLabel||"",r.history||[],!!r.flexibleHeight),t&&t.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,function(e){return o._onKeyDown.fire(e)}),o.onkeyup(o.inputBox.inputElement,function(e){return o._onKeyUp.fire(e)}),o.oninput(o.inputBox.inputElement,function(e){return o._onInput.fire()}),o.onmousedown(o.inputBox.inputElement,function(e){return o._onMouseDown.fire(e)}),o}return a(t,e),t.prototype.enable=function(){n.removeClass(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},t.prototype.disable=function(){n.addClass(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},t.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.clear=function(){this.clearValidation(),this.setValue(""),this.focus()},t.prototype.getValue=function(){return this.inputBox.value},t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},t.prototype.onSearchSubmit=function(){this.inputBox.addToHistory()},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e},t.prototype.getWholeWords=function(){return this.wholeWords.checked},t.prototype.setWholeWords=function(e){this.wholeWords.checked=e},t.prototype.getRegex=function(){return this.regex.checked},t.prototype.setRegex=function(e){this.regex.checked=e,this.validate()},t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},t.prototype.focusOnRegex=function(){this.regex.focus()},t.prototype.highlightFindOptions=function(){n.removeClass(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,n.addClass(this.domNode,"highlight-"+this._lastHighlightFindOptions)},t.prototype.buildDomNode=function(e,t,i,o,s){var a=this;if(this.domNode=document.createElement("div"),n.addClass(this.domNode,"monaco-findInput"),this.inputBox=this._register(new r.HistoryInputBox(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:o,flexibleHeight:s})),this.regex=this._register(new c.RegexCheckbox({appendTitle:i,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.regex.onChange(function(e){a._onDidOptionChange.fire(e),!e&&a.fixFocusOnOptionClickEnabled&&a.inputBox.focus(),a.validate()})),this._register(this.regex.onKeyDown(function(e){a._onRegexKeyDown.fire(e)})),this.wholeWords=this._register(new c.WholeWordsCheckbox({appendTitle:t,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.wholeWords.onChange(function(e){a._onDidOptionChange.fire(e),!e&&a.fixFocusOnOptionClickEnabled&&a.inputBox.focus(),a.validate()})),this.caseSensitive=this._register(new c.CaseSensitiveCheckbox({appendTitle:e,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.caseSensitive.onChange(function(e){a._onDidOptionChange.fire(e),!e&&a.fixFocusOnOptionClickEnabled&&a.inputBox.focus(),a.validate()})),this._register(this.caseSensitive.onKeyDown(function(e){a._onCaseSensitiveKeyDown.fire(e)})),this._showOptionButtons){var l=this.caseSensitive.width()+this.wholeWords.width()+this.regex.width()+"px";this.inputBox.inputElement.style.paddingRight=l,this.inputBox.mirrorElement&&(this.inputBox.mirrorElement.style.paddingRight=l)}var u=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=u.indexOf(document.activeElement);if(t>=0){var i=-1;e.equals(17)?i=(t+1)%u.length:e.equals(15)&&(i=0===t?u.length-1:t-1),e.equals(9)?u[t].blur():i>=0&&u[i].focus(),n.EventHelper.stop(e,!0)}}});var d=document.createElement("div");d.className="controls",d.style.display=this._showOptionButtons?"block":"none",d.appendChild(this.caseSensitive.domNode),d.appendChild(this.wholeWords.domNode),d.appendChild(this.regex.domNode),this.domNode.appendChild(d)},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},t.prototype.showMessage=function(e){this.inputBox&&this.inputBox.showMessage(e)},t.prototype.clearMessage=function(){this.inputBox&&this.inputBox.hideMessage()},t.prototype.clearValidation=function(){this.inputBox&&this.inputBox.hideMessage()},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.OPTION_CHANGE="optionChange",t}(o.Widget);t.FindInput=u}),define(i[991],n([4,3]),function(e,t){return e.create("vs/base/browser/ui/menu/menu",t)}),define(i[213],n([0,1,991,9,29,61,7,60,13,2,106,5,12,914]),function(e,t,i,n,r,o,s,c,l,u,d,h,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MENU_MNEMONIC_REGEX=function(){try{return new RegExp("\\(&([^\\s&])\\)|(?1){var n=i.shift();n&&(r.focusItemByElement(n.container),i.push(n)),r.mnemonics.set(t,i)}}})),p.isLinux&&r._register(s.addDisposableListener(o,s.EventType.KEY_DOWN,function(e){var t=new c.StandardKeyboardEvent(e);t.equals(14)||t.equals(11)?(r.focusedItem=r.items.length-1,r.focusNext(),s.EventHelper.stop(e,!0)):(t.equals(13)||t.equals(12))&&(r.focusedItem=0,r.focusPrevious(),s.EventHelper.stop(e,!0))})),r._register(s.addDisposableListener(r.domNode,s.EventType.MOUSE_OUT,function(e){var t=e.relatedTarget;s.isAncestor(t,r.domNode)||(r.focusedItem=void 0,r.scrollTopHold=r.menuElement.scrollTop,r.updateFocus(),e.stopPropagation())})),r._register(s.addDisposableListener(r.domNode,s.EventType.MOUSE_UP,function(e){s.EventHelper.stop(e,!0)})),r._register(s.addDisposableListener(r.actionsList,s.EventType.MOUSE_OVER,function(e){var t=e.target;if(t&&s.isAncestor(t,r.actionsList)&&t!==r.actionsList){for(;t.parentElement!==r.actionsList&&null!==t.parentElement;)t=t.parentElement;if(s.hasClass(t,"action-item")){var i=r.focusedItem;r.scrollTopHold=r.menuElement.scrollTop,r.setFocusedItem(t),i!==r.focusedItem&&r.updateFocus()}}}));var a={parent:r};return r.mnemonics=new Map,r.push(i,{icon:!0,label:!0,isMenu:!0}),r.scrollableElement=r._register(new d.DomScrollableElement(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0})),r.scrollableElement.getDomNode().style.position=null,o.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",r.scrollableElement.onScroll(function(){r._onScroll.fire()},r,r.menuDisposables),r._register(s.addDisposableListener(r.menuElement,s.EventType.SCROLL,function(e){void 0!==r.scrollTopHold&&(r.menuElement.scrollTop=r.scrollTopHold,r.scrollTopHold=void 0),r.scrollableElement.scanDomNode()})),t.appendChild(r.scrollableElement.getDomNode()),r.scrollableElement.scanDomNode(),r.items.filter(function(e){return!(e instanceof y)}).forEach(function(e,t,i){e.updatePositionInSet(t+1,i.length)}),r}return a(t,e),t.prototype.style=function(e){var t=this.getContainer(),i=e.foregroundColor?""+e.foregroundColor:null,n=e.backgroundColor?""+e.backgroundColor:null,r=e.borderColor?"2px solid "+e.borderColor:null,o=e.shadowColor?"0 2px 4px "+e.shadowColor:null;t.style.border=r,this.domNode.style.color=i,this.domNode.style.backgroundColor=n,t.style.boxShadow=o,this.items&&this.items.forEach(function(t){(t instanceof v||t instanceof y)&&t.style(e)})},t.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),t.prototype.trigger=function(t){if(t<=this.items.length&&t>=0){var i=this.items[t];if(i instanceof m)e.prototype.focus.call(this,t),i.open(!0);else{if(!(i instanceof v))return;e.prototype.run.call(this,i._action,i._context)}}},t.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},t.prototype.setFocusedItem=function(e){for(var t=0;t
    ");b()}function D(){return 1===p?_("unexpected "):2!==p?_("unexpected "):void b()}function k(e){if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function L(e){if(isNaN(e))return _("cannot parse float");if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function M(e){if(isNaN(e))return _("cannot parse integer");if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function R(e){if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function O(e){if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function T(e){if(1===p){if(null===m)return _("missing ");f[m]=e,m=null}else 2===p?f.push(e):f=e}function P(e){if(e.isClosed)return"";var t=h(""),t.replace(/&#([0-9]+);/g,function(e,t){return String.fromCodePoint(parseInt(t,10))}).replace(/&#x([0-9a-f]+);/g,function(e,t){return String.fromCodePoint(parseInt(t,16))}).replace(/&|<|>|"|'/g,function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case""":return'"';case"'":return"'"}return e})}for(;r=n));){var A=e.charCodeAt(r);if(a(1),60!==A)return _("expected <");if(r>=n)return _("unexpected end of input");var N=e.charCodeAt(r);if(63!==N)if(33!==N){if(47===N){if(a(1),l(),u("plist")){d(">");continue}if(u("dict")){d(">"),x();continue}if(u("array")){d(">"),D();continue}return _("unexpected closed tag")}var F=(C=void 0,w=void 0,C=h(">"),w=!1,47===C.charCodeAt(C.length-1)&&(w=!0,C=C.substring(0,C.length-1)),{name:C.trim(),isClosed:w});switch(F.name){case"dict":1===p?E.enterDict():2===p?I.enterDict():(f={},null!==i&&(f[i]={filename:t,line:o,char:s}),y(1,f)),F.isClosed&&x();continue;case"array":1===p?E.enterArray():2===p?I.enterArray():y(2,f=[]),F.isClosed&&D();continue;case"key":S=P(F),1!==p?_("unexpected "):null!==m?_("too many "):m=S;continue;case"string":k(P(F));continue;case"real":L(parseFloat(P(F)));continue;case"integer":M(parseInt(P(F),10));continue;case"date":R(new Date(P(F)));continue;case"data":O(P(F));continue;case"true":P(F),T(!0);continue;case"false":P(F),T(!1);continue}if(!/^plist/.test(F.name))return _("unexpected opened tag "+F.name)}else{if(a(1),u("--")){d("--\x3e");continue}d(">")}else a(1),d("?>")}return f}Object.defineProperty(t,"__esModule",{value:!0}),t.parseWithLocation=function(e,t,n){return i(e,t,n)},t.parse=function(e){return i(e,null,null)}}),define(i[120],n([0,1,6]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkbenchThemeService=i.createDecorator("themeService"),t.VS_LIGHT_THEME="vs",t.VS_DARK_THEME="vs-dark",t.VS_HC_THEME="hc-black",t.HC_THEME_ID="Default High Contrast",t.COLOR_THEME_SETTING="workbench.colorTheme",t.DETECT_HC_SETTING="window.autoDetectHighContrast",t.ICON_THEME_SETTING="workbench.iconTheme",t.CUSTOM_WORKBENCH_COLORS_SETTING="workbench.colorCustomizations",t.CUSTOM_EDITOR_COLORS_SETTING="editor.tokenColorCustomizations"}),define(i[1163],n([0,1,128,24,2,34,19,120,22,49]),function(e,t,i,n,r,o,s,a,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t,i){this._codesandboxService=e,this._editorService=t,this.themeService=i,this._toDispose=[],t.onDidActiveEditorChange(this.updateCurrentFileOpen,this,this._toDispose),i.onDidColorThemeChange(this.syncCodeSandboxTheme.bind(this)),this.syncCodeSandboxTheme()}return e.prototype.syncCodeSandboxTheme=function(){this._codesandboxService.runSignal("preferences.settingChanged",{name:"customVSCodeTheme",value:this.getColorTheme()})},e.prototype.getColorTheme=function(){for(var e=this.themeService.getColorTheme(),t={},i=[],n=0,r=s.Registry.as(c.Extensions.ColorContribution).getColors().map(function(e){return e.id}).sort();n=0;o--){var a=i.tokens1[o];if(t.column-1>=a.startIndex){n=o;break}}var c=0;for(o=i.tokens2.length>>>1;o>=0;o--)if(t.column-1>=i.tokens2[o<<1]){c=o;break}var l="",u=i.tokens1[n].startIndex,d=i.tokens1[n].endIndex,h=this._model.getLineContent(t.lineNumber).substring(u,d);l+='

    '+function(e){e.length>40&&(e=e.substr(0,20)+"…"+e.substr(e.length-20));for(var t="",i=0,n=e.length;i('+h.length+" "+(1===h.length?"char":"chars")+")

    ",l+='';var p=this._decodeMetadata(i.tokens2[1+(c<<1)]);l+='',l+='",l+='",l+='",l+='",l+='",p.background.isOpaque()&&p.foreground.isOpaque()?l+='":l+='',l+="";var f=this._themeService.getColorTheme();l+='';var g=v.findMatchingThemeRule(f,i.tokens1[n].scopes,!1);l+=g?''+g.rawSelector+"\n"+JSON.stringify(g.settings,null,"\t")+"":'No theme selector.',l+='',l+="
      ";for(o=i.tokens1[n].scopes.length-1;o>=0;o--)l+="
    • "+s.escape(i.tokens1[n].scopes[o])+"
    • ";l+="
    ",this._domNode.innerHTML=l,this._editor.layoutContentWidget(this)}},t.prototype._decodeMetadata=function(e){var t=l.TokenizationRegistry.getColorMap(),i=l.TokenMetadata.getLanguageId(e),n=l.TokenMetadata.getTokenType(e),r=l.TokenMetadata.getFontStyle(e),o=l.TokenMetadata.getForeground(e),s=l.TokenMetadata.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(i),tokenType:n,fontStyle:r,foreground:t[o],background:t[s]}},t.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},t.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},t.prototype._getTokensAtLine=function(e,t){var i=this._getStateBeforeLine(e,t),n=e.tokenizeLine(this._model.getLineContent(t),i),r=e.tokenizeLine2(this._model.getLineContent(t),i);return{startState:i,tokens1:n.tokens,tokens2:r.tokens,endState:n.ruleStack}},t.prototype._getStateBeforeLine=function(e,t){for(var i=null,n=1;n1){var n=parseInt(i[1],10);if(o.isNumber(n)){if(t={startLineNumber:n,startColumn:1,endLineNumber:n,endColumn:1},i.length>3){var r=parseInt(i[3],10);o.isNumber(r)&&(t={startLineNumber:t.startLineNumber,startColumn:r,endLineNumber:t.endLineNumber,endColumn:r})}}else""===i[1]&&(t={startLineNumber:1,startColumn:1,endLineNumber:1,endColumn:1})}return i&&t?{search:e.substr(0,i.index),range:t}:null},c.prototype.getGroupLabel=function(){return this.includeSymbols?n.localize(0,null):n.localize(1,null)},c.prototype.getAutoFocus=function(e){return{autoFocusFirstEntry:!0}},c.prototype.onOpen=function(){this.openSymbolHandler.onOpen(),this.openFileHandler.onOpen()},c.prototype.onClose=function(e){this.isClosed=!0,this.scorerCache=Object.create(null),this.openSymbolHandler.onClose(e),this.openFileHandler.onClose(e)},c.ID="workbench.picker.anything",c.LINE_COLON_PATTERN=/[#:\(](\d*)([#:,](\d*))?\)?$/,c.TYPING_SEARCH_DELAY=200,c.MAX_DISPLAYED_RESULTS=512,c=p([f(0,v.INotificationService),f(1,d.IInstantiationService),f(2,h.IConfigurationService)],c)}(c.QuickOpenHandler);t.OpenAnythingHandler=y}),define(i[437],n([0,1,35,83,49,120,1155,633,23,25,21,22,19,287,1161,9]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=h.Registry.as(d.Extensions.ColorContribution),m={comments:["comment"],strings:["string"],keywords:["keyword - keyword.operator","keyword.control","storage","storage.type"],numbers:["constant.numeric"],types:["entity.name.type","entity.name.class","support.type","support.class"],functions:["entity.name.function","support.function"],variables:["variable","entity.name.variable"]},y=function(){function e(e,t,i){this.themeTokenColors=[],this.customTokenColors=[],this.colorMap={},this.customColorMap={},this.id=e,this.label=t,this.settingsId=i,this.isLoaded=!1}return Object.defineProperty(e.prototype,"tokenColors",{get:function(){return this.themeTokenColors.concat(this.customTokenColors)},enumerable:!0,configurable:!0}),e.prototype.getColor=function(e,t){var i=this.customColorMap[e];return i||(i=this.colorMap[e],!1!==t&&c.isUndefined(i)&&(i=this.getDefault(e)),i)},e.prototype.getDefault=function(e){return v.resolveDefaultColor(e,this)},e.prototype.defines=function(e){return this.customColorMap.hasOwnProperty(e)||this.colorMap.hasOwnProperty(e)},e.prototype.setCustomColors=function(e){this.customColorMap={},this.overwriteCustomColors(e);var t=e["["+this.settingsId+"]"];c.isObject(t)&&this.overwriteCustomColors(t),this.themeTokenColors&&this.themeTokenColors.length&&_(this.themeTokenColors[0],this)},e.prototype.overwriteCustomColors=function(e){for(var t in e){var i=e[t];"string"==typeof i&&(this.customColorMap[t]=r.Color.fromHex(i))}},e.prototype.setCustomTokenColors=function(e){this.customTokenColors=[],this.addCustomTokenColors(e);var t=e["["+this.settingsId+"]"];c.isObject(t)&&this.addCustomTokenColors(t)},e.prototype.addCustomTokenColors=function(e){for(var t in m){var i=e[t];if(i)for(var n="string"==typeof i?{foreground:i}:i,r=0,o=m[t];r0)return Promise.reject(new Error(a.localize(0,null,d.map(function(e){return p.getParseErrorMessage(e.error)}).join(", "))));var f=Promise.resolve(null);return h.include&&(f=e(t,u.joinPath(u.dirname(i),h.include),o,c)),f.then(function(e){if(Array.isArray(h.settings))return s.convertSettings(h.settings,o,c),null;var n=h.colors;if(n){if("object"!=typeof n)return Promise.reject(new Error(a.localize(1,null,i.toString())));for(var l in n){var d=n[l];"string"==typeof d&&(c[l]=r.Color.fromHex(n[l]))}}var p=h.tokenColors;return p?Array.isArray(p)?(o.push.apply(o,p),null):"string"==typeof p?b(t,u.joinPath(u.dirname(i),p),o,{}):Promise.reject(new Error(a.localize(2,null,i.toString()))):null})}):b(t,i,o,c)}(e,this.location,this.themeTokenColors,this.colorMap).then(function(e){t.isLoaded=!0,t.sanitizeTokenColors()}):Promise.resolve(void 0)},e.prototype.sanitizeTokenColors=function(){var e=!1,t=[_({settings:{}},this)];this.themeTokenColors.forEach(function(i){i.scope&&i.settings&&("token.info-token"===i.scope&&(e=!0),t.push(i))}),e||t.push.apply(t,S[this.type]),this.themeTokenColors=t},e.prototype.toStorageData=function(){var e={};for(var t in this.colorMap)e[t]=r.Color.Format.CSS.formatHexA(this.colorMap[t],!0);return JSON.stringify({id:this.id,label:this.label,settingsId:this.settingsId,selector:this.id.split(" ").join("."),themeTokenColors:this.themeTokenColors,extensionData:this.extensionData,colorMap:e,watch:this.watch})},e.prototype.hasEqualData=function(e){return l.equals(this.colorMap,e.colorMap)&&l.equals(this.tokenColors,e.tokenColors)},Object.defineProperty(e.prototype,"baseTheme",{get:function(){return this.id.split(" ")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){switch(this.baseTheme){case o.VS_LIGHT_THEME:return"light";case o.VS_HC_THEME:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),e.createUnloadedTheme=function(t){var i=new e(t,"","__"+t);return i.isLoaded=!1,i.themeTokenColors=[{settings:{}}],i.watch=!1,i},e.createLoadedEmptyTheme=function(t,i){var n=new e(t,"",i);return n.isLoaded=!0,n.themeTokenColors=[{settings:{}}],n.watch=!1,n},e.fromStorageData=function(t){try{var i=JSON.parse(t),n=new e("","","");for(var o in i)switch(o){case"colorMap":var s=i[o];for(var a in s)n.colorMap[a]=r.Color.fromHex(s[a]);break;case"themeTokenColors":case"id":case"label":case"settingsId":case"extensionData":case"watch":n[o]=i[o]}if(!n.id||!n.settingsId)return;return n}catch(e){return}},e.fromExtensionTheme=function(t,n,r){var o=(t.uiTheme||"vs-dark")+" "+function(e,t){g.startsWith(t,"./")&&(t=t.substr(2));var i=e+"-"+t;(i=i.replace(/[^_\-a-zA-Z0-9]/g,"-")).charAt(0).match(/[0-9\-]/)&&(i="_"+i);return i}(r.extensionId,t.path),s=t.label||i.basename(t.path),a=new e(o,s,t.id||s);return a.description=t.description,a.watch=!0===t._watch,a.location=n,a.extensionData=r,a.isLoaded=!1,a},e}();function b(e,t,i,n){return e.resolveContent(t,{encoding:"utf8"}).then(function(e){try{var t=f.parse(e.value.toString()).settings;return Array.isArray(t)?(s.convertSettings(t,i,n),Promise.resolve(null)):Promise.reject(new Error(a.localize(3,null)))}catch(e){return Promise.reject(new Error(a.localize(4,null,e.message)))}},function(e){return Promise.reject(new Error(a.localize(5,null,t.toString(),e.message)))})}function _(e,t){var i=t.getColor(d.editorForeground)||t.getDefault(d.editorForeground),n=t.getColor(d.editorBackground)||t.getDefault(d.editorBackground);return e.settings.foreground=r.Color.Format.CSS.formatHexA(i),e.settings.background=r.Color.Format.CSS.formatHexA(n),e}t.ColorThemeData=y;var S={light:[{scope:"token.info-token",settings:{foreground:"#316bcd"}},{scope:"token.warn-token",settings:{foreground:"#cd9731"}},{scope:"token.error-token",settings:{foreground:"#cd3131"}},{scope:"token.debug-token",settings:{foreground:"#800080"}}],dark:[{scope:"token.info-token",settings:{foreground:"#6796e6"}},{scope:"token.warn-token",settings:{foreground:"#cd9731"}},{scope:"token.error-token",settings:{foreground:"#f44747"}},{scope:"token.debug-token",settings:{foreground:"#b267e6"}}],hc:[{scope:"token.info-token",settings:{foreground:"#6796e6"}},{scope:"token.warn-token",settings:{foreground:"#008000"}},{scope:"token.error-token",settings:{foreground:"#FF0000"}},{scope:"token.debug-token",settings:{foreground:"#b267e6"}}]}}),define(i[1169],n([0,1,634,23,21,108,120,437,57,5]),function(e,t,i,n,r,o,s,a,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=o.ExtensionsRegistry.registerExtensionPoint({extensionPoint:"themes",jsonSchema:{description:i.localize(0,null),type:"array",items:{type:"object",defaultSnippets:[{body:{label:"${1:label}",id:"${2:id}",uiTheme:s.VS_DARK_THEME,path:"./themes/${3:id}.tmTheme."}}],properties:{id:{description:i.localize(1,null),type:"string"},label:{description:i.localize(2,null),type:"string"},uiTheme:{description:i.localize(3,null),enum:[s.VS_LIGHT_THEME,s.VS_DARK_THEME,s.VS_HC_THEME]},path:{description:i.localize(4,null),type:"string"}},required:["path","uiTheme"]}}}),d=function(){function e(e,t){this.extensionService=e,this.extensionsColorThemes=[t],this.onDidChangeEmitter=new l.Emitter,this.initialize()}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this.onDidChangeEmitter.event},enumerable:!0,configurable:!0}),e.prototype.initialize=function(){var e=this;u.setHandler(function(t,i){for(var n={},r=[],o=0,s=e.extensionsColorThemes;o=0;e--){var t=document.body.classList.item(e);if(t===a.VS_LIGHT_THEME||t===a.VS_DARK_THEME||t===a.VS_HC_THEME)return t}return a.VS_DARK_THEME},e=p([f(0,s.IExtensionService),f(1,c.IStorageService),f(2,h.IConfigurationService),f(3,l.ITelemetryService),f(4,E.IWindowService),f(5,v.IInstantiationService),f(6,x.IEnvironmentService)],e)}();function K(e,t){return U(e.styleSheetContent,V),t(e)}function U(e,t){var i=document.head.getElementsByClassName(t);if(0===i.length){var n=document.createElement("style");n.type="text/css",n.className=t,n.innerHTML=e,document.head.appendChild(n)}else i[0].innerHTML=e}t.WorkbenchThemeService=H,k.registerColorThemeSchemas(),_.registerFileIconThemeSchemas();var j=function(){function e(e){this.configurationService=e}return e.prototype.writeConfiguration=function(e,t,i){var r=this.configurationService.inspect(e);if("auto"===i&&(i=n.isUndefined(r.workspaceFolder)?n.isUndefined(r.workspace)?1:2:3),1===i){if(t===r.user)return Promise.resolve(void 0);if(t===r.default){if(n.isUndefined(r.user))return Promise.resolve(void 0);t=void 0}}else if((2===i||3===i)&&t===r.value)return Promise.resolve(void 0);return this.configurationService.updateValue(e,t,i)},e=p([f(0,h.IConfigurationService)],e)}(),G=u.Registry.as(g.Extensions.Configuration),q={type:"string",description:i.localize(1,null),default:P,enum:[],enumDescriptions:[],errorMessage:i.localize(2,null)},Y={type:["string","null"],default:B,description:i.localize(3,null),enum:[null],enumDescriptions:[i.localize(4,null)],errorMessage:i.localize(5,null)},$={type:"object",description:i.localize(6,null),allOf:[{$ref:L.workbenchColorsSchemaId}],default:{},defaultSnippets:[{body:{}}]},Q={id:"workbench",order:7.1,type:"object",properties:(R={},R[a.COLOR_THEME_SETTING]=q,R[a.ICON_THEME_SETTING]=Y,R[a.CUSTOM_WORKBENCH_COLORS_SETTING]=$,R)};function X(e){return{description:e,default:"#FF0000",anyOf:[{type:"string",format:"color-hex"},{$ref:k.textmateColorSettingsSchemaId}]}}G.registerConfiguration(Q);var Z={properties:{comments:X(i.localize(7,null)),strings:X(i.localize(8,null)),keywords:X(i.localize(9,null)),numbers:X(i.localize(10,null)),types:X(i.localize(11,null)),functions:X(i.localize(12,null)),variables:X(i.localize(13,null)),textMateRules:{description:i.localize(14,null),$ref:k.textmateColorsSchemaId}}},J={description:i.localize(15,null),default:{},allOf:[Z]},ee={id:"editor",order:7.2,type:"object",properties:(O={},O[a.CUSTOM_EDITOR_COLORS_SETTING]=J,O)};G.registerConfiguration(ee),M.registerSingleton(a.IWorkbenchThemeService,H)}),define(i[80],n([0,1,10,6,17,235,18,5,41,33,2,39]),function(e,t,i,n,r,o,s,c,l,u,d,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IUntitledEditorService=n.createDecorator("untitledEditorService");var g=function(e){function t(t,i){var n=e.call(this)||this;return n.instantiationService=t,n.configurationService=i,n.mapResourceToInput=new l.ResourceMap,n.mapResourceToAssociatedFilePath=new l.ResourceMap,n._onDidChangeContent=n._register(new c.Emitter),n._onDidChangeDirty=n._register(new c.Emitter),n._onDidChangeEncoding=n._register(new c.Emitter),n._onDidDisposeModel=n._register(new c.Emitter),n}return a(t,e),Object.defineProperty(t.prototype,"onDidChangeContent",{get:function(){return this._onDidChangeContent.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidChangeDirty",{get:function(){return this._onDidChangeDirty.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidChangeEncoding",{get:function(){return this._onDidChangeEncoding.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidDisposeModel",{get:function(){return this._onDidDisposeModel.event},enumerable:!0,configurable:!0}),t.prototype.get=function(e){return this.mapResourceToInput.get(e)},t.prototype.getAll=function(e){var t=this;return e?r.coalesce(e.map(function(e){return t.get(e)})):this.mapResourceToInput.values()},t.prototype.exists=function(e){return this.mapResourceToInput.has(e)},t.prototype.revertAll=function(e,t){var i=[];return this.getAll(e).forEach(function(e){e&&(e.revert(),e.dispose(),i.push(e.getResource()))}),i},t.prototype.isDirty=function(e){var t=this.get(e);return!!t&&t.isDirty()},t.prototype.getDirty=function(e){var t=this;return(e?r.coalesce(e.map(function(e){return t.get(e)})):this.mapResourceToInput.values()).filter(function(e){return e.isDirty()}).map(function(e){return e.getResource()})},t.prototype.loadOrCreate=function(e){return void 0===e&&(e=Object.create(null)),this.createOrGet(e.resource,e.modeId,e.initialValue,e.encoding,e.useResourcePath).resolve()},t.prototype.createOrGet=function(e,t,i,n,r){return void 0===r&&(r=!1),e&&(e.scheme===u.Schemas.file&&(r=!0,e=e.with({scheme:u.Schemas.untitled})),r&&this.mapResourceToAssociatedFilePath.set(e,!0)),e&&this.mapResourceToInput.has(e)?this.mapResourceToInput.get(e):this.doCreate(e,r,t,i,n)},t.prototype.doCreate=function(e,t,n,r,s){var a=this;if(!e){var l=this.mapResourceToInput.size+1;do{e=i.URI.from({scheme:u.Schemas.untitled,path:"Untitled-"+l}),l++}while(this.mapResourceToInput.has(e))}if(!n&&!t){var d=this.configurationService.getValue();d.files&&d.files.defaultLanguage&&(n=d.files.defaultLanguage)}var h=this.instantiationService.createInstance(o.UntitledEditorInput,e,t,n,r,s),p=h.onDidModelChangeContent(function(){a._onDidChangeContent.fire(e)}),f=h.onDidChangeDirty(function(){a._onDidChangeDirty.fire(e)}),g=h.onDidModelChangeEncoding(function(){a._onDidChangeEncoding.fire(e)}),v=h.onDispose(function(){a._onDidDisposeModel.fire(e)});return c.Event.once(h.onDispose)(function(){a.mapResourceToInput.delete(h.getResource()),a.mapResourceToAssociatedFilePath.delete(h.getResource()),p.dispose(),f.dispose(),g.dispose(),v.dispose()}),this.mapResourceToInput.set(e,h),h},t.prototype.hasAssociatedFilePath=function(e){return this.mapResourceToAssociatedFilePath.has(e)},t.prototype.suggestFileName=function(e){var t=this.get(e);return t?t.suggestFileName():void 0},t.prototype.getEncoding=function(e){var t=this.get(e);return t?t.getEncoding():void 0},t=p([f(0,n.IInstantiationService),f(1,s.IConfigurationService)],t)}(d.Disposable);t.UntitledEditorService=g,h.registerSingleton(t.IUntitledEditorService,g,!0)}),define(i[1172],n([0,1,17,11,2,41,33,230,10,42,45,64,37,24,57,415,80,128,109,6]),function(e,t,i,n,r,o,s,c,u,d,h,g,v,m,y,b,_,S,C,w){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var E=function(e){function t(t,i,n,r,o,s,a,c){var l=e.call(this)||this;return l.instantiationService=t,l.modelService=i,l.untitledEditorService=n,l.editorService=r,l.telemetryService=s,l.logService=a,l.extensionService=c,l.fileSearchProviders=new Map,l.textSearchProviders=new Map,l.diskSearch=l.instantiationService.createInstance(I),l}return a(t,e),t.prototype.registerSearchResultProvider=function(e,t,i){var n;if(0===t)n=this.fileSearchProviders;else{if(1!==t)throw new Error("Unknown SearchProviderType");n=this.textSearchProviders}return n.set(e,i),r.toDisposable(function(){n.delete(e)})},t.prototype.textSearch=function(e,t,n){var r=this,o=this.getLocalResults(e);n&&i.coalesce(o.values()).forEach(n);return this.doSearch(e,t,function(e){e.resource?!o.has(e.resource)&&n&&n(e):n&&n(e),e.message&&r.logService.debug("SearchService#search",e.message)})},t.prototype.fileSearch=function(e,t){return this.doSearch(e,t)},t.prototype.doSearch=function(e,t,r){var o=this;this.logService.trace("SearchService#search",JSON.stringify(e));var s=this.getSchemesInQuery(e),a=[Promise.resolve(null)];s.forEach(function(e){return a.push(o.extensionService.activateByEvent("onSearch:"+e))}),a.push(this.extensionService.activateByEvent("onSearch:file"));var c=Promise.all(a).then(function(){return o.extensionService.whenInstalledExtensionsRegistered()}).then(function(){if(t&&t.isCancellationRequested)return Promise.reject(n.canceled());return o.searchWithProviders(e,function(e){t&&t.isCancellationRequested||r&&r(e)},t)}).then(function(e){return(e=i.coalesce(e)).length?{limitHit:e[0]&&e[0].limitHit,stats:e[0].stats,results:i.flatten(e.map(function(e){return e.results}))}:{limitHit:!1,results:[]}});return new Promise(function(e,i){t&&t.onCancellationRequested(function(){i(n.canceled())}),c.then(e,i)})},t.prototype.getSchemesInQuery=function(e){var t=new Set;return e.folderQueries&&e.folderQueries.forEach(function(e){return t.add(e.folder.scheme)}),e.extraFileResources&&e.extraFileResources.forEach(function(e){return t.add(e.scheme)}),t},t.prototype.searchWithProviders=function(e,t,i){var n=this,r=c.StopWatch.create(!1),a=[],u=[],d=this.groupFolderQueriesByScheme(e);o.keys(d).forEach(function(r){var o=d.get(r),s=1===e.type?n.fileSearchProviders.get(r):n.textSearchProviders.get(r);if(s||"file"!==r)if(s){var c=l({},e,{folderQueries:o});u.push(1===e.type?s.fileSearch(c,i):s.textSearch(c,t,i))}else console.warn("No search provider registered for scheme: "+r);else a.push.apply(a,o)});var h=e.extraFileResources&&e.extraFileResources.filter(function(e){return e.scheme===s.Schemas.file});if(a.length||h){var p=l({},e,{folderQueries:a},{extraFileResources:h});u.push(1===p.type?this.diskSearch.fileSearch(p,i):this.diskSearch.textSearch(p,t,i))}return Promise.all(u).then(function(t){var i=r.elapsed();return n.logService.trace("SearchService#search: "+i+"ms"),t.forEach(function(t){n.sendTelemetry(e,i,t)}),t},function(t){var i=r.elapsed();n.logService.trace("SearchService#search: "+i+"ms");var o=C.deserializeSearchError(t.message);throw n.sendTelemetry(e,i,null,o),o})},t.prototype.groupFolderQueriesByScheme=function(e){var t=new Map;return e.folderQueries.forEach(function(e){var i=t.get(e.folder.scheme)||[];i.push(e),t.set(e.folder.scheme,i)}),t},t.prototype.sendTelemetry=function(e,t,i,n){var r=e.folderQueries.every(function(e){return"file"===e.folder.scheme}),o=e.folderQueries.every(function(e){return"file"!==e.folder.scheme}),s=r?"file":o?"other":"mixed";if(1===e.type&&i&&i.stats){var a=i.stats;if(a.fromCache){var c=a.detailStats;this.telemetryService.publicLog("cachedSearchComplete",{reason:e._reason,resultCount:a.resultCount,workspaceFolderCount:e.folderQueries.length,type:a.type,endToEndTime:t,sortingTime:a.sortingTime,cacheWasResolved:c.cacheWasResolved,cacheLookupTime:c.cacheLookupTime,cacheFilterTime:c.cacheFilterTime,cacheEntryCount:c.cacheEntryCount,scheme:s})}else{var l=a.detailStats;this.telemetryService.publicLog("searchComplete",{reason:e._reason,resultCount:a.resultCount,workspaceFolderCount:e.folderQueries.length,type:a.type,endToEndTime:t,sortingTime:a.sortingTime,fileWalkTime:l.fileWalkTime,directoriesWalked:l.directoriesWalked,filesWalked:l.filesWalked,cmdTime:l.cmdTime,cmdResultCount:l.cmdResultCount,scheme:s})}}else if(2===e.type){var u=void 0;n&&(u=n.code===C.SearchErrorCode.regexParseError?"regex":n.code===C.SearchErrorCode.unknownEncoding?"encoding":n.code===C.SearchErrorCode.globParseError?"glob":n.code===C.SearchErrorCode.invalidLiteral?"literal":n.code===C.SearchErrorCode.other?"other":"unknown"),this.telemetryService.publicLog("textSearchComplete",{reason:e._reason,workspaceFolderCount:e.folderQueries.length,endToEndTime:t,scheme:s,error:u,usePCRE2:!!e.usePCRE2})}},t.prototype.getLocalResults=function(e){var t=this,i=new o.ResourceMap;2===e.type&&this.modelService.getModels().forEach(function(n){var r=n.uri;if(r&&t.editorService.isOpen({resource:r})){if(r.scheme===s.Schemas.untitled){if(!t.untitledEditorService.exists(r))return}else if(r.scheme!==s.Schemas.file)return;if(t.matches(r,e)){var o=n.findMatches(e.contentPattern.pattern,!1,e.contentPattern.isRegExp,e.contentPattern.isCaseSensitive,e.contentPattern.isWordMatch?e.contentPattern.wordSeparators:null,!1,e.maxResults);if(o.length){var a=new C.FileMatch(r);i.set(r,a);var c=b.editorMatchesToTextSearchResults(o,n,e.previewOptions);a.results=b.addContextToEditorMatches(c,n,e)}else i.set(r,null)}}});return i},t.prototype.matches=function(e,t){return(!t.includePattern||e.scheme===s.Schemas.file)&&C.pathIncludedInQuery(t,e.fsPath)},t.prototype.clearCache=function(e){var t=[this.diskSearch].concat(o.values(this.fileSearchProviders)).map(function(t){return t&&t.clearCache(e)});return Promise.all(t).then(function(){})},t=p([f(0,w.IInstantiationService),f(1,d.IModelService),f(2,_.IUntitledEditorService),f(3,m.IEditorService),f(4,h.IEnvironmentService),f(5,v.ITelemetryService),f(6,g.ILogService),f(7,y.IExtensionService)],t)}(r.Disposable);t.CodeSandboxSearchService=E;var I=function(){function e(e){this.codesandboxService=e,this.cache=new Map}return e.prototype.fileSearch=function(e,t){var i=this;e.folderQueries;return new Promise(function(t){var n=i.codesandboxService.getFilesByPath(),r=e.cacheKey;if(i.cache.get(r))t(i.cache.get(r));else{var o={results:Object.keys(n).filter(function(e){return"directory"!==n[e].type}).map(function(e){return{resource:u.URI.file(e)}}),limitHit:!1};r&&i.cache.set(r,o),t(o)}})},e.createFileMatch=function(e){var t,i=new C.FileMatch(u.URI.file(e.path));return e.results&&(t=i.results).push.apply(t,e.results),i},e.collectResultsFromEvent=function(e,t,i){var r,o=this,s=[];return new Promise(function(a,c){i&&i.onCancellationRequested(function(){r&&r.dispose(),c(n.canceled())}),r=e(function(e){if(C.isSerializedSearchComplete(e))C.isSerializedSearchSuccess(e)?a({limitHit:e.limitHit,results:s,stats:e.stats}):c(e.error),r.dispose();else if(Array.isArray(e)){var i=e.map(function(e){return o.createFileMatch(e)});s=s.concat(i),t&&i.forEach(t)}else if(e.path){var n=o.createFileMatch(e);s.push(n),t&&t(n)}else t&&t(e)})})},e.prototype.textSearch=function(e,t,i){return new Promise(function(e){return e({results:[]})})},e.prototype.clearCache=function(e){var t=this;return new Promise(function(i){t.cache.delete(e),i()})},e=p([f(0,S.ICodeSandboxService)],e)}();t.DiskSearch=I}),define(i[439],n([0,1,116,2,33,10,46,42,65,26,52,50,80]),function(e,t,i,n,r,o,s,a,c,l,u,d,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(e,t){void 0===e&&(e=18e4),void 0===t&&(t=83886080),this._maxAge=e,this._maxLength=t,this._data=new Array,this._length=0}return e.prototype.dispose=function(){this._data=n.dispose(this._data)},e.prototype.add=function(e){var t,i,n=this,r=e.object.textEditorModel.getValueLength(),o=function(){var o=n._data.indexOf(i);o>=0&&(n._length-=r,e.dispose(),clearTimeout(t),n._data.splice(o,1))};t=setTimeout(o,this._maxAge),i={length:r,dispose:o},this._data.push(i),this._length+=r,this._cleanup()},e.prototype._cleanup=function(){for(;this._length>this._maxLength;)this._data[0].dispose()},e}();t.BoundModelReferenceCollection=g;var v=function(){function e(e,t,i,n,r,o,s,a){var c=this;this._modelReferenceCollection=new g,this._modelService=i,this._textModelResolverService=s,this._textFileService=r,this._fileService=o,this._untitledEditorService=a,this._proxy=t.getProxy(u.ExtHostContext.ExtHostDocuments),this._modelIsSynced={},this._toDispose=[],this._toDispose.push(e.onDocumentAdd(function(e){return e.forEach(c._onModelAdded,c)})),this._toDispose.push(e.onDocumentRemove(function(e){return e.forEach(c._onModelRemoved,c)})),this._toDispose.push(this._modelReferenceCollection),this._toDispose.push(i.onModelModeChanged(this._onModelModeChanged,this)),this._toDispose.push(r.models.onModelSaved(function(e){c._shouldHandleFileEvent(e)&&c._proxy.$acceptModelSaved(e.resource)})),this._toDispose.push(r.models.onModelReverted(function(e){c._shouldHandleFileEvent(e)&&c._proxy.$acceptDirtyStateChanged(e.resource,!1)})),this._toDispose.push(r.models.onModelDirty(function(e){c._shouldHandleFileEvent(e)&&c._proxy.$acceptDirtyStateChanged(e.resource,!0)})),this._modelToDisposeMap=Object.create(null)}return e.prototype.dispose=function(){var e=this;Object.keys(this._modelToDisposeMap).forEach(function(t){e._modelToDisposeMap[t].dispose()}),this._modelToDisposeMap=Object.create(null),this._toDispose=n.dispose(this._toDispose)},e.prototype._shouldHandleFileEvent=function(e){var t=this._modelService.getModel(e.resource);return!!t&&a.shouldSynchronizeModel(t)},e.prototype._onModelAdded=function(e){var t=this;if(a.shouldSynchronizeModel(e)){var i=e.uri;this._modelIsSynced[i.toString()]=!0,this._modelToDisposeMap[i.toString()]=e.onDidChangeContent(function(e){t._proxy.$acceptModelChanged(i,e,t._textFileService.isDirty(i))})}},e.prototype._onModelModeChanged=function(e){var t=e.model,i=e.oldModeId,n=t.uri;this._modelIsSynced[n.toString()]&&this._proxy.$acceptModelModeChanged(t.uri,i,t.getLanguageIdentifier().language)},e.prototype._onModelRemoved=function(e){var t=e.toString();this._modelIsSynced[t]&&(delete this._modelIsSynced[t],this._modelToDisposeMap[t].dispose(),delete this._modelToDisposeMap[t])},e.prototype.$trySaveDocument=function(e){return this._textFileService.save(o.URI.revive(e))},e.prototype.$tryOpenDocument=function(e){var t,n=this,s=o.URI.revive(e);if(!s.scheme||!s.fsPath&&!s.authority)return Promise.reject(new Error("Invalid uri. Scheme and authority or path must be set."));switch(s.scheme){case r.Schemas.untitled:t=this._handleUntitledScheme(s);break;case r.Schemas.file:default:t=this._handleAsResourceInput(s)}return t.then(function(e){return e?n._modelIsSynced[s.toString()]?void 0:Promise.reject(new Error("cannot open "+s.toString()+". Detail: Files above 50MB cannot be synchronized with extensions.")):Promise.reject(new Error("cannot open "+s.toString()))},function(e){return Promise.reject(new Error("cannot open "+s.toString()+". Detail: "+i.toErrorMessage(e)))})},e.prototype.$tryCreateDocument=function(e){return this._doCreateUntitled(void 0,e?e.language:void 0,e?e.content:void 0)},e.prototype._handleAsResourceInput=function(e){var t=this;return this._textModelResolverService.createModelReference(e).then(function(e){return t._modelReferenceCollection.add(e),!!e.object})},e.prototype._handleUntitledScheme=function(e){var t=this,i=e.with({scheme:r.Schemas.file});return this._fileService.resolveFile(i).then(function(e){return Promise.reject(new Error("file already exists on disk"))},function(i){return t._doCreateUntitled(e).then(function(e){return!!e})})},e.prototype._doCreateUntitled=function(e,t,i){var n=this;return this._untitledEditorService.loadOrCreate({resource:e,modeId:t,initialValue:i,useResourcePath:Boolean(e&&e.path)}).then(function(e){var t=e.getResource();if(!n._modelIsSynced[t.toString()])throw new Error("expected URI "+t.toString()+" to have come to LIFE");return n._proxy.$acceptDirtyStateChanged(t,!0),t})},e=p([f(2,a.IModelService),f(3,s.IModeService),f(4,d.ITextFileService),f(5,l.IFileService),f(6,c.ITextModelService),f(7,h.IUntitledEditorService)],e)}();t.MainThreadDocuments=v}),define(i[1174],n([0,1,5,2,41,75,133,59,46,42,65,26,55,439,387,388,52,275,179,24,56,152,50,80]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I){"use strict";var x;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.ofSets=function(e,t){var i=[],n=[];return e.forEach(function(e){t.has(e)||i.push(e)}),t.forEach(function(t){e.has(t)||n.push(t)}),{removed:i,added:n}},e.ofMaps=function(e,t){var i=[],n=[];return e.forEach(function(e,n){t.has(n)||i.push(e)}),t.forEach(function(t,i){e.has(i)||n.push(t)}),{removed:i,added:n}}}(x||(x={}));var D=function(){return function(e){this.editor=e,this.id=e.getId()+","+e.getModel().id}}(),k=function(){function e(e,t,i,n,r,o){this.removedDocuments=e,this.addedDocuments=t,this.removedEditors=i,this.addedEditors=n,this.oldActiveEditor=r,this.newActiveEditor=o,this.isEmpty=0===this.removedDocuments.length&&0===this.addedDocuments.length&&0===this.removedEditors.length&&0===this.addedEditors.length&&r===o}return e.prototype.toString=function(){var e="DocumentAndEditorStateDelta\n";return e+="\tRemoved Documents: ["+this.removedDocuments.map(function(e){return e.uri.toString(!0)}).join(", ")+"]\n",e+="\tAdded Documents: ["+this.addedDocuments.map(function(e){return e.uri.toString(!0)}).join(", ")+"]\n",e+="\tRemoved Editors: ["+this.removedEditors.map(function(e){return e.id}).join(", ")+"]\n",e+="\tAdded Editors: ["+this.addedEditors.map(function(e){return e.id}).join(", ")+"]\n",e+="\tNew Active Editor: "+this.newActiveEditor+"\n"},e}(),L=function(){function e(e,t,i){this.documents=e,this.textEditors=t,this.activeEditor=i}return e.compute=function(e,t){if(!e)return new k([],r.values(t.documents),[],r.values(t.textEditors),void 0,t.activeEditor);var i=x.ofSets(e.documents,t.documents),n=x.ofMaps(e.textEditors,t.textEditors),o=e.activeEditor!==t.activeEditor?e.activeEditor:void 0,s=e.activeEditor!==t.activeEditor?t.activeEditor:void 0;return new k(i.removed,i.added,n.removed,n.added,o,s)},e}(),M=function(){function e(e,t,i,n,r){var o=this;this._onDidChangeState=e,this._modelService=t,this._codeEditorService=i,this._editorService=n,this._panelService=r,this._toDispose=[],this._toDisposeOnEditorRemove=new Map,this._activeEditorOrder=0,this._modelService.onModelAdded(this._updateStateOnModelAdd,this,this._toDispose),this._modelService.onModelRemoved(function(e){return o._updateState()},this,this._toDispose),this._editorService.onDidActiveEditorChange(function(e){return o._updateState()},this,this._toDispose),this._codeEditorService.onCodeEditorAdd(this._onDidAddEditor,this,this._toDispose),this._codeEditorService.onCodeEditorRemove(this._onDidRemoveEditor,this,this._toDispose),this._codeEditorService.listCodeEditors().forEach(this._onDidAddEditor,this),this._panelService.onDidPanelOpen(function(e){return o._activeEditorOrder=1},void 0,this._toDispose),this._panelService.onDidPanelClose(function(e){return o._activeEditorOrder=0},void 0,this._toDispose),this._editorService.onDidVisibleEditorsChange(function(e){return o._activeEditorOrder=0},void 0,this._toDispose),this._updateState()}return e.prototype.dispose=function(){this._toDispose=n.dispose(this._toDispose)},e.prototype._onDidAddEditor=function(e){var t=this;this._toDisposeOnEditorRemove.set(e.getId(),n.combinedDisposable([e.onDidChangeModel(function(){return t._updateState()}),e.onDidFocusEditorText(function(){return t._updateState()}),e.onDidFocusEditorWidget(function(){return t._updateState(e)})])),this._updateState()},e.prototype._onDidRemoveEditor=function(e){var t=this._toDisposeOnEditorRemove.get(e.getId());t&&(this._toDisposeOnEditorRemove.delete(e.getId()),t.dispose(),this._updateState())},e.prototype._updateStateOnModelAdd=function(e){l.shouldSynchronizeModel(e)&&(this._currentState?(this._currentState=new L(this._currentState.documents.add(e),this._currentState.textEditors,this._currentState.activeEditor),this._onDidChangeState(new k([],[e],[],[],void 0,void 0))):this._updateState())},e.prototype._updateState=function(e){for(var t=new Set,i=0,n=this._modelService.getModels();i0&&(p=!1,h.removedDocuments=t),n.length>0&&(p=!1,h.removedEditors=n),e.addedDocuments.length>0&&(p=!1,h.addedDocuments=e.addedDocuments.map(function(e){return i._toModelAddData(e)})),e.addedEditors.length>0&&(p=!1,h.addedEditors=r.map(function(e){return i._toTextEditorAddData(e)})),p||(this._proxy.$acceptDocumentsAndEditorsDelta(h),this._onDocumentRemove.fire(t),this._onDocumentAdd.fire(e.addedDocuments),this._onTextEditorRemove.fire(n),this._onTextEditorAdd.fire(r))},e.prototype._toModelAddData=function(e){return{uri:e.uri,versionId:e.getVersionId(),lines:e.getLinesContent(),EOL:e.getEOL(),modeId:e.getLanguageIdentifier().language,isDirty:this._textFileService.isDirty(e.uri)}},e.prototype._toTextEditorAddData=function(e){var t=e.getProperties();return{id:e.getId(),documentUri:e.getModel().uri,options:t.options,selections:t.selections,visibleRanges:t.visibleRanges,editorPosition:this._findEditorPosition(e)}},e.prototype._findEditorPosition=function(e){for(var t=0,i=this._editorService.visibleControls;t0){if(!i){var r=e.dataTransfer.getData(t.CodeDataTransfers.EDITORS);if(r)try{JSON.parse(r).forEach(function(e){n.push({resource:c.URI.parse(e.resource),backupResource:e.backupResource?c.URI.parse(e.backupResource):void 0,viewState:e.viewState,isExternal:!1})})}catch(e){}else try{var o=e.dataTransfer.getData(v.DataTransfers.RESOURCES);if(o){var s=JSON.parse(o);n.push.apply(n,s.map(function(e){return{resource:c.URI.parse(e),isExternal:!1}}))}}catch(e){}}if(e.dataTransfer&&e.dataTransfer.files)for(var a=function(t){var i=e.dataTransfer.files[t];if(i&&i.path&&!n.some(function(e){return e.resource.fsPath===i.path}))try{n.push({resource:c.URI.file(i.path),isExternal:!0})}catch(e){}},l=0;l0)return Promise.all(i.map(function(e){return t.handleDirtyEditorDrop(e)})).then(function(){return!1});if(this.options.allowWorkspaceOpen){var n=e.filter(function(e){return e.isExternal&&e.resource.scheme===d.Schemas.file}).map(function(e){return e.resource});if(n.length>0)return this.handleWorkspaceFileDrop(n)}return Promise.resolve(!1)},e.prototype.handleDirtyEditorDrop=function(e){var t=this;return e.resource.scheme===d.Schemas.untitled&&(e.resource=this.untitledEditorService.createOrGet().getResource()),this.textFileService.isDirty(e.resource)||this.editorService.isOpen({resource:e.resource})?Promise.resolve(!1):this.backupFileService.resolveBackupContent(e.backupResource).then(function(i){return t.backupFileService.backupResource(e.resource,i.create(t.getDefaultEOL()).createSnapshot(!0))}).then(function(){return!1},function(){return!1})},e.prototype.getDefaultEOL=function(){return"\r\n"===this.configurationService.getValue("files.eol")?2:1},e.prototype.handleWorkspaceFileDrop=function(e){var t=this,n={workspaces:[],folders:[]};return Promise.all(e.map(function(e){if(!i.hasWorkspaceFileExtension(e.fsPath))return t.fileService.resolveFile(e).then(function(e){e.isDirectory&&n.folders.push({uri:e.resource,typeHint:"folder"})},function(e){});n.workspaces.push({uri:e,typeHint:"file"})})).then(function(e){var i,r=n.workspaces,o=n.folders;return(0!==r.length||0!==o.length)&&(t.windowService.focusWindow(),r.length>0||1===o.length?i=Promise.resolve(r.concat(o)):o.length>1&&(i=t.workspacesService.createUntitledWorkspace(o).then(function(e){return[{uri:e.configPath,typeHint:"file"}]})),i&&i.then(function(e){t.windowService.openWindow(e,{forceReuseWindow:!0})}),!0)})},e=p([f(1,o.IFileService),f(2,s.IWindowsService),f(3,s.IWindowService),f(4,i.IWorkspacesService),f(5,l.ITextFileService),f(6,u.IBackupFileService),f(7,h.IUntitledEditorService),f(8,S.IEditorService),f(9,g.IConfigurationService)],e)}();t.ResourcesDropHandler=D,t.fillResourceDataTransfers=function(e,i,o){if(0!==i.length&&o.dataTransfer){var s=i.map(function(e){return c.URI.isUri(e)?{resource:e,isDirectory:!1}:e}),a=s[0],h=b.isWindows?"\r\n":"\n";o.dataTransfer.setData(v.DataTransfers.TEXT,s.map(function(e){return e.resource.scheme===d.Schemas.file?n.normalize(m.normalizeDriveLetter(e.resource.fsPath)):e.resource.toString()}).join(h)),a.resource.scheme===d.Schemas.file&&o.dataTransfer.setData(v.DataTransfers.DOWNLOAD_URL,[y.MIME_BINARY,r.basename(a.resource),a.resource.toString()].join(":"));var p=s.filter(function(e){return!e.isDirectory});p.length&&o.dataTransfer.setData(v.DataTransfers.RESOURCES,JSON.stringify(p.map(function(e){return e.resource.toString()})));var f=e.get(l.ITextFileService),g=e.get(u.IBackupFileService),C=e.get(S.IEditorService),w=[];p.forEach(function(e){for(var t=null,i=0,n=C.visibleTextEditorWidgets;i-1&&(this._widgets.splice(t,1),this._labels.splice(t,1)),C.dispose(e)},t.prototype.clear=function(){this._widgets=C.dispose(this._widgets),this._labels=[]},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clear()},t=p([f(1,w.IInstantiationService),f(2,r.IExtensionService),f(3,u.IConfigurationService),f(4,d.IModelService),f(5,g.IDecorationsService),f(6,y.IThemeService)],t)}(C.Disposable);t.ResourceLabels=E;var I,x=function(e){function i(i,n,r,o,s,a,c,l,u){var d=e.call(this,t.DEFAULT_LABELS_CONTAINER,r,o,s,a,c,l)||this;return d._label=d._register(d.create(i,n)),d}return a(i,e),Object.defineProperty(i.prototype,"element",{get:function(){return this._label},enumerable:!0,configurable:!0}),i=p([f(2,w.IInstantiationService),f(3,r.IExtensionService),f(4,u.IConfigurationService),f(5,d.IModelService),f(6,g.IDecorationsService),f(7,y.IThemeService),f(8,_.ILabelService)],i)}(E);t.ResourceLabel=x,function(e){e[e.Basic=1]="Basic",e[e.Full=2]="Full"}(I||(I={}));var D=function(e){function t(t,i,n,r,o,s,a,c){var l=e.call(this,t,i)||this;return l.modeService=n,l.modelService=r,l.decorationsService=o,l.labelService=s,l.untitledEditorService=a,l.contextService=c,l._onDidRender=l._register(new b.Emitter),l.isHidden=!1,l}return a(t,e),Object.defineProperty(t.prototype,"onDidRender",{get:function(){return this._onDidRender.event},enumerable:!0,configurable:!0}),t.prototype.notifyVisibilityChanged=function(e){e===this.isHidden&&(this.isHidden=!e,e&&this.needsRedraw&&(this.render(this.needsRedraw!==I.Basic),this.needsRedraw=void 0))},t.prototype.notifyModelModeChanged=function(e){this.label&&this.label.resource&&e.model.uri.toString()===this.label.resource.toString()&&this.lastKnownConfiguredLangId!==e.model.getLanguageIdentifier().language&&this.render(!0)},t.prototype.notifyFileDecorationsChanges=function(e){this.options&&this.label&&this.label.resource&&this.options.fileDecorations&&e.affectsResource(this.label.resource)&&this.render(!1)},t.prototype.notifyExtensionsRegistered=function(){this.render(!0)},t.prototype.notifyThemeChange=function(){this.render(!1)},t.prototype.notifyFileAssociationsChange=function(){this.render(!0)},t.prototype.setResource=function(e,t){var i=this.hasResourceChanged(e,t);this.label=e,this.options=t,i&&(this.computedPathLabel=void 0),this.render(i)},t.prototype.hasResourceChanged=function(e,t){var i=e?e.resource:void 0,n=this.label?this.label.resource:void 0;return(t?t.fileKind:void 0)!==(this.options?this.options.fileKind:void 0)||(!(!i||this.computedPathLabel===this.labelService.getUriLabel(i))||(i&&n?i.toString()!==n.toString():!(!i&&!n)))},t.prototype.setEditor=function(e,t){this.setResource({resource:s.toResource(e,{supportSideBySide:!0})||void 0,name:e.getName()||void 0,description:e.getDescription()||void 0},t)},t.prototype.setFile=function(e,t){var n,r;if(!(t&&t.hideLabel)){if(t&&t.fileKind===m.FileKind.ROOT_FOLDER){var o=this.contextService.getWorkspaceFolder(e);o&&(n=o.name)}n||(n=i.basenameOrAuthority(e))}t&&t.hidePath||e.scheme===v.Schemas.untitled&&!this.untitledEditorService.hasAssociatedFilePath(e)||(r=this.labelService.getUriLabel(i.dirname(e),{relative:!0})),this.setResource({resource:e,name:n,description:r},t)},t.prototype.clear=function(){this.label=void 0,this.options=void 0,this.lastKnownConfiguredLangId=void 0,this.computedIconClasses=void 0,this.computedPathLabel=void 0,this.setLabel()},t.prototype.render=function(e){var t;if(this.isHidden)return this.needsRedraw||(this.needsRedraw=e?I.Full:I.Basic),void(this.needsRedraw===I.Basic&&e&&(this.needsRedraw=I.Full));if(this.label){var i=this.label.resource?S.getConfiguredLangId(this.modelService,this.modeService,this.label.resource):null;this.lastKnownConfiguredLangId!==i&&(e=!0,this.lastKnownConfiguredLangId=i||void 0)}if(e&&(this.computedIconClasses=void 0),this.label){var n={title:"",italic:this.options&&this.options.italic,matches:this.options&&this.options.matches,extraClasses:[]},r=this.label.resource,o=this.label.name;if(this.options&&"string"==typeof this.options.title?n.title=this.options.title:r&&r.scheme!==v.Schemas.data&&(this.computedPathLabel||(this.computedPathLabel=this.labelService.getUriLabel(r)),n.title=this.computedPathLabel),this.options&&!this.options.hideIcon&&(this.computedIconClasses||(this.computedIconClasses=S.getIconClasses(this.modelService,this.modeService,r,this.options&&this.options.fileKind)),n.extraClasses=this.computedIconClasses.slice(0)),this.options&&this.options.extraClasses&&(t=n.extraClasses).push.apply(t,this.options.extraClasses),this.options&&this.options.fileDecorations&&r){var s=this.decorationsService.getDecoration(r,this.options.fileKind!==m.FileKind.FILE,this.options.fileDecorations.data);s&&(s.tooltip&&(n.title=n.title+" • "+s.tooltip),this.options.fileDecorations.colors&&n.extraClasses.push(s.labelClassName),this.options.fileDecorations.badges&&n.extraClasses.push(s.badgeClassName))}this.setLabel(o,this.label.description,n),this._onDidRender.fire()}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.label=void 0,this.options=void 0,this.lastKnownConfiguredLangId=void 0,this.computedIconClasses=void 0,this.computedPathLabel=void 0},t=p([f(2,o.IModeService),f(3,d.IModelService),f(4,g.IDecorationsService),f(5,_.ILabelService),f(6,h.IUntitledEditorService),f(7,l.IWorkspaceContextService)],t)}(n.IconLabel)}),define(i[1177],n([0,1,7,184,11,5,84,119,2,35,21,10,229,18,26,6,78,22,32,150,238,455,120,840,418]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createBreadcrumbsPicker=function(e,t,i){var n=i instanceof E.FileElement?A:N;return e.createInstance(n,t)};var D=function(){function e(e,t,i,n){this._instantiationService=t,this._themeService=i,this._configurationService=n,this._disposables=new Array,this._fakeEvent=new UIEvent("fakeEvent"),this._onDidPickElement=new o.Emitter,this.onDidPickElement=this._onDidPickElement.event,this._onDidFocusElement=new o.Emitter,this.onDidFocusElement=this._onDidFocusElement.event,this._domNode=document.createElement("div"),this._domNode.className="monaco-breadcrumbs-picker show-file-icons",e.appendChild(this._domNode)}return e.prototype.dispose=function(){l.dispose(this._disposables),this._onDidPickElement.dispose(),this._tree.dispose()},e.prototype.show=function(e,t,i,n,o){var s=this,a=this._themeService.getTheme().getColor(_.breadcrumbsPickerBackground);this._arrow=document.createElement("div"),this._arrow.className="arrow",this._arrow.style.borderColor="transparent transparent "+(a?a.toString():""),this._domNode.appendChild(this._arrow),this._treeContainer=document.createElement("div"),this._treeContainer.style.background=a?a.toString():"",this._treeContainer.style.paddingTop="2px",this._treeContainer.style.boxShadow="0px 5px 8px "+this._themeService.getTheme().getColor(_.widgetShadow),this._domNode.appendChild(this._treeContainer);var c=w.BreadcrumbsConfig.FilterOnType.bindTo(this._configurationService);this._disposables.push(c),this._layoutInfo={maxHeight:t,width:i,arrowSize:n,arrowOffset:o,inputHeight:0},this._tree=this._createTree(this._treeContainer),this._disposables.push(this._tree.onDidChangeSelection(function(e){if(e.browserEvent!==s._fakeEvent){var t=s._getTargetFromEvent(e.elements[0],e.browserEvent);t&&setTimeout(function(e){s._onDidPickElement.fire({target:t,payload:void 0})},0)}})),this._disposables.push(this._tree.onDidChangeFocus(function(e){var t=s._getTargetFromEvent(e.elements[0],e.browserEvent);t&&s._onDidFocusElement.fire({target:t,payload:void 0})})),this._disposables.push(this._tree.onDidChangeContentHeight(function(){s._layout()}));var l=w.BreadcrumbsConfig.FilterOnType.bindTo(this._configurationService);this._tree.updateOptions({filterOnType:l.getValue()}),this._disposables.push(this._tree.onDidUpdateOptions(function(e){s._configurationService.updateValue(l.name,e.filterOnType,5)})),this._domNode.focus(),this._setInput(e).then(function(){s._layout()}).catch(r.onUnexpectedError)},e.prototype._layout=function(){var e=2*this._layoutInfo.arrowSize,t=Math.min(this._layoutInfo.maxHeight-e,this._tree.contentHeight),i=t+e;this._domNode.style.height=i+"px",this._domNode.style.width=this._layoutInfo.width+"px",this._arrow.style.top="-"+2*this._layoutInfo.arrowSize+"px",this._arrow.style.borderWidth=this._layoutInfo.arrowSize+"px",this._arrow.style.marginLeft=this._layoutInfo.arrowOffset+"px",this._treeContainer.style.height=t+"px",this._treeContainer.style.width=this._layoutInfo.width+"px",this._tree.layout(t,this._layoutInfo.width)},e=p([f(1,y.IInstantiationService),f(2,I.IWorkbenchThemeService),f(3,v.IConfigurationService)],e)}();t.BreadcrumbsPicker=D;var k=function(){function e(){}return e.prototype.getHeight=function(e){return 22},e.prototype.getTemplateId=function(e){return"FileStat"},e}(),L=function(){function e(){}return e.prototype.getId=function(e){return h.URI.isUri(e)?e.toString():S.IWorkspace.isIWorkspace(e)?e.id:S.IWorkspaceFolder.isIWorkspaceFolder(e)?e.uri.toString():e.resource.toString()},e}(),M=function(){function e(e){this._fileService=e,this._parents=new WeakMap}return e.prototype.hasChildren=function(e){return h.URI.isUri(e)||S.IWorkspace.isIWorkspace(e)||S.IWorkspaceFolder.isIWorkspaceFolder(e)||e.isDirectory},e.prototype.getChildren=function(e){var t,i=this;return S.IWorkspace.isIWorkspace(e)?Promise.resolve(e.folders).then(function(t){for(var n=0,r=t;n=window.innerHeight&&(a=window.innerHeight-u-30);var d=l.left;if(d+c>=s&&(d=s-c),e.payload instanceof n.StandardMouseEvent){var h=c-16;(t=e.payload.posx-d)>h&&(d=Math.min(s-c,d+t-h),t=h)}else t=l.left+.3*l.width-d;return o.show(r,a,c,8,Math.max(0,t)),{x:d,y:u}},onHide:function(e){c&&(c.deltaDecorations(l,[]),a&&c.restoreViewState(a)),t._breadcrumbsPickerShowing=!1,t._updateCkBreadcrumbsActive(),e===t&&(t._widget.setFocused(void 0),t._widget.setSelection(void 0))}})}},e.prototype._updateCkBreadcrumbsActive=function(){var e=this._widget.isDOMFocused()||this._breadcrumbsPickerShowing;this._ckBreadcrumbsActive.set(e)},e.prototype._revealInEditor=function(t,i,n,r){if(void 0===r&&(r=!1),i instanceof F.FileElement)if(i.kind===D.FileKind.FILE)this._editorService.openEditor({resource:i.uri,options:{pinned:r}},n);else{var o=this._widget.getItems(),s=o.indexOf(t.item);this._widget.setFocused(o[s+1]),this._widget.setSelection(o[s+1],e.Payload_Pick)}else if(i instanceof _.OutlineElement){var a=_.OutlineModel.get(i);a&&this._codeEditorService.openCodeEditor({resource:a.textModel.uri,options:{selection:y.Range.collapseToStart(i.symbol.selectionRange),revealInCenterIfOutsideViewport:!0}},this._getActiveCodeEditor()||null,n===V.SIDE_GROUP)}},e.prototype._getEditorGroup=function(t){return t===e.Payload_RevealAside||t instanceof n.StandardMouseEvent&&t.altKey?V.SIDE_GROUP:t===e.Payload_Reveal||t instanceof n.StandardMouseEvent&&t.metaKey?V.ACTIVE_GROUP:void 0},e.HEIGHT=22,e.Payload_Reveal={},e.Payload_RevealAside={},e.Payload_Pick={},e.CK_BreadcrumbsPossible=new I.RawContextKey("breadcrumbsPossible",!1),e.CK_BreadcrumbsVisible=new I.RawContextKey("breadcrumbsVisible",!1),e.CK_BreadcrumbsActive=new I.RawContextKey("breadcrumbsActive",!1),e=p([f(3,I.IContextKeyService),f(4,x.IContextViewService),f(5,V.IEditorService),f(6,K.ICodeEditorService),f(7,P.IWorkspaceContextService),f(8,k.IInstantiationService),f(9,T.IThemeService),f(10,R.IQuickOpenService),f(11,E.IConfigurationService),f(12,D.IFileService),f(13,H.ITelemetryService),f(14,N.IBreadcrumbsService)],e)}();function Y(e,t){var i=e.get(z.IEditorGroupsService),n=e.get(N.IBreadcrumbsService).getWidget(i.activeGroup.id);if(n){var r=l.tail(n.getItems());n.setFocused(r),t&&n.setSelection(r,q.Payload_Pick)}}t.BreadcrumbsControl=q,C.MenuRegistry.appendMenuItem(0,{command:{id:"breadcrumbs.toggle",title:{value:S.localize(0,null),original:"View: Toggle Breadcrumbs"},category:S.localize(1,null)}}),C.MenuRegistry.appendMenuItem(26,{group:"5_editor",order:99,command:{id:"breadcrumbs.toggle",title:S.localize(2,null),toggled:I.ContextKeyExpr.equals("config.breadcrumbs.enabled",!0)}}),w.CommandsRegistry.registerCommand("breadcrumbs.toggle",function(e){var t=e.get(E.IConfigurationService),i=N.BreadcrumbsConfig.IsEnabled.bindTo(t).getValue();N.BreadcrumbsConfig.IsEnabled.bindTo(t).updateValue(!i)}),C.MenuRegistry.appendMenuItem(0,{command:{id:"breadcrumbs.focusAndSelect",title:{value:S.localize(3,null),original:"Focus Breadcrumbs"},precondition:q.CK_BreadcrumbsVisible}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.focusAndSelect",weight:200,primary:3156,when:q.CK_BreadcrumbsPossible,handler:function(e){return Y(e,!0)}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.focus",weight:200,primary:3152,when:q.CK_BreadcrumbsPossible,handler:function(e){return Y(e,!1)}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.toggleToOn",weight:200,primary:3156,when:I.ContextKeyExpr.not("config.breadcrumbs.enabled"),handler:function(e){return r(j,void 0,void 0,function(){var t,i,n;return o(this,function(r){switch(r.label){case 0:return t=e.get(k.IInstantiationService),i=e.get(E.IConfigurationService),(n=N.BreadcrumbsConfig.IsEnabled.bindTo(i)).getValue()?[3,3]:[4,n.updateValue(!0)];case 1:return r.sent(),[4,u.timeout(50)];case 2:r.sent(),r.label=3;case 3:return[2,t.invokeFunction(Y,!0)]}})})}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.focusNext",weight:200,primary:17,secondary:[2065],mac:{primary:17,secondary:[529]},when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive),handler:function(e){var t=e.get(z.IEditorGroupsService),i=e.get(N.IBreadcrumbsService).getWidget(t.activeGroup.id);i&&i.focusNext()}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.focusPrevious",weight:200,primary:15,secondary:[2063],mac:{primary:15,secondary:[527]},when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive),handler:function(e){var t=e.get(z.IEditorGroupsService),i=e.get(N.IBreadcrumbsService).getWidget(t.activeGroup.id);i&&i.focusPrev()}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.selectFocused",weight:200,primary:3,secondary:[18],when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive),handler:function(e){var t=e.get(z.IEditorGroupsService),i=e.get(N.IBreadcrumbsService).getWidget(t.activeGroup.id);i&&i.setSelection(i.getFocused(),q.Payload_Pick)}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.revealFocused",weight:200,primary:10,secondary:[2051],when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive),handler:function(e){var t=e.get(z.IEditorGroupsService),i=e.get(N.IBreadcrumbsService).getWidget(t.activeGroup.id);i&&i.setSelection(i.getFocused(),q.Payload_Reveal)}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.selectEditor",weight:201,primary:9,when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive),handler:function(e){var t=e.get(z.IEditorGroupsService),i=e.get(N.IBreadcrumbsService).getWidget(t.activeGroup.id);i&&(i.setFocused(void 0),i.setSelection(void 0),t.activeGroup.activeControl&&t.activeGroup.activeControl.focus())}}),L.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"breadcrumbs.revealFocusedFromTreeAside",weight:200,primary:2051,when:I.ContextKeyExpr.and(q.CK_BreadcrumbsVisible,q.CK_BreadcrumbsActive,M.WorkbenchListFocusContextKey),handler:function(e){var t=e.get(V.IEditorService),i=e.get(M.IListService),n=i.lastFocusedList?i.lastFocusedList.getFocus():void 0;if(n instanceof _.OutlineElement){var r=_.OutlineModel.get(n);if(!r)return;return t.openEditor({resource:r.textModel.uri,options:{selection:y.Range.collapseToStart(n.symbol.selectionRange)}},V.SIDE_GROUP)}return n&&v.URI.isUri(n.resource)?t.openEditor({resource:n.resource},V.SIDE_GROUP):void 0}})}),define(i[1179],n([0,1,144,7,153,79,16,22,34,12,2,6,13,700]),function(e,t,i,n,r,o,s,c,l,u,d,h,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(e){function t(t,n,r,o){var s=e.call(this,r)||this;return s.accessor=t,s.groupView=n,s.instantiationService=o,s.editorTransfer=i.LocalSelectionTransfer.getInstance(),s.groupTransfer=i.LocalSelectionTransfer.getInstance(),s.cleanupOverlayScheduler=s._register(new g.RunOnceScheduler(function(){return s.dispose()},300)),s.create(),s}return a(t,e),Object.defineProperty(t.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),t.prototype.create=function(){var e=this,i=this.getOverlayOffsetHeight();this.container=document.createElement("div"),this.container.id=t.OVERLAY_ID,this.container.style.top=i+"px",this.groupView.element.appendChild(this.container),n.addClass(this.groupView.element,"dragged-over"),this._register(d.toDisposable(function(){e.groupView.element.removeChild(e.container),n.removeClass(e.groupView.element,"dragged-over")})),this.overlay=document.createElement("div"),n.addClass(this.overlay,"editor-group-overlay-indicator"),this.container.appendChild(this.overlay),this.registerListeners(),this.updateStyles()},t.prototype.updateStyles=function(){this.overlay.style.backgroundColor=this.getColor(o.EDITOR_DRAG_AND_DROP_BACKGROUND);var e=this.getColor(c.activeContrastBorder);this.overlay.style.outlineColor=e,this.overlay.style.outlineOffset=e?"-2px":null,this.overlay.style.outlineStyle=e?"dashed":null,this.overlay.style.outlineWidth=e?"2px":null},t.prototype.registerListeners=function(){var e=this;this._register(new i.DragAndDropObserver(this.container,{onDragEnter:function(e){},onDragOver:function(t){var n=e.groupTransfer.hasData(i.DraggedEditorGroupIdentifier.prototype),r=e.editorTransfer.hasData(i.DraggedEditorIdentifier.prototype);if(r||n||!t.dataTransfer||(t.dataTransfer.dropEffect="copy"),!(n?e.isCopyOperation(t):!r||e.isCopyOperation(t,e.editorTransfer.getData(i.DraggedEditorIdentifier.prototype)[0].identifier))){var o=e.findSourceGroupView();if(o===e.groupView&&(n||r&&o.count<2))return void e.hideOverlay()}e.positionOverlay(t.offsetX,t.offsetY,n),e.cleanupOverlayScheduler.isScheduled()&&e.cleanupOverlayScheduler.cancel()},onDragLeave:function(t){return e.dispose()},onDragEnd:function(t){return e.dispose()},onDrop:function(t){n.EventHelper.stop(t,!0),e.dispose(),e.currentDropOperation&&e.handleDrop(t,e.currentDropOperation.splitDirection)}})),this._register(n.addDisposableListener(this.container,n.EventType.MOUSE_OVER,function(){e.cleanupOverlayScheduler.isScheduled()||e.cleanupOverlayScheduler.schedule()}))},t.prototype.findSourceGroupView=function(){return this.groupTransfer.hasData(i.DraggedEditorGroupIdentifier.prototype)?this.accessor.getGroup(this.groupTransfer.getData(i.DraggedEditorGroupIdentifier.prototype)[0].identifier):this.editorTransfer.hasData(i.DraggedEditorIdentifier.prototype)?this.accessor.getGroup(this.editorTransfer.getData(i.DraggedEditorIdentifier.prototype)[0].identifier.groupId):void 0},t.prototype.handleDrop=function(e,t){var n=this,o=function(){return"number"==typeof t?n.accessor.addGroup(n.groupView,t):n.groupView};if(this.groupTransfer.hasData(i.DraggedEditorGroupIdentifier.prototype)){var s=this.groupTransfer.getData(i.DraggedEditorGroupIdentifier.prototype)[0].identifier,a=this.accessor.getGroup(s);if("number"!=typeof t&&a===this.groupView)return;var c=void 0;c="number"==typeof t?this.isCopyOperation(e)?this.accessor.copyGroup(a,this.groupView,t):this.accessor.moveGroup(a,this.groupView,t):this.isCopyOperation(e)?this.accessor.mergeGroup(a,this.groupView,{mode:0}):this.accessor.mergeGroup(a,this.groupView),this.accessor.activateGroup(c),this.groupTransfer.clearData(i.DraggedEditorGroupIdentifier.prototype)}else if(this.editorTransfer.hasData(i.DraggedEditorIdentifier.prototype)){var u=this.editorTransfer.getData(i.DraggedEditorIdentifier.prototype)[0].identifier;c=o();if((a=this.accessor.getGroup(u.groupId))===c)return;var d=r.getActiveTextEditorOptions(a,u.editor,l.EditorOptions.create({pinned:!0}));c.openEditor(u.editor,d),c.focus(),this.isCopyOperation(e,u)||a.closeEditor(u.editor),this.editorTransfer.clearData(i.DraggedEditorIdentifier.prototype)}else{this.instantiationService.createInstance(i.ResourcesDropHandler,{allowWorkspaceOpen:!0}).handleDrop(e,function(){return o()},function(e){return e.focus()})}},t.prototype.isCopyOperation=function(e,t){return!(t&&!t.editor.supportsSplitEditor())&&(e.ctrlKey&&!u.isMacintosh||e.altKey&&u.isMacintosh)},t.prototype.positionOverlay=function(e,t,i){var r,o=this,s="right"===this.accessor.partOptions.openSideBySideDirection,a=this.groupView.element.clientWidth,c=this.groupView.element.clientHeight-this.getOverlayOffsetHeight(),l=a*(i&&s?.3:.1),u=c*(i?s?.1:.3:.1),d=a/3,h=c/3;switch(r=e>l&&eu&&t2*d?3:t2*h?1:e0?r.format(Z,e.selections.length):void 0},e.prototype.onModeClick=function(){var e=this.instantiationService.createInstance(ue,ue.ID,ue.LABEL);e.run(),e.dispose()},e.prototype.onIndentationClick=function(){var e=this.instantiationService.createInstance(de,de.ID,de.LABEL);e.run(),e.dispose()},e.prototype.onScreenReaderModeClick=function(){var e=this;this.screenReaderNotification||(this.screenReaderNotification=this.notificationService.prompt(H.Severity.Info,i.localize(16,null),[{label:i.localize(17,null),run:function(){e.configurationService.updateValue("editor.accessibilitySupport","on",1)}},{label:i.localize(18,null),run:function(){e.configurationService.updateValue("editor.accessibilitySupport","off",1)}}],{sticky:!0}),K.Event.once(this.screenReaderNotification.onDidClose)(function(){e.screenReaderNotification=null}))},e.prototype.onSelectionClick=function(){this.quickOpenService.show(":")},e.prototype.onEOLClick=function(){var e=this.instantiationService.createInstance(he,he.ID,he.LABEL);e.run(),e.dispose()},e.prototype.onEncodingClick=function(){var e=this.instantiationService.createInstance(pe,pe.ID,pe.LABEL);e.run(),e.dispose()},e.prototype.onTabFocusModeClick=function(){L.TabFocus.setTabFocusMode(!1)},e.prototype.updateStatusBar=function(){var e=this,t=this.editorService.activeControl,i=t&&N.getCodeEditor(t.getControl())||void 0;if(this.onScreenReaderModeChange(i),this.onSelectionChange(i),this.onModeChange(i),this.onEOLChange(i),this.onEncodingChange(t),this.onIndentationChange(i),this.onMetadataChange(t),g.dispose(this.activeEditorListeners),i)this.activeEditorListeners.push(i.onDidChangeConfiguration(function(t){t.accessibilitySupport&&e.onScreenReaderModeChange(i)})),this.activeEditorListeners.push(i.onDidChangeCursorPosition(function(t){e.onSelectionChange(i)})),this.activeEditorListeners.push(i.onDidChangeModelLanguage(function(t){e.onModeChange(i)})),this.activeEditorListeners.push(i.onDidChangeModelContent(function(t){e.onEOLChange(i);var n=i.getSelections();if(n)for(var r=function(t){if(n.some(function(e){return D.Range.areIntersecting(e,t.range)}))return e.onSelectionChange(i),"break"},o=0,s=t.changes;o1&&(o=u.localize(1,null,o,t.group.count-1)),i.applyDragImage(n,o,"monaco-editor-group-drag-image")}}})),this._register(n.addDisposableListener(e,n.EventType.DRAG_END,function(){t.groupTransfer.clearData(x.DraggedEditorGroupIdentifier.prototype)}))},t.prototype.onContextMenu=function(e,t,i){var n=this,o=this.resourceContext.get();this.resourceContext.set(R.toResource(e,{supportSideBySide:!0}));var s=i;if(t instanceof MouseEvent){var a=new r.StandardMouseEvent(t);s={x:a.posx,y:a.posy}}var c=[];d.fillInContextMenuActions(this.contextMenu,{shouldForwardArgs:!0,arg:this.resourceContext.get()},c,this.contextMenuService),this.contextMenuService.showContextMenu({getAnchor:function(){return s},getActions:function(){return c},getActionsContext:function(){return{groupId:n.group.id,editorIndex:n.group.getIndexOfEditor(e)}},getKeyBinding:function(e){return n.getKeybinding(e)},onHide:function(){n.resourceContext.set(o||null),n.accessor.activeGroup.focus()}})},t.prototype.getKeybinding=function(e){return this.keybindingService.lookupKeybinding(e.id)},t.prototype.getKeybindingLabel=function(e){var t=this.getKeybinding(e);return t&&t.getLabel()||void 0},t.prototype.layout=function(e){this.breadcrumbsControl&&this.breadcrumbsControl.layout(void 0)},t.prototype.getPreferredHeight=function(){return M.EDITOR_TITLE_HEIGHT+(this.breadcrumbsControl&&!this.breadcrumbsControl.isHidden()?L.BreadcrumbsControl.HEIGHT:0)},t.prototype.dispose=function(){c.dispose(this.breadcrumbsControl),this.breadcrumbsControl=void 0,this.editorToolBarMenuDisposables=c.dispose(this.editorToolBarMenuDisposables),e.prototype.dispose.call(this)},t=p([f(3,m.IContextMenuService),f(4,y.IInstantiationService),f(5,v.IContextKeyService),f(6,b.IKeybindingService),f(7,C.ITelemetryService),f(8,_.INotificationService),f(9,h.IMenuService),f(10,S.IQuickOpenService),f(11,E.IThemeService),f(12,P.IExtensionService),f(13,g.IConfigurationService),f(14,A.IFileService)],t)}(T.Themable);t.TitleControl=N,E.registerThemingParticipant(function(e,t){var i=e.getColor(w.listActiveSelectionBackground),n=e.getColor(w.listActiveSelectionForeground);t.addRule("\n\t\t.monaco-editor-group-drag-image {\n\t\t\tbackground: "+i+";\n\t\t\tcolor: "+n+";\n\t\t}\n\t")})}),define(i[1183],n([0,1,34,443,150,79,104,7,153,139,49,706]),function(e,t,i,n,r,o,s,c,l,u,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.activeLabel=Object.create(null),t}return a(t,e),t.prototype.create=function(e){var t=this;this.titleContainer=e,this.titleContainer.draggable=!0,this.registerContainerListeners(),s.Gesture.addTarget(this.titleContainer);var i=document.createElement("div");c.addClass(i,"label-container"),this.titleContainer.appendChild(i),this.editorLabel=this._register(this.instantiationService.createInstance(r.ResourceLabel,i,void 0)).element,this._register(c.addDisposableListener(this.editorLabel.element,c.EventType.CLICK,function(e){return t.onTitleLabelClick(e)})),this.createBreadcrumbsControl(i,{showFileIcons:!1,showSymbolIcons:!0,showDecorationColors:!1,breadcrumbsBackground:function(){return d.Color.transparent}}),c.toggleClass(this.titleContainer,"breadcrumbs",Boolean(this.breadcrumbsControl)),this.toDispose.push({dispose:function(){return c.removeClass(t.titleContainer,"breadcrumbs")}});var n=document.createElement("div");c.addClass(n,"title-actions"),this.titleContainer.appendChild(n),this.createEditorActionsToolBar(n)},t.prototype.registerContainerListeners=function(){var e=this;this.enableGroupDragging(this.titleContainer),this._register(c.addDisposableListener(this.titleContainer,c.EventType.DBLCLICK,function(t){return e.onTitleDoubleClick(t)})),this._register(c.addDisposableListener(this.titleContainer,c.EventType.MOUSE_UP,function(t){return e.onTitleClick(t)})),this._register(c.addDisposableListener(this.titleContainer,s.EventType.Tap,function(t){return e.onTitleClick(t)})),this._register(c.addDisposableListener(this.titleContainer,c.EventType.CONTEXT_MENU,function(t){e.group.activeEditor&&e.onContextMenu(e.group.activeEditor,t,e.titleContainer)})),this._register(c.addDisposableListener(this.titleContainer,s.EventType.Contextmenu,function(t){e.group.activeEditor&&e.onContextMenu(e.group.activeEditor,t,e.titleContainer)}))},t.prototype.onTitleLabelClick=function(e){var t=this;c.EventHelper.stop(e,!1),setTimeout(function(){return t.quickOpenService.show()})},t.prototype.onTitleDoubleClick=function(e){c.EventHelper.stop(e),this.group.pinEditor()},t.prototype.onTitleClick=function(e){e instanceof MouseEvent&&1===e.button&&(c.EventHelper.stop(e,!0),this.group.activeEditor&&this.group.closeEditor(this.group.activeEditor))},t.prototype.getPreferredHeight=function(){return l.EDITOR_TITLE_HEIGHT},t.prototype.openEditor=function(e){var t=this;this.ifActiveEditorChanged(function(){return t.redraw()})||this.ifActiveEditorPropertiesChanged(function(){return t.redraw()})},t.prototype.closeEditor=function(e){var t=this;this.ifActiveEditorChanged(function(){return t.redraw()})},t.prototype.closeEditors=function(e){var t=this;this.ifActiveEditorChanged(function(){return t.redraw()})},t.prototype.closeAllEditors=function(){this.redraw()},t.prototype.moveEditor=function(e,t,i){var n=this;this.ifActiveEditorChanged(function(){return n.redraw()})},t.prototype.pinEditor=function(e){var t=this;this.ifEditorIsActive(e,function(){return t.redraw()})},t.prototype.setActive=function(e){this.redraw()},t.prototype.updateEditorLabel=function(e){var t=this;this.ifEditorIsActive(e,function(){return t.redraw()})},t.prototype.updateEditorDirty=function(e){var t=this;this.ifEditorIsActive(e,function(){e.isDirty()?c.addClass(t.titleContainer,"dirty"):c.removeClass(t.titleContainer,"dirty")})},t.prototype.updateOptions=function(e,t){e.labelFormat!==t.labelFormat&&this.redraw()},t.prototype.updateStyles=function(){this.redraw()},t.prototype.handleBreadcrumbsEnablementChange=function(){c.toggleClass(this.titleContainer,"breadcrumbs",Boolean(this.breadcrumbsControl)),this.redraw()},t.prototype.ifActiveEditorChanged=function(e){return!(!(!this.activeLabel.editor&&this.group.activeEditor||this.activeLabel.editor&&!this.group.activeEditor)&&this.activeLabel.editor&&this.group.isActive(this.activeLabel.editor))&&(e(),!0)},t.prototype.ifActiveEditorPropertiesChanged=function(e){this.activeLabel.editor&&this.group.activeEditor&&this.activeLabel.pinned!==this.group.isPinned(this.group.activeEditor)&&e()},t.prototype.ifEditorIsActive=function(e,t){this.group.isActive(e)&&t()},t.prototype.redraw=function(){var e=this.group.activeEditor,t=!!this.group.activeEditor&&this.group.isPinned(this.group.activeEditor),n=this.accessor.activeGroup===this.group;if(this.activeLabel={editor:e||void 0,pinned:t},this.breadcrumbsControl&&(n?(this.breadcrumbsControl.update(),c.toggleClass(this.breadcrumbsControl.domNode,"preview",!t)):this.breadcrumbsControl.hide()),e){this.updateEditorDirty(e);var r=i.toResource(e,{supportSideBySide:!0}),s=e.getName()||"",a=this.accessor.partOptions.labelFormat,l=void 0;l=this.breadcrumbsControl&&!this.breadcrumbsControl.isHidden()?"":("default"!==a||n)&&e.getDescription(this.getVerbosity(a))||"";var u=e.getTitle(2);l===u&&(u=""),this.editorLabel.setResource({name:s,description:l,resource:r||void 0},{title:"string"==typeof u?u:void 0,italic:!t,extraClasses:["no-tabs","title-label"]}),this.editorLabel.element.style.color=n?this.getColor(o.TAB_ACTIVE_FOREGROUND):this.getColor(o.TAB_UNFOCUSED_ACTIVE_FOREGROUND),this.updateEditorActionsToolbar()}else c.removeClass(this.titleContainer,"dirty"),this.editorLabel.clear(),this.clearEditorActionsToolbar()},t.prototype.getVerbosity=function(e){switch(e){case"short":return 0;case"long":return 2;default:return 1}},t.prototype.prepareEditorActions=function(t){return this.accessor.activeGroup===this.group?e.prototype.prepareEditorActions.call(this,t):{primaryEditorActions:t.primary.filter(function(e){return e.id===u.CLOSE_EDITOR_COMMAND_ID}),secondaryEditorActions:[]}},t}(n.TitleControl);t.NoTabsTitleControl=h}),define(i[1184],n([0,1,12,81,34,60,104,150,61,51,37,6,44,15,38,443,72,2,106,41,16,79,22,144,28,57,80,7,513,301,18,442,26,709]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var N=function(e){function t(t,i,n,r,o,s,a,c,l,u,d,h,p,f,g,v){var m=e.call(this,t,i,n,r,o,a,c,l,u,d,h,p,f,g,v)||this;return m.untitledEditorService=s,m.tabLabels=[],m.tabDisposeables=[],m}return a(t,e),t.prototype.create=function(e){this.titleContainer=e;var t=document.createElement("div");M.addClass(t,"tabs-and-actions-container"),this.titleContainer.appendChild(t),this.tabsContainer=document.createElement("div"),this.tabsContainer.setAttribute("role","tablist"),this.tabsContainer.draggable=!0,M.addClass(this.tabsContainer,"tabs-container"),this.registerTabsContainerListeners(),this.tabsScrollbar=this.createTabsScrollbar(this.tabsContainer),t.appendChild(this.tabsScrollbar.getDomNode()),this.editorToolbarContainer=document.createElement("div"),M.addClass(this.editorToolbarContainer,"editor-actions"),t.appendChild(this.editorToolbarContainer),this.createEditorActionsToolBar(this.editorToolbarContainer),this.closeOneEditorAction=this._register(this.instantiationService.createInstance(O.CloseOneEditorAction,O.CloseOneEditorAction.ID,O.CloseOneEditorAction.LABEL));var i=document.createElement("div");M.addClass(i,"tabs-breadcrumbs"),this.titleContainer.appendChild(i),this.createBreadcrumbsControl(i,{showFileIcons:!0,showSymbolIcons:!0,showDecorationColors:!1,breadcrumbsBackground:I.breadcrumbsBackground}),this.tabResourceLabels=this._register(this.instantiationService.createInstance(c.ResourceLabels,c.DEFAULT_LABELS_CONTAINER))},t.prototype.createTabsScrollbar=function(e){var t=new S.ScrollableElement(e,{horizontal:1,vertical:2,scrollYToX:!0,useShadows:!1,horizontalScrollbarSize:3});return t.onScroll(function(t){e.scrollLeft=t.scrollLeft}),t},t.prototype.updateBreadcrumbsControl=function(){this.breadcrumbsControl&&this.breadcrumbsControl.update()&&this.group.relayout()},t.prototype.handleBreadcrumbsEnablementChange=function(){this.group.relayout()},t.prototype.registerTabsContainerListeners=function(){var e=this;this.enableGroupDragging(this.tabsContainer),this._register(M.addDisposableListener(this.tabsContainer,M.EventType.SCROLL,function(){M.hasClass(e.tabsContainer,"scroll")&&e.tabsScrollbar.setScrollPosition({scrollLeft:e.tabsContainer.scrollLeft})})),this._register(M.addDisposableListener(this.tabsContainer,M.EventType.DBLCLICK,function(t){t.target===e.tabsContainer&&(M.EventHelper.stop(t),e.group.openEditor(e.untitledEditorService.createOrGet(),{pinned:!0,index:e.group.count}))})),this._register(M.addDisposableListener(this.tabsContainer,M.EventType.MOUSE_DOWN,function(e){1===e.button&&e.preventDefault()})),this._register(new x.DragAndDropObserver(this.tabsContainer,{onDragEnter:function(t){if(M.addClass(e.tabsContainer,"scroll"),t.target===e.tabsContainer)if(e.isSupportedDropTransfer(t)){var i=!1;if(e.editorTransfer.hasData(x.DraggedEditorIdentifier.prototype)){i=!0;var n=e.editorTransfer.getData(x.DraggedEditorIdentifier.prototype)[0].identifier;if(e.group.id===n.groupId&&e.group.getIndexOfEditor(n.editor)===e.group.count-1)return void(t.dataTransfer.dropEffect="none")}i||(t.dataTransfer.dropEffect="copy"),e.updateDropFeedback(e.tabsContainer,!0)}else t.dataTransfer.dropEffect="none";else e.updateDropFeedback(e.tabsContainer,!1)},onDragLeave:function(t){e.updateDropFeedback(e.tabsContainer,!1),M.removeClass(e.tabsContainer,"scroll")},onDragEnd:function(t){e.updateDropFeedback(e.tabsContainer,!1),M.removeClass(e.tabsContainer,"scroll")},onDrop:function(t){e.updateDropFeedback(e.tabsContainer,!1),M.removeClass(e.tabsContainer,"scroll"),t.target===e.tabsContainer&&e.onDrop(t,e.group.count)}}))},t.prototype.updateEditorActionsToolbar=function(){e.prototype.updateEditorActionsToolbar.call(this),this.layout(this.dimension)},t.prototype.openEditor=function(e){for(var t=this.tabsContainer.children.length;tthis.group.count;)this.tabsContainer.lastChild.remove(),this.tabDisposeables.pop().dispose();this.computeTabLabels(),this.redraw()}else M.clearNode(this.tabsContainer),this.tabDisposeables=_.dispose(this.tabDisposeables),this.tabResourceLabels.clear(),this.tabLabels=[],this.clearEditorActionsToolbar();this.updateBreadcrumbsControl()},t.prototype.moveEditor=function(e,t,i){var n=this,r=this.tabLabels[t];this.tabLabels.splice(t,1),this.tabLabels.splice(i,0,r),this.forEachTab(function(e,t,i,r,o){n.redrawTab(e,t,i,r,o)}),this.layout(this.dimension)},t.prototype.pinEditor=function(e){var t=this;this.withTab(e,function(i,n,r){return t.redrawLabel(e,i,n,r)})},t.prototype.setActive=function(e){var t=this;this.forEachTab(function(i,n,r,o,s){t.redrawEditorActiveAndDirty(e,i,r,o)}),this.updateEditorActionsToolbar(),this.layout(this.dimension)},t.prototype.updateEditorLabel=function(e){var t=this;this.computeTabLabels(),this.forEachTab(function(e,i,n,r,o){t.redrawLabel(e,n,r,o)}),this.layout(this.dimension)},t.prototype.updateEditorDirty=function(e){var t=this;this.withTab(e,function(i,n){return t.redrawEditorActiveAndDirty(t.accessor.activeGroup===t.group,e,i,n)})},t.prototype.updateOptions=function(e,t){e.labelFormat!==t.labelFormat&&this.computeTabLabels(),e.labelFormat===t.labelFormat&&e.tabCloseButton===t.tabCloseButton&&e.tabSizing===t.tabSizing&&e.showIcons===t.showIcons&&e.iconTheme===t.iconTheme&&e.highlightModifiedTabs===t.highlightModifiedTabs||this.redraw()},t.prototype.updateStyles=function(){this.redraw()},t.prototype.withTab=function(e,t){var i=this.group.getIndexOfEditor(e),n=this.tabsContainer.children[i];n&&t(n,this.tabResourceLabels.get(i),this.tabLabels[i])},t.prototype.createTab=function(e){var t=this,i=document.createElement("div");i.draggable=!0,i.tabIndex=0,i.setAttribute("role","presentation"),M.addClass(i,"tab"),s.Gesture.addTarget(i);var n=document.createElement("div");M.addClass(n,"tab-border-top-container"),i.appendChild(n);var o=this.tabResourceLabels.create(i),a=document.createElement("div");M.addClass(a,"tab-close"),i.appendChild(a);var c=document.createElement("div");M.addClass(c,"tab-border-bottom-container"),i.appendChild(c);var u=new r.EditorCommandsContextActionRunner({groupId:this.group.id,editorIndex:e}),d=new l.ActionBar(a,{ariaLabel:R.localize(0,null),actionRunner:u});d.push(this.closeOneEditorAction,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(this.closeOneEditorAction)}),d.onDidBeforeRun(function(){return t.blockRevealActiveTabOnce()});var h=this.registerTabListeners(i,e);return this.tabDisposeables.push(_.combinedDisposable([h,d,u,o])),i},t.prototype.registerTabListeners=function(e,t){var i=this,n=[],a=function(n){if(e.blur(),n instanceof MouseEvent&&0!==n.button)1===n.button&&n.preventDefault();else if(!i.originatesFromTabActionBar(n)){var r=i.group.getEditor(t);r&&i.group.openEditor(r)}},c=function(n){M.EventHelper.stop(n);var r=i.group.getEditor(t);r&&i.onContextMenu(r,n,e)};return n.push(M.addDisposableListener(e,M.EventType.MOUSE_DOWN,function(e){return a(e)})),n.push(M.addDisposableListener(e,s.EventType.Tap,function(e){return a(e)})),n.push(M.addDisposableListener(e,s.EventType.Change,function(e){i.tabsScrollbar.setScrollPosition({scrollLeft:i.tabsScrollbar.getScrollPosition().scrollLeft-e.translationX})})),n.push(M.addDisposableListener(e,M.EventType.MOUSE_UP,function(n){M.EventHelper.stop(n),e.blur(),1===n.button&&(n.stopPropagation(),i.blockRevealActiveTabOnce(),i.closeOneEditorAction.run({groupId:i.group.id,editorIndex:t}))})),n.push(M.addDisposableListener(e,M.EventType.KEY_DOWN,function(e){var t=new o.StandardKeyboardEvent(e);t.shiftKey&&68===t.keyCode&&c(e)})),n.push(M.addDisposableListener(e,s.EventType.Contextmenu,function(e){c(e)})),n.push(M.addDisposableListener(e,M.EventType.KEY_UP,function(e){var n=new o.StandardKeyboardEvent(e),r=!1;if(n.equals(3)||n.equals(10)){r=!0;var s=i.group.getEditor(t);s&&i.group.openEditor(s)}else if([15,17,16,18,14,13].some(function(e){return n.equals(e)})){var a=void 0;a=n.equals(15)||n.equals(16)?t-1:n.equals(17)||n.equals(18)?t+1:n.equals(14)?0:i.group.count-1;var c=i.group.getEditor(a);c&&(r=!0,i.group.openEditor(c,{preserveFocus:!0}),i.tabsContainer.childNodes[a].focus())}r&&M.EventHelper.stop(e,!0),i.tabsScrollbar.setScrollPosition({scrollLeft:i.tabsContainer.scrollLeft})})),n.push(M.addDisposableListener(e,M.EventType.DBLCLICK,function(e){M.EventHelper.stop(e),i.group.pinEditor(i.group.getEditor(t)||void 0)})),n.push(M.addDisposableListener(e,M.EventType.CONTEXT_MENU,function(n){M.EventHelper.stop(n,!0);var r=i.group.getEditor(t);r&&i.onContextMenu(r,n,e)},!0)),n.push(M.addDisposableListener(e,M.EventType.DRAG_START,function(n){var o=i.group.getEditor(t);if(o){i.editorTransfer.setData([new x.DraggedEditorIdentifier({editor:o,groupId:i.group.id})],x.DraggedEditorIdentifier.prototype),n.dataTransfer.effectAllowed="copyMove";var s=r.toResource(o,{supportSideBySide:!0});s&&i.instantiationService.invokeFunction(x.fillResourceDataTransfers,[s],n),M.addClass(e,"dragged"),M.scheduleAtNextAnimationFrame(function(){return M.removeClass(e,"dragged")})}})),n.push(new x.DragAndDropObserver(e,{onDragEnter:function(n){if(M.addClass(e,"dragged-over"),i.isSupportedDropTransfer(n)){var r=!1;if(i.editorTransfer.hasData(x.DraggedEditorIdentifier.prototype)){r=!0;var o=i.editorTransfer.getData(x.DraggedEditorIdentifier.prototype)[0].identifier;if(o.editor===i.group.getEditor(t)&&o.groupId===i.group.id)return void(n.dataTransfer.dropEffect="none")}r||(n.dataTransfer.dropEffect="copy"),i.updateDropFeedback(e,!0,t)}else n.dataTransfer.dropEffect="none"},onDragLeave:function(n){M.removeClass(e,"dragged-over"),i.updateDropFeedback(e,!1,t)},onDragEnd:function(n){M.removeClass(e,"dragged-over"),i.updateDropFeedback(e,!1,t),i.editorTransfer.clearData(x.DraggedEditorIdentifier.prototype)},onDrop:function(n){M.removeClass(e,"dragged-over"),i.updateDropFeedback(e,!1,t),i.onDrop(n,t)}})),_.combinedDisposable(n)},t.prototype.isSupportedDropTransfer=function(e){return this.groupTransfer.hasData(x.DraggedEditorGroupIdentifier.prototype)?this.groupTransfer.getData(x.DraggedEditorGroupIdentifier.prototype)[0].identifier!==this.group.id:!!this.editorTransfer.hasData(x.DraggedEditorIdentifier.prototype)||!!(e.dataTransfer&&e.dataTransfer.types.length>0)},t.prototype.updateDropFeedback=function(e,t,i){var n="number"==typeof i,r="number"==typeof i?this.group.getEditor(i):null,o=n&&!!r&&this.group.isActive(r),s=n?this.getColor(o?E.TAB_ACTIVE_BACKGROUND:E.TAB_INACTIVE_BACKGROUND):null;e.style.backgroundColor=t?this.getColor(E.EDITOR_DRAG_AND_DROP_BACKGROUND):s;var a=this.getColor(I.activeContrastBorder);a&&t?(e.style.outlineWidth="2px",e.style.outlineStyle="dashed",e.style.outlineColor=a,e.style.outlineOffset=n?"-5px":"-3px"):(e.style.outlineWidth=null,e.style.outlineStyle=null,e.style.outlineColor=a,e.style.outlineOffset=null)},t.prototype.computeTabLabels=function(){var e=this.accessor.partOptions.labelFormat,t=this.getLabelConfigFlags(e),i=t.verbosity,n=t.shortenDuplicates,r=this.group.editors.map(function(e){return{editor:e,name:e.getName(),description:e.getDescription(i)||void 0,title:e.getTitle(2)||void 0}});n&&this.shortenTabLabels(r),this.tabLabels=r},t.prototype.shortenTabLabels=function(e){for(var t=new Map,i=0,r=e;i1){var i=e.map(function(e){return e.editor.getDescription(2)}),n=i[0],r=i.slice(1);s=r.some(function(e){return e!==n})}}),s&&(t.clear(),e.forEach(function(e){e.description=e.editor.getDescription(2)||void 0,C.getOrSet(t,e.description,[]).push(e)}));var a=[];if(t.forEach(function(e,t){return a.push(t)}),1!==a.length){var c=n.shorten(a);a.forEach(function(e,i){for(var n=0,r=t.get(e)||[];ni||!a)&&this.tabsScrollbar.setScrollPosition({scrollLeft:i})}}},t.prototype.getTab=function(e){var t=this.group.getIndexOfEditor(e);if(t>=0)return this.tabsContainer.children[t]},t.prototype.blockRevealActiveTabOnce=function(){this.blockRevealActiveTab=!0},t.prototype.originatesFromTabActionBar=function(e){var t;return t=e instanceof MouseEvent?e.target||e.srcElement:e.initialTarget,!!M.findParentWithClass(t,"action-item","tab")},t.prototype.onDrop=function(e,t){var i=this;if(M.EventHelper.stop(e,!0),this.updateDropFeedback(this.tabsContainer,!1),M.removeClass(this.tabsContainer,"scroll"),this.editorTransfer.hasData(x.DraggedEditorIdentifier.prototype)){var n=this.editorTransfer.getData(x.DraggedEditorIdentifier.prototype)[0].identifier,r=this.accessor.getGroup(n.groupId);this.isMoveOperation(e,n.groupId)?r.moveEditor(n.editor,this.group,{index:t}):r.copyEditor(n.editor,this.group,{index:t}),this.group.focus(),this.editorTransfer.clearData(x.DraggedEditorIdentifier.prototype)}else if(this.groupTransfer.hasData(x.DraggedEditorGroupIdentifier.prototype)){r=this.accessor.getGroup(this.groupTransfer.getData(x.DraggedEditorGroupIdentifier.prototype)[0].identifier);var o={index:t};this.isMoveOperation(e,r.id)||(o.mode=0),this.accessor.mergeGroup(r,this.group,o),this.group.focus(),this.groupTransfer.clearData(x.DraggedEditorGroupIdentifier.prototype)}else{this.instantiationService.createInstance(x.ResourcesDropHandler,{allowWorkspaceOpen:!1}).handleDrop(e,function(){return i.group},function(){return i.group.focus()},t)}},t.prototype.isMoveOperation=function(e,t){return!(e.ctrlKey&&!i.isMacintosh||e.altKey&&i.isMacintosh)||t===this.group.id},t.prototype.dispose=function(){e.prototype.dispose.call(this),_.dispose(this.layoutScheduled),this.layoutScheduled=void 0},t=p([f(3,u.IContextMenuService),f(4,h.IInstantiationService),f(5,L.IUntitledEditorService),f(6,v.IContextKeyService),f(7,g.IKeybindingService),f(8,d.ITelemetryService),f(9,D.INotificationService),f(10,m.IMenuService),f(11,b.IQuickOpenService),f(12,w.IThemeService),f(13,k.IExtensionService),f(14,T.IConfigurationService),f(15,A.IFileService)],t)}(y.TitleControl);t.TabsTitleControl=N,w.registerThemingParticipant(function(e,t){e.getColor(I.activeContrastBorder)&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.active,\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.active:hover {\n\t\t\t\toutline: 1px solid;\n\t\t\t\toutline-offset: -5px;\n\t\t\t}\n\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab:hover {\n\t\t\t\toutline: 1px dashed;\n\t\t\t\toutline-offset: -5px;\n\t\t\t}\n\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.active > .tab-close .action-label,\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.active:hover > .tab-close .action-label,\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab.dirty > .tab-close .action-label,\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab:hover > .tab-close .action-label {\n\t\t\t\topacity: 1 !important;\n\t\t\t}\n\t\t");var i=e.getColor(I.contrastBorder);I.contrastBorder&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .editor-actions {\n\t\t\t\toutline: 1px solid "+i+"\n\t\t\t}\n\t\t");var n=e.getColor(E.TAB_HOVER_BACKGROUND);n&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container.active > .title .tabs-container > .tab:hover {\n\t\t\t\tbackground-color: "+n+" !important;\n\t\t\t}\n\t\t");var r=e.getColor(E.TAB_UNFOCUSED_HOVER_BACKGROUND);r&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab:hover {\n\t\t\t\tbackground-color: "+r+" !important;\n\t\t\t}\n\t\t");var o=e.getColor(E.TAB_HOVER_BORDER);o&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container.active > .title .tabs-container > .tab:hover {\n\t\t\t\tbox-shadow: "+o+" 0 -1px inset !important;\n\t\t\t}\n\t\t");var s=e.getColor(E.TAB_UNFOCUSED_HOVER_BORDER);if(s&&t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container > .title .tabs-container > .tab:hover {\n\t\t\t\tbox-shadow: "+s+" 0 -1px inset !important;\n\t\t\t}\n\t\t"),"hc"!==e.type){var a=E.WORKBENCH_BACKGROUND(e),c=e.getColor(I.editorBackground),l=e.getColor(E.EDITOR_GROUP_HEADER_TABS_BACKGROUND),u=e.getColor(E.EDITOR_DRAG_AND_DROP_BACKGROUND),d=void 0;l&&c&&(d=l.flatten(c,c,a));var h=void 0;if(l&&c&&u&&c&&(h=l.flatten(c,u,c,a)),n&&d&&h){var p=n.flatten(d),f=n.flatten(h);t.addRule("\n\t\t\t\t.monaco-workbench .part.editor > .content:not(.dragged-over) .editor-group-container.active > .title .tabs-container > .tab.sizing-shrink:not(.dragged):hover > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+p+", transparent) !important;\n\t\t\t\t}\n\n\n\t\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container.active > .title .tabs-container > .tab.sizing-shrink:not(.dragged):hover > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+f+", transparent) !important;\n\t\t\t\t}\n\t\t\t")}if(r&&d&&h){p=r.flatten(d),f=r.flatten(h);t.addRule("\n\t\t\t\t.monaco-workbench .part.editor > .content:not(.dragged-over) .editor-group-container > .title .tabs-container > .tab.sizing-shrink:not(.dragged):hover > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+p+", transparent) !important;\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container > .title .tabs-container > .tab.sizing-shrink:not(.dragged):hover > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+f+", transparent) !important;\n\t\t\t\t}\n\t\t\t")}if(u&&h){f=u.flatten(h);t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container.active > .title .tabs-container > .tab.sizing-shrink.dragged-over:not(.active):not(.dragged) > .tab-label::after,\n\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container:not(.active) > .title .tabs-container > .tab.sizing-shrink.dragged-over:not(.dragged) > .tab-label::after {\n\t\t\t\tbackground: linear-gradient(to left, "+f+", transparent) !important;\n\t\t\t}\n\t\t")}var g=e.getColor(E.TAB_ACTIVE_BACKGROUND);if(g&&d&&h){p=g.flatten(d),f=g.flatten(h);t.addRule("\n\t\t\t\t.monaco-workbench .part.editor > .content:not(.dragged-over) .editor-group-container > .title .tabs-container > .tab.sizing-shrink.active:not(.dragged) > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+p+", transparent);\n\t\t\t\t}\n\n\t\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container > .title .tabs-container > .tab.sizing-shrink.active:not(.dragged) > .tab-label::after {\n\t\t\t\t\tbackground: linear-gradient(to left, "+f+", transparent);\n\t\t\t\t}\n\t\t\t")}var v=e.getColor(E.TAB_INACTIVE_BACKGROUND);if(v&&d&&h){p=v.flatten(d),f=v.flatten(h);t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content:not(.dragged-over) .editor-group-container > .title .tabs-container > .tab.sizing-shrink:not(.dragged) > .tab-label::after {\n\t\t\t\tbackground: linear-gradient(to left, "+p+", transparent);\n\t\t\t}\n\n\t\t\t.monaco-workbench .part.editor > .content.dragged-over .editor-group-container > .title .tabs-container > .tab.sizing-shrink:not(.dragged) > .tab-label::after {\n\t\t\t\tbackground: linear-gradient(to left, "+f+", transparent);\n\t\t\t}\n\t\t")}}})}),define(i[1185],n([0,1,555,70,50,12,43,85,2,267,80,17,24]),function(e,t,i,n,r,o,s,c,l,u,d,h,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(e){function t(t,i,n,r,o,s){var a=e.call(this)||this;return a.textFileService=t,a.lifecycleService=i,a.editorService=n,a.activityService=r,a.windowService=o,a.untitledEditorService=s,a.isDocumentedEdited=!1,a.registerListeners(),a}return a(t,e),t.prototype.registerListeners=function(){var e=this;this._register(this.untitledEditorService.onDidChangeDirty(function(t){return e.onUntitledDidChangeDirty(t)})),this._register(this.textFileService.models.onModelsDirty(function(t){return e.onTextFilesDirty(t)})),this._register(this.textFileService.models.onModelsSaved(function(t){return e.onTextFilesSaved(t)})),this._register(this.textFileService.models.onModelsSaveError(function(t){return e.onTextFilesSaveError(t)})),this._register(this.textFileService.models.onModelsReverted(function(t){return e.onTextFilesReverted(t)})),this.lifecycleService.onShutdown(this.dispose,this)},t.prototype.onUntitledDidChangeDirty=function(e){var t=this.untitledEditorService.isDirty(e);(!this.isDocumentedEdited&&t||this.isDocumentedEdited&&!t)&&this.updateDocumentEdited(),(t||this.lastDirtyCount>0)&&this.updateActivityBadge()},t.prototype.onTextFilesDirty=function(e){var t=this;1===this.textFileService.getAutoSaveMode()||this.isDocumentedEdited||this.updateDocumentEdited(),1!==this.textFileService.getAutoSaveMode()&&this.updateActivityBadge(),this.doOpenDirtyResources(h.distinct(e.filter(function(e){var i=t.textFileService.models.get(e.resource);return i&&i.isDirty()&&!i.hasState(2)&&!t.editorService.isOpen({resource:e.resource})}).map(function(e){return e.resource}),function(e){return e.toString()}))},t.prototype.doOpenDirtyResources=function(e){var t=this.editorService.activeControl;this.editorService.openEditors(e.map(function(e){return{resource:e,options:{inactive:!0,pinned:!0,preserveFocus:!0}}}),t?t.group:g.ACTIVE_GROUP)},t.prototype.onTextFilesSaved=function(e){this.isDocumentedEdited&&this.updateDocumentEdited(),this.lastDirtyCount>0&&this.updateActivityBadge()},t.prototype.onTextFilesSaveError=function(e){this.isDocumentedEdited||this.updateDocumentEdited(),this.updateActivityBadge()},t.prototype.onTextFilesReverted=function(e){this.isDocumentedEdited&&this.updateDocumentEdited(),this.lastDirtyCount>0&&this.updateActivityBadge()},t.prototype.updateActivityBadge=function(){var e=this.textFileService.getDirty().length;this.lastDirtyCount=e,l.dispose(this.badgeHandle),e>0&&(this.badgeHandle=this.activityService.showActivity(n.VIEWLET_ID,new u.NumberBadge(e,function(t){return 1===t?i.localize(0,null):i.localize(1,null,e)}),"explorer-viewlet-label"))},t.prototype.updateDocumentEdited=function(){if(1===o.platform){var e=this.textFileService.isDirty();this.isDocumentedEdited=e,this.windowService.setDocumentEdited(e)}},t=p([f(0,r.ITextFileService),f(1,c.ILifecycleService),f(2,g.IEditorService),f(3,u.IActivityService),f(4,s.IWindowService),f(5,d.IUntitledEditorService)],t)}(l.Disposable);t.DirtyFilesTracker=v}),define(i[444],n([0,1,6,34,168,327,19,41,80,26,33,5,10,21,171,608,56,24,18,2,17,75,67,39]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var D=function(e){function t(t,i,r,o,a,c){var l=e.call(this)||this;return l.editorGroupService=t,l.untitledEditorService=i,l.instantiationService=r,l.labelService=o,l.fileService=a,l.configurationService=c,l._onDidActiveEditorChange=l._register(new h.Emitter),l._onDidVisibleEditorsChange=l._register(new h.Emitter),l._onDidCloseEditor=l._register(new h.Emitter),l._onDidOpenEditorFail=l._register(new h.Emitter),l.openEditorHandlers=[],l.fileInputFactory=s.Registry.as(n.Extensions.EditorInputFactories).getFileInputFactory(),l.registerListeners(),l}return a(t,e),Object.defineProperty(t.prototype,"onDidActiveEditorChange",{get:function(){return this._onDidActiveEditorChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidVisibleEditorsChange",{get:function(){return this._onDidVisibleEditorsChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidCloseEditor",{get:function(){return this._onDidCloseEditor.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidOpenEditorFail",{get:function(){return this._onDidOpenEditorFail.event},enumerable:!0,configurable:!0}),t.prototype.registerListeners=function(){var e=this;this.editorGroupService.whenRestored.then(function(){return e.onEditorsRestored()}),this.editorGroupService.onDidActiveGroupChange(function(t){return e.handleActiveEditorChange(t)}),this.editorGroupService.onDidAddGroup(function(t){return e.registerGroupListeners(t)})},t.prototype.onEditorsRestored=function(){var e=this;this.editorGroupService.groups.forEach(function(t){return e.registerGroupListeners(t)}),this.activeEditor&&(this.doEmitActiveEditorChangeEvent(),this._onDidVisibleEditorsChange.fire())},t.prototype.handleActiveEditorChange=function(e){e===this.editorGroupService.activeGroup&&(this.lastActiveEditor||e.activeEditor)&&(this.lastActiveGroupId===e.id&&this.lastActiveEditor===e.activeEditor||this.doEmitActiveEditorChangeEvent())},t.prototype.doEmitActiveEditorChangeEvent=function(){var e=this.editorGroupService.activeGroup;this.lastActiveGroupId=e.id,this.lastActiveEditor=e.activeEditor,this._onDidActiveEditorChange.fire()},t.prototype.registerGroupListeners=function(e){var t=this,i=[];i.push(e.onDidGroupChange(function(i){5===i.kind&&(t.handleActiveEditorChange(e),t._onDidVisibleEditorsChange.fire())})),i.push(e.onDidCloseEditor(function(e){t._onDidCloseEditor.fire(e)})),i.push(e.onWillOpenEditor(function(i){t.onGroupWillOpenEditor(e,i)})),i.push(e.onDidOpenEditorFail(function(i){t._onDidOpenEditorFail.fire({editor:i,groupId:e.id})})),h.Event.once(e.onWillDispose)(function(){C.dispose(i)})},t.prototype.onGroupWillOpenEditor=function(e,t){for(var i=function(i){var n=i(t.editor,t.options,e);if(n&&n.override)return t.prevent(function(){return n.override}),"break"},n=0,r=this.openEditorHandlers;n=0&&t.openEditorHandlers.splice(i,1)})},t.prototype.openEditor=function(e,t,i){if(e instanceof n.EditorInput){var r=this.toOptions(t),o=this.findTargetGroup(e,r,i);return this.doOpenEditor(o,e,r)}var s=e,a=this.createInput(s);if(a){r=n.TextEditorOptions.from(s),o=this.findTargetGroup(a,r,t);return this.doOpenEditor(o,a,r)}return Promise.resolve(null)},t.prototype.doOpenEditor=function(e,t,i){return e.openEditor(t,i)},t.prototype.findTargetGroup=function(e,t,i){var n;if(i&&"number"!=typeof i)return i;if(i===_.SIDE_GROUP)n=this.findSideBySideGroup();else if("number"==typeof i&&i>=0)n=this.editorGroupService.getGroup(i);else if(!t||"number"!=typeof t.index){var r=this.editorGroupService.getGroups(1);if(t&&t.revealIfVisible)for(var o=0,s=r;o=0?(r=n,null):n})),a={name:i.localize(1,null),extensions:["*"]};return r?(s.unshift(r),s.unshift(a)):s.unshift(a),s.push({name:i.localize(2,null),extensions:[""]}),n.filters=s,n},t.prototype.confirmSave=function(e){if(this.environmentService.isExtensionDevelopment)return Promise.resolve(1);var t=this.getDirty(e);if(0===t.length)return Promise.resolve(1);var n=1===t.length?i.localize(3,null,T.basename(t[0])):A.getConfirmMessage(i.localize(4,null,t.length),t),r=[t.length>1?i.localize(5,null):i.localize(6,null),i.localize(7,null),i.localize(8,null)];return this.dialogService.show(O.Severity.Warning,n,r,{cancelId:2,detail:i.localize(9,null)}).then(function(e){switch(e){case 0:return 0;case 1:return 1;default:return 2}})},t.prototype.confirmOverwrite=function(e){var t={message:i.localize(10,null,T.basename(e)),detail:i.localize(11,null,T.basename(T.dirname(e))),primaryButton:i.localize(12,null),type:"warning"};return this.dialogService.confirm(t).then(function(e){return e.confirmed})},t.prototype.registerListeners=function(){var e=this;this.lifecycleService.onBeforeShutdown(function(t){return t.veto(e.beforeShutdown(t.reason))}),this.lifecycleService.onShutdown(this.dispose,this),this._register(this.configurationService.onDidChangeConfiguration(function(t){t.affectsConfiguration("files")&&e.onFilesConfigurationChange(e.configurationService.getValue())}))},t.prototype.beforeShutdown=function(e){var t=this,i=this.getDirty();return i.length?0!==this.getAutoSaveMode()?this.saveAll(!1,{skipSaveParticipants:!0}).then(function(){var i=t.getDirty();if(i.length)return t.handleDirtyBeforeShutdown(i,e)}):this.handleDirtyBeforeShutdown(i,e):this.noVeto({cleanUpBackups:!0})},t.prototype.handleDirtyBeforeShutdown=function(e,t){var n=this;return this.isHotExitEnabled?this.backupBeforeShutdown(e,this.models,t).then(function(e){return e.didBackup?n.noVeto({cleanUpBackups:!1}):n.confirmBeforeShutdown()},function(e){var t=e[0];return n.notificationService.error(i.localize(13,null,t.message)),!0}):this.confirmBeforeShutdown()},t.prototype.backupBeforeShutdown=function(e,t,i){var n=this;return this.windowsService.getWindowCount().then(function(r){var o;switch(i){case 1:o=1!==n.contextService.getWorkbenchState()&&n.configuredHotExit===y.HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE||!(r>1||u.isMacintosh);break;case 2:case 3:o=!0;break;case 4:o=1!==n.contextService.getWorkbenchState()&&n.configuredHotExit===y.HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE}return o?n.backupAll(e,t).then(function(){return{didBackup:!0}}):{didBackup:!1}})},t.prototype.backupAll=function(e,t){var i=this,n=[],r=[];return e.forEach(function(e){i.fileService.canHandleResource(e)?n.push(t.get(e)):e.scheme===D.Schemas.untitled&&r.push(e)}),this.doBackupAll(n,r)},t.prototype.doBackupAll=function(e,t){var i=this;return Promise.all(e.map(function(e){return i.backupFileService.backupResource(e.getResource(),e.createSnapshot(),e.getVersionId())})).then(function(e){var n=t.filter(function(e){return i.untitledEditorService.exists(e)}).map(function(e){return i.untitledEditorService.loadOrCreate({resource:e})});return Promise.all(n).then(function(e){var t=e.map(function(e){return i.backupFileService.backupResource(e.getResource(),e.createSnapshot(),e.getVersionId())});return Promise.all(t).then(function(){})})})},t.prototype.confirmBeforeShutdown=function(){var e=this;return this.confirmSave().then(function(t){return 0===t?e.saveAll(!0,{skipSaveParticipants:!0}).then(function(t){return!!t.results.some(function(e){return!e.success})||e.noVeto({cleanUpBackups:!0})}):1===t?(e.untitledEditorService.revertAll(),e.noVeto({cleanUpBackups:!0})):2===t||void 0})},t.prototype.noVeto=function(e){return!!e.cleanUpBackups&&(!(this.lifecycleService.phase<3)&&this.cleanupBackupsBeforeShutdown().then(function(){return!1},function(){return!1}))},t.prototype.cleanupBackupsBeforeShutdown=function(){return this.environmentService.isExtensionDevelopment?Promise.resolve(void 0):this.backupFileService.discardAllWorkspaceBackups()},t.prototype.onFilesConfigurationChange=function(e){var t=0!==this.getAutoSaveMode(),i=e&&e.files&&e.files.autoSave||y.AutoSaveConfiguration.OFF;switch(this.autoSaveContext.set(i),i){case y.AutoSaveConfiguration.AFTER_DELAY:this.configuredAutoSaveDelay=e&&e.files&&e.files.autoSaveDelay,this.configuredAutoSaveOnFocusChange=!1,this.configuredAutoSaveOnWindowChange=!1;break;case y.AutoSaveConfiguration.ON_FOCUS_CHANGE:this.configuredAutoSaveDelay=void 0,this.configuredAutoSaveOnFocusChange=!0,this.configuredAutoSaveOnWindowChange=!1;break;case y.AutoSaveConfiguration.ON_WINDOW_CHANGE:this.configuredAutoSaveDelay=void 0,this.configuredAutoSaveOnFocusChange=!1,this.configuredAutoSaveOnWindowChange=!0;break;default:this.configuredAutoSaveDelay=void 0,this.configuredAutoSaveOnFocusChange=!1,this.configuredAutoSaveOnWindowChange=!1}this._onAutoSaveConfigurationChange.fire(this.getAutoSaveConfiguration()),t||0===this.getAutoSaveMode()||this.saveAll();var n=e&&e.files&&e.files.associations;c.equals(this.currentFilesAssociationConfig,n)||(this.currentFilesAssociationConfig=n,this._onFilesAssociationChange.fire());var r=e&&e.files&&e.files.hotExit;r===y.HotExitConfiguration.OFF||r===y.HotExitConfiguration.ON_EXIT_AND_WINDOW_CLOSE?this.configuredHotExit=r:this.configuredHotExit=y.HotExitConfiguration.ON_EXIT},t.prototype.getDirty=function(e){var t=this.getDirtyFileModels(e).map(function(e){return e.getResource()});return t.push.apply(t,this.untitledEditorService.getDirty(e)),t},t.prototype.isDirty=function(e){return!!this._models.getAll(e).some(function(e){return e.isDirty()})||this.untitledEditorService.getDirty().some(function(t){return!e||t.toString()===e.toString()})},t.prototype.save=function(e,t){if(t&&t.force&&this.fileService.canHandleResource(e)&&!this.isDirty(e)){var i=this._models.get(e);if(i)return t.reason=1,i.save(t).then(function(){return!i.isDirty()})}return this.saveAll([e],t).then(function(e){return 1===e.results.length&&!!e.results[0].success})},t.prototype.saveAll=function(e,t){var i=[];i=Array.isArray(e)?this.getDirty(e):this.getDirty();var n=[],r=[];return i.forEach(function(t){!Array.isArray(e)&&!0!==e||t.scheme!==D.Schemas.untitled?n.push(t):r.push(t)}),this.doSaveAll(n,r,t)},t.prototype.doSaveAll=function(e,t,i){var n=this;return this.doSaveAllFiles(e,i).then(function(i){return r(n,void 0,void 0,function(){var n,r,s,a,c,l,u,d=this;return o(this,function(o){switch(o.label){case 0:n=[],r=0,s=t,o.label=1;case 1:return r0?this.configuredAutoSaveDelay<=1e3?1:2:0},t.prototype.getAutoSaveConfiguration=function(){return{autoSaveDelay:this.configuredAutoSaveDelay&&this.configuredAutoSaveDelay>0?this.configuredAutoSaveDelay:void 0,autoSaveFocusChange:this.configuredAutoSaveOnFocusChange,autoSaveApplicationChange:this.configuredAutoSaveOnWindowChange}},Object.defineProperty(t.prototype,"isHotExitEnabled",{get:function(){return!this.environmentService.isExtensionDevelopment&&this.configuredHotExit!==y.HotExitConfiguration.OFF},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._models.clear(),e.prototype.dispose.call(this)},t=p([f(0,m.IWorkspaceContextService),f(1,y.IFileService),f(2,C.IUntitledEditorService),f(3,v.ILifecycleService),f(4,I.IInstantiationService),f(5,b.IConfigurationService),f(6,N.IModeService),f(7,R.IModelService),f(8,d.IWindowService),f(9,S.IEnvironmentService),f(10,O.INotificationService),f(11,h.IBackupFileService),f(12,d.IWindowsService),f(13,k.IHistoryService),f(14,L.IContextKeyService),f(15,A.IDialogService),f(16,A.IFileDialogService),f(17,F.IEditorService)],t)}(_.Disposable);t.TextFileService=z,V.registerSingleton(g.ITextFileService,z)}),define(i[1188],n([0,1,10,13,6,2,42,333,50,33,65,80,208,26,39]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var y=function(e){function t(t,i,n){var r=e.call(this)||this;return r.instantiationService=t,r.textFileService=i,r.fileService=n,r.providers=Object.create(null),r.modelsToDispose=new Set,r}return a(t,e),t.prototype.createReferencedObject=function(e,t){var n=this;this.modelsToDispose.delete(e);var r=i.URI.parse(e);return this.fileService.canHandleResource(r)?this.textFileService.models.loadOrCreate(r,{reason:2}):this.providers[r.scheme]?this.resolveTextModelContent(e).then(function(){return n.instantiationService.createInstance(c.ResourceEditorModel,r)}):t?Promise.reject(new Error("resource is not available")):this.fileService.activateProvider(r.scheme).then(function(){return n.createReferencedObject(e,!0)})},t.prototype.destroyReferencedObject=function(e,t){var i=this;this.modelsToDispose.add(e),t.then(function(t){i.modelsToDispose.has(e)&&(t instanceof g.TextFileEditorModel?i.textFileService.models.disposeModel(t):t.dispose())},function(e){})},t.prototype.registerTextModelContentProvider=function(e,t){var i=this.providers;return(i[e]||(i[e]=[])).unshift(t),o.toDisposable(function(){var n=i[e];if(n){var r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete i[e])}})},t.prototype.hasTextModelContentProvider=function(e){return void 0!==this.providers[e]},t.prototype.resolveTextModelContent=function(e){var t=i.URI.parse(e),r=(this.providers[t.scheme]||[]).map(function(e){return function(){return Promise.resolve(e.provideTextContent(t))}});return n.first(r).then(function(e){return e||Promise.reject(new Error("resource is not available"))})},t=p([f(0,r.IInstantiationService),f(1,l.ITextFileService),f(2,v.IFileService)],t)}(o.ReferenceCollection),b=function(){function e(e,t,i){this.untitledEditorService=e,this.instantiationService=t,this.modelService=i,this.resourceModelCollection=t.createInstance(y)}return e.prototype.createModelReference=function(e){return this._createModelReference(e)},e.prototype._createModelReference=function(e){if(e.scheme===u.Schemas.untitled)return this.untitledEditorService.loadOrCreate({resource:e}).then(function(e){return new o.ImmortalReference(e)});if(e.scheme===u.Schemas.inMemory)return this.modelService.getModel(e)?Promise.resolve(new o.ImmortalReference(this.instantiationService.createInstance(c.ResourceEditorModel,e))):Promise.reject(new Error("Cant resolve inmemory resource"));var t=this.resourceModelCollection.acquire(e.toString());return t.object.then(function(e){return{object:e,dispose:function(){return t.dispose()}}},function(e){return t.dispose(),Promise.reject(e)})},e.prototype.registerTextModelContentProvider=function(e,t){return this.resourceModelCollection.registerTextModelContentProvider(e,t)},e.prototype.hasTextModelContentProvider=function(e){return this.resourceModelCollection.hasTextModelContentProvider(e)},e=p([f(0,h.IUntitledEditorService),f(1,r.IInstantiationService),f(2,s.IModelService)],e)}();t.TextModelResolverService=b,m.registerSingleton(d.ITextModelService,b,!0)}),define(i[82],n([0,1,6]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IViewletService=i.createDecorator("viewletService")}),define(i[446],n([0,1,2,164,19,40,82,15,5,17,32,23,38,31,524,74,41,7,39,719]),function(e,t,i,n,r,o,s,c,u,d,h,g,v,m,y,b,_,S,C){"use strict";function w(e,t){return u.Event.chain(t).map(function(t){var i=t.views;return t.viewContainer===e?i:[]}).filter(function(e){return e.length>0}).event}Object.defineProperty(t,"__esModule",{value:!0});var E=function(){function e(){this.map=new Map}return e.prototype.add=function(e){return this.map.set(e,(this.map.get(e)||0)+1),this},e.prototype.delete=function(e){var t=this.map.get(e)||0;return 0!==t&&(0===--t?this.map.delete(e):this.map.set(e,t),!0)},e.prototype.has=function(e){return this.map.has(e)},e}(),I=function(e){function t(t,i){var r=e.call(this)||this;r.contextKeyService=i,r.contextKeys=new E,r.items=[],r._onDidChange=r._register(new u.Emitter),r.onDidChangeActiveViews=r._onDidChange.event;var o=w(t,n.ViewsRegistry.onViewsRegistered);r._register(o(r.onViewsRegistered,r));var s=function(e,t){return u.Event.chain(t).map(function(t){var i=t.views,n=t.from,r=t.to;return n===e?{removed:i}:r===e?{added:i}:{}}).filter(function(e){var t=e.added,i=e.removed;return d.isNonEmptyArray(t)||d.isNonEmptyArray(i)}).event}(t,n.ViewsRegistry.onDidChangeContainer);r._register(s(function(e){var t=e.added,i=e.removed;d.isNonEmptyArray(t)&&r.onViewsRegistered(t),d.isNonEmptyArray(i)&&r.onViewsDeregistered(i)}));var a=w(t,n.ViewsRegistry.onViewsDeregistered);r._register(a(r.onViewsDeregistered,r));var c=u.Event.filter(i.onDidChangeContext,function(e){return e.affectsSome(r.contextKeys)});return r._register(c(r.onContextChanged,r)),r.onViewsRegistered(n.ViewsRegistry.getViews(t)),r}return a(t,e),Object.defineProperty(t.prototype,"activeViewDescriptors",{get:function(){return this.items.filter(function(e){return e.active}).map(function(e){return e.viewDescriptor})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allViewDescriptors",{get:function(){return this.items.map(function(e){return e.viewDescriptor})},enumerable:!0,configurable:!0}),t.prototype.onViewsRegistered=function(e){for(var t=[],i=0,n=e;i0)for(var t=0,i=this.panelItems;t=this.panelItems.length||n<0||n>=this.panelItems.length)){var r=this.panelItems.splice(i,1)[0];this.panelItems.splice(n,0,r),this.panelview.movePanel(e,t)}},t.prototype.resizePanel=function(e,t){this.panelview.resizePanel(e,t)},t.prototype.getPanelSize=function(e){return this.panelview.getPanelSize(e)},t.prototype.updateViewHeaders=function(){this.isSingleView()?(this.panelItems[0].panel.setExpanded(!0),this.panelItems[0].panel.headerVisible=!1):this.panelItems.forEach(function(e){return e.panel.headerVisible=!0})},t.prototype.isSingleView=function(){return this.options.showHeaderInTitleWhenSingleView&&1===this.panelItems.length},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.panelItems.forEach(function(e){return e.disposable.dispose()}),this.panelview.dispose()},t=p([f(2,S.IConfigurationService),f(3,C.IWorkbenchLayoutService),f(4,m.IContextMenuService),f(5,y.ITelemetryService),f(6,b.IThemeService),f(7,E.IStorageService)],t)}(h.Viewlet);t.PanelViewlet=x}),define(i[1193],n([0,1,7,2,61,17,57,51,164,37,16,6,40,32,15,76,244,411,78,5,18,66,525,446,19]),function(e,t,i,n,r,o,s,c,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var L=function(e){function t(t,i,r,o,s,a,c,l,d,h,p,f){var g=e.call(this,t,{showHeaderInTitleWhenSingleView:r,dnd:new S.DefaultPanelDndController},o,s,h,a,d,c)||this;g.storageService=c,g.instantiationService=l,g.contextMenuService=h,g.extensionService=p,g.contextService=f,g.didLayout=!1,g.areExtensionsReady=!1,g.viewDisposables=[];var v=k.Registry.as(u.Extensions.ViewContainersRegistry).get(t);return g.viewsModel=g._register(g.instantiationService.createInstance(D.PersistentContributableViewsModel,v,i)),g.viewletState=g.getMemento(1),g.visibleViewsStorageId=t+".numberOfVisibleViews",g.visibleViewsCountFromCache=g.storageService.getNumber(g.visibleViewsStorageId,1,1),g._register(n.toDisposable(function(){return g.viewDisposables=n.dispose(g.viewDisposables)})),g}return a(t,e),t.prototype.create=function(t){var i=this;e.prototype.create.call(this,t),this._register(this.onDidSashChange(function(){return i.saveViewSizes()})),this.viewsModel.onDidAdd(function(e){return i.onDidAddViews(e)}),this.viewsModel.onDidRemove(function(e){return i.onDidRemoveViews(e)});var n=this.viewsModel.visibleViewDescriptors.map(function(e,t){return{viewDescriptor:e,index:t,size:i.viewsModel.getSize(e.id),collapsed:i.viewsModel.isCollapsed(e.id)}});n.length&&this.onDidAddViews(n),this.extensionService.whenInstalledExtensionsRegistered().then(function(){i.areExtensionsReady=!0,i.panels.length&&(i.updateTitleArea(),i.updateViewHeaders())}),this.focus()},t.prototype.getContextMenuActions=function(){var t=this,i=[],n=this.viewsModel.viewDescriptors.map(function(e){return{id:e.id+".toggleVisibility",label:e.name,checked:t.viewsModel.isVisible(e.id),enabled:e.canToggleVisibility,run:function(){return t.toggleViewVisibility(e.id)}}});i.push.apply(i,n);var o=e.prototype.getContextMenuActions.call(this);return n.length&&o.length&&i.push(new r.Separator),i.push.apply(i,o),i},t.prototype.setVisible=function(t){e.prototype.setVisible.call(this,t),this.panels.filter(function(e){return e.isVisible()!==t}).map(function(e){return e.setVisible(t)})},t.prototype.openView=function(e,t){t&&this.focus();var i=this.getView(e);return i||this.toggleViewVisibility(e),(i=this.getView(e)).setExpanded(!0),t&&i.focus(),i},t.prototype.movePanel=function(t,i){var n=o.firstIndex(this.panels,function(e){return e===t}),r=o.firstIndex(this.panels,function(e){return e===i}),s=this.viewsModel.visibleViewDescriptors[n],a=this.viewsModel.visibleViewDescriptors[r];e.prototype.movePanel.call(this,t,i),this.viewsModel.move(s.id,a.id)},t.prototype.layout=function(t){e.prototype.layout.call(this,t),this.dimension=t,this.didLayout?this.saveViewSizes():(this.didLayout=!0,this.restoreViewSizes())},t.prototype.getOptimalWidth=function(){return Math.max.apply(Math,this.panels.map(function(e){return e.getOptimalWidth()||0}))+16},t.prototype.isSingleView=function(){return!!e.prototype.isSingleView.call(this)&&(!!this.areExtensionsReady||1===this.visibleViewsCountFromCache)},t.prototype.createView=function(e,t){var i;return(i=this.instantiationService).createInstance.apply(i,[e.ctorDescriptor.ctor].concat(e.ctorDescriptor.arguments||[],[t]))},t.prototype.getView=function(e){return this.panels.filter(function(t){return t.id===e})[0]},t.prototype.onDidAddViews=function(e){for(var t=this,r=[],o=function(e,o,a,c){var l=s.createView(e,{id:e.id,title:e.name,actionRunner:s.getActionRunner(),expanded:!o,viewletState:s.viewletState});l.render();var u=i.addDisposableListener(l.draggableElement,"contextmenu",function(i){i.stopPropagation(),i.preventDefault(),t.onContextMenu(new b.StandardMouseEvent(i),e)}),d=w.Event.latch(w.Event.map(l.onDidChange,function(){return!l.isExpanded()}))(function(i){t.viewsModel.setCollapsed(e.id,i)});s.viewDisposables.splice(a,0,n.combinedDisposable([u,d])),r.push({panel:l,size:c||l.minimumSize,index:a})},s=this,a=0,c=e;a0),e.setGroupLabel(i),s[i]&&e.setGroupLabel(s[i]+" / "+i)):(e.setShowBorder(!1),e.setGroupLabel(void 0))}),Promise.resolve(new n.QuickOpenModel(o))},t.prototype.getViewEntries=function(){var e=this,t=[],n=this.viewletService.getViewlets();n.forEach(function(n,r){return t.push(new _(n.name,i.localize(1,null),function(){return e.viewletService.openViewlet(n.id,!0)}))}),this.panelService.getPanels().forEach(function(n,r){return t.push(new _(n.name,i.localize(2,null),function(){return e.panelService.openPanel(n.id,!0)}))}),n.forEach(function(i,n){var r=b.Registry.as(m.Extensions.ViewContainersRegistry).get(i.id);if(r){var o=function(t,i){var n=m.ViewsRegistry.getViews(i),r=[];if(n.length)for(var o=function(i){e.contextKeyService.contextMatchesRules(i.when||null)&&r.push(new _(i.name,t.name,function(){return e.viewsService.openView(i.id,!0)}))},s=0,a=n;s0?n[0]:null)}return T(e,t)}function R(e,t,i){return e.getViewlets().filter(function(e){return e.id===x.VIEW_ID}).length?e.openViewlet(x.VIEW_ID,i).then(function(e){return e}):Promise.resolve(t.openPanel(x.VIEW_ID,i))}function O(e,t){var i=e.getActiveViewlet();if(i&&i.getId()===x.VIEW_ID)return i;var n=t.getActivePanel();return n&&n.getId()===x.VIEW_ID?n:null}function T(e,t){return t?e+" ("+t.getLabel()+")":e}Object.defineProperty(t,"__esModule",{value:!0}),t.isSearchViewFocused=L,t.appendKeyBindingLabel=M,t.openSearchView=R,t.getSearchView=O,t.toggleCaseSensitiveCommand=function(e){O(e.get(k.IViewletService),e.get(I.IPanelService)).toggleCaseSensitive()},t.toggleWholeWordCommand=function(e){O(e.get(k.IViewletService),e.get(I.IPanelService)).toggleWholeWords()},t.toggleRegexCommand=function(e){O(e.get(k.IViewletService),e.get(I.IPanelService)).toggleRegex()};var P=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.panelService=r,o}return a(t,e),t.prototype.run=function(){return O(this.viewletService,this.panelService).focusNextInputBox(),Promise.resolve(null)},t.ID="search.focus.nextInputBox",t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.FocusNextInputAction=P;var A=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.panelService=r,o}return a(t,e),t.prototype.run=function(){return O(this.viewletService,this.panelService).focusPreviousInputBox(),Promise.resolve(null)},t.ID="search.focus.previousInputBox",t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.FocusPreviousInputAction=A;var N=function(e){function t(t,i,n,r,o){var s=e.call(this,t,i)||this;return s.viewletService=n,s.panelService=r,s.expandSearchReplaceWidget=o,s}return a(t,e),t.prototype.run=function(){var e=this;return R(this.viewletService,this.panelService,!1).then(function(t){t.searchAndReplaceWidget.toggleReplace(e.expandSearchReplaceWidget);var i=t.updateTextFromSelection(!e.expandSearchReplaceWidget);t.searchAndReplaceWidget.focus(void 0,i,i)})},t}(n.Action);t.FindOrReplaceInFilesAction=N;var F=function(e){function t(t,i,n,r){return e.call(this,t,i,n,r,!1)||this}return a(t,e),t.LABEL=g.localize(0,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(N);t.FindInFilesAction=F;var W=function(e){function t(t,i,n,r,o){var s=e.call(this,t,i,n,r,!1)||this;return s.editorGroupService=o,s}return a(t,e),t.prototype.run=function(){return this.otherViewletShowing()||!L(this.viewletService,this.panelService)?e.prototype.run.call(this):(this.editorGroupService.activeGroup.focus(),Promise.resolve(!0))},t.prototype.otherViewletShowing=function(){return!O(this.viewletService,this.panelService)},t.LABEL=g.localize(1,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService),f(4,w.IEditorGroupsService)],t)}(N);t.OpenSearchViewletAction=W;var B=function(e){function t(t,i,n,r){return e.call(this,t,i,n,r,!0)||this}return a(t,e),t.ID="workbench.action.replaceInFiles",t.LABEL=g.localize(2,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(N);t.ReplaceInFilesAction=B;var V=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.panelService=r,o}return a(t,e),t.prototype.run=function(){var e=O(this.viewletService,this.panelService);return e.searchAndReplaceWidget.toggleReplace(!1),e.searchAndReplaceWidget.focus(),Promise.resolve(null)},t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.CloseReplaceAction=V;var z=function(e){function t(t,i,n,r){var o=e.call(this,t,i,"search-action refresh")||this;return o.viewletService=n,o.panelService=r,o.searchView=O(o.viewletService,o.panelService),o}return a(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.searchView&&this.searchView.isSearchSubmitted()},enumerable:!0,configurable:!0}),t.prototype.update=function(){this._setEnabled(this.enabled)},t.prototype.run=function(){var e=O(this.viewletService,this.panelService);return e&&e.onQueryChanged(),Promise.resolve(null)},t.ID="search.action.refreshSearchResults",t.LABEL=g.localize(3,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.RefreshAction=z;var H=function(e){function t(t,i,n,r){var o=e.call(this,t,i,"search-action collapse")||this;return o.viewletService=n,o.panelService=r,o.update(),o}return a(t,e),t.prototype.update=function(){var e=O(this.viewletService,this.panelService);this.enabled=!!e&&e.hasSearchResults()},t.prototype.run=function(){var e=O(this.viewletService,this.panelService);if(e){var t=e.getControl(),i=t.navigate(),n=i.first(),r=!1;if(n instanceof C.BaseFolderMatch)for(;n=i.next();)if(n instanceof C.Match){r=!0;break}if(r){n=i.first();do{n instanceof C.FileMatch&&t.collapse(n)}while(n=i.next())}else t.collapseAll();t.domFocus(),t.focusFirst()}return Promise.resolve(void 0)},t.ID="search.action.collapseSearchResults",t.LABEL=g.localize(4,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.CollapseDeepestExpandedLevelAction=H;var K=function(e){function t(t,i,n,r){var o=e.call(this,t,i,"search-action clear-search-results")||this;return o.viewletService=n,o.panelService=r,o.update(),o}return a(t,e),t.prototype.update=function(){var e=O(this.viewletService,this.panelService);this.enabled=!!e&&(!e.allSearchFieldsClear()||e.hasSearchResults())},t.prototype.run=function(){var e=O(this.viewletService,this.panelService);return e&&e.clearSearchResults(),Promise.resolve()},t.ID="search.action.clearSearchResults",t.LABEL=g.localize(5,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.ClearSearchResultsAction=K;var U=function(e){function t(t,i,n,r){var o=e.call(this,t,i,"search-action cancel-search")||this;return o.viewletService=n,o.panelService=r,o.update(),o}return a(t,e),t.prototype.update=function(){var e=O(this.viewletService,this.panelService);this.enabled=!!e&&e.isSearching()},t.prototype.run=function(){var e=O(this.viewletService,this.panelService);return e&&e.cancelSearch(),Promise.resolve(void 0)},t.ID="search.action.cancelSearch",t.LABEL=g.localize(6,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.CancelSearchAction=U;var j=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.panelService=r,o}return a(t,e),t.prototype.run=function(){return R(this.viewletService,this.panelService).then(function(e){e.selectNextMatch()})},t.ID="search.action.focusNextSearchResult",t.LABEL=g.localize(7,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.FocusNextSearchResultAction=j;var G=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.panelService=r,o}return a(t,e),t.prototype.run=function(){return R(this.viewletService,this.panelService).then(function(e){e.selectPreviousMatch()})},t.ID="search.action.focusPreviousSearchResult",t.LABEL=g.localize(8,null),t=p([f(2,k.IViewletService),f(3,I.IPanelService)],t)}(n.Action);t.FocusPreviousSearchResultAction=G;var q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.getElementToFocusAfterRemoved=function(e,t){return this.getNextElementAfterRemoved(e,t)||this.getPreviousElementAfterRemoved(e,t)},t.prototype.getNextElementAfterRemoved=function(e,t){var i=e.navigate(t);if(t instanceof C.BaseFolderMatch)for(;i.next()&&!(i.current()instanceof C.BaseFolderMatch););else if(t instanceof C.FileMatch)for(;i.next()&&!(i.current()instanceof C.FileMatch););else for(;i.next()&&!(i.current()instanceof C.Match);)e.expand(i.current());return i.current()},t.prototype.getPreviousElementAfterRemoved=function(e,t){var i=e.navigate(t),n=i.previous(),r=t.parent();return r===n&&(n=i.previous()),r instanceof C.FileMatch&&r.parent()===n&&(n=i.previous()),t instanceof C.Match&&n&&n instanceof C.BaseFolderMatch&&(i.next(),e.expand(n),n=i.previous()),t instanceof C.Match&&n&&n instanceof C.FileMatch&&(i.next(),e.expand(n),n=i.previous()),n},t}(n.Action);t.AbstractSearchAndReplaceAction=q;var Y=function(e){function t(i,n){var r=e.call(this,"remove",t.LABEL,"action-remove")||this;return r.viewer=i,r.element=n,r}return a(t,e),t.prototype.run=function(){var e=this.viewer.getFocus()[0],t=!e||e instanceof C.SearchResult||function(e,t){do{if(e===t)return!0}while(!(e.parent()instanceof C.SearchResult)&&(e=e.parent()));return!1}(e,this.element)?this.getElementToFocusAfterRemoved(this.viewer,this.element):null;return t&&(this.viewer.reveal(t),this.viewer.setFocus([t],b.getSelectionKeyboardEvent())),this.element.parent().remove(this.element),this.viewer.domFocus(),Promise.resolve()},t.LABEL=g.localize(9,null),t}(q);t.RemoveAction=Y;var $=function(e){function t(i,n,r){var o=e.call(this,_.ReplaceAllInFileActionId,M(t.LABEL,r.lookupKeybinding(_.ReplaceAllInFileActionId),r),"action-replace-all")||this;return o.viewlet=i,o.fileMatch=n,o}return a(t,e),t.prototype.run=function(){var e=this,t=this.viewlet.getControl(),i=this.getElementToFocusAfterRemoved(t,this.fileMatch);return this.fileMatch.parent().replace(this.fileMatch).then(function(){i&&t.setFocus([i],b.getSelectionKeyboardEvent()),t.domFocus(),e.viewlet.open(e.fileMatch,!0)})},t.LABEL=g.localize(10,null),t=p([f(2,y.IKeybindingService)],t)}(q);t.ReplaceAllAction=$;var Q=function(e){function t(i,n,r){var o=e.call(this,_.ReplaceAllInFolderActionId,M(t.LABEL,r.lookupKeybinding(_.ReplaceAllInFolderActionId),r),"action-replace-all")||this;return o.viewer=i,o.folderMatch=n,o}return a(t,e),t.prototype.run=function(){var e=this,t=this.getElementToFocusAfterRemoved(this.viewer,this.folderMatch);return this.folderMatch.replaceAll().then(function(){t&&e.viewer.setFocus([t],b.getSelectionKeyboardEvent()),e.viewer.domFocus()})},t.LABEL=g.localize(11,null),t=p([f(2,y.IKeybindingService)],t)}(q);t.ReplaceAllInFolderAction=Q;var X=function(e){function t(i,n,r,o,s,a,c){var l=e.call(this,_.ReplaceActionId,M(t.LABEL,s.lookupKeybinding(_.ReplaceActionId),s),"action-replace")||this;return l.viewer=i,l.element=n,l.viewlet=r,l.replaceService=o,l.editorService=a,l.configurationService=c,l}return a(t,e),t.prototype.run=function(){var e=this;return this.enabled=!1,this.element.parent().replace(this.element).then(function(){var t=e.getElementToFocusAfterReplace();return t&&e.viewer.setFocus([t],b.getSelectionKeyboardEvent()),e.getElementToShowReplacePreview(t)}).then(function(t){e.viewer.domFocus(),e.configurationService.getValue().search.useReplacePreview&&t&&!e.hasToOpenFile()?e.replaceService.openReplacePreview(t,!0):e.viewlet.open(e.element,!0)})},t.prototype.getElementToFocusAfterReplace=function(){var e=this.viewer.navigate(),t=!1,i=null;do{if((i=e.current())instanceof C.Match){if(i.parent().id()===this.element.parent().id()){if(t=!0,this.element.range().getStartPosition().isBeforeOrEqual(i.range().getStartPosition()))break}else if(t)break}else if(t&&this.viewer.isCollapsed(i))break}while(e.next());return i},t.prototype.getElementToShowReplacePreview=function(e){return r(this,void 0,void 0,function(){var t;return o(this,function(i){switch(i.label){case 0:return this.hasSameParent(e)?[2,e]:[4,this.getPreviousElementAfterRemoved(this.viewer,this.element)];case 1:return t=i.sent(),this.hasSameParent(t)?[2,t]:[2,null]}})})},t.prototype.hasSameParent=function(e){return e&&e instanceof C.Match&&e.parent().resource()===this.element.parent().resource()},t.prototype.hasToOpenFile=function(){var e=this.editorService.activeEditor,t=e?e.getResource():void 0;return!!t&&t.toString()===this.element.parent().resource().toString()},t.LABEL=g.localize(12,null),t=p([f(3,S.IReplaceService),f(4,y.IKeybindingService),f(5,E.IEditorService),f(6,m.IConfigurationService)],t)}(q);function Z(e){return e.scheme===l.Schemas.file?u.normalize(c.normalizeDriveLetter(e.fsPath)):e.toString()}function J(e,t){void 0===t&&(t=0);var i=function(){return e.range().startLineNumber+","+e.range().startColumn},n=function(t){return e.range().startLineNumber+t+""},r=e.fullPreviewLines(),o=r.reduce(function(e,t,r){var o=0===r?i().length:n(r).length;return Math.max(o,e)},0);return r.map(function(e,r){var s=0===r?i():n(r),a=h.repeat(" ",o-s.length);return""+h.repeat(" ",t)+s+": "+a+e}).join("\n")}t.ReplaceAction=X,t.copyPathCommand=function(e,t){var i=e.get(v.IClipboardService),n=Z(t.resource());i.writeText(n)};var ee=d.isWindows?"\r\n":"\n";function te(e,t){var i=e.matches().sort(C.searchMatchComparer).slice(0,t).map(function(e){return J(e,2)});return{text:""+Z(e.resource())+ee+i.join(ee),count:i.length}}function ie(e,t){for(var i=[],n=0,r=e.matches().sort(C.searchMatchComparer),o=0;o1?l.localize(1,null,o):l.localize(2,null,o)),i.actions.clear();var s=[];this.searchModel.isReplaceActive()&&o>0&&s.push(this.instantiationService.createInstance(b.ReplaceAllInFolderAction,this.searchView.getControl(),n)),s.push(new b.RemoveAction(this.searchView.getControl(),n)),i.actions.push(s,{icon:!0,label:!1})},t.prototype.disposeElement=function(e,t,i){},t.prototype.disposeTemplate=function(e){o.dispose(e.disposables)},t.TEMPLATE_ID="folderMatch",t=p([f(3,h.IInstantiationService),f(4,m.IThemeService),f(5,y.IWorkspaceContextService)],t)}(o.Disposable);t.FolderMatchRenderer=w;var E=function(e){function t(i,n,r,o,s,a){var c=e.call(this)||this;return c.searchModel=i,c.searchView=n,c.labels=r,c.instantiationService=o,c.themeService=s,c.contextService=a,c.templateId=t.TEMPLATE_ID,c}return a(t,e),t.prototype.renderTemplate=function(e){var t=[],o=i.append(e,i.$(".filematch")),s=this.labels.create(o);t.push(s);var a=new r.CountBadge(i.append(o,i.$(".badge")));t.push(v.attachBadgeStyler(a,this.themeService));var c=i.append(o,i.$(".actionBarContainer")),l=new n.ActionBar(c,{animated:!1});return t.push(l),{el:o,label:s,badge:a,actions:l,disposables:t}},t.prototype.renderElement=function(e,t,i){var n=e.element;i.el.setAttribute("data-resource",n.resource().toString()),i.label.setFile(n.resource(),{hideIcon:!1});var r=n.count();i.badge.setCount(r),i.badge.setTitleFormat(r>1?l.localize(3,null,r):l.localize(4,null,r)),i.actions.clear();var o=[];this.searchModel.isReplaceActive()&&r>0&&o.push(this.instantiationService.createInstance(b.ReplaceAllAction,this.searchView,n)),o.push(new b.RemoveAction(this.searchView.getControl(),n)),i.actions.push(o,{icon:!0,label:!1})},t.prototype.disposeElement=function(e,t,i){},t.prototype.disposeTemplate=function(e){o.dispose(e.disposables)},t.TEMPLATE_ID="fileMatch",t=p([f(3,h.IInstantiationService),f(4,m.IThemeService),f(5,y.IWorkspaceContextService)],t)}(o.Disposable);t.FileMatchRenderer=E;var I=function(e){function t(i,n,r,o,s){var a=e.call(this)||this;return a.searchModel=i,a.searchView=n,a.instantiationService=r,a.contextService=o,a.configurationService=s,a.templateId=t.TEMPLATE_ID,a}return a(t,e),t.prototype.renderTemplate=function(e){i.addClass(e,"linematch");var t=i.append(e,i.$("a.plain.match")),r=i.append(t,i.$("span")),o=i.append(t,i.$("span.findInFileMatch")),s=i.append(t,i.$("span.replaceMatch")),a=i.append(t,i.$("span")),c=i.append(e,i.$("span.matchLineNum")),l=i.append(e,i.$("span.actionBarContainer"));return{parent:t,before:r,match:o,replace:s,after:a,lineNumber:c,actions:new n.ActionBar(l,{animated:!1})}},t.prototype.renderElement=function(e,t,n){var r=e.element,o=r.preview(),s=this.searchModel.isReplaceActive()&&!!this.searchModel.replaceString;n.before.textContent=o.before,n.match.textContent=o.inside,i.toggleClass(n.match,"replace",s),n.replace.textContent=s?r.replaceString:"",n.after.textContent=o.after,n.parent.title=(o.before+(s?r.replaceString:o.inside)+o.after).trim().substr(0,999);var a=r.range().endLineNumber-r.range().startLineNumber,c=a>0?"+"+a:"",l=this.configurationService.getValue("search").showLineNumbers,u=l?":"+r.range().startLineNumber:"";i.toggleClass(n.lineNumber,"show",a>0||l),n.lineNumber.textContent=u+c,n.lineNumber.setAttribute("title",this.getMatchTitle(r,l)),n.actions.clear(),this.searchModel.isReplaceActive()?n.actions.push([this.instantiationService.createInstance(b.ReplaceAction,this.searchView.getControl(),r,this.searchView),new b.RemoveAction(this.searchView.getControl(),r)],{icon:!0,label:!1}):n.actions.push([new b.RemoveAction(this.searchView.getControl(),r)],{icon:!0,label:!1})},t.prototype.disposeElement=function(e,t,i){},t.prototype.disposeTemplate=function(e){e.actions.dispose()},t.prototype.getMatchTitle=function(e,t){var i=e.range().startLineNumber,n=e.range().endLineNumber-e.range().startLineNumber;return(t?l.localize(5,null,i,n)+" ":"")+(n>0?"+ "+l.localize(6,null,n):"")},t.TEMPLATE_ID="match",t=p([f(2,h.IInstantiationService),f(3,y.IWorkspaceContextService),f(4,u.IConfigurationService)],t)}(o.Disposable);t.MatchRenderer=I;var x=function(){function e(e,t){this.searchModel=e,this.labelService=t}return e.prototype.getAriaLabel=function(e){if(e instanceof _.BaseFolderMatch)return e.hasResource()?l.localize(7,null,e.count(),e.name()):l.localize(8,null,e.count());if(e instanceof _.FileMatch){var t=this.labelService.getUriLabel(e.resource(),{relative:!0})||e.resource().fsPath;return l.localize(9,null,e.count(),e.name(),s.dirname(t))}if(e instanceof _.Match){var i=e,n=this.searchModel,r=n.isReplaceActive()&&!!n.replaceString,o=i.getMatchString(),a=i.range(),c=i.text().substr(0,a.endColumn+150);return r?l.localize(10,null,o,i.replaceString,a.startColumn+1,c):l.localize(11,null,o,a.startColumn+1,c)}return null},e=p([f(1,g.ILabelService)],e)}();t.SearchAccessibilityProvider=x;var D=function(){function e(e){this.instantiationService=e}return e.prototype.onDragOver=function(e,t,i,n){return!1},e.prototype.getDragURI=function(e){return e instanceof _.FileMatch?e.remove.toString():null},e.prototype.getDragLabel=function(e){if(e.length>1)return String(e.length);var t=e[0];return t instanceof _.FileMatch?c.basename(t.resource()):void 0},e.prototype.onDragStart=function(e,t){var i=e.elements.filter(function(e){return e instanceof _.FileMatch}).map(function(e){return e.resource()});i.length&&this.instantiationService.invokeFunction(S.fillResourceDataTransfers,i,t)},e.prototype.drop=function(e,t,i,n){},e=p([f(0,h.IInstantiationService)],e)}();t.SearchDND=D}),define(i[450],n([0,1,7,61,194,69,29,13,5,9,182,587,102,18,15,51,44,74,58,16,237,227,225,152,82,130]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var L=function(e){function t(){var i=e.call(this,t.ID,"","action-replace-all",!1)||this;return i._searchWidget=null,i}return a(t,e),Object.defineProperty(t,"INSTANCE",{get:function(){return null===t.fgInstance&&(t.fgInstance=new t),t.fgInstance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"searchWidget",{set:function(e){this._searchWidget=e},enumerable:!0,configurable:!0}),t.prototype.run=function(){return this._searchWidget?this._searchWidget.triggerReplaceAll():Promise.resolve(null)},t.fgInstance=null,t.ID="search.action.replaceAll",t}(s.Action),M=function(e){function t(t,i,n,r,o,s,a,u,d){var h=e.call(this)||this;return h.contextViewService=n,h.themeService=r,h.contextKeyService=o,h.keyBindingService=s,h.clipboardServce=a,h.configurationService=u,h.accessibilityService=d,h.ignoreGlobalFindBufferOnNextFocus=!1,h._onSearchSubmit=h._register(new l.Emitter),h.onSearchSubmit=h._onSearchSubmit.event,h._onSearchCancel=h._register(new l.Emitter),h.onSearchCancel=h._onSearchCancel.event,h._onReplaceToggled=h._register(new l.Emitter),h.onReplaceToggled=h._onReplaceToggled.event,h._onReplaceStateChange=h._register(new l.Emitter),h.onReplaceStateChange=h._onReplaceStateChange.event,h._onReplaceValueChanged=h._register(new l.Emitter),h.onReplaceValueChanged=h._onReplaceValueChanged.event,h._onReplaceAll=h._register(new l.Emitter),h.onReplaceAll=h._onReplaceAll.event,h._onBlur=h._register(new l.Emitter),h.onBlur=h._onBlur.event,h._onDidHeightChange=h._register(new l.Emitter),h.onDidHeightChange=h._onDidHeightChange.event,h.replaceActive=I.ReplaceActiveKey.bindTo(h.contextKeyService),h.searchInputBoxFocused=I.SearchInputBoxFocusedKey.bindTo(h.contextKeyService),h.replaceInputBoxFocused=I.ReplaceInputBoxFocusedKey.bindTo(h.contextKeyService),h._replaceHistoryDelayer=new c.Delayer(500),h.render(t,i),h.configurationService.onDidChangeConfiguration(function(e){e.affectsConfiguration("editor.accessibilitySupport")&&h.updateAccessibilitySupport()}),h.accessibilityService.onDidChangeAccessibilitySupport(function(){return h.updateAccessibilitySupport()}),h.updateAccessibilitySupport(),h}return a(t,e),t.prototype.focus=function(e,t,i){void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===i&&(i=!1),this.ignoreGlobalFindBufferOnNextFocus=i,t&&this.isReplaceShown()?(this.replaceInput.focus(),e&&this.replaceInput.select()):(this.searchInput.focus(),e&&this.searchInput.select())},t.prototype.setWidth=function(e){this.searchInput.inputBox.layout(),this.replaceInput.width=e-28,this.replaceInput.layout()},t.prototype.clear=function(){this.searchInput.clear(),this.replaceInput.value="",this.setReplaceAllActionState(!1)},t.prototype.isReplaceShown=function(){return!i.hasClass(this.replaceContainer,"disabled")},t.prototype.isReplaceActive=function(){return!!this.replaceActive.get()},t.prototype.getReplaceValue=function(){return this.replaceInput.value},t.prototype.toggleReplace=function(e){void 0!==e&&e===this.isReplaceShown()||this.onToggleReplaceButton()},t.prototype.getSearchHistory=function(){return this.searchInput.inputBox.getHistory()},t.prototype.getReplaceHistory=function(){return this.replaceInput.getHistory()},t.prototype.clearHistory=function(){this.searchInput.inputBox.clearHistory()},t.prototype.showNextSearchTerm=function(){this.searchInput.inputBox.showNextValue()},t.prototype.showPreviousSearchTerm=function(){this.searchInput.inputBox.showPreviousValue()},t.prototype.showNextReplaceTerm=function(){this.replaceInput.showNextValue()},t.prototype.showPreviousReplaceTerm=function(){this.replaceInput.showPreviousValue()},t.prototype.searchInputHasFocus=function(){return!!this.searchInputBoxFocused.get()},t.prototype.replaceInputHasFocus=function(){return this.replaceInput.hasFocus()},t.prototype.focusReplaceAllAction=function(){this.replaceActionBar.focus(!0)},t.prototype.focusRegexAction=function(){this.searchInput.focusOnRegex()},t.prototype.render=function(e,t){this.domNode=i.append(e,i.$(".search-widget")),this.domNode.style.position="relative",this.renderToggleReplaceButton(this.domNode),this.renderSearchInput(this.domNode,t),this.renderReplaceInput(this.domNode,t)},t.prototype.isScreenReaderOptimized=function(){var e=2===this.accessibilityService.getAccessibilitySupport(),t=this.configurationService.getValue("editor").accessibilitySupport;return"on"===t||"auto"===t&&e},t.prototype.updateAccessibilitySupport=function(){this.searchInput.setFocusInputOnOptionClick(!this.isScreenReaderOptimized())},t.prototype.renderToggleReplaceButton=function(e){var t=this,i={buttonBackground:void 0,buttonBorder:void 0,buttonForeground:void 0,buttonHoverBackground:void 0};this.toggleReplaceButton=this._register(new r.Button(e,i)),this.toggleReplaceButton.element.setAttribute("aria-expanded","false"),this.toggleReplaceButton.element.classList.add("collapse"),this.toggleReplaceButton.icon="toggle-replace-button",this.toggleReplaceButton.onDidClick(function(){return t.onToggleReplaceButton()}),this.toggleReplaceButton.element.title=h.localize(2,null)},t.prototype.renderSearchInput=function(e,t){var n=this,r={label:h.localize(3,null),validation:function(e){return n.validateSearchInput(e)},placeholder:h.localize(4,null),appendCaseSensitiveLabel:E.appendKeyBindingLabel("",this.keyBindingService.lookupKeybinding(I.ToggleCaseSensitiveCommandId),this.keyBindingService),appendWholeWordsLabel:E.appendKeyBindingLabel("",this.keyBindingService.lookupKeybinding(I.ToggleWholeWordCommandId),this.keyBindingService),appendRegexLabel:E.appendKeyBindingLabel("",this.keyBindingService.lookupKeybinding(I.ToggleRegexCommandId),this.keyBindingService),history:t.searchHistory,flexibleHeight:!0},o=i.append(e,i.$(".search-container.input-box"));this.searchInput=this._register(new w.ContextScopedFindInput(o,this.contextViewService,r,this.contextKeyService,!0)),this._register(S.attachFindInputBoxStyler(this.searchInput,this.themeService)),this.searchInput.onKeyDown(function(e){return n.onSearchInputKeyDown(e)}),this.searchInput.setValue(t.value||""),this.searchInput.setRegex(!!t.isRegex),this.searchInput.setCaseSensitive(!!t.isCaseSensitive),this.searchInput.setWholeWords(!!t.isWholeWords),this._register(this.onSearchSubmit(function(){n.searchInput.inputBox.addToHistory()})),this._register(this.searchInput.onCaseSensitiveKeyDown(function(e){return n.onCaseSensitiveKeyDown(e)})),this._register(this.searchInput.onRegexKeyDown(function(e){return n.onRegexKeyDown(e)})),this._register(this.searchInput.inputBox.onDidChange(function(){return n.onSearchInputChanged()})),this._register(this.searchInput.inputBox.onDidHeightChange(function(){return n._onDidHeightChange.fire()})),this._register(this.onReplaceValueChanged(function(){n._replaceHistoryDelayer.trigger(function(){return n.replaceInput.addToHistory()})})),this.searchInputFocusTracker=this._register(i.trackFocus(this.searchInput.inputBox.inputElement)),this._register(this.searchInputFocusTracker.onDidFocus(function(){n.searchInputBoxFocused.set(!0);var e=n.searchConfiguration.globalFindClipboard;if(!n.ignoreGlobalFindBufferOnNextFocus&&e){var t=n.clipboardServce.readFindText();n.previousGlobalFindBufferValue!==t&&(n.searchInput.inputBox.addToHistory(),n.searchInput.setValue(t),n.searchInput.select()),n.previousGlobalFindBufferValue=t}n.ignoreGlobalFindBufferOnNextFocus=!1})),this._register(this.searchInputFocusTracker.onDidBlur(function(){return n.searchInputBoxFocused.set(!1)}))},t.prototype.renderReplaceInput=function(e,r){var o=this;this.replaceContainer=i.append(e,i.$(".replace-container.disabled"));var s=i.append(this.replaceContainer,i.$(".input-box"));this.replaceInput=this._register(new w.ContextScopedHistoryInputBox(s,this.contextViewService,{ariaLabel:h.localize(5,null),placeholder:h.localize(6,null),history:r.replaceHistory||[],flexibleHeight:!0},this.contextKeyService)),this._register(S.attachInputBoxStyler(this.replaceInput,this.themeService)),this.onkeydown(this.replaceInput.inputElement,function(e){return o.onReplaceInputKeyDown(e)}),this.replaceInput.value=r.replaceValue||"",this._register(this.replaceInput.onDidChange(function(){return o._onReplaceValueChanged.fire(void 0)})),this._register(this.replaceInput.onDidHeightChange(function(){return o._onDidHeightChange.fire()})),this.replaceAllAction=L.INSTANCE,this.replaceAllAction.searchWidget=this,this.replaceAllAction.label=t.REPLACE_ALL_DISABLED_LABEL,this.replaceActionBar=this._register(new n.ActionBar(this.replaceContainer)),this.replaceActionBar.push([this.replaceAllAction],{icon:!0,label:!1}),this.onkeydown(this.replaceActionBar.domNode,function(e){return o.onReplaceActionbarKeyDown(e)}),this.replaceInputFocusTracker=this._register(i.trackFocus(this.replaceInput.inputElement)),this._register(this.replaceInputFocusTracker.onDidFocus(function(){return o.replaceInputBoxFocused.set(!0)})),this._register(this.replaceInputFocusTracker.onDidBlur(function(){return o.replaceInputBoxFocused.set(!1)}))},t.prototype.triggerReplaceAll=function(){return this._onReplaceAll.fire(),Promise.resolve(null)},t.prototype.onToggleReplaceButton=function(){i.toggleClass(this.replaceContainer,"disabled"),i.toggleClass(this.toggleReplaceButton.element,"collapse"),i.toggleClass(this.toggleReplaceButton.element,"expand"),this.toggleReplaceButton.element.setAttribute("aria-expanded",this.isReplaceShown()?"true":"false"),this.updateReplaceActiveState(),this._onReplaceToggled.fire()},t.prototype.setReplaceAllActionState=function(e){this.replaceAllAction.enabled!==e&&(this.replaceAllAction.enabled=e,this.replaceAllAction.label=e?t.REPLACE_ALL_ENABLED_LABEL(this.keyBindingService):t.REPLACE_ALL_DISABLED_LABEL,this.updateReplaceActiveState())},t.prototype.updateReplaceActiveState=function(){var e=this.isReplaceActive(),t=this.isReplaceShown()&&this.replaceAllAction.enabled;e!==t&&(this.replaceActive.set(t),this._onReplaceStateChange.fire(t),this.replaceInput.layout())},t.prototype.validateSearchInput=function(e){if(0===e.length)return null;if(!this.searchInput.getRegex())return null;try{new RegExp(e)}catch(e){return{content:e.message}}return u.regExpContainsBackreference(e)&&!this.searchConfiguration.usePCRE2?{content:h.localize(7,null)}:null},t.prototype.onSearchInputChanged=function(){this.searchInput.clearMessage(),this.setReplaceAllActionState(!1)},t.prototype.onSearchInputKeyDown=function(e){if(e.equals(3))this.submitSearch(),e.preventDefault();else if(e.equals(9))this._onSearchCancel.fire(),e.preventDefault();else if(e.equals(2))this.isReplaceShown()?this.replaceInput.focus():this.searchInput.focusOnCaseSensitive(),e.preventDefault();else if(e.equals(16)){var t=this.searchInput.domNode.querySelector("textarea"),i=!!this.searchInput.getValue().match(/\n/);t&&i&&t.selectionStart>0&&e.stopPropagation()}else if(e.equals(18)){t=this.searchInput.domNode.querySelector("textarea"),i=!!this.searchInput.getValue().match(/\n/);t&&i&&t.selectionEnd0&&e.stopPropagation()}else if(e.equals(18)){var t;(t=this.searchInput.domNode.querySelector("textarea"))&&t.selectionEnd0&&t&&i.unshift({type:"separator",label:t}),i}var M=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.themeService=n,o.editorService=r,o}return a(t,e),t.prototype.run=function(){for(var e=this.themeService.getColorTheme(),t={},i=[],n=0,r=c.Registry.as(m.Extensions.ColorContribution).getColors().map(function(e){return e.id}).sort();n0){var t=this.progressState.whileDelay-(Date.now()-this.progressState.whileStart);t>0&&(e=t)}this.doShowWhile(e)}else 2===this.progressState.type?this.progressbar.infinite().show():4===this.progressState.type&&(this.progressState.total&&this.progressbar.total(this.progressState.total).show(),this.progressState.worked&&this.progressbar.worked(this.progressState.worked).show())},t.prototype.show=function(e,t){var i=this;return this.progressState="boolean"==typeof e?s.Infinite:new s.Work(e,void 0),this.isActive&&(2===this.progressState.type?this.progressbar.infinite().show(t):4===this.progressState.type&&"number"==typeof this.progressState.total&&this.progressbar.total(this.progressState.total).show(t)),{total:function(e){i.progressState=new s.Work(e,4===i.progressState.type?i.progressState.worked:void 0),i.isActive&&i.progressbar.total(e)},worked:function(e){!i.isActive||i.progressbar.hasTotal()?(i.progressState=new s.Work(4===i.progressState.type?i.progressState.total:void 0,4===i.progressState.type&&"number"==typeof i.progressState.worked?i.progressState.worked+e:e),i.isActive&&i.progressbar.worked(e)):(i.progressState=s.Infinite,i.progressbar.infinite().show())},done:function(){i.progressState=s.Done,i.isActive&&i.progressbar.stop().hide()}}},t.prototype.showWhile=function(e,t){var i=this;3===this.progressState.type&&(e=Promise.all([e,this.progressState.whilePromise])),this.progressState=new s.While(e,t||0,Date.now());var n=function(){3===i.progressState.type&&i.progressState.whilePromise!==e||(i.progressState=s.None,i.isActive&&i.progressbar.stop().hide())};return this.doShowWhile(t),e.then(n,n)},t.prototype.doShowWhile=function(e){this.isActive&&this.progressbar.infinite().show(e)},t=p([f(3,r.IViewletService),f(4,o.IPanelService)],t)}(c);t.ScopedProgressService=l;var u=function(){function e(e){this.progressbar=e}return e.prototype.show=function(e,t){var i=this;return"boolean"==typeof e?this.progressbar.infinite().show(t):this.progressbar.total(e).show(t),{total:function(e){i.progressbar.total(e)},worked:function(e){i.progressbar.hasTotal()?i.progressbar.worked(e):i.progressbar.infinite().show()},done:function(){i.progressbar.stop().hide()}}},e.prototype.showWhile=function(e,t){var i=this,n=function(){i.progressbar.stop().hide()};return this.progressbar.infinite().show(t),e.then(n,n)},e}();t.ProgressService=u}),define(i[1203],n([0,1,499,135,2,9,5,11,214,233,165,253,451,148,91,58,7,712]),function(e,t,i,n,r,o,s,c,l,u,d,h,p,f,g,v,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var y=function(e){function t(t,i,n,r,o,a,c,l,u,d,h,p,f,g,v,m){var y=e.call(this,v,m,l,i,o)||this;return y.notificationService=t,y.storageService=i,y.telemetryService=n,y.contextMenuService=r,y.layoutService=o,y.keybindingService=a,y.instantiationService=c,y.registry=u,y.activeCompositeSettingsKey=d,y.defaultCompositeId=h,y.nameForTelemetry=p,y.compositeCSSClass=f,y.titleForegroundColor=g,y.onDidCompositeOpen=y._register(new s.Emitter),y.onDidCompositeClose=y._register(new s.Emitter),y.mapCompositeToCompositeContainer={},y.mapActionsBindingToComposite={},y.activeComposite=null,y.instantiatedCompositeItems=new Map,y.lastActiveCompositeId=i.get(d,1,y.defaultCompositeId),y}return a(t,e),t.prototype.openComposite=function(e,t){return this.activeComposite&&this.activeComposite.getId()===e?(t&&this.activeComposite.focus(),this.activeComposite):this.doOpenComposite(e,t)},t.prototype.doOpenComposite=function(e,t){void 0===t&&(t=!1);var i=n.defaultGenerator.nextId();this.currentCompositeOpenToken=i,this.activeComposite&&this.hideActiveComposite(),this.updateTitle(e);var r=this.createComposite(e,!0);if(!(this.currentCompositeOpenToken!==i||this.activeComposite&&this.activeComposite.getId()!==r.getId()))return this.activeComposite&&this.activeComposite.getId()===r.getId()?(t&&r.focus(),this.onDidCompositeOpen.fire({composite:r,focus:t}),r):(this.showComposite(r),t&&r.focus(),r&&this.onDidCompositeOpen.fire({composite:r,focus:t}),r)},t.prototype.createComposite=function(e,t){var i=this,n=this.instantiatedCompositeItems.get(e);if(n)return n.composite;var o=this.registry.getComposite(e);if(o){var s=this.instantiationService.createInstance(p.ScopedProgressService,this.progressBar,o.id,t),a=this.instantiationService.createChild(new f.ServiceCollection([g.IProgressService,s])),c=o.instantiate(a),l=[];return this.instantiatedCompositeItems.set(e,{composite:c,disposable:r.toDisposable(function(){return r.dispose(l)}),progressService:s}),c.onTitleAreaUpdate(function(){return i.onTitleAreaUpdate(c.getId())},this,l),c}throw new Error("Unable to find composite with id "+e)},t.prototype.showComposite=function(e){var t=this;this.activeComposite=e;var i=this.activeComposite.getId();i!==this.defaultCompositeId?this.storageService.store(this.activeCompositeSettingsKey,i,1):this.storageService.remove(this.activeCompositeSettingsKey,1),this.lastActiveCompositeId=this.activeComposite.getId();var n=this.mapCompositeToCompositeContainer[e.getId()];n||(n=m.$(".composite"),m.addClasses(n,this.compositeCSSClass),n.id=e.getId(),e.create(n),e.updateStyles(),this.mapCompositeToCompositeContainer[e.getId()]=n);var r=this.instantiatedCompositeItems.get(e.getId());if(r&&!n&&r.progressService.showWhile(Promise.resolve(),this.layoutService.isRestored()?800:3200),this.activeComposite&&e.getId()===this.activeComposite.getId()){var o=this.getContentArea();o&&o.appendChild(n),m.show(n),this.toolBar.actionRunner=e.getActionRunner();var s=this.registry.getComposite(e.getId());s&&s.name!==e.getTitle()&&this.updateTitle(e.getId(),e.getTitle()||void 0);var a=this.mapActionsBindingToComposite[e.getId()];a||(a=this.collectCompositeActions(e),this.mapActionsBindingToComposite[e.getId()]=a),a(),this.telemetryActionsListener&&(this.telemetryActionsListener.dispose(),this.telemetryActionsListener=null),this.telemetryActionsListener=this.toolBar.actionRunner.onDidRun(function(e){e.error&&!c.isPromiseCanceledError(e.error)&&t.notificationService.error(e.error),t.telemetryService&&t.telemetryService.publicLog("workbenchActionExecuted",{id:e.action.id,from:t.nameForTelemetry})}),e.setVisible(!0),this.activeComposite&&e.getId()===this.activeComposite.getId()&&this.contentAreaSize&&e.layout(this.contentAreaSize)}},t.prototype.onTitleAreaUpdate=function(e){if(this.activeComposite&&this.activeComposite.getId()===e){this.updateTitle(this.activeComposite.getId(),this.activeComposite.getTitle()||void 0);var t=this.collectCompositeActions(this.activeComposite);this.mapActionsBindingToComposite[this.activeComposite.getId()]=t,t()}else delete this.mapActionsBindingToComposite[e]},t.prototype.updateTitle=function(e,t){var n=this.registry.getComposite(e);if(n&&this.titleLabel){t||(t=n.name);var r=this.keybindingService.lookupKeybinding(e);this.titleLabel.updateTitle(e,t,r&&r.getLabel()||void 0),this.toolBar.setAriaLabel(i.localize(0,null,t))}},t.prototype.collectCompositeActions=function(e){var t=e.getActions().slice(0),i=e.getSecondaryActions().slice(0);return t.push.apply(t,this.getActions()),i.push.apply(i,this.getSecondaryActions()),this.toolBar.context=this.actionsContextProvider(),this.toolBar.setActions(d.prepareActions(t),d.prepareActions(i))},t.prototype.getActiveComposite=function(){return this.activeComposite},t.prototype.getLastActiveCompositetId=function(){return this.lastActiveCompositeId},t.prototype.hideActiveComposite=function(){if(this.activeComposite){var e=this.activeComposite;this.activeComposite=null;var t=this.mapCompositeToCompositeContainer[e.getId()];return e.setVisible(!1),t.remove(),m.hide(t),this.progressBar.stop().hide(),this.toolBar.setActions([])(),this.onDidCompositeClose.fire(e),e}},t.prototype.createTitleArea=function(e){var t=this,i=m.append(e,m.$(".composite"));m.addClass(i,"title"),this.titleLabel=this.createTitleLabel(i);var n=m.append(i,m.$(".title-actions"));return this.toolBar=this._register(new l.ToolBar(n,this.contextMenuService,{actionItemProvider:function(e){return t.actionItemProvider(e)},orientation:0,getKeyBinding:function(e){return t.keybindingService.lookupKeybinding(e.id)},anchorAlignmentProvider:function(){return t.getTitleAreaDropDownAnchorAlignment()}})),i},t.prototype.createTitleLabel=function(e){var t=m.append(e,m.$(".title-label")),n=m.append(t,m.$("h2")),r=this;return{updateTitle:function(e,t,r){n.innerHTML=o.escape(t),n.title=r?i.localize(1,null,t,r):t},updateStyles:function(){n.style.color=r.titleForegroundColor?r.getColor(r.titleForegroundColor):null}}},t.prototype.updateStyles=function(){e.prototype.updateStyles.call(this),this.titleLabel.updateStyles()},t.prototype.actionItemProvider=function(e){return this.activeComposite?this.activeComposite.getActionItem(e):null},t.prototype.actionsContextProvider=function(){return this.activeComposite?this.activeComposite.getActionsContext():null},t.prototype.createContentArea=function(e){var t=m.append(e,m.$(".content"));return this.progressBar=this._register(new u.ProgressBar(t)),this._register(v.attachProgressBarStyler(this.progressBar,this.themeService)),this.progressBar.hide(),t},t.prototype.getProgressIndicator=function(e){var t=this.instantiatedCompositeItems.get(e);return t?t.progressService:null},t.prototype.getActions=function(){return[]},t.prototype.getSecondaryActions=function(){return[]},t.prototype.getTitleAreaDropDownAnchorAlignment=function(){return 1},t.prototype.layout=function(t,i){this.contentAreaSize=e.prototype.layoutContents.call(this,t,i).contentSize,this.activeComposite&&this.activeComposite.layout(this.contentAreaSize)},t.prototype.removeComposite=function(e){if(this.activeComposite&&this.activeComposite.getId()===e)return!1;delete this.mapCompositeToCompositeContainer[e],delete this.mapActionsBindingToComposite[e];var t=this.instantiatedCompositeItems.get(e);return t&&(t.composite.dispose(),r.dispose(t.disposable),this.instantiatedCompositeItems.delete(e)),!0},t.prototype.dispose=function(){this.mapCompositeToCompositeContainer=null,this.mapActionsBindingToComposite=null,this.instantiatedCompositeItems.forEach(function(e){e.composite.dispose(),r.dispose(e.disposable)}),this.instantiatedCompositeItems.clear(),e.prototype.dispose.call(this)},t}(h.Part);t.CompositePart=y}),define(i[1204],n([0,1,329,34,5,6,7,148,15,233,58,16,22,79,1184,1077,91,451,507,11,2,28,116,37,13,104,153,80,35,61,44,29,139,1183,38,76,174,51,402,10,701]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F,W,B,V,z,H){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var K=function(e){function t(n,o,s,a,c,l,u,d,h,p,f,g){var v=e.call(this,l)||this;return v.accessor=n,v._label=s,v.instantiationService=a,v.contextKeyService=c,v.notificationService=u,v.telemetryService=d,v.untitledEditorService=h,v.keybindingService=p,v.menuService=f,v.contextMenuService=g,v._onDidFocus=v._register(new r.Emitter),v._onWillDispose=v._register(new r.Emitter),v._onDidGroupChange=v._register(new r.Emitter),v._onWillOpenEditor=v._register(new r.Emitter),v._onDidOpenEditorFail=v._register(new r.Emitter),v._onWillCloseEditor=v._register(new r.Emitter),v._onDidCloseEditor=v._register(new r.Emitter),v.mapEditorToPendingConfirmation=new Map,v.element=document.createElement("div"),v._onDidChange=v._register(new r.Relay),v.onDidChange=v._onDidChange.event,o instanceof t?v._group=v._register(o.group.clone()):i.isSerializedEditorGroup(o)?v._group=v._register(a.createInstance(i.EditorGroup,o)):v._group=v._register(a.createInstance(i.EditorGroup,void 0)),v.disposedEditorsWorker=v._register(new D.RunOnceWorker(function(e){return v.handleDisposedEditors(e)},0)),v.create(),v._whenRestored=v.restoreEditors(o),v._whenRestored.then(function(){return v.isRestored=!0}),v.registerListeners(),v}return a(t,e),t.createNew=function(e,i,n){return n.createInstance(t,e,null,i)},t.createFromSerialized=function(e,i,n,r){return r.createInstance(t,i,e,n)},t.createCopy=function(e,i,n,r){return r.createInstance(t,i,e,n)},Object.defineProperty(t.prototype,"onDidFocus",{get:function(){return this._onDidFocus.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onWillDispose",{get:function(){return this._onWillDispose.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidGroupChange",{get:function(){return this._onDidGroupChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onWillOpenEditor",{get:function(){return this._onWillOpenEditor.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidOpenEditorFail",{get:function(){return this._onDidOpenEditorFail.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onWillCloseEditor",{get:function(){return this._onWillCloseEditor.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidCloseEditor",{get:function(){return this._onDidCloseEditor.event},enumerable:!0,configurable:!0}),t.prototype.create=function(){s.addClasses(this.element,"editor-group-container"),this.registerContainerListeners(),this.createContainerToolbar(),this.createContainerContextMenu();var e=document.createElement("div");s.addClass(e,"editor-group-letterpress"),this.element.appendChild(e),this.progressBar=this._register(new u.ProgressBar(this.element)),this._register(d.attachProgressBarStyler(this.progressBar,this.themeService)),this.progressBar.hide();var t=this._register(this.contextKeyService.createScoped(this.element));this.scopedInstantiationService=this.instantiationService.createChild(new c.ServiceCollection([l.IContextKeyService,t],[b.IProgressService,new _.ProgressService(this.progressBar)])),this.handleGroupContextKeys(t),this.titleContainer=document.createElement("div"),s.addClass(this.titleContainer,"title"),this.element.appendChild(this.titleContainer),this.createTitleAreaControl(),this.editorContainer=document.createElement("div"),s.addClass(this.editorContainer,"editor-container"),this.element.appendChild(this.editorContainer),this.editorControl=this._register(this.scopedInstantiationService.createInstance(y.EditorControl,this.editorContainer,this)),this._onDidChange.input=this.editorControl.onDidSizeConstraintsChange,this.doTrackFocus(),this.updateTitleContainer(),this.updateContainer(),this.updateStyles()},t.prototype.handleGroupContextKeys=function(e){var t,i=this,r=n.EditorGroupActiveEditorDirtyContext.bindTo(e),o=function(){t=w.dispose(t);var e=i._group.activeEditor;e?(r.set(e.isDirty()),t=e.onDidChangeDirty(function(){return r.set(e.isDirty())})):r.set(!1)};this._register(this.onDidGroupChange(function(e){5===e.kind&&o()})),o()},t.prototype.registerContainerListeners=function(){var e=this;this._register(s.addDisposableListener(this.element,s.EventType.DBLCLICK,function(t){e.isEmpty()&&(s.EventHelper.stop(t),e.openEditor(e.untitledEditorService.createOrGet(),n.EditorOptions.create({pinned:!0})))})),this._register(s.addDisposableListener(this.element,s.EventType.MOUSE_UP,function(t){e.isEmpty()&&1===t.button&&(s.EventHelper.stop(t),e.accessor.removeGroup(e))}))},t.prototype.createContainerToolbar=function(){var e=this,t=document.createElement("div");s.addClass(t,"editor-group-container-toolbar"),this.element.appendChild(t);var i=this._group.id,n=new O.ActionBar(t,{ariaLabel:S.localize(0,null),actionRunner:this._register(new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(e){return e.run(i)},t}(P.ActionRunner)))}),r=this._register(new P.Action(A.CLOSE_EDITOR_GROUP_COMMAND_ID,S.localize(1,null),"close-editor-group",!0,function(){return e.accessor.removeGroup(e),Promise.resolve(!0)})),o=this.keybindingService.lookupKeybinding(r.id);n.push(r,{icon:!0,label:!1,keybinding:o?o.getLabel():void 0})},t.prototype.createContainerContextMenu=function(){var e=this,t=this._register(this.menuService.createMenu(10,this.contextKeyService));this._register(s.addDisposableListener(this.element,s.EventType.CONTEXT_MENU,function(i){return e.onShowContainerContextMenu(t,i)})),this._register(s.addDisposableListener(this.element,k.EventType.Contextmenu,function(i){return e.onShowContainerContextMenu(t)}))},t.prototype.onShowContainerContextMenu=function(e,t){var i=this;if(this.isEmpty()){var n=this.element;if(t instanceof MouseEvent){var r=new W.StandardMouseEvent(t);n={x:r.posx,y:r.posy}}var o=[];B.fillInContextMenuActions(e,void 0,o,this.contextMenuService),this.contextMenuService.showContextMenu({getAnchor:function(){return n},getActions:function(){return o},onHide:function(){return i.focus()}})}},t.prototype.doTrackFocus=function(){var e=this,t=this._register(s.trackFocus(this.element));this._register(t.onDidFocus(function(){e.isEmpty()&&e._onDidFocus.fire()}));var i=function(t){var i;if(t instanceof MouseEvent){if(0!==t.button)return;i=t.target}else i=t.initialTarget;s.findParentWithClass(i,"monaco-action-bar",e.titleContainer)||s.findParentWithClass(i,"monaco-breadcrumb-item",e.titleContainer)||setTimeout(function(){e.focus()})};this._register(s.addDisposableListener(this.titleContainer,s.EventType.MOUSE_DOWN,function(e){return i(e)})),this._register(s.addDisposableListener(this.titleContainer,k.EventType.Tap,function(e){return i(e)})),this._register(this.editorControl.onDidFocus(function(){e._onDidFocus.fire()}))},t.prototype.updateContainer=function(){this.isEmpty()?(s.addClass(this.element,"empty"),this.element.tabIndex=0,this.element.setAttribute("aria-label",S.localize(2,null,this.label))):(s.removeClass(this.element,"empty"),this.element.removeAttribute("tabIndex"),this.element.removeAttribute("aria-label")),this.updateStyles()},t.prototype.updateTitleContainer=function(){s.toggleClass(this.titleContainer,"tabs",this.accessor.partOptions.showTabs),s.toggleClass(this.titleContainer,"show-file-icons",this.accessor.partOptions.showIcons)},t.prototype.createTitleAreaControl=function(){this.titleAreaControl&&(this.titleAreaControl.dispose(),s.clearNode(this.titleContainer)),this.accessor.partOptions.showTabs?this.titleAreaControl=this.scopedInstantiationService.createInstance(m.TabsTitleControl,this.titleContainer,this.accessor,this):this.titleAreaControl=this.scopedInstantiationService.createInstance(N.NoTabsTitleControl,this.titleContainer,this.accessor,this)},t.prototype.restoreEditors=function(e){var i,r=this;if(0===this._group.count)return Promise.resolve();i=e instanceof t?L.getActiveTextEditorOptions(e):new n.EditorOptions;var o=this._group.activeEditor;if(!o)return Promise.resolve();i.pinned=this._group.isPinned(o),i.preserveFocus=!0;var s=document.activeElement;return this.doShowEditor(o,!0,i).then(function(){r.accessor.activeGroup===r&&s===document.activeElement&&r.focus()})},t.prototype.registerListeners=function(){var e=this;this._register(this._group.onDidEditorPin(function(t){return e.onDidEditorPin(t)})),this._register(this._group.onDidEditorOpen(function(t){return e.onDidEditorOpen(t)})),this._register(this._group.onDidEditorClose(function(t){return e.onDidEditorClose(t)})),this._register(this._group.onDidEditorDispose(function(t){return e.onDidEditorDispose(t)})),this._register(this._group.onDidEditorBecomeDirty(function(t){return e.onDidEditorBecomeDirty(t)})),this._register(this._group.onDidEditorLabelChange(function(t){return e.onDidEditorLabelChange(t)})),this._register(this.accessor.onDidEditorPartOptionsChange(function(t){return e.onDidEditorPartOptionsChange(t)}))},t.prototype.onDidEditorPin=function(e){this._onDidGroupChange.fire({kind:7,editor:e})},t.prototype.onDidEditorOpen=function(e){this.telemetryService.publicLog("editorOpened",e.getTelemetryDescriptor()),this.updateContainer(),this._onDidGroupChange.fire({kind:2,editor:e})},t.prototype.onDidEditorClose=function(e){var t=this;this._onWillCloseEditor.fire(e);var i=e.editor,r=[i];i instanceof n.SideBySideEditorInput&&!this.accessor.groups.some(function(e){return e.group.contains(i)})&&r.push(i.master,i.details),r.forEach(function(e){var i=e?e.getResource():void 0;t.accessor.groups.some(function(t){return t.group.contains(i||e)})||e.close()}),this.telemetryService.publicLog("editorClosed",e.editor.getTelemetryDescriptor()),this.updateContainer(),this._onDidCloseEditor.fire(e),this._onDidGroupChange.fire({kind:3,editor:i,editorIndex:e.index})},t.prototype.onDidEditorDispose=function(e){this.disposedEditorsWorker.work(e)},t.prototype.handleDisposedEditors=function(e){var t,i=this,n=[];e.forEach(function(e){i._group.isActive(e)?t=e:i._group.contains(e)&&n.push(e)}),n.forEach(function(e){return i.doCloseEditor(e,!1)}),t&&this.doCloseEditor(t,!1)},t.prototype.onDidEditorPartOptionsChange=function(e){this.updateTitleContainer(),e.oldPartOptions.showTabs!==e.newPartOptions.showTabs?(this.createTitleAreaControl(),this._group.activeEditor&&this.titleAreaControl.openEditor(this._group.activeEditor)):this.titleAreaControl.updateOptions(e.oldPartOptions,e.newPartOptions),this.updateStyles(),e.oldPartOptions.enablePreview&&!e.newPartOptions.enablePreview&&this._group.previewEditor&&this.pinEditor(this._group.previewEditor)},t.prototype.onDidEditorBecomeDirty=function(e){this.pinEditor(e),this.titleAreaControl.updateEditorDirty(e),this._onDidGroupChange.fire({kind:8,editor:e})},t.prototype.onDidEditorLabelChange=function(e){this.titleAreaControl.updateEditorLabel(e),this._onDidGroupChange.fire({kind:6,editor:e})},Object.defineProperty(t.prototype,"group",{get:function(){return this._group},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disposed",{get:function(){return this._disposed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"whenRestored",{get:function(){return this._whenRestored},enumerable:!0,configurable:!0}),t.prototype.setLabel=function(e){this._label!==e&&(this._label=e,this._onDidGroupChange.fire({kind:1}))},t.prototype.setActive=function(e){this.active=e,s.toggleClass(this.element,"active",e),s.toggleClass(this.element,"inactive",!e),this.titleAreaControl.setActive(e),this.updateStyles(),this._onDidGroupChange.fire({kind:0})},t.prototype.isEmpty=function(){return 0===this._group.count},Object.defineProperty(t.prototype,"id",{get:function(){return this._group.id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editors",{get:function(){return this._group.getEditors()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this._group.count},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeControl",{get:function(){return this.editorControl&&this.editorControl.activeControl||void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeEditor",{get:function(){return this._group.activeEditor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"previewEditor",{get:function(){return this._group.previewEditor},enumerable:!0,configurable:!0}),t.prototype.isPinned=function(e){return this._group.isPinned(e)},t.prototype.isActive=function(e){return this._group.isActive(e)},t.prototype.getEditors=function(e){return 0===e?this._group.getEditors(!0):this.editors},t.prototype.getEditor=function(e){return this._group.getEditor(e)},t.prototype.getIndexOfEditor=function(e){return this._group.indexOf(e)},t.prototype.isOpened=function(e){return this._group.contains(e)},t.prototype.focus=function(){this.activeControl?this.activeControl.focus():this.element.focus(),this._onDidFocus.fire()},t.prototype.pinEditor=function(e){void 0===e&&(e=this.activeEditor||void 0),e&&!this._group.isPinned(e)&&(this._group.pin(e),this.titleAreaControl.pinEditor(e))},t.prototype.invokeWithinContext=function(e){return this.scopedInstantiationService.invokeFunction(e)},t.prototype.openEditor=function(e,t){if(!e)return Promise.resolve(null);var i=new U(this._group.id,e,t);this._onWillOpenEditor.fire(i);var n=i.isPrevented();return n?n():this.doOpenEditor(e,t)},t.prototype.doOpenEditor=function(e,t){var i={index:t?t.index:void 0,pinned:!this.accessor.partOptions.enablePreview||e.isDirty()||t&&t.pinned||t&&"number"==typeof t.index,active:0===this._group.count||!t||!t.inactive};if(!i.active&&!i.pinned&&this._group.activeEditor&&this._group.isPreview(this._group.activeEditor)&&(i.active=!0),!i.active||t&&t.preserveFocus||this.accessor.activateGroup(this),"number"==typeof i.index){var n=this._group.indexOf(e);-1!==n&&n!==i.index&&this.doMoveEditorInsideGroup(e,i)}return this._group.openEditor(e,i),this.doShowEditor(e,!!i.active,t)},t.prototype.doShowEditor=function(e,t,i){var n,r=this;return n=t?this.editorControl.openEditor(e,i).then(function(t){return t.editorChanged&&r._onDidGroupChange.fire({kind:5,editor:e}),t.control},function(t){return r.doHandleOpenEditorError(t,e,i),null}):Promise.resolve(null),this.titleAreaControl.openEditor(e),n},t.prototype.doHandleOpenEditorError=function(e,t,i){if(this.isRestored&&!C.isPromiseCanceledError(e)&&(!i||!i.ignoreError)){var n={primary:[]};z.isErrorWithActions(e)&&(n.primary=e.actions);var o=this.notificationService.notify({severity:E.Severity.Error,message:S.localize(3,null,t.getName(),I.toErrorMessage(e)),actions:n});r.Event.once(o.onDidClose)(function(){return n.primary&&w.dispose(n.primary)})}if(this._onDidOpenEditorFail.fire(t),this.activeEditor===t){var s=!i||!i.preserveFocus;this.doCloseEditor(t,s,!0)}},t.prototype.openEditors=function(e){var t,i=this;if(!e.length)return Promise.resolve(null);var r=(e=e.slice(0)).shift(),o=r.editor,s=r.options;return this.openEditor(o,s).then(function(r){t=r;var s=i.getIndexOfEditor(o)+1;return Promise.all(e.map(function(e,r){var o=e.editor,a=e.options||new n.EditorOptions;return a.inactive=!0,a.pinned=!0,a.index=s+r,i.openEditor(o,a).then(function(e){t||(t=e)})})).then(function(){return t})})},t.prototype.moveEditor=function(e,t,i){this===t?this.doMoveEditorInsideGroup(e,i):this.doMoveOrCopyEditorAcrossGroups(e,t,i)},t.prototype.doMoveEditorInsideGroup=function(e,t){var i=t?t.index:void 0;if("number"==typeof i){var n=this._group.indexOf(e);n!==i&&(this._group.moveEditor(e,i),this._group.pin(e),this.titleAreaControl.moveEditor(e,n,i),this.titleAreaControl.pinEditor(e),this._onDidGroupChange.fire({kind:4,editor:e}))}},t.prototype.doMoveOrCopyEditorAcrossGroups=function(e,t,i,r){void 0===i&&(i=Object.create(null));var o=L.getActiveTextEditorOptions(this,e,n.EditorOptions.create(i));o.pinned=!0,t.openEditor(e,o),r||this.doCloseEditor(e,!1)},t.prototype.copyEditor=function(e,t,i){this===t?this.doMoveEditorInsideGroup(e,i):this.doMoveOrCopyEditorAcrossGroups(e,t,i,!0)},t.prototype.closeEditor=function(e,t){var i=this;return void 0===e&&(e=this.activeEditor||void 0),e?this.handleDirty([e]).then(function(n){n||i.doCloseEditor(e,(!t||!t.preserveFocus)&&void 0)}):Promise.resolve()},t.prototype.doCloseEditor=function(e,t,i){void 0===t&&(t=this.accessor.activeGroup===this),this._group.isActive(e)?this.doCloseActiveEditor(t,i):this.doCloseInactiveEditor(e),this.titleAreaControl.closeEditor(e)},t.prototype.doCloseActiveEditor=function(e,t){void 0===e&&(e=this.accessor.activeGroup===this);var i=this.activeEditor,r=this.shouldRestoreFocus(this.element),o=this.accessor.partOptions.closeEmptyGroups;if(o&&this.active&&1===this._group.count){var s=this.accessor.getGroups(1)[1];s&&(r?s.focus():this.accessor.activateGroup(s))}i&&this._group.closeEditor(i);var a=this._group.activeEditor;if(a){var c=n.EditorOptions.create({preserveFocus:!e});t&&(c.ignoreError=!0),this.openEditor(a,c)}else i&&this.editorControl.closeEditor(i),r&&!o&&this.focus(),this._onDidGroupChange.fire({kind:5}),o&&this.accessor.removeGroup(this)},t.prototype.shouldRestoreFocus=function(e){var t=document.activeElement;return t===document.body||s.isAncestor(t,e)},t.prototype.doCloseInactiveEditor=function(e){this._group.closeEditor(e)},t.prototype.handleDirty=function(e){var t=this;if(!e.length)return Promise.resolve(!1);var i=e.shift(),n=this.mapEditorToPendingConfirmation.get(i);return n||(n=this.doHandleDirty(i),this.mapEditorToPendingConfirmation.set(i,n)),n.then(function(n){return t.mapEditorToPendingConfirmation.delete(i),n||t.handleDirty(e)})},t.prototype.doHandleDirty=function(e){var t=this;return!e.isDirty()||this.accessor.groups.some(function(i){return i!==t&&i.group.contains(e,!0)})||e instanceof n.SideBySideEditorInput&&this.isOpened(e.master)?Promise.resolve(!1):this.openEditor(e).then(function(){return e.confirmSave().then(function(t){if(!e.isDirty())return 2===t;switch(t){case 0:return e.save().then(function(e){return!e});case 1:return e.revert().then(function(e){return!e},function(t){return e.revert({soft:!0}).then(function(e){return!e})});case 2:return!0}})})},t.prototype.closeEditors=function(e,t){var i=this;if(this.isEmpty())return Promise.resolve();var n=this.getEditorsToClose(e);return this.handleDirty(n.slice(0)).then(function(e){e||i.doCloseEditors(n,t)})},t.prototype.getEditorsToClose=function(e){if(Array.isArray(e))return e;var t=e,i="number"==typeof t.direction,n=this._group.getEditors(!i);return t.savedOnly?n=n.filter(function(e){return!e.isDirty()}):i?n=0===t.direction?n.slice(0,this._group.indexOf(t.except)):n.slice(this._group.indexOf(t.except)+1):t.except&&(n=n.filter(function(e){return!e.matches(t.except)})),n},t.prototype.doCloseEditors=function(e,t){var i=this,n=!1;e.forEach(function(e){i.isActive(e)?n=!0:i.doCloseInactiveEditor(e)}),n&&this.doCloseActiveEditor((!t||!t.preserveFocus)&&void 0),this.titleAreaControl.closeEditors(e)},t.prototype.closeAllEditors=function(){var e=this;if(this.isEmpty())return this.accessor.partOptions.closeEmptyGroups&&this.accessor.removeGroup(this),Promise.resolve();var t=this._group.getEditors(!0);return this.handleDirty(t.slice(0)).then(function(t){t||e.doCloseAllEditors()})},t.prototype.doCloseAllEditors=function(){var e=this;this.editors.forEach(function(t){e.isActive(t)||e.doCloseInactiveEditor(t)}),this.doCloseActiveEditor(),this.titleAreaControl.closeAllEditors()},t.prototype.replaceEditors=function(e){var t,i=this,r=[];if(e.forEach(function(e){var o=e.editor,s=e.replacement,a=e.options;if(!o.isDirty()){var c=i.getIndexOfEditor(o);if(c>=0){var l=i.isActive(o);a?a.index=c:a=n.EditorOptions.create({index:c}),a.inactive=!l,a.pinned=!0;var u={editor:o,replacement:s,options:a};l?t=u:r.push(u)}}}),r.forEach(function(e){var t=e.editor,n=e.replacement,r=e.options;i.doOpenEditor(n,r),t.matches(n)||(i.doCloseInactiveEditor(t),i.titleAreaControl.closeEditor(t))}),t){var o=this.doOpenEditor(t.replacement,t.options);return t.editor.matches(t.replacement)||(this.doCloseInactiveEditor(t.editor),this.titleAreaControl.closeEditor(t.editor)),o.then(function(){})}return Promise.resolve()},t.prototype.updateStyles=function(){var e=this.isEmpty();this.element.style.backgroundColor=e?this.getColor(v.EDITOR_GROUP_EMPTY_BACKGROUND):null;var t=this.accessor.partOptions.showTabs,i=this.getColor(v.EDITOR_GROUP_HEADER_TABS_BORDER)||this.getColor(g.contrastBorder);!e&&t&&i?(s.addClass(this.titleContainer,"title-border-bottom"),this.titleContainer.style.setProperty("--title-border-bottom-color",i.toString())):(s.removeClass(this.titleContainer,"title-border-bottom"),this.titleContainer.style.removeProperty("--title-border-bottom-color")),this.titleContainer.style.backgroundColor=this.getColor(t?v.EDITOR_GROUP_HEADER_TABS_BACKGROUND:v.EDITOR_GROUP_HEADER_NO_TABS_BACKGROUND),this.editorContainer.style.backgroundColor=this.getColor(g.editorBackground)},Object.defineProperty(t.prototype,"minimumWidth",{get:function(){return this.editorControl.minimumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimumHeight",{get:function(){return this.editorControl.minimumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximumWidth",{get:function(){return this.editorControl.maximumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximumHeight",{get:function(){return this.editorControl.maximumHeight},enumerable:!0,configurable:!0}),t.prototype.layout=function(e,t){this.dimension=new s.Dimension(e,t),this.editorContainer.style.height="calc(100% - "+this.titleAreaControl.getPreferredHeight()+"px)",this.titleAreaControl.layout(new s.Dimension(this.dimension.width,this.titleAreaControl.getPreferredHeight())),this.editorControl.layout(new s.Dimension(this.dimension.width,this.dimension.height-this.titleAreaControl.getPreferredHeight()))},t.prototype.relayout=function(){if(this.dimension){var e=this.dimension,t=e.width,i=e.height;this.layout(t,i)}},t.prototype.toJSON=function(){return this._group.serialize()},t.prototype.dispose=function(){this._disposed=!0,this._onWillDispose.fire(),this.titleAreaControl.dispose(),e.prototype.dispose.call(this)},t=p([f(3,o.IInstantiationService),f(4,l.IContextKeyService),f(5,h.IThemeService),f(6,E.INotificationService),f(7,x.ITelemetryService),f(8,M.IUntitledEditorService),f(9,T.IKeybindingService),f(10,F.IMenuService),f(11,V.IContextMenuService)],t)}(v.Themable);t.EditorGroupView=K;var U=function(){function e(e,t,i){this._group=e,this._editor=t,this._options=i}return Object.defineProperty(e.prototype,"groupId",{get:function(){return this._group},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editor",{get:function(){return this._editor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.prevent=function(e){this.override=e},e.prototype.isPrevented=function(){return this.override},e}();h.registerThemingParticipant(function(e,t,i){var n="resources/letterpress"+("dark"===e.type?"-dark":"hc"===e.type?"-hc":"")+".svg";t.addRule("\n\t\t.monaco-workbench .part.editor > .content .editor-group-container.empty .editor-group-letterpress {\n\t\t\tbackground-image: url('"+H.URI.file(R.join(i.appRoot,n)).toString()+"')\n\t\t}\n\t");var r=e.getColor(v.EDITOR_GROUP_FOCUSED_EMPTY_BORDER);r?t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content:not(.empty) .editor-group-container.empty.active:focus {\n\t\t\t\toutline-width: 1px;\n\t\t\t\toutline-color: "+r+";\n\t\t\t\toutline-offset: -2px;\n\t\t\t\toutline-style: solid;\n\t\t\t}\n\n\t\t\t.monaco-workbench .part.editor > .content.empty .editor-group-container.empty.active:focus {\n\t\t\t\toutline: none; /* never show outline for empty group if it is the last */\n\t\t\t}\n\t\t"):t.addRule("\n\t\t\t.monaco-workbench .part.editor > .content .editor-group-container.empty.active:focus {\n\t\t\t\toutline: none; /* disable focus outline unless active empty group border is defined */\n\t\t\t}\n\t\t")})}),define(i[1205],n([0,1,16,253,7,5,22,56,6,992,41,79,17,153,1204,18,2,25,40,329,1179,508,49,988,408,11,66,39,1181]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var R=function(){function e(){this.element=r.$(".grid-view-container"),this._onDidChange=new o.Relay,this.onDidChange=this._onDidChange.event}return Object.defineProperty(e.prototype,"minimumWidth",{get:function(){return this.gridWidget?this.gridWidget.minimumWidth:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumWidth",{get:function(){return this.gridWidget?this.gridWidget.maximumWidth:Number.POSITIVE_INFINITY},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minimumHeight",{get:function(){return this.gridWidget?this.gridWidget.minimumHeight:0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maximumHeight",{get:function(){return this.gridWidget?this.gridWidget.maximumHeight:Number.POSITIVE_INFINITY},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"gridWidget",{get:function(){return this._gridWidget},set:function(e){this.element.innerHTML="",e?(this.element.appendChild(e.element),this._onDidChange.input=e.onDidChange):this._onDidChange.input=o.Event.None,this._gridWidget=e},enumerable:!0,configurable:!0}),e.prototype.layout=function(e,t){this.gridWidget&&this.gridWidget.layout(e,t)},e.prototype.dispose=function(){this._onDidChange.dispose()},e}(),O=function(e){function t(t,i,n,r,s){var a=e.call(this,"workbench.parts.editor",{hasTitle:!1},i,r,s)||this;return a.instantiationService=t,a.configurationService=n,a._onDidLayout=a._register(new o.Emitter),a._onDidActiveGroupChange=a._register(new o.Emitter),a._onDidActivateGroup=a._register(new o.Emitter),a._onDidAddGroup=a._register(new o.Emitter),a._onDidRemoveGroup=a._register(new o.Emitter),a._onDidMoveGroup=a._register(new o.Emitter),a.onDidSetGridWidget=a._register(new o.Emitter),a._onDidSizeConstraintsChange=a._register(new o.Relay),a._onDidPreferredSizeChange=a._register(new o.Emitter),a.groupViews=new Map,a.mostRecentActiveGroups=[],a.enforcedPartOptions=[],a._onDidEditorPartOptionsChange=a._register(new o.Emitter),a.priority=2,a.gridWidgetView=new R,a._partOptions=v.getEditorPartOptions(a.configurationService.getValue()),a.workspaceMemento=a.getMemento(1),a.globalMemento=a.getMemento(0),a._whenRestored=new Promise(function(e){return a.whenRestoredResolve=e}),a.registerListeners(),a}return a(t,e),Object.defineProperty(t.prototype,"onDidLayout",{get:function(){return this._onDidLayout.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidActiveGroupChange",{get:function(){return this._onDidActiveGroupChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidActivateGroup",{get:function(){return this._onDidActivateGroup.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidAddGroup",{get:function(){return this._onDidAddGroup.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidRemoveGroup",{get:function(){return this._onDidRemoveGroup.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidMoveGroup",{get:function(){return this._onDidMoveGroup.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidSizeConstraintsChange",{get:function(){return o.Event.any(this.onDidSetGridWidget.event,this._onDidSizeConstraintsChange.event)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidPreferredSizeChange",{get:function(){return this._onDidPreferredSizeChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidEditorPartOptionsChange",{get:function(){return this._onDidEditorPartOptionsChange.event},enumerable:!0,configurable:!0}),t.prototype.registerListeners=function(){var e=this;this._register(this.configurationService.onDidChangeConfiguration(function(t){return e.onConfigurationUpdated(t)}))},t.prototype.onConfigurationUpdated=function(e){v.impactsEditorPartOptions(e)&&this.handleChangedPartOptions()},t.prototype.handleChangedPartOptions=function(){var e=this._partOptions,t=v.getEditorPartOptions(this.configurationService.getValue());this.enforcedPartOptions.forEach(function(e){_.assign(t,e)}),this._partOptions=t,this._onDidEditorPartOptionsChange.fire({oldPartOptions:e,newPartOptions:t})},Object.defineProperty(t.prototype,"partOptions",{get:function(){return this._partOptions},enumerable:!0,configurable:!0}),t.prototype.enforcePartOptions=function(e){var t=this;return this.enforcedPartOptions.push(e),this.handleChangedPartOptions(),b.toDisposable(function(){t.enforcedPartOptions.splice(t.enforcedPartOptions.indexOf(e),1),t.handleChangedPartOptions()})},Object.defineProperty(t.prototype,"activeGroup",{get:function(){return this._activeGroup},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"groups",{get:function(){return d.values(this.groupViews)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.groupViews.size},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orientation",{get:function(){if(this.gridWidget)return 0===this.gridWidget.orientation?1:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"whenRestored",{get:function(){return this._whenRestored},enumerable:!0,configurable:!0}),t.prototype.getGroups=function(e){var t=this;switch(void 0===e&&(e=0),e){case 0:return this.groups;case 1:var i=this.mostRecentActiveGroups.map(function(e){return t.getGroup(e)});return g.distinct(i.concat(this.groups));case 2:var n=[];return this.gridWidget&&this.fillGridNodes(n,this.gridWidget.getViews()),n}},t.prototype.fillGridNodes=function(e,t){var i=this;u.isGridBranchNode(t)?t.children.forEach(function(t){return i.fillGridNodes(e,t)}):e.push(t.view)},t.prototype.getGroup=function(e){return this.groupViews.get(e)},t.prototype.findGroup=function(e,t,i){return void 0===t&&(t=this.activeGroup),"number"==typeof e.direction?this.doFindGroupByDirection(e.direction,t,i):this.doFindGroupByLocation(e.location,t,i)},t.prototype.doFindGroupByDirection=function(e,t,i){var n=this,r=this.assertGroupView(t),o=this.gridWidget.getNeighborViews(r,this.toGridViewDirection(e),i);return o.sort(function(e,t){return n.mostRecentActiveGroups.indexOf(e.id)-n.mostRecentActiveGroups.indexOf(t.id)}),o[0]},t.prototype.doFindGroupByLocation=function(e,t,i){var n=this.assertGroupView(t),r=this.getGroups(2),o=r.indexOf(n);switch(e){case 0:return r[0];case 1:return r[r.length-1];case 2:var s=r[o+1];return!s&&i&&(s=this.doFindGroupByLocation(0,t)),s;case 3:var a=r[o-1];return!a&&i&&(a=this.doFindGroupByLocation(1,t)),a}},t.prototype.activateGroup=function(e){var t=this.assertGroupView(e);return this.doSetGroupActive(t),this._onDidActivateGroup.fire(t),t},t.prototype.getSize=function(e){var t=this.assertGroupView(e);return this.gridWidget.getViewSize(t)},t.prototype.setSize=function(e,t){var i=this.assertGroupView(e);this.gridWidget.resizeView(i,t)},t.prototype.arrangeGroups=function(e){this.count<2||this.gridWidget&&(1===e?this.gridWidget.distributeViewSizes():this.gridWidget.maximizeViewSize(this.activeGroup))},t.prototype.setGroupOrientation=function(e){if(this.gridWidget){var t=0===e?1:0;this.gridWidget.orientation!==t&&(this.gridWidget.orientation=t,this.resetPreferredSize())}},t.prototype.applyLayout=function(e){var t=this,i=this.shouldRestoreFocus(this.container),n=0;!function e(t){t.forEach(function(t){Array.isArray(t.groups)?e(t.groups):n++})}(e.groups);var r=this.getGroups(2);if(n=n&&t.mergeGroup(e,o)}),r=this.getGroups(2)}var s=this.activeGroup,a=u.createSerializedGrid({orientation:this.toGridViewOrientation(e.orientation,this.isTwoDimensionalGrid()?this.gridWidget.orientation:D.orthogonal(this.gridWidget.orientation)),groups:e.groups});this.doCreateGridControlWithState(a,s.id,r),this.doLayout(this.dimension),this.updateContainer(),this.resetPreferredSize(),this.getGroups(2).forEach(function(e){-1===r.indexOf(e)&&t._onDidAddGroup.fire(e)}),this.updateGroupLabels(),i&&this._activeGroup.focus()},t.prototype.shouldRestoreFocus=function(e){var t=document.activeElement;return t===document.body||r.isAncestor(t,e)},t.prototype.isTwoDimensionalGrid=function(){var e=this.gridWidget.getViews();return!!u.isGridBranchNode(e)&&e.children.some(function(e){return u.isGridBranchNode(e)})},t.prototype.addGroup=function(e,t,i){var n=this.assertGroupView(e),r=this.doAddGroup(n,t);return i&&i.activate&&this.doSetGroupActive(r),r},t.prototype.doAddGroup=function(e,t,i){var n=this.doCreateGroupView(i);return this.gridWidget.addView(n,"distribute",e,this.toGridViewDirection(t)),this.updateContainer(),this.resetPreferredSize(),this._onDidAddGroup.fire(n),this.updateGroupLabels(),n},t.prototype.doCreateGroupView=function(e){var t,i=this,n=this.getGroupLabel(this.count+1);t=e instanceof m.EditorGroupView?m.EditorGroupView.createCopy(e,this,n,this.instantiationService):C.isSerializedEditorGroup(e)?m.EditorGroupView.createFromSerialized(e,this,n,this.instantiationService):m.EditorGroupView.createNew(this,n,this.instantiationService),this.groupViews.set(t.id,t);var r=[];return r.push(t.onDidFocus(function(){i.doSetGroupActive(t)})),r.push(t.onDidGroupChange(function(e){5===e.kind&&i.updateContainer()})),o.Event.once(t.onWillDispose)(function(){r=b.dispose(r),i.groupViews.delete(t.id),i.doUpdateMostRecentActive(t)}),t},t.prototype.doSetGroupActive=function(e){if(this._activeGroup!==e){var t=this._activeGroup;if(this._activeGroup=e,this.doUpdateMostRecentActive(e,!0),t&&t.setActive(!1),e.setActive(!0),this.gridWidget){var i=this.gridWidget.getViewSize2(e);i.width!==e.minimumWidth&&i.height!==e.minimumHeight||this.arrangeGroups(0)}this._onDidActiveGroupChange.fire(e)}},t.prototype.doUpdateMostRecentActive=function(e,t){var i=this.mostRecentActiveGroups.indexOf(e.id);-1!==i&&this.mostRecentActiveGroups.splice(i,1),t&&this.mostRecentActiveGroups.unshift(e.id)},t.prototype.toGridViewDirection=function(e){switch(e){case 0:return 0;case 1:return 1;case 2:return 2;case 3:return 3}},t.prototype.toGridViewOrientation=function(e,t){return"number"==typeof e?0===e?1:0:t},t.prototype.removeGroup=function(e){var t=this.assertGroupView(e);if(1!==this.groupViews.size)return t.isEmpty()?this.doRemoveEmptyGroup(t):void this.doRemoveGroupWithEditors(t)},t.prototype.doRemoveGroupWithEditors=function(e){var t,i=this.getGroups(1);t=this._activeGroup===e?i[1]:i[0],this.mergeGroup(e,t)},t.prototype.doRemoveEmptyGroup=function(e){var t=this.shouldRestoreFocus(this.container);if(this._activeGroup===e){var i=this.getGroups(1)[1];this.activateGroup(i)}this.gridWidget.removeView(e,"distribute"),e.dispose(),t&&this._activeGroup.focus(),this.updateGroupLabels(),this.updateContainer(),this.resetPreferredSize(),this._onDidRemoveGroup.fire(e)},t.prototype.moveGroup=function(e,t,i){var n=this.assertGroupView(e),r=this.assertGroupView(t);if(n.id===r.id)throw new Error("Cannot move group into its own");var o=this.shouldRestoreFocus(n.element);return this.gridWidget.moveView(n,"distribute",r,this.toGridViewDirection(i)),o&&n.focus(),this._onDidMoveGroup.fire(n),n},t.prototype.copyGroup=function(e,t,i){var n=this.assertGroupView(e),r=this.assertGroupView(t),o=this.shouldRestoreFocus(n.element),s=this.doAddGroup(r,i,n);return o&&s.focus(),s},t.prototype.mergeGroup=function(e,t,i){var n=this,r=this.assertGroupView(e),o=this.assertGroupView(t),s=i&&"number"==typeof i.index?i.index:o.count;return r.editors.forEach(function(e){var t=!r.isActive(e)||n._activeGroup!==r,a={index:s,inactive:t,preserveFocus:t};i&&0===i.mode?r.copyEditor(e,o,a):r.moveEditor(e,o,a),s++}),r.isEmpty()&&!r.disposed&&this.removeGroup(r),o},t.prototype.assertGroupView=function(e){if("number"==typeof e&&(e=this.getGroup(e)),!e)throw new Error("Invalid editor group provided!");return e},Object.defineProperty(t.prototype,"minimumWidth",{get:function(){return this.centeredLayoutWidget.minimumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximumWidth",{get:function(){return this.centeredLayoutWidget.maximumWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimumHeight",{get:function(){return this.centeredLayoutWidget.minimumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximumHeight",{get:function(){return this.centeredLayoutWidget.maximumHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preferredSize",{get:function(){return this._preferredSize||(this._preferredSize=new r.Dimension(this.gridWidget.minimumWidth,this.gridWidget.minimumHeight)),this._preferredSize},enumerable:!0,configurable:!0}),t.prototype.resetPreferredSize=function(){this._preferredSize=void 0,this._onDidPreferredSizeChange.fire()},Object.defineProperty(t.prototype,"gridSeparatorBorder",{get:function(){return this.theme.getColor(h.EDITOR_GROUP_BORDER)||this.theme.getColor(s.contrastBorder)||I.Color.transparent},enumerable:!0,configurable:!0}),t.prototype.updateStyles=function(){this.container.style.backgroundColor=this.getColor(s.editorBackground);var e={separatorBorder:this.gridSeparatorBorder,background:this.theme.getColor(h.EDITOR_PANE_BACKGROUND)||I.Color.transparent};this.gridWidget.style(e),this.centeredLayoutWidget.styles(e)},t.prototype.createContentArea=function(e,i){return this.element=e,this.container=document.createElement("div"),r.addClass(this.container,"content"),e.appendChild(this.container),this.doCreateGridControl(i),this.centeredLayoutWidget=this._register(new x.CenteredViewLayout(this.container,this.gridWidgetView,this.globalMemento[t.EDITOR_PART_CENTERED_VIEW_STORAGE_KEY])),this._register(this.instantiationService.createInstance(w.EditorDropTarget,this,this.container)),this.container},t.prototype.centerLayout=function(e){this.centeredLayoutWidget.activate(e),this._activeGroup.focus()},t.prototype.isLayoutCentered=function(){return this.centeredLayoutWidget.isActive()},t.prototype.doCreateGridControl=function(e){var t=this;if(e&&!e.restorePreviousState||this.doCreateGridControlWithPreviousState(),!this.gridWidget){var i=this.doCreateGroupView();this.doSetGridWidget(new u.SerializableGrid(i)),this.doSetGroupActive(i)}Promise.all(this.groups.map(function(e){return e.whenRestored})).finally(function(){return t.whenRestoredResolve()}),this.updateContainer()},t.prototype.doCreateGridControlWithPreviousState=function(){var e=this.workspaceMemento[t.EDITOR_PART_UI_STATE_STORAGE_KEY];if(e&&e.serializedGrid)try{this.mostRecentActiveGroups=e.mostRecentActiveGroups,this.doCreateGridControlWithState(e.serializedGrid,e.activeGroup),this._activeGroup.focus()}catch(t){this.handleGridRestoreError(t,e)}},t.prototype.handleGridRestoreError=function(e,t){k.onUnexpectedError(new Error("Error restoring editor grid widget: "+e+" (with state: "+JSON.stringify(t)+")")),this.gridWidget&&this.doSetGridWidget(),this.groupViews.forEach(function(e){return e.dispose()}),this.groupViews.clear(),this._activeGroup=void 0,this.mostRecentActiveGroups=[]},t.prototype.doCreateGridControlWithState=function(e,t,i){var n,r=this;n=i?i.slice(0):[];var o=[],s=u.SerializableGrid.deserialize(e,{fromJSON:function(e){var i;return i=n.length>0?n.shift():r.doCreateGroupView(e),o.push(i),i.id===t&&r.doSetGroupActive(i),i}},{styles:{separatorBorder:this.gridSeparatorBorder}});this._activeGroup||this.doSetGroupActive(o[0]),this.mostRecentActiveGroups.some(function(e){return!r.getGroup(e)})&&(this.mostRecentActiveGroups=o.map(function(e){return e.id})),this.doSetGridWidget(s)},t.prototype.doSetGridWidget=function(e){this.gridWidget&&this.gridWidget.dispose(),this.gridWidget=e,this.gridWidgetView.gridWidget=e,e&&(this._onDidSizeConstraintsChange.input=e.onDidChange),this.onDidSetGridWidget.fire(void 0)},t.prototype.updateContainer=function(){r.toggleClass(this.container,"empty",this.isEmpty())},t.prototype.updateGroupLabels=function(){var e=this;this.getGroups(2).forEach(function(t,i){t.setLabel(e.getGroupLabel(i+1))})},t.prototype.getGroupLabel=function(e){return E.localize(0,null,e)},t.prototype.isEmpty=function(){return 1===this.groupViews.size&&this._activeGroup.isEmpty()},t.prototype.layout=function(t,i){var n=e.prototype.layoutContents.call(this,t,i).contentSize;this.doLayout(n)},t.prototype.doLayout=function(e){this.dimension=e,this.centeredLayoutWidget.layout(this.dimension.width,this.dimension.height),this._onDidLayout.fire(e)},t.prototype.saveState=function(){if(this.gridWidget){var i={serializedGrid:this.gridWidget.serialize(),activeGroup:this._activeGroup.id,mostRecentActiveGroups:this.mostRecentActiveGroups};this.isEmpty()?delete this.workspaceMemento[t.EDITOR_PART_UI_STATE_STORAGE_KEY]:this.workspaceMemento[t.EDITOR_PART_UI_STATE_STORAGE_KEY]=i}var n=this.centeredLayoutWidget.state;this.centeredLayoutWidget.isDefault(n)?delete this.globalMemento[t.EDITOR_PART_CENTERED_VIEW_STORAGE_KEY]:this.globalMemento[t.EDITOR_PART_CENTERED_VIEW_STORAGE_KEY]=n,e.prototype.saveState.call(this)},t.prototype.dispose=function(){this.groupViews.forEach(function(e){return e.dispose()}),this.groupViews.clear(),this.gridWidget&&this.gridWidget.dispose(),e.prototype.dispose.call(this)},t.prototype.toJSON=function(){return{type:"workbench.parts.editor"}},t.EDITOR_PART_UI_STATE_STORAGE_KEY="editorpart.state",t.EDITOR_PART_CENTERED_VIEW_STORAGE_KEY="editorpart.centeredview",t=p([f(0,l.IInstantiationService),f(1,i.IThemeService),f(2,y.IConfigurationService),f(3,S.IStorageService),f(4,L.IWorkbenchLayoutService)],t)}(n.Part);t.EditorPart=O,M.registerSingleton(c.IEditorGroupsService,O)}),define(i[1206],n([0,1,521,19,29,1203,159,73,38,82,66,927,40,51,37,44,6,5,16,22,79,28,7,76,15,57,39,715]),function(e,t,i,n,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var O=function(e){function t(i,r,o,s,a,c,u,d,h,p){var f=e.call(this,i,r,o,s,a,c,u,d,n.Registry.as(l.Extensions.Viewlets),t.activeViewletSettingsKey,n.Registry.as(l.Extensions.Viewlets).getDefaultViewletId(),"sideBar","viewlet",I.SIDE_BAR_TITLE_FOREGROUND,"workbench.parts.sidebar",{hasTitle:!0,borderWidth:function(){return f.getColor(I.SIDE_BAR_BORDER)||f.getColor(E.contrastBorder)?1:0}})||this;return f.extensionService=p,f.minimumWidth=170,f.maximumWidth=Number.POSITIVE_INFINITY,f.minimumHeight=0,f.maximumHeight=Number.POSITIVE_INFINITY,f.snapSize=50,f.priority=1,f._onDidViewletDeregister=f._register(new C.Emitter),f.viewletRegistry=n.Registry.as(l.Extensions.Viewlets),f.sideBarFocusContextKey=v.SidebarFocusContext.bindTo(h),f.activeViewletContextKey=v.ActiveViewletContext.bindTo(h),f.registerListeners(),f}return a(t,e),Object.defineProperty(t.prototype,"onDidViewletRegister",{get:function(){return this.viewletRegistry.onDidRegister},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidViewletDeregister",{get:function(){return this._onDidViewletDeregister.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidViewletOpen",{get:function(){return C.Event.map(this.onDidCompositeOpen.event,function(e){return e.composite})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidViewletClose",{get:function(){return this.onDidCompositeClose.event},enumerable:!0,configurable:!0}),t.prototype.registerListeners=function(){var e=this;this._register(this.onDidViewletOpen(function(t){e.activeViewletContextKey.set(t.getId())})),this._register(this.onDidViewletClose(function(t){e.activeViewletContextKey.get()===t.getId()&&e.activeViewletContextKey.reset()})),this._register(this.registry.onDidDeregister(function(t){return r(e,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return this.getActiveViewlet().getId()!==t.id?[3,2]:[4,this.openViewlet(this.getDefaultViewletId())];case 1:e.sent(),e.label=2;case 2:return this.removeComposite(t.id),this._onDidViewletDeregister.fire(t),[2]}})})}))},t.prototype.create=function(t){var i=this;this.element=t,e.prototype.create.call(this,t);var n=this._register(D.trackFocus(t));this._register(n.onDidFocus(function(){return i.sideBarFocusContextKey.set(!0)})),this._register(n.onDidBlur(function(){return i.sideBarFocusContextKey.set(!1)}))},t.prototype.createTitleArea=function(t){var i=this,n=e.prototype.createTitleArea.call(this,t);return this._register(D.addDisposableListener(n,D.EventType.CONTEXT_MENU,function(e){i.onTitleAreaContextMenu(new k.StandardMouseEvent(e))})),n},t.prototype.updateStyles=function(){e.prototype.updateStyles.call(this);var t=this.getContainer();t.style.backgroundColor=this.getColor(I.SIDE_BAR_BACKGROUND),t.style.color=this.getColor(I.SIDE_BAR_FOREGROUND);var i=this.getColor(I.SIDE_BAR_BORDER)||this.getColor(E.contrastBorder),n=0===this.layoutService.getSideBarPosition();t.style.borderRightWidth=i&&n?"1px":null,t.style.borderRightStyle=i&&n?"solid":null,t.style.borderRightColor=n?i:null,t.style.borderLeftWidth=i&&!n?"1px":null,t.style.borderLeftStyle=i&&!n?"solid":null,t.style.borderLeftColor=n?null:i},t.prototype.layout=function(t,i){this.layoutService.isVisible("workbench.parts.sidebar")&&e.prototype.layout.call(this,t,i)},t.prototype.getActiveViewlet=function(){return this.getActiveComposite()},t.prototype.getLastActiveViewletId=function(){return this.getLastActiveCompositetId()},t.prototype.hideActiveViewlet=function(){this.hideActiveComposite()},t.prototype.openViewlet=function(e,t){var i=this;return"string"==typeof e&&this.getViewlet(e)?Promise.resolve(this.doOpenViewlet(e,t)):this.extensionService.whenInstalledExtensionsRegistered().then(function(){return"string"==typeof e&&i.getViewlet(e)?i.doOpenViewlet(e,t):null})},t.prototype.getViewlets=function(){return this.viewletRegistry.getViewlets().sort(function(e,t){return e.order-t.order})},t.prototype.getDefaultViewletId=function(){return this.viewletRegistry.getDefaultViewletId()},t.prototype.getViewlet=function(e){return this.getViewlets().filter(function(t){return t.id===e})[0]},t.prototype.doOpenViewlet=function(e,t){if(this.blockOpeningViewlet)return null;if(!this.layoutService.isVisible("workbench.parts.sidebar"))try{this.blockOpeningViewlet=!0,this.layoutService.setSideBarHidden(!1)}finally{this.blockOpeningViewlet=!1}return this.openComposite(e,t)},t.prototype.getTitleAreaDropDownAnchorAlignment=function(){return 0===this.layoutService.getSideBarPosition()?0:1},t.prototype.onTitleAreaContextMenu=function(e){var t=this,i=this.getActiveViewlet();if(i){var n=i?i.getContextMenuActions():[];if(n.length){var r={x:e.posx,y:e.posy};this.contextMenuService.showContextMenu({getAnchor:function(){return r},getActions:function(){return n},getActionItem:function(e){return t.actionItemProvider(e)},actionRunner:i.getActionRunner()})}}},t.prototype.toJSON=function(){return{type:"workbench.parts.sidebar"}},t.activeViewletSettingsKey="workbench.sidebar.activeviewletid",t=p([f(0,x.INotificationService),f(1,m.IStorageService),f(2,b.ITelemetryService),f(3,y.IContextMenuService),f(4,g.IWorkbenchLayoutService),f(5,_.IKeybindingService),f(6,S.IInstantiationService),f(7,w.IThemeService),f(8,L.IContextKeyService),f(9,M.IExtensionService)],t)}(c.CompositePart);t.SidebarPart=O;var T=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.viewletService=n,o.layoutService=r,o}return a(t,e),t.prototype.run=function(){if(!this.layoutService.isVisible("workbench.parts.sidebar"))return Promise.resolve(this.layoutService.setSideBarHidden(!1));var e=this.viewletService.getActiveViewlet();return e&&e.focus(),Promise.resolve(!0)},t.ID="workbench.action.focusSideBar",t.LABEL=i.localize(0,null),t=p([f(2,h.IViewletService),f(3,g.IWorkbenchLayoutService)],t)}(s.Action);n.Registry.as(u.Extensions.WorkbenchActions).registerWorkbenchAction(new d.SyncActionDescriptor(T,T.ID,T.LABEL,{primary:2069}),"View: Focus into Side Bar",i.localize(1,null)),R.registerSingleton(h.IViewletService,O)}),define(i[1207],n([0,1,1206,28,40,37,51,44,6,16,15,128,70,66,57]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var y=function(e){function t(t,i,n,r,o,s,a,c,l,u,d){var h=e.call(this,t,i,n,r,o,s,a,c,l,u)||this;return h.codesandboxService=d,h}return a(t,e),t.prototype.openViewlet=function(e,t){switch(this.layoutService.isVisible("workbench.parts.sidebar")||this.layoutService.setSideBarHidden(!1),e){case g.VIEWLET_ID:this.codesandboxService.runSignal("workspace.setWorkspaceItem",{item:"files"});default:console.warn("Unknown viewlet id: "+e)}return Promise.resolve(null)},t=p([f(0,n.INotificationService),f(1,r.IStorageService),f(2,o.ITelemetryService),f(3,s.IContextMenuService),f(4,v.IWorkbenchLayoutService),f(5,c.IKeybindingService),f(6,l.IInstantiationService),f(7,u.IThemeService),f(8,d.IContextKeyService),f(9,m.IExtensionService),f(10,h.ICodeSandboxService)],t)}(i.SidebarPart);t.CodeSandboxSidebarPart=y}),define(i[1208],n([0,1,40,94,26,43,111,167,145,98,82,267,152,795,652,1231,779,102,760,85,761,39,756,773,776,759,805,117,1059,765,735,766,867,758,767,653,1172,1163,128,452,28,724,790,1133,226,863,120,6,16,18,293,777,22,79,438,870,262,794,1095,1207,349,269,109,317,51,859,19,115,34,165,441,37,748]),function(e,t,i,n,s,a,c,l,u,d,h,p,f,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F,W,B,V,z,H,K,U,j,G,q,Y,$,Q,X,Z,J,ee,te,ie,ne,re,oe,se,ae,ce,le,ue,de,he,pe,fe,ge,ve,me,ye,be,_e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadCodesandboxServices=function(e,t,Q){return r(this,void 0,void 0,function(){var r,ee,te,Se;return o(this,function(o){for(e.set(S.ILifecycleService,new L.SyncDescriptor(C.CodeSandboxLifecycleService)),e.set(a.IWindowService,new L.SyncDescriptor(P.WindowService,[{}])),e.set(G.IURLService,new L.SyncDescriptor(q.URLService)),e.set(ie.IMenubarService,new L.SyncDescriptor(ne.MenubarService)),e.set(be.ITelemetryService,new L.SyncDescriptor(_e.CodeSandboxTelemetryService)),r=w.getServices(),ee=0,te=r;ee .shadow.top {\n\t\t\t\tbox-shadow: "+a+" 0 6px 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-shell .monaco-scrollable-element > .shadow.left {\n\t\t\t\tbox-shadow: "+a+" 6px 0 6px -6px inset;\n\t\t\t}\n\n\t\t\t.monaco-shell .monaco-scrollable-element > .shadow.top.left {\n\t\t\t\tbox-shadow: "+a+" 6px 6px 6px -6px inset;\n\t\t\t}\n\t\t");var c=e.getColor(ee.scrollbarSliderBackground);c&&t.addRule("\n\t\t\t.monaco-shell .monaco-scrollable-element > .scrollbar > .slider {\n\t\t\t\tbackground: "+c+";\n\t\t\t}\n\t\t");var l=e.getColor(ee.scrollbarSliderHoverBackground);l&&t.addRule("\n\t\t\t.monaco-shell .monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\t\t\tbackground: "+l+";\n\t\t\t}\n\t\t");var u=e.getColor(ee.scrollbarSliderActiveBackground);u&&t.addRule("\n\t\t\t.monaco-shell .monaco-scrollable-element > .scrollbar > .slider.active {\n\t\t\t\tbackground: "+u+";\n\t\t\t}\n\t\t");var d=e.getColor(ee.focusBorder);d&&t.addRule('\n\t\t.monaco-shell [tabindex="0"]:focus,\n\t\t.monaco-shell .synthetic-focus,\n\t\t.monaco-shell select:focus,\n\t\t.monaco-shell .monaco-tree.focused.no-focused-item:focus:before,\n\t\t.monaco-shell .monaco-list:not(.element-focused):focus:before,\n\t\t.monaco-shell input[type="button"]:focus,\n\t\t.monaco-shell input[type="text"]:focus,\n\t\t.monaco-shell button:focus,\n\t\t.monaco-shell textarea:focus,\n\t\t.monaco-shell input[type="search"]:focus,\n\t\t.monaco-shell input[type="checkbox"]:focus {\n\t\t\toutline-color: '+d+";\n\t\t}\n\t\t"),e.type===Q.HIGH_CONTRAST&&t.addRule('\n\t\t.monaco-shell.hc-black [tabindex="0"]:focus,\n\t\t.monaco-shell.hc-black .synthetic-focus,\n\t\t.monaco-shell.hc-black select:focus,\n\t\t.monaco-shell.hc-black input[type="button"]:focus,\n\t\t.monaco-shell.hc-black input[type="text"]:focus,\n\t\t.monaco-shell.hc-black textarea:focus,\n\t\t.monaco-shell.hc-black input[type="checkbox"]:focus {\n\t\t\toutline-style: solid;\n\t\t\toutline-width: 1px;\n\t\t}\n\n\t\t.monaco-shell.hc-black .monaco-tree.focused.no-focused-item:focus:before {\n\t\t\toutline-width: 1px;\n\t\t\toutline-offset: -2px;\n\t\t}\n\n\t\t.monaco-shell.hc-black .synthetic-focus input {\n\t\t\tbackground: transparent; /* Search input focus fix when in high contrast */\n\t\t}\n\t\t')})}),define(i[1210],n([0,1,10,441,121,6,15,18,1208,148,32,94,721,91,64,78,377,45,762,19,73,38,29,1148,710,691]),function(e,t,i,n,s,c,l,u,d,h,p,f,g,v,m,y,b,_,S,C,w,E,I,x,D){"use strict";function k(e,t,i){var n=new x.WorkspaceService(t);return n.initialize(e).then(function(){return n},function(e){return i.error(e),n})}Object.defineProperty(t,"__esModule",{value:!0});var L=new g.MarkerService;function M(){return r(this,void 0,void 0,function(){var e,t,i,r,a,d;return o(this,function(o){switch(o.label){case 0:return e=new h.ServiceCollection,t=new D.InstantiationService(e,!0),i=new m.NullLogService,e.set(m.ILogService,i),r=t.createInstance(S.CodeSandboxEnvironmentService),e.set(_.IEnvironmentService,r),[4,k(F(),r,i)];case 1:return a=o.sent(),e.set(p.IWorkspaceContextService,a),e.set(c.IInstantiationService,t),e.set(u.IConfigurationService,a),e.set(f.IDialogService,new n.SimpleDialogService),e.set(s.IMarkerService,L),e.set(v.IProgressService,new n.SimpleProgressService),d=new b.ContextKeyService(a),e.set(l.IContextKeyService,d),e.set(y.IListService,new y.ListService(d)),[2,{serviceCollection:e,instantiationService:t}]}})})}function R(e,t,i){!function(e,t,i){r(this,void 0,void 0,function(){var e,n,r;return o(this,function(o){switch(o.label){case 0:return[4,M()];case 1:return e=o.sent(),n=e.serviceCollection,r=e.instantiationService,t?[4,d.loadCodesandboxServices(n,r,t)]:[3,3];case 2:o.sent(),o.label=3;case 3:return i({serviceCollection:n}),[2]}})})}(0,t,i)}t.create=R;var O=function(e,t,i){var n;return(n=function(t){function i(e,i){return t.call(this,e,i)||this}return a(i,t),i.prototype.run=function(){return e()},i}(I.Action)).ID=t,n.LABEL=i,n},T=C.Registry.as(w.Extensions.WorkbenchActions);function P(e){var t=e.id,i=e.label,n=e.commandLabel,r=e.run,o=e.category,s=void 0===o?"CodeSandbox":o,a=e.keybindings,c=void 0===a?{primary:0}:a;T.registerWorkbenchAction(new E.SyncActionDescriptor(O(r,t,n||i),t,i,c),i,s)}function A(e,t){var i=t.group,n=t.command,r=t.order;E.MenuRegistry.appendMenuItem(e,{group:i,command:n,order:r})}function N(e,t,i){e&&L.changeOne(t,e.uri,i)}function F(){var e=i.URI.file("/sandbox");return{id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82"+Math.floor(1e3*Math.random()),folder:e}}t.addWorkbenchActions=P,t.appendMenuItem=A,t.setModelMarkers=N,t.getDefaultWorkspace=F,t.createMonacoEditorAPI=function(){return{create:R,addWorkbenchActions:P,appendMenuItem:A,setModelMarkers:N,getDefaultWorkspace:F}}}),define(i[1211],n([0,1,419,1210,30,110]),function(e,t,i,n,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=self;o.EDITOR_DEFAULTS.wrappingIndent=0,o.EDITOR_DEFAULTS.viewInfo.glyphMargin=!1,o.EDITOR_DEFAULTS.autoIndent=!1;var a=s.monaco||i.createMonacoBaseAPI();a.editor=n.createMonacoEditorAPI(),a.languages={registerDocumentFormattingEditProvider:function(e,t){return r.DocumentFormattingEditProviderRegistry.register(e,t)}},t.CancellationTokenSource=a.CancellationTokenSource,t.Emitter=a.Emitter,t.KeyCode=a.KeyCode,t.KeyMod=a.KeyMod,t.Position=a.Position,t.Range=a.Range,t.Selection=a.Selection,t.SelectionDirection=a.SelectionDirection,t.MarkerSeverity=a.MarkerSeverity,t.MarkerTag=a.MarkerTag,t.Promise=a.Promise,t.Uri=a.Uri,t.Token=a.Token,t.editor=a.editor,t.languages=a.languages,s.monaco=a,void 0!==s.require&&"function"==typeof s.require.config&&s.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})}),define(i[1212],n([0,1,628,2,91,82,193,13,267,28,29,5,39,740]),function(e,t,i,n,r,o,s,c,l,u,d,h,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(){function e(e,t,i,n){this._activityBar=e,this._viewletService=t,this._notificationService=i,this._statusbarService=n,this._stack=[]}return e.prototype.withProgress=function(e,t,i){var n=e.location;if("string"==typeof n)return this._viewletService.getViewlet(n)?this._withViewletProgress(n,t):Promise.reject(new Error("Bad progress location: "+n));switch(n){case 15:return this._withNotificationProgress(e,t,i);case 10:return this._withWindowProgress(e,t);case 1:return this._withViewletProgress("workbench.view.explorer",t);case 3:return this._withViewletProgress("workbench.view.scm",t);case 5:return this._withViewletProgress("workbench.view.extensions",t);default:return Promise.reject(new Error("Bad progress location: "+n))}},e.prototype._withWindowProgress=function(e,t){var i=this,n=[e,new r.Progress(function(){return i._updateWindowProgress()})],o=t(n[1]),s=setTimeout(function(){s=void 0,i._stack.unshift(n),i._updateWindowProgress(),Promise.all([c.timeout(150),o]).finally(function(){var e=i._stack.indexOf(n);i._stack.splice(e,1),i._updateWindowProgress()})},150);return o.finally(function(){return clearTimeout(s)})},e.prototype._updateWindowProgress=function(e){if(void 0===e&&(e=0),n.dispose(this._globalStatusEntry),e=0?(e.progress.total(100),e.progress.worked(t)):e.progress.infinite()},f=function(t,c){if(o){if("string"==typeof t){var f=void 0;f="string"==typeof e.title?e.title+": "+t:t,o.updateMessage(f)}"number"==typeof c&&p(o,c)}else o=function(t,o){if(t){var c={primary:[]};if(e.cancellable){var f=new(function(e){function t(){return e.call(this,"progress.cancel",i.localize(4,null),void 0,!0)||this}return a(t,e),t.prototype.run=function(){return"function"==typeof r&&r(),Promise.resolve(void 0)},t}(d.Action));l.push(f),c.primary.push(f)}var g=s._notificationService.notify({severity:u.Severity.Info,message:t,source:e.source,actions:c});return p(g,o),h.Event.once(g.onDidClose)(function(){n.dispose(l)}),g}}(t,c)};f(e.title);var g=t({report:function(e){f(e.message,e.increment)}});return Promise.all([c.timeout(800),g]).finally(function(){o&&o.close()}),g},e.prototype._withViewletProgress=function(e,t){var i,o=this,s=t(r.emptyProgress),a=this._viewletService.getProgressIndicator(e);a&&a.showWhile(s);var c=setTimeout(function(){c=void 0;var t=o._activityBar.showActivity(e,new l.ProgressBadge(function(){return""}),"progress-badge",100),n=Date.now();i={dispose:function(){var e=Date.now()-n;e<300?setTimeout(function(){return t.dispose()},300-e):t.dispose()}}},300),u=function(){clearTimeout(c),n.dispose(i)};return s.then(u,u),s},e=p([f(0,l.IActivityService),f(1,o.IViewletService),f(2,u.INotificationService),f(3,s.IStatusbarService)],e)}();t.ProgressService2=v,g.registerSingleton(r.IProgressService2,v,!0)}),define(i[173],n([0,1,6]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkspaceEditingService=i.createDecorator("workspaceEditingService")}),define(i[1214],n([0,1,11,2,10,495,31,103,6,67,109,193,43,32,55,295,57,50,173,52]),function(e,t,i,n,s,a,c,l,u,d,h,g,v,m,y,b,_,S,C,w){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var E=function(){function e(e,t,i,n,r,o,s,a,c){var l=this;this._searchService=t,this._contextService=i,this._textFileService=n,this._workspaceEditingService=r,this._statusbarService=o,this._windowService=s,this._instantiationService=a,this._labelService=c,this._toDispose=[],this._activeCancelTokens=Object.create(null),this._queryBuilder=this._instantiationService.createInstance(b.QueryBuilder),this._proxy=e.getProxy(w.ExtHostContext.ExtHostWorkspace),this._contextService.getCompleteWorkspace().then(function(e){return l._proxy.$initializeWorkspace(l.getWorkspaceData(e))}),this._contextService.onDidChangeWorkspaceFolders(this._onDidChangeWorkspace,this,this._toDispose),this._contextService.onDidChangeWorkbenchState(this._onDidChangeWorkspace,this,this._toDispose)}return e.prototype.dispose=function(){for(var e in n.dispose(this._toDispose),this._activeCancelTokens){this._activeCancelTokens[e].cancel()}},e.prototype.$updateWorkspaceFolders=function(e,t,i,n){var r=n.map(function(e){return{uri:s.URI.revive(e.uri),name:e.name}});return this._statusbarService.setStatusMessage(this.getStatusMessage(e,r.length,i),1e4),this._workspaceEditingService.updateFolders(t,i,r,!0)},e.prototype.getStatusMessage=function(e,t,i){var n=t>0,r=i>0;return n&&!r?1===t?a.localize(0,null,e):a.localize(1,null,e,t):r&&!n?1===i?a.localize(2,null,e):a.localize(3,null,e,i):a.localize(4,null,e)},e.prototype._onDidChangeWorkspace=function(){this._proxy.$acceptWorkspaceData(this.getWorkspaceData(this._contextService.getWorkspace()))},e.prototype.getWorkspaceData=function(e){return 1===this._contextService.getWorkbenchState()?null:{configuration:e.configuration||void 0,folders:e.folders,id:e.id,name:this._labelService.getWorkspaceLabel(e)}},e.prototype.$startFileSearch=function(e,t,n,r,o){var a=s.URI.revive(t),c=this._contextService.getWorkspace();if(!c.folders.length)return Promise.resolve(void 0);var l=this._queryBuilder.file(a?[a]:c.folders.map(function(e){return e.uri}),{maxResults:r,disregardExcludeSettings:!1===n||void 0,disregardSearchExcludeSettings:!0,disregardIgnoreFiles:!0,includePattern:e,excludePattern:"string"==typeof n?n:void 0,_reason:"startFileSearch"});return this._searchService.fileSearch(l,o).then(function(e){return e.results.map(function(e){return e.resource})},function(e){if(!i.isPromiseCanceledError(e))return Promise.reject(e)})},e.prototype.$startTextSearch=function(e,t,n,r){var o=this,s=this._contextService.getWorkspace().folders.map(function(e){return e.uri}),a=this._queryBuilder.text(e,s,t);a._reason="startTextSearch";return this._searchService.textSearch(a,r,function(e){e.results&&o._proxy.$handleTextSearchResult(e,n)}).then(function(e){return{limitHit:e.limitHit}},function(e){if(!i.isPromiseCanceledError(e))return Promise.reject(e)})},e.prototype.$checkExists=function(e,t){var n=this._instantiationService.createInstance(b.QueryBuilder),r=this._contextService.getWorkspace().folders.map(function(e){return e.uri}),o=n.file(r,{_reason:"checkExists",includePattern:e.join(", "),expandPatterns:!0,exists:!0});return this._searchService.fileSearch(o,t).then(function(e){return e.limitHit},function(e){if(!i.isPromiseCanceledError(e))return Promise.reject(e)})},e.prototype.$saveAll=function(e){return this._textFileService.saveAll(e).then(function(e){return e.results.every(function(e){return!0===e.success})})},e.prototype.$resolveProxy=function(e){return this._windowService.resolveProxy(e)},e=p([y.extHostNamedCustomer(w.MainContext.MainThreadWorkspace),f(1,h.ISearchService),f(2,m.IWorkspaceContextService),f(3,S.ITextFileService),f(4,C.IWorkspaceEditingService),f(5,g.IStatusbarService),f(6,v.IWindowService),f(7,u.IInstantiationService),f(8,d.ILabelService)],e)}();t.MainThreadWorkspace=E,c.CommandsRegistry.registerCommand("_workbench.enterWorkspace",function(e,t,i){return r(this,void 0,void 0,function(){var n,r,s,a;return o(this,function(o){switch(o.label){case 0:return n=e.get(C.IWorkspaceEditingService),r=e.get(_.IExtensionService),s=e.get(v.IWindowService),i&&i.length?[4,r.getExtensions()]:[3,2];case 1:if(a=o.sent(),i&&a.some(function(e){return i.some(function(t){return l.ExtensionIdentifier.equals(e.identifier,t)})}))return[2,s.openWindow([{uri:t,typeHint:"file"}],{args:{_:[],"disable-extension":i}})];o.label=2;case 2:return[2,n.enterWorkspace(t)]}})})})}),define(i[1215],n([0,1,115,19,6,382,1156,1120,985,1019,1020,1021,1022,1023,1024,1025,1026,439,1174,387,388,1029,1046,1030,1122,389,1032,1033,1035,1036,1037,1152,1038,1039,1040,1034,1085,1041,1042,1214]),function(e,t,i,n,r,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e){this.instantiationService=e,this.instantiationService.createInstance(o.JSONValidationExtensionPoint),this.instantiationService.createInstance(s.ColorExtensionPoint),this.instantiationService.createInstance(a.LanguageConfigurationFileHandler)}return e=p([f(0,r.IInstantiationService)],e)}();t.ExtensionPoints=c,n.Registry.as(i.Extensions.Workbench).registerWorkbenchContribution(c,1)}),define(i[453],n([0,1,498,32,173,21,82,36,81,31,26,67,87,129,42,46,94]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f,g,v){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ADD_ROOT_FOLDER_COMMAND_ID="addRootFolder",t.ADD_ROOT_FOLDER_LABEL=i.localize(0,null),t.PICK_WORKSPACE_FOLDER_COMMAND_ID="_workbench.pickWorkspaceFolder",l.CommandsRegistry.registerCommand({id:"workbench.action.files.openFileFolderInNewWindow",handler:function(e){return e.get(v.IFileDialogService).pickFileFolderAndOpen({forceNewWindow:!0})}}),l.CommandsRegistry.registerCommand({id:"_files.pickFolderAndOpen",handler:function(e,t){return e.get(v.IFileDialogService).pickFolderAndOpen({forceNewWindow:t})}}),l.CommandsRegistry.registerCommand({id:"workbench.action.files.openFolderInNewWindow",handler:function(e){return e.get(v.IFileDialogService).pickFolderAndOpen({forceNewWindow:!0})}}),l.CommandsRegistry.registerCommand({id:"workbench.action.files.openFileInNewWindow",handler:function(e){return e.get(v.IFileDialogService).pickFileAndOpen({forceNewWindow:!0})}}),l.CommandsRegistry.registerCommand({id:"workbench.action.openWorkspaceInNewWindow",handler:function(e){return e.get(v.IFileDialogService).pickWorkspaceAndOpen({forceNewWindow:!0})}}),l.CommandsRegistry.registerCommand({id:t.ADD_ROOT_FOLDER_COMMAND_ID,handler:function(e){var t=e.get(s.IViewletService),n=e.get(r.IWorkspaceEditingService),o=e.get(v.IFileDialogService);return o.showOpenDialog({openLabel:c.mnemonicButtonLabel(i.localize(1,null)),title:i.localize(2,null),canSelectFolders:!0,canSelectMany:!0,defaultUri:o.defaultFolderPath()}).then(function(e){return e&&e.length?n.addFolders(e.map(function(e){return{uri:e}})).then(function(){return t.openViewlet(t.getDefaultViewletId(),!0)}).then(function(){}):null})}}),l.CommandsRegistry.registerCommand(t.PICK_WORKSPACE_FOLDER_COMMAND_ID,function(e,t){var r=e.get(h.IQuickInputService),s=e.get(d.ILabelService),c=e.get(n.IWorkspaceContextService),l=e.get(f.IModelService),v=e.get(g.IModeService),m=c.getWorkspace().folders;if(m.length){var y=m.map(function(e){return{label:e.name,description:s.getUriLabel(o.dirname(e.uri),{relative:!0}),folder:e,iconClasses:p.getIconClasses(l,v,e.uri,u.FileKind.ROOT_FOLDER)}}),b=(t?t[0]:void 0)||Object.create(null);b.activeItem||(b.activeItem=y[0]),b.placeHolder||(b.placeHolder=i.localize(3,null)),"boolean"!=typeof b.matchOnDescription&&(b.matchOnDescription=!0);var _=(t?t[1]:void 0)||a.CancellationToken.None;return r.pick(y,b,_).then(function(e){if(e)return m[y.indexOf(e)]})}})}),define(i[454],n([0,1,29,497,43,32,173,98,24,31,453,94,28]),function(e,t,i,n,r,o,s,c,l,u,d,h,g){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.dialogService=n,r}return a(t,e),t.prototype.run=function(e,t){return this.dialogService.pickFileAndOpen({forceNewWindow:!1,telemetryExtraData:t})},t.ID="workbench.action.files.openFile",t.LABEL=n.localize(0,null),t=p([f(2,h.IFileDialogService)],t)}(i.Action);t.OpenFileAction=v;var m=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.dialogService=n,r}return a(t,e),t.prototype.run=function(e,t){return this.dialogService.pickFolderAndOpen({forceNewWindow:!1,telemetryExtraData:t})},t.ID="workbench.action.files.openFolder",t.LABEL=n.localize(1,null),t=p([f(2,h.IFileDialogService)],t)}(i.Action);t.OpenFolderAction=m;var y=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.dialogService=n,r}return a(t,e),t.prototype.run=function(e,t){return this.dialogService.pickFileFolderAndOpen({forceNewWindow:!1,telemetryExtraData:t})},t.ID="workbench.action.files.openFileFolder",t.LABEL=n.localize(2,null),t=p([f(2,h.IFileDialogService)],t)}(i.Action);t.OpenFileFolderAction=y;var b=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.commandService=n,r}return a(t,e),t.prototype.run=function(){return this.commandService.executeCommand(d.ADD_ROOT_FOLDER_COMMAND_ID)},t.ID="workbench.action.addRootFolder",t.LABEL=d.ADD_ROOT_FOLDER_LABEL,t=p([f(2,u.ICommandService)],t)}(i.Action);t.AddRootFolderAction=b;var _=function(e){function t(t,i,n,r,o){var s=e.call(this,t,i)||this;return s.workspaceEditingService=n,s.contextService=r,s.commandService=o,s}return a(t,e),t.prototype.run=function(){var e=this,t=this.contextService.getWorkbenchState();return 3===t||2===t?this.commandService.executeCommand(d.PICK_WORKSPACE_FOLDER_COMMAND_ID).then(function(t){return!t||e.workspaceEditingService.removeFolders([t.uri]).then(function(){return!0})}):Promise.resolve(!0)},t.ID="workbench.action.removeRootFolder",t.LABEL=n.localize(3,null),t=p([f(2,s.IWorkspaceEditingService),f(3,o.IWorkspaceContextService),f(4,u.ICommandService)],t)}(i.Action);t.GlobalRemoveRootFolderAction=_;var S=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.contextService=n,o.workspaceEditingService=r,o}return a(t,e),t.prototype.run=function(){var e=this;return this.workspaceEditingService.pickNewWorkspacePath().then(function(t){if(t)switch(e.contextService.getWorkbenchState()){case 1:case 2:var i=e.contextService.getWorkspace().folders.map(function(e){return{uri:e.uri}});return e.workspaceEditingService.createAndEnterWorkspace(i,t);case 3:return e.workspaceEditingService.saveAndEnterWorkspace(t)}})},t.ID="workbench.action.saveWorkspaceAs",t.LABEL=n.localize(4,null),t=p([f(2,o.IWorkspaceContextService),f(3,s.IWorkspaceEditingService)],t)}(i.Action);t.SaveWorkspaceAsAction=S;var C=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.dialogService=n,r}return a(t,e),t.prototype.run=function(e,t){return this.dialogService.pickWorkspaceAndOpen({telemetryExtraData:t})},t.ID="workbench.action.openWorkspace",t.LABEL=n.localize(5,null),t=p([f(2,h.IFileDialogService)],t)}(i.Action);t.OpenWorkspaceAction=C;var w=function(e){function t(t,i,n,r,o){var s=e.call(this,t,i)||this;return s.contextService=n,s.notificationService=r,s.windowService=o,s}return a(t,e),t.prototype.run=function(){return 1===this.contextService.getWorkbenchState()?(this.notificationService.info(n.localize(7,null)),Promise.resolve(void 0)):this.windowService.closeWorkspace()},t.ID="workbench.action.closeFolder",t.LABEL=n.localize(6,null),t=p([f(2,o.IWorkspaceContextService),f(3,g.INotificationService),f(4,r.IWindowService)],t)}(i.Action);t.CloseWorkspaceAction=w;var E=function(e){function t(t,i,n,r){var o=e.call(this,t,i)||this;return o.workspaceContextService=n,o.editorService=r,o.enabled=!!o.workspaceContextService.getWorkspace().configuration,o}return a(t,e),t.prototype.run=function(){var e=this.workspaceContextService.getWorkspace().configuration;return e?this.editorService.openEditor({resource:e}):Promise.resolve()},t.ID="workbench.action.openWorkspaceConfigFile",t.LABEL=n.localize(8,null),t=p([f(2,o.IWorkspaceContextService),f(3,l.IEditorService)],t)}(i.Action);t.OpenWorkspaceConfigFileAction=E;var I=function(e){function t(t,i,n,r,o,s){var a=e.call(this,t,i)||this;return a.workspaceContextService=n,a.workspaceEditingService=r,a.windowService=o,a.workspacesService=s,a}return a(t,e),t.prototype.run=function(){var e=this,t=this.workspaceContextService.getWorkspace().folders,i=this.windowService.getConfiguration().remoteAuthority;return this.workspacesService.createUntitledWorkspace(t,i).then(function(t){return e.workspaceEditingService.copyWorkspaceSettings(t).then(function(){return e.windowService.openWindow([{uri:t.configPath,typeHint:"file"}],{forceNewWindow:!0})})})},t.ID="workbench.action.duplicateWorkspaceInNewWindow",t.LABEL=n.localize(9,null),t=p([f(2,o.IWorkspaceContextService),f(3,s.IWorkspaceEditingService),f(4,r.IWindowService),f(5,c.IWorkspacesService)],t)}(i.Action);t.DuplicateWorkspaceInNewWindowAction=I}),define(i[207],n([0,1,547,10,34,43,6,82,32,70,102,50,116,78,31,15,26,80,75,74,54,12,65,13,428,173,139,33,28,48,24,56,67,11,21]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P){"use strict";function A(e,t,i,n,o,s,a,c){function l(e){return e?e.force=!0:e={force:!0},e}if(e&&(o.canHandleResource(e)||e.scheme===D.Schemas.untitled)){if(t||e.scheme===D.Schemas.untitled){var u,d;if(e.scheme===D.Schemas.untitled)u=s.getEncoding(e);else if(o.canHandleResource(e)){var h=a.models.get(e);u=h&&h.getEncoding()}var p=y.getCodeEditor(n.activeTextEditorWidget);if(p){var f=r.toResource(n.activeEditor||null,{supportSideBySide:!0});f&&(o.canHandleResource(f)||e.scheme===D.Schemas.untitled)&&f.toString()===e.toString()&&(d=p.saveViewState())}var g=void 0;return!t&&e.scheme===D.Schemas.untitled&&s.hasAssociatedFilePath(e)?g=a.save(e,i).then(function(t){return t?e.with({scheme:D.Schemas.file}):null}):(i=l(i),g=a.saveAs(e,void 0,i)),g.then(function(t){if(!t||t.toString()===e.toString())return!1;var i={resource:t,encoding:u,options:{pinned:!0,viewState:d||void 0}};return Promise.all(c.groups.map(function(t){return n.replaceEditors([{editor:{resource:e},replacement:i}],t)})).then(function(){return!0})})}var v=n.activeControl,m=v&&v.input&&v.input.getResource();return v&&m&&m.toString()===e.toString()&&v.group.pinEditor(v.input),i=l(i),a.save(e,i)}return Promise.resolve(!1)}function N(e,t,i,n,r){var o=new Map;return r.groups.forEach(function(e){var t=e.activeEditor&&e.activeEditor.getResource();e.editors.forEach(function(n){var r=n.getResource();r&&i.isDirty(r)&&(o.has(e.id)||o.set(e.id,[]),o.get(e.id).push({encoding:i.getEncoding(r),resource:r,options:{inactive:!t||t.toString()!==r.toString(),pinned:!0,preserveFocus:!0,index:e.getIndexOfEditor(n)}}))})}),n.saveAll(e).then(function(e){o.forEach(function(i,n){i.forEach(function(t){var i=e.results.filter(function(e){return e.success&&e.source.toString()===t.resource.toString()}).pop();i&&(t.resource=i.target)}),t.openEditors(i,n)})})}Object.defineProperty(t,"__esModule",{value:!0}),t.REVEAL_IN_OS_COMMAND_ID="revealFileInOS",t.REVEAL_IN_OS_LABEL=S.isWindows?i.localize(0,null):S.isMacintosh?i.localize(1,null):i.localize(2,null),t.REVEAL_IN_EXPLORER_COMMAND_ID="revealInExplorer",t.REVERT_FILE_COMMAND_ID="workbench.action.files.revert",t.OPEN_TO_SIDE_COMMAND_ID="explorer.openToSide",t.SELECT_FOR_COMPARE_COMMAND_ID="selectForCompare",t.COMPARE_SELECTED_COMMAND_ID="compareSelected",t.COMPARE_RESOURCE_COMMAND_ID="compareFiles",t.COMPARE_WITH_SAVED_COMMAND_ID="workbench.files.action.compareWithSaved",t.COPY_PATH_COMMAND_ID="copyFilePath",t.COPY_RELATIVE_PATH_COMMAND_ID="copyRelativeFilePath",t.SAVE_FILE_AS_COMMAND_ID="workbench.action.files.saveAs",t.SAVE_FILE_AS_LABEL=i.localize(3,null),t.SAVE_FILE_COMMAND_ID="workbench.action.files.save",t.SAVE_FILE_LABEL=i.localize(4,null),t.SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID="workbench.action.files.saveWithoutFormatting",t.SAVE_FILE_WITHOUT_FORMATTING_LABEL=i.localize(5,null),t.SAVE_ALL_COMMAND_ID="saveAll",t.SAVE_ALL_LABEL=i.localize(6,null),t.SAVE_ALL_IN_GROUP_COMMAND_ID="workbench.files.action.saveAllInGroup",t.SAVE_FILES_COMMAND_ID="workbench.action.files.saveFiles",t.OpenEditorsGroupContext=new g.RawContextKey("groupFocusedInOpenEditors",!1),t.DirtyEditorContext=new g.RawContextKey("dirtyEditor",!1),t.ResourceSelectedForCompareContext=new g.RawContextKey("resourceSelectedForCompare",!1),t.REMOVE_ROOT_FOLDER_COMMAND_ID="removeRootFolder",t.REMOVE_ROOT_FOLDER_LABEL=i.localize(7,null),t.openWindowCommand=function(e,t,i){var r=e.get(o.IWindowService);Array.isArray(t)?r.openWindow(t.map(function(e){return{uri:"string"==typeof e?n.URI.file(e):e}},{forceNewWindow:i})):t&&r.openWindow(t.urisToOpen,{forceNewWindow:t.forceNewWindow,diffMode:t.diffMode,addMode:t.addMode,forceReuseWindow:t.forceReuseWindow})},f.CommandsRegistry.registerCommand({id:t.REVERT_FILE_COMMAND_ID,handler:function(e,t){var n=e.get(M.IEditorService),r=e.get(d.ITextFileService),o=e.get(k.INotificationService),s=E.getMultiSelectedResources(t,e.get(p.IListService),n).filter(function(e){return e.scheme!==D.Schemas.untitled});return s.length?r.revertAll(s,{force:!0}).then(void 0,function(e){o.error(i.localize(8,null,s.map(function(e){return P.basename(e)}).join(", "),h.toErrorMessage(e,!1)))}):Promise.resolve(!0)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({weight:200,when:l.ExplorerFocusCondition,primary:2051,mac:{primary:259},id:t.OPEN_TO_SIDE_COMMAND_ID,handler:function(e,t){var i=e.get(M.IEditorService),n=e.get(p.IListService),r=e.get(v.IFileService),o=E.getMultiSelectedResources(t,n,i);return o.length?r.resolveFiles(o.map(function(e){return{resource:e}})).then(function(e){var t=e.filter(function(e){return e.success&&!e.stat.isDirectory}).map(function(e){return{resource:e.stat.resource}});return i.openEditors(t,M.SIDE_GROUP)}):Promise.resolve(!0)}});var F,W,B;function V(e,t,n,r){e.length?w.sequence(e.map(function(e){return function(){return t.showItemInFolder(e)}})):r.getWorkspace().folders.length?t.showItemInFolder(r.getWorkspace().folders[0].uri):n.info(i.localize(10,null))}function z(e,t,n,r,o){if(e.length){var s=S.isWindows?"\r\n":"\n",a=e.map(function(e){return o.getUriLabel(e,{relative:t,noPrefix:!0})}).join(s);n.writeText(a)}else r.info(i.localize(11,null))}b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:t.COMPARE_WITH_SAVED_COMMAND_ID,when:void 0,weight:200,primary:_.KeyChord(2089,34),handler:function(e,t){if(!F){var n=e.get(s.IInstantiationService),r=e.get(C.ITextModelService);F=n.createInstance(l.FileOnDiskContentProvider),r.registerTextModelContentProvider("showModifications",F)}var o=e.get(M.IEditorService),a=E.getResourceForCommand(t,e.get(p.IListService),o);if(a&&a.scheme===D.Schemas.file){var c=P.basename(a),u=i.localize(9,null,c,c);return o.openEditor({leftResource:a.with({scheme:"showModifications"}),rightResource:a,label:u}).then(function(){})}return Promise.resolve(!0)}}),f.CommandsRegistry.registerCommand({id:t.SELECT_FOR_COMPARE_COMMAND_ID,handler:function(e,i){var n=e.get(p.IListService);W=E.getResourceForCommand(i,n,e.get(M.IEditorService)),B||(B=t.ResourceSelectedForCompareContext.bindTo(e.get(g.IContextKeyService))),B.set(!0)}}),f.CommandsRegistry.registerCommand({id:t.COMPARE_SELECTED_COMMAND_ID,handler:function(e,t){var i=e.get(M.IEditorService),n=E.getMultiSelectedResources(t,e.get(p.IListService),i);return 2===n.length?i.openEditor({leftResource:n[0],rightResource:n[1]}):Promise.resolve(!0)}}),f.CommandsRegistry.registerCommand({id:t.COMPARE_RESOURCE_COMMAND_ID,handler:function(e,t){var i=e.get(M.IEditorService),n=e.get(p.IListService);return i.openEditor({leftResource:W,rightResource:E.getResourceForCommand(t,n,i)}).then(function(){})}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:t.REVEAL_IN_OS_COMMAND_ID,weight:200,when:L.EditorContextKeys.focus.toNegated(),primary:2608,win:{primary:1584},handler:function(e,t){V(E.getMultiSelectedResources(t,e.get(p.IListService),e.get(M.IEditorService)),e.get(o.IWindowsService),e.get(k.INotificationService),e.get(c.IWorkspaceContextService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({weight:200,when:void 0,primary:_.KeyChord(2089,48),id:"workbench.action.files.revealActiveFileInWindows",handler:function(e){var t=e.get(M.IEditorService).activeEditor;V(t&&t.getResource()?[t.getResource()]:[],e.get(o.IWindowsService),e.get(k.INotificationService),e.get(c.IWorkspaceContextService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({weight:200,when:L.EditorContextKeys.focus.toNegated(),primary:2593,win:{primary:1569},id:t.COPY_PATH_COMMAND_ID,handler:function(e,t){z(E.getMultiSelectedResources(t,e.get(p.IListService),e.get(M.IEditorService)),!1,e.get(u.IClipboardService),e.get(k.INotificationService),e.get(O.ILabelService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({weight:200,when:L.EditorContextKeys.focus.toNegated(),primary:3617,win:{primary:_.KeyChord(2089,3105)},id:t.COPY_RELATIVE_PATH_COMMAND_ID,handler:function(e,t){z(E.getMultiSelectedResources(t,e.get(p.IListService),e.get(M.IEditorService)),!0,e.get(u.IClipboardService),e.get(k.INotificationService),e.get(O.ILabelService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({weight:200,when:void 0,primary:_.KeyChord(2089,46),id:"workbench.action.files.copyPathOfActiveFile",handler:function(e){var t=e.get(M.IEditorService).activeEditor;z(t&&t.getResource()?[t.getResource()]:[],!1,e.get(u.IClipboardService),e.get(k.INotificationService),e.get(O.ILabelService))}}),f.CommandsRegistry.registerCommand({id:t.REVEAL_IN_EXPLORER_COMMAND_ID,handler:function(e,t){var i=e.get(a.IViewletService),n=e.get(c.IWorkspaceContextService),r=e.get(l.IExplorerService),o=E.getResourceForCommand(t,e.get(p.IListService),e.get(M.IEditorService));i.openViewlet(l.VIEWLET_ID,!1).then(function(e){if(n.isInsideWorkspace(o)){var t=e.getExplorerView();t&&(t.setExpanded(!0),r.select(o,!0).then(function(){return t.focus()},T.onUnexpectedError))}else{var i=e.getOpenEditorsView();i&&(i.setExpanded(!0),i.focus())}})}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:t.SAVE_FILE_AS_COMMAND_ID,weight:200,when:void 0,primary:3121,handler:function(e,t){var i=e.get(M.IEditorService);return A(t&&"from"in t&&"menu"===t.from?r.toResource(i.activeEditor):E.getResourceForCommand(t,e.get(p.IListService),i),!0,void 0,i,e.get(v.IFileService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({when:void 0,weight:200,primary:2097,id:t.SAVE_FILE_COMMAND_ID,handler:function(e,t){var i=e.get(M.IEditorService),n=E.getMultiSelectedResources(t,e.get(p.IListService),i);return 1===n.length?A(n[0],!1,void 0,i,e.get(v.IFileService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService)):N(n,i,e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({when:void 0,weight:200,primary:_.KeyChord(2089,49),win:{primary:_.KeyChord(2089,3121)},id:t.SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID,handler:function(e){var t=e.get(M.IEditorService),i=r.toResource(t.activeEditor,{supportSideBySide:!0});if(i)return A(i,!1,{skipSaveParticipants:!0},t,e.get(v.IFileService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),f.CommandsRegistry.registerCommand({id:t.SAVE_ALL_COMMAND_ID,handler:function(e){return N(!0,e.get(M.IEditorService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),f.CommandsRegistry.registerCommand({id:t.SAVE_ALL_IN_GROUP_COMMAND_ID,handler:function(e,t,i){var n,o=x.getMultiSelectedEditorContexts(i,e.get(p.IListService),e.get(R.IEditorGroupsService)),s=e.get(R.IEditorGroupsService);if(o.length){var a=e.get(v.IFileService);n=[],o.forEach(function(e){s.getGroup(e.groupId).editors.forEach(function(e){var t=r.toResource(e,{supportSideBySide:!0});t&&(t.scheme===D.Schemas.untitled||a.canHandleResource(t))&&n.push(t)})})}else n=!0;return N(n,e.get(M.IEditorService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),f.CommandsRegistry.registerCommand({id:t.SAVE_FILES_COMMAND_ID,handler:function(e){return N(!1,e.get(M.IEditorService),e.get(m.IUntitledEditorService),e.get(d.ITextFileService),e.get(R.IEditorGroupsService))}}),f.CommandsRegistry.registerCommand({id:t.REMOVE_ROOT_FOLDER_COMMAND_ID,handler:function(e,t){var i=e.get(I.IWorkspaceEditingService),n=e.get(c.IWorkspaceContextService).getWorkspace(),r=E.getMultiSelectedResources(t,e.get(p.IListService),e.get(M.IEditorService)).filter(function(e){return n.folders.some(function(t){return t.uri.toString()===e.toString()})});return i.removeFolders(r)}})}),define(i[218],n([0,1,546,23,12,124,21,10,116,9,29,2,70,50,26,34,80,72,82,6,43,207,65,18,102,46,42,31,78,15,33,94,28,24,139,17,191,11,13,731]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F,W,B,V,z){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NEW_FILE_COMMAND_ID="explorer.newFile",t.NEW_FILE_LABEL=i.localize(0,null),t.NEW_FOLDER_COMMAND_ID="explorer.newFolder",t.NEW_FOLDER_LABEL=i.localize(1,null),t.TRIGGER_RENAME_LABEL=i.localize(2,null),t.MOVE_FILE_TO_TRASH_LABEL=i.localize(3,null),t.COPY_FILE_LABEL=i.localize(4,null),t.PASTE_FILE_LABEL=i.localize(5,null),t.FileCopiedContext=new O.RawContextKey("fileCopied",!1);var H=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r._notificationService=n,r}return a(t,e),Object.defineProperty(t.prototype,"notificationService",{get:function(){return this._notificationService},enumerable:!0,configurable:!0}),t.prototype.onError=function(e){"string"===e.message&&(e=e.message),this._notificationService.error(l.toErrorMessage(e,!1))},t.prototype.onErrorWithRetry=function(e,t){this._notificationService.prompt(A.Severity.Error,l.toErrorMessage(e,!1),[{label:i.localize(6,null),run:function(){return t()}}])},t}(d.Action);t.BaseErrorReportingAction=H;var K=c.URI.file("");function U(e,t){e&&(e.indexOf("/")>=0||e.indexOf("\\")>=0)&&t.refresh()}var j=function(e){function n(i,n,r,o,s){var a=e.call(this,"explorer.newFile",t.NEW_FILE_LABEL,n)||this;return a.getElement=i,a.explorerService=r,a.fileService=o,a.editorService=s,a.toDispose=[],a.class="explorer-action new-file",a.toDispose.push(a.explorerService.onDidChangeEditable(function(e){var t=a.explorerService.isEditable(e);a.enabled=!t})),a}return a(n,e),n.prototype.run=function(){var e,t=this,i=this.getElement();if((e=i?i.isDirectory?i:i.parent:this.explorerService.roots[0]).isReadonly)return Promise.reject(new Error("Parent folder is readonly."));var n=new B.ExplorerItem(K,e,!1);return e.fetchChildren(this.fileService).then(function(){e.addChild(n);var i=function(n){return t.fileService.createFile(s.joinPath(e.resource,n)).then(function(e){return U(n,t.explorerService),t.editorService.openEditor({resource:e.resource,options:{pinned:!0}})},function(e){t.onErrorWithRetry(e,function(){return i(n)})})};t.explorerService.setEditable(n,{validationMessage:function(e){return ue(n,e)},onFinish:function(r,o){e.removeChild(n),t.explorerService.setEditable(n,null),o?i(r):t.explorerService.select(e.resource).then(void 0,V.onUnexpectedError)}})})},n.prototype.dispose=function(){e.prototype.dispose.call(this),h.dispose(this.toDispose)},n.ID="workbench.files.action.createFileFromExplorer",n.LABEL=i.localize(7,null),n=p([f(1,A.INotificationService),f(2,g.IExplorerService),f(3,m.IFileService),f(4,N.IEditorService)],n)}(H);t.NewFileAction=j;var G=function(e){function n(i,n,r,o){var s=e.call(this,"explorer.newFolder",t.NEW_FOLDER_LABEL,n)||this;return s.getElement=i,s.fileService=r,s.explorerService=o,s.toDispose=[],s.class="explorer-action new-folder",s.toDispose.push(s.explorerService.onDidChangeEditable(function(e){var t=s.explorerService.isEditable(e);s.enabled=!t})),s}return a(n,e),n.prototype.run=function(){var e,t=this,i=this.getElement();if((e=i?i.isDirectory?i:i.parent:this.explorerService.roots[0]).isReadonly)return Promise.reject(new Error("Parent folder is readonly."));var n=new B.ExplorerItem(K,e,!0);return e.fetchChildren(this.fileService).then(function(){e.addChild(n);var i=function(n){return t.fileService.createFolder(s.joinPath(e.resource,n)).then(function(e){return U(n,t.explorerService),t.explorerService.select(e.resource,!0)},function(e){t.onErrorWithRetry(e,function(){return i(n)})})};t.explorerService.setEditable(n,{validationMessage:function(e){return ue(n,e)},onFinish:function(r,o){e.removeChild(n),t.explorerService.setEditable(n,null),o?i(r):t.explorerService.select(e.resource).then(void 0,V.onUnexpectedError)}})})},n.prototype.dispose=function(){e.prototype.dispose.call(this),h.dispose(this.toDispose)},n.ID="workbench.files.action.createFolderFromExplorer",n.LABEL=i.localize(8,null),n=p([f(1,A.INotificationService),f(2,m.IFileService),f(3,g.IExplorerService)],n)}(H);t.NewFolderAction=G;var q=function(e){function t(t,i,n){var r=e.call(this,t,i)||this;return r.editorService=n,r}return a(t,e),t.prototype.run=function(){return this.editorService.openEditor({options:{pinned:!0}})},t.ID="workbench.action.files.newUntitledFile",t.LABEL=i.localize(9,null),t=p([f(2,N.IEditorService)],t)}(d.Action);t.GlobalNewUntitledFileAction=q;var Y=function(e){function n(i,n,r,s,a,c,l){var u=e.call(this,"moveFileToTrash",t.MOVE_FILE_TO_TRASH_LABEL,s)||this;return u.elements=i,u.useTrash=n,u.fileService=r,u.dialogService=a,u.textFileService=c,u.configurationService=l,u.useTrash=n&&i.every(function(e){return!o.isUNC(e.resource.fsPath)}),u.enabled=u.elements&&u.elements.every(function(e){return!e.isReadonly}),u}return a(n,e),n.prototype.run=function(){var e,t=this;e=this.useTrash?r.isWindows?i.localize(10,null):i.localize(11,null):i.localize(12,null);var o=s.distinctParents(this.elements,function(e){return e.resource}),a=Promise.resolve(!0),c=this.textFileService.getDirty().filter(function(e){return o.some(function(t){return s.isEqualOrParent(e,t.resource,!r.isLinux)})});if(c.length){var u=void 0;u=o.length>1?i.localize(13,null):o[0].isDirectory?1===c.length?i.localize(14,null):i.localize(15,null,c.length):i.localize(16,null),a=this.dialogService.confirm({message:u,type:"warning",detail:i.localize(17,null),primaryButton:e}).then(function(e){return!!e.confirmed&&(t.skipConfirm=!0,t.textFileService.revertAll(c).then(function(){return!0}))})}return a.then(function(s){if(!s)return null;var a;if(t.skipConfirm||t.useTrash&&!1===t.configurationService.getValue(n.CONFIRM_DELETE_SETTING_KEY))a=Promise.resolve({confirmed:!0});else if(t.useTrash){var c=t.getMoveToTrashMessage(o);a=t.dialogService.confirm({message:c,detail:r.isWindows?i.localize(18,null):i.localize(19,null),primaryButton:e,checkbox:{label:i.localize(20,null)},type:"question"})}else{c=t.getDeleteMessage(o);a=t.dialogService.confirm({message:c,detail:i.localize(21,null),primaryButton:e,type:"warning"})}return a.then(function(e){var s=Promise.resolve(void 0);return e.confirmed&&!0===e.checkboxChecked&&(s=t.configurationService.updateValue(n.CONFIRM_DELETE_SETTING_KEY,!1,1)),s.then(function(){return e.confirmed?Promise.all(o.map(function(e){return t.fileService.del(e.resource,{useTrash:t.useTrash,recursive:!0})})).then(void 0,function(e){var n,o,s;return t.useTrash?(n=r.isWindows?i.localize(22,null):i.localize(23,null),o=i.localize(24,null),s=i.localize(25,null)):(n=l.toErrorMessage(e,!1),s=i.localize(26,null)),t.dialogService.confirm({message:n,detail:o,type:"warning",primaryButton:s}).then(function(e){return e.confirmed?(t.useTrash&&(t.useTrash=!1),t.skipConfirm=!0,t.run()):Promise.resolve(void 0)})}):Promise.resolve(null)})})})},n.prototype.getMoveToTrashMessage=function(e){return this.containsBothDirectoryAndFile(e)?P.getConfirmMessage(i.localize(27,null,e.length),e.map(function(e){return e.resource})):e.length>1?e[0].isDirectory?P.getConfirmMessage(i.localize(28,null,e.length),e.map(function(e){return e.resource})):P.getConfirmMessage(i.localize(29,null,e.length),e.map(function(e){return e.resource})):e[0].isDirectory?i.localize(30,null,e[0].name):i.localize(31,null,e[0].name)},n.prototype.getDeleteMessage=function(e){return this.containsBothDirectoryAndFile(e)?P.getConfirmMessage(i.localize(32,null,e.length),e.map(function(e){return e.resource})):e.length>1?e[0].isDirectory?P.getConfirmMessage(i.localize(33,null,e.length),e.map(function(e){return e.resource})):P.getConfirmMessage(i.localize(34,null,e.length),e.map(function(e){return e.resource})):e[0].isDirectory?i.localize(35,null,e[0].name):i.localize(36,null,e[0].name)},n.prototype.containsBothDirectoryAndFile=function(e){var t=e.filter(function(e){return e.isDirectory}),i=e.filter(function(e){return!e.isDirectory});return t.length>0&&i.length>0},n.CONFIRM_DELETE_SETTING_KEY="explorer.confirmDelete",n=p([f(2,m.IFileService),f(3,A.INotificationService),f(4,P.IDialogService),f(5,v.ITextFileService),f(6,x.IConfigurationService)],n)}(H),$=!1,Q=function(e){function n(i,r,o,s,a){var c=e.call(this,n.ID,t.PASTE_FILE_LABEL,o)||this;return c.element=i,c.fileService=r,c.editorService=s,c.explorerService=a,c.element||(c.element=c.explorerService.roots[0]),c}return a(n,e),n.prototype.run=function(e){var t=this;if(this.element.resource.toString()!==e.toString()&&s.isEqualOrParent(this.element.resource,e,!r.isLinux))throw new Error(i.localize(37,null));return this.fileService.resolveFile(e).then(function(i){var n=X(t.element.resource.toString()===e.toString()?t.element.parent:t.element.isDirectory?t.element:t.element.parent,{resource:e,isDirectory:i.isDirectory,allowOverwirte:$});return($?t.fileService.moveFile(e,n):t.fileService.copyFile(e,n)).then(function(e){if($&&t.explorerService.setToCopy([],!1),!e.isDirectory)return t.editorService.openEditor({resource:e.resource,options:{pinned:!0,preserveFocus:!0}})},function(e){return t.onError(e)})},function(e){t.onError(new Error(i.localize(38,null)))})},n.ID="filesExplorer.paste",n=p([f(1,m.IFileService),f(2,A.INotificationService),f(3,N.IEditorService),f(4,g.IExplorerService)],n)}(H);function X(e,t){for(var i=s.basenameOrAuthority(t.resource),n=s.joinPath(e.resource,i);!t.allowOverwirte&&e.root.find(n);)i=Z(i,!!t.isDirectory),n=s.joinPath(e.resource,i);return n}function Z(e,t){var i=RegExp("(.*[\\.\\-_])(\\d+)(\\..*)$");if(!t&&e.match(i))return e.replace(i,function(e,t,i,n){var r=parseInt(i);return r<1073741824?t+u.pad(r+1,i.length)+n:u.format("{0}{1}.1{2}",t,i,n)});var n=RegExp("(\\d+)([\\.\\-_].*)(\\..*)$");if(!t&&e.match(n))return e.replace(n,function(e,t,i,n){var r=parseInt(t);return r<1073741824?u.pad(r+1,t.length)+i+n:u.format("{0}{1}.1{2}",t,i,n)});var r=RegExp("(\\d+)(\\..*)$");if(!t&&e.match(r))return e.replace(r,function(e,t,i){var n=parseInt(t);return n<1073741824?u.pad(n+1,t.length)+i:u.format("{0}.1{1}",t,i)});var o=e.lastIndexOf(".");return!t&&o>=0?u.format("{0}.1{1}",e.substr(0,o),e.substr(o)):t&&e.match(/(\d+)$/)?e.replace(/(\d+)$/,function(e){for(var t=[],i=1;i255)return i.localize(56,null,de(t));return null}function de(e){return e&&e.length>255?e.substr(0,255)+"...":e}function he(e){return e?(e=u.trim(e,"\t"),e=u.rtrim(e,"."),e=u.rtrim(e,"/"),e=u.rtrim(e,"\\")):e}t.ShowOpenedFileInNewWindow=le,t.validateFileName=ue,t.getWellFormedFileName=he;var pe=function(e){function t(t,i,n,r,o,s){var a=e.call(this,t,i)||this;return a.editorService=n,a.instantiationService=r,a.textModelService=o,a.fileService=s,a.enabled=!0,a}return a(t,e),t.prototype.run=function(){var e=this,n=y.toResource(this.editorService.activeEditor||null,{supportSideBySide:!0});if(n&&(this.fileService.canHandleResource(n)||n.scheme===T.Schemas.untitled)){if(!this.registrationDisposal){var r=this.instantiationService.createInstance(fe);this.registrationDisposal=this.textModelService.registerTextModelContentProvider(t.SCHEME,r)}var o=s.basename(n),a=i.localize(58,null,o);return this.editorService.openEditor({leftResource:n.with({scheme:t.SCHEME}),rightResource:n,label:a}).finally(function(){e.registrationDisposal=h.dispose(e.registrationDisposal)})}return Promise.resolve(!0)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.registrationDisposal=h.dispose(this.registrationDisposal)},t.ID="workbench.files.action.compareWithClipboard",t.LABEL=i.localize(57,null),t.SCHEME="clipboardCompare",t=p([f(2,N.IEditorService),f(3,C.IInstantiationService),f(4,I.ITextModelService),f(5,m.IFileService)],t)}(d.Action);t.CompareWithClipboardAction=pe;var fe=function(){function e(e,t,i){this.clipboardService=e,this.modeService=t,this.modelService=i}return e.prototype.provideTextContent=function(e){var t=this.modelService.createModel(this.clipboardService.readText(),this.modeService.create("text/plain"),e);return Promise.resolve(t)},e=p([f(0,D.IClipboardService),f(1,k.IModeService),f(2,L.IModelService)],e)}();function ge(e){var t=e,i=t.getFocus(),n=i.length?i[0]:void 0,r=t.getSelection();return{stat:n,selection:r&&void 0!==n&&r.indexOf(n)>=0?r:[]}}function ve(e,t){var i=e.get(C.IInstantiationService),n=e.get(R.IListService),r=e.get(S.IViewletService),o=r.getActiveViewlet(),s=Promise.resolve(o);return o&&o.getId()===g.VIEWLET_ID||(s=r.openViewlet(g.VIEWLET_ID,!0)),s.then(function(e){var r=e.getExplorerView();if(r&&r.isBodyVisible()&&n.lastFocusedList){r.focus();var o=ge(n.lastFocusedList).stat;return i.createInstance(t,function(){return o}).run()}})}M.CommandsRegistry.registerCommand({id:t.NEW_FILE_COMMAND_ID,handler:function(e){return ve(e,j)}}),M.CommandsRegistry.registerCommand({id:t.NEW_FOLDER_COMMAND_ID,handler:function(e){return ve(e,G)}}),t.renameHandler=function(e){var t=e.get(R.IListService),i=e.get(g.IExplorerService),n=e.get(v.ITextFileService);if(t.lastFocusedList){var r=ge(t.lastFocusedList).stat;i.setEditable(r,{validationMessage:function(e){return ue(r,e)},onFinish:function(e,t){if(t){var o=r.parent.resource,a=s.joinPath(o,e);n.move(r.resource,a).then(function(){return U(e,i)},V.onUnexpectedError)}i.setEditable(r,null)}})}},t.moveFileToTrashHandler=function(e){var t=e.get(C.IInstantiationService),i=e.get(R.IListService);if(!i.lastFocusedList)return Promise.resolve();var n=ge(i.lastFocusedList),r=n.selection.length>1?n.selection:[n.stat];return t.createInstance(Y,r,!0).run()},t.deleteFileHandler=function(e){var t=e.get(C.IInstantiationService),i=e.get(R.IListService);if(!i.lastFocusedList)return Promise.resolve();var n=ge(i.lastFocusedList),r=n.selection.length>1?n.selection:[n.stat];return t.createInstance(Y,r,!1).run()},t.copyFileHandler=function(e){var t=e.get(R.IListService);if(t.lastFocusedList){var i=ge(t.lastFocusedList),n=e.get(g.IExplorerService),r=i.selection.length>1?i.selection:[i.stat];n.setToCopy(r,!1),$=!1}},t.cutFileHandler=function(e){var t=e.get(R.IListService);if(t.lastFocusedList){var i=ge(t.lastFocusedList),n=e.get(g.IExplorerService),r=i.selection.length>1?i.selection:[i.stat];n.setToCopy(r,!0),$=!0}},t.pasteFileHandler=function(e){var t=e.get(C.IInstantiationService),i=e.get(R.IListService),n=e.get(D.IClipboardService);if(!i.lastFocusedList)return Promise.resolve();var r=ge(i.lastFocusedList);return z.sequence(s.distinctParents(n.readResources(),function(e){return e}).map(function(e){var i=t.createInstance(Q,r.stat);return function(){return i.run(e)}}))}}),define(i[457],n([0,1,549,116,21,29,10,50,6,2,208,65,41,171,168,15,70,200,42,207,53,28,93,40,38,45,5,24,12]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONFLICT_RESOLUTION_CONTEXT="saveConflictResolutionContext",t.CONFLICT_RESOLUTION_SCHEME="conflictResolution";var O=i.localize(0,null),T=function(e){function o(i,n,r,o,s,a,c){var l=e.call(this)||this;l.notificationService=i,l.textFileService=n,l.editorService=o,l.instantiationService=a,l.storageService=c,l.messages=new g.ResourceMap,l.conflictResolutionContext=new y.RawContextKey(t.CONFLICT_RESOLUTION_CONTEXT,!1).bindTo(r);var u=l._register(a.createInstance(b.FileOnDiskContentProvider));return l._register(s.registerTextModelContentProvider(t.CONFLICT_RESOLUTION_SCHEME,u)),d.TextFileEditorModel.setSaveErrorHandler(l),l.registerListeners(),l}return a(o,e),o.prototype.registerListeners=function(){var e=this;this._register(this.textFileService.models.onModelSaved(function(t){return e.onFileSavedOrReverted(t.resource)})),this._register(this.textFileService.models.onModelReverted(function(t){return e.onFileSavedOrReverted(t.resource)})),this._register(this.editorService.onDidActiveEditorChange(function(){return e.onActiveEditorChanged()}))},o.prototype.onActiveEditorChanged=function(){var e,i=!1,n=this.editorService.activeEditor;if(n instanceof v.DiffEditorInput&&n.originalInput instanceof m.ResourceEditorInput&&n.modifiedInput instanceof _.FileEditorInput){var r=n.originalInput.getResource();r&&r.scheme===t.CONFLICT_RESOLUTION_SCHEME&&(i=!0,e=n.modifiedInput.getResource())}this.conflictResolutionContext.set(i),this.activeConflictResolutionResource=e},o.prototype.onFileSavedOrReverted=function(e){var t=this.messages.get(e);t&&(t.close(),this.messages.delete(e))},o.prototype.onSaveError=function(e,t){var o,s=e,a=t.getResource(),c={primary:[],secondary:[]};if(4===s.fileOperationResult)if(this.activeConflictResolutionResource&&this.activeConflictResolutionResource.toString()===t.getResource().toString()){if(this.storageService.getBoolean("learnMoreDirtyWriteError",0))return;o=O,c.primary.push(this.instantiationService.createInstance(N)),c.secondary.push(this.instantiationService.createInstance(F))}else o=i.localize(1,null,r.basename(a)),c.primary.push(this.instantiationService.createInstance(W,t));else{var l=6===s.fileOperationResult,d=l&&s.options&&s.options.overwriteReadonly,h=7===s.fileOperationResult;h||d?c.primary.push(this.instantiationService.createInstance(B,t,d)):l?c.primary.push(this.instantiationService.createInstance(V,t)):c.primary.push(this.instantiationService.createInstance(D.ExecuteCommandAction,C.SAVE_FILE_COMMAND_ID,i.localize(2,null))),c.primary.push(this.instantiationService.createInstance(D.ExecuteCommandAction,C.SAVE_FILE_AS_COMMAND_ID,C.SAVE_FILE_AS_LABEL)),c.primary.push(this.instantiationService.createInstance(D.ExecuteCommandAction,C.REVERT_FILE_COMMAND_ID,i.localize(3,null))),o=l?d?R.isWindows?i.localize(4,null,r.basename(a)):i.localize(5,null,r.basename(a)):i.localize(6,null,r.basename(a)):h?R.isWindows?i.localize(7,null,r.basename(a)):i.localize(8,null,r.basename(a)):i.localize(9,null,r.basename(a),n.toErrorMessage(e,!1))}var p=this.notificationService.notify({severity:E.Severity.Error,message:o,actions:c});L.Event.once(p.onDidClose)(function(){return u.dispose.apply(void 0,c.primary.concat(c.secondary))}),this.messages.set(t.getResource(),p)},o.prototype.dispose=function(){e.prototype.dispose.call(this),this.messages.clear()},o=p([f(0,E.INotificationService),f(1,c.ITextFileService),f(2,y.IContextKeyService),f(3,M.IEditorService),f(4,h.ITextModelService),f(5,l.IInstantiationService),f(6,x.IStorageService)],o)}(u.Disposable);t.SaveErrorHandler=T;var P=[];function A(){for(;P.length>0;){var e=P.pop();e&&e.close()}}var N=function(e){function t(t){var n=e.call(this,"workbench.files.action.resolveConflictLearnMore",i.localize(10,null))||this;return n.openerService=t,n}return a(t,e),t.prototype.run=function(){return this.openerService.open(s.URI.parse("https://go.microsoft.com/fwlink/?linkid=868264"))},t=p([f(0,I.IOpenerService)],t)}(o.Action),F=function(e){function t(t){var n=e.call(this,"workbench.files.action.resolveConflictLearnMoreDoNotShowAgain",i.localize(11,null))||this;return n.storageService=t,n}return a(t,e),t.prototype.run=function(e){return this.storageService.store("learnMoreDirtyWriteError",!0,0),e.dispose(),Promise.resolve()},t=p([f(0,x.IStorageService)],t)}(o.Action),W=function(e){function n(t,n,r,o,s,a){var c=e.call(this,"workbench.files.action.resolveConflict",i.localize(12,null))||this;return c.model=t,c.editorService=n,c.notificationService=r,c.instantiationService=o,c.storageService=s,c.environmentService=a,c}return a(n,e),n.prototype.run=function(){var e=this;if(!this.model.isDisposed()){var n=this.model.getResource(),o=r.basename(n),a=i.localize(13,null,o,o,this.environmentService.appNameLong);return this.editorService.openEditor({leftResource:s.URI.from({scheme:t.CONFLICT_RESOLUTION_SCHEME,path:n.fsPath}),rightResource:n,label:a,options:{pinned:!0}}).then(function(){if(!e.storageService.getBoolean("learnMoreDirtyWriteError",0)){var t={primary:[],secondary:[]};t.primary.push(e.instantiationService.createInstance(N)),t.secondary.push(e.instantiationService.createInstance(F));var i=e.notificationService.notify({severity:E.Severity.Info,message:O,actions:t});L.Event.once(i.onDidClose)(function(){return u.dispose.apply(void 0,t.primary.concat(t.secondary))}),P.push(i)}})}return Promise.resolve(!0)},n=p([f(1,M.IEditorService),f(2,E.INotificationService),f(3,l.IInstantiationService),f(4,x.IStorageService),f(5,k.IEnvironmentService)],n)}(o.Action),B=function(e){function t(t,n){var r=e.call(this,"workbench.files.action.saveElevated",n?R.isWindows?i.localize(14,null):i.localize(15,null):R.isWindows?i.localize(16,null):i.localize(17,null))||this;return r.model=t,r.triedToMakeWriteable=n,r}return a(t,e),t.prototype.run=function(){return this.model.isDisposed()||this.model.save({writeElevated:!0,overwriteReadonly:this.triedToMakeWriteable}),Promise.resolve(!0)},t}(o.Action),V=function(e){function t(t){var n=e.call(this,"workbench.files.action.overwrite",i.localize(18,null))||this;return n.model=t,n}return a(t,e),t.prototype.run=function(){return this.model.isDisposed()||this.model.save({overwriteReadonly:!0}),Promise.resolve(!0)},t}(o.Action);t.acceptLocalChangesCommand=function(e,t){var i=e.get(M.IEditorService),n=e.get(h.ITextModelService),r=e.get(S.IModelService),o=i.activeControl;if(o){var s=o.input,a=o.group;n.createModelReference(t).then(function(e){var t=e.object,n=t.createSnapshot();return A(),t.revert().then(function(){return r.updateModel(t.textEditorModel,w.createTextBufferFactoryFromSnapshot(n)),t.save().then(function(){return i.openEditor({resource:t.getResource()},a).then(function(){a.closeEditor(s),s.dispose(),e.dispose()})})})})}},t.revertLocalChangesCommand=function(e,t){var i=e.get(M.IEditorService),n=e.get(h.ITextModelService),r=i.activeControl;if(r){var o=r.input,s=r.group;n.createModelReference(t).then(function(e){var t=e.object;return A(),t.revert().then(function(){return i.openEditor({resource:t.getResource()},s).then(function(){s.closeEditor(o),o.dispose(),e.dispose()})})})}}}),define(i[1221],n([0,1,10,1112,31,38,15,139,19,73,54,12,457,207,218]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=n.localize(0,null),v=c.Registry.as(l.Extensions.WorkbenchActions);function m(e,t,i,n,a){r.CommandsRegistry.registerCommand(e,a),o.MenuRegistry.appendMenuItem(8,{command:{id:e,title:t,iconLocation:i},when:s.ContextKeyExpr.equals(h.CONFLICT_RESOLUTION_CONTEXT,!0),group:"navigation",order:n})}function y(e,t,i,n){o.MenuRegistry.appendMenuItem(0,{command:{id:e,title:t,category:i},when:n})}v.registerWorkbenchAction(new o.SyncActionDescriptor(f.SaveAllAction,f.SaveAllAction.ID,f.SaveAllAction.LABEL,{primary:void 0,mac:{primary:2609},win:{primary:u.KeyChord(2089,49)}}),"File: Save All",g),v.registerWorkbenchAction(new o.SyncActionDescriptor(f.GlobalCompareResourcesAction,f.GlobalCompareResourcesAction.ID,f.GlobalCompareResourcesAction.LABEL),"File: Compare Active File With...",g),v.registerWorkbenchAction(new o.SyncActionDescriptor(f.CollapseExplorerView,f.CollapseExplorerView.ID,f.CollapseExplorerView.LABEL),"File: Collapse Folders in Explorer",g),v.registerWorkbenchAction(new o.SyncActionDescriptor(f.GlobalNewUntitledFileAction,f.GlobalNewUntitledFileAction.ID,f.GlobalNewUntitledFileAction.LABEL,{primary:2092}),"File: New Untitled File",g),v.registerWorkbenchAction(new o.SyncActionDescriptor(f.ToggleAutoSaveAction,f.ToggleAutoSaveAction.ID,f.ToggleAutoSaveAction.LABEL),"File: Toggle Auto Save",g),m("workbench.files.action.acceptLocalChanges",n.localize(1,null),{light:i.URI.parse(e.toUrl("vs/workbench/contrib/files/browser/media/check.svg")),dark:i.URI.parse(e.toUrl("vs/workbench/contrib/files/browser/media/check-inverse.svg"))},-10,h.acceptLocalChangesCommand),m("workbench.files.action.revertLocalChanges",n.localize(2,null),{light:i.URI.parse(e.toUrl("vs/workbench/contrib/files/browser/media/undo.svg")),dark:i.URI.parse(e.toUrl("vs/workbench/contrib/files/browser/media/undo-inverse.svg"))},-9,h.revertLocalChangesCommand),o.MenuRegistry.appendMenuItem(15,{group:"1_new",command:{id:f.GlobalNewUntitledFileAction.ID,title:n.localize(3,null)},order:1}),o.MenuRegistry.appendMenuItem(15,{group:"4_save",command:{id:p.SAVE_FILE_COMMAND_ID,title:n.localize(4,null)},order:1}),o.MenuRegistry.appendMenuItem(15,{group:"4_save",command:{id:p.SAVE_FILE_AS_COMMAND_ID,title:n.localize(5,null)},order:2}),o.MenuRegistry.appendMenuItem(15,{group:"4_save",command:{id:f.SaveAllAction.ID,title:n.localize(6,null)},order:3}),o.MenuRegistry.appendMenuItem(15,{group:"6_close",command:{id:p.REVERT_FILE_COMMAND_ID,title:n.localize(8,null),precondition:p.DirtyEditorContext},order:1}),o.MenuRegistry.appendMenuItem(15,{group:"6_close",command:{id:a.CLOSE_EDITOR_COMMAND_ID,title:n.localize(9,null)},order:2}),y(p.COPY_PATH_COMMAND_ID,{value:n.localize(10,null),original:"File: Copy Path of Active File"},g),y(p.COPY_RELATIVE_PATH_COMMAND_ID,{value:n.localize(11,null),original:"File: Copy Relative Path of Active File"},g),y(p.SAVE_FILE_COMMAND_ID,{value:p.SAVE_FILE_LABEL,original:"File: Save"},g),y(p.SAVE_FILE_WITHOUT_FORMATTING_COMMAND_ID,{value:p.SAVE_FILE_WITHOUT_FORMATTING_LABEL,original:"File: Save without Formatting"},g),y(p.SAVE_ALL_IN_GROUP_COMMAND_ID,{value:n.localize(12,null),original:"File: Save All in Group"},g),y(p.SAVE_FILES_COMMAND_ID,{value:n.localize(13,null),original:"File: Save All Files"},g),y(p.REVERT_FILE_COMMAND_ID,{value:n.localize(14,null),original:"File: Revert File"},g),y(p.COMPARE_WITH_SAVED_COMMAND_ID,{value:n.localize(15,null),original:"File: Compare Active File with Saved"},g),y(p.REVEAL_IN_OS_COMMAND_ID,{value:p.REVEAL_IN_OS_LABEL,original:d.isWindows?"File: Reveal in Explorer":d.isMacintosh?"File: Reveal in Finder":"File: Open Containing Folder"},g),y(p.SAVE_FILE_AS_COMMAND_ID,{value:p.SAVE_FILE_AS_LABEL,original:"File: Save As..."},g),y(a.CLOSE_EDITOR_COMMAND_ID,{value:n.localize(16,null),original:"View: Close Editor"},n.localize(17,null))}),define(i[1222],n([0,1,550,11,12,7,194,6,454,58,16,44,51,32,18,244,144,22,79]),function(e,t,i,n,r,o,s,c,u,d,h,g,v,m,y,b,_,S,C){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var w=function(e){function t(t,n,r,o,s,a,c){var u=e.call(this,l({},t,{ariaHeaderLabel:i.localize(1,null)}),o,s,c)||this;return u.themeService=n,u.instantiationService=r,u.contextService=a,u.contextService.onDidChangeWorkbenchState(function(){return u.setLabels()}),u}return a(t,e),t.prototype.renderHeader=function(e){var t=document.createElement("div");o.addClass(t,"title"),e.appendChild(t),this.titleElement=document.createElement("span"),this.titleElement.textContent=name,t.appendChild(this.titleElement)},t.prototype.renderBody=function(e){var t=this;o.addClass(e,"explorer-empty-view"),e.tabIndex=0;var i=document.createElement("div");o.addClass(i,"section"),e.appendChild(i),this.messageElement=document.createElement("p"),i.appendChild(this.messageElement),this.button=new s.Button(i),d.attachButtonStyler(this.button,this.themeService),this.disposables.push(this.button.onDidClick(function(){if(t.actionRunner){var e=3===t.contextService.getWorkbenchState()?u.AddRootFolderAction:r.isMacintosh?u.OpenFileFolderAction:u.OpenFolderAction,i=t.instantiationService.createInstance(e,e.ID,e.LABEL);t.actionRunner.run(i).then(function(){i.dispose()},function(e){i.dispose(),n.onUnexpectedError(e)})}})),this.disposables.push(new _.DragAndDropObserver(e,{onDrop:function(i){var n=t.themeService.getTheme().getColor(C.SIDE_BAR_BACKGROUND);e.style.backgroundColor=n?n.toString():"",t.instantiationService.createInstance(_.ResourcesDropHandler,{allowWorkspaceOpen:!0}).handleDrop(i,function(){},function(e){})},onDragEnter:function(i){var n=t.themeService.getTheme().getColor(S.listDropBackground);e.style.backgroundColor=n?n.toString():""},onDragEnd:function(){var i=t.themeService.getTheme().getColor(C.SIDE_BAR_BACKGROUND);e.style.backgroundColor=i?i.toString():""},onDragLeave:function(){var i=t.themeService.getTheme().getColor(C.SIDE_BAR_BACKGROUND);e.style.backgroundColor=i?i.toString():""},onDragOver:function(e){e.dataTransfer.dropEffect="copy"}})),this.setLabels()},t.prototype.setLabels=function(){3===this.contextService.getWorkbenchState()?(this.messageElement.textContent=i.localize(2,null),this.button&&(this.button.label=i.localize(3,null)),this.titleElement.textContent=t.NAME):(this.messageElement.textContent=i.localize(4,null),this.button&&(this.button.label=i.localize(5,null)),this.titleElement.textContent=this.title)},t.prototype.layoutBody=function(e){},t.prototype.focusBody=function(){this.button&&this.button.element.focus()},t.ID="workbench.explorer.emptyView",t.NAME=i.localize(0,null),t=p([f(1,h.IThemeService),f(2,c.IInstantiationService),f(3,g.IKeybindingService),f(4,v.IContextMenuService),f(5,m.IWorkspaceContextService),f(6,y.IConfigurationService)],t)}(b.ViewletPanel);t.EmptyView=w}),define(i[1223],n([0,1,7,119,91,28,26,66,32,2,51,16,18,70,21,126,553,58,315,25,35,191,184,144,6,134,33,177,12,94,50,43,173,13,24,218,84]),function(e,t,i,n,s,a,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F,W,B,V){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var z=function(){function e(){}return e.prototype.getHeight=function(t){return e.ITEM_HEIGHT},e.prototype.getTemplateId=function(e){return K.ID},e.ITEM_HEIGHT=22,e}();t.ExplorerDelegate=z;var H=function(){function e(e,t,i,n){this.progressService=e,this.notificationService=t,this.layoutService=i,this.fileService=n}return e.prototype.hasChildren=function(e){return Array.isArray(e)||e.isDirectory},e.prototype.getChildren=function(e){var t=this;if(Array.isArray(e))return Promise.resolve(e);var i=e.fetchChildren(this.fileService).then(void 0,function(i){return e instanceof I.ExplorerItem&&e.isRoot||t.notificationService.error(i),[]});return this.progressService.showWhile(i,this.layoutService.isRestored()?800:3200),i},e=p([f(0,s.IProgressService),f(1,a.INotificationService),f(2,l.IWorkbenchLayoutService),f(3,c.IFileService)],e)}();t.ExplorerDataSource=H;var K=function(){function e(e,t,i,n,r,o){var s=this;this.labels=e,this.updateWidth=t,this.contextViewService=i,this.themeService=n,this.configurationService=r,this.explorerService=o,this.config=this.configurationService.getValue(),this.configListener=this.configurationService.onDidChangeConfiguration(function(e){e.affectsConfiguration("explorer")&&(s.config=s.configurationService.getValue())})}return Object.defineProperty(e.prototype,"templateId",{get:function(){return e.ID},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){return{elementDisposable:d.Disposable.None,label:this.labels.create(e,{supportHighlights:!0}),container:e}},e.prototype.renderElement=function(e,t,i){var n=this;i.elementDisposable.dispose();var r=e.element,o=this.explorerService.getEditableData(r);if(o)i.label.element.style.display="none",i.elementDisposable=this.renderInputBox(i.container,r,o);else{i.label.element.style.display="flex";var s=["explorer-item"];this.explorerService.isCut(r)&&s.push("cut"),i.label.setFile(r.resource,{hidePath:!0,fileKind:r.isRoot?c.FileKind.ROOT_FOLDER:r.isDirectory?c.FileKind.FOLDER:c.FileKind.FILE,extraClasses:s,fileDecorations:this.config.explorer.decorations,matches:V.createMatches(e.filterData)}),i.elementDisposable=i.label.onDidRender(function(){n.updateWidth(r)})}},e.prototype.renderInputBox=function(e,t,n){var s=this,a=this.labels.create(e),l={hidePath:!0,hideLabel:!0,fileKind:t.isRoot?c.FileKind.ROOT_FOLDER:t.isDirectory?c.FileKind.FOLDER:c.FileKind.FILE,extraClasses:["explorer-item","explorer-item-edited"]},u=t.name?y.dirname(t.resource):t.resource,h=t.name||"";a.setFile(y.joinPath(u,h||" "),l);var p=new b.InputBox(a.element,this.contextViewService,{validationOptions:{validation:function(e){var t=n.validationMessage(e);return t?{content:t,formatContent:!0,type:3}:null}},ariaLabel:_.localize(0,null)}),f=S.attachInputBoxStyler(p,this.themeService);p.onDidChange(function(e){a.setFile(y.joinPath(u,e||" "),l)});var g=h.lastIndexOf(".");p.value=h,p.focus(),p.select({start:0,end:g>0&&!t.isDirectory?g:h.length});var v=C.once(function(t){return r(s,void 0,void 0,function(){var i;return o(this,function(r){return a.element.style.display="none",i=p.value,d.dispose(E),e.removeChild(a.element),n.onFinish(i,t),[2]})})}),m=!0;setTimeout(function(){return m=!1},0);var w=i.addDisposableListener(p.inputElement,i.EventType.BLUR,function(){m||v(p.isInputValid())}),E=[p,i.addStandardDisposableListener(p.inputElement,i.EventType.KEY_DOWN,function(e){e.equals(3)?p.validate()&&v(!0):e.equals(9)&&v(!1)}),w,a,f];return d.toDisposable(function(){m||(w.dispose(),v(p.isInputValid()))})},e.prototype.disposeElement=function(e,t,i){i.elementDisposable.dispose()},e.prototype.disposeTemplate=function(e){e.elementDisposable.dispose(),e.label.dispose()},e.prototype.dispose=function(){this.configListener.dispose()},e.ID="file",e=p([f(2,h.IContextViewService),f(3,g.IThemeService),f(4,v.IConfigurationService),f(5,m.IExplorerService)],e)}();t.FilesRenderer=K;var U=function(){function e(){}return e.prototype.getAriaLabel=function(e){return e.name},e}();t.ExplorerAccessibilityProvider=U;var j=function(){function e(e,t,i){var n=this;this.contextService=e,this.configurationService=t,this.explorerService=i,this.hiddenExpressionPerRoot=new Map,this.workspaceFolderChangeListener=this.contextService.onDidChangeWorkspaceFolders(function(){return n.updateConfiguration()})}return e.prototype.updateConfiguration=function(){var e=this,t=!1;return this.contextService.getWorkspace().folders.forEach(function(i){var r=e.configurationService.getValue({resource:i.uri}),o=r&&r.files&&r.files.exclude||Object.create(null);if(!t){var s=e.hiddenExpressionPerRoot.get(i.uri.toString());t=!s||!w.equals(s.original,o)}var a=w.deepClone(o);e.hiddenExpressionPerRoot.set(i.uri.toString(),{original:a,parsed:n.parse(a)})}),t},e.prototype.filter=function(e,t){if(0===t)return!1;if(this.explorerService.getEditableData(e)||e.isRoot)return!0;var i=this.hiddenExpressionPerRoot.get(e.root.resource.toString());return!i||!i.parsed(E.normalize(E.relative(e.root.resource.path,e.resource.path)),e.name,function(t){return!!e.parent.getChild(t)})},e.prototype.dispose=function(){this.workspaceFolderChangeListener=d.dispose(this.workspaceFolderChangeListener)},e=p([f(0,u.IWorkspaceContextService),f(1,v.IConfigurationService),f(2,m.IExplorerService)],e)}();t.FilesFilter=j;var G=function(){function e(e,t){this.explorerService=e,this.contextService=t}return e.prototype.compare=function(e,t){if(e.isRoot)return t.isRoot?this.contextService.getWorkspaceFolder(e.resource).index-this.contextService.getWorkspaceFolder(t.resource).index:-1;if(t.isRoot)return 1;var i=this.explorerService.sortOrder;switch(i){case"type":if(e.isDirectory&&!t.isDirectory)return-1;if(t.isDirectory&&!e.isDirectory)return 1;if(e.isDirectory&&t.isDirectory)return x.compareFileNames(e.name,t.name);break;case"filesFirst":if(e.isDirectory&&!t.isDirectory)return 1;if(t.isDirectory&&!e.isDirectory)return-1;break;case"mixed":break;default:if(e.isDirectory&&!t.isDirectory)return-1;if(t.isDirectory&&!e.isDirectory)return 1}switch(i){case"type":return x.compareFileExtensions(e.name,t.name);case"modified":return e.mtime!==t.mtime?e.mtime1?String(e.length):e[0].name},e.prototype.onDragStart=function(e,t){var i=e.elements;if(i&&i.length){this.instantiationService.invokeFunction(D.fillResourceDataTransfers,i,t);var n=i.filter(function(e){return!e.isDirectory&&e.resource.scheme===M.Schemas.file}).map(function(e){return e.resource.fsPath});n.length&&t.dataTransfer.setData(D.CodeDataTransfers.FILES,JSON.stringify(n))}},e.prototype.drop=function(e,t,i,n){t||(t=this.explorerService.roots[this.explorerService.roots.length-1]),t.isDirectory||(t=t.parent),t.isReadonly||(e instanceof R.DesktopDragAndDropData?this.handleExternalDrop(e,t,n):this.handleExplorerDrop(e,t,n))},e.prototype.handleExternalDrop=function(e,t,i){var n=this,r=D.extractResources(i,!0);return this.fileService.resolveFiles(r).then(function(e){n.windowService.focusWindow();var i=e.filter(function(e){return e.success&&e.stat.isDirectory}).map(function(e){return{uri:e.stat.resource}});if(i.length>0){var o=Promise.resolve({confirmed:!0});return 3!==n.contextService.getWorkbenchState()&&(o=n.dialogService.confirm({message:i.length>1?_.localize(1,null):_.localize(2,null),type:"question",primaryButton:i.length>1?_.localize(3,null):_.localize(4,null)})),o.then(function(e){if(e.confirmed)return n.workspaceEditingService.addFolders(i)})}if(t instanceof I.ExplorerItem)return n.addResources(t,r.map(function(e){return e.resource}))})},e.prototype.addResources=function(e,t){var i=this;return t&&t.length>0?this.fileService.resolveFile(e.resource).then(function(n){var r=new Set;n.children.forEach(function(e){r.add(O.isLinux?e.name:e.name.toLowerCase())});var o=Promise.resolve({confirmed:!0});if(t.some(function(e){return r.has(y.hasToIgnoreCase(e)?y.basename(e).toLowerCase():y.basename(e))})){var s={message:_.localize(5,null),detail:_.localize(6,null),primaryButton:_.localize(7,null),type:"warning"};o=i.dialogService.confirm(s)}return o.then(function(n){if(n.confirmed){var r=[];return t.forEach(function(n){r.push(function(){var r=n,o=y.joinPath(e.resource,y.basename(r)),s=Promise.resolve(null);return i.textFileService.isDirty(o)&&(s=i.textFileService.revertAll([o],{soft:!0})),s.then(function(){var n=y.joinPath(e.resource,y.basename(r));return i.fileService.copyFile(r,n,!0).then(function(e){1===t.length&&i.editorService.openEditor({resource:e.resource,options:{pinned:!0}})})})})}),F.sequence(r)}})}):Promise.resolve(void 0)},e.prototype.handleExplorerDrop=function(t,i,n){var r=this,o=t.elements,s=y.distinctParents(o,function(e){return e.resource}),a=n.ctrlKey&&!O.isMacintosh||n.altKey&&O.isMacintosh;return(!a&&this.configurationService.getValue(e.CONFIRM_DND_SETTING_KEY)?this.dialogService.confirm({message:s.length>1&&s.every(function(e){return e.isRoot})?_.localize(8,null):s.length>1?T.getConfirmMessage(_.localize(9,null,s.length),s.map(function(e){return e.resource})):s[0].isRoot?_.localize(10,null,s[0].name):_.localize(11,null,s[0].name),checkbox:{label:_.localize(12,null)},type:"question",primaryButton:_.localize(13,null)}):Promise.resolve({confirmed:!0})).then(function(t){var n=Promise.resolve(void 0);return t.confirmed&&!0===t.checkboxChecked&&(n=r.configurationService.updateValue(e.CONFIRM_DND_SETTING_KEY,!1,1)),n.then(function(){if(t.confirmed){var e=r.doHandleRootDrop(s.filter(function(e){return e.isRoot}),i);return Promise.all(s.filter(function(e){return!e.isRoot}).map(function(e){return r.doHandleExplorerDrop(e,i,a)}).concat(e)).then(function(){})}return Promise.resolve(void 0)})})},e.prototype.doHandleRootDrop=function(e,t){if(0===e.length)return Promise.resolve(void 0);for(var i,n=this.contextService.getWorkspace().folders,r=[],o=[],s=function(s){var a={uri:n[s].uri};t instanceof I.ExplorerItem&&n[s].uri.toString()===t.resource.toString()&&(i=s),e.every(function(e){return e.resource.toString()!==n[s].uri.toString()})?r.push(a):o.push(a)},a=0;a0?t[0]:void 0};return t.push(this.instantiationService.createInstance(d.NewFileAction,i)),t.push(this.instantiationService.createInstance(d.NewFolderAction,i)),t.push(this.instantiationService.createInstance(d.RefreshExplorerView,d.RefreshExplorerView.ID,d.RefreshExplorerView.LABEL)),t.push(this.instantiationService.createInstance(m.CollapseAction,this.tree,!0,"explorer-action collapse-explorer")),t},t.prototype.focus=function(){this.tree.domFocus();var e=this.tree.getFocus();1===e.length&&(this.autoReveal&&this.tree.reveal(e[0],.5),this.getActiveFile()||e[0].isDirectory||this.editorService.openEditor({resource:e[0].resource,options:{preserveFocus:!0,revealIfVisible:!0}}).then(void 0,V.onUnexpectedError))},t.prototype.selectActiveFile=function(e,t){if(void 0===t&&(t=this.autoReveal),this.autoReveal){var i=this.getActiveFile();if(i){var n=this.tree.getFocus();if(1===n.length&&n[0].resource.toString()===i.toString())return;this.explorerService.select(this.getActiveFile(),t)}else e&&(this.tree.setSelection([]),this.tree.setFocus([]))}},t.prototype.createTree=function(e){var n=this;this.filter=this.instantiationService.createInstance(P.FilesFilter),this.disposables.push(this.filter);var r=this.instantiationService.createInstance(z.ResourceLabels,{onDidChangeVisibility:this.onDidChangeBodyVisibility});this.disposables.push(r);var o=this.instantiationService.createInstance(P.FilesRenderer,r,function(e){return n.tree.updateWidth(e)});this.disposables.push(o),this.disposables.push(H.createFileIconThemableTreeContainerScope(e,this.themeService)),this.tree=new L.WorkbenchAsyncDataTree(e,new P.ExplorerDelegate,[o],this.instantiationService.createInstance(P.ExplorerDataSource),{accessibilityProvider:new P.ExplorerAccessibilityProvider,ariaLabel:i.localize(1,null),identityProvider:{getId:function(e){return e.resource}},keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:function(e){if(!n.explorerService.isEditable(e))return e.name}},multipleSelectionSupport:!0,filter:this.filter,sorter:this.instantiationService.createInstance(P.FileSorter),dnd:this.instantiationService.createInstance(P.FileDragAndDrop),autoExpandSingleChildren:!0},this.contextKeyService,this.listService,this.themeService,this.configurationService,this.keybindingService),this.disposables.push(this.tree),u.FilesExplorerFocusedContext.bindTo(this.tree.contextKeyService),u.ExplorerFocusedContext.bindTo(this.tree.contextKeyService),this.disposables.push(this.tree.onDidChangeFocus(function(e){return n.onFocusChanged(e.elements)})),this.onFocusChanged([]);var s=new L.TreeResourceNavigator2(this.tree);this.disposables.push(s),this.disposables.push(s.onDidOpenResource(function(e){var t=n.tree.getSelection(),i=e.browserEvent instanceof KeyboardEvent&&e.browserEvent.shiftKey;if(1===t.length&&!i){if(!t[0].name||t[0].isDirectory)return;n.telemetryService.publicLog("workbenchActionExecuted",{id:"workbench.files.openFile",from:"explorer"}),n.editorService.openEditor({resource:t[0].resource,options:{preserveFocus:e.editorOptions.preserveFocus,pinned:e.editorOptions.pinned}},e.sideBySide?R.SIDE_GROUP:R.ACTIVE_GROUP).then(void 0,V.onUnexpectedError)}})),this.disposables.push(this.tree.onContextMenu(function(e){return n.onContextMenu(e)})),this.disposables.push(this.tree.onKeyDown(function(e){var t=new G.StandardKeyboardEvent(e);if(j.isMacintosh?18===t.keyCode&&t.metaKey:3===t.keyCode){var i=n.tree.getFocus();1===i.length&&i[0].isDirectory&&n.tree.toggleCollapsed(i[0])}})),this.storageService.onWillSaveState(function(){n.storageService.store(t.TREE_VIEW_STATE_STORAGE_KEY,JSON.stringify(n.tree.getViewState()),1)},null,this.disposables)},t.prototype.onConfigurationUpdated=function(e,t){this.autoReveal=e&&e.explorer&&e.explorer.autoReveal;var i=!1;this.filter&&(i=this.filter.updateConfiguration()),t&&!i&&(i=t.affectsConfiguration("explorer.decorations.colors")||t.affectsConfiguration("explorer.decorations.badges")),t&&i&&this.refresh()},t.prototype.onContextMenu=function(e){var t=this,i=e.element;this.fileCopiedContextKey.set(this.clipboardService.hasResources());var n=this.tree.getSelection();this.contextMenuService.showContextMenu({getAnchor:function(){return e.anchor},getActions:function(){var e=[],n=t.explorerService.roots,r=i instanceof B.ExplorerItem?i.resource:1===n.length?n[0].resource:{};return F.fillInContextMenuActions(t.contributedContextMenu,{arg:r,shouldForwardArgs:!0},e,t.contextMenuService),e},onHide:function(e){e&&t.tree.domFocus()},getActionsContext:function(){return n&&n.indexOf(i)>=0?n.map(function(e){return e.resource}):i instanceof B.ExplorerItem?[i.resource]:[]}})},t.prototype.onFocusChanged=function(e){var t=e&&e.length?e[0]:void 0,i=2===this.contextService.getWorkbenchState(),n=t?t.resource:i?this.contextService.getWorkspace().folders[0].uri:void 0;this.resourceContext.set(n),this.folderContext.set(i&&!t||!!t&&t.isDirectory),this.readonlyContext.set(!!t&&t.isReadonly),this.rootContext.set(!t||t&&t.isRoot)},t.prototype.refresh=function(e){if(!this.tree||!this.isBodyVisible())return this.shouldRefresh=!0,Promise.resolve(void 0);if(e&&!this.tree.hasNode(e))return Promise.resolve(void 0);var t=!e,i=e||this.tree.getInput();return this.tree.updateChildren(i,t)},t.prototype.getOptimalWidth=function(){var e=this.tree.getHTMLElement(),t=[].slice.call(e.querySelectorAll(".explorer-item .label-name"));return v.getLargestChildWidth(e,t)},t.prototype.setTreeInput=function(){var e=this;if(!this.isBodyVisible())return this.shouldRefresh=!0,Promise.resolve(void 0);var i=!this.tree.getInput();i&&n.mark("willResolveExplorer");var r,o=this.explorerService.roots,s=o[0];if((2!==this.contextService.getWorkbenchState()||o[0].isError)&&(s=o),this.tree&&this.tree.getInput())r=this.tree.getViewState();else{var a=this.storageService.get(t.TREE_VIEW_STATE_STORAGE_KEY,1);a&&(r=JSON.parse(a))}var c=this.tree.getInput(),l=this.tree.setInput(s,r).then(function(){Array.isArray(s)&&((!r||c instanceof B.ExplorerItem)&&s.forEach(function(t){return e.tree.expand(t).then(void 0,V.onUnexpectedError)}),Array.isArray(c)&&c.length0),this.resourceCutContextKey.set(t&&e.length>0),i&&i.forEach(function(e){return n.tree.rerender(e)}),t&&e.forEach(function(e){return n.tree.rerender(e)})},t.prototype.collapseAll=function(){this.tree.collapseAll()},t.prototype.dispose=function(){this.dragHandler&&this.dragHandler.dispose(),e.prototype.dispose.call(this)},t.ID="workbench.explorer.fileView",t.TREE_VIEW_STATE_STORAGE_KEY="workbench.explorer.treeViewState",p([c.memoize],t.prototype,"contributedContextMenu",null),p([c.memoize],t.prototype,"fileCopiedContextKey",null),p([c.memoize],t.prototype,"resourceCutContextKey",null),t=p([f(1,I.IContextMenuService),f(2,w.IInstantiationService),f(3,_.IWorkspaceContextService),f(4,E.IProgressService),f(5,R.IEditorService),f(6,y.IWorkbenchLayoutService),f(7,C.IKeybindingService),f(8,x.IContextKeyService),f(9,S.IConfigurationService),f(10,k.IDecorationsService),f(11,T.ILabelService),f(12,A.IThemeService),f(13,L.IListService),f(14,N.IMenuService),f(15,W.ITelemetryService),f(16,u.IExplorerService),f(17,K.IStorageService),f(18,U.IClipboardService)],t)}(O.ViewletPanel);t.ExplorerView=q}),define(i[1225],n([0,1,554,13,29,7,51,6,56,18,44,218,70,50,80,301,397,15,58,16,22,78,150,61,37,24,2,174,38,207,140,144,244,134,107,177]),function(e,t,i,n,r,o,s,c,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F,W,B){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var V=o.$,z=function(e){function t(t,r,o,s,a,c,u,d,h,p,f,g,v){var m=e.call(this,l({},t,{ariaHeaderLabel:i.localize(1,null)}),d,o,u)||this;return m.instantiationService=r,m.textFileService=s,m.editorService=a,m.editorGroupService=c,m.untitledEditorService=h,m.contextKeyService=p,m.themeService=f,m.telemetryService=g,m.menuService=v,m.structuralRefreshDelay=0,m.listRefreshScheduler=new n.RunOnceScheduler(function(){var e=m.list.length;m.list.splice(0,m.list.length,m.elements),m.focusActiveEditor(),e!==m.list.length&&m.updateSize(),m.needsRefresh=!1},m.structuralRefreshDelay),m.registerUpdateEvents(),m.disposables.push(m.configurationService.onDidChangeConfiguration(function(e){return m.onConfigurationChange(e)})),m.disposables.push(m.untitledEditorService.onDidChangeDirty(function(){return m.updateDirtyIndicator()})),m.disposables.push(m.textFileService.models.onModelsDirty(function(){return m.updateDirtyIndicator()})),m.disposables.push(m.textFileService.models.onModelsSaved(function(){return m.updateDirtyIndicator()})),m.disposables.push(m.textFileService.models.onModelsSaveError(function(){return m.updateDirtyIndicator()})),m.disposables.push(m.textFileService.models.onModelsReverted(function(){return m.updateDirtyIndicator()})),m}return a(t,e),t.prototype.registerUpdateEvents=function(){var e=this,t=function(){e.isBodyVisible()&&e.list?e.listRefreshScheduler.schedule(e.structuralRefreshDelay):e.needsRefresh=!0},i=new Map,n=function(t){i.set(t.id,t.onDidGroupChange(function(i){if(!e.listRefreshScheduler.isScheduled())if(e.isBodyVisible()&&e.list){var n=e.getIndex(t,i.editor);switch(i.kind){case 1:e.showGroups&&e.list.splice(n,1,[t]);break;case 0:case 5:e.focusActiveEditor();break;case 8:case 6:case 7:e.list.splice(n,1,[new v.OpenEditor(i.editor,t)]);break;case 2:e.list.splice(n,0,[new v.OpenEditor(i.editor,t)]),setTimeout(function(){return e.updateSize()},e.structuralRefreshDelay);break;case 3:var r=e.getIndex(t,void 0)+i.editorIndex+(e.showGroups?1:0);e.list.splice(r,1),e.updateSize();break;case 4:e.listRefreshScheduler.schedule()}}else e.needsRefresh=!0})),e.disposables.push(i.get(t.id))};this.editorGroupService.groups.forEach(function(e){return n(e)}),this.disposables.push(this.editorGroupService.onDidAddGroup(function(e){n(e),t()})),this.disposables.push(this.editorGroupService.onDidMoveGroup(function(){return t()})),this.disposables.push(this.editorGroupService.onDidRemoveGroup(function(e){M.dispose(i.get(e.id)),t()}))},t.prototype.renderHeaderTitle=function(t){var i=this;e.prototype.renderHeaderTitle.call(this,t,this.title);var n=o.append(t,V(".count"));this.dirtyCountElement=o.append(n,V(".monaco-count-badge")),this.disposables.push(C.attachStylerCallback(this.themeService,{badgeBackground:E.badgeBackground,badgeForeground:E.badgeForeground,contrastBorder:E.contrastBorder},function(e){var t=e.badgeBackground?e.badgeBackground.toString():null,n=e.badgeForeground?e.badgeForeground.toString():null,r=e.contrastBorder?e.contrastBorder.toString():null;i.dirtyCountElement.style.backgroundColor=t,i.dirtyCountElement.style.color=n,i.dirtyCountElement.style.borderWidth=r?"1px":null,i.dirtyCountElement.style.borderStyle=r?"solid":null,i.dirtyCountElement.style.borderColor=r})),this.updateDirtyIndicator()},t.prototype.renderBody=function(e){var t=this;o.addClass(e,"explorer-open-editors"),o.addClass(e,"show-file-icons");var i=new K;this.list&&this.list.dispose(),this.listLabels&&this.listLabels.clear(),this.listLabels=this.instantiationService.createInstance(x.ResourceLabels,{onDidChangeVisibility:this.onDidChangeBodyVisibility}),this.list=this.instantiationService.createInstance(I.WorkbenchList,e,i,[new U(this.keybindingService,this.instantiationService),new j(this.listLabels,this.instantiationService,this.keybindingService,this.configurationService)],{identityProvider:{getId:function(e){return e instanceof v.OpenEditor?e.getId():e.id.toString()}},dnd:new G(this.instantiationService,this.editorGroupService)}),this.disposables.push(this.list),this.disposables.push(this.listLabels),this.contributedContextMenu=this.menuService.createMenu(27,this.list.contextKeyService),this.disposables.push(this.contributedContextMenu),this.updateSize(),v.OpenEditorsFocusedContext.bindTo(this.list.contextKeyService),v.ExplorerFocusedContext.bindTo(this.list.contextKeyService),this.resourceContext=this.instantiationService.createInstance(P.ResourceContextKey),this.disposables.push(this.resourceContext),this.groupFocusedContext=T.OpenEditorsGroupContext.bindTo(this.contextKeyService),this.dirtyEditorFocusedContext=T.DirtyEditorContext.bindTo(this.contextKeyService),this.disposables.push(this.list.onContextMenu(function(e){return t.onListContextMenu(e)})),this.list.onFocusChange(function(e){t.resourceContext.reset(),t.groupFocusedContext.reset(),t.dirtyEditorFocusedContext.reset();var i=e.elements.length?e.elements[0]:void 0;i instanceof v.OpenEditor?(t.dirtyEditorFocusedContext.set(t.textFileService.isDirty(i.getResource())),t.resourceContext.set(i.getResource())):i&&t.groupFocusedContext.set(!0)}),this.disposables.push(this.list.onMouseMiddleClick(function(e){e&&e.element instanceof v.OpenEditor&&e.element.group.closeEditor(e.element.editor,{preserveFocus:!0})})),this.disposables.push(this.list.onDidOpen(function(e){var i=e.browserEvent,n=!1,r=!1,o=!1;i instanceof MouseEvent&&(r=1===i.detail,o=2===i.detail,n=t.list.useAltAsMultipleSelectionModifier?i.ctrlKey||i.metaKey:i.altKey);var s=t.list.getFocusedElements(),a=s.length?s[0]:void 0;a instanceof v.OpenEditor?t.openEditor(a,{preserveFocus:r,pinned:o,sideBySide:n}):a&&t.editorGroupService.activateGroup(a)})),this.listRefreshScheduler.schedule(0),this.disposables.push(this.onDidChangeBodyVisibility(function(e){e&&t.needsRefresh&&t.listRefreshScheduler.schedule(0)}))},t.prototype.getActions=function(){return[this.instantiationService.createInstance(_.ToggleEditorLayoutAction,_.ToggleEditorLayoutAction.ID,_.ToggleEditorLayoutAction.LABEL),this.instantiationService.createInstance(g.SaveAllAction,g.SaveAllAction.ID,g.SaveAllAction.LABEL),this.instantiationService.createInstance(b.CloseAllEditorsAction,b.CloseAllEditorsAction.ID,b.CloseAllEditorsAction.LABEL)]},t.prototype.focus=function(){e.prototype.focus.call(this),this.list.domFocus()},t.prototype.getList=function(){return this.list},t.prototype.layoutBody=function(e,t){this.list&&this.list.layout(e,t)},Object.defineProperty(t.prototype,"showGroups",{get:function(){return this.editorGroupService.groups.length>1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){var e=this,t=[];return this.editorGroupService.getGroups(2).forEach(function(i){e.showGroups&&t.push(i),t.push.apply(t,i.editors.map(function(e){return new v.OpenEditor(e,i)}))}),t},enumerable:!0,configurable:!0}),t.prototype.getIndex=function(e,t){var i=t?e.getIndexOfEditor(t):0;if(!this.showGroups)return i;for(var n=0,r=this.editorGroupService.getGroups(2);n a"));return o.getLargestChildWidth(e,t)},t.DEFAULT_VISIBLE_OPEN_EDITORS=9,t.ID="workbench.explorer.openEditorsView",t.NAME=i.localize(0,null),t=p([f(1,c.IInstantiationService),f(2,s.IContextMenuService),f(3,m.ITextFileService),f(4,L.IEditorService),f(5,u.IEditorGroupsService),f(6,d.IConfigurationService),f(7,h.IKeybindingService),f(8,y.IUntitledEditorService),f(9,S.IContextKeyService),f(10,w.IThemeService),f(11,k.ITelemetryService),f(12,O.IMenuService)],t)}(N.ViewletPanel);t.OpenEditorsView=z;var H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.run=function(t,i){return e.prototype.run.call(this,t,{groupId:this.editor.groupId,editorIndex:this.editor.editorIndex})},t}(r.ActionRunner),K=function(){function e(){}return e.prototype.getHeight=function(t){return e.ITEM_HEIGHT},e.prototype.getTemplateId=function(e){return e instanceof v.OpenEditor?j.ID:U.ID},e.ITEM_HEIGHT=22,e}(),U=function(){function e(e,t){this.keybindingService=e,this.instantiationService=t}return Object.defineProperty(e.prototype,"templateId",{get:function(){return e.ID},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=Object.create(null);t.root=o.append(e,V(".editor-group")),t.name=o.append(t.root,V("span.name")),t.actionBar=new D.ActionBar(e);var i=this.instantiationService.createInstance(g.SaveAllInGroupAction,g.SaveAllInGroupAction.ID,g.SaveAllInGroupAction.LABEL),n=this.keybindingService.lookupKeybinding(i.id);t.actionBar.push(i,{icon:!0,label:!1,keybinding:n?n.getLabel():void 0});var r=this.instantiationService.createInstance(g.CloseGroupAction,g.CloseGroupAction.ID,g.CloseGroupAction.LABEL),s=this.keybindingService.lookupKeybinding(r.id);return t.actionBar.push(r,{icon:!0,label:!1,keybinding:s?s.getLabel():void 0}),t},e.prototype.renderElement=function(e,t,i){i.editorGroup=e,i.name.textContent=e.label,i.actionBar.context={groupId:e.id}},e.prototype.disposeTemplate=function(e){e.actionBar.dispose()},e.ID="editorgroup",e}(),j=function(){function e(e,t,i,n){this.labels=e,this.instantiationService=t,this.keybindingService=i,this.configurationService=n}return Object.defineProperty(e.prototype,"templateId",{get:function(){return e.ID},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=Object.create(null);t.container=e,t.actionRunner=new H,t.actionBar=new D.ActionBar(e,{actionRunner:t.actionRunner}),e.draggable=!0;var i=this.instantiationService.createInstance(b.CloseEditorAction,b.CloseEditorAction.ID,b.CloseEditorAction.LABEL),n=this.keybindingService.lookupKeybinding(i.id);return t.actionBar.push(i,{icon:!0,label:!1,keybinding:n?n.getLabel():void 0}),t.root=this.labels.create(e),t},e.prototype.renderElement=function(e,t,i){i.actionRunner.editor=e,e.isDirty()?o.addClass(i.container,"dirty"):o.removeClass(i.container,"dirty"),i.root.setEditor(e.editor,{italic:e.isPreview(),extraClasses:["open-editor"],fileDecorations:this.configurationService.getValue().explorer.decorations})},e.prototype.disposeTemplate=function(e){e.actionBar.dispose(),e.root.dispose(),e.actionRunner.dispose()},e.ID="openeditor",e}(),G=function(){function e(e,t){this.instantiationService=e,this.editorGroupService=t}return Object.defineProperty(e.prototype,"dropHandler",{get:function(){return this.instantiationService.createInstance(A.ResourcesDropHandler,{allowWorkspaceOpen:!1})},enumerable:!0,configurable:!0}),e.prototype.getDragURI=function(e){if(e instanceof v.OpenEditor){var t=e.getResource();if(t)return t.toString()}return null},e.prototype.getDragLabel=function(e){if(e.length>1)return String(e.length);var t=e[0];return t instanceof v.OpenEditor?t.editor.getName():t.label},e.prototype.onDragStart=function(e,t){var i=e.elements,n=[];i&&i.forEach(function(e){e instanceof v.OpenEditor&&n.push(e.getResource())}),n.length&&this.instantiationService.invokeFunction(A.fillResourceDataTransfers,n,t)},e.prototype.onDragOver=function(e,t,i,n){if(e instanceof B.DesktopDragAndDropData){for(var r=n.dataTransfer.types,o=[],s=0;s0},i.prototype.run=function(){var e=this;return this.commandService.executeCommand(g.PICK_WORKSPACE_FOLDER_COMMAND_ID).then(function(t){return t?e.preferencesService.openFolderSettings(t.uri):null})},i.prototype.dispose=function(){this.disposables=n.dispose(this.disposables),e.prototype.dispose.call(this)},i.ID="workbench.action.openFolderSettings",i.LABEL=t.OPEN_FOLDER_SETTINGS_LABEL,i=p([f(2,h.IWorkspaceContextService),f(3,v.IPreferencesService),f(4,u.ICommandService)],i)}(i.Action);t.OpenFolderSettingsAction=I;var x=function(e){function t(t,i,n,r,o,s){var a=e.call(this,t,i)||this;return a.modelService=n,a.modeService=r,a.quickInputService=o,a.preferencesService=s,a}return a(t,e),t.prototype.run=function(){var e=this,t=this.modeService.getRegisteredLanguageNames().sort().map(function(t,i){var n,s=l.localize(10,null,e.modeService.getModeIdForLanguageName(t.toLowerCase())),a=e.modeService.getExtensions(t);if(a&&a.length)n=r.URI.file(a[0]);else{var c=e.modeService.getFilenames(t);c&&c.length&&(n=r.URI.file(c[0]))}return{label:t,iconClasses:o.getIconClasses(e.modelService,e.modeService,n),description:s}});return this.quickInputService.pick(t,{placeHolder:l.localize(11,null)}).then(function(t){if(t){var i=e.modeService.getModeIdForLanguageName(t.label.toLowerCase());if("string"==typeof i)return e.preferencesService.configureSettingsForLanguage(i)}})},t.ID="workbench.action.configureLanguageBasedSettings",t.LABEL=l.localize(9,null),t=p([f(2,s.IModelService),f(3,c.IModeService),f(4,d.IQuickInputService),f(5,v.IPreferencesService)],t)}(i.Action);t.ConfigureLanguageBasedSettingsAction=x}),define(i[1229],n([0,1,54,2,10,20,146,570,38,31,15,285,45,117,39,6,74,19,32,137,73,115,34,140,1150,1228,1142,160,1099,1104,1100,24,86,410,70,734]),function(e,t,i,n,r,o,s,c,l,u,d,h,g,v,m,y,b,_,S,C,w,E,I,x,D,k,L,M,R,O,T,P,A,N,F){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),m.registerSingleton(M.IPreferencesSearchService,O.PreferencesSearchService,!0),_.Registry.as(C.Extensions.Editors).registerEditor(new C.EditorDescriptor(L.PreferencesEditor,L.PreferencesEditor.ID,c.localize(0,null)),[new v.SyncDescriptor(N.PreferencesEditorInput)]),_.Registry.as(C.Extensions.Editors).registerEditor(new C.EditorDescriptor(T.SettingsEditor2,T.SettingsEditor2.ID,c.localize(1,null)),[new v.SyncDescriptor(N.SettingsEditor2Input)]),_.Registry.as(C.Extensions.Editors).registerEditor(new C.EditorDescriptor(D.KeybindingsEditor,D.KeybindingsEditor.ID,c.localize(2,null)),[new v.SyncDescriptor(N.KeybindingsEditorInput)]);var W=function(){function e(){}return e.prototype.serialize=function(e){var t=e;if(t.details&&t.master){var i=_.Registry.as(I.Extensions.EditorInputFactories),n=i.getEditorInputFactory(t.details.getTypeId()),r=i.getEditorInputFactory(t.master.getTypeId());if(n&&r){var o=n.serialize(t.details),s=r.serialize(t.master);if(o&&s)return JSON.stringify({name:t.getName(),description:t.getDescription(),detailsSerialized:o,masterSerialized:s,detailsTypeId:t.details.getTypeId(),masterTypeId:t.master.getTypeId()})}}return null},e.prototype.deserialize=function(e,t){var i=JSON.parse(t),n=_.Registry.as(I.Extensions.EditorInputFactories),r=n.getEditorInputFactory(i.detailsTypeId),o=n.getEditorInputFactory(i.masterTypeId);if(r&&o){var s=r.deserialize(e,i.detailsSerialized),a=o.deserialize(e,i.masterSerialized);if(s&&a)return new N.PreferencesEditorInput(i.name,i.description,s,a)}return null},e}(),B=function(){function e(){}return e.prototype.serialize=function(e){var t=e;return JSON.stringify({name:t.getName(),typeId:t.getTypeId()})},e.prototype.deserialize=function(e,t){return e.createInstance(N.KeybindingsEditorInput)},e}(),V=function(){function e(){}return e.prototype.serialize=function(e){return JSON.stringify({})},e.prototype.deserialize=function(e,t){return e.createInstance(N.SettingsEditor2Input)},e}(),z=function(){function e(){}return e.prototype.serialize=function(e){var t={resource:e.getResource().toString()};return JSON.stringify(t)},e.prototype.deserialize=function(e,t){var i=JSON.parse(t);return e.createInstance(N.DefaultPreferencesEditorInput,r.URI.parse(i.resource))},e}();_.Registry.as(I.Extensions.EditorInputFactories).registerEditorInputFactory(N.PreferencesEditorInput.ID,W),_.Registry.as(I.Extensions.EditorInputFactories).registerEditorInputFactory(N.DefaultPreferencesEditorInput.ID,z),_.Registry.as(I.Extensions.EditorInputFactories).registerEditorInputFactory(N.KeybindingsEditorInput.ID,B),_.Registry.as(I.Extensions.EditorInputFactories).registerEditorInputFactory(N.SettingsEditor2Input.ID,V);var H=c.localize(3,null),K=_.Registry.as(w.Extensions.WorkbenchActions);K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenRawDefaultSettingsAction,k.OpenRawDefaultSettingsAction.ID,k.OpenRawDefaultSettingsAction.LABEL),"Preferences: Open Raw Default Settings",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenSettingsJsonAction,k.OpenSettingsJsonAction.ID,k.OpenSettingsJsonAction.LABEL),"Preferences: Open Settings (JSON)",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenSettings2Action,k.OpenSettings2Action.ID,k.OpenSettings2Action.LABEL),"Preferences: Open Settings (UI)",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenGlobalSettingsAction,k.OpenGlobalSettingsAction.ID,k.OpenGlobalSettingsAction.LABEL),"Preferences: Open User Settings",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenGlobalKeybindingsAction,k.OpenGlobalKeybindingsAction.ID,k.OpenGlobalKeybindingsAction.LABEL,{primary:i.KeyChord(2089,2097)}),"Preferences: Open Keyboard Shortcuts",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenDefaultKeybindingsFileAction,k.OpenDefaultKeybindingsFileAction.ID,k.OpenDefaultKeybindingsFileAction.LABEL),"Preferences: Open Default Keyboard Shortcuts File",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.OpenGlobalKeybindingsFileAction,k.OpenGlobalKeybindingsFileAction.ID,k.OpenGlobalKeybindingsFileAction.LABEL,{primary:0}),"Preferences: Open Keyboard Shortcuts File",H),K.registerWorkbenchAction(new l.SyncActionDescriptor(k.ConfigureLanguageBasedSettingsAction,k.ConfigureLanguageBasedSettingsAction.ID,k.ConfigureLanguageBasedSettingsAction.LABEL),"Preferences: Configure Language Specific Settings...",H),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.SETTINGS_COMMAND_OPEN_SETTINGS,weight:200,when:null,primary:2130,handler:function(e,t){e.get(A.IPreferencesService).openSettings()}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_DEFINE,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:i.KeyChord(2089,2089),handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.defineKeybinding(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_DEFINE_WHEN,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:i.KeyChord(2089,2083),handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.defineWhenExpression(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_REMOVE,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:20,mac:{primary:i.KeyChord(2089,2049)},handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.removeKeybinding(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_RESET,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:0,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.resetKeybinding(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_SEARCH,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR),primary:2084,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.focusSearch()}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_RECORD_SEARCH_KEYS,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDINGS_SEARCH_FOCUS),primary:553,mac:{primary:2601},handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.recordSearchKeys()}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_SORTBY_PRECEDENCE,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR),primary:558,mac:{primary:2606},handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i instanceof D.KeybindingsEditor&&i.toggleSortByPrecedence()}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_SHOW_SIMILAR,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:0,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i.showSimilarKeybindings(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_COPY,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:2081,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i.copyKeybinding(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_COPY_COMMAND,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDING_FOCUS),primary:0,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i.copyKeybindingCommand(i.activeKeybindingEntry)}}),b.KeybindingsRegistry.registerCommandAndKeybindingRule({id:M.KEYBINDINGS_EDITOR_COMMAND_FOCUS_KEYBINDINGS,weight:200,when:d.ContextKeyExpr.and(M.CONTEXT_KEYBINDINGS_EDITOR,M.CONTEXT_KEYBINDINGS_SEARCH_FOCUS),primary:18,handler:function(e,t){var i=e.get(P.IEditorService).activeControl;i&&i.focusKeybindings()}});var U=function(t){function i(i,n,o){var s=t.call(this)||this;s.preferencesService=n,s.workpsaceContextService=o,l.MenuRegistry.appendMenuItem(8,{command:{id:k.OpenGlobalKeybindingsAction.ID,title:k.OpenGlobalKeybindingsAction.LABEL,iconLocation:{light:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor.svg")),dark:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor-inverse.svg"))}},when:x.ResourceContextKey.Resource.isEqualTo(r.URI.file(i.appKeybindingsPath).toString()),group:"navigation",order:1});var a="_workbench.openUserSettingsEditor";return u.CommandsRegistry.registerCommand(a,function(){return s.preferencesService.openGlobalSettings(!1)}),l.MenuRegistry.appendMenuItem(8,{command:{id:a,title:k.OpenSettings2Action.LABEL,iconLocation:{light:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor.svg")),dark:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor-inverse.svg"))}},when:x.ResourceContextKey.Resource.isEqualTo(r.URI.file(i.appSettingsPath).toString()),group:"navigation",order:1}),s.updatePreferencesEditorMenuItem(),s._register(o.onDidChangeWorkbenchState(function(){return s.updatePreferencesEditorMenuItem()})),s._register(o.onDidChangeWorkspaceFolders(function(){return s.updatePreferencesEditorMenuItemForWorkspaceFolders()})),s}return a(i,t),i.prototype.updatePreferencesEditorMenuItem=function(){var t=this,i="_workbench.openWorkspaceSettingsEditor";3!==this.workpsaceContextService.getWorkbenchState()||u.CommandsRegistry.getCommand(i)||(u.CommandsRegistry.registerCommand(i,function(){return t.preferencesService.openWorkspaceSettings(!1)}),l.MenuRegistry.appendMenuItem(8,{command:{id:i,title:k.OpenSettings2Action.LABEL,iconLocation:{light:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor.svg")),dark:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor-inverse.svg"))}},when:d.ContextKeyExpr.and(x.ResourceContextKey.Resource.isEqualTo(this.preferencesService.workspaceSettingsResource.toString()),h.WorkbenchStateContext.isEqualTo("workspace")),group:"navigation",order:1})),this.updatePreferencesEditorMenuItemForWorkspaceFolders()},i.prototype.updatePreferencesEditorMenuItemForWorkspaceFolders=function(){for(var t=this,i=function(i){var o="_workbench.openFolderSettings."+i.uri.toString();u.CommandsRegistry.getCommand(o)||(u.CommandsRegistry.registerCommand(o,function(){return 2===t.workpsaceContextService.getWorkbenchState()?t.preferencesService.openWorkspaceSettings(!1):t.preferencesService.openFolderSettings(i.uri,!1)}),l.MenuRegistry.appendMenuItem(8,{command:{id:o,title:k.OpenSettings2Action.LABEL,iconLocation:{light:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor.svg")),dark:r.URI.parse(e.toUrl("vs/workbench/contrib/preferences/electron-browser/media/preferences-editor-inverse.svg"))}},when:d.ContextKeyExpr.and(x.ResourceContextKey.Resource.isEqualTo(n.preferencesService.getFolderSettingsResource(i.uri).toString())),group:"navigation",order:1}))},n=this,o=0,s=this.workpsaceContextService.getWorkspace().folders;o10&&"alwaysExpand"!==t;return{element:e,children:n,collapsed:o}})},t.prototype.createFileIterator=function(e){var t=l.Iterator.from(e.matches().sort(G.searchMatchComparer));return l.Iterator.map(t,function(e){return{element:e}})},t.prototype.createIterator=function(e,t){return e instanceof G.SearchResult?this.createResultIterator(t):e instanceof G.BaseFolderMatch?this.createFolderIterator(e,t):this.createFileIterator(e)},t.prototype.replaceAll=function(){var e=this;if(0!==this.viewModel.searchResult.count()){var t=this.progressService.show(100),n=this.viewModel.searchResult.count(),r=this.viewModel.searchResult.fileCount(),o=this.searchWidget.getReplaceValue()||"",a=this.buildAfterReplaceAllMessage(n,r,o),c={title:v.localize(5,null),message:this.buildReplaceAllConfirmationMessage(n,r,o),primaryButton:v.localize(6,null),type:"question"};this.dialogService.confirm(c).then(function(n){n.confirmed&&(e.searchWidget.setReplaceAllActionState(!1),e.viewModel.searchResult.replaceAll(t).then(function(){t.done();var n=e.clearMessage();i.append(n,ee("p",void 0,a))},function(i){t.done(),s.isPromiseCanceledError(i),e.notificationService.error(i)}))})}},t.prototype.buildAfterReplaceAllMessage=function(e,t,i){return 1===e?1===t?i?v.localize(7,null,e,t,i):v.localize(8,null,e,t):i?v.localize(9,null,e,t,i):v.localize(10,null,e,t):1===t?i?v.localize(11,null,e,t,i):v.localize(12,null,e,t):i?v.localize(13,null,e,t,i):v.localize(14,null,e,t)},t.prototype.buildReplaceAllConfirmationMessage=function(e,t,i){return 1===e?1===t?i?v.localize(15,null,e,t,i):v.localize(16,null,e,t):i?v.localize(17,null,e,t,i):v.localize(18,null,e,t):1===t?i?v.localize(19,null,e,t,i):v.localize(20,null,e,t):i?v.localize(21,null,e,t,i):v.localize(22,null,e,t)},t.prototype.clearMessage=function(){return this.searchWithoutFolderMessageElement=void 0,i.clearNode(this.messagesElement),i.show(this.messagesElement),u.dispose(this.messageDisposables),this.messageDisposables=[],i.append(this.messagesElement,ee(".message"))},t.prototype.createSearchResultsView=function(e){var t=this;this.resultsElement=i.append(e,ee(".results.show-file-icons"));var n=this.instantiationService.createInstance(V.SearchDelegate);this.treeLabels=this._register(this.instantiationService.createInstance(N.ResourceLabels,this)),this.tree=this._register(this.instantiationService.createInstance(I.WorkbenchObjectTree,this.resultsElement,n,[this._register(this.instantiationService.createInstance(V.FolderMatchRenderer,this.viewModel,this,this.treeLabels)),this._register(this.instantiationService.createInstance(V.FileMatchRenderer,this.viewModel,this,this.treeLabels)),this._register(this.instantiationService.createInstance(V.MatchRenderer,this.viewModel,this))],{identityProvider:{getId:function(e){return e.id()}},accessibilityProvider:this.instantiationService.createInstance(V.SearchAccessibilityProvider,this.viewModel),dnd:this.instantiationService.createInstance(V.SearchDND),multipleSelectionSupport:!1})),this._register(this.tree.onContextMenu(function(e){return t.onContextMenu(e)}));var r=this._register(new I.TreeResourceNavigator2(this.tree,{openOnFocus:!0}));this._register(c.Event.debounce(r.onDidOpenResource,function(e,t){return t},75,!0)(function(e){if(e.element instanceof G.Match){var i=e.element;t.currentSelectedFileMatch&&t.currentSelectedFileMatch.setSelectedMatch(null),t.currentSelectedFileMatch=i.parent(),t.currentSelectedFileMatch.setSelectedMatch(i),t.onFocus(i,e.editorOptions.preserveFocus,e.sideBySide,e.editorOptions.pinned)}})),this._register(c.Event.any(this.tree.onDidFocus,this.tree.onDidChangeFocus)(function(){if(t.tree.isDOMFocused()){var e=t.tree.getFocus()[0];t.firstMatchFocused.set(t.tree.navigate().first()===e),t.fileMatchOrMatchFocused.set(!!e),t.fileMatchFocused.set(e instanceof G.FileMatch),t.folderMatchFocused.set(e instanceof G.FolderMatch),t.matchFocused.set(e instanceof G.Match),t.fileMatchOrFolderMatchFocus.set(e instanceof G.FileMatch||e instanceof G.FolderMatch)}})),this._register(this.tree.onDidBlur(function(e){t.firstMatchFocused.reset(),t.fileMatchOrMatchFocused.reset(),t.fileMatchFocused.reset(),t.folderMatchFocused.reset(),t.matchFocused.reset(),t.fileMatchOrFolderMatchFocus.reset()}))},t.prototype.onContextMenu=function(e){var t=this;e.element&&(this.contextMenu||(this.contextMenu=this._register(this.menuService.createMenu(34,this.contextKeyService))),e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this.contextMenuService.showContextMenu({getAnchor:function(){return e.anchor},getActions:function(){var e=[];return m.fillInContextMenuActions(t.contextMenu,{shouldForwardArgs:!0},e,t.contextMenuService),e},getActionsContext:function(){return e.element}}))},t.prototype.selectCurrentMatch=function(){var e=this.tree.getFocus()[0],t=I.getSelectionKeyboardEvent(void 0,!1);this.tree.setSelection([e],t)},t.prototype.selectNextMatch=function(){var e=this.tree.getSelection()[0];e instanceof G.FileMatch&&this.tree.isCollapsed(e)&&this.tree.expand(e);var t=this.tree.navigate(e),i=t.next();for(i||(i=(t=this.tree.navigate()).first());!(i instanceof G.Match);)this.tree.isCollapsed(i)&&this.tree.expand(i),i=t.next();i&&(this.tree.setFocus([i],I.getSelectionKeyboardEvent(void 0,!1)),this.tree.reveal(i),this.selectCurrentMatchEmitter.fire(void 0))},t.prototype.selectPreviousMatch=function(){var e=this.tree.getSelection()[0],t=this.tree.navigate(e),i=t.previous();if(!(i instanceof G.Match)){if(!(i=t.previous())){i=t.last(),this.tree.expand(i);for(var n=void 0;n=t.next();)i=n}if(!(i instanceof G.Match)){var r=t.next();this.tree.expand(i),i=(t=this.tree.navigate(r)).previous()}}i&&(this.tree.setFocus([i],I.getSelectionKeyboardEvent(void 0,!1)),this.tree.reveal(i),this.selectCurrentMatchEmitter.fire(void 0))},t.prototype.moveFocusToResults=function(){this.tree.domFocus()},t.prototype.focus=function(){e.prototype.focus.call(this);var t=this.updateTextFromSelection();this.searchWidget.focus(void 0,void 0,t)},t.prototype.updateTextFromSelection=function(e){void 0===e&&(e=!0);var t=!1;if(this.configurationService.getValue("editor").find.seedSearchStringFromSelection){var i=this.getSearchTextFromEditor(e);i&&(this.searchWidget.searchInput.getRegex()&&(i=h.escapeRegExpCharacters(i)),this.searchWidget.searchInput.setValue(i),t=!0)}return t},t.prototype.focusNextInputBox=function(){if(this.searchWidget.searchInputHasFocus())this.searchWidget.isReplaceShown()?this.searchWidget.focus(!0,!0):this.moveFocusFromSearchOrReplace();else{if(!this.searchWidget.replaceInputHasFocus())return this.inputPatternIncludes.inputHasFocus()?(this.inputPatternExcludes.focus(),void this.inputPatternExcludes.select()):void(this.inputPatternExcludes.inputHasFocus()&&this.selectTreeIfNotSelected());this.moveFocusFromSearchOrReplace()}},t.prototype.moveFocusFromSearchOrReplace=function(){this.showsFileTypes()?this.toggleQueryDetails(!0,this.showsFileTypes()):this.selectTreeIfNotSelected()},t.prototype.focusPreviousInputBox=function(){if(!this.searchWidget.searchInputHasFocus())if(this.searchWidget.replaceInputHasFocus())this.searchWidget.focus(!0);else{if(!this.inputPatternIncludes.inputHasFocus())return this.inputPatternExcludes.inputHasFocus()?(this.inputPatternIncludes.focus(),void this.inputPatternIncludes.select()):void(this.tree.isDOMFocused()&&this.moveFocusFromResults());this.searchWidget.focus(!0,!0)}},t.prototype.moveFocusFromResults=function(){this.showsFileTypes()?this.toggleQueryDetails(!0,!0,!1,!0):this.searchWidget.focus(!0,!0)},t.prototype.reLayout=function(){if(!this.isDisposed){var e=this.configurationService.getValue("search").actionsPosition;i.toggleClass(this.getContainer(),t.ACTIONS_RIGHT_CLASS_NAME,"right"===e),i.toggleClass(this.getContainer(),t.WIDE_CLASS_NAME,this.size.width>=t.WIDE_VIEW_SIZE),this.searchWidget.setWidth(this.size.width-28),this.inputPatternExcludes.setWidth(this.size.width-28),this.inputPatternIncludes.setWidth(this.size.width-28);var n="none"===this.messagesElement.style.display?0:i.getTotalHeight(this.messagesElement),r=this.size.height-n-i.getTotalHeight(this.searchWidgetsContainerElement);this.resultsElement.style.height=r+"px",this.tree.layout(r,this.size.width)}},t.prototype.layout=function(e){this.size=e,this.reLayout()},t.prototype.getControl=function(){return this.tree},t.prototype.isSearchSubmitted=function(){return this.searchSubmitted},t.prototype.isSearching=function(){return this.searching},t.prototype.allSearchFieldsClear=function(){return""===this.searchWidget.getReplaceValue()&&""===this.searchWidget.searchInput.getValue()},t.prototype.hasSearchResults=function(){return!this.viewModel.searchResult.isEmpty()},t.prototype.clearSearchResults=function(){this.viewModel.searchResult.clear(),this.showEmptyStage(),1===this.contextService.getWorkbenchState()&&this.showSearchWithoutFolderMessage(),this.searchWidget.clear(),this.viewModel.cancelSearch(),this.updateActions()},t.prototype.cancelSearch=function(){return!!this.viewModel.cancelSearch()&&(this.searchWidget.focus(),!0)},t.prototype.selectTreeIfNotSelected=function(){this.tree.getNode(null)&&(this.tree.domFocus(),0===this.tree.getSelection().length&&this.tree.focusNext())},t.prototype.getSearchTextFromEditor=function(e){if(!this.editorService.activeEditor)return null;if(i.isAncestor(document.activeElement,this.getContainer()))return null;var t=this.editorService.activeTextEditorWidget;if(g.isDiffEditor(t)&&(t=t.getOriginalEditor().hasTextFocus()?t.getOriginalEditor():t.getModifiedEditor()),!g.isCodeEditor(t)||!t.hasModel())return null;var n=t.getSelection();if(!n)return null;if(n.isEmpty()&&!this.searchWidget.searchInput.getValue()&&e){var r=t.getModel().getWordAtPosition(n.getStartPosition());if(r)return r.word}if(!n.isEmpty()){for(var o="",s=n.startLineNumber;s<=n.endLineNumber;s++){var a=t.getModel().getLineContent(s);s===n.endLineNumber&&(a=a.substring(0,n.endColumn-1)),s===n.startLineNumber&&(a=a.substring(n.startColumn-1)),s!==n.startLineNumber&&(a="\n"+a),o+=a}return o}return null},t.prototype.showsFileTypes=function(){return i.hasClass(this.queryDetails,"more")},t.prototype.toggleCaseSensitive=function(){this.searchWidget.searchInput.setCaseSensitive(!this.searchWidget.searchInput.getCaseSensitive()),this.onQueryChanged(!0)},t.prototype.toggleWholeWords=function(){this.searchWidget.searchInput.setWholeWords(!this.searchWidget.searchInput.getWholeWords()),this.onQueryChanged(!0)},t.prototype.toggleRegex=function(){this.searchWidget.searchInput.setRegex(!this.searchWidget.searchInput.getRegex()),this.onQueryChanged(!0)},t.prototype.toggleQueryDetails=function(e,t,n,r){void 0===e&&(e=!0);t=void 0===t?!i.hasClass(this.queryDetails,"more"):Boolean(t),this.viewletState["query.queryDetailsExpanded"]=t,n=Boolean(n),t?(this.toggleQueryDetailsButton.setAttribute("aria-expanded","true"),i.addClass(this.queryDetails,"more"),e&&(r?(this.inputPatternExcludes.focus(),this.inputPatternExcludes.select()):(this.inputPatternIncludes.focus(),this.inputPatternIncludes.select()))):(this.toggleQueryDetailsButton.setAttribute("aria-expanded","false"),i.removeClass(this.queryDetails,"more"),e&&this.searchWidget.focus()),!n&&this.size&&this.layout(this.size)},t.prototype.searchInFolders=function(e){var t=this,i=[],n=this.contextService.getWorkspace();if(e&&e.forEach(function(e){var r;if(2===t.contextService.getWorkbenchState())(r=Z.relativePath(n.folders[0].uri,e))&&"."!==r&&(r="./"+r);else{var o=t.contextService.getWorkspaceFolder(e);if(o){var s=o.name;if(1===n.folders.filter(function(e){return e.name===s}).length){var a=Z.relativePath(o.uri,e);r=""===a?"./"+o.name:"./"+o.name+"/"+a}else r=e.fsPath}}r&&i.push(r)}),!i.length||i.some(function(e){return"."===e}))return this.inputPatternIncludes.setValue(""),void this.searchWidget.focus();this.showsFileTypes()||this.toggleQueryDetails(!0,!0),this.inputPatternIncludes.setValue(i.join(", ")),this.searchWidget.focus(!1)},t.prototype.onQueryChanged=function(e){var i=this,n=this.searchWidget.searchInput.getRegex(),r=this.searchWidget.searchInput.getWholeWords(),o=this.searchWidget.searchInput.getCaseSensitive(),s=this.searchWidget.searchInput.getValue(),a=this.inputPatternExcludes.getValue().trim(),c=this.inputPatternIncludes.getValue().trim(),l=this.inputPatternExcludes.useExcludesAndIgnoreFiles();if(0!==s.length){var u,d={pattern:s,isRegExp:n,isCaseSensitive:o,isWordMatch:r},h=this.inputPatternExcludes.getValue(),p=this.inputPatternIncludes.getValue(),f=d.isRegExp?1e4:250,g={_reason:"searchView",extraFileResources:j.getOutOfWorkspaceEditorResources(this.editorService,this.contextService),maxResults:t.MAX_TEXT_RESULTS,disregardIgnoreFiles:!l||void 0,disregardExcludeSettings:!l||void 0,excludePattern:h,includePattern:p,previewOptions:{matchLines:1,charsPerLine:f},isSmartCase:this.configurationService.getValue().search.smartCase,expandPatterns:!0},v=this.contextService.getWorkspace().folders,m=function(e){i.searchWidget.searchInput.showMessage({content:e.message,type:3}),i.viewModel.searchResult.clear()};try{u=this.queryBuilder.text(d,v.map(function(e){return e.uri}),g)}catch(e){return void m(e)}this.validateQuery(u).then(function(){i.onQueryTriggered(u,g,a,c),e||i.searchWidget.focus(!1)},m)}},t.prototype.validateQuery=function(e){var t=this,i=e.folderQueries.map(function(e){return t.fileService.existsFile(e.folder)});return Promise.resolve(i).then(function(t){var i=e.folderQueries.filter(function(e,i){return t[i]});if(e.folderQueries.length&&!i.length){var n=e.folderQueries[0].folder.fsPath,r=v.localize(23,null,n);return Promise.reject(new Error(r))}e.folderQueries=i})},t.prototype.onQueryTriggered=function(e,t,i,n){var r=this;this.searchWidget.searchInput.onSearchSubmit(),this.inputPatternExcludes.onSearchSubmit(),this.inputPatternIncludes.onSearchSubmit(),this.viewModel.cancelSearch(),this.currentSearchQ=this.currentSearchQ.then(function(){return r.doSearch(e,t,i,n)}).then(function(){},function(){})},t.prototype.doSearch=function(e,t,n,o){var a=this,c=this.progressService.show(!0);this.searchWidget.searchInput.clearMessage(),this.searching=!0,setTimeout(function(){a.searching&&(a.updateActions(),a.updateTitleArea())},2e3),this.showEmptyStage();var l=function(e){if(a.searching=!1,c.done(),a.onSearchResultsChanged(),"alwaysCollapse"!==a.configurationService.getValue("search").collapseResults&&1===a.viewModel.searchResult.matches().length){var t=a.viewModel.searchResult.matches()[0];t.count()<50&&a.tree.expand(t)}a.viewModel.replaceString=a.searchWidget.getReplaceValue(),a.searchSubmitted=!0,a.updateActions(),a.updateTitleArea();var s=!a.viewModel.searchResult.isEmpty();if(e&&e.limitHit&&a.searchWidget.searchInput.showMessage({content:v.localize(24,null),type:2}),s)a.viewModel.searchResult.toggleHighlights(a.isVisible()),r.status(v.localize(34,null,a.viewModel.searchResult.count(),a.viewModel.searchResult.fileCount()));else{var l=!!n,u=!!o,d=void 0;d=e?u&&l?v.localize(26,null,o,n):u?v.localize(27,null,o):l?v.localize(28,null,n):v.localize(29,null):v.localize(25,null),r.status(d),i.hide(a.resultsElement);var h=a.clearMessage(),p=i.append(h,ee("p",void 0,d));if(e)if(u||l){g=i.append(p,ee("a.pointer.prominent",{tabindex:0},v.localize(31,null)));a.messageDisposables.push(i.addDisposableListener(g,i.EventType.CLICK,function(e){i.EventHelper.stop(e,!1),a.inputPatternExcludes.setValue(""),a.inputPatternIncludes.setValue(""),a.onQueryChanged()}))}else{var f=i.append(p,ee("a.pointer.prominent",{tabindex:0},v.localize(32,null)));a.addClickEvents(f,a.onOpenSettings)}else{var g=i.append(p,ee("a.pointer.prominent",void 0,v.localize(30,null)));a.messageDisposables.push(i.addDisposableListener(g,i.EventType.CLICK,function(e){i.EventHelper.stop(e,!1),a.onQueryChanged()}))}if(e){i.append(p,ee("span",void 0," - "));var m=i.append(p,ee("a.pointer.prominent",{tabindex:0},v.localize(33,null)));a.addClickEvents(m,a.onLearnMore)}1===a.contextService.getWorkbenchState()&&a.showSearchWithoutFolderMessage()}},u=0,d=setInterval(function(){if(a.searching){var e=a.viewModel.searchResult.fileCount();u!==e&&(u=e,a.refreshAndUpdateCount()),e>0&&a.updateActions()}else window.clearInterval(d)},100);return this.searchWidget.setReplaceAllActionState(!1),this.viewModel.search(e).then(l,function(e){return s.isPromiseCanceledError(e)?l(null):(a.searching=!1,a.updateActions(),a.updateTitleArea(),c.done(),a.searchWidget.searchInput.showMessage({content:e.message,type:3}),a.viewModel.searchResult.clear(),e.code!==k.SearchErrorCode.regexParseError||a.configurationService.getValue("search.usePCRE2")||a.showPcre2Hint(),Promise.resolve())})},t.prototype.showPcre2Hint=function(){var e=this;this.globalMemento.disablePcre2Hint||this.notificationService.prompt(x.Severity.Info,v.localize(35,null),[{label:v.localize(36,null),run:function(){return e.globalMemento.disablePcre2Hint=!0},isSecondary:!0},{label:v.localize(37,null),run:function(){return e.openSettings("search.usePCRE2")}}])},t.prototype.openSettings=function(e){var t={query:e};return 1!==this.contextService.getWorkbenchState()?this.preferencesService.openWorkspaceSettings(void 0,t):this.preferencesService.openGlobalSettings(void 0,t)},t.prototype.updateSearchResultCount=function(e){var t=this.viewModel.searchResult.fileCount();this.hasSearchResultsKey.set(t>0);var n="none"===this.messagesElement.style.display;if(t>0){var r=this.clearMessage(),o=this.buildResultCountMessage(this.viewModel.searchResult.count(),t);e&&(o+=v.localize(38,null)),i.append(r,ee("p",void 0,o)),this.reLayout()}else n||i.hide(this.messagesElement)},t.prototype.buildResultCountMessage=function(e,t){return 1===e&&1===t?v.localize(39,null,e,t):1===e?v.localize(40,null,e,t):1===t?v.localize(41,null,e,t):v.localize(42,null,e,t)},t.prototype.showSearchWithoutFolderMessage=function(){var e=this;this.searchWithoutFolderMessageElement=this.clearMessage();var t=i.append(this.searchWithoutFolderMessageElement,ee("p",void 0,v.localize(43,null))),n=i.append(t,ee("a.pointer.prominent",{tabindex:0},v.localize(44,null)));this.messageDisposables.push(i.addDisposableListener(n,i.EventType.CLICK,function(t){i.EventHelper.stop(t,!1);var n=d.isMacintosh?A.OpenFileFolderAction:A.OpenFolderAction,r=e.instantiationService.createInstance(n,n.ID,n.LABEL);e.actionRunner.run(r).then(function(){r.dispose()},function(e){r.dispose(),s.onUnexpectedError(e)})}))},t.prototype.showEmptyStage=function(){this.searchSubmitted=!1,this.updateActions(),i.hide(this.messagesElement),i.show(this.resultsElement),this.currentSelectedFileMatch=null},t.prototype.onFocus=function(e,t,i,n){return e instanceof G.Match?this.configurationService.getValue().search.useReplacePreview&&this.viewModel.isReplaceActive()&&this.viewModel.replaceString?this.replaceService.openReplacePreview(e,t,i,n):this.open(e,t,i,n):(this.viewModel.searchResult.rangeHighlightDecorations.removeHighlightRange(),Promise.resolve(!0))},t.prototype.open=function(e,t,i,n){var r=this,o=this.getSelectionFrom(e),a=e instanceof G.Match?e.parent().resource():e.resource();return this.editorService.openEditor({resource:a,options:{preserveFocus:t,pinned:n,selection:o,revealIfVisible:!0}},i?q.SIDE_GROUP:q.ACTIVE_GROUP).then(function(i){return i&&e instanceof G.Match&&t?r.viewModel.searchResult.rangeHighlightDecorations.highlightRange(i.getControl().getModel(),e.range()):r.viewModel.searchResult.rangeHighlightDecorations.removeHighlightRange(),i?r.editorGroupsService.activateGroup(i.group):Promise.resolve(null)},s.onUnexpectedError)},t.prototype.getSelectionFrom=function(e){var t=null;if(e instanceof G.Match&&(t=e),e instanceof G.FileMatch&&e.count()>0&&(t=e.matches()[e.matches().length-1]),t){var i=t.range();if(this.viewModel.isReplaceActive()&&this.viewModel.replaceString){var n=t.replaceString;return{startLineNumber:i.startLineNumber,startColumn:i.startColumn,endLineNumber:i.startLineNumber,endColumn:i.startColumn+n.length}}return i}},t.prototype.onUntitledDidChangeDirty=function(e){if(this.viewModel&&!this.untitledEditorService.isDirty(e))for(var t=this.viewModel.searchResult.matches(),i=0,n=t.length;i0,a=Array.isArray(i)&&i.length>0;return a||s?a&&!s&&Array.isArray(i)?this.doAddFolders(i,e,n):s&&!a?this.removeFolders(o):this.includesSingleFolderWorkspace(o)?this.createAndEnterWorkspace(i):3!==this.contextService.getWorkbenchState()?this.doAddFolders(i,e,n):this.doUpdateFolders(i,o,e,n):Promise.resolve()},e.prototype.doUpdateFolders=function(e,t,i,n){var r=this;return void 0===n&&(n=!1),this.contextService.updateFolders(e,t,i).then(function(){return null},function(e){return n?Promise.reject(e):r.handleWorkspaceConfigurationEditingError(e)})},e.prototype.addFolders=function(e,t){return void 0===t&&(t=!1),this.doAddFolders(e,void 0,t)},e.prototype.doAddFolders=function(e,t,i){var n=this;void 0===i&&(i=!1);var r=this.contextService.getWorkbenchState();if(3!==r){var o=this.contextService.getWorkspace().folders.map(function(e){return{uri:e.uri}});return o.splice.apply(o,["number"==typeof t?t:o.length,0].concat(e)),o=b.distinct(o,function(e){return _.isLinux?e.uri.toString():e.uri.toString().toLowerCase()}),1===r&&0===o.length||2===r&&1===o.length?Promise.resolve():this.createAndEnterWorkspace(o)}return this.contextService.addFolders(e,t).then(function(){return null},function(e){return i?Promise.reject(e):n.handleWorkspaceConfigurationEditingError(e)})},e.prototype.removeFolders=function(e,t){var i=this;return void 0===t&&(t=!1),this.includesSingleFolderWorkspace(e)?this.createAndEnterWorkspace([]):this.contextService.removeFolders(e).then(function(){return null},function(e){return t?Promise.reject(e):i.handleWorkspaceConfigurationEditingError(e)})},e.prototype.includesSingleFolderWorkspace=function(e){if(2===this.contextService.getWorkbenchState()){var t=this.contextService.getWorkspace().folders[0];return e.some(function(e){return S.isEqual(e,t.uri)})}return!1},e.prototype.createAndEnterWorkspace=function(e,t){return r(this,void 0,void 0,function(){var i;return o(this,function(n){switch(n.label){case 0:return t&&!this.isValidTargetWorkspacePath(t)?[2,Promise.reject(null)]:[4,this.workspaceService.createUntitledWorkspace(e)];case 1:return i=n.sent(),t?[4,this.saveWorkspaceAs(i,t)]:[3,3];case 2:return n.sent(),[3,4];case 3:t=i.configPath,n.label=4;case 4:return[2,this.enterWorkspace(t)]}})})},e.prototype.saveAndEnterWorkspace=function(e){return r(this,void 0,void 0,function(){var t;return o(this,function(i){switch(i.label){case 0:return this.isValidTargetWorkspacePath(e)&&(t=this.getCurrentWorkspaceIdentifier())?[4,this.saveWorkspaceAs(t,e)]:[2,Promise.reject(null)];case 1:return i.sent(),[2,this.enterWorkspace(e)]}})})},e.prototype.isValidTargetWorkspacePath=function(e){return r(this,void 0,void 0,function(){var t;return o(this,function(i){switch(i.label){case 0:return[4,this.windowsService.getWindows()];case 1:return i.sent().some(function(t){return!!t.workspace&&S.isEqual(t.workspace.configPath,e)})?(t={type:"info",buttons:[n.localize(7,null)],message:n.localize(8,null,S.basename(e)),detail:n.localize(9,null),noLink:!0},[2,this.windowService.showMessageBox(t).then(function(){return!1})]):[2,Promise.resolve(!0)]}})})},e.prototype.saveWorkspaceAs=function(e,t){return r(this,void 0,void 0,function(){var i,n,r;return o(this,function(o){switch(o.label){case 0:return i=e.configPath,S.isEqual(i,t)?[2,Promise.resolve(null)]:[4,this.fileSystemService.resolveContent(i)];case 1:return n=o.sent(),r=l.rewriteWorkspaceFileForNewLocation(n.value,i,t),[4,this.fileSystemService.createFile(t,r,{overwrite:!0})];case 2:return o.sent(),[2]}})})},e.prototype.handleWorkspaceConfigurationEditingError=function(e){switch(e.code){case 1:return this.onInvalidWorkspaceConfigurationFileError(),Promise.resolve();case 0:return this.onWorkspaceConfigurationFileDirtyError(),Promise.resolve()}return this.notificationService.error(e.message),Promise.resolve()},e.prototype.onInvalidWorkspaceConfigurationFileError=function(){var e=n.localize(10,null);this.askToOpenWorkspaceConfigurationFile(e)},e.prototype.onWorkspaceConfigurationFileDirtyError=function(){var e=n.localize(11,null);this.askToOpenWorkspaceConfigurationFile(e)},e.prototype.askToOpenWorkspaceConfigurationFile=function(e){var t=this;this.notificationService.prompt(C.Severity.Error,e,[{label:n.localize(12,null),run:function(){return t.commandService.executeCommand("workbench.action.openWorkspaceConfigFile")}}])},e.prototype.enterWorkspace=function(e){var t=this;if(this.environmentService.extensionTestsLocationURI)return Promise.reject(new Error("Entering a new workspace is not possible in tests."));this.extensionService.stopExtensionHost();var i=!1,n=function(){t.windowService.getConfiguration().remoteAuthority&&t.windowService.reloadWindow(),t.extensionService.startExtensionHost(),i=!0};return this.windowService.enterWorkspace(e).then(function(e){return e?t.migrate(e.workspace).then(function(){return t.backupFileService instanceof m.BackupFileService&&t.backupFileService.initialize(e.backupPath),t.contextService.initialize(e.workspace,n)}):Promise.resolve()}).then(void 0,function(e){return i||n(),Promise.reject(e)})},e.prototype.migrate=function(e){var t=this;return this.migrateStorage(e).then(function(){if(2===t.contextService.getWorkbenchState())return t.migrateWorkspaceSettings(e)})},e.prototype.migrateStorage=function(e){return this.storageService.migrate(e)},e.prototype.migrateWorkspaceSettings=function(e){return this.doCopyWorkspaceSettings(e,function(e){return 2===e.scope})},e.prototype.copyWorkspaceSettings=function(e){return this.doCopyWorkspaceSettings(e)},e.prototype.doCopyWorkspaceSettings=function(e,t){for(var i=h.Registry.as(d.Extensions.Configuration).getConfigurationProperties(),n={},r=0,o=this.workspaceConfigurationService.keys().workspace;r=0;i--){var n=e[i],r=t[i];if(n.scope!==r.scope)return!0;var o=n.settings,s=r.settings;if(o&&s){if(o.fontStyle!==s.fontStyle||o.foreground!==s.foreground||o.background!==s.background)return!0}else if(!o||!s)return!0}return!1},h.prototype._handleGrammarExtensionPointUser=function(e,t,n){if(!t.language||"string"==typeof t.language&&this._modeService.isRegisteredMode(t.language))if(t.scopeName&&"string"==typeof t.scopeName)if(t.path&&"string"==typeof t.path)if(!t.injectTo||Array.isArray(t.injectTo)&&!t.injectTo.some(function(e){return"string"!=typeof e}))if(!t.embeddedLanguages||d.isObject(t.embeddedLanguages))if(!t.tokenTypes||d.isObject(t.tokenTypes)){var r=u.joinPath(e,t.path);if(u.isEqualOrParent(r,e)||n.warn(i.localize(6,null,C.grammarsExtPoint.name,r.path,e.path)),this._scopeRegistry.register(t.scopeName,r,t.embeddedLanguages,t.tokenTypes),t.injectTo){for(var o=0,s=t.injectTo;o0,[4,this._getOrCreateGrammarRegistry()];case 1:return v=o.sent(),m=v[0],y=v[1],[4,m.loadGrammarWithConfiguration(t,f,{embeddedLanguages:r,tokenTypes:n.tokenTypes})];case 2:return b=o.sent(),[2,{languageId:f,grammar:b,initialState:y,containsEmbeddedLanguages:g}]}})})},h=p([f(0,y.IModeService),f(1,E.IWorkbenchThemeService),f(2,b.IFileService),f(3,S.INotificationService),f(4,_.ILogService),f(5,D.IConfigurationService)],h)}(x.Disposable);t.TextMateService=R;var O=function(){function e(e,t,i,n,r,o,s){this.notificationService=o,this.configurationService=s,this._scopeRegistry=e,this._languageId=t,this._grammar=i,this._initialState=n,this._containsEmbeddedLanguages=r,this._seenLanguages=[],this._maxTokenizationLineLength=s.getValue("editor.maxTokenizationLineLength")}return e.prototype.getInitialState=function(){return this._initialState},e.prototype.tokenize=function(e,t,i){throw new Error("Not supported!")},e.prototype.tokenize2=function(e,t,n){if(0!==n)throw new Error("Unexpected: offsetDelta should be 0.");if(e.length>=this._maxTokenizationLineLength)return this._tokenizationWarningAlreadyShown||(this._tokenizationWarningAlreadyShown=!0,this.notificationService.warn(i.localize(9,null))),console.log("Line ("+e.substr(0,15)+"...): longer than "+this._maxTokenizationLineLength+" characters, tokenization skipped."),v.nullTokenize2(this._languageId,e,t,n);var r,o=this._grammar.tokenizeLine2(e,t);if(this._containsEmbeddedLanguages)for(var s=this._seenLanguages,a=o.tokens,c=0,l=a.length>>>1;c>16||33188;return[448,56,7].map(function(e){return t&e}).reduce(function(e,t){return e+t},61440&t)}(d);l=o.createCancelablePromise(function(e){return g.queue(function(){return m.then(function(o){return function(e,t,o,a,c,l){var d=n.dirname(t),h=n.join(a,d);if(0!==h.indexOf(a))return Promise.reject(new Error(i.localize(0,null,t)));var p,f=n.join(a,t);return u.Event.once(l.onCancellationRequested)(function(){p&&p.destroy()}),Promise.resolve(s.mkdirp(h,void 0,l)).then(function(){return new Promise(function(t,i){if(!l.isCancellationRequested)try{(p=r.createWriteStream(f,{mode:o})).once("close",function(){return t()}),p.once("error",i),e.once("error",i),e.pipe(p)}catch(e){i(e)}})})}(o,h,y,t,0,e).then(function(){return v(e)})})}).then(null,f)})}}else v(c)})})}function p(e,t){return void 0===t&&(t=!1),o.nfcall(c.open,e,t?{lazyEntries:!0}:void 0).then(void 0,function(e){return Promise.reject(function(e){if(e instanceof d)return e;var t=void 0;return/end of central directory record signature not found/.test(e.message)&&(t="CorruptZip"),new d(t,e)}(e))})}t.ExtractError=d,t.zip=function(e,t){return new Promise(function(i,n){var o=new l.ZipFile;t.forEach(function(e){e.contents?o.addBuffer("string"==typeof e.contents?Buffer.from(e.contents,"utf8"):e.contents,e.path):e.localPath&&o.addFile(e.localPath,e.path)}),o.end();var s=r.createWriteStream(e);o.outputStream.pipe(s),o.outputStream.once("error",n),s.once("error",n),s.once("finish",function(){return i(e)})})},t.extract=function(e,t,i,n){void 0===i&&(i={});var r=new RegExp(i.sourcePath?"^"+i.sourcePath:""),o=p(e,!0);return i.overwrite&&(o=o.then(function(e){return s.rimraf(t).then(function(){return e})})),o.then(function(e){return h(e,t,{sourcePathRegex:r},n)})},t.buffer=function(e,t){return function(e,t){return p(e).then(function(e){return new Promise(function(n,r){e.on("entry",function(i){i.fileName===t&&o.ninvoke(e,e.openReadStream,i).then(function(e){return n(e)},function(e){return r(e)})}),e.once("close",function(){return r(new Error(i.localize(2,null,t)))})})})}(e,t).then(function(e){return new Promise(function(t,i){var n=[];e.once("error",i),e.on("data",function(e){return n.push(e)}),e.on("end",function(){return t(Buffer.concat(n))})})})}}),define(i[1014],n([0,1,1049,479]),function(e,t,i,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getManifest=function(e){return i.buffer(e,"extension/package.json").then(function(e){try{return JSON.parse(e.toString("utf8"))}catch(e){throw new Error(n.localize(0,null))}})}}),define(i[871],n([0,1,5,111,17,103,2,18,36,293,1014,64,123,609,730,39]),function(e,t,i,n,s,c,l,u,d,h,g,v,m,y,b,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var S=function(e){function t(t,n,r,o,s){var a=e.call(this)||this;return a.extensionManagementServerService=t,a.extensionGalleryService=n,a.configurationService=r,a.remoteAgentService=o,a.logService=s,a.servers=a.extensionManagementServerService.remoteExtensionManagementServer?[a.extensionManagementServerService.localExtensionManagementServer,a.extensionManagementServerService.remoteExtensionManagementServer]:[a.extensionManagementServerService.localExtensionManagementServer],a.onInstallExtension=a._register(a.servers.reduce(function(e,t){return e.add(t.extensionManagementService.onInstallExtension),e},new i.EventMultiplexer)).event,a.onDidInstallExtension=a._register(a.servers.reduce(function(e,t){return e.add(t.extensionManagementService.onDidInstallExtension),e},new i.EventMultiplexer)).event,a.onUninstallExtension=a._register(a.servers.reduce(function(e,t){return e.add(t.extensionManagementService.onUninstallExtension),e},new i.EventMultiplexer)).event,a.onDidUninstallExtension=a._register(a.servers.reduce(function(e,t){return e.add(t.extensionManagementService.onDidUninstallExtension),e},new i.EventMultiplexer)).event,a}return a(t,e),t.prototype.getInstalled=function(e){return Promise.all(this.servers.map(function(t){return t.extensionManagementService.getInstalled(e)})).then(function(e){return s.flatten(e)})},t.prototype.uninstall=function(e,t){return r(this,void 0,void 0,function(){var i;return o(this,function(n){switch(n.label){case 0:return this.extensionManagementServerService.remoteExtensionManagementServer?(i=this.getServer(e))?[4,this.hasToSyncExtensions()]:[2,Promise.reject("Invalid location "+e.location.toString())]:[3,2];case 1:return n.sent()||c.isLanguagePackExtension(e.manifest)?[2,this.uninstallEverywhere(e,t)]:[2,this.uninstallInServer(e,i,t)];case 2:return[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.uninstall(e,t)]}})})},t.prototype.uninstallEverywhere=function(e,t){return r(this,void 0,void 0,function(){var t,i,n,r;return o(this,function(o){switch(o.label){case 0:return(t=this.getServer(e))?(i=t.extensionManagementService.uninstall(e),[4,(n=t===this.extensionManagementServerService.localExtensionManagementServer?this.extensionManagementServerService.remoteExtensionManagementServer:this.extensionManagementServerService.localExtensionManagementServer).extensionManagementService.getInstalled(1)]):[2,Promise.reject("Invalid location "+e.location.toString())];case 1:return r=o.sent(),(e=r.filter(function(t){return m.areSameExtensions(t.identifier,e.identifier)})[0])?[4,n.extensionManagementService.uninstall(e)]:[3,3];case 2:o.sent(),o.label=3;case 3:return[2,i]}})})},t.prototype.uninstallInServer=function(e,t,i){return r(this,void 0,void 0,function(){var n,r,s=this;return o(this,function(o){switch(o.label){case 0:return t!==this.extensionManagementServerService.localExtensionManagementServer?[3,2]:[4,this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.getInstalled(1)];case 1:if(n=o.sent(),(r=n.filter(function(t){return!b.isUIExtension(t.manifest,s.configurationService)&&t.manifest.extensionDependencies&&t.manifest.extensionDependencies.some(function(t){return m.areSameExtensions({id:t},e.identifier)})})).length)return[2,Promise.reject(new Error(this.getDependentsErrorMessage(e,r)))];o.label=2;case 2:return[2,t.extensionManagementService.uninstall(e,i)]}})})},t.prototype.getDependentsErrorMessage=function(e,t){return 1===t.length?y.localize(0,null,e.manifest.displayName||e.manifest.name,t[0].manifest.displayName||t[0].manifest.name):2===t.length?y.localize(1,null,e.manifest.displayName||e.manifest.name,t[0].manifest.displayName||t[0].manifest.name,t[1].manifest.displayName||t[1].manifest.name):y.localize(2,null,e.manifest.displayName||e.manifest.name,t[0].manifest.displayName||t[0].manifest.name,t[1].manifest.displayName||t[1].manifest.name)},t.prototype.reinstallFromGallery=function(e){var t=this.getServer(e);return t?t.extensionManagementService.reinstallFromGallery(e):Promise.reject("Invalid location "+e.location.toString())},t.prototype.updateMetadata=function(e,t){var i=this.getServer(e);return i?i.extensionManagementService.updateMetadata(e,t):Promise.reject("Invalid location "+e.location.toString())},t.prototype.zip=function(e){throw new Error("Not Supported")},t.prototype.unzip=function(e,t){return Promise.all(this.servers.map(function(i){return i.extensionManagementService.unzip(e,t)})).then(function(e){return e[0]})},t.prototype.install=function(e){return r(this,void 0,void 0,function(){var t,i,n;return o(this,function(r){switch(r.label){case 0:return this.extensionManagementServerService.remoteExtensionManagementServer?[4,this.hasToSyncExtensions()]:[3,6];case 1:return t=r.sent(),[4,g.getManifest(e.fsPath)];case 2:return i=r.sent(),t||c.isLanguagePackExtension(i)?[4,Promise.all(this.servers.map(function(t){return t.extensionManagementService.install(e)}))]:[3,4];case 3:return[2,r.sent()[0]];case 4:return b.isUIExtension(i,this.configurationService)?[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.install(e)]:(n=this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.install(e),[4,this.installUIDependencies(i)]);case 5:return r.sent(),[2,n];case 6:return[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.install(e)]}})})},t.prototype.installFromGallery=function(e){return r(this,void 0,void 0,function(){var t,i,n,r;return o(this,function(o){switch(o.label){case 0:return this.extensionManagementServerService.remoteExtensionManagementServer?[4,Promise.all([this.extensionGalleryService.getManifest(e,d.CancellationToken.None),this.hasToSyncExtensions()])]:[3,4];case 1:return t=o.sent(),i=t[0],n=t[1],i?n||c.isLanguagePackExtension(i)?[2,Promise.all(this.servers.map(function(t){return t.extensionManagementService.installFromGallery(e)})).then(function(){})]:b.isUIExtension(i,this.configurationService)?[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.installFromGallery(e)]:(r=this.extensionManagementServerService.remoteExtensionManagementServer.extensionManagementService.installFromGallery(e),[4,this.installUIDependencies(i)]):[3,3];case 2:return o.sent(),[2,r];case 3:return this.logService.info("Manifest was not found. Hence installing only in local server"),[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.installFromGallery(e)];case 4:return[2,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.installFromGallery(e)]}})})},t.prototype.installUIDependencies=function(e){return r(this,void 0,void 0,function(){var t,i=this;return o(this,function(n){switch(n.label){case 0:return e.extensionDependencies&&e.extensionDependencies.length?[4,this.extensionGalleryService.loadAllDependencies(e.extensionDependencies.map(function(e){return{id:e}}),d.CancellationToken.None)]:[3,3];case 1:return(t=n.sent()).length?[4,Promise.all(t.map(function(e){return r(i,void 0,void 0,function(){var t;return o(this,function(i){switch(i.label){case 0:return[4,this.extensionGalleryService.getManifest(e,d.CancellationToken.None)];case 1:return(t=i.sent())&&b.isUIExtension(t,this.configurationService)?[4,this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.installFromGallery(e)]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2]}})})}))]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.getExtensionsReport=function(){return this.extensionManagementServerService.localExtensionManagementServer.extensionManagementService.getExtensionsReport()},t.prototype.getServer=function(e){return this.extensionManagementServerService.getExtensionManagementServer(e.location)},t.prototype.hasToSyncExtensions=function(){return r(this,void 0,void 0,function(){var e,t;return o(this,function(i){switch(i.label){case 0:return this.extensionManagementServerService.remoteExtensionManagementServer&&(e=this.remoteAgentService.getConnection())?[4,e.getEnvironment()]:[2,!1];case 1:return(t=i.sent())?[2,t.syncExtensions]:[2,!1]}})})},t=p([f(0,n.IExtensionManagementServerService),f(1,n.IExtensionGalleryService),f(2,u.IConfigurationService),f(3,h.IRemoteAgentService),f(4,v.ILogService)],t)}(l.Disposable);t.MultiExtensionManagementService=S,_.registerSingleton(n.IExtensionManagementService,S)}),define(i[884],n([0,1,334,39,835,38,801,93,694,15,377,42,749,97,750,130,865,51,717,125,680,111,891,1145,431,1060,999,1072,383,980,1212,1e3,1106,430,1188,1187,1064,444,1111,1071,80,1154,288,1003,1170,390,871,1073,1197,378,1105,1221,436,1075,1229,1227,1135,1201,1005,1215,382,1007,157,403,963,960,404,1086,1117,1195,1070,452,1078,424,1128,1205,1079,1165,940,965]),function(e,t,i,n,r,o,s,a,c,l,u,d,h,p,f,g,v,m,y,b,_,S,C){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.registerSingleton(o.IMenuService,s.MenuService,!0),n.registerSingleton(a.IOpenerService,c.OpenerService,!0),n.registerSingleton(b.IEditorWorkerService,_.EditorWorkerServiceImpl),n.registerSingleton(i.IMarkerDecorationsService,r.MarkerDecorationsService),n.registerSingleton(l.IContextKeyService,u.ContextKeyService),n.registerSingleton(d.IModelService,h.ModelServiceImpl,!0),n.registerSingleton(S.IExtensionEnablementService,C.ExtensionEnablementService,!0),n.registerSingleton(p.ITextResourceConfigurationService,f.TextResourceConfigurationService),n.registerSingleton(g.IAccessibilityService,v.AccessibilityService,!0),n.registerSingleton(m.IContextViewService,y.ContextViewService,!0)}),define(i[1241],n([0,1,1211,889,799,884]),function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}(i)})}).call(this); //# sourceMappingURL=../../../min-maps/vs/editor/codesandbox.editor.main.js.map diff --git a/standalone-packages/vscode-extensions/out/bundles/main.min.json b/standalone-packages/vscode-extensions/out/bundles/main.min.json index 88fcd88499b..cf2b37edd81 100644 --- a/standalone-packages/vscode-extensions/out/bundles/main.min.json +++ b/standalone-packages/vscode-extensions/out/bundles/main.min.json @@ -1 +1 @@ -{"/ngryman.codesandbox-theme-0.0.1/themes/CodeSandbox-color-theme.json":36544,"/codesandbox-black-0.0.1/themes/codesandbox-black.json":47352,"/index.json":742387,"/adamgirton.gloom-0.1.8/package.json":"{\"name\":\"gloom\",\"displayName\":\"Gloom\",\"description\":\"A port of Atom's Gloom syntax theme for VS Code\",\"version\":\"0.1.8\",\"publisher\":\"adamgirton\",\"bugs\":{\"url\":\"https://github.com/agirton/gloom/issues\"},\"homepage\":\"https://github.com/agirton/gloom\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/agirton/gloom\"},\"engines\":{\"vscode\":\"^1.10.0\"},\"categories\":[\"Themes\"],\"keywords\":[\"syntax\",\"theme\",\"gloom\",\"vscode\"],\"license\":\"MIT\",\"icon\":\"icon.png\",\"contributes\":{\"themes\":[{\"label\":\"Gloom\",\"uiTheme\":\"vs-dark\",\"path\":\"./themes/Gloom.json\"}]},\"__metadata\":{\"id\":\"a7e7afbe-0b7c-4aaf-be0e-097ad10052d3\",\"publisherId\":\"5ad2ad23-adbb-4efc-9b55-151a84048570\",\"publisherDisplayName\":\"Adam Girton\"}}","/ahmadawais.shades-of-purple-4.10.0/package.json":"{\"name\":\"shades-of-purple\",\"displayName\":\"Shades of Purple\",\"description\":\"⚡ A professional theme with hand-picked & bold shades of purple 🦄 to go along with your VS Code. Reviewed by several designers and 65+ versions released to keep it updated. One of the best VSCode themes on VS Code Marketplace. Part of VSCode.pro course.\",\"version\":\"4.10.0\",\"publisher\":\"ahmadawais\",\"engines\":{\"vscode\":\"^1.15.0\"},\"icon\":\"images/logo.png\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/ahmadawais/shades-of-purple-vscode\"},\"galleryBanner\":{\"color\":\"#222145\",\"theme\":\"dark\"},\"categories\":[\"Themes\"],\"keywords\":[\"Shades of Purple\",\"Dark Theme\",\"VSCode Power User\",\"Shade of Purple\",\"Cobalt\"],\"contributes\":{\"themes\":[{\"label\":\"Shades of Purple\",\"uiTheme\":\"vs-dark\",\"path\":\"./themes/shades-of-purple-color-theme.json\"}]},\"devDependencies\":{\"auto-changelog\":\"^1.8.0\",\"nodemon\":\"^1.18.3\",\"release-it\":\"^7.4.8\"},\"auto-changelog\":{\"output\":\"CHANGELOG.md\",\"template\":\".clrc.hbs\",\"commitLimit\":false,\"package\":true,\"replaceText\":{\"FIX: \":\"\",\"NEW: \":\"\",\"IMPROVE: \":\"\",\"DOC: \":\"\"}},\"scripts\":{\"start\":\"nodemon --exec vsce package\",\"log\":\"auto-changelog && git add . && git ci -m ' 📖 DOC: Update the changelog' && git push\",\"release\":\"release-it && npx vsce publish\",\"release-major\":\"release-it major && npx vsce publish\",\"release-dry\":\"release-it --dry-run\"},\"__metadata\":{\"id\":\"431aa1a8-74f4-43d5-a83b-f4960510da5f\",\"publisherId\":\"530c7464-efca-4776-9142-c6f0aeb4084e\",\"publisherDisplayName\":\"Ahmad Awais ⚡\"}}","/akamud.vscode-theme-onedark-2.1.0/package.json":"{\"name\":\"vscode-theme-onedark\",\"displayName\":\"Atom One Dark Theme\",\"description\":\"One Dark Theme based on Atom\",\"version\":\"2.1.0\",\"publisher\":\"akamud\",\"license\":\"MIT\",\"galleryBanner\":{\"color\":\"#282C34\",\"theme\":\"dark\"},\"engines\":{\"vscode\":\"^1.12.0\"},\"categories\":[\"Themes\"],\"keywords\":[\"atom\",\"theme\",\"dark\",\"one dark\"],\"icon\":\"icon.png\",\"contributes\":{\"themes\":[{\"label\":\"Atom One Dark\",\"uiTheme\":\"vs-dark\",\"path\":\"./themes/OneDark.json\"}]},\"bugs\":{\"url\":\"https://github.com/akamud/vscode-theme-onedark/issues\",\"email\":\"muddibr@gmail.com\"},\"homepage\":\"https://github.com/akamud/vscode-theme-onedark\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/akamud/vscode-theme-onedark\"},\"badges\":[{\"url\":\"https://vsmarketplacebadge.apphb.com/version/akamud.vscode-theme-onedark.svg\",\"href\":\"https://marketplace.visualstudio.com/items/akamud.vscode-theme-onedark\",\"description\":\"Extension version\"},{\"url\":\"https://vsmarketplacebadge.apphb.com/installs/akamud.vscode-theme-onedark.svg\",\"href\":\"https://marketplace.visualstudio.com/items/akamud.vscode-theme-onedark\",\"description\":\"Extension installs\"},{\"url\":\"https://vsmarketplacebadge.apphb.com/rating/akamud.vscode-theme-onedark.svg\",\"href\":\"https://marketplace.visualstudio.com/items/akamud.vscode-theme-onedark\",\"description\":\"Extension Rating\"}],\"__metadata\":{\"id\":\"9b2c953d-6ad4-46d1-b18e-7e5992d1d8a6\",\"publisherId\":\"1a680e61-b64e-4eff-bbbb-2085b0618f52\",\"publisherDisplayName\":\"Mahmoud Ali\"}}","/akamud.vscode-theme-onelight-2.1.0/package.json":"{\"name\":\"vscode-theme-onelight\",\"displayName\":\"Atom One Light Theme\",\"description\":\"One Light Theme based on Atom\",\"version\":\"2.1.0\",\"publisher\":\"akamud\",\"license\":\"MIT\",\"galleryBanner\":{\"color\":\"#E8E8E8\",\"theme\":\"light\"},\"engines\":{\"vscode\":\"^1.12.0\"},\"categories\":[\"Themes\"],\"keywords\":[\"atom\",\"theme\",\"light\",\"one light\"],\"icon\":\"icon.png\",\"contributes\":{\"themes\":[{\"label\":\"Atom One Light\",\"uiTheme\":\"vs\",\"path\":\"./themes/OneLight.json\"}]},\"bugs\":{\"url\":\"https://github.com/akamud/vscode-theme-onelight/issues\",\"email\":\"muddibr@gmail.com\"},\"homepage\":\"https://github.com/akamud/vscode-theme-onelight\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/akamud/vscode-theme-onelight\"},\"badges\":[{\"url\":\"https://vsmarketplacebadge.apphb.com/version/akamud.vscode-theme-onelight.svg\",\"href\":\"https://marketplace.visualstudio.com/items/akamud.vscode-theme-onelight\",\"description\":\"Extension version\"},{\"url\":\"https://vsmarketplacebadge.apphb.com/installs/akamud.vscode-theme-onelight.svg\",\"href\":\"https://marketplace.visualstudio.com/items/akamud.vscode-theme-onelight\",\"description\":\"Extension installs\"},{\"url\":\"https://vsmarketplacebadge.apphb.com/rating/akamud.vscode-theme-onelight.svg\",\"href\":\"https://marketplace.visualstudio.com/items/akamud.vscode-theme-onelight\",\"description\":\"Extension Rating\"}],\"__metadata\":{\"id\":\"ee33fd31-7bb4-4252-8368-fdd5bcd94cf8\",\"publisherId\":\"1a680e61-b64e-4eff-bbbb-2085b0618f52\",\"publisherDisplayName\":\"Mahmoud Ali\"}}","/astro-build.astro-vscode/package.json":"{\"name\":\"astro-vscode\",\"displayName\":\"Astro\",\"description\":\"Language support for Astro\",\"icon\":\"assets/icon.png\",\"type\":\"commonjs\",\"galleryBanner\":{\"color\":\"#FFBE2D\",\"theme\":\"dark\"},\"version\":\"0.5.0\",\"author\":\"Astro\",\"license\":\"MIT\",\"publisher\":\"astro-build\",\"private\":true,\"scripts\":{\"vscode:prepublish\":\"yarn build\",\"vscode:publish\":\"node ./scripts/publish.mjs\",\"build\":\"astro-scripts build \\\"src/**/*.ts\\\" && tsc -p tsconfig.json\",\"dev\":\"astro-scripts dev \\\"src/**/*.ts\\\"\"},\"engines\":{\"vscode\":\"^1.52.0\"},\"dependencies\":{\"@astrojs/language-server\":\"0.5.0\",\"vscode-emmet-helper\":\"2.1.2\",\"vscode-html-languageservice\":\"^3.0.3\",\"vscode-languageclient\":\"~7.0.0\"},\"devDependencies\":{\"@types/vscode\":\"^1.52.0\",\"astro-scripts\":\"file:../../scripts\",\"execa\":\"^5.0.0\"},\"files\":[\"languages/\",\"syntaxes/\"],\"repository\":{\"type\":\"git\",\"directory\":\"vscode\",\"url\":\"https://github.com/snowpackjs/astro\"},\"contributes\":{\"configuration\":{\"type\":\"object\",\"title\":\"Astro configuration\",\"properties\":{\"astro.trace.server\":{\"scope\":\"window\",\"type\":\"string\",\"enum\":[\"off\",\"messages\",\"verbose\"],\"default\":\"off\",\"description\":\"Traces the communication between VS Code and the language server.\"}}},\"languages\":[{\"id\":\"astro\",\"extensions\":[\".astro\"],\"aliases\":[\"Astro\"],\"configuration\":\"./languages/astro-language-configuration.json\"},{\"id\":\"astro-markdown\",\"aliases\":[\"Astro Markdown\"],\"configuration\":\"./languages/astro-markdown-language-configuration.json\"}],\"grammars\":[{\"language\":\"astro\",\"scopeName\":\"text.html.astro\",\"path\":\"./syntaxes/astro.tmLanguage.json\",\"embeddedLanguages\":{\"text.html.astro\":\"astro\",\"text.html.markdown.astro\":\"astro-markdown\",\"text.html\":\"html\",\"source.css\":\"css\",\"source.scss\":\"scss\",\"source.sass\":\"sass\",\"source.tsx\":\"typescriptreact\",\"meta.embedded.block.frontmatter\":\"typescriptreact\"}},{\"language\":\"astro-markdown\",\"scopeName\":\"text.html.markdown.astro\",\"path\":\"./syntaxes/astro-markdown.tmLanguage.json\",\"injectTo\":[\"text.html.astro\"],\"embeddedLanguages\":{\"text.html.astro\":\"astro\",\"text.html.markdown.astro\":\"astro-markdown\",\"text.html.markdown\":\"markdown\",\"source.tsx\":\"typescriptreact\",\"source.js\":\"javascript\",\"source.css\":\"css\",\"meta.embedded.block.css\":\"css\",\"meta.embedded.block.astro\":\"astro\",\"meta.embedded.block.ini\":\"ini\",\"meta.embedded.block.java\":\"java\",\"meta.embedded.block.lua\":\"lua\",\"meta.embedded.block.makefile\":\"makefile\",\"meta.embedded.block.perl\":\"perl\",\"meta.embedded.block.r\":\"r\",\"meta.embedded.block.ruby\":\"ruby\",\"meta.embedded.block.php\":\"php\",\"meta.embedded.block.sql\":\"sql\",\"meta.embedded.block.vs_net\":\"vs_net\",\"meta.embedded.block.xml\":\"xml\",\"meta.embedded.block.xsl\":\"xsl\",\"meta.embedded.block.yaml\":\"yaml\",\"meta.embedded.block.dosbatch\":\"dosbatch\",\"meta.embedded.block.clojure\":\"clojure\",\"meta.embedded.block.coffee\":\"coffee\",\"meta.embedded.block.c\":\"c\",\"meta.embedded.block.cpp\":\"cpp\",\"meta.embedded.block.diff\":\"diff\",\"meta.embedded.block.dockerfile\":\"dockerfile\",\"meta.embedded.block.go\":\"go\",\"meta.embedded.block.groovy\":\"groovy\",\"meta.embedded.block.pug\":\"jade\",\"meta.embedded.block.javascript\":\"javascript\",\"meta.embedded.block.json\":\"json\",\"meta.embedded.block.less\":\"less\",\"meta.embedded.block.objc\":\"objc\",\"meta.embedded.block.scss\":\"scss\",\"meta.embedded.block.perl6\":\"perl6\",\"meta.embedded.block.powershell\":\"powershell\",\"meta.embedded.block.python\":\"python\",\"meta.embedded.block.rust\":\"rust\",\"meta.embedded.block.scala\":\"scala\",\"meta.embedded.block.shellscript\":\"shellscript\",\"meta.embedded.block.typescript\":\"typescript\",\"meta.embedded.block.typescriptreact\":\"typescriptreact\",\"meta.embedded.block.csharp\":\"csharp\",\"meta.embedded.block.fsharp\":\"fsharp\"}}]}}","/bat/package.json":"{\"name\":\"bat\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js mmims/language-batchfile grammars/batchfile.cson ./syntaxes/batchfile.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"bat\",\"extensions\":[\".bat\",\".cmd\"],\"aliases\":[\"Batch\",\"bat\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"bat\",\"scopeName\":\"source.batchfile\",\"path\":\"./syntaxes/batchfile.tmLanguage.json\"}],\"snippets\":[{\"language\":\"bat\",\"path\":\"./snippets/batchfile.snippets.json\"}]}}","/bierner.comment-tagged-templates-0.3.1/package.json":"{\"name\":\"comment-tagged-templates\",\"displayName\":\"Comment tagged templates\",\"description\":\"Syntax highlighting for tagged template strings using comments to specify language\",\"version\":\"0.3.1\",\"publisher\":\"bierner\",\"galleryBanner\":{\"color\":\"#ffffff\",\"theme\":\"light\"},\"repository\":{\"url\":\"https://github.com/mjbvz/vscode-comment-tagged-templates.git\"},\"bugs\":{\"url\":\"https://github.com/mjbvz/vscode-comment-tagged-templates/issues\"},\"engines\":{\"vscode\":\"^1.20.0\"},\"categories\":[\"Programming Languages\"],\"keywords\":[\"javascript\",\"typescript\",\"tagged\",\"template\",\"embedded\"],\"contributes\":{\"grammars\":[{\"injectTo\":[\"source.js\",\"source.js.jsx\",\"source.jsx\",\"source.ts\",\"source.tsx\",\"text.html.basic\",\"text.html.derivative\",\"text.html.markdown\"],\"scopeName\":\"inline.template-tagged-languages\",\"path\":\"./syntaxes/grammar.json\",\"embeddedLanguages\":{\"meta.embedded.block.css\":\"css\",\"meta.embedded.block.basic\":\"html\",\"meta.embedded.block.ini\":\"ini\",\"meta.embedded.block.java\":\"java\",\"meta.embedded.block.lua\":\"lua\",\"meta.embedded.block.makefile\":\"makefile\",\"meta.embedded.block.perl\":\"perl\",\"meta.embedded.block.r\":\"r\",\"meta.embedded.block.ruby\":\"ruby\",\"meta.embedded.block.php\":\"php\",\"meta.embedded.block.sql\":\"sql\",\"meta.embedded.block.vs_net\":\"vs_net\",\"meta.embedded.block.xml\":\"xml\",\"meta.embedded.block.xsl\":\"xsl\",\"meta.embedded.block.yaml\":\"yaml\",\"meta.embedded.block.dosbatch\":\"dosbatch\",\"meta.embedded.block.clojure\":\"clojure\",\"meta.embedded.block.coffee\":\"coffee\",\"meta.embedded.block.c\":\"c\",\"meta.embedded.block.cpp\":\"cpp\",\"meta.embedded.block.diff\":\"diff\",\"meta.embedded.block.dockerfile\":\"dockerfile\",\"meta.embedded.block.go\":\"go\",\"meta.embedded.block.graphql\":\"graphql\",\"meta.embedded.block.groovy\":\"groovy\",\"meta.embedded.block.pug\":\"pug\",\"meta.embedded.block.js\":\"javascript\",\"meta.embedded.block.json\":\"json\",\"meta.embedded.block.less\":\"less\",\"meta.embedded.block.md\":\"markdown\",\"meta.embedded.block.objc\":\"objc\",\"meta.embedded.block.scss\":\"scss\",\"meta.embedded.block.perl6\":\"perl6\",\"meta.embedded.block.powershell\":\"powershell\",\"meta.embedded.block.python\":\"python\",\"meta.embedded.block.rust\":\"rust\",\"meta.embedded.block.scala\":\"scala\",\"meta.embedded.block.shell\":\"shellscript\",\"meta.embedded.block.ts\":\"typescript\",\"meta.embedded.block.tsx\":\"typescriptreact\",\"meta.embedded.block.csharp\":\"csharp\",\"meta.embedded.block.fsharp\":\"fsharp\",\"meta.embedded.block.dart\":\"dart\",\"meta.embedded.block.glsl\":\"glsl\"}},{\"injectTo\":[\"source.js\",\"source.js.jsx\",\"source.jsx\",\"source.ts\",\"source.tsx\",\"text.html.basic\",\"text.html.derivative\",\"text.html.markdown\"],\"scopeName\":\"inline.template-tagged-languages.reinjection\",\"path\":\"./syntaxes/reinject-grammar.json\",\"embeddedLanguages\":{\"meta.template.expression.ts\":\"typescript\"}}]},\"devDependencies\":{\"vscode\":\"^1.1.37\"},\"scripts\":{\"build\":\"node ./build/build\",\"getEmbedded\":\"node ./build/getEmbedded\",\"test\":\"node ./node_modules/vscode/bin/test ./test\"},\"__metadata\":{\"id\":\"700f8472-f3c3-4f26-9fef-c6ad8e5fafe8\",\"publisherId\":\"f164f116-e2aa-496b-84dc-2451248e8beb\",\"publisherDisplayName\":\"Matt Bierner\"}}","/bungcip.better-toml-0.3.2/package.json":"{\"name\":\"better-toml\",\"displayName\":\"Better TOML\",\"description\":\"Better TOML Language support\",\"author\":\"Gigih Aji Ibrahim \",\"icon\":\"icon.png\",\"version\":\"0.3.2\",\"publisher\":\"bungcip\",\"license\":\"MIT\",\"homepage\":\"https://github.com/bungcip/better-toml/blob/master/README.md\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/bungcip/better-toml.git\"},\"bugs\":{\"url\":\"https://github.com/bungcip/better-toml/issues\",\"email\":\"bungcip@gmail.com\"},\"engines\":{\"vscode\":\"^1.18.0\"},\"categories\":[\"Languages\"],\"keywords\":[\"toml\"],\"activationEvents\":[\"onLanguage:toml\"],\"main\":\"./out/src/extension\",\"contributes\":{\"languages\":[{\"id\":\"toml\",\"aliases\":[\"TOML\",\"toml\"],\"extensions\":[\".toml\"],\"mimetypes\":[\"text/x-toml\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"toml\",\"scopeName\":\"source.toml\",\"path\":\"./syntaxes/TOML.tmLanguage\"},{\"scopeName\":\"markdown.toml.frontmatter.codeblock\",\"path\":\"./syntaxes/TOML.frontMatter.tmLanguage\",\"injectTo\":[\"text.html.markdown\"]}]},\"scripts\":{\"vscode:prepublish\":\"tsc -p ./\",\"compile\":\"tsc -watch -p ./\",\"postinstall\":\"node ./node_modules/vscode/bin/install\"},\"dependencies\":{\"vscode-languageclient\":\"^2.6.0\",\"vscode-languageserver\":\"^2.6.0\",\"toml\":\"^2.3.3\"},\"devDependencies\":{\"typescript\":\"2.5.2\",\"vscode\":\"^1.0.3\",\"mocha\":\"^3.1.2\",\"@types/node\":\"^6.0.46\",\"@types/mocha\":\"^2.2.32\"},\"__metadata\":{\"id\":\"464f4ac7-af65-4aa9-9907-4ba7fa419085\",\"publisherId\":\"87bfa971-0ee5-4ec2-afdb-1d26a8959fa4\",\"publisherDisplayName\":\"bungcip\"}}","/clojure/package.json":"{\"name\":\"clojure\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js atom/language-clojure grammars/clojure.cson ./syntaxes/clojure.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"clojure\",\"aliases\":[\"Clojure\",\"clojure\"],\"extensions\":[\".clj\",\".cljs\",\".cljc\",\".cljx\",\".clojure\",\".edn\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"clojure\",\"scopeName\":\"source.clojure\",\"path\":\"./syntaxes/clojure.tmLanguage.json\"}]}}","/codesandbox-black-0.0.1/package.json":"{\"name\":\"codesandbox-black\",\"displayName\":\"CodeSandbox Black\",\"description\":\"CodeSandbox theme for VSCode.\",\"version\":\"0.0.1\",\"publisher\":\"codesandbox\",\"repository\":\"codesandbox/codesandbox-client\",\"engines\":{\"vscode\":\"^1.28.0\"},\"icon\":\"icon.png\",\"categories\":[\"Themes\"],\"contributes\":{\"themes\":[{\"label\":\"CodeSandbox Black\",\"uiTheme\":\"vs-dark\",\"path\":\"./themes/codesandbox-black.json\"},{\"label\":\"CodeSandbox Black 2021\",\"uiTheme\":\"vs-dark\",\"path\":\"./themes/codesandbox-black-2021.json\"}]}}","/coffeescript/package.json":"{\"name\":\"coffeescript\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js atom/language-coffee-script grammars/coffeescript.cson ./syntaxes/coffeescript.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"coffeescript\",\"extensions\":[\".coffee\",\".cson\"],\"aliases\":[\"CoffeeScript\",\"coffeescript\",\"coffee\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"coffeescript\",\"scopeName\":\"source.coffee\",\"path\":\"./syntaxes/coffeescript.tmLanguage.json\"}],\"breakpoints\":[{\"language\":\"coffeescript\"}],\"snippets\":[{\"language\":\"coffeescript\",\"path\":\"./snippets/coffeescript.snippets.json\"}]}}","/configuration-editing/package.json":"{\"name\":\"configuration-editing\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"^1.0.0\"},\"activationEvents\":[\"onLanguage:json\",\"onLanguage:jsonc\"],\"main\":\"./dist/extension\",\"scripts\":{\"compile\":\"gulp compile-extension:configuration-editing\",\"watch\":\"gulp watch-extension:configuration-editing\"},\"dependencies\":{\"jsonc-parser\":\"2.0.2\",\"vscode-nls\":\"^4.0.0\"},\"contributes\":{\"languages\":[{\"id\":\"jsonc\",\"extensions\":[\".code-workspace\",\"language-configuration.json\",\"icon-theme.json\",\"color-theme.json\",\".code-snippets\"],\"filenames\":[\"settings.json\",\"launch.json\",\"tasks.json\",\"keybindings.json\",\"extensions.json\"]}],\"jsonValidation\":[{\"fileMatch\":\"vscode://defaultsettings/keybindings.json\",\"url\":\"vscode://schemas/keybindings\"},{\"fileMatch\":\"%APP_SETTINGS_HOME%/keybindings.json\",\"url\":\"vscode://schemas/keybindings\"},{\"fileMatch\":\"vscode://defaultsettings/settings.json\",\"url\":\"vscode://schemas/settings/default\"},{\"fileMatch\":\"%APP_SETTINGS_HOME%/settings.json\",\"url\":\"vscode://schemas/settings/user\"},{\"fileMatch\":\"%APP_WORKSPACES_HOME%/*/workspace.json\",\"url\":\"vscode://schemas/workspaceConfig\"},{\"fileMatch\":\"**/*.code-workspace\",\"url\":\"vscode://schemas/workspaceConfig\"},{\"fileMatch\":\"%APP_SETTINGS_HOME%/locale.json\",\"url\":\"vscode://schemas/locale\"},{\"fileMatch\":\"/.vscode/settings.json\",\"url\":\"vscode://schemas/settings/folder\"},{\"fileMatch\":\"/.vscode/launch.json\",\"url\":\"vscode://schemas/launch\"},{\"fileMatch\":\"/.vscode/tasks.json\",\"url\":\"vscode://schemas/tasks\"},{\"fileMatch\":\"%APP_SETTINGS_HOME%/snippets/*.json\",\"url\":\"vscode://schemas/snippets\"},{\"fileMatch\":\"**/*.code-snippets\",\"url\":\"vscode://schemas/global-snippets\"},{\"fileMatch\":\"/.vscode/extensions.json\",\"url\":\"vscode://schemas/extensions\"}]},\"devDependencies\":{\"@types/node\":\"^10.12.21\"}}","/cpp/package.json":"{\"name\":\"cpp\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ./build/update-grammars.js\"},\"contributes\":{\"languages\":[{\"id\":\"c\",\"extensions\":[\".c\"],\"aliases\":[\"C\",\"c\"],\"configuration\":\"./language-configuration.json\"},{\"id\":\"cpp\",\"extensions\":[\".cpp\",\".cc\",\".cxx\",\".hpp\",\".hh\",\".hxx\",\".h\",\".ino\",\".inl\",\".ipp\"],\"aliases\":[\"C++\",\"Cpp\",\"cpp\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"c\",\"scopeName\":\"source.c\",\"path\":\"./syntaxes/c.tmLanguage.json\"},{\"language\":\"cpp\",\"scopeName\":\"source.cpp\",\"path\":\"./syntaxes/cpp.tmLanguage.json\"},{\"scopeName\":\"source.c.platform\",\"path\":\"./syntaxes/platform.tmLanguage.json\"}],\"snippets\":[{\"language\":\"c\",\"path\":\"./snippets/c.json\"},{\"language\":\"cpp\",\"path\":\"./snippets/cpp.json\"}]}}","/csharp/package.json":"{\"name\":\"csharp\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"0.10.x\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js dotnet/csharp-tmLanguage grammars/csharp.tmLanguage ./syntaxes/csharp.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"csharp\",\"extensions\":[\".cs\",\".csx\",\".cake\"],\"aliases\":[\"C#\",\"csharp\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"csharp\",\"scopeName\":\"source.cs\",\"path\":\"./syntaxes/csharp.tmLanguage.json\"}],\"snippets\":[{\"language\":\"csharp\",\"path\":\"./snippets/csharp.json\"}]}}","/css/package.json":"{\"name\":\"css\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"0.10.x\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js octref/language-css grammars/css.cson ./syntaxes/css.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"css\",\"aliases\":[\"CSS\",\"css\"],\"extensions\":[\".css\"],\"mimetypes\":[\"text/css\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"css\",\"scopeName\":\"source.css\",\"path\":\"./syntaxes/css.tmLanguage.json\",\"tokenTypes\":{\"meta.function.url string.quoted\":\"other\"}}]}}","/css-language-features/package.json":"{\"name\":\"css-language-features\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"^1.29.0\"},\"icon\":\"icons/css.png\",\"activationEvents\":[\"onLanguage:css\",\"onLanguage:less\",\"onLanguage:scss\",\"onCommand:_css.applyCodeAction\"],\"main\":\"./client/dist/cssMain\",\"enableProposedApi\":true,\"scripts\":{\"compile\":\"gulp compile-extension:css-language-features-client compile-extension:css-language-features-server\",\"watch\":\"gulp watch-extension:css-language-features-client watch-extension:css-language-features-server\",\"test\":\"mocha\",\"postinstall\":\"cd server && yarn install\",\"install-client-next\":\"yarn add vscode-languageclient@next\"},\"categories\":[\"Programming Languages\"],\"contributes\":{\"configuration\":[{\"order\":22,\"id\":\"css\",\"title\":\"%css.title%\",\"properties\":{\"css.experimental.customData\":{\"type\":\"array\",\"description\":\"A list of JSON file paths that define custom CSS data that loads custom properties, at directives, pseudo classes / elements.\",\"default\":[],\"items\":{\"type\":\"string\"},\"scope\":\"resource\"},\"css.validate\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":true,\"description\":\"%css.validate.desc%\"},\"css.lint.compatibleVendorPrefixes\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%css.lint.compatibleVendorPrefixes.desc%\"},\"css.lint.vendorPrefix\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"description\":\"%css.lint.vendorPrefix.desc%\"},\"css.lint.duplicateProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%css.lint.duplicateProperties.desc%\"},\"css.lint.emptyRules\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"description\":\"%css.lint.emptyRules.desc%\"},\"css.lint.importStatement\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%css.lint.importStatement.desc%\"},\"css.lint.boxModel\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%css.lint.boxModel.desc%\"},\"css.lint.universalSelector\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%css.lint.universalSelector.desc%\"},\"css.lint.zeroUnits\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%css.lint.zeroUnits.desc%\"},\"css.lint.fontFaceProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"markdownDescription\":\"%css.lint.fontFaceProperties.desc%\"},\"css.lint.hexColorLength\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"error\",\"description\":\"%css.lint.hexColorLength.desc%\"},\"css.lint.argumentsInColorFunction\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"error\",\"description\":\"%css.lint.argumentsInColorFunction.desc%\"},\"css.lint.unknownProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"description\":\"%css.lint.unknownProperties.desc%\"},\"css.lint.validProperties\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\"},\"scope\":\"resource\",\"default\":[],\"description\":\"%css.lint.validProperties.desc%\"},\"css.lint.ieHack\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%css.lint.ieHack.desc%\"},\"css.lint.unknownVendorSpecificProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%css.lint.unknownVendorSpecificProperties.desc%\"},\"css.lint.propertyIgnoredDueToDisplay\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"markdownDescription\":\"%css.lint.propertyIgnoredDueToDisplay.desc%\"},\"css.lint.important\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%css.lint.important.desc%\"},\"css.lint.float\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%css.lint.float.desc%\"},\"css.lint.idSelector\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%css.lint.idSelector.desc%\"},\"css.lint.unknownAtRules\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"description\":\"%css.lint.unknownAtRules.desc%\"},\"css.trace.server\":{\"type\":\"string\",\"scope\":\"window\",\"enum\":[\"off\",\"messages\",\"verbose\"],\"default\":\"off\",\"description\":\"%css.trace.server.desc%\"}}},{\"id\":\"scss\",\"order\":24,\"title\":\"%scss.title%\",\"properties\":{\"scss.validate\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":true,\"description\":\"%scss.validate.desc%\"},\"scss.lint.compatibleVendorPrefixes\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%scss.lint.compatibleVendorPrefixes.desc%\"},\"scss.lint.vendorPrefix\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"description\":\"%scss.lint.vendorPrefix.desc%\"},\"scss.lint.duplicateProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%scss.lint.duplicateProperties.desc%\"},\"scss.lint.emptyRules\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"description\":\"%scss.lint.emptyRules.desc%\"},\"scss.lint.importStatement\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%scss.lint.importStatement.desc%\"},\"scss.lint.boxModel\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%scss.lint.boxModel.desc%\"},\"scss.lint.universalSelector\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%scss.lint.universalSelector.desc%\"},\"scss.lint.zeroUnits\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%scss.lint.zeroUnits.desc%\"},\"scss.lint.fontFaceProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"markdownDescription\":\"%scss.lint.fontFaceProperties.desc%\"},\"scss.lint.hexColorLength\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"error\",\"description\":\"%scss.lint.hexColorLength.desc%\"},\"scss.lint.argumentsInColorFunction\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"error\",\"description\":\"%scss.lint.argumentsInColorFunction.desc%\"},\"scss.lint.unknownProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"description\":\"%scss.lint.unknownProperties.desc%\"},\"scss.lint.validProperties\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\"},\"scope\":\"resource\",\"default\":[],\"description\":\"%scss.lint.validProperties.desc%\"},\"scss.lint.ieHack\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%scss.lint.ieHack.desc%\"},\"scss.lint.unknownVendorSpecificProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%scss.lint.unknownVendorSpecificProperties.desc%\"},\"scss.lint.propertyIgnoredDueToDisplay\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"markdownDescription\":\"%scss.lint.propertyIgnoredDueToDisplay.desc%\"},\"scss.lint.important\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%scss.lint.important.desc%\"},\"scss.lint.float\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%scss.lint.float.desc%\"},\"scss.lint.idSelector\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%scss.lint.idSelector.desc%\"}}},{\"id\":\"less\",\"order\":23,\"type\":\"object\",\"title\":\"%less.title%\",\"properties\":{\"less.validate\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":true,\"description\":\"%less.validate.desc%\"},\"less.lint.compatibleVendorPrefixes\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%less.lint.compatibleVendorPrefixes.desc%\"},\"less.lint.vendorPrefix\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"description\":\"%less.lint.vendorPrefix.desc%\"},\"less.lint.duplicateProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%less.lint.duplicateProperties.desc%\"},\"less.lint.emptyRules\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"description\":\"%less.lint.emptyRules.desc%\"},\"less.lint.importStatement\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%less.lint.importStatement.desc%\"},\"less.lint.boxModel\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%less.lint.boxModel.desc%\"},\"less.lint.universalSelector\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%less.lint.universalSelector.desc%\"},\"less.lint.zeroUnits\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%less.lint.zeroUnits.desc%\"},\"less.lint.fontFaceProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"markdownDescription\":\"%less.lint.fontFaceProperties.desc%\"},\"less.lint.hexColorLength\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"error\",\"description\":\"%less.lint.hexColorLength.desc%\"},\"less.lint.argumentsInColorFunction\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"error\",\"description\":\"%less.lint.argumentsInColorFunction.desc%\"},\"less.lint.unknownProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"description\":\"%less.lint.unknownProperties.desc%\"},\"less.lint.validProperties\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\"},\"scope\":\"resource\",\"default\":[],\"description\":\"%less.lint.validProperties.desc%\"},\"less.lint.ieHack\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%less.lint.ieHack.desc%\"},\"less.lint.unknownVendorSpecificProperties\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%less.lint.unknownVendorSpecificProperties.desc%\"},\"less.lint.propertyIgnoredDueToDisplay\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"warning\",\"markdownDescription\":\"%less.lint.propertyIgnoredDueToDisplay.desc%\"},\"less.lint.important\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%less.lint.important.desc%\"},\"less.lint.float\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"markdownDescription\":\"%less.lint.float.desc%\"},\"less.lint.idSelector\":{\"type\":\"string\",\"scope\":\"resource\",\"enum\":[\"ignore\",\"warning\",\"error\"],\"default\":\"ignore\",\"description\":\"%less.lint.idSelector.desc%\"}}}]},\"dependencies\":{\"vscode-languageclient\":\"^5.1.0\",\"vscode-nls\":\"^4.0.0\"},\"devDependencies\":{\"@types/node\":\"^10.12.21\",\"mocha\":\"^5.2.0\"}}","/docker/package.json":"{\"name\":\"docker\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js moby/moby contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage ./syntaxes/docker.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"dockerfile\",\"extensions\":[\".dockerfile\"],\"filenames\":[\"Dockerfile\"],\"aliases\":[\"Dockerfile\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"dockerfile\",\"scopeName\":\"source.dockerfile\",\"path\":\"./syntaxes/docker.tmLanguage.json\"}]}}","/dracula-theme.theme-dracula-2.17.0/package.json":"{\"name\":\"theme-dracula\",\"version\":\"2.18.0\",\"displayName\":\"Dracula Official\",\"homepage\":\"https://draculatheme.com/\",\"description\":\"Official Dracula Theme. A dark theme for many editors, shells, and more.\",\"publisher\":\"dracula-theme\",\"license\":\"MIT\",\"scripts\":{\"dev\":\"node ./scripts/dev.js\",\"build\":\"node ./scripts/build.js\",\"lint\":\"node ./scripts/lint.js\",\"package\":\"vsce package -o ./bin/dracula.vsix\",\"vscode:prepublish\":\"npm run build\"},\"maintainers\":[\"Derek P Sifford \"],\"contributors\":[\"Krzysztof Wisznarewski\",\"Daniel Ramos\",\"Eric Jackson\",\"Elliott Pogue\",\"Ajit Singh\",\"Teddy Bradford\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/dracula/visual-studio-code.git\"},\"bugs\":{\"url\":\"https://github.com/dracula/visual-studio-code/issues\"},\"engines\":{\"vscode\":\"^1.13.0\"},\"categories\":[\"Themes\"],\"keywords\":[\"dracula\",\"dark\",\"theme\",\"color-theme\"],\"icon\":\"icon.png\",\"galleryBanner\":{\"color\":\"#3c4557\",\"theme\":\"dark\"},\"contributes\":{\"themes\":[{\"label\":\"Dracula\",\"uiTheme\":\"vs-dark\",\"path\":\"./theme/dracula.json\"},{\"label\":\"Dracula Soft\",\"uiTheme\":\"vs-dark\",\"path\":\"./theme/dracula-soft.json\"}]},\"devDependencies\":{\"js-yaml\":\"^3.13.1\",\"prettier\":\"^1.17.0\",\"tinycolor2\":\"^1.4.1\"},\"__metadata\":{\"id\":\"4e44877c-1c8d-4f9c-ba86-1372d0fbeeb1\",\"publisherId\":\"fbb3d024-f8f2-460c-bdb5-99552f6d8c4b\",\"publisherDisplayName\":\"Dracula Theme\"}}","/emmet/package.json":"{\"name\":\"emmet\",\"displayName\":\"Emmet\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"^1.13.0\"},\"icon\":\"images/icon.png\",\"categories\":[\"Other\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/Microsoft/vscode-emmet\"},\"activationEvents\":[\"*\",\"onCommand:emmet.expandAbbreviation\",\"onLanguage:html\",\"onLanguage:css\",\"onLanguage:scss\",\"onLanguage:less\"],\"main\":\"./dist/extension\",\"contributes\":{\"configuration\":{\"type\":\"object\",\"title\":\"Emmet\",\"properties\":{\"emmet.showExpandedAbbreviation\":{\"type\":[\"string\"],\"enum\":[\"never\",\"always\",\"inMarkupAndStylesheetFilesOnly\"],\"default\":\"always\",\"markdownDescription\":\"%emmetShowExpandedAbbreviation%\"},\"emmet.showAbbreviationSuggestions\":{\"type\":\"boolean\",\"default\":true,\"markdownDescription\":\"%emmetShowAbbreviationSuggestions%\"},\"emmet.includeLanguages\":{\"type\":\"object\",\"default\":{},\"markdownDescription\":\"%emmetIncludeLanguages%\"},\"emmet.variables\":{\"type\":\"object\",\"properties\":{\"lang\":{\"type\":\"string\",\"default\":\"en\"},\"charset\":{\"type\":\"string\",\"default\":\"UTF-8\"}},\"default\":{},\"description\":\"%emmetVariables%\"},\"emmet.syntaxProfiles\":{\"type\":\"object\",\"default\":{},\"description\":\"%emmetSyntaxProfiles%\"},\"emmet.excludeLanguages\":{\"type\":\"array\",\"default\":[\"markdown\"],\"description\":\"%emmetExclude%\"},\"emmet.extensionsPath\":{\"type\":\"string\",\"default\":null,\"description\":\"%emmetExtensionsPath%\"},\"emmet.triggerExpansionOnTab\":{\"type\":\"boolean\",\"default\":false,\"description\":\"%emmetTriggerExpansionOnTab%\"},\"emmet.preferences\":{\"type\":\"object\",\"default\":{},\"description\":\"%emmetPreferences%\",\"properties\":{\"css.intUnit\":{\"type\":\"string\",\"default\":\"px\",\"description\":\"%emmetPreferencesIntUnit%\"},\"css.floatUnit\":{\"type\":\"string\",\"default\":\"em\",\"description\":\"%emmetPreferencesFloatUnit%\"},\"css.propertyEnd\":{\"type\":\"string\",\"default\":\";\",\"description\":\"%emmetPreferencesCssAfter%\"},\"sass.propertyEnd\":{\"type\":\"string\",\"default\":\"\",\"description\":\"%emmetPreferencesSassAfter%\"},\"stylus.propertyEnd\":{\"type\":\"string\",\"default\":\"\",\"description\":\"%emmetPreferencesStylusAfter%\"},\"css.valueSeparator\":{\"type\":\"string\",\"default\":\": \",\"description\":\"%emmetPreferencesCssBetween%\"},\"sass.valueSeparator\":{\"type\":\"string\",\"default\":\": \",\"description\":\"%emmetPreferencesSassBetween%\"},\"stylus.valueSeparator\":{\"type\":\"string\",\"default\":\" \",\"description\":\"%emmetPreferencesStylusBetween%\"},\"bem.elementSeparator\":{\"type\":\"string\",\"default\":\"__\",\"description\":\"%emmetPreferencesBemElementSeparator%\"},\"bem.modifierSeparator\":{\"type\":\"string\",\"default\":\"_\",\"description\":\"%emmetPreferencesBemModifierSeparator%\"},\"filter.commentBefore\":{\"type\":\"string\",\"default\":\"\",\"description\":\"%emmetPreferencesFilterCommentBefore%\"},\"filter.commentAfter\":{\"type\":\"string\",\"default\":\"\\n\",\"description\":\"%emmetPreferencesFilterCommentAfter%\"},\"filter.commentTrigger\":{\"type\":\"array\",\"default\":[\"id\",\"class\"],\"description\":\"%emmetPreferencesFilterCommentTrigger%\"},\"format.noIndentTags\":{\"type\":\"array\",\"default\":[\"html\"],\"description\":\"%emmetPreferencesFormatNoIndentTags%\"},\"format.forceIndentationForTags\":{\"type\":\"array\",\"default\":[\"body\"],\"description\":\"%emmetPreferencesFormatForceIndentTags%\"},\"profile.allowCompactBoolean\":{\"type\":\"boolean\",\"default\":false,\"description\":\"%emmetPreferencesAllowCompactBoolean%\"},\"css.webkitProperties\":{\"type\":\"string\",\"default\":null,\"markdownDescription\":\"%emmetPreferencesCssWebkitProperties%\"},\"css.mozProperties\":{\"type\":\"string\",\"default\":null,\"markdownDescription\":\"%emmetPreferencesCssMozProperties%\"},\"css.oProperties\":{\"type\":\"string\",\"default\":null,\"markdownDescription\":\"%emmetPreferencesCssOProperties%\"},\"css.msProperties\":{\"type\":\"string\",\"default\":null,\"markdownDescription\":\"%emmetPreferencesCssMsProperties%\"},\"css.fuzzySearchMinScore\":{\"type\":\"number\",\"default\":0.3,\"description\":\"%emmetPreferencesCssFuzzySearchMinScore%\"}}},\"emmet.showSuggestionsAsSnippets\":{\"type\":\"boolean\",\"default\":false,\"markdownDescription\":\"%emmetShowSuggestionsAsSnippets%\"},\"emmet.optimizeStylesheetParsing\":{\"type\":\"boolean\",\"default\":true,\"markdownDescription\":\"%emmetOptimizeStylesheetParsing%\"}}},\"commands\":[{\"command\":\"editor.emmet.action.wrapIndividualLinesWithAbbreviation\",\"title\":\"%command.wrapIndividualLinesWithAbbreviation%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.wrapWithAbbreviation\",\"title\":\"%command.wrapWithAbbreviation%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.removeTag\",\"title\":\"%command.removeTag%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.updateTag\",\"title\":\"%command.updateTag%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.matchTag\",\"title\":\"%command.matchTag%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.balanceIn\",\"title\":\"%command.balanceIn%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.balanceOut\",\"title\":\"%command.balanceOut%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.prevEditPoint\",\"title\":\"%command.prevEditPoint%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.nextEditPoint\",\"title\":\"%command.nextEditPoint%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.mergeLines\",\"title\":\"%command.mergeLines%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.selectPrevItem\",\"title\":\"%command.selectPrevItem%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.selectNextItem\",\"title\":\"%command.selectNextItem%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.splitJoinTag\",\"title\":\"%command.splitJoinTag%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.toggleComment\",\"title\":\"%command.toggleComment%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.evaluateMathExpression\",\"title\":\"%command.evaluateMathExpression%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.updateImageSize\",\"title\":\"%command.updateImageSize%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.incrementNumberByOneTenth\",\"title\":\"%command.incrementNumberByOneTenth%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.incrementNumberByOne\",\"title\":\"%command.incrementNumberByOne%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.incrementNumberByTen\",\"title\":\"%command.incrementNumberByTen%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.decrementNumberByOneTenth\",\"title\":\"%command.decrementNumberByOneTenth%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.decrementNumberByOne\",\"title\":\"%command.decrementNumberByOne%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.decrementNumberByTen\",\"title\":\"%command.decrementNumberByTen%\",\"category\":\"Emmet\"},{\"command\":\"editor.emmet.action.reflectCSSValue\",\"title\":\"%command.reflectCSSValue%\",\"category\":\"Emmet\"}],\"menus\":{\"commandPalette\":[{\"command\":\"editor.emmet.action.wrapIndividualLinesWithAbbreviation\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.wrapWithAbbreviation\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.removeTag\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.updateTag\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.matchTag\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.balanceIn\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.balanceOut\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.prevEditPoint\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.nextEditPoint\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.mergeLines\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.selectPrevItem\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.selectNextItem\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.splitJoinTag\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.toggleComment\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.evaluateMathExpression\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.updateImageSize\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.incrementNumberByOneTenth\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.incrementNumberByOne\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.incrementNumberByTen\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.decrementNumberByOneTenth\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.decrementNumberByOne\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.decrementNumberByTen\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"},{\"command\":\"editor.emmet.action.reflectCSSValue\",\"when\":\"resourceScheme =~ /^untitled$|^file$/\"}]}},\"scripts\":{\"watch\":\"gulp watch-extension:emmet\",\"compile\":\"gulp compile-extension:emmet\",\"deps\":\"yarn add vscode-emmet-helper\"},\"devDependencies\":{\"@types/node\":\"8.0.33\",\"mocha-junit-reporter\":\"^1.17.0\",\"mocha-multi-reporters\":\"^1.1.7\",\"vscode\":\"1.0.1\"},\"dependencies\":{\"@emmetio/css-parser\":\"ramya-rao-a/css-parser#vscode\",\"@emmetio/html-matcher\":\"^0.3.3\",\"@emmetio/math-expression\":\"^0.1.1\",\"image-size\":\"^0.5.2\",\"vscode-emmet-helper\":\"^1.2.15\"}}","/fsharp/package.json":"{\"name\":\"fsharp\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js ionide/ionide-fsgrammar grammar/fsharp.json ./syntaxes/fsharp.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"fsharp\",\"extensions\":[\".fs\",\".fsi\",\".fsx\",\".fsscript\"],\"aliases\":[\"F#\",\"FSharp\",\"fsharp\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"fsharp\",\"scopeName\":\"source.fsharp\",\"path\":\"./syntaxes/fsharp.tmLanguage.json\"}],\"snippets\":[{\"language\":\"fsharp\",\"path\":\"./snippets/fsharp.json\"}]}}","/github.github-vscode-theme-1.1.3/package.json":"{\"name\":\"github-vscode-theme\",\"displayName\":\"GitHub Theme\",\"description\":\"GitHub theme for VS Code\",\"version\":\"1.1.3\",\"preview\":true,\"publisher\":\"GitHub\",\"license\":\"MIT\",\"icon\":\"icon.png\",\"galleryBanner\":{\"color\":\"#1b1f23\",\"theme\":\"dark\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/primer/github-vscode-theme\"},\"bugs\":{\"url\":\"https://github.com/primer/github-vscode-theme/issues\"},\"engines\":{\"vscode\":\"^1.43.0\"},\"categories\":[\"Themes\"],\"keywords\":[\"theme\",\"github\",\"light\",\"dark\"],\"contributes\":{\"themes\":[{\"label\":\"GitHub Light\",\"uiTheme\":\"vs\",\"path\":\"./themes/light.json\"},{\"label\":\"GitHub Dark\",\"uiTheme\":\"vs-dark\",\"path\":\"./themes/dark.json\"}]},\"devDependencies\":{\"@primer/primitives\":\"^2.0.1\",\"color\":\"^3.1.2\",\"nodemon\":\"^2.0.3\"},\"scripts\":{\"start\":\"nodemon --watch src src/index.js\",\"build\":\"node src/index.js\"},\"__metadata\":{\"id\":\"7328a705-91fc-49e6-8293-da6f112e482d\",\"publisherId\":\"7c1c19cd-78eb-4dfb-8999-99caf7679002\",\"publisherDisplayName\":\"GitHub\"}}","/go/package.json":"{\"name\":\"go\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js atom/language-go grammars/go.cson ./syntaxes/go.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"go\",\"extensions\":[\".go\"],\"aliases\":[\"Go\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"go\",\"scopeName\":\"source.go\",\"path\":\"./syntaxes/go.tmLanguage.json\"}],\"configurationDefaults\":{\"[go]\":{\"editor.insertSpaces\":false}}}}","/groovy/package.json":"{\"name\":\"groovy\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js textmate/groovy.tmbundle Syntaxes/Groovy.tmLanguage ./syntaxes/groovy.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"groovy\",\"aliases\":[\"Groovy\",\"groovy\"],\"extensions\":[\".groovy\",\".gvy\",\".gradle\"],\"filenames\":[\"Jenkinsfile\"],\"firstLine\":\"^#!.*\\\\bgroovy\\\\b\",\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"groovy\",\"scopeName\":\"source.groovy\",\"path\":\"./syntaxes/groovy.tmLanguage.json\"}],\"snippets\":[{\"language\":\"groovy\",\"path\":\"./snippets/groovy.json\"}]}}","/grunt/package.json":"{\"name\":\"grunt\",\"publisher\":\"vscode\",\"description\":\"Extension to add Grunt capabilities to VS Code.\",\"displayName\":\"Grunt support for VS Code\",\"version\":\"1.0.0\",\"icon\":\"images/grunt.png\",\"engines\":{\"vscode\":\"*\"},\"categories\":[\"Other\"],\"scripts\":{\"compile\":\"gulp compile-extension:grunt\",\"watch\":\"gulp watch-extension:grunt\"},\"dependencies\":{\"vscode-nls\":\"^4.0.0\"},\"devDependencies\":{\"@types/node\":\"^10.12.21\"},\"main\":\"./dist/main\",\"activationEvents\":[\"onCommand:workbench.action.tasks.runTask\"],\"contributes\":{\"configuration\":{\"id\":\"grunt\",\"type\":\"object\",\"title\":\"Grunt\",\"properties\":{\"grunt.autoDetect\":{\"scope\":\"resource\",\"type\":\"string\",\"enum\":[\"off\",\"on\"],\"default\":\"on\",\"description\":\"%config.grunt.autoDetect%\"}}},\"taskDefinitions\":[{\"type\":\"grunt\",\"required\":[\"task\"],\"properties\":{\"task\":{\"type\":\"string\",\"description\":\"%grunt.taskDefinition.type.description%\"},\"file\":{\"type\":\"string\",\"description\":\"%grunt.taskDefinition.file.description%\"}}}]}}","/gulp/package.json":"{\"name\":\"gulp\",\"publisher\":\"vscode\",\"description\":\"%description%\",\"displayName\":\"%displayName%\",\"version\":\"1.0.0\",\"icon\":\"images/gulp.png\",\"engines\":{\"vscode\":\"*\"},\"categories\":[\"Other\"],\"scripts\":{\"compile\":\"gulp compile-extension:gulp\",\"watch\":\"gulp watch-extension:gulp\"},\"dependencies\":{\"vscode-nls\":\"^4.0.0\"},\"devDependencies\":{\"@types/node\":\"^10.12.21\"},\"main\":\"./dist/main\",\"activationEvents\":[\"onCommand:workbench.action.tasks.runTask\"],\"contributes\":{\"configuration\":{\"id\":\"gulp\",\"type\":\"object\",\"title\":\"Gulp\",\"properties\":{\"gulp.autoDetect\":{\"scope\":\"resource\",\"type\":\"string\",\"enum\":[\"off\",\"on\"],\"default\":\"on\",\"description\":\"%config.gulp.autoDetect%\"}}},\"taskDefinitions\":[{\"type\":\"gulp\",\"required\":[\"task\"],\"properties\":{\"task\":{\"type\":\"string\",\"description\":\"%gulp.taskDefinition.type.description%\"},\"file\":{\"type\":\"string\",\"description\":\"%gulp.taskDefinition.file.description%\"}}}]}}","/handlebars/package.json":"{\"name\":\"handlebars\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"0.10.x\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js daaain/Handlebars grammars/Handlebars.json ./syntaxes/Handlebars.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"handlebars\",\"extensions\":[\".handlebars\",\".hbs\",\".hjs\"],\"aliases\":[\"Handlebars\",\"handlebars\"],\"mimetypes\":[\"text/x-handlebars-template\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"handlebars\",\"scopeName\":\"text.html.handlebars\",\"path\":\"./syntaxes/Handlebars.tmLanguage.json\"}]}}","/hlsl/package.json":"{\"name\":\"hlsl\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js tgjones/shaders-tmLanguage grammars/hlsl.json ./syntaxes/hlsl.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"hlsl\",\"extensions\":[\".hlsl\",\".hlsli\",\".fx\",\".fxh\",\".vsh\",\".psh\",\".cginc\",\".compute\"],\"aliases\":[\"HLSL\",\"hlsl\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"hlsl\",\"path\":\"./syntaxes/hlsl.tmLanguage.json\",\"scopeName\":\"source.hlsl\"}]}}","/html/package.json":"{\"name\":\"html\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"0.10.x\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js textmate/html.tmbundle Syntaxes/HTML.plist ./syntaxes/html.tmLanguage.json Syntaxes/HTML%20%28Derivative%29.tmLanguage ./syntaxes/html-derivative.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"html\",\"extensions\":[\".html\",\".htm\",\".shtml\",\".xhtml\",\".mdoc\",\".jsp\",\".asp\",\".aspx\",\".jshtm\",\".volt\",\".ejs\",\".rhtml\"],\"aliases\":[\"HTML\",\"htm\",\"html\",\"xhtml\"],\"mimetypes\":[\"text/html\",\"text/x-jshtm\",\"text/template\",\"text/ng-template\",\"application/xhtml+xml\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"scopeName\":\"text.html.basic\",\"path\":\"./syntaxes/html.tmLanguage.json\",\"embeddedLanguages\":{\"text.html\":\"html\",\"source.css\":\"css\",\"source.js\":\"javascript\",\"source.python\":\"python\",\"source.smarty\":\"smarty\"},\"tokenTypes\":{\"meta.tag string.quoted\":\"other\"}},{\"language\":\"html\",\"scopeName\":\"text.html.derivative\",\"path\":\"./syntaxes/html-derivative.tmLanguage.json\",\"embeddedLanguages\":{\"text.html\":\"html\",\"source.css\":\"css\",\"source.js\":\"javascript\",\"source.python\":\"python\",\"source.smarty\":\"smarty\"},\"tokenTypes\":{\"meta.tag string.quoted\":\"other\"}}],\"snippets\":[{\"language\":\"html\",\"path\":\"./snippets/html.snippets.json\"}]}}","/html-language-features/package.json":"{\"enableProposedApi\":true,\"name\":\"html-language-features\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"aiKey\":\"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217\",\"engines\":{\"vscode\":\"0.10.x\"},\"icon\":\"icons/html.png\",\"activationEvents\":[\"onLanguage:html\",\"onLanguage:handlebars\"],\"main\":\"./client/dist/htmlMain\",\"scripts\":{\"compile\":\"gulp compile-extension:html-language-features-client compile-extension:html-language-features-server\",\"watch\":\"gulp watch-extension:html-language-features-client watch-extension:html-language-features-server\",\"postinstall\":\"cd server && yarn install\",\"install-client-next\":\"yarn add vscode-languageclient@next\"},\"categories\":[\"Programming Languages\"],\"contributes\":{\"configuration\":{\"id\":\"html\",\"order\":20,\"type\":\"object\",\"title\":\"HTML\",\"properties\":{\"html.experimental.customData\":{\"type\":\"array\",\"description\":\"A list of JSON file paths that define custom tags, properties and other HTML syntax constructs. Only workspace folder setting will be read.\",\"default\":[],\"items\":{\"type\":\"string\"},\"scope\":\"resource\"},\"html.format.enable\":{\"type\":\"boolean\",\"scope\":\"window\",\"default\":true,\"description\":\"%html.format.enable.desc%\"},\"html.format.wrapLineLength\":{\"type\":\"integer\",\"scope\":\"resource\",\"default\":120,\"description\":\"%html.format.wrapLineLength.desc%\"},\"html.format.unformatted\":{\"type\":[\"string\",\"null\"],\"scope\":\"resource\",\"default\":\"wbr\",\"markdownDescription\":\"%html.format.unformatted.desc%\"},\"html.format.contentUnformatted\":{\"type\":[\"string\",\"null\"],\"scope\":\"resource\",\"default\":\"pre,code,textarea\",\"markdownDescription\":\"%html.format.contentUnformatted.desc%\"},\"html.format.indentInnerHtml\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":false,\"markdownDescription\":\"%html.format.indentInnerHtml.desc%\"},\"html.format.preserveNewLines\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":true,\"description\":\"%html.format.preserveNewLines.desc%\"},\"html.format.maxPreserveNewLines\":{\"type\":[\"number\",\"null\"],\"scope\":\"resource\",\"default\":null,\"markdownDescription\":\"%html.format.maxPreserveNewLines.desc%\"},\"html.format.indentHandlebars\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":false,\"markdownDescription\":\"%html.format.indentHandlebars.desc%\"},\"html.format.endWithNewline\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":false,\"description\":\"%html.format.endWithNewline.desc%\"},\"html.format.extraLiners\":{\"type\":[\"string\",\"null\"],\"scope\":\"resource\",\"default\":\"head, body, /html\",\"markdownDescription\":\"%html.format.extraLiners.desc%\"},\"html.format.wrapAttributes\":{\"type\":\"string\",\"scope\":\"resource\",\"default\":\"auto\",\"enum\":[\"auto\",\"force\",\"force-aligned\",\"force-expand-multiline\",\"aligned-multiple\",\"preserve\",\"preserve-aligned\"],\"enumDescriptions\":[\"%html.format.wrapAttributes.auto%\",\"%html.format.wrapAttributes.force%\",\"%html.format.wrapAttributes.forcealign%\",\"%html.format.wrapAttributes.forcemultiline%\",\"%html.format.wrapAttributes.alignedmultiple%\",\"%html.format.wrapAttributes.preserve%\",\"%html.format.wrapAttributes.preservealigned%\"],\"description\":\"%html.format.wrapAttributes.desc%\"},\"html.suggest.html5\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":true,\"description\":\"%html.suggest.html5.desc%\"},\"html.validate.scripts\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":true,\"description\":\"%html.validate.scripts%\"},\"html.validate.styles\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":true,\"description\":\"%html.validate.styles%\"},\"html.autoClosingTags\":{\"type\":\"boolean\",\"scope\":\"resource\",\"default\":true,\"description\":\"%html.autoClosingTags%\"},\"html.trace.server\":{\"type\":\"string\",\"scope\":\"window\",\"enum\":[\"off\",\"messages\",\"verbose\"],\"default\":\"off\",\"description\":\"%html.trace.server.desc%\"}}}},\"dependencies\":{\"vscode-extension-telemetry\":\"0.1.1\",\"vscode-languageclient\":\"^5.1.0\",\"vscode-nls\":\"^4.0.0\"},\"devDependencies\":{\"@types/node\":\"^10.12.21\"}}","/ini/package.json":"{\"name\":\"ini\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js textmate/ini.tmbundle Syntaxes/Ini.plist ./syntaxes/ini.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"ini\",\"extensions\":[\".ini\"],\"aliases\":[\"Ini\",\"ini\"],\"configuration\":\"./ini.language-configuration.json\"},{\"id\":\"properties\",\"extensions\":[\".properties\",\".cfg\",\".conf\",\".desktop\",\".directory\"],\"filenames\":[\"config\",\".gitattributes\",\".gitconfig\",\"gitconfig\",\".editorconfig\"],\"aliases\":[\"Properties\",\"properties\"],\"configuration\":\"./properties.language-configuration.json\"}],\"grammars\":[{\"language\":\"ini\",\"scopeName\":\"source.ini\",\"path\":\"./syntaxes/ini.tmLanguage.json\"},{\"language\":\"properties\",\"scopeName\":\"source.ini\",\"path\":\"./syntaxes/ini.tmLanguage.json\"}]}}","/jake/package.json":"{\"name\":\"jake\",\"publisher\":\"vscode\",\"description\":\"%description%\",\"displayName\":\"%displayName%\",\"icon\":\"images/cowboy_hat.png\",\"version\":\"1.0.0\",\"engines\":{\"vscode\":\"*\"},\"categories\":[\"Other\"],\"scripts\":{\"compile\":\"gulp compile-extension:jake\",\"watch\":\"gulp watch-extension:jake\"},\"dependencies\":{\"vscode-nls\":\"^4.0.0\"},\"devDependencies\":{\"@types/node\":\"^10.12.21\"},\"main\":\"./dist/main\",\"activationEvents\":[\"onCommand:workbench.action.tasks.runTask\"],\"contributes\":{\"configuration\":{\"id\":\"jake\",\"type\":\"object\",\"title\":\"Jake\",\"properties\":{\"jake.autoDetect\":{\"scope\":\"resource\",\"type\":\"string\",\"enum\":[\"off\",\"on\"],\"default\":\"on\",\"description\":\"%config.jake.autoDetect%\"}}},\"taskDefinitions\":[{\"type\":\"jake\",\"required\":[\"task\"],\"properties\":{\"task\":{\"type\":\"string\",\"description\":\"%jake.taskDefinition.type.description%\"},\"file\":{\"type\":\"string\",\"description\":\"%jake.taskDefinition.file.description%\"}}}]}}","/jamesbirtles.svelte-vscode-0.7.1/package.json":"{\"name\":\"svelte-vscode\",\"version\":\"0.7.1\",\"description\":\"Svelte language support for VS Code\",\"main\":\"dist/extension.js\",\"scripts\":{\"vscode:prepublish\":\"tsc -p ./\",\"compile\":\"tsc -p ./\",\"watch\":\"tsc -w -p ./\",\"update-vscode\":\"node ./node_modules/vscode/bin/install\",\"postinstall\":\"node ./node_modules/vscode/bin/install\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/UnwrittenFun/svelte-vscode.git\"},\"keywords\":[\"svelte\",\"vscode\"],\"author\":\"James Birtles \",\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/UnwrittenFun/svelte-vscode/issues\"},\"homepage\":\"https://github.com/UnwrittenFun/svelte-vscode#readme\",\"displayName\":\"Svelte\",\"publisher\":\"JamesBirtles\",\"icon\":\"icons/logo.png\",\"galleryBanner\":{\"color\":\"#333333\",\"theme\":\"dark\"},\"categories\":[\"Programming Languages\",\"Formatters\"],\"engines\":{\"vscode\":\"^1.26.0\"},\"activationEvents\":[\"onLanguage:svelte\",\"onCommand:svelte.restartLanguageServer\"],\"contributes\":{\"configuration\":{\"type\":\"object\",\"title\":\"Svelte\",\"properties\":{\"svelte.language-server.runtime\":{\"type\":\"string\",\"title\":\"Language Server Runtime\",\"description\":\"Path to the node executable to use to spawn the language server\"},\"svelte.plugin.typescript.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"TypeScript\",\"description\":\"Enable the TypeScript plugin\"},\"svelte.plugin.typescript.diagnostics.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"TypeScript: Diagnostics\",\"description\":\"Enable diagnostic messages for TypeScript\"},\"svelte.plugin.typescript.hover.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"TypeScript: Hover Info\",\"description\":\"Enable hover info for TypeScript\"},\"svelte.plugin.typescript.format.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"TypeScript: Format\",\"description\":\"Enable formatting for TypeScript\"},\"svelte.plugin.typescript.documentSymbols.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"TypeScript: Symbols in Outline\",\"description\":\"Enable document symbols for TypeScript\"},\"svelte.plugin.css.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"CSS\",\"description\":\"Enable the CSS plugin\"},\"svelte.plugin.css.diagnostics.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"CSS: Diagnostics\",\"description\":\"Enable diagnostic messages for CSS\"},\"svelte.plugin.css.hover.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"CSS: Hover Info\",\"description\":\"Enable hover info for CSS\"},\"svelte.plugin.css.format.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"CSS: Format\",\"description\":\"Enable formatting for CSS\"},\"svelte.plugin.css.completions.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"CSS: Auto Complete\",\"description\":\"Enable auto completions for CSS\"},\"svelte.plugin.css.documentColors.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"CSS: Document Colors\",\"description\":\"Enable document colors for CSS\"},\"svelte.plugin.css.colorPresentations.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"CSS: Color Picker\",\"description\":\"Enable color picker for CSS\"},\"svelte.plugin.css.documentSymbols.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"CSS: Symbols in Outline\",\"description\":\"Enable document symbols for CSS\"},\"svelte.plugin.html.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"HTML\",\"description\":\"Enable the HTML plugin\"},\"svelte.plugin.html.hover.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"HTML: Hover Info\",\"description\":\"Enable hover info for HTML\"},\"svelte.plugin.html.completions.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"HTML: Auto Complete\",\"description\":\"Enable auto completions for HTML\"},\"svelte.plugin.html.tagComplete.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"HTML: Tag Auto Closing\",\"description\":\"Enable HTML tag auto closing\"},\"svelte.plugin.html.format.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"HTML: Format\",\"description\":\"Enable formatting for HTML\"},\"svelte.plugin.html.documentSymbols.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"HTML: Symbols in Outline\",\"description\":\"Enable document symbols for HTML\"},\"svelte.plugin.svelte.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"Svelte\",\"description\":\"Enable the Svelte plugin\"},\"svelte.plugin.svelte.diagnostics.enable\":{\"type\":\"boolean\",\"default\":true,\"title\":\"Svelte: Diagnostics\",\"description\":\"Enable diagnostic messages for Svelte\"}}},\"languages\":[{\"id\":\"svelte\",\"aliases\":[\"Svelte\",\"svelte\"],\"extensions\":[\".svelte\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"svelte\",\"scopeName\":\"source.svelte\",\"path\":\"./syntaxes/svelte.tmLanguage.json\",\"embeddedLanguages\":{\"text.html\":\"html\",\"source.css\":\"css\",\"source.css.scss\":\"scss\",\"source.js\":\"javascript\",\"source.ts\":\"typescript\"}}],\"commands\":[{\"command\":\"svelte.restartLanguageServer\",\"title\":\"Svelte: Restart Language Server\"}]},\"devDependencies\":{\"@types/node\":\"^9.6.5\",\"typescript\":\"^3.0.1\"},\"dependencies\":{\"svelte-language-server\":\"0.7.1\",\"vscode\":\"^1.1.21\",\"vscode-languageclient\":\"^5.0.1\"},\"__metadata\":{\"id\":\"f7ca3c4f-a370-4a7f-8691-7ad0f29f8275\",\"publisherId\":\"1a0a8c87-2179-46b4-9734-fc0f709bbf83\",\"publisherDisplayName\":\"James Birtles\"}}","/java/package.json":"{\"name\":\"java\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js atom/language-java grammars/java.cson ./syntaxes/java.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"java\",\"extensions\":[\".java\",\".jav\"],\"aliases\":[\"Java\",\"java\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"java\",\"scopeName\":\"source.java\",\"path\":\"./syntaxes/java.tmLanguage.json\"}],\"snippets\":[{\"language\":\"java\",\"path\":\"./snippets/java.snippets.json\"}]}}","/javascript/package.json":"{\"name\":\"javascript\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"0.10.x\"},\"contributes\":{\"languages\":[{\"id\":\"javascriptreact\",\"aliases\":[\"JavaScript React\",\"jsx\"],\"extensions\":[\".jsx\"],\"configuration\":\"./javascript-language-configuration.json\"},{\"id\":\"javascript\",\"aliases\":[\"JavaScript\",\"javascript\",\"js\"],\"extensions\":[\".js\",\".es6\",\".mjs\",\".pac\"],\"filenames\":[\"jakefile\"],\"firstLine\":\"^#!.*\\\\bnode\",\"mimetypes\":[\"text/javascript\"],\"configuration\":\"./javascript-language-configuration.json\"},{\"id\":\"jsx-tags\",\"aliases\":[],\"configuration\":\"./tags-language-configuration.json\"}],\"grammars\":[{\"language\":\"javascriptreact\",\"scopeName\":\"source.js.jsx\",\"path\":\"./syntaxes/JavaScriptReact.tmLanguage.json\",\"embeddedLanguages\":{\"meta.tag.js\":\"jsx-tags\",\"meta.tag.without-attributes.js\":\"jsx-tags\",\"meta.tag.attributes.js.jsx\":\"javascriptreact\",\"meta.embedded.expression.js\":\"javascriptreact\"},\"tokenTypes\":{\"entity.name.type.instance.jsdoc\":\"other\",\"entity.name.function.tagged-template\":\"other\",\"meta.import string.quoted\":\"other\",\"variable.other.jsdoc\":\"other\"}},{\"language\":\"javascript\",\"scopeName\":\"source.js\",\"path\":\"./syntaxes/JavaScript.tmLanguage.json\",\"embeddedLanguages\":{\"meta.tag.js\":\"jsx-tags\",\"meta.tag.without-attributes.js\":\"jsx-tags\",\"meta.tag.attributes.js\":\"javascript\",\"meta.embedded.expression.js\":\"javascript\"},\"tokenTypes\":{\"entity.name.type.instance.jsdoc\":\"other\",\"entity.name.function.tagged-template\":\"other\",\"meta.import string.quoted\":\"other\",\"variable.other.jsdoc\":\"other\"}},{\"scopeName\":\"source.js.regexp\",\"path\":\"./syntaxes/Regular Expressions (JavaScript).tmLanguage\"}],\"snippets\":[{\"language\":\"javascript\",\"path\":\"./snippets/javascript.json\"},{\"language\":\"javascriptreact\",\"path\":\"./snippets/javascript.json\"}],\"jsonValidation\":[{\"fileMatch\":\".bowerrc\",\"url\":\"https://schemastore.azurewebsites.net/schemas/json/bowerrc.json\"},{\"fileMatch\":\".babelrc\",\"url\":\"https://schemastore.azurewebsites.net/schemas/json/babelrc.json\"},{\"fileMatch\":\".babelrc.json\",\"url\":\"https://schemastore.azurewebsites.net/schemas/json/babelrc.json\"},{\"fileMatch\":\"jsconfig.json\",\"url\":\"https://schemastore.azurewebsites.net/schemas/json/jsconfig.json\"},{\"fileMatch\":\"jsconfig.json\",\"url\":\"./schemas/jsconfig.schema.json\"},{\"fileMatch\":\"jsconfig.*.json\",\"url\":\"https://schemastore.azurewebsites.net/schemas/json/jsconfig.json\"},{\"fileMatch\":\"jsconfig.*.json\",\"url\":\"./schemas/jsconfig.schema.json\"}]}}","/jolaleye.horizon-theme-vscode-2.0.2/package.json":"{\"name\":\"horizon-theme-vscode\",\"version\":\"2.0.2\",\"author\":\"Jonathan Olaleye \",\"displayName\":\"Horizon Theme\",\"description\":\"A beautifully warm dual theme for Visual Studio Code\",\"publisher\":\"jolaleye\",\"license\":\"MIT\",\"icon\":\"logo.png\",\"scripts\":{\"build\":\"npm run build:dark && npm run build:bright\",\"build:dark\":\"node src/dark/build\",\"build:bright\":\"node src/bright/build\"},\"engines\":{\"vscode\":\"^1.26.0\"},\"galleryBanner\":{\"color\":\"#FCEAE5\",\"theme\":\"light\"},\"categories\":[\"Themes\"],\"keywords\":[\"theme\",\"dark\",\"horizon\",\"warm\"],\"contributes\":{\"themes\":[{\"label\":\"Horizon\",\"uiTheme\":\"vs-dark\",\"path\":\"./themes/horizon.json\"}]},\"devDependencies\":{\"mustache\":\"^3.0.1\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/jolaleye/horizon-theme-vscode\"},\"homepage\":\"https://horizontheme.com/\",\"bugs\":{\"url\":\"https://github.com/jolaleye/horizon-theme-vscode/issues\"},\"__metadata\":{\"id\":\"fcf0848c-96b3-487a-a655-01aed955a594\",\"publisherId\":\"25219af3-1e18-4473-9b20-a231f88d9800\",\"publisherDisplayName\":\"jolaleye\"}}","/jpoissonnier.vscode-styled-components-0.0.26/package.json":"{\"name\":\"vscode-styled-components\",\"displayName\":\"vscode-styled-components\",\"description\":\"Syntax highlighting for styled-components\",\"version\":\"0.0.26\",\"publisher\":\"jpoissonnier\",\"icon\":\"logo.png\",\"license\":\"MIT\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/styled-components/vscode-styled-components.git\"},\"engines\":{\"vscode\":\"^1.5.0\"},\"categories\":[\"Programming Languages\"],\"scripts\":{\"format\":\"prettier --write '**/*.{js,jsx,md,json,css}'\",\"postinstall\":\"node ./node_modules/vscode/bin/install\",\"test\":\"node ./node_modules/vscode/bin/test ./test\"},\"contributes\":{\"languages\":[{\"id\":\"source.css.styled\",\"aliases\":[\"CSS (Styled Components)\"],\"configuration\":\"./css.styled.configuration.json\"}],\"grammars\":[{\"language\":\"source.css.styled\",\"scopeName\":\"source.css.styled\",\"path\":\"./syntaxes/css.styled.json\"},{\"injectTo\":[\"source.js\",\"source.ts\",\"source.jsx\",\"source.js.jsx\",\"source.tsx\",\"source.vue\"],\"scopeName\":\"styled\",\"path\":\"./syntaxes/styled-components.json\",\"embeddedLanguages\":{\"source.css.scss\":\"css\",\"meta.embedded.line.ts\":\"typescript\"}}],\"typescriptServerPlugins\":[{\"name\":\"typescript-styled-plugin\",\"enableForWorkspaceTypeScriptVersions\":true}]},\"dependencies\":{\"typescript-styled-plugin\":\"0.14.0\"},\"devDependencies\":{\"prettier\":\"^1.14.3\",\"prettier-cli\":\"^0.1.0\",\"vscode\":\"^1.1.26\"},\"__metadata\":{\"id\":\"06cc3e44-aedb-41b8-a4ea-29ebf3c491fd\",\"publisherId\":\"dc4b8887-5c2d-49b0-a25f-724384a16ec3\",\"publisherDisplayName\":\"Julien Poissonnier\"}}","/json/package.json":"{\"name\":\"json\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"0.10.x\"},\"scripts\":{\"update-grammar\":\"node ./build/update-grammars.js\"},\"contributes\":{\"languages\":[{\"id\":\"json\",\"aliases\":[\"JSON\",\"json\"],\"extensions\":[\".json\",\".bowerrc\",\".jshintrc\",\".jscsrc\",\".eslintrc\",\".swcrc\",\".webmanifest\",\".js.map\",\".css.map\"],\"filenames\":[\"composer.lock\",\".watchmanconfig\",\".ember-cli\"],\"mimetypes\":[\"application/json\",\"application/manifest+json\"],\"configuration\":\"./language-configuration.json\"},{\"id\":\"jsonc\",\"aliases\":[\"JSON with Comments\"],\"extensions\":[\".hintrc\",\".babelrc\",\".jsonc\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"json\",\"scopeName\":\"source.json\",\"path\":\"./syntaxes/JSON.tmLanguage.json\"},{\"language\":\"jsonc\",\"scopeName\":\"source.json.comments\",\"path\":\"./syntaxes/JSONC.tmLanguage.json\"}],\"jsonValidation\":[{\"fileMatch\":\"*.schema.json\",\"url\":\"http://json-schema.org/draft-07/schema#\"}]}}","/json-language-features/package.json":"{\"name\":\"json-language-features\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"aiKey\":\"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217\",\"engines\":{\"vscode\":\"0.10.x\"},\"icon\":\"icons/json.png\",\"activationEvents\":[\"onLanguage:json\",\"onLanguage:jsonc\"],\"main\":\"./client/dist/jsonMain\",\"enableProposedApi\":true,\"scripts\":{\"compile\":\"gulp compile-extension:json-language-features-client compile-extension:json-language-features-server\",\"watch\":\"gulp watch-extension:json-language-features-client watch-extension:json-language-features-server\",\"postinstall\":\"cd server && yarn install\",\"install-client-next\":\"yarn add vscode-languageclient@next\"},\"categories\":[\"Programming Languages\"],\"contributes\":{\"configuration\":{\"id\":\"json\",\"order\":20,\"type\":\"object\",\"title\":\"JSON\",\"properties\":{\"json.schemas\":{\"type\":\"array\",\"scope\":\"resource\",\"description\":\"%json.schemas.desc%\",\"items\":{\"type\":\"object\",\"default\":{\"fileMatch\":[\"/myfile\"],\"url\":\"schemaURL\"},\"properties\":{\"url\":{\"type\":\"string\",\"default\":\"/user.schema.json\",\"description\":\"%json.schemas.url.desc%\"},\"fileMatch\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"default\":\"MyFile.json\",\"description\":\"%json.schemas.fileMatch.item.desc%\"},\"minItems\":1,\"description\":\"%json.schemas.fileMatch.desc%\"},\"schema\":{\"$ref\":\"http://json-schema.org/draft-07/schema#\",\"description\":\"%json.schemas.schema.desc%\"}}}},\"json.format.enable\":{\"type\":\"boolean\",\"scope\":\"window\",\"default\":true,\"description\":\"%json.format.enable.desc%\"},\"json.trace.server\":{\"type\":\"string\",\"scope\":\"window\",\"enum\":[\"off\",\"messages\",\"verbose\"],\"default\":\"off\",\"description\":\"%json.tracing.desc%\"},\"json.colorDecorators.enable\":{\"type\":\"boolean\",\"scope\":\"window\",\"default\":true,\"description\":\"%json.colorDecorators.enable.desc%\",\"deprecationMessage\":\"%json.colorDecorators.enable.deprecationMessage%\"}}},\"configurationDefaults\":{\"[json]\":{\"editor.quickSuggestions\":{\"strings\":true}}}},\"dependencies\":{\"vscode-extension-telemetry\":\"0.1.1\",\"vscode-languageclient\":\"^5.1.0\",\"vscode-nls\":\"^4.0.0\"},\"devDependencies\":{\"@types/node\":\"^10.12.21\"}}","/juliettepretot.lucy-vscode-2.6.3/package.json":"{\"name\":\"lucy-vscode\",\"displayName\":\"Lucy Theme\",\"description\":\"🌃 Easy on the eyes.\",\"version\":\"2.6.3\",\"publisher\":\"juliettepretot\",\"repository\":\"https://github.com/juliettepretot/lucy-vscode\",\"scripts\":{\"build\":\"node --experimental-modules src/index.mjs\",\"release\":\"npm version patch & vsce publish && npm publish && git push\"},\"engines\":{\"vscode\":\"^1.26.0\"},\"categories\":[\"Themes\"],\"icon\":\"static/icon.png\",\"contributes\":{\"themes\":[{\"label\":\"lucy\",\"uiTheme\":\"vs-dark\",\"path\":\"./dist/color-theme.json\"}]},\"tags\":[\"femme\",\"feminine\",\"clear\",\"pink\",\"dark theme\",\"color-theme\",\"monokai\",\"cute\"],\"devDependencies\":{\"clean-slate-lint\":\"^1.0.9\"},\"husky\":{\"hooks\":{\"pre-commit\":\"./node_modules/.bin/clean-slate-lint\",\"pre-rewrite\":\"./node_modules/.bin/clean-slate-lint\"}},\"__metadata\":{\"id\":\"633db44e-aa2a-4076-9b80-fb54ac7980cb\",\"publisherId\":\"f62bd4d3-ff79-4418-a375-12916c25790c\",\"publisherDisplayName\":\"juliettepretot\"}}","/kumar-harsh.graphql-for-vscode-1.13.0/package.json":"{\"name\":\"graphql-for-vscode\",\"displayName\":\"GraphQL for VSCode\",\"version\":\"1.13.0\",\"description\":\"GraphQL syntax highlighting, linting, auto-complete, and more!\",\"author\":{\"name\":\"Kumar Harsh\",\"email\":\"khs@playlyfe.com\",\"url\":\"https://github.com/kumarharsh\"},\"keywords\":[\"vscode\",\"visual studio code\",\"graphql\",\"linter\"],\"publisher\":\"kumar-harsh\",\"engines\":{\"vscode\":\"^1.17.0\"},\"license\":\"MIT\",\"contributors\":[{\"name\":\"Mayank Agarwal (@Mayank1791989)\",\"url\":\"https://github.com/Mayank1791989\",\"email\":\"mayank@playlyfe.com\"}],\"categories\":[\"Programming Languages\",\"Linters\",\"Snippets\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/kumarharsh/graphql-for-vscode.git\"},\"bugs\":{\"url\":\"https://github.com/kumarharsh/graphql-for-vscode/issues\"},\"homepage\":\"https://github.com/kumarharsh/graphql-for-vscode/blob/master/README.md\",\"icon\":\"images/logo.png\",\"activationEvents\":[\"workspaceContains:.gqlconfig\"],\"main\":\"./out/client/extension\",\"badges\":[{\"url\":\"https://img.shields.io/badge/%20%20%F0%9F%9A%80-semantic--release-e10079.svg\",\"description\":\"Semantic Release\",\"href\":\"https://github.com/kumarharsh/graphql-for-vscode\"}],\"contributes\":{\"configuration\":{\"type\":\"object\",\"title\":\"Graphql Configuration\",\"properties\":{\"graphqlForVSCode.nodePath\":{\"type\":[\"string\",\"null\"],\"default\":null,\"description\":\"A path added to NODE_PATH when resolving the @playlyfe/gql module.\"},\"graphqlForVSCode.debug\":{\"type\":[\"boolean\",\"null\"],\"default\":false,\"description\":\"enable debug logs.\"}}},\"commands\":[{\"command\":\"graphqlForVSCode.showOutputChannel\",\"title\":\"GraphQL for VSCode: Show Output Channel\"}],\"languages\":[{\"id\":\"graphql\",\"extensions\":[\".gql\",\".graphql\",\".graphqls\"],\"aliases\":[\"GraphQL\"],\"configuration\":\"./syntaxes/language-configuration.json\"}],\"grammars\":[{\"language\":\"graphql\",\"scopeName\":\"source.graphql\",\"path\":\"./syntaxes/graphql.json\"},{\"injectTo\":[\"source.js\",\"source.ts\",\"source.js.jsx\",\"source.tsx\",\"source.vue\"],\"scopeName\":\"inline.graphql\",\"path\":\"./syntaxes/graphql.js.json\",\"embeddedLanguages\":{\"meta.embedded.block.graphql\":\"graphql\"}},{\"injectTo\":[\"source.ruby\"],\"scopeName\":\"inline.graphql.rb\",\"path\":\"./syntaxes/graphql.rb.json\",\"embeddedLanguages\":{\"meta.embedded.block.graphql\":\"graphql\"}},{\"injectTo\":[\"text.gherkin.feature\"],\"scopeName\":\"text.gherkin.feature.graphql\",\"path\":\"./syntaxes/graphql.feature.json\"},{\"injectTo\":[\"text.html.markdown\"],\"scopeName\":\"markdown.graphql.codeblock\",\"path\":\"./syntaxes/graphql.markdown.codeblock.json\",\"embeddedLanguages\":{\"meta.embedded.block.graphql\":\"graphql\"}},{\"injectTo\":[\"source.reason\",\"source.ocaml\"],\"scopeName\":\"inline.graphql.re\",\"path\":\"./syntaxes/graphql.re.json\",\"embeddedLanguages\":{\"meta.embedded.block.graphql\":\"graphql\"}}],\"snippets\":[{\"language\":\"graphql\",\"path\":\"./snippets/graphql.json\"}]},\"scripts\":{\"vscode:prepublish\":\"yarn clean && yarn compile-server && yarn compile\",\"postinstall\":\"node ./node_modules/vscode/bin/install\",\"clean\":\"rimraf out\",\"compile-server\":\"tsc -p src/server\",\"compile\":\"tsc -p src/client\",\"watch-server\":\"tsc -watch -p src/server\",\"watch\":\"tsc -watch -p src/client\",\"dev\":\"yarn clean && yarn compile-server && yarn watch\",\"package\":\"vsce package\"},\"devDependencies\":{\"@commitlint/cli\":\"^7.2.1\",\"@commitlint/config-conventional\":\"^7.1.2\",\"@semantic-release/changelog\":\"^3.0.1\",\"@semantic-release/commit-analyzer\":\"^6.1.0\",\"@semantic-release/git\":\"^7.0.6\",\"@semantic-release/release-notes-generator\":\"^7.1.4\",\"@types/node\":\"^9.3.0\",\"husky\":\"^1.2.1\",\"lint-staged\":\"^8.1.0\",\"prettier\":\"^1.15.3\",\"rimraf\":\"^2.6.2\",\"semantic-release\":\"^15.13.1\",\"semantic-release-vsce\":\"^2.1.2\",\"tslint\":\"^5.12.0\",\"tslint-config-prettier\":\"^1.17.0\",\"tslint-plugin-prettier\":\"^2.0.1\",\"typescript\":\"^3.1.1\",\"vscode\":\"1.1.6\"},\"dependencies\":{\"semver\":\"^5.6.0\",\"vscode-languageclient\":\"^3.4.5\",\"vscode-languageserver\":\"^3.4.3\",\"vscode-uri\":\"^1.0.6\"},\"galleryBanner\":{\"color\":\"#2e2348\",\"theme\":\"dark\"},\"commitlint\":{\"extends\":[\"@commitlint/config-conventional\"]},\"husky\":{\"hooks\":{\"commit-msg\":\"commitlint -E HUSKY_GIT_PARAMS\",\"pre-commit\":\"lint-staged\"}},\"lint-staged\":{\"linters\":{\"*.ts\":[\"tslint\",\"git add\"]},\"ignore\":[\"*.d.ts\"]}}","/less/package.json":"{\"name\":\"less\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js atom/language-less grammars/less.cson ./syntaxes/less.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"less\",\"aliases\":[\"Less\",\"less\"],\"extensions\":[\".less\"],\"mimetypes\":[\"text/x-less\",\"text/less\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"less\",\"scopeName\":\"source.css.less\",\"path\":\"./syntaxes/less.tmLanguage.json\"}],\"problemMatchers\":[{\"name\":\"lessc\",\"label\":\"Lessc compiler\",\"owner\":\"lessc\",\"source\":\"less\",\"fileLocation\":\"absolute\",\"pattern\":{\"regexp\":\"(.*)\\\\sin\\\\s(.*)\\\\son line\\\\s(\\\\d+),\\\\scolumn\\\\s(\\\\d+)\",\"message\":1,\"file\":2,\"line\":3,\"column\":4}}]}}","/log/package.json":"{\"name\":\"log\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js emilast/vscode-logfile-highlighter syntaxes/log.tmLanguage ./syntaxes/log.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"log\",\"extensions\":[\".log\",\"*.log.?\"],\"aliases\":[\"log\"]}],\"grammars\":[{\"language\":\"log\",\"scopeName\":\"text.log\",\"path\":\"./syntaxes/log.tmLanguage.json\"}]}}","/lua/package.json":"{\"name\":\"lua\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js textmate/lua.tmbundle Syntaxes/Lua.plist ./syntaxes/lua.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"lua\",\"extensions\":[\".lua\"],\"aliases\":[\"Lua\",\"lua\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"lua\",\"scopeName\":\"source.lua\",\"path\":\"./syntaxes/lua.tmLanguage.json\"}]}}","/make/package.json":"{\"name\":\"make\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js fadeevab/make.tmbundle Syntaxes/Makefile.plist ./syntaxes/make.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"makefile\",\"aliases\":[\"Makefile\",\"makefile\"],\"extensions\":[\".mk\"],\"filenames\":[\"Makefile\",\"makefile\",\"GNUmakefile\",\"OCamlMakefile\"],\"firstLine\":\"^#!\\\\s*/usr/bin/make\",\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"makefile\",\"scopeName\":\"source.makefile\",\"path\":\"./syntaxes/make.tmLanguage.json\",\"tokenTypes\":{\"string.interpolated\":\"other\"}}],\"configurationDefaults\":{\"[makefile]\":{\"editor.insertSpaces\":false}}}}","/mariusschulz.yarn-lock-syntax/package.json":"{\"name\":\"yarn-lock-syntax\",\"displayName\":\"Syntax Highlighting for yarn.lock files\",\"description\":\"Syntax highlighting for yarn.lock files\",\"version\":\"0.1.3\",\"publisher\":\"mariusschulz\",\"license\":\"MIT\",\"icon\":\"icons/yarn-logo-128x128.png\",\"repository\":{\"url\":\"https://github.com/mariusschulz/vscode-yarn-lock-syntax\"},\"engines\":{\"vscode\":\"^1.28.0\"},\"categories\":[\"Programming Languages\"],\"keywords\":[\"yarn\",\"yarn.lock\",\"syntax\",\"highlighting\"],\"contributes\":{\"languages\":[{\"id\":\"yarnlock\",\"aliases\":[\"yarn.lock\",\"yarnlock\"],\"extensions\":[\"yarn.lock\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"yarnlock\",\"scopeName\":\"text.yarnlock\",\"path\":\"./syntaxes/yarnlock.tmLanguage.json\"}]}}","/markdown-basics/package.json":"{\"name\":\"markdown\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"^1.20.0\"},\"contributes\":{\"languages\":[{\"id\":\"markdown\",\"aliases\":[\"Markdown\",\"markdown\"],\"extensions\":[\".md\",\".mkd\",\".mdwn\",\".mdown\",\".markdown\",\".markdn\",\".mdtxt\",\".mdtext\",\".workbook\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"markdown\",\"scopeName\":\"text.html.markdown\",\"path\":\"./syntaxes/markdown.tmLanguage.json\",\"embeddedLanguages\":{\"meta.embedded.block.html\":\"html\",\"source.js\":\"javascript\",\"source.css\":\"css\",\"meta.embedded.block.frontmatter\":\"yaml\",\"meta.embedded.block.css\":\"css\",\"meta.embedded.block.ini\":\"ini\",\"meta.embedded.block.java\":\"java\",\"meta.embedded.block.lua\":\"lua\",\"meta.embedded.block.makefile\":\"makefile\",\"meta.embedded.block.perl\":\"perl\",\"meta.embedded.block.r\":\"r\",\"meta.embedded.block.ruby\":\"ruby\",\"meta.embedded.block.php\":\"php\",\"meta.embedded.block.sql\":\"sql\",\"meta.embedded.block.vs_net\":\"vs_net\",\"meta.embedded.block.xml\":\"xml\",\"meta.embedded.block.xsl\":\"xsl\",\"meta.embedded.block.yaml\":\"yaml\",\"meta.embedded.block.dosbatch\":\"dosbatch\",\"meta.embedded.block.clojure\":\"clojure\",\"meta.embedded.block.coffee\":\"coffee\",\"meta.embedded.block.c\":\"c\",\"meta.embedded.block.cpp\":\"cpp\",\"meta.embedded.block.diff\":\"diff\",\"meta.embedded.block.dockerfile\":\"dockerfile\",\"meta.embedded.block.go\":\"go\",\"meta.embedded.block.groovy\":\"groovy\",\"meta.embedded.block.pug\":\"jade\",\"meta.embedded.block.javascript\":\"javascript\",\"meta.embedded.block.json\":\"json\",\"meta.embedded.block.less\":\"less\",\"meta.embedded.block.objc\":\"objc\",\"meta.embedded.block.scss\":\"scss\",\"meta.embedded.block.perl6\":\"perl6\",\"meta.embedded.block.powershell\":\"powershell\",\"meta.embedded.block.python\":\"python\",\"meta.embedded.block.rust\":\"rust\",\"meta.embedded.block.scala\":\"scala\",\"meta.embedded.block.shellscript\":\"shellscript\",\"meta.embedded.block.typescript\":\"typescript\",\"meta.embedded.block.typescriptreact\":\"typescriptreact\",\"meta.embedded.block.csharp\":\"csharp\",\"meta.embedded.block.fsharp\":\"fsharp\"}}],\"snippets\":[{\"language\":\"markdown\",\"path\":\"./snippets/markdown.json\"}]},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js microsoft/vscode-markdown-tm-grammar syntaxes/markdown.tmLanguage ./syntaxes/markdown.tmLanguage.json\"}}","/markdown-language-features/package.json":"{\"name\":\"markdown-language-features\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"icon\":\"icon.png\",\"publisher\":\"vscode\",\"aiKey\":\"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217\",\"engines\":{\"vscode\":\"^1.20.0\"},\"main\":\"./dist/extension\",\"categories\":[\"Programming Languages\"],\"activationEvents\":[\"onLanguage:markdown\",\"onCommand:markdown.preview.toggleLock\",\"onCommand:markdown.preview.refresh\",\"onCommand:markdown.showPreview\",\"onCommand:markdown.showPreviewToSide\",\"onCommand:markdown.showLockedPreviewToSide\",\"onCommand:markdown.showSource\",\"onCommand:markdown.showPreviewSecuritySelector\",\"onWebviewPanel:markdown.preview\"],\"contributes\":{\"commands\":[{\"command\":\"markdown.showPreview\",\"title\":\"%markdown.preview.title%\",\"category\":\"Markdown\",\"icon\":{\"light\":\"./media/Preview.svg\",\"dark\":\"./media/Preview_inverse.svg\"}},{\"command\":\"markdown.showPreviewToSide\",\"title\":\"%markdown.previewSide.title%\",\"category\":\"Markdown\",\"icon\":{\"light\":\"./media/PreviewOnRightPane_16x.svg\",\"dark\":\"./media/PreviewOnRightPane_16x_dark.svg\"}},{\"command\":\"markdown.showLockedPreviewToSide\",\"title\":\"%markdown.showLockedPreviewToSide.title%\",\"category\":\"Markdown\",\"icon\":{\"light\":\"./media/PreviewOnRightPane_16x.svg\",\"dark\":\"./media/PreviewOnRightPane_16x_dark.svg\"}},{\"command\":\"markdown.showSource\",\"title\":\"%markdown.showSource.title%\",\"category\":\"Markdown\",\"icon\":{\"light\":\"./media/ViewSource.svg\",\"dark\":\"./media/ViewSource_inverse.svg\"}},{\"command\":\"markdown.showPreviewSecuritySelector\",\"title\":\"%markdown.showPreviewSecuritySelector.title%\",\"category\":\"Markdown\"},{\"command\":\"markdown.preview.refresh\",\"title\":\"%markdown.preview.refresh.title%\",\"category\":\"Markdown\"},{\"command\":\"markdown.preview.toggleLock\",\"title\":\"%markdown.preview.toggleLock.title%\",\"category\":\"Markdown\"}],\"menus\":{\"editor/title\":[{\"command\":\"markdown.showPreviewToSide\",\"when\":\"editorLangId == markdown\",\"alt\":\"markdown.showPreview\",\"group\":\"navigation\"},{\"command\":\"markdown.showSource\",\"when\":\"markdownPreviewFocus\",\"group\":\"navigation\"},{\"command\":\"markdown.preview.refresh\",\"when\":\"markdownPreviewFocus\",\"group\":\"1_markdown\"},{\"command\":\"markdown.preview.toggleLock\",\"when\":\"markdownPreviewFocus\",\"group\":\"1_markdown\"},{\"command\":\"markdown.showPreviewSecuritySelector\",\"when\":\"markdownPreviewFocus\",\"group\":\"1_markdown\"}],\"explorer/context\":[{\"command\":\"markdown.showPreview\",\"when\":\"resourceLangId == markdown\",\"group\":\"navigation\"}],\"editor/title/context\":[{\"command\":\"markdown.showPreview\",\"when\":\"resourceLangId == markdown\",\"group\":\"navigation\"}],\"commandPalette\":[{\"command\":\"markdown.showPreview\",\"when\":\"editorLangId == markdown\",\"group\":\"navigation\"},{\"command\":\"markdown.showPreviewToSide\",\"when\":\"editorLangId == markdown\",\"group\":\"navigation\"},{\"command\":\"markdown.showLockedPreviewToSide\",\"when\":\"editorLangId == markdown\",\"group\":\"navigation\"},{\"command\":\"markdown.showSource\",\"when\":\"markdownPreviewFocus\",\"group\":\"navigation\"},{\"command\":\"markdown.showPreviewSecuritySelector\",\"when\":\"editorLangId == markdown\"},{\"command\":\"markdown.showPreviewSecuritySelector\",\"when\":\"markdownPreviewFocus\"},{\"command\":\"markdown.preview.toggleLock\",\"when\":\"markdownPreviewFocus\"}]},\"keybindings\":[{\"command\":\"markdown.showPreview\",\"key\":\"shift+ctrl+v\",\"mac\":\"shift+cmd+v\",\"when\":\"editorLangId == markdown\"},{\"command\":\"markdown.showPreviewToSide\",\"key\":\"ctrl+k v\",\"mac\":\"cmd+k v\",\"when\":\"editorLangId == markdown\"}],\"configuration\":{\"type\":\"object\",\"title\":\"Markdown\",\"order\":20,\"properties\":{\"markdown.styles\":{\"type\":\"array\",\"default\":[],\"description\":\"%markdown.styles.dec%\",\"scope\":\"resource\"},\"markdown.preview.breaks\":{\"type\":\"boolean\",\"default\":false,\"description\":\"%markdown.preview.breaks.desc%\",\"scope\":\"resource\"},\"markdown.preview.linkify\":{\"type\":\"boolean\",\"default\":true,\"description\":\"%markdown.preview.linkify%\",\"scope\":\"resource\"},\"markdown.preview.fontFamily\":{\"type\":\"string\",\"default\":\"-apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', 'Ubuntu', 'Droid Sans', sans-serif\",\"description\":\"%markdown.preview.fontFamily.desc%\",\"scope\":\"resource\"},\"markdown.preview.fontSize\":{\"type\":\"number\",\"default\":14,\"description\":\"%markdown.preview.fontSize.desc%\",\"scope\":\"resource\"},\"markdown.preview.lineHeight\":{\"type\":\"number\",\"default\":1.6,\"description\":\"%markdown.preview.lineHeight.desc%\",\"scope\":\"resource\"},\"markdown.preview.scrollPreviewWithEditor\":{\"type\":\"boolean\",\"default\":true,\"description\":\"%markdown.preview.scrollPreviewWithEditor.desc%\",\"scope\":\"resource\"},\"markdown.preview.scrollPreviewWithEditorSelection\":{\"type\":\"boolean\",\"default\":true,\"description\":\"%markdown.preview.scrollPreviewWithEditorSelection.desc%\",\"deprecationMessage\":\"%markdown.preview.scrollPreviewWithEditorSelection.deprecationMessage%\"},\"markdown.preview.markEditorSelection\":{\"type\":\"boolean\",\"default\":true,\"description\":\"%markdown.preview.markEditorSelection.desc%\",\"scope\":\"resource\"},\"markdown.preview.scrollEditorWithPreview\":{\"type\":\"boolean\",\"default\":true,\"description\":\"%markdown.preview.scrollEditorWithPreview.desc%\",\"scope\":\"resource\"},\"markdown.preview.doubleClickToSwitchToEditor\":{\"type\":\"boolean\",\"default\":true,\"description\":\"%markdown.preview.doubleClickToSwitchToEditor.desc%\",\"scope\":\"resource\"},\"markdown.preview.openMarkdownLinks\":{\"type\":\"string\",\"default\":\"inPreview\",\"description\":\"%configuration.markdown.preview.openMarkdownLinks.description%\",\"scope\":\"resource\",\"enum\":[\"inPreview\",\"inEditor\"],\"enumDescriptions\":[\"%configuration.markdown.preview.openMarkdownLinks.inPreview%\",\"%configuration.markdown.preview.openMarkdownLinks.inEditor%\"]},\"markdown.trace\":{\"type\":\"string\",\"enum\":[\"off\",\"verbose\"],\"default\":\"off\",\"description\":\"%markdown.trace.desc%\",\"scope\":\"window\"}}},\"configurationDefaults\":{\"[markdown]\":{\"editor.wordWrap\":\"on\",\"editor.quickSuggestions\":false}},\"jsonValidation\":[{\"fileMatch\":\"package.json\",\"url\":\"./schemas/package.schema.json\"}],\"markdown.previewStyles\":[\"./media/markdown.css\",\"./media/highlight.css\"],\"markdown.previewScripts\":[\"./media/index.js\"]},\"scripts\":{\"compile\":\"gulp compile-extension:markdown-language-features && npm run build-preview\",\"watch\":\"npm run build-preview && gulp watch-extension:markdown-language-features\",\"vscode:prepublish\":\"npm run build-ext && npm run build-preview\",\"build-ext\":\"node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:markdown-language-features ./tsconfig.json\",\"build-preview\":\"webpack --mode development\"},\"dependencies\":{\"highlight.js\":\"9.13.1\",\"markdown-it\":\"^8.4.2\",\"markdown-it-front-matter\":\"^0.1.2\",\"vscode-extension-telemetry\":\"0.1.1\",\"vscode-nls\":\"^4.0.0\"},\"devDependencies\":{\"@types/highlight.js\":\"9.12.3\",\"@types/lodash.throttle\":\"^4.1.3\",\"@types/markdown-it\":\"0.0.2\",\"@types/node\":\"^10.12.21\",\"lodash.throttle\":\"^4.1.1\",\"mocha-junit-reporter\":\"^1.17.0\",\"mocha-multi-reporters\":\"^1.1.7\",\"ts-loader\":\"^4.0.1\",\"typescript\":\"^3.3.1\",\"vscode\":\"^1.1.10\",\"webpack\":\"^4.1.0\",\"webpack-cli\":\"^2.0.10\"}}","/merge-conflict/package.json":"{\"name\":\"merge-conflict\",\"publisher\":\"vscode\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"icon\":\"resources/icons/merge-conflict.png\",\"version\":\"1.0.0\",\"aiKey\":\"AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217\",\"engines\":{\"vscode\":\"^1.5.0\"},\"categories\":[\"Other\"],\"activationEvents\":[\"*\"],\"main\":\"./dist/extension\",\"scripts\":{\"compile\":\"gulp compile-extension:merge-conflict\",\"watch\":\"gulp watch-extension:merge-conflict\"},\"contributes\":{\"commands\":[{\"category\":\"%command.category%\",\"title\":\"%command.accept.all-current%\",\"original\":\"Accept All Current\",\"command\":\"merge-conflict.accept.all-current\"},{\"category\":\"%command.category%\",\"title\":\"%command.accept.all-incoming%\",\"original\":\"Accept All Incoming\",\"command\":\"merge-conflict.accept.all-incoming\"},{\"category\":\"%command.category%\",\"title\":\"%command.accept.all-both%\",\"original\":\"Accept All Both\",\"command\":\"merge-conflict.accept.all-both\"},{\"category\":\"%command.category%\",\"title\":\"%command.accept.current%\",\"original\":\"Accept Current\",\"command\":\"merge-conflict.accept.current\"},{\"category\":\"%command.category%\",\"title\":\"%command.accept.incoming%\",\"original\":\"Accept Incoming\",\"command\":\"merge-conflict.accept.incoming\"},{\"category\":\"%command.category%\",\"title\":\"%command.accept.selection%\",\"original\":\"Accept Selection\",\"command\":\"merge-conflict.accept.selection\"},{\"category\":\"%command.category%\",\"title\":\"%command.accept.both%\",\"original\":\"Accept Both\",\"command\":\"merge-conflict.accept.both\"},{\"category\":\"%command.category%\",\"title\":\"%command.next%\",\"original\":\"Next Conflict\",\"command\":\"merge-conflict.next\"},{\"category\":\"%command.category%\",\"title\":\"%command.previous%\",\"original\":\"Previous Conflict\",\"command\":\"merge-conflict.previous\"},{\"category\":\"%command.category%\",\"title\":\"%command.compare%\",\"original\":\"Compare Current Conflict\",\"command\":\"merge-conflict.compare\"}],\"menus\":{\"scm/resourceState/context\":[{\"command\":\"merge-conflict.accept.all-current\",\"when\":\"scmProvider == git && scmResourceGroup == merge\",\"group\":\"1_modification\"},{\"command\":\"merge-conflict.accept.all-incoming\",\"when\":\"scmProvider == git && scmResourceGroup == merge\",\"group\":\"1_modification\"}]},\"configuration\":{\"title\":\"%config.title%\",\"properties\":{\"merge-conflict.codeLens.enabled\":{\"type\":\"boolean\",\"description\":\"%config.codeLensEnabled%\",\"default\":true},\"merge-conflict.decorators.enabled\":{\"type\":\"boolean\",\"description\":\"%config.decoratorsEnabled%\",\"default\":true},\"merge-conflict.autoNavigateNextConflict.enabled\":{\"type\":\"boolean\",\"description\":\"%config.autoNavigateNextConflictEnabled%\",\"default\":false}}}},\"dependencies\":{\"vscode-nls\":\"^4.0.0\"},\"devDependencies\":{\"@types/node\":\"8.0.33\"}}","/ms-vscode.references-view/package.json":"{\"name\":\"references-view\",\"displayName\":\"Reference Search View\",\"icon\":\"media/icon.png\",\"description\":\"Reference Search results as separate, stable view in the sidebar\",\"version\":\"0.0.26\",\"publisher\":\"ms-vscode\",\"engines\":{\"vscode\":\"^1.30.0\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/Microsoft/vscode-reference-view\"},\"bugs\":{\"url\":\"https://github.com/Microsoft/vscode-reference-view/issues\"},\"categories\":[\"Programming Languages\"],\"activationEvents\":[\"onCommand:references-view.find\",\"onCommand:editor.action.showReferences\",\"onView:references-view.tree\"],\"main\":\"./dist/extension\",\"contributes\":{\"configuration\":{\"properties\":{\"references.preferredLocation\":{\"description\":\"Controls whether 'Peek References' or 'Find References' is invoked when selecting code lens references\",\"type\":\"string\",\"default\":\"peek\",\"enum\":[\"peek\",\"view\"],\"enumDescriptions\":[\"Show references in peek editor.\",\"Show references in separate view.\"]}}},\"viewsContainers\":{\"activitybar\":[{\"id\":\"references-view\",\"icon\":\"./media/container-icon.svg\",\"title\":\"References\"}]},\"views\":{\"references-view\":[{\"id\":\"references-view.tree\",\"name\":\"Results\",\"when\":\"reference-list.isActive\"}]},\"commands\":[{\"command\":\"references-view.find\",\"title\":\"Find All References\",\"category\":\"References\"},{\"command\":\"references-view.clear\",\"title\":\"Clear\",\"category\":\"References\",\"icon\":{\"dark\":\"./media/action-clear-dark.svg\",\"light\":\"./media/action-clear.svg\"}},{\"command\":\"references-view.refresh\",\"title\":\"Refresh\",\"category\":\"References\",\"icon\":{\"dark\":\"./media/action-refresh-dark.svg\",\"light\":\"./media/action-refresh.svg\"}},{\"command\":\"references-view.pickFromHistory\",\"title\":\"Show History\",\"category\":\"References\"},{\"command\":\"references-view.remove\",\"title\":\"Dismiss\",\"icon\":{\"dark\":\"./media/action-remove-dark.svg\",\"light\":\"./media/action-remove.svg\"}},{\"command\":\"references-view.copy\",\"title\":\"Copy\"},{\"command\":\"references-view.copyAll\",\"title\":\"Copy All\"},{\"command\":\"references-view.copyPath\",\"title\":\"Copy Path\"},{\"command\":\"references-view.refind\",\"title\":\"Rerun\",\"icon\":{\"dark\":\"./media/action-refresh-dark.svg\",\"light\":\"./media/action-refresh.svg\"}}],\"menus\":{\"editor/context\":[{\"command\":\"references-view.find\",\"when\":\"editorHasReferenceProvider\",\"group\":\"navigation@1.49\"}],\"view/title\":[{\"command\":\"references-view.refresh\",\"group\":\"navigation\",\"when\":\"view == references-view.tree && reference-list.hasResult\"},{\"command\":\"references-view.clear\",\"group\":\"navigation\",\"when\":\"view == references-view.tree && reference-list.hasResult\"}],\"view/item/context\":[{\"command\":\"references-view.remove\",\"group\":\"inline\",\"when\":\"view == references-view.tree && viewItem != history-item\"},{\"command\":\"references-view.refind\",\"group\":\"inline\",\"when\":\"view == references-view.tree && viewItem == history-item\"},{\"command\":\"references-view.remove\",\"group\":\"1\",\"when\":\"view == references-view.tree && viewItem != history-item\"},{\"command\":\"references-view.refind\",\"group\":\"1\",\"when\":\"view == references-view.tree && viewItem == history-item\"},{\"command\":\"references-view.copy\",\"group\":\"2@1\",\"when\":\"view == references-view.tree && viewItem != history-item\"},{\"command\":\"references-view.copyPath\",\"group\":\"2@2\",\"when\":\"view == references-view.tree && viewItem == file-item\"},{\"command\":\"references-view.copyAll\",\"group\":\"2@3\",\"when\":\"view == references-view.tree && viewItem != history-item\"}],\"commandPalette\":[{\"command\":\"references-view.remove\",\"when\":\"never\"},{\"command\":\"references-view.copy\",\"when\":\"never\"},{\"command\":\"references-view.copyAll\",\"when\":\"never\"},{\"command\":\"references-view.copyPath\",\"when\":\"never\"},{\"command\":\"references-view.refind\",\"when\":\"never\"},{\"command\":\"references-view.find\",\"when\":\"editorHasReferenceProvider\"},{\"command\":\"references-view.clear\",\"when\":\"reference-list.hasResult\"},{\"command\":\"references-view.refresh\",\"when\":\"reference-list.hasResult\"},{\"command\":\"references-view.pickFromHistory\",\"when\":\"reference-list.isActive\"}]},\"keybindings\":[{\"command\":\"references-view.find\",\"when\":\"editorHasReferenceProvider\",\"key\":\"shift+alt+f12\"},{\"command\":\"references-view.next\",\"when\":\"reference-list.hasResult\",\"key\":\"f4\"},{\"command\":\"references-view.prev\",\"when\":\"reference-list.hasResult\",\"key\":\"shift+f4\"}]},\"scripts\":{\"vscode:prepublish\":\"webpack --mode production\",\"compile\":\"webpack --mode none\",\"watch\":\"webpack --mode none --watch\",\"postinstall\":\"node ./node_modules/vscode/bin/install\"},\"devDependencies\":{\"@types/node\":\"^7.0.43\",\"ts-loader\":\"^5.3.3\",\"typescript\":\"^3.1.6\",\"vscode\":\"^1.1.21\",\"webpack\":\"^4.29.3\",\"webpack-cli\":\"^3.2.3\"},\"__metadata\":{\"id\":\"dc489f46-520d-4556-ae85-1f9eab3c412d\",\"publisherId\":{\"publisherId\":\"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee\",\"publisherName\":\"ms-vscode\",\"displayName\":\"Microsoft\",\"flags\":\"verified\"},\"publisherDisplayName\":\"Microsoft\"}}","/ngryman.codesandbox-theme-0.0.1/package.json":"{\"name\":\"codesandbox-theme\",\"displayName\":\"CodeSandbox Theme\",\"description\":\"CodeSandbox theme for VSCode.\",\"version\":\"0.0.1\",\"publisher\":\"ngryman\",\"repository\":\"ngryman/vscode-theme\",\"engines\":{\"vscode\":\"^1.28.0\"},\"icon\":\"icon.png\",\"categories\":[\"Themes\"],\"contributes\":{\"themes\":[{\"label\":\"CodeSandbox\",\"uiTheme\":\"vs-dark\",\"path\":\"./themes/CodeSandbox-color-theme.json\"}]},\"__metadata\":{\"id\":\"ee0f7a17-5251-4f71-a408-8568747c781c\",\"publisherId\":\"dc81bfc5-445b-4b3d-bc78-2883f17b4366\",\"publisherDisplayName\":\"Nicolas Gryman\"}}","/objective-c/package.json":"{\"name\":\"objective-c\",\"displayName\":\"%displayName%\",\"description\":\"%description%\",\"version\":\"1.0.0\",\"publisher\":\"vscode\",\"engines\":{\"vscode\":\"*\"},\"scripts\":{\"update-grammar\":\"node ../../build/npm/update-grammar.js atom/language-objective-c grammars/objective-c.cson ./syntaxes/objective-c.tmLanguage.json && node ../../build/npm/update-grammar.js atom/language-objective-c grammars/objective-c%2B%2B.cson ./syntaxes/objective-c++.tmLanguage.json\"},\"contributes\":{\"languages\":[{\"id\":\"objective-c\",\"extensions\":[\".m\"],\"aliases\":[\"Objective-C\"],\"configuration\":\"./language-configuration.json\"},{\"id\":\"objective-cpp\",\"extensions\":[\".mm\"],\"aliases\":[\"Objective-C++\"],\"configuration\":\"./language-configuration.json\"}],\"grammars\":[{\"language\":\"objective-c\",\"scopeName\":\"source.objc\",\"path\":\"./syntaxes/objective-c.tmLanguage.json\"},{\"language\":\"objective-cpp\",\"scopeName\":\"source.objcpp\",\"path\":\"./syntaxes/objective-c++.tmLanguage.json\"}]}}","/octref.vetur-0.28.0/package.json":"{\"name\":\"vetur\",\"displayName\":\"Vetur\",\"description\":\"Vue tooling for VS Code\",\"author\":\"Pine Wu \",\"icon\":\"asset/vue.png\",\"version\":\"0.28.0\",\"publisher\":\"octref\",\"scripts\":{\"postinstall\":\"run-s install:*\",\"install:server\":\"cd server && yarn\",\"install:vti\":\"cd vti && yarn\",\"build:grammar\":\"tsc -p . && node dist/scripts/build_grammar\",\"compile\":\"run-s compile:source copy:snippets\",\"compile:source\":\"tsc -b .\",\"watch\":\"run-s compile copy:snippets watch:build\",\"watch:build\":\"tsc -b -w .\",\"copy:snippets\":\"node ./build/copy-snippets.js\",\"lint\":\"tslint -c tslint.json client/**/*.ts server/**/*.ts scripts/**/*.ts\",\"test:server\":\"yarn compile && cd server && yarn test\",\"test:e2e\":\"node ./dist/test/codeTestRunner.js\",\"test:grammar\":\"node ./dist/test/codeTestRunner.js grammar\",\"test:lsp\":\"node ./dist/test/codeTestRunner.js lsp\",\"test:int\":\"node ./dist/test/codeTestRunner.js interpolation\",\"test:vue3\":\"node ./dist/test/codeTestRunner.js vue3\",\"test:componentData\":\"node ./dist/test/codeTestRunner.js componentData\",\"test\":\"run-s compile test:server test:e2e\",\"docs\":\"bash ./build/update-docs.sh\",\"prepare-publish\":\"./build/release-cleanup.sh\"},\"husky\":{\"hooks\":{\"pre-commit\":\"lint-staged\"}},\"lint-staged\":{\"*.ts\":[\"tslint --fix\"],\"*.{js,ts,yaml}\":[\"prettier --write\"]},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vuejs/vetur.git\"},\"keywords\":[\"vetur\",\"Vue\",\"vue\",\"vuejs\"],\"categories\":[\"Programming Languages\"],\"engines\":{\"vscode\":\"^1.47.0\"},\"dependencies\":{\"vscode-languageclient\":\"^6.1.3\",\"vscode-languageserver-types\":\"^3.15.1\"},\"activationEvents\":[\"onLanguage:vue\"],\"main\":\"./dist/client/vueMain\",\"contributes\":{\"commands\":[{\"command\":\"vetur.generateGrammar\",\"title\":\"Vetur: Generate grammar from `vetur.grammar.customBlocks`\"},{\"command\":\"vetur.showCorrespondingVirtualFile\",\"title\":\"Vetur: Show corresponding virtual file and sourcemap\"},{\"command\":\"vetur.openUserScaffoldSnippetFolder\",\"title\":\"Vetur: Open user scaffold snippet folder\"}],\"breakpoints\":[{\"language\":\"vue\"}],\"languages\":[{\"id\":\"vue\",\"aliases\":[\"Vue\",\"vue\"],\"extensions\":[\".vue\"],\"configuration\":\"./languages/vue-language-configuration.json\"},{\"id\":\"vue-html\",\"aliases\":[\"Vue-html\"],\"configuration\":\"./languages/vue-html-language-configuration.json\"},{\"id\":\"vue-postcss\",\"aliases\":[\"Vue-PostCSS\",\"Vue-POSTCSS\",\"vue-postcss\"],\"configuration\":\"./languages/vue-postcss-language-configuration.json\"}],\"grammars\":[{\"language\":\"vue\",\"scopeName\":\"source.vue\",\"path\":\"./syntaxes/vue-generated.json\",\"embeddedLanguages\":{\"text.html.basic\":\"html\",\"text.html.vue-html\":\"vue-html\",\"text.jade.slm\":\"slm\",\"text.pug\":\"jade\",\"text.haml\":\"haml\",\"text.html.liquid\":\"liquid\",\"source.css\":\"css\",\"source.css.scss\":\"scss\",\"source.css.less\":\"less\",\"source.css.postcss\":\"vue-postcss\",\"source.sass\":\"sass\",\"source.stylus\":\"stylus\",\"source.js\":\"javascript\",\"source.ts\":\"typescript\",\"source.coffee\":\"coffeescript\",\"text.html.markdown\":\"md\",\"source.yaml\":\"yaml\",\"source.json\":\"json\",\"source.php\":\"php\",\"source.graphql\":\"graphql\"}},{\"language\":\"vue-postcss\",\"scopeName\":\"source.css.postcss\",\"path\":\"./syntaxes/vue-postcss.json\"},{\"language\":\"vue-html\",\"scopeName\":\"text.html.vue-html\",\"path\":\"./syntaxes/vue-html.tmLanguage.json\",\"embeddedLanguages\":{\"source.js\":\"javascript\"}},{\"path\":\"./syntaxes/pug/directives.tmLanguage.json\",\"scopeName\":\"vue.pug.directives\",\"injectTo\":[\"source.vue\"]},{\"path\":\"./syntaxes/pug/interpolations.tmLanguage.json\",\"scopeName\":\"vue.pug.interpolations\",\"injectTo\":[\"source.vue\"]},{\"scopeName\":\"markdown.vue.codeblock\",\"path\":\"./syntaxes/markdown-vue.json\",\"injectTo\":[\"text.html.markdown\"],\"embeddedLanguages\":{\"meta.embedded.block.vue\":\"vue\"}}],\"configuration\":{\"title\":\"Vetur\",\"properties\":{\"vetur.useWorkspaceDependencies\":{\"type\":\"boolean\",\"default\":false,\"description\":\"Use dependencies from workspace. Currently only for TypeScript.\",\"scope\":\"application\"},\"vetur.completion.autoImport\":{\"type\":\"boolean\",\"default\":true,\"description\":\"Include completion for module export and auto import them\"},\"vetur.completion.scaffoldSnippetSources\":{\"type\":\"object\",\"default\":{\"workspace\":\"💼\",\"user\":\"🗒️\",\"vetur\":\"✌\"},\"properties\":{\"workspace\":{\"type\":\"string\",\"default\":\"💼\",\"description\":\"Show Scaffold Snippets from `/.vscode/vetur/snippets`.\"},\"user\":{\"type\":\"string\",\"default\":\"🗒️\",\"description\":\"Show Scaffold Snippets from `/User/snippets/vetur`.\"},\"vetur\":{\"type\":\"string\",\"default\":\"✌\",\"description\":\"Show Scaffold Snippets bundled in Vetur.\"}},\"description\":\"Where Vetur source Scaffold Snippets from and how to indicate them. Set a source to \\\"\\\" to disable it.\\n\\n- workspace: `/.vscode/vetur/snippets`.\\n- user: `/User/snippets/vetur`.\\n- vetur: Bundled in Vetur.\\n\\nThe default is:\\n```\\n\\\"vetur.completion.scaffoldSnippetSources\\\": {\\n \\\"workspace\\\": \\\"💼\\\",\\n \\\"user\\\": \\\"🗒️\\\",\\n \\\"vetur\\\": \\\"✌\\\"\\n}\\n```\\n\\nAlternatively, you can do:\\n\\n```\\n\\\"vetur.completion.scaffoldSnippetSources\\\": {\\n \\\"workspace\\\": \\\"(W)\\\",\\n \\\"user\\\": \\\"(U)\\\",\\n \\\"vetur\\\": \\\"(V)\\\"\\n}\\n```\\n\\nRead more: https://vuejs.github.io/vetur/snippet.html.\"},\"vetur.completion.tagCasing\":{\"type\":\"string\",\"default\":\"kebab\",\"enum\":[\"initial\",\"kebab\"],\"enumDescriptions\":[\"use the key in `components: {...}` as is for tag completion and do not force any casing\",\"kebab-case completion for \"],\"description\":\"Casing conversion for tag completion\"},\"vetur.grammar.customBlocks\":{\"type\":\"object\",\"default\":{\"docs\":\"md\",\"i18n\":\"json\"},\"description\":\"Mapping from custom block tag name to language name. Used for generating grammar to support syntax highlighting for custom blocks.\"},\"vetur.validation.template\":{\"type\":\"boolean\",\"default\":true,\"description\":\"Validate vue-html in