%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : www.kowitt.ac.th  /  Your IP : 216.73.216.118
Web Server : Microsoft-IIS/7.5
System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.6.31
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/node/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/node/extensionHostProcess.js
/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){
var e=["require","exports","vs/base/common/winjs.base","vs/base/common/uri","vs/base/common/event","vs/workbench/api/node/extHost.protocol","vs/platform/instantiation/common/instantiation","vs/base/common/strings","vs/base/common/platform","vs/base/common/paths","vs/workbench/api/node/extHostTypes","vs/base/common/lifecycle","vs/base/common/arrays","vs/nls","vs/nls!vs/workbench/node/extensionHostProcess","vs/base/common/async","vs/base/common/objects","vs/base/common/errors","vs/base/common/types","vs/workbench/api/node/extHostTypeConverters","vs/base/common/map","path","vs/editor/common/model","vs/base/common/network","vs/editor/common/core/range","vs/editor/common/core/position","vs/platform/configuration/common/configuration","child_process","vs/platform/registry/common/platform","vs/base/common/cancellation","vs/base/common/resources","vs/editor/common/modes","vs/base/common/glob","vs/base/node/pfs","vs/base/common/severity","vs/editor/common/modes/languageConfiguration","vs/editor/common/services/modelService","vs/platform/files/common/files","vs/platform/configuration/common/configurationRegistry","vs/platform/log/common/log","os","vs/editor/common/model/wordHelper","vs/platform/contextkey/common/contextkey","vs/base/common/labels","vs/workbench/api/node/extHostExtensionActivator","vs/base/parts/ipc/common/ipc","vs/editor/common/modes/supports","vs/editor/common/modes/supports/richEditBrackets","vs/base/common/assert","vs/base/common/uuid","vs/base/common/decorators","net","vs/base/common/linkedList","fs","vs/base/node/extfs","vs/editor/common/config/editorOptions","vs/editor/common/modes/languageConfigurationRegistry","vs/editor/common/modes/languageSelector","vs/editor/common/modes/nullMode","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeBase","vs/platform/environment/common/environment","vs/editor/common/model/textModelSearch","vs/editor/common/core/uint","vs/platform/markers/common/markers","vs/platform/node/package","vs/editor/common/core/selection","vs/editor/common/modes/modesRegistry","vs/editor/common/services/modeService","vs/base/node/stdFork","vs/platform/configuration/common/configurationModels","vs/platform/search/common/search","vs/platform/workspace/common/workspace","vs/base/common/mime","vs/base/common/htmlContent","vs/workbench/api/node/extHostDocumentData","vs/workbench/common/editor","vs/base/common/comparers","vs/workbench/api/node/extHostDebugService","vs/workbench/services/textfile/common/textfiles","vs/base/common/functional","vs/workbench/api/node/extHostTextEditor","vs/base/node/stream","vs/editor/common/modes/supports/electricCharacter","vs/base/common/marshalling","vs/editor/common/modes/tokenizationRegistry","vs/editor/common/viewModel/prefixSumComputer","vs/editor/common/model/mirrorTextModel","vs/nls!vs/base/common/errorMessage","vs/base/node/encoding","vs/workbench/services/search/node/searchService","vs/base/common/errorMessage","vs/nls!vs/base/common/severity","vs/workbench/services/untitled/common/untitledEditorService","vs/nls!vs/base/node/processes","vs/base/node/processes","vs/base/parts/ipc/node/ipc.cp","vs/nls!vs/editor/common/config/editorOptions","vs/base/common/normalization","vs/nls!vs/editor/common/modes/modesRegistry","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/extensionManagement/common/extensionManagement","vs/nls!vs/platform/markers/common/markers","vs/nls!vs/platform/workspaces/common/workspaces","vs/nls!vs/workbench/api/node/extHostDebugService","vs/nls!vs/workbench/api/node/extHostDiagnostics","vs/nls!vs/workbench/api/node/extHostExtensionActivator","vs/nls!vs/workbench/api/node/extHostProgress","vs/nls!vs/workbench/api/node/extHostTask","vs/nls!vs/workbench/api/node/extHostTreeViews","vs/nls!vs/workbench/api/node/extHostWorkspace","vs/base/common/stopwatch","vs/nls!vs/workbench/parts/debug/node/debugAdapter","vs/nls!vs/workbench/parts/debug/node/terminals","vs/nls!vs/workbench/services/configurationResolver/node/variableResolver","vs/base/common/idGenerator","vs/base/parts/ipc/node/ipc.net","vs/base/parts/quickopen/common/quickOpenScorer","vs/editor/common/modes/languageFeatureRegistry","vs/base/common/scrollable","vs/editor/common/core/lineTokens","vs/base/node/console","vs/editor/common/model/textModelTokens","vs/editor/common/model/textModel","vs/editor/common/services/resourceConfiguration","vs/platform/commands/common/commands","vs/base/node/decoder","vs/editor/common/core/token","vs/platform/extensionManagement/common/extensionManagement","vs/workbench/node/extensionHostMain","vs/platform/keybinding/common/keybinding","vs/editor/common/core/characterClassifier","vs/platform/log/node/spdlogService","vs/editor/common/controller/wordCharacterClassifier","vs/base/node/flow","vs/platform/node/product","vs/platform/notification/common/notification","vs/platform/progress/common/progress","vs/editor/common/model/editStack","vs/editor/common/model/indentationGuesser","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/editor/common/model/intervalTree","vs/editor/common/model/pieceTreeTextBuffer/rbTreeBase","vs/editor/common/model/textModelEvents","assert","vs/platform/statusbar/common/statusbar","vs/platform/telemetry/common/telemetry","vs/platform/telemetry/common/telemetryUtils","vs/platform/workspaces/common/workspaces","vs/base/common/json","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer","vs/workbench/api/node/extHostHeapService","vs/workbench/api/node/extHostLogService","vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBufferBuilder","vs/workbench/common/editor/untitledEditorInput","vs/nls!vs/workbench/node/extensionHostMain","vs/workbench/api/node/extHostTreeViews","vs/base/common/processes","vs/workbench/common/editor/textEditorModel","vs/workbench/parts/debug/common/debugUtils","vs/workbench/parts/debug/node/debugAdapter","vs/workbench/parts/debug/node/terminals","vs/workbench/parts/tasks/common/tasks","vs/workbench/parts/terminal/common/terminal","vs/workbench/parts/terminal/node/terminalEnvironment","vs/workbench/services/backup/common/backup","vs/workbench/common/editor/untitledEditorModel","vs/workbench/services/configuration/common/configurationModels","vs/workbench/api/node/extHostConfiguration","vs/workbench/services/configurationResolver/node/variableResolver","vs/workbench/services/editor/common/editorService","vs/workbench/services/extensions/common/extensions","vs/workbench/services/extensions/node/extensionDescriptionRegistry","vs/workbench/services/extensions/node/lazyPromise","vs/workbench/services/extensions/node/proxyIdentifier","vs/base/common/actions","vs/base/common/filters","vs/workbench/api/node/extHostDecorations","vs/workbench/api/node/extHostDialogs","vs/workbench/api/node/extHostDocumentContentProviders","vs/workbench/api/node/extHostFileSystem","vs/workbench/api/node/extHostLanguages","vs/workbench/api/node/extHostMessageService","vs/workbench/api/node/extHostOutputService","vs/workbench/api/node/extHostQuickOpen","vs/workbench/api/node/extHostSCM","vs/workbench/api/node/extHostSearch","vs/workbench/api/node/extHostStatusBar","vs/workbench/api/node/extHostStorage","vs/workbench/api/node/extHostTask","vs/workbench/api/node/extHostTerminalService","vs/workbench/api/node/extHostUrls","vs/workbench/api/node/extHostWindow","vs/workbench/api/node/extHostWorkspace","vs/workbench/services/extensions/node/rpcProtocol","vs/workbench/services/hash/common/hashService","vs/workbench/services/progress/common/progress","vs/workbench/services/search/node/searchIpc","vs/editor/common/modes/supports/characterPair","vs/editor/common/modes/supports/indentRules","vs/workbench/api/node/apiCommands","vs/workbench/api/node/extHostApiCommands","vs/workbench/api/node/extHostCommands","vs/workbench/api/node/extHostComments","vs/workbench/api/node/extHostDiagnostics","vs/workbench/api/node/extHostDocumentSaveParticipant","vs/workbench/api/node/extHostDocuments","vs/workbench/api/node/extHostFileSystemEventService","vs/workbench/api/node/extHostLanguageFeatures","vs/workbench/api/node/extHostProgress","vs/editor/common/modes/supports/onEnter","vs/workbench/api/node/extHostDocumentsAndEditors","vs/workbench/api/node/extHostTextEditors","vs/workbench/api/node/extHostWebview","vs/workbench/api/node/extHost.api.impl","vs/workbench/api/node/extHostExtensionService","crypto","stream","iconv-lite","string_decoder","vs/workbench/node/extensionHostProcess"],t=function(t){
for(var n=[],r=0,i=t.length;r<i;r++)n[r]=e[t[r]];return n};define(e[48],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ok=function(e,t){if(!e||null===e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}}),define(e[50],t([0,1]),function(e,t){"use strict";function n(e){return function(t,n,r){var i=null,o=null;if("function"==typeof r.value?(i="value",o=r.value):"function"==typeof r.get&&(i="get",o=r.get),!o)throw new Error("not supported");r[i]=e(o,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=n,t.memoize=function(e,t,n){var r=null,i=null;if("function"==typeof n.value?(r="value",0!==(i=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(r="get",i=n.get),!i)throw new Error("not supported");var o="$memoize$"+t;n[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,
enumerable:!1,writable:!1,value:i.apply(this,e)}),this[o]}},t.debounce=function(e,t,r){return n(function(n,i){var o="$debounce$"+i,s=r?r():void 0;return function(){for(var i=this,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];clearTimeout(this[o]),t&&(s=t.apply(void 0,[s].concat(a)),a=[s]),this[o]=setTimeout(function(){n.apply(i,a),s=r?r():void 0},e)}})}}),define(e[79],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){var t,n=this,r=!1;return function(){return r?t:(r=!0,t=e.apply(n,arguments))}}}),define(e[114],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this._prefix=e,this._lastId=0}return e.prototype.nextId=function(){return this._prefix+ ++this._lastId},e}();t.IdGenerator=n,t.defaultGenerator=new n("id#")}),define(e[148],t([0,1]),function(e,t){"use strict";function n(e,t){function n(t,n){for(var r=0,i=0;r<t||!n;){var o=e.charCodeAt(a)
;if(o>=48&&o<=57)i=16*i+o-48;else if(o>=65&&o<=70)i=16*i+o-65+10;else{if(!(o>=97&&o<=102))break;i=16*i+o-97+10}a++,r++}return r<t&&(i=-1),i}function s(){if(f="",p=u.None,d=a,a>=l)return d=l,h=c.EOF;var t=e.charCodeAt(a);if(r(t)){do{a++,f+=String.fromCharCode(t),t=e.charCodeAt(a)}while(r(t));return h=c.Trivia}if(i(t))return a++,f+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,f+="\n"),h=c.LineBreakTrivia;switch(t){case 123:return a++,h=c.OpenBraceToken;case 125:return a++,h=c.CloseBraceToken;case 91:return a++,h=c.OpenBracketToken;case 93:return a++,h=c.CloseBracketToken;case 58:return a++,h=c.ColonToken;case 44:return a++,h=c.CommaToken;case 34:return a++,f=function(){for(var t="",r=a;;){if(a>=l){t+=e.substring(r,a),p=u.UnexpectedEndOfString;break}var o=e.charCodeAt(a);if(34===o){t+=e.substring(r,a),a++;break}if(92!==o){if(o>=0&&o<=31){if(i(o)){t+=e.substring(r,a),p=u.UnexpectedEndOfString;break}p=u.InvalidCharacter}a++}else{if(t+=e.substring(r,a),++a>=l){p=u.UnexpectedEndOfString;break}
switch(o=e.charCodeAt(a++)){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 s=n(4,!0);s>=0?t+=String.fromCharCode(s):p=u.InvalidUnicode;break;default:p=u.InvalidEscapeCharacter}r=a}}return t}(),h=c.StringLiteral;case 47:var s=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<l&&!i(e.charCodeAt(a));)a++;return f=e.substring(s,a),h=c.LineCommentTrivia}if(42===e.charCodeAt(a+1)){a+=2;for(var g=l-1,m=!1;a<g;){if(42===e.charCodeAt(a)&&47===e.charCodeAt(a+1)){a+=2,m=!0;break}a++}return m||(a++,p=u.UnexpectedEndOfComment),f=e.substring(s,a),h=c.BlockCommentTrivia}return f+=String.fromCharCode(t),a++,h=c.Unknown;case 45:if(f+=String.fromCharCode(t),++a===l||!o(e.charCodeAt(a)))return h=c.Unknown;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return f+=function(){var t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&o(e.charCodeAt(a));)a++
;if(a<e.length&&46===e.charCodeAt(a)){if(!(++a<e.length&&o(e.charCodeAt(a))))return p=u.UnexpectedEndOfNumber,e.substring(t,a);for(a++;a<e.length&&o(e.charCodeAt(a));)a++}var n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if((++a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,a<e.length&&o(e.charCodeAt(a))){for(a++;a<e.length&&o(e.charCodeAt(a));)a++;n=a}else p=u.UnexpectedEndOfNumber;return e.substring(t,n)}(),h=c.NumericLiteral;default:for(;a<l&&function(e){if(r(e)||i(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}(t);)a++,t=e.charCodeAt(a);if(d!==a){switch(f=e.substring(d,a)){case"true":return h=c.TrueKeyword;case"false":return h=c.FalseKeyword;case"null":return h=c.NullKeyword}return h=c.Unknown}return f+=String.fromCharCode(t),a++,h=c.Unknown}}void 0===t&&(t=!1);var a=0,l=e.length,f="",d=0,h=c.Unknown,p=u.None;return{setPosition:function(e){a=e,f="",d=0,h=c.Unknown,p=u.None},getPosition:function(){return a},
scan:t?function(){var e;do{e=s()}while(e>=c.LineCommentTrivia&&e<=c.Trivia);return e}:s,getToken:function(){return h},getTokenValue:function(){return f},getTokenOffset:function(){return d},getTokenLength:function(){return a-d},getTokenError:function(){return p}}}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 i(e){return 10===e||13===e||8232===e||8233===e}function o(e){return e>=48&&e<=57}function s(e){if("array"===e.type)return e.children.map(s);if("object"===e.type){for(var t={},n=0,r=e.children;n<r.length;n++){var i=r[n];t[i.children[0].value]=s(i.children[1])}return t}return e.value}function a(e,t,r){function i(e){return e?function(){return e(h.getTokenOffset(),h.getTokenLength())}:function(){return!0}}function o(e){return e?function(t){return e(t,h.getTokenOffset(),h.getTokenLength())}:function(){return!0}}function s(){for(;;){var e=h.scan();switch(e){case c.LineCommentTrivia:case c.BlockCommentTrivia:
E&&a(f.InvalidSymbol);break;case c.Unknown:a(f.InvalidSymbol);break;case c.Trivia:case c.LineBreakTrivia:break;default:return e}}}function a(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),C(e),t.length+n.length>0)for(var r=h.getToken();r!==c.EOF;){if(-1!==t.indexOf(r)){s();break}if(-1!==n.indexOf(r))break;r=s()}}function u(e){var t=h.getTokenValue();return e?y(t):g(t),s(),!0}function l(){return h.getToken()!==c.StringLiteral?(a(f.PropertyNameExpected,[],[c.CloseBraceToken,c.CommaToken]),!1):(u(!1),h.getToken()===c.ColonToken?(b(":"),s(),d()||a(f.ValueExpected,[],[c.CloseBraceToken,c.CommaToken])):a(f.ColonExpected,[],[c.CloseBraceToken,c.CommaToken]),!0)}function d(){switch(h.getToken()){case c.OpenBracketToken:return function(){v(),s();for(var e=!1;h.getToken()!==c.CloseBracketToken&&h.getToken()!==c.EOF;){if(h.getToken()===c.CommaToken){if(e||a(f.ValueExpected,[],[]),b(","),s(),h.getToken()===c.CloseBracketToken&&!S)break}else e&&a(f.CommaExpected,[],[])
;d()||a(f.ValueExpected,[],[c.CloseBracketToken,c.CommaToken]),e=!0}return _(),h.getToken()!==c.CloseBracketToken?a(f.CloseBracketExpected,[c.CloseBracketToken],[]):s(),!0}();case c.OpenBraceToken:return function(){p(),s();for(var e=!1;h.getToken()!==c.CloseBraceToken&&h.getToken()!==c.EOF;){if(h.getToken()===c.CommaToken){if(e||a(f.ValueExpected,[],[]),b(","),s(),h.getToken()===c.CloseBraceToken&&!S)break}else e&&a(f.CommaExpected,[],[]);l()||a(f.ValueExpected,[],[c.CloseBraceToken,c.CommaToken]),e=!0}return m(),h.getToken()!==c.CloseBraceToken?a(f.CloseBraceExpected,[c.CloseBraceToken],[]):s(),!0}();case c.StringLiteral:return u(!0);default:return function(){switch(h.getToken()){case c.NumericLiteral:var e=0;try{"number"!=typeof(e=JSON.parse(h.getTokenValue()))&&(a(f.InvalidNumberFormat),e=0)}catch(e){a(f.InvalidNumberFormat)}y(e);break;case c.NullKeyword:y(null);break;case c.TrueKeyword:y(!0);break;case c.FalseKeyword:y(!1);break;default:return!1}return s(),!0}()}}
var h=n(e,!1),p=i(t.onObjectBegin),g=o(t.onObjectProperty),m=i(t.onObjectEnd),v=i(t.onArrayBegin),_=i(t.onArrayEnd),y=o(t.onLiteralValue),b=o(t.onSeparator),C=o(t.onError),E=r&&r.disallowComments,S=r&&r.disallowTrailingComma;return s(),h.getToken()===c.EOF||(d()?(h.getToken()!==c.EOF&&a(f.EndOfFileExpected,[],[]),!0):(a(f.ValueExpected,[],[]),!1))}Object.defineProperty(t,"__esModule",{value:!0});var u;!function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(u=t.ScanError||(t.ScanError={}));var c;!function(e){e[e.Unknown=0]="Unknown",e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",
e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.EOF=16]="EOF"}(c=t.SyntaxKind||(t.SyntaxKind={})),t.createScanner=n;var l;!function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",
e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",
e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",
e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(l||(l={}));var f;!function(e){e[e.InvalidSymbol=0]="InvalidSymbol",e[e.InvalidNumberFormat=1]="InvalidNumberFormat",e[e.PropertyNameExpected=2]="PropertyNameExpected",e[e.ValueExpected=3]="ValueExpected",e[e.ColonExpected=4]="ColonExpected",e[e.CommaExpected=5]="CommaExpected",e[e.CloseBraceExpected=6]="CloseBraceExpected",e[e.CloseBracketExpected=7]="CloseBracketExpected",e[e.EndOfFileExpected=8]="EndOfFileExpected"}(f=t.ParseErrorCode||(t.ParseErrorCode={})),t.parse=function(e,t,n){function r(e){Array.isArray(o)?o.push(e):i&&(o[i]=e)}void 0===t&&(t=[]);var i=null,o=[],s=[];return a(e,{onObjectBegin:function(){var e={};r(e),s.push(o),o=e,i=null},onObjectProperty:function(e){i=e},onObjectEnd:function(){o=s.pop()},onArrayBegin:function(){var e=[];r(e),s.push(o),o=e,i=null},
onArrayEnd:function(){o=s.pop()},onLiteralValue:r,onError:function(e){t.push({error:e})}},n),o[0]},t.parseTree=function(e,t,n){function r(e){"property"===o.type&&(o.length=e-o.offset,o=o.parent)}function i(e){return o.children.push(e),e}void 0===t&&(t=[]);var o={type:"array",offset:-1,length:-1,children:[]};a(e,{onObjectBegin:function(e){o=i({type:"object",offset:e,length:-1,parent:o,children:[]})},onObjectProperty:function(e,t,n){(o=i({type:"property",offset:t,length:-1,parent:o,children:[]})).children.push({type:"string",value:e,offset:t,length:n,parent:o})},onObjectEnd:function(e,t){o.length=e+t-o.offset,o=o.parent,r(e+t)},onArrayBegin:function(e,t){o=i({type:"array",offset:e,length:-1,parent:o,children:[]})},onArrayEnd:function(e,t){o.length=e+t-o.offset,o=o.parent,r(e+t)},onLiteralValue:function(e,t,n){i({type:function(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}(e),offset:t,length:n,parent:o,value:e}),r(t+n)},
onSeparator:function(e,t,n){"property"===o.type&&(":"===e?o.columnOffset=t:","===e&&r(t))},onError:function(e){t.push({error:e})}},n);var s=o.children[0];return s&&delete s.parent,s},t.findNodeAtLocation=function(e,t){if(e){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r];if("string"==typeof o){if("object"!==n.type)return;for(var s=!1,a=0,u=n.children;a<u.length;a++){var c=u[a];if(c.children[0].value===o){n=c.children[1],s=!0;break}}if(!s)return}else{var l=o;if("array"!==n.type||l<0||l>=n.children.length)return;n=n.children[l]}}return n}},t.getNodeValue=s,t.visit=a}),define(e[11],t([0,1,79]),function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(e)?(e.forEach(function(e){return e&&e.dispose()}),[]):0!==t.length?(r(e),r(t),[]):e?(e.dispose(),e):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.empty=Object.freeze({dispose:function(){}}),t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=r,
t.combinedDisposable=function(e){return{dispose:function(){return r(e)}}},t.toDisposable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{dispose:function(){for(var t=0,n=e;t<n.length;t++)(0,n[t])()}}};var i=function(){function e(){this._toDispose=[]}return e.prototype.dispose=function(){this._toDispose=r(this._toDispose)},e.prototype._register=function(e){return this._toDispose.push(e),e},e}();t.Disposable=i;var o=function(){function e(){this.references=Object.create(null)}return e.prototype.acquire=function(e){var t=this,r=this.references[e];r||(r=this.references[e]={counter:0,object:this.createReferencedObject(e)});var i=r.object,o=n.once(function(){0==--r.counter&&(t.destroyReferencedObject(r.object),delete t.references[e])});return r.counter++,{object:i,dispose:o}},e}();t.ReferenceCollection=o;var s=function(){function e(e){this.object=e}return e.prototype.dispose=function(){},e}();t.ImmortalReference=s}),define(e[52],t([0,1]),function(e,t){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e){this.element=e}}(),r=function(){function e(){}return e.prototype.isEmpty=function(){return!this._first},e.prototype.clear=function(){this._first=void 0,this._last=void 0},e.prototype.unshift=function(e){return this.insert(e,!1)},e.prototype.push=function(e){return this.insert(e,!0)},e.prototype.insert=function(e,t){var r=this,i=new n(e);if(this._first)if(t){var o=this._last;this._last=i,i.prev=o,o.next=i}else{var s=this._first;this._first=i,i.next=s,s.prev=i}else this._first=i,this._last=i;return function(){for(var e=r._first;e instanceof n;e=e.next)if(e===i){if(e.prev&&e.next){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev||e.next?e.next?e.prev||(r._first=r._first.next,r._first.prev=void 0):(r._last=r._last.prev,r._last.next=void 0):(r._first=void 0,r._last=void 0);break}}},e.prototype.iterator=function(){var e={done:void 0,value:void 0},t=this._first;return{next:function(){return t?(e.done=!1,e.value=t.element,
t=t.next):(e.done=!0,e.value=void 0),e}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t instanceof n;t=t.next)e.push(t.element);return e},e}();t.LinkedList=r}),define(e[23],t([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"}(t.Schemas||(t.Schemas={}))}),define(e[8],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=!1,r=!1,i=!1,o=!1,s=!1,a=void 0,u=void 0,c=void 0;if(t.LANGUAGE_DEFAULT="en","object"==typeof process&&"function"==typeof process.nextTick&&"string"==typeof process.platform){n="win32"===process.platform,r="darwin"===process.platform,i="linux"===process.platform,a=t.LANGUAGE_DEFAULT,u=t.LANGUAGE_DEFAULT;var l=process.env.VSCODE_NLS_CONFIG;if(l)try{
var f=JSON.parse(l),d=f.availableLanguages["*"];a=f.locale,u=d||t.LANGUAGE_DEFAULT,c=f._translationsConfigFile}catch(e){}o=!0}else if("object"==typeof navigator){var h=navigator.userAgent;n=h.indexOf("Windows")>=0,r=h.indexOf("Macintosh")>=0,i=h.indexOf("Linux")>=0,s=!0,u=a=navigator.language}var p;!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(p=t.Platform||(t.Platform={}));var g=p.Web;o&&(r?g=p.Mac:n?g=p.Windows:i&&(g=p.Linux)),t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=o,t.isWeb=s,t.platform=g,t.isRootUser=function(){return o&&!n&&0===process.getuid()},t.language=u,t.locale=a,t.translationsConfigFile=c;var m="object"==typeof self?self:"object"==typeof global?global:{};t.globals=m;var v=null;t.setImmediate=function(e){return null===v&&(v=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)),v(e)};!function(e){
e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(t.OperatingSystem||(t.OperatingSystem={})),t.OS=r?2:n?1:3;!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(t.AccessibilitySupport||(t.AccessibilitySupport={}))}),define(e[156],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.stdout=0]="stdout",e[e.stderr=1]="stderr"}(t.Source||(t.Source={}));!function(e){e[e.Success=0]="Success",e[e.Unknown=1]="Unknown",e[e.AccessDenied=2]="AccessDenied",e[e.ProcessNotFound=3]="ProcessNotFound"}(t.TerminateResponseCode||(t.TerminateResponseCode={}))}),define(e[110],t([0,1,8]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n.globals.performance&&"function"==typeof n.globals.performance.now,i=function(){function e(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},
e.prototype.stop=function(){this._stopTime=this._now()},e.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?n.globals.performance.now():(new Date).getTime()},e}();t.StopWatch=i}),define(e[7],t([0,1]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function r(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var r=0;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function i(e,t){if(!e||!t)return e;var n=t.length,r=e.length;if(0===n||0===r)return e;for(var i=r,o=-1;;){if(-1===(o=e.lastIndexOf(t,i-1))||o+n!==i)break;if(0===o)return"";i=o}return e.substring(0,i)}function o(e,t){return e<t?-1:e>t?1:0}function s(e){return e>=97&&e<=122}function a(e){return e>=65&&e<=90}function u(e){return s(e)||a(e)}function c(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var r=0;r<n;r++){
var i=e.charCodeAt(r),o=t.charCodeAt(r);if(i!==o)if(u(i)&&u(o)){var s=Math.abs(i-o);if(0!==s&&32!==s)return!1}else if(String.fromCharCode(i).toLowerCase()!==String.fromCharCode(o).toLowerCase())return!1}return!0}function l(e,t,n,r,i,o){for(;t<n&&i<o;){if(e[t]!==r[i])return!1;t+=1,i+=1}return!0}function f(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function d(e){return e&&e.length>0&&65279===e.charCodeAt(0)}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n){void 0===n&&(n="0");for(var r=""+e,i=[r],o=r.length;o<t;o++)i.push(n);return i.reverse().join("")};var h=/{(\d+)}/g;t.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(h,function(e,n){var r=parseInt(n,10);return isNaN(r)||r<0||r>=t.length?e:t[r]})},t.escape=function(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"&lt;";case">":
return"&gt;";case"&":return"&amp;";default:return e}})},t.escapeRegExpCharacters=n,t.trim=function(e,t){return void 0===t&&(t=" "),i(r(e,t),t)},t.ltrim=r,t.rtrim=i,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.length<t.length)return!1;if(e===t)return!0;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},t.endsWith=function(e,t){var n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),r.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return r.global&&(i+="g"),r.matchCase||(i+="i"),r.multiline&&(i+="m"),new RegExp(e,i)},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.firstNonWhitespaceIndex=function(e){for(var t=0,n=e.length;t<n;t++){var r=e.charCodeAt(t);if(32!==r&&9!==r)return t}return-1},t.getLeadingWhitespace=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(32!==i&&9!==i)return e.substring(t,r)}return e.substring(t,n)},t.lastNonWhitespaceIndex=function(e,t){void 0===t&&(t=e.length-1);for(var n=t;n>=0;n--){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1},t.compare=o,t.compareIgnoreCase=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.charCodeAt(r),u=t.charCodeAt(r);if(i!==u){a(i)&&(i+=32),a(u)&&(u+=32);var c=i-u;if(0!==c)return s(i)&&s(u)?c:o(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=s,t.isUpperAsciiLetter=a,
t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&c(e,t)},t.startsWithIgnoreCase=function(e,t){var n=t.length;return!(t.length>e.length)&&c(e,t,n)},t.commonPrefixLength=function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return r},t.commonSuffixLength=function(e,t){var n,r=Math.min(e.length,t.length),i=e.length-1,o=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(o-n))return n;return r},t.overlap=function(e,t){var n=e.length,r=t.length,i=n-r;if(0===i)return e===t?n:0;for(i<0&&(r+=i,i=0);i<n&&r>0;){if(l(e,i,n,t,0,r))return r;r-=1,i+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343}
;var p=/(?:[\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 p.test(e)};var g=/(?:[\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 g.test(e)};var m=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return m.test(e)},t.containsFullWidthCharacter=function(e){for(var t=0,n=e.length;t<n;t++)if(f(e.charCodeAt(t)))return!0;return!1},t.isFullWidthCharacter=f,t.lcut=function(e,n){if(e.length<n)return e
;for(var r=/\b/g,i=0;r.test(e)&&!(e.length-r.lastIndex<n);)i=r.lastIndex,r.lastIndex+=1;return e.substring(i).replace(/^\s/,t.empty)};var v=/\x1B\x5B[12]?K/g,_=/\x1b\[\d+m/g,y=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(_,"")).replace(y,"")),e},t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=d,t.stripUTF8BOM=function(e){return d(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n},t.fuzzyContains=function(e,t){if(!e||!t)return!1;if(e.length<t.length)return!1;for(var n=t.length,r=e.toLowerCase(),i=0,o=-1;i<n;){var s=r.indexOf(t[i],o+1);if(s<0)return!1;o=s,i++}return!0},t.containsUppercaseCharacter=function(e,t){return void 0===t&&(t=!1),!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)}}),define(e[9],t([0,1,8,7]),function(e,t,n,r){"use strict";function i(e){var r=~e.lastIndexOf("/")||~e.lastIndexOf("\\");if(0===r)return".";if(0==~r)return e[0]
;if(~r==e.length-1)return i(e.substring(0,e.length-1));var o=e.substring(0,~r);return n.isWindows&&":"===o[o.length-1]&&(o+=t.nativeSep),o}function o(e){var t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?o(e.substring(0,e.length-1)):e.substr(1+~t)}function s(e,t){if(null===e||void 0===e)return e;var r=e.length;if(0===r)return".";var i=n.isWindows&&t;if(function(e,t){return t?!d.test(e):!f.test(e)}(e,i))return e;for(var o=i?"\\":"/",s=u(e,o),c=s.length,l=!1,h="",p=s.length;p<=r;p++)if(p===r||47===e.charCodeAt(p)||92===e.charCodeAt(p)){if(a(e,c,p,"..")){var g=h.lastIndexOf(o),m=h.slice(g+1);(s||m.length>0)&&".."!==m&&(h=-1===g?"":h.slice(0,g),l=!0)}else a(e,c,p,".")&&(s||h||p<r-1)&&(l=!0);if(!l){var v=e.slice(c,p);""!==h&&h[h.length-1]!==o&&(h+=o),h+=v}c=p+1,l=!1}return s+h}function a(e,t,n,r){return t+r.length===n&&e.indexOf(r,t)===t}function u(e,t){if(void 0===t&&(t="/"),!e)return"";var n=e.length,r=e.charCodeAt(0);if(47===r||92===r){
if((47===(r=e.charCodeAt(1))||92===r)&&47!==(r=e.charCodeAt(2))&&92!==r){for(var i=3,o=i;i<n&&(47!==(r=e.charCodeAt(i))&&92!==r);i++);if(r=e.charCodeAt(i+1),o!==i&&47!==r&&92!==r)for(i+=1;i<n;i++)if(47===(r=e.charCodeAt(i))||92===r)return e.slice(0,i+1).replace(/[\\/]/g,t)}return t}if((r>=65&&r<=90||r>=97&&r<=122)&&58===e.charCodeAt(1))return 47===(r=e.charCodeAt(2))||92===r?e.slice(0,2)+t:e.slice(0,2);var s=e.indexOf("://");if(-1!==s)for(s+=3;s<n;s++)if(47===(r=e.charCodeAt(s))||92===r)return e.slice(0,s+1);return""}function c(e){if(!e)return!1;var t=e.charCodeAt(0);if(47===t||92===t)return!0;if((t>=65&&t<=90||t>=97&&t<=122)&&e.length>2&&58===e.charCodeAt(1)){var n=e.charCodeAt(2);if(47===n||92===n)return!0}return!1}function l(e){return e&&47===e.charCodeAt(0)}Object.defineProperty(t,"__esModule",{value:!0}),t.sep="/",t.nativeSep=n.isWindows?"\\":"/",t.dirname=i,t.basename=o,t.extname=function(e){var t=~(e=o(e)).lastIndexOf(".");return t?e.substring(~t):""}
;var f=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,d=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;t.normalize=s,t.getRoot=u,t.join=function(){for(var e="",n=0;n<arguments.length;n++){var r=arguments[n];if(n>0){var i=e.charCodeAt(e.length-1);if(47!==i&&92!==i){var o=r.charCodeAt(0);47!==o&&92!==o&&(e+=t.sep)}}e+=r}return s(e)},t.isUNC=function(e){if(!n.isWindows)return!1;if(!e||e.length<5)return!1;var t=e.charCodeAt(0);if(92!==t)return!1;if(92!==(t=e.charCodeAt(1)))return!1;for(var r=2,i=r;r<e.length&&92!==(t=e.charCodeAt(r));r++);return i!==r&&(t=e.charCodeAt(r+1),!isNaN(t)&&92!==t)};var h=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,p=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(h.lastIndex=0,h.test(e)||n.isWindows&&p.test(e)||"."===e||".."===e||n.isWindows&&"."===e[e.length-1]||n.isWindows&&e.length!==e.trim().length))},t.isEqual=function(e,t,n){var i=e===t;return!n||i?i:!(!e||!t)&&r.equalsIgnoreCase(e,t)},
t.isEqualOrParent=function(e,n,i){if(e===n)return!0;if(!e||!n)return!1;if(n.length>e.length)return!1;if(i){if(!r.startsWithIgnoreCase(e,n))return!1;if(n.length===e.length)return!0;var o=n.length;return n.charAt(n.length-1)===t.nativeSep&&o--,e.charAt(o)===t.nativeSep}return n.charAt(n.length-1)!==t.nativeSep&&(n+=t.nativeSep),0===e.indexOf(n)},t.isAbsolute=function(e){return n.isWindows?c(e):l(e)},t.isAbsolute_win32=c,t.isAbsolute_posix=l}),define(e[76],t([0,1,7,9]),function(e,t,n,r){"use strict";function i(e,t,n){if(void 0===n&&(n=!1),l){var r=e||"",i=t||"",s=l.compare(r,i);return f&&0===s&&r!==i?r<i?-1:1:s}return o(e,t,n)}function o(e,t,n){void 0===n&&(n=!1),n||(e=e&&e.toLowerCase(),t=t&&t.toLowerCase());var r=a(e),i=r[0],o=r[1],s=a(t),u=s[0],c=s[1];return i!==u?i<u?-1:1:o===c?0:o<c?-1:1}function s(e,t){if(l){var n=a(e),r=n[0],i=n[1],o=a(t),s=o[0],u=o[1],c=l.compare(i,u);if(0===c){if(f&&i!==u)return i<u?-1:1;if(c=l.compare(r,s),f&&0===c&&r!==s)return r<s?-1:1}return c}return function(e,t){
var n=a(e&&e.toLowerCase()),r=n[0],i=n[1],o=a(t&&t.toLowerCase()),s=o[0],u=o[1];if(i!==u)return i<u?-1:1;if(r===s)return 0;return r<s?-1:1}(e,t)}function a(e){var t=e?d.exec(e):[];return[t&&t[1]||"",t&&t[3]||""]}function u(e,t,n){return void 0===n&&(n=!1),n||(e=e&&e.toLowerCase(),t=t&&t.toLowerCase()),e===t?0:e<t?-1:1}function c(e,t,r){var i=e.toLowerCase(),o=t.toLowerCase(),s=n.startsWith(i,r),a=n.startsWith(o,r);if(s!==a)return s?-1:1;if(s&&a){if(i.length<o.length)return-1;if(i.length>o.length)return 1}return 0}Object.defineProperty(t,"__esModule",{value:!0});var l,f;t.setFileNameComparer=function(e){l=e,f=e.resolvedOptions().numeric},t.compareFileNames=i;var d=/^(.*?)(\.([^.]*))?$/;t.noIntlCompareFileNames=o,t.compareFileExtensions=s,t.comparePaths=function(e,t,n){void 0===n&&(n=!1);for(var o,s,a=e.split(r.nativeSep),c=t.split(r.nativeSep),l=a.length-1,f=c.length-1,d=0;;d++){if(o=l===d,s=f===d,o&&s)return i(a[d],c[d],n);if(o)return-1;if(s)return 1;var h=u(a[d],c[d],n);if(0!==h)return h}},
t.compareAnything=function(e,t,r){var o=e.toLowerCase(),s=t.toLowerCase(),a=c(e,t,r);if(a)return a;var u=n.endsWith(o,r);if(u!==n.endsWith(s,r))return u?-1:1;var l=i(o,s);return 0!==l?l:o.localeCompare(s)},t.compareByPrefix=c}),define(e[30],t([0,1,9,7]),function(e,t,n,r){"use strict";function i(e,t,r){return e.scheme===t.scheme&&e.authority===t.authority&&("file"===e.scheme?n.isEqualOrParent(e.fsPath,t.fsPath,r):n.isEqualOrParent(e.path,t.path,r))}Object.defineProperty(t,"__esModule",{value:!0}),t.basenameOrAuthority=function(e){return n.basename(e.path)||e.authority},t.isEqualOrParent=i,t.isEqual=function(e,t,n){return!(e!==t)||!(!e||!t)&&(n?r.equalsIgnoreCase(e.toString(),t.toString()):e.toString()===t.toString())},t.dirname=function(e){var t=n.dirname(e.path);return e.authority&&t&&!n.isAbsolute(t)?null:e.with({path:t})},t.joinPath=function(e,t){var r=n.join(e.path||"/",t);return e.with({path:r})},t.distinctParents=function(e,t){for(var n=[],r=function(r){var o=t(e[r]);if(e.some(function(e,n){
return n!==r&&i(o,t(e))}))return"continue";n.push(e[r])},o=0;o<e.length;o++)r(o);return n}}),define(e[18],t([0,1]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==c.number||e.constructor!==Array)}function r(e){return typeof e===c.string||e instanceof String}function i(e){return!(typeof e!==c.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function o(e){return typeof e===c.undefined}function s(e){return o(e)||null===e}function a(e){return typeof e===c.function}function u(e,t){if(r(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(a(t)){if(e instanceof t)return;if(!s(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")}}Object.defineProperty(t,"__esModule",{value:!0});var c={number:"number",string:"string",
undefined:"undefined",object:"object",function:"function"};t.isArray=n,t.isString=r,t.isStringArray=function(e){return n(e)&&e.every(function(e){return r(e)})},t.isObject=i,t.isNumber=function(e){return(typeof e===c.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=o,t.isUndefinedOrNull=s;var l=Object.prototype.hasOwnProperty;t.isEmptyObject=function(e){if(!i(e))return!1;for(var t in e)if(l.call(e,t))return!1;return!0},t.isFunction=a,t.areFunctions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e&&e.length>0&&e.every(a)},t.validateConstraints=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)u(e[r],t[r])},t.validateConstraint=u,t.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Object.create(e.prototype);return e.apply(r,t),r}}),define(e[16],t([0,1,18]),function(e,t,n){"use strict";function r(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e
;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){e[n]&&"object"==typeof e[n]?t[n]=r(e[n]):t[n]=e[n]}),t}function i(e,t,r){if(n.isUndefinedOrNull(e))return e;var o=t(e);if(void 0!==o)return o;if(n.isArray(e)){for(var s=[],a=0;a<e.length;a++)s.push(i(e[a],t,r));return s}if(n.isObject(e)){if(r.indexOf(e)>=0)throw new Error("Cannot clone recursive data-structure");r.push(e);var c={};for(var l in e)u.call(e,l)&&(c[l]=i(e[l],t,r));return r.pop(),c}return e}function o(e,t,r){return void 0===r&&(r=!0),n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(function(i){i in e?r&&(n.isObject(e[i])&&n.isObject(t[i])?o(e[i],t[i],r):e[i]=t[i]):e[i]=t[i]}),e):t}function s(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===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 n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!s(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r)
;i.sort();var o=[];for(r in t)o.push(r);if(o.sort(),!s(i,o))return!1;for(n=0;n<i.length;n++)if(!s(e[i[n]],t[i[n]]))return!1}return!0}function a(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=r,t.deepFreeze=function(e){if(!e||"object"!=typeof e)return e;for(var t=[e];t.length>0;){var n=t.shift();Object.freeze(n);for(var r in n)if(u.call(n,r)){var i=n[r];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e};var u=Object.prototype.hasOwnProperty;t.cloneAndChange=function(e,t){return i(e,t,[])},t.mixin=o,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){return Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e},t.equals=s,t.arrayToHash=a,t.createKeywordMatcher=function(e,t){void 0===t&&(t=!1),t&&(e=e.map(function(e){return e.toLowerCase()}));var n=a(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){
return void 0!==n[e]&&n.hasOwnProperty(e)}},t.safeStringify=function(e){var t=[];return JSON.stringify(e,function(e,r){if(n.isObject(r)||Array.isArray(r)){if(-1!==t.indexOf(r))return"[Circular]";t.push(r)}return r})},t.getOrDefault=function(e,t,n){void 0===n&&(n=null);var r=t(e);return void 0===r?n:r},t.distinct=function(e,t){var n=Object.create(null);return e&&t?(Object.keys(t).forEach(function(r){var i=e[r],o=t[r];s(i,o)||(n[r]=o)}),n):n}});var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();define(e[3],t([0,1,8]),function(e,t,r){"use strict";function i(e,t){for(var n=void 0,r=-1,i=0;i<e.length;i++){var o=e.charCodeAt(i)
;if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=m[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function o(e){var t;return t=e.authority&&e.path.length>1&&"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,r.isWindows&&(t=t.replace(/\//g,"\\")),t}function s(e,t){var n=t?function(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=m[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:i,r="",o=e.scheme,s=e.authority,a=e.path,u=e.query,c=e.fragment;if(o&&(r+=o,r+=":"),
(s||"file"===o)&&(r+=d,r+=d),s){var l=s.indexOf("@");if(-1!==l){var f=s.substr(0,l);s=s.substr(l+1),-1===(l=f.indexOf(":"))?r+=n(f,!1):(r+=n(f.substr(0,l),!1),r+=":",r+=n(f.substr(l+1),!1)),r+="@"}-1===(l=(s=s.toLowerCase()).indexOf(":"))?r+=n(s,!1):(r+=n(s.substr(0,l),!1),r+=s.substr(l))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){(h=a.charCodeAt(1))>=65&&h<=90&&(a="/"+String.fromCharCode(h+32)+":"+a.substr(3))}else if(a.length>=2&&58===a.charCodeAt(1)){var h=a.charCodeAt(0);h>=65&&h<=90&&(a=String.fromCharCode(h+32)+":"+a.substr(2))}r+=n(a,!0)}return u&&(r+="?",r+=n(u,!1)),c&&(r+="#",r+=t?c:i(c,!1)),r}Object.defineProperty(t,"__esModule",{value:!0});var a,u=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//,f="",d="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,p=function(){function e(e,t,n,r,i){"object"==typeof e?(this.scheme=e.scheme||f,this.authority=e.authority||f,this.path=e.path||f,this.query=e.query||f,this.fragment=e.fragment||f):(this.scheme=e||f,this.authority=t||f,
this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==d&&(t=d+t):t=d}return t}(this.scheme,n||f),this.query=r||f,this.fragment=i||f,function(e){if(e.scheme&&!u.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this))}return e.isUri=function(t){return t instanceof e||!!t&&("string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme)},Object.defineProperty(e.prototype,"fsPath",{get:function(){return o(this)},enumerable:!0,configurable:!0}),e.prototype.with=function(e){if(!e)return this
;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;return void 0===t?t=this.scheme:null===t&&(t=f),void 0===n?n=this.authority:null===n&&(n=f),void 0===r?r=this.path:null===r&&(r=f),void 0===i?i=this.query:null===i&&(i=f),void 0===o?o=this.fragment:null===o&&(o=f),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new g(t,n,r,i,o)},e.parse=function(e){var t=h.exec(e);return t?new g(t[2]||f,decodeURIComponent(t[4]||f),decodeURIComponent(t[5]||f),decodeURIComponent(t[7]||f),decodeURIComponent(t[9]||f)):new g(f,f,f,f,f)},e.file=function(e){var t=f;if(r.isWindows&&(e=e.replace(/\\/g,d)),e[0]===d&&e[1]===d){var n=e.indexOf(d,2);-1===n?(t=e.substring(2),e=d):(t=e.substring(2,n),e=e.substring(n)||d)}return new g("file",t,e,f,f)},e.from=function(e){return new g(e.scheme,e.authority,e.path,e.query,e.fragment)},e.prototype.toString=function(e){return void 0===e&&(e=!1),s(this,e)},e.prototype.toJSON=function(){return this},e.revive=function(t){if(t){
if(t instanceof e)return t;var n=new g(t);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}();t.default=p;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return n(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=o(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e},t}(p),m=(a={},a[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",
a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a)}),define(e[43],t([0,1,3,9,7,23,8,30]),function(e,t,n,r,i,o,s,a){"use strict";function u(e){return s.isWindows&&e&&":"===e[1]}function c(e){return u(e)?e.charAt(0).toUpperCase()+e.slice(1):e}function l(e,t){if(s.isWindows||!e||!t)return e;var n=f.original===t?f.normalized:void 0;return n||(n=""+i.rtrim(t,r.sep)+r.sep,f={original:t,normalized:n}),(s.isLinux?i.startsWith(e,n):i.startsWithIgnoreCase(e,n))&&(e="~/"+e.substr(n.length)),e}Object.defineProperty(t,"__esModule",{value:!0}),t.getPathLabel=function(e,t,f){if(!e)return null;"string"==typeof e&&(e=n.default.file(e));var d=f?f.getWorkspaceFolder(e):null;if(d){var h=f.getWorkspace().folders.length>1,p=void 0;if(p=a.isEqual(d.uri,e,!s.isLinux)?"":r.normalize(i.ltrim(e.path.substr(d.uri.path.length),r.sep),!0),h){var g=d&&d.name?d.name:r.basename(d.uri.fsPath);p=p?g+" • "+p:g}return p}if(e.scheme!==o.Schemas.file&&e.scheme!==o.Schemas.untitled)return e.with({query:null,
fragment:null}).toString(!0);if(u(e.fsPath))return r.normalize(c(e.fsPath),!0);var m=r.normalize(e.fsPath,!0);return!s.isWindows&&t&&(m=l(m,t.userHome)),m},t.getBaseLabel=function(e){if(!e)return null;"string"==typeof e&&(e=n.default.file(e));var t=r.basename(e.fsPath)||e.fsPath;return u(t)?c(t):t},t.normalizeDriveLetter=c;var f=Object.create(null);t.tildify=l,t.untildify=function(e,t){return e.replace(/^~($|\/|\\)/,t+"$1")};var d="…",h="\\\\",p="~";t.shorten=function(e){for(var t=new Array(e.length),n=!1,o=0;o<e.length;o++){var s=e[o];if(""!==s)if(s){n=!0;var a="";0===s.indexOf(h)?(a=s.substr(0,s.indexOf(h)+h.length),s=s.substr(s.indexOf(h)+h.length)):0===s.indexOf(r.nativeSep)?(a=s.substr(0,s.indexOf(r.nativeSep)+r.nativeSep.length),s=s.substr(s.indexOf(r.nativeSep)+r.nativeSep.length)):0===s.indexOf(p)&&(a=s.substr(0,s.indexOf(p)+p.length),s=s.substr(s.indexOf(p)+p.length));for(var u=s.split(r.nativeSep),c=1;n&&c<=u.length;c++)for(var l=u.length-c;n&&l>=0;l--){n=!1
;for(var f=u.slice(l,l+c).join(r.nativeSep),g=0;!n&&g<e.length;g++)if(g!==o&&e[g]&&e[g].indexOf(f)>-1){var m=l+c===u.length,v=l>0&&e[g].indexOf(r.nativeSep)>-1?r.nativeSep+f:f,_=i.endsWith(e[g],v);n=!m||_}if(!n){var y="";(i.endsWith(u[0],":")||""!==a)&&(1===l&&(l=0,c++,f=u[0]+r.nativeSep+f),l>0&&(y=u[0]+r.nativeSep),y=a+y),l>0&&(y=y+d+r.nativeSep),y+=f,l+c<u.length&&(y=y+r.nativeSep+d),t[o]=y}}n&&(t[o]=s)}else t[o]=s;else t[o]="."+r.nativeSep}return t};var g;!function(e){e[e.TEXT=0]="TEXT",e[e.VARIABLE=1]="VARIABLE",e[e.SEPARATOR=2]="SEPARATOR"}(g||(g={})),t.template=function(e,t){void 0===t&&(t=Object.create(null));for(var n,r=[],i=!1,o="",s=0;s<e.length;s++)if("$"===(n=e[s])||i&&"{"===n)o&&r.push({value:o,type:g.TEXT}),o="",i=!0;else if("}"===n&&i){var a=t[o];if("string"==typeof a)a.length&&r.push({value:a,type:g.VARIABLE});else if(a){var u=r[r.length-1];u&&u.type===g.SEPARATOR||r.push({value:a.label,type:g.SEPARATOR})}o="",i=!1}else o+=n;return o&&!i&&r.push({value:o,type:g.TEXT}),r.filter(function(e,t){
return e.type!==g.SEPARATOR||[r[t-1],r[t+1]].every(function(e){return e&&(e.type===g.VARIABLE||e.type===g.TEXT)&&e.value.length>0})}).map(function(e){return e.value}).join("")},t.mnemonicMenuLabel=function(e,t){return s.isMacintosh||t?e.replace(/\(&&\w\)|&&/g,""):e.replace(/&&/g,"&")},t.mnemonicButtonLabel=function(e){return s.isMacintosh?e.replace(/\(&&\w\)|&&/g,""):e.replace(/&&/g,s.isWindows?"&":"_")},t.unmnemonicLabel=function(e){return e.replace(/&/g,"&&")}}),define(e[20],t([0,1,3]),function(e,t,r){"use strict";function i(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function o(e){var t=[];return e.forEach(function(e,n){return t.push(n)}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=i,t.keys=o,t.getOrSet=function(e,t,n){var r=e.get(t);return void 0===r&&(r=n,e.set(t,r)),r};var s=function(){function e(){this._value="",this._pos=0}return e.prototype.reset=function(e){return this._value=e,this._pos=0,this},e.prototype.next=function(){return this._pos+=1,this},
e.prototype.hasNext=function(){return this._pos<this._value.length-1},e.prototype.cmp=function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)},e.prototype.value=function(){return this._value[this._pos]},e}();t.StringIterator=s;var a=function(){function e(){}return e.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},e.prototype.hasNext=function(){return this._to<this._value.length},e.prototype.next=function(){this._from=this._to;for(var e=!0;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this},e.prototype.cmp=function(e){for(var t=0,n=e.length,r=this._from;t<n&&r<this._to;){var i=e.charCodeAt(t)-this._value.charCodeAt(r);if(0!==i)return i;t+=1,r+=1}return n===this._to-this._from?0:t<n?-1:1},e.prototype.value=function(){return this._value.substring(this._from,this._to)},e}();t.PathIterator=a;var u=function(){function e(){}
return e.prototype.isEmpty=function(){return!(this.left||this.mid||this.right||this.value)},e}(),c=function(){function e(e){this._iter=e}return e.forPaths=function(){return new e(new a)},e.forStrings=function(){return new e(new s)},e.prototype.clear=function(){this._root=void 0},e.prototype.set=function(e,t){var n,r=this._iter.reset(e);for(this._root||(this._root=new u,this._root.segment=r.value()),n=this._root;;){var i=r.cmp(n.segment);if(i>0)n.left||(n.left=new u,n.left.segment=r.value()),n=n.left;else if(i<0)n.right||(n.right=new u,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new u,n.mid.segment=r.value()),n=n.mid}}var o=n.value;return n.value=t,n.key=e,o},e.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0},e.prototype.delete=function(e){for(var t=this._iter.reset(e),n=[],r=this._root;r;){var i=t.cmp(r.segment)
;if(i>0)n.push([1,r]),r=r.left;else if(i<0)n.push([-1,r]),r=r.right;else{if(!t.hasNext()){for(r.value=void 0;n.length>0&&r.isEmpty();){var o=n.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}r=a}break}t.next(),n.push([0,r]),r=r.mid}}},e.prototype.findSubstr=function(e){for(var t,n=this._iter.reset(e),r=this._root;r;){var i=n.cmp(r.segment);if(i>0)r=r.left;else if(i<0)r=r.right;else{if(!n.hasNext())break;n.next(),t=r.value||t,r=r.mid}}return r&&r.value||t},e.prototype.findSuperstr=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())return n.mid?this._nodeIterator(n.mid):void 0;t.next(),n=n.mid}}},e.prototype._nodeIterator=function(e){var t,n,r=this,i={done:!1,value:void 0};return{next:function(){return n||(n=[],t=0,r._forEach(e,function(e){return n.push(e)})),t>=n.length?(i.done=!0,i.value=void 0):(i.done=!1,i.value=n[t++]),i}}},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=c;var l=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 i(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(r.default.parse)},e.prototype.clone=function(){var t=new e
;return this.map.forEach(function(e,n){return t.map.set(n,e)}),t},e}();t.ResourceMap=l;var f;!function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(f=t.Touch||(t.Touch={}));var d=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=f.None);var n=this._map.get(e);if(n)return t!==f.None&&this.touch(n,t),n.value},e.prototype.set=function(e,t,n){void 0===n&&(n=f.None);var r=this._map.get(e);if(r)r.value=t,n!==f.None&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case f.None:this.addItemLast(r);break;case f.AsOld:this.addItemFirst(r);break;case f.AsNew:default:
this.addItemLast(r)}this._map.set(e,r),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 n=this._head;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.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,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,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)this._head=e.next;else if(e===this._tail)this._tail=e.previous;else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===f.AsOld||t===f.AsNew)if(t===f.AsOld){if(e===this._head)return;var n=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(n.previous=r,r.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(t===f.AsNew){if(e===this._tail)return;var n=e.next,r=e.previous;e===this._head?(n.previous=void 0,
this._head=n):(n.previous=r,r.next=n),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,n){e.push([n,t])}),e},e.prototype.fromJSON=function(e){this.clear();for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r[0],o=r[1];this.set(i,o)}},e}();t.LinkedMap=d;var h=function(e){function t(t,n){void 0===n&&(n=1);var r=e.call(this)||this;return r._limit=t,r._ratio=Math.min(Math.max(0,n),1),r}return n(t,e),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(e){this._limit=e,this.checkTrim()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ratio",{get:function(){return this._ratio},set:function(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t,f.AsNew)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,f.None)},t.prototype.set=function(t,n){
e.prototype.set.call(this,t,n,f.AsNew),this.checkTrim()},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(d);t.LRUCache=h}),define(e[175],t([0,1,7,20]),function(e,t,n,r){"use strict";function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r](t,n);if(o)return o}return null}}function o(e,t,r){if(!r||r.length<t.length)return null;return(e?n.startsWithIgnoreCase(r,t):0===r.indexOf(t))?t.length>0?[{start:0,end:t.length}]:[]:null}function s(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}function a(e,t){return u(e.toLowerCase(),t.toLowerCase(),0,0)}function u(e,t,n,r){if(n===e.length)return[];if(r===t.length)return null;if(e[n]===t[r]){var i=null;return(i=u(e,t,n+1,r+1))?p({start:r,end:r+1},i):null}return u(e,t,n,r+1)}function c(e){return 97<=e&&e<=122}function l(e){return 65<=e&&e<=90}function f(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)||f(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 g(e,t){for(var n=t;n<e.length;n++){var r=e.charCodeAt(n);if(l(r)||f(r)||n>0&&!h(e.charCodeAt(n-1)))return n}return e.length}function m(e,t,n,r){if(n===e.length)return[];if(r===t.length)return null;if(e[n]!==t[r].toLowerCase())return null;var i=null,o=r+1;for(i=m(e,t,n+1,r+1);!i&&(o=g(t,o))<t.length;)i=m(e,t,n+1,o),o++;return null===i?null:p({start:r,end:r+1},i)}function v(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){for(var t=0,n=0,r=0,i=0,o=0;o<e.length;o++)l(r=e.charCodeAt(o))&&t++,c(r)&&n++,d(r)&&i++;return 0!==t&&0!==n||0!==i?t<=5:e.length<=30}(e))return null;if(t.length>60)return null;var n=function(e){for(var t=0,n=0,r=0,i=0,o=0,s=0;s<e.length;s++)l(o=e.charCodeAt(s))&&t++,c(o)&&n++,h(o)&&r++,f(o)&&i++;return{upperPercent:t/e.length,lowerPercent:n/e.length,alphaPercent:r/e.length,
numericPercent:i/e.length}}(t);if(!function(e){var t=e.upperPercent,n=e.lowerPercent,r=e.alphaPercent,i=e.numericPercent;return n>.2&&t<.8&&r>.6&&i<.2}(n)){if(!function(e){var t=e.upperPercent;return 0===e.lowerPercent&&t>.6}(n))return null;t=t.toLowerCase()}var r=null,i=0;for(e=e.toLowerCase();i<t.length&&null===(r=m(e,t,0,i));)i=g(t,i+1);return r}function _(e,t,n,r,i){if(n===e.length)return[];if(r===t.length)return null;if(e[n]!==t[r])return null;var o=null,s=r+1;if(o=_(e,t,n+1,r+1,i),!i)for(;!o&&(s=y(t,s))<t.length;)o=_(e,t,n+1,s,i),s++;return null===o?null:p({start:r,end:r+1},o)}function y(e,t){for(var n=t;n<e.length;n++){if(d(e.charCodeAt(n))||n>0&&d(e.charCodeAt(n-1)))return n}return e.length}function b(){for(var e=[],t=[0],n=1;n<=100;n++)t.push(-n);for(n=0;n<=100;n++){var r=t.slice(0);r[0]=-n,e.push(r)}return e}function C(e,t,n,r,i){function o(e,t,n){for(void 0===n&&(n=" ");e.length<t;)e=n+e;return e}for(var s=" |   |"+r.split("").map(function(e){return o(e,3)
}).join("|")+"\n",a=0;a<=n;a++)s+=0===a?" |":t[a-1]+"|",s+=e[a].slice(0,i+1).map(function(e){return o(e.toString(),3)}).join("|")+"\n";return s}function E(e,t){if(t<0||t>=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:return!0;default:return!1}}function S(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function x(e,t,n,r){var i=e.length>100?100:e.length,o=t.length>100?100:t.length,s=0;for(void 0===n&&(n=i);s<n&&S(e,s);)s+=1;if(s===i)return[-100,[]];if(!(i>o)){for(var a=e.toLowerCase(),u=t.toLowerCase(),c=s,l=0;c<i&&l<o;)a[c]===u[l]&&(c+=1),l+=1;if(c===i){for(c=s+1;c<=i;c++)for(l=1;l<=o;l++){var f=-1,d=u[l-1];a[c-1]===d&&(f=l===c-s?e[c-1]===t[l-1]?7:5:d===t[l-1]||1!==l&&u[l-2]!==t[l-2]?E(u,l-2)||S(u,l-2)?5:1:e[c-1]===t[l-1]?7:5),L[c][l]=f;var h=k[c-1][l-1]+(f>1?1:f),p=k[c-1][l]+-1,g=k[c][l-1]+-1;g>=p?g>h?(k[c][l]=g,O[c][l]=4):g===h?(k[c][l]=g,O[c][l]=6):(k[c][l]=h,O[c][l]=2):p>h?(k[c][l]=p,
O[c][l]=1):p===h?(k[c][l]=p,O[c][l]=3):(k[c][l]=h,O[c][l]=2)}if(R&&(console.log(C(k,e,i,t,o)),console.log(C(O,e,i,t,o)),console.log(C(L,e,i,t,o))),N=0,M=-100,F=s,W=r,w(i,o,i===o?1:0,new B,!1),0!==N)return[M,A.toArray()]}}}function w(e,t,n,r,i){if(!(N>=10||n<-25)){for(var o=0;e>F&&t>0;){var s=L[e][t],a=O[e][t];if(4===a)t-=1,i?n-=5:r.isEmpty()||(n-=1),i=!1,o=0;else{if(!(2&a))return;if(4&a&&w(e,t-1,r.isEmpty()?n:n-1,r.slice(),i),n+=s,e-=1,t-=1,r.unshift(t),i=!0,1===s){if(o+=1,e===F&&!W)return}else n+=1+o*(s-1),o=0}}N+=1,(n-=t>=3?9:3*t)>M&&(M=n,A=r)}}function T(e,t,n,r){var i=x(e,t,r);if(i&&!n)return i;if(e.length>=3)for(var o=Math.min(7,e.length-1),s=1;s<o;s++){var a=function(e,t){if(t+1>=e.length)return;var n=e[t],r=e[t+1];if(n===r)return;return e.slice(0,t)+r+n+e.slice(t+2)}(e,s);if(a){var u=x(a,t,r);u&&(u[0]-=3,(!i||u[0]>i[0])&&(i=u))}}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.or=i,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,n){if(void 0===n&&(n=!1),!t||0===t.length)return null;var r=null,i=0;for(e=e.toLowerCase(),t=t.toLowerCase();i<t.length&&null===(r=_(e,t,0,i,n));)i=y(t,i+1);return r},t.fuzzyContiguousFilter=i(t.matchesPrefix,v,s);var P=i(t.matchesPrefix,v,a),I=new r.LRUCache(1e4);t.matchesFuzzy=function(e,r,i){if(void 0===i&&(i=!1),"string"!=typeof e||"string"!=typeof r)return null;var o=I.get(e);o||(o=new RegExp(n.convertSimple2RegExpPattern(e),"i"),I.set(e,o));var s=o.exec(r);return s?[{start:s.index,end:s.index+s[0].length}]:i?P(e,r):t.fuzzyContiguousFilter(e,r)},t.anyScore=function(e,t,n){e=e.toLowerCase(),t=t.toLowerCase();for(var r=[],i=0,o=0;o<e.length;++o){var s=t.indexOf(e.charAt(o),i);s>=0&&(r.push(s),i=s+1)}return[r.length,r]},t.createMatches=function(e){var t=[];if(!e)return t;for(var n,r=0,i=e;r<i.length;r++){var o=i[r];n&&n.end===o?n.end+=1:(n={start:o,end:o+1},t.push(n))}return t};var D,k=b(),L=b(),O=b(),R=!1;!function(e){
e[e.Top=1]="Top",e[e.Diag=2]="Diag",e[e.Left=4]="Left"}(D||(D={})),t.fuzzyScore=x;var A,N=0,M=0,F=0,W=!1,B=function(){function e(){}return e.prototype.isEmpty=function(){return!this._data&&(!this._parent||this._parent.isEmpty())},e.prototype.unshift=function(e){this._data?this._data.unshift(e):this._data=[e]},e.prototype.slice=function(){var t=new e;return t._parent=this,t._parentLen=this._data?this._data.length:0,t},e.prototype.toArray=function(){if(!this._data)return this._parent.toArray();for(var e=[],t=this;t;)t._parent&&t._parent._data&&e.push(t._parent._data.slice(t._parent._data.length-t._parentLen)),t=t._parent;return Array.prototype.concat.apply(this._data,e)},e}();t.fuzzyScoreGracefulAggressive=function(e,t,n){return T(e,t,!0,n)},t.fuzzyScoreGraceful=function(e,t,n){return T(e,t,!1,n)}}),define(e[83],t([0,1,3]),function(e,t,n){"use strict";function r(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")}:t}function i(e,t){
if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return n.default.revive(e);case 2:return new RegExp(e.source,e.flags)}for(var r in e)Object.hasOwnProperty.call(e,r)&&(e[r]=i(e[r],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=i(t,0)},t.revive=i}),define(e[97],t([0,1,20]),function(e,t,n){"use strict";function r(e,n,r){if(!t.canNormalize||!e)return e;var i=r.get(e);if(i)return i;var o;return o=s.test(e)?e.normalize(n):e,r.set(e,o),o}Object.defineProperty(t,"__esModule",{value:!0}),t.canNormalize="function"==typeof"".normalize;var i=new n.LRUCache(1e4);t.normalizeNFC=function(e){return r(e,"NFC",i)};var o=new n.LRUCache(1e4);t.normalizeNFD=function(e){return r(e,"NFD",o)};var s=/[^\u0000-\u0080]/}),define(e[49],t([0,1]),function(e,t){"use strict";function r(){return new s}function i(e){return a.test(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){
function e(e){this._value=e}return e.prototype.asHex=function(){return this._value},e}(),s=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 n(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}(o);t.v4=r;var a=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;t.isUUID=i,t.parse=function(e){
if(!i(e))throw new Error("invalid uuid");return new o(e)},t.generateUuid=function(){return r().asHex()}});var r;!function(){var e=Object.create(null);e["WinJS/Core/_WinJS"]={};var t=function(t,n,r){var i={},o=!1,s=n.map(function(t){return"exports"===t?(o=!0,i):e[t]}),a=r.apply({},s);e[t]=o?i:a};t("WinJS/Core/_Global",[],function(){"use strict";return"undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:{}}),t("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){"use strict";var t=null;return{hasWinRT:!!e.Windows,markSupportedForProcessing:function(e){return e.supportedForProcessing=!0,e},_setImmediate:function(n){null===t&&(t=e.setImmediate?e.setImmediate.bind(e):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):e.setTimeout.bind(e)),t(n)}}}),t("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){"use strict";return e.msWriteProfilerMark||function(){}}),
t("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,t,n,r){"use strict";function i(e,t,n){var r,i,o,s=Object.keys(t),a=Array.isArray(e);for(i=0,o=s.length;i<o;i++){var u=s[i],c=95!==u.charCodeAt(0),l=t[u];!l||"object"!=typeof l||void 0===l.value&&"function"!=typeof l.get&&"function"!=typeof l.set?c?a?e.forEach(function(e){e[u]=l}):e[u]=l:(r=r||{})[u]={value:l,enumerable:c,configurable:!0,writable:!0}:(void 0===l.enumerable&&(l.enumerable=c),n&&l.setName&&"function"==typeof l.setName&&l.setName(n+"."+u),(r=r||{})[u]=l)}r&&(a?e.forEach(function(e){Object.defineProperties(e,r)}):Object.defineProperties(e,r))}return function(){function n(n,r){var i=n||{};if(r){var o=r.split(".");i===t&&"WinJS"===o[0]&&(i=e,o.splice(0,1));for(var s=0,a=o.length;s<a;s++){var u=o[s];i[u]||Object.defineProperty(i,u,{value:{},writable:!1,enumerable:!0,configurable:!0}),i=i[u]}}return i}function o(e,t,r){var o=n(e,t);return r&&i(o,r,t||"<ANONYMOUS>"),o}
var s=e;s.Namespace||(s.Namespace=Object.create(Object.prototype));var a={uninitialized:1,working:2,initialized:3};Object.defineProperties(s.Namespace,{defineWithParent:{value:o,writable:!0,enumerable:!0,configurable:!0},define:{value:function(e,n){return o(t,e,n)},writable:!0,enumerable:!0,configurable:!0},_lazy:{value:function(e){var t,n,i=a.uninitialized;return{setName:function(e){t=e},get:function(){switch(i){case a.initialized:return n;case a.uninitialized:i=a.working;try{r("WinJS.Namespace._lazy:"+t+",StartTM"),n=e()}finally{r("WinJS.Namespace._lazy:"+t+",StopTM"),i=a.uninitialized}return e=null,i=a.initialized,n;case a.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(i){case a.working:throw"Illegal: reentrancy on initialization";default:i=a.initialized,n=e}},enumerable:!0,configurable:!0}},writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:function(e,r,o){var s=[e],a=null;return r&&(a=n(t,r),s.push(a)),i(s,o,r||"<ANONYMOUS>"),a},
writable:!0,enumerable:!0,configurable:!0}})}(),function(){function t(e,t,r){return e=e||function(){},n.markSupportedForProcessing(e),t&&i(e.prototype,t),r&&i(e,r),e}e.Namespace.define("WinJS.Class",{define:t,derive:function(e,r,o,s){if(e){r=r||function(){};var a=e.prototype;return r.prototype=Object.create(a),n.markSupportedForProcessing(r),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,configurable:!0,enumerable:!0}),o&&i(r.prototype,o),s&&i(r,s),r}return t(r,o,s)},mix:function(e){e=e||function(){};var t,n;for(t=1,n=arguments.length;t<n;t++)i(e.prototype,arguments[t]);return e}})}(),{Namespace:e.Namespace,Class:e.Class}}),t("WinJS/Core/_ErrorFromName",["WinJS/Core/_Base"],function(e){"use strict";var t=e.Class.derive(Error,function(e,t){this.name=e,this.message=t||e},{},{supportedForProcessing:!1});return e.Namespace.define("WinJS",{ErrorFromName:t}),t}),t("WinJS/Core/_Events",["exports","WinJS/Core/_Base"],function(e,t){"use strict";function n(e){var t="_on"+e+"state";return{
get:function(){var e=this[t];return e&&e.userHandler},set:function(n){var r=this[t];n?(r||(r={wrapper:function(e){return r.userHandler(e)},userHandler:n},Object.defineProperty(this,t,{value:r,enumerable:!1,writable:!0,configurable:!0}),this.addEventListener(e,r.wrapper,!1)),r.userHandler=n):r&&(this.removeEventListener(e,r.wrapper,!1),this[t]=null)},enumerable:!0}}var r=t.Class.define(function(e,t,n){this.detail=t,this.target=n,this.timeStamp=Date.now(),this.type=e},{bubbles:{value:!1,writable:!1},cancelable:{value:!1,writable:!1},currentTarget:{get:function(){return this.target}},defaultPrevented:{get:function(){return this._preventDefaultCalled}},trusted:{value:!1,writable:!1},eventPhase:{value:0,writable:!1},target:null,timeStamp:null,type:null,preventDefault:function(){this._preventDefaultCalled=!0},stopImmediatePropagation:function(){this._stopImmediatePropagationCalled=!0},stopPropagation:function(){}},{supportedForProcessing:!1}),i={_listeners:null,addEventListener:function(e,t,n){n=n||!1,
this._listeners=this._listeners||{};for(var r=this._listeners[e]=this._listeners[e]||[],i=0,o=r.length;i<o;i++){var s=r[i];if(s.useCapture===n&&s.listener===t)return}r.push({listener:t,useCapture:n})},dispatchEvent:function(e,t){var n=this._listeners&&this._listeners[e];if(n){for(var i=new r(e,t,this),o=0,s=(n=n.slice(0,n.length)).length;o<s&&!i._stopImmediatePropagationCalled;o++)n[o].listener(i);return i.defaultPrevented||!1}return!1},removeEventListener:function(e,t,n){n=n||!1;var r=this._listeners&&this._listeners[e];if(r)for(var i=0,o=r.length;i<o;i++){var s=r[i];if(s.listener===t&&s.useCapture===n){r.splice(i,1),0===r.length&&delete this._listeners[e];break}}}};t.Namespace._moduleDefine(e,"WinJS.Utilities",{_createEventProperty:n,createEventProperties:function(){for(var e={},t=0,r=arguments.length;t<r;t++){var i=arguments[t];e["on"+i]=n(i)}return e},eventMixin:i})}),t("WinJS/Core/_Trace",["WinJS/Core/_Global"],function(e){"use strict";function t(e){return e}return{
_traceAsyncOperationStarting:e.Debug&&e.Debug.msTraceAsyncOperationStarting&&e.Debug.msTraceAsyncOperationStarting.bind(e.Debug)||t,_traceAsyncOperationCompleted:e.Debug&&e.Debug.msTraceAsyncOperationCompleted&&e.Debug.msTraceAsyncOperationCompleted.bind(e.Debug)||t,_traceAsyncCallbackStarting:e.Debug&&e.Debug.msTraceAsyncCallbackStarting&&e.Debug.msTraceAsyncCallbackStarting.bind(e.Debug)||t,_traceAsyncCallbackCompleted:e.Debug&&e.Debug.msTraceAsyncCallbackCompleted&&e.Debug.msTraceAsyncCallbackCompleted.bind(e.Debug)||t}}),t("WinJS/Promise/_StateMachine",["WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_Base","WinJS/Core/_ErrorFromName","WinJS/Core/_Events","WinJS/Core/_Trace"],function(e,t,n,r,i,o){"use strict";function s(){}function a(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?L:N,e._value=t,e._setState(n)}function u(e,t,n,r,i,o){return{exception:e,error:t,promise:n,handler:o,id:r,parent:i}}function c(e,t,n,r){var i=n._isException,o=n._errorId
;return u(i?t:null,i?null:t,e,o,n,r)}function l(e,t,n){var r=n._isException,i=n._errorId;return b(e,i,r),u(r?t:null,r?null:t,e,i,n)}function f(e,t){var n=++B;return b(e,n),u(null,t,e,n)}function d(e,t){var n=++B;return b(e,n,!0),u(t,null,e,n)}function h(e,t,n,r){y(e,{c:t,e:n,p:r,asyncOpID:o._traceAsyncOperationStarting("WinJS.Promise.done")})}function p(e,t,n,r){e._value=t,v(e,t,n,r),e._setState(F)}function g(t,n){var r=t._value,i=t._listeners;if(i){t._listeners=null;var s,a;for(s=0,a=Array.isArray(i)?i.length:1;s<a;s++){var u=1===a?i:i[s],c=u.c,l=u.promise;if(o._traceAsyncOperationCompleted(u.asyncOpID,e.Debug&&e.Debug.MS_ASYNC_OP_STATUS_SUCCESS),l){o._traceAsyncCallbackStarting(u.asyncOpID);try{l._setCompleteValue(c?c(r):r)}catch(e){l._setExceptionValue(e)}finally{o._traceAsyncCallbackCompleted()}l._state!==L&&l._listeners&&n.push(l)}else K.prototype.done.call(t,c)}}}function m(t,n){var r=t._value,i=t._listeners;if(i){t._listeners=null;var s,a;for(s=0,a=Array.isArray(i)?i.length:1;s<a;s++){
var u=1===a?i:i[s],l=u.e,f=u.promise,d=e.Debug&&(r&&r.name===T?e.Debug.MS_ASYNC_OP_STATUS_CANCELED:e.Debug.MS_ASYNC_OP_STATUS_ERROR);if(o._traceAsyncOperationCompleted(u.asyncOpID,d),f){var h=!1;try{l?(o._traceAsyncCallbackStarting(u.asyncOpID),h=!0,l.handlesOnError||v(f,r,c,t,l),f._setCompleteValue(l(r))):f._setChainedErrorValue(r,t)}catch(e){f._setExceptionValue(e)}finally{h&&o._traceAsyncCallbackCompleted()}f._state!==L&&f._listeners&&n.push(f)}else U.prototype.done.call(t,null,l)}}}function v(e,t,n,r,i){if(x._listeners[w]){if(t instanceof Error&&t.message===T)return;x.dispatchEvent(w,n(e,t,r,i))}}function _(e,t){var n=e._listeners;if(n){var r,i;for(r=0,i=Array.isArray(n)?n.length:1;r<i;r++){var o=1===i?n:n[r],s=o.p;if(s)try{s(t)}catch(e){}o.c||o.e||!o.promise||o.promise._progress(t)}}}function y(e,t){var n=e._listeners;n?(n=Array.isArray(n)?n:[n]).push(t):n=t,e._listeners=n}function b(e,t,n){e._isException=n||!1,e._errorId=t}function C(e,t,n,r){e._value=t,v(e,t,n,r),e._setState(W)}function E(e,t){var n
;n=t&&"object"==typeof t&&"function"==typeof t.then?L:M,e._value=t,e._setState(n)}function S(e,t,n,r){var i=new z(e);return y(e,{promise:i,c:t,e:n,p:r,asyncOpID:o._traceAsyncOperationStarting("WinJS.Promise.then")}),i}e.Debug&&(e.Debug.setNonUserCodeExceptions=!0);var x=new(n.Class.mix(n.Class.define(null,{},{supportedForProcessing:!1}),i.eventMixin));x._listeners={};var w="error",T="Canceled",P=!1,I={promise:1,thenPromise:2,errorPromise:4,exceptionPromise:8,completePromise:16};I.all=I.promise|I.thenPromise|I.errorPromise|I.exceptionPromise|I.completePromise;var D,k,L,O,R,A,N,M,F,W,B=1;D={name:"created",enter:function(e){e._setState(k)},cancel:s,done:s,then:s,_completed:s,_error:s,_notify:s,_progress:s,_setCompleteValue:s,_setErrorValue:s},k={name:"working",enter:s,cancel:function(e){e._setState(R)},done:h,then:S,_completed:a,_error:p,_notify:s,_progress:_,_setCompleteValue:E,_setErrorValue:C},L={name:"waiting",enter:function(e){var t=e._value;if(t instanceof z&&t._state!==W&&t._state!==M)y(t,{promise:e
});else{var n=function(r){t._errorId?e._chainedError(r,t):(v(e,r,c,t,n),e._error(r))};n.handlesOnError=!0,t.then(e._completed.bind(e),n,e._progress.bind(e))}},cancel:function(e){e._setState(O)},done:h,then:S,_completed:a,_error:p,_notify:s,_progress:_,_setCompleteValue:E,_setErrorValue:C},O={name:"waiting_canceled",enter:function(e){e._setState(A);var t=e._value;t.cancel&&t.cancel()},cancel:s,done:h,then:S,_completed:a,_error:p,_notify:s,_progress:_,_setCompleteValue:E,_setErrorValue:C},R={name:"canceled",enter:function(e){e._setState(A),e._cancelAction()},cancel:s,done:h,then:S,_completed:a,_error:p,_notify:s,_progress:_,_setCompleteValue:E,_setErrorValue:C},A={name:"canceling",enter:function(e){var t=new Error(T);t.name=t.message,e._value=t,e._setState(F)},cancel:s,done:s,then:s,_completed:s,_error:s,_notify:s,_progress:s,_setCompleteValue:s,_setErrorValue:s},N={name:"complete_notify",enter:function(e){if(e.done=K.prototype.done,e.then=K.prototype.then,
e._listeners)for(var t,n=[e];n.length;)(t=n.shift())._state._notify(t,n);e._setState(M)},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:g,_progress:s,_setCompleteValue:s,_setErrorValue:s},M={name:"success",enter:function(e){e.done=K.prototype.done,e.then=K.prototype.then,e._cleanupAction()},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:g,_progress:s,_setCompleteValue:s,_setErrorValue:s},F={name:"error_notify",enter:function(e){if(e.done=U.prototype.done,e.then=U.prototype.then,e._listeners)for(var t,n=[e];n.length;)(t=n.shift())._state._notify(t,n);e._setState(W)},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:m,_progress:s,_setCompleteValue:s,_setErrorValue:s},W={name:"error",enter:function(e){e.done=U.prototype.done,e.then=U.prototype.then,e._cleanupAction()},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:m,_progress:s,_setCompleteValue:s,_setErrorValue:s};var j,H=n.Class.define(null,{_listeners:null,_nextState:null,_state:null,_value:null,cancel:function(){
this._state.cancel(this),this._run()},done:function(e,t,n){this._state.done(this,e,t,n)},then:function(e,t,n){return this._state.then(this,e,t,n)},_chainedError:function(e,t){var n=this._state._error(this,e,l,t);return this._run(),n},_completed:function(e){var t=this._state._completed(this,e);return this._run(),t},_error:function(e){var t=this._state._error(this,e,f);return this._run(),t},_progress:function(e){this._state._progress(this,e)},_setState:function(e){this._nextState=e},_setCompleteValue:function(e){this._state._setCompleteValue(this,e),this._run()},_setChainedErrorValue:function(e,t){var n=this._state._setErrorValue(this,e,l,t);return this._run(),n},_setExceptionValue:function(e){var t=this._state._setErrorValue(this,e,d);return this._run(),t},_run:function(){for(;this._nextState;)this._state=this._nextState,this._nextState=null,this._state.enter(this)}},{supportedForProcessing:!1}),z=n.Class.derive(H,function(e){P&&(!0===P||P&I.thenPromise)&&(this._stack=$._getStack()),this._creator=e,
this._setState(D),this._run()},{_creator:null,_cancelAction:function(){this._creator&&this._creator.cancel()},_cleanupAction:function(){this._creator=null}},{supportedForProcessing:!1}),U=n.Class.define(function(e){P&&(!0===P||P&I.errorPromise)&&(this._stack=$._getStack()),this._value=e,v(this,e,f)},{cancel:function(){},done:function(e,t){var n=this._value;if(t)try{t.handlesOnError||v(null,n,c,this,t);var r=t(n);return void(r&&"object"==typeof r&&"function"==typeof r.done&&r.done())}catch(e){n=e}n instanceof Error&&n.message===T||$._doneHandler(n)},then:function(e,t){if(!t)return this;var n,r=this._value;try{t.handlesOnError||v(null,r,c,this,t),n=new K(t(r))}catch(e){n=e===r?this:new V(e)}return n}},{supportedForProcessing:!1}),V=n.Class.derive(U,function(e){P&&(!0===P||P&I.exceptionPromise)&&(this._stack=$._getStack()),this._value=e,v(this,e,d)},{},{supportedForProcessing:!1}),K=n.Class.define(function(e){if(P&&(!0===P||P&I.completePromise)&&(this._stack=$._getStack()),
e&&"object"==typeof e&&"function"==typeof e.then){var t=new z(null);return t._setCompleteValue(e),t}this._value=e},{cancel:function(){},done:function(e){if(e)try{var t=e(this._value);t&&"object"==typeof t&&"function"==typeof t.done&&t.done()}catch(e){$._doneHandler(e)}},then:function(e){try{var t=e?e(this._value):this._value;return t===this._value?this:new K(t)}catch(e){return new V(e)}}},{supportedForProcessing:!1}),$=n.Class.derive(H,function(e,t){P&&(!0===P||P&I.promise)&&(this._stack=$._getStack()),this._oncancel=t,this._setState(D),this._run();try{e(this._completed.bind(this),this._error.bind(this),this._progress.bind(this))}catch(e){this._setExceptionValue(e)}},{_oncancel:null,_cancelAction:function(){try{if(!this._oncancel)throw new Error("Promise did not implement oncancel");this._oncancel()}catch(e){e.message,e.stack;x.dispatchEvent("error",e)}},_cleanupAction:function(){this._oncancel=null}},{addEventListener:function(e,t,n){x.addEventListener(e,t,n)},any:function(e){return new $(function(t,n){
var r=Object.keys(e);0===r.length&&t();var i=0;r.forEach(function(o){$.as(e[o]).then(function(){t({key:o,value:e[o]})},function(s){s instanceof Error&&s.name===T?++i===r.length&&t($.cancel):n({key:o,value:e[o]})})})},function(){Object.keys(e).forEach(function(t){var n=$.as(e[t]);"function"==typeof n.cancel&&n.cancel()})})},as:function(e){return e&&"object"==typeof e&&"function"==typeof e.then?e:new K(e)},cancel:{get:function(){return j=j||new U(new r(T))}},dispatchEvent:function(e,t){return x.dispatchEvent(e,t)},is:function(e){return e&&"object"==typeof e&&"function"==typeof e.then},join:function(e){return new $(function(t,n,r){var i=Object.keys(e),o=Array.isArray(e)?[]:{},s=Array.isArray(e)?[]:{},a=0,u=i.length,c=function(e){if(0==--u){var a=Object.keys(o).length;if(0===a)t(s);else{var c=0;i.forEach(function(e){var t=o[e];t instanceof Error&&t.name===T&&c++}),c===a?t($.cancel):n(o)}}else r({Key:e,Done:!0})};i.forEach(function(t){var n=e[t];void 0===n?a++:$.then(n,function(e){s[t]=e,c(t)},function(e){o[t]=e,
c(t)})}),0!==(u-=a)||t(s)},function(){Object.keys(e).forEach(function(t){var n=$.as(e[t]);"function"==typeof n.cancel&&n.cancel()})})},removeEventListener:function(e,t,n){x.removeEventListener(e,t,n)},supportedForProcessing:!1,then:function(e,t,n,r){return $.as(e).then(t,n,r)},thenEach:function(e,t,n,r){var i=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(o){i[o]=$.as(e[o]).then(t,n,r)}),$.join(i)},timeout:function(n,r){var i=function(n){var r;return new $(function(i){n?r=e.setTimeout(i,n):t._setImmediate(i)},function(){r&&e.clearTimeout(r)})}(n);return r?function(e,t){var n=function(){e.cancel()};return e.then(function(){t.cancel()}),t.then(n,n),t}(i,r):i},wrap:function(e){return new K(e)},wrapError:function(e){return new U(e)},_veryExpensiveTagWithStack:{get:function(){return P},set:function(e){P=e}},_veryExpensiveTagWithStack_tag:I,_getStack:function(){if(e.Debug&&e.Debug.debuggerEnabled)try{throw new Error}catch(e){return e.stack}},_cancelBlocker:function(e,t){if(!$.is(e))return $.wrap(e)
;var n,r,i=new $(function(e,t){n=e,r=t},function(){n=null,r=null,t&&t()});return e.then(function(e){n&&n(e)},function(e){r&&r(e)}),i}});return Object.defineProperties($,i.createEventProperties(w)),$._doneHandler=function(e){t._setImmediate(function(){throw e})},{PromiseStateMachine:H,Promise:$,state_created:D}}),t("WinJS/Promise",["WinJS/Core/_Base","WinJS/Promise/_StateMachine"],function(e,t){"use strict";return e.Namespace.define("WinJS",{Promise:t.Promise}),t.Promise}),(r=e["WinJS/Core/_WinJS"]).TPromise=r.Promise,r.PPromise=r.Promise,"undefined"==typeof exports&&"function"==typeof define&&define.amd?define("vs/base/common/winjs.base",[],r):module.exports=r}();var i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(n){
return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(o=i[2&n[0]?"return":n[0]?"throw":"next"])&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[0,o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}var r,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}
;define(e[12],t([0,1,2]),function(e,t,n){"use strict";function r(e,t){var n=0,r=e.length;if(0===r)return 0;for(;n<r;){var i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function s(e,t){return a(e,t),e}function a(e,t){if(!(e.length<=1)){var n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);a(r,t),a(i,t);for(var o=0,s=0,u=0;o<r.length&&s<i.length;){var c=t(r[o],i[s]);e[u++]=c<=0?r[o++]:i[s++]}for(;o<r.length;)e[u++]=r[o++];for(;s<i.length;)e[u++]=i[s++]}}function u(e,t,n){function r(e,t,n){var r;if(0!==t||0!==n.length){var o=i[i.length-1];o&&o.start+o.deleteCount===e?(o.deleteCount+=t,(r=o.toInsert).push.apply(r,n)):i.push({start:e,deleteCount:t,toInsert:n})}}for(var i=[],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],u=t[s],c=n(a,u);0===c?(o+=1,s+=1):c<0?(r(o,1,[]),o+=1):c>0&&(r(o,0,[u]),s+=1)}return i}function c(e,t,n,i,o){for(var s=function(o){var s=e[i];if(t(s,n[o-1])<0){n.pop();var a=r(n,function(e){return t(s,e)<0});n.splice(a,0,s)}
},a=n.length;i<o;i++)s(a)}function l(e,t){for(var n=0;n<e.length;n++){if(t(e[n]))return n}return-1}Object.defineProperty(t,"__esModule",{value:!0}),t.tail=function(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]},t.tail2=function(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]},t.equals=function(e,t,n){if(void 0===n&&(n=function(e,t){return e===t}),e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0},t.binarySearch=function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=(r+i)/2|0,s=n(e[o],t);if(s<0)r=o+1;else{if(!(s>0))return o;i=o-1}}return-(r+1)},t.findFirstInSorted=r,t.mergeSort=s,t.groupBy=function(e,t){for(var n,r=[],i=0,o=s(e.slice(0),t);i<o.length;i++){var a=o[i];n&&0===t(n[0],a)?n.push(a):(n=[a],r.push(n))}return r},t.sortedDiff=u,t.delta=function(e,t,n){for(var r=[],i=[],o=0,s=u(e,t,n);o<s.length;o++){var a=s[o];r.push.apply(r,e.slice(a.start,a.start+a.deleteCount)),i.push.apply(i,a.toInsert)}return{
removed:r,added:i}},t.top=function(e,t,n){if(0===n)return[];var r=e.slice(0,n).sort(t);return c(e,t,r,n,e.length),r},t.topAsync=function(e,t,r,s){var a=this;if(0===r)return n.TPromise.as([]);var u=!1;return new n.TPromise(function(n,l){i(a,void 0,void 0,function(){var n,i,a,l;return o(this,function(o){switch(o.label){case 0:n=e.length,i=e.slice(0,r).sort(t),a=r,l=Math.min(r+s,n),o.label=1;case 1:return a<n?a>r?[4,new Promise(function(e){return setTimeout(e)})]:[3,3]:[3,5];case 2:o.sent(),o.label=3;case 3:if(u)throw new Error("canceled");c(e,t,i,a,l),o.label=4;case 4:return a=l,l=Math.min(l+s,n),[3,1];case 5:return[2,i]}})}).then(n,l)},function(){u=!0})},t.coalesce=function(e,t){if(!e&&!t)return e;if(!t)return e.filter(function(e){return!!e});for(var n=0,r=0;r<e.length;r++)e[r]&&(e[n]=e[r],n+=1);e.length=n},t.move=function(e,t,n){e.splice(n,0,e.splice(t,1)[0])},t.isFalsyOrEmpty=function(e){return!Array.isArray(e)||0===e.length},t.distinct=function(e,t){if(!t)return e.filter(function(t,n){
return e.indexOf(t)===n});var n=Object.create(null);return e.filter(function(e){var r=t(e);return!n[r]&&(n[r]=!0,!0)})},t.uniqueFilter=function(e){var t=Object.create(null);return function(n){var r=e(n);return!t[r]&&(t[r]=!0,!0)}},t.firstIndex=l,t.first=function(e,t,n){void 0===n&&(n=null);var r=l(e,t);return r<0?n:e[r]},t.commonPrefixLength=function(e,t,n){void 0===n&&(n=function(e,t){return e===t});for(var r=0,i=0,o=Math.min(e.length,t.length);i<o&&n(e[i],t[i]);i++)r++;return r},t.flatten=function(e){return[].concat.apply([],e)},t.range=function(e,t){var n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);var r=[];if(n<=t)for(i=n;i<t;i++)r.push(i);else for(var i=n;i>t;i--)r.push(i);return r},t.fill=function(e,t,n){void 0===n&&(n=[]);for(var r=0;r<e;r++)n[r]=t();return n},t.index=function(e,t,n){return void 0===n&&(n=function(e){return e}),e.reduce(function(e,r){var i=t(r);return e[i]=n(r,e[i]),e},Object.create(null))},t.insert=function(e,t){return e.push(t),function(){var n=e.indexOf(t)
;n>-1&&e.splice(n,1)}},t.arrayInsert=function(e,t,n){var r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)},t.shuffle=function(e){var t=0,n=0,r=null;for(t=e.length-1;t>0;t-=1)n=Math.floor(Math.random()*(t+1)),r=e[t],e[t]=e[n],e[n]=r},t.pushToStart=function(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))},t.pushToEnd=function(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))}}),define(e[17],t([0,1,2]),function(e,t,n){"use strict";function r(e){i(e)||t.errorHandler.onUnexpectedError(e)}function i(e){return e instanceof Error&&e.name===a&&e.message===a}Object.defineProperty(t,"__esModule",{value:!0});var o={};n.TPromise.addEventListener("error",function(e){var t=e.detail,n=t.id;t.parent?t.handler&&o&&delete o[n]:(o[n]=t,1===Object.keys(o).length&&setTimeout(function(){var e=o;o={},Object.keys(e).forEach(function(t){var n=e[t];n.exception?r(n.exception):n.error&&r(n.error),console.log("WARNING: Promise with no error callback:"+n.id),console.log(n),n.exception&&console.log(n.exception.stack)})},0))
});var s=function(){function e(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}return e.prototype.addListener=function(e){var t=this;return this.listeners.push(e),function(){t._removeListener(e)}},e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})},e.prototype._removeListener=function(e){this.listeners.splice(this.listeners.indexOf(e),1)},e.prototype.setUnexpectedErrorHandler=function(e){this.unexpectedErrorHandler=e},e.prototype.getUnexpectedErrorHandler=function(){return this.unexpectedErrorHandler},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}();t.ErrorHandler=s,t.errorHandler=new s,t.setUnexpectedErrorHandler=function(e){t.errorHandler.setUnexpectedErrorHandler(e)},t.onUnexpectedError=r,t.onUnexpectedExternalError=function(e){
i(e)||t.errorHandler.onUnexpectedExternalError(e)},t.transformErrorForSerialization=function(e){if(e instanceof Error)return{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack};return e};var a="Canceled";t.isPromiseCanceledError=i,t.canceled=function(){var e=new Error(a);return e.name=e.message,e},t.illegalArgument=function(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")},t.illegalState=function(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")},t.readonly=function(e){return e?new Error("readonly property '"+e+" cannot be changed'"):new Error("readonly property cannot be changed")},t.disposed=function(e){var t=new Error(e+" has been disposed");return t.name="DISPOSED",t},t.isErrorWithActions=function(e){return e instanceof Error&&Array.isArray(e.actions)},t.create=function(e,t){void 0===t&&(t=Object.create(null));var n=new Error(e);return t.actions&&(n.actions=t.actions),n},t.getErrorMessage=function(e){
return e?e.message?e.message:e.stack?e.stack.split("\n")[0]:String(e):"Error"}}),define(e[4],t([0,1,17,79,11,52,2]),function(e,t,r,s,a,u,c){"use strict";function l(e){return function(t,n,r){void 0===n&&(n=null);var i=e(function(e){return i.dispose(),t.call(n,e)},null,r);return i}}function f(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){return n.call(r,t(e))},null,i)}}function d(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){t(e),n.call(r,e)},null,i)}}function h(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){return t(e)&&n.call(r,e)},null,i)}}function p(e){var t,n=!0;return h(e,function(e){var r=n||e!==t;return n=!1,t=e,r})}Object.defineProperty(t,"__esModule",{value:!0});!function(e){var t={dispose:function(){}};e.None=function(){return t}}(t.Event||(t.Event={}));var g=function(){function e(e){this._options=e}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,r,i){
t._listeners||(t._listeners=new u.LinkedList);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s=t._listeners.push(r?[n,r]:n);o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,r);var a;return a={dispose:function(){a.dispose=e._noop,t._disposed||(s(),t._options&&t._options.onLastListenerRemove&&t._listeners.isEmpty()&&t._options.onLastListenerRemove(t))}},Array.isArray(i)&&i.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 i=this._deliveryQueue.shift(),o=i[0],s=i[1];try{"function"==typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(n){r.onUnexpectedError(n)}}}},e.prototype.dispose=function(){
this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0},e._noop=function(){},e}();t.Emitter=g;var m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.fireAsync=function(e){return i(this,void 0,c.TPromise,function(){var t,n,i,s,a,u;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())u=[],this._asyncDeliveryQueue.push([n.value,e(u,"function"==typeof n.value?n.value:n.value[0]),u]);o.label=1;case 1:if(!(this._asyncDeliveryQueue.length>0))return[3,3];i=this._asyncDeliveryQueue.shift(),s=i[0],a=i[1],u=i[2];try{"function"==typeof s?s.call(void 0,a):s[0].call(s[1],a)}catch(e){return r.onUnexpectedError(e),[3,1]}return Object.freeze(u),[4,c.TPromise.join(u)];case 2:return o.sent(),[3,1];case 3:return[2]}})})},t}(g);t.AsyncEmitter=m;var v=function(){function e(){
var e=this;this.hasListeners=!1,this.events=[],this.emitter=new g({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,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return a.toDisposable(s.once(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);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.dispose(),e.listener=null},e.prototype.dispose=function(){
this.emitter.dispose()},e}();t.EventMultiplexer=v,t.fromCallback=function(e){var t,n=new g({onFirstListenerAdd:function(){return t=e(function(e){return n.fire(e)})},onLastListenerRemove:function(){return t.dispose()}});return n.event},t.fromPromise=function(e){var t=new g,n=!1;return e.then(null,function(){return null}).then(function(){n?t.fire():setTimeout(function(){return t.fire()},0)}),n=!0,t.event},t.toPromise=function(e){return new c.TPromise(function(t){var n=e(function(e){n.dispose(),t(e)})})},t.once=l,t.anyEvent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,r){return void 0===n&&(n=null),a.combinedDisposable(e.map(function(e){return e(function(e){return t.call(n,e)},null,r)}))}},t.debounceEvent=function(e,t,n,r){void 0===n&&(n=100),void 0===r&&(r=!1);var i,o=void 0,s=void 0,a=0,u=new g({onFirstListenerAdd:function(){i=e(function(e){a++,o=t(o,e),r&&!s&&u.fire(o),clearTimeout(s),s=setTimeout(function(){var e=o;o=void 0,s=void 0,(!r||a>1)&&u.fire(e),a=0},n)})},
onLastListenerRemove:function(){i.dispose()}});return u.event};var _=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e(function(e){var i=t.buffers[t.buffers.length-1];i?i.push(function(){return n.call(r,e)}):n.call(r,e)},void 0,i)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t),e(),this.buffers.pop(),t.forEach(function(e){return e()})},e}();t.EventBufferer=_,t.mapEvent=f,t.forEach=d,t.filterEvent=h;var y=function(){function e(e){this._event=e}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),e.prototype.map=function(t){return new e(f(this._event,t))},e.prototype.forEach=function(t){return new e(d(this._event,t))},e.prototype.filter=function(t){return new e(h(this._event,t))},e.prototype.latch=function(){return new e(p(this._event))},e.prototype.on=function(e,t,n){return this._event(e,t,n)},e}();t.chain=function(e){return new y(e)},
t.stopwatch=function(e){var t=(new Date).getTime();return f(l(e),function(e){return(new Date).getTime()-t})},t.buffer=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]),n=n.slice();var r=e(function(e){n?n.push(e):o.fire(e)}),i=function(){n.forEach(function(e){return o.fire(e)}),n=null},o=new g({onFirstListenerAdd:function(){r||(r=e(function(e){return o.fire(e)}))},onFirstListenerDidAdd:function(){n&&(t?setTimeout(i):i())},onLastListenerRemove:function(){r.dispose(),r=null}});return o.event},t.echo=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]),n=n.slice(),e(function(e){n.push(e),i.fire(e)});var r=function(e,t){return n.forEach(function(n){return e.call(t,n)})},i=new g({onListenerDidAdd:function(e,n,i){t?setTimeout(function(){return r(n,i)}):r(n,i)}});return i.event};var b=function(){function e(){this.emitter=new g,this.event=this.emitter.event,this.disposable=a.empty}return Object.defineProperty(e.prototype,"input",{set:function(e){this.disposable.dispose(),
this.disposable=e(this.emitter.fire,this.emitter)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposable.dispose(),this.emitter.dispose()},e}();t.Relay=b,t.fromNodeEventEmitter=function(e,t,n){void 0===n&&(n=function(e){return e});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.fire(n.apply(void 0,e))},i=new g({onFirstListenerAdd:function(){return e.on(t,r)},onLastListenerRemove:function(){return e.removeListener(t,r)}});return i.event},t.latch=p}),define(e[174],t([0,1,2,11,4]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t,n,r,o){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r=!0),this._onDidChange=new i.Emitter,this._id=e,this._label=t,this._cssClass=n,this._enabled=r,this._actionCallback=o}return e.prototype.dispose=function(){this._onDidChange.dispose()},Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,
configurable:!0}),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}))},Object.defineProperty(e.prototype,"order",{get:function(){return this._order},set:function(e){this._order=e},enumerable:!0,configurable:!0}),e.prototype.run=function(e,t){return void 0!==this._actionCallback?this._actionCallback(e):n.TPromise.as(!0)},e}();t.Action=o;var s=function(){function e(){this._onDidBeforeRun=new i.Emitter,this._onDidRun=new i.Emitter}
return Object.defineProperty(e.prototype,"onDidRun",{get:function(){return this._onDidRun.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event},enumerable:!0,configurable:!0}),e.prototype.run=function(e,t){var r=this;return e.enabled?(this._onDidBeforeRun.fire({action:e}),this.runAction(e,t).then(function(t){r._onDidRun.fire({action:e,result:t})},function(t){r._onDidRun.fire({action:e,error:t})})):n.TPromise.as(null)},e.prototype.runAction=function(e,t){var r=t?e.run(t):e.run();return n.TPromise.is(r)?r:n.TPromise.wrap(r)},e.prototype.dispose=function(){this._onDidBeforeRun.dispose(),this._onDidRun.dispose()},e}();t.ActionRunner=s;var a=function(){function e(e){this.actions=e,this._disposable=r.combinedDisposable(e.map(function(t){return t.onDidChange(function(n){if(n.checked&&t.checked)for(var r=0,i=e;r<i.length;r++){var o=i[r];o!==t&&(o.checked=!1)}})}))}return e.prototype.dispose=function(){this._disposable.dispose()},e
}();t.RadioGroup=a}),define(e[29],t([0,1,4]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(r=t.CancellationToken||(t.CancellationToken={}));var o=function(){function e(){this._isCancelled=!1}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)},enumerable:!0,configurable:!0}),
e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)},e}(),s=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new o),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled},e.prototype.dispose=function(){this._token?this._token instanceof o&&this._token.dispose():this._token=r.None},e}();t.CancellationTokenSource=s}),define(e[15],t([0,1,17,2,29,11,4]),function(e,t,r,i,o,s,a){"use strict";function u(e){return e&&"function"==typeof e.then}function c(e){return e instanceof i.TPromise?e:new i.TPromise(function(t,n){return e.then(t,n)})}function l(e){return i.TPromise.is(e)&&"function"==typeof e.done}function f(e,t){return l(e)?new i.TPromise(function(n,i,o){e.done(function(e){try{t(e)}catch(e){r.onUnexpectedError(e)}n(e)},function(e){try{t(e)}catch(e){r.onUnexpectedError(e)}i(e)},function(e){o(e)})
},function(){e.cancel()}):(e.then(function(e){return t()},function(e){return t()}),e)}function d(e){function t(s){void 0!==s&&null!==s&&n.push(s);var a=r<o?e[r++]():null;return a?a.then(t):i.TPromise.as(n)}var n=[],r=0,o=e.length;return i.TPromise.as(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=u,t.toThenable=function(e){return u(e)?e:i.TPromise.as(e)},t.toWinJsPromise=c,t.asWinJsPromise=function(e){var t=new o.CancellationTokenSource;return new i.TPromise(function(n,r,o){var s=e(t.token);s instanceof i.TPromise?s.then(function(e){t.dispose(),n(e)},function(e){t.dispose(),r(e)},o):u(s)?s.then(function(e){t.dispose(),n(e)},function(e){t.dispose(),r(e)}):(t.dispose(),n(s))},function(){t.cancel()})},t.asWinJSImport=function(e){return c(e)},t.wireCancellationToken=function(e,t,n){var o=e.onCancellationRequested(function(){return t.cancel()});return n&&(t=t.then(void 0,function(e){if(!r.isPromiseCanceledError(e))return i.TPromise.wrapError(e)})),f(t,function(){return o.dispose()})},
t.asDisposablePromise=function(e,t,n){var o,s={promise:new i.TPromise(function(n,i){o=function(){n(t),l(e)&&e.cancel()},e.then(n,function(e){r.isPromiseCanceledError(e)?n(t):i(e)})}),dispose:o};return Array.isArray(n)&&n.push(s),s};var h=function(){function e(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}return e.prototype.queue=function(e){var t=this;if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){var n=function(){t.queuedPromise=null;var e=t.queue(t.queuedPromiseFactory);return t.queuedPromiseFactory=null,e};this.queuedPromise=new i.TPromise(function(e,r,i){t.activePromise.then(n,n,i).done(e)},function(){t.activePromise.cancel()})}return new i.TPromise(function(e,n,r){t.queuedPromise.then(e,n,r)},function(){})}return this.activePromise=e(),new i.TPromise(function(e,n,r){t.activePromise.done(function(n){t.activePromise=null,e(n)},function(e){t.activePromise=null,n(e)},r)},function(){t.activePromise.cancel()})},e}();t.Throttler=h;var p=function(){
function e(){this.current=i.TPromise.wrap(null)}return e.prototype.queue=function(e){return this.current=this.current.then(function(){return e()})},e}();t.SimpleThrottler=p;var g=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.onSuccess=null,this.task=null}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new i.TPromise(function(e){n.onSuccess=e},function(){}).then(function(){n.completionPromise=null,n.onSuccess=null;var e=n.task;return n.task=null,e()})),this.timeout=setTimeout(function(){n.timeout=null,n.onSuccess(null)},t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.completionPromise.cancel(),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),
this.timeout=null)},e}();t.Delayer=g;var m=function(e){function t(t){var n=e.call(this,t)||this;return n.throttler=new h,n}return n(t,e),t.prototype.trigger=function(t,n){var r=this;return e.prototype.trigger.call(this,function(){return r.throttler.queue(t)},n)},t}(g);t.ThrottledDelayer=m;var v=function(){function e(){var e=this;this._isOpen=!1,this._promise=new i.TPromise(function(t,n,r){e._completePromise=t},function(){console.warn("You should really not try to cancel this ready promise!")})}return e.prototype.isOpen=function(){return this._isOpen},e.prototype.open=function(){this._isOpen=!0,this._completePromise(!0)},e.prototype.wait=function(){return this._promise},e}();t.Barrier=v;var _=function(e){function t(t){var n,i,o,s=this;return s=e.call(this,function(e,t,r){n=e,i=t,o=r},function(){i(r.canceled())})||this,t.then(n,i,o),s}return n(t,e),t}(i.TPromise);t.ShallowCancelThenPromise=_,t.timeout=function(e){return new i.TPromise(function(t){return setTimeout(t,e)})},t.always=f,t.sequence=d,
t.first=function(e,t){void 0===t&&(t=function(e){return!!e});var n=0,r=e.length,o=function(){return n>=r?i.TPromise.as(null):(0,e[n++])().then(function(e){return t(e)?i.TPromise.as(e):o()})};return o()};var y=function(){function e(e){this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new a.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.runningPromises+this.outstandingPromises.length},enumerable:!0,configurable:!0}),e.prototype.queue=function(e){var t=this;return new i.TPromise(function(n,r,i){t.outstandingPromises.push({factory:e,c:n,e:r,p:i}),t.consume()})},e.prototype.consume=function(){for(var e=this;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){var t=this.outstandingPromises.shift();this.runningPromises++;var n=t.factory();n.done(t.c,t.e,t.p),n.done(function(){
return e.consumed()},function(){return e.consumed()})}},e.prototype.consumed=function(){this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()},e.prototype.dispose=function(){this._onFinished.dispose()},e}();t.Limiter=y;var b=function(e){function t(){return e.call(this,1)||this}return n(t,e),t}(y);t.Queue=b;var C=function(){function e(){this.queues=Object.create(null)}return e.prototype.queueFor=function(e){var t=this,n=e.toString();if(!this.queues[n]){var r=new b;r.onFinished(function(){r.dispose(),delete t.queues[n]}),this.queues[n]=r}return this.queues[n]},e}();t.ResourceQueue=C,t.setDisposableTimeout=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=setTimeout.apply(void 0,[e,t].concat(n));return{dispose:function(){clearTimeout(i)}}};var E=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return n(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 n=this;this.cancel(),this._token=setTimeout(function(){n._token=-1,e()},t)},t.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout(function(){n._token=-1,e()},t))},t}(s.Disposable);t.TimeoutTimer=E;var S=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return n(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}(s.Disposable);t.IntervalTimer=S;var x=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()},e}();t.RunOnceScheduler=x;var w=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.units=[],r}return n(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(e)},t.prototype.dispose=function(){this.units=[],e.prototype.dispose.call(this)},t}(x);t.RunOnceWorker=w,t.nfcall=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new i.TPromise(function(n,r){return e.apply(void 0,t.concat([function(e,t){return e?r(e):n(t)}]))},function(){return null})},t.ninvoke=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r]
;return new i.TPromise(function(r,i){return t.call.apply(t,[e].concat(n,[function(e,t){return e?i(e):r(t)}]))},function(){return null})}}),define(e[32],t([0,1,12,7,9,20,2]),function(e,t,n,r,i,o,s){"use strict";function a(e){switch(e){case 0:return"";case 1:return b+"*?";default:return"(?:"+y+"|"+b+"+"+y+"|"+y+b+"+)*?"}}function u(e,t){if(!e)return[];for(var n,r=[],i=!1,o=!1,s="",a=0;a<e.length;a++){switch(n=e[a]){case t:if(!i&&!o){r.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":o=!0;break;case"]":o=!1}s+=n}return s&&r.push(s),r}function c(e){if(!e)return"";var t="",n=u(e,_);if(n.every(function(e){return e===v}))t=".*";else{var i=!1;n.forEach(function(e,o){if(e!==v){for(var s,l=!1,f="",d=!1,h="",p=0;p<e.length;p++)if("}"!==(s=e[p])&&l)f+=s;else if(!d||"]"===s&&h)switch(s){case"{":l=!0;continue;case"[":d=!0;continue;case"}":var g="(?:"+u(f,",").map(function(e){return c(e)}).join("|")+")";t+=g,l=!1,f="";break;case"]":t+="["+h+"]",d=!1,h="";break;case"?":t+=b;continue;case"*":t+=a(1)
;continue;default:t+=r.escapeRegExpCharacters(s)}else{h+="-"===s?s:"^"!==s&&"!"!==s||h?s===_?"":r.escapeRegExpCharacters(s):"^"}o<n.length-1&&(n[o+1]!==v||o+2<n.length)&&(t+=y),i=!1}else i||(t+=a(2),i=!0)})}return t}function l(e,t){if(!e)return k;var i;i="string"!=typeof e?e.pattern:e;var o=(i=i.trim())+"_"+!!t.trimForExclusions,s=I.get(o);if(s)return f(s,e);var a;if(E.test(i)){var u=i.substr(4);s=function(e,t){return e&&r.endsWith(e,u)?i:null}}else s=(a=S.exec(d(i,t)))?function(e,t){var n="/"+e,i="\\"+e,o=function(o,s){return o?s?s===e?t:null:o===e||r.endsWith(o,n)||r.endsWith(o,i)?t:null:null},s=[e];return o.basenames=s,o.patterns=[t],o.allBasenames=s,o}(a[1],i):(t.trimForExclusions?w:x).test(i)?function(e,t){var r=m(e.slice(1,-1).split(",").map(function(e){return l(e,t)}).filter(function(e){return e!==k}),e),i=r.length;if(!i)return k;if(1===i)return r[0];var o=function(t,n){for(var i=0,o=r.length;i<o;i++)if(r[i](t,n))return e;return null},s=n.first(r,function(e){return!!e.allBasenames})
;s&&(o.allBasenames=s.allBasenames);var a=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);a.length&&(o.allPaths=a);return o}(i,t):(a=T.exec(d(i,t)))?h(a[1].substr(1),i,!0):(a=P.exec(d(i,t)))?h(a[1],i,!1):function(e){try{var t=new RegExp("^"+c(e)+"$");return function(n,r){return t.lastIndex=0,n&&t.test(n)?e:null}}catch(e){return k}}(i);return I.set(o,s),f(s,e)}function f(e,t){return"string"==typeof t?e:function(n,r){return i.isEqualOrParent(n,t.base)?e(i.normalize(t.pathToRelative(t.base,n)),r):null}}function d(e,t){return t.trimForExclusions&&r.endsWith(e,"/**")?e.substr(0,e.length-2):e}function h(e,t,n){var o=i.nativeSep!==i.sep?e.replace(C,i.nativeSep):e,s=i.nativeSep+o,a=n?function(e,n){return e&&(e===o||r.endsWith(e,s))?t:null}:function(e,n){return e&&e===o?t:null};return a.allPaths=[(n?"*/":"./")+e],a}function p(e,t){if(void 0===t&&(t={}),!e)return D;if("string"==typeof e||g(e)){var r=l(e,t);if(r===k)return D;var o=function(e,t){return!!r(e,t)}
;return r.allBasenames&&(o.allBasenames=r.allBasenames),r.allPaths&&(o.allPaths=r.allPaths),o}return function(e,t){var r=m(Object.getOwnPropertyNames(e).map(function(n){return function(e,t,n){if(!1===t)return k;var r=l(e,n);if(r===k)return k;if("boolean"==typeof t)return r;if(t){var i=t.when;if("string"==typeof i){var o=function(t){var n=i.replace("$(basename)",t.name);return-1!==t.siblings.indexOf(n)?e:null},a=function(e,t,n){if(!r(e,t))return null;var i=n();return i?s.TPromise.is(i)?i.then(o):o(i):null};return a.requiresSiblings=!0,a}}return r}(n,e[n],t)}).filter(function(e){return e!==k})),o=r.length;if(!o)return k;if(!r.some(function(e){return e.requiresSiblings})){if(1===o)return r[0];var a=function(e,t,n){for(var i=0,o=r.length;i<o;i++){var s=r[i](e,t);if(s)return s}return null},u=n.first(r,function(e){return!!e.allBasenames});u&&(a.allBasenames=u.allBasenames);var c=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);return c.length&&(a.allPaths=c),a}var f=function(e,t,n){
function o(n){if(n&&n.length){t||(t=i.basename(e));var r=t.substr(0,t.length-i.extname(e).length);return{siblings:n,name:r}}}function a(){if(!c){c=!0;var e=n();u=s.TPromise.is(e)?e.then(o):o(e)}return u}for(var u,c=!n,l=0,f=r.length;l<f;l++){var d=r[l](e,t,a);if(d)return d}return null},d=n.first(r,function(e){return!!e.allBasenames});d&&(f.allBasenames=d.allBasenames);var h=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);h.length&&(f.allPaths=h);return f}(e,t)}function g(e){var t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern&&"function"==typeof t.pathToRelative}function m(e,t){var n=e.filter(function(e){return!!e.basenames});if(n.length<2)return e;var r,i=n.reduce(function(e,t){return e.concat(t.basenames)},[]);if(t){r=[];for(var o=0,s=i.length;o<s;o++)r.push(t)}else r=n.reduce(function(e,t){return e.concat(t.patterns)},[]);var a=function(e,t){if(!e)return null;if(!t){var n=void 0;for(n=e.length;n>0;n--){var o=e.charCodeAt(n-1);if(47===o||92===o)break}t=e.substr(n)}
var s=i.indexOf(t);return-1!==s?r[s]:null};a.basenames=i,a.patterns=r,a.allBasenames=i;var u=e.filter(function(e){return!e.basenames});return u.push(a),u}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};var v="**",_="/",y="[/\\\\]",b="[^/\\\\]",C=/\//g;t.splitGlobAware=u;var E=/^\*\*\/\*\.[\w\.-]+$/,S=/^\*\*\/([\w\.-]+)\/?$/,x=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,w=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,T=/^\*\*((\/[\w\.-]+)+)\/?$/,P=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,I=new o.LRUCache(1e4),D=function(){return!1},k=function(){return null};t.match=function(e,t,n){return!(!e||!t)&&p(e)(t,void 0,n)},t.parse=p,t.isRelativePattern=g,t.parseToAsync=function(e,t){var n=p(e,t);return function(e,t,r){var i=n(e,t,r);return i instanceof s.TPromise?i:s.TPromise.as(i)}},t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),
define(e[73],t([0,1,12]),function(e,t,n){"use strict";function r(e){return i(e)?!e.value:!Array.isArray(e)||e.every(r)}function i(e){return e instanceof s||!(!e||"object"!=typeof e)&&("string"==typeof e.value&&("boolean"==typeof e.isTrusted||void 0===e.isTrusted))}function o(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e){void 0===e&&(e=""),this.value=e}return e.prototype.appendText=function(e){return this.value+=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this},e.prototype.appendMarkdown=function(e){return this.value+=e,this},e.prototype.appendCodeblock=function(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this},e}();t.MarkdownString=s,t.isEmptyMarkdownString=r,t.isMarkdownString=i,t.markedStringsEquals=function(e,t){return!e&&!t||!(!e||!t)&&(Array.isArray(e)&&Array.isArray(t)?n.equals(e,t,o):!(!i(e)||!i(t))&&o(e,t))},
t.removeMarkdownEscapes=function(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}}),define(e[72],t([0,1,9,7,32]),function(e,t,n,r,i){"use strict";function o(e,t){void 0===t&&(t=!1);var r=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(n.sep)>=0}}(e);c.push(r),r.userConfigured?f.push(r):l.push(r),t&&!r.userConfigured&&c.forEach(function(e){e.mime===r.mime||e.userConfigured||(r.extension&&e.extension===r.extension&&console.warn("Overwriting extension <<"+r.extension+">> to now point to mime <<"+r.mime+">>"),r.filename&&e.filename===r.filename&&console.warn("Overwriting filename <<"+r.filename+">> to now point to mime <<"+r.mime+">>"),
r.filepattern&&e.filepattern===r.filepattern&&console.warn("Overwriting filepattern <<"+r.filepattern+">> to now point to mime <<"+r.mime+">>"),r.firstline&&e.firstline===r.firstline&&console.warn("Overwriting firstline <<"+r.firstline+">> to now point to mime <<"+r.mime+">>"))})}function s(e,i){if(!e)return[t.MIME_UNKNOWN];e=e.toLowerCase();var o=n.basename(e),s=a(e,o,f);if(s)return[s,t.MIME_TEXT];var u=a(e,o,l);if(u)return[u,t.MIME_TEXT];if(i){var d=function(e){r.startsWithUTF8BOM(e)&&(e=e.substr(1));if(e.length>0)for(var t=0;t<c.length;++t){var n=c[t];if(n.firstline){var i=e.match(n.firstline);if(i&&i.length>0)return n.mime}}return null}(i);if(d)return[d,t.MIME_TEXT]}return[t.MIME_UNKNOWN]}function a(e,t,n){for(var o,s,a,u=n.length-1;u>=0;u--){var c=n[u];if(t===c.filenameLowercase){o=c;break}if(c.filepattern&&(!s||c.filepattern.length>s.filepattern.length)){var l=c.filepatternOnPath?e:t;i.match(c.filepatternLowercase,l)&&(s=c)}
c.extension&&(!a||c.extension.length>a.extension.length)&&r.endsWith(t,c.extensionLowercase)&&(a=c)}return o?o.mime:s?s.mime:a?a.mime:null}function u(e){return!e||("string"==typeof e?e===t.MIME_BINARY||e===t.MIME_TEXT||e===t.MIME_UNKNOWN:1===e.length&&u(e[0]))}Object.defineProperty(t,"__esModule",{value:!0}),t.MIME_TEXT="text/plain",t.MIME_BINARY="application/octet-stream",t.MIME_UNKNOWN="application/unknown";var c=[],l=[],f=[];t.registerTextMime=o,t.clearTextMimes=function(e){e?(c=c.filter(function(e){return!e.userConfigured}),f=[]):(c=[],l=[],f=[])},t.guessMimeTypes=s,t.isUnspecific=u,t.suggestFilename=function(e,t){for(var n=0;n<c.length;n++){var r=c[n];if(!r.userConfigured&&r.id===e&&r.extension)return t+r.extension}return t};var d={".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=n.extname(e);return d[t.toLowerCase()]}}),define(e[118],t([0,1,11,4]),function(e,t,r,i){"use strict";function o(e,t){var n=t-e;return function(t){return e+n*function(e){return 1-function(e){return Math.pow(e,3)}(1-e)}(t)}}Object.defineProperty(t,"__esModule",{value:!0})
;!function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(t.ScrollbarVisibility||(t.ScrollbarVisibility={}));var s=function(){function e(e,t,n,r,i,o){t|=0,n|=0,r|=0,i|=0,o|=0,(e|=0)<0&&(e=0),n+e>t&&(n=t-e),n<0&&(n=0),r<0&&(r=0),o+r>i&&(o=i-r),o<0&&(o=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=r,this.scrollHeight=i,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,n=this.scrollWidth!==e.scrollWidth,r=this.scrollLeft!==e.scrollLeft,i=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:n,scrollLeftChanged:r,heightChanged:i,scrollHeightChanged:o,scrollTopChanged:s}},e}();t.ScrollState=s;var a=function(e){function t(t,n){var r=e.call(this)||this;return r._onScroll=r._register(new i.Emitter),r.onScroll=r._onScroll.event,r._smoothScrollDuration=t,r._scheduleAtNextAnimationFrame=n,r._state=new s(0,0,0,0,0,0),r._smoothScrolling=null,r}return n(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};r=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===r.scrollLeft&&this._smoothScrolling.to.scrollTop===r.scrollTop)return;var n=this._smoothScrolling.combine(this._state,r,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=n}else{var r=this._state.withScrollPosition(e);this._smoothScrolling=c.start(this._state,r,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())})},t.prototype._performSmoothScrolling=function(){var e=this,t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),
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}(r.Disposable);t.Scrollable=a;var u=function(){return function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}}();t.SmoothScrollingUpdate=u;var c=function(){function e(e,t,n,r){this.from=e,this.to=t,this.duration=r,this._startTime=n,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,n){if(Math.abs(e-t)>2.5*n){
var r=void 0,i=void 0;return e<t?(r=e+.75*n,i=t-.75*n):(r=e-.75*n,i=t+.75*n),function(e,t,n){return function(r){return r<n?e(r/n):t((r-n)/(1-n))}}(o(e,r),o(i,t),.33)}return o(e,t)},e.prototype.dispose=function(){null!==this.animationFrameDisposable&&(this.animationFrameDisposable.dispose(),this.animationFrameDisposable=null)},e.prototype.acceptScrollDimensions=function(e){this.to=e.withScrollPosition(this.to),this._initAnimations()},e.prototype.tick=function(){return this._tick(Date.now())},e.prototype._tick=function(e){var t=(e-this._startTime)/this.duration;if(t<1){var n=this.scrollLeft(t),r=this.scrollTop(t);return new u(n,r,!1)}return new u(this.to.scrollLeft,this.to.scrollTop,!0)},e.prototype.combine=function(t,n,r){return e.start(t,n,r)},e.start=function(t,n,r){r+=10;return new e(t,n,Date.now()-10,r)},e}();t.SmoothScrollingOperation=c}),define(e[120],t([0,1,3]),function(e,t,n){"use strict";function r(e){var t,n=[];try{var r=JSON.parse(e.arguments),i=r[r.length-1];i&&i.__$stack&&(r.pop(),t=i.__$stack),
n.push.apply(n,r)}catch(t){n.push("Unable to log remote console arguments",e.arguments)}return{args:n,stack:t}}function i(e){if("string"!=typeof e)return i(r(e).stack);var t=e;if(t){var s=o(t),a=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(s);if(a&&4===a.length)return{uri:n.default.file(a[1]),line:Number(a[2]),column:Number(a[3])}}}function o(e){if(!e)return e;var t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function s(e){return"color: "+e}Object.defineProperty(t,"__esModule",{value:!0}),t.isRemoteConsoleLog=function(e){var t=e;return t&&"string"==typeof t.type&&"string"==typeof t.severity},t.parse=r,t.getFirstFrame=i,t.log=function(e,t){var n=r(e),i=n.args,a=n.stack,u="string"==typeof i[0]&&1===i.length,c=o(a);c&&(c="("+c.trim()+")");var l=[];l="string"==typeof i[0]?c&&u?["%c["+t+"] %c"+i[0]+" %c"+c,s("blue"),s("black"),s("grey")]:["%c["+t+"] %c"+i[0],s("blue"),s("black")].concat(i.slice(1)):["%c["+t+"]%",s("blue")].concat(i),c&&!u&&l.push(c),
console[e.severity].apply(console,l)}}),define(e[125],t([0,1,218]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){void 0===e&&(e="utf8"),this.stringDecoder=new n.StringDecoder(e),this.remaining=null}return e.prototype.write=function(e){var t=[],n=this.remaining?this.remaining+this.stringDecoder.write(e):this.stringDecoder.write(e);if(n.length<1)return t;for(var r,i=0,o=i;o<n.length;)if(13===(r=n.charCodeAt(o))||10===r){if(t.push(n.substring(i,o)),++o<n.length){var s=r;r=n.charCodeAt(o),(13===s&&10===r||10===s&&13===r)&&o++}i=o}else o++;return this.remaining=i<n.length?n.substr(i):null,t},e.prototype.end=function(){return this.remaining},e}();t.LineDecoder=r}),define(e[133],t([0,1,143]),function(e,t,n){"use strict";function r(e,t,i){if(n.ok(e,"Missing first parameter"),n.ok("function"==typeof t,"Second parameter must be a function that is called for each element"),
n.ok("function"==typeof i,"Third parameter must be a function that is called on error and success"),"function"==typeof e)try{e(function(e,n){e?i(e,null):r(n,t,i)})}catch(e){i(e,null)}else{var o=[],s=function(n){if(n<e.length)try{t(e[n],function(e,t){!0!==e&&!1!==e||(t=e,e=null),e?i(e,null):(t&&o.push(t),process.nextTick(function(){s(n+1)}))},n,e.length)}catch(e){i(e,null)}else i(null,o)};s(0)}}function i(e){!function(e){n.ok(e.length>1,"Need at least one error handler and one function to process sequence"),e.forEach(function(e){n.ok("function"==typeof e)});var t=e.splice(0,1)[0],i=null;r(e,function(e,t){var n=function(e,n){!0!==e&&!1!==e||(n=e,e=null),e?t(e,null):(i=n,t(null,null))};try{e.call(n,i)}catch(e){t(e,null)}},function(e,n){e&&t(e)})}(Array.isArray(e)?e:Array.prototype.slice.call(arguments))}Object.defineProperty(t,"__esModule",{value:!0}),t.parallel=function(e,t,n){var r=new Array(e.length),i=new Array(e.length),o=!1,s=0;if(0===e.length)return n(null,[]);e.forEach(function(a,u){t(a,function(t,a){
if(t?(o=!0,r[u]=null,i[u]=t):(r[u]=a,i[u]=null),++s===e.length)return n(o?i:null,r)})})},t.loop=r,t.sequence=i}),define(e[68],t([0,1,21,40,51,27,3]),function(e,t,n,r,i,o,s){"use strict";function a(){var e="vscode-std-"+function(e){for(var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n="",r=0;r<e;r++)n+=t[Math.floor(t.length*Math.random())];return n}(40);return"win32"===process.platform?"\\\\.\\pipe\\"+e+"-sock":n.join(r.tmpdir(),e+".sock")}function u(t,n,r,u){var c,l=!1,f=function(e){l||(l=!0,u(e,null))},d=a(),h=a(),p=a(),g=function(e,t,n,r){var i={};for(var o in e)i[o]=e[o];return i.STDIN_PIPE_NAME=t,i.STDOUT_PIPE_NAME=n,i.STDERR_PIPE_NAME=r,i.ELECTRON_RUN_AS_NODE="1",i}(r.env||process.env,d,h,p),m=i.createServer(function(e){c.stderr=e});m.listen(p);var v=i.createServer(function(e){e.once("data",function(t){c.stdin=i.connect(d),c.stdout=e,function(e){l||(l=!0,u(null,e))}(c)})});v.listen(h);var _=!1,y=function(){_||(_=!0,process.removeListener("exit",y),v.close(),m.close())
},b=s.default.parse(e.toUrl("./stdForkStart.js")).fsPath;(c=o.fork(b,[t].concat(n),{silent:!0,cwd:r.cwd,env:g,execArgv:r.execArgv})).once("error",function(e){y(),f(e)}),c.once("exit",function(e){y(),f(e)}),process.once("exit",y)}Object.defineProperty(t,"__esModule",{value:!0}),t.fork=u}),define(e[81],t([0,1,53,2]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readExactlyByFile=function(e,t){return new r.TPromise(function(r,i){n.open(e,"r",null,function(e,o){function s(e,t,s){n.close(o,function(n){return n?i(n):e&&"EISDIR"===e.code?i(e):r({buffer:t,bytesRead:s})})}function a(){n.read(o,u,c,t-c,null,function(e,n){return e?s(e,null,0):0===n?s(null,u,c):(c+=n)===t?s(null,u,c):a()})}if(e)return i(e);var u=Buffer.allocUnsafe(t),c=0;a()})})},t.readToMatchingString=function(e,t,i,o){return new r.TPromise(function(r,s){return n.open(e,"r",null,function(a,u){function c(e,t){n.close(u,function(n){return n?s(n):e&&"EISDIR"===e.code?s(e):r(t)})}function l(){
n.read(u,f,d,i,null,function(n,r){if(n)return c(n,null);if(0===r)return c(null,null);d+=r;var i=f.indexOf(t);return i>=0?c(null,f.toString("utf8").substr(0,i)):d>=o?c(new Error("Could not find "+t+" in first "+o+" bytes of "+e),null):l()})}if(a)return s(a);var f=Buffer.allocUnsafe(o),d=0;l()})})}}),define(e[88],t([0,1,81,217,2,8,27,216,15]),function(e,t,r,i,o,s,a,u,c){"use strict";function l(e){return i.decodeStream(f(e))}function f(e){return e===t.UTF8_with_bom?t.UTF8:e}function d(e,n){if(!e||n<2)return null;var r=e.readUInt8(0),i=e.readUInt8(1);if(254===r&&255===i)return t.UTF16be;if(255===r&&254===i)return t.UTF16le;if(n<3)return null;var o=e.readUInt8(2);return 239===r&&187===i&&191===o?t.UTF8:null}function h(t){return c.asWinJSImport(new Promise(function(t,n){e(["jschardet"],t,n)})).then(function(e){e.Constants.MINIMUM_THRESHOLD=m;var n=e.detect(t);if(!n||!n.encoding)return null;var r=n.encoding.toLowerCase();return 0<=v.indexOf(r)?null:p(n.encoding)})}function p(e){
var t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return _[t]||t}function g(e,n){var r=e.buffer,i=e.bytesRead,o=d(r,i),s=!1;if(o!==t.UTF16be&&o!==t.UTF16le){for(var a=!0,u=!0,c=!1,l=0;l<i&&l<y;l++){var f=l%2==1,p=0===r.readInt8(l);if(p&&(c=!0),a&&(f&&!p||!f&&p)&&(a=!1),u&&(f&&p||!f&&!p)&&(u=!1),p&&!a&&!u)break}c&&(a?o=t.UTF16le:u?o=t.UTF16be:s=!0)}return!n||s||o?{seemsBinary:s,encoding:o}:h(r.slice(0,i)).then(function(e){return{seemsBinary:!1,encoding:e}})}Object.defineProperty(t,"__esModule",{value:!0}),t.UTF8="utf8",t.UTF8_with_bom="utf8bom",t.UTF16be="utf16be",t.UTF16le="utf16le",t.toDecodeStream=function(e,r){return r.minBytesRequiredForDetection||(r.minBytesRequiredForDetection=r.guessEncoding?C:b),r.overwriteEncoding||(r.overwriteEncoding=function(e){return e||t.UTF8}),new o.TPromise(function(t,i){e.pipe(new(function(e){function i(t){var n=e.call(this,t)||this;return n._buffer=[],n._bytesBuffered=0,n.once("finish",function(){return n._finish()}),n}return n(i,e),i.prototype._write=function(e,t,n){
Buffer.isBuffer(e)||n(new Error("data must be a buffer")),this._decodeStream?this._decodeStream.write(e,n):(this._buffer.push(e),this._bytesBuffered+=e.length,this._decodeStreamConstruction?this._decodeStreamConstruction.then(function(e){return n()},function(e){return n(e)}):this._bytesBuffered>=r.minBytesRequiredForDetection?this._startDecodeStream(n):n())},i.prototype._startDecodeStream=function(e){var n=this;this._decodeStreamConstruction=o.TPromise.as(g({buffer:Buffer.concat(this._buffer),bytesRead:this._bytesBuffered},r.guessEncoding)).then(function(i){i.encoding=r.overwriteEncoding(i.encoding),n._decodeStream=l(i.encoding);for(var o=0,s=n._buffer;o<s.length;o++){var a=s[o];n._decodeStream.write(a)}e(),t({detected:i,stream:n._decodeStream})},function(t){n.emit("error",t),e(t)})},i.prototype._finish=function(){var e=this;this._decodeStream?this._decodeStream.end():this._startDecodeStream(function(){return e._decodeStream.end()})},i}(u.Writable)))})},t.bomLength=function(e){switch(e){case t.UTF8:return 3
;case t.UTF16be:case t.UTF16le:return 2}return 0},t.decode=function(e,t){return i.decode(e,f(t))},t.encode=function(e,t,n){return i.encode(e,f(t),n)},t.encodingExists=function(e){return i.encodingExists(f(e))},t.decodeStream=l,t.encodeStream=function(e,t){return i.encodeStream(f(e),t)},t.detectEncodingByBOMFromBuffer=d,t.detectEncodingByBOM=function(e){return r.readExactlyByFile(e,3).then(function(e){return d(e.buffer,e.bytesRead)})};var m=.2,v=["ascii","utf-8","utf-16","utf-32"];t.guessEncodingByBuffer=h;var _={ibm866:"cp866",big5:"cp950"};t.toCanonicalName=function(e){switch(e){case"shiftjis":return"shift-jis";case"utf16le":return"utf-16le";case"utf16be":return"utf-16be";case"big5hkscs":return"big5-hkscs";case"eucjp":return"euc-jp";case"euckr":return"euc-kr";case"koi8r":return"koi8-r";case"koi8u":return"koi8-u";case"macroman":return"x-mac-roman";case"utf8bom":return"utf8";default:var t=e.match(/windows(\d+)/);return t?"windows-"+t[1]:e}};var y=512,b=512,C=4096;t.detectEncodingFromBuffer=g;var E={
437:"cp437",850:"cp850",852:"cp852",855:"cp855",857:"cp857",860:"cp860",861:"cp861",863:"cp863",865:"cp865",866:"cp866",869:"cp869",936:"cp936",1252:"cp1252"};t.resolveTerminalEncoding=function(e){var n,r=process.env.VSCODE_CLI_ENCODING;return r?(e&&console.log("Found VSCODE_CLI_ENCODING variable: "+r),n=o.TPromise.as(r)):n=s.isLinux||s.isMacintosh?new o.TPromise(function(t){e&&console.log('Running "locale charmap" to detect terminal encoding...'),a.exec("locale charmap",function(e,n,r){return t(n)})}):new o.TPromise(function(t){e&&console.log('Running "chcp" to detect terminal encoding...'),a.exec("chcp",function(e,n,r){if(n)for(var i=Object.keys(E),o=0;o<i.length;o++){var s=i[o];if(n.indexOf(s)>=0)return t(E[s])}return t(void 0)})}),n.then(function(n){if(e&&console.log("Detected raw terminal encoding: "+n),!n||"utf-8"===n.toLowerCase()||n.toLowerCase()===t.UTF8)return t.UTF8;var r=p(n);return i.encodingExists(r)?r:(e&&console.log("Unsupported terminal encoding, falling back to UTF-8."),t.UTF8)})}}),
define(e[54],t([0,1,53,21,15,97,8,7,49,2,88,133]),function(e,t,n,r,i,o,s,a,u,c,l,f){"use strict";function d(e){return s.isMacintosh?n.readdirSync(e).map(function(e){return o.normalizeNFC(e)}):n.readdirSync(e)}function h(e,t){return s.isMacintosh?n.readdir(e,function(e,n){return e?t(e,null):t(null,n.map(function(e){return o.normalizeNFC(e)}))}):n.readdir(e,t)}function p(e,t,i,o){o||(o=Object.create(null)),n.stat(e,function(s,a){if(s)return i(s);if(!a.isDirectory())return function(e,t,r,i){var o=n.createReadStream(e),s=n.createWriteStream(t,{mode:r}),a=!1,u=function(e){a||(a=!0,e?i(e):n.chmod(t,r,i))};o.once("error",function(e){return u(e)}),s.once("error",function(e){return u(e)}),s.once("close",function(){return u()}),o.pipe(s)}(e,t,511&a.mode,i);if(o[e])return i(null);o[e]=!0;var u=function(){h(e,function(n,s){E(s,function(n,i){p(r.join(e,n),r.join(t,n),function(e){return i(e,void 0)},o)},i)})};g(t,511&a.mode).done(u,u)})}function g(e,t){var o=function(){return i.nfcall(n.mkdir,e,t).then(null,function(t){
return"ENOENT"===t.code?c.TPromise.wrapError(t):i.nfcall(n.stat,e).then(function(t){return t.isDirectory()?null:c.TPromise.wrapError(new Error("'"+e+"' exists and is not a directory."))},function(e){return c.TPromise.wrapError(t)})})};return e===r.dirname(e)?c.TPromise.as(!0):o().then(null,function(n){return"ENOENT"===n.code?g(r.dirname(e),t).then(o):c.TPromise.wrapError(n)})}function m(e,t){if("\\"===e||"/"===e)return t(new Error("Will not delete root!"));n.exists(e,function(i){i?n.lstat(e,function(i,o){if(i||!o)t(i);else if(!o.isDirectory()||o.isSymbolicLink()){var s=o.mode;128&s?n.unlink(e,t):n.chmod(e,128|s,function(r){r?t(r):n.unlink(e,t)})}else h(e,function(i,o){if(i||!o)t(i);else if(0===o.length)n.rmdir(e,t);else{var s=null,a=o.length;o.forEach(function(i){m(r.join(e,i),function(r){a--,r&&(s=s||r),0===a&&(s?t(s):n.rmdir(e,t))})})}})}):t(null)})}function v(e){try{var t=n.lstatSync(e);t.isDirectory()&&!t.isSymbolicLink()?(d(e).forEach(function(t){return v(r.join(e,t))}),n.rmdirSync(e)):n.unlinkSync(e)
}catch(e){if("ENOENT"===e.code)return;throw e}}function _(e,t,r,i){r=y(r),"string"==typeof t||Buffer.isBuffer(t)?function(e,t,r,i){r.encoding&&(t=l.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM}));if(!S)return n.writeFile(e,t,{mode:r.mode,flag:r.flag},i);n.open(e,r.flag,r.mode,function(e,r){if(e)return i(e);n.writeFile(r,t,function(e){if(e)return n.close(r,function(){return i(e)});n.fdatasync(r,function(e){return e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),S=!1),n.close(r,function(e){return i(e)})})})})}(e,t,r,i):function(e,t,r,i){var o,s,a=!1,u=function(e){a||(a=!0,e?s?(c.once("close",function(){return i(e)}),c.close()):i(e):i())},c=n.createWriteStream(e,{mode:r.mode,flags:r.flag,autoClose:!1});c.once("open",function(e){o=e,s=!0,r.encoding&&(t=t.pipe(l.encodeStream(r.encoding.charset,{addBOM:r.encoding.addBOM}))),t.pipe(c)}),t.once("error",function(e){return u(e)}),c.once("error",function(e){return u(e)}),c.once("finish",function(){
S&&s?n.fdatasync(o,function(e){e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),S=!1),c.close()}):c.close()}),c.once("close",function(){return u()})}(e,t,r,i)}function y(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 b(e){var t=r.dirname(e);if(e===t)return e;var n=(r.basename(e)||e).toLowerCase();try{var i=d(t).filter(function(e){return e.toLowerCase()===n});if(1===i.length){if(s=b(t))return r.join(s,i[0])}else if(i.length>1){var o=i.indexOf(n);if(o>=0){var s=b(t);if(s)return r.join(s,i[o])}}}catch(e){}return null}function C(e){return a.rtrim(r.normalize(e),r.sep)}Object.defineProperty(t,"__esModule",{value:!0});var E=f.loop;t.readdirSync=d,t.readdir=h,t.statLink=function(e,t){n.lstat(e,function(r,i){r||i.isSymbolicLink()?n.stat(e,function(e,n){if(e)return t(e,null);t(null,{stat:n,isSymbolicLink:i&&i.isSymbolicLink()})}):t(null,{
stat:i,isSymbolicLink:!1})})},t.copy=p,t.mkdirp=g,t.del=function(e,t,i,o){n.exists(e,function(s){if(!s)return i(null);n.stat(e,function(s,c){if(s||!c)return i(s);if("."===e[e.length-1]||a.endsWith(e,"./")||a.endsWith(e,".\\"))return m(e,i);var l=r.join(t,u.generateUuid());n.rename(e,l,function(t){if(t)return m(e,i);i(null),m(l,function(e){e&&console.error(e),o&&o(e)})})})})},t.delSync=v,t.mv=function(e,t,r){function i(e){if(e)return r(e);n.stat(t,function(e,i){return e?r(e):i.isDirectory()?r(null):void n.open(t,"a",null,function(e,t){if(e)return r(e);n.futimes(t,i.atime,new Date,function(e){if(e)return r(e);n.close(t,r)})})})}if(e===t)return r(null);n.rename(e,t,function(n){return n?n&&e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===n.code||a.endsWith(e,".")?p(e,t,function(t){if(t)return r(t);m(e,i)}):r(n):i(null)})};var S=!0;t.writeFileAndFlush=_,t.writeFileAndFlushSync=function(e,t,r){if((r=y(r)).encoding&&(t=l.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM})),!S)return n.writeFileSync(e,t,{mode:r.mode,
flag:r.flag});var i=n.openSync(e,r.flag,r.mode);try{n.writeFileSync(i,t);try{n.fdatasyncSync(i)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),S=!1}}finally{n.closeSync(i)}},t.realcaseSync=b,t.realpathSync=function(e){try{return n.realpathSync(e)}catch(r){var t=C(e);return n.accessSync(t,n.constants.R_OK),t}},t.realpath=function(e,t){return n.realpath(e,function(r,i){if(!r)return t(null,i);var o=C(e);return n.access(o,n.constants.R_OK,function(e){return t(e,o)})})},t.watch=function(e,t,r){try{var i=n.watch(e);return i.on("change",function(e,n){var r=null;n&&(r=n.toString(),s.isMacintosh&&(r=o.normalizeNFC(r))),t(e,r)}),i.on("error",function(t,n){return r("Failed to watch "+e+" for changes ("+t+", "+n+")")}),i}catch(t){n.exists(e,function(n){n&&r("Failed to watch "+e+" for changes ("+t.toString()+")")})}}}),define(e[33],t([0,1,2,54,21,15,53,40,8,4]),function(e,t,n,r,i,o,s,a,u,c){"use strict";function l(e){return o.nfcall(r.readdir,e)}function f(e){
return h(e).then(function(t){return t.isDirectory()&&!t.isSymbolicLink()?l(e).then(function(t){return n.TPromise.join(t.map(function(t){return f(i.join(e,t))}))}).then(function(){return p(e)}):g(e)},function(e){if("ENOENT"!==e.code)return n.TPromise.wrapError(e)})}function d(e){return o.nfcall(s.stat,e)}function h(e){return o.nfcall(s.lstat,e)}function p(e){return o.nfcall(s.rmdir,e)}function g(e){return o.nfcall(s.unlink,e)}function m(e,t,n){return function(e){var t=y[e];if(!t){t=new o.Queue,y[e]=t;c.once(t.onFinished)(function(){delete y[e],t.dispose()})}return t}(function(e){var t=e;(u.isWindows||u.isMacintosh)&&(t=t.toLowerCase());return t}(e)).queue(function(){return o.nfcall(r.writeFileAndFlush,e,t,n)})}function v(e){return d(e).then(function(e){return e.isDirectory()},function(){return!1})}function _(e,t){return void 0===t&&(b||(b=a.tmpdir()),t=b),o.nfcall(r.del,e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=l,t.exists=function(e){return new n.TPromise(function(t){return s.exists(e,t)
},function(){})},t.chmod=function(e,t){return o.nfcall(s.chmod,e,t)},t.mkdirp=r.mkdirp,t.rimraf=f,t.realpath=function(e){return o.nfcall(r.realpath,e)},t.stat=d,t.statLink=function(e){return o.nfcall(r.statLink,e)},t.lstat=h,t.rename=function(e,t){return o.nfcall(s.rename,e,t)},t.rmdir=p,t.unlink=g,t.symlink=function(e,t,n){return o.nfcall(s.symlink,e,t,n)},t.readlink=function(e){return o.nfcall(s.readlink,e)},t.truncate=function(e,t){return o.nfcall(s.truncate,e,t)},t.readFile=function(e,t){return o.nfcall(s.readFile,e,t)};var y=Object.create(null);t.writeFile=m,t.readDirsInDir=function(e){return l(e).then(function(t){return n.TPromise.join(t.map(function(t){return v(i.join(e,t))})).then(function(e){return t.filter(function(t,n){return e[n]})})})},t.dirExists=v,t.fileExists=function(e){return d(e).then(function(e){return e.isFile()},function(){return!1})};var b=null;t.del=_,t.whenDeleted=function(e){return new n.TPromise(function(t){var n=!1,r=setInterval(function(){n||(n=!0,s.exists(e,function(e){n=!1,
e||(clearInterval(r),t(null))}))},1e3)})},t.copy=function(e,t){return o.nfcall(r.copy,e,t)}}),define(e[45],t([0,1,2,11,4]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o;!function(e){e[e.RequestCommon=0]="RequestCommon",e[e.RequestCancel=1]="RequestCancel",e[e.ResponseInitialize=2]="ResponseInitialize",e[e.ResponseSuccess=3]="ResponseSuccess",e[e.ResponseProgress=4]="ResponseProgress",e[e.ResponseError=5]="ResponseError",e[e.ResponseErrorObj=6]="ResponseErrorObj"}(o||(o={}));var s;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(s||(s={}));var a=function(){function e(e){var t=this;this.protocol=e,this.channels=Object.create(null),this.activeRequests=Object.create(null),this.protocolListener=this.protocol.onMessage(function(e){return t.onMessage(e)}),this.protocol.send({type:o.ResponseInitialize})}return e.prototype.registerChannel=function(e,t){this.channels[e]=t},e.prototype.onMessage=function(e){switch(e.type){case o.RequestCommon:
this.onCommonRequest(e);break;case o.RequestCancel:this.onCancelRequest(e)}},e.prototype.onCommonRequest=function(e){var t,i=this,s=this.channels[e.channelName];try{t=s.call(e.name,e.arg)}catch(e){t=n.TPromise.wrapError(e)}var a=e.id,u=t.then(function(t){i.protocol.send({id:a,data:t,type:o.ResponseSuccess}),delete i.activeRequests[e.id]},function(t){t instanceof Error?i.protocol.send({id:a,data:{message:t.message,name:t.name,stack:t.stack?t.stack.split?t.stack.split("\n"):t.stack:void 0},type:o.ResponseError}):i.protocol.send({id:a,data:t,type:o.ResponseErrorObj}),delete i.activeRequests[e.id]},function(e){i.protocol.send({id:a,data:e,type:o.ResponseProgress})});this.activeRequests[e.id]=r.toDisposable(function(){return u.cancel()})},e.prototype.onCancelRequest=function(e){var t=this.activeRequests[e.id];t&&(t.dispose(),delete this.activeRequests[e.id])},e.prototype.dispose=function(){var e=this;this.protocolListener.dispose(),this.protocolListener=null,Object.keys(this.activeRequests).forEach(function(t){
e.activeRequests[t].dispose()}),this.activeRequests=null},e}();t.ChannelServer=a;var u=function(){function e(e){var t=this;this.protocol=e,this.state=s.Uninitialized,this.activeRequests=[],this.bufferedRequests=[],this.handlers=Object.create(null),this.lastRequestId=0,this.protocolListener=this.protocol.onMessage(function(e){return t.onMessage(e)})}return e.prototype.getChannel=function(e){var t=this;return{call:function(n,r){return t.request(e,n,r)}}},e.prototype.request=function(e,t,n){var r=this,i={raw:{id:this.lastRequestId++,type:o.RequestCommon,channelName:e,name:t,arg:n}},a=this.state===s.Uninitialized?this.bufferRequest(i):this.doRequest(i);return this.activeRequests.push(a),a.then(null,function(e){return null}).done(function(){return r.activeRequests=r.activeRequests.filter(function(e){return e!==a})}),a},e.prototype.doRequest=function(e){var t=this,r=e.raw.id;return new n.TPromise(function(n,i,s){t.handlers[r]=function(e){switch(e.type){case o.ResponseSuccess:delete t.handlers[r],n(e.data);break
;case o.ResponseError:delete t.handlers[r];var a=new Error(e.data.message);a.stack=e.data.stack,a.name=e.data.name,i(a);break;case o.ResponseErrorObj:delete t.handlers[r],i(e.data);break;case o.ResponseProgress:s(e.data)}},t.send(e.raw)},function(){return t.send({id:r,type:o.RequestCancel})})},e.prototype.bufferRequest=function(e){var t=this,r=null;return new n.TPromise(function(n,i,o){t.bufferedRequests.push(e),e.flush=function(){e.flush=null,r=t.doRequest(e).then(n,i,o)}},function(){if(e.flush=null,t.state===s.Uninitialized){var n=t.bufferedRequests.indexOf(e);-1!==n&&t.bufferedRequests.splice(n,1)}else r&&(r.cancel(),r=null)})},e.prototype.onMessage=function(e){if(function(e){return e>=o.ResponseInitialize}(e.type)){if(this.state===s.Uninitialized&&e.type===o.ResponseInitialize)return this.state=s.Idle,this.bufferedRequests.forEach(function(e){return e.flush&&e.flush()}),void(this.bufferedRequests=null);var t=this.handlers[e.id];t&&t(e)}},e.prototype.send=function(e){try{this.protocol.send(e)}catch(e){}},
e.prototype.dispose=function(){this.protocolListener.dispose(),this.protocolListener=null,this.activeRequests.forEach(function(e){return e.cancel()}),this.activeRequests=[]},e}();t.ChannelClient=u;var c=function(){function e(e){var t=this;this.channels=Object.create(null),this.channelClients=Object.create(null),this.onClientAdded=new i.Emitter,e(function(e){var n=e.protocol,r=e.onDidClientDisconnect;i.once(n.onMessage)(function(e){var i=new a(n),o=new u(n);Object.keys(t.channels).forEach(function(e){return i.registerChannel(e,t.channels[e])}),t.channelClients[e]=o,t.onClientAdded.fire(e),r(function(){i.dispose(),o.dispose(),delete t.channelClients[e]})})})}return e.prototype.getChannel=function(e,t){var r=this;return{call:function(i,o){var s=t.route(i,o);return s?r.getClient(s).then(function(t){return t.getChannel(e).call(i,o)}):n.TPromise.wrapError(new Error("Client id should be provided"))}}},e.prototype.registerChannel=function(e,t){this.channels[e]=t},e.prototype.getClient=function(e){
var t=this,r=this.channelClients[e];return r?n.TPromise.as(r):new n.TPromise(function(n){i.once(i.filterEvent(t.onClientAdded.event,function(t){return t===e}))(function(){return n(t.channelClients[e])})})},e.prototype.dispose=function(){this.channels=Object.create(null),this.channelClients=Object.create(null),this.onClientAdded.dispose()},e}();t.IPCServer=c;var l=function(){function e(e,t){e.send(t),this.channelClient=new u(e),this.channelServer=new a(e)}return e.prototype.getChannel=function(e){return this.channelClient.getChannel(e)},e.prototype.registerChannel=function(e,t){this.channelServer.registerChannel(e,t)},e.prototype.dispose=function(){this.channelClient.dispose(),this.channelClient=null,this.channelServer.dispose(),this.channelServer=null},e}();t.IPCClient=l,t.getDelayedChannel=function(e){return{call:function(t,n){return e.then(function(e){return e.call(t,n)})}}},t.getNextTickChannel=function(e){var t=!1;return{call:function(r,i){return t?e.call(r,i):n.TPromise.timeout(0).then(function(){
return t=!0}).then(function(){return e.call(r,i)})}}},t.eventToCall=function(e,t){void 0===t&&(t=function(e){return e});var r;return new n.TPromise(function(n,i,o){return r=e(function(e){return o(t(e))})},function(){return r.dispose()})},t.eventFromCall=function(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=function(e){return e});var o,s=new i.Emitter({onFirstListenerAdd:function(){o=e.call(t,n).then(null,function(e){return null},function(e){return s.fire(r(e))})},onLastListenerRemove:function(){o.cancel(),o=null}});return s.event}}),define(e[115],t([0,1,51,2,4,45,21,40,49]),function(e,t,r,i,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomPipeName=function(){var e=c.generateUuid();return"win32"===process.platform?"\\\\.\\pipe\\vscode-ipc-"+e+"-sock":a.join(u.tmpdir(),"vscode-ipc-"+e+".sock")};var l=function(){function e(t,n){var r=this;this._socket=t,this._onMessage=new o.Emitter,this.onMessage=this._onMessage.event,this._writeBuffer=new(function(){function e(){
this._data=[],this._totalLength=0}return e.prototype.add=function(e,t){var n=0===this._totalLength;return this._data.push(e,t),this._totalLength+=e.length+t.length,n},e.prototype.take=function(){var e=Buffer.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,e},e}());var i=[],s=0,a={readHead:!0,bodyIsJson:!1,bodyLen:-1},u=function(t){for(i.push(t),s+=t.length;s>0;){if(a.readHead){if(!(s>=e._headerLen))break;n=Buffer.concat(i);a.bodyIsJson=1===n.readInt8(0),a.bodyLen=n.readInt32BE(1),a.readHead=!1;u=n.slice(e._headerLen);s=u.length,i=[u]}if(!a.readHead){if(!(s>=a.bodyLen))break;var n,o=(n=Buffer.concat(i)).toString("utf8",0,a.bodyLen);a.bodyIsJson&&(o=JSON.parse(o)),r._onMessage.fire(o);var u=n.slice(a.bodyLen);s=u.length,i=[u],a.bodyIsJson=!1,a.bodyLen=-1,a.readHead=!0}}},c=function(){if(n&&n.length>0){var e=n;n=null,u(e)}};t.on("data",function(e){c(),u(e)}),t.on("end",function(){c()})}return e.prototype.send=function(t){var n=Buffer.alloc(e._headerLen)
;"string"!=typeof t&&(t=JSON.stringify(t),n.writeInt8(1,0));var r=Buffer.from(t);n.writeInt32BE(r.length,1),this._writeSoon(n,r)},e.prototype._writeSoon=function(e,t){var n=this;this._writeBuffer.add(e,t)&&setImmediate(function(){n._socket.destroyed||n._socket.write(n._writeBuffer.take())})},e._headerLen=17,e}();t.Protocol=l;var f=function(e){function t(n){var r=e.call(this,t.toClientConnectionEvent(n))||this;return r.server=n,r}return n(t,e),t.toClientConnectionEvent=function(e){var t=o.fromNodeEventEmitter(e,"connection");return o.mapEvent(t,function(e){return{protocol:new l(e),onDidClientDisconnect:o.once(o.fromNodeEventEmitter(e,"close"))}})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.server.close(),this.server=null},t}(s.IPCServer);t.Server=f;var d=function(e){function t(t,n){var r=e.call(this,new l(t),n)||this;return r.socket=t,r._onClose=new o.Emitter,t.once("close",function(){return r._onClose.fire()}),r}return n(t,e),Object.defineProperty(t.prototype,"onClose",{get:function(){
return this._onClose.event},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.socket.end(),this.socket=null},t}(s.IPCClient);t.Client=d,t.serve=function(e){return new i.TPromise(function(t,n){var i=r.createServer();i.on("error",n),i.listen(e,function(){i.removeListener("error",n),t(new f(i))})})},t.connect=function(e,t){return new i.TPromise(function(n,i){var o=r.createConnection(e,function(){o.removeListener("error",i),n(new d(o,t))});o.once("error",i)})}}),define(e[116],t([0,1,76,175,9,8,7]),function(e,t,n,r,i,o,s){"use strict";function a(e,t,n,i){if(!e||!t)return d;var o=e.length,s=t.length;if(o<s)return d;var a=e.toLowerCase();if(!i){if(-1===a.indexOf(n))return d}return function(e,t,n,i,o,s){for(var a=[],u=[],c=0;c<n;c++)for(var l=0;l<s;l++){var d=c*s+l,h=(c-1)*s+l-1,p=l>0?a[d-1]:0,g=c>0&&l>0?a[h]:0,m=c>0&&l>0?u[h]:0,v=void 0;(v=!g&&c>0?0:function(e,t,n,i,o,s,a){var u=0;if(t[n]!==o[s])return u;u+=1,a>0&&(u+=5*a);e[n]===i[s]&&(u+=1);if(0===s)u+=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(s-1));c?u+=c:r.isUpper(i.charCodeAt(s))&&(u+=1)}return u}(e,t,c,i,o,l,m))&&g+v>=p?(u[d]=m+1,a[d]=g+v):(u[d]=f,a[d]=p)}var _=[],y=n-1,b=s-1;for(;y>=0&&b>=0;){u[d=y*s+b]===f?b--:(_.push(b),y--,b--)}return[a[n*s-1],_.reverse()]}(t,n,s,e,a,o)}function u(e,t,n,u,c){if(!e||!t.value)return h;var l=u.getItemLabel(e);if(!l)return h;var f,d=u.getItemDescription(e),_=c[f=d?""+l+d+t.value+n:""+l+t.value+n];if(_)return _;var y=function(e,t,n,u,c){if(n&&o.isLinux?u.original===n:s.equalsIgnoreCase(u.original,n))return{score:p,labelMatch:[{start:0,end:e.length}],descriptionMatch:t?[{start:0,end:t.length}]:void 0};if(!n||!u.containsPathSeparator){var l=r.matchesPrefix(u.value,e);if(l)return{score:g,labelMatch:l};var f=r.matchesCamelCase(u.value,e);if(f)return{score:m,labelMatch:f};var d=a(e,u.value,u.lowercase,c),_=d[0],y=d[1];if(_)return{score:_+v,labelMatch:r.createMatches(y)}
}if(t){var b=t;n&&(b=""+t+i.nativeSep);var C=b.length,E=a(""+b+e,u.value,u.lowercase,c),S=E[0],x=E[1];if(S){var w=[],T=[];return r.createMatches(x).forEach(function(e){e.start<C&&e.end>C?(w.push({start:0,end:e.end-C}),T.push({start:e.start,end:C})):e.start>=C?w.push({start:e.start-C,end:e.end-C}):T.push(e)}),{score:S,labelMatch:w,descriptionMatch:T}}}return h}(l,d,u.getItemPath(e),t,n);return c[f]=y,y}function c(e,t,n){var r=t.labelMatch&&t.labelMatch.length,i=t.descriptionMatch&&t.descriptionMatch.length,o=-1,s=-1;if(i?o=t.descriptionMatch[0].start:r&&(o=t.labelMatch[0].start),r){if(s=t.labelMatch[t.labelMatch.length-1].end,i){var a=n.getItemDescription(e);a&&(s+=a.length)}}else i&&(s=t.descriptionMatch[t.descriptionMatch.length-1].end);return s-o}function l(e,t,r,i){var o=i.getItemLabel(e),s=i.getItemLabel(t),a=i.getItemDescription(e),u=i.getItemDescription(t),c=o.length+(a?a.length:0),l=s.length+(u?u.length:0);if(c!==l)return c-l;var f=i.getItemPath(e),d=i.getItemPath(t)
;return f&&d&&f.length!==d.length?f.length-d.length:o!==s?n.compareAnything(o,s,r.value):a&&u&&a!==u?n.compareAnything(a,u,r.value):f&&d&&f!==d?n.compareAnything(f,d,r.value):0}Object.defineProperty(t,"__esModule",{value:!0});var f=0,d=[f,[]];t.score=a;var h=Object.freeze({score:0}),p=1<<18,g=1<<17,m=65536,v=32768;t.prepareQuery=function(e){var t,n,r;return e&&(r=s.stripWildcards(e).replace(/\s/g,""),o.isWindows&&(r=r.replace(/\//g,i.nativeSep)),t=r.toLowerCase(),n=r.indexOf(i.nativeSep)>=0),{original:e,value:r,lowercase:t,containsPathSeparator:n}},t.scoreItem=u,t.compareItemsByScore=function(e,t,n,r,i,o,s){void 0===s&&(s=l);var a=u(e,n,r,i,o),f=u(t,n,r,i,o),d=a.score,h=f.score;if((d===p||h===p)&&d!==h)return d===p?-1:1;if(d===g||h===g){if(d!==h)return d===g?-1:1;var _=i.getItemLabel(e),y=i.getItemLabel(t);if(_.length!==y.length)return _.length-y.length}if(d===m||h===m){if(d!==h)return d===m?-1:1;var _=i.getItemLabel(e),y=i.getItemLabel(t),b=function(e,t){if(!e&&!t||!e.length&&!t.length)return 0
;if(!t||!t.length)return-1;if(!e||!e.length)return 1;var n=e[0].start,r=e[e.length-1].end-n,i=t[0].start,o=t[t.length-1].end-i;return r===o?0:o<r?1:-1}(a.labelMatch,f.labelMatch);if(0!==b)return b;if(_.length!==y.length)return _.length-y.length}if(d>v||h>v){if(h<v)return-1;if(d<v)return 1}if(d!==h)return d>h?-1:1;var C=c(e,a,i),E=c(t,f,i);return C&&E&&C!==E?E>C?-1:1:s(e,t,n,i)},t.fallbackCompare=l}),define(e[25],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column},e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)},e.isBeforeOrEqual=function(e,t){
return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column},e.compare=function(e,t){var n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){return(0|e.column)-(0|t.column)}return n-r},e.prototype.clone=function(){return new e(this.lineNumber,this.column)},e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"},e.lift=function(t){return new e(t.lineNumber,t.column)},e.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column},e}();t.Position=n}),define(e[24],t([0,1,25]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}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.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var r,i,o,s;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),
n.endLineNumber>t.endLineNumber?(o=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(r,i,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var r=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,c=n.endLineNumber,l=n.endColumn;return r<a?(r=a,i=u):r===a&&(i=Math.max(i,u)),o>c?(o=c,s=l):o===c&&(s=Math.min(s,l)),r>o?null:r===o&&i>s?null:new e(r,i,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 n.Position(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new n.Position(this.startLineNumber,this.startColumn)},
e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,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,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.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.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)},e.areIntersecting=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)},e.compareRangesUsingStarts=function(e,t){var n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){var i=0|e.startColumn,o=0|t.startColumn;if(i===o){var s=0|e.endLineNumber,a=0|t.endLineNumber;if(s===a){return(0|e.endColumn)-(0|t.endColumn)}return s-a}return i-o}return n-r},e.compareRangesUsingEnds=function(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber},
e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},e}();t.Range=r}),define(e[65],t([0,1,24,25]),function(e,t,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o;!function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(o=t.SelectionDirection||(t.SelectionDirection={}));var s=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectionStartLineNumber=t,o.selectionStartColumn=n,o.positionLineNumber=r,o.positionColumn=i,o}return n(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?o.LTR:o.RTL},t.prototype.setEndPosition=function(e,n){return this.getDirection()===o.LTR?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new i.Position(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return this.getDirection()===o.LTR?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.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 n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0},t.isISelection=function(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn},t.createWithDirection=function(e,n,r,i,s){return s===o.LTR?new t(e,n,r,i):new t(r,i,e,n)},t}(r.Range);t.Selection=s}),define(e[126],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t,n){this.offset=0|e,this.type=t,this.language=n}return e.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},e}();t.Token=n;var r=function(){return function(e,t){this.tokens=e,this.endState=t}}();t.TokenizationResult=r;var i=function(){return function(e,t){
this.tokens=e,this.endState=t}}();t.TokenizationResult2=i}),define(e[62],t([0,1]),function(e,t){"use strict";function n(e){return e<0?0:e>4294967295?4294967295:0|e}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){for(var r=new Uint8Array(e*t),i=0,o=e*t;i<o;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}return e.prototype.get=function(e,t){return this._data[e*this.cols+t]},e.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n},e}();t.Uint8Matrix=r;!function(e){e[e.MAX_SAFE_SMALL_INTEGER=1073741824]="MAX_SAFE_SMALL_INTEGER",e[e.MIN_SAFE_SMALL_INTEGER=-1073741824]="MIN_SAFE_SMALL_INTEGER",e[e.MAX_UINT_8=255]="MAX_UINT_8",e[e.MAX_UINT_16=65535]="MAX_UINT_16",e[e.MAX_UINT_32=4294967295]="MAX_UINT_32"}(t.Constants||(t.Constants={})),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,r=new Uint32Array(t),i=0;i<t;i++)r[i]=n(e[i]);return r}}),define(e[130],t([0,1,62]),function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(t){var r=n.toUint8(t);this._defaultValue=r,this._asciiMap=e._createAsciiMap(r),this._map=new Map}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},e.prototype.set=function(e,t){var r=n.toUint8(t);e>=0&&e<256?this._asciiMap[e]=r:this._map.set(e,r)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}();t.CharacterClassifier=r;var i;!function(e){e[e.False=0]="False",e[e.True=1]="True"}(i||(i={}));var o=function(){function e(){this._actual=new r(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=o}),define(e[132],t([0,1,130]),function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Regular=0]="Regular",e[e.Whitespace=1]="Whitespace",e[e.WordSeparator=2]="WordSeparator"
}(t.WordCharacterClass||(t.WordCharacterClass={}));var i=function(e){function t(t){for(var n=e.call(this,0)||this,r=0,i=t.length;r<i;r++)n.set(t.charCodeAt(r),2);return n.set(32,1),n.set(9,1),n}return n(t,e),t}(r.CharacterClassifier);t.WordCharacterClassifier=i,t.getMapForWordSeparators=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e(n)),t[n]}}(function(e){return new i(e)})}),define(e[22],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(t.OverviewRulerLane||(t.OverviewRulerLane={}));!function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(t.EndOfLinePreference||(t.EndOfLinePreference={}));!function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(t.DefaultEndOfLine||(t.DefaultEndOfLine={}));!function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(t.EndOfLineSequence||(t.EndOfLineSequence={}));var n=function(){function e(e){this.tabSize=0|e.tabSize,
this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}return e.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace},e.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}},e}();t.TextModelResolvedOptions=n;var r=function(){return function(e,t){this.range=e,this.matches=t}}();t.FindMatch=r;!function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(t.TrackedRangeStickiness||(t.TrackedRangeStickiness={}));var i=function(){return function(e,t,n){this.reverseEdits=e,
this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}();t.ApplyEditsResult=i}),define(e[137],t([0,1,17,22]),function(e,t,n,r){"use strict";function i(e){return"\n"===e.getEOL()?r.EndOfLineSequence.LF:r.EndOfLineSequence.CRLF}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return e.prototype.undo=function(e){for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e.prototype.redo=function(e){for(var t=0;t<this.editOperations.length;t++)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e}(),s=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=null,this.afterCursorState=null,this.afterVersionId=-1,this.eol=t}return e.prototype.undo=function(e){var t=i(e);e.setEOL(this.eol),this.eol=t},e.prototype.redo=function(e){var t=i(e)
;e.setEOL(this.eol),this.eol=t},e}(),a=function(){function e(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[]}return e.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},e.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},e.prototype.pushEOL=function(e){this.future=[],this.currentOpenStackElement&&this.pushStackElement();var t=i(this.model),n=new s(this.model.getAlternativeVersionId(),t);this.model.setEOL(e),n.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement=n,this.pushStackElement()},e.prototype.pushEditOperation=function(t,n,r){this.future=[];var i=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof o?i=this.currentOpenStackElement:this.pushStackElement()),this.currentOpenStackElement||(i=new o(this.model.getAlternativeVersionId(),t),this.currentOpenStackElement=i);var s={
operations:this.model.applyEdits(n)};return i.editOperations.push(s),i.afterCursorState=e._computeCursorState(r,s.operations),i.afterVersionId=this.model.getVersionId(),i.afterCursorState},e._computeCursorState=function(e,t){try{return e?e(t):null}catch(e){return n.onUnexpectedError(e),null}},e.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){var e=this.past.pop();try{e.undo(this.model)}catch(e){return n.onUnexpectedError(e),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(e){return n.onUnexpectedError(e),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},e}();t.EditStack=a}),define(e[138],t([0,1]),function(e,t){"use strict";function n(e,t,n,r){var i;for(i=0;i<t&&i<r;i++){if((u=e.charCodeAt(i))!==(f=n.charCodeAt(i)))break}
for(var o=0,s=0,a=i;a<t;a++){var u=e.charCodeAt(a);32===u?o++:s++}for(var c=0,l=0,a=i;a<r;a++){var f=n.charCodeAt(a);32===f?c++:l++}if(o>0&&s>0)return 0;if(c>0&&l>0)return 0;var d=Math.abs(s-l),h=Math.abs(o-c);return 0===d?h:h%d==0?h/d:0}Object.defineProperty(t,"__esModule",{value:!0}),t.guessIndentation=function(e,t,r){for(var i=Math.min(e.getLineCount(),1e4),o=0,s=0,a="",u=0,c=[0,0,0,0,0,0,0,0,0],l=1;l<=i;l++){for(var f=e.getLineLength(l),d=e.getLineContent(l),h=f<=65536,p=!1,g=0,m=0,v=0,_=0,y=f;_<y;_++){var b=h?d.charCodeAt(_):e.getLineCharCode(l,_);if(9===b)v++;else{if(32!==b){p=!0,g=_;break}m++}}if(p){v>0?o++:m>1&&s++;var C=n(a,u,d,g);C<=8&&c[C]++,a=d,u=g}}var E=r;o!==s&&(E=o<s);var S=t,x=E?0:.1*i;return[2,4,6,8].forEach(function(e){var t=c[e];t>x&&(x=t,S=e)}),{insertSpaces:E,tabSize:S}}}),define(e[140],t([0,1]),function(e,t){"use strict";function n(e){return(1&e.metadata)>>>0}function r(e,t){e.metadata=254&e.metadata|t<<0}function i(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 u(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function c(e,t){e.metadata=207&e.metadata|t<<4}function l(e,t,n,r){return e<n||!(e>n)&&(1!==r&&(2===r||t))}function f(e,t,n,r,i){var o=function(e){return(48&e.metadata)>>>4}(e),s=0===o||2===o,a=1===o||2===o,u=n-t,c=r,f=Math.min(u,c),d=e.start,h=!1,p=e.end,g=!1,m=i?1:u>0?2:0;if(!h&&l(d,s,t,m)&&(h=!0),!g&&l(p,a,t,m)&&(g=!0),f>0&&!i){m=u>c?2:0;!h&&l(d,s,t+f,m)&&(h=!0),!g&&l(p,a,t+f,m)&&(g=!0)}m=i?1:0;!h&&l(d,s,n,m)&&(e.start=t+c,h=!0),!g&&l(p,a,n,m)&&(e.end=t+c,g=!0);var v=c-u;h||(e.start=Math.max(0,d+v),h=!0),g||(e.end=Math.max(0,p+v),g=!0),e.start>e.end&&(e.end=e.start)}function d(e,n,r,a){for(var u=e.root,c=0,l=0,f=0,d=[],h=0;u!==t.SENTINEL;)if(i(u))o(u.left,!1),o(u.right,!1),u===u.parent.right&&(c-=u.parent.delta),u=u.parent;else if(u.left===t.SENTINEL||i(u.left)){l=c+u.start,f=c+u.end,u.setCachedOffsets(l,f,a);var p=!0
;n&&u.ownerId&&u.ownerId!==n&&(p=!1),r&&s(u)&&(p=!1),p&&(d[h++]=u),o(u,!0),u.right===t.SENTINEL||i(u.right)||(c+=u.delta,u=u.right)}else u=u.left;return o(e.root,!1),d}function h(e,i){if(e.root===t.SENTINEL)return i.parent=t.SENTINEL,i.left=t.SENTINEL,i.right=t.SENTINEL,r(i,0),e.root=i,e.root;!function(e,n){var i=0,o=e.root,s=n.start,a=n.end;for(;;){if(C(s,a,o.start+i,o.end+i)<0){if(o.left===t.SENTINEL){n.start-=i,n.end-=i,n.maxEnd-=i,o.left=n;break}o=o.left}else{if(o.right===t.SENTINEL){n.start-=i+o.delta,n.end-=i+o.delta,n.maxEnd-=i+o.delta,o.right=n;break}i+=o.delta,o=o.right}}n.parent=o,n.left=t.SENTINEL,n.right=t.SENTINEL,r(n,1)}(e,i),b(i.parent);for(var o=i;o!==e.root&&1===n(o.parent);)if(o.parent===o.parent.parent.left){1===n(s=o.parent.parent.right)?(r(o.parent,0),r(s,0),r(o.parent.parent,1),o=o.parent.parent):(o===o.parent.right&&m(e,o=o.parent),r(o.parent,0),r(o.parent.parent,1),v(e,o.parent.parent))}else{var s=o.parent.parent.left;1===n(s)?(r(o.parent,0),r(s,0),r(o.parent.parent,1),
o=o.parent.parent):(o===o.parent.left&&v(e,o=o.parent),r(o.parent,0),r(o.parent.parent,1),m(e,o.parent.parent))}return r(e.root,0),i}function p(e,i){var o,s;if(i.left===t.SENTINEL?(s=i,(o=i.right).delta+=i.delta,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),o.start+=i.delta,o.end+=i.delta):i.right===t.SENTINEL?(o=i.left,s=i):((o=(s=function(e){for(;e.left!==t.SENTINEL;)e=e.left;return e}(i.right)).right).start+=s.delta,o.end+=s.delta,o.delta+=s.delta,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),s.start+=i.delta,s.end+=i.delta,s.delta=i.delta,(s.delta<-1073741824||s.delta>1073741824)&&(e.requestNormalizeDelta=!0)),s===e.root)return e.root=o,r(o,0),i.detach(),g(),y(o),void(e.root.parent=t.SENTINEL);var a=1===n(s);if(s===s.parent.left?s.parent.left=o:s.parent.right=o,s===i?o.parent=s.parent:(s.parent===i?o.parent=s:o.parent=s.parent,s.left=i.left,s.right=i.right,s.parent=i.parent,r(s,n(i)),i===e.root?e.root=s:i===i.parent.left?i.parent.left=s:i.parent.right=s,
s.left!==t.SENTINEL&&(s.left.parent=s),s.right!==t.SENTINEL&&(s.right.parent=s)),i.detach(),a)return b(o.parent),s!==i&&(b(s),b(s.parent)),void g();b(o),b(o.parent),s!==i&&(b(s),b(s.parent));for(var u;o!==e.root&&0===n(o);)o===o.parent.left?(1===n(u=o.parent.right)&&(r(u,0),r(o.parent,1),m(e,o.parent),u=o.parent.right),0===n(u.left)&&0===n(u.right)?(r(u,1),o=o.parent):(0===n(u.right)&&(r(u.left,0),r(u,1),v(e,u),u=o.parent.right),r(u,n(o.parent)),r(o.parent,0),r(u.right,0),m(e,o.parent),o=e.root)):(1===n(u=o.parent.left)&&(r(u,0),r(o.parent,1),v(e,o.parent),u=o.parent.left),0===n(u.left)&&0===n(u.right)?(r(u,1),o=o.parent):(0===n(u.left)&&(r(u.right,0),r(u,1),m(e,u),u=o.parent.left),r(u,n(o.parent)),r(o.parent,0),r(u.left,0),v(e,o.parent),o=e.root));r(o,0),g()}function g(){t.SENTINEL.parent=t.SENTINEL,t.SENTINEL.delta=0,t.SENTINEL.start=0,t.SENTINEL.end=0}function m(e,n){var r=n.right;r.delta+=n.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=n.delta,r.end+=n.delta,
n.right=r.left,r.left!==t.SENTINEL&&(r.left.parent=n),r.parent=n.parent,n.parent===t.SENTINEL?e.root=r:n===n.parent.left?n.parent.left=r:n.parent.right=r,r.left=n,n.parent=r,y(n),y(r)}function v(e,n){var r=n.left;n.delta-=r.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start-=r.delta,n.end-=r.delta,n.left=r.right,r.right!==t.SENTINEL&&(r.right.parent=n),r.parent=n.parent,n.parent===t.SENTINEL?e.root=r:n===n.parent.right?n.parent.right=r:n.parent.left=r,r.right=n,n.parent=r,y(n),y(r)}function _(e){var n=e.end;if(e.left!==t.SENTINEL){var r=e.left.maxEnd;r>n&&(n=r)}if(e.right!==t.SENTINEL){var i=e.right.maxEnd+e.delta;i>n&&(n=i)}return n}function y(e){e.maxEnd=_(e)}function b(e){for(;e!==t.SENTINEL;){var n=_(e);if(e.maxEnd===n)return;e.maxEnd=n,e=e.parent}}function C(e,t,n,r){return e===n?t-r:e-n}Object.defineProperty(t,"__esModule",{value:!0}),t.ClassName={EditorHintDecoration:"squiggly-hint",EditorInfoDecoration:"squiggly-info",EditorWarningDecoration:"squiggly-warning",
EditorErrorDecoration:"squiggly-error",EditorUnnecessaryDecoration:"squiggly-unnecessary",EditorUnnecessaryInlineDecoration:"squiggly-inline-unnecessary"};var E;!function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(E||(E={}));!function(e){e[e.Black=0]="Black",e[e.Red=1]="Red"}(t.NodeColor||(t.NodeColor={}));var S;!function(e){e[e.ColorMask=1]="ColorMask",e[e.ColorMaskInverse=254]="ColorMaskInverse",e[e.ColorOffset=0]="ColorOffset",e[e.IsVisitedMask=2]="IsVisitedMask",e[e.IsVisitedMaskInverse=253]="IsVisitedMaskInverse",e[e.IsVisitedOffset=1]="IsVisitedOffset",e[e.IsForValidationMask=4]="IsForValidationMask",e[e.IsForValidationMaskInverse=251]="IsForValidationMaskInverse",e[e.IsForValidationOffset=2]="IsForValidationOffset",e[e.IsInOverviewRulerMask=8]="IsInOverviewRulerMask",
e[e.IsInOverviewRulerMaskInverse=247]="IsInOverviewRulerMaskInverse",e[e.IsInOverviewRulerOffset=3]="IsInOverviewRulerOffset",e[e.StickinessMask=48]="StickinessMask",e[e.StickinessMaskInverse=207]="StickinessMaskInverse",e[e.StickinessOffset=4]="StickinessOffset",e[e.MIN_SAFE_DELTA=-1073741824]="MIN_SAFE_DELTA",e[e.MAX_SAFE_DELTA=1073741824]="MAX_SAFE_DELTA"}(S||(S={})),t.getNodeColor=n,t.getNodeIsInOverviewRuler=function(e){return(8&e.metadata)>>>3==1},t.setNodeStickiness=function(e,t){c(e,t)};var x=function(){function e(e,t,n){this.metadata=0,this.parent=null,this.left=null,this.right=null,r(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,a(this,!1),c(this,1),u(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,o(this,!1)}return e.prototype.reset=function(e,t,n,r){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=r},
e.prototype.setOptions=function(e){this.options=e;var n=this.options.className;a(this,n===t.ClassName.EditorErrorDecoration||n===t.ClassName.EditorWarningDecoration||n===t.ClassName.EditorInfoDecoration),c(this,this.options.stickiness),u(this,!!this.options.overviewRuler.color)},e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}();t.IntervalNode=x,t.SENTINEL=new x(null,0,0),t.SENTINEL.parent=t.SENTINEL,t.SENTINEL.left=t.SENTINEL,t.SENTINEL.right=t.SENTINEL,r(t.SENTINEL,0);var w=function(){function e(){this.root=t.SENTINEL,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,n,r,a,u){return this.root===t.SENTINEL?[]:function(e,n,r,a,u,c){for(var l=e.root,f=0,d=0,h=0,p=[],g=0;l!==t.SENTINEL;)if(i(l))o(l.left,!1),o(l.right,!1),l===l.parent.right&&(f-=l.parent.delta),l=l.parent;else{if(!i(l.left)){
if(f+l.maxEnd<n){o(l,!0);continue}if(l.left!==t.SENTINEL){l=l.left;continue}}if((d=f+l.start)>r)o(l,!0);else{if((h=f+l.end)>=n){l.setCachedOffsets(d,h,c);var m=!0;a&&l.ownerId&&l.ownerId!==a&&(m=!1),u&&s(l)&&(m=!1),m&&(p[g++]=l)}o(l,!0),l.right===t.SENTINEL||i(l.right)||(f+=l.delta,l=l.right)}}return o(e.root,!1),p}(this,e,n,r,a,u)},e.prototype.search=function(e,n,r){return this.root===t.SENTINEL?[]:d(this,e,n,r)},e.prototype.collectNodesFromOwner=function(e){return function(e,n){for(var r=e.root,s=[],a=0;r!==t.SENTINEL;)i(r)?(o(r.left,!1),o(r.right,!1),r=r.parent):r.left===t.SENTINEL||i(r.left)?(r.ownerId===n&&(s[a++]=r),o(r,!0),r.right===t.SENTINEL||i(r.right)||(r=r.right)):r=r.left;return o(e.root,!1),s}(this,e)},e.prototype.collectNodesPostOrder=function(){return function(e){for(var n=e.root,r=[],s=0;n!==t.SENTINEL;)i(n)?(o(n.left,!1),o(n.right,!1),n=n.parent):n.left===t.SENTINEL||i(n.left)?n.right===t.SENTINEL||i(n.right)?(r[s++]=n,o(n,!0)):n=n.right:n=n.left;return o(e.root,!1),r}(this)},
e.prototype.insert=function(e){h(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){p(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){for(var n=e,r=0;e!==this.root;)e===e.parent.right&&(r+=e.parent.delta),e=e.parent;var i=n.start+r,o=n.end+r;n.setCachedOffsets(i,o,t)},e.prototype.acceptReplace=function(e,n,r,s){for(var a=function(e,n,r){for(var s=e.root,a=0,u=0,c=0,l=[],f=0;s!==t.SENTINEL;)if(i(s))o(s.left,!1),o(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!i(s.left)){if(a+s.maxEnd<n){o(s,!0);continue}if(s.left!==t.SENTINEL){s=s.left;continue}}(u=a+s.start)>r?o(s,!0):((c=a+s.end)>=n&&(s.setCachedOffsets(u,c,0),l[f++]=s),o(s,!0),s.right===t.SENTINEL||i(s.right)||(a+=s.delta,s=s.right))}return o(e.root,!1),l}(this,e,e+n),u=0,c=a.length;u<c;u++){p(this,l=a[u])}this._normalizeDeltaIfNecessary(),function(e,n,r,s){for(var a=e.root,u=0,c=s-(r-n);a!==t.SENTINEL;)if(i(a))o(a.left,!1),o(a.right,!1),a===a.parent.right&&(u-=a.parent.delta),
y(a),a=a.parent;else{if(!i(a.left)){if(u+a.maxEnd<n){o(a,!0);continue}if(a.left!==t.SENTINEL){a=a.left;continue}}u+a.start>r?(a.start+=c,a.end+=c,a.delta+=c,(a.delta<-1073741824||a.delta>1073741824)&&(e.requestNormalizeDelta=!0),o(a,!0)):(o(a,!0),a.right===t.SENTINEL||i(a.right)||(u+=a.delta,a=a.right))}o(e.root,!1)}(this,e,e+n,r),this._normalizeDeltaIfNecessary();for(var u=0,c=a.length;u<c;u++){var l=a[u];l.start=l.cachedAbsoluteStart,l.end=l.cachedAbsoluteEnd,f(l,e,e+n,r,s),l.maxEnd=l.end,h(this,l)}this._normalizeDeltaIfNecessary()},e.prototype.getAllInOrder=function(){return d(this,0,!1,0)},e.prototype._normalizeDeltaIfNecessary=function(){this.requestNormalizeDelta&&(this.requestNormalizeDelta=!1,function(e){for(var n=e.root,r=0;n!==t.SENTINEL;)n.left===t.SENTINEL||i(n.left)?n.right===t.SENTINEL||i(n.right)?(n.start=r+n.start,n.end=r+n.end,n.delta=0,y(n),o(n,!0),o(n.left,!1),o(n.right,!1),n===n.parent.right&&(r-=n.parent.delta),n=n.parent):(r+=n.delta,n=n.right):n=n.left;o(e.root,!1)}(this))},e}()
;t.IntervalTree=w;var T;!function(e){e[e.MarkerDefined=0]="MarkerDefined",e[e.ForceMove=1]="ForceMove",e[e.ForceStay=2]="ForceStay"}(T||(T={})),t.nodeAcceptEdit=f,t.recomputeMaxEnd=y,t.intervalCompare=C}),define(e[141],t([0,1]),function(e,t){"use strict";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 i(e){return e===t.SENTINEL?0:e.size_left+e.piece.length+i(e.right)}function o(e){return e===t.SENTINEL?0:e.lf_left+e.piece.lineFeedCnt+o(e.right)}function s(){t.SENTINEL.parent=t.SENTINEL}function a(e,n){var r=n.right;r.size_left+=n.size_left+(n.piece?n.piece.length:0),r.lf_left+=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),n.right=r.left,r.left!==t.SENTINEL&&(r.left.parent=n),r.parent=n.parent,n.parent===t.SENTINEL?e.root=r:n.parent.left===n?n.parent.left=r:n.parent.right=r,r.left=n,n.parent=r}function u(e,n){var r=n.left;n.left=r.right,r.right!==t.SENTINEL&&(r.right.parent=n),r.parent=n.parent,
n.size_left-=r.size_left+(r.piece?r.piece.length:0),n.lf_left-=r.lf_left+(r.piece?r.piece.lineFeedCnt:0),n.parent===t.SENTINEL?e.root=r:n===n.parent.right?n.parent.right=r:n.parent.left=r,r.right=n,n.parent=r}function c(e,n,r,i){for(;n!==e.root&&n!==t.SENTINEL;)n.parent.left===n&&(n.parent.size_left+=r,n.parent.lf_left+=i),n=n.parent}function l(e,t){var n=0,r=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=i((t=t.parent).left)-t.size_left,r=o(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=r}for(;t!==e.root&&(0!==n||0!==r);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}}Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=null,this.left=null,this.right=null}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}();t.TreeNode=f;!function(e){e[e.Black=0]="Black",e[e.Red=1]="Red"}(t.NodeColor||(t.NodeColor={})),t.SENTINEL=new f(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=i,t.calculateLF=o,t.resetSentinel=s,t.leftRotate=a,t.rightRotate=u,t.rbDelete=function(e,r){var f,d;if(f=r.left===t.SENTINEL?(d=r).right:r.right===t.SENTINEL?(d=r).left:(d=n(r.right)).right,d===e.root)return e.root=f,f.color=0,r.detach(),s(),void(e.root.parent=t.SENTINEL);var h=1===d.color;if(d===d.parent.left?d.parent.left=f:d.parent.right=f,d===r?(f.parent=d.parent,l(e,f)):(d.parent===r?f.parent=d:f.parent=d.parent,l(e,f),
d.left=r.left,d.right=r.right,d.parent=r.parent,d.color=r.color,r===e.root?e.root=d:r===r.parent.left?r.parent.left=d:r.parent.right=d,d.left!==t.SENTINEL&&(d.left.parent=d),d.right!==t.SENTINEL&&(d.right.parent=d),d.size_left=r.size_left,d.lf_left=r.lf_left,l(e,d)),r.detach(),f.parent.left===f){var p=i(f),g=o(f);if(p!==f.parent.size_left||g!==f.parent.lf_left){var m=p-f.parent.size_left,v=g-f.parent.lf_left;f.parent.size_left=p,f.parent.lf_left=g,c(e,f.parent,m,v)}}if(l(e,f.parent),h)s();else{for(var _;f!==e.root&&0===f.color;)f===f.parent.left?(1===(_=f.parent.right).color&&(_.color=0,f.parent.color=1,a(e,f.parent),_=f.parent.right),0===_.left.color&&0===_.right.color?(_.color=1,f=f.parent):(0===_.right.color&&(_.left.color=0,_.color=1,u(e,_),_=f.parent.right),_.color=f.parent.color,f.parent.color=0,_.right.color=0,a(e,f.parent),f=e.root)):(1===(_=f.parent.left).color&&(_.color=0,f.parent.color=1,u(e,f.parent),_=f.parent.left),0===_.left.color&&0===_.right.color?(_.color=1,
f=f.parent):(0===_.left.color&&(_.right.color=0,_.color=1,a(e,_),_=f.parent.left),_.color=f.parent.color,f.parent.color=0,_.left.color=0,u(e,f.parent),f=e.root));f.color=0,s()}},t.fixInsert=function(e,t){for(l(e,t);t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left)1===(n=t.parent.parent.right).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&a(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,u(e,t.parent.parent));else{var n=t.parent.parent.left;1===n.color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&u(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,a(e,t.parent.parent))}e.root.color=0},t.updateTreeMetadata=c,t.recomputeTreeMetadata=l}),define(e[142],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Flush=1]="Flush",e[e.LineChanged=2]="LineChanged",e[e.LinesDeleted=3]="LinesDeleted",e[e.LinesInserted=4]="LinesInserted",
e[e.EOLChanged=5]="EOLChanged"}(t.RawContentChangedType||(t.RawContentChangedType={}));var n=function(){return function(){this.changeType=1}}();t.ModelRawFlush=n;var r=function(){return function(e,t){this.changeType=2,this.lineNumber=e,this.detail=t}}();t.ModelRawLineChanged=r;var i=function(){return function(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t}}();t.ModelRawLinesDeleted=i;var o=function(){return function(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n}}();t.ModelRawLinesInserted=o;var s=function(){return function(){this.changeType=5}}();t.ModelRawEOLChanged=s;var a=function(){function e(e,t,n,r){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=r}return e.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t<n;t++){if(this.changes[t].changeType===e)return!0}return!1},e.merge=function(t,n){return new e([].concat(t.changes).concat(n.changes),n.versionId,t.isUndoing||n.isUndoing,t.isRedoing||n.isRedoing)},e}()
;t.ModelRawContentChangedEvent=a;var u=function(){function e(e,t){this.rawContentChangedEvent=e,this.contentChangedEvent=t}return e.prototype.merge=function(t){return new e(a.merge(this.rawContentChangedEvent,t.rawContentChangedEvent),e._mergeChangeEvents(this.contentChangedEvent,t.contentChangedEvent))},e._mergeChangeEvents=function(e,t){return{changes:[].concat(e.changes).concat(t.changes),eol:t.eol,versionId:t.versionId,isUndoing:e.isUndoing||t.isUndoing,isRedoing:e.isRedoing||t.isRedoing,isFlush:e.isFlush||t.isFlush}},e}();t.InternalModelContentChangeEvent=u}),define(e[61],t([0,1,7,25,24,22,132]),function(e,t,n,r,i,o,s){"use strict";function a(e,t,n){if(!n)return new o.FindMatch(e,null);for(var r=[],i=0,s=t.length;i<s;i++)r[i]=t[i];return new o.FindMatch(e,r)}function u(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;var o=t.charCodeAt(r-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){var s=t.charCodeAt(r);if(0!==e.get(s))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){
if(r+i===n)return!0;var o=t.charCodeAt(r+i);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){var s=t.charCodeAt(r+i-1);if(0!==e.get(s))return!0}return!1}(e,t,n,r,i)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t,n,r){this.searchString=e,this.isRegex=t,this.matchCase=n,this.wordSeparators=r}return e._isMultilineRegexSource=function(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t<n;t++){if(92===e.charCodeAt(t)){if(++t>=n)break;var r=e.charCodeAt(t);if(110===r||114===r)return!0}}return!1},e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var t;t=this.isRegex?e._isMultilineRegexSource(this.searchString):this.searchString.indexOf("\n")>=0;var r=null;try{r=n.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:t,global:!0})}catch(e){return null}if(!r)return null;var i=!this.isRegex&&!t;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),
new l(r,this.wordSeparators?s.getMapForWordSeparators(this.wordSeparators):null,i?this.searchString:null)},e}();t.SearchParams=c;var l=function(){return function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n}}();t.SearchData=l,t.createFindMatch=a;var f=function(){function e(e){for(var t=[],n=0,r=0,i=e.length;r<i;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}return e.prototype.findLineFeedCountBeforeOffset=function(e){var t=this._lineFeedsOffsets,n=0,r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;n<r;){var i=n+((r-n)/2>>0);t[i]>=e?r=i-1:t[i+1]>=e?(n=i,r=i):n=i+1}return n+1},e}(),d=function(){function e(){}return e.findMatches=function(e,t,n,r,i){var o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,n,new h(o.wordSeparators,o.regex),r,i):this._doFindMatchesLineByLine(e,n,o,r,i):[]},e._getMultilineMatchRange=function(e,t,n,r,o,s){var a,u=0;a="\r\n"===e.getEOL()?t+o+(u=r.findLineFeedCountBeforeOffset(o)):t+o;var c;if("\r\n"===e.getEOL()){
var l=r.findLineFeedCountBeforeOffset(o+s.length)-u;c=a+s.length+l}else c=a+s.length;var f=e.getPositionAt(a),d=e.getPositionAt(c);return new i.Range(f.lineNumber,f.column,d.lineNumber,d.column)},e._doFindMatchesMultiline=function(e,t,n,r,i){var s,u=e.getOffsetAt(t.getStartPosition()),c=e.getValueInRange(t,o.EndOfLinePreference.LF),l="\r\n"===e.getEOL()?new f(c):null,d=[],h=0;for(n.reset(0);s=n.next(c);)if(d[h++]=a(this._getMultilineMatchRange(e,u,c,l,s.index,s[0]),s,r),h>=i)return d;return d},e._doFindMatchesLineByLine=function(e,t,n,r,i){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(n,a,t.startLineNumber,t.startColumn-1,s,o,r,i),o}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,s,o,r,i);for(var c=t.startLineNumber+1;c<t.endLineNumber&&s<i;c++)s=this._findMatchesInLine(n,e.getLineContent(c),c,0,s,o,r,i)
;if(s<i){var l=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);s=this._findMatchesInLine(n,l,t.endLineNumber,0,s,o,r,i)}return o},e._findMatchesInLine=function(e,t,n,r,s,c,l,f){var d=e.wordSeparators;if(!l&&e.simpleSearch){for(var p=e.simpleSearch,g=p.length,m=t.length,v=-g;-1!==(v=t.indexOf(p,v+g));)if((!d||u(d,t,m,v,g))&&(c[s++]=new o.FindMatch(new i.Range(n,v+1+r,n,v+1+g+r),null),s>=f))return s;return s}var _,y=new h(e.wordSeparators,e.regex);y.reset(0);do{if((_=y.next(t))&&(c[s++]=a(new i.Range(n,_.index+1+r,n,_.index+1+_[0].length+r),_,l),s>=f))return s}while(_);return s},e.findNextMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var o=new h(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(e,n,o,r):this._doFindNextMatchLineByLine(e,n,o,r)},e._doFindNextMatchMultiline=function(e,t,n,s){
var u=new r.Position(t.lineNumber,1),c=e.getOffsetAt(u),l=e.getLineCount(),d=e.getValueInRange(new i.Range(u.lineNumber,u.column,l,e.getLineMaxColumn(l)),o.EndOfLinePreference.LF),h="\r\n"===e.getEOL()?new f(d):null;n.reset(t.column-1);var p=n.next(d);return p?a(this._getMultilineMatchRange(e,c,d,h,p.index,p[0]),p,s):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new r.Position(1,1),n,s):null},e._doFindNextMatchLineByLine=function(e,t,n,r){var i=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(n,s,o,t.column,r);if(a)return a;for(var u=1;u<=i;u++){var c=(o+u-1)%i,l=e.getLineContent(c+1),f=this._findFirstMatchInLine(n,l,c+1,1,r);if(f)return f}return null},e._findFirstMatchInLine=function(e,t,n,r,o){e.reset(r-1);var s=e.next(t);return s?a(new i.Range(n,s.index+1,n,s.index+1+s[0].length),s,o):null},e.findPreviousMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var o=new h(i.wordSeparators,i.regex)
;return i.regex.multiline?this._doFindPreviousMatchMultiline(e,n,o,r):this._doFindPreviousMatchLineByLine(e,n,o,r)},e._doFindPreviousMatchMultiline=function(e,t,n,o){var s=this._doFindMatchesMultiline(e,new i.Range(1,1,t.lineNumber,t.column),n,o,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)),n,o):null},e._doFindPreviousMatchLineByLine=function(e,t,n,r){var i=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,o,r);if(a)return a;for(var u=1;u<=i;u++){var c=(i+o-u-1)%i,l=e.getLineContent(c+1),f=this._findLastMatchInLine(n,l,c+1,r);if(f)return f}return null},e._findLastMatchInLine=function(e,t,n,r){var o,s=null;for(e.reset(0);o=e.next(t);)s=a(new i.Range(n,o.index+1,n,o.index+1+o[0].length),o,r);return s},e}();t.TextModelSearch=d,t.isValidMatch=u;var h=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,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(!(t=this._searchRegex.exec(e)))return null;var r=t.index,i=t[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength)return null;if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||u(this._wordSeparators,e,n,r,i))return t}while(t);return null},e}();t.Searcher=h}),define(e[59],t([0,1,25,24,141,61,22]),function(e,t,n,r,i,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}function u(e,t){void 0===t&&(t=!0);for(var n=[0],r=1,i=0,o=e.length;i<o;i++){var s=e.charCodeAt(i);13===s?i+1<o&&10===e.charCodeAt(i+1)?(n[r++]=i+2,i++):n[r++]=i+1:10===s&&(n[r++]=i+1)}return t?a(n):n}
Object.defineProperty(t,"__esModule",{value:!0}),t.AverageBufferSize=65535,t.createUintArray=a;var c=function(){return function(e,t,n,r,i){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=r,this.isBasicASCII=i}}();t.LineStarts=c,t.createLineStartsFast=u,t.createLineStarts=function(e,t){e.length=0,e[0]=0;for(var n=1,r=0,i=0,o=0,s=!0,u=0,l=t.length;u<l;u++){var f=t.charCodeAt(u);13===f?u+1<l&&10===t.charCodeAt(u+1)?(o++,e[n++]=u+2,u++):(r++,e[n++]=u+1):10===f?(i++,e[n++]=u+1):s&&9!==f&&(f<32||f>126)&&(s=!1)}var d=new c(a(e),r,i,o,s);return e.length=0,d};var l=function(){return function(e,t,n,r,i){this.bufferIndex=e,this.start=t,this.end=n,this.lineFeedCnt=r,this.length=i}}();t.Piece=l;var f=function(){return function(e,t){this.buffer=e,this.lineStarts=t}}();t.StringBuffer=f;var d=function(){function e(e,t){var n=this;this._pieces=[],this._tree=e,this._BOM=t,this._index=0,e.root!==i.SENTINEL&&e.iterate(e.root,function(e){return e!==i.SENTINEL&&n._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}(),h=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 n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber<e&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=e)return n}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,n=0;n<this._cache.length;n++){var r=this._cache[n];(null===r.node.parent||r.nodeStartOffset>=e)&&(this._cache[n]=null,t=!0)}if(t){
for(var i=[],n=0;n<this._cache.length;n++)null!==this._cache[n]&&i.push(this._cache[n]);this._cache=i}},e}(),p=function(){function e(e,t,n){this.create(e,t,n)}return e.prototype.create=function(e,t,n){this._buffers=[new f("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=i.SENTINEL,this._lineCnt=1,this._length=0,this._EOL=t,this._EOLLength=t.length,this._EOLNormalized=n;for(var r=null,o=0,s=e.length;o<s;o++)if(e[o].buffer.length>0){e[o].lineStarts||(e[o].lineStarts=u(e[o].buffer));var a=new l(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),r=this.rbInsertRight(r,a)}this._searchCache=new h(1),this._lastVisitedLine={lineNumber:0,value:null},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var n=this,r=t.AverageBufferSize,i=r-Math.floor(r/3),o=2*i,s="",a=0,c=[];if(this.iterate(this.root,function(t){var r=n.getNodeContent(t),l=r.length
;if(a<=i||a+l<o)return s+=r,a+=l,!0;var d=s.replace(/\r\n|\r|\n/g,e);return c.push(new f(d,u(d))),s=r,a=l,!0}),a>0){var l=s.replace(/\r\n|\r|\n/g,e);c.push(new f(l,u(l)))}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 d(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(n){if(n===i.SENTINEL)return!0;var r=t.getNodeContent(n),o=r.length,s=e.nodeAt(0),a=e.nodeAt(0+o);return r===e.getValueInRange2(s,a)})},e.prototype.getOffsetAt=function(e,t){for(var n=0,r=this.root;r!==i.SENTINEL;)if(r.left!==i.SENTINEL&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e){n+=r.size_left;return n+=this.getAccumulatedValue(r,e-r.lf_left-2)+t-1}e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}
return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,r=0,o=e;t!==i.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(r+=t.lf_left+s.index,0===s.index){u=o-(a=this.getOffsetAt(r+1,1));return new n.Position(r+1,u+1)}return new n.Position(r+1,s.remainder+1)}if(e-=t.size_left+t.piece.length,r+=t.lf_left+t.piece.lineFeedCnt,t.right===i.SENTINEL){var a=this.getOffsetAt(r+1,1),u=o-e-a;return new n.Position(r+1,u+1)}t=t.right}return new n.Position(1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),r=this.nodeAt2(e.endLineNumber,e.endColumn),i=this.getValueInRange2(n,r);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?i:i.replace(/\r\n|\r|\n/g,t):i},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){
var n=e.node,r=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(o+e.remainder,o+t.remainder)}var s=e.node,a=this._buffers[s.piece.bufferIndex].buffer,u=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start),c=a.substring(u+e.remainder,u+s.piece.length);for(s=s.next();s!==i.SENTINEL;){var l=this._buffers[s.piece.bufferIndex].buffer,f=this.offsetInBuffer(s.piece.bufferIndex,s.piece.start);if(s===t.node){c+=l.substring(f,f+t.remainder);break}c+=l.substr(f,s.piece.length),s=s.next()}return c},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 n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var r=n.node.next();if(!r)return 0;var i=this._buffers[r.piece.bufferIndex],o=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return i.buffer.charCodeAt(o)}var i=this._buffers[n.node.piece.bufferIndex],s=(o=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start))+n.remainder;return i.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,n,i,s,a,u,c,l,f,d){
var h,p=this._buffers[e.piece.bufferIndex],g=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),m=this.offsetInBuffer(e.piece.bufferIndex,s),v=this.offsetInBuffer(e.piece.bufferIndex,a);t.reset(m);var _={line:0,column:0};do{if(h=t.next(p.buffer)){if(h.index>=v)return f;this.positionInBuffer(e,h.index-g,_);var y=this.getLineFeedCnt(e.piece.bufferIndex,s,_),b=_.line===s.line?_.column-s.column+i:_.column+1,C=b+h[0].length;if(d[f++]=o.createFindMatch(new r.Range(n+y,b,n+y,C),h,c),h.index+h[0].length>=v)return f;if(f>=l)return f}}while(h);return f},e.prototype.findMatchesLineByLine=function(e,t,n,r){var i=[],s=0,a=new o.Searcher(t.wordSeparators,t.regex),u=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===u)return[];var c=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===c)return[];var l=this.positionInBuffer(u.node,u.remainder),f=this.positionInBuffer(c.node,c.remainder);if(u.node===c.node)return this.findMatchesInNode(u.node,a,e.startLineNumber,e.startColumn,l,f,t,n,r,s,i),i
;for(var d=e.startLineNumber,h=u.node;h!==c.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,l,h.piece.end);if(p>=1){var g=this._buffers[h.piece.bufferIndex].lineStarts,m=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),v=g[l.line+p],_=d===e.startLineNumber?e.startColumn:1;if((s=this.findMatchesInNode(h,a,d,_,l,this.positionInBuffer(h,v-m),t,n,r,s,i))>=r)return i;d+=p}var y=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){C=this.getLineContent(d).substring(y,e.endColumn-1);return s=this._findMatchesInLine(t,a,C,e.endLineNumber,y,s,i,n,r),i}if((s=this._findMatchesInLine(t,a,this.getLineContent(d).substr(y),d,y,s,i,n,r))>=r)return i;d++,h=(u=this.nodeAt2(d,1)).node,l=this.positionInBuffer(u.node,u.remainder)}if(d===e.endLineNumber){var b=d===e.startLineNumber?e.startColumn-1:0,C=this.getLineContent(d).substring(b,e.endColumn-1);return s=this._findMatchesInLine(t,a,C,e.endLineNumber,b,s,i,n,r),i}var E=d===e.startLineNumber?e.startColumn:1
;return s=this.findMatchesInNode(c.node,a,d,E,l,f,t,n,r,s,i),i},e.prototype._findMatchesInLine=function(e,t,n,i,a,u,c,l,f){var d=e.wordSeparators;if(!l&&e.simpleSearch){for(var h=e.simpleSearch,p=h.length,g=n.length,m=-p;-1!==(m=n.indexOf(h,m+p));)if((!d||o.isValidMatch(d,n,g,m,p))&&(c[u++]=new s.FindMatch(new r.Range(i,m+1+a,i,m+1+p+a),null),u>=f))return u;return u}var v;t.reset(0);do{if((v=t.next(n))&&(c[u++]=o.createFindMatch(new r.Range(i,v.index+1+a,i,v.index+1+v[0].length+a),v,l),u>=f))return u}while(v);return u},e.prototype.insert=function(e,n,r){if(void 0===r&&(r=!1),this._EOLNormalized=this._EOLNormalized&&r,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value=null,this.root!==i.SENTINEL){var o=this.nodeAt(e),s=o.node,a=o.remainder,u=o.nodeStartOffset,c=s.piece,f=c.bufferIndex,d=this.positionInBuffer(s,a)
;if(0===s.piece.bufferIndex&&c.end.line===this._lastChangeBufferPos.line&&c.end.column===this._lastChangeBufferPos.column&&u+c.length===e&&n.length<t.AverageBufferSize)return this.appendToNode(s,n),void this.computeBufferMetadata();if(u===e)this.insertContentToNodeLeft(n,s),this._searchCache.valdiate(e);else if(u+s.piece.length>e){var h=[],p=new l(c.bufferIndex,d,c.end,this.getLineFeedCnt(c.bufferIndex,d,c.end),this.offsetInBuffer(f,c.end)-this.offsetInBuffer(f,d));if(this.shouldCheckCRLF()&&this.endWithCR(n)){if(10===this.nodeCharCodeAt(s,a)){var g={line:p.start.line+1,column:0};p=new l(p.bufferIndex,g,p.end,this.getLineFeedCnt(p.bufferIndex,g,p.end),p.length-1),n+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(n)){if(13===this.nodeCharCodeAt(s,a-1)){var m=this.positionInBuffer(s,a-1);this.deleteNodeTail(s,m),n="\r"+n,0===s.piece.length&&h.push(s)}else this.deleteNodeTail(s,d)}else this.deleteNodeTail(s,d);var v=this.createNewPieces(n);p.length>0&&this.rbInsertRight(s,p)
;for(var _=s,y=0;y<v.length;y++)_=this.rbInsertRight(_,v[y]);this.deleteNodes(h)}else this.insertContentToNodeRight(n,s)}else for(var b=this.createNewPieces(n),s=this.rbInsertLeft(null,b[0]),y=1;y<b.length;y++)s=this.rbInsertRight(s,b[y]);this.computeBufferMetadata()},e.prototype.delete=function(e,t){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value=null,!(t<=0||this.root===i.SENTINEL)){var n=this.nodeAt(e),r=this.nodeAt(e+t),o=n.node,s=r.node;if(o===s){var a=this.positionInBuffer(o,n.remainder),u=this.positionInBuffer(o,r.remainder);if(n.nodeStartOffset===e){if(t===o.piece.length){var c=o.next();return i.rbDelete(this,o),this.validateCRLFWithPrevNode(c),void this.computeBufferMetadata()}return this.deleteNodeHead(o,u),this._searchCache.valdiate(e),this.validateCRLFWithPrevNode(o),void this.computeBufferMetadata()}return n.nodeStartOffset+o.piece.length===e+t?(this.deleteNodeTail(o,a),this.validateCRLFWithNextNode(o),void this.computeBufferMetadata()):(this.shrinkNode(o,a,u),
void this.computeBufferMetadata())}var l=[],f=this.positionInBuffer(o,n.remainder);this.deleteNodeTail(o,f),this._searchCache.valdiate(e),0===o.piece.length&&l.push(o);var d=this.positionInBuffer(s,r.remainder);this.deleteNodeHead(s,d),0===s.piece.length&&l.push(s);for(var h=o.next();h!==i.SENTINEL&&h!==s;h=h.next())l.push(h);var p=0===o.piece.length?o.prev():o;this.deleteNodes(l),this.validateCRLFWithNextNode(p),this.computeBufferMetadata()}},e.prototype.insertContentToNodeLeft=function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var r=t.piece,o={line:r.start.line+1,column:0},s=new l(r.bufferIndex,o,r.end,this.getLineFeedCnt(r.bufferIndex,o,r.end),r.length-1);t.piece=s,e+="\n",i.updateTreeMetadata(this,t,-1,-1),0===t.piece.length&&n.push(t)}for(var a=this.createNewPieces(e),u=this.rbInsertLeft(t,a[a.length-1]),c=a.length-2;c>=0;c--)u=this.rbInsertLeft(u,a[c]);this.validateCRLFWithPrevNode(u),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){
this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),r=this.rbInsertRight(t,n[0]),i=r,o=1;o<n.length;o++)i=this.rbInsertRight(i,n[o]);this.validateCRLFWithPrevNode(r)},e.prototype.positionInBuffer=function(e,t,n){for(var r,i,o,s=e.piece,a=e.piece.bufferIndex,u=this._buffers[a].lineStarts,c=u[s.start.line]+s.start.column+t,l=s.start.line,f=s.end.line;l<=f&&(r=l+(f-l)/2|0,o=u[r],r!==f);)if(i=u[r+1],c<o)f=r-1;else{if(!(c>=i))break;l=r+1}return n?(n.line=r,n.column=c-o,null):{line:r,column:c-o}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;var i=r[n.line+1],o=r[n.line]+n.column;if(i>o+1)return n.line-t.line;var s=o-1;return 13===this._buffers[e].buffer.charCodeAt(s)?n.line-t.line+1:n.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;t<e.length;t++)i.rbDelete(this,e[t])
},e.prototype.createNewPieces=function(e){if(e.length>t.AverageBufferSize){for(var n=[];e.length>t.AverageBufferSize;){var r=e.charCodeAt(t.AverageBufferSize-1),i=void 0;13===r||r>=55296&&r<=56319?(i=e.substring(0,t.AverageBufferSize-1),e=e.substring(t.AverageBufferSize-1)):(i=e.substring(0,t.AverageBufferSize),e=e.substring(t.AverageBufferSize));var o=u(i);n.push(new l(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new f(i,o))}var s=u(e);return n.push(new l(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 f(e,s)),n}var a=this._buffers[0].buffer.length,c=u(e,!1),d=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},
d=this._lastChangeBufferPos;for(h=0;h<c.length;h++)c[h]+=a+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(c.slice(1)),this._buffers[0].buffer+="_"+e,a+=1}else{if(0!==a)for(var h=0;h<c.length;h++)c[h]+=a;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(c.slice(1)),this._buffers[0].buffer+=e}var p=this._buffers[0].buffer.length,g=this._buffers[0].lineStarts.length-1,m={line:g,column:p-this._buffers[0].lineStarts[g]},v=new l(0,d,m,this.getLineFeedCnt(0,d,m),p-a);return this._lastChangeBufferPos=m,[v]},e.prototype.getLinesRawContent=function(){return this.getContentOfSubTree(this.root)},e.prototype.getLineRawContent=function(e,t){void 0===t&&(t=0);var n=this.root,r="",o=this._searchCache.get2(e);if(o){n=o.node;var s=this.getAccumulatedValue(n,e-o.nodeStartLineNumber-1),a=this._buffers[n.piece.bufferIndex].buffer,u=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(o.nodeStartLineNumber+n.piece.lineFeedCnt!==e){f=this.getAccumulatedValue(n,e-o.nodeStartLineNumber)
;return a.substring(u+s,u+f-t)}r=a.substring(u+s,u+n.piece.length)}else for(var c=0,l=e;n!==i.SENTINEL;)if(n.left!==i.SENTINEL&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var s=this.getAccumulatedValue(n,e-n.lf_left-2),f=this.getAccumulatedValue(n,e-n.lf_left-1),a=this._buffers[n.piece.bufferIndex].buffer,u=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return c+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:c,nodeStartLineNumber:l-(e-1-n.lf_left)}),a.substring(u+s,u+f-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){var s=this.getAccumulatedValue(n,e-n.lf_left-2),a=this._buffers[n.piece.bufferIndex].buffer,u=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=a.substring(u+s,u+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,c+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==i.SENTINEL;){a=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){var f=this.getAccumulatedValue(n,0),u=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start)
;return r+=a.substring(u,u+f-t)}u=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=a.substr(u,n.piece.length),n=n.next()}return r},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==i.SENTINEL;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var n=e.piece,r=this.positionInBuffer(e,t),i=r.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var o=this.getLineFeedCnt(e.piece.bufferIndex,n.start,r);if(o!==i)return{index:o,remainder:0}}return{index:i,remainder:r.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,r=this._buffers[n.bufferIndex].lineStarts,i=n.start.line+t+1;return i>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[i]-r[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){
var n=e.piece,r=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),s=t,a=this.offsetInBuffer(n.bufferIndex,s),u=this.getLineFeedCnt(n.bufferIndex,n.start,s),c=u-r,f=a-o,d=n.length+f;e.piece=new l(n.bufferIndex,n.start,s,u,d),i.updateTreeMetadata(this,e,f,c)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,r=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),s=t,a=this.getLineFeedCnt(n.bufferIndex,s,n.end),u=a-r,c=o-this.offsetInBuffer(n.bufferIndex,s),f=n.length+c;e.piece=new l(n.bufferIndex,s,n.end,a,f),i.updateTreeMetadata(this,e,c,u)},e.prototype.shrinkNode=function(e,t,n){var r=e.piece,o=r.start,s=r.end,a=r.length,u=r.lineFeedCnt,c=t,f=this.getLineFeedCnt(r.bufferIndex,r.start,c),d=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,o);e.piece=new l(r.bufferIndex,r.start,c,f,d),i.updateTreeMetadata(this,e,d-a,f-u)
;var h=new l(r.bufferIndex,n,s,this.getLineFeedCnt(r.bufferIndex,n,s),this.offsetInBuffer(r.bufferIndex,s)-this.offsetInBuffer(r.bufferIndex,n)),p=this.rbInsertRight(e,h);this.validateCRLFWithPrevNode(p)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var o=u(t,!1),s=0;s<o.length;s++)o[s]+=r;if(n){var a=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:r-a}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(o.slice(1));var c=this._buffers[0].lineStarts.length-1,f={line:c,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[c]},d=e.piece.length+t.length,h=e.piece.lineFeedCnt,p=this.getLineFeedCnt(0,e.piece.start,f),g=p-h;e.piece=new l(e.piece.bufferIndex,e.piece.start,f,p,d),
this._lastChangeBufferPos=f,i.updateTreeMetadata(this,e,t.length,g)},e.prototype.nodeAt=function(e){var t=this.root,n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};for(var r=0;t!==i.SENTINEL;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;var o={node:t,remainder:e-t.size_left,nodeStartOffset:r};return this._searchCache.set(o),o}e-=t.size_left+t.piece.length,r+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){for(var n=this.root,r=0;n!==i.SENTINEL;)if(n.left!==i.SENTINEL&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(n,e-n.lf_left-2),s=this.getAccumulatedValue(n,e-n.lf_left-1);return r+=n.size_left,{node:n,remainder:Math.min(o+t-1,s),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((o=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:r}
;t-=n.piece.length-o;break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==i.SENTINEL;){if(n.piece.lineFeedCnt>0){var s=this.getAccumulatedValue(n,0),a=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,s),nodeStartOffset:a}}if(n.piece.length>=t-1){return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}t-=n.piece.length,n=n.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)},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===i.SENTINEL||0===e.piece.lineFeedCnt)return!1
;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,r=t.start.line,o=n[r]+t.start.column;if(r===n.length-1)return!1;return!(n[r+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==i.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 n,r=[],o=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:o[e.piece.end.line]-o[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 l(e.piece.bufferIndex,e.piece.start,n,a,s),i.updateTreeMetadata(this,e,-1,-1),0===e.piece.length&&r.push(e);var u={line:t.piece.start.line+1,column:0},c=t.piece.length-1,f=this.getLineFeedCnt(t.piece.bufferIndex,u,t.piece.end);t.piece=new l(t.piece.bufferIndex,u,t.piece.end,f,c),i.updateTreeMetadata(this,t,-1,-1),0===t.piece.length&&r.push(t);var d=this.createNewPieces("\r\n");this.rbInsertRight(e,d[0]);for(var h=0;h<r.length;h++)i.rbDelete(this,r[h])},e.prototype.adjustCarriageReturnFromNext=function(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var n=t.next();if(this.startWithLF(n)){if(e+="\n",1===n.piece.length)i.rbDelete(this,n);else{var r=n.piece,o={line:r.start.line+1,column:0},s=r.length-1,a=this.getLineFeedCnt(r.bufferIndex,o,r.end);n.piece=new l(r.bufferIndex,o,r.end,a,s),i.updateTreeMetadata(this,n,-1,-1)}return!0}}return!1},e.prototype.iterate=function(e,t){if(e===i.SENTINEL)return t(i.SENTINEL);var n=this.iterate(e.left,t);return n?t(e)&&this.iterate(e.right,t):n},
e.prototype.getNodeContent=function(e){if(e===i.SENTINEL)return"";var t=this._buffers[e.piece.bufferIndex],n=e.piece,r=this.offsetInBuffer(n.bufferIndex,n.start),o=this.offsetInBuffer(n.bufferIndex,n.end);return t.buffer.substring(r,o)},e.prototype.getPieceContent=function(e){var t=this._buffers[e.bufferIndex],n=this.offsetInBuffer(e.bufferIndex,e.start),r=this.offsetInBuffer(e.bufferIndex,e.end);return t.buffer.substring(n,r)},e.prototype.rbInsertRight=function(e,t){var n=new i.TreeNode(t,1);n.left=i.SENTINEL,n.right=i.SENTINEL,n.parent=i.SENTINEL,n.size_left=0,n.lf_left=0;if(this.root===i.SENTINEL)this.root=n,n.color=0;else if(e.right===i.SENTINEL)e.right=n,n.parent=e;else{var r=i.leftest(e.right);r.left=n,n.parent=r}return i.fixInsert(this,n),n},e.prototype.rbInsertLeft=function(e,t){var n=new i.TreeNode(t,1);n.left=i.SENTINEL,n.right=i.SENTINEL,n.parent=i.SENTINEL,n.size_left=0,n.lf_left=0;if(this.root===i.SENTINEL)this.root=n,n.color=0;else if(e.left===i.SENTINEL)e.left=n,n.parent=e;else{
var r=i.righttest(e.left);r.right=n,n.parent=r}return i.fixInsert(this,n),n},e.prototype.getContentOfSubTree=function(e){var t=this,n="";return this.iterate(e,function(e){return n+=t.getNodeContent(e),!0}),n},e}();t.PieceTreeBase=p}),define(e[149],t([0,1,24,7,59,22]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t,n,r,o,s){this._BOM=t,this._mightContainNonBasicASCII=!o,this._mightContainRTL=r,this._pieceTree=new i.PieceTreeBase(e,n,s)}return e.prototype.equals=function(t){return t instanceof e&&(this._BOM===t._BOM&&(this.getEOL()===t.getEOL()&&this._pieceTree.equal(t._pieceTree)))},e.prototype.mightContainRTL=function(){return this._mightContainRTL},e.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII},e.prototype.getBOM=function(){return this._BOM},e.prototype.getEOL=function(){return this._pieceTree.getEOL()},e.prototype.createSnapshot=function(e){return this._pieceTree.createSnapshot(e?this._BOM:"")},
e.prototype.getOffsetAt=function(e,t){return this._pieceTree.getOffsetAt(e,t)},e.prototype.getPositionAt=function(e){return this._pieceTree.getPositionAt(e)},e.prototype.getRangeAt=function(e,t){var r=e+t,i=this.getPositionAt(e),o=this.getPositionAt(r);return new n.Range(i.lineNumber,i.column,o.lineNumber,o.column)},e.prototype.getValueInRange=function(e,t){if(void 0===t&&(t=o.EndOfLinePreference.TextDefined),e.isEmpty())return"";var n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)},e.prototype.getValueLengthInRange=function(e,t){if(void 0===t&&(t=o.EndOfLinePreference.TextDefined),e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;var n=this.getOffsetAt(e.startLineNumber,e.startColumn);return this.getOffsetAt(e.endLineNumber,e.endColumn)-n},e.prototype.getLength=function(){return this._pieceTree.getLength()},e.prototype.getLineCount=function(){return this._pieceTree.getLineCount()},e.prototype.getLinesContent=function(){
return this._pieceTree.getLinesContent()},e.prototype.getLineContent=function(e){return this._pieceTree.getLineContent(e)},e.prototype.getLineCharCode=function(e,t){return this._pieceTree.getLineCharCode(e,t)},e.prototype.getLineLength=function(e){return this._pieceTree.getLineLength(e)},e.prototype.getLineMinColumn=function(e){return 1},e.prototype.getLineMaxColumn=function(e){return this.getLineLength(e)+1},e.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=r.firstNonWhitespaceIndex(this.getLineContent(e));return-1===t?0:t+1},e.prototype.getLineLastNonWhitespaceColumn=function(e){var t=r.lastNonWhitespaceIndex(this.getLineContent(e));return-1===t?0:t+2},e.prototype._getEndOfLine=function(e){switch(e){case o.EndOfLinePreference.LF:return"\n";case o.EndOfLinePreference.CRLF:return"\r\n";case o.EndOfLinePreference.TextDefined:return this.getEOL()}throw new Error("Unknown EOL preference")},e.prototype.setEOL=function(e){this._pieceTree.setEOL(e)},e.prototype.applyEdits=function(t,n){
for(var i=this._mightContainRTL,s=this._mightContainNonBasicASCII,a=!0,u=[],c=0;c<t.length;c++){v=t[c];a&&v._isTracked&&(a=!1);var l=v.range;!i&&v.text&&(i=r.containsRTL(v.text)),!s&&v.text&&(s=!r.isBasicASCII(v.text)),u[c]={sortIndex:c,identifier:v.identifier,range:l,rangeOffset:this.getOffsetAt(l.startLineNumber,l.startColumn),rangeLength:this.getValueLengthInRange(l),lines:v.text?v.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:v.forceMoveMarkers,isAutoWhitespaceEdit:v.isAutoWhitespaceEdit||!1}}u.sort(e._sortOpsAscending);for(var f=!1,c=0,d=u.length-1;c<d;c++){var h=u[c].range.getEndPosition(),p=u[c+1].range.getStartPosition();if(p.isBeforeOrEqual(h)){if(p.isBefore(h))throw new Error("Overlapping ranges are not allowed!");f=!0}}a&&(u=this._reduceOperations(u));for(var g=e._getInverseEditRanges(u),m=[],c=0;c<u.length;c++){var v=u[c],_=g[c];if(n&&v.isAutoWhitespaceEdit&&v.range.isEmpty())for(x=_.startLineNumber;x<=_.endLineNumber;x++){var y=""
;x===_.startLineNumber&&(y=this.getLineContent(v.range.startLineNumber),-1!==r.firstNonWhitespaceIndex(y))||m.push({lineNumber:x,oldContent:y})}}for(var b=[],c=0;c<u.length;c++){var v=u[c],_=g[c];b[c]={sortIndex:v.sortIndex,identifier:v.identifier,range:_,text:this.getValueInRange(v.range),forceMoveMarkers:v.forceMoveMarkers}}f||b.sort(function(e,t){return e.sortIndex-t.sortIndex}),this._mightContainRTL=i,this._mightContainNonBasicASCII=s;var C=this._doApplyEdits(u),E=null;if(n&&m.length>0){m.sort(function(e,t){return t.lineNumber-e.lineNumber}),E=[];for(var c=0,S=m.length;c<S;c++){var x=m[c].lineNumber;if(!(c>0&&m[c-1].lineNumber===x)){var w=m[c].oldContent,T=this.getLineContent(x);0!==T.length&&T!==w&&-1===r.firstNonWhitespaceIndex(T)&&E.push(x)}}}return new o.ApplyEditsResult(b,C,E)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){
for(var t=!1,r=e[0].range,i=e[e.length-1].range,s=new n.Range(r.startLineNumber,r.startColumn,i.endLineNumber,i.endColumn),a=r.startLineNumber,u=r.startColumn,c=[],l=0,f=e.length;l<f;l++){var d=e[l],h=d.range;t=t||d.forceMoveMarkers;for(var p=a;p<h.startLineNumber;p++)p===a?c.push(this.getLineContent(p).substring(u-1)):(c.push("\n"),c.push(this.getLineContent(p)));if(h.startLineNumber===a?c.push(this.getLineContent(h.startLineNumber).substring(u-1,h.startColumn-1)):(c.push("\n"),c.push(this.getLineContent(h.startLineNumber).substring(0,h.startColumn-1))),d.lines)for(var g=0,m=d.lines.length;g<m;g++)0!==g&&c.push("\n"),c.push(d.lines[g]);a=d.range.endLineNumber,u=d.range.endColumn}return{sortIndex:0,identifier:e[0].identifier,range:s,rangeOffset:this.getOffsetAt(s.startLineNumber,s.startColumn),rangeLength:this.getValueLengthInRange(s,o.EndOfLinePreference.TextDefined),lines:c.join("").split("\n"),forceMoveMarkers:t,isAutoWhitespaceEdit:!1}},e.prototype._doApplyEdits=function(t){t.sort(e._sortOpsDescending)
;for(var r=[],i=0;i<t.length;i++){var o=t[i],s=o.range.startLineNumber,a=o.range.startColumn,u=o.range.endLineNumber,c=o.range.endColumn;if(s!==u||a!==c||o.lines&&0!==o.lines.length){var l=u-s,f=o.lines?o.lines.length-1:0,d=Math.min(l,f),h=o.lines?o.lines.join(this.getEOL()):"";if(h?(this._pieceTree.delete(o.rangeOffset,o.rangeLength),this._pieceTree.insert(o.rangeOffset,h,!0)):this._pieceTree.delete(o.rangeOffset,o.rangeLength),d<f){for(var p=[],g=d+1;g<=f;g++)p.push(o.lines[g]);p[p.length-1]=this.getLineContent(s+f-1)}var m=new n.Range(s,a,u,c);r.push({range:m,rangeLength:o.rangeLength,text:h,rangeOffset:o.rangeOffset,forceMoveMarkers:o.forceMoveMarkers})}}return r},e.prototype.findMatchesLineByLine=function(e,t,n,r){return this._pieceTree.findMatchesLineByLine(e,t,n,r)},e.prototype.getPieceTree=function(){return this._pieceTree},e._getInverseEditRanges=function(e){for(var t,r,i=[],o=null,s=0,a=e.length;s<a;s++){var u=e[s],c=void 0,l=void 0;o?o.range.endLineNumber===u.range.startLineNumber?(c=t,
l=r+(u.range.startColumn-o.range.endColumn)):(c=t+(u.range.startLineNumber-o.range.endLineNumber),l=u.range.startColumn):(c=u.range.startLineNumber,l=u.range.startColumn);var f=void 0;if(u.lines&&u.lines.length>0){var d=u.lines.length,h=u.lines[0],p=u.lines[d-1];f=1===d?new n.Range(c,l,c,l+h.length):new n.Range(c,l,c+d-1,p.length+1)}else f=new n.Range(c,l,c,l);t=f.endLineNumber,r=f.endColumn,i.push(f),o=u}return i},e._sortOpsAscending=function(e,t){var r=n.Range.compareRangesUsingEnds(e.range,t.range);return 0===r?e.sortIndex-t.sortIndex:r},e._sortOpsDescending=function(e,t){var r=n.Range.compareRangesUsingEnds(e.range,t.range);return 0===r?t.sortIndex-e.sortIndex:-r},e}();t.PieceTreeTextBuffer=s}),define(e[152],t([0,1,7,22,149,59]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t,n,r,i,o,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=r,this._crlf=i,this._containsRTL=o,this._isBasicASCII=s,this._normalizeEOL=a}
return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?e===r.DefaultEndOfLine.LF?"\n":"\r\n":n>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var r=0,s=n.length;r<s;r++){var a=n[r].buffer.replace(/\r\n|\r|\n/g,t),u=o.createLineStartsFast(a);n[r]=new o.StringBuffer(a,u)}return new i.PieceTreeTextBuffer(n,this._bom,t,this._containsRTL,this._isBasicASCII,this._normalizeEOL)},e.prototype.getFirstLineText=function(e){return this._chunks[0].buffer.substr(0,100).split(/\r\n|\r|\n/)[0]},e}();t.PieceTreeTextBufferFactory=s;var a=function(){function e(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.isBasicASCII=!0}return e.prototype.acceptChunk=function(e){if(0!==e.length){
0===this.chunks.length&&n.startsWithUTF8BOM(e)&&(this.BOM=n.UTF8_BOM_CHARACTER,e=e.substr(1));var t=e.charCodeAt(e.length-1);13===t||t>=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=o.createLineStarts(this._tmpLineStarts,e);this.chunks.push(new o.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=n.containsRTL(e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new s(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=o.createLineStartsFast(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}();t.PieceTreeTextBufferBuilder=a}),define(e[41],t([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 n="(-?\\d*\\.\\d\\w*)|([^",r=0;r<t.USUAL_WORD_SEPARATORS.length;r++)e.indexOf(t.USUAL_WORD_SEPARATORS[r])>=0||(n+="\\"+t.USUAL_WORD_SEPARATORS[r]);return n+="\\s]+)",new RegExp(n,"g")}(),t.ensureValidWordDefinition=function(e){var n=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)n=e;else{var r="g";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),n=new RegExp(e.source,r)}return n.lastIndex=0,n},t.getWordAtText=function(e,t,n,r){t.lastIndex=0;var i=t.exec(n)
;if(!i)return null;var o=i[0].indexOf(" ")>=0?function(e,t,n,r){var i=e-1-r;t.lastIndex=0;for(var o;o=t.exec(n);){if(o.index>i)return null;if(t.lastIndex>=i)return{word:o[0],startColumn:r+1+o.index,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r):function(e,t,n,r){var i=e-1-r,o=n.lastIndexOf(" ",i-1)+1,s=n.indexOf(" ",i);-1===s&&(s=n.length),t.lastIndex=o;for(var a;a=t.exec(n);)if(a.index<=i&&t.lastIndex>=i)return{word:a[0],startColumn:r+1+a.index,endColumn:r+1+t.lastIndex};return null}(e,t,n,r);return t.lastIndex=0,o}}),define(e[35],t([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 n=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._standardTokenMask|=2;break;case"comment":
this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}}return e.prototype.isOK=function(e){return 0==(this._standardTokenMask&e)},e}();t.StandardAutoClosingPairConditional=n}),define(e[57],t([0,1,32]),function(e,t,n){"use strict";function r(e,t,i,o){if(Array.isArray(e)){for(var s=0,a=0,u=e;a<u.length;a++){var c=r(u[a],t,i,o);if(10===c)return c;c>s&&(s=c)}return s}if("string"==typeof e)return o?"*"===e?5:e===i?10:0:0;if(e){var l=e.language,f=e.pattern,d=e.scheme,h=e.hasAccessToAllModels;if(!o&&!h)return 0;s=0;if(d)if(d===t.scheme)s=10;else{if("*"!==d)return 0;s=5}if(l)if(l===i)s=10;else{if("*"!==l)return 0;s=Math.max(s,5)}if(f){if(f!==t.fsPath&&!n.match(f,t.fsPath))return 0;s=10}return s}return 0}Object.defineProperty(t,"__esModule",{value:!0}),t.score=r}),define(e[46],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createScopedLineTokens=function(e,t){
for(var r=e.getCount(),i=e.findTokenIndexAtOffset(t),o=e.getLanguageId(i),s=i;s+1<r&&e.getLanguageId(s+1)===o;)s++;for(var a=i;a>0&&e.getLanguageId(a-1)===o;)a--;return new n(e,o,a,s+1,e.getStartOffset(a),e.getEndOffset(s))};var n=function(){function e(e,t,n,r,i,o){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=r,this.firstCharOffset=i,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=n;var r;!function(e){e[e.value=7]="value"}(r||(r={})),t.ignoreBracketsInToken=function(e){return 0!=(7&e)}}),
define(e[197],t([0,1,35]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(function(e){return new n.StandardAutoClosingPairConditional(e)}):e.brackets?this._autoClosingPairs=e.brackets.map(function(e){return new n.StandardAutoClosingPairConditional({open:e[0],close:e[1]})}):this._autoClosingPairs=[],this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},e.prototype.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;for(var r=t.findTokenIndexAtOffset(n-2),i=t.getStandardTokenType(r),o=0;o<this._autoClosingPairs.length;++o){var s=this._autoClosingPairs[o];if(s.open===e)return s.isOK(i)}return!1},e.prototype.getSurroundingPairs=function(){return this._surroundingPairs},e}();t.CharacterPairSupport=r}),define(e[198],t([0,1]),function(e,t){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.INCREASE_MASK=1]="INCREASE_MASK",e[e.DECREASE_MASK=2]="DECREASE_MASK",e[e.INDENT_NEXTLINE_MASK=4]="INDENT_NEXTLINE_MASK",e[e.UNINDENT_MASK=8]="UNINDENT_MASK"}(t.IndentConsts||(t.IndentConsts={}));var n=function(){function e(e){this._indentationRules=e}return e.prototype.shouldIncrease=function(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))},e.prototype.shouldDecrease=function(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))},e.prototype.shouldIndentNextLine=function(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))},e.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},
e.prototype.getIndentMetadata=function(e){var t=0;return this.shouldIncrease(e)&&(t+=1),this.shouldDecrease(e)&&(t+=2),this.shouldIndentNextLine(e)&&(t+=4),this.shouldIgnore(e)&&(t+=8),t},e}();t.IndentRulesSupport=n}),define(e[209],t([0,1,17,7,35]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(t){(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=t.brackets.map(function(t){return{open:t[0],openRegExp:e._createOpenBracketRegExp(t[0]),close:t[1],closeRegExp:e._createCloseBracketRegExp(t[1])}}),this._regExpRules=t.regExpRules||[]}return e.prototype.onEnter=function(e,t,n){for(var r=0,o=this._regExpRules.length;r<o;r++){var s=this._regExpRules[r];if(s.beforeText.test(t)){if(!s.afterText)return s.action;if(s.afterText.test(n))return s.action}}if(t.length>0&&n.length>0)for(var r=0,o=this._brackets.length;r<o;r++){if((a=this._brackets[r]).openRegExp.test(t)&&a.closeRegExp.test(n))return{
indentAction:i.IndentAction.IndentOutdent}}if(t.length>0)for(var r=0,o=this._brackets.length;r<o;r++){var a=this._brackets[r];if(a.openRegExp.test(t))return{indentAction:i.IndentAction.Indent}}return null},e._createOpenBracketRegExp=function(t){var n=r.escapeRegExpCharacters(t);return/\B/.test(n.charAt(0))||(n="\\b"+n),n+="\\s*$",e._safeRegExp(n)},e._createCloseBracketRegExp=function(t){var n=r.escapeRegExpCharacters(t);return/\B/.test(n.charAt(n.length-1))||(n+="\\b"),n="^\\s*"+n,e._safeRegExp(n)},e._safeRegExp=function(e){try{return new RegExp(e)}catch(e){return n.onUnexpectedError(e),null}},e}();t.OnEnterSupport=o}),define(e[47],t([0,1,7,24]),function(e,t,n,r){"use strict";function i(e,t){var n={};return function(r){var i=e(r);return n.hasOwnProperty(i)||(n[i]=t(r)),n[i]}}function o(e){var t=/^[\w]+$/.test(e);return e=n.escapeRegExpCharacters(e),t?"\\b"+e+"\\b":e}function s(e){var t="("+e.map(o).join(")|(")+")";return n.createRegExp(t,!0)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){
return function(e,t,n,r,i){this.languageIdentifier=e,this.open=t,this.close=n,this.forwardRegex=r,this.reversedRegex=i}}();t.RichEditBracket=a;var u=function(){return function(e,t){var n=this;this.brackets=t.map(function(t){return new a(e,t[0],t[1],c({open:t[0],close:t[1]}),l({open:t[0],close:t[1]}))}),this.forwardRegex=f(this.brackets),this.reversedRegex=d(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};var r=0;this.brackets.forEach(function(e){n.textIsBracket[e.open.toLowerCase()]=e,n.textIsBracket[e.close.toLowerCase()]=e,n.textIsOpenBracket[e.open.toLowerCase()]=!0,n.textIsOpenBracket[e.close.toLowerCase()]=!1,r=Math.max(r,e.open.length),r=Math.max(r,e.close.length)}),this.maxBracketLength=r}}();t.RichEditBrackets=u;var c=i(function(e){return e.open+";"+e.close},function(e){return s([e.open,e.close])}),l=i(function(e){return e.open+";"+e.close},function(e){return s([h(e.open),h(e.close)])}),f=i(function(e){return e.map(function(e){return e.open+";"+e.close}).join(";")},function(e){var t=[]
;return e.forEach(function(e){t.push(e.open),t.push(e.close)}),s(t)}),d=i(function(e){return e.map(function(e){return e.open+";"+e.close}).join(";")},function(e){var t=[];return e.forEach(function(e){t.push(h(e.open)),t.push(h(e.close))}),s(t)}),h=function(){var e=null,t=null;return function(n){return e!==n&&(t=function(e){for(var t="",n=e.length-1;n>=0;n--)t+=e.charAt(n);return t}(e=n)),t}}(),p=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var s=n.length-o.index,a=o[0].length,u=i+s;return new r.Range(t,u-a+1,t,u+1)},e.findPrevBracketInToken=function(e,t,n,r,i){var o=h(n).substring(n.length-i,n.length-r);return this._findPrevBracketInText(e,t,o,r)},e.findNextBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var s=o.index,a=o[0].length;if(0===a)return null;var u=i+s;return new r.Range(t,u+1,t,u+1+a)},e.findNextBracketInToken=function(e,t,n,r,i){var o=n.substring(r,i);return this.findNextBracketInText(e,t,o,r)},e}()
;t.BracketsUtils=p}),define(e[82],t([0,1,46,47,35]),function(e,t,n,r,i){"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,n=this._richEditBrackets.brackets.length;t<n;t++){var r=this._richEditBrackets.brackets[t],i=r.close.charAt(r.close.length-1);e.push(i)}for(var o=0,s=this._complexAutoClosePairs;o<s.length;o++){var a=s[o];e.push(a.open.charAt(a.open.length-1))}return e=e.filter(function(e,t,n){return n.indexOf(e)===t})},e.prototype.onElectricCharacter=function(e,t,n){return this._onElectricAutoClose(e,t,n)||this._onElectricAutoIndent(e,t,n)},
e.prototype._onElectricAutoIndent=function(e,t,i){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var o=t.findTokenIndexAtOffset(i-1);if(n.ignoreBracketsInToken(t.getStandardTokenType(o)))return null;var s=this._richEditBrackets.reversedRegex,a=t.getLineContent().substring(0,i-1)+e,u=r.BracketsUtils.findPrevBracketInToken(s,1,a,0,a.length);if(!u)return null;var c=a.substring(u.startColumn-1,u.endColumn-1);c=c.toLowerCase();if(this._richEditBrackets.textIsOpenBracket[c])return null;var l=a.substring(0,u.startColumn-1);return/^\s*$/.test(l)?{matchOpenBracket:c}:null},e.prototype._onElectricAutoClose=function(e,t,n){if(!this._complexAutoClosePairs.length)return null;for(var r=t.getLineContent(),i=0,o=this._complexAutoClosePairs.length;i<o;i++){var s=this._complexAutoClosePairs[i];if(e===s.open.charAt(s.open.length-1)){if(r.substring(r.length-s.open.length+1)+e===s.open){var a=t.findTokenIndexAtOffset(n-1),u=t.getStandardTokenType(a)
;if(s.isOK(u)&&!(r.indexOf(s.close,n-1)>=0))return{appendText:s.close}}}}return null},e}();t.BracketElectricCharacterSupport=o}),define(e[56],t([0,1,197,82,209,198,47,4,17,7,41,46,24,35]),function(e,t,n,r,i,o,s,a,u,c,l,f,d,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(t,r,i){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var s=null;r&&(s=r._conf),this._conf=e._mergeConf(s,i),this.onEnter=e._handleOnEnter(this._conf),this.comments=e._handleComments(this._conf),this.characterPair=new n.CharacterPairSupport(this._conf),this.wordDefinition=this._conf.wordPattern||l.DEFAULT_WORD_REGEXP,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules&&(this.indentRulesSupport=new o.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 s.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 r.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,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleOnEnter=function(e){var t={},n=!0;return e.brackets&&(n=!1,t.brackets=e.brackets),e.indentationRules&&(n=!1),e.onEnterRules&&(n=!1,t.regExpRules=e.onEnterRules),n?null:new i.OnEnterSupport(t)},e._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};if(t.lineComment&&(n.lineCommentToken=t.lineComment),t.blockComment){var r=t.blockComment,i=r[0],o=r[1];n.blockCommentStartToken=i,n.blockCommentEndToken=o}return n},e}();t.RichEditSupport=p;var g=function(){return function(){}}();t.LanguageConfigurationChangeEvent=g;var m=function(){function e(){this._onDidChange=new a.Emitter,this.onDidChange=this._onDidChange.event,this._entries=[]}return e.prototype.register=function(e,t){var n=this,r=this._getRichEditSupport(e.id),i=new p(e,r,t)
;return this._entries[e.id]=i,this._onDidChange.fire({languageIdentifier:e}),{dispose:function(){n._entries[e.id]===i&&(n._entries[e.id]=r,n._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:null},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t?t.electricCharacter||null:null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,n){var r=f.createScopedLineTokens(t,n-1),i=this._getElectricCharacterSupport(r.languageId);return i?i.onElectricCharacter(e,r,n-r.firstCharOffset):null},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t?t.comments||null:null},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e)
;return t?t.characterPair||null:null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,n){var r=f.createScopedLineTokens(t,n-1),i=this._getCharacterPairSupport(r.languageId);return!!i&&i.shouldAutoClosePair(e,r,n-r.firstCharOffset)},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return t?l.ensureValidWordDefinition(t.wordDefinition||null):l.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:null},e.prototype.getPrecedingValidLine=function(e,t,n){var r=e.getLanguageIdAtPosition(t,0);if(t>1){var i=t-1,o=-1;for(i=t-1;i>=1;i--){
if(e.getLanguageIdAtPosition(i,0)!==r)return o;var s=e.getLineContent(i);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return i;o=i}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n){void 0===n&&(n=!0);var r=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!r)return null;if(t<=1)return{indentation:"",action:null};var i=this.getPrecedingValidLine(e,t,r);if(i<0)return null;if(i<1)return{indentation:"",action:null};var o=e.getLineContent(i);if(r.shouldIncrease(o)||r.shouldIndentNextLine(o))return{indentation:c.getLeadingWhitespace(o),action:h.IndentAction.Indent,line:i};if(r.shouldDecrease(o))return{indentation:c.getLeadingWhitespace(o),action:null,line:i};if(1===i)return{indentation:c.getLeadingWhitespace(e.getLineContent(i)),action:null,line:i};var s=i-1,a=r.getIndentMetadata(e.getLineContent(s));if(!(3&a)&&4&a){for(var u=0,l=s-1;l>0;l--)if(!r.shouldIndentNextLine(e.getLineContent(l))){u=l;break}return{indentation:c.getLeadingWhitespace(e.getLineContent(u+1)),action:null,line:u+1}}
if(n)return{indentation:c.getLeadingWhitespace(e.getLineContent(i)),action:null,line:i};for(l=i;l>0;l--){var f=e.getLineContent(l);if(r.shouldIncrease(f))return{indentation:c.getLeadingWhitespace(f),action:h.IndentAction.Indent,line:l};if(r.shouldIndentNextLine(f)){for(var u=0,d=l-1;d>0;d--)if(!r.shouldIndentNextLine(e.getLineContent(l))){u=d;break}return{indentation:c.getLeadingWhitespace(e.getLineContent(u+1)),action:null,line:u+1}}if(r.shouldDecrease(f))return{indentation:c.getLeadingWhitespace(f),action:null,line:l}}return{indentation:c.getLeadingWhitespace(e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,r){var i=this.getIndentRulesSupport(t);if(!i)return null;var o=this.getInheritIndentForLine(e,n),s=e.getLineContent(n);if(o){var a=o.line;if(void 0!==a){var l=this._getOnEnterSupport(t),f=null;try{f=l.onEnter("",e.getLineContent(a),"")}catch(e){u.onUnexpectedError(e)}if(f){var d=c.getLeadingWhitespace(e.getLineContent(a))
;return f.removeText&&(d=d.substring(0,d.length-f.removeText)),f.indentAction===h.IndentAction.Indent||f.indentAction===h.IndentAction.IndentOutdent?d=r.shiftIndent(d):f.indentAction===h.IndentAction.Outdent&&(d=r.unshiftIndent(d)),i.shouldDecrease(s)&&(d=r.unshiftIndent(d)),f.appendText&&(d+=f.appendText),c.getLeadingWhitespace(d)}}return i.shouldDecrease(s)?o.action===h.IndentAction.Indent?o.indentation:r.unshiftIndent(o.indentation):o.action===h.IndentAction.Indent?r.shiftIndent(o.indentation):o.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,r){e.forceTokenization(t.startLineNumber);var i,o,s=e.getLineTokens(t.startLineNumber),a=f.createScopedLineTokens(s,t.startColumn-1),u=a.getLineContent(),l=!1;if(a.firstCharOffset>0&&s.getLanguageId(0)!==a.languageId?(l=!0,i=u.substr(0,t.startColumn-1-a.firstCharOffset)):i=s.getLineContent().substring(0,t.startColumn-1),t.isEmpty())o=u.substr(t.startColumn-1-a.firstCharOffset);else{
o=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-a.firstCharOffset)}var d=this.getIndentRulesSupport(a.languageId);if(!d)return null;var p=i,g=c.getLeadingWhitespace(i);if(!r&&!l){var m=this.getInheritIndentForLine(e,t.startLineNumber);d.shouldDecrease(i)&&m&&(g=m.indentation,m.action!==h.IndentAction.Indent&&(g=n.unshiftIndent(g))),p=g+c.ltrim(c.ltrim(i," "),"\t")}var v={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:function(n){return n===t.startLineNumber?p:e.getLineContent(n)}},_=c.getLeadingWhitespace(s.getLineContent()),y=this.getInheritIndentForLine(v,t.startLineNumber+1);if(!y){var b=l?_:g;return{beforeEnter:b,afterEnter:b}}var C=l?_:y.indentation;return y.action===h.IndentAction.Indent&&(C=n.shiftIndent(C)),d.shouldDecrease(o)&&(C=n.unshiftIndent(C)),{beforeEnter:l?_:g,afterEnter:C}},
e.prototype.getIndentActionForType=function(e,t,n,r){var i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this.getIndentRulesSupport(i.languageId);if(!o)return null;var s,a=i.getLineContent(),u=a.substr(0,t.startColumn-1-i.firstCharOffset);if(t.isEmpty())s=a.substr(t.startColumn-1-i.firstCharOffset);else{s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset)}if(!o.shouldDecrease(u+s)&&o.shouldDecrease(u+n+s)){var c=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!c)return null;var l=c.indentation;return c.action!==h.IndentAction.Indent&&(l=r.unshiftIndent(l)),l}return null},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t?t.onEnter||null:null},e.prototype.getRawEnterActionAtPosition=function(e,t,n){
var r=this.getEnterAction(e,new d.Range(t,n,t,n));return r?r.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),i=this._getOnEnterSupport(r.languageId);if(!i)return null;var o,s=r.getLineContent(),a=s.substr(0,t.startColumn-1-r.firstCharOffset);if(t.isEmpty())o=s.substr(t.startColumn-1-r.firstCharOffset);else{o=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-r.firstCharOffset)}var c=t.startLineNumber,l="";if(c>1&&0===r.firstCharOffset){var f=this.getScopedLineTokens(e,c-1);f.languageId===r.languageId&&(l=f.getLineContent())}var d=null;try{d=i.onEnter(l,a,o)}catch(e){u.onUnexpectedError(e)}return d?(d.appendText||(d.indentAction===h.IndentAction.Indent||d.indentAction===h.IndentAction.IndentOutdent?d.appendText="\t":d.appendText=""),d.removeText&&(n=n.substring(0,n.length-d.removeText)),{enterAction:d,indentation:n}):null},
e.prototype.getIndentationAtPosition=function(e,t,n){var r=e.getLineContent(t),i=c.getLeadingWhitespace(r);return i.length>n-1&&(i=i.substring(0,n-1)),i},e.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var r=e.getLineTokens(t),i=isNaN(n)?e.getLineMaxColumn(t)-1:n-1;return f.createScopedLineTokens(r,i)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t?t.brackets||null:null},e}();t.LanguageConfigurationRegistryImpl=m,t.LanguageConfigurationRegistry=new m}),define(e[84],t([0,1,4]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this._onDidChange=new n.Emitter,this.onDidChange=this._onDidChange.event,this._map=Object.create(null),this._colorMap=null}return e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},e.prototype.register=function(e,t){var n=this;return this._map[e]=t,this.fire([e]),{dispose:function(){n._map[e]===t&&(delete n._map[e],n.fire([e]))}
}},e.prototype.get=function(e){return this._map[e]||null},e.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Object.keys(this._map),changedColorMap:!0})},e.prototype.getColorMap=function(){return this._colorMap},e.prototype.getDefaultBackground=function(){return this._colorMap[2]},e}();t.TokenizationRegistryImpl=r}),define(e[85],t([0,1,62]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return function(e,t){this.index=e,this.remainder=t}}();t.PrefixSumIndexOfResult=r;var i=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=n.toUint32(e);var r=this.values,i=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(r.length+o),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+o),
this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=n.toUint32(e),t=n.toUint32(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},e.prototype.removeValues=function(e,t){e=n.toUint32(e),t=n.toUint32(t);var r=this.values,i=this.prefixSum;if(e>=r.length)return!1;var o=r.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(r.length-t),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.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=n.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 n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];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,n,i,o=0,s=this.values.length-1;o<=s;)if(t=o+(s-o)/2|0,n=this.prefixSum[t],i=n-this.values[t],e<i)s=t-1;else{if(!(e>=n))break;o=t+1}return new r(t,e-i)},e}();t.PrefixSumComputer=i;var o=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new i(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<this._cache.length)return this._cache[t]}return this._actual.getIndexOf(e)},e.prototype.warmUpCache=function(e,t){for(var n=[],r=e;r<=t;r++)n[r-e]=this.getIndexOf(r);this._cache=n,this._cacheAccumulatedValueStart=e},e}();t.PrefixSumComputerWithCache=o}),define(e[86],t([0,1,85,25]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n,r){this._uri=e,
this._lines=t,this._eol=n,this._versionId=r}return e.prototype.dispose=function(){this._lines.length=0},Object.defineProperty(e.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=e.changes,n=0,i=t.length;n<i;n++){var o=t[n];this._acceptDeleteRange(o.range),this._acceptInsertText(new r.Position(o.range.startLineNumber,o.range.startColumn),o.text)}this._versionId=e.versionId},e.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var e=this._eol.length,t=this._lines.length,r=new Uint32Array(t),i=0;i<t;i++)r[i]=this._lines[i].length+e;this._lineStarts=new n.PrefixSumComputer(r)}},e.prototype._setLineText=function(e,t){this._lines[e]=t,this._lineStarts&&this._lineStarts.changeValue(e,this._lines[e].length+this._eol.length)},e.prototype._acceptDeleteRange=function(e){
if(e.startLineNumber!==e.endLineNumber)this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.endLineNumber-1].substring(e.endColumn-1)),this._lines.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(e.startLineNumber,e.endLineNumber-e.startLineNumber);else{if(e.startColumn===e.endColumn)return;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1))}},e.prototype._acceptInsertText=function(e,t){if(0!==t.length){var n=t.split(/\r\n|\r|\n/);if(1!==n.length){n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);for(var r=new Uint32Array(n.length-1),i=1;i<n.length;i++)this._lines.splice(e.lineNumber+i-1,0,n[i]),r[i-1]=n[i].length+this._eol.length
;this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)}else this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]+this._lines[e.lineNumber-1].substring(e.column-1))}},e}();t.MirrorTextModel=i}),define(e[87],t([13,14]),function(e,t){return e.create("vs/base/common/errorMessage",t)}),define(e[90],t([0,1,87,18,12]),function(e,t,n,r,i){"use strict";function o(e,t){return e.message?t&&(e.stack||e.stacktrace)?n.localize(0,null,s(e),e.stack||e.stacktrace):s(e):n.localize(1,null)}function s(e){return"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?n.localize(2,null,e.message):e.message}function a(e,t){if(void 0===e&&(e=null),void 0===t&&(t=!1),!e)return n.localize(3,null);if(Array.isArray(e)){var s=i.coalesce(e),u=a(s[0],t);return s.length>1?n.localize(4,null,u,s.length):u}if(r.isString(e))return e;if(e.detail){var c=e.detail;if(c.error)return o(c.error,t);if(c.exception)return o(c.exception,t)}
return e.stack?o(e,t):e.message?e.message:n.localize(5,null)}Object.defineProperty(t,"__esModule",{value:!0}),t.toErrorMessage=a}),define(e[91],t([13,14]),function(e,t){return e.create("vs/base/common/severity",t)}),define(e[34],t([0,1,91,7]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){var t="error",i="warning",o="warn",s="info",a=Object.create(null);a[e.Error]=n.localize(0,null),a[e.Warning]=n.localize(1,null),a[e.Info]=n.localize(2,null),e.fromValue=function(n){return n?r.equalsIgnoreCase(t,n)?e.Error:r.equalsIgnoreCase(i,n)||r.equalsIgnoreCase(o,n)?e.Warning:r.equalsIgnoreCase(s,n)?e.Info:e.Ignore:e.Ignore}}(i||(i={})),t.default=i}),define(e[93],t([13,14]),function(e,t){return e.create("vs/base/node/processes",t)}),define(e[94],t([0,1,21,27,68,93,2,18,3,16,9,8,125,156]),function(e,t,r,i,o,s,a,u,c,l,f,d,h,p){"use strict";function g(t,n){
if(d.isWindows)try{var r={stdio:["pipe","pipe","ignore"]};n&&(r.cwd=n),i.execFileSync("taskkill",["/T","/F","/PID",t.pid.toString()],r)}catch(e){return{success:!1,error:e,code:e.status?function(e){switch(e){case 0:return p.TerminateResponseCode.Success;case 1:return p.TerminateResponseCode.AccessDenied;case 128:return p.TerminateResponseCode.ProcessNotFound;default:return p.TerminateResponseCode.Unknown}}(e.status):p.TerminateResponseCode.Unknown}}else if(d.isLinux||d.isMacintosh)try{var o=c.default.parse(e.toUrl("vs/base/node/terminateProcess.sh")).fsPath,s=i.spawnSync(o,[t.pid.toString()]);if(s.error)return{success:!1,error:s.error}}catch(e){return{success:!1,error:e}}else t.kill("SIGKILL");return{success:!0}}function m(){return process.env.comspec||"cmd.exe"}Object.defineProperty(t,"__esModule",{value:!0}),t.Source=p.Source,t.TerminateResponseCode=p.TerminateResponseCode,t.terminateProcess=g,t.getWindowsShell=m;var v=function(){function e(e,t,n,r){var i=this;if(r)this.cmd=e,this.args=t,this.shell=n,
this.options=r;else if(n&&t)this.module=e,this.args=t,this.shell=!1,this.options=n;else{var o=e;this.cmd=o.command,this.shell=o.isShellCommand,this.args=o.args.slice(0),this.options=o.options||{}}if(this.childProcess=null,this.terminateRequested=!1,this.options.env){var s=Object.create(null);Object.keys(process.env).forEach(function(e){s[e]=process.env[e]}),Object.keys(this.options.env).forEach(function(e){s[e]=i.options.env[e]}),this.options.env=s}}return e.prototype.getSanitizedCommand=function(){var t=this.cmd.toLowerCase(),n=t.lastIndexOf(r.sep);return-1!==n&&(t=t.substring(n+1)),e.WellKnowCommands[t]?t:"other"},e.prototype.start=function(){var e=this;return d.isWindows&&(this.options&&this.options.cwd&&f.isUNC(this.options.cwd)||!this.options&&!this.options.cwd&&f.isUNC(process.cwd()))?a.TPromise.wrapError(new Error(s.localize(0,null))):this.useExec().then(function(t){var n,r,s,c=new a.PPromise(function(e,t,i){n=e,r=t,s=i});if(t){var f=e.cmd;e.args&&(f=f+" "+e.args.join(" ")),
e.childProcess=i.exec(f,e.options,function(t,i,o){e.childProcess=null;var a=t;a&&a.killed?r({killed:e.terminateRequested,stdout:i.toString(),stderr:o.toString()}):e.handleExec(n,s,t,i,o)})}else{var h=null,p=function(t){e.childProcess=null,e.childProcessPromise=null,e.handleClose(t,n,s,r);var i={terminated:e.terminateRequested};u.isNumber(t)&&(i.cmdCode=t),n(i)};if(e.shell&&d.isWindows){var g=l.deepClone(e.options);g.windowsVerbatimArguments=!0,g.detached=!1;var v=!1,_=!1,y=[],b=e.ensureQuotes(e.cmd);y.push(b.value),v=b.quoted,e.args&&e.args.forEach(function(t){b=e.ensureQuotes(t),y.push(b.value),_=_&&b.quoted});var C=["/s","/c"];v?_?C.push('"'+y.join(" ")+'"'):y.length>1?C.push('"'+y[0]+'" '+y.slice(1).join(" ")):C.push('"'+y[0]+'"'):C.push(y.join(" ")),h=i.spawn(m(),C,g)}else e.cmd?h=i.spawn(e.cmd,e.args,e.options):e.module&&(e.childProcessPromise=new a.TPromise(function(t,i,a){o.fork(e.module,e.args,e.options,function(o,a){if(o)return i(o),void r({terminated:e.terminateRequested,error:o});e.childProcess=a,
e.pidResolve&&(e.pidResolve(u.isNumber(a.pid)?a.pid:-1),e.pidResolve=void 0),e.childProcess.on("close",p),e.handleSpawn(a,n,s,r,!1),t(a)})}));h&&(e.childProcess=h,e.childProcessPromise=a.TPromise.as(h),e.pidResolve&&(e.pidResolve(u.isNumber(h.pid)?h.pid:-1),e.pidResolve=void 0),h.on("error",function(t){e.childProcess=null,r({terminated:e.terminateRequested,error:t})}),h.pid&&(e.childProcess.on("close",p),e.handleSpawn(h,n,s,r,!0)))}return c})},e.prototype.handleClose=function(e,t,n,r){},e.prototype.ensureQuotes=function(t){return e.regexp.test(t)?{value:'"'+t+'"',quoted:!0}:{value:t,quoted:t.length>0&&'"'===t[0]&&'"'===t[t.length-1]}},Object.defineProperty(e.prototype,"pid",{get:function(){var e=this;return this.childProcessPromise?this.childProcessPromise.then(function(e){return e.pid},function(e){return-1}):new a.TPromise(function(t){e.pidResolve=t})},enumerable:!0,configurable:!0}),e.prototype.terminate=function(){var e=this;return this.childProcessPromise?this.childProcessPromise.then(function(t){
e.terminateRequested=!0;var n=g(t,e.options.cwd);return n.success&&(e.childProcess=null),n},function(e){return{success:!0}}):a.TPromise.as({success:!0})},e.prototype.useExec=function(){var e=this;return new a.TPromise(function(t,n,r){e.shell&&d.isWindows||t(!1);var o=i.spawn(m(),["/s","/c"]);o.on("error",function(e){t(!0)}),o.on("exit",function(e){t(!1)})})},e.WellKnowCommands={ant:!0,cmake:!0,eslint:!0,gradle:!0,grunt:!0,gulp:!0,jake:!0,jenkins:!0,jshint:!0,make:!0,maven:!0,msbuild:!0,msc:!0,nmake:!0,npm:!0,rake:!0,tsc:!0,xbuild:!0},e.regexp=/^[^"].* .*[^"]/,e}();t.AbstractProcess=v;var _=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return n(t,e),t.prototype.handleExec=function(e,t,n,r,i){[r,i].forEach(function(e,n){var r=new h.LineDecoder;r.write(e).forEach(function(e){t({line:e,source:0===n?p.Source.stdout:p.Source.stderr})});var i=r.end();i&&t({line:i,source:0===n?p.Source.stdout:p.Source.stderr})}),e({terminated:this.terminateRequested,error:n})},
t.prototype.handleSpawn=function(e,t,n,r,i){var o=this;this.stdoutLineDecoder=new h.LineDecoder,this.stderrLineDecoder=new h.LineDecoder,e.stdout.on("data",function(e){o.stdoutLineDecoder.write(e).forEach(function(e){return n({line:e,source:p.Source.stdout})})}),e.stderr.on("data",function(e){o.stderrLineDecoder.write(e).forEach(function(e){return n({line:e,source:p.Source.stderr})})})},t.prototype.handleClose=function(e,t,n,r){[this.stdoutLineDecoder.end(),this.stderrLineDecoder.end()].forEach(function(e,t){e&&n({line:e,source:0===t?p.Source.stdout:p.Source.stderr})})},t}(v);t.LineProcess=_,t.createQueuedSender=function(e){var t=[],n=!1,r=function(i){n?t.push(i):e.send(i,function(e){if(e&&console.error(e),n=!1,t.length>0){var i=t.slice(0);t=[],i.forEach(function(e){return r(e)})}})&&!d.isWindows||(n=!0)};return{send:r}}}),define(e[95],t([0,1,27,2,15,16,4,94,45,120]),function(e,t,r,i,o,s,a,u,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(e){function t(){var t=e.call(this,{
send:function(e){try{process.send(e)}catch(e){}},onMessage:a.fromNodeEventEmitter(process,"message",function(e){return e})})||this;return process.once("disconnect",function(){return t.dispose()}),t}return n(t,e),t}(c.ChannelServer);t.Server=f;var d=function(){function e(e,t){this.modulePath=e,this.options=t;var n=t&&t.timeout?t.timeout:6e4;this.disposeDelayer=new o.Delayer(n),this.activeRequests=[],this.child=null,this._client=null,this.channels=Object.create(null)}return e.prototype.getChannel=function(e){var t=this;return{call:function(n,r){return t.request(e,n,r)}}},e.prototype.request=function(e,t,n){var r=this;if(!this.disposeDelayer)return i.TPromise.wrapError(new Error("disposed"));this.disposeDelayer.cancel();var o=(this.channels[e]||(this.channels[e]=this.client.getChannel(e))).call(t,n),s=new i.TPromise(function(e,t,n){o.then(e,t,n).done(function(){r.activeRequests&&(r.activeRequests.splice(r.activeRequests.indexOf(s),1),0===r.activeRequests.length&&r.disposeDelayer.trigger(function(){
return r.disposeClient()}))})},function(){return o.cancel()});return this.activeRequests.push(s),s},Object.defineProperty(e.prototype,"client",{get:function(){var e=this;if(!this._client){var t=this.options&&this.options.args?this.options.args:[],n=Object.create(null);n.env=s.assign(s.deepClone(process.env),{VSCODE_PARENT_PID:String(process.pid)}),this.options&&this.options.env&&(n.env=s.assign(n.env,this.options.env)),this.options&&this.options.freshExecArgv&&(n.execArgv=[]),this.options&&"number"==typeof this.options.debug&&(n.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&"number"==typeof this.options.debugBrk&&(n.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),this.child=r.fork(this.modulePath,t,n);var i=new a.Emitter;a.fromNodeEventEmitter(this.child,"message",function(e){return e})(function(t){if(l.isRemoteConsoleLog(t))return l.log(t,"IPC Library: "+e.options.serverName),null;i.fire(t)});var o=this.options.useQueue?u.createQueuedSender(this.child):this.child,f={
send:function(t){return e.child&&e.child.connected&&o.send(t)},onMessage:i.event};this._client=new c.ChannelClient(f);var d=function(){return e.disposeClient()};process.once("exit",d),this.child.on("error",function(t){return console.warn('IPC "'+e.options.serverName+'" errored with '+t)}),this.child.on("exit",function(t,n){process.removeListener("exit",d),e.activeRequests&&(e.activeRequests.forEach(function(e){return e.cancel()}),e.activeRequests=[]),0!==t&&"SIGTERM"!==n&&(console.warn('IPC "'+e.options.serverName+'" crashed with exit code '+t+" and signal "+n),e.disposeDelayer.cancel(),e.disposeClient())})}return this._client},enumerable:!0,configurable:!0}),e.prototype.disposeClient=function(){this._client&&(this.child.kill(),this.child=null,this._client=null,this.channels=Object.create(null))},e.prototype.dispose=function(){this.disposeDelayer.cancel(),this.disposeDelayer=null,this.disposeClient(),this.activeRequests=null},e}();t.Client=d}),define(e[96],t([13,14]),function(e,t){
return e.create("vs/editor/common/config/editorOptions",t)});var s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e};define(e[55],t([0,1,96,8,118,41,12,16]),function(e,t,n,r,i,o,a,u){"use strict";function c(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}function l(e,t){return"string"!=typeof e?t:e}function f(e,t,n){return"string"!=typeof e?t:-1===n.indexOf(e)?t:e}function d(e,t,n,r){var i;return void 0===e?i=t:(i=parseInt(e,10),isNaN(i)&&(i=t)),i=Math.max(n,i),0|(i=Math.min(r,i))}function h(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return i.ScrollbarVisibility.Hidden;case"visible":return i.ScrollbarVisibility.Visible;default:return i.ScrollbarVisibility.Auto}}Object.defineProperty(t,"__esModule",{value:!0});var p;!function(e){e[e.None=0]="None",e[e.Small=1]="Small",e[e.Large=2]="Large",e[e.SmallBlocks=3]="SmallBlocks",e[e.LargeBlocks=4]="LargeBlocks"
}(p=t.RenderMinimap||(t.RenderMinimap={}));var g;!function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(g=t.WrappingIndent||(t.WrappingIndent={}));var m;!function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(m=t.TextEditorCursorBlinkingStyle||(t.TextEditorCursorBlinkingStyle={})),t.blinkingStyleToString=function(e){if(e===m.Blink)return"blink";if(e===m.Expand)return"expand";if(e===m.Phase)return"phase";if(e===m.Smooth)return"smooth";if(e===m.Solid)return"solid";throw new Error("blinkingStyleToString: Unknown blinkingStyle")};var v;!function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(v=t.TextEditorCursorStyle||(t.TextEditorCursorStyle={})),t.cursorStyleToString=function(e){if(e===v.Line)return"line";if(e===v.Block)return"block"
;if(e===v.Underline)return"underline";if(e===v.LineThin)return"line-thin";if(e===v.BlockOutline)return"block-outline";if(e===v.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle")};!function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(t.RenderLineNumbersType||(t.RenderLineNumbersType={}));var _=function(){function e(e){this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=0|e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.multiCursorModifier=e.multiCursorModifier,this.multiCursorMergeOverlapping=e.multiCursorMergeOverlapping,this.wordSeparators=e.wordSeparators,this.autoClosingBrackets=e.autoClosingBrackets,this.autoIndent=e.autoIndent,this.useTabStops=e.useTabStops,this.tabFocusMode=e.tabFocusMode,this.dragAndDrop=e.dragAndDrop,
this.emptySelectionClipboard=e.emptySelectionClipboard,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo,this.contribInfo=e.contribInfo,this.showUnused=e.showUnused}return e.prototype.equals=function(t){
return this.canUseLayerHinting===t.canUseLayerHinting&&this.pixelRatio===t.pixelRatio&&this.editorClassName===t.editorClassName&&this.lineHeight===t.lineHeight&&this.readOnly===t.readOnly&&this.accessibilitySupport===t.accessibilitySupport&&this.multiCursorModifier===t.multiCursorModifier&&this.multiCursorMergeOverlapping===t.multiCursorMergeOverlapping&&this.wordSeparators===t.wordSeparators&&this.autoClosingBrackets===t.autoClosingBrackets&&this.autoIndent===t.autoIndent&&this.useTabStops===t.useTabStops&&this.tabFocusMode===t.tabFocusMode&&this.dragAndDrop===t.dragAndDrop&&this.showUnused===t.showUnused&&this.emptySelectionClipboard===t.emptySelectionClipboard&&e._equalsLayoutInfo(this.layoutInfo,t.layoutInfo)&&this.fontInfo.equals(t.fontInfo)&&e._equalsViewOptions(this.viewInfo,t.viewInfo)&&e._equalsWrappingInfo(this.wrappingInfo,t.wrappingInfo)&&e._equalsContribOptions(this.contribInfo,t.contribInfo)},e.prototype.createChangeEvent=function(t){return{
canUseLayerHinting:this.canUseLayerHinting!==t.canUseLayerHinting,pixelRatio:this.pixelRatio!==t.pixelRatio,editorClassName:this.editorClassName!==t.editorClassName,lineHeight:this.lineHeight!==t.lineHeight,readOnly:this.readOnly!==t.readOnly,accessibilitySupport:this.accessibilitySupport!==t.accessibilitySupport,multiCursorModifier:this.multiCursorModifier!==t.multiCursorModifier,multiCursorMergeOverlapping:this.multiCursorMergeOverlapping!==t.multiCursorMergeOverlapping,wordSeparators:this.wordSeparators!==t.wordSeparators,autoClosingBrackets:this.autoClosingBrackets!==t.autoClosingBrackets,autoIndent:this.autoIndent!==t.autoIndent,useTabStops:this.useTabStops!==t.useTabStops,tabFocusMode:this.tabFocusMode!==t.tabFocusMode,dragAndDrop:this.dragAndDrop!==t.dragAndDrop,emptySelectionClipboard:this.emptySelectionClipboard!==t.emptySelectionClipboard,layoutInfo:!e._equalsLayoutInfo(this.layoutInfo,t.layoutInfo),fontInfo:!this.fontInfo.equals(t.fontInfo),viewInfo:!e._equalsViewOptions(this.viewInfo,t.viewInfo),
wrappingInfo:!e._equalsWrappingInfo(this.wrappingInfo,t.wrappingInfo),contribInfo:!e._equalsContribOptions(this.contribInfo,t.contribInfo)}},e._equalsLayoutInfo=function(e,t){return e.width===t.width&&e.height===t.height&&e.glyphMarginLeft===t.glyphMarginLeft&&e.glyphMarginWidth===t.glyphMarginWidth&&e.glyphMarginHeight===t.glyphMarginHeight&&e.lineNumbersLeft===t.lineNumbersLeft&&e.lineNumbersWidth===t.lineNumbersWidth&&e.lineNumbersHeight===t.lineNumbersHeight&&e.decorationsLeft===t.decorationsLeft&&e.decorationsWidth===t.decorationsWidth&&e.decorationsHeight===t.decorationsHeight&&e.contentLeft===t.contentLeft&&e.contentWidth===t.contentWidth&&e.contentHeight===t.contentHeight&&e.renderMinimap===t.renderMinimap&&e.minimapLeft===t.minimapLeft&&e.minimapWidth===t.minimapWidth&&e.viewportColumn===t.viewportColumn&&e.verticalScrollbarWidth===t.verticalScrollbarWidth&&e.horizontalScrollbarHeight===t.horizontalScrollbarHeight&&this._equalsOverviewRuler(e.overviewRuler,t.overviewRuler)},
e._equalsOverviewRuler=function(e,t){return e.width===t.width&&e.height===t.height&&e.top===t.top&&e.right===t.right},e._equalsViewOptions=function(e,t){
return e.extraEditorClassName===t.extraEditorClassName&&e.disableMonospaceOptimizations===t.disableMonospaceOptimizations&&a.equals(e.rulers,t.rulers)&&e.ariaLabel===t.ariaLabel&&e.renderLineNumbers===t.renderLineNumbers&&e.renderCustomLineNumbers===t.renderCustomLineNumbers&&e.selectOnLineNumbers===t.selectOnLineNumbers&&e.glyphMargin===t.glyphMargin&&e.revealHorizontalRightPadding===t.revealHorizontalRightPadding&&e.roundedSelection===t.roundedSelection&&e.overviewRulerLanes===t.overviewRulerLanes&&e.overviewRulerBorder===t.overviewRulerBorder&&e.cursorBlinking===t.cursorBlinking&&e.mouseWheelZoom===t.mouseWheelZoom&&e.cursorStyle===t.cursorStyle&&e.cursorWidth===t.cursorWidth&&e.hideCursorInOverviewRuler===t.hideCursorInOverviewRuler&&e.scrollBeyondLastLine===t.scrollBeyondLastLine&&e.scrollBeyondLastColumn===t.scrollBeyondLastColumn&&e.smoothScrolling===t.smoothScrolling&&e.stopRenderingLineAfter===t.stopRenderingLineAfter&&e.renderWhitespace===t.renderWhitespace&&e.renderControlCharacters===t.renderControlCharacters&&e.fontLigatures===t.fontLigatures&&e.renderIndentGuides===t.renderIndentGuides&&e.highlightActiveIndentGuide===t.highlightActiveIndentGuide&&e.renderLineHighlight===t.renderLineHighlight&&this._equalsScrollbarOptions(e.scrollbar,t.scrollbar)&&this._equalsMinimapOptions(e.minimap,t.minimap)&&e.fixedOverflowWidgets===t.fixedOverflowWidgets
},e._equalsScrollbarOptions=function(e,t){return e.arrowSize===t.arrowSize&&e.vertical===t.vertical&&e.horizontal===t.horizontal&&e.useShadows===t.useShadows&&e.verticalHasArrows===t.verticalHasArrows&&e.horizontalHasArrows===t.horizontalHasArrows&&e.handleMouseWheel===t.handleMouseWheel&&e.horizontalScrollbarSize===t.horizontalScrollbarSize&&e.horizontalSliderSize===t.horizontalSliderSize&&e.verticalScrollbarSize===t.verticalScrollbarSize&&e.verticalSliderSize===t.verticalSliderSize&&e.mouseWheelScrollSensitivity===t.mouseWheelScrollSensitivity},e._equalsMinimapOptions=function(e,t){return e.enabled===t.enabled&&e.side===t.side&&e.showSlider===t.showSlider&&e.renderCharacters===t.renderCharacters&&e.maxColumn===t.maxColumn},e._equalFindOptions=function(e,t){return e.seedSearchStringFromSelection===t.seedSearchStringFromSelection&&e.autoFindInSelection===t.autoFindInSelection&&e.globalFindClipboard===t.globalFindClipboard},e._equalsHoverOptions=function(e,t){
return e.enabled===t.enabled&&e.delay===t.delay&&e.sticky===t.sticky},e._equalsWrappingInfo=function(e,t){return e.inDiffEditor===t.inDiffEditor&&e.isDominatedByLongLines===t.isDominatedByLongLines&&e.isWordWrapMinified===t.isWordWrapMinified&&e.isViewportWrapping===t.isViewportWrapping&&e.wrappingColumn===t.wrappingColumn&&e.wrappingIndent===t.wrappingIndent&&e.wordWrapBreakBeforeCharacters===t.wordWrapBreakBeforeCharacters&&e.wordWrapBreakAfterCharacters===t.wordWrapBreakAfterCharacters&&e.wordWrapBreakObtrusiveCharacters===t.wordWrapBreakObtrusiveCharacters},e._equalsContribOptions=function(t,n){
return t.selectionClipboard===n.selectionClipboard&&this._equalsHoverOptions(t.hover,n.hover)&&t.links===n.links&&t.contextmenu===n.contextmenu&&e._equalsQuickSuggestions(t.quickSuggestions,n.quickSuggestions)&&t.quickSuggestionsDelay===n.quickSuggestionsDelay&&t.parameterHints===n.parameterHints&&t.iconsInSuggestions===n.iconsInSuggestions&&t.formatOnType===n.formatOnType&&t.formatOnPaste===n.formatOnPaste&&t.suggestOnTriggerCharacters===n.suggestOnTriggerCharacters&&t.acceptSuggestionOnEnter===n.acceptSuggestionOnEnter&&t.acceptSuggestionOnCommitCharacter===n.acceptSuggestionOnCommitCharacter&&t.snippetSuggestions===n.snippetSuggestions&&t.wordBasedSuggestions===n.wordBasedSuggestions&&t.suggestSelection===n.suggestSelection&&t.suggestFontSize===n.suggestFontSize&&t.suggestLineHeight===n.suggestLineHeight&&t.selectionHighlight===n.selectionHighlight&&t.occurrencesHighlight===n.occurrencesHighlight&&t.codeLens===n.codeLens&&t.folding===n.folding&&t.foldingStrategy===n.foldingStrategy&&t.showFoldingControls===n.showFoldingControls&&t.matchBrackets===n.matchBrackets&&this._equalFindOptions(t.find,n.find)&&t.colorDecorators===n.colorDecorators&&u.equals(t.codeActionsOnSave,n.codeActionsOnSave)&&t.codeActionsOnSaveTimeout===n.codeActionsOnSaveTimeout&&t.lightbulbEnabled===n.lightbulbEnabled
},e._equalsQuickSuggestions=function(e,t){return"boolean"==typeof e?"boolean"==typeof t&&e===t:"boolean"!=typeof t&&(e.comments===t.comments&&e.other===t.other&&e.strings===t.strings)},e}();t.InternalEditorOptions=_;var y=function(){function e(){}return e.validate=function(e,t){var n=e.wordWrap;!0===n?n="on":!1===n&&(n="off"),n=f(n,t.wordWrap,["off","on","wordWrapColumn","bounded"]);var i,o=this._sanitizeViewInfo(e,t.viewInfo),s=this._sanitizeContribInfo(e,t.contribInfo);"string"==typeof e.multiCursorModifier&&(i="ctrlCmd"===e.multiCursorModifier?r.isMacintosh?"metaKey":"ctrlKey":"altKey");var a=f(i,t.multiCursorModifier,["altKey","metaKey","ctrlKey"]);return{inDiffEditor:c(e.inDiffEditor,t.inDiffEditor),wordSeparators:l(e.wordSeparators,t.wordSeparators),lineNumbersMinChars:d(e.lineNumbersMinChars,t.lineNumbersMinChars,1,10),lineDecorationsWidth:void 0===e.lineDecorationsWidth?t.lineDecorationsWidth:e.lineDecorationsWidth,readOnly:c(e.readOnly,t.readOnly),
mouseStyle:f(e.mouseStyle,t.mouseStyle,["text","default","copy"]),disableLayerHinting:c(e.disableLayerHinting,t.disableLayerHinting),automaticLayout:c(e.automaticLayout,t.automaticLayout),wordWrap:n,wordWrapColumn:d(e.wordWrapColumn,t.wordWrapColumn,1,1073741824),wordWrapMinified:c(e.wordWrapMinified,t.wordWrapMinified),wrappingIndent:function(e,t){return"string"!=typeof e?t:"same"===e?g.Same:"indent"===e?g.Indent:"deepIndent"===e?g.DeepIndent:g.None}(e.wrappingIndent,t.wrappingIndent),wordWrapBreakBeforeCharacters:l(e.wordWrapBreakBeforeCharacters,t.wordWrapBreakBeforeCharacters),wordWrapBreakAfterCharacters:l(e.wordWrapBreakAfterCharacters,t.wordWrapBreakAfterCharacters),wordWrapBreakObtrusiveCharacters:l(e.wordWrapBreakObtrusiveCharacters,t.wordWrapBreakObtrusiveCharacters),autoClosingBrackets:c(e.autoClosingBrackets,t.autoClosingBrackets),autoIndent:c(e.autoIndent,t.autoIndent),dragAndDrop:c(e.dragAndDrop,t.dragAndDrop),emptySelectionClipboard:c(e.emptySelectionClipboard,t.emptySelectionClipboard),
useTabStops:c(e.useTabStops,t.useTabStops),multiCursorModifier:a,multiCursorMergeOverlapping:c(e.multiCursorMergeOverlapping,t.multiCursorMergeOverlapping),accessibilitySupport:f(e.accessibilitySupport,t.accessibilitySupport,["auto","on","off"]),showUnused:c(e.showUnused,t.showUnused),viewInfo:o,contribInfo:s}},e._sanitizeScrollbarOpts=function(e,t,n){if("object"!=typeof e)return t;var r=d(e.horizontalScrollbarSize,t.horizontalScrollbarSize,0,1e3),i=d(e.verticalScrollbarSize,t.verticalScrollbarSize,0,1e3);return{vertical:h(e.vertical,t.vertical),horizontal:h(e.horizontal,t.horizontal),arrowSize:d(e.arrowSize,t.arrowSize,0,1e3),useShadows:c(e.useShadows,t.useShadows),verticalHasArrows:c(e.verticalHasArrows,t.verticalHasArrows),horizontalHasArrows:c(e.horizontalHasArrows,t.horizontalHasArrows),horizontalScrollbarSize:r,horizontalSliderSize:d(e.horizontalSliderSize,r,0,1e3),verticalScrollbarSize:i,verticalSliderSize:d(e.verticalSliderSize,i,0,1e3),handleMouseWheel:c(e.handleMouseWheel,t.handleMouseWheel),
mouseWheelScrollSensitivity:n}},e._sanitizeMinimapOpts=function(e,t){return"object"!=typeof e?t:{enabled:c(e.enabled,t.enabled),side:f(e.side,t.side,["right","left"]),showSlider:f(e.showSlider,t.showSlider,["always","mouseover"]),renderCharacters:c(e.renderCharacters,t.renderCharacters),maxColumn:d(e.maxColumn,t.maxColumn,1,1e4)}},e._santizeFindOpts=function(e,t){return"object"!=typeof e?t:{seedSearchStringFromSelection:c(e.seedSearchStringFromSelection,t.seedSearchStringFromSelection),autoFindInSelection:c(e.autoFindInSelection,t.autoFindInSelection),globalFindClipboard:c(e.globalFindClipboard,t.globalFindClipboard)}},e._santizeHoverOpts=function(e,t){var n;if("boolean"==typeof e)n={enabled:e};else{if("object"!=typeof e)return t;n=e}return{enabled:c(n.enabled,t.enabled),delay:d(n.delay,t.delay,0,1e4),sticky:c(n.sticky,t.sticky)}},e._sanitizeViewInfo=function(e,t){var n=[];if(Array.isArray(e.rulers)){for(var r=0,i=e.rulers.length;r<i;r++)n.push(d(e.rulers[r],0,0,1e4));n.sort()}
var o=t.renderLineNumbers,s=t.renderCustomLineNumbers;if(void 0!==e.lineNumbers){var a=e.lineNumbers;!0===a?a="on":!1===a&&(a="off"),"function"==typeof a?(o=4,s=a):o="interval"===a?3:"relative"===a?2:"on"===a?1:0}var u=c(e.fontLigatures,t.fontLigatures),h=c(e.disableMonospaceOptimizations,t.disableMonospaceOptimizations)||u,p=e.renderWhitespace;!0===p?p="boundary":!1===p&&(p="none"),p=f(e.renderWhitespace,t.renderWhitespace,["none","boundary","all"]);var g=e.renderLineHighlight;!0===g?g="line":!1===g&&(g="none"),g=f(e.renderLineHighlight,t.renderLineHighlight,["none","gutter","line","all"]);var _=function(e,t){var n=parseFloat(e);return isNaN(n)&&(n=t),n}(e.mouseWheelScrollSensitivity,t.scrollbar.mouseWheelScrollSensitivity);0===_&&(_=1);var y=this._sanitizeScrollbarOpts(e.scrollbar,t.scrollbar,_),b=this._sanitizeMinimapOpts(e.minimap,t.minimap);return{extraEditorClassName:l(e.extraEditorClassName,t.extraEditorClassName),disableMonospaceOptimizations:h,rulers:n,ariaLabel:l(e.ariaLabel,t.ariaLabel),
renderLineNumbers:o,renderCustomLineNumbers:s,selectOnLineNumbers:c(e.selectOnLineNumbers,t.selectOnLineNumbers),glyphMargin:c(e.glyphMargin,t.glyphMargin),revealHorizontalRightPadding:d(e.revealHorizontalRightPadding,t.revealHorizontalRightPadding,0,1e3),roundedSelection:c(e.roundedSelection,t.roundedSelection),overviewRulerLanes:d(e.overviewRulerLanes,t.overviewRulerLanes,0,3),overviewRulerBorder:c(e.overviewRulerBorder,t.overviewRulerBorder),cursorBlinking:function(e,t){if("string"!=typeof e)return t;switch(e){case"blink":return m.Blink;case"smooth":return m.Smooth;case"phase":return m.Phase;case"expand":return m.Expand;case"visible":case"solid":return m.Solid}return m.Blink}(e.cursorBlinking,t.cursorBlinking),mouseWheelZoom:c(e.mouseWheelZoom,t.mouseWheelZoom),cursorStyle:function(e,t){return"string"!=typeof e?t:"line"===e?v.Line:"block"===e?v.Block:"underline"===e?v.Underline:"line-thin"===e?v.LineThin:"block-outline"===e?v.BlockOutline:"underline-thin"===e?v.UnderlineThin:v.Line
}(e.cursorStyle,t.cursorStyle),cursorWidth:d(e.cursorWidth,t.cursorWidth,0,Number.MAX_VALUE),hideCursorInOverviewRuler:c(e.hideCursorInOverviewRuler,t.hideCursorInOverviewRuler),scrollBeyondLastLine:c(e.scrollBeyondLastLine,t.scrollBeyondLastLine),scrollBeyondLastColumn:d(e.scrollBeyondLastColumn,t.scrollBeyondLastColumn,0,1073741824),smoothScrolling:c(e.smoothScrolling,t.smoothScrolling),stopRenderingLineAfter:d(e.stopRenderingLineAfter,t.stopRenderingLineAfter,-1,1073741824),renderWhitespace:p,renderControlCharacters:c(e.renderControlCharacters,t.renderControlCharacters),fontLigatures:u,renderIndentGuides:c(e.renderIndentGuides,t.renderIndentGuides),highlightActiveIndentGuide:c(e.highlightActiveIndentGuide,t.highlightActiveIndentGuide),renderLineHighlight:g,scrollbar:y,minimap:b,fixedOverflowWidgets:c(e.fixedOverflowWidgets,t.fixedOverflowWidgets)}},e._sanitizeContribInfo=function(e,t){var n;n="object"==typeof e.quickSuggestions?s({other:!0},e.quickSuggestions):c(e.quickSuggestions,t.quickSuggestions),
"boolean"==typeof e.acceptSuggestionOnEnter&&(e.acceptSuggestionOnEnter=e.acceptSuggestionOnEnter?"on":"off");var r=this._santizeFindOpts(e.find,t.find);return{selectionClipboard:c(e.selectionClipboard,t.selectionClipboard),hover:this._santizeHoverOpts(e.hover,t.hover),links:c(e.links,t.links),contextmenu:c(e.contextmenu,t.contextmenu),quickSuggestions:n,quickSuggestionsDelay:d(e.quickSuggestionsDelay,t.quickSuggestionsDelay,-1073741824,1073741824),parameterHints:c(e.parameterHints,t.parameterHints),iconsInSuggestions:c(e.iconsInSuggestions,t.iconsInSuggestions),formatOnType:c(e.formatOnType,t.formatOnType),formatOnPaste:c(e.formatOnPaste,t.formatOnPaste),suggestOnTriggerCharacters:c(e.suggestOnTriggerCharacters,t.suggestOnTriggerCharacters),acceptSuggestionOnEnter:f(e.acceptSuggestionOnEnter,t.acceptSuggestionOnEnter,["on","smart","off"]),acceptSuggestionOnCommitCharacter:c(e.acceptSuggestionOnCommitCharacter,t.acceptSuggestionOnCommitCharacter),
snippetSuggestions:f(e.snippetSuggestions,t.snippetSuggestions,["top","bottom","inline","none"]),wordBasedSuggestions:c(e.wordBasedSuggestions,t.wordBasedSuggestions),suggestSelection:f(e.suggestSelection,t.suggestSelection,["first","recentlyUsed","recentlyUsedByPrefix"]),suggestFontSize:d(e.suggestFontSize,t.suggestFontSize,0,1e3),suggestLineHeight:d(e.suggestLineHeight,t.suggestLineHeight,0,1e3),selectionHighlight:c(e.selectionHighlight,t.selectionHighlight),occurrencesHighlight:c(e.occurrencesHighlight,t.occurrencesHighlight),codeLens:c(e.codeLens,t.codeLens),folding:c(e.folding,t.folding),foldingStrategy:f(e.foldingStrategy,t.foldingStrategy,["auto","indentation"]),showFoldingControls:f(e.showFoldingControls,t.showFoldingControls,["always","mouseover"]),matchBrackets:c(e.matchBrackets,t.matchBrackets),find:r,colorDecorators:c(e.colorDecorators,t.colorDecorators),lightbulbEnabled:c(!!e.lightbulb&&e.lightbulb.enabled,t.lightbulbEnabled),codeActionsOnSave:function(e,t){if(!e)return t
;for(var n=Object.create(null),r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],s=e[o];"boolean"==typeof s&&(n[o]=s)}return n}(e.codeActionsOnSave,{}),codeActionsOnSaveTimeout:d(e.codeActionsOnSaveTimeout,t.codeActionsOnSaveTimeout,1,1e4)}},e}();t.EditorOptionsValidator=y;var b=function(){function e(){}return e._tweakValidatedOptions=function(e,t){var r=2===t,i=1===t;return{inDiffEditor:e.inDiffEditor,wordSeparators:e.wordSeparators,lineNumbersMinChars:e.lineNumbersMinChars,lineDecorationsWidth:e.lineDecorationsWidth,readOnly:e.readOnly,mouseStyle:e.mouseStyle,disableLayerHinting:e.disableLayerHinting,automaticLayout:e.automaticLayout,wordWrap:e.wordWrap,wordWrapColumn:e.wordWrapColumn,wordWrapMinified:e.wordWrapMinified,wrappingIndent:e.wrappingIndent,wordWrapBreakBeforeCharacters:e.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:e.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:e.wordWrapBreakObtrusiveCharacters,autoClosingBrackets:e.autoClosingBrackets,autoIndent:e.autoIndent,
dragAndDrop:e.dragAndDrop,emptySelectionClipboard:e.emptySelectionClipboard,useTabStops:e.useTabStops,multiCursorModifier:e.multiCursorModifier,multiCursorMergeOverlapping:e.multiCursorMergeOverlapping,accessibilitySupport:e.accessibilitySupport,showUnused:e.showUnused,viewInfo:{extraEditorClassName:e.viewInfo.extraEditorClassName,disableMonospaceOptimizations:e.viewInfo.disableMonospaceOptimizations,rulers:e.viewInfo.rulers,ariaLabel:i?n.localize(0,null):e.viewInfo.ariaLabel,renderLineNumbers:e.viewInfo.renderLineNumbers,renderCustomLineNumbers:e.viewInfo.renderCustomLineNumbers,selectOnLineNumbers:e.viewInfo.selectOnLineNumbers,glyphMargin:e.viewInfo.glyphMargin,revealHorizontalRightPadding:e.viewInfo.revealHorizontalRightPadding,roundedSelection:!r&&e.viewInfo.roundedSelection,overviewRulerLanes:e.viewInfo.overviewRulerLanes,overviewRulerBorder:e.viewInfo.overviewRulerBorder,cursorBlinking:e.viewInfo.cursorBlinking,mouseWheelZoom:e.viewInfo.mouseWheelZoom,cursorStyle:e.viewInfo.cursorStyle,
cursorWidth:e.viewInfo.cursorWidth,hideCursorInOverviewRuler:e.viewInfo.hideCursorInOverviewRuler,scrollBeyondLastLine:e.viewInfo.scrollBeyondLastLine,scrollBeyondLastColumn:e.viewInfo.scrollBeyondLastColumn,smoothScrolling:e.viewInfo.smoothScrolling,stopRenderingLineAfter:e.viewInfo.stopRenderingLineAfter,renderWhitespace:r?"none":e.viewInfo.renderWhitespace,renderControlCharacters:!r&&e.viewInfo.renderControlCharacters,fontLigatures:!r&&e.viewInfo.fontLigatures,renderIndentGuides:!r&&e.viewInfo.renderIndentGuides,highlightActiveIndentGuide:e.viewInfo.highlightActiveIndentGuide,renderLineHighlight:e.viewInfo.renderLineHighlight,scrollbar:e.viewInfo.scrollbar,minimap:{enabled:!r&&e.viewInfo.minimap.enabled,side:e.viewInfo.minimap.side,renderCharacters:e.viewInfo.minimap.renderCharacters,showSlider:e.viewInfo.minimap.showSlider,maxColumn:e.viewInfo.minimap.maxColumn},fixedOverflowWidgets:e.viewInfo.fixedOverflowWidgets},contribInfo:{selectionClipboard:e.contribInfo.selectionClipboard,hover:e.contribInfo.hover,
links:!r&&e.contribInfo.links,contextmenu:e.contribInfo.contextmenu,quickSuggestions:e.contribInfo.quickSuggestions,quickSuggestionsDelay:e.contribInfo.quickSuggestionsDelay,parameterHints:e.contribInfo.parameterHints,iconsInSuggestions:e.contribInfo.iconsInSuggestions,formatOnType:e.contribInfo.formatOnType,formatOnPaste:e.contribInfo.formatOnPaste,suggestOnTriggerCharacters:e.contribInfo.suggestOnTriggerCharacters,acceptSuggestionOnEnter:e.contribInfo.acceptSuggestionOnEnter,acceptSuggestionOnCommitCharacter:e.contribInfo.acceptSuggestionOnCommitCharacter,snippetSuggestions:e.contribInfo.snippetSuggestions,wordBasedSuggestions:e.contribInfo.wordBasedSuggestions,suggestSelection:e.contribInfo.suggestSelection,suggestFontSize:e.contribInfo.suggestFontSize,suggestLineHeight:e.contribInfo.suggestLineHeight,selectionHighlight:!r&&e.contribInfo.selectionHighlight,occurrencesHighlight:!r&&e.contribInfo.occurrencesHighlight,codeLens:!r&&e.contribInfo.codeLens,folding:!r&&e.contribInfo.folding,
foldingStrategy:e.contribInfo.foldingStrategy,showFoldingControls:e.contribInfo.showFoldingControls,matchBrackets:!r&&e.contribInfo.matchBrackets,find:e.contribInfo.find,colorDecorators:e.contribInfo.colorDecorators,lightbulbEnabled:e.contribInfo.lightbulbEnabled,codeActionsOnSave:e.contribInfo.codeActionsOnSave,codeActionsOnSaveTimeout:e.contribInfo.codeActionsOnSaveTimeout}}},e.createInternalEditorOptions=function(e,t){var n;n="auto"===t.accessibilitySupport?e.accessibilitySupport:"on"===t.accessibilitySupport?2:1;var r,i=this._tweakValidatedOptions(t,n);if("string"==typeof i.lineDecorationsWidth&&/^\d+(\.\d+)?ch$/.test(i.lineDecorationsWidth)){r=parseFloat(i.lineDecorationsWidth.substr(0,i.lineDecorationsWidth.length-2))*e.fontInfo.typicalHalfwidthCharacterWidth}else r=d(i.lineDecorationsWidth,0,0,1e3);i.contribInfo.folding&&(r+=16);var o=C.compute({outerWidth:e.outerWidth,outerHeight:e.outerHeight,showGlyphMargin:i.viewInfo.glyphMargin,lineHeight:e.fontInfo.lineHeight,
showLineNumbers:0!==i.viewInfo.renderLineNumbers,lineNumbersMinChars:i.lineNumbersMinChars,lineNumbersDigitCount:e.lineNumbersDigitCount,lineDecorationsWidth:r,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,verticalScrollbarWidth:i.viewInfo.scrollbar.verticalScrollbarSize,horizontalScrollbarHeight:i.viewInfo.scrollbar.horizontalScrollbarSize,scrollbarArrowSize:i.viewInfo.scrollbar.arrowSize,verticalScrollbarHasArrows:i.viewInfo.scrollbar.verticalHasArrows,minimap:i.viewInfo.minimap.enabled,minimapSide:i.viewInfo.minimap.side,minimapRenderCharacters:i.viewInfo.minimap.renderCharacters,minimapMaxColumn:i.viewInfo.minimap.maxColumn,pixelRatio:e.pixelRatio}),s=null,a=i.wordWrap,u=i.wordWrapColumn,c=i.wordWrapMinified;s=2===n?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:c&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,o.viewportColumn)}:"on"===a?{isWordWrapMinified:!1,
isViewportWrapping:!0,wrappingColumn:Math.max(1,o.viewportColumn)}:"bounded"===a?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,o.viewportColumn),u)}:"wordWrapColumn"===a?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:u}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1};var l={inDiffEditor:i.inDiffEditor,isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn,wrappingIndent:i.wrappingIndent,wordWrapBreakBeforeCharacters:i.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:i.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:i.wordWrapBreakObtrusiveCharacters},f="monaco-editor";return i.viewInfo.extraEditorClassName&&(f+=" "+i.viewInfo.extraEditorClassName),e.extraEditorClassName&&(f+=" "+e.extraEditorClassName),i.viewInfo.fontLigatures&&(f+=" enable-ligatures"),
"default"===i.mouseStyle?f+=" mouse-default":"copy"===i.mouseStyle&&(f+=" mouse-copy"),new _({canUseLayerHinting:!i.disableLayerHinting,pixelRatio:e.pixelRatio,editorClassName:f,lineHeight:e.fontInfo.lineHeight,readOnly:i.readOnly,accessibilitySupport:n,multiCursorModifier:i.multiCursorModifier,multiCursorMergeOverlapping:i.multiCursorMergeOverlapping,wordSeparators:i.wordSeparators,autoClosingBrackets:i.autoClosingBrackets,autoIndent:i.autoIndent,useTabStops:i.useTabStops,tabFocusMode:!!i.readOnly||e.tabFocusMode,dragAndDrop:i.dragAndDrop,emptySelectionClipboard:i.emptySelectionClipboard&&e.emptySelectionClipboard,layoutInfo:o,fontInfo:e.fontInfo,viewInfo:i.viewInfo,wrappingInfo:l,contribInfo:i.contribInfo,showUnused:i.showUnused})},e}();t.InternalEditorOptionsFactory=b;var C=function(){function e(){}return e.compute=function(e){
var t=0|e.outerWidth,n=0|e.outerHeight,r=e.showGlyphMargin,i=0|e.lineHeight,o=e.showLineNumbers,s=0|e.lineNumbersMinChars,a=0|e.lineNumbersDigitCount,u=0|e.lineDecorationsWidth,c=e.typicalHalfwidthCharacterWidth,l=e.maxDigitWidth,f=0|e.verticalScrollbarWidth,d=e.verticalScrollbarHasArrows,h=0|e.scrollbarArrowSize,g=0|e.horizontalScrollbarHeight,m=e.minimap,v=e.minimapSide,_=e.minimapRenderCharacters,y=0|e.minimapMaxColumn,b=e.pixelRatio,C=0;if(o){var E=Math.max(a,s);C=Math.round(E*l)}var S=0;r&&(S=i);var x,w,T,P,I=0,D=I+S,k=D+C,L=k+u,O=t-S-C-u;if(m){var R=void 0;b>=2?(x=_?p.Large:p.LargeBlocks,R=2/b):(x=_?p.Small:p.SmallBlocks,R=1/b);(T=Math.max(0,Math.floor((O-f-2)*R/(c+R))))/R>y&&(T=Math.floor(y*R)),P=O-T,"left"===v?(w=0,I+=T,D+=T,k+=T,L+=T):w=t-T-f}else w=0,T=0,x=p.None,P=O;var A=Math.max(1,Math.floor((P-f-2)/c)),N=d?h:0;return{width:t,height:n,glyphMarginLeft:I,glyphMarginWidth:S,glyphMarginHeight:n,lineNumbersLeft:D,lineNumbersWidth:C,lineNumbersHeight:n,decorationsLeft:k,decorationsWidth:u,
decorationsHeight:n,contentLeft:L,contentWidth:P,contentHeight:n,renderMinimap:x,minimapLeft:w,minimapWidth:T,viewportColumn:A,verticalScrollbarWidth:f,horizontalScrollbarHeight:g,overviewRuler:{top:N,width:f,height:n-2*N,right:0}}},e}();t.EditorLayoutProvider=C;t.EDITOR_FONT_DEFAULTS={fontFamily:r.isMacintosh?"Menlo, Monaco, 'Courier New', monospace":r.isLinux?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.isMacintosh?12:14,lineHeight:0,letterSpacing:0},t.EDITOR_MODEL_DEFAULTS={tabSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},t.EDITOR_DEFAULTS={inDiffEditor:!1,wordSeparators:o.USUAL_WORD_SEPARATORS,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:g.Same,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",
wordWrapBreakAfterCharacters:" \t})]?|&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:!0,autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:n.localize(1,null),renderLineNumbers:1,renderCustomLineNumbers:null,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:m.Blink,mouseWheelZoom:!1,cursorStyle:v.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{
vertical:i.ScrollbarVisibility.Auto,horizontal:i.ScrollbarVisibility.Auto,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:!0,iconsInSuggestions:!0,formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,snippetSuggestions:"inline",wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{
seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}}}),define(e[98],t([13,14]),function(e,t){return e.create("vs/editor/common/modes/modesRegistry",t)}),define(e[99],t([13,14]),function(e,t){return e.create("vs/platform/configuration/common/configurationRegistry",t)}),define(e[100],t([13,14]),function(e,t){return e.create("vs/platform/extensionManagement/common/extensionManagement",t)}),define(e[101],t([13,14]),function(e,t){return e.create("vs/platform/markers/common/markers",t)}),define(e[102],t([13,14]),function(e,t){return e.create("vs/platform/workspaces/common/workspaces",t)}),define(e[103],t([13,14]),function(e,t){return e.create("vs/workbench/api/node/extHostDebugService",t)}),define(e[104],t([13,14]),function(e,t){return e.create("vs/workbench/api/node/extHostDiagnostics",t)}),define(e[105],t([13,14]),function(e,t){return e.create("vs/workbench/api/node/extHostExtensionActivator",t)
}),define(e[106],t([13,14]),function(e,t){return e.create("vs/workbench/api/node/extHostProgress",t)}),define(e[107],t([13,14]),function(e,t){return e.create("vs/workbench/api/node/extHostTask",t)}),define(e[108],t([13,14]),function(e,t){return e.create("vs/workbench/api/node/extHostTreeViews",t)}),define(e[109],t([13,14]),function(e,t){return e.create("vs/workbench/api/node/extHostWorkspace",t)}),define(e[154],t([13,14]),function(e,t){return e.create("vs/workbench/node/extensionHostMain",t)}),define(e[111],t([13,14]),function(e,t){return e.create("vs/workbench/parts/debug/node/debugAdapter",t)}),define(e[112],t([13,14]),function(e,t){return e.create("vs/workbench/parts/debug/node/terminals",t)}),define(e[113],t([13,14]),function(e,t){return e.create("vs/workbench/services/configurationResolver/node/variableResolver",t)}),define(e[6],t([0,1]),function(e,t){"use strict";function n(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],
t[i.DI_TARGET]=t)}function r(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);var t=function(e,r,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,i,!1)};return t.toString=function(){return e},i.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i=t._util||(t._util={})),t.IInstantiationService=r("instantiationService"),t.createDecorator=r,t.optional=function(e){return function(t,r,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,i,!0)}}}),define(e[67],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IModeService=n.createDecorator("modeService")}),define(e[36],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0
}),t.IModelService=n.createDecorator("modelService"),t.shouldSynchronizeModel=function(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}}),define(e[117],t([0,1,4,57,36]),function(e,t,n,r,i){"use strict";function o(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(o):e.exclusive)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new n.Emitter}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this,r={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(r),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),{dispose:function(){if(r){var e=n._entries.indexOf(r);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),r=void 0)}}}},e.prototype.has=function(e){return this.all(e).length>0},e.prototype.all=function(e){
if(!e)return[];this._updateScores(e);for(var t=[],n=0,r=this._entries;n<r.length;n++){var i=r[n];i._score>0&&t.push(i.provider)}return t},e.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,function(e){return t.push(e.provider)}),t},e.prototype.orderedGroups=function(e){var t,n,r=[];return this._orderedForEach(e,function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],r.push(t))}),r},e.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0;n<this._entries.length;n++){var r=this._entries[n];r._score>0&&t(r)}}},e.prototype._updateScores=function(t){var n={uri:t.uri.toString(),language:t.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==n.language||this._lastCandidate.uri!==n.uri){this._lastCandidate=n;for(var s=0,a=this._entries;s<a.length;s++){var u=a[s];if(u._score=r.score(u.selector,t.uri,t.getLanguageIdentifier().language,i.shouldSynchronizeModel(t)),o(u.selector)&&u._score>0){
for(var c=0,l=this._entries;c<l.length;c++){l[c]._score=0}u._score=1e3;break}}this._entries.sort(e._compareByScoreAndTime)}},e._compareByScoreAndTime=function(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0},e}();t.default=s}),define(e[31],t([0,1,117,84,18]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Null=0]="Null",e[e.PlainText=1]="PlainText"}(t.LanguageId||(t.LanguageId={}));var o=function(){return function(e,t){this.language=e,this.id=t}}();t.LanguageIdentifier=o;!function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"}(t.FontStyle||(t.FontStyle={}));!function(e){e[e.None=0]="None",e[e.DefaultForeground=1]="DefaultForeground",e[e.DefaultBackground=2]="DefaultBackground"}(t.ColorId||(t.ColorId={}));!function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=4]="RegEx"
}(t.StandardTokenType||(t.StandardTokenType={}));!function(e){e[e.LANGUAGEID_MASK=255]="LANGUAGEID_MASK",e[e.TOKEN_TYPE_MASK=1792]="TOKEN_TYPE_MASK",e[e.FONT_STYLE_MASK=14336]="FONT_STYLE_MASK",e[e.FOREGROUND_MASK=8372224]="FOREGROUND_MASK",e[e.BACKGROUND_MASK=4286578688]="BACKGROUND_MASK",e[e.LANGUAGEID_OFFSET=0]="LANGUAGEID_OFFSET",e[e.TOKEN_TYPE_OFFSET=8]="TOKEN_TYPE_OFFSET",e[e.FONT_STYLE_OFFSET=11]="FONT_STYLE_OFFSET",e[e.FOREGROUND_OFFSET=14]="FOREGROUND_OFFSET",e[e.BACKGROUND_OFFSET=23]="BACKGROUND_OFFSET"}(t.MetadataConsts||(t.MetadataConsts={}));var s=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},
e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),r=this.getFontStyle(e),i="color: "+t[n]+";";return 1&r&&(i+="font-style: italic;"),2&r&&(i+="font-weight: bold;"),4&r&&(i+="text-decoration: underline;"),i},e}();t.TokenMetadata=s;!function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(t.SuggestTriggerKind||(t.SuggestTriggerKind={}));!function(e){e[e.Automatic=1]="Automatic",e[e.Manual=2]="Manual"}(t.CodeActionTrigger||(t.CodeActionTrigger={}));!function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(t.DocumentHighlightKind||(t.DocumentHighlightKind={}));var a;!function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",
e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(a=t.SymbolKind||(t.SymbolKind={})),t.symbolKindToCssClass=function(){var e=Object.create(null);return e[a.File]="file",e[a.Module]="module",e[a.Namespace]="namespace",e[a.Package]="package",e[a.Class]="class",e[a.Method]="method",e[a.Property]="property",e[a.Field]="field",e[a.Constructor]="constructor",e[a.Enum]="enum",e[a.Interface]="interface",e[a.Function]="function",e[a.Variable]="variable",e[a.Constant]="constant",e[a.String]="string",e[a.Number]="number",e[a.Boolean]="boolean",e[a.Array]="array",e[a.Object]="object",e[a.Key]="key",e[a.Null]="null",e[a.EnumMember]="enum-member",e[a.Struct]="struct",e[a.Event]="event",e[a.Operator]="operator",
e[a.TypeParameter]="type-parameter",function(t){return e[t]||"property"}}();var u=function(){function e(e){this.value=e}return e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e}();t.FoldingRangeKind=u,t.isResourceFileEdit=function(e){return i.isObject(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))},t.isResourceTextEdit=function(e){return i.isObject(e)&&e.resource&&Array.isArray(e.edits)};!function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"}(t.CommentThreadCollapsibleState||(t.CommentThreadCollapsibleState={})),t.ReferenceProviderRegistry=new n.default,t.RenameProviderRegistry=new n.default,t.SuggestRegistry=new n.default,t.SignatureHelpProviderRegistry=new n.default,t.HoverProviderRegistry=new n.default,t.DocumentSymbolProviderRegistry=new n.default,t.DocumentHighlightProviderRegistry=new n.default,t.DefinitionProviderRegistry=new n.default,t.ImplementationProviderRegistry=new n.default,t.TypeDefinitionProviderRegistry=new n.default,
t.CodeLensProviderRegistry=new n.default,t.CodeActionProviderRegistry=new n.default,t.DocumentFormattingEditProviderRegistry=new n.default,t.DocumentRangeFormattingEditProviderRegistry=new n.default,t.OnTypeFormattingEditProviderRegistry=new n.default,t.LinkProviderRegistry=new n.default,t.ColorProviderRegistry=new n.default,t.FoldingRangeProviderRegistry=new n.default,t.TokenizationRegistry=new r.TokenizationRegistryImpl}),define(e[119],t([0,1,31]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var r=t<<1,i=r+(n<<1),o=r;o<i;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0},e.prototype.getLineContent=function(){return this._text},
e.prototype.getCount=function(){return this._tokensCount},e.prototype.getStartOffset=function(e){return e>0?this._tokens[e-1<<1]:0},e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return n.TokenMetadata.getLanguageId(t)},e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return n.TokenMetadata.getTokenType(t)},e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return n.TokenMetadata.getForeground(t)},e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return n.TokenMetadata.getClassNameFromMetadata(t)},e.prototype.getInlineStyle=function(e,t){var r=this._tokens[1+(e<<1)];return n.TokenMetadata.getInlineStyleFromMetadata(r,t)},e.prototype.getEndOffset=function(e){return this._tokens[e<<1]},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)},e.prototype.inflate=function(){return this},e.prototype.sliceAndInflate=function(e,t,n){return new i(this,e,t,n)},e.convertToEndOffset=function(e,t){
for(var n=(e.length>>>1)-1,r=0;r<n;r++)e[r<<1]=e[r+1<<1];e[n<<1]=t},e.findIndexInTokensArray=function(e,t){if(e.length<=2)return 0;for(var n=0,r=(e.length>>>1)-1;n<r;){var i=n+Math.floor((r-n)/2),o=e[i<<1];if(o===t)return i+1;o<t?n=i+1:o>t&&(r=i)}return n},e}();t.LineTokens=r;var i=function(){function e(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var i=this._firstTokenIndex,o=e.getCount();i<o;i++){if(e.getStartOffset(i)>=n)break;this._tokensCount++}}return e.prototype.equals=function(t){return t instanceof e&&(this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount))},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},e.prototype.getEndOffset=function(e){
var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},e.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},e}();t.SlicedLineTokens=i}),define(e[58],t([0,1,31,126]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}();t.NULL_STATE=new i,t.NULL_MODE_ID="vs.editor.nullMode",t.NULL_LANGUAGE_IDENTIFIER=new n.LanguageIdentifier(t.NULL_MODE_ID,0),t.nullTokenize=function(e,t,n,i){return new r.TokenizationResult([new r.Token(i,"",e)],n)},t.nullTokenize2=function(e,t,n,i){
var o=new Uint32Array(2);return o[0]=i,o[1]=(16384|e<<0|2<<23)>>>0,new r.TokenizationResult2(o,n)}}),define(e[121],t([0,1,119,12,25,17,58]),function(e,t,n,r,i,o,s){"use strict";function a(e){return(16384|e<<0|2<<23)>>>0}Object.defineProperty(t,"__esModule",{value:!0});var u=new Uint32Array(0).buffer,c=function(){function e(e){this._state=e,this._lineTokens=null,this._invalid=!0}return e.prototype.deleteBeginning=function(e){null!==this._lineTokens&&this._lineTokens!==u&&this.delete(0,e)},e.prototype.deleteEnding=function(e){if(null!==this._lineTokens&&this._lineTokens!==u){var t=new Uint32Array(this._lineTokens),n=t[t.length-2];this.delete(e,n)}},e.prototype.delete=function(e,t){if(null!==this._lineTokens&&this._lineTokens!==u&&e!==t){var r=new Uint32Array(this._lineTokens),i=r.length>>>1;if(0!==e||r[r.length-2]!==t){var o=n.LineTokens.findIndexInTokensArray(r,e),s=o>0?r[o-1<<1]:0;if(t<r[o<<1])for(var a=t-e,c=o;c<i;c++)r[c<<1]-=a;else{var l,f;s!==e?(r[o<<1]=e,l=o+1<<1,f=e):(l=o<<1,f=s)
;for(var d=t-e,h=o+1;h<i;h++){var p=r[h<<1]-d;p>f&&(r[l++]=p,r[l++]=r[1+(h<<1)],f=p)}if(l!==r.length){var g=new Uint32Array(l);g.set(r.subarray(0,l),0),this._lineTokens=g.buffer}}}else this._lineTokens=u}},e.prototype.append=function(e){if(e!==u)if(this._lineTokens!==u){if(null!==this._lineTokens)if(null!==e){var t=new Uint32Array(this._lineTokens),n=new Uint32Array(e),r=n.length>>>1,i=new Uint32Array(t.length+n.length);i.set(t,0);for(var o=t.length,s=t[t.length-2],a=0;a<r;a++)i[o++]=n[a<<1]+s,i[o++]=n[1+(a<<1)];this._lineTokens=i.buffer}else this._lineTokens=null}else this._lineTokens=e},e.prototype.insert=function(e,t){if(this._lineTokens){var r=new Uint32Array(this._lineTokens),i=r.length>>>1,o=n.LineTokens.findIndexInTokensArray(r,e);if(o>0){(o>0?r[o-1<<1]:0)===e&&o--}for(var s=o;s<i;s++)r[s<<1]+=t}},e}(),l=function(){function e(e,t){if(this.languageIdentifier=e,this.tokenizationSupport=t,this._tokens=[],this.tokenizationSupport){var n=null;try{n=this.tokenizationSupport.getInitialState()}catch(e){
o.onUnexpectedError(e),this.tokenizationSupport=null}n&&(this._tokens[0]=new c(n))}this._invalidLineStartIndex=0,this._lastState=null}return Object.defineProperty(e.prototype,"inValidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0}),e.prototype.getTokens=function(e,t,r){var i=null;if(t<this._tokens.length&&this._tokens[t]&&(i=this._tokens[t]._lineTokens),null!==i&&i!==u)return new n.LineTokens(new Uint32Array(i),r);var o=new Uint32Array(2);return o[0]=r.length,o[1]=a(e),new n.LineTokens(o,r)},e.prototype.isCheapToTokenize=function(e){return this._invalidLineStartIndex+1>=e},e.prototype.hasLinesToTokenize=function(e){return this._invalidLineStartIndex<e.getLineCount()},e.prototype.invalidateLine=function(e){this._setIsInvalid(e,!0),e<this._invalidLineStartIndex&&(this._setIsInvalid(this._invalidLineStartIndex,!0),this._invalidLineStartIndex=e)},e.prototype._setIsInvalid=function(e,t){e<this._tokens.length&&this._tokens[e]&&(this._tokens[e]._invalid=t)},
e.prototype._isInvalid=function(e){return!(e<this._tokens.length&&this._tokens[e])||this._tokens[e]._invalid},e.prototype._getState=function(e){return e<this._tokens.length&&this._tokens[e]?this._tokens[e]._state:null},e.prototype._setTokens=function(e,t,r,i){var o;t<this._tokens.length&&this._tokens[t]?o=this._tokens[t]:(o=new c(null),this._tokens[t]=o),0!==r?(i&&0!==i.length||((i=new Uint32Array(2))[0]=0,i[1]=a(e)),n.LineTokens.convertToEndOffset(i,r),o._lineTokens=i.buffer):o._lineTokens=u},e.prototype._setState=function(e,t){if(e<this._tokens.length&&this._tokens[e])this._tokens[e]._state=t;else{var n=new c(t);this._tokens[e]=n}},e.prototype.applyEdits=function(e,t,n){for(var r=e.endLineNumber-e.startLineNumber,o=t,s=Math.min(r,o);s>=0;s--)this.invalidateLine(e.startLineNumber+s-1);this._acceptDeleteRange(e),this._acceptInsertText(new i.Position(e.startLineNumber,e.startColumn),t,n)},e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1
;if(!(t>=this._tokens.length))if(e.startLineNumber!==e.endLineNumber){var n=this._tokens[t];n.deleteEnding(e.startColumn-1);var r=e.endLineNumber-1,i=null;if(r<this._tokens.length){var o=this._tokens[r];o.deleteBeginning(e.endColumn-1),i=o._lineTokens}n.append(i),this._tokens.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber)}else{if(e.startColumn===e.endColumn)return;this._tokens[t].delete(e.startColumn-1,e.endColumn-1)}},e.prototype._acceptInsertText=function(e,t,n){if(0!==t||0!==n){var i=e.lineNumber-1;if(!(i>=this._tokens.length))if(0!==t){var o=this._tokens[i];o.deleteEnding(e.column-1),o.insert(e.column-1,n);for(var s=new Array(t),a=t-1;a>=0;a--)s[a]=new c(null);this._tokens=r.arrayInsert(this._tokens,e.lineNumber,s)}else this._tokens[i].insert(e.column-1,n)}},e.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var n=this._invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t,n),n},e.prototype._tokenizeText=function(e,t,n){var r=null;try{
r=this.tokenizationSupport.tokenize2(t,n,0)}catch(e){o.onUnexpectedError(e)}return r||(r=s.nullTokenize2(this.languageIdentifier.id,t,n,0)),r},e.prototype._updateTokensUntilLine=function(e,t,n){if(this.tokenizationSupport){for(var r=e.getLineCount(),i=n-1,a=this._invalidLineStartIndex;a<=i;a++){var u=a+1,c=null,l=e.getLineContent(a+1);try{var f=this._getState(a).clone();c=this.tokenizationSupport.tokenize2(l,f,0)}catch(e){o.onUnexpectedError(e)}if(c||(c=s.nullTokenize2(this.languageIdentifier.id,l,this._getState(a),0)),this._setTokens(this.languageIdentifier.id,a,l.length,c.tokens),t.registerChangedTokens(a+1),this._setIsInvalid(a,!1),u<r)if(null!==this._getState(u)&&c.endState.equals(this._getState(u))){for(var d=a+1;d<r&&!this._isInvalid(d);){if(d+1<r){if(null===this._getState(d+1))break}else if(null===this._lastState)break;d++}this._invalidLineStartIndex=Math.max(this._invalidLineStartIndex,d),a=d-1}else this._setState(u,c.endState);else this._lastState=c.endState}
this._invalidLineStartIndex=Math.max(this._invalidLineStartIndex,i+1)}else this._invalidLineStartIndex=e.getLineCount()},e}();t.ModelLinesTokens=l;var f=function(){function e(){this._ranges=[]}return e.prototype.registerChangedTokens=function(e){var t=this._ranges,n=t.length,r=n>0?t[n-1]:null;r&&r.toLineNumber===e-1?r.toLineNumber++:t[n]={fromLineNumber:e,toLineNumber:e}},e.prototype.build=function(){return 0===this._ranges.length?null:{ranges:this._ranges}},e}();t.ModelTokensChangedEventBuilder=f}),define(e[122],t([0,1,3,4,22,31,137,24,65,142,17,7,140,11,110,58,46,47,25,56,41,121,138,55,61,2,152]),function(e,t,r,i,o,s,a,u,c,l,f,d,h,p,g,m,v,_,y,b,C,E,S,x,w,T,P){"use strict";function I(){return new P.PieceTreeTextBufferBuilder}function D(e){var t=I();return t.acceptChunk(e),t.finish()}function k(e,t){return("string"==typeof e?D(e):e).create(t)}function L(e){return e.replace(/[^a-z0-9\-_]/gi," ")}function O(e){return e instanceof W?e:W.createDynamic(e)}Object.defineProperty(t,"__esModule",{value:!0}),
t.createTextBufferFactory=D,t.createTextBufferFactoryFromStream=function(e,t){return new T.TPromise(function(n,r,i){var o=!1,s=I();e.on("data",function(e){t&&(e=t(e)),s.acceptChunk(e)}),e.on("error",function(e){o||(o=!0,r(e))}),e.on("end",function(){o||(o=!0,n(s.finish()))})})},t.createTextBufferFactoryFromSnapshot=function(e){for(var t,n=I();"string"==typeof(t=e.read());)n.acceptChunk(t);return n.finish()},t.createTextBuffer=k;var R=0;t.LONG_LINE_BOUNDARY=1e4;var A=function(){function e(e){this._source=e,this._eos=!1}return e.prototype.read=function(){if(this._eos)return null;for(var e=[],t=0,n=0;;){var r=this._source.read();if(null===r)return this._eos=!0,0===t?null:e.join("");if(r.length>0&&(e[t++]=r,n+=r.length),n>=65536)return e.join("")}},e}(),N=function(e){function p(t,n,c,l){void 0===l&&(l=null);var f=e.call(this)||this;f._onWillDispose=f._register(new i.Emitter),f.onWillDispose=f._onWillDispose.event,f._onDidChangeDecorations=f._register(new j),
f.onDidChangeDecorations=f._onDidChangeDecorations.event,f._onDidChangeLanguage=f._register(new i.Emitter),f.onDidChangeLanguage=f._onDidChangeLanguage.event,f._onDidChangeLanguageConfiguration=f._register(new i.Emitter),f.onDidChangeLanguageConfiguration=f._onDidChangeLanguageConfiguration.event,f._onDidChangeTokens=f._register(new i.Emitter),f.onDidChangeTokens=f._onDidChangeTokens.event,f._onDidChangeOptions=f._register(new i.Emitter),f.onDidChangeOptions=f._onDidChangeOptions.event,f._eventEmitter=f._register(new H),R++,f.id="$model"+R,f.isForSimpleWidget=n.isForSimpleWidget,f._associatedResource=void 0===l||null===l?r.default.parse("inmemory://model/"+R):l,f._attachedEditorCount=0,f._buffer=k(t,n.defaultEOL),f._options=p.resolveOptions(f._buffer,n);var d=f._buffer.getLineCount(),h=f._buffer.getValueLengthInRange(new u.Range(1,1,d,f._buffer.getLineLength(d)+1),o.EndOfLinePreference.TextDefined)
;return n.largeFileOptimizations?f._isTooLargeForTokenization=h>p.LARGE_FILE_SIZE_THRESHOLD||d>p.LARGE_FILE_LINE_COUNT_THRESHOLD:f._isTooLargeForTokenization=!1,f._isTooLargeForSyncing=h>p.MODEL_SYNC_LIMIT,f._setVersionId(1),f._isDisposed=!1,f._isDisposing=!1,f._languageIdentifier=c||m.NULL_LANGUAGE_IDENTIFIER,f._tokenizationListener=s.TokenizationRegistry.onDidChange(function(e){-1!==e.changedLanguages.indexOf(f._languageIdentifier.language)&&(f._resetTokenizationState(),f.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:f.getLineCount()}]}),f._shouldAutoTokenize()&&f._warmUpTokens())}),f._revalidateTokensTimeout=-1,f._languageRegistryListener=b.LanguageConfigurationRegistry.onDidChange(function(e){e.languageIdentifier.id===f._languageIdentifier.id&&f._onDidChangeLanguageConfiguration.fire({})}),f._resetTokenizationState(),f._instanceId=function(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}(R),f._lastDecorationId=0,f._decorations=Object.create(null),
f._decorationsTree=new M,f._commandManager=new a.EditStack(f),f._isUndoing=!1,f._isRedoing=!1,f._trimAutoWhitespaceLines=null,f}return n(p,e),p.createFromString=function(e,t,n,r){return void 0===t&&(t=p.DEFAULT_CREATION_OPTIONS),void 0===n&&(n=null),void 0===r&&(r=null),new p(e,t,n,r)},p.resolveOptions=function(e,t){if(t.detectIndentation){var n=S.guessIndentation(e,t.tabSize,t.insertSpaces);return new o.TextModelResolvedOptions({tabSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new o.TextModelResolvedOptions({tabSize:t.tabSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},p.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent(function(t){return e(t.rawContentChangedEvent)})},p.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.rawContentChangedEvent)})},p.prototype.onDidChangeContent=function(e){
return this._eventEmitter.slowEvent(function(t){return e(t.contentChangedEvent)})},p.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._commandManager=null,this._decorations=null,this._decorationsTree=null,this._tokenizationListener.dispose(),this._languageRegistryListener.dispose(),this._clearTimers(),this._tokens=null,this._isDisposed=!0,this._buffer=null,e.prototype.dispose.call(this),this._isDisposing=!1},p.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},p.prototype.equalsTextBuffer=function(e){return this._assertNotDisposed(),this._buffer.equals(e)},p.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new l.InternalModelContentChangeEvent(e,t))},p.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=k(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},p.prototype._createContentChanged2=function(e,t,n,r,i,o,s){return{changes:[{range:e,rangeOffset:t,
rangeLength:n,text:r}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:i,isRedoing:o,isFlush:s}},p.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),r=this.getLineCount(),i=this.getLineMaxColumn(r);this._buffer=e,this._increaseVersionId(),this._resetTokenizationState(),this._decorations=Object.create(null),this._decorationsTree=new M,this._commandManager=new a.EditStack(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new l.ModelRawContentChangedEvent([new l.ModelRawFlush],this._versionId,!1,!1),this._createContentChanged2(new u.Range(1,1,r,i),0,n,this.getValue(),!1,!1,!0))}},p.prototype.setEOL=function(e){this._assertNotDisposed();var t=e===o.EndOfLineSequence.CRLF?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),r=this.getValueLengthInRange(n),i=this.getLineCount(),s=this.getLineMaxColumn(i);this._onBeforeEOLChange(),this._buffer.setEOL(t),
this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new l.ModelRawContentChangedEvent([new l.ModelRawEOLChanged],this._versionId,!1,!1),this._createContentChanged2(new u.Range(1,1,i,s),0,r,this.getValue(),!1,!1,!1))}},p.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},p.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,r=t.length;n<r;n++){var i=t[n],o=i.cachedAbsoluteStart-i.start,s=this._buffer.getOffsetAt(i.range.startLineNumber,i.range.startColumn),a=this._buffer.getOffsetAt(i.range.endLineNumber,i.range.endColumn);i.cachedAbsoluteStart=s,i.cachedAbsoluteEnd=a,i.cachedVersionId=e,i.start=s-o,i.end=a-o,h.recomputeMaxEnd(i)}},p.prototype._resetTokenizationState=function(){this._clearTimers();var e=this._isTooLargeForTokenization?null:s.TokenizationRegistry.get(this._languageIdentifier.language)
;this._tokens=new E.ModelLinesTokens(this._languageIdentifier,e),this._beginBackgroundTokenization()},p.prototype._clearTimers=function(){-1!==this._revalidateTokensTimeout&&(clearTimeout(this._revalidateTokensTimeout),this._revalidateTokensTimeout=-1)},p.prototype.onBeforeAttached=function(){this._attachedEditorCount++,this._warmUpTokens()},p.prototype.onBeforeDetached=function(){this._attachedEditorCount--},p.prototype._shouldAutoTokenize=function(){return this.isAttachedToEditor()},p.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0},p.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},p.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},p.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},p.prototype.isDisposed=function(){return this._isDisposed},p.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1
;for(var e=0,n=0,r=this._buffer.getLineCount(),i=1;i<=r;i++){var o=this._buffer.getLineLength(i);o>=t.LONG_LINE_BOUNDARY?n+=o:e+=o}return n>e},Object.defineProperty(p.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),p.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},p.prototype.updateOptions=function(e){this._assertNotDisposed();var t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,r=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,i=new o.TextModelResolvedOptions({tabSize:t,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r});if(!this._options.equals(i)){var s=this._options.createChangeEvent(i);this._options=i,this._onDidChangeOptions.fire(s)}},p.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=S.guessIndentation(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,
tabSize:n.tabSize})},p._normalizeIndentationFromWhitespace=function(e,t,n){for(var r=0,i=0;i<e.length;i++)"\t"===e.charAt(i)?r+=t:r++;var o="";if(!n){var s=Math.floor(r/t);r%=t;for(i=0;i<s;i++)o+="\t"}for(i=0;i<r;i++)o+=" ";return o},p.normalizeIndentation=function(e,t,n){var r=d.firstNonWhitespaceIndex(e);return-1===r&&(r=e.length),p._normalizeIndentationFromWhitespace(e.substring(0,r),t,n)+e.substring(r)},p.prototype.normalizeIndentation=function(e){return this._assertNotDisposed(),p.normalizeIndentation(e,this._options.tabSize,this._options.insertSpaces)},p.prototype.getOneIndent=function(){this._assertNotDisposed();var e=this._options.tabSize;if(this._options.insertSpaces){for(var t="",n=0;n<e;n++)t+=" ";return t}return"\t"},p.prototype.getVersionId=function(){return this._assertNotDisposed(),this._versionId},p.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()},p.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()},
p.prototype.getAlternativeVersionId=function(){return this._assertNotDisposed(),this._alternativeVersionId},p.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,!1);return this._buffer.getOffsetAt(t.lineNumber,t.column)},p.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)},p.prototype._increaseVersionId=function(){this._setVersionId(this._versionId+1)},p.prototype._setVersionId=function(e){this._versionId=e,this._alternativeVersionId=this._versionId},p.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e},p.prototype.getValue=function(e,t){void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),r=this.getValueInRange(n,e);return t?this._buffer.getBOM()+r:r},p.prototype.createSnapshot=function(e){return void 0===e&&(e=!1),new A(this._buffer.createSnapshot(e))},p.prototype.getValueLength=function(e,t){
void 0===t&&(t=!1),this._assertNotDisposed();var n=this.getFullModelRange(),r=this.getValueLengthInRange(n,e);return t?this._buffer.getBOM().length+r:r},p.prototype.getValueInRange=function(e,t){return void 0===t&&(t=o.EndOfLinePreference.TextDefined),this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(e),t)},p.prototype.getValueLengthInRange=function(e,t){return void 0===t&&(t=o.EndOfLinePreference.TextDefined),this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(e),t)},p.prototype.getLineCount=function(){return this._assertNotDisposed(),this._buffer.getLineCount()},p.prototype.getLineContent=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},p.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},p.prototype.getLinesContent=function(){
return this._assertNotDisposed(),this._buffer.getLinesContent()},p.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},p.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},p.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},p.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},p.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},p.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,r=this._buffer.getLineCount(),i=e.startLineNumber,o=e.startColumn;if(i<1)t=1,n=1;else if(i>r)t=r,
n=this.getLineMaxColumn(t);else if(t=0|i,o<=1)n=1;else{n=o>=(d=this.getLineMaxColumn(t))?d:0|o}var s,a,l=e.endLineNumber,f=e.endColumn;if(l<1)s=1,a=1;else if(l>r)s=r,a=this.getLineMaxColumn(s);else if(s=0|l,f<=1)a=1;else{var d=this.getLineMaxColumn(s);a=f>=d?d:0|f}return i===t&&o===n&&l===s&&f===a&&e instanceof u.Range&&!(e instanceof c.Selection)?e:new u.Range(t,n,s,a)},p.prototype._isValidPosition=function(e,t,n){if(isNaN(e))return!1;if(e<1)return!1;if(e>this._buffer.getLineCount())return!1;if(isNaN(t))return!1;if(t<1)return!1;if(t>this.getLineMaxColumn(e))return!1;if(n&&t>1){var r=this._buffer.getLineCharCode(e,t-2);if(d.isHighSurrogate(r))return!1}return!0},p.prototype._validatePosition=function(e,t,n){var r=Math.floor("number"!=typeof e||isNaN(e)?1:e),i=Math.floor("number"!=typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(r<1)return new y.Position(1,1);if(r>o)return new y.Position(o,this.getLineMaxColumn(o));if(i<=1)return new y.Position(r,1);var s=this.getLineMaxColumn(r)
;if(i>=s)return new y.Position(r,s);if(n){var a=this._buffer.getLineCharCode(r,i-2);if(d.isHighSurrogate(a))return new y.Position(r,i-1)}return new y.Position(r,i)},p.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof y.Position&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0)},p.prototype._isValidRange=function(e,t){var n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(n,r,!1))return!1;if(!this._isValidPosition(i,o,!1))return!1;if(t){var s=r>1?this._buffer.getLineCharCode(n,r-2):0,a=o>1&&o<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,o-2):0,u=d.isHighSurrogate(s),c=d.isHighSurrogate(a);return!u&&!c}return!0},p.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof u.Range&&!(e instanceof c.Selection)&&this._isValidRange(e,!0))return e
;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),r=t.lineNumber,i=t.column,o=n.lineNumber,s=n.column,a=i>1?this._buffer.getLineCharCode(r,i-2):0,l=s>1&&s<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,s-2):0,f=d.isHighSurrogate(a),h=d.isHighSurrogate(l);return f||h?r===o&&i===s?new u.Range(r,i-1,o,s-1):f&&h?new u.Range(r,i-1,o,s+1):f?new u.Range(r,i-1,o,s):new u.Range(r,i,o,s+1):new u.Range(r,i,o,s)},p.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},p.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new u.Range(1,1,e,this.getLineMaxColumn(e))},p.prototype.findMatchesLineByLine=function(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)},p.prototype.findMatches=function(e,t,n,r,i,o,s){void 0===s&&(s=999),this._assertNotDisposed();var a
;if(a=u.Range.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var c=new w.SearchParams(e,n,r,i).parseSearchRequest();return c?this.findMatchesLineByLine(a,c,o,s):[]}return w.TextModelSearch.findMatches(this,new w.SearchParams(e,n,r,i),a,o,s)},p.prototype.findNextMatch=function(e,t,n,r,i,o){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new w.SearchParams(e,n,r,i).parseSearchRequest(),c=this.getLineCount(),l=new u.Range(s.lineNumber,s.column,c,this.getLineMaxColumn(c)),f=this.findMatchesLineByLine(l,a,o,1);return w.TextModelSearch.findNextMatch(this,new w.SearchParams(e,n,r,i),s,o),f.length>0?f[0]:(l=new u.Range(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),(f=this.findMatchesLineByLine(l,a,o,1)).length>0?f[0]:null)}return w.TextModelSearch.findNextMatch(this,new w.SearchParams(e,n,r,i),s,o)},p.prototype.findPreviousMatch=function(e,t,n,r,i,o){this._assertNotDisposed();var s=this.validatePosition(t)
;return w.TextModelSearch.findPreviousMatch(this,new w.SearchParams(e,n,r,i),s,o)},p.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},p.prototype.pushEOL=function(e){if(("\n"===this.getEOL()?o.EndOfLineSequence.LF:o.EndOfLineSequence.CRLF)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},p.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},p.prototype._pushEditOperations=function(e,t,n){var r=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var i=t.map(function(e){return{range:r.validateRange(e.range),text:e.text}}),o=!0,s=0,a=e.length;s<a;s++){
for(var c=e[s],l=!1,f=0,d=i.length;f<d;f++){var h=(_=i[f].range).startLineNumber>c.endLineNumber,p=c.startLineNumber>_.endLineNumber;if(!h&&!p){l=!0;break}}if(!l){o=!1;break}}if(o)for(var s=0,a=this._trimAutoWhitespaceLines.length;s<a;s++){for(var g=this._trimAutoWhitespaceLines[s],m=this.getLineMaxColumn(g),v=!0,f=0,d=i.length;f<d;f++){var _=i[f].range,y=i[f].text;if(!(g<_.startLineNumber||g>_.endLineNumber)&&!(g===_.startLineNumber&&_.startColumn===m&&_.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(0)||g===_.startLineNumber&&1===_.startColumn&&_.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(y.length-1))){v=!1;break}}v&&t.push({range:new u.Range(g,1,g,m),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},p.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},
p._eolCount=function(e){for(var t=0,n=0,r=0,i=e.length;r<i;r++){var o=e.charCodeAt(r);13===o?(0===t&&(n=r),t++,r+1<i&&10===e.charCodeAt(r+1)&&r++):10===o&&(0===t&&(n=r),t++)}return 0===t&&(n=e.length),[t,n]},p.prototype._applyEdits=function(e){for(var t=0,n=e.length;t<n;t++)e[t].range=this.validateRange(e[t].range);var r=this._buffer.getLineCount(),i=this._buffer.applyEdits(e,this._options.trimAutoWhitespace),o=this._buffer.getLineCount(),s=i.changes;if(this._trimAutoWhitespaceLines=i.trimAutoWhitespaceLineNumbers,0!==s.length){for(var a=[],u=r,t=0,n=s.length;t<n;t++){var c=s[t],f=p._eolCount(c.text),d=f[0],h=f[1];this._tokens.applyEdits(c.range,d,h),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(c.rangeOffset,c.rangeLength,c.text.length,c.forceMoveMarkers);for(var g=c.range.startLineNumber,m=c.range.endLineNumber,v=m-g,_=d,y=Math.min(v,_),b=_-v,C=y;C>=0;C--){var E=g+C,S=o-u-b+E;a.push(new l.ModelRawLineChanged(E,this.getLineContent(S)))}if(y<v){var x=g+y
;a.push(new l.ModelRawLinesDeleted(x+1,m))}if(y<_){for(var w=g+y,T=_-y,P=o-u-T+w+1,I=[],D=0;D<T;D++){var k=P+D;I[k-P]=this.getLineContent(k)}a.push(new l.ModelRawLinesInserted(w+1,g+_,I))}u+=b}this._increaseVersionId(),this._emitContentChangedEvent(new l.ModelRawContentChangedEvent(a,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization(),i.reverseEdits},p.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();return this._isUndoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},p.prototype.undo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._undo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},
p.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();return this._isRedoing=!1,e?(this._overwriteAlternativeVersionId(e.recordedVersionId),e.selections):null},p.prototype.redo=function(){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._redo()}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},p.prototype.changeDecorations=function(e,t){void 0===t&&(t=0),this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}},p.prototype._changeDecorations=function(e,t){var n=this,r={addDecoration:function(t,r){return n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[],[{range:t,options:r}])[0]},changeDecoration:function(e,t){n._onDidChangeDecorations.fire(),n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._onDidChangeDecorations.fire(),
n._changeDecorationOptionsImpl(e,O(t))},removeDecoration:function(t){n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,r){return 0===t.length&&0===r.length?[]:(n._onDidChangeDecorations.fire(),n._deltaDecorationsImpl(e,t,r))}},i=null;try{i=t(r)}catch(e){f.onUnexpectedError(e)}return r.addDecoration=null,r.changeDecoration=null,r.removeDecoration=null,r.deltaDecorations=null,i},p.prototype.deltaDecorations=function(e,t,n){if(void 0===n&&(n=0),this._assertNotDisposed(),e||(e=[]),0===e.length&&0===t.length)return[];try{return this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}},p.prototype._getTrackedRange=function(e){return this.getDecorationRange(e)},p.prototype._setTrackedRange=function(e,t,n){var r=e?this._decorations[e]:null;if(!r)return t?this._deltaDecorationsImpl(0,[],[{range:t,options:B[n]}])[0]:null
;if(!t)return this._decorationsTree.delete(r),delete this._decorations[r.id],null;var i=this._validateRangeRelaxedNoAllocations(t),o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn),s=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);return this._decorationsTree.delete(r),r.reset(this.getVersionId(),o,s,i),r.setOptions(B[n]),this._decorationsTree.insert(r),r.id},p.prototype.removeAllDecorationsWithOwnerId=function(e){if(!this._isDisposed)for(var t=this._decorationsTree.collectNodesFromOwner(e),n=0,r=t.length;n<r;n++){var i=t[n];this._decorationsTree.delete(i),delete this._decorations[i.id]}},p.prototype.getDecorationOptions=function(e){var t=this._decorations[e];return t?t.options:null},p.prototype.getDecorationRange=function(e){var t=this._decorations[e];if(!t)return null;var n=this.getVersionId();return t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n),null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd)),t.range},
p.prototype.getLineDecorations=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=!1),e<1||e>this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},p.prototype.getLinesDecorations=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=!1);var i=this.getLineCount(),o=Math.min(i,Math.max(1,e)),s=Math.min(i,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new u.Range(o,1,s,a),n,r)},p.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=this.validateRange(e);return this._getDecorationsInRange(r,t,n)},p.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),r=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(r)},p.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),r=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(r)},p.prototype._getDecorationsInRange=function(e,t,n){
var r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),i=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),o=this.getVersionId(),s=this._decorationsTree.intervalSearch(r,i,t,n,o);return this._ensureNodesHaveRanges(s)},p.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];null===r.range&&(r.range=this._getRangeAt(r.cachedAbsoluteStart,r.cachedAbsoluteEnd))}return e},p.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e)},p.prototype._changeDecorationImpl=function(e,t){var n=this._decorations[e];if(n){var r=this._validateRangeRelaxedNoAllocations(t),i=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn),o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);this._decorationsTree.delete(n),n.reset(this.getVersionId(),i,o,r),this._decorationsTree.insert(n)}},p.prototype._changeDecorationOptionsImpl=function(e,t){var n=this._decorations[e];if(n){!!n.options.overviewRuler.color!==!!t.overviewRuler.color?(this._decorationsTree.delete(n),
n.setOptions(t),this._decorationsTree.insert(n)):n.setOptions(t)}},p.prototype._deltaDecorationsImpl=function(e,t,n){for(var r=this.getVersionId(),i=t.length,o=0,s=n.length,a=0,u=new Array(s);o<i||a<s;){var c=null;if(o<i){do{c=this._decorations[t[o++]]}while(!c&&o<i);c&&this._decorationsTree.delete(c)}if(a<s){if(!c){var l=++this._lastDecorationId,f=this._instanceId+";"+l;c=new h.IntervalNode(f,0,0),this._decorations[f]=c}var d=n[a],p=this._validateRangeRelaxedNoAllocations(d.range),g=O(d.options),m=this._buffer.getOffsetAt(p.startLineNumber,p.startColumn),v=this._buffer.getOffsetAt(p.endLineNumber,p.endColumn);c.ownerId=e,c.reset(r,m,v,p),c.setOptions(g),this._decorationsTree.insert(c),u[a]=c.id,a++}else c&&delete this._decorations[c.id]}return u},p.prototype.tokenizeViewport=function(e,t){if(this._tokens.tokenizationSupport){var n=Math.floor(.3*this._tokens.inValidLineStartIndex);if((e=Math.max(1,e-n))<=this._tokens.inValidLineStartIndex)this.forceTokenization(t);else{
var r=new E.ModelTokensChangedEventBuilder,i=this.getLineFirstNonWhitespaceColumn(e),o=[],s=e-1,a=null;if(i>0)for(;i>0&&s>=1;){var u=this.getLineFirstNonWhitespaceColumn(s);if(0!==u){if(u<i){if(a=this._tokens._getState(s-1))break;o.push(this.getLineContent(s)),i=u}s--}else s--}a||(a=this._tokens.tokenizationSupport.getInitialState());for(var c=a.clone(),l=o.length-1;l>=0;l--){c=(p=this._tokens._tokenizeText(this._buffer,o[l],c))?p.endState.clone():a.clone()}var f=Math.floor(.4*this._tokens.inValidLineStartIndex);t=Math.min(this.getLineCount(),t+f);for(var d=e;d<=t;d++){var h=this.getLineContent(d),p=this._tokens._tokenizeText(this._buffer,h,c);p?(this._tokens._setTokens(this._tokens.languageIdentifier.id,d-1,h.length,p.tokens),this._tokens._setIsInvalid(d-1,!1),this._tokens._setState(d-1,c),c=p.endState.clone(),r.registerChangedTokens(d)):c=a.clone()}var g=r.build();g&&this._onDidChangeTokens.fire(g)}}},p.prototype.forceTokenization=function(e){
if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");var t=new E.ModelTokensChangedEventBuilder;this._tokens._updateTokensUntilLine(this._buffer,t,e);var n=t.build();n&&this._onDidChangeTokens.fire(n)},p.prototype.isCheapToTokenize=function(e){return this._tokens.isCheapToTokenize(e)},p.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},p.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},p.prototype._getLineTokens=function(e){var t=this._buffer.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)},p.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},p.prototype.getModeId=function(){return this._languageIdentifier.language},p.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,
this._resetTokenizationState(),this.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},p.prototype.getLanguageIdAtPosition=function(e,t){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var n=this.validatePosition({lineNumber:e,column:t}),r=n.lineNumber,i=n.column,o=this._getLineTokens(r);return o.getLanguageId(o.findTokenIndexAtOffset(i-1))},p.prototype._beginBackgroundTokenization=function(){var e=this;this._shouldAutoTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout(function(){e._revalidateTokensTimeout=-1,e._revalidateTokensNow()},0))},p.prototype._warmUpTokens=function(){var e=Math.min(100,this.getLineCount());this._revalidateTokensNow(e),this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization()},p.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._buffer.getLineCount())
;for(var t=new E.ModelTokensChangedEventBuilder,n=g.StopWatch.create(!1);this._tokens.hasLinesToTokenize(this._buffer)&&!(n.elapsed()>20);){if(this._tokens._tokenizeOneLine(this._buffer,t)>=e)break}this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();var r=t.build();r&&this._onDidChangeTokens.fire(r)},p.prototype.emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},p.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var t=this.validatePosition(e),n=this.getLineContent(t.lineNumber),r=this._getLineTokens(t.lineNumber),i=r.findTokenIndexAtOffset(t.column-1),o=p._findLanguageBoundaries(r,i),s=o[0],a=o[1],u=C.getWordAtText(t.column,b.LanguageConfigurationRegistry.getWordDefinition(r.getLanguageId(i)),n.substring(s,a),s);if(u)return u;if(i>0&&s===t.column-1){var c=p._findLanguageBoundaries(r,i-1),l=c[0],f=c[1],d=C.getWordAtText(t.column,b.LanguageConfigurationRegistry.getWordDefinition(r.getLanguageId(i-1)),n.substring(l,f),l)
;if(d)return d}return null},p._findLanguageBoundaries=function(e,t){for(var n,r=e.getLanguageId(t),i=t;i>=0&&e.getLanguageId(i)===r;i--)n=e.getStartOffset(i);for(var o,i=t,s=e.getCount();i<s&&e.getLanguageId(i)===r;i++)o=e.getEndOffset(i);return[n,o]},p.prototype.getWordUntilPosition=function(e){var t=this.getWordAtPosition(e);return t?{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},p.prototype.findMatchingBracketUp=function(e,t){var n=e.toLowerCase(),r=this.validatePosition(t),i=this._getLineTokens(r.lineNumber),o=i.getLanguageId(i.findTokenIndexAtOffset(r.column-1)),s=b.LanguageConfigurationRegistry.getBracketsSupport(o);if(!s)return null;var a=s.textIsBracket[n];return a?this._findMatchingBracketUp(a,r):null},p.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e))},p.prototype._matchBracket=function(e){
var t=e.lineNumber,n=this._getLineTokens(t),r=this._buffer.getLineContent(t),i=n.findTokenIndexAtOffset(e.column-1);if(i<0)return null;var o=b.LanguageConfigurationRegistry.getBracketsSupport(n.getLanguageId(i));if(o&&!v.ignoreBracketsInToken(n.getStandardTokenType(i))){for(var s=Math.max(n.getStartOffset(i),e.column-1-o.maxBracketLength),a=Math.min(n.getEndOffset(i),e.column-1+o.maxBracketLength),u=null;;){if(!(l=_.BracketsUtils.findNextBracketInToken(o.forwardRegex,t,r,s,a)))break;if(l.startColumn<=e.column&&e.column<=l.endColumn){f=(f=r.substring(l.startColumn-1,l.endColumn-1)).toLowerCase();(d=this._matchFoundBracket(l,o.textIsBracket[f],o.textIsOpenBracket[f]))&&(u=d)}s=l.endColumn-1}if(u)return u}if(i>0&&n.getStartOffset(i)===e.column-1){a=n.getStartOffset(i);i--;var c=b.LanguageConfigurationRegistry.getBracketsSupport(n.getLanguageId(i));if(c&&!v.ignoreBracketsInToken(n.getStandardTokenType(i))){
var s=Math.max(n.getStartOffset(i),e.column-1-c.maxBracketLength),l=_.BracketsUtils.findPrevBracketInToken(c.reversedRegex,t,r,s,a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn){var f=r.substring(l.startColumn-1,l.endColumn-1);f=f.toLowerCase();var d=this._matchFoundBracket(l,c.textIsBracket[f],c.textIsOpenBracket[f]);if(d)return d}}}return null},p.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;if(n){if(r=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,r]}else{var r=this._findMatchingBracketUp(t,e.getStartPosition());if(r)return[e,r]}return null},p.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,r=e.reversedRegex,i=-1,o=t.lineNumber;o>=1;o--){var s=this._getLineTokens(o),a=s.getCount(),u=this._buffer.getLineContent(o),c=a-1,l=-1;for(o===t.lineNumber&&(c=s.findTokenIndexAtOffset(t.column-1),l=t.column-1);c>=0;c--){var f=s.getLanguageId(c),d=s.getStandardTokenType(c),h=s.getStartOffset(c),p=s.getEndOffset(c);if(-1===l&&(l=p),
f===n&&!v.ignoreBracketsInToken(d))for(;;){var g=_.BracketsUtils.findPrevBracketInToken(r,o,u,h,l);if(!g)break;var m=u.substring(g.startColumn-1,g.endColumn-1);if((m=m.toLowerCase())===e.open?i++:m===e.close&&i--,0===i)return g;l=g.startColumn-1}l=-1}}return null},p.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,r=e.forwardRegex,i=1,o=t.lineNumber,s=this.getLineCount();o<=s;o++){var a=this._getLineTokens(o),u=a.getCount(),c=this._buffer.getLineContent(o),l=0,f=0;for(o===t.lineNumber&&(l=a.findTokenIndexAtOffset(t.column-1),f=t.column-1);l<u;l++){var d=a.getLanguageId(l),h=a.getStandardTokenType(l),p=a.getStartOffset(l),g=a.getEndOffset(l);if(0===f&&(f=p),d===n&&!v.ignoreBracketsInToken(h))for(;;){var m=_.BracketsUtils.findNextBracketInToken(r,o,c,f,g);if(!m)break;var y=c.substring(m.startColumn-1,m.endColumn-1);if((y=y.toLowerCase())===e.open?i++:y===e.close&&i--,0===i)return m;f=m.endColumn-1}f=0}}return null},p.prototype.findPrevBracket=function(e){
for(var t=this.validatePosition(e),n=-1,r=null,i=t.lineNumber;i>=1;i--){var o=this._getLineTokens(i),s=o.getCount(),a=this._buffer.getLineContent(i),u=s-1,c=-1;for(i===t.lineNumber&&(u=o.findTokenIndexAtOffset(t.column-1),c=t.column-1);u>=0;u--){var l=o.getLanguageId(u),f=o.getStandardTokenType(u),d=o.getStartOffset(u),h=o.getEndOffset(u);if(-1===c&&(c=h),n!==l&&(n=l,r=b.LanguageConfigurationRegistry.getBracketsSupport(n)),r&&!v.ignoreBracketsInToken(f)){var p=_.BracketsUtils.findPrevBracketInToken(r.reversedRegex,i,a,d,c);if(p)return this._toFoundBracket(r,p)}c=-1}}return null},p.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=-1,r=null,i=t.lineNumber,o=this.getLineCount();i<=o;i++){var s=this._getLineTokens(i),a=s.getCount(),u=this._buffer.getLineContent(i),c=0,l=0;for(i===t.lineNumber&&(c=s.findTokenIndexAtOffset(t.column-1),l=t.column-1);c<a;c++){var f=s.getLanguageId(c),d=s.getStandardTokenType(c),h=s.getStartOffset(c),p=s.getEndOffset(c);if(0===l&&(l=h),n!==f&&(n=f,
r=b.LanguageConfigurationRegistry.getBracketsSupport(n)),r&&!v.ignoreBracketsInToken(d)){var g=_.BracketsUtils.findNextBracketInToken(r.forwardRegex,i,u,l,p);if(g)return this._toFoundBracket(r,g)}l=0}}return null},p.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var r=e.textIsBracket[n];return r?{range:t,open:r.open,close:r.close,isOpen:e.textIsOpenBracket[n]}:null},p.computeIndentLevel=function(e,t){for(var n=0,r=0,i=e.length;r<i;){var o=e.charCodeAt(r);if(32===o)n++;else{if(9!==o)break;n=n-n%t+t}r++}return r===i?-1:n},p.prototype._computeIndentLevel=function(e){return p.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)},p.prototype.getActiveIndentGuide=function(e,t,n){var r=this;this._assertNotDisposed();var i=this.getLineCount();if(e<1||e>i)throw new Error("Illegal value for lineNumber");for(var o=b.LanguageConfigurationRegistry.getFoldingRules(this._languageIdentifier.id),s=o&&o.offSide,a=-2,u=-1,c=-2,l=-1,f=function(e){
if(-1!==a&&(-2===a||a>e-1)){a=-1,u=-1;for(n=e-2;n>=0;n--){var t=r._computeIndentLevel(n);if(t>=0){a=n,u=t;break}}}if(-2===c){c=-1,l=-1;for(var n=e;n<i;n++){var o=r._computeIndentLevel(n);if(o>=0){c=n,l=o;break}}}},d=-2,h=-1,p=-2,g=-1,m=function(e){if(-2===d){d=-1,h=-1;for(n=e-2;n>=0;n--){var t=r._computeIndentLevel(n);if(t>=0){d=n,h=t;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1,g=-1;for(var n=e;n<i;n++){var o=r._computeIndentLevel(n);if(o>=0){p=n,g=o;break}}}},v=0,_=!0,y=0,C=!0,E=0,S=0;_||C;S++){var x=e-S,w=e+S;if(0!==S&&(x<1||x<t)&&(_=!1),0!==S&&(w>i||w>n)&&(C=!1),S>5e4&&(_=!1,C=!1),_){var T=void 0;if((I=this._computeIndentLevel(x-1))>=0?(c=x-1,l=I,T=Math.ceil(I/this._options.tabSize)):(f(x),T=this._getIndentLevelForWhitespaceLine(s,u,l)),0===S){if(v=x,y=w,0===(E=T))return{startLineNumber:v,endLineNumber:y,indent:E};continue}T>=E?v=x:_=!1}if(C){var P=void 0,I=this._computeIndentLevel(w-1);I>=0?(d=w-1,h=I,P=Math.ceil(I/this._options.tabSize)):(m(w),P=this._getIndentLevelForWhitespaceLine(s,h,g)),P>=E?y=w:C=!1}}
return{startLineNumber:v,endLineNumber:y,indent:E}},p.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var r=b.LanguageConfigurationRegistry.getFoldingRules(this._languageIdentifier.id),i=r&&r.offSide,o=new Array(t-e+1),s=-2,a=-1,u=-2,c=-1,l=e;l<=t;l++){var f=l-e,d=this._computeIndentLevel(l-1);if(d>=0)s=l-1,a=d,o[f]=Math.ceil(d/this._options.tabSize);else{if(-2===s){s=-1,a=-1;for(h=l-2;h>=0;h--){if((p=this._computeIndentLevel(h))>=0){s=h,a=p;break}}}if(-1!==u&&(-2===u||u<l-1)){u=-1,c=-1;for(var h=l;h<n;h++){var p=this._computeIndentLevel(h);if(p>=0){u=h,c=p;break}}}o[f]=this._getIndentLevelForWhitespaceLine(i,a,c)}}return o},p.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){
return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.tabSize):t===n?Math.ceil(n/this._options.tabSize):e?Math.ceil(n/this._options.tabSize):1+Math.floor(n/this._options.tabSize)},p.MODEL_SYNC_LIMIT=52428800,p.LARGE_FILE_SIZE_THRESHOLD=20971520,p.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5,p.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:x.EDITOR_MODEL_DEFAULTS.tabSize,insertSpaces:x.EDITOR_MODEL_DEFAULTS.insertSpaces,detectIndentation:!1,defaultEOL:o.DefaultEndOfLine.LF,trimAutoWhitespace:x.EDITOR_MODEL_DEFAULTS.trimAutoWhitespace,largeFileOptimizations:x.EDITOR_MODEL_DEFAULTS.largeFileOptimizations},p}(p.Disposable);t.TextModel=N;var M=function(){function e(){this._decorationsTree0=new h.IntervalTree,this._decorationsTree1=new h.IntervalTree}return e.prototype.intervalSearch=function(e,t,n,r,i){var o=this._decorationsTree0.intervalSearch(e,t,n,r,i),s=this._decorationsTree1.intervalSearch(e,t,n,r,i);return o.concat(s)},e.prototype.search=function(e,t,n,r){if(n)return this._decorationsTree1.search(e,t,r)
;var i=this._decorationsTree0.search(e,t,r),o=this._decorationsTree1.search(e,t,r);return i.concat(o)},e.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e),n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)},e.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder(),t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)},e.prototype.insert=function(e){h.getNodeIsInOverviewRuler(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)},e.prototype.delete=function(e){h.getNodeIsInOverviewRuler(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)},e.prototype.resolveNode=function(e,t){h.getNodeIsInOverviewRuler(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)},e.prototype.acceptReplace=function(e,t,n,r){this._decorationsTree0.acceptReplace(e,t,n,r),this._decorationsTree1.acceptReplace(e,t,n,r)},e}(),F=function(){return function(e){
this.color=d.empty,this.darkColor=d.empty,this.hcColor=d.empty,this.position=o.OverviewRulerLane.Center,this._resolvedColor=null,e&&e.color&&(this.color=e.color),e&&e.darkColor&&(this.darkColor=e.darkColor,this.hcColor=e.darkColor),e&&e.hcColor&&(this.hcColor=e.hcColor),e&&e.hasOwnProperty("position")&&(this.position=e.position)}}();t.ModelDecorationOverviewRulerOptions=F;var W=function(){function e(e){this.stickiness=e.stickiness||o.TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,this.zIndex=e.zIndex||0,this.className=e.className?L(e.className):d.empty,this.hoverMessage=e.hoverMessage||[],this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||[],this.isWholeLine=e.isWholeLine||!1,this.showIfCollapsed=e.showIfCollapsed||!1,this.overviewRuler=new F(e.overviewRuler),this.glyphMarginClassName=e.glyphMarginClassName?L(e.glyphMarginClassName):d.empty,this.linesDecorationsClassName=e.linesDecorationsClassName?L(e.linesDecorationsClassName):d.empty,
this.marginClassName=e.marginClassName?L(e.marginClassName):d.empty,this.inlineClassName=e.inlineClassName?L(e.inlineClassName):d.empty,this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=e.beforeContentClassName?L(e.beforeContentClassName):d.empty,this.afterContentClassName=e.afterContentClassName?L(e.afterContentClassName):d.empty}return e.register=function(t){return new e(t)},e.createDynamic=function(t){return new e(t)},e}();t.ModelDecorationOptions=W,W.EMPTY=W.register({});var B=[W.register({stickiness:o.TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges}),W.register({stickiness:o.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}),W.register({stickiness:o.TrackedRangeStickiness.GrowsOnlyWhenTypingBefore}),W.register({stickiness:o.TrackedRangeStickiness.GrowsOnlyWhenTypingAfter})],j=function(e){function t(){var t=e.call(this)||this;return t._actual=t._register(new i.Emitter),t.event=t._actual.event,t._deferredCnt=0,t._shouldFire=!1,t}
return n(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){this._deferredCnt--,0===this._deferredCnt&&this._shouldFire&&(this._shouldFire=!1,this._actual.fire({}))},t.prototype.fire=function(){this._shouldFire=!0},t}(p.Disposable);t.DidChangeDecorationsEmitter=j;var H=function(e){function t(){var t=e.call(this)||this;return t._fastEmitter=t._register(new i.Emitter),t.fastEvent=t._fastEmitter.event,t._slowEmitter=t._register(new i.Emitter),t.slowEvent=t._slowEmitter.event,t._deferredCnt=0,t._deferredEvent=null,t}return n(t,e),t.prototype.beginDeferredEmit=function(){this._deferredCnt++},t.prototype.endDeferredEmit=function(){if(this._deferredCnt--,0===this._deferredCnt&&null!==this._deferredEvent){var e=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(e),this._slowEmitter.fire(e)}},t.prototype.fire=function(e){
this._deferredCnt>0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},t}(p.Disposable);t.DidChangeContentEmitter=H}),define(e[123],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITextResourceConfigurationService=n.createDecorator("textResourceConfigurationService")}),define(e[124],t([0,1,2,18,6,52]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ICommandService=i.createDecorator("commandService"),t.CommandsRegistry=new(function(){function e(){this._commands=new Map}return e.prototype.registerCommand=function(e,t){var n=this;if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){for(var i=[],s=0,a=e.description.args;s<a.length;s++){var u=a[s];i.push(u.constraint)}var c=e.handler;e.handler=function(e){
for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return r.validateConstraints(t,i),c.apply(void 0,[e].concat(t))}}var l=e.id,f=this._commands.get(l);f||(f=new o.LinkedList,this._commands.set(l,f));var d=f.unshift(e);return{dispose:function(){d(),n._commands.get(l).isEmpty()&&n._commands.delete(l)}}},e.prototype.getCommand=function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return t.iterator().next().value},e.prototype.getCommands=function(){var e=this,t=Object.create(null);return this._commands.forEach(function(n,r){t[r]=e.getCommand(r)}),t},e}()),t.NullCommandService={_serviceBrand:void 0,onWillExecuteCommand:function(){return{dispose:function(){}}},executeCommand:function(){return n.TPromise.as(void 0)}}}),define(e[42],t([0,1,6,7]),function(e,t,r,i){"use strict";function o(e,t){var n=e.getType(),r=t.getType();if(n!==r)return n-r;switch(n){case s.Defined:case s.Not:case s.Equals:case s.NotEquals:case s.Regex:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}
Object.defineProperty(t,"__esModule",{value:!0});var s;!function(e){e[e.Defined=1]="Defined",e[e.Not=2]="Not",e[e.Equals=3]="Equals",e[e.NotEquals=4]="NotEquals",e[e.And=5]="And",e[e.Regex=6]="Regex"}(s=t.ContextKeyExprType||(t.ContextKeyExprType={}));var a=function(){function e(){}return e.has=function(e){return new u(e)},e.equals=function(e,t){return new c(e,t)},e.notEquals=function(e,t){return new l(e,t)},e.regex=function(e,t){return new d(e,t)},e.not=function(e){return new f(e)},e.and=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new h(e)},e.deserialize=function(e){var t=this;if(!e)return null;var n=e.split("&&");return new h(n.map(function(e){return t._deserializeOne(e)})).normalize()},e._deserializeOne=function(e){if((e=e.trim()).indexOf("!=")>=0){t=e.split("!=");return new l(t[0].trim(),this._deserializeValue(t[1]))}if(e.indexOf("==")>=0){t=e.split("==");return new c(t[0].trim(),this._deserializeValue(t[1]))}if(e.indexOf("=~")>=0){var t=e.split("=~")
;return new d(t[0].trim(),this._deserializeRegexValue(t[1]))}return/^\!\s*/.test(e)?new f(e.substr(1).trim()):new u(e)},e._deserializeValue=function(e){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var t=/^'([^']*)'$/.exec(e);return t?t[1].trim():e},e._deserializeRegexValue=function(e){if(i.isFalsyOrWhitespace(e))return console.warn("missing regexp-value for =~-expression"),null;var t=e.indexOf("/"),n=e.lastIndexOf("/");if(t===n||t<0)return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null;var r=e.slice(t+1,n),o="i"===e[n+1]?"i":"";try{return new RegExp(r,o)}catch(t){return console.warn("bad regexp-value '"+e+"', parse error: "+t),null}},e}();t.ContextKeyExpr=a;var u=function(){function e(e){this.key=e}return e.prototype.getType=function(){return s.Defined},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!!e.getValue(this.key)},
e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return this.key},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyDefinedExpr=u;var c=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return s.Equals},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new u(this.key):new f(this.key):this},e.prototype.serialize=function(){return"boolean"==typeof this.value?this.normalize().serialize():this.key+" == '"+this.value+"'"},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyEqualsExpr=c;var l=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return s.NotEquals},
e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new f(this.key):new u(this.key):this},e.prototype.serialize=function(){return"boolean"==typeof this.value?this.normalize().serialize():this.key+" != '"+this.value+"'"},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyNotEqualsExpr=l;var f=function(){function e(e){this.key=e}return e.prototype.getType=function(){return s.Not},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!e.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return"!"+this.key},
e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyNotExpr=f;var d=function(){function e(e,t){this.key=e,this.regexp=t}return e.prototype.getType=function(){return s.Regex},e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;var t=this.regexp?this.regexp.source:void 0;return t<e.regexp.source?-1:t>e.regexp.source?1:0},e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:void 0;return this.key===t.key&&n===t.regexp.source}return!1},e.prototype.evaluate=function(e){return!!this.regexp&&this.regexp.test(e.getValue(this.key))},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){var e=this.regexp?"/"+this.regexp.source+"/"+(this.regexp.ignoreCase?"i":""):"/invalid/";return this.key+" =~ "+e},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyRegexExpr=d;var h=function(){function e(t){this.expr=e._normalizeArr(t)}return e.prototype.getType=function(){return s.And},e.prototype.equals=function(t){
if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,r=this.expr.length;n<r;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0}return!1},e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0},e._normalizeArr=function(t){var n=[];if(t){for(var r=0,i=t.length;r<i;r++){var s=t[r];s&&((s=s.normalize())&&(s instanceof e?n=n.concat(s.expr):n.push(s)))}n.sort(o)}return n},e.prototype.normalize=function(){return 0===this.expr.length?null:1===this.expr.length?this.expr[0]:this},e.prototype.serialize=function(){return 0===this.expr.length?"":1===this.expr.length?this.normalize().serialize():this.expr.map(function(e){return e.serialize()}).join(" && ")},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var r=n[t];e.push.apply(e,r.keys())}return e},e}();t.ContextKeyAndExpr=h;var p=function(e){function t(t,n){var r=e.call(this,t)||this;return r._defaultValue=n,r}return n(t,e),t.prototype.bindTo=function(e){
return e.createKey(this.key,this._defaultValue)},t.prototype.getValue=function(e){return e.getContextKeyValue(this.key)},t.prototype.toNegated=function(){return a.not(this.key)},t.prototype.isEqualTo=function(e){return a.equals(this.key,e)},t.prototype.notEqualsTo=function(e){return a.notEquals(this.key,e)},t}(u);t.RawContextKey=p,t.IContextKeyService=r.createDecorator("contextKeyService"),t.SET_CONTEXT_COMMAND_ID="setContext"}),define(e[60],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEnvironmentService=n.createDecorator("environmentService")}),define(e[127],t([0,1,100,6]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EXTENSION_IDENTIFIER_PATTERN="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",t.EXTENSION_IDENTIFIER_REGEX=new RegExp(t.EXTENSION_IDENTIFIER_PATTERN),t.isIExtensionIdentifier=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(!e.uuid||"string"==typeof e.uuid)};!function(e){
e[e.System=0]="System",e[e.User=1]="User"}(t.LocalExtensionType||(t.LocalExtensionType={})),t.IExtensionManagementService=r.createDecorator("extensionManagementService"),t.IExtensionGalleryService=r.createDecorator("extensionGalleryService");!function(e){e[e.NoneOrRelevance=0]="NoneOrRelevance",e[e.LastUpdatedDate=1]="LastUpdatedDate",e[e.Title=2]="Title",e[e.PublisherName=3]="PublisherName",e[e.InstallCount=4]="InstallCount",e[e.PublishedDate=5]="PublishedDate",e[e.AverageRating=6]="AverageRating",e[e.WeightedRating=12]="WeightedRating"}(t.SortBy||(t.SortBy={}));!function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(t.SortOrder||(t.SortOrder={}));!function(e){e.Uninstall="uninstall"}(t.StatisticType||(t.StatisticType={}));!function(e){e[e.Install=1]="Install",e[e.Update=2]="Update"}(t.InstallOperation||(t.InstallOperation={})),t.IExtensionManagementServerService=r.createDecorator("extensionManagementServerService");!function(e){e[e.Disabled=0]="Disabled",
e[e.WorkspaceDisabled=1]="WorkspaceDisabled",e[e.Enabled=2]="Enabled",e[e.WorkspaceEnabled=3]="WorkspaceEnabled"}(t.EnablementState||(t.EnablementState={})),t.IExtensionEnablementService=r.createDecorator("extensionEnablementService"),t.IExtensionTipsService=r.createDecorator("extensionTipsService");!function(e){e[e.Workspace=0]="Workspace",e[e.File=1]="File",e[e.Executable=2]="Executable",e[e.DynamicWorkspace=3]="DynamicWorkspace",e[e.Experimental=4]="Experimental"}(t.ExtensionRecommendationReason||(t.ExtensionRecommendationReason={})),t.ExtensionsLabel=n.localize(0,null),t.ExtensionsChannelId="extensions",t.PreferencesLabel=n.localize(1,null)}),define(e[37],t([0,1,9,8,6,7,30,18]),function(e,t,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IFileService=o.createDecorator("fileService");!function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(t.FileType||(t.FileType={}));!function(e){
e[e.FileReadWrite=2]="FileReadWrite",e[e.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",e[e.FileFolderCopy=8]="FileFolderCopy",e[e.PathCaseSensitive=1024]="PathCaseSensitive",e[e.Readonly=2048]="Readonly"}(t.FileSystemProviderCapabilities||(t.FileSystemProviderCapabilities={}));!function(e){e[e.CREATE=0]="CREATE",e[e.DELETE=1]="DELETE",e[e.MOVE=2]="MOVE",e[e.COPY=3]="COPY"}(t.FileOperation||(t.FileOperation={}));var c=function(){function e(e,t,n){this._resource=e,this._operation=t,this._target=n}return Object.defineProperty(e.prototype,"resource",{get:function(){return this._resource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operation",{get:function(){return this._operation},enumerable:!0,configurable:!0}),e}();t.FileOperationEvent=c;var l;!function(e){e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED"}(l=t.FileChangeType||(t.FileChangeType={}))
;var f=function(){function e(e){this._changes=e}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes},enumerable:!0,configurable:!0}),e.prototype.contains=function(e,t){return!!e&&this._changes.some(function(n){return n.type===t&&(t===l.DELETED?a.isEqualOrParent(e,n.resource,!i.isLinux):a.isEqual(e,n.resource,!i.isLinux))})},e.prototype.getAdded=function(){return this.getOfType(l.ADDED)},e.prototype.gotAdded=function(){return this.hasType(l.ADDED)},e.prototype.getDeleted=function(){return this.getOfType(l.DELETED)},e.prototype.gotDeleted=function(){return this.hasType(l.DELETED)},e.prototype.getUpdated=function(){return this.getOfType(l.UPDATED)},e.prototype.gotUpdated=function(){return this.hasType(l.UPDATED)},e.prototype.getOfType=function(e){return this._changes.filter(function(t){return t.type===e})},e.prototype.hasType=function(e){return this._changes.some(function(t){return t.type===e})},e}();t.FileChangesEvent=f,t.isParent=function(e,t,n){
return!(!e||!t||e===t)&&!(t.length>e.length)&&(t.charAt(t.length-1)!==r.nativeSep&&(t+=r.nativeSep),n?s.startsWithIgnoreCase(e,t):0===e.indexOf(t))};var d=function(){function e(e){this._value=e}return e.prototype.read=function(){var e=this._value;return this._value=null,e},e}();t.StringSnapshot=d,t.snapshotToString=function(e){for(var t,n=[];"string"==typeof(t=e.read());)n.push(t);return n.join("")};var h=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.fileOperationResult=n,i.options=r,i}return n(t,e),t.isFileOperationError=function(e){return e instanceof Error&&!u.isUndefinedOrNull(e.fileOperationResult)},t}(Error);t.FileOperationError=h;!function(e){e[e.FILE_IS_BINARY=0]="FILE_IS_BINARY",e[e.FILE_IS_DIRECTORY=1]="FILE_IS_DIRECTORY",e[e.FILE_NOT_FOUND=2]="FILE_NOT_FOUND",e[e.FILE_NOT_MODIFIED_SINCE=3]="FILE_NOT_MODIFIED_SINCE",e[e.FILE_MODIFIED_SINCE=4]="FILE_MODIFIED_SINCE",e[e.FILE_MOVE_CONFLICT=5]="FILE_MOVE_CONFLICT",e[e.FILE_READ_ONLY=6]="FILE_READ_ONLY",
e[e.FILE_PERMISSION_DENIED=7]="FILE_PERMISSION_DENIED",e[e.FILE_TOO_LARGE=8]="FILE_TOO_LARGE",e[e.FILE_INVALID_PATH=9]="FILE_INVALID_PATH",e[e.FILE_EXCEED_MEMORY_LIMIT=10]="FILE_EXCEED_MEMORY_LIMIT"}(t.FileOperationResult||(t.FileOperationResult={})),t.AutoSaveConfiguration={OFF:"off",AFTER_DELAY:"afterDelay",ON_FOCUS_CHANGE:"onFocusChange",ON_WINDOW_CHANGE:"onWindowChange"},t.HotExitConfiguration={OFF:"off",ON_EXIT:"onExit",ON_EXIT_AND_WINDOW_CLOSE:"onExitAndWindowClose"},t.CONTENT_CHANGE_EVENT_BUFFER_DELAY=1e3,t.FILES_ASSOCIATIONS_CONFIG="files.associations",t.FILES_EXCLUDE_CONFIG="files.exclude",t.SUPPORTED_ENCODINGS={utf8:{labelLong:"UTF-8",labelShort:"UTF-8",order:1,alias:"utf8bom"},utf8bom:{labelLong:"UTF-8 with BOM",labelShort:"UTF-8 with BOM",encodeOnly:!0,order:2,alias:"utf8"},utf16le:{labelLong:"UTF-16 LE",labelShort:"UTF-16 LE",order:3},utf16be:{labelLong:"UTF-16 BE",labelShort:"UTF-16 BE",order:4},windows1252:{labelLong:"Western (Windows 1252)",labelShort:"Windows 1252",order:5},iso88591:{
labelLong:"Western (ISO 8859-1)",labelShort:"ISO 8859-1",order:6},iso88593:{labelLong:"Western (ISO 8859-3)",labelShort:"ISO 8859-3",order:7},iso885915:{labelLong:"Western (ISO 8859-15)",labelShort:"ISO 8859-15",order:8},macroman:{labelLong:"Western (Mac Roman)",labelShort:"Mac Roman",order:9},cp437:{labelLong:"DOS (CP 437)",labelShort:"CP437",order:10},windows1256:{labelLong:"Arabic (Windows 1256)",labelShort:"Windows 1256",order:11},iso88596:{labelLong:"Arabic (ISO 8859-6)",labelShort:"ISO 8859-6",order:12},windows1257:{labelLong:"Baltic (Windows 1257)",labelShort:"Windows 1257",order:13},iso88594:{labelLong:"Baltic (ISO 8859-4)",labelShort:"ISO 8859-4",order:14},iso885914:{labelLong:"Celtic (ISO 8859-14)",labelShort:"ISO 8859-14",order:15},windows1250:{labelLong:"Central European (Windows 1250)",labelShort:"Windows 1250",order:16},iso88592:{labelLong:"Central European (ISO 8859-2)",labelShort:"ISO 8859-2",order:17},cp852:{labelLong:"Central European (CP 852)",labelShort:"CP 852",order:18},windows1251:{
labelLong:"Cyrillic (Windows 1251)",labelShort:"Windows 1251",order:19},cp866:{labelLong:"Cyrillic (CP 866)",labelShort:"CP 866",order:20},iso88595:{labelLong:"Cyrillic (ISO 8859-5)",labelShort:"ISO 8859-5",order:21},koi8r:{labelLong:"Cyrillic (KOI8-R)",labelShort:"KOI8-R",order:22},koi8u:{labelLong:"Cyrillic (KOI8-U)",labelShort:"KOI8-U",order:23},iso885913:{labelLong:"Estonian (ISO 8859-13)",labelShort:"ISO 8859-13",order:24},windows1253:{labelLong:"Greek (Windows 1253)",labelShort:"Windows 1253",order:25},iso88597:{labelLong:"Greek (ISO 8859-7)",labelShort:"ISO 8859-7",order:26},windows1255:{labelLong:"Hebrew (Windows 1255)",labelShort:"Windows 1255",order:27},iso88598:{labelLong:"Hebrew (ISO 8859-8)",labelShort:"ISO 8859-8",order:28},iso885910:{labelLong:"Nordic (ISO 8859-10)",labelShort:"ISO 8859-10",order:29},iso885916:{labelLong:"Romanian (ISO 8859-16)",labelShort:"ISO 8859-16",order:30},windows1254:{labelLong:"Turkish (Windows 1254)",labelShort:"Windows 1254",order:31},iso88599:{
labelLong:"Turkish (ISO 8859-9)",labelShort:"ISO 8859-9",order:32},windows1258:{labelLong:"Vietnamese (Windows 1258)",labelShort:"Windows 1258",order:33},gbk:{labelLong:"Simplified Chinese (GBK)",labelShort:"GBK",order:34},gb18030:{labelLong:"Simplified Chinese (GB18030)",labelShort:"GB18030",order:35},cp950:{labelLong:"Traditional Chinese (Big5)",labelShort:"Big5",order:36},big5hkscs:{labelLong:"Traditional Chinese (Big5-HKSCS)",labelShort:"Big5-HKSCS",order:37},shiftjis:{labelLong:"Japanese (Shift JIS)",labelShort:"Shift JIS",order:38},eucjp:{labelLong:"Japanese (EUC-JP)",labelShort:"EUC-JP",order:39},euckr:{labelLong:"Korean (EUC-KR)",labelShort:"EUC-KR",order:40},windows874:{labelLong:"Thai (Windows 874)",labelShort:"Windows 874",order:41},iso885911:{labelLong:"Latin/Thai (ISO 8859-11)",labelShort:"ISO 8859-11",order:42},koi8ru:{labelLong:"Cyrillic (KOI8-RU)",labelShort:"KOI8-RU",order:43},koi8t:{labelLong:"Tajik (KOI8-T)",labelShort:"KOI8-T",order:44},gb2312:{labelLong:"Simplified Chinese (GB 2312)",
labelShort:"GB 2312",order:45},cp865:{labelLong:"Nordic DOS (CP 865)",labelShort:"CP 865",order:46},cp850:{labelLong:"Western European DOS (CP 850)",labelShort:"CP 850",order:47}};!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(t.FileKind||(t.FileKind={})),t.MIN_MAX_MEMORY_SIZE_MB=2048,t.FALLBACK_MAX_MEMORY_SIZE_MB=4096}),define(e[129],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Default=1]="Default",e[e.User=2]="User"}(t.KeybindingSource||(t.KeybindingSource={})),t.IKeybindingService=n.createDecorator("keybindingService")}),define(e[39],t([0,1,6,11,8,4]),function(e,t,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogService=r.createDecorator("logService");var a;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off"}(a=t.LogLevel||(t.LogLevel={})),t.DEFAULT_LOG_LEVEL=a.Info
;var u=function(e){function r(){var n=null!==e&&e.apply(this,arguments)||this;return n.level=t.DEFAULT_LOG_LEVEL,n._onDidChangeLogLevel=n._register(new s.Emitter),n.onDidChangeLogLevel=n._onDidChangeLogLevel.event,n}return n(r,e),r.prototype.setLevel=function(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))},r.prototype.getLevel=function(){return this.level},r}(i.Disposable);t.AbstractLogService=u;var c=function(e){function r(n){void 0===n&&(n=t.DEFAULT_LOG_LEVEL);var r=e.call(this)||this;return r.setLevel(n),r.useColors=!o.isWindows,r}return n(r,e),r.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Trace&&(this.useColors?console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)):console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
;this.getLevel()<=a.Debug&&(this.useColors?console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)):console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Info&&(this.useColors?console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)):console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Warning&&(this.useColors?console.warn.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)):console.warn.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
;this.getLevel()<=a.Error&&(this.useColors?console.error.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)):console.error.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Critical&&(this.useColors?console.error.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)):console.error.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.dispose=function(){},r}(u);t.ConsoleLogMainService=c;var l=function(e){function r(n){void 0===n&&(n=t.DEFAULT_LOG_LEVEL);var r=e.call(this)||this;return r.setLevel(n),r}return n(r,e),r.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Trace&&console.log.apply(console,["%cTRACE","color: #888",e].concat(t))},r.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
;this.getLevel()<=a.Debug&&console.log.apply(console,["%cDEBUG","background: #eee; color: #888",e].concat(t))},r.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Info&&console.log.apply(console,["%c INFO","color: #33f",e].concat(t))},r.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Warning&&console.log.apply(console,["%c WARN","color: #993",e].concat(t))},r.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Error&&console.log.apply(console,["%c  ERR","color: #f33",e].concat(t))},r.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Critical&&console.log.apply(console,["%cCRITI","background: #f33; color: white",e].concat(t))},r.prototype.dispose=function(){},r}(u);t.ConsoleLogService=l;var f=function(e){function t(t){var n=e.call(this)||this;return n.logServices=t,
t.length&&n.setLevel(t[0].getLevel()),n}return n(t,e),t.prototype.setLevel=function(t){for(var n=0,r=this.logServices;n<r.length;n++){r[n].setLevel(t)}e.prototype.setLevel.call(this,t)},t.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.trace.apply(o,[e].concat(t))}},t.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.debug.apply(o,[e].concat(t))}},t.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.info.apply(o,[e].concat(t))}},t.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.warn.apply(o,[e].concat(t))}},t.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
;for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.error.apply(o,[e].concat(t))}},t.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.critical.apply(o,[e].concat(t))}},t.prototype.dispose=function(){for(var e=0,t=this.logServices;e<t.length;e++){t[e].dispose()}},t}(u);t.MultiplexLogService=f;var d=function(e){function t(t){var n=e.call(this)||this;return n.logService=t,n._register(t),n}return n(t,e),Object.defineProperty(t.prototype,"onDidChangeLogLevel",{get:function(){return this.logService.onDidChangeLogLevel},enumerable:!0,configurable:!0}),t.prototype.setLevel=function(e){this.logService.setLevel(e)},t.prototype.getLevel=function(){return this.logService.getLevel()},t.prototype.trace=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.logService).trace.apply(t,[e].concat(n))},t.prototype.debug=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r]
;(t=this.logService).debug.apply(t,[e].concat(n))},t.prototype.info=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.logService).info.apply(t,[e].concat(n))},t.prototype.warn=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.logService).warn.apply(t,[e].concat(n))},t.prototype.error=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.logService).error.apply(t,[e].concat(n))},t.prototype.critical=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.logService).critical.apply(t,[e].concat(n))},t}(i.Disposable);t.DelegatedLogService=d;var h=function(){function e(){this.onDidChangeLogLevel=(new s.Emitter).event}return e.prototype.setLevel=function(e){},e.prototype.getLevel=function(){return a.Info},e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},
e.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.dispose=function(){},e}();t.NullLogService=h,t.getLogLevel=function(e){if(e.verbose)return a.Trace;if("string"==typeof e.args.log)switch(e.args.log.toLowerCase()){case"trace":return a.Trace;case"debug":return a.Debug;case"info":return a.Info;case"warn":return a.Warning;case"error":return a.Error;case"critical":return a.Critical;case"off":return a.Off}return t.DEFAULT_LOG_LEVEL}}),define(e[131],t([0,1,21,39]),function(e,t,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSpdLogService=function(t,n,s){try{var a=e.__$__nodeRequire("spdlog");a.setAsyncMode(8192,2e3)
;var u=r.join(s,t+".log"),c=new a.RotatingLogger(t,u,5242880,6);return c.setLevel(0),new o(c,n)}catch(e){console.error(e)}return new i.NullLogService};var o=function(e){function t(t,n){void 0===n&&(n=i.LogLevel.Error);var r=e.call(this)||this;return r.logger=t,r.setLevel(n),r}return n(t,e),t.prototype.trace=function(){this.getLevel()<=i.LogLevel.Trace&&this.logger.trace(this.format(arguments))},t.prototype.debug=function(){this.getLevel()<=i.LogLevel.Debug&&this.logger.debug(this.format(arguments))},t.prototype.info=function(){this.getLevel()<=i.LogLevel.Info&&this.logger.info(this.format(arguments))},t.prototype.warn=function(){this.getLevel()<=i.LogLevel.Warning&&this.logger.warn(this.format(arguments))},t.prototype.error=function(){if(this.getLevel()<=i.LogLevel.Error){var e=arguments[0];if(e instanceof Error){var t=Array.prototype.slice.call(arguments);t[0]=e.stack,this.logger.error(this.format(t))}else this.logger.error(this.format(arguments))}},t.prototype.critical=function(){
this.getLevel()<=i.LogLevel.Critical&&this.logger.critical(this.format(arguments))},t.prototype.dispose=function(){this.logger.drop()},t.prototype.format=function(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if("object"==typeof r)try{r=JSON.stringify(r)}catch(e){}t+=(n>0?" ":"")+r}return t},t}(i.AbstractLogService)}),define(e[63],t([0,1,6,101,34]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Unnecessary=1]="Unnecessary"}(t.MarkerTag||(t.MarkerTag={}));var o;!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o=t.MarkerSeverity||(t.MarkerSeverity={})),function(e){e.compare=function(e,t){return t-e};var t=Object.create(null);t[e.Error]=r.localize(0,null),t[e.Warning]=r.localize(1,null),t[e.Info]=r.localize(2,null),e.toString=function(e){return t[e]||""},e.fromSeverity=function(t){switch(t){case i.default.Error:return e.Error;case i.default.Warning:return e.Warning;case i.default.Info:return e.Info
;case i.default.Ignore:return e.Hint}}}(o=t.MarkerSeverity||(t.MarkerSeverity={}));!function(e){var t="";e.makeKey=function(e){var n=[t];return e.source?n.push(e.source.replace("¦","¦")):n.push(t),e.code?n.push(e.code.replace("¦","¦")):n.push(t),void 0!==e.severity&&null!==e.severity?n.push(o.toString(e.severity)):n.push(t),e.message?n.push(e.message.replace("¦","¦")):n.push(t),void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(t),void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(t),void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(t),void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(t),n.push(t),n.join("¦")}}(t.IMarkerData||(t.IMarkerData={})),t.IMarkerService=n.createDecorator("markerService")}),define(e[64],t([0,1,21,3]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;var i=n.dirname(r.default.parse(e.toUrl("")).fsPath),o=n.join(i,"package.json");t.default=e.__$__nodeRequire(o)}),define(e[134],t([0,1,21,3]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n.dirname(r.default.parse(e.toUrl("")).fsPath),o=n.join(i,"product.json"),s=e.__$__nodeRequire(o);process.env.VSCODE_DEV&&(s.nameShort+=" Dev",s.nameLong+=" Dev",s.dataFolderName+="-dev"),t.default=s}),define(e[135],t([0,1,34,6,4]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Severity=n.default,t.INotificationService=r.createDecorator("notificationService");var o=function(){function e(){this.progress=new s,this._onDidClose=new i.Emitter}return Object.defineProperty(e.prototype,"onDidClose",{get:function(){return this._onDidClose.event},enumerable:!0,configurable:!0}),e.prototype.updateSeverity=function(e){},e.prototype.updateMessage=function(e){},e.prototype.updateActions=function(e){},e.prototype.close=function(){this._onDidClose.dispose()},e}()
;t.NoOpNotification=o;var s=function(){function e(){}return e.prototype.infinite=function(){},e.prototype.done=function(){},e.prototype.total=function(e){},e.prototype.worked=function(e){},e}();t.NoOpProgress=s}),define(e[136],t([0,1,6,29,11]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IProgressService=n.createDecorator("progressService"),t.emptyProgressRunner=Object.freeze({total:function(){},worked:function(){},done:function(){}}),t.emptyProgress=Object.freeze({report:function(){}});var o=function(){function e(e){this._callback=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.report=function(e){this._value=e,this._callback(this._value)},e}();t.Progress=o;var s=function(){function e(e){this.progressService=e,this.currentOperationId=0,this.currentOperationDisposables=[]}return e.prototype.start=function(e){var t=this;this.stop()
;var n=++this.currentOperationId,o=new r.CancellationTokenSource;return this.currentProgressTimeout=setTimeout(function(){n===t.currentOperationId&&(t.currentProgressRunner=t.progressService.show(!0))},e),this.currentOperationDisposables.push(i.toDisposable(function(){return clearTimeout(t.currentProgressTimeout)}),i.toDisposable(function(){return o.cancel()}),i.toDisposable(function(){return t.currentProgressRunner?t.currentProgressRunner.done():void 0})),{id:n,token:o.token,stop:function(){return t.doStop(n)},isCurrent:function(){return t.currentOperationId===n}}},e.prototype.stop=function(){this.doStop(this.currentOperationId)},e.prototype.doStop=function(e){this.currentOperationId===e&&(this.currentOperationDisposables=i.dispose(this.currentOperationDisposables))},e.prototype.dispose=function(){this.currentOperationDisposables=i.dispose(this.currentOperationDisposables)},e}();t.LongRunningOperation=s}),define(e[28],t([0,1,18,48]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{
value:!0});var i=function(){function e(){this.data={}}return e.prototype.add=function(e,t){r.ok(n.isString(e)),r.ok(n.isObject(t)),r.ok(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t},e.prototype.knows=function(e){return this.data.hasOwnProperty(e)},e.prototype.as=function(e){return this.data[e]||null},e}();t.Registry=new i}),define(e[66],t([0,1,98,4,28,56,31]),function(e,t,n,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={ModesRegistry:"editor.modesRegistry"};var a=function(){function e(){this._onDidAddLanguages=new r.Emitter,this.onDidAddLanguages=this._onDidAddLanguages.event,this._languages=[]}return e.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidAddLanguages.fire([e])},e.prototype.registerLanguages=function(e){this._languages=this._languages.concat(e),this._onDidAddLanguages.fire(e)},e.prototype.getLanguages=function(){return this._languages.slice(0)},e}();t.EditorModesRegistry=a,
t.ModesRegistry=new a,i.Registry.add(t.Extensions.ModesRegistry,t.ModesRegistry),t.PLAINTEXT_MODE_ID="plaintext",t.PLAINTEXT_LANGUAGE_IDENTIFIER=new s.LanguageIdentifier(t.PLAINTEXT_MODE_ID,1),t.ModesRegistry.registerLanguage({id:t.PLAINTEXT_MODE_ID,extensions:[".txt",".gitignore"],aliases:[n.localize(0,null),"text"],mimetypes:["text/plain"]}),o.LanguageConfigurationRegistry.register(t.PLAINTEXT_LANGUAGE_IDENTIFIER,{brackets:[["(",")"],["[","]"],["{","}"]]})}),define(e[139],t([0,1,28,4]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={JSONContribution:"base.contributions.json"};var i=new(function(){function e(){this._onDidChangeSchema=new r.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.schemasById={}}return e.prototype.registerSchema=function(e,t){this.schemasById[function(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}(e)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){
this._onDidChangeSchema.fire(e)},e.prototype.getSchemaContributions=function(){return{schemas:this.schemasById}},e}());n.Registry.add(t.Extensions.JSONContribution,i)}),define(e[38],t([0,1,99,4,28,18,7,139]),function(e,t,n,r,i,o,s,a){"use strict";function u(e){return t.OVERRIDE_PROPERTY_PATTERN.test(e)?n.localize(3,null,e):void 0!==g.getConfigurationProperties()[e]?n.localize(4,null,e):null}Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={Configuration:"base.contributions.configuration"};var c;!function(e){e[e.APPLICATION=1]="APPLICATION",e[e.WINDOW=2]="WINDOW",e[e.RESOURCE=3]="RESOURCE"}(c=t.ConfigurationScope||(t.ConfigurationScope={})),t.allSettings={properties:{},patternProperties:{}},t.applicationSettings={properties:{},patternProperties:{}},t.windowSettings={properties:{},patternProperties:{}},t.resourceSettings={properties:{},patternProperties:{}},t.editorConfigurationSchemaId="vscode://schemas/settings/editor";var l=i.Registry.as(a.Extensions.JSONContribution),f=function(){function e(){
this.overrideIdentifiers=[],this._onDidRegisterConfiguration=new r.Emitter,this.onDidRegisterConfiguration=this._onDidRegisterConfiguration.event,this.configurationContributors=[],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),l.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],[],t)},e.prototype.registerConfigurations=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=this.toConfiguration(t);i&&e.push(i);var o=[];e.forEach(function(e){o.push.apply(o,r.validateAndRegisterProperties(e,n)),r.configurationContributors.push(e),r.registerJSONConfiguration(e),r.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidRegisterConfiguration.fire(o)},
e.prototype.notifyConfigurationSchemaUpdated=function(e){l.notifySchemaChanged(t.editorConfigurationSchemaId)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.toConfiguration=function(e){for(var r={id:"defaultOverrides",title:n.localize(0,null),properties:{}},i=0,o=e;i<o.length;i++){var s=o[i];for(var a in s.defaults){var u=s.defaults[a];t.OVERRIDE_PROPERTY_PATTERN.test(a)&&"object"==typeof u&&(r.properties[a]={type:"object",default:u,description:n.localize(1,null,a),$ref:t.editorConfigurationSchemaId})}}return Object.keys(r.properties).length?r:null},e.prototype.validateAndRegisterProperties=function(e,t,n,r){void 0===t&&(t=!0),void 0===n&&(n=c.WINDOW),void 0===r&&(r=!1),n=void 0!==e.scope&&null!==e.scope?e.scope:n,r=e.overridable||r;var i=[],s=e.properties;if(s)for(var a in s){var l=void 0;if(t&&(l=u(a)))console.warn(l),delete s[a];else{var f=s[a],d=f.default;o.isUndefined(d)&&(f.default=function(e){
switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(f.type)),r&&(f.overridable=!0),void 0===f.scope&&(f.scope=n),!s[a].hasOwnProperty("included")||s[a].included?(this.configurationProperties[a]=s[a],i.push(a)):(this.excludedConfigurationProperties[a]=s[a],delete s[a])}}var h=e.allOf;if(h)for(var p=0,g=h;p<g.length;p++){var m=g[p];i.push.apply(i,this.validateAndRegisterProperties(m,t,n,r))}return i},e.prototype.getConfigurations=function(){return this.configurationContributors},e.prototype.getConfigurationProperties=function(){return this.configurationProperties},e.prototype.getExcludedConfigurationProperties=function(){return this.excludedConfigurationProperties},e.prototype.registerJSONConfiguration=function(e){function n(e){var r=e.properties;if(r)for(var i in r)switch(t.allSettings.properties[i]=r[i],r[i].scope){case c.APPLICATION:t.applicationSettings.properties[i]=r[i];break
;case c.WINDOW:t.windowSettings.properties[i]=r[i];break;case c.RESOURCE:t.resourceSettings.properties[i]=r[i]}var o=e.allOf;o&&o.forEach(n)}n(e)},e.prototype.updateSchemaForOverrideSettingsConfiguration=function(e){e.id!==d&&(this.update(e),l.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema))},e.prototype.updateOverridePropertyPatternKey=function(){var e=t.allSettings.patternProperties[this.overridePropertyPattern];e||(e={type:"object",description:n.localize(2,null),errorMessage:"Unknown Identifier. Use language identifiers",$ref:t.editorConfigurationSchemaId}),delete t.allSettings.patternProperties[this.overridePropertyPattern],delete t.applicationSettings.patternProperties[this.overridePropertyPattern],delete t.windowSettings.patternProperties[this.overridePropertyPattern],delete t.resourceSettings.patternProperties[this.overridePropertyPattern],this.computeOverridePropertyPattern(),t.allSettings.patternProperties[this.overridePropertyPattern]=e,
t.applicationSettings.patternProperties[this.overridePropertyPattern]=e,t.windowSettings.patternProperties[this.overridePropertyPattern]=e,t.resourceSettings.patternProperties[this.overridePropertyPattern]=e},e.prototype.update=function(e){var t=this,n=e.properties;if(n)for(var r in n)n[r].overridable&&(this.editorConfigurationSchema.properties[r]=this.getConfigurationProperties()[r]);var i=e.allOf;i&&i.forEach(function(e){return t.update(e)})},e.prototype.computeOverridePropertyPattern=function(){this.overridePropertyPattern=this.overrideIdentifiers.length?p.replace("${0}",this.overrideIdentifiers.map(function(e){return s.createRegExp(e,!1).source}).join("|")):h},e}(),d="override",h="\\[.*\\]$",p="\\[(${0})\\]$";t.OVERRIDE_PROPERTY_PATTERN=new RegExp(h);var g=new f;i.Registry.add(t.Extensions.Configuration,g),t.validateProperty=u,t.getScopes=function(){for(var e={},t=g.getConfigurationProperties(),n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];e[i]=t[i].scope}return e.launch=c.RESOURCE,e.task=c.RESOURCE,e}
}),define(e[26],t([0,1,16,18,3,28,6,38]),function(e,t,n,r,i,o,s,a){"use strict";function u(e,t){var n=Object.create(null);for(var r in e)c(n,r,e[r],t);return n}function c(e,t,n,r){for(var i=t.split("."),o=i.pop(),s=e,a=0;a<i.length;a++){var u=i[a],c=s[u];switch(typeof c){case"undefined":c=s[u]=Object.create(null);break;case"object":break;default:return void r("Ignoring "+t+" as "+i.slice(0,a+1).join(".")+" is "+JSON.stringify(c))}s=c}"object"==typeof s?s[o]=n:r("Ignoring "+t+" as "+i.join(".")+" is "+JSON.stringify(s))}function l(e,t){var n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){var r=e[n];"object"!=typeof r||Array.isArray(r)||(l(r,t),0===Object.keys(r).length&&delete e[n])}}else delete e[n]}function f(e,t,n){var r=function(e,t){for(var n=e,r=0;r<t.length;r++){if("object"!=typeof n||null===n)return;n=n[t[r]]}return n}(e,t.split("."));return void 0===r?n:r}function d(e,t,n){Object.keys(t).forEach(function(i){
i in e?r.isObject(e[i])&&r.isObject(t[i])?d(e[i],t[i],n):n&&(e[i]=t[i]):e[i]=t[i]})}function h(e){return e.substring(1,e.length-1)}Object.defineProperty(t,"__esModule",{value:!0}),t.IConfigurationService=s.createDecorator("configurationService"),t.isConfigurationOverrides=function(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof i.default)};!function(e){e[e.USER=1]="USER",e[e.WORKSPACE=2]="WORKSPACE",e[e.WORKSPACE_FOLDER=3]="WORKSPACE_FOLDER",e[e.DEFAULT=4]="DEFAULT",e[e.MEMORY=5]="MEMORY"}(t.ConfigurationTarget||(t.ConfigurationTarget={})),t.compare=function(e,t){for(var r=t.keys.filter(function(t){return-1===e.keys.indexOf(t)}),i=e.keys.filter(function(e){return-1===t.keys.indexOf(e)}),o=[],s=0,a=e.keys;s<a.length;s++){var u=a[s],c=f(e.contents,u),l=f(t.contents,u);n.equals(c,l)||o.push(u)}return{added:r,removed:i,updated:o}},t.toOverrides=function(e,t){
for(var n=[],r=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties(),i=0,s=Object.keys(e);i<s.length;i++){var c=s[i];if(a.OVERRIDE_PROPERTY_PATTERN.test(c)){var l={};for(var f in e[c])r[f]&&r[f].overridable&&(l[f]=e[c][f]);n.push({identifiers:[h(c).trim()],contents:u(l,t)})}}return n},t.toValuesTree=u,t.addToValueTree=c,t.removeFromValueTree=function(e,t){l(e,t.split("."))},t.getConfigurationValue=f,t.merge=d,t.getConfigurationKeys=function(){var e=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties();return Object.keys(e)},t.getDefaultValues=function(){var e=Object.create(null),t=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties();for(var n in t)c(e,n,t[n].default,function(e){return console.error("Conflict in default settings: "+e)});return e},t.overrideIdentifierFromKey=h,t.keyFromOverrideIdentifier=function(e){return"["+e+"]"}}),define(e[69],t([0,1,148,20,12,18,16,38,26]),function(e,t,r,i,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{
value:!0});var l=function(){function e(e,t,n){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===n&&(n=[]),this._contents=e,this._keys=t,this._overrides=n,this.isFrozen=!1}return Object.defineProperty(e.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0}),e.prototype.getValue=function(e){return e?c.getConfigurationValue(this.contents,e):this.contents},e.prototype.override=function(t){var n=this.getContentsForOverrideIdentifer(t);if(!n||"object"!=typeof n||!Object.keys(n).length)return this;for(var r={},i=0,s=o.distinct(Object.keys(this.contents).concat(Object.keys(n)));i<s.length;i++){var u=s[i],c=this.contents[u],l=n[u];l&&("object"==typeof c&&"object"==typeof l?(c=a.deepClone(c),
this.mergeContents(c,l)):c=l),r[u]=c}return new e(r)},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=a.deepClone(this.contents),i=a.deepClone(this.overrides),s=this.keys.slice(),u=0,c=t;u<c.length;u++){var l=c[u];this.mergeContents(r,l.contents);for(var f=function(e){var t=i.filter(function(t){return o.equals(t.identifiers,e.identifiers)})[0];t?d.mergeContents(t.contents,e.contents):i.push(a.deepClone(e))},d=this,h=0,p=l.overrides;h<p.length;h++){f(p[h])}for(var g=0,m=l.keys;g<m.length;g++){var v=m[g];-1===s.indexOf(v)&&s.push(v)}}return new e(r,s,i)},e.prototype.freeze=function(){return this.isFrozen=!0,this},e.prototype.mergeContents=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];i in e&&s.isObject(e[i])&&s.isObject(t[i])?this.mergeContents(e[i],t[i]):e[i]=a.deepClone(t[i])}},e.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?a.deepFreeze(e):e},e.prototype.getContentsForOverrideIdentifer=function(e){
for(var t=0,n=this.overrides;t<n.length;t++){var r=n[t];if(-1!==r.identifiers.indexOf(e))return r.contents}return null},e.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}},e.prototype.setValue=function(e,t){this.addKey(e),c.addToValueTree(this.contents,e,t,function(e){throw new Error(e)})},e.prototype.removeValue=function(e){this.removeKey(e)&&c.removeFromValueTree(this.contents,e)},e.prototype.addKey=function(e){for(var t=this.keys.length,n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)},e.prototype.removeKey=function(e){var t=this.keys.indexOf(e);return-1!==t&&(this.keys.splice(t,1),!0)},e}();t.ConfigurationModel=l;var f=function(e){function t(){for(var t=c.getDefaultValues(),n=c.getConfigurationKeys(),r=[],i=0,o=Object.keys(t);i<o.length;i++){var s=o[i];u.OVERRIDE_PROPERTY_PATTERN.test(s)&&r.push({identifiers:[c.overrideIdentifierFromKey(s).trim()],contents:c.toValuesTree(t[s],function(e){
return console.error("Conflict in default settings file: "+e)})})}return e.call(this,t,n,r)||this}return n(t,e),t}(l);t.DefaultConfigurationModel=f;var d=function(){function e(e){this._name=e,this._configurationModel=null,this._parseErrors=[]}return Object.defineProperty(e.prototype,"configurationModel",{get:function(){return this._configurationModel||new l},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this._parseErrors},enumerable:!0,configurable:!0}),e.prototype.parse=function(e){var t=this.parseContent(e),n=this.parseRaw(t);this._configurationModel=new l(n.contents,n.keys,n.overrides)},e.prototype.parseContent=function(e){function t(e){Array.isArray(o)?o.push(e):i&&(o[i]=e)}var n={},i=null,o=[],s=[],a=[],u={onObjectBegin:function(){var e={};t(e),s.push(o),o=e,i=null},onObjectProperty:function(e){i=e},onObjectEnd:function(){o=s.pop()},onArrayBegin:function(){var e=[];t(e),s.push(o),o=e,i=null},onArrayEnd:function(){o=s.pop()},onLiteralValue:t,
onError:function(e){a.push({error:e})}};if(e)try{r.visit(e,u),n=o[0]||{}}catch(e){console.error("Error while parsing settings file "+this._name+": "+e),this._parseErrors=[e]}return n},e.prototype.parseRaw=function(e){var t=this;return{contents:c.toValuesTree(e,function(e){return console.error("Conflict in settings file "+t._name+": "+e)}),keys:Object.keys(e),overrides:c.toOverrides(e,function(e){return console.error("Conflict in settings file "+t._name+": "+e)})}},e}();t.ConfigurationModelParser=d;var h=function(){function e(e,t,n,r,o,s,a){void 0===n&&(n=new l),void 0===r&&(r=new i.ResourceMap),void 0===o&&(o=new l),void 0===s&&(s=new i.ResourceMap),void 0===a&&(a=!0),this._defaultConfiguration=e,this._userConfiguration=t,this._workspaceConfiguration=n,this._folderConfigurations=r,this._memoryConfiguration=o,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new i.ResourceMap}return e.prototype.getValue=function(e,t,n){
return this.getConsolidateConfigurationModel(t,n).getValue(e)},e.prototype.updateValue=function(e,t,n){void 0===n&&(n={});var r;n.resource?(r=this._memoryConfigurationByResource.get(n.resource))||(r=new l,this._memoryConfigurationByResource.set(n.resource,r)):r=this._memoryConfiguration,void 0===t?r.removeValue(e):r.setValue(e,t),n.resource||(this._workspaceConsolidatedConfiguration=null)},e.prototype.inspect=function(e,t,n){var r=this.getConsolidateConfigurationModel(t,n),i=this.getFolderConfigurationModelForResource(t.resource,n),o=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration;return{default:t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),user:t.overrideIdentifier?this._userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._userConfiguration.freeze().getValue(e),
workspace:n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,workspaceFolder:i?t.overrideIdentifier?i.freeze().override(t.overrideIdentifier).getValue(e):i.freeze().getValue(e):void 0,memory:t.overrideIdentifier?o.freeze().override(t.overrideIdentifier).getValue(e):o.freeze().getValue(e),value:r.getValue(e)}},e.prototype.keys=function(e){var t=this.getFolderConfigurationModelForResource(null,e);return{default:this._defaultConfiguration.freeze().keys,user:this._userConfiguration.freeze().keys,workspace:this._workspaceConfiguration.freeze().keys,workspaceFolder:t?t.freeze().keys:[]}},e.prototype.updateDefaultConfiguration=function(e){this._defaultConfiguration=e,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()},e.prototype.updateUserConfiguration=function(e){this._userConfiguration=e,this._workspaceConsolidatedConfiguration=null,
this._foldersConsolidatedConfigurations.clear()},e.prototype.updateWorkspaceConfiguration=function(e){this._workspaceConfiguration=e,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()},e.prototype.updateFolderConfiguration=function(e,t){this._folderConfigurations.set(e,t),this._foldersConsolidatedConfigurations.delete(e)},e.prototype.deleteFolderConfiguration=function(e){this.folders.delete(e),this._foldersConsolidatedConfigurations.delete(e)},Object.defineProperty(e.prototype,"defaults",{get:function(){return this._defaultConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"user",{get:function(){return this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"workspace",{get:function(){return this._workspaceConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"folders",{get:function(){return this._folderConfigurations},enumerable:!0,configurable:!0}),
e.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n},e.prototype.getConsolidatedConfigurationModelForResource=function(e,t){var n=e.resource,r=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var i=t.getFolder(n);i&&(r=this.getFolderConsolidatedConfiguration(i.uri)||r);var o=this._memoryConfigurationByResource.get(n);o&&(r=r.merge(o))}return r},e.prototype.getWorkspaceConsolidatedConfiguration=function(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this._userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},e.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){
var n=this.getWorkspaceConsolidatedConfiguration(),r=this._folderConfigurations.get(e);r?(t=n.merge(r),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t},e.prototype.getFolderConfigurationModelForResource=function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return this._folderConfigurations.get(n.uri)}return null},e.prototype.toData=function(){var e=this;return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this._userConfiguration.contents,overrides:this._userConfiguration.overrides,keys:this._userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:this._folderConfigurations.keys().reduce(function(t,n){var r=e._folderConfigurations.get(n),i=r.contents,o=r.overrides,s=r.keys;return t[n.toString()]={contents:i,overrides:o,keys:s},t
},Object.create({})),isComplete:!0}},e.prototype.allKeys=function(e){var t=this.keys(e),n=t.default.slice(),r=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];-1===n.indexOf(i)&&n.push(i)}};r(t.user),r(t.workspace);for(var i=0,o=this.folders.keys();i<o.length;i++){var s=o[i];r(this.folders.get(s).keys)}return n},e}();t.Configuration=h;var p=function(){function e(){}return e.prototype.doesConfigurationContains=function(e,t){for(var n,r,i=e.contents,o=c.toValuesTree((n={},n[t]=!0,n),function(){});"object"==typeof o&&(r=Object.keys(o)[0]);){if(!(i=i[r]))return!1;o=o[r]}return!0},e.prototype.updateKeys=function(e,t,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];e.setValue(o,{})}},e}();t.AbstractConfigurationChangeEvent=p;var g=function(e){function t(t,n){void 0===t&&(t=new l),void 0===n&&(n=new i.ResourceMap);var r=e.call(this)||this;return r._changedConfiguration=t,r._changedConfigurationByResource=n,r}return n(t,e),Object.defineProperty(t.prototype,"changedConfiguration",{get:function(){
return this._changedConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changedConfigurationByResource",{get:function(){return this._changedConfigurationByResource},enumerable:!0,configurable:!0}),t.prototype.change=function(e,n){if(e instanceof t){this._changedConfiguration=this._changedConfiguration.merge(e._changedConfiguration);for(var r=0,i=e._changedConfigurationByResource.keys();r<i.length;r++){var o=i[r],s=this.getOrSetChangedConfigurationForResource(o);s=s.merge(e._changedConfigurationByResource.get(o)),this._changedConfigurationByResource.set(o,s)}}else this.changeWithKeys(e,n);return this},t.prototype.telemetryData=function(e,t){return this._source=e,this._sourceConfig=t,this},Object.defineProperty(t.prototype,"affectedKeys",{get:function(){var e=this._changedConfiguration.keys.slice();return this._changedConfigurationByResource.forEach(function(t){return e.push.apply(e,t.keys)}),o.distinct(e)},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"source",{get:function(){return this._source},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sourceConfig",{get:function(){return this._sourceConfig},enumerable:!0,configurable:!0}),t.prototype.affectsConfiguration=function(e,t){var n=[this._changedConfiguration];if(t){var r=this._changedConfigurationByResource.get(t);r&&n.push(r)}else n.push.apply(n,this._changedConfigurationByResource.values());for(var i=0,o=n;i<o.length;i++){var s=o[i];if(this.doesConfigurationContains(s,e))return!0}return!1},t.prototype.changeWithKeys=function(e,t){var n=t?this.getOrSetChangedConfigurationForResource(t):this._changedConfiguration;this.updateKeys(n,e)},t.prototype.getOrSetChangedConfigurationForResource=function(e){var t=this._changedConfigurationByResource.get(e);return t||(t=new l,this._changedConfigurationByResource.set(e,t)),t},t}(p);t.ConfigurationChangeEvent=g}),define(e[70],t([0,1,32,16,9,6]),function(e,t,n,r,i,o){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.VIEW_ID="workbench.view.search",t.ISearchHistoryService=o.createDecorator("searchHistoryService"),t.ISearchService=o.createDecorator("searchService");!function(e){e[e.File=1]="File",e[e.Text=2]="Text"}(t.QueryType||(t.QueryType={}));var s=function(){return function(e){this.resource=e,this.lineMatches=[]}}();t.FileMatch=s;var a=function(){return function(e,t,n){this.preview=e,this.lineNumber=t,this.offsetAndLengths=n}}();t.LineMatch=a,t.getExcludes=function(e){var t=e&&e.files&&e.files.exclude,n=e&&e.search&&e.search.exclude;if(t||n){if(!t||!n)return t||n;var i=Object.create(null);return i=r.mixin(i,r.deepClone(t)),i=r.mixin(i,r.deepClone(n),!0)}},t.pathIncludedInQuery=function(e,t){return(!e.excludePattern||!n.match(e.excludePattern,t))&&!(e.includePattern&&!n.match(e.includePattern,t))&&(!e.usingSearchPaths||e.folderQueries.every(function(e){var r=e.folder.fsPath;return!(!i.isEqualOrParent(t,r)||e.includePattern&&!n.match(e.includePattern,t))}))}}),
define(e[144],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IStatusbarService=n.createDecorator("statusbarService");!function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(t.StatusbarAlignment||(t.StatusbarAlignment={}))}),define(e[145],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ITelemetryService=n.createDecorator("telemetryService")}),define(e[146],t([0,1,2,72,9,26,129]),function(e,t,n,r,i,o,s){"use strict";function a(e,t){return t.onDidChangeConfiguration(function(t){t.source!==o.ConfigurationTarget.DEFAULT&&(e.publicLog("updateConfiguration",{configurationSource:o.ConfigurationTarget[t.source],configurationKeys:function(e){if(!e)return[];var t=[];return u(t,"",e),t}(t.sourceConfig)}),e.publicLog("updateConfigurationValues",{configurationSource:o.ConfigurationTarget[t.source],configurationValues:function(e,t){if(!e)return[];return t.reduce(function(t,n){var r,i=n.split(".").reduce(function(e,t){
return e&&"object"==typeof e?e[t]:void 0},e);return void 0!==i&&t.push((r={},r[n]=i,r)),t},[])}(t.sourceConfig,c)}))})}function u(e,t,n){n&&"object"==typeof n&&!Array.isArray(n)?Object.keys(n).forEach(function(r){return u(e,t?t+"."+r:r,n[r])}):e.push(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.NullTelemetryService=new(function(){function e(){}return e.prototype.publicLog=function(e,t){return n.TPromise.wrap(null)},e.prototype.getTelemetryInfo=function(){return n.TPromise.wrap({instanceId:"someValue.instanceId",sessionId:"someValue.sessionId",machineId:"someValue.machineId"})},e}()),t.combinedAppender=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{log:function(t,n){return e.forEach(function(e){return e.log(t,n)})},dispose:function(){return n.TPromise.join(e.map(function(e){return e.dispose()}))}}},t.NullAppender={log:function(){return null},dispose:function(){return n.TPromise.as(null)}},t.telemetryURIDescriptor=function(e,t){var n=e&&e.fsPath;return n?{
mimeType:r.guessMimeTypes(n).join(", "),ext:i.extname(n),path:t(n)}:{}}
;var c=["editor.tabCompletion","editor.fontFamily","editor.fontWeight","editor.fontSize","editor.lineHeight","editor.letterSpacing","editor.lineNumbers","editor.rulers","editor.wordSeparators","editor.tabSize","editor.insertSpaces","editor.detectIndentation","editor.roundedSelection","editor.scrollBeyondLastLine","editor.minimap.enabled","editor.minimap.side","editor.minimap.renderCharacters","editor.minimap.maxColumn","editor.find.seedSearchStringFromSelection","editor.find.autoFindInSelection","editor.wordWrap","editor.wordWrapColumn","editor.wrappingIndent","editor.mouseWheelScrollSensitivity","editor.multiCursorModifier","editor.quickSuggestions","editor.quickSuggestionsDelay","editor.parameterHints","editor.autoClosingBrackets","editor.autoIndent","editor.formatOnType","editor.formatOnPaste","editor.suggestOnTriggerCharacters","editor.acceptSuggestionOnEnter","editor.acceptSuggestionOnCommitCharacter","editor.snippetSuggestions","editor.emptySelectionClipboard","editor.wordBasedSuggestions","editor.suggestSelection","editor.suggestFontSize","editor.suggestLineHeight","editor.selectionHighlight","editor.occurrencesHighlight","editor.overviewRulerLanes","editor.overviewRulerBorder","editor.cursorBlinking","editor.cursorStyle","editor.mouseWheelZoom","editor.fontLigatures","editor.hideCursorInOverviewRuler","editor.renderWhitespace","editor.renderControlCharacters","editor.renderIndentGuides","editor.renderLineHighlight","editor.codeLens","editor.folding","editor.showFoldingControls","editor.matchBrackets","editor.glyphMargin","editor.useTabStops","editor.trimAutoWhitespace","editor.stablePeek","editor.dragAndDrop","editor.formatOnSave","editor.colorDecorators","window.zoomLevel","files.autoSave","files.hotExit","files.associations","workbench.statusBar.visible","files.trimTrailingWhitespace","git.confirmSync","workbench.sideBar.location","window.openFilesInNewWindow","javascript.validate.enable","window.restoreWindows","extensions.autoUpdate","files.eol","explorer.openEditors.visible","workbench.editor.enablePreview","files.autoSaveDelay","workbench.editor.showTabs","files.encoding","files.autoGuessEncoding","git.enabled","http.proxyStrictSSL","terminal.integrated.fontFamily","workbench.editor.enablePreviewFromQuickOpen","workbench.editor.swipeToNavigate","php.builtInCompletions.enable","php.validate.enable","php.validate.run","workbench.welcome.enabled","workbench.startupEditor"]
;t.configurationTelemetry=a,t.keybindingsTelemetry=function(e,t){return t.onDidUpdateKeybindings(function(t){t.source===s.KeybindingSource.User&&t.keybindings&&e.publicLog("updateKeybindings",{bindings:t.keybindings.map(function(e){return{key:e.key,command:e.command,when:e.when,args:!!e.args||void 0}})})})}}),define(e[147],t([0,1,6,37,102,9,8,43]),function(e,t,n,r,i,o,s,a){"use strict";function u(e){return e&&"object"==typeof e&&"string"==typeof e.path&&(!e.name||"string"==typeof e.name)}function c(e){return e&&"object"==typeof e&&"string"==typeof e.uri&&(!e.name||"string"==typeof e.name)}function l(e){return"string"==typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkspacesMainService=n.createDecorator("workspacesMainService"),t.IWorkspacesService=n.createDecorator("workspacesService"),t.WORKSPACE_EXTENSION="code-workspace",t.WORKSPACE_FILTER=[{name:i.localize(0,null),extensions:[t.WORKSPACE_EXTENSION]}],t.UNTITLED_WORKSPACE_NAME="workspace.json",t.isStoredWorkspaceFolder=function(e){
return u(e)||c(e)},t.isRawFileWorkspaceFolder=u,t.isRawUriWorkspaceFolder=c,t.getWorkspaceLabel=function(e,n,u){if(l(e))return a.tildify(e,n.userHome);if(r.isParent(e.configPath,n.workspacesHome,!s.isLinux))return i.localize(1,null);var c=o.basename(e.configPath),f=c.substr(0,c.length-t.WORKSPACE_EXTENSION.length-1);return u&&u.verbose?i.localize(2,null,a.getPathLabel(o.join(o.dirname(e.configPath),f),n)):i.localize(3,null,f)},t.isSingleFolderWorkspaceIdentifier=l,t.isWorkspaceIdentifier=function(e){var t=e;return t&&"string"==typeof t.id&&"string"==typeof t.configPath}}),define(e[71],t([0,1,3,9,30,6,20,147,12,8]),function(e,t,n,r,i,o,s,a,u,c){"use strict";function l(e,t){var o=function(e,t){return e.map(function(e,i){var o;if(a.isRawFileWorkspaceFolder(e))o=function(e,t){if(e){if(r.isAbsolute(e))return n.default.file(e);if(t)return t.with({path:r.join(t.path,e)})}return null}(e.path,t);else if(a.isRawUriWorkspaceFolder(e))try{"/"!==(o=n.default.parse(e.uri)).path[0]&&(o=o.with({path:"/"+o.path}))}catch(e){
console.warn(e)}if(o)return new d({uri:o,name:e.name,index:i},e)})}(e,t);return function(e){return u.distinct(e,function(e){return c.isLinux?e.uri.toString():e.uri.toString().toLowerCase()})}(u.coalesce(o)).map(function(e,t){var n=e.uri,r=e.raw,o=e.name;return new d({uri:n,name:o||i.basenameOrAuthority(n),index:t},r)})}Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkspaceContextService=o.createDecorator("contextService");!function(e){e[e.EMPTY=1]="EMPTY",e[e.FOLDER=2]="FOLDER",e[e.WORKSPACE=3]="WORKSPACE"}(t.WorkbenchState||(t.WorkbenchState={}));var f=function(){function e(e,t,n,r,i){void 0===t&&(t=""),void 0===n&&(n=[]),void 0===r&&(r=null),this._id=e,this._name=t,this._configuration=r,this._ctime=i,this._foldersMap=s.TernarySearchTree.forPaths(),this.folders=n}return e.prototype.update=function(e){this._id=e.id,this._name=e.name,this._configuration=e.configuration,this._ctime=e.ctime,this.folders=e.folders},Object.defineProperty(e.prototype,"folders",{get:function(){return this._folders},
set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctime",{get:function(){return this._ctime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),e.prototype.getFolder=function(e){return e?this._foldersMap.findSubstr(e.toString()):null},e.prototype.updateFoldersMap=function(){this._foldersMap=s.TernarySearchTree.forPaths();for(var e=0,t=this.folders;e<t.length;e++){var n=t[e];this._foldersMap.set(n.uri.toString(),n)}},e.prototype.toJSON=function(){return{id:this.id,folders:this.folders,name:this.name,configuration:this.configuration}},e}();t.Workspace=f
;var d=function(){function e(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}return e.prototype.toResource=function(e){return this.uri.with({path:r.join(this.uri.path,e)})},e.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},e}();t.WorkspaceFolder=d,t.toWorkspaceFolders=l}),define(e[44],t([0,1,105,34,2]),function(e,t,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=Object.hasOwnProperty,a=o.TPromise.wrap(void 0),u=function(){function e(e,t,n,r){this.startup=e,this.codeLoadingTime=t,this.activateCallTime=n,this.activateResolvedTime=r}return e.NONE=new e(!1,-1,-1,-1),e}();t.ExtensionActivationTimes=u;var c=function(){function e(e){this._startup=e,this._codeLoadingStart=-1,this._codeLoadingStop=-1,this._activateCallStart=-1,this._activateCallStop=-1,this._activateResolveStart=-1,this._activateResolveStop=-1}return e.prototype._delta=function(e,t){return-1===e||-1===t?-1:t-e},e.prototype.build=function(){
return new u(this._startup,this._delta(this._codeLoadingStart,this._codeLoadingStop),this._delta(this._activateCallStart,this._activateCallStop),this._delta(this._activateResolveStart,this._activateResolveStop))},e.prototype.codeLoadingStart=function(){this._codeLoadingStart=Date.now()},e.prototype.codeLoadingStop=function(){this._codeLoadingStop=Date.now()},e.prototype.activateCallStart=function(){this._activateCallStart=Date.now()},e.prototype.activateCallStop=function(){this._activateCallStop=Date.now()},e.prototype.activateResolveStart=function(){this._activateResolveStart=Date.now()},e.prototype.activateResolveStop=function(){this._activateResolveStop=Date.now()},e}();t.ExtensionActivationTimesBuilder=c;var l=function(){return function(e,t,n,r,i,o){this.activationFailed=e,this.activationFailedError=t,this.activationTimes=n,this.module=r,this.exports=i,this.subscriptions=o}}();t.ActivatedExtension=l;var f=function(e){function t(t){return e.call(this,!1,null,t,{activate:void 0,deactivate:void 0
},void 0,[])||this}return n(t,e),t}(l);t.EmptyExtension=f;var d=function(e){function t(t){return e.call(this,!0,t,u.NONE,{activate:void 0,deactivate:void 0},void 0,[])||this}return n(t,e),t}(l);t.FailedExtension=d;var h=function(){return function(e,t){this.startup=e,this.activationEvent=t}}();t.ExtensionActivatedByEvent=h;var p=function(){return function(e){this.startup=e}}();t.ExtensionActivatedByAPI=p;var g=function(){function e(e,t){this._registry=e,this._host=t,this._activatingExtensions={},this._activatedExtensions={},this._alreadyActivatedEvents=Object.create(null)}return e.prototype.isActivated=function(e){return s.call(this._activatedExtensions,e)},e.prototype.getActivatedExtension=function(e){if(!s.call(this._activatedExtensions,e))throw new Error("Extension `"+e+"` is not known or not activated");return this._activatedExtensions[e]},e.prototype.activateByEvent=function(e,t){var n=this;if(this._alreadyActivatedEvents[e])return a;var r=this._registry.getExtensionDescriptionsForActivationEvent(e)
;return this._activateExtensions(r,t,0).then(function(){n._alreadyActivatedEvents[e]=!0})},e.prototype.activateById=function(e,t){var n=this._registry.getExtensionDescription(e);if(!n)throw new Error("Extension `"+e+"` is not known");return this._activateExtensions([n],t,0)},e.prototype._handleActivateRequest=function(e,t,n){for(var o=void 0===e.extensionDependencies?[]:e.extensionDependencies,a=!0,u=0,c=o.length;u<c;u++){var l=o[u],f=this._registry.getExtensionDescription(l);if(!f){this._host.showMessage(i.default.Error,r.localize(0,null,l,e.id));p=new Error("Unknown dependency '"+l+"'");return void(this._activatedExtensions[e.id]=new d(p))}if(s.call(this._activatedExtensions,l)){var h=this._activatedExtensions[l];if(h.activationFailed){this._host.showMessage(i.default.Error,r.localize(1,null,l,e.id));var p;return(p=new Error("Dependency "+l+" failed to activate")).detail=h.activationFailedError,void(this._activatedExtensions[e.id]=new d(p))}}else a=!1,t[l]=f}a?t[e.id]=e:n.push(e)},
e.prototype._activateExtensions=function(e,t,n){var a=this;if(0===e.length)return o.TPromise.as(void 0);if(0===(e=e.filter(function(e){return!s.call(a._activatedExtensions,e.id)})).length)return o.TPromise.as(void 0);if(n>10){for(var u=0,c=e.length;u<c;u++){this._host.showMessage(i.default.Error,r.localize(2,null,e[u].id));var l=new Error("More than 10 levels of dependencies (most likely a dependency loop)");this._activatedExtensions[e[u].id]=new d(l)}return o.TPromise.as(void 0)}for(var f=Object.create(null),h=[],u=0,c=e.length;u<c;u++)this._handleActivateRequest(e[u],f,h);for(var u=0,c=h.length;u<c;u++)f[h[u].id]&&delete f[h[u].id];var p=Object.keys(f).map(function(e){return f[e]});return 0===h.length?o.TPromise.join(p.map(function(e){return a._activateExtension(e,t)})).then(function(e){}):this._activateExtensions(p,t,n+1).then(function(e){return a._activateExtensions(h,t,n+1)})},e.prototype._activateExtension=function(e,t){var n=this
;return s.call(this._activatedExtensions,e.id)?o.TPromise.as(void 0):s.call(this._activatingExtensions,e.id)?this._activatingExtensions[e.id]:(this._activatingExtensions[e.id]=this._host.actualActivateExtension(e,t).then(null,function(t){return n._host.showMessage(i.default.Error,r.localize(3,null,e.id,t.message)),console.error("Activating extension `"+e.id+"` failed: ",t.message),console.log("Here is the error stack: ",t.stack),new d(t)}).then(function(t){n._activatedExtensions[e.id]=t,delete n._activatingExtensions[e.id]}),this._activatingExtensions[e.id])},e}();t.ExtensionsActivator=g}),define(e[150],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._data=new Map}return e.prototype.keep=function(t){var n=e._idPool++;return this._data.set(n,t),n},e.prototype.delete=function(e){return this._data.delete(e)},e.prototype.get=function(e){return this._data.get(e)},e.prototype.$onGarbageCollection=function(e){for(var t=0,n=e;t<n.length;t++){
var r=n[t];this.delete(r)}},e._idPool=0,e}();t.ExtHostHeapService=n}),define(e[151],t([0,1,9,39,131]),function(e,t,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t,n,r){var i=e.call(this,o.createSpdLogService("exthost"+t,n,r))||this;return i._windowId=t,i._logsPath=r,i._loggers=new Map,i}return n(t,e),t.prototype.$setLevel=function(e){this.setLevel(e)},t.prototype.getExtLogger=function(e){var t=this._loggers.get(e);return t||(t=this.createLogger(e),this._loggers.set(e,t)),t},t.prototype.getLogDirectory=function(e){return r.join(this._logsPath,e+"_"+this._windowId)},t.prototype.createLogger=function(e){var t=this.getLogDirectory(e),n=o.createSpdLogService(e,this.getLevel(),t);return this._register(this.onDidChangeLogLevel(function(e){return n.setLevel(e)})),new a(n)},t}(i.DelegatedLogService);t.ExtHostLogService=s;var a=function(){function e(e){this._logService=e}return e.prototype.trace=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r]
;return(t=this._logService).trace.apply(t,[e].concat(n))},e.prototype.debug=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this._logService).debug.apply(t,[e].concat(n))},e.prototype.info=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this._logService).info.apply(t,[e].concat(n))},e.prototype.warn=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this._logService).warn.apply(t,[e].concat(n))},e.prototype.error=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this._logService).error.apply(t,[e].concat(n))},e.prototype.critical=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this._logService).critical.apply(t,[e].concat(n))},e}();t.ExtHostLogger=a}),define(e[10],t([0,1,215,3,17,73,21,7,20,12]),function(e,t,r,i,o,s,a,u,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e){this._callOnDispose=e}
return e.from=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(){if(t){for(var e=0,n=t;e<n.length;e++){var r=n[e];r&&"function"==typeof r.dispose&&r.dispose()}t=void 0}})},e.prototype.dispose=function(){"function"==typeof this._callOnDispose&&(this._callOnDispose(),this._callOnDispose=void 0)},e}();t.Disposable=f;var d=function(){function e(e,t){if(e<0)throw o.illegalArgument("line must be non-negative");if(t<0)throw o.illegalArgument("character must be non-negative");this._line=e,this._character=t}return e.Min=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.pop(),r=0,i=e;r<i.length;r++){var o=i[r];o.isBefore(n)&&(n=o)}return n},e.Max=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.pop(),r=0,i=e;r<i.length;r++){var o=i[r];o.isAfter(n)&&(n=o)}return n},e.isPosition=function(t){if(!t)return!1;if(t instanceof e)return!0;var n=t,r=n.line,i=n.character;return"number"==typeof r&&"number"==typeof i},
Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"character",{get:function(){return this._character},enumerable:!0,configurable:!0}),e.prototype.isBefore=function(e){return this._line<e._line||!(e._line<this._line)&&this._character<e._character},e.prototype.isBeforeOrEqual=function(e){return this._line<e._line||!(e._line<this._line)&&this._character<=e._character},e.prototype.isAfter=function(e){return!this.isBeforeOrEqual(e)},e.prototype.isAfterOrEqual=function(e){return!this.isBefore(e)},e.prototype.isEqual=function(e){return this._line===e._line&&this._character===e._character},e.prototype.compareTo=function(e){return this._line<e._line?-1:this._line>e.line?1:this._character<e._character?-1:this._character>e._character?1:0},e.prototype.translate=function(t,n){if(void 0===n&&(n=0),null===t||null===n)throw o.illegalArgument();var r
;return void 0===t?r=0:"number"==typeof t?r=t:(r="number"==typeof t.lineDelta?t.lineDelta:0,n="number"==typeof t.characterDelta?t.characterDelta:0),0===r&&0===n?this:new e(this.line+r,this.character+n)},e.prototype.with=function(t,n){if(void 0===n&&(n=this.character),null===t||null===n)throw o.illegalArgument();var r;return void 0===t?r=this.line:"number"==typeof t?r=t:(r="number"==typeof t.line?t.line:this.line,n="number"==typeof t.character?t.character:this.character),r===this.line&&n===this.character?this:new e(r,n)},e.prototype.toJSON=function(){return{line:this.line,character:this.character}},e}();t.Position=d;var h=function(){function e(e,t,n,r){var i,o;if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r?(i=new d(e,t),o=new d(n,r)):e instanceof d&&t instanceof d&&(i=e,o=t),!i||!o)throw new Error("Invalid arguments");i.isBefore(o)?(this._start=i,this._end=o):(this._start=o,this._end=i)}return e.isRange=function(t){
return t instanceof e||!!t&&(d.isPosition(t.start)&&d.isPosition(t.end))},Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),e.prototype.contains=function(t){return t instanceof e?this.contains(t._start)&&this.contains(t._end):t instanceof d&&(!t.isBefore(this._start)&&!this._end.isBefore(t))},e.prototype.isEqual=function(e){return this._start.isEqual(e._start)&&this._end.isEqual(e._end)},e.prototype.intersection=function(t){var n=d.Max(t.start,this._start),r=d.Min(t.end,this._end);if(!n.isAfter(r))return new e(n,r)},e.prototype.union=function(t){if(this.contains(t))return this;if(t.contains(this))return t;return new e(d.Min(t.start,this._start),d.Max(t.end,this.end))},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this._start.isEqual(this._end)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSingleLine",{
get:function(){return this._start.line===this._end.line},enumerable:!0,configurable:!0}),e.prototype.with=function(t,n){if(void 0===n&&(n=this.end),null===t||null===n)throw o.illegalArgument();var r;return t?d.isPosition(t)?r=t:(r=t.start||this.start,n=t.end||this.end):r=this.start,r.isEqual(this._start)&&n.isEqual(this.end)?this:new e(r,n)},e.prototype.toJSON=function(){return[this.start,this.end]},e}();t.Range=h;var p=function(e){function t(t,n,r,i){var o,s,a=this;if("number"==typeof t&&"number"==typeof n&&"number"==typeof r&&"number"==typeof i?(o=new d(t,n),s=new d(r,i)):t instanceof d&&n instanceof d&&(o=t,s=n),!o||!s)throw new Error("Invalid arguments");return a=e.call(this,o,s)||this,a._anchor=o,a._active=s,a}return n(t,e),t.isSelection=function(e){return e instanceof t||!!e&&(h.isRange(e)&&d.isPosition(e.anchor)&&d.isPosition(e.active)&&"boolean"==typeof e.isReversed)},Object.defineProperty(t.prototype,"anchor",{get:function(){return this._anchor},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReversed",{get:function(){return this._anchor===this._end},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}},t}(h);t.Selection=p;!function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(t.EndOfLine||(t.EndOfLine={}));var g=function(){function e(e,t){this.range=e,this.newText=t}return e.isTextEdit=function(t){return t instanceof e||!!t&&(h.isRange(t)&&"string"==typeof t.newText)},e.replace=function(t,n){return new e(t,n)},e.insert=function(t,n){return e.replace(new h(t,t),n)},e.delete=function(t){return e.replace(t,"")},e.setEndOfLine=function(t){var n=new e(void 0,void 0);return n.newEol=t,n},Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){if(e&&!h.isRange(e))throw o.illegalArgument("range");this._range=e},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"newText",{get:function(){return this._newText||""},set:function(e){if(e&&"string"!=typeof e)throw o.illegalArgument("newText");this._newText=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"newEol",{get:function(){return this._newEol},set:function(e){if(e&&"number"!=typeof e)throw o.illegalArgument("newEol");this._newEol=e},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){return{range:this.range,newText:this.newText,newEol:this._newEol}},e}();t.TextEdit=g;var m=function(){function e(){this._edits=new Array}return e.prototype.renameFile=function(e,t,n){this._edits.push({_type:1,from:e,to:t,options:n})},e.prototype.createFile=function(e,t){this._edits.push({_type:1,from:void 0,to:e,options:t})},e.prototype.deleteFile=function(e,t){this._edits.push({_type:1,from:e,to:void 0,options:t})},e.prototype.replace=function(e,t,n){this._edits.push({_type:2,uri:e,edit:new g(t,n)})},e.prototype.insert=function(e,t,n){this.replace(e,new h(t,t),n)},
e.prototype.delete=function(e,t){this.replace(e,t,"")},e.prototype.has=function(e){for(var t=0,n=this._edits;t<n.length;t++){var r=n[t];if(2===r._type&&r.uri.toString()===e.toString())return!0}return!1},e.prototype.set=function(e,t){if(t)for(var n=0,r=t;n<r.length;n++){var i=r[n];i&&this._edits.push({_type:2,uri:e,edit:i})}else{for(var o=0;o<this._edits.length;o++){var s=this._edits[o];2===s._type&&s.uri.toString()===e.toString()&&(this._edits[o]=void 0)}this._edits=l.coalesce(this._edits)}},e.prototype.get=function(e){for(var t=[],n=0,r=this._edits;n<r.length;n++){var i=r[n];2===i._type&&i.uri.toString()===e.toString()&&t.push(i.edit)}if(0!==t.length)return t},e.prototype.entries=function(){for(var e=new Map,t=0,n=this._edits;t<n.length;t++){var r=n[t];if(2===r._type){var i=e.get(r.uri.toString());i||(i=[r.uri,[]],e.set(r.uri.toString(),i)),i[1].push(r.edit)}}return c.values(e)},e.prototype._allEntries=function(){for(var e=[],t=0,n=this._edits;t<n.length;t++){var r=n[t]
;1===r._type?e.push([r.from,r.to,r.options]):e.push([r.uri,[r.edit]])}return e},Object.defineProperty(e.prototype,"size",{get:function(){return this.entries().length},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){return this.entries()},e}();t.WorkspaceEdit=m;var v=function(){function e(e){this._tabstop=1,this.value=e||""}return e.isSnippetString=function(t){return t instanceof e||!!t&&"string"==typeof t.value},e._escape=function(e){return e.replace(/\$|}|\\/g,"\\$&")},e.prototype.appendText=function(t){return this.value+=e._escape(t),this},e.prototype.appendTabstop=function(e){return void 0===e&&(e=this._tabstop++),this.value+="$",this.value+=e,this},e.prototype.appendPlaceholder=function(t,n){if(void 0===n&&(n=this._tabstop++),"function"==typeof t){var r=new e;r._tabstop=this._tabstop,t(r),this._tabstop=r._tabstop,t=r.value}else t=e._escape(t);return this.value+="${",this.value+=n,this.value+=":",this.value+=t,this.value+="}",this},e.prototype.appendVariable=function(t,n){
if("function"==typeof n){var r=new e;r._tabstop=this._tabstop,n(r),this._tabstop=r._tabstop,n=r.value}else"string"==typeof n&&(n=n.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=t,n&&(this.value+=":",this.value+=n),this.value+="}",this},e}();t.SnippetString=v;!function(e){e[e.Unnecessary=1]="Unnecessary"}(t.DiagnosticTag||(t.DiagnosticTag={}));var _;!function(e){e[e.Hint=3]="Hint",e[e.Information=2]="Information",e[e.Warning=1]="Warning",e[e.Error=0]="Error"}(_=t.DiagnosticSeverity||(t.DiagnosticSeverity={}));var y=function(){function e(e,t){if(this.uri=e,t)if(t instanceof h)this.range=t;else{if(!(t instanceof d))throw new Error("Illegal argument");this.range=new h(t,t)}else;}return e.isLocation=function(t){return t instanceof e||!!t&&(h.isRange(t.range)&&i.default.isUri(t.uri))},e.prototype.toJSON=function(){return{uri:this.uri,range:this.range}},e}();t.Location=y;var b=function(){function e(e,t){this.location=e,this.message=t}return e.is=function(e){
return!!e&&("string"==typeof e.message&&e.location&&h.isRange(e.location.range)&&i.default.isUri(e.location.uri))},e}();t.DiagnosticRelatedInformation=b;var C=function(){function e(e,t,n){void 0===n&&(n=_.Error),this.range=e,this.message=t,this.severity=n}return e.prototype.toJSON=function(){return{severity:_[this.severity],message:this.message,range:this.range,source:this.source,code:this.code}},e}();t.Diagnostic=C;var E=function(){return function(e,t){if(!e)throw new Error("Illegal argument, contents must be defined");Array.isArray(e)?this.contents=e:(s.isMarkdownString(e),this.contents=[e]),this.range=t}}();t.Hover=E;var S;!function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(S=t.DocumentHighlightKind||(t.DocumentHighlightKind={}));var x=function(){function e(e,t){void 0===t&&(t=S.Text),this.range=e,this.kind=t}return e.prototype.toJSON=function(){return{range:this.range,kind:S[this.kind]}},e}();t.DocumentHighlight=x;var w;!function(e){e[e.File=0]="File",e[e.Module=1]="Module",
e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(w=t.SymbolKind||(t.SymbolKind={}));var T=function(){function e(e,t,n,r,i){this.name=e,this.kind=t,this.containerName=i,"string"==typeof n&&(this.containerName=n),r instanceof y?this.location=r:n instanceof h&&(this.location=new y(r,n))}return e.prototype.toJSON=function(){return{name:this.name,kind:w[this.kind],location:this.location,containerName:this.containerName}},e}();t.SymbolInformation=T
;var P=function(){return function(e,t,n,r,i){if(this.name=e,this.detail=t,this.kind=n,this.range=r,this.selectionRange=i,this.children=[],!this.range.contains(this.selectionRange))throw new Error("selectionRange must be contained in fullRange")}}();t.DocumentSymbol=P;!function(e){e[e.Automatic=1]="Automatic",e[e.Manual=2]="Manual"}(t.CodeActionTrigger||(t.CodeActionTrigger={}));var I=function(){return function(e,t){this.title=e,this.kind=t}}();t.CodeAction=I;var D=function(){function e(e){this.value=e}return e.prototype.append=function(t){return new e(this.value?this.value+e.sep+t:t)},e.prototype.contains=function(t){return this.value===t.value||u.startsWith(t.value,this.value+e.sep)},e.sep=".",e.Empty=new e(""),e.QuickFix=e.Empty.append("quickfix"),e.Refactor=e.Empty.append("refactor"),e.RefactorExtract=e.Refactor.append("extract"),e.RefactorInline=e.Refactor.append("inline"),e.RefactorRewrite=e.Refactor.append("rewrite"),e.Source=e.Empty.append("source"),
e.SourceOrganizeImports=e.Source.append("organizeImports"),e}();t.CodeActionKind=D;var k=function(){function e(e,t){this.range=e,this.command=t}return Object.defineProperty(e.prototype,"isResolved",{get:function(){return!!this.command},enumerable:!0,configurable:!0}),e}();t.CodeLens=k;var L=function(){function e(e){this.value=e||""}return e.prototype.appendText=function(e){return this.value+=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this},e.prototype.appendMarkdown=function(e){return this.value+=e,this},e.prototype.appendCodeblock=function(e,t){return void 0===t&&(t=""),this.value+="\n```",this.value+=t,this.value+="\n",this.value+=e,this.value+="\n```\n",this},e}();t.MarkdownString=L;var O=function(){return function(e,t){this.label=e,this.documentation=t}}();t.ParameterInformation=O;var R=function(){return function(e,t){this.label=e,this.documentation=t,this.parameters=[]}}();t.SignatureInformation=R;var A=function(){return function(){this.signatures=[]}}();t.SignatureHelp=A;!function(e){
e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(t.CompletionTriggerKind||(t.CompletionTriggerKind={}));var N;!function(e){e[e.Text=0]="Text",e[e.Method=1]="Method",e[e.Function=2]="Function",e[e.Constructor=3]="Constructor",e[e.Field=4]="Field",e[e.Variable=5]="Variable",e[e.Class=6]="Class",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Unit=10]="Unit",e[e.Value=11]="Value",e[e.Enum=12]="Enum",e[e.Keyword=13]="Keyword",e[e.Snippet=14]="Snippet",e[e.Color=15]="Color",e[e.File=16]="File",e[e.Reference=17]="Reference",e[e.Folder=18]="Folder",e[e.EnumMember=19]="EnumMember",e[e.Constant=20]="Constant",e[e.Struct=21]="Struct",e[e.Event=22]="Event",e[e.Operator=23]="Operator",e[e.TypeParameter=24]="TypeParameter"}(N=t.CompletionItemKind||(t.CompletionItemKind={}));var M=function(){function e(e,t){this.label=e,this.kind=t}return e.prototype.toJSON=function(){return{label:this.label,
kind:N[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}},e}();t.CompletionItem=M;var F=function(){return function(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.items=e,this.isIncomplete=t}}();t.CompletionList=F;!function(e){e[e.Active=-1]="Active",e[e.Beside=-2]="Beside",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Three=3]="Three",e[e.Four=4]="Four",e[e.Five=5]="Five",e[e.Six=6]="Six",e[e.Seven=7]="Seven",e[e.Eight=8]="Eight",e[e.Nine=9]="Nine"}(t.ViewColumn||(t.ViewColumn={}));!function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(t.StatusBarAlignment||(t.StatusBarAlignment={}));!function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative"}(t.TextEditorLineNumbersStyle||(t.TextEditorLineNumbersStyle={}));!function(e){e[e.Manual=1]="Manual",e[e.AfterDelay=2]="AfterDelay",e[e.FocusOut=3]="FocusOut"}(t.TextDocumentSaveReason||(t.TextDocumentSaveReason={}))
;!function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(t.TextEditorRevealType||(t.TextEditorRevealType={}));!function(e){e[e.Keyboard=1]="Keyboard",e[e.Mouse=2]="Mouse",e[e.Command=3]="Command"}(t.TextEditorSelectionChangeKind||(t.TextEditorSelectionChangeKind={}));!function(e){e[e.OpenOpen=0]="OpenOpen",e[e.ClosedClosed=1]="ClosedClosed",e[e.OpenClosed=2]="OpenClosed",e[e.ClosedOpen=3]="ClosedOpen"}(t.DecorationRangeBehavior||(t.DecorationRangeBehavior={})),function(e){e.fromValue=function(t){switch(t){case"keyboard":return e.Keyboard;case"mouse":return e.Mouse;case"api":return e.Command}}}(t.TextEditorSelectionChangeKind||(t.TextEditorSelectionChangeKind={}));var W=function(){return function(e,t){if(t&&!(t instanceof i.default))throw o.illegalArgument("target");if(!h.isRange(e)||e.isEmpty)throw o.illegalArgument("range");this.range=e,this.target=t}}();t.DocumentLink=W;var B=function(){return function(e,t,n,r){
this.red=e,this.green=t,this.blue=n,this.alpha=r}}();t.Color=B;var j=function(){return function(e,t){if(t&&!(t instanceof B))throw o.illegalArgument("color");if(!h.isRange(e)||e.isEmpty)throw o.illegalArgument("range");this.range=e,this.color=t}}();t.ColorInformation=j;var H=function(){return function(e){if(!e||"string"!=typeof e)throw o.illegalArgument("label");this.label=e}}();t.ColorPresentation=H;!function(e){e[e.RGB=0]="RGB",e[e.HEX=1]="HEX",e[e.HSL=2]="HSL"}(t.ColorFormat||(t.ColorFormat={}));!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information"}(t.SourceControlInputBoxValidationType||(t.SourceControlInputBoxValidationType={}));!function(e){e[e.Always=1]="Always",e[e.Silent=2]="Silent",e[e.Never=3]="Never"}(t.TaskRevealKind||(t.TaskRevealKind={}));!function(e){e[e.Shared=1]="Shared",e[e.Dedicated=2]="Dedicated",e[e.New=3]="New"}(t.TaskPanelKind||(t.TaskPanelKind={}));var z=function(){function e(e,t){if("string"!=typeof e)throw o.illegalArgument("name")
;if("string"!=typeof t)throw o.illegalArgument("name");this._id=e}return e.from=function(t){switch(t){case"clean":return e.Clean;case"build":return e.Build;case"rebuild":return e.Rebuild;case"test":return e.Test;default:return}},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),e.Clean=new e("clean","Clean"),e.Build=new e("build","Build"),e.Rebuild=new e("rebuild","Rebuild"),e.Test=new e("test","Test"),e}();t.TaskGroup=z;var U=function(){function e(e,t,n){if("string"!=typeof e)throw o.illegalArgument("process");this._process=e,void 0!==t&&(Array.isArray(t)?(this._args=t,this._options=n):this._options=t),void 0===this._args&&(this._args=[])}return Object.defineProperty(e.prototype,"process",{get:function(){return this._process},set:function(e){if("string"!=typeof e)throw o.illegalArgument("process");this._process=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"args",{get:function(){return this._args},set:function(e){
Array.isArray(e)||(e=[]),this._args=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!0,configurable:!0}),e.prototype.computeId=function(){var e=r.createHash("md5");if(e.update("process"),void 0!==this._process&&e.update(this._process),this._args&&this._args.length>0)for(var t=0,n=this._args;t<n.length;t++){var i=n[t];e.update(i)}return e.digest("hex")},e}();t.ProcessExecution=U;var V=function(){function e(e,t,n){if(Array.isArray(t)){if(!e)throw o.illegalArgument("command can't be undefined or null");if("string"!=typeof e&&"string"!=typeof e.value)throw o.illegalArgument("command");this._command=e,this._args=t,this._options=n}else{if("string"!=typeof e)throw o.illegalArgument("commandLine");this._commandLine=e,this._options=t}}return Object.defineProperty(e.prototype,"commandLine",{get:function(){return this._commandLine},set:function(e){if("string"!=typeof e)throw o.illegalArgument("commandLine")
;this._commandLine=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"command",{get:function(){return this._command},set:function(e){if("string"!=typeof e&&"string"!=typeof e.value)throw o.illegalArgument("command");this._command=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"args",{get:function(){return this._args},set:function(e){this._args=e||[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!0,configurable:!0}),e.prototype.computeId=function(){var e=r.createHash("md5");if(e.update("shell"),void 0!==this._commandLine&&e.update(this._commandLine),void 0!==this._command&&e.update("string"==typeof this._command?this._command:this._command.value),this._args&&this._args.length>0)for(var t=0,n=this._args;t<n.length;t++){var i=n[t];e.update("string"==typeof i?i:i.value)}return e.digest("hex")},e}();t.ShellExecution=V;!function(e){e[e.Escape=1]="Escape",
e[e.Strong=2]="Strong",e[e.Weak=3]="Weak"}(t.ShellQuoting||(t.ShellQuoting={}));var K;!function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace"}(K=t.TaskScope||(t.TaskScope={}));var $=function(){function e(e,t,n,r,i,o){this.definition=e;var s;"string"==typeof t?(this.name=t,this.source=n,this.execution=r,s=i):(t===K.Global||K.Workspace,this.target=t,this.name=n,this.source=r,this.execution=i,s=o),"string"==typeof s?(this._problemMatchers=[s],this._hasDefinedMatchers=!0):Array.isArray(s)?(this._problemMatchers=s,this._hasDefinedMatchers=!0):(this._problemMatchers=[],this._hasDefinedMatchers=!1),this._isBackground=!1}return Object.defineProperty(e.prototype,"_id",{get:function(){return this.__id},set:function(e){this.__id=e},enumerable:!0,configurable:!0}),e.prototype.clear=function(){void 0!==this.__id&&(this.__id=void 0,this._scope=void 0,this._definition=void 0,this._execution instanceof U?this._definition={type:"process",id:this._execution.computeId()
}:this._execution instanceof V&&(this._definition={type:"shell",id:this._execution.computeId()}))},Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(e){if(void 0===e||null===e)throw o.illegalArgument("Kind can't be undefined or null");this.clear(),this._definition=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{set:function(e){this.clear(),this._scope=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){if("string"!=typeof e)throw o.illegalArgument("name");this.clear(),this._name=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"execution",{get:function(){return this._execution},set:function(e){null===e&&(e=void 0),this.clear(),this._execution=e},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"problemMatchers",{get:function(){return this._problemMatchers},set:function(e){if(!Array.isArray(e))return this._problemMatchers=[],void(this._hasDefinedMatchers=!1);this.clear(),this._problemMatchers=e,this._hasDefinedMatchers=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDefinedMatchers",{get:function(){return this._hasDefinedMatchers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBackground",{get:function(){return this._isBackground},set:function(e){!0!==e&&!1!==e&&(e=!1),this.clear(),this._isBackground=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return this._source},set:function(e){if("string"!=typeof e||0===e.length)throw o.illegalArgument("source must be a string of length > 0");this.clear(),this._source=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"group",{get:function(){return this._group},set:function(e){void 0!==e&&null!==e?(this.clear(),
this._group=e):this._group=void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"presentationOptions",{get:function(){return this._presentationOptions},set:function(e){null===e&&(e=void 0),this.clear(),this._presentationOptions=e},enumerable:!0,configurable:!0}),e}();t.Task=$;!function(e){e[e.SourceControl=1]="SourceControl",e[e.Window=10]="Window",e[e.Notification=15]="Notification"}(t.ProgressLocation||(t.ProgressLocation={}));var q=function(){return function(e,t){void 0===t&&(t=G.None),this.collapsibleState=t,e instanceof i.default?this.resourceUri=e:this.label=e}}();t.TreeItem=q;var G;!function(e){e[e.None=0]="None",e[e.Collapsed=1]="Collapsed",e[e.Expanded=2]="Expanded"}(G=t.TreeItemCollapsibleState||(t.TreeItemCollapsibleState={}));var J=function(){function e(e){this.id=e}return e.File=new e("file"),e.Folder=new e("folder"),e}();t.ThemeIcon=J;var Q=function(){return function(e){this.id=e}}();t.ThemeColor=Q;!function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace",
e[e.WorkspaceFolder=3]="WorkspaceFolder"}(t.ConfigurationTarget||(t.ConfigurationTarget={}));var Y=function(){function e(e,t){if(!("string"==typeof e||e&&i.default.isUri(e.uri)))throw o.illegalArgument("base");if("string"!=typeof t)throw o.illegalArgument("pattern");this.base="string"==typeof e?e:e.uri.fsPath,this.pattern=t}return e.prototype.pathToRelative=function(e,t){return a.relative(e,t)},e}();t.RelativePattern=Y;var X=function(){return function(e,t,n,r){this.enabled="boolean"!=typeof e||e,"string"==typeof t&&(this.condition=t),"string"==typeof n&&(this.hitCondition=n),"string"==typeof r&&(this.logMessage=r)}}();t.Breakpoint=X;var Z=function(e){function t(t,n,r,i,s){var a=e.call(this,n,r,i,s)||this;if(null===t)throw o.illegalArgument("location");return a.location=t,a}return n(t,e),t}(X);t.SourceBreakpoint=Z;var ee=function(e){function t(t,n,r,i,s){var a=e.call(this,n,r,i,s)||this;if(!t)throw o.illegalArgument("functionName");return a.functionName=t,a}return n(t,e),t}(X);t.FunctionBreakpoint=ee
;var te=function(){return function(e,t){this.command=e,this.args=t}}();t.DebugAdapterExecutable=te;!function(e){e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error",e[e.Critical=6]="Critical",e[e.Off=7]="Off"}(t.LogLevel||(t.LogLevel={}));!function(e){e[e.Changed=1]="Changed",e[e.Created=2]="Created",e[e.Deleted=3]="Deleted"}(t.FileChangeType||(t.FileChangeType={}));var ne=function(e){function t(n,r,o){var s=e.call(this,i.default.isUri(n)?n.toString(!0):n)||this;return s.name=r?r+" (FileSystemError)":"FileSystemError","function"==typeof Object.setPrototypeOf&&Object.setPrototypeOf(s,t.prototype),"function"==typeof Error.captureStackTrace&&"function"==typeof o&&Error.captureStackTrace(s,o),s}return n(t,e),t.FileExists=function(e){return new t(e,"EntryExists",t.FileExists)},t.FileNotFound=function(e){return new t(e,"EntryNotFound",t.FileNotFound)},t.FileNotADirectory=function(e){return new t(e,"EntryNotADirectory",t.FileNotADirectory)},
t.FileIsADirectory=function(e){return new t(e,"EntryIsADirectory",t.FileIsADirectory)},t.NoPermissions=function(e){return new t(e,"NoPermissions",t.NoPermissions)},t.Unavailable=function(e){return new t(e,"Unavailable",t.Unavailable)},t}(Error);t.FileSystemError=ne;var re=function(){return function(e,t,n){this.start=e,this.end=t,this.kind=n}}();t.FoldingRange=re;!function(e){e[e.Comment=1]="Comment",e[e.Imports=2]="Imports",e[e.Region=3]="Region"}(t.FoldingRangeKind||(t.FoldingRangeKind={}));!function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"}(t.CommentThreadCollapsibleState||(t.CommentThreadCollapsibleState={}))}),define(e[74],t([0,1,48,7,86,10,41,2,23]),function(e,t,r,i,o,s,a,u,c){"use strict";function l(e){return f.get(e)}Object.defineProperty(t,"__esModule",{value:!0});var f=new Map;t.setWordDefinitionFor=function(e,t){f.set(e,t)},t.getWordDefinitionFor=l;var d=function(e){function t(t,n,r,i,o,s,a){var u=e.call(this,n,r,i,s)||this;return u._textLines=[],u._isDisposed=!1,u._proxy=t,
u._languageId=o,u._isDirty=a,u}return n(t,e),t.prototype.dispose=function(){r.ok(!this._isDisposed),this._isDisposed=!0,this._isDirty=!1},t.prototype.equalLines=function(e){var t=e.length;if(t!==this._lines.length)return!1;for(var n=0;n<t;n++)if(e[n]!==this._lines[n])return!1;return!0},Object.defineProperty(t.prototype,"document",{get:function(){if(!this._document){var e=this;this._document={get uri(){return e._uri},get fileName(){return e._uri.fsPath},get isUntitled(){return e._uri.scheme===c.Schemas.untitled},get languageId(){return e._languageId},get version(){return e._versionId},get isClosed(){return e._isDisposed},get isDirty(){return e._isDirty},save:function(){return e._save()},getText:function(t){return t?e._getTextInRange(t):e.getText()},get eol(){return"\n"===e._eol?s.EndOfLine.LF:s.EndOfLine.CRLF},get lineCount(){return e._lines.length},lineAt:function(t){return e._lineAt(t)},offsetAt:function(t){return e._offsetAt(t)},positionAt:function(t){return e._positionAt(t)},validateRange:function(t){
return e._validateRange(t)},validatePosition:function(t){return e._validatePosition(t)},getWordRangeAtPosition:function(t,n){return e._getWordRangeAtPosition(t,n)}}}return Object.freeze(this._document)},enumerable:!0,configurable:!0}),t.prototype._acceptLanguageId=function(e){r.ok(!this._isDisposed),this._languageId=e},t.prototype._acceptIsDirty=function(e){r.ok(!this._isDisposed),this._isDirty=e},t.prototype._save=function(){return this._isDisposed?u.TPromise.wrapError(new Error("Document has been closed")):this._proxy.$trySaveDocument(this._uri)},t.prototype._getTextInRange=function(e){var t=this._validateRange(e);if(t.isEmpty)return"";if(t.isSingleLine)return this._lines[t.start.line].substring(t.start.character,t.end.character);var n=this._eol,r=t.start.line,i=t.end.line,o=[];o.push(this._lines[r].substring(t.start.character));for(var s=r+1;s<i;s++)o.push(this._lines[s]);return o.push(this._lines[i].substring(0,t.end.character)),o.join(n)},t.prototype._lineAt=function(e){var t
;if(e instanceof s.Position?t=e.line:"number"==typeof e&&(t=e),t<0||t>=this._lines.length)throw new Error("Illegal value for `line`");var n=this._textLines[t];if(!n||n.lineNumber!==t||n.text!==this._lines[t]){var r=this._lines[t],i=/^(\s*)/.exec(r)[1].length,o=new s.Range(t,0,t,r.length),a=t<this._lines.length-1?new s.Range(t,0,t+1,0):o;n=Object.freeze({lineNumber:t,range:o,rangeIncludingLineBreak:a,text:r,firstNonWhitespaceCharacterIndex:i,isEmptyOrWhitespace:i===r.length}),this._textLines[t]=n}return n},t.prototype._offsetAt=function(e){return e=this._validatePosition(e),this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.line-1)+e.character},t.prototype._positionAt=function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return new s.Position(t.index,Math.min(t.remainder,n))},t.prototype._validateRange=function(e){if(!(e instanceof s.Range))throw new Error("Invalid argument")
;var t=this._validatePosition(e.start),n=this._validatePosition(e.end);return t===e.start&&n===e.end?e:new s.Range(t.line,t.character,n.line,n.character)},t.prototype._validatePosition=function(e){if(!(e instanceof s.Position))throw new Error("Invalid argument");var t=e.line,n=e.character,r=!1;if(t<0)t=0,n=0,r=!0;else if(t>=this._lines.length)t=this._lines.length-1,n=this._lines[t].length,r=!0;else{var i=this._lines[t].length;n<0?(n=0,r=!0):n>i&&(n=i,r=!0)}return r?new s.Position(t,n):e},t.prototype._getWordRangeAtPosition=function(e,t){var n=this._validatePosition(e);t?i.regExpLeadsToEndlessLoop(t)&&(console.warn("[getWordRangeAtPosition]: ignoring custom regexp '"+t.source+"' because it matches the empty string."),t=l(this._languageId)):t=l(this._languageId);var r=a.getWordAtText(n.character+1,a.ensureValidWordDefinition(t),this._lines[n.line],0);if(r)return new s.Range(n.line,r.startColumn-1,n.line,r.endColumn-1)},t}(o.MirrorTextModel);t.ExtHostDocumentData=d}),
define(e[155],t([0,1,108,9,3,4,2,11,15,10,18,12]),function(e,t,r,i,o,s,a,u,c,l,f,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function e(e,t){var n=this;this._proxy=e,this.commands=t,this.treeViews=new Map,t.registerArgumentProcessor({processArgument:function(e){return e&&e.$treeViewId&&e.$treeItemHandle?n.convertArgument(e):e}})}return e.prototype.registerTreeDataProvider=function(e,t){var n=this.createTreeView(e,{treeDataProvider:t});return{dispose:function(){return n.dispose()}}},e.prototype.createTreeView=function(e,t){var n=this;if(!t||!t.treeDataProvider)throw new Error("Options with treeDataProvider is mandatory");var r=this.createExtHostTreeViewer(e,t.treeDataProvider);return{get onDidCollapseElement(){return r.onDidCollapseElement},get onDidExpandElement(){return r.onDidExpandElement},get selection(){return r.selectedElements},get onDidChangeSelection(){return r.onDidChangeSelection},get visible(){return r.visible},get onDidChangeVisibility(){
return r.onDidChangeVisibility},reveal:function(e,t){return r.reveal(e,t)},dispose:function(){n.treeViews.delete(e),r.dispose()}}},e.prototype.$getChildren=function(e,t){var n=this.treeViews.get(e);return n?n.getChildren(t):a.TPromise.wrapError(new Error(r.localize(0,null,e)))},e.prototype.$setExpanded=function(e,t,n){var i=this.treeViews.get(e);if(!i)throw new Error(r.localize(1,null,e));i.setExpanded(t,n)},e.prototype.$setSelection=function(e,t){var n=this.treeViews.get(e);if(!n)throw new Error(r.localize(2,null,e));n.setSelection(t)},e.prototype.$setVisible=function(e,t){var n=this.treeViews.get(e);if(!n)throw new Error(r.localize(3,null,e));n.setVisible(t)},e.prototype.createExtHostTreeViewer=function(e,t){var n=new p(e,t,this._proxy,this.commands.converter);return this.treeViews.set(e,n),n},e.prototype.convertArgument=function(e){var t=this.treeViews.get(e.$treeViewId);return t?t.getExtensionElement(e.$treeItemHandle):null},e}();t.ExtHostTreeViews=h;var p=function(e){function t(t,n,r,i){
var o=e.call(this)||this;if(o.viewId=t,o.dataProvider=n,o.proxy=r,o.commands=i,o.roots=null,o.elements=new Map,o.nodes=new Map,o._visible=!1,o._selectedHandles=[],o._onDidExpandElement=o._register(new s.Emitter),o.onDidExpandElement=o._onDidExpandElement.event,o._onDidCollapseElement=o._register(new s.Emitter),o.onDidCollapseElement=o._onDidCollapseElement.event,o._onDidChangeSelection=o._register(new s.Emitter),o.onDidChangeSelection=o._onDidChangeSelection.event,o._onDidChangeVisibility=o._register(new s.Emitter),o.onDidChangeVisibility=o._onDidChangeVisibility.event,o.refreshPromise=a.TPromise.as(null),o.proxy.$registerTreeViewDataProvider(t),o.dataProvider.onDidChangeTreeData){var u,c;o._register(s.debounceEvent(o.dataProvider.onDidChangeTreeData,function(e,t){return u||(u=new a.TPromise(function(e,t){return c=e}),o.refreshPromise=o.refreshPromise.then(function(){return u})),e?e.concat([t]):[t]},200)(function(e){var t=c;u=null,o.refresh(e).then(function(){return t()})}))}return o}return n(t,e),
Object.defineProperty(t.prototype,"visible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedElements",{get:function(){var e=this;return this._selectedHandles.map(function(t){return e.getExtensionElement(t)}).filter(function(e){return!f.isUndefinedOrNull(e)})},enumerable:!0,configurable:!0}),t.prototype.getChildren=function(e){var t=e?this.getExtensionElement(e):void 0;if(e&&!t)return console.error("No tree item with id '"+e+"' found."),a.TPromise.as([]);var n=this.getChildrenNodes(e);return(n?a.TPromise.as(n):this.fetchChildrenNodes(t)).then(function(e){return e.map(function(e){return e.item})})},t.prototype.getExtensionElement=function(e){return this.elements.get(e)},t.prototype.reveal=function(e,t){var n=this;t=t||{select:!0,focus:!1};var r=!!f.isUndefinedOrNull(t.select)||t.select,i=!f.isUndefinedOrNull(t.focus)&&t.focus
;return"function"!=typeof this.dataProvider.getParent?a.TPromise.wrapError(new Error("Required registered TreeDataProvider to implement 'getParent' method to access 'reveal' method")):this.refreshPromise.then(function(){return n.resolveUnknownParentChain(e)}).then(function(t){return n.resolveTreeNode(e,t[t.length-1]).then(function(e){return n.proxy.$reveal(n.viewId,e.item,t.map(function(e){return e.item}),{select:r,focus:i})})})},t.prototype.setExpanded=function(e,t){var n=this.getExtensionElement(e);n&&(t?this._onDidExpandElement.fire(Object.freeze({element:n})):this._onDidCollapseElement.fire(Object.freeze({element:n})))},t.prototype.setSelection=function(e){d.equals(this._selectedHandles,e)||(this._selectedHandles=e,this._onDidChangeSelection.fire(Object.freeze({selection:this.selectedElements})))},t.prototype.setVisible=function(e){e!==this._visible&&(this._visible=e,this._onDidChangeVisibility.fire(Object.freeze({visible:this._visible})))},t.prototype.resolveUnknownParentChain=function(e){var t=this
;return this.resolveParent(e).then(function(e){return e?t.resolveUnknownParentChain(e).then(function(n){return t.resolveTreeNode(e,n[n.length-1]).then(function(e){return n.push(e),n})}):a.TPromise.as([])})},t.prototype.resolveParent=function(e){var t=this,n=this.nodes.get(e);return n?a.TPromise.as(n.parent?this.elements.get(n.parent.item.handle):null):c.asWinJsPromise(function(){return t.dataProvider.getParent(e)})},t.prototype.resolveTreeNode=function(e,t){var n=this;return c.asWinJsPromise(function(){return n.dataProvider.getTreeItem(e)}).then(function(r){return n.createHandle(e,r,t,!0)}).then(function(e){return n.getChildren(t?t.item.handle:null).then(function(){var t=n.getExtensionElement(e);if(t){var r=n.nodes.get(t);if(r)return a.TPromise.as(r)}throw new Error("Cannot resolve tree item for element "+e)})})},t.prototype.getChildrenNodes=function(e){if(e){var t=void 0;if("string"==typeof e){var n=this.getExtensionElement(e);t=n?this.nodes.get(n):null}else t=e;return t?t.children:null}return this.roots},
t.prototype.fetchChildrenNodes=function(e){var t=this;this.clearChildren(e);var n=e?this.nodes.get(e):void 0;return c.asWinJsPromise(function(){return t.dataProvider.getChildren(e)}).then(function(e){return a.TPromise.join((e||[]).filter(function(e){return!!e}).map(function(e){return c.asWinJsPromise(function(){return t.dataProvider.getTreeItem(e)}).then(function(r){return r?t.createAndRegisterTreeNode(e,r,n):null})}))}).then(function(e){return e.filter(function(e){return!!e})})},t.prototype.refresh=function(e){if(e.some(function(e){return!e}))return this.clearAll(),this.proxy.$refresh(this.viewId);var t=this.getHandlesToRefresh(e);return t.length?this.refreshHandles(t):a.TPromise.as(null)},t.prototype.getHandlesToRefresh=function(e){for(var t=this,n=new Set,r=0,i=e;r<i.length;r++){var o=i[r],s=this.nodes.get(o);if(s&&!n.has(s.item.handle)){for(var a=s;a&&a.parent&&!n.has(a.parent.item.handle);){var u=this.elements.get(a.parent.item.handle);a=this.nodes.get(u)}a.parent||n.add(s.item.handle)}}var c=[]
;return n.forEach(function(e){var r=t.elements.get(e),i=t.nodes.get(r);!i||i.parent&&n.has(i.parent.item.handle)||c.push(e)}),c},t.prototype.refreshHandles=function(e){var t=this,n={};return a.TPromise.join(e.map(function(e){return t.refreshNode(e).then(function(t){t&&(n[e]=t.item)})})).then(function(){return Object.keys(n).length?t.proxy.$refresh(t.viewId,n):null})},t.prototype.refreshNode=function(e){var t=this,n=this.getExtensionElement(e),r=this.nodes.get(n);return this.clearChildren(n),c.asWinJsPromise(function(){return t.dataProvider.getTreeItem(n)}).then(function(e){if(e){var i=t.createTreeNode(n,e,r.parent);return t.updateNodeCache(n,i,r,r.parent),i}return null})},t.prototype.createAndRegisterTreeNode=function(e,t,n){var i=this.createTreeNode(e,t,n);if(t.id&&this.elements.has(i.item.handle))throw new Error(r.localize(4,null,t.id));return this.addNodeToCache(e,i),this.addNodeToParentCache(i,n),i},t.prototype.createTreeNode=function(e,t,n){return{item:this.createTreeItem(e,t,n),parent:n,children:void 0}
},t.prototype.createTreeItem=function(e,t,n){var r=this.createHandle(e,t,n),i=this.getLightIconPath(t);return{handle:r,parentHandle:n?n.item.handle:void 0,label:t.label,resourceUri:t.resourceUri,tooltip:"string"==typeof t.tooltip?t.tooltip:void 0,command:t.command?this.commands.toInternal(t.command):void 0,contextValue:t.contextValue,icon:i,iconDark:this.getDarkIconPath(t)||i,themeIcon:t.iconPath instanceof l.ThemeIcon?{id:t.iconPath.id}:void 0,collapsibleState:f.isUndefinedOrNull(t.collapsibleState)?l.TreeItemCollapsibleState.None:t.collapsibleState}},t.prototype.createHandle=function(e,n,r,o){var s=n.id,a=n.label,u=n.resourceUri;if(s)return t.ID_HANDLE_PREFIX+"/"+s;var c=r?r.item.handle:t.LABEL_HANDLE_PREFIX,l=a||(u?i.basename(u.path):"");l=-1!==l.indexOf("/")?l.replace("/","//"):l;var f,d=this.nodes.has(e)?this.nodes.get(e).item.handle:void 0,h=this.getChildrenNodes(r)||[],p=0;do{if(f=c+"/"+p+":"+l,o||!this.elements.has(f)||d===f)break;p++}while(p<=h.length);return f},
t.prototype.getLightIconPath=function(e){if(e.iconPath&&!(e.iconPath instanceof l.ThemeIcon))return"string"==typeof e.iconPath||e.iconPath instanceof o.default?this.getIconPath(e.iconPath):this.getIconPath(e.iconPath.light)},t.prototype.getDarkIconPath=function(e){if(e.iconPath&&!(e.iconPath instanceof l.ThemeIcon)&&e.iconPath.dark)return this.getIconPath(e.iconPath.dark)},t.prototype.getIconPath=function(e){return e instanceof o.default?e.toString():o.default.file(e).toString()},t.prototype.addNodeToCache=function(e,t){this.elements.set(t.item.handle,e),this.nodes.set(e,t)},t.prototype.updateNodeCache=function(e,t,n,r){this.elements.delete(t.item.handle),this.nodes.delete(e),t.item.handle!==n.item.handle&&this.elements.delete(n.item.handle),this.addNodeToCache(e,t);var i=this.getChildrenNodes(r)||[],o=i.filter(function(e){return e.item.handle===n.item.handle})[0];o&&i.splice(i.indexOf(o),1,t)},t.prototype.addNodeToParentCache=function(e,t){t?(t.children||(t.children=[]),
t.children.push(e)):(this.roots||(this.roots=[]),this.roots.push(e))},t.prototype.clearChildren=function(e){if(e){var t=this.nodes.get(e);if(t.children)for(var n=0,r=t.children;n<r.length;n++){var i=r[n],o=this.elements.get(i.item.handle);o&&this.clear(o)}t.children=void 0}else this.clearAll()},t.prototype.clear=function(e){var t=this.nodes.get(e);if(t.children)for(var n=0,r=t.children;n<r.length;n++){var i=r[n],o=this.elements.get(i.item.handle);o&&this.clear(o)}this.nodes.delete(e),this.elements.delete(t.item.handle)},t.prototype.clearAll=function(){this.roots=null,this.elements.clear(),this.nodes.clear()},t.prototype.dispose=function(){this.clearAll()},t.LABEL_HANDLE_PREFIX="0",t.ID_HANDLE_PREFIX="1",t}(u.Disposable)}),define(e[75],t([0,1,2,4,16,18,11,42,28,23,174]),function(e,t,r,i,o,s,a,u,c,l,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditorsVisibleContext=new u.RawContextKey("editorIsOpen",!1),t.EditorGroupActiveEditorDirtyContext=new u.RawContextKey("groupActiveEditorDirty",!1),
t.NoEditorsVisibleContext=t.EditorsVisibleContext.toNegated(),t.TextCompareEditorVisibleContext=new u.RawContextKey("textCompareEditorVisible",!1),t.ActiveEditorGroupEmptyContext=new u.RawContextKey("activeEditorGroupEmpty",!1),t.MultipleEditorGroupsContext=new u.RawContextKey("multipleEditorGroups",!1),t.SingleEditorGroupsContext=t.MultipleEditorGroupsContext.toNegated(),t.InEditorZenModeContext=new u.RawContextKey("inZenMode",!1),t.SplitEditorsVertically=new u.RawContextKey("splitEditorsVertically",!1),t.TEXT_DIFF_EDITOR_ID="workbench.editors.textDiffEditor",t.BINARY_DIFF_EDITOR_ID="workbench.editors.binaryResourceDiffEditor";!function(e){e[e.SHORT=0]="SHORT",e[e.MEDIUM=1]="MEDIUM",e[e.LONG=2]="LONG"}(t.Verbosity||(t.Verbosity={}));var d=function(){function e(){this._onDidChangeDirty=new i.Emitter,this._onDidChangeLabel=new i.Emitter,this._onDispose=new i.Emitter,this.disposed=!1}return Object.defineProperty(e.prototype,"onDidChangeDirty",{get:function(){return this._onDidChangeDirty.event},enumerable:!0,
configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeLabel",{get:function(){return this._onDidChangeLabel.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!0,configurable:!0}),e.prototype.getResource=function(){return null},e.prototype.getName=function(){return null},e.prototype.getDescription=function(e){return null},e.prototype.getTitle=function(e){return this.getName()},e.prototype.getPreferredEditorId=function(e){return e&&e.length>0?e[0]:null},e.prototype.getTelemetryDescriptor=function(){return{typeId:this.getTypeId()}},e.prototype.isDirty=function(){return!1},e.prototype.confirmSave=function(){return r.TPromise.wrap(h.DONT_SAVE)},e.prototype.save=function(){return r.TPromise.as(!0)},e.prototype.revert=function(e){return r.TPromise.as(!0)},e.prototype.close=function(){this.dispose()},e.prototype.supportsSplitEditor=function(){return!0},e.prototype.matches=function(e){return this===e},
e.prototype.dispose=function(){this.disposed=!0,this._onDispose.fire(),this._onDidChangeDirty.dispose(),this._onDidChangeLabel.dispose(),this._onDispose.dispose()},e.prototype.isDisposed=function(){return this.disposed},e}();t.EditorInput=d;var h;!function(e){e[e.SAVE=0]="SAVE",e[e.DONT_SAVE=1]="DONT_SAVE",e[e.CANCEL=2]="CANCEL"}(h=t.ConfirmResult||(t.ConfirmResult={}));!function(e){e[e.Encode=0]="Encode",e[e.Decode=1]="Decode"}(t.EncodingMode||(t.EncodingMode={}));var p=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.name=t,o.description=n,o._details=r,o._master=i,o._toUnbind=[],o.registerListeners(),o}return n(t,e),Object.defineProperty(t.prototype,"master",{get:function(){return this._master},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"details",{get:function(){return this._details},enumerable:!0,configurable:!0}),t.prototype.isDirty=function(){return this.master.isDirty()},t.prototype.confirmSave=function(){return this.master.confirmSave()},
t.prototype.save=function(){return this.master.save()},t.prototype.revert=function(){return this.master.revert()},t.prototype.getTelemetryDescriptor=function(){var t=this.master.getTelemetryDescriptor();return o.assign(t,e.prototype.getTelemetryDescriptor.call(this))},t.prototype.registerListeners=function(){var e=this,t=i.once(this.details.onDispose);this._toUnbind.push(t(function(){e.isDisposed()||e.dispose()}));var n=i.once(this.master.onDispose);this._toUnbind.push(n(function(){e.isDisposed()||e.dispose()})),this._toUnbind.push(this.master.onDidChangeDirty(function(){return e._onDidChangeDirty.fire()})),this._toUnbind.push(this.master.onDidChangeLabel(function(){return e._onDidChangeLabel.fire()}))},Object.defineProperty(t.prototype,"toUnbind",{get:function(){return this._toUnbind},enumerable:!0,configurable:!0}),t.prototype.resolve=function(e){return r.TPromise.as(null)},t.prototype.getTypeId=function(){return t.ID},t.prototype.getName=function(){return this.name},t.prototype.getDescription=function(){
return this.description},t.prototype.matches=function(n){if(!0===e.prototype.matches.call(this,n))return!0;if(n){if(!(n instanceof t))return!1;var r=n;return this.details.matches(r.details)&&this.master.matches(r.master)}return!1},t.prototype.dispose=function(){this._toUnbind=a.dispose(this._toUnbind),e.prototype.dispose.call(this)},t.ID="workbench.editorinputs.sidebysideEditorInput",t}(d);t.SideBySideEditorInput=p;var g=function(e){function t(){var t=e.call(this)||this;return t._onDispose=new i.Emitter,t}return n(t,e),Object.defineProperty(t.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!0,configurable:!0}),t.prototype.load=function(){return r.TPromise.as(this)},t.prototype.isResolved=function(){return!0},t.prototype.dispose=function(){this._onDispose.fire(),this._onDispose.dispose(),e.prototype.dispose.call(this)},t}(a.Disposable);t.EditorModel=g,t.isEditorInputWithOptions=function(e){var t=e;return!!t&&!!t.editor};var m=function(){function e(){}return e.create=function(t){
var n=new e;return n.preserveFocus=t.preserveFocus,n.forceOpen=t.forceOpen,n.revealIfVisible=t.revealIfVisible,n.revealIfOpened=t.revealIfOpened,n.pinned=t.pinned,n.index=t.index,n.inactive=t.inactive,n},e}();t.EditorOptions=m;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.from=function(e){return e&&e.options?t.create(e.options):null},t.create=function(e){void 0===e&&(e=Object.create(null));var n=new t;if(e.selection){var r=e.selection;n.selection(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn)}return e.viewState&&(n.editorViewState=e.viewState),e.forceOpen&&(n.forceOpen=!0),e.revealIfVisible&&(n.revealIfVisible=!0),e.revealIfOpened&&(n.revealIfOpened=!0),e.preserveFocus&&(n.preserveFocus=!0),e.revealInCenterIfOutsideViewport&&(n.revealInCenterIfOutsideViewport=!0),e.pinned&&(n.pinned=!0),e.inactive&&(n.inactive=!0),"number"==typeof e.index&&(n.index=e.index),n},t.prototype.hasOptionsDefined=function(){
return!!this.editorViewState||!s.isUndefinedOrNull(this.startLineNumber)&&!s.isUndefinedOrNull(this.startColumn)},t.prototype.selection=function(e,t,n,r){return void 0===n&&(n=e),void 0===r&&(r=t),this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r,this},t.fromEditor=function(e,n){var r=t.create(n);return r.editorViewState=e.saveViewState(),r},t.prototype.apply=function(e,t){return this.applyViewState(e,t)},t.prototype.applyViewState=function(e,t){var n=!1;if(this.editorViewState)e.restoreViewState(this.editorViewState),n=!0;else if(!s.isUndefinedOrNull(this.startLineNumber)&&!s.isUndefinedOrNull(this.startColumn)){if(s.isUndefinedOrNull(this.endLineNumber)||s.isUndefinedOrNull(this.endColumn)){var r={lineNumber:this.startLineNumber,column:this.startColumn};e.setPosition(r),this.revealInCenterIfOutsideViewport?e.revealPositionInCenterIfOutsideViewport(r,t):e.revealPositionInCenter(r,t)}else{var i={startLineNumber:this.startLineNumber,startColumn:this.startColumn,
endLineNumber:this.endLineNumber,endColumn:this.endColumn};e.setSelection(i),this.revealInCenterIfOutsideViewport?e.revealRangeInCenterIfOutsideViewport(i,t):e.revealRangeInCenter(i,t)}n=!0}return n},t}(m);t.TextEditorOptions=v;var _=function(e){function t(t){var n=e.call(this)||this;return n.context=t,n}return n(t,e),t.prototype.run=function(t,n){return e.prototype.run.call(this,t,this.context)},t}(f.ActionRunner);t.EditorCommandsContextActionRunner=_,t.toResource=function(e,t){if(!e)return null;t&&t.supportSideBySide&&e instanceof p&&(e=e.master);var n=e.getResource();if(!t||!t.filter)return n;if(!n)return null;var r,i;return Array.isArray(t.filter)?(r=t.filter.indexOf(l.Schemas.file)>=0,i=t.filter.indexOf(l.Schemas.untitled)>=0):(r=t.filter===l.Schemas.file,i=t.filter===l.Schemas.untitled),r&&n.scheme===l.Schemas.file?n:i&&n.scheme===l.Schemas.untitled?n:null};!function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(t.CloseDirection||(t.CloseDirection={}));var y=function(){function e(){
this.editorInputFactoryConstructors=Object.create(null),this.editorInputFactoryInstances=Object.create(null)}return e.prototype.setInstantiationService=function(e){this.instantiationService=e;for(var t in this.editorInputFactoryConstructors){var n=this.editorInputFactoryConstructors[t];this.createEditorInputFactory(t,n)}this.editorInputFactoryConstructors={}},e.prototype.createEditorInputFactory=function(e,t){var n=this.instantiationService.createInstance(t);this.editorInputFactoryInstances[e]=n},e.prototype.registerFileInputFactory=function(e){this.fileInputFactory=e},e.prototype.getFileInputFactory=function(){return this.fileInputFactory},e.prototype.registerEditorInputFactory=function(e,t){this.instantiationService?this.createEditorInputFactory(e,t):this.editorInputFactoryConstructors[e]=t},e.prototype.getEditorInputFactory=function(e){return this.editorInputFactoryInstances[e]},e}();t.Extensions={EditorInputFactories:"workbench.contributions.editor.inputFactories"},
c.Registry.add(t.Extensions.EditorInputFactories,new y)});var a=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},u=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};define(e[157],t([0,1,2,75,67,36]),function(e,t,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(e){function t(t,n,r){var i=e.call(this)||this;return i.modelService=t,i.modeService=n,r&&i.handleExistingModel(r),i}return n(t,e),t.prototype.handleExistingModel=function(e){var t=this.modelService.getModel(e);if(!t)throw new Error("Document with resource "+e.toString()+" does not exist");this.textEditorModelHandle=e,this.registerModelDisposeListener(t)},t.prototype.registerModelDisposeListener=function(e){
var t=this;this.modelDisposeListener&&this.modelDisposeListener.dispose(),this.modelDisposeListener=e.onWillDispose(function(){t.textEditorModelHandle=null,t.dispose()})},Object.defineProperty(t.prototype,"textEditorModel",{get:function(){return this.textEditorModelHandle?this.modelService.getModel(this.textEditorModelHandle):null},enumerable:!0,configurable:!0}),t.prototype.createTextEditorModel=function(e,t,n){var i=this.getFirstLineText(e),o=this.getOrCreateMode(this.modeService,n,i);return r.TPromise.as(this.doCreateTextEditorModel(e,o,t))},t.prototype.doCreateTextEditorModel=function(e,t,n){var r=n&&this.modelService.getModel(n);return r?(this.modelService.updateModel(r,e),this.modelService.setMode(r,t)):(r=this.modelService.createModel(e,t,n),this.createdEditorModel=!0,this.registerModelDisposeListener(r)),this.textEditorModelHandle=r.uri,this},t.prototype.getFirstLineText=function(e){var t=e;if("function"==typeof t.getFirstLineText)return t.getFirstLineText(100);return e.getLineContent(1).substr(0,100)
},t.prototype.getOrCreateMode=function(e,t,n){return e.getOrCreateMode(t)},t.prototype.updateTextEditorModel=function(e){this.textEditorModel&&this.modelService.updateModel(this.textEditorModel,e)},t.prototype.createSnapshot=function(){var e=this.textEditorModel;return e?e.createSnapshot(!0):null},t.prototype.isResolved=function(){return!!this.textEditorModelHandle},t.prototype.isReadonly=function(){return!0},t.prototype.dispose=function(){this.modelDisposeListener&&(this.modelDisposeListener.dispose(),this.modelDisposeListener=null),this.textEditorModelHandle&&this.createdEditorModel&&this.modelService.destroyModel(this.textEditorModelHandle),this.textEditorModelHandle=null,this.createdEditorModel=!1,e.prototype.dispose.call(this)},t=a([u(0,s.IModelService),u(1,o.IModeService)],t)}(i.EditorModel);t.BaseTextEditorModel=c}),define(e[158],t([0,1]),function(e,t){"use strict";function n(e,t){switch(e.type){case"event":var n=e;switch(n.event){case"output":case"loadedSource":t(!1,n.body.source);break
;case"breakpoint":t(!1,n.body.breakpoint.source)}break;case"request":var r=e;switch(r.command){case"setBreakpoints":case"source":case"gotoTargets":t(!0,r.arguments.source)}break;case"response":var i=e;switch(i.command){case"stackTrace":i.body.stackFrames.forEach(function(e){return t(!1,e.source)});break;case"loadedSources":i.body.sources.forEach(function(e){return t(!1,e)});break;case"scopes":i.body.scopes.forEach(function(e){return t(!1,e.source)});break;case"setFunctionBreakpoints":i.body.breakpoints.forEach(function(e){return t(!1,e.source)});break;case"setBreakpoints":i.body.breakpoints.forEach(function(e){return t(!1,e.source)})}}}Object.defineProperty(t,"__esModule",{value:!0});var r=/{([^}]+)}/g;t.formatPII=function(e,t,n){return e.replace(r,function(e,r){return t&&r.length>0&&"_"!==r[0]?e:n&&n.hasOwnProperty(r)?n[r]:e})},t.getExactExpressionStartAndEnd=function(e,t,n){for(var r=void 0,i=0,o=/([^()\[\]{}<>\s+\-/%~#^;=|,`!]|\->)+/g,s=void 0;s=o.exec(e);){var a=s.index+1,u=a+s[0].length;if(a<=t&&u>=n){
r=s[0],i=a;break}}if(r){for(var c=/\w+/g,l=void 0;(l=c.exec(r))&&!(l.index+1+i+l[0].length>=n););l&&(r=r.substring(0,c.lastIndex))}return r?{start:i,end:i+r.length-1}:{start:0,end:0}},t.convertToDAPaths=function(e,t){n(e,function(e,n){e&&n&&t(n)})},t.convertToVSCPaths=function(e,t){n(e,function(e,n){!e&&n&&t(n)})}}),define(e[159],t([0,1,53,27,111,51,9,7,16,8,68,4,2,127]),function(e,t,r,i,o,s,a,u,c,l,f,d,h,p){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(){this.sequence=1,this.pendingRequests=new Map,this._onError=new d.Emitter,this._onExit=new d.Emitter}return e.prototype.dispose=function(){},Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onExit",{get:function(){return this._onExit.event},enumerable:!0,configurable:!0}),e.prototype.onEvent=function(e){this.eventCallback&&this._onError.fire(new Error("attempt to set more than one 'Event' callback")),
this.eventCallback=e},e.prototype.onRequest=function(e){this.requestCallback&&this._onError.fire(new Error("attempt to set more than one 'Request' callback")),this.requestCallback=e},e.prototype.sendResponse=function(e){e.seq>0?this._onError.fire(new Error("attempt to send more than one response for command "+e.command)):this.internalSend("response",e)},e.prototype.sendRequest=function(e,t,n){var r={command:e};t&&Object.keys(t).length>0&&(r.arguments=t),this.internalSend("request",r),n&&this.pendingRequests.set(r.seq,n)},e.prototype.acceptMessage=function(e){switch(e.type){case"event":this.eventCallback&&this.eventCallback(e);break;case"request":this.requestCallback&&this.requestCallback(e);break;case"response":var t=e,n=this.pendingRequests.get(t.request_seq);n&&(this.pendingRequests.delete(t.request_seq),n(t))}},e.prototype.internalSend=function(e,t){t.type=e,t.seq=this.sequence++,this.sendMessage(t)},e}();t.AbstractDebugAdapter=g;var m=function(e){function t(){return e.call(this)||this}return n(t,e),
t.prototype.connect=function(e,t){var n=this;this.outputStream=t,this.rawData=Buffer.allocUnsafe(0),this.contentLength=-1,e.on("data",function(e){return n.handleData(e)})},t.prototype.sendMessage=function(e){if(this.outputStream){var n=JSON.stringify(e);this.outputStream.write("Content-Length: "+Buffer.byteLength(n,"utf8")+t.TWO_CRLF+n,"utf8")}},t.prototype.handleData=function(e){for(this.rawData=Buffer.concat([this.rawData,e]);;){if(this.contentLength>=0){if(this.rawData.length>=this.contentLength){var n=this.rawData.toString("utf8",0,this.contentLength);if(this.rawData=this.rawData.slice(this.contentLength),this.contentLength=-1,n.length>0)try{this.acceptMessage(JSON.parse(n))}catch(e){this._onError.fire(new Error((e.message||e)+"\n"+n))}continue}}else{var r=this.rawData.indexOf(t.TWO_CRLF);if(-1!==r){for(var i=0,o=this.rawData.toString("utf8",0,r).split(t.HEADER_LINESEPARATOR);i<o.length;i++){var s=o[i].split(t.HEADER_FIELDSEPARATOR);"Content-Length"===s[0]&&(this.contentLength=Number(s[1]))}
this.rawData=this.rawData.slice(r+t.TWO_CRLF.length);continue}}break}},t.TWO_CRLF="\r\n\r\n",t.HEADER_LINESEPARATOR=/\r?\n/,t.HEADER_FIELDSEPARATOR=/: */,t}(g);t.StreamDebugAdapter=m;var v=function(e){function t(t,n){void 0===n&&(n="127.0.0.1");var r=e.call(this)||this;return r.port=t,r.host=n,r}return n(t,e),t.prototype.startSession=function(){var e=this;return new h.TPromise(function(t,n){e.socket=s.createConnection(e.port,e.host,function(){e.connect(e.socket,e.socket),t(null)}),e.socket.on("error",function(e){n(e)}),e.socket.on("close",function(){return e._onExit.fire(0)})})},t.prototype.stopSession=function(){null!==this.socket&&(this.socket.end(),this.socket=void 0)},t}(m);t.SocketDebugAdapter=v;var _=function(e){function t(n,r,i,o){var s=e.call(this)||this;return s.debugType=n,s.adapterExecutable=r,s.outputService=o,s.adapterExecutable||(s.adapterExecutable=t.platformAdapterExecutable(i,s.debugType)),s}return n(t,e),t.prototype.startSession=function(){var e=this;return new h.TPromise(function(t,n){
e.adapterExecutable.command?a.isAbsolute(e.adapterExecutable.command)?r.existsSync(e.adapterExecutable.command)||n(new Error(o.localize(0,null,e.adapterExecutable.command))):e.adapterExecutable.command.indexOf("/")<0&&e.adapterExecutable.command.indexOf("\\"):n(new Error(o.localize(1,null,e.debugType))),"node"===e.adapterExecutable.command&&e.outputService?Array.isArray(e.adapterExecutable.args)&&e.adapterExecutable.args.length>0?f.fork(e.adapterExecutable.args[0],e.adapterExecutable.args.slice(1),{},function(r,i){r&&n(new Error(o.localize(2,null,e.adapterExecutable.args[0]))),e.serverProcess=i,t(null)}):n(new Error(o.localize(3,null))):(e.serverProcess=i.spawn(e.adapterExecutable.command,e.adapterExecutable.args),t(null))}).then(function(t){if(e.serverProcess.on("error",function(t){return e._onError.fire(t)}),e.serverProcess.on("exit",function(t,n){return e._onExit.fire(t)}),e.outputService){e.serverProcess.stderr.on("data",function(t){e.outputService.getChannel(p.ExtensionsChannelId).append(function(e){
return e.toString().replace(/\r?\n$/gm,"")}(t))})}e.connect(e.serverProcess.stdout,e.serverProcess.stdin)},function(t){e._onError.fire(t)})},t.prototype.stopSession=function(){var e=this;return this.serverProcess?l.isWindows?new h.TPromise(function(t,n){var r=i.exec("taskkill /F /T /PID "+e.serverProcess.pid,function(e,t,r){if(e)return n(e)});r.on("exit",t),r.on("error",n)}):(this.serverProcess.kill("SIGTERM"),h.TPromise.as(null)):h.TPromise.as(null)},t.extract=function(e,n){if(e){var r=Object.create(null);return e.runtime&&(0===e.runtime.indexOf("./")?r.runtime=a.join(n,e.runtime):r.runtime=e.runtime),e.runtimeArgs&&(r.runtimeArgs=e.runtimeArgs),e.program&&(a.isAbsolute(e.program)?r.program=e.program:r.program=a.join(n,e.program)),e.args&&(r.args=e.args),e.win&&(r.win=t.extract(e.win,n)),e.winx86&&(r.winx86=t.extract(e.winx86,n)),e.windows&&(r.windows=t.extract(e.windows,n)),e.osx&&(r.osx=t.extract(e.osx,n)),e.linux&&(r.linux=t.extract(e.linux,n)),r}},t.platformAdapterExecutable=function(e,n){
var r=Object.create(null);n=n.toLowerCase();for(var i=function(e){if(e.contributes){var i=e.contributes.debuggers;i&&i.length>0&&i.filter(function(e){return u.equalsIgnoreCase(e.type,n)}).forEach(function(n){var i=t.extract(n,e.extensionLocation.fsPath);c.mixin(r,i,e.isBuiltin)})}},o=0,s=e;o<s.length;o++){i(s[o])}var a;l.isWindows&&!process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?a=r.winx86||r.win||r.windows:l.isWindows?a=r.win||r.windows:l.isMacintosh?a=r.osx:l.isLinux&&(a=r.linux);var f=(a=a||r).program||r.program,d=a.args||r.args,h=a.runtime||r.runtime,p=a.runtimeArgs||r.runtimeArgs;return h?{command:h,args:(p||[]).concat([f]).concat(d||[])}:{command:f,args:d||[]}},t}(m);t.DebugAdapter=_}),define(e[160],t([0,1,27,112,8,33,16,2,3]),function(e,t,r,i,o,s,a,u,c){"use strict";function l(){return p||(p=new u.TPromise(function(e){o.isLinux?u.TPromise.join([s.exists("/etc/debian_version"),process.lazyEnv]).then(function(t){var n=t[0]
;e(n?"x-terminal-emulator":"gnome"===process.env.DESKTOP_SESSION||"gnome-classic"===process.env.DESKTOP_SESSION?"gnome-terminal":"kde-plasma"===process.env.DESKTOP_SESSION?"konsole":process.env.COLORTERM?process.env.COLORTERM:process.env.TERM?process.env.TERM:"xterm")}):e("xterm")},function(){})),p}function f(){if(!g){var e=!!process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432");g=(process.env.windir?process.env.windir:"C:\\Windows")+"\\"+(e?"Sysnative":"System32")+"\\cmd.exe"}return g}Object.defineProperty(t,"__esModule",{value:!0});var d=i.localize(0,null),h=void 0;t.getTerminalLauncher=function(){return h||(o.isWindows?h=new v:o.isMacintosh?h=new _:o.isLinux&&(h=new y)),h};var p=null;t.getDefaultTerminalLinuxReady=l;var g=null;t.getDefaultTerminalWindows=f;var m=function(){function e(){}return e.prototype.runInTerminal=function(e,t){return this.runInTerminal0(e.title,e.cwd,e.args,e.env||{},t)},e.prototype.runInTerminal0=function(e,t,n,r,i){},e}(),v=function(e){function t(){
return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.runInTerminal0=function(e,n,i,o,s){var c=s.external.windowsExec||f();return new u.TPromise(function(e,s){var u='"'+n+" - "+d+'"',l='""'+i.join('" "')+'" & pause"',f=["/c","start",u,"/wait",c,"/c",l],h=a.assign({},process.env,o);Object.keys(h).filter(function(e){return null===h[e]}).forEach(function(e){return delete h[e]});var p={cwd:n,env:h,windowsVerbatimArguments:!0};r.spawn(t.CMD,f,p).on("error",s),e(null)})},t.CMD="cmd.exe",t}(m),_=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return n(o,t),o.prototype.runInTerminal0=function(t,n,s,a,l){var f=l.external.osxExec||o.DEFAULT_TERMINAL_OSX;return new u.TPromise(function(u,l){if(f===o.DEFAULT_TERMINAL_OSX||"iTerm.app"===f){for(var h=f===o.DEFAULT_TERMINAL_OSX?"TerminalHelper":"iTermHelper",p=[c.default.parse(e.toUrl("vs/workbench/parts/execution/electron-browser/"+h+".scpt")).fsPath,"-t",t||d,"-w",n],g=0,m=s;g<m.length;g++){var v=m[g];p.push("-a"),p.push(v)}
if(a)for(var _ in a){var y=a[_];null===y?(p.push("-u"),p.push(_)):(p.push("-e"),p.push(_+"="+y))}var b="",C=r.spawn(o.OSASCRIPT,p);C.on("error",l),C.stderr.on("data",function(e){b+=e.toString()}),C.on("exit",function(e){if(0===e)u(null);else if(b){var t=b.split("\n",1);l(new Error(t[0]))}else l(new Error(i.localize(1,null,h,e)))})}else l(new Error(i.localize(2,null,f)))})},o.DEFAULT_TERMINAL_OSX="Terminal.app",o.OSASCRIPT="/usr/bin/osascript",o}(m),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.runInTerminal0=function(e,n,o,s,c){var f=c.external,d=f.linuxExec?u.TPromise.as(f.linuxExec):l();return new u.TPromise(function(e,u){var c=[];d.then(function(l){l.indexOf("gnome-terminal")>=0?c.push("-x"):c.push("-e"),c.push("bash"),c.push("-c");var f=function(e){for(var t="",n=0,r=e;n<r.length;n++){var i=r[n];i.indexOf(" ")>=0?t+='"'+i+'"':t+=i,t+=" "}return t}(o)+'; echo; read -p "'+t.WAIT_MESSAGE+'" -n1;';c.push("''"+f+"''");var d=a.assign({},process.env,s)
;Object.keys(d).filter(function(e){return null===d[e]}).forEach(function(e){return delete d[e]});var h={cwd:n,env:d},p="",g=r.spawn(l,c,h);g.on("error",u),g.stderr.on("data",function(e){p+=e.toString()}),g.on("exit",function(t){if(0===t)e(null);else if(p){var n=p.split("\n",1);u(new Error(n[0]))}else u(new Error(i.localize(4,null,l,t)))})})})},t.WAIT_MESSAGE=i.localize(3,null),t}(m);t.hasChildprocesses=function(e){if(e)try{if(o.isWindows){if((t=r.spawnSync("wmic",["process","get","ParentProcessId"])).stdout&&!t.stdout.toString().split("\r\n").some(function(t){return parseInt(t)===e}))return!1}else{var t=r.spawnSync("/usr/bin/pgrep",["-lP",String(e)]);if(t.stdout){var n=t.stdout.toString().trim();if(0===n.length||n.indexOf(" tmux")>=0)return!1}}}catch(e){}return!0};var b;!function(e){e[e.cmd=0]="cmd",e[e.powershell=1]="powershell",e[e.bash=2]="bash"}(b||(b={})),t.prepareCommand=function(e,t){var n,r,i=t.integrated.shell;o.isWindows?(r=i.windows,n=0):o.isLinux?(r=i.linux,n=2):o.isMacintosh&&(r=i.osx,n=2),
(r=r.trim().toLowerCase()).indexOf("powershell")>=0?n=1:r.indexOf("cmd.exe")>=0?n=0:r.indexOf("bash")>=0?n=2:r.indexOf("git\\bin\\bash.exe")>=0&&(n=2);var s,a="";switch(n){case 1:if(s=function(e){return"'"+(e=e.replace(/\'/g,"''"))+"'"},e.cwd&&(a+="cd '"+e.cwd+"'; "),e.env)for(var u in e.env)a+=null===(p=e.env[u])?"Remove-Item env:"+u+"; ":"${env:"+u+"}='"+p+"'; ";if(e.args&&e.args.length>0){var c=s(e.args.shift());a+="'"===c[0]?"& "+c+" ":c+" ";for(var l=0,f=e.args;l<f.length;l++)a+=s(v=f[l])+" "}break;case 0:if(s=function(e){return(e=e.replace(/\"/g,'""')).indexOf(" ")>=0||e.indexOf('"')>=0?'"'+e+'"':e},e.cwd&&(a+="cd "+s(e.cwd)+" && "),e.env){a+='cmd /C "';for(var u in e.env)a+=null===(p=e.env[u])?'set "'+u+'=" && ':'set "'+u+"="+e.env[u]+'" && '}for(var d=0,h=e.args;d<h.length;d++)a+=s(v=h[d])+" ";e.env&&(a+='"');break;case 2:if(s=function(e){return(e=e.replace(/\"/g,'\\"')).indexOf(" ")>=0||e.indexOf("\\")>=0?'"'+e+'"':e},e.cwd&&(a+="cd "+s(e.cwd)+" ; "),e.env){a+="env";for(var u in e.env){var p=e.env[u]
;a+=null===p?' -u "'+u+'"':' "'+u+"="+p+'"'}a+=" "}for(var g=0,m=e.args;g<m.length;g++){var v=m[g];a+=s(v)+" "}}return a}}),define(e[161],t([0,1,18,16]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Escape=1]="Escape",e[e.Strong=2]="Strong",e[e.Weak=3]="Weak"}(t.ShellQuoting||(t.ShellQuoting={})),function(e){e.from=function(t){if(!t)return e.Strong;switch(t.toLowerCase()){case"escape":return e.Escape;case"strong":return e.Strong;case"weak":return e.Weak;default:return e.Strong}}}(t.ShellQuoting||(t.ShellQuoting={}));!function(e){e[e.Always=1]="Always",e[e.Silent=2]="Silent",e[e.Never=3]="Never"}(t.RevealKind||(t.RevealKind={})),function(e){e.fromString=function(t){switch(t.toLowerCase()){case"always":return e.Always;case"silent":return e.Silent;case"never":return e.Never;default:return e.Always}}}(t.RevealKind||(t.RevealKind={}));!function(e){e[e.Shared=1]="Shared",e[e.Dedicated=2]="Dedicated",e[e.New=3]="New"}(t.PanelKind||(t.PanelKind={})),function(e){
e.fromString=function(t){switch(t.toLowerCase()){case"shared":return e.Shared;case"dedicated":return e.Dedicated;case"new":return e.New;default:return e.Shared}}}(t.PanelKind||(t.PanelKind={}));var i;!function(e){e[e.Shell=1]="Shell",e[e.Process=2]="Process"}(i=t.RuntimeType||(t.RuntimeType={})),function(e){e.fromString=function(t){switch(t.toLowerCase()){case"shell":return e.Shell;case"process":default:return e.Process}}}(i=t.RuntimeType||(t.RuntimeType={}));!function(e){e.value=function(e){return n.isString(e)?e:e.value}}(t.CommandString||(t.CommandString={}));!function(e){e.Clean="clean",e.Build="build",e.Rebuild="rebuild",e.Test="test",e.is=function(t){return t===e.Clean||t===e.Build||t===e.Rebuild||t===e.Test}}(t.TaskGroup||(t.TaskGroup={}));var o;!function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace",e[e.Folder=3]="Folder"}(o=t.TaskScope||(t.TaskScope={}));var s;!function(e){e.Workspace="workspace",e.Extension="extension",e.InMemory="inMemory"}(s=t.TaskSourceKind||(t.TaskSourceKind={}))
;!function(e){e.default="default",e.user="user"}(t.GroupType||(t.GroupType={}));var a;!function(e){e.is=function(e){var t=e;return t&&"custom"===t.type},e.getDefinition=function(e){return{type:void 0!==e.command?e.command.runtime===i.Shell?"shell":"process":"$composite",_key:e._id,id:e._id}},e.customizes=function(e){if(e._source&&e._source.customizes)return e._source.customizes}}(a=t.CustomTask||(t.CustomTask={}));!function(e){e.is=function(e){var t=e;return t&&t.configures&&n.isString(t.configures.type)&&void 0===e.command}}(t.ConfiguringTask||(t.ConfiguringTask={}));var u;!function(e){e.is=function(e){var t=e;return t&&t.defines&&n.isString(t.defines.type)&&void 0!==t.command}}(u=t.ContributedTask||(t.ContributedTask={}));var c;!function(e){e.is=function(e){var t=e;return t&&t._source&&t._source.kind===s.InMemory}}(c=t.InMemoryTask||(t.InMemoryTask={}));var l;!function(e){function t(e){return a.is(e)?e._source.config.workspaceFolder:u.is(e)?e._source.workspaceFolder:void 0}e.getRecentlyUsedKey=function(e){
if(!c.is(e)){if(a.is(e)){var t=e._source.config.workspaceFolder;if(!t)return;return n={type:"custom",folder:t.uri.toString(),id:e.identifier},JSON.stringify(n)}if(u.is(e)){var n={type:"contributed",scope:e._source.scope,id:e._id};return e._source.scope===o.Folder&&e._source.workspaceFolder&&(n.folder=e._source.workspaceFolder.uri.toString()),JSON.stringify(n)}}},e.getMapKey=function(e){if(a.is(e))return(t=e._source.config.workspaceFolder)?t.uri.toString()+"|"+e._id:e._id;if(u.is(e)){var t=e._source.workspaceFolder;return t?e._source.scope.toString()+"|"+t.uri.toString()+"|"+e._id:e._source.scope.toString()+"|"+e._id}return e._id},e.getWorkspaceFolder=t,e.clone=function(e){return r.assign({},e)},e.getTelemetryKind=function(e){return u.is(e)?"extension":a.is(e)?e._source.customizes?"workspace>extension":"workspace":c.is(e)?"composite":"unknown"},e.matches=function(t,r,i){if(void 0===i&&(i=!1),void 0===r)return!1;if(n.isString(r))return r===t._label||r===t.identifier||i&&r===t._id;var o=e.getTaskDefinition(t,!0)
;return void 0!==o&&o._key===r._key},e.getQualifiedLabel=function(e){var n=t(e);return n?e._label+" ("+n.name+")":e._label},e.getTaskDefinition=function(e,t){return void 0===t&&(t=!1),u.is(e)?e.defines:a.is(e)?t&&void 0!==e._source.customizes?e._source.customizes:a.getDefinition(e):void 0},e.getTaskExecution=function(e){return{id:e._id,task:e}}}(l=t.Task||(t.Task={}));!function(e){e[e.Process=1]="Process",e[e.Terminal=2]="Terminal"}(t.ExecutionEngine||(t.ExecutionEngine={})),function(e){e._default=e.Terminal}(t.ExecutionEngine||(t.ExecutionEngine={}));!function(e){e[e.V0_1_0=1]="V0_1_0",e[e.V2_0_0=2]="V2_0_0"}(t.JsonSchemaVersion||(t.JsonSchemaVersion={}));var f=function(){function e(e){this._order=new Map;for(var t=0;t<e.length;t++)this._order.set(e[t].uri.toString(),t)}return e.prototype.compare=function(e,t){var n=l.getWorkspaceFolder(e),r=l.getWorkspaceFolder(t);if(n&&r){var i=this._order.get(n.uri.toString());i=void 0===i?0:i+1;var o=this._order.get(r.uri.toString());return o=void 0===o?0:o+1,
i===o?e._label.localeCompare(t._label):i-o}return!n&&r?-1:n&&!r?1:0},e}();t.TaskSorter=f;var d;!function(e){e.Start="start",e.ProcessStarted="processStarted",e.Active="active",e.Inactive="inactive",e.Changed="changed",e.Terminated="terminated",e.ProcessEnded="processEnded",e.End="end"}(d=t.TaskEventKind||(t.TaskEventKind={}));var h;!function(e){e.SingleRun="singleRun",e.Background="background"}(h=t.TaskRunType||(t.TaskRunType={}));!function(e){e.create=function(e,t,n){if(t){var r={kind:e,taskId:t._id,taskName:t.name,runType:t.isBackground?h.Background:h.SingleRun,group:t.group,processId:void 0,exitCode:void 0,__task:t};return e===d.ProcessStarted?r.processId=n:e===d.ProcessEnded&&(r.exitCode=n),Object.freeze(r)}return Object.freeze({kind:d.Changed})}}(t.TaskEvent||(t.TaskEvent={}))}),define(e[162],t([0,1,42,6]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TERMINAL_PANEL_ID="workbench.panel.terminal",t.TERMINAL_SERVICE_ID="terminalService",
t.KEYBINDING_CONTEXT_TERMINAL_FOCUS=new n.RawContextKey("terminalFocus",void 0),t.KEYBINDING_CONTEXT_TERMINAL_NOT_FOCUSED=t.KEYBINDING_CONTEXT_TERMINAL_FOCUS.toNegated(),t.KEYBINDING_CONTEXT_TERMINAL_TEXT_SELECTED=new n.RawContextKey("terminalTextSelected",void 0),t.KEYBINDING_CONTEXT_TERMINAL_TEXT_NOT_SELECTED=t.KEYBINDING_CONTEXT_TERMINAL_TEXT_SELECTED.toNegated(),t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_VISIBLE=new n.RawContextKey("terminalFindWidgetVisible",void 0),t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_NOT_VISIBLE=t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_VISIBLE.toNegated(),t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_INPUT_FOCUSED=new n.RawContextKey("terminalFindWidgetInputFocused",!1),t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_INPUT_NOT_FOCUSED=t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_INPUT_FOCUSED.toNegated(),t.IS_WORKSPACE_SHELL_ALLOWED_STORAGE_KEY="terminal.integrated.isWorkspaceShellAllowed",t.NEVER_SUGGEST_SELECT_WINDOWS_SHELL_STORAGE_KEY="terminal.integrated.neverSuggestSelectWindowsShell",
t.NEVER_MEASURE_RENDER_TIME_STORAGE_KEY="terminal.integrated.neverMeasureRenderTime",t.EXT_HOST_CREATION_DELAY=100,t.ITerminalService=r.createDecorator(t.TERMINAL_SERVICE_ID),t.TerminalCursorStyle={BLOCK:"block",LINE:"line",UNDERLINE:"underline"},t.TERMINAL_CONFIG_SECTION="terminal.integrated",t.DEFAULT_LETTER_SPACING=0,t.MINIMUM_LETTER_SPACING=-5,t.DEFAULT_LINE_HEIGHT=1;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down"}(t.Direction||(t.Direction={}));!function(e){e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LAUNCHING=1]="LAUNCHING",e[e.RUNNING=2]="RUNNING",e[e.KILLED_DURING_LAUNCH=3]="KILLED_DURING_LAUNCH",e[e.KILLED_BY_USER=4]="KILLED_BY_USER",e[e.KILLED_BY_PROCESS=5]="KILLED_BY_PROCESS"}(t.ProcessState||(t.ProcessState={}))}),define(e[163],t([0,1,40,9,8,64]),function(e,t,n,r,i,o){"use strict";function a(e,t){if(t)if(i.isWindows)for(var n in t){var r=n;for(var o in e)if(n.toLowerCase()===o.toLowerCase()){r=o;break}var s=t[n];u(e,r,s)}else Object.keys(t).forEach(function(n){
var r=t[n];u(e,n,r)})}function u(e,t,n){"string"==typeof n?e[t]=n:delete e[t]}function c(e,t,o){if(e.cwd)return e.cwd;var s;if(!e.ignoreConfigurationCwd){var a=o.config.cwd;a&&(r.isAbsolute(a)?s=a:t&&(s=r.normalize(r.join(t.fsPath,a))))}return s||(s=t?t.fsPath:n.homedir()),function(e){if(i.platform===i.Platform.Windows&&e&&":"===e[1])return e[0].toUpperCase()+e.substr(1);return e}(s)}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeEnvironments=a,t.createTerminalEnv=function(e,t,n,r,i,u){var c=s({},e);return t.env&&a(c,t.env),c.PTYPID=process.pid.toString(),c.PTYSHELL=t.executable,c.TERM_PROGRAM="vscode",c.TERM_PROGRAM_VERSION=o.default.version,t.args&&("string"==typeof t.args?c.PTYSHELLCMDLINE=t.args:t.args.forEach(function(e,t){return c["PTYSHELLARG"+t]=e})),c.PTYCWD=n,c.LANG=function(e){var t=e?e.split("-"):[],n=t.length;if(0===n)return"en_US.UTF-8";if(1===n){var r={de:"DE",en:"US",es:"ES",fi:"FI",fr:"FR",it:"IT",ja:"JP",ko:"KR",pl:"PL",ru:"RU",zh:"CN"};t[0]in r&&t.push(r[t[0]])
}else t[1]=t[1].toUpperCase();return t.join("_")+".UTF-8"}(r),i&&u&&(c.PTYCOLS=i.toString(),c.PTYROWS=u.toString()),c.AMD_ENTRYPOINT="vs/workbench/parts/terminal/node/terminalProcess",c},t.resolveConfigurationVariables=function(e,t,n){return Object.keys(t).forEach(function(r){"string"==typeof t[r]&&(t[r]=e.resolve(n,t[r]))}),t},t.getCwd=c,t.preparePathForTerminal=function(e){if(i.isWindows)return/\s+/.test(e)?'"'+e+'"':e;e=e.replace(/(%5C|\\)/g,"\\\\");for(var t=[" ","'",'"',"?",":",";","!","*","(",")","{","}","[","]"],n=0;n<e.length;n++)t.indexOf(e.charAt(n))>=0&&(e=e.substring(0,n)+"\\"+e.charAt(n)+e.substring(n+1),n++);return e}}),define(e[164],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IBackupFileService=n.createDecorator("backupFileService"),t.BACKUP_FILE_RESOLVE_OPTIONS={acceptTextOnly:!0,encoding:"utf8"},t.BACKUP_FILE_UPDATE_OPTIONS={encoding:"utf8"}}),define(e[165],t([0,1,11,2,157,66,37,67,36,4,15,164,123,122]),function(e,t,r,i,o,s,c,l,f,d,h,p,g,m){
"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(e){function t(n,r,i,o,s,a,u,c,l){var f=e.call(this,u,a)||this;return f.modeId=n,f.resource=r,f.hasAssociatedFilePath=i,f.initialValue=o,f.preferredEncoding=s,f.backupFileService=c,f.configurationService=l,f.dirty=!1,f.versionId=0,f.toDispose=[],f._onDidChangeContent=new d.Emitter,f.toDispose.push(f._onDidChangeContent),f._onDidChangeDirty=new d.Emitter,f.toDispose.push(f._onDidChangeDirty),f._onDidChangeEncoding=new d.Emitter,f.toDispose.push(f._onDidChangeEncoding),f.contentChangeEventScheduler=new h.RunOnceScheduler(function(){return f._onDidChangeContent.fire()},t.DEFAULT_CONTENT_CHANGE_BUFFER_DELAY),f.toDispose.push(f.contentChangeEventScheduler),f.registerListeners(),f}return n(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}),t.prototype.getOrCreateMode=function(t,n,r){return n&&n!==s.PLAINTEXT_MODE_ID?e.prototype.getOrCreateMode.call(this,t,n,r):t.getOrCreateModeByFilenameOrFirstLine(this.resource.fsPath,r)},t.prototype.registerListeners=function(){var e=this;this.toDispose.push(this.configurationService.onDidChangeConfiguration(function(t){return e.onConfigurationChange()}))},t.prototype.onConfigurationChange=function(){var e=this.configurationService.getValue(this.resource,"files.encoding");this.configuredEncoding!==e&&(this.configuredEncoding=e,this.preferredEncoding||this._onDidChangeEncoding.fire())},t.prototype.getVersionId=function(){return this.versionId},t.prototype.getModeId=function(){return this.textEditorModel?this.textEditorModel.getLanguageIdentifier().language:null},t.prototype.getEncoding=function(){
return this.preferredEncoding||this.configuredEncoding},t.prototype.setEncoding=function(e){var t=this.getEncoding();this.preferredEncoding=e,t!==this.preferredEncoding&&this._onDidChangeEncoding.fire()},t.prototype.isDirty=function(){return this.dirty},t.prototype.setDirty=function(e){this.dirty!==e&&(this.dirty=e,this._onDidChangeDirty.fire())},t.prototype.getResource=function(){return this.resource},t.prototype.revert=function(){this.setDirty(!1),this.contentChangeEventScheduler.schedule()},t.prototype.load=function(){var e=this;return this.backupFileService.loadBackupResource(this.resource).then(function(t){return t?e.backupFileService.resolveBackupContent(t):null}).then(function(t){var n=!!t;e.setDirty(e.hasAssociatedFilePath||n);var r;return r=t||m.createTextBufferFactory(e.initialValue||""),e.doLoad(r).then(function(t){return e.configuredEncoding=e.configurationService.getValue(e.resource,"files.encoding"),e.toDispose.push(e.textEditorModel.onDidChangeContent(function(){return e.onModelContentChanged()
})),e.toDispose.push(e.textEditorModel.onDidChangeLanguage(function(){return e.onConfigurationChange()})),t})})},t.prototype.doLoad=function(e){var t=this;return this.textEditorModel?(this.updateTextEditorModel(e),i.TPromise.as(this)):this.createTextEditorModel(e,this.resource,this.modeId).then(function(e){return t})},t.prototype.onModelContentChanged=function(){this.versionId++,this.hasAssociatedFilePath||1!==this.textEditorModel.getLineCount()||""!==this.textEditorModel.getLineContent(1)?this.setDirty(!0):this.setDirty(!1),this.contentChangeEventScheduler.schedule()},t.prototype.isReadonly=function(){return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.toDispose=r.dispose(this.toDispose)},t.DEFAULT_CONTENT_CHANGE_BUFFER_DELAY=c.CONTENT_CHANGE_EVENT_BUFFER_DELAY,t=a([u(5,l.IModeService),u(6,f.IModelService),u(7,p.IBackupFileService),u(8,g.ITextResourceConfigurationService)],t)}(o.BaseTextEditorModel);t.UntitledEditorModel=v}),
define(e[166],t([0,1,16,26,69,28,38,20]),function(e,t,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(e){function t(t){var n=e.call(this,t)||this;return n._folders=[],n._settingsModelParser=new f(t,[a.ConfigurationScope.WINDOW,a.ConfigurationScope.RESOURCE]),n._launchModel=new o.ConfigurationModel,n}return n(t,e),Object.defineProperty(t.prototype,"folders",{get:function(){return this._folders},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"settingsModel",{get:function(){return this._settingsModelParser.configurationModel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"launchModel",{get:function(){return this._launchModel},enumerable:!0,configurable:!0}),t.prototype.reprocessWorkspaceSettings=function(){this._settingsModelParser.reprocess()},t.prototype.parseRaw=function(t){return this._folders=t.folders||[],this._settingsModelParser.parse(t.settings),this._launchModel=this.createConfigurationModelFrom(t,"launch"),
e.prototype.parseRaw.call(this,t)},t.prototype.createConfigurationModelFrom=function(e,t){var n=this,r=e[t];if(r){var s=i.toValuesTree(r,function(e){return console.error("Conflict in settings file "+n._name+": "+e)}),a=Object.create(null);a[t]=s;var u=Object.keys(r).map(function(e){return t+"."+e});return new o.ConfigurationModel(a,u,[])}return new o.ConfigurationModel},t}(o.ConfigurationModelParser);t.WorkspaceConfigurationModelParser=c;var l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.scope=n,r}return n(t,e),t.prototype.parseRaw=function(e){var t=this,n=i.toValuesTree(e,function(e){return console.error("Conflict in settings file "+t._name+": "+e)}),r=Object.create(null);r[this.scope]=n;return{contents:r,keys:Object.keys(e).map(function(e){return t.scope+"."+e}),overrides:[]}},t}(o.ConfigurationModelParser);t.StandaloneConfigurationModelParser=l;var f=function(e){function t(t,n){var r=e.call(this,t)||this;return r.scopes=n,r}return n(t,e),t.prototype.parse=function(e){
this._raw="string"==typeof e?this.parseContent(e):e,this.parseWorkspaceSettings(this._raw)},Object.defineProperty(t.prototype,"configurationModel",{get:function(){return this._settingsModel||new o.ConfigurationModel},enumerable:!0,configurable:!0}),t.prototype.reprocess=function(){this.parse(this._raw)},t.prototype.parseWorkspaceSettings=function(e){var t={},n=s.Registry.as(a.Extensions.Configuration).getConfigurationProperties();for(var r in e){var i=this.getScope(r,n);-1!==this.scopes.indexOf(i)&&(t[r]=e[r])}var u=this.parseRaw(t);this._settingsModel=new o.ConfigurationModel(u.contents,u.keys,u.overrides)},t.prototype.getScope=function(e,t){var n=t[e];return n?n.scope:a.ConfigurationScope.WINDOW},t}(o.ConfigurationModelParser);t.FolderSettingsModelParser=f;var d=function(e){function t(t,n,r,i,o,s,a){var u=e.call(this,t,n,r,i,o,s)||this;return u._workspace=a,u}return n(t,e),t.prototype.getValue=function(t,n){return void 0===n&&(n={}),e.prototype.getValue.call(this,t,n,this._workspace)},
t.prototype.inspect=function(t,n){return void 0===n&&(n={}),e.prototype.inspect.call(this,t,n,this._workspace)},t.prototype.keys=function(){return e.prototype.keys.call(this,this._workspace)},t.prototype.compareAndUpdateUserConfiguration=function(t){var n=i.compare(this.user,t),r=n.added,s=n.updated,a=n.removed,u=r.concat(s,a);return u.length&&e.prototype.updateUserConfiguration.call(this,t),(new o.ConfigurationChangeEvent).change(u)},t.prototype.compareAndUpdateWorkspaceConfiguration=function(t){var n=i.compare(this.workspace,t),r=n.added,s=n.updated,a=n.removed,u=r.concat(s,a);return u.length&&e.prototype.updateWorkspaceConfiguration.call(this,t),(new o.ConfigurationChangeEvent).change(u)},t.prototype.compareAndUpdateFolderConfiguration=function(t,n){var r=this.folders.get(t);if(r){var s=i.compare(r,n),a=s.added,u=s.updated,c=s.removed,l=a.concat(u,c);return l.length&&e.prototype.updateFolderConfiguration.call(this,t,n),(new o.ConfigurationChangeEvent).change(l,t)}
return e.prototype.updateFolderConfiguration.call(this,t,n),(new o.ConfigurationChangeEvent).change(n.keys,t)},t.prototype.compareAndDeleteFolderConfiguration=function(t){if(this._workspace&&this._workspace.folders.length>0&&this._workspace.folders[0].uri.toString()===t.toString())return new o.ConfigurationChangeEvent;var n=this.folders.get(t).keys;return e.prototype.deleteFolderConfiguration.call(this,t),(new o.ConfigurationChangeEvent).change(n,t)},t.prototype.compare=function(e){for(var t=this,n=[],i=function(i){(!r.equals(o.getValue(i),e.getValue(i))||o._workspace&&o._workspace.folders.some(function(n){return!r.equals(t.getValue(i,{resource:n.uri}),e.getValue(i,{resource:n.uri}))}))&&n.push(i)},o=this,s=0,a=this.allKeys();s<a.length;s++){i(a[s])}return n},t.prototype.allKeys=function(){return e.prototype.allKeys.call(this,this._workspace)},t}(o.Configuration);t.Configuration=d;var h=function(e){function t(t,n,r){var i=e.call(this)||this;return i._configuration=t,i.source=n,i.sourceConfig=r,
i._changedConfiguration=null,i}return n(t,e),Object.defineProperty(t.prototype,"changedConfiguration",{get:function(){return this._changedConfiguration||(this._changedConfiguration=new o.ConfigurationModel,this.updateKeys(this._changedConfiguration,this.affectedKeys)),this._changedConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changedConfigurationByResource",{get:function(){return new u.ResourceMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"affectedKeys",{get:function(){return this._configuration.allKeys()},enumerable:!0,configurable:!0}),t.prototype.affectsConfiguration=function(e,t){return this.doesConfigurationContains(this.changedConfiguration,e)},t}(o.AbstractConfigurationChangeEvent);t.AllKeysConfigurationChangeEvent=h;var p=function(){function e(e,t){this.configurationChangeEvent=e,this.workspace=t}return Object.defineProperty(e.prototype,"changedConfiguration",{get:function(){return this.configurationChangeEvent.changedConfiguration},
enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changedConfigurationByResource",{get:function(){return this.configurationChangeEvent.changedConfigurationByResource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"affectedKeys",{get:function(){return this.configurationChangeEvent.affectedKeys},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return this.configurationChangeEvent.source},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourceConfig",{get:function(){return this.configurationChangeEvent.sourceConfig},enumerable:!0,configurable:!0}),e.prototype.affectsConfiguration=function(e,t){if(this.configurationChangeEvent.affectsConfiguration(e,t))return!0;if(t&&this.workspace){var n=this.workspace.getFolder(t);if(n)return this.configurationChangeEvent.affectsConfiguration(e,n.uri)}return!1},e}();t.WorkspaceConfigurationChangeEvent=p}),
define(e[167],t([0,1,16,3,4,10,26,69,166,20,38,18]),function(e,t,n,r,i,o,s,a,u,c,l,f){"use strict";function d(e,t){if(t){for(var n=t.split("."),r=e,i=0;r&&i<n.length;i++)r=r[n[i]];return r}}Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function e(t,n,r){this._onDidChangeConfiguration=new i.Emitter,this._proxy=t,this._extHostWorkspace=n,this._configuration=e.parse(r),this._configurationScopes=r.configurationScopes}return Object.defineProperty(e.prototype,"onDidChangeConfiguration",{get:function(){return this._onDidChangeConfiguration&&this._onDidChangeConfiguration.event},enumerable:!0,configurable:!0}),e.prototype.$acceptConfigurationChanged=function(t,n){this._configuration=e.parse(t),this._onDidChangeConfiguration.fire(this._toConfigurationChangeEvent(n))},e.prototype.getConfiguration=function(e,t,r){var i=this,a=this._toReadonlyValue(e?d(this._configuration.getValue(null,{resource:t},this._extHostWorkspace.workspace),e):this._configuration.getValue(null,{resource:t
},this._extHostWorkspace.workspace));e&&this._validateConfigurationAccess(e,t,r);var u={has:function(e){return void 0!==d(a,e)},get:function(o,s){i._validateConfigurationAccess(e?e+"."+o:o,t,r);var u=d(a,o);if(void 0===u)u=s;else{var c=void 0,l=function(e,t){var r=void 0,i=function(){c=c||n.deepClone(a),r=r||d(c,t)};return f.isObject(e)?new Proxy(e,{get:function(e,n){if("string"==typeof n&&"tojson"===n.toLowerCase())return i(),function(){return r};if(c)return(r=r||d(c,t))[n];var o=e[n];return"string"==typeof n?l(o,t+"."+n):o},set:function(e,t,n){return i(),r[t]=n,!0},deleteProperty:function(e,t){return i(),delete r[t],!0},defineProperty:function(e,t,n){return i(),Object.defineProperty(r,t,n),!0}}):e};u=l(u,o)}return u},update:function(n,r,a){n=e?e+"."+n:n;var u=function(e){if(void 0===e||null===e)return null;if("boolean"==typeof e)return e?s.ConfigurationTarget.USER:s.ConfigurationTarget.WORKSPACE;switch(e){case o.ConfigurationTarget.Global:return s.ConfigurationTarget.USER
;case o.ConfigurationTarget.Workspace:return s.ConfigurationTarget.WORKSPACE;case o.ConfigurationTarget.WorkspaceFolder:return s.ConfigurationTarget.WORKSPACE_FOLDER}}(a);return void 0!==r?i._proxy.$updateConfigurationOption(u,n,r,t):i._proxy.$removeConfigurationOption(u,n,t)},inspect:function(r){r=e?e+"."+r:r;var o=n.deepClone(i._configuration.inspect(r,{resource:t},i._extHostWorkspace.workspace));if(o)return{key:r,defaultValue:o.default,globalValue:o.user,workspaceValue:o.workspace,workspaceFolderValue:o.workspaceFolder}}};return"object"==typeof a&&n.mixin(u,a,!1),Object.freeze(u)},e.prototype._toReadonlyValue=function(e){var t=function(e){return f.isObject(e)?new Proxy(e,{get:function(e,n){return t(e[n])},set:function(e,t,n){throw new Error("TypeError: Cannot assign to read only property '"+t+"' of object")},deleteProperty:function(e,t){throw new Error("TypeError: Cannot delete read only property '"+t+"' of object")},defineProperty:function(e,t){
throw new Error("TypeError: Cannot define property '"+t+"' for a readonly object")},setPrototypeOf:function(e){throw new Error("TypeError: Cannot set prototype for a readonly object")},isExtensible:function(){return!1},preventExtensions:function(){return!0}}):e};return t(e)},e.prototype._validateConfigurationAccess=function(e,t,n){var r=l.OVERRIDE_PROPERTY_PATTERN.test(e)?l.ConfigurationScope.RESOURCE:this._configurationScopes[e],i=n?"["+n+"] ":"";l.ConfigurationScope.RESOURCE!==r?l.ConfigurationScope.WINDOW!==r||t&&console.warn(i+"Accessing a window scoped configuration for a resource is not expected. To associate '"+e+"' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'."):void 0===t&&console.warn(i+"Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '"+e+"', provide the URI of a resource or 'null' for any resource.")},e.prototype._toConfigurationChangeEvent=function(e){
for(var t=new a.ConfigurationModel(e.changedConfiguration.contents,e.changedConfiguration.keys,e.changedConfiguration.overrides),n=new c.ResourceMap,i=0,o=Object.keys(e.changedConfigurationByResource);i<o.length;i++){var s=o[i],l=r.default.parse(s),f=e.changedConfigurationByResource[s];n.set(l,new a.ConfigurationModel(f.contents,f.keys,f.overrides))}var d=new u.WorkspaceConfigurationChangeEvent(new a.ConfigurationChangeEvent(t,n),this._extHostWorkspace.workspace);return Object.freeze({affectsConfiguration:function(e,t){return d.affectsConfiguration(e,t)}})},e.parse=function(t){var n=e.parseConfigurationModel(t.defaults),i=e.parseConfigurationModel(t.user),o=e.parseConfigurationModel(t.workspace),s=Object.keys(t.folders).reduce(function(n,i){return n.set(r.default.parse(i),e.parseConfigurationModel(t.folders[i])),n},new c.ResourceMap);return new a.Configuration(n,i,o,s,new a.ConfigurationModel,new c.ResourceMap,!1)},e.parseConfigurationModel=function(e){
return new a.ConfigurationModel(e.contents,e.keys,e.overrides).freeze()},e}();t.ExtHostConfiguration=h}),define(e[168],t([0,1,9,18,16,21,8,43,113]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){void 0===t&&(t=process.env);var n=this;this._context=e,this._envVariables=t,s.isWindows&&(this._envVariables=Object.create(null),Object.keys(t).forEach(function(e){n._envVariables[e.toLowerCase()]=t[e]}))}return e.prototype.resolve=function(e,t){return this.recursiveResolve(e?e.uri:void 0,t)},e.prototype.resolveAny=function(e,t,n){var r=i.deepClone(t);return s.isWindows&&r.windows?Object.keys(r.windows).forEach(function(e){return r[e]=r.windows[e]}):s.isMacintosh&&r.osx?Object.keys(r.osx).forEach(function(e){return r[e]=r.osx[e]}):s.isLinux&&r.linux&&Object.keys(r.linux).forEach(function(e){return r[e]=r.linux[e]}),delete r.windows,delete r.osx,delete r.linux,this.recursiveResolve(e?e.uri:void 0,r,n)},
e.prototype.resolveWithCommands=function(e,t){throw new Error("resolveWithCommands not implemented.")},e.prototype.recursiveResolve=function(e,t,n){var i=this;if(r.isString(t))return this.resolveString(e,t,n);if(r.isArray(t))return t.map(function(t){return i.recursiveResolve(e,t,n)});if(r.isObject(t)){var o=Object.create(null);return Object.keys(t).forEach(function(r){var s=i.resolveString(e,r,n);o[s]=i.recursiveResolve(e,t[r],n)}),o}return t},e.prototype.resolveString=function(t,i,c){var l=this,f=this._context.getFilePath();return i.replace(e.VARIABLE_REGEXP,function(e,i){var d,h=i.split(":");switch(h&&h.length>1&&(i=h[0],d=h[1]),i){case"env":if(d){s.isWindows&&(d=d.toLowerCase());var p=l._envVariables[d];return r.isString(p)?p:""}throw new Error(u.localize(0,null,e));case"config":if(d){var g=l._context.getConfigurationValue(t,d);if(r.isUndefinedOrNull(g))throw new Error(u.localize(1,null,e,d));if(r.isObject(g))throw new Error(u.localize(2,null,e,d));return g}throw new Error(u.localize(3,null,e))
;case"command":if(d&&c){var m=c[d];if("string"==typeof m)return m;throw new Error(u.localize(4,null,e))}return e;default:switch(i){case"workspaceRoot":case"workspaceFolder":case"workspaceRootFolderName":case"workspaceFolderBasename":case"relativeFile":if(d){var v=l._context.getFolderUri(d);if(!v)throw new Error(u.localize(5,null,e,d));t=v}if(!t){if(l._context.getWorkspaceFolderCount()>1)throw new Error(u.localize(6,null,e));throw new Error(u.localize(7,null,e))}}switch(i){case"file":case"relativeFile":case"fileDirname":case"fileExtname":case"fileBasename":case"fileBasenameNoExtension":if(!f)throw new Error(u.localize(8,null,e))}switch(i){case"workspaceRoot":case"workspaceFolder":return a.normalizeDriveLetter(t.fsPath);case"cwd":return t?a.normalizeDriveLetter(t.fsPath):process.cwd();case"workspaceRootFolderName":case"workspaceFolderBasename":return n.basename(t.fsPath);case"lineNumber":var _=l._context.getLineNumber();if(_)return _;throw new Error(u.localize(9,null,e));case"selectedText":
var y=l._context.getSelectedText();if(y)return y;throw new Error(u.localize(10,null,e));case"file":return f;case"relativeFile":return t?n.normalize(o.relative(t.fsPath,f)):f;case"fileDirname":return n.dirname(f);case"fileExtname":return n.extname(f);case"fileBasename":return n.basename(f);case"fileBasenameNoExtension":var b=n.basename(f);return b.slice(0,b.length-n.extname(b).length);case"execPath":var C=l._context.getExecPath();return C||e;default:return e}}})},e.VARIABLE_REGEXP=/\$\{(.*?)\}/g,e}();t.AbstractVariableResolverService=c}),define(e[169],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEditorService=n.createDecorator("editorService"),t.ACTIVE_GROUP=-1,t.SIDE_GROUP=-2}),define(e[170],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IExtensionService=n.createDecorator("extensionService");var r=function(){return function(e,t,n,r,i){this.startup=e,this.codeLoadingTime=t,this.activateCallTime=n,
this.activateResolvedTime=r,this.activationEvent=i}}();t.ActivationTimes=r;var i=function(){return function(e,t){this.description=e,this.value=t}}();t.ExtensionPointContribution=i}),define(e[171],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.hasOwnProperty,r=function(){function e(e){this._extensionsMap={},this._extensionsArr=[],this._activationMap={};for(var t=0,r=e.length;t<r;t++){var i=e[t];if(n.call(this._extensionsMap,i.id))console.error("Extension `"+i.id+"` is already registered");else if(this._extensionsMap[i.id]=i,this._extensionsArr.push(i),Array.isArray(i.activationEvents))for(var o=0,s=i.activationEvents.length;o<s;o++){var a=i.activationEvents[o];"onUri"===a&&(a="onUri:"+i.id),this._activationMap[a]=this._activationMap[a]||[],this._activationMap[a].push(i)}}}return e.prototype.containsActivationEvent=function(e){return n.call(this._activationMap,e)},e.prototype.getExtensionDescriptionsForActivationEvent=function(e){
return n.call(this._activationMap,e)?this._activationMap[e].slice(0):[]},e.prototype.getAllExtensionDescriptions=function(){return this._extensionsArr.slice(0)},e.prototype.getExtensionDescription=function(e){return n.call(this._extensionsMap,e)?this._extensionsMap[e]:null},e}();t.ExtensionDescriptionRegistry=r}),define(e[172],t([0,1,2,17]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._onCancel=e,this._actual=null,this._actualOk=null,this._actualErr=null,this._hasValue=!1,this._value=null,this._hasErr=!1,this._err=null,this._isCanceled=!1}return e.prototype._ensureActual=function(){var e=this;return this._actual||(this._actual=new n.TPromise(function(t,n){e._actualOk=t,e._actualErr=n},this._onCancel),this._hasValue&&this._actualOk(this._value),this._hasErr&&this._actualErr(this._err)),this._actual},e.prototype.resolveOk=function(e){this._isCanceled||this._hasErr||(this._hasValue=!0,this._value=e,this._actual&&this._actualOk(e))},
e.prototype.resolveErr=function(e){this._isCanceled||this._hasValue||(this._hasErr=!0,this._err=e,this._actual?this._actualErr(e):r.onUnexpectedError(e))},e.prototype.then=function(e,t){if(!this._isCanceled)return this._ensureActual().then(e,t)},e.prototype.done=function(e,t){this._isCanceled||this._ensureActual().done(e,t)},e.prototype.cancel=function(){this._hasValue||this._hasErr||(this._isCanceled=!0,this._actual?this._actual.cancel():this._onCancel())},e}();t.LazyPromise=i}),define(e[173],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e,t){this.isMain=e,this.id=t}}();t.ProxyIdentifier=n,t.createMainContextProxyIdentifier=function(e){return new n(!0,"m"+e)},t.createExtHostContextProxyIdentifier=function(e){return new n(!1,"e"+e)}}),define(e[5],t([0,1,173,3]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",
e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(t.TextEditorRevealType||(t.TextEditorRevealType={}));!function(e){e.name="$ident",e.mixin=function(t,n){return Object.defineProperty(t,e.name,{value:n,enumerable:!0}),t},e.of=function(t){return t[e.name]}}(t.ObjectIdentifier||(t.ObjectIdentifier={}));var i=function(){function e(){}return e.mixin=function(t){return t._id=e._n++,t},e._n=0,e}();t.IdObject=i,t.reviveWorkspaceEditDto=function(e){if(e&&e.edits)for(var t=0,n=e.edits;t<n.length;t++){var i=n[t];"object"==typeof i.resource?i.resource=r.default.revive(i.resource):(i.newUri=r.default.revive(i.newUri),i.oldUri=r.default.revive(i.oldUri))}return e},t.MainContext={MainThreadCommands:n.createMainContextProxyIdentifier("MainThreadCommands"),MainThreadComments:n.createMainContextProxyIdentifier("MainThreadComments"),MainThreadConfiguration:n.createMainContextProxyIdentifier("MainThreadConfiguration"),
MainThreadDebugService:n.createMainContextProxyIdentifier("MainThreadDebugService"),MainThreadDecorations:n.createMainContextProxyIdentifier("MainThreadDecorations"),MainThreadDiagnostics:n.createMainContextProxyIdentifier("MainThreadDiagnostics"),MainThreadDialogs:n.createMainContextProxyIdentifier("MainThreadDiaglogs"),MainThreadDocuments:n.createMainContextProxyIdentifier("MainThreadDocuments"),MainThreadDocumentContentProviders:n.createMainContextProxyIdentifier("MainThreadDocumentContentProviders"),MainThreadTextEditors:n.createMainContextProxyIdentifier("MainThreadTextEditors"),MainThreadErrors:n.createMainContextProxyIdentifier("MainThreadErrors"),MainThreadTreeViews:n.createMainContextProxyIdentifier("MainThreadTreeViews"),MainThreadLanguageFeatures:n.createMainContextProxyIdentifier("MainThreadLanguageFeatures"),MainThreadLanguages:n.createMainContextProxyIdentifier("MainThreadLanguages"),MainThreadMessageService:n.createMainContextProxyIdentifier("MainThreadMessageService"),
MainThreadOutputService:n.createMainContextProxyIdentifier("MainThreadOutputService"),MainThreadProgress:n.createMainContextProxyIdentifier("MainThreadProgress"),MainThreadQuickOpen:n.createMainContextProxyIdentifier("MainThreadQuickOpen"),MainThreadStatusBar:n.createMainContextProxyIdentifier("MainThreadStatusBar"),MainThreadStorage:n.createMainContextProxyIdentifier("MainThreadStorage"),MainThreadTelemetry:n.createMainContextProxyIdentifier("MainThreadTelemetry"),MainThreadTerminalService:n.createMainContextProxyIdentifier("MainThreadTerminalService"),MainThreadWebviews:n.createMainContextProxyIdentifier("MainThreadWebviews"),MainThreadUrls:n.createMainContextProxyIdentifier("MainThreadUrls"),MainThreadWorkspace:n.createMainContextProxyIdentifier("MainThreadWorkspace"),MainThreadFileSystem:n.createMainContextProxyIdentifier("MainThreadFileSystem"),MainThreadExtensionService:n.createMainContextProxyIdentifier("MainThreadExtensionService"),MainThreadSCM:n.createMainContextProxyIdentifier("MainThreadSCM"),
MainThreadSearch:n.createMainContextProxyIdentifier("MainThreadSearch"),MainThreadTask:n.createMainContextProxyIdentifier("MainThreadTask"),MainThreadWindow:n.createMainContextProxyIdentifier("MainThreadWindow")},t.ExtHostContext={ExtHostCommands:n.createExtHostContextProxyIdentifier("ExtHostCommands"),ExtHostConfiguration:n.createExtHostContextProxyIdentifier("ExtHostConfiguration"),ExtHostDiagnostics:n.createExtHostContextProxyIdentifier("ExtHostDiagnostics"),ExtHostDebugService:n.createExtHostContextProxyIdentifier("ExtHostDebugService"),ExtHostDecorations:n.createExtHostContextProxyIdentifier("ExtHostDecorations"),ExtHostDocumentsAndEditors:n.createExtHostContextProxyIdentifier("ExtHostDocumentsAndEditors"),ExtHostDocuments:n.createExtHostContextProxyIdentifier("ExtHostDocuments"),ExtHostDocumentContentProviders:n.createExtHostContextProxyIdentifier("ExtHostDocumentContentProviders"),ExtHostDocumentSaveParticipant:n.createExtHostContextProxyIdentifier("ExtHostDocumentSaveParticipant"),
ExtHostEditors:n.createExtHostContextProxyIdentifier("ExtHostEditors"),ExtHostTreeViews:n.createExtHostContextProxyIdentifier("ExtHostTreeViews"),ExtHostFileSystem:n.createExtHostContextProxyIdentifier("ExtHostFileSystem"),ExtHostFileSystemEventService:n.createExtHostContextProxyIdentifier("ExtHostFileSystemEventService"),ExtHostHeapService:n.createExtHostContextProxyIdentifier("ExtHostHeapMonitor"),ExtHostLanguageFeatures:n.createExtHostContextProxyIdentifier("ExtHostLanguageFeatures"),ExtHostQuickOpen:n.createExtHostContextProxyIdentifier("ExtHostQuickOpen"),ExtHostExtensionService:n.createExtHostContextProxyIdentifier("ExtHostExtensionService"),ExtHostLogService:n.createExtHostContextProxyIdentifier("ExtHostLogService"),ExtHostTerminalService:n.createExtHostContextProxyIdentifier("ExtHostTerminalService"),ExtHostSCM:n.createExtHostContextProxyIdentifier("ExtHostSCM"),ExtHostSearch:n.createExtHostContextProxyIdentifier("ExtHostSearch"),ExtHostTask:n.createExtHostContextProxyIdentifier("ExtHostTask"),
ExtHostWorkspace:n.createExtHostContextProxyIdentifier("ExtHostWorkspace"),ExtHostWindow:n.createExtHostContextProxyIdentifier("ExtHostWindow"),ExtHostWebviews:n.createExtHostContextProxyIdentifier("ExtHostWebviews"),ExtHostProgress:n.createMainContextProxyIdentifier("ExtHostProgress"),ExtHostComments:n.createMainContextProxyIdentifier("ExtHostComments"),ExtHostUrls:n.createExtHostContextProxyIdentifier("ExtHostUrls")}}),define(e[77],t([0,1,9,23,3,2,4,15,103,5,10,49,159,160,168,158]),function(e,t,r,s,a,u,c,l,f,d,h,p,g,m,v,_){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var y=function(){function e(e,t,n,r,i,o){var s=this;this._workspaceService=t,this._extensionService=n,this._editorsService=r,this._configurationService=i,this._terminalService=o,this._debugSessions=new Map,this._handleCounter=0,this._handlers=new Map,this._onDidStartDebugSession=new c.Emitter,this._onDidTerminateDebugSession=new c.Emitter,this._onDidChangeActiveDebugSession=new c.Emitter,
this._onDidReceiveDebugSessionCustomEvent=new c.Emitter,this._debugServiceProxy=e.getProxy(d.MainContext.MainThreadDebugService),this._onDidChangeBreakpoints=new c.Emitter({onFirstListenerAdd:function(){s.startBreakpoints()}}),this._activeDebugConsole=new C(this._debugServiceProxy),this._breakpoints=new Map,this._breakpointEventsActive=!1,this._debugAdapters=new Map;for(var a=[],u=0,l=this._extensionService.getAllExtensionDescriptions();u<l.length;u++){var f=l[u];if(f.contributes){var h=f.contributes.debuggers;if(h&&h.length>0)for(var p=0,g=h;p<g.length;p++){var m=g[p];m.type&&m.label&&a.push(m.type)}}}a.length>0&&this._debugServiceProxy.$registerDebugTypes(a)}return Object.defineProperty(e.prototype,"onDidStartDebugSession",{get:function(){return this._onDidStartDebugSession.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidTerminateDebugSession",{get:function(){return this._onDidTerminateDebugSession.event},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"onDidChangeActiveDebugSession",{get:function(){return this._onDidChangeActiveDebugSession.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDebugSession",{get:function(){return this._activeDebugSession},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidReceiveDebugSessionCustomEvent",{get:function(){return this._onDidReceiveDebugSessionCustomEvent.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDebugConsole",{get:function(){return this._activeDebugConsole},enumerable:!0,configurable:!0}),e.prototype.$runInTerminal=function(e,t){return i(this,void 0,u.TPromise,function(){var n,r,i,s,a=this;return o(this,function(o){switch(o.label){case 0:return"integrated"!==e.kind?[3,3]:(this._terminalDisposedListener||(this._terminalDisposedListener=this._terminalService.onDidCloseTerminal(function(e){a._integratedTerminalInstance&&a._integratedTerminalInstance===e&&(a._integratedTerminalInstance=null)})),
n=this._integratedTerminalInstance,(r=n)?(i=m.hasChildprocesses,[4,n.processId]):[3,2]);case 1:r=i.apply(void 0,[o.sent()]),o.label=2;case 2:return!r&&n||(n=this._terminalService.createTerminal(e.title||f.localize(0,null)),this._integratedTerminalInstance=n),n.show(),[2,new u.TPromise(function(r,i){setTimeout(function(i){var o=m.prepareCommand(e,t);n.sendText(o,!0),r(void 0)},500)})];case 3:if("external"===e.kind&&(s=m.getTerminalLauncher()))return[2,s.runInTerminal(e,t)];o.label=4;case 4:return[2,void 0]}})})},e.prototype.$substituteVariables=function(e,t){var n=this;this._variableResolver||(this._variableResolver=new E(this._workspaceService,this._editorsService,this._configurationService));var r,i=this.getFolder(e);return i&&(r={uri:i.uri,name:i.name,index:i.index,toResource:function(){throw new Error("Not implemented")}}),l.asWinJsPromise(function(e){return n._variableResolver.resolveAny(r,t)})},e.prototype.$startDASession=function(e,t,i,o){var s=this,u=this,c=null;return c=o>0?new(function(t){
function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.prototype.acceptMessage=function(t){_.convertToVSCPaths(t,function(e){r.isAbsolute(e.path)&&(e.path=a.default.file(e.path))}),u._debugServiceProxy.$acceptDAMessage(e,t)},i}(g.SocketDebugAdapter))(o):new(function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.prototype.acceptMessage=function(t){_.convertToVSCPaths(t,function(e){r.isAbsolute(e.path)&&(e.path=a.default.file(e.path))}),u._debugServiceProxy.$acceptDAMessage(e,t)},i}(g.DebugAdapter))(t,i,this._extensionService.getAllExtensionDescriptions()),this._debugAdapters.set(e,c),c.onError(function(t){return s._debugServiceProxy.$acceptDAError(e,t.name,t.message,t.stack)}),c.onExit(function(t){return s._debugServiceProxy.$acceptDAExit(e,t,null)}),c.startSession()},e.prototype.$sendDAMessage=function(e,t){_.convertToDAPaths(t,function(e){"object"==typeof e.path&&(e.path=a.default.revive(e.path).fsPath)});var n=this._debugAdapters.get(e)
;n&&n.sendMessage(t)},e.prototype.$stopDASession=function(e){var t=this._debugAdapters.get(e);return this._debugAdapters.delete(e),t?t.stopSession():void 0},e.prototype.startBreakpoints=function(){this._breakpointEventsActive||(this._breakpointEventsActive=!0,this._debugServiceProxy.$startBreakpointEvents())},Object.defineProperty(e.prototype,"onDidChangeBreakpoints",{get:function(){return this._onDidChangeBreakpoints.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"breakpoints",{get:function(){this.startBreakpoints();var e=[];return this._breakpoints.forEach(function(t){return e.push(t)}),e},enumerable:!0,configurable:!0}),e.prototype.$acceptBreakpointsDelta=function(e){var t=[],n=[],r=[];if(e.added)for(var i=0,o=e.added;i<o.length;i++){g=o[i];if(!this._breakpoints.has(g.id)){p=void 0;if("function"===g.type)p=new h.FunctionBreakpoint(g.functionName,g.enabled,g.condition,g.hitCondition,g.logMessage);else{var s=a.default.revive(g.uri)
;p=new h.SourceBreakpoint(new h.Location(s,new h.Position(g.line,g.character)),g.enabled,g.condition,g.hitCondition,g.logMessage)}p._id=g.id,this._breakpoints.set(g.id,p),t.push(p)}}if(e.removed)for(var u=0,c=e.removed;u<c.length;u++){var l=c[u];(p=this._breakpoints.get(l))&&(this._breakpoints.delete(l),n.push(p))}if(e.changed)for(var f=0,d=e.changed;f<d.length;f++){var p,g=d[f];if(p=this._breakpoints.get(g.id)){if(p instanceof h.FunctionBreakpoint&&"function"===g.type){var m=p;m.enabled=g.enabled,m.condition=g.condition,m.hitCondition=g.hitCondition,m.logMessage=g.logMessage,m.functionName=g.functionName}else if(p instanceof h.SourceBreakpoint&&"source"===g.type){var v=p;v.enabled=g.enabled,v.condition=g.condition,v.hitCondition=g.hitCondition,v.logMessage=g.logMessage,v.location=new h.Location(a.default.revive(g.uri),new h.Position(g.line,g.character))}r.push(p)}}this.fireBreakpointChanges(t,n,r)},e.prototype.addBreakpoints=function(e){this.startBreakpoints();for(var t=[],n=0,r=e;n<r.length;n++){
var i=(c=r[n])._id;i?this._breakpoints.has(i)||t.push(c):(i=p.generateUuid(),c._id=i,this._breakpoints.set(i,c),t.push(c))}this.fireBreakpointChanges(t,[],[]);for(var o=[],s=new Map,a=0,u=t;a<u.length;a++){var c=u[a];if(c instanceof h.SourceBreakpoint){var l=s.get(c.location.uri.toString());l||(l={type:"sourceMulti",uri:c.location.uri,lines:[]},s.set(c.location.uri.toString(),l),o.push(l)),l.lines.push({id:c._id,enabled:c.enabled,condition:c.condition,hitCondition:c.hitCondition,logMessage:c.logMessage,line:c.location.range.start.line,character:c.location.range.start.character})}else c instanceof h.FunctionBreakpoint&&o.push({type:"function",id:c._id,enabled:c.enabled,hitCondition:c.hitCondition,logMessage:c.logMessage,condition:c.condition,functionName:c.functionName})}return this._debugServiceProxy.$registerBreakpoints(o)},e.prototype.removeBreakpoints=function(e){this.startBreakpoints();for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n],o=i._id;o&&this._breakpoints.delete(o)&&t.push(i)}
this.fireBreakpointChanges([],t,[]);var s=t.filter(function(e){return e instanceof h.SourceBreakpoint}).map(function(e){return e._id}),a=t.filter(function(e){return e instanceof h.FunctionBreakpoint}).map(function(e){return e._id});return this._debugServiceProxy.$unregisterBreakpoints(s,a)},e.prototype.fireBreakpointChanges=function(e,t,n){(e.length>0||t.length>0||n.length>0)&&this._onDidChangeBreakpoints.fire(Object.freeze({added:Object.freeze(e),removed:Object.freeze(t),changed:Object.freeze(n)}))},e.prototype.registerDebugConfigurationProvider=function(e,t){var n=this;if(!t)return new h.Disposable(function(){});var r=this.nextHandle();return this._handlers.set(r,t),this._debugServiceProxy.$registerDebugConfigurationProvider(e,!!t.provideDebugConfigurations,!!t.resolveDebugConfiguration,!!t.debugAdapterExecutable,r),new h.Disposable(function(){n._handlers.delete(r),n._debugServiceProxy.$unregisterDebugConfigurationProvider(r)})},e.prototype.$provideDebugConfigurations=function(e,t){
var n=this,r=this._handlers.get(e);return r?r.provideDebugConfigurations?l.asWinJsPromise(function(e){return r.provideDebugConfigurations(n.getFolder(t),e)}):u.TPromise.wrapError(new Error("handler has no method provideDebugConfigurations")):u.TPromise.wrapError(new Error("no handler found"))},e.prototype.$resolveDebugConfiguration=function(e,t,n){var r=this,i=this._handlers.get(e);return i?i.resolveDebugConfiguration?l.asWinJsPromise(function(e){return i.resolveDebugConfiguration(r.getFolder(t),n,e)}):u.TPromise.wrapError(new Error("handler has no method resolveDebugConfiguration")):u.TPromise.wrapError(new Error("no handler found"))},e.prototype.$debugAdapterExecutable=function(e,t){var n=this,r=this._handlers.get(e);return r?r.debugAdapterExecutable?l.asWinJsPromise(function(e){return r.debugAdapterExecutable(n.getFolder(t),e)}):u.TPromise.wrapError(new Error("handler has no method debugAdapterExecutable")):u.TPromise.wrapError(new Error("no handler found"))},e.prototype.startDebugging=function(e,t){
return this._debugServiceProxy.$startDebugging(e?e.uri:void 0,t)},e.prototype.$acceptDebugSessionStarted=function(e,t,n){var r=this._debugSessions.get(e);r||(r=new b(this._debugServiceProxy,e,t,n),this._debugSessions.set(e,r)),this._onDidStartDebugSession.fire(r)},e.prototype.$acceptDebugSessionTerminated=function(e,t,n){var r=this._debugSessions.get(e);r||(r=new b(this._debugServiceProxy,e,t,n),this._debugSessions.set(e,r)),this._onDidTerminateDebugSession.fire(r),this._debugSessions.delete(e)},e.prototype.$acceptDebugSessionActiveChanged=function(e,t,n){e?(this._activeDebugSession=this._debugSessions.get(e),this._activeDebugSession||(this._activeDebugSession=new b(this._debugServiceProxy,e,t,n),this._debugSessions.set(e,this._activeDebugSession))):this._activeDebugSession=void 0,this._onDidChangeActiveDebugSession.fire(this._activeDebugSession)},e.prototype.$acceptDebugSessionCustomEvent=function(e,t,n,r){var i=this._debugSessions.get(e);i||(i=new b(this._debugServiceProxy,e,t,n),
this._debugSessions.set(e,i));var o={session:i,event:r.event,body:r.body};this._onDidReceiveDebugSessionCustomEvent.fire(o)},e.prototype.getFolder=function(e){if(e){var t=a.default.revive(e);return this._workspaceService.resolveWorkspaceFolder(t)}},e.prototype.nextHandle=function(){return this._handleCounter++},e}();t.ExtHostDebugService=y;var b=function(){function e(e,t,n,r){this._debugServiceProxy=e,this._id=t,this._type=n,this._name=r}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.customRequest=function(e,t){return this._debugServiceProxy.$customDebugAdapterRequest(this._id,e,t)},e}();t.ExtHostDebugSession=b;var C=function(){function e(e){this._debugServiceProxy=e}return e.prototype.append=function(e){
this._debugServiceProxy.$appendDebugConsole(e)},e.prototype.appendLine=function(e){this.append(e+"\n")},e}();t.ExtHostDebugConsole=C;var E=function(e){function t(t,n,i){return e.call(this,{getFolderUri:function(e){var n=t.getWorkspaceFolders().filter(function(t){return t.name===e});if(n&&n.length>0)return n[0].uri},getWorkspaceFolderCount:function(){return t.getWorkspaceFolders().length},getConfigurationValue:function(e,t){return i.getConfiguration(void 0,e).get(t)},getExecPath:function(){},getFilePath:function(){var e=n.activeEditor();if(e){var t=e.document.uri;if(t.scheme===s.Schemas.file)return r.normalize(t.fsPath,!0)}},getSelectedText:function(){var e=n.activeEditor();if(e&&!e.selection.isEmpty)return e.document.getText(e.selection)},getLineNumber:function(){var e=n.activeEditor();if(e)return String(e.selection.end.line+1)}})||this}return n(t,e),t}(v.AbstractVariableResolverService);t.ExtHostVariableResolverService=E}),define(e[176],t([0,1,3,5,2,10,15]),function(e,t,n,r,i,o,s){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e){this._provider=new Map,this._proxy=e.getProxy(r.MainContext.MainThreadDecorations)}return e.prototype.registerDecorationProvider=function(t,n){var r=this,i=e._handlePool++;this._provider.set(i,t),this._proxy.$registerDecorationProvider(i,n);var s=t.onDidChangeDecorations(function(e){r._proxy.$onDidChange(i,e?Array.isArray(e)?e:[e]:null)});return new o.Disposable(function(){s.dispose(),r._proxy.$unregisterDecorationProvider(i),r._provider.delete(i)})},e.prototype.$provideDecorations=function(e){var t=this,r=Object.create(null);return i.TPromise.join(e.map(function(e){var i=e.handle,o=e.uri,a=e.id,u=t._provider.get(i);if(u)return s.asWinJsPromise(function(e){return u.provideDecoration(n.default.revive(o),e)}).then(function(e){r[a]=e&&[e.priority,e.bubble,e.title,e.abbreviation,e.color,e.source]},function(e){console.error(e)})})).then(function(){return r})},e._handlePool=0,e}();t.ExtHostDecorations=a}),
define(e[177],t([0,1,3,5]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._proxy=e.getProxy(r.MainContext.MainThreadDialogs)}return e.prototype.showOpenDialog=function(e){return this._proxy.$showOpenDialog(e).then(function(e){return e&&e.map(n.default.file)})},e.prototype.showSaveDialog=function(e){return this._proxy.$showSaveDialog(e).then(function(e){return e&&n.default.file(e)})},e}();t.ExtHostDialogs=i}),define(e[178],t([0,1,17,3,10,2,15,5,23]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t,n){this._documentsAndEditors=t,this._logService=n,this._documentContentProviders=new Map,this._proxy=e.getProxy(a.MainContext.MainThreadDocumentContentProviders)}return e.prototype.dispose=function(){},e.prototype.registerTextDocumentContentProvider=function(t,r){var o=this;if(t===u.Schemas.file||t===u.Schemas.untitled)throw new Error("scheme '"+t+"' already registered")
;var s=e._handlePool++;this._documentContentProviders.set(s,r),this._proxy.$registerTextContentProvider(s,t);var a;return"function"==typeof r.onDidChange&&(a=r.onDidChange(function(e){e.scheme===t?o._documentsAndEditors.getDocument(e.toString())&&o.$provideTextDocumentContent(s,e).then(function(t){var n=o._documentsAndEditors.getDocument(e.toString());if(n){var r=t.split(/\r\n|\r|\n/);return n.equalLines(r)?void 0:o._proxy.$onVirtualDocumentChange(e,t)}},n.onUnexpectedError):o._logService.warn("Provider for scheme '"+t+"' is firing event for schema '"+e.scheme+"' which will be IGNORED")})),new i.Disposable(function(){o._documentContentProviders.delete(s)&&o._proxy.$unregisterTextContentProvider(s),a&&(a.dispose(),a=void 0)})},e.prototype.$provideTextDocumentContent=function(e,t){var n=this._documentContentProviders.get(e);return n?s.asWinJsPromise(function(e){return n.provideTextDocumentContent(r.default.revive(t),e)}):o.TPromise.wrapError(new Error("unsupported uri-scheme: "+t.scheme))},e._handlePool=0,e}()
;t.ExtHostDocumentContentProvider=c}),define(e[179],t([0,1,3,5,37,15,20,10,23]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(){this._schemes=new Set}return e.prototype.add=function(e){this._regex=void 0,this._schemes.add(e)},e.prototype.delete=function(e){this._schemes.delete(e)&&(this._regex=void 0)},e.prototype.provideDocumentLinks=function(e){if(0!==this._schemes.size){this._regex||(this._regex=new RegExp("("+s.values(this._schemes).join("|")+"):[^\\s]+","gi"));for(var t=[],r=Math.min(e.lineCount,2500),i=0;i<r;i++){this._regex.lastIndex=0;for(var o=e.lineAt(i),u=void 0;u=this._regex.exec(o.text);){var c=n.default.parse(u[0]);if("/"===c.path[0]){var l=new a.Range(i,this._regex.lastIndex-u[0].length,i,this._regex.lastIndex);t.push({target:c,range:l})}}}return t}},e}(),l=function(){function e(e,t){this._linkProvider=new c,this._fsProvider=new Map,this._usedSchemes=new Set,this._watches=new Map,this._handlePool=0,
this._proxy=e.getProxy(r.MainContext.MainThreadFileSystem),this._usedSchemes.add(u.Schemas.file),this._usedSchemes.add(u.Schemas.untitled),this._usedSchemes.add(u.Schemas.vscode),this._usedSchemes.add(u.Schemas.inMemory),this._usedSchemes.add(u.Schemas.internal),this._usedSchemes.add(u.Schemas.http),this._usedSchemes.add(u.Schemas.https),this._usedSchemes.add(u.Schemas.mailto),this._usedSchemes.add(u.Schemas.data),t.registerDocumentLinkProvider("*",this._linkProvider)}return e.prototype.registerFileSystemProvider=function(e,t,n){var r=this;if(void 0===n&&(n={}),this._usedSchemes.has(e))throw new Error("a provider for the scheme '"+e+"' is already registered");var o=this._handlePool++;this._linkProvider.add(e),this._usedSchemes.add(e),this._fsProvider.set(o,t);var s=i.FileSystemProviderCapabilities.FileReadWrite;n.isCaseSensitive&&(s+=i.FileSystemProviderCapabilities.PathCaseSensitive),n.isReadonly&&(s+=i.FileSystemProviderCapabilities.Readonly),
"function"==typeof t.copy&&(s+=i.FileSystemProviderCapabilities.FileFolderCopy),this._proxy.$registerFileSystemProvider(o,e,s);var u=t.onDidChangeFile(function(t){for(var n=[],s=0,u=t;s<u.length;s++){var c=u[s],l=c.uri,f=c.type;if(l.scheme===e){var d=void 0;switch(f){case a.FileChangeType.Changed:d=i.FileChangeType.UPDATED;break;case a.FileChangeType.Created:d=i.FileChangeType.ADDED;break;case a.FileChangeType.Deleted:d=i.FileChangeType.DELETED}n.push({resource:l,type:d})}}r._proxy.$onFileSystemChange(o,n)});return{dispose:function(){u.dispose(),r._linkProvider.delete(e),r._usedSchemes.delete(e),r._fsProvider.delete(o),r._proxy.$unregisterProvider(o)}}},e._asIStat=function(e){return{type:e.type,ctime:e.ctime,mtime:e.mtime,size:e.size}},e.prototype.$stat=function(t,r){var i=this;return o.asWinJsPromise(function(){return i._fsProvider.get(t).stat(n.default.revive(r))}).then(e._asIStat)},e.prototype.$readdir=function(e,t){var r=this;return o.asWinJsPromise(function(){
return r._fsProvider.get(e).readDirectory(n.default.revive(t))})},e.prototype.$readFile=function(e,t){var r=this;return o.asWinJsPromise(function(){return r._fsProvider.get(e).readFile(n.default.revive(t))}).then(function(e){return Buffer.isBuffer(e)?e.toString("base64"):Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("base64")})},e.prototype.$writeFile=function(e,t,r,i){var s=this;return o.asWinJsPromise(function(){return s._fsProvider.get(e).writeFile(n.default.revive(t),Buffer.from(r,"base64"),i)})},e.prototype.$delete=function(e,t,r){var i=this;return o.asWinJsPromise(function(){return i._fsProvider.get(e).delete(n.default.revive(t),r)})},e.prototype.$rename=function(e,t,r,i){var s=this;return o.asWinJsPromise(function(){return s._fsProvider.get(e).rename(n.default.revive(t),n.default.revive(r),i)})},e.prototype.$copy=function(e,t,r,i){var s=this;return o.asWinJsPromise(function(){return s._fsProvider.get(e).copy(n.default.revive(t),n.default.revive(r),i)})},e.prototype.$mkdir=function(e,t){
var r=this;return o.asWinJsPromise(function(){return r._fsProvider.get(e).createDirectory(n.default.revive(t))})},e.prototype.$watch=function(e,t,r,i){var s=this;o.asWinJsPromise(function(){var o=s._fsProvider.get(e).watch(n.default.revive(r),i);s._watches.set(t,o)})},e.prototype.$unwatch=function(e){var t=this._watches.get(e);t&&(t.dispose(),this._watches.delete(e))},e}();t.ExtHostFileSystem=l}),define(e[180],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._proxy=e.getProxy(n.MainContext.MainThreadLanguages)}return e.prototype.getLanguages=function(){return this._proxy.$getLanguages()},e}();t.ExtHostLanguages=r}),define(e[181],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._proxy=e.getProxy(n.MainContext.MainThreadMessageService)}return e.prototype.showMessage=function(e,t,n,r,i){var o,s={extension:e};"string"==typeof r||function(e){return e&&e.title
}(r)?o=[r].concat(i):(s.modal=r&&r.modal,o=i);for(var a=[],u=0;u<o.length;u++){var c=o[u];if("string"==typeof c)a.push({title:c,handle:u,isCloseAffordance:!1});else if("object"==typeof c){var l=c.title,f=c.isCloseAffordance;a.push({title:l,isCloseAffordance:f,handle:u})}else console.warn("Invalid message item:",c)}return this._proxy.$showMessage(t,n,s,a).then(function(e){if("number"==typeof e)return o[e]})},e}();t.ExtHostMessageService=r}),define(e[182],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(t,n){this._name=t,this._id="extension-output-#"+e._idPool++,this._proxy=n}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){var e=this;this._disposed||this._proxy.$dispose(this._id,this._name).then(function(){e._disposed=!0})},e.prototype.append=function(e){this.validate(),this._proxy.$append(this._id,this._name,e)},e.prototype.appendLine=function(e){
this.validate(),this.append(e+"\n")},e.prototype.clear=function(){this.validate(),this._proxy.$clear(this._id,this._name)},e.prototype.show=function(e,t){this.validate(),"boolean"==typeof e&&(t=e),this._proxy.$reveal(this._id,this._name,t)},e.prototype.hide=function(){this.validate(),this._proxy.$close(this._id)},e.prototype.validate=function(){if(this._disposed)throw new Error("Channel has been closed")},e._idPool=1,e}();t.ExtHostOutputChannel=r;var i=function(){function e(e){this._proxy=e.getProxy(n.MainContext.MainThreadOutputService)}return e.prototype.createOutputChannel=function(e){if(e=e.trim())return new r(e,this._proxy);throw new Error("illegal argument `name`. must not be falsy")},e}();t.ExtHostOutputService=i}),define(e[183],t([0,1,15,29,4,11,2,5,3,10]),function(e,t,r,i,o,s,a,u,c,l){"use strict";function f(e){var t=function(e){if(e&&!(e instanceof l.ThemeIcon))return d("string"==typeof e||e instanceof c.default?e:e.light);return}(e);return{dark:function(e){
if(e&&!(e instanceof l.ThemeIcon)&&e.dark)return d(e.dark);return}(e)||t,light:t}}function d(e){return e instanceof c.default?e:c.default.file(e)}Object.defineProperty(t,"__esModule",{value:!0});var h={iconPath:"back.svg"},p=function(){function e(e,t,n){this._sessions=new Map,this.backButton=h,this._proxy=e.getProxy(u.MainContext.MainThreadQuickOpen),this._workspace=t,this._commands=n}return e.prototype.showQuickPick=function(e,t,n){var o=this;void 0===n&&(n=i.CancellationToken.None),this._onDidSelectItem=void 0;var s=a.TPromise.wrap(e),u=this._proxy.$show({placeHolder:t&&t.placeHolder,matchOnDescription:t&&t.matchOnDescription,matchOnDetail:t&&t.matchOnDetail,ignoreFocusLost:t&&t.ignoreFocusOut,canPickMany:t&&t.canPickMany}),c=a.TPromise.any([u,s]).then(function(e){if("0"!==e.key)return s.then(function(e){for(var n=[],r=0;r<e.length;r++){var i=e[r],s=void 0,a=void 0,c=void 0,l=void 0;"string"==typeof i?s=i:(s=i.label,a=i.description,c=i.detail,l=i.picked),n.push({label:s,description:a,handle:r,detail:c,
picked:l})}return t&&"function"==typeof t.onDidSelectItem&&(o._onDidSelectItem=function(n){t.onDidSelectItem(e[n])}),o._proxy.$setItems(n),u.then(function(t){return"number"==typeof t?e[t]:Array.isArray(t)?t.map(function(t){return e[t]}):void 0})},function(e){return o._proxy.$setError(e),a.TPromise.wrapError(e)})});return r.wireCancellationToken(n,c,!0)},e.prototype.$onItemSelected=function(e){this._onDidSelectItem&&this._onDidSelectItem(e)},e.prototype.showInput=function(e,t){void 0===t&&(t=i.CancellationToken.None),this._validateInput=e&&e.validateInput;var n=this._proxy.$input(e,"function"==typeof this._validateInput);return r.wireCancellationToken(t,n,!0)},e.prototype.$validateInput=function(e){var t=this;if(this._validateInput)return r.asWinJsPromise(function(n){return t._validateInput(e)})},e.prototype.showWorkspaceFolderPick=function(e,t){var n=this;return void 0===t&&(t=i.CancellationToken.None),this._commands.executeCommand("_workbench.pickWorkspaceFolder",[e]).then(function(e){
if(e)return n._workspace.getWorkspaceFolders().filter(function(t){return t.uri.toString()===e.uri.toString()})[0]})},e.prototype.createQuickPick=function(e){var t=this,n=new m(this._proxy,e,function(){return t._sessions.delete(n._id)});return this._sessions.set(n._id,n),n},e.prototype.createInputBox=function(e){var t=this,n=new v(this._proxy,e,function(){return t._sessions.delete(n._id)});return this._sessions.set(n._id,n),n},e.prototype.$onDidChangeValue=function(e,t){var n=this._sessions.get(e);n&&n._fireDidChangeValue(t)},e.prototype.$onDidAccept=function(e){var t=this._sessions.get(e);t&&t._fireDidAccept()},e.prototype.$onDidChangeActive=function(e,t){var n=this._sessions.get(e);n instanceof m&&n._fireDidChangeActive(t)},e.prototype.$onDidChangeSelection=function(e,t){var n=this._sessions.get(e);n instanceof m&&n._fireDidChangeSelection(t)},e.prototype.$onDidTriggerButton=function(e,t){var n=this._sessions.get(e);n&&n._fireDidTriggerButton(t)},e.prototype.$onDidHide=function(e){var t=this._sessions.get(e)
;t&&t._fireDidHide()},e}();t.ExtHostQuickOpen=p;var g=function(){function e(e,t,n){this._proxy=e,this._extensionId=t,this._onDidDispose=n,this._id=m._nextId++,this._visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!0,this._value="",this._buttons=[],this._handlesToButtons=new Map,this._onDidAcceptEmitter=new o.Emitter,this._onDidChangeValueEmitter=new o.Emitter,this._onDidTriggerButtonEmitter=new o.Emitter,this._onDidHideEmitter=new o.Emitter,this._pendingUpdate={id:this._id},this._disposed=!1,this._disposables=[this._onDidTriggerButtonEmitter,this._onDidHideEmitter,this._onDidAcceptEmitter,this._onDidChangeValueEmitter],this.onDidChangeValue=this._onDidChangeValueEmitter.event,this.onDidAccept=this._onDidAcceptEmitter.event,this.onDidTriggerButton=this._onDidTriggerButtonEmitter.event,this.onDidHide=this._onDidHideEmitter.event}return Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e,this.update({title:e})},enumerable:!0,configurable:!0
}),Object.defineProperty(e.prototype,"step",{get:function(){return this._steps},set:function(e){this._steps=e,this.update({step:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalSteps",{get:function(){return this._totalSteps},set:function(e){this._totalSteps=e,this.update({totalSteps:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this.update({enabled:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"busy",{get:function(){return this._busy},set:function(e){this._busy=e,this.update({busy:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreFocusOut",{get:function(){return this._ignoreFocusOut},set:function(e){this._ignoreFocusOut=e,this.update({ignoreFocusOut:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.update({value:e})},
enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._placeholder=e,this.update({placeholder:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buttons",{get:function(){return this._buttons},set:function(e){var t=this;this._buttons=e.slice(),this._handlesToButtons.clear(),e.forEach(function(e,n){var r=e===h?-1:n;t._handlesToButtons.set(r,e)}),this.update({buttons:e.map(function(e,t){return{iconPath:f(e.iconPath),tooltip:e.tooltip,handle:e===h?-1:t}})})},enumerable:!0,configurable:!0}),e.prototype.show=function(){this._visible=!0,this.update({visible:!0})},e.prototype.hide=function(){this._visible=!1,this.update({visible:!1})},e.prototype._fireDidAccept=function(){this._onDidAcceptEmitter.fire()},e.prototype._fireDidChangeValue=function(e){this._value=e,this._onDidChangeValueEmitter.fire(e)},e.prototype._fireDidTriggerButton=function(e){var t=this._handlesToButtons.get(e)
;this._onDidTriggerButtonEmitter.fire(t)},e.prototype._fireDidHide=function(){this._onDidHideEmitter.fire()},e.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._fireDidHide(),this._disposables=s.dispose(this._disposables),this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=void 0),this._onDidDispose(),this._proxy.$dispose(this._id))},e.prototype.update=function(e){var t=this;if(!this._disposed){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],o=e[i];this._pendingUpdate[i]=void 0===o?null:o}"visible"in this._pendingUpdate?(this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=void 0),this.dispatchUpdate()):this._visible&&!this._updateTimeout&&(this._updateTimeout=setTimeout(function(){t._updateTimeout=void 0,t.dispatchUpdate()},0))}},e.prototype.dispatchUpdate=function(){this._proxy.$createOrUpdate(this._pendingUpdate),this._pendingUpdate={id:this._id}},e._nextId=1,e}(),m=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this
;return i._items=[],i._handlesToItems=new Map,i._itemsToHandles=new Map,i._canSelectMany=!1,i._matchOnDescription=!0,i._matchOnDetail=!0,i._activeItems=[],i._onDidChangeActiveEmitter=new o.Emitter,i._selectedItems=[],i._onDidChangeSelectionEmitter=new o.Emitter,i.onDidChangeActive=i._onDidChangeActiveEmitter.event,i.onDidChangeSelection=i._onDidChangeSelectionEmitter.event,i._disposables.push(i._onDidChangeActiveEmitter,i._onDidChangeSelectionEmitter),i.update({type:"quickPick"}),i}return n(t,e),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},set:function(e){var t=this;this._items=e.slice(),this._handlesToItems.clear(),this._itemsToHandles.clear(),e.forEach(function(e,n){t._handlesToItems.set(n,e),t._itemsToHandles.set(e,n)}),this.update({items:e.map(function(e,t){return{label:e.label,description:e.description,handle:t,detail:e.detail,picked:e.picked}})})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canSelectMany",{get:function(){return this._canSelectMany
},set:function(e){this._canSelectMany=e,this.update({canSelectMany:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchOnDescription",{get:function(){return this._matchOnDescription},set:function(e){this._matchOnDescription=e,this.update({matchOnDescription:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchOnDetail",{get:function(){return this._matchOnDetail},set:function(e){this._matchOnDetail=e,this.update({matchOnDetail:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItems",{get:function(){return this._activeItems},set:function(e){var t=this;this._activeItems=e.filter(function(e){return t._itemsToHandles.has(e)}),this.update({activeItems:this._activeItems.map(function(e){return t._itemsToHandles.get(e)})})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this._selectedItems},set:function(e){var t=this;this._selectedItems=e.filter(function(e){
return t._itemsToHandles.has(e)}),this.update({selectedItems:this._selectedItems.map(function(e){return t._itemsToHandles.get(e)})})},enumerable:!0,configurable:!0}),t.prototype._fireDidChangeActive=function(e){var t=this,n=e.map(function(e){return t._handlesToItems.get(e)});this._activeItems=n,this._onDidChangeActiveEmitter.fire(n)},t.prototype._fireDidChangeSelection=function(e){var t=this,n=e.map(function(e){return t._handlesToItems.get(e)});this._selectedItems=n,this._onDidChangeSelectionEmitter.fire(n)},t}(g),v=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.update({type:"inputBox"}),i}return n(t,e),Object.defineProperty(t.prototype,"password",{get:function(){return this._password},set:function(e){this._password=e,this.update({password:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prompt",{get:function(){return this._prompt},set:function(e){this._prompt=e,this.update({prompt:e})},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"validationMessage",{get:function(){return this._validationMessage},set:function(e){this._validationMessage=e,this.update({validationMessage:e})},enumerable:!0,configurable:!0}),t}(g)}),define(e[184],t([0,1,3,2,4,50,11,15,5,12,76,39]),function(e,t,n,r,s,c,l,f,d,h,p,g){"use strict";function m(e){if(e)return"string"==typeof e.iconPath?n.default.file(e.iconPath).toString():e.iconPath?""+e.iconPath:void 0}function v(e,t){if(!e.iconPath&&!t.iconPath)return 0;if(!e.iconPath)return-1;if(!t.iconPath)return 1;var n="string"==typeof e.iconPath?e.iconPath:e.iconPath.fsPath,r="string"==typeof t.iconPath?t.iconPath:t.iconPath.fsPath;return p.comparePaths(n,r)}function _(e,t){var n=p.comparePaths(e.resourceUri.fsPath,t.resourceUri.fsPath,!0);if(0!==n)return n;if(e.decorations&&t.decorations)n=function(e,t){var n=0;if(e.strikeThrough!==t.strikeThrough)return e.strikeThrough?1:-1;if(e.faded!==t.faded)return e.faded?1:-1;if(e.tooltip!==t.tooltip)return(e.tooltip||"").localeCompare(t.tooltip)
;if(0!==(n=v(e,t)))return n;if(e.light&&t.light)n=v(e.light,t.light);else{if(e.light)return 1;if(t.light)return-1}if(0!==n)return n;if(e.dark&&t.dark)n=v(e.dark,t.dark);else{if(e.dark)return 1;if(t.dark)return-1}return n}(e.decorations,t.decorations);else{if(e.decorations)return 1;if(t.decorations)return-1}return n}Object.defineProperty(t,"__esModule",{value:!0});var y=function(){function e(e,t,n){this._extension=e,this._proxy=t,this._sourceControlHandle=n,this._value="",this._onDidChange=new s.Emitter,this._placeholder=""}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._proxy.$setInputBoxValue(this._sourceControlHandle,e),this.updateValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){
this._proxy.$setInputBoxPlaceholder(this._sourceControlHandle,e),this._placeholder=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validateInput",{get:function(){if(!this._extension.enableProposedApi)throw new Error("["+this._extension.id+"]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api "+this._extension.id);return this._validateInput},set:function(e){if(!this._extension.enableProposedApi)throw new Error("["+this._extension.id+"]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api "+this._extension.id);e&&"function"!=typeof e?console.warn("Invalid SCM input box validation function"):(this._validateInput=e,this._proxy.$setValidationProviderIsEnabled(this._sourceControlHandle,!!e))},enumerable:!0,configurable:!0}),e.prototype.$onInputBoxValueChange=function(e){this.updateValue(e)},e.prototype.updateValue=function(e){this._value=e,
this._onDidChange.fire(e)},e}();t.ExtHostSCMInputBox=y;var b=function(){function e(t,n,r,i,o){this._proxy=t,this._commands=n,this._sourceControlHandle=r,this._id=i,this._label=o,this._resourceHandlePool=0,this._resourceStates=[],this._resourceStatesMap=new Map,this._resourceStatesCommandsMap=new Map,this._onDidUpdateResourceStates=new s.Emitter,this.onDidUpdateResourceStates=this._onDidUpdateResourceStates.event,this._onDidDispose=new s.Emitter,this.onDidDispose=this._onDidDispose.event,this._handlesSnapshot=[],this._resourceSnapshot=[],this._hideWhenEmpty=void 0,this.handle=e._handlePool++,this._disposables=[],this._proxy.$registerGroup(r,this.handle,i,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._label=e,this._proxy.$updateGroupLabel(this._sourceControlHandle,this.handle,e)},enumerable:!0,configurable:!0}),
Object.defineProperty(e.prototype,"hideWhenEmpty",{get:function(){return this._hideWhenEmpty},set:function(e){this._hideWhenEmpty=e,this._proxy.$updateGroup(this._sourceControlHandle,this.handle,{hideWhenEmpty:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resourceStates",{get:function(){return this._resourceStates.slice()},set:function(e){this._resourceStates=e.slice(),this._onDidUpdateResourceStates.fire()},enumerable:!0,configurable:!0}),e.prototype.getResourceState=function(e){return this._resourceStatesMap.get(e)},e.prototype.$executeResourceCommand=function(e){return i(this,void 0,r.TPromise,function(){var t,n;return o(this,function(r){switch(r.label){case 0:return(n=this._resourceStatesCommandsMap.get(e))?[4,(t=this._commands).executeCommand.apply(t,[n.command].concat(n.arguments))]:[2];case 1:return r.sent(),[2]}})})},e.prototype._takeResourceStateSnapshot=function(){
for(var e,t=this,n=this._resourceStates.slice().sort(_),r=h.sortedDiff(this._resourceSnapshot,n,_).map(function(e){var n=e.toInsert.map(function(e){var n=t._resourceHandlePool++;t._resourceStatesMap.set(n,e);var r=e.resourceUri,i=m(e.decorations),o=e.decorations&&m(e.decorations.light)||i,s=e.decorations&&m(e.decorations.dark)||i,a=[];e.command&&t._resourceStatesCommandsMap.set(n,e.command),(o||s)&&a.push(o),s!==o&&a.push(s);return{rawResource:[n,r,a,e.decorations&&e.decorations.tooltip||"",e.decorations&&!!e.decorations.strikeThrough,e.decorations&&!!e.decorations.faded,e.decorations&&e.decorations.source||void 0,e.decorations&&e.decorations.letter||void 0,e.decorations&&e.decorations.color||void 0],handle:n}});return{start:e.start,deleteCount:e.deleteCount,toInsert:n}}),i=r.map(function(e){return[e.start,e.deleteCount,e.toInsert.map(function(e){return e.rawResource})]}),o=0,s=r.reverse();o<s.length;o++)for(var a=s[o],u=a.start,c=a.deleteCount,l=a.toInsert.map(function(e){return e.handle
}),f=0,d=(e=this._handlesSnapshot).splice.apply(e,[u,c].concat(l));f<d.length;f++){var p=d[f];this._resourceStatesMap.delete(p),this._resourceStatesCommandsMap.delete(p)}return this._resourceSnapshot=n,i},e.prototype.dispose=function(){this._proxy.$unregisterGroup(this._sourceControlHandle,this.handle),this._disposables=l.dispose(this._disposables),this._onDidDispose.fire()},e._handlePool=0,e}(),C=function(){function e(t,n,r,i,o,s){this._proxy=n,this._commands=r,this._id=i,this._label=o,this._rootUri=s,this._groups=new Map,this._count=void 0,this._quickDiffProvider=void 0,this._commitTemplate=void 0,this._acceptInputCommand=void 0,this._statusBarCommands=void 0,this.handle=e._handlePool++,this.updatedResourceGroups=new Set,this._inputBox=new y(t,this._proxy,this.handle),this._proxy.$registerSourceControl(this.handle,i,o,s)}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},
enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootUri",{get:function(){return this._rootUri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputBox",{get:function(){return this._inputBox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._count},set:function(e){this._count=e,this._proxy.$updateSourceControl(this.handle,{count:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"quickDiffProvider",{get:function(){return this._quickDiffProvider},set:function(e){this._quickDiffProvider=e,this._proxy.$updateSourceControl(this.handle,{hasQuickDiffProvider:!!e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"commitTemplate",{get:function(){return this._commitTemplate},set:function(e){this._commitTemplate=e,this._proxy.$updateSourceControl(this.handle,{commitTemplate:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"acceptInputCommand",{get:function(){
return this._acceptInputCommand},set:function(e){this._acceptInputCommand=e;var t=this._commands.converter.toInternal(e);this._proxy.$updateSourceControl(this.handle,{acceptInputCommand:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusBarCommands",{get:function(){return this._statusBarCommands},set:function(e){var t=this;this._statusBarCommands=e;var n=(e||[]).map(function(e){return t._commands.converter.toInternal(e)});this._proxy.$updateSourceControl(this.handle,{statusBarCommands:n})},enumerable:!0,configurable:!0}),e.prototype.createResourceGroup=function(e,t){var n=this,r=new b(this._proxy,this._commands,this.handle,e,t),i=r.onDidUpdateResourceStates(function(){n.updatedResourceGroups.add(r),n.eventuallyUpdateResourceStates()});return s.once(r.onDidDispose)(function(){n.updatedResourceGroups.delete(r),i.dispose(),n._groups.delete(r.handle)}),this._groups.set(r.handle,r),r},e.prototype.eventuallyUpdateResourceStates=function(){var e=[]
;this.updatedResourceGroups.forEach(function(t){var n=t._takeResourceStateSnapshot();0!==n.length&&e.push([t.handle,n])}),e.length>0&&this._proxy.$spliceResourceStates(this.handle,e),this.updatedResourceGroups.clear()},e.prototype.getResourceGroup=function(e){return this._groups.get(e)},e.prototype.dispose=function(){this._groups.forEach(function(e){return e.dispose()}),this._proxy.$unregisterSourceControl(this.handle)},e._handlePool=0,a([c.debounce(100)],e.prototype,"eventuallyUpdateResourceStates",null),e}(),E=function(){function e(e,t,n){var r=this;this._commands=t,this.logService=n,this._sourceControls=new Map,this._sourceControlsByExtension=new Map,this._onDidChangeActiveProvider=new s.Emitter,this._proxy=e.getProxy(d.MainContext.MainThreadSCM),t.registerArgumentProcessor({processArgument:function(e){if(e&&3===e.$mid){if(!(n=r._sourceControls.get(e.sourceControlHandle)))return e;var t=n.getResourceGroup(e.groupHandle);return t?t.getResourceState(e.handle):e}if(e&&4===e.$mid){
return(n=r._sourceControls.get(e.sourceControlHandle))?n.getResourceGroup(e.groupHandle):e}if(e&&5===e.$mid){var n=r._sourceControls.get(e.handle);return n||e}return e}})}return Object.defineProperty(e.prototype,"onDidChangeActiveProvider",{get:function(){return this._onDidChangeActiveProvider.event},enumerable:!0,configurable:!0}),e.prototype.createSourceControl=function(t,n,r,i){this.logService.trace("ExtHostSCM#createSourceControl",t.id,n,r,i);var o=e._handlePool++,s=new C(t,this._proxy,this._commands,n,r,i);this._sourceControls.set(o,s);var a=this._sourceControlsByExtension.get(t.id)||[];return a.push(s),this._sourceControlsByExtension.set(t.id,a),s},e.prototype.getLastInputBox=function(e){this.logService.trace("ExtHostSCM#getLastInputBox",e.id);var t=this._sourceControlsByExtension.get(e.id),n=t&&t[t.length-1];return n&&n.inputBox},e.prototype.$provideOriginalResource=function(e,t){var i=n.default.revive(t);this.logService.trace("ExtHostSCM#$provideOriginalResource",e,i.toString())
;var o=this._sourceControls.get(e);return o&&o.quickDiffProvider?f.asWinJsPromise(function(e){return o.quickDiffProvider.provideOriginalResource(i,e)}):r.TPromise.as(null)},e.prototype.$onInputBoxValueChange=function(e,t){this.logService.trace("ExtHostSCM#$onInputBoxValueChange",e);var n=this._sourceControls.get(e);return n?(n.inputBox.$onInputBoxValueChange(t),r.TPromise.as(null)):r.TPromise.as(null)},e.prototype.$executeResourceCommand=function(e,t,n){return i(this,void 0,r.TPromise,function(){var r,i;return o(this,function(o){switch(o.label){case 0:return this.logService.trace("ExtHostSCM#$executeResourceCommand",e,t,n),(r=this._sourceControls.get(e))?(i=r.getResourceGroup(t))?[4,i.$executeResourceCommand(n)]:[2]:[2];case 1:return o.sent(),[2]}})})},e.prototype.$validateInput=function(e,t,n){return i(this,void 0,r.TPromise,function(){var i,s;return o(this,function(o){switch(o.label){case 0:return this.logService.trace("ExtHostSCM#$validateInput",e),
(i=this._sourceControls.get(e))&&i.inputBox.validateInput?[4,i.inputBox.validateInput(t,n)]:[2,r.TPromise.as(void 0)];case 1:return(s=o.sent())?[2,[s.message,s.type]]:[2,r.TPromise.as(void 0)]}})})},e._handlePool=0,e=a([u(2,g.ILogService)],e)}();t.ExtHostSCM=E}),define(e[185],t([0,1,33,54,21,12,90,32,7,3,2,116,5,29,30]),function(e,t,n,r,i,o,a,u,c,l,f,d,h,p,g){"use strict";function m(e,t){var n=s({},e||{},t||{});return Object.keys(n).filter(function(e){var t=n[e];return"boolean"==typeof t&&t})}function v(e){return s({},e,{folderQueries:e.folderQueries&&e.folderQueries.map(_),extraFileResources:e.extraFileResources&&e.extraFileResources.map(function(e){return l.default.revive(e)})})}function _(e){return s({},e,{folder:l.default.revive(e.folder)})}Object.defineProperty(t,"__esModule",{value:!0});var y=function(){function e(e,t,i,o){void 0===i&&(i=r),void 0===o&&(o=n);var s=this;this._schemeTransformer=t,this._extfs=i,this._pfs=o,this._searchProvider=new Map,this._handlePool=0,
this._proxy=e.getProxy(h.MainContext.MainThreadSearch),this._fileSearchManager=new w(function(e,t){return s._proxy.$handleTelemetry(e,t)},this._pfs)}return e.prototype._transformScheme=function(e){return this._schemeTransformer?this._schemeTransformer.transformOutgoing(e):e},e.prototype.registerSearchProvider=function(e,t){var n=this,r=this._handlePool++;return this._searchProvider.set(r,t),this._proxy.$registerSearchProvider(r,this._transformScheme(e)),{dispose:function(){n._searchProvider.delete(r),n._proxy.$unregisterProvider(r)}}},e.prototype.$provideFileSearchResults=function(e,t,n){var r=this,i=this._searchProvider.get(e);if(!i.provideFileSearchResults)return f.TPromise.as(void 0);var o=v(n);return this._fileSearchManager.fileSearch(o,i).then(null,null,function(n){Array.isArray(n)?n.forEach(function(n){r._proxy.$handleFindMatch(e,t,n.resource)}):r._proxy.$handleFindMatch(e,t,n.resource)})},e.prototype.$provideTextSearchResults=function(e,t,n,r){var i=this,o=this._searchProvider.get(e)
;if(!o.provideTextSearchResults)return f.TPromise.as(void 0);var s=v(r);return new S(n,s,o,this._extfs).search().then(null,null,function(n){i._proxy.$handleFindMatch(e,t,n)})},e}();t.ExtHostSearch=y;var b=function(){function e(e,t){var n=this;this.folderQueries=e,this._onResult=t,this._batchedCollector=new C(512,function(e){return n.sendItems(e)})}return e.prototype.add=function(e,t){if(!this._currentFileMatch||this._currentFolderIdx===t&&this._currentRelativePath===e.path||(this.pushToCollector(),this._currentFileMatch=null),!this._currentFileMatch){var n=g.joinPath(this.folderQueries[t].folder,e.path);this._currentFileMatch={resource:n,lineMatches:[]}}var r=e.preview.match;this._currentFileMatch.lineMatches.push({lineNumber:e.range.start.line,preview:e.preview.text,offsetAndLengths:[[r.start.character,r.end.character-r.start.character]]})},e.prototype.pushToCollector=function(){var e=this._currentFileMatch?this._currentFileMatch.lineMatches.reduce(function(e,t){return e+t.offsetAndLengths.length},0):0
;this._batchedCollector.addItem(this._currentFileMatch,e)},e.prototype.flush=function(){this.pushToCollector(),this._batchedCollector.flush()},e.prototype.sendItems=function(e){this._onResult(Array.isArray(e)?e:[e])},e}(),C=function(){function e(e,t){this.maxBatchSize=e,this.cb=t,this.totalNumberCompleted=0,this.batch=[],this.batchSize=0}return e.prototype.addItem=function(e,t){e&&(this.maxBatchSize>0?this.addItemToBatch(e,t):this.cb(e))},e.prototype.addItems=function(e,t){e&&(this.maxBatchSize>0?this.addItemsToBatch(e,t):this.cb(e))},e.prototype.addItemToBatch=function(e,t){this.batch.push(e),this.batchSize+=t,this.onUpdate()},e.prototype.addItemsToBatch=function(e,t){this.batch=this.batch.concat(e),this.batchSize+=t,this.onUpdate()},e.prototype.onUpdate=function(){var t=this;this.totalNumberCompleted<e.START_BATCH_AFTER_COUNT?this.flush():this.batchSize>=this.maxBatchSize?this.flush():this.timeoutHandle||(this.timeoutHandle=setTimeout(function(){t.flush()},e.TIMEOUT))},e.prototype.flush=function(){
this.batchSize&&(this.totalNumberCompleted+=this.batchSize,this.cb(this.batch),this.batch=[],this.batchSize=0,this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=0))},e.TIMEOUT=4e3,e.START_BATCH_AFTER_COUNT=50,e}(),E=function(){function e(e,t){this._excludeExpression=s({},e.excludePattern||{},t.excludePattern||{}),this._parsedExcludeExpression=u.parse(this._excludeExpression);var n=e.includePattern;t.includePattern&&(n=n?s({},n,t.includePattern):t.includePattern),n&&(this._parsedIncludeExpression=u.parse(n))}return e.prototype.includedInQuerySync=function(e,t,n){return(!this._parsedExcludeExpression||!this._parsedExcludeExpression(e,t,n))&&!(this._parsedIncludeExpression&&!this._parsedIncludeExpression(e,t,n))},e.prototype.includedInQuery=function(e,t,n){var r=this;return(this._parsedExcludeExpression?f.TPromise.as(this._parsedExcludeExpression(e,t,n)).then(function(e){return!!e}):f.TPromise.wrap(!1)).then(function(i){
return!i&&(r._parsedIncludeExpression?f.TPromise.as(r._parsedIncludeExpression(e,t,n)).then(function(e){return!!e}):f.TPromise.wrap(!0))}).then(function(e){return e})},e.prototype.hasSiblingExcludeClauses=function(){return function(e){for(var t in e)if("boolean"!=typeof e[t])return!0;return!1}(this._excludeExpression)},e}(),S=function(){function e(e,t,n,r){this.pattern=e,this.config=t,this.provider=n,this._extfs=r,this.activeCancellationTokens=new Set,this.resultCount=0}return e.prototype.cancel=function(){this.isCanceled=!0,this.activeCancellationTokens.forEach(function(e){return e.cancel()}),this.activeCancellationTokens=new Set},e.prototype.search=function(){var e=this,t=this.config.folderQueries;return new f.PPromise(function(n,r,i){e.collector=new b(e.config.folderQueries,i);f.PPromise.join(t.map(function(t,n){return e.searchInFolder(t).then(null,null,function(t){return function(t,n){e.isCanceled||(e.resultCount>=e.config.maxResults&&(e.isLimitHit=!0,e.cancel()),e.isLimitHit||(e.resultCount++,
e.collector.add(t,n)))}(t,n)})})).then(function(){e.collector.flush(),n({limitHit:e.isLimitHit})},function(e){var t=e.map(function(e){return a.toErrorMessage(e)}).filter(function(e){return!!e})[0];r(new Error(t))})})},e.prototype.searchInFolder=function(e){var t=this,n=new p.CancellationTokenSource;return new f.PPromise(function(r,o,s){var a=new E(t.config,e),u=[],c={report:function(n){var r="file"===e.folder.scheme&&function(){return t.readdir(i.dirname(i.join(e.folder.fsPath,n.path)))};u.push(a.includedInQuery(n.path,i.basename(n.path),r).then(function(e){e&&s(n)}))}},l=t.getSearchOptionsForFolder(e);new f.TPromise(function(e){return process.nextTick(e)}).then(function(){return t.activeCancellationTokens.add(n),t.provider.provideTextSearchResults(function(e){return{isCaseSensitive:e.isCaseSensitive||!1,isRegExp:e.isRegExp||!1,isWordMatch:e.isWordMatch||!1,pattern:e.pattern}}(t.pattern),l,c,n.token)}).then(function(){return t.activeCancellationTokens.delete(n),f.TPromise.join(u)}).then(function(){
n.dispose(),r(null)},function(e){n.dispose(),o(e)})})},e.prototype.readdir=function(e){var t=this;return new f.TPromise(function(n,r){t._extfs.readdir(e,function(e,t){if(e)return r(e);n(t)})})},e.prototype.getSearchOptionsForFolder=function(e){var t=m(this.config.includePattern,e.includePattern),n=m(this.config.excludePattern,e.excludePattern);return{folder:l.default.from(e.folder),excludes:n,includes:t,useIgnoreFiles:!this.config.disregardIgnoreFiles,followSymlinks:!this.config.ignoreSymlinks,encoding:this.config.fileEncoding,maxFileSize:this.config.maxFileSize}},e}(),x=function(){function e(e,t,n){this.config=e,this.provider=t,this._pfs=n,this.filePattern=e.filePattern,this.includePattern=e.includePattern&&u.parse(e.includePattern),this.maxResults=e.maxResults||null,this.exists=e.exists,this.resultCount=0,this.isLimitHit=!1,this.activeCancellationTokens=new Set,this.filePattern&&(this.normalizedFilePatternLowercase=c.stripWildcards(this.filePattern).toLowerCase()),
this.globalExcludePattern=e.excludePattern&&u.parse(e.excludePattern)}return e.prototype.cancel=function(){this.isCanceled=!0,this.activeCancellationTokens.forEach(function(e){return e.cancel()}),this.activeCancellationTokens=new Set},e.prototype.search=function(){var e=this,t=this.config.folderQueries;return new f.PPromise(function(n,r,o){var s=function(t){e.resultCount++,o(t)};e.checkFilePatternAbsoluteMatch().then(function(o){var u=o.exists,c=o.size;return e.isCanceled?n({isLimitHit:e.isLimitHit}):u?(s({base:l.default.file(e.filePattern),basename:i.basename(e.filePattern),size:c}),n({isLimitHit:e.isLimitHit})):(e.config.extraFileResources&&e.config.extraFileResources.forEach(function(t){var n=t.toString(),r=i.basename(n);e.globalExcludePattern&&e.globalExcludePattern(n,r)||e.matchFile(s,{base:t,basename:r})}),void f.PPromise.join(t.map(function(t){return e.searchInFolder(t).then(null,null,s)})).then(function(){n({isLimitHit:e.isLimitHit})},function(e){var t=e.map(function(e){return a.toErrorMessage(e)
}).filter(function(e){return!!e})[0];r(new Error(t))}))})})},e.prototype.searchInFolder=function(e){var t=this,n=new p.CancellationTokenSource;return new f.PPromise(function(r,o,s){var a=t.getSearchOptionsForFolder(e),u=!1,c=t.initDirectoryTree(),l=new E(t.config,e),d=!l.hasSiblingExcludeClauses(),h=function(n){if(!t.isCanceled)if(d){n===t.filePattern&&(u=!0);var r=i.basename(n);t.matchFile(s,{base:e.folder,relativePath:n,basename:r})}else t.addDirectoryEntries(c,e.folder,n,s)};new f.TPromise(function(e){return process.nextTick(e)}).then(function(){return t.activeCancellationTokens.add(n),t.provider.provideFileSearchResults(a,{report:h},n.token)}).then(function(){return t.activeCancellationTokens.delete(n),t.isCanceled?null:d&&t.isLimitHit&&!u?t.checkFilePatternRelativeMatch(e.folder).then(function(n){var r=n.exists;n.size;r&&s({base:e.folder,relativePath:t.filePattern,basename:i.basename(t.filePattern)})}):(t.matchDirectoryTree(c,l,s),null)}).then(function(){n.dispose(),r(void 0)},function(e){n.dispose(),
o(e)})})},e.prototype.getSearchOptionsForFolder=function(e){var t=m(this.config.includePattern,e.includePattern),n=m(this.config.excludePattern,e.excludePattern);return{folder:e.folder,excludes:n,includes:t,useIgnoreFiles:!this.config.disregardIgnoreFiles,followSymlinks:!this.config.ignoreSymlinks}},e.prototype.initDirectoryTree=function(){var e={rootEntries:[],pathToEntries:Object.create(null)};return e.pathToEntries["."]=e.rootEntries,e},e.prototype.addDirectoryEntries=function(e,t,n,r){function o(e){var n=i.basename(e),r=i.dirname(e),a=s[r];a||(a=s[r]=[],o(r)),a.push({base:t,relativePath:e,basename:n})}var s=e.pathToEntries;if(n===this.filePattern){var a=i.basename(this.filePattern);this.matchFile(r,{base:t,relativePath:this.filePattern,basename:a})}o(n)},e.prototype.matchDirectoryTree=function(e,t,n){function r(e){for(var i=function(i,u){var c=e[i],l=c.relativePath,f=c.basename;if(!t.includedInQuerySync(l,f,function(){return a!==f?e.map(function(e){return e.basename}):[]}))return"continue";var d=o[l]
;if(d)r(d);else{if(l===a)return"continue";s.matchFile(n,c)}return s.isLimitHit?"break":void 0},u=0,c=e.length;u<c;u++){if("break"===i(u))break}}var i=e.rootEntries,o=e.pathToEntries,s=this,a=this.filePattern;r(i)},e.prototype.getStats=function(){return null},e.prototype.checkFilePatternAbsoluteMatch=function(){return this.filePattern&&i.isAbsolute(this.filePattern)?this._pfs.stat(this.filePattern).then(function(e){return{exists:!e.isDirectory(),size:e.size}},function(e){return{exists:!1}}):f.TPromise.wrap({exists:!1})},e.prototype.checkFilePatternRelativeMatch=function(e){if(!this.filePattern||i.isAbsolute(this.filePattern)||"file"!==e.scheme)return f.TPromise.wrap({exists:!1});var t=i.join(e.fsPath,this.filePattern);return this._pfs.stat(t).then(function(e){return{exists:!e.isDirectory(),size:e.size}},function(e){return{exists:!1}})},e.prototype.matchFile=function(e,t){
!this.isFilePatternMatch(t.relativePath)||this.includePattern&&!this.includePattern(t.relativePath,t.basename)||((this.exists||this.maxResults&&this.resultCount>=this.maxResults)&&(this.isLimitHit=!0,this.cancel()),this.isLimitHit||e(t))},e.prototype.isFilePatternMatch=function(e){return!this.filePattern||("*"===this.filePattern||c.fuzzyContains(e,this.normalizedFilePatternLowercase))},e}(),w=function(){function e(e,t){this.telemetryCallback=e,this._pfs=t,this.caches=Object.create(null)}return e.prototype.fileSearch=function(t,n){var r=this;if(t.sortByScore){var i=this.trySortedSearchFromCache(t);if(!i){var o=t.maxResults?s({},t,{maxResults:null}):t,a=new x(o,n,this._pfs);i=this.doSortedSearch(a,n,t)}return new f.PPromise(function(t,n,o){process.nextTick(function(){i.then(function(n){var i=n[0],s=n[1].map(function(e){return r.rawMatchToSearchItem(e)});r.sendProgress(s,o,e.BATCH_SIZE),t(i)},n,o)})},function(){i.cancel()})}var u;return new f.PPromise(function(i,o,s){var a=new x(t,n,r._pfs)
;u=r.doSearch(a,n,e.BATCH_SIZE).then(i,o,function(e){Array.isArray(e)?s(e.map(function(e){return r.rawMatchToSearchItem(e)})):e.relativePath&&s(r.rawMatchToSearchItem(e))})},function(){u.cancel()})},e.prototype.rawMatchToSearchItem=function(e){return{resource:g.joinPath(e.base,e.relativePath)}},e.prototype.doSortedSearch=function(e,t,n){var r,i,o=this,a=new f.PPromise(function(n,i,s){var a=[];r=o.doSearch(e,t,-1).then(function(e){n([e,a]),o.telemetryCallback("fileSearch",null)},i,function(e){Array.isArray(e)?a=e:s(e)})},function(){r.cancel()});n.cacheKey&&((i=this.getOrCreateCache(n.cacheKey)).resultsToSearchCache[n.filePattern]=a,a.then(null,function(e){delete i.resultsToSearchCache[n.filePattern]}),a=this.preventCancellation(a));var u;return new f.PPromise(function(e,t,r){u=a.then(function(t){var r=t[0],a=t[1],u=i?i.scorerCache:Object.create(null),c=Date.now();return o.sortResults(n,a,u).then(function(t){var i=Date.now();e([{stats:s({},r.stats,{unsortedResultTime:c,sortedResultTime:i}),
limitHit:r.limitHit||"number"==typeof n.maxResults&&a.length>n.maxResults},t])})},t,r)},function(){u.cancel()})},e.prototype.getOrCreateCache=function(e){var t=this.caches[e];return t||(this.caches[e]=new T)},e.prototype.trySortedSearchFromCache=function(e){var t=this,n=e.cacheKey&&this.caches[e.cacheKey];if(n){var r=Date.now(),i=this.getResultsFromCache(n,e.filePattern);if(i){var o;return new f.TPromise(function(s,a){o=i.then(function(i){var o=i[0],a=i[1],u=i[2],c=Date.now();return t.sortResults(e,a,n.scorerCache).then(function(t){var n=Date.now(),i={fromCache:!0,cacheLookupStartTime:r,cacheFilterStartTime:u.cacheFilterStartTime,cacheLookupResultTime:c,cacheEntryCount:u.cacheFilterResultCount,resultCount:a.length};e.sortByScore&&(i.unsortedResultTime=c,i.sortedResultTime=n),u.cacheWasResolved||(i.joined=o.stats),s([{limitHit:o.limitHit||"number"==typeof e.maxResults&&a.length>e.maxResults,stats:i},t])})},a)},function(){o.cancel()})}}},e.prototype.sortResults=function(e,t,n){
var r=d.prepareQuery(e.filePattern);return o.topAsync(t,function(e,t){return d.compareItemsByScore(e,t,r,!0,P,n)},e.maxResults,1e4)},e.prototype.sendProgress=function(e,t,n){if(n&&n>0)for(var r=0;r<e.length;r+=n)t(e.slice(r,r+n));else t(e)},e.prototype.getResultsFromCache=function(e,t){if(i.isAbsolute(t))return null;var n,r,o=t.indexOf(i.sep)>=0;for(var s in e.resultsToSearchCache)if(c.startsWith(t,s)){if(o&&s.indexOf(i.sep)<0)continue;var a=e.resultsToSearchCache[s];a.then(function(){r=!1}),r=!0,n=this.preventCancellation(a);break}return n?new f.PPromise(function(e,i,o){n.then(function(n){for(var i=n[0],o=n[1],s=Date.now(),a=[],u=c.stripWildcards(t).toLowerCase(),l=0;l<o.length;l++){var f=o[l];c.fuzzyContains(f.relativePath,u)&&a.push(f)}e([i,a,{cacheWasResolved:r,cacheFilterStartTime:s,cacheFilterResultCount:o.length}])},i,o)},function(){n.cancel()}):null},e.prototype.doSearch=function(e,t,n){return new f.PPromise(function(t,r,i){var o=[];e.search().then(function(n){o.length&&i(o),t({limitHit:n.isLimitHit,
stats:e.getStats()})},function(e){o.length&&i(o),r(e)},function(e){e&&(n?(o.push(e),n>0&&o.length>=n&&(i(o),o=[])):i(e))})},function(){e.cancel()})},e.prototype.clearCache=function(e){return delete this.caches[e],f.TPromise.as(void 0)},e.prototype.preventCancellation=function(e){return new f.PPromise(function(t,n,r){process.nextTick(function(){e.then(t,n,r)})},function(){})},e.BATCH_SIZE=512,e}(),T=function(){return function(){this.resultsToSearchCache=Object.create(null),this.scorerCache=Object.create(null)}}(),P=new(function(){function e(){}return e.prototype.getItemLabel=function(e){return e.basename},e.prototype.getItemDescription=function(e){return e.relativePath.substr(0,e.relativePath.length-e.basename.length-1)},e.prototype.getItemPath=function(e){return e.relativePath},e}())}),define(e[186],t([0,1,144,10,5]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(t,n,i,o){void 0===i&&(i=r.StatusBarAlignment.Left),this._id=e.ID_GEN++,this._proxy=t,
this._alignment=i,this._priority=o,this._extensionId=n}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this._alignment},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"priority",{get:function(){return this._priority},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._tooltip=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"command",{get:function(){return this._command},set:function(e){this._command=e,this.update()},enumerable:!0,
configurable:!0}),e.prototype.show=function(){this._visible=!0,this.update()},e.prototype.hide=function(){clearTimeout(this._timeoutHandle),this._visible=!1,this._proxy.$dispose(this.id)},e.prototype.update=function(){var e=this;!this._disposed&&this._visible&&(clearTimeout(this._timeoutHandle),this._timeoutHandle=setTimeout(function(){e._timeoutHandle=void 0,e._proxy.$setEntry(e.id,e._extensionId,e.text,e.tooltip,e.command,e.color,e._alignment===r.StatusBarAlignment.Left?n.StatusbarAlignment.LEFT:n.StatusbarAlignment.RIGHT,e._priority)},0))},e.prototype.dispose=function(){this.hide(),this._disposed=!0},e.ID_GEN=0,e}();t.ExtHostStatusBarEntry=o;var s=function(){function e(e){this._messages=[],this._item=e.createStatusBarEntry(void 0,r.StatusBarAlignment.Left,Number.MIN_VALUE)}return e.prototype.dispose=function(){this._messages.length=0,this._item.dispose()},e.prototype.setMessage=function(e){var t=this,n={message:e};return this._messages.unshift(n),this._update(),new r.Disposable(function(){
var e=t._messages.indexOf(n);e>=0&&(t._messages.splice(e,1),t._update())})},e.prototype._update=function(){this._messages.length>0?(this._item.text=this._messages[0].message,this._item.show()):this._item.hide()},e}(),a=function(){function e(e){this._proxy=e.getProxy(i.MainContext.MainThreadStatusBar),this._statusMessage=new s(this)}return e.prototype.createStatusBarEntry=function(e,t,n){return new o(this._proxy,e,t,n)},e.prototype.setStatusBarMessage=function(e,t){var n,i=this._statusMessage.setMessage(e);return"number"==typeof t?n=setTimeout(function(){return i.dispose()},t):void 0!==t&&t.then(function(){return i.dispose()},function(){return i.dispose()}),new r.Disposable(function(){i.dispose(),clearTimeout(n)})},e}();t.ExtHostStatusBar=a}),define(e[187],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._proxy=e.getProxy(n.MainContext.MainThreadStorage)}return e.prototype.getValue=function(e,t,n){
return this._proxy.$getValue(e,t).then(function(e){return e||n})},e.prototype.setValue=function(e,t,n){return this._proxy.$setValue(e,t,n)},e}();t.ExtHostStorage=r}),define(e[188],t([0,1,3,107,2,16,15,4,161,5,10,77]),function(e,t,n,r,i,o,s,a,u,c,l,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d;!function(e){e.from=function(e){if(void 0===e||null===e)return u.RevealKind.Always;switch(e){case l.TaskRevealKind.Silent:return u.RevealKind.Silent;case l.TaskRevealKind.Never:return u.RevealKind.Never}return u.RevealKind.Always}}(d||(d={}));var h;!function(e){e.from=function(e){if(void 0===e||null===e)return u.PanelKind.Shared;switch(e){case l.TaskPanelKind.Dedicated:return u.PanelKind.Dedicated;case l.TaskPanelKind.New:return u.PanelKind.New;default:return u.PanelKind.Shared}}}(h||(h={}));var p;!function(e){e.from=function(e){return void 0===e||null===e?{reveal:u.RevealKind.Always,echo:!0,focus:!1,panel:u.PanelKind.Shared,showReuseMessage:!0}:{reveal:d.from(e.reveal),
echo:void 0===e.echo||!!e.echo,focus:!!e.focus,panel:h.from(e.panel),showReuseMessage:void 0===e.showReuseMessage||!!e.showReuseMessage}}}(p||(p={}));var g;!function(e){e.from=function(e){if(void 0!==e&&null!==e){for(var t=0,n=e;t<n.length;t++)if("string"!=typeof n[t])return[];return e}}}(g||(g={}));var m;!function(e){e.from=function(e){if(void 0!==e&&null!==e){var t={};return"string"==typeof e.cwd&&(t.cwd=e.cwd),e.env&&(t.env=Object.create(null),Object.keys(e.env).forEach(function(n){var r=e.env[n];"string"==typeof r&&(t.env[n]=r)})),function(e){return e&&"string"==typeof e.executable}(e)&&(t.shell=_.from(e)),t}}}(m||(m={}));var v;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return{escape:e.escape,strong:e.strong,weak:e.strong}}}(v||(v={}));var _;!function(e){e.from=function(e){if(void 0!==e&&null!==e&&e.executable)return{executable:e.executable,args:g.from(e.shellArgs),quoting:v.from(e.quotes)}}}(_||(_={}));var y;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return e.slice(0)}
}(y||(y={}));var b;!function(e){function t(e,t,n){if("string"==typeof e.name){var i,o=e.execution;if(o instanceof l.ProcessExecution)i=function(e){if("string"!=typeof e.process)return;var t={name:e.process,args:g.from(e.args),runtime:u.RuntimeType.Process,suppressTaskName:!0,presentation:void 0};e.options&&(t.options=m.from(e.options));return t}(o);else{if(!(o instanceof l.ShellExecution))return;i=function(e){if(e.args){if("string"!=typeof e.command&&"string"!=typeof e.command.value)return;t={name:e.command,args:y.from(e.args),runtime:u.RuntimeType.Shell,presentation:void 0};return e.options&&(t.options=m.from(e.options)),t}if("string"!=typeof e.commandLine)return;var t={name:e.commandLine,runtime:u.RuntimeType.Shell,presentation:void 0};return e.options&&(t.options=m.from(e.options)),t}(o)}if(void 0!==i){i.presentation=p.from(e.presentationOptions);var s,a,c=e.scope;void 0===c?(a=u.TaskScope.Folder,
s=t):c===l.TaskScope.Global?a=u.TaskScope.Global:c===l.TaskScope.Workspace?a=u.TaskScope.Workspace:(a=u.TaskScope.Folder,s=c);var f={kind:u.TaskSourceKind.Extension,label:"string"==typeof e.source?e.source:n.name,extension:n.id,scope:a,workspaceFolder:void 0};f.__workspaceFolder=s?s.uri:void 0,f.__definition=e.definition;var d=r.localize(0,null,f.label,e.name);return{_id:""+n.id,_source:f,_label:d,type:e.definition.type,defines:void 0,name:e.name,identifier:d,group:e.group?e.group.id:void 0,command:i,isBackground:!!e.isBackground,problemMatchers:e.problemMatchers.slice(),hasDefinedMatchers:e.hasDefinedMatchers}}}}e.from=function(e,n,r){if(void 0===e||null===e)return[];for(var i=[],o=0,s=e;o<s.length;o++){var a=t(s[o],n,r);a&&i.push(a)}return i}}(b||(b={}));var C;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return e},e.to=function(e){if(void 0!==e&&null!==e)return e}}(C||(C={}));var E;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return e},e.to=function(e){if(void 0!==e&&null!==e)return e}
}(E||(E={}));var S;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return e},e.to=function(e){if(void 0!==e&&null!==e)return e}}(S||(S={}));var x;!function(e){e.is=function(e){var t=e;return t&&!!t.process},e.from=function(e){if(void 0!==e&&null!==e){var t={process:e.process,args:e.args};return e.options&&(t.options=S.from(e.options)),t}},e.to=function(e){if(void 0!==e&&null!==e)return new l.ProcessExecution(e.process,e.args,e.options)}}(x||(x={}));var w;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return e},e.to=function(e){if(void 0!==e&&null!==e)return e}}(w||(w={}));var T;!function(e){e.is=function(e){var t=e;return t&&(!!t.commandLine||!!t.command)},e.from=function(e){if(void 0!==e&&null!==e){var t={};return void 0!==e.commandLine?t.commandLine=e.commandLine:(t.command=e.command,t.args=e.args),e.options&&(t.options=w.from(e.options)),t}},e.to=function(e){
if(void 0!==e&&null!==e)return e.commandLine?new l.ShellExecution(e.commandLine,e.options):new l.ShellExecution(e.command,e.args?e.args:[],e.options)}}(T||(T={}));var P;!function(e){e.from=function(e){var t;return void 0!==e.scope&&"number"!=typeof e.scope&&(t=e.scope.uri),{id:e._id,workspaceFolder:t}}}(P||(P={}));var I;!function(e){e.from=function(e,t){if(void 0!==e&&null!==e){var n;e.execution instanceof l.ProcessExecution?n=x.from(e.execution):e.execution instanceof l.ShellExecution&&(n=T.from(e.execution));var r,i=C.from(e.definition);if(e.scope&&(r="number"==typeof e.scope?e.scope:e.scope.uri.toJSON()),i&&r){var o=e.group?e.group.id:void 0;return{_id:e._id,definition:i,name:e.name,source:{extensionId:t.id,label:e.source,scope:r},execution:n,isBackground:e.isBackground,group:o,presentationOptions:E.from(e.presentationOptions),problemMatchers:e.problemMatchers,hasDefinedMatchers:e.hasDefinedMatchers}}}},e.to=function(e,t){if(void 0!==e&&null!==e){var r
;x.is(e.execution)?r=x.to(e.execution):T.is(e.execution)&&(r=T.to(e.execution));var i,o=C.to(e.definition);if(e.source&&(i=void 0!==e.source.scope?"number"==typeof e.source.scope?e.source.scope:t.resolveWorkspaceFolder(n.default.revive(e.source.scope)):l.TaskScope.Workspace),o&&i){var s=new l.Task(o,i,e.name,e.source.label,r,e.problemMatchers);return void 0!==e.isBackground&&(s.isBackground=e.isBackground),void 0!==e.group&&(s.group=l.TaskGroup.from(e.group)),e.presentationOptions&&(s.presentationOptions=E.to(e.presentationOptions)),e._id&&(s._id=e._id),s}}}}(I||(I={}));var D;!function(e){e.from=function(e){return e},e.to=function(e){if(e)return o.assign(Object.create(null),e)}}(D||(D={}));var k,L=function(){function e(e,t,n){this._tasks=e,this._id=t,this._task=n}return Object.defineProperty(e.prototype,"task",{get:function(){return this._task},enumerable:!0,configurable:!0}),e.prototype.terminate=function(){this._tasks.terminateTask(this)},e.prototype.fireDidStartProcess=function(e){},
e.prototype.fireDidEndProcess=function(e){},e}();!function(e){e.to=function(e,t){return new L(t,e.id,I.to(e.task,t.extHostWorkspace))},e.from=function(e){return{id:e._id,task:void 0}}}(k||(k={}));var O=function(){function e(e,t,n,r){this._onDidExecuteTask=new a.Emitter,this._onDidTerminateTask=new a.Emitter,this._onDidTaskProcessStarted=new a.Emitter,this._onDidTaskProcessEnded=new a.Emitter,this._proxy=e.getProxy(c.MainContext.MainThreadTask),this._workspaceService=t,this._editorService=n,this._configurationService=r,this._handleCounter=0,this._handlers=new Map,this._taskExecutions=new Map}return Object.defineProperty(e.prototype,"extHostWorkspace",{get:function(){return this._workspaceService},enumerable:!0,configurable:!0}),e.prototype.registerTaskProvider=function(e,t){var n=this;if(!t)return new l.Disposable(function(){});var r=this.nextHandle();return this._handlers.set(r,{provider:t,extension:e}),this._proxy.$registerTaskProvider(r),new l.Disposable(function(){n._handlers.delete(r),
n._proxy.$unregisterTaskProvider(r)})},e.prototype.registerTaskSystem=function(e,t){this._proxy.$registerTaskSystem(e,t)},e.prototype.fetchTasks=function(e){var t=this;return this._proxy.$fetchTasks(D.from(e)).then(function(e){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r],s=I.to(o,t._workspaceService);s&&n.push(s)}return n})},e.prototype.executeTask=function(e,t){var n=this,r=t;if(void 0!==r._id)return this._proxy.$executeTask(P.from(r)).then(function(e){return n.getTaskExecution(e,t)});var i=I.from(t,e);return void 0===i?Promise.reject(new Error("Task is not valid")):this._proxy.$executeTask(i).then(function(e){return n.getTaskExecution(e,t)})},Object.defineProperty(e.prototype,"taskExecutions",{get:function(){var e=[];return this._taskExecutions.forEach(function(t){return e.push(t)}),e},enumerable:!0,configurable:!0}),e.prototype.terminateTask=function(e){if(!(e instanceof L))throw new Error("No valid task execution provided");return this._proxy.$terminateTask(e._id)},
Object.defineProperty(e.prototype,"onDidStartTask",{get:function(){return this._onDidExecuteTask.event},enumerable:!0,configurable:!0}),e.prototype.$onDidStartTask=function(e){this._onDidExecuteTask.fire({execution:this.getTaskExecution(e)})},Object.defineProperty(e.prototype,"onDidEndTask",{get:function(){return this._onDidTerminateTask.event},enumerable:!0,configurable:!0}),e.prototype.$OnDidEndTask=function(e){var t=this.getTaskExecution(e);this._taskExecutions.delete(e.id),this._onDidTerminateTask.fire({execution:t})},Object.defineProperty(e.prototype,"onDidStartTaskProcess",{get:function(){return this._onDidTaskProcessStarted.event},enumerable:!0,configurable:!0}),e.prototype.$onDidStartTaskProcess=function(e){var t=this.getTaskExecution(e.id);t&&this._onDidTaskProcessStarted.fire({execution:t,processId:e.processId})},Object.defineProperty(e.prototype,"onDidEndTaskProcess",{get:function(){return this._onDidTaskProcessEnded.event},enumerable:!0,configurable:!0}),
e.prototype.$onDidEndTaskProcess=function(e){var t=this.getTaskExecution(e.id);t&&this._onDidTaskProcessEnded.fire({execution:t,exitCode:e.exitCode})},e.prototype.$provideTasks=function(e){var t=this,n=this._handlers.get(e);return n?s.asWinJsPromise(function(e){return n.provider.provideTasks(e)}).then(function(e){var r=t._workspaceService.getWorkspaceFolders();return{tasks:b.from(e,r&&r.length>0?r[0]:void 0,n.extension),extension:n.extension}}):i.TPromise.wrapError(new Error("no handler found"))},e.prototype.$resolveVariables=function(e,t){for(var r=n.default.revive(e),i=Object.create(null),o=this._workspaceService.resolveWorkspaceFolder(r),s=new f.ExtHostVariableResolverService(this._workspaceService,this._editorService,this._configurationService),a={uri:o.uri,name:o.name,index:o.index,toResource:function(){throw new Error("Not implemented")}},u=0,c=t;u<c.length;u++){var l=c[u];i[l]=s.resolve(a,l)}return i},e.prototype.nextHandle=function(){return this._handleCounter++},
e.prototype.getTaskExecution=function(e,t){if("string"==typeof e)return this._taskExecutions.get(e);var n=this._taskExecutions.get(e.id);return n||(n=new L(this,e.id,t||I.to(e.task,this._workspaceService)),this._taskExecutions.set(e.id,n),n)},e}();t.ExtHostTask=O}),define(e[189],t([0,1,27,40,8,163,3,4,5,162]),function(e,t,r,i,o,a,u,c,l,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=-1,h=function(){function e(e,t){var n=this;this._proxy=e,this._disposed=!1,this._queuedRequests=[],this._idPromise=new Promise(function(e){void 0!==t?(n._id=t,e(t)):n._idPromiseComplete=e})}return e.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._queueApiRequest(this._proxy.$dispose,[]))},e.prototype._checkDisposed=function(){if(this._disposed)throw new Error("Terminal has already been disposed")},e.prototype._queueApiRequest=function(e,t){var n=new v(e,t);this._id?n.run(this._proxy,this._id):this._queuedRequests.push(n)},e.prototype._runQueuedRequests=function(e){var t=this;this._id=e,
this._idPromiseComplete(e),this._queuedRequests.forEach(function(e){e.run(t._proxy,t._id)}),this._queuedRequests.length=0},e}();t.BaseExtHostTerminal=h;var p=function(e){function t(t,n,r,i){var o=e.call(this,t,r)||this;return o._name=n,o._onData=new c.Emitter,o._pidPromise=new Promise(function(e){i===d?e(void 0):o._pidPromiseComplete=e}),o}return n(t,e),Object.defineProperty(t.prototype,"onDidWriteData",{get:function(){return this._proxy.$registerOnDataListener(this._id),this._onData&&this._onData.event},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r,i){var o=this;this._proxy.$createTerminal(this._name,e,t,n,r,i).then(function(e){o._runQueuedRequests(e)})},Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processId",{get:function(){return this._pidPromise},enumerable:!0,configurable:!0}),t.prototype.sendText=function(e,t){void 0===t&&(t=!0),this._checkDisposed(),
this._queueApiRequest(this._proxy.$sendText,[e,t])},t.prototype.show=function(e){this._checkDisposed(),this._queueApiRequest(this._proxy.$show,[e])},t.prototype.hide=function(){this._checkDisposed(),this._queueApiRequest(this._proxy.$hide,[])},t.prototype._setProcessId=function(e){this._pidPromiseComplete&&(this._pidPromiseComplete(e),this._pidPromiseComplete=null)},t.prototype._fireOnData=function(e){this._onData.fire(e)},t}(h);t.ExtHostTerminal=p;var g=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i._name=n,i._terminal=r,i._onInput=new c.Emitter,i._onDidChangeMaximumDimensions=new c.Emitter,i._proxy.$createTerminalRenderer(i._name).then(function(e){i._runQueuedRequests(e),i._terminal._runQueuedRequests(e)}),i}return n(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e,this._checkDisposed(),this._queueApiRequest(this._proxy.$terminalRendererSetName,[this._name])},enumerable:!0,configurable:!0}),
Object.defineProperty(t.prototype,"onDidAcceptInput",{get:function(){return this._checkDisposed(),this._queueApiRequest(this._proxy.$terminalRendererRegisterOnInputListener,[this._id]),this._onInput&&this._onInput.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._dimensions},set:function(e){this._checkDisposed(),this._dimensions=e,this._queueApiRequest(this._proxy.$terminalRendererSetDimensions,[e])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maximumDimensions",{get:function(){if(this._maximumDimensions)return{rows:this._maximumDimensions.rows,columns:this._maximumDimensions.columns}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidChangeMaximumDimensions",{get:function(){return this._onDidChangeMaximumDimensions&&this._onDidChangeMaximumDimensions.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"terminal",{get:function(){return this._terminal},enumerable:!0,configurable:!0
}),t.prototype.write=function(e){this._checkDisposed(),this._queueApiRequest(this._proxy.$terminalRendererWrite,[e])},t.prototype._fireOnInput=function(e){this._onInput.fire(e)},t.prototype._setMaximumDimensions=function(e,t){this._maximumDimensions&&this._maximumDimensions.columns===e&&this._maximumDimensions.rows===t||(this._maximumDimensions={columns:e,rows:t},this._onDidChangeMaximumDimensions.fire(this.maximumDimensions))},t}(h);t.ExtHostTerminalRenderer=g;var m=function(){function t(e,t,n){this._extHostConfiguration=t,this._logService=n,this._terminals=[],this._terminalProcesses={},this._terminalRenderers=[],this._onDidCloseTerminal=new c.Emitter,this._onDidOpenTerminal=new c.Emitter,this._onDidChangeActiveTerminal=new c.Emitter,this._proxy=e.getProxy(l.MainContext.MainThreadTerminalService)}return Object.defineProperty(t.prototype,"activeTerminal",{get:function(){return this._activeTerminal},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"terminals",{get:function(){
return this._terminals},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidCloseTerminal",{get:function(){return this._onDidCloseTerminal&&this._onDidCloseTerminal.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidOpenTerminal",{get:function(){return this._onDidOpenTerminal&&this._onDidOpenTerminal.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidChangeActiveTerminal",{get:function(){return this._onDidChangeActiveTerminal&&this._onDidChangeActiveTerminal.event},enumerable:!0,configurable:!0}),t.prototype.createTerminal=function(e,t,n){var r=new p(this._proxy,e);return r.create(t,n),this._terminals.push(r),r},t.prototype.createTerminalFromOptions=function(e){var t=new p(this._proxy,e.name);return t.create(e.shellPath,e.shellArgs,e.cwd,e.env),this._terminals.push(t),t},t.prototype.createTerminalRenderer=function(e){var t=new p(this._proxy,e);t._setProcessId(void 0),this._terminals.push(t);var n=new g(this._proxy,e,t)
;return this._terminalRenderers.push(n),n},t.prototype.$acceptActiveTerminalChanged=function(e){var t=this,n=this._activeTerminal;null===e&&(this._activeTerminal=void 0,n!==this._activeTerminal&&this._onDidChangeActiveTerminal.fire(this._activeTerminal)),this._performTerminalIdAction(e,function(e){e&&(t._activeTerminal=e,n!==t._activeTerminal&&t._onDidChangeActiveTerminal.fire(t._activeTerminal))})},t.prototype.$acceptTerminalProcessData=function(e,t){var n=this._getTerminalById(e);n&&n._fireOnData(t)},t.prototype.$acceptTerminalRendererDimensions=function(e,t,n){var r=this._getTerminalRendererById(e);r&&r._setMaximumDimensions(t,n)},t.prototype.$acceptTerminalRendererInput=function(e,t){var n=this._getTerminalRendererById(e);n&&n._fireOnInput(t)},t.prototype.$acceptTerminalClosed=function(e){var t=this._getTerminalObjectIndexById(this.terminals,e);if(null!==t){var n=this._terminals.splice(t,1)[0];this._onDidCloseTerminal.fire(n)}},t.prototype.$acceptTerminalOpened=function(e,t){
var n=this._getTerminalObjectIndexById(this._terminals,e);if(null===n){var r=this._getTerminalRendererById(e),i=new p(this._proxy,t,e,r?d:void 0);this._terminals.push(i),this._onDidOpenTerminal.fire(i)}else this._onDidOpenTerminal.fire(this.terminals[n])},t.prototype.$acceptTerminalProcessId=function(e,t){this._performTerminalIdAction(e,function(e){return e._setProcessId(t)})},t.prototype._performTerminalIdAction=function(e,t){var n=this,r=this._getTerminalById(e);r?t(r):setTimeout(function(){(r=n._getTerminalById(e))&&t(r)},f.EXT_HOST_CREATION_DELAY)},t.prototype.$createProcess=function(t,n,c,l){var f=this,d=this._extHostConfiguration.getConfiguration("terminal.integrated"),h=d.get("setLocaleVariables")?o.locale:void 0;if(!n.executable){var p=o.isWindows?"windows":o.isMacintosh?"osx":"linux",g=d.get("shell."+p),m=d.get("shellArgs."+p);n.executable=g,n.args=m}var v=i.homedir(),_=s({},process.env),y={env:a.createTerminalEnv(_,n,v,h,c,l),cwd:u.default.parse(e.toUrl("../../parts/terminal/node")).fsPath,
execArgv:[]};this._logService.debug("Terminal process launching on ext host",y),this._terminalProcesses[t]=r.fork(u.default.parse(e.toUrl("bootstrap")).fsPath,["--type=terminal"],y),this._terminalProcesses[t].on("message",function(e){switch(e.type){case"pid":f._proxy.$sendProcessPid(t,e.content);break;case"title":f._proxy.$sendProcessTitle(t,e.content);break;case"data":f._proxy.$sendProcessData(t,e.content)}}),this._terminalProcesses[t].on("exit",function(e){return f._onProcessExit(t,e)})},t.prototype.$acceptProcessInput=function(e,t){this._terminalProcesses[e].connected&&this._terminalProcesses[e].send({event:"input",data:t})},t.prototype.$acceptProcessResize=function(e,t,n){if(this._terminalProcesses[e].connected)try{this._terminalProcesses[e].send({event:"resize",cols:t,rows:n})}catch(e){if("EPIPE"!==e.code&&"ERR_IPC_CHANNEL_CLOSED"!==e.code)throw e}},t.prototype.$acceptProcessShutdown=function(e){this._terminalProcesses[e].connected&&this._terminalProcesses[e].send({event:"shutdown"})},
t.prototype._onProcessExit=function(e,t){var n=this._terminalProcesses[e];n.removeAllListeners("message"),n.removeAllListeners("exit"),delete this._terminalProcesses[e],this._proxy.$sendProcessExit(e,t)},t.prototype._getTerminalByIdEventually=function(e,t){var n=this;return void 0===t&&(t=5),new Promise(function(r){if(0!==t){var i=n._getTerminalById(e);i?r(i):setTimeout(function(){r(n._getTerminalByIdEventually(e,t-1))},200)}else r(void 0)})},t.prototype._getTerminalById=function(e){return this._getTerminalObjectById(this._terminals,e)},t.prototype._getTerminalRendererById=function(e){return this._getTerminalObjectById(this._terminalRenderers,e)},t.prototype._getTerminalObjectById=function(e,t){var n=this._getTerminalObjectIndexById(e,t);return null!==n?e[n]:null},t.prototype._getTerminalObjectIndexById=function(e,t){var n=null;return e.some(function(e,r){return e._id===t&&(n=r,!0)}),n},t}();t.ExtHostTerminalService=m;var v=function(){function e(e,t){this._callback=e,this._args=t}
return e.prototype.run=function(e,t){this._callback.apply(e,[t].concat(this._args))},e}()}),define(e[190],t([0,1,5,3,2,11]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e){this.handles=new Set,this.handlers=new Map,this._proxy=e.getProxy(n.MainContext.MainThreadUrls)}return e.prototype.registerProtocolHandler=function(t,n){var r=this;if(this.handles.has(t))throw new Error("Protocol handler already registered for extension "+t);var i=e.HandlePool++;return this.handles.add(t),this.handlers.set(i,n),this._proxy.$registerProtocolHandler(i,t),o.toDisposable(function(){r.handles.delete(t),r.handlers.delete(i),r._proxy.$unregisterProtocolHandler(i)})},e.prototype.$handleExternalUri=function(e,t){var n=this.handlers.get(e);return n?(n.handleUri(r.default.revive(t)),i.TPromise.as(null)):i.TPromise.as(null)},e.HandlePool=0,e}();t.ExtHostUrls=s}),define(e[191],t([0,1,4,5]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
;var i=function(){function e(t){var i=this;this._onDidChangeWindowState=new n.Emitter,this.onDidChangeWindowState=this._onDidChangeWindowState.event,this._state=e.InitialState,this._proxy=t.getProxy(r.MainContext.MainThreadWindow),this._proxy.$getWindowVisibility().then(function(e){return i.$onDidChangeWindowFocus(e)})}return Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.$onDidChangeWindowFocus=function(e){e!==this._state.focused&&(this._state=s({},this._state,{focused:e}),this._onDidChangeWindowState.fire(this._state))},e.InitialState={focused:!0},e}();t.ExtHostWindow=i}),define(e[192],t([0,1,3,4,9,12,21,71,5,7,20,30,8,109,135]),function(e,t,r,i,o,s,a,u,c,l,f,d,h,p,g){"use strict";function m(e,t){return d.isEqual(e,t,!h.isLinux)}function v(e,t){return m(e.uri,t.uri)?0:l.compare(e.uri.toString(),t.uri.toString())}function _(e,t){
return e.index!==t.index?e.index<t.index?-1:1:m(e.uri,t.uri)?l.compare(e.name,t.name):l.compare(e.uri.toString(),t.uri.toString())}function y(e,t,n){var r=e.slice(0).sort(n),i=t.slice(0).sort(n);return s.delta(r,i,n)}Object.defineProperty(t,"__esModule",{value:!0});var b=function(e){function t(t,n,r){var i=e.call(this,t,n,r.map(function(e){return new u.WorkspaceFolder(e)}))||this;return i._workspaceFolders=[],i._structure=f.TernarySearchTree.forPaths(),r.forEach(function(e){i._workspaceFolders.push(e),i._structure.set(e.uri.toString(),e)}),i}return n(t,e),t.toExtHostWorkspace=function(e,n,i){if(!e)return{workspace:null,added:[],removed:[]};var o=e.id,s=e.name,a=e.folders,u=[],c=n;c?a.forEach(function(e,o){var s=r.default.revive(e.uri),a=t._findFolder(i||n,s);a?(a.name=e.name,a.index=e.index,u.push(a)):u.push({uri:s,name:e.name,index:o})}):u.push.apply(u,a.map(function(e){var t=e.uri,n=e.name,i=e.index;return{uri:r.default.revive(t),name:n,index:i}})),u.sort(function(e,t){return e.index<t.index?-1:1})
;var l=new t(o,s,u),f=y(c?c.workspaceFolders:[],l.workspaceFolders,v);return{workspace:l,added:f.added,removed:f.removed}},t._findFolder=function(e,t){for(var n=0;n<e.folders.length;n++){var r=e.workspaceFolders[n];if(m(r.uri,t))return r}},Object.defineProperty(t.prototype,"workspaceFolders",{get:function(){return this._workspaceFolders.slice(0)},enumerable:!0,configurable:!0}),t.prototype.getWorkspaceFolder=function(e,t){return t&&this._structure.get(e.toString())&&(e=e.with({path:a.posix.dirname(e.path)})),this._structure.findSubstr(e.toString())},t.prototype.resolveWorkspaceFolder=function(e){return this._structure.get(e.toString())},t}(u.Workspace),C=function(){function e(e,t,n){this._logService=n,this._onDidChangeWorkspace=new i.Emitter,this.onDidChangeWorkspace=this._onDidChangeWorkspace.event,this._proxy=e.getProxy(c.MainContext.MainThreadWorkspace),this._messageService=e.getProxy(c.MainContext.MainThreadMessageService),this._confirmedWorkspace=b.toExtHostWorkspace(t).workspace}
return Object.defineProperty(e.prototype,"workspace",{get:function(){return this._actualWorkspace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_actualWorkspace",{get:function(){return this._unconfirmedWorkspace||this._confirmedWorkspace},enumerable:!0,configurable:!0}),e.prototype.getWorkspaceFolders=function(){if(this._actualWorkspace)return this._actualWorkspace.workspaceFolders.slice(0)},e.prototype.updateWorkspaceFolders=function(e,t,n){for(var i=this,o=[],s=3;s<arguments.length;s++)o[s-3]=arguments[s];var a=[];if(Array.isArray(o)&&o.forEach(function(e){r.default.isUri(e.uri)&&!a.some(function(t){return m(t.uri,e.uri)})&&a.push({uri:e.uri,name:e.name||d.basenameOrAuthority(e.uri)})}),this._unconfirmedWorkspace)return!1;if([t,n].some(function(e){return"number"!=typeof e||e<0}))return!1;if(0===n&&0===a.length)return!1;var u=this._actualWorkspace?this._actualWorkspace.workspaceFolders:[];if(t+n>u.length)return!1;var c=u.slice(0);c.splice.apply(c,[t,n].concat(a.map(function(e){return{
uri:e.uri,name:e.name||d.basenameOrAuthority(e.uri),index:void 0}})));for(var l=function(e){var t=c[e];if(c.some(function(n,r){return r!==e&&m(t.uri,n.uri)}))return{value:!1}},f=0;f<c.length;f++){var h=l(f);if("object"==typeof h)return h.value}c.forEach(function(e,t){return e.index=t});var v=y(u,c,_),b=v.added,C=v.removed;if(0===b.length&&0===C.length)return!1;if(this._proxy){var E=e.displayName||e.name;this._proxy.$updateWorkspaceFolders(E,t,n,a).then(null,function(t){i._unconfirmedWorkspace=void 0,i._messageService.$showMessage(g.Severity.Error,p.localize(0,null,E,t.toString()),{extension:e},[])})}return this.trySetWorkspaceFolders(c),!0},e.prototype.getWorkspaceFolder=function(e,t){if(this._actualWorkspace)return this._actualWorkspace.getWorkspaceFolder(e,t)},e.prototype.resolveWorkspaceFolder=function(e){if(this._actualWorkspace)return this._actualWorkspace.resolveWorkspaceFolder(e)},e.prototype.getPath=function(){if(this._actualWorkspace){var e=this._actualWorkspace.folders
;if(0!==e.length)return e[0].uri.fsPath}},e.prototype.getRelativePath=function(e,t){var n;if("string"==typeof e?n=e:void 0!==e&&(n=e.fsPath),!n)return n;var i=this.getWorkspaceFolder("string"==typeof e?r.default.file(e):e,!0);if(!i)return n;void 0===t&&(t=this._actualWorkspace.folders.length>1);var s=a.relative(i.uri.fsPath,n);return t&&(s=i.name+"/"+s),o.normalize(s,!0)},e.prototype.trySetWorkspaceFolders=function(e){this._actualWorkspace&&(this._unconfirmedWorkspace=b.toExtHostWorkspace({id:this._actualWorkspace.id,name:this._actualWorkspace.name,configuration:this._actualWorkspace.configuration,folders:e},this._actualWorkspace).workspace)},e.prototype.$acceptWorkspaceData=function(e){var t=b.toExtHostWorkspace(e,this._confirmedWorkspace,this._unconfirmedWorkspace),n=t.workspace,r=t.added,i=t.removed;this._confirmedWorkspace=n,this._unconfirmedWorkspace=void 0,this._onDidChangeWorkspace.fire(Object.freeze({added:Object.freeze(r),removed:Object.freeze(i)}))},e.prototype.findFiles=function(t,n,i,o,s){
var a=this;this._logService.trace("extHostWorkspace#findFiles: fileSearch, extension: "+o+", entryPoint: findFiles");var u,c,l=e._requestIdPool++;t&&("string"==typeof t?u=t:(u=t.pattern,c=t.base));var f;null===n?f=!1:n&&(f="string"==typeof n?n:n.pattern);var d=this._proxy.$startSearch(u,c,f,i,l);return s&&s.onCancellationRequested(function(){return a._proxy.$cancelSearch(l)}),d.then(function(e){return Array.isArray(e)?e.map(r.default.revive):[]})},e.prototype.saveAll=function(e){return this._proxy.$saveAll(e)},e._requestIdPool=0,e}();t.ExtHostWorkspace=C}),define(e[193],t([0,1,2,17,172,3]),function(e,t,n,r,i,o){"use strict";function s(e,t,n){if(!e||n>200)return null;if("object"==typeof e){if(e instanceof o.default)return t.transformOutgoing(e);for(var r in e)if(Object.hasOwnProperty.call(e,r)){var i=s(e[r],t,n+1);null!==i&&(e[r]=i)}}return null}function a(e,t){var n=s(e,t,0);return null===n?e:n}function u(e,t,n){if(!e||n>200)return null;if("object"==typeof e){if(1===e.$mid)return t.transformIncoming(e)
;for(var r in e)if(Object.hasOwnProperty.call(e,r)){var i=u(e[r],t,n+1);null!==i&&(e[r]=i)}}return null}function c(e,t){var n=u(e,t,0);return null===n?e:n}Object.defineProperty(t,"__esModule",{value:!0}),t.transformOutgoingURIs=a;var l=function(){function e(e,t){void 0===t&&(t=null);var n=this;this._uriTransformer=t,this._isDisposed=!1,this._locals=Object.create(null),this._proxies=Object.create(null),this._lastMessageId=0,this._invokedHandlers=Object.create(null),this._pendingRPCReplies={},this._multiplexor=new d(e,function(e){return n._receiveOneMessage(e)})}return e.prototype.dispose=function(){var e=this;this._isDisposed=!0,Object.keys(this._pendingRPCReplies).forEach(function(t){e._pendingRPCReplies[t].resolveErr(r.canceled())})},e.prototype.transformIncomingURIs=function(e){return this._uriTransformer?c(e,this._uriTransformer):e},e.prototype.getProxy=function(e){return this._proxies[e.id]||(this._proxies[e.id]=this._createProxy(e.id)),this._proxies[e.id]},e.prototype._createProxy=function(e){
var t=this,n={get:function(n,r){return n[r]||36!==r.charCodeAt(0)||(n[r]=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t._remoteCall(e,r,n)}),n[r]}};return new Proxy(Object.create(null),n)},e.prototype.set=function(e,t){return this._locals[e.id]=t,t},e.prototype.assertRegistered=function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(!this._locals[r.id])throw new Error("Missing actor "+r.id+" (isMain: "+r.isMain+")")}},e.prototype._receiveOneMessage=function(e){if(!this._isDisposed){var t=JSON.parse(e);switch(this._uriTransformer&&(t=c(t,this._uriTransformer)),t.type){case 1:this._receiveRequest(t);break;case 2:this._receiveCancel(t);break;case 3:this._receiveReply(t);break;case 4:this._receiveReplyErr(t)}}},e.prototype._receiveRequest=function(e){var t=this,n=e.id,r=e.proxyId;this._invokedHandlers[n]=this._invokeHandler(r,e.method,e.args),this._invokedHandlers[n].then(function(e){delete t._invokedHandlers[n],t._uriTransformer&&(e=a(e,t._uriTransformer)),
t._multiplexor.send(h.replyOK(n,e))},function(e){delete t._invokedHandlers[n],t._multiplexor.send(h.replyErr(n,e))})},e.prototype._receiveCancel=function(e){var t=e.id;this._invokedHandlers[t]&&this._invokedHandlers[t].cancel()},e.prototype._receiveReply=function(e){var t=e.id;if(this._pendingRPCReplies.hasOwnProperty(t)){var n=this._pendingRPCReplies[t];delete this._pendingRPCReplies[t],n.resolveOk(e.res)}},e.prototype._receiveReplyErr=function(e){var t=e.id;if(this._pendingRPCReplies.hasOwnProperty(t)){var n=this._pendingRPCReplies[t];delete this._pendingRPCReplies[t];var r=null;e.err&&e.err.$isError&&((r=new Error).name=e.err.name,r.message=e.err.message,r.stack=e.err.stack),n.resolveErr(r)}},e.prototype._invokeHandler=function(e,t,r){try{return n.TPromise.as(this._doInvokeHandler(e,t,r))}catch(e){return n.TPromise.wrapError(e)}},e.prototype._doInvokeHandler=function(e,t,n){if(!this._locals[e])throw new Error("Unknown actor "+e);var r=this._locals[e],i=r[t]
;if("function"!=typeof i)throw new Error("Unknown method "+t+" on actor "+e);return i.apply(r,n)},e.prototype._remoteCall=function(e,t,o){var s=this;if(this._isDisposed)return n.TPromise.wrapError(r.canceled());var u=String(++this._lastMessageId),c=new i.LazyPromise(function(){s._multiplexor.send(h.cancel(u))});return this._pendingRPCReplies[u]=c,this._uriTransformer&&(o=a(o,this._uriTransformer)),this._multiplexor.send(h.request(u,e,t,o)),c},e}();t.RPCProtocol=l;var f,d=function(){function e(e,t){this._protocol=e,this._sendAccumulatedBound=this._sendAccumulated.bind(this),this._messagesToSend=[],this._protocol.onMessage(function(e){for(var n=0,r=e.length;n<r;n++)t(e[n])})}return e.prototype._sendAccumulated=function(){var e=this._messagesToSend;this._messagesToSend=[],this._protocol.send(e)},e.prototype.send=function(e){0===this._messagesToSend.length&&process.nextTick(this._sendAccumulatedBound),this._messagesToSend.push(e)},e}(),h=function(){function e(){}return e.cancel=function(e){
return'{"type":2,"id":"'+e+'"}'},e.request=function(e,t,n,r){return'{"type":1,"id":"'+e+'","proxyId":"'+t+'","method":"'+n+'","args":'+JSON.stringify(r)+"}"},e.replyOK=function(e,t){return void 0===t?'{"type":3,"id":"'+e+'"}':'{"type":3,"id":"'+e+'","res":'+JSON.stringify(t)+"}"},e.replyErr=function(e,t){return t instanceof Error?'{"type":4,"id":"'+e+'","err":'+JSON.stringify(r.transformErrorForSerialization(t))+"}":'{"type":4,"id":"'+e+'","err":null}'},e}();!function(e){e[e.Request=1]="Request",e[e.Cancel=2]="Cancel",e[e.Reply=3]="Reply",e[e.ReplyErr=4]="ReplyErr"}(f||(f={}))}),define(e[194],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IHashService=n.createDecorator("hashService")}),define(e[195],t([0,1,6]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Explorer=1]="Explorer",e[e.Scm=3]="Scm",e[e.Extensions=5]="Extensions",e[e.Window=10]="Window",e[e.Notification=15]="Notification"
}(t.ProgressLocation||(t.ProgressLocation={})),t.IProgressService2=n.createDecorator("progressService2")}),define(e[196],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this.service=e}return e.prototype.call=function(e,t){switch(e){case"fileSearch":return this.service.fileSearch(t);case"textSearch":return this.service.textSearch(t);case"clearCache":return this.service.clearCache(t);case"fetchTelemetry":return this.service.fetchTelemetry()}},e}();t.SearchChannel=n;var r=function(){function e(e){this.channel=e}return e.prototype.fileSearch=function(e){return this.channel.call("fileSearch",e)},e.prototype.textSearch=function(e){return this.channel.call("textSearch",e)},e.prototype.clearCache=function(e){return this.channel.call("clearCache",e)},e.prototype.fetchTelemetry=function(){return this.channel.call("fetchTelemetry")},e}();t.SearchChannelClient=r}),define(e[78],t([0,1,6,42]),function(e,t,n,r){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.SAVED=0]="SAVED",e[e.DIRTY=1]="DIRTY",e[e.PENDING_SAVE=2]="PENDING_SAVE",e[e.CONFLICT=3]="CONFLICT",e[e.ORPHAN=4]="ORPHAN",e[e.ERROR=5]="ERROR"}(t.ModelState||(t.ModelState={}));!function(e){e[e.DIRTY=0]="DIRTY",e[e.SAVING=1]="SAVING",e[e.SAVE_ERROR=2]="SAVE_ERROR",e[e.SAVED=3]="SAVED",e[e.REVERTED=4]="REVERTED",e[e.ENCODING=5]="ENCODING",e[e.CONTENT_CHANGE=6]="CONTENT_CHANGE",e[e.ORPHANED_CHANGE=7]="ORPHANED_CHANGE"}(t.StateChange||(t.StateChange={}));var i=function(){function e(e,t){this._resource=e.getResource(),this._kind=t}return Object.defineProperty(e.prototype,"resource",{get:function(){return this._resource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kind",{get:function(){return this._kind},enumerable:!0,configurable:!0}),e}();t.TextFileModelChangeEvent=i,t.TEXT_FILE_SERVICE_ID="textFileService",t.AutoSaveContext=new r.RawContextKey("config.files.autoSave",void 0);!function(e){e[e.OFF=0]="OFF",
e[e.AFTER_SHORT_DELAY=1]="AFTER_SHORT_DELAY",e[e.AFTER_LONG_DELAY=2]="AFTER_LONG_DELAY",e[e.ON_FOCUS_CHANGE=3]="ON_FOCUS_CHANGE",e[e.ON_WINDOW_CHANGE=4]="ON_WINDOW_CHANGE"}(t.AutoSaveMode||(t.AutoSaveMode={}));!function(e){e[e.EXPLICIT=1]="EXPLICIT",e[e.AUTO=2]="AUTO",e[e.FOCUS_CHANGE=3]="FOCUS_CHANGE",e[e.WINDOW_CHANGE=4]="WINDOW_CHANGE"}(t.SaveReason||(t.SaveReason={})),t.ITextFileService=n.createDecorator(t.TEXT_FILE_SERVICE_ID)}),define(e[19],t([0,1,31,10,22,3,195,78,73,63,169]),function(e,t,n,r,i,o,a,u,c,l,f){"use strict";function d(e){return 0===e.length||!!function(e){return void 0!==e.range}(e[0])}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.to=function(e){var t=e.selectionStartLineNumber,n=e.selectionStartColumn,i=e.positionLineNumber,o=e.positionColumn,s=new r.Position(t-1,n-1),a=new r.Position(i-1,o-1);return new r.Selection(s,a)},e.from=function(e){var t=e.anchor,n=e.active;return{selectionStartLineNumber:t.line+1,selectionStartColumn:t.character+1,positionLineNumber:n.line+1,
positionColumn:n.character+1}}}(t.Selection||(t.Selection={}));var h;!function(e){e.from=function(e){if(e){var t=e.start,n=e.end;return{startLineNumber:t.line+1,startColumn:t.character+1,endLineNumber:n.line+1,endColumn:n.character+1}}},e.to=function(e){if(e){var t=e.startLineNumber,n=e.startColumn,i=e.endLineNumber,o=e.endColumn;return new r.Range(t-1,n-1,i-1,o-1)}}}(h=t.Range||(t.Range={}));!function(e){e.to=function(e){return new r.Position(e.lineNumber-1,e.column-1)},e.from=function(e){return{lineNumber:e.line+1,column:e.character+1}}}(t.Position||(t.Position={}));var p;!function(e){e.from=function(e){switch(e){case r.DiagnosticTag.Unnecessary:return l.MarkerTag.Unnecessary}}}(p=t.DiagnosticTag||(t.DiagnosticTag={}));!function(e){e.from=function(e){return s({},h.from(e.range),{message:e.message,source:e.source,code:String(e.code),severity:m.from(e.severity),relatedInformation:e.relatedInformation&&e.relatedInformation.map(g.from),tags:Array.isArray(e.tags)?e.tags.map(p.from):void 0})}
}(t.Diagnostic||(t.Diagnostic={}));var g;!function(e){e.from=function(e){return s({},h.from(e.location.range),{message:e.message,resource:e.location.uri})},e.to=function(e){return new r.DiagnosticRelatedInformation(new r.Location(e.resource,h.to(e)),e.message)}}(g=t.DiagnosticRelatedInformation||(t.DiagnosticRelatedInformation={}));var m;!function(e){e.from=function(e){switch(e){case r.DiagnosticSeverity.Error:return l.MarkerSeverity.Error;case r.DiagnosticSeverity.Warning:return l.MarkerSeverity.Warning;case r.DiagnosticSeverity.Information:return l.MarkerSeverity.Info;case r.DiagnosticSeverity.Hint:return l.MarkerSeverity.Hint}return l.MarkerSeverity.Error},e.to=function(e){switch(e){case l.MarkerSeverity.Info:return r.DiagnosticSeverity.Information;case l.MarkerSeverity.Warning:return r.DiagnosticSeverity.Warning;case l.MarkerSeverity.Error:return r.DiagnosticSeverity.Error;case l.MarkerSeverity.Hint:return r.DiagnosticSeverity.Hint}return r.DiagnosticSeverity.Error}
}(m=t.DiagnosticSeverity||(t.DiagnosticSeverity={}));!function(e){e.from=function(e){return"number"==typeof e&&e>=r.ViewColumn.One?e-1:e===r.ViewColumn.Beside?f.SIDE_GROUP:f.ACTIVE_GROUP},e.to=function(e){if("number"==typeof e&&e>=0)return e+1}}(t.ViewColumn||(t.ViewColumn={})),t.isDecorationOptionsArr=d;var v;!function(e){e.fromMany=function(t){return t.map(e.from)},e.from=function(e){if(function(e){return e&&"object"==typeof e&&"string"==typeof e.language&&"string"==typeof e.value}(e))return{value:"```"+e.language+"\n"+e.value+"\n```\n"};return c.isMarkdownString(e)?e:"string"==typeof e?{value:e}:{value:""}},e.to=function(e){var t=new c.MarkdownString(e.value);return t.isTrusted=e.isTrusted,t},e.fromStrict=function(t){if(t)return"string"==typeof t?t:e.from(t)}}(v=t.MarkdownString||(t.MarkdownString={})),t.fromRangeOrRangeWithMessage=function(e){return d(e)?e.map(function(e){return{range:h.from(e.range),
hoverMessage:Array.isArray(e.hoverMessage)?v.fromMany(e.hoverMessage):e.hoverMessage&&v.from(e.hoverMessage),renderOptions:e.renderOptions}}):e.map(function(e){return{range:h.from(e)}})},t.TextEdit={from:function(e){return{text:e.newText,eol:E.from(e.newEol),range:h.from(e.range)}},to:function(e){var t=new r.TextEdit(h.to(e.range),e.text);return t.newEol=E.to(e.eol),t}};!function(e){e.from=function(e,n){for(var r={edits:[]},i=0,o=e._allEntries();i<o.length;i++){var s=o[i],a=s[0],u=s[1];if(Array.isArray(u)){var c=n?n.getDocument(a.toString()):void 0;r.edits.push({resource:a,modelVersionId:c&&c.version,edits:u.map(t.TextEdit.from)})}else r.edits.push({oldUri:a,newUri:u,options:s[2]})}return r},e.to=function(e){for(var n=new r.WorkspaceEdit,i=0,s=e.edits;i<s.length;i++){var a=s[i];Array.isArray(a.edits)?n.set(o.default.revive(a.resource),a.edits.map(t.TextEdit.to)):n.renameFile(o.default.revive(a.oldUri),o.default.revive(a.newUri),a.options)}return n}}(t.WorkspaceEdit||(t.WorkspaceEdit={}));var _;!function(e){
var t=Object.create(null);t[r.SymbolKind.File]=n.SymbolKind.File,t[r.SymbolKind.Module]=n.SymbolKind.Module,t[r.SymbolKind.Namespace]=n.SymbolKind.Namespace,t[r.SymbolKind.Package]=n.SymbolKind.Package,t[r.SymbolKind.Class]=n.SymbolKind.Class,t[r.SymbolKind.Method]=n.SymbolKind.Method,t[r.SymbolKind.Property]=n.SymbolKind.Property,t[r.SymbolKind.Field]=n.SymbolKind.Field,t[r.SymbolKind.Constructor]=n.SymbolKind.Constructor,t[r.SymbolKind.Enum]=n.SymbolKind.Enum,t[r.SymbolKind.Interface]=n.SymbolKind.Interface,t[r.SymbolKind.Function]=n.SymbolKind.Function,t[r.SymbolKind.Variable]=n.SymbolKind.Variable,t[r.SymbolKind.Constant]=n.SymbolKind.Constant,t[r.SymbolKind.String]=n.SymbolKind.String,t[r.SymbolKind.Number]=n.SymbolKind.Number,t[r.SymbolKind.Boolean]=n.SymbolKind.Boolean,t[r.SymbolKind.Array]=n.SymbolKind.Array,t[r.SymbolKind.Object]=n.SymbolKind.Object,t[r.SymbolKind.Key]=n.SymbolKind.Key,t[r.SymbolKind.Null]=n.SymbolKind.Null,t[r.SymbolKind.EnumMember]=n.SymbolKind.EnumMember,
t[r.SymbolKind.Struct]=n.SymbolKind.Struct,t[r.SymbolKind.Event]=n.SymbolKind.Event,t[r.SymbolKind.Operator]=n.SymbolKind.Operator,t[r.SymbolKind.TypeParameter]=n.SymbolKind.TypeParameter,e.from=function(e){return t[e]||n.SymbolKind.Property},e.to=function(e){for(var n in t)if(t[n]===e)return Number(n);return r.SymbolKind.Property}}(_=t.SymbolKind||(t.SymbolKind={}));!function(e){e.from=function(e){return{name:e.name,kind:_.from(e.kind),containerName:e.containerName,location:t.location.from(e.location)}},e.to=function(e){return new r.SymbolInformation(e.name,_.to(e.kind),e.containerName,t.location.to(e.location))}}(t.WorkspaceSymbol||(t.WorkspaceSymbol={}));!function(e){function t(e){var n={name:e.name,detail:e.detail,range:h.from(e.range),selectionRange:h.from(e.selectionRange),kind:_.from(e.kind)};return e.children&&(n.children=e.children.map(t)),n}function n(e){var t=new r.DocumentSymbol(e.name,e.detail,_.to(e.kind),h.to(e.range),h.to(e.selectionRange));return e.children&&(t.children=e.children.map(n)),t}
e.from=t,e.to=n}(t.DocumentSymbol||(t.DocumentSymbol={})),t.location={from:function(e){return{range:e.range&&h.from(e.range),uri:e.uri}},to:function(e){return new r.Location(e.uri,h.to(e.range))}};!function(e){e.from=function(e){return{range:h.from(e.range),contents:v.fromMany(e.contents)}},e.to=function(e){return new r.Hover(e.contents.map(v.to),h.to(e.range))}}(t.Hover||(t.Hover={}));!function(e){e.from=function(e){return{range:h.from(e.range),kind:e.kind}},e.to=function(e){return new r.DocumentHighlight(h.to(e.range),e.kind)}}(t.DocumentHighlight||(t.DocumentHighlight={}));var y;!function(e){e.from=function(e){switch(e){case n.SuggestTriggerKind.TriggerCharacter:return r.CompletionTriggerKind.TriggerCharacter;case n.SuggestTriggerKind.TriggerForIncompleteCompletions:return r.CompletionTriggerKind.TriggerForIncompleteCompletions;case n.SuggestTriggerKind.Invoke:default:return r.CompletionTriggerKind.Invoke}}}(y=t.CompletionTriggerKind||(t.CompletionTriggerKind={}));!function(e){e.from=function(e){return{
triggerKind:y.from(e.triggerKind),triggerCharacter:e.triggerCharacter}}}(t.CompletionContext||(t.CompletionContext={})),t.CompletionItemKind={from:function(e){switch(e){case r.CompletionItemKind.Method:return"method";case r.CompletionItemKind.Function:return"function";case r.CompletionItemKind.Constructor:return"constructor";case r.CompletionItemKind.Field:return"field";case r.CompletionItemKind.Variable:return"variable";case r.CompletionItemKind.Class:return"class";case r.CompletionItemKind.Interface:return"interface";case r.CompletionItemKind.Struct:return"struct";case r.CompletionItemKind.Module:return"module";case r.CompletionItemKind.Property:return"property";case r.CompletionItemKind.Unit:return"unit";case r.CompletionItemKind.Value:return"value";case r.CompletionItemKind.Constant:return"constant";case r.CompletionItemKind.Enum:return"enum";case r.CompletionItemKind.EnumMember:return"enum-member";case r.CompletionItemKind.Keyword:return"keyword";case r.CompletionItemKind.Snippet:return"snippet"
;case r.CompletionItemKind.Text:return"text";case r.CompletionItemKind.Color:return"color";case r.CompletionItemKind.File:return"file";case r.CompletionItemKind.Reference:return"reference";case r.CompletionItemKind.Folder:return"folder";case r.CompletionItemKind.Event:return"event";case r.CompletionItemKind.Operator:return"operator";case r.CompletionItemKind.TypeParameter:return"type-parameter"}return"property"},to:function(e){return e?r.CompletionItemKind[e.charAt(0).toUpperCase()+e.substr(1)]:r.CompletionItemKind.Property}};!function(e){e.to=function(e,n){var i=new r.CompletionItem(n.label);i.insertText=n.insertText,i.kind=t.CompletionItemKind.to(n.type),i.detail=n.detail,i.documentation=c.isMarkdownString(n.documentation)?v.to(n.documentation):n.documentation,i.sortText=n.sortText,i.filterText=n.filterText;var o="number"==typeof n.overwriteBefore?n.overwriteBefore:0,s=new r.Position(e.line,Math.max(0,e.character-o)),a=e
;return"number"==typeof n.overwriteAfter&&(a=new r.Position(e.line,e.character+n.overwriteAfter)),i.range=new r.Range(s,a),"textmate"===n.snippetType?i.insertText=new r.SnippetString(n.insertText):(i.insertText=n.insertText,i.textEdit=new r.TextEdit(i.range,i.insertText)),i}}(t.Suggest||(t.Suggest={}));var b;!function(e){e.from=function(e){return{label:e.label,documentation:v.fromStrict(e.documentation)}},e.to=function(e){return{label:e.label,documentation:c.isMarkdownString(e.documentation)?v.to(e.documentation):e.documentation}}}(b=t.ParameterInformation||(t.ParameterInformation={}));var C;!function(e){e.from=function(e){return{label:e.label,documentation:v.fromStrict(e.documentation),parameters:e.parameters&&e.parameters.map(b.from)}},e.to=function(e){return{label:e.label,documentation:c.isMarkdownString(e.documentation)?v.to(e.documentation):e.documentation,parameters:e.parameters&&e.parameters.map(b.to)}}}(C=t.SignatureInformation||(t.SignatureInformation={}));!function(e){e.from=function(e){return{
activeSignature:e.activeSignature,activeParameter:e.activeParameter,signatures:e.signatures&&e.signatures.map(C.from)}},e.to=function(e){return{activeSignature:e.activeSignature,activeParameter:e.activeParameter,signatures:e.signatures&&e.signatures.map(C.to)}}}(t.SignatureHelp||(t.SignatureHelp={}));!function(e){e.from=function(e){return{range:h.from(e.range),url:e.target&&e.target.toString()}},e.to=function(e){return new r.DocumentLink(h.to(e.range),e.url&&o.default.parse(e.url))}}(t.DocumentLink||(t.DocumentLink={}));!function(e){e.to=function(e){var n=new r.ColorPresentation(e.label);return e.textEdit&&(n.textEdit=t.TextEdit.to(e.textEdit)),e.additionalTextEdits&&(n.additionalTextEdits=e.additionalTextEdits.map(function(e){return t.TextEdit.to(e)})),n},e.from=function(e){return{label:e.label,textEdit:e.textEdit?t.TextEdit.from(e.textEdit):void 0,additionalTextEdits:e.additionalTextEdits?e.additionalTextEdits.map(function(e){return t.TextEdit.from(e)}):void 0}}
}(t.ColorPresentation||(t.ColorPresentation={}));!function(e){e.to=function(e){return new r.Color(e[0],e[1],e[2],e[3])},e.from=function(e){return[e.red,e.green,e.blue,e.alpha]}}(t.Color||(t.Color={}));!function(e){e.to=function(e){switch(e){case u.SaveReason.AUTO:return r.TextDocumentSaveReason.AfterDelay;case u.SaveReason.EXPLICIT:return r.TextDocumentSaveReason.Manual;case u.SaveReason.FOCUS_CHANGE:case u.SaveReason.WINDOW_CHANGE:return r.TextDocumentSaveReason.FocusOut}}}(t.TextDocumentSaveReason||(t.TextDocumentSaveReason={}));var E;!function(e){e.from=function(e){return e===r.EndOfLine.CRLF?i.EndOfLineSequence.CRLF:e===r.EndOfLine.LF?i.EndOfLineSequence.LF:void 0},e.to=function(e){return e===i.EndOfLineSequence.CRLF?r.EndOfLine.CRLF:e===i.EndOfLineSequence.LF?r.EndOfLine.LF:void 0}}(E=t.EndOfLine||(t.EndOfLine={}));!function(e){e.from=function(e){switch(e){case r.ProgressLocation.SourceControl:return a.ProgressLocation.Scm;case r.ProgressLocation.Window:return a.ProgressLocation.Window
;case r.ProgressLocation.Notification:return a.ProgressLocation.Notification}}}(t.ProgressLocation||(t.ProgressLocation={}));!function(e){e.from=function(e){var t={start:e.start+1,end:e.end+1};return e.kind&&(t.kind=S.from(e.kind)),t}}(t.FoldingRange||(t.FoldingRange={}));var S;!function(e){e.from=function(e){if(e)switch(e){case r.FoldingRangeKind.Comment:return n.FoldingRangeKind.Comment;case r.FoldingRangeKind.Imports:return n.FoldingRangeKind.Imports;case r.FoldingRangeKind.Region:return n.FoldingRangeKind.Region}}}(S=t.FoldingRangeKind||(t.FoldingRangeKind={}));!function(e){e.from=function(e){if(e)return{pinned:"boolean"==typeof e.preview?!e.preview:void 0,preserveFocus:e.preserveFocus,selection:"object"==typeof e.selection?h.from(e.selection):void 0}}}(t.TextEditorOptions||(t.TextEditorOptions={}));var x;!function(e){e.from=function(e){return"string"==typeof e?e:function(t){var n=e;return n&&"string"==typeof n.base&&"string"==typeof n.pattern}()?new r.RelativePattern(e.base,e.pattern):e}
}(x=t.GlobPattern||(t.GlobPattern={}));!function(e){function t(e){return e?Array.isArray(e)?e.map(t):"string"==typeof e?e:{language:e.language,scheme:e.scheme,pattern:x.from(e.pattern),exclusive:e.exclusive}:void 0}e.from=t}(t.LanguageSelector||(t.LanguageSelector={}))}),define(e[199],t([0,1,19,124]),function(e,t,n,r){"use strict";function i(e){return function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return e.apply(void 0,[t.get(r.ICommandService)].concat(n))}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){}return e.execute=function(e,t,r,i,o){return e.executeCommand("_workbench.previewHtml",t,"number"==typeof r&&n.ViewColumn.from(r),i,o)},e.ID="vscode.previewHtml",e}();t.PreviewHTMLAPICommand=o,r.CommandsRegistry.registerCommand(o.ID,i(o.execute));var s=function(){function e(){}return e.execute=function(e,t,n){return t?e.executeCommand("_files.windowOpen",[t.fsPath],n):e.executeCommand("_files.pickFolderAndOpen",n)},e.ID="vscode.openFolder",e}()
;t.OpenFolderAPICommand=s,r.CommandsRegistry.registerCommand(s.ID,i(s.execute));var a=function(){function e(){}return e.execute=function(e,t,r,i,o){return e.executeCommand("_workbench.diff",[t,r,i,void 0,n.TextEditorOptions.from(o),o?n.ViewColumn.from(o.viewColumn):void 0])},e.ID="vscode.diff",e}();t.DiffAPICommand=a,r.CommandsRegistry.registerCommand(a.ID,i(a.execute));var u=function(){function e(){}return e.execute=function(e,t,r){var i,o;return r&&("number"==typeof r?o=n.ViewColumn.from(r):(i=n.TextEditorOptions.from(r),o=n.ViewColumn.from(r.viewColumn))),e.executeCommand("_workbench.open",[t,i,o])},e.ID="vscode.open",e}();t.OpenAPICommand=u,r.CommandsRegistry.registerCommand(u.ID,i(u.execute));var c=function(){function e(){}return e.execute=function(e,t){return e.executeCommand("_workbench.removeFromRecentlyOpened",t)},e.ID="vscode.removeFromRecentlyOpened",e}();t.RemoveFromRecentlyOpenedAPICommand=c,r.CommandsRegistry.registerCommand(c.ID,i(c.execute));var l=function(){function e(){}
return e.execute=function(e,t){return e.executeCommand("layoutEditorGroups",t)},e.ID="vscode.setEditorLayout",e}();t.SetEditorLayoutAPICommand=l,r.CommandsRegistry.registerCommand(l.ID,i(l.execute))}),define(e[200],t([0,1,3,2,19,10,199,12]),function(e,t,n,r,i,o,s,a){"use strict";function u(e){return function(t){if(Array.isArray(t))return t.map(e)}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e){this._disposables=[],this._commands=e}return e.register=function(t){return new e(t).registerCommands()},e.prototype.registerCommands=function(){var e=this;this._register("vscode.executeWorkspaceSymbolProvider",this._executeWorkspaceSymbolProvider,{description:"Execute all workspace symbol provider.",args:[{name:"query",description:"Search string",constraint:String}],returns:"A promise that resolves to an array of SymbolInformation-instances."}),this._register("vscode.executeDefinitionProvider",this._executeDefinitionProvider,{description:"Execute all definition provider.",args:[{
name:"uri",description:"Uri of a text document",constraint:n.default},{name:"position",description:"Position of a symbol",constraint:o.Position}],returns:"A promise that resolves to an array of Location-instances."}),this._register("vscode.executeTypeDefinitionProvider",this._executeTypeDefinitionProvider,{description:"Execute all type definition providers.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"position",description:"Position of a symbol",constraint:o.Position}],returns:"A promise that resolves to an array of Location-instances."}),this._register("vscode.executeImplementationProvider",this._executeImplementationProvider,{description:"Execute all implementation providers.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"position",description:"Position of a symbol",constraint:o.Position}],returns:"A promise that resolves to an array of Location-instance."}),this._register("vscode.executeHoverProvider",this._executeHoverProvider,{
description:"Execute all hover provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"position",description:"Position of a symbol",constraint:o.Position}],returns:"A promise that resolves to an array of Hover-instances."}),this._register("vscode.executeDocumentHighlights",this._executeDocumentHighlights,{description:"Execute document highlight provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"position",description:"Position in a text document",constraint:o.Position}],returns:"A promise that resolves to an array of DocumentHighlight-instances."}),this._register("vscode.executeReferenceProvider",this._executeReferenceProvider,{description:"Execute reference provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"position",description:"Position in a text document",constraint:o.Position}],returns:"A promise that resolves to an array of Location-instances."}),
this._register("vscode.executeDocumentRenameProvider",this._executeDocumentRenameProvider,{description:"Execute rename provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"position",description:"Position in a text document",constraint:o.Position},{name:"newName",description:"The new symbol name",constraint:String}],returns:"A promise that resolves to a WorkspaceEdit."}),this._register("vscode.executeSignatureHelpProvider",this._executeSignatureHelpProvider,{description:"Execute signature help provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"position",description:"Position in a text document",constraint:o.Position},{name:"triggerCharacter",description:"(optional) Trigger signature help when the user types the character, like `,` or `(`",constraint:function(e){return void 0===e||"string"==typeof e}}],returns:"A promise that resolves to SignatureHelp."}),
this._register("vscode.executeDocumentSymbolProvider",this._executeDocumentSymbolProvider,{description:"Execute document symbol provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default}],returns:"A promise that resolves to an array of SymbolInformation-instances."}),this._register("vscode.executeCompletionItemProvider",this._executeCompletionItemProvider,{description:"Execute completion item provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"position",description:"Position in a text document",constraint:o.Position},{name:"triggerCharacter",description:"(optional) Trigger completion when the user types the character, like `,` or `(`",constraint:function(e){return void 0===e||"string"==typeof e}},{name:"itemResolveCount",description:"(optional) Number of completions to resolve (too large numbers slow down completions)",constraint:function(e){return void 0===e||"number"==typeof e}}],
returns:"A promise that resolves to a CompletionList-instance."}),this._register("vscode.executeCodeActionProvider",this._executeCodeActionProvider,{description:"Execute code action provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"range",description:"Range in a text document",constraint:o.Range}],returns:"A promise that resolves to an array of Command-instances."}),this._register("vscode.executeCodeLensProvider",this._executeCodeLensProvider,{description:"Execute CodeLens provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"itemResolveCount",description:"(optional) Number of lenses that should be resolved and returned. Will only retrun resolved lenses, will impact performance)",constraint:function(e){return void 0===e||"number"==typeof e}}],returns:"A promise that resolves to an array of CodeLens-instances."}),this._register("vscode.executeFormatDocumentProvider",this._executeFormatDocumentProvider,{
description:"Execute document format provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"options",description:"Formatting options"}],returns:"A promise that resolves to an array of TextEdits."}),this._register("vscode.executeFormatRangeProvider",this._executeFormatRangeProvider,{description:"Execute range format provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"range",description:"Range in a text document",constraint:o.Range},{name:"options",description:"Formatting options"}],returns:"A promise that resolves to an array of TextEdits."}),this._register("vscode.executeFormatOnTypeProvider",this._executeFormatOnTypeProvider,{description:"Execute document format provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default},{name:"position",description:"Position in a text document",constraint:o.Position},{name:"ch",description:"Character that got typed",constraint:String},{name:"options",
description:"Formatting options"}],returns:"A promise that resolves to an array of TextEdits."}),this._register("vscode.executeLinkProvider",this._executeDocumentLinkProvider,{description:"Execute document link provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default}],returns:"A promise that resolves to an array of DocumentLink-instances."}),this._register("vscode.executeDocumentColorProvider",this._executeDocumentColorProvider,{description:"Execute document color provider.",args:[{name:"uri",description:"Uri of a text document",constraint:n.default}],returns:"A promise that resolves to an array of ColorInformation objects."}),this._register("vscode.executeColorPresentationProvider",this._executeColorPresentationProvider,{description:"Execute color presentation provider.",args:[{name:"color",description:"The color to show and insert",constraint:o.Color},{name:"context",description:"Context object with uri and range"}],
returns:"A promise that resolves to an array of ColorPresentation objects."});var t=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.apply(void 0,[e._commands].concat(n))}};this._register(s.PreviewHTMLAPICommand.ID,t(s.PreviewHTMLAPICommand.execute),{description:"\n\t\t\t\t\tRender the HTML of the resource in an editor view.\n\n\t\t\t\t\tSee [working with the HTML preview](https://code.visualstudio.com/docs/extensionAPI/vscode-api-commands#working-with-the-html-preview) for more information about the HTML preview's integration with the editor and for best practices for extension authors.\n\t\t\t\t",args:[{name:"uri",description:"Uri of the resource to preview.",constraint:function(e){return e instanceof n.default||"string"==typeof e}},{name:"column",description:"(optional) Column in which to preview.",constraint:function(e){return void 0===e||"number"==typeof e&&"string"==typeof o.ViewColumn[e]}},{name:"label",
description:"(optional) An human readable string that is used as title for the preview.",constraint:function(e){return"string"==typeof e||void 0===e}},{name:"options",description:"(optional) Options for controlling webview environment.",constraint:function(e){return"object"==typeof e||void 0===e}}]}),this._register(s.OpenFolderAPICommand.ID,t(s.OpenFolderAPICommand.execute),{description:"Open a folder or workspace in the current window or new window depending on the newWindow argument. Note that opening in the same window will shutdown the current extension host process and start a new one on the given folder/workspace unless the newWindow parameter is set to true.",args:[{name:"uri",description:"(optional) Uri of the folder or workspace file to open. If not provided, a native dialog will ask the user for the folder",constraint:function(e){return void 0===e||e instanceof n.default}},{name:"newWindow",
description:"(optional) Whether to open the folder/workspace in a new window or the same. Defaults to opening in the same window.",constraint:function(e){return void 0===e||"boolean"==typeof e}}]}),this._register(s.DiffAPICommand.ID,t(s.DiffAPICommand.execute),{description:"Opens the provided resources in the diff editor to compare their contents.",args:[{name:"left",description:"Left-hand side resource of the diff editor",constraint:n.default},{name:"right",description:"Right-hand side resource of the diff editor",constraint:n.default},{name:"title",description:"(optional) Human readable title for the diff editor",constraint:function(e){return void 0===e||"string"==typeof e}},{name:"options",description:"(optional) Editor options, see vscode.TextDocumentShowOptions"}]}),this._register(s.OpenAPICommand.ID,t(s.OpenAPICommand.execute),{
description:"Opens the provided resource in the editor. Can be a text or binary file, or a http(s) url. If you need more control over the options for opening a text file, use vscode.window.showTextDocument instead.",args:[{name:"resource",description:"Resource to open",constraint:n.default},{name:"columnOrOptions",description:"(optional) Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",constraint:function(e){return void 0===e||"number"==typeof e||"object"==typeof e}}]}),this._register(s.RemoveFromRecentlyOpenedAPICommand.ID,t(s.RemoveFromRecentlyOpenedAPICommand.execute),{description:"Removes an entry with the given path from the recently opened list.",args:[{name:"path",description:"Path to remove from recently opened.",constraint:function(e){return"string"==typeof e}}]}),this._register(s.SetEditorLayoutAPICommand.ID,t(s.SetEditorLayoutAPICommand.execute),{
description:"Sets the editor layout. The layout is described as object with an initial (optional) orientation (0 = horizontal, 1 = vertical) and an array of editor groups within. Each editor group can have a size and another array of editor groups that will be layed out orthogonal to the orientation. If editor group sizes are provided, their sum must be 1 to be applied per row or column. Example for a 2x2 grid: `{ orientation: 0, groups: [{ groups: [{}, {}], size: 0.5 }, { groups: [{}, {}], size: 0.5 }] }`",args:[{name:"layout",description:"The editor layout to set.",constraint:function(e){return"object"==typeof e&&Array.isArray(e.groups)}}]})},e.prototype._register=function(e,t,n){var r=this._commands.registerCommand(!1,e,t,this,n);this._disposables.push(r)},e.prototype._executeWorkspaceSymbolProvider=function(e){return this._commands.executeCommand("_executeWorkspaceSymbolProvider",{query:e}).then(function(e){var t=[];if(Array.isArray(e))for(var n=0,r=e;n<r.length;n++){var o=r[n]
;t.push.apply(t,o[1].map(i.WorkspaceSymbol.to))}return t})},e.prototype._executeDefinitionProvider=function(e,t){var n={resource:e,position:t&&i.Position.from(t)};return this._commands.executeCommand("_executeDefinitionProvider",n).then(u(i.location.to))},e.prototype._executeTypeDefinitionProvider=function(e,t){var n={resource:e,position:t&&i.Position.from(t)};return this._commands.executeCommand("_executeTypeDefinitionProvider",n).then(u(i.location.to))},e.prototype._executeImplementationProvider=function(e,t){var n={resource:e,position:t&&i.Position.from(t)};return this._commands.executeCommand("_executeImplementationProvider",n).then(u(i.location.to))},e.prototype._executeHoverProvider=function(e,t){var n={resource:e,position:t&&i.Position.from(t)};return this._commands.executeCommand("_executeHoverProvider",n).then(u(i.Hover.to))},e.prototype._executeDocumentHighlights=function(e,t){var n={resource:e,position:t&&i.Position.from(t)}
;return this._commands.executeCommand("_executeDocumentHighlights",n).then(u(i.DocumentHighlight.to))},e.prototype._executeReferenceProvider=function(e,t){var n={resource:e,position:t&&i.Position.from(t)};return this._commands.executeCommand("_executeReferenceProvider",n).then(u(i.location.to))},e.prototype._executeDocumentRenameProvider=function(e,t,n){var o={resource:e,position:t&&i.Position.from(t),newName:n};return this._commands.executeCommand("_executeDocumentRenameProvider",o).then(function(e){if(e)return e.rejectReason?r.TPromise.wrapError(new Error(e.rejectReason)):i.WorkspaceEdit.to(e)})},e.prototype._executeSignatureHelpProvider=function(e,t,n){var r={resource:e,position:t&&i.Position.from(t),triggerCharacter:n};return this._commands.executeCommand("_executeSignatureHelpProvider",r).then(function(e){if(e)return i.SignatureHelp.to(e)})},e.prototype._executeCompletionItemProvider=function(e,t,n,r){var s={resource:e,position:t&&i.Position.from(t),triggerCharacter:n,maxItemsToResolve:r}
;return this._commands.executeCommand("_executeCompletionItemProvider",s).then(function(e){if(e){var n=e.suggestions.map(function(e){return i.Suggest.to(t,e)});return new o.CompletionList(n,e.incomplete)}})},e.prototype._executeDocumentColorProvider=function(e){var t={resource:e};return this._commands.executeCommand("_executeDocumentColorProvider",t).then(function(e){return e?e.map(function(e){return{range:i.Range.to(e.range),color:i.Color.to(e.color)}}):[]})},e.prototype._executeColorPresentationProvider=function(e,t){var n={resource:t.uri,color:i.Color.from(e),range:i.Range.from(t.range)};return this._commands.executeCommand("_executeColorPresentationProvider",n).then(function(e){return e?e.map(i.ColorPresentation.to):[]})},e.prototype._executeDocumentSymbolProvider=function(e){var t={resource:e};return this._commands.executeCommand("_executeDocumentSymbolProvider",t).then(function(t){if(!a.isFalsyOrEmpty(t)){for(var n=[],r=0,s=t;r<s.length;r++){var u=s[r]
;n.push(new o.SymbolInformation(u.name,i.SymbolKind.to(u.kind),u.containerName,new o.Location(e,i.Range.to(u.range))))}return n}})},e.prototype._executeCodeActionProvider=function(e,t){var n=this,r={resource:e,range:i.Range.from(t)};return this._commands.executeCommand("_executeCodeActionProvider",r).then(u(function(e){if(e._isSynthetic)return n._commands.converter.fromInternal(e.command);var t=new o.CodeAction(e.title,e.kind?new o.CodeActionKind(e.kind):void 0);return e.edit&&(t.edit=i.WorkspaceEdit.to(e.edit)),e.command&&(t.command=n._commands.converter.fromInternal(e.command)),t}))},e.prototype._executeCodeLensProvider=function(e,t){var n=this,r={resource:e,itemResolveCount:t};return this._commands.executeCommand("_executeCodeLensProvider",r).then(u(function(e){return new o.CodeLens(i.Range.to(e.range),n._commands.converter.fromInternal(e.command))}))},e.prototype._executeFormatDocumentProvider=function(e,t){var n={resource:e,options:t}
;return this._commands.executeCommand("_executeFormatDocumentProvider",n).then(u(function(e){return new o.TextEdit(i.Range.to(e.range),e.text)}))},e.prototype._executeFormatRangeProvider=function(e,t,n){var r={resource:e,range:i.Range.from(t),options:n};return this._commands.executeCommand("_executeFormatRangeProvider",r).then(u(function(e){return new o.TextEdit(i.Range.to(e.range),e.text)}))},e.prototype._executeFormatOnTypeProvider=function(e,t,n,r){var s={resource:e,position:i.Position.from(t),ch:n,options:r};return this._commands.executeCommand("_executeFormatOnTypeProvider",s).then(u(function(e){return new o.TextEdit(i.Range.to(e.range),e.text)}))},e.prototype._executeDocumentLinkProvider=function(e){return this._commands.executeCommand("_executeLinkProvider",e).then(u(i.DocumentLink.to))},e}();t.ExtHostApiCommands=c}),define(e[201],t([0,1,18,10,19,16,5,12,83]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t,n){
this._commands=new Map,this._proxy=e.getProxy(s.MainContext.MainThreadCommands),this._logService=n,this._converter=new l(this,t),this._argumentProcessors=[{processArgument:function(e){return u.revive(e,0)}}]}return Object.defineProperty(e.prototype,"converter",{get:function(){return this._converter},enumerable:!0,configurable:!0}),e.prototype.registerArgumentProcessor=function(e){this._argumentProcessors.push(e)},e.prototype.registerCommand=function(e,t,n,i,o){var s=this;if(this._logService.trace("ExtHostCommands#registerCommand",t),!t.trim().length)throw new Error("invalid id");if(this._commands.has(t))throw new Error("command '"+t+"' already exists");return this._commands.set(t,{callback:n,thisArg:i,description:o}),e&&this._proxy.$registerCommand(t),new r.Disposable(function(){s._commands.delete(t)&&e&&s._proxy.$unregisterCommand(t)})},e.prototype.executeCommand=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this._logService.trace("ExtHostCommands#executeCommand",e),
this._commands.has(e)?this._executeContributedCommand(e,t):(t=o.cloneAndChange(t,function(e){return e instanceof r.Position?i.Position.from(e):e instanceof r.Range?i.Range.from(e):e instanceof r.Location?i.location.from(e):Array.isArray(e)?void 0:e}),this._proxy.$executeCommand(e,t).then(function(e){return u.revive(e,0)}))},e.prototype._executeContributedCommand=function(e,t){var r=this._commands.get(e),i=r.callback,o=r.thisArg,s=r.description;if(s)for(var a=0;a<s.args.length;a++)try{n.validateConstraint(t[a],s.args[a].constraint)}catch(t){return Promise.reject(new Error("Running the contributed command:'"+e+"' failed. Illegal argument '"+s.args[a].name+"' - "+s.args[a].description))}try{var u=i.apply(o,t);return Promise.resolve(u)}catch(t){return this._logService.error(t,e),Promise.reject(new Error("Running the contributed command:'"+e+"' failed."))}},e.prototype.$executeContributedCommand=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r]
;return this._logService.trace("ExtHostCommands#$executeContributedCommand",e),this._commands.has(e)?(n=n.map(function(e){return t._argumentProcessors.reduce(function(e,t){return t.processArgument(e)},e)}),this._executeContributedCommand(e,n)):Promise.reject(new Error("Contributed command '"+e+"' does not exist."))},e.prototype.getCommands=function(e){return void 0===e&&(e=!1),this._logService.trace("ExtHostCommands#getCommands",e),this._proxy.$getCommands().then(function(t){return e&&(t=t.filter(function(e){return"_"!==e[0]})),t})},e.prototype.$getContributedCommandHandlerDescriptions=function(){var e=Object.create(null);return this._commands.forEach(function(t,n){var r=t.description;r&&(e[n]=r)}),Promise.resolve(e)},e}();t.ExtHostCommands=c;var l=function(){function e(e,t){this._delegatingCommandId="_internal_command_delegation_"+Date.now(),this._commands=e,this._heap=t,this._commands.registerCommand(!0,this._delegatingCommandId,this._executeConvertedCommand,this)}return e.prototype.toInternal=function(e){
if(e){var t={id:e.command,title:e.title};if(e.command&&!a.isFalsyOrEmpty(e.arguments)){var n=this._heap.keep(e);s.ObjectIdentifier.mixin(t,n),t.id=this._delegatingCommandId,t.arguments=[n]}return e.tooltip&&(t.tooltip=e.tooltip),t}},e.prototype.fromInternal=function(e){if(e){var t=s.ObjectIdentifier.of(e);return"number"==typeof t?this._heap.get(t):{command:e.id,title:e.title,arguments:e.arguments}}},e.prototype._executeConvertedCommand=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this._heap.get(t[0]);return(e=this._commands).executeCommand.apply(e,[r.command].concat(r.arguments))},e}();t.CommandsConverter=l}),define(e[202],t([0,1,15,3,2,19,5]),function(e,t,n,r,i,o,s){"use strict";function a(e,t){return{threadId:e.threadId,resource:e.resource.toString(),range:o.Range.from(e.range),comments:e.comments.map(function(e){return function(e,t){return{commentId:e.commentId,body:o.MarkdownString.from(e.body),userName:e.userName,gravatar:e.gravatar,
command:e.command?t.toInternal(e.command):null}}(e,t)}),collapsibleState:e.collapsibleState}}function u(e){return{commentId:e.commentId,body:o.MarkdownString.to(e.body),userName:e.userName,gravatar:e.gravatar}}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t,n){this._commandsConverter=t,this._documents=n,this._documentProviders=new Map,this._workspaceProviders=new Map,this._proxy=e.getProxy(s.MainContext.MainThreadComments)}return e.prototype.registerWorkspaceCommentProvider=function(t){var n=this,r=e.handlePool++;return this._workspaceProviders.set(r,t),this._proxy.$registerWorkspaceCommentProvider(r),this.registerListeners(r,t),{dispose:function(){n._proxy.$unregisterWorkspaceCommentProvider(r),n._workspaceProviders.delete(r)}}},e.prototype.registerDocumentCommentProvider=function(t){var n=this,r=e.handlePool++;return this._documentProviders.set(r,t),this._proxy.$registerDocumentCommentProvider(r),this.registerListeners(r,t),{dispose:function(){
n._proxy.$unregisterDocumentCommentProvider(r),n._documentProviders.delete(r)}}},e.prototype.$createNewCommentThread=function(e,t,s,u){var c=this,l=this._documents.getDocumentData(r.default.revive(t)),f=o.Range.to(s);return l&&l.document?n.asWinJsPromise(function(t){return c._documentProviders.get(e).createNewCommentThread(l.document,f,u,t)}).then(function(e){return e?a(e,c._commandsConverter):null}):i.TPromise.as(null)},e.prototype.$replyToCommentThread=function(e,t,s,c,l){var f=this,d=this._documents.getDocumentData(r.default.revive(t)),h=o.Range.to(s);return d&&d.document?n.asWinJsPromise(function(t){return f._documentProviders.get(e).replyToCommentThread(d.document,h,function(e){return{threadId:e.threadId,resource:r.default.parse(e.resource),range:o.Range.to(e.range),comments:e.comments.map(u),collapsibleState:e.collapsibleState}}(c),l,t)}).then(function(e){return e?a(e,f._commandsConverter):null}):i.TPromise.as(null)},e.prototype.$provideDocumentComments=function(e,t){
var s=this,u=this._documents.getDocumentData(r.default.revive(t));return u&&u.document?n.asWinJsPromise(function(t){return s._documentProviders.get(e).provideDocumentComments(u.document,t)}).then(function(t){return t?function(e,t,n){return{owner:e,threads:t.threads.map(function(e){return a(e,n)}),commentingRanges:t.commentingRanges?t.commentingRanges.map(function(e){return o.Range.from(e)}):[]}}(e,t,s._commandsConverter):null}):i.TPromise.as(null)},e.prototype.$provideWorkspaceComments=function(e){var t=this,r=this._workspaceProviders.get(e);return r?n.asWinJsPromise(function(e){return r.provideWorkspaceComments(e)}).then(function(e){return e.map(function(e){return a(e,t._commandsConverter)})}):i.TPromise.as(null)},e.prototype.registerListeners=function(e,t){var n=this;t.onDidChangeCommentThreads(function(t){n._proxy.$onDidCommentThreadsChange(e,{owner:e,changed:t.changed.map(function(e){return a(e,n._commandsConverter)}),added:t.added.map(function(e){return a(e,n._commandsConverter)}),
removed:t.removed.map(function(e){return a(e,n._commandsConverter)})})})},e.handlePool=0,e}();t.ExtHostComments=c}),define(e[203],t([0,1,104,63,3,5,10,19,12,4,20]),function(e,t,r,i,o,s,a,u,c,l,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=function(){function e(e,t,n,r){this._isDisposed=!1,this._data=new Map,this._name=e,this._maxDiagnosticsPerFile=t,this._proxy=n,this._onDidChangeDiagnostics=r}return e.prototype.dispose=function(){this._isDisposed||(this._onDidChangeDiagnostics.fire(f.keys(this._data)),this._proxy.$clear(this.name),this._proxy=void 0,this._data=void 0,this._isDisposed=!0)},Object.defineProperty(e.prototype,"name",{get:function(){return this._checkDisposed(),this._name},enumerable:!0,configurable:!0}),e.prototype.set=function(t,n){var s;if(t){this._checkDisposed();var l;if(t instanceof o.default){if(!n)return void this.delete(t);this._data.set(t.toString(),n),l=[t]}else if(Array.isArray(t)){l=[];var f=void 0;c.mergeSort(t,e._compareIndexedTuplesByUri)
;for(var d=0,h=t;d<h.length;d++){var p=h[d],g=p[0],m=p[1];f&&g.toString()===f.toString()||(f&&0===this._data.get(f.toString()).length&&this._data.delete(f.toString()),f=g,l.push(g),this._data.set(g.toString(),[])),m?(s=this._data.get(g.toString())).push.apply(s,m):this._data.get(g.toString()).length=0}}for(var v=[],_=0,y=l;_<y.length;_++){var g=y[_],b=void 0,C=this._data.get(g.toString());if(C)if(C.length>this._maxDiagnosticsPerFile){b=[];var E=[a.DiagnosticSeverity.Error,a.DiagnosticSeverity.Warning,a.DiagnosticSeverity.Information,a.DiagnosticSeverity.Hint];e:for(var S=0;S<4;S++)for(var x=0,w=C;x<w.length;x++){var T=w[x];if(T.severity===E[S]){if(b.push(u.Diagnostic.from(T))===this._maxDiagnosticsPerFile)break e}}b.push({severity:i.MarkerSeverity.Info,message:r.localize(0,null,C.length-this._maxDiagnosticsPerFile),startLineNumber:b[b.length-1].startLineNumber,startColumn:b[b.length-1].startColumn,endLineNumber:b[b.length-1].endLineNumber,endColumn:b[b.length-1].endColumn})}else b=C.map(u.Diagnostic.from)
;v.push([g,b])}this._onDidChangeDiagnostics.fire(l),this._proxy.$changeMany(this.name,v)}else this.clear()},e.prototype.delete=function(e){this._checkDisposed(),this._onDidChangeDiagnostics.fire([e]),this._data.delete(e.toString()),this._proxy.$changeMany(this.name,[[e,void 0]])},e.prototype.clear=function(){this._checkDisposed(),this._onDidChangeDiagnostics.fire(f.keys(this._data)),this._data.clear(),this._proxy.$clear(this.name)},e.prototype.forEach=function(e,t){var n=this;this._checkDisposed(),this._data.forEach(function(r,i){var s=o.default.parse(i);e.apply(t,[s,n.get(s),n])})},e.prototype.get=function(e){this._checkDisposed();var t=this._data.get(e.toString());if(Array.isArray(t))return Object.freeze(t.slice(0))},e.prototype.has=function(e){return this._checkDisposed(),Array.isArray(this._data.get(e.toString()))},e.prototype._checkDisposed=function(){if(this._isDisposed)throw new Error("illegal state - object is disposed")},e._compareIndexedTuplesByUri=function(e,t){
return e[0].toString()<t[0].toString()?-1:e[0].toString()>t[0].toString()?1:0},e}();t.DiagnosticCollection=d;var h=function(){function e(t){this._collections=[],this._onDidChangeDiagnostics=new l.Emitter,this.onDidChangeDiagnostics=l.mapEvent(l.debounceEvent(this._onDidChangeDiagnostics.event,e._debouncer,50),e._mapper),this._proxy=t.getProxy(s.MainContext.MainThreadDiagnostics)}return e._debouncer=function(e,t){return e?e.concat(t):t},e._mapper=function(e){for(var t=[],n=new Set,r=0,i=e;r<i.length;r++){var s=i[r];"string"==typeof s?n.has(s)||(n.add(s),t.push(o.default.parse(s))):n.has(s.toString())||(n.add(s.toString()),t.push(s))}return Object.freeze(t),{uris:t}},e.prototype.createDiagnosticCollection=function(t){t||(t="_generated_diagnostic_collection_name_#"+e._idPool++);var r=this._collections,i=this._proxy,o=this._onDidChangeDiagnostics;return new(function(s){function a(){var n=s.call(this,t,e._maxDiagnosticsPerFile,i,o)||this;return r.push(n),n}return n(a,s),a.prototype.dispose=function(){
s.prototype.dispose.call(this);var e=r.indexOf(this);-1!==e&&r.splice(e,1)},a}(d))},e.prototype.getDiagnostics=function(e){if(e)return this._getDiagnostics(e);for(var t=new Map,n=[],r=0,i=this._collections;r<i.length;r++){i[r].forEach(function(e,r){var i,o=t.get(e.toString());void 0===o&&(o=n.length,t.set(e.toString(),o),n.push([e,[]])),n[o][1]=(i=n[o][1]).concat.apply(i,r)})}return n},e.prototype._getDiagnostics=function(e){for(var t=[],n=0,r=this._collections;n<r.length;n++){var i=r[n];i.has(e)&&(t=t.concat(i.get(e)))}return t},e._idPool=0,e._maxDiagnosticsPerFile=1e3,e}();t.ExtHostDiagnostics=h}),define(e[204],t([0,1,3,15,17,10,19,52]),function(e,t,n,r,i,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t,n,r){void 0===r&&(r={timeout:1500,errors:3}),this._logService=e,this._documents=t,this._mainThreadEditors=n,this._thresholds=r,this._callbacks=new a.LinkedList,this._badListeners=new WeakMap}return e.prototype.dispose=function(){this._callbacks.clear()},
e.prototype.getOnWillSaveTextDocumentEvent=function(e){var t=this;return function(n,r,i){var o={dispose:t._callbacks.push([n,r,e])};return Array.isArray(i)&&i.push(o),o}},e.prototype.$participateInSave=function(e,t){var i=this,o=n.default.revive(e),a=this._callbacks.toArray(),u=!1,c=setTimeout(function(){return u=!0},this._thresholds.timeout),l=r.sequence(a.map(function(e){return function(){if(!u){var n=i._documents.getDocumentData(o).document;return i._deliverEventAsyncAndBlameBadListeners(e,{document:n,reason:s.TextDocumentSaveReason.to(t)})}}}));return r.always(l,function(){return clearTimeout(c)})},e.prototype._deliverEventAsyncAndBlameBadListeners=function(e,t){var n=this,r=e[0],i=e[1],o=e[2];return this._badListeners.get(r)>this._thresholds.errors?Promise.resolve(!1):this._deliverEventAsync(o,r,i,t).then(function(){return!0},function(e){if(n._logService.error("onWillSaveTextDocument-listener from extension '"+o.id+"' threw ERROR"),n._logService.error(e),
!(e instanceof Error)||"concurrent_edits"!==e.message){var t=n._badListeners.get(r);n._badListeners.set(r,t?t+1:1),t>n._thresholds.errors&&n._logService.info("onWillSaveTextDocument-listener from extension '"+o.id+"' will now be IGNORED because of timeouts and/or errors")}return!1})},e.prototype._deliverEventAsync=function(e,t,n,r){var a=this,u=[],c=Date.now(),l=r.document,f=r.reason,d=l.version,h=Object.freeze({document:l,reason:f,waitUntil:function(e){if(Object.isFrozen(u))throw i.illegalState("waitUntil can not be called async");u.push(Promise.resolve(e))}});try{t.apply(n,[h])}catch(e){return Promise.reject(e)}return Object.freeze(u),new Promise(function(t,n){var r=setTimeout(function(){return n(new Error("timeout"))},a._thresholds.timeout);return Promise.all(u).then(function(n){a._logService.debug("onWillSaveTextDocument-listener from extension '"+e.id+"' finished after "+(Date.now()-c)+"ms"),clearTimeout(r),t(n)}).catch(function(e){clearTimeout(r),n(e)})}).then(function(e){for(var t={resource:l.uri,
edits:[]},n=0,r=e;n<r.length;n++){var i=r[n];if(Array.isArray(i)&&i.every(function(e){return e instanceof o.TextEdit}))for(var u=0,c=i;u<c.length;u++){var f=c[u],h=f.newText,p=f.newEol,g=f.range;t.edits.push({range:g&&s.Range.from(g),text:h,eol:s.EndOfLine.from(p)})}}if(0!==t.edits.length)return d===l.version?a._mainThreadEditors.$tryApplyWorkspaceEdit({edits:[t]}):Promise.reject(new Error("concurrent_edits"))})},e}();t.ExtHostDocumentSaveParticipant=u}),define(e[205],t([0,1,4,3,11,19,2,5,74]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var r=this;this._onDidAddDocument=new n.Emitter,this._onDidRemoveDocument=new n.Emitter,this._onDidChangeDocument=new n.Emitter,this._onDidSaveDocument=new n.Emitter,this.onDidAddDocument=this._onDidAddDocument.event,this.onDidRemoveDocument=this._onDidRemoveDocument.event,this.onDidChangeDocument=this._onDidChangeDocument.event,this.onDidSaveDocument=this._onDidSaveDocument.event,
this._documentLoader=new Map,this._proxy=e.getProxy(a.MainContext.MainThreadDocuments),this._documentsAndEditors=t,this._toDispose=[this._documentsAndEditors.onDidRemoveDocuments(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];r._onDidRemoveDocument.fire(i.document)}}),this._documentsAndEditors.onDidAddDocuments(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];r._onDidAddDocument.fire(i.document)}})]}return e.prototype.dispose=function(){i.dispose(this._toDispose)},e.prototype.getAllDocumentData=function(){return this._documentsAndEditors.allDocuments()},e.prototype.getDocumentData=function(e){if(e){var t=this._documentsAndEditors.getDocument(e.toString());return t||void 0}},e.prototype.ensureDocumentData=function(e){var t=this,n=this._documentsAndEditors.getDocument(e.toString());if(n)return s.TPromise.as(n);var r=this._documentLoader.get(e.toString());return r||(r=this._proxy.$tryOpenDocument(e).then(function(){return t._documentLoader.delete(e.toString()),
t._documentsAndEditors.getDocument(e.toString())},function(n){return t._documentLoader.delete(e.toString()),s.TPromise.wrapError(n)}),this._documentLoader.set(e.toString(),r)),r},e.prototype.createDocumentData=function(e){return this._proxy.$tryCreateDocument(e).then(function(e){return r.default.revive(e)})},e.prototype.$acceptModelModeChanged=function(e,t,n){var i=r.default.revive(e).toString(),o=this._documentsAndEditors.getDocument(i);this._onDidRemoveDocument.fire(o.document),o._acceptLanguageId(n),this._onDidAddDocument.fire(o.document)},e.prototype.$acceptModelSaved=function(e){var t=r.default.revive(e).toString(),n=this._documentsAndEditors.getDocument(t);this.$acceptDirtyStateChanged(e,!1),this._onDidSaveDocument.fire(n.document)},e.prototype.$acceptDirtyStateChanged=function(e,t){var n=r.default.revive(e).toString(),i=this._documentsAndEditors.getDocument(n);i._acceptIsDirty(t),this._onDidChangeDocument.fire({document:i.document,contentChanges:[]})},e.prototype.$acceptModelChanged=function(e,t,n){
var i=r.default.revive(e).toString(),s=this._documentsAndEditors.getDocument(i);s._acceptIsDirty(n),s.onEvents(t),this._onDidChangeDocument.fire({document:s.document,contentChanges:t.changes.map(function(e){return{range:o.Range.to(e.range),rangeOffset:e.rangeOffset,rangeLength:e.rangeLength,text:e.text}})})},e.prototype.setWordDefinitionFor=function(e,t){u.setWordDefinitionFor(e,t)},e}();t.ExtHostDocuments=c}),define(e[206],t([0,1,12,4,32,3,2,5,19,10]),function(e,t,n,r,i,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t,n,s,a){var u=this;this._onDidCreate=new r.Emitter,this._onDidChange=new r.Emitter,this._onDidDelete=new r.Emitter,this._config=0,n&&(this._config+=1),s&&(this._config+=2),a&&(this._config+=4);var l=i.parse(t),f=e(function(e){if(!n)for(var t=0,r=e.created;t<r.length;t++){var i=r[t],c=o.default.revive(i);l(c.fsPath)&&u._onDidCreate.fire(c)}if(!s)for(var f=0,d=e.changed;f<d.length;f++){var h=d[f],c=o.default.revive(h)
;l(c.fsPath)&&u._onDidChange.fire(c)}if(!a)for(var p=0,g=e.deleted;p<g.length;p++){var m=g[p],c=o.default.revive(m);l(c.fsPath)&&u._onDidDelete.fire(c)}});this._disposable=c.Disposable.from(this._onDidCreate,this._onDidChange,this._onDidDelete,f)}return Object.defineProperty(e.prototype,"ignoreCreateEvents",{get:function(){return Boolean(1&this._config)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreChangeEvents",{get:function(){return Boolean(2&this._config)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreDeleteEvents",{get:function(){return Boolean(4&this._config)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._disposable.dispose()},Object.defineProperty(e.prototype,"onDidCreate",{get:function(){return this._onDidCreate.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDelete",{
get:function(){return this._onDidDelete.event},enumerable:!0,configurable:!0}),e}(),f=function(){function e(e,t,n){void 0===n&&(n=e.getProxy(a.MainContext.MainThreadTextEditors)),this._extHostDocumentsAndEditors=t,this._mainThreadTextEditors=n,this._onFileEvent=new r.Emitter,this._onDidRenameFile=new r.Emitter,this._onWillRenameFile=new r.AsyncEmitter,this.onDidRenameFile=this._onDidRenameFile.event}return e.prototype.createFileSystemWatcher=function(e,t,n,r){return new l(this._onFileEvent.event,e,t,n,r)},e.prototype.$onFileEvent=function(e){this._onFileEvent.fire(e)},e.prototype.$onFileRename=function(e,t){this._onDidRenameFile.fire(Object.freeze({oldUri:o.default.revive(e),newUri:o.default.revive(t)}))},e.prototype.getOnWillRenameFileEvent=function(e){var t=this;return function(n,r,i){var o=function(){n.apply(r,arguments)};return o.extension=e,t._onWillRenameFile.event(o,void 0,i)}},e.prototype.$onWillRename=function(e,t){var r=this,i=o.default.revive(e),a=o.default.revive(t),l=[]
;return this._onWillRenameFile.fireAsync(function(e,t){return{oldUri:i,newUri:a,waitUntil:function(t){if(Object.isFrozen(e))throw new TypeError("waitUntil cannot be called async");var n=e.length,r=s.TPromise.as(t).then(function(e){e instanceof c.WorkspaceEdit&&(l[n]=e)});e.push(r)}}}).then(function(){if(0!==l.length){for(var e=new Array,t=0,i=l;t<i.length;t++){var o=i[t];if(o){var s=u.WorkspaceEdit.from(o,r._extHostDocumentsAndEditors).edits;e.push(s)}}return r._mainThreadTextEditors.$tryApplyWorkspaceEdit({edits:n.flatten(e)})}})},e}();t.ExtHostFileSystemEventService=f}),define(e[207],t([0,1,3,2,16,19,10,15,5,7,24,12,18,65]),function(e,t,n,r,i,o,s,a,u,c,l,f,d,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideDocumentSymbols=function(t){var n=this,r=this._documents.getDocumentData(t).document;return a.asWinJsPromise(function(e){return n._provider.provideDocumentSymbols(r,e)}).then(function(n){
if(!f.isFalsyOrEmpty(n))return n[0]instanceof s.DocumentSymbol?n.map(o.DocumentSymbol.from):e._asDocumentSymbolTree(t,n)})},e._asDocumentSymbolTree=function(e,t){t=t.slice(0).sort(function(e,t){var n=e.location.range.start.compareTo(t.location.range.start);return 0===n&&(n=t.location.range.end.compareTo(e.location.range.end)),n});for(var n=[],r=[],i=0;i<t.length;i++)for(var s={name:t[i].name,kind:o.SymbolKind.from(t[i].kind),containerName:t[i].containerName,range:o.Range.from(t[i].location.range),selectionRange:o.Range.from(t[i].location.range),children:[]};;){if(0===r.length){r.push(s),n.push(s);break}var a=r[r.length-1];if(l.Range.containsRange(a.range,s.range)&&!l.Range.equalsRange(a.range,s.range)){a.children.push(s),r.push(s);break}r.pop()}return n},e}(),g=function(){function e(e,t,n,r){this._documents=e,this._commands=t,this._heapService=n,this._provider=r}return e.prototype.provideCodeLenses=function(e){var t=this,n=this._documents.getDocumentData(e).document;return a.asWinJsPromise(function(e){
return t._provider.provideCodeLenses(n,e)}).then(function(e){if(Array.isArray(e))return e.map(function(e){var n=t._heapService.keep(e);return u.ObjectIdentifier.mixin({range:o.Range.from(e.range),command:t._commands.toInternal(e.command)},n)})})},e.prototype.resolveCodeLens=function(t,n){var i=this,o=this._heapService.get(u.ObjectIdentifier.of(n));if(o){return("function"!=typeof this._provider.resolveCodeLens||o.isResolved?r.TPromise.as(o):a.asWinJsPromise(function(e){return i._provider.resolveCodeLens(o,e)})).then(function(t){return t=t||o,n.command=i._commands.toInternal(t.command||e._badCmd),n})}},e._badCmd={command:"missing",title:"<<MISSING COMMAND>>"},e}(),m=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideDefinition=function(t,n){var r=this,i=this._documents.getDocumentData(t).document,s=o.Position.to(n);return a.asWinJsPromise(function(e){return r._provider.provideDefinition2?r._provider.provideDefinition2(i,s,e):r._provider.provideDefinition(i,s,e)
}).then(function(t){return Array.isArray(t)?t.map(function(t){return e.convertDefinitionLink(t)}):t?[e.convertDefinitionLink(t)]:void 0})},e.convertDefinitionLink=function(e){var t=e;return{origin:t.origin?o.Range.from(t.origin):void 0,uri:e.uri,range:o.Range.from(e.range),selectionRange:t.selectionRange?o.Range.from(t.selectionRange):void 0}},e}(),v=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideImplementation=function(e,t){var n=this,r=this._documents.getDocumentData(e).document,i=o.Position.to(t);return a.asWinJsPromise(function(e){return n._provider.provideImplementation(r,i,e)}).then(function(e){return Array.isArray(e)?e.map(o.location.from):e?o.location.from(e):void 0})},e}(),_=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideTypeDefinition=function(e,t){var n=this,r=this._documents.getDocumentData(e).document,i=o.Position.to(t);return a.asWinJsPromise(function(e){return n._provider.provideTypeDefinition(r,i,e)
}).then(function(e){return Array.isArray(e)?e.map(o.location.from):e?o.location.from(e):void 0})},e}(),y=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideHover=function(e,t){var n=this,r=this._documents.getDocumentData(e).document,i=o.Position.to(t);return a.asWinJsPromise(function(e){return n._provider.provideHover(r,i,e)}).then(function(e){if(e&&!f.isFalsyOrEmpty(e.contents))return e.range||(e.range=r.getWordRangeAtPosition(i)),e.range||(e.range=new s.Range(i,i)),o.Hover.from(e)})},e}(),b=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideDocumentHighlights=function(e,t){var n=this,r=this._documents.getDocumentData(e).document,i=o.Position.to(t);return a.asWinJsPromise(function(e){return n._provider.provideDocumentHighlights(r,i,e)}).then(function(e){if(Array.isArray(e))return e.map(o.DocumentHighlight.from)})},e}(),C=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideReferences=function(e,t,n){
var r=this,i=this._documents.getDocumentData(e).document,s=o.Position.to(t);return a.asWinJsPromise(function(e){return r._provider.provideReferences(i,s,n,e)}).then(function(e){if(Array.isArray(e))return e.map(o.location.from)})},e}(),E=function(){function e(e,t,n,r){this._documents=e,this._commands=t,this._diagnostics=n,this._provider=r}return e.prototype.provideCodeActions=function(t,n,r){for(var i=this,u=this._documents.getDocumentData(t).document,c=h.Selection.isISelection(n)?o.Selection.to(n):o.Range.to(n),l=[],d=0,p=this._diagnostics.getDiagnostics(t);d<p.length;d++){var g=p[d];c.intersection(g.range)&&l.push(g)}var m={diagnostics:l,only:r.only?new s.CodeActionKind(r.only):void 0};return a.asWinJsPromise(function(e){return i._provider.provideCodeActions(u,c,m,e)}).then(function(t){if(!f.isFalsyOrEmpty(t)){for(var n=[],r=0,s=t;r<s.length;r++){var a=s[r];a&&(e._isCommand(a)?n.push({_isSynthetic:!0,title:a.title,command:i._commands.toInternal(a)}):n.push({title:a.title,
command:a.command&&i._commands.toInternal(a.command),diagnostics:a.diagnostics&&a.diagnostics.map(o.Diagnostic.from),edit:a.edit&&o.WorkspaceEdit.from(a.edit),kind:a.kind&&a.kind.value}))}return n}})},e._isCommand=function(e){return"string"==typeof e.command&&"string"==typeof e.title},e}(),S=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideDocumentFormattingEdits=function(e,t){var n=this,r=this._documents.getDocumentData(e).document;return a.asWinJsPromise(function(e){return n._provider.provideDocumentFormattingEdits(r,t,e)}).then(function(e){if(Array.isArray(e))return e.map(o.TextEdit.from)})},e}(),x=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideDocumentRangeFormattingEdits=function(e,t,n){var r=this,i=this._documents.getDocumentData(e).document,s=o.Range.to(t);return a.asWinJsPromise(function(e){return r._provider.provideDocumentRangeFormattingEdits(i,s,n,e)}).then(function(e){if(Array.isArray(e))return e.map(o.TextEdit.from)})
},e}(),w=function(){function e(e,t){this._documents=e,this._provider=t,this.autoFormatTriggerCharacters=[]}return e.prototype.provideOnTypeFormattingEdits=function(e,t,n,r){var i=this,s=this._documents.getDocumentData(e).document,u=o.Position.to(t);return a.asWinJsPromise(function(e){return i._provider.provideOnTypeFormattingEdits(s,u,n,r,e)}).then(function(e){if(Array.isArray(e))return e.map(o.TextEdit.from)})},e}(),T=function(){function e(e){this._symbolCache=Object.create(null),this._resultCache=Object.create(null),this._provider=e}return e.prototype.provideWorkspaceSymbols=function(e){var t=this,n=u.IdObject.mixin({symbols:[]});return a.asWinJsPromise(function(n){return t._provider.provideWorkspaceSymbols(e,n)}).then(function(e){if(!f.isFalsyOrEmpty(e))for(var r=0,i=e;r<i.length;r++){var s=i[r];if(s)if(s.name){var a=u.IdObject.mixin(o.WorkspaceSymbol.from(s));t._symbolCache[a._id]=s,n.symbols.push(a)}else console.warn("INVALID SymbolInformation, lacks name",s)}}).then(function(){
return n.symbols.length>0&&(t._resultCache[n._id]=[n.symbols[0]._id,n.symbols[n.symbols.length-1]._id]),n})},e.prototype.resolveWorkspaceSymbol=function(e){var t=this;if("function"!=typeof this._provider.resolveWorkspaceSymbol)return r.TPromise.as(e);var n=this._symbolCache[e._id];return n?a.asWinJsPromise(function(e){return t._provider.resolveWorkspaceSymbol(n,e)}).then(function(t){return t&&i.mixin(e,o.WorkspaceSymbol.from(t),!0)}):void 0},e.prototype.releaseWorkspaceSymbols=function(e){var t=this._resultCache[e];if(t){for(var n=t[0],r=t[1];n<=r;n++)delete this._symbolCache[n];delete this._resultCache[e]}},e}(),P=function(){function e(e,t){this._documents=e,this._provider=t}return e.supportsResolving=function(e){return"function"==typeof e.prepareRename},e.prototype.provideRenameEdits=function(e,t,n){var i=this,s=this._documents.getDocumentData(e).document,u=o.Position.to(t);return a.asWinJsPromise(function(e){return i._provider.provideRenameEdits(s,u,n,e)}).then(function(e){
if(e)return o.WorkspaceEdit.from(e)},function(e){return"string"==typeof e?{edits:void 0,rejectReason:e}:e instanceof Error&&"string"==typeof e.message?{edits:void 0,rejectReason:e.message}:r.TPromise.wrapError(e)})},e.prototype.resolveRenameLocation=function(e,t){var n=this;if("function"!=typeof this._provider.prepareRename)return r.TPromise.as(void 0);var i=this._documents.getDocumentData(e).document,u=o.Position.to(t);return a.asWinJsPromise(function(e){return n._provider.prepareRename(i,u,e)}).then(function(e){var t,n;if(s.Range.isRange(e)?(t=e,n=i.getText(e)):d.isObject(e)&&(t=e.range,n=e.placeholder),t){if(t.contains(u))return{range:o.Range.from(t),text:n};console.warn("INVALID rename location: range must contain position")}})},e}(),I=function(){function e(e,t,n){this._cache=new Map,this._idPool=0,this._documents=e,this._commands=t,this._provider=n}return e.supportsResolving=function(e){return"function"==typeof e.resolveCompletionItem},e.prototype.provideCompletionItems=function(e,t,n){
var r=this,i=this._documents.getDocumentData(e).document,u=o.Position.to(t);return a.asWinJsPromise(function(e){return r._provider.provideCompletionItems(i,u,e,o.CompletionContext.from(n))}).then(function(e){var t,n=r._idPool++,o={_id:n,suggestions:[]};if(e){Array.isArray(e)?t=new s.CompletionList(e):(t=e,o.incomplete=t.isIncomplete);for(var a=(i.getWordRangeAtPosition(u)||new s.Range(u,u)).with({end:u}),c=0;c<t.items.length;c++){var l=r._convertCompletionItem(t.items[c],u,a,c,n);l&&o.suggestions.push(l)}return r._cache.set(n,t.items),o}})},e.prototype.resolveCompletionItem=function(e,t,n){var u=this;if("function"!=typeof this._provider.resolveCompletionItem)return r.TPromise.as(n);var c=n,l=c._parentId,f=c._id,d=this._cache.has(l)&&this._cache.get(l)[f];return d?a.asWinJsPromise(function(e){return u._provider.resolveCompletionItem(d,e)}).then(function(r){if(!r)return n;var a=u._documents.getDocumentData(e).document,c=o.Position.to(t),d=(a.getWordRangeAtPosition(c)||new s.Range(c,c)).with({end:c
}),h=u._convertCompletionItem(r,c,d,f,l);return h&&i.mixin(n,h,!0),n}):r.TPromise.as(n)},e.prototype.releaseCompletionItems=function(e){this._cache.delete(e)},e.prototype._convertCompletionItem=function(e,t,n,r,i){if("string"==typeof e.label&&0!==e.label.length){var a={_id:r,_parentId:i,label:e.label,type:o.CompletionItemKind.from(e.kind),detail:e.detail,documentation:e.documentation,filterText:e.filterText,sortText:e.sortText,preselect:e.preselect,insertText:void 0,additionalTextEdits:e.additionalTextEdits&&e.additionalTextEdits.map(o.TextEdit.from),command:this._commands.toInternal(e.command),commitCharacters:e.commitCharacters};e.textEdit?(a.insertText=e.textEdit.newText,a.snippetType="internal"):"string"==typeof e.insertText?(a.insertText=e.insertText,a.snippetType="internal"):e.insertText instanceof s.SnippetString?(a.insertText=e.insertText.value,a.snippetType="textmate"):(a.insertText=e.label,a.snippetType="internal");var u;if(u=e.textEdit?e.textEdit.range:e.range?e.range:n,
a.overwriteBefore=t.character-u.start.character,a.overwriteAfter=u.end.character-t.character,u.isSingleLine&&u.start.line===t.line)return a;console.warn("INVALID text edit -> must be single line and on the same line")}else console.warn("INVALID text edit -> must have at least a label")},e}(),D=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideSignatureHelp=function(e,t){var n=this,r=this._documents.getDocumentData(e).document,i=o.Position.to(t);return a.asWinJsPromise(function(e){return n._provider.provideSignatureHelp(r,i,e)}).then(function(e){if(e)return o.SignatureHelp.from(e)})},e}(),k=function(){function e(e,t,n){this._documents=e,this._heapService=t,this._provider=n}return e.prototype.provideLinks=function(e){var t=this,n=this._documents.getDocumentData(e).document;return a.asWinJsPromise(function(e){return t._provider.provideDocumentLinks(n,e)}).then(function(e){if(Array.isArray(e)){for(var n=[],r=0,i=e;r<i.length;r++){
var s=i[r],a=o.DocumentLink.from(s),c=t._heapService.keep(s);u.ObjectIdentifier.mixin(a,c),n.push(a)}return n}})},e.prototype.resolveLink=function(e){var t=this;if("function"==typeof this._provider.resolveDocumentLink){var n=u.ObjectIdentifier.of(e),r=this._heapService.get(n);if(r)return a.asWinJsPromise(function(e){return t._provider.resolveDocumentLink(r,e)}).then(function(e){if(e)return o.DocumentLink.from(e)})}},e}(),L=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideColors=function(e){var t=this,n=this._documents.getDocumentData(e).document;return a.asWinJsPromise(function(e){return t._provider.provideDocumentColors(n,e)}).then(function(e){if(!Array.isArray(e))return[];return e.map(function(e){return{color:o.Color.from(e.color),range:o.Range.from(e.range)}})})},e.prototype.provideColorPresentations=function(e,t){var n=this,r=this._documents.getDocumentData(e).document,i=o.Range.to(t.range),s=o.Color.to(t.color);return a.asWinJsPromise(function(e){
return n._provider.provideColorPresentations(s,{document:r,range:i},e)}).then(function(e){return e.map(o.ColorPresentation.from)})},e}(),O=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideFoldingRanges=function(e,t){var n=this,r=this._documents.getDocumentData(e).document;return a.asWinJsPromise(function(e){return n._provider.provideFoldingRanges(r,t,e)}).then(function(e){if(Array.isArray(e))return e.map(o.FoldingRange.from)})},e}(),R=function(){function e(e,t,n,r,i,o){this._adapter=new Map,this._schemeTransformer=t,this._proxy=e.getProxy(u.MainContext.MainThreadLanguageFeatures),this._documents=n,this._commands=r,this._heapService=i,this._diagnostics=o}return e.prototype._transformDocumentSelector=function(e){var t=this;return Array.isArray(e)?e.map(function(e){return t._doTransformDocumentSelector(e)}):[this._doTransformDocumentSelector(e)]},e.prototype._doTransformDocumentSelector=function(e){return"string"==typeof e?{$serialized:!0,language:e}:e?{$serialized:!0,
language:e.language,scheme:this._transformScheme(e.scheme),pattern:e.pattern,exclusive:e.exclusive}:void 0},e.prototype._transformScheme=function(e){return this._schemeTransformer&&"string"==typeof e?this._schemeTransformer.transformOutgoing(e):e},e.prototype._createDisposable=function(e){var t=this;return new s.Disposable(function(){t._adapter.delete(e),t._proxy.$unregister(e)})},e.prototype._nextHandle=function(){return e._handlePool++},e.prototype._withAdapter=function(e,t,n){var i=this._adapter.get(e);return i instanceof t?n(i):r.TPromise.wrapError(new Error("no adapter found"))},e.prototype._addNewAdapter=function(e){var t=this._nextHandle();return this._adapter.set(t,e),t},e.prototype.registerDocumentSymbolProvider=function(e,t,n){var r=this._addNewAdapter(new p(this._documents,t));return this._proxy.$registerOutlineSupport(r,this._transformDocumentSelector(e),n?n.displayName||n.name:void 0),this._createDisposable(r)},e.prototype.$provideDocumentSymbols=function(e,t){
return this._withAdapter(e,p,function(e){return e.provideDocumentSymbols(n.default.revive(t))})},e.prototype.registerCodeLensProvider=function(e,t){var n=this,r=this._nextHandle(),i="function"==typeof t.onDidChangeCodeLenses?this._nextHandle():void 0;this._adapter.set(r,new g(this._documents,this._commands.converter,this._heapService,t)),this._proxy.$registerCodeLensSupport(r,this._transformDocumentSelector(e),i);var o=this._createDisposable(r);if(void 0!==i){var a=t.onDidChangeCodeLenses(function(e){return n._proxy.$emitCodeLensEvent(i)});o=s.Disposable.from(o,a)}return o},e.prototype.$provideCodeLenses=function(e,t){return this._withAdapter(e,g,function(e){return e.provideCodeLenses(n.default.revive(t))})},e.prototype.$resolveCodeLens=function(e,t,r){return this._withAdapter(e,g,function(e){return e.resolveCodeLens(n.default.revive(t),r)})},e.prototype.registerDefinitionProvider=function(e,t){var n=this._addNewAdapter(new m(this._documents,t))
;return this._proxy.$registerDeclaractionSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDefinition=function(e,t,r){return this._withAdapter(e,m,function(e){return e.provideDefinition(n.default.revive(t),r)})},e.prototype.registerImplementationProvider=function(e,t){var n=this._addNewAdapter(new v(this._documents,t));return this._proxy.$registerImplementationSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideImplementation=function(e,t,r){return this._withAdapter(e,v,function(e){return e.provideImplementation(n.default.revive(t),r)})},e.prototype.registerTypeDefinitionProvider=function(e,t){var n=this._addNewAdapter(new _(this._documents,t));return this._proxy.$registerTypeDefinitionSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideTypeDefinition=function(e,t,r){return this._withAdapter(e,_,function(e){return e.provideTypeDefinition(n.default.revive(t),r)})},
e.prototype.registerHoverProvider=function(e,t,n){var r=this._addNewAdapter(new y(this._documents,t));return this._proxy.$registerHoverProvider(r,this._transformDocumentSelector(e)),this._createDisposable(r)},e.prototype.$provideHover=function(e,t,r){return this._withAdapter(e,y,function(e){return e.provideHover(n.default.revive(t),r)})},e.prototype.registerDocumentHighlightProvider=function(e,t){var n=this._addNewAdapter(new b(this._documents,t));return this._proxy.$registerDocumentHighlightProvider(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDocumentHighlights=function(e,t,r){return this._withAdapter(e,b,function(e){return e.provideDocumentHighlights(n.default.revive(t),r)})},e.prototype.registerReferenceProvider=function(e,t){var n=this._addNewAdapter(new C(this._documents,t));return this._proxy.$registerReferenceSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideReferences=function(e,t,r,i){
return this._withAdapter(e,C,function(e){return e.provideReferences(n.default.revive(t),r,i)})},e.prototype.registerCodeActionProvider=function(e,t,n){var r=this._addNewAdapter(new E(this._documents,this._commands.converter,this._diagnostics,t));return this._proxy.$registerQuickFixSupport(r,this._transformDocumentSelector(e),n&&n.providedCodeActionKinds?n.providedCodeActionKinds.map(function(e){return e.value}):void 0),this._createDisposable(r)},e.prototype.$provideCodeActions=function(e,t,r,i){return this._withAdapter(e,E,function(e){return e.provideCodeActions(n.default.revive(t),r,i)})},e.prototype.registerDocumentFormattingEditProvider=function(e,t){var n=this._addNewAdapter(new S(this._documents,t));return this._proxy.$registerDocumentFormattingSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDocumentFormattingEdits=function(e,t,r){return this._withAdapter(e,S,function(e){return e.provideDocumentFormattingEdits(n.default.revive(t),r)})},
e.prototype.registerDocumentRangeFormattingEditProvider=function(e,t){var n=this._addNewAdapter(new x(this._documents,t));return this._proxy.$registerRangeFormattingSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDocumentRangeFormattingEdits=function(e,t,r,i){return this._withAdapter(e,x,function(e){return e.provideDocumentRangeFormattingEdits(n.default.revive(t),r,i)})},e.prototype.registerOnTypeFormattingEditProvider=function(e,t,n){var r=this._addNewAdapter(new w(this._documents,t));return this._proxy.$registerOnTypeFormattingSupport(r,this._transformDocumentSelector(e),n),this._createDisposable(r)},e.prototype.$provideOnTypeFormattingEdits=function(e,t,r,i,o){return this._withAdapter(e,w,function(e){return e.provideOnTypeFormattingEdits(n.default.revive(t),r,i,o)})},e.prototype.registerWorkspaceSymbolProvider=function(e){var t=this._addNewAdapter(new T(e));return this._proxy.$registerNavigateTypeSupport(t),this._createDisposable(t)},
e.prototype.$provideWorkspaceSymbols=function(e,t){return this._withAdapter(e,T,function(e){return e.provideWorkspaceSymbols(t)})},e.prototype.$resolveWorkspaceSymbol=function(e,t){return this._withAdapter(e,T,function(e){return e.resolveWorkspaceSymbol(t)})},e.prototype.$releaseWorkspaceSymbols=function(e,t){this._withAdapter(e,T,function(e){return e.releaseWorkspaceSymbols(t)})},e.prototype.registerRenameProvider=function(e,t){var n=this._addNewAdapter(new P(this._documents,t));return this._proxy.$registerRenameSupport(n,this._transformDocumentSelector(e),P.supportsResolving(t)),this._createDisposable(n)},e.prototype.$provideRenameEdits=function(e,t,r,i){return this._withAdapter(e,P,function(e){return e.provideRenameEdits(n.default.revive(t),r,i)})},e.prototype.$resolveRenameLocation=function(e,t,r){return this._withAdapter(e,P,function(e){return e.resolveRenameLocation(n.default.revive(t),r)})},e.prototype.registerCompletionItemProvider=function(e,t,n){
var r=this._addNewAdapter(new I(this._documents,this._commands.converter,t));return this._proxy.$registerSuggestSupport(r,this._transformDocumentSelector(e),n,I.supportsResolving(t)),this._createDisposable(r)},e.prototype.$provideCompletionItems=function(e,t,r,i){return this._withAdapter(e,I,function(e){return e.provideCompletionItems(n.default.revive(t),r,i)})},e.prototype.$resolveCompletionItem=function(e,t,r,i){return this._withAdapter(e,I,function(e){return e.resolveCompletionItem(n.default.revive(t),r,i)})},e.prototype.$releaseCompletionItems=function(e,t){this._withAdapter(e,I,function(e){return e.releaseCompletionItems(t)})},e.prototype.registerSignatureHelpProvider=function(e,t,n){var r=this._addNewAdapter(new D(this._documents,t));return this._proxy.$registerSignatureHelpProvider(r,this._transformDocumentSelector(e),n),this._createDisposable(r)},e.prototype.$provideSignatureHelp=function(e,t,r){return this._withAdapter(e,D,function(e){return e.provideSignatureHelp(n.default.revive(t),r)})},
e.prototype.registerDocumentLinkProvider=function(e,t){var n=this._addNewAdapter(new k(this._documents,this._heapService,t));return this._proxy.$registerDocumentLinkProvider(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDocumentLinks=function(e,t){return this._withAdapter(e,k,function(e){return e.provideLinks(n.default.revive(t))})},e.prototype.$resolveDocumentLink=function(e,t){return this._withAdapter(e,k,function(e){return e.resolveLink(t)})},e.prototype.registerColorProvider=function(e,t){var n=this._addNewAdapter(new L(this._documents,t));return this._proxy.$registerDocumentColorProvider(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDocumentColors=function(e,t){return this._withAdapter(e,L,function(e){return e.provideColors(n.default.revive(t))})},e.prototype.$provideColorPresentations=function(e,t,r){return this._withAdapter(e,L,function(e){return e.provideColorPresentations(n.default.revive(t),r)})},
e.prototype.registerFoldingRangeProvider=function(e,t){var n=this._addNewAdapter(new O(this._documents,t));return this._proxy.$registerFoldingRangeProvider(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideFoldingRanges=function(e,t,r){return this._withAdapter(e,O,function(e){return e.provideFoldingRanges(n.default.revive(t),r)})},e._serializeRegExp=function(e){if(void 0!==e)return null===e?null:{pattern:e.source,flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")}},e._serializeIndentationRule=function(t){if(void 0!==t)return null===t?null:{decreaseIndentPattern:e._serializeRegExp(t.decreaseIndentPattern),increaseIndentPattern:e._serializeRegExp(t.increaseIndentPattern),indentNextLinePattern:e._serializeRegExp(t.indentNextLinePattern),unIndentedLinePattern:e._serializeRegExp(t.unIndentedLinePattern)}},e._serializeOnEnterRule=function(t){return{beforeText:e._serializeRegExp(t.beforeText),afterText:e._serializeRegExp(t.afterText),action:t.action}},
e._serializeOnEnterRules=function(t){if(void 0!==t)return null===t?null:t.map(e._serializeOnEnterRule)},e.prototype.setLanguageConfiguration=function(t,n){var r=n.wordPattern;if(r&&c.regExpLeadsToEndlessLoop(r))throw new Error("Invalid language configuration: wordPattern '"+r+"' is not allowed to match the empty string.");r?this._documents.setWordDefinitionFor(t,r):this._documents.setWordDefinitionFor(t,null);var i=this._nextHandle(),o={comments:n.comments,brackets:n.brackets,wordPattern:e._serializeRegExp(n.wordPattern),indentationRules:e._serializeIndentationRule(n.indentationRules),onEnterRules:e._serializeOnEnterRules(n.onEnterRules),__electricCharacterSupport:n.__electricCharacterSupport,__characterPairSupport:n.__characterPairSupport};return this._proxy.$setLanguageConfiguration(i,t,o),this._createDisposable(i)},e._handlePool=0,e}();t.ExtHostLanguageFeatures=R}),define(e[208],t([0,1,19,136,106,29,50]),function(e,t,r,i,o,s,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){
function e(e){this._handles=0,this._mapHandleToCancellationSource=new Map,this._proxy=e}return e.prototype.withProgress=function(e,t,n){var i=this._handles++,s=t.title,a=t.location,u=t.cancellable,c=o.localize(0,null,e.displayName||e.name);return this._proxy.$startProgress(i,{location:r.ProgressLocation.from(a),title:s,source:c,cancellable:u}),this._withProgress(i,n,u)},e.prototype._withProgress=function(e,t,n){var r,i=this;n&&(r=new s.CancellationTokenSource,this._mapHandleToCancellationSource.set(e,r));var o,a=function(e){i._proxy.$progressEnd(e),i._mapHandleToCancellationSource.delete(e),r&&r.dispose()};try{o=t(new l(this._proxy,e),n?r.token:s.CancellationToken.None)}catch(t){throw a(e),t}return o.then(function(t){return a(e)},function(t){return a(e)}),o},e.prototype.$acceptProgressCanceled=function(e){var t=this._mapHandleToCancellationSource.get(e);t&&(t.cancel(),this._mapHandleToCancellationSource.delete(e))},e}();t.ExtHostProgress=c;var l=function(e){function t(t,n){var r=e.call(this,function(e){
return r.throttledReport(e)})||this;return r._proxy=t,r._handle=n,r}return n(t,e),t.prototype.throttledReport=function(e){this._proxy.$progressReport(this._handle,e)},a([u.debounce(100,function(e,t){return function(e,t){return e.message=t.message,"number"==typeof t.increment&&"number"==typeof e.message?e.increment+=t.increment:"number"==typeof t.increment&&(e.increment=t.increment),e}(e,t)},function(){return Object.create(null)})],t.prototype,"throttledReport",null),t}(i.Progress)}),define(e[80],t([0,1,48,17,114,2,10,19]),function(e,t,n,r,i,o,s,u){"use strict";function c(e,t){return void 0===t&&(t="Refer to the documentation for further details."),function(n,r,i){var o=i.value;return i.value=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return console.warn("[Deprecation Warning] method '"+e+"' is deprecated and should no longer be used. "+t),o.apply(this,n)},i}}function l(e){e.then(null,function(e){console.warn(e)})}Object.defineProperty(t,"__esModule",{value:!0});var f=function(){
function e(t,n){this.key=e._Keys.nextId(),this._proxy=t,this._proxy.$registerTextEditorDecorationType(this.key,n)}return e.prototype.dispose=function(){this._proxy.$removeTextEditorDecorationType(this.key)},e._Keys=new i.IdGenerator("TextEditorDecorationType"),e}();t.TextEditorDecorationType=f;var d=function(){function e(e,t){this._document=e,this._documentVersionId=e.version,this._collectedEdits=[],this._setEndOfLine=0,this._undoStopBefore=t.undoStopBefore,this._undoStopAfter=t.undoStopAfter}return e.prototype.finalize=function(){return{documentVersionId:this._documentVersionId,edits:this._collectedEdits,setEndOfLine:this._setEndOfLine,undoStopBefore:this._undoStopBefore,undoStopAfter:this._undoStopAfter}},e.prototype.replace=function(e,t){var n=null;if(e instanceof s.Position)n=new s.Range(e,e);else{if(!(e instanceof s.Range))throw new Error("Unrecognized location");n=e}this._pushEdit(n,t,!1)},e.prototype.insert=function(e,t){this._pushEdit(new s.Range(e,e),t,!0)},e.prototype.delete=function(e){var t=null
;if(!(e instanceof s.Range))throw new Error("Unrecognized location");t=e,this._pushEdit(t,null,!0)},e.prototype._pushEdit=function(e,t,n){var r=this._document.validateRange(e);this._collectedEdits.push({range:r,text:t,forceMoveMarkers:n})},e.prototype.setEndOfLine=function(e){if(e!==s.EndOfLine.LF&&e!==s.EndOfLine.CRLF)throw r.illegalArgument("endOfLine");this._setEndOfLine=e},e}();t.TextEditorEdit=d;var h=function(){function e(e,t,n){this._proxy=e,this._id=t,this._accept(n)}return e.prototype._accept=function(e){this._tabSize=e.tabSize,this._insertSpaces=e.insertSpaces,this._cursorStyle=e.cursorStyle,this._lineNumbers=e.lineNumbers},Object.defineProperty(e.prototype,"tabSize",{get:function(){return this._tabSize},set:function(e){var t=this._validateTabSize(e);if(null!==t){if("number"==typeof t){if(this._tabSize===t)return;this._tabSize=t}l(this._proxy.$trySetOptions(this._id,{tabSize:t}))}},enumerable:!0,configurable:!0}),e.prototype._validateTabSize=function(e){if("auto"===e)return"auto"
;if("number"==typeof e){return(t=Math.floor(e))>0?t:null}if("string"==typeof e){var t=parseInt(e,10);return isNaN(t)?null:t>0?t:null}return null},Object.defineProperty(e.prototype,"insertSpaces",{get:function(){return this._insertSpaces},set:function(e){var t=this._validateInsertSpaces(e);if("boolean"==typeof t){if(this._insertSpaces===t)return;this._insertSpaces=t}l(this._proxy.$trySetOptions(this._id,{insertSpaces:t}))},enumerable:!0,configurable:!0}),e.prototype._validateInsertSpaces=function(e){return"auto"===e?"auto":"false"!==e&&Boolean(e)},Object.defineProperty(e.prototype,"cursorStyle",{get:function(){return this._cursorStyle},set:function(e){this._cursorStyle!==e&&(this._cursorStyle=e,l(this._proxy.$trySetOptions(this._id,{cursorStyle:e})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineNumbers",{get:function(){return this._lineNumbers},set:function(e){this._lineNumbers!==e&&(this._lineNumbers=e,l(this._proxy.$trySetOptions(this._id,{lineNumbers:e})))},enumerable:!0,
configurable:!0}),e.prototype.assign=function(e){var t={},n=!1;if(void 0!==e.tabSize){var r=this._validateTabSize(e.tabSize);"auto"===r?(n=!0,t.tabSize=r):"number"==typeof r&&this._tabSize!==r&&(this._tabSize=r,n=!0,t.tabSize=r)}if(void 0!==e.insertSpaces){var i=this._validateInsertSpaces(e.insertSpaces);"auto"===i?(n=!0,t.insertSpaces=i):this._insertSpaces!==i&&(this._insertSpaces=i,n=!0,t.insertSpaces=i)}void 0!==e.cursorStyle&&this._cursorStyle!==e.cursorStyle&&(this._cursorStyle=e.cursorStyle,n=!0,t.cursorStyle=e.cursorStyle),void 0!==e.lineNumbers&&this._lineNumbers!==e.lineNumbers&&(this._lineNumbers=e.lineNumbers,n=!0,t.lineNumbers=e.lineNumbers),n&&l(this._proxy.$trySetOptions(this._id,t))},e}();t.ExtHostTextEditorOptions=h;var p=function(){function e(e,t,n,r,i,o,s){this._disposed=!1,this._proxy=e,this._id=t,this._documentData=n,this._selections=r,this._options=new h(this._proxy,this._id,i),this._visibleRanges=o,this._viewColumn=s}return Object.defineProperty(e.prototype,"id",{get:function(){
return this._id},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){n.ok(!this._disposed),this._disposed=!0},e.prototype.show=function(e){this._proxy.$tryShowEditor(this._id,u.ViewColumn.from(e))},e.prototype.hide=function(){this._proxy.$tryHideEditor(this._id)},Object.defineProperty(e.prototype,"document",{get:function(){return this._documentData.document},set:function(e){throw r.readonly("document")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._disposed||this._options.assign(e)},enumerable:!0,configurable:!0}),e.prototype._acceptOptions=function(e){n.ok(!this._disposed),this._options._accept(e)},Object.defineProperty(e.prototype,"visibleRanges",{get:function(){return this._visibleRanges},set:function(e){throw r.readonly("visibleRanges")},enumerable:!0,configurable:!0}),e.prototype._acceptVisibleRanges=function(e){n.ok(!this._disposed),this._visibleRanges=e},Object.defineProperty(e.prototype,"viewColumn",{
get:function(){return this._viewColumn},set:function(e){throw r.readonly("viewColumn")},enumerable:!0,configurable:!0}),e.prototype._acceptViewColumn=function(e){n.ok(!this._disposed),this._viewColumn=e},Object.defineProperty(e.prototype,"selection",{get:function(){return this._selections&&this._selections[0]},set:function(e){if(!(e instanceof s.Selection))throw r.illegalArgument("selection");this._selections=[e],this._trySetSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selections",{get:function(){return this._selections},set:function(e){if(!Array.isArray(e)||e.some(function(e){return!(e instanceof s.Selection)}))throw r.illegalArgument("selections");this._selections=e,this._trySetSelection()},enumerable:!0,configurable:!0}),e.prototype.setDecorations=function(e,t){var n=this;this._runOnProxy(function(){if(u.isDecorationOptionsArr(t))return n._proxy.$trySetDecorations(n._id,e.key,u.fromRangeOrRangeWithMessage(t));for(var r=new Array(4*t.length),i=0,o=t.length;i<o;i++){
var s=t[i];r[4*i]=s.start.line+1,r[4*i+1]=s.start.character+1,r[4*i+2]=s.end.line+1,r[4*i+3]=s.end.character+1}return n._proxy.$trySetDecorationsFast(n._id,e.key,r)})},e.prototype.revealRange=function(e,t){var n=this;this._runOnProxy(function(){return n._proxy.$tryRevealRange(n._id,u.Range.from(e),t||s.TextEditorRevealType.Default)})},e.prototype._trySetSelection=function(){var e=this,t=this._selections.map(u.Selection.from);return this._runOnProxy(function(){return e._proxy.$trySetSelections(e._id,t)})},e.prototype._acceptSelections=function(e){n.ok(!this._disposed),this._selections=e},e.prototype.edit=function(e,t){if(void 0===t&&(t={undoStopBefore:!0,undoStopAfter:!0}),this._disposed)return o.TPromise.wrapError(new Error("TextEditor#edit not possible on closed editors"));var n=new d(this._documentData.document,t);return e(n),this._applyEdit(n)},e.prototype._applyEdit=function(e){var t=e.finalize(),n=t.edits.map(function(e){return e.range});n.sort(function(e,t){
return e.end.line===t.end.line?e.end.character===t.end.character?e.start.line===t.start.line?e.start.character-t.start.character:e.start.line-t.start.line:e.end.character-t.end.character:e.end.line-t.end.line});for(var r=0,i=n.length-1;r<i;r++){var s=n[r].end;if(n[r+1].start.isBefore(s))return o.TPromise.wrapError(new Error("Overlapping ranges are not allowed!"))}var a=t.edits.map(function(e){return{range:u.Range.from(e.range),text:e.text,forceMoveMarkers:e.forceMoveMarkers}});return this._proxy.$tryApplyEdits(this._id,t.documentVersionId,a,{setEndOfLine:t.setEndOfLine,undoStopBefore:t.undoStopBefore,undoStopAfter:t.undoStopAfter})},e.prototype.insertSnippet=function(e,t,n){if(void 0===n&&(n={undoStopBefore:!0,undoStopAfter:!0}),this._disposed)return o.TPromise.wrapError(new Error("TextEditor#insertSnippet not possible on closed editors"));var r;if(!t||Array.isArray(t)&&0===t.length)r=this._selections.map(u.Range.from);else if(t instanceof s.Position){var i=u.Position.from(t);r=[{
startLineNumber:d=i.lineNumber,startColumn:h=i.column,endLineNumber:d,endColumn:h}]}else if(t instanceof s.Range)r=[u.Range.from(t)];else{r=[];for(var a=0,c=t;a<c.length;a++){var l=c[a];if(l instanceof s.Range)r.push(u.Range.from(l));else{var f=u.Position.from(l),d=f.lineNumber,h=f.column;r.push({startLineNumber:d,startColumn:h,endLineNumber:d,endColumn:h})}}}return this._proxy.$tryInsertSnippet(this._id,e.value,r,n)},e.prototype._runOnProxy=function(e){var t=this;return this._disposed?(console.warn("TextEditor is closed/disposed"),o.TPromise.as(void 0)):e().then(function(){return t},function(e){return e instanceof Error&&"DISPOSED"===e.name||console.warn(e),null})},a([c("TextEditor.show")],e.prototype,"show",null),a([c("TextEditor.hide")],e.prototype,"hide",null),e}();t.ExtHostTextEditor=p}),define(e[210],t([0,1,4,11,5,74,80,143,19,3]),function(e,t,n,r,i,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e){this._mainContext=e,this._disposables=[],
this._editors=new Map,this._documents=new Map,this._onDidAddDocuments=new n.Emitter,this._onDidRemoveDocuments=new n.Emitter,this._onDidChangeVisibleTextEditors=new n.Emitter,this._onDidChangeActiveTextEditor=new n.Emitter,this.onDidAddDocuments=this._onDidAddDocuments.event,this.onDidRemoveDocuments=this._onDidRemoveDocuments.event,this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event,this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event}return e.prototype.dispose=function(){this._disposables=r.dispose(this._disposables)},e.prototype.$acceptDocumentsAndEditorsDelta=function(e){var t=[],n=[],l=[];if(e.removedDocuments)for(var f=0,d=e.removedDocuments;f<d.length;f++){var h=d[f],p=c.default.revive(h).toString(),g=this._documents.get(p);this._documents.delete(p),t.push(g)}if(e.addedDocuments)for(var m=0,v=e.addedDocuments;m<v.length;m++){var g=v[m],_=c.default.revive(g.uri);a.ok(!this._documents.has(_.toString()),"document '"+_+" already exists!'")
;x=new o.ExtHostDocumentData(this._mainContext.getProxy(i.MainContext.MainThreadDocuments),_,g.lines,g.EOL,g.modeId,g.versionId,g.isDirty);this._documents.set(_.toString(),x),n.push(x)}if(e.removedEditors)for(var y=0,b=e.removedEditors;y<b.length;y++){var p=b[y],C=this._editors.get(p);this._editors.delete(p),l.push(C)}if(e.addedEditors)for(var E=0,S=e.addedEditors;E<S.length;E++){var g=S[E],_=c.default.revive(g.documentUri);a.ok(this._documents.has(_.toString()),"document '"+_+"' does not exist"),a.ok(!this._editors.has(g.id),"editor '"+g.id+"' already exists!");var x=this._documents.get(_.toString()),C=new s.ExtHostTextEditor(this._mainContext.getProxy(i.MainContext.MainThreadTextEditors),g.id,x,g.selections.map(u.Selection.to),g.options,g.visibleRanges.map(u.Range.to),u.ViewColumn.to(g.editorPosition));this._editors.set(g.id,C)}void 0!==e.newActiveEditor&&(a.ok(null===e.newActiveEditor||this._editors.has(e.newActiveEditor),"active editor '"+e.newActiveEditor+"' does not exist"),
this._activeEditorId=e.newActiveEditor),r.dispose(t),r.dispose(l),e.removedDocuments&&this._onDidRemoveDocuments.fire(t),e.addedDocuments&&this._onDidAddDocuments.fire(n),(e.removedEditors||e.addedEditors)&&this._onDidChangeVisibleTextEditors.fire(this.allEditors()),void 0!==e.newActiveEditor&&this._onDidChangeActiveTextEditor.fire(this.activeEditor())},e.prototype.getDocument=function(e){return this._documents.get(e)},e.prototype.allDocuments=function(){var e=[];return this._documents.forEach(function(t){return e.push(t)}),e},e.prototype.getEditor=function(e){return this._editors.get(e)},e.prototype.activeEditor=function(){return this._activeEditorId?this._editors.get(this._activeEditorId):void 0},e.prototype.allEditors=function(){var e=[];return this._editors.forEach(function(t){return e.push(t)}),e},e}();t.ExtHostDocumentsAndEditors=l}),define(e[211],t([0,1,4,15,10,19,80,5]),function(e,t,n,r,i,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){var r=this
;this._onDidChangeTextEditorSelection=new n.Emitter,this._onDidChangeTextEditorOptions=new n.Emitter,this._onDidChangeTextEditorVisibleRanges=new n.Emitter,this._onDidChangeTextEditorViewColumn=new n.Emitter,this._onDidChangeActiveTextEditor=new n.Emitter,this._onDidChangeVisibleTextEditors=new n.Emitter,this.onDidChangeTextEditorSelection=this._onDidChangeTextEditorSelection.event,this.onDidChangeTextEditorOptions=this._onDidChangeTextEditorOptions.event,this.onDidChangeTextEditorVisibleRanges=this._onDidChangeTextEditorVisibleRanges.event,this.onDidChangeTextEditorViewColumn=this._onDidChangeTextEditorViewColumn.event,this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event,this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event,this._proxy=e.getProxy(a.MainContext.MainThreadTextEditors),this._extHostDocumentsAndEditors=t,this._extHostDocumentsAndEditors.onDidChangeVisibleTextEditors(function(e){return r._onDidChangeVisibleTextEditors.fire(e)}),
this._extHostDocumentsAndEditors.onDidChangeActiveTextEditor(function(e){return r._onDidChangeActiveTextEditor.fire(e)})}return e.prototype.getActiveTextEditor=function(){return this._extHostDocumentsAndEditors.activeEditor()},e.prototype.getVisibleTextEditors=function(){return this._extHostDocumentsAndEditors.allEditors()},e.prototype.showTextDocument=function(e,t,n){var r,i=this;return r="number"==typeof t?{position:o.ViewColumn.from(t),preserveFocus:n}:"object"==typeof t?{position:o.ViewColumn.from(t.viewColumn),preserveFocus:t.preserveFocus,selection:"object"==typeof t.selection?o.Range.from(t.selection):void 0,pinned:"boolean"==typeof t.preview?!t.preview:void 0}:{preserveFocus:!1},this._proxy.$tryShowTextDocument(e.uri,r).then(function(t){var n=i._extHostDocumentsAndEditors.getEditor(t);if(n)return n;throw new Error("Failed to show text document "+e.uri.toString()+", should show in editor #"+t)})},e.prototype.createTextEditorDecorationType=function(e){return new s.TextEditorDecorationType(this._proxy,e)
},e.prototype.applyWorkspaceEdit=function(e){var t=o.WorkspaceEdit.from(e,this._extHostDocumentsAndEditors);return this._proxy.$tryApplyWorkspaceEdit(t)},e.prototype.$acceptEditorPropertiesChanged=function(e,t){var n=this._extHostDocumentsAndEditors.getEditor(e);if(t.options&&n._acceptOptions(t.options),t.selections){s=t.selections.selections.map(o.Selection.to);n._acceptSelections(s)}if(t.visibleRanges){a=t.visibleRanges.map(o.Range.to);n._acceptVisibleRanges(a)}if(t.options&&this._onDidChangeTextEditorOptions.fire({textEditor:n,options:t.options}),t.selections){var r=i.TextEditorSelectionChangeKind.fromValue(t.selections.source),s=t.selections.selections.map(o.Selection.to);this._onDidChangeTextEditorSelection.fire({textEditor:n,selections:s,kind:r})}if(t.visibleRanges){var a=t.visibleRanges.map(o.Range.to);this._onDidChangeTextEditorVisibleRanges.fire({textEditor:n,visibleRanges:a})}},e.prototype.$acceptEditorPositionData=function(e){for(var t in e){
var n=this._extHostDocumentsAndEditors.getEditor(t),r=o.ViewColumn.to(e[t]);n.viewColumn!==r&&(n._acceptViewColumn(r),this._onDidChangeTextEditorViewColumn.fire({textEditor:n,viewColumn:r}))}},e.prototype.getDiffInformation=function(e){return r.toThenable(this._proxy.$getDiffInformation(e))},e}();t.ExtHostEditors=u}),define(e[212],t([0,1,5,4,19,2,10]),function(e,t,n,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t,n){this._isDisposed=!1,this._onMessageEmitter=new r.Emitter,this.onDidReceiveMessage=this._onMessageEmitter.event,this._handle=e,this._proxy=t,this._options=n}return e.prototype.dispose=function(){this._onMessageEmitter.dispose()},Object.defineProperty(e.prototype,"html",{get:function(){return this.assertNotDisposed(),this._html},set:function(e){this.assertNotDisposed(),this._html!==e&&(this._html=e,this._proxy.$setHtml(this._handle,e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){
return this.assertNotDisposed(),this._options},set:function(e){this.assertNotDisposed(),this._proxy.$setOptions(this._handle,e),this._options=e},enumerable:!0,configurable:!0}),e.prototype.postMessage=function(e){return this.assertNotDisposed(),this._proxy.$postMessage(this._handle,e)},e.prototype.assertNotDisposed=function(){if(this._isDisposed)throw new Error("Webview is disposed")},e}();t.ExtHostWebview=a;var u=function(){function e(e,t,n,i,o,s,a){this._isDisposed=!1,this._visible=!0,this._active=!0,this._onDisposeEmitter=new r.Emitter,this.onDidDispose=this._onDisposeEmitter.event,this._onDidChangeViewStateEmitter=new r.Emitter,this.onDidChangeViewState=this._onDidChangeViewStateEmitter.event,this._handle=e,this._proxy=t,this._viewType=n,this._options=s,this._viewColumn=o,this._title=i,this._webview=a}return e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._onDisposeEmitter.fire(),this._proxy.$disposeWebview(this._handle),this._webview.dispose(),this._onDisposeEmitter.dispose(),
this._onDidChangeViewStateEmitter.dispose())},Object.defineProperty(e.prototype,"webview",{get:function(){return this.assertNotDisposed(),this._webview},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewType",{get:function(){return this.assertNotDisposed(),this._viewType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.assertNotDisposed(),this._title},set:function(e){this.assertNotDisposed(),this._title!==e&&(this._title=e,this._proxy.$setTitle(this._handle,e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewColumn",{get:function(){return this.assertNotDisposed(),this._viewColumn},enumerable:!0,configurable:!0}),e.prototype._setViewColumn=function(e){this.assertNotDisposed(),this._viewColumn=e},Object.defineProperty(e.prototype,"active",{get:function(){return this.assertNotDisposed(),this._active},
enumerable:!0,configurable:!0}),e.prototype._setActive=function(e){this.assertNotDisposed(),this._active=e},Object.defineProperty(e.prototype,"visible",{get:function(){return this.assertNotDisposed(),this._visible},enumerable:!0,configurable:!0}),e.prototype._setVisible=function(e){this.assertNotDisposed(),this._visible=e},e.prototype.postMessage=function(e){return this.assertNotDisposed(),this._proxy.$postMessage(this._handle,e)},e.prototype.reveal=function(e,t){this.assertNotDisposed(),this._proxy.$reveal(this._handle,e?i.ViewColumn.from(e):void 0,!!t)},e.prototype.assertNotDisposed=function(){if(this._isDisposed)throw new Error("Webview is disposed")},e}();t.ExtHostWebviewPanel=u;var c=function(){function e(e){this._webviewPanels=new Map,this._serializers=new Map,this._proxy=e.getProxy(n.MainContext.MainThreadWebviews)}return e.prototype.createWebview=function(t,n,r,o,s){o=o||{};var c="object"==typeof r?r.viewColumn:r,l={viewColumn:i.ViewColumn.from(c),preserveFocus:"object"==typeof r&&!!r.preserveFocus
},f=e.webviewHandlePool+++"";this._proxy.$createWebviewPanel(f,t,n,l,o,s);var d=new a(f,this._proxy,o),h=new u(f,this._proxy,t,n,c,o,d);return this._webviewPanels.set(f,h),h},e.prototype.registerWebviewPanelSerializer=function(e,t){var n=this;if(this._serializers.has(e))throw new Error("Serializer for '"+e+"' already registered");return this._serializers.set(e,t),this._proxy.$registerSerializer(e),new s.Disposable(function(){n._serializers.delete(e),n._proxy.$unregisterSerializer(e)})},e.prototype.$onMessage=function(e,t){var n=this.getWebviewPanel(e);n&&n.webview._onMessageEmitter.fire(t)},e.prototype.$onDidChangeWebviewPanelViewState=function(e,t){var n=this.getWebviewPanel(e);if(n){var r=i.ViewColumn.to(t.position);n.active===t.active&&n.visible===t.visible&&n.viewColumn===r||(n._setActive(t.active),n._setVisible(t.visible),n._setViewColumn(r),n._onDidChangeViewStateEmitter.fire({webviewPanel:n}))}},e.prototype.$onDidDisposeWebviewPanel=function(e){var t=this.getWebviewPanel(e);return t&&(t.dispose(),
this._webviewPanels.delete(e)),o.TPromise.as(void 0)},e.prototype.$deserializeWebviewPanel=function(e,t,n,r,s,c){var l=this._serializers.get(t);if(!l)return o.TPromise.wrapError(new Error("No serializer found for '"+t+"'"));var f=new a(e,this._proxy,c),d=new u(e,this._proxy,t,n,i.ViewColumn.to(s),c,f);return this._webviewPanels.set(e,d),l.deserializeWebviewPanel(d,r)},e.prototype.getWebviewPanel=function(e){return this._webviewPanels.get(e)},e.webviewHandlePool=1,e}();t.ExtHostWebviews=c}),define(e[213],t([0,1,4,57,8,17,134,64,206,210,205,178,204,203,155,183,208,184,150,186,201,182,189,181,211,180,207,200,188,77,191,10,3,34,2,29,9,37,5,35,55,177,179,176,19,44,22,212,202,185,190]),function(e,t,n,r,s,a,u,c,l,f,d,h,p,g,m,v,_,y,b,C,E,S,x,w,T,P,I,D,k,L,O,R,A,N,M,F,W,B,j,H,z,U,V,K,$,q,G,J,Q,Y,X){"use strict";function Z(e){throw new Error("["+e.id+"]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api "+e.id)}function ee(e,t){
return e.enableProposedApi?t:Z.bind(null,e)}function te(e){var t=e.fsPath;return/^[a-zA-Z]:/.test(t)&&e.path.charAt(1).toLowerCase()===t.charAt(0)?e.path.charAt(1)+t.substr(1):t}function ne(t,n){return t.getExtensionPathIndex().then(function(t){return function(t,n){var r,i=new Map,o=e.__$__nodeRequire("module"),s=o._load;o._load=function(e,o,a){if("vscode"!==e)return s.apply(this,arguments);var u=n.findSubstr(A.default.file(o.filename).fsPath);if(u){var c=i.get(u.id);return c||(c=t(u),i.set(u.id,c)),c}return r||(console.warn("Could not identify extension for 'vscode' require call from "+o.filename),r=t(ie)),r}}(n,t)})}Object.defineProperty(t,"__esModule",{value:!0}),t.checkProposedApiEnabled=function(e){e.enableProposedApi||Z(e)},t.createApiFactory=function(e,t,W,q,te,ne){t.set(j.ExtHostContext.ExtHostLogService,ne)
;var ie=t.set(j.ExtHostContext.ExtHostHeapService,new b.ExtHostHeapService),oe=t.set(j.ExtHostContext.ExtHostDecorations,new K.ExtHostDecorations(t)),se=t.set(j.ExtHostContext.ExtHostWebviews,new J.ExtHostWebviews(t)),ae=t.set(j.ExtHostContext.ExtHostUrls,new X.ExtHostUrls(t)),ue=t.set(j.ExtHostContext.ExtHostDocumentsAndEditors,new f.ExtHostDocumentsAndEditors(t)),ce=t.set(j.ExtHostContext.ExtHostDocuments,new d.ExtHostDocuments(t,ue)),le=t.set(j.ExtHostContext.ExtHostDocumentContentProviders,new h.ExtHostDocumentContentProvider(t,ue,ne)),fe=t.set(j.ExtHostContext.ExtHostDocumentSaveParticipant,new p.ExtHostDocumentSaveParticipant(ne,ce,t.getProxy(j.MainContext.MainThreadTextEditors))),de=t.set(j.ExtHostContext.ExtHostEditors,new T.ExtHostEditors(t,ue)),he=t.set(j.ExtHostContext.ExtHostCommands,new E.ExtHostCommands(t,ie,ne)),pe=t.set(j.ExtHostContext.ExtHostTreeViews,new m.ExtHostTreeViews(t.getProxy(j.MainContext.MainThreadTreeViews),he));t.set(j.ExtHostContext.ExtHostWorkspace,W),
t.set(j.ExtHostContext.ExtHostConfiguration,q);var ge=t.set(j.ExtHostContext.ExtHostDiagnostics,new g.ExtHostDiagnostics(t)),me=t.set(j.ExtHostContext.ExtHostLanguageFeatures,new I.ExtHostLanguageFeatures(t,null,ce,he,ie,ge)),ve=t.set(j.ExtHostContext.ExtHostFileSystem,new V.ExtHostFileSystem(t,me)),_e=t.set(j.ExtHostContext.ExtHostFileSystemEventService,new l.ExtHostFileSystemEventService(t,ue)),ye=t.set(j.ExtHostContext.ExtHostQuickOpen,new v.ExtHostQuickOpen(t,W,he)),be=t.set(j.ExtHostContext.ExtHostTerminalService,new x.ExtHostTerminalService(t,q,ne)),Ce=t.set(j.ExtHostContext.ExtHostDebugService,new L.ExtHostDebugService(t,W,te,ue,q,be)),Ee=t.set(j.ExtHostContext.ExtHostSCM,new y.ExtHostSCM(t,he,ne)),Se=t.set(j.ExtHostContext.ExtHostSearch,new Y.ExtHostSearch(t,null)),xe=t.set(j.ExtHostContext.ExtHostTask,new k.ExtHostTask(t,W,ue,q)),we=t.set(j.ExtHostContext.ExtHostWindow,new O.ExtHostWindow(t));t.set(j.ExtHostContext.ExtHostExtensionService,te)
;var Te=t.set(j.ExtHostContext.ExtHostProgress,new _.ExtHostProgress(t.getProxy(j.MainContext.MainThreadProgress))),Pe=t.set(j.ExtHostContext.ExtHostComments,new Q.ExtHostComments(t,he.converter,ce)),Ie=Object.keys(j.ExtHostContext).map(function(e){return j.ExtHostContext[e]});t.assertRegistered(Ie);var De=new w.ExtHostMessageService(t),ke=new U.ExtHostDialogs(t),Le=new C.ExtHostStatusBar(t),Oe=new S.ExtHostOutputService(t),Re=new P.ExtHostLanguages(t);return D.ExtHostApiCommands.register(he),function(t){var l=this,f=function(){function e(e){n||(console.info("Extension '"+t.id+"' uses a document selector without scheme. Learn more about this: https://go.microsoft.com/fwlink/?linkid=872305"),n=!0)}var n=!t.isUnderDevelopment;return function n(r){return Array.isArray(r)?r.forEach(n):"string"==typeof r?e():(void 0===r.scheme&&e(),t.enableProposedApi||"boolean"!=typeof r.exclusive||Z(t)),r}}(),d={registerCommand:function(e,t,n){return he.registerCommand(!0,e,t,n)},registerTextEditorCommand:function(e,t,n){
return he.registerCommand(!0,e,function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=de.getActiveTextEditor();if(o)return o.edit(function(e){r.unshift(o,e),t.apply(n,r)}).then(function(t){t||console.warn("Edits from command "+e+" were not applied.")},function(t){console.warn("An error occurred while running command "+e,t)});console.warn("Cannot execute "+e+" because there is no active text editor.")})},registerDiffInformationCommand:ee(t,function(e,t,n){return he.registerCommand(!0,e,function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return i(l,void 0,void 0,function(){var i,s;return o(this,function(o){switch(o.label){case 0:return(i=de.getActiveTextEditor())?[4,de.getDiffInformation(i.id)]:(console.warn("Cannot execute "+e+" because there is no active text editor."),[2,void 0]);case 1:return s=o.sent(),t.apply(n,[s].concat(r)),[2]}})})})}),executeCommand:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
;return he.executeCommand.apply(he,[e].concat(t))},getCommands:function(e){return void 0===e&&(e=!1),he.getCommands(e)}},h=Object.freeze({get machineId(){return e.telemetryInfo.machineId},get sessionId(){return e.telemetryInfo.sessionId},get language(){return s.language},get appName(){return u.default.nameLong},get appRoot(){return e.environment.appRoot},get logLevel(){return ne.getLevel()}}),p={getExtension:function(e){var t=te.getExtensionDescription(e);if(t)return new re(te,t)},get all(){return te.getAllExtensionDescriptions().map(function(e){return new re(te,e)})}},g={createDiagnosticCollection:function(e){return ge.createDiagnosticCollection(e)},get onDidChangeDiagnostics(){return ge.onDidChangeDiagnostics},getDiagnostics:function(e){return ge.getDiagnostics(e)},getLanguages:function(){return Re.getLanguages()},match:function(e,t){return r.score($.LanguageSelector.from(e),t.uri,t.languageId,!0)},registerCodeActionsProvider:function(e,t,n){return me.registerCodeActionProvider(f(e),t,n)},
registerCodeLensProvider:function(e,t){return me.registerCodeLensProvider(f(e),t)},registerDefinitionProvider:function(e,t){return me.registerDefinitionProvider(f(e),t)},registerImplementationProvider:function(e,t){return me.registerImplementationProvider(f(e),t)},registerTypeDefinitionProvider:function(e,t){return me.registerTypeDefinitionProvider(f(e),t)},registerHoverProvider:function(e,n){return me.registerHoverProvider(f(e),n,t.id)},registerDocumentHighlightProvider:function(e,t){return me.registerDocumentHighlightProvider(f(e),t)},registerReferenceProvider:function(e,t){return me.registerReferenceProvider(f(e),t)},registerRenameProvider:function(e,t){return me.registerRenameProvider(f(e),t)},registerDocumentSymbolProvider:function(e,n){return me.registerDocumentSymbolProvider(f(e),n,t)},registerWorkspaceSymbolProvider:function(e){return me.registerWorkspaceSymbolProvider(e)},registerDocumentFormattingEditProvider:function(e,t){return me.registerDocumentFormattingEditProvider(f(e),t)},
registerDocumentRangeFormattingEditProvider:function(e,t){return me.registerDocumentRangeFormattingEditProvider(f(e),t)},registerOnTypeFormattingEditProvider:function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];return me.registerOnTypeFormattingEditProvider(f(e),t,[n].concat(r))},registerSignatureHelpProvider:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return me.registerSignatureHelpProvider(f(e),t,n)},registerCompletionItemProvider:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return me.registerCompletionItemProvider(f(e),t,n)},registerDocumentLinkProvider:function(e,t){return me.registerDocumentLinkProvider(f(e),t)},registerColorProvider:function(e,t){return me.registerColorProvider(f(e),t)},registerFoldingRangeProvider:function(e,t){return me.registerFoldingRangeProvider(f(e),t)},setLanguageConfiguration:function(e,t){return me.setLanguageConfiguration(e,t)}},m={get activeTextEditor(){return de.getActiveTextEditor()},
get visibleTextEditors(){return de.getVisibleTextEditors()},get activeTerminal(){return ee(t,be.activeTerminal)},get terminals(){return ee(t,be.terminals)},showTextDocument:function(e,t,n){return(A.default.isUri(e)?M.TPromise.wrap(v.openTextDocument(e)):M.TPromise.wrap(e)).then(function(e){return de.showTextDocument(e,t,n)})},createTextEditorDecorationType:function(e){return de.createTextEditorDecorationType(e)},onDidChangeActiveTextEditor:function(e,t,n){return de.onDidChangeActiveTextEditor(e,t,n)},onDidChangeVisibleTextEditors:function(e,t,n){return de.onDidChangeVisibleTextEditors(e,t,n)},onDidChangeTextEditorSelection:function(e,t,n){return de.onDidChangeTextEditorSelection(e,t,n)},onDidChangeTextEditorOptions:function(e,t,n){return de.onDidChangeTextEditorOptions(e,t,n)},onDidChangeTextEditorVisibleRanges:function(e,t,n){return de.onDidChangeTextEditorVisibleRanges(e,t,n)},onDidChangeTextEditorViewColumn:function(e,t,n){return de.onDidChangeTextEditorViewColumn(e,t,n)},
onDidCloseTerminal:function(e,t,n){return be.onDidCloseTerminal(e,t,n)},onDidOpenTerminal:ee(t,function(e,t,n){return be.onDidOpenTerminal(e,t,n)}),onDidChangeActiveTerminal:ee(t,function(e,t,n){return be.onDidChangeActiveTerminal(e,t,n)}),get state(){return we.state},onDidChangeWindowState:function(e,t,n){return we.onDidChangeWindowState(e,t,n)},showInformationMessage:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return De.showMessage(t,N.default.Info,e,n,r)},showWarningMessage:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return De.showMessage(t,N.default.Warning,e,n,r)},showErrorMessage:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return De.showMessage(t,N.default.Error,e,n,r)},showQuickPick:function(e,t,n){return ye.showQuickPick(e,t,n)},showWorkspaceFolderPick:function(e){return ye.showWorkspaceFolderPick(e)},showInputBox:function(e,t){return ye.showInput(e,t)},showOpenDialog:function(e){return ke.showOpenDialog(e)},
showSaveDialog:function(e){return ke.showSaveDialog(e)},createStatusBarItem:function(e,n){return Le.createStatusBarEntry(t.id,e,n)},setStatusBarMessage:function(e,t){return Le.setStatusBarMessage(e,t)},withScmProgress:function(e){return console.warn("[Deprecation Warning] function 'withScmProgress' is deprecated and should no longer be used. Use 'withProgress' instead."),Te.withProgress(t,{location:R.ProgressLocation.SourceControl},function(t,n){return e({report:function(e){}})})},withProgress:function(e,n){return Te.withProgress(t,e,n)},createOutputChannel:function(e){return Oe.createOutputChannel(e)},createWebviewPanel:function(e,n,r,i){return se.createWebview(e,n,r,i,t.extensionLocation)},createTerminal:function(e,t,n){return"object"==typeof e?be.createTerminalFromOptions(e):be.createTerminal(e,t,n)},createTerminalRenderer:function(e){return be.createTerminalRenderer(e)},registerTreeDataProvider:function(e,t){return pe.registerTreeDataProvider(e,t)},createTreeView:function(e,t){
return pe.createTreeView(e,t)},registerWebviewPanelSerializer:function(e,t){return se.registerWebviewPanelSerializer(e,t)},sampleFunction:ee(t,function(){return De.showMessage(t,N.default.Info,"Hello Proposed Api!",{},[])}),registerDecorationProvider:ee(t,function(e){return oe.registerDecorationProvider(e,t.id)}),registerProtocolHandler:ee(t,function(e){return ae.registerProtocolHandler(t.id,e)}),get quickInputBackButton(){return ee(t,function(){return ye.backButton})()},createQuickPick:ee(t,function(){return ye.createQuickPick(t.id)}),createInputBox:ee(t,function(){return ye.createInputBox(t.id)})},v={get rootPath(){return W.getPath()},set rootPath(e){throw a.readonly()},getWorkspaceFolder:function(e){return W.getWorkspaceFolder(e)},get workspaceFolders(){return W.getWorkspaceFolders()},get name(){return W.workspace?W.workspace.name:void 0},set name(e){throw a.readonly()},updateWorkspaceFolders:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i]
;return W.updateWorkspaceFolders.apply(W,[t,e,n||0].concat(r))},onDidChangeWorkspaceFolders:function(e,t,n){return W.onDidChangeWorkspace(e,t,n)},asRelativePath:function(e,t){return W.getRelativePath(e,t)},findFiles:function(e,n,r,i){return W.findFiles($.GlobPattern.from(e),$.GlobPattern.from(n),r,t.id,i)},saveAll:function(e){return W.saveAll(e)},applyEdit:function(e){return de.applyWorkspaceEdit(e)},createFileSystemWatcher:function(e,t,n,r){return _e.createFileSystemWatcher($.GlobPattern.from(e),t,n,r)},get textDocuments(){return ce.getAllDocumentData().map(function(e){return e.document})},set textDocuments(e){throw a.readonly()},openTextDocument:function(e){var t,n=e;if("string"==typeof e)t=M.TPromise.as(A.default.file(e));else if(e instanceof A.default)t=M.TPromise.as(e);else{if(n&&"object"!=typeof n)throw new Error("illegal argument - uriOrFileNameOrOptions");t=ce.createDocumentData(n)}return t.then(function(e){return ce.ensureDocumentData(e).then(function(){var t=ce.getDocumentData(e)
;return t&&t.document})})},onDidOpenTextDocument:function(e,t,n){return ce.onDidAddDocument(e,t,n)},onDidCloseTextDocument:function(e,t,n){return ce.onDidRemoveDocument(e,t,n)},onDidChangeTextDocument:function(e,t,n){return ce.onDidChangeDocument(e,t,n)},onDidSaveTextDocument:function(e,t,n){return ce.onDidSaveDocument(e,t,n)},onWillSaveTextDocument:function(e,n,r){return fe.getOnWillSaveTextDocumentEvent(t)(e,n,r)},onDidChangeConfiguration:function(e,t,n){return q.onDidChangeConfiguration(e,t,n)},getConfiguration:function(e,n){return n=1===arguments.length?void 0:n,q.getConfiguration(e,n,t.id)},registerTextDocumentContentProvider:function(e,t){return le.registerTextDocumentContentProvider(e,t)},registerTaskProvider:function(e,n){return xe.registerTaskProvider(t,n)},registerFileSystemProvider:function(e,t,n){return ve.registerFileSystemProvider(e,t,n)},registerSearchProvider:ee(t,function(e,t){return Se.registerSearchProvider(e,t)}),registerDocumentCommentProvider:ee(t,function(e){
return Pe.registerDocumentCommentProvider(e)}),registerWorkspaceCommentProvider:ee(t,function(e){return Pe.registerWorkspaceCommentProvider(e)}),onDidRenameFile:ee(t,function(e,t,n){return _e.onDidRenameFile(e,t,n)}),onWillRenameFile:ee(t,function(e,n,r){return _e.getOnWillRenameFileEvent(t)(e,n,r)})},_={get inputBox(){return Ee.getLastInputBox(t)},createSourceControl:function(e,n,r){return Ee.createSourceControl(t,e,n,r)}},y={get activeDebugSession(){return Ce.activeDebugSession},get activeDebugConsole(){return Ce.activeDebugConsole},get breakpoints(){return Ce.breakpoints},onDidStartDebugSession:function(e,t,n){return Ce.onDidStartDebugSession(e,t,n)},onDidTerminateDebugSession:function(e,t,n){return Ce.onDidTerminateDebugSession(e,t,n)},onDidChangeActiveDebugSession:function(e,t,n){return Ce.onDidChangeActiveDebugSession(e,t,n)},onDidReceiveDebugSessionCustomEvent:function(e,t,n){return Ce.onDidReceiveDebugSessionCustomEvent(e,t,n)},onDidChangeBreakpoints:function(e,t,n){
return Ce.onDidChangeBreakpoints(e,t,n)},registerDebugConfigurationProvider:function(e,t){return Ce.registerDebugConfigurationProvider(e,t)},startDebugging:function(e,t){return Ce.startDebugging(e,t)},addBreakpoints:function(e){return Ce.addBreakpoints(e)},removeBreakpoints:function(e){return Ce.removeBreakpoints(e)}},b={registerTaskProvider:function(e,n){return xe.registerTaskProvider(t,n)},fetchTasks:function(e){return xe.fetchTasks(e)},executeTask:function(e){return xe.executeTask(t,e)},get taskExecutions(){return xe.taskExecutions},onDidStartTask:function(e,t,n){return xe.onDidStartTask(e,t,n)},onDidEndTask:function(e,t,n){return xe.onDidEndTask(e,t,n)},onDidStartTaskProcess:function(e,t,n){return xe.onDidStartTaskProcess(e,t,n)},onDidEndTaskProcess:function(e,t,n){return xe.onDidEndTaskProcess(e,t,n)}};return{version:c.default.version,commands:d,env:h,extensions:p,languages:g,window:m,workspace:v,scm:_,debug:y,tasks:b,Breakpoint:R.Breakpoint,CancellationTokenSource:F.CancellationTokenSource,
CodeAction:R.CodeAction,CodeActionKind:R.CodeActionKind,CodeLens:R.CodeLens,Color:R.Color,ColorPresentation:R.ColorPresentation,ColorInformation:R.ColorInformation,CodeActionTrigger:R.CodeActionTrigger,EndOfLine:R.EndOfLine,CompletionItem:R.CompletionItem,CompletionItemKind:R.CompletionItemKind,CompletionList:R.CompletionList,CompletionTriggerKind:R.CompletionTriggerKind,DebugAdapterExecutable:R.DebugAdapterExecutable,Diagnostic:R.Diagnostic,DiagnosticRelatedInformation:R.DiagnosticRelatedInformation,DiagnosticTag:R.DiagnosticTag,DiagnosticSeverity:R.DiagnosticSeverity,Disposable:R.Disposable,DocumentHighlight:R.DocumentHighlight,DocumentHighlightKind:R.DocumentHighlightKind,DocumentLink:R.DocumentLink,EventEmitter:n.Emitter,FunctionBreakpoint:R.FunctionBreakpoint,Hover:R.Hover,IndentAction:H.IndentAction,Location:R.Location,LogLevel:R.LogLevel,MarkdownString:R.MarkdownString,OverviewRulerLane:G.OverviewRulerLane,ParameterInformation:R.ParameterInformation,Position:R.Position,Range:R.Range,
Selection:R.Selection,SignatureHelp:R.SignatureHelp,SignatureInformation:R.SignatureInformation,SnippetString:R.SnippetString,SourceBreakpoint:R.SourceBreakpoint,StatusBarAlignment:R.StatusBarAlignment,SymbolInformation:R.SymbolInformation,DocumentSymbol:R.DocumentSymbol,SymbolKind:R.SymbolKind,SourceControlInputBoxValidationType:R.SourceControlInputBoxValidationType,TextDocumentSaveReason:R.TextDocumentSaveReason,TextEdit:R.TextEdit,TextEditorCursorStyle:z.TextEditorCursorStyle,TextEditorLineNumbersStyle:R.TextEditorLineNumbersStyle,TextEditorRevealType:R.TextEditorRevealType,TextEditorSelectionChangeKind:R.TextEditorSelectionChangeKind,DecorationRangeBehavior:R.DecorationRangeBehavior,Uri:A.default,ViewColumn:R.ViewColumn,WorkspaceEdit:R.WorkspaceEdit,ProgressLocation:R.ProgressLocation,TreeItemCollapsibleState:R.TreeItemCollapsibleState,ThemeIcon:R.ThemeIcon,TreeItem:R.TreeItem,ThemeColor:R.ThemeColor,TaskRevealKind:R.TaskRevealKind,TaskPanelKind:R.TaskPanelKind,TaskGroup:R.TaskGroup,
ProcessExecution:R.ProcessExecution,ShellExecution:R.ShellExecution,ShellQuoting:R.ShellQuoting,TaskScope:R.TaskScope,Task:R.Task,ConfigurationTarget:R.ConfigurationTarget,RelativePattern:R.RelativePattern,FileChangeType:R.FileChangeType,FileType:B.FileType,FileSystemError:R.FileSystemError,FoldingRange:R.FoldingRange,FoldingRangeKind:R.FoldingRangeKind,CommentThreadCollapsibleState:R.CommentThreadCollapsibleState}}},t.originalFSPath=te;var re=function(){function e(e,t){this._extensionService=e,this.id=t.id,this.extensionPath=W.normalize(te(t.extensionLocation),!0),this.packageJSON=t}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this._extensionService.isActivated(this.id)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exports",{get:function(){return this._extensionService.getExtensionExports(this.id)},enumerable:!0,configurable:!0}),e.prototype.activate=function(){var e=this
;return this._extensionService.activateByIdWithErrors(this.id,new q.ExtensionActivatedByAPI(!1)).then(function(){return e.exports})},e}();t.initializeExtensionApi=ne;var ie={id:"nullExtensionDescription",name:"Null Extension Description",publisher:"vscode",activationEvents:void 0,contributes:void 0,enableProposedApi:!1,engines:void 0,extensionDependencies:void 0,extensionLocation:void 0,isBuiltin:!1,isUnderDevelopment:!1,main:void 0,version:void 0}}),define(e[214],t([0,1,11,21,33,34,2,171,187,213,5,44,20,15,3]),function(e,t,n,r,s,a,u,c,l,f,d,h,p,g,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(){function e(e,t,n){var r=this;this._id=e,this._shared=t,this._storage=n,this._init=this._storage.getValue(this._shared,this._id,Object.create(null)).then(function(e){return r._value=e,r})}return Object.defineProperty(e.prototype,"whenReady",{get:function(){return this._init},enumerable:!0,configurable:!0}),e.prototype.get=function(e,t){var n=this._value[e];return void 0===n&&(n=t),n},
e.prototype.update=function(e,t){return this._value[e]=t,this._storage.setValue(this._shared,this._id,this._value).then(function(){return!0})},e}(),_=function(){function e(e,t){var n=this;this._workspace=e,this._environment=t,this._ready=this._getOrCreateWorkspaceStoragePath().then(function(e){return n._value=e})}return Object.defineProperty(e.prototype,"whenReady",{get:function(){return this._ready},enumerable:!0,configurable:!0}),e.prototype.value=function(e){if(this._value)return r.join(this._value,e.id)},e.prototype._getOrCreateWorkspaceStoragePath=function(){return i(this,void 0,u.TPromise,function(){var e,t,n,i;return o(this,function(o){switch(o.label){case 0:return this._workspace?(e=this._workspace.id,t=r.join(this._environment.appSettingsHome,"workspaceStorage",e),[4,s.dirExists(t)]):[2,u.TPromise.as(void 0)];case 1:if(n=o.sent())return[2,t];o.label=2;case 2:return o.trys.push([2,5,,6]),[4,s.mkdirp(t)];case 3:return o.sent(),[4,s.writeFile(r.join(t,"meta.json"),JSON.stringify({id:this._workspace.id,
configuration:this._workspace.configuration&&m.default.revive(this._workspace.configuration).toString(),name:this._workspace.name},void 0,2))];case 4:return o.sent(),[2,t];case 5:return i=o.sent(),console.error(i),[2,void 0];case 6:return[2]}})})},e}(),y=function(){function t(e,t,n,r,i){var o=this;this._barrier=new g.Barrier,this._registry=new c.ExtensionDescriptionRegistry(e.extensions),this._extHostLogService=i,this._mainThreadTelemetry=t.getProxy(d.MainContext.MainThreadTelemetry),this._storage=new l.ExtHostStorage(t),this._storagePath=new _(e.workspace,e.environment),this._proxy=t.getProxy(d.MainContext.MainThreadExtensionService),this._activator=null;var s=f.createApiFactory(e,t,n,r,this,this._extHostLogService);f.initializeExtensionApi(this,s).then(function(){o._activator=new h.ExtensionsActivator(o._registry,{showMessage:function(e,t){switch(o._proxy.$localShowMessage(e,t),e){case a.default.Error:console.error(t);break;case a.default.Warning:console.warn(t);break;default:console.log(t)}},
actualActivateExtension:function(e,t){return o._activateExtension(e,t)}}),o._barrier.open()})}return t.prototype.onExtensionAPIReady=function(){return this._barrier.wait()},t.prototype.isActivated=function(e){return!!this._barrier.isOpen()&&this._activator.isActivated(e)},t.prototype.activateByEvent=function(e,t){var n=this,r=new h.ExtensionActivatedByEvent(t,e);return this._barrier.isOpen()?this._activator.activateByEvent(e,r):this._barrier.wait().then(function(){return n._activator.activateByEvent(e,r)})},t.prototype.activateById=function(e,t){var n=this;return this._barrier.isOpen()?this._activator.activateById(e,t):this._barrier.wait().then(function(){return n._activator.activateById(e,t)})},t.prototype.activateByIdWithErrors=function(e,t){var n=this;return this.activateById(e,t).then(function(){var t=n._activator.getActivatedExtension(e);if(t.activationFailed)return u.TPromise.wrapError(t.activationFailedError)})},t.prototype.getAllExtensionDescriptions=function(){
return this._registry.getAllExtensionDescriptions()},t.prototype.getExtensionDescription=function(e){return this._registry.getExtensionDescription(e)},t.prototype.getExtensionExports=function(e){return this._barrier.isOpen()?this._activator.getActivatedExtension(e).exports:null},t.prototype.getExtensionPathIndex=function(){if(!this._extensionPathIndex){var e=p.TernarySearchTree.forPaths(),t=this.getAllExtensionDescriptions().map(function(t){if(t.main)return s.realpath(t.extensionLocation.fsPath).then(function(n){return e.set(n,t)})});this._extensionPathIndex=u.TPromise.join(t).then(function(){return e})}return this._extensionPathIndex},t.prototype.deactivate=function(e){var t=u.TPromise.as(void 0);if(!this._barrier.isOpen())return t;if(!this._activator.isActivated(e))return t;var r=this._activator.getActivatedExtension(e);if(!r)return t;try{"function"==typeof r.module.deactivate&&(t=u.TPromise.wrap(r.module.deactivate()).then(null,function(e){return u.TPromise.as(void 0)}))}catch(e){}try{
n.dispose(r.subscriptions)}catch(e){}return t},t.prototype.addMessage=function(e,t,n){this._proxy.$addMessage(e,t,n)},t.prototype._activateExtension=function(e,t){var n=this;return this._doActivateExtension(e,t).then(function(r){var i=r.activationTimes,o=t instanceof h.ExtensionActivatedByEvent?t.activationEvent:null;return n._proxy.$onExtensionActivated(e.id,i.startup,i.codeLoadingTime,i.activateCallTime,i.activateResolvedTime,o),r},function(t){throw n._proxy.$onExtensionActivationFailed(e.id),t})},t.prototype._doActivateExtension=function(n,r){var i=this,o=function(e){return{id:e.id,name:e.name,publisherDisplayName:e.publisher,activationEvents:e.activationEvents?e.activationEvents.join(","):null,isBuiltin:e.isBuiltin}}(n);if(this._mainThreadTelemetry.$publicLog("activatePlugin",o),!n.main)return u.TPromise.as(new h.EmptyExtension(h.ExtensionActivationTimes.NONE));this._extHostLogService.info("ExtensionService#_doActivateExtension "+n.id+" "+JSON.stringify(r))
;var s=new h.ExtensionActivationTimesBuilder(r.startup);return u.TPromise.join([function(t,n,r){var i=null;r.codeLoadingStart(),t.info("ExtensionService#loadCommonJSModule "+n);try{i=e.__$__nodeRequire(n)}catch(e){return u.TPromise.wrapError(e)}finally{r.codeLoadingStop()}return u.TPromise.as(i)}(this._extHostLogService,n.main,s),this._loadExtensionContext(n)]).then(function(e){return t._callActivate(i._extHostLogService,n.id,e[0],e[1],s)},function(e){return e[0]?u.TPromise.wrapError(e[0]):e[1]?u.TPromise.wrapError(e[1]):void 0})},t.prototype._loadExtensionContext=function(e){var t=this,n=new v(e.id,!0,this._storage),i=new v(e.id,!1,this._storage);return this._extHostLogService.trace("ExtensionService#loadExtensionContext "+e.id),u.TPromise.join([n.whenReady,i.whenReady,this._storagePath.whenReady]).then(function(){var o=t;return Object.freeze({globalState:n,workspaceState:i,subscriptions:[],get extensionPath(){return e.extensionLocation.fsPath},storagePath:t._storagePath.value(e),asAbsolutePath:function(t){
return r.join(e.extensionLocation.fsPath,t)},get logger(){return f.checkProposedApiEnabled(e),o._extHostLogService.getExtLogger(e.id)},get logDirectory(){return f.checkProposedApiEnabled(e),o._extHostLogService.getLogDirectory(e.id)}})})},t._callActivate=function(e,t,n,r,i){return n=n||{activate:void 0,deactivate:void 0},this._callActivateOptional(e,t,n,r,i).then(function(e){return new h.ActivatedExtension(!1,null,i.build(),n,e,r.subscriptions)})},t._callActivateOptional=function(e,t,n,r,i){if("function"!=typeof n.activate)return u.TPromise.as(n);try{i.activateCallStart(),e.trace("ExtensionService#_callActivateOptional "+t);var o=n.activate.apply(global,[r]);return i.activateCallStop(),i.activateResolveStart(),u.TPromise.as(o).then(function(e){return i.activateResolveStop(),e})}catch(e){return u.TPromise.wrapError(e)}},t.prototype.$activateByEvent=function(e){return this.activateByEvent(e,!1)},t}();t.ExtHostExtensionService=y}),
define(e[153],t([0,1,2,72,50,43,66,9,30,75,165,6,71,11,4,78,146,60,194]),function(e,t,r,i,o,s,c,l,f,d,h,p,g,m,v,_,y,b,C){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var E=function(e){function t(t,n,r,i,o,s,a,u,c,l){var f=e.call(this)||this;return f.resource=t,f.modeId=r,f.initialValue=i,f.preferredEncoding=o,f.instantiationService=s,f.contextService=a,f.textFileService=u,f.environmentService=c,f.hashService=l,f._hasAssociatedFilePath=n,f.toUnbind=[],f._onDidModelChangeContent=new v.Emitter,f._onDidModelChangeEncoding=new v.Emitter,f}return n(t,e),Object.defineProperty(t.prototype,"hasAssociatedFilePath",{get:function(){return this._hasAssociatedFilePath},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidModelChangeContent",{get:function(){return this._onDidModelChangeContent.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidModelChangeEncoding",{get:function(){return this._onDidModelChangeEncoding.event},enumerable:!0,configurable:!0}),
t.prototype.getTypeId=function(){return t.ID},t.prototype.getResource=function(){return this.resource},t.prototype.getModeId=function(){return this.cachedModel?this.cachedModel.getModeId():this.modeId},t.prototype.getName=function(){return this.hasAssociatedFilePath?f.basenameOrAuthority(this.resource):this.resource.path},Object.defineProperty(t.prototype,"shortDescription",{get:function(){return l.basename(s.getPathLabel(f.dirname(this.resource),this.environmentService))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mediumDescription",{get:function(){return s.getPathLabel(f.dirname(this.resource),this.environmentService,this.contextService)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"longDescription",{get:function(){return s.getPathLabel(f.dirname(this.resource),this.environmentService)},enumerable:!0,configurable:!0}),t.prototype.getDescription=function(e){if(void 0===e&&(e=d.Verbosity.MEDIUM),!this.hasAssociatedFilePath)return null;var t;switch(e){
case d.Verbosity.SHORT:t=this.shortDescription;break;case d.Verbosity.LONG:t=this.longDescription;break;case d.Verbosity.MEDIUM:default:t=this.mediumDescription}return t},Object.defineProperty(t.prototype,"shortTitle",{get:function(){return this.getName()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mediumTitle",{get:function(){return s.getPathLabel(this.resource,this.environmentService,this.contextService)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"longTitle",{get:function(){return s.getPathLabel(this.resource,this.environmentService)},enumerable:!0,configurable:!0}),t.prototype.getTitle=function(e){if(!this.hasAssociatedFilePath)return this.getName();var t;switch(e){case d.Verbosity.SHORT:t=this.shortTitle;break;case d.Verbosity.MEDIUM:t=this.mediumTitle;break;case d.Verbosity.LONG:t=this.longTitle}return t},t.prototype.isDirty=function(){return this.cachedModel?this.cachedModel.isDirty():!this.isDisposed()&&this.hasAssociatedFilePath},
t.prototype.confirmSave=function(){return this.textFileService.confirmSave([this.resource])},t.prototype.save=function(){return this.textFileService.save(this.resource)},t.prototype.revert=function(){return this.cachedModel&&this.cachedModel.revert(),this.dispose(),r.TPromise.as(!0)},t.prototype.suggestFileName=function(){if(!this.hasAssociatedFilePath&&this.cachedModel){var e=this.cachedModel.getModeId();if(e!==c.PLAINTEXT_MODE_ID)return i.suggestFilename(e,this.getName())}return this.getName()},t.prototype.getEncoding=function(){return this.cachedModel?this.cachedModel.getEncoding():this.preferredEncoding},t.prototype.setEncoding=function(e,t){this.preferredEncoding=e,this.cachedModel&&this.cachedModel.setEncoding(e)},t.prototype.resolve=function(){return this.modelResolve?this.modelResolve:(this.cachedModel=this.createModel(),this.modelResolve=this.cachedModel.load(),this.modelResolve)},t.prototype.createModel=function(){
var e=this,t=this.instantiationService.createInstance(h.UntitledEditorModel,this.modeId,this.resource,this.hasAssociatedFilePath,this.initialValue,this.preferredEncoding);return this.toUnbind.push(t.onDidChangeContent(function(){return e._onDidModelChangeContent.fire()})),this.toUnbind.push(t.onDidChangeDirty(function(){return e._onDidChangeDirty.fire()})),this.toUnbind.push(t.onDidChangeEncoding(function(){return e._onDidModelChangeEncoding.fire()})),t},t.prototype.getTelemetryDescriptor=function(){var t=this,n=e.prototype.getTelemetryDescriptor.call(this);return n.resource=y.telemetryURIDescriptor(this.getResource(),function(e){return t.hashService.createSHA1(e)}),n},t.prototype.matches=function(n){if(!0===e.prototype.matches.call(this,n))return!0;if(n instanceof t){return n.resource.toString()===this.resource.toString()}return!1},t.prototype.dispose=function(){this._onDidModelChangeContent.dispose(),this._onDidModelChangeEncoding.dispose(),m.dispose(this.toUnbind),
this.cachedModel&&(this.cachedModel.dispose(),this.cachedModel=null),this.modelResolve=void 0,e.prototype.dispose.call(this)},t.ID="workbench.editors.untitledEditorInput",a([o.memoize],t.prototype,"shortDescription",null),a([o.memoize],t.prototype,"mediumDescription",null),a([o.memoize],t.prototype,"longDescription",null),a([o.memoize],t.prototype,"shortTitle",null),a([o.memoize],t.prototype,"mediumTitle",null),a([o.memoize],t.prototype,"longTitle",null),t=a([u(5,p.IInstantiationService),u(6,g.IWorkspaceContextService),u(7,_.ITextFileService),u(8,b.IEnvironmentService),u(9,C.IHashService)],t)}(d.EditorInput);t.UntitledEditorInput=E}),define(e[92],t([0,1,3,6,12,153,26,4,20,23]),function(e,t,n,r,i,o,s,c,l,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IUntitledEditorService=r.createDecorator("untitledEditorService");var d=function(){function e(e,t){this.instantiationService=e,this.configurationService=t,this.mapResourceToInput=new l.ResourceMap,
this.mapResourceToAssociatedFilePath=new l.ResourceMap,this._onDidChangeContent=new c.Emitter,this._onDidChangeDirty=new c.Emitter,this._onDidChangeEncoding=new c.Emitter,this._onDidDisposeModel=new c.Emitter}return Object.defineProperty(e.prototype,"onDidDisposeModel",{get:function(){return this._onDidDisposeModel.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeContent",{get:function(){return this._onDidChangeContent.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeDirty",{get:function(){return this._onDidChangeDirty.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeEncoding",{get:function(){return this._onDidChangeEncoding.event},enumerable:!0,configurable:!0}),e.prototype.get=function(e){return this.mapResourceToInput.get(e)},e.prototype.getAll=function(e){var t=this;return e?i.coalesce(e.map(function(e){return t.get(e)})):this.mapResourceToInput.values()},e.prototype.exists=function(e){
return this.mapResourceToInput.has(e)},e.prototype.revertAll=function(e,t){var n=[];return this.getAll(e).forEach(function(e){e&&(e.revert(),e.dispose(),n.push(e.getResource()))}),n},e.prototype.isDirty=function(e){var t=this.get(e);return t&&t.isDirty()},e.prototype.getDirty=function(e){var t=this;return(e?e.map(function(e){return t.get(e)}).filter(function(e){return!!e}):this.mapResourceToInput.values()).filter(function(e){return e.isDirty()}).map(function(e){return e.getResource()})},e.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()},e.prototype.createOrGet=function(e,t,n,r,i){return void 0===i&&(i=!1),e&&(e.scheme===f.Schemas.file&&(i=!0,e=e.with({scheme:f.Schemas.untitled})),i&&this.mapResourceToAssociatedFilePath.set(e,!0)),e&&this.mapResourceToInput.has(e)?this.mapResourceToInput.get(e):this.doCreate(e,i,t,n,r)},e.prototype.doCreate=function(e,t,r,i,s){var a=this;if(!e){
var u=this.mapResourceToInput.size+1;do{e=n.default.from({scheme:f.Schemas.untitled,path:"Untitled-"+u}),u++}while(this.mapResourceToInput.has(e))}if(!r&&!t){var l=this.configurationService.getValue();l.files&&l.files.defaultLanguage&&(r=l.files.defaultLanguage)}var d=this.instantiationService.createInstance(o.UntitledEditorInput,e,t,r,i,s),h=d.onDidModelChangeContent(function(){a._onDidChangeContent.fire(e)}),p=d.onDidChangeDirty(function(){a._onDidChangeDirty.fire(e)}),g=d.onDidModelChangeEncoding(function(){a._onDidChangeEncoding.fire(e)}),m=d.onDispose(function(){a._onDidDisposeModel.fire(e)});return c.once(d.onDispose)(function(){a.mapResourceToInput.delete(d.getResource()),a.mapResourceToAssociatedFilePath.delete(d.getResource()),h.dispose(),p.dispose(),g.dispose(),m.dispose()}),this.mapResourceToInput.set(e,d),d},e.prototype.hasAssociatedFilePath=function(e){return this.mapResourceToAssociatedFilePath.has(e)},e.prototype.suggestFileName=function(e){var t=this.get(e);return t?t.suggestFileName():void 0
},e.prototype.getEncoding=function(e){var t=this.get(e);return t?t.getEncoding():void 0},e.prototype.dispose=function(){this._onDidChangeContent.dispose(),this._onDidChangeDirty.dispose(),this._onDidChangeEncoding.dispose(),this._onDidDisposeModel.dispose()},e=a([u(0,r.IInstantiationService),u(1,s.IConfigurationService)],e)}();t.UntitledEditorService=d}),define(e[89],t([0,1,2,3,12,16,7,45,95,70,92,36,26,196,60,20,145,17,23,33,39,170]),function(e,t,n,r,i,o,s,c,l,f,d,h,p,g,m,v,_,y,b,C,E,S){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var x=function(){function e(e,t,n,r,i,o,s){this.modelService=e,this.untitledEditorService=t,this.telemetryService=r,this.configurationService=i,this.logService=o,this.extensionService=s,this.searchProviders=[],this.diskSearch=new w(!n.isBuilt||n.verbose,void 0,n.debugSearch)}return e.prototype.registerSearchResultProvider=function(e,t){var n=this;return"file"===e?this.fileSearchProvider=t:this.searchProviders.push(t),{dispose:function(){
if("file"===e)n.fileSearchProvider=null;else{var r=n.searchProviders.indexOf(t);r>=0&&n.searchProviders.splice(r,1)}}}},e.prototype.extendQuery=function(e){var t=this.configurationService.getValue();if(!e.fileEncoding){var n=t&&t.files&&t.files.encoding;e.fileEncoding=n}if(!e.disregardExcludeSettings){var r=o.deepClone(t&&t.files&&t.files.exclude);r&&(e.excludePattern?o.mixin(e.excludePattern,r,!1):e.excludePattern=r)}},e.prototype.search=function(e){var t=this;this.forwardTelemetry();var r;return new n.PPromise(function(o,s,a){var u=t.getLocalResults(e);process.nextTick(function(){return u.values().filter(function(e){return!!e}).forEach(a)}),t.logService.trace("SearchService#search",JSON.stringify(e));var c=Date.now(),l=t.extensionService.whenInstalledExtensionsRegistered().then(function(){var r=[t.fileSearchProvider||t.diskSearch].concat(t.searchProviders);return n.TPromise.join(r.map(function(r){return function(r){return n.TPromise.wrap(r.search(e)).then(function(e){return e},null,function(e){
e.resource?u.has(e.resource)||a(e):a(e),e.message&&t.logService.debug("SearchService#search",e.message)})}(r)})).then(function(e){return(e=e.filter(function(e){return!!e})).length?{limitHit:e[0]&&e[0].limitHit,stats:e[0].stats,results:i.flatten(e.map(function(e){return e.results}))}:null},function(e){return Array.isArray(e)||(e=[e]),e=e.filter(function(e){return!!e}),n.TPromise.wrapError(e[0])})});r=l.then(function(e){t.logService.debug("SearchService#search: "+(Date.now()-c)+"ms");for(var n={limitHit:!1,results:[],stats:void 0},r=0,i=[e];r<i.length;r++){var o=i[r];if(o){n.stats=o.stats||n.stats,n.limitHit=o.limitHit||n.limitHit;for(var s=0,a=o.results;s<a.length;s++){var l=a[s];u.has(l.resource)||n.results.push(l)}}}return n}).then(o,s)},function(){return r&&r.cancel()})},e.prototype.getLocalResults=function(e){var t=this,n=new v.ResourceMap;if(e.type===f.QueryType.Text){this.modelService.getModels().forEach(function(r){var i=r.uri;if(i){if(i.scheme===b.Schemas.untitled){
if(!t.untitledEditorService.exists(i))return}else if(i.scheme!==b.Schemas.file)return;if(t.matches(i,e)){var o=r.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 s=new f.FileMatch(i);n.set(i,s),o.forEach(function(e){s.lineMatches.push(new f.LineMatch(r.getLineContent(e.range.startLineNumber),e.range.startLineNumber-1,[[e.range.startColumn-1,e.range.endColumn-e.range.startColumn]]))})}else n.set(i,null)}}})}return n},e.prototype.matches=function(e,t){if(t.filePattern){if(e.scheme!==b.Schemas.file)return!1;if(!s.fuzzyContains(e.fsPath,s.stripWildcards(t.filePattern).toLowerCase()))return!1}return(!t.includePattern||e.scheme===b.Schemas.file)&&f.pathIncludedInQuery(t,e.fsPath)},e.prototype.clearCache=function(e){return this.diskSearch.clearCache(e)},e.prototype.forwardTelemetry=function(){var e=this
;this.forwardingTelemetry||(this.forwardingTelemetry=this.diskSearch.fetchTelemetry().then(null,y.onUnexpectedError,function(t){e.telemetryService.publicLog(t.eventName,t.data)}))},e=a([u(0,h.IModelService),u(1,d.IUntitledEditorService),u(2,m.IEnvironmentService),u(3,_.ITelemetryService),u(4,p.IConfigurationService),u(5,E.ILogService),u(6,S.IExtensionService)],e)}();t.SearchService=x;var w=function(){function t(t,n,i){void 0===n&&(n=36e5);var o={serverName:"Search",timeout:n,args:["--type=searchService"],freshExecArgv:!0,env:{AMD_ENTRYPOINT:"vs/workbench/services/search/node/searchApp",PIPE_LOGGING:"true",VERBOSE_LOGGING:t}};i&&(i.break&&i.port?o.debugBrk=i.port:!i.break&&i.port&&(o.debug=i.port));var s=new l.Client(r.default.parse(e.toUrl("bootstrap")).fsPath,o),a=c.getNextTickChannel(s.getChannel("search"));this.raw=new g.SearchChannelClient(a)}return t.prototype.search=function(e){var r=this,i=e.folderQueries||[];return n.TPromise.join(i.map(function(e){
return e.folder.scheme===b.Schemas.file&&C.exists(e.folder.fsPath)})).then(function(n){var o,s=i.filter(function(e,t){return n[t]}),a=r.rawSearchQuery(e,s);return o=e.type===f.QueryType.File?r.raw.fileSearch(a):r.raw.textSearch(a),t.collectResults(o)})},t.prototype.rawSearchQuery=function(e,t){for(var n={folderQueries:[],extraFiles:[],filePattern:e.filePattern,excludePattern:e.excludePattern,includePattern:e.includePattern,maxResults:e.maxResults,exists:e.exists,sortByScore:e.sortByScore,cacheKey:e.cacheKey,useRipgrep:e.useRipgrep,disregardIgnoreFiles:e.disregardIgnoreFiles,ignoreSymlinks:e.ignoreSymlinks},r=0,i=t;r<i.length;r++){var o=i[r];n.folderQueries.push({excludePattern:o.excludePattern,includePattern:o.includePattern,fileEncoding:o.fileEncoding,disregardIgnoreFiles:o.disregardIgnoreFiles,folder:o.folder.fsPath})}if(e.extraFileResources)for(var s=0,a=e.extraFileResources;s<a.length;s++){var u=a[s];u.scheme===b.Schemas.file&&n.extraFiles.push(u.fsPath)}
return e.type===f.QueryType.Text&&(n.contentPattern=e.contentPattern),n},t.collectResults=function(e){var t=this,r=[];return new n.PPromise(function(n,i,o){e.done(function(e){n({limitHit:e.limitHit,results:r,stats:e.stats})},i,function(e){if(Array.isArray(e)){var n=e.map(function(e){return t.createFileMatch(e)});r=r.concat(n),n.forEach(o)}else if(e.path){var i=t.createFileMatch(e);r.push(i),o(i)}else o(e)})},function(){return e.cancel()})},t.createFileMatch=function(e){var t=new f.FileMatch(r.default.file(e.path));if(e.lineMatches)for(var n=0;n<e.lineMatches.length;n++)t.lineMatches.push(new f.LineMatch(e.lineMatches[n].preview,e.lineMatches[n].lineNumber,e.lineMatches[n].offsetAndLengths));return t},t.prototype.clearCache=function(e){return this.raw.clearCache(e)},t.prototype.fetchTelemetry=function(){return this.raw.fetchTelemetry()},t}();t.DiskSearch=w}),define(e[128],t([0,1,154,33,2,21,214,167,192,70,89,5,17,44,11,193,3,151]),function(e,t,n,r,s,a,u,c,l,f,d,h,p,g,m,v,_,y){"use strict";function b(t){
var n=null;try{n=e.__$__nodeRequire("native-watchdog")}catch(e){return void C(t)}(t||0===t)&&(process.exitCode=t),process._exiting||(process._exiting=!0,process.emit("exit",process.exitCode||0)),n.exit(process.exitCode||0)}Object.defineProperty(t,"__esModule",{value:!0});var C=process.exit.bind(process);t.exit=b;var E=function(){function t(e,t){this._isTerminating=!1,this.disposables=[],this._environment=t.environment;!function(e){process.exit=function(t){if(e)b(t);else{var n=new Error("An extension called process.exit() and this was prevented.");console.warn(n.stack)}},process.crash=function(){var e=new Error("An extension called process.crash() and this was prevented.");console.warn(e.stack)}}(!!this._environment.extensionTestsPath);var n=new v.RPCProtocol(e);this._workspace=n.transformIncomingURIs(t.workspace),t.extensions.forEach(function(e){return e.extensionLocation=_.default.revive(e.extensionLocation)}),this._extHostLogService=new y.ExtHostLogService(t.windowId,t.logLevel,t.logsPath),
this.disposables.push(this._extHostLogService);var r=new l.ExtHostWorkspace(n,t.workspace,this._extHostLogService);this._extHostLogService.info("extension host started"),this._extHostLogService.trace("initData",t),this._extHostConfiguration=new c.ExtHostConfiguration(n.getProxy(h.MainContext.MainThreadConfiguration),r,t.configuration),this._extensionService=new u.ExtHostExtensionService(t,n,r,this._extHostConfiguration,this._extHostLogService),Error.stackTraceLimit=100;var i=new WeakMap;this._extensionService.getExtensionPathIndex().then(function(e){Error.prepareStackTrace=function(t,n){for(var r,o,s="",a=0,u=n;a<u.length;a++){var c=u[a];s+="\n\tat "+c.toString(),o=c.getFileName(),!r&&o&&(r=e.findSubstr(o))}return i.set(t,r),(t.name||"Error")+": "+(t.message||"")+s}});var o=n.getProxy(h.MainContext.MainThreadExtensionService),s=n.getProxy(h.MainContext.MainThreadErrors);p.setUnexpectedErrorHandler(function(e){var t=p.transformErrorForSerialization(e),n=i.get(e)
;n?o.$onExtensionRuntimeError(n.id,t):s.$onUnexpectedError(t)})}return t.prototype.start=function(){var e=this;return this._extensionService.onExtensionAPIReady().then(function(){return e.handleEagerExtensions()}).then(function(){return e.handleExtensionTests()}).then(function(){e._extHostLogService.info("eager extensions activated")})},t.prototype.terminate=function(){var e=this;if(!this._isTerminating){this._isTerminating=!0,this.disposables=m.dispose(this.disposables),p.setUnexpectedErrorHandler(function(e){});var t=[];try{t=this._extensionService.getAllExtensionDescriptions().map(function(e){return e.id}).filter(function(t){return e._extensionService.isActivated(t)}).map(function(t){return e._extensionService.deactivate(t)})}catch(e){}var n=s.TPromise.join(t).then(function(){});setTimeout(function(){s.TPromise.any([s.TPromise.timeout(4e3),n]).then(function(){return b()},function(){return b()})},1e3)}},t.prototype.handleEagerExtensions=function(){
return this._extensionService.activateByEvent("*",!0).then(null,function(e){console.error(e)}),this.handleWorkspaceContainsEagerExtensions()},t.prototype.handleWorkspaceContainsEagerExtensions=function(){var e=this;return this._workspace&&0!==this._workspace.folders.length?s.TPromise.join(this._extensionService.getAllExtensionDescriptions().map(function(t){return e.handleWorkspaceContainsEagerExtension(t)})).then(function(){}):s.TPromise.as(null)},t.prototype.handleWorkspaceContainsEagerExtension=function(e){var t=this,n=e.activationEvents;if(!n)return s.TPromise.as(void 0);for(var r=[],i=[],o=0;o<n.length;o++)if(/^workspaceContains:/.test(n[o])){var a=n[o].substr("workspaceContains:".length);a.indexOf("*")>=0||a.indexOf("?")>=0?i.push(a):r.push(a)}if(0===r.length&&0===i.length)return s.TPromise.as(void 0);var u=s.TPromise.join(r.map(function(n){return t.activateIfFileName(e.id,n)})).then(function(){}),c=this.activateIfGlobPatterns(e.id,i);return s.TPromise.join([u,c]).then(function(){})},
t.prototype.activateIfFileName=function(e,t){return i(this,void 0,s.TPromise,function(){var n,i,s;return o(this,function(o){switch(o.label){case 0:n=0,i=this._workspace.folders,o.label=1;case 1:return n<i.length?(s=i[n].uri,[4,r.exists(a.join(_.default.revive(s).fsPath,t))]):[3,4];case 2:if(o.sent())return[2,this._extensionService.activateById(e,new g.ExtensionActivatedByEvent(!0,"workspaceContains:"+t)).done(null,function(e){return console.error(e)})];o.label=3;case 3:return n++,[3,1];case 4:return[2,void 0]}})})},t.prototype.activateIfGlobPatterns=function(e,t){return i(this,void 0,s.TPromise,function(){var n,r,i,a,u,c,l;return o(this,function(o){switch(o.label){case 0:return this._extHostLogService.trace("extensionHostMain#activateIfGlobPatterns: fileSearch, extension: "+e+", entryPoint: workspaceContains"),0===t.length?[2,s.TPromise.as(void 0)]:(this._diskSearch||(this._diskSearch=new d.DiskSearch(!1,1e3)),n={},t.forEach(function(e){n[e]=!0}),r=this._workspace.folders.map(function(e){return{
folder:_.default.revive(e.uri)}}),i=this._extHostConfiguration.getConfiguration("search"),a=i.get("useRipgrep",!0),u=i.get("followSymlinks",!0),c={folderQueries:r,type:f.QueryType.File,exists:!0,includePattern:n,useRipgrep:a,ignoreSymlinks:!u},[4,this._diskSearch.search(c)]);case 1:return(l=o.sent()).limitHit?[2,this._extensionService.activateById(e,new g.ExtensionActivatedByEvent(!0,"workspaceContains:"+t.join(","))).done(null,function(e){return console.error(e)})]:[2,s.TPromise.as(void 0)]}})})},t.prototype.handleExtensionTests=function(){var t=this;if(!this._environment.extensionTestsPath||!this._environment.extensionDevelopmentPath)return s.TPromise.as(null);var r,i;try{r=e.__$__nodeRequire(this._environment.extensionTestsPath)}catch(e){i=e}return r&&"function"==typeof r.run?new s.TPromise(function(e,n){r.run(t._environment.extensionTestsPath,function(r,i){r?n(r.toString()):e(null),t.gracefulExit(i&&i>0?1:0)})}):(this.gracefulExit(1),
s.TPromise.wrapError(new Error(i?i.toString():n.localize(0,null,this._environment.extensionTestsPath))))},t.prototype.gracefulExit=function(e){setTimeout(function(){return b(e)},500)},t}();t.ExtensionHostMain=E}),define(e[219],t([0,1,17,128,115,51,4]),function(e,t,n,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(){var t=e.__$__nodeRequire("module"),n=t._load;t._load=function(e){if("natives"===e)throw new Error('Either the extension or a NPM dependency is using the "natives" node module which is unsupported as it can cause a crash of the extension host. Click [here](https://go.microsoft.com/fwlink/?linkid=871887) to find out more');return n.apply(this,arguments)}}();var a=function(){r.exit()};!function(){if(process.env.VSCODE_PREVENT_FOREIGN_INSPECT)for(var e=0;e<process.execArgv.length;e++)if(process.execArgv[e].match(/--inspect-brk=\d+|--inspect=\d+/)){process.execArgv.splice(e,1);break}}(),function(){var e=process.env.VSCODE_IPC_HOOK_EXTHOST;return new Promise(function(t,n){
var r=o.createConnection(e,function(){r.removeListener("error",n),t(new i.Protocol(r))});r.once("error",n)}).then(function(e){return new(function(){function t(){var t=this;this._terminating=!1,this.onMessage=s.filterEvent(e.onMessage,function(e){return"__$terminate"!==e.type||(t._terminating=!0,a(),!1)})}return t.prototype.send=function(t){this._terminating||e.send(t)},t}())})}().then(function(e){return function(e){return new Promise(function(t,r){var i=e.onMessage(function(r){i.dispose();var o=JSON.parse(r),s=[];process.on("unhandledRejection",function(e,t){s.push(t),setTimeout(function(){var r=s.indexOf(t);r>=0&&(s.splice(r,1),console.warn("rejected promise not handled within 1 second"),n.onUnexpectedError(e))},1e3)}),process.on("rejectionHandled",function(e){var t=s.indexOf(e);t>=0&&s.splice(t,1)}),process.on("uncaughtException",function(e){n.onUnexpectedError(e)}),setInterval(function(){try{process.kill(o.parentPid,0)}catch(e){a()}},5e3),e.send("initialized"),t({protocol:e,initData:o})});e.send("ready")})
}(e)}).then(function(e){var t=new r.ExtensionHostMain(e.protocol,e.initData);return a=function(){return t.terminate()},t.start()}).catch(function(e){return console.error(e)})})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/0f080e5267e829de46638128001aeb7ca2d6d50e/core/vs\workbench\node\extensionHostProcess.js.map

Anon7 - 2022
AnonSec Team