(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{"+3Gp":function(Mt,F,e){"use strict";e.d(F,"a",function(){return K}),e.d(F,"b",function(){return D});var T=e("MNsG"),pe=e("Yr1X"),J=function(){var U=function(j,h){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,O){b.__proto__=O}||function(b,O){for(var m in O)O.hasOwnProperty(m)&&(b[m]=O[m])},U(j,h)};return function(j,h){U(j,h);function b(){this.constructor=j}j.prototype=h===null?Object.create(h):(b.prototype=h.prototype,new b)}}(),I=T.e?1.5:1.35,H=8,K=function(){function U(j){this.zoomLevel=j.zoomLevel,this.fontFamily=String(j.fontFamily),this.fontWeight=String(j.fontWeight),this.fontSize=j.fontSize,this.fontFeatureSettings=j.fontFeatureSettings,this.lineHeight=j.lineHeight|0,this.letterSpacing=j.letterSpacing}return U.createFromValidatedSettings=function(j,h,b){var O=j.get(33),m=j.get(37),C=j.get(36),w=j.get(35),v=j.get(49),p=j.get(46);return U._create(O,m,C,w,v,p,h,b)},U._create=function(j,h,b,O,m,C,w,v){m===0?m=Math.round(I*b):m "+Le+`
`:"'+(Je?Le:de(Le,!0))+`
"},Z.prototype.blockquote=function(Le){return`"+(Je?Le:de(Le,!0))+"
`+Le+`
`},Z.prototype.html=function(Le){return Le},Z.prototype.heading=function(Le,Ue,Je,nt){return this.options.headerIds?"
`:`
`},Z.prototype.list=function(Le,Ue,Je){var nt=Ue?"ol":"ul",vt=Ue&&Je!==1?' start="'+Je+'"':"";return"<"+nt+vt+`>
`+Le+""+nt+`>
`},Z.prototype.listitem=function(Le){return"
`+Le+`
`+Ue+`
`},Z.prototype.tablerow=function(Le){return`
`+Le+`
`},Z.prototype.tablecell=function(Le,Ue){var Je=Ue.header?"th":"td",nt=Ue.align?"<"+Je+' align="'+Ue.align+'">':"<"+Je+">";return nt+Le+""+Je+`>
`},Z.prototype.strong=function(Le){return""+Le+""},Z.prototype.em=function(Le){return""+Le+""},Z.prototype.codespan=function(Le){return""+Le+""},Z.prototype.br=function(){return this.options.xhtml?"
":"
"},Z.prototype.del=function(Le){return""+Le+""},Z.prototype.link=function(Le,Ue,Je){if(Le=Te(this.options.sanitize,this.options.baseUrl,Le),Le===null)return Je;var nt='"+Je+"",nt},Z.prototype.image=function(Le,Ue,Je){if(Le=Te(this.options.sanitize,this.options.baseUrl,Le),Le===null)return Je;var nt='":">",nt},Z.prototype.text=function(Le){return Le};function ve(){}ve.prototype.strong=ve.prototype.em=ve.prototype.codespan=ve.prototype.del=ve.prototype.text=function(Le){return Le},ve.prototype.link=ve.prototype.image=function(Le,Ue,Je){return""+Je},ve.prototype.br=function(){return""};function Ne(Le){this.tokens=[],this.token=null,this.options=Le||Re.defaults,this.options.renderer=this.options.renderer||new Z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Xe}Ne.parse=function(Le,Ue){var Je=new Ne(Ue);return Je.parse(Le)},Ne.prototype.parse=function(Le){this.inline=new le(Le.links,this.options),this.inlineText=new le(Le.links,z({},this.options,{renderer:new ve})),this.tokens=Le.reverse();for(var Ue="";this.next();)Ue+=this.tok();return Ue},Ne.prototype.next=function(){return this.token=this.tokens.pop()},Ne.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},Ne.prototype.parseText=function(){for(var Le=this.token.text;this.peek().type==="text";)Le+=`
`+this.next().text;return this.inline.output(Le)},Ne.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,ge(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var Le="",Ue="",Je,nt,vt,Rt;for(vt="",Je=0;Je
"+de(ao.message+"",!0)+"";throw ao}}Re.options=Re.setOptions=function(Le){return z(Re.defaults,Le),Re},Re.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new Z,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},Re.defaults=Re.getDefaults(),Re.Parser=Ne,Re.parser=Ne.parse,Re.Renderer=Z,Re.TextRenderer=ve,Re.Lexer=ne,Re.lexer=ne.lex,Re.InlineLexer=le,Re.inlineLexer=le.output,Re.Slugger=Xe,Re.parse=Re,K=Re}).call(void 0);var D=K,U=K.Parser,j=K.parser,h=K.Renderer,b=K.TextRenderer,O=K.Lexer,m=K.lexer,C=K.InlineLexer,w=K.inlineLexer,v=K.parse,p,p;let d;(function(){function re(ee,ne,q){function le(Ne,Xe){if(!ne[Ne]){if(!ee[Ne]){var de=typeof p=="function"&&p;if(!Xe&&de)return p(Ne,!0);if(Z)return Z(Ne,!0);var ge=new Error("Cannot find module '"+Ne+"'");throw ge.code="MODULE_NOT_FOUND",ge}var Ee=ne[Ne]={exports:{}};ee[Ne][0].call(Ee.exports,function(Te){var Ce=ee[Ne][1][Te];return le(Ce||Te)},Ee,Ee.exports,re,ee,ne,q)}return ne[Ne].exports}for(var Z=typeof p=="function"&&p,ve=0;ve
"+(re.supportThemeIcons?Object(P.c)(Te):Te)+"
"},ee.codeBlockRenderer&&(Ne.code=function(Te,Ce){var fe=ee.codeBlockRenderer(Ce,Te),$=H.b.nextId(),S=Promise.all([fe,ve]).then(function(z){var ce=z[0],se=ne.querySelector('div[data-code="'+$+'"]');se&&(se.innerHTML=ce)}).catch(function(z){});return ee.codeBlockRenderCallback&&S.then(ee.codeBlockRenderCallback),'Q;B--)W.push(B);return W}function f(x,Q,V){var W=x.slice(0,Q),B=x.slice(Q);return W.concat(V,B)}function E(x,Q){var V=x.indexOf(Q);V>-1&&(x.splice(V,1),x.unshift(Q))}function L(x,Q){var V=x.indexOf(Q);V>-1&&(x.splice(V,1),x.push(Q))}function R(x,Q){for(var V=0;V";var b=this.text.substring(D,h.start);K+=this.supportCodicons?Object(pe.c)(Object(J.o)(b)):Object(J.o)(b),K+="",D=h.end}h.extraClasses?K+='':K+='';var O=this.text.substring(h.start,h.end);K+=this.supportCodicons?Object(pe.c)(Object(J.o)(O)):Object(J.o)(O),K+="",D=h.end}if(D ";var O=this.text.substring(D);K+=this.supportCodicons?Object(pe.c)(Object(J.o)(O)):Object(J.o)(O),K+=" "}this.domNode.innerHTML=K,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},H.escapeNewLines=function(K,D){var U=0,j=0;return K.replace(/\r\n|\r|\n/g,function(h,b){j=h===`\r `?-1:0,b+=U;for(var O=0,m=D;O=b&&(C.start+=j),C.end>=b&&(C.end+=j)}return U+=j,"\u23CE"})},H}()},"7zd4":function(Mt,F,e){},"8ATB":function(Mt,F,e){},"8HsV":function(Mt,F,e){"use strict";e.d(F,"a",function(){return T});var T=function(){function pe(){for(var J=[],I=0;I 1&&q.push(new U.a(ee.endLineNumber,ee.endColumn,ee.endLineNumber,ee.endColumn))},re.prototype.run=function(ee,ne){var q=this;if(!ne.hasModel())return;var le=ne.getModel(),Z=ne.getSelections(),ve=[];Z.forEach(function(Ne){return q.getCursorsForSelection(Ne,le,ve)}),ve.length>0&&ne.setSelections(ve)},re}(H.b),f=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.addCursorsToBottom",label:T.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}return re.prototype.run=function(ee,ne){if(!ne.hasModel())return;for(var q=ne.getSelections(),le=ne.getModel().getLineCount(),Z=[],ve=q[0].startLineNumber;ve<=le;ve++)Z.push(new U.a(ve,q[0].startColumn,ve,q[0].endColumn));Z.length>0&&ne.setSelections(Z)},re}(H.b),E=function(Fe){p(re,Fe);function re(){return Fe.call(this,{id:"editor.action.addCursorsToTop",label:T.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}return re.prototype.run=function(ee,ne){if(!ne.hasModel())return;for(var q=ne.getSelections(),le=[],Z=q[0].startLineNumber;Z>=1;Z--)le.push(new U.a(Z,q[0].startColumn,Z,q[0].endColumn));le.length>0&&ne.setSelections(le)},re}(H.b),L=function(){function Fe(re,ee,ne){this.selections=re,this.revealRange=ee,this.revealScrollType=ne}return Fe}(),R=function(){function Fe(re,ee,ne,q,le,Z,ve){this._editor=re,this.findController=ee,this.isDisconnectedFromFindController=ne,this.searchText=q,this.wholeWord=le,this.matchCase=Z,this.currentMatch=ve}return Fe.create=function(re,ee){if(!re.hasModel())return null;var ne=ee.getState();if(!re.hasTextFocus()&&ne.isRevealed&&ne.searchString.length>0)return new Fe(re,ee,!1,ne.searchString,ne.wholeWord,ne.matchCase,null);var q=!1,le,Z,ve=re.getSelections();ve.length===1&&ve[0].isEmpty()?(q=!0,le=!0,Z=!0):(le=ne.wholeWord,Z=ne.matchCase);var Ne=re.getSelection(),Xe,de=null;if(Ne.isEmpty()){var ge=re.getModel().getWordAtPosition(Ne.getStartPosition());if(!ge)return null;Xe=ge.word,de=new U.a(Ne.startLineNumber,ge.startColumn,Ne.startLineNumber,ge.endColumn)}else Xe=re.getModel().getValueInRange(Ne).replace(/\r\n/g,` `);return new Fe(re,ee,q,Xe,le,Z,de)},Fe.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var re=this._getNextMatch();if(!re)return null;var ee=this._editor.getSelections();return new L(ee.concat(re),re,0)},Fe.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var re=this._getNextMatch();if(!re)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(re),re,0)},Fe.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var re=this.currentMatch;return this.currentMatch=null,re}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ne=ee[ee.length-1],q=this._editor.getModel().findNextMatch(this.searchText,ne.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new U.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},Fe.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var re=this._getPreviousMatch();if(!re)return null;var ee=this._editor.getSelections();return new L(ee.concat(re),re,0)},Fe.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var re=this._getPreviousMatch();if(!re)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(re),re,0)},Fe.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var re=this.currentMatch;return this.currentMatch=null,re}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ne=ee[ee.length-1],q=this._editor.getModel().findPreviousMatch(this.searchText,ne.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new U.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},Fe.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1,1073741824)):[]},Fe}(),P=function(Fe){p(re,Fe);function re(ee){var ne=Fe.call(this)||this;return ne._sessionDispose=ne._register(new I.b),ne._editor=ee,ne._ignoreSelectionChange=!1,ne._session=null,ne}return re.get=function(ee){return ee.getContribution(re.ID)},re.prototype.dispose=function(){this._endSession(),Fe.prototype.dispose.call(this)},re.prototype._beginSessionIfNeeded=function(ee){var ne=this;if(!this._session){var q=R.create(this._editor,ee);if(!q)return;this._session=q;var le={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(le.wholeWordOverride=1,le.matchCaseOverride=1,le.isRegexOverride=2),ee.getState().change(le,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(function(Z){if(ne._ignoreSelectionChange)return;ne._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(function(){ne._endSession()})),this._sessionDispose.add(ee.getState().onFindReplaceStateChange(function(Z){(Z.matchCase||Z.wholeWord)&&ne._endSession()}))}},re.prototype._endSession=function(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){var ee={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(ee,!1)}this._session=null},re.prototype._setSelections=function(ee){this._ignoreSelectionChange=!0,this._editor.setSelections(ee),this._ignoreSelectionChange=!1},re.prototype._expandEmptyToWord=function(ee,ne){if(!ne.isEmpty())return ne;var q=ee.getWordAtPosition(ne.getStartPosition());return q?new U.a(ne.startLineNumber,q.startColumn,ne.startLineNumber,q.endColumn):ne},re.prototype._applySessionResult=function(ee){if(!ee)return;this._setSelections(ee.selections),ee.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(ee.revealRange,ee.revealScrollType)},re.prototype.getSession=function(ee){return this._session},re.prototype.addSelectionToNextFindMatch=function(ee){if(!this._editor.hasModel())return;if(!this._session){var ne=this._editor.getSelections();if(ne.length>1){var q=ee.getState(),le=q.matchCase,Z=Be(this._editor.getModel(),ne,le);if(!Z){for(var ve=this._editor.getModel(),Ne=[],Xe=0,de=ne.length;Xe 0&&q.isRegex)ne=this._editor.getModel().findMatches(q.searchString,!0,q.isRegex,q.matchCase,q.wholeWord?this._editor.getOption(96):null,!1,1073741824);else{if(this._beginSessionIfNeeded(ee),!this._session)return;ne=this._session.selectAll()}if(q.searchScope){for(var le=q.searchScope,Z=[],ve=0;ve =le.startLineNumber&&Z.push(ne[ve]);ne=Z}if(ne.length>0){for(var Ne=this._editor.getSelection(),ve=0,Xe=ne.length;ve 1){var Xe=Z.getState(),de=Xe.matchCase,ge=Be(ne.getModel(),Ne,de);if(!ge)return null}ve=R.create(ne,Z)}if(!ve)return null;if(ve.currentMatch)return null;if(/^[ \t]+$/.test(ve.searchText))return null;if(ve.searchText.length>200)return null;var Ee=Z.getState(),Te=Ee.matchCase;if(Ee.isRevealed){var Ce=Ee.searchString;Te||(Ce=Ce.toLowerCase());var fe=ve.searchText;if(Te||(fe=fe.toLowerCase()),Ce===fe&&ve.matchCase===Ee.matchCase&&ve.wholeWord===Ee.wholeWord&&!Ee.isRegex)return null}return new Me(ve.searchText,ve.matchCase,ve.wholeWord?ne.getOption(96):null)},re.prototype._setState=function(ee){if(Me.softEquals(this.state,ee)){this.state=ee;return}if(this.state=ee,!this.state){this.decorations=this.editor.deltaDecorations(this.decorations,[]);return}if(!this.editor.hasModel())return;var ne=this.editor.getModel();if(ne.isTooLargeForTokenization())return;var q=O.i.has(ne),le=ne.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(fe){return fe.range});le.sort(D.a.compareRangesUsingStarts);var Z=this.editor.getSelections();Z.sort(D.a.compareRangesUsingStarts);for(var ve=[],Ne=0,Xe=0,de=le.length,ge=Z.length;Ne =ge)ve.push(Ee),Ne++;else{var Te=D.a.compareRangesUsingStarts(Ee,Z[Xe]);Te<0?((Z[Xe].isEmpty()||!D.a.areIntersecting(Ee,Z[Xe]))&&ve.push(Ee),Ne++):(Te>0||Ne++,Xe++)}}var Ce=ve.map(function(fe){return{range:fe,options:q?re._SELECTION_HIGHLIGHT:re._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,Ce)},re.prototype.dispose=function(){this._setState(null),Fe.prototype.dispose.call(this)},re.ID="editor.contrib.selectionHighlighter",re._SELECTION_HIGHLIGHT_OVERVIEW=b.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(w.f)(C.Mb),position:h.d.Center}}),re._SELECTION_HIGHLIGHT=b.a.register({stickiness:1,className:"selectionHighlight"}),re}(I.a);function Be(Fe,re,ee){for(var ne=Ke(Fe,re[0],!ee),q=1,le=re.length;q =0;ao--)(Kt=Ue[ao])&&(Ot=(Rt<3?Kt(Ot):Rt>3?Kt(Je,nt,Ot):Kt(Je,nt))||Ot);return Rt>3&&Ot&&Object.defineProperty(Je,nt,Ot),Ot},Me=function(Ue,Je){return function(nt,vt){Je(nt,vt,Ue)}},Pe=new d.d("hasSymbols",!1),Be=Object(R.c)("ISymbolNavigationService"),Ke=function(){function Ue(Je,nt,vt,Rt){this._editorService=nt,this._notificationService=vt,this._keybindingService=Rt,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Pe.bindTo(Je)}return Ue.prototype.reset=function(){this._ctxHasSymbols.reset(),Object(Q.f)(this._currentState),Object(Q.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},Ue.prototype.put=function(Je){var nt=this,vt=Je.parent.parent;if(vt.references.length<=1){this.reset();return}this._currentModel=vt,this._currentIdx=vt.references.indexOf(Je),this._ctxHasSymbols.set(!0),this._showMessage();var Rt=new Fe(this._editorService),Ot=Rt.onDidChange(function(Kt){if(nt._ignoreEditorChange)return;var ao=nt._editorService.getActiveCodeEditor();if(!ao)return;var lo=ao.getModel(),so=ao.getPosition();if(!lo||!so)return;for(var jt=!1,pt=!1,gt=0,Tt=vt.references;gt 0&&Ot[Ot.length-1])&&(so[0]===6||so[0]===2)){nt=0;continue}if(so[0]===3&&(!Ot||so[1]>Ot[0]&&so[1] 1)?(this._openInPeek(Rt,Ot),[3,3]):[3,1];case 1:return ao=Ot.firstReference(),lo=Ot.references.length>1&&Kt==="gotoAndPeek",[4,this._openReference(Rt,nt,ao,this._configuration.openToSide,!lo)];case 2:so=jt.sent(),lo&&so?this._openInPeek(so,Ot):Ot.dispose(),Kt==="goto"&&vt.put(ao),jt.label=3;case 3:return[2]}})})},Je.prototype._openReference=function(nt,vt,Rt,Ot,Kt){return Z(this,void 0,void 0,function(){var ao,lo,so,jt;return ve(this,function(pt){switch(pt.label){case 0:return ao=void 0,Object(b.G)(Rt)&&(ao=Rt.targetSelectionRange),ao||(ao=Rt.range),[4,vt.openCodeEditor({resource:Rt.uri,options:{selection:j.a.collapseToStart(ao),revealInCenterIfOutsideViewport:!0}},nt,Ot)];case 1:return lo=pt.sent(),lo?(Kt&&(so=lo.getModel(),jt=lo.deltaDecorations([],[{range:ao,options:{className:"symbolHighlight"}}]),setTimeout(function(){lo.getModel()===so&&lo.deltaDecorations(jt,[])},350)),[2,lo]):[2,void 0]}})})},Je.prototype._openInPeek=function(nt,vt){var Rt=C.a.get(nt);Rt&&nt.hasModel()?Rt.toggleWidget(nt.getSelection(),Object(pe.f)(function(Ot){return Promise.resolve(vt)}),this._configuration.openInPeek):vt.dispose()},Je}(K.b),S=function(Ue){le(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.b)(nt,vt,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("def.title","Definitions")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?v.a("noResultWord","No definition found for '{0}'",nt.word):v.a("generic.noResults","No definition found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeDefinitionCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleDefinitions},Je}($),z=I.g&&!re.l?2048|70:70;Object(K.f)((Ne=function(Ue){le(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.id,label:v.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:d.a.and(h.a.hasDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:z,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:v.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return E.a.registerCommandAlias("editor.action.goToDeclaration",Je.id),nt}return Je}(S),Ne.id="editor.action.revealDefinition",Ne)),Object(K.f)((Xe=function(Ue){le(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Je.id,label:v.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:d.a.and(h.a.hasDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:Object(J.a)(2048|41,z),weight:100}})||this;return E.a.registerCommandAlias("editor.action.openDeclarationToTheSide",Je.id),nt}return Je}(S),Xe.id="editor.action.revealDefinitionAside",Xe)),Object(K.f)((de=function(Ue){le(Je,Ue);function Je(){var nt=Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.id,label:v.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:d.a.and(h.a.hasDefinitionProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return E.a.registerCommandAlias("editor.action.previewDeclaration",Je.id),nt}return Je}(S),de.id="editor.action.peekDefinition",de));var ce=function(Ue){le(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.a)(nt,vt,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("decl.title","Declarations")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?v.a("decl.noResultWord","No declaration found for '{0}'",nt.word):v.a("decl.generic.noResults","No declaration found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeDeclarationCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleDeclarations},Je}($);Object(K.f)((ge=function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.id,label:v.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:d.a.and(h.a.hasDeclarationProvider,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:v.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?v.a("decl.noResultWord","No declaration found for '{0}'",nt.word):v.a("decl.generic.noResults","No declaration found")},Je}(ce),ge.id="editor.action.revealDeclaration",ge)),Object(K.f)(function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:v.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:d.a.and(h.a.hasDeclarationProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return Je}(ce));var se=function(Ue){le(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.e)(nt,vt,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("typedef.title","Type Definitions")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?v.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",nt.word):v.a("goToTypeDefinition.generic.noResults","No type definition found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeTypeDefinitionCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleTypeDefinitions},Je}($);Object(K.f)((Ee=function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.ID,label:v.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:d.a.and(h.a.hasTypeDefinitionProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:v.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return Je}(se),Ee.ID="editor.action.goToTypeDefinition",Ee)),Object(K.f)((Te=function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.ID,label:v.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:d.a.and(h.a.hasTypeDefinitionProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return Je}(se),Te.ID="editor.action.peekTypeDefinition",Te));var ye=function(Ue){le(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.c)(nt,vt,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("impl.title","Implementations")]))]}})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&nt.word?v.a("goToImplementation.noResultWord","No implementation found for '{0}'",nt.word):v.a("goToImplementation.generic.noResults","No implementation found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeImplementationCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleImplementations},Je}($);Object(K.f)((Ce=function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Je.ID,label:v.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:d.a.and(h.a.hasImplementationProvider,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:v.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return Je}(ye),Ce.ID="editor.action.goToImplementation",Ce)),Object(K.f)((fe=function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Je.ID,label:v.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:d.a.and(h.a.hasImplementationProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return Je}(ye),fe.ID="editor.action.peekImplementation",fe));var Re=function(Ue){le(Je,Ue);function Je(){return Ue!==null&&Ue.apply(this,arguments)||this}return Je.prototype._getNoResultFoundMessage=function(nt){return nt?v.a("references.no","No references found for '{0}'",nt.word):v.a("references.noGeneric","No references found")},Je.prototype._getAlternativeCommand=function(nt){return nt.getOption(41).alternativeReferenceCommand},Je.prototype._getGoToPreference=function(nt){return nt.getOption(41).multipleReferences},Je}($);Object(K.f)(function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:v.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:d.a.and(h.a.hasReferenceProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:h.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:v.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.d)(nt,vt,!0,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("ref.title","References")]))]}})})},Je}(Re)),Object(K.f)(function(Ue){le(Je,Ue);function Je(){return Ue.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:v.a("references.action.label","Peek References"),alias:"Peek References",precondition:d.a.and(h.a.hasReferenceProvider,m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){var Ot;return ve(this,function(Kt){switch(Kt.label){case 0:return Ot=w.c.bind,[4,Object(f.d)(nt,vt,!1,Rt)];case 1:return[2,new(Ot.apply(w.c,[void 0,Kt.sent(),v.a("ref.title","References")]))]}})})},Je}(Re));var Le=function(Ue){le(Je,Ue);function Je(nt,vt,Rt){var Ot=Ue.call(this,nt,{id:"editor.action.goToLocation",label:v.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:d.a.and(m.b.notInPeekEditor,h.a.isInEmbeddedEditor.toNegated())})||this;return Ot._references=vt,Ot._gotoMultipleBehaviour=Rt,Ot}return Je.prototype._getLocationModel=function(nt,vt,Rt){return Z(this,void 0,void 0,function(){return ve(this,function(Ot){return[2,new w.c(this._references,v.a("generic.title","Locations"))]})})},Je.prototype._getNoResultFoundMessage=function(nt){return nt&&v.a("generic.noResult","No results for '{0}'",nt.word)||""},Je.prototype._getGoToPreference=function(nt){var vt;return(vt=this._gotoMultipleBehaviour)!==null&&vt!==void 0?vt:nt.getOption(41).multipleReferences},Je.prototype._getAlternativeCommand=function(){return""},Je}($);E.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ee.a},{name:"position",description:"The position at which to start",constraint:U.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(Ue,Je,nt,vt,Rt,Ot){return Z(void 0,void 0,void 0,function(){var Kt,ao;return ve(this,function(lo){switch(lo.label){case 0:return Object(ne.a)(ee.a.isUri(Je)),Object(ne.a)(U.a.isIPosition(nt)),Object(ne.a)(Array.isArray(vt)),Object(ne.a)(typeof Rt=="undefined"||typeof Rt=="string"),Object(ne.a)(typeof Ot=="undefined"||typeof Ot=="boolean"),Kt=Ue.get(D.a),[4,Kt.openCodeEditor({resource:Je},Kt.getFocusedCodeEditor())];case 1:return ao=lo.sent(),Object(H.a)(ao)?(ao.setPosition(nt),ao.revealPositionInCenterIfOutsideViewport(nt,0),[2,ao.invokeWithinContext(function(so){var jt=new Le({muteMessage:!0,openInPeek:Boolean(Ot),openToSide:!1},vt,Rt);so.get(R.a).invokeFunction(jt.run.bind(jt),ao)})]):[2]}})})}}),E.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ee.a},{name:"position",description:"The position at which to start",constraint:U.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(Ue,Je,nt,vt,Rt){return Z(void 0,void 0,void 0,function(){return ve(this,function(Ot){return Ue.get(E.b).executeCommand("editor.action.goToLocations",Je,nt,vt,Rt,!0),[2]})})}}),E.a.registerCommand({id:"editor.action.findReferences",handler:function(Ue,Je,nt){Object(ne.a)(ee.a.isUri(Je)),Object(ne.a)(U.a.isIPosition(nt));var vt=Ue.get(D.a);return vt.openCodeEditor({resource:Je},vt.getFocusedCodeEditor()).then(function(Rt){if(!Object(H.a)(Rt)||!Rt.hasModel())return;var Ot=C.a.get(Rt);if(!Ot)return;var Kt=Object(pe.f)(function(lo){return Object(f.d)(Rt.getModel(),U.a.lift(nt),!1,lo).then(function(so){return new w.c(so,v.a("ref.title","References"))})}),ao=new j.a(nt.lineNumber,nt.column,nt.lineNumber,nt.column);return Promise.resolve(Ot.toggleWidget(ao,Kt,!1))})}}),E.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},"8gvo":function(Mt,F,e){},"8z58":function(Mt,F,e){"use strict";e.r(F),e.d(F,"CancellationTokenSource",function(){return Wd}),e.d(F,"Emitter",function(){return Bd}),e.d(F,"KeyCode",function(){return Ud}),e.d(F,"KeyMod",function(){return Hd}),e.d(F,"Position",function(){return Vd}),e.d(F,"Range",function(){return zd}),e.d(F,"Selection",function(){return Kd}),e.d(F,"SelectionDirection",function(){return Gd}),e.d(F,"MarkerSeverity",function(){return Xd}),e.d(F,"MarkerTag",function(){return Yd}),e.d(F,"Uri",function(){return Zd}),e.d(F,"Token",function(){return Qd}),e.d(F,"editor",function(){return $d}),e.d(F,"languages",function(){return Jd});var T=e("/UlZ"),pe=e("URDS"),J=e("JQT/"),I=e("MI8n"),H=e("/kV6"),K=e("bY76"),D=e("cGHE"),U=e("aokT"),j=e("gCVg"),h=e("Tcc1"),b;(function(s){s[s.Unknown=0]="Unknown",s[s.Disabled=1]="Disabled",s[s.Enabled=2]="Enabled"})(b||(b={}));var O;(function(s){s[s.KeepWhitespace=1]="KeepWhitespace",s[s.InsertAsSnippet=4]="InsertAsSnippet"})(O||(O={}));var m;(function(s){s[s.Method=0]="Method",s[s.Function=1]="Function",s[s.Constructor=2]="Constructor",s[s.Field=3]="Field",s[s.Variable=4]="Variable",s[s.Class=5]="Class",s[s.Struct=6]="Struct",s[s.Interface=7]="Interface",s[s.Module=8]="Module",s[s.Property=9]="Property",s[s.Event=10]="Event",s[s.Operator=11]="Operator",s[s.Unit=12]="Unit",s[s.Value=13]="Value",s[s.Constant=14]="Constant",s[s.Enum=15]="Enum",s[s.EnumMember=16]="EnumMember",s[s.Keyword=17]="Keyword",s[s.Text=18]="Text",s[s.Color=19]="Color",s[s.File=20]="File",s[s.Reference=21]="Reference",s[s.Customcolor=22]="Customcolor",s[s.Folder=23]="Folder",s[s.TypeParameter=24]="TypeParameter",s[s.Snippet=25]="Snippet"})(m||(m={}));var C;(function(s){s[s.Deprecated=1]="Deprecated"})(C||(C={}));var w;(function(s){s[s.Invoke=0]="Invoke",s[s.TriggerCharacter=1]="TriggerCharacter",s[s.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(w||(w={}));var v;(function(s){s[s.EXACT=0]="EXACT",s[s.ABOVE=1]="ABOVE",s[s.BELOW=2]="BELOW"})(v||(v={}));var p;(function(s){s[s.NotSet=0]="NotSet",s[s.ContentFlush=1]="ContentFlush",s[s.RecoverFromMarkers=2]="RecoverFromMarkers",s[s.Explicit=3]="Explicit",s[s.Paste=4]="Paste",s[s.Undo=5]="Undo",s[s.Redo=6]="Redo"})(p||(p={}));var d;(function(s){s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(d||(d={}));var c;(function(s){s[s.Text=0]="Text",s[s.Read=1]="Read",s[s.Write=2]="Write"})(c||(c={}));var u;(function(s){s[s.None=0]="None",s[s.Keep=1]="Keep",s[s.Brackets=2]="Brackets",s[s.Advanced=3]="Advanced",s[s.Full=4]="Full"})(u||(u={}));var f;(function(s){s[s.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",s[s.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",s[s.accessibilitySupport=2]="accessibilitySupport",s[s.accessibilityPageSize=3]="accessibilityPageSize",s[s.ariaLabel=4]="ariaLabel",s[s.autoClosingBrackets=5]="autoClosingBrackets",s[s.autoClosingOvertype=6]="autoClosingOvertype",s[s.autoClosingQuotes=7]="autoClosingQuotes",s[s.autoIndent=8]="autoIndent",s[s.automaticLayout=9]="automaticLayout",s[s.autoSurround=10]="autoSurround",s[s.codeLens=11]="codeLens",s[s.colorDecorators=12]="colorDecorators",s[s.comments=13]="comments",s[s.contextmenu=14]="contextmenu",s[s.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",s[s.cursorBlinking=16]="cursorBlinking",s[s.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",s[s.cursorStyle=18]="cursorStyle",s[s.cursorSurroundingLines=19]="cursorSurroundingLines",s[s.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",s[s.cursorWidth=21]="cursorWidth",s[s.disableLayerHinting=22]="disableLayerHinting",s[s.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",s[s.dragAndDrop=24]="dragAndDrop",s[s.emptySelectionClipboard=25]="emptySelectionClipboard",s[s.extraEditorClassName=26]="extraEditorClassName",s[s.fastScrollSensitivity=27]="fastScrollSensitivity",s[s.find=28]="find",s[s.fixedOverflowWidgets=29]="fixedOverflowWidgets",s[s.folding=30]="folding",s[s.foldingStrategy=31]="foldingStrategy",s[s.foldingHighlight=32]="foldingHighlight",s[s.fontFamily=33]="fontFamily",s[s.fontInfo=34]="fontInfo",s[s.fontLigatures=35]="fontLigatures",s[s.fontSize=36]="fontSize",s[s.fontWeight=37]="fontWeight",s[s.formatOnPaste=38]="formatOnPaste",s[s.formatOnType=39]="formatOnType",s[s.glyphMargin=40]="glyphMargin",s[s.gotoLocation=41]="gotoLocation",s[s.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",s[s.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",s[s.hover=44]="hover",s[s.inDiffEditor=45]="inDiffEditor",s[s.letterSpacing=46]="letterSpacing",s[s.lightbulb=47]="lightbulb",s[s.lineDecorationsWidth=48]="lineDecorationsWidth",s[s.lineHeight=49]="lineHeight",s[s.lineNumbers=50]="lineNumbers",s[s.lineNumbersMinChars=51]="lineNumbersMinChars",s[s.links=52]="links",s[s.matchBrackets=53]="matchBrackets",s[s.minimap=54]="minimap",s[s.mouseStyle=55]="mouseStyle",s[s.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",s[s.mouseWheelZoom=57]="mouseWheelZoom",s[s.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",s[s.multiCursorModifier=59]="multiCursorModifier",s[s.multiCursorPaste=60]="multiCursorPaste",s[s.occurrencesHighlight=61]="occurrencesHighlight",s[s.overviewRulerBorder=62]="overviewRulerBorder",s[s.overviewRulerLanes=63]="overviewRulerLanes",s[s.parameterHints=64]="parameterHints",s[s.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",s[s.quickSuggestions=66]="quickSuggestions",s[s.quickSuggestionsDelay=67]="quickSuggestionsDelay",s[s.readOnly=68]="readOnly",s[s.renderControlCharacters=69]="renderControlCharacters",s[s.renderIndentGuides=70]="renderIndentGuides",s[s.renderFinalNewline=71]="renderFinalNewline",s[s.renderLineHighlight=72]="renderLineHighlight",s[s.renderValidationDecorations=73]="renderValidationDecorations",s[s.renderWhitespace=74]="renderWhitespace",s[s.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",s[s.roundedSelection=76]="roundedSelection",s[s.rulers=77]="rulers",s[s.scrollbar=78]="scrollbar",s[s.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",s[s.scrollBeyondLastLine=80]="scrollBeyondLastLine",s[s.selectionClipboard=81]="selectionClipboard",s[s.selectionHighlight=82]="selectionHighlight",s[s.selectOnLineNumbers=83]="selectOnLineNumbers",s[s.showFoldingControls=84]="showFoldingControls",s[s.showUnused=85]="showUnused",s[s.snippetSuggestions=86]="snippetSuggestions",s[s.smoothScrolling=87]="smoothScrolling",s[s.stopRenderingLineAfter=88]="stopRenderingLineAfter",s[s.suggest=89]="suggest",s[s.suggestFontSize=90]="suggestFontSize",s[s.suggestLineHeight=91]="suggestLineHeight",s[s.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",s[s.suggestSelection=93]="suggestSelection",s[s.tabCompletion=94]="tabCompletion",s[s.useTabStops=95]="useTabStops",s[s.wordSeparators=96]="wordSeparators",s[s.wordWrap=97]="wordWrap",s[s.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",s[s.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",s[s.wordWrapColumn=100]="wordWrapColumn",s[s.wordWrapMinified=101]="wordWrapMinified",s[s.wrappingIndent=102]="wrappingIndent",s[s.wrappingStrategy=103]="wrappingStrategy",s[s.editorClassName=104]="editorClassName",s[s.pixelRatio=105]="pixelRatio",s[s.tabFocusMode=106]="tabFocusMode",s[s.layoutInfo=107]="layoutInfo",s[s.wrappingInfo=108]="wrappingInfo"})(f||(f={}));var E;(function(s){s[s.TextDefined=0]="TextDefined",s[s.LF=1]="LF",s[s.CRLF=2]="CRLF"})(E||(E={}));var L;(function(s){s[s.LF=0]="LF",s[s.CRLF=1]="CRLF"})(L||(L={}));var R;(function(s){s[s.None=0]="None",s[s.Indent=1]="Indent",s[s.IndentOutdent=2]="IndentOutdent",s[s.Outdent=3]="Outdent"})(R||(R={}));var P;(function(s){s[s.Unknown=0]="Unknown",s[s.Backspace=1]="Backspace",s[s.Tab=2]="Tab",s[s.Enter=3]="Enter",s[s.Shift=4]="Shift",s[s.Ctrl=5]="Ctrl",s[s.Alt=6]="Alt",s[s.PauseBreak=7]="PauseBreak",s[s.CapsLock=8]="CapsLock",s[s.Escape=9]="Escape",s[s.Space=10]="Space",s[s.PageUp=11]="PageUp",s[s.PageDown=12]="PageDown",s[s.End=13]="End",s[s.Home=14]="Home",s[s.LeftArrow=15]="LeftArrow",s[s.UpArrow=16]="UpArrow",s[s.RightArrow=17]="RightArrow",s[s.DownArrow=18]="DownArrow",s[s.Insert=19]="Insert",s[s.Delete=20]="Delete",s[s.KEY_0=21]="KEY_0",s[s.KEY_1=22]="KEY_1",s[s.KEY_2=23]="KEY_2",s[s.KEY_3=24]="KEY_3",s[s.KEY_4=25]="KEY_4",s[s.KEY_5=26]="KEY_5",s[s.KEY_6=27]="KEY_6",s[s.KEY_7=28]="KEY_7",s[s.KEY_8=29]="KEY_8",s[s.KEY_9=30]="KEY_9",s[s.KEY_A=31]="KEY_A",s[s.KEY_B=32]="KEY_B",s[s.KEY_C=33]="KEY_C",s[s.KEY_D=34]="KEY_D",s[s.KEY_E=35]="KEY_E",s[s.KEY_F=36]="KEY_F",s[s.KEY_G=37]="KEY_G",s[s.KEY_H=38]="KEY_H",s[s.KEY_I=39]="KEY_I",s[s.KEY_J=40]="KEY_J",s[s.KEY_K=41]="KEY_K",s[s.KEY_L=42]="KEY_L",s[s.KEY_M=43]="KEY_M",s[s.KEY_N=44]="KEY_N",s[s.KEY_O=45]="KEY_O",s[s.KEY_P=46]="KEY_P",s[s.KEY_Q=47]="KEY_Q",s[s.KEY_R=48]="KEY_R",s[s.KEY_S=49]="KEY_S",s[s.KEY_T=50]="KEY_T",s[s.KEY_U=51]="KEY_U",s[s.KEY_V=52]="KEY_V",s[s.KEY_W=53]="KEY_W",s[s.KEY_X=54]="KEY_X",s[s.KEY_Y=55]="KEY_Y",s[s.KEY_Z=56]="KEY_Z",s[s.Meta=57]="Meta",s[s.ContextMenu=58]="ContextMenu",s[s.F1=59]="F1",s[s.F2=60]="F2",s[s.F3=61]="F3",s[s.F4=62]="F4",s[s.F5=63]="F5",s[s.F6=64]="F6",s[s.F7=65]="F7",s[s.F8=66]="F8",s[s.F9=67]="F9",s[s.F10=68]="F10",s[s.F11=69]="F11",s[s.F12=70]="F12",s[s.F13=71]="F13",s[s.F14=72]="F14",s[s.F15=73]="F15",s[s.F16=74]="F16",s[s.F17=75]="F17",s[s.F18=76]="F18",s[s.F19=77]="F19",s[s.NumLock=78]="NumLock",s[s.ScrollLock=79]="ScrollLock",s[s.US_SEMICOLON=80]="US_SEMICOLON",s[s.US_EQUAL=81]="US_EQUAL",s[s.US_COMMA=82]="US_COMMA",s[s.US_MINUS=83]="US_MINUS",s[s.US_DOT=84]="US_DOT",s[s.US_SLASH=85]="US_SLASH",s[s.US_BACKTICK=86]="US_BACKTICK",s[s.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",s[s.US_BACKSLASH=88]="US_BACKSLASH",s[s.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",s[s.US_QUOTE=90]="US_QUOTE",s[s.OEM_8=91]="OEM_8",s[s.OEM_102=92]="OEM_102",s[s.NUMPAD_0=93]="NUMPAD_0",s[s.NUMPAD_1=94]="NUMPAD_1",s[s.NUMPAD_2=95]="NUMPAD_2",s[s.NUMPAD_3=96]="NUMPAD_3",s[s.NUMPAD_4=97]="NUMPAD_4",s[s.NUMPAD_5=98]="NUMPAD_5",s[s.NUMPAD_6=99]="NUMPAD_6",s[s.NUMPAD_7=100]="NUMPAD_7",s[s.NUMPAD_8=101]="NUMPAD_8",s[s.NUMPAD_9=102]="NUMPAD_9",s[s.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",s[s.NUMPAD_ADD=104]="NUMPAD_ADD",s[s.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",s[s.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",s[s.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",s[s.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",s[s.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",s[s.ABNT_C1=110]="ABNT_C1",s[s.ABNT_C2=111]="ABNT_C2",s[s.MAX_VALUE=112]="MAX_VALUE"})(P||(P={}));var x;(function(s){s[s.Hint=1]="Hint",s[s.Info=2]="Info",s[s.Warning=4]="Warning",s[s.Error=8]="Error"})(x||(x={}));var Q;(function(s){s[s.Unnecessary=1]="Unnecessary",s[s.Deprecated=2]="Deprecated"})(Q||(Q={}));var V;(function(s){s[s.Inline=1]="Inline",s[s.Gutter=2]="Gutter"})(V||(V={}));var W;(function(s){s[s.UNKNOWN=0]="UNKNOWN",s[s.TEXTAREA=1]="TEXTAREA",s[s.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",s[s.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",s[s.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",s[s.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",s[s.CONTENT_TEXT=6]="CONTENT_TEXT",s[s.CONTENT_EMPTY=7]="CONTENT_EMPTY",s[s.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",s[s.CONTENT_WIDGET=9]="CONTENT_WIDGET",s[s.OVERVIEW_RULER=10]="OVERVIEW_RULER",s[s.SCROLLBAR=11]="SCROLLBAR",s[s.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",s[s.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(W||(W={}));var B;(function(s){s[s.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",s[s.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",s[s.TOP_CENTER=2]="TOP_CENTER"})(B||(B={}));var ae;(function(s){s[s.Left=1]="Left",s[s.Center=2]="Center",s[s.Right=4]="Right",s[s.Full=7]="Full"})(ae||(ae={}));var we;(function(s){s[s.Off=0]="Off",s[s.On=1]="On",s[s.Relative=2]="Relative",s[s.Interval=3]="Interval",s[s.Custom=4]="Custom"})(we||(we={}));var Me;(function(s){s[s.None=0]="None",s[s.Text=1]="Text",s[s.Blocks=2]="Blocks"})(Me||(Me={}));var Pe;(function(s){s[s.Smooth=0]="Smooth",s[s.Immediate=1]="Immediate"})(Pe||(Pe={}));var Be;(function(s){s[s.Auto=1]="Auto",s[s.Hidden=2]="Hidden",s[s.Visible=3]="Visible"})(Be||(Be={}));var Ke;(function(s){s[s.LTR=0]="LTR",s[s.RTL=1]="RTL"})(Ke||(Ke={}));var Fe;(function(s){s[s.Invoke=1]="Invoke",s[s.TriggerCharacter=2]="TriggerCharacter",s[s.ContentChange=3]="ContentChange"})(Fe||(Fe={}));var re;(function(s){s[s.File=0]="File",s[s.Module=1]="Module",s[s.Namespace=2]="Namespace",s[s.Package=3]="Package",s[s.Class=4]="Class",s[s.Method=5]="Method",s[s.Property=6]="Property",s[s.Field=7]="Field",s[s.Constructor=8]="Constructor",s[s.Enum=9]="Enum",s[s.Interface=10]="Interface",s[s.Function=11]="Function",s[s.Variable=12]="Variable",s[s.Constant=13]="Constant",s[s.String=14]="String",s[s.Number=15]="Number",s[s.Boolean=16]="Boolean",s[s.Array=17]="Array",s[s.Object=18]="Object",s[s.Key=19]="Key",s[s.Null=20]="Null",s[s.EnumMember=21]="EnumMember",s[s.Struct=22]="Struct",s[s.Event=23]="Event",s[s.Operator=24]="Operator",s[s.TypeParameter=25]="TypeParameter"})(re||(re={}));var ee;(function(s){s[s.Deprecated=1]="Deprecated"})(ee||(ee={}));var ne;(function(s){s[s.Hidden=0]="Hidden",s[s.Blink=1]="Blink",s[s.Smooth=2]="Smooth",s[s.Phase=3]="Phase",s[s.Expand=4]="Expand",s[s.Solid=5]="Solid"})(ne||(ne={}));var q;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(q||(q={}));var le;(function(s){s[s.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",s[s.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",s[s.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",s[s.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(le||(le={}));var Z;(function(s){s[s.None=0]="None",s[s.Same=1]="Same",s[s.Indent=2]="Indent",s[s.DeepIndent=3]="DeepIndent"})(Z||(Z={}));var ve=function(){function s(){}return s.chord=function(r,n){return Object(H.a)(r,n)},s.CtrlCmd=2048,s.Shift=1024,s.Alt=512,s.WinCtrl=256,s}();function Ne(){return{editor:void 0,languages:void 0,CancellationTokenSource:J.b,Emitter:I.a,KeyCode:P,KeyMod:ve,Position:D.a,Range:U.a,Selection:j.a,SelectionDirection:Ke,MarkerSeverity:x,MarkerTag:Q,Uri:K.a,Token:h.a}}var Xe=e("siPX"),de=e("Vxe3"),ge=e("EffR"),Ee=e("24hK"),Te=e("Q4rV"),Ce=e("tYmi"),fe=e("gslv"),$=e("nnTU"),S=e("W9cx"),z;(function(s){s[s.API=0]="API",s[s.USER=1]="USER"})(z||(z={}));var ce=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},se=function(s,r){return function(n,a){r(n,a,s)}},ye=function(s,r,n,a){function y(N){return N instanceof n?N:new n(function(_e){_e(N)})}return new(n||(n=Promise))(function(N,_e){function ke(yt){try{Qe(a.next(yt))}catch(It){_e(It)}}function Ge(yt){try{Qe(a.throw(yt))}catch(It){_e(It)}}function Qe(yt){yt.done?N(yt.value):y(yt.value).then(ke,Ge)}Qe((a=a.apply(s,r||[])).next())})},Re=function(s,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},a,y,N,_e;return _e={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function ke(Qe){return function(yt){return Ge([Qe,yt])}}function Ge(Qe){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,y&&(N=Qe[0]&2?y.return:Qe[0]?y.throw||((N=y.return)&&N.call(y),0):y.next)&&!(N=N.call(y,Qe[1])).done)return N;(y=0,N)&&(Qe=[Qe[0]&2,N.value]);switch(Qe[0]){case 0:case 1:N=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,y=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!N||Qe[1]>N[0]&&Qe[1] =this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var y=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var N=y.range.getStartPosition();this._editor.setPosition(N),this._editor.revealPositionInCenter(N,a)}finally{this.ignoreSelectionChange=!1}},r.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},r.prototype.next=function(n){n===void 0&&(n=0),this._move(!0,n)},r.prototype.previous=function(n){n===void 0&&(n=0),this._move(!1,n)},r.prototype.dispose=function(){s.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},r}(Rt.a),so=e("+3Gp"),jt=e("iuje"),pt=e("M1Kb"),gt=e("twdY"),Tt=e("i/Ef"),it=e("pAvP"),et=e("t49l"),ut=e("X+cX"),Ct=e("/cxE"),ht=e("MNsG"),Et=e("746U"),Yt=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Nt="$initialize",bt=!1;function $e(s){if(!ht.g)return;bt||(bt=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(s.message)}var Ye=function(){function s(r){this._workerId=-1,this._handler=r,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return s.prototype.setWorkerId=function(r){this._workerId=r},s.prototype.sendMessage=function(r,n){var a=this,y=String(++this._lastSentReq);return new Promise(function(N,_e){a._pendingReplies[y]={resolve:N,reject:_e},a._send({vsWorker:a._workerId,req:y,method:r,args:n})})},s.prototype.handleMessage=function(r){if(!r||!r.vsWorker)return;if(this._workerId!==-1&&r.vsWorker!==this._workerId)return;this._handleMessage(r)},s.prototype._handleMessage=function(r){var n=this;if(r.seq){var a=r;if(!this._pendingReplies[a.seq]){console.warn("Got reply to unknown seq");return}var y=this._pendingReplies[a.seq];if(delete this._pendingReplies[a.seq],a.err){var N=a.err;a.err.$isError&&(N=new Error,N.name=a.err.name,N.message=a.err.message,N.stack=a.err.stack),y.reject(N);return}y.resolve(a.res);return}var _e=r,ke=_e.req,Ge=this._handler.handleMessage(_e.method,_e.args);Ge.then(function(Qe){n._send({vsWorker:n._workerId,seq:ke,res:Qe,err:void 0})},function(Qe){Qe.detail instanceof Error&&(Qe.detail=Object(Ct.g)(Qe.detail)),n._send({vsWorker:n._workerId,seq:ke,res:void 0,err:Object(Ct.g)(Qe)})})},s.prototype._send=function(r){var n=[];if(r.req)for(var a=r,y=0;y 0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&N()){var Pt=a.createCharSequence(r,n.originalStart,n.originalStart+n.originalLength-1),ro=y.createCharSequence(r,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),eo=ho(Pt,ro,N,!0).changes;ke&&(eo=jo(eo)),Wt=[];for(var Gt=0,Jt=eo.length;Gt 1&&Jt>1;){var co=ro.charCodeAt(Gt-2),So=eo.charCodeAt(Jt-2);if(co!==So)break;Gt--,Jt--}(Gt>1||Jt>1)&&this._pushTrimWhitespaceCharChange(ke,Ge+1,1,Gt,Qe+1,1,Jt)}{for(var xo=Fo(ro,1),Po=Fo(eo,1),Go=ro.length+1,Xo=eo.length+1;xo n&&(n=Ge),ke>a&&(a=ke),Qe>a&&(a=Qe)}n++,a++;for(var yt=new pn(a,n,0),y=0,N=r.length;y =this._maxCharCode?0:this._states.get(r,n)},s}(),on=null;function dn(){return on===null&&(on=new rn([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),on}var Uo=null;function Bo(){if(Uo===null){Uo=new Cn.a(0);for(var s=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF20\uFF03\uFF04\uFF05\uFF06\uFF0A\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`,r=0;r y);if(y>0){var Qe=n.charCodeAt(y-1),yt=n.charCodeAt(_e);(Qe===40&&yt===41||Qe===91&&yt===93||Qe===123&&yt===125)&&_e--}return{range:{startLineNumber:a,startColumn:y+1,endLineNumber:a,endColumn:_e+2},url:n.substring(y,_e+1)}},s.computeLinks=function(r,n){n===void 0&&(n=dn());for(var a=Bo(),y=[],N=1,_e=r.getLineCount();N<=_e;N++){for(var ke=r.getLineContent(N),Ge=ke.length,Qe=0,yt=0,It=0,Wt=1,Pt=!1,ro=!1,eo=!1;Qe =0?(y+=a?1:-1,y<0?y=r.length-1:y%=r.length,r[y]):null},s.INSTANCE=new s,s}(),Lt=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),be=function(s,r,n,a){function y(N){return N instanceof n?N:new n(function(_e){_e(N)})}return new(n||(n=Promise))(function(N,_e){function ke(yt){try{Qe(a.next(yt))}catch(It){_e(It)}}function Ge(yt){try{Qe(a.throw(yt))}catch(It){_e(It)}}function Qe(yt){yt.done?N(yt.value):y(yt.value).then(ke,Ge)}Qe((a=a.apply(s,r||[])).next())})},_=function(s,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},a,y,N,_e;return _e={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function ke(Qe){return function(yt){return Ge([Qe,yt])}}function Ge(Qe){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,y&&(N=Qe[0]&2?y.return:Qe[0]?y.throw||((N=y.return)&&N.call(y),0):y.next)&&!(N=N.call(y,Qe[1])).done)return N;(y=0,N)&&(Qe=[Qe[0]&2,N.value]);switch(Qe[0]){case 0:case 1:N=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,y=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!N||Qe[1]>N[0]&&Qe[1] =a._lines.length?Qt.c:(_e=a._lines[N],Ge=a._wordenize(_e,n),ke=0,N+=1,Qe())};return{next:Qe}},r.prototype.getLineWords=function(n,a){for(var y=this._lines[n-1],N=this._wordenize(y,a),_e=[],ke=0,Ge=N;ke this._lines.length)a=this._lines.length,y=this._lines[a-1].length+1,N=!0;else{var _e=this._lines[a-1].length+1;y<1?(y=1,N=!0):y>_e&&(y=_e,N=!0)}return N?{lineNumber:a,column:y}:n},r}(un),X=function(){function s(r,n){this._host=r,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}return s.prototype.dispose=function(){this._models=Object.create(null)},s.prototype._getModel=function(r){return this._models[r]},s.prototype._getModels=function(){var r=this,n=[];return Object.keys(this._models).forEach(function(a){return n.push(r._models[a])}),n},s.prototype.acceptNewModel=function(r){this._models[r.url]=new A(K.a.parse(r.url),r.lines,r.EOL,r.versionId)},s.prototype.acceptModelChanged=function(r,n){if(!this._models[r])return;var a=this._models[r];a.onEvents(n)},s.prototype.acceptRemovedModel=function(r){if(!this._models[r])return;delete this._models[r]},s.prototype.computeDiff=function(r,n,a,y){return be(this,void 0,void 0,function(){var N,_e,ke,Ge,Qe,yt,It;return _(this,function(Wt){return N=this._getModel(r),_e=this._getModel(n),!N||!_e?[2,null]:(ke=N.getLinesContent(),Ge=_e.getLinesContent(),Qe=new Wo(ke,Ge,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:a,shouldMakePrettyDiff:!0,maxComputationTime:y}),yt=Qe.computeDiff(),It=yt.changes.length>0?!1:this._modelsAreIdentical(N,_e),[2,{quitEarly:yt.quitEarly,identical:It,changes:yt.changes}])})})},s.prototype._modelsAreIdentical=function(r,n){var a=r.getLineCount(),y=n.getLineCount();if(a!==y)return!1;for(var N=1;N<=a;N++){var _e=r.getLineContent(N),ke=n.getLineContent(N);if(_e!==ke)return!1}return!0},s.prototype.computeMoreMinimalEdits=function(r,n){return be(this,void 0,void 0,function(){var a,y,N,_e,ke,Ge,Qe,yt,It,Wt,Pt,ro,eo,Gt,Jt,co,So,xo;return _(this,function(Po){if(a=this._getModel(r),!a)return[2,n];for(y=[],N=void 0,n=Object(dt.r)(n,function(Go,Xo){if(Go.range&&Xo.range)return U.a.compareRangesUsingStarts(Go.range,Xo.range);var an=Go.range?0:1,yn=Xo.range?0:1;return an-yn}),_e=0,ke=n;_e s._diffLimit){y.push({range:Qe,text:yt});continue}for(Pt=Object(Dt.b)(Wt,yt,!1),ro=a.offsetAt(U.a.lift(Qe).getStartPosition()),eo=0,Gt=Pt;eo =0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},Ut=function(s,r){return function(n,a){r(n,a,s)}},Vt=function(s,r,n,a){function y(N){return N instanceof n?N:new n(function(_e){_e(N)})}return new(n||(n=Promise))(function(N,_e){function ke(yt){try{Qe(a.next(yt))}catch(It){_e(It)}}function Ge(yt){try{Qe(a.throw(yt))}catch(It){_e(It)}}function Qe(yt){yt.done?N(yt.value):y(yt.value).then(ke,Ge)}Qe((a=a.apply(s,r||[])).next())})},oo=function(s,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},a,y,N,_e;return _e={next:ke(0),throw:ke(1),return:ke(2)},typeof Symbol=="function"&&(_e[Symbol.iterator]=function(){return this}),_e;function ke(Qe){return function(yt){return Ge([Qe,yt])}}function Ge(Qe){if(a)throw new TypeError("Generator is already executing.");for(;n;)try{if(a=1,y&&(N=Qe[0]&2?y.return:Qe[0]?y.throw||((N=y.return)&&N.call(y),0):y.next)&&!(N=N.call(y,Qe[1])).done)return N;(y=0,N)&&(Qe=[Qe[0]&2,N.value]);switch(Qe[0]){case 0:case 1:N=Qe;break;case 4:return n.label++,{value:Qe[1],done:!1};case 5:n.label++,y=Qe[1],Qe=[0];continue;case 7:Qe=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!N||Qe[1]>N[0]&&Qe[1] mo&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new ue(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},r}(Rt.a),xt=function(s){At(r,s);function r(n,a,y){var N=s.call(this)||this;if(N._syncedModels=Object.create(null),N._syncedModelsLastUsedTime=Object.create(null),N._proxy=n,N._modelService=a,!y){var _e=new ut.c;_e.cancelAndSet(function(){return N._checkStopModelSync()},Math.round(Zt/2)),N._register(_e)}return N}return r.prototype.dispose=function(){for(var n in this._syncedModels)Object(Rt.f)(this._syncedModels[n]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),s.prototype.dispose.call(this)},r.prototype.ensureSyncedResources=function(n){for(var a=0,y=n;a Zt&&a.push(y)}for(var _e=0,ke=a;_e '"_]/g,"-")}function Qo(s,r){console.log(s.languageId+": "+r)}function Do(s,r){return new Error(s.languageId+": "+r)}function Lo(s,r,n,a,y){var N=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,_e=null;return r.replace(N,function(ke,Ge,Qe,yt,It,Wt,Pt,ro,eo){return To(Qe)?To(yt)?!To(It)&&It 0;){var a=s.tokenizer[n];if(a)return a;var y=n.lastIndexOf(".");y<0?n=null:n=n.substr(0,y)}return null}function hn(s,r){for(var n=r;n&&n.length>0;){var a=s.stateNames[n];if(a)return!0;var y=n.lastIndexOf(".");y<0?n=null:n=n.substr(0,y)}return!1}var En=5,qo=function(){function s(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return s.create=function(r,n){return this._INSTANCE.create(r,n)},s.prototype.create=function(r,n){if(r!==null&&r.depth>=this._maxCacheDepth)return new xn(r,n);var a=xn.getStackElementId(r);a.length>0&&(a+="|"),a+=n;var y=this._entries[a];return y||(y=new xn(r,n),this._entries[a]=y,y)},s._INSTANCE=new s(En),s}(),xn=function(){function s(r,n){this.parent=r,this.state=n,this.depth=(this.parent?this.parent.depth:0)+1}return s.getStackElementId=function(r){for(var n="";r!==null;)n.length>0&&(n+="|"),n+=r.state,r=r.parent;return n},s._equals=function(r,n){for(;r!==null&&n!==null;){if(r===n)return!0;if(r.state!==n.state)return!1;r=r.parent,n=n.parent}return r===null&&n===null},s.prototype.equals=function(r){return s._equals(this,r)},s.prototype.push=function(r){return qo.create(this,r)},s.prototype.pop=function(){return this.parent},s.prototype.popall=function(){for(var r=this;r.parent;)r=r.parent;return r},s.prototype.switchTo=function(r){return qo.create(this.parent,r)},s}(),Un=function(){function s(r,n){this.modeId=r,this.state=n}return s.prototype.equals=function(r){return this.modeId===r.modeId&&this.state.equals(r.state)},s.prototype.clone=function(){var r=this.state.clone();return r===this.state?this:new s(this.modeId,this.state)},s}(),An=function(){function s(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return s.create=function(r,n){return this._INSTANCE.create(r,n)},s.prototype.create=function(r,n){if(n!==null)return new si(r,n);if(r!==null&&r.depth>=this._maxCacheDepth)return new si(r,n);var a=xn.getStackElementId(r),y=this._entries[a];return y||(y=new si(r,null),this._entries[a]=y,y)},s._INSTANCE=new s(En),s}(),si=function(){function s(r,n){this.stack=r,this.embeddedModeData=n}return s.prototype.clone=function(){var r=this.embeddedModeData?this.embeddedModeData.clone():null;return r===this.embeddedModeData?this:An.create(this.stack,this.embeddedModeData)},s.prototype.equals=function(r){return r instanceof s&&this.stack.equals(r.stack)?this.embeddedModeData===null&&r.embeddedModeData===null?!0:this.embeddedModeData===null||r.embeddedModeData===null?!1:this.embeddedModeData.equals(r.embeddedModeData):!1},s}(),ai=function(){function s(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return s.prototype.enterMode=function(r,n){this._language=n},s.prototype.emit=function(r,n){if(this._lastTokenType===n&&this._lastTokenLanguage===this._language)return;this._lastTokenType=n,this._lastTokenLanguage=this._language,this._tokens.push(new h.a(r,n,this._language))},s.prototype.nestedModeTokenize=function(r,n,a){var y=n.modeId,N=n.state,_e=gt.B.get(y);if(!_e)return this.enterMode(a,y),this.emit(a,""),N;var ke=_e.tokenize(r,N,a);return this._tokens=this._tokens.concat(ke.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,ke.endState},s.prototype.finalize=function(r){return new h.b(this._tokens,r)},s}(),Pn=function(){function s(r,n){this._modeService=r,this._theme=n,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return s.prototype.enterMode=function(r,n){this._currentLanguageId=this._modeService.getLanguageIdentifier(n).id},s.prototype.emit=function(r,n){var a=this._theme.match(this._currentLanguageId,n);if(this._lastTokenMetadata===a)return;this._lastTokenMetadata=a,this._tokens.push(r),this._tokens.push(a)},s._merge=function(r,n,a){var y=r!==null?r.length:0,N=n.length,_e=a!==null?a.length:0;if(y===0&&N===0&&_e===0)return new Uint32Array(0);if(y===0&&N===0)return a;if(N===0&&_e===0)return r;var ke=new Uint32Array(y+N+_e);r!==null&&ke.set(r);for(var Ge=0;Ge 0&&y.nestedModeTokenize(ke,n.embeddedModeData,a);var Ge=r.substring(N);return this._myTokenize(Ge,n,a+N,y)},s.prototype._safeRuleName=function(r){return r?r.name:"(unknown)"},s.prototype._myTokenize=function(r,n,a,y){y.enterMode(a,this._modeId);for(var N=r.length,_e=n.embeddedModeData,ke=n.stack,Ge=0,Qe=null,yt=!0;yt||Ge =N)break;yt=!1;var Po=this._lexer.tokenizer[ro];if(!Po&&(Po=vn(this._lexer,ro),!Po))throw Do(this._lexer,"tokenizer state is not defined: "+ro);for(var Go=r.substr(Ge),Xo=0,an=Po;Xo =this._lexer.maxStack)throw Do(this._lexer,"maximum tokenizer stack size reached: ["+ke.state+","+ke.parent.state+",...]");ke=ke.push(ro)}else if(Jt.next==="@pop"){if(ke.depth<=1)throw Do(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(co));ke=ke.pop()}else if(Jt.next==="@popall")ke=ke.popall();else{var Yo=Lo(this._lexer,Jt.next,Gt,eo,ro);if(Yo[0]==="@"&&(Yo=Yo.substr(1)),vn(this._lexer,Yo))ke=ke.push(Yo);else throw Do(this._lexer,"trying to set a next state '"+Yo+"' that is undefined in rule: "+this._safeRuleName(co))}}Jt.log&&typeof Jt.log=="string"&&Qo(this._lexer,this._lexer.languageId+": "+Lo(this._lexer,Jt.log,Gt,eo,ro))}if(Zo===null)throw Do(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(co));if(Array.isArray(Zo)){if(Qe&&Qe.groups.length>0)throw Do(this._lexer,"groups cannot be nested: "+this._safeRuleName(co));if(eo.length!==Zo.length+1)throw Do(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(co));for(var mn=0,en=1;en =0&&ro()})})},s.colorizeLine=function(r,n,a,y,N){N===void 0&&(N=4);var _e=Xt.d.isBasicASCII(r,n),ke=Xt.d.containsRTL(r,_e,a),Ge=Object(zt.e)(new zt.c(!1,!0,r,!1,_e,ke,0,y,[],N,0,0,0,-1,"none",!1,!1,null));return Ge.html},s.colorizeModelLine=function(r,n,a){a===void 0&&(a=4);var y=r.getLineContent(n);r.forceTokenization(n);var N=r.getLineTokens(n),_e=N.inflate();return this.colorizeLine(y,r.mightContainNonBasicASCII(),r.mightContainRTL(),_e,a)},s}();function Ki(s,r,n){return new Promise(function(a,y){var N=function(){var _e=Gi(s,r,n);if(n instanceof bi){var ke=n.getLoadStatus();if(ke.loaded===!1){ke.promise.then(N,y);return}}a(_e)};N()})}function Zr(s,r){var n=[],a=(0<<11|1<<14|2<<23)>>>0,y=new Uint32Array(2);y[0]=0,y[1]=a;for(var N=0,_e=s.length;N<_e;N++){var ke=s[N];y[0]=ke.length;var Ge=new wt.a(y,ke),Qe=Xt.d.isBasicASCII(ke,!0),yt=Xt.d.containsRTL(ke,Qe,!0),It=Object(zt.e)(new zt.c(!1,!0,ke,!1,Qe,yt,0,Ge,[],r,0,0,0,-1,"none",!1,!1,null));n=n.concat(It.html),n.push("
")}return n.join("")}function Gi(s,r,n){for(var a=[],y=n.getInitialState(),N=0,_e=s.length;N<_e;N++){var ke=s[N],Ge=n.tokenize2(ke,y,0);wt.a.convertToEndOffset(Ge.tokens,ke.length);var Qe=new wt.a(Ge.tokens,ke),yt=Xt.d.isBasicASCII(ke,!0),It=Xt.d.containsRTL(ke,yt,!0),Wt=Object(zt.e)(new zt.c(!1,!0,ke,!1,yt,It,0,Qe.inflate(),[],r,0,0,0,-1,"none",!1,!1,null));a=a.concat(Wt.html),a.push("
"),y=Ge.endState}return a.join("")}var $o=e("uDWl"),li=e("S3by"),On=e("sFUC"),yr=e("iDAx"),Qr=e("0/Sa"),Dn=e("+7oY"),Qn=e("QDVR"),Xi=e("CRAX"),br=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Yi=function(){for(var s=0,r=0,n=arguments.length;r5e3&&y._leaveChordMode()},500)},r.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},r.prototype._dispatch=function(n,a){return this._doDispatch(this.resolveKeyboardEvent(n),a)},r.prototype._doDispatch=function(n,a){var y=this,N=!1;if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var _e=n.getDispatchParts()[0];if(_e===null)return N;var ke=this._contextKeyService.getContext(a),Ge=this._currentChord?this._currentChord.keypress:null,Qe=n.getLabel(),yt=this._getResolver().resolve(ke,Ge,_e);return yt&&yt.enterChord?(N=!0,this._enterChordMode(_e,Qe),N):(this._currentChord&&((!yt||!yt.commandId)&&(this._notificationService.status(_n.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Qe),{hideAfter:10*1e3}),N=!0)),this._leaveChordMode(),yt&&yt.commandId&&(yt.bubble||(N=!0),typeof yt.commandArgs=="undefined"?this._commandService.executeCommand(yt.commandId).then(void 0,function(It){return y._notificationService.warn(It)}):this._commandService.executeCommand(yt.commandId,yt.commandArgs).then(void 0,function(It){return y._notificationService.warn(It)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:yt.commandId,from:"keybinding"})),N)},r.prototype.mightProducePrintableCharacter=function(n){return n.ctrlKey||n.metaKey?!1:n.keyCode>=31&&n.keyCode<=56||n.keyCode>=21&&n.keyCode<=30},r}(Rt.a),wn=e("T8No"),Qi=function(){function s(r,n){this._defaultKeybindings=r,this._defaultBoundCommands=new Map;for(var a=0,y=r.length;a =0;It--)this._isTargetedForRemoval(r[It],Ge,Qe,ke,yt)&&r.splice(It,1)}return r.concat(a)},s.prototype._addKeyPress=function(r,n){var a=this._map.get(r);if(typeof a=="undefined"){this._map.set(r,[n]),this._addToLookupMap(n);return}for(var y=a.length-1;y>=0;y--){var N=a[y];if(N.command===n.command)continue;var _e=N.keypressParts.length>1,ke=n.keypressParts.length>1;if(_e&&ke&&N.keypressParts[1]!==n.keypressParts[1])continue;s.whenIsEntirelyIncluded(N.when,n.when)&&this._removeFromLookupMap(N)}a.push(n),this._addToLookupMap(n)},s.prototype._addToLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);typeof n=="undefined"?(n=[r],this._lookupMap.set(r.command,n)):n.push(r)},s.prototype._removeFromLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);if(typeof n=="undefined")return;for(var a=0,y=n.length;a 1&&Qe.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:Qe.command,commandArgs:Qe.commandArgs,bubble:Qe.bubble}:null},s.prototype._findCommand=function(r,n){for(var a=n.length-1;a>=0;a--){var y=n[a];if(!s.contextMatchesRules(r,y.when))continue;return y}return null},s.contextMatchesRules=function(r,n){return n?n.evaluate(r):!0},s}(),qr=e("nrhi"),$i=function(){function s(r,n,a,y,N){this.resolvedKeybinding=r,this.keypressParts=r?Er(r.getDispatchParts()):[],this.bubble=n?n.charCodeAt(0)===94:!1,this.command=this.bubble?n.substr(1):n,this.commandArgs=a,this.when=y,this.isDefault=N}return s}();function Er(s){for(var r=[],n=0,a=s.length;n1},r.prototype.getParts=function(){var n=this;return this._parts.map(function(a){return n._getPart(a)})},r.prototype._getPart=function(n){return new H.d(n.ctrlKey,n.shiftKey,n.altKey,n.metaKey,this._getLabel(n),this._getAriaLabel(n))},r.prototype.getDispatchParts=function(){var n=this;return this._parts.map(function(a){return n._getDispatchPart(a)})},r}(H.c),ts=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),wr=function(s){ts(r,s);function r(n,a){return s.call(this,a,n.parts)||this}return r.prototype._keyCodeToUILabel=function(n){if(this._os===2)switch(n){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return H.b.toString(n)},r.prototype._getLabel=function(n){return n.isDuplicateModifierCase()?"":this._keyCodeToUILabel(n.keyCode)},r.prototype._getAriaLabel=function(n){return n.isDuplicateModifierCase()?"":H.b.toString(n.keyCode)},r.prototype._getDispatchPart=function(n){return r.getDispatchStr(n)},r.getDispatchStr=function(n){if(n.isModifierKey())return null;var a="";return n.ctrlKey&&(a+="ctrl+"),n.shiftKey&&(a+="shift+"),n.altKey&&(a+="alt+"),n.metaKey&&(a+="meta+"),a+=H.b.toString(n.keyCode),a},r}(na),Hn=e("sM1p"),Sr=e("EWX2"),Di=e("A9l+"),os=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),ns=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},is=function(s,r){return function(n,a){r(n,a,s)}},rs=function(){for(var s=0,r=0,n=arguments.length;r 0){var xo=n[ke-1];xo.originalEndLineNumber===0?co=xo.originalStartLineNumber+1:co=xo.originalEndLineNumber+1,xo.modifiedEndLineNumber===0?So=xo.modifiedStartLineNumber+1:So=xo.modifiedEndLineNumber+1}var Po=Gt-xi+1,Go=Jt-xi+1;if(Po Zo){var Xo=Zo-en;en=en+Xo,bn=bn+Xo}if(bn>Yo){var Xo=Yo-bn;en=en+Xo,bn=bn+Xo}ro[eo++]=new Ei(an,en,yn,bn)}N[_e++]=new Ji(ro)}for(var Mn=N[0].entries,Bn=[],kn=0,ke=1,Ge=N.length;ke Wt)&&(Wt=So),xo!==0&&(Pt===0||xo ro)&&(ro=Po)}var Go=document.createElement("div");Go.className="diff-review-row";var Xo=document.createElement("div");Xo.className="diff-review-cell diff-review-summary";var an=Wt-It+1,yn=ro-Pt+1;Xo.appendChild(document.createTextNode(Ge+1+"/"+this._diffs.length+": @@ -"+It+","+an+" +"+Pt+","+yn+" @@")),Go.setAttribute("data-line",String(Pt));var Zo=function(bn){return bn===0?_n.a("no_lines","no lines"):bn===1?_n.a("one_line","1 line"):_n.a("more_lines","{0} lines",bn)},Yo=Zo(an),mn=Zo(yn);Go.setAttribute("aria-label",_n.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",Ge+1,this._diffs.length,It,Yo,Pt,mn)),Go.appendChild(Xo),Go.setAttribute("role","listitem"),yt.appendChild(Go);for(var en=Pt,eo=0,Gt=Qe.length;eo >>0,Qe=new Uint32Array(2);Qe[0]=_e.length,Qe[1]=Ge;var yt=new wt.a(Qe,_e),It=Xt.d.isBasicASCII(_e,n.mightContainNonBasicASCII()),Wt=Xt.d.containsRTL(_e,It,n.mightContainRTL()),Pt=Object(zt.e)(new zt.c(ke.isMonospace&&!a.get(23),ke.canUseHalfwidthRightwardsArrow,_e,!1,It,Wt,0,yt,[],y,0,ke.spaceWidth,ke.middotWidth,a.get(88),a.get(74),a.get(69),a.get(35)!==T.d.OFF,null));return Pt.html},r}(Rt.a);Object(Ln.e)(function(s,r){var n=s.getColor(Vn.k);n&&r.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var a=s.getColor(gn.Vb);a&&r.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+a+" 0 -6px 6px -6px inset; }")});var er=function(s){Sn(r,s);function r(){return s.call(this,{id:"editor.action.diffReview.next",label:_n.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:wn.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return r.prototype.run=function(n,a){var y=Ir(n);y&&y.diffReviewNext()},r}(ui.b),Rr=function(s){Sn(r,s);function r(){return s.call(this,{id:"editor.action.diffReview.prev",label:_n.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:wn.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return r.prototype.run=function(n,a){var y=Ir(n);y&&y.diffReviewPrev()},r}(ui.b);function Ir(s){for(var r=s.get(de.a),n=r.listDiffEditors(),a=0,y=n.length;a 0&&N[N.length-1])&&(Qe[0]===6||Qe[0]===2)){n=0;continue}if(Qe[0]===3&&(!N||Qe[1]>N[0]&&Qe[1] N.modifiedStartLineNumber?_n.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):_n.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){return tr(this,function(Gt){switch(Gt.label){case 0:return[4,this._clipboardService.writeText(N.originalContent.join(yt)+yt)];case 1:return Gt.sent(),[2]}})})}));var Wt=0,Pt=void 0;N.originalEndLineNumber>N.modifiedStartLineNumber&&(Pt=new ci.a("diff.clipboard.copyDeletedLineContent",_n.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",N.originalStartLineNumber),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){return tr(this,function(Gt){switch(Gt.label){case 0:return[4,this._clipboardService.writeText(N.originalContent[Wt])];case 1:return Gt.sent(),[2]}})})}),It.push(Pt));var ro=y.getOption(68);ro||It.push(new ci.a("diff.inline.revertChange",_n.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){var Gt,Gt;return tr(this,function(Jt){return N.modifiedEndLineNumber===0?(Gt=y.getModel().getLineMaxColumn(N.modifiedStartLineNumber),y.executeEdits("diffEditor",[{range:new U.a(N.modifiedStartLineNumber,Gt,N.modifiedStartLineNumber,Gt),text:yt+N.originalContent.join(yt)}])):(Gt=y.getModel().getLineMaxColumn(N.modifiedEndLineNumber),y.executeEdits("diffEditor",[{range:new U.a(N.modifiedStartLineNumber,1,N.modifiedEndLineNumber,Gt),text:N.originalContent.join(yt)}])),[2]})})}));var eo=function(Gt,Jt){Ge._contextMenuService.showContextMenu({getAnchor:function(){return{x:Gt,y:Jt}},getActions:function(){return Pt&&(Pt.label=_n.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",N.originalStartLineNumber+Wt)),It},autoSelectFirstItem:!0})};return Ge._register(ge.o(Ge._diffActions,"mousedown",function(Gt){var Jt=ge.C(Ge._diffActions),co=Jt.top,So=Jt.height,xo=Math.floor(Qe/3);Gt.preventDefault(),eo(Gt.posx,co+So+xo)})),Ge._register(y.onMouseMove(function(Gt){if(Gt.target.type===8||Gt.target.type===5){var Jt=Gt.target.detail.viewZoneId;Jt===Ge._viewZoneId?(Ge.visibility=!0,Wt=Ge._updateLightBulbPosition(Ge._marginDomNode,Gt.event.browserEvent.y,Qe)):Ge.visibility=!1}else Ge.visibility=!1})),Ge._register(y.onMouseDown(function(Gt){if(!Gt.event.rightButton)return;if(Gt.target.type===8||Gt.target.type===5){var Jt=Gt.target.detail.viewZoneId;Jt===Ge._viewZoneId&&(Gt.event.preventDefault(),Wt=Ge._updateLightBulbPosition(Ge._marginDomNode,Gt.event.browserEvent.y,Qe),eo(Gt.event.posx,Gt.event.posy+Qe))}})),Ge}return Object.defineProperty(r.prototype,"visibility",{get:function(){return this._visibility},set:function(n){this._visibility!==n&&(this._visibility=n,n?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")},enumerable:!0,configurable:!0}),r.prototype._updateLightBulbPosition=function(n,a,y){var N=ge.C(n).top,_e=a-N,ke=Math.floor(_e/y),Ge=ke*y;return this._diffActions.style.top=Ge+"px",ke},r}(Rt.a),Ii=e("tTk5"),ws=e("o39E"),hi=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ss=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},$n=function(s,r){return function(n,a){r(n,a,s)}},Jn=function(){function s(r,n){this._contextMenuService=r,this._clipboardService=n,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return s.prototype.getForeignViewZones=function(r){var n=this;return r.filter(function(a){return!n._zonesMap[String(a.id)]})},s.prototype.clean=function(r){var n=this;this._zones.length>0&&r.changeViewZones(function(a){for(var y=0,N=n._zones.length;y 0?_e/y:0,Ge=Math.max(0,Math.floor(n.height*ke)),Qe=Math.floor(a*ke);return{height:Ge,top:Qe}},r.prototype._createDataSource=function(){var n=this;return{getWidth:function(){return n._elementSizeObserver.getWidth()},getHeight:function(){return n._elementSizeObserver.getHeight()-n._getReviewHeight()},getContainerDomNode:function(){return n._containerDomElement},relayoutEditors:function(){n._doLayout()},getOriginalEditor:function(){return n.originalEditor},getModifiedEditor:function(){return n.modifiedEditor}}},r.prototype._setStrategy=function(n){this._strategy&&this._strategy.dispose(),this._strategy=n,n.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},r.prototype._getLineChangeAtOrBeforeLineNumber=function(n,a){var y=this._diffComputationResult?this._diffComputationResult.changes:[];if(y.length===0||n=Qe?N=ke+1:(N=ke,_e=ke)}return y[N]},r.prototype._getEquivalentLineForOriginalLineNumber=function(n){var a=this._getLineChangeAtOrBeforeLineNumber(n,function(Qe){return Qe.originalStartLineNumber});if(!a)return n;var y=a.originalStartLineNumber+(a.originalEndLineNumber>0?-1:0),N=a.modifiedStartLineNumber+(a.modifiedEndLineNumber>0?-1:0),_e=a.originalEndLineNumber>0?a.originalEndLineNumber-a.originalStartLineNumber+1:0,ke=a.modifiedEndLineNumber>0?a.modifiedEndLineNumber-a.modifiedStartLineNumber+1:0,Ge=n-y;return Ge<=_e?N+Math.min(Ge,ke):N+ke-_e+Ge},r.prototype._getEquivalentLineForModifiedLineNumber=function(n){var a=this._getLineChangeAtOrBeforeLineNumber(n,function(Qe){return Qe.modifiedStartLineNumber});if(!a)return n;var y=a.originalStartLineNumber+(a.originalEndLineNumber>0?-1:0),N=a.modifiedStartLineNumber+(a.modifiedEndLineNumber>0?-1:0),_e=a.originalEndLineNumber>0?a.originalEndLineNumber-a.originalStartLineNumber+1:0,ke=a.modifiedEndLineNumber>0?a.modifiedEndLineNumber-a.modifiedStartLineNumber+1:0,Ge=n-N;return Ge<=ke?y+Math.min(Ge,_e):y+_e-ke+Ge},r.prototype.getDiffLineInformationForOriginal=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(n)}:null},r.prototype.getDiffLineInformationForModified=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(n)}:null},r.ONE_OVERVIEW_WIDTH=15,r.ENTIRE_DIFF_OVERVIEW_WIDTH=30,r.UPDATE_DIFF_DECORATIONS_DELAY=200,r=Ss([$n(3,it.a),$n(4,wn.c),$n(5,Rn.a),$n(6,de.a),$n(7,Ln.c),$n(8,Hn.a),$n(9,Xn.a),$n(10,Ii.a)],r),r}(Rt.a),Nr=function(s){hi(r,s);function r(n){var a=s.call(this)||this;return a._dataSource=n,a._insertColor=null,a._removeColor=null,a}return r.prototype.applyColors=function(n){var a=(n.getColor(gn.j)||gn.g).transparent(2),y=(n.getColor(gn.l)||gn.h).transparent(2),N=!a.equals(this._insertColor)||!y.equals(this._removeColor);return this._insertColor=a,this._removeColor=y,N},r.prototype.getEditorsDiffDecorations=function(n,a,y,N,_e,ke,Ge){_e=_e.sort(function(Wt,Pt){return Wt.afterLineNumber-Pt.afterLineNumber}),N=N.sort(function(Wt,Pt){return Wt.afterLineNumber-Pt.afterLineNumber});var Qe=this._getViewZones(n,N,_e,ke,Ge,y),yt=this._getOriginalEditorDecorations(n,a,y,ke,Ge),It=this._getModifiedEditorDecorations(n,a,y,ke,Ge);return{original:{decorations:yt.decorations,overviewZones:yt.overviewZones,zones:Qe.original},modified:{decorations:It.decorations,overviewZones:It.overviewZones,zones:Qe.modified}}},r}(Rt.a),nr=function(){function s(r){this._source=r,this._index=-1,this.current=null,this.advance()}return s.prototype.advance=function(){this._index++,this._index 0){var mn=Zo[Zo.length-1];if(mn.afterLineNumber===Yo.afterLineNumber&&mn.domNode===null){mn.heightInLines+=Yo.heightInLines;return}}Zo.push(Yo)},yt=new nr(this.modifiedForeignVZ),It=new nr(this.originalForeignVZ),Wt=0,Pt=this.lineChanges.length;Wt<=Pt;Wt++){var ro=Wt 0?-1:0),N=ro.modifiedStartLineNumber+(ro.modifiedEndLineNumber>0?-1:0),a=ro.originalEndLineNumber>0?ro.originalEndLineNumber-ro.originalStartLineNumber+1:0,n=ro.modifiedEndLineNumber>0?ro.modifiedEndLineNumber-ro.modifiedStartLineNumber+1:0,_e=Math.max(ro.originalStartLineNumber,ro.originalEndLineNumber),ke=Math.max(ro.modifiedStartLineNumber,ro.modifiedEndLineNumber)):(y+=1e7+a,N+=1e7+n,_e=y,ke=N);for(var eo=[],Gt=[];yt.current&&yt.current.afterLineNumber<=ke;){var Jt=void 0;yt.current.afterLineNumber<=N?Jt=y-N+yt.current.afterLineNumber:Jt=_e;var co=null;ro&&ro.modifiedStartLineNumber<=yt.current.afterLineNumber&&yt.current.afterLineNumber<=ro.modifiedEndLineNumber&&(co=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),eo.push({afterLineNumber:Jt,heightInLines:yt.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:co}),yt.advance()}for(;It.current&&It.current.afterLineNumber<=_e;){var Jt=void 0;It.current.afterLineNumber<=y?Jt=N-y+It.current.afterLineNumber:Jt=ke,Gt.push({afterLineNumber:Jt,heightInLines:It.current.height/this.originalLineHeight,domNode:null}),It.advance()}if(ro!==null&&fi(ro)){var So=this._produceOriginalFromDiff(ro,a,n);So&&eo.push(So)}if(ro!==null&&oi(ro)){var So=this._produceModifiedFromDiff(ro,a,n);So&&Gt.push(So)}var xo=0,Po=0;for(eo=eo.sort(Ge),Gt=Gt.sort(Ge);xo =Xo.heightInLines?(Go.heightInLines-=Xo.heightInLines,Po++):(Xo.heightInLines-=Go.heightInLines,xo++)}for(;xo r.MINIMUM_EDITOR_WIDTH*2?(N y-r.MINIMUM_EDITOR_WIDTH&&(N=y-r.MINIMUM_EDITOR_WIDTH)):N=_e,this._sashPosition!==N&&(this._sashPosition=N,this._sash.layout()),this._sashPosition},r.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},r.prototype.onSashDrag=function(n){var a=this._dataSource.getWidth(),y=a-or.ENTIRE_DIFF_OVERVIEW_WIDTH,N=this.layout((this._startSashPosition+(n.currentX-n.startX))/y);this._sashRatio=N/y,this._dataSource.relayoutEditors()},r.prototype.onSashDragEnd=function(){this._sash.layout()},r.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},r.prototype.getVerticalSashTop=function(n){return 0},r.prototype.getVerticalSashLeft=function(n){return this._sashPosition},r.prototype.getVerticalSashHeight=function(n){return this._dataSource.getHeight()},r.prototype._getViewZones=function(n,a,y,N,_e){var ke=new Ms(n,a,N.getOption(49),y,_e.getOption(49));return ke.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,a,y,N,_e){for(var ke=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Qe=N.getModel(),yt=0,It=n.length;yt a?{afterLineNumber:Math.max(n.originalStartLineNumber,n.originalEndLineNumber),heightInLines:y-a,domNode:null}:null},r.prototype._produceModifiedFromDiff=function(n,a,y){return a>y?{afterLineNumber:Math.max(n.modifiedStartLineNumber,n.modifiedEndLineNumber),heightInLines:a-y,domNode:null}:null},r}(ir),Ni=function(s){hi(r,s);function r(n,a){var y=s.call(this,n)||this;return y.decorationsLeft=n.getOriginalEditor().getLayoutInfo().decorationsLeft,y._register(n.getOriginalEditor().onDidLayoutChange(function(N){y.decorationsLeft!==N.decorationsLeft&&(y.decorationsLeft=N.decorationsLeft,n.relayoutEditors())})),y}return r.prototype.setEnableSplitViewResizing=function(n){},r.prototype._getViewZones=function(n,a,y,N,_e,ke){var Ge=new Os(n,a,y,N,_e,ke);return Ge.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,a,y,N,_e){for(var ke=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Qe=0,yt=n.length;Qe '])}Gt+=this.modifiedEditorOptions.get(79);var xo=document.createElement("div");xo.className="view-lines line-delete",xo.innerHTML=Qe.build(),Ti.a.applyFontInfoSlow(xo,Wt);var Po=document.createElement("div");return Po.className="inline-deleted-margin-view-zone",Po.innerHTML=yt.join(""),Ti.a.applyFontInfoSlow(Po,Wt),{shouldNotShrink:!0,afterLineNumber:n.modifiedEndLineNumber===0?n.modifiedStartLineNumber:n.modifiedStartLineNumber-1,heightInLines:a,minWidthInPx:Gt*eo,domNode:xo,marginDomNode:Po,diff:{originalStartLineNumber:n.originalStartLineNumber,originalEndLineNumber:n.originalEndLineNumber,modifiedStartLineNumber:n.modifiedStartLineNumber,modifiedEndLineNumber:n.modifiedEndLineNumber,originalContent:Jt}}},r.prototype._renderOriginalLine=function(n,a,y,N,_e,ke,Ge){var Qe=a.getLineTokens(_e),yt=Qe.getLineContent(),It=y.get(34),Wt=_s.a.filter(ke,_e,1,yt.length+1);Ge.appendASCIIString(' ');var Pt=Xt.d.isBasicASCII(yt,a.mightContainNonBasicASCII()),ro=Xt.d.containsRTL(yt,Pt,a.mightContainRTL()),eo=Object(zt.d)(new zt.c(It.isMonospace&&!y.get(23),It.canUseHalfwidthRightwardsArrow,yt,!1,Pt,ro,0,Qe,Wt,N,0,It.spaceWidth,It.middotWidth,y.get(88),y.get(74),y.get(69),y.get(35)!==T.d.OFF,null),Ge);Ge.appendASCIIString("");var Gt=eo.characterMapping.getAbsoluteOffsets();return Gt.length>0?Gt[Gt.length-1]:0},r}(ir);function fi(s){return s.modifiedEndLineNumber>0}function oi(s){return s.originalEndLineNumber>0}function Ds(){var s=document.createElement("div");return s.className="diagonal-fill",s}Object(Ln.e)(function(s,r){var n=s.getColor(gn.j);n&&(r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var a=s.getColor(gn.l);a&&(r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+a+"; }"),r.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+a+"; }"),r.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+a+"; }"));var y=s.getColor(gn.k);y&&r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(s.type==="hc"?"dashed":"solid")+" "+y+"; }");var N=s.getColor(gn.m);N&&r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(s.type==="hc"?"dashed":"solid")+" "+N+"; }");var _e=s.getColor(gn.Vb);_e&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+_e+"; }");var ke=s.getColor(gn.i);ke&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+ke+"; }")});var Ts=e("9Y+e"),Si=e("scqD"),Kn=e("fjLI"),ni=e("bexQ"),mi=e("R3nR"),xs=e("9XeP"),sr=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),ar=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},sn=function(s,r){return function(n,a){r(n,a,s)}},As=function(){for(var s=0,r=0,n=arguments.length;r> to now point to mime <<"+n.mime+">>"),n.filename&&a.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&a.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&a.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>")})}function ur(s){return{id:s.id,mime:s.mime,filename:s.filename,extension:s.extension,filepattern:s.filepattern,firstline:s.firstline,userConfigured:s.userConfigured,filenameLowercase:s.filename?s.filename.toLowerCase():void 0,extensionLowercase:s.extension?s.extension.toLowerCase():void 0,filepatternLowercase:s.filepattern?s.filepattern.toLowerCase():void 0,filepatternOnPath:s.filepattern?s.filepattern.indexOf(dr.posix.sep)>=0:!1}}function Li(s,r){var n;if(s)switch(s.scheme){case Ce.b.file:n=s.fsPath;break;case Ce.b.data:var a=fe.a.parseMetaData(s);n=a.get(fe.a.META_DATA_LABEL);break;default:n=s.path}if(!n)return[Pr];n=n.toLowerCase();var y=Object(dr.basename)(n),N=Wr(n,y,Fr);if(N)return[N,ki];var _e=Wr(n,y,kr);if(_e)return[_e,ki];if(r){var ke=ii(r);if(ke)return[ke,ki]}return[Pr]}function Wr(s,r,n){for(var a=null,y=null,N=null,_e=n.length-1;_e>=0;_e--){var ke=n[_e];if(r===ke.filenameLowercase){a=ke;break}if(ke.filepattern&&(!y||ke.filepattern.length>y.filepattern.length)){var Ge=ke.filepatternOnPath?s:r;Object(cr.a)(ke.filepatternLowercase,Ge)&&(y=ke)}ke.extension&&((!N||ke.extension.length>N.extension.length)&&(Object(to.m)(r,ke.extensionLowercase)&&(N=ke)))}return a?a.mime:y?y.mime:N?N.mime:null}function ii(s){if(Object(to.P)(s)&&(s=s.substr(1)),s.length>0)for(var r=Fi.length-1;r>=0;r--){var n=Fi[r];if(!n.firstline)continue;var a=s.match(n.firstline);if(a&&a.length>0)return n.mime}return null}var gi=e("MqQJ"),hr=e("ic2d"),ks=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),qn=Object.prototype.hasOwnProperty,Fs=function(s){ks(r,s);function r(n,a){n===void 0&&(n=!0),a===void 0&&(a=!1);var y=s.call(this)||this;return y._onDidChange=y._register(new I.a),y.onDidChange=y._onDidChange.event,y._warnOnOverwrite=a,y._nextLanguageId2=1,y._languageIdToLanguage=[],y._languageToLanguageId=Object.create(null),y._languages={},y._mimeTypesMap={},y._nameMap={},y._lowercaseNameMap={},n&&(y._initializeFromRegistry(),y._register(gi.a.onDidChangeLanguages(function(N){return y._initializeFromRegistry()}))),y}return r.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var n=gi.a.getLanguages();this._registerLanguages(n)},r.prototype._registerLanguages=function(n){for(var a=this,y=0,N=n;y 0&&((y=n.mimetypes).push.apply(y,a.mimetypes),_e=a.mimetypes[0]),_e||(_e="text/x-"+N,n.mimetypes.push(_e)),Array.isArray(a.extensions))for(var ke=0,Ge=a.extensions;ke 0){var Gt=a.firstLine;Gt.charAt(0)!=="^"&&(Gt="^"+Gt);try{var Jt=new RegExp(Gt);to.I(Jt)||pi({id:N,mime:_e,firstline:Jt},this._warnOnOverwrite)}catch(an){Object(Ct.e)(an)}}n.aliases.push(N);var co=null;if(typeof a.aliases!="undefined"&&Array.isArray(a.aliases)&&(a.aliases.length===0?co=[null]:co=a.aliases),co!==null)for(var So=0,xo=co;So 0;if(!(Go&&co[0]===null)){var Xo=(Go?co[0]:null)||N;(Go||!n.name)&&(n.name=Xo)}a.configuration&&n.configurationFiles.push(a.configuration)},r.prototype.isRegisteredMode=function(n){return qn.call(this._mimeTypesMap,n)?!0:qn.call(this._languages,n)},r.prototype.getModeIdForLanguageNameLowercase=function(n){return qn.call(this._lowercaseNameMap,n)?this._lowercaseNameMap[n].language:null},r.prototype.extractModeIds=function(n){var a=this;return n?n.split(",").map(function(y){return y.trim()}).map(function(y){return qn.call(a._mimeTypesMap,y)?a._mimeTypesMap[y].language:y}).filter(function(y){return qn.call(a._languages,y)}):[]},r.prototype.getLanguageIdentifier=function(n){if(n===Tt.b||n===0)return Tt.a;var a;if(typeof n=="string")a=n;else if(a=this._languageIdToLanguage[n],!a)return null;return qn.call(this._languages,a)?this._languages[a].identifier:null},r.prototype.getModeIdsFromFilepathOrFirstLine=function(n,a){if(!n&&!a)return[];var y=Li(n,a);return this.extractModeIds(y.join(","))},r}(Rt.a),Ws=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Br=function(s){Ws(r,s);function r(n,a){var y=s.call(this)||this;return y._onDidChange=y._register(new I.a),y.onDidChange=y._onDidChange.event,y._selector=a,y.languageIdentifier=y._selector(),y._register(n(function(){return y._evaluate()})),y}return r.prototype._evaluate=function(){var n=this._selector();if(n.id===this.languageIdentifier.id)return;this.languageIdentifier=n,this._onDidChange.fire(this.languageIdentifier)},r}(Rt.a),Bs=function(){function s(r){var n=this;r===void 0&&(r=!1),this._onDidCreateMode=new I.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new I.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Fs(!0,r),this._registry.onDidChange(function(){return n._onLanguagesMaybeChanged.fire()})}return s.prototype.isRegisteredMode=function(r){return this._registry.isRegisteredMode(r)},s.prototype.getModeIdForLanguageName=function(r){return this._registry.getModeIdForLanguageNameLowercase(r)},s.prototype.getModeIdByFilepathOrFirstLine=function(r,n){var a=this._registry.getModeIdsFromFilepathOrFirstLine(r,n);return Object(dt.l)(a,null)},s.prototype.getModeId=function(r){var n=this._registry.extractModeIds(r);return Object(dt.l)(n,null)},s.prototype.getLanguageIdentifier=function(r){return this._registry.getLanguageIdentifier(r)},s.prototype.create=function(r){var n=this;return new Br(this.onLanguagesMaybeChanged,function(){var a=n.getModeId(r);return n._createModeAndGetLanguageIdentifier(a)})},s.prototype.createByFilepathOrFirstLine=function(r,n){var a=this;return new Br(this.onLanguagesMaybeChanged,function(){var y=a.getModeIdByFilepathOrFirstLine(r,n);return a._createModeAndGetLanguageIdentifier(y)})},s.prototype._createModeAndGetLanguageIdentifier=function(r){var n=this.getLanguageIdentifier(r||"plaintext")||Tt.a;return this._getOrCreateMode(n.language),n},s.prototype.triggerMode=function(r){var n=this.getModeId(r);this._getOrCreateMode(n||"plaintext")},s.prototype._getOrCreateMode=function(r){if(!this._instantiatedModes.hasOwnProperty(r)){var n=this.getLanguageIdentifier(r)||Tt.a;this._instantiatedModes[r]=new Pi(n),this._onDidCreateMode.fire(this._instantiatedModes[r])}return this._instantiatedModes[r]},s}(),Ur=e("QRHv"),vi=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Us=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},Wi=function(s,r){return function(n,a){r(n,a,s)}};function Bi(s){return s.toString()}var k=function(){function s(r,n,a){this._modelEventListeners=new Rt.b,this.model=r,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(r.onWillDispose(function(){return n(r)})),this._modelEventListeners.add(r.onDidChangeLanguage(function(y){return a(r,y)}))}return s.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},s.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},s.prototype.setLanguage=function(r){var n=this;this._disposeLanguageSelection(),this._languageSelection=r,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return n.model.setMode(r.languageIdentifier)}),this.model.setMode(r.languageIdentifier)},s}(),o=ht.d||ht.e?1:2,t=function(s){vi(r,s);function r(n,a,y,N){var _e=s.call(this)||this;return _e._onModelAdded=_e._register(new I.a),_e.onModelAdded=_e._onModelAdded.event,_e._onModelRemoved=_e._register(new I.a),_e.onModelRemoved=_e._onModelRemoved.event,_e._onModelModeChanged=_e._register(new I.a),_e.onModelModeChanged=_e._onModelModeChanged.event,_e._configurationService=n,_e._resourcePropertiesService=a,_e._models={},_e._modelCreationOptionsByLanguageAndResource=Object.create(null),_e._configurationServiceSubscription=_e._configurationService.onDidChangeConfiguration(function(ke){return _e._updateModelOptions()}),_e._updateModelOptions(),_e._register(new i(_e,y,n,N)),_e}return r._readModelOptions=function(n,a){var y=T.c.tabSize;if(n.editor&&typeof n.editor.tabSize!="undefined"){var N=parseInt(n.editor.tabSize,10);isNaN(N)||(y=N),y<1&&(y=1)}var _e=y;if(n.editor&&typeof n.editor.indentSize!="undefined"&&n.editor.indentSize!=="tabSize"){var ke=parseInt(n.editor.indentSize,10);isNaN(ke)||(_e=ke),_e<1&&(_e=1)}var Ge=T.c.insertSpaces;n.editor&&typeof n.editor.insertSpaces!="undefined"&&(Ge=n.editor.insertSpaces==="false"?!1:Boolean(n.editor.insertSpaces));var Qe=o,yt=n.eol;yt===`\r `?Qe=2:yt===` `&&(Qe=1);var It=T.c.trimAutoWhitespace;n.editor&&typeof n.editor.trimAutoWhitespace!="undefined"&&(It=n.editor.trimAutoWhitespace==="false"?!1:Boolean(n.editor.trimAutoWhitespace));var Wt=T.c.detectIndentation;n.editor&&typeof n.editor.detectIndentation!="undefined"&&(Wt=n.editor.detectIndentation==="false"?!1:Boolean(n.editor.detectIndentation));var Pt=T.c.largeFileOptimizations;return n.editor&&typeof n.editor.largeFileOptimizations!="undefined"&&(Pt=n.editor.largeFileOptimizations==="false"?!1:Boolean(n.editor.largeFileOptimizations)),{isForSimpleWidget:a,tabSize:y,indentSize:_e,insertSpaces:Ge,detectIndentation:Wt,defaultEOL:Qe,trimAutoWhitespace:It,largeFileOptimizations:Pt}},r.prototype.getCreationOptions=function(n,a,y){var N=this._modelCreationOptionsByLanguageAndResource[n+a];if(!N){var _e=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:a}),ke=this._resourcePropertiesService.getEOL(a,n);N=r._readModelOptions({editor:_e,eol:ke},y),this._modelCreationOptionsByLanguageAndResource[n+a]=N}return N},r.prototype._updateModelOptions=function(){var n=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var a=Object.keys(this._models),y=0,N=a.length;y =this._growCount){var y=this._elements;this._currentLengthIndex++,this._currentLength=s._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1 0&&Ge >1;var Qe=this._themeService.getTheme().getTokenStyleMetadata(N,_e);if(typeof Qe=="undefined")y=2147483647;else{if(y=0,typeof Qe.italic!="undefined"){var yt=(Qe.italic?1:0)<<11;y|=yt|1}if(typeof Qe.bold!="undefined"){var It=(Qe.bold?2:0)<<11;y|=It|2}if(typeof Qe.underline!="undefined"){var Wt=(Qe.underline?4:0)<<11;y|=Wt|4}if(Qe.foreground){var Pt=Qe.foreground<<14;y|=Pt|8}y===0&&(y=2147483647)}this._hashTable.add(r,n,y)}if(this._logService.getLevel()===lt.b.Trace){var ro=this._legend.tokenTypes[r],eo=n?" "+this._legend.tokenModifiers.filter(function(Gt,Jt){return n&1< 0&&(n._fetchSemanticTokens.isScheduled()||n._fetchSemanticTokens.schedule())})},r._isSemanticTokens=function(n){return n&&!!n.data},r._isSemanticTokensEdits=function(n){return n&&Array.isArray(n.edits)},r._copy=function(n,a,y,N,_e){for(var ke=0;ke<_e;ke++)y[N+ke]=n[a+ke]},r.prototype._setSemanticTokens=function(n,a,y,N){var _e=this._currentResponse;if(this._currentResponse&&(this._currentResponse.dispose(),this._currentResponse=null),this._isDisposed){n&&a&&n.releaseDocumentSemanticTokens(a.resultId);return}if(!n||!a||!y){this._model.setSemanticTokens(null);return}if(r._isSemanticTokensEdits(a)){if(!_e){this._model.setSemanticTokens(null);return}if(a.edits.length===0)a={resultId:a.resultId,data:_e.data};else{for(var ke=0,Ge=0,Qe=a.edits;Ge =0;eo--){var yt=a.edits[eo],Gt=Pt-(yt.start+yt.deleteCount);Gt>0&&(r._copy(It,Pt-Gt,Wt,ro-Gt,Gt),ro-=Gt),yt.data&&(r._copy(yt.data,0,Wt,ro-yt.data.length,yt.data.length),ro-=yt.data.length),Pt=yt.start}Pt>0&&r._copy(It,0,Wt,0,Pt),a={resultId:a.resultId,data:Wt}}}if(r._isSemanticTokens(a)){this._currentResponse=new Se(n,a.resultId,a.data);for(var It=a.data,Jt=a.data.length/5|0,co=Math.max(Math.ceil(Jt/1024),400),So=[],xo=0,Po=1,Go=0;xo Xo&&It[5*yn]===0;)yn--;if(yn-1===Xo){for(var Zo=an;Zo+1 0){for(var qs=0,Ra=N;qs 0?n[0]:null},r}(Rt.a),ct=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),_t=function(s){ct(r,s);function r(){var n=s.call(this)||this;return n._onCodeEditorAdd=n._register(new I.a),n.onCodeEditorAdd=n._onCodeEditorAdd.event,n._onCodeEditorRemove=n._register(new I.a),n.onCodeEditorRemove=n._onCodeEditorRemove.event,n._onDiffEditorAdd=n._register(new I.a),n._onDiffEditorRemove=n._register(new I.a),n._codeEditors=Object.create(null),n._diffEditors=Object.create(null),n}return r.prototype.addCodeEditor=function(n){this._codeEditors[n.getId()]=n,this._onCodeEditorAdd.fire(n)},r.prototype.removeCodeEditor=function(n){delete this._codeEditors[n.getId()]&&this._onCodeEditorRemove.fire(n)},r.prototype.listCodeEditors=function(){var n=this;return Object.keys(this._codeEditors).map(function(a){return n._codeEditors[a]})},r.prototype.addDiffEditor=function(n){this._diffEditors[n.getId()]=n,this._onDiffEditorAdd.fire(n)},r.prototype.removeDiffEditor=function(n){delete this._diffEditors[n.getId()]&&this._onDiffEditorRemove.fire(n)},r.prototype.listDiffEditors=function(){var n=this;return Object.keys(this._diffEditors).map(function(a){return n._diffEditors[a]})},r.prototype.getFocusedCodeEditor=function(){for(var n=null,a=this.listCodeEditors(),y=0,N=a;y =0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},Bt=function(s,r){return function(n,a){r(n,a,s)}},Ht=function(){function s(r,n,a){this._parent=r,this._editorId=n,this.styleSheet=a,this._refCount=0}return s.prototype.ref=function(){this._refCount++},s.prototype.unref=function(){var r;this._refCount--,this._refCount===0&&((r=this.styleSheet.parentNode)===null||r===void 0||r.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},s}(),qt=function(){function s(r){this.styleSheet=r}return s.prototype.ref=function(){},s.prototype.unref=function(){},s}(),$t=function(s){tt(r,s);function r(n,a){a===void 0&&(a=null);var y=s.call(this)||this;return y._decorationOptionProviders=new Map,y._editorStyleSheets=new Map,y._globalStyleSheet=a?new qt(a):null,y._themeService=n,y}return r.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qt(ge.w())),this._globalStyleSheet},r.prototype._getOrCreateStyleSheet=function(n){if(!n)return this._getOrCreateGlobalStyleSheet();var a=n.getContainerDomNode();if(!ge.N(a))return this._getOrCreateGlobalStyleSheet();var y=n.getId();if(!this._editorStyleSheets.has(y)){var N=new Ht(this,y,ge.w(a));this._editorStyleSheets.set(y,N)}return this._editorStyleSheets.get(y)},r.prototype._removeEditorStyleSheets=function(n){this._editorStyleSheets.delete(n)},r.prototype.registerDecorationType=function(n,a,y,N){var _e=this._decorationOptionProviders.get(n);if(!_e){var ke=this._getOrCreateStyleSheet(N),Ge={styleSheet:ke.styleSheet,key:n,parentTypeKey:y,options:a||Object.create(null)};y?_e=new io(this._themeService,ke,Ge):_e=new yo(this._themeService,ke,Ge),this._decorationOptionProviders.set(n,_e)}_e.refCount++},r.prototype.removeDecorationType=function(n){var a=this._decorationOptionProviders.get(n);a&&(a.refCount--,a.refCount<=0&&(this._decorationOptionProviders.delete(n),a.dispose(),this.listCodeEditors().forEach(function(y){return y.removeDecorations(n)})))},r.prototype.resolveDecorationOptions=function(n,a){var y=this._decorationOptionProviders.get(n);if(!y)throw new Error("Unknown decoration type key: "+n);return y.getOptions(this,a)},r=kt([Bt(0,Ln.c)],r),r}(_t),io=function(){function s(r,n,a){this._styleSheet=n,this._styleSheet.ref(),this._parentTypeKey=a.parentTypeKey,this.refCount=0,this._beforeContentRules=new bo(3,a,r),this._afterContentRules=new bo(4,a,r)}return s.prototype.getOptions=function(r,n){var a=r.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(a.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(a.afterContentClassName=this._afterContentRules.className),a},s.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},s}(),yo=function(){function s(r,n,a){var y=this;this._disposables=new Rt.b,this._styleSheet=n,this._styleSheet.ref(),this.refCount=0;var N=function(It){var Wt=new bo(It,a,r);return y._disposables.add(Wt),Wt.hasContent?Wt.className:void 0},_e=function(It){var Wt=new bo(It,a,r);return y._disposables.add(Wt),Wt.hasContent?{className:Wt.className,hasLetterSpacing:Wt.hasLetterSpacing}:null};this.className=N(0);var ke=_e(1);ke&&(this.inlineClassName=ke.className,this.inlineClassNameAffectsLetterSpacing=ke.hasLetterSpacing),this.beforeContentClassName=N(3),this.afterContentClassName=N(4),this.glyphMarginClassName=N(2);var Ge=a.options;this.isWholeLine=Boolean(Ge.isWholeLine),this.stickiness=Ge.rangeBehavior;var Qe=Ge.light&&Ge.light.overviewRulerColor||Ge.overviewRulerColor,yt=Ge.dark&&Ge.dark.overviewRulerColor||Ge.overviewRulerColor;(typeof Qe!="undefined"||typeof yt!="undefined")&&(this.overviewRuler={color:Qe||yt,darkColor:yt||Qe,position:Ge.overviewRulerLane||pt.d.Center})}return s.prototype.getOptions=function(r,n){return n?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},s.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},s}(),po={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},bo=function(){function s(r,n,a){var y=this;this._theme=a.getTheme(),this._ruleType=r,this._providerArgs=n,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var N=vo.getClassName(this._providerArgs.key,r);this._providerArgs.parentTypeKey&&(N=N+" "+vo.getClassName(this._providerArgs.parentTypeKey,r)),this._className=N,this._unThemedSelector=vo.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,r),this._buildCSS(),this._usesThemeColors?this._themeListener=a.onThemeChange(function(_e){y._theme=a.getTheme(),y._removeCSS(),y._buildCSS()}):this._themeListener=null}return s.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(s.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),s.prototype._buildCSS=function(){var r=this._providerArgs.options,n,a,y;switch(this._ruleType){case 0:n=this.getCSSTextForModelDecorationClassName(r),a=this.getCSSTextForModelDecorationClassName(r.light),y=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:n=this.getCSSTextForModelDecorationInlineClassName(r),a=this.getCSSTextForModelDecorationInlineClassName(r.light),y=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:n=this.getCSSTextForModelDecorationGlyphMarginClassName(r),a=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),y=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:n=this.getCSSTextForModelDecorationContentClassName(r.before),a=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),y=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:n=this.getCSSTextForModelDecorationContentClassName(r.after),a=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),y=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var N=this._providerArgs.styleSheet.sheet,_e=!1;n.length>0&&(N.insertRule(this._unThemedSelector+" {"+n+"}",0),_e=!0),a.length>0&&(N.insertRule(".vs"+this._unThemedSelector+" {"+a+"}",0),_e=!0),y.length>0&&(N.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+y+"}",0),_e=!0),this._hasContent=_e},s.prototype._removeCSS=function(){ge.O(this._unThemedSelector,this._providerArgs.styleSheet)},s.prototype.getCSSTextForModelDecorationClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["backgroundColor"],n),this.collectCSSText(r,["outline","outlineColor","outlineStyle","outlineWidth"],n),this.collectBorderSettingsCSSText(r,n),n.join("")},s.prototype.getCSSTextForModelDecorationInlineClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],n),r.letterSpacing&&(this._hasLetterSpacing=!0),n.join("")},s.prototype.getCSSTextForModelDecorationContentClassName=function(r){if(!r)return"";var n=[];if(typeof r!="undefined"){if(this.collectBorderSettingsCSSText(r,n),typeof r.contentIconPath!="undefined"&&n.push(to.r(po.contentIconPath,ge.r(K.a.revive(r.contentIconPath)))),typeof r.contentText=="string"){var a=r.contentText.match(/^.*$/m)[0],y=a.replace(/['\\]/g,"\\$&");n.push(to.r(po.contentText,y))}this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],n),this.collectCSSText(r,["width","height"],n)&&n.push("display:inline-block;")}return n.join("")},s.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(r){if(!r)return"";var n=[];return typeof r.gutterIconPath!="undefined"&&(n.push(to.r(po.gutterIconPath,ge.r(K.a.revive(r.gutterIconPath)))),typeof r.gutterIconSize!="undefined"&&n.push(to.r(po.gutterIconSize,r.gutterIconSize))),n.join("")},s.prototype.collectBorderSettingsCSSText=function(r,n){return this.collectCSSText(r,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],n)?(n.push(to.r("box-sizing: border-box;")),!0):!1},s.prototype.collectCSSText=function(r,n,a){for(var y=a.length,N=0,_e=n;N<_e.length;N++){var ke=_e[N],Ge=this.resolveValue(r[ke]);typeof Ge=="string"&&a.push(to.r(po[ke],Ge))}return a.length!==y},s.prototype.resolveValue=function(r){if(Object(jt.c)(r)){this._usesThemeColors=!0;var n=this._theme.getColor(r.id);return n?n.toString():"transparent"}return r},s}(),vo=function(){function s(){}return s.getClassName=function(r,n){return"ced-"+r+"-"+n},s.getSelector=function(r,n,a){var y=".monaco-editor ."+this.getClassName(r,a);return n&&(y=y+"."+this.getClassName(n,a)),a===3?y+="::before":a===4&&(y+="::after"),y},s}(),Co=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Mo=function(s){Co(r,s);function r(){return s!==null&&s.apply(this,arguments)||this}return r.prototype.getActiveCodeEditor=function(){return null},r.prototype.openCodeEditor=function(n,a,y){return a?Promise.resolve(this.doOpenEditor(a,n)):Promise.resolve(null)},r.prototype.doOpenEditor=function(n,a){var y=this.findModel(n,a.resource);if(!y){if(a.resource){var N=a.resource.scheme;if(N===Ce.b.http||N===Ce.b.https)return Object(ge.ab)(a.resource.toString()),n}return null}var _e=a.options?a.options.selection:null;if(_e)if(typeof _e.endLineNumber=="number"&&typeof _e.endColumn=="number")n.setSelection(_e),n.revealRangeInCenter(_e,1);else{var ke={lineNumber:_e.startLineNumber,column:_e.startColumn};n.setPosition(ke),n.revealPositionInCenter(ke,1)}return n},r.prototype.findModel=function(n,a){var y=n.getModel();return y&&y.uri.toString()!==a.toString()?null:y},r}($t),Ko=e("zrhQ"),zo=function(){function s(r,n,a,y,N){this.token=r,this.index=n,this.fontStyle=a,this.foreground=y,this.background=N}return s}();function ko(s){if(!s||!Array.isArray(s))return[];for(var r=[],n=0,a=0,y=s.length;a =1&&s[0].token==="";){var N=s.shift();N.fontStyle!==-1&&(n=N.fontStyle),N.foreground!==null&&(a=N.foreground),N.background!==null&&(y=N.background)}for(var _e=new ln,ke=0,Ge=r;ke >>0,this._cache.set(n,a)}return(a|r<<0)>>>0},s}(),cn=/\b(comment|string|regex|regexp)\b/;function Wn(s){var r=s.match(cn);if(!r)return 0;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function Fn(s,r){return s r?1:0}var Ui=function(){function s(r,n,a){this._fontStyle=r,this._foreground=n,this._background=a,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return s.prototype.clone=function(){return new s(this._fontStyle,this._foreground,this._background)},s.prototype.acceptOverwrite=function(r,n,a){r!==-1&&(this._fontStyle=r),n!==0&&(this._foreground=n),a!==0&&(this._background=a),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},s}(),fr=function(){function s(r){this._mainRule=r,this._children=new Map}return s.prototype.match=function(r){if(r==="")return this._mainRule;var n=r.indexOf("."),a,y;n===-1?(a=r,y=""):(a=r.substring(0,n),y=r.substring(n+1));var N=this._children.get(a);return typeof N!="undefined"?N.match(y):this._mainRule},s.prototype.insert=function(r,n,a,y){if(r===""){this._mainRule.acceptOverwrite(n,a,y);return}var N=r.indexOf("."),_e,ke;N===-1?(_e=r,ke=""):(_e=r.substring(0,N),ke=r.substring(N+1));var Ge=this._children.get(_e);typeof Ge=="undefined"&&(Ge=new s(this._mainRule.clone()),this._children.set(_e,Ge)),Ge.insert(ke,n,a,y)},s}();function Hr(s){for(var r=[],n=1,a=s.length;n0?(this.id=a+" "+r,this.themeName=r):(this.id=a,this.themeName=a),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(s.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),s.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},s.prototype.getColors=function(){if(!this.colors){var r=new Map;for(var n in this.themeData.colors)r.set(n,Ko.a.fromHex(this.themeData.colors[n]));if(this.themeData.inherit){var a=Vs(this.themeData.base);for(var n in a.colors)r.has(n)||r.set(n,Ko.a.fromHex(a.colors[n]))}this.colors=r}return this.colors},s.prototype.getColor=function(r,n){var a=this.getColors().get(r);return a||(n!==!1?this.getDefault(r):void 0)},s.prototype.getDefault=function(r){var n=this.defaultColors[r];return n||(n=Ba.resolveDefaultColor(r,this),this.defaultColors[r]=n,n)},s.prototype.defines=function(r){return Object.prototype.hasOwnProperty.call(this.getColors(),r)},Object.defineProperty(s.prototype,"type",{get:function(){switch(this.base){case Mi:return"light";case mr:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var r=[],n=[];if(this.themeData.inherit){var a=Vs(this.themeData.base);r=a.rules,a.encodedTokensColors&&(n=a.encodedTokensColors)}r=r.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(n=this.themeData.encodedTokensColors),this._tokenTheme=Nn.createFromRawTokenTheme(r,n)}return this._tokenTheme},enumerable:!0,configurable:!0}),s.prototype.getTokenStyleMetadata=function(r,n){return},s}();function Hs(s){return s===Mi||s===Vr||s===mr}function Vs(s){switch(s){case Mi:return Pa;case Vr:return ka;case mr:return Fa}}function zs(s){var r=Vs(s);return new la(s,r)}var Ha=function(s){Wa(r,s);function r(){var n=s.call(this)||this;return n._onThemeChange=n._register(new I.a),n.onThemeChange=n._onThemeChange.event,n._environment=Object.create(null),n._knownThemes=new Map,n._knownThemes.set(Mi,zs(Mi)),n._knownThemes.set(Vr,zs(Vr)),n._knownThemes.set(mr,zs(mr)),n._css="",n._globalStyleElement=null,n._styleElements=[],n.setTheme(Mi),n}return r.prototype.registerEditorContainer=function(n){return ge.N(n)?this._registerShadowDomContainer(n):this._registerRegularEditorContainer()},r.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=ge.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),Rt.a.None},r.prototype._registerShadowDomContainer=function(n){var a=this,y=ge.w(n);return y.className="monaco-colors",y.innerHTML=this._css,this._styleElements.push(y),{dispose:function(){for(var N=0;N =0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},za=function(s,r){return function(n,a){r(n,a,s)}},Kr="data-keybinding-context",Ks=function(){function s(r,n){this._id=r,this._parent=n,this._value=Object.create(null),this._value._contextId=r}return s.prototype.setValue=function(r,n){return this._value[r]!==n?(this._value[r]=n,!0):!1},s.prototype.removeValue=function(r){return r in this._value?(delete this._value[r],!0):!1},s.prototype.getValue=function(r){var n=this._value[r];return typeof n=="undefined"&&this._parent?this._parent.getValue(r):n},s}(),Gr=function(s){zr(r,s);function r(){return s.call(this,-1,null)||this}return r.prototype.setValue=function(n,a){return!1},r.prototype.removeValue=function(n){return!1},r.prototype.getValue=function(n){return},r.INSTANCE=new r,r}(Ks),Ka=function(s){zr(r,s);function r(n,a,y){var N=s.call(this,n,null)||this;return N._configurationService=a,N._values=new Map,N._listener=N._configurationService.onDidChangeConfiguration(function(_e){if(_e.source===6){var ke=Object(Qn.d)(N._values);N._values.clear(),y.fire(new ca(ke))}else{for(var Ge=[],Qe=0,yt=_e.affectedKeys;Qe =0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},pr=function(s,r){return function(n,a){r(n,a,s)}},nl=function(s){tl(r,s);function r(n,a,y,N,_e){var ke=s.call(this)||this;return ke._onDidContextMenu=ke._register(new I.a),ke.contextMenuHandler=new el(y,n,a,N,_e),ke}return r.prototype.configure=function(n){this.contextMenuHandler.configure(n)},r.prototype.showContextMenu=function(n){this.contextMenuHandler.showContextMenu(n),this._onDidContextMenu.fire()},r=ol([pr(0,Gs.a),pr(1,Hn.a),pr(2,Xn.b),pr(3,ni.a),pr(4,Ln.c)],r),r}(Rt.a),nc=e("TT2d"),il=e("nuFA"),rl=e("CjF5"),sl=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}();function fa(s,r,n){var a=n.offset+n.size;return n.position===0?r<=s-a?a:r<=n.offset?n.offset-r:Math.max(s-r,0):r<=n.offset?n.offset-r:r<=s-a?a:0}var al=function(s){sl(r,s);function r(n){var a=s.call(this)||this;return a.container=null,a.delegate=null,a.toDisposeOnClean=Rt.a.None,a.toDisposeOnSetContainer=Rt.a.None,a.view=ge.a(".context-view"),ge.J(a.view),a.setContainer(n),a._register(Object(Rt.h)(function(){return a.setContainer(null)})),a}return r.prototype.setContainer=function(n){var a=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),n){this.container=n,this.container.appendChild(this.view);var y=new Rt.b;r.BUBBLE_UP_EVENTS.forEach(function(N){y.add(ge.o(a.container,N,function(_e){a.onDOMEvent(_e,!1)}))}),r.BUBBLE_DOWN_EVENTS.forEach(function(N){y.add(ge.o(a.container,N,function(_e){a.onDOMEvent(_e,!0)},!0))}),this.toDisposeOnSetContainer=y}},r.prototype.show=function(n){this.isVisible()&&this.hide(),ge.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",ge.X(this.view),this.toDisposeOnClean=n.render(this.view)||Rt.a.None,this.delegate=n,this.doLayout(),this.delegate.focus&&this.delegate.focus()},r.prototype.layout=function(){if(!this.isVisible())return;if(this.delegate.canRelayout===!1&&!(ht.c&&rl.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()},r.prototype.doLayout=function(){if(!this.isVisible())return;var n=this.delegate.getAnchor(),a;if(ge.L(n)){var y=ge.C(n);a={top:y.top,left:y.left,width:y.width,height:y.height}}else a={top:n.y,left:n.x,width:n.width||1,height:n.height||2};var N=ge.H(this.view),_e=ge.G(this.view),ke=this.delegate.anchorPosition||0,Ge=this.delegate.anchorAlignment||0,Qe={offset:a.top-window.pageYOffset,size:a.height,position:ke===0?0:1},yt;Ge===0?yt={offset:a.left,size:0,position:0}:yt={offset:a.left+a.width,size:0,position:1};var It=fa(window.innerHeight,_e,Qe)+window.pageYOffset;il.a.intersects({start:It,end:It+_e},{start:Qe.offset,end:Qe.offset+Qe.size})&&(yt.size=a.width,Ge===1&&(yt.offset=a.left));var Wt=fa(window.innerWidth,N,yt);ge.Q(this.view,"top","bottom","left","right"),ge.f(this.view,ke===0?"bottom":"top"),ge.f(this.view,Ge===0?"left":"right");var Pt=ge.C(this.container);this.view.style.top=It-Pt.top+"px",this.view.style.left=Wt-Pt.left+"px",this.view.style.width="initial"},r.prototype.hide=function(n){var a=this.delegate;this.delegate=null,(a==null?void 0:a.onHide)&&a.onHide(n),this.toDisposeOnClean.dispose(),ge.J(this.view)},r.prototype.isVisible=function(){return!!this.delegate},r.prototype.onDOMEvent=function(n,a){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(n,document.activeElement):a&&!ge.K(n.target,this.container)&&this.hide())},r.prototype.dispose=function(){this.hide(),s.prototype.dispose.call(this)},r.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],r.BUBBLE_DOWN_EVENTS=["click"],r}(Rt.a),ma=Object(Rn.c)("layoutService"),ll=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),dl=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},cl=function(s,r){return function(n,a){r(n,a,s)}},ul=function(s){ll(r,s);function r(n){var a=s.call(this)||this;return a.layoutService=n,a.contextView=a._register(new al(n.container)),a.layout(),a._register(n.onLayout(function(){return a.layout()})),a}return r.prototype.setContainer=function(n){this.contextView.setContainer(n)},r.prototype.showContextView=function(n){this.contextView.show(n)},r.prototype.layout=function(){this.contextView.layout()},r.prototype.hideContextView=function(n){this.contextView.hide(n)},r=dl([cl(0,ma)],r),r}(Rt.a),hl=Object(Rn.c)("dialogService"),Xs=e("vl9R");function fl(s){return{data:s,incoming:Object.create(null),outgoing:Object.create(null)}}var ml=function(){function s(r){this._hashFn=r,this._nodes=Object.create(null)}return s.prototype.roots=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){Object(Et.f)(n.value.outgoing)&&r.push(n.value)}),r},s.prototype.insertEdge=function(r,n){var a=this.lookupOrInsertNode(r),y=this.lookupOrInsertNode(n);a.outgoing[this._hashFn(n)]=y,y.incoming[this._hashFn(r)]=a},s.prototype.removeNode=function(r){var n=this._hashFn(r);delete this._nodes[n],Object(Xs.c)(this._nodes,function(a){delete a.value.outgoing[n],delete a.value.incoming[n]})},s.prototype.lookupOrInsertNode=function(r){var n=this._hashFn(r),a=this._nodes[n];return a||(a=fl(r),this._nodes[n]=a),a},s.prototype.isEmpty=function(){for(var r in this._nodes)return!1;return!0},s.prototype.toString=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){r.push(n.key+", (incoming)["+Object.keys(n.value.incoming).join(", ")+"], (outgoing)["+Object.keys(n.value.outgoing).join(",")+"]")}),r.join(` `)},s}(),gr=e("r0BQ"),pa=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ys=function(){for(var s=0,r=0,n=arguments.length;r 0?y[0].index:n.length;if(n.length!==yt){console.warn("[createInstance] First service dependency of "+r.name+" at position "+(yt+1)+" conflicts with "+n.length+" static arguments");var It=yt-n.length;It>0?n=n.concat(new Array(It)):n=n.slice(0,yt)}return new(r.bind.apply(r,Ys([void 0],Ys(n,N))))},s.prototype._setServiceInstance=function(r,n){if(this._services.get(r)instanceof gr.a)this._services.set(r,n);else if(this._parent)this._parent._setServiceInstance(r,n);else throw new Error("illegalState - setting UNKNOWN service instance")},s.prototype._getServiceInstanceOrDescriptor=function(r){var n=this._services.get(r);return!n&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):n},s.prototype._getOrCreateServiceInstance=function(r,n){var a=this._getServiceInstanceOrDescriptor(r);return a instanceof gr.a?this._createAndCacheServiceInstance(r,a,n.branch(r,!0)):(n.branch(r,!1),a)},s.prototype._createAndCacheServiceInstance=function(r,n,a){for(var y=new ml(function(co){return co.id.toString()}),N=0,_e=[{id:r,desc:n,_trace:a}];_e.length;){var ke=_e.pop();if(y.lookupOrInsertNode(ke),N++>150)throw new va(y);for(var Ge=0,Qe=Rn.b.getServiceDependencies(ke.desc.ctor);Ge "+Wt);var eo=a(N+1,ro);eo&&ke.push(eo)}else ke.push(Ge+"uses -> "+Wt)}return ke.join(` `)}var y=[(this.type===0?"CREATE":"CALL")+" "+this.name,""+a(1,this),"DONE, took "+r.toFixed(2)+"ms (grand total "+s._totals.toFixed(2)+"ms)"];(r>2||n)&&console.log(y.join(` `))},s._None=new(function(r){pa(n,r);function n(){return r.call(this,-1,null)||this}return n.prototype.stop=function(){},n.prototype.branch=function(){return this},n}(s)),s._totals=0,s}(),gl=e("R8sh"),ba=e("k9mg"),ei=e("tADe"),Oi;(function(s){function r(y,N,_e){return y[N]?y[N][_e]:void 0}s.get=r;function n(y,N,_e,ke){y[N]||(y[N]=Object.create(null)),y[N][_e]=ke}s.set=n;function a(y,N,_e){return y[N]&&y[N][_e]?(delete y[N][_e],Object(Et.f)(y[N])&&delete y[N],!0):!1}s.remove=a})(Oi||(Oi={}));var vl=function(){function s(r){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=r,this._subscription=r.onMarkerChanged(this._update,this)}return s.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},s.prototype._update=function(r){if(!this._data)return;for(var n=0,a=r;n 0?Ge:1,Qe=Qe>0?Qe:1,yt=yt>=Ge?yt:Ge,It=It>0?It:Qe,{resource:n,owner:r,code:y,severity:N,message:_e,source:ke,startLineNumber:Ge,startColumn:Qe,endLineNumber:yt,endColumn:It,relatedInformation:Wt,tags:Pt}):void 0},s.prototype.read=function(r){r===void 0&&(r=Object.create(null));var n=r.owner,a=r.resource,y=r.severities,N=r.take;if((!N||N<0)&&(N=-1),n&&a){var _e=Oi.get(this._byResource,a.toString(),n);if(_e){for(var ke=[],Ge=0,Qe=_e;Ge 0&&It===N)break}}return ke}else return[]}else if(!n&&!a){var ke=[];for(var Wt in this._byResource)for(var Pt in this._byResource[Wt])for(var ro=0,eo=this._byResource[Wt][Pt];ro 0&&It===N)return ke}}return ke}else{var Gt=n?this._byOwner[n]:a?this._byResource[a.toString()]:void 0;if(!Gt)return[];var ke=[];for(var Jt in Gt)for(var co=0,So=Gt[Jt];co 0&&It===N)return ke}}return ke}},s._accept=function(r,n){return n===void 0||(n&r.severity)===r.severity},s._debouncer=function(r,n){r||(s._dedupeMap=Object.create(null),r=[]);for(var a=0,y=n;a =0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},Qs=function(s,r){return function(n,a){r(n,a,s)}},bl=function(){function s(r){this._commandService=r}return s.prototype.createMenu=function(r,n){return new Cl(r,this._commandService,n)},s=Ea([Qs(0,$.b)],s),s}(),Cl=function(){function s(r,n,a){var y=this;this._id=r,this._commandService=n,this._contextKeyService=a,this._onDidChange=new I.a,this._dispoables=new Rt.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(I.b.debounce(I.b.filter(Kn.c.onDidChangeMenu,function(N){return N===y._id}),function(){},50)(this._build,this)),this._dispoables.add(I.b.debounce(this._contextKeyService.onDidChangeContext,function(N,_e){return N||_e.affectsSome(y._contextKeys)},50)(function(N){return N&&y._onDidChange.fire(void 0)},this))}return s.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},s.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var r=Kn.c.getMenuItems(this._id),n;r.sort(s._compareMenuItems);for(var a=0,y=r;a 0&&n.push([_e,Ge])}return n},s._fillInKbExprKeys=function(r,n){if(r)for(var a=0,y=r.keys();a ke?1:s._compareTitles(Object(Kn.e)(r)?r.command.title:r.title,Object(Kn.e)(n)?n.command.title:n.title)},s._compareTitles=function(r,n){var a=typeof r=="string"?r:r.value,y=typeof n=="string"?n:n.value;return a.localeCompare(y)},s=Ea([Qs(1,$.b),Qs(2,wn.c)],s),s}(),El=e("79sc"),_a=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),_l=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},wa=function(s,r){return function(n,a){r(n,a,s)}};function vr(s){return s.toString()}var wl=function(s){_a(r,s);function r(n){var a=s.call(this)||this;return a.model=n,a._markersData=new Map,a._register(Object(Rt.h)(function(){a.model.deltaDecorations(Object(Qn.d)(a._markersData),[]),a._markersData.clear()})),a}return r.prototype.update=function(n,a){var y=Object(Qn.d)(this._markersData);this._markersData.clear();for(var N=this.model.deltaDecorations(y,a),_e=0;_e =_e?y=new U.a(y.startLineNumber,_e-1,y.endLineNumber,_e):y=new U.a(y.startLineNumber,y.startColumn,y.endLineNumber,y.endColumn+1))}}else if(a.endColumn===Number.MAX_VALUE&&a.startColumn===1&&y.startLineNumber===y.endLineNumber){var ke=n.getLineFirstNonWhitespaceColumn(a.startLineNumber);ke =0:!1},r=_l([wa(0,xe.a),wa(1,ei.b)],r),r}(Rt.a),Ll=e("9fML"),Ml=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Ol=function(s,r,n,a){var y=arguments.length,N=y<3?r:a===null?a=Object.getOwnPropertyDescriptor(r,n):a,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(s,r,n,a);else for(var ke=s.length-1;ke>=0;ke--)(_e=s[ke])&&(N=(y<3?_e(N):y>3?_e(r,n,N):_e(r,n))||N);return y>3&&N&&Object.defineProperty(r,n,N),N},Sa=function(s,r){return function(n,a){r(n,a,s)}},Dl=function(s){Ml(r,s);function r(n,a){var y=s.call(this)||this;y._contextKeyService=n,y._configurationService=a,y._accessibilitySupport=0,y._onDidChangeScreenReaderOptimized=new I.a,y._accessibilityModeEnabledContext=mi.a.bindTo(y._contextKeyService);var N=function(){return y._accessibilityModeEnabledContext.set(y.isScreenReaderOptimized())};return y._register(y._configurationService.onDidChangeConfiguration(function(_e){_e.affectsConfiguration("editor.accessibilitySupport")&&(N(),y._onDidChangeScreenReaderOptimized.fire())})),N(),y.onDidChangeScreenReaderOptimized(function(){return N()}),y}return Object.defineProperty(r.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),r.prototype.isScreenReaderOptimized=function(){var n=this._configurationService.getValue("editor.accessibilitySupport");return n==="on"||n==="auto"&&this._accessibilitySupport===2},r.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},r=Ol([Sa(0,wn.c),Sa(1,Dn.a)],r),r}(Rt.a),Tl=function(){var s=function(r,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var N in y)y.hasOwnProperty(N)&&(a[N]=y[N])},s(r,n)};return function(r,n){s(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),nn;(function(s){var r=new _i.a,n=function(){function ke(Ge,Qe){this._serviceId=Ge,this._factory=Qe,this._value=null}return Object.defineProperty(ke.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),ke.prototype.get=function(Ge){if(!this._value){if(Ge&&(this._value=Ge[this._serviceId.toString()]),this._value||(this._value=this._factory(Ge)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");r.set(this._serviceId,this._value)}return this._value},ke}();s.LazyStaticService=n;var a=[];function y(ke,Ge){var Qe=new n(ke,Ge);return a.push(Qe),Qe}function N(ke){for(var Ge=new _i.a,Qe=0,yt=Object(Ll.a)();Qe =0&&n<5;)n++,r=r.replace(/@(\w+)/g,function(a,y){var N="";if(typeof s[y]=="string")N=s[y];else if(s[y]&&s[y]instanceof RegExp)N=s[y].source;else throw s[y]===void 0?Do(s,"language definition does not contain attribute '"+y+"', used at: "+r):Do(s,"attribute reference '"+y+"' must be a string, used at: "+r);return To(N)?"":"(?:"+N+")"});return new RegExp(r,s.ignoreCase?"i":"")}function od(s,r,n,a){if(a<0)return s;if(a =100){a=a-100;var y=n.split(".");if(y.unshift(n),a =0&&(a.tokenSubst=!0),typeof n.bracket=="string")if(n.bracket==="@open")a.bracket=1;else if(n.bracket==="@close")a.bracket=-1;else throw Do(s,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(n.next){if(typeof n.next!="string")throw Do(s,"the next state must be a string value in rule: "+r);var y=n.next;if(!/^(@pop|@push|@popall)$/.test(y)&&(y[0]==="@"&&(y=y.substr(1)),y.indexOf("$")<0&&!hn(s,Lo(s,y,"",[],""))))throw Do(s,"the next state '"+n.next+"' is not defined in rule: "+r);a.next=y}return typeof n.goBack=="number"&&(a.goBack=n.goBack),typeof n.switchTo=="string"&&(a.switchTo=n.switchTo),typeof n.log=="string"&&(a.log=n.log),typeof n.nextEmbedded=="string"&&(a.nextEmbedded=n.nextEmbedded,s.usesEmbedded=!0),a}else if(Array.isArray(n)){for(var N=[],_e=0,ke=n.length;_e 0&&a[0]==="^",this.name=this.name+": "+a,this.regex=$s(r,"^(?:"+(this.matchOnlyAtLineStart?a.substr(1):a)+")")},s.prototype.setAction=function(r,n){this.action=Js(r,this.name,n)},s}();function rd(s,r){if(!r||typeof r!="object")throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=s,n.noThrow=!1,n.maxStack=100,n.start=typeof r.start=="string"?r.start:null,n.ignoreCase=Oa(r.ignoreCase,!1),n.tokenPostfix=Da(r.tokenPostfix,"."+n.languageId),n.defaultToken=Da(r.defaultToken,"source"),n.usesEmbedded=!1;var a=r;a.languageId=s,a.ignoreCase=n.ignoreCase,a.noThrow=n.noThrow,a.usesEmbedded=n.usesEmbedded,a.stateNames=r.tokenizer,a.defaultToken=n.defaultToken;function y(Wt,Pt,ro){for(var eo=0,Gt=ro;eo =1&&Jt.length<=3)if(So.setRegex(a,Jt[0]),Jt.length>=3)if(typeof Jt[1]=="string")So.setAction(a,{token:Jt[1],next:Jt[2]});else if(typeof Jt[1]=="object"){var xo=Jt[1];xo.next=Jt[2],So.setAction(a,xo)}else throw Do(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+Wt);else So.setAction(a,Jt[1]);else{if(!Jt.regex)throw Do(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Wt);Jt.name&&(typeof Jt.name=="string"&&(So.name=Jt.name)),Jt.matchOnlyAtStart&&(So.matchOnlyAtLineStart=Oa(Jt.matchOnlyAtLineStart,!1)),So.setRegex(a,Jt.regex),So.setAction(a,Jt.action)}Pt.push(So)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw Do(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(var N in r.tokenizer)if(r.tokenizer.hasOwnProperty(N)){n.start||(n.start=N);var _e=r.tokenizer[N];n.tokenizer[N]=new Array,y("tokenizer."+N,n.tokenizer[N],_e)}if(n.usesEmbedded=a.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw Do(n,"the 'brackets' attribute must be defined as an array")}else r.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var ke=[],Ge=0,Qe=r.brackets;Ge 0&&N[_e-1]===It)continue;var Wt=yt.startIndex;Ge===0?Wt=0:Wt 0?(C?v=(v+1)%p:v=(v+p-1)%p,w.children[v]):(v=w.parent.groups.indexOf(w),C?(v=(v+1)%d,w.parent.groups[v].children[0]):(v=(v+d-1)%d,w.parent.groups[v].children[w.parent.groups[v].children.length-1]))},O.prototype.nearestReference=function(m,C){var w=this.references.map(function(v,p){return{idx:p,prefixLen:H.c(v.uri.toString(),m.toString()),offsetDist:Math.abs(v.range.startLineNumber-C.lineNumber)*100+Math.abs(v.range.startColumn-C.column)}}).sort(function(v,p){return v.prefixLen>p.prefixLen?-1:v.prefixLen p.offsetDist?1:0})[0];return w?this.references[w.idx]:void 0},O.prototype.referenceAt=function(m,C){for(var w=0,v=this.references;w 1?L=J.r(b.b.gotoLineLabelValidLineAndColumn,c.lineNumber,c.column):L=J.r(b.b.gotoLineLabelValidLine,c.lineNumber):c.lineNumber<1||c.lineNumber>(u?u.getLineCount():0)?L=J.r(b.b.gotoLineLabelEmptyWithLineLimit,u?u.getLineCount():0):L=J.r(b.b.gotoLineLabelEmptyWithLineAndColumnLimit,u?u.getLineMaxColumn(c.lineNumber):0),{position:c,isValid:E,label:L}},v.prototype.getLabel=function(){return this.parseResult.label},v.prototype.getAriaLabel=function(){var p=this.editor.getPosition(),d=p?p.lineNumber:0;return J.r(b.b.gotoLineAriaLabel,d,this.parseResult.label)},v.prototype.run=function(p,d){return p===1?this.runOpen():this.runPreview()},v.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var p=this.toSelection();return this.editor.setSelection(p),this.editor.revealRangeInCenter(p,0),this.editor.focus(),!0},v.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var p=this.toSelection();return this.editor.revealRangeInCenter(p,0),this.decorator.decorateLine(p,this.editor),!1},v.prototype.toSelection=function(){return new U.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},v}(I.a),C=function(w){O(v,w);function v(){return w.call(this,b.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:b.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:j.a.focus,primary:2048|37,mac:{primary:256|37},weight:100}})||this}return v.prototype.run=function(p,d){var c=this;this._show(this.getController(d),{getModel:function(u){return new I.c([new m(u,d,c.getController(d))])},getAutoFocus:function(u){return{autoFocusFirstEntry:u.length>0}}})},v}(h.a);Object(K.f)(C)},ApJL:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return e.e(296).then(e.bind(null,"AoeA"))}})},BEdG:function(Mt,F,e){"use strict";e.r(F);var T=e("+hIS");Object(T.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\