"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["monaco"],{"include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js":function(pt,Me,e){e.r(Me),e.d(Me,{CancellationTokenSource:function(){return Kl},Emitter:function(){return Gl},KeyCode:function(){return $l},KeyMod:function(){return Ql},MarkerSeverity:function(){return ql},MarkerTag:function(){return ed},Position:function(){return Yl},Range:function(){return Zl},Selection:function(){return Xl},SelectionDirection:function(){return Jl},Token:function(){return nd},Uri:function(){return td},default:function(){return Hu},editor:function(){return id},languages:function(){return od}});var r={};e.r(r),e.d(r,{CancellationTokenSource:function(){return Kl},Emitter:function(){return Gl},KeyCode:function(){return $l},KeyMod:function(){return Ql},MarkerSeverity:function(){return ql},MarkerTag:function(){return ed},Position:function(){return Yl},Range:function(){return Zl},Selection:function(){return Xl},SelectionDirection:function(){return Jl},Token:function(){return nd},Uri:function(){return td},editor:function(){return id},languages:function(){return od}});var F=e("./node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/coreCommands.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/transpose.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/contrib/clipboard/browser/clipboard.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensController.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorContributions.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/comment.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dnd.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/documentSymbols.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js"),v=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js"),p=e("./node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findController.js"),b=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/folding.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js"),w=e("./node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formatActions.js"),j=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoError.js"),U=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess.js"),K=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js"),G=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js"),P=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hover.js"),A=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js"),T=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js"),E=e("./node_modules/monaco-editor/esm/vs/editor/contrib/indentation/browser/indentation.js"),W=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsContribution.js"),$=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js"),z=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.js"),J=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineProgress/browser/inlineProgress.js"),B=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.js"),V=e("./node_modules/monaco-editor/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js"),Y=e("./node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js"),X=e("./node_modules/monaco-editor/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js"),ie=e("./node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/links.js"),re=e("./node_modules/monaco-editor/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js"),te=e("./node_modules/monaco-editor/esm/vs/editor/contrib/multicursor/browser/multicursor.js"),D=e("./node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js"),he=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess.js"),ve=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess.js"),Ce=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess.js"),Pe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js"),_e=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch.js"),ee=e("./node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/rename.js"),De=e("./node_modules/monaco-editor/esm/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js"),Te=e("./node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js"),He=e("./node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js"),qe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js"),Qe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.js"),q=e("./node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollContribution.js"),ye=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.js"),ge=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js"),be=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast.js"),Se=e("./node_modules/monaco-editor/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js"),ae=e("./node_modules/monaco-editor/esm/vs/editor/contrib/tokenization/browser/tokenization.js"),me=e("./node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js"),fe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js"),le=e("./node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js"),oe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js"),ne=e("./node_modules/monaco-editor/esm/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js"),de=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),Le=e("./node_modules/monaco-editor/esm/vs/editor/common/services/editorBaseApi.js"),We=e("./node_modules/monaco-editor/esm/vs/base/browser/window.js"),we=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),Ue=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),lt=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),Et=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/fontMeasurements.js"),Kt=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),Zt=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),qt=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),tt=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/editorWorkerService.js");function Mt(Ie,o,_){return new Ht(Ie,o,_)}class Ht extends tt.Z6{constructor(o,_,N){super(o,N.keepIdleModels||!1,N.label,_),this._foreignModuleId=N.moduleId,this._foreignModuleCreateData=N.createData||null,this._foreignModuleHost=N.host||null,this._foreignProxy=null}fhr(o,_){if(!this._foreignModuleHost||typeof this._foreignModuleHost[o]!="function")return Promise.reject(new Error("Missing method "+o+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[o].apply(this._foreignModuleHost,_))}catch(N){return Promise.reject(N)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(o=>{const _=this._foreignModuleHost?(0,qt.V0)(this._foreignModuleHost):[];return o.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,_).then(N=>{this._foreignModuleCreateData=null;const se=(Oe,ot)=>o.fmr(Oe,ot),ue=(Oe,ot)=>function(){const _t=Array.prototype.slice.call(arguments,0);return ot(Oe,_t)},Ee={};for(const Oe of N)Ee[Oe]=ue(Oe,se);return Ee})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(o){return this._withSyncedResources(o).then(_=>this.getProxy())}}var xt=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorZoom.js"),Jt=e("./node_modules/monaco-editor/esm/vs/editor/common/config/fontInfo.js"),Nt=e("./node_modules/monaco-editor/esm/vs/editor/common/editorCommon.js"),Be=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),vt=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),Gt=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),_n=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/modesRegistry.js"),Fn=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/nullTokenize.js"),An=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js"),Hn=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),Kn=e("./node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js"),mi=e("./node_modules/monaco-editor/esm/vs/base/browser/trustedTypes.js"),yi=e("./node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.js"),ri=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js"),fi=e("./node_modules/monaco-editor/esm/vs/editor/common/viewModel.js");function Mi(Ie){return Array.isArray(Ie)}function xi(Ie){return!Mi(Ie)}function ci(Ie){return typeof Ie=="string"}function Ii(Ie){return!ci(Ie)}function Si(Ie){return!Ie}function Ti(Ie,o){return Ie.ignoreCase&&o?o.toLowerCase():o}function Nn(Ie){return Ie.replace(/[&<>'"_]/g,"-")}function Vn(Ie,o){console.log(`${Ie.languageId}: ${o}`)}function Yn(Ie,o){return new Error(`${Ie.languageId}: ${o}`)}function Di(Ie,o,_,N,se){const ue=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let Ee=null;return o.replace(ue,function(Oe,ot,_t,Ot,nn,fn,wn,Xn,bi){return Si(_t)?Si(Ot)?!Si(nn)&&nn0;){const N=Ie.tokenizer[_];if(N)return N;const se=_.lastIndexOf(".");se<0?_=null:_=_.substr(0,se)}return null}function Ye(Ie,o){let _=o;for(;_&&_.length>0;){if(Ie.stateNames[_])return!0;const se=_.lastIndexOf(".");se<0?_=null:_=_.substr(0,se)}return!1}var mt=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),ze=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Ke=function(Ie,o){return function(_,N){o(_,N,Ie)}},Je;const Ne=5;class ft{static create(o,_){return this._INSTANCE.create(o,_)}constructor(o){this._maxCacheDepth=o,this._entries=Object.create(null)}create(o,_){if(o!==null&&o.depth>=this._maxCacheDepth)return new St(o,_);let N=St.getStackElementId(o);N.length>0&&(N+="|"),N+=_;let se=this._entries[N];return se||(se=new St(o,_),this._entries[N]=se,se)}}ft._INSTANCE=new ft(Ne);class St{constructor(o,_){this.parent=o,this.state=_,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(o){let _="";for(;o!==null;)_.length>0&&(_+="|"),_+=o.state,o=o.parent;return _}static _equals(o,_){for(;o!==null&&_!==null;){if(o===_)return!0;if(o.state!==_.state)return!1;o=o.parent,_=_.parent}return o===null&&_===null}equals(o){return St._equals(this,o)}push(o){return ft.create(this,o)}pop(){return this.parent}popall(){let o=this;for(;o.parent;)o=o.parent;return o}switchTo(o){return ft.create(this.parent,o)}}class rt{constructor(o,_){this.languageId=o,this.state=_}equals(o){return this.languageId===o.languageId&&this.state.equals(o.state)}clone(){return this.state.clone()===this.state?this:new rt(this.languageId,this.state)}}class Ge{static create(o,_){return this._INSTANCE.create(o,_)}constructor(o){this._maxCacheDepth=o,this._entries=Object.create(null)}create(o,_){if(_!==null)return new nt(o,_);if(o!==null&&o.depth>=this._maxCacheDepth)return new nt(o,_);const N=St.getStackElementId(o);let se=this._entries[N];return se||(se=new nt(o,null),this._entries[N]=se,se)}}Ge._INSTANCE=new Ge(Ne);class nt{constructor(o,_){this.stack=o,this.embeddedLanguageData=_}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:Ge.create(this.stack,this.embeddedLanguageData)}equals(o){return!(o instanceof nt)||!this.stack.equals(o.stack)?!1:this.embeddedLanguageData===null&&o.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||o.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(o.embeddedLanguageData)}}class it{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(o){this._languageId=o}emit(o,_){this._lastTokenType===_&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=_,this._lastTokenLanguage=this._languageId,this._tokens.push(new Be.ou(o,_,this._languageId)))}nestedLanguageTokenize(o,_,N,se){const ue=N.languageId,Ee=N.state,Oe=Be.dG.get(ue);if(!Oe)return this.enterLanguage(ue),this.emit(se,""),Ee;const ot=Oe.tokenize(o,_,Ee);if(se!==0)for(const _t of ot.tokens)this._tokens.push(new Be.ou(_t.offset+se,_t.type,_t.language));else this._tokens=this._tokens.concat(ot.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,ot.endState}finalize(o){return new Be.$M(this._tokens,o)}}class bt{constructor(o,_){this._languageService=o,this._theme=_,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(o){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(o)}emit(o,_){const N=this._theme.match(this._currentLanguageId,_)|1024;this._lastTokenMetadata!==N&&(this._lastTokenMetadata=N,this._tokens.push(o),this._tokens.push(N))}static _merge(o,_,N){const se=o!==null?o.length:0,ue=_.length,Ee=N!==null?N.length:0;if(se===0&&ue===0&&Ee===0)return new Uint32Array(0);if(se===0&&ue===0)return N;if(ue===0&&Ee===0)return o;const Oe=new Uint32Array(se+ue+Ee);o!==null&&Oe.set(o);for(let ot=0;ot{if(Ee)return;let ot=!1;for(let _t=0,Ot=Oe.changedLanguages.length;_t{Oe.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))}))}getLoadStatus(){const o=[];for(const _ in this._embeddedLanguages){const N=Be.dG.get(_);if(N){if(N instanceof Je){const se=N.getLoadStatus();se.loaded===!1&&o.push(se.promise)}continue}Be.dG.isResolved(_)||o.push(Be.dG.getOrCreate(_))}return o.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(o).then(_=>{})}}getInitialState(){const o=ft.create(null,this._lexer.start);return Ge.create(o,null)}tokenize(o,_,N){if(o.length>=this._maxTokenizationLineLength)return(0,Fn.$H)(this._languageId,N);const se=new it,ue=this._tokenize(o,_,N,se);return se.finalize(ue)}tokenizeEncoded(o,_,N){if(o.length>=this._maxTokenizationLineLength)return(0,Fn.Lh)(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),N);const se=new bt(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),ue=this._tokenize(o,_,N,se);return se.finalize(ue)}_tokenize(o,_,N,se){return N.embeddedLanguageData?this._nestedTokenize(o,_,N,0,se):this._myTokenize(o,_,N,0,se)}_findLeavingNestedLanguageOffset(o,_){let N=this._lexer.tokenizer[_.stack.state];if(!N&&(N=Sn(this._lexer,_.stack.state),!N))throw Yn(this._lexer,"tokenizer state is not defined: "+_.stack.state);let se=-1,ue=!1;for(const Ee of N){if(!Ii(Ee.action)||Ee.action.nextEmbedded!=="@pop")continue;ue=!0;let Oe=Ee.resolveRegex(_.stack.state);const ot=Oe.source;if(ot.substr(0,4)==="^(?:"&&ot.substr(ot.length-1,1)===")"){const Ot=(Oe.ignoreCase?"i":"")+(Oe.unicode?"u":"");Oe=new RegExp(ot.substr(4,ot.length-5),Ot)}const _t=o.search(Oe);_t===-1||_t!==0&&Ee.matchOnlyAtLineStart||(se===-1||_t0&&ue.nestedLanguageTokenize(Oe,!1,N.embeddedLanguageData,se);const ot=o.substring(Ee);return this._myTokenize(ot,_,N,se+Ee,ue)}_safeRuleName(o){return o?o.name:"(unknown)"}_myTokenize(o,_,N,se,ue){ue.enterLanguage(this._languageId);const Ee=o.length,Oe=_&&this._lexer.includeLF?o+` `:o,ot=Oe.length;let _t=N.embeddedLanguageData,Ot=N.stack,nn=0,fn=null,wn=!0;for(;wn||nn=ot)break;wn=!1;let Ui=this._lexer.tokenizer[Fi];if(!Ui&&(Ui=Sn(this._lexer,Fi),!Ui))throw Yn(this._lexer,"tokenizer state is not defined: "+Fi);const _o=Oe.substr(nn);for(const vo of Ui)if((nn===0||!vo.matchOnlyAtLineStart)&&(Hi=_o.match(vo.resolveRegex(Fi)),Hi)){Gi=Hi[0],Li=vo.action;break}}if(Hi||(Hi=[""],Gi=""),Li||(nn=this._lexer.maxStack)throw Yn(this._lexer,"maximum tokenizer stack size reached: ["+Ot.state+","+Ot.parent.state+",...]");Ot=Ot.push(Fi)}else if(Li.next==="@pop"){if(Ot.depth<=1)throw Yn(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(to));Ot=Ot.pop()}else if(Li.next==="@popall")Ot=Ot.popall();else{let Ui=Di(this._lexer,Li.next,Gi,Hi,Fi);if(Ui[0]==="@"&&(Ui=Ui.substr(1)),Sn(this._lexer,Ui))Ot=Ot.push(Ui);else throw Yn(this._lexer,"trying to set a next state '"+Ui+"' that is undefined in rule: "+this._safeRuleName(to))}}Li.log&&typeof Li.log=="string"&&Vn(this._lexer,this._lexer.languageId+": "+Di(this._lexer,Li.log,Gi,Hi,Fi))}if(ro===null)throw Yn(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(to));const Ts=Ui=>{const _o=this._languageService.getLanguageIdByLanguageName(Ui)||this._languageService.getLanguageIdByMimeType(Ui)||Ui,vo=this._getNestedEmbeddedLanguageData(_o);if(nn0)throw Yn(this._lexer,"groups cannot be nested: "+this._safeRuleName(to));if(Hi.length!==ro.length+1)throw Yn(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(to));let Ui=0;for(let _o=1;_oIe});class at{static colorizeElement(o,_,N,se){se=se||{};const ue=se.theme||"vs",Ee=se.mimeType||N.getAttribute("lang")||N.getAttribute("data-lang");if(!Ee)return console.error("Mode not detected"),Promise.resolve();const Oe=_.getLanguageIdByMimeType(Ee)||Ee;o.setTheme(ue);const ot=N.firstChild?N.firstChild.nodeValue:"";N.className+=" "+ue;const _t=Ot=>{var nn;const fn=(nn=et?.createHTML(Ot))!==null&&nn!==void 0?nn:Ot;N.innerHTML=fn};return this.colorize(_,ot||"",Oe,se).then(_t,Ot=>console.error(Ot))}static async colorize(o,_,N,se){const ue=o.languageIdCodec;let Ee=4;se&&typeof se.tabSize=="number"&&(Ee=se.tabSize),Ue.LU(_)&&(_=_.substr(1));const Oe=Ue.uz(_);if(!o.isRegisteredLanguageId(N))return dt(Oe,Ee,ue);const ot=await Be.dG.getOrCreate(N);return ot?Tt(Oe,Ee,ot,ue):dt(Oe,Ee,ue)}static colorizeLine(o,_,N,se,ue=4){const Ee=fi.qL.isBasicASCII(o,_),Oe=fi.qL.containsRTL(o,Ee,N);return(0,ri.Md)(new ri.zL(!1,!0,o,!1,Ee,Oe,0,se,[],ue,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(o,_,N=4){const se=o.getLineContent(_);o.tokenization.forceTokenization(_);const Ee=o.tokenization.getLineTokens(_).inflate();return this.colorizeLine(se,o.mightContainNonBasicASCII(),o.mightContainRTL(),Ee,N)}}function Tt(Ie,o,_,N){return new Promise((se,ue)=>{const Ee=()=>{const Oe=Ae(Ie,o,_,N);if(_ instanceof Dt){const ot=_.getLoadStatus();if(ot.loaded===!1){ot.promise.then(Ee,ue);return}}se(Oe)};Ee()})}function dt(Ie,o,_){let N=[];const ue=new Uint32Array(2);ue[0]=0,ue[1]=33587200;for(let Ee=0,Oe=Ie.length;Ee")}return N.join("")}function Ae(Ie,o,_,N){let se=[],ue=_.getInitialState();for(let Ee=0,Oe=Ie.length;Ee"),ue=_t.endState}return se.join("")}var ct=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),ut=e("./node_modules/monaco-editor/esm/vs/editor/common/editorAction.js"),je=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),Rt=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),Ft=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),ln=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js"),vn=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),Ln=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},En=function(Ie,o){return function(_,N){o(_,N,Ie)}};let In=class extends we.jG{constructor(o){super(),this._themeService=o,this._onWillCreateCodeEditor=this._register(new Ft.vl),this._onCodeEditorAdd=this._register(new Ft.vl),this.onCodeEditorAdd=this._onCodeEditorAdd.event,this._onCodeEditorRemove=this._register(new Ft.vl),this.onCodeEditorRemove=this._onCodeEditorRemove.event,this._onWillCreateDiffEditor=this._register(new Ft.vl),this._onDiffEditorAdd=this._register(new Ft.vl),this.onDiffEditorAdd=this._onDiffEditorAdd.event,this._onDiffEditorRemove=this._register(new Ft.vl),this.onDiffEditorRemove=this._onDiffEditorRemove.event,this._decorationOptionProviders=new Map,this._codeEditorOpenHandlers=new ln.w,this._modelProperties=new Map,this._codeEditors=Object.create(null),this._diffEditors=Object.create(null),this._globalStyleSheet=null}willCreateCodeEditor(){this._onWillCreateCodeEditor.fire()}addCodeEditor(o){this._codeEditors[o.getId()]=o,this._onCodeEditorAdd.fire(o)}removeCodeEditor(o){delete this._codeEditors[o.getId()]&&this._onCodeEditorRemove.fire(o)}listCodeEditors(){return Object.keys(this._codeEditors).map(o=>this._codeEditors[o])}willCreateDiffEditor(){this._onWillCreateDiffEditor.fire()}addDiffEditor(o){this._diffEditors[o.getId()]=o,this._onDiffEditorAdd.fire(o)}listDiffEditors(){return Object.keys(this._diffEditors).map(o=>this._diffEditors[o])}getFocusedCodeEditor(){let o=null;const _=this.listCodeEditors();for(const N of _){if(N.hasTextFocus())return N;N.hasWidgetFocus()&&(o=N)}return o}removeDecorationType(o){const _=this._decorationOptionProviders.get(o);_&&(_.refCount--,_.refCount<=0&&(this._decorationOptionProviders.delete(o),_.dispose(),this.listCodeEditors().forEach(N=>N.removeDecorationsByType(o))))}setModelProperty(o,_,N){const se=o.toString();let ue;this._modelProperties.has(se)?ue=this._modelProperties.get(se):(ue=new Map,this._modelProperties.set(se,ue)),ue.set(_,N)}getModelProperty(o,_){const N=o.toString();if(this._modelProperties.has(N))return this._modelProperties.get(N).get(_)}async openCodeEditor(o,_,N){for(const se of this._codeEditorOpenHandlers){const ue=await se(o,_,N);if(ue!==null)return ue}return null}registerCodeEditorOpenHandler(o){const _=this._codeEditorOpenHandlers.unshift(o);return(0,we.s)(_)}};In=Ln([En(0,vn.Gy)],In);class ei{constructor(o){this._styleSheet=o}}var en=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),xe=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),st=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Wt=function(Ie,o){return function(_,N){o(_,N,Ie)}};let rn=class extends In{constructor(o,_){super(_),this._register(this.onCodeEditorAdd(()=>this._checkContextKey())),this._register(this.onCodeEditorRemove(()=>this._checkContextKey())),this._editorIsOpen=o.createKey("editorIsOpen",!1),this._activeCodeEditor=null,this._register(this.registerCodeEditorOpenHandler(async(N,se,ue)=>se?this.doOpenEditor(se,N):null))}_checkContextKey(){let o=!1;for(const _ of this.listCodeEditors())if(!_.isSimpleWidget){o=!0;break}this._editorIsOpen.set(o)}setActiveCodeEditor(o){this._activeCodeEditor=o}getActiveCodeEditor(){return this._activeCodeEditor}doOpenEditor(o,_){if(!this.findModel(o,_.resource)){if(_.resource){const ue=_.resource.scheme;if(ue===Rt.ny.http||ue===Rt.ny.https)return(0,je.CE)(_.resource.toString()),o}return null}const se=_.options?_.options.selection:null;if(se)if(typeof se.endLineNumber=="number"&&typeof se.endColumn=="number")o.setSelection(se),o.revealRangeInCenter(se,1);else{const ue={lineNumber:se.startLineNumber,column:se.startColumn};o.setPosition(ue),o.revealPositionInCenter(ue,1)}return o}findModel(o,_){const N=o.getModel();return N&&N.uri.toString()!==_.toString()?null:N}};rn=st([Wt(0,en.fN),Wt(1,vn.Gy)],rn),(0,xe.v)(Zt.T,rn,0);var hn=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),Dn=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const On=(0,Dn.u1)("layoutService");var Bn=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},oi=function(Ie,o){return function(_,N){o(_,N,Ie)}};let $n=class{get mainContainer(){var o,_;return(_=(o=(0,hn.Fy)(this._codeEditorService.listCodeEditors()))===null||o===void 0?void 0:o.getContainerDomNode())!==null&&_!==void 0?_:We.G.document.body}get activeContainer(){var o,_;const N=(o=this._codeEditorService.getFocusedCodeEditor())!==null&&o!==void 0?o:this._codeEditorService.getActiveCodeEditor();return(_=N?.getContainerDomNode())!==null&&_!==void 0?_:this.mainContainer}get mainContainerDimension(){return je.tG(this.mainContainer)}get activeContainerDimension(){return je.tG(this.activeContainer)}get containers(){return(0,hn.Yc)(this._codeEditorService.listCodeEditors().map(o=>o.getContainerDomNode()))}getContainer(){return this.activeContainer}whenContainerStylesLoaded(){}focus(){var o;(o=this._codeEditorService.getFocusedCodeEditor())===null||o===void 0||o.focus()}constructor(o){this._codeEditorService=o,this.onDidLayoutMainContainer=Ft.Jh.None,this.onDidLayoutActiveContainer=Ft.Jh.None,this.onDidLayoutContainer=Ft.Jh.None,this.onDidChangeActiveContainer=Ft.Jh.None,this.onDidAddContainer=Ft.Jh.None,this.mainContainerOffset={top:0,quickPickTop:0},this.activeContainerOffset={top:0,quickPickTop:0}}};$n=Bn([oi(0,Zt.T)],$n);let ti=class extends $n{get mainContainer(){return this._container}constructor(o,_){super(_),this._container=o}};ti=Bn([oi(1,Zt.T)],ti),(0,xe.v)(On,$n,1);var Jn=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),Un=e("./node_modules/monaco-editor/esm/vs/base/common/severity.js"),Rn=e("./node_modules/monaco-editor/esm/vs/nls.js"),cn=e("./node_modules/monaco-editor/esm/vs/platform/dialogs/common/dialogs.js"),$e=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),yt=e("./node_modules/monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js"),jt=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Vt=function(Ie,o){return function(_,N){o(_,N,Ie)}};const Ut=!1;function sn(Ie){return Ie.scheme===Rt.ny.file?Ie.fsPath:Ie.path}let zt=0;class kt{constructor(o,_,N,se,ue,Ee,Oe){this.id=++zt,this.type=0,this.actual=o,this.label=o.label,this.confirmBeforeUndo=o.confirmBeforeUndo||!1,this.resourceLabel=_,this.strResource=N,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=se,this.groupOrder=ue,this.sourceId=Ee,this.sourceOrder=Oe,this.isValid=!0}setValid(o){this.isValid=o}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class an{constructor(o,_){this.resourceLabel=o,this.reason=_}}class dn{constructor(){this.elements=new Map}createMessage(){const o=[],_=[];for(const[,se]of this.elements)(se.reason===0?o:_).push(se.resourceLabel);const N=[];return o.length>0&&N.push(Rn.kg({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",o.join(", "))),_.length>0&&N.push(Rn.kg({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",_.join(", "))),N.join(` `)}get size(){return this.elements.size}has(o){return this.elements.has(o)}set(o,_){this.elements.set(o,_)}delete(o){return this.elements.delete(o)}}class bn{constructor(o,_,N,se,ue,Ee,Oe){this.id=++zt,this.type=1,this.actual=o,this.label=o.label,this.confirmBeforeUndo=o.confirmBeforeUndo||!1,this.resourceLabels=_,this.strResources=N,this.groupId=se,this.groupOrder=ue,this.sourceId=Ee,this.sourceOrder=Oe,this.removedResources=null,this.invalidatedResources=null}canSplit(){return typeof this.actual.split=="function"}removeResource(o,_,N){this.removedResources||(this.removedResources=new dn),this.removedResources.has(_)||this.removedResources.set(_,new an(o,N))}setValid(o,_,N){N?this.invalidatedResources&&(this.invalidatedResources.delete(_),this.invalidatedResources.size===0&&(this.invalidatedResources=null)):(this.invalidatedResources||(this.invalidatedResources=new dn),this.invalidatedResources.has(_)||this.invalidatedResources.set(_,new an(o,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class xn{constructor(o,_){this.resourceLabel=o,this.strResource=_,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(const o of this._past)o.type===1&&o.removeResource(this.resourceLabel,this.strResource,0);for(const o of this._future)o.type===1&&o.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){const o=[];o.push(`* ${this.strResource}:`);for(let _=0;_=0;_--)o.push(` * [REDO] ${this._future[_]}`);return o.join(` `)}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(o,_){o.type===1?o.setValid(this.resourceLabel,this.strResource,_):o.setValid(_)}setElementsValidFlag(o,_){for(const N of this._past)_(N.actual)&&this._setElementValidFlag(N,o);for(const N of this._future)_(N.actual)&&this._setElementValidFlag(N,o)}pushElement(o){for(const _ of this._future)_.type===1&&_.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(o),this.versionId++}createSnapshot(o){const _=[];for(let N=0,se=this._past.length;N=0;N--)_.push(this._future[N].id);return new yt.To(o,_)}restoreSnapshot(o){const _=o.elements.length;let N=!0,se=0,ue=-1;for(let Oe=0,ot=this._past.length;Oe=_||_t.id!==o.elements[se])&&(N=!1,ue=0),!N&&_t.type===1&&_t.removeResource(this.resourceLabel,this.strResource,0)}let Ee=-1;for(let Oe=this._future.length-1;Oe>=0;Oe--,se++){const ot=this._future[Oe];N&&(se>=_||ot.id!==o.elements[se])&&(N=!1,Ee=Oe),!N&&ot.type===1&&ot.removeResource(this.resourceLabel,this.strResource,0)}ue!==-1&&(this._past=this._past.slice(0,ue)),Ee!==-1&&(this._future=this._future.slice(Ee+1)),this.versionId++}getElements(){const o=[],_=[];for(const N of this._past)o.push(N.actual);for(const N of this._future)_.push(N.actual);return{past:o,future:_}}getClosestPastElement(){return this._past.length===0?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return this._future.length===0?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(o,_){for(let N=this._past.length-1;N>=0;N--)if(this._past[N]===o){_.has(this.strResource)?this._past[N]=_.get(this.strResource):this._past.splice(N,1);break}this.versionId++}splitFutureWorkspaceElement(o,_){for(let N=this._future.length-1;N>=0;N--)if(this._future[N]===o){_.has(this.strResource)?this._future[N]=_.get(this.strResource):this._future.splice(N,1);break}this.versionId++}moveBackward(o){this._past.pop(),this._future.push(o),this.versionId++}moveForward(o){this._future.pop(),this._past.push(o),this.versionId++}}class jn{constructor(o){this.editStacks=o,this._versionIds=[];for(let _=0,N=this.editStacks.length;__.sourceOrder)&&(_=Ee,N=se)}return[_,N]}canUndo(o){if(o instanceof yt.Ym){const[,N]=this._findClosestUndoElementWithSource(o.id);return!!N}const _=this.getUriComparisonKey(o);return this._editStacks.has(_)?this._editStacks.get(_).hasPastElements():!1}_onError(o,_){(0,Jn.dz)(o);for(const N of _.strResources)this.removeElements(N);this._notificationService.error(o)}_acquireLocks(o){for(const _ of o.editStacks)if(_.locked)throw new Error("Cannot acquire edit stack lock");for(const _ of o.editStacks)_.locked=!0;return()=>{for(const _ of o.editStacks)_.locked=!1}}_safeInvokeWithLocks(o,_,N,se,ue){const Ee=this._acquireLocks(N);let Oe;try{Oe=_()}catch(ot){return Ee(),se.dispose(),this._onError(ot,o)}return Oe?Oe.then(()=>(Ee(),se.dispose(),ue()),ot=>(Ee(),se.dispose(),this._onError(ot,o))):(Ee(),se.dispose(),ue())}async _invokeWorkspacePrepare(o){if(typeof o.actual.prepareUndoRedo>"u")return we.jG.None;const _=o.actual.prepareUndoRedo();return typeof _>"u"?we.jG.None:_}_invokeResourcePrepare(o,_){if(o.actual.type!==1||typeof o.actual.prepareUndoRedo>"u")return _(we.jG.None);const N=o.actual.prepareUndoRedo();return N?(0,we.Xm)(N)?_(N):N.then(se=>_(se)):_(we.jG.None)}_getAffectedEditStacks(o){const _=[];for(const N of o.strResources)_.push(this._editStacks.get(N)||pn);return new jn(_)}_tryToSplitAndUndo(o,_,N,se){if(_.canSplit())return this._splitPastWorkspaceElement(_,N),this._notificationService.warn(se),new Qn(this._undo(o,0,!0));for(const ue of _.strResources)this.removeElements(ue);return this._notificationService.warn(se),new Qn}_checkWorkspaceUndo(o,_,N,se){if(_.removedResources)return this._tryToSplitAndUndo(o,_,_.removedResources,Rn.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",_.label,_.removedResources.createMessage()));if(se&&_.invalidatedResources)return this._tryToSplitAndUndo(o,_,_.invalidatedResources,Rn.kg({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",_.label,_.invalidatedResources.createMessage()));const ue=[];for(const Oe of N.editStacks)Oe.getClosestPastElement()!==_&&ue.push(Oe.resourceLabel);if(ue.length>0)return this._tryToSplitAndUndo(o,_,null,Rn.kg({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",_.label,ue.join(", ")));const Ee=[];for(const Oe of N.editStacks)Oe.locked&&Ee.push(Oe.resourceLabel);return Ee.length>0?this._tryToSplitAndUndo(o,_,null,Rn.kg({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",_.label,Ee.join(", "))):N.isValid()?null:this._tryToSplitAndUndo(o,_,null,Rn.kg({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",_.label))}_workspaceUndo(o,_,N){const se=this._getAffectedEditStacks(_),ue=this._checkWorkspaceUndo(o,_,se,!1);return ue?ue.returnValue:this._confirmAndExecuteWorkspaceUndo(o,_,se,N)}_isPartOfUndoGroup(o){if(!o.groupId)return!1;for(const[,_]of this._editStacks){const N=_.getClosestPastElement();if(N){if(N===o){const se=_.getSecondClosestPastElement();if(se&&se.groupId===o.groupId)return!0}if(N.groupId===o.groupId)return!0}}return!1}async _confirmAndExecuteWorkspaceUndo(o,_,N,se){if(_.canSplit()&&!this._isPartOfUndoGroup(_)){let Oe;(function(Ot){Ot[Ot.All=0]="All",Ot[Ot.This=1]="This",Ot[Ot.Cancel=2]="Cancel"})(Oe||(Oe={}));const{result:ot}=await this._dialogService.prompt({type:Un.A.Info,message:Rn.kg("confirmWorkspace","Would you like to undo '{0}' across all files?",_.label),buttons:[{label:Rn.kg({key:"ok",comment:["{0} denotes a number that is > 1, && denotes a mnemonic"]},"&&Undo in {0} Files",N.editStacks.length),run:()=>Oe.All},{label:Rn.kg({key:"nok",comment:["&& denotes a mnemonic"]},"Undo this &&File"),run:()=>Oe.This}],cancelButton:{run:()=>Oe.Cancel}});if(ot===Oe.Cancel)return;if(ot===Oe.This)return this._splitPastWorkspaceElement(_,null),this._undo(o,0,!0);const _t=this._checkWorkspaceUndo(o,_,N,!1);if(_t)return _t.returnValue;se=!0}let ue;try{ue=await this._invokeWorkspacePrepare(_)}catch(Oe){return this._onError(Oe,_)}const Ee=this._checkWorkspaceUndo(o,_,N,!0);if(Ee)return ue.dispose(),Ee.returnValue;for(const Oe of N.editStacks)Oe.moveBackward(_);return this._safeInvokeWithLocks(_,()=>_.actual.undo(),N,ue,()=>this._continueUndoInGroup(_.groupId,se))}_resourceUndo(o,_,N){if(!_.isValid){o.flushAllElements();return}if(o.locked){const se=Rn.kg({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",_.label);this._notificationService.warn(se);return}return this._invokeResourcePrepare(_,se=>(o.moveBackward(_),this._safeInvokeWithLocks(_,()=>_.actual.undo(),new jn([o]),se,()=>this._continueUndoInGroup(_.groupId,N))))}_findClosestUndoElementInGroup(o){if(!o)return[null,null];let _=null,N=null;for(const[se,ue]of this._editStacks){const Ee=ue.getClosestPastElement();Ee&&Ee.groupId===o&&(!_||Ee.groupOrder>_.groupOrder)&&(_=Ee,N=se)}return[_,N]}_continueUndoInGroup(o,_){if(!o)return;const[,N]=this._findClosestUndoElementInGroup(o);if(N)return this._undo(N,0,_)}undo(o){if(o instanceof yt.Ym){const[,_]=this._findClosestUndoElementWithSource(o.id);return _?this._undo(_,o.id,!1):void 0}return typeof o=="string"?this._undo(o,0,!1):this._undo(this.getUriComparisonKey(o),0,!1)}_undo(o,_=0,N){if(!this._editStacks.has(o))return;const se=this._editStacks.get(o),ue=se.getClosestPastElement();if(!ue)return;if(ue.groupId){const[Oe,ot]=this._findClosestUndoElementInGroup(ue.groupId);if(ue!==Oe&&ot)return this._undo(ot,_,N)}if((ue.sourceId!==_||ue.confirmBeforeUndo)&&!N)return this._confirmAndContinueUndo(o,_,ue);try{return ue.type===1?this._workspaceUndo(o,ue,N):this._resourceUndo(se,ue,N)}finally{Ut&&this._print("undo")}}async _confirmAndContinueUndo(o,_,N){if((await this._dialogService.confirm({message:Rn.kg("confirmDifferentSource","Would you like to undo '{0}'?",N.label),primaryButton:Rn.kg({key:"confirmDifferentSource.yes",comment:["&& denotes a mnemonic"]},"&&Yes"),cancelButton:Rn.kg("confirmDifferentSource.no","No")})).confirmed)return this._undo(o,_,!0)}_findClosestRedoElementWithSource(o){if(!o)return[null,null];let _=null,N=null;for(const[se,ue]of this._editStacks){const Ee=ue.getClosestFutureElement();Ee&&Ee.sourceId===o&&(!_||Ee.sourceOrder<_.sourceOrder)&&(_=Ee,N=se)}return[_,N]}canRedo(o){if(o instanceof yt.Ym){const[,N]=this._findClosestRedoElementWithSource(o.id);return!!N}const _=this.getUriComparisonKey(o);return this._editStacks.has(_)?this._editStacks.get(_).hasFutureElements():!1}_tryToSplitAndRedo(o,_,N,se){if(_.canSplit())return this._splitFutureWorkspaceElement(_,N),this._notificationService.warn(se),new Qn(this._redo(o));for(const ue of _.strResources)this.removeElements(ue);return this._notificationService.warn(se),new Qn}_checkWorkspaceRedo(o,_,N,se){if(_.removedResources)return this._tryToSplitAndRedo(o,_,_.removedResources,Rn.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",_.label,_.removedResources.createMessage()));if(se&&_.invalidatedResources)return this._tryToSplitAndRedo(o,_,_.invalidatedResources,Rn.kg({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",_.label,_.invalidatedResources.createMessage()));const ue=[];for(const Oe of N.editStacks)Oe.getClosestFutureElement()!==_&&ue.push(Oe.resourceLabel);if(ue.length>0)return this._tryToSplitAndRedo(o,_,null,Rn.kg({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",_.label,ue.join(", ")));const Ee=[];for(const Oe of N.editStacks)Oe.locked&&Ee.push(Oe.resourceLabel);return Ee.length>0?this._tryToSplitAndRedo(o,_,null,Rn.kg({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",_.label,Ee.join(", "))):N.isValid()?null:this._tryToSplitAndRedo(o,_,null,Rn.kg({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",_.label))}_workspaceRedo(o,_){const N=this._getAffectedEditStacks(_),se=this._checkWorkspaceRedo(o,_,N,!1);return se?se.returnValue:this._executeWorkspaceRedo(o,_,N)}async _executeWorkspaceRedo(o,_,N){let se;try{se=await this._invokeWorkspacePrepare(_)}catch(Ee){return this._onError(Ee,_)}const ue=this._checkWorkspaceRedo(o,_,N,!0);if(ue)return se.dispose(),ue.returnValue;for(const Ee of N.editStacks)Ee.moveForward(_);return this._safeInvokeWithLocks(_,()=>_.actual.redo(),N,se,()=>this._continueRedoInGroup(_.groupId))}_resourceRedo(o,_){if(!_.isValid){o.flushAllElements();return}if(o.locked){const N=Rn.kg({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",_.label);this._notificationService.warn(N);return}return this._invokeResourcePrepare(_,N=>(o.moveForward(_),this._safeInvokeWithLocks(_,()=>_.actual.redo(),new jn([o]),N,()=>this._continueRedoInGroup(_.groupId))))}_findClosestRedoElementInGroup(o){if(!o)return[null,null];let _=null,N=null;for(const[se,ue]of this._editStacks){const Ee=ue.getClosestFutureElement();Ee&&Ee.groupId===o&&(!_||Ee.groupOrder<_.groupOrder)&&(_=Ee,N=se)}return[_,N]}_continueRedoInGroup(o){if(!o)return;const[,_]=this._findClosestRedoElementInGroup(o);if(_)return this._redo(_)}redo(o){if(o instanceof yt.Ym){const[,_]=this._findClosestRedoElementWithSource(o.id);return _?this._redo(_):void 0}return typeof o=="string"?this._redo(o):this._redo(this.getUriComparisonKey(o))}_redo(o){if(!this._editStacks.has(o))return;const _=this._editStacks.get(o),N=_.getClosestFutureElement();if(N){if(N.groupId){const[se,ue]=this._findClosestRedoElementInGroup(N.groupId);if(N!==se&&ue)return this._redo(ue)}try{return N.type===1?this._workspaceRedo(o,N):this._resourceRedo(_,N)}finally{Ut&&this._print("redo")}}}};Wn=jt([Vt(0,cn.X),Vt(1,$e.Ot)],Wn);class Qn{constructor(o){this.returnValue=o}}(0,xe.v)(yt.$D,Wn,1);var ui=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"),vi=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),qn=e("./node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js"),yn=e("./node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js"),ht=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},R=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Q=class extends we.jG{constructor(o,_,N){super(),this._themeService=o,this._logService=_,this._languageService=N,this._caches=new WeakMap,this._register(this._themeService.onDidColorThemeChange(()=>{this._caches=new WeakMap}))}getStyling(o){return this._caches.has(o)||this._caches.set(o,new qn.i(o.getLegend(),this._themeService,this._languageService,this._logService)),this._caches.get(o)}};Q=ht([R(0,vn.Gy),R(1,vi.rr),R(2,vt.L)],Q),(0,xe.v)(yn.F,Q,1);var ce=e("./node_modules/monaco-editor/esm/vs/editor/common/languageSelector.js");function Re(Ie){return typeof Ie=="string"?!1:Array.isArray(Ie)?Ie.every(Re):!!Ie.exclusive}class Fe{constructor(o,_,N,se){this.uri=o,this.languageId=_,this.notebookUri=N,this.notebookType=se}equals(o){var _,N;return this.notebookType===o.notebookType&&this.languageId===o.languageId&&this.uri.toString()===o.uri.toString()&&((_=this.notebookUri)===null||_===void 0?void 0:_.toString())===((N=o.notebookUri)===null||N===void 0?void 0:N.toString())}}class Ze{constructor(o){this._notebookInfoResolver=o,this._clock=0,this._entries=[],this._onDidChange=new Ft.vl,this.onDidChange=this._onDidChange.event}register(o,_){let N={selector:o,provider:_,_score:-1,_time:this._clock++};return this._entries.push(N),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),(0,we.s)(()=>{if(N){const se=this._entries.indexOf(N);se>=0&&(this._entries.splice(se,1),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),N=void 0)}})}has(o){return this.all(o).length>0}all(o){if(!o)return[];this._updateScores(o);const _=[];for(const N of this._entries)N._score>0&&_.push(N.provider);return _}ordered(o){const _=[];return this._orderedForEach(o,N=>_.push(N.provider)),_}orderedGroups(o){const _=[];let N,se;return this._orderedForEach(o,ue=>{N&&se===ue._score?N.push(ue.provider):(se=ue._score,N=[ue.provider],_.push(N))}),_}_orderedForEach(o,_){this._updateScores(o);for(const N of this._entries)N._score>0&&_(N)}_updateScores(o){var _,N;const se=(_=this._notebookInfoResolver)===null||_===void 0?void 0:_.call(this,o.uri),ue=se?new Fe(o.uri,o.getLanguageId(),se.uri,se.type):new Fe(o.uri,o.getLanguageId(),void 0,void 0);if(!(!((N=this._lastCandidate)===null||N===void 0)&&N.equals(ue))){this._lastCandidate=ue;for(const Ee of this._entries)if(Ee._score=(0,ce.f)(Ee.selector,ue.uri,ue.languageId,(0,An.vd)(o),ue.notebookUri,ue.notebookType),Re(Ee.selector)&&Ee._score>0){for(const Oe of this._entries)Oe._score=0;Ee._score=1e3;break}this._entries.sort(Ze._compareByScoreAndTime)}}static _compareByScoreAndTime(o,_){return o._score<_._score?1:o._score>_._score?-1:wt(o.selector)&&!wt(_.selector)?1:!wt(o.selector)&&wt(_.selector)?-1:o._time<_._time?1:o._time>_._time?-1:0}}function wt(Ie){return typeof Ie=="string"?!1:Array.isArray(Ie)?Ie.some(wt):!!Ie.isBuiltin}var Lt=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js");class Qt{constructor(){this.referenceProvider=new Ze(this._score.bind(this)),this.renameProvider=new Ze(this._score.bind(this)),this.newSymbolNamesProvider=new Ze(this._score.bind(this)),this.codeActionProvider=new Ze(this._score.bind(this)),this.definitionProvider=new Ze(this._score.bind(this)),this.typeDefinitionProvider=new Ze(this._score.bind(this)),this.declarationProvider=new Ze(this._score.bind(this)),this.implementationProvider=new Ze(this._score.bind(this)),this.documentSymbolProvider=new Ze(this._score.bind(this)),this.inlayHintsProvider=new Ze(this._score.bind(this)),this.colorProvider=new Ze(this._score.bind(this)),this.codeLensProvider=new Ze(this._score.bind(this)),this.documentFormattingEditProvider=new Ze(this._score.bind(this)),this.documentRangeFormattingEditProvider=new Ze(this._score.bind(this)),this.onTypeFormattingEditProvider=new Ze(this._score.bind(this)),this.signatureHelpProvider=new Ze(this._score.bind(this)),this.hoverProvider=new Ze(this._score.bind(this)),this.documentHighlightProvider=new Ze(this._score.bind(this)),this.multiDocumentHighlightProvider=new Ze(this._score.bind(this)),this.selectionRangeProvider=new Ze(this._score.bind(this)),this.foldingRangeProvider=new Ze(this._score.bind(this)),this.linkProvider=new Ze(this._score.bind(this)),this.inlineCompletionsProvider=new Ze(this._score.bind(this)),this.inlineEditProvider=new Ze(this._score.bind(this)),this.completionProvider=new Ze(this._score.bind(this)),this.linkedEditingRangeProvider=new Ze(this._score.bind(this)),this.documentRangeSemanticTokensProvider=new Ze(this._score.bind(this)),this.documentSemanticTokensProvider=new Ze(this._score.bind(this)),this.documentOnDropEditProvider=new Ze(this._score.bind(this)),this.documentPasteEditProvider=new Ze(this._score.bind(this))}_score(o){var _;return(_=this._notebookTypeResolver)===null||_===void 0?void 0:_.call(this,o)}}(0,xe.v)(Lt.u,Qt,1);var Xt=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),$t=e("./node_modules/monaco-editor/esm/vs/platform/hover/browser/hover.js"),on=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),un=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),Cn=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverWidget.js"),kn=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/widget.js"),Pn=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),zn=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js"),ni=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),hi=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),ji=e("./node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js"),Yi=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Ei=function(Ie,o){return function(_,N){o(_,N,Ie)}};const Ri=je.$;let ao=class extends kn.x{get _targetWindow(){return je.zk(this._target.targetElements[0])}get _targetDocumentElement(){return je.zk(this._target.targetElements[0]).document.documentElement}get isDisposed(){return this._isDisposed}get isMouseIn(){return this._lockMouseTracker.isMouseIn}get domNode(){return this._hover.containerDomNode}get onDispose(){return this._onDispose.event}get onRequestLayout(){return this._onRequestLayout.event}get anchor(){return this._hoverPosition===2?0:1}get x(){return this._x}get y(){return this._y}get isLocked(){return this._isLocked}set isLocked(o){this._isLocked!==o&&(this._isLocked=o,this._hoverContainer.classList.toggle("locked",this._isLocked))}constructor(o,_,N,se,ue,Ee){var Oe,ot,_t,Ot,nn,fn,wn,Xn;super(),this._keybindingService=_,this._configurationService=N,this._openerService=se,this._instantiationService=ue,this._accessibilityService=Ee,this._messageListeners=new we.Cm,this._isDisposed=!1,this._forcePosition=!1,this._x=0,this._y=0,this._isLocked=!1,this._enableFocusTraps=!1,this._addedFocusTrap=!1,this._onDispose=this._register(new Ft.vl),this._onRequestLayout=this._register(new Ft.vl),this._linkHandler=o.linkHandler||(Li=>(0,zn.i)(this._openerService,Li,(0,ni.VS)(o.content)?o.content.isTrusted:void 0)),this._target="targetElements"in o.target?o.target:new Lo(o.target),this._hoverPointer=!((Oe=o.appearance)===null||Oe===void 0)&&Oe.showPointer?Ri("div.workbench-hover-pointer"):void 0,this._hover=this._register(new Cn.N4),this._hover.containerDomNode.classList.add("workbench-hover","fadeIn"),!((ot=o.appearance)===null||ot===void 0)&&ot.compact&&this._hover.containerDomNode.classList.add("workbench-hover","compact"),!((_t=o.appearance)===null||_t===void 0)&&_t.skipFadeInAnimation&&this._hover.containerDomNode.classList.add("skip-fade-in"),o.additionalClasses&&this._hover.containerDomNode.classList.add(...o.additionalClasses),!((Ot=o.position)===null||Ot===void 0)&&Ot.forcePosition&&(this._forcePosition=!0),o.trapFocus&&(this._enableFocusTraps=!0),this._hoverPosition=(fn=(nn=o.position)===null||nn===void 0?void 0:nn.hoverPosition)!==null&&fn!==void 0?fn:3,this.onmousedown(this._hover.containerDomNode,Li=>Li.stopPropagation()),this.onkeydown(this._hover.containerDomNode,Li=>{Li.equals(9)&&this.dispose()}),this._register(je.ko(this._targetWindow,"blur",()=>this.dispose()));const bi=Ri("div.hover-row.markdown-hover"),ki=Ri("div.hover-contents");if(typeof o.content=="string")ki.textContent=o.content,ki.style.whiteSpace="pre-wrap";else if(o.content instanceof HTMLElement)ki.appendChild(o.content),ki.classList.add("html-hover-contents");else{const Li=o.content,to=this._instantiationService.createInstance(zn.T,{codeBlockFontFamily:this._configurationService.getValue("editor").fontFamily||de.jU.fontFamily}),{element:Ao}=to.render(Li,{actionHandler:{callback:ro=>this._linkHandler(ro),disposables:this._messageListeners},asyncRenderCallback:()=>{ki.classList.add("code-hover-contents"),this.layout(),this._onRequestLayout.fire()}});ki.appendChild(Ao)}if(bi.appendChild(ki),this._hover.contentsDomNode.appendChild(bi),o.actions&&o.actions.length>0){const Li=Ri("div.hover-row.status-bar"),to=Ri("div.actions");o.actions.forEach(Ao=>{const ro=this._keybindingService.lookupKeybinding(Ao.commandId),Ts=ro?ro.getLabel():null;Cn.jQ.render(to,{label:Ao.label,commandId:Ao.commandId,run:Ui=>{Ao.run(Ui),this.dispose()},iconClass:Ao.iconClass},Ts)}),Li.appendChild(to),this._hover.containerDomNode.appendChild(Li)}this._hoverContainer=Ri("div.workbench-hover-container"),this._hoverPointer&&this._hoverContainer.appendChild(this._hoverPointer),this._hoverContainer.appendChild(this._hover.containerDomNode);let Fi;if(o.actions&&o.actions.length>0?Fi=!1:((wn=o.persistence)===null||wn===void 0?void 0:wn.hideOnHover)===void 0?Fi=typeof o.content=="string"||(0,ni.VS)(o.content)&&!o.content.value.includes("](")&&!o.content.value.includes(""):Fi=o.persistence.hideOnHover,Fi&&(!((Xn=o.appearance)===null||Xn===void 0)&&Xn.showHoverHint)){const Li=Ri("div.hover-row.status-bar"),to=Ri("div.info");to.textContent=(0,Rn.kg)("hoverhint","Hold {0} key to mouse over",hi.zx?"Option":"Alt"),Li.appendChild(to),this._hover.containerDomNode.appendChild(Li)}const Hi=[...this._target.targetElements];Fi||Hi.push(this._hoverContainer);const Gi=this._register(new no(Hi));if(this._register(Gi.onMouseOut(()=>{this._isLocked||this.dispose()})),Fi){const Li=[...this._target.targetElements,this._hoverContainer];this._lockMouseTracker=this._register(new no(Li)),this._register(this._lockMouseTracker.onMouseOut(()=>{this._isLocked||this.dispose()}))}else this._lockMouseTracker=Gi}addFocusTrap(){if(!this._enableFocusTraps||this._addedFocusTrap)return;this._addedFocusTrap=!0;const o=this._hover.containerDomNode,_=this.findLastFocusableChild(this._hover.containerDomNode);if(_){const N=je.Hs(this._hoverContainer,Ri("div")),se=je.BC(this._hoverContainer,Ri("div"));N.tabIndex=0,se.tabIndex=0,this._register(je.ko(se,"focus",ue=>{o.focus(),ue.preventDefault()})),this._register(je.ko(N,"focus",ue=>{_.focus(),ue.preventDefault()}))}}findLastFocusableChild(o){if(o.hasChildNodes())for(let _=0;_=0)return ue}const se=this.findLastFocusableChild(N);if(se)return se}}render(o){var _;o.appendChild(this._hoverContainer);const se=this._hoverContainer.contains(this._hoverContainer.ownerDocument.activeElement)&&(0,Cn.vr)(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(_=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||_===void 0?void 0:_.getAriaLabel());se&&(0,ct.h5)(se),this.layout(),this.addFocusTrap()}layout(){this._hover.containerDomNode.classList.remove("right-aligned"),this._hover.contentsDomNode.style.maxHeight="";const o=Ot=>{const nn=je.mU(Ot),fn=Ot.getBoundingClientRect();return{top:fn.top*nn,bottom:fn.bottom*nn,right:fn.right*nn,left:fn.left*nn}},_=this._target.targetElements.map(Ot=>o(Ot)),{top:N,right:se,bottom:ue,left:Ee}=_[0],Oe=se-Ee,ot=ue-N,_t={top:N,right:se,bottom:ue,left:Ee,width:Oe,height:ot,center:{x:Ee+Oe/2,y:N+ot/2}};if(this.adjustHorizontalHoverPosition(_t),this.adjustVerticalHoverPosition(_t),this.adjustHoverMaxHeight(_t),this._hoverContainer.style.padding="",this._hoverContainer.style.margin="",this._hoverPointer){switch(this._hoverPosition){case 1:_t.left+=3,_t.right+=3,this._hoverContainer.style.paddingLeft="3px",this._hoverContainer.style.marginLeft="-3px";break;case 0:_t.left-=3,_t.right-=3,this._hoverContainer.style.paddingRight="3px",this._hoverContainer.style.marginRight="-3px";break;case 2:_t.top+=3,_t.bottom+=3,this._hoverContainer.style.paddingTop="3px",this._hoverContainer.style.marginTop="-3px";break;case 3:_t.top-=3,_t.bottom-=3,this._hoverContainer.style.paddingBottom="3px",this._hoverContainer.style.marginBottom="-3px";break}_t.center.x=_t.left+Oe/2,_t.center.y=_t.top+ot/2}this.computeXCordinate(_t),this.computeYCordinate(_t),this._hoverPointer&&(this._hoverPointer.classList.remove("top"),this._hoverPointer.classList.remove("left"),this._hoverPointer.classList.remove("right"),this._hoverPointer.classList.remove("bottom"),this.setHoverPointerPosition(_t)),this._hover.onContentsChanged()}computeXCordinate(o){const _=this._hover.containerDomNode.clientWidth+2;this._target.x!==void 0?this._x=this._target.x:this._hoverPosition===1?this._x=o.right:this._hoverPosition===0?this._x=o.left-_:(this._hoverPointer?this._x=o.center.x-this._hover.containerDomNode.clientWidth/2:this._x=o.left,this._x+_>=this._targetDocumentElement.clientWidth&&(this._hover.containerDomNode.classList.add("right-aligned"),this._x=Math.max(this._targetDocumentElement.clientWidth-_-2,this._targetDocumentElement.clientLeft))),this._xthis._targetWindow.innerHeight&&(this._y=o.bottom)}adjustHorizontalHoverPosition(o){if(this._target.x!==void 0)return;const _=this._hoverPointer?3:0;if(this._forcePosition){const N=_+2;this._hoverPosition===1?this._hover.containerDomNode.style.maxWidth=`${this._targetDocumentElement.clientWidth-o.right-N}px`:this._hoverPosition===0&&(this._hover.containerDomNode.style.maxWidth=`${o.left-N}px`);return}this._hoverPosition===1?this._targetDocumentElement.clientWidth-o.right=this._hover.containerDomNode.clientWidth+_?this._hoverPosition=0:this._hoverPosition=2):this._hoverPosition===0&&(o.left=this._hover.containerDomNode.clientWidth+_?this._hoverPosition=1:this._hoverPosition=2),o.left-this._hover.containerDomNode.clientWidth-_<=this._targetDocumentElement.clientLeft&&(this._hoverPosition=1))}adjustVerticalHoverPosition(o){if(this._target.y!==void 0||this._forcePosition)return;const _=this._hoverPointer?3:0;this._hoverPosition===3?o.top-this._hover.containerDomNode.clientHeight-_<0&&(this._hoverPosition=2):this._hoverPosition===2&&o.bottom+this._hover.containerDomNode.clientHeight+_>this._targetWindow.innerHeight&&(this._hoverPosition=3)}adjustHoverMaxHeight(o){let _=this._targetWindow.innerHeight/2;if(this._forcePosition){const N=(this._hoverPointer?3:0)+2;this._hoverPosition===3?_=Math.min(_,o.top-N):this._hoverPosition===2&&(_=Math.min(_,this._targetWindow.innerHeight-o.bottom-N))}if(this._hover.containerDomNode.style.maxHeight=`${_}px`,this._hover.contentsDomNode.clientHeighto.height?this._hoverPointer.style.top=`${o.center.y-(this._y-_)-3}px`:this._hoverPointer.style.top=`${Math.round(_/2)-3}px`;break}case 3:case 2:{this._hoverPointer.classList.add(this._hoverPosition===3?"bottom":"top");const _=this._hover.containerDomNode.clientWidth;let N=Math.round(_/2)-3;const se=this._x+N;(seo.right)&&(N=o.center.x-this._x-3),this._hoverPointer.style.left=`${N}px`;break}}}focus(){this._hover.containerDomNode.focus()}dispose(){this._isDisposed||(this._onDispose.fire(),this._hoverContainer.remove(),this._messageListeners.dispose(),this._target.dispose(),super.dispose()),this._isDisposed=!0}};ao=Yi([Ei(1,un.b),Ei(2,mt.pG),Ei(3,Pn.C),Ei(4,Dn._Y),Ei(5,ji.j)],ao);class no extends kn.x{get onMouseOut(){return this._onMouseOut.event}get isMouseIn(){return this._isMouseIn}constructor(o){super(),this._elements=o,this._isMouseIn=!0,this._onMouseOut=this._register(new Ft.vl),this._elements.forEach(_=>this.onmouseover(_,()=>this._onTargetMouseOver(_))),this._elements.forEach(_=>this.onmouseleave(_,()=>this._onTargetMouseLeave(_)))}_onTargetMouseOver(o){this._isMouseIn=!0,this._clearEvaluateMouseStateTimeout(o)}_onTargetMouseLeave(o){this._isMouseIn=!1,this._evaluateMouseState(o)}_evaluateMouseState(o){this._clearEvaluateMouseStateTimeout(o),this._mouseTimeout=je.zk(o).setTimeout(()=>this._fireIfMouseOutside(),0)}_clearEvaluateMouseStateTimeout(o){this._mouseTimeout&&(je.zk(o).clearTimeout(this._mouseTimeout),this._mouseTimeout=void 0)}_fireIfMouseOutside(){this._isMouseIn||this._onMouseOut.fire()}}class Lo{constructor(o){this._element=o,this.targetElements=[this._element]}dispose(){}}var Xi=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),To=e("./node_modules/monaco-editor/esm/vs/base/browser/canIUse.js"),co=e("./node_modules/monaco-editor/esm/vs/base/common/range.js");function yo(Ie){const o=Ie;return!!o&&typeof o.x=="number"&&typeof o.y=="number"}var Vi;(function(Ie){Ie[Ie.AVOID=0]="AVOID",Ie[Ie.ALIGN=1]="ALIGN"})(Vi||(Vi={}));function uo(Ie,o,_){const N=_.mode===Vi.ALIGN?_.offset:_.offset+_.size,se=_.mode===Vi.ALIGN?_.offset+_.size:_.offset;return _.position===0?o<=Ie-N?N:o<=se?se-o:Math.max(Ie-o,0):o<=se?se-o:o<=Ie-N?N:0}class So extends we.jG{constructor(o,_){super(),this.container=null,this.useFixedPosition=!1,this.useShadowDOM=!1,this.delegate=null,this.toDisposeOnClean=we.jG.None,this.toDisposeOnSetContainer=we.jG.None,this.shadowRoot=null,this.shadowRootHostElement=null,this.view=je.$(".context-view"),je.jD(this.view),this.setContainer(o,_),this._register((0,we.s)(()=>this.setContainer(null,1)))}setContainer(o,_){var N;this.useFixedPosition=_!==1;const se=this.useShadowDOM;if(this.useShadowDOM=_===3,!(o===this.container&&se===this.useShadowDOM)&&(this.container&&(this.toDisposeOnSetContainer.dispose(),this.shadowRoot?(this.shadowRoot.removeChild(this.view),this.shadowRoot=null,(N=this.shadowRootHostElement)===null||N===void 0||N.remove(),this.shadowRootHostElement=null):this.container.removeChild(this.view),this.container=null),o)){if(this.container=o,this.useShadowDOM){this.shadowRootHostElement=je.$(".shadow-root-host"),this.container.appendChild(this.shadowRootHostElement),this.shadowRoot=this.shadowRootHostElement.attachShadow({mode:"open"});const Ee=document.createElement("style");Ee.textContent=Us,this.shadowRoot.appendChild(Ee),this.shadowRoot.appendChild(this.view),this.shadowRoot.appendChild(je.$("slot"))}else this.container.appendChild(this.view);const ue=new we.Cm;So.BUBBLE_UP_EVENTS.forEach(Ee=>{ue.add(je.b2(this.container,Ee,Oe=>{this.onDOMEvent(Oe,!1)}))}),So.BUBBLE_DOWN_EVENTS.forEach(Ee=>{ue.add(je.b2(this.container,Ee,Oe=>{this.onDOMEvent(Oe,!0)},!0))}),this.toDisposeOnSetContainer=ue}}show(o){var _,N,se;this.isVisible()&&this.hide(),je.w_(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",this.view.style.zIndex=`${2575+((_=o.layer)!==null&&_!==void 0?_:0)}`,this.view.style.position=this.useFixedPosition?"fixed":"absolute",je.WU(this.view),this.toDisposeOnClean=o.render(this.view)||we.jG.None,this.delegate=o,this.doLayout(),(se=(N=this.delegate).focus)===null||se===void 0||se.call(N)}getViewElement(){return this.view}layout(){var o,_;if(this.isVisible()){if(this.delegate.canRelayout===!1&&!(hi.un&&To.e.pointerEvents)){this.hide();return}(_=(o=this.delegate)===null||o===void 0?void 0:o.layout)===null||_===void 0||_.call(o),this.doLayout()}}doLayout(){if(!this.isVisible())return;const o=this.delegate.getAnchor();let _;if(o instanceof HTMLElement){const fn=je.BK(o),wn=je.mU(o);_={top:fn.top*wn,left:fn.left*wn,width:fn.width*wn,height:fn.height*wn}}else yo(o)?_={top:o.y,left:o.x,width:o.width||1,height:o.height||2}:_={top:o.posy,left:o.posx,width:2,height:2};const N=je.Tr(this.view),se=je.OK(this.view),ue=this.delegate.anchorPosition||0,Ee=this.delegate.anchorAlignment||0,Oe=this.delegate.anchorAxisAlignment||0;let ot,_t;const Ot=je.fz();if(Oe===0){const fn={offset:_.top-Ot.pageYOffset,size:_.height,position:ue===0?0:1},wn={offset:_.left,size:_.width,position:Ee===0?0:1,mode:Vi.ALIGN};ot=uo(Ot.innerHeight,se,fn)+Ot.pageYOffset,co.Q.intersects({start:ot,end:ot+se},{start:fn.offset,end:fn.offset+fn.size})&&(wn.mode=Vi.AVOID),_t=uo(Ot.innerWidth,N,wn)}else{const fn={offset:_.left,size:_.width,position:Ee===0?0:1},wn={offset:_.top,size:_.height,position:ue===0?0:1,mode:Vi.ALIGN};_t=uo(Ot.innerWidth,N,fn),co.Q.intersects({start:_t,end:_t+N},{start:fn.offset,end:fn.offset+fn.size})&&(wn.mode=Vi.AVOID),ot=uo(Ot.innerHeight,se,wn)+Ot.pageYOffset}this.view.classList.remove("top","bottom","left","right"),this.view.classList.add(ue===0?"bottom":"top"),this.view.classList.add(Ee===0?"left":"right"),this.view.classList.toggle("fixed",this.useFixedPosition);const nn=je.BK(this.container);this.view.style.top=`${ot-(this.useFixedPosition?je.BK(this.view).top:nn.top)}px`,this.view.style.left=`${_t-(this.useFixedPosition?je.BK(this.view).left:nn.left)}px`,this.view.style.width="initial"}hide(o){const _=this.delegate;this.delegate=null,_?.onHide&&_.onHide(o),this.toDisposeOnClean.dispose(),je.jD(this.view)}isVisible(){return!!this.delegate}onDOMEvent(o,_){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(o,je.zk(o).document.activeElement):_&&!je.QX(o.target,this.container)&&this.hide())}dispose(){this.hide(),super.dispose()}}So.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],So.BUBBLE_DOWN_EVENTS=["click"];const Us=` :host { all: initial; /* 1st rule so subsequent properties are reset. */ } .codicon[class*='codicon-'] { font: normal normal normal 16px/1 codicon; display: inline-block; text-decoration: none; text-rendering: auto; text-align: center; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; user-select: none; -webkit-user-select: none; -ms-user-select: none; } :host { font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif; } :host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; } :host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; } :host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; } :host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; } :host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; } :host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; } :host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; } :host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; } :host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; } :host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; } :host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; } :host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; } :host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; } :host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; } :host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; } `;var zs=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Go=function(Ie,o){return function(_,N){o(_,N,Ie)}};let bo=class extends we.jG{constructor(o){super(),this.layoutService=o,this.currentViewDisposable=this._register(new we.HE),this.contextView=this._register(new So(this.layoutService.mainContainer,1)),this.layout(),this._register(o.onDidLayoutContainer(()=>this.layout()))}showContextView(o,_,N){let se;_?_===this.layoutService.getContainer((0,je.zk)(_))?se=1:N?se=3:se=2:se=1,this.contextView.setContainer(_??this.layoutService.activeContainer,se),this.contextView.show(o);const ue=(0,we.s)(()=>{this.currentViewDisposable===ue&&this.hideContextView()});return this.currentViewDisposable.value=ue,ue}layout(){this.contextView.layout()}hideContextView(o){this.contextView.hide(o)}};bo=zs([Go(0,On)],bo);class wo extends bo{getContextViewElement(){return this.contextView.getViewElement()}}var Rs=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},$o=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Os=class extends we.jG{constructor(o,_,N,se,ue){super(),this._instantiationService=o,this._keybindingService=N,this._layoutService=se,this._accessibilityService=ue,_.onDidShowContextMenu(()=>this.hideHover()),this._contextViewHandler=this._register(new bo(this._layoutService))}showHover(o,_,N){var se,ue,Ee,Oe;if(Ks(this._currentHoverOptions)===Ks(o)||this._currentHover&&(!((ue=(se=this._currentHoverOptions)===null||se===void 0?void 0:se.persistence)===null||ue===void 0)&&ue.sticky))return;this._currentHoverOptions=o,this._lastHoverOptions=o;const ot=o.trapFocus||this._accessibilityService.isScreenReaderOptimized(),_t=(0,je.bq)();N||(ot&&_t?this._lastFocusedElementBeforeOpen=_t:this._lastFocusedElementBeforeOpen=void 0);const Ot=new we.Cm,nn=this._instantiationService.createInstance(ao,o);if(!((Ee=o.persistence)===null||Ee===void 0)&&Ee.sticky&&(nn.isLocked=!0),nn.onDispose(()=>{var fn,wn;((fn=this._currentHover)===null||fn===void 0?void 0:fn.domNode)&&(0,je.nR)(this._currentHover.domNode)&&((wn=this._lastFocusedElementBeforeOpen)===null||wn===void 0||wn.focus()),this._currentHoverOptions===o&&(this._currentHoverOptions=void 0),Ot.dispose()}),!o.container){const fn=o.target instanceof HTMLElement?o.target:o.target.targetElements[0];o.container=this._layoutService.getContainer((0,je.zk)(fn))}if(this._contextViewHandler.showContextView(new ur(nn,_),o.container),nn.onRequestLayout(()=>this._contextViewHandler.layout()),!((Oe=o.persistence)===null||Oe===void 0)&&Oe.sticky)Ot.add((0,je.ko)((0,je.zk)(o.container).document,je.Bx.MOUSE_DOWN,fn=>{(0,je.QX)(fn.target,nn.domNode)||this.doHideHover()}));else{if("targetElements"in o.target)for(const wn of o.target.targetElements)Ot.add((0,je.ko)(wn,je.Bx.CLICK,()=>this.hideHover()));else Ot.add((0,je.ko)(o.target,je.Bx.CLICK,()=>this.hideHover()));const fn=(0,je.bq)();if(fn){const wn=(0,je.zk)(fn).document;Ot.add((0,je.ko)(fn,je.Bx.KEY_DOWN,Xn=>{var bi;return this._keyDown(Xn,nn,!!(!((bi=o.persistence)===null||bi===void 0)&&bi.hideOnKeyDown))})),Ot.add((0,je.ko)(wn,je.Bx.KEY_DOWN,Xn=>{var bi;return this._keyDown(Xn,nn,!!(!((bi=o.persistence)===null||bi===void 0)&&bi.hideOnKeyDown))})),Ot.add((0,je.ko)(fn,je.Bx.KEY_UP,Xn=>this._keyUp(Xn,nn))),Ot.add((0,je.ko)(wn,je.Bx.KEY_UP,Xn=>this._keyUp(Xn,nn)))}}if("IntersectionObserver"in We.G){const fn=new IntersectionObserver(Xn=>this._intersectionChange(Xn,nn),{threshold:0}),wn="targetElements"in o.target?o.target.targetElements[0]:o.target;fn.observe(wn),Ot.add((0,we.s)(()=>fn.disconnect()))}return this._currentHover=nn,nn}hideHover(){var o;!((o=this._currentHover)===null||o===void 0)&&o.isLocked||!this._currentHoverOptions||this.doHideHover()}doHideHover(){this._currentHover=void 0,this._currentHoverOptions=void 0,this._contextViewHandler.hideContextView()}_intersectionChange(o,_){o[o.length-1].isIntersecting||_.dispose()}_keyDown(o,_,N){var se,ue;if(o.key==="Alt"){_.isLocked=!0;return}const Ee=new Xi.Z(o);this._keybindingService.resolveKeyboardEvent(Ee).getSingleModifierDispatchChords().some(ot=>!!ot)||this._keybindingService.softDispatch(Ee,Ee.target).kind!==0||N&&(!(!((se=this._currentHoverOptions)===null||se===void 0)&&se.trapFocus)||o.key!=="Tab")&&(this.hideHover(),(ue=this._lastFocusedElementBeforeOpen)===null||ue===void 0||ue.focus())}_keyUp(o,_){var N;o.key==="Alt"&&(_.isLocked=!1,_.isMouseIn||(this.hideHover(),(N=this._lastFocusedElementBeforeOpen)===null||N===void 0||N.focus()))}};Os=Rs([$o(0,Dn._Y),$o(1,on.Z),$o(2,un.b),$o(3,On),$o(4,ji.j)],Os);function Ks(Ie){var o;if(Ie!==void 0)return(o=Ie?.id)!==null&&o!==void 0?o:Ie}class ur{get anchorPosition(){return this._hover.anchor}constructor(o,_=!1){this._hover=o,this._focus=_,this.layer=1}render(o){return this._hover.render(o),this._focus&&this._hover.focus(),this._hover}getAnchor(){return{x:this._hover.x,y:this._hover.y}}layout(){this._hover.layout()}}(0,xe.v)($t.TN,Os,1),(0,vn.zy)((Ie,o)=>{const _=Ie.getColor(Xt.oZ8);_&&(o.addRule(`.monaco-workbench .workbench-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${_.transparent(.5)}; }`),o.addRule(`.monaco-workbench .workbench-hover hr { border-top: 1px solid ${_.transparent(.5)}; }`))});var Vo=e("./node_modules/monaco-editor/esm/vs/base/common/keybindings.js"),is=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/bulkEditService.js"),Gs=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorConfigurationSchema.js"),hr=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js"),os=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),Qo=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),zi=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),$s=e("./node_modules/monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js"),lo=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),Eo=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),Qs=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),Po=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js"),hs=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js");function ss(Ie){return Object.isFrozen(Ie)?Ie:qt.ol(Ie)}class io{constructor(o={},_=[],N=[],se){this._contents=o,this._keys=_,this._overrides=N,this.raw=se,this.overrideConfigurations=new Map}get rawConfiguration(){var o;if(!this._rawConfiguration)if(!((o=this.raw)===null||o===void 0)&&o.length){const _=this.raw.map(N=>{if(N instanceof io)return N;const se=new zr("");return se.parseRaw(N),se.configurationModel});this._rawConfiguration=_.reduce((N,se)=>se===N?se:N.merge(se),_[0])}else this._rawConfiguration=this;return this._rawConfiguration}get contents(){return this._contents}get overrides(){return this._overrides}get keys(){return this._keys}isEmpty(){return this._keys.length===0&&Object.keys(this._contents).length===0&&this._overrides.length===0}getValue(o){return o?(0,mt.gD)(this.contents,o):this.contents}inspect(o,_){const N=this;return{get value(){return ss(N.rawConfiguration.getValue(o))},get override(){return _?ss(N.rawConfiguration.getOverrideValue(o,_)):void 0},get merged(){return ss(_?N.rawConfiguration.override(_).getValue(o):N.rawConfiguration.getValue(o))},get overrides(){const se=[];for(const{contents:ue,identifiers:Ee,keys:Oe}of N.rawConfiguration.overrides){const ot=new io(ue,Oe).getValue(o);ot!==void 0&&se.push({identifiers:Ee,value:ot})}return se.length?ss(se):void 0}}}getOverrideValue(o,_){const N=this.getContentsForOverrideIdentifer(_);return N?o?(0,mt.gD)(N,o):N:void 0}override(o){let _=this.overrideConfigurations.get(o);return _||(_=this.createOverrideConfigurationModel(o),this.overrideConfigurations.set(o,_)),_}merge(...o){var _,N;const se=qt.Go(this.contents),ue=qt.Go(this.overrides),Ee=[...this.keys],Oe=!((_=this.raw)===null||_===void 0)&&_.length?[...this.raw]:[this];for(const ot of o)if(Oe.push(...!((N=ot.raw)===null||N===void 0)&&N.length?ot.raw:[ot]),!ot.isEmpty()){this.mergeContents(se,ot.contents);for(const _t of ot.overrides){const[Ot]=ue.filter(nn=>hn.aI(nn.identifiers,_t.identifiers));Ot?(this.mergeContents(Ot.contents,_t.contents),Ot.keys.push(..._t.keys),Ot.keys=hn.dM(Ot.keys)):ue.push(qt.Go(_t))}for(const _t of ot.keys)Ee.indexOf(_t)===-1&&Ee.push(_t)}return new io(se,Ee,ue,Oe.every(ot=>ot instanceof io)?void 0:Oe)}createOverrideConfigurationModel(o){const _=this.getContentsForOverrideIdentifer(o);if(!_||typeof _!="object"||!Object.keys(_).length)return this;const N={};for(const se of hn.dM([...Object.keys(this.contents),...Object.keys(_)])){let ue=this.contents[se];const Ee=_[se];Ee&&(typeof ue=="object"&&typeof Ee=="object"?(ue=qt.Go(ue),this.mergeContents(ue,Ee)):ue=Ee),N[se]=ue}return new io(N,this.keys,this.overrides)}mergeContents(o,_){for(const N of Object.keys(_)){if(N in o&&Qs.Gv(o[N])&&Qs.Gv(_[N])){this.mergeContents(o[N],_[N]);continue}o[N]=qt.Go(_[N])}}getContentsForOverrideIdentifer(o){let _=null,N=null;const se=ue=>{ue&&(N?this.mergeContents(N,ue):N=qt.Go(ue))};for(const ue of this.overrides)ue.identifiers.length===1&&ue.identifiers[0]===o?_=ue.contents:ue.identifiers.includes(o)&&se(ue.contents);return se(_),N}toJSON(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}}addValue(o,_){this.updateValue(o,_,!0)}setValue(o,_){this.updateValue(o,_,!1)}removeValue(o){const _=this.keys.indexOf(o);_!==-1&&(this.keys.splice(_,1),(0,mt.iB)(this.contents,o),Po.rC.test(o)&&this.overrides.splice(this.overrides.findIndex(N=>hn.aI(N.identifiers,(0,Po.Gv)(o))),1))}updateValue(o,_,N){(0,mt.kW)(this.contents,o,_,se=>console.error(se)),N=N||this.keys.indexOf(o)===-1,N&&this.keys.push(o),Po.rC.test(o)&&this.overrides.push({identifiers:(0,Po.Gv)(o),keys:Object.keys(this.contents[o]),contents:(0,mt.ad)(this.contents[o],se=>console.error(se))})}}class zr{constructor(o){this._name=o,this._raw=null,this._configurationModel=null,this._restrictedConfigurations=[]}get configurationModel(){return this._configurationModel||new io}parseRaw(o,_){this._raw=o;const{contents:N,keys:se,overrides:ue,restricted:Ee,hasExcludedProperties:Oe}=this.doParseRaw(o,_);this._configurationModel=new io(N,se,ue,Oe?[o]:void 0),this._restrictedConfigurations=Ee||[]}doParseRaw(o,_){const N=hs.O.as(Po.Fd.Configuration).getConfigurationProperties(),se=this.filter(o,N,!0,_);o=se.raw;const ue=(0,mt.ad)(o,ot=>console.error(`Conflict in settings file ${this._name}: ${ot}`)),Ee=Object.keys(o),Oe=this.toOverrides(o,ot=>console.error(`Conflict in settings file ${this._name}: ${ot}`));return{contents:ue,keys:Ee,overrides:Oe,restricted:se.restricted,hasExcludedProperties:se.hasExcludedProperties}}filter(o,_,N,se){var ue,Ee,Oe;let ot=!1;if(!se?.scopes&&!se?.skipRestricted&&!(!((ue=se?.exclude)===null||ue===void 0)&&ue.length))return{raw:o,restricted:[],hasExcludedProperties:ot};const _t={},Ot=[];for(const nn in o)if(Po.rC.test(nn)&&N){const fn=this.filter(o[nn],_,!1,se);_t[nn]=fn.raw,ot=ot||fn.hasExcludedProperties,Ot.push(...fn.restricted)}else{const fn=_[nn],wn=fn?typeof fn.scope<"u"?fn.scope:3:void 0;fn?.restricted&&Ot.push(nn),!(!((Ee=se.exclude)===null||Ee===void 0)&&Ee.includes(nn))&&(!((Oe=se.include)===null||Oe===void 0)&&Oe.includes(nn)||(wn===void 0||se.scopes===void 0||se.scopes.includes(wn))&&!(se.skipRestricted&&fn?.restricted))?_t[nn]=o[nn]:ot=!0}return{raw:_t,restricted:Ot,hasExcludedProperties:ot}}toOverrides(o,_){const N=[];for(const se of Object.keys(o))if(Po.rC.test(se)){const ue={};for(const Ee in o[se])ue[Ee]=o[se][Ee];N.push({identifiers:(0,Po.Gv)(se),keys:Object.keys(ue),contents:(0,mt.ad)(ue,_)})}return N}}class rs{constructor(o,_,N,se,ue,Ee,Oe,ot,_t,Ot,nn,fn,wn){this.key=o,this.overrides=_,this._value=N,this.overrideIdentifiers=se,this.defaultConfiguration=ue,this.policyConfiguration=Ee,this.applicationConfiguration=Oe,this.userConfiguration=ot,this.localUserConfiguration=_t,this.remoteUserConfiguration=Ot,this.workspaceConfiguration=nn,this.folderConfigurationModel=fn,this.memoryConfigurationModel=wn}toInspectValue(o){return o?.value!==void 0||o?.override!==void 0||o?.overrides!==void 0?o:void 0}get userInspectValue(){return this._userInspectValue||(this._userInspectValue=this.userConfiguration.inspect(this.key,this.overrides.overrideIdentifier)),this._userInspectValue}get user(){return this.toInspectValue(this.userInspectValue)}}class Uo{constructor(o,_,N,se,ue=new io,Ee=new io,Oe=new Eo.fT,ot=new io,_t=new Eo.fT){this._defaultConfiguration=o,this._policyConfiguration=_,this._applicationConfiguration=N,this._localUserConfiguration=se,this._remoteUserConfiguration=ue,this._workspaceConfiguration=Ee,this._folderConfigurations=Oe,this._memoryConfiguration=ot,this._memoryConfigurationByResource=_t,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new Eo.fT,this._userConfiguration=null}getValue(o,_,N){return this.getConsolidatedConfigurationModel(o,_,N).getValue(o)}updateValue(o,_,N={}){let se;N.resource?(se=this._memoryConfigurationByResource.get(N.resource),se||(se=new io,this._memoryConfigurationByResource.set(N.resource,se))):se=this._memoryConfiguration,_===void 0?se.removeValue(o):se.setValue(o,_),N.resource||(this._workspaceConsolidatedConfiguration=null)}inspect(o,_,N){const se=this.getConsolidatedConfigurationModel(o,_,N),ue=this.getFolderConfigurationModelForResource(_.resource,N),Ee=_.resource?this._memoryConfigurationByResource.get(_.resource)||this._memoryConfiguration:this._memoryConfiguration,Oe=new Set;for(const ot of se.overrides)for(const _t of ot.identifiers)se.getOverrideValue(o,_t)!==void 0&&Oe.add(_t);return new rs(o,_,se.getValue(o),Oe.size?[...Oe]:void 0,this._defaultConfiguration,this._policyConfiguration.isEmpty()?void 0:this._policyConfiguration,this.applicationConfiguration.isEmpty()?void 0:this.applicationConfiguration,this.userConfiguration,this.localUserConfiguration,this.remoteUserConfiguration,N?this._workspaceConfiguration:void 0,ue||void 0,Ee)}get applicationConfiguration(){return this._applicationConfiguration}get userConfiguration(){return this._userConfiguration||(this._userConfiguration=this._remoteUserConfiguration.isEmpty()?this._localUserConfiguration:this._localUserConfiguration.merge(this._remoteUserConfiguration)),this._userConfiguration}get localUserConfiguration(){return this._localUserConfiguration}get remoteUserConfiguration(){return this._remoteUserConfiguration}getConsolidatedConfigurationModel(o,_,N){let se=this.getConsolidatedConfigurationModelForResource(_,N);return _.overrideIdentifier&&(se=se.override(_.overrideIdentifier)),!this._policyConfiguration.isEmpty()&&this._policyConfiguration.getValue(o)!==void 0&&(se=se.merge(this._policyConfiguration)),se}getConsolidatedConfigurationModelForResource({resource:o},_){let N=this.getWorkspaceConsolidatedConfiguration();if(_&&o){const se=_.getFolder(o);se&&(N=this.getFolderConsolidatedConfiguration(se.uri)||N);const ue=this._memoryConfigurationByResource.get(o);ue&&(N=N.merge(ue))}return N}getWorkspaceConsolidatedConfiguration(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this.applicationConfiguration,this.userConfiguration,this._workspaceConfiguration,this._memoryConfiguration)),this._workspaceConsolidatedConfiguration}getFolderConsolidatedConfiguration(o){let _=this._foldersConsolidatedConfigurations.get(o);if(!_){const N=this.getWorkspaceConsolidatedConfiguration(),se=this._folderConfigurations.get(o);se?(_=N.merge(se),this._foldersConsolidatedConfigurations.set(o,_)):_=N}return _}getFolderConfigurationModelForResource(o,_){if(_&&o){const N=_.getFolder(o);if(N)return this._folderConfigurations.get(N.uri)}}toData(){return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},policy:{contents:this._policyConfiguration.contents,overrides:this._policyConfiguration.overrides,keys:this._policyConfiguration.keys},application:{contents:this.applicationConfiguration.contents,overrides:this.applicationConfiguration.overrides,keys:this.applicationConfiguration.keys},user:{contents:this.userConfiguration.contents,overrides:this.userConfiguration.overrides,keys:this.userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:[...this._folderConfigurations.keys()].reduce((o,_)=>{const{contents:N,overrides:se,keys:ue}=this._folderConfigurations.get(_);return o.push([_,{contents:N,overrides:se,keys:ue}]),o},[])}}static parse(o){const _=this.parseConfigurationModel(o.defaults),N=this.parseConfigurationModel(o.policy),se=this.parseConfigurationModel(o.application),ue=this.parseConfigurationModel(o.user),Ee=this.parseConfigurationModel(o.workspace),Oe=o.folders.reduce((ot,_t)=>(ot.set(lt.r.revive(_t[0]),this.parseConfigurationModel(_t[1])),ot),new Eo.fT);return new Uo(_,N,se,ue,new io,Ee,Oe,new io,new Eo.fT)}static parseConfigurationModel(o){return new io(o.contents,o.keys,o.overrides)}}class Ys{constructor(o,_,N,se){this.change=o,this.previous=_,this.currentConfiguraiton=N,this.currentWorkspace=se,this._marker=` `,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const ue of o.keys)this.affectedKeys.add(ue);for(const[,ue]of o.overrides)for(const Ee of ue)this.affectedKeys.add(Ee);this._affectsConfigStr=this._marker;for(const ue of this.affectedKeys)this._affectsConfigStr+=ue+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Uo.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(o,_){var N;const se=this._marker+o,ue=this._affectsConfigStr.indexOf(se);if(ue<0)return!1;const Ee=ue+se.length;if(Ee>=this._affectsConfigStr.length)return!1;const Oe=this._affectsConfigStr.charCodeAt(Ee);if(Oe!==this._markerCode1&&Oe!==this._markerCode2)return!1;if(_){const ot=this.previousConfiguration?this.previousConfiguration.getValue(o,_,(N=this.previous)===null||N===void 0?void 0:N.workspace):void 0,_t=this.currentConfiguraiton.getValue(o,_,this.currentWorkspace);return!qt.aI(ot,_t)}return!0}}var Co=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),ms=e("./node_modules/monaco-editor/esm/vs/base/common/ime.js");const as={kind:0},qi={kind:1};function gs(Ie,o,_){return{kind:2,commandId:Ie,commandArgs:o,isBubble:_}}class es{constructor(o,_,N){var se;this._log=N,this._defaultKeybindings=o,this._defaultBoundCommands=new Map;for(const ue of o){const Ee=ue.command;Ee&&Ee.charAt(0)!=="-"&&this._defaultBoundCommands.set(Ee,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=es.handleRemovals([].concat(o).concat(_));for(let ue=0,Ee=this._keybindings.length;ue"u"){this._map.set(o,[_]),this._addToLookupMap(_);return}for(let se=N.length-1;se>=0;se--){const ue=N[se];if(ue.command===_.command)continue;let Ee=!0;for(let Oe=1;Oe"u"?(_=[o],this._lookupMap.set(o.command,_)):_.push(o)}_removeFromLookupMap(o){if(!o.command)return;const _=this._lookupMap.get(o.command);if(!(typeof _>"u")){for(let N=0,se=_.length;N"u"||N.length===0)return null;if(N.length===1)return N[0];for(let se=N.length-1;se>=0;se--){const ue=N[se];if(_.contextMatchesRules(ue.when))return ue}return N[N.length-1]}resolve(o,_,N){const se=[..._,N];this._log(`| Resolving ${se}`);const ue=this._map.get(se[0]);if(ue===void 0)return this._log("\\ No keybinding entries."),as;let Ee=null;if(se.length<2)Ee=ue;else{Ee=[];for(let ot=0,_t=ue.length;ot<_t;ot++){const Ot=ue[ot];if(se.length>Ot.chords.length)continue;let nn=!0;for(let fn=1;fn=0;N--){const se=_[N];if(es._contextMatchesRules(o,se.when))return se}return null}static _contextMatchesRules(o,_){return _?_.evaluate(o):!0}}function As(Ie){return Ie?`${Ie.serialize()}`:"no when condition"}function Zs(Ie){return Ie.extensionId?Ie.isBuiltinExtension?`built-in extension ${Ie.extensionId}`:`user extension ${Ie.extensionId}`:Ie.isDefault?"built-in":"user"}const Yo=/^(cursor|delete|undo|redo|tab|editor\.action\.clipboard)/;class mr extends we.jG{get onDidUpdateKeybindings(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:Ft.Jh.None}get inChordMode(){return this._currentChords.length>0}constructor(o,_,N,se,ue){super(),this._contextKeyService=o,this._commandService=_,this._telemetryService=N,this._notificationService=se,this._logService=ue,this._onDidUpdateKeybindings=this._register(new Ft.vl),this._currentChords=[],this._currentChordChecker=new Co.vb,this._currentChordStatusMessage=null,this._ignoreSingleModifiers=ts.EMPTY,this._currentSingleModifier=null,this._currentSingleModifierClearTimeout=new Co.pc,this._currentlyDispatchingCommandId=null,this._logging=!1}dispose(){super.dispose()}_log(o){this._logging&&this._logService.info(`[KeybindingService]: ${o}`)}getKeybindings(){return this._getResolver().getKeybindings()}lookupKeybinding(o,_){const N=this._getResolver().lookupPrimaryKeybinding(o,_||this._contextKeyService);if(N)return N.resolvedKeybinding}dispatchEvent(o,_){return this._dispatch(o,_)}softDispatch(o,_){this._log("/ Soft dispatching keyboard event");const N=this.resolveKeyboardEvent(o);if(N.hasMultipleChords())return console.warn("keyboard event should not be mapped to multiple chords"),as;const[se]=N.getDispatchChords();if(se===null)return this._log("\\ Keyboard event cannot be dispatched"),as;const ue=this._contextKeyService.getContext(_),Ee=this._currentChords.map(({keypress:Oe})=>Oe);return this._getResolver().resolve(ue,Ee,se)}_scheduleLeaveChordMode(){const o=Date.now();this._currentChordChecker.cancelAndSet(()=>{if(!this._documentHasFocus()){this._leaveChordMode();return}Date.now()-o>5e3&&this._leaveChordMode()},500)}_expectAnotherChord(o,_){switch(this._currentChords.push({keypress:o,label:_}),this._currentChords.length){case 0:throw(0,Jn.iH)("impossible");case 1:this._currentChordStatusMessage=this._notificationService.status(Rn.kg("first.chord","({0}) was pressed. Waiting for second key of chord...",_));break;default:{const N=this._currentChords.map(({label:se})=>se).join(", ");this._currentChordStatusMessage=this._notificationService.status(Rn.kg("next.chord","({0}) was pressed. Waiting for next key of chord...",N))}}this._scheduleLeaveChordMode(),ms.M.enabled&&ms.M.disable()}_leaveChordMode(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChords=[],ms.M.enable()}_dispatch(o,_){return this._doDispatch(this.resolveKeyboardEvent(o),_,!1)}_singleModifierDispatch(o,_){const N=this.resolveKeyboardEvent(o),[se]=N.getSingleModifierDispatchChords();if(se)return this._ignoreSingleModifiers.has(se)?(this._log(`+ Ignoring single modifier ${se} due to it being pressed together with other keys.`),this._ignoreSingleModifiers=ts.EMPTY,this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1):(this._ignoreSingleModifiers=ts.EMPTY,this._currentSingleModifier===null?(this._log(`+ Storing single modifier for possible chord ${se}.`),this._currentSingleModifier=se,this._currentSingleModifierClearTimeout.cancelAndSet(()=>{this._log("+ Clearing single modifier due to 300ms elapsed."),this._currentSingleModifier=null},300),!1):se===this._currentSingleModifier?(this._log(`/ Dispatching single modifier chord ${se} ${se}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,this._doDispatch(N,_,!0)):(this._log(`+ Clearing single modifier due to modifier mismatch: ${this._currentSingleModifier} ${se}`),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1));const[ue]=N.getChords();return this._ignoreSingleModifiers=new ts(ue),this._currentSingleModifier!==null&&this._log("+ Clearing single modifier due to other key up."),this._currentSingleModifierClearTimeout.cancel(),this._currentSingleModifier=null,!1}_doDispatch(o,_,N=!1){var se;let ue=!1;if(o.hasMultipleChords())return console.warn("Unexpected keyboard event mapped to multiple chords"),!1;let Ee=null,Oe=null;if(N){const[nn]=o.getSingleModifierDispatchChords();Ee=nn,Oe=nn?[nn]:[]}else[Ee]=o.getDispatchChords(),Oe=this._currentChords.map(({keypress:nn})=>nn);if(Ee===null)return this._log("\\ Keyboard event cannot be dispatched in keydown phase."),ue;const ot=this._contextKeyService.getContext(_),_t=o.getLabel(),Ot=this._getResolver().resolve(ot,Oe,Ee);switch(Ot.kind){case 0:{if(this._logService.trace("KeybindingService#dispatch",_t,"[ No matching keybinding ]"),this.inChordMode){const nn=this._currentChords.map(({label:fn})=>fn).join(", ");this._log(`+ Leaving multi-chord mode: Nothing bound to "${nn}, ${_t}".`),this._notificationService.status(Rn.kg("missing.chord","The key combination ({0}, {1}) is not a command.",nn,_t),{hideAfter:10*1e3}),this._leaveChordMode(),ue=!0}return ue}case 1:return this._logService.trace("KeybindingService#dispatch",_t,"[ Several keybindings match - more chords needed ]"),ue=!0,this._expectAnotherChord(Ee,_t),this._log(this._currentChords.length===1?"+ Entering multi-chord mode...":"+ Continuing multi-chord mode..."),ue;case 2:{if(this._logService.trace("KeybindingService#dispatch",_t,`[ Will dispatch command ${Ot.commandId} ]`),Ot.commandId===null||Ot.commandId===""){if(this.inChordMode){const nn=this._currentChords.map(({label:fn})=>fn).join(", ");this._log(`+ Leaving chord mode: Nothing bound to "${nn}, ${_t}".`),this._notificationService.status(Rn.kg("missing.chord","The key combination ({0}, {1}) is not a command.",nn,_t),{hideAfter:10*1e3}),this._leaveChordMode(),ue=!0}}else{this.inChordMode&&this._leaveChordMode(),Ot.isBubble||(ue=!0),this._log(`+ Invoking command ${Ot.commandId}.`),this._currentlyDispatchingCommandId=Ot.commandId;try{typeof Ot.commandArgs>"u"?this._commandService.executeCommand(Ot.commandId).then(void 0,nn=>this._notificationService.warn(nn)):this._commandService.executeCommand(Ot.commandId,Ot.commandArgs).then(void 0,nn=>this._notificationService.warn(nn))}finally{this._currentlyDispatchingCommandId=null}Yo.test(Ot.commandId)||this._telemetryService.publicLog2("workbenchActionExecuted",{id:Ot.commandId,from:"keybinding",detail:(se=o.getUserSettingsLabel())!==null&&se!==void 0?se:void 0})}return ue}}}mightProducePrintableCharacter(o){return o.ctrlKey||o.metaKey?!1:o.keyCode>=31&&o.keyCode<=56||o.keyCode>=21&&o.keyCode<=30}}class ts{constructor(o){this._ctrlKey=o?o.ctrlKey:!1,this._shiftKey=o?o.shiftKey:!1,this._altKey=o?o.altKey:!1,this._metaKey=o?o.metaKey:!1}has(o){switch(o){case"ctrl":return this._ctrlKey;case"shift":return this._shiftKey;case"alt":return this._altKey;case"meta":return this._metaKey}}}ts.EMPTY=new ts(null);var gr=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js");class Xs{constructor(o,_,N,se,ue,Ee,Oe){this._resolvedKeybindingItemBrand=void 0,this.resolvedKeybinding=o,this.chords=o?No(o.getDispatchChords()):[],o&&this.chords.length===0&&(this.chords=No(o.getSingleModifierDispatchChords())),this.bubble=_?_.charCodeAt(0)===94:!1,this.command=this.bubble?_.substr(1):_,this.commandArgs=N,this.when=se,this.isDefault=ue,this.extensionId=Ee,this.isBuiltinExtension=Oe}}function No(Ie){const o=[];for(let _=0,N=Ie.length;_this._getLabel(o))}getAriaLabel(){return fs.r0.toLabel(this._os,this._chords,o=>this._getAriaLabel(o))}getElectronAccelerator(){return this._chords.length>1||this._chords[0].isDuplicateModifierCase()?null:fs.rr.toLabel(this._os,this._chords,o=>this._getElectronAccelerator(o))}getUserSettingsLabel(){return fs.G$.toLabel(this._os,this._chords,o=>this._getUserSettingsLabel(o))}hasMultipleChords(){return this._chords.length>1}getChords(){return this._chords.map(o=>this._getChord(o))}_getChord(o){return new Vo.FW(o.ctrlKey,o.shiftKey,o.altKey,o.metaKey,this._getLabel(o),this._getAriaLabel(o))}getDispatchChords(){return this._chords.map(o=>this._getChordDispatch(o))}getSingleModifierDispatchChords(){return this._chords.map(o=>this._getSingleModifierChordDispatch(o))}}class Zo extends fr{constructor(o,_){super(_,o)}_keyCodeToUILabel(o){if(this._os===2)switch(o){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return Wo.YM.toString(o)}_getLabel(o){return o.isDuplicateModifierCase()?"":this._keyCodeToUILabel(o.keyCode)}_getAriaLabel(o){return o.isDuplicateModifierCase()?"":Wo.YM.toString(o.keyCode)}_getElectronAccelerator(o){return Wo.YM.toElectronAccelerator(o.keyCode)}_getUserSettingsLabel(o){if(o.isDuplicateModifierCase())return"";const _=Wo.YM.toUserSettingsUS(o.keyCode);return _&&_.toLowerCase()}_getChordDispatch(o){return Zo.getDispatchStr(o)}static getDispatchStr(o){if(o.isModifierKey())return null;let _="";return o.ctrlKey&&(_+="ctrl+"),o.shiftKey&&(_+="shift+"),o.altKey&&(_+="alt+"),o.metaKey&&(_+="meta+"),_+=Wo.YM.toString(o.keyCode),_}_getSingleModifierChordDispatch(o){return o.keyCode===5&&!o.shiftKey&&!o.altKey&&!o.metaKey?"ctrl":o.keyCode===4&&!o.ctrlKey&&!o.altKey&&!o.metaKey?"shift":o.keyCode===6&&!o.ctrlKey&&!o.shiftKey&&!o.metaKey?"alt":o.keyCode===57&&!o.ctrlKey&&!o.shiftKey&&!o.altKey?"meta":null}static _scanCodeToKeyCode(o){const _=Wo.Fo[o];if(_!==-1)return _;switch(o){case 10:return 31;case 11:return 32;case 12:return 33;case 13:return 34;case 14:return 35;case 15:return 36;case 16:return 37;case 17:return 38;case 18:return 39;case 19:return 40;case 20:return 41;case 21:return 42;case 22:return 43;case 23:return 44;case 24:return 45;case 25:return 46;case 26:return 47;case 27:return 48;case 28:return 49;case 29:return 50;case 30:return 51;case 31:return 52;case 32:return 53;case 33:return 54;case 34:return 55;case 35:return 56;case 36:return 22;case 37:return 23;case 38:return 24;case 39:return 25;case 40:return 26;case 41:return 27;case 42:return 28;case 43:return 29;case 44:return 30;case 45:return 21;case 51:return 88;case 52:return 86;case 53:return 92;case 54:return 94;case 55:return 93;case 56:return 0;case 57:return 85;case 58:return 95;case 59:return 91;case 60:return 87;case 61:return 89;case 62:return 90;case 106:return 97}return 0}static _toKeyCodeChord(o){if(!o)return null;if(o instanceof Vo.dG)return o;const _=this._scanCodeToKeyCode(o.scanCode);return _===0?null:new Vo.dG(o.ctrlKey,o.shiftKey,o.altKey,o.metaKey,_)}static resolveKeybinding(o,_){const N=No(o.chords.map(se=>this._toKeyCodeChord(se)));return N.length>0?[new Zo(N,_)]:[]}}var pr=e("./node_modules/monaco-editor/esm/vs/platform/label/common/label.js"),ps=e("./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"),wi=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),Pi=e("./node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace.js"),eo=e("./node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js"),oo=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),xo=e("./node_modules/monaco-editor/esm/vs/platform/workspace/common/workspaceTrust.js"),jo=e("./node_modules/monaco-editor/esm/vs/base/common/glob.js"),fo=e("./node_modules/monaco-editor/esm/vs/base/common/mime.js"),ko=e("./node_modules/monaco-editor/esm/vs/base/common/path.js");let _s=[],Ns=[],Js=[];function vs(Ie,o=!1){Ca(Ie,!1,o)}function Ca(Ie,o,_){const N=ya(Ie,o);_s.push(N),N.userConfigured?Js.push(N):Ns.push(N),_&&!N.userConfigured&&_s.forEach(se=>{se.mime===N.mime||se.userConfigured||(N.extension&&se.extension===N.extension&&console.warn(`Overwriting extension <<${N.extension}>> to now point to mime <<${N.mime}>>`),N.filename&&se.filename===N.filename&&console.warn(`Overwriting filename <<${N.filename}>> to now point to mime <<${N.mime}>>`),N.filepattern&&se.filepattern===N.filepattern&&console.warn(`Overwriting filepattern <<${N.filepattern}>> to now point to mime <<${N.mime}>>`),N.firstline&&se.firstline===N.firstline&&console.warn(`Overwriting firstline <<${N.firstline}>> to now point to mime <<${N.mime}>>`))})}function ya(Ie,o){return{id:Ie.id,mime:Ie.mime,filename:Ie.filename,extension:Ie.extension,filepattern:Ie.filepattern,firstline:Ie.firstline,userConfigured:o,filenameLowercase:Ie.filename?Ie.filename.toLowerCase():void 0,extensionLowercase:Ie.extension?Ie.extension.toLowerCase():void 0,filepatternLowercase:Ie.filepattern?(0,jo.qg)(Ie.filepattern.toLowerCase()):void 0,filepatternOnPath:Ie.filepattern?Ie.filepattern.indexOf(ko.SA.sep)>=0:!1}}function qs(){_s=_s.filter(Ie=>Ie.userConfigured),Ns=[]}function Sa(Ie,o){return wa(Ie,o).map(_=>_.id)}function wa(Ie,o){let _;if(Ie)switch(Ie.scheme){case Rt.ny.file:_=Ie.fsPath;break;case Rt.ny.data:{_=oo.B6.parseMetaData(Ie).get(oo.B6.META_DATA_LABEL);break}case Rt.ny.vscodeNotebookCell:_=void 0;break;default:_=Ie.path}if(!_)return[{id:"unknown",mime:fo.K.unknown}];_=_.toLowerCase();const N=(0,ko.P8)(_),se=Kr(_,N,Js);if(se)return[se,{id:_n.vH,mime:fo.K.text}];const ue=Kr(_,N,Ns);if(ue)return[ue,{id:_n.vH,mime:fo.K.text}];if(o){const Ee=Da(o);if(Ee)return[Ee,{id:_n.vH,mime:fo.K.text}]}return[{id:"unknown",mime:fo.K.unknown}]}function Kr(Ie,o,_){var N;let se,ue,Ee;for(let Oe=_.length-1;Oe>=0;Oe--){const ot=_[Oe];if(o===ot.filenameLowercase){se=ot;break}if(ot.filepattern&&(!ue||ot.filepattern.length>ue.filepattern.length)){const _t=ot.filepatternOnPath?Ie:o;!((N=ot.filepatternLowercase)===null||N===void 0)&&N.call(ot,_t)&&(ue=ot)}ot.extension&&(!Ee||ot.extension.length>Ee.extension.length)&&o.endsWith(ot.extensionLowercase)&&(Ee=ot)}if(se)return se;if(ue)return ue;if(Ee)return Ee}function Da(Ie){if((0,Ue.LU)(Ie)&&(Ie=Ie.substr(1)),Ie.length>0)for(let o=_s.length-1;o>=0;o--){const _=_s[o];if(!_.firstline)continue;const N=Ie.match(_.firstline);if(N&&N.length>0)return _}}const er=Object.prototype.hasOwnProperty,Gr="vs.editor.nullLanguage";class La{constructor(){this._languageIdToLanguage=[],this._languageToLanguageId=new Map,this._register(Gr,0),this._register(_n.vH,1),this._nextLanguageId=2}_register(o,_){this._languageIdToLanguage[_]=o,this._languageToLanguageId.set(o,_)}register(o){if(this._languageToLanguageId.has(o))return;const _=this._nextLanguageId++;this._register(o,_)}encodeLanguageId(o){return this._languageToLanguageId.get(o)||0}decodeLanguageId(o){return this._languageIdToLanguage[o]||Gr}}class js extends we.jG{constructor(o=!0,_=!1){super(),this._onDidChange=this._register(new Ft.vl),this.onDidChange=this._onDidChange.event,js.instanceCount++,this._warnOnOverwrite=_,this.languageIdCodec=new La,this._dynamicLanguages=[],this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},o&&(this._initializeFromRegistry(),this._register(_n.W6.onDidChangeLanguages(N=>{this._initializeFromRegistry()})))}dispose(){js.instanceCount--,super.dispose()}_initializeFromRegistry(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},qs();const o=[].concat(_n.W6.getLanguages()).concat(this._dynamicLanguages);this._registerLanguages(o)}_registerLanguages(o){for(const _ of o)this._registerLanguage(_);this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},Object.keys(this._languages).forEach(_=>{const N=this._languages[_];N.name&&(this._nameMap[N.name]=N.identifier),N.aliases.forEach(se=>{this._lowercaseNameMap[se.toLowerCase()]=N.identifier}),N.mimetypes.forEach(se=>{this._mimeTypesMap[se]=N.identifier})}),hs.O.as(Po.Fd.Configuration).registerOverrideIdentifiers(this.getRegisteredLanguageIds()),this._onDidChange.fire()}_registerLanguage(o){const _=o.id;let N;er.call(this._languages,_)?N=this._languages[_]:(this.languageIdCodec.register(_),N={identifier:_,name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[],icons:[]},this._languages[_]=N),this._mergeLanguage(N,o)}_mergeLanguage(o,_){const N=_.id;let se=null;if(Array.isArray(_.mimetypes)&&_.mimetypes.length>0&&(o.mimetypes.push(..._.mimetypes),se=_.mimetypes[0]),se||(se=`text/x-${N}`,o.mimetypes.push(se)),Array.isArray(_.extensions)){_.configuration?o.extensions=_.extensions.concat(o.extensions):o.extensions=o.extensions.concat(_.extensions);for(const Oe of _.extensions)vs({id:N,mime:se,extension:Oe},this._warnOnOverwrite)}if(Array.isArray(_.filenames))for(const Oe of _.filenames)vs({id:N,mime:se,filename:Oe},this._warnOnOverwrite),o.filenames.push(Oe);if(Array.isArray(_.filenamePatterns))for(const Oe of _.filenamePatterns)vs({id:N,mime:se,filepattern:Oe},this._warnOnOverwrite);if(typeof _.firstLine=="string"&&_.firstLine.length>0){let Oe=_.firstLine;Oe.charAt(0)!=="^"&&(Oe="^"+Oe);try{const ot=new RegExp(Oe);(0,Ue.eY)(ot)||vs({id:N,mime:se,firstline:ot},this._warnOnOverwrite)}catch(ot){console.warn(`[${_.id}]: Invalid regular expression \`${Oe}\`: `,ot)}}o.aliases.push(N);let ue=null;if(typeof _.aliases<"u"&&Array.isArray(_.aliases)&&(_.aliases.length===0?ue=[null]:ue=_.aliases),ue!==null)for(const Oe of ue)!Oe||Oe.length===0||o.aliases.push(Oe);const Ee=ue!==null&&ue.length>0;if(!(Ee&&ue[0]===null)){const Oe=(Ee?ue[0]:null)||N;(Ee||!o.name)&&(o.name=Oe)}_.configuration&&o.configurationFiles.push(_.configuration),_.icon&&o.icons.push(_.icon)}isRegisteredLanguageId(o){return o?er.call(this._languages,o):!1}getRegisteredLanguageIds(){return Object.keys(this._languages)}getLanguageIdByLanguageName(o){const _=o.toLowerCase();return er.call(this._lowercaseNameMap,_)?this._lowercaseNameMap[_]:null}getLanguageIdByMimeType(o){return o&&er.call(this._mimeTypesMap,o)?this._mimeTypesMap[o]:null}guessLanguageIdByFilepathOrFirstLine(o,_){return!o&&!_?[]:Sa(o,_)}}js.instanceCount=0;class Xo extends we.jG{constructor(o=!1){super(),this._onDidRequestBasicLanguageFeatures=this._register(new Ft.vl),this.onDidRequestBasicLanguageFeatures=this._onDidRequestBasicLanguageFeatures.event,this._onDidRequestRichLanguageFeatures=this._register(new Ft.vl),this.onDidRequestRichLanguageFeatures=this._onDidRequestRichLanguageFeatures.event,this._onDidChange=this._register(new Ft.vl({leakWarningThreshold:200})),this.onDidChange=this._onDidChange.event,this._requestedBasicLanguages=new Set,this._requestedRichLanguages=new Set,Xo.instanceCount++,this._registry=this._register(new js(!0,o)),this.languageIdCodec=this._registry.languageIdCodec,this._register(this._registry.onDidChange(()=>this._onDidChange.fire()))}dispose(){Xo.instanceCount--,super.dispose()}isRegisteredLanguageId(o){return this._registry.isRegisteredLanguageId(o)}getLanguageIdByLanguageName(o){return this._registry.getLanguageIdByLanguageName(o)}getLanguageIdByMimeType(o){return this._registry.getLanguageIdByMimeType(o)}guessLanguageIdByFilepathOrFirstLine(o,_){const N=this._registry.guessLanguageIdByFilepathOrFirstLine(o,_);return(0,hn.Fy)(N,null)}createById(o){return new _r(this.onDidChange,()=>this._createAndGetLanguageIdentifier(o))}createByFilepathOrFirstLine(o,_){return new _r(this.onDidChange,()=>{const N=this.guessLanguageIdByFilepathOrFirstLine(o,_);return this._createAndGetLanguageIdentifier(N)})}_createAndGetLanguageIdentifier(o){return(!o||!this.isRegisteredLanguageId(o))&&(o=_n.vH),o}requestBasicLanguageFeatures(o){this._requestedBasicLanguages.has(o)||(this._requestedBasicLanguages.add(o),this._onDidRequestBasicLanguageFeatures.fire(o))}requestRichLanguageFeatures(o){this._requestedRichLanguages.has(o)||(this._requestedRichLanguages.add(o),this.requestBasicLanguageFeatures(o),Be.dG.getOrCreate(o),this._onDidRequestRichLanguageFeatures.fire(o))}}Xo.instanceCount=0;class _r{constructor(o,_){this._onDidChangeLanguages=o,this._selector=_,this._listener=null,this._emitter=null,this.languageId=this._selector()}_dispose(){this._listener&&(this._listener.dispose(),this._listener=null),this._emitter&&(this._emitter.dispose(),this._emitter=null)}get onDidChange(){return this._listener||(this._listener=this._onDidChangeLanguages(()=>this._evaluate())),this._emitter||(this._emitter=new Ft.vl({onDidRemoveLastListener:()=>{this._dispose()}})),this._emitter.event}_evaluate(){var o;const _=this._selector();_!==this.languageId&&(this.languageId=_,(o=this._emitter)===null||o===void 0||o.fire(this.languageId))}}var Ho=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),$r=e("./node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js"),so=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),Qr=e("./node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js"),vr=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),bs=e("./node_modules/monaco-editor/esm/vs/base/browser/touch.js"),tr=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js"),Yr=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionViewItems.js"),Cs=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement.js"),ls=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),Fs=e("./node_modules/monaco-editor/esm/vs/base/common/codiconsUtil.js"),br=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),zo=e("./node_modules/monaco-editor/esm/vs/base/common/iconLabels.js");const Cr=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,yr=/(&)?(&)([^\s&])/g;var ys;(function(Ie){Ie[Ie.Right=0]="Right",Ie[Ie.Left=1]="Left"})(ys||(ys={}));var Sr;(function(Ie){Ie[Ie.Above=0]="Above",Ie[Ie.Below=1]="Below"})(Sr||(Sr={}));class Jo extends tr.E{constructor(o,_,N,se){o.classList.add("monaco-menu-container"),o.setAttribute("role","presentation");const ue=document.createElement("div");ue.classList.add("monaco-menu"),ue.setAttribute("role","presentation"),super(ue,{orientation:1,actionViewItemProvider:_t=>this.doGetActionViewItem(_t,N,Ee),context:N.context,actionRunner:N.actionRunner,ariaLabel:N.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...hi.zx||hi.j9?[10]:[]],keyDown:!0}}),this.menuStyles=se,this.menuElement=ue,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(o,se),this._register(bs.q.addTarget(ue)),this._register((0,je.ko)(ue,je.Bx.KEY_DOWN,_t=>{new Xi.Z(_t).equals(2)&&_t.preventDefault()})),N.enableMnemonics&&this._register((0,je.ko)(ue,je.Bx.KEY_DOWN,_t=>{const Ot=_t.key.toLocaleLowerCase();if(this.mnemonics.has(Ot)){je.fs.stop(_t,!0);const nn=this.mnemonics.get(Ot);if(nn.length===1&&(nn[0]instanceof nr&&nn[0].container&&this.focusItemByElement(nn[0].container),nn[0].onClick(_t)),nn.length>1){const fn=nn.shift();fn&&fn.container&&(this.focusItemByElement(fn.container),nn.push(fn)),this.mnemonics.set(Ot,nn)}}})),hi.j9&&this._register((0,je.ko)(ue,je.Bx.KEY_DOWN,_t=>{const Ot=new Xi.Z(_t);Ot.equals(14)||Ot.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),je.fs.stop(_t,!0)):(Ot.equals(13)||Ot.equals(12))&&(this.focusedItem=0,this.focusPrevious(),je.fs.stop(_t,!0))})),this._register((0,je.ko)(this.domNode,je.Bx.MOUSE_OUT,_t=>{const Ot=_t.relatedTarget;(0,je.QX)(Ot,this.domNode)||(this.focusedItem=void 0,this.updateFocus(),_t.stopPropagation())})),this._register((0,je.ko)(this.actionsList,je.Bx.MOUSE_OVER,_t=>{let Ot=_t.target;if(!(!Ot||!(0,je.QX)(Ot,this.actionsList)||Ot===this.actionsList)){for(;Ot.parentElement!==this.actionsList&&Ot.parentElement!==null;)Ot=Ot.parentElement;if(Ot.classList.contains("action-item")){const nn=this.focusedItem;this.setFocusedItem(Ot),nn!==this.focusedItem&&this.updateFocus()}}})),this._register(bs.q.addTarget(this.actionsList)),this._register((0,je.ko)(this.actionsList,bs.B.Tap,_t=>{let Ot=_t.initialTarget;if(!(!Ot||!(0,je.QX)(Ot,this.actionsList)||Ot===this.actionsList)){for(;Ot.parentElement!==this.actionsList&&Ot.parentElement!==null;)Ot=Ot.parentElement;if(Ot.classList.contains("action-item")){const nn=this.focusedItem;this.setFocusedItem(Ot),nn!==this.focusedItem&&this.updateFocus()}}}));const Ee={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new Cs.MU(ue,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));const Oe=this.scrollableElement.getDomNode();Oe.style.position="",this.styleScrollElement(Oe,se),this._register((0,je.ko)(ue,bs.B.Change,_t=>{je.fs.stop(_t,!0);const Ot=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:Ot-_t.translationY})})),this._register((0,je.ko)(Oe,je.Bx.MOUSE_UP,_t=>{_t.preventDefault()}));const ot=(0,je.zk)(o);ue.style.maxHeight=`${Math.max(10,ot.innerHeight-o.getBoundingClientRect().top-35)}px`,_=_.filter((_t,Ot)=>{var nn;return!((nn=N.submenuIds)===null||nn===void 0)&&nn.has(_t.id)?(console.warn(`Found submenu cycle: ${_t.id}`),!1):!(_t instanceof Ho.wv&&(Ot===_.length-1||Ot===0||_[Ot-1]instanceof Ho.wv))}),this.push(_,{icon:!0,label:!0,isMenu:!0}),o.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(_t=>!(_t instanceof wr)).forEach((_t,Ot,nn)=>{_t.updatePositionInSet(Ot+1,nn.length)})}initializeOrUpdateStyleSheet(o,_){this.styleSheet||((0,je.Cl)(o)?this.styleSheet=(0,je.li)(o):(Jo.globalStyleSheet||(Jo.globalStyleSheet=(0,je.li)()),this.styleSheet=Jo.globalStyleSheet)),this.styleSheet.textContent=xa(_,(0,je.Cl)(o))}styleScrollElement(o,_){var N,se;const ue=(N=_.foregroundColor)!==null&&N!==void 0?N:"",Ee=(se=_.backgroundColor)!==null&&se!==void 0?se:"",Oe=_.borderColor?`1px solid ${_.borderColor}`:"",ot="5px",_t=_.shadowColor?`0 2px 8px ${_.shadowColor}`:"";o.style.outline=Oe,o.style.borderRadius=ot,o.style.color=ue,o.style.backgroundColor=Ee,o.style.boxShadow=_t}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(o){const _=this.focusedItem;this.setFocusedItem(o),_!==this.focusedItem&&this.updateFocus()}setFocusedItem(o){for(let _=0;_{this.element&&(this._register((0,je.ko)(this.element,je.Bx.MOUSE_UP,ue=>{if(je.fs.stop(ue,!0),vr.gm){if(new Qr.P((0,je.zk)(this.element),ue).rightButton)return;this.onClick(ue)}else setTimeout(()=>{this.onClick(ue)},0)})),this._register((0,je.ko)(this.element,je.Bx.CONTEXT_MENU,ue=>{je.fs.stop(ue,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(o){super.render(o),this.element&&(this.container=o,this.item=(0,je.BC)(this.element,(0,je.$)("a.action-menu-item")),this._action.id===Ho.wv.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,je.BC)(this.item,(0,je.$)("span.menu-item-check"+br.L.asCSSSelector(ls.W.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,je.BC)(this.item,(0,je.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,je.BC)(this.item,(0,je.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle())}blur(){super.blur(),this.applyStyle()}focus(){var o;super.focus(),(o=this.item)===null||o===void 0||o.focus(),this.applyStyle()}updatePositionInSet(o,_){this.item&&(this.item.setAttribute("aria-posinset",`${o}`),this.item.setAttribute("aria-setsize",`${_}`))}updateLabel(){var o;if(this.label&&this.options.label){(0,je.w_)(this.label);let _=(0,zo.pS)(this.action.label);if(_){const N=Ea(_);this.options.enableMnemonics||(_=N),this.label.setAttribute("aria-label",N.replace(/&&/g,"&"));const se=Cr.exec(_);if(se){_=Ue.ih(_),yr.lastIndex=0;let ue=yr.exec(_);for(;ue&&ue[1];)ue=yr.exec(_);const Ee=Oe=>Oe.replace(/&&/g,"&");ue?this.label.append(Ue.NB(Ee(_.substr(0,ue.index))," "),(0,je.$)("u",{"aria-hidden":"true"},ue[3]),Ue.BO(Ee(_.substr(ue.index+ue[0].length))," ")):this.label.innerText=Ee(_).trim(),(o=this.item)===null||o===void 0||o.setAttribute("aria-keyshortcuts",(se[1]?se[1]:se[3]).toLocaleLowerCase())}else this.label.innerText=_.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.action.class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.action.enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;const o=this.action.checked;this.item.classList.toggle("checked",!!o),o!==void 0?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",o?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){const o=this.element&&this.element.classList.contains("focused"),_=o&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,N=o&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,se=o&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",ue=o&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=_??"",this.item.style.backgroundColor=N??"",this.item.style.outline=se,this.item.style.outlineOffset=ue),this.check&&(this.check.style.color=_??"")}}class nr extends Bs{constructor(o,_,N,se,ue){super(o,o,se,ue),this.submenuActions=_,this.parentData=N,this.submenuOptions=se,this.mysubmenu=null,this.submenuDisposables=this._register(new we.Cm),this.mouseOver=!1,this.expandDirection=se&&se.expandDirection!==void 0?se.expandDirection:{horizontal:ys.Right,vertical:Sr.Below},this.showScheduler=new Co.uC(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new Co.uC(()=>{this.element&&!(0,je.QX)((0,je.bq)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(o){super.render(o),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,je.BC)(this.item,(0,je.$)("span.submenu-indicator"+br.L.asCSSSelector(ls.W.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,je.ko)(this.element,je.Bx.KEY_UP,_=>{const N=new Xi.Z(_);(N.equals(17)||N.equals(3))&&(je.fs.stop(_,!0),this.createSubmenu(!0))})),this._register((0,je.ko)(this.element,je.Bx.KEY_DOWN,_=>{const N=new Xi.Z(_);(0,je.bq)()===this.item&&(N.equals(17)||N.equals(3))&&je.fs.stop(_,!0)})),this._register((0,je.ko)(this.element,je.Bx.MOUSE_OVER,_=>{this.mouseOver||(this.mouseOver=!0,this.showScheduler.schedule())})),this._register((0,je.ko)(this.element,je.Bx.MOUSE_LEAVE,_=>{this.mouseOver=!1})),this._register((0,je.ko)(this.element,je.Bx.FOCUS_OUT,_=>{this.element&&!(0,je.QX)((0,je.bq)(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))})))}updateEnabled(){}onClick(o){je.fs.stop(o,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(o){if(this.parentData.submenu&&(o||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch{}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(o,_,N,se){const ue={top:0,left:0};return ue.left=uo(o.width,_.width,{position:se.horizontal===ys.Right?0:1,offset:N.left,size:N.width}),ue.left>=N.left&&ue.left{new Xi.Z(Ot).equals(15)&&(je.fs.stop(Ot,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add((0,je.ko)(this.submenuContainer,je.Bx.KEY_DOWN,Ot=>{new Xi.Z(Ot).equals(15)&&je.fs.stop(Ot,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(o),this.mysubmenu=this.parentData.submenu}}updateAriaExpanded(o){var _;this.item&&((_=this.item)===null||_===void 0||_.setAttribute("aria-expanded",o))}applyStyle(){super.applyStyle();const _=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=_??"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class wr extends Yr.Z4{constructor(o,_,N,se){super(o,_,N),this.menuStyles=se}render(o){super.render(o),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function Ea(Ie){const o=Cr,_=o.exec(Ie);if(!_)return Ie;const N=!_[1];return Ie.replace(o,N?"$2$3":"").trim()}function Zr(Ie){const o=(0,Fs.J)()[Ie.id];return`.codicon-${Ie.id}:before { content: '\\${o.toString(16)}'; }`}function xa(Ie,o){let _=` .monaco-menu { font-size: 13px; border-radius: 5px; min-width: 160px; } ${Zr(ls.W.menuSelection)} ${Zr(ls.W.menuSubmenu)} .monaco-menu .monaco-action-bar { text-align: right; overflow: hidden; white-space: nowrap; } .monaco-menu .monaco-action-bar .actions-container { display: flex; margin: 0 auto; padding: 0; width: 100%; justify-content: flex-end; } .monaco-menu .monaco-action-bar.vertical .actions-container { display: inline-block; } .monaco-menu .monaco-action-bar.reverse .actions-container { flex-direction: row-reverse; } .monaco-menu .monaco-action-bar .action-item { cursor: pointer; display: inline-block; transition: transform 50ms ease; position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ } .monaco-menu .monaco-action-bar .action-item.disabled { cursor: default; } .monaco-menu .monaco-action-bar .action-item .icon, .monaco-menu .monaco-action-bar .action-item .codicon { display: inline-block; } .monaco-menu .monaco-action-bar .action-item .codicon { display: flex; align-items: center; } .monaco-menu .monaco-action-bar .action-label { font-size: 11px; margin-right: 4px; } .monaco-menu .monaco-action-bar .action-item.disabled .action-label, .monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover { color: var(--vscode-disabledForeground); } /* Vertical actions */ .monaco-menu .monaco-action-bar.vertical { text-align: left; } .monaco-menu .monaco-action-bar.vertical .action-item { display: block; } .monaco-menu .monaco-action-bar.vertical .action-label.separator { display: block; border-bottom: 1px solid var(--vscode-menu-separatorBackground); padding-top: 1px; padding: 30px; } .monaco-menu .secondary-actions .monaco-action-bar .action-label { margin-left: 6px; } /* Action Items */ .monaco-menu .monaco-action-bar .action-item.select-container { overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ flex: 1; max-width: 170px; min-width: 60px; display: flex; align-items: center; justify-content: center; margin-right: 10px; } .monaco-menu .monaco-action-bar.vertical { margin-left: 0; overflow: visible; } .monaco-menu .monaco-action-bar.vertical .actions-container { display: block; } .monaco-menu .monaco-action-bar.vertical .action-item { padding: 0; transform: none; display: flex; } .monaco-menu .monaco-action-bar.vertical .action-item.active { transform: none; } .monaco-menu .monaco-action-bar.vertical .action-menu-item { flex: 1 1 auto; display: flex; height: 2em; align-items: center; position: relative; margin: 0 4px; border-radius: 4px; } .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding, .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding { opacity: unset; } .monaco-menu .monaco-action-bar.vertical .action-label { flex: 1 1 auto; text-decoration: none; padding: 0 1em; background: none; font-size: 12px; line-height: 1; } .monaco-menu .monaco-action-bar.vertical .keybinding, .monaco-menu .monaco-action-bar.vertical .submenu-indicator { display: inline-block; flex: 2 1 auto; padding: 0 1em; text-align: right; font-size: 12px; line-height: 1; } .monaco-menu .monaco-action-bar.vertical .submenu-indicator { height: 100%; } .monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon { font-size: 16px !important; display: flex; align-items: center; } .monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before { margin-left: auto; margin-right: -20px; } .monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding, .monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator { opacity: 0.4; } .monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) { display: inline-block; box-sizing: border-box; margin: 0; } .monaco-menu .monaco-action-bar.vertical .action-item { position: static; overflow: visible; } .monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu { position: absolute; } .monaco-menu .monaco-action-bar.vertical .action-label.separator { width: 100%; height: 0px !important; opacity: 1; } .monaco-menu .monaco-action-bar.vertical .action-label.separator.text { padding: 0.7em 1em 0.1em 1em; font-weight: bold; opacity: 1; } .monaco-menu .monaco-action-bar.vertical .action-label:hover { color: inherit; } .monaco-menu .monaco-action-bar.vertical .menu-item-check { position: absolute; visibility: hidden; width: 1em; height: 100%; } .monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check { visibility: visible; display: flex; align-items: center; justify-content: center; } /* Context Menu */ .context-view.monaco-menu-container { outline: 0; border: none; animation: fadeIn 0.083s linear; -webkit-app-region: no-drag; } .context-view.monaco-menu-container :focus, .context-view.monaco-menu-container .monaco-action-bar.vertical:focus, .context-view.monaco-menu-container .monaco-action-bar.vertical :focus { outline: 0; } .hc-black .context-view.monaco-menu-container, .hc-light .context-view.monaco-menu-container, :host-context(.hc-black) .context-view.monaco-menu-container, :host-context(.hc-light) .context-view.monaco-menu-container { box-shadow: none; } .hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused, .hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused, :host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused, :host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused { background: none; } /* Vertical Action Bar Styles */ .monaco-menu .monaco-action-bar.vertical { padding: 4px 0; } .monaco-menu .monaco-action-bar.vertical .action-menu-item { height: 2em; } .monaco-menu .monaco-action-bar.vertical .action-label:not(.separator), .monaco-menu .monaco-action-bar.vertical .keybinding { font-size: inherit; padding: 0 2em; } .monaco-menu .monaco-action-bar.vertical .menu-item-check { font-size: inherit; width: 2em; } .monaco-menu .monaco-action-bar.vertical .action-label.separator { font-size: inherit; margin: 5px 0 !important; padding: 0; border-radius: 0; } .linux .monaco-menu .monaco-action-bar.vertical .action-label.separator, :host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator { margin-left: 0; margin-right: 0; } .monaco-menu .monaco-action-bar.vertical .submenu-indicator { font-size: 60%; padding: 0 1.8em; } .linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator, :host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator { height: 100%; mask-size: 10px 10px; -webkit-mask-size: 10px 10px; } .monaco-menu .action-item { cursor: default; }`;if(o){_+=` /* Arrows */ .monaco-scrollable-element > .scrollbar > .scra { cursor: pointer; font-size: 11px !important; } .monaco-scrollable-element > .visible { opacity: 1; /* Background rule added for IE9 - to allow clicks on dom node */ background:rgba(0,0,0,0); transition: opacity 100ms linear; } .monaco-scrollable-element > .invisible { opacity: 0; pointer-events: none; } .monaco-scrollable-element > .invisible.fade { transition: opacity 800ms linear; } /* Scrollable Content Inset Shadow */ .monaco-scrollable-element > .shadow { position: absolute; display: none; } .monaco-scrollable-element > .shadow.top { display: block; top: 0; left: 3px; height: 3px; width: 100%; } .monaco-scrollable-element > .shadow.left { display: block; top: 3px; left: 0; height: 100%; width: 3px; } .monaco-scrollable-element > .shadow.top-left-corner { display: block; top: 0; left: 0; height: 3px; width: 3px; } `;const N=Ie.scrollbarShadow;N&&(_+=` .monaco-scrollable-element > .shadow.top { box-shadow: ${N} 0 6px 6px -6px inset; } .monaco-scrollable-element > .shadow.left { box-shadow: ${N} 6px 0 6px -6px inset; } .monaco-scrollable-element > .shadow.top.left { box-shadow: ${N} 6px 6px 6px -6px inset; } `);const se=Ie.scrollbarSliderBackground;se&&(_+=` .monaco-scrollable-element > .scrollbar > .slider { background: ${se}; } `);const ue=Ie.scrollbarSliderHoverBackground;ue&&(_+=` .monaco-scrollable-element > .scrollbar > .slider:hover { background: ${ue}; } `);const Ee=Ie.scrollbarSliderActiveBackground;Ee&&(_+=` .monaco-scrollable-element > .scrollbar > .slider.active { background: ${Ee}; } `)}return _}var ns=e("./node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js");class Xr{constructor(o,_,N,se){this.contextViewService=o,this.telemetryService=_,this.notificationService=N,this.keybindingService=se,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(o){this.options=o}showContextMenu(o){const _=o.getActions();if(!_.length)return;this.focusToReturn=(0,je.bq)();let N;const se=o.domForShadowRoot instanceof HTMLElement?o.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>o.getAnchor(),canRelayout:!1,anchorAlignment:o.anchorAlignment,anchorAxisAlignment:o.anchorAxisAlignment,render:ue=>{var Ee;this.lastContainer=ue;const Oe=o.getMenuClassName?o.getMenuClassName():"";Oe&&(ue.className+=" "+Oe),this.options.blockMouse&&(this.block=ue.appendChild((0,je.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",(Ee=this.blockDisposable)===null||Ee===void 0||Ee.dispose(),this.blockDisposable=(0,je.ko)(this.block,je.Bx.MOUSE_DOWN,nn=>nn.stopPropagation()));const ot=new we.Cm,_t=o.actionRunner||new Ho.LN;_t.onWillRun(nn=>this.onActionRun(nn,!o.skipTelemetry),this,ot),_t.onDidRun(this.onDidActionRun,this,ot),N=new Jo(ue,_,{actionViewItemProvider:o.getActionViewItem,context:o.getActionsContext?o.getActionsContext():null,actionRunner:_t,getKeyBinding:o.getKeyBinding?o.getKeyBinding:nn=>this.keybindingService.lookupKeybinding(nn.id)},ns.XS),N.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,ot),N.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,ot);const Ot=(0,je.zk)(ue);return ot.add((0,je.ko)(Ot,je.Bx.BLUR,()=>this.contextViewService.hideContextView(!0))),ot.add((0,je.ko)(Ot,je.Bx.MOUSE_DOWN,nn=>{if(nn.defaultPrevented)return;const fn=new Qr.P(Ot,nn);let wn=fn.target;if(!fn.rightButton){for(;wn;){if(wn===ue)return;wn=wn.parentElement}this.contextViewService.hideContextView(!0)}})),(0,we.qE)(ot,N)},focus:()=>{N?.focus(!!o.autoSelectFirstItem)},onHide:ue=>{var Ee,Oe,ot;(Ee=o.onHide)===null||Ee===void 0||Ee.call(o,!!ue),this.block&&(this.block.remove(),this.block=null),(Oe=this.blockDisposable)===null||Oe===void 0||Oe.dispose(),this.blockDisposable=null,this.lastContainer&&((0,je.bq)()===this.lastContainer||(0,je.QX)((0,je.bq)(),this.lastContainer))&&((ot=this.focusToReturn)===null||ot===void 0||ot.focus()),this.lastContainer=null}},se,!!se)}onActionRun(o,_){_&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:o.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(o){o.error&&!(0,Jn.MB)(o.error)&&this.notificationService.error(o.error)}}var Jr=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Ss=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Dr=class extends we.jG{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new Xr(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(o,_,N,se,ue,Ee){super(),this.telemetryService=o,this.notificationService=_,this.contextViewService=N,this.keybindingService=se,this.menuService=ue,this.contextKeyService=Ee,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new Ft.vl),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new Ft.vl)}configure(o){this.contextMenuHandler.configure(o)}showContextMenu(o){o=Lr.transform(o,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...o,onHide:_=>{var N;(N=o.onHide)===null||N===void 0||N.call(o,_),this._onDidHideContextMenu.fire()}}),je.Di.getInstance().resetKeyStatus(),this._onDidShowContextMenu.fire()}};Dr=Jr([Ss(0,wi.k),Ss(1,$e.Ot),Ss(2,on.l),Ss(3,un.b),Ss(4,so.ez),Ss(5,en.fN)],Dr);var Lr;(function(Ie){function o(N){return N&&N.menuId instanceof so.D8}function _(N,se,ue){if(!o(N))return N;const{menuId:Ee,menuActionOptions:Oe,contextKeyService:ot}=N;return{...N,getActions:()=>{const _t=[];if(Ee){const Ot=se.createMenu(Ee,ot??ue);(0,$r.$u)(Ot,Oe,_t),Ot.dispose()}return N.getActions?Ho.wv.join(N.getActions(),_t):_t}}}Ie.transform=_})(Lr||(Lr={}));var Fo=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),qr=e("./node_modules/monaco-editor/esm/vs/base/common/marshalling.js"),ir;(function(Ie){Ie[Ie.API=0]="API",Ie[Ie.USER=1]="USER"})(ir||(ir={}));var Er=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},ws=function(Ie,o){return function(_,N){o(_,N,Ie)}};let xr=class{constructor(o){this._commandService=o}async open(o,_){if(!(0,Rt.v$)(o,Rt.ny.command))return!1;if(!_?.allowCommands||(typeof o=="string"&&(o=lt.r.parse(o)),Array.isArray(_.allowCommands)&&!_.allowCommands.includes(o.path)))return!0;let N=[];try{N=(0,qr.qg)(decodeURIComponent(o.query))}catch{try{N=(0,qr.qg)(o.query)}catch{}}return Array.isArray(N)||(N=[N]),await this._commandService.executeCommand(o.path,...N),!0}};xr=Er([ws(0,lo.d)],xr);let kr=class{constructor(o){this._editorService=o}async open(o,_){typeof o=="string"&&(o=lt.r.parse(o));const{selection:N,uri:se}=(0,Pn.e)(o);return o=se,o.scheme===Rt.ny.file&&(o=(0,oo.Fd)(o)),await this._editorService.openCodeEditor({resource:o,options:{selection:N,source:_?.fromUserGesture?ir.USER:ir.API,..._?.editorOptions}},this._editorService.getFocusedCodeEditor(),_?.openToSide),!0}};kr=Er([ws(0,Zt.T)],kr);let Ir=class{constructor(o,_){this._openers=new ln.w,this._validators=new ln.w,this._resolvers=new ln.w,this._resolvedUriTargets=new Eo.fT(N=>N.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new ln.w,this._defaultExternalOpener={openExternal:async N=>((0,Rt.fV)(N,Rt.ny.http,Rt.ny.https)?je.CE(N):We.G.location.href=N,!0)},this._openers.push({open:async(N,se)=>se?.openExternal||(0,Rt.fV)(N,Rt.ny.mailto,Rt.ny.http,Rt.ny.https,Rt.ny.vsls)?(await this._doOpenExternal(N,se),!0):!1}),this._openers.push(new xr(_)),this._openers.push(new kr(o))}registerOpener(o){return{dispose:this._openers.unshift(o)}}async open(o,_){var N;const se=typeof o=="string"?lt.r.parse(o):o,ue=(N=this._resolvedUriTargets.get(se))!==null&&N!==void 0?N:o;for(const Ee of this._validators)if(!await Ee.shouldOpen(ue,_))return!1;for(const Ee of this._openers)if(await Ee.open(o,_))return!0;return!1}async resolveExternalUri(o,_){for(const N of this._resolvers)try{const se=await N.resolveExternalUri(o,_);if(se)return this._resolvedUriTargets.has(se.resolved)||this._resolvedUriTargets.set(se.resolved,o),se}catch{}throw new Error("Could not resolve external URI: "+o.toString())}async _doOpenExternal(o,_){const N=typeof o=="string"?lt.r.parse(o):o;let se;try{se=(await this.resolveExternalUri(N,_)).resolved}catch{se=N}let ue;if(typeof o=="string"&&N.toString()===se.toString()?ue=o:ue=encodeURI(se.toString(!0)),_?.allowContributedOpeners){const Ee=typeof _?.allowContributedOpeners=="string"?_?.allowContributedOpeners:void 0;for(const Oe of this._externalOpeners)if(await Oe.openExternal(ue,{sourceUri:N,preferredOpenerId:Ee},Fo.X.None))return!0}return this._defaultExternalOpener.openExternal(ue,{sourceUri:N},Fo.X.None)}dispose(){this._validators.clear()}};Ir=Er([ws(0,Zt.T),ws(1,lo.d)],Ir);var ea=e("./node_modules/monaco-editor/esm/vs/editor/common/services/editorWorker.js"),Do=e("./node_modules/monaco-editor/esm/vs/platform/markers/common/markers.js"),Mr=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editorColorRegistry.js"),ta=e("./node_modules/monaco-editor/esm/vs/base/common/collections.js"),ka=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Tr=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Pr=class extends we.jG{constructor(o,_){super(),this._markerService=_,this._onDidChangeMarker=this._register(new Ft.vl),this._markerDecorations=new Eo.fT,o.getModels().forEach(N=>this._onModelAdded(N)),this._register(o.onModelAdded(this._onModelAdded,this)),this._register(o.onModelRemoved(this._onModelRemoved,this)),this._register(this._markerService.onMarkerChanged(this._handleMarkerChange,this))}dispose(){super.dispose(),this._markerDecorations.forEach(o=>o.dispose()),this._markerDecorations.clear()}getMarker(o,_){const N=this._markerDecorations.get(o);return N&&N.getMarker(_)||null}_handleMarkerChange(o){o.forEach(_=>{const N=this._markerDecorations.get(_);N&&this._updateDecorations(N)})}_onModelAdded(o){const _=new qo(o);this._markerDecorations.set(o.uri,_),this._updateDecorations(_)}_onModelRemoved(o){var _;const N=this._markerDecorations.get(o.uri);N&&(N.dispose(),this._markerDecorations.delete(o.uri)),(o.uri.scheme===Rt.ny.inMemory||o.uri.scheme===Rt.ny.internal||o.uri.scheme===Rt.ny.vscode)&&((_=this._markerService)===null||_===void 0||_.read({resource:o.uri}).map(se=>se.owner).forEach(se=>this._markerService.remove(se,[o.uri])))}_updateDecorations(o){const _=this._markerService.read({resource:o.model.uri,take:500});o.update(_)&&this._onDidChangeMarker.fire(o.model)}};Pr=ka([Tr(0,Hn.S),Tr(1,Do.DR)],Pr);class qo extends we.jG{constructor(o){super(),this.model=o,this._map=new Eo.cO,this._register((0,we.s)(()=>{this.model.deltaDecorations([...this._map.values()],[]),this._map.clear()}))}update(o){const{added:_,removed:N}=(0,ta.Z)(new Set(this._map.keys()),new Set(o));if(_.length===0&&N.length===0)return!1;const se=N.map(Oe=>this._map.get(Oe)),ue=_.map(Oe=>({range:this._createDecorationRange(this.model,Oe),options:this._createDecorationOption(Oe)})),Ee=this.model.deltaDecorations(se,ue);for(const Oe of N)this._map.delete(Oe);for(let Oe=0;Oe=se)return N;const ue=o.getWordAtPosition(N.getStartPosition());ue&&(N=new Qo.Q(N.startLineNumber,ue.startColumn,N.endLineNumber,ue.endColumn))}else if(_.endColumn===Number.MAX_VALUE&&_.startColumn===1&&N.startLineNumber===N.endLineNumber){const se=o.getLineFirstNonWhitespaceColumn(_.startLineNumber);se=0:!1}}var ds=e("./node_modules/monaco-editor/esm/vs/editor/common/services/markerDecorations.js"),or=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),Ds=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textModelDefaults.js"),na=e("./node_modules/monaco-editor/esm/vs/base/common/hash.js"),cs=e("./node_modules/monaco-editor/esm/vs/editor/common/model/editStack.js"),po=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Ws=function(Ie,o){return function(_,N){o(_,N,Ie)}},Ls;function us(Ie){return Ie.toString()}class Ia{constructor(o,_,N){this.model=o,this._modelEventListeners=new we.Cm,this.model=o,this._modelEventListeners.add(o.onWillDispose(()=>_(o))),this._modelEventListeners.add(o.onDidChangeLanguage(se=>N(o,se)))}dispose(){this._modelEventListeners.dispose()}}const Ma=hi.j9||hi.zx?1:2;class Ta{constructor(o,_,N,se,ue,Ee,Oe,ot){this.uri=o,this.initialUndoRedoSnapshot=_,this.time=N,this.sharesUndoRedoStack=se,this.heapSize=ue,this.sha1=Ee,this.versionId=Oe,this.alternativeVersionId=ot}}let Es=Ls=class extends we.jG{constructor(o,_,N,se,ue){super(),this._configurationService=o,this._resourcePropertiesService=_,this._undoRedoService=N,this._languageService=se,this._languageConfigurationService=ue,this._onModelAdded=this._register(new Ft.vl),this.onModelAdded=this._onModelAdded.event,this._onModelRemoved=this._register(new Ft.vl),this.onModelRemoved=this._onModelRemoved.event,this._onModelModeChanged=this._register(new Ft.vl),this.onModelLanguageChanged=this._onModelModeChanged.event,this._modelCreationOptionsByLanguageAndResource=Object.create(null),this._models={},this._disposedModels=new Map,this._disposedModelsHeapSize=0,this._register(this._configurationService.onDidChangeConfiguration(Ee=>this._updateModelOptions(Ee))),this._updateModelOptions(void 0)}static _readModelOptions(o,_){var N;let se=Ds.R.tabSize;if(o.editor&&typeof o.editor.tabSize<"u"){const wn=parseInt(o.editor.tabSize,10);isNaN(wn)||(se=wn),se<1&&(se=1)}let ue="tabSize";if(o.editor&&typeof o.editor.indentSize<"u"&&o.editor.indentSize!=="tabSize"){const wn=parseInt(o.editor.indentSize,10);isNaN(wn)||(ue=Math.max(wn,1))}let Ee=Ds.R.insertSpaces;o.editor&&typeof o.editor.insertSpaces<"u"&&(Ee=o.editor.insertSpaces==="false"?!1:!!o.editor.insertSpaces);let Oe=Ma;const ot=o.eol;ot===`\r `?Oe=2:ot===` `&&(Oe=1);let _t=Ds.R.trimAutoWhitespace;o.editor&&typeof o.editor.trimAutoWhitespace<"u"&&(_t=o.editor.trimAutoWhitespace==="false"?!1:!!o.editor.trimAutoWhitespace);let Ot=Ds.R.detectIndentation;o.editor&&typeof o.editor.detectIndentation<"u"&&(Ot=o.editor.detectIndentation==="false"?!1:!!o.editor.detectIndentation);let nn=Ds.R.largeFileOptimizations;o.editor&&typeof o.editor.largeFileOptimizations<"u"&&(nn=o.editor.largeFileOptimizations==="false"?!1:!!o.editor.largeFileOptimizations);let fn=Ds.R.bracketPairColorizationOptions;return!((N=o.editor)===null||N===void 0)&&N.bracketPairColorization&&typeof o.editor.bracketPairColorization=="object"&&(fn={enabled:!!o.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!o.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:_,tabSize:se,indentSize:ue,insertSpaces:Ee,detectIndentation:Ot,defaultEOL:Oe,trimAutoWhitespace:_t,largeFileOptimizations:nn,bracketPairColorizationOptions:fn}}_getEOL(o,_){if(o)return this._resourcePropertiesService.getEOL(o,_);const N=this._configurationService.getValue("files.eol",{overrideIdentifier:_});return N&&typeof N=="string"&&N!=="auto"?N:hi.OS===3||hi.OS===2?` `:`\r `}_shouldRestoreUndoStack(){const o=this._configurationService.getValue("files.restoreUndoStack");return typeof o=="boolean"?o:!0}getCreationOptions(o,_,N){const se=typeof o=="string"?o:o.languageId;let ue=this._modelCreationOptionsByLanguageAndResource[se+_];if(!ue){const Ee=this._configurationService.getValue("editor",{overrideIdentifier:se,resource:_}),Oe=this._getEOL(_,se);ue=Ls._readModelOptions({editor:Ee,eol:Oe},N),this._modelCreationOptionsByLanguageAndResource[se+_]=ue}return ue}_updateModelOptions(o){const _=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const N=Object.keys(this._models);for(let se=0,ue=N.length;seo){const _=[];for(this._disposedModels.forEach(N=>{N.sharesUndoRedoStack||_.push(N)}),_.sort((N,se)=>N.time-se.time);_.length>0&&this._disposedModelsHeapSize>o;){const N=_.shift();this._removeDisposedModel(N.uri),N.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(N.initialUndoRedoSnapshot)}}}_createModelData(o,_,N,se){const ue=this.getCreationOptions(_,N,se),Ee=new or.Bz(o,_,ue,N,this._undoRedoService,this._languageService,this._languageConfigurationService);if(N&&this._disposedModels.has(us(N))){const _t=this._removeDisposedModel(N),Ot=this._undoRedoService.getElements(N),nn=this._getSHA1Computer(),fn=nn.canComputeSHA1(Ee)?nn.computeSHA1(Ee)===_t.sha1:!1;if(fn||_t.sharesUndoRedoStack){for(const wn of Ot.past)(0,cs.Th)(wn)&&wn.matchesResource(N)&&wn.setModel(Ee);for(const wn of Ot.future)(0,cs.Th)(wn)&&wn.matchesResource(N)&&wn.setModel(Ee);this._undoRedoService.setElementsValidFlag(N,!0,wn=>(0,cs.Th)(wn)&&wn.matchesResource(N)),fn&&(Ee._overwriteVersionId(_t.versionId),Ee._overwriteAlternativeVersionId(_t.alternativeVersionId),Ee._overwriteInitialUndoRedoSnapshot(_t.initialUndoRedoSnapshot))}else _t.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(_t.initialUndoRedoSnapshot)}const Oe=us(Ee.uri);if(this._models[Oe])throw new Error("ModelService: Cannot add model because it already exists!");const ot=new Ia(Ee,_t=>this._onWillDispose(_t),(_t,Ot)=>this._onDidChangeLanguage(_t,Ot));return this._models[Oe]=ot,ot}createModel(o,_,N,se=!1){let ue;return _?ue=this._createModelData(o,_,N,se):ue=this._createModelData(o,_n.vH,N,se),this._onModelAdded.fire(ue.model),ue.model}getModels(){const o=[],_=Object.keys(this._models);for(let N=0,se=_.length;N0||_t.future.length>0){for(const Ot of _t.past)(0,cs.Th)(Ot)&&Ot.matchesResource(o.uri)&&(ue=!0,Ee+=Ot.heapSize(o.uri),Ot.setModel(o.uri));for(const Ot of _t.future)(0,cs.Th)(Ot)&&Ot.matchesResource(o.uri)&&(ue=!0,Ee+=Ot.heapSize(o.uri),Ot.setModel(o.uri))}}const Oe=Ls.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK,ot=this._getSHA1Computer();if(ue)if(!se&&(Ee>Oe||!ot.canComputeSHA1(o))){const _t=N.model.getInitialUndoRedoSnapshot();_t!==null&&this._undoRedoService.restoreSnapshot(_t)}else this._ensureDisposedModelsHeapSize(Oe-Ee),this._undoRedoService.setElementsValidFlag(o.uri,!1,_t=>(0,cs.Th)(_t)&&_t.matchesResource(o.uri)),this._insertDisposedModel(new Ta(o.uri,N.model.getInitialUndoRedoSnapshot(),Date.now(),se,Ee,ot.computeSHA1(o),o.getVersionId(),o.getAlternativeVersionId()));else if(!se){const _t=N.model.getInitialUndoRedoSnapshot();_t!==null&&this._undoRedoService.restoreSnapshot(_t)}delete this._models[_],N.dispose(),delete this._modelCreationOptionsByLanguageAndResource[o.getLanguageId()+o.uri],this._onModelRemoved.fire(o)}_onDidChangeLanguage(o,_){const N=_.oldLanguage,se=o.getLanguageId(),ue=this.getCreationOptions(N,o.uri,o.isForSimpleWidget),Ee=this.getCreationOptions(se,o.uri,o.isForSimpleWidget);Ls._setModelOptionsForModel(o,Ee,ue),this._onModelModeChanged.fire({model:o,oldLanguageId:N})}_getSHA1Computer(){return new sr}};Es.MAX_MEMORY_FOR_CLOSED_FILES_UNDO_STACK=20*1024*1024,Es=Ls=po([Ws(0,mt.pG),Ws(1,$s.J),Ws(2,yt.$D),Ws(3,vt.L),Ws(4,Gt.JZ)],Es);class sr{canComputeSHA1(o){return o.getValueLength()<=sr.MAX_MODEL_SIZE}computeSHA1(o){const _=new na.v7,N=o.createSnapshot();let se;for(;se=N.read();)_.update(se);return _.digest()}}sr.MAX_MODEL_SIZE=10*1024*1024;var ia=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickAccess.js"),Io=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"),Pt=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},t=function(Ie,o){return function(_,N){o(_,N,Ie)}};let l=class extends we.jG{constructor(o,_){super(),this.quickInputService=o,this.instantiationService=_,this.registry=hs.O.as(ia.Fd.Quickaccess),this.mapProviderToDescriptor=new Map,this.lastAcceptedPickerValues=new Map,this.visibleQuickAccess=void 0}show(o="",_){this.doShowOrPick(o,!1,_)}doShowOrPick(o,_,N){var se,ue,Ee;const[Oe,ot]=this.getOrInstantiateProvider(o),_t=this.visibleQuickAccess,Ot=_t?.descriptor;if(_t&&ot&&Ot===ot){o!==ot.prefix&&!N?.preserveValue&&(_t.picker.value=o),this.adjustValueSelection(_t.picker,ot,N);return}if(ot&&!N?.preserveValue){let Fi;if(_t&&Ot&&Ot!==ot){const Hi=_t.value.substr(Ot.prefix.length);Hi&&(Fi=`${ot.prefix}${Hi}`)}if(!Fi){const Hi=Oe?.defaultFilterValue;Hi===ia.aJ.LAST?Fi=this.lastAcceptedPickerValues.get(ot):typeof Hi=="string"&&(Fi=`${ot.prefix}${Hi}`)}typeof Fi=="string"&&(o=Fi)}const nn=(se=_t?.picker)===null||se===void 0?void 0:se.valueSelection,fn=(ue=_t?.picker)===null||ue===void 0?void 0:ue.value,wn=new we.Cm,Xn=wn.add(this.quickInputService.createQuickPick());Xn.value=o,this.adjustValueSelection(Xn,ot,N),Xn.placeholder=ot?.placeholder,Xn.quickNavigate=N?.quickNavigateConfiguration,Xn.hideInput=!!Xn.quickNavigate&&!_t,(typeof N?.itemActivation=="number"||N?.quickNavigateConfiguration)&&(Xn.itemActivation=(Ee=N?.itemActivation)!==null&&Ee!==void 0?Ee:Io.C1.SECOND),Xn.contextKey=ot?.contextKey,Xn.filterValue=Fi=>Fi.substring(ot?ot.prefix.length:0);let bi;_&&(bi=new Co.Zv,wn.add(Ft.Jh.once(Xn.onWillAccept)(Fi=>{Fi.veto(),Xn.hide()}))),wn.add(this.registerPickerListeners(Xn,Oe,ot,o,N?.providerOptions));const ki=wn.add(new Fo.Q);if(Oe&&wn.add(Oe.provide(Xn,ki.token,N?.providerOptions)),Ft.Jh.once(Xn.onDidHide)(()=>{Xn.selectedItems.length===0&&ki.cancel(),wn.dispose(),bi?.complete(Xn.selectedItems.slice(0))}),Xn.show(),nn&&fn===o&&(Xn.valueSelection=nn),_)return bi?.p}adjustValueSelection(o,_,N){var se;let ue;N?.preserveValue?ue=[o.value.length,o.value.length]:ue=[(se=_?.prefix.length)!==null&&se!==void 0?se:0,o.value.length],o.valueSelection=ue}registerPickerListeners(o,_,N,se,ue){const Ee=new we.Cm,Oe=this.visibleQuickAccess={picker:o,descriptor:N,value:se};return Ee.add((0,we.s)(()=>{Oe===this.visibleQuickAccess&&(this.visibleQuickAccess=void 0)})),Ee.add(o.onDidChangeValue(ot=>{const[_t]=this.getOrInstantiateProvider(ot);_t!==_?this.show(ot,{preserveValue:!0,providerOptions:ue}):Oe.value=ot})),N&&Ee.add(o.onDidAccept(()=>{this.lastAcceptedPickerValues.set(N,o.value)})),Ee}getOrInstantiateProvider(o){const _=this.registry.getQuickAccessProvider(o);if(!_)return[void 0,void 0];let N=this.mapProviderToDescriptor.get(_);return N||(N=this.instantiationService.createInstance(_.ctor),this.mapProviderToDescriptor.set(_,N)),[N,_]}};l=Pt([t(0,Io.GK),t(1,Dn._Y)],l);var y=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/toggle/toggle.js"),H=e("./node_modules/monaco-editor/esm/vs/base/browser/event.js"),Z=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabels.js"),pe=e("./node_modules/monaco-editor/esm/vs/base/common/idGenerator.js"),ke=e("./node_modules/monaco-editor/esm/vs/base/common/decorators.js"),Ve=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue};class Xe{constructor(o){this.nodes=o}toString(){return this.nodes.map(o=>typeof o=="string"?o:o.label).join("")}}Ve([ke.B],Xe.prototype,"toString",null);const gt=/\[([^\]]+)\]\(((?:https?:\/\/|command:|file:)[^\)\s]+)(?: (["'])(.+?)(\3))?\)/gi;function Ct(Ie){const o=[];let _=0,N;for(;N=gt.exec(Ie);){N.index-_>0&&o.push(Ie.substring(_,N.index));const[,se,ue,,Ee]=N;Ee?o.push({label:se,href:ue,title:Ee}):o.push({label:se,href:ue}),_=N.index+N[0].length}return _{je.sd(wn)&&je.fs.stop(wn,!0),_.callback(ue.href)},_t=_.disposables.add(new H.f(Oe,je.Bx.CLICK)).event,Ot=_.disposables.add(new H.f(Oe,je.Bx.KEY_DOWN)).event,nn=Ft.Jh.chain(Ot,wn=>wn.filter(Xn=>{const bi=new Xi.Z(Xn);return bi.equals(10)||bi.equals(3)}));_.disposables.add(bs.q.addTarget(Oe));const fn=_.disposables.add(new H.f(Oe,bs.B.Tap)).event;Ft.Jh.any(_t,fn,nn)(ot,null,_.disposables),o.appendChild(Oe)}}var mn=e("./node_modules/monaco-editor/esm/vs/platform/list/browser/listService.js"),Mn=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabel.js"),Tn=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.js"),Gn=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js"),Zn=e("./node_modules/monaco-editor/esm/vs/base/common/lazy.js");const ii=new Zn.d(()=>{const Ie=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:Ie,collatorIsNumeric:Ie.resolvedOptions().numeric}}),si=new Zn.d(()=>({collator:new Intl.Collator(void 0,{numeric:!0})})),pi=new Zn.d(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function ai(Ie,o,_=!1){const N=Ie||"",se=o||"",ue=ii.value.collator.compare(N,se);return ii.value.collatorIsNumeric&&ue===0&&N!==se?Nse.length)return 1}return 0}var gi=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/abstractTree.js"),Ci=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Ki=function(Ie,o){return function(_,N){o(_,N,Ie)}},Wi;const Zi=je.$;var Oi;(function(Ie){Ie[Ie.First=1]="First",Ie[Ie.Second=2]="Second",Ie[Ie.Last=3]="Last",Ie[Ie.Next=4]="Next",Ie[Ie.Previous=5]="Previous",Ie[Ie.NextPage=6]="NextPage",Ie[Ie.PreviousPage=7]="PreviousPage",Ie[Ie.NextSeparator=8]="NextSeparator",Ie[Ie.PreviousSeparator=9]="PreviousSeparator"})(Oi||(Oi={}));class ho{constructor(o,_,N){this.index=o,this.hasCheckbox=_,this._hidden=!1,this._init=new Zn.d(()=>{var se;const ue=(se=N.label)!==null&&se!==void 0?se:"",Ee=(0,zo._k)(ue).text.trim(),Oe=N.ariaLabel||[ue,this.saneDescription,this.saneDetail].map(ot=>(0,zo.R$)(ot)).filter(ot=>!!ot).join(", ");return{saneLabel:ue,saneSortLabel:Ee,saneAriaLabel:Oe}}),this._saneDescription=N.description,this._saneTooltip=N.tooltip}get saneLabel(){return this._init.value.saneLabel}get saneSortLabel(){return this._init.value.saneSortLabel}get saneAriaLabel(){return this._init.value.saneAriaLabel}get element(){return this._element}set element(o){this._element=o}get hidden(){return this._hidden}set hidden(o){this._hidden=o}get saneDescription(){return this._saneDescription}set saneDescription(o){this._saneDescription=o}get saneDetail(){return this._saneDetail}set saneDetail(o){this._saneDetail=o}get saneTooltip(){return this._saneTooltip}set saneTooltip(o){this._saneTooltip=o}get labelHighlights(){return this._labelHighlights}set labelHighlights(o){this._labelHighlights=o}get descriptionHighlights(){return this._descriptionHighlights}set descriptionHighlights(o){this._descriptionHighlights=o}get detailHighlights(){return this._detailHighlights}set detailHighlights(o){this._detailHighlights=o}}class Bi extends ho{constructor(o,_,N,se,ue,Ee){var Oe,ot,_t;super(o,_,ue),this.fireButtonTriggered=N,this._onChecked=se,this.item=ue,this._separator=Ee,this._checked=!1,this.onChecked=_?Ft.Jh.map(Ft.Jh.filter(this._onChecked.event,Ot=>Ot.element===this),Ot=>Ot.checked):Ft.Jh.None,this._saneDetail=ue.detail,this._labelHighlights=(Oe=ue.highlights)===null||Oe===void 0?void 0:Oe.label,this._descriptionHighlights=(ot=ue.highlights)===null||ot===void 0?void 0:ot.description,this._detailHighlights=(_t=ue.highlights)===null||_t===void 0?void 0:_t.detail}get separator(){return this._separator}set separator(o){this._separator=o}get checked(){return this._checked}set checked(o){o!==this._checked&&(this._checked=o,this._onChecked.fire({element:this,checked:o}))}get checkboxDisabled(){return!!this.item.disabled}}var $i;(function(Ie){Ie[Ie.NONE=0]="NONE",Ie[Ie.MOUSE_HOVER=1]="MOUSE_HOVER",Ie[Ie.ACTIVE_ITEM=2]="ACTIVE_ITEM"})($i||($i={}));class mo extends ho{constructor(o,_,N){super(o,!1,N),this.fireSeparatorButtonTriggered=_,this.separator=N,this.children=new Array,this.focusInsideSeparator=$i.NONE}}class rd{getHeight(o){return o instanceof mo?30:o.saneDetail?44:22}getTemplateId(o){return o instanceof Bi?Rr.ID:Or.ID}}class ad{getWidgetAriaLabel(){return(0,Rn.kg)("quickInput","Quick Input")}getAriaLabel(o){var _;return!((_=o.separator)===null||_===void 0)&&_.label?`${o.saneAriaLabel}, ${o.separator.label}`:o.saneAriaLabel}getWidgetRole(){return"listbox"}getRole(o){return o.hasCheckbox?"checkbox":"option"}isChecked(o){if(!(!o.hasCheckbox||!(o instanceof Bi)))return{value:o.checked,onDidChange:o.onChecked}}}class ml{constructor(o){this.hoverDelegate=o}renderTemplate(o){const _=Object.create(null);_.toDisposeElement=new we.Cm,_.toDisposeTemplate=new we.Cm,_.entry=je.BC(o,Zi(".quick-input-list-entry"));const N=je.BC(_.entry,Zi("label.quick-input-list-label"));_.toDisposeTemplate.add(je.b2(N,je.Bx.CLICK,_t=>{_.checkbox.offsetParent||_t.preventDefault()})),_.checkbox=je.BC(N,Zi("input.quick-input-list-checkbox")),_.checkbox.type="checkbox";const se=je.BC(N,Zi(".quick-input-list-rows")),ue=je.BC(se,Zi(".quick-input-list-row")),Ee=je.BC(se,Zi(".quick-input-list-row"));_.label=new Mn.s(ue,{supportHighlights:!0,supportDescriptionHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),_.toDisposeTemplate.add(_.label),_.icon=je.Hs(_.label.element,Zi(".quick-input-list-icon"));const Oe=je.BC(ue,Zi(".quick-input-list-entry-keybinding"));_.keybinding=new Tn.x(Oe,hi.OS),_.toDisposeTemplate.add(_.keybinding);const ot=je.BC(Ee,Zi(".quick-input-list-label-meta"));return _.detail=new Mn.s(ot,{supportHighlights:!0,supportIcons:!0,hoverDelegate:this.hoverDelegate}),_.toDisposeTemplate.add(_.detail),_.separator=je.BC(_.entry,Zi(".quick-input-list-separator")),_.actionBar=new tr.E(_.entry,this.hoverDelegate?{hoverDelegate:this.hoverDelegate}:void 0),_.actionBar.domNode.classList.add("quick-input-list-entry-action-bar"),_.toDisposeTemplate.add(_.actionBar),_}disposeTemplate(o){o.toDisposeElement.dispose(),o.toDisposeTemplate.dispose()}disposeElement(o,_,N){N.toDisposeElement.clear(),N.actionBar.clear()}}let Rr=Wi=class extends ml{constructor(o,_){super(o),this.themeService=_,this._itemsWithSeparatorsFrequency=new Map}get templateId(){return Wi.ID}renderTemplate(o){const _=super.renderTemplate(o);return _.toDisposeTemplate.add(je.b2(_.checkbox,je.Bx.CHANGE,N=>{_.element.checked=_.checkbox.checked})),_}renderElement(o,_,N){var se,ue,Ee;const Oe=o.element;N.element=Oe,Oe.element=(se=N.entry)!==null&&se!==void 0?se:void 0;const ot=Oe.item;N.checkbox.checked=Oe.checked,N.toDisposeElement.add(Oe.onChecked(bi=>N.checkbox.checked=bi)),N.checkbox.disabled=Oe.checkboxDisabled;const{labelHighlights:_t,descriptionHighlights:Ot,detailHighlights:nn}=Oe;if(ot.iconPath){const bi=(0,Gn.HD)(this.themeService.getColorTheme().type)?ot.iconPath.dark:(ue=ot.iconPath.light)!==null&&ue!==void 0?ue:ot.iconPath.dark,ki=lt.r.revive(bi);N.icon.className="quick-input-list-icon",N.icon.style.backgroundImage=je.Tf(ki)}else N.icon.style.backgroundImage="",N.icon.className=ot.iconClass?`quick-input-list-icon ${ot.iconClass}`:"";let fn;!Oe.saneTooltip&&Oe.saneDescription&&(fn={markdown:{value:Oe.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:Oe.saneDescription});const wn={matches:_t||[],descriptionTitle:fn,descriptionMatches:Ot||[],labelEscapeNewLines:!0};if(wn.extraClasses=ot.iconClasses,wn.italic=ot.italic,wn.strikethrough=ot.strikethrough,N.entry.classList.remove("quick-input-list-separator-as-item"),N.label.setLabel(Oe.saneLabel,Oe.saneDescription,wn),N.keybinding.set(ot.keybinding),Oe.saneDetail){let bi;Oe.saneTooltip||(bi={markdown:{value:Oe.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:Oe.saneDetail}),N.detail.element.style.display="",N.detail.setLabel(Oe.saneDetail,void 0,{matches:nn,title:bi,labelEscapeNewLines:!0})}else N.detail.element.style.display="none";!((Ee=Oe.separator)===null||Ee===void 0)&&Ee.label?(N.separator.textContent=Oe.separator.label,N.separator.style.display="",this.addItemWithSeparator(Oe)):N.separator.style.display="none",N.entry.classList.toggle("quick-input-list-separator-border",!!Oe.separator);const Xn=ot.buttons;Xn&&Xn.length?(N.actionBar.push(Xn.map((bi,ki)=>tn(bi,`id-${ki}`,()=>Oe.fireButtonTriggered({button:bi,item:Oe.item}))),{icon:!0,label:!1}),N.entry.classList.add("has-actions")):N.entry.classList.remove("has-actions")}disposeElement(o,_,N){this.removeItemWithSeparator(o.element),super.disposeElement(o,_,N)}isItemWithSeparatorVisible(o){return this._itemsWithSeparatorsFrequency.has(o)}addItemWithSeparator(o){this._itemsWithSeparatorsFrequency.set(o,(this._itemsWithSeparatorsFrequency.get(o)||0)+1)}removeItemWithSeparator(o){const _=this._itemsWithSeparatorsFrequency.get(o)||0;_>1?this._itemsWithSeparatorsFrequency.set(o,_-1):this._itemsWithSeparatorsFrequency.delete(o)}};Rr.ID="quickpickitem",Rr=Wi=Ci([Ki(1,vn.Gy)],Rr);class Or extends ml{constructor(){super(...arguments),this._visibleSeparatorsFrequency=new Map}get templateId(){return Or.ID}get visibleSeparators(){return[...this._visibleSeparatorsFrequency.keys()]}isSeparatorVisible(o){return this._visibleSeparatorsFrequency.has(o)}renderElement(o,_,N){var se;const ue=o.element;N.element=ue,ue.element=(se=N.entry)!==null&&se!==void 0?se:void 0,ue.element.classList.toggle("focus-inside",!!ue.focusInsideSeparator);const Ee=ue.separator,{labelHighlights:Oe,descriptionHighlights:ot,detailHighlights:_t}=ue;N.icon.style.backgroundImage="",N.icon.className="";let Ot;!ue.saneTooltip&&ue.saneDescription&&(Ot={markdown:{value:ue.saneDescription,supportThemeIcons:!0},markdownNotSupportedFallback:ue.saneDescription});const nn={matches:Oe||[],descriptionTitle:Ot,descriptionMatches:ot||[],labelEscapeNewLines:!0};if(N.entry.classList.add("quick-input-list-separator-as-item"),N.label.setLabel(ue.saneLabel,ue.saneDescription,nn),ue.saneDetail){let wn;ue.saneTooltip||(wn={markdown:{value:ue.saneDetail,supportThemeIcons:!0},markdownNotSupportedFallback:ue.saneDetail}),N.detail.element.style.display="",N.detail.setLabel(ue.saneDetail,void 0,{matches:_t,title:wn,labelEscapeNewLines:!0})}else N.detail.element.style.display="none";N.separator.style.display="none",N.entry.classList.add("quick-input-list-separator-border");const fn=Ee.buttons;fn&&fn.length?(N.actionBar.push(fn.map((wn,Xn)=>tn(wn,`id-${Xn}`,()=>ue.fireSeparatorButtonTriggered({button:wn,separator:ue.separator}))),{icon:!0,label:!1}),N.entry.classList.add("has-actions")):N.entry.classList.remove("has-actions"),this.addSeparator(ue)}disposeElement(o,_,N){var se;this.removeSeparator(o.element),this.isSeparatorVisible(o.element)||(se=o.element.element)===null||se===void 0||se.classList.remove("focus-inside"),super.disposeElement(o,_,N)}addSeparator(o){this._visibleSeparatorsFrequency.set(o,(this._visibleSeparatorsFrequency.get(o)||0)+1)}removeSeparator(o){const _=this._visibleSeparatorsFrequency.get(o)||0;_>1?this._visibleSeparatorsFrequency.set(o,_-1):this._visibleSeparatorsFrequency.delete(o)}}Or.ID="quickpickseparator";let Ar=class extends we.jG{constructor(o,_,N,se,ue){super(),this.parent=o,this.hoverDelegate=_,this.linkOpenerDelegate=N,this._onKeyDown=new Ft.vl,this.onKeyDown=this._onKeyDown.event,this._onLeave=new Ft.vl,this.onLeave=this._onLeave.event,this._onChangedAllVisibleChecked=new Ft.vl,this.onChangedAllVisibleChecked=this._onChangedAllVisibleChecked.event,this._onChangedCheckedCount=new Ft.vl,this.onChangedCheckedCount=this._onChangedCheckedCount.event,this._onChangedVisibleCount=new Ft.vl,this.onChangedVisibleCount=this._onChangedVisibleCount.event,this._onChangedCheckedElements=new Ft.vl,this.onChangedCheckedElements=this._onChangedCheckedElements.event,this._onButtonTriggered=new Ft.vl,this.onButtonTriggered=this._onButtonTriggered.event,this._onSeparatorButtonTriggered=new Ft.vl,this.onSeparatorButtonTriggered=this._onSeparatorButtonTriggered.event,this._onTriggerEmptySelectionOrFocus=new Ft.vl,this._elementChecked=new Ft.vl,this._inputElements=new Array,this._elementTree=new Array,this._itemElements=new Array,this._elementDisposable=this._register(new we.Cm),this._shouldFireCheckedEvents=!0,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._container=je.BC(this.parent,Zi(".quick-input-list")),this._separatorRenderer=new Or(_),this._itemRenderer=ue.createInstance(Rr,_),this._tree=this._register(ue.createInstance(mn.zL,"QuickInput",this._container,new rd,[this._itemRenderer,this._separatorRenderer],{accessibilityProvider:new ad,setRowLineHeight:!1,multipleSelectionSupport:!1,hideTwistiesOfChildlessElements:!0,renderIndentGuides:gi.KP.None,findWidgetEnabled:!1,indent:0,horizontalScrolling:!1,allowNonCollapsibleParents:!0,identityProvider:{getId:Ee=>{var Oe,ot,_t,Ot,nn,fn,wn,Xn;return(Xn=(fn=(Ot=(ot=(Oe=Ee.item)===null||Oe===void 0?void 0:Oe.id)!==null&&ot!==void 0?ot:(_t=Ee.item)===null||_t===void 0?void 0:_t.label)!==null&&Ot!==void 0?Ot:(nn=Ee.separator)===null||nn===void 0?void 0:nn.id)!==null&&fn!==void 0?fn:(wn=Ee.separator)===null||wn===void 0?void 0:wn.label)!==null&&Xn!==void 0?Xn:""}},alwaysConsumeMouseWheel:!0})),this._tree.getHTMLElement().id=se,this._registerListeners()}get onDidChangeFocus(){return Ft.Jh.map(Ft.Jh.any(this._tree.onDidChangeFocus,this._onTriggerEmptySelectionOrFocus.event),o=>o.elements.filter(_=>_ instanceof Bi).map(_=>_.item))}get onDidChangeSelection(){return Ft.Jh.map(Ft.Jh.any(this._tree.onDidChangeSelection,this._onTriggerEmptySelectionOrFocus.event),o=>({items:o.elements.filter(_=>_ instanceof Bi).map(_=>_.item),event:o.browserEvent}))}get scrollTop(){return this._tree.scrollTop}set scrollTop(o){this._tree.scrollTop=o}get ariaLabel(){return this._tree.ariaLabel}set ariaLabel(o){this._tree.ariaLabel=o??""}set enabled(o){this._tree.getHTMLElement().style.pointerEvents=o?"":"none"}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(o){this._matchOnDescription=o}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(o){this._matchOnDetail=o}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(o){this._matchOnLabel=o}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(o){this._matchOnLabelMode=o}get sortByLabel(){return this._sortByLabel}set sortByLabel(o){this._sortByLabel=o}_registerListeners(){this._registerOnKeyDown(),this._registerOnContainerClick(),this._registerOnMouseMiddleClick(),this._registerOnElementChecked(),this._registerOnContextMenu(),this._registerHoverListeners(),this._registerSelectionChangeListener(),this._registerSeparatorActionShowingListeners()}_registerOnKeyDown(){this._register(this._tree.onKeyDown(o=>{const _=new Xi.Z(o);switch(_.keyCode){case 10:this.toggleCheckbox();break;case 31:(hi.zx?o.metaKey:o.ctrlKey)&&this._tree.setFocus(this._itemElements);break;case 16:{const N=this._tree.getFocus();N.length===1&&N[0]===this._itemElements[0]&&this._onLeave.fire();break}case 18:{const N=this._tree.getFocus();N.length===1&&N[0]===this._itemElements[this._itemElements.length-1]&&this._onLeave.fire();break}}this._onKeyDown.fire(_)}))}_registerOnContainerClick(){this._register(je.ko(this._container,je.Bx.CLICK,o=>{(o.x||o.y)&&this._onLeave.fire()}))}_registerOnMouseMiddleClick(){this._register(je.ko(this._container,je.Bx.AUXCLICK,o=>{o.button===1&&this._onLeave.fire()}))}_registerOnElementChecked(){this._register(this._elementChecked.event(o=>this._fireCheckedEvents()))}_registerOnContextMenu(){this._register(this._tree.onContextMenu(o=>{o.element&&(o.browserEvent.preventDefault(),this._tree.setSelection([o.element]))}))}_registerHoverListeners(){const o=this._register(new Co.Th(this.hoverDelegate.delay));this._register(this._tree.onMouseOver(async _=>{var N;if(_.browserEvent.target instanceof HTMLAnchorElement){o.cancel();return}if(!(!(_.browserEvent.relatedTarget instanceof HTMLAnchorElement)&&je.QX(_.browserEvent.relatedTarget,(N=_.element)===null||N===void 0?void 0:N.element)))try{await o.trigger(async()=>{_.element instanceof Bi&&this.showHover(_.element)})}catch(se){if(!(0,Jn.MB)(se))throw se}})),this._register(this._tree.onMouseOut(_=>{var N;je.QX(_.browserEvent.relatedTarget,(N=_.element)===null||N===void 0?void 0:N.element)||o.cancel()}))}_registerSeparatorActionShowingListeners(){this._register(this._tree.onDidChangeFocus(o=>{const _=o.elements[0]?this._tree.getParentElement(o.elements[0]):null;for(const N of this._separatorRenderer.visibleSeparators){const se=N===_;!!(N.focusInsideSeparator&$i.ACTIVE_ITEM)!==se&&(se?N.focusInsideSeparator|=$i.ACTIVE_ITEM:N.focusInsideSeparator&=~$i.ACTIVE_ITEM,this._tree.rerender(N))}})),this._register(this._tree.onMouseOver(o=>{const _=o.element?this._tree.getParentElement(o.element):null;for(const N of this._separatorRenderer.visibleSeparators){if(N!==_)continue;!!(N.focusInsideSeparator&$i.MOUSE_HOVER)||(N.focusInsideSeparator|=$i.MOUSE_HOVER,this._tree.rerender(N))}})),this._register(this._tree.onMouseOut(o=>{const _=o.element?this._tree.getParentElement(o.element):null;for(const N of this._separatorRenderer.visibleSeparators){if(N!==_)continue;!!(N.focusInsideSeparator&$i.MOUSE_HOVER)&&(N.focusInsideSeparator&=~$i.MOUSE_HOVER,this._tree.rerender(N))}}))}_registerSelectionChangeListener(){this._register(this._tree.onDidChangeSelection(o=>{const _=o.elements.filter(N=>N instanceof Bi);_.length!==o.elements.length&&(o.elements.length===1&&o.elements[0]instanceof mo&&(this._tree.setFocus([o.elements[0].children[0]]),this._tree.reveal(o.elements[0],0)),this._tree.setSelection(_))}))}getAllVisibleChecked(){return this._allVisibleChecked(this._itemElements,!1)}getCheckedCount(){return this._itemElements.filter(o=>o.checked).length}getVisibleCount(){return this._itemElements.filter(o=>!o.hidden).length}setAllVisibleChecked(o){try{this._shouldFireCheckedEvents=!1,this._itemElements.forEach(_=>{!_.hidden&&!_.checkboxDisabled&&(_.checked=o)})}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}setElements(o){this._elementDisposable.clear(),this._inputElements=o;const _=this.parent.classList.contains("show-checkboxes");let N;this._itemElements=new Array,this._elementTree=o.reduce((Ee,Oe,ot)=>{let _t;if(Oe.type==="separator"){if(!Oe.buttons)return Ee;N=new mo(ot,Ot=>this.fireSeparatorButtonTriggered(Ot),Oe),_t=N}else{const Ot=ot>0?o[ot-1]:void 0;let nn;Ot&&Ot.type==="separator"&&!Ot.buttons&&(N=void 0,nn=Ot);const fn=new Bi(ot,_,wn=>this.fireButtonTriggered(wn),this._elementChecked,Oe,nn);if(this._itemElements.push(fn),N)return N.children.push(fn),Ee;_t=fn}return Ee.push(_t),Ee},new Array);const se=new Array;let ue=0;for(const Ee of this._elementTree)Ee instanceof mo?(se.push({element:Ee,collapsible:!1,collapsed:!1,children:Ee.children.map(Oe=>({element:Oe,collapsible:!1,collapsed:!1}))}),ue+=Ee.children.length+1):(se.push({element:Ee,collapsible:!1,collapsed:!1}),ue++);this._tree.setChildren(null,se),this._onChangedVisibleCount.fire(ue)}setFocusedElements(o){const _=o.map(N=>this._itemElements.find(se=>se.item===N)).filter(N=>!!N);if(this._tree.setFocus(_),o.length>0){const N=this._tree.getFocus()[0];N&&this._tree.reveal(N)}}getActiveDescendant(){return this._tree.getHTMLElement().getAttribute("aria-activedescendant")}setSelectedElements(o){const _=o.map(N=>this._itemElements.find(se=>se.item===N)).filter(N=>!!N);this._tree.setSelection(_)}getCheckedElements(){return this._itemElements.filter(o=>o.checked).map(o=>o.item)}setCheckedElements(o){try{this._shouldFireCheckedEvents=!1;const _=new Set;for(const N of o)_.add(N);for(const N of this._itemElements)N.checked=_.has(N.item)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}focus(o){var _;if(this._itemElements.length)switch(o===Oi.Second&&this._itemElements.length<2&&(o=Oi.First),o){case Oi.First:this._tree.scrollTop=0,this._tree.focusFirst(void 0,N=>N.element instanceof Bi);break;case Oi.Second:this._tree.scrollTop=0,this._tree.setFocus([this._itemElements[1]]);break;case Oi.Last:this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]);break;case Oi.Next:this._tree.focusNext(void 0,!0,void 0,N=>N.element instanceof Bi?(this._tree.reveal(N.element),!0):!1);break;case Oi.Previous:this._tree.focusPrevious(void 0,!0,void 0,N=>{if(!(N.element instanceof Bi))return!1;const se=this._tree.getParentElement(N.element);return se===null||se.children[0]!==N.element?this._tree.reveal(N.element):this._tree.reveal(se),!0});break;case Oi.NextPage:this._tree.focusNextPage(void 0,N=>N.element instanceof Bi?(this._tree.reveal(N.element),!0):!1);break;case Oi.PreviousPage:this._tree.focusPreviousPage(void 0,N=>{if(!(N.element instanceof Bi))return!1;const se=this._tree.getParentElement(N.element);return se===null||se.children[0]!==N.element?this._tree.reveal(N.element):this._tree.reveal(se),!0});break;case Oi.NextSeparator:{let N=!1;const se=this._tree.getFocus()[0];this._tree.focusNext(void 0,!0,void 0,Ee=>{if(N)return!0;if(Ee.element instanceof mo)N=!0,this._separatorRenderer.isSeparatorVisible(Ee.element)?this._tree.reveal(Ee.element.children[0]):this._tree.reveal(Ee.element,0);else if(Ee.element instanceof Bi){if(Ee.element.separator)return this._itemRenderer.isItemWithSeparatorVisible(Ee.element)?this._tree.reveal(Ee.element):this._tree.reveal(Ee.element,0),!0;if(Ee.element===this._elementTree[0])return this._tree.reveal(Ee.element,0),!0}return!1});const ue=this._tree.getFocus()[0];se===ue&&(this._tree.scrollTop=this._tree.scrollHeight,this._tree.setFocus([this._itemElements[this._itemElements.length-1]]));break}case Oi.PreviousSeparator:{let N,se=!!(!((_=this._tree.getFocus()[0])===null||_===void 0)&&_.separator);this._tree.focusPrevious(void 0,!0,void 0,ue=>{if(ue.element instanceof mo)se?N||(this._separatorRenderer.isSeparatorVisible(ue.element)?this._tree.reveal(ue.element):this._tree.reveal(ue.element,0),N=ue.element.children[0]):se=!0;else if(ue.element instanceof Bi&&!N){if(ue.element.separator)this._itemRenderer.isItemWithSeparatorVisible(ue.element)?this._tree.reveal(ue.element):this._tree.reveal(ue.element,0),N=ue.element;else if(ue.element===this._elementTree[0])return this._tree.reveal(ue.element,0),!0}return!1}),N&&this._tree.setFocus([N]);break}}}clearFocus(){this._tree.setFocus([])}domFocus(){this._tree.domFocus()}layout(o){this._tree.getHTMLElement().style.maxHeight=o?`${Math.floor(o/44)*44+6}px`:"",this._tree.layout()}filter(o){if(!(this._sortByLabel||this._matchOnLabel||this._matchOnDescription||this._matchOnDetail))return this._tree.layout(),!1;const _=o;if(o=o.trim(),!o||!(this.matchOnLabel||this.matchOnDescription||this.matchOnDetail))this._itemElements.forEach(ot=>{ot.labelHighlights=void 0,ot.descriptionHighlights=void 0,ot.detailHighlights=void 0,ot.hidden=!1;const _t=ot.index&&this._inputElements[ot.index-1];ot.item&&(ot.separator=_t&&_t.type==="separator"&&!_t.buttons?_t:void 0)});else{let ot;this._elementTree.forEach(_t=>{var Ot,nn,fn,wn;let Xn;this.matchOnLabelMode==="fuzzy"?Xn=this.matchOnLabel&&(Ot=(0,zo.pz)(o,(0,zo._k)(_t.saneLabel)))!==null&&Ot!==void 0?Ot:void 0:Xn=this.matchOnLabel&&(nn=ld(_,(0,zo._k)(_t.saneLabel)))!==null&&nn!==void 0?nn:void 0;const bi=this.matchOnDescription&&(fn=(0,zo.pz)(o,(0,zo._k)(_t.saneDescription||"")))!==null&&fn!==void 0?fn:void 0,ki=this.matchOnDetail&&(wn=(0,zo.pz)(o,(0,zo._k)(_t.saneDetail||"")))!==null&&wn!==void 0?wn:void 0;if(Xn||bi||ki?(_t.labelHighlights=Xn,_t.descriptionHighlights=bi,_t.detailHighlights=ki,_t.hidden=!1):(_t.labelHighlights=void 0,_t.descriptionHighlights=void 0,_t.detailHighlights=void 0,_t.hidden=_t.item?!_t.item.alwaysShow:!0),_t.item?_t.separator=void 0:_t.separator&&(_t.hidden=!0),!this.sortByLabel){const Fi=_t.index&&this._inputElements[_t.index-1];ot=Fi&&Fi.type==="separator"?Fi:ot,ot&&!_t.hidden&&(_t.separator=ot,ot=void 0)}})}const N=this._elementTree.filter(ot=>!ot.hidden);if(this.sortByLabel&&o){const ot=o.toLowerCase();N.sort((_t,Ot)=>dd(_t,Ot,ot))}let se;const ue=N.reduce((ot,_t,Ot)=>(_t instanceof Bi?se?se.children.push(_t):ot.push(_t):_t instanceof mo&&(_t.children=[],se=_t,ot.push(_t)),ot),new Array),Ee=new Array;for(const ot of ue)ot instanceof mo?Ee.push({element:ot,collapsible:!1,collapsed:!1,children:ot.children.map(_t=>({element:_t,collapsible:!1,collapsed:!1}))}):Ee.push({element:ot,collapsible:!1,collapsed:!1});const Oe=this._tree.getFocus().length;return this._tree.setChildren(null,Ee),Oe>0&&Ee.length===0&&this._onTriggerEmptySelectionOrFocus.fire({elements:[]}),this._tree.layout(),this._onChangedAllVisibleChecked.fire(this.getAllVisibleChecked()),this._onChangedVisibleCount.fire(N.length),!0}toggleCheckbox(){try{this._shouldFireCheckedEvents=!1;const o=this._tree.getFocus().filter(N=>N instanceof Bi),_=this._allVisibleChecked(o);for(const N of o)N.checkboxDisabled||(N.checked=!_)}finally{this._shouldFireCheckedEvents=!0,this._fireCheckedEvents()}}display(o){this._container.style.display=o?"":"none"}isDisplayed(){return this._container.style.display!=="none"}style(o){this._tree.style(o)}toggleHover(){const o=this._tree.getFocus()[0];if(!o?.saneTooltip||!(o instanceof Bi))return;if(this._lastHover&&!this._lastHover.isDisposed){this._lastHover.dispose();return}this.showHover(o);const _=new we.Cm;_.add(this._tree.onDidChangeFocus(N=>{N.elements[0]instanceof Bi&&this.showHover(N.elements[0])})),this._lastHover&&_.add(this._lastHover),this._elementDisposable.add(_)}_allVisibleChecked(o,_=!0){for(let N=0,se=o.length;N{this.linkOpenerDelegate(ue)},appearance:{showPointer:!0},container:this._container,position:{hoverPosition:1}},!1))}};Ci([ke.B],Ar.prototype,"onDidChangeFocus",null),Ci([ke.B],Ar.prototype,"onDidChangeSelection",null),Ar=Ci([Ki(4,Dn._Y)],Ar);function ld(Ie,o){const{text:_,iconOffsets:N}=o;if(!N||N.length===0)return gl(Ie,_);const se=(0,Ue.NB)(_," "),ue=_.length-se.length,Ee=gl(Ie,se);if(Ee)for(const Oe of Ee){const ot=N[Oe.start+ue]+ue;Oe.start+=ot,Oe.end+=ot}return Ee}function gl(Ie,o){const _=o.toLowerCase().indexOf(Ie.toLowerCase());return _!==-1?[{start:_,end:_+Ie.length}]:null}function dd(Ie,o,_){const N=Ie.labelHighlights||[],se=o.labelHighlights||[];return N.length&&!se.length?-1:!N.length&&se.length?1:N.length===0&&se.length===0?0:li(Ie.saneSortLabel,o.saneSortLabel,_)}var cd=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},fl=function(Ie,o){return function(_,N){o(_,N,Ie)}};const Pa={iconClass:br.L.asClassName(ls.W.quickInputBack),tooltip:(0,Rn.kg)("quickInput.back","Back"),handle:-1};class Nr extends we.jG{constructor(o){super(),this.ui=o,this._widgetUpdated=!1,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.buttonsUpdated=!1,this._toggles=[],this.togglesUpdated=!1,this.noValidationMessage=Nr.noPromptMessage,this._severity=Un.A.Ignore,this.onDidTriggerButtonEmitter=this._register(new Ft.vl),this.onDidHideEmitter=this._register(new Ft.vl),this.onWillHideEmitter=this._register(new Ft.vl),this.onDisposeEmitter=this._register(new Ft.vl),this.visibleDisposables=this._register(new we.Cm),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(o){this._title=o,this.update()}get description(){return this._description}set description(o){this._description=o,this.update()}get step(){return this._steps}set step(o){this._steps=o,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(o){this._totalSteps=o,this.update()}get enabled(){return this._enabled}set enabled(o){this._enabled=o,this.update()}get contextKey(){return this._contextKey}set contextKey(o){this._contextKey=o,this.update()}get busy(){return this._busy}set busy(o){this._busy=o,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(o){const _=this._ignoreFocusOut!==o&&!hi.un;this._ignoreFocusOut=o&&!hi.un,_&&this.update()}get buttons(){return this._buttons}set buttons(o){this._buttons=o,this.buttonsUpdated=!0,this.update()}get toggles(){return this._toggles}set toggles(o){this._toggles=o??[],this.togglesUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(o){this._validationMessage=o,this.update()}get severity(){return this._severity}set severity(o){this._severity=o,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.onDidTriggerButton(o=>{this.buttons.indexOf(o)!==-1&&this.onDidTriggerButtonEmitter.fire(o)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.toggles.length&&(this.togglesUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(o=Io.kF.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:o})}willHide(o=Io.kF.Other){this.onWillHideEmitter.fire({reason:o})}update(){var o,_;if(!this.visible)return;const N=this.getTitle();N&&this.ui.title.textContent!==N?this.ui.title.textContent=N:!N&&this.ui.title.innerHTML!==" "&&(this.ui.title.innerText="\xA0");const se=this.getDescription();if(this.ui.description1.textContent!==se&&(this.ui.description1.textContent=se),this.ui.description2.textContent!==se&&(this.ui.description2.textContent=se),this._widgetUpdated&&(this._widgetUpdated=!1,this._widget?je.Ln(this.ui.widget,this._widget):je.Ln(this.ui.widget)),this.busy&&!this.busyDelay&&(this.busyDelay=new Co.pc,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();const Ee=this.buttons.filter(ot=>ot===Pa).map((ot,_t)=>tn(ot,`id-${_t}`,async()=>this.onDidTriggerButtonEmitter.fire(ot)));this.ui.leftActionBar.push(Ee,{icon:!0,label:!1}),this.ui.rightActionBar.clear();const Oe=this.buttons.filter(ot=>ot!==Pa).map((ot,_t)=>tn(ot,`id-${_t}`,async()=>this.onDidTriggerButtonEmitter.fire(ot)));this.ui.rightActionBar.push(Oe,{icon:!0,label:!1})}if(this.togglesUpdated){this.togglesUpdated=!1;const Ee=(_=(o=this.toggles)===null||o===void 0?void 0:o.filter(Oe=>Oe instanceof y.l))!==null&&_!==void 0?_:[];this.ui.inputBox.toggles=Ee}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);const ue=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==ue&&(this._lastValidationMessage=ue,je.Ln(this.ui.message),gn(ue,this.ui.message,{callback:Ee=>{this.ui.linkOpenerDelegate(Ee)},disposables:this.visibleDisposables})),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,Rn.kg)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(o){if(this.ui.inputBox.showDecoration(o),o!==Un.A.Ignore){const _=this.ui.inputBox.stylesForType(o);this.ui.message.style.color=_.foreground?`${_.foreground}`:"",this.ui.message.style.backgroundColor=_.background?`${_.background}`:"",this.ui.message.style.border=_.border?`1px solid ${_.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}Nr.noPromptMessage=(0,Rn.kg)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class jr extends Nr{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new Ft.vl),this.onWillAcceptEmitter=this._register(new Ft.vl),this.onDidAcceptEmitter=this._register(new Ft.vl),this.onDidCustomEmitter=this._register(new Ft.vl),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._keepScrollPosition=!1,this._itemActivation=Io.C1.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new Ft.vl),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new Ft.vl),this.onDidTriggerItemButtonEmitter=this._register(new Ft.vl),this.onDidTriggerSeparatorButtonEmitter=this._register(new Ft.vl),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=o=>o,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event,this.onDidTriggerSeparatorButton=this.onDidTriggerSeparatorButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(o){this._quickNavigate=o,this.update()}get value(){return this._value}set value(o){this.doSetValue(o)}doSetValue(o,_){this._value!==o&&(this._value=o,_||this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(o){this._ariaLabel=o,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(o){this._placeholder=o,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(o){this.ui.list.scrollTop=o}set items(o){this._items=o,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(o){this._canSelectMany=o,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(o){this._canAcceptInBackground=o}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(o){this._matchOnDescription=o,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(o){this._matchOnDetail=o,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(o){this._matchOnLabel=o,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(o){this._matchOnLabelMode=o,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(o){this._sortByLabel=o,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(o){this._keepScrollPosition=o}get itemActivation(){return this._itemActivation}set itemActivation(o){this._itemActivation=o}get activeItems(){return this._activeItems}set activeItems(o){this._activeItems=o,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(o){this._selectedItems=o,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?Io.Ym:this.ui.keyMods}get valueSelection(){const o=this.ui.inputBox.getSelection();if(o)return[o.start,o.end]}set valueSelection(o){this._valueSelection=o,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(o){this._customButton=o,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(o){this._customButtonLabel=o,this.update()}get customHover(){return this._customButtonHover}set customHover(o){this._customButtonHover=o,this.update()}get ok(){return this._ok}set ok(o){this._ok=o,this.update()}get hideInput(){return!!this._hideInput}set hideInput(o){this._hideInput=o,this.update()}trySelectFirst(){this.canSelectMany||this.ui.list.focus(Oi.First)}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(o=>{this.doSetValue(o,!0)})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(o=>{switch(o.keyCode){case 18:(hi.zx?o.metaKey:o.altKey)?this.ui.list.focus(Oi.NextSeparator):this.ui.list.focus(Oi.Next),this.canSelectMany&&this.ui.list.domFocus(),je.fs.stop(o,!0);break;case 16:(hi.zx?o.metaKey:o.altKey)?this.ui.list.focus(Oi.PreviousSeparator):this.ui.list.focus(Oi.Previous),this.canSelectMany&&this.ui.list.domFocus(),je.fs.stop(o,!0);break;case 12:this.ui.list.focus(Oi.NextPage),this.canSelectMany&&this.ui.list.domFocus(),je.fs.stop(o,!0);break;case 11:this.ui.list.focus(Oi.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),je.fs.stop(o,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(o.ctrlKey||o.metaKey)&&!o.shiftKey&&!o.altKey&&(this.ui.list.focus(Oi.First),je.fs.stop(o,!0));break;case 13:(o.ctrlKey||o.metaKey)&&!o.shiftKey&&!o.altKey&&(this.ui.list.focus(Oi.Last),je.fs.stop(o,!0));break}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?this.ui.list.getCheckedElements().length||(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(o=>{this.activeItemsUpdated||this.activeItemsToConfirm!==this._activeItems&&(0,hn.aI)(o,this._activeItems,(_,N)=>_===N)||(this._activeItems=o,this.onDidChangeActiveEmitter.fire(o))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:o,event:_})=>{if(this.canSelectMany){o.length&&this.ui.list.setSelectedElements([]);return}this.selectedItemsToConfirm!==this._selectedItems&&(0,hn.aI)(o,this._selectedItems,(N,se)=>N===se)||(this._selectedItems=o,this.onDidChangeSelectionEmitter.fire(o),o.length&&this.handleAccept(je.Er(_)&&_.button===1))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(o=>{this.canSelectMany&&(this.selectedItemsToConfirm!==this._selectedItems&&(0,hn.aI)(o,this._selectedItems,(_,N)=>_===N)||(this._selectedItems=o,this.onDidChangeSelectionEmitter.fire(o)))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(o=>this.onDidTriggerItemButtonEmitter.fire(o))),this.visibleDisposables.add(this.ui.list.onSeparatorButtonTriggered(o=>this.onDidTriggerSeparatorButtonEmitter.fire(o))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(o){let _=!1;this.onWillAcceptEmitter.fire({veto:()=>_=!0}),_||this.onDidAcceptEmitter.fire({inBackground:o})}registerQuickNavigation(){return je.ko(this.ui.container,je.Bx.KEY_UP,o=>{if(this.canSelectMany||!this._quickNavigate)return;const _=new Xi.Z(o),N=_.keyCode;this._quickNavigate.keybindings.some(Ee=>{const Oe=Ee.getChords();return Oe.length>1?!1:Oe[0].shiftKey&&N===4?!(_.ctrlKey||_.altKey||_.metaKey):!!(Oe[0].altKey&&N===6||Oe[0].ctrlKey&&N===5||Oe[0].metaKey&&N===57)})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;const o=this.keepScrollPosition?this.scrollTop:0,_=!!this.description,N={title:!!this.title||!!this.step||!!this.buttons.length,description:_,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!this._hideInput,progressBar:!this._hideInput||_,visibleCount:!0,count:this.canSelectMany&&!this._hideCountBadge,ok:this.ok==="default"?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(N),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let se=this.ariaLabel;if(!se&&N.inputBox&&(se=this.placeholder||jr.DEFAULT_ARIA_LABEL,this.title&&(se+=` - ${this.title}`)),this.ui.list.ariaLabel!==se&&(this.ui.list.ariaLabel=se??null),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated){this.itemsUpdated=!1;const ue=this._activeItems;switch(this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case Io.C1.NONE:ue.length>0&&(this._activeItems=[],this.onDidChangeActiveEmitter.fire(this._activeItems)),this._itemActivation=Io.C1.FIRST;break;case Io.C1.SECOND:this.ui.list.focus(Oi.Second),this._itemActivation=Io.C1.FIRST;break;case Io.C1.LAST:this.ui.list.focus(Oi.Last),this._itemActivation=Io.C1.FIRST;break;default:this.trySelectFirst();break}}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",N.inputBox||(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(Oi.First)),this.keepScrollPosition&&(this.scrollTop=o)}}jr.DEFAULT_ARIA_LABEL=(0,Rn.kg)("quickInputBox.ariaLabel","Type to narrow down results.");class ud extends Nr{constructor(){super(...arguments),this._value="",this.valueSelectionUpdated=!0,this._password=!1,this.onDidValueChangeEmitter=this._register(new Ft.vl),this.onDidAcceptEmitter=this._register(new Ft.vl),this.onDidChangeValue=this.onDidValueChangeEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event}get value(){return this._value}set value(o){this._value=o||"",this.update()}get placeholder(){return this._placeholder}set placeholder(o){this._placeholder=o,this.update()}get password(){return this._password}set password(o){this._password=o,this.update()}show(){this.visible||(this.visibleDisposables.add(this.ui.inputBox.onDidChange(o=>{o!==this.value&&(this._value=o,this.onDidValueChangeEmitter.fire(o))})),this.visibleDisposables.add(this.ui.onDidAccept(()=>this.onDidAcceptEmitter.fire())),this.valueSelectionUpdated=!0),super.show()}update(){if(!this.visible)return;this.ui.container.classList.remove("hidden-input");const o={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description||!!this.step,inputBox:!0,message:!0,progressBar:!0};this.ui.setVisibilities(o),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||""),this.ui.inputBox.password!==this.password&&(this.ui.inputBox.password=this.password)}}let Ra=class extends $t.fO{constructor(o,_){super("element",!1,N=>this.getOverrideOptions(N),o,_)}getOverrideOptions(o){var _;const N=(o.content instanceof HTMLElement?(_=o.content.textContent)!==null&&_!==void 0?_:"":typeof o.content=="string"?o.content:o.content.value).includes(` `);return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:N,skipFadeInAnimation:!0}}}};Ra=cd([fl(0,mt.pG),fl(1,$t.TN)],Ra);var Oa=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/button/button.js"),pl=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/countBadge/countBadge.js");const _l="done",vl="active",Aa="infinite",Na="infinite-long-running",bl="discrete";class oa extends we.jG{constructor(o,_){super(),this.workedVal=0,this.showDelayedScheduler=this._register(new Co.uC(()=>(0,je.WU)(this.element),0)),this.longRunningScheduler=this._register(new Co.uC(()=>this.infiniteLongRunning(),oa.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(o,_)}create(o,_){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),o.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=_?.progressBarBackground||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(vl,Aa,Na,bl),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(o){return this.element.classList.add(_l),this.element.classList.contains(Aa)?(this.bit.style.opacity="0",o?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",o?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(bl,_l,Na),this.element.classList.add(vl,Aa),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Na)}getContainer(){return this.element}}oa.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var hd=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInput.js");const md=je.$;class gd extends we.jG{constructor(o,_,N){super(),this.parent=o,this.onKeyDown=ue=>je.b2(this.findInput.inputBox.inputElement,je.Bx.KEY_DOWN,ue),this.onDidChange=ue=>this.findInput.onDidChange(ue),this.container=je.BC(this.parent,md(".quick-input-box")),this.findInput=this._register(new hd.c(this.container,void 0,{label:"",inputBoxStyles:_,toggleStyles:N}));const se=this.findInput.inputBox.inputElement;se.role="combobox",se.ariaHasPopup="menu",se.ariaAutoComplete="list",se.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(o){this.findInput.setValue(o)}select(o=null){this.findInput.inputBox.select(o)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(o){this.findInput.inputBox.setPlaceHolder(o)}get password(){return this.findInput.inputBox.inputElement.type==="password"}set password(o){this.findInput.inputBox.inputElement.type=o?"password":"text"}set enabled(o){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!o)}set toggles(o){this.findInput.setAdditionalToggles(o)}setAttribute(o,_){this.findInput.inputBox.inputElement.setAttribute(o,_)}showDecoration(o){o===Un.A.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:o===Un.A.Info?1:o===Un.A.Warning?2:3,content:""})}stylesForType(o){return this.findInput.inputBox.stylesForType(o===Un.A.Info?1:o===Un.A.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var fd=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Cl=function(Ie,o){return function(_,N){o(_,N,Ie)}},ja;const Oo=je.$;let sa=ja=class extends we.jG{get container(){return this._container}constructor(o,_,N){super(),this.options=o,this.layoutService=_,this.instantiationService=N,this.enabled=!0,this.onDidAcceptEmitter=this._register(new Ft.vl),this.onDidCustomEmitter=this._register(new Ft.vl),this.onDidTriggerButtonEmitter=this._register(new Ft.vl),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new Ft.vl),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new Ft.vl),this.onHide=this.onHideEmitter.event,this.idPrefix=o.idPrefix,this._container=o.container,this.styles=o.styles,this._register(Ft.Jh.runAndSubscribe(je.Iv,({window:se,disposables:ue})=>this.registerKeyModsListeners(se,ue),{window:We.G,disposables:this._store})),this._register(je.q3(se=>{this.ui&&je.zk(this.ui.container)===se&&(this.reparentUI(this.layoutService.mainContainer),this.layout(this.layoutService.mainContainerDimension,this.layoutService.mainContainerOffset.quickPickTop))}))}registerKeyModsListeners(o,_){const N=se=>{this.keyMods.ctrlCmd=se.ctrlKey||se.metaKey,this.keyMods.alt=se.altKey};for(const se of[je.Bx.KEY_DOWN,je.Bx.KEY_UP,je.Bx.MOUSE_DOWN])_.add(je.ko(o,se,N,!0))}getUI(o){if(this.ui)return o&&je.zk(this._container)!==je.zk(this.layoutService.activeContainer)&&(this.reparentUI(this.layoutService.activeContainer),this.layout(this.layoutService.activeContainerDimension,this.layoutService.activeContainerOffset.quickPickTop)),this.ui;const _=je.BC(this._container,Oo(".quick-input-widget.show-file-icons"));_.tabIndex=-1,_.style.display="none";const N=je.li(_),se=je.BC(_,Oo(".quick-input-titlebar")),ue=this._register(new tr.E(se,{hoverDelegate:this.options.hoverDelegate}));ue.domNode.classList.add("quick-input-left-action-bar");const Ee=je.BC(se,Oo(".quick-input-title")),Oe=this._register(new tr.E(se,{hoverDelegate:this.options.hoverDelegate}));Oe.domNode.classList.add("quick-input-right-action-bar");const ot=je.BC(_,Oo(".quick-input-header")),_t=je.BC(ot,Oo("input.quick-input-check-all"));_t.type="checkbox",_t.setAttribute("aria-label",(0,Rn.kg)("quickInput.checkAll","Toggle all checkboxes")),this._register(je.b2(_t,je.Bx.CHANGE,Ni=>{const Ps=_t.checked;vo.setAllVisibleChecked(Ps)})),this._register(je.ko(_t,je.Bx.CLICK,Ni=>{(Ni.x||Ni.y)&&wn.setFocus()}));const Ot=je.BC(ot,Oo(".quick-input-description")),nn=je.BC(ot,Oo(".quick-input-and-message")),fn=je.BC(nn,Oo(".quick-input-filter")),wn=this._register(new gd(fn,this.styles.inputBox,this.styles.toggle));wn.setAttribute("aria-describedby",`${this.idPrefix}message`);const Xn=je.BC(fn,Oo(".quick-input-visible-count"));Xn.setAttribute("aria-live","polite"),Xn.setAttribute("aria-atomic","true");const bi=new pl.x(Xn,{countFormat:(0,Rn.kg)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")},this.styles.countBadge),ki=je.BC(fn,Oo(".quick-input-count"));ki.setAttribute("aria-live","polite");const Fi=new pl.x(ki,{countFormat:(0,Rn.kg)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")},this.styles.countBadge),Hi=je.BC(ot,Oo(".quick-input-action")),Gi=this._register(new Oa.$(Hi,this.styles.button));Gi.label=(0,Rn.kg)("ok","OK"),this._register(Gi.onDidClick(Ni=>{this.onDidAcceptEmitter.fire()}));const Li=je.BC(ot,Oo(".quick-input-action")),to=this._register(new Oa.$(Li,{...this.styles.button,supportIcons:!0}));to.label=(0,Rn.kg)("custom","Custom"),this._register(to.onDidClick(Ni=>{this.onDidCustomEmitter.fire()}));const Ao=je.BC(nn,Oo(`#${this.idPrefix}message.quick-input-message`)),ro=this._register(new oa(_,this.styles.progressBar));ro.getContainer().classList.add("quick-input-progress");const Ts=je.BC(_,Oo(".quick-input-html-widget"));Ts.tabIndex=-1;const Ui=je.BC(_,Oo(".quick-input-description")),_o=this.idPrefix+"list",vo=this._register(this.instantiationService.createInstance(Ar,_,this.options.hoverDelegate,this.options.linkOpenerDelegate,_o));wn.setAttribute("aria-controls",_o),this._register(vo.onDidChangeFocus(()=>{var Ni;wn.setAttribute("aria-activedescendant",(Ni=vo.getActiveDescendant())!==null&&Ni!==void 0?Ni:"")})),this._register(vo.onChangedAllVisibleChecked(Ni=>{_t.checked=Ni})),this._register(vo.onChangedVisibleCount(Ni=>{bi.setCount(Ni)})),this._register(vo.onChangedCheckedCount(Ni=>{Fi.setCount(Ni)})),this._register(vo.onLeave(()=>{setTimeout(()=>{this.controller&&(wn.setFocus(),this.controller instanceof jr&&this.controller.canSelectMany&&vo.clearFocus())},0)}));const va=je.w5(_);return this._register(va),this._register(je.ko(_,je.Bx.FOCUS,Ni=>{je.QX(Ni.relatedTarget,_)||(this.previousFocusElement=Ni.relatedTarget instanceof HTMLElement?Ni.relatedTarget:void 0)},!0)),this._register(va.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(Io.kF.Blur),this.previousFocusElement=void 0})),this._register(je.ko(_,je.Bx.FOCUS,Ni=>{wn.setFocus()})),this._register(je.b2(_,je.Bx.KEY_DOWN,Ni=>{if(!je.QX(Ni.target,Ts))switch(Ni.keyCode){case 3:je.fs.stop(Ni,!0),this.enabled&&this.onDidAcceptEmitter.fire();break;case 9:je.fs.stop(Ni,!0),this.hide(Io.kF.Gesture);break;case 2:if(!Ni.altKey&&!Ni.ctrlKey&&!Ni.metaKey){const Ps=[".quick-input-list .monaco-action-bar .always-visible",".quick-input-list-entry:hover .monaco-action-bar",".monaco-list-row.focused .monaco-action-bar"];if(_.classList.contains("show-checkboxes")?Ps.push("input"):Ps.push("input[type=text]"),this.getUI().list.isDisplayed()&&Ps.push(".monaco-list"),this.getUI().message&&Ps.push(".quick-input-message a"),this.getUI().widget){if(je.QX(Ni.target,this.getUI().widget))break;Ps.push(".quick-input-html-widget")}const ba=_.querySelectorAll(Ps.join(", "));Ni.shiftKey&&Ni.target===ba[0]?(je.fs.stop(Ni,!0),vo.clearFocus()):!Ni.shiftKey&&je.QX(Ni.target,ba[ba.length-1])&&(je.fs.stop(Ni,!0),ba[0].focus())}break;case 10:Ni.ctrlKey&&(je.fs.stop(Ni,!0),this.getUI().list.toggleHover());break}})),this.ui={container:_,styleSheet:N,leftActionBar:ue,titleBar:se,title:Ee,description1:Ui,description2:Ot,widget:Ts,rightActionBar:Oe,checkAll:_t,inputContainer:nn,filterContainer:fn,inputBox:wn,visibleCountContainer:Xn,visibleCount:bi,countContainer:ki,count:Fi,okContainer:Hi,ok:Gi,message:Ao,customButtonContainer:Li,customButton:to,list:vo,progressBar:ro,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,show:Ni=>this.show(Ni),hide:()=>this.hide(),setVisibilities:Ni=>this.setVisibilities(Ni),setEnabled:Ni=>this.setEnabled(Ni),setContextKey:Ni=>this.options.setContextKey(Ni),linkOpenerDelegate:Ni=>this.options.linkOpenerDelegate(Ni)},this.updateStyles(),this.ui}reparentUI(o){this.ui&&(this._container=o,je.BC(this._container,this.ui.container))}pick(o,_={},N=Fo.X.None){return new Promise((se,ue)=>{let Ee=Ot=>{var nn;Ee=se,(nn=_.onKeyMods)===null||nn===void 0||nn.call(_,Oe.keyMods),se(Ot)};if(N.isCancellationRequested){Ee(void 0);return}const Oe=this.createQuickPick();let ot;const _t=[Oe,Oe.onDidAccept(()=>{if(Oe.canSelectMany)Ee(Oe.selectedItems.slice()),Oe.hide();else{const Ot=Oe.activeItems[0];Ot&&(Ee(Ot),Oe.hide())}}),Oe.onDidChangeActive(Ot=>{const nn=Ot[0];nn&&_.onDidFocus&&_.onDidFocus(nn)}),Oe.onDidChangeSelection(Ot=>{if(!Oe.canSelectMany){const nn=Ot[0];nn&&(Ee(nn),Oe.hide())}}),Oe.onDidTriggerItemButton(Ot=>_.onDidTriggerItemButton&&_.onDidTriggerItemButton({...Ot,removeItem:()=>{const nn=Oe.items.indexOf(Ot.item);if(nn!==-1){const fn=Oe.items.slice(),wn=fn.splice(nn,1),Xn=Oe.activeItems.filter(ki=>ki!==wn[0]),bi=Oe.keepScrollPosition;Oe.keepScrollPosition=!0,Oe.items=fn,Xn&&(Oe.activeItems=Xn),Oe.keepScrollPosition=bi}}})),Oe.onDidTriggerSeparatorButton(Ot=>{var nn;return(nn=_.onDidTriggerSeparatorButton)===null||nn===void 0?void 0:nn.call(_,Ot)}),Oe.onDidChangeValue(Ot=>{ot&&!Ot&&(Oe.activeItems.length!==1||Oe.activeItems[0]!==ot)&&(Oe.activeItems=[ot])}),N.onCancellationRequested(()=>{Oe.hide()}),Oe.onDidHide(()=>{(0,we.AS)(_t),Ee(void 0)})];Oe.title=_.title,Oe.canSelectMany=!!_.canPickMany,Oe.placeholder=_.placeHolder,Oe.ignoreFocusOut=!!_.ignoreFocusLost,Oe.matchOnDescription=!!_.matchOnDescription,Oe.matchOnDetail=!!_.matchOnDetail,Oe.matchOnLabel=_.matchOnLabel===void 0||_.matchOnLabel,Oe.quickNavigate=_.quickNavigate,Oe.hideInput=!!_.hideInput,Oe.contextKey=_.contextKey,Oe.busy=!0,Promise.all([o,_.activeItem]).then(([Ot,nn])=>{ot=nn,Oe.busy=!1,Oe.items=Ot,Oe.canSelectMany&&(Oe.selectedItems=Ot.filter(fn=>fn.type!=="separator"&&fn.picked)),ot&&(Oe.activeItems=[ot])}),Oe.show(),Promise.resolve(o).then(void 0,Ot=>{ue(Ot),Oe.hide()})})}createQuickPick(){const o=this.getUI(!0);return new jr(o)}createInputBox(){const o=this.getUI(!0);return new ud(o)}show(o){const _=this.getUI(!0);this.onShowEmitter.fire();const N=this.controller;this.controller=o,N?.didHide(),this.setEnabled(!0),_.leftActionBar.clear(),_.title.textContent="",_.description1.textContent="",_.description2.textContent="",je.Ln(_.widget),_.rightActionBar.clear(),_.checkAll.checked=!1,_.inputBox.placeholder="",_.inputBox.password=!1,_.inputBox.showDecoration(Un.A.Ignore),_.visibleCount.setCount(0),_.count.setCount(0),je.Ln(_.message),_.progressBar.stop(),_.list.setElements([]),_.list.matchOnDescription=!1,_.list.matchOnDetail=!1,_.list.matchOnLabel=!0,_.list.sortByLabel=!0,_.ignoreFocusOut=!1,_.inputBox.toggles=void 0;const se=this.options.backKeybindingLabel();Pa.tooltip=se?(0,Rn.kg)("quickInput.backWithKeybinding","Back ({0})",se):(0,Rn.kg)("quickInput.back","Back"),_.container.style.display="",this.updateLayout(),_.inputBox.setFocus()}isVisible(){return!!this.ui&&this.ui.container.style.display!=="none"}setVisibilities(o){const _=this.getUI();_.title.style.display=o.title?"":"none",_.description1.style.display=o.description&&(o.inputBox||o.checkAll)?"":"none",_.description2.style.display=o.description&&!(o.inputBox||o.checkAll)?"":"none",_.checkAll.style.display=o.checkAll?"":"none",_.inputContainer.style.display=o.inputBox?"":"none",_.filterContainer.style.display=o.inputBox?"":"none",_.visibleCountContainer.style.display=o.visibleCount?"":"none",_.countContainer.style.display=o.count?"":"none",_.okContainer.style.display=o.ok?"":"none",_.customButtonContainer.style.display=o.customButton?"":"none",_.message.style.display=o.message?"":"none",_.progressBar.getContainer().style.display=o.progressBar?"":"none",_.list.display(!!o.list),_.container.classList.toggle("show-checkboxes",!!o.checkBox),_.container.classList.toggle("hidden-input",!o.inputBox&&!o.description),this.updateLayout()}setEnabled(o){if(o!==this.enabled){this.enabled=o;for(const _ of this.getUI().leftActionBar.viewItems)_.action.enabled=o;for(const _ of this.getUI().rightActionBar.viewItems)_.action.enabled=o;this.getUI().checkAll.disabled=!o,this.getUI().inputBox.enabled=o,this.getUI().ok.enabled=o,this.getUI().list.enabled=o}}hide(o){var _,N;const se=this.controller;if(!se)return;se.willHide(o);const ue=(_=this.ui)===null||_===void 0?void 0:_.container,Ee=ue&&!je.nR(ue);if(this.controller=null,this.onHideEmitter.fire(),ue&&(ue.style.display="none"),!Ee){let Oe=this.previousFocusElement;for(;Oe&&!Oe.offsetParent;)Oe=(N=Oe.parentElement)!==null&&N!==void 0?N:void 0;Oe?.offsetParent?(Oe.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}se.didHide(o)}layout(o,_){this.dimension=o,this.titleBarOffset=_,this.updateLayout()}updateLayout(){if(this.ui&&this.isVisible()){this.ui.container.style.top=`${this.titleBarOffset}px`;const o=this.ui.container.style,_=Math.min(this.dimension.width*.62,ja.MAX_WIDTH);o.width=_+"px",o.marginLeft="-"+_/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&this.dimension.height*.4)}}applyStyles(o){this.styles=o,this.updateStyles()}updateStyles(){if(this.ui){const{quickInputTitleBackground:o,quickInputBackground:_,quickInputForeground:N,widgetBorder:se,widgetShadow:ue}=this.styles.widget;this.ui.titleBar.style.backgroundColor=o??"",this.ui.container.style.backgroundColor=_??"",this.ui.container.style.color=N??"",this.ui.container.style.border=se?`1px solid ${se}`:"",this.ui.container.style.boxShadow=ue?`0 0 8px 2px ${ue}`:"",this.ui.list.style(this.styles.list);const Ee=[];this.styles.pickerGroup.pickerGroupBorder&&Ee.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.pickerGroup.pickerGroupBorder}; }`),this.styles.pickerGroup.pickerGroupForeground&&Ee.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.pickerGroup.pickerGroupForeground}; }`),this.styles.pickerGroup.pickerGroupForeground&&Ee.push(".quick-input-list .quick-input-list-separator-as-item { color: var(--vscode-descriptionForeground); }"),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(Ee.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&Ee.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&Ee.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&Ee.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&Ee.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&Ee.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),Ee.push("}"));const Oe=Ee.join(` `);Oe!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=Oe)}}};sa.MAX_WIDTH=600,sa=ja=fd([Cl(1,On),Cl(2,Dn._Y)],sa);var pd=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Fr=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Fa=class extends vn.lR{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(l))),this._quickAccess}constructor(o,_,N,se,ue){super(N),this.instantiationService=o,this.contextKeyService=_,this.layoutService=se,this.configurationService=ue,this._onShow=this._register(new Ft.vl),this._onHide=this._register(new Ft.vl),this.contexts=new Map}createController(o=this.layoutService,_){const N={idPrefix:"quickInput_",container:o.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:ue=>this.setContextKey(ue),linkOpenerDelegate:ue=>{this.instantiationService.invokeFunction(Ee=>{Ee.get(Pn.C).open(ue,{allowCommands:!0,fromUserGesture:!0})})},returnFocus:()=>o.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Ra))},se=this._register(this.instantiationService.createInstance(sa,{...N,..._}));return se.layout(o.activeContainerDimension,o.activeContainerOffset.quickPickTop),this._register(o.onDidLayoutActiveContainer(ue=>{(0,je.zk)(o.activeContainer)===(0,je.zk)(se.container)&&se.layout(ue,o.activeContainerOffset.quickPickTop)})),this._register(o.onDidChangeActiveContainer(()=>{se.isVisible()||se.layout(o.activeContainerDimension,o.activeContainerOffset.quickPickTop)})),this._register(se.onShow(()=>{this.resetContextKeys(),this._onShow.fire()})),this._register(se.onHide(()=>{this.resetContextKeys(),this._onHide.fire()})),se}setContextKey(o){let _;o&&(_=this.contexts.get(o),_||(_=new en.N1(o,!1).bindTo(this.contextKeyService),this.contexts.set(o,_))),!(_&&_.get())&&(this.resetContextKeys(),_?.set(!0))}resetContextKeys(){this.contexts.forEach(o=>{o.get()&&o.reset()})}pick(o,_={},N=Fo.X.None){return this.controller.pick(o,_,N)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,Xt.GuP)(Xt.ELA),quickInputForeground:(0,Xt.GuP)(Xt.HJZ),quickInputTitleBackground:(0,Xt.GuP)(Xt.er1),widgetBorder:(0,Xt.GuP)(Xt.DSL),widgetShadow:(0,Xt.GuP)(Xt.f9l)},inputBox:ns.ho,toggle:ns.mk,countBadge:ns.m$,button:ns.cv,progressBar:ns.oJ,keybindingLabel:ns.ir,list:(0,ns.t8)({listBackground:Xt.ELA,listFocusBackground:Xt.AlL,listFocusForeground:Xt.nH,listInactiveFocusForeground:Xt.nH,listInactiveSelectionIconForeground:Xt.c7i,listInactiveFocusBackground:Xt.AlL,listFocusOutline:Xt.buw,listInactiveFocusOutline:Xt.buw}),pickerGroup:{pickerGroupBorder:(0,Xt.GuP)(Xt.iwL),pickerGroupForeground:(0,Xt.GuP)(Xt.NBf)}}}};Fa=pd([Fr(0,Dn._Y),Fr(1,en.fN),Fr(2,vn.Gy),Fr(3,On),Fr(4,mt.pG)],Fa);var _d=e("./node_modules/monaco-editor/esm/vs/base/common/functional.js"),yl=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Hs=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Ba=class extends Fa{constructor(o,_,N,se,ue,Ee){super(_,N,se,new ti(o.getContainerDomNode(),ue),Ee),this.host=void 0;const Oe=rr.get(o);if(Oe){const ot=Oe.widget;this.host={_serviceBrand:void 0,get mainContainer(){return ot.getDomNode()},getContainer(){return ot.getDomNode()},whenContainerStylesLoaded(){},get containers(){return[ot.getDomNode()]},get activeContainer(){return ot.getDomNode()},get mainContainerDimension(){return o.getLayoutInfo()},get activeContainerDimension(){return o.getLayoutInfo()},get onDidLayoutMainContainer(){return o.onDidLayoutChange},get onDidLayoutActiveContainer(){return o.onDidLayoutChange},get onDidLayoutContainer(){return Ft.Jh.map(o.onDidLayoutChange,_t=>({container:ot.getDomNode(),dimension:_t}))},get onDidChangeActiveContainer(){return Ft.Jh.None},get onDidAddContainer(){return Ft.Jh.None},get mainContainerOffset(){return{top:0,quickPickTop:0}},get activeContainerOffset(){return{top:0,quickPickTop:0}},focus:()=>o.focus()}}else this.host=void 0}createController(){return super.createController(this.host)}};Ba=yl([Hs(1,Dn._Y),Hs(2,en.fN),Hs(3,vn.Gy),Hs(4,Zt.T),Hs(5,mt.pG)],Ba);let Wa=class{get activeService(){const o=this.codeEditorService.getFocusedCodeEditor();if(!o)throw new Error("Quick input service needs a focused editor to work.");let _=this.mapEditorToService.get(o);if(!_){const N=_=this.instantiationService.createInstance(Ba,o);this.mapEditorToService.set(o,_),(0,_d.P)(o.onDidDispose)(()=>{N.dispose(),this.mapEditorToService.delete(o)})}return _}get quickAccess(){return this.activeService.quickAccess}constructor(o,_){this.instantiationService=o,this.codeEditorService=_,this.mapEditorToService=new Map}pick(o,_={},N=Fo.X.None){return this.activeService.pick(o,_,N)}createQuickPick(){return this.activeService.createQuickPick()}createInputBox(){return this.activeService.createInputBox()}};Wa=yl([Hs(0,Dn._Y),Hs(1,Zt.T)],Wa);class rr{static get(o){return o.getContribution(rr.ID)}constructor(o){this.editor=o,this.widget=new ra(this.editor)}dispose(){this.widget.dispose()}}rr.ID="editor.controller.quickInput";class ra{constructor(o){this.codeEditor=o,this.domNode=document.createElement("div"),this.codeEditor.addOverlayWidget(this)}getId(){return ra.ID}getDomNode(){return this.domNode}getPosition(){return{preference:2}}dispose(){this.codeEditor.removeOverlayWidget(this)}}ra.ID="editor.contrib.quickInputWidget",(0,Kt.HW)(rr.ID,rr,4);var vd=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneThemeService.js"),Ko=e("./node_modules/monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js"),bd=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Ha=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Va=class extends we.jG{constructor(o,_,N){super(),this._contextKeyService=o,this._layoutService=_,this._configurationService=N,this._accessibilitySupport=0,this._onDidChangeScreenReaderOptimized=new Ft.vl,this._onDidChangeReducedMotion=new Ft.vl,this._accessibilityModeEnabledContext=ji.f.bindTo(this._contextKeyService);const se=()=>this._accessibilityModeEnabledContext.set(this.isScreenReaderOptimized());this._register(this._configurationService.onDidChangeConfiguration(Ee=>{Ee.affectsConfiguration("editor.accessibilitySupport")&&(se(),this._onDidChangeScreenReaderOptimized.fire()),Ee.affectsConfiguration("workbench.reduceMotion")&&(this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this._onDidChangeReducedMotion.fire())})),se(),this._register(this.onDidChangeScreenReaderOptimized(()=>se()));const ue=We.G.matchMedia("(prefers-reduced-motion: reduce)");this._systemMotionReduced=ue.matches,this._configMotionReduced=this._configurationService.getValue("workbench.reduceMotion"),this.initReducedMotionListeners(ue)}initReducedMotionListeners(o){this._register((0,je.ko)(o,"change",()=>{this._systemMotionReduced=o.matches,this._configMotionReduced==="auto"&&this._onDidChangeReducedMotion.fire()}));const _=()=>{const N=this.isMotionReduced();this._layoutService.mainContainer.classList.toggle("reduce-motion",N),this._layoutService.mainContainer.classList.toggle("enable-motion",!N)};_(),this._register(this.onDidChangeReducedMotion(()=>_()))}get onDidChangeScreenReaderOptimized(){return this._onDidChangeScreenReaderOptimized.event}isScreenReaderOptimized(){const o=this._configurationService.getValue("editor.accessibilitySupport");return o==="on"||o==="auto"&&this._accessibilitySupport===2}get onDidChangeReducedMotion(){return this._onDidChangeReducedMotion.event}isMotionReduced(){const o=this._configMotionReduced;return o==="on"||o==="auto"&&this._systemMotionReduced}getAccessibilitySupport(){return this._accessibilitySupport}};Va=bd([Ha(0,en.fN),Ha(1,On),Ha(2,mt.pG)],Va);var aa=e("./node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js"),la=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Vs=function(Ie,o){return function(_,N){o(_,N,Ie)}},ar,xs;let Ua=class{constructor(o,_){this._commandService=o,this._hiddenStates=new da(_)}createMenu(o,_,N){return new Ka(o,this._hiddenStates,{emitEventsForSubmenuChanges:!1,eventDebounceDelay:50,...N},this._commandService,_)}resetHiddenStates(o){this._hiddenStates.reset(o)}};Ua=la([Vs(0,lo.d),Vs(1,aa.CS)],Ua);let da=ar=class{constructor(o){this._storageService=o,this._disposables=new we.Cm,this._onDidChange=new Ft.vl,this.onDidChange=this._onDidChange.event,this._ignoreChangeEvent=!1,this._hiddenByDefaultCache=new Map;try{const _=o.get(ar._key,0,"{}");this._data=JSON.parse(_)}catch{this._data=Object.create(null)}this._disposables.add(o.onDidChangeValue(0,ar._key,this._disposables)(()=>{if(!this._ignoreChangeEvent)try{const _=o.get(ar._key,0,"{}");this._data=JSON.parse(_)}catch(_){console.log("FAILED to read storage after UPDATE",_)}this._onDidChange.fire()}))}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}_isHiddenByDefault(o,_){var N;return(N=this._hiddenByDefaultCache.get(`${o.id}/${_}`))!==null&&N!==void 0?N:!1}setDefaultState(o,_,N){this._hiddenByDefaultCache.set(`${o.id}/${_}`,N)}isHidden(o,_){var N,se;const ue=this._isHiddenByDefault(o,_),Ee=(se=(N=this._data[o.id])===null||N===void 0?void 0:N.includes(_))!==null&&se!==void 0?se:!1;return ue?!Ee:Ee}updateHidden(o,_,N){this._isHiddenByDefault(o,_)&&(N=!N);const ue=this._data[o.id];if(N)ue?ue.indexOf(_)<0&&ue.push(_):this._data[o.id]=[_];else if(ue){const Ee=ue.indexOf(_);Ee>=0&&(0,hn.UH)(ue,Ee),ue.length===0&&delete this._data[o.id]}this._persist()}reset(o){if(o===void 0)this._data=Object.create(null),this._persist();else{for(const{id:_}of o)this._data[_]&&delete this._data[_];this._persist()}}_persist(){try{this._ignoreChangeEvent=!0;const o=JSON.stringify(this._data);this._storageService.store(ar._key,o,0,0)}finally{this._ignoreChangeEvent=!1}}};da._key="menu.hiddenCommands",da=ar=la([Vs(0,aa.CS)],da);let za=xs=class{constructor(o,_,N,se,ue){this._id=o,this._hiddenStates=_,this._collectContextKeysForSubmenus=N,this._commandService=se,this._contextKeyService=ue,this._menuGroups=[],this._structureContextKeys=new Set,this._preconditionContextKeys=new Set,this._toggledContextKeys=new Set,this.refresh()}get structureContextKeys(){return this._structureContextKeys}get preconditionContextKeys(){return this._preconditionContextKeys}get toggledContextKeys(){return this._toggledContextKeys}refresh(){this._menuGroups.length=0,this._structureContextKeys.clear(),this._preconditionContextKeys.clear(),this._toggledContextKeys.clear();const o=so.ZG.getMenuItems(this._id);let _;o.sort(xs._compareMenuItems);for(const N of o){const se=N.group||"";(!_||_[0]!==se)&&(_=[se,[]],this._menuGroups.push(_)),_[1].push(N),this._collectContextKeys(N)}}_collectContextKeys(o){if(xs._fillInKbExprKeys(o.when,this._structureContextKeys),(0,so.is)(o)){if(o.command.precondition&&xs._fillInKbExprKeys(o.command.precondition,this._preconditionContextKeys),o.command.toggled){const _=o.command.toggled.condition||o.command.toggled;xs._fillInKbExprKeys(_,this._toggledContextKeys)}}else this._collectContextKeysForSubmenus&&so.ZG.getMenuItems(o.submenu).forEach(this._collectContextKeys,this)}createActionGroups(o){const _=[];for(const N of this._menuGroups){const[se,ue]=N,Ee=[];for(const Oe of ue)if(this._contextKeyService.contextMatchesRules(Oe.when)){const ot=(0,so.is)(Oe);ot&&this._hiddenStates.setDefaultState(this._id,Oe.command.id,!!Oe.isHiddenByDefault);const _t=Cd(this._id,ot?Oe.command:Oe,this._hiddenStates);if(ot)Ee.push(new so.Xe(Oe.command,Oe.alt,o,_t,this._contextKeyService,this._commandService));else{const Ot=new xs(Oe.submenu,this._hiddenStates,this._collectContextKeysForSubmenus,this._commandService,this._contextKeyService).createActionGroups(o),nn=Ho.wv.join(...Ot.map(fn=>fn[1]));nn.length>0&&Ee.push(new so.nI(Oe,_t,nn))}}Ee.length>0&&_.push([se,Ee])}return _}static _fillInKbExprKeys(o,_){if(o)for(const N of o.keys())_.add(N)}static _compareMenuItems(o,_){const N=o.group,se=_.group;if(N!==se){if(N){if(!se)return-1}else return 1;if(N==="navigation")return-1;if(se==="navigation")return 1;const Oe=N.localeCompare(se);if(Oe!==0)return Oe}const ue=o.order||0,Ee=_.order||0;return ueEe?1:xs._compareTitles((0,so.is)(o)?o.command.title:o.title,(0,so.is)(_)?_.command.title:_.title)}static _compareTitles(o,_){const N=typeof o=="string"?o:o.original,se=typeof _=="string"?_:_.original;return N.localeCompare(se)}};za=xs=la([Vs(3,lo.d),Vs(4,en.fN)],za);let Ka=class{constructor(o,_,N,se,ue){this._disposables=new we.Cm,this._menuInfo=new za(o,_,N.emitEventsForSubmenuChanges,se,ue);const Ee=new Co.uC(()=>{this._menuInfo.refresh(),this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!0,isToggleChange:!0})},N.eventDebounceDelay);this._disposables.add(Ee),this._disposables.add(so.ZG.onDidChangeMenu(Ot=>{Ot.has(o)&&Ee.schedule()}));const Oe=this._disposables.add(new we.Cm),ot=Ot=>{let nn=!1,fn=!1,wn=!1;for(const Xn of Ot)if(nn=nn||Xn.isStructuralChange,fn=fn||Xn.isEnablementChange,wn=wn||Xn.isToggleChange,nn&&fn&&wn)break;return{menu:this,isStructuralChange:nn,isEnablementChange:fn,isToggleChange:wn}},_t=()=>{Oe.add(ue.onDidChangeContext(Ot=>{const nn=Ot.affectsSome(this._menuInfo.structureContextKeys),fn=Ot.affectsSome(this._menuInfo.preconditionContextKeys),wn=Ot.affectsSome(this._menuInfo.toggledContextKeys);(nn||fn||wn)&&this._onDidChange.fire({menu:this,isStructuralChange:nn,isEnablementChange:fn,isToggleChange:wn})})),Oe.add(_.onDidChange(Ot=>{this._onDidChange.fire({menu:this,isStructuralChange:!0,isEnablementChange:!1,isToggleChange:!1})}))};this._onDidChange=new Ft.uI({onWillAddFirstListener:_t,onDidRemoveLastListener:Oe.clear.bind(Oe),delay:N.eventDebounceDelay,merge:ot}),this.onDidChange=this._onDidChange.event}getActions(o){return this._menuInfo.createActionGroups(o)}dispose(){this._disposables.dispose(),this._onDidChange.dispose()}};Ka=la([Vs(3,lo.d),Vs(4,en.fN)],Ka);function Cd(Ie,o,_){const N=(0,so.i1)(o)?o.submenu.id:o.id,se=typeof o.title=="string"?o.title:o.title.value,ue=(0,Ho.ih)({id:`hide/${Ie.id}/${N}`,label:(0,Rn.kg)("hide.label","Hide '{0}'",se),run(){_.updateHidden(Ie,N,!0)}}),Ee=(0,Ho.ih)({id:`toggle/${Ie.id}/${N}`,label:se,get checked(){return!_.isHidden(Ie,N)},run(){_.updateHidden(Ie,N,!!this.checked)}});return{hide:ue,toggle:Ee,get isHidden(){return!Ee.checked}}}var yd=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Sl=function(Ie,o){return function(_,N){o(_,N,Ie)}},Ga;let ca=Ga=class extends we.jG{constructor(o,_){super(),this.layoutService=o,this.logService=_,this.mapTextToType=new Map,this.findText="",this.resources=[],this.resourcesStateHash=void 0,(vr.nr||vr.c8)&&this.installWebKitWriteTextWorkaround(),this._register(Ft.Jh.runAndSubscribe(je.Iv,({window:N,disposables:se})=>{se.add((0,je.ko)(N.document,"copy",()=>this.clearResources()))},{window:We.G,disposables:this._store}))}installWebKitWriteTextWorkaround(){const o=()=>{const _=new Co.Zv;this.webKitPendingClipboardWritePromise&&!this.webKitPendingClipboardWritePromise.isSettled&&this.webKitPendingClipboardWritePromise.cancel(),this.webKitPendingClipboardWritePromise=_,navigator.clipboard.write([new ClipboardItem({"text/plain":_.p})]).catch(async N=>{(!(N instanceof Error)||N.name!=="NotAllowedError"||!_.isRejected)&&this.logService.error(N)})};this._register(Ft.Jh.runAndSubscribe(this.layoutService.onDidAddContainer,({container:_,disposables:N})=>{N.add((0,je.ko)(_,"click",o)),N.add((0,je.ko)(_,"keydown",o))},{container:this.layoutService.mainContainer,disposables:this._store}))}async writeText(o,_){if(this.writeResources([]),_){this.mapTextToType.set(_,o);return}if(this.webKitPendingClipboardWritePromise)return this.webKitPendingClipboardWritePromise.complete(o);try{return await navigator.clipboard.writeText(o)}catch(N){console.error(N)}this.fallbackWriteText(o)}fallbackWriteText(o){const _=(0,je.a)(),N=_.activeElement,se=_.body.appendChild((0,je.$)("textarea",{"aria-hidden":!0}));se.style.height="1px",se.style.width="1px",se.style.position="absolute",se.value=o,se.focus(),se.select(),_.execCommand("copy"),N instanceof HTMLElement&&N.focus(),_.body.removeChild(se)}async readText(o){if(o)return this.mapTextToType.get(o)||"";try{return await navigator.clipboard.readText()}catch(_){console.error(_)}return""}async readFindText(){return this.findText}async writeFindText(o){this.findText=o}async writeResources(o){o.length===0?this.clearResources():(this.resources=o,this.resourcesStateHash=await this.computeResourcesStateHash())}async readResources(){const o=await this.computeResourcesStateHash();return this.resourcesStateHash!==o&&this.clearResources(),this.resources}async computeResourcesStateHash(){if(this.resources.length===0)return;const o=await this.readText();return(0,na.tW)(o.substring(0,Ga.MAX_RESOURCE_STATE_SOURCE_LENGTH))}clearResources(){this.resources=[],this.resourcesStateHash=void 0}};ca.MAX_RESOURCE_STATE_SOURCE_LENGTH=1e3,ca=Ga=yd([Sl(0,On),Sl(1,vi.rr)],ca);var wl=e("./node_modules/monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js"),lr=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js"),Sd=e("./node_modules/monaco-editor/esm/vs/base/common/ternarySearchTree.js"),wd=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Dd=function(Ie,o){return function(_,N){o(_,N,Ie)}};const Br="data-keybinding-context";class $a{constructor(o,_){this._id=o,this._parent=_,this._value=Object.create(null),this._value._contextId=o}get value(){return{...this._value}}setValue(o,_){return this._value[o]!==_?(this._value[o]=_,!0):!1}removeValue(o){return o in this._value?(delete this._value[o],!0):!1}getValue(o){const _=this._value[o];return typeof _>"u"&&this._parent?this._parent.getValue(o):_}}class dr extends $a{constructor(){super(-1,null)}setValue(o,_){return!1}removeValue(o){return!1}getValue(o){}}dr.INSTANCE=new dr;class Wr extends $a{constructor(o,_,N){super(o,null),this._configurationService=_,this._values=Sd.cB.forConfigKeys(),this._listener=this._configurationService.onDidChangeConfiguration(se=>{if(se.source===7){const ue=Array.from(this._values,([Ee])=>Ee);this._values.clear(),N.fire(new Ll(ue))}else{const ue=[];for(const Ee of se.affectedKeys){const Oe=`config.${Ee}`,ot=this._values.findSuperstr(Oe);ot!==void 0&&(ue.push(...lr.f.map(ot,([_t])=>_t)),this._values.deleteSuperstr(Oe)),this._values.has(Oe)&&(ue.push(Oe),this._values.delete(Oe))}N.fire(new Ll(ue))}})}dispose(){this._listener.dispose()}getValue(o){if(o.indexOf(Wr._keyPrefix)!==0)return super.getValue(o);if(this._values.has(o))return this._values.get(o);const _=o.substr(Wr._keyPrefix.length),N=this._configurationService.getValue(_);let se;switch(typeof N){case"number":case"boolean":case"string":se=N;break;default:Array.isArray(N)?se=JSON.stringify(N):se=N}return this._values.set(o,se),se}setValue(o,_){return super.setValue(o,_)}removeValue(o){return super.removeValue(o)}}Wr._keyPrefix="config.";class Ld{constructor(o,_,N){this._service=o,this._key=_,this._defaultValue=N,this.reset()}set(o){this._service.setContext(this._key,o)}reset(){typeof this._defaultValue>"u"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)}get(){return this._service.getContextKeyValue(this._key)}}class Dl{constructor(o){this.key=o}affectsSome(o){return o.has(this.key)}allKeysContainedIn(o){return this.affectsSome(o)}}class Ll{constructor(o){this.keys=o}affectsSome(o){for(const _ of this.keys)if(o.has(_))return!0;return!1}allKeysContainedIn(o){return this.keys.every(_=>o.has(_))}}class Ed{constructor(o){this.events=o}affectsSome(o){for(const _ of this.events)if(_.affectsSome(o))return!0;return!1}allKeysContainedIn(o){return this.events.every(_=>_.allKeysContainedIn(o))}}function xd(Ie,o){return Ie.allKeysContainedIn(new Set(Object.keys(o)))}class El extends we.jG{constructor(o){super(),this._onDidChangeContext=this._register(new Ft.fV({merge:_=>new Ed(_)})),this.onDidChangeContext=this._onDidChangeContext.event,this._isDisposed=!1,this._myContextId=o}createKey(o,_){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new Ld(this,o,_)}bufferChangeEvents(o){this._onDidChangeContext.pause();try{o()}finally{this._onDidChangeContext.resume()}}createScoped(o){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new kd(this,o)}contextMatchesRules(o){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");const _=this.getContextValuesContainer(this._myContextId);return o?o.evaluate(_):!0}getContextKeyValue(o){if(!this._isDisposed)return this.getContextValuesContainer(this._myContextId).getValue(o)}setContext(o,_){if(this._isDisposed)return;const N=this.getContextValuesContainer(this._myContextId);N&&N.setValue(o,_)&&this._onDidChangeContext.fire(new Dl(o))}removeContext(o){this._isDisposed||this.getContextValuesContainer(this._myContextId).removeValue(o)&&this._onDidChangeContext.fire(new Dl(o))}getContext(o){return this._isDisposed?dr.INSTANCE:this.getContextValuesContainer(Id(o))}dispose(){super.dispose(),this._isDisposed=!0}}let Qa=class extends El{constructor(o){super(0),this._contexts=new Map,this._lastContextId=0;const _=this._register(new Wr(this._myContextId,o,this._onDidChangeContext));this._contexts.set(this._myContextId,_)}getContextValuesContainer(o){return this._isDisposed?dr.INSTANCE:this._contexts.get(o)||dr.INSTANCE}createChildContext(o=this._myContextId){if(this._isDisposed)throw new Error("ContextKeyService has been disposed");const _=++this._lastContextId;return this._contexts.set(_,new $a(_,this.getContextValuesContainer(o))),_}disposeContext(o){this._isDisposed||this._contexts.delete(o)}};Qa=wd([Dd(0,mt.pG)],Qa);class kd extends El{constructor(o,_){if(super(o.createChildContext()),this._parentChangeListener=this._register(new we.HE),this._parent=o,this._updateParentChangeListener(),this._domNode=_,this._domNode.hasAttribute(Br)){let N="";this._domNode.classList&&(N=Array.from(this._domNode.classList.values()).join(", ")),console.error(`Element already has context attribute${N?": "+N:""}`)}this._domNode.setAttribute(Br,String(this._myContextId))}_updateParentChangeListener(){this._parentChangeListener.value=this._parent.onDidChangeContext(o=>{const N=this._parent.getContextValuesContainer(this._myContextId).value;xd(o,N)||this._onDidChangeContext.fire(o)})}dispose(){this._isDisposed||(this._parent.disposeContext(this._myContextId),this._domNode.removeAttribute(Br),super.dispose())}getContextValuesContainer(o){return this._isDisposed?dr.INSTANCE:this._parent.getContextValuesContainer(o)}createChildContext(o=this._myContextId){if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(o)}disposeContext(o){this._isDisposed||this._parent.disposeContext(o)}}function Id(Ie){for(;Ie;){if(Ie.hasAttribute(Br)){const o=Ie.getAttribute(Br);return o?parseInt(o,10):NaN}Ie=Ie.parentElement}return 0}function Md(Ie,o,_){Ie.get(en.fN).createKey(String(o),Td(_))}function Td(Ie){return(0,qt.PI)(Ie,o=>{if(typeof o=="object"&&o.$mid===1)return lt.r.revive(o).toString();if(o instanceof lt.r)return o.toString()})}lo.w.registerCommand("_setContext",Md),lo.w.registerCommand({id:"getContextKeyInfo",handler(){return[...en.N1.all()].sort((Ie,o)=>Ie.key.localeCompare(o.key))},metadata:{description:(0,Rn.kg)("getContextKeyInfo","A command that returns information about context keys"),args:[]}}),lo.w.registerCommand("_generateContextKeyInfo",function(){const Ie=[],o=new Set;for(const _ of en.N1.all())o.has(_.key)||(o.add(_.key),Ie.push(_));Ie.sort((_,N)=>_.key.localeCompare(N.key)),console.log(JSON.stringify(Ie,void 0,2))});var ks=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/descriptors.js");class Pd{constructor(o,_){this.key=o,this.data=_,this.incoming=new Map,this.outgoing=new Map}}class xl{constructor(o){this._hashFn=o,this._nodes=new Map}roots(){const o=[];for(const _ of this._nodes.values())_.outgoing.size===0&&o.push(_);return o}insertEdge(o,_){const N=this.lookupOrInsertNode(o),se=this.lookupOrInsertNode(_);N.outgoing.set(se.key,se),se.incoming.set(N.key,N)}removeNode(o){const _=this._hashFn(o);this._nodes.delete(_);for(const N of this._nodes.values())N.outgoing.delete(_),N.incoming.delete(_)}lookupOrInsertNode(o){const _=this._hashFn(o);let N=this._nodes.get(_);return N||(N=new Pd(_,o),this._nodes.set(_,N)),N}isEmpty(){return this._nodes.size===0}toString(){const o=[];for(const[_,N]of this._nodes)o.push(`${_} (-> incoming)[${[...N.incoming.keys()].join(", ")}] (outgoing ->)[${[...N.outgoing.keys()].join(",")}] `);return o.join(` `)}findCycleSlow(){for(const[o,_]of this._nodes){const N=new Set([o]),se=this._findCycle(_,N);if(se)return se}}_findCycle(o,_){for(const[N,se]of o.outgoing){if(_.has(N))return[..._,N].join(" -> ");_.add(N);const ue=this._findCycle(se,_);if(ue)return ue;_.delete(N)}}}var Ya=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js");const Rd=!1;class kl extends Error{constructor(o){var _;super("cyclic dependency between services"),this.message=(_=o.findCycleSlow())!==null&&_!==void 0?_:`UNABLE to detect cycle, dumping graph: ${o.toString()}`}}class ua{constructor(o=new Ya.a,_=!1,N,se=Rd){var ue;this._services=o,this._strict=_,this._parent=N,this._enableTracing=se,this._activeInstantiations=new Set,this._services.set(Dn._Y,this),this._globalGraph=se?(ue=N?._globalGraph)!==null&&ue!==void 0?ue:new xl(Ee=>Ee):void 0}createChild(o){return new ua(o,this._strict,this,this._enableTracing)}invokeFunction(o,..._){const N=Ro.traceInvocation(this._enableTracing,o);let se=!1;try{return o({get:Ee=>{if(se)throw(0,Jn.iH)("service accessor is only valid during the invocation of its target method");const Oe=this._getOrCreateServiceInstance(Ee,N);if(!Oe)throw new Error(`[invokeFunction] unknown service '${Ee}'`);return Oe}},..._)}finally{se=!0,N.stop()}}createInstance(o,..._){let N,se;return o instanceof ks.d?(N=Ro.traceCreation(this._enableTracing,o.ctor),se=this._createInstance(o.ctor,o.staticArguments.concat(_),N)):(N=Ro.traceCreation(this._enableTracing,o),se=this._createInstance(o,_,N)),N.stop(),se}_createInstance(o,_=[],N){const se=Dn._$.getServiceDependencies(o).sort((Oe,ot)=>Oe.index-ot.index),ue=[];for(const Oe of se){const ot=this._getOrCreateServiceInstance(Oe.id,N);ot||this._throwIfStrict(`[createInstance] ${o.name} depends on UNKNOWN service ${Oe.id}.`,!1),ue.push(ot)}const Ee=se.length>0?se[0].index:_.length;if(_.length!==Ee){console.trace(`[createInstance] First service dependency of ${o.name} at position ${Ee+1} conflicts with ${_.length} static arguments`);const Oe=Ee-_.length;Oe>0?_=_.concat(new Array(Oe)):_=_.slice(0,Ee)}return Reflect.construct(o,_.concat(ue))}_setServiceInstance(o,_){if(this._services.get(o)instanceof ks.d)this._services.set(o,_);else if(this._parent)this._parent._setServiceInstance(o,_);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(o){const _=this._services.get(o);return!_&&this._parent?this._parent._getServiceInstanceOrDescriptor(o):_}_getOrCreateServiceInstance(o,_){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(o));const N=this._getServiceInstanceOrDescriptor(o);return N instanceof ks.d?this._safeCreateAndCacheServiceInstance(o,N,_.branch(o,!0)):(_.branch(o,!1),N)}_safeCreateAndCacheServiceInstance(o,_,N){if(this._activeInstantiations.has(o))throw new Error(`illegal state - RECURSIVELY instantiating service '${o}'`);this._activeInstantiations.add(o);try{return this._createAndCacheServiceInstance(o,_,N)}finally{this._activeInstantiations.delete(o)}}_createAndCacheServiceInstance(o,_,N){var se;const ue=new xl(ot=>ot.id.toString());let Ee=0;const Oe=[{id:o,desc:_,_trace:N}];for(;Oe.length;){const ot=Oe.pop();if(ue.lookupOrInsertNode(ot),Ee++>1e3)throw new kl(ue);for(const _t of Dn._$.getServiceDependencies(ot.desc.ctor)){const Ot=this._getServiceInstanceOrDescriptor(_t.id);if(Ot||this._throwIfStrict(`[createInstance] ${o} depends on ${_t.id} which is NOT registered.`,!0),(se=this._globalGraph)===null||se===void 0||se.insertEdge(String(ot.id),String(_t.id)),Ot instanceof ks.d){const nn={id:_t.id,desc:Ot,_trace:ot._trace.branch(_t.id,!0)};ue.insertEdge(ot,nn),Oe.push(nn)}}}for(;;){const ot=ue.roots();if(ot.length===0){if(!ue.isEmpty())throw new kl(ue);break}for(const{data:_t}of ot){if(this._getServiceInstanceOrDescriptor(_t.id)instanceof ks.d){const nn=this._createServiceInstanceWithOwner(_t.id,_t.desc.ctor,_t.desc.staticArguments,_t.desc.supportsDelayedInstantiation,_t._trace);this._setServiceInstance(_t.id,nn)}ue.removeNode(_t)}}return this._getServiceInstanceOrDescriptor(o)}_createServiceInstanceWithOwner(o,_,N=[],se,ue){if(this._services.get(o)instanceof ks.d)return this._createServiceInstance(o,_,N,se,ue);if(this._parent)return this._parent._createServiceInstanceWithOwner(o,_,N,se,ue);throw new Error(`illegalState - creating UNKNOWN service instance ${_.name}`)}_createServiceInstance(o,_,N=[],se,ue){if(se){const Ee=new ua(void 0,this._strict,this,this._enableTracing);Ee._globalGraphImplicitDependency=String(o);const Oe=new Map,ot=new Co.F6(()=>{const _t=Ee._createInstance(_,N,ue);for(const[Ot,nn]of Oe){const fn=_t[Ot];if(typeof fn=="function")for(const wn of nn)wn.disposable=fn.apply(_t,wn.listener)}return Oe.clear(),_t});return new Proxy(Object.create(null),{get(_t,Ot){if(!ot.isInitialized&&typeof Ot=="string"&&(Ot.startsWith("onDid")||Ot.startsWith("onWill"))){let wn=Oe.get(Ot);return wn||(wn=new ln.w,Oe.set(Ot,wn)),(bi,ki,Fi)=>{if(ot.isInitialized)return ot.value[Ot](bi,ki,Fi);{const Hi={listener:[bi,ki,Fi],disposable:void 0},Gi=wn.push(Hi);return(0,we.s)(()=>{var to;Gi(),(to=Hi.disposable)===null||to===void 0||to.dispose()})}}}if(Ot in _t)return _t[Ot];const nn=ot.value;let fn=nn[Ot];return typeof fn!="function"||(fn=fn.bind(nn),_t[Ot]=fn),fn},set(_t,Ot,nn){return ot.value[Ot]=nn,!0},getPrototypeOf(_t){return _.prototype}})}else return this._createInstance(_,N,ue)}_throwIfStrict(o,_){if(_&&console.warn(o),this._strict)throw new Error(o)}}class Ro{static traceInvocation(o,_){return o?new Ro(2,_.name||new Error().stack.split(` `).slice(3,4).join(` `)):Ro._None}static traceCreation(o,_){return o?new Ro(1,_.name):Ro._None}constructor(o,_){this.type=o,this.name=_,this._start=Date.now(),this._dep=[]}branch(o,_){const N=new Ro(3,o.toString());return this._dep.push([o,_,N]),N}stop(){const o=Date.now()-this._start;Ro._totals+=o;let _=!1;function N(ue,Ee){const Oe=[],ot=new Array(ue+1).join(" ");for(const[_t,Ot,nn]of Ee._dep)if(Ot&&nn){_=!0,Oe.push(`${ot}CREATES -> ${_t}`);const fn=N(ue+1,nn);fn&&Oe.push(fn)}else Oe.push(`${ot}uses -> ${_t}`);return Oe.join(` `)}const se=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${N(1,this)}`,`DONE, took ${o.toFixed(2)}ms (grand total ${Ro._totals.toFixed(2)}ms)`];(o>2||_)&&Ro.all.add(se.join(` `))}}Ro.all=new Set,Ro._None=new class extends Ro{constructor(){super(0,null)}stop(){}branch(){return this}},Ro._totals=0;const Od=new Set([Rt.ny.inMemory,Rt.ny.vscodeSourceControl,Rt.ny.walkThrough,Rt.ny.walkThroughSnippet,Rt.ny.vscodeChatCodeBlock]);class Ad{constructor(){this._byResource=new Eo.fT,this._byOwner=new Map}set(o,_,N){let se=this._byResource.get(o);se||(se=new Map,this._byResource.set(o,se)),se.set(_,N);let ue=this._byOwner.get(_);ue||(ue=new Eo.fT,this._byOwner.set(_,ue)),ue.set(o,N)}get(o,_){const N=this._byResource.get(o);return N?.get(_)}delete(o,_){let N=!1,se=!1;const ue=this._byResource.get(o);ue&&(N=ue.delete(_));const Ee=this._byOwner.get(_);if(Ee&&(se=Ee.delete(o)),N!==se)throw new Error("illegal state");return N&&se}values(o){var _,N,se,ue;return typeof o=="string"?(N=(_=this._byOwner.get(o))===null||_===void 0?void 0:_.values())!==null&&N!==void 0?N:lr.f.empty():lt.r.isUri(o)?(ue=(se=this._byResource.get(o))===null||se===void 0?void 0:se.values())!==null&&ue!==void 0?ue:lr.f.empty():lr.f.map(lr.f.concat(...this._byOwner.values()),Ee=>Ee[1])}}class Nd{constructor(o){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Eo.fT,this._service=o,this._subscription=o.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(o){for(const _ of o){const N=this._data.get(_);N&&this._substract(N);const se=this._resourceStats(_);this._add(se),this._data.set(_,se)}}_resourceStats(o){const _={errors:0,warnings:0,infos:0,unknowns:0};if(Od.has(o.scheme))return _;for(const{severity:N}of this._service.read({resource:o}))N===Do.cj.Error?_.errors+=1:N===Do.cj.Warning?_.warnings+=1:N===Do.cj.Info?_.infos+=1:_.unknowns+=1;return _}_substract(o){this.errors-=o.errors,this.warnings-=o.warnings,this.infos-=o.infos,this.unknowns-=o.unknowns}_add(o){this.errors+=o.errors,this.warnings+=o.warnings,this.infos+=o.infos,this.unknowns+=o.unknowns}}class Is{constructor(){this._onMarkerChanged=new Ft.uI({delay:0,merge:Is._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new Ad,this._stats=new Nd(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(o,_){for(const N of _||[])this.changeOne(o,N,[])}changeOne(o,_,N){if((0,hn.Ct)(N))this._data.delete(_,o)&&this._onMarkerChanged.fire([_]);else{const se=[];for(const ue of N){const Ee=Is._toMarker(o,_,ue);Ee&&se.push(Ee)}this._data.set(_,o,se),this._onMarkerChanged.fire([_])}}static _toMarker(o,_,N){let{code:se,severity:ue,message:Ee,source:Oe,startLineNumber:ot,startColumn:_t,endLineNumber:Ot,endColumn:nn,relatedInformation:fn,tags:wn}=N;if(Ee)return ot=ot>0?ot:1,_t=_t>0?_t:1,Ot=Ot>=ot?Ot:ot,nn=nn>0?nn:_t,{resource:_,owner:o,code:se,severity:ue,message:Ee,source:Oe,startLineNumber:ot,startColumn:_t,endLineNumber:Ot,endColumn:nn,relatedInformation:fn,tags:wn}}changeAll(o,_){const N=[],se=this._data.values(o);if(se)for(const ue of se){const Ee=lr.f.first(ue);Ee&&(N.push(Ee.resource),this._data.delete(Ee.resource,o))}if((0,hn.EI)(_)){const ue=new Eo.fT;for(const{resource:Ee,marker:Oe}of _){const ot=Is._toMarker(o,Ee,Oe);if(!ot)continue;const _t=ue.get(Ee);_t?_t.push(ot):(ue.set(Ee,[ot]),N.push(Ee))}for(const[Ee,Oe]of ue)this._data.set(Ee,o,Oe)}N.length>0&&this._onMarkerChanged.fire(N)}read(o=Object.create(null)){let{owner:_,resource:N,severities:se,take:ue}=o;if((!ue||ue<0)&&(ue=-1),_&&N){const Ee=this._data.get(N,_);if(Ee){const Oe=[];for(const ot of Ee)if(Is._accept(ot,se)){const _t=Oe.push(ot);if(ue>0&&_t===ue)break}return Oe}else return[]}else if(!_&&!N){const Ee=[];for(const Oe of this._data.values())for(const ot of Oe)if(Is._accept(ot,se)){const _t=Ee.push(ot);if(ue>0&&_t===ue)return Ee}return Ee}else{const Ee=this._data.values(N??_),Oe=[];for(const ot of Ee)for(const _t of ot)if(Is._accept(_t,se)){const Ot=Oe.push(_t);if(ue>0&&Ot===ue)return Oe}return Oe}}static _accept(o,_){return _===void 0||(_&o.severity)===o.severity}static _merge(o){const _=new Eo.fT;for(const N of o)for(const se of N)_.set(se,!0);return Array.from(_.keys())}}class jd extends we.jG{constructor(){super(...arguments),this._configurationModel=new io}get configurationModel(){return this._configurationModel}reload(){return this.resetConfigurationModel(),this.configurationModel}getConfigurationDefaultOverrides(){return{}}resetConfigurationModel(){this._configurationModel=new io;const o=hs.O.as(Po.Fd.Configuration).getConfigurationProperties();this.updateConfigurationModel(Object.keys(o),o)}updateConfigurationModel(o,_){const N=this.getConfigurationDefaultOverrides();for(const se of o){const ue=N[se],Ee=_[se];ue!==void 0?this._configurationModel.addValue(se,ue):Ee?this._configurationModel.addValue(se,Ee.default):this._configurationModel.removeValue(se)}}}var Il=e("./node_modules/monaco-editor/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js");class Fd extends we.jG{constructor(o,_=[]){super(),this.logger=new vi.Dk([o,..._]),this._register(o.onDidChangeLogLevel(N=>this.setLevel(N)))}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(o){this.logger.setLevel(o)}getLevel(){return this.logger.getLevel()}trace(o,..._){this.logger.trace(o,..._)}debug(o,..._){this.logger.debug(o,..._)}info(o,..._){this.logger.info(o,..._)}warn(o,..._){this.logger.warn(o,..._)}error(o,..._){this.logger.error(o,..._)}}var Bd=e("./node_modules/monaco-editor/esm/vs/editor/common/editorFeatures.js"),Wd=e("./node_modules/monaco-editor/esm/vs/platform/environment/common/environment.js"),Ms=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},go=function(Ie,o){return function(_,N){o(_,N,Ie)}};class Hd{constructor(o){this.disposed=!1,this.model=o,this._onWillDispose=new Ft.vl}get textEditorModel(){return this.model}dispose(){this.disposed=!0,this._onWillDispose.fire()}}let Za=class{constructor(o){this.modelService=o}createModelReference(o){const _=this.modelService.getModel(o);return _?Promise.resolve(new we.BO(new Hd(_))):Promise.reject(new Error("Model not found"))}};Za=Ms([go(0,Hn.S)],Za);class ha{show(){return ha.NULL_PROGRESS_RUNNER}async showWhile(o,_){await o}}ha.NULL_PROGRESS_RUNNER={done:()=>{},total:()=>{},worked:()=>{}};class Vd{withProgress(o,_,N){return _({report:()=>{}})}}class Ud{constructor(){this.isExtensionDevelopment=!1,this.isBuilt=!1}}class zd{async confirm(o){return{confirmed:this.doConfirm(o.message,o.detail),checkboxChecked:!1}}doConfirm(o,_){let N=o;return _&&(N=N+` `+_),We.G.confirm(N)}async prompt(o){var _,N;let se;if(this.doConfirm(o.message,o.detail)){const Ee=[...(_=o.buttons)!==null&&_!==void 0?_:[]];o.cancelButton&&typeof o.cancelButton!="string"&&typeof o.cancelButton!="boolean"&&Ee.push(o.cancelButton),se=await((N=Ee[0])===null||N===void 0?void 0:N.run({checkboxChecked:!1}))}return{result:se}}async error(o,_){await this.prompt({type:Un.A.Error,message:o,detail:_})}}class Hr{info(o){return this.notify({severity:Un.A.Info,message:o})}warn(o){return this.notify({severity:Un.A.Warning,message:o})}error(o){return this.notify({severity:Un.A.Error,message:o})}notify(o){switch(o.severity){case Un.A.Error:console.error(o.message);break;case Un.A.Warning:console.warn(o.message);break;default:console.log(o.message);break}return Hr.NO_OP}prompt(o,_,N,se){return Hr.NO_OP}status(o,_){return we.jG.None}}Hr.NO_OP=new $e.Kz;let Xa=class{constructor(o){this._onWillExecuteCommand=new Ft.vl,this._onDidExecuteCommand=new Ft.vl,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=o}executeCommand(o,..._){const N=lo.w.getCommand(o);if(!N)return Promise.reject(new Error(`command '${o}' not found`));try{this._onWillExecuteCommand.fire({commandId:o,args:_});const se=this._instantiationService.invokeFunction.apply(this._instantiationService,[N.handler,..._]);return this._onDidExecuteCommand.fire({commandId:o,args:_}),Promise.resolve(se)}catch(se){return Promise.reject(se)}}};Xa=Ms([go(0,Dn._Y)],Xa);let cr=class extends mr{constructor(o,_,N,se,ue,Ee){super(o,_,N,se,ue),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const Oe=wn=>{const Xn=new we.Cm;Xn.add(je.ko(wn,je.Bx.KEY_DOWN,bi=>{const ki=new Xi.Z(bi);this._dispatch(ki,ki.target)&&(ki.preventDefault(),ki.stopPropagation())})),Xn.add(je.ko(wn,je.Bx.KEY_UP,bi=>{const ki=new Xi.Z(bi);this._singleModifierDispatch(ki,ki.target)&&ki.preventDefault()})),this._domNodeListeners.push(new Kd(wn,Xn))},ot=wn=>{for(let Xn=0;Xn{wn.getOption(61)||Oe(wn.getContainerDomNode())},Ot=wn=>{wn.getOption(61)||ot(wn.getContainerDomNode())};this._register(Ee.onCodeEditorAdd(_t)),this._register(Ee.onCodeEditorRemove(Ot)),Ee.listCodeEditors().forEach(_t);const nn=wn=>{Oe(wn.getContainerDomNode())},fn=wn=>{ot(wn.getContainerDomNode())};this._register(Ee.onDiffEditorAdd(nn)),this._register(Ee.onDiffEditorRemove(fn)),Ee.listDiffEditors().forEach(nn)}addDynamicKeybinding(o,_,N,se){return(0,we.qE)(lo.w.registerCommand(o,N),this.addDynamicKeybindings([{keybinding:_,command:o,when:se}]))}addDynamicKeybindings(o){const _=o.map(N=>{var se;return{keybinding:(0,Vo.Zv)(N.keybinding,hi.OS),command:(se=N.command)!==null&&se!==void 0?se:null,commandArgs:N.commandArgs,when:N.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}});return this._dynamicKeybindings=this._dynamicKeybindings.concat(_),this.updateResolver(),(0,we.s)(()=>{for(let N=0;Nthis._log(N))}return this._cachedResolver}_documentHasFocus(){return We.G.document.hasFocus()}_toNormalizedKeybindingItems(o,_){const N=[];let se=0;for(const ue of o){const Ee=ue.when||void 0,Oe=ue.keybinding;if(!Oe)N[se++]=new Xs(void 0,ue.command,ue.commandArgs,Ee,_,null,!1);else{const ot=Zo.resolveKeybinding(Oe,hi.OS);for(const _t of ot)N[se++]=new Xs(_t,ue.command,ue.commandArgs,Ee,_,null,!1)}}return N}resolveKeyboardEvent(o){const _=new Vo.dG(o.ctrlKey,o.shiftKey,o.altKey,o.metaKey,o.keyCode);return new Zo([_],hi.OS)}};cr=Ms([go(0,en.fN),go(1,lo.d),go(2,wi.k),go(3,$e.Ot),go(4,vi.rr),go(5,Zt.T)],cr);class Kd extends we.jG{constructor(o,_){super(),this.domNode=o,this._register(_)}}function Ml(Ie){return Ie&&typeof Ie=="object"&&(!Ie.overrideIdentifier||typeof Ie.overrideIdentifier=="string")&&(!Ie.resource||Ie.resource instanceof lt.r)}class Tl{constructor(){this._onDidChangeConfiguration=new Ft.vl,this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;const o=new jd;this._configuration=new Uo(o.reload(),new io,new io,new io),o.dispose()}getValue(o,_){const N=typeof o=="string"?o:void 0,se=Ml(o)?o:Ml(_)?_:{};return this._configuration.getValue(N,se,void 0)}updateValues(o){const _={data:this._configuration.toData()},N=[];for(const se of o){const[ue,Ee]=se;this.getValue(ue)!==Ee&&(this._configuration.updateValue(ue,Ee),N.push(ue))}if(N.length>0){const se=new Ys({keys:N,overrides:[]},_,this._configuration);se.source=8,this._onDidChangeConfiguration.fire(se)}return Promise.resolve()}updateValue(o,_,N,se){return this.updateValues([[o,_]])}inspect(o,_={}){return this._configuration.inspect(o,_,void 0)}}let Ja=class{constructor(o,_,N){this.configurationService=o,this.modelService=_,this.languageService=N,this._onDidChangeConfiguration=new Ft.vl,this.configurationService.onDidChangeConfiguration(se=>{this._onDidChangeConfiguration.fire({affectedKeys:se.affectedKeys,affectsConfiguration:(ue,Ee)=>se.affectsConfiguration(Ee)})})}getValue(o,_,N){const se=os.y.isIPosition(_)?_:null,ue=se?typeof N=="string"?N:void 0:typeof _=="string"?_:void 0,Ee=o?this.getLanguage(o,se):void 0;return typeof ue>"u"?this.configurationService.getValue({resource:o,overrideIdentifier:Ee}):this.configurationService.getValue(ue,{resource:o,overrideIdentifier:Ee})}getLanguage(o,_){const N=this.modelService.getModel(o);return N?_?N.getLanguageIdAtPosition(_.lineNumber,_.column):N.getLanguageId():this.languageService.guessLanguageIdByFilepathOrFirstLine(o)}};Ja=Ms([go(0,mt.pG),go(1,Hn.S),go(2,vt.L)],Ja);let qa=class{constructor(o){this.configurationService=o}getEOL(o,_){const N=this.configurationService.getValue("files.eol",{overrideIdentifier:_,resource:o});return N&&typeof N=="string"&&N!=="auto"?N:hi.j9||hi.zx?` `:`\r `}};qa=Ms([go(0,mt.pG)],qa);class Gd{publicLog2(){}}class Vr{constructor(){const o=lt.r.from({scheme:Vr.SCHEME,authority:"model",path:"/"});this.workspace={id:Pi.cn,folders:[new Pi.mX({uri:o,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(o){return o&&o.scheme===Vr.SCHEME?this.workspace.folders[0]:null}}Vr.SCHEME="inmemory";function ma(Ie,o,_){if(!o||!(Ie instanceof Tl))return;const N=[];Object.keys(o).forEach(se=>{(0,Gs.vf)(se)&&N.push([`editor.${se}`,o[se]]),_&&(0,Gs.Gn)(se)&&N.push([`diffEditor.${se}`,o[se]])}),N.length>0&&Ie.updateValues(N)}let el=class{constructor(o){this._modelService=o}hasPreviewHandler(){return!1}async apply(o,_){const N=Array.isArray(o)?o:is.jN.convert(o),se=new Map;for(const Oe of N){if(!(Oe instanceof is.cw))throw new Error("bad edit - only text edits are supported");const ot=this._modelService.getModel(Oe.resource);if(!ot)throw new Error("bad edit - model not found");if(typeof Oe.versionId=="number"&&ot.getVersionId()!==Oe.versionId)throw new Error("bad state - model changed in the meantime");let _t=se.get(ot);_t||(_t=[],se.set(ot,_t)),_t.push(hr.k.replaceMove(Qo.Q.lift(Oe.textEdit.range),Oe.textEdit.text))}let ue=0,Ee=0;for(const[Oe,ot]of se)Oe.pushStackElement(),Oe.pushEditOperations([],ot,()=>[]),Oe.pushStackElement(),Ee+=1,ue+=ot.length;return{ariaSummary:Ue.GP(eo.tu.bulkEditServiceSummary,ue,Ee),isApplied:ue>0}}};el=Ms([go(0,Hn.S)],el);class $d{getUriLabel(o,_){return o.scheme==="file"?o.fsPath:o.path}getUriBasenameLabel(o){return(0,oo.P8)(o)}}let tl=class extends wo{constructor(o,_){super(o),this._codeEditorService=_}showContextView(o,_,N){if(!_){const se=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();se&&(_=se.getContainerDomNode())}return super.showContextView(o,_,N)}};tl=Ms([go(0,On),go(1,Zt.T)],tl);class Qd{constructor(){this._neverEmitter=new Ft.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class Yd extends Xo{constructor(){super()}}class Zd extends Fd{constructor(){super(new vi.Cr)}}let nl=class extends Dr{constructor(o,_,N,se,ue,Ee){super(o,_,N,se,ue,Ee),this.configure({blockMouse:!1})}};nl=Ms([go(0,wi.k),go(1,$e.Ot),go(2,on.l),go(3,un.b),go(4,so.ez),go(5,en.fN)],nl);class Xd{async playSignal(o,_){}}(0,xe.v)(mt.pG,Tl,0),(0,xe.v)($s.U,Ja,0),(0,xe.v)($s.J,qa,0),(0,xe.v)(Pi.VR,Vr,0),(0,xe.v)(pr.L,$d,0),(0,xe.v)(wi.k,Gd,0),(0,xe.v)(cn.X,zd,0),(0,xe.v)(Wd.k,Ud,0),(0,xe.v)($e.Ot,Hr,0),(0,xe.v)(Do.DR,Is,0),(0,xe.v)(vt.L,Yd,0),(0,xe.v)(Ko.L,vd.Sx,0),(0,xe.v)(vi.rr,Zd,0),(0,xe.v)(Hn.S,Es,0),(0,xe.v)(ds.A,Pr,0),(0,xe.v)(en.fN,Qa,0),(0,xe.v)(ps.G5,Vd,0),(0,xe.v)(ps.N8,ha,0),(0,xe.v)(aa.CS,aa.pc,0),(0,xe.v)(ea.w,tt.Bc,0),(0,xe.v)(is.nu,el,0),(0,xe.v)(xo.L,Qd,0),(0,xe.v)(zi.b,Za,0),(0,xe.v)(ji.j,Va,0),(0,xe.v)(mn.PE,mn.aG,0),(0,xe.v)(lo.d,Xa,0),(0,xe.v)(un.b,cr,0),(0,xe.v)(Io.GK,Wa,0),(0,xe.v)(on.l,tl,0),(0,xe.v)(Pn.C,Ir,0),(0,xe.v)(wl.h,ca,0),(0,xe.v)(on.Z,nl,0),(0,xe.v)(so.ez,Ua,0),(0,xe.v)(Il.Nt,Xd,0);var di;(function(Ie){const o=new Ya.a;for(const[ot,_t]of(0,xe.N)())o.set(ot,_t);const _=new ua(o,!0);o.set(Dn._Y,_);function N(ot){se||Ee({});const _t=o.get(ot);if(!_t)throw new Error("Missing service "+ot);return _t instanceof ks.d?_.invokeFunction(Ot=>Ot.get(ot)):_t}Ie.get=N;let se=!1;const ue=new Ft.vl;function Ee(ot){if(se)return _;se=!0;for(const[Ot,nn]of(0,xe.N)())o.get(Ot)||o.set(Ot,nn);for(const Ot in ot)if(ot.hasOwnProperty(Ot)){const nn=(0,Dn.u1)(Ot);o.get(nn)instanceof ks.d&&o.set(nn,ot[Ot])}const _t=(0,Bd.T)();for(const Ot of _t)try{_.createInstance(Ot)}catch(nn){(0,Jn.dz)(nn)}return ue.fire(),_}Ie.initialize=Ee;function Oe(ot){if(se)return ot();const _t=new we.Cm,Ot=_t.add(ue.event(()=>{Ot.dispose(),_t.add(ot())}));return _t}Ie.withServices=Oe})(di||(di={}));var Pl=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js"),Jd=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),il=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Qi=function(Ie,o){return function(_,N){o(_,N,Ie)}};let qd=0,Rl=!1;function ec(Ie){if(!Ie){if(Rl)return;Rl=!0}ct.vr(Ie||We.G.document.body)}let ga=class extends S.x{constructor(o,_,N,se,ue,Ee,Oe,ot,_t,Ot,nn,fn){const wn={..._};wn.ariaLabel=wn.ariaLabel||eo.vp.editorViewAccessibleLabel,wn.ariaLabel=wn.ariaLabel+";"+eo.vp.accessibilityHelpMessage,super(o,wn,{},N,se,ue,Ee,ot,_t,Ot,nn,fn),Oe instanceof cr?this._standaloneKeybindingService=Oe:this._standaloneKeybindingService=null,ec(wn.ariaContainerElement),(0,Jd.MW)((Xn,bi)=>N.createInstance($t.fO,Xn,bi,{}))}addCommand(o,_,N){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;const se="DYNAMIC_"+ ++qd,ue=en.M$.deserialize(N);return this._standaloneKeybindingService.addDynamicKeybinding(se,o,_,ue),se}createContextKey(o,_){return this._contextKeyService.createKey(o,_)}addAction(o){if(typeof o.id!="string"||typeof o.label!="string"||typeof o.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),we.jG.None;const _=o.id,N=o.label,se=en.M$.and(en.M$.equals("editorId",this.getId()),en.M$.deserialize(o.precondition)),ue=o.keybindings,Ee=en.M$.and(se,en.M$.deserialize(o.keybindingContext)),Oe=o.contextMenuGroupId||null,ot=o.contextMenuOrder||0,_t=(wn,...Xn)=>Promise.resolve(o.run(this,...Xn)),Ot=new we.Cm,nn=this.getId()+":"+_;if(Ot.add(lo.w.registerCommand(nn,_t)),Oe){const wn={command:{id:nn,title:N},when:se,group:Oe,order:ot};Ot.add(so.ZG.appendMenuItem(so.D8.EditorContext,wn))}if(Array.isArray(ue))for(const wn of ue)Ot.add(this._standaloneKeybindingService.addDynamicKeybinding(nn,wn,_t,Ee));const fn=new ut.f(nn,N,N,void 0,se,(...wn)=>Promise.resolve(o.run(this,...wn)),this._contextKeyService);return this._actions.set(_,fn),Ot.add((0,we.s)(()=>{this._actions.delete(_)})),Ot}_triggerCommand(o,_){if(this._codeEditorService instanceof rn)try{this._codeEditorService.setActiveCodeEditor(this),super._triggerCommand(o,_)}finally{this._codeEditorService.setActiveCodeEditor(null)}else super._triggerCommand(o,_)}};ga=il([Qi(2,Dn._Y),Qi(3,Zt.T),Qi(4,lo.d),Qi(5,en.fN),Qi(6,un.b),Qi(7,vn.Gy),Qi(8,$e.Ot),Qi(9,ji.j),Qi(10,Gt.JZ),Qi(11,Lt.u)],ga);let ol=class extends ga{constructor(o,_,N,se,ue,Ee,Oe,ot,_t,Ot,nn,fn,wn,Xn,bi){const ki={..._};ma(Ot,ki,!1);const Fi=ot.registerEditorContainer(o);typeof ki.theme=="string"&&ot.setTheme(ki.theme),typeof ki.autoDetectHighContrast<"u"&&ot.setAutoDetectHighContrast(!!ki.autoDetectHighContrast);const Hi=ki.model;delete ki.model,super(o,ki,N,se,ue,Ee,Oe,ot,_t,nn,Xn,bi),this._configurationService=Ot,this._standaloneThemeService=ot,this._register(Fi);let Gi;if(typeof Hi>"u"){const Li=wn.getLanguageIdByMimeType(ki.language)||ki.language||_n.vH;Gi=Ol(fn,wn,ki.value||"",Li,void 0),this._ownsModel=!0}else Gi=Hi,this._ownsModel=!1;if(this._attachModel(Gi),Gi){const Li={oldModelUrl:null,newModelUrl:Gi.uri};this._onDidChangeModel.fire(Li)}}dispose(){super.dispose()}updateOptions(o){ma(this._configurationService,o,!1),typeof o.theme=="string"&&this._standaloneThemeService.setTheme(o.theme),typeof o.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!o.autoDetectHighContrast),super.updateOptions(o)}_postDetachModelCleanup(o){super._postDetachModelCleanup(o),o&&this._ownsModel&&(o.dispose(),this._ownsModel=!1)}};ol=il([Qi(2,Dn._Y),Qi(3,Zt.T),Qi(4,lo.d),Qi(5,en.fN),Qi(6,un.b),Qi(7,Ko.L),Qi(8,$e.Ot),Qi(9,mt.pG),Qi(10,ji.j),Qi(11,Hn.S),Qi(12,vt.L),Qi(13,Gt.JZ),Qi(14,Lt.u)],ol);let sl=class extends Pl.T{constructor(o,_,N,se,ue,Ee,Oe,ot,_t,Ot,nn,fn){const wn={..._};ma(ot,wn,!0);const Xn=Ee.registerEditorContainer(o);typeof wn.theme=="string"&&Ee.setTheme(wn.theme),typeof wn.autoDetectHighContrast<"u"&&Ee.setAutoDetectHighContrast(!!wn.autoDetectHighContrast),super(o,wn,{},se,N,ue,fn,Ot),this._configurationService=ot,this._standaloneThemeService=Ee,this._register(Xn)}dispose(){super.dispose()}updateOptions(o){ma(this._configurationService,o,!0),typeof o.theme=="string"&&this._standaloneThemeService.setTheme(o.theme),typeof o.autoDetectHighContrast<"u"&&this._standaloneThemeService.setAutoDetectHighContrast(!!o.autoDetectHighContrast),super.updateOptions(o)}_createInnerEditor(o,_,N){return o.createInstance(ga,_,N)}getOriginalEditor(){return super.getOriginalEditor()}getModifiedEditor(){return super.getModifiedEditor()}addCommand(o,_,N){return this.getModifiedEditor().addCommand(o,_,N)}createContextKey(o,_){return this.getModifiedEditor().createContextKey(o,_)}addAction(o){return this.getModifiedEditor().addAction(o)}};sl=il([Qi(2,Dn._Y),Qi(3,en.fN),Qi(4,Zt.T),Qi(5,Ko.L),Qi(6,$e.Ot),Qi(7,mt.pG),Qi(8,on.Z),Qi(9,ps.N8),Qi(10,wl.h),Qi(11,Il.Nt)],sl);function Ol(Ie,o,_,N,se){if(_=_||"",!N){const ue=_.indexOf(` `);let Ee=_;return ue!==-1&&(Ee=_.substring(0,ue)),Al(Ie,_,o.createByFilepathOrFirstLine(se||null,Ee),se)}return Al(Ie,_,o.createById(N),se)}function Al(Ie,o,_,N){return Ie.createModel(o,_,N)}var Ji=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),rl=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils.js"),tc=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),Bo=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/base.js"),nc=e("./node_modules/monaco-editor/esm/vs/base/common/scrollable.js"),fa=e("./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js"),ic=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),Nl=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),oc=e("./node_modules/monaco-editor/esm/vs/platform/actions/browser/toolbar.js"),sc=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/multiDiffEditor/utils.js"),rc=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},ac=function(Ie,o){return function(_,N){o(_,N,Ie)}};class lc{constructor(o,_){this.viewModel=o,this.deltaScrollVertical=_}getId(){return this.viewModel}}let pa=class extends we.jG{constructor(o,_,N,se){super(),this._container=o,this._overflowWidgetsDomNode=_,this._workbenchUIElementFactory=N,this._instantiationService=se,this._viewModel=(0,Bo.FY)(this,void 0),this._collapsed=(0,Ji.un)(this,Ee=>{var Oe;return(Oe=this._viewModel.read(Ee))===null||Oe===void 0?void 0:Oe.collapsed.read(Ee)}),this._editorContentHeight=(0,Bo.FY)(this,500),this.contentHeight=(0,Ji.un)(this,Ee=>(this._collapsed.read(Ee)?0:this._editorContentHeight.read(Ee))+this._outerEditorHeight),this._modifiedContentWidth=(0,Bo.FY)(this,0),this._modifiedWidth=(0,Bo.FY)(this,0),this._originalContentWidth=(0,Bo.FY)(this,0),this._originalWidth=(0,Bo.FY)(this,0),this.maxScroll=(0,Ji.un)(this,Ee=>{const Oe=this._modifiedContentWidth.read(Ee)-this._modifiedWidth.read(Ee),ot=this._originalContentWidth.read(Ee)-this._originalWidth.read(Ee);return Oe>ot?{maxScroll:Oe,width:this._modifiedWidth.read(Ee)}:{maxScroll:ot,width:this._originalWidth.read(Ee)}}),this._elements=(0,je.h)("div.multiDiffEntry",[(0,je.h)("div.header@header",[(0,je.h)("div.header-content",[(0,je.h)("div.collapse-button@collapseButton"),(0,je.h)("div.file-path",[(0,je.h)("div.title.modified.show-file-icons@primaryPath",[]),(0,je.h)("div.status.deleted@status",["R"]),(0,je.h)("div.title.original.show-file-icons@secondaryPath",[])]),(0,je.h)("div.actions@actions")])]),(0,je.h)("div.editorParent",[(0,je.h)("div.editorContainer@editor")])]),this.editor=this._register(this._instantiationService.createInstance(Pl.T,this._elements.editor,{overflowWidgetsDomNode:this._overflowWidgetsDomNode},{})),this.isModifedFocused=jl(this.editor.getModifiedEditor()),this.isOriginalFocused=jl(this.editor.getOriginalEditor()),this.isFocused=(0,Ji.un)(this,Ee=>this.isModifedFocused.read(Ee)||this.isOriginalFocused.read(Ee)),this._resourceLabel=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.primaryPath)):void 0,this._resourceLabel2=this._workbenchUIElementFactory.createResourceLabel?this._register(this._workbenchUIElementFactory.createResourceLabel(this._elements.secondaryPath)):void 0,this._dataStore=new we.Cm,this._headerHeight=40,this._lastScrollTop=-1,this._isSettingScrollTop=!1;const ue=new Oa.$(this._elements.collapseButton,{});this._register((0,Ji.fm)(Ee=>{ue.element.className="",ue.icon=this._collapsed.read(Ee)?ls.W.chevronRight:ls.W.chevronDown})),this._register(ue.onDidClick(()=>{var Ee;(Ee=this._viewModel.get())===null||Ee===void 0||Ee.collapsed.set(!this._collapsed.get(),void 0)})),this._register((0,Ji.fm)(Ee=>{this._elements.editor.style.display=this._collapsed.read(Ee)?"none":"block"})),this._register(this.editor.getModifiedEditor().onDidLayoutChange(Ee=>{const Oe=this.editor.getModifiedEditor().getLayoutInfo().contentWidth;this._modifiedWidth.set(Oe,void 0)})),this._register(this.editor.getOriginalEditor().onDidLayoutChange(Ee=>{const Oe=this.editor.getOriginalEditor().getLayoutInfo().contentWidth;this._originalWidth.set(Oe,void 0)})),this._register(this.editor.onDidContentSizeChange(Ee=>{(0,Bo.YY)(Oe=>{this._editorContentHeight.set(Ee.contentHeight,Oe),this._modifiedContentWidth.set(this.editor.getModifiedEditor().getContentWidth(),Oe),this._originalContentWidth.set(this.editor.getOriginalEditor().getContentWidth(),Oe)})})),this._register(this.editor.getOriginalEditor().onDidScrollChange(Ee=>{if(this._isSettingScrollTop||!Ee.scrollTopChanged||!this._data)return;const Oe=Ee.scrollTop-this._lastScrollTop;this._data.deltaScrollVertical(Oe)})),this._register((0,Ji.fm)(Ee=>{const Oe=this.isFocused.read(Ee);this._elements.root.classList.toggle("focused",Oe)})),this._container.appendChild(this._elements.root),this._outerEditorHeight=this._headerHeight,this._register(this._instantiationService.createInstance(oc.m,this._elements.actions,so.D8.MultiDiffEditorFileToolbar,{actionRunner:this._register(new sc.I(()=>{var Ee;return(Ee=this._viewModel.get())===null||Ee===void 0?void 0:Ee.modifiedUri})),menuOptions:{shouldForwardArgs:!0},toolbarOptions:{primaryGroup:Ee=>Ee.startsWith("navigation")},actionViewItemProvider:(Ee,Oe)=>(0,$r.rN)(se,Ee,Oe)}))}setScrollLeft(o){this._modifiedContentWidth.get()-this._modifiedWidth.get()>this._originalContentWidth.get()-this._originalWidth.get()?this.editor.getModifiedEditor().setScrollLeft(o):this.editor.getOriginalEditor().setScrollLeft(o)}setData(o){this._data=o;function _(se){return{...se,scrollBeyondLastLine:!1,hideUnchangedRegions:{enabled:!0},scrollbar:{vertical:"hidden",horizontal:"hidden",handleMouseWheel:!1,useShadows:!1},renderOverviewRuler:!1,fixedOverflowWidgets:!0,overviewRulerBorder:!1}}const N=o.viewModel.entry.value;N.onOptionsDidChange&&this._dataStore.add(N.onOptionsDidChange(()=>{var se;this.editor.updateOptions(_((se=N.options)!==null&&se!==void 0?se:{}))})),(0,Bo.YY)(se=>{var ue,Ee,Oe,ot;(ue=this._resourceLabel)===null||ue===void 0||ue.setUri((Ee=o.viewModel.modifiedUri)!==null&&Ee!==void 0?Ee:o.viewModel.originalUri,{strikethrough:o.viewModel.modifiedUri===void 0});let _t=!1,Ot=!1,nn=!1,fn="";o.viewModel.modifiedUri&&o.viewModel.originalUri&&o.viewModel.modifiedUri.path!==o.viewModel.originalUri.path?(fn="R",_t=!0):o.viewModel.modifiedUri?o.viewModel.originalUri||(fn="A",nn=!0):(fn="D",Ot=!0),this._elements.status.classList.toggle("renamed",_t),this._elements.status.classList.toggle("deleted",Ot),this._elements.status.classList.toggle("added",nn),this._elements.status.innerText=fn,(Oe=this._resourceLabel2)===null||Oe===void 0||Oe.setUri(_t?o.viewModel.originalUri:void 0,{strikethrough:!0}),this._dataStore.clear(),this._viewModel.set(o.viewModel,se),this.editor.setModel(o.viewModel.diffEditorViewModel,se),this.editor.updateOptions(_((ot=N.options)!==null&&ot!==void 0?ot:{}))})}render(o,_,N,se){this._elements.root.style.visibility="visible",this._elements.root.style.top=`${o.start}px`,this._elements.root.style.height=`${o.length}px`,this._elements.root.style.width=`${_}px`,this._elements.root.style.position="absolute";const ue=o.length-this._headerHeight,Ee=Math.max(0,Math.min(se.start-o.start,ue));this._elements.header.style.transform=`translateY(${Ee}px)`,(0,Bo.YY)(Oe=>{this.editor.layout({width:_-2*8-2*1,height:o.length-this._outerEditorHeight})});try{this._isSettingScrollTop=!0,this._lastScrollTop=N,this.editor.getOriginalEditor().setScrollTop(N)}finally{this._isSettingScrollTop=!1}this._elements.header.classList.toggle("shadow",Ee>0||N>0),this._elements.header.classList.toggle("collapsed",Ee===ue)}hide(){this._elements.root.style.top="-100000px",this._elements.root.style.visibility="hidden"}};pa=rc([ac(3,Dn._Y)],pa);function jl(Ie){return(0,Ji.y0)(o=>{const _=new we.Cm;return _.add(Ie.onDidFocusEditorWidget(()=>o(!0))),_.add(Ie.onDidBlurEditorWidget(()=>o(!1))),_},()=>Ie.hasTextFocus())}class dc{constructor(o){this._create=o,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(o){var _;let N;if(this._unused.size===0)N=this._create(o),this._itemData.set(N,o);else{const se=[...this._unused.values()];N=(_=se.find(ue=>this._itemData.get(ue).getId()===o.getId()))!==null&&_!==void 0?_:se[0],this._unused.delete(N),this._itemData.set(N,o),N.setData(o)}return this._used.add(N),{object:N,dispose:()=>{this._used.delete(N),this._unused.size>5?N.dispose():this._unused.add(N)}}}dispose(){for(const o of this._used)o.dispose();for(const o of this._unused)o.dispose();this._used.clear(),this._unused.clear()}}var cc=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Fl=function(Ie,o){return function(_,N){o(_,N,Ie)}};let al=class extends we.jG{constructor(o,_,N,se,ue,Ee){super(),this._element=o,this._dimension=_,this._viewModel=N,this._workbenchUIElementFactory=se,this._parentContextKeyService=ue,this._parentInstantiationService=Ee,this._elements=(0,je.h)("div.monaco-component.multiDiffEditor",[(0,je.h)("div@content",{style:{overflow:"hidden"}}),(0,je.h)("div.monaco-editor@overflowWidgetsDomNode",{})]),this._sizeObserver=this._register(new rl.pN(this._element,void 0)),this._objectPool=this._register(new dc(ot=>{const _t=this._instantiationService.createInstance(pa,this._elements.content,this._elements.overflowWidgetsDomNode,this._workbenchUIElementFactory);return _t.setData(ot),_t})),this._scrollable=this._register(new nc.yE({forceIntegerValues:!1,scheduleAtNextAnimationFrame:ot=>(0,je.PG)((0,je.zk)(this._element),ot),smoothScrollDuration:100})),this._scrollableElement=this._register(new Cs.oO(this._elements.root,{vertical:1,horizontal:1,useShadows:!1},this._scrollable)),this.scrollTop=(0,Ji.y0)(this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollTop),this.scrollLeft=(0,Ji.y0)(this._scrollableElement.onScroll,()=>this._scrollableElement.getScrollPosition().scrollLeft),this._viewItems=(0,Ji.rm)(this,(ot,_t)=>{const Ot=this._viewModel.read(ot);return Ot?Ot.items.read(ot).map(fn=>{var wn;const Xn=_t.add(new uc(fn,this._objectPool,this.scrollLeft,ki=>{this._scrollableElement.setScrollPosition({scrollTop:this._scrollableElement.getScrollPosition().scrollTop+ki})})),bi=(wn=this._lastDocStates)===null||wn===void 0?void 0:wn[Xn.getKey()];return bi&&(0,Bo.Rn)(ki=>{Xn.setViewState(bi,ki)}),Xn}):[]}),this._spaceBetweenPx=0,this._totalHeight=this._viewItems.map(this,(ot,_t)=>ot.reduce((Ot,nn)=>Ot+nn.contentHeight.read(_t)+this._spaceBetweenPx,0)),this.activeDiffItem=(0,Ji.un)(this,ot=>this._viewItems.read(ot).find(_t=>{var Ot;return(Ot=_t.template.read(ot))===null||Ot===void 0?void 0:Ot.isFocused.read(ot)})),this.lastActiveDiffItem=(0,Ji.ZX)((ot,_t)=>{var Ot;return(Ot=this.activeDiffItem.read(ot))!==null&&Ot!==void 0?Ot:_t}),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._element)),this._instantiationService=this._parentInstantiationService.createChild(new Ya.a([en.fN,this._contextKeyService])),this._lastDocStates={},this._contextKeyService.createKey(Nl.R.inMultiDiffEditor.key,!0),this._register((0,Ji.yC)((ot,_t)=>{const Ot=this._viewModel.read(ot);if(Ot&&Ot.contextKeys)for(const[nn,fn]of Object.entries(Ot.contextKeys)){const wn=this._contextKeyService.createKey(nn,void 0);wn.set(fn),_t.add((0,we.s)(()=>wn.reset()))}}));const Oe=this._parentContextKeyService.createKey(Nl.R.multiDiffEditorAllCollapsed.key,!1);this._register((0,Ji.fm)(ot=>{const _t=this._viewModel.read(ot);if(_t){const Ot=_t.items.read(ot).every(nn=>nn.collapsed.read(ot));Oe.set(Ot)}})),this._register((0,Ji.fm)(ot=>{const _t=this.lastActiveDiffItem.read(ot);(0,Bo.Rn)(Ot=>{var nn;(nn=this._viewModel.read(ot))===null||nn===void 0||nn.activeDiffItem.set(_t?.viewModel,Ot)})})),this._register((0,Ji.fm)(ot=>{const _t=this._dimension.read(ot);this._sizeObserver.observe(_t)})),this._elements.content.style.position="relative",this._register((0,Ji.fm)(ot=>{const _t=this._sizeObserver.height.read(ot);this._elements.root.style.height=`${_t}px`;const Ot=this._totalHeight.read(ot);this._elements.content.style.height=`${Ot}px`;const nn=this._sizeObserver.width.read(ot);let fn=nn;const wn=this._viewItems.read(ot),Xn=(0,tc.Nf)(wn,bi=>bi.maxScroll.read(ot).maxScroll);if(Xn){const bi=Xn.maxScroll.read(ot);fn=nn+bi.maxScroll}this._scrollableElement.setScrollDimensions({width:nn,height:_t,scrollHeight:Ot,scrollWidth:fn})})),o.replaceChildren(this._scrollableElement.getDomNode()),this._register((0,we.s)(()=>{o.replaceChildren()})),this._register(this._register((0,Ji.fm)(ot=>{(0,Bo.YY)(_t=>{this.render(ot)})})))}render(o){const _=this.scrollTop.read(o);let N=0,se=0,ue=0;const Ee=this._sizeObserver.height.read(o),Oe=fa.L.ofStartAndLength(_,Ee),ot=this._sizeObserver.width.read(o);for(const _t of this._viewItems.read(o)){const Ot=_t.contentHeight.read(o),nn=Math.min(Ot,Ee),fn=fa.L.ofStartAndLength(se,nn),wn=fa.L.ofStartAndLength(ue,Ot);if(wn.isBefore(Oe))N-=Ot-nn,_t.hide();else if(wn.isAfter(Oe))_t.hide();else{const Xn=Math.max(0,Math.min(Oe.start-wn.start,Ot-nn));N-=Xn;const bi=fa.L.ofStartAndLength(_+N,Ee);_t.render(fn,Xn,ot,bi)}se+=nn+this._spaceBetweenPx,ue+=Ot+this._spaceBetweenPx}this._elements.content.style.transform=`translateY(${-(_+N)}px)`}};al=cc([Fl(4,en.fN),Fl(5,Dn._Y)],al);class uc extends we.jG{constructor(o,_,N,se){super(),this.viewModel=o,this._objectPool=_,this._scrollLeft=N,this._deltaScrollVertical=se,this._templateRef=this._register((0,Bo.X2)(this,void 0)),this.contentHeight=(0,Ji.un)(this,ue=>{var Ee,Oe,ot;return(ot=(Oe=(Ee=this._templateRef.read(ue))===null||Ee===void 0?void 0:Ee.object.contentHeight)===null||Oe===void 0?void 0:Oe.read(ue))!==null&&ot!==void 0?ot:this.viewModel.lastTemplateData.read(ue).contentHeight}),this.maxScroll=(0,Ji.un)(this,ue=>{var Ee,Oe;return(Oe=(Ee=this._templateRef.read(ue))===null||Ee===void 0?void 0:Ee.object.maxScroll.read(ue))!==null&&Oe!==void 0?Oe:{maxScroll:0,scrollWidth:0}}),this.template=(0,Ji.un)(this,ue=>{var Ee;return(Ee=this._templateRef.read(ue))===null||Ee===void 0?void 0:Ee.object}),this._isHidden=(0,Ji.FY)(this,!1),this._register((0,Ji.fm)(ue=>{var Ee;const Oe=this._scrollLeft.read(ue);(Ee=this._templateRef.read(ue))===null||Ee===void 0||Ee.object.setScrollLeft(Oe)})),this._register((0,Ji.fm)(ue=>{const Ee=this._templateRef.read(ue);!Ee||!this._isHidden.read(ue)||Ee.object.isFocused.read(ue)||this._clear()}))}dispose(){this._clear(),super.dispose()}toString(){var o;return`VirtualViewItem(${(o=this.viewModel.entry.value.modified)===null||o===void 0?void 0:o.uri.toString()})`}getKey(){return this.viewModel.getKey()}setViewState(o,_){var N;this.viewModel.collapsed.set(o.collapsed,_),this._updateTemplateData(_);const se=this.viewModel.lastTemplateData.get(),ue=(N=o.selections)===null||N===void 0?void 0:N.map(ic.L.liftSelection);this.viewModel.lastTemplateData.set({...se,selections:ue},_);const Ee=this._templateRef.get();Ee&&ue&&Ee.object.editor.setSelections(ue)}_updateTemplateData(o){var _;const N=this._templateRef.get();N&&this.viewModel.lastTemplateData.set({contentHeight:N.object.contentHeight.get(),selections:(_=N.object.editor.getSelections())!==null&&_!==void 0?_:void 0},o)}_clear(){const o=this._templateRef.get();o&&(0,Bo.Rn)(_=>{this._updateTemplateData(_),o.object.hide(),this._templateRef.set(void 0,_)})}hide(){this._isHidden.set(!0,void 0)}render(o,_,N,se){this._isHidden.set(!1,void 0);let ue=this._templateRef.get();if(!ue){ue=this._objectPool.getUnusedObj(new lc(this.viewModel,this._deltaScrollVertical)),this._templateRef.set(ue,void 0);const Ee=this.viewModel.lastTemplateData.get().selections;Ee&&ue.object.editor.setSelections(Ee)}ue.object.render(o,N,_,se)}}const Vu=(0,Xt.x1A)("multiDiffEditor.headerBackground",{dark:"#262626",light:"tab.inactiveBackground",hcDark:"tab.inactiveBackground",hcLight:"tab.inactiveBackground"},(0,Rn.kg)("multiDiffEditor.headerBackground","The background color of the diff editor's header")),Uu=(0,Xt.x1A)("multiDiffEditor.background",{dark:"editorBackground",light:"editorBackground",hcDark:"editorBackground",hcLight:"editorBackground"},(0,Rn.kg)("multiDiffEditor.background","The background color of the multi file diff editor")),zu=(0,Xt.x1A)("multiDiffEditor.border",{dark:"sideBarSectionHeader.border",light:"#cccccc",hcDark:"sideBarSectionHeader.border",hcLight:"#cccccc"},(0,Rn.kg)("multiDiffEditor.border","The border color of the multi file diff editor"));var hc=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},mc=function(Ie,o){return function(_,N){o(_,N,Ie)}};let ll=class extends we.jG{constructor(o,_,N){super(),this._element=o,this._workbenchUIElementFactory=_,this._instantiationService=N,this._dimension=(0,Ji.FY)(this,void 0),this._viewModel=(0,Ji.FY)(this,void 0),this._widgetImpl=(0,Ji.rm)(this,(se,ue)=>((0,rl.b6)(pa,se),ue.add(this._instantiationService.createInstance((0,rl.b6)(al,se),this._element,this._dimension,this._viewModel,this._workbenchUIElementFactory)))),this._register((0,Ji.OI)(this._widgetImpl))}};ll=hc([mc(2,Dn._Y)],ll);function gc(Ie,o,_){return di.initialize(_||{}).createInstance(ol,Ie,o)}function fc(Ie){return di.get(Zt.T).onCodeEditorAdd(_=>{Ie(_)})}function pc(Ie){return di.get(Zt.T).onDiffEditorAdd(_=>{Ie(_)})}function _c(){return di.get(Zt.T).listCodeEditors()}function vc(){return di.get(Zt.T).listDiffEditors()}function bc(Ie,o,_){return di.initialize(_||{}).createInstance(sl,Ie,o)}function Cc(Ie,o){const _=di.initialize(o||{});return new ll(Ie,{},_)}function yc(Ie){if(typeof Ie.id!="string"||typeof Ie.run!="function")throw new Error("Invalid command descriptor, `id` and `run` are required properties!");return lo.w.registerCommand(Ie.id,Ie.run)}function Sc(Ie){if(typeof Ie.id!="string"||typeof Ie.label!="string"||typeof Ie.run!="function")throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");const o=en.M$.deserialize(Ie.precondition),_=(se,...ue)=>Kt.DX.runEditorCommand(se,ue,o,(Ee,Oe,ot)=>Promise.resolve(Ie.run(Oe,...ot))),N=new we.Cm;if(N.add(lo.w.registerCommand(Ie.id,_)),Ie.contextMenuGroupId){const se={command:{id:Ie.id,title:Ie.label},when:o,group:Ie.contextMenuGroupId,order:Ie.contextMenuOrder||0};N.add(so.ZG.appendMenuItem(so.D8.EditorContext,se))}if(Array.isArray(Ie.keybindings)){const se=di.get(un.b);if(!(se instanceof cr))console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");else{const ue=en.M$.and(o,en.M$.deserialize(Ie.keybindingContext));N.add(se.addDynamicKeybindings(Ie.keybindings.map(Ee=>({keybinding:Ee,command:Ie.id,when:ue}))))}}return N}function wc(Ie){return Bl([Ie])}function Bl(Ie){const o=di.get(un.b);return o instanceof cr?o.addDynamicKeybindings(Ie.map(_=>({keybinding:_.keybinding,command:_.command,commandArgs:_.commandArgs,when:en.M$.deserialize(_.when)}))):(console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),we.jG.None)}function Dc(Ie,o,_){const N=di.get(vt.L),se=N.getLanguageIdByMimeType(o)||o;return Ol(di.get(Hn.S),N,Ie,se,_)}function Lc(Ie,o){const _=di.get(vt.L),N=_.getLanguageIdByMimeType(o)||o||_n.vH;Ie.setLanguage(_.createById(N))}function Ec(Ie,o,_){Ie&&di.get(Do.DR).changeOne(o,Ie.uri,_)}function xc(Ie){di.get(Do.DR).changeAll(Ie,[])}function kc(Ie){return di.get(Do.DR).read(Ie)}function Ic(Ie){return di.get(Do.DR).onMarkerChanged(Ie)}function Mc(Ie){return di.get(Hn.S).getModel(Ie)}function Tc(){return di.get(Hn.S).getModels()}function Pc(Ie){return di.get(Hn.S).onModelAdded(Ie)}function Rc(Ie){return di.get(Hn.S).onModelRemoved(Ie)}function Oc(Ie){return di.get(Hn.S).onModelLanguageChanged(_=>{Ie({model:_.model,oldLanguage:_.oldLanguageId})})}function Ac(Ie){return Mt(di.get(Hn.S),di.get(Gt.JZ),Ie)}function Nc(Ie,o){const _=di.get(vt.L),N=di.get(Ko.L);return at.colorizeElement(N,_,Ie,o).then(()=>{N.registerEditorContainer(Ie)})}function jc(Ie,o,_){const N=di.get(vt.L);return di.get(Ko.L).registerEditorContainer(We.G.document.body),at.colorize(N,Ie,o,_)}function Fc(Ie,o,_=4){return di.get(Ko.L).registerEditorContainer(We.G.document.body),at.colorizeModelLine(Ie,o,_)}function Bc(Ie){const o=Be.dG.get(Ie);return o||{getInitialState:()=>Fn.r3,tokenize:(_,N,se)=>(0,Fn.$H)(Ie,se)}}function Wc(Ie,o){Be.dG.getOrCreate(o);const _=Bc(o),N=(0,Ue.uz)(Ie),se=[];let ue=_.getInitialState();for(let Ee=0,Oe=N.length;Ee{var ue;if(!N)return null;const Ee=(ue=_.options)===null||ue===void 0?void 0:ue.selection;let Oe;return Ee&&typeof Ee.endLineNumber=="number"&&typeof Ee.endColumn=="number"?Oe=Ee:Ee&&(Oe={lineNumber:Ee.startLineNumber,column:Ee.startColumn}),await Ie.openCodeEditor(N,_.resource,Oe)?N:null})}function $c(){return{create:gc,getEditors:_c,getDiffEditors:vc,onDidCreateEditor:fc,onDidCreateDiffEditor:pc,createDiffEditor:bc,addCommand:yc,addEditorAction:Sc,addKeybindingRule:wc,addKeybindingRules:Bl,createModel:Dc,setModelLanguage:Lc,setModelMarkers:Ec,getModelMarkers:kc,removeAllMarkers:xc,onDidChangeMarkers:Ic,getModels:Tc,getModel:Mc,onDidCreateModel:Pc,onWillDisposeModel:Rc,onDidChangeModelLanguage:Oc,createWebWorker:Ac,colorizeElement:Nc,colorize:jc,colorizeModelLine:Fc,tokenize:Wc,defineTheme:Hc,setTheme:Vc,remeasureFonts:Uc,registerCommand:zc,registerLinkOpener:Kc,registerEditorOpener:Gc,AccessibilitySupport:Kn.Gn,ContentWidgetPositionPreference:Kn.Qj,CursorChangeReason:Kn.h5,DefaultEndOfLine:Kn.of,EditorAutoIndentStrategy:Kn.e0,EditorOption:Kn.p2,EndOfLinePreference:Kn.kf,EndOfLineSequence:Kn.WU,MinimapPosition:Kn.R3,MinimapSectionHeaderStyle:Kn.VX,MouseTargetType:Kn.hS,OverlayWidgetPositionPreference:Kn.dE,OverviewRulerLane:Kn.A5,GlyphMarginLane:Kn.ZS,RenderLineNumbersType:Kn.DO,RenderMinimap:Kn.hW,ScrollbarVisibility:Kn.XR,ScrollType:Kn.ov,TextEditorCursorBlinkingStyle:Kn.U7,TextEditorCursorStyle:Kn.m9,TrackedRangeStickiness:Kn.kK,WrappingIndent:Kn.tJ,InjectedTextCursorStops:Kn.VW,PositionAffinity:Kn.Ic,ShowLightbulbIconMode:Kn.jT,ConfigurationChangedEvent:de.lw,BareFontInfo:Jt._8,FontInfo:Jt.YJ,TextModelResolvedOptions:An.X2,FindMatch:An.Dg,ApplyUpdateResult:de.hZ,EditorZoom:xt.D,createMultiFileDiffEditor:Cc,EditorType:Nt._,EditorOptions:de.qB}}var Qc=e("./node_modules/monaco-editor/esm/vs/base/common/color.js");function Yc(Ie,o){if(!o||!Array.isArray(o))return!1;for(const _ of o)if(!Ie(_))return!1;return!0}function _a(Ie,o){return typeof Ie=="boolean"?Ie:o}function Wl(Ie,o){return typeof Ie=="string"?Ie:o}function Zc(Ie){const o={};for(const _ of Ie)o[_]=!0;return o}function Hl(Ie,o=!1){o&&(Ie=Ie.map(function(N){return N.toLowerCase()}));const _=Zc(Ie);return o?function(N){return _[N.toLowerCase()]!==void 0&&_.hasOwnProperty(N.toLowerCase())}:function(N){return _[N]!==void 0&&_.hasOwnProperty(N)}}function dl(Ie,o,_){o=o.replace(/@@/g,"");let N=0,se;do se=!1,o=o.replace(/@(\w+)/g,function(Ee,Oe){se=!0;let ot="";if(typeof Ie[Oe]=="string")ot=Ie[Oe];else if(Ie[Oe]&&Ie[Oe]instanceof RegExp)ot=Ie[Oe].source;else throw Ie[Oe]===void 0?Yn(Ie,"language definition does not contain attribute '"+Oe+"', used at: "+o):Yn(Ie,"attribute reference '"+Oe+"' must be a string, used at: "+o);return Si(ot)?"":"(?:"+ot+")"}),N++;while(se&&N<5);o=o.replace(/\x01/g,"@");const ue=(Ie.ignoreCase?"i":"")+(Ie.unicode?"u":"");if(_&&o.match(/\$[sS](\d\d?)/g)){let Oe=null,ot=null;return _t=>(ot&&Oe===_t||(Oe=_t,ot=new RegExp(Ai(Ie,o,_t),ue)),ot)}return new RegExp(o,ue)}function Xc(Ie,o,_,N){if(N<0)return Ie;if(N=100){N=N-100;const se=_.split(".");if(se.unshift(_),N=0&&(N.tokenSubst=!0),typeof _.bracket=="string")if(_.bracket==="@open")N.bracket=1;else if(_.bracket==="@close")N.bracket=-1;else throw Yn(Ie,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+o);if(_.next){if(typeof _.next!="string")throw Yn(Ie,"the next state must be a string value in rule: "+o);{let se=_.next;if(!/^(@pop|@push|@popall)$/.test(se)&&(se[0]==="@"&&(se=se.substr(1)),se.indexOf("$")<0&&!Ye(Ie,Di(Ie,se,"",[],""))))throw Yn(Ie,"the next state '"+_.next+"' is not defined in rule: "+o);N.next=se}}return typeof _.goBack=="number"&&(N.goBack=_.goBack),typeof _.switchTo=="string"&&(N.switchTo=_.switchTo),typeof _.log=="string"&&(N.log=_.log),typeof _.nextEmbedded=="string"&&(N.nextEmbedded=_.nextEmbedded,Ie.usesEmbedded=!0),N}}else if(Array.isArray(_)){const N=[];for(let se=0,ue=_.length;se0&&N[0]==="^",this.name=this.name+": "+N,this.regex=dl(o,"^(?:"+(this.matchOnlyAtLineStart?N.substr(1):N)+")",!0)}setAction(o,_){this.action=cl(o,this.name,_)}resolveRegex(o){return this.regex instanceof RegExp?this.regex:this.regex(o)}}function Vl(Ie,o){if(!o||typeof o!="object")throw new Error("Monarch: expecting a language definition object");const _={};_.languageId=Ie,_.includeLF=_a(o.includeLF,!1),_.noThrow=!1,_.maxStack=100,_.start=typeof o.start=="string"?o.start:null,_.ignoreCase=_a(o.ignoreCase,!1),_.unicode=_a(o.unicode,!1),_.tokenPostfix=Wl(o.tokenPostfix,"."+_.languageId),_.defaultToken=Wl(o.defaultToken,"source"),_.usesEmbedded=!1;const N=o;N.languageId=Ie,N.includeLF=_.includeLF,N.ignoreCase=_.ignoreCase,N.unicode=_.unicode,N.noThrow=_.noThrow,N.usesEmbedded=_.usesEmbedded,N.stateNames=o.tokenizer,N.defaultToken=_.defaultToken;function se(Ee,Oe,ot){for(const _t of ot){let Ot=_t.include;if(Ot){if(typeof Ot!="string")throw Yn(_,"an 'include' attribute must be a string at: "+Ee);if(Ot[0]==="@"&&(Ot=Ot.substr(1)),!o.tokenizer[Ot])throw Yn(_,"include target '"+Ot+"' is not defined at: "+Ee);se(Ee+"."+Ot,Oe,o.tokenizer[Ot])}else{const nn=new qc(Ee);if(Array.isArray(_t)&&_t.length>=1&&_t.length<=3)if(nn.setRegex(N,_t[0]),_t.length>=3)if(typeof _t[1]=="string")nn.setAction(N,{token:_t[1],next:_t[2]});else if(typeof _t[1]=="object"){const fn=_t[1];fn.next=_t[2],nn.setAction(N,fn)}else throw Yn(_,"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: "+Ee);else nn.setAction(N,_t[1]);else{if(!_t.regex)throw Yn(_,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Ee);_t.name&&typeof _t.name=="string"&&(nn.name=_t.name),_t.matchOnlyAtStart&&(nn.matchOnlyAtLineStart=_a(_t.matchOnlyAtLineStart,!1)),nn.setRegex(N,_t.regex),nn.setAction(N,_t.action)}Oe.push(nn)}}}if(!o.tokenizer||typeof o.tokenizer!="object")throw Yn(_,"a language definition must define the 'tokenizer' attribute as an object");_.tokenizer=[];for(const Ee in o.tokenizer)if(o.tokenizer.hasOwnProperty(Ee)){_.start||(_.start=Ee);const Oe=o.tokenizer[Ee];_.tokenizer[Ee]=new Array,se("tokenizer."+Ee,_.tokenizer[Ee],Oe)}if(_.usesEmbedded=N.usesEmbedded,o.brackets){if(!Array.isArray(o.brackets))throw Yn(_,"the 'brackets' attribute must be defined as an array")}else o.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];const ue=[];for(const Ee of o.brackets){let Oe=Ee;if(Oe&&Array.isArray(Oe)&&Oe.length===3&&(Oe={token:Oe[2],open:Oe[0],close:Oe[1]}),Oe.open===Oe.close)throw Yn(_,"open and close brackets in a 'brackets' attribute must be different: "+Oe.open+` hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof Oe.open=="string"&&typeof Oe.token=="string"&&typeof Oe.close=="string")ue.push({token:Oe.token+_.tokenPostfix,open:Ti(_,Oe.open),close:Ti(_,Oe.close)});else throw Yn(_,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return _.brackets=ue,_.noThrow=!0,_}function eu(Ie){_n.W6.registerLanguage(Ie)}function tu(){let Ie=[];return Ie=Ie.concat(_n.W6.getLanguages()),Ie}function nu(Ie){return di.get(vt.L).languageIdCodec.encodeLanguageId(Ie)}function iu(Ie,o){return di.withServices(()=>{const N=di.get(vt.L).onDidRequestRichLanguageFeatures(se=>{se===Ie&&(N.dispose(),o())});return N})}function ou(Ie,o){return di.withServices(()=>{const N=di.get(vt.L).onDidRequestBasicLanguageFeatures(se=>{se===Ie&&(N.dispose(),o())});return N})}function su(Ie,o){if(!di.get(vt.L).isRegisteredLanguageId(Ie))throw new Error(`Cannot set configuration for unknown language ${Ie}`);return di.get(Gt.JZ).register(Ie,o,100)}class ru{constructor(o,_){this._languageId=o,this._actual=_}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(o,_,N){if(typeof this._actual.tokenize=="function")return Ur.adaptTokenize(this._languageId,this._actual,o,N);throw new Error("Not supported!")}tokenizeEncoded(o,_,N){const se=this._actual.tokenizeEncoded(o,N);return new Be.rY(se.tokens,se.endState)}}class Ur{constructor(o,_,N,se){this._languageId=o,this._actual=_,this._languageService=N,this._standaloneThemeService=se}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(o,_){const N=[];let se=0;for(let ue=0,Ee=o.length;ue0&&ue[Ee-1]===fn)continue;let wn=nn.startIndex;_t===0?wn=0:wn{const N=await Promise.resolve(o.create());return N?au(N)?zl(Ie,N):new Dt(di.get(vt.L),di.get(Ko.L),Ie,Vl(Ie,N),di.get(mt.pG)):null});return Be.dG.registerFactory(Ie,_)}function cu(Ie,o){if(!di.get(vt.L).isRegisteredLanguageId(Ie))throw new Error(`Cannot set tokens provider for unknown language ${Ie}`);return Ul(o)?ul(Ie,{create:()=>o}):Be.dG.register(Ie,zl(Ie,o))}function uu(Ie,o){const _=N=>new Dt(di.get(vt.L),di.get(Ko.L),Ie,Vl(Ie,N),di.get(mt.pG));return Ul(o)?ul(Ie,{create:()=>o}):Be.dG.register(Ie,_(o))}function hu(Ie,o){return di.get(Lt.u).referenceProvider.register(Ie,o)}function mu(Ie,o){return di.get(Lt.u).renameProvider.register(Ie,o)}function gu(Ie,o){return di.get(Lt.u).newSymbolNamesProvider.register(Ie,o)}function fu(Ie,o){return di.get(Lt.u).signatureHelpProvider.register(Ie,o)}function pu(Ie,o){return di.get(Lt.u).hoverProvider.register(Ie,{provideHover:(N,se,ue)=>{const Ee=N.getWordAtPosition(se);return Promise.resolve(o.provideHover(N,se,ue)).then(Oe=>{if(Oe)return!Oe.range&&Ee&&(Oe.range=new Qo.Q(se.lineNumber,Ee.startColumn,se.lineNumber,Ee.endColumn)),Oe.range||(Oe.range=new Qo.Q(se.lineNumber,se.column,se.lineNumber,se.column)),Oe})}})}function _u(Ie,o){return di.get(Lt.u).documentSymbolProvider.register(Ie,o)}function vu(Ie,o){return di.get(Lt.u).documentHighlightProvider.register(Ie,o)}function bu(Ie,o){return di.get(Lt.u).linkedEditingRangeProvider.register(Ie,o)}function Cu(Ie,o){return di.get(Lt.u).definitionProvider.register(Ie,o)}function yu(Ie,o){return di.get(Lt.u).implementationProvider.register(Ie,o)}function Su(Ie,o){return di.get(Lt.u).typeDefinitionProvider.register(Ie,o)}function wu(Ie,o){return di.get(Lt.u).codeLensProvider.register(Ie,o)}function Du(Ie,o,_){return di.get(Lt.u).codeActionProvider.register(Ie,{providedCodeActionKinds:_?.providedCodeActionKinds,documentation:_?.documentation,provideCodeActions:(se,ue,Ee,Oe)=>{const _t=di.get(Do.DR).read({resource:se.uri}).filter(Ot=>Qo.Q.areIntersectingOrTouching(Ot,ue));return o.provideCodeActions(se,ue,{markers:_t,only:Ee.only,trigger:Ee.trigger},Oe)},resolveCodeAction:o.resolveCodeAction})}function Lu(Ie,o){return di.get(Lt.u).documentFormattingEditProvider.register(Ie,o)}function Eu(Ie,o){return di.get(Lt.u).documentRangeFormattingEditProvider.register(Ie,o)}function xu(Ie,o){return di.get(Lt.u).onTypeFormattingEditProvider.register(Ie,o)}function ku(Ie,o){return di.get(Lt.u).linkProvider.register(Ie,o)}function Iu(Ie,o){return di.get(Lt.u).completionProvider.register(Ie,o)}function Mu(Ie,o){return di.get(Lt.u).colorProvider.register(Ie,o)}function Tu(Ie,o){return di.get(Lt.u).foldingRangeProvider.register(Ie,o)}function Pu(Ie,o){return di.get(Lt.u).declarationProvider.register(Ie,o)}function Ru(Ie,o){return di.get(Lt.u).selectionRangeProvider.register(Ie,o)}function Ou(Ie,o){return di.get(Lt.u).documentSemanticTokensProvider.register(Ie,o)}function Au(Ie,o){return di.get(Lt.u).documentRangeSemanticTokensProvider.register(Ie,o)}function Nu(Ie,o){return di.get(Lt.u).inlineCompletionsProvider.register(Ie,o)}function ju(Ie,o){return di.get(Lt.u).inlineEditProvider.register(Ie,o)}function Fu(Ie,o){return di.get(Lt.u).inlayHintsProvider.register(Ie,o)}function Bu(){return{register:eu,getLanguages:tu,onLanguage:iu,onLanguageEncountered:ou,getEncodedLanguageId:nu,setLanguageConfiguration:su,setColorMap:du,registerTokensProviderFactory:ul,setTokensProvider:cu,setMonarchTokensProvider:uu,registerReferenceProvider:hu,registerRenameProvider:mu,registerNewSymbolNameProvider:gu,registerCompletionItemProvider:Iu,registerSignatureHelpProvider:fu,registerHoverProvider:pu,registerDocumentSymbolProvider:_u,registerDocumentHighlightProvider:vu,registerLinkedEditingRangeProvider:bu,registerDefinitionProvider:Cu,registerImplementationProvider:yu,registerTypeDefinitionProvider:Su,registerCodeLensProvider:wu,registerCodeActionProvider:Du,registerDocumentFormattingEditProvider:Lu,registerDocumentRangeFormattingEditProvider:Eu,registerOnTypeFormattingEditProvider:xu,registerLinkProvider:ku,registerColorProvider:Mu,registerFoldingRangeProvider:Tu,registerDeclarationProvider:Pu,registerSelectionRangeProvider:Ru,registerDocumentSemanticTokensProvider:Ou,registerDocumentRangeSemanticTokensProvider:Au,registerInlineCompletionsProvider:Nu,registerInlineEditProvider:ju,registerInlayHintsProvider:Fu,DocumentHighlightKind:Kn.Kb,CompletionItemKind:Kn.Io,CompletionItemTag:Kn.QP,CompletionItemInsertTextRule:Kn._E,SymbolKind:Kn.v0,SymbolTag:Kn.H_,IndentAction:Kn.l,CompletionTriggerKind:Kn.t7,SignatureHelpTriggerKind:Kn.WA,InlayHintKind:Kn.r4,InlineCompletionTriggerKind:Kn.qw,InlineEditTriggerKind:Kn.sm,CodeActionTriggerType:Kn.ok,NewSymbolNameTag:Kn.OV,PartialAcceptTriggerKind:Kn.Ah,FoldingRangeKind:Be.lO,SelectedSuggestionInfo:Be.GE}}var Wu=e("./node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/format.js");de.qB.wrappingIndent.defaultValue=0,de.qB.glyphMargin.defaultValue=!1,de.qB.autoIndent.defaultValue=3,de.qB.overviewRulerLanes.defaultValue=2,Wu.Pj.setFormatterSelector((Ie,o,_)=>Promise.resolve(Ie[0]));const Mo=(0,Le.r)();Mo.editor=$c(),Mo.languages=Bu();const Kl=Mo.CancellationTokenSource,Gl=Mo.Emitter,$l=Mo.KeyCode,Ql=Mo.KeyMod,Yl=Mo.Position,Zl=Mo.Range,Xl=Mo.Selection,Jl=Mo.SelectionDirection,ql=Mo.MarkerSeverity,ed=Mo.MarkerTag,td=Mo.Uri,nd=Mo.Token,id=Mo.editor,od=Mo.languages,hl=globalThis.MonacoEnvironment;(hl?.globalAPI||typeof define=="function"&&e.amdO)&&(globalThis.monaco=Mo),typeof globalThis.require<"u"&&typeof globalThis.require.config=="function"&&globalThis.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-languageserver-textdocument","vscode-languageserver-textdocument/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]});var Ku=e("./node_modules/monaco-editor/esm/vs/basic-languages/abap/abap.contribution.js"),Gu=e("./node_modules/monaco-editor/esm/vs/basic-languages/apex/apex.contribution.js"),$u=e("./node_modules/monaco-editor/esm/vs/basic-languages/azcli/azcli.contribution.js"),Qu=e("./node_modules/monaco-editor/esm/vs/basic-languages/bat/bat.contribution.js"),Yu=e("./node_modules/monaco-editor/esm/vs/basic-languages/bicep/bicep.contribution.js"),Zu=e("./node_modules/monaco-editor/esm/vs/basic-languages/cameligo/cameligo.contribution.js"),Xu=e("./node_modules/monaco-editor/esm/vs/basic-languages/clojure/clojure.contribution.js"),Ju=e("./node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.contribution.js"),qu=e("./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.contribution.js"),eh=e("./node_modules/monaco-editor/esm/vs/basic-languages/csharp/csharp.contribution.js"),th=e("./node_modules/monaco-editor/esm/vs/basic-languages/csp/csp.contribution.js"),nh=e("./node_modules/monaco-editor/esm/vs/basic-languages/css/css.contribution.js"),ih=e("./node_modules/monaco-editor/esm/vs/language/css/monaco.contribution.js"),oh=e("./node_modules/monaco-editor/esm/vs/basic-languages/cypher/cypher.contribution.js"),sh=e("./node_modules/monaco-editor/esm/vs/basic-languages/dart/dart.contribution.js"),rh=e("./node_modules/monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js"),ah=e("./node_modules/monaco-editor/esm/vs/basic-languages/ecl/ecl.contribution.js"),lh=e("./node_modules/monaco-editor/esm/vs/basic-languages/elixir/elixir.contribution.js"),dh=e("./node_modules/monaco-editor/esm/vs/basic-languages/flow9/flow9.contribution.js"),ch=e("./node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js"),uh=e("./node_modules/monaco-editor/esm/vs/basic-languages/fsharp/fsharp.contribution.js"),hh=e("./node_modules/monaco-editor/esm/vs/basic-languages/go/go.contribution.js"),mh=e("./node_modules/monaco-editor/esm/vs/basic-languages/graphql/graphql.contribution.js"),gh=e("./node_modules/monaco-editor/esm/vs/basic-languages/handlebars/handlebars.contribution.js"),fh=e("./node_modules/monaco-editor/esm/vs/basic-languages/hcl/hcl.contribution.js"),ph=e("./node_modules/monaco-editor/esm/vs/basic-languages/html/html.contribution.js"),_h=e("./node_modules/monaco-editor/esm/vs/language/html/monaco.contribution.js"),vh=e("./node_modules/monaco-editor/esm/vs/basic-languages/ini/ini.contribution.js"),bh=e("./node_modules/monaco-editor/esm/vs/basic-languages/java/java.contribution.js"),Ch=e("./node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js"),yh=e("./node_modules/monaco-editor/esm/vs/language/json/monaco.contribution.js"),Sh=e("./node_modules/monaco-editor/esm/vs/basic-languages/julia/julia.contribution.js"),wh=e("./node_modules/monaco-editor/esm/vs/basic-languages/kotlin/kotlin.contribution.js"),Dh=e("./node_modules/monaco-editor/esm/vs/basic-languages/less/less.contribution.js"),Lh=e("./node_modules/monaco-editor/esm/vs/basic-languages/lexon/lexon.contribution.js"),Eh=e("./node_modules/monaco-editor/esm/vs/basic-languages/liquid/liquid.contribution.js"),xh=e("./node_modules/monaco-editor/esm/vs/basic-languages/lua/lua.contribution.js"),kh=e("./node_modules/monaco-editor/esm/vs/basic-languages/m3/m3.contribution.js"),Ih=e("./node_modules/monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution.js"),Mh=e("./node_modules/monaco-editor/esm/vs/basic-languages/mdx/mdx.contribution.js"),Th=e("./node_modules/monaco-editor/esm/vs/basic-languages/mips/mips.contribution.js"),Ph=e("./node_modules/monaco-editor/esm/vs/basic-languages/msdax/msdax.contribution.js"),Rh=e("./node_modules/monaco-editor/esm/vs/basic-languages/mysql/mysql.contribution.js"),Oh=e("./node_modules/monaco-editor/esm/vs/basic-languages/objective-c/objective-c.contribution.js"),Ah=e("./node_modules/monaco-editor/esm/vs/basic-languages/pascal/pascal.contribution.js"),Nh=e("./node_modules/monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.contribution.js"),jh=e("./node_modules/monaco-editor/esm/vs/basic-languages/perl/perl.contribution.js"),Fh=e("./node_modules/monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js"),Bh=e("./node_modules/monaco-editor/esm/vs/basic-languages/php/php.contribution.js"),Wh=e("./node_modules/monaco-editor/esm/vs/basic-languages/pla/pla.contribution.js"),Hh=e("./node_modules/monaco-editor/esm/vs/basic-languages/postiats/postiats.contribution.js"),Vh=e("./node_modules/monaco-editor/esm/vs/basic-languages/powerquery/powerquery.contribution.js"),Uh=e("./node_modules/monaco-editor/esm/vs/basic-languages/powershell/powershell.contribution.js"),zh=e("./node_modules/monaco-editor/esm/vs/basic-languages/protobuf/protobuf.contribution.js"),Kh=e("./node_modules/monaco-editor/esm/vs/basic-languages/pug/pug.contribution.js"),Gh=e("./node_modules/monaco-editor/esm/vs/basic-languages/python/python.contribution.js"),$h=e("./node_modules/monaco-editor/esm/vs/basic-languages/qsharp/qsharp.contribution.js"),Qh=e("./node_modules/monaco-editor/esm/vs/basic-languages/r/r.contribution.js"),Yh=e("./node_modules/monaco-editor/esm/vs/basic-languages/razor/razor.contribution.js"),Zh=e("./node_modules/monaco-editor/esm/vs/basic-languages/redis/redis.contribution.js"),Xh=e("./node_modules/monaco-editor/esm/vs/basic-languages/redshift/redshift.contribution.js"),Jh=e("./node_modules/monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.contribution.js"),qh=e("./node_modules/monaco-editor/esm/vs/basic-languages/ruby/ruby.contribution.js"),em=e("./node_modules/monaco-editor/esm/vs/basic-languages/rust/rust.contribution.js"),tm=e("./node_modules/monaco-editor/esm/vs/basic-languages/sb/sb.contribution.js"),nm=e("./node_modules/monaco-editor/esm/vs/basic-languages/scala/scala.contribution.js"),im=e("./node_modules/monaco-editor/esm/vs/basic-languages/scheme/scheme.contribution.js"),om=e("./node_modules/monaco-editor/esm/vs/basic-languages/scss/scss.contribution.js"),sm=e("./node_modules/monaco-editor/esm/vs/basic-languages/shell/shell.contribution.js"),rm=e("./node_modules/monaco-editor/esm/vs/basic-languages/solidity/solidity.contribution.js"),am=e("./node_modules/monaco-editor/esm/vs/basic-languages/sophia/sophia.contribution.js"),lm=e("./node_modules/monaco-editor/esm/vs/basic-languages/sparql/sparql.contribution.js"),dm=e("./node_modules/monaco-editor/esm/vs/basic-languages/sql/sql.contribution.js"),cm=e("./node_modules/monaco-editor/esm/vs/basic-languages/st/st.contribution.js"),um=e("./node_modules/monaco-editor/esm/vs/basic-languages/swift/swift.contribution.js"),hm=e("./node_modules/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.contribution.js"),mm=e("./node_modules/monaco-editor/esm/vs/basic-languages/tcl/tcl.contribution.js"),gm=e("./node_modules/monaco-editor/esm/vs/basic-languages/twig/twig.contribution.js"),fm=e("./node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js"),pm=e("./node_modules/monaco-editor/esm/vs/language/typescript/monaco.contribution.js"),_m=e("./node_modules/monaco-editor/esm/vs/basic-languages/vb/vb.contribution.js"),vm=e("./node_modules/monaco-editor/esm/vs/basic-languages/wgsl/wgsl.contribution.js"),bm=e("./node_modules/monaco-editor/esm/vs/basic-languages/xml/xml.contribution.js"),Cm=e("./node_modules/monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js");self.MonacoEnvironment=function(Ie){function o(_){return _.replace(/\/$/,"")}return{globalAPI:!1,getWorkerUrl:function(_,N){var se=e.p,ue=(se?o(se)+"/":"")+Ie[N];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(ue)){var Ee=String(window.location),Oe=Ee.substr(0,Ee.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(ue.substring(0,Oe.length)!==Oe){/^(\/\/)/.test(ue)&&(ue=window.location.protocol+ue);var ot="/*"+N+'*/importScripts("'+ue+'");',_t=new Blob([ot],{type:"application/javascript"});return URL.createObjectURL(_t)}}return ue}}}({editorWorkerService:"js/monaco-editor.afbd84bf.worker.js",css:"js/monaco-css.583e8b81.worker.js",html:"js/monaco-html.0d595879.worker.js",json:"js/monaco-json.a6b1ee0c.worker.js",typescript:"js/monaco-ts.54cae4d2.worker.js",javascript:"js/monaco-ts.54cae4d2.worker.js",less:"js/monaco-css.583e8b81.worker.js",scss:"js/monaco-css.583e8b81.worker.js",handlebars:"js/monaco-html.0d595879.worker.js",razor:"js/monaco-html.0d595879.worker.js"});var Hu=r},"include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.main.js":function(pt,Me,e){e.r(Me),e.d(Me,{CancellationTokenSource:function(){return de.CancellationTokenSource},Emitter:function(){return de.Emitter},KeyCode:function(){return de.KeyCode},KeyMod:function(){return de.KeyMod},MarkerSeverity:function(){return de.MarkerSeverity},MarkerTag:function(){return de.MarkerTag},Position:function(){return de.Position},Range:function(){return de.Range},Selection:function(){return de.Selection},SelectionDirection:function(){return de.SelectionDirection},Token:function(){return de.Token},Uri:function(){return de.Uri},default:function(){return cn},editor:function(){return de.editor},languages:function(){return de.languages}});var r={};e.r(r),e.d(r,{CancellationTokenSource:function(){return de.CancellationTokenSource},Emitter:function(){return de.Emitter},KeyCode:function(){return de.KeyCode},KeyMod:function(){return de.KeyMod},MarkerSeverity:function(){return de.MarkerSeverity},MarkerTag:function(){return de.MarkerTag},Position:function(){return de.Position},Range:function(){return de.Range},Selection:function(){return de.Selection},SelectionDirection:function(){return de.SelectionDirection},Token:function(){return de.Token},Uri:function(){return de.Uri},editor:function(){return de.editor},languages:function(){return de.languages}});var F=e("./node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/coreCommands.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/transpose.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/contrib/clipboard/browser/clipboard.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensController.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorContributions.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/comment.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dnd.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/documentSymbols.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js"),v=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js"),p=e("./node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findController.js"),b=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/folding.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js"),w=e("./node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formatActions.js"),j=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoError.js"),U=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess.js"),K=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js"),G=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js"),P=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hover.js"),A=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js"),T=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js"),E=e("./node_modules/monaco-editor/esm/vs/editor/contrib/indentation/browser/indentation.js"),W=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsContribution.js"),$=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js"),z=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.js"),J=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineProgress/browser/inlineProgress.js"),B=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.js"),V=e("./node_modules/monaco-editor/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js"),Y=e("./node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js"),X=e("./node_modules/monaco-editor/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js"),ie=e("./node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/links.js"),re=e("./node_modules/monaco-editor/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js"),te=e("./node_modules/monaco-editor/esm/vs/editor/contrib/multicursor/browser/multicursor.js"),D=e("./node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js"),he=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess.js"),ve=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess.js"),Ce=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess.js"),Pe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js"),_e=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch.js"),ee=e("./node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/rename.js"),De=e("./node_modules/monaco-editor/esm/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js"),Te=e("./node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js"),He=e("./node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js"),qe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js"),Qe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.js"),q=e("./node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollContribution.js"),ye=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.js"),ge=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js"),be=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast.js"),Se=e("./node_modules/monaco-editor/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js"),ae=e("./node_modules/monaco-editor/esm/vs/editor/contrib/tokenization/browser/tokenization.js"),me=e("./node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js"),fe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js"),le=e("./node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js"),oe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js"),ne=e("./node_modules/monaco-editor/esm/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js"),de=e("include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js"),Le=e("./node_modules/monaco-editor/esm/vs/basic-languages/abap/abap.contribution.js"),We=e("./node_modules/monaco-editor/esm/vs/basic-languages/apex/apex.contribution.js"),we=e("./node_modules/monaco-editor/esm/vs/basic-languages/azcli/azcli.contribution.js"),Ue=e("./node_modules/monaco-editor/esm/vs/basic-languages/bat/bat.contribution.js"),lt=e("./node_modules/monaco-editor/esm/vs/basic-languages/bicep/bicep.contribution.js"),Et=e("./node_modules/monaco-editor/esm/vs/basic-languages/cameligo/cameligo.contribution.js"),Kt=e("./node_modules/monaco-editor/esm/vs/basic-languages/clojure/clojure.contribution.js"),Zt=e("./node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.contribution.js"),qt=e("./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.contribution.js"),tt=e("./node_modules/monaco-editor/esm/vs/basic-languages/csharp/csharp.contribution.js"),Mt=e("./node_modules/monaco-editor/esm/vs/basic-languages/csp/csp.contribution.js"),Ht=e("./node_modules/monaco-editor/esm/vs/basic-languages/css/css.contribution.js"),xt=e("./node_modules/monaco-editor/esm/vs/basic-languages/cypher/cypher.contribution.js"),Jt=e("./node_modules/monaco-editor/esm/vs/basic-languages/dart/dart.contribution.js"),Nt=e("./node_modules/monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js"),Be=e("./node_modules/monaco-editor/esm/vs/basic-languages/ecl/ecl.contribution.js"),vt=e("./node_modules/monaco-editor/esm/vs/basic-languages/elixir/elixir.contribution.js"),Gt=e("./node_modules/monaco-editor/esm/vs/basic-languages/flow9/flow9.contribution.js"),_n=e("./node_modules/monaco-editor/esm/vs/basic-languages/fsharp/fsharp.contribution.js"),Fn=e("./node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js"),An=e("./node_modules/monaco-editor/esm/vs/basic-languages/go/go.contribution.js"),Hn=e("./node_modules/monaco-editor/esm/vs/basic-languages/graphql/graphql.contribution.js"),Kn=e("./node_modules/monaco-editor/esm/vs/basic-languages/handlebars/handlebars.contribution.js"),mi=e("./node_modules/monaco-editor/esm/vs/basic-languages/hcl/hcl.contribution.js"),yi=e("./node_modules/monaco-editor/esm/vs/basic-languages/html/html.contribution.js"),ri=e("./node_modules/monaco-editor/esm/vs/basic-languages/ini/ini.contribution.js"),fi=e("./node_modules/monaco-editor/esm/vs/basic-languages/java/java.contribution.js"),Mi=e("./node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js"),xi=e("./node_modules/monaco-editor/esm/vs/basic-languages/julia/julia.contribution.js"),ci=e("./node_modules/monaco-editor/esm/vs/basic-languages/kotlin/kotlin.contribution.js"),Ii=e("./node_modules/monaco-editor/esm/vs/basic-languages/less/less.contribution.js"),Si=e("./node_modules/monaco-editor/esm/vs/basic-languages/lexon/lexon.contribution.js"),Ti=e("./node_modules/monaco-editor/esm/vs/basic-languages/lua/lua.contribution.js"),Nn=e("./node_modules/monaco-editor/esm/vs/basic-languages/liquid/liquid.contribution.js"),Vn=e("./node_modules/monaco-editor/esm/vs/basic-languages/m3/m3.contribution.js"),Yn=e("./node_modules/monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution.js"),Di=e("./node_modules/monaco-editor/esm/vs/basic-languages/mdx/mdx.contribution.js"),Ai=e("./node_modules/monaco-editor/esm/vs/basic-languages/mips/mips.contribution.js"),Sn=e("./node_modules/monaco-editor/esm/vs/basic-languages/msdax/msdax.contribution.js"),Ye=e("./node_modules/monaco-editor/esm/vs/basic-languages/mysql/mysql.contribution.js"),mt=e("./node_modules/monaco-editor/esm/vs/basic-languages/objective-c/objective-c.contribution.js"),ze=e("./node_modules/monaco-editor/esm/vs/basic-languages/pascal/pascal.contribution.js"),Ke=e("./node_modules/monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.contribution.js"),Je=e("./node_modules/monaco-editor/esm/vs/basic-languages/perl/perl.contribution.js"),Ne=e("./node_modules/monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js"),ft=e("./node_modules/monaco-editor/esm/vs/basic-languages/php/php.contribution.js"),St=e("./node_modules/monaco-editor/esm/vs/basic-languages/pla/pla.contribution.js"),rt=e("./node_modules/monaco-editor/esm/vs/basic-languages/postiats/postiats.contribution.js"),Ge=e("./node_modules/monaco-editor/esm/vs/basic-languages/powerquery/powerquery.contribution.js"),nt=e("./node_modules/monaco-editor/esm/vs/basic-languages/powershell/powershell.contribution.js"),it=e("./node_modules/monaco-editor/esm/vs/basic-languages/protobuf/protobuf.contribution.js"),bt=e("./node_modules/monaco-editor/esm/vs/basic-languages/pug/pug.contribution.js"),Dt=e("./node_modules/monaco-editor/esm/vs/basic-languages/python/python.contribution.js"),At=e("./node_modules/monaco-editor/esm/vs/basic-languages/qsharp/qsharp.contribution.js"),et=e("./node_modules/monaco-editor/esm/vs/basic-languages/r/r.contribution.js"),at=e("./node_modules/monaco-editor/esm/vs/basic-languages/razor/razor.contribution.js"),Tt=e("./node_modules/monaco-editor/esm/vs/basic-languages/redis/redis.contribution.js"),dt=e("./node_modules/monaco-editor/esm/vs/basic-languages/redshift/redshift.contribution.js"),Ae=e("./node_modules/monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.contribution.js"),ct=e("./node_modules/monaco-editor/esm/vs/basic-languages/ruby/ruby.contribution.js"),ut=e("./node_modules/monaco-editor/esm/vs/basic-languages/rust/rust.contribution.js"),je=e("./node_modules/monaco-editor/esm/vs/basic-languages/sb/sb.contribution.js"),Rt=e("./node_modules/monaco-editor/esm/vs/basic-languages/scala/scala.contribution.js"),Ft=e("./node_modules/monaco-editor/esm/vs/basic-languages/scheme/scheme.contribution.js"),ln=e("./node_modules/monaco-editor/esm/vs/basic-languages/scss/scss.contribution.js"),vn=e("./node_modules/monaco-editor/esm/vs/basic-languages/shell/shell.contribution.js"),Ln=e("./node_modules/monaco-editor/esm/vs/basic-languages/solidity/solidity.contribution.js"),En=e("./node_modules/monaco-editor/esm/vs/basic-languages/sophia/sophia.contribution.js"),In=e("./node_modules/monaco-editor/esm/vs/basic-languages/sparql/sparql.contribution.js"),ei=e("./node_modules/monaco-editor/esm/vs/basic-languages/sql/sql.contribution.js"),en=e("./node_modules/monaco-editor/esm/vs/basic-languages/st/st.contribution.js"),xe=e("./node_modules/monaco-editor/esm/vs/basic-languages/swift/swift.contribution.js"),st=e("./node_modules/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.contribution.js"),Wt=e("./node_modules/monaco-editor/esm/vs/basic-languages/tcl/tcl.contribution.js"),rn=e("./node_modules/monaco-editor/esm/vs/basic-languages/twig/twig.contribution.js"),hn=e("./node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js"),Dn=e("./node_modules/monaco-editor/esm/vs/basic-languages/vb/vb.contribution.js"),On=e("./node_modules/monaco-editor/esm/vs/basic-languages/wgsl/wgsl.contribution.js"),Bn=e("./node_modules/monaco-editor/esm/vs/basic-languages/xml/xml.contribution.js"),oi=e("./node_modules/monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js");var $n=e("./node_modules/monaco-editor/esm/vs/language/css/monaco.contribution.js"),ti=e("./node_modules/monaco-editor/esm/vs/language/html/monaco.contribution.js"),Jn=e("./node_modules/monaco-editor/esm/vs/language/json/monaco.contribution.js"),Un=e("./node_modules/monaco-editor/esm/vs/language/typescript/monaco.contribution.js"),Rn=e("./node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js");self.MonacoEnvironment=function($e){function yt(jt){return jt.replace(/\/$/,"")}return{globalAPI:!1,getWorkerUrl:function(jt,Vt){var Ut=e.p,sn=(Ut?yt(Ut)+"/":"")+$e[Vt];if(/^((http:)|(https:)|(file:)|(\/\/))/.test(sn)){var zt=String(window.location),kt=zt.substr(0,zt.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(sn.substring(0,kt.length)!==kt){/^(\/\/)/.test(sn)&&(sn=window.location.protocol+sn);var an="/*"+Vt+'*/importScripts("'+sn+'");',dn=new Blob([an],{type:"application/javascript"});return URL.createObjectURL(dn)}}return sn}}}({editorWorkerService:"js/monaco-editor.afbd84bf.worker.js",css:"js/monaco-css.583e8b81.worker.js",html:"js/monaco-html.0d595879.worker.js",json:"js/monaco-json.a6b1ee0c.worker.js",typescript:"js/monaco-ts.54cae4d2.worker.js",javascript:"js/monaco-ts.54cae4d2.worker.js",less:"js/monaco-css.583e8b81.worker.js",scss:"js/monaco-css.583e8b81.worker.js",handlebars:"js/monaco-html.0d595879.worker.js",razor:"js/monaco-html.0d595879.worker.js"});var cn=r},"./node_modules/monaco-editor/esm/vs/base/browser/browser.js":function(pt,Me,e){e.d(Me,{Dy:function(){return k},H8:function(){return I},Qu:function(){return n},Tc:function(){return x},c8:function(){return f},gm:function(){return g},m0:function(){return a},nr:function(){return S},pR:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/window.js");class F{constructor(){this.mapWindowIdToZoomFactor=new Map}getZoomFactor(c){var m;return(m=this.mapWindowIdToZoomFactor.get(this.getWindowId(c)))!==null&&m!==void 0?m:1}getWindowId(c){return c.vscodeWindowId}}F.INSTANCE=new F;function k(i,c,m){typeof c=="string"&&(c=i.matchMedia(c)),c.addEventListener("change",m)}function M(i){return F.INSTANCE.getZoomFactor(i)}const L=navigator.userAgent,g=L.indexOf("Firefox")>=0,x=L.indexOf("AppleWebKit")>=0,I=L.indexOf("Chrome")>=0,S=!I&&L.indexOf("Safari")>=0,f=!I&&!S&&x,d=L.indexOf("Electron/")>=0,a=L.indexOf("Android")>=0;let s=!1;if(typeof r.G.matchMedia=="function"){const i=r.G.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),c=r.G.matchMedia("(display-mode: fullscreen)");s=i.matches,k(r.G,i,({matches:m})=>{s&&c.matches||(s=m)})}function n(){return s}},"./node_modules/monaco-editor/esm/vs/base/browser/canIUse.js":function(pt,Me,e){e.d(Me,{e:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/window.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");const M={clipboard:{writeText:k.ib||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:k.ib||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:k.ib||r.Qu()?0:navigator.keyboard||r.nr?1:2,touch:"ontouchstart"in F.G||navigator.maxTouchPoints>0,pointerEvents:F.G.PointerEvent&&("ontouchstart"in F.G||navigator.maxTouchPoints>0)}},"./node_modules/monaco-editor/esm/vs/base/browser/dnd.js":function(pt,Me,e){e.d(Me,{t:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/mime.js");const F={RESOURCES:"ResourceURLs",DOWNLOAD_URL:"DownloadURL",FILES:"Files",TEXT:r.K.text,INTERNAL_URI_LIST:"application/vnd.code.uri-list"}},"./node_modules/monaco-editor/esm/vs/base/browser/dom.js":function(pt,Me,e){e.d(Me,{$:function(){return mi},BC:function(){return Gt},BK:function(){return ve},Be:function(){return V},Bx:function(){return tt},CE:function(){return xi},Cl:function(){return q},Di:function(){return Di},Ej:function(){return he},Er:function(){return Zt},Fv:function(){return O},H4:function(){return ee},Hs:function(){return _n},Ij:function(){return z},Iv:function(){return p},L9:function(){return X},Ln:function(){return Fn},OK:function(){return De},Oq:function(){return J},PG:function(){return B},Pl:function(){return vt},Q2:function(){return C},QX:function(){return Te},TT:function(){return Vn},Tf:function(){return Ii},Tr:function(){return Pe},U2:function(){return Et},U3:function(){return $},WU:function(){return ri},Wt:function(){return lt},X7:function(){return be},XD:function(){return qe},Xc:function(){return A},ZF:function(){return h},a:function(){return ae},a4:function(){return Nn},b2:function(){return P},bo:function(){return yi},bq:function(){return ge},cL:function(){return D},fg:function(){return te},fs:function(){return Ht},fz:function(){return me},gI:function(){return Ti},h:function(){return Ye},i0:function(){return ci},jD:function(){return fi},jG:function(){return ye},jh:function(){return le},ko:function(){return U},kx:function(){return qt},li:function(){return ne},mU:function(){return Ce},nR:function(){return Se},pN:function(){return Ai},q3:function(){return b},sd:function(){return Mt},tG:function(){return ie},vT:function(){return Mi},w5:function(){return Be},w_:function(){return w},wk:function(){return Jt},y6:function(){return _e},yt:function(){return Si},zK:function(){return xt},zk:function(){return i}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/canIUse.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),I=e("./node_modules/monaco-editor/esm/vs/base/browser/dompurify/dompurify.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/hash.js"),s=e("./node_modules/monaco-editor/esm/vs/base/browser/window.js");const{registerWindow:n,getWindow:i,getDocument:c,getWindows:m,getWindowsCount:u,getWindowId:C,getWindowById:h,hasWindow:v,onDidRegisterWindow:p,onWillUnregisterWindow:b,onDidUnregisterWindow:O}=function(){const ze=new Map;(0,s.y)(s.G,1);const Ke={window:s.G,disposables:new S.Cm};ze.set(s.G.vscodeWindowId,Ke);const Je=new x.vl,Ne=new x.vl,ft=new x.vl;function St(rt,Ge){const nt=typeof rt=="number"?ze.get(rt):void 0;return nt??(Ge?Ke:void 0)}return{onDidRegisterWindow:Je.event,onWillUnregisterWindow:ft.event,onDidUnregisterWindow:Ne.event,registerWindow(rt){if(ze.has(rt.vscodeWindowId))return S.jG.None;const Ge=new S.Cm,nt={window:rt,disposables:Ge.add(new S.Cm)};return ze.set(rt.vscodeWindowId,nt),Ge.add((0,S.s)(()=>{ze.delete(rt.vscodeWindowId),Ne.fire(rt)})),Ge.add(U(rt,tt.BEFORE_UNLOAD,()=>{ft.fire(rt)})),Je.fire(nt),Ge},getWindows(){return ze.values()},getWindowsCount(){return ze.size},getWindowId(rt){return rt.vscodeWindowId},hasWindow(rt){return ze.has(rt)},getWindowById:St,getWindow(rt){var Ge;const nt=rt;if(!((Ge=nt?.ownerDocument)===null||Ge===void 0)&&Ge.defaultView)return nt.ownerDocument.defaultView.window;const it=rt;return it?.view?it.view.window:s.G},getDocument(rt){return i(rt).document}}}();function w(ze){for(;ze.firstChild;)ze.firstChild.remove()}class j{constructor(Ke,Je,Ne,ft){this._node=Ke,this._type=Je,this._handler=Ne,this._options=ft||!1,this._node.addEventListener(this._type,this._handler,this._options)}dispose(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._options),this._node=null,this._handler=null)}}function U(ze,Ke,Je,Ne){return new j(ze,Ke,Je,Ne)}function K(ze,Ke){return function(Je){return Ke(new M.P(ze,Je))}}function G(ze){return function(Ke){return ze(new k.Z(Ke))}}const P=function(Ke,Je,Ne,ft){let St=Ne;return Je==="click"||Je==="mousedown"?St=K(i(Ke),Ne):(Je==="keydown"||Je==="keypress"||Je==="keyup")&&(St=G(Ne)),U(Ke,Je,St,ft)},A=function(Ke,Je,Ne){const ft=K(i(Ke),Je);return E(Ke,ft,Ne)},T=function(Ke,Je,Ne){const ft=K(i(Ke),Je);return W(Ke,ft,Ne)};function E(ze,Ke,Je){return U(ze,d.un&&F.e.pointerEvents?tt.POINTER_DOWN:tt.MOUSE_DOWN,Ke,Je)}function W(ze,Ke,Je){return U(ze,platform.isIOS&&BrowserFeatures.pointerEvents?tt.POINTER_UP:tt.MOUSE_UP,Ke,Je)}function $(ze,Ke,Je){return(0,L.b7)(ze,Ke,Je)}class z extends L.A0{constructor(Ke,Je){super(Ke,Je)}}let J,B;class V extends L.vb{constructor(Ke){super(),this.defaultTarget=Ke&&i(Ke)}cancelAndSet(Ke,Je,Ne){return super.cancelAndSet(Ke,Je,Ne??this.defaultTarget)}}class Y{constructor(Ke,Je=0){this._runner=Ke,this.priority=Je,this._canceled=!1}dispose(){this._canceled=!0}execute(){if(!this._canceled)try{this._runner()}catch(Ke){(0,g.dz)(Ke)}}static sort(Ke,Je){return Je.priority-Ke.priority}}(function(){const ze=new Map,Ke=new Map,Je=new Map,Ne=new Map,ft=St=>{var rt;Je.set(St,!1);const Ge=(rt=ze.get(St))!==null&&rt!==void 0?rt:[];for(Ke.set(St,Ge),ze.set(St,[]),Ne.set(St,!0);Ge.length>0;)Ge.sort(Y.sort),Ge.shift().execute();Ne.set(St,!1)};B=(St,rt,Ge=0)=>{const nt=C(St),it=new Y(rt,Ge);let bt=ze.get(nt);return bt||(bt=[],ze.set(nt,bt)),bt.push(it),Je.get(nt)||(Je.set(nt,!0),St.requestAnimationFrame(()=>ft(nt))),it},J=(St,rt,Ge)=>{const nt=C(St);if(Ne.get(nt)){const it=new Y(rt,Ge);let bt=Ke.get(nt);return bt||(bt=[],Ke.set(nt,bt)),bt.push(it),it}else return B(St,rt,Ge)}})();function X(ze){return i(ze).getComputedStyle(ze,null)}function ie(ze,Ke){const Je=i(ze),Ne=Je.document;if(ze!==Ne.body)return new te(ze.clientWidth,ze.clientHeight);if(d.un&&Je?.visualViewport)return new te(Je.visualViewport.width,Je.visualViewport.height);if(Je?.innerWidth&&Je.innerHeight)return new te(Je.innerWidth,Je.innerHeight);if(Ne.body&&Ne.body.clientWidth&&Ne.body.clientHeight)return new te(Ne.body.clientWidth,Ne.body.clientHeight);if(Ne.documentElement&&Ne.documentElement.clientWidth&&Ne.documentElement.clientHeight)return new te(Ne.documentElement.clientWidth,Ne.documentElement.clientHeight);if(Ke)return ie(Ke);throw new Error("Unable to figure out browser width and height")}class re{static convertToPixels(Ke,Je){return parseFloat(Je)||0}static getDimension(Ke,Je,Ne){const ft=X(Ke),St=ft?ft.getPropertyValue(Je):"0";return re.convertToPixels(Ke,St)}static getBorderLeftWidth(Ke){return re.getDimension(Ke,"border-left-width","borderLeftWidth")}static getBorderRightWidth(Ke){return re.getDimension(Ke,"border-right-width","borderRightWidth")}static getBorderTopWidth(Ke){return re.getDimension(Ke,"border-top-width","borderTopWidth")}static getBorderBottomWidth(Ke){return re.getDimension(Ke,"border-bottom-width","borderBottomWidth")}static getPaddingLeft(Ke){return re.getDimension(Ke,"padding-left","paddingLeft")}static getPaddingRight(Ke){return re.getDimension(Ke,"padding-right","paddingRight")}static getPaddingTop(Ke){return re.getDimension(Ke,"padding-top","paddingTop")}static getPaddingBottom(Ke){return re.getDimension(Ke,"padding-bottom","paddingBottom")}static getMarginLeft(Ke){return re.getDimension(Ke,"margin-left","marginLeft")}static getMarginTop(Ke){return re.getDimension(Ke,"margin-top","marginTop")}static getMarginRight(Ke){return re.getDimension(Ke,"margin-right","marginRight")}static getMarginBottom(Ke){return re.getDimension(Ke,"margin-bottom","marginBottom")}}class te{constructor(Ke,Je){this.width=Ke,this.height=Je}with(Ke=this.width,Je=this.height){return Ke!==this.width||Je!==this.height?new te(Ke,Je):this}static is(Ke){return typeof Ke=="object"&&typeof Ke.height=="number"&&typeof Ke.width=="number"}static lift(Ke){return Ke instanceof te?Ke:new te(Ke.width,Ke.height)}static equals(Ke,Je){return Ke===Je?!0:!Ke||!Je?!1:Ke.width===Je.width&&Ke.height===Je.height}}te.None=new te(0,0);function D(ze){let Ke=ze.offsetParent,Je=ze.offsetTop,Ne=ze.offsetLeft;for(;(ze=ze.parentNode)!==null&&ze!==ze.ownerDocument.body&&ze!==ze.ownerDocument.documentElement;){Je-=ze.scrollTop;const ft=Qe(ze)?null:X(ze);ft&&(Ne-=ft.direction!=="rtl"?ze.scrollLeft:-ze.scrollLeft),ze===Ke&&(Ne+=re.getBorderLeftWidth(ze),Je+=re.getBorderTopWidth(ze),Je+=ze.offsetTop,Ne+=ze.offsetLeft,Ke=ze.offsetParent)}return{left:Ne,top:Je}}function he(ze,Ke,Je){typeof Ke=="number"&&(ze.style.width=`${Ke}px`),typeof Je=="number"&&(ze.style.height=`${Je}px`)}function ve(ze){const Ke=ze.getBoundingClientRect(),Je=i(ze);return{left:Ke.left+Je.scrollX,top:Ke.top+Je.scrollY,width:Ke.width,height:Ke.height}}function Ce(ze){let Ke=ze,Je=1;do{const Ne=X(Ke).zoom;Ne!=null&&Ne!=="1"&&(Je*=Ne),Ke=Ke.parentElement}while(Ke!==null&&Ke!==Ke.ownerDocument.documentElement);return Je}function Pe(ze){const Ke=re.getMarginLeft(ze)+re.getMarginRight(ze);return ze.offsetWidth+Ke}function _e(ze){const Ke=re.getBorderLeftWidth(ze)+re.getBorderRightWidth(ze),Je=re.getPaddingLeft(ze)+re.getPaddingRight(ze);return ze.offsetWidth-Ke-Je}function ee(ze){const Ke=re.getBorderTopWidth(ze)+re.getBorderBottomWidth(ze),Je=re.getPaddingTop(ze)+re.getPaddingBottom(ze);return ze.offsetHeight-Ke-Je}function De(ze){const Ke=re.getMarginTop(ze)+re.getMarginBottom(ze);return ze.offsetHeight+Ke}function Te(ze,Ke){return!!Ke?.contains(ze)}function He(ze,Ke,Je){for(;ze&&ze.nodeType===ze.ELEMENT_NODE;){if(ze.classList.contains(Ke))return ze;if(Je){if(typeof Je=="string"){if(ze.classList.contains(Je))return null}else if(ze===Je)return null}ze=ze.parentNode}return null}function qe(ze,Ke,Je){return!!He(ze,Ke,Je)}function Qe(ze){return ze&&!!ze.host&&!!ze.mode}function q(ze){return!!ye(ze)}function ye(ze){for(var Ke;ze.parentNode;){if(ze===((Ke=ze.ownerDocument)===null||Ke===void 0?void 0:Ke.body))return null;ze=ze.parentNode}return Qe(ze)?ze:null}function ge(){let ze=ae().activeElement;for(;ze?.shadowRoot;)ze=ze.shadowRoot.activeElement;return ze}function be(ze){return ge()===ze}function Se(ze){return Te(ge(),ze)}function ae(){var ze;return u()<=1?s.G.document:(ze=Array.from(m()).map(({window:Je})=>Je.document).find(Je=>Je.hasFocus()))!==null&&ze!==void 0?ze:s.G.document}function me(){var ze,Ke;return(Ke=(ze=ae().defaultView)===null||ze===void 0?void 0:ze.window)!==null&&Ke!==void 0?Ke:s.G}const fe=new Map;function le(){return new oe}class oe{constructor(){this._currentCssStyle="",this._styleSheet=void 0}setStyle(Ke){Ke!==this._currentCssStyle&&(this._currentCssStyle=Ke,this._styleSheet?this._styleSheet.innerText=Ke:this._styleSheet=ne(s.G.document.head,Je=>Je.innerText=Ke))}dispose(){this._styleSheet&&(this._styleSheet.remove(),this._styleSheet=void 0)}}function ne(ze=s.G.document.head,Ke,Je){const Ne=document.createElement("style");if(Ne.type="text/css",Ne.media="screen",Ke?.(Ne),ze.appendChild(Ne),Je&&Je.add((0,S.s)(()=>ze.removeChild(Ne))),ze===s.G.document.head){const ft=new Set;fe.set(Ne,ft);for(const{window:St,disposables:rt}of m()){if(St===s.G)continue;const Ge=rt.add(de(Ne,ft,St));Je?.add(Ge)}}return Ne}function de(ze,Ke,Je){var Ne,ft;const St=new S.Cm,rt=ze.cloneNode(!0);Je.document.head.appendChild(rt),St.add((0,S.s)(()=>Je.document.head.removeChild(rt)));for(const Ge of Ue(ze))(Ne=rt.sheet)===null||Ne===void 0||Ne.insertRule(Ge.cssText,(ft=rt.sheet)===null||ft===void 0?void 0:ft.cssRules.length);return St.add(Le.observe(ze,St,{childList:!0})(()=>{rt.textContent=ze.textContent})),Ke.add(rt),St.add((0,S.s)(()=>Ke.delete(rt))),St}const Le=new class{constructor(){this.mutationObservers=new Map}observe(ze,Ke,Je){let Ne=this.mutationObservers.get(ze);Ne||(Ne=new Map,this.mutationObservers.set(ze,Ne));const ft=(0,a.tW)(Je);let St=Ne.get(ft);if(St)St.users+=1;else{const rt=new x.vl,Ge=new MutationObserver(it=>rt.fire(it));Ge.observe(ze,Je);const nt=St={users:1,observer:Ge,onDidMutate:rt.event};Ke.add((0,S.s)(()=>{nt.users-=1,nt.users===0&&(rt.dispose(),Ge.disconnect(),Ne?.delete(ft),Ne?.size===0&&this.mutationObservers.delete(ze))})),Ne.set(ft,St)}return St.onDidMutate}};let We=null;function we(){return We||(We=ne()),We}function Ue(ze){var Ke,Je;return!((Ke=ze?.sheet)===null||Ke===void 0)&&Ke.rules?ze.sheet.rules:!((Je=ze?.sheet)===null||Je===void 0)&&Je.cssRules?ze.sheet.cssRules:[]}function lt(ze,Ke,Je=we()){var Ne,ft;if(!(!Je||!Ke)){(Ne=Je.sheet)===null||Ne===void 0||Ne.insertRule(`${ze} {${Ke}}`,0);for(const St of(ft=fe.get(Je))!==null&&ft!==void 0?ft:[])lt(ze,Ke,St)}}function Et(ze,Ke=we()){var Je,Ne;if(!Ke)return;const ft=Ue(Ke),St=[];for(let rt=0;rt=0;rt--)(Je=Ke.sheet)===null||Je===void 0||Je.deleteRule(St[rt]);for(const rt of(Ne=fe.get(Ke))!==null&&Ne!==void 0?Ne:[])Et(ze,rt)}function Kt(ze){return typeof ze.selectorText=="string"}function Zt(ze){return ze instanceof MouseEvent||ze instanceof i(ze).MouseEvent}function qt(ze){return ze instanceof KeyboardEvent||ze instanceof i(ze).KeyboardEvent}const tt={CLICK:"click",AUXCLICK:"auxclick",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",MOUSE_WHEEL:"wheel",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",POINTER_LEAVE:"pointerleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",PAGE_SHOW:"pageshow",PAGE_HIDE:"pagehide",PASTE:"paste",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:r.Tc?"webkitAnimationStart":"animationstart",ANIMATION_END:r.Tc?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:r.Tc?"webkitAnimationIteration":"animationiteration"};function Mt(ze){const Ke=ze;return!!(Ke&&typeof Ke.preventDefault=="function"&&typeof Ke.stopPropagation=="function")}const Ht={stop:(ze,Ke)=>(ze.preventDefault(),Ke&&ze.stopPropagation(),ze)};function xt(ze){const Ke=[];for(let Je=0;ze&&ze.nodeType===ze.ELEMENT_NODE;Je++)Ke[Je]=ze.scrollTop,ze=ze.parentNode;return Ke}function Jt(ze,Ke){for(let Je=0;ze&&ze.nodeType===ze.ELEMENT_NODE;Je++)ze.scrollTop!==Ke[Je]&&(ze.scrollTop=Ke[Je]),ze=ze.parentNode}class Nt extends S.jG{static hasFocusWithin(Ke){if(Ke instanceof HTMLElement){const Je=ye(Ke),Ne=Je?Je.activeElement:Ke.ownerDocument.activeElement;return Te(Ne,Ke)}else{const Je=Ke;return Te(Je.document.activeElement,Je.document)}}constructor(Ke){super(),this._onDidFocus=this._register(new x.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new x.vl),this.onDidBlur=this._onDidBlur.event;let Je=Nt.hasFocusWithin(Ke),Ne=!1;const ft=()=>{Ne=!1,Je||(Je=!0,this._onDidFocus.fire())},St=()=>{Je&&(Ne=!0,(Ke instanceof HTMLElement?i(Ke):Ke).setTimeout(()=>{Ne&&(Ne=!1,Je=!1,this._onDidBlur.fire())},0))};this._refreshStateHandler=()=>{Nt.hasFocusWithin(Ke)!==Je&&(Je?St():ft())},this._register(U(Ke,tt.FOCUS,ft,!0)),this._register(U(Ke,tt.BLUR,St,!0)),Ke instanceof HTMLElement&&(this._register(U(Ke,tt.FOCUS_IN,()=>this._refreshStateHandler())),this._register(U(Ke,tt.FOCUS_OUT,()=>this._refreshStateHandler())))}}function Be(ze){return new Nt(ze)}function vt(ze,Ke){return ze.after(Ke),Ke}function Gt(ze,...Ke){if(ze.append(...Ke),Ke.length===1&&typeof Ke[0]!="string")return Ke[0]}function _n(ze,Ke){return ze.insertBefore(Ke,ze.firstChild),Ke}function Fn(ze,...Ke){ze.innerText="",Gt(ze,...Ke)}const An=/([\w\-]+)?(#([\w\-]+))?((\.([\w\-]+))*)/;var Hn;(function(ze){ze.HTML="http://www.w3.org/1999/xhtml",ze.SVG="http://www.w3.org/2000/svg"})(Hn||(Hn={}));function Kn(ze,Ke,Je,...Ne){const ft=An.exec(Ke);if(!ft)throw new Error("Bad use of emmet");const St=ft[1]||"div";let rt;return ze!==Hn.HTML?rt=document.createElementNS(ze,St):rt=document.createElement(St),ft[3]&&(rt.id=ft[3]),ft[4]&&(rt.className=ft[4].replace(/\./g," ").trim()),Je&&Object.entries(Je).forEach(([Ge,nt])=>{typeof nt>"u"||(/^on\w+$/.test(Ge)?rt[Ge]=nt:Ge==="selected"?nt&&rt.setAttribute(Ge,"true"):rt.setAttribute(Ge,nt))}),rt.append(...Ne),rt}function mi(ze,Ke,...Je){return Kn(Hn.HTML,ze,Ke,...Je)}mi.SVG=function(ze,Ke,...Je){return Kn(Hn.SVG,ze,Ke,...Je)};function yi(ze,...Ke){ze?ri(...Ke):fi(...Ke)}function ri(...ze){for(const Ke of ze)Ke.style.display="",Ke.removeAttribute("aria-hidden")}function fi(...ze){for(const Ke of ze)Ke.style.display="none",Ke.setAttribute("aria-hidden","true")}function Mi(ze,Ke){const Je=ze.devicePixelRatio*Ke;return Math.max(1,Math.floor(Je))/ze.devicePixelRatio}function xi(ze){s.G.open(ze,"_blank","noopener")}function ci(ze,Ke){const Je=()=>{Ke(),Ne=B(ze,Je)};let Ne=B(ze,Je);return(0,S.s)(()=>Ne.dispose())}f.Ez.setPreferredWebSchema(/^https:/.test(s.G.location.href)?"https":"http");function Ii(ze){return ze?`url('${f.zl.uriToBrowserUri(ze).toString(!0).replace(/'/g,"%27")}')`:"url('')"}function Si(ze){return`'${ze.replace(/'/g,"%27")}'`}function Ti(ze,Ke){if(ze!==void 0){const Je=ze.match(/^\s*var\((.+)\)$/);if(Je){const Ne=Je[1].split(",",2);return Ne.length===2&&(Ke=Ti(Ne[1].trim(),Ke)),`var(${Ne[0]}, ${Ke})`}return ze}return Ke}function Nn(ze,Ke=!1){const Je=document.createElement("a");return I.$w("afterSanitizeAttributes",Ne=>{for(const ft of["href","src"])if(Ne.hasAttribute(ft)){const St=Ne.getAttribute(ft);if(ft==="href"&&St.startsWith("#"))continue;if(Je.href=St,!ze.includes(Je.protocol.replace(/:$/,""))){if(Ke&&ft==="src"&&Je.href.startsWith("data:"))continue;Ne.removeAttribute(ft)}}}),(0,S.s)(()=>{I.SV("afterSanitizeAttributes")})}const Vn=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]),Yn=Object.freeze({ALLOWED_TAGS:["a","button","blockquote","code","div","h1","h2","h3","h4","h5","h6","hr","input","label","li","p","pre","select","small","span","strong","textarea","ul","ol"],ALLOWED_ATTR:["href","data-href","data-command","target","title","name","src","alt","class","id","role","tabindex","style","data-code","width","height","align","x-dispatch","required","checked","placeholder","type","start"],RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1,RETURN_TRUSTED_TYPE:!0});class Di extends x.vl{constructor(){super(),this._subscriptions=new S.Cm,this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1},this._subscriptions.add(x.Jh.runAndSubscribe(p,({window:Ke,disposables:Je})=>this.registerListeners(Ke,Je),{window:s.G,disposables:this._subscriptions}))}registerListeners(Ke,Je){Je.add(U(Ke,"keydown",Ne=>{if(Ne.defaultPrevented)return;const ft=new k.Z(Ne);if(!(ft.keyCode===6&&Ne.repeat)){if(Ne.altKey&&!this._keyStatus.altKey)this._keyStatus.lastKeyPressed="alt";else if(Ne.ctrlKey&&!this._keyStatus.ctrlKey)this._keyStatus.lastKeyPressed="ctrl";else if(Ne.metaKey&&!this._keyStatus.metaKey)this._keyStatus.lastKeyPressed="meta";else if(Ne.shiftKey&&!this._keyStatus.shiftKey)this._keyStatus.lastKeyPressed="shift";else if(ft.keyCode!==6)this._keyStatus.lastKeyPressed=void 0;else return;this._keyStatus.altKey=Ne.altKey,this._keyStatus.ctrlKey=Ne.ctrlKey,this._keyStatus.metaKey=Ne.metaKey,this._keyStatus.shiftKey=Ne.shiftKey,this._keyStatus.lastKeyPressed&&(this._keyStatus.event=Ne,this.fire(this._keyStatus))}},!0)),Je.add(U(Ke,"keyup",Ne=>{Ne.defaultPrevented||(!Ne.altKey&&this._keyStatus.altKey?this._keyStatus.lastKeyReleased="alt":!Ne.ctrlKey&&this._keyStatus.ctrlKey?this._keyStatus.lastKeyReleased="ctrl":!Ne.metaKey&&this._keyStatus.metaKey?this._keyStatus.lastKeyReleased="meta":!Ne.shiftKey&&this._keyStatus.shiftKey?this._keyStatus.lastKeyReleased="shift":this._keyStatus.lastKeyReleased=void 0,this._keyStatus.lastKeyPressed!==this._keyStatus.lastKeyReleased&&(this._keyStatus.lastKeyPressed=void 0),this._keyStatus.altKey=Ne.altKey,this._keyStatus.ctrlKey=Ne.ctrlKey,this._keyStatus.metaKey=Ne.metaKey,this._keyStatus.shiftKey=Ne.shiftKey,this._keyStatus.lastKeyReleased&&(this._keyStatus.event=Ne,this.fire(this._keyStatus)))},!0)),Je.add(U(Ke.document.body,"mousedown",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),Je.add(U(Ke.document.body,"mouseup",()=>{this._keyStatus.lastKeyPressed=void 0},!0)),Je.add(U(Ke.document.body,"mousemove",Ne=>{Ne.buttons&&(this._keyStatus.lastKeyPressed=void 0)},!0)),Je.add(U(Ke,"blur",()=>{this.resetKeyStatus()}))}get keyStatus(){return this._keyStatus}resetKeyStatus(){this.doResetKeyStatus(),this.fire(this._keyStatus)}doResetKeyStatus(){this._keyStatus={altKey:!1,shiftKey:!1,ctrlKey:!1,metaKey:!1}}static getInstance(){return Di.instance||(Di.instance=new Di),Di.instance}dispose(){super.dispose(),this._subscriptions.dispose()}}class Ai extends S.jG{constructor(Ke,Je){super(),this.element=Ke,this.callbacks=Je,this.counter=0,this.dragStartTime=0,this.registerListeners()}registerListeners(){this.callbacks.onDragStart&&this._register(U(this.element,tt.DRAG_START,Ke=>{var Je,Ne;(Ne=(Je=this.callbacks).onDragStart)===null||Ne===void 0||Ne.call(Je,Ke)})),this.callbacks.onDrag&&this._register(U(this.element,tt.DRAG,Ke=>{var Je,Ne;(Ne=(Je=this.callbacks).onDrag)===null||Ne===void 0||Ne.call(Je,Ke)})),this._register(U(this.element,tt.DRAG_ENTER,Ke=>{var Je,Ne;this.counter++,this.dragStartTime=Ke.timeStamp,(Ne=(Je=this.callbacks).onDragEnter)===null||Ne===void 0||Ne.call(Je,Ke)})),this._register(U(this.element,tt.DRAG_OVER,Ke=>{var Je,Ne;Ke.preventDefault(),(Ne=(Je=this.callbacks).onDragOver)===null||Ne===void 0||Ne.call(Je,Ke,Ke.timeStamp-this.dragStartTime)})),this._register(U(this.element,tt.DRAG_LEAVE,Ke=>{var Je,Ne;this.counter--,this.counter===0&&(this.dragStartTime=0,(Ne=(Je=this.callbacks).onDragLeave)===null||Ne===void 0||Ne.call(Je,Ke))})),this._register(U(this.element,tt.DRAG_END,Ke=>{var Je,Ne;this.counter=0,this.dragStartTime=0,(Ne=(Je=this.callbacks).onDragEnd)===null||Ne===void 0||Ne.call(Je,Ke)})),this._register(U(this.element,tt.DROP,Ke=>{var Je,Ne;this.counter=0,this.dragStartTime=0,(Ne=(Je=this.callbacks).onDrop)===null||Ne===void 0||Ne.call(Je,Ke)}))}}const Sn=/(?[\w\-]+)?(?:#(?[\w\-]+))?(?(?:\.(?:[\w\-]+))*)(?:@(?(?:[\w\_])+))?/;function Ye(ze,...Ke){let Je,Ne;Array.isArray(Ke[0])?(Je={},Ne=Ke[0]):(Je=Ke[0]||{},Ne=Ke[1]);const ft=Sn.exec(ze);if(!ft||!ft.groups)throw new Error("Bad use of h");const St=ft.groups.tag||"div",rt=document.createElement(St);ft.groups.id&&(rt.id=ft.groups.id);const Ge=[];if(ft.groups.class)for(const it of ft.groups.class.split("."))it!==""&&Ge.push(it);if(Je.className!==void 0)for(const it of Je.className.split("."))it!==""&&Ge.push(it);Ge.length>0&&(rt.className=Ge.join(" "));const nt={};if(ft.groups.name&&(nt[ft.groups.name]=rt),Ne)for(const it of Ne)it instanceof HTMLElement?rt.appendChild(it):typeof it=="string"?rt.append(it):"root"in it&&(Object.assign(nt,it),rt.appendChild(it.root));for(const[it,bt]of Object.entries(Je))if(it!=="className")if(it==="style")for(const[Dt,At]of Object.entries(bt))rt.style.setProperty(mt(Dt),typeof At=="number"?At+"px":""+At);else it==="tabIndex"?rt.tabIndex=bt:rt.setAttribute(mt(it),bt.toString());return nt.root=rt,nt}function mt(ze){return ze.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}},"./node_modules/monaco-editor/esm/vs/base/browser/dompurify/dompurify.js":function(pt,Me,e){e.d(Me,{$w:function(){return ge},SV:function(){return be},aj:function(){return qe}});const{entries:r,setPrototypeOf:F,isFrozen:k,getPrototypeOf:M,getOwnPropertyDescriptor:L}=Object;let{freeze:g,seal:x,create:I}=Object,{apply:S,construct:f}=typeof Reflect<"u"&&Reflect;S||(S=function(fe,le,oe){return fe.apply(le,oe)}),g||(g=function(fe){return fe}),x||(x=function(fe){return fe}),f||(f=function(fe,le){return new fe(...le)});const d=p(Array.prototype.forEach),a=p(Array.prototype.pop),s=p(Array.prototype.push),n=p(String.prototype.toLowerCase),i=p(String.prototype.toString),c=p(String.prototype.match),m=p(String.prototype.replace),u=p(String.prototype.indexOf),C=p(String.prototype.trim),h=p(RegExp.prototype.test),v=b(TypeError);function p(me){return function(fe){for(var le=arguments.length,oe=new Array(le>1?le-1:0),ne=1;ne/gm),Y=x(/\${[\w\W]*}/gm),X=x(/^data-[\-\w.\u00B7-\uFFFF]/),ie=x(/^aria-[\-\w]+$/),re=x(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),te=x(/^(?:\w+script|data):/i),D=x(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),he=x(/^html$/i);var ve=Object.freeze({__proto__:null,MUSTACHE_EXPR:B,ERB_EXPR:V,TMPLIT_EXPR:Y,DATA_ATTR:X,ARIA_ATTR:ie,IS_ALLOWED_URI:re,IS_SCRIPT_OR_DATA:te,ATTR_WHITESPACE:D,DOCTYPE_NAME:he});const Ce=()=>typeof window>"u"?null:window,Pe=function(fe,le){if(typeof fe!="object"||typeof fe.createPolicy!="function")return null;let oe=null;const ne="data-tt-policy-suffix";le&&le.hasAttribute(ne)&&(oe=le.getAttribute(ne));const de="dompurify"+(oe?"#"+oe:"");try{return fe.createPolicy(de,{createHTML(Le){return Le},createScriptURL(Le){return Le}})}catch{return console.warn("TrustedTypes policy "+de+" could not be created."),null}};function _e(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ce();const fe=zt=>_e(zt);if(fe.version="3.0.5",fe.removed=[],!me||!me.document||me.document.nodeType!==9)return fe.isSupported=!1,fe;const le=me.document,oe=le.currentScript;let{document:ne}=me;const{DocumentFragment:de,HTMLTemplateElement:Le,Node:We,Element:we,NodeFilter:Ue,NamedNodeMap:lt=me.NamedNodeMap||me.MozNamedAttrMap,HTMLFormElement:Et,DOMParser:Kt,trustedTypes:Zt}=me,qt=we.prototype,tt=j(qt,"cloneNode"),Mt=j(qt,"nextSibling"),Ht=j(qt,"childNodes"),xt=j(qt,"parentNode");if(typeof Le=="function"){const zt=ne.createElement("template");zt.content&&zt.content.ownerDocument&&(ne=zt.content.ownerDocument)}let Jt,Nt="";const{implementation:Be,createNodeIterator:vt,createDocumentFragment:Gt,getElementsByTagName:_n}=ne,{importNode:Fn}=le;let An={};fe.isSupported=typeof r=="function"&&typeof xt=="function"&&Be&&Be.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Hn,ERB_EXPR:Kn,TMPLIT_EXPR:mi,DATA_ATTR:yi,ARIA_ATTR:ri,IS_SCRIPT_OR_DATA:fi,ATTR_WHITESPACE:Mi}=ve;let{IS_ALLOWED_URI:xi}=ve,ci=null;const Ii=O({},[...U,...K,...G,...A,...E]);let Si=null;const Ti=O({},[...W,...$,...z,...J]);let Nn=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Vn=null,Yn=null,Di=!0,Ai=!0,Sn=!1,Ye=!0,mt=!1,ze=!1,Ke=!1,Je=!1,Ne=!1,ft=!1,St=!1,rt=!0,Ge=!1;const nt="user-content-";let it=!0,bt=!1,Dt={},At=null;const et=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let at=null;const Tt=O({},["audio","video","img","source","image","track"]);let dt=null;const Ae=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ct="http://www.w3.org/1998/Math/MathML",ut="http://www.w3.org/2000/svg",je="http://www.w3.org/1999/xhtml";let Rt=je,Ft=!1,ln=null;const vn=O({},[ct,ut,je],i);let Ln;const En=["application/xhtml+xml","text/html"],In="text/html";let ei,en=null;const xe=ne.createElement("form"),st=function(kt){return kt instanceof RegExp||kt instanceof Function},Wt=function(kt){if(!(en&&en===kt)){if((!kt||typeof kt!="object")&&(kt={}),kt=w(kt),Ln=En.indexOf(kt.PARSER_MEDIA_TYPE)===-1?Ln=In:Ln=kt.PARSER_MEDIA_TYPE,ei=Ln==="application/xhtml+xml"?i:n,ci="ALLOWED_TAGS"in kt?O({},kt.ALLOWED_TAGS,ei):Ii,Si="ALLOWED_ATTR"in kt?O({},kt.ALLOWED_ATTR,ei):Ti,ln="ALLOWED_NAMESPACES"in kt?O({},kt.ALLOWED_NAMESPACES,i):vn,dt="ADD_URI_SAFE_ATTR"in kt?O(w(Ae),kt.ADD_URI_SAFE_ATTR,ei):Ae,at="ADD_DATA_URI_TAGS"in kt?O(w(Tt),kt.ADD_DATA_URI_TAGS,ei):Tt,At="FORBID_CONTENTS"in kt?O({},kt.FORBID_CONTENTS,ei):et,Vn="FORBID_TAGS"in kt?O({},kt.FORBID_TAGS,ei):{},Yn="FORBID_ATTR"in kt?O({},kt.FORBID_ATTR,ei):{},Dt="USE_PROFILES"in kt?kt.USE_PROFILES:!1,Di=kt.ALLOW_ARIA_ATTR!==!1,Ai=kt.ALLOW_DATA_ATTR!==!1,Sn=kt.ALLOW_UNKNOWN_PROTOCOLS||!1,Ye=kt.ALLOW_SELF_CLOSE_IN_ATTR!==!1,mt=kt.SAFE_FOR_TEMPLATES||!1,ze=kt.WHOLE_DOCUMENT||!1,Ne=kt.RETURN_DOM||!1,ft=kt.RETURN_DOM_FRAGMENT||!1,St=kt.RETURN_TRUSTED_TYPE||!1,Je=kt.FORCE_BODY||!1,rt=kt.SANITIZE_DOM!==!1,Ge=kt.SANITIZE_NAMED_PROPS||!1,it=kt.KEEP_CONTENT!==!1,bt=kt.IN_PLACE||!1,xi=kt.ALLOWED_URI_REGEXP||re,Rt=kt.NAMESPACE||je,Nn=kt.CUSTOM_ELEMENT_HANDLING||{},kt.CUSTOM_ELEMENT_HANDLING&&st(kt.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Nn.tagNameCheck=kt.CUSTOM_ELEMENT_HANDLING.tagNameCheck),kt.CUSTOM_ELEMENT_HANDLING&&st(kt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Nn.attributeNameCheck=kt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),kt.CUSTOM_ELEMENT_HANDLING&&typeof kt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Nn.allowCustomizedBuiltInElements=kt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),mt&&(Ai=!1),ft&&(Ne=!0),Dt&&(ci=O({},[...E]),Si=[],Dt.html===!0&&(O(ci,U),O(Si,W)),Dt.svg===!0&&(O(ci,K),O(Si,$),O(Si,J)),Dt.svgFilters===!0&&(O(ci,G),O(Si,$),O(Si,J)),Dt.mathMl===!0&&(O(ci,A),O(Si,z),O(Si,J))),kt.ADD_TAGS&&(ci===Ii&&(ci=w(ci)),O(ci,kt.ADD_TAGS,ei)),kt.ADD_ATTR&&(Si===Ti&&(Si=w(Si)),O(Si,kt.ADD_ATTR,ei)),kt.ADD_URI_SAFE_ATTR&&O(dt,kt.ADD_URI_SAFE_ATTR,ei),kt.FORBID_CONTENTS&&(At===et&&(At=w(At)),O(At,kt.FORBID_CONTENTS,ei)),it&&(ci["#text"]=!0),ze&&O(ci,["html","head","body"]),ci.table&&(O(ci,["tbody"]),delete Vn.tbody),kt.TRUSTED_TYPES_POLICY){if(typeof kt.TRUSTED_TYPES_POLICY.createHTML!="function")throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof kt.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw v('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Jt=kt.TRUSTED_TYPES_POLICY,Nt=Jt.createHTML("")}else Jt===void 0&&(Jt=Pe(Zt,oe)),Jt!==null&&typeof Nt=="string"&&(Nt=Jt.createHTML(""));g&&g(kt),en=kt}},rn=O({},["mi","mo","mn","ms","mtext"]),hn=O({},["foreignobject","desc","title","annotation-xml"]),Dn=O({},["title","style","font","a","script"]),On=O({},K);O(On,G),O(On,P);const Bn=O({},A);O(Bn,T);const oi=function(kt){let an=xt(kt);(!an||!an.tagName)&&(an={namespaceURI:Rt,tagName:"template"});const dn=n(kt.tagName),bn=n(an.tagName);return ln[kt.namespaceURI]?kt.namespaceURI===ut?an.namespaceURI===je?dn==="svg":an.namespaceURI===ct?dn==="svg"&&(bn==="annotation-xml"||rn[bn]):!!On[dn]:kt.namespaceURI===ct?an.namespaceURI===je?dn==="math":an.namespaceURI===ut?dn==="math"&&hn[bn]:!!Bn[dn]:kt.namespaceURI===je?an.namespaceURI===ut&&!hn[bn]||an.namespaceURI===ct&&!rn[bn]?!1:!Bn[dn]&&(Dn[dn]||!On[dn]):!!(Ln==="application/xhtml+xml"&&ln[kt.namespaceURI]):!1},$n=function(kt){s(fe.removed,{element:kt});try{kt.parentNode.removeChild(kt)}catch{kt.remove()}},ti=function(kt,an){try{s(fe.removed,{attribute:an.getAttributeNode(kt),from:an})}catch{s(fe.removed,{attribute:null,from:an})}if(an.removeAttribute(kt),kt==="is"&&!Si[kt])if(Ne||ft)try{$n(an)}catch{}else try{an.setAttribute(kt,"")}catch{}},Jn=function(kt){let an,dn;if(Je)kt=""+kt;else{const jn=c(kt,/^[\r\n\t ]+/);dn=jn&&jn[0]}Ln==="application/xhtml+xml"&&Rt===je&&(kt=''+kt+"");const bn=Jt?Jt.createHTML(kt):kt;if(Rt===je)try{an=new Kt().parseFromString(bn,Ln)}catch{}if(!an||!an.documentElement){an=Be.createDocument(Rt,"template",null);try{an.documentElement.innerHTML=Ft?Nt:bn}catch{}}const xn=an.body||an.documentElement;return kt&&dn&&xn.insertBefore(ne.createTextNode(dn),xn.childNodes[0]||null),Rt===je?_n.call(an,ze?"html":"body")[0]:ze?an.documentElement:xn},Un=function(kt){return vt.call(kt.ownerDocument||kt,kt,Ue.SHOW_ELEMENT|Ue.SHOW_COMMENT|Ue.SHOW_TEXT,null,!1)},Rn=function(kt){return kt instanceof Et&&(typeof kt.nodeName!="string"||typeof kt.textContent!="string"||typeof kt.removeChild!="function"||!(kt.attributes instanceof lt)||typeof kt.removeAttribute!="function"||typeof kt.setAttribute!="function"||typeof kt.namespaceURI!="string"||typeof kt.insertBefore!="function"||typeof kt.hasChildNodes!="function")},cn=function(kt){return typeof We=="object"?kt instanceof We:kt&&typeof kt=="object"&&typeof kt.nodeType=="number"&&typeof kt.nodeName=="string"},$e=function(kt,an,dn){An[kt]&&d(An[kt],bn=>{bn.call(fe,an,dn,en)})},yt=function(kt){let an;if($e("beforeSanitizeElements",kt,null),Rn(kt))return $n(kt),!0;const dn=ei(kt.nodeName);if($e("uponSanitizeElement",kt,{tagName:dn,allowedTags:ci}),kt.hasChildNodes()&&!cn(kt.firstElementChild)&&(!cn(kt.content)||!cn(kt.content.firstElementChild))&&h(/<[/\w]/g,kt.innerHTML)&&h(/<[/\w]/g,kt.textContent))return $n(kt),!0;if(!ci[dn]||Vn[dn]){if(!Vn[dn]&&Vt(dn)&&(Nn.tagNameCheck instanceof RegExp&&h(Nn.tagNameCheck,dn)||Nn.tagNameCheck instanceof Function&&Nn.tagNameCheck(dn)))return!1;if(it&&!At[dn]){const bn=xt(kt)||kt.parentNode,xn=Ht(kt)||kt.childNodes;if(xn&&bn){const jn=xn.length;for(let pn=jn-1;pn>=0;--pn)bn.insertBefore(tt(xn[pn],!0),Mt(kt))}}return $n(kt),!0}return kt instanceof we&&!oi(kt)||(dn==="noscript"||dn==="noembed"||dn==="noframes")&&h(/<\/no(script|embed|frames)/i,kt.innerHTML)?($n(kt),!0):(mt&&kt.nodeType===3&&(an=kt.textContent,an=m(an,Hn," "),an=m(an,Kn," "),an=m(an,mi," "),kt.textContent!==an&&(s(fe.removed,{element:kt.cloneNode()}),kt.textContent=an)),$e("afterSanitizeElements",kt,null),!1)},jt=function(kt,an,dn){if(rt&&(an==="id"||an==="name")&&(dn in ne||dn in xe))return!1;if(!(Ai&&!Yn[an]&&h(yi,an))){if(!(Di&&h(ri,an))){if(!Si[an]||Yn[an]){if(!(Vt(kt)&&(Nn.tagNameCheck instanceof RegExp&&h(Nn.tagNameCheck,kt)||Nn.tagNameCheck instanceof Function&&Nn.tagNameCheck(kt))&&(Nn.attributeNameCheck instanceof RegExp&&h(Nn.attributeNameCheck,an)||Nn.attributeNameCheck instanceof Function&&Nn.attributeNameCheck(an))||an==="is"&&Nn.allowCustomizedBuiltInElements&&(Nn.tagNameCheck instanceof RegExp&&h(Nn.tagNameCheck,dn)||Nn.tagNameCheck instanceof Function&&Nn.tagNameCheck(dn))))return!1}else if(!dt[an]){if(!h(xi,m(dn,Mi,""))){if(!((an==="src"||an==="xlink:href"||an==="href")&&kt!=="script"&&u(dn,"data:")===0&&at[kt])){if(!(Sn&&!h(fi,m(dn,Mi,"")))){if(dn)return!1}}}}}}return!0},Vt=function(kt){return kt.indexOf("-")>0},Ut=function(kt){let an,dn,bn,xn;$e("beforeSanitizeAttributes",kt,null);const{attributes:jn}=kt;if(!jn)return;const pn={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Si};for(xn=jn.length;xn--;){an=jn[xn];const{name:Wn,namespaceURI:Qn}=an;if(dn=Wn==="value"?an.value:C(an.value),bn=ei(Wn),pn.attrName=bn,pn.attrValue=dn,pn.keepAttr=!0,pn.forceKeepAttr=void 0,$e("uponSanitizeAttribute",kt,pn),dn=pn.attrValue,pn.forceKeepAttr||(ti(Wn,kt),!pn.keepAttr))continue;if(!Ye&&h(/\/>/i,dn)){ti(Wn,kt);continue}mt&&(dn=m(dn,Hn," "),dn=m(dn,Kn," "),dn=m(dn,mi," "));const ui=ei(kt.nodeName);if(jt(ui,bn,dn)){if(Ge&&(bn==="id"||bn==="name")&&(ti(Wn,kt),dn=nt+dn),Jt&&typeof Zt=="object"&&typeof Zt.getAttributeType=="function"&&!Qn)switch(Zt.getAttributeType(ui,bn)){case"TrustedHTML":{dn=Jt.createHTML(dn);break}case"TrustedScriptURL":{dn=Jt.createScriptURL(dn);break}}try{Qn?kt.setAttributeNS(Qn,Wn,dn):kt.setAttribute(Wn,dn),a(fe.removed)}catch{}}}$e("afterSanitizeAttributes",kt,null)},sn=function zt(kt){let an;const dn=Un(kt);for($e("beforeSanitizeShadowDOM",kt,null);an=dn.nextNode();)$e("uponSanitizeShadowNode",an,null),!yt(an)&&(an.content instanceof de&&zt(an.content),Ut(an));$e("afterSanitizeShadowDOM",kt,null)};return fe.sanitize=function(zt){let kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},an,dn,bn,xn;if(Ft=!zt,Ft&&(zt=""),typeof zt!="string"&&!cn(zt))if(typeof zt.toString=="function"){if(zt=zt.toString(),typeof zt!="string")throw v("dirty is not a string, aborting")}else throw v("toString is not a function");if(!fe.isSupported)return zt;if(Ke||Wt(kt),fe.removed=[],typeof zt=="string"&&(bt=!1),bt){if(zt.nodeName){const Wn=ei(zt.nodeName);if(!ci[Wn]||Vn[Wn])throw v("root node is forbidden and cannot be sanitized in-place")}}else if(zt instanceof We)an=Jn(""),dn=an.ownerDocument.importNode(zt,!0),dn.nodeType===1&&dn.nodeName==="BODY"||dn.nodeName==="HTML"?an=dn:an.appendChild(dn);else{if(!Ne&&!mt&&!ze&&zt.indexOf("<")===-1)return Jt&&St?Jt.createHTML(zt):zt;if(an=Jn(zt),!an)return Ne?null:St?Nt:""}an&&Je&&$n(an.firstChild);const jn=Un(bt?zt:an);for(;bn=jn.nextNode();)yt(bn)||(bn.content instanceof de&&sn(bn.content),Ut(bn));if(bt)return zt;if(Ne){if(ft)for(xn=Gt.call(an.ownerDocument);an.firstChild;)xn.appendChild(an.firstChild);else xn=an;return(Si.shadowroot||Si.shadowrootmode)&&(xn=Fn.call(le,xn,!0)),xn}let pn=ze?an.outerHTML:an.innerHTML;return ze&&ci["!doctype"]&&an.ownerDocument&&an.ownerDocument.doctype&&an.ownerDocument.doctype.name&&h(he,an.ownerDocument.doctype.name)&&(pn=" `+pn),mt&&(pn=m(pn,Hn," "),pn=m(pn,Kn," "),pn=m(pn,mi," ")),Jt&&St?Jt.createHTML(pn):pn},fe.setConfig=function(zt){Wt(zt),Ke=!0},fe.clearConfig=function(){en=null,Ke=!1},fe.isValidAttribute=function(zt,kt,an){en||Wt({});const dn=ei(zt),bn=ei(kt);return jt(dn,bn,an)},fe.addHook=function(zt,kt){typeof kt=="function"&&(An[zt]=An[zt]||[],s(An[zt],kt))},fe.removeHook=function(zt){if(An[zt])return a(An[zt])},fe.removeHooks=function(zt){An[zt]&&(An[zt]=[])},fe.removeAllHooks=function(){An={}},fe}var ee=_e(),De=null;const Te=ee.version,He=ee.isSupported,qe=ee.sanitize,Qe=ee.setConfig,q=ee.clearConfig,ye=ee.isValidAttribute,ge=ee.addHook,be=ee.removeHook,Se=ee.removeHooks,ae=ee.removeAllHooks},"./node_modules/monaco-editor/esm/vs/base/browser/event.js":function(pt,Me,e){e.d(Me,{f:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js");class F{get event(){return this.emitter.event}constructor(M,L,g){const x=I=>this.emitter.fire(I);this.emitter=new r.vl({onWillAddFirstListener:()=>M.addEventListener(L,x,g),onDidRemoveLastListener:()=>M.removeEventListener(L,x,g)})}dispose(){this.emitter.dispose()}}},"./node_modules/monaco-editor/esm/vs/base/browser/fastDomNode.js":function(pt,Me,e){e.d(Me,{D:function(){return r},Z:function(){return k}});class r{constructor(L){this.domNode=L,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(L){const g=F(L);this._maxWidth!==g&&(this._maxWidth=g,this.domNode.style.maxWidth=this._maxWidth)}setWidth(L){const g=F(L);this._width!==g&&(this._width=g,this.domNode.style.width=this._width)}setHeight(L){const g=F(L);this._height!==g&&(this._height=g,this.domNode.style.height=this._height)}setTop(L){const g=F(L);this._top!==g&&(this._top=g,this.domNode.style.top=this._top)}setLeft(L){const g=F(L);this._left!==g&&(this._left=g,this.domNode.style.left=this._left)}setBottom(L){const g=F(L);this._bottom!==g&&(this._bottom=g,this.domNode.style.bottom=this._bottom)}setRight(L){const g=F(L);this._right!==g&&(this._right=g,this.domNode.style.right=this._right)}setPaddingLeft(L){const g=F(L);this._paddingLeft!==g&&(this._paddingLeft=g,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(L){this._fontFamily!==L&&(this._fontFamily=L,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(L){this._fontWeight!==L&&(this._fontWeight=L,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(L){const g=F(L);this._fontSize!==g&&(this._fontSize=g,this.domNode.style.fontSize=this._fontSize)}setFontStyle(L){this._fontStyle!==L&&(this._fontStyle=L,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(L){this._fontFeatureSettings!==L&&(this._fontFeatureSettings=L,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(L){this._fontVariationSettings!==L&&(this._fontVariationSettings=L,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(L){this._textDecoration!==L&&(this._textDecoration=L,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(L){const g=F(L);this._lineHeight!==g&&(this._lineHeight=g,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(L){const g=F(L);this._letterSpacing!==g&&(this._letterSpacing=g,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(L){this._className!==L&&(this._className=L,this.domNode.className=this._className)}toggleClassName(L,g){this.domNode.classList.toggle(L,g),this._className=this.domNode.className}setDisplay(L){this._display!==L&&(this._display=L,this.domNode.style.display=this._display)}setPosition(L){this._position!==L&&(this._position=L,this.domNode.style.position=this._position)}setVisibility(L){this._visibility!==L&&(this._visibility=L,this.domNode.style.visibility=this._visibility)}setColor(L){this._color!==L&&(this._color=L,this.domNode.style.color=this._color)}setBackgroundColor(L){this._backgroundColor!==L&&(this._backgroundColor=L,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(L){this._layerHint!==L&&(this._layerHint=L,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(L){this._boxShadow!==L&&(this._boxShadow=L,this.domNode.style.boxShadow=L)}setContain(L){this._contain!==L&&(this._contain=L,this.domNode.style.contain=this._contain)}setAttribute(L,g){this.domNode.setAttribute(L,g)}removeAttribute(L){this.domNode.removeAttribute(L)}appendChild(L){this.domNode.appendChild(L.domNode)}removeChild(L){this.domNode.removeChild(L.domNode)}}function F(M){return typeof M=="number"?`${M}px`:M}function k(M){return new r(M)}},"./node_modules/monaco-editor/esm/vs/base/browser/formattedTextRenderer.js":function(pt,Me,e){e.d(Me,{S5:function(){return F},n:function(){return M},yk:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js");function F(f,d={}){const a=M(d);return a.textContent=f,a}function k(f,d={}){const a=M(d);return g(a,x(f,!!d.renderCodeSegments),d.actionHandler,d.renderCodeSegments),a}function M(f){const d=f.inline?"span":"div",a=document.createElement(d);return f.className&&(a.className=f.className),a}class L{constructor(d){this.source=d,this.index=0}eos(){return this.index>=this.source.length}next(){const d=this.peek();return this.advance(),d}peek(){return this.source[this.index]}advance(){this.index++}}function g(f,d,a,s){let n;if(d.type===2)n=document.createTextNode(d.content||"");else if(d.type===3)n=document.createElement("b");else if(d.type===4)n=document.createElement("i");else if(d.type===7&&s)n=document.createElement("code");else if(d.type===5&&a){const i=document.createElement("a");a.disposables.add(r.b2(i,"click",c=>{a.callback(String(d.index),c)})),n=i}else d.type===8?n=document.createElement("br"):d.type===1&&(n=f);n&&f!==n&&f.appendChild(n),n&&Array.isArray(d.children)&&d.children.forEach(i=>{g(n,i,a,s)})}function x(f,d){const a={type:1,children:[]};let s=0,n=a;const i=[],c=new L(f);for(;!c.eos();){let m=c.next();const u=m==="\\"&&S(c.peek(),d)!==0;if(u&&(m=c.next()),!u&&I(m,d)&&m===c.peek()){c.advance(),n.type===2&&(n=i.pop());const C=S(m,d);if(n.type===C||n.type===5&&C===6)n=i.pop();else{const h={type:C,children:[]};C===5&&(h.index=s,s++),n.children.push(h),i.push(n),n=h}}else if(m===` `)n.type===2&&(n=i.pop()),n.children.push({type:8});else if(n.type!==2){const C={type:2,content:m};n.children.push(C),i.push(n),n=C}else n.content+=m}return n.type===2&&(n=i.pop()),i.length,a}function I(f,d){return S(f,d)!==0}function S(f,d){switch(f){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return d?7:0;default:return 0}}},"./node_modules/monaco-editor/esm/vs/base/browser/globalPointerMoveMonitor.js":function(pt,Me,e){e.d(Me,{_:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");class k{constructor(){this._hooks=new F.Cm,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(L,g){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const x=this._onStopCallback;this._onStopCallback=null,L&&x&&x(g)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(L,g,x,I,S){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=I,this._onStopCallback=S;let f=L;try{L.setPointerCapture(g),this._hooks.add((0,F.s)(()=>{try{L.releasePointerCapture(g)}catch{}}))}catch{f=r.zk(L)}this._hooks.add(r.ko(f,r.Bx.POINTER_MOVE,d=>{if(d.buttons!==x){this.stopMonitoring(!0);return}d.preventDefault(),this._pointerMoveCallback(d)})),this._hooks.add(r.ko(f,r.Bx.POINTER_UP,d=>this.stopMonitoring(!0)))}}},"./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js":function(pt,Me,e){e.d(Me,{Z:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/keybindings.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");function L(d){if(d.charCode){const s=String.fromCharCode(d.charCode).toUpperCase();return F.YM.fromString(s)}const a=d.keyCode;if(a===3)return 7;if(r.gm)switch(a){case 59:return 85;case 60:if(M.j9)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(M.zx)return 57;break}else if(r.Tc){if(M.zx&&a===93)return 57;if(!M.zx&&a===92)return 57}return F.uw[a]||0}const g=M.zx?256:2048,x=512,I=1024,S=M.zx?2048:256;class f{constructor(a){var s;this._standardKeyboardEventBrand=!0;const n=a;this.browserEvent=n,this.target=n.target,this.ctrlKey=n.ctrlKey,this.shiftKey=n.shiftKey,this.altKey=n.altKey,this.metaKey=n.metaKey,this.altGraphKey=(s=n.getModifierState)===null||s===void 0?void 0:s.call(n,"AltGraph"),this.keyCode=L(n),this.code=n.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(a){return this._asKeybinding===a}_computeKeybinding(){let a=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(a=this.keyCode);let s=0;return this.ctrlKey&&(s|=g),this.altKey&&(s|=x),this.shiftKey&&(s|=I),this.metaKey&&(s|=S),s|=a,s}_computeKeyCodeChord(){let a=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(a=this.keyCode),new k.dG(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,a)}}},"./node_modules/monaco-editor/esm/vs/base/browser/markdownRenderer.js":function(pt,Me,e){e.d(Me,{Gc:function(){return V},R9:function(){return D}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/dompurify/dompurify.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/event.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/formattedTextRenderer.js"),L=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),g=e("./node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js"),x=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabels.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/iconLabels.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/idGenerator.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/lazy.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");let i={};(function(){function fe(le,oe){oe(i)}fe.amd=!0,function(le,oe){typeof fe=="function"&&fe.amd?fe(["exports"],oe):typeof exports=="object"?oe(exports):(le=typeof globalThis<"u"?globalThis:le||self,oe(le.marked={}))}(this,function(le){"use strict";function oe(bt,Dt){for(var At=0;Atbt.length)&&(Dt=bt.length);for(var At=0,et=new Array(Dt);At=bt.length?{done:!0}:{done:!1,value:bt[et++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function we(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}le.defaults=we();function Ue(bt){le.defaults=bt}var lt=/[&<>"']/,Et=/[&<>"']/g,Kt=/[<>"']|&(?!#?\w+;)/,Zt=/[<>"']|&(?!#?\w+;)/g,qt={"&":"&","<":"<",">":">",'"':""","'":"'"},tt=function(Dt){return qt[Dt]};function Mt(bt,Dt){if(Dt){if(lt.test(bt))return bt.replace(Et,tt)}else if(Kt.test(bt))return bt.replace(Zt,tt);return bt}var Ht=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function xt(bt){return bt.replace(Ht,function(Dt,At){return At=At.toLowerCase(),At==="colon"?":":At.charAt(0)==="#"?At.charAt(1)==="x"?String.fromCharCode(parseInt(At.substring(2),16)):String.fromCharCode(+At.substring(1)):""})}var Jt=/(^|[^\[])\^/g;function Nt(bt,Dt){bt=typeof bt=="string"?bt:bt.source,Dt=Dt||"";var At={replace:function(at,Tt){return Tt=Tt.source||Tt,Tt=Tt.replace(Jt,"$1"),bt=bt.replace(at,Tt),At},getRegex:function(){return new RegExp(bt,Dt)}};return At}var Be=/[^\w:]/g,vt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Gt(bt,Dt,At){if(bt){var et;try{et=decodeURIComponent(xt(At)).replace(Be,"").toLowerCase()}catch{return null}if(et.indexOf("javascript:")===0||et.indexOf("vbscript:")===0||et.indexOf("data:")===0)return null}Dt&&!vt.test(At)&&(At=Kn(Dt,At));try{At=encodeURI(At).replace(/%25/g,"%")}catch{return null}return At}var _n={},Fn=/^[^:]+:\/*[^/]*$/,An=/^([^:]+:)[\s\S]*$/,Hn=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Kn(bt,Dt){_n[" "+bt]||(Fn.test(bt)?_n[" "+bt]=bt+"/":_n[" "+bt]=fi(bt,"/",!0)),bt=_n[" "+bt];var At=bt.indexOf(":")===-1;return Dt.substring(0,2)==="//"?At?Dt:bt.replace(An,"$1")+Dt:Dt.charAt(0)==="/"?At?Dt:bt.replace(Hn,"$1")+Dt:bt+Dt}var mi={exec:function(){}};function yi(bt){for(var Dt=1,At,et;Dt=0&&Ae[ut]==="\\";)ct=!ct;return ct?"|":" |"}),et=At.split(/ \|/),at=0;if(et[0].trim()||et.shift(),et.length>0&&!et[et.length-1].trim()&&et.pop(),et.length>Dt)et.splice(Dt);else for(;et.length1;)Dt&1&&(At+=bt),Dt>>=1,bt+=bt;return At+bt}function Ii(bt,Dt,At,et){var at=Dt.href,Tt=Dt.title?Mt(Dt.title):null,dt=bt[1].replace(/\\([\[\]])/g,"$1");if(bt[0].charAt(0)!=="!"){et.state.inLink=!0;var Ae={type:"link",raw:At,href:at,title:Tt,text:dt,tokens:et.inlineTokens(dt)};return et.state.inLink=!1,Ae}return{type:"image",raw:At,href:at,title:Tt,text:Mt(dt)}}function Si(bt,Dt){var At=bt.match(/^(\s+)(?:```)/);if(At===null)return Dt;var et=At[1];return Dt.split(` `).map(function(at){var Tt=at.match(/^\s+/);if(Tt===null)return at;var dt=Tt[0];return dt.length>=et.length?at.slice(et.length):at}).join(` `)}var Ti=function(){function bt(At){this.options=At||le.defaults}var Dt=bt.prototype;return Dt.space=function(et){var at=this.rules.block.newline.exec(et);if(at&&at[0].length>0)return{type:"space",raw:at[0]}},Dt.code=function(et){var at=this.rules.block.code.exec(et);if(at){var Tt=at[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:at[0],codeBlockStyle:"indented",text:this.options.pedantic?Tt:fi(Tt,` `)}}},Dt.fences=function(et){var at=this.rules.block.fences.exec(et);if(at){var Tt=at[0],dt=Si(Tt,at[3]||"");return{type:"code",raw:Tt,lang:at[2]?at[2].trim():at[2],text:dt}}},Dt.heading=function(et){var at=this.rules.block.heading.exec(et);if(at){var Tt=at[2].trim();if(/#$/.test(Tt)){var dt=fi(Tt,"#");(this.options.pedantic||!dt||/ $/.test(dt))&&(Tt=dt.trim())}return{type:"heading",raw:at[0],depth:at[1].length,text:Tt,tokens:this.lexer.inline(Tt)}}},Dt.hr=function(et){var at=this.rules.block.hr.exec(et);if(at)return{type:"hr",raw:at[0]}},Dt.blockquote=function(et){var at=this.rules.block.blockquote.exec(et);if(at){var Tt=at[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:at[0],tokens:this.lexer.blockTokens(Tt,[]),text:Tt}}},Dt.list=function(et){var at=this.rules.block.list.exec(et);if(at){var Tt,dt,Ae,ct,ut,je,Rt,Ft,ln,vn,Ln,En,In=at[1].trim(),ei=In.length>1,en={type:"list",raw:"",ordered:ei,start:ei?+In.slice(0,-1):"",loose:!1,items:[]};In=ei?"\\d{1,9}\\"+In.slice(-1):"\\"+In,this.options.pedantic&&(In=ei?In:"[*+-]");for(var xe=new RegExp("^( {0,3}"+In+")((?:[ ][^\\n]*)?(?:\\n|$))");et&&(En=!1,!(!(at=xe.exec(et))||this.rules.block.hr.test(et)));){if(Tt=at[0],et=et.substring(Tt.length),Ft=at[2].split(` `,1)[0],ln=et.split(` `,1)[0],this.options.pedantic?(ct=2,Ln=Ft.trimLeft()):(ct=at[2].search(/[^ ]/),ct=ct>4?1:ct,Ln=Ft.slice(ct),ct+=at[1].length),je=!1,!Ft&&/^ *$/.test(ln)&&(Tt+=ln+` `,et=et.substring(ln.length+1),En=!0),!En)for(var st=new RegExp("^ {0,"+Math.min(3,ct-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),Wt=new RegExp("^ {0,"+Math.min(3,ct-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),rn=new RegExp("^ {0,"+Math.min(3,ct-1)+"}(?:```|~~~)"),hn=new RegExp("^ {0,"+Math.min(3,ct-1)+"}#");et&&(vn=et.split(` `,1)[0],Ft=vn,this.options.pedantic&&(Ft=Ft.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(rn.test(Ft)||hn.test(Ft)||st.test(Ft)||Wt.test(et)));){if(Ft.search(/[^ ]/)>=ct||!Ft.trim())Ln+=` `+Ft.slice(ct);else if(!je)Ln+=` `+Ft;else break;!je&&!Ft.trim()&&(je=!0),Tt+=vn+` `,et=et.substring(vn.length+1)}en.loose||(Rt?en.loose=!0:/\n *\n *$/.test(Tt)&&(Rt=!0)),this.options.gfm&&(dt=/^\[[ xX]\] /.exec(Ln),dt&&(Ae=dt[0]!=="[ ] ",Ln=Ln.replace(/^\[[ xX]\] +/,""))),en.items.push({type:"list_item",raw:Tt,task:!!dt,checked:Ae,loose:!1,text:Ln}),en.raw+=Tt}en.items[en.items.length-1].raw=Tt.trimRight(),en.items[en.items.length-1].text=Ln.trimRight(),en.raw=en.raw.trimRight();var Dn=en.items.length;for(ut=0;ut1)return!0}return!1});!en.loose&&On.length&&Bn&&(en.loose=!0,en.items[ut].loose=!0)}return en}},Dt.html=function(et){var at=this.rules.block.html.exec(et);if(at){var Tt={type:"html",raw:at[0],pre:!this.options.sanitizer&&(at[1]==="pre"||at[1]==="script"||at[1]==="style"),text:at[0]};if(this.options.sanitize){var dt=this.options.sanitizer?this.options.sanitizer(at[0]):Mt(at[0]);Tt.type="paragraph",Tt.text=dt,Tt.tokens=this.lexer.inline(dt)}return Tt}},Dt.def=function(et){var at=this.rules.block.def.exec(et);if(at){at[3]&&(at[3]=at[3].substring(1,at[3].length-1));var Tt=at[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Tt,raw:at[0],href:at[2],title:at[3]}}},Dt.table=function(et){var at=this.rules.block.table.exec(et);if(at){var Tt={type:"table",header:ri(at[1]).map(function(Rt){return{text:Rt}}),align:at[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:at[3]&&at[3].trim()?at[3].replace(/\n[ \t]*$/,"").split(` `):[]};if(Tt.header.length===Tt.align.length){Tt.raw=at[0];var dt=Tt.align.length,Ae,ct,ut,je;for(Ae=0;Ae/i.test(at[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(at[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(at[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:at[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(at[0]):Mt(at[0]):at[0]}},Dt.link=function(et){var at=this.rules.inline.link.exec(et);if(at){var Tt=at[2].trim();if(!this.options.pedantic&&/^$/.test(Tt))return;var dt=fi(Tt.slice(0,-1),"\\");if((Tt.length-dt.length)%2===0)return}else{var Ae=Mi(at[2],"()");if(Ae>-1){var ct=at[0].indexOf("!")===0?5:4,ut=ct+at[1].length+Ae;at[2]=at[2].substring(0,Ae),at[0]=at[0].substring(0,ut).trim(),at[3]=""}}var je=at[2],Rt="";if(this.options.pedantic){var Ft=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(je);Ft&&(je=Ft[1],Rt=Ft[3])}else Rt=at[3]?at[3].slice(1,-1):"";return je=je.trim(),/^$/.test(Tt)?je=je.slice(1):je=je.slice(1,-1)),Ii(at,{href:je&&je.replace(this.rules.inline._escapes,"$1"),title:Rt&&Rt.replace(this.rules.inline._escapes,"$1")},at[0],this.lexer)}},Dt.reflink=function(et,at){var Tt;if((Tt=this.rules.inline.reflink.exec(et))||(Tt=this.rules.inline.nolink.exec(et))){var dt=(Tt[2]||Tt[1]).replace(/\s+/g," ");if(dt=at[dt.toLowerCase()],!dt||!dt.href){var Ae=Tt[0].charAt(0);return{type:"text",raw:Ae,text:Ae}}return Ii(Tt,dt,Tt[0],this.lexer)}},Dt.emStrong=function(et,at,Tt){Tt===void 0&&(Tt="");var dt=this.rules.inline.emStrong.lDelim.exec(et);if(dt&&!(dt[3]&&Tt.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var Ae=dt[1]||dt[2]||"";if(!Ae||Ae&&(Tt===""||this.rules.inline.punctuation.exec(Tt))){var ct=dt[0].length-1,ut,je,Rt=ct,Ft=0,ln=dt[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(ln.lastIndex=0,at=at.slice(-1*et.length+ct);(dt=ln.exec(at))!=null;)if(ut=dt[1]||dt[2]||dt[3]||dt[4]||dt[5]||dt[6],!!ut){if(je=ut.length,dt[3]||dt[4]){Rt+=je;continue}else if((dt[5]||dt[6])&&ct%3&&!((ct+je)%3)){Ft+=je;continue}if(Rt-=je,!(Rt>0)){if(je=Math.min(je,je+Rt+Ft),Math.min(ct,je)%2){var vn=et.slice(1,ct+dt.index+je);return{type:"em",raw:et.slice(0,ct+dt.index+je+1),text:vn,tokens:this.lexer.inlineTokens(vn)}}var Ln=et.slice(2,ct+dt.index+je-1);return{type:"strong",raw:et.slice(0,ct+dt.index+je+1),text:Ln,tokens:this.lexer.inlineTokens(Ln)}}}}}},Dt.codespan=function(et){var at=this.rules.inline.code.exec(et);if(at){var Tt=at[2].replace(/\n/g," "),dt=/[^ ]/.test(Tt),Ae=/^ /.test(Tt)&&/ $/.test(Tt);return dt&&Ae&&(Tt=Tt.substring(1,Tt.length-1)),Tt=Mt(Tt,!0),{type:"codespan",raw:at[0],text:Tt}}},Dt.br=function(et){var at=this.rules.inline.br.exec(et);if(at)return{type:"br",raw:at[0]}},Dt.del=function(et){var at=this.rules.inline.del.exec(et);if(at)return{type:"del",raw:at[0],text:at[2],tokens:this.lexer.inlineTokens(at[2])}},Dt.autolink=function(et,at){var Tt=this.rules.inline.autolink.exec(et);if(Tt){var dt,Ae;return Tt[2]==="@"?(dt=Mt(this.options.mangle?at(Tt[1]):Tt[1]),Ae="mailto:"+dt):(dt=Mt(Tt[1]),Ae=dt),{type:"link",raw:Tt[0],text:dt,href:Ae,tokens:[{type:"text",raw:dt,text:dt}]}}},Dt.url=function(et,at){var Tt;if(Tt=this.rules.inline.url.exec(et)){var dt,Ae;if(Tt[2]==="@")dt=Mt(this.options.mangle?at(Tt[0]):Tt[0]),Ae="mailto:"+dt;else{var ct;do ct=Tt[0],Tt[0]=this.rules.inline._backpedal.exec(Tt[0])[0];while(ct!==Tt[0]);dt=Mt(Tt[0]),Tt[1]==="www."?Ae="http://"+dt:Ae=dt}return{type:"link",raw:Tt[0],text:dt,href:Ae,tokens:[{type:"text",raw:dt,text:dt}]}}},Dt.inlineText=function(et,at){var Tt=this.rules.inline.text.exec(et);if(Tt){var dt;return this.lexer.state.inRawBlock?dt=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Tt[0]):Mt(Tt[0]):Tt[0]:dt=Mt(this.options.smartypants?at(Tt[0]):Tt[0]),{type:"text",raw:Tt[0],text:dt}}},bt}(),Nn={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:mi,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Nn._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Nn._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Nn.def=Nt(Nn.def).replace("label",Nn._label).replace("title",Nn._title).getRegex(),Nn.bullet=/(?:[*+-]|\d{1,9}[.)])/,Nn.listItemStart=Nt(/^( *)(bull) */).replace("bull",Nn.bullet).getRegex(),Nn.list=Nt(Nn.list).replace(/bull/g,Nn.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Nn.def.source+")").getRegex(),Nn._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Nn._comment=/|$)/,Nn.html=Nt(Nn.html,"i").replace("comment",Nn._comment).replace("tag",Nn._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Nn.paragraph=Nt(Nn._paragraph).replace("hr",Nn.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Nn._tag).getRegex(),Nn.blockquote=Nt(Nn.blockquote).replace("paragraph",Nn.paragraph).getRegex(),Nn.normal=yi({},Nn),Nn.gfm=yi({},Nn.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Nn.gfm.table=Nt(Nn.gfm.table).replace("hr",Nn.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Nn._tag).getRegex(),Nn.gfm.paragraph=Nt(Nn._paragraph).replace("hr",Nn.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Nn.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Nn._tag).getRegex(),Nn.pedantic=yi({},Nn.normal,{html:Nt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Nn._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:mi,paragraph:Nt(Nn.normal._paragraph).replace("hr",Nn.hr).replace("heading",` *#{1,6} *[^ ]`).replace("lheading",Nn.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Vn={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:mi,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:mi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",Vn.punctuation=Nt(Vn.punctuation).replace(/punctuation/g,Vn._punctuation).getRegex(),Vn.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Vn.escapedEmSt=/\\\*|\\_/g,Vn._comment=Nt(Nn._comment).replace("(?:-->|$)","-->").getRegex(),Vn.emStrong.lDelim=Nt(Vn.emStrong.lDelim).replace(/punct/g,Vn._punctuation).getRegex(),Vn.emStrong.rDelimAst=Nt(Vn.emStrong.rDelimAst,"g").replace(/punct/g,Vn._punctuation).getRegex(),Vn.emStrong.rDelimUnd=Nt(Vn.emStrong.rDelimUnd,"g").replace(/punct/g,Vn._punctuation).getRegex(),Vn._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Vn._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Vn._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Vn.autolink=Nt(Vn.autolink).replace("scheme",Vn._scheme).replace("email",Vn._email).getRegex(),Vn._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Vn.tag=Nt(Vn.tag).replace("comment",Vn._comment).replace("attribute",Vn._attribute).getRegex(),Vn._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Vn._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Vn._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Vn.link=Nt(Vn.link).replace("label",Vn._label).replace("href",Vn._href).replace("title",Vn._title).getRegex(),Vn.reflink=Nt(Vn.reflink).replace("label",Vn._label).replace("ref",Nn._label).getRegex(),Vn.nolink=Nt(Vn.nolink).replace("ref",Nn._label).getRegex(),Vn.reflinkSearch=Nt(Vn.reflinkSearch,"g").replace("reflink",Vn.reflink).replace("nolink",Vn.nolink).getRegex(),Vn.normal=yi({},Vn),Vn.pedantic=yi({},Vn.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Nt(/^!?\[(label)\]\((.*?)\)/).replace("label",Vn._label).getRegex(),reflink:Nt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Vn._label).getRegex()}),Vn.gfm=yi({},Vn.normal,{escape:Nt(Vn.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(et="x"+et.toString(16)),Dt+="&#"+et+";";return Dt}var Ai=function(){function bt(At){this.tokens=[],this.tokens.links=Object.create(null),this.options=At||le.defaults,this.options.tokenizer=this.options.tokenizer||new Ti,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var et={block:Nn.normal,inline:Vn.normal};this.options.pedantic?(et.block=Nn.pedantic,et.inline=Vn.pedantic):this.options.gfm&&(et.block=Nn.gfm,this.options.breaks?et.inline=Vn.breaks:et.inline=Vn.gfm),this.tokenizer.rules=et}bt.lex=function(et,at){var Tt=new bt(at);return Tt.lex(et)},bt.lexInline=function(et,at){var Tt=new bt(at);return Tt.inlineTokens(et)};var Dt=bt.prototype;return Dt.lex=function(et){et=et.replace(/\r\n|\r/g,` `),this.blockTokens(et,this.tokens);for(var at;at=this.inlineQueue.shift();)this.inlineTokens(at.src,at.tokens);return this.tokens},Dt.blockTokens=function(et,at){var Tt=this;at===void 0&&(at=[]),this.options.pedantic?et=et.replace(/\t/g," ").replace(/^ +$/gm,""):et=et.replace(/^( *)(\t+)/gm,function(Rt,Ft,ln){return Ft+" ".repeat(ln.length)});for(var dt,Ae,ct,ut;et;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Rt){return(dt=Rt.call({lexer:Tt},et,at))?(et=et.substring(dt.raw.length),at.push(dt),!0):!1}))){if(dt=this.tokenizer.space(et)){et=et.substring(dt.raw.length),dt.raw.length===1&&at.length>0?at[at.length-1].raw+=` `:at.push(dt);continue}if(dt=this.tokenizer.code(et)){et=et.substring(dt.raw.length),Ae=at[at.length-1],Ae&&(Ae.type==="paragraph"||Ae.type==="text")?(Ae.raw+=` `+dt.raw,Ae.text+=` `+dt.text,this.inlineQueue[this.inlineQueue.length-1].src=Ae.text):at.push(dt);continue}if(dt=this.tokenizer.fences(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.heading(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.hr(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.blockquote(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.list(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.html(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.def(et)){et=et.substring(dt.raw.length),Ae=at[at.length-1],Ae&&(Ae.type==="paragraph"||Ae.type==="text")?(Ae.raw+=` `+dt.raw,Ae.text+=` `+dt.raw,this.inlineQueue[this.inlineQueue.length-1].src=Ae.text):this.tokens.links[dt.tag]||(this.tokens.links[dt.tag]={href:dt.href,title:dt.title});continue}if(dt=this.tokenizer.table(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.lheading(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(ct=et,this.options.extensions&&this.options.extensions.startBlock&&function(){var Rt=1/0,Ft=et.slice(1),ln=void 0;Tt.options.extensions.startBlock.forEach(function(vn){ln=vn.call({lexer:this},Ft),typeof ln=="number"&&ln>=0&&(Rt=Math.min(Rt,ln))}),Rt<1/0&&Rt>=0&&(ct=et.substring(0,Rt+1))}(),this.state.top&&(dt=this.tokenizer.paragraph(ct))){Ae=at[at.length-1],ut&&Ae.type==="paragraph"?(Ae.raw+=` `+dt.raw,Ae.text+=` `+dt.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Ae.text):at.push(dt),ut=ct.length!==et.length,et=et.substring(dt.raw.length);continue}if(dt=this.tokenizer.text(et)){et=et.substring(dt.raw.length),Ae=at[at.length-1],Ae&&Ae.type==="text"?(Ae.raw+=` `+dt.raw,Ae.text+=` `+dt.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Ae.text):at.push(dt);continue}if(et){var je="Infinite loop on byte: "+et.charCodeAt(0);if(this.options.silent){console.error(je);break}else throw new Error(je)}}return this.state.top=!0,at},Dt.inline=function(et,at){return at===void 0&&(at=[]),this.inlineQueue.push({src:et,tokens:at}),at},Dt.inlineTokens=function(et,at){var Tt=this;at===void 0&&(at=[]);var dt,Ae,ct,ut=et,je,Rt,Ft;if(this.tokens.links){var ln=Object.keys(this.tokens.links);if(ln.length>0)for(;(je=this.tokenizer.rules.inline.reflinkSearch.exec(ut))!=null;)ln.includes(je[0].slice(je[0].lastIndexOf("[")+1,-1))&&(ut=ut.slice(0,je.index)+"["+ci("a",je[0].length-2)+"]"+ut.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(je=this.tokenizer.rules.inline.blockSkip.exec(ut))!=null;)ut=ut.slice(0,je.index)+"["+ci("a",je[0].length-2)+"]"+ut.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(je=this.tokenizer.rules.inline.escapedEmSt.exec(ut))!=null;)ut=ut.slice(0,je.index)+"++"+ut.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;et;)if(Rt||(Ft=""),Rt=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(Ln){return(dt=Ln.call({lexer:Tt},et,at))?(et=et.substring(dt.raw.length),at.push(dt),!0):!1}))){if(dt=this.tokenizer.escape(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.tag(et)){et=et.substring(dt.raw.length),Ae=at[at.length-1],Ae&&dt.type==="text"&&Ae.type==="text"?(Ae.raw+=dt.raw,Ae.text+=dt.text):at.push(dt);continue}if(dt=this.tokenizer.link(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.reflink(et,this.tokens.links)){et=et.substring(dt.raw.length),Ae=at[at.length-1],Ae&&dt.type==="text"&&Ae.type==="text"?(Ae.raw+=dt.raw,Ae.text+=dt.text):at.push(dt);continue}if(dt=this.tokenizer.emStrong(et,ut,Ft)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.codespan(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.br(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.del(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.autolink(et,Di)){et=et.substring(dt.raw.length),at.push(dt);continue}if(!this.state.inLink&&(dt=this.tokenizer.url(et,Di))){et=et.substring(dt.raw.length),at.push(dt);continue}if(ct=et,this.options.extensions&&this.options.extensions.startInline&&function(){var Ln=1/0,En=et.slice(1),In=void 0;Tt.options.extensions.startInline.forEach(function(ei){In=ei.call({lexer:this},En),typeof In=="number"&&In>=0&&(Ln=Math.min(Ln,In))}),Ln<1/0&&Ln>=0&&(ct=et.substring(0,Ln+1))}(),dt=this.tokenizer.inlineText(ct,Yn)){et=et.substring(dt.raw.length),dt.raw.slice(-1)!=="_"&&(Ft=dt.raw.slice(-1)),Rt=!0,Ae=at[at.length-1],Ae&&Ae.type==="text"?(Ae.raw+=dt.raw,Ae.text+=dt.text):at.push(dt);continue}if(et){var vn="Infinite loop on byte: "+et.charCodeAt(0);if(this.options.silent){console.error(vn);break}else throw new Error(vn)}}return at},ne(bt,null,[{key:"rules",get:function(){return{block:Nn,inline:Vn}}}]),bt}(),Sn=function(){function bt(At){this.options=At||le.defaults}var Dt=bt.prototype;return Dt.code=function(et,at,Tt){var dt=(at||"").match(/\S*/)[0];if(this.options.highlight){var Ae=this.options.highlight(et,dt);Ae!=null&&Ae!==et&&(Tt=!0,et=Ae)}return et=et.replace(/\n$/,"")+` `,dt?'
'+(Tt?et:Mt(et,!0))+`
`:"
"+(Tt?et:Mt(et,!0))+`
`},Dt.blockquote=function(et){return`
`+et+`
`},Dt.html=function(et){return et},Dt.heading=function(et,at,Tt,dt){if(this.options.headerIds){var Ae=this.options.headerPrefix+dt.slug(Tt);return"'+et+" `}return""+et+" `},Dt.hr=function(){return this.options.xhtml?`
`:`
`},Dt.list=function(et,at,Tt){var dt=at?"ol":"ul",Ae=at&&Tt!==1?' start="'+Tt+'"':"";return"<"+dt+Ae+`> `+et+" `},Dt.listitem=function(et){return"
  • "+et+`
  • `},Dt.checkbox=function(et){return" "},Dt.paragraph=function(et){return"

    "+et+`

    `},Dt.table=function(et,at){return at&&(at=""+at+""),` `+et+` `+at+`
    `},Dt.tablerow=function(et){return` `+et+` `},Dt.tablecell=function(et,at){var Tt=at.header?"th":"td",dt=at.align?"<"+Tt+' align="'+at.align+'">':"<"+Tt+">";return dt+et+(" `)},Dt.strong=function(et){return""+et+""},Dt.em=function(et){return""+et+""},Dt.codespan=function(et){return""+et+""},Dt.br=function(){return this.options.xhtml?"
    ":"
    "},Dt.del=function(et){return""+et+""},Dt.link=function(et,at,Tt){if(et=Gt(this.options.sanitize,this.options.baseUrl,et),et===null)return Tt;var dt='",dt},Dt.image=function(et,at,Tt){if(et=Gt(this.options.sanitize,this.options.baseUrl,et),et===null)return Tt;var dt=''+Tt+'":">",dt},Dt.text=function(et){return et},bt}(),Ye=function(){function bt(){}var Dt=bt.prototype;return Dt.strong=function(et){return et},Dt.em=function(et){return et},Dt.codespan=function(et){return et},Dt.del=function(et){return et},Dt.html=function(et){return et},Dt.text=function(et){return et},Dt.link=function(et,at,Tt){return""+Tt},Dt.image=function(et,at,Tt){return""+Tt},Dt.br=function(){return""},bt}(),mt=function(){function bt(){this.seen={}}var Dt=bt.prototype;return Dt.serialize=function(et){return et.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Dt.getNextSafeSlug=function(et,at){var Tt=et,dt=0;if(this.seen.hasOwnProperty(Tt)){dt=this.seen[et];do dt++,Tt=et+"-"+dt;while(this.seen.hasOwnProperty(Tt))}return at||(this.seen[et]=dt,this.seen[Tt]=0),Tt},Dt.slug=function(et,at){at===void 0&&(at={});var Tt=this.serialize(et);return this.getNextSafeSlug(Tt,at.dryrun)},bt}(),ze=function(){function bt(At){this.options=At||le.defaults,this.options.renderer=this.options.renderer||new Sn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ye,this.slugger=new mt}bt.parse=function(et,at){var Tt=new bt(at);return Tt.parse(et)},bt.parseInline=function(et,at){var Tt=new bt(at);return Tt.parseInline(et)};var Dt=bt.prototype;return Dt.parse=function(et,at){at===void 0&&(at=!0);var Tt="",dt,Ae,ct,ut,je,Rt,Ft,ln,vn,Ln,En,In,ei,en,xe,st,Wt,rn,hn,Dn=et.length;for(dt=0;dt0&&xe.tokens[0].type==="paragraph"?(xe.tokens[0].text=rn+" "+xe.tokens[0].text,xe.tokens[0].tokens&&xe.tokens[0].tokens.length>0&&xe.tokens[0].tokens[0].type==="text"&&(xe.tokens[0].tokens[0].text=rn+" "+xe.tokens[0].tokens[0].text)):xe.tokens.unshift({type:"text",text:rn}):en+=rn),en+=this.parse(xe.tokens,ei),vn+=this.renderer.listitem(en,Wt,st);Tt+=this.renderer.list(vn,En,In);continue}case"html":{Tt+=this.renderer.html(Ln.text);continue}case"paragraph":{Tt+=this.renderer.paragraph(this.parseInline(Ln.tokens));continue}case"text":{for(vn=Ln.tokens?this.parseInline(Ln.tokens):Ln.text;dt+1"u"||bt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof bt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(bt)+", string expected");if(typeof Dt=="function"&&(At=Dt,Dt=null),Dt=yi({},Ke.defaults,Dt||{}),xi(Dt),At){var et=Dt.highlight,at;try{at=Ai.lex(bt,Dt)}catch(ut){return At(ut)}var Tt=function(je){var Rt;if(!je)try{Dt.walkTokens&&Ke.walkTokens(at,Dt.walkTokens),Rt=ze.parse(at,Dt)}catch(Ft){je=Ft}return Dt.highlight=et,je?At(je):At(null,Rt)};if(!et||et.length<3||(delete Dt.highlight,!at.length))return Tt();var dt=0;Ke.walkTokens(at,function(ut){ut.type==="code"&&(dt++,setTimeout(function(){et(ut.text,ut.lang,function(je,Rt){if(je)return Tt(je);Rt!=null&&Rt!==ut.text&&(ut.text=Rt,ut.escaped=!0),dt--,dt===0&&Tt()})},0))}),dt===0&&Tt();return}function Ae(ut){if(ut.message+=` Please report this to https://github.com/markedjs/marked.`,Dt.silent)return"

    An error occurred:

    "+Mt(ut.message+"",!0)+"
    ";throw ut}try{var ct=Ai.lex(bt,Dt);if(Dt.walkTokens){if(Dt.async)return Promise.all(Ke.walkTokens(ct,Dt.walkTokens)).then(function(){return ze.parse(ct,Dt)}).catch(Ae);Ke.walkTokens(ct,Dt.walkTokens)}return ze.parse(ct,Dt)}catch(ut){Ae(ut)}}Ke.options=Ke.setOptions=function(bt){return yi(Ke.defaults,bt),Ue(Ke.defaults),Ke},Ke.getDefaults=we,Ke.defaults=le.defaults,Ke.use=function(){for(var bt=arguments.length,Dt=new Array(bt),At=0;At"u"||bt===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof bt!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(bt)+", string expected");Dt=yi({},Ke.defaults,Dt||{}),xi(Dt);try{var At=Ai.lexInline(bt,Dt);return Dt.walkTokens&&Ke.walkTokens(At,Dt.walkTokens),ze.parseInline(At,Dt)}catch(et){if(et.message+=` Please report this to https://github.com/markedjs/marked.`,Dt.silent)return"

    An error occurred:

    "+Mt(et.message+"",!0)+"
    ";throw et}},Ke.Parser=ze,Ke.parser=ze.parse,Ke.Renderer=Sn,Ke.TextRenderer=Ye,Ke.Lexer=Ai,Ke.lexer=Ai.lex,Ke.Tokenizer=Ti,Ke.Slugger=mt,Ke.parse=Ke;var Je=Ke.options,Ne=Ke.setOptions,ft=Ke.use,St=Ke.walkTokens,rt=Ke.parseInline,Ge=Ke,nt=ze.parse,it=Ai.lex;le.Lexer=Ai,le.Parser=ze,le.Renderer=Sn,le.Slugger=mt,le.TextRenderer=Ye,le.Tokenizer=Ti,le.getDefaults=we,le.lexer=it,le.marked=Ke,le.options=Je,le.parse=Ge,le.parseInline=rt,le.parser=nt,le.setOptions=Ne,le.use=ft,le.walkTokens=St,Object.defineProperty(le,"__esModule",{value:!0})})})();var c=i.Lexer||exports.Lexer,m=i.Parser||exports.Parser,u=i.Renderer||exports.Renderer,C=i.Slugger||exports.Slugger,h=i.TextRenderer||exports.TextRenderer,v=i.Tokenizer||exports.Tokenizer,p=i.getDefaults||exports.getDefaults,b=i.lexer||exports.lexer,O=i.marked||exports.marked,w=i.options||exports.options,j=i.parse||exports.parse,U=i.parseInline||exports.parseInline,K=i.parser||exports.parser,G=i.setOptions||exports.setOptions,P=i.use||exports.use,A=i.walkTokens||exports.walkTokens,T=e("./node_modules/monaco-editor/esm/vs/base/common/marshalling.js"),E=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),W=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),$=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),z=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),J=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js");const B=Object.freeze({image:(fe,le,oe)=>{let ne=[],de=[];return fe&&({href:fe,dimensions:ne}=(0,f.nI)(fe),de.push(`src="${(0,f.oO)(fe)}"`)),oe&&de.push(`alt="${(0,f.oO)(oe)}"`),le&&de.push(`title="${(0,f.oO)(le)}"`),ne.length&&(de=de.concat(ne)),""},paragraph:fe=>`

    ${fe}

    `,link:(fe,le,oe)=>typeof fe!="string"?"":(fe===oe&&(oe=(0,f._W)(oe)),le=typeof le=="string"?(0,f.oO)((0,f._W)(le)):"",fe=(0,f._W)(fe),fe=fe.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),`
    ${oe}`)});function V(fe,le={},oe={}){var ne,de;const Le=new n.Cm;let We=!1;const we=(0,M.n)(le),Ue=function(xt){let Jt;try{Jt=(0,T.qg)(decodeURIComponent(xt))}catch{}return Jt?(Jt=(0,W.PI)(Jt,Nt=>{if(fe.uris&&fe.uris[Nt])return J.r.revive(fe.uris[Nt])}),encodeURIComponent(JSON.stringify(Jt))):xt},lt=function(xt,Jt){const Nt=fe.uris&&fe.uris[xt];let Be=J.r.revive(Nt);return Jt?xt.startsWith(E.ny.data+":")?xt:(Be||(Be=J.r.parse(xt)),E.zl.uriToBrowserUri(Be).toString(!0)):!Be||J.r.parse(xt).toString()===Be.toString()?xt:(Be.query&&(Be=Be.with({query:Ue(Be.query)})),Be.toString())},Et=new O.Renderer;Et.image=B.image,Et.link=B.link,Et.paragraph=B.paragraph;const Kt=[],Zt=[];if(le.codeBlockRendererSync?Et.code=(xt,Jt)=>{const Nt=a.r.nextId(),Be=le.codeBlockRendererSync(Y(Jt),xt);return Zt.push([Nt,Be]),`
    ${(0,z.ih)(xt)}
    `}:le.codeBlockRenderer&&(Et.code=(xt,Jt)=>{const Nt=a.r.nextId(),Be=le.codeBlockRenderer(Y(Jt),xt);return Kt.push(Be.then(vt=>[Nt,vt])),`
    ${(0,z.ih)(xt)}
    `}),le.actionHandler){const xt=function(Be){let vt=Be.target;if(!(vt.tagName!=="A"&&(vt=vt.parentElement,!vt||vt.tagName!=="A")))try{let Gt=vt.dataset.href;Gt&&(fe.baseUri&&(Gt=X(J.r.from(fe.baseUri),Gt)),le.actionHandler.callback(Gt,Be))}catch(Gt){(0,I.dz)(Gt)}finally{Be.preventDefault()}},Jt=le.actionHandler.disposables.add(new k.f(we,"click")),Nt=le.actionHandler.disposables.add(new k.f(we,"auxclick"));le.actionHandler.disposables.add(S.Jh.any(Jt.event,Nt.event)(Be=>{const vt=new g.P(r.zk(we),Be);!vt.leftButton&&!vt.middleButton||xt(vt)})),le.actionHandler.disposables.add(r.ko(we,"keydown",Be=>{const vt=new L.Z(Be);!vt.equals(10)&&!vt.equals(3)||xt(vt)}))}fe.supportHtml||(oe.sanitizer=xt=>(fe.isTrusted?xt.match(/^(]+>)|(<\/\s*span>)$/):void 0)?xt:"",oe.sanitize=!0,oe.silent=!0),oe.renderer=Et;let qt=(ne=fe.value)!==null&&ne!==void 0?ne:"";qt.length>1e5&&(qt=`${qt.substr(0,1e5)}\u2026`),fe.supportThemeIcons&&(qt=(0,d.sA)(qt));let tt;if(le.fillInIncompleteTokens){const xt={...O.defaults,...oe},Jt=O.lexer(qt,xt),Nt=De(Jt);tt=O.parser(Nt,xt)}else tt=O.parse(qt,oe);fe.supportThemeIcons&&(tt=(0,x.n)(tt).map(Jt=>typeof Jt=="string"?Jt:Jt.outerHTML).join(""));const Ht=new DOMParser().parseFromString(ie(fe,tt),"text/html");if(Ht.body.querySelectorAll("img").forEach(xt=>{const Jt=xt.getAttribute("src");if(Jt){let Nt=Jt;try{fe.baseUri&&(Nt=X(J.r.from(fe.baseUri),Nt))}catch{}xt.src=lt(Nt,!0)}}),Ht.body.querySelectorAll("a").forEach(xt=>{const Jt=xt.getAttribute("href");if(xt.setAttribute("href",""),!Jt||/^data:|javascript:/i.test(Jt)||/^command:/i.test(Jt)&&!fe.isTrusted||/^command:(\/\/\/)?_workbench\.downloadResource/i.test(Jt))xt.replaceWith(...xt.childNodes);else{let Nt=lt(Jt,!1);fe.baseUri&&(Nt=X(J.r.from(fe.baseUri),Jt)),xt.dataset.href=Nt}}),we.innerHTML=ie(fe,Ht.body.innerHTML),Kt.length>0)Promise.all(Kt).then(xt=>{var Jt,Nt;if(We)return;const Be=new Map(xt),vt=we.querySelectorAll("div[data-code]");for(const Gt of vt){const _n=Be.get((Jt=Gt.dataset.code)!==null&&Jt!==void 0?Jt:"");_n&&r.Ln(Gt,_n)}(Nt=le.asyncRenderCallback)===null||Nt===void 0||Nt.call(le)});else if(Zt.length>0){const xt=new Map(Zt),Jt=we.querySelectorAll("div[data-code]");for(const Nt of Jt){const Be=xt.get((de=Nt.dataset.code)!==null&&de!==void 0?de:"");Be&&r.Ln(Nt,Be)}}if(le.asyncRenderCallback)for(const xt of we.getElementsByTagName("img")){const Jt=Le.add(r.ko(xt,"load",()=>{Jt.dispose(),le.asyncRenderCallback()}))}return{element:we,dispose:()=>{We=!0,Le.dispose()}}}function Y(fe){if(!fe)return"";const le=fe.split(/[\s+|:|,|\{|\?]/,1);return le.length?le[0]:fe}function X(fe,le){return/^\w[\w\d+.-]*:/.test(le)?le:fe.path.endsWith("/")?(0,$.o1)(fe,le).toString():(0,$.o1)((0,$.pD)(fe),le).toString()}function ie(fe,le){const{config:oe,allowedSchemes:ne}=te(fe);F.$w("uponSanitizeAttribute",(Le,We)=>{var we;if(We.attrName==="style"||We.attrName==="class"){if(Le.tagName==="SPAN"){if(We.attrName==="style"){We.keepAttr=/^(color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?(background-color\:(#[0-9a-fA-F]+|var\(--vscode(-[a-zA-Z]+)+\));)?$/.test(We.attrValue);return}else if(We.attrName==="class"){We.keepAttr=/^codicon codicon-[a-z\-]+( codicon-modifier-[a-z\-]+)?$/.test(We.attrValue);return}}We.keepAttr=!1;return}else if(Le.tagName==="INPUT"&&((we=Le.attributes.getNamedItem("type"))===null||we===void 0?void 0:we.value)==="checkbox"){if(We.attrName==="type"&&We.attrValue==="checkbox"||We.attrName==="disabled"||We.attrName==="checked"){We.keepAttr=!0;return}We.keepAttr=!1}}),F.$w("uponSanitizeElement",(Le,We)=>{var we,Ue;We.tagName==="input"&&(((we=Le.attributes.getNamedItem("type"))===null||we===void 0?void 0:we.value)==="checkbox"?Le.setAttribute("disabled",""):(Ue=Le.parentElement)===null||Ue===void 0||Ue.removeChild(Le))});const de=r.a4(ne);try{return F.aj(le,{...oe,RETURN_TRUSTED_TYPE:!0})}finally{F.SV("uponSanitizeAttribute"),de.dispose()}}const re=["align","autoplay","alt","checked","class","controls","data-code","data-href","disabled","draggable","height","href","loop","muted","playsinline","poster","src","style","target","title","type","width","start"];function te(fe){const le=[E.ny.http,E.ny.https,E.ny.mailto,E.ny.data,E.ny.file,E.ny.vscodeFileResource,E.ny.vscodeRemote,E.ny.vscodeRemoteResource];return fe.isTrusted&&le.push(E.ny.command),{config:{ALLOWED_TAGS:[...r.TT],ALLOWED_ATTR:re,ALLOW_UNKNOWN_PROTOCOLS:!0},allowedSchemes:le}}function D(fe){return typeof fe=="string"?fe:he(fe)}function he(fe){var le;let oe=(le=fe.value)!==null&&le!==void 0?le:"";oe.length>1e5&&(oe=`${oe.substr(0,1e5)}\u2026`);const ne=O.parse(oe,{renderer:Ce.value}).replace(/&(#\d+|[a-zA-Z]+);/g,de=>{var Le;return(Le=ve.get(de))!==null&&Le!==void 0?Le:de});return ie({isTrusted:!1},ne).toString()}const ve=new Map([[""",'"'],[" "," "],["&","&"],["'","'"],["<","<"],[">",">"]]),Ce=new s.d(()=>{const fe=new O.Renderer;return fe.code=le=>le,fe.blockquote=le=>le,fe.html=le=>"",fe.heading=(le,oe,ne)=>le+` `,fe.hr=()=>"",fe.list=(le,oe)=>le,fe.listitem=le=>le+` `,fe.paragraph=le=>le+` `,fe.table=(le,oe)=>le+oe+` `,fe.tablerow=le=>le,fe.tablecell=(le,oe)=>le+" ",fe.strong=le=>le,fe.em=le=>le,fe.codespan=le=>le,fe.br=()=>` `,fe.del=le=>le,fe.image=(le,oe,ne)=>"",fe.text=le=>le,fe.link=(le,oe,ne)=>ne,fe});function Pe(fe){let le="";return fe.forEach(oe=>{le+=oe.raw}),le}function _e(fe){var le,oe;for(let ne=0;neee(we.raw)))return ge(fe)}}}}function ee(fe){return!!fe.match(/^[^\[]*\]\([^\)]*$/)}function De(fe){let le,oe;for(le=0;le"u"&&We.match(/^\s*\|/)){const we=We.match(/(\|[^\|]+)(?=\||$)/g);we&&(ne=we.length)}else if(typeof ne=="number")if(We.match(/^\s*\|/)){if(Le!==oe.length-1)return;de=!0}else return}if(typeof ne=="number"&&ne>0){const Le=de?oe.slice(0,-1).join(` `):le,We=!!Le.match(/\|\s*$/),we=Le+(We?"":"|")+` |${" --- |".repeat(ne)}`;return O.lexer(we)}}},"./node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js":function(pt,Me,e){e.d(Me,{P:function(){return g},$:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js");const F=new WeakMap;function k(I){if(!I.parent||I.parent===I)return null;try{const S=I.location,f=I.parent.location;if(S.origin!=="null"&&f.origin!=="null"&&S.origin!==f.origin)return null}catch{return null}return I.parent}class M{static getSameOriginWindowChain(S){let f=F.get(S);if(!f){f=[],F.set(S,f);let d=S,a;do a=k(d),a?f.push({window:new WeakRef(d),iframeElement:d.frameElement||null}):f.push({window:new WeakRef(d),iframeElement:null}),d=a;while(d)}return f.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(S,f){var d,a;if(!f||S===f)return{top:0,left:0};let s=0,n=0;const i=this.getSameOriginWindowChain(S);for(const c of i){const m=c.window.deref();if(s+=(d=m?.scrollY)!==null&&d!==void 0?d:0,n+=(a=m?.scrollX)!==null&&a!==void 0?a:0,m===f||!c.iframeElement)break;const u=c.iframeElement.getBoundingClientRect();s+=u.top,n+=u.left}return{top:s,left:n}}}var L=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");class g{constructor(S,f){this.timestamp=Date.now(),this.browserEvent=f,this.leftButton=f.button===0,this.middleButton=f.button===1,this.rightButton=f.button===2,this.buttons=f.buttons,this.target=f.target,this.detail=f.detail||1,f.type==="dblclick"&&(this.detail=2),this.ctrlKey=f.ctrlKey,this.shiftKey=f.shiftKey,this.altKey=f.altKey,this.metaKey=f.metaKey,typeof f.pageX=="number"?(this.posx=f.pageX,this.posy=f.pageY):(this.posx=f.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=f.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const d=M.getPositionOfChildWindowRelativeToAncestorWindow(S,f.view);this.posx-=d.left,this.posy-=d.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class x{constructor(S,f=0,d=0){var a;this.browserEvent=S||null,this.target=S?S.target||S.targetNode||S.srcElement:null,this.deltaY=d,this.deltaX=f;let s=!1;if(r.H8){const n=navigator.userAgent.match(/Chrome\/(\d+)/);s=(n?parseInt(n[1]):123)<=122}if(S){const n=S,i=S,c=((a=S.view)===null||a===void 0?void 0:a.devicePixelRatio)||1;if(typeof n.wheelDeltaY<"u")s?this.deltaY=n.wheelDeltaY/(120*c):this.deltaY=n.wheelDeltaY/120;else if(typeof i.VERTICAL_AXIS<"u"&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if(S.type==="wheel"){const m=S;m.deltaMode===m.DOM_DELTA_LINE?r.gm&&!L.zx?this.deltaY=-S.deltaY/3:this.deltaY=-S.deltaY:this.deltaY=-S.deltaY/40}if(typeof n.wheelDeltaX<"u")r.nr&&L.uF?this.deltaX=-(n.wheelDeltaX/120):s?this.deltaX=n.wheelDeltaX/(120*c):this.deltaX=n.wheelDeltaX/120;else if(typeof i.HORIZONTAL_AXIS<"u"&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-S.detail/3;else if(S.type==="wheel"){const m=S;m.deltaMode===m.DOM_DELTA_LINE?r.gm&&!L.zx?this.deltaX=-S.deltaX/3:this.deltaX=-S.deltaX:this.deltaX=-S.deltaX/40}this.deltaY===0&&this.deltaX===0&&S.wheelDelta&&(s?this.deltaY=S.wheelDelta/(120*c):this.deltaY=S.wheelDelta/120)}}preventDefault(){var S;(S=this.browserEvent)===null||S===void 0||S.preventDefault()}stopPropagation(){var S;(S=this.browserEvent)===null||S===void 0||S.stopPropagation()}}},"./node_modules/monaco-editor/esm/vs/base/browser/performance.js":function(pt,Me,e){e.d(Me,{p:function(){return r}});var r;(function(F){const k={total:0,min:Number.MAX_VALUE,max:0},M={...k},L={...k},g={...k};let x=0;const I={keydown:0,input:0,render:0};function S(){C(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),I.keydown=1,queueMicrotask(f)}F.onKeyDown=S;function f(){I.keydown===1&&(performance.mark("keydown/end"),I.keydown=2)}function d(){performance.mark("input/start"),I.input=1,u()}F.onBeforeInput=d;function a(){I.input===0&&d(),queueMicrotask(s)}F.onInput=a;function s(){I.input===1&&(performance.mark("input/end"),I.input=2)}function n(){C()}F.onKeyUp=n;function i(){C()}F.onSelectionChange=i;function c(){I.keydown===2&&I.input===2&&I.render===0&&(performance.mark("render/start"),I.render=1,queueMicrotask(m),u())}F.onRenderStart=c;function m(){I.render===1&&(performance.mark("render/end"),I.render=2)}function u(){setTimeout(C)}function C(){I.keydown===2&&I.input===2&&I.render===2&&(performance.mark("inputlatency/end"),performance.measure("keydown","keydown/start","keydown/end"),performance.measure("input","input/start","input/end"),performance.measure("render","render/start","render/end"),performance.measure("inputlatency","inputlatency/start","inputlatency/end"),h("keydown",k),h("input",M),h("render",L),h("inputlatency",g),x++,v())}function h(w,j){const U=performance.getEntriesByName(w)[0].duration;j.total+=U,j.min=Math.min(j.min,U),j.max=Math.max(j.max,U)}function v(){performance.clearMarks("keydown/start"),performance.clearMarks("keydown/end"),performance.clearMarks("input/start"),performance.clearMarks("input/end"),performance.clearMarks("render/start"),performance.clearMarks("render/end"),performance.clearMarks("inputlatency/start"),performance.clearMarks("inputlatency/end"),performance.clearMeasures("keydown"),performance.clearMeasures("input"),performance.clearMeasures("render"),performance.clearMeasures("inputlatency"),I.keydown=0,I.input=0,I.render=0}function p(){if(x===0)return;const w={keydown:b(k),input:b(M),render:b(L),total:b(g),sampleCount:x};return O(k),O(M),O(L),O(g),x=0,w}F.getAndClearMeasurements=p;function b(w){return{average:w.total/x,max:w.max,min:w.min}}function O(w){w.total=0,w.min=Number.MAX_VALUE,w.max=0}})(r||(r={}))},"./node_modules/monaco-editor/esm/vs/base/browser/pixelRatio.js":function(pt,Me,e){e.d(Me,{c:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");class M extends k.jG{constructor(S){super(),this._onDidChange=this._register(new F.vl),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(S,!0),this._mediaQueryList=null,this._handleChange(S,!1)}_handleChange(S,f){var d;(d=this._mediaQueryList)===null||d===void 0||d.removeEventListener("change",this._listener),this._mediaQueryList=S.matchMedia(`(resolution: ${S.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),f&&this._onDidChange.fire()}}class L extends k.jG{get value(){return this._value}constructor(S){super(),this._onDidChange=this._register(new F.vl),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio(S);const f=this._register(new M(S));this._register(f.onDidChange(()=>{this._value=this._getPixelRatio(S),this._onDidChange.fire(this._value)}))}_getPixelRatio(S){const f=document.createElement("canvas").getContext("2d"),d=S.devicePixelRatio||1,a=f.webkitBackingStorePixelRatio||f.mozBackingStorePixelRatio||f.msBackingStorePixelRatio||f.oBackingStorePixelRatio||f.backingStorePixelRatio||1;return d/a}}class g{constructor(){this.mapWindowIdToPixelRatioMonitor=new Map}_getOrCreatePixelRatioMonitor(S){const f=(0,r.Q2)(S);let d=this.mapWindowIdToPixelRatioMonitor.get(f);return d||(d=(0,k.lC)(new L(S)),this.mapWindowIdToPixelRatioMonitor.set(f,d),(0,k.lC)(F.Jh.once(r.Fv)(({vscodeWindowId:a})=>{a===f&&(d?.dispose(),this.mapWindowIdToPixelRatioMonitor.delete(f))}))),d}getInstance(S){return this._getOrCreatePixelRatioMonitor(S)}}const x=new g},"./node_modules/monaco-editor/esm/vs/base/browser/touch.js":function(pt,Me,e){e.d(Me,{B:function(){return S},q:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/window.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/decorators.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js"),I=function(d,a,s,n){var i=arguments.length,c=i<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,s):n,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(d,a,s,n);else for(var u=d.length-1;u>=0;u--)(m=d[u])&&(c=(i<3?m(c):i>3?m(a,s,c):m(a,s))||c);return i>3&&c&&Object.defineProperty(a,s,c),c},S;(function(d){d.Tap="-monaco-gesturetap",d.Change="-monaco-gesturechange",d.Start="-monaco-gesturestart",d.End="-monaco-gesturesend",d.Contextmenu="-monaco-gesturecontextmenu"})(S||(S={}));class f extends g.jG{constructor(){super(),this.dispatched=!1,this.targets=new x.w,this.ignoreTargets=new x.w,this.activeTouches={},this.handle=null,this._lastSetTapCountTime=0,this._register(L.Jh.runAndSubscribe(r.Iv,({window:a,disposables:s})=>{s.add(r.ko(a.document,"touchstart",n=>this.onTouchStart(n),{passive:!1})),s.add(r.ko(a.document,"touchend",n=>this.onTouchEnd(a,n))),s.add(r.ko(a.document,"touchmove",n=>this.onTouchMove(n),{passive:!1}))},{window:F.G,disposables:this._store}))}static addTarget(a){if(!f.isTouchDevice())return g.jG.None;f.INSTANCE||(f.INSTANCE=(0,g.lC)(new f));const s=f.INSTANCE.targets.push(a);return(0,g.s)(s)}static ignoreTarget(a){if(!f.isTouchDevice())return g.jG.None;f.INSTANCE||(f.INSTANCE=(0,g.lC)(new f));const s=f.INSTANCE.ignoreTargets.push(a);return(0,g.s)(s)}static isTouchDevice(){return"ontouchstart"in F.G||navigator.maxTouchPoints>0}dispose(){this.handle&&(this.handle.dispose(),this.handle=null),super.dispose()}onTouchStart(a){const s=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(let n=0,i=a.targetTouches.length;n=f.HOLD_DELAY&&Math.abs(C.initialPageX-k.RT(C.rollingPageX))<30&&Math.abs(C.initialPageY-k.RT(C.rollingPageY))<30){const v=this.newGestureEvent(S.Contextmenu,C.initialTarget);v.pageX=k.RT(C.rollingPageX),v.pageY=k.RT(C.rollingPageY),this.dispatchEvent(v)}else if(i===1){const v=k.RT(C.rollingPageX),p=k.RT(C.rollingPageY),b=k.RT(C.rollingTimestamps)-C.rollingTimestamps[0],O=v-C.rollingPageX[0],w=p-C.rollingPageY[0],j=[...this.targets].filter(U=>C.initialTarget instanceof Node&&U.contains(C.initialTarget));this.inertia(a,j,n,Math.abs(O)/b,O>0?1:-1,v,Math.abs(w)/b,w>0?1:-1,p)}this.dispatchEvent(this.newGestureEvent(S.End,C.initialTarget)),delete this.activeTouches[u.identifier]}this.dispatched&&(s.preventDefault(),s.stopPropagation(),this.dispatched=!1)}newGestureEvent(a,s){const n=document.createEvent("CustomEvent");return n.initEvent(a,!1,!0),n.initialTarget=s,n.tapCount=0,n}dispatchEvent(a){if(a.type===S.Tap){const s=new Date().getTime();let n=0;s-this._lastSetTapCountTime>f.CLEAR_TAP_COUNT_TIME?n=1:n=2,this._lastSetTapCountTime=s,a.tapCount=n}else(a.type===S.Change||a.type===S.Contextmenu)&&(this._lastSetTapCountTime=0);if(a.initialTarget instanceof Node){for(const n of this.ignoreTargets)if(n.contains(a.initialTarget))return;const s=[];for(const n of this.targets)if(n.contains(a.initialTarget)){let i=0,c=a.initialTarget;for(;c&&c!==n;)i++,c=c.parentElement;s.push([i,n])}s.sort((n,i)=>n[0]-i[0]);for(const[n,i]of s)i.dispatchEvent(a),this.dispatched=!0}}inertia(a,s,n,i,c,m,u,C,h){this.handle=r.PG(a,()=>{const v=Date.now(),p=v-n;let b=0,O=0,w=!0;i+=f.SCROLL_FRICTION*p,u+=f.SCROLL_FRICTION*p,i>0&&(w=!1,b=c*i*p),u>0&&(w=!1,O=C*u*p);const j=this.newGestureEvent(S.Change);j.translationX=b,j.translationY=O,s.forEach(U=>U.dispatchEvent(j)),w||this.inertia(a,s,v,i,c,m+b,u,C,h+O)})}onTouchMove(a){const s=Date.now();for(let n=0,i=a.changedTouches.length;n3&&(m.rollingPageX.shift(),m.rollingPageY.shift(),m.rollingTimestamps.shift()),m.rollingPageX.push(c.pageX),m.rollingPageY.push(c.pageY),m.rollingTimestamps.push(s)}this.dispatched&&(a.preventDefault(),a.stopPropagation(),this.dispatched=!1)}}f.SCROLL_FRICTION=-.005,f.HOLD_DELAY=700,f.CLEAR_TAP_COUNT_TIME=400,I([M.B],f,"isTouchDevice",null)},"./node_modules/monaco-editor/esm/vs/base/browser/trustedTypes.js":function(pt,Me,e){e.d(Me,{H:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/window.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js");function k(M,L){var g;const x=globalThis.MonacoEnvironment;if(x?.createTrustedTypesPolicy)try{return x.createTrustedTypesPolicy(M,L)}catch(I){(0,F.dz)(I);return}try{return(g=r.G.trustedTypes)===null||g===void 0?void 0:g.createPolicy(M,L)}catch(I){(0,F.dz)(I);return}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionViewItems.js":function(pt,Me,e){e.d(Me,{Z4:function(){return U},EH:function(){return j},XF:function(){return K}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/dnd.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/touch.js"),L=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),g=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js"),x=e("./node_modules/monaco-editor/esm/vs/base/browser/event.js"),I=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),S=e("./node_modules/monaco-editor/esm/vs/base/browser/markdownRenderer.js"),f=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/list/listWidget.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),i=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),c=e("./node_modules/monaco-editor/esm/vs/nls.js");const m=k.$,u="selectOption.entry.template";class C{get templateId(){return u}renderTemplate(P){const A=Object.create(null);return A.root=P,A.text=k.BC(P,m(".option-text")),A.detail=k.BC(P,m(".option-detail")),A.decoratorRight=k.BC(P,m(".option-decorator-right")),A}renderElement(P,A,T){const E=T,W=P.text,$=P.detail,z=P.decoratorRight,J=P.isDisabled;E.text.textContent=W,E.detail.textContent=$||"",E.decoratorRight.innerText=z||"",J?E.root.classList.add("option-disabled"):E.root.classList.remove("option-disabled")}disposeTemplate(P){}}class h extends n.jG{constructor(P,A,T,E,W){super(),this.options=[],this._currentSelection=0,this._hasDetails=!1,this._skipLayout=!1,this._sticky=!1,this._isVisible=!1,this.styles=E,this.selectBoxOptions=W||Object.create(null),typeof this.selectBoxOptions.minBottomMargin!="number"?this.selectBoxOptions.minBottomMargin=h.DEFAULT_DROPDOWN_MINIMUM_BOTTOM_MARGIN:this.selectBoxOptions.minBottomMargin<0&&(this.selectBoxOptions.minBottomMargin=0),this.selectElement=document.createElement("select"),this.selectElement.className="monaco-select-box monaco-select-box-dropdown-padding",typeof this.selectBoxOptions.ariaLabel=="string"&&this.selectElement.setAttribute("aria-label",this.selectBoxOptions.ariaLabel),typeof this.selectBoxOptions.ariaDescription=="string"&&this.selectElement.setAttribute("aria-description",this.selectBoxOptions.ariaDescription),this._onDidSelect=new a.vl,this._register(this._onDidSelect),this.registerListeners(),this.constructSelectDropDown(T),this.selected=A||0,P&&this.setOptions(P,A),this.initStyleSheet()}setTitle(P){!this._hover&&P?this._hover=this._register((0,g.f)((0,L.nZ)("mouse"),this.selectElement,P)):this._hover&&this._hover.update(P)}getHeight(){return 22}getTemplateId(){return u}constructSelectDropDown(P){this.contextViewProvider=P,this.selectDropDownContainer=k.$(".monaco-select-box-dropdown-container"),this.selectDropDownContainer.classList.add("monaco-select-box-dropdown-padding"),this.selectionDetailsPane=k.BC(this.selectDropDownContainer,m(".select-box-details-pane"));const A=k.BC(this.selectDropDownContainer,m(".select-box-dropdown-container-width-control")),T=k.BC(A,m(".width-control-div"));this.widthControlElement=document.createElement("span"),this.widthControlElement.className="option-text-width-control",k.BC(T,this.widthControlElement),this._dropDownPosition=0,this.styleElement=k.li(this.selectDropDownContainer),this.selectDropDownContainer.setAttribute("draggable","true"),this._register(k.ko(this.selectDropDownContainer,k.Bx.DRAG_START,E=>{k.fs.stop(E,!0)}))}registerListeners(){this._register(k.b2(this.selectElement,"change",A=>{this.selected=A.target.selectedIndex,this._onDidSelect.fire({index:A.target.selectedIndex,selected:A.target.value}),this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)})),this._register(k.ko(this.selectElement,k.Bx.CLICK,A=>{k.fs.stop(A),this._isVisible?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(k.ko(this.selectElement,k.Bx.MOUSE_DOWN,A=>{k.fs.stop(A)}));let P;this._register(k.ko(this.selectElement,"touchstart",A=>{P=this._isVisible})),this._register(k.ko(this.selectElement,"touchend",A=>{k.fs.stop(A),P?this.hideSelectDropDown(!0):this.showSelectDropDown()})),this._register(k.ko(this.selectElement,k.Bx.KEY_DOWN,A=>{const T=new I.Z(A);let E=!1;i.zx?(T.keyCode===18||T.keyCode===16||T.keyCode===10||T.keyCode===3)&&(E=!0):(T.keyCode===18&&T.altKey||T.keyCode===16&&T.altKey||T.keyCode===10||T.keyCode===3)&&(E=!0),E&&(this.showSelectDropDown(),k.fs.stop(A,!0))}))}get onDidSelect(){return this._onDidSelect.event}setOptions(P,A){d.aI(this.options,P)||(this.options=P,this.selectElement.options.length=0,this._hasDetails=!1,this._cachedMaxDetailsHeight=void 0,this.options.forEach((T,E)=>{this.selectElement.add(this.createOption(T.text,E,T.isDisabled)),typeof T.description=="string"&&(this._hasDetails=!0)})),A!==void 0&&(this.select(A),this._currentSelection=this.selected)}setOptionsList(){var P;(P=this.selectList)===null||P===void 0||P.splice(0,this.selectList.length,this.options)}select(P){P>=0&&Pthis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.options[this.selected]&&this.options[this.selected].text&&this.setTitle(this.options[this.selected].text)}focus(){this.selectElement&&(this.selectElement.tabIndex=0,this.selectElement.focus())}blur(){this.selectElement&&(this.selectElement.tabIndex=-1,this.selectElement.blur())}setFocusable(P){this.selectElement.tabIndex=P?0:-1}render(P){this.container=P,P.classList.add("select-container"),P.appendChild(this.selectElement),this.styleSelectElement()}initStyleSheet(){const P=[];this.styles.listFocusBackground&&P.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { background-color: ${this.styles.listFocusBackground} !important; }`),this.styles.listFocusForeground&&P.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { color: ${this.styles.listFocusForeground} !important; }`),this.styles.decoratorRightForeground&&P.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.focused) .option-decorator-right { color: ${this.styles.decoratorRightForeground}; }`),this.styles.selectBackground&&this.styles.selectBorder&&this.styles.selectBorder!==this.styles.selectBackground?(P.push(`.monaco-select-box-dropdown-container { border: 1px solid ${this.styles.selectBorder} } `),P.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectBorder} } `),P.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectBorder} } `)):this.styles.selectListBorder&&(P.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-top { border-top: 1px solid ${this.styles.selectListBorder} } `),P.push(`.monaco-select-box-dropdown-container > .select-box-details-pane.border-bottom { border-bottom: 1px solid ${this.styles.selectListBorder} } `)),this.styles.listHoverForeground&&P.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { color: ${this.styles.listHoverForeground} !important; }`),this.styles.listHoverBackground&&P.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { background-color: ${this.styles.listHoverBackground} !important; }`),this.styles.listFocusOutline&&P.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.focused { outline: 1.6px dotted ${this.styles.listFocusOutline} !important; outline-offset: -1.6px !important; }`),this.styles.listHoverOutline&&P.push(`.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row:not(.option-disabled):not(.focused):hover { outline: 1.6px dashed ${this.styles.listHoverOutline} !important; outline-offset: -1.6px !important; }`),P.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled.focused { background-color: transparent !important; color: inherit !important; outline: none !important; }"),P.push(".monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row.option-disabled:hover { background-color: transparent !important; color: inherit !important; outline: none !important; }"),this.styleElement.textContent=P.join(` `)}styleSelectElement(){var P,A,T;const E=(P=this.styles.selectBackground)!==null&&P!==void 0?P:"",W=(A=this.styles.selectForeground)!==null&&A!==void 0?A:"",$=(T=this.styles.selectBorder)!==null&&T!==void 0?T:"";this.selectElement.style.backgroundColor=E,this.selectElement.style.color=W,this.selectElement.style.borderColor=$}styleList(){var P,A;const T=(P=this.styles.selectBackground)!==null&&P!==void 0?P:"",E=k.gI(this.styles.selectListBackground,T);this.selectDropDownListContainer.style.backgroundColor=E,this.selectionDetailsPane.style.backgroundColor=E;const W=(A=this.styles.focusBorder)!==null&&A!==void 0?A:"";this.selectDropDownContainer.style.outlineColor=W,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(P,A,T){const E=document.createElement("option");return E.value=P,E.text=P,E.disabled=!!T,E}showSelectDropDown(){this.selectionDetailsPane.innerText="",!(!this.contextViewProvider||this._isVisible)&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:P=>this.renderSelectDropDown(P,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:P=>this.renderSelectDropDown(P),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(P){!this.contextViewProvider||!this._isVisible||(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),P&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(P,A){return P.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(A),{dispose:()=>{try{P.removeChild(this.selectDropDownContainer)}catch{}}}}measureMaxDetailsHeight(){let P=0;return this.options.forEach((A,T)=>{this.updateDetail(T),this.selectionDetailsPane.offsetHeight>P&&(P=this.selectionDetailsPane.offsetHeight)}),P}layoutSelectDropDown(P){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const A=k.zk(this.selectElement),T=k.BK(this.selectElement),E=k.zk(this.selectElement).getComputedStyle(this.selectElement),W=parseFloat(E.getPropertyValue("--dropdown-padding-top"))+parseFloat(E.getPropertyValue("--dropdown-padding-bottom")),$=A.innerHeight-T.top-T.height-(this.selectBoxOptions.minBottomMargin||0),z=T.top-h.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,J=this.selectElement.offsetWidth,B=this.setWidthControlElement(this.widthControlElement),V=Math.max(B,Math.round(J)).toString()+"px";this.selectDropDownContainer.style.width=V,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let Y=this.selectList.contentHeight;this._hasDetails&&this._cachedMaxDetailsHeight===void 0&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const X=this._hasDetails?this._cachedMaxDetailsHeight:0,ie=Y+W+X,re=Math.floor(($-W-X)/this.getHeight()),te=Math.floor((z-W-X)/this.getHeight());if(P)return T.top+T.height>A.innerHeight-22||T.topre&&this.options.length>re?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetailsPane.classList.remove("border-top"),this.selectionDetailsPane.classList.add("border-bottom")):(this._dropDownPosition=0,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectionDetailsPane.classList.remove("border-bottom"),this.selectionDetailsPane.classList.add("border-top")),!0);if(T.top+T.height>A.innerHeight-22||T.top$&&(Y=re*this.getHeight())}else ie>z&&(Y=te*this.getHeight());return this.selectList.layout(Y),this.selectList.domFocus(),this.selectList.length>0&&(this.selectList.setFocus([this.selected||0]),this.selectList.reveal(this.selectList.getFocus()[0]||0)),this._hasDetails?(this.selectList.getHTMLElement().style.height=Y+W+"px",this.selectDropDownContainer.style.height=""):this.selectDropDownContainer.style.height=Y+W+"px",this.updateDetail(this.selected),this.selectDropDownContainer.style.width=V,this.selectDropDownListContainer.setAttribute("tabindex","0"),this.selectElement.classList.add("synthetic-focus"),this.selectDropDownContainer.classList.add("synthetic-focus"),!0}else return!1}setWidthControlElement(P){let A=0;if(P){let T=0,E=0;this.options.forEach((W,$)=>{const z=W.detail?W.detail.length:0,J=W.decoratorRight?W.decoratorRight.length:0,B=W.text.length+z+J;B>E&&(T=$,E=B)}),P.textContent=this.options[T].text+(this.options[T].decoratorRight?this.options[T].decoratorRight+" ":""),A=k.Tr(P)}return A}createSelectList(P){if(this.selectList)return;this.selectDropDownListContainer=k.BC(P,m(".select-box-dropdown-list-container")),this.listRenderer=new C,this.selectList=new f.B8("SelectBoxCustom",this.selectDropDownListContainer,this,[this.listRenderer],{useShadows:!1,verticalScrollMode:3,keyboardSupport:!1,mouseSupport:!1,accessibilityProvider:{getAriaLabel:E=>{let W=E.text;return E.detail&&(W+=`. ${E.detail}`),E.decoratorRight&&(W+=`. ${E.decoratorRight}`),E.description&&(W+=`. ${E.description}`),W},getWidgetAriaLabel:()=>(0,c.kg)({key:"selectBox",comment:["Behave like native select dropdown element."]},"Select Box"),getRole:()=>i.zx?"":"option",getWidgetRole:()=>"listbox"}}),this.selectBoxOptions.ariaLabel&&(this.selectList.ariaLabel=this.selectBoxOptions.ariaLabel);const A=this._register(new x.f(this.selectDropDownListContainer,"keydown")),T=a.Jh.chain(A.event,E=>E.filter(()=>this.selectList.length>0).map(W=>new I.Z(W)));this._register(a.Jh.chain(T,E=>E.filter(W=>W.keyCode===3))(this.onEnter,this)),this._register(a.Jh.chain(T,E=>E.filter(W=>W.keyCode===2))(this.onEnter,this)),this._register(a.Jh.chain(T,E=>E.filter(W=>W.keyCode===9))(this.onEscape,this)),this._register(a.Jh.chain(T,E=>E.filter(W=>W.keyCode===16))(this.onUpArrow,this)),this._register(a.Jh.chain(T,E=>E.filter(W=>W.keyCode===18))(this.onDownArrow,this)),this._register(a.Jh.chain(T,E=>E.filter(W=>W.keyCode===12))(this.onPageDown,this)),this._register(a.Jh.chain(T,E=>E.filter(W=>W.keyCode===11))(this.onPageUp,this)),this._register(a.Jh.chain(T,E=>E.filter(W=>W.keyCode===14))(this.onHome,this)),this._register(a.Jh.chain(T,E=>E.filter(W=>W.keyCode===13))(this.onEnd,this)),this._register(a.Jh.chain(T,E=>E.filter(W=>W.keyCode>=21&&W.keyCode<=56||W.keyCode>=85&&W.keyCode<=113))(this.onCharacter,this)),this._register(k.ko(this.selectList.getHTMLElement(),k.Bx.POINTER_UP,E=>this.onPointerUp(E))),this._register(this.selectList.onMouseOver(E=>typeof E.index<"u"&&this.selectList.setFocus([E.index]))),this._register(this.selectList.onDidChangeFocus(E=>this.onListFocus(E))),this._register(k.ko(this.selectDropDownContainer,k.Bx.FOCUS_OUT,E=>{!this._isVisible||k.QX(E.relatedTarget,this.selectDropDownContainer)||this.onListBlur()})),this.selectList.getHTMLElement().setAttribute("aria-label",this.selectBoxOptions.ariaLabel||""),this.selectList.getHTMLElement().setAttribute("aria-expanded","true"),this.styleList()}onPointerUp(P){if(!this.selectList.length)return;k.fs.stop(P);const A=P.target;if(!A||A.classList.contains("slider"))return;const T=A.closest(".monaco-list-row");if(!T)return;const E=Number(T.getAttribute("data-index")),W=T.classList.contains("option-disabled");E>=0&&E{for(let $=0;$this.selected+2)this.selected+=2;else{if(A)return;this.selected++}this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0])}}onUpArrow(P){this.selected>0&&(k.fs.stop(P,!0),this.options[this.selected-1].isDisabled&&this.selected>1?this.selected-=2:this.selected--,this.select(this.selected),this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selectList.getFocus()[0]))}onPageUp(P){k.fs.stop(P),this.selectList.focusPreviousPage(),setTimeout(()=>{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected{this.selected=this.selectList.getFocus()[0],this.options[this.selected].isDisabled&&this.selected>0&&(this.selected--,this.selectList.setFocus([this.selected])),this.selectList.reveal(this.selected),this.select(this.selected)},1)}onHome(P){k.fs.stop(P),!(this.options.length<2)&&(this.selected=0,this.options[this.selected].isDisabled&&this.selected>1&&this.selected++,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onEnd(P){k.fs.stop(P),!(this.options.length<2)&&(this.selected=this.options.length-1,this.options[this.selected].isDisabled&&this.selected>1&&this.selected--,this.selectList.setFocus([this.selected]),this.selectList.reveal(this.selected),this.select(this.selected))}onCharacter(P){const A=s.YM.toString(P.keyCode);let T=-1;for(let E=0;E{this._register(k.ko(this.selectElement,P,A=>{this.selectElement.focus()}))}),this._register(k.b2(this.selectElement,"click",P=>{k.fs.stop(P,!0)})),this._register(k.b2(this.selectElement,"change",P=>{this.selectElement.title=P.target.value,this._onDidSelect.fire({index:P.target.selectedIndex,selected:P.target.value})})),this._register(k.b2(this.selectElement,"keydown",P=>{let A=!1;i.zx?(P.keyCode===18||P.keyCode===16||P.keyCode===10)&&(A=!0):(P.keyCode===18&&P.altKey||P.keyCode===10||P.keyCode===3)&&(A=!0),A&&P.stopPropagation()}))}get onDidSelect(){return this._onDidSelect.event}setOptions(P,A){(!this.options||!d.aI(this.options,P))&&(this.options=P,this.selectElement.options.length=0,this.options.forEach((T,E)=>{this.selectElement.add(this.createOption(T.text,E,T.isDisabled))})),A!==void 0&&this.select(A)}select(P){this.options.length===0?this.selected=0:P>=0&&Pthis.options.length-1?this.select(this.options.length-1):this.selected<0&&(this.selected=0),this.selectElement.selectedIndex=this.selected,this.selected{this.element&&this.handleActionChangeEvent(E)}))}handleActionChangeEvent(P){P.enabled!==void 0&&this.updateEnabled(),P.checked!==void 0&&this.updateChecked(),P.class!==void 0&&this.updateClass(),P.label!==void 0&&(this.updateLabel(),this.updateTooltip()),P.tooltip!==void 0&&this.updateTooltip()}get actionRunner(){return this._actionRunner||(this._actionRunner=this._register(new O.LN)),this._actionRunner}set actionRunner(P){this._actionRunner=P}isEnabled(){return this._action.enabled}setActionContext(P){this._context=P}render(P){const A=this.element=P;this._register(M.q.addTarget(P));const T=this.options&&this.options.draggable;T&&(P.draggable=!0,r.gm&&this._register((0,k.ko)(P,k.Bx.DRAG_START,E=>{var W;return(W=E.dataTransfer)===null||W===void 0?void 0:W.setData(F.t.TEXT,this._action.label)}))),this._register((0,k.ko)(A,M.B.Tap,E=>this.onClick(E,!0))),this._register((0,k.ko)(A,k.Bx.MOUSE_DOWN,E=>{T||k.fs.stop(E,!0),this._action.enabled&&E.button===0&&A.classList.add("active")})),i.zx&&this._register((0,k.ko)(A,k.Bx.CONTEXT_MENU,E=>{E.button===0&&E.ctrlKey===!0&&this.onClick(E)})),this._register((0,k.ko)(A,k.Bx.CLICK,E=>{k.fs.stop(E,!0),this.options&&this.options.isMenu||this.onClick(E)})),this._register((0,k.ko)(A,k.Bx.DBLCLICK,E=>{k.fs.stop(E,!0)})),[k.Bx.MOUSE_UP,k.Bx.MOUSE_OUT].forEach(E=>{this._register((0,k.ko)(A,E,W=>{k.fs.stop(W),A.classList.remove("active")}))})}onClick(P,A=!1){var T;k.fs.stop(P,!0);const E=w.z(this._context)?!((T=this.options)===null||T===void 0)&&T.useEventAsContext?P:{preserveFocus:A}:this._context;this.actionRunner.run(this._action,E)}focus(){this.element&&(this.element.tabIndex=0,this.element.focus(),this.element.classList.add("focused"))}blur(){this.element&&(this.element.blur(),this.element.tabIndex=-1,this.element.classList.remove("focused"))}setFocusable(P){this.element&&(this.element.tabIndex=P?0:-1)}get trapsArrowNavigation(){return!1}updateEnabled(){}updateLabel(){}getClass(){return this.action.class}getTooltip(){return this.action.tooltip}updateTooltip(){var P,A,T;if(!this.element)return;const E=(P=this.getTooltip())!==null&&P!==void 0?P:"";if(this.updateAriaLabel(),!((A=this.options.hoverDelegate)===null||A===void 0)&&A.showNativeHover)this.element.title=E;else if(!this.customHover&&E!==""){const W=(T=this.options.hoverDelegate)!==null&&T!==void 0?T:(0,L.nZ)("element");this.customHover=this._store.add((0,g.f)(W,this.element,E))}else this.customHover&&this.customHover.update(E)}updateAriaLabel(){var P;if(this.element){const A=(P=this.getTooltip())!==null&&P!==void 0?P:"";this.element.setAttribute("aria-label",A)}}updateClass(){}updateChecked(){}dispose(){this.element&&(this.element.remove(),this.element=void 0),this._context=void 0,super.dispose()}}class U extends j{constructor(P,A,T){super(P,A,T),this.options=T,this.options.icon=T.icon!==void 0?T.icon:!1,this.options.label=T.label!==void 0?T.label:!0,this.cssClass=""}render(P){super.render(P),w.j(this.element);const A=document.createElement("a");if(A.classList.add("action-label"),A.setAttribute("role",this.getDefaultAriaRole()),this.label=A,this.element.appendChild(A),this.options.label&&this.options.keybinding){const T=document.createElement("span");T.classList.add("keybinding"),T.textContent=this.options.keybinding,this.element.appendChild(T)}this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()}getDefaultAriaRole(){return this._action.id===O.wv.ID?"presentation":this.options.isMenu?"menuitem":"button"}focus(){this.label&&(this.label.tabIndex=0,this.label.focus())}blur(){this.label&&(this.label.tabIndex=-1)}setFocusable(P){this.label&&(this.label.tabIndex=P?0:-1)}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this.action.label)}getTooltip(){let P=null;return this.action.tooltip?P=this.action.tooltip:!this.options.label&&this.action.label&&this.options.icon&&(P=this.action.label,this.options.keybinding&&(P=c.kg({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",P,this.options.keybinding))),P??void 0}updateClass(){var P;this.cssClass&&this.label&&this.label.classList.remove(...this.cssClass.split(" ")),this.options.icon?(this.cssClass=this.getClass(),this.label&&(this.label.classList.add("codicon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" "))),this.updateEnabled()):(P=this.label)===null||P===void 0||P.classList.remove("codicon")}updateEnabled(){var P,A;this.action.enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),this.label.classList.remove("disabled")),(P=this.element)===null||P===void 0||P.classList.remove("disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),this.label.classList.add("disabled")),(A=this.element)===null||A===void 0||A.classList.add("disabled"))}updateAriaLabel(){var P;if(this.label){const A=(P=this.getTooltip())!==null&&P!==void 0?P:"";this.label.setAttribute("aria-label",A)}}updateChecked(){this.label&&(this.action.checked!==void 0?(this.label.classList.toggle("checked",this.action.checked),this.label.setAttribute("aria-checked",this.action.checked?"true":"false"),this.label.setAttribute("role","checkbox")):(this.label.classList.remove("checked"),this.label.removeAttribute("aria-checked"),this.label.setAttribute("role",this.getDefaultAriaRole())))}}class K extends j{constructor(P,A,T,E,W,$,z){super(P,A),this.selectBox=new b(T,E,W,$,z),this.selectBox.setFocusable(!1),this._register(this.selectBox),this.registerListeners()}select(P){this.selectBox.select(P)}registerListeners(){this._register(this.selectBox.onDidSelect(P=>this.runAction(P.selected,P.index)))}runAction(P,A){this.actionRunner.run(this._action,this.getActionContext(P,A))}getActionContext(P,A){return P}setFocusable(P){this.selectBox.setFocusable(P)}focus(){var P;(P=this.selectBox)===null||P===void 0||P.focus()}blur(){var P;(P=this.selectBox)===null||P===void 0||P.blur()}render(P){this.selectBox.render(P)}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js":function(pt,Me,e){e.d(Me,{E:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionViewItems.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/types.js");class S extends x.jG{constructor(d,a={}){var s,n,i,c,m,u,C;super(),this._actionRunnerDisposables=this._register(new x.Cm),this.viewItemDisposables=this._register(new x.$w),this.triggerKeyDown=!1,this.focusable=!0,this._onDidBlur=this._register(new g.vl),this.onDidBlur=this._onDidBlur.event,this._onDidCancel=this._register(new g.vl({onWillAddFirstListener:()=>this.cancelHasListener=!0})),this.onDidCancel=this._onDidCancel.event,this.cancelHasListener=!1,this._onDidRun=this._register(new g.vl),this.onDidRun=this._onDidRun.event,this._onWillRun=this._register(new g.vl),this.onWillRun=this._onWillRun.event,this.options=a,this._context=(s=a.context)!==null&&s!==void 0?s:null,this._orientation=(n=this.options.orientation)!==null&&n!==void 0?n:0,this._triggerKeys={keyDown:(c=(i=this.options.triggerKeys)===null||i===void 0?void 0:i.keyDown)!==null&&c!==void 0?c:!1,keys:(u=(m=this.options.triggerKeys)===null||m===void 0?void 0:m.keys)!==null&&u!==void 0?u:[3,10]},this._hoverDelegate=(C=a.hoverDelegate)!==null&&C!==void 0?C:this._register((0,M.bW)()),this.options.actionRunner?this._actionRunner=this.options.actionRunner:(this._actionRunner=new L.LN,this._actionRunnerDisposables.add(this._actionRunner)),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(p=>this._onDidRun.fire(p))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(p=>this._onWillRun.fire(p))),this.viewItems=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar";let h,v;switch(this._orientation){case 0:h=[15],v=[17];break;case 1:h=[16],v=[18],this.domNode.className+=" vertical";break}this._register(r.ko(this.domNode,r.Bx.KEY_DOWN,p=>{const b=new F.Z(p);let O=!0;const w=typeof this.focusedItem=="number"?this.viewItems[this.focusedItem]:void 0;h&&(b.equals(h[0])||b.equals(h[1]))?O=this.focusPrevious():v&&(b.equals(v[0])||b.equals(v[1]))?O=this.focusNext():b.equals(9)&&this.cancelHasListener?this._onDidCancel.fire():b.equals(14)?O=this.focusFirst():b.equals(13)?O=this.focusLast():b.equals(2)&&w instanceof k.EH&&w.trapsArrowNavigation?O=this.focusNext():this.isTriggerKeyEvent(b)?this._triggerKeys.keyDown?this.doTrigger(b):this.triggerKeyDown=!0:O=!1,O&&(b.preventDefault(),b.stopPropagation())})),this._register(r.ko(this.domNode,r.Bx.KEY_UP,p=>{const b=new F.Z(p);this.isTriggerKeyEvent(b)?(!this._triggerKeys.keyDown&&this.triggerKeyDown&&(this.triggerKeyDown=!1,this.doTrigger(b)),b.preventDefault(),b.stopPropagation()):(b.equals(2)||b.equals(1026)||b.equals(16)||b.equals(18)||b.equals(15)||b.equals(17))&&this.updateFocusedItem()})),this.focusTracker=this._register(r.w5(this.domNode)),this._register(this.focusTracker.onDidBlur(()=>{(r.bq()===this.domNode||!r.QX(r.bq(),this.domNode))&&(this._onDidBlur.fire(),this.previouslyFocusedItem=this.focusedItem,this.focusedItem=void 0,this.triggerKeyDown=!1)})),this._register(this.focusTracker.onDidFocus(()=>this.updateFocusedItem())),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.options.highlightToggledItems&&this.actionsList.classList.add("highlight-toggled"),this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),d.appendChild(this.domNode)}refreshRole(){this.length()>=1?this.actionsList.setAttribute("role",this.options.ariaRole||"toolbar"):this.actionsList.setAttribute("role","presentation")}setFocusable(d){if(this.focusable=d,this.focusable){const a=this.viewItems.find(s=>s instanceof k.EH&&s.isEnabled());a instanceof k.EH&&a.setFocusable(!0)}else this.viewItems.forEach(a=>{a instanceof k.EH&&a.setFocusable(!1)})}isTriggerKeyEvent(d){let a=!1;return this._triggerKeys.keys.forEach(s=>{a=a||d.equals(s)}),a}updateFocusedItem(){var d,a;for(let s=0;sa.setActionContext(d))}get actionRunner(){return this._actionRunner}set actionRunner(d){this._actionRunner=d,this._actionRunnerDisposables.clear(),this._actionRunnerDisposables.add(this._actionRunner.onDidRun(a=>this._onDidRun.fire(a))),this._actionRunnerDisposables.add(this._actionRunner.onWillRun(a=>this._onWillRun.fire(a))),this.viewItems.forEach(a=>a.actionRunner=d)}getContainer(){return this.domNode}getAction(d){var a;if(typeof d=="number")return(a=this.viewItems[d])===null||a===void 0?void 0:a.action;if(d instanceof HTMLElement){for(;d.parentElement!==this.actionsList;){if(!d.parentElement)return;d=d.parentElement}for(let s=0;s{const c=document.createElement("li");c.className="action-item",c.setAttribute("role","presentation");let m;const u={hoverDelegate:this._hoverDelegate,...a};this.options.actionViewItemProvider&&(m=this.options.actionViewItemProvider(i,u)),m||(m=new k.Z4(this.context,i,u)),this.options.allowContextMenu||this.viewItemDisposables.set(m,r.ko(c,r.Bx.CONTEXT_MENU,C=>{r.fs.stop(C,!0)})),m.actionRunner=this._actionRunner,m.setActionContext(this.context),m.render(c),this.focusable&&m instanceof k.EH&&this.viewItems.length===0&&m.setFocusable(!0),n===null||n<0||n>=this.actionsList.children.length?(this.actionsList.appendChild(c),this.viewItems.push(m)):(this.actionsList.insertBefore(c,this.actionsList.children[n]),this.viewItems.splice(n,0,m),n++)}),typeof this.focusedItem=="number"&&this.focus(this.focusedItem),this.refreshRole()}clear(){this.isEmpty()||(this.viewItems=(0,x.AS)(this.viewItems),this.viewItemDisposables.clearAndDisposeAll(),r.w_(this.actionsList),this.refreshRole())}length(){return this.viewItems.length}isEmpty(){return this.viewItems.length===0}focus(d){let a=!1,s;if(d===void 0?a=!0:typeof d=="number"?s=d:typeof d=="boolean"&&(a=d),a&&typeof this.focusedItem>"u"){const n=this.viewItems.findIndex(i=>i.isEnabled());this.focusedItem=n===-1?void 0:n,this.updateFocus(void 0,void 0,!0)}else s!==void 0&&(this.focusedItem=s),this.updateFocus(void 0,void 0,!0)}focusFirst(){return this.focusedItem=this.length()-1,this.focusNext(!0)}focusLast(){return this.focusedItem=0,this.focusPrevious(!0)}focusNext(d){if(typeof this.focusedItem>"u")this.focusedItem=this.viewItems.length-1;else if(this.viewItems.length<=1)return!1;const a=this.focusedItem;let s;do{if(!d&&this.options.preventLoopNavigation&&this.focusedItem+1>=this.viewItems.length)return this.focusedItem=a,!1;this.focusedItem=(this.focusedItem+1)%this.viewItems.length,s=this.viewItems[this.focusedItem]}while(this.focusedItem!==a&&(this.options.focusOnlyEnabledItems&&!s.isEnabled()||s.action.id===L.wv.ID));return this.updateFocus(),!0}focusPrevious(d){if(typeof this.focusedItem>"u")this.focusedItem=0;else if(this.viewItems.length<=1)return!1;const a=this.focusedItem;let s;do{if(this.focusedItem=this.focusedItem-1,this.focusedItem<0){if(!d&&this.options.preventLoopNavigation)return this.focusedItem=a,!1;this.focusedItem=this.viewItems.length-1}s=this.viewItems[this.focusedItem]}while(this.focusedItem!==a&&(this.options.focusOnlyEnabledItems&&!s.isEnabled()||s.action.id===L.wv.ID));return this.updateFocus(!0),!0}updateFocus(d,a,s=!1){var n,i;typeof this.focusedItem>"u"&&this.actionsList.focus({preventScroll:a}),this.previouslyFocusedItem!==void 0&&this.previouslyFocusedItem!==this.focusedItem&&((n=this.viewItems[this.previouslyFocusedItem])===null||n===void 0||n.blur());const c=this.focusedItem!==void 0?this.viewItems[this.focusedItem]:void 0;if(c){let m=!0;I.Tn(c.focus)||(m=!1),this.options.focusOnlyEnabledItems&&I.Tn(c.isEnabled)&&!c.isEnabled()&&(m=!1),c.action.id===L.wv.ID&&(m=!1),m?(s||this.previouslyFocusedItem!==this.focusedItem)&&(c.focus(d),this.previouslyFocusedItem=this.focusedItem):(this.actionsList.focus({preventScroll:a}),this.previouslyFocusedItem=void 0),m&&((i=c.showHover)===null||i===void 0||i.call(c))}}doTrigger(d){if(typeof this.focusedItem>"u")return;const a=this.viewItems[this.focusedItem];if(a instanceof k.EH){const s=a._context===null||a._context===void 0?d:a._context;this.run(a._action,s)}}async run(d,a){await this._actionRunner.run(d,a)}dispose(){this._context=void 0,this.viewItems=(0,x.AS)(this.viewItems),this.getContainer().remove(),super.dispose()}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js":function(pt,Me,e){e.d(Me,{h5:function(){return f},vr:function(){return I},xE:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js");const F=2e4;let k,M,L,g,x;function I(a){k=document.createElement("div"),k.className="monaco-aria-container";const s=()=>{const i=document.createElement("div");return i.className="monaco-alert",i.setAttribute("role","alert"),i.setAttribute("aria-atomic","true"),k.appendChild(i),i};M=s(),L=s();const n=()=>{const i=document.createElement("div");return i.className="monaco-status",i.setAttribute("aria-live","polite"),i.setAttribute("aria-atomic","true"),k.appendChild(i),i};g=n(),x=n(),a.appendChild(k)}function S(a){k&&(M.textContent!==a?(r.w_(L),d(M,a)):(r.w_(M),d(L,a)))}function f(a){k&&(g.textContent!==a?(r.w_(x),d(g,a)):(r.w_(g),d(x,a)))}function d(a,s){r.w_(a),s.length>F&&(s=s.substr(0,F)),a.textContent=s,a.style.visibility="hidden",a.style.visibility="visible"}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/button/button.js":function(pt,Me,e){e.d(Me,{$:function(){return i}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/dompurify/dompurify.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/markdownRenderer.js"),L=e("./node_modules/monaco-editor/esm/vs/base/browser/touch.js"),g=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),x=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js"),I=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabels.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js");const n={buttonBackground:"#0E639C",buttonHoverBackground:"#006BB3",buttonSeparator:S.Q1.white.toString(),buttonForeground:S.Q1.white.toString(),buttonBorder:void 0,buttonSecondaryBackground:void 0,buttonSecondaryForeground:void 0,buttonSecondaryHoverBackground:void 0};class i extends a.jG{get onDidClick(){return this._onDidClick.event}constructor(m,u){super(),this._label="",this._onDidClick=this._register(new f.vl),this._onDidEscape=this._register(new f.vl),this.options=u,this._element=document.createElement("a"),this._element.classList.add("monaco-button"),this._element.tabIndex=0,this._element.setAttribute("role","button"),this._element.classList.toggle("secondary",!!u.secondary);const C=u.secondary?u.buttonSecondaryBackground:u.buttonBackground,h=u.secondary?u.buttonSecondaryForeground:u.buttonForeground;this._element.style.color=h||"",this._element.style.backgroundColor=C||"",u.supportShortLabel&&(this._labelShortElement=document.createElement("div"),this._labelShortElement.classList.add("monaco-button-label-short"),this._element.appendChild(this._labelShortElement),this._labelElement=document.createElement("div"),this._labelElement.classList.add("monaco-button-label"),this._element.appendChild(this._labelElement),this._element.classList.add("monaco-text-button-with-short-label")),typeof u.title=="string"&&this.setTitle(u.title),typeof u.ariaLabel=="string"&&this._element.setAttribute("aria-label",u.ariaLabel),m.appendChild(this._element),this._register(L.q.addTarget(this._element)),[r.Bx.CLICK,L.B.Tap].forEach(v=>{this._register((0,r.ko)(this._element,v,p=>{if(!this.enabled){r.fs.stop(p);return}this._onDidClick.fire(p)}))}),this._register((0,r.ko)(this._element,r.Bx.KEY_DOWN,v=>{const p=new k.Z(v);let b=!1;this.enabled&&(p.equals(3)||p.equals(10))?(this._onDidClick.fire(v),b=!0):p.equals(9)&&(this._onDidEscape.fire(v),this._element.blur(),b=!0),b&&r.fs.stop(p,!0)})),this._register((0,r.ko)(this._element,r.Bx.MOUSE_OVER,v=>{this._element.classList.contains("disabled")||this.updateBackground(!0)})),this._register((0,r.ko)(this._element,r.Bx.MOUSE_OUT,v=>{this.updateBackground(!1)})),this.focusTracker=this._register((0,r.w5)(this._element)),this._register(this.focusTracker.onDidFocus(()=>{this.enabled&&this.updateBackground(!0)})),this._register(this.focusTracker.onDidBlur(()=>{this.enabled&&this.updateBackground(!1)}))}dispose(){super.dispose(),this._element.remove()}getContentElements(m){const u=[];for(let C of(0,I.n)(m))if(typeof C=="string"){if(C=C.trim(),C==="")continue;const h=document.createElement("span");h.textContent=C,u.push(h)}else u.push(C);return u}updateBackground(m){let u;this.options.secondary?u=m?this.options.buttonSecondaryHoverBackground:this.options.buttonSecondaryBackground:u=m?this.options.buttonHoverBackground:this.options.buttonBackground,u&&(this._element.style.backgroundColor=u)}get element(){return this._element}set label(m){var u;if(this._label===m||(0,d.VS)(this._label)&&(0,d.VS)(m)&&(0,d.nK)(this._label,m))return;this._element.classList.add("monaco-text-button");const C=this.options.supportShortLabel?this._labelElement:this._element;if((0,d.VS)(m)){const v=(0,M.Gc)(m,{inline:!0});v.dispose();const p=(u=v.element.querySelector("p"))===null||u===void 0?void 0:u.innerHTML;if(p){const b=(0,F.aj)(p,{ADD_TAGS:["b","i","u","code","span"],ALLOWED_ATTR:["class"],RETURN_TRUSTED_TYPE:!0});C.innerHTML=b}else(0,r.Ln)(C)}else this.options.supportIcons?(0,r.Ln)(C,...this.getContentElements(m)):C.textContent=m;let h="";typeof this.options.title=="string"?h=this.options.title:this.options.title&&(h=(0,M.R9)(m)),this.setTitle(h),typeof this.options.ariaLabel=="string"?this._element.setAttribute("aria-label",this.options.ariaLabel):this.options.ariaLabel&&this._element.setAttribute("aria-label",h),this._label=m}get label(){return this._label}set icon(m){this._element.classList.add(...s.L.asClassNameArray(m))}set enabled(m){m?(this._element.classList.remove("disabled"),this._element.setAttribute("aria-disabled",String(!1)),this._element.tabIndex=0):(this._element.classList.add("disabled"),this._element.setAttribute("aria-disabled",String(!0)))}get enabled(){return!this._element.classList.contains("disabled")}setTitle(m){var u;!this._hover&&m!==""?this._hover=this._register((0,x.f)((u=this.options.hoverDelegate)!==null&&u!==void 0?u:(0,g.nZ)("mouse"),this._element,m)):this._hover&&this._hover.update(m)}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/countBadge/countBadge.js":function(pt,Me,e){e.d(Me,{x:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");class k{constructor(L,g,x){this.options=g,this.styles=x,this.count=0,this.element=(0,r.BC)(L,(0,r.$)(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}setCount(L){this.count=L,this.render()}setTitleFormat(L){this.titleFormat=L,this.render()}render(){var L,g;this.element.textContent=(0,F.GP)(this.countFormat,this.count),this.element.title=(0,F.GP)(this.titleFormat,this.count),this.element.style.backgroundColor=(L=this.styles.badgeBackground)!==null&&L!==void 0?L:"",this.element.style.color=(g=this.styles.badgeForeground)!==null&&g!==void 0?g:"",this.styles.badgeBorder&&(this.element.style.border=`1px solid ${this.styles.badgeBorder}`)}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js":function(pt,Me,e){e.d(Me,{d:function(){return d}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionViewItems.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/touch.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/event.js");class x extends L.LN{constructor(s,n){super(),this._onDidChangeVisibility=this._register(new g.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this._element=(0,r.BC)(s,(0,r.$)(".monaco-dropdown")),this._label=(0,r.BC)(this._element,(0,r.$)(".dropdown-label"));let i=n.labelRenderer;i||(i=m=>(m.textContent=n.label||"",null));for(const m of[r.Bx.CLICK,r.Bx.MOUSE_DOWN,M.B.Tap])this._register((0,r.ko)(this.element,m,u=>r.fs.stop(u,!0)));for(const m of[r.Bx.MOUSE_DOWN,M.B.Tap])this._register((0,r.ko)(this._label,m,u=>{(0,r.Er)(u)&&(u.detail>1||u.button!==0)||(this.visible?this.hide():this.show())}));this._register((0,r.ko)(this._label,r.Bx.KEY_UP,m=>{const u=new k.Z(m);(u.equals(3)||u.equals(10))&&(r.fs.stop(m,!0),this.visible?this.hide():this.show())}));const c=i(this._label);c&&this._register(c),this._register(M.q.addTarget(this._label))}get element(){return this._element}show(){this.visible||(this.visible=!0,this._onDidChangeVisibility.fire(!0))}hide(){this.visible&&(this.visible=!1,this._onDidChangeVisibility.fire(!1))}dispose(){super.dispose(),this.hide(),this.boxContainer&&(this.boxContainer.remove(),this.boxContainer=void 0),this.contents&&(this.contents.remove(),this.contents=void 0),this._label&&(this._label.remove(),this._label=void 0)}}class I extends x{constructor(s,n){super(s,n),this._options=n,this._actions=[],this.actions=n.actions||[]}set menuOptions(s){this._menuOptions=s}get menuOptions(){return this._menuOptions}get actions(){return this._options.actionProvider?this._options.actionProvider.getActions():this._actions}set actions(s){this._actions=s}show(){super.show(),this.element.classList.add("active"),this._options.contextMenuProvider.showContextMenu({getAnchor:()=>this.element,getActions:()=>this.actions,getActionsContext:()=>this.menuOptions?this.menuOptions.context:null,getActionViewItem:(s,n)=>this.menuOptions&&this.menuOptions.actionViewItemProvider?this.menuOptions.actionViewItemProvider(s,n):void 0,getKeyBinding:s=>this.menuOptions&&this.menuOptions.getKeyBinding?this.menuOptions.getKeyBinding(s):void 0,getMenuClassName:()=>this._options.menuClassName||"",onHide:()=>this.onHide(),actionRunner:this.menuOptions?this.menuOptions.actionRunner:void 0,anchorAlignment:this.menuOptions?this.menuOptions.anchorAlignment:0,domForShadowRoot:this._options.menuAsChild?this.element:void 0,skipTelemetry:this._options.skipTelemetry})}hide(){super.hide()}onHide(){this.hide(),this.element.classList.remove("active")}}var S=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js"),f=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js");class d extends F.EH{constructor(s,n,i,c=Object.create(null)){super(null,s,c),this.actionItem=null,this._onDidChangeVisibility=this._register(new g.vl),this.onDidChangeVisibility=this._onDidChangeVisibility.event,this.menuActionsOrProvider=n,this.contextMenuProvider=i,this.options=c,this.options.actionRunner&&(this.actionRunner=this.options.actionRunner)}render(s){this.actionItem=s;const n=m=>{var u;this.element=(0,r.BC)(m,(0,r.$)("a.action-label"));let C=[];return typeof this.options.classNames=="string"?C=this.options.classNames.split(/\s+/g).filter(h=>!!h):this.options.classNames&&(C=this.options.classNames),C.find(h=>h==="icon")||C.push("codicon"),this.element.classList.add(...C),this.element.setAttribute("role","button"),this.element.setAttribute("aria-haspopup","true"),this.element.setAttribute("aria-expanded","false"),this._action.label&&this._register((0,S.f)((u=this.options.hoverDelegate)!==null&&u!==void 0?u:(0,f.nZ)("mouse"),this.element,this._action.label)),this.element.ariaLabel=this._action.label||"",null},i=Array.isArray(this.menuActionsOrProvider),c={contextMenuProvider:this.contextMenuProvider,labelRenderer:n,menuAsChild:this.options.menuAsChild,actions:i?this.menuActionsOrProvider:void 0,actionProvider:i?void 0:this.menuActionsOrProvider,skipTelemetry:this.options.skipTelemetry};if(this.dropdownMenu=this._register(new I(s,c)),this._register(this.dropdownMenu.onDidChangeVisibility(m=>{var u;(u=this.element)===null||u===void 0||u.setAttribute("aria-expanded",`${m}`),this._onDidChangeVisibility.fire(m)})),this.dropdownMenu.menuOptions={actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,getKeyBinding:this.options.keybindingProvider,context:this._context},this.options.anchorAlignmentProvider){const m=this;this.dropdownMenu.menuOptions={...this.dropdownMenu.menuOptions,get anchorAlignment(){return m.options.anchorAlignmentProvider()}}}this.updateTooltip(),this.updateEnabled()}getTooltip(){let s=null;return this.action.tooltip?s=this.action.tooltip:this.action.label&&(s=this.action.label),s??void 0}setActionContext(s){super.setActionContext(s),this.dropdownMenu&&(this.dropdownMenu.menuOptions?this.dropdownMenu.menuOptions.context=s:this.dropdownMenu.menuOptions={context:s})}show(){var s;(s=this.dropdownMenu)===null||s===void 0||s.show()}updateEnabled(){var s,n;const i=!this.action.enabled;(s=this.actionItem)===null||s===void 0||s.classList.toggle("disabled",i),(n=this.element)===null||n===void 0||n.classList.toggle("disabled",i)}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInput.js":function(pt,Me,e){e.d(Me,{c:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInputToggles.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/inputbox/inputBox.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/widget.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),g=e("./node_modules/monaco-editor/esm/vs/nls.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),I=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js");const S=g.kg("defaultLabel","input");class f extends M.x{constructor(a,s,n){super(),this.fixFocusOnOptionClickEnabled=!0,this.imeSessionInProgress=!1,this.additionalTogglesDisposables=this._register(new x.HE),this.additionalToggles=[],this._onDidOptionChange=this._register(new L.vl),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new L.vl),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new L.vl),this.onMouseDown=this._onMouseDown.event,this._onInput=this._register(new L.vl),this._onKeyUp=this._register(new L.vl),this._onCaseSensitiveKeyDown=this._register(new L.vl),this.onCaseSensitiveKeyDown=this._onCaseSensitiveKeyDown.event,this._onRegexKeyDown=this._register(new L.vl),this.onRegexKeyDown=this._onRegexKeyDown.event,this._lastHighlightFindOptions=0,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||S,this.showCommonFindToggles=!!n.showCommonFindToggles;const i=n.appendCaseSensitiveLabel||"",c=n.appendWholeWordsLabel||"",m=n.appendRegexLabel||"",u=n.history||[],C=!!n.flexibleHeight,h=!!n.flexibleWidth,v=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new k.mJ(this.domNode,s,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation},history:u,showHistoryHint:n.showHistoryHint,flexibleHeight:C,flexibleWidth:h,flexibleMaxHeight:v,inputBoxStyles:n.inputBoxStyles}));const p=this._register((0,I.bW)());if(this.showCommonFindToggles){this.regex=this._register(new F.Ix({appendTitle:m,isChecked:!1,hoverDelegate:p,...n.toggleStyles})),this._register(this.regex.onChange(O=>{this._onDidOptionChange.fire(O),!O&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.regex.onKeyDown(O=>{this._onRegexKeyDown.fire(O)})),this.wholeWords=this._register(new F.nV({appendTitle:c,isChecked:!1,hoverDelegate:p,...n.toggleStyles})),this._register(this.wholeWords.onChange(O=>{this._onDidOptionChange.fire(O),!O&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this.caseSensitive=this._register(new F.bc({appendTitle:i,isChecked:!1,hoverDelegate:p,...n.toggleStyles})),this._register(this.caseSensitive.onChange(O=>{this._onDidOptionChange.fire(O),!O&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.caseSensitive.onKeyDown(O=>{this._onCaseSensitiveKeyDown.fire(O)}));const b=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,O=>{if(O.equals(15)||O.equals(17)||O.equals(9)){const w=b.indexOf(this.domNode.ownerDocument.activeElement);if(w>=0){let j=-1;O.equals(17)?j=(w+1)%b.length:O.equals(15)&&(w===0?j=b.length-1:j=w-1),O.equals(9)?(b[w].blur(),this.inputBox.focus()):j>=0&&b[j].focus(),r.fs.stop(O,!0)}}})}this.controls=document.createElement("div"),this.controls.className="controls",this.controls.style.display=this.showCommonFindToggles?"":"none",this.caseSensitive&&this.controls.append(this.caseSensitive.domNode),this.wholeWords&&this.controls.appendChild(this.wholeWords.domNode),this.regex&&this.controls.appendChild(this.regex.domNode),this.setAdditionalToggles(n?.additionalToggles),this.controls&&this.domNode.appendChild(this.controls),a?.appendChild(this.domNode),this._register(r.ko(this.inputBox.inputElement,"compositionstart",b=>{this.imeSessionInProgress=!0})),this._register(r.ko(this.inputBox.inputElement,"compositionend",b=>{this.imeSessionInProgress=!1,this._onInput.fire()})),this.onkeydown(this.inputBox.inputElement,b=>this._onKeyDown.fire(b)),this.onkeyup(this.inputBox.inputElement,b=>this._onKeyUp.fire(b)),this.oninput(this.inputBox.inputElement,b=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,b=>this._onMouseDown.fire(b))}get onDidChange(){return this.inputBox.onDidChange}layout(a){this.inputBox.layout(),this.updateInputBoxPadding(a.collapsedFindWidget)}enable(){var a,s,n;this.domNode.classList.remove("disabled"),this.inputBox.enable(),(a=this.regex)===null||a===void 0||a.enable(),(s=this.wholeWords)===null||s===void 0||s.enable(),(n=this.caseSensitive)===null||n===void 0||n.enable();for(const i of this.additionalToggles)i.enable()}disable(){var a,s,n;this.domNode.classList.add("disabled"),this.inputBox.disable(),(a=this.regex)===null||a===void 0||a.disable(),(s=this.wholeWords)===null||s===void 0||s.disable(),(n=this.caseSensitive)===null||n===void 0||n.disable();for(const i of this.additionalToggles)i.disable()}setFocusInputOnOptionClick(a){this.fixFocusOnOptionClickEnabled=a}setEnabled(a){a?this.enable():this.disable()}setAdditionalToggles(a){for(const s of this.additionalToggles)s.domNode.remove();this.additionalToggles=[],this.additionalTogglesDisposables.value=new x.Cm;for(const s of a??[])this.additionalTogglesDisposables.value.add(s),this.controls.appendChild(s.domNode),this.additionalTogglesDisposables.value.add(s.onChange(n=>{this._onDidOptionChange.fire(n),!n&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus()})),this.additionalToggles.push(s);this.additionalToggles.length>0&&(this.controls.style.display=""),this.updateInputBoxPadding()}updateInputBoxPadding(a=!1){var s,n,i,c,m,u;a?this.inputBox.paddingRight=0:this.inputBox.paddingRight=((n=(s=this.caseSensitive)===null||s===void 0?void 0:s.width())!==null&&n!==void 0?n:0)+((c=(i=this.wholeWords)===null||i===void 0?void 0:i.width())!==null&&c!==void 0?c:0)+((u=(m=this.regex)===null||m===void 0?void 0:m.width())!==null&&u!==void 0?u:0)+this.additionalToggles.reduce((C,h)=>C+h.width(),0)}getValue(){return this.inputBox.value}setValue(a){this.inputBox.value!==a&&(this.inputBox.value=a)}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getCaseSensitive(){var a,s;return(s=(a=this.caseSensitive)===null||a===void 0?void 0:a.checked)!==null&&s!==void 0?s:!1}setCaseSensitive(a){this.caseSensitive&&(this.caseSensitive.checked=a)}getWholeWords(){var a,s;return(s=(a=this.wholeWords)===null||a===void 0?void 0:a.checked)!==null&&s!==void 0?s:!1}setWholeWords(a){this.wholeWords&&(this.wholeWords.checked=a)}getRegex(){var a,s;return(s=(a=this.regex)===null||a===void 0?void 0:a.checked)!==null&&s!==void 0?s:!1}setRegex(a){this.regex&&(this.regex.checked=a,this.validate())}focusOnCaseSensitive(){var a;(a=this.caseSensitive)===null||a===void 0||a.focus()}highlightFindOptions(){this.domNode.classList.remove("highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,this.domNode.classList.add("highlight-"+this._lastHighlightFindOptions)}validate(){this.inputBox.validate()}showMessage(a){this.inputBox.showMessage(a)}clearMessage(){this.inputBox.hideMessage()}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInputToggles.js":function(pt,Me,e){e.d(Me,{Ix:function(){return f},bc:function(){return I},nV:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/toggle/toggle.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),M=e("./node_modules/monaco-editor/esm/vs/nls.js");const L=M.kg("caseDescription","Match Case"),g=M.kg("wordsDescription","Match Whole Word"),x=M.kg("regexDescription","Use Regular Expression");class I extends F.l{constructor(a){var s;super({icon:k.W.caseSensitive,title:L+a.appendTitle,isChecked:a.isChecked,hoverDelegate:(s=a.hoverDelegate)!==null&&s!==void 0?s:(0,r.nZ)("element"),inputActiveOptionBorder:a.inputActiveOptionBorder,inputActiveOptionForeground:a.inputActiveOptionForeground,inputActiveOptionBackground:a.inputActiveOptionBackground})}}class S extends F.l{constructor(a){var s;super({icon:k.W.wholeWord,title:g+a.appendTitle,isChecked:a.isChecked,hoverDelegate:(s=a.hoverDelegate)!==null&&s!==void 0?s:(0,r.nZ)("element"),inputActiveOptionBorder:a.inputActiveOptionBorder,inputActiveOptionForeground:a.inputActiveOptionForeground,inputActiveOptionBackground:a.inputActiveOptionBackground})}}class f extends F.l{constructor(a){var s;super({icon:k.W.regex,title:x+a.appendTitle,isChecked:a.isChecked,hoverDelegate:(s=a.hoverDelegate)!==null&&s!==void 0?s:(0,r.nZ)("element"),inputActiveOptionBorder:a.inputActiveOptionBorder,inputActiveOptionForeground:a.inputActiveOptionForeground,inputActiveOptionBackground:a.inputActiveOptionBackground})}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/highlightedlabel/highlightedLabel.js":function(pt,Me,e){e.d(Me,{_:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabels.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js");class x extends L.jG{constructor(S,f){var d;super(),this.options=f,this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=(d=f?.supportIcons)!==null&&d!==void 0?d:!1,this.domNode=r.BC(S,r.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(S,f=[],d="",a){S||(S=""),a&&(S=x.escapeNewLines(S,f)),!(this.didEverRender&&this.text===S&&this.title===d&&g.aI(this.highlights,f))&&(this.text=S,this.title=d,this.highlights=f,this.render())}render(){var S,f,d,a;const s=[];let n=0;for(const i of this.highlights){if(i.end===i.start)continue;if(n{a=s===`\r `?-1:0,n+=d;for(const i of f)i.end<=n||(i.start>=n&&(i.start+=a),i.end>=n&&(i.end+=a));return d+=a,"\u23CE"})}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js":function(pt,Me,e){e.d(Me,{MW:function(){return g},bW:function(){return I},nZ:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/lazy.js");let k=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const M=new r.d(()=>k("mouse",!1)),L=new r.d(()=>k("element",!1));function g(S){k=S}function x(S){return S==="element"?L.value:M.value}function I(){return k("element",!0)}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverWidget.js":function(pt,Me,e){e.d(Me,{N4:function(){return x},jQ:function(){return I},vr:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/nls.js");const g=r.$;class x extends M.jG{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new k.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class I extends M.jG{static render(d,a,s){return new I(d,a,s)}constructor(d,a,s){super(),this.actionContainer=r.BC(d,g("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=r.BC(this.actionContainer,g("a.action")),this.action.setAttribute("role","button"),a.iconClass&&r.BC(this.action,g(`span.icon.${a.iconClass}`));const n=r.BC(this.action,g("span"));n.textContent=s?`${a.label} (${s})`:a.label,this._register(r.ko(this.actionContainer,r.Bx.CLICK,i=>{i.stopPropagation(),i.preventDefault(),a.run(this.actionContainer)})),this._register(r.ko(this.actionContainer,r.Bx.KEY_DOWN,i=>{const c=new F.Z(i);(c.equals(3)||c.equals(10))&&(i.stopPropagation(),i.preventDefault(),a.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(d){d?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function S(f,d){return f&&d?(0,L.kg)("acessibleViewHint","Inspect this in the accessible view with {0}.",d):f?(0,L.kg)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js":function(pt,Me,e){e.d(Me,{$:function(){return S},f:function(){return a}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/iconLabels.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),I=e("./node_modules/monaco-editor/esm/vs/nls.js");function S(s,n){(0,x.Kg)(n)?s.title=(0,L.pS)(n):n?.markdownNotSupportedFallback?s.title=n.markdownNotSupportedFallback:s.removeAttribute("title")}class f{constructor(n,i,c){this.hoverDelegate=n,this.target=i,this.fadeInAnimation=c}async update(n,i,c){var m;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let u;if(n===void 0||(0,x.Kg)(n)||n instanceof HTMLElement)u=n;else if(!(0,x.Tn)(n.markdown))u=(m=n.markdown)!==null&&m!==void 0?m:n.markdownNotSupportedFallback;else{this._hoverWidget||this.show((0,I.kg)("iconLabel.loading","Loading..."),i),this._cancellationTokenSource=new k.Q;const C=this._cancellationTokenSource.token;if(u=await n.markdown(C),u===void 0&&(u=n.markdownNotSupportedFallback),this.isDisposed||C.isCancellationRequested)return}this.show(u,i,c)}show(n,i,c){const m=this._hoverWidget;if(this.hasContent(n)){const u={content:n,target:this.target,appearance:{showPointer:this.hoverDelegate.placement==="element",skipFadeInAnimation:!this.fadeInAnimation||!!m},position:{hoverPosition:2},...c};this._hoverWidget=this.hoverDelegate.showHover(u,i)}m?.dispose()}hasContent(n){return n?(0,M.VS)(n)?!!n.value:!0:!1}get isDisposed(){var n;return(n=this._hoverWidget)===null||n===void 0?void 0:n.isDisposed}dispose(){var n,i;(n=this._hoverWidget)===null||n===void 0||n.dispose(),(i=this._cancellationTokenSource)===null||i===void 0||i.dispose(!0),this._cancellationTokenSource=void 0}}function d(s,n){for(n=n??r.zk(s).document.body;!s.hasAttribute("custom-hover")&&s!==n;)s=s.parentElement;return s}function a(s,n,i,c){n.setAttribute("custom-hover","true"),n.title!==""&&(console.warn("HTML element already has a title attribute, which will conflict with the custom hover. Please remove the title attribute."),console.trace("Stack trace:",n.title),n.title="");let m,u;const C=(A,T)=>{var E;const W=u!==void 0;A&&(u?.dispose(),u=void 0),T&&(m?.dispose(),m=void 0),W&&((E=s.onDidHideHover)===null||E===void 0||E.call(s),u=void 0)},h=(A,T,E)=>new F.pc(async()=>{(!u||u.isDisposed)&&(u=new f(s,E||n,A>0),await u.update(typeof i=="function"?i():i,T,c))},A);let v=!1;const p=r.ko(n,r.Bx.MOUSE_DOWN,()=>{v=!0,C(!0,!0)},!0),b=r.ko(n,r.Bx.MOUSE_UP,()=>{v=!1},!0),O=r.ko(n,r.Bx.MOUSE_LEAVE,A=>{v=!1,C(!1,A.fromElement===n)},!0),w=A=>{if(m)return;const T=new g.Cm,E={targetElements:[n],dispose:()=>{}};if(s.placement===void 0||s.placement==="mouse"){const W=$=>{E.x=$.x+10,$.target instanceof HTMLElement&&d($.target,n)!==n&&C(!0,!0)};T.add(r.ko(n,r.Bx.MOUSE_MOVE,W,!0))}m=T,!(A.target instanceof HTMLElement&&d(A.target,n)!==n)&&T.add(h(s.delay,!1,E))},j=r.ko(n,r.Bx.MOUSE_OVER,w,!0),U=()=>{if(v||m)return;const A={targetElements:[n],dispose:()=>{}},T=new g.Cm,E=()=>C(!0,!0);T.add(r.ko(n,r.Bx.BLUR,E,!0)),T.add(h(s.delay,!1,A)),m=T};let K;const G=n.tagName.toLowerCase();return G!=="input"&&G!=="textarea"&&(K=r.ko(n,r.Bx.FOCUS,U,!0)),{show:A=>{C(!1,!0),h(0,A)},hide:()=>{C(!0,!0)},update:async(A,T)=>{i=A,await u?.update(i,void 0,T)},dispose:()=>{j.dispose(),O.dispose(),p.dispose(),b.dispose(),K?.dispose(),C(!0,!0)}}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabel.js":function(pt,Me,e){e.d(Me,{s:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/highlightedlabel/highlightedLabel.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/range.js"),x=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js");class I{constructor(n){this._element=n}get element(){return this._element}set textContent(n){this.disposed||n===this._textContent||(this._textContent=n,this._element.textContent=n)}set className(n){this.disposed||n===this._className||(this._className=n,this._element.className=n)}set empty(n){this.disposed||n===this._empty||(this._empty=n,this._element.style.marginLeft=n?"0":"")}dispose(){this.disposed=!0}}class S extends M.jG{constructor(n,i){var c;super(),this.customHovers=new Map,this.creationOptions=i,this.domNode=this._register(new I(r.BC(n,r.$(".monaco-icon-label")))),this.labelContainer=r.BC(this.domNode.element,r.$(".monaco-icon-label-container")),this.nameContainer=r.BC(this.labelContainer,r.$("span.monaco-icon-name-container")),i?.supportHighlights||i?.supportIcons?this.nameNode=this._register(new a(this.nameContainer,!!i.supportIcons)):this.nameNode=new f(this.nameContainer),this.hoverDelegate=(c=i?.hoverDelegate)!==null&&c!==void 0?c:(0,x.nZ)("mouse")}get element(){return this.domNode.element}setLabel(n,i,c){var m;const u=["monaco-icon-label"],C=["monaco-icon-label-container"];let h="";if(c&&(c.extraClasses&&u.push(...c.extraClasses),c.italic&&u.push("italic"),c.strikethrough&&u.push("strikethrough"),c.disabledCommand&&C.push("disabled"),c.title&&(typeof c.title=="string"?h+=c.title:h+=n)),this.domNode.className=u.join(" "),this.domNode.element.setAttribute("aria-label",h),this.labelContainer.className=C.join(" "),this.setupHover(c?.descriptionTitle?this.labelContainer:this.element,c?.title),this.nameNode.setLabel(n,c),i||this.descriptionNode){const v=this.getOrCreateDescriptionNode();v instanceof F._?(v.set(i||"",c?c.descriptionMatches:void 0,void 0,c?.labelEscapeNewLines),this.setupHover(v.element,c?.descriptionTitle)):(v.textContent=i&&c?.labelEscapeNewLines?F._.escapeNewLines(i,[]):i||"",this.setupHover(v.element,c?.descriptionTitle||""),v.empty=!i)}if(c?.suffix||this.suffixNode){const v=this.getOrCreateSuffixNode();v.textContent=(m=c?.suffix)!==null&&m!==void 0?m:""}}setupHover(n,i){const c=this.customHovers.get(n);if(c&&(c.dispose(),this.customHovers.delete(n)),!i){n.removeAttribute("title");return}if(this.hoverDelegate.showNativeHover)(0,k.$)(n,i);else{const m=(0,k.f)(this.hoverDelegate,n,i);m&&this.customHovers.set(n,m)}}dispose(){super.dispose();for(const n of this.customHovers.values())n.dispose();this.customHovers.clear()}getOrCreateSuffixNode(){if(!this.suffixNode){const n=this._register(new I(r.Pl(this.nameContainer,r.$("span.monaco-icon-suffix-container"))));this.suffixNode=this._register(new I(r.BC(n.element,r.$("span.label-suffix"))))}return this.suffixNode}getOrCreateDescriptionNode(){var n;if(!this.descriptionNode){const i=this._register(new I(r.BC(this.labelContainer,r.$("span.monaco-icon-description-container"))));!((n=this.creationOptions)===null||n===void 0)&&n.supportDescriptionHighlights?this.descriptionNode=this._register(new F._(r.BC(i.element,r.$("span.label-description")),{supportIcons:!!this.creationOptions.supportIcons})):this.descriptionNode=this._register(new I(r.BC(i.element,r.$("span.label-description"))))}return this.descriptionNode}}class f{constructor(n){this.container=n,this.label=void 0,this.singleLabel=void 0}setLabel(n,i){if(!(this.label===n&&(0,L.aI)(this.options,i)))if(this.label=n,this.options=i,typeof n=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=r.BC(this.container,r.$("a.label-name",{id:i?.domId}))),this.singleLabel.textContent=n;else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;for(let c=0;c{const u={start:c,end:c+m.length},C=i.map(h=>g.Q.intersect(u,h)).filter(h=>!g.Q.isEmpty(h)).map(({start:h,end:v})=>({start:h-c,end:v-c}));return c=u.end+n.length,C})}class a extends M.jG{constructor(n,i){super(),this.container=n,this.supportIcons=i,this.label=void 0,this.singleLabel=void 0}setLabel(n,i){if(!(this.label===n&&(0,L.aI)(this.options,i)))if(this.label=n,this.options=i,typeof n=="string")this.singleLabel||(this.container.innerText="",this.container.classList.remove("multiple"),this.singleLabel=this._register(new F._(r.BC(this.container,r.$("a.label-name",{id:i?.domId})),{supportIcons:this.supportIcons}))),this.singleLabel.set(n,i?.matches,void 0,i?.labelEscapeNewLines);else{this.container.innerText="",this.container.classList.add("multiple"),this.singleLabel=void 0;const c=i?.separator||"/",m=d(n,c,i?.matches);for(let u=0;u=this._elements.length-1}isNowhere(){return this._navigator.current()===null}has(h){return this._history.has(h)}_onChange(){this._reduceToLimit();const h=this._elements;this._navigator=new d(h,0,h.length,h.length)}_reduceToLimit(){const h=this._elements;h.length>this._limit&&this._initialize(h.slice(h.length-this._limit))}_currentPosition(){const h=this._navigator.current();return h?this._elements.indexOf(h):-1}_initialize(h){this._history=new Set;for(const v of h)this._history.add(v)}get _elements(){const h=[];return this._history.forEach(v=>h.push(v)),h}}var s=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),n=e("./node_modules/monaco-editor/esm/vs/nls.js");const i=r.$,c={inputBackground:"#3C3C3C",inputForeground:"#CCCCCC",inputValidationInfoBorder:"#55AAFF",inputValidationInfoBackground:"#063B49",inputValidationWarningBorder:"#B89500",inputValidationWarningBackground:"#352A05",inputValidationErrorBorder:"#BE1100",inputValidationErrorBackground:"#5A1D1D",inputBorder:void 0,inputValidationErrorForeground:void 0,inputValidationInfoForeground:void 0,inputValidationWarningForeground:void 0};class m extends S.x{constructor(h,v,p){var b;super(),this.state="idle",this.maxHeight=Number.POSITIVE_INFINITY,this._onDidChange=this._register(new f.vl),this.onDidChange=this._onDidChange.event,this._onDidHeightChange=this._register(new f.vl),this.onDidHeightChange=this._onDidHeightChange.event,this.contextViewProvider=v,this.options=p,this.message=null,this.placeholder=this.options.placeholder||"",this.tooltip=(b=this.options.tooltip)!==null&&b!==void 0?b:this.placeholder||"",this.ariaLabel=this.options.ariaLabel||"",this.options.validationOptions&&(this.validation=this.options.validationOptions.validation),this.element=r.BC(h,i(".monaco-inputbox.idle"));const O=this.options.flexibleHeight?"textarea":"input",w=r.BC(this.element,i(".ibwrapper"));if(this.input=r.BC(w,i(O+".input.empty")),this.input.setAttribute("autocorrect","off"),this.input.setAttribute("autocapitalize","off"),this.input.setAttribute("spellcheck","false"),this.onfocus(this.input,()=>this.element.classList.add("synthetic-focus")),this.onblur(this.input,()=>this.element.classList.remove("synthetic-focus")),this.options.flexibleHeight){this.maxHeight=typeof this.options.flexibleMaxHeight=="number"?this.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,this.mirror=r.BC(w,i("div.mirror")),this.mirror.innerText="\xA0",this.scrollableElement=new I.Se(this.element,{vertical:1}),this.options.flexibleWidth&&(this.input.setAttribute("wrap","off"),this.mirror.style.whiteSpace="pre",this.mirror.style.wordWrap="initial"),r.BC(h,this.scrollableElement.getDomNode()),this._register(this.scrollableElement),this._register(this.scrollableElement.onScroll(K=>this.input.scrollTop=K.scrollTop));const j=this._register(new F.f(h.ownerDocument,"selectionchange")),U=f.Jh.filter(j.event,()=>{const K=h.ownerDocument.getSelection();return K?.anchorNode===w});this._register(U(this.updateScrollDimensions,this)),this._register(this.onDidHeightChange(this.updateScrollDimensions,this))}else this.input.type=this.options.type||"text",this.input.setAttribute("wrap","off");this.ariaLabel&&this.input.setAttribute("aria-label",this.ariaLabel),this.placeholder&&!this.options.showPlaceholderOnFocus&&this.setPlaceHolder(this.placeholder),this.tooltip&&this.setTooltip(this.tooltip),this.oninput(this.input,()=>this.onValueChange()),this.onblur(this.input,()=>this.onBlur()),this.onfocus(this.input,()=>this.onFocus()),this._register(this.ignoreGesture(this.input)),setTimeout(()=>this.updateMirror(),0),this.options.actions&&(this.actionbar=this._register(new M.E(this.element)),this.actionbar.push(this.options.actions,{icon:!0,label:!1})),this.applyStyles()}onBlur(){this._hideMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder","")}onFocus(){this._showMessage(),this.options.showPlaceholderOnFocus&&this.input.setAttribute("placeholder",this.placeholder||"")}setPlaceHolder(h){this.placeholder=h,this.input.setAttribute("placeholder",h)}setTooltip(h){this.tooltip=h,this.hover?this.hover.update(h):this.hover=this._register((0,x.f)((0,g.nZ)("mouse"),this.input,h))}get inputElement(){return this.input}get value(){return this.input.value}set value(h){this.input.value!==h&&(this.input.value=h,this.onValueChange())}get height(){return typeof this.cachedHeight=="number"?this.cachedHeight:r.OK(this.element)}focus(){this.input.focus()}blur(){this.input.blur()}hasFocus(){return r.X7(this.input)}select(h=null){this.input.select(),h&&(this.input.setSelectionRange(h.start,h.end),h.end===this.input.value.length&&(this.input.scrollLeft=this.input.scrollWidth))}isSelectionAtEnd(){return this.input.selectionEnd===this.input.value.length&&this.input.selectionStart===this.input.selectionEnd}getSelection(){var h;const v=this.input.selectionStart;if(v===null)return null;const p=(h=this.input.selectionEnd)!==null&&h!==void 0?h:v;return{start:v,end:p}}enable(){this.input.removeAttribute("disabled")}disable(){this.blur(),this.input.disabled=!0,this._hideMessage()}set paddingRight(h){this.input.style.width=`calc(100% - ${h}px)`,this.mirror&&(this.mirror.style.paddingRight=h+"px")}updateScrollDimensions(){if(typeof this.cachedContentHeight!="number"||typeof this.cachedHeight!="number"||!this.scrollableElement)return;const h=this.cachedContentHeight,v=this.cachedHeight,p=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:h,height:v}),this.scrollableElement.setScrollPosition({scrollTop:p})}showMessage(h,v){if(this.state==="open"&&(0,s.aI)(this.message,h))return;this.message=h,this.element.classList.remove("idle"),this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add(this.classForType(h.type));const p=this.stylesForType(this.message.type);this.element.style.border=`1px solid ${r.gI(p.border,"transparent")}`,this.message.content&&(this.hasFocus()||v)&&this._showMessage()}hideMessage(){this.message=null,this.element.classList.remove("info"),this.element.classList.remove("warning"),this.element.classList.remove("error"),this.element.classList.add("idle"),this._hideMessage(),this.applyStyles()}validate(){let h=null;return this.validation&&(h=this.validation(this.value),h?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(h)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),h?.type}stylesForType(h){const v=this.options.inputBoxStyles;switch(h){case 1:return{border:v.inputValidationInfoBorder,background:v.inputValidationInfoBackground,foreground:v.inputValidationInfoForeground};case 2:return{border:v.inputValidationWarningBorder,background:v.inputValidationWarningBackground,foreground:v.inputValidationWarningForeground};default:return{border:v.inputValidationErrorBorder,background:v.inputValidationErrorBackground,foreground:v.inputValidationErrorForeground}}}classForType(h){switch(h){case 1:return"info";case 2:return"warning";default:return"error"}}_showMessage(){if(!this.contextViewProvider||!this.message)return;let h;const v=()=>h.style.width=r.Tr(this.element)+"px";this.contextViewProvider.showContextView({getAnchor:()=>this.element,anchorAlignment:1,render:b=>{var O,w;if(!this.message)return null;h=r.BC(b,i(".monaco-inputbox-container")),v();const j={inline:!0,className:"monaco-inputbox-message"},U=this.message.formatContent?(0,k.yk)(this.message.content,j):(0,k.S5)(this.message.content,j);U.classList.add(this.classForType(this.message.type));const K=this.stylesForType(this.message.type);return U.style.backgroundColor=(O=K.background)!==null&&O!==void 0?O:"",U.style.color=(w=K.foreground)!==null&&w!==void 0?w:"",U.style.border=K.border?`1px solid ${K.border}`:"",r.BC(h,U),null},onHide:()=>{this.state="closed"},layout:v});let p;this.message.type===3?p=n.kg("alertErrorMessage","Error: {0}",this.message.content):this.message.type===2?p=n.kg("alertWarningMessage","Warning: {0}",this.message.content):p=n.kg("alertInfoMessage","Info: {0}",this.message.content),L.xE(p),this.state="open"}_hideMessage(){this.contextViewProvider&&(this.state==="open"&&this.contextViewProvider.hideContextView(),this.state="idle")}onValueChange(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),this.input.classList.toggle("empty",!this.value),this.state==="open"&&this.contextViewProvider&&this.contextViewProvider.layout()}updateMirror(){if(!this.mirror)return;const h=this.value,p=h.charCodeAt(h.length-1)===10?" ":"";(h+p).replace(/\u000c/g,"")?this.mirror.textContent=h+p:this.mirror.innerText="\xA0",this.layout()}applyStyles(){var h,v,p;const b=this.options.inputBoxStyles,O=(h=b.inputBackground)!==null&&h!==void 0?h:"",w=(v=b.inputForeground)!==null&&v!==void 0?v:"",j=(p=b.inputBorder)!==null&&p!==void 0?p:"";this.element.style.backgroundColor=O,this.element.style.color=w,this.input.style.backgroundColor="inherit",this.input.style.color=w,this.element.style.border=`1px solid ${r.gI(j,"transparent")}`}layout(){if(!this.mirror)return;const h=this.cachedContentHeight;this.cachedContentHeight=r.OK(this.mirror),h!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}insertAtCursor(h){const v=this.inputElement,p=v.selectionStart,b=v.selectionEnd,O=v.value;p!==null&&b!==null&&(this.value=O.substr(0,p)+h+O.substr(b),v.setSelectionRange(p+1,p+1),this.layout())}dispose(){var h;this._hideMessage(),this.message=null,(h=this.actionbar)===null||h===void 0||h.dispose(),super.dispose()}}class u extends m{constructor(h,v,p){const b=n.kg({key:"history.inputbox.hint.suffix.noparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field ends in a closing parenthesis ")", for example "Filter (e.g. text, !exclude)". The character inserted into the final string is \u21C5 to represent the up and down arrow keys.']}," or {0} for history","\u21C5"),O=n.kg({key:"history.inputbox.hint.suffix.inparens",comment:['Text is the suffix of an input field placeholder coming after the action the input field performs, this will be used when the input field does NOT end in a closing parenthesis (eg. "Find"). The character inserted into the final string is \u21C5 to represent the up and down arrow keys.']}," ({0} for history)","\u21C5");super(h,v,p),this._onDidFocus=this._register(new f.vl),this.onDidFocus=this._onDidFocus.event,this._onDidBlur=this._register(new f.vl),this.onDidBlur=this._onDidBlur.event,this.history=new a(p.history,100);const w=()=>{if(p.showHistoryHint&&p.showHistoryHint()&&!this.placeholder.endsWith(b)&&!this.placeholder.endsWith(O)&&this.history.getHistory().length){const j=this.placeholder.endsWith(")")?b:O,U=this.placeholder+j;p.showPlaceholderOnFocus&&!r.X7(this.input)?this.placeholder=U:this.setPlaceHolder(U)}};this.observer=new MutationObserver((j,U)=>{j.forEach(K=>{K.target.textContent||w()})}),this.observer.observe(this.input,{attributeFilter:["class"]}),this.onfocus(this.input,()=>w()),this.onblur(this.input,()=>{const j=U=>{if(this.placeholder.endsWith(U)){const K=this.placeholder.slice(0,this.placeholder.length-U.length);return p.showPlaceholderOnFocus?this.placeholder=K:this.setPlaceHolder(K),!0}else return!1};j(O)||j(b)})}dispose(){super.dispose(),this.observer&&(this.observer.disconnect(),this.observer=void 0)}addToHistory(h){this.value&&(h||this.value!==this.getCurrentValue())&&this.history.add(this.value)}isAtLastInHistory(){return this.history.isLast()}isNowhereInHistory(){return this.history.isNowhere()}showNextValue(){this.history.has(this.value)||this.addToHistory();let h=this.getNextValue();h&&(h=h===this.value?this.getNextValue():h),this.value=h??"",L.h5(this.value?this.value:n.kg("clearedInput","Cleared Input"))}showPreviousValue(){this.history.has(this.value)||this.addToHistory();let h=this.getPreviousValue();h&&(h=h===this.value?this.getPreviousValue():h),h&&(this.value=h,L.h5(this.value))}setPlaceHolder(h){super.setPlaceHolder(h),this.setTooltip(h)}onBlur(){super.onBlur(),this._onDidBlur.fire()}onFocus(){super.onFocus(),this._onDidFocus.fire()}getCurrentValue(){let h=this.history.current();return h||(h=this.history.last(),this.history.next()),h}getPreviousValue(){return this.history.previous()||this.history.first()}getNextValue(){return this.history.next()}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.js":function(pt,Me,e){e.d(Me,{l:function(){return S},x:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/keybindingLabels.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),x=e("./node_modules/monaco-editor/esm/vs/nls.js");const I=r.$,S={keybindingLabelBackground:void 0,keybindingLabelForeground:void 0,keybindingLabelBorder:void 0,keybindingLabelBottomBorder:void 0,keybindingLabelShadow:void 0};class f extends L.jG{constructor(a,s,n){super(),this.os=s,this.keyElements=new Set,this.options=n||Object.create(null);const i=this.options.keybindingLabelForeground;this.domNode=r.BC(a,I(".monaco-keybinding")),i&&(this.domNode.style.color=i),this.hover=this._register((0,k.f)((0,F.nZ)("mouse"),this.domNode,"")),this.didEverRender=!1,a.appendChild(this.domNode)}get element(){return this.domNode}set(a,s){this.didEverRender&&this.keybinding===a&&f.areSame(this.matches,s)||(this.keybinding=a,this.matches=s,this.render())}render(){var a;if(this.clear(),this.keybinding){const s=this.keybinding.getChords();s[0]&&this.renderChord(this.domNode,s[0],this.matches?this.matches.firstPart:null);for(let i=1;i=W.range.end)continue;if(A.endT.concat(E),[]))}class m{get paddingTop(){return this._paddingTop}set paddingTop(T){this._size=this._size+T-this._paddingTop,this._paddingTop=T}constructor(T){this.groups=[],this._size=0,this._paddingTop=0,this._paddingTop=T??0,this._size=this._paddingTop}splice(T,E,W=[]){const $=W.length-E,z=s({start:0,end:T},this.groups),J=s({start:T+E,end:Number.POSITIVE_INFINITY},this.groups).map(V=>({range:n(V.range,$),size:V.size})),B=W.map((V,Y)=>({range:{start:T+Y,end:T+Y+1},size:V.size}));this.groups=c(z,B,J),this._size=this._paddingTop+this.groups.reduce((V,Y)=>V+Y.size*(Y.range.end-Y.range.start),0)}get count(){const T=this.groups.length;return T?this.groups[T-1].range.end:0}get size(){return this._size}indexAt(T){if(T<0)return-1;if(T{for(const W of T)this.getRenderer(E).disposeTemplate(W.templateData),W.templateData=null}),this.cache.clear(),this.transactionNodesPendingRemoval.clear()}getRenderer(T){const E=this.renderers.get(T);if(!E)throw new Error(`No renderer found for ${T}`);return E}}var h=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),v=e("./node_modules/monaco-editor/esm/vs/base/common/numbers.js"),p=function(A,T,E,W){var $=arguments.length,z=$<3?T:W===null?W=Object.getOwnPropertyDescriptor(T,E):W,J;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(A,T,E,W);else for(var B=A.length-1;B>=0;B--)(J=A[B])&&(z=($<3?J(z):$>3?J(T,E,z):J(T,E))||z);return $>3&&z&&Object.defineProperty(T,E,z),z};const b={CurrentDragAndDropData:void 0},O={useShadows:!0,verticalScrollMode:1,setRowLineHeight:!0,setRowHeight:!0,supportDynamicHeights:!1,dnd:{getDragElements(A){return[A]},getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}},horizontalScrolling:!1,transformOptimization:!0,alwaysConsumeMouseWheel:!0};class w{constructor(T){this.elements=T}update(){}getData(){return this.elements}}class j{constructor(T){this.elements=T}update(){}getData(){return this.elements}}class U{constructor(){this.types=[],this.files=[]}update(T){if(T.types&&this.types.splice(0,this.types.length,...T.types),T.files){this.files.splice(0,this.files.length);for(let E=0;E$,T?.getPosInSet?this.getPosInSet=T.getPosInSet.bind(T):this.getPosInSet=(E,W)=>W+1,T?.getRole?this.getRole=T.getRole.bind(T):this.getRole=E=>"listitem",T?.isChecked?this.isChecked=T.isChecked.bind(T):this.isChecked=E=>{}}}class P{get contentHeight(){return this.rangeMap.size}get onDidScroll(){return this.scrollableElement.onScroll}get scrollableElementDomNode(){return this.scrollableElement.getDomNode()}get horizontalScrolling(){return this._horizontalScrolling}set horizontalScrolling(T){if(T!==this._horizontalScrolling){if(T&&this.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");if(this._horizontalScrolling=T,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this._horizontalScrolling){for(const E of this.items)this.measureItemWidth(E);this.updateScrollWidth(),this.scrollableElement.setScrollDimensions({width:(0,F.y6)(this.domNode)}),this.rowsContainer.style.width=`${Math.max(this.scrollWidth||0,this.renderWidth)}px`}else this.scrollableElementWidthDelayer.cancel(),this.scrollableElement.setScrollDimensions({width:this.renderWidth,scrollWidth:this.renderWidth}),this.rowsContainer.style.width=""}}constructor(T,E,W,$=O){var z,J,B,V,Y,X,ie,re,te,D,he,ve,Ce;if(this.virtualDelegate=E,this.domId=`list_id_${++P.InstanceCount}`,this.renderers=new Map,this.renderWidth=0,this._scrollHeight=0,this.scrollableElementUpdateDisposable=null,this.scrollableElementWidthDelayer=new x.ve(50),this.splicing=!1,this.dragOverAnimationStopDisposable=f.jG.None,this.dragOverMouseY=0,this.canDrop=!1,this.currentDragFeedbackDisposable=f.jG.None,this.onDragLeaveTimeout=f.jG.None,this.disposables=new f.Cm,this._onDidChangeContentHeight=new S.vl,this._onDidChangeContentWidth=new S.vl,this.onDidChangeContentHeight=S.Jh.latch(this._onDidChangeContentHeight.event,void 0,this.disposables),this._horizontalScrolling=!1,$.horizontalScrolling&&$.supportDynamicHeights)throw new Error("Horizontal scrolling and dynamic heights not supported simultaneously");this.items=[],this.itemId=0,this.rangeMap=this.createRangeMap((z=$.paddingTop)!==null&&z!==void 0?z:0);for(const _e of W)this.renderers.set(_e.templateId,_e);this.cache=this.disposables.add(new C(this.renderers)),this.lastRenderTop=0,this.lastRenderHeight=0,this.domNode=document.createElement("div"),this.domNode.className="monaco-list",this.domNode.classList.add(this.domId),this.domNode.tabIndex=0,this.domNode.classList.toggle("mouse-support",typeof $.mouseSupport=="boolean"?$.mouseSupport:!0),this._horizontalScrolling=(J=$.horizontalScrolling)!==null&&J!==void 0?J:O.horizontalScrolling,this.domNode.classList.toggle("horizontal-scrolling",this._horizontalScrolling),this.paddingBottom=typeof $.paddingBottom>"u"?0:$.paddingBottom,this.accessibilityProvider=new G($.accessibilityProvider),this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",((B=$.transformOptimization)!==null&&B!==void 0?B:O.transformOptimization)&&(this.rowsContainer.style.transform="translate3d(0px, 0px, 0px)",this.rowsContainer.style.overflow="hidden",this.rowsContainer.style.contain="strict"),this.disposables.add(M.q.addTarget(this.rowsContainer)),this.scrollable=this.disposables.add(new a.yE({forceIntegerValues:!0,smoothScrollDuration:(V=$.smoothScrolling)!==null&&V!==void 0&&V?125:0,scheduleAtNextAnimationFrame:_e=>(0,F.PG)((0,F.zk)(this.domNode),_e)})),this.scrollableElement=this.disposables.add(new L.oO(this.rowsContainer,{alwaysConsumeMouseWheel:(Y=$.alwaysConsumeMouseWheel)!==null&&Y!==void 0?Y:O.alwaysConsumeMouseWheel,horizontal:1,vertical:(X=$.verticalScrollMode)!==null&&X!==void 0?X:O.verticalScrollMode,useShadows:(ie=$.useShadows)!==null&&ie!==void 0?ie:O.useShadows,mouseWheelScrollSensitivity:$.mouseWheelScrollSensitivity,fastScrollSensitivity:$.fastScrollSensitivity,scrollByPage:$.scrollByPage},this.scrollable)),this.domNode.appendChild(this.scrollableElement.getDomNode()),T.appendChild(this.domNode),this.scrollableElement.onScroll(this.onScroll,this,this.disposables),this.disposables.add((0,F.ko)(this.rowsContainer,M.B.Change,_e=>this.onTouchChange(_e))),this.disposables.add((0,F.ko)(this.scrollableElement.getDomNode(),"scroll",_e=>_e.target.scrollTop=0)),this.disposables.add((0,F.ko)(this.domNode,"dragover",_e=>this.onDragOver(this.toDragEvent(_e)))),this.disposables.add((0,F.ko)(this.domNode,"drop",_e=>this.onDrop(this.toDragEvent(_e)))),this.disposables.add((0,F.ko)(this.domNode,"dragleave",_e=>this.onDragLeave(this.toDragEvent(_e)))),this.disposables.add((0,F.ko)(this.domNode,"dragend",_e=>this.onDragEnd(_e))),this.setRowLineHeight=(re=$.setRowLineHeight)!==null&&re!==void 0?re:O.setRowLineHeight,this.setRowHeight=(te=$.setRowHeight)!==null&&te!==void 0?te:O.setRowHeight,this.supportDynamicHeights=(D=$.supportDynamicHeights)!==null&&D!==void 0?D:O.supportDynamicHeights,this.dnd=(he=$.dnd)!==null&&he!==void 0?he:this.disposables.add(O.dnd),this.layout((ve=$.initialSize)===null||ve===void 0?void 0:ve.height,(Ce=$.initialSize)===null||Ce===void 0?void 0:Ce.width)}updateOptions(T){T.paddingBottom!==void 0&&(this.paddingBottom=T.paddingBottom,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),T.smoothScrolling!==void 0&&this.scrollable.setSmoothScrollDuration(T.smoothScrolling?125:0),T.horizontalScrolling!==void 0&&(this.horizontalScrolling=T.horizontalScrolling);let E;if(T.scrollByPage!==void 0&&(E={...E??{},scrollByPage:T.scrollByPage}),T.mouseWheelScrollSensitivity!==void 0&&(E={...E??{},mouseWheelScrollSensitivity:T.mouseWheelScrollSensitivity}),T.fastScrollSensitivity!==void 0&&(E={...E??{},fastScrollSensitivity:T.fastScrollSensitivity}),E&&this.scrollableElement.updateOptions(E),T.paddingTop!==void 0&&T.paddingTop!==this.rangeMap.paddingTop){const W=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),$=T.paddingTop-this.rangeMap.paddingTop;this.rangeMap.paddingTop=T.paddingTop,this.render(W,Math.max(0,this.lastRenderTop+$),this.lastRenderHeight,void 0,void 0,!0),this.setScrollTop(this.lastRenderTop),this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.lastRenderTop,this.lastRenderHeight)}}createRangeMap(T){return new m(T)}splice(T,E,W=[]){if(this.splicing)throw new Error("Can't run recursive splices.");this.splicing=!0;try{return this._splice(T,E,W)}finally{this.splicing=!1,this._onDidChangeContentHeight.fire(this.contentHeight)}}_splice(T,E,W=[]){const $=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),z={start:T,end:T+E},J=d.Q.intersect($,z),B=new Map;for(let De=J.end-1;De>=J.start;De--){const Te=this.items[De];if(Te.dragStartDisposable.dispose(),Te.checkedDisposable.dispose(),Te.row){let He=B.get(Te.templateId);He||(He=[],B.set(Te.templateId,He));const qe=this.renderers.get(Te.templateId);qe&&qe.disposeElement&&qe.disposeElement(Te.element,De,Te.row.templateData,Te.size),He.push(Te.row)}Te.row=null,Te.stale=!0}const V={start:T+E,end:this.items.length},Y=d.Q.intersect(V,$),X=d.Q.relativeComplement(V,$),ie=W.map(De=>({id:String(this.itemId++),element:De,templateId:this.virtualDelegate.getTemplateId(De),size:this.virtualDelegate.getHeight(De),width:void 0,hasDynamicHeight:!!this.virtualDelegate.hasDynamicHeight&&this.virtualDelegate.hasDynamicHeight(De),lastDynamicHeightWidth:void 0,row:null,uri:void 0,dropTarget:!1,dragStartDisposable:f.jG.None,checkedDisposable:f.jG.None,stale:!1}));let re;T===0&&E>=this.items.length?(this.rangeMap=this.createRangeMap(this.rangeMap.paddingTop),this.rangeMap.splice(0,0,ie),re=this.items,this.items=ie):(this.rangeMap.splice(T,E,ie),re=this.items.splice(T,E,...ie));const te=W.length-E,D=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),he=n(Y,te),ve=d.Q.intersect(D,he);for(let De=ve.start;Den(De,te)),ee=[{start:T,end:T+W.length},...Pe].map(De=>d.Q.intersect(D,De)).reverse();for(const De of ee)for(let Te=De.end-1;Te>=De.start;Te--){const He=this.items[Te],qe=B.get(He.templateId),Qe=qe?.pop();this.insertItemInDOM(Te,Qe)}for(const De of B.values())for(const Te of De)this.cache.release(Te);return this.eventuallyUpdateScrollDimensions(),this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight),re.map(De=>De.element)}eventuallyUpdateScrollDimensions(){this._scrollHeight=this.contentHeight,this.rowsContainer.style.height=`${this._scrollHeight}px`,this.scrollableElementUpdateDisposable||(this.scrollableElementUpdateDisposable=(0,F.PG)((0,F.zk)(this.domNode),()=>{this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight}),this.updateScrollWidth(),this.scrollableElementUpdateDisposable=null}))}eventuallyUpdateScrollWidth(){if(!this.horizontalScrolling){this.scrollableElementWidthDelayer.cancel();return}this.scrollableElementWidthDelayer.trigger(()=>this.updateScrollWidth())}updateScrollWidth(){if(!this.horizontalScrolling)return;let T=0;for(const E of this.items)typeof E.width<"u"&&(T=Math.max(T,E.width));this.scrollWidth=T,this.scrollableElement.setScrollDimensions({scrollWidth:T===0?0:T+10}),this._onDidChangeContentWidth.fire(this.scrollWidth)}rerender(){if(this.supportDynamicHeights){for(const T of this.items)T.lastDynamicHeightWidth=void 0;this._rerender(this.lastRenderTop,this.lastRenderHeight)}}get length(){return this.items.length}get renderHeight(){return this.scrollableElement.getScrollDimensions().height}get firstVisibleIndex(){return this.getRenderRange(this.lastRenderTop,this.lastRenderHeight).start}element(T){return this.items[T].element}indexOf(T){return this.items.findIndex(E=>E.element===T)}domElement(T){const E=this.items[T].row;return E&&E.domNode}elementHeight(T){return this.items[T].size}elementTop(T){return this.rangeMap.positionAt(T)}indexAt(T){return this.rangeMap.indexAt(T)}indexAfter(T){return this.rangeMap.indexAfter(T)}layout(T,E){const W={height:typeof T=="number"?T:(0,F.H4)(this.domNode)};this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,W.scrollHeight=this.scrollHeight),this.scrollableElement.setScrollDimensions(W),typeof E<"u"&&(this.renderWidth=E,this.supportDynamicHeights&&this._rerender(this.scrollTop,this.renderHeight)),this.horizontalScrolling&&this.scrollableElement.setScrollDimensions({width:typeof E=="number"?E:(0,F.y6)(this.domNode)})}render(T,E,W,$,z,J=!1){const B=this.getRenderRange(E,W),V=d.Q.relativeComplement(B,T).reverse(),Y=d.Q.relativeComplement(T,B);if(J){const X=d.Q.intersect(T,B);for(let ie=X.start;ie{for(const X of Y)for(let ie=X.start;ie=X.start;ie--)this.insertItemInDOM(ie)}),$!==void 0&&(this.rowsContainer.style.left=`-${$}px`),this.rowsContainer.style.top=`-${E}px`,this.horizontalScrolling&&z!==void 0&&(this.rowsContainer.style.width=`${Math.max(z,this.renderWidth)}px`),this.lastRenderTop=E,this.lastRenderHeight=W}insertItemInDOM(T,E){var W,$,z;const J=this.items[T];if(!J.row)if(E)J.row=E,J.stale=!0;else{const ie=this.cache.alloc(J.templateId);J.row=ie.row,J.stale||(J.stale=ie.isReusingConnectedDomNode)}const B=this.accessibilityProvider.getRole(J.element)||"listitem";J.row.domNode.setAttribute("role",B);const V=this.accessibilityProvider.isChecked(J.element);if(typeof V=="boolean")J.row.domNode.setAttribute("aria-checked",String(!!V));else if(V){const ie=re=>J.row.domNode.setAttribute("aria-checked",String(!!re));ie(V.value),J.checkedDisposable=V.onDidChange(ie)}if(J.stale||!J.row.domNode.parentElement){const ie=(z=($=(W=this.items.at(T+1))===null||W===void 0?void 0:W.row)===null||$===void 0?void 0:$.domNode)!==null&&z!==void 0?z:null;this.rowsContainer.insertBefore(J.row.domNode,ie),J.stale=!1}this.updateItemInDOM(J,T);const Y=this.renderers.get(J.templateId);if(!Y)throw new Error(`No renderer found for template id ${J.templateId}`);Y?.renderElement(J.element,T,J.row.templateData,J.size);const X=this.dnd.getDragURI(J.element);J.dragStartDisposable.dispose(),J.row.domNode.draggable=!!X,X&&(J.dragStartDisposable=(0,F.ko)(J.row.domNode,"dragstart",ie=>this.onDragStart(J.element,X,ie))),this.horizontalScrolling&&(this.measureItemWidth(J),this.eventuallyUpdateScrollWidth())}measureItemWidth(T){if(!T.row||!T.row.domNode)return;T.row.domNode.style.width="fit-content",T.width=(0,F.y6)(T.row.domNode);const E=(0,F.zk)(T.row.domNode).getComputedStyle(T.row.domNode);E.paddingLeft&&(T.width+=parseFloat(E.paddingLeft)),E.paddingRight&&(T.width+=parseFloat(E.paddingRight)),T.row.domNode.style.width=""}updateItemInDOM(T,E){T.row.domNode.style.top=`${this.elementTop(E)}px`,this.setRowHeight&&(T.row.domNode.style.height=`${T.size}px`),this.setRowLineHeight&&(T.row.domNode.style.lineHeight=`${T.size}px`),T.row.domNode.setAttribute("data-index",`${E}`),T.row.domNode.setAttribute("data-last-element",E===this.length-1?"true":"false"),T.row.domNode.setAttribute("data-parity",E%2===0?"even":"odd"),T.row.domNode.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(T.element,E,this.length))),T.row.domNode.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(T.element,E))),T.row.domNode.setAttribute("id",this.getElementDomId(E)),T.row.domNode.classList.toggle("drop-target",T.dropTarget)}removeItemFromDOM(T){const E=this.items[T];if(E.dragStartDisposable.dispose(),E.checkedDisposable.dispose(),E.row){const W=this.renderers.get(E.templateId);W&&W.disposeElement&&W.disposeElement(E.element,T,E.row.templateData,E.size),this.cache.release(E.row),E.row=null}this.horizontalScrolling&&this.eventuallyUpdateScrollWidth()}getScrollTop(){return this.scrollableElement.getScrollPosition().scrollTop}setScrollTop(T,E){this.scrollableElementUpdateDisposable&&(this.scrollableElementUpdateDisposable.dispose(),this.scrollableElementUpdateDisposable=null,this.scrollableElement.setScrollDimensions({scrollHeight:this.scrollHeight})),this.scrollableElement.setScrollPosition({scrollTop:T,reuseAnimation:E})}get scrollTop(){return this.getScrollTop()}set scrollTop(T){this.setScrollTop(T)}get scrollHeight(){return this._scrollHeight+(this.horizontalScrolling?10:0)+this.paddingBottom}get onMouseClick(){return S.Jh.map(this.disposables.add(new k.f(this.domNode,"click")).event,T=>this.toMouseEvent(T),this.disposables)}get onMouseDblClick(){return S.Jh.map(this.disposables.add(new k.f(this.domNode,"dblclick")).event,T=>this.toMouseEvent(T),this.disposables)}get onMouseMiddleClick(){return S.Jh.filter(S.Jh.map(this.disposables.add(new k.f(this.domNode,"auxclick")).event,T=>this.toMouseEvent(T),this.disposables),T=>T.browserEvent.button===1,this.disposables)}get onMouseDown(){return S.Jh.map(this.disposables.add(new k.f(this.domNode,"mousedown")).event,T=>this.toMouseEvent(T),this.disposables)}get onMouseOver(){return S.Jh.map(this.disposables.add(new k.f(this.domNode,"mouseover")).event,T=>this.toMouseEvent(T),this.disposables)}get onMouseOut(){return S.Jh.map(this.disposables.add(new k.f(this.domNode,"mouseout")).event,T=>this.toMouseEvent(T),this.disposables)}get onContextMenu(){return S.Jh.any(S.Jh.map(this.disposables.add(new k.f(this.domNode,"contextmenu")).event,T=>this.toMouseEvent(T),this.disposables),S.Jh.map(this.disposables.add(new k.f(this.domNode,M.B.Contextmenu)).event,T=>this.toGestureEvent(T),this.disposables))}get onTouchStart(){return S.Jh.map(this.disposables.add(new k.f(this.domNode,"touchstart")).event,T=>this.toTouchEvent(T),this.disposables)}get onTap(){return S.Jh.map(this.disposables.add(new k.f(this.rowsContainer,M.B.Tap)).event,T=>this.toGestureEvent(T),this.disposables)}toMouseEvent(T){const E=this.getItemIndexFromEventTarget(T.target||null),W=typeof E>"u"?void 0:this.items[E],$=W&&W.element;return{browserEvent:T,index:E,element:$}}toTouchEvent(T){const E=this.getItemIndexFromEventTarget(T.target||null),W=typeof E>"u"?void 0:this.items[E],$=W&&W.element;return{browserEvent:T,index:E,element:$}}toGestureEvent(T){const E=this.getItemIndexFromEventTarget(T.initialTarget||null),W=typeof E>"u"?void 0:this.items[E],$=W&&W.element;return{browserEvent:T,index:E,element:$}}toDragEvent(T){const E=this.getItemIndexFromEventTarget(T.target||null),W=typeof E>"u"?void 0:this.items[E],$=W&&W.element,z=this.getTargetSector(T,E);return{browserEvent:T,index:E,element:$,sector:z}}onScroll(T){try{const E=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);this.render(E,T.scrollTop,T.height,T.scrollLeft,T.scrollWidth),this.supportDynamicHeights&&this._rerender(T.scrollTop,T.height,T.inSmoothScrolling)}catch(E){throw console.error("Got bad scroll event:",T),E}}onTouchChange(T){T.preventDefault(),T.stopPropagation(),this.scrollTop-=T.translationY}onDragStart(T,E,W){var $,z;if(!W.dataTransfer)return;const J=this.dnd.getDragElements(T);if(W.dataTransfer.effectAllowed="copyMove",W.dataTransfer.setData(r.t.TEXT,E),W.dataTransfer.setDragImage){let B;this.dnd.getDragLabel&&(B=this.dnd.getDragLabel(J,W)),typeof B>"u"&&(B=String(J.length));const V=(0,F.$)(".monaco-drag-image");V.textContent=B;const X=(ie=>{for(;ie&&!ie.classList.contains("monaco-workbench");)ie=ie.parentElement;return ie||this.domNode.ownerDocument})(this.domNode);X.appendChild(V),W.dataTransfer.setDragImage(V,-10,-10),setTimeout(()=>X.removeChild(V),0)}this.domNode.classList.add("dragging"),this.currentDragData=new w(J),b.CurrentDragAndDropData=new j(J),(z=($=this.dnd).onDragStart)===null||z===void 0||z.call($,this.currentDragData,W)}onDragOver(T){var E,W;if(T.browserEvent.preventDefault(),this.onDragLeaveTimeout.dispose(),b.CurrentDragAndDropData&&b.CurrentDragAndDropData.getData()==="vscode-ui"||(this.setupDragAndDropScrollTopAnimation(T.browserEvent),!T.browserEvent.dataTransfer))return!1;if(!this.currentDragData)if(b.CurrentDragAndDropData)this.currentDragData=b.CurrentDragAndDropData;else{if(!T.browserEvent.dataTransfer.types)return!1;this.currentDragData=new U}const $=this.dnd.onDragOver(this.currentDragData,T.element,T.index,T.sector,T.browserEvent);if(this.canDrop=typeof $=="boolean"?$:$.accept,!this.canDrop)return this.currentDragFeedback=void 0,this.currentDragFeedbackDisposable.dispose(),!1;T.browserEvent.dataTransfer.dropEffect=typeof $!="boolean"&&((E=$.effect)===null||E===void 0?void 0:E.type)===0?"copy":"move";let z;typeof $!="boolean"&&$.feedback?z=$.feedback:typeof T.index>"u"?z=[-1]:z=[T.index],z=(0,g.dM)(z).filter(B=>B>=-1&&BB-V),z=z[0]===-1?[-1]:z;let J=typeof $!="boolean"&&$.effect&&$.effect.position?$.effect.position:"drop-target";if(K(this.currentDragFeedback,z)&&this.currentDragFeedbackPosition===J)return!0;if(this.currentDragFeedback=z,this.currentDragFeedbackPosition=J,this.currentDragFeedbackDisposable.dispose(),z[0]===-1)this.domNode.classList.add(J),this.rowsContainer.classList.add(J),this.currentDragFeedbackDisposable=(0,f.s)(()=>{this.domNode.classList.remove(J),this.rowsContainer.classList.remove(J)});else{if(z.length>1&&J!=="drop-target")throw new Error("Can't use multiple feedbacks with position different than 'over'");J==="drop-target-after"&&z[0]{var B;for(const V of z){const Y=this.items[V];Y.dropTarget=!1,(B=Y.row)===null||B===void 0||B.domNode.classList.remove(J)}})}return!0}onDragLeave(T){var E,W;this.onDragLeaveTimeout.dispose(),this.onDragLeaveTimeout=(0,x.EQ)(()=>this.clearDragOverFeedback(),100,this.disposables),this.currentDragData&&((W=(E=this.dnd).onDragLeave)===null||W===void 0||W.call(E,this.currentDragData,T.element,T.index,T.browserEvent))}onDrop(T){if(!this.canDrop)return;const E=this.currentDragData;this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,b.CurrentDragAndDropData=void 0,!(!E||!T.browserEvent.dataTransfer)&&(T.browserEvent.preventDefault(),E.update(T.browserEvent.dataTransfer),this.dnd.drop(E,T.element,T.index,T.sector,T.browserEvent))}onDragEnd(T){var E,W;this.canDrop=!1,this.teardownDragAndDropScrollTopAnimation(),this.clearDragOverFeedback(),this.domNode.classList.remove("dragging"),this.currentDragData=void 0,b.CurrentDragAndDropData=void 0,(W=(E=this.dnd).onDragEnd)===null||W===void 0||W.call(E,T)}clearDragOverFeedback(){this.currentDragFeedback=void 0,this.currentDragFeedbackPosition=void 0,this.currentDragFeedbackDisposable.dispose(),this.currentDragFeedbackDisposable=f.jG.None}setupDragAndDropScrollTopAnimation(T){if(!this.dragOverAnimationDisposable){const E=(0,F.cL)(this.domNode).top;this.dragOverAnimationDisposable=(0,F.i0)((0,F.zk)(this.domNode),this.animateDragAndDropScrollTop.bind(this,E))}this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationStopDisposable=(0,x.EQ)(()=>{this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},1e3,this.disposables),this.dragOverMouseY=T.pageY}animateDragAndDropScrollTop(T){if(this.dragOverMouseY===void 0)return;const E=this.dragOverMouseY-T,W=this.renderHeight-35;E<35?this.scrollTop+=Math.max(-14,Math.floor(.3*(E-35))):E>W&&(this.scrollTop+=Math.min(14,Math.floor(.3*(E-W))))}teardownDragAndDropScrollTopAnimation(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)}getTargetSector(T,E){if(E===void 0)return;const W=T.offsetY/this.items[E].size,$=Math.floor(W/.25);return(0,v.qE)($,0,3)}getItemIndexFromEventTarget(T){const E=this.scrollableElement.getDomNode();let W=T;for(;W instanceof HTMLElement&&W!==this.rowsContainer&&E.contains(W);){const $=W.getAttribute("data-index");if($){const z=Number($);if(!isNaN(z))return z}W=W.parentElement}}getRenderRange(T,E){return{start:this.rangeMap.indexAt(T),end:this.rangeMap.indexAfter(T+E-1)}}_rerender(T,E,W){const $=this.getRenderRange(T,E);let z,J;T===this.elementTop($.start)?(z=$.start,J=0):$.end-$.start>1&&(z=$.start+1,J=this.elementTop(z)-T);let B=0;for(;;){const V=this.getRenderRange(T,E);let Y=!1;for(let X=V.start;X=re.start;te--)this.insertItemInDOM(te);for(let re=V.start;rebe.splice(q,ye,ge))}}var x=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/decorators.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/numbers.js"),i=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),c=e("./node_modules/monaco-editor/esm/vs/base/common/types.js");class m extends Error{constructor(q,ye){super(`ListError [${q}] ${ye}`)}}var u=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/list/listView.js"),C=e("./node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js"),h=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),v=function(Qe,q,ye,ge){var be=arguments.length,Se=be<3?q:ge===null?ge=Object.getOwnPropertyDescriptor(q,ye):ge,ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Se=Reflect.decorate(Qe,q,ye,ge);else for(var me=Qe.length-1;me>=0;me--)(ae=Qe[me])&&(Se=(be<3?ae(Se):be>3?ae(q,ye,Se):ae(q,ye))||Se);return be>3&&Se&&Object.defineProperty(q,ye,Se),Se};class p{constructor(q){this.trait=q,this.renderedElements=[]}get templateId(){return`template:${this.trait.name}`}renderTemplate(q){return q}renderElement(q,ye,ge){const be=this.renderedElements.findIndex(Se=>Se.templateData===ge);if(be>=0){const Se=this.renderedElements[be];this.trait.unrender(ge),Se.index=ye}else{const Se={index:ye,templateData:ge};this.renderedElements.push(Se)}this.trait.renderIndex(ye,ge)}splice(q,ye,ge){const be=[];for(const Se of this.renderedElements)Se.index=q+ye&&be.push({index:Se.index+ge-ye,templateData:Se.templateData});this.renderedElements=be}renderIndexes(q){for(const{index:ye,templateData:ge}of this.renderedElements)q.indexOf(ye)>-1&&this.trait.renderIndex(ye,ge)}disposeTemplate(q){const ye=this.renderedElements.findIndex(ge=>ge.templateData===q);ye<0||this.renderedElements.splice(ye,1)}}class b{get name(){return this._trait}get renderer(){return new p(this)}constructor(q){this._trait=q,this.indexes=[],this.sortedIndexes=[],this._onChange=new d.vl,this.onChange=this._onChange.event}splice(q,ye,ge){const be=ge.length-ye,Se=q+ye,ae=[];let me=0;for(;me=Se;)ae.push(this.sortedIndexes[me++]+be);this.renderer.splice(q,ye,ge.length),this._set(ae,ae)}renderIndex(q,ye){ye.classList.toggle(this._trait,this.contains(q))}unrender(q){q.classList.remove(this._trait)}set(q,ye){return this._set(q,[...q].sort(ee),ye)}_set(q,ye,ge){const be=this.indexes,Se=this.sortedIndexes;this.indexes=q,this.sortedIndexes=ye;const ae=Pe(Se,q);return this.renderer.renderIndexes(ae),this._onChange.fire({indexes:q,browserEvent:ge}),be}get(){return this.indexes}contains(q){return(0,x.El)(this.sortedIndexes,q,ee)>=0}dispose(){(0,s.AS)(this._onChange)}}v([f.B],b.prototype,"renderer",null);class O extends b{constructor(q){super("selected"),this.setAriaSelected=q}renderIndex(q,ye){super.renderIndex(q,ye),this.setAriaSelected&&(this.contains(q)?ye.setAttribute("aria-selected","true"):ye.setAttribute("aria-selected","false"))}}class w{constructor(q,ye,ge){this.trait=q,this.view=ye,this.identityProvider=ge}splice(q,ye,ge){if(!this.identityProvider)return this.trait.splice(q,ye,new Array(ge.length).fill(!1));const be=this.trait.get().map(me=>this.identityProvider.getId(this.view.element(me)).toString());if(be.length===0)return this.trait.splice(q,ye,new Array(ge.length).fill(!1));const Se=new Set(be),ae=ge.map(me=>Se.has(this.identityProvider.getId(me).toString()));this.trait.splice(q,ye,ae)}}function j(Qe){return Qe.tagName==="INPUT"||Qe.tagName==="TEXTAREA"}function U(Qe,q){return Qe.classList.contains(q)?!0:Qe.classList.contains("monaco-list")||!Qe.parentElement?!1:U(Qe.parentElement,q)}function K(Qe){return U(Qe,"monaco-editor")}function G(Qe){return U(Qe,"monaco-custom-toggle")}function P(Qe){return U(Qe,"action-item")}function A(Qe){return U(Qe,"monaco-tree-sticky-row")}function T(Qe){return Qe.classList.contains("monaco-tree-sticky-container")}function E(Qe){return Qe.tagName==="A"&&Qe.classList.contains("monaco-button")||Qe.tagName==="DIV"&&Qe.classList.contains("monaco-button-dropdown")?!0:Qe.classList.contains("monaco-list")||!Qe.parentElement?!1:E(Qe.parentElement)}class W{get onKeyDown(){return d.Jh.chain(this.disposables.add(new F.f(this.view.domNode,"keydown")).event,q=>q.filter(ye=>!j(ye.target)).map(ye=>new k.Z(ye)))}constructor(q,ye,ge){this.list=q,this.view=ye,this.disposables=new s.Cm,this.multipleSelectionDisposables=new s.Cm,this.multipleSelectionSupport=ge.multipleSelectionSupport,this.disposables.add(this.onKeyDown(be=>{switch(be.keyCode){case 3:return this.onEnter(be);case 16:return this.onUpArrow(be);case 18:return this.onDownArrow(be);case 11:return this.onPageUpArrow(be);case 12:return this.onPageDownArrow(be);case 9:return this.onEscape(be);case 31:this.multipleSelectionSupport&&(i.zx?be.metaKey:be.ctrlKey)&&this.onCtrlA(be)}}))}updateOptions(q){q.multipleSelectionSupport!==void 0&&(this.multipleSelectionSupport=q.multipleSelectionSupport)}onEnter(q){q.preventDefault(),q.stopPropagation(),this.list.setSelection(this.list.getFocus(),q.browserEvent)}onUpArrow(q){q.preventDefault(),q.stopPropagation(),this.list.focusPrevious(1,!1,q.browserEvent);const ye=this.list.getFocus()[0];this.list.setAnchor(ye),this.list.reveal(ye),this.view.domNode.focus()}onDownArrow(q){q.preventDefault(),q.stopPropagation(),this.list.focusNext(1,!1,q.browserEvent);const ye=this.list.getFocus()[0];this.list.setAnchor(ye),this.list.reveal(ye),this.view.domNode.focus()}onPageUpArrow(q){q.preventDefault(),q.stopPropagation(),this.list.focusPreviousPage(q.browserEvent);const ye=this.list.getFocus()[0];this.list.setAnchor(ye),this.list.reveal(ye),this.view.domNode.focus()}onPageDownArrow(q){q.preventDefault(),q.stopPropagation(),this.list.focusNextPage(q.browserEvent);const ye=this.list.getFocus()[0];this.list.setAnchor(ye),this.list.reveal(ye),this.view.domNode.focus()}onCtrlA(q){q.preventDefault(),q.stopPropagation(),this.list.setSelection((0,x.y1)(this.list.length),q.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus()}onEscape(q){this.list.getSelection().length&&(q.preventDefault(),q.stopPropagation(),this.list.setSelection([],q.browserEvent),this.list.setAnchor(void 0),this.view.domNode.focus())}dispose(){this.disposables.dispose(),this.multipleSelectionDisposables.dispose()}}v([f.B],W.prototype,"onKeyDown",null);var $;(function(Qe){Qe[Qe.Automatic=0]="Automatic",Qe[Qe.Trigger=1]="Trigger"})($||($={}));var z;(function(Qe){Qe[Qe.Idle=0]="Idle",Qe[Qe.Typing=1]="Typing"})(z||(z={}));const J=new class{mightProducePrintableCharacter(Qe){return Qe.ctrlKey||Qe.metaKey||Qe.altKey?!1:Qe.keyCode>=31&&Qe.keyCode<=56||Qe.keyCode>=21&&Qe.keyCode<=30||Qe.keyCode>=98&&Qe.keyCode<=107||Qe.keyCode>=85&&Qe.keyCode<=95}};class B{constructor(q,ye,ge,be,Se){this.list=q,this.view=ye,this.keyboardNavigationLabelProvider=ge,this.keyboardNavigationEventFilter=be,this.delegate=Se,this.enabled=!1,this.state=z.Idle,this.mode=$.Automatic,this.triggered=!1,this.previouslyFocused=-1,this.enabledDisposables=new s.Cm,this.disposables=new s.Cm,this.updateOptions(q.options)}updateOptions(q){var ye,ge;!((ye=q.typeNavigationEnabled)!==null&&ye!==void 0)||ye?this.enable():this.disable(),this.mode=(ge=q.typeNavigationMode)!==null&&ge!==void 0?ge:$.Automatic}enable(){if(this.enabled)return;let q=!1;const ye=d.Jh.chain(this.enabledDisposables.add(new F.f(this.view.domNode,"keydown")).event,Se=>Se.filter(ae=>!j(ae.target)).filter(()=>this.mode===$.Automatic||this.triggered).map(ae=>new k.Z(ae)).filter(ae=>q||this.keyboardNavigationEventFilter(ae)).filter(ae=>this.delegate.mightProducePrintableCharacter(ae)).forEach(ae=>r.fs.stop(ae,!0)).map(ae=>ae.browserEvent.key)),ge=d.Jh.debounce(ye,()=>null,800,void 0,void 0,void 0,this.enabledDisposables);d.Jh.reduce(d.Jh.any(ye,ge),(Se,ae)=>ae===null?null:(Se||"")+ae,void 0,this.enabledDisposables)(this.onInput,this,this.enabledDisposables),ge(this.onClear,this,this.enabledDisposables),ye(()=>q=!0,void 0,this.enabledDisposables),ge(()=>q=!1,void 0,this.enabledDisposables),this.enabled=!0,this.triggered=!1}disable(){this.enabled&&(this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1)}onClear(){var q;const ye=this.list.getFocus();if(ye.length>0&&ye[0]===this.previouslyFocused){const ge=(q=this.list.options.accessibilityProvider)===null||q===void 0?void 0:q.getAriaLabel(this.list.element(ye[0]));typeof ge=="string"?(0,L.xE)(ge):ge&&(0,L.xE)(ge.get())}this.previouslyFocused=-1}onInput(q){if(!q){this.state=z.Idle,this.triggered=!1;return}const ye=this.list.getFocus(),ge=ye.length>0?ye[0]:0,be=this.state===z.Idle?1:0;this.state=z.Typing;for(let Se=0;Se1&&le.length===1){this.previouslyFocused=ge,this.list.setFocus([ae]),this.list.reveal(ae);return}}}else if(typeof fe>"u"||(0,a.WP)(q,fe)){this.previouslyFocused=ge,this.list.setFocus([ae]),this.list.reveal(ae);return}}}dispose(){this.disable(),this.enabledDisposables.dispose(),this.disposables.dispose()}}class V{constructor(q,ye){this.list=q,this.view=ye,this.disposables=new s.Cm;const ge=d.Jh.chain(this.disposables.add(new F.f(ye.domNode,"keydown")).event,Se=>Se.filter(ae=>!j(ae.target)).map(ae=>new k.Z(ae)));d.Jh.chain(ge,Se=>Se.filter(ae=>ae.keyCode===2&&!ae.ctrlKey&&!ae.metaKey&&!ae.shiftKey&&!ae.altKey))(this.onTab,this,this.disposables)}onTab(q){if(q.target!==this.view.domNode)return;const ye=this.list.getFocus();if(ye.length===0)return;const ge=this.view.domElement(ye[0]);if(!ge)return;const be=ge.querySelector("[tabIndex]");if(!be||!(be instanceof HTMLElement)||be.tabIndex===-1)return;const Se=(0,r.zk)(be).getComputedStyle(be);Se.visibility==="hidden"||Se.display==="none"||(q.preventDefault(),q.stopPropagation(),be.focus())}dispose(){this.disposables.dispose()}}function Y(Qe){return i.zx?Qe.browserEvent.metaKey:Qe.browserEvent.ctrlKey}function X(Qe){return Qe.browserEvent.shiftKey}function ie(Qe){return(0,r.Er)(Qe)&&Qe.button===2}const re={isSelectionSingleChangeEvent:Y,isSelectionRangeChangeEvent:X};class te{constructor(q){this.list=q,this.disposables=new s.Cm,this._onPointer=new d.vl,this.onPointer=this._onPointer.event,q.options.multipleSelectionSupport!==!1&&(this.multipleSelectionController=this.list.options.multipleSelectionController||re),this.mouseSupport=typeof q.options.mouseSupport>"u"||!!q.options.mouseSupport,this.mouseSupport&&(q.onMouseDown(this.onMouseDown,this,this.disposables),q.onContextMenu(this.onContextMenu,this,this.disposables),q.onMouseDblClick(this.onDoubleClick,this,this.disposables),q.onTouchStart(this.onMouseDown,this,this.disposables),this.disposables.add(M.q.addTarget(q.getHTMLElement()))),d.Jh.any(q.onMouseClick,q.onMouseMiddleClick,q.onTap)(this.onViewPointer,this,this.disposables)}updateOptions(q){q.multipleSelectionSupport!==void 0&&(this.multipleSelectionController=void 0,q.multipleSelectionSupport&&(this.multipleSelectionController=this.list.options.multipleSelectionController||re))}isSelectionSingleChangeEvent(q){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(q):!1}isSelectionRangeChangeEvent(q){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(q):!1}isSelectionChangeEvent(q){return this.isSelectionSingleChangeEvent(q)||this.isSelectionRangeChangeEvent(q)}onMouseDown(q){K(q.browserEvent.target)||(0,r.bq)()!==q.browserEvent.target&&this.list.domFocus()}onContextMenu(q){if(j(q.browserEvent.target)||K(q.browserEvent.target))return;const ye=typeof q.index>"u"?[]:[q.index];this.list.setFocus(ye,q.browserEvent)}onViewPointer(q){if(!this.mouseSupport||j(q.browserEvent.target)||K(q.browserEvent.target)||q.browserEvent.isHandledByList)return;q.browserEvent.isHandledByList=!0;const ye=q.index;if(typeof ye>"u"){this.list.setFocus([],q.browserEvent),this.list.setSelection([],q.browserEvent),this.list.setAnchor(void 0);return}if(this.isSelectionChangeEvent(q))return this.changeSelection(q);this.list.setFocus([ye],q.browserEvent),this.list.setAnchor(ye),ie(q.browserEvent)||this.list.setSelection([ye],q.browserEvent),this._onPointer.fire(q)}onDoubleClick(q){if(j(q.browserEvent.target)||K(q.browserEvent.target)||this.isSelectionChangeEvent(q)||q.browserEvent.isHandledByList)return;q.browserEvent.isHandledByList=!0;const ye=this.list.getFocus();this.list.setSelection(ye,q.browserEvent)}changeSelection(q){const ye=q.index;let ge=this.list.getAnchor();if(this.isSelectionRangeChangeEvent(q)){if(typeof ge>"u"){const oe=this.list.getFocus()[0];ge=oe??ye,this.list.setAnchor(ge)}const be=Math.min(ge,ye),Se=Math.max(ge,ye),ae=(0,x.y1)(be,Se+1),me=this.list.getSelection(),fe=Ce(Pe(me,[ge]),ge);if(fe.length===0)return;const le=Pe(ae,_e(me,fe));this.list.setSelection(le,q.browserEvent),this.list.setFocus([ye],q.browserEvent)}else if(this.isSelectionSingleChangeEvent(q)){const be=this.list.getSelection(),Se=be.filter(ae=>ae!==ye);this.list.setFocus([ye]),this.list.setAnchor(ye),be.length===Se.length?this.list.setSelection([...Se,ye],q.browserEvent):this.list.setSelection(Se,q.browserEvent)}}dispose(){this.disposables.dispose()}}class D{constructor(q,ye){this.styleElement=q,this.selectorSuffix=ye}style(q){var ye,ge;const be=this.selectorSuffix&&`.${this.selectorSuffix}`,Se=[];q.listBackground&&Se.push(`.monaco-list${be} .monaco-list-rows { background: ${q.listBackground}; }`),q.listFocusBackground&&(Se.push(`.monaco-list${be}:focus .monaco-list-row.focused { background-color: ${q.listFocusBackground}; }`),Se.push(`.monaco-list${be}:focus .monaco-list-row.focused:hover { background-color: ${q.listFocusBackground}; }`)),q.listFocusForeground&&Se.push(`.monaco-list${be}:focus .monaco-list-row.focused { color: ${q.listFocusForeground}; }`),q.listActiveSelectionBackground&&(Se.push(`.monaco-list${be}:focus .monaco-list-row.selected { background-color: ${q.listActiveSelectionBackground}; }`),Se.push(`.monaco-list${be}:focus .monaco-list-row.selected:hover { background-color: ${q.listActiveSelectionBackground}; }`)),q.listActiveSelectionForeground&&Se.push(`.monaco-list${be}:focus .monaco-list-row.selected { color: ${q.listActiveSelectionForeground}; }`),q.listActiveSelectionIconForeground&&Se.push(`.monaco-list${be}:focus .monaco-list-row.selected .codicon { color: ${q.listActiveSelectionIconForeground}; }`),q.listFocusAndSelectionBackground&&Se.push(` .monaco-drag-image, .monaco-list${be}:focus .monaco-list-row.selected.focused { background-color: ${q.listFocusAndSelectionBackground}; } `),q.listFocusAndSelectionForeground&&Se.push(` .monaco-drag-image, .monaco-list${be}:focus .monaco-list-row.selected.focused { color: ${q.listFocusAndSelectionForeground}; } `),q.listInactiveFocusForeground&&(Se.push(`.monaco-list${be} .monaco-list-row.focused { color: ${q.listInactiveFocusForeground}; }`),Se.push(`.monaco-list${be} .monaco-list-row.focused:hover { color: ${q.listInactiveFocusForeground}; }`)),q.listInactiveSelectionIconForeground&&Se.push(`.monaco-list${be} .monaco-list-row.focused .codicon { color: ${q.listInactiveSelectionIconForeground}; }`),q.listInactiveFocusBackground&&(Se.push(`.monaco-list${be} .monaco-list-row.focused { background-color: ${q.listInactiveFocusBackground}; }`),Se.push(`.monaco-list${be} .monaco-list-row.focused:hover { background-color: ${q.listInactiveFocusBackground}; }`)),q.listInactiveSelectionBackground&&(Se.push(`.monaco-list${be} .monaco-list-row.selected { background-color: ${q.listInactiveSelectionBackground}; }`),Se.push(`.monaco-list${be} .monaco-list-row.selected:hover { background-color: ${q.listInactiveSelectionBackground}; }`)),q.listInactiveSelectionForeground&&Se.push(`.monaco-list${be} .monaco-list-row.selected { color: ${q.listInactiveSelectionForeground}; }`),q.listHoverBackground&&Se.push(`.monaco-list${be}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${q.listHoverBackground}; }`),q.listHoverForeground&&Se.push(`.monaco-list${be}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${q.listHoverForeground}; }`);const ae=(0,r.gI)(q.listFocusAndSelectionOutline,(0,r.gI)(q.listSelectionOutline,(ye=q.listFocusOutline)!==null&&ye!==void 0?ye:""));ae&&Se.push(`.monaco-list${be}:focus .monaco-list-row.focused.selected { outline: 1px solid ${ae}; outline-offset: -1px;}`),q.listFocusOutline&&Se.push(` .monaco-drag-image, .monaco-list${be}:focus .monaco-list-row.focused { outline: 1px solid ${q.listFocusOutline}; outline-offset: -1px; } .monaco-workbench.context-menu-visible .monaco-list${be}.last-focused .monaco-list-row.focused { outline: 1px solid ${q.listFocusOutline}; outline-offset: -1px; } `);const me=(0,r.gI)(q.listSelectionOutline,(ge=q.listInactiveFocusOutline)!==null&&ge!==void 0?ge:"");me&&Se.push(`.monaco-list${be} .monaco-list-row.focused.selected { outline: 1px dotted ${me}; outline-offset: -1px; }`),q.listSelectionOutline&&Se.push(`.monaco-list${be} .monaco-list-row.selected { outline: 1px dotted ${q.listSelectionOutline}; outline-offset: -1px; }`),q.listInactiveFocusOutline&&Se.push(`.monaco-list${be} .monaco-list-row.focused { outline: 1px dotted ${q.listInactiveFocusOutline}; outline-offset: -1px; }`),q.listHoverOutline&&Se.push(`.monaco-list${be} .monaco-list-row:hover { outline: 1px dashed ${q.listHoverOutline}; outline-offset: -1px; }`),q.listDropOverBackground&&Se.push(` .monaco-list${be}.drop-target, .monaco-list${be} .monaco-list-rows.drop-target, .monaco-list${be} .monaco-list-row.drop-target { background-color: ${q.listDropOverBackground} !important; color: inherit !important; } `),q.listDropBetweenBackground&&(Se.push(` .monaco-list${be} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before, .monaco-list${be} .monaco-list-row.drop-target-before::before { content: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px; background-color: ${q.listDropBetweenBackground}; }`),Se.push(` .monaco-list${be} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after, .monaco-list${be} .monaco-list-row.drop-target-after::after { content: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px; background-color: ${q.listDropBetweenBackground}; }`)),q.tableColumnsBorder&&Se.push(` .monaco-table > .monaco-split-view2, .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before, .monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2, .monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before { border-color: ${q.tableColumnsBorder}; } .monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2, .monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before { border-color: transparent; } `),q.tableOddRowsBackgroundColor&&Se.push(` .monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr, .monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr, .monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr { background-color: ${q.tableOddRowsBackgroundColor}; } `),this.styleElement.textContent=Se.join(` `)}}const he={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:S.Q1.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:S.Q1.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:S.Q1.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0},ve={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}}};function Ce(Qe,q){const ye=Qe.indexOf(q);if(ye===-1)return[];const ge=[];let be=ye-1;for(;be>=0&&Qe[be]===q-(ye-be);)ge.push(Qe[be--]);for(ge.reverse(),be=ye;be=Qe.length)ye.push(q[be++]);else if(be>=q.length)ye.push(Qe[ge++]);else if(Qe[ge]===q[be]){ye.push(Qe[ge]),ge++,be++;continue}else Qe[ge]=Qe.length)ye.push(q[be++]);else if(be>=q.length)ye.push(Qe[ge++]);else if(Qe[ge]===q[be]){ge++,be++;continue}else Qe[ge]Qe-q;class De{constructor(q,ye){this._templateId=q,this.renderers=ye}get templateId(){return this._templateId}renderTemplate(q){return this.renderers.map(ye=>ye.renderTemplate(q))}renderElement(q,ye,ge,be){let Se=0;for(const ae of this.renderers)ae.renderElement(q,ye,ge[Se++],be)}disposeElement(q,ye,ge,be){var Se;let ae=0;for(const me of this.renderers)(Se=me.disposeElement)===null||Se===void 0||Se.call(me,q,ye,ge[ae],be),ae+=1}disposeTemplate(q){let ye=0;for(const ge of this.renderers)ge.disposeTemplate(q[ye++])}}class Te{constructor(q){this.accessibilityProvider=q,this.templateId="a18n"}renderTemplate(q){return{container:q,disposables:new s.Cm}}renderElement(q,ye,ge){const be=this.accessibilityProvider.getAriaLabel(q),Se=be&&typeof be!="string"?be:(0,h.lk)(be);ge.disposables.add((0,h.fm)(me=>{this.setAriaLabel(me.readObservable(Se),ge.container)}));const ae=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(q);typeof ae=="number"?ge.container.setAttribute("aria-level",`${ae}`):ge.container.removeAttribute("aria-level")}setAriaLabel(q,ye){q?ye.setAttribute("aria-label",q):ye.removeAttribute("aria-label")}disposeElement(q,ye,ge,be){ge.disposables.clear()}disposeTemplate(q){q.disposables.dispose()}}class He{constructor(q,ye){this.list=q,this.dnd=ye}getDragElements(q){const ye=this.list.getSelectedElements();return ye.indexOf(q)>-1?ye:[q]}getDragURI(q){return this.dnd.getDragURI(q)}getDragLabel(q,ye){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(q,ye)}onDragStart(q,ye){var ge,be;(be=(ge=this.dnd).onDragStart)===null||be===void 0||be.call(ge,q,ye)}onDragOver(q,ye,ge,be,Se){return this.dnd.onDragOver(q,ye,ge,be,Se)}onDragLeave(q,ye,ge,be){var Se,ae;(ae=(Se=this.dnd).onDragLeave)===null||ae===void 0||ae.call(Se,q,ye,ge,be)}onDragEnd(q){var ye,ge;(ge=(ye=this.dnd).onDragEnd)===null||ge===void 0||ge.call(ye,q)}drop(q,ye,ge,be,Se){this.dnd.drop(q,ye,ge,be,Se)}dispose(){this.dnd.dispose()}}class qe{get onDidChangeFocus(){return d.Jh.map(this.eventBufferer.wrapEvent(this.focus.onChange),q=>this.toListEvent(q),this.disposables)}get onDidChangeSelection(){return d.Jh.map(this.eventBufferer.wrapEvent(this.selection.onChange),q=>this.toListEvent(q),this.disposables)}get domId(){return this.view.domId}get onDidScroll(){return this.view.onDidScroll}get onMouseClick(){return this.view.onMouseClick}get onMouseDblClick(){return this.view.onMouseDblClick}get onMouseMiddleClick(){return this.view.onMouseMiddleClick}get onPointer(){return this.mouseController.onPointer}get onMouseDown(){return this.view.onMouseDown}get onMouseOver(){return this.view.onMouseOver}get onMouseOut(){return this.view.onMouseOut}get onTouchStart(){return this.view.onTouchStart}get onTap(){return this.view.onTap}get onContextMenu(){let q=!1;const ye=d.Jh.chain(this.disposables.add(new F.f(this.view.domNode,"keydown")).event,Se=>Se.map(ae=>new k.Z(ae)).filter(ae=>q=ae.keyCode===58||ae.shiftKey&&ae.keyCode===68).map(ae=>r.fs.stop(ae,!0)).filter(()=>!1)),ge=d.Jh.chain(this.disposables.add(new F.f(this.view.domNode,"keyup")).event,Se=>Se.forEach(()=>q=!1).map(ae=>new k.Z(ae)).filter(ae=>ae.keyCode===58||ae.shiftKey&&ae.keyCode===68).map(ae=>r.fs.stop(ae,!0)).map(({browserEvent:ae})=>{const me=this.getFocus(),fe=me.length?me[0]:void 0,le=typeof fe<"u"?this.view.element(fe):void 0,oe=typeof fe<"u"?this.view.domElement(fe):this.view.domNode;return{index:fe,element:le,anchor:oe,browserEvent:ae}})),be=d.Jh.chain(this.view.onContextMenu,Se=>Se.filter(ae=>!q).map(({element:ae,index:me,browserEvent:fe})=>({element:ae,index:me,anchor:new C.P((0,r.zk)(this.view.domNode),fe),browserEvent:fe})));return d.Jh.any(ye,ge,be)}get onKeyDown(){return this.disposables.add(new F.f(this.view.domNode,"keydown")).event}get onDidFocus(){return d.Jh.signal(this.disposables.add(new F.f(this.view.domNode,"focus",!0)).event)}get onDidBlur(){return d.Jh.signal(this.disposables.add(new F.f(this.view.domNode,"blur",!0)).event)}constructor(q,ye,ge,be,Se=ve){var ae,me,fe,le;this.user=q,this._options=Se,this.focus=new b("focused"),this.anchor=new b("anchor"),this.eventBufferer=new d.at,this._ariaLabel="",this.disposables=new s.Cm,this._onDidDispose=new d.vl,this.onDidDispose=this._onDidDispose.event;const oe=this._options.accessibilityProvider&&this._options.accessibilityProvider.getWidgetRole?(ae=this._options.accessibilityProvider)===null||ae===void 0?void 0:ae.getWidgetRole():"list";this.selection=new O(oe!=="listbox");const ne=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=Se.accessibilityProvider,this.accessibilityProvider&&(ne.push(new Te(this.accessibilityProvider)),(fe=(me=this.accessibilityProvider).onDidChangeActiveDescendant)===null||fe===void 0||fe.call(me,this.onDidChangeActiveDescendant,this,this.disposables)),be=be.map(Le=>new De(Le.templateId,[...ne,Le]));const de={...Se,dnd:Se.dnd&&new He(this,Se.dnd)};if(this.view=this.createListView(ye,ge,be,de),this.view.domNode.setAttribute("role",oe),Se.styleController)this.styleController=Se.styleController(this.view.domId);else{const Le=(0,r.li)(this.view.domNode);this.styleController=new D(Le,this.view.domId)}if(this.spliceable=new g([new w(this.focus,this.view,Se.identityProvider),new w(this.selection,this.view,Se.identityProvider),new w(this.anchor,this.view,Se.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.anchor),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.disposables.add(new V(this,this.view)),(typeof Se.keyboardSupport!="boolean"||Se.keyboardSupport)&&(this.keyboardController=new W(this,this.view,Se),this.disposables.add(this.keyboardController)),Se.keyboardNavigationLabelProvider){const Le=Se.keyboardNavigationDelegate||J;this.typeNavigationController=new B(this,this.view,Se.keyboardNavigationLabelProvider,(le=Se.keyboardNavigationEventFilter)!==null&&le!==void 0?le:()=>!0,Le),this.disposables.add(this.typeNavigationController)}this.mouseController=this.createMouseController(Se),this.disposables.add(this.mouseController),this.onDidChangeFocus(this._onFocusChange,this,this.disposables),this.onDidChangeSelection(this._onSelectionChange,this,this.disposables),this.accessibilityProvider&&(this.ariaLabel=this.accessibilityProvider.getWidgetAriaLabel()),this._options.multipleSelectionSupport!==!1&&this.view.domNode.setAttribute("aria-multiselectable","true")}createListView(q,ye,ge,be){return new u.uO(q,ye,ge,be)}createMouseController(q){return new te(this)}updateOptions(q={}){var ye,ge;this._options={...this._options,...q},(ye=this.typeNavigationController)===null||ye===void 0||ye.updateOptions(this._options),this._options.multipleSelectionController!==void 0&&(this._options.multipleSelectionSupport?this.view.domNode.setAttribute("aria-multiselectable","true"):this.view.domNode.removeAttribute("aria-multiselectable")),this.mouseController.updateOptions(q),(ge=this.keyboardController)===null||ge===void 0||ge.updateOptions(q),this.view.updateOptions(q)}get options(){return this._options}splice(q,ye,ge=[]){if(q<0||q>this.view.length)throw new m(this.user,`Invalid start index: ${q}`);if(ye<0)throw new m(this.user,`Invalid delete count: ${ye}`);ye===0&&ge.length===0||this.eventBufferer.bufferEvents(()=>this.spliceable.splice(q,ye,ge))}rerender(){this.view.rerender()}element(q){return this.view.element(q)}indexOf(q){return this.view.indexOf(q)}indexAt(q){return this.view.indexAt(q)}get length(){return this.view.length}get contentHeight(){return this.view.contentHeight}get onDidChangeContentHeight(){return this.view.onDidChangeContentHeight}get scrollTop(){return this.view.getScrollTop()}set scrollTop(q){this.view.setScrollTop(q)}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get firstVisibleIndex(){return this.view.firstVisibleIndex}get ariaLabel(){return this._ariaLabel}set ariaLabel(q){this._ariaLabel=q,this.view.domNode.setAttribute("aria-label",q)}domFocus(){this.view.domNode.focus({preventScroll:!0})}layout(q,ye){this.view.layout(q,ye)}setSelection(q,ye){for(const ge of q)if(ge<0||ge>=this.length)throw new m(this.user,`Invalid index ${ge}`);this.selection.set(q,ye)}getSelection(){return this.selection.get()}getSelectedElements(){return this.getSelection().map(q=>this.view.element(q))}setAnchor(q){if(typeof q>"u"){this.anchor.set([]);return}if(q<0||q>=this.length)throw new m(this.user,`Invalid index ${q}`);this.anchor.set([q])}getAnchor(){return(0,x.Fy)(this.anchor.get(),void 0)}getAnchorElement(){const q=this.getAnchor();return typeof q>"u"?void 0:this.element(q)}setFocus(q,ye){for(const ge of q)if(ge<0||ge>=this.length)throw new m(this.user,`Invalid index ${ge}`);this.focus.set(q,ye)}focusNext(q=1,ye=!1,ge,be){if(this.length===0)return;const Se=this.focus.get(),ae=this.findNextIndex(Se.length>0?Se[0]+q:0,ye,be);ae>-1&&this.setFocus([ae],ge)}focusPrevious(q=1,ye=!1,ge,be){if(this.length===0)return;const Se=this.focus.get(),ae=this.findPreviousIndex(Se.length>0?Se[0]-q:0,ye,be);ae>-1&&this.setFocus([ae],ge)}async focusNextPage(q,ye){let ge=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);ge=ge===0?0:ge-1;const be=this.getFocus()[0];if(be!==ge&&(be===void 0||ge>be)){const Se=this.findPreviousIndex(ge,!1,ye);Se>-1&&be!==Se?this.setFocus([Se],q):this.setFocus([ge],q)}else{const Se=this.view.getScrollTop();let ae=Se+this.view.renderHeight;ge>be&&(ae-=this.view.elementHeight(ge)),this.view.setScrollTop(ae),this.view.getScrollTop()!==Se&&(this.setFocus([]),await(0,I.wR)(0),await this.focusNextPage(q,ye))}}async focusPreviousPage(q,ye,ge=()=>0){let be;const Se=ge(),ae=this.view.getScrollTop()+Se;ae===0?be=this.view.indexAt(ae):be=this.view.indexAfter(ae-1);const me=this.getFocus()[0];if(me!==be&&(me===void 0||me>=be)){const fe=this.findNextIndex(be,!1,ye);fe>-1&&me!==fe?this.setFocus([fe],q):this.setFocus([be],q)}else{const fe=ae;this.view.setScrollTop(ae-this.view.renderHeight-Se),this.view.getScrollTop()+ge()!==fe&&(this.setFocus([]),await(0,I.wR)(0),await this.focusPreviousPage(q,ye,ge))}}focusLast(q,ye){if(this.length===0)return;const ge=this.findPreviousIndex(this.length-1,!1,ye);ge>-1&&this.setFocus([ge],q)}focusFirst(q,ye){this.focusNth(0,q,ye)}focusNth(q,ye,ge){if(this.length===0)return;const be=this.findNextIndex(q,!1,ge);be>-1&&this.setFocus([be],ye)}findNextIndex(q,ye=!1,ge){for(let be=0;be=this.length&&!ye)return-1;if(q=q%this.length,!ge||ge(this.element(q)))return q;q++}return-1}findPreviousIndex(q,ye=!1,ge){for(let be=0;bethis.view.element(q))}reveal(q,ye,ge=0){if(q<0||q>=this.length)throw new m(this.user,`Invalid index ${q}`);const be=this.view.getScrollTop(),Se=this.view.elementTop(q),ae=this.view.elementHeight(q);if((0,c.Et)(ye)){const me=ae-this.view.renderHeight+ge;this.view.setScrollTop(me*(0,n.qE)(ye,0,1)+Se-ge)}else{const me=Se+ae,fe=be+this.view.renderHeight;Se=fe||(Se=fe&&ae>=this.view.renderHeight?this.view.setScrollTop(Se-ge):me>=fe&&this.view.setScrollTop(me-this.view.renderHeight))}}getRelativeTop(q,ye=0){if(q<0||q>=this.length)throw new m(this.user,`Invalid index ${q}`);const ge=this.view.getScrollTop(),be=this.view.elementTop(q),Se=this.view.elementHeight(q);if(bege+this.view.renderHeight)return null;const ae=Se-this.view.renderHeight+ye;return Math.abs((ge+ye-be)/ae)}getHTMLElement(){return this.view.domNode}getScrollableElement(){return this.view.scrollableElementDomNode}getElementID(q){return this.view.getElementDomId(q)}getElementTop(q){return this.view.elementTop(q)}style(q){this.styleController.style(q)}toListEvent({indexes:q,browserEvent:ye}){return{indexes:q,elements:q.map(ge=>this.view.element(ge)),browserEvent:ye}}_onFocusChange(){const q=this.focus.get();this.view.domNode.classList.toggle("element-focused",q.length>0),this.onDidChangeActiveDescendant()}onDidChangeActiveDescendant(){var q;const ye=this.focus.get();if(ye.length>0){let ge;!((q=this.accessibilityProvider)===null||q===void 0)&&q.getActiveDescendantId&&(ge=this.accessibilityProvider.getActiveDescendantId(this.view.element(ye[0]))),this.view.domNode.setAttribute("aria-activedescendant",ge||this.view.getElementDomId(ye[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")}_onSelectionChange(){const q=this.selection.get();this.view.domNode.classList.toggle("selection-none",q.length===0),this.view.domNode.classList.toggle("selection-single",q.length===1),this.view.domNode.classList.toggle("selection-multiple",q.length>1)}dispose(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidDispose.dispose()}}v([f.B],qe.prototype,"onDidChangeFocus",null),v([f.B],qe.prototype,"onDidChangeSelection",null),v([f.B],qe.prototype,"onContextMenu",null),v([f.B],qe.prototype,"onKeyDown",null),v([f.B],qe.prototype,"onDidFocus",null),v([f.B],qe.prototype,"onDidBlur",null)},"./node_modules/monaco-editor/esm/vs/base/browser/ui/resizable/resizable.js":function(pt,Me,e){e.d(Me,{v:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");class L{constructor(){this._onDidWillResize=new k.vl,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new k.vl,this.onDidResize=this._onDidResize.event,this._sashListener=new M.Cm,this._size=new r.fg(0,0),this._minSize=new r.fg(0,0),this._maxSize=new r.fg(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new F.m(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new F.m(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new F.m(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:F.B.North}),this._southSash=new F.m(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:F.B.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let x,I=0,S=0;this._sashListener.add(k.Jh.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{x===void 0&&(this._onDidWillResize.fire(),x=this._size,I=0,S=0)})),this._sashListener.add(k.Jh.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{x!==void 0&&(x=void 0,I=0,S=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(f=>{x&&(S=f.currentX-f.startX,this.layout(x.height+I,x.width+S),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(f=>{x&&(S=-(f.currentX-f.startX),this.layout(x.height+I,x.width+S),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(f=>{x&&(I=-(f.currentY-f.startY),this.layout(x.height+I,x.width+S),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(f=>{x&&(I=f.currentY-f.startY,this.layout(x.height+I,x.width+S),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(k.Jh.any(this._eastSash.onDidReset,this._westSash.onDidReset)(f=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(k.Jh.any(this._northSash.onDidReset,this._southSash.onDidReset)(f=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(x,I,S,f){this._northSash.state=x?3:0,this._eastSash.state=I?3:0,this._southSash.state=S?3:0,this._westSash.state=f?3:0}layout(x=this.size.height,I=this.size.width){const{height:S,width:f}=this._minSize,{height:d,width:a}=this._maxSize;x=Math.max(S,Math.min(d,x)),I=Math.max(f,Math.min(a,I));const s=new r.fg(I,x);r.fg.equals(s,this._size)||(this.domNode.style.height=x+"px",this.domNode.style.width=I+"px",this._size=s,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(x){this._maxSize=x}get maxSize(){return this._maxSize}set minSize(x){this._minSize=x}get minSize(){return this._minSize}set preferredSize(x){this._preferredSize=x}get preferredSize(){return this._preferredSize}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash.js":function(pt,Me,e){e.d(Me,{B:function(){return d},m:function(){return h}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/event.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/touch.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/decorators.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),S=function(v,p,b,O){var w=arguments.length,j=w<3?p:O===null?O=Object.getOwnPropertyDescriptor(p,b):O,U;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")j=Reflect.decorate(v,p,b,O);else for(var K=v.length-1;K>=0;K--)(U=v[K])&&(j=(w<3?U(j):w>3?U(p,b,j):U(p,b))||j);return w>3&&j&&Object.defineProperty(p,b,j),j};const f=!1;var d;(function(v){v.North="north",v.South="south",v.East="east",v.West="west"})(d||(d={}));let a=4;const s=new g.vl;let n=300;const i=new g.vl;class c{constructor(p){this.el=p,this.disposables=new x.Cm}get onPointerMove(){return this.disposables.add(new F.f((0,r.zk)(this.el),"mousemove")).event}get onPointerUp(){return this.disposables.add(new F.f((0,r.zk)(this.el),"mouseup")).event}dispose(){this.disposables.dispose()}}S([L.B],c.prototype,"onPointerMove",null),S([L.B],c.prototype,"onPointerUp",null);class m{get onPointerMove(){return this.disposables.add(new F.f(this.el,k.B.Change)).event}get onPointerUp(){return this.disposables.add(new F.f(this.el,k.B.End)).event}constructor(p){this.el=p,this.disposables=new x.Cm}dispose(){this.disposables.dispose()}}S([L.B],m.prototype,"onPointerMove",null),S([L.B],m.prototype,"onPointerUp",null);class u{get onPointerMove(){return this.factory.onPointerMove}get onPointerUp(){return this.factory.onPointerUp}constructor(p){this.factory=p}dispose(){}}S([L.B],u.prototype,"onPointerMove",null),S([L.B],u.prototype,"onPointerUp",null);const C="pointer-events-disabled";class h extends x.jG{get state(){return this._state}get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}set state(p){this._state!==p&&(this.el.classList.toggle("disabled",p===0),this.el.classList.toggle("minimum",p===1),this.el.classList.toggle("maximum",p===2),this._state=p,this.onDidEnablementChange.fire(p))}set orthogonalStartSash(p){if(this._orthogonalStartSash!==p){if(this.orthogonalStartDragHandleDisposables.clear(),this.orthogonalStartSashDisposables.clear(),p){const b=O=>{this.orthogonalStartDragHandleDisposables.clear(),O!==0&&(this._orthogonalStartDragHandle=(0,r.BC)(this.el,(0,r.$)(".orthogonal-drag-handle.start")),this.orthogonalStartDragHandleDisposables.add((0,x.s)(()=>this._orthogonalStartDragHandle.remove())),this.orthogonalStartDragHandleDisposables.add(new F.f(this._orthogonalStartDragHandle,"mouseenter")).event(()=>h.onMouseEnter(p),void 0,this.orthogonalStartDragHandleDisposables),this.orthogonalStartDragHandleDisposables.add(new F.f(this._orthogonalStartDragHandle,"mouseleave")).event(()=>h.onMouseLeave(p),void 0,this.orthogonalStartDragHandleDisposables))};this.orthogonalStartSashDisposables.add(p.onDidEnablementChange.event(b,this)),b(p.state)}this._orthogonalStartSash=p}}set orthogonalEndSash(p){if(this._orthogonalEndSash!==p){if(this.orthogonalEndDragHandleDisposables.clear(),this.orthogonalEndSashDisposables.clear(),p){const b=O=>{this.orthogonalEndDragHandleDisposables.clear(),O!==0&&(this._orthogonalEndDragHandle=(0,r.BC)(this.el,(0,r.$)(".orthogonal-drag-handle.end")),this.orthogonalEndDragHandleDisposables.add((0,x.s)(()=>this._orthogonalEndDragHandle.remove())),this.orthogonalEndDragHandleDisposables.add(new F.f(this._orthogonalEndDragHandle,"mouseenter")).event(()=>h.onMouseEnter(p),void 0,this.orthogonalEndDragHandleDisposables),this.orthogonalEndDragHandleDisposables.add(new F.f(this._orthogonalEndDragHandle,"mouseleave")).event(()=>h.onMouseLeave(p),void 0,this.orthogonalEndDragHandleDisposables))};this.orthogonalEndSashDisposables.add(p.onDidEnablementChange.event(b,this)),b(p.state)}this._orthogonalEndSash=p}}constructor(p,b,O){super(),this.hoverDelay=n,this.hoverDelayer=this._register(new M.ve(this.hoverDelay)),this._state=3,this.onDidEnablementChange=this._register(new g.vl),this._onDidStart=this._register(new g.vl),this._onDidChange=this._register(new g.vl),this._onDidReset=this._register(new g.vl),this._onDidEnd=this._register(new g.vl),this.orthogonalStartSashDisposables=this._register(new x.Cm),this.orthogonalStartDragHandleDisposables=this._register(new x.Cm),this.orthogonalEndSashDisposables=this._register(new x.Cm),this.orthogonalEndDragHandleDisposables=this._register(new x.Cm),this.onDidStart=this._onDidStart.event,this.onDidChange=this._onDidChange.event,this.onDidReset=this._onDidReset.event,this.onDidEnd=this._onDidEnd.event,this.linkedSash=void 0,this.el=(0,r.BC)(p,(0,r.$)(".monaco-sash")),O.orthogonalEdge&&this.el.classList.add(`orthogonal-edge-${O.orthogonalEdge}`),I.zx&&this.el.classList.add("mac");const w=this._register(new F.f(this.el,"mousedown")).event;this._register(w(T=>this.onPointerStart(T,new c(p)),this));const j=this._register(new F.f(this.el,"dblclick")).event;this._register(j(this.onPointerDoublePress,this));const U=this._register(new F.f(this.el,"mouseenter")).event;this._register(U(()=>h.onMouseEnter(this)));const K=this._register(new F.f(this.el,"mouseleave")).event;this._register(K(()=>h.onMouseLeave(this))),this._register(k.q.addTarget(this.el));const G=this._register(new F.f(this.el,k.B.Start)).event;this._register(G(T=>this.onPointerStart(T,new m(this.el)),this));const P=this._register(new F.f(this.el,k.B.Tap)).event;let A;this._register(P(T=>{if(A){clearTimeout(A),A=void 0,this.onPointerDoublePress(T);return}clearTimeout(A),A=setTimeout(()=>A=void 0,250)},this)),typeof O.size=="number"?(this.size=O.size,O.orientation===0?this.el.style.width=`${this.size}px`:this.el.style.height=`${this.size}px`):(this.size=a,this._register(s.event(T=>{this.size=T,this.layout()}))),this._register(i.event(T=>this.hoverDelay=T)),this.layoutProvider=b,this.orthogonalStartSash=O.orthogonalStartSash,this.orthogonalEndSash=O.orthogonalEndSash,this.orientation=O.orientation||0,this.orientation===1?(this.el.classList.add("horizontal"),this.el.classList.remove("vertical")):(this.el.classList.remove("horizontal"),this.el.classList.add("vertical")),this.el.classList.toggle("debug",f),this.layout()}onPointerStart(p,b){r.fs.stop(p);let O=!1;if(!p.__orthogonalSashEvent){const $=this.getOrthogonalSash(p);$&&(O=!0,p.__orthogonalSashEvent=!0,$.onPointerStart(p,new u(b)))}if(this.linkedSash&&!p.__linkedSashEvent&&(p.__linkedSashEvent=!0,this.linkedSash.onPointerStart(p,new u(b))),!this.state)return;const w=this.el.ownerDocument.getElementsByTagName("iframe");for(const $ of w)$.classList.add(C);const j=p.pageX,U=p.pageY,K=p.altKey,G={startX:j,currentX:j,startY:U,currentY:U,altKey:K};this.el.classList.add("active"),this._onDidStart.fire(G);const P=(0,r.li)(this.el),A=()=>{let $="";O?$="all-scroll":this.orientation===1?this.state===1?$="s-resize":this.state===2?$="n-resize":$=I.zx?"row-resize":"ns-resize":this.state===1?$="e-resize":this.state===2?$="w-resize":$=I.zx?"col-resize":"ew-resize",P.textContent=`* { cursor: ${$} !important; }`},T=new x.Cm;A(),O||this.onDidEnablementChange.event(A,null,T);const E=$=>{r.fs.stop($,!1);const z={startX:j,currentX:$.pageX,startY:U,currentY:$.pageY,altKey:K};this._onDidChange.fire(z)},W=$=>{r.fs.stop($,!1),this.el.removeChild(P),this.el.classList.remove("active"),this._onDidEnd.fire(),T.dispose();for(const z of w)z.classList.remove(C)};b.onPointerMove(E,null,T),b.onPointerUp(W,null,T),T.add(b)}onPointerDoublePress(p){const b=this.getOrthogonalSash(p);b&&b._onDidReset.fire(),this.linkedSash&&this.linkedSash._onDidReset.fire(),this._onDidReset.fire()}static onMouseEnter(p,b=!1){p.el.classList.contains("active")?(p.hoverDelayer.cancel(),p.el.classList.add("hover")):p.hoverDelayer.trigger(()=>p.el.classList.add("hover"),p.hoverDelay).then(void 0,()=>{}),!b&&p.linkedSash&&h.onMouseEnter(p.linkedSash,!0)}static onMouseLeave(p,b=!1){p.hoverDelayer.cancel(),p.el.classList.remove("hover"),!b&&p.linkedSash&&h.onMouseLeave(p.linkedSash,!0)}clearSashHoverState(){h.onMouseLeave(this)}layout(){if(this.orientation===0){const p=this.layoutProvider;this.el.style.left=p.getVerticalSashLeft(this)-this.size/2+"px",p.getVerticalSashTop&&(this.el.style.top=p.getVerticalSashTop(this)+"px"),p.getVerticalSashHeight&&(this.el.style.height=p.getVerticalSashHeight(this)+"px")}else{const p=this.layoutProvider;this.el.style.top=p.getHorizontalSashTop(this)-this.size/2+"px",p.getHorizontalSashLeft&&(this.el.style.left=p.getHorizontalSashLeft(this)+"px"),p.getHorizontalSashWidth&&(this.el.style.width=p.getHorizontalSashWidth(this)+"px")}}getOrthogonalSash(p){var b;const O=(b=p.initialTarget)!==null&&b!==void 0?b:p.target;if(!(!O||!(O instanceof HTMLElement))&&O.classList.contains("orthogonal-drag-handle"))return O.classList.contains("start")?this.orthogonalStartSash:this.orthogonalEndSash}dispose(){super.dispose(),this.el.remove()}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement.js":function(pt,Me,e){e.d(Me,{MU:function(){return P},QC:function(){return j},Se:function(){return K},oO:function(){return G}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/fastDomNode.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js"),L=e("./node_modules/monaco-editor/esm/vs/base/browser/globalPointerMoveMonitor.js"),g=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/widget.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js");const S=11;class f extends g.x{constructor(E){super(),this._onActivate=E.onActivate,this.bgDomNode=document.createElement("div"),this.bgDomNode.className="arrow-background",this.bgDomNode.style.position="absolute",this.bgDomNode.style.width=E.bgWidth+"px",this.bgDomNode.style.height=E.bgHeight+"px",typeof E.top<"u"&&(this.bgDomNode.style.top="0px"),typeof E.left<"u"&&(this.bgDomNode.style.left="0px"),typeof E.bottom<"u"&&(this.bgDomNode.style.bottom="0px"),typeof E.right<"u"&&(this.bgDomNode.style.right="0px"),this.domNode=document.createElement("div"),this.domNode.className=E.className,this.domNode.classList.add(...I.L.asClassNameArray(E.icon)),this.domNode.style.position="absolute",this.domNode.style.width=S+"px",this.domNode.style.height=S+"px",typeof E.top<"u"&&(this.domNode.style.top=E.top+"px"),typeof E.left<"u"&&(this.domNode.style.left=E.left+"px"),typeof E.bottom<"u"&&(this.domNode.style.bottom=E.bottom+"px"),typeof E.right<"u"&&(this.domNode.style.right=E.right+"px"),this._pointerMoveMonitor=this._register(new L._),this._register(F.b2(this.bgDomNode,F.Bx.POINTER_DOWN,W=>this._arrowPointerDown(W))),this._register(F.b2(this.domNode,F.Bx.POINTER_DOWN,W=>this._arrowPointerDown(W))),this._pointerdownRepeatTimer=this._register(new F.Be),this._pointerdownScheduleRepeatTimer=this._register(new x.pc)}_arrowPointerDown(E){if(!E.target||!(E.target instanceof Element))return;const W=()=>{this._pointerdownRepeatTimer.cancelAndSet(()=>this._onActivate(),1e3/24,F.zk(E))};this._onActivate(),this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancelAndSet(W,200),this._pointerMoveMonitor.startMonitoring(E.target,E.pointerId,E.buttons,$=>{},()=>{this._pointerdownRepeatTimer.cancel(),this._pointerdownScheduleRepeatTimer.cancel()}),E.preventDefault()}}var d=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");class a extends d.jG{constructor(E,W,$){super(),this._visibility=E,this._visibleClassName=W,this._invisibleClassName=$,this._domNode=null,this._isVisible=!1,this._isNeeded=!1,this._rawShouldBeVisible=!1,this._shouldBeVisible=!1,this._revealTimer=this._register(new x.pc)}setVisibility(E){this._visibility!==E&&(this._visibility=E,this._updateShouldBeVisible())}setShouldBeVisible(E){this._rawShouldBeVisible=E,this._updateShouldBeVisible()}_applyVisibilitySetting(){return this._visibility===2?!1:this._visibility===3?!0:this._rawShouldBeVisible}_updateShouldBeVisible(){const E=this._applyVisibilitySetting();this._shouldBeVisible!==E&&(this._shouldBeVisible=E,this.ensureVisibility())}setIsNeeded(E){this._isNeeded!==E&&(this._isNeeded=E,this.ensureVisibility())}setDomNode(E){this._domNode=E,this._domNode.setClassName(this._invisibleClassName),this.setShouldBeVisible(!1)}ensureVisibility(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)}_reveal(){this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(()=>{var E;(E=this._domNode)===null||E===void 0||E.setClassName(this._visibleClassName)},0))}_hide(E){var W;this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,(W=this._domNode)===null||W===void 0||W.setClassName(this._invisibleClassName+(E?" fade":"")))}}var s=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");const n=140;class i extends g.x{constructor(E){super(),this._lazyRender=E.lazyRender,this._host=E.host,this._scrollable=E.scrollable,this._scrollByPage=E.scrollByPage,this._scrollbarState=E.scrollbarState,this._visibilityController=this._register(new a(E.visibility,"visible scrollbar "+E.extraScrollbarClassName,"invisible scrollbar "+E.extraScrollbarClassName)),this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._pointerMoveMonitor=this._register(new L._),this._shouldRender=!0,this.domNode=(0,k.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this._visibilityController.setDomNode(this.domNode),this.domNode.setPosition("absolute"),this._register(F.ko(this.domNode.domNode,F.Bx.POINTER_DOWN,W=>this._domNodePointerDown(W)))}_createArrow(E){const W=this._register(new f(E));this.domNode.domNode.appendChild(W.bgDomNode),this.domNode.domNode.appendChild(W.domNode)}_createSlider(E,W,$,z){this.slider=(0,k.Z)(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(E),this.slider.setLeft(W),typeof $=="number"&&this.slider.setWidth($),typeof z=="number"&&this.slider.setHeight(z),this.slider.setLayerHinting(!0),this.slider.setContain("strict"),this.domNode.domNode.appendChild(this.slider.domNode),this._register(F.ko(this.slider.domNode,F.Bx.POINTER_DOWN,J=>{J.button===0&&(J.preventDefault(),this._sliderPointerDown(J))})),this.onclick(this.slider.domNode,J=>{J.leftButton&&J.stopPropagation()})}_onElementSize(E){return this._scrollbarState.setVisibleSize(E)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollSize(E){return this._scrollbarState.setScrollSize(E)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}_onElementScrollPosition(E){return this._scrollbarState.setScrollPosition(E)&&(this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded()),this._shouldRender=!0,this._lazyRender||this.render()),this._shouldRender}beginReveal(){this._visibilityController.setShouldBeVisible(!0)}beginHide(){this._visibilityController.setShouldBeVisible(!1)}render(){this._shouldRender&&(this._shouldRender=!1,this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize()),this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition()))}_domNodePointerDown(E){E.target===this.domNode.domNode&&this._onPointerDown(E)}delegatePointerDown(E){const W=this.domNode.domNode.getClientRects()[0].top,$=W+this._scrollbarState.getSliderPosition(),z=W+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),J=this._sliderPointerPosition(E);$<=J&&J<=z?E.button===0&&(E.preventDefault(),this._sliderPointerDown(E)):this._onPointerDown(E)}_onPointerDown(E){let W,$;if(E.target===this.domNode.domNode&&typeof E.offsetX=="number"&&typeof E.offsetY=="number")W=E.offsetX,$=E.offsetY;else{const J=F.BK(this.domNode.domNode);W=E.pageX-J.left,$=E.pageY-J.top}const z=this._pointerDownRelativePosition(W,$);this._setDesiredScrollPositionNow(this._scrollByPage?this._scrollbarState.getDesiredScrollPositionFromOffsetPaged(z):this._scrollbarState.getDesiredScrollPositionFromOffset(z)),E.button===0&&(E.preventDefault(),this._sliderPointerDown(E))}_sliderPointerDown(E){if(!E.target||!(E.target instanceof Element))return;const W=this._sliderPointerPosition(E),$=this._sliderOrthogonalPointerPosition(E),z=this._scrollbarState.clone();this.slider.toggleClassName("active",!0),this._pointerMoveMonitor.startMonitoring(E.target,E.pointerId,E.buttons,J=>{const B=this._sliderOrthogonalPointerPosition(J),V=Math.abs(B-$);if(s.uF&&V>n){this._setDesiredScrollPositionNow(z.getScrollPosition());return}const X=this._sliderPointerPosition(J)-W;this._setDesiredScrollPositionNow(z.getDesiredScrollPositionFromDelta(X))},()=>{this.slider.toggleClassName("active",!1),this._host.onDragEnd()}),this._host.onDragStart()}_setDesiredScrollPositionNow(E){const W={};this.writeScrollPosition(W,E),this._scrollable.setScrollPositionNow(W)}updateScrollbarSize(E){this._updateScrollbarSize(E),this._scrollbarState.setScrollbarSize(E),this._shouldRender=!0,this._lazyRender||this.render()}isNeeded(){return this._scrollbarState.isNeeded()}}var c=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarState.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js");class u extends i{constructor(E,W,$){const z=E.getScrollDimensions(),J=E.getCurrentScrollPosition();if(super({lazyRender:W.lazyRender,host:$,scrollbarState:new c.m(W.horizontalHasArrows?W.arrowSize:0,W.horizontal===2?0:W.horizontalScrollbarSize,W.vertical===2?0:W.verticalScrollbarSize,z.width,z.scrollWidth,J.scrollLeft),visibility:W.horizontal,extraScrollbarClassName:"horizontal",scrollable:E,scrollByPage:W.scrollByPage}),W.horizontalHasArrows){const B=(W.arrowSize-S)/2,V=(W.horizontalScrollbarSize-S)/2;this._createArrow({className:"scra",icon:m.W.scrollbarButtonLeft,top:V,left:B,bottom:void 0,right:void 0,bgWidth:W.arrowSize,bgHeight:W.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new M.$(null,1,0))}),this._createArrow({className:"scra",icon:m.W.scrollbarButtonRight,top:V,left:void 0,bottom:void 0,right:B,bgWidth:W.arrowSize,bgHeight:W.horizontalScrollbarSize,onActivate:()=>this._host.onMouseWheel(new M.$(null,-1,0))})}this._createSlider(Math.floor((W.horizontalScrollbarSize-W.horizontalSliderSize)/2),0,void 0,W.horizontalSliderSize)}_updateSlider(E,W){this.slider.setWidth(E),this.slider.setLeft(W)}_renderDomNode(E,W){this.domNode.setWidth(E),this.domNode.setHeight(W),this.domNode.setLeft(0),this.domNode.setBottom(0)}onDidScroll(E){return this._shouldRender=this._onElementScrollSize(E.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(E.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(E.width)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(E,W){return E}_sliderPointerPosition(E){return E.pageX}_sliderOrthogonalPointerPosition(E){return E.pageY}_updateScrollbarSize(E){this.slider.setHeight(E)}writeScrollPosition(E,W){E.scrollLeft=W}updateOptions(E){this.updateScrollbarSize(E.horizontal===2?0:E.horizontalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(E.vertical===2?0:E.verticalScrollbarSize),this._visibilityController.setVisibility(E.horizontal),this._scrollByPage=E.scrollByPage}}class C extends i{constructor(E,W,$){const z=E.getScrollDimensions(),J=E.getCurrentScrollPosition();if(super({lazyRender:W.lazyRender,host:$,scrollbarState:new c.m(W.verticalHasArrows?W.arrowSize:0,W.vertical===2?0:W.verticalScrollbarSize,0,z.height,z.scrollHeight,J.scrollTop),visibility:W.vertical,extraScrollbarClassName:"vertical",scrollable:E,scrollByPage:W.scrollByPage}),W.verticalHasArrows){const B=(W.arrowSize-S)/2,V=(W.verticalScrollbarSize-S)/2;this._createArrow({className:"scra",icon:m.W.scrollbarButtonUp,top:B,left:V,bottom:void 0,right:void 0,bgWidth:W.verticalScrollbarSize,bgHeight:W.arrowSize,onActivate:()=>this._host.onMouseWheel(new M.$(null,0,1))}),this._createArrow({className:"scra",icon:m.W.scrollbarButtonDown,top:void 0,left:V,bottom:B,right:void 0,bgWidth:W.verticalScrollbarSize,bgHeight:W.arrowSize,onActivate:()=>this._host.onMouseWheel(new M.$(null,0,-1))})}this._createSlider(0,Math.floor((W.verticalScrollbarSize-W.verticalSliderSize)/2),W.verticalSliderSize,void 0)}_updateSlider(E,W){this.slider.setHeight(E),this.slider.setTop(W)}_renderDomNode(E,W){this.domNode.setWidth(W),this.domNode.setHeight(E),this.domNode.setRight(0),this.domNode.setTop(0)}onDidScroll(E){return this._shouldRender=this._onElementScrollSize(E.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(E.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(E.height)||this._shouldRender,this._shouldRender}_pointerDownRelativePosition(E,W){return W}_sliderPointerPosition(E){return E.pageY}_sliderOrthogonalPointerPosition(E){return E.pageX}_updateScrollbarSize(E){this.slider.setWidth(E)}writeScrollPosition(E,W){E.scrollTop=W}updateOptions(E){this.updateScrollbarSize(E.vertical===2?0:E.verticalScrollbarSize),this._scrollbarState.setOppositeScrollbarSize(0),this._visibilityController.setVisibility(E.vertical),this._scrollByPage=E.scrollByPage}}var h=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),v=e("./node_modules/monaco-editor/esm/vs/base/common/scrollable.js");const p=500,b=50,O=!0;class w{constructor(E,W,$){this.timestamp=E,this.deltaX=W,this.deltaY=$,this.score=0}}class j{constructor(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}isPhysicalMouseWheel(){if(this._front===-1&&this._rear===-1)return!1;let E=1,W=0,$=1,z=this._rear;do{const J=z===this._front?E:Math.pow(2,-$);if(E-=J,W+=this._memory[z].score*J,z===this._front)break;z=(this._capacity+z-1)%this._capacity,$++}while(!0);return W<=.5}acceptStandardWheelEvent(E){if(r.H8){const W=F.zk(E.browserEvent),$=(0,r.pR)(W);this.accept(Date.now(),E.deltaX*$,E.deltaY*$)}else this.accept(Date.now(),E.deltaX,E.deltaY)}accept(E,W,$){let z=null;const J=new w(E,W,$);this._front===-1&&this._rear===-1?(this._memory[0]=J,this._front=0,this._rear=0):(z=this._memory[this._rear],this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=J),J.score=this._computeScore(J,z)}_computeScore(E,W){if(Math.abs(E.deltaX)>0&&Math.abs(E.deltaY)>0)return 1;let $=.5;if((!this._isAlmostInt(E.deltaX)||!this._isAlmostInt(E.deltaY))&&($+=.25),W){const z=Math.abs(E.deltaX),J=Math.abs(E.deltaY),B=Math.abs(W.deltaX),V=Math.abs(W.deltaY),Y=Math.max(Math.min(z,B),1),X=Math.max(Math.min(J,V),1),ie=Math.max(z,B),re=Math.max(J,V);ie%Y===0&&re%X===0&&($-=.5)}return Math.min(Math.max($,0),1)}_isAlmostInt(E){return Math.abs(Math.round(E)-E)<.01}}j.INSTANCE=new j;class U extends g.x{get options(){return this._options}constructor(E,W,$){super(),this._onScroll=this._register(new h.vl),this.onScroll=this._onScroll.event,this._onWillScroll=this._register(new h.vl),E.style.overflow="hidden",this._options=A(W),this._scrollable=$,this._register(this._scrollable.onScroll(J=>{this._onWillScroll.fire(J),this._onDidScroll(J),this._onScroll.fire(J)}));const z={onMouseWheel:J=>this._onMouseWheel(J),onDragStart:()=>this._onDragStart(),onDragEnd:()=>this._onDragEnd()};this._verticalScrollbar=this._register(new C(this._scrollable,this._options,z)),this._horizontalScrollbar=this._register(new u(this._scrollable,this._options,z)),this._domNode=document.createElement("div"),this._domNode.className="monaco-scrollable-element "+this._options.className,this._domNode.setAttribute("role","presentation"),this._domNode.style.position="relative",this._domNode.style.overflow="hidden",this._domNode.appendChild(E),this._domNode.appendChild(this._horizontalScrollbar.domNode.domNode),this._domNode.appendChild(this._verticalScrollbar.domNode.domNode),this._options.useShadows?(this._leftShadowDomNode=(0,k.Z)(document.createElement("div")),this._leftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._leftShadowDomNode.domNode),this._topShadowDomNode=(0,k.Z)(document.createElement("div")),this._topShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topShadowDomNode.domNode),this._topLeftShadowDomNode=(0,k.Z)(document.createElement("div")),this._topLeftShadowDomNode.setClassName("shadow"),this._domNode.appendChild(this._topLeftShadowDomNode.domNode)):(this._leftShadowDomNode=null,this._topShadowDomNode=null,this._topLeftShadowDomNode=null),this._listenOnDomNode=this._options.listenOnDomNode||this._domNode,this._mouseWheelToDispose=[],this._setListeningToMouseWheel(this._options.handleMouseWheel),this.onmouseover(this._listenOnDomNode,J=>this._onMouseOver(J)),this.onmouseleave(this._listenOnDomNode,J=>this._onMouseLeave(J)),this._hideTimeout=this._register(new x.pc),this._isDragging=!1,this._mouseIsOver=!1,this._shouldRender=!0,this._revealOnScroll=!0}dispose(){this._mouseWheelToDispose=(0,d.AS)(this._mouseWheelToDispose),super.dispose()}getDomNode(){return this._domNode}getOverviewRulerLayoutInfo(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}}delegateVerticalScrollbarPointerDown(E){this._verticalScrollbar.delegatePointerDown(E)}getScrollDimensions(){return this._scrollable.getScrollDimensions()}setScrollDimensions(E){this._scrollable.setScrollDimensions(E,!1)}updateClassName(E){this._options.className=E,s.zx&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className}updateOptions(E){typeof E.handleMouseWheel<"u"&&(this._options.handleMouseWheel=E.handleMouseWheel,this._setListeningToMouseWheel(this._options.handleMouseWheel)),typeof E.mouseWheelScrollSensitivity<"u"&&(this._options.mouseWheelScrollSensitivity=E.mouseWheelScrollSensitivity),typeof E.fastScrollSensitivity<"u"&&(this._options.fastScrollSensitivity=E.fastScrollSensitivity),typeof E.scrollPredominantAxis<"u"&&(this._options.scrollPredominantAxis=E.scrollPredominantAxis),typeof E.horizontal<"u"&&(this._options.horizontal=E.horizontal),typeof E.vertical<"u"&&(this._options.vertical=E.vertical),typeof E.horizontalScrollbarSize<"u"&&(this._options.horizontalScrollbarSize=E.horizontalScrollbarSize),typeof E.verticalScrollbarSize<"u"&&(this._options.verticalScrollbarSize=E.verticalScrollbarSize),typeof E.scrollByPage<"u"&&(this._options.scrollByPage=E.scrollByPage),this._horizontalScrollbar.updateOptions(this._options),this._verticalScrollbar.updateOptions(this._options),this._options.lazyRender||this._render()}delegateScrollFromMouseWheelEvent(E){this._onMouseWheel(new M.$(E))}_setListeningToMouseWheel(E){if(this._mouseWheelToDispose.length>0!==E&&(this._mouseWheelToDispose=(0,d.AS)(this._mouseWheelToDispose),E)){const $=z=>{this._onMouseWheel(new M.$(z))};this._mouseWheelToDispose.push(F.ko(this._listenOnDomNode,F.Bx.MOUSE_WHEEL,$,{passive:!1}))}}_onMouseWheel(E){var W;if(!((W=E.browserEvent)===null||W===void 0)&&W.defaultPrevented)return;const $=j.INSTANCE;O&&$.acceptStandardWheelEvent(E);let z=!1;if(E.deltaY||E.deltaX){let B=E.deltaY*this._options.mouseWheelScrollSensitivity,V=E.deltaX*this._options.mouseWheelScrollSensitivity;this._options.scrollPredominantAxis&&(this._options.scrollYToX&&V+B===0?V=B=0:Math.abs(B)>=Math.abs(V)?V=0:B=0),this._options.flipAxes&&([B,V]=[V,B]);const Y=!s.zx&&E.browserEvent&&E.browserEvent.shiftKey;(this._options.scrollYToX||Y)&&!V&&(V=B,B=0),E.browserEvent&&E.browserEvent.altKey&&(V=V*this._options.fastScrollSensitivity,B=B*this._options.fastScrollSensitivity);const X=this._scrollable.getFutureScrollPosition();let ie={};if(B){const re=b*B,te=X.scrollTop-(re<0?Math.floor(re):Math.ceil(re));this._verticalScrollbar.writeScrollPosition(ie,te)}if(V){const re=b*V,te=X.scrollLeft-(re<0?Math.floor(re):Math.ceil(re));this._horizontalScrollbar.writeScrollPosition(ie,te)}ie=this._scrollable.validateScrollPosition(ie),(X.scrollLeft!==ie.scrollLeft||X.scrollTop!==ie.scrollTop)&&(O&&this._options.mouseWheelSmoothScroll&&$.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(ie):this._scrollable.setScrollPositionNow(ie),z=!0)}let J=z;!J&&this._options.alwaysConsumeMouseWheel&&(J=!0),!J&&this._options.consumeMouseWheelIfScrollbarIsNeeded&&(this._verticalScrollbar.isNeeded()||this._horizontalScrollbar.isNeeded())&&(J=!0),J&&(E.preventDefault(),E.stopPropagation())}_onDidScroll(E){this._shouldRender=this._horizontalScrollbar.onDidScroll(E)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(E)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()}renderNow(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()}_render(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){const E=this._scrollable.getCurrentScrollPosition(),W=E.scrollTop>0,$=E.scrollLeft>0,z=$?" left":"",J=W?" top":"",B=$||W?" top-left-corner":"";this._leftShadowDomNode.setClassName(`shadow${z}`),this._topShadowDomNode.setClassName(`shadow${J}`),this._topLeftShadowDomNode.setClassName(`shadow${B}${J}${z}`)}}_onDragStart(){this._isDragging=!0,this._reveal()}_onDragEnd(){this._isDragging=!1,this._hide()}_onMouseLeave(E){this._mouseIsOver=!1,this._hide()}_onMouseOver(E){this._mouseIsOver=!0,this._reveal()}_reveal(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()}_hide(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())}_scheduleHide(){!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(()=>this._hide(),p)}}class K extends U{constructor(E,W){W=W||{},W.mouseWheelSmoothScroll=!1;const $=new v.yE({forceIntegerValues:!0,smoothScrollDuration:0,scheduleAtNextAnimationFrame:z=>F.PG(F.zk(E),z)});super(E,W,$),this._register($)}setScrollPosition(E){this._scrollable.setScrollPositionNow(E)}}class G extends U{constructor(E,W,$){super(E,W,$)}setScrollPosition(E){E.reuseAnimation?this._scrollable.setScrollPositionSmooth(E,E.reuseAnimation):this._scrollable.setScrollPositionNow(E)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}}class P extends U{constructor(E,W){W=W||{},W.mouseWheelSmoothScroll=!1;const $=new v.yE({forceIntegerValues:!1,smoothScrollDuration:0,scheduleAtNextAnimationFrame:z=>F.PG(F.zk(E),z)});super(E,W,$),this._register($),this._element=E,this._register(this.onScroll(z=>{z.scrollTopChanged&&(this._element.scrollTop=z.scrollTop),z.scrollLeftChanged&&(this._element.scrollLeft=z.scrollLeft)})),this.scanDomNode()}setScrollPosition(E){this._scrollable.setScrollPositionNow(E)}getScrollPosition(){return this._scrollable.getCurrentScrollPosition()}scanDomNode(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})}}function A(T){const E={lazyRender:typeof T.lazyRender<"u"?T.lazyRender:!1,className:typeof T.className<"u"?T.className:"",useShadows:typeof T.useShadows<"u"?T.useShadows:!0,handleMouseWheel:typeof T.handleMouseWheel<"u"?T.handleMouseWheel:!0,flipAxes:typeof T.flipAxes<"u"?T.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof T.consumeMouseWheelIfScrollbarIsNeeded<"u"?T.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof T.alwaysConsumeMouseWheel<"u"?T.alwaysConsumeMouseWheel:!1,scrollYToX:typeof T.scrollYToX<"u"?T.scrollYToX:!1,mouseWheelScrollSensitivity:typeof T.mouseWheelScrollSensitivity<"u"?T.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof T.fastScrollSensitivity<"u"?T.fastScrollSensitivity:5,scrollPredominantAxis:typeof T.scrollPredominantAxis<"u"?T.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof T.mouseWheelSmoothScroll<"u"?T.mouseWheelSmoothScroll:!0,arrowSize:typeof T.arrowSize<"u"?T.arrowSize:11,listenOnDomNode:typeof T.listenOnDomNode<"u"?T.listenOnDomNode:null,horizontal:typeof T.horizontal<"u"?T.horizontal:1,horizontalScrollbarSize:typeof T.horizontalScrollbarSize<"u"?T.horizontalScrollbarSize:10,horizontalSliderSize:typeof T.horizontalSliderSize<"u"?T.horizontalSliderSize:0,horizontalHasArrows:typeof T.horizontalHasArrows<"u"?T.horizontalHasArrows:!1,vertical:typeof T.vertical<"u"?T.vertical:1,verticalScrollbarSize:typeof T.verticalScrollbarSize<"u"?T.verticalScrollbarSize:10,verticalHasArrows:typeof T.verticalHasArrows<"u"?T.verticalHasArrows:!1,verticalSliderSize:typeof T.verticalSliderSize<"u"?T.verticalSliderSize:0,scrollByPage:typeof T.scrollByPage<"u"?T.scrollByPage:!1};return E.horizontalSliderSize=typeof T.horizontalSliderSize<"u"?T.horizontalSliderSize:E.horizontalScrollbarSize,E.verticalSliderSize=typeof T.verticalSliderSize<"u"?T.verticalSliderSize:E.verticalScrollbarSize,s.zx&&(E.className+=" mac"),E}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarState.js":function(pt,Me,e){e.d(Me,{m:function(){return F}});const r=20;class F{constructor(M,L,g,x,I,S){this._scrollbarSize=Math.round(L),this._oppositeScrollbarSize=Math.round(g),this._arrowSize=Math.round(M),this._visibleSize=x,this._scrollSize=I,this._scrollPosition=S,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}clone(){return new F(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)}setVisibleSize(M){const L=Math.round(M);return this._visibleSize!==L?(this._visibleSize=L,this._refreshComputedValues(),!0):!1}setScrollSize(M){const L=Math.round(M);return this._scrollSize!==L?(this._scrollSize=L,this._refreshComputedValues(),!0):!1}setScrollPosition(M){const L=Math.round(M);return this._scrollPosition!==L?(this._scrollPosition=L,this._refreshComputedValues(),!0):!1}setScrollbarSize(M){this._scrollbarSize=Math.round(M)}setOppositeScrollbarSize(M){this._oppositeScrollbarSize=Math.round(M)}static _computeValues(M,L,g,x,I){const S=Math.max(0,g-M),f=Math.max(0,S-2*L),d=x>0&&x>g;if(!d)return{computedAvailableSize:Math.round(S),computedIsNeeded:d,computedSliderSize:Math.round(f),computedSliderRatio:0,computedSliderPosition:0};const a=Math.round(Math.max(r,Math.floor(g*f/x))),s=(f-a)/(x-g),n=I*s;return{computedAvailableSize:Math.round(S),computedIsNeeded:d,computedSliderSize:Math.round(a),computedSliderRatio:s,computedSliderPosition:Math.round(n)}}_refreshComputedValues(){const M=F._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=M.computedAvailableSize,this._computedIsNeeded=M.computedIsNeeded,this._computedSliderSize=M.computedSliderSize,this._computedSliderRatio=M.computedSliderRatio,this._computedSliderPosition=M.computedSliderPosition}getArrowSize(){return this._arrowSize}getScrollPosition(){return this._scrollPosition}getRectangleLargeSize(){return this._computedAvailableSize}getRectangleSmallSize(){return this._scrollbarSize}isNeeded(){return this._computedIsNeeded}getSliderSize(){return this._computedSliderSize}getSliderPosition(){return this._computedSliderPosition}getDesiredScrollPositionFromOffset(M){if(!this._computedIsNeeded)return 0;const L=M-this._arrowSize-this._computedSliderSize/2;return Math.round(L/this._computedSliderRatio)}getDesiredScrollPositionFromOffsetPaged(M){if(!this._computedIsNeeded)return 0;const L=M-this._arrowSize;let g=this._scrollPosition;return L"u"}setVisible(h,v){var p,b;if(h!==this.visible){h?(this.size=(0,S.qE)(this._cachedVisibleSize,this.viewMinimumSize,this.viewMaximumSize),this._cachedVisibleSize=void 0):(this._cachedVisibleSize=typeof v=="number"?v:this.size,this.size=0),this.container.classList.toggle("visible",h);try{(b=(p=this.view).setVisible)===null||b===void 0||b.call(p,h)}catch(O){console.error("Splitview: Failed to set visible view"),console.error(O)}}}get minimumSize(){return this.visible?this.view.minimumSize:0}get viewMinimumSize(){return this.view.minimumSize}get maximumSize(){return this.visible?this.view.maximumSize:0}get viewMaximumSize(){return this.view.maximumSize}get priority(){return this.view.priority}get proportionalLayout(){var h;return(h=this.view.proportionalLayout)!==null&&h!==void 0?h:!0}get snap(){return!!this.view.snap}set enabled(h){this.container.style.pointerEvents=h?"":"none"}constructor(h,v,p,b){this.container=h,this.view=v,this.disposable=b,this._cachedVisibleSize=void 0,typeof p=="number"?(this._size=p,this._cachedVisibleSize=void 0,h.classList.add("visible")):(this._size=0,this._cachedVisibleSize=p.cachedVisibleSize)}layout(h,v){this.layoutContainer(h);try{this.view.layout(this.size,h,v)}catch(p){console.error("Splitview: Failed to layout view"),console.error(p)}}dispose(){this.disposable.dispose()}}class n extends s{layoutContainer(h){this.container.style.top=`${h}px`,this.container.style.height=`${this.size}px`}}class i extends s{layoutContainer(h){this.container.style.left=`${h}px`,this.container.style.width=`${this.size}px`}}var c;(function(C){C[C.Idle=0]="Idle",C[C.Busy=1]="Busy"})(c||(c={}));var m;(function(C){C.Distribute={type:"distribute"};function h(b){return{type:"split",index:b}}C.Split=h;function v(b){return{type:"auto",index:b}}C.Auto=v;function p(b){return{type:"invisible",cachedVisibleSize:b}}C.Invisible=p})(m||(m={}));class u extends I.jG{get orthogonalStartSash(){return this._orthogonalStartSash}get orthogonalEndSash(){return this._orthogonalEndSash}get startSnappingEnabled(){return this._startSnappingEnabled}get endSnappingEnabled(){return this._endSnappingEnabled}set orthogonalStartSash(h){for(const v of this.sashItems)v.sash.orthogonalStartSash=h;this._orthogonalStartSash=h}set orthogonalEndSash(h){for(const v of this.sashItems)v.sash.orthogonalEndSash=h;this._orthogonalEndSash=h}set startSnappingEnabled(h){this._startSnappingEnabled!==h&&(this._startSnappingEnabled=h,this.updateSashEnablement())}set endSnappingEnabled(h){this._endSnappingEnabled!==h&&(this._endSnappingEnabled=h,this.updateSashEnablement())}constructor(h,v={}){var p,b,O,w,j;super(),this.size=0,this._contentSize=0,this.proportions=void 0,this.viewItems=[],this.sashItems=[],this.state=c.Idle,this._onDidSashChange=this._register(new x.vl),this._onDidSashReset=this._register(new x.vl),this._startSnappingEnabled=!0,this._endSnappingEnabled=!0,this.onDidSashChange=this._onDidSashChange.event,this.onDidSashReset=this._onDidSashReset.event,this.orientation=(p=v.orientation)!==null&&p!==void 0?p:0,this.inverseAltBehavior=(b=v.inverseAltBehavior)!==null&&b!==void 0?b:!1,this.proportionalLayout=(O=v.proportionalLayout)!==null&&O!==void 0?O:!0,this.getSashOrthogonalSize=v.getSashOrthogonalSize,this.el=document.createElement("div"),this.el.classList.add("monaco-split-view2"),this.el.classList.add(this.orientation===0?"vertical":"horizontal"),h.appendChild(this.el),this.sashContainer=(0,r.BC)(this.el,(0,r.$)(".sash-container")),this.viewContainer=(0,r.$)(".split-view-container"),this.scrollable=this._register(new f.yE({forceIntegerValues:!0,smoothScrollDuration:125,scheduleAtNextAnimationFrame:K=>(0,r.PG)((0,r.zk)(this.el),K)})),this.scrollableElement=this._register(new M.oO(this.viewContainer,{vertical:this.orientation===0?(w=v.scrollbarVisibility)!==null&&w!==void 0?w:1:2,horizontal:this.orientation===1?(j=v.scrollbarVisibility)!==null&&j!==void 0?j:1:2},this.scrollable));const U=this._register(new F.f(this.viewContainer,"scroll")).event;this._register(U(K=>{const G=this.scrollableElement.getScrollPosition(),P=Math.abs(this.viewContainer.scrollLeft-G.scrollLeft)<=1?void 0:this.viewContainer.scrollLeft,A=Math.abs(this.viewContainer.scrollTop-G.scrollTop)<=1?void 0:this.viewContainer.scrollTop;(P!==void 0||A!==void 0)&&this.scrollableElement.setScrollPosition({scrollLeft:P,scrollTop:A})})),this.onDidScroll=this.scrollableElement.onScroll,this._register(this.onDidScroll(K=>{K.scrollTopChanged&&(this.viewContainer.scrollTop=K.scrollTop),K.scrollLeftChanged&&(this.viewContainer.scrollLeft=K.scrollLeft)})),(0,r.BC)(this.el,this.scrollableElement.getDomNode()),this.style(v.styles||a),v.descriptor&&(this.size=v.descriptor.size,v.descriptor.views.forEach((K,G)=>{const P=d.b0(K.visible)||K.visible?K.size:{type:"invisible",cachedVisibleSize:K.size},A=K.view;this.doAddView(A,P,G,!0)}),this._contentSize=this.viewItems.reduce((K,G)=>K+G.size,0),this.saveProportions())}style(h){h.separatorBorder.isTransparent()?(this.el.classList.remove("separator-border"),this.el.style.removeProperty("--separator-border")):(this.el.classList.add("separator-border"),this.el.style.setProperty("--separator-border",h.separatorBorder.toString()))}addView(h,v,p=this.viewItems.length,b){this.doAddView(h,v,p,b)}layout(h,v){const p=Math.max(this.size,this._contentSize);if(this.size=h,this.layoutContext=v,this.proportions){let b=0;for(let O=0;O0&&(w.size=(0,S.qE)(Math.round(j*h/b),w.minimumSize,w.maximumSize))}}else{const b=(0,L.y1)(this.viewItems.length),O=b.filter(j=>this.viewItems[j].priority===1),w=b.filter(j=>this.viewItems[j].priority===2);this.resize(this.viewItems.length-1,h-p,void 0,O,w)}this.distributeEmptySpace(),this.layoutViews()}saveProportions(){this.proportionalLayout&&this._contentSize>0&&(this.proportions=this.viewItems.map(h=>h.proportionalLayout&&h.visible?h.size/this._contentSize:void 0))}onSashStart({sash:h,start:v,alt:p}){for(const j of this.viewItems)j.enabled=!1;const b=this.sashItems.findIndex(j=>j.sash===h),O=(0,I.qE)((0,r.ko)(this.el.ownerDocument.body,"keydown",j=>w(this.sashDragState.current,j.altKey)),(0,r.ko)(this.el.ownerDocument.body,"keyup",()=>w(this.sashDragState.current,!1))),w=(j,U)=>{const K=this.viewItems.map(E=>E.size);let G=Number.NEGATIVE_INFINITY,P=Number.POSITIVE_INFINITY;if(this.inverseAltBehavior&&(U=!U),U)if(b===this.sashItems.length-1){const W=this.viewItems[b];G=(W.minimumSize-W.size)/2,P=(W.maximumSize-W.size)/2}else{const W=this.viewItems[b+1];G=(W.size-W.maximumSize)/2,P=(W.size-W.minimumSize)/2}let A,T;if(!U){const E=(0,L.y1)(b,-1),W=(0,L.y1)(b+1,this.viewItems.length),$=E.reduce((re,te)=>re+(this.viewItems[te].minimumSize-K[te]),0),z=E.reduce((re,te)=>re+(this.viewItems[te].viewMaximumSize-K[te]),0),J=W.length===0?Number.POSITIVE_INFINITY:W.reduce((re,te)=>re+(K[te]-this.viewItems[te].minimumSize),0),B=W.length===0?Number.NEGATIVE_INFINITY:W.reduce((re,te)=>re+(K[te]-this.viewItems[te].viewMaximumSize),0),V=Math.max($,B),Y=Math.min(J,z),X=this.findFirstSnapIndex(E),ie=this.findFirstSnapIndex(W);if(typeof X=="number"){const re=this.viewItems[X],te=Math.floor(re.viewMinimumSize/2);A={index:X,limitDelta:re.visible?V-te:V+te,size:re.size}}if(typeof ie=="number"){const re=this.viewItems[ie],te=Math.floor(re.viewMinimumSize/2);T={index:ie,limitDelta:re.visible?Y+te:Y-te,size:re.size}}}this.sashDragState={start:j,current:j,index:b,sizes:K,minDelta:G,maxDelta:P,alt:U,snapBefore:A,snapAfter:T,disposable:O}};w(v,p)}onSashChange({current:h}){const{index:v,start:p,sizes:b,alt:O,minDelta:w,maxDelta:j,snapBefore:U,snapAfter:K}=this.sashDragState;this.sashDragState.current=h;const G=h-p,P=this.resize(v,G,b,void 0,void 0,w,j,U,K);if(O){const A=v===this.sashItems.length-1,T=this.viewItems.map(B=>B.size),E=A?v:v+1,W=this.viewItems[E],$=W.size-W.maximumSize,z=W.size-W.minimumSize,J=A?v-1:v+1;this.resize(J,-P,T,void 0,void 0,$,z)}this.distributeEmptySpace(),this.layoutViews()}onSashEnd(h){this._onDidSashChange.fire(h),this.sashDragState.disposable.dispose(),this.saveProportions();for(const v of this.viewItems)v.enabled=!0}onViewChange(h,v){const p=this.viewItems.indexOf(h);p<0||p>=this.viewItems.length||(v=typeof v=="number"?v:h.size,v=(0,S.qE)(v,h.minimumSize,h.maximumSize),this.inverseAltBehavior&&p>0?(this.resize(p-1,Math.floor((h.size-v)/2)),this.distributeEmptySpace(),this.layoutViews()):(h.size=v,this.relayout([p],void 0)))}resizeView(h,v){if(!(h<0||h>=this.viewItems.length)){if(this.state!==c.Idle)throw new Error("Cant modify splitview");this.state=c.Busy;try{const p=(0,L.y1)(this.viewItems.length).filter(j=>j!==h),b=[...p.filter(j=>this.viewItems[j].priority===1),h],O=p.filter(j=>this.viewItems[j].priority===2),w=this.viewItems[h];v=Math.round(v),v=(0,S.qE)(v,w.minimumSize,Math.min(w.maximumSize,this.size)),w.size=v,this.relayout(b,O)}finally{this.state=c.Idle}}}distributeViewSizes(){const h=[];let v=0;for(const j of this.viewItems)j.maximumSize-j.minimumSize>0&&(h.push(j),v+=j.size);const p=Math.floor(v/h.length);for(const j of h)j.size=(0,S.qE)(p,j.minimumSize,j.maximumSize);const b=(0,L.y1)(this.viewItems.length),O=b.filter(j=>this.viewItems[j].priority===1),w=b.filter(j=>this.viewItems[j].priority===2);this.relayout(O,w)}getViewSize(h){return h<0||h>=this.viewItems.length?-1:this.viewItems[h].size}doAddView(h,v,p=this.viewItems.length,b){if(this.state!==c.Idle)throw new Error("Cant modify splitview");this.state=c.Busy;try{const O=(0,r.$)(".split-view-view");p===this.viewItems.length?this.viewContainer.appendChild(O):this.viewContainer.insertBefore(O,this.viewContainer.children.item(p));const w=h.onDidChange(A=>this.onViewChange(G,A)),j=(0,I.s)(()=>this.viewContainer.removeChild(O)),U=(0,I.qE)(w,j);let K;typeof v=="number"?K=v:(v.type==="auto"&&(this.areViewsDistributed()?v={type:"distribute"}:v={type:"split",index:v.index}),v.type==="split"?K=this.getViewSize(v.index)/2:v.type==="invisible"?K={cachedVisibleSize:v.cachedVisibleSize}:K=h.minimumSize);const G=this.orientation===0?new n(O,h,K,U):new i(O,h,K,U);if(this.viewItems.splice(p,0,G),this.viewItems.length>1){const A={orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash},T=this.orientation===0?new k.m(this.sashContainer,{getHorizontalSashTop:re=>this.getSashPosition(re),getHorizontalSashWidth:this.getSashOrthogonalSize},{...A,orientation:1}):new k.m(this.sashContainer,{getVerticalSashLeft:re=>this.getSashPosition(re),getVerticalSashHeight:this.getSashOrthogonalSize},{...A,orientation:0}),E=this.orientation===0?re=>({sash:T,start:re.startY,current:re.currentY,alt:re.altKey}):re=>({sash:T,start:re.startX,current:re.currentX,alt:re.altKey}),$=x.Jh.map(T.onDidStart,E)(this.onSashStart,this),J=x.Jh.map(T.onDidChange,E)(this.onSashChange,this),V=x.Jh.map(T.onDidEnd,()=>this.sashItems.findIndex(re=>re.sash===T))(this.onSashEnd,this),Y=T.onDidReset(()=>{const re=this.sashItems.findIndex(Ce=>Ce.sash===T),te=(0,L.y1)(re,-1),D=(0,L.y1)(re+1,this.viewItems.length),he=this.findFirstSnapIndex(te),ve=this.findFirstSnapIndex(D);typeof he=="number"&&!this.viewItems[he].visible||typeof ve=="number"&&!this.viewItems[ve].visible||this._onDidSashReset.fire(re)}),X=(0,I.qE)($,J,V,Y,T),ie={sash:T,disposable:X};this.sashItems.splice(p-1,0,ie)}O.appendChild(h.element);let P;typeof v!="number"&&v.type==="split"&&(P=[v.index]),b||this.relayout([p],P),!b&&typeof v!="number"&&v.type==="distribute"&&this.distributeViewSizes()}finally{this.state=c.Idle}}relayout(h,v){const p=this.viewItems.reduce((b,O)=>b+O.size,0);this.resize(this.viewItems.length-1,this.size-p,void 0,h,v),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()}resize(h,v,p=this.viewItems.map(G=>G.size),b,O,w=Number.NEGATIVE_INFINITY,j=Number.POSITIVE_INFINITY,U,K){if(h<0||h>=this.viewItems.length)return 0;const G=(0,L.y1)(h,-1),P=(0,L.y1)(h+1,this.viewItems.length);if(O)for(const ie of O)(0,L._A)(G,ie),(0,L._A)(P,ie);if(b)for(const ie of b)(0,L.r7)(G,ie),(0,L.r7)(P,ie);const A=G.map(ie=>this.viewItems[ie]),T=G.map(ie=>p[ie]),E=P.map(ie=>this.viewItems[ie]),W=P.map(ie=>p[ie]),$=G.reduce((ie,re)=>ie+(this.viewItems[re].minimumSize-p[re]),0),z=G.reduce((ie,re)=>ie+(this.viewItems[re].maximumSize-p[re]),0),J=P.length===0?Number.POSITIVE_INFINITY:P.reduce((ie,re)=>ie+(p[re]-this.viewItems[re].minimumSize),0),B=P.length===0?Number.NEGATIVE_INFINITY:P.reduce((ie,re)=>ie+(p[re]-this.viewItems[re].maximumSize),0),V=Math.max($,B,w),Y=Math.min(J,z,j);let X=!1;if(U){const ie=this.viewItems[U.index],re=v>=U.limitDelta;X=re!==ie.visible,ie.setVisible(re,U.size)}if(!X&&K){const ie=this.viewItems[K.index],re=vj+U.size,0);let p=this.size-v;const b=(0,L.y1)(this.viewItems.length-1,-1),O=b.filter(j=>this.viewItems[j].priority===1),w=b.filter(j=>this.viewItems[j].priority===2);for(const j of w)(0,L._A)(b,j);for(const j of O)(0,L.r7)(b,j);typeof h=="number"&&(0,L.r7)(b,h);for(let j=0;p!==0&&jv+p.size,0);let h=0;for(const v of this.viewItems)v.layout(h,this.layoutContext),h+=v.size;this.sashItems.forEach(v=>v.sash.layout()),this.updateSashEnablement(),this.updateScrollableElement()}updateScrollableElement(){this.orientation===0?this.scrollableElement.setScrollDimensions({height:this.size,scrollHeight:this._contentSize}):this.scrollableElement.setScrollDimensions({width:this.size,scrollWidth:this._contentSize})}updateSashEnablement(){let h=!1;const v=this.viewItems.map(U=>h=U.size-U.minimumSize>0||h);h=!1;const p=this.viewItems.map(U=>h=U.maximumSize-U.size>0||h),b=[...this.viewItems].reverse();h=!1;const O=b.map(U=>h=U.size-U.minimumSize>0||h).reverse();h=!1;const w=b.map(U=>h=U.maximumSize-U.size>0||h).reverse();let j=0;for(let U=0;U0||this.startSnappingEnabled)?K.state=1:J&&v[U]&&(j0)return;if(!p.visible&&p.snap)return v}}areViewsDistributed(){let h,v;for(const p of this.viewItems)if(h=h===void 0?p.size:Math.min(h,p.size),v=v===void 0?p.size:Math.max(v,p.size),v-h>2)return!1;return!0}dispose(){var h;(h=this.sashDragState)===null||h===void 0||h.disposable.dispose(),(0,I.AS)(this.viewItems),this.viewItems=[],this.sashItems.forEach(v=>v.disposable.dispose()),this.sashItems=[],super.dispose()}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/toggle/toggle.js":function(pt,Me,e){e.d(Me,{F:function(){return g},l:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/widget.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js"),L=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js");const g={inputActiveOptionBorder:"#007ACC00",inputActiveOptionForeground:"#FFFFFF",inputActiveOptionBackground:"#0E639C50"};class x extends r.x{constructor(S){var f;super(),this._onChange=this._register(new k.vl),this.onChange=this._onChange.event,this._onKeyDown=this._register(new k.vl),this.onKeyDown=this._onKeyDown.event,this._opts=S,this._checked=this._opts.isChecked;const d=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,d.push(...F.L.asClassNameArray(this._icon))),this._opts.actionClassName&&d.push(...this._opts.actionClassName.split(" ")),this._checked&&d.push("checked"),this.domNode=document.createElement("div"),this._hover=this._register((0,M.f)((f=S.hoverDelegate)!==null&&f!==void 0?f:(0,L.nZ)("mouse"),this.domNode,this._opts.title)),this.domNode.classList.add(...d),this._opts.notFocusable||(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,a=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),a.preventDefault())}),this._register(this.ignoreGesture(this.domNode)),this.onkeydown(this.domNode,a=>{if(a.keyCode===10||a.keyCode===3){this.checked=!this._checked,this._onChange.fire(!0),a.preventDefault(),a.stopPropagation();return}this._onKeyDown.fire(a)})}get enabled(){return this.domNode.getAttribute("aria-disabled")!=="true"}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(S){this._checked=S,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder||"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground||"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground||"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/abstractTree.js":function(pt,Me,e){e.d(Me,{DO:function(){return qe},KP:function(){return A},RD:function(){return V},vD:function(){return B},w0:function(){return P}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/event.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js"),L=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInput.js"),g=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/inputbox/inputBox.js"),x=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/list/listView.js"),I=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/list/listWidget.js"),S=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/toggle/toggle.js"),f=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/indexTreeModel.js"),d=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/tree.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),i=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),c=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),u=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),C=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),h=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),v=e("./node_modules/monaco-editor/esm/vs/base/common/numbers.js"),p=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),b=e("./node_modules/monaco-editor/esm/vs/nls.js"),O=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),w=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js");class j extends x.ur{constructor(q){super(q.elements.map(ye=>ye.element)),this.data=q}}function U(Qe){return Qe instanceof x.ur?new j(Qe):Qe}class K{constructor(q,ye){this.modelProvider=q,this.dnd=ye,this.autoExpandDisposable=h.jG.None,this.disposables=new h.Cm}getDragURI(q){return this.dnd.getDragURI(q.element)}getDragLabel(q,ye){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(q.map(ge=>ge.element),ye)}onDragStart(q,ye){var ge,be;(be=(ge=this.dnd).onDragStart)===null||be===void 0||be.call(ge,U(q),ye)}onDragOver(q,ye,ge,be,Se,ae=!0){const me=this.dnd.onDragOver(U(q),ye&&ye.element,ge,be,Se),fe=this.autoExpandNode!==ye;if(fe&&(this.autoExpandDisposable.dispose(),this.autoExpandNode=ye),typeof ye>"u")return me;if(fe&&typeof me!="boolean"&&me.autoExpand&&(this.autoExpandDisposable=(0,n.EQ)(()=>{const Le=this.modelProvider(),We=Le.getNodeLocation(ye);Le.isCollapsed(We)&&Le.setCollapsed(We,!1),this.autoExpandNode=void 0},500,this.disposables)),typeof me=="boolean"||!me.accept||typeof me.bubble>"u"||me.feedback){if(!ae){const Le=typeof me=="boolean"?me:me.accept,We=typeof me=="boolean"?void 0:me.effect;return{accept:Le,effect:We,feedback:[ge]}}return me}if(me.bubble===1){const Le=this.modelProvider(),We=Le.getNodeLocation(ye),we=Le.getParentNodeLocation(We),Ue=Le.getNode(we),lt=we&&Le.getListIndex(we);return this.onDragOver(q,Ue,lt,be,Se,!1)}const le=this.modelProvider(),oe=le.getNodeLocation(ye),ne=le.getListIndex(oe),de=le.getListRenderCount(oe);return{...me,feedback:(0,s.y1)(ne,ne+de)}}drop(q,ye,ge,be,Se){this.autoExpandDisposable.dispose(),this.autoExpandNode=void 0,this.dnd.drop(U(q),ye&&ye.element,ge,be,Se)}onDragEnd(q){var ye,ge;(ge=(ye=this.dnd).onDragEnd)===null||ge===void 0||ge.call(ye,q)}dispose(){this.disposables.dispose(),this.dnd.dispose()}}function G(Qe,q){return q&&{...q,identityProvider:q.identityProvider&&{getId(ye){return q.identityProvider.getId(ye.element)}},dnd:q.dnd&&new K(Qe,q.dnd),multipleSelectionController:q.multipleSelectionController&&{isSelectionSingleChangeEvent(ye){return q.multipleSelectionController.isSelectionSingleChangeEvent({...ye,element:ye.element})},isSelectionRangeChangeEvent(ye){return q.multipleSelectionController.isSelectionRangeChangeEvent({...ye,element:ye.element})}},accessibilityProvider:q.accessibilityProvider&&{...q.accessibilityProvider,getSetSize(ye){const ge=Qe(),be=ge.getNodeLocation(ye),Se=ge.getParentNodeLocation(be);return ge.getNode(Se).visibleChildrenCount},getPosInSet(ye){return ye.visibleChildIndex+1},isChecked:q.accessibilityProvider&&q.accessibilityProvider.isChecked?ye=>q.accessibilityProvider.isChecked(ye.element):void 0,getRole:q.accessibilityProvider&&q.accessibilityProvider.getRole?ye=>q.accessibilityProvider.getRole(ye.element):()=>"treeitem",getAriaLabel(ye){return q.accessibilityProvider.getAriaLabel(ye.element)},getWidgetAriaLabel(){return q.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:q.accessibilityProvider&&q.accessibilityProvider.getWidgetRole?()=>q.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:q.accessibilityProvider&&q.accessibilityProvider.getAriaLevel?ye=>q.accessibilityProvider.getAriaLevel(ye.element):ye=>ye.depth,getActiveDescendantId:q.accessibilityProvider.getActiveDescendantId&&(ye=>q.accessibilityProvider.getActiveDescendantId(ye.element))},keyboardNavigationLabelProvider:q.keyboardNavigationLabelProvider&&{...q.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(ye){return q.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(ye.element)}}}}class P{constructor(q){this.delegate=q}getHeight(q){return this.delegate.getHeight(q.element)}getTemplateId(q){return this.delegate.getTemplateId(q.element)}hasDynamicHeight(q){return!!this.delegate.hasDynamicHeight&&this.delegate.hasDynamicHeight(q.element)}setDynamicHeight(q,ye){var ge,be;(be=(ge=this.delegate).setDynamicHeight)===null||be===void 0||be.call(ge,q.element,ye)}}var A;(function(Qe){Qe.None="none",Qe.OnHover="onHover",Qe.Always="always"})(A||(A={}));class T{get elements(){return this._elements}constructor(q,ye=[]){this._elements=ye,this.disposables=new h.Cm,this.onDidChange=u.Jh.forEach(q,ge=>this._elements=ge,this.disposables)}dispose(){this.disposables.dispose()}}class E{constructor(q,ye,ge,be,Se,ae={}){var me;this.renderer=q,this.modelProvider=ye,this.activeNodes=be,this.renderedIndentGuides=Se,this.renderedElements=new Map,this.renderedNodes=new Map,this.indent=E.DefaultIndent,this.hideTwistiesOfChildlessElements=!1,this.shouldRenderIndentGuides=!1,this.activeIndentNodes=new Set,this.indentGuidesDisposable=h.jG.None,this.disposables=new h.Cm,this.templateId=q.templateId,this.updateOptions(ae),u.Jh.map(ge,fe=>fe.node)(this.onDidChangeNodeTwistieState,this,this.disposables),(me=q.onDidChangeTwistieState)===null||me===void 0||me.call(q,this.onDidChangeTwistieState,this,this.disposables)}updateOptions(q={}){if(typeof q.indent<"u"){const ye=(0,v.qE)(q.indent,0,40);if(ye!==this.indent){this.indent=ye;for(const[ge,be]of this.renderedNodes)this.renderTreeElement(ge,be)}}if(typeof q.renderIndentGuides<"u"){const ye=q.renderIndentGuides!==A.None;if(ye!==this.shouldRenderIndentGuides){this.shouldRenderIndentGuides=ye;for(const[ge,be]of this.renderedNodes)this._renderIndentGuides(ge,be);if(this.indentGuidesDisposable.dispose(),ye){const ge=new h.Cm;this.activeNodes.onDidChange(this._onDidChangeActiveNodes,this,ge),this.indentGuidesDisposable=ge,this._onDidChangeActiveNodes(this.activeNodes.elements)}}}typeof q.hideTwistiesOfChildlessElements<"u"&&(this.hideTwistiesOfChildlessElements=q.hideTwistiesOfChildlessElements)}renderTemplate(q){const ye=(0,r.BC)(q,(0,r.$)(".monaco-tl-row")),ge=(0,r.BC)(ye,(0,r.$)(".monaco-tl-indent")),be=(0,r.BC)(ye,(0,r.$)(".monaco-tl-twistie")),Se=(0,r.BC)(ye,(0,r.$)(".monaco-tl-contents")),ae=this.renderer.renderTemplate(Se);return{container:q,indent:ge,twistie:be,indentGuidesDisposable:h.jG.None,templateData:ae}}renderElement(q,ye,ge,be){this.renderedNodes.set(q,ge),this.renderedElements.set(q.element,q),this.renderTreeElement(q,ge),this.renderer.renderElement(q,ye,ge.templateData,be)}disposeElement(q,ye,ge,be){var Se,ae;ge.indentGuidesDisposable.dispose(),(ae=(Se=this.renderer).disposeElement)===null||ae===void 0||ae.call(Se,q,ye,ge.templateData,be),typeof be=="number"&&(this.renderedNodes.delete(q),this.renderedElements.delete(q.element))}disposeTemplate(q){this.renderer.disposeTemplate(q.templateData)}onDidChangeTwistieState(q){const ye=this.renderedElements.get(q);ye&&this.onDidChangeNodeTwistieState(ye)}onDidChangeNodeTwistieState(q){const ye=this.renderedNodes.get(q);ye&&(this._onDidChangeActiveNodes(this.activeNodes.elements),this.renderTreeElement(q,ye))}renderTreeElement(q,ye){const ge=E.DefaultIndent+(q.depth-1)*this.indent;ye.twistie.style.paddingLeft=`${ge}px`,ye.indent.style.width=`${ge+this.indent-16}px`,q.collapsible?ye.container.setAttribute("aria-expanded",String(!q.collapsed)):ye.container.removeAttribute("aria-expanded"),ye.twistie.classList.remove(...c.L.asClassNameArray(i.W.treeItemExpanded));let be=!1;this.renderer.renderTwistie&&(be=this.renderer.renderTwistie(q.element,ye.twistie)),q.collapsible&&(!this.hideTwistiesOfChildlessElements||q.visibleChildrenCount>0)?(be||ye.twistie.classList.add(...c.L.asClassNameArray(i.W.treeItemExpanded)),ye.twistie.classList.add("collapsible"),ye.twistie.classList.toggle("collapsed",q.collapsed)):ye.twistie.classList.remove("collapsible","collapsed"),this._renderIndentGuides(q,ye)}_renderIndentGuides(q,ye){if((0,r.w_)(ye.indent),ye.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;const ge=new h.Cm,be=this.modelProvider();for(;;){const Se=be.getNodeLocation(q),ae=be.getParentNodeLocation(Se);if(!ae)break;const me=be.getNode(ae),fe=(0,r.$)(".indent-guide",{style:`width: ${this.indent}px`});this.activeIndentNodes.has(me)&&fe.classList.add("active"),ye.indent.childElementCount===0?ye.indent.appendChild(fe):ye.indent.insertBefore(fe,ye.indent.firstElementChild),this.renderedIndentGuides.add(me,fe),ge.add((0,h.s)(()=>this.renderedIndentGuides.delete(me,fe))),q=me}ye.indentGuidesDisposable=ge}_onDidChangeActiveNodes(q){if(!this.shouldRenderIndentGuides)return;const ye=new Set,ge=this.modelProvider();q.forEach(be=>{const Se=ge.getNodeLocation(be);try{const ae=ge.getParentNodeLocation(Se);be.collapsible&&be.children.length>0&&!be.collapsed?ye.add(be):ae&&ye.add(ge.getNode(ae))}catch{}}),this.activeIndentNodes.forEach(be=>{ye.has(be)||this.renderedIndentGuides.forEach(be,Se=>Se.classList.remove("active"))}),ye.forEach(be=>{this.activeIndentNodes.has(be)||this.renderedIndentGuides.forEach(be,Se=>Se.classList.add("active"))}),this.activeIndentNodes=ye}dispose(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),(0,h.AS)(this.disposables)}}E.DefaultIndent=8;class W{get totalCount(){return this._totalCount}get matchCount(){return this._matchCount}constructor(q,ye,ge){this.tree=q,this.keyboardNavigationLabelProvider=ye,this._filter=ge,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new h.Cm,q.onWillRefilter(this.reset,this,this.disposables)}filter(q,ye){let ge=1;if(this._filter){const ae=this._filter.filter(q,ye);if(typeof ae=="boolean"?ge=ae?1:0:(0,f.iZ)(ae)?ge=(0,f.Mn)(ae.visibility):ge=ae,ge===0)return!1}if(this._totalCount++,!this._pattern)return this._matchCount++,{data:C.ne.Default,visibility:ge};const be=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(q),Se=Array.isArray(be)?be:[be];for(const ae of Se){const me=ae&&ae.toString();if(typeof me>"u")return{data:C.ne.Default,visibility:ge};let fe;if(this.tree.findMatchType===V.Contiguous){const le=me.toLowerCase().indexOf(this._lowercasePattern);if(le>-1){fe=[Number.MAX_SAFE_INTEGER,0];for(let oe=this._lowercasePattern.length;oe>0;oe--)fe.push(le+oe-1)}}else fe=(0,C.dt)(this._pattern,this._lowercasePattern,0,me,me.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});if(fe)return this._matchCount++,Se.length===1?{data:fe,visibility:ge}:{data:{label:me,score:fe},visibility:ge}}return this.tree.findMode===B.Filter?typeof this.tree.options.defaultFindVisibility=="number"?this.tree.options.defaultFindVisibility:this.tree.options.defaultFindVisibility?this.tree.options.defaultFindVisibility(q):2:{data:C.ne.Default,visibility:ge}}reset(){this._totalCount=0,this._matchCount=0}dispose(){(0,h.AS)(this.disposables)}}class $ extends S.l{constructor(q){var ye,ge;super({icon:i.W.listFilter,title:(0,b.kg)("filter","Filter"),isChecked:(ye=q.isChecked)!==null&&ye!==void 0?ye:!1,hoverDelegate:(ge=q.hoverDelegate)!==null&&ge!==void 0?ge:(0,O.nZ)("element"),inputActiveOptionBorder:q.inputActiveOptionBorder,inputActiveOptionForeground:q.inputActiveOptionForeground,inputActiveOptionBackground:q.inputActiveOptionBackground})}}class z extends S.l{constructor(q){var ye,ge;super({icon:i.W.searchFuzzy,title:(0,b.kg)("fuzzySearch","Fuzzy Match"),isChecked:(ye=q.isChecked)!==null&&ye!==void 0?ye:!1,hoverDelegate:(ge=q.hoverDelegate)!==null&&ge!==void 0?ge:(0,O.nZ)("element"),inputActiveOptionBorder:q.inputActiveOptionBorder,inputActiveOptionForeground:q.inputActiveOptionForeground,inputActiveOptionBackground:q.inputActiveOptionBackground})}}const J={inputBoxStyles:g.x8,toggleStyles:S.F,listFilterWidgetBackground:void 0,listFilterWidgetNoMatchesOutline:void 0,listFilterWidgetOutline:void 0,listFilterWidgetShadow:void 0};var B;(function(Qe){Qe[Qe.Highlight=0]="Highlight",Qe[Qe.Filter=1]="Filter"})(B||(B={}));var V;(function(Qe){Qe[Qe.Fuzzy=0]="Fuzzy",Qe[Qe.Contiguous=1]="Contiguous"})(V||(V={}));class Y extends h.jG{set mode(q){this.modeToggle.checked=q===B.Filter,this.findInput.inputBox.setPlaceHolder(q===B.Filter?(0,b.kg)("type to filter","Type to filter"):(0,b.kg)("type to search","Type to search"))}set matchType(q){this.matchTypeToggle.checked=q===V.Fuzzy}constructor(q,ye,ge,be,Se,ae){var me;super(),this.tree=ye,this.elements=(0,r.h)(".monaco-tree-type-filter",[(0,r.h)(".monaco-tree-type-filter-grab.codicon.codicon-debug-gripper@grab",{tabIndex:0}),(0,r.h)(".monaco-tree-type-filter-input@findInput"),(0,r.h)(".monaco-tree-type-filter-actionbar@actionbar")]),this.width=0,this.right=0,this.top=0,this._onDidDisable=new u.vl,q.appendChild(this.elements.root),this._register((0,h.s)(()=>q.removeChild(this.elements.root)));const fe=(me=ae?.styles)!==null&&me!==void 0?me:J;fe.listFilterWidgetBackground&&(this.elements.root.style.backgroundColor=fe.listFilterWidgetBackground),fe.listFilterWidgetShadow&&(this.elements.root.style.boxShadow=`0 0 8px 2px ${fe.listFilterWidgetShadow}`);const le=this._register((0,O.bW)());this.modeToggle=this._register(new $({...fe.toggleStyles,isChecked:be===B.Filter,hoverDelegate:le})),this.matchTypeToggle=this._register(new z({...fe.toggleStyles,isChecked:Se===V.Fuzzy,hoverDelegate:le})),this.onDidChangeMode=u.Jh.map(this.modeToggle.onChange,()=>this.modeToggle.checked?B.Filter:B.Highlight,this._store),this.onDidChangeMatchType=u.Jh.map(this.matchTypeToggle.onChange,()=>this.matchTypeToggle.checked?V.Fuzzy:V.Contiguous,this._store),this.findInput=this._register(new L.c(this.elements.findInput,ge,{label:(0,b.kg)("type to search","Type to search"),additionalToggles:[this.modeToggle,this.matchTypeToggle],showCommonFindToggles:!1,inputBoxStyles:fe.inputBoxStyles,toggleStyles:fe.toggleStyles,history:ae?.history})),this.actionbar=this._register(new M.E(this.elements.actionbar)),this.mode=be;const oe=this._register(new F.f(this.findInput.inputBox.inputElement,"keydown")),ne=u.Jh.chain(oe.event,we=>we.map(Ue=>new k.Z(Ue)));this._register(ne(we=>{if(we.equals(3)){we.preventDefault(),we.stopPropagation(),this.findInput.inputBox.addToHistory(),this.tree.domFocus();return}if(we.equals(18)){we.preventDefault(),we.stopPropagation(),this.findInput.inputBox.isAtLastInHistory()||this.findInput.inputBox.isNowhereInHistory()?(this.findInput.inputBox.addToHistory(),this.tree.domFocus()):this.findInput.inputBox.showNextValue();return}if(we.equals(16)){we.preventDefault(),we.stopPropagation(),this.findInput.inputBox.showPreviousValue();return}}));const de=this._register(new a.rc("close",(0,b.kg)("close","Close"),"codicon codicon-close",!0,()=>this.dispose()));this.actionbar.push(de,{icon:!0,label:!1});const Le=this._register(new F.f(this.elements.grab,"mousedown"));this._register(Le.event(we=>{const Ue=new h.Cm,lt=Ue.add(new F.f((0,r.zk)(we),"mousemove")),Et=Ue.add(new F.f((0,r.zk)(we),"mouseup")),Kt=this.right,Zt=we.pageX,qt=this.top,tt=we.pageY;this.elements.grab.classList.add("grabbing");const Mt=this.elements.root.style.transition;this.elements.root.style.transition="unset";const Ht=xt=>{const Jt=xt.pageX-Zt;this.right=Kt-Jt;const Nt=xt.pageY-tt;this.top=qt+Nt,this.layout()};Ue.add(lt.event(Ht)),Ue.add(Et.event(xt=>{Ht(xt),this.elements.grab.classList.remove("grabbing"),this.elements.root.style.transition=Mt,Ue.dispose()}))}));const We=u.Jh.chain(this._register(new F.f(this.elements.grab,"keydown")).event,we=>we.map(Ue=>new k.Z(Ue)));this._register(We(we=>{let Ue,lt;if(we.keyCode===15?Ue=Number.POSITIVE_INFINITY:we.keyCode===17?Ue=0:we.keyCode===10&&(Ue=this.right===0?Number.POSITIVE_INFINITY:0),we.keyCode===16?lt=0:we.keyCode===18&&(lt=Number.POSITIVE_INFINITY),Ue!==void 0&&(we.preventDefault(),we.stopPropagation(),this.right=Ue,this.layout()),lt!==void 0){we.preventDefault(),we.stopPropagation(),this.top=lt;const Et=this.elements.root.style.transition;this.elements.root.style.transition="unset",this.layout(),setTimeout(()=>{this.elements.root.style.transition=Et},0)}})),this.onDidChangeValue=this.findInput.onDidChange}layout(q=this.width){this.width=q,this.right=(0,v.qE)(this.right,0,Math.max(0,q-212)),this.elements.root.style.right=`${this.right}px`,this.top=(0,v.qE)(this.top,0,24),this.elements.root.style.top=`${this.top}px`}showMessage(q){this.findInput.showMessage(q)}clearMessage(){this.findInput.clearMessage()}async dispose(){this._onDidDisable.fire(),this.elements.root.classList.add("disabled"),await(0,n.wR)(300),super.dispose()}}class X{get pattern(){return this._pattern}get mode(){return this._mode}set mode(q){q!==this._mode&&(this._mode=q,this.widget&&(this.widget.mode=this._mode),this.tree.refilter(),this.render(),this._onDidChangeMode.fire(q))}get matchType(){return this._matchType}set matchType(q){q!==this._matchType&&(this._matchType=q,this.widget&&(this.widget.matchType=this._matchType),this.tree.refilter(),this.render(),this._onDidChangeMatchType.fire(q))}constructor(q,ye,ge,be,Se,ae={}){var me,fe;this.tree=q,this.view=ge,this.filter=be,this.contextViewProvider=Se,this.options=ae,this._pattern="",this.width=0,this._onDidChangeMode=new u.vl,this.onDidChangeMode=this._onDidChangeMode.event,this._onDidChangeMatchType=new u.vl,this.onDidChangeMatchType=this._onDidChangeMatchType.event,this._onDidChangePattern=new u.vl,this._onDidChangeOpenState=new u.vl,this.onDidChangeOpenState=this._onDidChangeOpenState.event,this.enabledDisposables=new h.Cm,this.disposables=new h.Cm,this._mode=(me=q.options.defaultFindMode)!==null&&me!==void 0?me:B.Highlight,this._matchType=(fe=q.options.defaultFindMatchType)!==null&&fe!==void 0?fe:V.Fuzzy,ye.onDidSplice(this.onDidSpliceModel,this,this.disposables)}updateOptions(q={}){q.defaultFindMode!==void 0&&(this.mode=q.defaultFindMode),q.defaultFindMatchType!==void 0&&(this.matchType=q.defaultFindMatchType)}onDidSpliceModel(){!this.widget||this.pattern.length===0||(this.tree.refilter(),this.render())}render(){var q,ye,ge,be;const Se=this.filter.totalCount>0&&this.filter.matchCount===0;this.pattern&&Se?!((q=this.tree.options.showNotFoundMessage)!==null&&q!==void 0)||q?(ye=this.widget)===null||ye===void 0||ye.showMessage({type:2,content:(0,b.kg)("not found","No elements found.")}):(ge=this.widget)===null||ge===void 0||ge.showMessage({type:2}):(be=this.widget)===null||be===void 0||be.clearMessage()}shouldAllowFocus(q){return!this.widget||!this.pattern||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!C.ne.isDefault(q.filterData)}layout(q){var ye;this.width=q,(ye=this.widget)===null||ye===void 0||ye.layout(q)}dispose(){this._history=void 0,this._onDidChangePattern.dispose(),this.enabledDisposables.dispose(),this.disposables.dispose()}}function ie(Qe,q){return Qe.position===q.position&&re(Qe,q)}function re(Qe,q){return Qe.node.element===q.node.element&&Qe.startIndex===q.startIndex&&Qe.height===q.height&&Qe.endIndex===q.endIndex}class te{constructor(q=[]){this.stickyNodes=q}get count(){return this.stickyNodes.length}equal(q){return(0,s.aI)(this.stickyNodes,q.stickyNodes,ie)}lastNodePartiallyVisible(){if(this.count===0)return!1;const q=this.stickyNodes[this.count-1];if(this.count===1)return q.position!==0;const ye=this.stickyNodes[this.count-2];return ye.position+ye.height!==q.position}animationStateChanged(q){if(!(0,s.aI)(this.stickyNodes,q.stickyNodes,re)||this.count===0)return!1;const ye=this.stickyNodes[this.count-1],ge=q.stickyNodes[q.count-1];return ye.position!==ge.position}}class D{constrainStickyScrollNodes(q,ye,ge){for(let be=0;bege||be>=ye)return q.slice(0,be)}return q}}class he extends h.jG{constructor(q,ye,ge,be,Se,ae={}){var me;super(),this.tree=q,this.model=ye,this.view=ge,this.treeDelegate=Se,this.maxWidgetViewRatio=.4;const fe=this.validateStickySettings(ae);this.stickyScrollMaxItemCount=fe.stickyScrollMaxItemCount,this.stickyScrollDelegate=(me=ae.stickyScrollDelegate)!==null&&me!==void 0?me:new D,this._widget=this._register(new ve(ge.getScrollableElement(),ge,q,be,Se,ae.accessibilityProvider)),this.onDidChangeHasFocus=this._widget.onDidChangeHasFocus,this.onContextMenu=this._widget.onContextMenu,this._register(ge.onDidScroll(()=>this.update())),this._register(ge.onDidChangeContentHeight(()=>this.update())),this._register(q.onDidChangeCollapseState(()=>this.update())),this.update()}get height(){return this._widget.height}getNodeAtHeight(q){let ye;if(q===0?ye=this.view.firstVisibleIndex:ye=this.view.indexAt(q+this.view.scrollTop),!(ye<0||ye>=this.view.length))return this.view.element(ye)}update(){const q=this.getNodeAtHeight(0);if(!q||this.tree.scrollTop===0){this._widget.setState(void 0);return}const ye=this.findStickyState(q);this._widget.setState(ye)}findStickyState(q){const ye=[];let ge=q,be=0,Se=this.getNextStickyNode(ge,void 0,be);for(;Se&&(ye.push(Se),be+=Se.height,!(ye.length<=this.stickyScrollMaxItemCount&&(ge=this.getNextVisibleNode(Se),!ge)));)Se=this.getNextStickyNode(ge,Se.node,be);const ae=this.constrainStickyNodes(ye);return ae.length?new te(ae):void 0}getNextVisibleNode(q){return this.getNodeAtHeight(q.position+q.height)}getNextStickyNode(q,ye,ge){const be=this.getAncestorUnderPrevious(q,ye);if(be&&!(be===q&&(!this.nodeIsUncollapsedParent(q)||this.nodeTopAlignsWithStickyNodesBottom(q,ge))))return this.createStickyScrollNode(be,ge)}nodeTopAlignsWithStickyNodesBottom(q,ye){const ge=this.getNodeIndex(q),be=this.view.getElementTop(ge),Se=ye;return this.view.scrollTop===be-Se}createStickyScrollNode(q,ye){const ge=this.treeDelegate.getHeight(q),{startIndex:be,endIndex:Se}=this.getNodeRange(q),ae=this.calculateStickyNodePosition(Se,ye,ge);return{node:q,position:ae,height:ge,startIndex:be,endIndex:Se}}getAncestorUnderPrevious(q,ye=void 0){let ge=q,be=this.getParentNode(ge);for(;be;){if(be===ye)return ge;ge=be,be=this.getParentNode(ge)}if(ye===void 0)return ge}calculateStickyNodePosition(q,ye,ge){let be=this.view.getRelativeTop(q);if(be===null&&this.view.firstVisibleIndex===q&&q+1fe&&ye<=fe?fe-ge:ye}constrainStickyNodes(q){if(q.length===0)return[];const ye=this.view.renderHeight*this.maxWidgetViewRatio,ge=q[q.length-1];if(q.length<=this.stickyScrollMaxItemCount&&ge.position+ge.height<=ye)return q;const be=this.stickyScrollDelegate.constrainStickyScrollNodes(q,this.stickyScrollMaxItemCount,ye);if(!be.length)return[];const Se=be[be.length-1];if(be.length>this.stickyScrollMaxItemCount||Se.position+Se.height>ye)throw new Error("stickyScrollDelegate violates constraints");return be}getParentNode(q){const ye=this.model.getNodeLocation(q),ge=this.model.getParentNodeLocation(ye);return ge?this.model.getNode(ge):void 0}nodeIsUncollapsedParent(q){const ye=this.model.getNodeLocation(q);return this.model.getListRenderCount(ye)>1}getNodeIndex(q){const ye=this.model.getNodeLocation(q);return this.model.getListIndex(ye)}getNodeRange(q){const ye=this.model.getNodeLocation(q),ge=this.model.getListIndex(ye);if(ge<0)throw new Error("Node not found in tree");const be=this.model.getListRenderCount(ye),Se=ge+be-1;return{startIndex:ge,endIndex:Se}}nodePositionTopBelowWidget(q){const ye=[];let ge=this.getParentNode(q);for(;ge;)ye.push(ge),ge=this.getParentNode(ge);let be=0;for(let Se=0;Se0,ge=!!q&&q.count>0;if(!ye&&!ge||ye&&ge&&this._previousState.equal(q))return;if(ye!==ge&&this.setVisible(ge),!ge){this._previousState=void 0,this._previousElements=[],this._previousStateDisposables.clear();return}const be=q.stickyNodes[q.count-1];if(this._previousState&&q.animationStateChanged(this._previousState))this._previousElements[this._previousState.count-1].style.top=`${be.position}px`;else{this._previousStateDisposables.clear();const Se=Array(q.count);for(let ae=q.count-1;ae>=0;ae--){const me=q.stickyNodes[ae],{element:fe,disposable:le}=this.createElement(me,ae,q.count);Se[ae]=fe,this._rootDomNode.appendChild(fe),this._previousStateDisposables.add(le)}this.stickyScrollFocus.updateElements(Se,q),this._previousElements=Se}this._previousState=q,this._rootDomNode.style.height=`${be.position+be.height}px`}createElement(q,ye,ge){const be=q.startIndex,Se=document.createElement("div");Se.style.top=`${q.position}px`,this.tree.options.setRowHeight!==!1&&(Se.style.height=`${q.height}px`),this.tree.options.setRowLineHeight!==!1&&(Se.style.lineHeight=`${q.height}px`),Se.classList.add("monaco-tree-sticky-row"),Se.classList.add("monaco-list-row"),Se.setAttribute("data-index",`${be}`),Se.setAttribute("data-parity",be%2===0?"even":"odd"),Se.setAttribute("id",this.view.getElementID(be));const ae=this.setAccessibilityAttributes(Se,q.node.element,ye,ge),me=this.treeDelegate.getTemplateId(q.node),fe=this.treeRenderers.find(de=>de.templateId===me);if(!fe)throw new Error(`No renderer found for template id ${me}`);let le=q.node;le===this.tree.getNode(this.tree.getNodeLocation(q.node))&&(le=new Proxy(q.node,{}));const oe=fe.renderTemplate(Se);fe.renderElement(le,q.startIndex,oe,q.height);const ne=(0,h.s)(()=>{ae.dispose(),fe.disposeElement(le,q.startIndex,oe,q.height),fe.disposeTemplate(oe),Se.remove()});return{element:Se,disposable:ne}}setAccessibilityAttributes(q,ye,ge,be){var Se;if(!this.accessibilityProvider)return h.jG.None;this.accessibilityProvider.getSetSize&&q.setAttribute("aria-setsize",String(this.accessibilityProvider.getSetSize(ye,ge,be))),this.accessibilityProvider.getPosInSet&&q.setAttribute("aria-posinset",String(this.accessibilityProvider.getPosInSet(ye,ge))),this.accessibilityProvider.getRole&&q.setAttribute("role",(Se=this.accessibilityProvider.getRole(ye))!==null&&Se!==void 0?Se:"treeitem");const ae=this.accessibilityProvider.getAriaLabel(ye),me=ae&&typeof ae!="string"?ae:(0,w.lk)(ae),fe=(0,w.fm)(oe=>{const ne=oe.readObservable(me);ne?q.setAttribute("aria-label",ne):q.removeAttribute("aria-label")});typeof ae=="string"||ae&&q.setAttribute("aria-label",ae.get());const le=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(ye);return typeof le=="number"&&q.setAttribute("aria-level",`${le}`),q.setAttribute("aria-selected",String(!1)),fe}setVisible(q){this._rootDomNode.classList.toggle("empty",!q),q||this.stickyScrollFocus.updateElements([],void 0)}domFocus(){this.stickyScrollFocus.domFocus()}focusedLast(){return this.stickyScrollFocus.focusedLast()}dispose(){this.stickyScrollFocus.dispose(),this._previousStateDisposables.dispose(),this._rootDomNode.remove()}}class Ce extends h.jG{get domHasFocus(){return this._domHasFocus}set domHasFocus(q){q!==this._domHasFocus&&(this._onDidChangeHasFocus.fire(q),this._domHasFocus=q)}constructor(q,ye){super(),this.container=q,this.view=ye,this.focusedIndex=-1,this.elements=[],this._onDidChangeHasFocus=new u.vl,this.onDidChangeHasFocus=this._onDidChangeHasFocus.event,this._onContextMenu=new u.vl,this.onContextMenu=this._onContextMenu.event,this._domHasFocus=!1,this.container.addEventListener("focus",()=>this.onFocus()),this.container.addEventListener("blur",()=>this.onBlur()),this._register(this.view.onDidFocus(()=>this.toggleStickyScrollFocused(!1))),this._register(this.view.onKeyDown(ge=>this.onKeyDown(ge))),this._register(this.view.onMouseDown(ge=>this.onMouseDown(ge))),this._register(this.view.onContextMenu(ge=>this.handleContextMenu(ge)))}handleContextMenu(q){const ye=q.browserEvent.target;if(!(0,I.Es)(ye)&&!(0,I.xu)(ye)){this.focusedLast()&&this.view.domFocus();return}if(!(0,r.kx)(q.browserEvent)){if(!this.state)throw new Error("Context menu should not be triggered when state is undefined");const ae=this.state.stickyNodes.findIndex(me=>{var fe;return me.node.element===((fe=q.element)===null||fe===void 0?void 0:fe.element)});if(ae===-1)throw new Error("Context menu should not be triggered when element is not in sticky scroll widget");this.container.focus(),this.setFocus(ae);return}if(!this.state||this.focusedIndex<0)throw new Error("Context menu key should not be triggered when focus is not in sticky scroll widget");const be=this.state.stickyNodes[this.focusedIndex].node.element,Se=this.elements[this.focusedIndex];this._onContextMenu.fire({element:be,anchor:Se,browserEvent:q.browserEvent,isStickyScroll:!0})}onKeyDown(q){if(this.domHasFocus&&this.state){if(q.key==="ArrowUp")this.setFocusedElement(Math.max(0,this.focusedIndex-1)),q.preventDefault(),q.stopPropagation();else if(q.key==="ArrowDown"||q.key==="ArrowRight"){if(this.focusedIndex>=this.state.count-1){const ye=this.state.stickyNodes[this.state.count-1].startIndex+1;this.view.domFocus(),this.view.setFocus([ye]),this.scrollNodeUnderWidget(ye,this.state)}else this.setFocusedElement(this.focusedIndex+1);q.preventDefault(),q.stopPropagation()}}}onMouseDown(q){const ye=q.browserEvent.target;!(0,I.Es)(ye)&&!(0,I.xu)(ye)||(q.browserEvent.preventDefault(),q.browserEvent.stopPropagation())}updateElements(q,ye){if(ye&&ye.count===0)throw new Error("Sticky scroll state must be undefined when there are no sticky nodes");if(ye&&ye.count!==q.length)throw new Error("Sticky scroll focus received illigel state");const ge=this.focusedIndex;if(this.removeFocus(),this.elements=q,this.state=ye,ye){const be=(0,v.qE)(ge,0,ye.count-1);this.setFocus(be)}else this.domHasFocus&&this.view.domFocus();this.container.tabIndex=ye?0:-1}setFocusedElement(q){const ye=this.state;if(!ye)throw new Error("Cannot set focus when state is undefined");if(this.setFocus(q),!(q1?ye.stickyNodes[ye.count-2]:void 0,Se=this.view.getElementTop(q),ae=be?be.position+be.height+ge.height:ge.height;this.view.scrollTop=Se-ae}domFocus(){if(!this.state)throw new Error("Cannot focus when state is undefined");this.container.focus()}focusedLast(){return this.state?this.view.getHTMLElement().classList.contains("sticky-scroll-focused"):!1}removeFocus(){this.focusedIndex!==-1&&(this.toggleElementFocus(this.elements[this.focusedIndex],!1),this.focusedIndex=-1)}setFocus(q){if(0>q)throw new Error("addFocus() can not remove focus");if(!this.state&&q>=0)throw new Error("Cannot set focus index when state is undefined");if(this.state&&q>=this.state.count)throw new Error("Cannot set focus index to an index that does not exist");const ye=this.focusedIndex;ye>=0&&this.toggleElementFocus(this.elements[ye],!1),q>=0&&this.toggleElementFocus(this.elements[q],!0),this.focusedIndex=q}toggleElementFocus(q,ye){this.toggleElementActiveFocus(q,ye&&this.domHasFocus),this.toggleElementPassiveFocus(q,ye)}toggleCurrentElementActiveFocus(q){this.focusedIndex!==-1&&this.toggleElementActiveFocus(this.elements[this.focusedIndex],q)}toggleElementActiveFocus(q,ye){q.classList.toggle("focused",ye)}toggleElementPassiveFocus(q,ye){q.classList.toggle("passive-focused",ye)}toggleStickyScrollFocused(q){this.view.getHTMLElement().classList.toggle("sticky-scroll-focused",q)}onFocus(){if(!this.state||this.elements.length===0)throw new Error("Cannot focus when state is undefined or elements are empty");this.domHasFocus=!0,this.toggleStickyScrollFocused(!0),this.toggleCurrentElementActiveFocus(!0),this.focusedIndex===-1&&this.setFocus(0)}onBlur(){this.domHasFocus=!1,this.toggleCurrentElementActiveFocus(!1)}dispose(){this.toggleStickyScrollFocused(!1),this._onDidChangeHasFocus.fire(!1),super.dispose()}}function Pe(Qe){let q=d.Lx.Unknown;return(0,r.XD)(Qe.browserEvent.target,"monaco-tl-twistie","monaco-tl-row")?q=d.Lx.Twistie:(0,r.XD)(Qe.browserEvent.target,"monaco-tl-contents","monaco-tl-row")?q=d.Lx.Element:(0,r.XD)(Qe.browserEvent.target,"monaco-tree-type-filter","monaco-list")&&(q=d.Lx.Filter),{browserEvent:Qe.browserEvent,element:Qe.element?Qe.element.element:null,target:q}}function _e(Qe){const q=(0,I.Es)(Qe.browserEvent.target);return{element:Qe.element?Qe.element.element:null,browserEvent:Qe.browserEvent,anchor:Qe.anchor,isStickyScroll:q}}function ee(Qe,q){q(Qe),Qe.children.forEach(ye=>ee(ye,q))}class De{get nodeSet(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet}constructor(q,ye){this.getFirstViewElementWithTrait=q,this.identityProvider=ye,this.nodes=[],this._onDidChange=new u.vl,this.onDidChange=this._onDidChange.event}set(q,ye){!ye?.__forceEvent&&(0,s.aI)(this.nodes,q)||this._set(q,!1,ye)}_set(q,ye,ge){if(this.nodes=[...q],this.elements=void 0,this._nodeSet=void 0,!ye){const be=this;this._onDidChange.fire({get elements(){return be.get()},browserEvent:ge})}}get(){return this.elements||(this.elements=this.nodes.map(q=>q.element)),[...this.elements]}getNodes(){return this.nodes}has(q){return this.nodeSet.has(q)}onDidModelSplice({insertedNodes:q,deletedNodes:ye}){if(!this.identityProvider){const fe=this.createNodeSet(),le=oe=>fe.delete(oe);ye.forEach(oe=>ee(oe,le)),this.set([...fe.values()]);return}const ge=new Set,be=fe=>ge.add(this.identityProvider.getId(fe.element).toString());ye.forEach(fe=>ee(fe,be));const Se=new Map,ae=fe=>Se.set(this.identityProvider.getId(fe.element).toString(),fe);q.forEach(fe=>ee(fe,ae));const me=[];for(const fe of this.nodes){const le=this.identityProvider.getId(fe.element).toString();if(!ge.has(le))me.push(fe);else{const ne=Se.get(le);ne&&ne.visible&&me.push(ne)}}if(this.nodes.length>0&&me.length===0){const fe=this.getFirstViewElementWithTrait();fe&&me.push(fe)}this._set(me,!0)}createNodeSet(){const q=new Set;for(const ye of this.nodes)q.add(ye);return q}}class Te extends I.MH{constructor(q,ye,ge){super(q),this.tree=ye,this.stickyScrollProvider=ge}onViewPointer(q){if((0,I.Bm)(q.browserEvent.target)||(0,I.B6)(q.browserEvent.target)||(0,I.bm)(q.browserEvent.target)||q.browserEvent.isHandledByList)return;const ye=q.element;if(!ye)return super.onViewPointer(q);if(this.isSelectionRangeChangeEvent(q)||this.isSelectionSingleChangeEvent(q))return super.onViewPointer(q);const ge=q.browserEvent.target,be=ge.classList.contains("monaco-tl-twistie")||ge.classList.contains("monaco-icon-label")&&ge.classList.contains("folder-icon")&&q.browserEvent.offsetX<16,Se=(0,I.xu)(q.browserEvent.target);let ae=!1;if(Se?ae=!0:typeof this.tree.expandOnlyOnTwistieClick=="function"?ae=this.tree.expandOnlyOnTwistieClick(ye.element):ae=!!this.tree.expandOnlyOnTwistieClick,Se)this.handleStickyScrollMouseEvent(q,ye);else{if(ae&&!be&&q.browserEvent.detail!==2)return super.onViewPointer(q);if(!this.tree.expandOnDoubleClick&&q.browserEvent.detail===2)return super.onViewPointer(q)}if(ye.collapsible&&(!Se||be)){const me=this.tree.getNodeLocation(ye),fe=q.browserEvent.altKey;if(this.tree.setFocus([me]),this.tree.toggleCollapsed(me,fe),ae&&be){q.browserEvent.isHandledByList=!0;return}}Se||super.onViewPointer(q)}handleStickyScrollMouseEvent(q,ye){if((0,I.b$)(q.browserEvent.target)||(0,I.W0)(q.browserEvent.target))return;const ge=this.stickyScrollProvider();if(!ge)throw new Error("Sticky scroll controller not found");const be=this.list.indexOf(ye),Se=this.list.getElementTop(be),ae=ge.nodePositionTopBelowWidget(ye);this.tree.scrollTop=Se-ae,this.list.domFocus(),this.list.setFocus([be]),this.list.setSelection([be])}onDoubleClick(q){q.browserEvent.target.classList.contains("monaco-tl-twistie")||!this.tree.expandOnDoubleClick||q.browserEvent.isHandledByList||super.onDoubleClick(q)}onMouseDown(q){const ye=q.browserEvent.target;if(!(0,I.Es)(ye)&&!(0,I.xu)(ye)){super.onMouseDown(q);return}}onContextMenu(q){const ye=q.browserEvent.target;if(!(0,I.Es)(ye)&&!(0,I.xu)(ye)){super.onContextMenu(q);return}}}class He extends I.B8{constructor(q,ye,ge,be,Se,ae,me,fe){super(q,ye,ge,be,fe),this.focusTrait=Se,this.selectionTrait=ae,this.anchorTrait=me}createMouseController(q){return new Te(this,q.tree,q.stickyScrollProvider)}splice(q,ye,ge=[]){if(super.splice(q,ye,ge),ge.length===0)return;const be=[],Se=[];let ae;ge.forEach((me,fe)=>{this.focusTrait.has(me)&&be.push(q+fe),this.selectionTrait.has(me)&&Se.push(q+fe),this.anchorTrait.has(me)&&(ae=q+fe)}),be.length>0&&super.setFocus((0,s.dM)([...super.getFocus(),...be])),Se.length>0&&super.setSelection((0,s.dM)([...super.getSelection(),...Se])),typeof ae=="number"&&super.setAnchor(ae)}setFocus(q,ye,ge=!1){super.setFocus(q,ye),ge||this.focusTrait.set(q.map(be=>this.element(be)),ye)}setSelection(q,ye,ge=!1){super.setSelection(q,ye),ge||this.selectionTrait.set(q.map(be=>this.element(be)),ye)}setAnchor(q,ye=!1){super.setAnchor(q),ye||(typeof q>"u"?this.anchorTrait.set([]):this.anchorTrait.set([this.element(q)]))}}class qe{get onDidScroll(){return this.view.onDidScroll}get onDidChangeFocus(){return this.eventBufferer.wrapEvent(this.focus.onDidChange)}get onDidChangeSelection(){return this.eventBufferer.wrapEvent(this.selection.onDidChange)}get onMouseDblClick(){return u.Jh.filter(u.Jh.map(this.view.onMouseDblClick,Pe),q=>q.target!==d.Lx.Filter)}get onMouseOver(){return u.Jh.map(this.view.onMouseOver,Pe)}get onMouseOut(){return u.Jh.map(this.view.onMouseOut,Pe)}get onContextMenu(){var q,ye;return u.Jh.any(u.Jh.filter(u.Jh.map(this.view.onContextMenu,_e),ge=>!ge.isStickyScroll),(ye=(q=this.stickyScrollController)===null||q===void 0?void 0:q.onContextMenu)!==null&&ye!==void 0?ye:u.Jh.None)}get onPointer(){return u.Jh.map(this.view.onPointer,Pe)}get onKeyDown(){return this.view.onKeyDown}get onDidFocus(){return this.view.onDidFocus}get onDidChangeModel(){return u.Jh.signal(this.model.onDidSplice)}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get findMode(){var q,ye;return(ye=(q=this.findController)===null||q===void 0?void 0:q.mode)!==null&&ye!==void 0?ye:B.Highlight}set findMode(q){this.findController&&(this.findController.mode=q)}get findMatchType(){var q,ye;return(ye=(q=this.findController)===null||q===void 0?void 0:q.matchType)!==null&&ye!==void 0?ye:V.Fuzzy}set findMatchType(q){this.findController&&(this.findController.matchType=q)}get expandOnDoubleClick(){return typeof this._options.expandOnDoubleClick>"u"?!0:this._options.expandOnDoubleClick}get expandOnlyOnTwistieClick(){return typeof this._options.expandOnlyOnTwistieClick>"u"?!0:this._options.expandOnlyOnTwistieClick}get onDidDispose(){return this.view.onDidDispose}constructor(q,ye,ge,be,Se={}){var ae;this._user=q,this._options=Se,this.eventBufferer=new u.at,this.onDidChangeFindOpenState=u.Jh.None,this.onDidChangeStickyScrollFocused=u.Jh.None,this.disposables=new h.Cm,this._onWillRefilter=new u.vl,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new u.vl,this.treeDelegate=new P(ge);const me=new u.Wj,fe=new u.Wj,le=this.disposables.add(new T(fe.event)),oe=new m.db;this.renderers=be.map(we=>new E(we,()=>this.model,me.event,le,oe,Se));for(const we of this.renderers)this.disposables.add(we);let ne;Se.keyboardNavigationLabelProvider&&(ne=new W(this,Se.keyboardNavigationLabelProvider,Se.filter),Se={...Se,filter:ne},this.disposables.add(ne)),this.focus=new De(()=>this.view.getFocusedElements()[0],Se.identityProvider),this.selection=new De(()=>this.view.getSelectedElements()[0],Se.identityProvider),this.anchor=new De(()=>this.view.getAnchorElement(),Se.identityProvider),this.view=new He(q,ye,this.treeDelegate,this.renderers,this.focus,this.selection,this.anchor,{...G(()=>this.model,Se),tree:this,stickyScrollProvider:()=>this.stickyScrollController}),this.model=this.createModel(q,this.view,Se),me.input=this.model.onDidChangeCollapseState;const de=u.Jh.forEach(this.model.onDidSplice,we=>{this.eventBufferer.bufferEvents(()=>{this.focus.onDidModelSplice(we),this.selection.onDidModelSplice(we)})},this.disposables);de(()=>null,null,this.disposables);const Le=this.disposables.add(new u.vl),We=this.disposables.add(new n.ve(0));if(this.disposables.add(u.Jh.any(de,this.focus.onDidChange,this.selection.onDidChange)(()=>{We.trigger(()=>{const we=new Set;for(const Ue of this.focus.getNodes())we.add(Ue);for(const Ue of this.selection.getNodes())we.add(Ue);Le.fire([...we.values()])})})),fe.input=Le.event,Se.keyboardSupport!==!1){const we=u.Jh.chain(this.view.onKeyDown,Ue=>Ue.filter(lt=>!(0,I.B6)(lt.target)).map(lt=>new k.Z(lt)));u.Jh.chain(we,Ue=>Ue.filter(lt=>lt.keyCode===15))(this.onLeftArrow,this,this.disposables),u.Jh.chain(we,Ue=>Ue.filter(lt=>lt.keyCode===17))(this.onRightArrow,this,this.disposables),u.Jh.chain(we,Ue=>Ue.filter(lt=>lt.keyCode===10))(this.onSpace,this,this.disposables)}if((!((ae=Se.findWidgetEnabled)!==null&&ae!==void 0)||ae)&&Se.keyboardNavigationLabelProvider&&Se.contextViewProvider){const we=this.options.findWidgetStyles?{styles:this.options.findWidgetStyles}:void 0;this.findController=new X(this,this.model,this.view,ne,Se.contextViewProvider,we),this.focusNavigationFilter=Ue=>this.findController.shouldAllowFocus(Ue),this.onDidChangeFindOpenState=this.findController.onDidChangeOpenState,this.disposables.add(this.findController),this.onDidChangeFindMode=this.findController.onDidChangeMode,this.onDidChangeFindMatchType=this.findController.onDidChangeMatchType}else this.onDidChangeFindMode=u.Jh.None,this.onDidChangeFindMatchType=u.Jh.None;Se.enableStickyScroll&&(this.stickyScrollController=new he(this,this.model,this.view,this.renderers,this.treeDelegate,Se),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus),this.styleElement=(0,r.li)(this.view.getHTMLElement()),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===A.Always)}updateOptions(q={}){var ye;this._options={...this._options,...q};for(const ge of this.renderers)ge.updateOptions(q);this.view.updateOptions(this._options),(ye=this.findController)===null||ye===void 0||ye.updateOptions(q),this.updateStickyScroll(q),this._onDidUpdateOptions.fire(this._options),this.getHTMLElement().classList.toggle("always",this._options.renderIndentGuides===A.Always)}get options(){return this._options}updateStickyScroll(q){var ye;!this.stickyScrollController&&this._options.enableStickyScroll?(this.stickyScrollController=new he(this,this.model,this.view,this.renderers,this.treeDelegate,this._options),this.onDidChangeStickyScrollFocused=this.stickyScrollController.onDidChangeHasFocus):this.stickyScrollController&&!this._options.enableStickyScroll&&(this.onDidChangeStickyScrollFocused=u.Jh.None,this.stickyScrollController.dispose(),this.stickyScrollController=void 0),(ye=this.stickyScrollController)===null||ye===void 0||ye.updateOptions(q)}getHTMLElement(){return this.view.getHTMLElement()}get scrollTop(){return this.view.scrollTop}set scrollTop(q){this.view.scrollTop=q}get scrollHeight(){return this.view.scrollHeight}get renderHeight(){return this.view.renderHeight}get ariaLabel(){return this.view.ariaLabel}set ariaLabel(q){this.view.ariaLabel=q}domFocus(){var q;!((q=this.stickyScrollController)===null||q===void 0)&&q.focusedLast()?this.stickyScrollController.domFocus():this.view.domFocus()}layout(q,ye){var ge;this.view.layout(q,ye),(0,p.Et)(ye)&&((ge=this.findController)===null||ge===void 0||ge.layout(ye))}style(q){var ye;const ge=`.${this.view.domId}`,be=[];q.treeIndentGuidesStroke&&(be.push(`.monaco-list${ge}:hover .monaco-tl-indent > .indent-guide, .monaco-list${ge}.always .monaco-tl-indent > .indent-guide { border-color: ${q.treeInactiveIndentGuidesStroke}; }`),be.push(`.monaco-list${ge} .monaco-tl-indent > .indent-guide.active { border-color: ${q.treeIndentGuidesStroke}; }`)),q.listBackground&&(be.push(`.monaco-list${ge} .monaco-scrollable-element .monaco-tree-sticky-container { background-color: ${q.listBackground}; }`),be.push(`.monaco-list${ge} .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row { background-color: ${q.listBackground}; }`)),q.listFocusForeground&&(be.push(`.monaco-list${ge}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { color: ${q.listFocusForeground}; }`),be.push(`.monaco-list${ge}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { color: inherit; }`));const Se=(0,r.gI)(q.listFocusAndSelectionOutline,(0,r.gI)(q.listSelectionOutline,(ye=q.listFocusOutline)!==null&&ye!==void 0?ye:""));Se&&(be.push(`.monaco-list${ge}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused.selected { outline: 1px solid ${Se}; outline-offset: -1px;}`),be.push(`.monaco-list${ge}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused.selected { outline: inherit;}`)),q.listFocusOutline&&(be.push(`.monaco-list${ge}.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container:focus .monaco-list-row.focused { outline: 1px solid ${q.listFocusOutline}; outline-offset: -1px; }`),be.push(`.monaco-list${ge}:not(.sticky-scroll-focused) .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.focused { outline: inherit; }`),be.push(`.monaco-workbench.context-menu-visible .monaco-list${ge}.last-focused.sticky-scroll-focused .monaco-scrollable-element .monaco-tree-sticky-container .monaco-list-row.passive-focused { outline: 1px solid ${q.listFocusOutline}; outline-offset: -1px; }`),be.push(`.monaco-workbench.context-menu-visible .monaco-list${ge}.last-focused.sticky-scroll-focused .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`),be.push(`.monaco-workbench.context-menu-visible .monaco-list${ge}.last-focused:not(.sticky-scroll-focused) .monaco-tree-sticky-container .monaco-list-rows .monaco-list-row.focused { outline: inherit; }`)),this.styleElement.textContent=be.join(` `),this.view.style(q)}getParentElement(q){const ye=this.model.getParentNodeLocation(q);return this.model.getNode(ye).element}getFirstElementChild(q){return this.model.getFirstElementChild(q)}getNode(q){return this.model.getNode(q)}getNodeLocation(q){return this.model.getNodeLocation(q)}collapse(q,ye=!1){return this.model.setCollapsed(q,!0,ye)}expand(q,ye=!1){return this.model.setCollapsed(q,!1,ye)}toggleCollapsed(q,ye=!1){return this.model.setCollapsed(q,void 0,ye)}isCollapsible(q){return this.model.isCollapsible(q)}setCollapsible(q,ye){return this.model.setCollapsible(q,ye)}isCollapsed(q){return this.model.isCollapsed(q)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(q,ye){this.eventBufferer.bufferEvents(()=>{const ge=q.map(Se=>this.model.getNode(Se));this.selection.set(ge,ye);const be=q.map(Se=>this.model.getListIndex(Se)).filter(Se=>Se>-1);this.view.setSelection(be,ye,!0)})}getSelection(){return this.selection.get()}setFocus(q,ye){this.eventBufferer.bufferEvents(()=>{const ge=q.map(Se=>this.model.getNode(Se));this.focus.set(ge,ye);const be=q.map(Se=>this.model.getListIndex(Se)).filter(Se=>Se>-1);this.view.setFocus(be,ye,!0)})}focusNext(q=1,ye=!1,ge,be=(0,r.kx)(ge)&&ge.altKey?void 0:this.focusNavigationFilter){this.view.focusNext(q,ye,ge,be)}focusPrevious(q=1,ye=!1,ge,be=(0,r.kx)(ge)&&ge.altKey?void 0:this.focusNavigationFilter){this.view.focusPrevious(q,ye,ge,be)}focusNextPage(q,ye=(0,r.kx)(q)&&q.altKey?void 0:this.focusNavigationFilter){return this.view.focusNextPage(q,ye)}focusPreviousPage(q,ye=(0,r.kx)(q)&&q.altKey?void 0:this.focusNavigationFilter){return this.view.focusPreviousPage(q,ye,()=>{var ge,be;return(be=(ge=this.stickyScrollController)===null||ge===void 0?void 0:ge.height)!==null&&be!==void 0?be:0})}focusFirst(q,ye=(0,r.kx)(q)&&q.altKey?void 0:this.focusNavigationFilter){this.view.focusFirst(q,ye)}getFocus(){return this.focus.get()}reveal(q,ye){this.model.expandTo(q);const ge=this.model.getListIndex(q);if(ge!==-1)if(!this.stickyScrollController)this.view.reveal(ge,ye);else{const be=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(q));this.view.reveal(ge,ye,be)}}onLeftArrow(q){q.preventDefault(),q.stopPropagation();const ye=this.view.getFocusedElements();if(ye.length===0)return;const ge=ye[0],be=this.model.getNodeLocation(ge);if(!this.model.setCollapsed(be,!0)){const ae=this.model.getParentNodeLocation(be);if(!ae)return;const me=this.model.getListIndex(ae);this.view.reveal(me),this.view.setFocus([me])}}onRightArrow(q){q.preventDefault(),q.stopPropagation();const ye=this.view.getFocusedElements();if(ye.length===0)return;const ge=ye[0],be=this.model.getNodeLocation(ge);if(!this.model.setCollapsed(be,!1)){if(!ge.children.some(fe=>fe.visible))return;const[ae]=this.view.getFocus(),me=ae+1;this.view.reveal(me),this.view.setFocus([me])}}onSpace(q){q.preventDefault(),q.stopPropagation();const ye=this.view.getFocusedElements();if(ye.length===0)return;const ge=ye[0],be=this.model.getNodeLocation(ge),Se=q.browserEvent.altKey;this.model.setCollapsed(be,void 0,Se)}dispose(){var q;(0,h.AS)(this.disposables),(q=this.stickyScrollController)===null||q===void 0||q.dispose(),this.view.dispose()}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/indexTreeModel.js":function(pt,Me,e){e.d(Me,{G6:function(){return d},Mn:function(){return S},iZ:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/tree.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/symbols.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js");function I(a){return typeof a=="object"&&"visibility"in a&&"data"in a}function S(a){switch(a){case!0:return 1;case!1:return 0;default:return a}}function f(a){return typeof a.collapsible=="boolean"}class d{constructor(s,n,i,c={}){var m;this.user=s,this.list=n,this.rootRef=[],this.eventBufferer=new g.at,this._onDidChangeCollapseState=new g.vl,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new g.vl,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new g.vl,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new k.ve(M.h),this.collapseByDefault=typeof c.collapseByDefault>"u"?!1:c.collapseByDefault,this.allowNonCollapsibleParents=(m=c.allowNonCollapsibleParents)!==null&&m!==void 0?m:!1,this.filter=c.filter,this.autoExpandSingleChildren=typeof c.autoExpandSingleChildren>"u"?!1:c.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(s,n,i=x.f.empty(),c={}){if(s.length===0)throw new r.jh(this.user,"Invalid tree location");c.diffIdentityProvider?this.spliceSmart(c.diffIdentityProvider,s,n,i,c):this.spliceSimple(s,n,i,c)}spliceSmart(s,n,i,c,m,u){var C;c===void 0&&(c=x.f.empty()),u===void 0&&(u=(C=m.diffDepth)!==null&&C!==void 0?C:0);const{parentNode:h}=this.getParentNodeWithListIndex(n);if(!h.lastDiffIds)return this.spliceSimple(n,i,c,m);const v=[...c],p=n[n.length-1],b=new L.uP({getElements:()=>h.lastDiffIds},{getElements:()=>[...h.children.slice(0,p),...v,...h.children.slice(p+i)].map(K=>s.getId(K.element).toString())}).ComputeDiff(!1);if(b.quitEarly)return h.lastDiffIds=void 0,this.spliceSimple(n,i,v,m);const O=n.slice(0,-1),w=(K,G,P)=>{if(u>0)for(let A=0;AP.originalStart-G.originalStart))w(j,U,j-(K.originalStart+K.originalLength)),j=K.originalStart,U=K.modifiedStart-p,this.spliceSimple([...O,j],K.originalLength,x.f.slice(v,U,U+K.modifiedLength),m);w(j,U,j)}spliceSimple(s,n,i=x.f.empty(),{onDidCreateNode:c,onDidDeleteNode:m,diffIdentityProvider:u}){const{parentNode:C,listIndex:h,revealed:v,visible:p}=this.getParentNodeWithListIndex(s),b=[],O=x.f.map(i,E=>this.createTreeNode(E,C,C.visible?1:0,v,b,c)),w=s[s.length-1];let j=0;for(let E=w;E>=0&&Eu.getId(E.element).toString())):C.lastDiffIds=C.children.map(E=>u.getId(E.element).toString()):C.lastDiffIds=void 0;let A=0;for(const E of P)E.visible&&A++;if(A!==0)for(let E=w+U.length;EW+($.visible?$.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(C,G-E),this.list.splice(h,E,b)}if(P.length>0&&m){const E=W=>{m(W),W.children.forEach(E)};P.forEach(E)}this._onDidSplice.fire({insertedNodes:U,deletedNodes:P});let T=C;for(;T;){if(T.visibility===2){this.refilterDelayer.trigger(()=>this.refilter());break}T=T.parent}}rerender(s){if(s.length===0)throw new r.jh(this.user,"Invalid tree location");const{node:n,listIndex:i,revealed:c}=this.getTreeNodeWithListIndex(s);n.visible&&c&&this.list.splice(i,1,[n])}has(s){return this.hasTreeNode(s)}getListIndex(s){const{listIndex:n,visible:i,revealed:c}=this.getTreeNodeWithListIndex(s);return i&&c?n:-1}getListRenderCount(s){return this.getTreeNode(s).renderNodeCount}isCollapsible(s){return this.getTreeNode(s).collapsible}setCollapsible(s,n){const i=this.getTreeNode(s);typeof n>"u"&&(n=!i.collapsible);const c={collapsible:n};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(s,c))}isCollapsed(s){return this.getTreeNode(s).collapsed}setCollapsed(s,n,i){const c=this.getTreeNode(s);typeof n>"u"&&(n=!c.collapsed);const m={collapsed:n,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(s,m))}_setCollapseState(s,n){const{node:i,listIndex:c,revealed:m}=this.getTreeNodeWithListIndex(s),u=this._setListNodeCollapseState(i,c,m,n);if(i!==this.root&&this.autoExpandSingleChildren&&u&&!f(n)&&i.collapsible&&!i.collapsed&&!n.recursive){let C=-1;for(let h=0;h-1){C=-1;break}else C=h;C>-1&&this._setCollapseState([...s,C],n)}return u}_setListNodeCollapseState(s,n,i,c){const m=this._setNodeCollapseState(s,c,!1);if(!i||!s.visible||!m)return m;const u=s.renderNodeCount,C=this.updateNodeAfterCollapseChange(s),h=u-(n===-1?0:1);return this.list.splice(n+1,h,C.slice(1)),m}_setNodeCollapseState(s,n,i){let c;if(s===this.root?c=!1:(f(n)?(c=s.collapsible!==n.collapsible,s.collapsible=n.collapsible):s.collapsible?(c=s.collapsed!==n.collapsed,s.collapsed=n.collapsed):c=!1,c&&this._onDidChangeCollapseState.fire({node:s,deep:i})),!f(n)&&n.recursive)for(const m of s.children)c=this._setNodeCollapseState(m,n,!0)||c;return c}expandTo(s){this.eventBufferer.bufferEvents(()=>{let n=this.getTreeNode(s);for(;n.parent;)n=n.parent,s=s.slice(0,s.length-1),n.collapsed&&this._setCollapseState(s,{collapsed:!1,recursive:!1})})}refilter(){const s=this.root.renderNodeCount,n=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,s,n),this.refilterDelayer.cancel()}createTreeNode(s,n,i,c,m,u){const C={parent:n,element:s.element,children:[],depth:n.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:typeof s.collapsible=="boolean"?s.collapsible:typeof s.collapsed<"u",collapsed:typeof s.collapsed>"u"?this.collapseByDefault:s.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},h=this._filterNode(C,i);C.visibility=h,c&&m.push(C);const v=s.children||x.f.empty(),p=c&&h!==0&&!C.collapsed;let b=0,O=1;for(const w of v){const j=this.createTreeNode(w,C,h,p,m,u);C.children.push(j),O+=j.renderNodeCount,j.visible&&(j.visibleChildIndex=b++)}return this.allowNonCollapsibleParents||(C.collapsible=C.collapsible||C.children.length>0),C.visibleChildrenCount=b,C.visible=h===2?b>0:h===1,C.visible?C.collapsed||(C.renderNodeCount=O):(C.renderNodeCount=0,c&&m.pop()),u?.(C),C}updateNodeAfterCollapseChange(s){const n=s.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(s,i),this._updateAncestorsRenderNodeCount(s.parent,i.length-n),i}_updateNodeAfterCollapseChange(s,n){if(s.visible===!1)return 0;if(n.push(s),s.renderNodeCount=1,!s.collapsed)for(const i of s.children)s.renderNodeCount+=this._updateNodeAfterCollapseChange(i,n);return this._onDidChangeRenderNodeCount.fire(s),s.renderNodeCount}updateNodeAfterFilterChange(s){const n=s.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(s,s.visible?1:0,i),this._updateAncestorsRenderNodeCount(s.parent,i.length-n),i}_updateNodeAfterFilterChange(s,n,i,c=!0){let m;if(s!==this.root){if(m=this._filterNode(s,n),m===0)return s.visible=!1,s.renderNodeCount=0,!1;c&&i.push(s)}const u=i.length;s.renderNodeCount=s===this.root?0:1;let C=!1;if(!s.collapsed||m!==0){let h=0;for(const v of s.children)C=this._updateNodeAfterFilterChange(v,m,i,c&&!s.collapsed)||C,v.visible&&(v.visibleChildIndex=h++);s.visibleChildrenCount=h}else s.visibleChildrenCount=0;return s!==this.root&&(s.visible=m===2?C:m===1,s.visibility=m),s.visible?s.collapsed||(s.renderNodeCount+=i.length-u):(s.renderNodeCount=0,c&&i.pop()),this._onDidChangeRenderNodeCount.fire(s),s.visible}_updateAncestorsRenderNodeCount(s,n){if(n!==0)for(;s;)s.renderNodeCount+=n,this._onDidChangeRenderNodeCount.fire(s),s=s.parent}_filterNode(s,n){const i=this.filter?this.filter.filter(s.element,n):1;return typeof i=="boolean"?(s.filterData=void 0,i?1:0):I(i)?(s.filterData=i.data,S(i.visibility)):(s.filterData=void 0,S(i))}hasTreeNode(s,n=this.root){if(!s||s.length===0)return!0;const[i,...c]=s;return i<0||i>n.children.length?!1:this.hasTreeNode(c,n.children[i])}getTreeNode(s,n=this.root){if(!s||s.length===0)return n;const[i,...c]=s;if(i<0||i>n.children.length)throw new r.jh(this.user,"Invalid tree location");return this.getTreeNode(c,n.children[i])}getTreeNodeWithListIndex(s){if(s.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};const{parentNode:n,listIndex:i,revealed:c,visible:m}=this.getParentNodeWithListIndex(s),u=s[s.length-1];if(u<0||u>n.children.length)throw new r.jh(this.user,"Invalid tree location");const C=n.children[u];return{node:C,listIndex:i,revealed:c,visible:m&&C.visible}}getParentNodeWithListIndex(s,n=this.root,i=0,c=!0,m=!0){const[u,...C]=s;if(u<0||u>n.children.length)throw new r.jh(this.user,"Invalid tree location");for(let h=0;hS(new k.P(r.zk(I),f))))}onmousedown(I,S){this._register(r.ko(I,r.Bx.MOUSE_DOWN,f=>S(new k.P(r.zk(I),f))))}onmouseover(I,S){this._register(r.ko(I,r.Bx.MOUSE_OVER,f=>S(new k.P(r.zk(I),f))))}onmouseleave(I,S){this._register(r.ko(I,r.Bx.MOUSE_LEAVE,f=>S(new k.P(r.zk(I),f))))}onkeydown(I,S){this._register(r.ko(I,r.Bx.KEY_DOWN,f=>S(new F.Z(f))))}onkeyup(I,S){this._register(r.ko(I,r.Bx.KEY_UP,f=>S(new F.Z(f))))}oninput(I,S){this._register(r.ko(I,r.Bx.INPUT,S))}onblur(I,S){this._register(r.ko(I,r.Bx.BLUR,S))}onfocus(I,S){this._register(r.ko(I,r.Bx.FOCUS,S))}ignoreGesture(I){return M.q.ignoreTarget(I)}}},"./node_modules/monaco-editor/esm/vs/base/browser/window.js":function(pt,Me,e){e.d(Me,{G:function(){return F},y:function(){return r}});function r(k,M){const L=k;typeof L.vscodeWindowId!="number"&&Object.defineProperty(L,"vscodeWindowId",{get:()=>M})}const F=window},"./node_modules/monaco-editor/esm/vs/base/common/actions.js":function(pt,Me,e){e.d(Me,{HJ:function(){return I},LN:function(){return L},YH:function(){return x},ih:function(){return S},rc:function(){return M},wv:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/nls.js");class M extends F.jG{constructor(d,a="",s="",n=!0,i){super(),this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=d,this._label=a,this._cssClass=s,this._enabled=n,this._actionCallback=i}get id(){return this._id}get label(){return this._label}set label(d){this._setLabel(d)}_setLabel(d){this._label!==d&&(this._label=d,this._onDidChange.fire({label:d}))}get tooltip(){return this._tooltip||""}set tooltip(d){this._setTooltip(d)}_setTooltip(d){this._tooltip!==d&&(this._tooltip=d,this._onDidChange.fire({tooltip:d}))}get class(){return this._cssClass}set class(d){this._setClass(d)}_setClass(d){this._cssClass!==d&&(this._cssClass=d,this._onDidChange.fire({class:d}))}get enabled(){return this._enabled}set enabled(d){this._setEnabled(d)}_setEnabled(d){this._enabled!==d&&(this._enabled=d,this._onDidChange.fire({enabled:d}))}get checked(){return this._checked}set checked(d){this._setChecked(d)}_setChecked(d){this._checked!==d&&(this._checked=d,this._onDidChange.fire({checked:d}))}async run(d,a){this._actionCallback&&await this._actionCallback(d)}}class L extends F.jG{constructor(){super(...arguments),this._onWillRun=this._register(new r.vl),this.onWillRun=this._onWillRun.event,this._onDidRun=this._register(new r.vl),this.onDidRun=this._onDidRun.event}async run(d,a){if(!d.enabled)return;this._onWillRun.fire({action:d});let s;try{await this.runAction(d,a)}catch(n){s=n}this._onDidRun.fire({action:d,error:s})}async runAction(d,a){await d.run(a)}}class g{constructor(){this.id=g.ID,this.label="",this.tooltip="",this.class="separator",this.enabled=!1,this.checked=!1}static join(...d){let a=[];for(const s of d)s.length&&(a.length?a=[...a,new g,...s]:a=s);return a}async run(){}}g.ID="vs.actions.separator";class x{get actions(){return this._actions}constructor(d,a,s,n){this.tooltip="",this.enabled=!0,this.checked=void 0,this.id=d,this.label=a,this.class=n,this._actions=s}async run(){}}class I extends M{constructor(){super(I.ID,k.kg("submenu.empty","(empty)"),void 0,!1)}}I.ID="vs.actions.empty";function S(f){var d;return{id:f.id,label:f.label,class:f.class,enabled:(d=f.enabled)!==null&&d!==void 0?d:!0,checked:f.checked,run:async(...a)=>f.run(...a),tooltip:f.label}}},"./node_modules/monaco-editor/esm/vs/base/common/arrays.js":function(pt,Me,e){e.d(Me,{$z:function(){return I},Ct:function(){return n},E4:function(){return p},EI:function(){return i},El:function(){return L},Fy:function(){return m},Hw:function(){return T},RT:function(){return r},SK:function(){return s},SO:function(){return x},TS:function(){return A},U9:function(){return P},UH:function(){return M},V4:function(){return w},VE:function(){return K},Yc:function(){return a},_A:function(){return h},_j:function(){return b},aI:function(){return k},bS:function(){return F},c1:function(){return W},dM:function(){return c},j3:function(){return E},kj:function(){return d},n:function(){return S},nH:function(){return G},nK:function(){return C},pN:function(){return f},r7:function(){return v},t9:function(){return $},y1:function(){return u}});function r(z,J=0){return z[z.length-(1+J)]}function F(z){if(z.length===0)throw new Error("Invalid tail call");return[z.slice(0,z.length-1),z[z.length-1]]}function k(z,J,B=(V,Y)=>V===Y){if(z===J)return!0;if(!z||!J||z.length!==J.length)return!1;for(let V=0,Y=z.length;VB(z[V],J))}function g(z,J){let B=0,V=z-1;for(;B<=V;){const Y=(B+V)/2|0,X=J(Y);if(X<0)B=Y+1;else if(X>0)V=Y-1;else return Y}return-(B+1)}function x(z,J,B){if(z=z|0,z>=J.length)throw new TypeError("invalid index");const V=J[Math.floor(J.length*Math.random())],Y=[],X=[],ie=[];for(const re of J){const te=B(re,V);te<0?Y.push(re):te>0?X.push(re):ie.push(re)}return z!!J)}function s(z){let J=0;for(let B=0;B0}function c(z,J=B=>B){const B=new Set;return z.filter(V=>{const Y=J(V);return B.has(Y)?!1:(B.add(Y),!0)})}function m(z,J){return z.length>0?z[0]:J}function u(z,J){let B=typeof J=="number"?z:0;typeof J=="number"?B=z:(B=0,J=z);const V=[];if(B<=J)for(let Y=B;YJ;Y--)V.push(Y);return V}function C(z,J,B){const V=z.slice(0,J),Y=z.slice(J);return V.concat(B,Y)}function h(z,J){const B=z.indexOf(J);B>-1&&(z.splice(B,1),z.unshift(J))}function v(z,J){const B=z.indexOf(J);B>-1&&(z.splice(B,1),z.push(J))}function p(z,J){for(const B of J)z.push(B)}function b(z){return Array.isArray(z)?z:[z]}function O(z,J,B){const V=j(z,J),Y=z.length,X=B.length;z.length=Y+X;for(let ie=Y-1;ie>=V;ie--)z[ie+X]=z[ie];for(let ie=0;ie0}z.isGreaterThan=V;function Y(X){return X===0}z.isNeitherLessOrGreaterThan=Y,z.greaterThan=1,z.lessThan=-1,z.neitherLessOrGreaterThan=0})(U||(U={}));function K(z,J){return(B,V)=>J(z(B),z(V))}function G(...z){return(J,B)=>{for(const V of z){const Y=V(J,B);if(!U.isNeitherLessOrGreaterThan(Y))return Y}return U.neitherLessOrGreaterThan}}const P=(z,J)=>z-J,A=(z,J)=>P(z?1:0,J?1:0);function T(z){return(J,B)=>-z(J,B)}class E{constructor(J){this.items=J,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(J){let B=this.firstIdx;for(;B=0&&J(this.items[B]);)B--;const V=B===this.lastIdx?null:this.items.slice(B+1,this.lastIdx+1);return this.lastIdx=B,V}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const J=this.items[this.firstIdx];return this.firstIdx++,J}takeCount(J){const B=this.items.slice(this.firstIdx,this.firstIdx+J);return this.firstIdx+=J,B}}class W{constructor(J){this.iterate=J}toArray(){const J=[];return this.iterate(B=>(J.push(B),!0)),J}filter(J){return new W(B=>this.iterate(V=>J(V)?B(V):!0))}map(J){return new W(B=>this.iterate(V=>B(J(V))))}findLast(J){let B;return this.iterate(V=>(J(V)&&(B=V),!0)),B}findLastMaxBy(J){let B,V=!0;return this.iterate(Y=>((V||U.isGreaterThan(J(Y,B)))&&(V=!1,B=Y),!0)),B}}W.empty=new W(z=>{});class ${constructor(J){this._indexMap=J}static createSortPermutation(J,B){const V=Array.from(J.keys()).sort((Y,X)=>B(J[Y],J[X]));return new $(V)}apply(J){return J.map((B,V)=>J[this._indexMap[V]])}inverse(){const J=this._indexMap.slice();for(let B=0;B=0;c--){const m=s[c];if(n(m))return c}return-1}function k(s,n){const i=M(s,n);return i===-1?void 0:s[i]}function M(s,n,i=0,c=s.length){let m=i,u=c;for(;m0&&(i=m)}return i}function S(s,n){if(s.length===0)return;let i=s[0];for(let c=1;c=0&&(i=m)}return i}function f(s,n){return I(s,(i,c)=>-n(i,c))}function d(s,n){if(s.length===0)return-1;let i=0;for(let c=1;c0&&(i=c)}return i}function a(s,n){for(const i of s){const c=n(i);if(c!==void 0)return c}}},"./node_modules/monaco-editor/esm/vs/base/common/assert.js":function(pt,Me,e){e.d(Me,{Ft:function(){return L},V7:function(){return M},Xo:function(){return g},ok:function(){return F},xb:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js");function F(x,I){if(!x)throw new Error(I?`Assertion failed (${I})`:"Assertion Failed")}function k(x,I="Unreachable"){throw new Error(I)}function M(x){x||(0,r.dz)(new r.D7("Soft Assertion Failed"))}function L(x){if(!x()){debugger;x(),(0,r.dz)(new r.D7("Assertion Failed"))}}function g(x,I){let S=0;for(;S{const z=A.token.onCancellationRequested(()=>{z.dispose(),$(new F.AL)});Promise.resolve(T).then(J=>{z.dispose(),A.dispose(),W(J)},J=>{z.dispose(),A.dispose(),$(J)})});return new class{cancel(){A.cancel(),A.dispose()}then(W,$){return E.then(W,$)}catch(W){return this.then(void 0,W)}finally(W){return E.finally(W)}}}function S(P,A,T){return new Promise((E,W)=>{const $=A.onCancellationRequested(()=>{$.dispose(),E(T)});P.then(E,W).finally(()=>$.dispose())})}class f{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(A){if(this.isDisposed)return Promise.reject(new Error("Throttler is disposed"));if(this.activePromise){if(this.queuedPromiseFactory=A,!this.queuedPromise){const T=()=>{if(this.queuedPromise=null,this.isDisposed)return;const E=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,E};this.queuedPromise=new Promise(E=>{this.activePromise.then(T,T).then(E)})}return new Promise((T,E)=>{this.queuedPromise.then(T,E)})}return this.activePromise=A(),new Promise((T,E)=>{this.activePromise.then(W=>{this.activePromise=null,T(W)},W=>{this.activePromise=null,E(W)})})}dispose(){this.isDisposed=!0}}const d=(P,A)=>{let T=!0;const E=setTimeout(()=>{T=!1,A()},P);return{isTriggered:()=>T,dispose:()=>{clearTimeout(E),T=!1}}},a=P=>{let A=!0;return queueMicrotask(()=>{A&&(A=!1,P())}),{isTriggered:()=>A,dispose:()=>{A=!1}}};class s{constructor(A){this.defaultDelay=A,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(A,T=this.defaultDelay){this.task=A,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((W,$)=>{this.doResolve=W,this.doReject=$}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const W=this.task;return this.task=null,W()}}));const E=()=>{var W;this.deferred=null,(W=this.doResolve)===null||W===void 0||W.call(this,null)};return this.deferred=T===g.h?a(E):d(T,E),this.completionPromise}isTriggered(){var A;return!!(!((A=this.deferred)===null||A===void 0)&&A.isTriggered())}cancel(){var A;this.cancelTimeout(),this.completionPromise&&((A=this.doReject)===null||A===void 0||A.call(this,new F.AL),this.completionPromise=null)}cancelTimeout(){var A;(A=this.deferred)===null||A===void 0||A.dispose(),this.deferred=null}dispose(){this.cancel()}}class n{constructor(A){this.delayer=new s(A),this.throttler=new f}trigger(A,T){return this.delayer.trigger(()=>this.throttler.queue(A),T)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}function i(P,A){return A?new Promise((T,E)=>{const W=setTimeout(()=>{$.dispose(),T()},P),$=A.onCancellationRequested(()=>{clearTimeout(W),$.dispose(),E(new F.AL)})}):I(T=>i(P,T))}function c(P,A=0,T){const E=setTimeout(()=>{P(),T&&W.dispose()},A),W=(0,M.s)(()=>{clearTimeout(E),T?.deleteAndLeak(W)});return T?.add(W),W}function m(P,A=E=>!!E,T=null){let E=0;const W=P.length,$=()=>{if(E>=W)return Promise.resolve(T);const z=P[E++];return Promise.resolve(z()).then(B=>A(B)?Promise.resolve(B):$())};return $()}class u{constructor(A,T){this._token=-1,typeof A=="function"&&typeof T=="number"&&this.setIfNotSet(A,T)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(A,T){this.cancel(),this._token=setTimeout(()=>{this._token=-1,A()},T)}setIfNotSet(A,T){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,A()},T))}}class C{constructor(){this.disposable=void 0}cancel(){var A;(A=this.disposable)===null||A===void 0||A.dispose(),this.disposable=void 0}cancelAndSet(A,T,E=globalThis){this.cancel();const W=E.setInterval(()=>{A()},T);this.disposable=(0,M.s)(()=>{E.clearInterval(W),this.disposable=void 0})}dispose(){this.cancel()}}class h{constructor(A,T){this.timeoutToken=-1,this.runner=A,this.timeout=T,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(A=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,A)}get delay(){return this.timeout}set delay(A){this.timeout=A}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var A;(A=this.runner)===null||A===void 0||A.call(this)}}let v,p;(function(){typeof globalThis.requestIdleCallback!="function"||typeof globalThis.cancelIdleCallback!="function"?p=(P,A)=>{(0,L._p)(()=>{if(T)return;const E=Date.now()+15;A(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,E-Date.now())}}))});let T=!1;return{dispose(){T||(T=!0)}}}:p=(P,A,T)=>{const E=P.requestIdleCallback(A,typeof T=="number"?{timeout:T}:void 0);let W=!1;return{dispose(){W||(W=!0,P.cancelIdleCallback(E))}}},v=P=>p(globalThis,P)})();class b{constructor(A,T){this._didRun=!1,this._executor=()=>{try{this._value=T()}catch(E){this._error=E}finally{this._didRun=!0}},this._handle=p(A,()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class O extends b{constructor(A){super(globalThis,A)}}class w{get isRejected(){var A;return((A=this.outcome)===null||A===void 0?void 0:A.outcome)===1}get isSettled(){return!!this.outcome}constructor(){this.p=new Promise((A,T)=>{this.completeCallback=A,this.errorCallback=T})}complete(A){return new Promise(T=>{this.completeCallback(A),this.outcome={outcome:0,value:A},T()})}error(A){return new Promise(T=>{this.errorCallback(A),this.outcome={outcome:1,value:A},T()})}cancel(){return this.error(new F.AL)}}var j;(function(P){async function A(E){let W;const $=await Promise.all(E.map(z=>z.then(J=>J,J=>{W||(W=J)})));if(typeof W<"u")throw W;return $}P.settled=A;function T(E){return new Promise(async(W,$)=>{try{await E(W,$)}catch(z){$(z)}})}P.withAsyncBody=T})(j||(j={}));class U{static fromArray(A){return new U(T=>{T.emitMany(A)})}static fromPromise(A){return new U(async T=>{T.emitMany(await A)})}static fromPromises(A){return new U(async T=>{await Promise.all(A.map(async E=>T.emitOne(await E)))})}static merge(A){return new U(async T=>{await Promise.all(A.map(async E=>{for await(const W of E)T.emitOne(W)}))})}constructor(A){this._state=0,this._results=[],this._error=null,this._onStateChanged=new k.vl,queueMicrotask(async()=>{const T={emitOne:E=>this.emitOne(E),emitMany:E=>this.emitMany(E),reject:E=>this.reject(E)};try{await Promise.resolve(A(T)),this.resolve()}catch(E){this.reject(E)}finally{T.emitOne=void 0,T.emitMany=void 0,T.reject=void 0}})}[Symbol.asyncIterator](){let A=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(A{for await(const W of A)E.emitOne(T(W))})}map(A){return U.map(this,A)}static filter(A,T){return new U(async E=>{for await(const W of A)T(W)&&E.emitOne(W)})}filter(A){return U.filter(this,A)}static coalesce(A){return U.filter(A,T=>!!T)}coalesce(){return U.coalesce(this)}static async toPromise(A){const T=[];for await(const E of A)T.push(E);return T}toPromise(){return U.toPromise(this)}emitOne(A){this._state===0&&(this._results.push(A),this._onStateChanged.fire())}emitMany(A){this._state===0&&(this._results=this._results.concat(A),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(A){this._state===0&&(this._state=2,this._error=A,this._onStateChanged.fire())}}U.EMPTY=U.fromArray([]);class K extends U{constructor(A,T){super(T),this._source=A}cancel(){this._source.cancel()}}function G(P){const A=new r.Q,T=P(A.token);return new K(A,async E=>{const W=A.token.onCancellationRequested(()=>{W.dispose(),A.dispose(),E.reject(new F.AL)});try{for await(const $ of T){if(A.token.isCancellationRequested)return;E.emitOne($)}W.dispose(),A.dispose()}catch($){W.dispose(),A.dispose(),E.reject($)}})}},"./node_modules/monaco-editor/esm/vs/base/common/buffer.js":function(pt,Me,e){e.d(Me,{$l:function(){return g},Gs:function(){return d},MB:function(){return L},Sw:function(){return S},bb:function(){return I},gN:function(){return x},pJ:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/lazy.js");const F=typeof Buffer<"u",k=new r.d(()=>new Uint8Array(256));let M;class L{static wrap(s){return F&&!Buffer.isBuffer(s)&&(s=Buffer.from(s.buffer,s.byteOffset,s.byteLength)),new L(s)}constructor(s){this.buffer=s,this.byteLength=this.buffer.byteLength}toString(){return F?this.buffer.toString():(M||(M=new TextDecoder),M.decode(this.buffer))}}function g(a,s){return a[s+0]<<0>>>0|a[s+1]<<8>>>0}function x(a,s,n){a[n+0]=s&255,s=s>>>8,a[n+1]=s&255}function I(a,s){return a[s]*2**24+a[s+1]*2**16+a[s+2]*2**8+a[s+3]}function S(a,s,n){a[n+3]=s,s=s>>>8,a[n+2]=s,s=s>>>8,a[n+1]=s,s=s>>>8,a[n]=s}function f(a,s){return a[s]}function d(a,s,n){a[n]=s}},"./node_modules/monaco-editor/esm/vs/base/common/cache.js":function(pt,Me,e){e.d(Me,{V:function(){return F},o:function(){return r}});class r{constructor(M,L=JSON.stringify){this.fn=M,this._computeKey=L,this.lastCache=void 0,this.lastArgKey=void 0}get(M){const L=this._computeKey(M);return this.lastArgKey!==L&&(this.lastArgKey=L,this.lastCache=this.fn(M)),this.lastCache}}class F{get cachedValues(){return this._map}constructor(M){this.fn=M,this._map=new Map}get(M){if(this._map.has(M))return this._map.get(M);const L=this.fn(M);return this._map.set(M,L),L}}},"./node_modules/monaco-editor/esm/vs/base/common/cancellation.js":function(pt,Me,e){e.d(Me,{Q:function(){return L},X:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js");const F=Object.freeze(function(g,x){const I=setTimeout(g.bind(x),0);return{dispose(){clearTimeout(I)}}});var k;(function(g){function x(I){return I===g.None||I===g.Cancelled||I instanceof M?!0:!I||typeof I!="object"?!1:typeof I.isCancellationRequested=="boolean"&&typeof I.onCancellationRequested=="function"}g.isCancellationToken=x,g.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Jh.None}),g.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:F})})(k||(k={}));class M{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?F:(this._emitter||(this._emitter=new r.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class L{constructor(x){this._token=void 0,this._parentListener=void 0,this._parentListener=x&&x.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new M),this._token}cancel(){this._token?this._token instanceof M&&this._token.cancel():this._token=k.Cancelled}dispose(x=!1){var I;x&&this.cancel(),(I=this._parentListener)===null||I===void 0||I.dispose(),this._token?this._token instanceof M&&this._token.dispose():this._token=k.None}}},"./node_modules/monaco-editor/esm/vs/base/common/codicons.js":function(pt,Me,e){e.d(Me,{W:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/codiconsUtil.js");const F={add:(0,r.k)("add",6e4),plus:(0,r.k)("plus",6e4),gistNew:(0,r.k)("gist-new",6e4),repoCreate:(0,r.k)("repo-create",6e4),lightbulb:(0,r.k)("lightbulb",60001),lightBulb:(0,r.k)("light-bulb",60001),repo:(0,r.k)("repo",60002),repoDelete:(0,r.k)("repo-delete",60002),gistFork:(0,r.k)("gist-fork",60003),repoForked:(0,r.k)("repo-forked",60003),gitPullRequest:(0,r.k)("git-pull-request",60004),gitPullRequestAbandoned:(0,r.k)("git-pull-request-abandoned",60004),recordKeys:(0,r.k)("record-keys",60005),keyboard:(0,r.k)("keyboard",60005),tag:(0,r.k)("tag",60006),gitPullRequestLabel:(0,r.k)("git-pull-request-label",60006),tagAdd:(0,r.k)("tag-add",60006),tagRemove:(0,r.k)("tag-remove",60006),person:(0,r.k)("person",60007),personFollow:(0,r.k)("person-follow",60007),personOutline:(0,r.k)("person-outline",60007),personFilled:(0,r.k)("person-filled",60007),gitBranch:(0,r.k)("git-branch",60008),gitBranchCreate:(0,r.k)("git-branch-create",60008),gitBranchDelete:(0,r.k)("git-branch-delete",60008),sourceControl:(0,r.k)("source-control",60008),mirror:(0,r.k)("mirror",60009),mirrorPublic:(0,r.k)("mirror-public",60009),star:(0,r.k)("star",60010),starAdd:(0,r.k)("star-add",60010),starDelete:(0,r.k)("star-delete",60010),starEmpty:(0,r.k)("star-empty",60010),comment:(0,r.k)("comment",60011),commentAdd:(0,r.k)("comment-add",60011),alert:(0,r.k)("alert",60012),warning:(0,r.k)("warning",60012),search:(0,r.k)("search",60013),searchSave:(0,r.k)("search-save",60013),logOut:(0,r.k)("log-out",60014),signOut:(0,r.k)("sign-out",60014),logIn:(0,r.k)("log-in",60015),signIn:(0,r.k)("sign-in",60015),eye:(0,r.k)("eye",60016),eyeUnwatch:(0,r.k)("eye-unwatch",60016),eyeWatch:(0,r.k)("eye-watch",60016),circleFilled:(0,r.k)("circle-filled",60017),primitiveDot:(0,r.k)("primitive-dot",60017),closeDirty:(0,r.k)("close-dirty",60017),debugBreakpoint:(0,r.k)("debug-breakpoint",60017),debugBreakpointDisabled:(0,r.k)("debug-breakpoint-disabled",60017),debugHint:(0,r.k)("debug-hint",60017),terminalDecorationSuccess:(0,r.k)("terminal-decoration-success",60017),primitiveSquare:(0,r.k)("primitive-square",60018),edit:(0,r.k)("edit",60019),pencil:(0,r.k)("pencil",60019),info:(0,r.k)("info",60020),issueOpened:(0,r.k)("issue-opened",60020),gistPrivate:(0,r.k)("gist-private",60021),gitForkPrivate:(0,r.k)("git-fork-private",60021),lock:(0,r.k)("lock",60021),mirrorPrivate:(0,r.k)("mirror-private",60021),close:(0,r.k)("close",60022),removeClose:(0,r.k)("remove-close",60022),x:(0,r.k)("x",60022),repoSync:(0,r.k)("repo-sync",60023),sync:(0,r.k)("sync",60023),clone:(0,r.k)("clone",60024),desktopDownload:(0,r.k)("desktop-download",60024),beaker:(0,r.k)("beaker",60025),microscope:(0,r.k)("microscope",60025),vm:(0,r.k)("vm",60026),deviceDesktop:(0,r.k)("device-desktop",60026),file:(0,r.k)("file",60027),fileText:(0,r.k)("file-text",60027),more:(0,r.k)("more",60028),ellipsis:(0,r.k)("ellipsis",60028),kebabHorizontal:(0,r.k)("kebab-horizontal",60028),mailReply:(0,r.k)("mail-reply",60029),reply:(0,r.k)("reply",60029),organization:(0,r.k)("organization",60030),organizationFilled:(0,r.k)("organization-filled",60030),organizationOutline:(0,r.k)("organization-outline",60030),newFile:(0,r.k)("new-file",60031),fileAdd:(0,r.k)("file-add",60031),newFolder:(0,r.k)("new-folder",60032),fileDirectoryCreate:(0,r.k)("file-directory-create",60032),trash:(0,r.k)("trash",60033),trashcan:(0,r.k)("trashcan",60033),history:(0,r.k)("history",60034),clock:(0,r.k)("clock",60034),folder:(0,r.k)("folder",60035),fileDirectory:(0,r.k)("file-directory",60035),symbolFolder:(0,r.k)("symbol-folder",60035),logoGithub:(0,r.k)("logo-github",60036),markGithub:(0,r.k)("mark-github",60036),github:(0,r.k)("github",60036),terminal:(0,r.k)("terminal",60037),console:(0,r.k)("console",60037),repl:(0,r.k)("repl",60037),zap:(0,r.k)("zap",60038),symbolEvent:(0,r.k)("symbol-event",60038),error:(0,r.k)("error",60039),stop:(0,r.k)("stop",60039),variable:(0,r.k)("variable",60040),symbolVariable:(0,r.k)("symbol-variable",60040),array:(0,r.k)("array",60042),symbolArray:(0,r.k)("symbol-array",60042),symbolModule:(0,r.k)("symbol-module",60043),symbolPackage:(0,r.k)("symbol-package",60043),symbolNamespace:(0,r.k)("symbol-namespace",60043),symbolObject:(0,r.k)("symbol-object",60043),symbolMethod:(0,r.k)("symbol-method",60044),symbolFunction:(0,r.k)("symbol-function",60044),symbolConstructor:(0,r.k)("symbol-constructor",60044),symbolBoolean:(0,r.k)("symbol-boolean",60047),symbolNull:(0,r.k)("symbol-null",60047),symbolNumeric:(0,r.k)("symbol-numeric",60048),symbolNumber:(0,r.k)("symbol-number",60048),symbolStructure:(0,r.k)("symbol-structure",60049),symbolStruct:(0,r.k)("symbol-struct",60049),symbolParameter:(0,r.k)("symbol-parameter",60050),symbolTypeParameter:(0,r.k)("symbol-type-parameter",60050),symbolKey:(0,r.k)("symbol-key",60051),symbolText:(0,r.k)("symbol-text",60051),symbolReference:(0,r.k)("symbol-reference",60052),goToFile:(0,r.k)("go-to-file",60052),symbolEnum:(0,r.k)("symbol-enum",60053),symbolValue:(0,r.k)("symbol-value",60053),symbolRuler:(0,r.k)("symbol-ruler",60054),symbolUnit:(0,r.k)("symbol-unit",60054),activateBreakpoints:(0,r.k)("activate-breakpoints",60055),archive:(0,r.k)("archive",60056),arrowBoth:(0,r.k)("arrow-both",60057),arrowDown:(0,r.k)("arrow-down",60058),arrowLeft:(0,r.k)("arrow-left",60059),arrowRight:(0,r.k)("arrow-right",60060),arrowSmallDown:(0,r.k)("arrow-small-down",60061),arrowSmallLeft:(0,r.k)("arrow-small-left",60062),arrowSmallRight:(0,r.k)("arrow-small-right",60063),arrowSmallUp:(0,r.k)("arrow-small-up",60064),arrowUp:(0,r.k)("arrow-up",60065),bell:(0,r.k)("bell",60066),bold:(0,r.k)("bold",60067),book:(0,r.k)("book",60068),bookmark:(0,r.k)("bookmark",60069),debugBreakpointConditionalUnverified:(0,r.k)("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:(0,r.k)("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:(0,r.k)("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:(0,r.k)("debug-breakpoint-data-unverified",60072),debugBreakpointData:(0,r.k)("debug-breakpoint-data",60073),debugBreakpointDataDisabled:(0,r.k)("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:(0,r.k)("debug-breakpoint-log-unverified",60074),debugBreakpointLog:(0,r.k)("debug-breakpoint-log",60075),debugBreakpointLogDisabled:(0,r.k)("debug-breakpoint-log-disabled",60075),briefcase:(0,r.k)("briefcase",60076),broadcast:(0,r.k)("broadcast",60077),browser:(0,r.k)("browser",60078),bug:(0,r.k)("bug",60079),calendar:(0,r.k)("calendar",60080),caseSensitive:(0,r.k)("case-sensitive",60081),check:(0,r.k)("check",60082),checklist:(0,r.k)("checklist",60083),chevronDown:(0,r.k)("chevron-down",60084),chevronLeft:(0,r.k)("chevron-left",60085),chevronRight:(0,r.k)("chevron-right",60086),chevronUp:(0,r.k)("chevron-up",60087),chromeClose:(0,r.k)("chrome-close",60088),chromeMaximize:(0,r.k)("chrome-maximize",60089),chromeMinimize:(0,r.k)("chrome-minimize",60090),chromeRestore:(0,r.k)("chrome-restore",60091),circleOutline:(0,r.k)("circle-outline",60092),circle:(0,r.k)("circle",60092),debugBreakpointUnverified:(0,r.k)("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:(0,r.k)("terminal-decoration-incomplete",60092),circleSlash:(0,r.k)("circle-slash",60093),circuitBoard:(0,r.k)("circuit-board",60094),clearAll:(0,r.k)("clear-all",60095),clippy:(0,r.k)("clippy",60096),closeAll:(0,r.k)("close-all",60097),cloudDownload:(0,r.k)("cloud-download",60098),cloudUpload:(0,r.k)("cloud-upload",60099),code:(0,r.k)("code",60100),collapseAll:(0,r.k)("collapse-all",60101),colorMode:(0,r.k)("color-mode",60102),commentDiscussion:(0,r.k)("comment-discussion",60103),creditCard:(0,r.k)("credit-card",60105),dash:(0,r.k)("dash",60108),dashboard:(0,r.k)("dashboard",60109),database:(0,r.k)("database",60110),debugContinue:(0,r.k)("debug-continue",60111),debugDisconnect:(0,r.k)("debug-disconnect",60112),debugPause:(0,r.k)("debug-pause",60113),debugRestart:(0,r.k)("debug-restart",60114),debugStart:(0,r.k)("debug-start",60115),debugStepInto:(0,r.k)("debug-step-into",60116),debugStepOut:(0,r.k)("debug-step-out",60117),debugStepOver:(0,r.k)("debug-step-over",60118),debugStop:(0,r.k)("debug-stop",60119),debug:(0,r.k)("debug",60120),deviceCameraVideo:(0,r.k)("device-camera-video",60121),deviceCamera:(0,r.k)("device-camera",60122),deviceMobile:(0,r.k)("device-mobile",60123),diffAdded:(0,r.k)("diff-added",60124),diffIgnored:(0,r.k)("diff-ignored",60125),diffModified:(0,r.k)("diff-modified",60126),diffRemoved:(0,r.k)("diff-removed",60127),diffRenamed:(0,r.k)("diff-renamed",60128),diff:(0,r.k)("diff",60129),diffSidebyside:(0,r.k)("diff-sidebyside",60129),discard:(0,r.k)("discard",60130),editorLayout:(0,r.k)("editor-layout",60131),emptyWindow:(0,r.k)("empty-window",60132),exclude:(0,r.k)("exclude",60133),extensions:(0,r.k)("extensions",60134),eyeClosed:(0,r.k)("eye-closed",60135),fileBinary:(0,r.k)("file-binary",60136),fileCode:(0,r.k)("file-code",60137),fileMedia:(0,r.k)("file-media",60138),filePdf:(0,r.k)("file-pdf",60139),fileSubmodule:(0,r.k)("file-submodule",60140),fileSymlinkDirectory:(0,r.k)("file-symlink-directory",60141),fileSymlinkFile:(0,r.k)("file-symlink-file",60142),fileZip:(0,r.k)("file-zip",60143),files:(0,r.k)("files",60144),filter:(0,r.k)("filter",60145),flame:(0,r.k)("flame",60146),foldDown:(0,r.k)("fold-down",60147),foldUp:(0,r.k)("fold-up",60148),fold:(0,r.k)("fold",60149),folderActive:(0,r.k)("folder-active",60150),folderOpened:(0,r.k)("folder-opened",60151),gear:(0,r.k)("gear",60152),gift:(0,r.k)("gift",60153),gistSecret:(0,r.k)("gist-secret",60154),gist:(0,r.k)("gist",60155),gitCommit:(0,r.k)("git-commit",60156),gitCompare:(0,r.k)("git-compare",60157),compareChanges:(0,r.k)("compare-changes",60157),gitMerge:(0,r.k)("git-merge",60158),githubAction:(0,r.k)("github-action",60159),githubAlt:(0,r.k)("github-alt",60160),globe:(0,r.k)("globe",60161),grabber:(0,r.k)("grabber",60162),graph:(0,r.k)("graph",60163),gripper:(0,r.k)("gripper",60164),heart:(0,r.k)("heart",60165),home:(0,r.k)("home",60166),horizontalRule:(0,r.k)("horizontal-rule",60167),hubot:(0,r.k)("hubot",60168),inbox:(0,r.k)("inbox",60169),issueReopened:(0,r.k)("issue-reopened",60171),issues:(0,r.k)("issues",60172),italic:(0,r.k)("italic",60173),jersey:(0,r.k)("jersey",60174),json:(0,r.k)("json",60175),kebabVertical:(0,r.k)("kebab-vertical",60176),key:(0,r.k)("key",60177),law:(0,r.k)("law",60178),lightbulbAutofix:(0,r.k)("lightbulb-autofix",60179),linkExternal:(0,r.k)("link-external",60180),link:(0,r.k)("link",60181),listOrdered:(0,r.k)("list-ordered",60182),listUnordered:(0,r.k)("list-unordered",60183),liveShare:(0,r.k)("live-share",60184),loading:(0,r.k)("loading",60185),location:(0,r.k)("location",60186),mailRead:(0,r.k)("mail-read",60187),mail:(0,r.k)("mail",60188),markdown:(0,r.k)("markdown",60189),megaphone:(0,r.k)("megaphone",60190),mention:(0,r.k)("mention",60191),milestone:(0,r.k)("milestone",60192),gitPullRequestMilestone:(0,r.k)("git-pull-request-milestone",60192),mortarBoard:(0,r.k)("mortar-board",60193),move:(0,r.k)("move",60194),multipleWindows:(0,r.k)("multiple-windows",60195),mute:(0,r.k)("mute",60196),noNewline:(0,r.k)("no-newline",60197),note:(0,r.k)("note",60198),octoface:(0,r.k)("octoface",60199),openPreview:(0,r.k)("open-preview",60200),package:(0,r.k)("package",60201),paintcan:(0,r.k)("paintcan",60202),pin:(0,r.k)("pin",60203),play:(0,r.k)("play",60204),run:(0,r.k)("run",60204),plug:(0,r.k)("plug",60205),preserveCase:(0,r.k)("preserve-case",60206),preview:(0,r.k)("preview",60207),project:(0,r.k)("project",60208),pulse:(0,r.k)("pulse",60209),question:(0,r.k)("question",60210),quote:(0,r.k)("quote",60211),radioTower:(0,r.k)("radio-tower",60212),reactions:(0,r.k)("reactions",60213),references:(0,r.k)("references",60214),refresh:(0,r.k)("refresh",60215),regex:(0,r.k)("regex",60216),remoteExplorer:(0,r.k)("remote-explorer",60217),remote:(0,r.k)("remote",60218),remove:(0,r.k)("remove",60219),replaceAll:(0,r.k)("replace-all",60220),replace:(0,r.k)("replace",60221),repoClone:(0,r.k)("repo-clone",60222),repoForcePush:(0,r.k)("repo-force-push",60223),repoPull:(0,r.k)("repo-pull",60224),repoPush:(0,r.k)("repo-push",60225),report:(0,r.k)("report",60226),requestChanges:(0,r.k)("request-changes",60227),rocket:(0,r.k)("rocket",60228),rootFolderOpened:(0,r.k)("root-folder-opened",60229),rootFolder:(0,r.k)("root-folder",60230),rss:(0,r.k)("rss",60231),ruby:(0,r.k)("ruby",60232),saveAll:(0,r.k)("save-all",60233),saveAs:(0,r.k)("save-as",60234),save:(0,r.k)("save",60235),screenFull:(0,r.k)("screen-full",60236),screenNormal:(0,r.k)("screen-normal",60237),searchStop:(0,r.k)("search-stop",60238),server:(0,r.k)("server",60240),settingsGear:(0,r.k)("settings-gear",60241),settings:(0,r.k)("settings",60242),shield:(0,r.k)("shield",60243),smiley:(0,r.k)("smiley",60244),sortPrecedence:(0,r.k)("sort-precedence",60245),splitHorizontal:(0,r.k)("split-horizontal",60246),splitVertical:(0,r.k)("split-vertical",60247),squirrel:(0,r.k)("squirrel",60248),starFull:(0,r.k)("star-full",60249),starHalf:(0,r.k)("star-half",60250),symbolClass:(0,r.k)("symbol-class",60251),symbolColor:(0,r.k)("symbol-color",60252),symbolConstant:(0,r.k)("symbol-constant",60253),symbolEnumMember:(0,r.k)("symbol-enum-member",60254),symbolField:(0,r.k)("symbol-field",60255),symbolFile:(0,r.k)("symbol-file",60256),symbolInterface:(0,r.k)("symbol-interface",60257),symbolKeyword:(0,r.k)("symbol-keyword",60258),symbolMisc:(0,r.k)("symbol-misc",60259),symbolOperator:(0,r.k)("symbol-operator",60260),symbolProperty:(0,r.k)("symbol-property",60261),wrench:(0,r.k)("wrench",60261),wrenchSubaction:(0,r.k)("wrench-subaction",60261),symbolSnippet:(0,r.k)("symbol-snippet",60262),tasklist:(0,r.k)("tasklist",60263),telescope:(0,r.k)("telescope",60264),textSize:(0,r.k)("text-size",60265),threeBars:(0,r.k)("three-bars",60266),thumbsdown:(0,r.k)("thumbsdown",60267),thumbsup:(0,r.k)("thumbsup",60268),tools:(0,r.k)("tools",60269),triangleDown:(0,r.k)("triangle-down",60270),triangleLeft:(0,r.k)("triangle-left",60271),triangleRight:(0,r.k)("triangle-right",60272),triangleUp:(0,r.k)("triangle-up",60273),twitter:(0,r.k)("twitter",60274),unfold:(0,r.k)("unfold",60275),unlock:(0,r.k)("unlock",60276),unmute:(0,r.k)("unmute",60277),unverified:(0,r.k)("unverified",60278),verified:(0,r.k)("verified",60279),versions:(0,r.k)("versions",60280),vmActive:(0,r.k)("vm-active",60281),vmOutline:(0,r.k)("vm-outline",60282),vmRunning:(0,r.k)("vm-running",60283),watch:(0,r.k)("watch",60284),whitespace:(0,r.k)("whitespace",60285),wholeWord:(0,r.k)("whole-word",60286),window:(0,r.k)("window",60287),wordWrap:(0,r.k)("word-wrap",60288),zoomIn:(0,r.k)("zoom-in",60289),zoomOut:(0,r.k)("zoom-out",60290),listFilter:(0,r.k)("list-filter",60291),listFlat:(0,r.k)("list-flat",60292),listSelection:(0,r.k)("list-selection",60293),selection:(0,r.k)("selection",60293),listTree:(0,r.k)("list-tree",60294),debugBreakpointFunctionUnverified:(0,r.k)("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:(0,r.k)("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:(0,r.k)("debug-breakpoint-function-disabled",60296),debugStackframeActive:(0,r.k)("debug-stackframe-active",60297),circleSmallFilled:(0,r.k)("circle-small-filled",60298),debugStackframeDot:(0,r.k)("debug-stackframe-dot",60298),terminalDecorationMark:(0,r.k)("terminal-decoration-mark",60298),debugStackframe:(0,r.k)("debug-stackframe",60299),debugStackframeFocused:(0,r.k)("debug-stackframe-focused",60299),debugBreakpointUnsupported:(0,r.k)("debug-breakpoint-unsupported",60300),symbolString:(0,r.k)("symbol-string",60301),debugReverseContinue:(0,r.k)("debug-reverse-continue",60302),debugStepBack:(0,r.k)("debug-step-back",60303),debugRestartFrame:(0,r.k)("debug-restart-frame",60304),debugAlt:(0,r.k)("debug-alt",60305),callIncoming:(0,r.k)("call-incoming",60306),callOutgoing:(0,r.k)("call-outgoing",60307),menu:(0,r.k)("menu",60308),expandAll:(0,r.k)("expand-all",60309),feedback:(0,r.k)("feedback",60310),gitPullRequestReviewer:(0,r.k)("git-pull-request-reviewer",60310),groupByRefType:(0,r.k)("group-by-ref-type",60311),ungroupByRefType:(0,r.k)("ungroup-by-ref-type",60312),account:(0,r.k)("account",60313),gitPullRequestAssignee:(0,r.k)("git-pull-request-assignee",60313),bellDot:(0,r.k)("bell-dot",60314),debugConsole:(0,r.k)("debug-console",60315),library:(0,r.k)("library",60316),output:(0,r.k)("output",60317),runAll:(0,r.k)("run-all",60318),syncIgnored:(0,r.k)("sync-ignored",60319),pinned:(0,r.k)("pinned",60320),githubInverted:(0,r.k)("github-inverted",60321),serverProcess:(0,r.k)("server-process",60322),serverEnvironment:(0,r.k)("server-environment",60323),pass:(0,r.k)("pass",60324),issueClosed:(0,r.k)("issue-closed",60324),stopCircle:(0,r.k)("stop-circle",60325),playCircle:(0,r.k)("play-circle",60326),record:(0,r.k)("record",60327),debugAltSmall:(0,r.k)("debug-alt-small",60328),vmConnect:(0,r.k)("vm-connect",60329),cloud:(0,r.k)("cloud",60330),merge:(0,r.k)("merge",60331),export:(0,r.k)("export",60332),graphLeft:(0,r.k)("graph-left",60333),magnet:(0,r.k)("magnet",60334),notebook:(0,r.k)("notebook",60335),redo:(0,r.k)("redo",60336),checkAll:(0,r.k)("check-all",60337),pinnedDirty:(0,r.k)("pinned-dirty",60338),passFilled:(0,r.k)("pass-filled",60339),circleLargeFilled:(0,r.k)("circle-large-filled",60340),circleLarge:(0,r.k)("circle-large",60341),circleLargeOutline:(0,r.k)("circle-large-outline",60341),combine:(0,r.k)("combine",60342),gather:(0,r.k)("gather",60342),table:(0,r.k)("table",60343),variableGroup:(0,r.k)("variable-group",60344),typeHierarchy:(0,r.k)("type-hierarchy",60345),typeHierarchySub:(0,r.k)("type-hierarchy-sub",60346),typeHierarchySuper:(0,r.k)("type-hierarchy-super",60347),gitPullRequestCreate:(0,r.k)("git-pull-request-create",60348),runAbove:(0,r.k)("run-above",60349),runBelow:(0,r.k)("run-below",60350),notebookTemplate:(0,r.k)("notebook-template",60351),debugRerun:(0,r.k)("debug-rerun",60352),workspaceTrusted:(0,r.k)("workspace-trusted",60353),workspaceUntrusted:(0,r.k)("workspace-untrusted",60354),workspaceUnknown:(0,r.k)("workspace-unknown",60355),terminalCmd:(0,r.k)("terminal-cmd",60356),terminalDebian:(0,r.k)("terminal-debian",60357),terminalLinux:(0,r.k)("terminal-linux",60358),terminalPowershell:(0,r.k)("terminal-powershell",60359),terminalTmux:(0,r.k)("terminal-tmux",60360),terminalUbuntu:(0,r.k)("terminal-ubuntu",60361),terminalBash:(0,r.k)("terminal-bash",60362),arrowSwap:(0,r.k)("arrow-swap",60363),copy:(0,r.k)("copy",60364),personAdd:(0,r.k)("person-add",60365),filterFilled:(0,r.k)("filter-filled",60366),wand:(0,r.k)("wand",60367),debugLineByLine:(0,r.k)("debug-line-by-line",60368),inspect:(0,r.k)("inspect",60369),layers:(0,r.k)("layers",60370),layersDot:(0,r.k)("layers-dot",60371),layersActive:(0,r.k)("layers-active",60372),compass:(0,r.k)("compass",60373),compassDot:(0,r.k)("compass-dot",60374),compassActive:(0,r.k)("compass-active",60375),azure:(0,r.k)("azure",60376),issueDraft:(0,r.k)("issue-draft",60377),gitPullRequestClosed:(0,r.k)("git-pull-request-closed",60378),gitPullRequestDraft:(0,r.k)("git-pull-request-draft",60379),debugAll:(0,r.k)("debug-all",60380),debugCoverage:(0,r.k)("debug-coverage",60381),runErrors:(0,r.k)("run-errors",60382),folderLibrary:(0,r.k)("folder-library",60383),debugContinueSmall:(0,r.k)("debug-continue-small",60384),beakerStop:(0,r.k)("beaker-stop",60385),graphLine:(0,r.k)("graph-line",60386),graphScatter:(0,r.k)("graph-scatter",60387),pieChart:(0,r.k)("pie-chart",60388),bracket:(0,r.k)("bracket",60175),bracketDot:(0,r.k)("bracket-dot",60389),bracketError:(0,r.k)("bracket-error",60390),lockSmall:(0,r.k)("lock-small",60391),azureDevops:(0,r.k)("azure-devops",60392),verifiedFilled:(0,r.k)("verified-filled",60393),newline:(0,r.k)("newline",60394),layout:(0,r.k)("layout",60395),layoutActivitybarLeft:(0,r.k)("layout-activitybar-left",60396),layoutActivitybarRight:(0,r.k)("layout-activitybar-right",60397),layoutPanelLeft:(0,r.k)("layout-panel-left",60398),layoutPanelCenter:(0,r.k)("layout-panel-center",60399),layoutPanelJustify:(0,r.k)("layout-panel-justify",60400),layoutPanelRight:(0,r.k)("layout-panel-right",60401),layoutPanel:(0,r.k)("layout-panel",60402),layoutSidebarLeft:(0,r.k)("layout-sidebar-left",60403),layoutSidebarRight:(0,r.k)("layout-sidebar-right",60404),layoutStatusbar:(0,r.k)("layout-statusbar",60405),layoutMenubar:(0,r.k)("layout-menubar",60406),layoutCentered:(0,r.k)("layout-centered",60407),target:(0,r.k)("target",60408),indent:(0,r.k)("indent",60409),recordSmall:(0,r.k)("record-small",60410),errorSmall:(0,r.k)("error-small",60411),terminalDecorationError:(0,r.k)("terminal-decoration-error",60411),arrowCircleDown:(0,r.k)("arrow-circle-down",60412),arrowCircleLeft:(0,r.k)("arrow-circle-left",60413),arrowCircleRight:(0,r.k)("arrow-circle-right",60414),arrowCircleUp:(0,r.k)("arrow-circle-up",60415),layoutSidebarRightOff:(0,r.k)("layout-sidebar-right-off",60416),layoutPanelOff:(0,r.k)("layout-panel-off",60417),layoutSidebarLeftOff:(0,r.k)("layout-sidebar-left-off",60418),blank:(0,r.k)("blank",60419),heartFilled:(0,r.k)("heart-filled",60420),map:(0,r.k)("map",60421),mapHorizontal:(0,r.k)("map-horizontal",60421),foldHorizontal:(0,r.k)("fold-horizontal",60421),mapFilled:(0,r.k)("map-filled",60422),mapHorizontalFilled:(0,r.k)("map-horizontal-filled",60422),foldHorizontalFilled:(0,r.k)("fold-horizontal-filled",60422),circleSmall:(0,r.k)("circle-small",60423),bellSlash:(0,r.k)("bell-slash",60424),bellSlashDot:(0,r.k)("bell-slash-dot",60425),commentUnresolved:(0,r.k)("comment-unresolved",60426),gitPullRequestGoToChanges:(0,r.k)("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:(0,r.k)("git-pull-request-new-changes",60428),searchFuzzy:(0,r.k)("search-fuzzy",60429),commentDraft:(0,r.k)("comment-draft",60430),send:(0,r.k)("send",60431),sparkle:(0,r.k)("sparkle",60432),insert:(0,r.k)("insert",60433),mic:(0,r.k)("mic",60434),thumbsdownFilled:(0,r.k)("thumbsdown-filled",60435),thumbsupFilled:(0,r.k)("thumbsup-filled",60436),coffee:(0,r.k)("coffee",60437),snake:(0,r.k)("snake",60438),game:(0,r.k)("game",60439),vr:(0,r.k)("vr",60440),chip:(0,r.k)("chip",60441),piano:(0,r.k)("piano",60442),music:(0,r.k)("music",60443),micFilled:(0,r.k)("mic-filled",60444),repoFetch:(0,r.k)("repo-fetch",60445),copilot:(0,r.k)("copilot",60446),lightbulbSparkle:(0,r.k)("lightbulb-sparkle",60447),robot:(0,r.k)("robot",60448),sparkleFilled:(0,r.k)("sparkle-filled",60449),diffSingle:(0,r.k)("diff-single",60450),diffMultiple:(0,r.k)("diff-multiple",60451),surroundWith:(0,r.k)("surround-with",60452),share:(0,r.k)("share",60453),gitStash:(0,r.k)("git-stash",60454),gitStashApply:(0,r.k)("git-stash-apply",60455),gitStashPop:(0,r.k)("git-stash-pop",60456),vscode:(0,r.k)("vscode",60457),vscodeInsiders:(0,r.k)("vscode-insiders",60458),codeOss:(0,r.k)("code-oss",60459),runCoverage:(0,r.k)("run-coverage",60460),runAllCoverage:(0,r.k)("run-all-coverage",60461),coverage:(0,r.k)("coverage",60462),githubProject:(0,r.k)("github-project",60463),mapVertical:(0,r.k)("map-vertical",60464),foldVertical:(0,r.k)("fold-vertical",60464),mapVerticalFilled:(0,r.k)("map-vertical-filled",60465),foldVerticalFilled:(0,r.k)("fold-vertical-filled",60465)},k={dialogError:(0,r.k)("dialog-error","error"),dialogWarning:(0,r.k)("dialog-warning","warning"),dialogInfo:(0,r.k)("dialog-info","info"),dialogClose:(0,r.k)("dialog-close","close"),treeItemExpanded:(0,r.k)("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:(0,r.k)("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:(0,r.k)("tree-filter-on-type-off","list-selection"),treeFilterClear:(0,r.k)("tree-filter-clear","close"),treeItemLoading:(0,r.k)("tree-item-loading","loading"),menuSelection:(0,r.k)("menu-selection","check"),menuSubmenu:(0,r.k)("menu-submenu","chevron-right"),menuBarMore:(0,r.k)("menubar-more","more"),scrollbarButtonLeft:(0,r.k)("scrollbar-button-left","triangle-left"),scrollbarButtonRight:(0,r.k)("scrollbar-button-right","triangle-right"),scrollbarButtonUp:(0,r.k)("scrollbar-button-up","triangle-up"),scrollbarButtonDown:(0,r.k)("scrollbar-button-down","triangle-down"),toolBarMore:(0,r.k)("toolbar-more","more"),quickInputBack:(0,r.k)("quick-input-back","arrow-left"),dropDownButton:(0,r.k)("drop-down-button",60084),symbolCustomColor:(0,r.k)("symbol-customcolor",60252),exportIcon:(0,r.k)("export",60332),workspaceUnspecified:(0,r.k)("workspace-unspecified",60355),newLine:(0,r.k)("newline",60394),thumbsDownFilled:(0,r.k)("thumbsdown-filled",60435),thumbsUpFilled:(0,r.k)("thumbsup-filled",60436),gitFetch:(0,r.k)("git-fetch",60445),lightbulbSparkleAutofix:(0,r.k)("lightbulb-sparkle-autofix",60447),debugBreakpointPending:(0,r.k)("debug-breakpoint-pending",60377)},M={...F,...k}},"./node_modules/monaco-editor/esm/vs/base/common/codiconsUtil.js":function(pt,Me,e){e.d(Me,{J:function(){return M},k:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/types.js");const F=Object.create(null);function k(L,g){if((0,r.Kg)(g)){const x=F[g];if(x===void 0)throw new Error(`${L} references an unknown codicon: ${g}`);g=x}return F[L]=g,{id:L}}function M(){return F}},"./node_modules/monaco-editor/esm/vs/base/common/collections.js":function(pt,Me,e){e.d(Me,{E:function(){return F},Z:function(){return r}});function r(k,M){const L=[],g=[];for(const x of k)M.has(x)||L.push(x);for(const x of M)k.has(x)||g.push(x);return{removed:L,added:g}}function F(k,M){const L=new Set;for(const g of M)k.has(g)&&L.add(g);return L}},"./node_modules/monaco-editor/esm/vs/base/common/color.js":function(pt,Me,e){e.d(Me,{$J:function(){return M},Q1:function(){return L},bU:function(){return F},hB:function(){return k}});function r(g,x){const I=Math.pow(10,x);return Math.round(g*I)/I}class F{constructor(x,I,S,f=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,x))|0,this.g=Math.min(255,Math.max(0,I))|0,this.b=Math.min(255,Math.max(0,S))|0,this.a=r(Math.max(Math.min(1,f),0),3)}static equals(x,I){return x.r===I.r&&x.g===I.g&&x.b===I.b&&x.a===I.a}}class k{constructor(x,I,S,f){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,x),0)|0,this.s=r(Math.max(Math.min(1,I),0),3),this.l=r(Math.max(Math.min(1,S),0),3),this.a=r(Math.max(Math.min(1,f),0),3)}static equals(x,I){return x.h===I.h&&x.s===I.s&&x.l===I.l&&x.a===I.a}static fromRGBA(x){const I=x.r/255,S=x.g/255,f=x.b/255,d=x.a,a=Math.max(I,S,f),s=Math.min(I,S,f);let n=0,i=0;const c=(s+a)/2,m=a-s;if(m>0){switch(i=Math.min(c<=.5?m/(2*c):m/(2-2*c),1),a){case I:n=(S-f)/m+(S1&&(S-=1),S<1/6?x+(I-x)*6*S:S<1/2?I:S<2/3?x+(I-x)*(2/3-S)*6:x}static toRGBA(x){const I=x.h/360,{s:S,l:f,a:d}=x;let a,s,n;if(S===0)a=s=n=f;else{const i=f<.5?f*(1+S):f+S-f*S,c=2*f-i;a=k._hue2rgb(c,i,I+1/3),s=k._hue2rgb(c,i,I),n=k._hue2rgb(c,i,I-1/3)}return new F(Math.round(a*255),Math.round(s*255),Math.round(n*255),d)}}class M{constructor(x,I,S,f){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,x),0)|0,this.s=r(Math.max(Math.min(1,I),0),3),this.v=r(Math.max(Math.min(1,S),0),3),this.a=r(Math.max(Math.min(1,f),0),3)}static equals(x,I){return x.h===I.h&&x.s===I.s&&x.v===I.v&&x.a===I.a}static fromRGBA(x){const I=x.r/255,S=x.g/255,f=x.b/255,d=Math.max(I,S,f),a=Math.min(I,S,f),s=d-a,n=d===0?0:s/d;let i;return s===0?i=0:d===I?i=((S-f)/s%6+6)%6:d===S?i=(f-I)/s+2:i=(I-S)/s+4,new M(Math.round(i*60),n,d,x.a)}static toRGBA(x){const{h:I,s:S,v:f,a:d}=x,a=f*S,s=a*(1-Math.abs(I/60%2-1)),n=f-a;let[i,c,m]=[0,0,0];return I<60?(i=a,c=s):I<120?(i=s,c=a):I<180?(c=a,m=s):I<240?(c=s,m=a):I<300?(i=s,m=a):I<=360&&(i=a,m=s),i=Math.round((i+n)*255),c=Math.round((c+n)*255),m=Math.round((m+n)*255),new F(i,c,m,d)}}class L{static fromHex(x){return L.Format.CSS.parseHex(x)||L.red}static equals(x,I){return!x&&!I?!0:!x||!I?!1:x.equals(I)}get hsla(){return this._hsla?this._hsla:k.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:M.fromRGBA(this.rgba)}constructor(x){if(x)if(x instanceof F)this.rgba=x;else if(x instanceof k)this._hsla=x,this.rgba=k.toRGBA(x);else if(x instanceof M)this._hsva=x,this.rgba=M.toRGBA(x);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(x){return!!x&&F.equals(this.rgba,x.rgba)&&k.equals(this.hsla,x.hsla)&&M.equals(this.hsva,x.hsva)}getRelativeLuminance(){const x=L._relativeLuminanceForComponent(this.rgba.r),I=L._relativeLuminanceForComponent(this.rgba.g),S=L._relativeLuminanceForComponent(this.rgba.b),f=.2126*x+.7152*I+.0722*S;return r(f,4)}static _relativeLuminanceForComponent(x){const I=x/255;return I<=.03928?I/12.92:Math.pow((I+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(x){const I=this.getRelativeLuminance(),S=x.getRelativeLuminance();return I>S}isDarkerThan(x){const I=this.getRelativeLuminance(),S=x.getRelativeLuminance();return Id,asFile:()=>{},value:typeof d=="string"?d:void 0}}function L(d,a,s){const n={id:(0,k.b)(),name:d,uri:a,data:s};return{asString:async()=>"",asFile:()=>n,value:void 0}}class g{constructor(){this._entries=new Map}get size(){let a=0;for(const s of this._entries)a++;return a}has(a){return this._entries.has(this.toKey(a))}matches(a){const s=[...this._entries.keys()];return F.f.some(this,([n,i])=>i.asFile())&&s.push("files"),S(x(a),s)}get(a){var s;return(s=this._entries.get(this.toKey(a)))===null||s===void 0?void 0:s[0]}append(a,s){const n=this._entries.get(a);n?n.push(s):this._entries.set(this.toKey(a),[s])}replace(a,s){this._entries.set(this.toKey(a),[s])}delete(a){this._entries.delete(this.toKey(a))}*[Symbol.iterator](){for(const[a,s]of this._entries)for(const n of s)yield[a,n]}toKey(a){return x(a)}}function x(d){return d.toLowerCase()}function I(d,a){return S(x(d),a.map(x))}function S(d,a){if(d==="*/*")return a.length>0;if(a.includes(d))return!0;const s=d.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!s)return!1;const[n,i,c]=s;return c==="*"?a.some(m=>m.startsWith(i+"/")):!1}const f=Object.freeze({create:d=>(0,r.dM)(d.map(a=>a.toString())).join(`\r `),split:d=>d.split(`\r `),parse:d=>f.split(d).filter(a=>!a.startsWith("#"))})},"./node_modules/monaco-editor/esm/vs/base/common/decorators.js":function(pt,Me,e){e.d(Me,{B:function(){return r}});function r(F,k,M){let L=null,g=null;if(typeof M.value=="function"?(L="value",g=M.value,g.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof M.get=="function"&&(L="get",g=M.get),!g)throw new Error("not supported");const x=`$memoize$${k}`;M[L]=function(...I){return this.hasOwnProperty(x)||Object.defineProperty(this,x,{configurable:!1,enumerable:!1,writable:!1,value:g.apply(this,I)}),this[x]}}},"./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js":function(pt,Me,e){e.d(Me,{uP:function(){return I},F1:function(){return M}});class r{constructor(f,d,a,s){this.originalStart=f,this.originalLength=d,this.modifiedStart=a,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var F=e("./node_modules/monaco-editor/esm/vs/base/common/hash.js");class k{constructor(f){this.source=f}getElements(){const f=this.source,d=new Int32Array(f.length);for(let a=0,s=f.length;a0||this.m_modifiedCount>0)&&this.m_changes.push(new r(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(f,d){this.m_originalStart=Math.min(this.m_originalStart,f),this.m_modifiedStart=Math.min(this.m_modifiedStart,d),this.m_originalCount++}AddModifiedElement(f,d){this.m_originalStart=Math.min(this.m_originalStart,f),this.m_modifiedStart=Math.min(this.m_modifiedStart,d),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class I{constructor(f,d,a=null){this.ContinueProcessingPredicate=a,this._originalSequence=f,this._modifiedSequence=d;const[s,n,i]=I._getElements(f),[c,m,u]=I._getElements(d);this._hasStrings=i&&u,this._originalStringElements=s,this._originalElementsOrHash=n,this._modifiedStringElements=c,this._modifiedElementsOrHash=m,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(f){return f.length>0&&typeof f[0]=="string"}static _getElements(f){const d=f.getElements();if(I._isStringArray(d)){const a=new Int32Array(d.length);for(let s=0,n=d.length;s=f&&s>=a&&this.ElementsAreEqual(d,s);)d--,s--;if(f>d||a>s){let h;return a<=s?(L.Assert(f===d+1,"originalStart should only be one more than originalEnd"),h=[new r(f,0,a,s-a+1)]):f<=d?(L.Assert(a===s+1,"modifiedStart should only be one more than modifiedEnd"),h=[new r(f,d-f+1,a,0)]):(L.Assert(f===d+1,"originalStart should only be one more than originalEnd"),L.Assert(a===s+1,"modifiedStart should only be one more than modifiedEnd"),h=[]),h}const i=[0],c=[0],m=this.ComputeRecursionPoint(f,d,a,s,i,c,n),u=i[0],C=c[0];if(m!==null)return m;if(!n[0]){const h=this.ComputeDiffRecursive(f,u,a,C,n);let v=[];return n[0]?v=[new r(u+1,d-(u+1)+1,C+1,s-(C+1)+1)]:v=this.ComputeDiffRecursive(u+1,d,C+1,s,n),this.ConcatenateChanges(h,v)}return[new r(f,d-f+1,a,s-a+1)]}WALKTRACE(f,d,a,s,n,i,c,m,u,C,h,v,p,b,O,w,j,U){let K=null,G=null,P=new x,A=d,T=a,E=p[0]-w[0]-s,W=-1073741824,$=this.m_forwardHistory.length-1;do{const z=E+f;z===A||z=0&&(u=this.m_forwardHistory[$],f=u[0],A=1,T=u.length-1)}while(--$>=-1);if(K=P.getReverseChanges(),U[0]){let z=p[0]+1,J=w[0]+1;if(K!==null&&K.length>0){const B=K[K.length-1];z=Math.max(z,B.getOriginalEnd()),J=Math.max(J,B.getModifiedEnd())}G=[new r(z,v-z+1,J,O-J+1)]}else{P=new x,A=i,T=c,E=p[0]-w[0]-m,W=1073741824,$=j?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const z=E+n;z===A||z=C[z+1]?(h=C[z+1]-1,b=h-E-m,h>W&&P.MarkNextChange(),W=h+1,P.AddOriginalElement(h+1,b+1),E=z+1-n):(h=C[z-1],b=h-E-m,h>W&&P.MarkNextChange(),W=h,P.AddModifiedElement(h+1,b+1),E=z-1-n),$>=0&&(C=this.m_reverseHistory[$],n=C[0],A=1,T=C.length-1)}while(--$>=-1);G=P.getChanges()}return this.ConcatenateChanges(K,G)}ComputeRecursionPoint(f,d,a,s,n,i,c){let m=0,u=0,C=0,h=0,v=0,p=0;f--,a--,n[0]=0,i[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const b=d-f+(s-a),O=b+1,w=new Int32Array(O),j=new Int32Array(O),U=s-a,K=d-f,G=f-a,P=d-s,T=(K-U)%2===0;w[U]=f,j[K]=d,c[0]=!1;for(let E=1;E<=b/2+1;E++){let W=0,$=0;C=this.ClipDiagonalBound(U-E,E,U,O),h=this.ClipDiagonalBound(U+E,E,U,O);for(let J=C;J<=h;J+=2){J===C||JW+$&&(W=m,$=u),!T&&Math.abs(J-K)<=E-1&&m>=j[J])return n[0]=m,i[0]=u,B<=j[J]&&E<=1448?this.WALKTRACE(U,C,h,G,K,v,p,P,w,j,m,d,n,u,s,i,T,c):null}const z=(W-f+($-a)-E)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(W,z))return c[0]=!0,n[0]=W,i[0]=$,z>0&&E<=1448?this.WALKTRACE(U,C,h,G,K,v,p,P,w,j,m,d,n,u,s,i,T,c):(f++,a++,[new r(f,d-f+1,a,s-a+1)]);v=this.ClipDiagonalBound(K-E,E,K,O),p=this.ClipDiagonalBound(K+E,E,K,O);for(let J=v;J<=p;J+=2){J===v||J=j[J+1]?m=j[J+1]-1:m=j[J-1],u=m-(J-K)-P;const B=m;for(;m>f&&u>a&&this.ElementsAreEqual(m,u);)m--,u--;if(j[J]=m,T&&Math.abs(J-U)<=E&&m<=w[J])return n[0]=m,i[0]=u,B>=w[J]&&E<=1448?this.WALKTRACE(U,C,h,G,K,v,p,P,w,j,m,d,n,u,s,i,T,c):null}if(E<=1447){let J=new Int32Array(h-C+2);J[0]=U-C+1,g.Copy2(w,C,J,1,h-C+1),this.m_forwardHistory.push(J),J=new Int32Array(p-v+2),J[0]=K-v+1,g.Copy2(j,v,J,1,p-v+1),this.m_reverseHistory.push(J)}}return this.WALKTRACE(U,C,h,G,K,v,p,P,w,j,m,d,n,u,s,i,T,c)}PrettifyChanges(f){for(let d=0;d0,c=a.modifiedLength>0;for(;a.originalStart+a.originalLength=0;d--){const a=f[d];let s=0,n=0;if(d>0){const h=f[d-1];s=h.originalStart+h.originalLength,n=h.modifiedStart+h.modifiedLength}const i=a.originalLength>0,c=a.modifiedLength>0;let m=0,u=this._boundaryScore(a.originalStart,a.originalLength,a.modifiedStart,a.modifiedLength);for(let h=1;;h++){const v=a.originalStart-h,p=a.modifiedStart-h;if(vu&&(u=O,m=h)}a.originalStart-=m,a.modifiedStart-=m;const C=[null];if(d>0&&this.ChangesOverlap(f[d-1],f[d],C)){f[d-1]=C[0],f.splice(d,1),d++;continue}}if(this._hasStrings)for(let d=1,a=f.length;d0&&p>m&&(m=p,u=h,C=v)}return m>0?[u,C]:null}_contiguousSequenceScore(f,d,a){let s=0;for(let n=0;n=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[f])}_OriginalRegionIsBoundary(f,d){if(this._OriginalIsBoundary(f)||this._OriginalIsBoundary(f-1))return!0;if(d>0){const a=f+d;if(this._OriginalIsBoundary(a-1)||this._OriginalIsBoundary(a))return!0}return!1}_ModifiedIsBoundary(f){return f<=0||f>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[f])}_ModifiedRegionIsBoundary(f,d){if(this._ModifiedIsBoundary(f)||this._ModifiedIsBoundary(f-1))return!0;if(d>0){const a=f+d;if(this._ModifiedIsBoundary(a-1)||this._ModifiedIsBoundary(a))return!0}return!1}_boundaryScore(f,d,a,s){const n=this._OriginalRegionIsBoundary(f,d)?1:0,i=this._ModifiedRegionIsBoundary(a,s)?1:0;return n+i}ConcatenateChanges(f,d){const a=[];if(f.length===0||d.length===0)return d.length>0?d:f;if(this.ChangesOverlap(f[f.length-1],d[0],a)){const s=new Array(f.length+d.length-1);return g.Copy(f,0,s,0,f.length-1),s[f.length-1]=a[0],g.Copy(d,1,s,f.length,d.length-1),s}else{const s=new Array(f.length+d.length);return g.Copy(f,0,s,0,f.length),g.Copy(d,0,s,f.length,d.length),s}}ChangesOverlap(f,d,a){if(L.Assert(f.originalStart<=d.originalStart,"Left change is not less than or equal to right change"),L.Assert(f.modifiedStart<=d.modifiedStart,"Left change is not less than or equal to right change"),f.originalStart+f.originalLength>=d.originalStart||f.modifiedStart+f.modifiedLength>=d.modifiedStart){const s=f.originalStart;let n=f.originalLength;const i=f.modifiedStart;let c=f.modifiedLength;return f.originalStart+f.originalLength>=d.originalStart&&(n=d.originalStart+d.originalLength-f.originalStart),f.modifiedStart+f.modifiedLength>=d.modifiedStart&&(c=d.modifiedStart+d.modifiedLength-f.modifiedStart),a[0]=new r(s,n,i,c),!0}else return a[0]=null,!1}ClipDiagonalBound(f,d,a,s){if(f>=0&&f{throw c.stack?s.isErrorNoTelemetry(c)?new s(c.message+` `+c.stack):new Error(c.message+` `+c.stack):c},0)}}emit(c){this.listeners.forEach(m=>{m(c)})}onUnexpectedError(c){this.unexpectedErrorHandler(c),this.emit(c)}onUnexpectedExternalError(c){this.unexpectedErrorHandler(c)}}const F=new r;function k(i){x(i)||F.onUnexpectedError(i)}function M(i){x(i)||F.onUnexpectedExternalError(i)}function L(i){if(i instanceof Error){const{name:c,message:m}=i,u=i.stacktrace||i.stack;return{$isError:!0,name:c,message:m,stack:u,noTelemetry:s.isErrorNoTelemetry(i)}}return i}const g="Canceled";function x(i){return i instanceof I?!0:i instanceof Error&&i.name===g&&i.message===g}class I extends Error{constructor(){super(g),this.name=this.message}}function S(){const i=new Error(g);return i.name=i.message,i}function f(i){return i?new Error(`Illegal argument: ${i}`):new Error("Illegal argument")}function d(i){return i?new Error(`Illegal state: ${i}`):new Error("Illegal state")}class a extends Error{constructor(c){super("NotSupported"),c&&(this.message=c)}}class s extends Error{constructor(c){super(c),this.name="CodeExpectedError"}static fromError(c){if(c instanceof s)return c;const m=new s;return m.message=c.message,m.stack=c.stack,m}static isErrorNoTelemetry(c){return c.name==="CodeExpectedError"}}class n extends Error{constructor(c){super(c||"An unexpected bug occurred."),Object.setPrototypeOf(this,n.prototype)}}},"./node_modules/monaco-editor/esm/vs/base/common/event.js":function(pt,Me,e){e.d(Me,{Jh:function(){return S},QT:function(){return b},Qy:function(){return C},Wj:function(){return j},_B:function(){return O},at:function(){return w},fV:function(){return v},uI:function(){return p},vl:function(){return u}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/functional.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js");const g=!1,x=!1,I=!1;var S;(function(U){U.None=()=>k.jG.None;function K(qe){if(I){const{onDidAddListener:Qe}=qe,q=s.create();let ye=0;qe.onDidAddListener=()=>{++ye===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),q.print()),Qe?.()}}}function G(qe,Qe){return V(qe,()=>{},0,void 0,!0,void 0,Qe)}U.defer=G;function P(qe){return(Qe,q=null,ye)=>{let ge=!1,be;return be=qe(Se=>{if(!ge)return be?be.dispose():ge=!0,Qe.call(q,Se)},null,ye),ge&&be.dispose(),be}}U.once=P;function A(qe,Qe,q){return J((ye,ge=null,be)=>qe(Se=>ye.call(ge,Qe(Se)),null,be),q)}U.map=A;function T(qe,Qe,q){return J((ye,ge=null,be)=>qe(Se=>{Qe(Se),ye.call(ge,Se)},null,be),q)}U.forEach=T;function E(qe,Qe,q){return J((ye,ge=null,be)=>qe(Se=>Qe(Se)&&ye.call(ge,Se),null,be),q)}U.filter=E;function W(qe){return qe}U.signal=W;function $(...qe){return(Qe,q=null,ye)=>{const ge=(0,k.qE)(...qe.map(be=>be(Se=>Qe.call(q,Se))));return B(ge,ye)}}U.any=$;function z(qe,Qe,q,ye){let ge=q;return A(qe,be=>(ge=Qe(ge,be),ge),ye)}U.reduce=z;function J(qe,Qe){let q;const ye={onWillAddFirstListener(){q=qe(ge.fire,ge)},onDidRemoveLastListener(){q?.dispose()}};Qe||K(ye);const ge=new u(ye);return Qe?.add(ge),ge.event}function B(qe,Qe){return Qe instanceof Array?Qe.push(qe):Qe&&Qe.add(qe),qe}function V(qe,Qe,q=100,ye=!1,ge=!1,be,Se){let ae,me,fe,le=0,oe;const ne={leakWarningThreshold:be,onWillAddFirstListener(){ae=qe(Le=>{le++,me=Qe(me,Le),ye&&!fe&&(de.fire(me),me=void 0),oe=()=>{const We=me;me=void 0,fe=void 0,(!ye||le>1)&&de.fire(We),le=0},typeof q=="number"?(clearTimeout(fe),fe=setTimeout(oe,q)):fe===void 0&&(fe=0,queueMicrotask(oe))})},onWillRemoveListener(){ge&&le>0&&oe?.()},onDidRemoveLastListener(){oe=void 0,ae.dispose()}};Se||K(ne);const de=new u(ne);return Se?.add(de),de.event}U.debounce=V;function Y(qe,Qe=0,q){return U.debounce(qe,(ye,ge)=>ye?(ye.push(ge),ye):[ge],Qe,void 0,!0,void 0,q)}U.accumulate=Y;function X(qe,Qe=(ye,ge)=>ye===ge,q){let ye=!0,ge;return E(qe,be=>{const Se=ye||!Qe(be,ge);return ye=!1,ge=be,Se},q)}U.latch=X;function ie(qe,Qe,q){return[U.filter(qe,Qe,q),U.filter(qe,ye=>!Qe(ye),q)]}U.split=ie;function re(qe,Qe=!1,q=[],ye){let ge=q.slice(),be=qe(me=>{ge?ge.push(me):ae.fire(me)});ye&&ye.add(be);const Se=()=>{ge?.forEach(me=>ae.fire(me)),ge=null},ae=new u({onWillAddFirstListener(){be||(be=qe(me=>ae.fire(me)),ye&&ye.add(be))},onDidAddFirstListener(){ge&&(Qe?setTimeout(Se):Se())},onDidRemoveLastListener(){be&&be.dispose(),be=null}});return ye&&ye.add(ae),ae.event}U.buffer=re;function te(qe,Qe){return(ye,ge,be)=>{const Se=Qe(new he);return qe(function(ae){const me=Se.evaluate(ae);me!==D&&ye.call(ge,me)},void 0,be)}}U.chain=te;const D=Symbol("HaltChainable");class he{constructor(){this.steps=[]}map(Qe){return this.steps.push(Qe),this}forEach(Qe){return this.steps.push(q=>(Qe(q),q)),this}filter(Qe){return this.steps.push(q=>Qe(q)?q:D),this}reduce(Qe,q){let ye=q;return this.steps.push(ge=>(ye=Qe(ye,ge),ye)),this}latch(Qe=(q,ye)=>q===ye){let q=!0,ye;return this.steps.push(ge=>{const be=q||!Qe(ge,ye);return q=!1,ye=ge,be?ge:D}),this}evaluate(Qe){for(const q of this.steps)if(Qe=q(Qe),Qe===D)break;return Qe}}function ve(qe,Qe,q=ye=>ye){const ye=(...ae)=>Se.fire(q(...ae)),ge=()=>qe.on(Qe,ye),be=()=>qe.removeListener(Qe,ye),Se=new u({onWillAddFirstListener:ge,onDidRemoveLastListener:be});return Se.event}U.fromNodeEventEmitter=ve;function Ce(qe,Qe,q=ye=>ye){const ye=(...ae)=>Se.fire(q(...ae)),ge=()=>qe.addEventListener(Qe,ye),be=()=>qe.removeEventListener(Qe,ye),Se=new u({onWillAddFirstListener:ge,onDidRemoveLastListener:be});return Se.event}U.fromDOMEventEmitter=Ce;function Pe(qe){return new Promise(Qe=>P(qe)(Qe))}U.toPromise=Pe;function _e(qe){const Qe=new u;return qe.then(q=>{Qe.fire(q)},()=>{Qe.fire(void 0)}).finally(()=>{Qe.dispose()}),Qe.event}U.fromPromise=_e;function ee(qe,Qe,q){return Qe(q),qe(ye=>Qe(ye))}U.runAndSubscribe=ee;class De{constructor(Qe,q){this._observable=Qe,this._counter=0,this._hasChanged=!1;const ye={onWillAddFirstListener:()=>{Qe.addObserver(this)},onDidRemoveLastListener:()=>{Qe.removeObserver(this)}};q||K(ye),this.emitter=new u(ye),q&&q.add(this.emitter)}beginUpdate(Qe){this._counter++}handlePossibleChange(Qe){}handleChange(Qe,q){this._hasChanged=!0}endUpdate(Qe){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Te(qe,Qe){return new De(qe,Qe).emitter.event}U.fromObservable=Te;function He(qe){return(Qe,q,ye)=>{let ge=0,be=!1;const Se={beginUpdate(){ge++},endUpdate(){ge--,ge===0&&(qe.reportChanges(),be&&(be=!1,Qe.call(q)))},handlePossibleChange(){},handleChange(){be=!0}};qe.addObserver(Se),qe.reportChanges();const ae={dispose(){qe.removeObserver(Se)}};return ye instanceof k.Cm?ye.add(ae):Array.isArray(ye)&&ye.push(ae),ae}}U.fromObservableLight=He})(S||(S={}));class f{constructor(K){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${K}_${f._idPool++}`,f.all.add(this)}start(K){this._stopWatch=new L.W,this.listenerCount=K}stop(){if(this._stopWatch){const K=this._stopWatch.elapsed();this.durations.push(K),this.elapsedOverall+=K,this.invocationCount+=1,this._stopWatch=void 0}}}f.all=new Set,f._idPool=0;let d=-1;class a{constructor(K,G=Math.random().toString(18).slice(2,5)){this.threshold=K,this.name=G,this._warnCountdown=0}dispose(){var K;(K=this._stacks)===null||K===void 0||K.clear()}check(K,G){const P=this.threshold;if(P<=0||G{const T=this._stacks.get(K.value)||0;this._stacks.set(K.value,T-1)}}}class s{static create(){var K;return new s((K=new Error().stack)!==null&&K!==void 0?K:"")}constructor(K){this.value=K}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class n{constructor(K){this.value=K}}const i=2,c=(U,K)=>{if(U instanceof n)K(U);else for(let G=0;G{typeof U=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(U))}):void 0;class u{constructor(K){var G,P,A,T,E;this._size=0,this._options=K,this._leakageMon=d>0||!((G=this._options)===null||G===void 0)&&G.leakWarningThreshold?new a((A=(P=this._options)===null||P===void 0?void 0:P.leakWarningThreshold)!==null&&A!==void 0?A:d):void 0,this._perfMon=!((T=this._options)===null||T===void 0)&&T._profName?new f(this._options._profName):void 0,this._deliveryQueue=(E=this._options)===null||E===void 0?void 0:E.deliveryQueue}dispose(){var K,G,P,A;if(!this._disposed){if(this._disposed=!0,((K=this._deliveryQueue)===null||K===void 0?void 0:K.current)===this&&this._deliveryQueue.reset(),this._listeners){if(x){const T=this._listeners;queueMicrotask(()=>{c(T,E=>{var W;return(W=E.stack)===null||W===void 0?void 0:W.print()})})}this._listeners=void 0,this._size=0}(P=(G=this._options)===null||G===void 0?void 0:G.onDidRemoveLastListener)===null||P===void 0||P.call(G),(A=this._leakageMon)===null||A===void 0||A.dispose()}}get event(){var K;return(K=this._event)!==null&&K!==void 0||(this._event=(G,P,A)=>{var T,E,W,$,z;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),k.jG.None;if(this._disposed)return k.jG.None;P&&(G=G.bind(P));const J=new n(G);let B,V;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(J.stack=s.create(),B=this._leakageMon.check(J.stack,this._size+1)),x&&(J.stack=V??s.create()),this._listeners?this._listeners instanceof n?((z=this._deliveryQueue)!==null&&z!==void 0||(this._deliveryQueue=new h),this._listeners=[this._listeners,J]):this._listeners.push(J):((E=(T=this._options)===null||T===void 0?void 0:T.onWillAddFirstListener)===null||E===void 0||E.call(T,this),this._listeners=J,($=(W=this._options)===null||W===void 0?void 0:W.onDidAddFirstListener)===null||$===void 0||$.call(W,this)),this._size++;const Y=(0,k.s)(()=>{m?.unregister(Y),B?.(),this._removeListener(J)});if(A instanceof k.Cm?A.add(Y):Array.isArray(A)&&A.push(Y),m){const X=new Error().stack.split(` `).slice(2).join(` `).trim();m.register(Y,X,Y)}return Y}),this._event}_removeListener(K){var G,P,A,T;if((P=(G=this._options)===null||G===void 0?void 0:G.onWillRemoveListener)===null||P===void 0||P.call(G,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(T=(A=this._options)===null||A===void 0?void 0:A.onDidRemoveLastListener)===null||T===void 0||T.call(A,this),this._size=0;return}const E=this._listeners,W=E.indexOf(K);if(W===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,E[W]=void 0;const $=this._deliveryQueue.current===this;if(this._size*i<=E.length){let z=0;for(let J=0;J0}}const C=()=>new h;class h{constructor(){this.i=-1,this.end=0}enqueue(K,G,P){this.i=0,this.end=P,this.current=K,this.value=G}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class v extends u{constructor(K){super(K),this._isPaused=0,this._eventQueue=new M.w,this._mergeFn=K?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const K=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(K))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(K){this._size&&(this._isPaused!==0?this._eventQueue.push(K):super.fire(K))}}class p extends v{constructor(K){var G;super(K),this._delay=(G=K.delay)!==null&&G!==void 0?G:100}fire(K){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(K)}}class b extends u{constructor(K){super(K),this._queuedEvents=[],this._mergeFn=K?.merge}fire(K){this.hasListeners()&&(this._queuedEvents.push(K),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(G=>super.fire(G)),this._queuedEvents=[]}))}}class O{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new u({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(K){const G={event:K,listener:null};this.events.push(G),this.hasListeners&&this.hook(G);const P=()=>{this.hasListeners&&this.unhook(G);const A=this.events.indexOf(G);this.events.splice(A,1)};return(0,k.s)((0,F.P)(P))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(K=>this.hook(K))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(K=>this.unhook(K))}hook(K){K.listener=K.event(G=>this.emitter.fire(G))}unhook(K){var G;(G=K.listener)===null||G===void 0||G.dispose(),K.listener=null}dispose(){var K;this.emitter.dispose();for(const G of this.events)(K=G.listener)===null||K===void 0||K.dispose();this.events=[]}}class w{constructor(){this.buffers=[]}wrapEvent(K){return(G,P,A)=>K(T=>{const E=this.buffers[this.buffers.length-1];E?E.push(()=>G.call(P,T)):G.call(P,T)},void 0,A)}bufferEvents(K){const G=[];this.buffers.push(G);const P=K();return this.buffers.pop(),G.forEach(A=>A()),P}}class j{constructor(){this.listening=!1,this.inputEvent=S.None,this.inputEventListener=k.jG.None,this.emitter=new u({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(K){this.inputEvent=K,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=K(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},"./node_modules/monaco-editor/esm/vs/base/common/extpath.js":function(pt,Me,e){e.d(Me,{No:function(){return f},TH:function(){return L},Zn:function(){return x},_1:function(){return I},kb:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/path.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");function M(d){return d===47||d===92}function L(d){return d.replace(/[\\/]/g,r.SA.sep)}function g(d){return d.indexOf("/")===-1&&(d=L(d)),/^[a-zA-Z]:(\/|$)/.test(d)&&(d="/"+d),d}function x(d,a=r.SA.sep){if(!d)return"";const s=d.length,n=d.charCodeAt(0);if(M(n)){if(M(d.charCodeAt(1))&&!M(d.charCodeAt(2))){let c=3;const m=c;for(;cd.length)return!1;if(s){if(!(0,k.ns)(d,a))return!1;if(a.length===d.length)return!0;let c=a.length;return a.charAt(a.length-1)===n&&c--,d.charAt(c)===n}return a.charAt(a.length-1)!==n&&(a+=n),d.indexOf(a)===0}function S(d){return d>=65&&d<=90||d>=97&&d<=122}function f(d,a=F.uF){return a?S(d.charCodeAt(0))&&d.charCodeAt(1)===58:!1}},"./node_modules/monaco-editor/esm/vs/base/common/filters.js":function(pt,Me,e){e.d(Me,{ne:function(){return me},Nd:function(){return fe},Jo:function(){return he},WJ:function(){return ve},dt:function(){return le},uU:function(){return de},Tt:function(){return m},yr:function(){return te},O:function(){return D},WP:function(){return i},dE:function(){return u},J1:function(){return B},or:function(){return s}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/map.js");function F(we){const Ue=L(we);if(Ue&&Ue.length>0)return new Uint32Array(Ue)}let k=0;const M=new Uint32Array(10);function L(we){if(k=0,g(we,I,4352),k>0||(g(we,S,4449),k>0)||(g(we,f,4520),k>0)||(g(we,d,12593),k))return M.subarray(0,k);if(we>=44032&&we<=55203){const Ue=we-44032,lt=Ue%588,Et=Math.floor(Ue/588),Kt=Math.floor(lt/28),Zt=lt%28-1;if(Et=0&&(Zt0)return M.subarray(0,k)}}function g(we,Ue,lt){we>=lt&&we>8&&(M[k++]=we>>8&255),we>>16&&(M[k++]=we>>16&255))}const I=new Uint8Array([114,82,115,101,69,102,97,113,81,116,84,100,119,87,99,122,120,118,103]),S=new Uint16Array([107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]),f=new Uint16Array([114,82,29810,115,30579,26483,101,102,29286,24934,29030,29798,30822,30310,26470,97,113,29809,116,84,100,119,99,122,120,118,103]),d=new Uint16Array([114,82,29810,115,30579,26483,101,69,102,29286,24934,29030,29798,30822,30310,26470,97,113,81,29809,116,84,100,119,87,99,122,120,118,103,107,111,105,79,106,112,117,80,104,27496,28520,27752,121,110,27246,28782,27758,98,109,27757,108]);var a=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");function s(...we){return function(Ue,lt){for(let Et=0,Kt=we.length;Et0?[{start:0,end:Ue.length}]:[]:null}function m(we,Ue){const lt=Ue.toLowerCase().indexOf(we.toLowerCase());return lt===-1?null:[{start:lt,end:lt+we.length}]}function u(we,Ue){return C(we.toLowerCase(),Ue.toLowerCase(),0,0)}function C(we,Ue,lt,Et){if(lt===we.length)return[];if(Et===Ue.length)return null;if(we[lt]===Ue[Et]){let Kt=null;return(Kt=C(we,Ue,lt+1,Et+1))?P({start:Et,end:Et+1},Kt):null}return C(we,Ue,lt,Et+1)}function h(we){return 97<=we&&we<=122}function v(we){return 65<=we&&we<=90}function p(we){return 48<=we&&we<=57}function b(we){return we===32||we===9||we===10||we===13}const O=new Set;"()[]{}<>`'\"-/;:,.?!".split("").forEach(we=>O.add(we.charCodeAt(0)));function w(we){return b(we)||O.has(we)}function j(we,Ue){return we===Ue||w(we)&&w(Ue)}const U=new Map;function K(we){if(U.has(we))return U.get(we);let Ue;const lt=F(we);return lt&&(Ue=lt),U.set(we,Ue),Ue}function G(we){return h(we)||v(we)||p(we)}function P(we,Ue){return Ue.length===0?Ue=[we]:we.end===Ue[0].start?Ue[0].start=we.start:Ue.unshift(we),Ue}function A(we,Ue){for(let lt=Ue;lt0&&!G(we.charCodeAt(lt-1)))return lt}return we.length}function T(we,Ue,lt,Et){if(lt===we.length)return[];if(Et===Ue.length)return null;if(we[lt]!==Ue[Et].toLowerCase())return null;{let Kt=null,Zt=Et+1;for(Kt=T(we,Ue,lt+1,Et+1);!Kt&&(Zt=A(Ue,Zt)).6}function $(we){const{upperPercent:Ue,lowerPercent:lt,alphaPercent:Et,numericPercent:Kt}=we;return lt>.2&&Ue<.8&&Et>.6&&Kt<.2}function z(we){let Ue=0,lt=0,Et=0,Kt=0;for(let Zt=0;Zt60&&(Ue=Ue.substring(0,60));const lt=E(Ue);if(!$(lt)){if(!W(lt))return null;Ue=Ue.toLowerCase()}let Et=null,Kt=0;for(we=we.toLowerCase();Kt0&&w(we.charCodeAt(lt-1)))return lt;return we.length}const X=s(i,J,m),ie=s(i,J,u),re=new r.qK(1e4);function te(we,Ue,lt=!1){if(typeof we!="string"||typeof Ue!="string")return null;let Et=re.get(we);Et||(Et=new RegExp(a.Bm(we),"i"),re.set(we,Et));const Kt=Et.exec(Ue);return Kt?[{start:Kt.index,end:Kt.index+Kt[0].length}]:lt?ie(we,Ue):X(we,Ue)}function D(we,Ue){const lt=le(we,we.toLowerCase(),0,Ue,Ue.toLowerCase(),0,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return lt?ve(lt):null}function he(we,Ue,lt,Et,Kt,Zt){const qt=Math.min(13,we.length);for(;lt"u")return[];const Ue=[],lt=we[1];for(let Et=we.length-1;Et>1;Et--){const Kt=we[Et]+lt,Zt=Ue[Ue.length-1];Zt&&Zt.end===Kt?Zt.end=Kt+1:Ue.push({start:Kt,end:Kt+1})}return Ue}const Ce=128;function Pe(){const we=[],Ue=[];for(let lt=0;lt<=Ce;lt++)Ue[lt]=0;for(let lt=0;lt<=Ce;lt++)we.push(Ue.slice(0));return we}function _e(we){const Ue=[];for(let lt=0;lt<=we;lt++)Ue[lt]=0;return Ue}const ee=_e(2*Ce),De=_e(2*Ce),Te=Pe(),He=Pe(),qe=Pe(),Qe=!1;function q(we,Ue,lt,Et,Kt){function Zt(tt,Mt,Ht=" "){for(;tt.lengthZt(tt,3)).join("|")} `;for(let tt=0;tt<=lt;tt++)tt===0?qt+=" |":qt+=`${Ue[tt-1]}|`,qt+=we[tt].slice(0,Kt+1).map(Mt=>Zt(Mt.toString(),3)).join("|")+` `;return qt}function ye(we,Ue,lt,Et){we=we.substr(Ue),lt=lt.substr(Et),console.log(q(He,we,we.length,lt,lt.length)),console.log(q(qe,we,we.length,lt,lt.length)),console.log(q(Te,we,we.length,lt,lt.length))}function ge(we,Ue){if(Ue<0||Ue>=we.length)return!1;const lt=we.codePointAt(Ue);switch(lt){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!a.Ss(lt)}}function be(we,Ue){if(Ue<0||Ue>=we.length)return!1;switch(we.charCodeAt(Ue)){case 32:case 9:return!0;default:return!1}}function Se(we,Ue,lt){return Ue[we]!==lt[we]}function ae(we,Ue,lt,Et,Kt,Zt,qt=!1){for(;UeCe?Ce:we.length,Mt=Et.length>Ce?Ce:Et.length;if(lt>=tt||Zt>=Mt||tt-lt>Mt-Zt||!ae(Ue,lt,tt,Kt,Zt,Mt,!0))return;oe(tt,Mt,lt,Zt,Ue,Kt);let Ht=1,xt=1,Jt=lt,Nt=Zt;const Be=[!1];for(Ht=1,Jt=lt;JtAn,Mi=fi?He[Ht][xt-1]+(Te[Ht][xt-1]>0?-5:0):0,xi=Nt>An+1&&Te[Ht][xt-1]>0,ci=xi?He[Ht][xt-2]+(Te[Ht][xt-2]>0?-5:0):0;if(xi&&(!fi||ci>=Mi)&&(!yi||ci>=ri))He[Ht][xt]=ci,qe[Ht][xt]=3,Te[Ht][xt]=0;else if(fi&&(!yi||Mi>=ri))He[Ht][xt]=Mi,qe[Ht][xt]=2,Te[Ht][xt]=0;else if(yi)He[Ht][xt]=ri,qe[Ht][xt]=1,Te[Ht][xt]=Te[Ht-1][xt-1]+1;else throw new Error("not possible")}}if(Qe&&ye(we,lt,Et,Zt),!Be[0]&&!qt.firstMatchCanBeWeak)return;Ht--,xt--;const vt=[He[Ht][xt],Zt];let Gt=0,_n=0;for(;Ht>=1;){let An=xt;do{const Hn=qe[Ht][An];if(Hn===3)An=An-2;else if(Hn===2)An=An-1;else break}while(An>=1);Gt>1&&Ue[lt+Ht-1]===Kt[Zt+xt-1]&&!Se(An+Zt-1,Et,Kt)&&Gt+1>Te[Ht][An]&&(An=xt),An===xt?Gt++:Gt=1,_n||(_n=An),Ht--,xt=An-1,vt.push(xt)}Mt===tt&&qt.boostFullMatch&&(vt[0]+=2);const Fn=_n-tt;return vt[0]-=Fn,vt}function oe(we,Ue,lt,Et,Kt,Zt){let qt=we-1,tt=Ue-1;for(;qt>=lt&&tt>=Et;)Kt[qt]===Zt[tt]&&(De[qt]=tt,qt--),tt--}function ne(we,Ue,lt,Et,Kt,Zt,qt,tt,Mt,Ht,xt){if(Ue[lt]!==Zt[qt])return Number.MIN_SAFE_INTEGER;let Jt=1,Nt=!1;return qt===lt-Et?Jt=we[lt]===Kt[qt]?7:5:Se(qt,Kt,Zt)&&(qt===0||!Se(qt-1,Kt,Zt))?(Jt=we[lt]===Kt[qt]?7:5,Nt=!0):ge(Zt,qt)&&(qt===0||!ge(Zt,qt-1))?Jt=5:(ge(Zt,qt-1)||be(Zt,qt-1))&&(Jt=5,Nt=!0),Jt>1&<===Et&&(xt[0]=!0),Nt||(Nt=Se(qt,Kt,Zt)||ge(Zt,qt-1)||be(Zt,qt-1)),lt===Et?qt>Mt&&(Jt-=Nt?3:5):Ht?Jt+=Nt?2:0:Jt+=Nt?0:1,qt+1===tt&&(Jt-=Nt?3:5),Jt}function de(we,Ue,lt,Et,Kt,Zt,qt){return Le(we,Ue,lt,Et,Kt,Zt,!0,qt)}function Le(we,Ue,lt,Et,Kt,Zt,qt,tt){let Mt=le(we,Ue,lt,Et,Kt,Zt,tt);if(Mt&&!qt)return Mt;if(we.length>=3){const Ht=Math.min(7,we.length-1);for(let xt=lt+1;xtMt[0])&&(Mt=Nt))}}}return Mt}function We(we,Ue){if(Ue+1>=we.length)return;const lt=we[Ue],Et=we[Ue+1];if(lt!==Et)return we.slice(0,Ue)+Et+lt+we.slice(Ue+2)}},"./node_modules/monaco-editor/esm/vs/base/common/functional.js":function(pt,Me,e){e.d(Me,{P:function(){return r}});function r(F,k){const M=this;let L=!1,g;return function(){if(L)return g;if(L=!0,k)try{g=F.apply(M,arguments)}finally{k()}else g=F.apply(M,arguments);return g}}},"./node_modules/monaco-editor/esm/vs/base/common/glob.js":function(pt,Me,e){e.d(Me,{YW:function(){return T},qg:function(){return E}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/extpath.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/path.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");const x="**",I="/",S="[/\\\\]",f="[^/\\\\]",d=/\//g;function a(B,V){switch(B){case 0:return"";case 1:return`${f}*?`;default:return`(?:${S}|${f}+${S}${V?`|${S}${f}+`:""})*?`}}function s(B,V){if(!B)return[];const Y=[];let X=!1,ie=!1,re="";for(const te of B){switch(te){case V:if(!X&&!ie){Y.push(re),re="";continue}break;case"{":X=!0;break;case"}":X=!1;break;case"[":ie=!0;break;case"]":ie=!1;break}re+=te}return re&&Y.push(re),Y}function n(B){if(!B)return"";let V="";const Y=s(B,I);if(Y.every(X=>X===x))V=".*";else{let X=!1;Y.forEach((ie,re)=>{if(ie===x){if(X)return;V+=a(2,re===Y.length-1)}else{let te=!1,D="",he=!1,ve="";for(const Ce of ie){if(Ce!=="}"&&te){D+=Ce;continue}if(he&&(Ce!=="]"||!ve)){let Pe;Ce==="-"?Pe=Ce:(Ce==="^"||Ce==="!")&&!ve?Pe="^":Ce===I?Pe="":Pe=(0,g.bm)(Ce),ve+=Pe;continue}switch(Ce){case"{":te=!0;continue;case"[":he=!0;continue;case"}":{const _e=`(?:${s(D,",").map(ee=>n(ee)).join("|")})`;V+=_e,te=!1,D="";break}case"]":{V+="["+ve+"]",he=!1,ve="";break}case"?":V+=f;continue;case"*":V+=a(1);continue;default:V+=(0,g.bm)(Ce)}}reO(D,V)).filter(D=>D!==b),B),X=Y.length;if(!X)return b;if(X===1)return Y[0];const ie=function(D,he){for(let ve=0,Ce=Y.length;ve!!D.allBasenames);re&&(ie.allBasenames=re.allBasenames);const te=Y.reduce((D,he)=>he.allPaths?D.concat(he.allPaths):D,[]);return te.length&&(ie.allPaths=te),ie}function P(B,V,Y){const X=M.Vn===M.SA.sep,ie=X?B:B.replace(d,M.Vn),re=M.Vn+ie,te=M.SA.sep+B;let D;return Y?D=function(he,ve){return typeof he=="string"&&(he===ie||he.endsWith(re)||!X&&(he===B||he.endsWith(te)))?V:null}:D=function(he,ve){return typeof he=="string"&&(he===ie||!X&&he===B)?V:null},D.allPaths=[(Y?"*/":"./")+B],D}function A(B){try{const V=new RegExp(`^${n(B)}$`);return function(Y){return V.lastIndex=0,typeof Y=="string"&&V.test(Y)?B:null}}catch{return b}}function T(B,V,Y){return!B||typeof V!="string"?!1:E(B)(V,void 0,Y)}function E(B,V={}){if(!B)return p;if(typeof B=="string"||W(B)){const Y=O(B,V);if(Y===b)return p;const X=function(ie,re){return!!Y(ie,re)};return Y.allBasenames&&(X.allBasenames=Y.allBasenames),Y.allPaths&&(X.allPaths=Y.allPaths),X}return $(B,V)}function W(B){const V=B;return V?typeof V.base=="string"&&typeof V.pattern=="string":!1}function $(B,V){const Y=J(Object.getOwnPropertyNames(B).map(D=>z(D,B[D],V)).filter(D=>D!==b)),X=Y.length;if(!X)return b;if(!Y.some(D=>!!D.requiresSiblings)){if(X===1)return Y[0];const D=function(Ce,Pe){let _e;for(let ee=0,De=Y.length;ee{for(const ee of _e){const De=await ee;if(typeof De=="string")return De}return null})():null},he=Y.find(Ce=>!!Ce.allBasenames);he&&(D.allBasenames=he.allBasenames);const ve=Y.reduce((Ce,Pe)=>Pe.allPaths?Ce.concat(Pe.allPaths):Ce,[]);return ve.length&&(D.allPaths=ve),D}const ie=function(D,he,ve){let Ce,Pe;for(let _e=0,ee=Y.length;_e{for(const _e of Pe){const ee=await _e;if(typeof ee=="string")return ee}return null})():null},re=Y.find(D=>!!D.allBasenames);re&&(ie.allBasenames=re.allBasenames);const te=Y.reduce((D,he)=>he.allPaths?D.concat(he.allPaths):D,[]);return te.length&&(ie.allPaths=te),ie}function z(B,V,Y){if(V===!1)return b;const X=O(B,Y);if(X===b)return b;if(typeof V=="boolean")return X;if(V){const ie=V.when;if(typeof ie=="string"){const re=(te,D,he,ve)=>{if(!ve||!X(te,D))return null;const Ce=ie.replace("$(basename)",()=>he),Pe=ve(Ce);return(0,r.Qg)(Pe)?Pe.then(_e=>_e?B:null):Pe?B:null};return re.requiresSiblings=!0,re}}return X}function J(B,V){const Y=B.filter(D=>!!D.basenames);if(Y.length<2)return B;const X=Y.reduce((D,he)=>{const ve=he.basenames;return ve?D.concat(ve):D},[]);let ie;if(V){ie=[];for(let D=0,he=X.length;D{const ve=he.patterns;return ve?D.concat(ve):D},[]);const re=function(D,he){if(typeof D!="string")return null;if(!he){let Ce;for(Ce=D.length;Ce>0;Ce--){const Pe=D.charCodeAt(Ce-1);if(Pe===47||Pe===92)break}he=D.substr(Ce)}const ve=X.indexOf(he);return ve!==-1?ie[ve]:null};re.basenames=X,re.patterns=ie,re.allBasenames=X;const te=B.filter(D=>!D.basenames);return te.push(re),te}},"./node_modules/monaco-editor/esm/vs/base/common/hash.js":function(pt,Me,e){e.d(Me,{e2:function(){return g},sN:function(){return k},tW:function(){return F},v7:function(){return s}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");function F(n){return k(n,0)}function k(n,i){switch(typeof n){case"object":return n===null?M(349,i):Array.isArray(n)?x(n,i):I(n,i);case"string":return g(n,i);case"boolean":return L(n,i);case"number":return M(n,i);case"undefined":return M(937,i);default:return M(617,i)}}function M(n,i){return(i<<5)-i+n|0}function L(n,i){return M(n?433:863,i)}function g(n,i){i=M(149417,i);for(let c=0,m=n.length;ck(m,c),i)}function I(n,i){return i=M(181387,i),Object.keys(n).sort().reduce((c,m)=>(c=g(m,c),k(n[m],c)),i)}function S(n,i,c=32){const m=c-i,u=~((1<>>m)>>>0}function f(n,i=0,c=n.byteLength,m=0){for(let u=0;uc.toString(16).padStart(2,"0")).join(""):d((n>>>0).toString(16),i/4)}class s{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(i){const c=i.length;if(c===0)return;const m=this._buff;let u=this._buffLen,C=this._leftoverHighSurrogate,h,v;for(C!==0?(h=C,v=-1,C=0):(h=i.charCodeAt(0),v=0);;){let p=h;if(r.pc(h))if(v+1>>6,i[c++]=128|(m&63)>>>0):m<65536?(i[c++]=224|(m&61440)>>>12,i[c++]=128|(m&4032)>>>6,i[c++]=128|(m&63)>>>0):(i[c++]=240|(m&1835008)>>>18,i[c++]=128|(m&258048)>>>12,i[c++]=128|(m&4032)>>>6,i[c++]=128|(m&63)>>>0),c>=64&&(this._step(),c-=64,this._totalLen+=64,i[0]=i[64],i[1]=i[65],i[2]=i[66]),c}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),a(this._h0)+a(this._h1)+a(this._h2)+a(this._h3)+a(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,f(this._buff,this._buffLen),this._buffLen>56&&(this._step(),f(this._buff));const i=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(i/4294967296),!1),this._buffDV.setUint32(60,i%4294967296,!1),this._step()}_step(){const i=s._bigBlock32,c=this._buffDV;for(let w=0;w<64;w+=4)i.setUint32(w,c.getUint32(w,!1),!1);for(let w=64;w<320;w+=4)i.setUint32(w,S(i.getUint32(w-12,!1)^i.getUint32(w-32,!1)^i.getUint32(w-56,!1)^i.getUint32(w-64,!1),1),!1);let m=this._h0,u=this._h1,C=this._h2,h=this._h3,v=this._h4,p,b,O;for(let w=0;w<80;w++)w<20?(p=u&C|~u&h,b=1518500249):w<40?(p=u^C^h,b=1859775393):w<60?(p=u&C|u&h|C&h,b=2400959708):(p=u^C^h,b=3395469782),O=S(m,5)+p+v+b+i.getUint32(w*4,!1)&4294967295,v=h,h=C,C=S(u,30),u=m,m=O;this._h0=this._h0+m&4294967295,this._h1=this._h1+u&4294967295,this._h2=this._h2+C&4294967295,this._h3=this._h3+h&4294967295,this._h4=this._h4+v&4294967295}}s._bigBlock32=new DataView(new ArrayBuffer(320))},"./node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js":function(pt,Me,e){e.d(Me,{k:function(){return r}});class r{constructor(k){this.value=k}equals(k){return this.value===k.value}contains(k){return this.equals(k)||this.value===""||k.value.startsWith(this.value+r.sep)}intersects(k){return this.contains(k)||k.contains(this)}append(...k){return new r((this.value?[this.value,...k]:k).join(r.sep))}}r.sep=".",r.None=new r("@@none@@"),r.Empty=new r("")},"./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js":function(pt,Me,e){e.d(Me,{Bc:function(){return g},VS:function(){return I},_W:function(){return s},it:function(){return x},nI:function(){return n},nK:function(){return S},oO:function(){return a}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/iconLabels.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js");class g{constructor(c="",m=!1){var u,C,h;if(this.value=c,typeof this.value!="string")throw(0,r.Qg)("value");typeof m=="boolean"?(this.isTrusted=m,this.supportThemeIcons=!1,this.supportHtml=!1):(this.isTrusted=(u=m.isTrusted)!==null&&u!==void 0?u:void 0,this.supportThemeIcons=(C=m.supportThemeIcons)!==null&&C!==void 0?C:!1,this.supportHtml=(h=m.supportHtml)!==null&&h!==void 0?h:!1)}appendText(c,m=0){return this.value+=f(this.supportThemeIcons?(0,F.m2)(c):c).replace(/([ \t]+)/g,(u,C)=>" ".repeat(C.length)).replace(/\>/gm,"\\>").replace(/\n/g,m===1?`\\ `:` `),this}appendMarkdown(c){return this.value+=c,this}appendCodeblock(c,m){return this.value+=` ${d(m,c)} `,this}appendLink(c,m,u){return this.value+="[",this.value+=this._escape(m,"]"),this.value+="](",this.value+=this._escape(String(c),")"),u&&(this.value+=` "${this._escape(this._escape(u,'"'),")")}"`),this.value+=")",this}_escape(c,m){const u=new RegExp((0,M.bm)(m),"g");return c.replace(u,(C,h)=>c.charAt(h-1)!=="\\"?`\\${C}`:C)}}function x(i){return I(i)?!i.value:Array.isArray(i)?i.every(x):!0}function I(i){return i instanceof g?!0:i&&typeof i=="object"?typeof i.value=="string"&&(typeof i.isTrusted=="boolean"||typeof i.isTrusted=="object"||i.isTrusted===void 0)&&(typeof i.supportThemeIcons=="boolean"||i.supportThemeIcons===void 0):!1}function S(i,c){return i===c?!0:!i||!c?!1:i.value===c.value&&i.isTrusted===c.isTrusted&&i.supportThemeIcons===c.supportThemeIcons&&i.supportHtml===c.supportHtml&&(i.baseUri===c.baseUri||!!i.baseUri&&!!c.baseUri&&(0,k.n4)(L.r.from(i.baseUri),L.r.from(c.baseUri)))}function f(i){return i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function d(i,c){var m,u;const C=(u=(m=i.match(/^`+/gm))===null||m===void 0?void 0:m.reduce((v,p)=>v.length>p.length?v:p).length)!==null&&u!==void 0?u:0,h=C>=3?C+1:3;return[`${"`".repeat(h)}${c}`,i,`${"`".repeat(h)}`].join(` `)}function a(i){return i.replace(/"/g,""")}function s(i){return i&&i.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1")}function n(i){const c=[],m=i.split("|").map(C=>C.trim());i=m[0];const u=m[1];if(u){const C=/height=(\d+)/.exec(u),h=/width=(\d+)/.exec(u),v=C?C[1]:"",p=h?h[1]:"",b=isFinite(parseInt(p)),O=isFinite(parseInt(v));b&&c.push(`width="${p}"`),O&&c.push(`height="${v}"`)}return{href:i,dimensions:c}}},"./node_modules/monaco-editor/esm/vs/base/common/iconLabels.js":function(pt,Me,e){e.d(Me,{R$:function(){return a},_k:function(){return n},m2:function(){return x},pS:function(){return d},pz:function(){return i},sA:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js");const M="$(",L=new RegExp(`\\$\\(${k.L.iconNameExpression}(?:${k.L.iconModifierExpression})?\\)`,"g"),g=new RegExp(`(\\\\)?${L.source}`,"g");function x(c){return c.replace(g,(m,u)=>u?m:`\\${m}`)}const I=new RegExp(`\\\\${L.source}`,"g");function S(c){return c.replace(I,m=>`\\${m}`)}const f=new RegExp(`(\\s)?(\\\\)?${L.source}(\\s)?`,"g");function d(c){return c.indexOf(M)===-1?c:c.replace(f,(m,u,C,h)=>C?m:u||h||"")}function a(c){return c?c.replace(/\$\((.*?)\)/g,(m,u)=>` ${u} `).trim():""}const s=new RegExp(`\\$\\(${k.L.iconNameCharacter}+\\)`,"g");function n(c){s.lastIndex=0;let m="";const u=[];let C=0;for(;;){const h=s.lastIndex,v=s.exec(c),p=c.substring(h,v?.index);if(p.length>0){m+=p;for(let b=0;b=0;p--)yield v[p]}F.reverse=S;function f(v){return!v||v[Symbol.iterator]().next().done===!0}F.isEmpty=f;function d(v){return v[Symbol.iterator]().next().value}F.first=d;function a(v,p){for(const b of v)if(p(b))return!0;return!1}F.some=a;function s(v,p){for(const b of v)if(p(b))return b}F.find=s;function*n(v,p){for(const b of v)p(b)&&(yield b)}F.filter=n;function*i(v,p){let b=0;for(const O of v)yield p(O,b++)}F.map=i;function*c(...v){for(const p of v)yield*p}F.concat=c;function m(v,p,b){let O=b;for(const w of v)O=p(O,w);return O}F.reduce=m;function*u(v,p,b=v.length){for(p<0&&(p+=v.length),b<0?b+=v.length:b>v.length&&(b=v.length);p=98&&v<=113)return null;switch(v){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return F.keyCodeToStr(v)}n.toElectronAccelerator=h})(a||(a={}));function s(n,i){const c=(i&65535)<<16>>>0;return(n|c)>>>0}},"./node_modules/monaco-editor/esm/vs/base/common/keybindingLabels.js":function(pt,Me,e){e.d(Me,{G$:function(){return g},Of:function(){return k},r0:function(){return M},rr:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js");class F{constructor(S,f,d=f){this.modifierLabels=[null],this.modifierLabels[2]=S,this.modifierLabels[1]=f,this.modifierLabels[3]=d}toLabel(S,f,d){if(f.length===0)return null;const a=[];for(let s=0,n=f.length;s>>0,a=(S&4294901760)>>>16;return a!==0?new g([k(d,f),k(a,f)]):new g([k(d,f)])}else{const d=[];for(let a=0;a{p[v]||console.log(b)},3e3)}setParent(p,b){if(p&&p!==c.None)try{p[v]=!0}catch{}}markAsDisposed(p){if(p&&p!==c.None)try{p[v]=!0}catch{}}markAsSingleton(p){}})}function g(v){return M?.trackDisposable(v),v}function x(v){M?.markAsDisposed(v)}function I(v,p){M?.setParent(v,p)}function S(v,p){if(M)for(const b of v)M.setParent(b,p)}function f(v){return M?.markAsSingleton(v),v}function d(v){return typeof v.dispose=="function"&&v.dispose.length===0}function a(v){if(F.f.is(v)){const p=[];for(const b of v)if(b)try{b.dispose()}catch(O){p.push(O)}if(p.length===1)throw p[0];if(p.length>1)throw new AggregateError(p,"Encountered errors while disposing of store");return Array.isArray(v)?[]:v}else if(v)return v.dispose(),v}function s(...v){const p=n(()=>a(v));return S(v,p),p}function n(v){const p=g({dispose:(0,r.P)(()=>{x(p),v()})});return p}class i{constructor(){this._toDispose=new Set,this._isDisposed=!1,g(this)}dispose(){this._isDisposed||(x(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{a(this._toDispose)}finally{this._toDispose.clear()}}add(p){if(!p)return p;if(p===this)throw new Error("Cannot register a disposable on itself!");return I(p,this),this._isDisposed?i.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(p),p}deleteAndLeak(p){p&&this._toDispose.has(p)&&(this._toDispose.delete(p),I(p,null))}}i.DISABLE_DISPOSED_WARNING=!1;class c{constructor(){this._store=new i,g(this),I(this._store,this)}dispose(){x(this),this._store.dispose()}_register(p){if(p===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(p)}}c.None=Object.freeze({dispose(){}});class m{constructor(){this._isDisposed=!1,g(this)}get value(){return this._isDisposed?void 0:this._value}set value(p){var b;this._isDisposed||p===this._value||((b=this._value)===null||b===void 0||b.dispose(),p&&I(p,this),this._value=p)}clear(){this.value=void 0}dispose(){var p;this._isDisposed=!0,x(this),(p=this._value)===null||p===void 0||p.dispose(),this._value=void 0}}class u{constructor(p){this._disposable=p,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class C{constructor(p){this.object=p}dispose(){}}class h{constructor(){this._store=new Map,this._isDisposed=!1,g(this)}dispose(){x(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{a(this._store.values())}finally{this._store.clear()}}get(p){return this._store.get(p)}set(p,b,O=!1){var w;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),O||(w=this._store.get(p))===null||w===void 0||w.dispose(),this._store.set(p,b)}deleteAndDispose(p){var b;(b=this._store.get(p))===null||b===void 0||b.dispose(),this._store.delete(p)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},"./node_modules/monaco-editor/esm/vs/base/common/linkedList.js":function(pt,Me,e){e.d(Me,{w:function(){return F}});class r{constructor(M){this.element=M,this.next=r.Undefined,this.prev=r.Undefined}}r.Undefined=new r(void 0);class F{constructor(){this._first=r.Undefined,this._last=r.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===r.Undefined}clear(){let M=this._first;for(;M!==r.Undefined;){const L=M.next;M.prev=r.Undefined,M.next=r.Undefined,M=L}this._first=r.Undefined,this._last=r.Undefined,this._size=0}unshift(M){return this._insert(M,!1)}push(M){return this._insert(M,!0)}_insert(M,L){const g=new r(M);if(this._first===r.Undefined)this._first=g,this._last=g;else if(L){const I=this._last;this._last=g,g.prev=I,I.next=g}else{const I=this._first;this._first=g,g.next=I,I.prev=g}this._size+=1;let x=!1;return()=>{x||(x=!0,this._remove(g))}}shift(){if(this._first!==r.Undefined){const M=this._first.element;return this._remove(this._first),M}}pop(){if(this._last!==r.Undefined){const M=this._last.element;return this._remove(this._last),M}}_remove(M){if(M.prev!==r.Undefined&&M.next!==r.Undefined){const L=M.prev;L.next=M.next,M.next.prev=L}else M.prev===r.Undefined&&M.next===r.Undefined?(this._first=r.Undefined,this._last=r.Undefined):M.next===r.Undefined?(this._last=this._last.prev,this._last.next=r.Undefined):M.prev===r.Undefined&&(this._first=this._first.next,this._first.prev=r.Undefined);this._size-=1}*[Symbol.iterator](){let M=this._first;for(;M!==r.Undefined;)yield M.element,M=M.next}}},"./node_modules/monaco-editor/esm/vs/base/common/map.js":function(pt,Me,e){e.d(Me,{cO:function(){return I},db:function(){return S},fT:function(){return L},qK:function(){return x}});var r,F;class k{constructor(d,a){this.uri=d,this.value=a}}function M(f){return Array.isArray(f)}class L{constructor(d,a){if(this[r]="ResourceMap",d instanceof L)this.map=new Map(d.map),this.toKey=a??L.defaultToKey;else if(M(d)){this.map=new Map,this.toKey=a??L.defaultToKey;for(const[s,n]of d)this.set(s,n)}else this.map=new Map,this.toKey=d??L.defaultToKey}set(d,a){return this.map.set(this.toKey(d),new k(d,a)),this}get(d){var a;return(a=this.map.get(this.toKey(d)))===null||a===void 0?void 0:a.value}has(d){return this.map.has(this.toKey(d))}get size(){return this.map.size}clear(){this.map.clear()}delete(d){return this.map.delete(this.toKey(d))}forEach(d,a){typeof a<"u"&&(d=d.bind(a));for(const[s,n]of this.map)d(n.value,n.uri,this)}*values(){for(const d of this.map.values())yield d.value}*keys(){for(const d of this.map.values())yield d.uri}*entries(){for(const d of this.map.values())yield[d.uri,d.value]}*[(r=Symbol.toStringTag,Symbol.iterator)](){for(const[,d]of this.map)yield[d.uri,d.value]}}L.defaultToKey=f=>f.toString();class g{constructor(){this[F]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var d;return(d=this._head)===null||d===void 0?void 0:d.value}get last(){var d;return(d=this._tail)===null||d===void 0?void 0:d.value}has(d){return this._map.has(d)}get(d,a=0){const s=this._map.get(d);if(s)return a!==0&&this.touch(s,a),s.value}set(d,a,s=0){let n=this._map.get(d);if(n)n.value=a,s!==0&&this.touch(n,s);else{switch(n={key:d,value:a,next:void 0,previous:void 0},s){case 0:this.addItemLast(n);break;case 1:this.addItemFirst(n);break;case 2:this.addItemLast(n);break;default:this.addItemLast(n);break}this._map.set(d,n),this._size++}return this}delete(d){return!!this.remove(d)}remove(d){const a=this._map.get(d);if(a)return this._map.delete(d),this.removeItem(a),this._size--,a.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const d=this._head;return this._map.delete(d.key),this.removeItem(d),this._size--,d.value}forEach(d,a){const s=this._state;let n=this._head;for(;n;){if(a?d.bind(a)(n.value,n.key,this):d(n.value,n.key,this),this._state!==s)throw new Error("LinkedMap got modified during iteration.");n=n.next}}keys(){const d=this,a=this._state;let s=this._head;const n={[Symbol.iterator](){return n},next(){if(d._state!==a)throw new Error("LinkedMap got modified during iteration.");if(s){const i={value:s.key,done:!1};return s=s.next,i}else return{value:void 0,done:!0}}};return n}values(){const d=this,a=this._state;let s=this._head;const n={[Symbol.iterator](){return n},next(){if(d._state!==a)throw new Error("LinkedMap got modified during iteration.");if(s){const i={value:s.value,done:!1};return s=s.next,i}else return{value:void 0,done:!0}}};return n}entries(){const d=this,a=this._state;let s=this._head;const n={[Symbol.iterator](){return n},next(){if(d._state!==a)throw new Error("LinkedMap got modified during iteration.");if(s){const i={value:[s.key,s.value],done:!1};return s=s.next,i}else return{value:void 0,done:!0}}};return n}[(F=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(d){if(d>=this.size)return;if(d===0){this.clear();return}let a=this._head,s=this.size;for(;a&&s>d;)this._map.delete(a.key),a=a.next,s--;this._head=a,this._size=s,a&&(a.previous=void 0),this._state++}addItemFirst(d){if(!this._head&&!this._tail)this._tail=d;else if(this._head)d.next=this._head,this._head.previous=d;else throw new Error("Invalid list");this._head=d,this._state++}addItemLast(d){if(!this._head&&!this._tail)this._head=d;else if(this._tail)d.previous=this._tail,this._tail.next=d;else throw new Error("Invalid list");this._tail=d,this._state++}removeItem(d){if(d===this._head&&d===this._tail)this._head=void 0,this._tail=void 0;else if(d===this._head){if(!d.next)throw new Error("Invalid list");d.next.previous=void 0,this._head=d.next}else if(d===this._tail){if(!d.previous)throw new Error("Invalid list");d.previous.next=void 0,this._tail=d.previous}else{const a=d.next,s=d.previous;if(!a||!s)throw new Error("Invalid list");a.previous=s,s.next=a}d.next=void 0,d.previous=void 0,this._state++}touch(d,a){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(a!==1&&a!==2)){if(a===1){if(d===this._head)return;const s=d.next,n=d.previous;d===this._tail?(n.next=void 0,this._tail=n):(s.previous=n,n.next=s),d.previous=void 0,d.next=this._head,this._head.previous=d,this._head=d,this._state++}else if(a===2){if(d===this._tail)return;const s=d.next,n=d.previous;d===this._head?(s.previous=void 0,this._head=s):(s.previous=n,n.next=s),d.next=void 0,d.previous=this._tail,this._tail.next=d,this._tail=d,this._state++}}}toJSON(){const d=[];return this.forEach((a,s)=>{d.push([s,a])}),d}fromJSON(d){this.clear();for(const[a,s]of d)this.set(a,s)}}class x extends g{constructor(d,a=1){super(),this._limit=d,this._ratio=Math.min(Math.max(0,a),1)}get limit(){return this._limit}set limit(d){this._limit=d,this.checkTrim()}get(d,a=2){return super.get(d,a)}peek(d){return super.get(d,0)}set(d,a){return super.set(d,a,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}class I{constructor(d){if(this._m1=new Map,this._m2=new Map,d)for(const[a,s]of d)this.set(a,s)}clear(){this._m1.clear(),this._m2.clear()}set(d,a){this._m1.set(d,a),this._m2.set(a,d)}get(d){return this._m1.get(d)}getKey(d){return this._m2.get(d)}delete(d){const a=this._m1.get(d);return a===void 0?!1:(this._m1.delete(d),this._m2.delete(a),!0)}keys(){return this._m1.keys()}values(){return this._m1.values()}}class S{constructor(){this.map=new Map}add(d,a){let s=this.map.get(d);s||(s=new Set,this.map.set(d,s)),s.add(a)}delete(d,a){const s=this.map.get(d);s&&(s.delete(a),s.size===0&&this.map.delete(d))}forEach(d,a){const s=this.map.get(d);s&&s.forEach(a)}get(d){const a=this.map.get(d);return a||new Set}}},"./node_modules/monaco-editor/esm/vs/base/common/marshalling.js":function(pt,Me,e){e.d(Me,{As:function(){return k},qg:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/buffer.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js");function k(x){return JSON.stringify(x,L)}function M(x){let I=JSON.parse(x);return I=g(I),I}function L(x,I){return I instanceof RegExp?{$mid:2,source:I.source,flags:I.flags}:I}function g(x,I=0){if(!x||I>200)return x;if(typeof x=="object"){switch(x.$mid){case 1:return F.r.revive(x);case 2:return new RegExp(x.source,x.flags);case 17:return new Date(x.source)}if(x instanceof r.MB||x instanceof Uint8Array)return x;if(Array.isArray(x))for(let S=0;Sx(c,u))}const S="tkn";class f{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(m){this._preferredWebSchema=m}get _remoteResourcesPath(){return L.SA.join(this._serverRootPath,g.vscodeRemoteResource)}rewrite(m){if(this._delegate)try{return this._delegate(m)}catch(b){return r.dz(b),m}const u=m.authority;let C=this._hosts[u];C&&C.indexOf(":")!==-1&&C.indexOf("[")===-1&&(C=`[${C}]`);const h=this._ports[u],v=this._connectionTokens[u];let p=`path=${encodeURIComponent(m.path)}`;return typeof v=="string"&&(p+=`&${S}=${encodeURIComponent(v)}`),M.r.from({scheme:F.HZ?this._preferredWebSchema:g.vscodeRemoteResource,authority:`${C}:${h}`,path:this._remoteResourcesPath,query:p})}}const d=new f,a="vscode-app";class s{uriToBrowserUri(m){return m.scheme===g.vscodeRemote?d.rewrite(m):m.scheme===g.file&&(F.ib||F.lg===`${g.vscodeFileResource}://${s.FALLBACK_AUTHORITY}`)?m.with({scheme:g.vscodeFileResource,authority:m.authority||s.FALLBACK_AUTHORITY,query:null,fragment:null}):m}}s.FALLBACK_AUTHORITY=a;const n=new s;var i;(function(c){const m=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);c.CoopAndCoep=Object.freeze(m.get("3"));const u="vscode-coi";function C(v){let p;typeof v=="string"?p=new URL(v).searchParams:v instanceof URL?p=v.searchParams:M.r.isUri(v)&&(p=new URL(v.toString(!0)).searchParams);const b=p?.get(u);if(b)return m.get(b)}c.getHeadersFromQuery=C;function h(v,p,b){if(!globalThis.crossOriginIsolated)return;const O=p&&b?"3":b?"2":"1";v instanceof URLSearchParams?v.set(u,O):v[u]=O}c.addSearchParam=h})(i||(i={}))},"./node_modules/monaco-editor/esm/vs/base/common/numbers.js":function(pt,Me,e){e.d(Me,{Uq:function(){return F},mu:function(){return k},qE:function(){return r}});function r(M,L,g){return Math.min(Math.max(M,L),g)}class F{constructor(){this._n=1,this._val=0}update(L){return this._val=this._val+(L-this._val)/this._n,this._n+=1,this._val}get value(){return this._val}}class k{constructor(L){this._n=0,this._val=0,this._values=[],this._index=0,this._sum=0,this._values=new Array(L),this._values.fill(0,0,L)}update(L){const g=this._values[this._index];return this._values[this._index]=L,this._index=(this._index+1)%this._values.length,this._sum-=g,this._sum+=L,this._n{s[n]=i&&typeof i=="object"?F(i):i}),s}function k(a){if(!a||typeof a!="object")return a;const s=[a];for(;s.length>0;){const n=s.shift();Object.freeze(n);for(const i in n)if(M.call(n,i)){const c=n[i];typeof c=="object"&&!Object.isFrozen(c)&&!(0,r.iu)(c)&&s.push(c)}}return a}const M=Object.prototype.hasOwnProperty;function L(a,s){return g(a,s,new Set)}function g(a,s,n){if((0,r.z)(a))return a;const i=s(a);if(typeof i<"u")return i;if(Array.isArray(a)){const c=[];for(const m of a)c.push(g(m,s,n));return c}if((0,r.Gv)(a)){if(n.has(a))throw new Error("Cannot clone recursive data-structure");n.add(a);const c={};for(const m in a)M.call(a,m)&&(c[m]=g(a[m],s,n));return n.delete(a),c}return a}function x(a,s,n=!0){return(0,r.Gv)(a)?((0,r.Gv)(s)&&Object.keys(s).forEach(i=>{i in a?n&&((0,r.Gv)(a[i])&&(0,r.Gv)(s[i])?x(a[i],s[i],n):a[i]=s[i]):a[i]=s[i]}),a):s}function I(a,s){if(a===s)return!0;if(a==null||s===null||s===void 0||typeof a!=typeof s||typeof a!="object"||Array.isArray(a)!==Array.isArray(s))return!1;let n,i;if(Array.isArray(a)){if(a.length!==s.length)return!1;for(n=0;nfunction(){const m=Array.prototype.slice.call(arguments,0);return s(c,m)},i={};for(const c of a)i[c]=n(c);return i}},"./node_modules/monaco-editor/esm/vs/base/common/observable.js":function(pt,Me,e){e.d(Me,{fm:function(){return x},Y:function(){return S},zL:function(){return I},yC:function(){return f},lk:function(){return a.lk},un:function(){return F.un},nb:function(){return F.Gy},ZX:function(){return a.ZX},C:function(){return F.C},rm:function(){return F.rm},X2:function(){return r.X2},y0:function(){return a.y0},Yd:function(){return a.Yd},yQ:function(){return a.yQ},FY:function(){return r.FY},OI:function(){return a.OI},PO:function(){return r.PO},Rn:function(){return r.Rn},oJ:function(){return s}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/base.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/derived.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/assert.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/debugName.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/logging.js");function x(i){return new d(new L.nA(void 0,void 0,i),i,void 0,void 0)}function I(i,c){var m;return new d(new L.nA(i.owner,i.debugName,(m=i.debugReferenceFn)!==null&&m!==void 0?m:c),c,void 0,void 0)}function S(i,c){var m;return new d(new L.nA(i.owner,i.debugName,(m=i.debugReferenceFn)!==null&&m!==void 0?m:c),c,i.createEmptyChangeSummary,i.handleChange)}function f(i){const c=new M.Cm,m=I({owner:void 0,debugName:void 0,debugReferenceFn:i},u=>{c.clear(),i(u,c)});return(0,M.s)(()=>{m.dispose(),c.dispose()})}class d{get debugName(){var c;return(c=this._debugNameData.getDebugName(this))!==null&&c!==void 0?c:"(anonymous)"}constructor(c,m,u,C){var h,v;this._debugNameData=c,this._runFn=m,this.createChangeSummary=u,this._handleChange=C,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=(h=this.createChangeSummary)===null||h===void 0?void 0:h.call(this),(v=(0,g.tZ)())===null||v===void 0||v.handleAutorunCreated(this),this._runIfNeeded(),(0,M.Ay)(this)}dispose(){this.disposed=!0;for(const c of this.dependencies)c.removeObserver(this);this.dependencies.clear(),(0,M.VD)(this)}_runIfNeeded(){var c,m,u;if(this.state===3)return;const C=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=C,this.state=3;const h=this.disposed;try{if(!h){(c=(0,g.tZ)())===null||c===void 0||c.handleAutorunTriggered(this);const v=this.changeSummary;this.changeSummary=(m=this.createChangeSummary)===null||m===void 0?void 0:m.call(this),this._runFn(this,v)}}finally{h||(u=(0,g.tZ)())===null||u===void 0||u.handleAutorunFinished(this);for(const v of this.dependenciesToBeRemoved)v.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){this.state===3&&(this.state=1),this.updateCount++}endUpdate(){if(this.updateCount===1)do{if(this.state===1){this.state=3;for(const c of this.dependencies)if(c.reportChanges(),this.state===2)break}this._runIfNeeded()}while(this.state!==3);this.updateCount--,(0,k.Ft)(()=>this.updateCount>=0)}handlePossibleChange(c){this.state===3&&this.dependencies.has(c)&&!this.dependenciesToBeRemoved.has(c)&&(this.state=1)}handleChange(c,m){this.dependencies.has(c)&&!this.dependenciesToBeRemoved.has(c)&&(!this._handleChange||this._handleChange({changedObservable:c,change:m,didChange:C=>C===c},this.changeSummary))&&(this.state=2)}readObservable(c){if(this.disposed)return c.get();c.addObserver(this);const m=c.get();return this.dependencies.add(c),this.dependenciesToBeRemoved.delete(c),m}}(function(i){i.Observer=d})(x||(x={}));var a=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/utils.js");function s(i,c,m){return new Promise((u,C)=>{let h=!0,v=!1;const p=i.map(O=>({isFinished:c(O),error:m?m(O):!1,state:O})),b=x(O=>{const{isFinished:w,error:j,state:U}=p.read(O);(w||j)&&(h?v=!0:b.dispose(),j?C(j===!0?U:j):u(U))});h=!1,v&&b.dispose()})}!1&&(0,g.Br)(new g.jm)},"./node_modules/monaco-editor/esm/vs/base/common/observableInternal/base.js":function(pt,Me,e){e.d(Me,{Bm:function(){return M},FB:function(){return g},FY:function(){return m},N2:function(){return I},PO:function(){return i},Rn:function(){return d},X2:function(){return C},YY:function(){return s},ZK:function(){return f},fL:function(){return n},zV:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/debugName.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/logging.js");let k;function M(v){k=v}let L;function g(v){L=v}let x;function I(v){x=v}class S{get TChange(){return null}reportChanges(){this.get()}read(p){return p?p.readObservable(this):this.get()}map(p,b){const O=b===void 0?void 0:p,w=b===void 0?p:b;return x({owner:O,debugName:()=>{const j=(0,r.qQ)(w);if(j!==void 0)return j;const K=/^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(w.toString());if(K)return`${this.debugName}.${K[2]}`;if(!O)return`${this.debugName} (mapped)`}},j=>w(this.read(j),j))}recomputeInitiallyAndOnChange(p,b){return p.add(k(this,b)),this}}class f extends S{constructor(){super(...arguments),this.observers=new Set}addObserver(p){const b=this.observers.size;this.observers.add(p),b===0&&this.onFirstObserverAdded()}removeObserver(p){this.observers.delete(p)&&this.observers.size===0&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}}function d(v,p){const b=new c(v,p);try{v(b)}finally{b.finish()}}let a;function s(v){if(a)v(a);else{const p=new c(v,void 0);a=p;try{v(p)}finally{p.finish(),a=void 0}}}async function n(v,p){const b=new c(v,p);try{await v(b)}finally{b.finish()}}function i(v,p,b){v?p(v):d(p,b)}class c{constructor(p,b){var O;this._fn=p,this._getDebugName=b,this.updatingObservers=[],(O=(0,F.tZ)())===null||O===void 0||O.handleBeginTransaction(this)}getDebugName(){return this._getDebugName?this._getDebugName():(0,r.qQ)(this._fn)}updateObserver(p,b){this.updatingObservers.push({observer:p,observable:b}),p.beginUpdate(b)}finish(){var p;const b=this.updatingObservers;for(let O=0;O{},()=>`Setting ${this.debugName}`));try{const U=this._value;this._setValue(p),(w=(0,F.tZ)())===null||w===void 0||w.handleObservableChanged(this,{oldValue:U,newValue:p,change:O,didChange:!0,hadValue:!0});for(const K of this.observers)b.updateObserver(K,this),K.handleChange(this,O)}finally{j&&j.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(p){this._value=p}}function C(v,p){return typeof v=="string"?new h(void 0,v,p):new h(v,void 0,p)}class h extends u{_setValue(p){this._value!==p&&(this._value&&this._value.dispose(),this._value=p)}dispose(){var p;(p=this._value)===null||p===void 0||p.dispose()}}},"./node_modules/monaco-editor/esm/vs/base/common/observableInternal/debugName.js":function(pt,Me,e){e.d(Me,{nA:function(){return r},qQ:function(){return d}});class r{constructor(s,n,i){this.owner=s,this.debugNameSource=n,this.referenceFn=i}getDebugName(s){return M(s,this)}}const F=new Map,k=new WeakMap;function M(a,s){var n;const i=k.get(a);if(i)return i;const c=L(a,s);if(c){let m=(n=F.get(c))!==null&&n!==void 0?n:0;m++,F.set(c,m);const u=m===1?c:`${c}#${m}`;return k.set(a,u),u}}function L(a,s){const n=k.get(a);if(n)return n;const i=s.owner?S(s.owner)+".":"";let c;const m=s.debugNameSource;if(m!==void 0)if(typeof m=="function"){if(c=m(),c!==void 0)return i+c}else return i+m;const u=s.referenceFn;if(u!==void 0&&(c=d(u),c!==void 0))return i+c;if(s.owner!==void 0){const C=g(s.owner,a);if(C!==void 0)return i+C}}function g(a,s){for(const n in a)if(a[n]===s)return n}const x=new Map,I=new WeakMap;function S(a){var s;const n=I.get(a);if(n)return n;const i=f(a);let c=(s=x.get(i))!==null&&s!==void 0?s:0;c++,x.set(i,c);const m=c===1?i:`${i}#${c}`;return I.set(a,m),m}function f(a){const s=a.constructor;return s?s.name:"Object"}function d(a){const s=a.toString(),i=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(s),c=i?i[1]:void 0;return c?.trim()}},"./node_modules/monaco-editor/esm/vs/base/common/observableInternal/derived.js":function(pt,Me,e){e.d(Me,{C:function(){return I},Gy:function(){return S},a0:function(){return d},rm:function(){return f},un:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/assert.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/base.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/debugName.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/logging.js");const g=(s,n)=>s===n;function x(s,n){return n!==void 0?new a(new M.nA(s,void 0,n),n,void 0,void 0,void 0,g):new a(new M.nA(void 0,void 0,s),s,void 0,void 0,void 0,g)}function I(s,n){var i;return new a(new M.nA(s.owner,s.debugName,s.debugReferenceFn),n,void 0,void 0,s.onLastObserverRemoved,(i=s.equalityComparer)!==null&&i!==void 0?i:g)}(0,k.N2)(I);function S(s,n){var i;return new a(new M.nA(s.owner,s.debugName,void 0),n,s.createEmptyChangeSummary,s.handleChange,void 0,(i=s.equalityComparer)!==null&&i!==void 0?i:g)}function f(s,n){let i,c;n===void 0?(i=s,c=void 0):(c=s,i=n);const m=new F.Cm;return new a(new M.nA(c,void 0,i),u=>(m.clear(),i(u,m)),void 0,void 0,()=>m.dispose(),g)}function d(s,n){let i,c;n===void 0?(i=s,c=void 0):(c=s,i=n);const m=new F.Cm;return new a(new M.nA(c,void 0,i),u=>{m.clear();const C=i(u);return C&&m.add(C),C},void 0,void 0,()=>m.dispose(),g)}class a extends k.ZK{get debugName(){var n;return(n=this._debugNameData.getDebugName(this))!==null&&n!==void 0?n:"(anonymous)"}constructor(n,i,c,m,u=void 0,C){var h,v;super(),this._debugNameData=n,this._computeFn=i,this.createChangeSummary=c,this._handleChange=m,this._handleLastObserverRemoved=u,this._equalityComparator=C,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=(h=this.createChangeSummary)===null||h===void 0?void 0:h.call(this),(v=(0,L.tZ)())===null||v===void 0||v.handleDerivedCreated(this)}onLastObserverRemoved(){var n;this.state=0,this.value=void 0;for(const i of this.dependencies)i.removeObserver(this);this.dependencies.clear(),(n=this._handleLastObserverRemoved)===null||n===void 0||n.call(this)}get(){var n;if(this.observers.size===0){const i=this._computeFn(this,(n=this.createChangeSummary)===null||n===void 0?void 0:n.call(this));return this.onLastObserverRemoved(),i}else{do{if(this.state===1){for(const i of this.dependencies)if(i.reportChanges(),this.state===2)break}this.state===1&&(this.state=3),this._recomputeIfNeeded()}while(this.state!==3);return this.value}}_recomputeIfNeeded(){var n,i;if(this.state===3)return;const c=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=c;const m=this.state!==0,u=this.value;this.state=3;const C=this.changeSummary;this.changeSummary=(n=this.createChangeSummary)===null||n===void 0?void 0:n.call(this);try{this.value=this._computeFn(this,C)}finally{for(const v of this.dependenciesToBeRemoved)v.removeObserver(this);this.dependenciesToBeRemoved.clear()}const h=m&&!this._equalityComparator(u,this.value);if((i=(0,L.tZ)())===null||i===void 0||i.handleDerivedRecomputed(this,{oldValue:u,newValue:this.value,change:void 0,didChange:h,hadValue:m}),h)for(const v of this.observers)v.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(n){this.updateCount++;const i=this.updateCount===1;if(this.state===3&&(this.state=1,!i))for(const c of this.observers)c.handlePossibleChange(this);if(i)for(const c of this.observers)c.beginUpdate(this)}endUpdate(n){if(this.updateCount--,this.updateCount===0){const i=[...this.observers];for(const c of i)c.endUpdate(this)}(0,r.Ft)(()=>this.updateCount>=0)}handlePossibleChange(n){if(this.state===3&&this.dependencies.has(n)&&!this.dependenciesToBeRemoved.has(n)){this.state=1;for(const i of this.observers)i.handlePossibleChange(this)}}handleChange(n,i){if(this.dependencies.has(n)&&!this.dependenciesToBeRemoved.has(n)){const c=this._handleChange?this._handleChange({changedObservable:n,change:i,didChange:u=>u===n},this.changeSummary):!0,m=this.state===3;if(c&&(this.state===1||m)&&(this.state=2,m))for(const u of this.observers)u.handlePossibleChange(this)}}readObservable(n){n.addObserver(this);const i=n.get();return this.dependencies.add(n),this.dependenciesToBeRemoved.delete(n),i}addObserver(n){const i=!this.observers.has(n)&&this.updateCount>0;super.addObserver(n),i&&n.beginUpdate(this)}removeObserver(n){const i=this.observers.has(n)&&this.updateCount>0;super.removeObserver(n),i&&n.endUpdate(this)}}},"./node_modules/monaco-editor/esm/vs/base/common/observableInternal/logging.js":function(pt,Me,e){e.d(Me,{Br:function(){return F},jm:function(){return M},tZ:function(){return k}});let r;function F(n){r=n}function k(){return r}class M{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(i){return L([g(a("| ",this.indentation)),i])}formatInfo(i){return i.hadValue?i.didChange?[g(" "),I(S(i.oldValue,70),{color:"red",strikeThrough:!0}),g(" "),I(S(i.newValue,60),{color:"green"})]:[g(" (unchanged)")]:[g(" "),I(S(i.newValue,60),{color:"green"}),g(" (initial)")]}handleObservableChanged(i,c){console.log(...this.textToConsoleArgs([x("observable value changed"),I(i.debugName,{color:"BlueViolet"}),...this.formatInfo(c)]))}formatChanges(i){if(i.size!==0)return I(" (changed deps: "+[...i].map(c=>c.debugName).join(", ")+")",{color:"gray"})}handleDerivedCreated(i){const c=i.handleChange;this.changedObservablesSets.set(i,new Set),i.handleChange=(m,u)=>(this.changedObservablesSets.get(i).add(m),c.apply(i,[m,u]))}handleDerivedRecomputed(i,c){const m=this.changedObservablesSets.get(i);console.log(...this.textToConsoleArgs([x("derived recomputed"),I(i.debugName,{color:"BlueViolet"}),...this.formatInfo(c),this.formatChanges(m),{data:[{fn:i._computeFn}]}])),m.clear()}handleFromEventObservableTriggered(i,c){console.log(...this.textToConsoleArgs([x("observable from event triggered"),I(i.debugName,{color:"BlueViolet"}),...this.formatInfo(c),{data:[{fn:i._getValue}]}]))}handleAutorunCreated(i){const c=i.handleChange;this.changedObservablesSets.set(i,new Set),i.handleChange=(m,u)=>(this.changedObservablesSets.get(i).add(m),c.apply(i,[m,u]))}handleAutorunTriggered(i){const c=this.changedObservablesSets.get(i);console.log(...this.textToConsoleArgs([x("autorun"),I(i.debugName,{color:"BlueViolet"}),this.formatChanges(c),{data:[{fn:i._runFn}]}])),c.clear(),this.indentation++}handleAutorunFinished(i){this.indentation--}handleBeginTransaction(i){let c=i.getDebugName();c===void 0&&(c=""),console.log(...this.textToConsoleArgs([x("transaction"),I(c,{color:"BlueViolet"}),{data:[{fn:i._fn}]}])),this.indentation++}handleEndTransaction(){this.indentation--}}function L(n){const i=new Array,c=[];let m="";function u(h){if("length"in h)for(const v of h)v&&u(v);else"text"in h?(m+=`%c${h.text}`,i.push(h.style),h.data&&c.push(...h.data)):"data"in h&&c.push(...h.data)}u(n);const C=[m,...i];return C.push(...c),C}function g(n){return I(n,{color:"black"})}function x(n){return I(s(`${n}: `,10),{color:"black",bold:!0})}function I(n,i={color:"black"}){function c(u){return Object.entries(u).reduce((C,[h,v])=>`${C}${h}:${v};`,"")}const m={color:i.color};return i.strikeThrough&&(m["text-decoration"]="line-through"),i.bold&&(m["font-weight"]="bold"),{text:n,style:c(m)}}function S(n,i){switch(typeof n){case"number":return""+n;case"string":return n.length+2<=i?`"${n}"`:`"${n.substr(0,i-7)}"+...`;case"boolean":return n?"true":"false";case"undefined":return"undefined";case"object":return n===null?"null":Array.isArray(n)?f(n,i):d(n,i);case"symbol":return n.toString();case"function":return`[[Function${n.name?" "+n.name:""}]]`;default:return""+n}}function f(n,i){let c="[ ",m=!0;for(const u of n){if(m||(c+=", "),c.length-5>i){c+="...";break}m=!1,c+=`${S(u,i-c.length)}`}return c+=" ]",c}function d(n,i){let c="{ ",m=!0;for(const[u,C]of Object.entries(n)){if(m||(c+=", "),c.length-5>i){c+="...";break}m=!1,c+=`${u}: ${S(C,i-c.length)}`}return c+=" }",c}function a(n,i){let c="";for(let m=1;m<=i;m++)c+=n;return c}function s(n,i){for(;n.length{var O;const w=this._getValue(b),j=this.value,U=!this.hasValue||j!==w;let K=!1;U&&(this.value=w,this.hasValue&&(K=!0,(0,F.PO)(S.globalTransaction,G=>{var P;(P=(0,L.tZ)())===null||P===void 0||P.handleFromEventObservableTriggered(this,{oldValue:j,newValue:w,change:void 0,didChange:U,hadValue:this.hasValue});for(const A of this.observers)G.updateObserver(A,this),A.handleChange(this,void 0)},()=>{const G=this.getDebugName();return"Event fired"+(G?`: ${G}`:"")})),this.hasValue=!0),K||(O=(0,L.tZ)())===null||O===void 0||O.handleFromEventObservableTriggered(this,{oldValue:j,newValue:w,change:void 0,didChange:U,hadValue:this.hasValue})}}getDebugName(){return(0,k.qQ)(this._getValue)}get debugName(){const v=this.getDebugName();return"From Event"+(v?`: ${v}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this._getValue(void 0)}}(function(h){h.Observer=S;function v(p,b){let O=!1;S.globalTransaction===void 0&&(S.globalTransaction=p,O=!0);try{b()}finally{O&&(S.globalTransaction=void 0)}}h.batchEventsGlobally=v})(I||(I={}));function f(h,v){return new d(h,v)}class d extends F.ZK{constructor(v,p){super(),this.debugName=v,this.event=p,this.handleEvent=()=>{(0,F.Rn)(b=>{for(const O of this.observers)b.updateObserver(O,this),O.handleChange(this,void 0)},()=>this.debugName)}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}}function a(h){return typeof h=="string"?new s(h):new s(void 0,h)}class s extends F.ZK{get debugName(){var v;return(v=new k.nA(this._owner,this._debugName,void 0).getDebugName(this))!==null&&v!==void 0?v:"Observable Signal"}constructor(v,p){super(),this._debugName=v,this._owner=p}trigger(v,p){if(!v){(0,F.Rn)(b=>{this.trigger(b,p)},()=>`Trigger signal ${this.debugName}`);return}for(const b of this.observers)v.updateObserver(b,this),b.handleChange(this,p)}get(){}}function n(h){const v=new c(!1,void 0);return h.addObserver(v),(0,r.s)(()=>{h.removeObserver(v)})}(0,F.FB)(n);function i(h,v){const p=new c(!0,v);return h.addObserver(p),v?v(h.get()):h.reportChanges(),(0,r.s)(()=>{h.removeObserver(p)})}(0,F.Bm)(i);class c{constructor(v,p){this._forceRecompute=v,this._handleValue=p,this._counter=0}beginUpdate(v){this._counter++}endUpdate(v){this._counter--,this._counter===0&&this._forceRecompute&&(this._handleValue?this._handleValue(v.get()):v.reportChanges())}handlePossibleChange(v){}handleChange(v,p){}}function m(h){let v;return(0,M.un)(b=>(v=h(b,v),v))}function u(h,v,p,b){let O=new C(p,b);return(0,M.C)({debugReferenceFn:p,owner:h,onLastObserverRemoved:()=>{O.dispose(),O=new C(p)}},j=>(O.setItems(v.read(j)),O.getItems()))}class C{constructor(v,p){this._map=v,this._keySelector=p,this._cache=new Map,this._items=[]}dispose(){this._cache.forEach(v=>v.store.dispose()),this._cache.clear()}setItems(v){const p=[],b=new Set(this._cache.keys());for(const O of v){const w=this._keySelector?this._keySelector(O):O;let j=this._cache.get(w);if(j)b.delete(w);else{const U=new r.Cm;j={out:this._map(O,U),store:U},this._cache.set(w,j)}p.push(j.out)}for(const O of b)this._cache.get(O).store.dispose(),this._cache.delete(O);this._items=p}getItems(){return this._items}}},"./node_modules/monaco-editor/esm/vs/base/common/path.js":function(pt,Me,e){e.d(Me,{IN:function(){return h},LC:function(){return K},P8:function(){return U},S8:function(){return b},SA:function(){return p},V8:function(){return w},Vn:function(){return G},hd:function(){return O},pD:function(){return j}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/process.js");const F=65,k=97,M=90,L=122,g=46,x=47,I=92,S=58,f=63;class d extends Error{constructor(A,T,E){let W;typeof T=="string"&&T.indexOf("not ")===0?(W="must not be",T=T.replace(/^not /,"")):W="must be";const $=A.indexOf(".")!==-1?"property":"argument";let z=`The "${A}" ${$} ${W} of type ${T}`;z+=`. Received type ${typeof E}`,super(z),this.code="ERR_INVALID_ARG_TYPE"}}function a(P,A){if(P===null||typeof P!="object")throw new d(A,"Object",P)}function s(P,A){if(typeof P!="string")throw new d(A,"string",P)}const n=r.iD==="win32";function i(P){return P===x||P===I}function c(P){return P===x}function m(P){return P>=F&&P<=M||P>=k&&P<=L}function u(P,A,T,E){let W="",$=0,z=-1,J=0,B=0;for(let V=0;V<=P.length;++V){if(V2){const Y=W.lastIndexOf(T);Y===-1?(W="",$=0):(W=W.slice(0,Y),$=W.length-1-W.lastIndexOf(T)),z=V,J=0;continue}else if(W.length!==0){W="",$=0,z=V,J=0;continue}}A&&(W+=W.length>0?`${T}..`:"..",$=2)}else W.length>0?W+=`${T}${P.slice(z+1,V)}`:W=P.slice(z+1,V),$=V-z-1;z=V,J=0}else B===g&&J!==-1?++J:J=-1}return W}function C(P,A){a(A,"pathObject");const T=A.dir||A.root,E=A.base||`${A.name||""}${A.ext||""}`;return T?T===A.root?`${T}${E}`:`${T}${P}${E}`:E}const h={resolve(...P){let A="",T="",E=!1;for(let W=P.length-1;W>=-1;W--){let $;if(W>=0){if($=P[W],s($,"path"),$.length===0)continue}else A.length===0?$=r.bJ():($=r._K[`=${A}`]||r.bJ(),($===void 0||$.slice(0,2).toLowerCase()!==A.toLowerCase()&&$.charCodeAt(2)===I)&&($=`${A}\\`));const z=$.length;let J=0,B="",V=!1;const Y=$.charCodeAt(0);if(z===1)i(Y)&&(J=1,V=!0);else if(i(Y))if(V=!0,i($.charCodeAt(1))){let X=2,ie=X;for(;X2&&i($.charCodeAt(2))&&(V=!0,J=3));if(B.length>0)if(A.length>0){if(B.toLowerCase()!==A.toLowerCase())continue}else A=B;if(E){if(A.length>0)break}else if(T=`${$.slice(J)}\\${T}`,E=V,V&&A.length>0)break}return T=u(T,!E,"\\",i),E?`${A}\\${T}`:`${A}${T}`||"."},normalize(P){s(P,"path");const A=P.length;if(A===0)return".";let T=0,E,W=!1;const $=P.charCodeAt(0);if(A===1)return c($)?"\\":P;if(i($))if(W=!0,i(P.charCodeAt(1))){let J=2,B=J;for(;J2&&i(P.charCodeAt(2))&&(W=!0,T=3));let z=T0&&i(P.charCodeAt(A-1))&&(z+="\\"),E===void 0?W?`\\${z}`:z:W?`${E}\\${z}`:`${E}${z}`},isAbsolute(P){s(P,"path");const A=P.length;if(A===0)return!1;const T=P.charCodeAt(0);return i(T)||A>2&&m(T)&&P.charCodeAt(1)===S&&i(P.charCodeAt(2))},join(...P){if(P.length===0)return".";let A,T;for(let $=0;$0&&(A===void 0?A=T=z:A+=`\\${z}`)}if(A===void 0)return".";let E=!0,W=0;if(typeof T=="string"&&i(T.charCodeAt(0))){++W;const $=T.length;$>1&&i(T.charCodeAt(1))&&(++W,$>2&&(i(T.charCodeAt(2))?++W:E=!1))}if(E){for(;W=2&&(A=`\\${A.slice(W)}`)}return h.normalize(A)},relative(P,A){if(s(P,"from"),s(A,"to"),P===A)return"";const T=h.resolve(P),E=h.resolve(A);if(T===E||(P=T.toLowerCase(),A=E.toLowerCase(),P===A))return"";let W=0;for(;WW&&P.charCodeAt($-1)===I;)$--;const z=$-W;let J=0;for(;JJ&&A.charCodeAt(B-1)===I;)B--;const V=B-J,Y=zY){if(A.charCodeAt(J+ie)===I)return E.slice(J+ie+1);if(ie===2)return E.slice(J+ie)}z>Y&&(P.charCodeAt(W+ie)===I?X=ie:ie===2&&(X=3)),X===-1&&(X=0)}let re="";for(ie=W+X+1;ie<=$;++ie)(ie===$||P.charCodeAt(ie)===I)&&(re+=re.length===0?"..":"\\..");return J+=X,re.length>0?`${re}${E.slice(J,B)}`:(E.charCodeAt(J)===I&&++J,E.slice(J,B))},toNamespacedPath(P){if(typeof P!="string"||P.length===0)return P;const A=h.resolve(P);if(A.length<=2)return P;if(A.charCodeAt(0)===I){if(A.charCodeAt(1)===I){const T=A.charCodeAt(2);if(T!==f&&T!==g)return`\\\\?\\UNC\\${A.slice(2)}`}}else if(m(A.charCodeAt(0))&&A.charCodeAt(1)===S&&A.charCodeAt(2)===I)return`\\\\?\\${A}`;return P},dirname(P){s(P,"path");const A=P.length;if(A===0)return".";let T=-1,E=0;const W=P.charCodeAt(0);if(A===1)return i(W)?P:".";if(i(W)){if(T=E=1,i(P.charCodeAt(1))){let J=2,B=J;for(;J2&&i(P.charCodeAt(2))?3:2,E=T);let $=-1,z=!0;for(let J=A-1;J>=E;--J)if(i(P.charCodeAt(J))){if(!z){$=J;break}}else z=!1;if($===-1){if(T===-1)return".";$=T}return P.slice(0,$)},basename(P,A){A!==void 0&&s(A,"ext"),s(P,"path");let T=0,E=-1,W=!0,$;if(P.length>=2&&m(P.charCodeAt(0))&&P.charCodeAt(1)===S&&(T=2),A!==void 0&&A.length>0&&A.length<=P.length){if(A===P)return"";let z=A.length-1,J=-1;for($=P.length-1;$>=T;--$){const B=P.charCodeAt($);if(i(B)){if(!W){T=$+1;break}}else J===-1&&(W=!1,J=$+1),z>=0&&(B===A.charCodeAt(z)?--z===-1&&(E=$):(z=-1,E=J))}return T===E?E=J:E===-1&&(E=P.length),P.slice(T,E)}for($=P.length-1;$>=T;--$)if(i(P.charCodeAt($))){if(!W){T=$+1;break}}else E===-1&&(W=!1,E=$+1);return E===-1?"":P.slice(T,E)},extname(P){s(P,"path");let A=0,T=-1,E=0,W=-1,$=!0,z=0;P.length>=2&&P.charCodeAt(1)===S&&m(P.charCodeAt(0))&&(A=E=2);for(let J=P.length-1;J>=A;--J){const B=P.charCodeAt(J);if(i(B)){if(!$){E=J+1;break}continue}W===-1&&($=!1,W=J+1),B===g?T===-1?T=J:z!==1&&(z=1):T!==-1&&(z=-1)}return T===-1||W===-1||z===0||z===1&&T===W-1&&T===E+1?"":P.slice(T,W)},format:C.bind(null,"\\"),parse(P){s(P,"path");const A={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return A;const T=P.length;let E=0,W=P.charCodeAt(0);if(T===1)return i(W)?(A.root=A.dir=P,A):(A.base=A.name=P,A);if(i(W)){if(E=1,i(P.charCodeAt(1))){let X=2,ie=X;for(;X0&&(A.root=P.slice(0,E));let $=-1,z=E,J=-1,B=!0,V=P.length-1,Y=0;for(;V>=E;--V){if(W=P.charCodeAt(V),i(W)){if(!B){z=V+1;break}continue}J===-1&&(B=!1,J=V+1),W===g?$===-1?$=V:Y!==1&&(Y=1):$!==-1&&(Y=-1)}return J!==-1&&($===-1||Y===0||Y===1&&$===J-1&&$===z+1?A.base=A.name=P.slice(z,J):(A.name=P.slice(z,$),A.base=P.slice(z,J),A.ext=P.slice($,J))),z>0&&z!==E?A.dir=P.slice(0,z-1):A.dir=A.root,A},sep:"\\",delimiter:";",win32:null,posix:null},v=(()=>{if(n){const P=/\\/g;return()=>{const A=r.bJ().replace(P,"/");return A.slice(A.indexOf("/"))}}return()=>r.bJ()})(),p={resolve(...P){let A="",T=!1;for(let E=P.length-1;E>=-1&&!T;E--){const W=E>=0?P[E]:v();s(W,"path"),W.length!==0&&(A=`${W}/${A}`,T=W.charCodeAt(0)===x)}return A=u(A,!T,"/",c),T?`/${A}`:A.length>0?A:"."},normalize(P){if(s(P,"path"),P.length===0)return".";const A=P.charCodeAt(0)===x,T=P.charCodeAt(P.length-1)===x;return P=u(P,!A,"/",c),P.length===0?A?"/":T?"./":".":(T&&(P+="/"),A?`/${P}`:P)},isAbsolute(P){return s(P,"path"),P.length>0&&P.charCodeAt(0)===x},join(...P){if(P.length===0)return".";let A;for(let T=0;T0&&(A===void 0?A=E:A+=`/${E}`)}return A===void 0?".":p.normalize(A)},relative(P,A){if(s(P,"from"),s(A,"to"),P===A||(P=p.resolve(P),A=p.resolve(A),P===A))return"";const T=1,E=P.length,W=E-T,$=1,z=A.length-$,J=WJ){if(A.charCodeAt($+V)===x)return A.slice($+V+1);if(V===0)return A.slice($+V)}else W>J&&(P.charCodeAt(T+V)===x?B=V:V===0&&(B=0));let Y="";for(V=T+B+1;V<=E;++V)(V===E||P.charCodeAt(V)===x)&&(Y+=Y.length===0?"..":"/..");return`${Y}${A.slice($+B)}`},toNamespacedPath(P){return P},dirname(P){if(s(P,"path"),P.length===0)return".";const A=P.charCodeAt(0)===x;let T=-1,E=!0;for(let W=P.length-1;W>=1;--W)if(P.charCodeAt(W)===x){if(!E){T=W;break}}else E=!1;return T===-1?A?"/":".":A&&T===1?"//":P.slice(0,T)},basename(P,A){A!==void 0&&s(A,"ext"),s(P,"path");let T=0,E=-1,W=!0,$;if(A!==void 0&&A.length>0&&A.length<=P.length){if(A===P)return"";let z=A.length-1,J=-1;for($=P.length-1;$>=0;--$){const B=P.charCodeAt($);if(B===x){if(!W){T=$+1;break}}else J===-1&&(W=!1,J=$+1),z>=0&&(B===A.charCodeAt(z)?--z===-1&&(E=$):(z=-1,E=J))}return T===E?E=J:E===-1&&(E=P.length),P.slice(T,E)}for($=P.length-1;$>=0;--$)if(P.charCodeAt($)===x){if(!W){T=$+1;break}}else E===-1&&(W=!1,E=$+1);return E===-1?"":P.slice(T,E)},extname(P){s(P,"path");let A=-1,T=0,E=-1,W=!0,$=0;for(let z=P.length-1;z>=0;--z){const J=P.charCodeAt(z);if(J===x){if(!W){T=z+1;break}continue}E===-1&&(W=!1,E=z+1),J===g?A===-1?A=z:$!==1&&($=1):A!==-1&&($=-1)}return A===-1||E===-1||$===0||$===1&&A===E-1&&A===T+1?"":P.slice(A,E)},format:C.bind(null,"/"),parse(P){s(P,"path");const A={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return A;const T=P.charCodeAt(0)===x;let E;T?(A.root="/",E=1):E=0;let W=-1,$=0,z=-1,J=!0,B=P.length-1,V=0;for(;B>=E;--B){const Y=P.charCodeAt(B);if(Y===x){if(!J){$=B+1;break}continue}z===-1&&(J=!1,z=B+1),Y===g?W===-1?W=B:V!==1&&(V=1):W!==-1&&(V=-1)}if(z!==-1){const Y=$===0&&T?1:$;W===-1||V===0||V===1&&W===z-1&&W===$+1?A.base=A.name=P.slice(Y,z):(A.name=P.slice(Y,W),A.base=P.slice(Y,z),A.ext=P.slice(W,z))}return $>0?A.dir=P.slice(0,$-1):T&&(A.dir="/"),A},sep:"/",delimiter:":",win32:null,posix:null};p.win32=h.win32=h,p.posix=h.posix=p;const b=n?h.normalize:p.normalize,O=n?h.resolve:p.resolve,w=n?h.relative:p.relative,j=n?h.dirname:p.dirname,U=n?h.basename:p.basename,K=n?h.extname:p.extname,G=n?h.sep:p.sep},"./node_modules/monaco-editor/esm/vs/base/common/platform.js":function(pt,Me,e){e.d(Me,{BH:function(){return $},Fr:function(){return E},H8:function(){return ie},HZ:function(){return G},OS:function(){return B},UP:function(){return D},_p:function(){return J},cm:function(){return X},gm:function(){return re},ib:function(){return K},j9:function(){return U},lg:function(){return A},m0:function(){return he},nr:function(){return te},uF:function(){return w},un:function(){return T},zx:function(){return j}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F,k;const M="en";let L=!1,g=!1,x=!1,I=!1,S=!1,f=!1,d=!1,a=!1,s=!1,n=!1,i,c=M,m=null,u=null,C;const h=globalThis;let v;typeof h.vscode<"u"&&typeof h.vscode.process<"u"?v=h.vscode.process:typeof process<"u"&&typeof((F=process==null?void 0:process.versions)===null||F===void 0?void 0:F.node)=="string"&&(v=process);const p=typeof((k=v?.versions)===null||k===void 0?void 0:k.electron)=="string",b=p&&v?.type==="renderer";if(typeof v=="object"){L=v.platform==="win32",g=v.platform==="darwin",x=v.platform==="linux",I=x&&!!v.env.SNAP&&!!v.env.SNAP_REVISION,d=p,s=!!v.env.CI||!!v.env.BUILD_ARTIFACTSTAGINGDIRECTORY,i=M,c=M;const ve=v.env.VSCODE_NLS_CONFIG;if(ve)try{const Ce=JSON.parse(ve),Pe=Ce.availableLanguages["*"];i=Ce.locale,m=Ce.osLocale,c=Pe||M,u=Ce._translationsConfigFile}catch{}S=!0}else typeof navigator=="object"&&!b?(C=navigator.userAgent,L=C.indexOf("Windows")>=0,g=C.indexOf("Macintosh")>=0,a=(C.indexOf("Macintosh")>=0||C.indexOf("iPad")>=0||C.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,x=C.indexOf("Linux")>=0,n=C?.indexOf("Mobi")>=0,f=!0,i=r.AM(r.kg({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"))||M,c=i,m=navigator.language):console.error("Unable to resolve platform.");let O=0;g?O=1:L?O=3:x&&(O=2);const w=L,j=g,U=x,K=S,G=f,A=f&&typeof h.importScripts=="function"?h.origin:void 0,T=a,E=n,W=C,$=c,z=typeof h.postMessage=="function"&&!h.importScripts,J=(()=>{if(z){const ve=[];h.addEventListener("message",Pe=>{if(Pe.data&&Pe.data.vscodeScheduleAsyncWork)for(let _e=0,ee=ve.length;_e{const _e=++Ce;ve.push({id:_e,callback:Pe}),h.postMessage({vscodeScheduleAsyncWork:_e},"*")}}return ve=>setTimeout(ve)})(),B=g||a?2:L?1:3;let V=!0,Y=!1;function X(){if(!Y){Y=!0;const ve=new Uint8Array(2);ve[0]=1,ve[1]=2,V=new Uint16Array(ve.buffer)[0]===513}return V}const ie=!!(W&&W.indexOf("Chrome")>=0),re=!!(W&&W.indexOf("Firefox")>=0),te=!!(!ie&&W&&W.indexOf("Safari")>=0),D=!!(W&&W.indexOf("Edg/")>=0),he=!!(W&&W.indexOf("Android")>=0)},"./node_modules/monaco-editor/esm/vs/base/common/process.js":function(pt,Me,e){e.d(Me,{_K:function(){return L},bJ:function(){return M},iD:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");let F;const k=globalThis.vscode;if(typeof k<"u"&&typeof k.process<"u"){const x=k.process;F={get platform(){return x.platform},get arch(){return x.arch},get env(){return x.env},cwd(){return x.cwd()}}}else typeof process<"u"?F={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:F={get platform(){return r.uF?"win32":r.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const M=F.cwd,L=F.env,g=F.platform},"./node_modules/monaco-editor/esm/vs/base/common/range.js":function(pt,Me,e){e.d(Me,{Q:function(){return r}});var r;(function(F){function k(x,I){if(x.start>=I.end||I.start>=x.end)return{start:0,end:0};const S=Math.max(x.start,I.start),f=Math.min(x.end,I.end);return f-S<=0?{start:0,end:0}:{start:S,end:f}}F.intersect=k;function M(x){return x.end-x.start<=0}F.isEmpty=M;function L(x,I){return!M(k(x,I))}F.intersects=L;function g(x,I){const S=[],f={start:x.start,end:Math.min(I.start,x.end)},d={start:Math.max(I.end,x.start),end:x.end};return M(f)||S.push(f),M(d)||S.push(d),S}F.relativeComplement=g})(r||(r={}))},"./node_modules/monaco-editor/esm/vs/base/common/resources.js":function(pt,Me,e){e.d(Me,{B6:function(){return K},Fd:function(){return h},LC:function(){return m},P8:function(){return c},Pi:function(){return i},er:function(){return S},iZ:function(){return v},n4:function(){return a},o1:function(){return p},pD:function(){return u},su:function(){return x},uJ:function(){return C}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/extpath.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/path.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js");function x(G){return(0,g.I)(G,!0)}class I{constructor(P){this._ignorePathCasing=P}compare(P,A,T=!1){return P===A?0:(0,L.UD)(this.getComparisonKey(P,T),this.getComparisonKey(A,T))}isEqual(P,A,T=!1){return P===A?!0:!P||!A?!1:this.getComparisonKey(P,T)===this.getComparisonKey(A,T)}getComparisonKey(P,A=!1){return P.with({path:this._ignorePathCasing(P)?P.path.toLowerCase():void 0,fragment:A?null:void 0}).toString()}isEqualOrParent(P,A,T=!1){if(P.scheme===A.scheme){if(P.scheme===F.ny.file)return r._1(x(P),x(A),this._ignorePathCasing(P))&&P.query===A.query&&(T||P.fragment===A.fragment);if(O(P.authority,A.authority))return r._1(P.path,A.path,this._ignorePathCasing(P),"/")&&P.query===A.query&&(T||P.fragment===A.fragment)}return!1}joinPath(P,...A){return g.r.joinPath(P,...A)}basenameOrAuthority(P){return c(P)||P.authority}basename(P){return k.SA.basename(P.path)}extname(P){return k.SA.extname(P.path)}dirname(P){if(P.path.length===0)return P;let A;return P.scheme===F.ny.file?A=g.r.file(k.pD(x(P))).path:(A=k.SA.dirname(P.path),P.authority&&A.length&&A.charCodeAt(0)!==47&&(console.error(`dirname("${P.toString})) resulted in a relative path`),A="/")),P.with({path:A})}normalizePath(P){if(!P.path.length)return P;let A;return P.scheme===F.ny.file?A=g.r.file(k.S8(x(P))).path:A=k.SA.normalize(P.path),P.with({path:A})}relativePath(P,A){if(P.scheme!==A.scheme||!O(P.authority,A.authority))return;if(P.scheme===F.ny.file){const W=k.V8(x(P),x(A));return M.uF?r.TH(W):W}let T=P.path||"/";const E=A.path||"/";if(this._ignorePathCasing(P)){let W=0;for(const $=Math.min(T.length,E.length);W<$&&!(T.charCodeAt(W)!==E.charCodeAt(W)&&T.charAt(W).toLowerCase()!==E.charAt(W).toLowerCase());W++);T=E.substr(0,W)+T.substr(W)}return k.SA.relative(T,E)}resolvePath(P,A){if(P.scheme===F.ny.file){const T=g.r.file(k.hd(x(P),A));return P.with({authority:T.authority,path:T.path})}return A=r.kb(A),P.with({path:k.SA.resolve(P.path,A)})}isAbsolutePath(P){return!!P.path&&P.path[0]==="/"}isEqualAuthority(P,A){return P===A||P!==void 0&&A!==void 0&&(0,L.Q_)(P,A)}hasTrailingPathSeparator(P,A=k.Vn){if(P.scheme===F.ny.file){const T=x(P);return T.length>r.Zn(T).length&&T[T.length-1]===A}else{const T=P.path;return T.length>1&&T.charCodeAt(T.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(P.fsPath)}}removeTrailingPathSeparator(P,A=k.Vn){return w(P,A)?P.with({path:P.path.substr(0,P.path.length-1)}):P}addTrailingPathSeparator(P,A=k.Vn){let T=!1;if(P.scheme===F.ny.file){const E=x(P);T=E!==void 0&&E.length===r.Zn(E).length&&E[E.length-1]===A}else{A="/";const E=P.path;T=E.length===1&&E.charCodeAt(E.length-1)===47}return!T&&!w(P,A)?P.with({path:P.path+"/"}):P}}const S=new I(()=>!1),f=new I(G=>G.scheme===F.ny.file?!M.j9:!0),d=new I(G=>!0),a=S.isEqual.bind(S),s=S.isEqualOrParent.bind(S),n=S.getComparisonKey.bind(S),i=S.basenameOrAuthority.bind(S),c=S.basename.bind(S),m=S.extname.bind(S),u=S.dirname.bind(S),C=S.joinPath.bind(S),h=S.normalizePath.bind(S),v=S.relativePath.bind(S),p=S.resolvePath.bind(S),b=S.isAbsolutePath.bind(S),O=S.isEqualAuthority.bind(S),w=S.hasTrailingPathSeparator.bind(S),j=S.removeTrailingPathSeparator.bind(S),U=S.addTrailingPathSeparator.bind(S);var K;(function(G){G.META_DATA_LABEL="label",G.META_DATA_DESCRIPTION="description",G.META_DATA_SIZE="size",G.META_DATA_MIME="mime";function P(A){const T=new Map;A.path.substring(A.path.indexOf(";")+1,A.path.lastIndexOf(";")).split(";").forEach($=>{const[z,J]=$.split(":");z&&J&&T.set(z,J)});const W=A.path.substring(0,A.path.indexOf(";"));return W&&T.set(G.META_DATA_MIME,W),T}G.parseMetaData=P})(K||(K={}))},"./node_modules/monaco-editor/esm/vs/base/common/scrollable.js":function(pt,Me,e){e.d(Me,{yE:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");class k{constructor(a,s,n,i,c,m,u){this._forceIntegerValues=a,this._scrollStateBrand=void 0,this._forceIntegerValues&&(s=s|0,n=n|0,i=i|0,c=c|0,m=m|0,u=u|0),this.rawScrollLeft=i,this.rawScrollTop=u,s<0&&(s=0),i+s>n&&(i=n-s),i<0&&(i=0),c<0&&(c=0),u+c>m&&(u=m-c),u<0&&(u=0),this.width=s,this.scrollWidth=n,this.scrollLeft=i,this.height=c,this.scrollHeight=m,this.scrollTop=u}equals(a){return this.rawScrollLeft===a.rawScrollLeft&&this.rawScrollTop===a.rawScrollTop&&this.width===a.width&&this.scrollWidth===a.scrollWidth&&this.scrollLeft===a.scrollLeft&&this.height===a.height&&this.scrollHeight===a.scrollHeight&&this.scrollTop===a.scrollTop}withScrollDimensions(a,s){return new k(this._forceIntegerValues,typeof a.width<"u"?a.width:this.width,typeof a.scrollWidth<"u"?a.scrollWidth:this.scrollWidth,s?this.rawScrollLeft:this.scrollLeft,typeof a.height<"u"?a.height:this.height,typeof a.scrollHeight<"u"?a.scrollHeight:this.scrollHeight,s?this.rawScrollTop:this.scrollTop)}withScrollPosition(a){return new k(this._forceIntegerValues,this.width,this.scrollWidth,typeof a.scrollLeft<"u"?a.scrollLeft:this.rawScrollLeft,this.height,this.scrollHeight,typeof a.scrollTop<"u"?a.scrollTop:this.rawScrollTop)}createScrollEvent(a,s){const n=this.width!==a.width,i=this.scrollWidth!==a.scrollWidth,c=this.scrollLeft!==a.scrollLeft,m=this.height!==a.height,u=this.scrollHeight!==a.scrollHeight,C=this.scrollTop!==a.scrollTop;return{inSmoothScrolling:s,oldWidth:a.width,oldScrollWidth:a.scrollWidth,oldScrollLeft:a.scrollLeft,width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,oldHeight:a.height,oldScrollHeight:a.scrollHeight,oldScrollTop:a.scrollTop,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:n,scrollWidthChanged:i,scrollLeftChanged:c,heightChanged:m,scrollHeightChanged:u,scrollTopChanged:C}}}class M extends F.jG{constructor(a){super(),this._scrollableBrand=void 0,this._onScroll=this._register(new r.vl),this.onScroll=this._onScroll.event,this._smoothScrollDuration=a.smoothScrollDuration,this._scheduleAtNextAnimationFrame=a.scheduleAtNextAnimationFrame,this._state=new k(a.forceIntegerValues,0,0,0,0,0,0),this._smoothScrolling=null}dispose(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),super.dispose()}setSmoothScrollDuration(a){this._smoothScrollDuration=a}validateScrollPosition(a){return this._state.withScrollPosition(a)}getScrollDimensions(){return this._state}setScrollDimensions(a,s){var n;const i=this._state.withScrollDimensions(a,s);this._setState(i,!!this._smoothScrolling),(n=this._smoothScrolling)===null||n===void 0||n.acceptScrollDimensions(this._state)}getFutureScrollPosition(){return this._smoothScrolling?this._smoothScrolling.to:this._state}getCurrentScrollPosition(){return this._state}setScrollPositionNow(a){const s=this._state.withScrollPosition(a);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(s,!1)}setScrollPositionSmooth(a,s){if(this._smoothScrollDuration===0)return this.setScrollPositionNow(a);if(this._smoothScrolling){a={scrollLeft:typeof a.scrollLeft>"u"?this._smoothScrolling.to.scrollLeft:a.scrollLeft,scrollTop:typeof a.scrollTop>"u"?this._smoothScrolling.to.scrollTop:a.scrollTop};const n=this._state.withScrollPosition(a);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;let i;s?i=new I(this._smoothScrolling.from,n,this._smoothScrolling.startTime,this._smoothScrolling.duration):i=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration),this._smoothScrolling.dispose(),this._smoothScrolling=i}else{const n=this._state.withScrollPosition(a);this._smoothScrolling=I.start(this._state,n,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}hasPendingScrollAnimation(){return!!this._smoothScrolling}_performSmoothScrolling(){if(!this._smoothScrolling)return;const a=this._smoothScrolling.tick(),s=this._state.withScrollPosition(a);if(this._setState(s,!0),!!this._smoothScrolling){if(a.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(()=>{this._smoothScrolling&&(this._smoothScrolling.animationFrameDisposable=null,this._performSmoothScrolling())})}}_setState(a,s){const n=this._state;n.equals(a)||(this._state=a,this._onScroll.fire(this._state.createScrollEvent(n,s)))}}class L{constructor(a,s,n){this.scrollLeft=a,this.scrollTop=s,this.isDone=n}}function g(d,a){const s=a-d;return function(n){return d+s*f(n)}}function x(d,a,s){return function(n){return n2.5*n){let c,m;return a=oe.length?ne:oe[Le]})}function x(le){return le.replace(/[<>"'&]/g,oe=>{switch(oe){case"<":return"<";case">":return">";case'"':return""";case"'":return"'";case"&":return"&"}return oe})}function I(le){return le.replace(/[<>&]/g,function(oe){switch(oe){case"<":return"<";case">":return">";case"&":return"&";default:return oe}})}function S(le){return le.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function f(le,oe=" "){const ne=d(le,oe);return a(ne,oe)}function d(le,oe){if(!le||!oe)return le;const ne=oe.length;if(ne===0||le.length===0)return le;let de=0;for(;le.indexOf(oe,de)===de;)de=de+ne;return le.substring(de)}function a(le,oe){if(!le||!oe)return le;const ne=oe.length,de=le.length;if(ne===0||de===0)return le;let Le=de,We=-1;for(;We=le.lastIndexOf(oe,Le-1),!(We===-1||We+ne!==Le);){if(We===0)return"";Le=We}return le.substring(0,Le)}function s(le){return le.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function n(le){return le.replace(/\*/g,"")}function i(le,oe,ne={}){if(!le)throw new Error("Cannot create regex from empty string");oe||(le=S(le)),ne.wholeWord&&(/\B/.test(le.charAt(0))||(le="\\b"+le),/\B/.test(le.charAt(le.length-1))||(le=le+"\\b"));let de="";return ne.global&&(de+="g"),ne.matchCase||(de+="i"),ne.multiline&&(de+="m"),ne.unicode&&(de+="u"),new RegExp(le,de)}function c(le){return le.source==="^"||le.source==="^$"||le.source==="$"||le.source==="^\\s*$"?!1:!!(le.exec("")&&le.lastIndex===0)}function m(le){return le.split(/\r\n|\r|\n/)}function u(le){var oe;const ne=[],de=le.split(/(\r\n|\r|\n)/);for(let Le=0;Le=0;ne--){const de=le.charCodeAt(ne);if(de!==32&&de!==9)return ne}return-1}function p(le,oe){return leoe?1:0}function b(le,oe,ne=0,de=le.length,Le=0,We=oe.length){for(;neEt)return 1}const we=de-ne,Ue=We-Le;return weUe?1:0}function O(le,oe){return w(le,oe,0,le.length,0,oe.length)}function w(le,oe,ne=0,de=le.length,Le=0,We=oe.length){for(;ne=128||Et>=128)return b(le.toLowerCase(),oe.toLowerCase(),ne,de,Le,We);U(lt)&&(lt-=32),U(Et)&&(Et-=32);const Kt=lt-Et;if(Kt!==0)return Kt}const we=de-ne,Ue=We-Le;return weUe?1:0}function j(le){return le>=48&&le<=57}function U(le){return le>=97&&le<=122}function K(le){return le>=65&&le<=90}function G(le,oe){return le.length===oe.length&&w(le,oe)===0}function P(le,oe){const ne=oe.length;return oe.length>le.length?!1:w(le,oe,0,ne)===0}function A(le,oe){const ne=Math.min(le.length,oe.length);let de;for(de=0;de1){const de=le.charCodeAt(oe-2);if(E(de))return $(de,ne)}return ne}class B{get offset(){return this._offset}constructor(oe,ne=0){this._str=oe,this._len=oe.length,this._offset=ne}setOffset(oe){this._offset=oe}prevCodePoint(){const oe=J(this._str,this._offset);return this._offset-=oe>=65536?2:1,oe}nextCodePoint(){const oe=z(this._str,this._len,this._offset);return this._offset+=oe>=65536?2:1,oe}eol(){return this._offset>=this._len}}class V{get offset(){return this._iterator.offset}constructor(oe,ne=0){this._iterator=new B(oe,ne)}nextGraphemeLength(){const oe=q.getInstance(),ne=this._iterator,de=ne.offset;let Le=oe.getGraphemeBreakType(ne.nextCodePoint());for(;!ne.eol();){const We=ne.offset,we=oe.getGraphemeBreakType(ne.nextCodePoint());if(Qe(Le,we)){ne.setOffset(We);break}Le=we}return ne.offset-de}prevGraphemeLength(){const oe=q.getInstance(),ne=this._iterator,de=ne.offset;let Le=oe.getGraphemeBreakType(ne.prevCodePoint());for(;ne.offset>0;){const We=ne.offset,we=oe.getGraphemeBreakType(ne.prevCodePoint());if(Qe(we,Le)){ne.setOffset(We);break}Le=we}return de-ne.offset}eol(){return this._iterator.eol()}}function Y(le,oe){return new V(le,oe).nextGraphemeLength()}function X(le,oe){return new V(le,oe).prevGraphemeLength()}function ie(le,oe){oe>0&&W(le.charCodeAt(oe))&&oe--;const ne=oe+Y(le,oe);return[ne-X(le,ne),ne]}let re;function te(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function D(le){return re||(re=te()),re.test(le)}const he=/^[\t\n\r\x20-\x7E]*$/;function ve(le){return he.test(le)}const Ce=/[\u2028\u2029]/;function Pe(le){return Ce.test(le)}function _e(le){return le>=11904&&le<=55215||le>=63744&&le<=64255||le>=65281&&le<=65374}function ee(le){return le>=127462&&le<=127487||le===8986||le===8987||le===9200||le===9203||le>=9728&&le<=10175||le===11088||le===11093||le>=127744&&le<=128591||le>=128640&&le<=128764||le>=128992&&le<=129008||le>=129280&&le<=129535||le>=129648&&le<=129782}const De="\uFEFF";function Te(le){return!!(le&&le.length>0&&le.charCodeAt(0)===65279)}function He(le,oe=!1){return le?(oe&&(le=le.replace(/\\./g,"")),le.toLowerCase()!==le):!1}function qe(le){return le=le%(2*26),le<26?String.fromCharCode(97+le):String.fromCharCode(65+le-26)}function Qe(le,oe){return le===0?oe!==5&&oe!==7:le===2&&oe===3?!1:le===4||le===2||le===3||oe===4||oe===2||oe===3?!0:!(le===8&&(oe===8||oe===9||oe===11||oe===12)||(le===11||le===9)&&(oe===9||oe===10)||(le===12||le===10)&&oe===10||oe===5||oe===13||oe===7||le===1||le===13&&oe===14||le===6&&oe===6)}class q{static getInstance(){return q._INSTANCE||(q._INSTANCE=new q),q._INSTANCE}constructor(){this._data=ye()}getGraphemeBreakType(oe){if(oe<32)return oe===10?3:oe===13?2:4;if(oe<127)return 0;const ne=this._data,de=ne.length/3;let Le=1;for(;Le<=de;)if(oene[3*Le+1])Le=2*Le+1;else return ne[3*Le+2];return 0}}q._INSTANCE=null;function ye(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function ge(le,oe){if(le===0)return 0;const ne=be(le,oe);if(ne!==void 0)return ne;const de=new B(oe,le);return de.prevCodePoint(),de.offset}function be(le,oe){const ne=new B(oe,le);let de=ne.prevCodePoint();for(;Se(de)||de===65039||de===8419;){if(ne.offset===0)return;de=ne.prevCodePoint()}if(!ee(de))return;let Le=ne.offset;return Le>0&&ne.prevCodePoint()===8205&&(Le=ne.offset),Le}function Se(le){return 127995<=le&&le<=127999}const ae="\xA0";class me{static getInstance(oe){return k.cache.get(Array.from(oe))}static getLocales(){return k._locales.value}constructor(oe){this.confusableDictionary=oe}isAmbiguous(oe){return this.confusableDictionary.has(oe)}getPrimaryConfusable(oe){return this.confusableDictionary.get(oe)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}k=me,me.ambiguousCharacterData=new F.d(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),me.cache=new r.o(le=>{function oe(Et){const Kt=new Map;for(let Zt=0;Zt!Et.startsWith("_")&&Et in Le);We.length===0&&(We=["_default"]);let we;for(const Et of We){const Kt=oe(Le[Et]);we=de(we,Kt)}const Ue=oe(Le._common),lt=ne(Ue,we);return new k(lt)}),me._locales=new F.d(()=>Object.keys(k.ambiguousCharacterData.value).filter(le=>!le.startsWith("_")));class fe{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(fe.getRawData())),this._data}static isInvisibleCharacter(oe){return fe.getData().has(oe)}static get codePoints(){return fe.getData()}}fe._data=void 0},"./node_modules/monaco-editor/esm/vs/base/common/symbols.js":function(pt,Me,e){e.d(Me,{h:function(){return r}});const r=Symbol("MicrotaskDelay")},"./node_modules/monaco-editor/esm/vs/base/common/ternarySearchTree.js":function(pt,Me,e){e.d(Me,{cB:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");class F{constructor(){this._value="",this._pos=0}reset(S){return this._value=S,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos=0;f--,this._valueLen--){const d=this._value.charCodeAt(f);if(!(d===47||this._splitOnBackslash&&d===92))break}return this.next()}hasNext(){return this._to!1,f=()=>!1){return new x(new L(S,f))}static forStrings(){return new x(new F)}static forConfigKeys(){return new x(new k)}constructor(S){this._iter=S}clear(){this._root=void 0}set(S,f){const d=this._iter.reset(S);let a;this._root||(this._root=new g,this._root.segment=d.value());const s=[];for(a=this._root;;){const i=d.cmp(a.segment);if(i>0)a.left||(a.left=new g,a.left.segment=d.value()),s.push([-1,a]),a=a.left;else if(i<0)a.right||(a.right=new g,a.right.segment=d.value()),s.push([1,a]),a=a.right;else if(d.hasNext())d.next(),a.mid||(a.mid=new g,a.mid.segment=d.value()),s.push([0,a]),a=a.mid;else break}const n=a.value;a.value=f,a.key=S;for(let i=s.length-1;i>=0;i--){const c=s[i][1];c.updateHeight();const m=c.balanceFactor();if(m<-1||m>1){const u=s[i][0],C=s[i+1][0];if(u===1&&C===1)s[i][1]=c.rotateLeft();else if(u===-1&&C===-1)s[i][1]=c.rotateRight();else if(u===1&&C===-1)c.right=s[i+1][1]=s[i+1][1].rotateRight(),s[i][1]=c.rotateLeft();else if(u===-1&&C===1)c.left=s[i+1][1]=s[i+1][1].rotateLeft(),s[i][1]=c.rotateRight();else throw new Error;if(i>0)switch(s[i-1][0]){case-1:s[i-1][1].left=s[i][1];break;case 1:s[i-1][1].right=s[i][1];break;case 0:s[i-1][1].mid=s[i][1];break}else this._root=s[0][1]}}return n}get(S){var f;return(f=this._getNode(S))===null||f===void 0?void 0:f.value}_getNode(S){const f=this._iter.reset(S);let d=this._root;for(;d;){const a=f.cmp(d.segment);if(a>0)d=d.left;else if(a<0)d=d.right;else if(f.hasNext())f.next(),d=d.mid;else break}return d}has(S){const f=this._getNode(S);return!(f?.value===void 0&&f?.mid===void 0)}delete(S){return this._delete(S,!1)}deleteSuperstr(S){return this._delete(S,!0)}_delete(S,f){var d;const a=this._iter.reset(S),s=[];let n=this._root;for(;n;){const i=a.cmp(n.segment);if(i>0)s.push([-1,n]),n=n.left;else if(i<0)s.push([1,n]),n=n.right;else if(a.hasNext())a.next(),s.push([0,n]),n=n.mid;else break}if(n){if(f?(n.left=void 0,n.mid=void 0,n.right=void 0,n.height=1):(n.key=void 0,n.value=void 0),!n.mid&&!n.value)if(n.left&&n.right){const i=this._min(n.right);if(i.key){const{key:c,value:m,segment:u}=i;this._delete(i.key,!1),n.key=c,n.value=m,n.segment=u}}else{const i=(d=n.left)!==null&&d!==void 0?d:n.right;if(s.length>0){const[c,m]=s[s.length-1];switch(c){case-1:m.left=i;break;case 0:m.mid=i;break;case 1:m.right=i;break}}else this._root=i}for(let i=s.length-1;i>=0;i--){const c=s[i][1];c.updateHeight();const m=c.balanceFactor();if(m>1?(c.right.balanceFactor()>=0||(c.right=c.right.rotateRight()),s[i][1]=c.rotateLeft()):m<-1&&(c.left.balanceFactor()<=0||(c.left=c.left.rotateLeft()),s[i][1]=c.rotateRight()),i>0)switch(s[i-1][0]){case-1:s[i-1][1].left=s[i][1];break;case 1:s[i-1][1].right=s[i][1];break;case 0:s[i-1][1].mid=s[i][1];break}else this._root=s[0][1]}}}_min(S){for(;S.left;)S=S.left;return S}findSubstr(S){const f=this._iter.reset(S);let d=this._root,a;for(;d;){const s=f.cmp(d.segment);if(s>0)d=d.left;else if(s<0)d=d.right;else if(f.hasNext())f.next(),a=d.value||a,d=d.mid;else break}return d&&d.value||a}findSuperstr(S){return this._findSuperstrOrElement(S,!1)}_findSuperstrOrElement(S,f){const d=this._iter.reset(S);let a=this._root;for(;a;){const s=d.cmp(a.segment);if(s>0)a=a.left;else if(s<0)a=a.right;else if(d.hasNext())d.next(),a=a.mid;else return a.mid?this._entries(a.mid):f?a.value:void 0}}forEach(S){for(const[f,d]of this)S(d,f)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(S){const f=[];return this._dfsEntries(S,f),f[Symbol.iterator]()}_dfsEntries(S,f){S&&(S.left&&this._dfsEntries(S.left,f),S.value&&f.push([S.key,S.value]),S.mid&&this._dfsEntries(S.mid,f),S.right&&this._dfsEntries(S.right,f))}}},"./node_modules/monaco-editor/esm/vs/base/common/themables.js":function(pt,Me,e){e.d(Me,{L:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),F;(function(M){function L(g){return g&&typeof g=="object"&&typeof g.id=="string"}M.isThemeColor=L})(F||(F={}));var k;(function(M){M.iconNameSegment="[A-Za-z0-9]+",M.iconNameExpression="[A-Za-z0-9-]+",M.iconModifierExpression="~[A-Za-z]+",M.iconNameCharacter="[A-Za-z0-9~-]";const L=new RegExp(`^(${M.iconNameExpression})(${M.iconModifierExpression})?$`);function g(c){const m=L.exec(c.id);if(!m)return g(r.W.error);const[,u,C]=m,h=["codicon","codicon-"+u];return C&&h.push("codicon-modifier-"+C.substring(1)),h}M.asClassNameArray=g;function x(c){return g(c).join(" ")}M.asClassName=x;function I(c){return"."+g(c).join(".")}M.asCSSSelector=I;function S(c){return c&&typeof c=="object"&&typeof c.id=="string"&&(typeof c.color>"u"||F.isThemeColor(c.color))}M.isThemeIcon=S;const f=new RegExp(`^\\$\\((${M.iconNameExpression}(?:${M.iconModifierExpression})?)\\)$`);function d(c){const m=f.exec(c);if(!m)return;const[,u]=m;return{id:u}}M.fromString=d;function a(c){return{id:c}}M.fromId=a;function s(c,m){let u=c.id;const C=u.lastIndexOf("~");return C!==-1&&(u=u.substring(0,C)),m&&(u=`${u}~${m}`),{id:u}}M.modify=s;function n(c){const m=c.id.lastIndexOf("~");if(m!==-1)return c.id.substring(m+1)}M.getModifier=n;function i(c,m){var u,C;return c.id===m.id&&((u=c.color)===null||u===void 0?void 0:u.id)===((C=m.color)===null||C===void 0?void 0:C.id)}M.isEqual=i})(k||(k={}))},"./node_modules/monaco-editor/esm/vs/base/common/types.js":function(pt,Me,e){e.d(Me,{Et:function(){return M},Gv:function(){return F},Kg:function(){return r},Lm:function(){return g},O9:function(){return I},Tn:function(){return a},b0:function(){return x},eU:function(){return d},iu:function(){return k},j:function(){return f},jx:function(){return s},xZ:function(){return L},z:function(){return S}});function r(i){return typeof i=="string"}function F(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)&&!(i instanceof RegExp)&&!(i instanceof Date)}function k(i){const c=Object.getPrototypeOf(Uint8Array);return typeof i=="object"&&i instanceof c}function M(i){return typeof i=="number"&&!isNaN(i)}function L(i){return!!i&&typeof i[Symbol.iterator]=="function"}function g(i){return i===!0||i===!1}function x(i){return typeof i>"u"}function I(i){return!S(i)}function S(i){return x(i)||i===null}function f(i,c){if(!i)throw new Error(c?`Unexpected type, expected '${c}'`:"Unexpected type")}function d(i){if(S(i))throw new Error("Assertion Failed: argument is undefined or null");return i}function a(i){return typeof i=="function"}function s(i,c){const m=Math.min(i.length,c.length);for(let u=0;u255?255:k|0}function F(k){return k<0?0:k>4294967295?4294967295:k|0}},"./node_modules/monaco-editor/esm/vs/base/common/uri.js":function(pt,Me,e){e.d(Me,{I:function(){return u},r:function(){return a}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/path.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");const k=/^\w[\w\d+.-]*$/,M=/^\//,L=/^\/\//;function g(b,O){if(!b.scheme&&O)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${b.authority}", path: "${b.path}", query: "${b.query}", fragment: "${b.fragment}"}`);if(b.scheme&&!k.test(b.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(b.path){if(b.authority){if(!M.test(b.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(L.test(b.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function x(b,O){return!b&&!O?"file":b}function I(b,O){switch(b){case"https":case"http":case"file":O?O[0]!==f&&(O=f+O):O=f;break}return O}const S="",f="/",d=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class a{static isUri(O){return O instanceof a?!0:O?typeof O.authority=="string"&&typeof O.fragment=="string"&&typeof O.path=="string"&&typeof O.query=="string"&&typeof O.scheme=="string"&&typeof O.fsPath=="string"&&typeof O.with=="function"&&typeof O.toString=="function":!1}constructor(O,w,j,U,K,G=!1){typeof O=="object"?(this.scheme=O.scheme||S,this.authority=O.authority||S,this.path=O.path||S,this.query=O.query||S,this.fragment=O.fragment||S):(this.scheme=x(O,G),this.authority=w||S,this.path=I(this.scheme,j||S),this.query=U||S,this.fragment=K||S,g(this,G))}get fsPath(){return u(this,!1)}with(O){if(!O)return this;let{scheme:w,authority:j,path:U,query:K,fragment:G}=O;return w===void 0?w=this.scheme:w===null&&(w=S),j===void 0?j=this.authority:j===null&&(j=S),U===void 0?U=this.path:U===null&&(U=S),K===void 0?K=this.query:K===null&&(K=S),G===void 0?G=this.fragment:G===null&&(G=S),w===this.scheme&&j===this.authority&&U===this.path&&K===this.query&&G===this.fragment?this:new n(w,j,U,K,G)}static parse(O,w=!1){const j=d.exec(O);return j?new n(j[2]||S,p(j[4]||S),p(j[5]||S),p(j[7]||S),p(j[9]||S),w):new n(S,S,S,S,S)}static file(O){let w=S;if(F.uF&&(O=O.replace(/\\/g,f)),O[0]===f&&O[1]===f){const j=O.indexOf(f,2);j===-1?(w=O.substring(2),O=f):(w=O.substring(2,j),O=O.substring(j)||f)}return new n("file",w,O,S,S)}static from(O,w){return new n(O.scheme,O.authority,O.path,O.query,O.fragment,w)}static joinPath(O,...w){if(!O.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let j;return F.uF&&O.scheme==="file"?j=a.file(r.IN.join(u(O,!0),...w)).path:j=r.SA.join(O.path,...w),O.with({path:j})}toString(O=!1){return C(this,O)}toJSON(){return this}static revive(O){var w,j;if(O){if(O instanceof a)return O;{const U=new n(O);return U._formatted=(w=O.external)!==null&&w!==void 0?w:null,U._fsPath=O._sep===s&&(j=O.fsPath)!==null&&j!==void 0?j:null,U}}else return O}}const s=F.uF?1:void 0;class n extends a{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=u(this,!1)),this._fsPath}toString(O=!1){return O?C(this,!0):(this._formatted||(this._formatted=C(this,!1)),this._formatted)}toJSON(){const O={$mid:1};return this._fsPath&&(O.fsPath=this._fsPath,O._sep=s),this._formatted&&(O.external=this._formatted),this.path&&(O.path=this.path),this.scheme&&(O.scheme=this.scheme),this.authority&&(O.authority=this.authority),this.query&&(O.query=this.query),this.fragment&&(O.fragment=this.fragment),O}}const i={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function c(b,O,w){let j,U=-1;for(let K=0;K=97&&G<=122||G>=65&&G<=90||G>=48&&G<=57||G===45||G===46||G===95||G===126||O&&G===47||w&&G===91||w&&G===93||w&&G===58)U!==-1&&(j+=encodeURIComponent(b.substring(U,K)),U=-1),j!==void 0&&(j+=b.charAt(K));else{j===void 0&&(j=b.substr(0,K));const P=i[G];P!==void 0?(U!==-1&&(j+=encodeURIComponent(b.substring(U,K)),U=-1),j+=P):U===-1&&(U=K)}}return U!==-1&&(j+=encodeURIComponent(b.substring(U))),j!==void 0?j:b}function m(b){let O;for(let w=0;w1&&b.scheme==="file"?w=`//${b.authority}${b.path}`:b.path.charCodeAt(0)===47&&(b.path.charCodeAt(1)>=65&&b.path.charCodeAt(1)<=90||b.path.charCodeAt(1)>=97&&b.path.charCodeAt(1)<=122)&&b.path.charCodeAt(2)===58?O?w=b.path.substr(1):w=b.path[1].toLowerCase()+b.path.substr(2):w=b.path,F.uF&&(w=w.replace(/\//g,"\\")),w}function C(b,O){const w=O?m:c;let j="",{scheme:U,authority:K,path:G,query:P,fragment:A}=b;if(U&&(j+=U,j+=":"),(K||U==="file")&&(j+=f,j+=f),K){let T=K.indexOf("@");if(T!==-1){const E=K.substr(0,T);K=K.substr(T+1),T=E.lastIndexOf(":"),T===-1?j+=w(E,!1,!1):(j+=w(E.substr(0,T),!1,!1),j+=":",j+=w(E.substr(T+1),!1,!0)),j+="@"}K=K.toLowerCase(),T=K.lastIndexOf(":"),T===-1?j+=w(K,!1,!0):(j+=w(K.substr(0,T),!1,!0),j+=K.substr(T))}if(G){if(G.length>=3&&G.charCodeAt(0)===47&&G.charCodeAt(2)===58){const T=G.charCodeAt(1);T>=65&&T<=90&&(G=`/${String.fromCharCode(T+32)}:${G.substr(3)}`)}else if(G.length>=2&&G.charCodeAt(1)===58){const T=G.charCodeAt(0);T>=65&&T<=90&&(G=`${String.fromCharCode(T+32)}:${G.substr(2)}`)}j+=w(G,!0,!1)}return P&&(j+="?",j+=w(P,!1,!1)),A&&(j+="#",j+=O?A:c(A,!1,!1)),j}function h(b){try{return decodeURIComponent(b)}catch{return b.length>3?b.substr(0,3)+h(b.substr(3)):b}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function p(b){return b.match(v)?b.replace(v,O=>h(O)):b}},"./node_modules/monaco-editor/esm/vs/base/common/uuid.js":function(pt,Me,e){e.d(Me,{b:function(){return r}});const r=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let F;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?F=crypto.getRandomValues.bind(crypto):F=function(L){for(let g=0;g{if(i&&typeof i=="object"||typeof i=="function")for(let u of M(i))!L.call(n,u)&&u!==c&&F(n,u,{get:()=>i[u],enumerable:!(m=k(i,u))||m.enumerable});return n},x=(n,i,c)=>(g(n,i,"default"),c&&g(c,i,"default")),I={};x(I,r);var S={},f={},d=class sd{static getOrCreate(i){return f[i]||(f[i]=new sd(i)),f[i]}constructor(i){this._languageId=i,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((c,m)=>{this._lazyLoadPromiseResolve=c,this._lazyLoadPromiseReject=m})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,S[this._languageId].loader().then(i=>this._lazyLoadPromiseResolve(i),i=>this._lazyLoadPromiseReject(i))),this._lazyLoadPromise}};async function a(n){await d.getOrCreate(n).load(),I.editor.createModel("",n).dispose()}function s(n){const i=n.id;S[i]=n,I.languages.register(n);const c=d.getOrCreate(i);I.languages.registerTokensProviderFactory(i,{create:async()=>(await c.load()).language}),I.languages.onLanguageEncountered(i,async()=>{const m=await c.load();I.languages.setLanguageConfiguration(i,m.conf)})}},"./node_modules/monaco-editor/esm/vs/basic-languages/abap/abap.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>e.e("vendors-node_modules_monaco-editor_esm_vs_basic-languages_abap_abap_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/abap/abap.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/apex/apex.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_apex_apex_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/apex/apex.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/azcli/azcli.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_azcli_azcli_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/azcli/azcli.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/bat/bat.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_bat_bat_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/bat/bat.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/bicep/bicep.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_bicep_bicep_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/bicep/bicep.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/cameligo/cameligo.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_cameligo_cameligo_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/cameligo/cameligo.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/clojure/clojure.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_clojure_clojure_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/clojure/clojure.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_coffee_coffee_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/coffee/coffee.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_cpp_cpp_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js"))}),(0,r.K)({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_cpp_cpp_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/csharp/csharp.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_csharp_csharp_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/csharp/csharp.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/csp/csp.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_csp_csp_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/csp/csp.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/css/css.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_css_css_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/css/css.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/cypher/cypher.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_cypher_cypher_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/cypher/cypher.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/dart/dart.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_dart_dart_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/dart/dart.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_dockerfile_dockerfile_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/dockerfile/dockerfile.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/ecl/ecl.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_ecl_ecl_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/ecl/ecl.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/elixir/elixir.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_elixir_elixir_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/elixir/elixir.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/flow9/flow9.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_flow9_flow9_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/flow9/flow9.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>e.e("vendors-node_modules_monaco-editor_esm_vs_basic-languages_freemarker2_freemarker2_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.js")).then(F=>F.TagAutoInterpolationDollar)}),(0,r.K)({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>e.e("vendors-node_modules_monaco-editor_esm_vs_basic-languages_freemarker2_freemarker2_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.js")).then(F=>F.TagAngleInterpolationDollar)}),(0,r.K)({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>e.e("vendors-node_modules_monaco-editor_esm_vs_basic-languages_freemarker2_freemarker2_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.js")).then(F=>F.TagBracketInterpolationDollar)}),(0,r.K)({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>e.e("vendors-node_modules_monaco-editor_esm_vs_basic-languages_freemarker2_freemarker2_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.js")).then(F=>F.TagAngleInterpolationBracket)}),(0,r.K)({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>e.e("vendors-node_modules_monaco-editor_esm_vs_basic-languages_freemarker2_freemarker2_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.js")).then(F=>F.TagBracketInterpolationBracket)}),(0,r.K)({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>e.e("vendors-node_modules_monaco-editor_esm_vs_basic-languages_freemarker2_freemarker2_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.js")).then(F=>F.TagAutoInterpolationDollar)}),(0,r.K)({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>e.e("vendors-node_modules_monaco-editor_esm_vs_basic-languages_freemarker2_freemarker2_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/freemarker2/freemarker2.js")).then(F=>F.TagAutoInterpolationBracket)})},"./node_modules/monaco-editor/esm/vs/basic-languages/fsharp/fsharp.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_fsharp_fsharp_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/fsharp/fsharp.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/go/go.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_go_go_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/go/go.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/graphql/graphql.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_graphql_graphql_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/graphql/graphql.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/handlebars/handlebars.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_handlebars_handlebars_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/handlebars/handlebars.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/hcl/hcl.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_hcl_hcl_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/hcl/hcl.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/html/html.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_html_html_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/html/html.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/ini/ini.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_ini_ini_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/ini/ini.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/java/java.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_java_java_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/java/java.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Promise.all([e.e("-"),e.e("node_modules_monaco-editor_esm_vs_basic-languages_javascript_javascript_js")]).then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/javascript/javascript.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/julia/julia.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_julia_julia_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/julia/julia.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/kotlin/kotlin.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_kotlin_kotlin_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/kotlin/kotlin.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/less/less.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_less_less_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/less/less.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/lexon/lexon.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_lexon_lexon_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/lexon/lexon.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/liquid/liquid.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_liquid_liquid_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/liquid/liquid.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/lua/lua.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_lua_lua_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/lua/lua.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/m3/m3.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_m3_m3_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/m3/m3.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/markdown/markdown.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_markdown_markdown_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/markdown/markdown.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/mdx/mdx.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_mdx_mdx_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/mdx/mdx.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/mips/mips.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_mips_mips_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/mips/mips.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/msdax/msdax.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_msdax_msdax_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/msdax/msdax.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/mysql/mysql.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_mysql_mysql_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/mysql/mysql.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/objective-c/objective-c.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_objective-c_objective-c_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/objective-c/objective-c.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/pascal/pascal.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_pascal_pascal_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/pascal/pascal.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_pascaligo_pascaligo_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/pascaligo/pascaligo.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/perl/perl.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_perl_perl_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/perl/perl.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/pgsql/pgsql.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_pgsql_pgsql_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/pgsql/pgsql.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/php/php.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_php_php_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/php/php.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/pla/pla.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"pla",extensions:[".pla"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_pla_pla_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/pla/pla.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/postiats/postiats.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_postiats_postiats_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/postiats/postiats.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/powerquery/powerquery.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>e.e("vendors-node_modules_monaco-editor_esm_vs_basic-languages_powerquery_powerquery_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/powerquery/powerquery.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/powershell/powershell.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_powershell_powershell_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/powershell/powershell.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/protobuf/protobuf.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_protobuf_protobuf_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/protobuf/protobuf.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/pug/pug.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_pug_pug_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/pug/pug.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/python/python.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_python_python_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/python/python.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/qsharp/qsharp.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_qsharp_qsharp_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/qsharp/qsharp.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/r/r.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_r_r_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/r/r.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/razor/razor.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_razor_razor_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/razor/razor.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/redis/redis.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_redis_redis_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/redis/redis.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/redshift/redshift.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_redshift_redshift_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/redshift/redshift.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_restructuredtext_restructuredtext_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/restructuredtext/restructuredtext.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/ruby/ruby.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_ruby_ruby_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/ruby/ruby.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/rust/rust.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_rust_rust_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/rust/rust.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/sb/sb.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_sb_sb_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/sb/sb.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/scala/scala.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_scala_scala_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/scala/scala.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/scheme/scheme.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_scheme_scheme_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/scheme/scheme.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/scss/scss.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_scss_scss_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/scss/scss.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/shell/shell.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_shell_shell_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/shell/shell.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/solidity/solidity.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>e.e("vendors-node_modules_monaco-editor_esm_vs_basic-languages_solidity_solidity_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/solidity/solidity.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/sophia/sophia.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_sophia_sophia_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/sophia/sophia.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/sparql/sparql.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_sparql_sparql_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/sparql/sparql.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/sql/sql.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_sql_sql_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/sql/sql.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/st/st.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_st_st_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/st/st.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/swift/swift.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_swift_swift_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/swift/swift.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_systemverilog_systemverilog_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.js"))}),(0,r.K)({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_systemverilog_systemverilog_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/tcl/tcl.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_tcl_tcl_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/tcl/tcl.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/twig/twig.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_twig_twig_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/twig/twig.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>e.e("-").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/typescript/typescript.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/vb/vb.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_vb_vb_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/vb/vb.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/wgsl/wgsl.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_wgsl_wgsl_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/wgsl/wgsl.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/xml/xml.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\e.e("node_modules_monaco-editor_esm_vs_basic-languages_xml_xml_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/xml/xml.js"))})},"./node_modules/monaco-editor/esm/vs/basic-languages/yaml/yaml.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/basic-languages/_.contribution.js");(0,r.K)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>e.e("node_modules_monaco-editor_esm_vs_basic-languages_yaml_yaml_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/basic-languages/yaml/yaml.js"))})},"./node_modules/monaco-editor/esm/vs/editor/browser/config/domFontInfo.js":function(pt,Me,e){e.d(Me,{M:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/fastDomNode.js");function F(k,M){k instanceof r.D?(k.setFontFamily(M.getMassagedFontFamily()),k.setFontWeight(M.fontWeight),k.setFontSize(M.fontSize),k.setFontFeatureSettings(M.fontFeatureSettings),k.setFontVariationSettings(M.fontVariationSettings),k.setLineHeight(M.lineHeight),k.setLetterSpacing(M.letterSpacing)):(k.style.fontFamily=M.getMassagedFontFamily(),k.style.fontWeight=M.fontWeight,k.style.fontSize=M.fontSize+"px",k.style.fontFeatureSettings=M.fontFeatureSettings,k.style.fontVariationSettings=M.fontVariationSettings,k.style.lineHeight=M.lineHeight+"px",k.style.letterSpacing=M.letterSpacing+"px")}},"./node_modules/monaco-editor/esm/vs/editor/browser/config/elementSizeObserver.js":function(pt,Me,e){e.d(Me,{u:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js");class M extends r.jG{constructor(g,x){super(),this._onDidChange=this._register(new F.vl),this.onDidChange=this._onDidChange.event,this._referenceDomElement=g,this._width=-1,this._height=-1,this._resizeObserver=null,this.measureReferenceDomElement(!1,x)}dispose(){this.stopObserving(),super.dispose()}getWidth(){return this._width}getHeight(){return this._height}startObserving(){if(!this._resizeObserver&&this._referenceDomElement){let g=null;const x=()=>{g?this.observe({width:g.width,height:g.height}):this.observe()};let I=!1,S=!1;const f=()=>{if(I&&!S)try{I=!1,S=!0,x()}finally{(0,k.PG)((0,k.zk)(this._referenceDomElement),()=>{S=!1,f()})}};this._resizeObserver=new ResizeObserver(d=>{d&&d[0]&&d[0].contentRect?g={width:d[0].contentRect.width,height:d[0].contentRect.height}:g=null,I=!0,f()}),this._resizeObserver.observe(this._referenceDomElement)}}stopObserving(){this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}observe(g){this.measureReferenceDomElement(!0,g)}measureReferenceDomElement(g,x){let I=0,S=0;x?(I=x.width,S=x.height):this._referenceDomElement&&(I=this._referenceDomElement.clientWidth,S=this._referenceDomElement.clientHeight),I=Math.max(5,I),S=Math.max(5,S),(this._width!==I||this._height!==S)&&(this._width=I,this._height=S,g&&this._onDidChange.fire())}}},"./node_modules/monaco-editor/esm/vs/editor/browser/config/fontMeasurements.js":function(pt,Me,e){e.d(Me,{T:function(){return s}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/pixelRatio.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/domFontInfo.js");class g{constructor(i,c){this.chr=i,this.type=c,this.width=0}fulfill(i){this.width=i}}class x{constructor(i,c){this._bareFontInfo=i,this._requests=c,this._container=null,this._testElements=null}read(i){this._createDomElements(),i.document.body.appendChild(this._container),this._readFromDomElements(),i.document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const i=document.createElement("div");i.style.position="absolute",i.style.top="-50000px",i.style.width="50000px";const c=document.createElement("div");(0,L.M)(c,this._bareFontInfo),i.appendChild(c);const m=document.createElement("div");(0,L.M)(m,this._bareFontInfo),m.style.fontWeight="bold",i.appendChild(m);const u=document.createElement("div");(0,L.M)(u,this._bareFontInfo),u.style.fontStyle="italic",i.appendChild(u);const C=[];for(const h of this._requests){let v;h.type===0&&(v=c),h.type===2&&(v=m),h.type===1&&(v=u),v.appendChild(document.createElement("br"));const p=document.createElement("span");x._render(p,h),v.appendChild(p),C.push(p)}this._container=i,this._testElements=C}static _render(i,c){if(c.chr===" "){let m="\xA0";for(let u=0;u<8;u++)m+=m;i.innerText=m}else{let m=c.chr;for(let u=0;u<8;u++)m+=m;i.textContent=m}}_readFromDomElements(){for(let i=0,c=this._requests.length;i{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings(i)},5e3))}_evictUntrustedReadings(i){const c=this._ensureCache(i),m=c.getValues();let u=!1;for(const C of m)C.isTrusted||(u=!0,c.remove(C));u&&this._onDidChange.fire()}readFontInfo(i,c){const m=this._ensureCache(i);if(!m.has(c)){let u=this._actualReadFontInfo(i,c);(u.typicalHalfwidthCharacterWidth<=2||u.typicalFullwidthCharacterWidth<=2||u.spaceWidth<=2||u.maxDigitWidth<=2)&&(u=new f.YJ({pixelRatio:F.c.getInstance(i).value,fontFamily:u.fontFamily,fontWeight:u.fontWeight,fontSize:u.fontSize,fontFeatureSettings:u.fontFeatureSettings,fontVariationSettings:u.fontVariationSettings,lineHeight:u.lineHeight,letterSpacing:u.letterSpacing,isMonospace:u.isMonospace,typicalHalfwidthCharacterWidth:Math.max(u.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(u.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:u.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(u.spaceWidth,5),middotWidth:Math.max(u.middotWidth,5),wsmiddotWidth:Math.max(u.wsmiddotWidth,5),maxDigitWidth:Math.max(u.maxDigitWidth,5)},!1)),this._writeToCache(i,c,u)}return m.get(c)}_createRequest(i,c,m,u){const C=new g(i,c);return m.push(C),u?.push(C),C}_actualReadFontInfo(i,c){const m=[],u=[],C=this._createRequest("n",0,m,u),h=this._createRequest("\uFF4D",0,m,null),v=this._createRequest(" ",0,m,u),p=this._createRequest("0",0,m,u),b=this._createRequest("1",0,m,u),O=this._createRequest("2",0,m,u),w=this._createRequest("3",0,m,u),j=this._createRequest("4",0,m,u),U=this._createRequest("5",0,m,u),K=this._createRequest("6",0,m,u),G=this._createRequest("7",0,m,u),P=this._createRequest("8",0,m,u),A=this._createRequest("9",0,m,u),T=this._createRequest("\u2192",0,m,u),E=this._createRequest("\uFFEB",0,m,null),W=this._createRequest("\xB7",0,m,u),$=this._createRequest("\u2E31",0,m,null),z="|/-_ilm%";for(let X=0,ie=z.length;X.001){B=!1;break}}let Y=!0;return B&&E.width!==V&&(Y=!1),E.width>T.width&&(Y=!1),new f.YJ({pixelRatio:F.c.getInstance(i).value,fontFamily:c.fontFamily,fontWeight:c.fontWeight,fontSize:c.fontSize,fontFeatureSettings:c.fontFeatureSettings,fontVariationSettings:c.fontVariationSettings,lineHeight:c.lineHeight,letterSpacing:c.letterSpacing,isMonospace:B,typicalHalfwidthCharacterWidth:C.width,typicalFullwidthCharacterWidth:h.width,canUseHalfwidthRightwardsArrow:Y,spaceWidth:v.width,middotWidth:W.width,wsmiddotWidth:$.width,maxDigitWidth:J},!0)}}class a{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(i){const c=i.getId();return!!this._values[c]}get(i){const c=i.getId();return this._values[c]}put(i,c){const m=i.getId();this._keys[m]=i,this._values[m]=c}remove(i){const c=i.getId();delete this._keys[c],delete this._values[c]}getValues(){return Object.keys(this._keys).map(i=>this._values[i])}}const s=new d},"./node_modules/monaco-editor/esm/vs/editor/browser/config/tabFocus.js":function(pt,Me,e){e.d(Me,{M:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js");class F{constructor(){this._tabFocus=!1,this._onDidChangeTabFocus=new r.vl,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}getTabFocusMode(){return this._tabFocus}setTabFocusMode(L){this._tabFocus=L,this._onDidChangeTabFocus.fire(this._tabFocus)}}const k=new F},"./node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaInput.js":function(pt,Me,e){e.d(Me,{$D:function(){return m},Eq:function(){return u},M0:function(){return b},Mz:function(){return p},No:function(){return v},bs:function(){return C}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/event.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),L=e("./node_modules/monaco-editor/esm/vs/base/browser/performance.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/mime.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaState.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),i=function(O,w,j,U){var K=arguments.length,G=K<3?w:U===null?U=Object.getOwnPropertyDescriptor(w,j):U,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(O,w,j,U);else for(var A=O.length-1;A>=0;A--)(P=O[A])&&(G=(K<3?P(G):K>3?P(w,j,G):P(w,j))||G);return K>3&&G&&Object.defineProperty(w,j,G),G},c=function(O,w){return function(j,U){w(j,U,O)}},m;(function(O){O.Tap="-monaco-textarea-synthetic-tap"})(m||(m={}));const u={forceCopyWithSyntaxHighlighting:!1};class C{constructor(){this._lastState=null}set(w,j){this._lastState={lastCopiedValue:w,data:j}}get(w){return this._lastState&&this._lastState.lastCopiedValue===w?this._lastState.data:(this._lastState=null,null)}}C.INSTANCE=new C;class h{constructor(){this._lastTypeTextLength=0}handleCompositionUpdate(w){w=w||"";const j={text:w,replacePrevCharCnt:this._lastTypeTextLength,replaceNextCharCnt:0,positionDelta:0};return this._lastTypeTextLength=w.length,j}}let v=class extends I.jG{get textAreaState(){return this._textAreaState}constructor(w,j,U,K,G,P){super(),this._host=w,this._textArea=j,this._OS=U,this._browser=K,this._accessibilityService=G,this._logService=P,this._onFocus=this._register(new x.vl),this.onFocus=this._onFocus.event,this._onBlur=this._register(new x.vl),this.onBlur=this._onBlur.event,this._onKeyDown=this._register(new x.vl),this.onKeyDown=this._onKeyDown.event,this._onKeyUp=this._register(new x.vl),this.onKeyUp=this._onKeyUp.event,this._onCut=this._register(new x.vl),this.onCut=this._onCut.event,this._onPaste=this._register(new x.vl),this.onPaste=this._onPaste.event,this._onType=this._register(new x.vl),this.onType=this._onType.event,this._onCompositionStart=this._register(new x.vl),this.onCompositionStart=this._onCompositionStart.event,this._onCompositionUpdate=this._register(new x.vl),this.onCompositionUpdate=this._onCompositionUpdate.event,this._onCompositionEnd=this._register(new x.vl),this.onCompositionEnd=this._onCompositionEnd.event,this._onSelectionChangeRequest=this._register(new x.vl),this.onSelectionChangeRequest=this._onSelectionChangeRequest.event,this._asyncFocusGainWriteScreenReaderContent=this._register(new I.HE),this._asyncTriggerCut=this._register(new g.uC(()=>this._onCut.fire(),0)),this._textAreaState=d._O.EMPTY,this._selectionChangeListener=null,this._accessibilityService.isScreenReaderOptimized()&&this.writeNativeTextAreaContent("ctor"),this._register(x.Jh.runAndSubscribe(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>{this._accessibilityService.isScreenReaderOptimized()&&!this._asyncFocusGainWriteScreenReaderContent.value?this._asyncFocusGainWriteScreenReaderContent.value=this._register(new g.uC(()=>this.writeNativeTextAreaContent("asyncFocusGain"),0)):this._asyncFocusGainWriteScreenReaderContent.clear()})),this._hasFocus=!1,this._currentComposition=null;let A=null;this._register(this._textArea.onKeyDown(T=>{const E=new M.Z(T);(E.keyCode===114||this._currentComposition&&E.keyCode===1)&&E.stopPropagation(),E.equals(9)&&E.preventDefault(),A=E,this._onKeyDown.fire(E)})),this._register(this._textArea.onKeyUp(T=>{const E=new M.Z(T);this._onKeyUp.fire(E)})),this._register(this._textArea.onCompositionStart(T=>{d.Hf&&console.log("[compositionstart]",T);const E=new h;if(this._currentComposition){this._currentComposition=E;return}if(this._currentComposition=E,this._OS===2&&A&&A.equals(114)&&this._textAreaState.selectionStart===this._textAreaState.selectionEnd&&this._textAreaState.selectionStart>0&&this._textAreaState.value.substr(this._textAreaState.selectionStart-1,1)===T.data&&(A.code==="ArrowRight"||A.code==="ArrowLeft")){d.Hf&&console.log("[compositionstart] Handling long press case on macOS + arrow key",T),E.handleCompositionUpdate("x"),this._onCompositionStart.fire({data:T.data});return}if(this._browser.isAndroid){this._onCompositionStart.fire({data:T.data});return}this._onCompositionStart.fire({data:T.data})})),this._register(this._textArea.onCompositionUpdate(T=>{d.Hf&&console.log("[compositionupdate]",T);const E=this._currentComposition;if(!E)return;if(this._browser.isAndroid){const $=d._O.readFromTextArea(this._textArea,this._textAreaState),z=d._O.deduceAndroidCompositionInput(this._textAreaState,$);this._textAreaState=$,this._onType.fire(z),this._onCompositionUpdate.fire(T);return}const W=E.handleCompositionUpdate(T.data);this._textAreaState=d._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(W),this._onCompositionUpdate.fire(T)})),this._register(this._textArea.onCompositionEnd(T=>{d.Hf&&console.log("[compositionend]",T);const E=this._currentComposition;if(!E)return;if(this._currentComposition=null,this._browser.isAndroid){const $=d._O.readFromTextArea(this._textArea,this._textAreaState),z=d._O.deduceAndroidCompositionInput(this._textAreaState,$);this._textAreaState=$,this._onType.fire(z),this._onCompositionEnd.fire();return}const W=E.handleCompositionUpdate(T.data);this._textAreaState=d._O.readFromTextArea(this._textArea,this._textAreaState),this._onType.fire(W),this._onCompositionEnd.fire()})),this._register(this._textArea.onInput(T=>{if(d.Hf&&console.log("[input]",T),this._textArea.setIgnoreSelectionChangeTime("received input event"),this._currentComposition)return;const E=d._O.readFromTextArea(this._textArea,this._textAreaState),W=d._O.deduceInput(this._textAreaState,E,this._OS===2);W.replacePrevCharCnt===0&&W.text.length===1&&(f.pc(W.text.charCodeAt(0))||W.text.charCodeAt(0)===127)||(this._textAreaState=E,(W.text!==""||W.replacePrevCharCnt!==0||W.replaceNextCharCnt!==0||W.positionDelta!==0)&&this._onType.fire(W))})),this._register(this._textArea.onCut(T=>{this._textArea.setIgnoreSelectionChangeTime("received cut event"),this._ensureClipboardGetsEditorSelection(T),this._asyncTriggerCut.schedule()})),this._register(this._textArea.onCopy(T=>{this._ensureClipboardGetsEditorSelection(T)})),this._register(this._textArea.onPaste(T=>{if(this._textArea.setIgnoreSelectionChangeTime("received paste event"),T.preventDefault(),!T.clipboardData)return;let[E,W]=p.getTextData(T.clipboardData);E&&(W=W||C.INSTANCE.get(E),this._onPaste.fire({text:E,metadata:W}))})),this._register(this._textArea.onFocus(()=>{const T=this._hasFocus;this._setHasFocus(!0),this._accessibilityService.isScreenReaderOptimized()&&this._browser.isSafari&&!T&&this._hasFocus&&(this._asyncFocusGainWriteScreenReaderContent.value||(this._asyncFocusGainWriteScreenReaderContent.value=new g.uC(()=>this.writeNativeTextAreaContent("asyncFocusGain"),0)),this._asyncFocusGainWriteScreenReaderContent.value.schedule())})),this._register(this._textArea.onBlur(()=>{this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("blurWithoutCompositionEnd"),this._onCompositionEnd.fire()),this._setHasFocus(!1)})),this._register(this._textArea.onSyntheticTap(()=>{this._browser.isAndroid&&this._currentComposition&&(this._currentComposition=null,this.writeNativeTextAreaContent("tapWithoutCompositionEnd"),this._onCompositionEnd.fire())}))}_installSelectionChangeListener(){let w=0;return F.ko(this._textArea.ownerDocument,"selectionchange",j=>{if(L.p.onSelectionChange(),!this._hasFocus||this._currentComposition||!this._browser.isChrome)return;const U=Date.now(),K=U-w;if(w=U,K<5)return;const G=U-this._textArea.getIgnoreSelectionChangeTime();if(this._textArea.resetSelectionChangeTime(),G<100||!this._textAreaState.selection)return;const P=this._textArea.getValue();if(this._textAreaState.value!==P)return;const A=this._textArea.getSelectionStart(),T=this._textArea.getSelectionEnd();if(this._textAreaState.selectionStart===A&&this._textAreaState.selectionEnd===T)return;const E=this._textAreaState.deduceEditorPosition(A),W=this._host.deduceModelPosition(E[0],E[1],E[2]),$=this._textAreaState.deduceEditorPosition(T),z=this._host.deduceModelPosition($[0],$[1],$[2]),J=new a.L(W.lineNumber,W.column,z.lineNumber,z.column);this._onSelectionChangeRequest.fire(J)})}dispose(){super.dispose(),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)}focusTextArea(){this._setHasFocus(!0),this.refreshFocusState()}isFocused(){return this._hasFocus}refreshFocusState(){this._setHasFocus(this._textArea.hasFocus())}_setHasFocus(w){this._hasFocus!==w&&(this._hasFocus=w,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&this.writeNativeTextAreaContent("focusgain"),this._hasFocus?this._onFocus.fire():this._onBlur.fire())}_setAndWriteTextAreaState(w,j){this._hasFocus||(j=j.collapseSelection()),j.writeToTextArea(w,this._textArea,this._hasFocus),this._textAreaState=j}writeNativeTextAreaContent(w){!this._accessibilityService.isScreenReaderOptimized()&&w==="render"||this._currentComposition||(this._logService.trace(`writeTextAreaState(reason: ${w})`),this._setAndWriteTextAreaState(w,this._host.getScreenReaderContent()))}_ensureClipboardGetsEditorSelection(w){const j=this._host.getDataToCopy(),U={version:1,isFromEmptySelection:j.isFromEmptySelection,multicursorText:j.multicursorText,mode:j.mode};C.INSTANCE.set(this._browser.isFirefox?j.text.replace(/\r\n/g,` `):j.text,U),w.preventDefault(),w.clipboardData&&p.setTextData(w.clipboardData,j.text,j.html,U)}};v=i([c(4,s.j),c(5,n.rr)],v);const p={getTextData(O){const w=O.getData(S.K.text);let j=null;const U=O.getData("vscode-editor-data");if(typeof U=="string")try{j=JSON.parse(U),j.version!==1&&(j=null)}catch{}return w.length===0&&j===null&&O.files.length>0?[Array.prototype.slice.call(O.files,0).map(G=>G.name).join(` `),null]:[w,j]},setTextData(O,w,j,U){O.setData(S.K.text,w),typeof j=="string"&&O.setData("text/html",j),O.setData("vscode-editor-data",JSON.stringify(U))}};class b extends I.jG{get ownerDocument(){return this._actual.ownerDocument}constructor(w){super(),this._actual=w,this.onKeyDown=this._register(new k.f(this._actual,"keydown")).event,this.onKeyUp=this._register(new k.f(this._actual,"keyup")).event,this.onCompositionStart=this._register(new k.f(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new k.f(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new k.f(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new k.f(this._actual,"beforeinput")).event,this.onInput=this._register(new k.f(this._actual,"input")).event,this.onCut=this._register(new k.f(this._actual,"cut")).event,this.onCopy=this._register(new k.f(this._actual,"copy")).event,this.onPaste=this._register(new k.f(this._actual,"paste")).event,this.onFocus=this._register(new k.f(this._actual,"focus")).event,this.onBlur=this._register(new k.f(this._actual,"blur")).event,this._onSyntheticTap=this._register(new x.vl),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown(()=>L.p.onKeyDown())),this._register(this.onBeforeInput(()=>L.p.onBeforeInput())),this._register(this.onInput(()=>L.p.onInput())),this._register(this.onKeyUp(()=>L.p.onKeyUp())),this._register(F.ko(this._actual,m.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const w=F.jG(this._actual);return w?w.activeElement===this._actual:this._actual.isConnected?F.bq()===this._actual:!1}setIgnoreSelectionChangeTime(w){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(w,j){const U=this._actual;U.value!==j&&(this.setIgnoreSelectionChangeTime("setValue"),U.value=j)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(w,j,U){const K=this._actual;let G=null;const P=F.jG(K);P?G=P.activeElement:G=F.bq();const A=F.zk(G),T=G===K,E=K.selectionStart,W=K.selectionEnd;if(T&&E===j&&W===U){r.gm&&A.parent!==A&&K.focus();return}if(T){this.setIgnoreSelectionChangeTime("setSelectionRange"),K.setSelectionRange(j,U),r.gm&&A.parent!==A&&K.focus();return}try{const $=F.zK(K);this.setIgnoreSelectionChangeTime("setSelectionRange"),K.focus(),K.setSelectionRange(j,U),F.wk(K,$)}catch{}}}},"./node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaState.js":function(pt,Me,e){e.d(Me,{Al:function(){return L},Hf:function(){return k},_O:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");const k=!1;class M{constructor(x,I,S,f,d){this.value=x,this.selectionStart=I,this.selectionEnd=S,this.selection=f,this.newlineCountBeforeSelection=d}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(x,I){const S=x.getValue(),f=x.getSelectionStart(),d=x.getSelectionEnd();let a;if(I){const s=S.substring(0,f),n=I.value.substring(0,I.selectionStart);s===n&&(a=I.newlineCountBeforeSelection)}return new M(S,f,d,null,a)}collapseSelection(){return this.selectionStart===this.value.length?this:new M(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(x,I,S){k&&console.log(`writeToTextArea ${x}: ${this.toString()}`),I.setValue(x,this.value),S&&I.setSelectionRange(x,this.selectionStart,this.selectionEnd)}deduceEditorPosition(x){var I,S,f,d,a,s,n,i;if(x<=this.selectionStart){const u=this.value.substring(x,this.selectionStart);return this._finishDeduceEditorPosition((S=(I=this.selection)===null||I===void 0?void 0:I.getStartPosition())!==null&&S!==void 0?S:null,u,-1)}if(x>=this.selectionEnd){const u=this.value.substring(this.selectionEnd,x);return this._finishDeduceEditorPosition((d=(f=this.selection)===null||f===void 0?void 0:f.getEndPosition())!==null&&d!==void 0?d:null,u,1)}const c=this.value.substring(this.selectionStart,x);if(c.indexOf("\u2026")===-1)return this._finishDeduceEditorPosition((s=(a=this.selection)===null||a===void 0?void 0:a.getStartPosition())!==null&&s!==void 0?s:null,c,1);const m=this.value.substring(x,this.selectionEnd);return this._finishDeduceEditorPosition((i=(n=this.selection)===null||n===void 0?void 0:n.getEndPosition())!==null&&i!==void 0?i:null,m,-1)}_finishDeduceEditorPosition(x,I,S){let f=0,d=-1;for(;(d=I.indexOf(` `,d+1))!==-1;)f++;return[x,S*I.length,f]}static deduceInput(x,I,S){if(!x)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};k&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${x.toString()}`),console.log(`CURRENT STATE: ${I.toString()}`));const f=Math.min(r.Qp(x.value,I.value),x.selectionStart,I.selectionStart),d=Math.min(r.Vi(x.value,I.value),x.value.length-x.selectionEnd,I.value.length-I.selectionEnd),a=x.value.substring(f,x.value.length-d),s=I.value.substring(f,I.value.length-d),n=x.selectionStart-f,i=x.selectionEnd-f,c=I.selectionStart-f,m=I.selectionEnd-f;if(k&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${n}, selectionEnd: ${i}`),console.log(`AFTER DIFFING CURRENT STATE: <${s}>, selectionStart: ${c}, selectionEnd: ${m}`)),c===m){const C=x.selectionStart-f;return k&&console.log(`REMOVE PREVIOUS: ${C} chars`),{text:s,replacePrevCharCnt:C,replaceNextCharCnt:0,positionDelta:0}}const u=i-n;return{text:s,replacePrevCharCnt:u,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(x,I){if(!x)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(k&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${x.toString()}`),console.log(`CURRENT STATE: ${I.toString()}`)),x.value===I.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:I.selectionEnd-x.selectionEnd};const S=Math.min(r.Qp(x.value,I.value),x.selectionEnd),f=Math.min(r.Vi(x.value,I.value),x.value.length-x.selectionEnd),d=x.value.substring(S,x.value.length-f),a=I.value.substring(S,I.value.length-f),s=x.selectionStart-S,n=x.selectionEnd-S,i=I.selectionStart-S,c=I.selectionEnd-S;return k&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${d}>, selectionStart: ${s}, selectionEnd: ${n}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${i}, selectionEnd: ${c}`)),{text:a,replacePrevCharCnt:n,replaceNextCharCnt:d.length-n,positionDelta:c-a.length}}}M.EMPTY=new M("",0,0,null,void 0);class L{static _getPageOfLine(x,I){return Math.floor((x-1)/I)}static _getRangeForPage(x,I){const S=x*I,f=S+1,d=S+I;return new F.Q(f,1,d+1,1)}static fromEditorSelection(x,I,S,f){const a=L._getPageOfLine(I.startLineNumber,S),s=L._getRangeForPage(a,S),n=L._getPageOfLine(I.endLineNumber,S),i=L._getRangeForPage(n,S);let c=s.intersectRanges(new F.Q(1,1,I.startLineNumber,I.startColumn));if(f&&x.getValueLengthInRange(c,1)>500){const b=x.modifyPosition(c.getEndPosition(),-500);c=F.Q.fromPositions(b,c.getEndPosition())}const m=x.getValueInRange(c,1),u=x.getLineCount(),C=x.getLineMaxColumn(u);let h=i.intersectRanges(new F.Q(I.endLineNumber,I.endColumn,u,C));if(f&&x.getValueLengthInRange(h,1)>500){const b=x.modifyPosition(h.getStartPosition(),500);h=F.Q.fromPositions(h.getStartPosition(),b)}const v=x.getValueInRange(h,1);let p;if(a===n||a+1===n)p=x.getValueInRange(I,1);else{const b=s.intersectRanges(I),O=i.intersectRanges(I);p=x.getValueInRange(b,1)+"\u2026"+x.getValueInRange(O,1)}return f&&p.length>2*500&&(p=p.substring(0,500)+"\u2026"+p.substring(p.length-500,p.length)),new M(m+p+v,m.length,m.length+p.length,I,c.endLineNumber-c.startLineNumber)}}},"./node_modules/monaco-editor/esm/vs/editor/browser/coreCommands.js":function(pt,Me,e){e.d(Me,{Yh:function(){return U},QM:function(){return b}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/cursorCommon.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class f{static columnSelect(A,T,E,W,$,z){const J=Math.abs($-E)+1,B=E>$,V=W>z,Y=Wz||veW||he0&&W--,f.columnSelect(A,T,E.fromViewLineNumber,E.fromViewVisualColumn,E.toViewLineNumber,W)}static columnSelectRight(A,T,E){let W=0;const $=Math.min(E.fromViewLineNumber,E.toViewLineNumber),z=Math.max(E.fromViewLineNumber,E.toViewLineNumber);for(let B=$;B<=z;B++){const V=T.getLineMaxColumn(B),Y=A.visibleColumnFromColumn(T,new I.y(B,V));W=Math.max(W,Y)}let J=E.toViewVisualColumn;return J{const W=T.get(g.T).getFocusedCodeEditor();return W&&W.hasTextFocus()?this._runEditorCommand(T,W,E):!1}),A.addImplementation(1e3,"generic-dom-input-textarea",(T,E)=>{const W=(0,m.bq)();return W&&["input","textarea"].indexOf(W.tagName.toLowerCase())>=0?(this.runDOMCommand(W),!0):!1}),A.addImplementation(0,"generic-dom",(T,E)=>{const W=T.get(g.T).getActiveCodeEditor();return W?(W.focus(),this._runEditorCommand(T,W,E)):!1})}_runEditorCommand(A,T,E){const W=this.runEditorCommand(A,T,E);return W||!0}}var b;(function(P){class A extends C{constructor(Ce){super(Ce),this._inSelectionMode=Ce.inSelectionMode}runCoreEditorCommand(Ce,Pe){if(!Pe.position)return;Ce.model.pushStackElement(),Ce.setCursorStates(Pe.source,3,[a.c.moveTo(Ce,Ce.getPrimaryCursorState(),this._inSelectionMode,Pe.position,Pe.viewPosition)])&&Pe.revealType!==2&&Ce.revealAllCursors(Pe.source,!0,!0)}}P.MoveTo=(0,L.E_)(new A({id:"_moveTo",inSelectionMode:!1,precondition:void 0})),P.MoveToSelect=(0,L.E_)(new A({id:"_moveToSelect",inSelectionMode:!0,precondition:void 0}));class T extends C{runCoreEditorCommand(Ce,Pe){Ce.model.pushStackElement();const _e=this._getColumnSelectResult(Ce,Ce.getPrimaryCursorState(),Ce.getCursorColumnSelectData(),Pe);_e!==null&&(Ce.setCursorStates(Pe.source,3,_e.viewStates.map(ee=>x.MF.fromViewState(ee))),Ce.setCursorColumnSelectData({isReal:!0,fromViewLineNumber:_e.fromLineNumber,fromViewVisualColumn:_e.fromVisualColumn,toViewLineNumber:_e.toLineNumber,toViewVisualColumn:_e.toVisualColumn}),_e.reversed?Ce.revealTopMostCursor(Pe.source):Ce.revealBottomMostCursor(Pe.source))}}P.ColumnSelect=(0,L.E_)(new class extends T{constructor(){super({id:"columnSelect",precondition:void 0})}_getColumnSelectResult(ve,Ce,Pe,_e){if(typeof _e.position>"u"||typeof _e.viewPosition>"u"||typeof _e.mouseColumn>"u")return null;const ee=ve.model.validatePosition(_e.position),De=ve.coordinatesConverter.validateViewPosition(new I.y(_e.viewPosition.lineNumber,_e.viewPosition.column),ee),Te=_e.doColumnSelect?Pe.fromViewLineNumber:De.lineNumber,He=_e.doColumnSelect?Pe.fromViewVisualColumn:_e.mouseColumn-1;return f.columnSelect(ve.cursorConfig,ve,Te,He,De.lineNumber,_e.mouseColumn-1)}}),P.CursorColumnSelectLeft=(0,L.E_)(new class extends T{constructor(){super({id:"cursorColumnSelectLeft",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:3599,linux:{primary:0}}})}_getColumnSelectResult(ve,Ce,Pe,_e){return f.columnSelectLeft(ve.cursorConfig,ve,Pe)}}),P.CursorColumnSelectRight=(0,L.E_)(new class extends T{constructor(){super({id:"cursorColumnSelectRight",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:3601,linux:{primary:0}}})}_getColumnSelectResult(ve,Ce,Pe,_e){return f.columnSelectRight(ve.cursorConfig,ve,Pe)}});class E extends T{constructor(Ce){super(Ce),this._isPaged=Ce.isPaged}_getColumnSelectResult(Ce,Pe,_e,ee){return f.columnSelectUp(Ce.cursorConfig,Ce,_e,this._isPaged)}}P.CursorColumnSelectUp=(0,L.E_)(new E({isPaged:!1,id:"cursorColumnSelectUp",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:3600,linux:{primary:0}}})),P.CursorColumnSelectPageUp=(0,L.E_)(new E({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:3595,linux:{primary:0}}}));class W extends T{constructor(Ce){super(Ce),this._isPaged=Ce.isPaged}_getColumnSelectResult(Ce,Pe,_e,ee){return f.columnSelectDown(Ce.cursorConfig,Ce,_e,this._isPaged)}}P.CursorColumnSelectDown=(0,L.E_)(new W({isPaged:!1,id:"cursorColumnSelectDown",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:3602,linux:{primary:0}}})),P.CursorColumnSelectPageDown=(0,L.E_)(new W({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:3596,linux:{primary:0}}}));class $ extends C{constructor(){super({id:"cursorMove",precondition:void 0,metadata:a.S.metadata})}runCoreEditorCommand(Ce,Pe){const _e=a.S.parse(Pe);_e&&this._runCursorMove(Ce,Pe.source,_e)}_runCursorMove(Ce,Pe,_e){Ce.model.pushStackElement(),Ce.setCursorStates(Pe,3,$._move(Ce,Ce.getCursorStates(),_e)),Ce.revealAllCursors(Pe,!0)}static _move(Ce,Pe,_e){const ee=_e.select,De=_e.value;switch(_e.direction){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:return a.c.simpleMove(Ce,Pe,_e.direction,ee,De,_e.unit);case 11:case 13:case 12:case 14:return a.c.viewportMove(Ce,Pe,_e.direction,ee,De);default:return null}}}P.CursorMoveImpl=$,P.CursorMove=(0,L.E_)(new $);class z extends C{constructor(Ce){super(Ce),this._staticArgs=Ce.args}runCoreEditorCommand(Ce,Pe){let _e=this._staticArgs;this._staticArgs.value===-1&&(_e={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:Pe.pageSize||Ce.cursorConfig.pageSize}),Ce.model.pushStackElement(),Ce.setCursorStates(Pe.source,3,a.c.simpleMove(Ce,Ce.getCursorStates(),_e.direction,_e.select,_e.value,_e.unit)),Ce.revealAllCursors(Pe.source,!0)}}P.CursorLeft=(0,L.E_)(new z({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),P.CursorLeftSelect=(0,L.E_)(new z({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:1039}})),P.CursorRight=(0,L.E_)(new z({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),P.CursorRightSelect=(0,L.E_)(new z({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:1041}})),P.CursorUp=(0,L.E_)(new z({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),P.CursorUpSelect=(0,L.E_)(new z({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),P.CursorPageUp=(0,L.E_)(new z({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:11}})),P.CursorPageUpSelect=(0,L.E_)(new z({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:1035}})),P.CursorDown=(0,L.E_)(new z({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),P.CursorDownSelect=(0,L.E_)(new z({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),P.CursorPageDown=(0,L.E_)(new z({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:12}})),P.CursorPageDownSelect=(0,L.E_)(new z({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:1036}})),P.CreateCursor=(0,L.E_)(new class extends C{constructor(){super({id:"createCursor",precondition:void 0})}runCoreEditorCommand(ve,Ce){if(!Ce.position)return;let Pe;Ce.wholeLine?Pe=a.c.line(ve,ve.getPrimaryCursorState(),!1,Ce.position,Ce.viewPosition):Pe=a.c.moveTo(ve,ve.getPrimaryCursorState(),!1,Ce.position,Ce.viewPosition);const _e=ve.getCursorStates();if(_e.length>1){const ee=Pe.modelState?Pe.modelState.position:null,De=Pe.viewState?Pe.viewState.position:null;for(let Te=0,He=_e.length;TeDe&&(ee=De);const Te=new S.Q(ee,1,ee,ve.model.getLineMaxColumn(ee));let He=0;if(Pe.at)switch(Pe.at){case v.RawAtArgument.Top:He=3;break;case v.RawAtArgument.Center:He=1;break;case v.RawAtArgument.Bottom:He=4;break;default:break}const qe=ve.coordinatesConverter.convertModelRangeToViewRange(Te);ve.revealRange(Ce.source,!1,qe,He,0)}}),P.SelectAll=new class extends p{constructor(){super(L.tc)}runDOMCommand(ve){F.gm&&(ve.focus(),ve.select()),ve.ownerDocument.execCommand("selectAll")}runEditorCommand(ve,Ce,Pe){const _e=Ce._getViewModel();_e&&this.runCoreEditorCommand(_e,Pe)}runCoreEditorCommand(ve,Ce){ve.model.pushStackElement(),ve.setCursorStates("keyboard",3,[a.c.selectAll(ve,ve.getPrimaryCursorState())])}},P.SetSelection=(0,L.E_)(new class extends C{constructor(){super({id:"setSelection",precondition:void 0})}runCoreEditorCommand(ve,Ce){Ce.selection&&(ve.model.pushStackElement(),ve.setCursorStates(Ce.source,3,[x.MF.fromModelSelection(Ce.selection)]))}})})(b||(b={}));const O=i.M$.and(n.R.textInputFocus,n.R.columnSelection);function w(P,A){c.f.registerKeybindingRule({id:P,primary:A,when:O,weight:u+1})}w(b.CursorColumnSelectLeft.id,1039),w(b.CursorColumnSelectRight.id,1041),w(b.CursorColumnSelectUp.id,1040),w(b.CursorColumnSelectPageUp.id,1035),w(b.CursorColumnSelectDown.id,1042),w(b.CursorColumnSelectPageDown.id,1036);function j(P){return P.register(),P}var U;(function(P){class A extends L.DX{runEditorCommand(E,W,$){const z=W._getViewModel();z&&this.runCoreEditingCommand(W,z,$||{})}}P.CoreEditingCommand=A,P.LineBreakInsert=(0,L.E_)(new class extends A{constructor(){super({id:"lineBreakInsert",precondition:n.R.writable,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:0,mac:{primary:301}}})}runCoreEditingCommand(T,E,W){T.pushUndoStop(),T.executeCommands(this.id,s.TK.lineBreakInsert(E.cursorConfig,E.model,E.getCursorStates().map($=>$.modelState.selection)))}}),P.Outdent=(0,L.E_)(new class extends A{constructor(){super({id:"outdent",precondition:n.R.writable,kbOpts:{weight:u,kbExpr:i.M$.and(n.R.editorTextFocus,n.R.tabDoesNotMoveFocus),primary:1026}})}runCoreEditingCommand(T,E,W){T.pushUndoStop(),T.executeCommands(this.id,s.TK.outdent(E.cursorConfig,E.model,E.getCursorStates().map($=>$.modelState.selection))),T.pushUndoStop()}}),P.Tab=(0,L.E_)(new class extends A{constructor(){super({id:"tab",precondition:n.R.writable,kbOpts:{weight:u,kbExpr:i.M$.and(n.R.editorTextFocus,n.R.tabDoesNotMoveFocus),primary:2}})}runCoreEditingCommand(T,E,W){T.pushUndoStop(),T.executeCommands(this.id,s.TK.tab(E.cursorConfig,E.model,E.getCursorStates().map($=>$.modelState.selection))),T.pushUndoStop()}}),P.DeleteLeft=(0,L.E_)(new class extends A{constructor(){super({id:"deleteLeft",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})}runCoreEditingCommand(T,E,W){const[$,z]=d.g.deleteLeft(E.getPrevEditOperationType(),E.cursorConfig,E.model,E.getCursorStates().map(J=>J.modelState.selection),E.getCursorAutoClosedCharacters());$&&T.pushUndoStop(),T.executeCommands(this.id,z),E.setPrevEditOperationType(2)}}),P.DeleteRight=(0,L.E_)(new class extends A{constructor(){super({id:"deleteRight",precondition:void 0,kbOpts:{weight:u,kbExpr:n.R.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})}runCoreEditingCommand(T,E,W){const[$,z]=d.g.deleteRight(E.getPrevEditOperationType(),E.cursorConfig,E.model,E.getCursorStates().map(J=>J.modelState.selection));$&&T.pushUndoStop(),T.executeCommands(this.id,z),E.setPrevEditOperationType(3)}}),P.Undo=new class extends p{constructor(){super(L.aU)}runDOMCommand(T){T.ownerDocument.execCommand("undo")}runEditorCommand(T,E,W){if(!(!E.hasModel()||E.getOption(91)===!0))return E.getModel().undo()}},P.Redo=new class extends p{constructor(){super(L.ih)}runDOMCommand(T){T.ownerDocument.execCommand("redo")}runEditorCommand(T,E,W){if(!(!E.hasModel()||E.getOption(91)===!0))return E.getModel().redo()}}})(U||(U={}));class K extends L.uB{constructor(A,T,E){super({id:A,precondition:void 0,metadata:E}),this._handlerId=T}runCommand(A,T){const E=A.get(g.T).getFocusedCodeEditor();E&&E.trigger("keyboard",this._handlerId,T)}}function G(P,A){j(new K("default:"+P,P)),j(new K(P,P,A))}G("type",{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),G("replacePreviousChar"),G("compositionType"),G("compositionStart"),G("compositionEnd"),G("paste"),G("cut")},"./node_modules/monaco-editor/esm/vs/editor/browser/dnd.js":function(pt,Me,e){e.d(Me,{l:function(){return S},q:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dnd.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/dataTransfer.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/mime.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/dnd/browser/dnd.js");function g(f){const d=new F.Vq;for(const a of f.items){const s=a.type;if(a.kind==="string"){const n=new Promise(i=>a.getAsString(i));d.append(s,(0,F.gf)(n))}else if(a.kind==="file"){const n=a.getAsFile();n&&d.append(s,x(n))}}return d}function x(f){const d=f.path?M.r.parse(f.path):void 0;return(0,F.VX)(f.name,d,async()=>new Uint8Array(await f.arrayBuffer()))}const I=Object.freeze([L.sV.EDITORS,L.sV.FILES,r.t.RESOURCES,r.t.INTERNAL_URI_LIST]);function S(f,d=!1){const a=g(f),s=a.get(r.t.INTERNAL_URI_LIST);if(s)a.replace(k.K.uriList,s);else if(d||!a.has(k.K.uriList)){const n=[];for(const i of f.items){const c=i.getAsFile();if(c){const m=c.path;try{m?n.push(M.r.file(m).toString()):n.push(M.r.parse(c.name,!0).toString())}catch{}}}n.length&&a.replace(k.K.uriList,(0,F.gf)(F.jt.create(n)))}for(const n of I)a.delete(n);return a}},"./node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser.js":function(pt,Me,e){e.d(Me,{Np:function(){return k},jA:function(){return L},z9:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/editorCommon.js");function F(g){return g&&typeof g.getEditorType=="function"?g.getEditorType()===r._.ICodeEditor:!1}function k(g){return g&&typeof g.getEditorType=="function"?g.getEditorType()===r._.IDiffEditor:!1}function M(g){return!!g&&typeof g=="object"&&typeof g.onDidChangeActiveEditor=="function"}function L(g){return F(g)?g:k(g)?g.getModifiedEditor():M(g)&&F(g.activeCodeEditor)?g.activeCodeEditor:null}},"./node_modules/monaco-editor/esm/vs/editor/browser/editorDom.js":function(pt,Me,e){e.d(Me,{$z:function(){return n},BA:function(){return c},DW:function(){return i},Hh:function(){return I},Qn:function(){return m},dO:function(){return s},i_:function(){return a},nz:function(){return x},wt:function(){return d}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/globalPointerMoveMonitor.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js");class x{constructor(v,p){this.x=v,this.y=p,this._pageCoordinatesBrand=void 0}toClientCoordinates(v){return new I(this.x-v.scrollX,this.y-v.scrollY)}}class I{constructor(v,p){this.clientX=v,this.clientY=p,this._clientCoordinatesBrand=void 0}toPageCoordinates(v){return new x(this.clientX+v.scrollX,this.clientY+v.scrollY)}}class S{constructor(v,p,b,O){this.x=v,this.y=p,this.width=b,this.height=O,this._editorPagePositionBrand=void 0}}class f{constructor(v,p){this.x=v,this.y=p,this._positionRelativeToEditorBrand=void 0}}function d(h){const v=r.BK(h);return new S(v.left,v.top,v.width,v.height)}function a(h,v,p){const b=v.width/h.offsetWidth,O=v.height/h.offsetHeight,w=(p.x-v.x)/b,j=(p.y-v.y)/O;return new f(w,j)}class s extends k.P{constructor(v,p,b){super(r.zk(b),v),this._editorMouseEventBrand=void 0,this.isFromPointerCapture=p,this.pos=new x(this.posx,this.posy),this.editorPos=d(b),this.relativePos=a(b,this.editorPos,this.pos)}}class n{constructor(v){this._editorViewDomNode=v}_create(v){return new s(v,!1,this._editorViewDomNode)}onContextMenu(v,p){return r.ko(v,"contextmenu",b=>{p(this._create(b))})}onMouseUp(v,p){return r.ko(v,"mouseup",b=>{p(this._create(b))})}onMouseDown(v,p){return r.ko(v,r.Bx.MOUSE_DOWN,b=>{p(this._create(b))})}onPointerDown(v,p){return r.ko(v,r.Bx.POINTER_DOWN,b=>{p(this._create(b),b.pointerId)})}onMouseLeave(v,p){return r.ko(v,r.Bx.MOUSE_LEAVE,b=>{p(this._create(b))})}onMouseMove(v,p){return r.ko(v,"mousemove",b=>p(this._create(b)))}}class i{constructor(v){this._editorViewDomNode=v}_create(v){return new s(v,!1,this._editorViewDomNode)}onPointerUp(v,p){return r.ko(v,"pointerup",b=>{p(this._create(b))})}onPointerDown(v,p){return r.ko(v,r.Bx.POINTER_DOWN,b=>{p(this._create(b),b.pointerId)})}onPointerLeave(v,p){return r.ko(v,r.Bx.POINTER_LEAVE,b=>{p(this._create(b))})}onPointerMove(v,p){return r.ko(v,"pointermove",b=>p(this._create(b)))}}class c extends L.jG{constructor(v){super(),this._editorViewDomNode=v,this._globalPointerMoveMonitor=this._register(new F._),this._keydownListener=null}startMonitoring(v,p,b,O,w){this._keydownListener=r.b2(v.ownerDocument,"keydown",j=>{j.toKeyCodeChord().isModifierKey()||this._globalPointerMoveMonitor.stopMonitoring(!0,j.browserEvent)},!0),this._globalPointerMoveMonitor.startMonitoring(v,p,b,j=>{O(new s(j,!0,this._editorViewDomNode))},j=>{this._keydownListener.dispose(),w(j)})}stopMonitoring(){this._globalPointerMoveMonitor.stopMonitoring(!0)}}class m{constructor(v){this._editor=v,this._instanceId=++m._idPool,this._counter=0,this._rules=new Map,this._garbageCollectionScheduler=new M.uC(()=>this.garbageCollect(),1e3)}createClassNameRef(v){const p=this.getOrCreateRule(v);return p.increaseRefCount(),{className:p.className,dispose:()=>{p.decreaseRefCount(),this._garbageCollectionScheduler.schedule()}}}getOrCreateRule(v){const p=this.computeUniqueKey(v);let b=this._rules.get(p);if(!b){const O=this._counter++;b=new u(p,`dyn-rule-${this._instanceId}-${O}`,r.Cl(this._editor.getContainerDomNode())?this._editor.getContainerDomNode():void 0,v),this._rules.set(p,b)}return b}computeUniqueKey(v){return JSON.stringify(v)}garbageCollect(){for(const v of this._rules.values())v.hasReferences()||(this._rules.delete(v.key),v.dispose())}}m._idPool=0;class u{constructor(v,p,b,O){this.key=v,this.className=p,this.properties=O,this._referenceCount=0,this._styleElementDisposables=new L.Cm,this._styleElement=r.li(b,void 0,this._styleElementDisposables),this._styleElement.textContent=this.getCssText(this.className,this.properties)}getCssText(v,p){let b=`.${v} {`;for(const O in p){const w=p[O];let j;typeof w=="object"?j=(0,g.GuP)(w.id):j=w;const U=C(O);b+=` ${U}: ${j};`}return b+=` }`,b}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function C(h){return h.replace(/(^[A-Z])/,([v])=>v.toLowerCase()).replace(/([A-Z])/g,([v])=>`-${v.toLowerCase()}`)}},"./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js":function(pt,Me,e){e.d(Me,{DX:function(){return h},E_:function(){return w},Fl:function(){return j},HW:function(){return G},PF:function(){return p},aU:function(){return W},dS:function(){return P},fE:function(){return u},gW:function(){return U},ih:function(){return $},ke:function(){return O},ks:function(){return v},qO:function(){return b},tc:function(){return z},uB:function(){return m},xX:function(){return K}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),c=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js");class m{constructor(B){this.id=B.id,this.precondition=B.precondition,this._kbOpts=B.kbOpts,this._menuOpts=B.menuOpts,this.metadata=B.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const B=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const V of B){let Y=V.kbExpr;this.precondition&&(Y?Y=S.M$.and(Y,this.precondition):Y=this.precondition);const X={id:this.id,weight:V.weight,args:V.args,when:Y,primary:V.primary,secondary:V.secondary,win:V.win,linux:V.linux,mac:V.mac};d.f.registerKeybindingRule(X)}}I.w.registerCommand({id:this.id,handler:(B,V)=>this.runCommand(B,V),metadata:this.metadata})}_registerMenuItem(B){x.ZG.appendMenuItem(B.menuId,{group:B.group,command:{id:this.id,title:B.title,icon:B.icon,precondition:this.precondition},when:B.when,order:B.order})}}class u extends m{constructor(){super(...arguments),this._implementations=[]}addImplementation(B,V,Y,X){return this._implementations.push({priority:B,name:V,implementation:Y,when:X}),this._implementations.sort((ie,re)=>re.priority-ie.priority),{dispose:()=>{for(let ie=0;ie{if(te.get(S.fN).contextMatchesRules(Y??void 0))return X(te,re,V)})}runCommand(B,V){return h.runEditorCommand(B,V,this.precondition,(Y,X,ie)=>this.runEditorCommand(Y,X,ie))}}class v extends h{static convertOptions(B){let V;Array.isArray(B.menuOpts)?V=B.menuOpts:B.menuOpts?V=[B.menuOpts]:V=[];function Y(X){return X.menuId||(X.menuId=x.D8.EditorContext),X.title||(X.title=B.label),X.when=S.M$.and(B.precondition,X.when),X}return Array.isArray(B.contextMenuOpts)?V.push(...B.contextMenuOpts.map(Y)):B.contextMenuOpts&&V.push(Y(B.contextMenuOpts)),B.menuOpts=V,B}constructor(B){super(v.convertOptions(B)),this.label=B.label,this.alias=B.alias}runEditorCommand(B,V,Y){return this.reportTelemetry(B,V),this.run(B,V,Y||{})}reportTelemetry(B,V){B.get(s.k).publicLog2("editorActionInvoked",{name:this.label,id:this.id})}}class p extends v{constructor(){super(...arguments),this._implementations=[]}addImplementation(B,V){return this._implementations.push([B,V]),this._implementations.sort((Y,X)=>X[0]-Y[0]),{dispose:()=>{for(let Y=0;Y{var re,te;const D=ie.get(S.fN),he=ie.get(i.rr);if(!D.contextMatchesRules((re=this.desc.precondition)!==null&&re!==void 0?re:void 0)){he.debug("[EditorAction2] NOT running command because its precondition is FALSE",this.desc.id,(te=this.desc.precondition)===null||te===void 0?void 0:te.serialize());return}return this.runEditorCommand(ie,X,...V)})}}function O(J,B){I.w.registerCommand(J,function(V,...Y){const X=V.get(f._Y),[ie,re]=Y;(0,n.j)(F.r.isUri(ie)),(0,n.j)(M.y.isIPosition(re));const te=V.get(L.S).getModel(ie);if(te){const D=M.y.lift(re);return X.invokeFunction(B,te,D,...Y.slice(2))}return V.get(g.b).createModelReference(ie).then(D=>new Promise((he,ve)=>{try{const Ce=X.invokeFunction(B,D.object.textEditorModel,M.y.lift(re),Y.slice(2));he(Ce)}catch(Ce){ve(Ce)}}).finally(()=>{D.dispose()}))})}function w(J){return T.INSTANCE.registerEditorCommand(J),J}function j(J){const B=new J;return T.INSTANCE.registerEditorAction(B),B}function U(J){return T.INSTANCE.registerEditorAction(J),J}function K(J){T.INSTANCE.registerEditorAction(J)}function G(J,B,V){T.INSTANCE.registerEditorContribution(J,B,V)}var P;(function(J){function B(re){return T.INSTANCE.getEditorCommand(re)}J.getEditorCommand=B;function V(){return T.INSTANCE.getEditorActions()}J.getEditorActions=V;function Y(){return T.INSTANCE.getEditorContributions()}J.getEditorContributions=Y;function X(re){return T.INSTANCE.getEditorContributions().filter(te=>re.indexOf(te.id)>=0)}J.getSomeEditorContributions=X;function ie(){return T.INSTANCE.getDiffEditorContributions()}J.getDiffEditorContributions=ie})(P||(P={}));const A={EditorCommonContributions:"editor.contributions"};class T{constructor(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}registerEditorContribution(B,V,Y){this.editorContributions.push({id:B,ctor:V,instantiation:Y})}getEditorContributions(){return this.editorContributions.slice(0)}getDiffEditorContributions(){return this.diffEditorContributions.slice(0)}registerEditorAction(B){B.register(),this.editorActions.push(B)}getEditorActions(){return this.editorActions}registerEditorCommand(B){B.register(),this.editorCommands[B.id]=B}getEditorCommand(B){return this.editorCommands[B]||null}}T.INSTANCE=new T,a.O.add(A.EditorCommonContributions,T.INSTANCE);function E(J){return J.register(),J}const W=E(new u({id:"undo",precondition:void 0,kbOpts:{weight:0,primary:2104},menuOpts:[{menuId:x.D8.MenubarEditMenu,group:"1_do",title:r.kg({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1},{menuId:x.D8.CommandPalette,group:"",title:r.kg("undo","Undo"),order:1}]}));E(new C(W,{id:"default:undo",precondition:void 0}));const $=E(new u({id:"redo",precondition:void 0,kbOpts:{weight:0,primary:2103,secondary:[3128],mac:{primary:3128}},menuOpts:[{menuId:x.D8.MenubarEditMenu,group:"1_do",title:r.kg({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2},{menuId:x.D8.CommandPalette,group:"",title:r.kg("redo","Redo"),order:1}]}));E(new C($,{id:"default:redo",precondition:void 0}));const z=E(new u({id:"editor.action.selectAll",precondition:void 0,kbOpts:{weight:0,kbExpr:null,primary:2079},menuOpts:[{menuId:x.D8.MenubarSelectionMenu,group:"1_basic",title:r.kg({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1},{menuId:x.D8.CommandPalette,group:"",title:r.kg("selectAll","Select All"),order:1}]}))},"./node_modules/monaco-editor/esm/vs/editor/browser/services/bulkEditService.js":function(pt,Me,e){e.d(Me,{cw:function(){return g},jN:function(){return L},nu:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/types.js");const M=(0,r.u1)("IWorkspaceEditService");class L{constructor(S){this.metadata=S}static convert(S){return S.edits.map(f=>{if(g.is(f))return g.lift(f);if(x.is(f))return x.lift(f);throw new Error("Unsupported edit")})}}class g extends L{static is(S){return S instanceof g?!0:(0,k.Gv)(S)&&F.r.isUri(S.resource)&&(0,k.Gv)(S.textEdit)}static lift(S){return S instanceof g?S:new g(S.resource,S.textEdit,S.versionId,S.metadata)}constructor(S,f,d=void 0,a){super(a),this.resource=S,this.textEdit=f,this.versionId=d}}class x extends L{static is(S){return S instanceof x?!0:(0,k.Gv)(S)&&(!!S.newResource||!!S.oldResource)}static lift(S){return S instanceof x?S:new x(S.oldResource,S.newResource,S.options,S.metadata)}constructor(S,f,d={},a){super(a),this.oldResource=S,this.newResource=f,this.options=d}}},"./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js":function(pt,Me,e){e.d(Me,{T:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("codeEditorService")},"./node_modules/monaco-editor/esm/vs/editor/browser/services/editorWorkerService.js":function(pt,Me,e){e.d(Me,{Z6:function(){return Ai},Bc:function(){return Si}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");const I="$initialize";let S=!1;function f(Sn){g.HZ&&(S||(S=!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(Sn.message))}class d{constructor(Ye,mt,ze,Ke){this.vsWorker=Ye,this.req=mt,this.method=ze,this.args=Ke,this.type=0}}class a{constructor(Ye,mt,ze,Ke){this.vsWorker=Ye,this.seq=mt,this.res=ze,this.err=Ke,this.type=1}}class s{constructor(Ye,mt,ze,Ke){this.vsWorker=Ye,this.req=mt,this.eventName=ze,this.arg=Ke,this.type=2}}class n{constructor(Ye,mt,ze){this.vsWorker=Ye,this.req=mt,this.event=ze,this.type=3}}class i{constructor(Ye,mt){this.vsWorker=Ye,this.req=mt,this.type=4}}class c{constructor(Ye){this._workerId=-1,this._handler=Ye,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(Ye){this._workerId=Ye}sendMessage(Ye,mt){const ze=String(++this._lastSentReq);return new Promise((Ke,Je)=>{this._pendingReplies[ze]={resolve:Ke,reject:Je},this._send(new d(this._workerId,ze,Ye,mt))})}listen(Ye,mt){let ze=null;const Ke=new M.vl({onWillAddFirstListener:()=>{ze=String(++this._lastSentReq),this._pendingEmitters.set(ze,Ke),this._send(new s(this._workerId,ze,Ye,mt))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(ze),this._send(new i(this._workerId,ze)),ze=null}});return Ke.event}handleMessage(Ye){!Ye||!Ye.vsWorker||this._workerId!==-1&&Ye.vsWorker!==this._workerId||this._handleMessage(Ye)}_handleMessage(Ye){switch(Ye.type){case 1:return this._handleReplyMessage(Ye);case 0:return this._handleRequestMessage(Ye);case 2:return this._handleSubscribeEventMessage(Ye);case 3:return this._handleEventMessage(Ye);case 4:return this._handleUnsubscribeEventMessage(Ye)}}_handleReplyMessage(Ye){if(!this._pendingReplies[Ye.seq]){console.warn("Got reply to unknown seq");return}const mt=this._pendingReplies[Ye.seq];if(delete this._pendingReplies[Ye.seq],Ye.err){let ze=Ye.err;Ye.err.$isError&&(ze=new Error,ze.name=Ye.err.name,ze.message=Ye.err.message,ze.stack=Ye.err.stack),mt.reject(ze);return}mt.resolve(Ye.res)}_handleRequestMessage(Ye){const mt=Ye.req;this._handler.handleMessage(Ye.method,Ye.args).then(Ke=>{this._send(new a(this._workerId,mt,Ke,void 0))},Ke=>{Ke.detail instanceof Error&&(Ke.detail=(0,k.cU)(Ke.detail)),this._send(new a(this._workerId,mt,void 0,(0,k.cU)(Ke)))})}_handleSubscribeEventMessage(Ye){const mt=Ye.req,ze=this._handler.handleEvent(Ye.eventName,Ye.arg)(Ke=>{this._send(new n(this._workerId,mt,Ke))});this._pendingEvents.set(mt,ze)}_handleEventMessage(Ye){if(!this._pendingEmitters.has(Ye.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(Ye.req).fire(Ye.event)}_handleUnsubscribeEventMessage(Ye){if(!this._pendingEvents.has(Ye.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(Ye.req).dispose(),this._pendingEvents.delete(Ye.req)}_send(Ye){const mt=[];if(Ye.type===0)for(let ze=0;ze{this._protocol.handleMessage(Ge)},Ge=>{Ke?.(Ge)})),this._protocol=new c({sendMessage:(Ge,nt)=>{this._worker.postMessage(Ge,nt)},handleMessage:(Ge,nt)=>{if(typeof ze[Ge]!="function")return Promise.reject(new Error("Missing method "+Ge+" on main thread host."));try{return Promise.resolve(ze[Ge].apply(ze,nt))}catch(it){return Promise.reject(it)}},handleEvent:(Ge,nt)=>{if(C(Ge)){const it=ze[Ge].call(ze,nt);if(typeof it!="function")throw new Error(`Missing dynamic event ${Ge} on main thread host.`);return it}if(u(Ge)){const it=ze[Ge];if(typeof it!="function")throw new Error(`Missing event ${Ge} on main thread host.`);return it}throw new Error(`Malformed event name ${Ge}`)}}),this._protocol.setWorkerId(this._worker.getId());let Je=null;const Ne=globalThis.require;typeof Ne<"u"&&typeof Ne.getConfig=="function"?Je=Ne.getConfig():typeof globalThis.requirejs<"u"&&(Je=globalThis.requirejs.s.contexts._.config);const ft=(0,L.V0)(ze);this._onModuleLoaded=this._protocol.sendMessage(I,[this._worker.getId(),JSON.parse(JSON.stringify(Je)),mt,ft]);const St=(Ge,nt)=>this._request(Ge,nt),rt=(Ge,nt)=>this._protocol.listen(Ge,nt);this._lazyProxy=new Promise((Ge,nt)=>{Ke=nt,this._onModuleLoaded.then(it=>{Ge(h(it,St,rt))},it=>{nt(it),this._onError("Worker failed to load "+mt,it)})})}getProxyObject(){return this._lazyProxy}_request(Ye,mt){return new Promise((ze,Ke)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(Ye,mt).then(ze,Ke)},Ke)})}_onError(Ye,mt){console.error(Ye),console.info(mt)}}function u(Sn){return Sn[0]==="o"&&Sn[1]==="n"&&x.Wv(Sn.charCodeAt(2))}function C(Sn){return/^onDynamic/.test(Sn)&&x.Wv(Sn.charCodeAt(9))}function h(Sn,Ye,mt){const ze=Ne=>function(){const ft=Array.prototype.slice.call(arguments,0);return Ye(Ne,ft)},Ke=Ne=>function(ft){return mt(Ne,ft)},Je={};for(const Ne of Sn){if(C(Ne)){Je[Ne]=Ke(Ne);continue}if(u(Ne)){Je[Ne]=mt(Ne,void 0);continue}Je[Ne]=ze(Ne)}return Je}class v{constructor(Ye,mt){this._requestHandlerFactory=mt,this._requestHandler=null,this._protocol=new c({sendMessage:(ze,Ke)=>{Ye(ze,Ke)},handleMessage:(ze,Ke)=>this._handleMessage(ze,Ke),handleEvent:(ze,Ke)=>this._handleEvent(ze,Ke)})}onmessage(Ye){this._protocol.handleMessage(Ye)}_handleMessage(Ye,mt){if(Ye===I)return this.initialize(mt[0],mt[1],mt[2],mt[3]);if(!this._requestHandler||typeof this._requestHandler[Ye]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+Ye));try{return Promise.resolve(this._requestHandler[Ye].apply(this._requestHandler,mt))}catch(ze){return Promise.reject(ze)}}_handleEvent(Ye,mt){if(!this._requestHandler)throw new Error("Missing requestHandler");if(C(Ye)){const ze=this._requestHandler[Ye].call(this._requestHandler,mt);if(typeof ze!="function")throw new Error(`Missing dynamic event ${Ye} on request handler.`);return ze}if(u(Ye)){const ze=this._requestHandler[Ye];if(typeof ze!="function")throw new Error(`Missing event ${Ye} on request handler.`);return ze}throw new Error(`Malformed event name ${Ye}`)}initialize(Ye,mt,ze,Ke){this._protocol.setWorkerId(Ye);const ft=h(Ke,(St,rt)=>this._protocol.sendMessage(St,rt),(St,rt)=>this._protocol.listen(St,rt));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(ft),Promise.resolve(getAllMethodNames(this._requestHandler))):(mt&&(typeof mt.baseUrl<"u"&&delete mt.baseUrl,typeof mt.paths<"u"&&typeof mt.paths.vs<"u"&&delete mt.paths.vs,typeof mt.trustedTypesPolicy<"u"&&delete mt.trustedTypesPolicy,mt.catchError=!0,globalThis.require.config(mt)),new Promise((St,rt)=>{const Ge=globalThis.require;Ge([ze],nt=>{if(this._requestHandler=nt.create(ft),!this._requestHandler){rt(new Error("No RequestHandler!"));return}St(getAllMethodNames(this._requestHandler))},rt)}))}}function p(Sn){return new v(Sn,null)}var b=e("./node_modules/monaco-editor/esm/vs/base/browser/trustedTypes.js");const O=(0,b.H)("defaultWorkerFactory",{createScriptURL:Sn=>Sn});function w(Sn){const Ye=globalThis.MonacoEnvironment;if(Ye){if(typeof Ye.getWorker=="function")return Ye.getWorker("workerMain.js",Sn);if(typeof Ye.getWorkerUrl=="function"){const mt=Ye.getWorkerUrl("workerMain.js",Sn);return new Worker(O?O.createScriptURL(mt):mt,{name:Sn})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function j(Sn){return typeof Sn.then=="function"}class U extends F.jG{constructor(Ye,mt,ze,Ke,Je){super(),this.id=mt,this.label=ze;const Ne=w(ze);j(Ne)?this.worker=Ne:this.worker=Promise.resolve(Ne),this.postMessage(Ye,[]),this.worker.then(ft=>{ft.onmessage=function(St){Ke(St.data)},ft.onmessageerror=Je,typeof ft.addEventListener=="function"&&ft.addEventListener("error",Je)}),this._register((0,F.s)(()=>{var ft;(ft=this.worker)===null||ft===void 0||ft.then(St=>{St.onmessage=null,St.onmessageerror=null,St.removeEventListener("error",Je),St.terminate()}),this.worker=null}))}getId(){return this.id}postMessage(Ye,mt){var ze;(ze=this.worker)===null||ze===void 0||ze.then(Ke=>{try{Ke.postMessage(Ye,mt)}catch(Je){(0,k.dz)(Je),(0,k.dz)(new Error(`FAILED to post message to '${this.label}'-worker`,{cause:Je}))}})}}class K{constructor(Ye){this._label=Ye,this._webWorkerFailedBeforeError=!1}create(Ye,mt,ze){const Ke=++K.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new U(Ye,Ke,this._label||"anonymous"+Ke,mt,Je=>{f(Je),this._webWorkerFailedBeforeError=Je,ze(Je)})}}K.LAST_WORKER_ID=0;var G=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),P=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),A=e("./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js"),T=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),E=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),W=e("./node_modules/monaco-editor/esm/vs/editor/common/model/prefixSumComputer.js");class ${constructor(Ye,mt,ze,Ke){this._uri=Ye,this._lines=mt,this._eol=ze,this._versionId=Ke,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(Ye){Ye.eol&&Ye.eol!==this._eol&&(this._eol=Ye.eol,this._lineStarts=null);const mt=Ye.changes;for(const ze of mt)this._acceptDeleteRange(ze.range),this._acceptInsertText(new E.y(ze.range.startLineNumber,ze.range.startColumn),ze.text);this._versionId=Ye.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const Ye=this._eol.length,mt=this._lines.length,ze=new Uint32Array(mt);for(let Ke=0;Kemt&&(mt=St),ft>ze&&(ze=ft),rt>ze&&(ze=rt)}mt++,ze++;const Ke=new B(ze,mt,0);for(let Je=0,Ne=Ye.length;Je=this._maxCharCode?0:this._states.get(Ye,mt)}}let Y=null;function X(){return Y===null&&(Y=new V([[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]])),Y}let ie=null;function re(){if(ie===null){ie=new J.V(0);const Sn=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let mt=0;mtKe);if(Ke>0){const ft=mt.charCodeAt(Ke-1),St=mt.charCodeAt(Ne);(ft===40&&St===41||ft===91&&St===93||ft===123&&St===125)&&Ne--}return{range:{startLineNumber:ze,startColumn:Ke+1,endLineNumber:ze,endColumn:Ne+2},url:mt.substring(Ke,Ne+1)}}static computeLinks(Ye,mt=X()){const ze=re(),Ke=[];for(let Je=1,Ne=Ye.getLineCount();Je<=Ne;Je++){const ft=Ye.getLineContent(Je),St=ft.length;let rt=0,Ge=0,nt=0,it=1,bt=!1,Dt=!1,At=!1,et=!1;for(;rt=0?(Ke+=ze?1:-1,Ke<0?Ke=Ye.length-1:Ke%=Ye.length,Ye[Ke]):null}}he.INSTANCE=new he;var ve=e("./node_modules/monaco-editor/esm/vs/editor/common/services/editorBaseApi.js"),Ce=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),Pe=e("./node_modules/monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js"),_e=e("./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js"),ee=e("./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js"),De=e("./node_modules/monaco-editor/esm/vs/base/common/assert.js"),Te=e("./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js");const He=3;class qe{computeDiff(Ye,mt,ze){var Ke;const Ne=new ae(Ye,mt,{maxComputationTime:ze.maxComputationTimeMs,shouldIgnoreTrimWhitespace:ze.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),ft=[];let St=null;for(const rt of Ne.changes){let Ge;rt.originalEndLineNumber===0?Ge=new Te.M(rt.originalStartLineNumber+1,rt.originalStartLineNumber+1):Ge=new Te.M(rt.originalStartLineNumber,rt.originalEndLineNumber+1);let nt;rt.modifiedEndLineNumber===0?nt=new Te.M(rt.modifiedStartLineNumber+1,rt.modifiedStartLineNumber+1):nt=new Te.M(rt.modifiedStartLineNumber,rt.modifiedEndLineNumber+1);let it=new ee.wm(Ge,nt,(Ke=rt.charChanges)===null||Ke===void 0?void 0:Ke.map(bt=>new ee.q6(new G.Q(bt.originalStartLineNumber,bt.originalStartColumn,bt.originalEndLineNumber,bt.originalEndColumn),new G.Q(bt.modifiedStartLineNumber,bt.modifiedStartColumn,bt.modifiedEndLineNumber,bt.modifiedEndColumn))));St&&(St.modified.endLineNumberExclusive===it.modified.startLineNumber||St.original.endLineNumberExclusive===it.original.startLineNumber)&&(it=new ee.wm(St.original.join(it.original),St.modified.join(it.modified),St.innerChanges&&it.innerChanges?St.innerChanges.concat(it.innerChanges):void 0),ft.pop()),ft.push(it),St=it}return(0,De.Ft)(()=>(0,De.Xo)(ft,(rt,Ge)=>Ge.original.startLineNumber-rt.original.endLineNumberExclusive===Ge.modified.startLineNumber-rt.modified.endLineNumberExclusive&&rt.original.endLineNumberExclusive(Ye===10?"\\n":String.fromCharCode(Ye))+`-(${this._lineNumbers[mt]},${this._columns[mt]})`).join(", ")+"]"}_assertIndex(Ye,mt){if(Ye<0||Ye>=mt.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(Ye){return Ye>0&&Ye===this._lineNumbers.length?this.getEndLineNumber(Ye-1):(this._assertIndex(Ye,this._lineNumbers),this._lineNumbers[Ye])}getEndLineNumber(Ye){return Ye===-1?this.getStartLineNumber(Ye+1):(this._assertIndex(Ye,this._lineNumbers),this._charCodes[Ye]===10?this._lineNumbers[Ye]+1:this._lineNumbers[Ye])}getStartColumn(Ye){return Ye>0&&Ye===this._columns.length?this.getEndColumn(Ye-1):(this._assertIndex(Ye,this._columns),this._columns[Ye])}getEndColumn(Ye){return Ye===-1?this.getStartColumn(Ye+1):(this._assertIndex(Ye,this._columns),this._charCodes[Ye]===10?1:this._columns[Ye]+1)}}class ge{constructor(Ye,mt,ze,Ke,Je,Ne,ft,St){this.originalStartLineNumber=Ye,this.originalStartColumn=mt,this.originalEndLineNumber=ze,this.originalEndColumn=Ke,this.modifiedStartLineNumber=Je,this.modifiedStartColumn=Ne,this.modifiedEndLineNumber=ft,this.modifiedEndColumn=St}static createFromDiffChange(Ye,mt,ze){const Ke=mt.getStartLineNumber(Ye.originalStart),Je=mt.getStartColumn(Ye.originalStart),Ne=mt.getEndLineNumber(Ye.originalStart+Ye.originalLength-1),ft=mt.getEndColumn(Ye.originalStart+Ye.originalLength-1),St=ze.getStartLineNumber(Ye.modifiedStart),rt=ze.getStartColumn(Ye.modifiedStart),Ge=ze.getEndLineNumber(Ye.modifiedStart+Ye.modifiedLength-1),nt=ze.getEndColumn(Ye.modifiedStart+Ye.modifiedLength-1);return new ge(Ke,Je,Ne,ft,St,rt,Ge,nt)}}function be(Sn){if(Sn.length<=1)return Sn;const Ye=[Sn[0]];let mt=Ye[0];for(let ze=1,Ke=Sn.length;ze0&&mt.originalLength<20&&mt.modifiedLength>0&&mt.modifiedLength<20&&Je()){const bt=ze.createCharSequence(Ye,mt.originalStart,mt.originalStart+mt.originalLength-1),Dt=Ke.createCharSequence(Ye,mt.modifiedStart,mt.modifiedStart+mt.modifiedLength-1);if(bt.getElements().length>0&&Dt.getElements().length>0){let At=Qe(bt,Dt,Je,!0).changes;ft&&(At=be(At)),it=[];for(let et=0,at=At.length;et1&&At>1;){const et=it.charCodeAt(Dt-2),at=bt.charCodeAt(At-2);if(et!==at)break;Dt--,At--}(Dt>1||At>1)&&this._pushTrimWhitespaceCharChange(Ke,Je+1,1,Dt,Ne+1,1,At)}{let Dt=fe(it,1),At=fe(bt,1);const et=it.length+1,at=bt.length+1;for(;Dt!0;const Ye=Date.now();return()=>Date.now()-Yenew qe,getDefault:()=>new oe.D8};var de=e("./node_modules/monaco-editor/esm/vs/base/common/color.js");function Le(Sn){const Ye=[];for(const mt of Sn){const ze=Number(mt);(ze||ze===0&&mt.replace(/\s/g,"")!=="")&&Ye.push(ze)}return Ye}function We(Sn,Ye,mt,ze){return{red:Sn/255,blue:mt/255,green:Ye/255,alpha:ze}}function we(Sn,Ye){const mt=Ye.index,ze=Ye[0].length;if(!mt)return;const Ke=Sn.positionAt(mt);return{startLineNumber:Ke.lineNumber,startColumn:Ke.column,endLineNumber:Ke.lineNumber,endColumn:Ke.column+ze}}function Ue(Sn,Ye){if(!Sn)return;const mt=de.Q1.Format.CSS.parseHex(Ye);if(mt)return{range:Sn,color:We(mt.rgba.r,mt.rgba.g,mt.rgba.b,mt.rgba.a)}}function lt(Sn,Ye,mt){if(!Sn||Ye.length!==1)return;const Ke=Ye[0].values(),Je=Le(Ke);return{range:Sn,color:We(Je[0],Je[1],Je[2],mt?Je[3]:1)}}function Et(Sn,Ye,mt){if(!Sn||Ye.length!==1)return;const Ke=Ye[0].values(),Je=Le(Ke),Ne=new de.Q1(new de.hB(Je[0],Je[1]/100,Je[2]/100,mt?Je[3]:1));return{range:Sn,color:We(Ne.rgba.r,Ne.rgba.g,Ne.rgba.b,Ne.rgba.a)}}function Kt(Sn,Ye){return typeof Sn=="string"?[...Sn.matchAll(Ye)]:Sn.findMatches(Ye)}function Zt(Sn){const Ye=[],ze=Kt(Sn,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(ze.length>0)for(const Ke of ze){const Je=Ke.filter(rt=>rt!==void 0),Ne=Je[1],ft=Je[2];if(!ft)continue;let St;if(Ne==="rgb"){const rt=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;St=lt(we(Sn,Ke),Kt(ft,rt),!1)}else if(Ne==="rgba"){const rt=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;St=lt(we(Sn,Ke),Kt(ft,rt),!0)}else if(Ne==="hsl"){const rt=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;St=Et(we(Sn,Ke),Kt(ft,rt),!1)}else if(Ne==="hsla"){const rt=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;St=Et(we(Sn,Ke),Kt(ft,rt),!0)}else Ne==="#"&&(St=Ue(we(Sn,Ke),Ne+ft));St&&Ye.push(St)}return Ye}function qt(Sn){return!Sn||typeof Sn.getValue!="function"||typeof Sn.positionAt!="function"?[]:Zt(Sn)}const tt=new RegExp("\\bMARK:\\s*(.*)$","d"),Mt=/^-+|-+$/g;function Ht(Sn,Ye){var mt;let ze=[];if(Ye.findRegionSectionHeaders&&(!((mt=Ye.foldingRules)===null||mt===void 0)&&mt.markers)){const Ke=xt(Sn,Ye);ze=ze.concat(Ke)}if(Ye.findMarkSectionHeaders){const Ke=Jt(Sn);ze=ze.concat(Ke)}return ze}function xt(Sn,Ye){const mt=[],ze=Sn.getLineCount();for(let Ke=1;Ke<=ze;Ke++){const Je=Sn.getLineContent(Ke),Ne=Je.match(Ye.foldingRules.markers.start);if(Ne){const ft={startLineNumber:Ke,startColumn:Ne[0].length+1,endLineNumber:Ke,endColumn:Je.length+1};if(ft.endColumn>ft.startColumn){const St={range:ft,...Be(Je.substring(Ne[0].length)),shouldBeInComments:!1};(St.text||St.hasSeparatorLine)&&mt.push(St)}}}return mt}function Jt(Sn){const Ye=[],mt=Sn.getLineCount();for(let ze=1;ze<=mt;ze++){const Ke=Sn.getLineContent(ze);Nt(Ke,ze,Ye)}return Ye}function Nt(Sn,Ye,mt){tt.lastIndex=0;const ze=tt.exec(Sn);if(ze){const Ke=ze.indices[1][0]+1,Je=ze.indices[1][1]+1,Ne={startLineNumber:Ye,startColumn:Ke,endLineNumber:Ye,endColumn:Je};if(Ne.endColumn>Ne.startColumn){const ft={range:Ne,...Be(ze[1]),shouldBeInComments:!0};(ft.text||ft.hasSeparatorLine)&&mt.push(ft)}}}function Be(Sn){Sn=Sn.trim();const Ye=Sn.startsWith("-");return Sn=Sn.replace(Mt,""),{text:Sn,hasSeparatorLine:Ye}}class vt extends ${get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(Ye){const mt=[];for(let ze=0;zethis._lines.length)mt=this._lines.length,ze=this._lines[mt-1].length+1,Ke=!0;else{const Je=this._lines[mt-1].length+1;ze<1?(ze=1,Ke=!0):ze>Je&&(ze=Je,Ke=!0)}return Ke?{lineNumber:mt,column:ze}:Ye}}class Gt{constructor(Ye,mt){this._host=Ye,this._models=Object.create(null),this._foreignModuleFactory=mt,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(Ye){return this._models[Ye]}_getModels(){const Ye=[];return Object.keys(this._models).forEach(mt=>Ye.push(this._models[mt])),Ye}acceptNewModel(Ye){this._models[Ye.url]=new vt(T.r.parse(Ye.url),Ye.lines,Ye.EOL,Ye.versionId)}acceptModelChanged(Ye,mt){if(!this._models[Ye])return;this._models[Ye].onEvents(mt)}acceptRemovedModel(Ye){this._models[Ye]&&delete this._models[Ye]}async computeUnicodeHighlights(Ye,mt,ze){const Ke=this._getModel(Ye);return Ke?Pe.P.computeUnicodeHighlights(Ke,mt,ze):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async findSectionHeaders(Ye,mt){const ze=this._getModel(Ye);return ze?Ht(ze,mt):[]}async computeDiff(Ye,mt,ze,Ke){const Je=this._getModel(Ye),Ne=this._getModel(mt);return!Je||!Ne?null:Gt.computeDiff(Je,Ne,ze,Ke)}static computeDiff(Ye,mt,ze,Ke){const Je=Ke==="advanced"?ne.getDefault():ne.getLegacy(),Ne=Ye.getLinesContent(),ft=mt.getLinesContent(),St=Je.computeDiff(Ne,ft,ze),rt=St.changes.length>0?!1:this._modelsAreIdentical(Ye,mt);function Ge(nt){return nt.map(it=>{var bt;return[it.original.startLineNumber,it.original.endLineNumberExclusive,it.modified.startLineNumber,it.modified.endLineNumberExclusive,(bt=it.innerChanges)===null||bt===void 0?void 0:bt.map(Dt=>[Dt.originalRange.startLineNumber,Dt.originalRange.startColumn,Dt.originalRange.endLineNumber,Dt.originalRange.endColumn,Dt.modifiedRange.startLineNumber,Dt.modifiedRange.startColumn,Dt.modifiedRange.endLineNumber,Dt.modifiedRange.endColumn])]})}return{identical:rt,quitEarly:St.hitTimeout,changes:Ge(St.changes),moves:St.moves.map(nt=>[nt.lineRangeMapping.original.startLineNumber,nt.lineRangeMapping.original.endLineNumberExclusive,nt.lineRangeMapping.modified.startLineNumber,nt.lineRangeMapping.modified.endLineNumberExclusive,Ge(nt.changes)])}}static _modelsAreIdentical(Ye,mt){const ze=Ye.getLineCount(),Ke=mt.getLineCount();if(ze!==Ke)return!1;for(let Je=1;Je<=ze;Je++){const Ne=Ye.getLineContent(Je),ft=mt.getLineContent(Je);if(Ne!==ft)return!1}return!0}async computeMoreMinimalEdits(Ye,mt,ze){const Ke=this._getModel(Ye);if(!Ke)return mt;const Je=[];let Ne;mt=mt.slice(0).sort((St,rt)=>{if(St.range&&rt.range)return G.Q.compareRangesUsingStarts(St.range,rt.range);const Ge=St.range?0:1,nt=rt.range?0:1;return Ge-nt});let ft=0;for(let St=1;StGt._diffLimit){Je.push({range:St,text:rt});continue}const it=(0,A.F1)(nt,rt,ze),bt=Ke.offsetAt(G.Q.lift(St).getStartPosition());for(const Dt of it){const At=Ke.positionAt(bt+Dt.originalStart),et=Ke.positionAt(bt+Dt.originalStart+Dt.originalLength),at={text:rt.substr(Dt.modifiedStart,Dt.modifiedLength),range:{startLineNumber:At.lineNumber,startColumn:At.column,endLineNumber:et.lineNumber,endColumn:et.column}};Ke.getValueInRange(at.range)!==at.text&&Je.push(at)}}return typeof Ne=="number"&&Je.push({eol:Ne,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),Je}async computeLinks(Ye){const mt=this._getModel(Ye);return mt?D(mt):null}async computeDefaultDocumentColors(Ye){const mt=this._getModel(Ye);return mt?qt(mt):null}async textualSuggest(Ye,mt,ze,Ke){const Je=new Ce.W,Ne=new RegExp(ze,Ke),ft=new Set;e:for(const St of Ye){const rt=this._getModel(St);if(rt){for(const Ge of rt.words(Ne))if(!(Ge===mt||!isNaN(Number(Ge)))&&(ft.add(Ge),ft.size>Gt._suggestionsLimit))break e}}return{words:Array.from(ft),duration:Je.elapsed()}}async computeWordRanges(Ye,mt,ze,Ke){const Je=this._getModel(Ye);if(!Je)return Object.create(null);const Ne=new RegExp(ze,Ke),ft=Object.create(null);for(let St=mt.startLineNumber;Stthis._host.fhr(ft,St),Ne={host:(0,L.kT)(ze,Ke),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(Ne,mt),Promise.resolve((0,L.V0)(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(Ye,mt){if(!this._foreignModule||typeof this._foreignModule[Ye]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+Ye));try{return Promise.resolve(this._foreignModule[Ye].apply(this._foreignModule,mt))}catch(ze){return Promise.reject(ze)}}}Gt._diffLimit=1e5,Gt._suggestionsLimit=1e4;function _n(Sn){return new Gt(Sn,null)}typeof importScripts=="function"&&(globalThis.monaco=(0,ve.r)());var Fn=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),An=e("./node_modules/monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js"),Hn=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),Kn=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),mi=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),yi=e("./node_modules/monaco-editor/esm/vs/base/browser/window.js"),ri=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),fi=function(Sn,Ye,mt,ze){var Ke=arguments.length,Je=Ke<3?Ye:ze===null?ze=Object.getOwnPropertyDescriptor(Ye,mt):ze,Ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Je=Reflect.decorate(Sn,Ye,mt,ze);else for(var ft=Sn.length-1;ft>=0;ft--)(Ne=Sn[ft])&&(Je=(Ke<3?Ne(Je):Ke>3?Ne(Ye,mt,Je):Ne(Ye,mt))||Je);return Ke>3&&Je&&Object.defineProperty(Ye,mt,Je),Je},Mi=function(Sn,Ye){return function(mt,ze){Ye(mt,ze,Sn)}};const xi=60*1e3,ci=5*60*1e3;function Ii(Sn,Ye){const mt=Sn.getModel(Ye);return!(!mt||mt.isTooLargeForSyncing())}let Si=class extends F.jG{constructor(Ye,mt,ze,Ke,Je){super(),this._modelService=Ye,this._workerManager=this._register(new Nn(this._modelService,Ke)),this._logService=ze,this._register(Je.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(Ne,ft)=>Ii(this._modelService,Ne.uri)?this._workerManager.withWorker().then(St=>St.computeLinks(Ne.uri)).then(St=>St&&{links:St}):Promise.resolve({links:[]})})),this._register(Je.completionProvider.register("*",new Ti(this._workerManager,mt,this._modelService,Ke)))}dispose(){super.dispose()}canComputeUnicodeHighlights(Ye){return Ii(this._modelService,Ye)}computedUnicodeHighlights(Ye,mt,ze){return this._workerManager.withWorker().then(Ke=>Ke.computedUnicodeHighlights(Ye,mt,ze))}async computeDiff(Ye,mt,ze,Ke){const Je=await this._workerManager.withWorker().then(St=>St.computeDiff(Ye,mt,ze,Ke));if(!Je)return null;return{identical:Je.identical,quitEarly:Je.quitEarly,changes:ft(Je.changes),moves:Je.moves.map(St=>new _e.t(new ee.WL(new Te.M(St[0],St[1]),new Te.M(St[2],St[3])),ft(St[4])))};function ft(St){return St.map(rt=>{var Ge;return new ee.wm(new Te.M(rt[0],rt[1]),new Te.M(rt[2],rt[3]),(Ge=rt[4])===null||Ge===void 0?void 0:Ge.map(nt=>new ee.q6(new G.Q(nt[0],nt[1],nt[2],nt[3]),new G.Q(nt[4],nt[5],nt[6],nt[7]))))})}}computeMoreMinimalEdits(Ye,mt,ze=!1){if((0,Hn.EI)(mt)){if(!Ii(this._modelService,Ye))return Promise.resolve(mt);const Ke=Ce.W.create(),Je=this._workerManager.withWorker().then(Ne=>Ne.computeMoreMinimalEdits(Ye,mt,ze));return Je.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",Ye.toString(!0),Ke.elapsed())),Promise.race([Je,(0,r.wR)(1e3).then(()=>mt)])}else return Promise.resolve(void 0)}canNavigateValueSet(Ye){return Ii(this._modelService,Ye)}navigateValueSet(Ye,mt,ze){return this._workerManager.withWorker().then(Ke=>Ke.navigateValueSet(Ye,mt,ze))}canComputeWordRanges(Ye){return Ii(this._modelService,Ye)}computeWordRanges(Ye,mt){return this._workerManager.withWorker().then(ze=>ze.computeWordRanges(Ye,mt))}findSectionHeaders(Ye,mt){return this._workerManager.withWorker().then(ze=>ze.findSectionHeaders(Ye,mt))}};Si=fi([Mi(0,Fn.S),Mi(1,An.U),Mi(2,Kn.rr),Mi(3,P.JZ),Mi(4,mi.u)],Si);class Ti{constructor(Ye,mt,ze,Ke){this.languageConfigurationService=Ke,this._debugDisplayName="wordbasedCompletions",this._workerManager=Ye,this._configurationService=mt,this._modelService=ze}async provideCompletionItems(Ye,mt){const ze=this._configurationService.getValue(Ye.uri,mt,"editor");if(ze.wordBasedSuggestions==="off")return;const Ke=[];if(ze.wordBasedSuggestions==="currentDocument")Ii(this._modelService,Ye.uri)&&Ke.push(Ye.uri);else for(const nt of this._modelService.getModels())Ii(this._modelService,nt.uri)&&(nt===Ye?Ke.unshift(nt.uri):(ze.wordBasedSuggestions==="allDocuments"||nt.getLanguageId()===Ye.getLanguageId())&&Ke.push(nt.uri));if(Ke.length===0)return;const Je=this.languageConfigurationService.getLanguageConfiguration(Ye.getLanguageId()).getWordDefinition(),Ne=Ye.getWordAtPosition(mt),ft=Ne?new G.Q(mt.lineNumber,Ne.startColumn,mt.lineNumber,Ne.endColumn):G.Q.fromPositions(mt),St=ft.setEndPosition(mt.lineNumber,mt.column),Ge=await(await this._workerManager.withWorker()).textualSuggest(Ke,Ne?.word,Je);if(Ge)return{duration:Ge.duration,suggestions:Ge.words.map(nt=>({kind:18,label:nt,insertText:nt,range:{insert:St,replace:ft}}))}}}class Nn extends F.jG{constructor(Ye,mt){super(),this.languageConfigurationService=mt,this._modelService=Ye,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new ri.Be).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(ci/2),yi.G),this._register(this._modelService.onModelRemoved(Ke=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>ci&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Ai(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class Vn extends F.jG{constructor(Ye,mt,ze){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=Ye,this._modelService=mt,!ze){const Ke=new r.vb;Ke.cancelAndSet(()=>this._checkStopModelSync(),Math.round(xi/2)),this._register(Ke)}}dispose(){for(const Ye in this._syncedModels)(0,F.AS)(this._syncedModels[Ye]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(Ye,mt){for(const ze of Ye){const Ke=ze.toString();this._syncedModels[Ke]||this._beginModelSync(ze,mt),this._syncedModels[Ke]&&(this._syncedModelsLastUsedTime[Ke]=new Date().getTime())}}_checkStopModelSync(){const Ye=new Date().getTime(),mt=[];for(const ze in this._syncedModelsLastUsedTime)Ye-this._syncedModelsLastUsedTime[ze]>xi&&mt.push(ze);for(const ze of mt)this._stopModelSync(ze)}_beginModelSync(Ye,mt){const ze=this._modelService.getModel(Ye);if(!ze||!mt&&ze.isTooLargeForSyncing())return;const Ke=Ye.toString();this._proxy.acceptNewModel({url:ze.uri.toString(),lines:ze.getLinesContent(),EOL:ze.getEOL(),versionId:ze.getVersionId()});const Je=new F.Cm;Je.add(ze.onDidChangeContent(Ne=>{this._proxy.acceptModelChanged(Ke.toString(),Ne)})),Je.add(ze.onWillDispose(()=>{this._stopModelSync(Ke)})),Je.add((0,F.s)(()=>{this._proxy.acceptRemovedModel(Ke)})),this._syncedModels[Ke]=Je}_stopModelSync(Ye){const mt=this._syncedModels[Ye];delete this._syncedModels[Ye],delete this._syncedModelsLastUsedTime[Ye],(0,F.AS)(mt)}}class Yn{constructor(Ye){this._instance=Ye,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class Di{constructor(Ye){this._workerClient=Ye}fhr(Ye,mt){return this._workerClient.fhr(Ye,mt)}}class Ai extends F.jG{constructor(Ye,mt,ze,Ke){super(),this.languageConfigurationService=Ke,this._disposed=!1,this._modelService=Ye,this._keepIdleModels=mt,this._workerFactory=new K(ze),this._worker=null,this._modelManager=null}fhr(Ye,mt){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new m(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new Di(this)))}catch(Ye){f(Ye),this._worker=new Yn(new Gt(new Di(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,Ye=>(f(Ye),this._worker=new Yn(new Gt(new Di(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(Ye){return this._modelManager||(this._modelManager=this._register(new Vn(Ye,this._modelService,this._keepIdleModels))),this._modelManager}async _withSyncedResources(Ye,mt=!1){return this._disposed?Promise.reject((0,k.aD)()):this._getProxy().then(ze=>(this._getOrCreateModelManager(ze).ensureSyncedResources(Ye,mt),ze))}computedUnicodeHighlights(Ye,mt,ze){return this._withSyncedResources([Ye]).then(Ke=>Ke.computeUnicodeHighlights(Ye.toString(),mt,ze))}computeDiff(Ye,mt,ze,Ke){return this._withSyncedResources([Ye,mt],!0).then(Je=>Je.computeDiff(Ye.toString(),mt.toString(),ze,Ke))}computeMoreMinimalEdits(Ye,mt,ze){return this._withSyncedResources([Ye]).then(Ke=>Ke.computeMoreMinimalEdits(Ye.toString(),mt,ze))}computeLinks(Ye){return this._withSyncedResources([Ye]).then(mt=>mt.computeLinks(Ye.toString()))}computeDefaultDocumentColors(Ye){return this._withSyncedResources([Ye]).then(mt=>mt.computeDefaultDocumentColors(Ye.toString()))}async textualSuggest(Ye,mt,ze){const Ke=await this._withSyncedResources(Ye),Je=ze.source,Ne=ze.flags;return Ke.textualSuggest(Ye.map(ft=>ft.toString()),mt,Je,Ne)}computeWordRanges(Ye,mt){return this._withSyncedResources([Ye]).then(ze=>{const Ke=this._modelService.getModel(Ye);if(!Ke)return Promise.resolve(null);const Je=this.languageConfigurationService.getLanguageConfiguration(Ke.getLanguageId()).getWordDefinition(),Ne=Je.source,ft=Je.flags;return ze.computeWordRanges(Ye.toString(),mt,Ne,ft)})}navigateValueSet(Ye,mt,ze){return this._withSyncedResources([Ye]).then(Ke=>{const Je=this._modelService.getModel(Ye);if(!Je)return null;const Ne=this.languageConfigurationService.getLanguageConfiguration(Je.getLanguageId()).getWordDefinition(),ft=Ne.source,St=Ne.flags;return Ke.navigateValueSet(Ye.toString(),mt,ze,ft,St)})}findSectionHeaders(Ye,mt){return this._withSyncedResources([Ye]).then(ze=>ze.findSectionHeaders(Ye.toString(),mt))}dispose(){super.dispose(),this._disposed=!0}}},"./node_modules/monaco-editor/esm/vs/editor/browser/stableEditorScroll.js":function(pt,Me,e){e.d(Me,{D:function(){return r}});class r{static capture(k){if(k.getScrollTop()===0||k.hasPendingScrollAnimation())return new r(k.getScrollTop(),k.getContentHeight(),null,0,null);let M=null,L=0;const g=k.getVisibleRanges();if(g.length>0){M=g[0].getStartPosition();const x=k.getTopForPosition(M.lineNumber,M.column);L=k.getScrollTop()-x}return new r(k.getScrollTop(),k.getContentHeight(),M,L,k.getPosition())}constructor(k,M,L,g,x){this._initialScrollTop=k,this._initialContentHeight=M,this._visiblePosition=L,this._visiblePositionScrollDelta=g,this._cursorPosition=x}restore(k){if(!(this._initialContentHeight===k.getContentHeight()&&this._initialScrollTop===k.getScrollTop())&&this._visiblePosition){const M=k.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);k.setScrollTop(M+this._visiblePositionScrollDelta)}}restoreRelativeVerticalPositionOfCursor(k){if(this._initialContentHeight===k.getContentHeight()&&this._initialScrollTop===k.getScrollTop())return;const M=k.getPosition();if(!this._cursorPosition||!M)return;const L=k.getTopForLineNumber(M.lineNumber)-k.getTopForLineNumber(this._cursorPosition.lineNumber);k.setScrollTop(k.getScrollTop()+L)}}},"./node_modules/monaco-editor/esm/vs/editor/browser/view/renderingContext.js":function(pt,Me,e){e.d(Me,{BG:function(){return k},IO:function(){return L},Y:function(){return M},eh:function(){return F},pj:function(){return x},qN:function(){return g}});class r{constructor(S,f){this._restrictedRenderingContextBrand=void 0,this._viewLayout=S,this.viewportData=f,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;const d=this._viewLayout.getCurrentViewport();this.scrollTop=d.top,this.scrollLeft=d.left,this.viewportWidth=d.width,this.viewportHeight=d.height}getScrolledTopFromAbsoluteTop(S){return S-this.scrollTop}getVerticalOffsetForLineNumber(S,f){return this._viewLayout.getVerticalOffsetForLineNumber(S,f)}getVerticalOffsetAfterLineNumber(S,f){return this._viewLayout.getVerticalOffsetAfterLineNumber(S,f)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class F extends r{constructor(S,f,d){super(S,f),this._renderingContextBrand=void 0,this._viewLines=d}linesVisibleRangesForRange(S,f){return this._viewLines.linesVisibleRangesForRange(S,f)}visibleRangeForPosition(S){return this._viewLines.visibleRangeForPosition(S)}}class k{constructor(S,f,d,a){this.outsideRenderedLine=S,this.lineNumber=f,this.ranges=d,this.continuesOnNextLine=a}}class M{static from(S){const f=new Array(S.length);for(let d=0,a=S.length;d=K.left?w.width=Math.max(w.width,K.left+K.width-w.left):(b[O++]=w,w=K)}return b[O++]=w,b}static _createHorizontalRangesFromClientRects(p,b,O){if(!p||p.length===0)return null;const w=[];for(let j=0,U=p.length;jG)return null;if(b=Math.min(G,Math.max(0,b)),w=Math.min(G,Math.max(0,w)),b===w&&O===j&&O===0&&!p.children[b].firstChild){const E=p.children[b].getClientRects();return U.markDidDomLayout(),this._createHorizontalRangesFromClientRects(E,U.clientRectDeltaLeft,U.clientRectScale)}b!==w&&w>0&&j===0&&(w--,j=1073741824);let P=p.children[b].firstChild,A=p.children[w].firstChild;if((!P||!A)&&(!P&&O===0&&b>0&&(P=p.children[b-1].firstChild,O=1073741824),!A&&j===0&&w>0&&(A=p.children[w-1].firstChild,j=1073741824)),!P||!A)return null;O=Math.min(P.textContent.length,Math.max(0,O)),j=Math.min(A.textContent.length,Math.max(0,j));const T=this._readClientRects(P,O,A,j,U.endNode);return U.markDidDomLayout(),this._createHorizontalRangesFromClientRects(T,U.clientRectDeltaLeft,U.clientRectScale)}}var g=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js");const f=function(){return k.ib?!0:!(k.j9||r.gm||r.nr)}();let d=!0;class a{constructor(p,b){this.themeType=b;const O=p.options,w=O.get(50);O.get(38)==="off"?this.renderWhitespace=O.get(99):this.renderWhitespace="none",this.renderControlCharacters=O.get(94),this.spaceWidth=w.spaceWidth,this.middotWidth=w.middotWidth,this.wsmiddotWidth=w.wsmiddotWidth,this.useMonospaceOptimizations=w.isMonospace&&!O.get(33),this.canUseHalfwidthRightwardsArrow=w.canUseHalfwidthRightwardsArrow,this.lineHeight=O.get(67),this.stopRenderingLineAfter=O.get(117),this.fontLigatures=O.get(51)}equals(p){return this.themeType===p.themeType&&this.renderWhitespace===p.renderWhitespace&&this.renderControlCharacters===p.renderControlCharacters&&this.spaceWidth===p.spaceWidth&&this.middotWidth===p.middotWidth&&this.wsmiddotWidth===p.wsmiddotWidth&&this.useMonospaceOptimizations===p.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===p.canUseHalfwidthRightwardsArrow&&this.lineHeight===p.lineHeight&&this.stopRenderingLineAfter===p.stopRenderingLineAfter&&this.fontLigatures===p.fontLigatures}}class s{constructor(p){this._options=p,this._isMaybeInvalid=!0,this._renderedViewLine=null}getDomNode(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null}setDomNode(p){if(this._renderedViewLine)this._renderedViewLine.domNode=(0,F.Z)(p);else throw new Error("I have no rendered view line to set the dom node to...")}onContentChanged(){this._isMaybeInvalid=!0}onTokensChanged(){this._isMaybeInvalid=!0}onDecorationsChanged(){this._isMaybeInvalid=!0}onOptionsChanged(p){this._isMaybeInvalid=!0,this._options=p}onSelectionChanged(){return(0,I.Bb)(this._options.themeType)||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1}renderLine(p,b,O,w,j){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;const U=w.getViewLineRenderingData(p),K=this._options,G=g.d.filter(U.inlineDecorations,p,U.minColumn,U.maxColumn);let P=null;if((0,I.Bb)(K.themeType)||this._options.renderWhitespace==="selection"){const W=w.selections;for(const $ of W){if($.endLineNumberp)continue;const z=$.startLineNumber===p?$.startColumn:U.minColumn,J=$.endLineNumber===p?$.endColumn:U.maxColumn;z');const T=(0,x.UW)(A,j);j.appendString("");let E=null;return d&&f&&U.isBasicASCII&&K.useMonospaceOptimizations&&T.containsForeignElements===0&&(E=new n(this._renderedViewLine?this._renderedViewLine.domNode:null,A,T.characterMapping)),E||(E=m(this._renderedViewLine?this._renderedViewLine.domNode:null,A,T.characterMapping,T.containsRTL,T.containsForeignElements)),this._renderedViewLine=E,!0}layoutLine(p,b,O){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(b),this._renderedViewLine.domNode.setHeight(O))}getWidth(p){return this._renderedViewLine?this._renderedViewLine.getWidth(p):0}getWidthIsFast(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0}needsMonospaceFontCheck(){return this._renderedViewLine?this._renderedViewLine instanceof n:!1}monospaceAssumptionsAreValid(){return this._renderedViewLine&&this._renderedViewLine instanceof n?this._renderedViewLine.monospaceAssumptionsAreValid():d}onMonospaceAssumptionsInvalidated(){this._renderedViewLine&&this._renderedViewLine instanceof n&&(this._renderedViewLine=this._renderedViewLine.toSlowRenderedLine())}getVisibleRangesForRange(p,b,O,w){if(!this._renderedViewLine)return null;b=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,b)),O=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,O));const j=this._renderedViewLine.input.stopRenderingLineAfter;if(j!==-1&&b>j+1&&O>j+1)return new M.pj(!0,[new M.IO(this.getWidth(w),0)]);j!==-1&&b>j+1&&(b=j+1),j!==-1&&O>j+1&&(O=j+1);const U=this._renderedViewLine.getVisibleRangesForRange(p,b,O,w);return U&&U.length>0?new M.pj(!1,U):null}getColumnOfNodeOffset(p,b){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(p,b):1}}s.CLASS_NAME="view-line";class n{constructor(p,b,O){this._cachedWidth=-1,this.domNode=p,this.input=b;const w=Math.floor(b.lineContent.length/300);if(w>0){this._keyColumnPixelOffsetCache=new Float32Array(w);for(let j=0;j=2&&(console.warn("monospace assumptions have been violated, therefore disabling monospace optimizations!"),d=!1)}return d}toSlowRenderedLine(){return m(this.domNode,this.input,this._characterMapping,!1,0)}getVisibleRangesForRange(p,b,O,w){const j=this._getColumnPixelOffset(p,b,w),U=this._getColumnPixelOffset(p,O,w);return[new M.IO(j,U-j)]}_getColumnPixelOffset(p,b,O){if(b<=300){const P=this._characterMapping.getHorizontalOffset(b);return this._charWidth*P}const w=Math.floor((b-1)/300)-1,j=(w+1)*300+1;let U=-1;if(this._keyColumnPixelOffsetCache&&(U=this._keyColumnPixelOffsetCache[w],U===-1&&(U=this._actualReadPixelOffset(p,j,O),this._keyColumnPixelOffsetCache[w]=U)),U===-1){const P=this._characterMapping.getHorizontalOffset(b);return this._charWidth*P}const K=this._characterMapping.getHorizontalOffset(j),G=this._characterMapping.getHorizontalOffset(b);return U+this._charWidth*(G-K)}_getReadingTarget(p){return p.domNode.firstChild}_actualReadPixelOffset(p,b,O){if(!this.domNode)return-1;const w=this._characterMapping.getDomPosition(b),j=L.readHorizontalRanges(this._getReadingTarget(this.domNode),w.partIndex,w.charIndex,w.partIndex,w.charIndex,O);return!j||j.length===0?-1:j[0].left}getColumnOfNodeOffset(p,b){return h(this._characterMapping,p,b)}}class i{constructor(p,b,O,w,j){if(this.domNode=p,this.input=b,this._characterMapping=O,this._isWhitespaceOnly=/^\s*$/.test(b.lineContent),this._containsForeignElements=j,this._cachedWidth=-1,this._pixelOffsetCache=null,!w||this._characterMapping.length===0){this._pixelOffsetCache=new Float32Array(Math.max(2,this._characterMapping.length+1));for(let U=0,K=this._characterMapping.length;U<=K;U++)this._pixelOffsetCache[U]=-1}}_getReadingTarget(p){return p.domNode.firstChild}getWidth(p){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth,p?.markDidDomLayout()),this._cachedWidth):0}getWidthIsFast(){return this._cachedWidth!==-1}getVisibleRangesForRange(p,b,O,w){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){const j=this._readPixelOffset(this.domNode,p,b,w);if(j===-1)return null;const U=this._readPixelOffset(this.domNode,p,O,w);return U===-1?null:[new M.IO(j,U-j)]}return this._readVisibleRangesForRange(this.domNode,p,b,O,w)}_readVisibleRangesForRange(p,b,O,w,j){if(O===w){const U=this._readPixelOffset(p,b,O,j);return U===-1?null:[new M.IO(U,0)]}else return this._readRawVisibleRangesForRange(p,O,w,j)}_readPixelOffset(p,b,O,w){if(this._characterMapping.length===0){if(this._containsForeignElements===0||this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth(w);const j=this._getReadingTarget(p);return j.firstChild?(w.markDidDomLayout(),j.firstChild.offsetWidth):0}if(this._pixelOffsetCache!==null){const j=this._pixelOffsetCache[O];if(j!==-1)return j;const U=this._actualReadPixelOffset(p,b,O,w);return this._pixelOffsetCache[O]=U,U}return this._actualReadPixelOffset(p,b,O,w)}_actualReadPixelOffset(p,b,O,w){if(this._characterMapping.length===0){const G=L.readHorizontalRanges(this._getReadingTarget(p),0,0,0,0,w);return!G||G.length===0?-1:G[0].left}if(O===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth(w);const j=this._characterMapping.getDomPosition(O),U=L.readHorizontalRanges(this._getReadingTarget(p),j.partIndex,j.charIndex,j.partIndex,j.charIndex,w);if(!U||U.length===0)return-1;const K=U[0].left;if(this.input.isBasicASCII){const G=this._characterMapping.getHorizontalOffset(O),P=Math.round(this.input.spaceWidth*G);if(Math.abs(P-K)<=1)return P}return K}_readRawVisibleRangesForRange(p,b,O,w){if(b===1&&O===this._characterMapping.length)return[new M.IO(0,this.getWidth(w))];const j=this._characterMapping.getDomPosition(b),U=this._characterMapping.getDomPosition(O);return L.readHorizontalRanges(this._getReadingTarget(p),j.partIndex,j.charIndex,U.partIndex,U.charIndex,w)}getColumnOfNodeOffset(p,b){return h(this._characterMapping,p,b)}}class c extends i{_readVisibleRangesForRange(p,b,O,w,j){const U=super._readVisibleRangesForRange(p,b,O,w,j);if(!U||U.length===0||O===w||O===1&&w===this._characterMapping.length)return U;if(!this.input.containsRTL){const K=this._readPixelOffset(p,b,w,j);if(K!==-1){const G=U[U.length-1];G.left=0;ke--)(pe=Pt[ke])&&(Z=(H<3?pe(Z):H>3?pe(t,l,Z):pe(t,l))||Z);return H>3&&Z&&Object.defineProperty(t,l,Z),Z},M=function(Pt,t){return function(l,y){t(l,y,Pt)}};let L=class{constructor(t,l){}dispose(){}};L.ID="editor.contrib.markerDecorations",L=k([M(1,r.A)],L),(0,F.HW)(L.ID,L,0);var g=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/domFontInfo.js"),a=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),i=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/elementSizeObserver.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/fontMeasurements.js");class u{constructor(t,l){this.key=t,this.migrate=l}apply(t){const l=u._read(t,this.key),y=Z=>u._read(t,Z),H=(Z,pe)=>u._write(t,Z,pe);this.migrate(l,y,H)}static _read(t,l){if(typeof t>"u")return;const y=l.indexOf(".");if(y>=0){const H=l.substring(0,y);return this._read(t[H],l.substring(y+1))}return t[l]}static _write(t,l,y){const H=l.indexOf(".");if(H>=0){const Z=l.substring(0,H);t[Z]=t[Z]||{},this._write(t[Z],l.substring(H+1),y);return}t[l]=y}}u.items=[];function C(Pt,t){u.items.push(new u(Pt,t))}function h(Pt,t){C(Pt,(l,y,H)=>{if(typeof l<"u"){for(const[Z,pe]of t)if(l===Z){H(Pt,pe);return}}})}function v(Pt){u.items.forEach(t=>t.apply(Pt))}h("wordWrap",[[!0,"on"],[!1,"off"]]),h("lineNumbers",[[!0,"on"],[!1,"off"]]),h("cursorBlinking",[["visible","solid"]]),h("renderWhitespace",[[!0,"boundary"],[!1,"none"]]),h("renderLineHighlight",[[!0,"line"],[!1,"none"]]),h("acceptSuggestionOnEnter",[[!0,"on"],[!1,"off"]]),h("tabCompletion",[[!1,"off"],[!0,"onlySnippets"]]),h("hover",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),h("parameterHints",[[!0,{enabled:!0}],[!1,{enabled:!1}]]),h("autoIndent",[[!1,"advanced"],[!0,"full"]]),h("matchBrackets",[[!0,"always"],[!1,"never"]]),h("renderFinalNewline",[[!0,"on"],[!1,"off"]]),h("cursorSmoothCaretAnimation",[[!0,"on"],[!1,"off"]]),h("occurrencesHighlight",[[!0,"singleFile"],[!1,"off"]]),h("wordBasedSuggestions",[[!0,"matchingDocuments"],[!1,"off"]]),C("autoClosingBrackets",(Pt,t,l)=>{Pt===!1&&(l("autoClosingBrackets","never"),typeof t("autoClosingQuotes")>"u"&&l("autoClosingQuotes","never"),typeof t("autoSurround")>"u"&&l("autoSurround","never"))}),C("renderIndentGuides",(Pt,t,l)=>{typeof Pt<"u"&&(l("renderIndentGuides",void 0),typeof t("guides.indentation")>"u"&&l("guides.indentation",!!Pt))}),C("highlightActiveIndentGuide",(Pt,t,l)=>{typeof Pt<"u"&&(l("highlightActiveIndentGuide",void 0),typeof t("guides.highlightActiveIndentation")>"u"&&l("guides.highlightActiveIndentation",!!Pt))});const p={method:"showMethods",function:"showFunctions",constructor:"showConstructors",deprecated:"showDeprecated",field:"showFields",variable:"showVariables",class:"showClasses",struct:"showStructs",interface:"showInterfaces",module:"showModules",property:"showProperties",event:"showEvents",operator:"showOperators",unit:"showUnits",value:"showValues",constant:"showConstants",enum:"showEnums",enumMember:"showEnumMembers",keyword:"showKeywords",text:"showWords",color:"showColors",file:"showFiles",reference:"showReferences",folder:"showFolders",typeParameter:"showTypeParameters",snippet:"showSnippets"};C("suggest.filteredTypes",(Pt,t,l)=>{if(Pt&&typeof Pt=="object"){for(const y of Object.entries(p))Pt[y[0]]===!1&&typeof t(`suggest.${y[1]}`)>"u"&&l(`suggest.${y[1]}`,!1);l("suggest.filteredTypes",void 0)}}),C("quickSuggestions",(Pt,t,l)=>{if(typeof Pt=="boolean"){const y=Pt?"on":"off";l("quickSuggestions",{comments:y,strings:y,other:y})}}),C("experimental.stickyScroll.enabled",(Pt,t,l)=>{typeof Pt=="boolean"&&(l("experimental.stickyScroll.enabled",void 0),typeof t("stickyScroll.enabled")>"u"&&l("stickyScroll.enabled",Pt))}),C("experimental.stickyScroll.maxLineCount",(Pt,t,l)=>{typeof Pt=="number"&&(l("experimental.stickyScroll.maxLineCount",void 0),typeof t("stickyScroll.maxLineCount")>"u"&&l("stickyScroll.maxLineCount",Pt))}),C("codeActionsOnSave",(Pt,t,l)=>{if(Pt&&typeof Pt=="object"){let y=!1;const H={};for(const Z of Object.entries(Pt))typeof Z[1]=="boolean"?(y=!0,H[Z[0]]=Z[1]?"explicit":"never"):H[Z[0]]=Z[1];y&&l("codeActionsOnSave",H)}}),C("codeActionWidget.includeNearbyQuickfixes",(Pt,t,l)=>{typeof Pt=="boolean"&&(l("codeActionWidget.includeNearbyQuickfixes",void 0),typeof t("codeActionWidget.includeNearbyQuickFixes")>"u"&&l("codeActionWidget.includeNearbyQuickFixes",Pt))}),C("lightbulb.enabled",(Pt,t,l)=>{typeof Pt=="boolean"&&l("lightbulb.enabled",Pt?void 0:"off")});var b=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/tabFocus.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),w=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorZoom.js"),j=e("./node_modules/monaco-editor/esm/vs/editor/common/config/fontInfo.js"),U=e("./node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js"),K=e("./node_modules/monaco-editor/esm/vs/base/browser/pixelRatio.js"),G=function(Pt,t,l,y){var H=arguments.length,Z=H<3?t:y===null?y=Object.getOwnPropertyDescriptor(t,l):y,pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Z=Reflect.decorate(Pt,t,l,y);else for(var ke=Pt.length-1;ke>=0;ke--)(pe=Pt[ke])&&(Z=(H<3?pe(Z):H>3?pe(t,l,Z):pe(t,l))||Z);return H>3&&Z&&Object.defineProperty(t,l,Z),Z},P=function(Pt,t){return function(l,y){t(l,y,Pt)}};let A=class extends S.jG{constructor(t,l,y,H){super(),this._accessibilityService=H,this._onDidChange=this._register(new I.vl),this.onDidChange=this._onDidChange.event,this._onDidChangeFast=this._register(new I.vl),this.onDidChangeFast=this._onDidChangeFast.event,this._isDominatedByLongLines=!1,this._viewLineCount=1,this._lineNumbersDigitCount=1,this._reservedHeight=0,this._glyphMarginDecorationLaneCount=1,this._computeOptionsMemory=new O.n0,this.isSimpleWidget=t,this._containerObserver=this._register(new c.u(y,l.dimension)),this._targetWindowId=(0,g.zk)(y).vscodeWindowId,this._rawOptions=J(l),this._validatedOptions=z.validateOptions(this._rawOptions),this.options=this._computeOptions(),this.options.get(13)&&this._containerObserver.startObserving(),this._register(w.D.onDidChangeZoomLevel(()=>this._recomputeOptions())),this._register(b.M.onDidChangeTabFocus(()=>this._recomputeOptions())),this._register(this._containerObserver.onDidChange(()=>this._recomputeOptions())),this._register(m.T.onDidChange(()=>this._recomputeOptions())),this._register(K.c.getInstance((0,g.zk)(y)).onDidChange(()=>this._recomputeOptions())),this._register(this._accessibilityService.onDidChangeScreenReaderOptimized(()=>this._recomputeOptions()))}_recomputeOptions(){const t=this._computeOptions(),l=z.checkEquals(this.options,t);l!==null&&(this.options=t,this._onDidChangeFast.fire(l),this._onDidChange.fire(l))}_computeOptions(){const t=this._readEnvConfiguration(),l=j._8.createFromValidatedSettings(this._validatedOptions,t.pixelRatio,this.isSimpleWidget),y=this._readFontInfo(l),H={memory:this._computeOptionsMemory,outerWidth:t.outerWidth,outerHeight:t.outerHeight-this._reservedHeight,fontInfo:y,extraEditorClassName:t.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,viewLineCount:this._viewLineCount,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:t.emptySelectionClipboard,pixelRatio:t.pixelRatio,tabFocusMode:b.M.getTabFocusMode(),accessibilitySupport:t.accessibilitySupport,glyphMarginDecorationLaneCount:this._glyphMarginDecorationLaneCount};return z.computeOptions(this._validatedOptions,H)}_readEnvConfiguration(){return{extraEditorClassName:E(),outerWidth:this._containerObserver.getWidth(),outerHeight:this._containerObserver.getHeight(),emptySelectionClipboard:a.Tc||a.gm,pixelRatio:K.c.getInstance((0,g.ZF)(this._targetWindowId,!0).window).value,accessibilitySupport:this._accessibilityService.isScreenReaderOptimized()?2:this._accessibilityService.getAccessibilitySupport()}}_readFontInfo(t){return m.T.readFontInfo((0,g.ZF)(this._targetWindowId,!0).window,t)}getRawOptions(){return this._rawOptions}updateOptions(t){const l=J(t);z.applyUpdate(this._rawOptions,l)&&(this._validatedOptions=z.validateOptions(this._rawOptions),this._recomputeOptions())}observeContainer(t){this._containerObserver.observe(t)}setIsDominatedByLongLines(t){this._isDominatedByLongLines!==t&&(this._isDominatedByLongLines=t,this._recomputeOptions())}setModelLineCount(t){const l=T(t);this._lineNumbersDigitCount!==l&&(this._lineNumbersDigitCount=l,this._recomputeOptions())}setViewLineCount(t){this._viewLineCount!==t&&(this._viewLineCount=t,this._recomputeOptions())}setReservedHeight(t){this._reservedHeight!==t&&(this._reservedHeight=t,this._recomputeOptions())}setGlyphMarginDecorationLaneCount(t){this._glyphMarginDecorationLaneCount!==t&&(this._glyphMarginDecorationLaneCount=t,this._recomputeOptions())}};A=G([P(3,U.j)],A);function T(Pt){let t=0;for(;Pt;)Pt=Math.floor(Pt/10),t++;return t||1}function E(){let Pt="";return!a.nr&&!a.c8&&(Pt+="no-user-select "),a.nr&&(Pt+="no-minimap-shadow ",Pt+="enable-user-select "),i.zx&&(Pt+="mac "),Pt}class W{constructor(){this._values=[]}_read(t){return this._values[t]}get(t){return this._values[t]}_write(t,l){this._values[t]=l}}class ${constructor(){this._values=[]}_read(t){if(t>=this._values.length)throw new Error("Cannot read uninitialized value");return this._values[t]}get(t){return this._read(t)}_write(t,l){this._values[t]=l}}class z{static validateOptions(t){const l=new W;for(const y of O.BE){const H=y.name==="_never_"?void 0:t[y.name];l._write(y.id,y.validate(H))}return l}static computeOptions(t,l){const y=new $;for(const H of O.BE)y._write(H.id,H.compute(l,y,t._read(H.id)));return y}static _deepEquals(t,l){if(typeof t!="object"||typeof l!="object"||!t||!l)return t===l;if(Array.isArray(t)||Array.isArray(l))return Array.isArray(t)&&Array.isArray(l)?s.aI(t,l):!1;if(Object.keys(t).length!==Object.keys(l).length)return!1;for(const y in t)if(!z._deepEquals(t[y],l[y]))return!1;return!0}static checkEquals(t,l){const y=[];let H=!1;for(const Z of O.BE){const pe=!z._deepEquals(t._read(Z.id),l._read(Z.id));y[Z.id]=pe,pe&&(H=!0)}return H?new O.lw(y):null}static applyUpdate(t,l){let y=!1;for(const H of O.BE)if(l.hasOwnProperty(H.name)){const Z=H.applyUpdate(t[H.name],l[H.name]);t[H.name]=Z.newValue,y=y||Z.didChange}return y}}function J(Pt){const t=n.Go(Pt);return v(t),t}var B=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),V=e("./node_modules/monaco-editor/esm/vs/base/browser/fastDomNode.js"),Y=e("./node_modules/monaco-editor/esm/vs/base/browser/performance.js"),X=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorDom.js");class ie extends S.jG{constructor(){super(),this._shouldRender=!0}shouldRender(){return this._shouldRender}forceShouldRender(){this._shouldRender=!0}setShouldRender(){this._shouldRender=!0}onDidRender(){this._shouldRender=!1}onCompositionStart(t){return!1}onCompositionEnd(t){return!1}onConfigurationChanged(t){return!1}onCursorStateChanged(t){return!1}onDecorationsChanged(t){return!1}onFlushed(t){return!1}onFocusChanged(t){return!1}onLanguageConfigurationChanged(t){return!1}onLineMappingChanged(t){return!1}onLinesChanged(t){return!1}onLinesDeleted(t){return!1}onLinesInserted(t){return!1}onRevealRangeRequest(t){return!1}onScrollChanged(t){return!1}onThemeChanged(t){return!1}onTokensChanged(t){return!1}onTokensColorsChanged(t){return!1}onZonesChanged(t){return!1}handleEvents(t){let l=!1;for(let y=0,H=t.length;y=4&&t[0]===3&&t[3]===8}static isStrictChildOfViewLines(t){return t.length>4&&t[0]===3&&t[3]===8}static isChildOfScrollableElement(t){return t.length>=2&&t[0]===3&&t[1]===6}static isChildOfMinimap(t){return t.length>=2&&t[0]===3&&t[1]===9}static isChildOfContentWidgets(t){return t.length>=4&&t[0]===3&&t[3]===1}static isChildOfOverflowGuard(t){return t.length>=1&&t[0]===3}static isChildOfOverflowingContentWidgets(t){return t.length>=1&&t[0]===2}static isChildOfOverlayWidgets(t){return t.length>=2&&t[0]===3&&t[1]===4}static isChildOfOverflowingOverlayWidgets(t){return t.length>=1&&t[0]===5}}class q{constructor(t,l,y){this.viewModel=t.viewModel;const H=t.configuration.options;this.layoutInfo=H.get(145),this.viewDomNode=l.viewDomNode,this.lineHeight=H.get(67),this.stickyTabStops=H.get(116),this.typicalHalfwidthCharacterWidth=H.get(50).typicalHalfwidthCharacterWidth,this.lastRenderData=y,this._context=t,this._viewHelper=l}getZoneAtCoord(t){return q.getZoneAtCoord(this._context,t)}static getZoneAtCoord(t,l){const y=t.viewLayout.getWhitespaceAtVerticalOffset(l);if(y){const H=y.verticalOffset+y.height/2,Z=t.viewModel.getLineCount();let pe=null,ke,Ve=null;return y.afterLineNumber!==Z&&(Ve=new he.y(y.afterLineNumber+1,1)),y.afterLineNumber>0&&(pe=new he.y(y.afterLineNumber,t.viewModel.getLineMaxColumn(y.afterLineNumber))),Ve===null?ke=pe:pe===null?ke=Ve:l=t.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ae._getMouseColumn(this.mouseContentHorizontalOffset,t.typicalHalfwidthCharacterWidth))}}class ge extends ye{get target(){return this._useHitTestTarget?this.hitTestResult.value.hitTarget:this._eventTarget}get targetPath(){return this._targetPathCacheElement!==this.target&&(this._targetPathCacheElement=this.target,this._targetPathCacheValue=te.collect(this.target,this._ctx.viewDomNode)),this._targetPathCacheValue}constructor(t,l,y,H,Z){super(t,l,y,H),this.hitTestResult=new _e.d(()=>ae.doHitTest(this._ctx,this)),this._targetPathCacheElement=null,this._targetPathCacheValue=new Uint8Array(0),this._ctx=t,this._eventTarget=Z;const pe=!!this._eventTarget;this._useHitTestTarget=!pe}toString(){return`pos(${this.pos.x},${this.pos.y}), editorPos(${this.editorPos.x},${this.editorPos.y}), relativePos(${this.relativePos.x},${this.relativePos.y}), mouseVerticalOffset: ${this.mouseVerticalOffset}, mouseContentHorizontalOffset: ${this.mouseContentHorizontalOffset} target: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&this.hitTestResult.value.hitTarget!==null&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(t=null){return t&&t.columnpe.contentLeft+pe.width)continue;const ke=t.getVerticalOffsetForLineNumber(pe.position.lineNumber);if(ke<=Z&&Z<=ke+pe.height)return l.fulfillContentText(pe.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(t,l){const y=t.getZoneAtCoord(l.mouseVerticalOffset);if(y){const H=l.isInContentArea?8:5;return l.fulfillViewZone(H,y.position,y)}return null}static _hitTestTextArea(t,l){return Qe.isTextArea(l.targetPath)?t.lastRenderData.lastTextareaPosition?l.fulfillContentText(t.lastRenderData.lastTextareaPosition,null,{mightBeForeignElement:!1,injectedText:null}):l.fulfillTextarea():null}static _hitTestMargin(t,l){if(l.isInMarginArea){const y=t.getFullLineRangeAtCoord(l.mouseVerticalOffset),H=y.range.getStartPosition();let Z=Math.abs(l.relativePos.x);const pe={isAfterLines:y.isAfterLines,glyphMarginLeft:t.layoutInfo.glyphMarginLeft,glyphMarginWidth:t.layoutInfo.glyphMarginWidth,lineNumbersWidth:t.layoutInfo.lineNumbersWidth,offsetX:Z};if(Z-=t.layoutInfo.glyphMarginLeft,Z<=t.layoutInfo.glyphMarginWidth){const ke=t.viewModel.coordinatesConverter.convertViewPositionToModelPosition(y.range.getStartPosition()),Ve=t.viewModel.glyphLanes.getLanesAtLine(ke.lineNumber);return pe.glyphMarginLane=Ve[Math.floor(Z/t.lineHeight)],l.fulfillMargin(2,H,y.range,pe)}return Z-=t.layoutInfo.glyphMarginWidth,Z<=t.layoutInfo.lineNumbersWidth?l.fulfillMargin(3,H,y.range,pe):(Z-=t.layoutInfo.lineNumbersWidth,l.fulfillMargin(4,H,y.range,pe))}return null}static _hitTestViewLines(t,l){if(!Qe.isChildOfViewLines(l.targetPath))return null;if(t.isInTopPadding(l.mouseVerticalOffset))return l.fulfillContentEmpty(new he.y(1,1),be);if(t.isAfterLines(l.mouseVerticalOffset)||t.isInBottomPadding(l.mouseVerticalOffset)){const H=t.viewModel.getLineCount(),Z=t.viewModel.getLineMaxColumn(H);return l.fulfillContentEmpty(new he.y(H,Z),be)}if(Qe.isStrictChildOfViewLines(l.targetPath)){const H=t.getLineNumberAtVerticalOffset(l.mouseVerticalOffset);if(t.viewModel.getLineLength(H)===0){const pe=t.getLineWidth(H),ke=Se(l.mouseContentHorizontalOffset-pe);return l.fulfillContentEmpty(new he.y(H,1),ke)}const Z=t.getLineWidth(H);if(l.mouseContentHorizontalOffset>=Z){const pe=Se(l.mouseContentHorizontalOffset-Z),ke=new he.y(H,t.viewModel.getLineMaxColumn(H));return l.fulfillContentEmpty(ke,pe)}}const y=l.hitTestResult.value;return y.type===1?ae.createMouseTargetFromHitTestPosition(t,l,y.spanNode,y.position,y.injectedText):l.wouldBenefitFromHitTestTargetSwitch?(l.switchToHitTestTarget(),this._createMouseTarget(t,l)):l.fulfillUnknown()}static _hitTestMinimap(t,l){if(Qe.isChildOfMinimap(l.targetPath)){const y=t.getLineNumberAtVerticalOffset(l.mouseVerticalOffset),H=t.viewModel.getLineMaxColumn(y);return l.fulfillScrollbar(new he.y(y,H))}return null}static _hitTestScrollbarSlider(t,l){if(Qe.isChildOfScrollableElement(l.targetPath)&&l.target&&l.target.nodeType===1){const y=l.target.className;if(y&&/\b(slider|scrollbar)\b/.test(y)){const H=t.getLineNumberAtVerticalOffset(l.mouseVerticalOffset),Z=t.viewModel.getLineMaxColumn(H);return l.fulfillScrollbar(new he.y(H,Z))}}return null}static _hitTestScrollbar(t,l){if(Qe.isChildOfScrollableElement(l.targetPath)){const y=t.getLineNumberAtVerticalOffset(l.mouseVerticalOffset),H=t.viewModel.getLineMaxColumn(y);return l.fulfillScrollbar(new he.y(y,H))}return null}getMouseColumn(t){const l=this._context.configuration.options,y=l.get(145),H=this._context.viewLayout.getCurrentScrollLeft()+t.x-y.contentLeft;return ae._getMouseColumn(H,l.get(50).typicalHalfwidthCharacterWidth)}static _getMouseColumn(t,l){return t<0?1:Math.round(t/l)+1}static createMouseTargetFromHitTestPosition(t,l,y,H,Z){const pe=H.lineNumber,ke=H.column,Ve=t.getLineWidth(pe);if(l.mouseContentHorizontalOffset>Ve){const mn=Se(l.mouseContentHorizontalOffset-Ve);return l.fulfillContentEmpty(H,mn)}const Xe=t.visibleRangeForPosition(pe,ke);if(!Xe)return l.fulfillUnknown(H);const gt=Xe.left;if(Math.abs(l.mouseContentHorizontalOffset-gt)<1)return l.fulfillContentText(H,null,{mightBeForeignElement:!!Z,injectedText:Z});const Ct=[];if(Ct.push({offset:Xe.left,column:ke}),ke>1){const mn=t.visibleRangeForPosition(pe,ke-1);mn&&Ct.push({offset:mn.left,column:ke-1})}const It=t.viewModel.getLineMaxColumn(pe);if(kemn.offset-Mn.offset);const Bt=l.pos.toClientCoordinates(g.zk(t.viewDomNode)),Yt=y.getBoundingClientRect(),tn=Yt.left<=Bt.clientX&&Bt.clientX<=Yt.right;let gn=null;for(let mn=1;mnZ)){const ke=Math.floor((H+Z)/2);let Ve=l.pos.y+(ke-l.mouseVerticalOffset);Ve<=l.editorPos.y&&(Ve=l.editorPos.y+1),Ve>=l.editorPos.y+l.editorPos.height&&(Ve=l.editorPos.y+l.editorPos.height-1);const Xe=new X.nz(l.pos.x,Ve),gt=this._actualDoHitTestWithCaretRangeFromPoint(t,Xe.toClientCoordinates(g.zk(t.viewDomNode)));if(gt.type===1)return gt}return this._actualDoHitTestWithCaretRangeFromPoint(t,l.pos.toClientCoordinates(g.zk(t.viewDomNode)))}static _actualDoHitTestWithCaretRangeFromPoint(t,l){const y=g.jG(t.viewDomNode);let H;if(y?typeof y.caretRangeFromPoint>"u"?H=me(y,l.clientX,l.clientY):H=y.caretRangeFromPoint(l.clientX,l.clientY):H=t.viewDomNode.ownerDocument.caretRangeFromPoint(l.clientX,l.clientY),!H||!H.startContainer)return new ee;const Z=H.startContainer;if(Z.nodeType===Z.TEXT_NODE){const pe=Z.parentNode,ke=pe?pe.parentNode:null,Ve=ke?ke.parentNode:null;return(Ve&&Ve.nodeType===Ve.ELEMENT_NODE?Ve.className:null)===D.Gb.CLASS_NAME?Te.createFromDOMInfo(t,pe,H.startOffset):new ee(Z.parentNode)}else if(Z.nodeType===Z.ELEMENT_NODE){const pe=Z.parentNode,ke=pe?pe.parentNode:null;return(ke&&ke.nodeType===ke.ELEMENT_NODE?ke.className:null)===D.Gb.CLASS_NAME?Te.createFromDOMInfo(t,Z,Z.textContent.length):new ee(Z)}return new ee}static _doHitTestWithCaretPositionFromPoint(t,l){const y=t.viewDomNode.ownerDocument.caretPositionFromPoint(l.clientX,l.clientY);if(y.offsetNode.nodeType===y.offsetNode.TEXT_NODE){const H=y.offsetNode.parentNode,Z=H?H.parentNode:null,pe=Z?Z.parentNode:null;return(pe&&pe.nodeType===pe.ELEMENT_NODE?pe.className:null)===D.Gb.CLASS_NAME?Te.createFromDOMInfo(t,y.offsetNode.parentNode,y.offset):new ee(y.offsetNode.parentNode)}if(y.offsetNode.nodeType===y.offsetNode.ELEMENT_NODE){const H=y.offsetNode.parentNode,Z=H&&H.nodeType===H.ELEMENT_NODE?H.className:null,pe=H?H.parentNode:null,ke=pe&&pe.nodeType===pe.ELEMENT_NODE?pe.className:null;if(Z===D.Gb.CLASS_NAME){const Ve=y.offsetNode.childNodes[Math.min(y.offset,y.offsetNode.childNodes.length-1)];if(Ve)return Te.createFromDOMInfo(t,Ve,0)}else if(ke===D.Gb.CLASS_NAME)return Te.createFromDOMInfo(t,y.offsetNode,0)}return new ee(y.offsetNode)}static _snapToSoftTabBoundary(t,l){const y=l.getLineContent(t.lineNumber),{tabSize:H}=l.model.getOptions(),Z=Pe.s.atomicPosition(y,t.column-1,H,2);return Z!==-1?new he.y(t.lineNumber,Z+1):t}static doHitTest(t,l){let y=new ee;if(typeof t.viewDomNode.ownerDocument.caretRangeFromPoint=="function"?y=this._doHitTestWithCaretRangeFromPoint(t,l):t.viewDomNode.ownerDocument.caretPositionFromPoint&&(y=this._doHitTestWithCaretPositionFromPoint(t,l.pos.toClientCoordinates(g.zk(t.viewDomNode)))),y.type===1){const H=t.viewModel.getInjectedTextAt(y.position),Z=t.viewModel.normalizePosition(y.position,2);(H||!Z.equals(y.position))&&(y=new De(Z,y.spanNode,H))}return y}}function me(Pt,t,l){const y=document.createRange();let H=Pt.elementFromPoint(t,l);if(H!==null){for(;H&&H.firstChild&&H.firstChild.nodeType!==H.firstChild.TEXT_NODE&&H.lastChild&&H.lastChild.firstChild;)H=H.lastChild;const Z=H.getBoundingClientRect(),pe=g.zk(H),ke=pe.getComputedStyle(H,null).getPropertyValue("font-style"),Ve=pe.getComputedStyle(H,null).getPropertyValue("font-variant"),Xe=pe.getComputedStyle(H,null).getPropertyValue("font-weight"),gt=pe.getComputedStyle(H,null).getPropertyValue("font-size"),Ct=pe.getComputedStyle(H,null).getPropertyValue("line-height"),It=pe.getComputedStyle(H,null).getPropertyValue("font-family"),Bt=`${ke} ${Ve} ${Xe} ${gt}/${Ct} ${It}`,Yt=H.innerText;let tn=Z.left,gn=0,mn;if(t>Z.left+Z.width)gn=Yt.length;else{const Mn=fe.getInstance();for(let Tn=0;Tnthis._createMouseTarget(pe,ke),pe=>this._getMouseColumn(pe))),this.lastMouseLeaveTime=-1,this._height=this._context.configuration.options.get(145).height;const H=new X.$z(this.viewHelper.viewDomNode);this._register(H.onContextMenu(this.viewHelper.viewDomNode,pe=>this._onContextMenu(pe,!0))),this._register(H.onMouseMove(this.viewHelper.viewDomNode,pe=>{this._onMouseMove(pe),this._mouseLeaveMonitor||(this._mouseLeaveMonitor=g.ko(this.viewHelper.viewDomNode.ownerDocument,"mousemove",ke=>{this.viewHelper.viewDomNode.contains(ke.target)||this._onMouseLeave(new X.dO(ke,!1,this.viewHelper.viewDomNode))}))})),this._register(H.onMouseUp(this.viewHelper.viewDomNode,pe=>this._onMouseUp(pe))),this._register(H.onMouseLeave(this.viewHelper.viewDomNode,pe=>this._onMouseLeave(pe)));let Z=0;this._register(H.onPointerDown(this.viewHelper.viewDomNode,(pe,ke)=>{Z=ke})),this._register(g.ko(this.viewHelper.viewDomNode,g.Bx.POINTER_UP,pe=>{this._mouseDownOperation.onPointerUp()})),this._register(H.onMouseDown(this.viewHelper.viewDomNode,pe=>this._onMouseDown(pe,Z))),this._setupMouseWheelZoomListener(),this._context.addEventHandler(this)}_setupMouseWheelZoomListener(){const t=We.QC.INSTANCE;let l=0,y=w.D.getZoomLevel(),H=!1,Z=0;const pe=Ve=>{if(this.viewController.emitMouseWheel(Ve),!this._context.configuration.options.get(76))return;const Xe=new de.$(Ve);if(t.acceptStandardWheelEvent(Xe),t.isPhysicalMouseWheel()){if(ke(Ve)){const gt=w.D.getZoomLevel(),Ct=Xe.deltaY>0?1:-1;w.D.setZoomLevel(gt+Ct),Xe.preventDefault(),Xe.stopPropagation()}}else Date.now()-l>50&&(y=w.D.getZoomLevel(),H=ke(Ve),Z=0),l=Date.now(),Z+=Xe.deltaY,H&&(w.D.setZoomLevel(y+Z/5),Xe.preventDefault(),Xe.stopPropagation())};this._register(g.ko(this.viewHelper.viewDomNode,g.Bx.MOUSE_WHEEL,pe,{capture:!0,passive:!1}));function ke(Ve){return i.zx?(Ve.metaKey||Ve.ctrlKey)&&!Ve.shiftKey&&!Ve.altKey:Ve.ctrlKey&&!Ve.metaKey&&!Ve.shiftKey&&!Ve.altKey}}dispose(){this._context.removeEventHandler(this),this._mouseLeaveMonitor&&(this._mouseLeaveMonitor.dispose(),this._mouseLeaveMonitor=null),super.dispose()}onConfigurationChanged(t){if(t.hasChanged(145)){const l=this._context.configuration.options.get(145).height;this._height!==l&&(this._height=l,this._mouseDownOperation.onHeightChanged())}return!1}onCursorStateChanged(t){return this._mouseDownOperation.onCursorStateChanged(t),!1}onFocusChanged(t){return!1}getTargetAtClientPoint(t,l){const H=new X.Hh(t,l).toPageCoordinates(g.zk(this.viewHelper.viewDomNode)),Z=(0,X.wt)(this.viewHelper.viewDomNode);if(H.yZ.y+Z.height||H.xZ.x+Z.width)return null;const pe=(0,X.i_)(this.viewHelper.viewDomNode,Z,H);return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),Z,H,pe,null)}_createMouseTarget(t,l){let y=t.target;if(!this.viewHelper.viewDomNode.contains(y)){const H=g.jG(this.viewHelper.viewDomNode);H&&(y=H.elementsFromPoint(t.posx,t.posy).find(Z=>this.viewHelper.viewDomNode.contains(Z)))}return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),t.editorPos,t.pos,t.relativePos,l?y:null)}_getMouseColumn(t){return this.mouseTargetFactory.getMouseColumn(t.relativePos)}_onContextMenu(t,l){this.viewController.emitContextMenu({event:t,target:this._createMouseTarget(t,l)})}_onMouseMove(t){this.mouseTargetFactory.mouseTargetIsWidget(t)||t.preventDefault(),!(this._mouseDownOperation.isActive()||t.timestamp{t.preventDefault(),this.viewHelper.focusTextArea()};if(gt&&(H||pe&&ke))Ct(),this._mouseDownOperation.start(y.type,t,l);else if(Z)t.preventDefault();else if(Ve){const It=y.detail;gt&&this.viewHelper.shouldSuppressMouseDownOnViewZone(It.viewZoneId)&&(Ct(),this._mouseDownOperation.start(y.type,t,l),t.preventDefault())}else Xe&&this.viewHelper.shouldSuppressMouseDownOnWidget(y.detail)&&(Ct(),t.preventDefault());this.viewController.emitMouseDown({event:t,target:y})}}class Ue extends S.jG{constructor(t,l,y,H,Z,pe){super(),this._context=t,this._viewController=l,this._viewHelper=y,this._mouseTargetFactory=H,this._createMouseTarget=Z,this._getMouseColumn=pe,this._mouseMoveMonitor=this._register(new X.BA(this._viewHelper.viewDomNode)),this._topBottomDragScrolling=this._register(new lt(this._context,this._viewHelper,this._mouseTargetFactory,(ke,Ve,Xe)=>this._dispatchMouse(ke,Ve,Xe))),this._mouseState=new Kt,this._currentSelection=new Le.L(1,1,1,1),this._isActive=!1,this._lastMouseEvent=null}dispose(){super.dispose()}isActive(){return this._isActive}_onMouseDownThenMove(t){this._lastMouseEvent=t,this._mouseState.setModifiers(t);const l=this._findMousePosition(t,!1);l&&(this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:t,target:l}):l.type===13&&(l.outsidePosition==="above"||l.outsidePosition==="below")?this._topBottomDragScrolling.start(l,t):(this._topBottomDragScrolling.stop(),this._dispatchMouse(l,!0,1)))}start(t,l,y){this._lastMouseEvent=l,this._mouseState.setStartedOnLineNumbers(t===3),this._mouseState.setStartButtons(l),this._mouseState.setModifiers(l);const H=this._findMousePosition(l,!0);if(!H||!H.position)return;this._mouseState.trySetCount(l.detail,H.position),l.detail=this._mouseState.count;const Z=this._context.configuration.options;if(!Z.get(91)&&Z.get(35)&&!Z.get(22)&&!this._mouseState.altKey&&l.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&H.type===6&&H.position&&this._currentSelection.containsPosition(H.position)){this._mouseState.isDragAndDrop=!0,this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,y,l.buttons,pe=>this._onMouseDownThenMove(pe),pe=>{const ke=this._findMousePosition(this._lastMouseEvent,!1);g.kx(pe)?this._viewController.emitMouseDropCanceled():this._viewController.emitMouseDrop({event:this._lastMouseEvent,target:ke?this._createMouseTarget(this._lastMouseEvent,!0):null}),this._stop()});return}this._mouseState.isDragAndDrop=!1,this._dispatchMouse(H,l.shiftKey,1),this._isActive||(this._isActive=!0,this._mouseMoveMonitor.startMonitoring(this._viewHelper.viewLinesDomNode,y,l.buttons,pe=>this._onMouseDownThenMove(pe),()=>this._stop()))}_stop(){this._isActive=!1,this._topBottomDragScrolling.stop()}onHeightChanged(){this._mouseMoveMonitor.stopMonitoring()}onPointerUp(){this._mouseMoveMonitor.stopMonitoring()}onCursorStateChanged(t){this._currentSelection=t.selections[0]}_getPositionOutsideEditor(t){const l=t.editorPos,y=this._context.viewModel,H=this._context.viewLayout,Z=this._getMouseColumn(t);if(t.posyl.y+l.height){const ke=t.posy-l.y-l.height,Ve=H.getCurrentScrollTop()+t.relativePos.y,Xe=q.getZoneAtCoord(this._context,Ve);if(Xe){const Ct=this._helpPositionJumpOverViewZone(Xe);if(Ct)return qe.createOutsideEditor(Z,Ct,"below",ke)}const gt=H.getLineNumberAtVerticalOffset(Ve);return qe.createOutsideEditor(Z,new he.y(gt,y.getLineMaxColumn(gt)),"below",ke)}const pe=H.getLineNumberAtVerticalOffset(H.getCurrentScrollTop()+t.relativePos.y);if(t.posxl.x+l.width){const ke=t.posx-l.x-l.width;return qe.createOutsideEditor(Z,new he.y(pe,y.getLineMaxColumn(pe)),"right",ke)}return null}_findMousePosition(t,l){const y=this._getPositionOutsideEditor(t);if(y)return y;const H=this._createMouseTarget(t,l);if(!H.position)return null;if(H.type===8||H.type===5){const pe=this._helpPositionJumpOverViewZone(H.detail);if(pe)return qe.createViewZone(H.type,H.element,H.mouseColumn,pe,H.detail)}return H}_helpPositionJumpOverViewZone(t){const l=new he.y(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),y=t.positionBefore,H=t.positionAfter;return y&&H?y.isBefore(l)?y:H:null}_dispatchMouse(t,l,y){t.position&&this._viewController.dispatchMouse({position:t.position,mouseColumn:t.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,revealType:y,inSelectionMode:l,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton,onInjectedText:t.type===6&&t.detail.injectedText!==null})}}class lt extends S.jG{constructor(t,l,y,H){super(),this._context=t,this._viewHelper=l,this._mouseTargetFactory=y,this._dispatchMouse=H,this._operation=null}dispose(){super.dispose(),this.stop()}start(t,l){this._operation?this._operation.setPosition(t,l):this._operation=new Et(this._context,this._viewHelper,this._mouseTargetFactory,this._dispatchMouse,t,l)}stop(){this._operation&&(this._operation.dispose(),this._operation=null)}}class Et extends S.jG{constructor(t,l,y,H,Z,pe){super(),this._context=t,this._viewHelper=l,this._mouseTargetFactory=y,this._dispatchMouse=H,this._position=Z,this._mouseEvent=pe,this._lastTime=Date.now(),this._animationFrameDisposable=g.PG(g.zk(pe.browserEvent),()=>this._execute())}dispose(){this._animationFrameDisposable.dispose(),super.dispose()}setPosition(t,l){this._position=t,this._mouseEvent=l}_tick(){const t=Date.now(),l=t-this._lastTime;return this._lastTime=t,l}_getScrollSpeed(){const t=this._context.configuration.options.get(67),l=this._context.configuration.options.get(145).height/t,y=this._position.outsideDistance/t;return y<=1.5?Math.max(30,l*(1+y)):y<=3?Math.max(60,l*(2+y)):Math.max(200,l*(7+y))}_execute(){const t=this._context.configuration.options.get(67),l=this._getScrollSpeed(),y=this._tick(),H=l*(y/1e3)*t,Z=this._position.outsidePosition==="above"?-H:H;this._context.viewModel.viewLayout.deltaScrollNow(0,Z),this._viewHelper.renderNow();const pe=this._context.viewLayout.getLinesViewportData(),ke=this._position.outsidePosition==="above"?pe.startLineNumber:pe.endLineNumber;let Ve;{const Xe=(0,X.wt)(this._viewHelper.viewDomNode),gt=this._context.configuration.options.get(145).horizontalScrollbarHeight,Ct=new X.nz(this._mouseEvent.pos.x,Xe.y+Xe.height-gt-.1),It=(0,X.i_)(this._viewHelper.viewDomNode,Xe,Ct);Ve=this._mouseTargetFactory.createMouseTarget(this._viewHelper.getLastRenderData(),Xe,Ct,It,null)}(!Ve.position||Ve.position.lineNumber!==ke)&&(this._position.outsidePosition==="above"?Ve=qe.createOutsideEditor(this._position.mouseColumn,new he.y(ke,1),"above",this._position.outsideDistance):Ve=qe.createOutsideEditor(this._position.mouseColumn,new he.y(ke,this._context.viewModel.getLineMaxColumn(ke)),"below",this._position.outsideDistance)),this._dispatchMouse(Ve,!0,2),this._animationFrameDisposable=g.PG(g.zk(Ve.element),()=>this._execute())}}class Kt{get altKey(){return this._altKey}get ctrlKey(){return this._ctrlKey}get metaKey(){return this._metaKey}get shiftKey(){return this._shiftKey}get leftButton(){return this._leftButton}get middleButton(){return this._middleButton}get startedOnLineNumbers(){return this._startedOnLineNumbers}constructor(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}get count(){return this._lastMouseDownCount}setModifiers(t){this._altKey=t.altKey,this._ctrlKey=t.ctrlKey,this._metaKey=t.metaKey,this._shiftKey=t.shiftKey}setStartButtons(t){this._leftButton=t.leftButton,this._middleButton=t.middleButton}setStartedOnLineNumbers(t){this._startedOnLineNumbers=t}trySetCount(t,l){const y=new Date().getTime();y-this._lastSetMouseDownCountTime>Kt.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=y,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(l)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=l,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)}}Kt.CLEAR_MOUSE_DOWN_COUNT_TIME=400;var Zt=e("./node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaInput.js");class qt extends we{constructor(t,l,y){super(t,l,y),this._register(oe.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(g.ko(this.viewHelper.linesContentDomNode,oe.B.Tap,Z=>this.onTap(Z))),this._register(g.ko(this.viewHelper.linesContentDomNode,oe.B.Change,Z=>this.onChange(Z))),this._register(g.ko(this.viewHelper.linesContentDomNode,oe.B.Contextmenu,Z=>this._onContextMenu(new X.dO(Z,!1,this.viewHelper.viewDomNode),!1))),this._lastPointerType="mouse",this._register(g.ko(this.viewHelper.linesContentDomNode,"pointerdown",Z=>{const pe=Z.pointerType;if(pe==="mouse"){this._lastPointerType="mouse";return}else pe==="touch"?this._lastPointerType="touch":this._lastPointerType="pen"}));const H=new X.DW(this.viewHelper.viewDomNode);this._register(H.onPointerMove(this.viewHelper.viewDomNode,Z=>this._onMouseMove(Z))),this._register(H.onPointerUp(this.viewHelper.viewDomNode,Z=>this._onMouseUp(Z))),this._register(H.onPointerLeave(this.viewHelper.viewDomNode,Z=>this._onMouseLeave(Z))),this._register(H.onPointerDown(this.viewHelper.viewDomNode,(Z,pe)=>this._onMouseDown(Z,pe)))}onTap(t){!t.initialTarget||!this.viewHelper.linesContentDomNode.contains(t.initialTarget)||(t.preventDefault(),this.viewHelper.focusTextArea(),this._dispatchGesture(t,!1))}onChange(t){this._lastPointerType==="touch"&&this._context.viewModel.viewLayout.deltaScrollNow(-t.translationX,-t.translationY),this._lastPointerType==="pen"&&this._dispatchGesture(t,!0)}_dispatchGesture(t,l){const y=this._createMouseTarget(new X.dO(t,!1,this.viewHelper.viewDomNode),!1);y.position&&this.viewController.dispatchMouse({position:y.position,mouseColumn:y.position.column,startedOnLineNumbers:!1,revealType:1,mouseDownCount:t.tapCount,inSelectionMode:l,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1,onInjectedText:y.type===6&&y.detail.injectedText!==null})}_onMouseDown(t,l){t.browserEvent.pointerType!=="touch"&&super._onMouseDown(t,l)}}class tt extends we{constructor(t,l,y){super(t,l,y),this._register(oe.q.addTarget(this.viewHelper.linesContentDomNode)),this._register(g.ko(this.viewHelper.linesContentDomNode,oe.B.Tap,H=>this.onTap(H))),this._register(g.ko(this.viewHelper.linesContentDomNode,oe.B.Change,H=>this.onChange(H))),this._register(g.ko(this.viewHelper.linesContentDomNode,oe.B.Contextmenu,H=>this._onContextMenu(new X.dO(H,!1,this.viewHelper.viewDomNode),!1)))}onTap(t){t.preventDefault(),this.viewHelper.focusTextArea();const l=this._createMouseTarget(new X.dO(t,!1,this.viewHelper.viewDomNode),!1);if(l.position){const y=document.createEvent("CustomEvent");y.initEvent(Zt.$D.Tap,!1,!0),this.viewHelper.dispatchTextAreaEvent(y),this.viewController.moveTo(l.position,1)}}onChange(t){this._context.viewModel.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)}}class Mt extends S.jG{constructor(t,l,y){super(),(i.un||i.m0&&i.Fr)&&le.e.pointerEvents?this.handler=this._register(new qt(t,l,y)):ne.G.TouchEvent?this.handler=this._register(new tt(t,l,y)):this.handler=this._register(new we(t,l,y))}getTargetAtClientPoint(t,l){return this.handler.getTargetAtClientPoint(t,l)}}var Ht=e("./node_modules/monaco-editor/esm/vs/nls.js"),xt=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),Jt=e("./node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaState.js");class Nt extends ie{}var Be=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),vt=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editorColorRegistry.js");class Gt extends Nt{constructor(t){super(),this._context=t,this._readConfig(),this._lastCursorModelPosition=new he.y(1,1),this._renderResult=null,this._activeLineNumber=1,this._context.addEventHandler(this)}_readConfig(){const t=this._context.configuration.options;this._lineHeight=t.get(67);const l=t.get(68);this._renderLineNumbers=l.renderType,this._renderCustomLineNumbers=l.renderFn,this._renderFinalNewline=t.get(95);const y=t.get(145);this._lineNumbersLeft=y.lineNumbersLeft,this._lineNumbersWidth=y.lineNumbersWidth}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(t){return this._readConfig(),!0}onCursorStateChanged(t){const l=t.selections[0].getPosition();this._lastCursorModelPosition=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(l);let y=!1;return this._activeLineNumber!==l.lineNumber&&(this._activeLineNumber=l.lineNumber,y=!0),(this._renderLineNumbers===2||this._renderLineNumbers===3)&&(y=!0),y}onFlushed(t){return!0}onLinesChanged(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return t.scrollTopChanged}onZonesChanged(t){return!0}onDecorationsChanged(t){return t.affectsLineNumber}_getLineRenderLineNumber(t){const l=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new he.y(t,1));if(l.column!==1)return"";const y=l.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(y);if(this._renderLineNumbers===2){const H=Math.abs(this._lastCursorModelPosition.lineNumber-y);return H===0?''+y+"":String(H)}if(this._renderLineNumbers===3){if(this._lastCursorModelPosition.lineNumber===y||y%10===0)return String(y);const H=this._context.viewModel.getLineCount();return y===H?String(y):""}return String(y)}prepareRender(t){if(this._renderLineNumbers===0){this._renderResult=null;return}const l=i.j9?this._lineHeight%2===0?" lh-even":" lh-odd":"",y=t.visibleRange.startLineNumber,H=t.visibleRange.endLineNumber,Z=this._context.viewModel.getDecorationsInViewport(t.visibleRange).filter(Xe=>!!Xe.options.lineNumberClassName);Z.sort((Xe,gt)=>ve.Q.compareRangesUsingEnds(Xe.range,gt.range));let pe=0;const ke=this._context.viewModel.getLineCount(),Ve=[];for(let Xe=y;Xe<=H;Xe++){const gt=Xe-y;let Ct=this._getLineRenderLineNumber(Xe),It="";for(;pe${Ct}`}this._renderResult=Ve}render(t,l){if(!this._renderResult)return"";const y=l-t;return y<0||y>=this._renderResult.length?"":this._renderResult[y]}}Gt.CLASS_NAME="line-numbers",(0,Be.zy)((Pt,t)=>{const l=Pt.getColor(vt.Qt),y=Pt.getColor(vt.JB);y?t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${y}; }`):l&&t.addRule(`.monaco-editor .line-numbers.dimmed-line-number { color: ${l.transparent(.4)}; }`)});class _n extends re{constructor(t){super(t);const l=this._context.configuration.options,y=l.get(145);this._canUseLayerHinting=!l.get(32),this._contentLeft=y.contentLeft,this._glyphMarginLeft=y.glyphMarginLeft,this._glyphMarginWidth=y.glyphMarginWidth,this._domNode=(0,V.Z)(document.createElement("div")),this._domNode.setClassName(_n.OUTER_CLASS_NAME),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._glyphMarginBackgroundDomNode=(0,V.Z)(document.createElement("div")),this._glyphMarginBackgroundDomNode.setClassName(_n.CLASS_NAME),this._domNode.appendChild(this._glyphMarginBackgroundDomNode)}dispose(){super.dispose()}getDomNode(){return this._domNode}onConfigurationChanged(t){const l=this._context.configuration.options,y=l.get(145);return this._canUseLayerHinting=!l.get(32),this._contentLeft=y.contentLeft,this._glyphMarginLeft=y.glyphMarginLeft,this._glyphMarginWidth=y.glyphMarginWidth,!0}onScrollChanged(t){return super.onScrollChanged(t)||t.scrollTopChanged}prepareRender(t){}render(t){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");const l=t.scrollTop-t.bigNumbersDelta;this._domNode.setTop(-l);const y=Math.min(t.scrollHeight,1e6);this._domNode.setHeight(y),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(y)}}_n.CLASS_NAME="glyph-margin",_n.OUTER_CLASS_NAME="margin";var Fn=e("./node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js");const An="monaco-mouse-cursor-text";var Hn=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),Kn=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),mi=e("./node_modules/monaco-editor/esm/vs/base/common/ime.js"),yi=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),ri=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),fi=function(Pt,t,l,y){var H=arguments.length,Z=H<3?t:y===null?y=Object.getOwnPropertyDescriptor(t,l):y,pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Z=Reflect.decorate(Pt,t,l,y);else for(var ke=Pt.length-1;ke>=0;ke--)(pe=Pt[ke])&&(Z=(H<3?pe(Z):H>3?pe(t,l,Z):pe(t,l))||Z);return H>3&&Z&&Object.defineProperty(t,l,Z),Z},Mi=function(Pt,t){return function(l,y){t(l,y,Pt)}};class xi{constructor(t,l,y,H,Z){this._context=t,this.modelLineNumber=l,this.distanceToModelLineStart=y,this.widthOfHiddenLineTextBefore=H,this.distanceToModelLineEnd=Z,this._visibleTextAreaBrand=void 0,this.startPosition=null,this.endPosition=null,this.visibleTextareaStart=null,this.visibleTextareaEnd=null,this._previousPresentation=null}prepareRender(t){const l=new he.y(this.modelLineNumber,this.distanceToModelLineStart+1),y=new he.y(this.modelLineNumber,this._context.viewModel.model.getLineMaxColumn(this.modelLineNumber)-this.distanceToModelLineEnd);this.startPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(l),this.endPosition=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(y),this.startPosition.lineNumber===this.endPosition.lineNumber?(this.visibleTextareaStart=t.visibleRangeForPosition(this.startPosition),this.visibleTextareaEnd=t.visibleRangeForPosition(this.endPosition)):(this.visibleTextareaStart=null,this.visibleTextareaEnd=null)}definePresentation(t){return this._previousPresentation||(t?this._previousPresentation=t:this._previousPresentation={foreground:1,italic:!1,bold:!1,underline:!1,strikethrough:!1}),this._previousPresentation}}const ci=a.gm;let Ii=class extends re{constructor(t,l,y,H,Z){super(t),this._keybindingService=H,this._instantiationService=Z,this._primaryCursorPosition=new he.y(1,1),this._primaryCursorVisibleRange=null,this._viewController=l,this._visibleRangeProvider=y,this._scrollLeft=0,this._scrollTop=0;const pe=this._context.configuration.options,ke=pe.get(145);this._setAccessibilityOptions(pe),this._contentLeft=ke.contentLeft,this._contentWidth=ke.contentWidth,this._contentHeight=ke.height,this._fontInfo=pe.get(50),this._lineHeight=pe.get(67),this._emptySelectionClipboard=pe.get(37),this._copyWithSyntaxHighlighting=pe.get(25),this._visibleTextArea=null,this._selections=[new Le.L(1,1,1,1)],this._modelSelections=[new Le.L(1,1,1,1)],this._lastRenderPosition=null,this.textArea=(0,V.Z)(document.createElement("textarea")),te.write(this.textArea,7),this.textArea.setClassName(`inputarea ${An}`),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:Ve}=this._context.viewModel.model.getOptions();this.textArea.domNode.style.tabSize=`${Ve*this._fontInfo.spaceWidth}px`,this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("autocomplete","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._getAriaLabel(pe)),this.textArea.setAttribute("aria-required",pe.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(pe.get(124))),this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-roledescription",Ht.kg("editor","editor")),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-autocomplete",pe.get(91)?"none":"both"),this._ensureReadOnlyAttribute(),this.textAreaCover=(0,V.Z)(document.createElement("div")),this.textAreaCover.setPosition("absolute");const Xe={getLineCount:()=>this._context.viewModel.getLineCount(),getLineMaxColumn:It=>this._context.viewModel.getLineMaxColumn(It),getValueInRange:(It,Bt)=>this._context.viewModel.getValueInRange(It,Bt),getValueLengthInRange:(It,Bt)=>this._context.viewModel.getValueLengthInRange(It,Bt),modifyPosition:(It,Bt)=>this._context.viewModel.modifyPosition(It,Bt)},gt={getDataToCopy:()=>{const It=this._context.viewModel.getPlainTextToCopy(this._modelSelections,this._emptySelectionClipboard,i.uF),Bt=this._context.viewModel.model.getEOL(),Yt=this._emptySelectionClipboard&&this._modelSelections.length===1&&this._modelSelections[0].isEmpty(),tn=Array.isArray(It)?It:null,gn=Array.isArray(It)?It.join(Bt):It;let mn,Mn=null;if(Zt.Eq.forceCopyWithSyntaxHighlighting||this._copyWithSyntaxHighlighting&&gn.length<65536){const Tn=this._context.viewModel.getRichTextToCopy(this._modelSelections,this._emptySelectionClipboard);Tn&&(mn=Tn.html,Mn=Tn.mode)}return{isFromEmptySelection:Yt,multicursorText:tn,text:gn,html:mn,mode:Mn}},getScreenReaderContent:()=>{if(this._accessibilitySupport===1){const It=this._selections[0];if(i.zx&&It.isEmpty()){const Yt=It.getStartPosition();let tn=this._getWordBeforePosition(Yt);if(tn.length===0&&(tn=this._getCharacterBeforePosition(Yt)),tn.length>0)return new Jt._O(tn,tn.length,tn.length,ve.Q.fromPositions(Yt),0)}if(i.zx&&!It.isEmpty()&&Xe.getValueLengthInRange(It,0)<500){const Yt=Xe.getValueInRange(It,0);return new Jt._O(Yt,0,Yt.length,It,0)}if(a.nr&&!It.isEmpty()){const Yt="vscode-placeholder";return new Jt._O(Yt,0,Yt.length,null,void 0)}return Jt._O.EMPTY}if(a.m0){const It=this._selections[0];if(It.isEmpty()){const Bt=It.getStartPosition(),[Yt,tn]=this._getAndroidWordAtPosition(Bt);if(Yt.length>0)return new Jt._O(Yt,tn,tn,ve.Q.fromPositions(Bt),0)}return Jt._O.EMPTY}return Jt.Al.fromEditorSelection(Xe,this._selections[0],this._accessibilityPageSize,this._accessibilitySupport===0)},deduceModelPosition:(It,Bt,Yt)=>this._context.viewModel.deduceModelPositionRelativeToViewPosition(It,Bt,Yt)},Ct=this._register(new Zt.M0(this.textArea.domNode));this._textAreaInput=this._register(this._instantiationService.createInstance(Zt.No,gt,Ct,i.OS,{isAndroid:a.m0,isChrome:a.H8,isFirefox:a.gm,isSafari:a.nr})),this._register(this._textAreaInput.onKeyDown(It=>{this._viewController.emitKeyDown(It)})),this._register(this._textAreaInput.onKeyUp(It=>{this._viewController.emitKeyUp(It)})),this._register(this._textAreaInput.onPaste(It=>{let Bt=!1,Yt=null,tn=null;It.metadata&&(Bt=this._emptySelectionClipboard&&!!It.metadata.isFromEmptySelection,Yt=typeof It.metadata.multicursorText<"u"?It.metadata.multicursorText:null,tn=It.metadata.mode),this._viewController.paste(It.text,Bt,Yt,tn)})),this._register(this._textAreaInput.onCut(()=>{this._viewController.cut()})),this._register(this._textAreaInput.onType(It=>{It.replacePrevCharCnt||It.replaceNextCharCnt||It.positionDelta?(Jt.Hf&&console.log(` => compositionType: <<${It.text}>>, ${It.replacePrevCharCnt}, ${It.replaceNextCharCnt}, ${It.positionDelta}`),this._viewController.compositionType(It.text,It.replacePrevCharCnt,It.replaceNextCharCnt,It.positionDelta)):(Jt.Hf&&console.log(` => type: <<${It.text}>>`),this._viewController.type(It.text))})),this._register(this._textAreaInput.onSelectionChangeRequest(It=>{this._viewController.setSelection(It)})),this._register(this._textAreaInput.onCompositionStart(It=>{const Bt=this.textArea.domNode,Yt=this._modelSelections[0],{distanceToModelLineStart:tn,widthOfHiddenTextBefore:gn}=(()=>{const Mn=Bt.value.substring(0,Math.min(Bt.selectionStart,Bt.selectionEnd)),Tn=Mn.lastIndexOf(` `),Gn=Mn.substring(Tn+1),Zn=Gn.lastIndexOf(" "),ii=Gn.length-Zn-1,si=Yt.getStartPosition(),pi=Math.min(si.column-1,ii),ai=si.column-1-pi,li=Gn.substring(0,Gn.length-pi),{tabSize:_i}=this._context.viewModel.model.getOptions(),gi=Si(this.textArea.domNode.ownerDocument,li,this._fontInfo,_i);return{distanceToModelLineStart:ai,widthOfHiddenTextBefore:gi}})(),{distanceToModelLineEnd:mn}=(()=>{const Mn=Bt.value.substring(Math.max(Bt.selectionStart,Bt.selectionEnd)),Tn=Mn.indexOf(` `),Gn=Tn===-1?Mn:Mn.substring(0,Tn),Zn=Gn.indexOf(" "),ii=Zn===-1?Gn.length:Gn.length-Zn-1,si=Yt.getEndPosition(),pi=Math.min(this._context.viewModel.model.getLineMaxColumn(si.lineNumber)-si.column,ii);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(si.lineNumber)-si.column-pi}})();this._context.viewModel.revealRange("keyboard",!0,ve.Q.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new xi(this._context,Yt.startLineNumber,tn,gn,mn),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${An} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(It=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${An}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)})),this._register(mi.M.onDidChange(()=>{this._ensureReadOnlyAttribute()}))}writeScreenReaderContent(t){this._textAreaInput.writeNativeTextAreaContent(t)}dispose(){super.dispose()}_getAndroidWordAtPosition(t){const l='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',y=this._context.viewModel.getLineContent(t.lineNumber),H=(0,Fn.i)(l,[]);let Z=!0,pe=t.column,ke=!0,Ve=t.column,Xe=0;for(;Xe<50&&(Z||ke);){if(Z&&pe<=1&&(Z=!1),Z){const gt=y.charCodeAt(pe-2);H.get(gt)!==0?Z=!1:pe--}if(ke&&Ve>y.length&&(ke=!1),ke){const gt=y.charCodeAt(Ve-1);H.get(gt)!==0?ke=!1:Ve++}Xe++}return[y.substring(pe-1,Ve-1),t.column-pe]}_getWordBeforePosition(t){const l=this._context.viewModel.getLineContent(t.lineNumber),y=(0,Fn.i)(this._context.configuration.options.get(131),[]);let H=t.column,Z=0;for(;H>1;){const pe=l.charCodeAt(H-2);if(y.get(pe)!==0||Z>50)return l.substring(H-1,t.column-1);Z++,H--}return l.substring(0,t.column-1)}_getCharacterBeforePosition(t){if(t.column>1){const y=this._context.viewModel.getLineContent(t.lineNumber).charAt(t.column-2);if(!xt.pc(y.charCodeAt(0)))return y}return""}_getAriaLabel(t){var l,y,H;if(t.get(2)===1){const pe=(l=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))===null||l===void 0?void 0:l.getAriaLabel(),ke=(y=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))===null||y===void 0?void 0:y.getAriaLabel(),Ve=(H=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))===null||H===void 0?void 0:H.getAriaLabel(),Xe=Ht.kg("accessibilityModeOff","The editor is not accessible at this time.");return pe?Ht.kg("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",Xe,pe):ke?Ht.kg("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",Xe,ke):Ve?Ht.kg("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",Xe,Ve):Xe}return t.get(4)}_setAccessibilityOptions(t){this._accessibilitySupport=t.get(2);const l=t.get(3);this._accessibilitySupport===2&&l===O.qB.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=l;const H=t.get(145).wrappingColumn;if(H!==-1&&this._accessibilitySupport!==1){const Z=t.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(H*Z.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=ci?0:1}onConfigurationChanged(t){const l=this._context.configuration.options,y=l.get(145);this._setAccessibilityOptions(l),this._contentLeft=y.contentLeft,this._contentWidth=y.contentWidth,this._contentHeight=y.height,this._fontInfo=l.get(50),this._lineHeight=l.get(67),this._emptySelectionClipboard=l.get(37),this._copyWithSyntaxHighlighting=l.get(25),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off");const{tabSize:H}=this._context.viewModel.model.getOptions();return this.textArea.domNode.style.tabSize=`${H*this._fontInfo.spaceWidth}px`,this.textArea.setAttribute("aria-label",this._getAriaLabel(l)),this.textArea.setAttribute("aria-required",l.get(5)?"true":"false"),this.textArea.setAttribute("tabindex",String(l.get(124))),(t.hasChanged(34)||t.hasChanged(91))&&this._ensureReadOnlyAttribute(),t.hasChanged(2)&&this._textAreaInput.writeNativeTextAreaContent("strategy changed"),!0}onCursorStateChanged(t){return this._selections=t.selections.slice(0),this._modelSelections=t.modelSelections.slice(0),this._textAreaInput.writeNativeTextAreaContent("selection changed"),!0}onDecorationsChanged(t){return!0}onFlushed(t){return!0}onLinesChanged(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0}onZonesChanged(t){return!0}isFocused(){return this._textAreaInput.isFocused()}focusTextArea(){this._textAreaInput.focusTextArea()}getLastRenderData(){return this._lastRenderPosition}setAriaOptions(t){t.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",t.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant")),t.role&&this.textArea.setAttribute("role",t.role)}_ensureReadOnlyAttribute(){const t=this._context.configuration.options;!mi.M.enabled||t.get(34)&&t.get(91)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")}prepareRender(t){var l;this._primaryCursorPosition=new he.y(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=t.visibleRangeForPosition(this._primaryCursorPosition),(l=this._visibleTextArea)===null||l===void 0||l.prepareRender(t)}render(t){this._textAreaInput.writeNativeTextAreaContent("render"),this._render()}_render(){var t;if(this._visibleTextArea){const H=this._visibleTextArea.visibleTextareaStart,Z=this._visibleTextArea.visibleTextareaEnd,pe=this._visibleTextArea.startPosition,ke=this._visibleTextArea.endPosition;if(pe&&ke&&H&&Z&&Z.left>=this._scrollLeft&&H.left<=this._scrollLeft+this._contentWidth){const Ve=this._context.viewLayout.getVerticalOffsetForLineNumber(this._primaryCursorPosition.lineNumber)-this._scrollTop,Xe=this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));let gt=this._visibleTextArea.widthOfHiddenLineTextBefore,Ct=this._contentLeft+H.left-this._scrollLeft,It=Z.left-H.left+1;if(Ctthis._contentWidth&&(It=this._contentWidth);const Bt=this._context.viewModel.getViewLineData(pe.lineNumber),Yt=Bt.tokens.findTokenIndexAtOffset(pe.column-1),tn=Bt.tokens.findTokenIndexAtOffset(ke.column-1),gn=Yt===tn,mn=this._visibleTextArea.definePresentation(gn?Bt.tokens.getPresentation(Yt):null);this.textArea.domNode.scrollTop=Xe*this._lineHeight,this.textArea.domNode.scrollLeft=gt,this._doRender({lastRenderPosition:null,top:Ve,left:Ct,width:It,height:this._lineHeight,useCover:!1,color:(Hn.dG.getColorMap()||[])[mn.foreground],italic:mn.italic,bold:mn.bold,underline:mn.underline,strikethrough:mn.strikethrough})}return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}const l=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(lthis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}const y=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(y<0||y>this._contentHeight){this._renderAtTopLeft();return}if(i.zx||this._accessibilitySupport===2){this._doRender({lastRenderPosition:this._primaryCursorPosition,top:y,left:this._textAreaWrapping?this._contentLeft:l,width:this._textAreaWidth,height:this._lineHeight,useCover:!1}),this.textArea.domNode.scrollLeft=this._primaryCursorVisibleRange.left;const H=(t=this._textAreaInput.textAreaState.newlineCountBeforeSelection)!==null&&t!==void 0?t:this._newlinecount(this.textArea.domNode.value.substr(0,this.textArea.domNode.selectionStart));this.textArea.domNode.scrollTop=H*this._lineHeight;return}this._doRender({lastRenderPosition:this._primaryCursorPosition,top:y,left:this._textAreaWrapping?this._contentLeft:l,width:this._textAreaWidth,height:ci?0:1,useCover:!1})}_newlinecount(t){let l=0,y=-1;do{if(y=t.indexOf(` `,y+1),y===-1)break;l++}while(!0);return l}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:ci?0:1,useCover:!0})}_doRender(t){this._lastRenderPosition=t.lastRenderPosition;const l=this.textArea,y=this.textAreaCover;(0,d.M)(l,this._fontInfo),l.setTop(t.top),l.setLeft(t.left),l.setWidth(t.width),l.setHeight(t.height),l.setColor(t.color?Kn.Q1.Format.CSS.formatHex(t.color):""),l.setFontStyle(t.italic?"italic":""),t.bold&&l.setFontWeight("bold"),l.setTextDecoration(`${t.underline?" underline":""}${t.strikethrough?" line-through":""}`),y.setTop(t.useCover?t.top:0),y.setLeft(t.useCover?t.left:0),y.setWidth(t.useCover?t.width:0),y.setHeight(t.useCover?t.height:0);const H=this._context.configuration.options;H.get(57)?y.setClassName("monaco-editor-background textAreaCover "+_n.OUTER_CLASS_NAME):H.get(68).renderType!==0?y.setClassName("monaco-editor-background textAreaCover "+Gt.CLASS_NAME):y.setClassName("monaco-editor-background textAreaCover")}};Ii=fi([Mi(3,yi.b),Mi(4,ri._Y)],Ii);function Si(Pt,t,l,y){if(t.length===0)return 0;const H=Pt.createElement("div");H.style.position="absolute",H.style.top="-50000px",H.style.width="50000px";const Z=Pt.createElement("span");(0,d.M)(Z,l),Z.style.whiteSpace="pre",Z.style.tabSize=`${y*l.spaceWidth}px`,Z.append(t),H.appendChild(Z),Pt.body.appendChild(H);const pe=Z.offsetWidth;return Pt.body.removeChild(H),pe}var Ti=e("./node_modules/monaco-editor/esm/vs/editor/browser/view/renderingContext.js"),Nn=e("./node_modules/monaco-editor/esm/vs/editor/browser/coreCommands.js");class Vn{constructor(t,l,y,H){this.configuration=t,this.viewModel=l,this.userInputEvents=y,this.commandDelegate=H}paste(t,l,y,H){this.commandDelegate.paste(t,l,y,H)}type(t){this.commandDelegate.type(t)}compositionType(t,l,y,H){this.commandDelegate.compositionType(t,l,y,H)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(t){Nn.QM.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:t})}_validateViewColumn(t){const l=this.viewModel.getLineMinColumn(t.lineNumber);return t.column=4?this._selectAll():t.mouseDownCount===3?this._hasMulticursorModifier(t)?t.inSelectionMode?this._lastCursorLineSelectDrag(t.position,t.revealType):this._lastCursorLineSelect(t.position,t.revealType):t.inSelectionMode?this._lineSelectDrag(t.position,t.revealType):this._lineSelect(t.position,t.revealType):t.mouseDownCount===2?t.onInjectedText||(this._hasMulticursorModifier(t)?this._lastCursorWordSelect(t.position,t.revealType):t.inSelectionMode?this._wordSelectDrag(t.position,t.revealType):this._wordSelect(t.position,t.revealType)):this._hasMulticursorModifier(t)?this._hasNonMulticursorModifier(t)||(t.shiftKey?this._columnSelect(t.position,t.mouseColumn,!0):t.inSelectionMode?this._lastCursorMoveToSelect(t.position,t.revealType):this._createCursor(t.position,!1)):t.inSelectionMode?t.altKey?this._columnSelect(t.position,t.mouseColumn,!0):H?this._columnSelect(t.position,t.mouseColumn,!0):this._moveToSelect(t.position,t.revealType):this.moveTo(t.position,t.revealType)}_usualArgs(t,l){return t=this._validateViewColumn(t),{source:"mouse",position:this._convertViewToModelPosition(t),viewPosition:t,revealType:l}}moveTo(t,l){Nn.QM.MoveTo.runCoreEditorCommand(this.viewModel,this._usualArgs(t,l))}_moveToSelect(t,l){Nn.QM.MoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(t,l))}_columnSelect(t,l,y){t=this._validateViewColumn(t),Nn.QM.ColumnSelect.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(t),viewPosition:t,mouseColumn:l,doColumnSelect:y})}_createCursor(t,l){t=this._validateViewColumn(t),Nn.QM.CreateCursor.runCoreEditorCommand(this.viewModel,{source:"mouse",position:this._convertViewToModelPosition(t),viewPosition:t,wholeLine:l})}_lastCursorMoveToSelect(t,l){Nn.QM.LastCursorMoveToSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(t,l))}_wordSelect(t,l){Nn.QM.WordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(t,l))}_wordSelectDrag(t,l){Nn.QM.WordSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(t,l))}_lastCursorWordSelect(t,l){Nn.QM.LastCursorWordSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(t,l))}_lineSelect(t,l){Nn.QM.LineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(t,l))}_lineSelectDrag(t,l){Nn.QM.LineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(t,l))}_lastCursorLineSelect(t,l){Nn.QM.LastCursorLineSelect.runCoreEditorCommand(this.viewModel,this._usualArgs(t,l))}_lastCursorLineSelectDrag(t,l){Nn.QM.LastCursorLineSelectDrag.runCoreEditorCommand(this.viewModel,this._usualArgs(t,l))}_selectAll(){Nn.QM.SelectAll.runCoreEditorCommand(this.viewModel,{source:"mouse"})}_convertViewToModelPosition(t){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(t)}emitKeyDown(t){this.userInputEvents.emitKeyDown(t)}emitKeyUp(t){this.userInputEvents.emitKeyUp(t)}emitContextMenu(t){this.userInputEvents.emitContextMenu(t)}emitMouseMove(t){this.userInputEvents.emitMouseMove(t)}emitMouseLeave(t){this.userInputEvents.emitMouseLeave(t)}emitMouseUp(t){this.userInputEvents.emitMouseUp(t)}emitMouseDown(t){this.userInputEvents.emitMouseDown(t)}emitMouseDrag(t){this.userInputEvents.emitMouseDrag(t)}emitMouseDrop(t){this.userInputEvents.emitMouseDrop(t)}emitMouseDropCanceled(){this.userInputEvents.emitMouseDropCanceled()}emitMouseWheel(t){this.userInputEvents.emitMouseWheel(t)}}var Yn=e("./node_modules/monaco-editor/esm/vs/base/browser/trustedTypes.js"),Di=e("./node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js");class Ai{constructor(t){this._createLine=t,this._set(1,[])}flush(){this._set(1,[])}_set(t,l){this._lines=l,this._rendLineNumberStart=t}_get(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}}getStartLineNumber(){return this._rendLineNumberStart}getEndLineNumber(){return this._rendLineNumberStart+this._lines.length-1}getCount(){return this._lines.length}getLine(t){const l=t-this._rendLineNumberStart;if(l<0||l>=this._lines.length)throw new x.D7("Illegal value for lineNumber");return this._lines[l]}onLinesDeleted(t,l){if(this.getCount()===0)return null;const y=this.getStartLineNumber(),H=this.getEndLineNumber();if(lH)return null;let Z=0,pe=0;for(let Ve=y;Ve<=H;Ve++){const Xe=Ve-this._rendLineNumberStart;t<=Ve&&Ve<=l&&(pe===0?(Z=Xe,pe=1):pe++)}if(t=H&&ke<=Z&&(this._lines[ke-this._rendLineNumberStart].onContentChanged(),pe=!0);return pe}onLinesInserted(t,l){if(this.getCount()===0)return null;const y=l-t+1,H=this.getStartLineNumber(),Z=this.getEndLineNumber();if(t<=H)return this._rendLineNumberStart+=y,null;if(t>Z)return null;if(y+t>Z)return this._lines.splice(t-this._rendLineNumberStart,Z-t+1);const pe=[];for(let Ct=0;Cty)continue;const Ve=Math.max(l,ke.fromLineNumber),Xe=Math.min(y,ke.toLineNumber);for(let gt=Ve;gt<=Xe;gt++){const Ct=gt-this._rendLineNumberStart;this._lines[Ct].onTokensChanged(),H=!0}}return H}}class Sn{constructor(t){this._host=t,this.domNode=this._createDomNode(),this._linesCollection=new Ai(()=>this._host.createVisibleLine())}_createDomNode(){const t=(0,V.Z)(document.createElement("div"));return t.setClassName("view-layer"),t.setPosition("absolute"),t.domNode.setAttribute("role","presentation"),t.domNode.setAttribute("aria-hidden","true"),t}onConfigurationChanged(t){return!!t.hasChanged(145)}onFlushed(t){return this._linesCollection.flush(),!0}onLinesChanged(t){return this._linesCollection.onLinesChanged(t.fromLineNumber,t.count)}onLinesDeleted(t){const l=this._linesCollection.onLinesDeleted(t.fromLineNumber,t.toLineNumber);if(l)for(let y=0,H=l.length;yl){const pe=l,ke=Math.min(y,Z.rendLineNumberStart-1);pe<=ke&&(this._insertLinesBefore(Z,pe,ke,H,l),Z.linesLength+=ke-pe+1)}else if(Z.rendLineNumberStart0&&(this._removeLinesBefore(Z,pe),Z.linesLength-=pe)}if(Z.rendLineNumberStart=l,Z.rendLineNumberStart+Z.linesLength-1y){const pe=Math.max(0,y-Z.rendLineNumberStart+1),Ve=Z.linesLength-1-pe+1;Ve>0&&(this._removeLinesAfter(Z,Ve),Z.linesLength-=Ve)}return this._finishRendering(Z,!1,H),Z}_renderUntouchedLines(t,l,y,H,Z){const pe=t.rendLineNumberStart,ke=t.lines;for(let Ve=l;Ve<=y;Ve++){const Xe=pe+Ve;ke[Ve].layoutLine(Xe,H[Xe-Z],this.viewportData.lineHeight)}}_insertLinesBefore(t,l,y,H,Z){const pe=[];let ke=0;for(let Ve=l;Ve<=y;Ve++)pe[ke++]=this.host.createVisibleLine();t.lines=pe.concat(t.lines)}_removeLinesBefore(t,l){for(let y=0;y=0;ke--){const Ve=t.lines[ke];H[ke]&&(Ve.setDomNode(pe),pe=pe.previousSibling)}}_finishRenderingInvalidLines(t,l,y){const H=document.createElement("div");Ye._ttPolicy&&(l=Ye._ttPolicy.createHTML(l)),H.innerHTML=l;for(let Z=0;ZPt}),Ye._sb=new Di.fe(1e5);class mt extends re{constructor(t){super(t),this._visibleLines=new Sn(this),this.domNode=this._visibleLines.domNode;const y=this._context.configuration.options.get(50);(0,d.M)(this.domNode,y),this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let t=0,l=this._dynamicOverlays.length;ty.shouldRender());for(let y=0,H=l.length;y'),Z.appendString(pe),Z.appendString(""),!0)}layoutLine(t,l,y){this._domNode&&(this._domNode.setTop(l),this._domNode.setHeight(y))}}class Ke extends mt{constructor(t){super(t);const y=this._context.configuration.options.get(145);this._contentWidth=y.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(t){const y=this._context.configuration.options.get(145);return this._contentWidth=y.contentWidth,super.onConfigurationChanged(t)||!0}onScrollChanged(t){return super.onScrollChanged(t)||t.scrollWidthChanged}_viewOverlaysRender(t){super._viewOverlaysRender(t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))}}class Je extends mt{constructor(t){super(t);const l=this._context.configuration.options,y=l.get(145);this._contentLeft=y.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,d.M)(this.domNode,l.get(50))}onConfigurationChanged(t){const l=this._context.configuration.options;(0,d.M)(this.domNode,l.get(50));const y=l.get(145);return this._contentLeft=y.contentLeft,super.onConfigurationChanged(t)||!0}onScrollChanged(t){return super.onScrollChanged(t)||t.scrollHeightChanged}_viewOverlaysRender(t){super._viewOverlaysRender(t);const l=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(l),this.domNode.setWidth(this._contentLeft)}}class Ne{constructor(t){this.onKeyDown=null,this.onKeyUp=null,this.onContextMenu=null,this.onMouseMove=null,this.onMouseLeave=null,this.onMouseDown=null,this.onMouseUp=null,this.onMouseDrag=null,this.onMouseDrop=null,this.onMouseDropCanceled=null,this.onMouseWheel=null,this._coordinatesConverter=t}emitKeyDown(t){var l;(l=this.onKeyDown)===null||l===void 0||l.call(this,t)}emitKeyUp(t){var l;(l=this.onKeyUp)===null||l===void 0||l.call(this,t)}emitContextMenu(t){var l;(l=this.onContextMenu)===null||l===void 0||l.call(this,this._convertViewToModelMouseEvent(t))}emitMouseMove(t){var l;(l=this.onMouseMove)===null||l===void 0||l.call(this,this._convertViewToModelMouseEvent(t))}emitMouseLeave(t){var l;(l=this.onMouseLeave)===null||l===void 0||l.call(this,this._convertViewToModelMouseEvent(t))}emitMouseDown(t){var l;(l=this.onMouseDown)===null||l===void 0||l.call(this,this._convertViewToModelMouseEvent(t))}emitMouseUp(t){var l;(l=this.onMouseUp)===null||l===void 0||l.call(this,this._convertViewToModelMouseEvent(t))}emitMouseDrag(t){var l;(l=this.onMouseDrag)===null||l===void 0||l.call(this,this._convertViewToModelMouseEvent(t))}emitMouseDrop(t){var l;(l=this.onMouseDrop)===null||l===void 0||l.call(this,this._convertViewToModelMouseEvent(t))}emitMouseDropCanceled(){var t;(t=this.onMouseDropCanceled)===null||t===void 0||t.call(this)}emitMouseWheel(t){var l;(l=this.onMouseWheel)===null||l===void 0||l.call(this,t)}_convertViewToModelMouseEvent(t){return t.target?{event:t.event,target:this._convertViewToModelMouseTarget(t.target)}:t}_convertViewToModelMouseTarget(t){return Ne.convertViewToModelMouseTarget(t,this._coordinatesConverter)}static convertViewToModelMouseTarget(t,l){const y={...t};return y.position&&(y.position=l.convertViewPositionToModelPosition(y.position)),y.range&&(y.range=l.convertViewRangeToModelRange(y.range)),(y.type===5||y.type===8)&&(y.detail=this.convertViewToModelViewZoneData(y.detail,l)),y}static convertViewToModelViewZoneData(t,l){return{viewZoneId:t.viewZoneId,positionBefore:t.positionBefore?l.convertViewPositionToModelPosition(t.positionBefore):t.positionBefore,positionAfter:t.positionAfter?l.convertViewPositionToModelPosition(t.positionAfter):t.positionAfter,position:l.convertViewPositionToModelPosition(t.position),afterLineNumber:l.convertViewPositionToModelPosition(new he.y(t.afterLineNumber,1)).lineNumber}}}class ft extends re{constructor(t){super(t),this.blocks=[],this.contentWidth=-1,this.contentLeft=0,this.domNode=(0,V.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("blockDecorations-container"),this.update()}update(){let t=!1;const y=this._context.configuration.options.get(145),H=y.contentWidth-y.verticalScrollbarWidth;this.contentWidth!==H&&(this.contentWidth=H,t=!0);const Z=y.contentLeft;return this.contentLeft!==Z&&(this.contentLeft=Z,t=!0),t}dispose(){super.dispose()}onConfigurationChanged(t){return this.update()}onScrollChanged(t){return t.scrollTopChanged||t.scrollLeftChanged}onDecorationsChanged(t){return!0}onZonesChanged(t){return!0}prepareRender(t){}render(t){var l;let y=0;const H=t.getDecorationsInViewport();for(const Z of H){if(!Z.options.blockClassName)continue;let pe=this.blocks[y];pe||(pe=this.blocks[y]=(0,V.Z)(document.createElement("div")),this.domNode.appendChild(pe));let ke,Ve;Z.options.blockIsAfterEnd?(ke=t.getVerticalOffsetAfterLineNumber(Z.range.endLineNumber,!1),Ve=t.getVerticalOffsetAfterLineNumber(Z.range.endLineNumber,!0)):(ke=t.getVerticalOffsetForLineNumber(Z.range.startLineNumber,!0),Ve=Z.range.isEmpty()&&!Z.options.blockDoesNotCollapse?t.getVerticalOffsetForLineNumber(Z.range.startLineNumber,!1):t.getVerticalOffsetAfterLineNumber(Z.range.endLineNumber,!0));const[Xe,gt,Ct,It]=(l=Z.options.blockPadding)!==null&&l!==void 0?l:[0,0,0,0];pe.setClassName("blockDecorations-block "+Z.options.blockClassName),pe.setLeft(this.contentLeft-It),pe.setWidth(this.contentWidth+It+gt),pe.setTop(ke-t.scrollTop-Xe),pe.setHeight(Ve-ke+Xe+Ct),y++}for(let Z=y;Z0?this.domNode.setDisplay("block"):this.domNode.setDisplay("none"),this._cachedDomNodeOffsetWidth=-1,this._cachedDomNodeOffsetHeight=-1}_layoutBoxInViewport(t,l,y,H){const Z=t.top,pe=Z,ke=t.top+t.height,Ve=H.viewportHeight-ke,Xe=Z-y,gt=pe>=y,Ct=ke,It=Ve>=y;let Bt=t.left;return Bt+l>H.scrollLeft+H.viewportWidth&&(Bt=H.scrollLeft+H.viewportWidth-l),BtXe){const Bt=It-(Xe-H);It-=Bt,y-=Bt}if(It=mn,Gn=Bt+y<=Yt.height-Mn;return this._fixedOverflowWidgets?{fitsAbove:Tn,aboveTop:Math.max(It,mn),fitsBelow:Gn,belowTop:Bt,left:gn}:{fitsAbove:Tn,aboveTop:ke,fitsBelow:Gn,belowTop:Ve,left:tn}}_prepareRenderWidgetAtExactPositionOverflowing(t){return new nt(t.top,t.left+this._contentLeft)}_getAnchorsCoordinates(t){var l,y;const H=ke(this._primaryAnchor.viewPosition,this._affinity,this._lineHeight),Z=((l=this._secondaryAnchor.viewPosition)===null||l===void 0?void 0:l.lineNumber)===((y=this._primaryAnchor.viewPosition)===null||y===void 0?void 0:y.lineNumber)?this._secondaryAnchor.viewPosition:null,pe=ke(Z,this._affinity,this._lineHeight);return{primary:H,secondary:pe};function ke(Ve,Xe,gt){if(!Ve)return null;const Ct=t.visibleRangeForPosition(Ve);if(!Ct)return null;const It=Ve.column===1&&Xe===3?0:Ct.left,Bt=t.getVerticalOffsetForLineNumber(Ve.lineNumber)-t.scrollTop;return new it(Bt,It,gt)}}_reduceAnchorCoordinates(t,l,y){if(!l)return t;const H=this._context.configuration.options.get(50);let Z=l.left;return Zt.endLineNumber||this.domNode.setMaxWidth(this._maxWidth)}prepareRender(t){this._renderData=this._prepareRenderWidget(t)}render(t){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden")),typeof this._actual.afterRender=="function"&&bt(this._actual.afterRender,this._actual,null);return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.coordinate.top),this.domNode.setLeft(this._renderData.coordinate.left)):(this.domNode.setTop(this._renderData.coordinate.top+t.scrollTop-t.bigNumbersDelta),this.domNode.setLeft(this._renderData.coordinate.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0),typeof this._actual.afterRender=="function"&&bt(this._actual.afterRender,this._actual,this._renderData.position)}}class Ge{constructor(t,l){this.modelPosition=t,this.viewPosition=l}}class nt{constructor(t,l){this.top=t,this.left=l,this._coordinateBrand=void 0}}class it{constructor(t,l,y){this.top=t,this.left=l,this.height=y,this._anchorCoordinateBrand=void 0}}function bt(Pt,t,...l){try{return Pt.call(t,...l)}catch{return null}}var Dt=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js");class At extends Nt{constructor(t){super(),this._context=t;const l=this._context.configuration.options,y=l.get(145);this._renderLineHighlight=l.get(96),this._renderLineHighlightOnlyWhenFocus=l.get(97),this._wordWrap=y.isViewportWrapping,this._contentLeft=y.contentLeft,this._contentWidth=y.contentWidth,this._selectionIsEmpty=!0,this._focused=!1,this._cursorLineNumbers=[1],this._selections=[new Le.L(1,1,1,1)],this._renderData=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}_readFromSelections(){let t=!1;const l=new Set;for(const Z of this._selections)l.add(Z.positionLineNumber);const y=Array.from(l);y.sort((Z,pe)=>Z-pe),s.aI(this._cursorLineNumbers,y)||(this._cursorLineNumbers=y,t=!0);const H=this._selections.every(Z=>Z.isEmpty());return this._selectionIsEmpty!==H&&(this._selectionIsEmpty=H,t=!0),t}onThemeChanged(t){return this._readFromSelections()}onConfigurationChanged(t){const l=this._context.configuration.options,y=l.get(145);return this._renderLineHighlight=l.get(96),this._renderLineHighlightOnlyWhenFocus=l.get(97),this._wordWrap=y.isViewportWrapping,this._contentLeft=y.contentLeft,this._contentWidth=y.contentWidth,!0}onCursorStateChanged(t){return this._selections=t.selections,this._readFromSelections()}onFlushed(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return t.scrollWidthChanged||t.scrollTopChanged}onZonesChanged(t){return!0}onFocusChanged(t){return this._renderLineHighlightOnlyWhenFocus?(this._focused=t.isFocused,!0):!1}prepareRender(t){if(!this._shouldRenderThis()){this._renderData=null;return}const l=t.visibleRange.startLineNumber,y=t.visibleRange.endLineNumber,H=[];for(let pe=l;pe<=y;pe++){const ke=pe-l;H[ke]=""}if(this._wordWrap){const pe=this._renderOne(t,!1);for(const ke of this._cursorLineNumbers){const Ve=this._context.viewModel.coordinatesConverter,Xe=Ve.convertViewPositionToModelPosition(new he.y(ke,1)).lineNumber,gt=Ve.convertModelPositionToViewPosition(new he.y(Xe,1)).lineNumber,Ct=Ve.convertModelPositionToViewPosition(new he.y(Xe,this._context.viewModel.model.getLineMaxColumn(Xe))).lineNumber,It=Math.max(gt,l),Bt=Math.min(Ct,y);for(let Yt=It;Yt<=Bt;Yt++){const tn=Yt-l;H[tn]=pe}}}const Z=this._renderOne(t,!0);for(const pe of this._cursorLineNumbers){if(pey)continue;const ke=pe-l;H[ke]=Z}this._renderData=H}render(t,l){if(!this._renderData)return"";const y=l-t;return y>=this._renderData.length?"":this._renderData[y]}_shouldRenderInMargin(){return(this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all")&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}_shouldRenderInContent(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty&&(!this._renderLineHighlightOnlyWhenFocus||this._focused)}}class et extends At{_renderOne(t,l){return`
    `}_shouldRenderThis(){return this._shouldRenderInContent()}_shouldRenderOther(){return this._shouldRenderInMargin()}}class at extends At{_renderOne(t,l){return`
    `}_shouldRenderThis(){return!0}_shouldRenderOther(){return this._shouldRenderInContent()}}(0,Be.zy)((Pt,t)=>{const l=Pt.getColor(vt.kG);if(l&&(t.addRule(`.monaco-editor .view-overlays .current-line { background-color: ${l}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-margin { background-color: ${l}; border: none; }`)),!l||l.isTransparent()||Pt.defines(vt.Mf)){const y=Pt.getColor(vt.Mf);y&&(t.addRule(`.monaco-editor .view-overlays .current-line-exact { border: 2px solid ${y}; }`),t.addRule(`.monaco-editor .margin-view-overlays .current-line-exact-margin { border: 2px solid ${y}; }`),(0,Dt.Bb)(Pt.type)&&(t.addRule(".monaco-editor .view-overlays .current-line-exact { border-width: 1px; }"),t.addRule(".monaco-editor .margin-view-overlays .current-line-exact-margin { border-width: 1px; }")))}});class Tt extends Nt{constructor(t){super(),this._context=t;const l=this._context.configuration.options;this._typicalHalfwidthCharacterWidth=l.get(50).typicalHalfwidthCharacterWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(t){const l=this._context.configuration.options;return this._typicalHalfwidthCharacterWidth=l.get(50).typicalHalfwidthCharacterWidth,!0}onDecorationsChanged(t){return!0}onFlushed(t){return!0}onLinesChanged(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return t.scrollTopChanged||t.scrollWidthChanged}onZonesChanged(t){return!0}prepareRender(t){const l=t.getDecorationsInViewport();let y=[],H=0;for(let Ve=0,Xe=l.length;Ve{if(Ve.options.zIndexXe.options.zIndex)return 1;const gt=Ve.options.className,Ct=Xe.options.className;return gtCt?1:ve.Q.compareRangesUsingStarts(Ve.range,Xe.range)});const Z=t.visibleRange.startLineNumber,pe=t.visibleRange.endLineNumber,ke=[];for(let Ve=Z;Ve<=pe;Ve++){const Xe=Ve-Z;ke[Xe]=""}this._renderWholeLineDecorations(t,y,ke),this._renderNormalDecorations(t,y,ke),this._renderResult=ke}_renderWholeLineDecorations(t,l,y){const H=t.visibleRange.startLineNumber,Z=t.visibleRange.endLineNumber;for(let pe=0,ke=l.length;pe',gt=Math.max(Ve.range.startLineNumber,H),Ct=Math.min(Ve.range.endLineNumber,Z);for(let It=gt;It<=Ct;It++){const Bt=It-H;y[Bt]+=Xe}}}_renderNormalDecorations(t,l,y){var H;const Z=t.visibleRange.startLineNumber;let pe=null,ke=!1,Ve=null,Xe=!1;for(let gt=0,Ct=l.length;gt';ke[It]+=mn}}}render(t,l){if(!this._renderResult)return"";const y=l-t;return y<0||y>=this._renderResult.length?"":this._renderResult[y]}}class dt extends re{constructor(t,l,y,H){super(t);const Z=this._context.configuration.options,pe=Z.get(103),ke=Z.get(75),Ve=Z.get(40),Xe=Z.get(106),gt={listenOnDomNode:y.domNode,className:"editor-scrollable "+(0,Be.Pz)(t.theme.type),useShadows:!1,lazyRender:!0,vertical:pe.vertical,horizontal:pe.horizontal,verticalHasArrows:pe.verticalHasArrows,horizontalHasArrows:pe.horizontalHasArrows,verticalScrollbarSize:pe.verticalScrollbarSize,verticalSliderSize:pe.verticalSliderSize,horizontalScrollbarSize:pe.horizontalScrollbarSize,horizontalSliderSize:pe.horizontalSliderSize,handleMouseWheel:pe.handleMouseWheel,alwaysConsumeMouseWheel:pe.alwaysConsumeMouseWheel,arrowSize:pe.arrowSize,mouseWheelScrollSensitivity:ke,fastScrollSensitivity:Ve,scrollPredominantAxis:Xe,scrollByPage:pe.scrollByPage};this.scrollbar=this._register(new We.oO(l.domNode,gt,this._context.viewLayout.getScrollable())),te.write(this.scrollbar.getDomNode(),6),this.scrollbarDomNode=(0,V.Z)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();const Ct=(It,Bt,Yt)=>{const tn={};if(Bt){const gn=It.scrollTop;gn&&(tn.scrollTop=this._context.viewLayout.getCurrentScrollTop()+gn,It.scrollTop=0)}if(Yt){const gn=It.scrollLeft;gn&&(tn.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+gn,It.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(tn,1)};this._register(g.ko(y.domNode,"scroll",It=>Ct(y.domNode,!0,!0))),this._register(g.ko(l.domNode,"scroll",It=>Ct(l.domNode,!0,!1))),this._register(g.ko(H.domNode,"scroll",It=>Ct(H.domNode,!0,!1))),this._register(g.ko(this.scrollbarDomNode.domNode,"scroll",It=>Ct(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){const t=this._context.configuration.options,l=t.get(145);this.scrollbarDomNode.setLeft(l.contentLeft),t.get(73).side==="right"?this.scrollbarDomNode.setWidth(l.contentWidth+l.minimap.minimapWidth):this.scrollbarDomNode.setWidth(l.contentWidth),this.scrollbarDomNode.setHeight(l.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(t){this.scrollbar.delegateVerticalScrollbarPointerDown(t)}delegateScrollFromMouseWheelEvent(t){this.scrollbar.delegateScrollFromMouseWheelEvent(t)}onConfigurationChanged(t){if(t.hasChanged(103)||t.hasChanged(75)||t.hasChanged(40)){const l=this._context.configuration.options,y=l.get(103),H=l.get(75),Z=l.get(40),pe=l.get(106),ke={vertical:y.vertical,horizontal:y.horizontal,verticalScrollbarSize:y.verticalScrollbarSize,horizontalScrollbarSize:y.horizontalScrollbarSize,scrollByPage:y.scrollByPage,handleMouseWheel:y.handleMouseWheel,mouseWheelScrollSensitivity:H,fastScrollSensitivity:Z,scrollPredominantAxis:pe};this.scrollbar.updateOptions(ke)}return t.hasChanged(145)&&this._setLayout(),!0}onScrollChanged(t){return!0}onThemeChanged(t){return this.scrollbar.updateClassName("editor-scrollable "+(0,Be.Pz)(this._context.theme.type)),!0}prepareRender(t){}render(t){this.scrollbar.renderNow()}}var Ae=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js");class ct{constructor(t,l,y,H,Z){this.startLineNumber=t,this.endLineNumber=l,this.className=y,this.tooltip=H,this._decorationToRenderBrand=void 0,this.zIndex=Z??0}}class ut{constructor(t,l,y){this.className=t,this.zIndex=l,this.tooltip=y}}class je{constructor(){this.decorations=[]}add(t){this.decorations.push(t)}getDecorations(){return this.decorations}}class Rt extends Nt{_render(t,l,y){const H=[];for(let ke=t;ke<=l;ke++){const Ve=ke-t;H[Ve]=new je}if(y.length===0)return H;y.sort((ke,Ve)=>ke.className===Ve.className?ke.startLineNumber===Ve.startLineNumber?ke.endLineNumber-Ve.endLineNumber:ke.startLineNumber-Ve.startLineNumber:ke.classNameH)continue;const Xe=Math.max(ke,y),gt=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new he.y(Xe,0)),Ct=this._context.viewModel.glyphLanes.getLanesAtLine(gt.lineNumber).indexOf(Z.preference.lane);l.push(new vn(Xe,Ct,Z.preference.zIndex,Z))}}_collectSortedGlyphRenderRequests(t){const l=[];return this._collectDecorationBasedGlyphRenderRequest(t,l),this._collectWidgetBasedGlyphRenderRequest(t,l),l.sort((y,H)=>y.lineNumber===H.lineNumber?y.laneIndex===H.laneIndex?y.zIndex===H.zIndex?H.type===y.type?y.type===0&&H.type===0?y.className0;){const H=l.peek();if(!H)break;const Z=l.takeWhile(ke=>ke.lineNumber===H.lineNumber&&ke.laneIndex===H.laneIndex);if(!Z||Z.length===0)break;const pe=Z[0];if(pe.type===0){const ke=[];for(const Ve of Z){if(Ve.zIndex!==pe.zIndex||Ve.type!==pe.type)break;(ke.length===0||ke[ke.length-1]!==Ve.className)&&ke.push(Ve.className)}y.push(pe.accept(ke.join(" ")))}else pe.widget.renderInfo={lineNumber:pe.lineNumber,laneIndex:pe.laneIndex}}this._decorationGlyphsToRender=y}render(t){if(!this._glyphMargin){for(const y of Object.values(this._widgets))y.domNode.setDisplay("none");for(;this._managedDomNodes.length>0;){const y=this._managedDomNodes.pop();y?.domNode.remove()}return}const l=Math.round(this._glyphMarginWidth/this._glyphMarginDecorationLaneCount);for(const y of Object.values(this._widgets))if(!y.renderInfo)y.domNode.setDisplay("none");else{const H=t.viewportData.relativeVerticalOffset[y.renderInfo.lineNumber-t.viewportData.startLineNumber],Z=this._glyphMarginLeft+y.renderInfo.laneIndex*this._lineHeight;y.domNode.setDisplay("block"),y.domNode.setTop(H),y.domNode.setLeft(Z),y.domNode.setWidth(l),y.domNode.setHeight(this._lineHeight)}for(let y=0;ythis._decorationGlyphsToRender.length;){const y=this._managedDomNodes.pop();y?.domNode.remove()}}}class ln{constructor(t,l,y,H){this.lineNumber=t,this.laneIndex=l,this.zIndex=y,this.className=H,this.type=0}accept(t){return new Ln(this.lineNumber,this.laneIndex,t)}}class vn{constructor(t,l,y,H){this.lineNumber=t,this.laneIndex=l,this.zIndex=y,this.widget=H,this.type=1}}class Ln{constructor(t,l,y){this.lineNumber=t,this.laneIndex=l,this.combinedClassName=y}}var En=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),In=e("./node_modules/monaco-editor/esm/vs/editor/common/model/guidesTextModelPart.js"),ei=e("./node_modules/monaco-editor/esm/vs/editor/common/textModelGuides.js");class en extends Nt{constructor(t){super(),this._context=t,this._primaryPosition=null;const l=this._context.configuration.options,y=l.get(146),H=l.get(50);this._spaceWidth=H.spaceWidth,this._maxIndentLeft=y.wrappingColumn===-1?-1:y.wrappingColumn*H.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=l.get(16),this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(t){const l=this._context.configuration.options,y=l.get(146),H=l.get(50);return this._spaceWidth=H.spaceWidth,this._maxIndentLeft=y.wrappingColumn===-1?-1:y.wrappingColumn*H.typicalHalfwidthCharacterWidth,this._bracketPairGuideOptions=l.get(16),!0}onCursorStateChanged(t){var l;const H=t.selections[0].getPosition();return!((l=this._primaryPosition)===null||l===void 0)&&l.equals(H)?!1:(this._primaryPosition=H,!0)}onDecorationsChanged(t){return!0}onFlushed(t){return!0}onLinesChanged(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return t.scrollTopChanged}onZonesChanged(t){return!0}onLanguageConfigurationChanged(t){return!0}prepareRender(t){var l,y,H,Z;if(!this._bracketPairGuideOptions.indentation&&this._bracketPairGuideOptions.bracketPairs===!1){this._renderResult=null;return}const pe=t.visibleRange.startLineNumber,ke=t.visibleRange.endLineNumber,Ve=t.scrollWidth,Xe=this._primaryPosition,gt=this.getGuidesByLine(pe,Math.min(ke+1,this._context.viewModel.getLineCount()),Xe),Ct=[];for(let It=pe;It<=ke;It++){const Bt=It-pe,Yt=gt[Bt];let tn="";const gn=(y=(l=t.visibleRangeForPosition(new he.y(It,1)))===null||l===void 0?void 0:l.left)!==null&&y!==void 0?y:0;for(const mn of Yt){const Mn=mn.column===-1?gn+(mn.visibleColumn-1)*this._spaceWidth:t.visibleRangeForPosition(new he.y(It,mn.column)).left;if(Mn>Ve||this._maxIndentLeft>0&&Mn>this._maxIndentLeft)break;const Tn=mn.horizontalLine?mn.horizontalLine.top?"horizontal-top":"horizontal-bottom":"vertical",Gn=mn.horizontalLine?((Z=(H=t.visibleRangeForPosition(new he.y(It,mn.horizontalLine.endColumn)))===null||H===void 0?void 0:H.left)!==null&&Z!==void 0?Z:Mn+this._spaceWidth)-Mn:this._spaceWidth;tn+=`
    `}Ct[Bt]=tn}this._renderResult=Ct}getGuidesByLine(t,l,y){const H=this._bracketPairGuideOptions.bracketPairs!==!1?this._context.viewModel.getBracketGuidesInRangeByLine(t,l,y,{highlightActive:this._bracketPairGuideOptions.highlightActiveBracketPair,horizontalGuides:this._bracketPairGuideOptions.bracketPairsHorizontal===!0?ei.N6.Enabled:this._bracketPairGuideOptions.bracketPairsHorizontal==="active"?ei.N6.EnabledForActive:ei.N6.Disabled,includeInactive:this._bracketPairGuideOptions.bracketPairs===!0}):null,Z=this._bracketPairGuideOptions.indentation?this._context.viewModel.getLinesIndentGuides(t,l):null;let pe=0,ke=0,Ve=0;if(this._bracketPairGuideOptions.highlightActiveIndentation!==!1&&y){const Ct=this._context.viewModel.getActiveIndentGuide(y.lineNumber,t,l);pe=Ct.startLineNumber,ke=Ct.endLineNumber,Ve=Ct.indent}const{indentSize:Xe}=this._context.viewModel.model.getOptions(),gt=[];for(let Ct=t;Ct<=l;Ct++){const It=new Array;gt.push(It);const Bt=H?H[Ct-t]:[],Yt=new s.j3(Bt),tn=Z?Z[Ct-t]:0;for(let gn=1;gn<=tn;gn++){const mn=(gn-1)*Xe+1,Mn=(this._bracketPairGuideOptions.highlightActiveIndentation==="always"||Bt.length===0)&&pe<=Ct&&Ct<=ke&&gn===Ve;It.push(...Yt.takeWhile(Gn=>Gn.visibleColumn!0)||[])}return gt}render(t,l){if(!this._renderResult)return"";const y=l-t;return y<0||y>=this._renderResult.length?"":this._renderResult[y]}}function xe(Pt){if(!(Pt&&Pt.isTransparent()))return Pt}(0,Be.zy)((Pt,t)=>{const l=[{bracketColor:vt.sN,guideColor:vt.n4,guideColorActive:vt.bB},{bracketColor:vt.lQ,guideColor:vt.I2,guideColorActive:vt.WS},{bracketColor:vt.ss,guideColor:vt.Bo,guideColorActive:vt.Pe},{bracketColor:vt.l5,guideColor:vt.If,guideColorActive:vt.WD},{bracketColor:vt.sH,guideColor:vt.BD,guideColorActive:vt.P1},{bracketColor:vt.zp,guideColor:vt.IW,guideColorActive:vt.WY}],y=new In.k,H=[{indentColor:vt.vV,indentColorActive:vt.H0},{indentColor:vt.ob,indentColorActive:vt.Am},{indentColor:vt.hz,indentColorActive:vt.tK},{indentColor:vt.ow,indentColorActive:vt.A3},{indentColor:vt.vP,indentColorActive:vt.tp},{indentColor:vt.CM,indentColorActive:vt.As}],Z=l.map(ke=>{var Ve,Xe;const gt=Pt.getColor(ke.bracketColor),Ct=Pt.getColor(ke.guideColor),It=Pt.getColor(ke.guideColorActive),Bt=xe((Ve=xe(Ct))!==null&&Ve!==void 0?Ve:gt?.transparent(.3)),Yt=xe((Xe=xe(It))!==null&&Xe!==void 0?Xe:gt);if(!(!Bt||!Yt))return{guideColor:Bt,guideColorActive:Yt}}).filter(En.O9),pe=H.map(ke=>{const Ve=Pt.getColor(ke.indentColor),Xe=Pt.getColor(ke.indentColorActive),gt=xe(Ve),Ct=xe(Xe);if(!(!gt||!Ct))return{indentColor:gt,indentColorActive:Ct}}).filter(En.O9);if(Z.length>0){for(let ke=0;ke<30;ke++){const Ve=Z[ke%Z.length];t.addRule(`.monaco-editor .${y.getInlineClassNameOfLevel(ke).replace(/ /g,".")} { --guide-color: ${Ve.guideColor}; --guide-color-active: ${Ve.guideColorActive}; }`)}t.addRule(".monaco-editor .vertical { box-shadow: 1px 0 0 0 var(--guide-color) inset; }"),t.addRule(".monaco-editor .horizontal-top { border-top: 1px solid var(--guide-color); }"),t.addRule(".monaco-editor .horizontal-bottom { border-bottom: 1px solid var(--guide-color); }"),t.addRule(`.monaco-editor .vertical.${y.activeClassName} { box-shadow: 1px 0 0 0 var(--guide-color-active) inset; }`),t.addRule(`.monaco-editor .horizontal-top.${y.activeClassName} { border-top: 1px solid var(--guide-color-active); }`),t.addRule(`.monaco-editor .horizontal-bottom.${y.activeClassName} { border-bottom: 1px solid var(--guide-color-active); }`)}if(pe.length>0){for(let ke=0;ke<30;ke++){const Ve=pe[ke%pe.length];t.addRule(`.monaco-editor .lines-content .core-guide-indent.lvl-${ke} { --indent-color: ${Ve.indentColor}; --indent-color-active: ${Ve.indentColorActive}; }`)}t.addRule(".monaco-editor .lines-content .core-guide-indent { box-shadow: 1px 0 0 0 var(--indent-color) inset; }"),t.addRule(".monaco-editor .lines-content .core-guide-indent.indent-active { box-shadow: 1px 0 0 0 var(--indent-color-active) inset; }")}});var st=e("./node_modules/monaco-editor/esm/vs/base/common/async.js");class Wt{get didDomLayout(){return this._didDomLayout}readClientRect(){if(!this._clientRectRead){this._clientRectRead=!0;const t=this._domNode.getBoundingClientRect();this.markDidDomLayout(),this._clientRectDeltaLeft=t.left,this._clientRectScale=t.width/this._domNode.offsetWidth}}get clientRectDeltaLeft(){return this._clientRectRead||this.readClientRect(),this._clientRectDeltaLeft}get clientRectScale(){return this._clientRectRead||this.readClientRect(),this._clientRectScale}constructor(t,l){this._domNode=t,this.endNode=l,this._didDomLayout=!1,this._clientRectDeltaLeft=0,this._clientRectScale=1,this._clientRectRead=!1}markDidDomLayout(){this._didDomLayout=!0}}class rn{constructor(){this._currentVisibleRange=new ve.Q(1,1,1,1)}getCurrentVisibleRange(){return this._currentVisibleRange}setCurrentVisibleRange(t){this._currentVisibleRange=t}}class hn{constructor(t,l,y,H,Z,pe,ke){this.minimalReveal=t,this.lineNumber=l,this.startColumn=y,this.endColumn=H,this.startScrollTop=Z,this.stopScrollTop=pe,this.scrollType=ke,this.type="range",this.minLineNumber=l,this.maxLineNumber=l}}class Dn{constructor(t,l,y,H,Z){this.minimalReveal=t,this.selections=l,this.startScrollTop=y,this.stopScrollTop=H,this.scrollType=Z,this.type="selections";let pe=l[0].startLineNumber,ke=l[0].endLineNumber;for(let Ve=1,Xe=l.length;Ve{this._updateLineWidthsSlow()},200),this._asyncCheckMonospaceFontAssumptions=new st.uC(()=>{this._checkMonospaceFontAssumptions()},2e3),this._lastRenderedData=new rn,this._horizontalRevealRequest=null,this._stickyScrollEnabled=H.get(115).enabled,this._maxNumberStickyLines=H.get(115).maxLineCount}dispose(){this._asyncUpdateLineWidths.dispose(),this._asyncCheckMonospaceFontAssumptions.dispose(),super.dispose()}getDomNode(){return this.domNode}createVisibleLine(){return new D.Gb(this._viewLineOptions)}onConfigurationChanged(t){this._visibleLines.onConfigurationChanged(t),t.hasChanged(146)&&(this._maxLineWidth=0);const l=this._context.configuration.options,y=l.get(50),H=l.get(146);return this._lineHeight=l.get(67),this._typicalHalfwidthCharacterWidth=y.typicalHalfwidthCharacterWidth,this._isViewportWrapping=H.isViewportWrapping,this._revealHorizontalRightPadding=l.get(100),this._cursorSurroundingLines=l.get(29),this._cursorSurroundingLinesStyle=l.get(30),this._canUseLayerHinting=!l.get(32),this._stickyScrollEnabled=l.get(115).enabled,this._maxNumberStickyLines=l.get(115).maxLineCount,(0,d.M)(this.domNode,y),this._onOptionsMaybeChanged(),t.hasChanged(145)&&(this._maxLineWidth=0),!0}_onOptionsMaybeChanged(){const t=this._context.configuration,l=new D.Ax(t,this._context.theme.type);if(!this._viewLineOptions.equals(l)){this._viewLineOptions=l;const y=this._visibleLines.getStartLineNumber(),H=this._visibleLines.getEndLineNumber();for(let Z=y;Z<=H;Z++)this._visibleLines.getVisibleLine(Z).onOptionsChanged(this._viewLineOptions);return!0}return!1}onCursorStateChanged(t){const l=this._visibleLines.getStartLineNumber(),y=this._visibleLines.getEndLineNumber();let H=!1;for(let Z=l;Z<=y;Z++)H=this._visibleLines.getVisibleLine(Z).onSelectionChanged()||H;return H}onDecorationsChanged(t){{const l=this._visibleLines.getStartLineNumber(),y=this._visibleLines.getEndLineNumber();for(let H=l;H<=y;H++)this._visibleLines.getVisibleLine(H).onDecorationsChanged()}return!0}onFlushed(t){const l=this._visibleLines.onFlushed(t);return this._maxLineWidth=0,l}onLinesChanged(t){return this._visibleLines.onLinesChanged(t)}onLinesDeleted(t){return this._visibleLines.onLinesDeleted(t)}onLinesInserted(t){return this._visibleLines.onLinesInserted(t)}onRevealRangeRequest(t){const l=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),t.source,t.minimalReveal,t.range,t.selections,t.verticalType);if(l===-1)return!1;let y=this._context.viewLayout.validateScrollPosition({scrollTop:l});t.revealHorizontal?t.range&&t.range.startLineNumber!==t.range.endLineNumber?y={scrollTop:y.scrollTop,scrollLeft:0}:t.range?this._horizontalRevealRequest=new hn(t.minimalReveal,t.range.startLineNumber,t.range.startColumn,t.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),y.scrollTop,t.scrollType):t.selections&&t.selections.length>0&&(this._horizontalRevealRequest=new Dn(t.minimalReveal,t.selections,this._context.viewLayout.getCurrentScrollTop(),y.scrollTop,t.scrollType)):this._horizontalRevealRequest=null;const Z=Math.abs(this._context.viewLayout.getCurrentScrollTop()-y.scrollTop)<=this._lineHeight?1:t.scrollType;return this._context.viewModel.viewLayout.setScrollPosition(y,Z),!0}onScrollChanged(t){if(this._horizontalRevealRequest&&t.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&t.scrollTopChanged){const l=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),y=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(t.scrollTopy)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(t.scrollWidth),this._visibleLines.onScrollChanged(t)||!0}onTokensChanged(t){return this._visibleLines.onTokensChanged(t)}onZonesChanged(t){return this._context.viewModel.viewLayout.setMaxLineWidth(this._maxLineWidth),this._visibleLines.onZonesChanged(t)}onThemeChanged(t){return this._onOptionsMaybeChanged()}getPositionFromDOMInfo(t,l){const y=this._getViewLineDomNode(t);if(y===null)return null;const H=this._getLineNumberFor(y);if(H===-1||H<1||H>this._context.viewModel.getLineCount())return null;if(this._context.viewModel.getLineMaxColumn(H)===1)return new he.y(H,1);const Z=this._visibleLines.getStartLineNumber(),pe=this._visibleLines.getEndLineNumber();if(Hpe)return null;let ke=this._visibleLines.getVisibleLine(H).getColumnOfNodeOffset(t,l);const Ve=this._context.viewModel.getLineMinColumn(H);return key)return-1;const H=new Wt(this.domNode.domNode,this._textRangeRestingSpot),Z=this._visibleLines.getVisibleLine(t).getWidth(H);return this._updateLineWidthsSlowIfDomDidLayout(H),Z}linesVisibleRangesForRange(t,l){if(this.shouldRender())return null;const y=t.endLineNumber,H=ve.Q.intersectRanges(t,this._lastRenderedData.getCurrentVisibleRange());if(!H)return null;const Z=[];let pe=0;const ke=new Wt(this.domNode.domNode,this._textRangeRestingSpot);let Ve=0;l&&(Ve=this._context.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new he.y(H.startLineNumber,1)).lineNumber);const Xe=this._visibleLines.getStartLineNumber(),gt=this._visibleLines.getEndLineNumber();for(let Ct=H.startLineNumber;Ct<=H.endLineNumber;Ct++){if(Ctgt)continue;const It=Ct===H.startLineNumber?H.startColumn:1,Bt=Ct!==H.endLineNumber,Yt=Bt?this._context.viewModel.getLineMaxColumn(Ct):H.endColumn,tn=this._visibleLines.getVisibleLine(Ct).getVisibleRangesForRange(Ct,It,Yt,ke);if(tn){if(l&&Ctthis._visibleLines.getEndLineNumber())return null;const H=new Wt(this.domNode.domNode,this._textRangeRestingSpot),Z=this._visibleLines.getVisibleLine(t).getVisibleRangesForRange(t,l,y,H);return this._updateLineWidthsSlowIfDomDidLayout(H),Z}visibleRangeForPosition(t){const l=this._visibleRangesForLineRange(t.lineNumber,t.column,t.column);return l?new Ti.qN(l.outsideRenderedLine,l.ranges[0].left):null}_updateLineWidthsFast(){return this._updateLineWidths(!0)}_updateLineWidthsSlow(){this._updateLineWidths(!1)}_updateLineWidthsSlowIfDomDidLayout(t){t.didDomLayout&&(this._asyncUpdateLineWidths.isScheduled()||(this._asyncUpdateLineWidths.cancel(),this._updateLineWidthsSlow()))}_updateLineWidths(t){const l=this._visibleLines.getStartLineNumber(),y=this._visibleLines.getEndLineNumber();let H=1,Z=!0;for(let pe=l;pe<=y;pe++){const ke=this._visibleLines.getVisibleLine(pe);if(t&&!ke.getWidthIsFast()){Z=!1;continue}H=Math.max(H,ke.getWidth(null))}return Z&&l===1&&y===this._context.viewModel.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(H),Z}_checkMonospaceFontAssumptions(){let t=-1,l=-1;const y=this._visibleLines.getStartLineNumber(),H=this._visibleLines.getEndLineNumber();for(let Z=y;Z<=H;Z++){const pe=this._visibleLines.getVisibleLine(Z);if(pe.needsMonospaceFontCheck()){const ke=pe.getWidth(null);ke>l&&(l=ke,t=Z)}}if(t!==-1&&!this._visibleLines.getVisibleLine(t).monospaceAssumptionsAreValid())for(let Z=y;Z<=H;Z++)this._visibleLines.getVisibleLine(Z).onMonospaceAssumptionsInvalidated()}prepareRender(){throw new Error("Not supported")}render(){throw new Error("Not supported")}renderText(t){if(this._visibleLines.renderLines(t),this._lastRenderedData.setCurrentVisibleRange(t.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){const y=this._horizontalRevealRequest;if(t.startLineNumber<=y.minLineNumber&&y.maxLineNumber<=t.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();const H=this._computeScrollLeftToReveal(y);H&&(this._isViewportWrapping||this._ensureMaxLineWidth(H.maxHorizontalOffset),this._context.viewModel.viewLayout.setScrollPosition({scrollLeft:H.scrollLeft},y.scrollType))}}if(this._updateLineWidthsFast()?this._asyncUpdateLineWidths.cancel():this._asyncUpdateLineWidths.schedule(),i.j9&&!this._asyncCheckMonospaceFontAssumptions.isScheduled()){const y=this._visibleLines.getStartLineNumber(),H=this._visibleLines.getEndLineNumber();for(let Z=y;Z<=H;Z++)if(this._visibleLines.getVisibleLine(Z).needsMonospaceFontCheck()){this._asyncCheckMonospaceFontAssumptions.schedule();break}}this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");const l=this._context.viewLayout.getCurrentScrollTop()-t.bigNumbersDelta;this._linesContent.setTop(-l),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())}_ensureMaxLineWidth(t){const l=Math.ceil(t);this._maxLineWidth0){let mn=Z[0].startLineNumber,Mn=Z[0].endLineNumber;for(let Tn=1,Gn=Z.length;TnVe){if(!gt)return-1;gn=Ct}else if(pe===5||pe===6)if(pe===6&&ke<=Ct&&It<=Xe)gn=ke;else{const mn=Math.max(5*this._lineHeight,Ve*.2),Mn=Ct-mn,Tn=It-Ve;gn=Math.max(Tn,Mn)}else if(pe===1||pe===2)if(pe===2&&ke<=Ct&&It<=Xe)gn=ke;else{const mn=(Ct+It)/2;gn=Math.max(0,mn-Ve/2)}else gn=this._computeMinimumScrolling(ke,Xe,Ct,It,pe===3,pe===4);return gn}_computeScrollLeftToReveal(t){const l=this._context.viewLayout.getCurrentViewport(),y=this._context.configuration.options.get(145),H=l.left,Z=H+l.width-y.verticalScrollbarWidth;let pe=1073741824,ke=0;if(t.type==="range"){const Xe=this._visibleRangesForLineRange(t.lineNumber,t.startColumn,t.endColumn);if(!Xe)return null;for(const gt of Xe.ranges)pe=Math.min(pe,Math.round(gt.left)),ke=Math.max(ke,Math.round(gt.left+gt.width))}else for(const Xe of t.selections){if(Xe.startLineNumber!==Xe.endLineNumber)return null;const gt=this._visibleRangesForLineRange(Xe.startLineNumber,Xe.startColumn,Xe.endColumn);if(!gt)return null;for(const Ct of gt.ranges)pe=Math.min(pe,Math.round(Ct.left)),ke=Math.max(ke,Math.round(Ct.left+Ct.width))}return t.minimalReveal||(pe=Math.max(0,pe-On.HORIZONTAL_EXTRA_PX),ke+=this._revealHorizontalRightPadding),t.type==="selections"&&ke-pe>l.width?null:{scrollLeft:this._computeMinimumScrolling(H,Z,pe,ke),maxHorizontalOffset:ke}}_computeMinimumScrolling(t,l,y,H,Z,pe){t=t|0,l=l|0,y=y|0,H=H|0,Z=!!Z,pe=!!pe;const ke=l-t;if(H-yl)return Math.max(0,H-ke)}else return y;return t}}On.HORIZONTAL_EXTRA_PX=30;class Bn extends Rt{constructor(t){super(),this._context=t;const y=this._context.configuration.options.get(145);this._decorationsLeft=y.decorationsLeft,this._decorationsWidth=y.decorationsWidth,this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(t){const y=this._context.configuration.options.get(145);return this._decorationsLeft=y.decorationsLeft,this._decorationsWidth=y.decorationsWidth,!0}onDecorationsChanged(t){return!0}onFlushed(t){return!0}onLinesChanged(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return t.scrollTopChanged}onZonesChanged(t){return!0}_getDecorations(t){var l,y;const H=t.getDecorationsInViewport(),Z=[];let pe=0;for(let ke=0,Ve=H.length;ke',Ve=[];for(let Xe=l;Xe<=y;Xe++){const gt=Xe-l,Ct=H[gt].getDecorations();let It="";for(const Bt of Ct){let Yt='
    ';Z[ke]=Xe}this._renderResult=Z}render(t,l){return this._renderResult?this._renderResult[l-t]:""}}var $n=e("./node_modules/monaco-editor/esm/vs/base/browser/globalPointerMoveMonitor.js");class ti{constructor(t,l,y,H){this._rgba8Brand=void 0,this.r=ti._clamp(t),this.g=ti._clamp(l),this.b=ti._clamp(y),this.a=ti._clamp(H)}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}static _clamp(t){return t<0?0:t>255?255:t|0}}ti.Empty=new ti(0,0,0,0);class Jn extends S.jG{static getInstance(){return this._INSTANCE||(this._INSTANCE=(0,S.lC)(new Jn)),this._INSTANCE}constructor(){super(),this._onDidChange=new I.vl,this.onDidChange=this._onDidChange.event,this._updateColorMap(),this._register(Hn.dG.onDidChange(t=>{t.changedColorMap&&this._updateColorMap()}))}_updateColorMap(){const t=Hn.dG.getColorMap();if(!t){this._colors=[ti.Empty],this._backgroundIsLight=!0;return}this._colors=[ti.Empty];for(let y=1;y=.5,this._onDidChange.fire(void 0)}getColor(t){return(t<1||t>=this._colors.length)&&(t=2),this._colors[t]}backgroundIsLight(){return this._backgroundIsLight}}Jn._INSTANCE=null;var Un=e("./node_modules/monaco-editor/esm/vs/editor/common/viewModel.js"),Rn=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js");const cn=(()=>{const Pt=[];for(let t=32;t<=126;t++)Pt.push(t);return Pt.push(65533),Pt})(),$e=(Pt,t)=>(Pt-=32,Pt<0||Pt>96?t<=2?(Pt+96)%96:95:Pt);var yt=e("./node_modules/monaco-editor/esm/vs/base/common/uint.js");class jt{constructor(t,l){this.scale=l,this._minimapCharRendererBrand=void 0,this.charDataNormal=jt.soften(t,12/15),this.charDataLight=jt.soften(t,50/60)}static soften(t,l){const y=new Uint8ClampedArray(t.length);for(let H=0,Z=t.length;Ht.width||y+Yt>t.height){console.warn("bad render request outside image data");return}const tn=gt?this.charDataLight:this.charDataNormal,gn=$e(H,Xe),mn=t.width*4,Mn=ke.r,Tn=ke.g,Gn=ke.b,Zn=Z.r-Mn,ii=Z.g-Tn,si=Z.b-Gn,pi=Math.max(pe,Ve),ai=t.data;let li=gn*It*Bt,_i=y*mn+l*4;for(let gi=0;git.width||y+Ct>t.height){console.warn("bad render request outside image data");return}const It=t.width*4,Bt=.5*(Z/255),Yt=pe.r,tn=pe.g,gn=pe.b,mn=H.r-Yt,Mn=H.g-tn,Tn=H.b-gn,Gn=Yt+mn*Bt,Zn=tn+Mn*Bt,ii=gn+Tn*Bt,si=Math.max(Z,ke),pi=t.data;let ai=y*It+l*4;for(let li=0;li{const t=new Uint8ClampedArray(Pt.length/2);for(let l=0;l>1]=Ut[Pt[l]]<<4|Ut[Pt[l+1]]&15;return t},zt={1:(0,Vt.P)(()=>sn("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")),2:(0,Vt.P)(()=>sn("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126"))};class kt{static create(t,l){if(this.lastCreated&&t===this.lastCreated.scale&&l===this.lastFontFamily)return this.lastCreated;let y;return zt[t]?y=new jt(zt[t](),t):y=kt.createFromSampleData(kt.createSampleData(l).data,t),this.lastFontFamily=l,this.lastCreated=y,y}static createSampleData(t){const l=document.createElement("canvas"),y=l.getContext("2d");l.style.height="16px",l.height=16,l.width=96*10,l.style.width=96*10+"px",y.fillStyle="#ffffff",y.font=`bold 16px ${t}`,y.textBaseline="middle";let H=0;for(const Z of cn)y.fillText(String.fromCharCode(Z),H,16/2),H+=10;return y.getImageData(0,0,96*10,16)}static createFromSampleData(t,l){if(t.length!==61440)throw new Error("Unexpected source in MinimapCharRenderer");const H=kt._downsample(t,l);return new jt(H,l)}static _downsampleChar(t,l,y,H,Z){const pe=1*Z,ke=2*Z;let Ve=H,Xe=0;for(let gt=0;gt0){const Xe=255/Ve;for(let gt=0;gtkt.create(this.fontScale,Ve.fontFamily)),this.defaultBackgroundColor=y.getColor(2),this.backgroundColor=jn._getMinimapBackground(l,this.defaultBackgroundColor),this.foregroundAlpha=jn._getMinimapForegroundOpacity(l)}static _getMinimapBackground(t,l){const y=t.getColor(Rn.ILr);return y?new ti(y.rgba.r,y.rgba.g,y.rgba.b,Math.round(255*y.rgba.a)):l}static _getMinimapForegroundOpacity(t){const l=t.getColor(Rn.K1Z);return l?ti._clamp(Math.round(255*l.rgba.a)):255}static _getSectionHeaderColor(t,l){const y=t.getColor(Rn.By2);return y?new ti(y.rgba.r,y.rgba.g,y.rgba.b,Math.round(255*y.rgba.a)):l}equals(t){return this.renderMinimap===t.renderMinimap&&this.size===t.size&&this.minimapHeightIsEditorHeight===t.minimapHeightIsEditorHeight&&this.scrollBeyondLastLine===t.scrollBeyondLastLine&&this.paddingTop===t.paddingTop&&this.paddingBottom===t.paddingBottom&&this.showSlider===t.showSlider&&this.autohide===t.autohide&&this.pixelRatio===t.pixelRatio&&this.typicalHalfwidthCharacterWidth===t.typicalHalfwidthCharacterWidth&&this.lineHeight===t.lineHeight&&this.minimapLeft===t.minimapLeft&&this.minimapWidth===t.minimapWidth&&this.minimapHeight===t.minimapHeight&&this.canvasInnerWidth===t.canvasInnerWidth&&this.canvasInnerHeight===t.canvasInnerHeight&&this.canvasOuterWidth===t.canvasOuterWidth&&this.canvasOuterHeight===t.canvasOuterHeight&&this.isSampling===t.isSampling&&this.editorHeight===t.editorHeight&&this.fontScale===t.fontScale&&this.minimapLineHeight===t.minimapLineHeight&&this.minimapCharWidth===t.minimapCharWidth&&this.sectionHeaderFontSize===t.sectionHeaderFontSize&&this.defaultBackgroundColor&&this.defaultBackgroundColor.equals(t.defaultBackgroundColor)&&this.backgroundColor&&this.backgroundColor.equals(t.backgroundColor)&&this.foregroundAlpha===t.foregroundAlpha}}class pn{constructor(t,l,y,H,Z,pe,ke,Ve,Xe){this.scrollTop=t,this.scrollHeight=l,this.sliderNeeded=y,this._computedSliderRatio=H,this.sliderTop=Z,this.sliderHeight=pe,this.topPaddingLineCount=ke,this.startLineNumber=Ve,this.endLineNumber=Xe}getDesiredScrollTopFromDelta(t){return Math.round(this.scrollTop+t/this._computedSliderRatio)}getDesiredScrollTopFromTouchLocation(t){return Math.round((t-this.sliderHeight/2)/this._computedSliderRatio)}intersectWithViewport(t){const l=Math.max(this.startLineNumber,t.startLineNumber),y=Math.min(this.endLineNumber,t.endLineNumber);return l>y?null:[l,y]}getYForLineNumber(t,l){return+(t-this.startLineNumber+this.topPaddingLineCount)*l}static create(t,l,y,H,Z,pe,ke,Ve,Xe,gt,Ct){const It=t.pixelRatio,Bt=t.minimapLineHeight,Yt=Math.floor(t.canvasInnerHeight/Bt),tn=t.lineHeight;if(t.minimapHeightIsEditorHeight){let ii=Ve*t.lineHeight+t.paddingTop+t.paddingBottom;t.scrollBeyondLastLine&&(ii+=Math.max(0,Z-t.lineHeight-t.paddingBottom));const si=Math.max(1,Math.floor(Z*Z/ii)),pi=Math.max(0,t.minimapHeight-si),ai=pi/(gt-Z),li=Xe*ai,_i=pi>0,gi=Math.floor(t.canvasInnerHeight/t.minimapLineHeight),Ci=Math.floor(t.paddingTop/t.lineHeight);return new pn(Xe,gt,_i,ai,li,si,Ci,1,Math.min(ke,gi))}let gn;if(pe&&y!==ke){const ii=y-l+1;gn=Math.floor(ii*Bt/It)}else{const ii=Z/tn;gn=Math.floor(ii*Bt/It)}const mn=Math.floor(t.paddingTop/tn);let Mn=Math.floor(t.paddingBottom/tn);if(t.scrollBeyondLastLine){const ii=Z/tn;Mn=Math.max(Mn,ii-1)}let Tn;if(Mn>0){const ii=Z/tn;Tn=(mn+ke+Mn-ii-1)*Bt/It}else Tn=Math.max(0,(mn+ke)*Bt/It-gn);Tn=Math.min(t.minimapHeight-gn,Tn);const Gn=Tn/(gt-Z),Zn=Xe*Gn;if(Yt>=mn+ke+Mn){const ii=Tn>0;return new pn(Xe,gt,ii,Gn,Zn,gn,mn,1,ke)}else{let ii;l>1?ii=l+mn:ii=Math.max(1,Xe/tn);let si,pi=Math.max(1,Math.floor(ii-Zn*It/Bt));piXe&&(pi=Math.min(pi,Ct.startLineNumber),si=Math.max(si,Ct.topPaddingLineCount)),Ct.scrollTop=t.paddingTop?_i=(l-pi+si+li)*Bt/It:_i=Xe/t.paddingTop*(si+li)*Bt/It,new pn(Xe,gt,!0,Gn,_i,gn,si,pi,ai)}}}class Wn{constructor(t){this.dy=t}onContentChanged(){this.dy=-1}onTokensChanged(){this.dy=-1}}Wn.INVALID=new Wn(-1);class Qn{constructor(t,l,y){this.renderedLayout=t,this._imageData=l,this._renderedLines=new Ai(()=>Wn.INVALID),this._renderedLines._set(t.startLineNumber,y)}linesEquals(t){if(!this.scrollEquals(t))return!1;const y=this._renderedLines._get().lines;for(let H=0,Z=y.length;H1){for(let mn=0,Mn=H-1;mn0&&this.minimapLines[y-1]>=t;)y--;let H=this.modelLineToMinimapLine(l)-1;for(;H+1l)return null}return[y+1,H+1]}decorationLineRangeToMinimapLineRange(t,l){let y=this.modelLineToMinimapLine(t),H=this.modelLineToMinimapLine(l);return t!==l&&H===y&&(H===this.minimapLines.length?y>1&&y--:H++),[y,H]}onLinesDeleted(t){const l=t.toLineNumber-t.fromLineNumber+1;let y=this.minimapLines.length,H=0;for(let Z=this.minimapLines.length-1;Z>=0&&!(this.minimapLines[Z]=0&&!(this.minimapLines[y]0,scrollWidth:t.scrollWidth,scrollHeight:t.scrollHeight,viewportStartLineNumber:l,viewportEndLineNumber:y,viewportStartLineNumberVerticalOffset:t.getVerticalOffsetForLineNumber(l),scrollTop:t.scrollTop,scrollLeft:t.scrollLeft,viewportWidth:t.viewportWidth,viewportHeight:t.viewportHeight};this._actual.render(H)}_recreateLineSampling(){this._minimapSelections=null;const t=!!this._samplingState,[l,y]=vi.compute(this.options,this._context.viewModel.getLineCount(),this._samplingState);if(this._samplingState=l,t&&this._samplingState)for(const H of y)switch(H.type){case"deleted":this._actual.onLinesDeleted(H.deleteFromLineNumber,H.deleteToLineNumber);break;case"inserted":this._actual.onLinesInserted(H.insertFromLineNumber,H.insertToLineNumber);break;case"flush":this._actual.onFlushed();break}}getLineCount(){return this._samplingState?this._samplingState.minimapLines.length:this._context.viewModel.getLineCount()}getRealLineCount(){return this._context.viewModel.getLineCount()}getLineContent(t){return this._samplingState?this._context.viewModel.getLineContent(this._samplingState.minimapLines[t-1]):this._context.viewModel.getLineContent(t)}getLineMaxColumn(t){return this._samplingState?this._context.viewModel.getLineMaxColumn(this._samplingState.minimapLines[t-1]):this._context.viewModel.getLineMaxColumn(t)}getMinimapLinesRenderingData(t,l,y){if(this._samplingState){const H=[];for(let Z=0,pe=l-t+1;Z{var Z;return!(!((Z=H.options.minimap)===null||Z===void 0)&&Z.sectionHeaderStyle)});if(this._samplingState){const H=[];for(const Z of y){if(!Z.options.minimap)continue;const pe=Z.range,ke=this._samplingState.modelLineToMinimapLine(pe.startLineNumber),Ve=this._samplingState.modelLineToMinimapLine(pe.endLineNumber);H.push(new Un.vo(new ve.Q(ke,pe.startColumn,Ve,pe.endColumn),Z.options))}return H}return y}getSectionHeaderDecorationsInViewport(t,l){const y=this.options.minimapLineHeight,Z=this.options.sectionHeaderFontSize/y;return t=Math.floor(Math.max(1,t-Z)),this._getMinimapDecorationsInViewport(t,l).filter(pe=>{var ke;return!!(!((ke=pe.options.minimap)===null||ke===void 0)&&ke.sectionHeaderStyle)})}_getMinimapDecorationsInViewport(t,l){let y;if(this._samplingState){const H=this._samplingState.minimapLines[t-1],Z=this._samplingState.minimapLines[l-1];y=new ve.Q(H,1,Z,this._context.viewModel.getLineMaxColumn(Z))}else y=new ve.Q(t,1,l,this._context.viewModel.getLineMaxColumn(l));return this._context.viewModel.getMinimapDecorationsInRange(y)}getSectionHeaderText(t,l){var y;const H=(y=t.options.minimap)===null||y===void 0?void 0:y.sectionHeaderText;if(!H)return null;const Z=this._sectionHeaderCache.get(H);if(Z)return Z;const pe=l(H);return this._sectionHeaderCache.set(H,pe),pe}getOptions(){return this._context.viewModel.model.getOptions()}revealLineNumber(t){this._samplingState&&(t=this._samplingState.minimapLines[t-1]),this._context.viewModel.revealRange("mouse",!1,new ve.Q(t,1,t,1),1,0)}setScrollTop(t){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:t},1)}}class yn extends S.jG{constructor(t,l){super(),this._renderDecorations=!1,this._gestureInProgress=!1,this._theme=t,this._model=l,this._lastRenderData=null,this._buffers=null,this._selectionColor=this._theme.getColor(Rn.yr0),this._domNode=(0,V.Z)(document.createElement("div")),te.write(this._domNode,9),this._domNode.setClassName(this._getMinimapDomNodeClassName()),this._domNode.setPosition("absolute"),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._shadow=(0,V.Z)(document.createElement("div")),this._shadow.setClassName("minimap-shadow-hidden"),this._domNode.appendChild(this._shadow),this._canvas=(0,V.Z)(document.createElement("canvas")),this._canvas.setPosition("absolute"),this._canvas.setLeft(0),this._domNode.appendChild(this._canvas),this._decorationsCanvas=(0,V.Z)(document.createElement("canvas")),this._decorationsCanvas.setPosition("absolute"),this._decorationsCanvas.setClassName("minimap-decorations-layer"),this._decorationsCanvas.setLeft(0),this._domNode.appendChild(this._decorationsCanvas),this._slider=(0,V.Z)(document.createElement("div")),this._slider.setPosition("absolute"),this._slider.setClassName("minimap-slider"),this._slider.setLayerHinting(!0),this._slider.setContain("strict"),this._domNode.appendChild(this._slider),this._sliderHorizontal=(0,V.Z)(document.createElement("div")),this._sliderHorizontal.setPosition("absolute"),this._sliderHorizontal.setClassName("minimap-slider-horizontal"),this._slider.appendChild(this._sliderHorizontal),this._applyLayout(),this._pointerDownListener=g.b2(this._domNode.domNode,g.Bx.POINTER_DOWN,y=>{if(y.preventDefault(),this._model.options.renderMinimap===0||!this._lastRenderData)return;if(this._model.options.size!=="proportional"){if(y.button===0&&this._lastRenderData){const Xe=g.BK(this._slider.domNode),gt=Xe.top+Xe.height/2;this._startSliderDragging(y,gt,this._lastRenderData.renderedLayout)}return}const Z=this._model.options.minimapLineHeight,pe=this._model.options.canvasInnerHeight/this._model.options.canvasOuterHeight*y.offsetY;let Ve=Math.floor(pe/Z)+this._lastRenderData.renderedLayout.startLineNumber-this._lastRenderData.renderedLayout.topPaddingLineCount;Ve=Math.min(Ve,this._model.getLineCount()),this._model.revealLineNumber(Ve)}),this._sliderPointerMoveMonitor=new $n._,this._sliderPointerDownListener=g.b2(this._slider.domNode,g.Bx.POINTER_DOWN,y=>{y.preventDefault(),y.stopPropagation(),y.button===0&&this._lastRenderData&&this._startSliderDragging(y,y.pageY,this._lastRenderData.renderedLayout)}),this._gestureDisposable=oe.q.addTarget(this._domNode.domNode),this._sliderTouchStartListener=g.ko(this._domNode.domNode,oe.B.Start,y=>{y.preventDefault(),y.stopPropagation(),this._lastRenderData&&(this._slider.toggleClassName("active",!0),this._gestureInProgress=!0,this.scrollDueToTouchEvent(y))},{passive:!1}),this._sliderTouchMoveListener=g.ko(this._domNode.domNode,oe.B.Change,y=>{y.preventDefault(),y.stopPropagation(),this._lastRenderData&&this._gestureInProgress&&this.scrollDueToTouchEvent(y)},{passive:!1}),this._sliderTouchEndListener=g.b2(this._domNode.domNode,oe.B.End,y=>{y.preventDefault(),y.stopPropagation(),this._gestureInProgress=!1,this._slider.toggleClassName("active",!1)})}_startSliderDragging(t,l,y){if(!t.target||!(t.target instanceof Element))return;const H=t.pageX;this._slider.toggleClassName("active",!0);const Z=(pe,ke)=>{const Ve=g.BK(this._domNode.domNode),Xe=Math.min(Math.abs(ke-H),Math.abs(ke-Ve.left),Math.abs(ke-Ve.left-Ve.width));if(i.uF&&Xe>bn){this._model.setScrollTop(y.scrollTop);return}const gt=pe-l;this._model.setScrollTop(y.getDesiredScrollTopFromDelta(gt))};t.pageY!==l&&Z(t.pageY,H),this._sliderPointerMoveMonitor.startMonitoring(t.target,t.pointerId,t.buttons,pe=>Z(pe.pageY,pe.pageX),()=>{this._slider.toggleClassName("active",!1)})}scrollDueToTouchEvent(t){const l=this._domNode.domNode.getBoundingClientRect().top,y=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(t.pageY-l);this._model.setScrollTop(y)}dispose(){this._pointerDownListener.dispose(),this._sliderPointerMoveMonitor.dispose(),this._sliderPointerDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),super.dispose()}_getMinimapDomNodeClassName(){const t=["minimap"];return this._model.options.showSlider==="always"?t.push("slider-always"):t.push("slider-mouseover"),this._model.options.autohide&&t.push("autohide"),t.join(" ")}getDomNode(){return this._domNode}_applyLayout(){this._domNode.setLeft(this._model.options.minimapLeft),this._domNode.setWidth(this._model.options.minimapWidth),this._domNode.setHeight(this._model.options.minimapHeight),this._shadow.setHeight(this._model.options.minimapHeight),this._canvas.setWidth(this._model.options.canvasOuterWidth),this._canvas.setHeight(this._model.options.canvasOuterHeight),this._canvas.domNode.width=this._model.options.canvasInnerWidth,this._canvas.domNode.height=this._model.options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._model.options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._model.options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._model.options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._model.options.canvasInnerHeight,this._slider.setWidth(this._model.options.minimapWidth)}_getBuffer(){return this._buffers||this._model.options.canvasInnerWidth>0&&this._model.options.canvasInnerHeight>0&&(this._buffers=new ui(this._canvas.domNode.getContext("2d"),this._model.options.canvasInnerWidth,this._model.options.canvasInnerHeight,this._model.options.backgroundColor)),this._buffers?this._buffers.getBuffer():null}onDidChangeOptions(){this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName())}onSelectionChanged(){return this._renderDecorations=!0,!0}onDecorationsChanged(){return this._renderDecorations=!0,!0}onFlushed(){return this._lastRenderData=null,!0}onLinesChanged(t,l){return this._lastRenderData?this._lastRenderData.onLinesChanged(t,l):!1}onLinesDeleted(t,l){var y;return(y=this._lastRenderData)===null||y===void 0||y.onLinesDeleted(t,l),!0}onLinesInserted(t,l){var y;return(y=this._lastRenderData)===null||y===void 0||y.onLinesInserted(t,l),!0}onScrollChanged(){return this._renderDecorations=!0,!0}onThemeChanged(){return this._selectionColor=this._theme.getColor(Rn.yr0),this._renderDecorations=!0,!0}onTokensChanged(t){return this._lastRenderData?this._lastRenderData.onTokensChanged(t):!1}onTokensColorsChanged(){return this._lastRenderData=null,this._buffers=null,!0}onZonesChanged(){return this._lastRenderData=null,!0}render(t){if(this._model.options.renderMinimap===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}t.scrollLeft+t.viewportWidth>=t.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");const y=pn.create(this._model.options,t.viewportStartLineNumber,t.viewportEndLineNumber,t.viewportStartLineNumberVerticalOffset,t.viewportHeight,t.viewportContainsWhitespaceGaps,this._model.getLineCount(),this._model.getRealLineCount(),t.scrollTop,t.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setDisplay(y.sliderNeeded?"block":"none"),this._slider.setTop(y.sliderTop),this._slider.setHeight(y.sliderHeight),this._sliderHorizontal.setLeft(0),this._sliderHorizontal.setWidth(this._model.options.minimapWidth),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(y.sliderHeight),this.renderDecorations(y),this._lastRenderData=this.renderLines(y)}renderDecorations(t){if(this._renderDecorations){this._renderDecorations=!1;const l=this._model.getSelections();l.sort(ve.Q.compareRangesUsingStarts);const y=this._model.getMinimapDecorationsInViewport(t.startLineNumber,t.endLineNumber);y.sort((It,Bt)=>(It.options.zIndex||0)-(Bt.options.zIndex||0));const{canvasInnerWidth:H,canvasInnerHeight:Z}=this._model.options,pe=this._model.options.minimapLineHeight,ke=this._model.options.minimapCharWidth,Ve=this._model.getOptions().tabSize,Xe=this._decorationsCanvas.domNode.getContext("2d");Xe.clearRect(0,0,H,Z);const gt=new ht(t.startLineNumber,t.endLineNumber,!1);this._renderSelectionLineHighlights(Xe,l,gt,t,pe),this._renderDecorationsLineHighlights(Xe,y,gt,t,pe);const Ct=new ht(t.startLineNumber,t.endLineNumber,null);this._renderSelectionsHighlights(Xe,l,Ct,t,pe,Ve,ke,H),this._renderDecorationsHighlights(Xe,y,Ct,t,pe,Ve,ke,H),this._renderSectionHeaders(t)}}_renderSelectionLineHighlights(t,l,y,H,Z){if(!this._selectionColor||this._selectionColor.isTransparent())return;t.fillStyle=this._selectionColor.transparent(.5).toString();let pe=0,ke=0;for(const Ve of l){const Xe=H.intersectWithViewport(Ve);if(!Xe)continue;const[gt,Ct]=Xe;for(let Yt=gt;Yt<=Ct;Yt++)y.set(Yt,!0);const It=H.getYForLineNumber(gt,Z),Bt=H.getYForLineNumber(Ct,Z);ke>=It||(ke>pe&&t.fillRect(O.xq,pe,t.canvas.width,ke-pe),pe=It),ke=Bt}ke>pe&&t.fillRect(O.xq,pe,t.canvas.width,ke-pe)}_renderDecorationsLineHighlights(t,l,y,H,Z){const pe=new Map;for(let ke=l.length-1;ke>=0;ke--){const Ve=l[ke],Xe=Ve.options.minimap;if(!Xe||Xe.position!==1)continue;const gt=H.intersectWithViewport(Ve.range);if(!gt)continue;const[Ct,It]=gt,Bt=Xe.getColor(this._theme.value);if(!Bt||Bt.isTransparent())continue;let Yt=pe.get(Bt.toString());Yt||(Yt=Bt.transparent(.5).toString(),pe.set(Bt.toString(),Yt)),t.fillStyle=Yt;for(let tn=Ct;tn<=It;tn++){if(y.has(tn))continue;y.set(tn,!0);const gn=H.getYForLineNumber(Ct,Z);t.fillRect(O.xq,gn,t.canvas.width,Z)}}}_renderSelectionsHighlights(t,l,y,H,Z,pe,ke,Ve){if(!(!this._selectionColor||this._selectionColor.isTransparent()))for(const Xe of l){const gt=H.intersectWithViewport(Xe);if(!gt)continue;const[Ct,It]=gt;for(let Bt=Ct;Bt<=It;Bt++)this.renderDecorationOnLine(t,y,Xe,this._selectionColor,H,Bt,Z,Z,pe,ke,Ve)}}_renderDecorationsHighlights(t,l,y,H,Z,pe,ke,Ve){for(const Xe of l){const gt=Xe.options.minimap;if(!gt)continue;const Ct=H.intersectWithViewport(Xe.range);if(!Ct)continue;const[It,Bt]=Ct,Yt=gt.getColor(this._theme.value);if(!(!Yt||Yt.isTransparent()))for(let tn=It;tn<=Bt;tn++)switch(gt.position){case 1:this.renderDecorationOnLine(t,y,Xe.range,Yt,H,tn,Z,Z,pe,ke,Ve);continue;case 2:{const gn=H.getYForLineNumber(tn,Z);this.renderDecoration(t,Yt,2,gn,xn,Z);continue}}}}renderDecorationOnLine(t,l,y,H,Z,pe,ke,Ve,Xe,gt,Ct){const It=Z.getYForLineNumber(pe,Ve);if(It+ke<0||It>this._model.options.canvasInnerHeight)return;const{startLineNumber:Bt,endLineNumber:Yt}=y,tn=Bt===pe?y.startColumn:1,gn=Yt===pe?y.endColumn:this._model.getLineMaxColumn(pe),mn=this.getXOffsetForPosition(l,pe,tn,Xe,gt,Ct),Mn=this.getXOffsetForPosition(l,pe,gn,Xe,gt,Ct);this.renderDecoration(t,H,mn,It,Mn-mn,ke)}getXOffsetForPosition(t,l,y,H,Z,pe){if(y===1)return O.xq;if((y-1)*Z>=pe)return pe;let Ve=t.get(l);if(!Ve){const Xe=this._model.getLineContent(l);Ve=[O.xq];let gt=O.xq;for(let Ct=1;Ct=pe){Ve[Ct]=pe;break}Ve[Ct]=Yt,gt=Yt}t.set(l,Ve)}return y-1tn.range.startLineNumber-gn.range.startLineNumber);const Yt=yn._fitSectionHeader.bind(null,It,pe-O.xq);for(const tn of Bt){const gn=t.getYForLineNumber(tn.range.startLineNumber,y)+H,mn=gn-H,Mn=mn+2,Tn=this._model.getSectionHeaderText(tn,Yt);yn._renderSectionLabel(It,Tn,((l=tn.options.minimap)===null||l===void 0?void 0:l.sectionHeaderStyle)===2,Ve,gt,pe,mn,Z,gn,Mn)}}static _fitSectionHeader(t,l,y){if(!y)return y;const H="\u2026",Z=t.measureText(y).width,pe=t.measureText(H).width;if(Z<=l||Z<=pe)return y;const ke=y.length,Ve=Z/y.length,Xe=Math.floor((l-pe)/Ve)-1;let gt=Math.ceil(Xe/2);for(;gt>0&&/\s/.test(y[gt-1]);)--gt;return y.substring(0,gt)+H+y.substring(ke-(Xe-gt))}static _renderSectionLabel(t,l,y,H,Z,pe,ke,Ve,Xe,gt){l&&(t.fillStyle=H,t.fillRect(0,ke,pe,Ve),t.fillStyle=Z,t.fillText(l,O.xq,Xe)),y&&(t.beginPath(),t.moveTo(0,gt),t.lineTo(pe,gt),t.closePath(),t.stroke())}renderLines(t){const l=t.startLineNumber,y=t.endLineNumber,H=this._model.options.minimapLineHeight;if(this._lastRenderData&&this._lastRenderData.linesEquals(t)){const Wi=this._lastRenderData._get();return new Qn(t,Wi.imageData,Wi.lines)}const Z=this._getBuffer();if(!Z)return null;const[pe,ke,Ve]=yn._renderUntouchedLines(Z,t.topPaddingLineCount,l,y,H,this._lastRenderData),Xe=this._model.getMinimapLinesRenderingData(l,y,Ve),gt=this._model.getOptions().tabSize,Ct=this._model.options.defaultBackgroundColor,It=this._model.options.backgroundColor,Bt=this._model.options.foregroundAlpha,Yt=this._model.tokensColorTracker,tn=Yt.backgroundIsLight(),gn=this._model.options.renderMinimap,mn=this._model.options.charRenderer(),Mn=this._model.options.fontScale,Tn=this._model.options.minimapCharWidth,Zn=(gn===1?2:3)*Mn,ii=H>Zn?Math.floor((H-Zn)/2):0,si=It.a/255,pi=new ti(Math.round((It.r-Ct.r)*si+Ct.r),Math.round((It.g-Ct.g)*si+Ct.g),Math.round((It.b-Ct.b)*si+Ct.b),255);let ai=t.topPaddingLineCount*H;const li=[];for(let Wi=0,Zi=y-l+1;Wi=0&&_iMn)return;const gi=gn.charCodeAt(Zn);if(gi===9){const Ci=It-(Zn+ii)%It;ii+=Ci-1,Gn+=Ci*pe}else if(gi===32)Gn+=pe;else{const Ci=xt.ne(gi)?2:1;for(let Ki=0;KiMn)return}}}}}class ht{constructor(t,l,y){this._startLineNumber=t,this._endLineNumber=l,this._defaultValue=y,this._values=[];for(let H=0,Z=this._endLineNumber-this._startLineNumber+1;Hthis._endLineNumber||(this._values[t-this._startLineNumber]=l)}get(t){return tthis._endLineNumber?this._defaultValue:this._values[t-this._startLineNumber]}}class R extends re{constructor(t,l){super(t),this._viewDomNode=l;const H=this._context.configuration.options.get(145);this._widgets={},this._verticalScrollbarWidth=H.verticalScrollbarWidth,this._minimapWidth=H.minimap.minimapWidth,this._horizontalScrollbarHeight=H.horizontalScrollbarHeight,this._editorHeight=H.height,this._editorWidth=H.width,this._viewDomNodeRect={top:0,left:0,width:0,height:0},this._domNode=(0,V.Z)(document.createElement("div")),te.write(this._domNode,4),this._domNode.setClassName("overlayWidgets"),this.overflowingOverlayWidgetsDomNode=(0,V.Z)(document.createElement("div")),te.write(this.overflowingOverlayWidgetsDomNode,5),this.overflowingOverlayWidgetsDomNode.setClassName("overflowingOverlayWidgets")}dispose(){super.dispose(),this._widgets={}}getDomNode(){return this._domNode}onConfigurationChanged(t){const y=this._context.configuration.options.get(145);return this._verticalScrollbarWidth=y.verticalScrollbarWidth,this._minimapWidth=y.minimap.minimapWidth,this._horizontalScrollbarHeight=y.horizontalScrollbarHeight,this._editorHeight=y.height,this._editorWidth=y.width,!0}addWidget(t){const l=(0,V.Z)(t.getDomNode());this._widgets[t.getId()]={widget:t,preference:null,domNode:l},l.setPosition("absolute"),l.setAttribute("widgetId",t.getId()),t.allowEditorOverflow?this.overflowingOverlayWidgetsDomNode.appendChild(l):this._domNode.appendChild(l),this.setShouldRender(),this._updateMaxMinWidth()}setWidgetPosition(t,l){const y=this._widgets[t.getId()];return y.preference===l?(this._updateMaxMinWidth(),!1):(y.preference=l,this.setShouldRender(),this._updateMaxMinWidth(),!0)}removeWidget(t){const l=t.getId();if(this._widgets.hasOwnProperty(l)){const H=this._widgets[l].domNode.domNode;delete this._widgets[l],H.remove(),this.setShouldRender(),this._updateMaxMinWidth()}}_updateMaxMinWidth(){var t,l;let y=0;const H=Object.keys(this._widgets);for(let Z=0,pe=H.length;Z=3){const Z=Math.floor(H/3),pe=Math.floor(H/3),ke=H-Z-pe,Ve=t,Xe=Ve+Z,gt=Ve+Z+ke;return[[0,Ve,Xe,Ve,gt,Ve,Xe,Ve],[0,Z,ke,Z+ke,pe,Z+ke+pe,ke+pe,Z+ke+pe]]}else if(y===2){const Z=Math.floor(H/2),pe=H-Z,ke=t,Ve=ke+Z;return[[0,ke,ke,ke,Ve,ke,ke,ke],[0,Z,Z,Z,pe,Z+pe,Z+pe,Z+pe]]}else{const Z=t,pe=H;return[[0,Z,Z,Z,Z,Z,Z,Z],[0,pe,pe,pe,pe,pe,pe,pe]]}}equals(t){return this.lineHeight===t.lineHeight&&this.pixelRatio===t.pixelRatio&&this.overviewRulerLanes===t.overviewRulerLanes&&this.renderBorder===t.renderBorder&&this.borderColor===t.borderColor&&this.hideCursor===t.hideCursor&&this.cursorColorSingle===t.cursorColorSingle&&this.cursorColorPrimary===t.cursorColorPrimary&&this.cursorColorSecondary===t.cursorColorSecondary&&this.themeType===t.themeType&&Kn.Q1.equals(this.backgroundColor,t.backgroundColor)&&this.top===t.top&&this.right===t.right&&this.domWidth===t.domWidth&&this.domHeight===t.domHeight&&this.canvasWidth===t.canvasWidth&&this.canvasHeight===t.canvasHeight}}class ce extends re{constructor(t){super(t),this._actualShouldRender=0,this._renderedDecorations=[],this._renderedCursorPositions=[],this._domNode=(0,V.Z)(document.createElement("canvas")),this._domNode.setClassName("decorationsOverviewRuler"),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._domNode.setAttribute("aria-hidden","true"),this._updateSettings(!1),this._tokensColorTrackerListener=Hn.dG.onDidChange(l=>{l.changedColorMap&&this._updateSettings(!0)}),this._cursorPositions=[{position:new he.y(1,1),color:this._settings.cursorColorSingle}]}dispose(){super.dispose(),this._tokensColorTrackerListener.dispose()}_updateSettings(t){const l=new Q(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(l)?!1:(this._settings=l,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,t&&this._render(),!0)}_markRenderingIsNeeded(){return this._actualShouldRender=2,!0}_markRenderingIsMaybeNeeded(){return this._actualShouldRender=1,!0}onConfigurationChanged(t){return this._updateSettings(!1)?this._markRenderingIsNeeded():!1}onCursorStateChanged(t){this._cursorPositions=[];for(let l=0,y=t.selections.length;l1&&(H=l===0?this._settings.cursorColorPrimary:this._settings.cursorColorSecondary),this._cursorPositions.push({position:t.selections[l].getPosition(),color:H})}return this._cursorPositions.sort((l,y)=>he.y.compare(l.position,y.position)),this._markRenderingIsMaybeNeeded()}onDecorationsChanged(t){return t.affectsOverviewRuler?this._markRenderingIsMaybeNeeded():!1}onFlushed(t){return this._markRenderingIsNeeded()}onScrollChanged(t){return t.scrollHeightChanged?this._markRenderingIsNeeded():!1}onZonesChanged(t){return this._markRenderingIsNeeded()}onThemeChanged(t){return this._updateSettings(!1)?this._markRenderingIsNeeded():!1}getDomNode(){return this._domNode.domNode}prepareRender(t){}render(t){this._render(),this._actualShouldRender=0}_render(){const t=this._settings.backgroundColor;if(this._settings.overviewRulerLanes===0){this._domNode.setBackgroundColor(t?Kn.Q1.Format.CSS.formatHexA(t):""),this._domNode.setDisplay("none");return}const l=this._context.viewModel.getAllOverviewRulerDecorations(this._context.theme);if(l.sort(Un.Uv.compareByRenderingProps),this._actualShouldRender===1&&!Un.Uv.equalsArr(this._renderedDecorations,l)&&(this._actualShouldRender=2),this._actualShouldRender===1&&!(0,s.aI)(this._renderedCursorPositions,this._cursorPositions,(Yt,tn)=>Yt.position.lineNumber===tn.position.lineNumber&&Yt.color===tn.color)&&(this._actualShouldRender=2),this._actualShouldRender===1)return;this._renderedDecorations=l,this._renderedCursorPositions=this._cursorPositions,this._domNode.setDisplay("block");const y=this._settings.canvasWidth,H=this._settings.canvasHeight,Z=this._settings.lineHeight,pe=this._context.viewLayout,ke=this._context.viewLayout.getScrollHeight(),Ve=H/ke,Xe=6*this._settings.pixelRatio|0,gt=Xe/2|0,Ct=this._domNode.domNode.getContext("2d");t?t.isOpaque()?(Ct.fillStyle=Kn.Q1.Format.CSS.formatHexA(t),Ct.fillRect(0,0,y,H)):(Ct.clearRect(0,0,y,H),Ct.fillStyle=Kn.Q1.Format.CSS.formatHexA(t),Ct.fillRect(0,0,y,H)):Ct.clearRect(0,0,y,H);const It=this._settings.x,Bt=this._settings.w;for(const Yt of l){const tn=Yt.color,gn=Yt.data;Ct.fillStyle=tn;let mn=0,Mn=0,Tn=0;for(let Gn=0,Zn=gn.length/3;GnH&&(gi=H-gt),ai=gi-gt,li=gi+gt}ai>Tn+1||ii!==mn?(Gn!==0&&Ct.fillRect(It[mn],Mn,Bt[mn],Tn-Mn),mn=ii,Mn=ai,Tn=li):li>Tn&&(Tn=li)}Ct.fillRect(It[mn],Mn,Bt[mn],Tn-Mn)}if(!this._settings.hideCursor){const Yt=2*this._settings.pixelRatio|0,tn=Yt/2|0,gn=this._settings.x[7],mn=this._settings.w[7];let Mn=-100,Tn=-100,Gn=null;for(let Zn=0,ii=this._cursorPositions.length;ZnH&&(ai=H-tn);const li=ai-tn,_i=li+Yt;li>Tn+1||si!==Gn?(Zn!==0&&Gn&&Ct.fillRect(gn,Mn,mn,Tn-Mn),Mn=li,Tn=_i):_i>Tn&&(Tn=_i),Gn=si,Ct.fillStyle=si}Gn&&Ct.fillRect(gn,Mn,mn,Tn-Mn)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(Ct.beginPath(),Ct.lineWidth=1,Ct.strokeStyle=this._settings.borderColor,Ct.moveTo(0,0),Ct.lineTo(0,H),Ct.stroke(),Ct.moveTo(0,0),Ct.lineTo(y,0),Ct.stroke())}}var Re=e("./node_modules/monaco-editor/esm/vs/editor/common/viewModel/overviewZoneManager.js");class Fe extends ie{constructor(t,l){super(),this._context=t;const y=this._context.configuration.options;this._domNode=(0,V.Z)(document.createElement("canvas")),this._domNode.setClassName(l),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new Re.rW(H=>this._context.viewLayout.getVerticalOffsetForLineNumber(H)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(y.get(67)),this._zoneManager.setPixelRatio(y.get(143)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(t){const l=this._context.configuration.options;return t.hasChanged(67)&&(this._zoneManager.setLineHeight(l.get(67)),this._render()),t.hasChanged(143)&&(this._zoneManager.setPixelRatio(l.get(143)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0}onFlushed(t){return this._render(),!0}onScrollChanged(t){return t.scrollHeightChanged&&(this._zoneManager.setOuterHeight(t.scrollHeight),this._render()),!0}onZonesChanged(t){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(t){this._domNode.setTop(t.top),this._domNode.setRight(t.right);let l=!1;l=this._zoneManager.setDOMWidth(t.width)||l,l=this._zoneManager.setDOMHeight(t.height)||l,l&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())}setZones(t){this._zoneManager.setZones(t),this._render()}_render(){if(this._zoneManager.getOuterHeight()===0)return!1;const t=this._zoneManager.getCanvasWidth(),l=this._zoneManager.getCanvasHeight(),y=this._zoneManager.resolveColorZones(),H=this._zoneManager.getId2Color(),Z=this._domNode.domNode.getContext("2d");return Z.clearRect(0,0,t,l),y.length>0&&this._renderOneLane(Z,y,H,t),!0}_renderOneLane(t,l,y,H){let Z=0,pe=0,ke=0;for(const Ve of l){const Xe=Ve.colorId,gt=Ve.from,Ct=Ve.to;Xe!==Z?(t.fillRect(0,pe,H,ke-pe),Z=Xe,t.fillStyle=y[Z],pe=gt,ke=Ct):ke>=gt?ke=Math.max(ke,Ct):(t.fillRect(0,pe,H,ke-pe),pe=gt,ke=Ct)}t.fillRect(0,pe,H,ke-pe)}}class Ze extends re{constructor(t){super(t),this.domNode=(0,V.Z)(document.createElement("div")),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.domNode.setClassName("view-rulers"),this._renderedRulers=[];const l=this._context.configuration.options;this._rulers=l.get(102),this._typicalHalfwidthCharacterWidth=l.get(50).typicalHalfwidthCharacterWidth}dispose(){super.dispose()}onConfigurationChanged(t){const l=this._context.configuration.options;return this._rulers=l.get(102),this._typicalHalfwidthCharacterWidth=l.get(50).typicalHalfwidthCharacterWidth,!0}onScrollChanged(t){return t.scrollHeightChanged}prepareRender(t){}_ensureRulersCount(){const t=this._renderedRulers.length,l=this._rulers.length;if(t===l)return;if(t0;){const ke=(0,V.Z)(document.createElement("div"));ke.setClassName("view-ruler"),ke.setWidth(Z),this.domNode.appendChild(ke),this._renderedRulers.push(ke),pe--}return}let y=t-l;for(;y>0;){const H=this._renderedRulers.pop();this.domNode.removeChild(H),y--}}render(t){this._ensureRulersCount();for(let l=0,y=this._rulers.length;l0;return this._shouldShow!==t?(this._shouldShow=t,!0):!1}getDomNode(){return this._domNode}_updateWidth(){const l=this._context.configuration.options.get(145);l.minimap.renderMinimap===0||l.minimap.minimapWidth>0&&l.minimap.minimapLeft===0?this._width=l.width:this._width=l.width-l.verticalScrollbarWidth}onConfigurationChanged(t){const y=this._context.configuration.options.get(103);return this._useShadows=y.useShadows,this._updateWidth(),this._updateShouldShow(),!0}onScrollChanged(t){return this._scrollTop=t.scrollTop,this._updateShouldShow()}prepareRender(t){}render(t){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")}}class Lt{constructor(t){this.left=t.left,this.width=t.width,this.startStyle=null,this.endStyle=null}}class Qt{constructor(t,l){this.lineNumber=t,this.ranges=l}}function Xt(Pt){return new Lt(Pt)}function $t(Pt){return new Qt(Pt.lineNumber,Pt.ranges.map(Xt))}class on extends Nt{constructor(t){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=t;const l=this._context.configuration.options;this._roundedSelection=l.get(101),this._typicalHalfwidthCharacterWidth=l.get(50).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(t){const l=this._context.configuration.options;return this._roundedSelection=l.get(101),this._typicalHalfwidthCharacterWidth=l.get(50).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(t){return this._selections=t.selections.slice(0),!0}onDecorationsChanged(t){return!0}onFlushed(t){return!0}onLinesChanged(t){return!0}onLinesDeleted(t){return!0}onLinesInserted(t){return!0}onScrollChanged(t){return t.scrollTopChanged}onZonesChanged(t){return!0}_visibleRangesHaveGaps(t){for(let l=0,y=t.length;l1)return!0;return!1}_enrichVisibleRangesWithStyle(t,l,y){const H=this._typicalHalfwidthCharacterWidth/4;let Z=null,pe=null;if(y&&y.length>0&&l.length>0){const ke=l[0].lineNumber;if(ke===t.startLineNumber)for(let Xe=0;!Z&&Xe=0;Xe--)y[Xe].lineNumber===Ve&&(pe=y[Xe].ranges[0]);Z&&!Z.startStyle&&(Z=null),pe&&!pe.startStyle&&(pe=null)}for(let ke=0,Ve=l.length;ke0){const Yt=l[ke-1].ranges[0].left,tn=l[ke-1].ranges[0].left+l[ke-1].ranges[0].width;un(gt-Yt)Yt&&(It.top=1),un(Ct-tn)'}_actualRenderOneSelection(t,l,y,H){if(H.length===0)return;const Z=!!H[0].ranges[0].startStyle,pe=H[0].lineNumber,ke=H[H.length-1].lineNumber;for(let Ve=0,Xe=H.length;Ve1,Xe)}this._previousFrameVisibleRangesWithStyle=Z,this._renderResult=l.map(([pe,ke])=>pe+ke)}render(t,l){if(!this._renderResult)return"";const y=l-t;return y<0||y>=this._renderResult.length?"":this._renderResult[y]}}on.SELECTION_CLASS_NAME="selected-text",on.SELECTION_TOP_LEFT="top-left-radius",on.SELECTION_BOTTOM_LEFT="bottom-left-radius",on.SELECTION_TOP_RIGHT="top-right-radius",on.SELECTION_BOTTOM_RIGHT="bottom-right-radius",on.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",on.ROUNDED_PIECE_WIDTH=10,(0,Be.zy)((Pt,t)=>{const l=Pt.getColor(Rn.rm4);l&&!l.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${l}; }`)});function un(Pt){return Pt<0?-Pt:Pt}class Cn{constructor(t,l,y,H,Z,pe,ke){this.top=t,this.left=l,this.paddingLeft=y,this.width=H,this.height=Z,this.textContent=pe,this.textContentClassName=ke}}var kn;(function(Pt){Pt[Pt.Single=0]="Single",Pt[Pt.MultiPrimary=1]="MultiPrimary",Pt[Pt.MultiSecondary=2]="MultiSecondary"})(kn||(kn={}));class Pn{constructor(t,l){this._context=t;const y=this._context.configuration.options,H=y.get(50);this._cursorStyle=y.get(28),this._lineHeight=y.get(67),this._typicalHalfwidthCharacterWidth=H.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(y.get(31),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,V.Z)(document.createElement("div")),this._domNode.setClassName(`cursor ${An}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,d.M)(this._domNode,H),this._domNode.setDisplay("none"),this._position=new he.y(1,1),this._pluralityClass="",this.setPlurality(l),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}setPlurality(t){switch(t){default:case kn.Single:this._pluralityClass="";break;case kn.MultiPrimary:this._pluralityClass="cursor-primary";break;case kn.MultiSecondary:this._pluralityClass="cursor-secondary";break}}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(t){const l=this._context.configuration.options,y=l.get(50);return this._cursorStyle=l.get(28),this._lineHeight=l.get(67),this._typicalHalfwidthCharacterWidth=y.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(l.get(31),this._typicalHalfwidthCharacterWidth),(0,d.M)(this._domNode,y),!0}onCursorPositionChanged(t,l){return l?this._domNode.domNode.style.transitionProperty="none":this._domNode.domNode.style.transitionProperty="",this._position=t,!0}_getGraphemeAwarePosition(){const{lineNumber:t,column:l}=this._position,y=this._context.viewModel.getLineContent(t),[H,Z]=xt.m(y,l-1);return[new he.y(t,H+1),y.substring(H,Z)]}_prepareRender(t){let l="",y="";const[H,Z]=this._getGraphemeAwarePosition();if(this._cursorStyle===O.m9.Line||this._cursorStyle===O.m9.LineThin){const It=t.visibleRangeForPosition(H);if(!It||It.outsideRenderedLine)return null;const Bt=g.zk(this._domNode.domNode);let Yt;this._cursorStyle===O.m9.Line?(Yt=g.vT(Bt,this._lineCursorWidth>0?this._lineCursorWidth:2),Yt>2&&(l=Z,y=this._getTokenClassName(H))):Yt=g.vT(Bt,1);let tn=It.left,gn=0;Yt>=2&&tn>=1&&(gn=1,tn-=gn);const mn=t.getVerticalOffsetForLineNumber(H.lineNumber)-t.bigNumbersDelta;return new Cn(mn,tn,gn,Yt,this._lineHeight,l,y)}const pe=t.linesVisibleRangesForRange(new ve.Q(H.lineNumber,H.column,H.lineNumber,H.column+Z.length),!1);if(!pe||pe.length===0)return null;const ke=pe[0];if(ke.outsideRenderedLine||ke.ranges.length===0)return null;const Ve=ke.ranges[0],Xe=Z===" "?this._typicalHalfwidthCharacterWidth:Ve.width<1?this._typicalHalfwidthCharacterWidth:Ve.width;this._cursorStyle===O.m9.Block&&(l=Z,y=this._getTokenClassName(H));let gt=t.getVerticalOffsetForLineNumber(H.lineNumber)-t.bigNumbersDelta,Ct=this._lineHeight;return(this._cursorStyle===O.m9.Underline||this._cursorStyle===O.m9.UnderlineThin)&&(gt+=this._lineHeight-2,Ct=2),new Cn(gt,Ve.left,0,Xe,Ct,l,y)}_getTokenClassName(t){const l=this._context.viewModel.getViewLineData(t.lineNumber),y=l.tokens.findTokenIndexAtOffset(t.column-1);return l.tokens.getClassName(y)}prepareRender(t){this._renderData=this._prepareRender(t)}render(t){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${this._pluralityClass} ${An} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setPaddingLeft(this._renderData.paddingLeft),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}class zn extends re{constructor(t){super(t);const l=this._context.configuration.options;this._readOnly=l.get(91),this._cursorBlinking=l.get(26),this._cursorStyle=l.get(28),this._cursorSmoothCaretAnimation=l.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new Pn(this._context,kn.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,V.Z)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new st.pc,this._cursorFlatBlinkInterval=new g.Be,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(t){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(t){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(t){const l=this._context.configuration.options;this._readOnly=l.get(91),this._cursorBlinking=l.get(26),this._cursorStyle=l.get(28),this._cursorSmoothCaretAnimation=l.get(27),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(t);for(let y=0,H=this._secondaryCursors.length;yl.length){const Z=this._secondaryCursors.length-l.length;for(let pe=0;pe{for(let H=0,Z=t.ranges.length;H{this._isVisible?this._hide():this._show()},zn.BLINK_INTERVAL,(0,g.zk)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},zn.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let t="cursors-layer";switch(this._selectionIsEmpty||(t+=" has-selection"),this._cursorStyle){case O.m9.Line:t+=" cursor-line-style";break;case O.m9.Block:t+=" cursor-block-style";break;case O.m9.Underline:t+=" cursor-underline-style";break;case O.m9.LineThin:t+=" cursor-line-thin-style";break;case O.m9.BlockOutline:t+=" cursor-block-outline-style";break;case O.m9.UnderlineThin:t+=" cursor-underline-thin-style";break;default:t+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:t+=" cursor-blink";break;case 2:t+=" cursor-smooth";break;case 3:t+=" cursor-phase";break;case 4:t+=" cursor-expand";break;case 5:t+=" cursor-solid";break;default:t+=" cursor-solid"}else t+=" cursor-solid";return(this._cursorSmoothCaretAnimation==="on"||this._cursorSmoothCaretAnimation==="explicit")&&(t+=" cursor-smooth-caret-animation"),t}_show(){this._primaryCursor.show();for(let t=0,l=this._secondaryCursors.length;t{const l=[{class:".cursor",foreground:vt.D0,background:vt.kM},{class:".cursor-primary",foreground:vt.sC,background:vt.je},{class:".cursor-secondary",foreground:vt.we,background:vt.L0}];for(const y of l){const H=Pt.getColor(y.foreground);if(H){let Z=Pt.getColor(y.background);Z||(Z=H.opposite()),t.addRule(`.monaco-editor .cursors-layer ${y.class} { background-color: ${H}; border-color: ${H}; color: ${Z}; }`),(0,Dt.Bb)(Pt.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${y.class} { border-left: 1px solid ${Z}; border-right: 1px solid ${Z}; }`)}}});const ni=()=>{throw new Error("Invalid change accessor")};class hi extends re{constructor(t){super(t);const l=this._context.configuration.options,y=l.get(145);this._lineHeight=l.get(67),this._contentWidth=y.contentWidth,this._contentLeft=y.contentLeft,this.domNode=(0,V.Z)(document.createElement("div")),this.domNode.setClassName("view-zones"),this.domNode.setPosition("absolute"),this.domNode.setAttribute("role","presentation"),this.domNode.setAttribute("aria-hidden","true"),this.marginDomNode=(0,V.Z)(document.createElement("div")),this.marginDomNode.setClassName("margin-view-zones"),this.marginDomNode.setPosition("absolute"),this.marginDomNode.setAttribute("role","presentation"),this.marginDomNode.setAttribute("aria-hidden","true"),this._zones={}}dispose(){super.dispose(),this._zones={}}_recomputeWhitespacesProps(){const t=this._context.viewLayout.getWhitespaces(),l=new Map;for(const H of t)l.set(H.id,H);let y=!1;return this._context.viewModel.changeWhitespace(H=>{const Z=Object.keys(this._zones);for(let pe=0,ke=Z.length;pe{const H={addZone:Z=>(l=!0,this._addZone(y,Z)),removeZone:Z=>{Z&&(l=this._removeZone(y,Z)||l)},layoutZone:Z=>{Z&&(l=this._layoutZone(y,Z)||l)}};ji(t,H),H.addZone=ni,H.removeZone=ni,H.layoutZone=ni}),l}_addZone(t,l){const y=this._computeWhitespaceProps(l),Z={whitespaceId:t.insertWhitespace(y.afterViewLineNumber,this._getZoneOrdinal(l),y.heightInPx,y.minWidthInPx),delegate:l,isInHiddenArea:y.isInHiddenArea,isVisible:!1,domNode:(0,V.Z)(l.domNode),marginDomNode:l.marginDomNode?(0,V.Z)(l.marginDomNode):null};return this._safeCallOnComputedHeight(Z.delegate,y.heightInPx),Z.domNode.setPosition("absolute"),Z.domNode.domNode.style.width="100%",Z.domNode.setDisplay("none"),Z.domNode.setAttribute("monaco-view-zone",Z.whitespaceId),this.domNode.appendChild(Z.domNode),Z.marginDomNode&&(Z.marginDomNode.setPosition("absolute"),Z.marginDomNode.domNode.style.width="100%",Z.marginDomNode.setDisplay("none"),Z.marginDomNode.setAttribute("monaco-view-zone",Z.whitespaceId),this.marginDomNode.appendChild(Z.marginDomNode)),this._zones[Z.whitespaceId]=Z,this.setShouldRender(),Z.whitespaceId}_removeZone(t,l){if(this._zones.hasOwnProperty(l)){const y=this._zones[l];return delete this._zones[l],t.removeWhitespace(y.whitespaceId),y.domNode.removeAttribute("monaco-visible-view-zone"),y.domNode.removeAttribute("monaco-view-zone"),y.domNode.domNode.parentNode.removeChild(y.domNode.domNode),y.marginDomNode&&(y.marginDomNode.removeAttribute("monaco-visible-view-zone"),y.marginDomNode.removeAttribute("monaco-view-zone"),y.marginDomNode.domNode.parentNode.removeChild(y.marginDomNode.domNode)),this.setShouldRender(),!0}return!1}_layoutZone(t,l){if(this._zones.hasOwnProperty(l)){const y=this._zones[l],H=this._computeWhitespaceProps(y.delegate);return y.isInHiddenArea=H.isInHiddenArea,t.changeOneWhitespace(y.whitespaceId,H.afterViewLineNumber,H.heightInPx),this._safeCallOnComputedHeight(y.delegate,H.heightInPx),this.setShouldRender(),!0}return!1}shouldSuppressMouseDownOnViewZone(t){return this._zones.hasOwnProperty(t)?!!this._zones[t].delegate.suppressMouseDown:!1}_heightInPixels(t){return typeof t.heightInPx=="number"?t.heightInPx:typeof t.heightInLines=="number"?this._lineHeight*t.heightInLines:this._lineHeight}_minWidthInPixels(t){return typeof t.minWidthInPx=="number"?t.minWidthInPx:0}_safeCallOnComputedHeight(t,l){if(typeof t.onComputedHeight=="function")try{t.onComputedHeight(l)}catch(y){(0,x.dz)(y)}}_safeCallOnDomNodeTop(t,l){if(typeof t.onDomNodeTop=="function")try{t.onDomNodeTop(l)}catch(y){(0,x.dz)(y)}}prepareRender(t){}render(t){const l=t.viewportData.whitespaceViewportData,y={};let H=!1;for(const pe of l)this._zones[pe.id].isInHiddenArea||(y[pe.id]=pe,H=!0);const Z=Object.keys(this._zones);for(let pe=0,ke=Z.length;peke)continue;const Bt=It.startLineNumber===ke?It.startColumn:Xe.minColumn,Yt=It.endLineNumber===ke?It.endColumn:Xe.maxColumn;Bt=li.endOffset&&(ai++,li=y&&y[ai]),Ci!==9&&Ci!==32||It&&!ii&&gi<=pi)continue;if(Ct&&gi>=si&&gi<=pi&&Ci===32){const Wi=gi-1>=0?ke.charCodeAt(gi-1):0,Zi=gi+1=0?ke.charCodeAt(gi-1):0;if(Ci===32&&Wi!==32&&Wi!==9)continue}if(y&&(!li||li.startOffset>gi||li.endOffset<=gi))continue;const Ki=t.visibleRangeForPosition(new he.y(l,gi+1));Ki&&(pe?(_i=Math.max(_i,Ki.left),Ci===9?Zn+=this._renderArrow(Bt,gn,Ki.left):Zn+=``):Ci===9?Zn+=`
    ${Gn?"\uFFEB":"\u2192"}
    `:Zn+=`
    ${String.fromCharCode(Tn)}
    `)}return pe?(_i=Math.round(_i+gn),``+Zn+""):Zn}_renderArrow(t,l,y){const H=l/7,Z=l,pe=t/2,ke=y,Ve={x:0,y:H/2},Xe={x:100/125*Z,y:Ve.y},gt={x:Xe.x-.2*Xe.x,y:Xe.y+.2*Xe.x},Ct={x:gt.x+.1*Xe.x,y:gt.y+.1*Xe.x},It={x:Ct.x+.35*Xe.x,y:Ct.y-.35*Xe.x},Bt={x:It.x,y:-It.y},Yt={x:Ct.x,y:-Ct.y},tn={x:gt.x,y:-gt.y},gn={x:Xe.x,y:-Xe.y},mn={x:Ve.x,y:-Ve.y};return``}render(t,l){if(!this._renderResult)return"";const y=l-t;return y<0||y>=this._renderResult.length?"":this._renderResult[y]}}class Ri{constructor(t){const l=t.options,y=l.get(50),H=l.get(38);H==="off"?(this.renderWhitespace="none",this.renderWithSVG=!1):H==="svg"?(this.renderWhitespace=l.get(99),this.renderWithSVG=!0):(this.renderWhitespace=l.get(99),this.renderWithSVG=!1),this.spaceWidth=y.spaceWidth,this.middotWidth=y.middotWidth,this.wsmiddotWidth=y.wsmiddotWidth,this.canUseHalfwidthRightwardsArrow=y.canUseHalfwidthRightwardsArrow,this.lineHeight=l.get(67),this.stopRenderingLineAfter=l.get(117)}equals(t){return this.renderWhitespace===t.renderWhitespace&&this.renderWithSVG===t.renderWithSVG&&this.spaceWidth===t.spaceWidth&&this.middotWidth===t.middotWidth&&this.wsmiddotWidth===t.wsmiddotWidth&&this.canUseHalfwidthRightwardsArrow===t.canUseHalfwidthRightwardsArrow&&this.lineHeight===t.lineHeight&&this.stopRenderingLineAfter===t.stopRenderingLineAfter}}class ao{constructor(t,l,y,H){this.selections=t,this.startLineNumber=l.startLineNumber|0,this.endLineNumber=l.endLineNumber|0,this.relativeVerticalOffset=l.relativeVerticalOffset,this.bigNumbersDelta=l.bigNumbersDelta|0,this.lineHeight=l.lineHeight|0,this.whitespaceViewportData=y,this._model=H,this.visibleRange=new ve.Q(l.startLineNumber,this._model.getLineMinColumn(l.startLineNumber),l.endLineNumber,this._model.getLineMaxColumn(l.endLineNumber))}getViewLineRenderingData(t){return this._model.getViewportViewLineRenderingData(this.visibleRange,t)}getDecorationsInViewport(){return this._model.getDecorationsInViewport(this.visibleRange)}}class no{get type(){return this._theme.type}get value(){return this._theme}constructor(t){this._theme=t}update(t){this._theme=t}getColor(t){return this._theme.getColor(t)}}class Lo{constructor(t,l,y){this.configuration=t,this.theme=new no(l),this.viewModel=y,this.viewLayout=y.viewLayout}addEventHandler(t){this.viewModel.addViewEventHandler(t)}removeEventHandler(t){this.viewModel.removeViewEventHandler(t)}}var Xi=function(Pt,t,l,y){var H=arguments.length,Z=H<3?t:y===null?y=Object.getOwnPropertyDescriptor(t,l):y,pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Z=Reflect.decorate(Pt,t,l,y);else for(var ke=Pt.length-1;ke>=0;ke--)(pe=Pt[ke])&&(Z=(H<3?pe(Z):H>3?pe(t,l,Z):pe(t,l))||Z);return H>3&&Z&&Object.defineProperty(t,l,Z),Z},To=function(Pt,t){return function(l,y){t(l,y,Pt)}};let co=class extends ie{constructor(t,l,y,H,Z,pe,ke){super(),this._instantiationService=ke,this._shouldRecomputeGlyphMarginLanes=!1,this._selections=[new Le.L(1,1,1,1)],this._renderAnimationFrame=null;const Ve=new Vn(l,H,Z,t);this._context=new Lo(l,y,H),this._context.addEventHandler(this),this._viewParts=[],this._textAreaHandler=this._instantiationService.createInstance(Ii,this._context,Ve,this._createTextAreaHandlerHelper()),this._viewParts.push(this._textAreaHandler),this._linesContent=(0,V.Z)(document.createElement("div")),this._linesContent.setClassName("lines-content monaco-editor-background"),this._linesContent.setPosition("absolute"),this.domNode=(0,V.Z)(document.createElement("div")),this.domNode.setClassName(this._getEditorClassName()),this.domNode.setAttribute("role","code"),this._overflowGuardContainer=(0,V.Z)(document.createElement("div")),te.write(this._overflowGuardContainer,3),this._overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new dt(this._context,this._linesContent,this.domNode,this._overflowGuardContainer),this._viewParts.push(this._scrollbar),this._viewLines=new On(this._context,this._linesContent),this._viewZones=new hi(this._context),this._viewParts.push(this._viewZones);const Xe=new ce(this._context);this._viewParts.push(Xe);const gt=new wt(this._context);this._viewParts.push(gt);const Ct=new Ke(this._context);this._viewParts.push(Ct),Ct.addDynamicOverlay(new et(this._context)),Ct.addDynamicOverlay(new on(this._context)),Ct.addDynamicOverlay(new en(this._context)),Ct.addDynamicOverlay(new Tt(this._context)),Ct.addDynamicOverlay(new Ei(this._context));const It=new Je(this._context);this._viewParts.push(It),It.addDynamicOverlay(new at(this._context)),It.addDynamicOverlay(new oi(this._context)),It.addDynamicOverlay(new Bn(this._context)),It.addDynamicOverlay(new Gt(this._context)),this._glyphMarginWidgets=new Ft(this._context),this._viewParts.push(this._glyphMarginWidgets);const Bt=new _n(this._context);Bt.getDomNode().appendChild(this._viewZones.marginDomNode),Bt.getDomNode().appendChild(It.getDomNode()),Bt.getDomNode().appendChild(this._glyphMarginWidgets.domNode),this._viewParts.push(Bt),this._contentWidgets=new St(this._context,this.domNode),this._viewParts.push(this._contentWidgets),this._viewCursors=new zn(this._context),this._viewParts.push(this._viewCursors),this._overlayWidgets=new R(this._context,this.domNode),this._viewParts.push(this._overlayWidgets);const Yt=new Ze(this._context);this._viewParts.push(Yt);const tn=new ft(this._context);this._viewParts.push(tn);const gn=new qn(this._context);if(this._viewParts.push(gn),Xe){const mn=this._scrollbar.getOverviewRulerLayoutInfo();mn.parent.insertBefore(Xe.getDomNode(),mn.insertBefore)}this._linesContent.appendChild(Ct.getDomNode()),this._linesContent.appendChild(Yt.domNode),this._linesContent.appendChild(this._viewZones.domNode),this._linesContent.appendChild(this._viewLines.getDomNode()),this._linesContent.appendChild(this._contentWidgets.domNode),this._linesContent.appendChild(this._viewCursors.getDomNode()),this._overflowGuardContainer.appendChild(Bt.getDomNode()),this._overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this._overflowGuardContainer.appendChild(gt.getDomNode()),this._overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this._overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this._overflowGuardContainer.appendChild(this._overlayWidgets.getDomNode()),this._overflowGuardContainer.appendChild(gn.getDomNode()),this._overflowGuardContainer.appendChild(tn.domNode),this.domNode.appendChild(this._overflowGuardContainer),pe?(pe.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode.domNode),pe.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode.domNode)):(this.domNode.appendChild(this._contentWidgets.overflowingContentWidgetsDomNode),this.domNode.appendChild(this._overlayWidgets.overflowingOverlayWidgetsDomNode)),this._applyLayout(),this._pointerHandler=this._register(new Mt(this._context,Ve,this._createPointerHandlerHelper()))}_computeGlyphMarginLanes(){const t=this._context.viewModel.model,l=this._context.viewModel.glyphLanes;let y=[],H=0;y=y.concat(t.getAllMarginDecorations().map(Z=>{var pe,ke,Ve;const Xe=(ke=(pe=Z.options.glyphMargin)===null||pe===void 0?void 0:pe.position)!==null&&ke!==void 0?ke:Ae.ZS.Center;return H=Math.max(H,Z.range.endLineNumber),{range:Z.range,lane:Xe,persist:(Ve=Z.options.glyphMargin)===null||Ve===void 0?void 0:Ve.persistLane}})),y=y.concat(this._glyphMarginWidgets.getWidgets().map(Z=>{const pe=t.validateRange(Z.preference.range);return H=Math.max(H,pe.endLineNumber),{range:pe,lane:Z.preference.lane}})),y.sort((Z,pe)=>ve.Q.compareRangesUsingStarts(Z.range,pe.range)),l.reset(H);for(const Z of y)l.push(Z.lane,Z.range,Z.persist);return l}_createPointerHandlerHelper(){return{viewDomNode:this.domNode.domNode,linesContentDomNode:this._linesContent.domNode,viewLinesDomNode:this._viewLines.getDomNode().domNode,focusTextArea:()=>{this.focus()},dispatchTextAreaEvent:t=>{this._textAreaHandler.textArea.domNode.dispatchEvent(t)},getLastRenderData:()=>{const t=this._viewCursors.getLastRenderData()||[],l=this._textAreaHandler.getLastRenderData();return new He(t,l)},renderNow:()=>{this.render(!0,!1)},shouldSuppressMouseDownOnViewZone:t=>this._viewZones.shouldSuppressMouseDownOnViewZone(t),shouldSuppressMouseDownOnWidget:t=>this._contentWidgets.shouldSuppressMouseDownOnWidget(t),getPositionFromDOMInfo:(t,l)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getPositionFromDOMInfo(t,l)),visibleRangeForPosition:(t,l)=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(new he.y(t,l))),getLineWidth:t=>(this._flushAccumulatedAndRenderNow(),this._viewLines.getLineWidth(t))}}_createTextAreaHandlerHelper(){return{visibleRangeForPosition:t=>(this._flushAccumulatedAndRenderNow(),this._viewLines.visibleRangeForPosition(t))}}_applyLayout(){const l=this._context.configuration.options.get(145);this.domNode.setWidth(l.width),this.domNode.setHeight(l.height),this._overflowGuardContainer.setWidth(l.width),this._overflowGuardContainer.setHeight(l.height),this._linesContent.setWidth(16777216),this._linesContent.setHeight(16777216)}_getEditorClassName(){const t=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.options.get(142)+" "+(0,Be.Pz)(this._context.theme.type)+t}handleEvents(t){super.handleEvents(t),this._scheduleRender()}onConfigurationChanged(t){return this.domNode.setClassName(this._getEditorClassName()),this._applyLayout(),!1}onCursorStateChanged(t){return this._selections=t.selections,!1}onDecorationsChanged(t){return t.affectsGlyphMargin&&(this._shouldRecomputeGlyphMarginLanes=!0),!1}onFocusChanged(t){return this.domNode.setClassName(this._getEditorClassName()),!1}onThemeChanged(t){return this._context.theme.update(t.theme),this.domNode.setClassName(this._getEditorClassName()),!1}dispose(){this._renderAnimationFrame!==null&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this._contentWidgets.overflowingContentWidgetsDomNode.domNode.remove(),this._context.removeEventHandler(this),this._viewLines.dispose();for(const t of this._viewParts)t.dispose();super.dispose()}_scheduleRender(){if(this._store.isDisposed)throw new x.D7;if(this._renderAnimationFrame===null){const t=this._createCoordinatedRendering();this._renderAnimationFrame=Vi.INSTANCE.scheduleCoordinatedRendering({window:g.zk(this.domNode.domNode),prepareRenderText:()=>{if(this._store.isDisposed)throw new x.D7;try{return t.prepareRenderText()}finally{this._renderAnimationFrame=null}},renderText:()=>{if(this._store.isDisposed)throw new x.D7;return t.renderText()},prepareRender:(l,y)=>{if(this._store.isDisposed)throw new x.D7;return t.prepareRender(l,y)},render:(l,y)=>{if(this._store.isDisposed)throw new x.D7;return t.render(l,y)}})}}_flushAccumulatedAndRenderNow(){const t=this._createCoordinatedRendering();yo(()=>t.prepareRenderText());const l=yo(()=>t.renderText());if(l){const[y,H]=l;yo(()=>t.prepareRender(y,H)),yo(()=>t.render(y,H))}}_getViewPartsToRender(){const t=[];let l=0;for(const y of this._viewParts)y.shouldRender()&&(t[l++]=y);return t}_createCoordinatedRendering(){return{prepareRenderText:()=>{if(this._shouldRecomputeGlyphMarginLanes){this._shouldRecomputeGlyphMarginLanes=!1;const t=this._computeGlyphMarginLanes();this._context.configuration.setGlyphMarginDecorationLaneCount(t.requiredLanes)}Y.p.onRenderStart()},renderText:()=>{if(!this.domNode.domNode.isConnected)return null;let t=this._getViewPartsToRender();if(!this._viewLines.shouldRender()&&t.length===0)return null;const l=this._context.viewLayout.getLinesViewportData();this._context.viewModel.setViewport(l.startLineNumber,l.endLineNumber,l.centeredLineNumber);const y=new ao(this._selections,l,this._context.viewLayout.getWhitespaceViewportData(),this._context.viewModel);return this._contentWidgets.shouldRender()&&this._contentWidgets.onBeforeRender(y),this._viewLines.shouldRender()&&(this._viewLines.renderText(y),this._viewLines.onDidRender(),t=this._getViewPartsToRender()),[t,new Ti.eh(this._context.viewLayout,y,this._viewLines)]},prepareRender:(t,l)=>{for(const y of t)y.prepareRender(l)},render:(t,l)=>{for(const y of t)y.render(l),y.onDidRender()}}}delegateVerticalScrollbarPointerDown(t){this._scrollbar.delegateVerticalScrollbarPointerDown(t)}delegateScrollFromMouseWheelEvent(t){this._scrollbar.delegateScrollFromMouseWheelEvent(t)}restoreState(t){this._context.viewModel.viewLayout.setScrollPosition({scrollTop:t.scrollTop,scrollLeft:t.scrollLeft},1),this._context.viewModel.visibleLinesStabilized()}getOffsetForColumn(t,l){const y=this._context.viewModel.model.validatePosition({lineNumber:t,column:l}),H=this._context.viewModel.coordinatesConverter.convertModelPositionToViewPosition(y);this._flushAccumulatedAndRenderNow();const Z=this._viewLines.visibleRangeForPosition(new he.y(H.lineNumber,H.column));return Z?Z.left:-1}getTargetAtClientPoint(t,l){const y=this._pointerHandler.getTargetAtClientPoint(t,l);return y?Ne.convertViewToModelMouseTarget(y,this._context.viewModel.coordinatesConverter):null}createOverviewRuler(t){return new Fe(this._context,t)}change(t){this._viewZones.changeViewZones(t),this._scheduleRender()}render(t,l){if(l){this._viewLines.forceShouldRender();for(const y of this._viewParts)y.forceShouldRender()}t?this._flushAccumulatedAndRenderNow():this._scheduleRender()}writeScreenReaderContent(t){this._textAreaHandler.writeScreenReaderContent(t)}focus(){this._textAreaHandler.focusTextArea()}isFocused(){return this._textAreaHandler.isFocused()}setAriaOptions(t){this._textAreaHandler.setAriaOptions(t)}addContentWidget(t){this._contentWidgets.addWidget(t.widget),this.layoutContentWidget(t),this._scheduleRender()}layoutContentWidget(t){var l,y,H,Z,pe,ke,Ve,Xe;this._contentWidgets.setWidgetPosition(t.widget,(y=(l=t.position)===null||l===void 0?void 0:l.position)!==null&&y!==void 0?y:null,(Z=(H=t.position)===null||H===void 0?void 0:H.secondaryPosition)!==null&&Z!==void 0?Z:null,(ke=(pe=t.position)===null||pe===void 0?void 0:pe.preference)!==null&&ke!==void 0?ke:null,(Xe=(Ve=t.position)===null||Ve===void 0?void 0:Ve.positionAffinity)!==null&&Xe!==void 0?Xe:null),this._scheduleRender()}removeContentWidget(t){this._contentWidgets.removeWidget(t.widget),this._scheduleRender()}addOverlayWidget(t){this._overlayWidgets.addWidget(t.widget),this.layoutOverlayWidget(t),this._scheduleRender()}layoutOverlayWidget(t){const l=t.position?t.position.preference:null;this._overlayWidgets.setWidgetPosition(t.widget,l)&&this._scheduleRender()}removeOverlayWidget(t){this._overlayWidgets.removeWidget(t.widget),this._scheduleRender()}addGlyphMarginWidget(t){this._glyphMarginWidgets.addWidget(t.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}layoutGlyphMarginWidget(t){const l=t.position;this._glyphMarginWidgets.setWidgetPosition(t.widget,l)&&(this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender())}removeGlyphMarginWidget(t){this._glyphMarginWidgets.removeWidget(t.widget),this._shouldRecomputeGlyphMarginLanes=!0,this._scheduleRender()}};co=Xi([To(6,ri._Y)],co);function yo(Pt){try{return Pt()}catch(t){return(0,x.dz)(t),null}}class Vi{constructor(){this._coordinatedRenderings=[],this._animationFrameRunners=new Map}scheduleCoordinatedRendering(t){return this._coordinatedRenderings.push(t),this._scheduleRender(t.window),{dispose:()=>{const l=this._coordinatedRenderings.indexOf(t);if(l!==-1&&(this._coordinatedRenderings.splice(l,1),this._coordinatedRenderings.length===0)){for(const[y,H]of this._animationFrameRunners)H.dispose();this._animationFrameRunners.clear()}}}}_scheduleRender(t){if(!this._animationFrameRunners.has(t)){const l=()=>{this._animationFrameRunners.delete(t),this._onRenderScheduled()};this._animationFrameRunners.set(t,g.Oq(t,l,100))}}_onRenderScheduled(){const t=this._coordinatedRenderings.slice(0);this._coordinatedRenderings=[];for(const y of t)yo(()=>y.prepareRenderText());const l=[];for(let y=0,H=t.length;yZ.renderText())}for(let y=0,H=t.length;yZ.prepareRender(ke,Ve))}for(let y=0,H=t.length;yZ.render(ke,Ve))}}}Vi.INSTANCE=new Vi;var uo=e("./node_modules/monaco-editor/esm/vs/base/common/assert.js");class So{constructor(t,l,y,H,Z){this.injectionOffsets=t,this.injectionOptions=l,this.breakOffsets=y,this.breakOffsetsVisibleColumn=H,this.wrappedTextIndentLength=Z}getOutputLineCount(){return this.breakOffsets.length}getMinOutputOffset(t){return t>0?this.wrappedTextIndentLength:0}getLineLength(t){const l=t>0?this.breakOffsets[t-1]:0;let H=this.breakOffsets[t]-l;return t>0&&(H+=this.wrappedTextIndentLength),H}getMaxOutputOffset(t){return this.getLineLength(t)}translateToInputOffset(t,l){t>0&&(l=Math.max(0,l-this.wrappedTextIndentLength));let H=t===0?l:this.breakOffsets[t-1]+l;if(this.injectionOffsets!==null)for(let Z=0;Zthis.injectionOffsets[Z];Z++)H0?this.breakOffsets[Z-1]:0,l===0)if(t<=pe)H=Z-1;else if(t>Ve)y=Z+1;else break;else if(t=Ve)y=Z+1;else break}let ke=t-pe;return Z>0&&(ke+=this.wrappedTextIndentLength),new bo(Z,ke)}normalizeOutputPosition(t,l,y){if(this.injectionOffsets!==null){const H=this.outputPositionToOffsetInInputWithInjections(t,l),Z=this.normalizeOffsetInInputWithInjectionsAroundInjections(H,y);if(Z!==H)return this.offsetInInputWithInjectionsToOutputPosition(Z,y)}if(y===0){if(t>0&&l===this.getMinOutputOffset(t))return new bo(t-1,this.getMaxOutputOffset(t-1))}else if(y===1){const H=this.getOutputLineCount()-1;if(t0&&(l=Math.max(0,l-this.wrappedTextIndentLength)),(t>0?this.breakOffsets[t-1]:0)+l}normalizeOffsetInInputWithInjectionsAroundInjections(t,l){const y=this.getInjectedTextAtOffset(t);if(!y)return t;if(l===2){if(t===y.offsetInInputWithInjections+y.length&&Us(this.injectionOptions[y.injectedTextIndex].cursorStops))return y.offsetInInputWithInjections+y.length;{let H=y.offsetInInputWithInjections;if(zs(this.injectionOptions[y.injectedTextIndex].cursorStops))return H;let Z=y.injectedTextIndex-1;for(;Z>=0&&this.injectionOffsets[Z]===this.injectionOffsets[y.injectedTextIndex]&&!(Us(this.injectionOptions[Z].cursorStops)||(H-=this.injectionOptions[Z].content.length,zs(this.injectionOptions[Z].cursorStops)));)Z--;return H}}else if(l===1||l===4){let H=y.offsetInInputWithInjections+y.length,Z=y.injectedTextIndex;for(;Z+1=0&&this.injectionOffsets[Z-1]===this.injectionOffsets[Z];)H-=this.injectionOptions[Z-1].content.length,Z--;return H}(0,uo.xb)(l)}getInjectedText(t,l){const y=this.outputPositionToOffsetInInputWithInjections(t,l),H=this.getInjectedTextAtOffset(y);return H?{options:this.injectionOptions[H.injectedTextIndex]}:null}getInjectedTextAtOffset(t){const l=this.injectionOffsets,y=this.injectionOptions;if(l!==null){let H=0;for(let Z=0;Zt)break;if(t<=Ve)return{injectedTextIndex:Z,offsetInInputWithInjections:ke,length:pe};H+=pe}}}}function Us(Pt){return Pt==null?!0:Pt===Ae.VW.Right||Pt===Ae.VW.Both}function zs(Pt){return Pt==null?!0:Pt===Ae.VW.Left||Pt===Ae.VW.Both}class Go{constructor(t){this.options=t}}class bo{constructor(t,l){this.outputLineIndex=t,this.outputOffset=l}toString(){return`${this.outputLineIndex}:${this.outputOffset}`}toPosition(t){return new he.y(t+this.outputLineIndex,this.outputOffset+1)}}var wo=e("./node_modules/monaco-editor/esm/vs/editor/common/textModelEvents.js");const Rs=(0,Yn.H)("domLineBreaksComputer",{createHTML:Pt=>Pt});class $o{static create(t){return new $o(new WeakRef(t))}constructor(t){this.targetWindow=t}createLineBreaksComputer(t,l,y,H,Z){const pe=[],ke=[];return{addRequest:(Ve,Xe,gt)=>{pe.push(Ve),ke.push(Xe)},finalize:()=>Os((0,En.eU)(this.targetWindow.deref()),pe,t,l,y,H,Z,ke)}}}function Os(Pt,t,l,y,H,Z,pe,ke){var Ve;function Xe(li){const _i=ke[li];if(_i){const gi=wo.uK.applyInjectedText(t[li],_i),Ci=_i.map(Wi=>Wi.options),Ki=_i.map(Wi=>Wi.column-1);return new So(Ki,Ci,[gi.length],[],0)}else return null}if(H===-1){const li=[];for(let _i=0,gi=t.length;_igt?(gi=0,Ci=0):Ki=gt-Oi}const Wi=_i.substr(gi),Zi=Ks(Wi,Ci,y,Ki,tn,Bt);gn[li]=gi,mn[li]=Ci,Mn[li]=Wi,Tn[li]=Zi[0],Gn[li]=Zi[1]}const Zn=tn.build(),ii=(Ve=Rs?.createHTML(Zn))!==null&&Ve!==void 0?Ve:Zn;Yt.innerHTML=ii,Yt.style.position="absolute",Yt.style.top="10000",pe==="keepAll"?(Yt.style.wordBreak="keep-all",Yt.style.overflowWrap="anywhere"):(Yt.style.wordBreak="inherit",Yt.style.overflowWrap="break-word"),Pt.document.body.appendChild(Yt);const si=document.createRange(),pi=Array.prototype.slice.call(Yt.children,0),ai=[];for(let li=0;li$i.options),ho=Bi.map($i=>$i.column-1)):(Oi=null,ho=null),ai[li]=new So(ho,Oi,gi,Zi,Ki)}return Pt.document.body.removeChild(Yt),ai}function Ks(Pt,t,l,y,H,Z){if(Z!==0){const It=String(Z);H.appendString('
    ');const pe=Pt.length;let ke=t,Ve=0;const Xe=[],gt=[];let Ct=0");for(let It=0;It"),Xe[It]=Ve,gt[It]=ke;const Bt=Ct;Ct=It+1"),Xe[Pt.length]=Ve,gt[Pt.length]=ke,H.appendString("
    "),[Xe,gt]}function ur(Pt,t,l,y){if(l.length<=1)return null;const H=Array.prototype.slice.call(t.children,0),Z=[];try{Vo(Pt,H,y,0,null,l.length-1,null,Z)}catch(pe){return console.log(pe),null}return Z.length===0?null:(Z.push(l.length),Z)}function Vo(Pt,t,l,y,H,Z,pe,ke){if(y===Z||(H=H||is(Pt,t,l[y],l[y+1]),pe=pe||is(Pt,t,l[Z],l[Z+1]),Math.abs(H[0].top-pe[0].top)<=.1))return;if(y+1===Z){ke.push(Z);return}const Ve=y+(Z-y)/2|0,Xe=is(Pt,t,l[Ve],l[Ve+1]);Vo(Pt,t,l,y,H,Ve,Xe,ke),Vo(Pt,t,l,Ve,Xe,Z,pe,ke)}function is(Pt,t,l,y){return Pt.setStart(t[l/16384|0].firstChild,l%16384),Pt.setEnd(t[y/16384|0].firstChild,y%16384),Pt.getClientRects()}class Gs extends S.jG{constructor(){super(),this._editor=null,this._instantiationService=null,this._instances=this._register(new S.$w),this._pending=new Map,this._finishedInstantiation=[],this._finishedInstantiation[0]=!1,this._finishedInstantiation[1]=!1,this._finishedInstantiation[2]=!1,this._finishedInstantiation[3]=!1}initialize(t,l,y){this._editor=t,this._instantiationService=y;for(const H of l){if(this._pending.has(H.id)){(0,x.dz)(new Error(`Cannot have two contributions with the same id ${H.id}`));continue}this._pending.set(H.id,H)}this._instantiateSome(0),this._register((0,g.U3)((0,g.zk)(this._editor.getDomNode()),()=>{this._instantiateSome(1)})),this._register((0,g.U3)((0,g.zk)(this._editor.getDomNode()),()=>{this._instantiateSome(2)})),this._register((0,g.U3)((0,g.zk)(this._editor.getDomNode()),()=>{this._instantiateSome(3)},5e3))}saveViewState(){const t={};for(const[l,y]of this._instances)typeof y.saveViewState=="function"&&(t[l]=y.saveViewState());return t}restoreViewState(t){for(const[l,y]of this._instances)typeof y.restoreViewState=="function"&&y.restoreViewState(t[l])}get(t){return this._instantiateById(t),this._instances.get(t)||null}onBeforeInteractionEvent(){this._instantiateSome(2)}onAfterModelAttached(){var t;return(0,g.U3)((0,g.zk)((t=this._editor)===null||t===void 0?void 0:t.getDomNode()),()=>{this._instantiateSome(1)},50)}_instantiateSome(t){if(this._finishedInstantiation[t])return;this._finishedInstantiation[t]=!0;const l=this._findPendingContributionsByInstantiation(t);for(const y of l)this._instantiateById(y.id)}_findPendingContributionsByInstantiation(t){const l=[];for(const[,y]of this._pending)y.instantiation===t&&l.push(y);return l}_instantiateById(t){const l=this._pending.get(t);if(l){if(this._pending.delete(t),!this._instantiationService||!this._editor)throw new Error("Cannot instantiate contributions before being initialized!");try{const y=this._instantiationService.createInstance(l.ctor,this._editor);this._instances.set(l.id,y),typeof y.restoreViewState=="function"&&l.instantiation!==0&&console.warn(`Editor contribution '${l.id}' should be eager instantiated because it uses saveViewState / restoreViewState.`)}catch(y){(0,x.dz)(y)}}}}var hr=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorWordOperations.js"),os=e("./node_modules/monaco-editor/esm/vs/editor/common/editorAction.js"),Qo=e("./node_modules/monaco-editor/esm/vs/editor/common/editorCommon.js"),zi=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),$s=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),lo=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),Eo=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),Qs=e("./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js");class Po{static create(t){return new Po(t.get(134),t.get(133))}constructor(t,l){this.classifier=new hs(t,l)}createLineBreaksComputer(t,l,y,H,Z){const pe=[],ke=[],Ve=[];return{addRequest:(Xe,gt,Ct)=>{pe.push(Xe),ke.push(gt),Ve.push(Ct)},finalize:()=>{const Xe=t.typicalFullwidthCharacterWidth/t.typicalHalfwidthCharacterWidth,gt=[];for(let Ct=0,It=pe.length;Ct=0&&t<256?this._asciiMap[t]:t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?3:this._map.get(t)||this._defaultValue}}let ss=[],io=[];function zr(Pt,t,l,y,H,Z,pe,ke){if(H===-1)return null;const Ve=l.length;if(Ve<=1)return null;const Xe=ke==="keepAll",gt=t.breakOffsets,Ct=t.breakOffsetsVisibleColumn,It=ms(l,y,H,Z,pe),Bt=H-It,Yt=ss,tn=io;let gn=0,mn=0,Mn=0,Tn=H;const Gn=gt.length;let Zn=0;if(Zn>=0){let ii=Math.abs(Ct[Zn]-Tn);for(;Zn+1=ii)break;ii=si,Zn++}}for(;Znii&&(ii=mn,si=Mn);let pi=0,ai=0,li=0,_i=0;if(si<=Tn){let Ci=si,Ki=ii===0?0:l.charCodeAt(ii-1),Wi=ii===0?0:Pt.get(Ki),Zi=!0;for(let Oi=ii;Oimn&&Co(Ki,Wi,Bi,$i,Xe)&&(pi=ho,ai=Ci),Ci+=mo,Ci>Tn){ho>mn?(li=ho,_i=Ci-mo):(li=Oi+1,_i=Ci),Ci-ai>Bt&&(pi=0),Zi=!1;break}Ki=Bi,Wi=$i}if(Zi){gn>0&&(Yt[gn]=gt[gt.length-1],tn[gn]=Ct[gt.length-1],gn++);break}}if(pi===0){let Ci=si,Ki=l.charCodeAt(ii),Wi=Pt.get(Ki),Zi=!1;for(let Oi=ii-1;Oi>=mn;Oi--){const ho=Oi+1,Bi=l.charCodeAt(Oi);if(Bi===9){Zi=!0;break}let $i,mo;if(xt.LJ(Bi)?(Oi--,$i=0,mo=2):($i=Pt.get(Bi),mo=xt.ne(Bi)?Z:1),Ci<=Tn){if(li===0&&(li=ho,_i=Ci),Ci<=Tn-Bt)break;if(Co(Bi,$i,Ki,Wi,Xe)){pi=ho,ai=Ci;break}}Ci-=mo,Ki=Bi,Wi=$i}if(pi!==0){const Oi=Bt-(_i-ai);if(Oi<=y){const ho=l.charCodeAt(li);let Bi;xt.pc(ho)?Bi=2:Bi=Uo(ho,_i,y,Z),Oi-Bi<0&&(pi=0)}}if(Zi){Zn--;continue}}if(pi===0&&(pi=li,ai=_i),pi<=mn){const Ci=l.charCodeAt(mn);xt.pc(Ci)?(pi=mn+2,ai=Mn+2):(pi=mn+1,ai=Mn+Uo(Ci,Mn,y,Z))}for(mn=pi,Yt[gn]=pi,Mn=ai,tn[gn]=ai,gn++,Tn=ai+Bt;Zn<0||Zn=gi)break;gi=Ci,Zn++}}return gn===0?null:(Yt.length=gn,tn.length=gn,ss=t.breakOffsets,io=t.breakOffsetsVisibleColumn,t.breakOffsets=Yt,t.breakOffsetsVisibleColumn=tn,t.wrappedTextIndentLength=It,t)}function rs(Pt,t,l,y,H,Z,pe,ke){const Ve=wo.uK.applyInjectedText(t,l);let Xe,gt;if(l&&l.length>0?(Xe=l.map(ai=>ai.options),gt=l.map(ai=>ai.column-1)):(Xe=null,gt=null),H===-1)return Xe?new So(gt,Xe,[Ve.length],[],0):null;const Ct=Ve.length;if(Ct<=1)return Xe?new So(gt,Xe,[Ve.length],[],0):null;const It=ke==="keepAll",Bt=ms(Ve,y,H,Z,pe),Yt=H-Bt,tn=[],gn=[];let mn=0,Mn=0,Tn=0,Gn=H,Zn=Ve.charCodeAt(0),ii=Pt.get(Zn),si=Uo(Zn,0,y,Z),pi=1;xt.pc(Zn)&&(si+=1,Zn=Ve.charCodeAt(1),ii=Pt.get(Zn),pi++);for(let ai=pi;aiGn&&((Mn===0||si-Tn>Yt)&&(Mn=li,Tn=si-Ci),tn[mn]=Mn,gn[mn]=Tn,mn++,Gn=Tn+Yt,Mn=0),Zn=_i,ii=gi}return mn===0&&(!l||l.length===0)?null:(tn[mn]=Ct,gn[mn]=si,new So(gt,Xe,tn,gn,Bt))}function Uo(Pt,t,l,y){return Pt===9?l-t%l:xt.ne(Pt)||Pt<32?y:1}function Ys(Pt,t){return t-Pt%t}function Co(Pt,t,l,y,H){return l!==32&&(t===2&&y!==2||t!==1&&y===1||!H&&t===3&&y!==2||!H&&y===3&&t!==1)}function ms(Pt,t,l,y,H){let Z=0;if(H!==0){const pe=xt.HG(Pt);if(pe!==-1){for(let Ve=0;Vel&&(Z=0)}}return Z}var as=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),qi=e("./node_modules/monaco-editor/esm/vs/editor/common/cursorCommon.js");class gs{constructor(t){this._selTrackedRange=null,this._trackSelection=!0,this._setState(t,new qi.mG(new ve.Q(1,1,1,1),0,0,new he.y(1,1),0),new qi.mG(new ve.Q(1,1,1,1),0,0,new he.y(1,1),0))}dispose(t){this._removeTrackedRange(t)}startTrackingSelection(t){this._trackSelection=!0,this._updateTrackedRange(t)}stopTrackingSelection(t){this._trackSelection=!1,this._removeTrackedRange(t)}_updateTrackedRange(t){this._trackSelection&&(this._selTrackedRange=t.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,0))}_removeTrackedRange(t){this._selTrackedRange=t.model._setTrackedRange(this._selTrackedRange,null,0)}asCursorState(){return new qi.MF(this.modelState,this.viewState)}readSelectionFromMarkers(t){const l=t.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.isEmpty()&&!l.isEmpty()?Le.L.fromRange(l.collapseToEnd(),this.modelState.selection.getDirection()):Le.L.fromRange(l,this.modelState.selection.getDirection())}ensureValidState(t){this._setState(t,this.modelState,this.viewState)}setState(t,l,y){this._setState(t,l,y)}static _validatePositionWithCache(t,l,y,H){return l.equals(y)?H:t.normalizePosition(l,2)}static _validateViewState(t,l){const y=l.position,H=l.selectionStart.getStartPosition(),Z=l.selectionStart.getEndPosition(),pe=t.normalizePosition(y,2),ke=this._validatePositionWithCache(t,H,y,pe),Ve=this._validatePositionWithCache(t,Z,H,ke);return y.equals(pe)&&H.equals(ke)&&Z.equals(Ve)?l:new qi.mG(ve.Q.fromPositions(ke,Ve),l.selectionStartKind,l.selectionStartLeftoverVisibleColumns+H.column-ke.column,pe,l.leftoverVisibleColumns+y.column-pe.column)}_setState(t,l,y){if(y&&(y=gs._validateViewState(t.viewModel,y)),l){const H=t.model.validateRange(l.selectionStart),Z=l.selectionStart.equalsRange(H)?l.selectionStartLeftoverVisibleColumns:0,pe=t.model.validatePosition(l.position),ke=l.position.equals(pe)?l.leftoverVisibleColumns:0;l=new qi.mG(H,l.selectionStartKind,Z,pe,ke)}else{if(!y)return;const H=t.model.validateRange(t.coordinatesConverter.convertViewRangeToModelRange(y.selectionStart)),Z=t.model.validatePosition(t.coordinatesConverter.convertViewPositionToModelPosition(y.position));l=new qi.mG(H,y.selectionStartKind,y.selectionStartLeftoverVisibleColumns,Z,y.leftoverVisibleColumns)}if(y){const H=t.coordinatesConverter.validateViewRange(y.selectionStart,l.selectionStart),Z=t.coordinatesConverter.validateViewPosition(y.position,l.position);y=new qi.mG(H,l.selectionStartKind,l.selectionStartLeftoverVisibleColumns,Z,l.leftoverVisibleColumns)}else{const H=t.coordinatesConverter.convertModelPositionToViewPosition(new he.y(l.selectionStart.startLineNumber,l.selectionStart.startColumn)),Z=t.coordinatesConverter.convertModelPositionToViewPosition(new he.y(l.selectionStart.endLineNumber,l.selectionStart.endColumn)),pe=new ve.Q(H.lineNumber,H.column,Z.lineNumber,Z.column),ke=t.coordinatesConverter.convertModelPositionToViewPosition(l.position);y=new qi.mG(pe,l.selectionStartKind,l.selectionStartLeftoverVisibleColumns,ke,l.leftoverVisibleColumns)}this.modelState=l,this.viewState=y,this._updateTrackedRange(t)}}class es{constructor(t){this.context=t,this.cursors=[new gs(t)],this.lastAddedCursorIndex=0}dispose(){for(const t of this.cursors)t.dispose(this.context)}startTrackingSelections(){for(const t of this.cursors)t.startTrackingSelection(this.context)}stopTrackingSelections(){for(const t of this.cursors)t.stopTrackingSelection(this.context)}updateContext(t){this.context=t}ensureValidState(){for(const t of this.cursors)t.ensureValidState(this.context)}readSelectionFromMarkers(){return this.cursors.map(t=>t.readSelectionFromMarkers(this.context))}getAll(){return this.cursors.map(t=>t.asCursorState())}getViewPositions(){return this.cursors.map(t=>t.viewState.position)}getTopMostViewPosition(){return(0,as.dC)(this.cursors,(0,s.VE)(t=>t.viewState.position,he.y.compare)).viewState.position}getBottomMostViewPosition(){return(0,as.Jw)(this.cursors,(0,s.VE)(t=>t.viewState.position,he.y.compare)).viewState.position}getSelections(){return this.cursors.map(t=>t.modelState.selection)}getViewSelections(){return this.cursors.map(t=>t.viewState.selection)}setSelections(t){this.setStates(qi.MF.fromModelSelections(t))}getPrimaryCursor(){return this.cursors[0].asCursorState()}setStates(t){t!==null&&(this.cursors[0].setState(this.context,t[0].modelState,t[0].viewState),this._setSecondaryStates(t.slice(1)))}_setSecondaryStates(t){const l=this.cursors.length-1,y=t.length;if(ly){const H=l-y;for(let Z=0;Z=t+1&&this.lastAddedCursorIndex--,this.cursors[t+1].dispose(this.context),this.cursors.splice(t+1,1)}normalize(){if(this.cursors.length===1)return;const t=this.cursors.slice(0),l=[];for(let y=0,H=t.length;yy.selection,ve.Q.compareRangesUsingStarts));for(let y=0;yCt&&tn.index--;t.splice(Ct,1),l.splice(gt,1),this._removeSecondaryCursor(Ct-1),y--}}}}class As{constructor(t,l,y,H){this._cursorContextBrand=void 0,this.model=t,this.viewModel=l,this.coordinatesConverter=y,this.cursorConfig=H}}var Zs=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorDeleteOperations.js"),Yo=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorTypeOperations.js");class mr{constructor(){this.type=0}}class ts{constructor(){this.type=1}}class gr{constructor(t){this.type=2,this._source=t}hasChanged(t){return this._source.hasChanged(t)}}class Xs{constructor(t,l,y){this.selections=t,this.modelSelections=l,this.reason=y,this.type=3}}class No{constructor(t){this.type=4,t?(this.affectsMinimap=t.affectsMinimap,this.affectsOverviewRuler=t.affectsOverviewRuler,this.affectsGlyphMargin=t.affectsGlyphMargin,this.affectsLineNumber=t.affectsLineNumber):(this.affectsMinimap=!0,this.affectsOverviewRuler=!0,this.affectsGlyphMargin=!0,this.affectsLineNumber=!0)}}class Wo{constructor(){this.type=5}}class fs{constructor(t){this.type=6,this.isFocused=t}}class fr{constructor(){this.type=7}}class Zo{constructor(){this.type=8}}class pr{constructor(t,l){this.fromLineNumber=t,this.count=l,this.type=9}}class ps{constructor(t,l){this.type=10,this.fromLineNumber=t,this.toLineNumber=l}}class wi{constructor(t,l){this.type=11,this.fromLineNumber=t,this.toLineNumber=l}}class Pi{constructor(t,l,y,H,Z,pe,ke){this.source=t,this.minimalReveal=l,this.range=y,this.selections=H,this.verticalType=Z,this.revealHorizontal=pe,this.scrollType=ke,this.type=12}}class eo{constructor(t){this.type=13,this.scrollWidth=t.scrollWidth,this.scrollLeft=t.scrollLeft,this.scrollHeight=t.scrollHeight,this.scrollTop=t.scrollTop,this.scrollWidthChanged=t.scrollWidthChanged,this.scrollLeftChanged=t.scrollLeftChanged,this.scrollHeightChanged=t.scrollHeightChanged,this.scrollTopChanged=t.scrollTopChanged}}class oo{constructor(t){this.theme=t,this.type=14}}class xo{constructor(t){this.type=15,this.ranges=t}}class jo{constructor(){this.type=16}}class fo{constructor(){this.type=17}}class ko extends S.jG{constructor(){super(),this._onEvent=this._register(new I.vl),this.onEvent=this._onEvent.event,this._eventHandlers=[],this._viewEventQueue=null,this._isConsumingViewEventQueue=!1,this._collector=null,this._collectorCnt=0,this._outgoingEvents=[]}emitOutgoingEvent(t){this._addOutgoingEvent(t),this._emitOutgoingEvents()}_addOutgoingEvent(t){for(let l=0,y=this._outgoingEvents.length;l0;){if(this._collector||this._isConsumingViewEventQueue)return;const t=this._outgoingEvents.shift();t.isNoOp()||this._onEvent.fire(t)}}addViewEventHandler(t){for(let l=0,y=this._eventHandlers.length;l0&&this._emitMany(l)}this._emitOutgoingEvents()}emitSingleViewEvent(t){try{this.beginEmitViewEvents().emitViewEvent(t)}finally{this.endEmitViewEvents()}}_emitMany(t){this._viewEventQueue?this._viewEventQueue=this._viewEventQueue.concat(t):this._viewEventQueue=t,this._isConsumingViewEventQueue||this._consumeViewEventQueue()}_consumeViewEventQueue(){try{this._isConsumingViewEventQueue=!0,this._doConsumeQueue()}finally{this._isConsumingViewEventQueue=!1}}_doConsumeQueue(){for(;this._viewEventQueue;){const t=this._viewEventQueue;this._viewEventQueue=null;const l=this._eventHandlers.slice(0);for(const y of l)y.handleEvents(t)}}}class _s{constructor(){this.viewEvents=[],this.outgoingEvents=[]}emitViewEvent(t){this.viewEvents.push(t)}emitOutgoingEvent(t){this.outgoingEvents.push(t)}}class Ns{constructor(t,l,y,H){this.kind=0,this._oldContentWidth=t,this._oldContentHeight=l,this.contentWidth=y,this.contentHeight=H,this.contentWidthChanged=this._oldContentWidth!==this.contentWidth,this.contentHeightChanged=this._oldContentHeight!==this.contentHeight}isNoOp(){return!this.contentWidthChanged&&!this.contentHeightChanged}attemptToMerge(t){return t.kind!==this.kind?null:new Ns(this._oldContentWidth,this._oldContentHeight,t.contentWidth,t.contentHeight)}}class Js{constructor(t,l){this.kind=1,this.oldHasFocus=t,this.hasFocus=l}isNoOp(){return this.oldHasFocus===this.hasFocus}attemptToMerge(t){return t.kind!==this.kind?null:new Js(this.oldHasFocus,t.hasFocus)}}class vs{constructor(t,l,y,H,Z,pe,ke,Ve){this.kind=2,this._oldScrollWidth=t,this._oldScrollLeft=l,this._oldScrollHeight=y,this._oldScrollTop=H,this.scrollWidth=Z,this.scrollLeft=pe,this.scrollHeight=ke,this.scrollTop=Ve,this.scrollWidthChanged=this._oldScrollWidth!==this.scrollWidth,this.scrollLeftChanged=this._oldScrollLeft!==this.scrollLeft,this.scrollHeightChanged=this._oldScrollHeight!==this.scrollHeight,this.scrollTopChanged=this._oldScrollTop!==this.scrollTop}isNoOp(){return!this.scrollWidthChanged&&!this.scrollLeftChanged&&!this.scrollHeightChanged&&!this.scrollTopChanged}attemptToMerge(t){return t.kind!==this.kind?null:new vs(this._oldScrollWidth,this._oldScrollLeft,this._oldScrollHeight,this._oldScrollTop,t.scrollWidth,t.scrollLeft,t.scrollHeight,t.scrollTop)}}class Ca{constructor(){this.kind=3}isNoOp(){return!1}attemptToMerge(t){return t.kind!==this.kind?null:this}}class ya{constructor(){this.kind=4}isNoOp(){return!1}attemptToMerge(t){return t.kind!==this.kind?null:this}}class qs{constructor(t,l,y,H,Z,pe,ke){this.kind=6,this.oldSelections=t,this.selections=l,this.oldModelVersionId=y,this.modelVersionId=H,this.source=Z,this.reason=pe,this.reachedMaxCursorCount=ke}static _selectionsAreEqual(t,l){if(!t&&!l)return!0;if(!t||!l)return!1;const y=t.length,H=l.length;if(y!==H)return!1;for(let Z=0;Z0){const t=this._cursors.getSelections();for(let l=0;lpe&&(H=H.slice(0,pe),Z=!0);const ke=Xo.from(this._model,this);return this._cursors.setStates(H),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,l,y,ke,Z)}setCursorColumnSelectData(t){this._columnSelectData=t}revealAll(t,l,y,H,Z,pe){const ke=this._cursors.getViewPositions();let Ve=null,Xe=null;ke.length>1?Xe=this._cursors.getViewSelections():Ve=ve.Q.fromPositions(ke[0],ke[0]),t.emitViewEvent(new Pi(l,y,Ve,Xe,H,Z,pe))}revealPrimary(t,l,y,H,Z,pe){const Ve=[this._cursors.getPrimaryCursor().viewState.selection];t.emitViewEvent(new Pi(l,y,null,Ve,H,Z,pe))}saveState(){const t=[],l=this._cursors.getSelections();for(let y=0,H=l.length;y0){const Z=qi.MF.fromModelSelections(y.resultingSelection);this.setStates(t,"modelChange",y.isUndoing?5:y.isRedoing?6:2,Z)&&this.revealAll(t,"modelChange",!1,0,!0,0)}else{const Z=this._cursors.readSelectionFromMarkers();this.setStates(t,"modelChange",2,qi.MF.fromModelSelections(Z))}}}getSelection(){return this._cursors.getPrimaryCursor().modelState.selection}getTopMostViewPosition(){return this._cursors.getTopMostViewPosition()}getBottomMostViewPosition(){return this._cursors.getBottomMostViewPosition()}getCursorColumnSelectData(){if(this._columnSelectData)return this._columnSelectData;const t=this._cursors.getPrimaryCursor(),l=t.viewState.selectionStart.getStartPosition(),y=t.viewState.position;return{isReal:!1,fromViewLineNumber:l.lineNumber,fromViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,l),toViewLineNumber:y.lineNumber,toViewVisualColumn:this.context.cursorConfig.visibleColumnFromColumn(this._viewModel,y)}}getSelections(){return this._cursors.getSelections()}setSelections(t,l,y,H){this.setStates(t,l,H,qi.MF.fromModelSelections(y))}getPrevEditOperationType(){return this._prevEditOperationType}setPrevEditOperationType(t){this._prevEditOperationType=t}_pushAutoClosedAction(t,l){const y=[],H=[];for(let ke=0,Ve=t.length;ke0&&this._pushAutoClosedAction(y,H),this._prevEditOperationType=t.type}t.shouldPushStackElementAfter&&this._model.pushStackElement()}_interpretCommandResult(t){(!t||t.length===0)&&(t=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(t),this._cursors.normalize()}_emitStateChangedIfNecessary(t,l,y,H,Z){const pe=Xo.from(this._model,this);if(pe.equals(H))return!1;const ke=this._cursors.getSelections(),Ve=this._cursors.getViewSelections();if(t.emitViewEvent(new Xs(Ve,ke,y)),!H||H.cursorState.length!==pe.cursorState.length||pe.cursorState.some((Xe,gt)=>!Xe.modelState.equals(H.cursorState[gt].modelState))){const Xe=H?H.cursorState.map(Ct=>Ct.modelState.selection):null,gt=H?H.modelVersionId:0;t.emitOutgoingEvent(new qs(Xe,ke,gt,pe.modelVersionId,l||"keyboard",y,Z))}return!0}_findAutoClosingPairs(t){if(!t.length)return null;const l=[];for(let y=0,H=t.length;y=0)return null;const pe=Z.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!pe)return null;const ke=pe[1],Ve=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(ke);if(!Ve||Ve.length!==1)return null;const Xe=Ve[0].open,gt=Z.text.length-pe[2].length-1,Ct=Z.text.lastIndexOf(Xe,gt-1);if(Ct===-1)return null;l.push([Ct,gt])}return l}executeEdits(t,l,y,H){let Z=null;l==="snippet"&&(Z=this._findAutoClosingPairs(y)),Z&&(y[0]._isTracked=!0);const pe=[],ke=[],Ve=this._model.pushEditOperations(this.getSelections(),y,Xe=>{if(Z)for(let Ct=0,It=Z.length;Ct0&&this._pushAutoClosedAction(pe,ke)}_executeEdit(t,l,y,H=0){if(this.context.cursorConfig.readOnly)return;const Z=Xo.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),t()}catch(pe){(0,x.dz)(pe)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(l,y,H,Z,!1)&&this.revealAll(l,y,!1,0,!0,0)}getAutoClosedCharacters(){return _r.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(t){this._compositionState=new so(this._model,this.getSelections())}endComposition(t,l){const y=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{l==="keyboard"&&this._executeEditOperation(Yo.TK.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,y,this.getSelections(),this.getAutoClosedCharacters()))},t,l)}type(t,l,y){this._executeEdit(()=>{if(y==="keyboard"){const H=l.length;let Z=0;for(;Z{const Xe=Ve.getPosition();return new Le.L(Xe.lineNumber,Xe.column+Z,Xe.lineNumber,Xe.column+Z)});this.setSelections(t,pe,ke,0)}return}this._executeEdit(()=>{this._executeEditOperation(Yo.TK.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),l,y,H,Z))},t,pe)}paste(t,l,y,H,Z){this._executeEdit(()=>{this._executeEditOperation(Yo.TK.paste(this.context.cursorConfig,this._model,this.getSelections(),l,y,H||[]))},t,Z,4)}cut(t,l){this._executeEdit(()=>{this._executeEditOperation(Zs.g.cut(this.context.cursorConfig,this._model,this.getSelections()))},t,l)}executeCommand(t,l,y){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new qi.vY(0,[l],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t,y)}executeCommands(t,l,y){this._executeEdit(()=>{this._executeEditOperation(new qi.vY(0,l,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t,y)}}class Xo{static from(t,l){return new Xo(t.getVersionId(),l.getCursorStates())}constructor(t,l){this.modelVersionId=t,this.cursorState=l}equals(t){if(!t||this.modelVersionId!==t.modelVersionId||this.cursorState.length!==t.cursorState.length)return!1;for(let l=0,y=this.cursorState.length;l=l.length||!l[y].strictContainsRange(t[y]))return!1;return!0}}class Ho{static executeCommands(t,l,y){const H={model:t,selectionsBefore:l,trackedRanges:[],trackedRangesDirection:[]},Z=this._innerExecuteCommands(H,y);for(let pe=0,ke=H.trackedRanges.length;pe0&&(pe[0]._isTracked=!0);let ke=t.model.pushEditOperations(t.selectionsBefore,pe,Xe=>{const gt=[];for(let Bt=0;BtBt.identifier.minor-Yt.identifier.minor,It=[];for(let Bt=0;Bt0?(gt[Bt].sort(Ct),It[Bt]=l[Bt].computeCursorState(t.model,{getInverseEditOperations:()=>gt[Bt],getTrackedSelection:Yt=>{const tn=parseInt(Yt,10),gn=t.model._getTrackedRange(t.trackedRanges[tn]);return t.trackedRangesDirection[tn]===0?new Le.L(gn.startLineNumber,gn.startColumn,gn.endLineNumber,gn.endColumn):new Le.L(gn.endLineNumber,gn.endColumn,gn.startLineNumber,gn.startColumn)}})):It[Bt]=t.selectionsBefore[Bt];return It});ke||(ke=t.selectionsBefore);const Ve=[];for(const Xe in Z)Z.hasOwnProperty(Xe)&&Ve.push(parseInt(Xe,10));Ve.sort((Xe,gt)=>gt-Xe);for(const Xe of Ve)ke.splice(Xe,1);return ke}static _arrayIsEmpty(t){for(let l=0,y=t.length;l{ve.Q.isEmpty(Ct)&&It===""||H.push({identifier:{major:l,minor:Z++},range:Ct,text:It,forceMoveMarkers:Bt,isAutoWhitespaceEdit:y.insertsAutoWhitespace})};let ke=!1;const gt={addEditOperation:pe,addTrackedEditOperation:(Ct,It,Bt)=>{ke=!0,pe(Ct,It,Bt)},trackSelection:(Ct,It)=>{const Bt=Le.L.liftSelection(Ct);let Yt;if(Bt.isEmpty())if(typeof It=="boolean")It?Yt=2:Yt=3;else{const mn=t.model.getLineMaxColumn(Bt.startLineNumber);Bt.startColumn===mn?Yt=2:Yt=3}else Yt=1;const tn=t.trackedRanges.length,gn=t.model._setTrackedRange(null,Bt,Yt);return t.trackedRanges[tn]=gn,t.trackedRangesDirection[tn]=Bt.getDirection(),tn.toString()}};try{y.getEditOperations(t.model,gt)}catch(Ct){return(0,x.dz)(Ct),{operations:[],hadTrackedEditOperation:!1}}return{operations:H,hadTrackedEditOperation:ke}}static _getLoserCursorMap(t){t=t.slice(0),t.sort((y,H)=>-ve.Q.compareRangesUsingEnds(y.range,H.range));const l={};for(let y=1;yZ.identifier.major?pe=H.identifier.major:pe=Z.identifier.major,l[pe.toString()]=!0;for(let ke=0;ke0&&y--}}return l}}class $r{constructor(t,l,y){this.text=t,this.startSelection=l,this.endSelection=y}}class so{static _capture(t,l){const y=[];for(const H of l){if(H.startLineNumber!==H.endLineNumber)return null;y.push(new $r(t.getLineContent(H.startLineNumber),H.startColumn-1,H.endColumn-1))}return y}constructor(t,l){this._original=so._capture(t,l)}deduceOutcome(t,l){if(!this._original)return null;const y=so._capture(t,l);if(!y||this._original.length!==y.length)return null;const H=[];for(let Z=0,pe=this._original.length;Z>>1;l===t[pe].afterLineNumber?y{l=!0,H=H|0,Z=Z|0,pe=pe|0,ke=ke|0;const Ve=this._instanceId+ ++this._lastWhitespaceId;return this._pendingChanges.insert(new Yr(Ve,H,Z,pe,ke)),Ve},changeOneWhitespace:(H,Z,pe)=>{l=!0,Z=Z|0,pe=pe|0,this._pendingChanges.change({id:H,newAfterLineNumber:Z,newHeight:pe})},removeWhitespace:H=>{l=!0,this._pendingChanges.remove({id:H})}})}finally{this._pendingChanges.commit(this)}return l}_commitPendingChanges(t,l,y){if((t.length>0||y.length>0)&&(this._minWidth=-1),t.length+l.length+y.length<=1){for(const Ve of t)this._insertWhitespace(Ve);for(const Ve of l)this._changeOneWhitespace(Ve.id,Ve.newAfterLineNumber,Ve.newHeight);for(const Ve of y){const Xe=this._findWhitespaceIndex(Ve.id);Xe!==-1&&this._removeWhitespace(Xe)}return}const H=new Set;for(const Ve of y)H.add(Ve.id);const Z=new Map;for(const Ve of l)Z.set(Ve.id,Ve);const pe=Ve=>{const Xe=[];for(const gt of Ve)if(!H.has(gt.id)){if(Z.has(gt.id)){const Ct=Z.get(gt.id);gt.afterLineNumber=Ct.newAfterLineNumber,gt.height=Ct.newHeight}Xe.push(gt)}return Xe},ke=pe(this._arr).concat(pe(t));ke.sort((Ve,Xe)=>Ve.afterLineNumber===Xe.afterLineNumber?Ve.ordinal-Xe.ordinal:Ve.afterLineNumber-Xe.afterLineNumber),this._arr=ke,this._prefixSumValidIndex=-1}_checkPendingChanges(){this._pendingChanges.mustCommit()&&this._pendingChanges.commit(this)}_insertWhitespace(t){const l=Cs.findInsertionIndex(this._arr,t.afterLineNumber,t.ordinal);this._arr.splice(l,0,t),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,l-1)}_findWhitespaceIndex(t){const l=this._arr;for(let y=0,H=l.length;yl&&(this._arr[y].afterLineNumber-=l-t+1)}}onLinesInserted(t,l){this._checkPendingChanges(),t=t|0,l=l|0,this._lineCount+=l-t+1;for(let y=0,H=this._arr.length;y=l.length||l[ke+1].afterLineNumber>=t)return ke;y=ke+1|0}else H=ke-1|0}return-1}_findFirstWhitespaceAfterLineNumber(t){t=t|0;const y=this._findLastWhitespaceBeforeLineNumber(t)+1;return y1?y=this._lineHeight*(t-1):y=0;const H=this.getWhitespaceAccumulatedHeightBeforeLineNumber(t-(l?1:0));return y+H+this._paddingTop}getVerticalOffsetAfterLineNumber(t,l=!1){this._checkPendingChanges(),t=t|0;const y=this._lineHeight*t,H=this.getWhitespaceAccumulatedHeightBeforeLineNumber(t+(l?1:0));return y+H+this._paddingTop}getWhitespaceMinWidth(){if(this._checkPendingChanges(),this._minWidth===-1){let t=0;for(let l=0,y=this._arr.length;ll}isInTopPadding(t){return this._paddingTop===0?!1:(this._checkPendingChanges(),t=l-this._paddingBottom}getLineNumberAtOrAfterVerticalOffset(t){if(this._checkPendingChanges(),t=t|0,t<0)return 1;const l=this._lineCount|0,y=this._lineHeight;let H=1,Z=l;for(;H=ke+y)H=pe+1;else{if(t>=ke)return pe;Z=pe}}return H>l?l:H}getLinesViewportData(t,l){this._checkPendingChanges(),t=t|0,l=l|0;const y=this._lineHeight,H=this.getLineNumberAtOrAfterVerticalOffset(t)|0,Z=this.getVerticalOffsetForLineNumber(H)|0;let pe=this._lineCount|0,ke=this.getFirstWhitespaceIndexAfterLineNumber(H)|0;const Ve=this.getWhitespacesCount()|0;let Xe,gt;ke===-1?(ke=Ve,gt=pe+1,Xe=0):(gt=this.getAfterLineNumberForWhitespaceIndex(ke)|0,Xe=this.getHeightForWhitespaceIndex(ke)|0);let Ct=Z,It=Ct;const Bt=5e5;let Yt=0;Z>=Bt&&(Yt=Math.floor(Z/Bt)*Bt,Yt=Math.floor(Yt/y)*y,It-=Yt);const tn=[],gn=t+(l-t)/2;let mn=-1;for(let Zn=H;Zn<=pe;Zn++){if(mn===-1){const ii=Ct,si=Ct+y;(ii<=gn&&gngn)&&(mn=Zn)}for(Ct+=y,tn[Zn-H]=It,It+=y;gt===Zn;)It+=Xe,Ct+=Xe,ke++,ke>=Ve?gt=pe+1:(gt=this.getAfterLineNumberForWhitespaceIndex(ke)|0,Xe=this.getHeightForWhitespaceIndex(ke)|0);if(Ct>=l){pe=Zn;break}}mn===-1&&(mn=pe);const Mn=this.getVerticalOffsetForLineNumber(pe)|0;let Tn=H,Gn=pe;return Tnl&&Gn--,{bigNumbersDelta:Yt,startLineNumber:H,endLineNumber:pe,relativeVerticalOffset:tn,centeredLineNumber:mn,completelyVisibleStartLineNumber:Tn,completelyVisibleEndLineNumber:Gn,lineHeight:this._lineHeight}}getVerticalOffsetForWhitespaceIndex(t){this._checkPendingChanges(),t=t|0;const l=this.getAfterLineNumberForWhitespaceIndex(t);let y;l>=1?y=this._lineHeight*l:y=0;let H;return t>0?H=this.getWhitespacesAccumulatedHeight(t-1):H=0,y+H+this._paddingTop}getWhitespaceIndexAtOrAfterVerticallOffset(t){this._checkPendingChanges(),t=t|0;let l=0,y=this.getWhitespacesCount()-1;if(y<0)return-1;const H=this.getVerticalOffsetForWhitespaceIndex(y),Z=this.getHeightForWhitespaceIndex(y);if(t>=H+Z)return-1;for(;l=ke+Ve)l=pe+1;else{if(t>=ke)return pe;y=pe}}return l}getWhitespaceAtVerticalOffset(t){this._checkPendingChanges(),t=t|0;const l=this.getWhitespaceIndexAtOrAfterVerticallOffset(t);if(l<0||l>=this.getWhitespacesCount())return null;const y=this.getVerticalOffsetForWhitespaceIndex(l);if(y>t)return null;const H=this.getHeightForWhitespaceIndex(l),Z=this.getIdForWhitespaceIndex(l),pe=this.getAfterLineNumberForWhitespaceIndex(l);return{id:Z,afterLineNumber:pe,verticalOffset:y,height:H}}getWhitespaceViewportData(t,l){this._checkPendingChanges(),t=t|0,l=l|0;const y=this.getWhitespaceIndexAtOrAfterVerticallOffset(t),H=this.getWhitespacesCount()-1;if(y<0)return[];const Z=[];for(let pe=y;pe<=H;pe++){const ke=this.getVerticalOffsetForWhitespaceIndex(pe),Ve=this.getHeightForWhitespaceIndex(pe);if(ke>=l)break;Z.push({id:this.getIdForWhitespaceIndex(pe),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(pe),verticalOffset:ke,height:Ve})}return Z}getWhitespaces(){return this._checkPendingChanges(),this._arr.slice(0)}getWhitespacesCount(){return this._checkPendingChanges(),this._arr.length}getIdForWhitespaceIndex(t){return this._checkPendingChanges(),t=t|0,this._arr[t].id}getAfterLineNumberForWhitespaceIndex(t){return this._checkPendingChanges(),t=t|0,this._arr[t].afterLineNumber}getHeightForWhitespaceIndex(t){return this._checkPendingChanges(),t=t|0,this._arr[t].height}}Cs.INSTANCE_COUNT=0;const ls=125;class Fs{constructor(t,l,y,H){t=t|0,l=l|0,y=y|0,H=H|0,t<0&&(t=0),l<0&&(l=0),y<0&&(y=0),H<0&&(H=0),this.width=t,this.contentWidth=l,this.scrollWidth=Math.max(t,l),this.height=y,this.contentHeight=H,this.scrollHeight=Math.max(y,H)}equals(t){return this.width===t.width&&this.contentWidth===t.contentWidth&&this.height===t.height&&this.contentHeight===t.contentHeight}}class br extends S.jG{constructor(t,l){super(),this._onDidContentSizeChange=this._register(new I.vl),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._dimensions=new Fs(0,0,0,0),this._scrollable=this._register(new bs.yE({forceIntegerValues:!0,smoothScrollDuration:t,scheduleAtNextAnimationFrame:l})),this.onDidScroll=this._scrollable.onScroll}getScrollable(){return this._scrollable}setSmoothScrollDuration(t){this._scrollable.setSmoothScrollDuration(t)}validateScrollPosition(t){return this._scrollable.validateScrollPosition(t)}getScrollDimensions(){return this._dimensions}setScrollDimensions(t){if(this._dimensions.equals(t))return;const l=this._dimensions;this._dimensions=t,this._scrollable.setScrollDimensions({width:t.width,scrollWidth:t.scrollWidth,height:t.height,scrollHeight:t.scrollHeight},!0);const y=l.contentWidth!==t.contentWidth,H=l.contentHeight!==t.contentHeight;(y||H)&&this._onDidContentSizeChange.fire(new Ns(l.contentWidth,l.contentHeight,t.contentWidth,t.contentHeight))}getFutureScrollPosition(){return this._scrollable.getFutureScrollPosition()}getCurrentScrollPosition(){return this._scrollable.getCurrentScrollPosition()}setScrollPositionNow(t){this._scrollable.setScrollPositionNow(t)}setScrollPositionSmooth(t){this._scrollable.setScrollPositionSmooth(t)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}}class zo extends S.jG{constructor(t,l,y){super(),this._configuration=t;const H=this._configuration.options,Z=H.get(145),pe=H.get(84);this._linesLayout=new Cs(l,H.get(67),pe.top,pe.bottom),this._maxLineWidth=0,this._overlayWidgetsMinWidth=0,this._scrollable=this._register(new br(0,y)),this._configureSmoothScrollDuration(),this._scrollable.setScrollDimensions(new Fs(Z.contentWidth,0,Z.height,0)),this.onDidScroll=this._scrollable.onDidScroll,this.onDidContentSizeChange=this._scrollable.onDidContentSizeChange,this._updateHeight()}dispose(){super.dispose()}getScrollable(){return this._scrollable.getScrollable()}onHeightMaybeChanged(){this._updateHeight()}_configureSmoothScrollDuration(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(114)?ls:0)}onConfigurationChanged(t){const l=this._configuration.options;if(t.hasChanged(67)&&this._linesLayout.setLineHeight(l.get(67)),t.hasChanged(84)){const y=l.get(84);this._linesLayout.setPadding(y.top,y.bottom)}if(t.hasChanged(145)){const y=l.get(145),H=y.contentWidth,Z=y.height,pe=this._scrollable.getScrollDimensions(),ke=pe.contentWidth;this._scrollable.setScrollDimensions(new Fs(H,pe.contentWidth,Z,this._getContentHeight(H,Z,ke)))}else this._updateHeight();t.hasChanged(114)&&this._configureSmoothScrollDuration()}onFlushed(t){this._linesLayout.onFlushed(t)}onLinesDeleted(t,l){this._linesLayout.onLinesDeleted(t,l)}onLinesInserted(t,l){this._linesLayout.onLinesInserted(t,l)}_getHorizontalScrollbarHeight(t,l){const H=this._configuration.options.get(103);return H.horizontal===2||t>=l?0:H.horizontalScrollbarSize}_getContentHeight(t,l,y){const H=this._configuration.options;let Z=this._linesLayout.getLinesTotalHeight();return H.get(105)?Z+=Math.max(0,l-H.get(67)-H.get(84).bottom):H.get(103).ignoreHorizontalScrollbarInContentHeight||(Z+=this._getHorizontalScrollbarHeight(t,y)),Z}_updateHeight(){const t=this._scrollable.getScrollDimensions(),l=t.width,y=t.height,H=t.contentWidth;this._scrollable.setScrollDimensions(new Fs(l,t.contentWidth,y,this._getContentHeight(l,y,H)))}getCurrentViewport(){const t=this._scrollable.getScrollDimensions(),l=this._scrollable.getCurrentScrollPosition();return new Un.LM(l.scrollTop,l.scrollLeft,t.width,t.height)}getFutureViewport(){const t=this._scrollable.getScrollDimensions(),l=this._scrollable.getFutureScrollPosition();return new Un.LM(l.scrollTop,l.scrollLeft,t.width,t.height)}_computeContentWidth(){const t=this._configuration.options,l=this._maxLineWidth,y=t.get(146),H=t.get(50),Z=t.get(145);if(y.isViewportWrapping){const pe=t.get(73);return l>Z.contentWidth+H.typicalHalfwidthCharacterWidth&&pe.enabled&&pe.side==="right"?l+Z.verticalScrollbarWidth:l}else{const pe=t.get(104)*H.typicalHalfwidthCharacterWidth,ke=this._linesLayout.getWhitespaceMinWidth();return Math.max(l+pe+Z.verticalScrollbarWidth,ke,this._overlayWidgetsMinWidth)}}setMaxLineWidth(t){this._maxLineWidth=t,this._updateContentWidth()}setOverlayWidgetsMinWidth(t){this._overlayWidgetsMinWidth=t,this._updateContentWidth()}_updateContentWidth(){const t=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new Fs(t.width,this._computeContentWidth(),t.height,t.contentHeight)),this._updateHeight()}saveState(){const t=this._scrollable.getFutureScrollPosition(),l=t.scrollTop,y=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(l),H=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(y);return{scrollTop:l,scrollTopWithoutViewZones:l-H,scrollLeft:t.scrollLeft}}changeWhitespace(t){const l=this._linesLayout.changeWhitespace(t);return l&&this.onHeightMaybeChanged(),l}getVerticalOffsetForLineNumber(t,l=!1){return this._linesLayout.getVerticalOffsetForLineNumber(t,l)}getVerticalOffsetAfterLineNumber(t,l=!1){return this._linesLayout.getVerticalOffsetAfterLineNumber(t,l)}isAfterLines(t){return this._linesLayout.isAfterLines(t)}isInTopPadding(t){return this._linesLayout.isInTopPadding(t)}isInBottomPadding(t){return this._linesLayout.isInBottomPadding(t)}getLineNumberAtVerticalOffset(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)}getWhitespaceAtVerticalOffset(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)}getLinesViewportData(){const t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)}getLinesViewportDataAtScrollTop(t){const l=this._scrollable.getScrollDimensions();return t+l.height>l.scrollHeight&&(t=l.scrollHeight-l.height),t<0&&(t=0),this._linesLayout.getLinesViewportData(t,t+l.height)}getWhitespaceViewportData(){const t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)}getWhitespaces(){return this._linesLayout.getWhitespaces()}getContentWidth(){return this._scrollable.getScrollDimensions().contentWidth}getScrollWidth(){return this._scrollable.getScrollDimensions().scrollWidth}getContentHeight(){return this._scrollable.getScrollDimensions().contentHeight}getScrollHeight(){return this._scrollable.getScrollDimensions().scrollHeight}getCurrentScrollLeft(){return this._scrollable.getCurrentScrollPosition().scrollLeft}getCurrentScrollTop(){return this._scrollable.getCurrentScrollPosition().scrollTop}validateScrollPosition(t){return this._scrollable.validateScrollPosition(t)}setScrollPosition(t,l){l===1?this._scrollable.setScrollPositionNow(t):this._scrollable.setScrollPositionSmooth(t)}hasPendingScrollAnimation(){return this._scrollable.hasPendingScrollAnimation()}deltaScrollNow(t,l){const y=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:y.scrollLeft+t,scrollTop:y.scrollTop+l})}}var Cr=e("./node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelDecorations.js"),yr=e("./node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.js");function ys(Pt,t){return Pt===null?t?Jo.INSTANCE:Bs.INSTANCE:new Sr(Pt,t)}class Sr{constructor(t,l){this._projectionData=t,this._isVisible=l}isVisible(){return this._isVisible}setVisible(t){return this._isVisible=t,this}getProjectionData(){return this._projectionData}getViewLineCount(){return this._isVisible?this._projectionData.getOutputLineCount():0}getViewLineContent(t,l,y){this._assertVisible();const H=y>0?this._projectionData.breakOffsets[y-1]:0,Z=this._projectionData.breakOffsets[y];let pe;if(this._projectionData.injectionOffsets!==null){const ke=this._projectionData.injectionOffsets.map((Xe,gt)=>new wo.uK(0,0,Xe+1,this._projectionData.injectionOptions[gt],0));pe=wo.uK.applyInjectedText(t.getLineContent(l),ke).substring(H,Z)}else pe=t.getValueInRange({startLineNumber:l,startColumn:H+1,endLineNumber:l,endColumn:Z+1});return y>0&&(pe=wr(this._projectionData.wrappedTextIndentLength)+pe),pe}getViewLineLength(t,l,y){return this._assertVisible(),this._projectionData.getLineLength(y)}getViewLineMinColumn(t,l,y){return this._assertVisible(),this._projectionData.getMinOutputOffset(y)+1}getViewLineMaxColumn(t,l,y){return this._assertVisible(),this._projectionData.getMaxOutputOffset(y)+1}getViewLineData(t,l,y){const H=new Array;return this.getViewLinesData(t,l,y,1,0,[!0],H),H[0]}getViewLinesData(t,l,y,H,Z,pe,ke){this._assertVisible();const Ve=this._projectionData,Xe=Ve.injectionOffsets,gt=Ve.injectionOptions;let Ct=null;if(Xe){Ct=[];let Bt=0,Yt=0;for(let tn=0;tn0?Ve.breakOffsets[tn-1]:0,Mn=Ve.breakOffsets[tn];for(;YtMn)break;if(mn0?Ve.wrappedTextIndentLength:0,pi=si+Math.max(Gn-mn,0),ai=si+Math.min(Zn-mn,Mn-mn);pi!==ai&&gn.push(new Un.or(pi,ai,ii.inlineClassName,ii.inlineClassNameAffectsLetterSpacing))}}if(Zn<=Mn)Bt+=Tn,Yt++;else break}}}let It;Xe?It=t.tokenization.getLineTokens(l).withInserted(Xe.map((Bt,Yt)=>({offset:Bt,text:gt[Yt].content,tokenMetadata:yr.f.defaultTokenMetadata}))):It=t.tokenization.getLineTokens(l);for(let Bt=y;Bt0?H.wrappedTextIndentLength:0,pe=y>0?H.breakOffsets[y-1]:0,ke=H.breakOffsets[y],Ve=t.sliceAndInflate(pe,ke,Z);let Xe=Ve.getLineContent();y>0&&(Xe=wr(H.wrappedTextIndentLength)+Xe);const gt=this._projectionData.getMinOutputOffset(y)+1,Ct=Xe.length+1,It=y+1=nr.length)for(let t=1;t<=Pt;t++)nr[t]=Ea(t);return nr[Pt]}function Ea(Pt){return new Array(Pt+1).join(" ")}var Zr=e("./node_modules/monaco-editor/esm/vs/editor/common/model/prefixSumComputer.js");class xa{constructor(t,l,y,H,Z,pe,ke,Ve,Xe,gt){this._editorId=t,this.model=l,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=y,this._monospaceLineBreaksComputerFactory=H,this.fontInfo=Z,this.tabSize=pe,this.wrappingStrategy=ke,this.wrappingColumn=Ve,this.wrappingIndent=Xe,this.wordBreak=gt,this._constructLines(!0,null)}dispose(){this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[])}createCoordinatesConverter(){return new Ss(this)}_constructLines(t,l){this.modelLineProjections=[],t&&(this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,[]));const y=this.model.getLinesContent(),H=this.model.getInjectedTextDecorations(this._editorId),Z=y.length,pe=this.createLineBreaksComputer(),ke=new s.j3(wo.uK.fromDecorations(H));for(let tn=0;tnmn.lineNumber===tn+1);pe.addRequest(y[tn],gn,l?l[tn]:null)}const Ve=pe.finalize(),Xe=[],gt=this.hiddenAreasDecorationIds.map(tn=>this.model.getDecorationRange(tn)).sort(ve.Q.compareRangesUsingStarts);let Ct=1,It=0,Bt=-1,Yt=Bt+1=Ct&&gn<=It,Mn=ys(Ve[tn],!mn);Xe[tn]=Mn.getViewLineCount(),this.modelLineProjections[tn]=Mn}this._validModelVersionId=this.model.getVersionId(),this.projectedModelLineLineCounts=new Zr.c2(Xe)}getHiddenAreas(){return this.hiddenAreasDecorationIds.map(t=>this.model.getDecorationRange(t))}setHiddenAreas(t){const l=t.map(It=>this.model.validateRange(It)),y=ns(l),H=this.hiddenAreasDecorationIds.map(It=>this.model.getDecorationRange(It)).sort(ve.Q.compareRangesUsingStarts);if(y.length===H.length){let It=!1;for(let Bt=0;Bt({range:It,options:lo.kI.EMPTY}));this.hiddenAreasDecorationIds=this.model.deltaDecorations(this.hiddenAreasDecorationIds,Z);const pe=y;let ke=1,Ve=0,Xe=-1,gt=Xe+1=ke&&Bt<=Ve?this.modelLineProjections[It].isVisible()&&(this.modelLineProjections[It]=this.modelLineProjections[It].setVisible(!1),Yt=!0):(Ct=!0,this.modelLineProjections[It].isVisible()||(this.modelLineProjections[It]=this.modelLineProjections[It].setVisible(!0),Yt=!0)),Yt){const tn=this.modelLineProjections[It].getViewLineCount();this.projectedModelLineLineCounts.setValue(It,tn)}}return Ct||this.setHiddenAreas([]),!0}modelPositionIsVisible(t,l){return t<1||t>this.modelLineProjections.length?!1:this.modelLineProjections[t-1].isVisible()}getModelLineViewLineCount(t){return t<1||t>this.modelLineProjections.length?1:this.modelLineProjections[t-1].getViewLineCount()}setTabSize(t){return this.tabSize===t?!1:(this.tabSize=t,this._constructLines(!1,null),!0)}setWrappingSettings(t,l,y,H,Z){const pe=this.fontInfo.equals(t),ke=this.wrappingStrategy===l,Ve=this.wrappingColumn===y,Xe=this.wrappingIndent===H,gt=this.wordBreak===Z;if(pe&&ke&&Ve&&Xe&>)return!1;const Ct=pe&&ke&&!Ve&&Xe&>this.fontInfo=t,this.wrappingStrategy=l,this.wrappingColumn=y,this.wrappingIndent=H,this.wordBreak=Z;let It=null;if(Ct){It=[];for(let Bt=0,Yt=this.modelLineProjections.length;Bt2&&!this.modelLineProjections[l-2].isVisible(),pe=l===1?1:this.projectedModelLineLineCounts.getPrefixSum(l-1)+1;let ke=0;const Ve=[],Xe=[];for(let gt=0,Ct=H.length;gtVe?(gt=this.projectedModelLineLineCounts.getPrefixSum(l-1)+1,Ct=gt+Ve-1,Yt=Ct+1,tn=Yt+(Z-Ve)-1,Xe=!0):Zl?l:t|0}getActiveIndentGuide(t,l,y){t=this._toValidViewLineNumber(t),l=this._toValidViewLineNumber(l),y=this._toValidViewLineNumber(y);const H=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),Z=this.convertViewPositionToModelPosition(l,this.getViewLineMinColumn(l)),pe=this.convertViewPositionToModelPosition(y,this.getViewLineMinColumn(y)),ke=this.model.guides.getActiveIndentGuide(H.lineNumber,Z.lineNumber,pe.lineNumber),Ve=this.convertModelPositionToViewPosition(ke.startLineNumber,1),Xe=this.convertModelPositionToViewPosition(ke.endLineNumber,this.model.getLineMaxColumn(ke.endLineNumber));return{startLineNumber:Ve.lineNumber,endLineNumber:Xe.lineNumber,indent:ke.indent}}getViewLineInfo(t){t=this._toValidViewLineNumber(t);const l=this.projectedModelLineLineCounts.getIndexOf(t-1),y=l.index,H=l.remainder;return new Xr(y+1,H)}getMinColumnOfViewLine(t){return this.modelLineProjections[t.modelLineNumber-1].getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getMaxColumnOfViewLine(t){return this.modelLineProjections[t.modelLineNumber-1].getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx)}getModelStartPositionOfViewLine(t){const l=this.modelLineProjections[t.modelLineNumber-1],y=l.getViewLineMinColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx),H=l.getModelColumnOfViewPosition(t.modelLineWrappedLineIdx,y);return new he.y(t.modelLineNumber,H)}getModelEndPositionOfViewLine(t){const l=this.modelLineProjections[t.modelLineNumber-1],y=l.getViewLineMaxColumn(this.model,t.modelLineNumber,t.modelLineWrappedLineIdx),H=l.getModelColumnOfViewPosition(t.modelLineWrappedLineIdx,y);return new he.y(t.modelLineNumber,H)}getViewLineInfosGroupedByModelRanges(t,l){const y=this.getViewLineInfo(t),H=this.getViewLineInfo(l),Z=new Array;let pe=this.getModelStartPositionOfViewLine(y),ke=new Array;for(let Ve=y.modelLineNumber;Ve<=H.modelLineNumber;Ve++){const Xe=this.modelLineProjections[Ve-1];if(Xe.isVisible()){const gt=Ve===y.modelLineNumber?y.modelLineWrappedLineIdx:0,Ct=Ve===H.modelLineNumber?H.modelLineWrappedLineIdx+1:Xe.getViewLineCount();for(let It=gt;It{if(Bt.forWrappedLinesAfterColumn!==-1&&this.modelLineProjections[gt.modelLineNumber-1].getViewPositionOfModelPosition(0,Bt.forWrappedLinesAfterColumn).lineNumber>=gt.modelLineWrappedLineIdx||Bt.forWrappedLinesBeforeOrAtColumn!==-1&&this.modelLineProjections[gt.modelLineNumber-1].getViewPositionOfModelPosition(0,Bt.forWrappedLinesBeforeOrAtColumn).lineNumbergt.modelLineWrappedLineIdx)return}const tn=this.convertModelPositionToViewPosition(gt.modelLineNumber,Bt.horizontalLine.endColumn),gn=this.modelLineProjections[gt.modelLineNumber-1].getViewPositionOfModelPosition(0,Bt.horizontalLine.endColumn);return gn.lineNumber===gt.modelLineWrappedLineIdx?new ei.TH(Bt.visibleColumn,Yt,Bt.className,new ei.pv(Bt.horizontalLine.top,tn.column),-1,-1):gn.lineNumber!!Bt))}}return pe}getViewLinesIndentGuides(t,l){t=this._toValidViewLineNumber(t),l=this._toValidViewLineNumber(l);const y=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),H=this.convertViewPositionToModelPosition(l,this.getViewLineMaxColumn(l));let Z=[];const pe=[],ke=[],Ve=y.lineNumber-1,Xe=H.lineNumber-1;let gt=null;for(let Yt=Ve;Yt<=Xe;Yt++){const tn=this.modelLineProjections[Yt];if(tn.isVisible()){const gn=tn.getViewLineNumberOfModelPosition(0,Yt===Ve?y.column:1),mn=tn.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(Yt+1)),Mn=mn-gn+1;let Tn=0;Mn>1&&tn.getViewLineMinColumn(this.model,Yt+1,mn)===1&&(Tn=gn===0?1:2),pe.push(Mn),ke.push(Tn),gt===null&&(gt=new he.y(Yt+1,0))}else gt!==null&&(Z=Z.concat(this.model.guides.getLinesIndentGuides(gt.lineNumber,Yt)),gt=null)}gt!==null&&(Z=Z.concat(this.model.guides.getLinesIndentGuides(gt.lineNumber,H.lineNumber)),gt=null);const Ct=l-t+1,It=new Array(Ct);let Bt=0;for(let Yt=0,tn=Z.length;Ytl&&(Yt=!0,Bt=l-Z+1),Ct.getViewLinesData(this.model,Xe+1,It,Bt,Z-t,y,Ve),Z+=Bt,Yt)break}return Ve}validateViewPosition(t,l,y){t=this._toValidViewLineNumber(t);const H=this.projectedModelLineLineCounts.getIndexOf(t-1),Z=H.index,pe=H.remainder,ke=this.modelLineProjections[Z],Ve=ke.getViewLineMinColumn(this.model,Z+1,pe),Xe=ke.getViewLineMaxColumn(this.model,Z+1,pe);lXe&&(l=Xe);const gt=ke.getModelColumnOfViewPosition(pe,l);return this.model.validatePosition(new he.y(Z+1,gt)).equals(y)?new he.y(t,l):this.convertModelPositionToViewPosition(y.lineNumber,y.column)}validateViewRange(t,l){const y=this.validateViewPosition(t.startLineNumber,t.startColumn,l.getStartPosition()),H=this.validateViewPosition(t.endLineNumber,t.endColumn,l.getEndPosition());return new ve.Q(y.lineNumber,y.column,H.lineNumber,H.column)}convertViewPositionToModelPosition(t,l){const y=this.getViewLineInfo(t),H=this.modelLineProjections[y.modelLineNumber-1].getModelColumnOfViewPosition(y.modelLineWrappedLineIdx,l);return this.model.validatePosition(new he.y(y.modelLineNumber,H))}convertViewRangeToModelRange(t){const l=this.convertViewPositionToModelPosition(t.startLineNumber,t.startColumn),y=this.convertViewPositionToModelPosition(t.endLineNumber,t.endColumn);return new ve.Q(l.lineNumber,l.column,y.lineNumber,y.column)}convertModelPositionToViewPosition(t,l,y=2,H=!1,Z=!1){const pe=this.model.validatePosition(new he.y(t,l)),ke=pe.lineNumber,Ve=pe.column;let Xe=ke-1,gt=!1;if(Z)for(;Xe0&&!this.modelLineProjections[Xe].isVisible();)Xe--,gt=!0;if(Xe===0&&!this.modelLineProjections[Xe].isVisible())return new he.y(H?0:1,1);const Ct=1+this.projectedModelLineLineCounts.getPrefixSum(Xe);let It;return gt?Z?It=this.modelLineProjections[Xe].getViewPositionOfModelPosition(Ct,1,y):It=this.modelLineProjections[Xe].getViewPositionOfModelPosition(Ct,this.model.getLineMaxColumn(Xe+1),y):It=this.modelLineProjections[ke-1].getViewPositionOfModelPosition(Ct,Ve,y),It}convertModelRangeToViewRange(t,l=0){if(t.isEmpty()){const y=this.convertModelPositionToViewPosition(t.startLineNumber,t.startColumn,l);return ve.Q.fromPositions(y)}else{const y=this.convertModelPositionToViewPosition(t.startLineNumber,t.startColumn,1),H=this.convertModelPositionToViewPosition(t.endLineNumber,t.endColumn,0);return new ve.Q(y.lineNumber,y.column,H.lineNumber,H.column)}}getViewLineNumberOfModelPosition(t,l){let y=t-1;if(this.modelLineProjections[y].isVisible()){const Z=1+this.projectedModelLineLineCounts.getPrefixSum(y);return this.modelLineProjections[y].getViewLineNumberOfModelPosition(Z,l)}for(;y>0&&!this.modelLineProjections[y].isVisible();)y--;if(y===0&&!this.modelLineProjections[y].isVisible())return 1;const H=1+this.projectedModelLineLineCounts.getPrefixSum(y);return this.modelLineProjections[y].getViewLineNumberOfModelPosition(H,this.model.getLineMaxColumn(y+1))}getDecorationsInRange(t,l,y,H,Z){const pe=this.convertViewPositionToModelPosition(t.startLineNumber,t.startColumn),ke=this.convertViewPositionToModelPosition(t.endLineNumber,t.endColumn);if(ke.lineNumber-pe.lineNumber<=t.endLineNumber-t.startLineNumber)return this.model.getDecorationsInRange(new ve.Q(pe.lineNumber,1,ke.lineNumber,ke.column),l,y,H,Z);let Ve=[];const Xe=pe.lineNumber-1,gt=ke.lineNumber-1;let Ct=null;for(let tn=Xe;tn<=gt;tn++)if(this.modelLineProjections[tn].isVisible())Ct===null&&(Ct=new he.y(tn+1,tn===Xe?pe.column:1));else if(Ct!==null){const mn=this.model.getLineMaxColumn(tn);Ve=Ve.concat(this.model.getDecorationsInRange(new ve.Q(Ct.lineNumber,Ct.column,tn,mn),l,y,H)),Ct=null}Ct!==null&&(Ve=Ve.concat(this.model.getDecorationsInRange(new ve.Q(Ct.lineNumber,Ct.column,ke.lineNumber,ke.column),l,y,H)),Ct=null),Ve.sort((tn,gn)=>{const mn=ve.Q.compareRangesUsingStarts(tn.range,gn.range);return mn===0?tn.idgn.id?1:0:mn});const It=[];let Bt=0,Yt=null;for(const tn of Ve){const gn=tn.id;Yt!==gn&&(Yt=gn,It[Bt++]=tn)}return It}getInjectedTextAt(t){const l=this.getViewLineInfo(t.lineNumber);return this.modelLineProjections[l.modelLineNumber-1].getInjectedTextAt(l.modelLineWrappedLineIdx,t.column)}normalizePosition(t,l){const y=this.getViewLineInfo(t.lineNumber);return this.modelLineProjections[y.modelLineNumber-1].normalizePosition(y.modelLineWrappedLineIdx,t,l)}getLineIndentColumn(t){const l=this.getViewLineInfo(t);return l.modelLineWrappedLineIdx===0?this.model.getLineIndentColumn(l.modelLineNumber):0}}function ns(Pt){if(Pt.length===0)return[];const t=Pt.slice();t.sort(ve.Q.compareRangesUsingStarts);const l=[];let y=t[0].startLineNumber,H=t[0].endLineNumber;for(let Z=1,pe=t.length;ZH+1?(l.push(new ve.Q(y,1,H,1)),y=ke.startLineNumber,H=ke.endLineNumber):ke.endLineNumber>H&&(H=ke.endLineNumber)}return l.push(new ve.Q(y,1,H,1)),l}class Xr{constructor(t,l){this.modelLineNumber=t,this.modelLineWrappedLineIdx=l}}class Jr{constructor(t,l){this.modelRange=t,this.viewLines=l}}class Ss{constructor(t){this._lines=t}convertViewPositionToModelPosition(t){return this._lines.convertViewPositionToModelPosition(t.lineNumber,t.column)}convertViewRangeToModelRange(t){return this._lines.convertViewRangeToModelRange(t)}validateViewPosition(t,l){return this._lines.validateViewPosition(t.lineNumber,t.column,l)}validateViewRange(t,l){return this._lines.validateViewRange(t,l)}convertModelPositionToViewPosition(t,l,y,H){return this._lines.convertModelPositionToViewPosition(t.lineNumber,t.column,l,y,H)}convertModelRangeToViewRange(t,l){return this._lines.convertModelRangeToViewRange(t,l)}modelPositionIsVisible(t){return this._lines.modelPositionIsVisible(t.lineNumber,t.column)}getModelLineViewLineCount(t){return this._lines.getModelLineViewLineCount(t)}getViewLineNumberOfModelPosition(t,l){return this._lines.getViewLineNumberOfModelPosition(t,l)}}class Dr{constructor(t){this.model=t}dispose(){}createCoordinatesConverter(){return new Lr(this)}getHiddenAreas(){return[]}setHiddenAreas(t){return!1}setTabSize(t){return!1}setWrappingSettings(t,l,y,H){return!1}createLineBreaksComputer(){const t=[];return{addRequest:(l,y,H)=>{t.push(null)},finalize:()=>t}}onModelFlushed(){}onModelLinesDeleted(t,l,y){return new ps(l,y)}onModelLinesInserted(t,l,y,H){return new wi(l,y)}onModelLineChanged(t,l,y){return[!1,new pr(l,1),null,null]}acceptVersionId(t){}getViewLineCount(){return this.model.getLineCount()}getActiveIndentGuide(t,l,y){return{startLineNumber:t,endLineNumber:t,indent:0}}getViewLinesBracketGuides(t,l,y){return new Array(l-t+1).fill([])}getViewLinesIndentGuides(t,l){const y=l-t+1,H=new Array(y);for(let Z=0;Zl)}getModelLineViewLineCount(t){return 1}getViewLineNumberOfModelPosition(t,l){return t}}const Fo=Ae.ZS.Right;class qr{constructor(t){this.persist=0,this._requiredLanes=1,this.lanes=new Uint8Array(Math.ceil((t+1)*Fo/8))}reset(t){const l=Math.ceil((t+1)*Fo/8);this.lanes.length>>3]|=1<>>3]&1<>>3]&1<this._updateConfigurationViewLineCountNow(),0)),this._hasFocus=!1,this._viewportStart=ws.create(this.model),this.glyphLanes=new qr(0),ir&&this.model.isTooLargeForTokenization())this._lines=new Dr(this.model);else{const gt=this._configuration.options,Ct=gt.get(50),It=gt.get(139),Bt=gt.get(146),Yt=gt.get(138),tn=gt.get(129);this._lines=new xa(this._editorId,this.model,H,Z,Ct,this.model.getOptions().tabSize,It,Bt.wrappingColumn,Yt,tn)}this.coordinatesConverter=this._lines.createCoordinatesConverter(),this._cursor=this._register(new js(y,this,this.coordinatesConverter,this.cursorConfig)),this.viewLayout=this._register(new zo(this._configuration,this.getLineCount(),pe)),this._register(this.viewLayout.onDidScroll(gt=>{gt.scrollTopChanged&&this._handleVisibleLinesChanged(),gt.scrollTopChanged&&this._viewportStart.invalidate(),this._eventDispatcher.emitSingleViewEvent(new eo(gt)),this._eventDispatcher.emitOutgoingEvent(new vs(gt.oldScrollWidth,gt.oldScrollLeft,gt.oldScrollHeight,gt.oldScrollTop,gt.scrollWidth,gt.scrollLeft,gt.scrollHeight,gt.scrollTop))})),this._register(this.viewLayout.onDidContentSizeChange(gt=>{this._eventDispatcher.emitOutgoingEvent(gt)})),this._decorations=new Cr.UB(this._editorId,this.model,this._configuration,this._lines,this.coordinatesConverter),this._registerModelEvents(),this._register(this._configuration.onDidChangeFast(gt=>{try{const Ct=this._eventDispatcher.beginEmitViewEvents();this._onConfigurationChanged(Ct,gt)}finally{this._eventDispatcher.endEmitViewEvents()}})),this._register(Jn.getInstance().onDidChange(()=>{this._eventDispatcher.emitSingleViewEvent(new jo)})),this._register(this._themeService.onDidColorThemeChange(gt=>{this._invalidateDecorationsColorCache(),this._eventDispatcher.emitSingleViewEvent(new oo(gt))})),this._updateConfigurationViewLineCountNow()}dispose(){super.dispose(),this._decorations.dispose(),this._lines.dispose(),this._viewportStart.dispose(),this._eventDispatcher.dispose()}createLineBreaksComputer(){return this._lines.createLineBreaksComputer()}addViewEventHandler(t){this._eventDispatcher.addViewEventHandler(t)}removeViewEventHandler(t){this._eventDispatcher.removeViewEventHandler(t)}_updateConfigurationViewLineCountNow(){this._configuration.setViewLineCount(this._lines.getViewLineCount())}getModelVisibleRanges(){const t=this.viewLayout.getLinesViewportData(),l=new ve.Q(t.startLineNumber,this.getLineMinColumn(t.startLineNumber),t.endLineNumber,this.getLineMaxColumn(t.endLineNumber));return this._toModelVisibleRanges(l)}visibleLinesStabilized(){const t=this.getModelVisibleRanges();this._attachedView.setVisibleLines(t,!0)}_handleVisibleLinesChanged(){const t=this.getModelVisibleRanges();this._attachedView.setVisibleLines(t,!1)}setHasFocus(t){this._hasFocus=t,this._cursor.setHasFocus(t),this._eventDispatcher.emitSingleViewEvent(new fs(t)),this._eventDispatcher.emitOutgoingEvent(new Js(!t,t))}onCompositionStart(){this._eventDispatcher.emitSingleViewEvent(new mr)}onCompositionEnd(){this._eventDispatcher.emitSingleViewEvent(new ts)}_captureStableViewport(){if(this._viewportStart.isValid&&this.viewLayout.getCurrentScrollTop()>0){const t=new he.y(this._viewportStart.viewLineNumber,this.getLineMinColumn(this._viewportStart.viewLineNumber)),l=this.coordinatesConverter.convertViewPositionToModelPosition(t);return new Do(l,this._viewportStart.startLineDelta)}return new Do(null,0)}_onConfigurationChanged(t,l){const y=this._captureStableViewport(),H=this._configuration.options,Z=H.get(50),pe=H.get(139),ke=H.get(146),Ve=H.get(138),Xe=H.get(129);this._lines.setWrappingSettings(Z,pe,ke.wrappingColumn,Ve,Xe)&&(t.emitViewEvent(new Wo),t.emitViewEvent(new Zo),t.emitViewEvent(new No(null)),this._cursor.onLineMappingChanged(t),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this._updateConfigurationViewLineCount.schedule()),l.hasChanged(91)&&(this._decorations.reset(),t.emitViewEvent(new No(null))),l.hasChanged(98)&&(this._decorations.reset(),t.emitViewEvent(new No(null))),t.emitViewEvent(new gr(l)),this.viewLayout.onConfigurationChanged(l),y.recoverViewportStart(this.coordinatesConverter,this.viewLayout),qi.d$.shouldRecreate(l)&&(this.cursorConfig=new qi.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig))}_registerModelEvents(){this._register(this.model.onDidChangeContentOrInjectedText(t=>{try{const y=this._eventDispatcher.beginEmitViewEvents();let H=!1,Z=!1;const pe=t instanceof wo.Ic?t.rawContentChangedEvent.changes:t.changes,ke=t instanceof wo.Ic?t.rawContentChangedEvent.versionId:null,Ve=this._lines.createLineBreaksComputer();for(const Ct of pe)switch(Ct.changeType){case 4:{for(let It=0;It!tn.ownerId||tn.ownerId===this._editorId)),Ve.addRequest(Bt,Yt,null)}break}case 2:{let It=null;Ct.injectedText&&(It=Ct.injectedText.filter(Bt=>!Bt.ownerId||Bt.ownerId===this._editorId)),Ve.addRequest(Ct.detail,It,null);break}}const Xe=Ve.finalize(),gt=new s.j3(Xe);for(const Ct of pe)switch(Ct.changeType){case 1:{this._lines.onModelFlushed(),y.emitViewEvent(new Wo),this._decorations.reset(),this.viewLayout.onFlushed(this.getLineCount()),H=!0;break}case 3:{const It=this._lines.onModelLinesDeleted(ke,Ct.fromLineNumber,Ct.toLineNumber);It!==null&&(y.emitViewEvent(It),this.viewLayout.onLinesDeleted(It.fromLineNumber,It.toLineNumber)),H=!0;break}case 4:{const It=gt.takeCount(Ct.detail.length),Bt=this._lines.onModelLinesInserted(ke,Ct.fromLineNumber,Ct.toLineNumber,It);Bt!==null&&(y.emitViewEvent(Bt),this.viewLayout.onLinesInserted(Bt.fromLineNumber,Bt.toLineNumber)),H=!0;break}case 2:{const It=gt.dequeue(),[Bt,Yt,tn,gn]=this._lines.onModelLineChanged(ke,Ct.lineNumber,It);Z=Bt,Yt&&y.emitViewEvent(Yt),tn&&(y.emitViewEvent(tn),this.viewLayout.onLinesInserted(tn.fromLineNumber,tn.toLineNumber)),gn&&(y.emitViewEvent(gn),this.viewLayout.onLinesDeleted(gn.fromLineNumber,gn.toLineNumber));break}case 5:break}ke!==null&&this._lines.acceptVersionId(ke),this.viewLayout.onHeightMaybeChanged(),!H&&Z&&(y.emitViewEvent(new Zo),y.emitViewEvent(new No(null)),this._cursor.onLineMappingChanged(y),this._decorations.onLineMappingChanged())}finally{this._eventDispatcher.endEmitViewEvents()}const l=this._viewportStart.isValid;if(this._viewportStart.invalidate(),this._configuration.setModelLineCount(this.model.getLineCount()),this._updateConfigurationViewLineCountNow(),!this._hasFocus&&this.model.getAttachedEditorCount()>=2&&l){const y=this.model._getTrackedRange(this._viewportStart.modelTrackedRange);if(y){const H=this.coordinatesConverter.convertModelPositionToViewPosition(y.getStartPosition()),Z=this.viewLayout.getVerticalOffsetForLineNumber(H.lineNumber);this.viewLayout.setScrollPosition({scrollTop:Z+this._viewportStart.startLineDelta},1)}}try{const y=this._eventDispatcher.beginEmitViewEvents();t instanceof wo.Ic&&y.emitOutgoingEvent(new er(t.contentChangedEvent)),this._cursor.onModelContentChanged(y,t)}finally{this._eventDispatcher.endEmitViewEvents()}this._handleVisibleLinesChanged()})),this._register(this.model.onDidChangeTokens(t=>{const l=[];for(let y=0,H=t.ranges.length;y{this._eventDispatcher.emitSingleViewEvent(new fr),this.cursorConfig=new qi.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Da(t))})),this._register(this.model.onDidChangeLanguage(t=>{this.cursorConfig=new qi.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Kr(t))})),this._register(this.model.onDidChangeOptions(t=>{if(this._lines.setTabSize(this.model.getOptions().tabSize)){try{const l=this._eventDispatcher.beginEmitViewEvents();l.emitViewEvent(new Wo),l.emitViewEvent(new Zo),l.emitViewEvent(new No(null)),this._cursor.onLineMappingChanged(l),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount())}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule()}this.cursorConfig=new qi.d$(this.model.getLanguageId(),this.model.getOptions(),this._configuration,this.languageConfigurationService),this._cursor.updateConfiguration(this.cursorConfig),this._eventDispatcher.emitOutgoingEvent(new Gr(t))})),this._register(this.model.onDidChangeDecorations(t=>{this._decorations.onModelDecorationsChanged(),this._eventDispatcher.emitSingleViewEvent(new No(t)),this._eventDispatcher.emitOutgoingEvent(new wa(t))}))}setHiddenAreas(t,l){var y;this.hiddenAreasModel.setHiddenAreas(l,t);const H=this.hiddenAreasModel.getMergedRanges();if(H===this.previousHiddenAreas)return;this.previousHiddenAreas=H;const Z=this._captureStableViewport();let pe=!1;try{const ke=this._eventDispatcher.beginEmitViewEvents();pe=this._lines.setHiddenAreas(H),pe&&(ke.emitViewEvent(new Wo),ke.emitViewEvent(new Zo),ke.emitViewEvent(new No(null)),this._cursor.onLineMappingChanged(ke),this._decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),this.viewLayout.onHeightMaybeChanged());const Ve=(y=Z.viewportStartModelPosition)===null||y===void 0?void 0:y.lineNumber;Ve&&H.some(gt=>gt.startLineNumber<=Ve&&Ve<=gt.endLineNumber)||Z.recoverViewportStart(this.coordinatesConverter,this.viewLayout)}finally{this._eventDispatcher.endEmitViewEvents()}this._updateConfigurationViewLineCount.schedule(),pe&&this._eventDispatcher.emitOutgoingEvent(new ya)}getVisibleRangesPlusViewportAboveBelow(){const t=this._configuration.options.get(145),l=this._configuration.options.get(67),y=Math.max(20,Math.round(t.height/l)),H=this.viewLayout.getLinesViewportData(),Z=Math.max(1,H.completelyVisibleStartLineNumber-y),pe=Math.min(this.getLineCount(),H.completelyVisibleEndLineNumber+y);return this._toModelVisibleRanges(new ve.Q(Z,this.getLineMinColumn(Z),pe,this.getLineMaxColumn(pe)))}getVisibleRanges(){const t=this.getCompletelyVisibleViewRange();return this._toModelVisibleRanges(t)}getHiddenAreas(){return this._lines.getHiddenAreas()}_toModelVisibleRanges(t){const l=this.coordinatesConverter.convertViewRangeToModelRange(t),y=this._lines.getHiddenAreas();if(y.length===0)return[l];const H=[];let Z=0,pe=l.startLineNumber,ke=l.startColumn;const Ve=l.endLineNumber,Xe=l.endColumn;for(let gt=0,Ct=y.length;gtVe||(pe"u")return this._reduceRestoreStateCompatibility(t);const l=this.model.validatePosition(t.firstPosition),y=this.coordinatesConverter.convertModelPositionToViewPosition(l),H=this.viewLayout.getVerticalOffsetForLineNumber(y.lineNumber)-t.firstPositionDeltaTop;return{scrollLeft:t.scrollLeft,scrollTop:H}}_reduceRestoreStateCompatibility(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTopWithoutViewZones}}getTabSize(){return this.model.getOptions().tabSize}getLineCount(){return this._lines.getViewLineCount()}setViewport(t,l,y){this._viewportStart.update(this,t)}getActiveIndentGuide(t,l,y){return this._lines.getActiveIndentGuide(t,l,y)}getLinesIndentGuides(t,l){return this._lines.getViewLinesIndentGuides(t,l)}getBracketGuidesInRangeByLine(t,l,y,H){return this._lines.getViewLinesBracketGuides(t,l,y,H)}getLineContent(t){return this._lines.getViewLineContent(t)}getLineLength(t){return this._lines.getViewLineLength(t)}getLineMinColumn(t){return this._lines.getViewLineMinColumn(t)}getLineMaxColumn(t){return this._lines.getViewLineMaxColumn(t)}getLineFirstNonWhitespaceColumn(t){const l=xt.HG(this.getLineContent(t));return l===-1?0:l+1}getLineLastNonWhitespaceColumn(t){const l=xt.lT(this.getLineContent(t));return l===-1?0:l+2}getMinimapDecorationsInRange(t){return this._decorations.getMinimapDecorationsInRange(t)}getDecorationsInViewport(t){return this._decorations.getDecorationsViewportData(t).decorations}getInjectedTextAt(t){return this._lines.getInjectedTextAt(t)}getViewportViewLineRenderingData(t,l){const H=this._decorations.getDecorationsViewportData(t).inlineDecorations[l-t.startLineNumber];return this._getViewLineRenderingData(l,H)}getViewLineRenderingData(t){const l=this._decorations.getInlineDecorationsOnLine(t);return this._getViewLineRenderingData(t,l)}_getViewLineRenderingData(t,l){const y=this.model.mightContainRTL(),H=this.model.mightContainNonBasicASCII(),Z=this.getTabSize(),pe=this._lines.getViewLineData(t);return pe.inlineDecorations&&(l=[...l,...pe.inlineDecorations.map(ke=>ke.toInlineDecoration(t))]),new Un.qL(pe.minColumn,pe.maxColumn,pe.content,pe.continuesWithWrappedLine,y,H,pe.tokens,l,Z,pe.startVisibleColumn)}getViewLineData(t){return this._lines.getViewLineData(t)}getMinimapLinesRenderingData(t,l,y){const H=this._lines.getViewLinesData(t,l,y);return new Un.nt(this.getTabSize(),H)}getAllOverviewRulerDecorations(t){const l=this.model.getOverviewRulerDecorations(this._editorId,(0,O.$C)(this._configuration.options)),y=new xr;for(const H of l){const Z=H.options,pe=Z.overviewRuler;if(!pe)continue;const ke=pe.position;if(ke===0)continue;const Ve=pe.getColor(t.value),Xe=this.coordinatesConverter.getViewLineNumberOfModelPosition(H.range.startLineNumber,H.range.startColumn),gt=this.coordinatesConverter.getViewLineNumberOfModelPosition(H.range.endLineNumber,H.range.endColumn);y.accept(Ve,Z.zIndex,Xe,gt,ke)}return y.asArray}_invalidateDecorationsColorCache(){const t=this.model.getOverviewRulerDecorations();for(const l of t){const y=l.options.overviewRuler;y?.invalidateCachedColor();const H=l.options.minimap;H?.invalidateCachedColor()}}getValueInRange(t,l){const y=this.coordinatesConverter.convertViewRangeToModelRange(t);return this.model.getValueInRange(y,l)}getValueLengthInRange(t,l){const y=this.coordinatesConverter.convertViewRangeToModelRange(t);return this.model.getValueLengthInRange(y,l)}modifyPosition(t,l){const y=this.coordinatesConverter.convertViewPositionToModelPosition(t),H=this.model.modifyPosition(y,l);return this.coordinatesConverter.convertModelPositionToViewPosition(H)}deduceModelPositionRelativeToViewPosition(t,l,y){const H=this.coordinatesConverter.convertViewPositionToModelPosition(t);this.model.getEOL().length===2&&(l<0?l-=y:l+=y);const pe=this.model.getOffsetAt(H)+l;return this.model.getPositionAt(pe)}getPlainTextToCopy(t,l,y){const H=y?`\r `:this.model.getEOL();t=t.slice(0),t.sort(ve.Q.compareRangesUsingStarts);let Z=!1,pe=!1;for(const Ve of t)Ve.isEmpty()?Z=!0:pe=!0;if(!pe){if(!l)return"";const Ve=t.map(gt=>gt.startLineNumber);let Xe="";for(let gt=0;gt0&&Ve[gt-1]===Ve[gt]||(Xe+=this.model.getLineContent(Ve[gt])+H);return Xe}if(Z&&l){const Ve=[];let Xe=0;for(const gt of t){const Ct=gt.startLineNumber;gt.isEmpty()?Ct!==Xe&&Ve.push(this.model.getLineContent(Ct)):Ve.push(this.model.getValueInRange(gt,y?2:0)),Xe=Ct}return Ve.length===1?Ve[0]:Ve}const ke=[];for(const Ve of t)Ve.isEmpty()||ke.push(this.model.getValueInRange(Ve,y?2:0));return ke.length===1?ke[0]:ke}getRichTextToCopy(t,l){const y=this.model.getLanguageId();if(y===Qr.vH||t.length!==1)return null;let H=t[0];if(H.isEmpty()){if(!l)return null;const gt=H.startLineNumber;H=new ve.Q(gt,this.model.getLineMinColumn(gt),gt,this.model.getLineMaxColumn(gt))}const Z=this._configuration.options.get(50),pe=this._getColorMap(),Ve=/[:;\\\/<>]/.test(Z.fontFamily)||Z.fontFamily===O.jU.fontFamily;let Xe;return Ve?Xe=O.jU.fontFamily:(Xe=Z.fontFamily,Xe=Xe.replace(/"/g,"'"),/[,']/.test(Xe)||/[+ ]/.test(Xe)&&(Xe=`'${Xe}'`),Xe=`${Xe}, ${O.jU.fontFamily}`),{mode:y,html:`
    `+this._getHTMLToCopy(H,pe)+"
    "}}_getHTMLToCopy(t,l){const y=t.startLineNumber,H=t.startColumn,Z=t.endLineNumber,pe=t.endColumn,ke=this.getTabSize();let Ve="";for(let Xe=y;Xe<=Z;Xe++){const gt=this.model.tokenization.getLineTokens(Xe),Ct=gt.getLineContent(),It=Xe===y?H-1:0,Bt=Xe===Z?pe-1:Ct.length;Ct===""?Ve+="
    ":Ve+=(0,vr.s0)(Ct,gt.inflate(),l,It,Bt,ke,i.uF)}return Ve}_getColorMap(){const t=Hn.dG.getColorMap(),l=["#000000"];if(t)for(let y=1,H=t.length;ythis._cursor.setStates(H,t,l,y))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(t){this._cursor.setCursorColumnSelectData(t)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(t){this._cursor.setPrevEditOperationType(t)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(t,l,y=0){this._withViewEventsCollector(H=>this._cursor.setSelections(H,t,l,y))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(t){this._withViewEventsCollector(l=>this._cursor.restoreState(l,t))}_executeCursorEdit(t){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new Sa);return}this._withViewEventsCollector(t)}executeEdits(t,l,y){this._executeCursorEdit(H=>this._cursor.executeEdits(H,t,l,y))}startComposition(){this._executeCursorEdit(t=>this._cursor.startComposition(t))}endComposition(t){this._executeCursorEdit(l=>this._cursor.endComposition(l,t))}type(t,l){this._executeCursorEdit(y=>this._cursor.type(y,t,l))}compositionType(t,l,y,H,Z){this._executeCursorEdit(pe=>this._cursor.compositionType(pe,t,l,y,H,Z))}paste(t,l,y,H){this._executeCursorEdit(Z=>this._cursor.paste(Z,t,l,y,H))}cut(t){this._executeCursorEdit(l=>this._cursor.cut(l,t))}executeCommand(t,l){this._executeCursorEdit(y=>this._cursor.executeCommand(y,t,l))}executeCommands(t,l){this._executeCursorEdit(y=>this._cursor.executeCommands(y,t,l))}revealAllCursors(t,l,y=!1){this._withViewEventsCollector(H=>this._cursor.revealAll(H,t,y,0,l,0))}revealPrimaryCursor(t,l,y=!1){this._withViewEventsCollector(H=>this._cursor.revealPrimary(H,t,y,0,l,0))}revealTopMostCursor(t){const l=this._cursor.getTopMostViewPosition(),y=new ve.Q(l.lineNumber,l.column,l.lineNumber,l.column);this._withViewEventsCollector(H=>H.emitViewEvent(new Pi(t,!1,y,null,0,!0,0)))}revealBottomMostCursor(t){const l=this._cursor.getBottomMostViewPosition(),y=new ve.Q(l.lineNumber,l.column,l.lineNumber,l.column);this._withViewEventsCollector(H=>H.emitViewEvent(new Pi(t,!1,y,null,0,!0,0)))}revealRange(t,l,y,H,Z){this._withViewEventsCollector(pe=>pe.emitViewEvent(new Pi(t,!1,y,null,H,l,Z)))}changeWhitespace(t){this.viewLayout.changeWhitespace(t)&&(this._eventDispatcher.emitSingleViewEvent(new fo),this._eventDispatcher.emitOutgoingEvent(new Ca))}_withViewEventsCollector(t){try{const l=this._eventDispatcher.beginEmitViewEvents();return t(l)}finally{this._eventDispatcher.endEmitViewEvents()}}normalizePosition(t,l){return this._lines.normalizePosition(t,l)}getLineIndentColumn(t){return this._lines.getLineIndentColumn(t)}}class ws{static create(t){const l=t._setTrackedRange(null,new ve.Q(1,1,1,1),1);return new ws(t,1,!1,l,0)}get viewLineNumber(){return this._viewLineNumber}get isValid(){return this._isValid}get modelTrackedRange(){return this._modelTrackedRange}get startLineDelta(){return this._startLineDelta}constructor(t,l,y,H,Z){this._model=t,this._viewLineNumber=l,this._isValid=y,this._modelTrackedRange=H,this._startLineDelta=Z}dispose(){this._model._setTrackedRange(this._modelTrackedRange,null,1)}update(t,l){const y=t.coordinatesConverter.convertViewPositionToModelPosition(new he.y(l,t.getLineMinColumn(l))),H=t.model._setTrackedRange(this._modelTrackedRange,new ve.Q(y.lineNumber,y.column,y.lineNumber,y.column),1),Z=t.viewLayout.getVerticalOffsetForLineNumber(l),pe=t.viewLayout.getCurrentScrollTop();this._viewLineNumber=l,this._isValid=!0,this._modelTrackedRange=H,this._startLineDelta=pe-Z}invalidate(){this._isValid=!1}}class xr{constructor(){this._asMap=Object.create(null),this.asArray=[]}accept(t,l,y,H,Z){const pe=this._asMap[t];if(pe){const ke=pe.data,Ve=ke[ke.length-3],Xe=ke[ke.length-1];if(Ve===Z&&Xe+1>=y){H>Xe&&(ke[ke.length-1]=H);return}ke.push(Z,y,H)}else{const ke=new Un.Uv(t,l,[Z,y,H]);this._asMap[t]=ke,this.asArray.push(ke)}}}class kr{constructor(){this.hiddenAreas=new Map,this.shouldRecompute=!1,this.ranges=[]}setHiddenAreas(t,l){const y=this.hiddenAreas.get(t);y&&ea(y,l)||(this.hiddenAreas.set(t,l),this.shouldRecompute=!0)}getMergedRanges(){if(!this.shouldRecompute)return this.ranges;this.shouldRecompute=!1;const t=Array.from(this.hiddenAreas.values()).reduce((l,y)=>Ir(l,y),[]);return ea(this.ranges,t)?this.ranges:(this.ranges=t,this.ranges)}}function Ir(Pt,t){const l=[];let y=0,H=0;for(;y=0;ke--)(pe=Pt[ke])&&(Z=(H<3?pe(Z):H>3?pe(t,l,Z):pe(t,l))||Z);return H>3&&Z&&Object.defineProperty(t,l,Z),Z},qo=function(Pt,t){return function(l,y){t(l,y,Pt)}},ds;let or=ds=class extends S.jG{get isSimpleWidget(){return this._configuration.isSimpleWidget}constructor(t,l,y,H,Z,pe,ke,Ve,Xe,gt,Ct,It){var Bt;super(),this.languageConfigurationService=Ct,this._deliveryQueue=(0,I.Qy)(),this._contributions=this._register(new Gs),this._onDidDispose=this._register(new I.vl),this.onDidDispose=this._onDidDispose.event,this._onDidChangeModelContent=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelContent=this._onDidChangeModelContent.event,this._onDidChangeModelLanguage=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguage=this._onDidChangeModelLanguage.event,this._onDidChangeModelLanguageConfiguration=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelLanguageConfiguration=this._onDidChangeModelLanguageConfiguration.event,this._onDidChangeModelOptions=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelOptions=this._onDidChangeModelOptions.event,this._onDidChangeModelDecorations=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelDecorations=this._onDidChangeModelDecorations.event,this._onDidChangeModelTokens=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModelTokens=this._onDidChangeModelTokens.event,this._onDidChangeConfiguration=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeConfiguration=this._onDidChangeConfiguration.event,this._onWillChangeModel=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onWillChangeModel=this._onWillChangeModel.event,this._onDidChangeModel=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeModel=this._onDidChangeModel.event,this._onDidChangeCursorPosition=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorPosition=this._onDidChangeCursorPosition.event,this._onDidChangeCursorSelection=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeCursorSelection=this._onDidChangeCursorSelection.event,this._onDidAttemptReadOnlyEdit=this._register(new po(this._contributions,this._deliveryQueue)),this.onDidAttemptReadOnlyEdit=this._onDidAttemptReadOnlyEdit.event,this._onDidLayoutChange=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidLayoutChange=this._onDidLayoutChange.event,this._editorTextFocus=this._register(new cs({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorText=this._editorTextFocus.onDidChangeToTrue,this.onDidBlurEditorText=this._editorTextFocus.onDidChangeToFalse,this._editorWidgetFocus=this._register(new cs({deliveryQueue:this._deliveryQueue})),this.onDidFocusEditorWidget=this._editorWidgetFocus.onDidChangeToTrue,this.onDidBlurEditorWidget=this._editorWidgetFocus.onDidChangeToFalse,this._onWillType=this._register(new po(this._contributions,this._deliveryQueue)),this.onWillType=this._onWillType.event,this._onDidType=this._register(new po(this._contributions,this._deliveryQueue)),this.onDidType=this._onDidType.event,this._onDidCompositionStart=this._register(new po(this._contributions,this._deliveryQueue)),this.onDidCompositionStart=this._onDidCompositionStart.event,this._onDidCompositionEnd=this._register(new po(this._contributions,this._deliveryQueue)),this.onDidCompositionEnd=this._onDidCompositionEnd.event,this._onDidPaste=this._register(new po(this._contributions,this._deliveryQueue)),this.onDidPaste=this._onDidPaste.event,this._onMouseUp=this._register(new po(this._contributions,this._deliveryQueue)),this.onMouseUp=this._onMouseUp.event,this._onMouseDown=this._register(new po(this._contributions,this._deliveryQueue)),this.onMouseDown=this._onMouseDown.event,this._onMouseDrag=this._register(new po(this._contributions,this._deliveryQueue)),this.onMouseDrag=this._onMouseDrag.event,this._onMouseDrop=this._register(new po(this._contributions,this._deliveryQueue)),this.onMouseDrop=this._onMouseDrop.event,this._onMouseDropCanceled=this._register(new po(this._contributions,this._deliveryQueue)),this.onMouseDropCanceled=this._onMouseDropCanceled.event,this._onDropIntoEditor=this._register(new po(this._contributions,this._deliveryQueue)),this.onDropIntoEditor=this._onDropIntoEditor.event,this._onContextMenu=this._register(new po(this._contributions,this._deliveryQueue)),this.onContextMenu=this._onContextMenu.event,this._onMouseMove=this._register(new po(this._contributions,this._deliveryQueue)),this.onMouseMove=this._onMouseMove.event,this._onMouseLeave=this._register(new po(this._contributions,this._deliveryQueue)),this.onMouseLeave=this._onMouseLeave.event,this._onMouseWheel=this._register(new po(this._contributions,this._deliveryQueue)),this.onMouseWheel=this._onMouseWheel.event,this._onKeyUp=this._register(new po(this._contributions,this._deliveryQueue)),this.onKeyUp=this._onKeyUp.event,this._onKeyDown=this._register(new po(this._contributions,this._deliveryQueue)),this.onKeyDown=this._onKeyDown.event,this._onDidContentSizeChange=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidContentSizeChange=this._onDidContentSizeChange.event,this._onDidScrollChange=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidScrollChange=this._onDidScrollChange.event,this._onDidChangeViewZones=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeViewZones=this._onDidChangeViewZones.event,this._onDidChangeHiddenAreas=this._register(new I.vl({deliveryQueue:this._deliveryQueue})),this.onDidChangeHiddenAreas=this._onDidChangeHiddenAreas.event,this._actions=new Map,this._bannerDomNode=null,this._dropIntoEditorDecorations=this.createDecorationsCollection(),Z.willCreateCodeEditor();const Yt={...l};this._domElement=t,this._overflowWidgetsDomNode=Yt.overflowWidgetsDomNode,delete Yt.overflowWidgetsDomNode,this._id=++Ds,this._decorationTypeKeysToIds={},this._decorationTypeSubtypes={},this._telemetryData=y.telemetryData,this._configuration=this._register(this._createConfiguration(y.isSimpleWidget||!1,Yt,gt)),this._register(this._configuration.onDidChange(mn=>{this._onDidChangeConfiguration.fire(mn);const Mn=this._configuration.options;if(mn.hasChanged(145)){const Tn=Mn.get(145);this._onDidLayoutChange.fire(Tn)}})),this._contextKeyService=this._register(ke.createScoped(this._domElement)),this._notificationService=Xe,this._codeEditorService=Z,this._commandService=pe,this._themeService=Ve,this._register(new Ws(this,this._contextKeyService)),this._register(new Ls(this,this._contextKeyService,It)),this._instantiationService=H.createChild(new ka.a([ta.fN,this._contextKeyService])),this._modelData=null,this._focusTracker=new us(t,this._overflowWidgetsDomNode),this._register(this._focusTracker.onChange(()=>{this._editorWidgetFocus.setValue(this._focusTracker.hasFocus())})),this._contentWidgets={},this._overlayWidgets={},this._glyphMarginWidgets={};let tn;Array.isArray(y.contributions)?tn=y.contributions:tn=F.dS.getEditorContributions(),this._contributions.initialize(this,tn,this._instantiationService);for(const mn of F.dS.getEditorActions()){if(this._actions.has(mn.id)){(0,x.dz)(new Error(`Cannot have two actions with the same id ${mn.id}`));continue}const Mn=new os.f(mn.id,mn.label,mn.alias,mn.metadata,(Bt=mn.precondition)!==null&&Bt!==void 0?Bt:void 0,Tn=>this._instantiationService.invokeFunction(Gn=>Promise.resolve(mn.runEditorCommand(Gn,this,Tn))),this._contextKeyService);this._actions.set(Mn.id,Mn)}const gn=()=>!this._configuration.options.get(91)&&this._configuration.options.get(36).enabled;this._register(new g.pN(this._domElement,{onDragOver:mn=>{if(!gn())return;const Mn=this.getTargetAtClientPoint(mn.clientX,mn.clientY);Mn?.position&&this.showDropIndicatorAt(Mn.position)},onDrop:async mn=>{if(!gn()||(this.removeDropIndicator(),!mn.dataTransfer))return;const Mn=this.getTargetAtClientPoint(mn.clientX,mn.clientY);Mn?.position&&this._onDropIntoEditor.fire({position:Mn.position,event:mn})},onDragLeave:()=>{this.removeDropIndicator()},onDragEnd:()=>{this.removeDropIndicator()}})),this._codeEditorService.addCodeEditor(this)}writeScreenReaderContent(t){var l;(l=this._modelData)===null||l===void 0||l.view.writeScreenReaderContent(t)}_createConfiguration(t,l,y){return new A(t,l,this._domElement,y)}getId(){return this.getEditorType()+":"+this._id}getEditorType(){return Qo._.ICodeEditor}dispose(){this._codeEditorService.removeCodeEditor(this),this._focusTracker.dispose(),this._actions.clear(),this._contentWidgets={},this._overlayWidgets={},this._removeDecorationTypes(),this._postDetachModelCleanup(this._detachModel()),this._onDidDispose.fire(),super.dispose()}invokeWithinContext(t){return this._instantiationService.invokeFunction(t)}updateOptions(t){this._configuration.updateOptions(t||{})}getOptions(){return this._configuration.options}getOption(t){return this._configuration.options.get(t)}getRawOptions(){return this._configuration.getRawOptions()}getOverflowWidgetsDomNode(){return this._overflowWidgetsDomNode}getConfiguredWordAtPosition(t){return this._modelData?hr.z.getWordAtPosition(this._modelData.model,this._configuration.options.get(131),this._configuration.options.get(130),t):null}getValue(t=null){if(!this._modelData)return"";const l=!!(t&&t.preserveBOM);let y=0;return t&&t.lineEnding&&t.lineEnding===` `?y=1:t&&t.lineEnding&&t.lineEnding===`\r `&&(y=2),this._modelData.model.getValue(y,l)}setValue(t){this._modelData&&this._modelData.model.setValue(t)}getModel(){return this._modelData?this._modelData.model:null}setModel(t=null){var l;const y=t;if(this._modelData===null&&y===null||this._modelData&&this._modelData.model===y)return;const H={oldModelUrl:((l=this._modelData)===null||l===void 0?void 0:l.model.uri)||null,newModelUrl:y?.uri||null};this._onWillChangeModel.fire(H);const Z=this.hasTextFocus(),pe=this._detachModel();this._attachModel(y),Z&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(H),this._postDetachModelCleanup(pe),this._contributionsDisposable=this._contributions.onAfterModelAttached()}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const t in this._decorationTypeSubtypes){const l=this._decorationTypeSubtypes[t];for(const y in l)this._removeDecorationType(t+"-"+y)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(t,l,y,H){const Z=t.model.validatePosition({lineNumber:l,column:y}),pe=t.viewModel.coordinatesConverter.convertModelPositionToViewPosition(Z);return t.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(pe.lineNumber,H)}getTopForLineNumber(t,l=!1){return this._modelData?ds._getVerticalOffsetForPosition(this._modelData,t,1,l):-1}getTopForPosition(t,l){return this._modelData?ds._getVerticalOffsetForPosition(this._modelData,t,l,!1):-1}static _getVerticalOffsetForPosition(t,l,y,H=!1){const Z=t.model.validatePosition({lineNumber:l,column:y}),pe=t.viewModel.coordinatesConverter.convertModelPositionToViewPosition(Z);return t.viewModel.viewLayout.getVerticalOffsetForLineNumber(pe.lineNumber,H)}getBottomForLineNumber(t,l=!1){return this._modelData?ds._getVerticalOffsetAfterPosition(this._modelData,t,1,l):-1}setHiddenAreas(t,l){var y;(y=this._modelData)===null||y===void 0||y.viewModel.setHiddenAreas(t.map(H=>ve.Q.lift(H)),l)}getVisibleColumnFromPosition(t){if(!this._modelData)return t.column;const l=this._modelData.model.validatePosition(t),y=this._modelData.model.getOptions().tabSize;return Ce.A.visibleColumnFromColumn(this._modelData.model.getLineContent(l.lineNumber),l.column,y)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(t,l="api"){if(this._modelData){if(!he.y.isIPosition(t))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(l,[{selectionStartLineNumber:t.lineNumber,selectionStartColumn:t.column,positionLineNumber:t.lineNumber,positionColumn:t.column}])}}_sendRevealRange(t,l,y,H){if(!this._modelData)return;if(!ve.Q.isIRange(t))throw new Error("Invalid arguments");const Z=this._modelData.model.validateRange(t),pe=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(Z);this._modelData.viewModel.revealRange("api",y,pe,l,H)}revealLine(t,l=0){this._revealLine(t,0,l)}revealLineInCenter(t,l=0){this._revealLine(t,1,l)}revealLineInCenterIfOutsideViewport(t,l=0){this._revealLine(t,2,l)}revealLineNearTop(t,l=0){this._revealLine(t,5,l)}_revealLine(t,l,y){if(typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new ve.Q(t,1,t,1),l,!1,y)}revealPosition(t,l=0){this._revealPosition(t,0,!0,l)}revealPositionInCenter(t,l=0){this._revealPosition(t,1,!0,l)}revealPositionInCenterIfOutsideViewport(t,l=0){this._revealPosition(t,2,!0,l)}revealPositionNearTop(t,l=0){this._revealPosition(t,5,!0,l)}_revealPosition(t,l,y,H){if(!he.y.isIPosition(t))throw new Error("Invalid arguments");this._sendRevealRange(new ve.Q(t.lineNumber,t.column,t.lineNumber,t.column),l,y,H)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():null}setSelection(t,l="api"){const y=Le.L.isISelection(t),H=ve.Q.isIRange(t);if(!y&&!H)throw new Error("Invalid arguments");if(y)this._setSelectionImpl(t,l);else if(H){const Z={selectionStartLineNumber:t.startLineNumber,selectionStartColumn:t.startColumn,positionLineNumber:t.endLineNumber,positionColumn:t.endColumn};this._setSelectionImpl(Z,l)}}_setSelectionImpl(t,l){if(!this._modelData)return;const y=new Le.L(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn);this._modelData.viewModel.setSelections(l,[y])}revealLines(t,l,y=0){this._revealLines(t,l,0,y)}revealLinesInCenter(t,l,y=0){this._revealLines(t,l,1,y)}revealLinesInCenterIfOutsideViewport(t,l,y=0){this._revealLines(t,l,2,y)}revealLinesNearTop(t,l,y=0){this._revealLines(t,l,5,y)}_revealLines(t,l,y,H){if(typeof t!="number"||typeof l!="number")throw new Error("Invalid arguments");this._sendRevealRange(new ve.Q(t,1,l,1),y,!1,H)}revealRange(t,l=0,y=!1,H=!0){this._revealRange(t,y?1:0,H,l)}revealRangeInCenter(t,l=0){this._revealRange(t,1,!0,l)}revealRangeInCenterIfOutsideViewport(t,l=0){this._revealRange(t,2,!0,l)}revealRangeNearTop(t,l=0){this._revealRange(t,5,!0,l)}revealRangeNearTopIfOutsideViewport(t,l=0){this._revealRange(t,6,!0,l)}revealRangeAtTop(t,l=0){this._revealRange(t,3,!0,l)}_revealRange(t,l,y,H){if(!ve.Q.isIRange(t))throw new Error("Invalid arguments");this._sendRevealRange(ve.Q.lift(t),l,y,H)}setSelections(t,l="api",y=0){if(this._modelData){if(!t||t.length===0)throw new Error("Invalid arguments");for(let H=0,Z=t.length;H0&&this._modelData.viewModel.restoreCursorState(y):this._modelData.viewModel.restoreCursorState([y]),this._contributions.restoreViewState(l.contributionsState||{});const H=this._modelData.viewModel.reduceRestoreState(l.viewState);this._modelData.view.restoreState(H)}}handleInitialized(){var t;(t=this._getViewModel())===null||t===void 0||t.visibleLinesStabilized()}getContribution(t){return this._contributions.get(t)}getActions(){return Array.from(this._actions.values())}getSupportedActions(){let t=this.getActions();return t=t.filter(l=>l.isSupported()),t}getAction(t){return this._actions.get(t)||null}trigger(t,l,y){switch(y=y||{},l){case"compositionStart":this._startComposition();return;case"compositionEnd":this._endComposition(t);return;case"type":{const Z=y;this._type(t,Z.text||"");return}case"replacePreviousChar":{const Z=y;this._compositionType(t,Z.text||"",Z.replaceCharCnt||0,0,0);return}case"compositionType":{const Z=y;this._compositionType(t,Z.text||"",Z.replacePrevCharCnt||0,Z.replaceNextCharCnt||0,Z.positionDelta||0);return}case"paste":{const Z=y;this._paste(t,Z.text||"",Z.pasteOnNewLine||!1,Z.multicursorText||null,Z.mode||null,Z.clipboardEvent);return}case"cut":this._cut(t);return}const H=this.getAction(l);if(H){Promise.resolve(H.run(y)).then(void 0,x.dz);return}this._modelData&&(this._triggerEditorCommand(t,l,y)||this._triggerCommand(l,y))}_triggerCommand(t,l){this._commandService.executeCommand(t,l)}_startComposition(){this._modelData&&(this._modelData.viewModel.startComposition(),this._onDidCompositionStart.fire())}_endComposition(t){this._modelData&&(this._modelData.viewModel.endComposition(t),this._onDidCompositionEnd.fire())}_type(t,l){!this._modelData||l.length===0||(t==="keyboard"&&this._onWillType.fire(l),this._modelData.viewModel.type(l,t),t==="keyboard"&&this._onDidType.fire(l))}_compositionType(t,l,y,H,Z){this._modelData&&this._modelData.viewModel.compositionType(l,y,H,Z,t)}_paste(t,l,y,H,Z,pe){if(!this._modelData)return;const ke=this._modelData.viewModel,Ve=ke.getSelection().getStartPosition();ke.paste(l,y,H,t);const Xe=ke.getSelection().getStartPosition();t==="keyboard"&&this._onDidPaste.fire({clipboardEvent:pe,range:new ve.Q(Ve.lineNumber,Ve.column,Xe.lineNumber,Xe.column),languageId:Z})}_cut(t){this._modelData&&this._modelData.viewModel.cut(t)}_triggerEditorCommand(t,l,y){const H=F.dS.getEditorCommand(l);return H?(y=y||{},y.source=t,this._instantiationService.invokeFunction(Z=>{Promise.resolve(H.runEditorCommand(Z,this,y)).then(void 0,x.dz)}),!0):!1}_getViewModel(){return this._modelData?this._modelData.viewModel:null}pushUndoStop(){return!this._modelData||this._configuration.options.get(91)?!1:(this._modelData.model.pushStackElement(),!0)}popUndoStop(){return!this._modelData||this._configuration.options.get(91)?!1:(this._modelData.model.popStackElement(),!0)}executeEdits(t,l,y){if(!this._modelData||this._configuration.options.get(91))return!1;let H;return y?Array.isArray(y)?H=()=>y:H=y:H=()=>null,this._modelData.viewModel.executeEdits(t,l,H),!0}executeCommand(t,l){this._modelData&&this._modelData.viewModel.executeCommand(l,t)}executeCommands(t,l){this._modelData&&this._modelData.viewModel.executeCommands(l,t)}createDecorationsCollection(t){return new Ia(this,t)}changeDecorations(t){return this._modelData?this._modelData.model.changeDecorations(t,this._id):null}getLineDecorations(t){return this._modelData?this._modelData.model.getLineDecorations(t,this._id,(0,O.$C)(this._configuration.options)):null}getDecorationsInRange(t){return this._modelData?this._modelData.model.getDecorationsInRange(t,this._id,(0,O.$C)(this._configuration.options)):null}deltaDecorations(t,l){return this._modelData?t.length===0&&l.length===0?t:this._modelData.model.deltaDecorations(t,l,this._id):[]}removeDecorations(t){!this._modelData||t.length===0||this._modelData.model.changeDecorations(l=>{l.deltaDecorations(t,[])})}removeDecorationsByType(t){const l=this._decorationTypeKeysToIds[t];l&&this.changeDecorations(y=>y.deltaDecorations(l,[])),this._decorationTypeKeysToIds.hasOwnProperty(t)&&delete this._decorationTypeKeysToIds[t],this._decorationTypeSubtypes.hasOwnProperty(t)&&delete this._decorationTypeSubtypes[t]}getLayoutInfo(){return this._configuration.options.get(145)}createOverviewRuler(t){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.createOverviewRuler(t)}getContainerDomNode(){return this._domElement}getDomNode(){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.domNode.domNode}delegateVerticalScrollbarPointerDown(t){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateVerticalScrollbarPointerDown(t)}delegateScrollFromMouseWheelEvent(t){!this._modelData||!this._modelData.hasRealView||this._modelData.view.delegateScrollFromMouseWheelEvent(t)}layout(t,l=!1){this._configuration.observeContainer(t),l||this.render()}focus(){!this._modelData||!this._modelData.hasRealView||this._modelData.view.focus()}hasTextFocus(){return!this._modelData||!this._modelData.hasRealView?!1:this._modelData.view.isFocused()}hasWidgetFocus(){return this._focusTracker&&this._focusTracker.hasFocus()}addContentWidget(t){const l={widget:t,position:t.getPosition()};this._contentWidgets.hasOwnProperty(t.getId())&&console.warn("Overwriting a content widget with the same id:"+t.getId()),this._contentWidgets[t.getId()]=l,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addContentWidget(l)}layoutContentWidget(t){const l=t.getId();if(this._contentWidgets.hasOwnProperty(l)){const y=this._contentWidgets[l];y.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(y)}}removeContentWidget(t){const l=t.getId();if(this._contentWidgets.hasOwnProperty(l)){const y=this._contentWidgets[l];delete this._contentWidgets[l],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(y)}}addOverlayWidget(t){const l={widget:t,position:t.getPosition()};this._overlayWidgets.hasOwnProperty(t.getId())&&console.warn("Overwriting an overlay widget with the same id."),this._overlayWidgets[t.getId()]=l,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addOverlayWidget(l)}layoutOverlayWidget(t){const l=t.getId();if(this._overlayWidgets.hasOwnProperty(l)){const y=this._overlayWidgets[l];y.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(y)}}removeOverlayWidget(t){const l=t.getId();if(this._overlayWidgets.hasOwnProperty(l)){const y=this._overlayWidgets[l];delete this._overlayWidgets[l],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(y)}}addGlyphMarginWidget(t){const l={widget:t,position:t.getPosition()};this._glyphMarginWidgets.hasOwnProperty(t.getId())&&console.warn("Overwriting a glyph margin widget with the same id."),this._glyphMarginWidgets[t.getId()]=l,this._modelData&&this._modelData.hasRealView&&this._modelData.view.addGlyphMarginWidget(l)}layoutGlyphMarginWidget(t){const l=t.getId();if(this._glyphMarginWidgets.hasOwnProperty(l)){const y=this._glyphMarginWidgets[l];y.position=t.getPosition(),this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutGlyphMarginWidget(y)}}removeGlyphMarginWidget(t){const l=t.getId();if(this._glyphMarginWidgets.hasOwnProperty(l)){const y=this._glyphMarginWidgets[l];delete this._glyphMarginWidgets[l],this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeGlyphMarginWidget(y)}}changeViewZones(t){!this._modelData||!this._modelData.hasRealView||this._modelData.view.change(t)}getTargetAtClientPoint(t,l){return!this._modelData||!this._modelData.hasRealView?null:this._modelData.view.getTargetAtClientPoint(t,l)}getScrolledVisiblePosition(t){if(!this._modelData||!this._modelData.hasRealView)return null;const l=this._modelData.model.validatePosition(t),y=this._configuration.options,H=y.get(145),Z=ds._getVerticalOffsetForPosition(this._modelData,l.lineNumber,l.column)-this.getScrollTop(),pe=this._modelData.view.getOffsetForColumn(l.lineNumber,l.column)+H.glyphMarginWidth+H.lineNumbersWidth+H.decorationsWidth-this.getScrollLeft();return{top:Z,left:pe,height:y.get(67)}}getOffsetForColumn(t,l){return!this._modelData||!this._modelData.hasRealView?-1:this._modelData.view.getOffsetForColumn(t,l)}render(t=!1){!this._modelData||!this._modelData.hasRealView||this._modelData.view.render(!0,t)}setAriaOptions(t){!this._modelData||!this._modelData.hasRealView||this._modelData.view.setAriaOptions(t)}applyFontInfo(t){(0,d.M)(t,this._configuration.options.get(50))}setBanner(t,l){this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),this._bannerDomNode=t,this._configuration.setReservedHeight(t?l:0),this._bannerDomNode&&this._domElement.prepend(this._bannerDomNode)}_attachModel(t){if(!t){this._modelData=null;return}const l=[];this._domElement.setAttribute("data-mode-id",t.getLanguageId()),this._configuration.setIsDominatedByLongLines(t.isDominatedByLongLines()),this._configuration.setModelLineCount(t.getLineCount());const y=t.onBeforeAttached(),H=new Er(this._id,this._configuration,t,$o.create(g.zk(this._domElement)),Po.create(this._configuration.options),ke=>g.PG(g.zk(this._domElement),ke),this.languageConfigurationService,this._themeService,y);l.push(t.onWillDispose(()=>this.setModel(null))),l.push(H.onEvent(ke=>{switch(ke.kind){case 0:this._onDidContentSizeChange.fire(ke);break;case 1:this._editorTextFocus.setValue(ke.hasFocus);break;case 2:this._onDidScrollChange.fire(ke);break;case 3:this._onDidChangeViewZones.fire();break;case 4:this._onDidChangeHiddenAreas.fire();break;case 5:this._onDidAttemptReadOnlyEdit.fire();break;case 6:{if(ke.reachedMaxCursorCount){const Ct=this.getOption(80),It=Ht.kg("cursors.maximum","The number of cursors has been limited to {0}. Consider using [find and replace](https://code.visualstudio.com/docs/editor/codebasics#_find-and-replace) for larger changes or increase the editor multi cursor limit setting.",Ct);this._notificationService.prompt(Tr.AI.Warning,It,[{label:"Find and Replace",run:()=>{this._commandService.executeCommand("editor.action.startFindReplaceAction")}},{label:Ht.kg("goToSetting","Increase Multi Cursor Limit"),run:()=>{this._commandService.executeCommand("workbench.action.openSettings2",{query:"editor.multiCursorLimit"})}}])}const Ve=[];for(let Ct=0,It=ke.selections.length;Ct{this._paste("keyboard",Z,pe,ke,Ve)},type:Z=>{this._type("keyboard",Z)},compositionType:(Z,pe,ke,Ve)=>{this._compositionType("keyboard",Z,pe,ke,Ve)},startComposition:()=>{this._startComposition()},endComposition:()=>{this._endComposition("keyboard")},cut:()=>{this._cut("keyboard")}}:l={paste:(Z,pe,ke,Ve)=>{const Xe={text:Z,pasteOnNewLine:pe,multicursorText:ke,mode:Ve};this._commandService.executeCommand("paste",Xe)},type:Z=>{const pe={text:Z};this._commandService.executeCommand("type",pe)},compositionType:(Z,pe,ke,Ve)=>{if(ke||Ve){const Xe={text:Z,replacePrevCharCnt:pe,replaceNextCharCnt:ke,positionDelta:Ve};this._commandService.executeCommand("compositionType",Xe)}else{const Xe={text:Z,replaceCharCnt:pe};this._commandService.executeCommand("replacePreviousChar",Xe)}},startComposition:()=>{this._commandService.executeCommand("compositionStart",{})},endComposition:()=>{this._commandService.executeCommand("compositionEnd",{})},cut:()=>{this._commandService.executeCommand("cut",{})}};const y=new Ne(t.coordinatesConverter);return y.onKeyDown=Z=>this._onKeyDown.fire(Z),y.onKeyUp=Z=>this._onKeyUp.fire(Z),y.onContextMenu=Z=>this._onContextMenu.fire(Z),y.onMouseMove=Z=>this._onMouseMove.fire(Z),y.onMouseLeave=Z=>this._onMouseLeave.fire(Z),y.onMouseDown=Z=>this._onMouseDown.fire(Z),y.onMouseUp=Z=>this._onMouseUp.fire(Z),y.onMouseDrag=Z=>this._onMouseDrag.fire(Z),y.onMouseDrop=Z=>this._onMouseDrop.fire(Z),y.onMouseDropCanceled=Z=>this._onMouseDropCanceled.fire(Z),y.onMouseWheel=Z=>this._onMouseWheel.fire(Z),[new co(l,this._configuration,this._themeService.getColorTheme(),t,y,this._overflowWidgetsDomNode,this._instantiationService),!0]}_postDetachModelCleanup(t){t?.removeAllDecorationsWithOwnerId(this._id)}_detachModel(){var t;if((t=this._contributionsDisposable)===null||t===void 0||t.dispose(),this._contributionsDisposable=void 0,!this._modelData)return null;const l=this._modelData.model,y=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;return this._modelData.dispose(),this._modelData=null,this._domElement.removeAttribute("data-mode-id"),y&&this._domElement.contains(y)&&this._domElement.removeChild(y),this._bannerDomNode&&this._domElement.contains(this._bannerDomNode)&&this._domElement.removeChild(this._bannerDomNode),l}_removeDecorationType(t){this._codeEditorService.removeDecorationType(t)}hasModel(){return this._modelData!==null}showDropIndicatorAt(t){const l=[{range:new ve.Q(t.lineNumber,t.column,t.lineNumber,t.column),options:ds.dropIntoEditorDecorationOptions}];this._dropIntoEditorDecorations.set(l),this.revealPosition(t,1)}removeDropIndicator(){this._dropIntoEditorDecorations.clear()}setContextValue(t,l){this._contextKeyService.createKey(t,l)}};or.dropIntoEditorDecorationOptions=lo.kI.register({description:"workbench-dnd-target",className:"dnd-target"}),or=ds=Pr([qo(3,ri._Y),qo(4,B.T),qo(5,Mr.d),qo(6,ta.fN),qo(7,Be.Gy),qo(8,Tr.Ot),qo(9,U.j),qo(10,$s.JZ),qo(11,Eo.u)],or);let Ds=0;class na{constructor(t,l,y,H,Z,pe){this.model=t,this.viewModel=l,this.view=y,this.hasRealView=H,this.listenersToRemove=Z,this.attachedView=pe}dispose(){(0,S.AS)(this.listenersToRemove),this.model.onBeforeDetached(this.attachedView),this.hasRealView&&this.view.dispose(),this.viewModel.dispose()}}class cs extends S.jG{constructor(t){super(),this._emitterOptions=t,this._onDidChangeToTrue=this._register(new I.vl(this._emitterOptions)),this.onDidChangeToTrue=this._onDidChangeToTrue.event,this._onDidChangeToFalse=this._register(new I.vl(this._emitterOptions)),this.onDidChangeToFalse=this._onDidChangeToFalse.event,this._value=0}setValue(t){const l=t?2:1;this._value!==l&&(this._value=l,this._value===2?this._onDidChangeToTrue.fire():this._value===1&&this._onDidChangeToFalse.fire())}}class po extends I.vl{constructor(t,l){super({deliveryQueue:l}),this._contributions=t}fire(t){this._contributions.onBeforeInteractionEvent(),super.fire(t)}}class Ws extends S.jG{constructor(t,l){super(),this._editor=t,l.createKey("editorId",t.getId()),this._editorSimpleInput=zi.R.editorSimpleInput.bindTo(l),this._editorFocus=zi.R.focus.bindTo(l),this._textInputFocus=zi.R.textInputFocus.bindTo(l),this._editorTextFocus=zi.R.editorTextFocus.bindTo(l),this._tabMovesFocus=zi.R.tabMovesFocus.bindTo(l),this._editorReadonly=zi.R.readOnly.bindTo(l),this._inDiffEditor=zi.R.inDiffEditor.bindTo(l),this._editorColumnSelection=zi.R.columnSelection.bindTo(l),this._hasMultipleSelections=zi.R.hasMultipleSelections.bindTo(l),this._hasNonEmptySelection=zi.R.hasNonEmptySelection.bindTo(l),this._canUndo=zi.R.canUndo.bindTo(l),this._canRedo=zi.R.canRedo.bindTo(l),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromConfig())),this._register(this._editor.onDidChangeCursorSelection(()=>this._updateFromSelection())),this._register(this._editor.onDidFocusEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorWidget(()=>this._updateFromFocus())),this._register(this._editor.onDidFocusEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidBlurEditorText(()=>this._updateFromFocus())),this._register(this._editor.onDidChangeModel(()=>this._updateFromModel())),this._register(this._editor.onDidChangeConfiguration(()=>this._updateFromModel())),this._register(b.M.onDidChangeTabFocus(y=>this._tabMovesFocus.set(y))),this._updateFromConfig(),this._updateFromSelection(),this._updateFromFocus(),this._updateFromModel(),this._editorSimpleInput.set(this._editor.isSimpleWidget)}_updateFromConfig(){const t=this._editor.getOptions();this._tabMovesFocus.set(b.M.getTabFocusMode()),this._editorReadonly.set(t.get(91)),this._inDiffEditor.set(t.get(61)),this._editorColumnSelection.set(t.get(22))}_updateFromSelection(){const t=this._editor.getSelections();t?(this._hasMultipleSelections.set(t.length>1),this._hasNonEmptySelection.set(t.some(l=>!l.isEmpty()))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())}_updateFromFocus(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())}_updateFromModel(){const t=this._editor.getModel();this._canUndo.set(!!(t&&t.canUndo())),this._canRedo.set(!!(t&&t.canRedo()))}}class Ls extends S.jG{constructor(t,l,y){super(),this._editor=t,this._contextKeyService=l,this._languageFeaturesService=y,this._langId=zi.R.languageId.bindTo(l),this._hasCompletionItemProvider=zi.R.hasCompletionItemProvider.bindTo(l),this._hasCodeActionsProvider=zi.R.hasCodeActionsProvider.bindTo(l),this._hasCodeLensProvider=zi.R.hasCodeLensProvider.bindTo(l),this._hasDefinitionProvider=zi.R.hasDefinitionProvider.bindTo(l),this._hasDeclarationProvider=zi.R.hasDeclarationProvider.bindTo(l),this._hasImplementationProvider=zi.R.hasImplementationProvider.bindTo(l),this._hasTypeDefinitionProvider=zi.R.hasTypeDefinitionProvider.bindTo(l),this._hasHoverProvider=zi.R.hasHoverProvider.bindTo(l),this._hasDocumentHighlightProvider=zi.R.hasDocumentHighlightProvider.bindTo(l),this._hasDocumentSymbolProvider=zi.R.hasDocumentSymbolProvider.bindTo(l),this._hasReferenceProvider=zi.R.hasReferenceProvider.bindTo(l),this._hasRenameProvider=zi.R.hasRenameProvider.bindTo(l),this._hasSignatureHelpProvider=zi.R.hasSignatureHelpProvider.bindTo(l),this._hasInlayHintsProvider=zi.R.hasInlayHintsProvider.bindTo(l),this._hasDocumentFormattingProvider=zi.R.hasDocumentFormattingProvider.bindTo(l),this._hasDocumentSelectionFormattingProvider=zi.R.hasDocumentSelectionFormattingProvider.bindTo(l),this._hasMultipleDocumentFormattingProvider=zi.R.hasMultipleDocumentFormattingProvider.bindTo(l),this._hasMultipleDocumentSelectionFormattingProvider=zi.R.hasMultipleDocumentSelectionFormattingProvider.bindTo(l),this._isInEmbeddedEditor=zi.R.isInEmbeddedEditor.bindTo(l);const H=()=>this._update();this._register(t.onDidChangeModel(H)),this._register(t.onDidChangeModelLanguage(H)),this._register(y.completionProvider.onDidChange(H)),this._register(y.codeActionProvider.onDidChange(H)),this._register(y.codeLensProvider.onDidChange(H)),this._register(y.definitionProvider.onDidChange(H)),this._register(y.declarationProvider.onDidChange(H)),this._register(y.implementationProvider.onDidChange(H)),this._register(y.typeDefinitionProvider.onDidChange(H)),this._register(y.hoverProvider.onDidChange(H)),this._register(y.documentHighlightProvider.onDidChange(H)),this._register(y.documentSymbolProvider.onDidChange(H)),this._register(y.referenceProvider.onDidChange(H)),this._register(y.renameProvider.onDidChange(H)),this._register(y.documentFormattingEditProvider.onDidChange(H)),this._register(y.documentRangeFormattingEditProvider.onDidChange(H)),this._register(y.signatureHelpProvider.onDidChange(H)),this._register(y.inlayHintsProvider.onDidChange(H)),H()}dispose(){super.dispose()}reset(){this._contextKeyService.bufferChangeEvents(()=>{this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasDeclarationProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInEmbeddedEditor.reset()})}_update(){const t=this._editor.getModel();if(!t){this.reset();return}this._contextKeyService.bufferChangeEvents(()=>{this._langId.set(t.getLanguageId()),this._hasCompletionItemProvider.set(this._languageFeaturesService.completionProvider.has(t)),this._hasCodeActionsProvider.set(this._languageFeaturesService.codeActionProvider.has(t)),this._hasCodeLensProvider.set(this._languageFeaturesService.codeLensProvider.has(t)),this._hasDefinitionProvider.set(this._languageFeaturesService.definitionProvider.has(t)),this._hasDeclarationProvider.set(this._languageFeaturesService.declarationProvider.has(t)),this._hasImplementationProvider.set(this._languageFeaturesService.implementationProvider.has(t)),this._hasTypeDefinitionProvider.set(this._languageFeaturesService.typeDefinitionProvider.has(t)),this._hasHoverProvider.set(this._languageFeaturesService.hoverProvider.has(t)),this._hasDocumentHighlightProvider.set(this._languageFeaturesService.documentHighlightProvider.has(t)),this._hasDocumentSymbolProvider.set(this._languageFeaturesService.documentSymbolProvider.has(t)),this._hasReferenceProvider.set(this._languageFeaturesService.referenceProvider.has(t)),this._hasRenameProvider.set(this._languageFeaturesService.renameProvider.has(t)),this._hasSignatureHelpProvider.set(this._languageFeaturesService.signatureHelpProvider.has(t)),this._hasInlayHintsProvider.set(this._languageFeaturesService.inlayHintsProvider.has(t)),this._hasDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.has(t)||this._languageFeaturesService.documentRangeFormattingEditProvider.has(t)),this._hasDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.has(t)),this._hasMultipleDocumentFormattingProvider.set(this._languageFeaturesService.documentFormattingEditProvider.all(t).length+this._languageFeaturesService.documentRangeFormattingEditProvider.all(t).length>1),this._hasMultipleDocumentSelectionFormattingProvider.set(this._languageFeaturesService.documentRangeFormattingEditProvider.all(t).length>1),this._isInEmbeddedEditor.set(t.uri.scheme===f.ny.walkThroughSnippet||t.uri.scheme===f.ny.vscodeChatCodeBlock)})}}class us extends S.jG{constructor(t,l){super(),this._onChange=this._register(new I.vl),this.onChange=this._onChange.event,this._hadFocus=void 0,this._hasDomElementFocus=!1,this._domFocusTracker=this._register(g.w5(t)),this._overflowWidgetsDomNodeHasFocus=!1,this._register(this._domFocusTracker.onDidFocus(()=>{this._hasDomElementFocus=!0,this._update()})),this._register(this._domFocusTracker.onDidBlur(()=>{this._hasDomElementFocus=!1,this._update()})),l&&(this._overflowWidgetsDomNode=this._register(g.w5(l)),this._register(this._overflowWidgetsDomNode.onDidFocus(()=>{this._overflowWidgetsDomNodeHasFocus=!0,this._update()})),this._register(this._overflowWidgetsDomNode.onDidBlur(()=>{this._overflowWidgetsDomNodeHasFocus=!1,this._update()})))}_update(){const t=this._hasDomElementFocus||this._overflowWidgetsDomNodeHasFocus;this._hadFocus!==t&&(this._hadFocus=t,this._onChange.fire(void 0))}hasFocus(){var t;return(t=this._hadFocus)!==null&&t!==void 0?t:!1}}class Ia{get length(){return this._decorationIds.length}constructor(t,l){this._editor=t,this._decorationIds=[],this._isChangingDecorations=!1,Array.isArray(l)&&l.length>0&&this.set(l)}onDidChange(t,l,y){return this._editor.onDidChangeModelDecorations(H=>{this._isChangingDecorations||t.call(l,H)},y)}getRange(t){return!this._editor.hasModel()||t>=this._decorationIds.length?null:this._editor.getModel().getDecorationRange(this._decorationIds[t])}getRanges(){if(!this._editor.hasModel())return[];const t=this._editor.getModel(),l=[];for(const y of this._decorationIds){const H=t.getDecorationRange(y);H&&l.push(H)}return l}has(t){return this._decorationIds.includes(t.id)}clear(){this._decorationIds.length!==0&&this.set([])}set(t){try{this._isChangingDecorations=!0,this._editor.changeDecorations(l=>{this._decorationIds=l.deltaDecorations(this._decorationIds,t)})}finally{this._isChangingDecorations=!1}return this._decorationIds}append(t){let l=[];try{this._isChangingDecorations=!0,this._editor.changeDecorations(y=>{l=y.deltaDecorations([],t),this._decorationIds=this._decorationIds.concat(l)})}finally{this._isChangingDecorations=!1}return l}}const Ma=encodeURIComponent("");function Es(Pt){return Ma+encodeURIComponent(Pt.toString())+Ta}const sr=encodeURIComponent('');function Io(Pt){return sr+encodeURIComponent(Pt.toString())+ia}(0,Be.zy)((Pt,t)=>{const l=Pt.getColor(Rn.Rbi);l&&t.addRule(`.monaco-editor .squiggly-error { background: url("data:image/svg+xml,${Es(l)}") repeat-x bottom left; }`);const y=Pt.getColor(Rn.Hng);y&&t.addRule(`.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,${Es(y)}") repeat-x bottom left; }`);const H=Pt.getColor(Rn.pOz);H&&t.addRule(`.monaco-editor .squiggly-info { background: url("data:image/svg+xml,${Es(H)}") repeat-x bottom left; }`);const Z=Pt.getColor(Rn.i61);Z&&t.addRule(`.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,${Io(Z)}") no-repeat bottom left; }`);const pe=Pt.getColor(vt.yw);pe&&t.addRule(`.monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: ${pe.rgba.a}; }`)})},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js":function(pt,Me,e){e.d(Me,{t:function(){return n}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),a=function(i,c,m,u){var C=arguments.length,h=C<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,m):u,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(i,c,m,u);else for(var p=i.length-1;p>=0;p--)(v=i[p])&&(h=(C<3?v(h):C>3?v(c,m,h):v(c,m))||h);return C>3&&h&&Object.defineProperty(c,m,h),h},s=function(i,c){return function(m,u){c(m,u,i)}};let n=class extends k.x{constructor(c,m,u,C,h,v,p,b,O,w,j,U,K){super(c,{...C.getRawOptions(),overflowWidgetsDomNode:C.getOverflowWidgetsDomNode()},u,h,v,p,b,O,w,j,U,K),this._parentEditor=C,this._overwriteOptions=m,super.updateOptions(this._overwriteOptions),this._register(C.onDidChangeConfiguration(G=>this._onParentConfigurationChanged(G)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(c){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(c){r.co(this._overwriteOptions,c,!0),super.updateOptions(this._overwriteOptions)}};n=a([s(4,S._Y),s(5,F.T),s(6,x.d),s(7,I.fN),s(8,d.Gy),s(9,f.Ot),s(10,g.j),s(11,M.JZ),s(12,L.u)],n)},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),x=e("./node_modules/monaco-editor/esm/vs/nls.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js");class a extends I.L{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:(0,x.aS)("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:r.W.map,toggled:f.M$.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:f.M$.has("isInDiffEditor"),menu:{when:f.M$.has("isInDiffEditor"),id:I.D8.EditorTitle,order:22,group:"navigation"}})}run(G,...P){const A=G.get(S.pG),T=!A.getValue("diffEditor.hideUnchangedRegions.enabled");A.updateValue("diffEditor.hideUnchangedRegions.enabled",T)}}class s extends I.L{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:(0,x.aS)("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:f.M$.has("isInDiffEditor")})}run(G,...P){const A=G.get(S.pG),T=!A.getValue("diffEditor.experimental.showMoves");A.updateValue("diffEditor.experimental.showMoves",T)}}class n extends I.L{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:(0,x.aS)("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:f.M$.has("isInDiffEditor")})}run(G,...P){const A=G.get(S.pG),T=!A.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");A.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",T)}}const i=(0,x.aS)("diffEditor","Diff Editor");class c extends k.qO{constructor(){super({id:"diffEditor.switchSide",title:(0,x.aS)("switchSide","Switch Side"),icon:r.W.arrowSwap,precondition:f.M$.has("isInDiffEditor"),f1:!0,category:i})}runEditorCommand(G,P,A){const T=w(G);if(T instanceof L.T){if(A&&A.dryRun)return{destinationSelection:T.mapToOtherSide().destinationSelection};T.switchSide()}}}class m extends k.qO{constructor(){super({id:"diffEditor.exitCompareMove",title:(0,x.aS)("exitCompareMove","Exit Compare Move"),icon:r.W.close,precondition:g.R.comparingMovedCode,f1:!1,category:i,keybinding:{weight:1e4,primary:9}})}runEditorCommand(G,P,...A){const T=w(G);T instanceof L.T&&T.exitCompareMove()}}class u extends k.qO{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:(0,x.aS)("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:r.W.fold,precondition:f.M$.has("isInDiffEditor"),f1:!0,category:i})}runEditorCommand(G,P,...A){const T=w(G);T instanceof L.T&&T.collapseAllUnchangedRegions()}}class C extends k.qO{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:(0,x.aS)("showAllUnchangedRegions","Show All Unchanged Regions"),icon:r.W.unfold,precondition:f.M$.has("isInDiffEditor"),f1:!0,category:i})}runEditorCommand(G,P,...A){const T=w(G);T instanceof L.T&&T.showAllUnchangedRegions()}}class h extends I.L{constructor(){super({id:"diffEditor.revert",title:(0,x.aS)("revert","Revert"),f1:!1,category:i})}run(G,P){var A;const T=O(G,P.originalUri,P.modifiedUri);T instanceof L.T&&T.revertRangeMappings((A=P.mapping.innerChanges)!==null&&A!==void 0?A:[])}}const v=(0,x.aS)("accessibleDiffViewer","Accessible Diff Viewer");class p extends I.L{constructor(){super({id:p.id,title:(0,x.aS)("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:v,precondition:f.M$.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(G){const P=w(G);P?.accessibleDiffViewerNext()}}p.id="editor.action.accessibleDiffViewer.next";class b extends I.L{constructor(){super({id:b.id,title:(0,x.aS)("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:v,precondition:f.M$.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(G){const P=w(G);P?.accessibleDiffViewerPrev()}}b.id="editor.action.accessibleDiffViewer.prev";function O(K,G,P){return K.get(M.T).listDiffEditors().find(E=>{var W,$;const z=E.getModifiedEditor(),J=E.getOriginalEditor();return z&&((W=z.getModel())===null||W===void 0?void 0:W.uri.toString())===P.toString()&&J&&(($=J.getModel())===null||$===void 0?void 0:$.uri.toString())===G.toString()})||null}function w(K){const P=K.get(M.T).listDiffEditors(),A=(0,F.bq)();if(A)for(const T of P){const E=T.getContainerDomNode();if(j(E,A))return T}return null}function j(K,G){let P=G;for(;P;){if(P===K)return!0;P=P.parentElement}return!1}var U=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js");(0,I.ug)(a),(0,I.ug)(s),(0,I.ug)(n),I.ZG.appendMenuItem(I.D8.EditorTitle,{command:{id:new n().desc.id,title:(0,x.kg)("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:f.M$.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:f.M$.has("isInDiffEditor")},order:11,group:"1_diff",when:f.M$.and(g.R.diffEditorRenderSideBySideInlineBreakpointReached,f.M$.has("isInDiffEditor"))}),I.ZG.appendMenuItem(I.D8.EditorTitle,{command:{id:new s().desc.id,title:(0,x.kg)("showMoves","Show Moved Code Blocks"),icon:r.W.move,toggled:f.f1.create("config.diffEditor.experimental.showMoves",!0),precondition:f.M$.has("isInDiffEditor")},order:10,group:"1_diff",when:f.M$.has("isInDiffEditor")}),(0,I.ug)(h);for(const K of[{icon:r.W.arrowRight,key:g.R.diffEditorInlineMode.toNegated()},{icon:r.W.discard,key:g.R.diffEditorInlineMode}])I.ZG.appendMenuItem(I.D8.DiffEditorHunkToolbar,{command:{id:new h().desc.id,title:(0,x.kg)("revertHunk","Revert Block"),icon:K.icon},when:f.M$.and(g.R.diffEditorModifiedWritable,K.key),order:5,group:"primary"}),I.ZG.appendMenuItem(I.D8.DiffEditorSelectionToolbar,{command:{id:new h().desc.id,title:(0,x.kg)("revertSelection","Revert Selection"),icon:K.icon},when:f.M$.and(g.R.diffEditorModifiedWritable,K.key),order:5,group:"primary"});(0,I.ug)(c),(0,I.ug)(m),(0,I.ug)(u),(0,I.ug)(C),I.ZG.appendMenuItem(I.D8.EditorTitle,{command:{id:p.id,title:(0,x.kg)("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:f.M$.has("isInDiffEditor")},order:10,group:"2_diff",when:f.M$.and(g.R.accessibleDiffViewerVisible.negate(),f.M$.has("isInDiffEditor"))}),U.w.registerCommandAlias("editor.action.diffReview.next",p.id),(0,I.ug)(p),U.w.registerCommandAlias("editor.action.diffReview.prev",b.id),(0,I.ug)(b)},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js":function(pt,Me,e){e.d(Me,{T:function(){return Un}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/derived.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/browser/stableEditorScroll.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js"),a=e("./node_modules/monaco-editor/esm/vs/base/browser/trustedTypes.js"),s=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js"),n=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement.js"),i=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),c=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),u=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/domFontInfo.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils.js"),v=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),p=e("./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js"),b=e("./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),w=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),j=e("./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js"),U=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),K=e("./node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.js"),G=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js"),P=e("./node_modules/monaco-editor/esm/vs/editor/common/viewModel.js"),A=e("./node_modules/monaco-editor/esm/vs/nls.js"),T=e("./node_modules/monaco-editor/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js"),E=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),W=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js"),$=function(cn,$e,yt,jt){var Vt=arguments.length,Ut=Vt<3?$e:jt===null?jt=Object.getOwnPropertyDescriptor($e,yt):jt,sn;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ut=Reflect.decorate(cn,$e,yt,jt);else for(var zt=cn.length-1;zt>=0;zt--)(sn=cn[zt])&&(Ut=(Vt<3?sn(Ut):Vt>3?sn($e,yt,Ut):sn($e,yt))||Ut);return Vt>3&&Ut&&Object.defineProperty($e,yt,Ut),Ut},z=function(cn,$e){return function(yt,jt){$e(yt,jt,cn)}};const J=(0,W.pU)("diff-review-insert",m.W.add,(0,A.kg)("accessibleDiffViewerInsertIcon","Icon for 'Insert' in accessible diff viewer.")),B=(0,W.pU)("diff-review-remove",m.W.remove,(0,A.kg)("accessibleDiffViewerRemoveIcon","Icon for 'Remove' in accessible diff viewer.")),V=(0,W.pU)("diff-review-close",m.W.close,(0,A.kg)("accessibleDiffViewerCloseIcon","Icon for 'Close' in accessible diff viewer."));let Y=class extends L.jG{constructor($e,yt,jt,Vt,Ut,sn,zt,kt,an){super(),this._parentNode=$e,this._visible=yt,this._setVisible=jt,this._canClose=Vt,this._width=Ut,this._height=sn,this._diffs=zt,this._models=kt,this._instantiationService=an,this._state=(0,g.rm)(this,(dn,bn)=>{const xn=this._visible.read(dn);if(this._parentNode.style.visibility=xn?"visible":"hidden",!xn)return null;const jn=bn.add(this._instantiationService.createInstance(X,this._diffs,this._models,this._setVisible,this._canClose)),pn=bn.add(this._instantiationService.createInstance(_e,this._parentNode,jn,this._width,this._height,this._models));return{model:jn,view:pn}}).recomputeInitiallyAndOnChange(this._store)}next(){(0,g.Rn)($e=>{const yt=this._visible.get();this._setVisible(!0,$e),yt&&this._state.get().model.nextGroup($e)})}prev(){(0,g.Rn)($e=>{this._setVisible(!0,$e),this._state.get().model.previousGroup($e)})}close(){(0,g.Rn)($e=>{this._setVisible(!1,$e)})}};Y._ttPolicy=(0,a.H)("diffReview",{createHTML:cn=>cn}),Y=$([z(8,E._Y)],Y);let X=class extends L.jG{constructor($e,yt,jt,Vt,Ut){super(),this._diffs=$e,this._models=yt,this._setVisible=jt,this.canClose=Vt,this._accessibilitySignalService=Ut,this._groups=(0,g.FY)(this,[]),this._currentGroupIdx=(0,g.FY)(this,0),this._currentElementIdx=(0,g.FY)(this,0),this.groups=this._groups,this.currentGroup=this._currentGroupIdx.map((sn,zt)=>this._groups.read(zt)[sn]),this.currentGroupIndex=this._currentGroupIdx,this.currentElement=this._currentElementIdx.map((sn,zt)=>{var kt;return(kt=this.currentGroup.read(zt))===null||kt===void 0?void 0:kt.lines[sn]}),this._register((0,g.fm)(sn=>{const zt=this._diffs.read(sn);if(!zt){this._groups.set([],void 0);return}const kt=re(zt,this._models.getOriginalModel().getLineCount(),this._models.getModifiedModel().getLineCount());(0,g.Rn)(an=>{const dn=this._models.getModifiedPosition();if(dn){const bn=kt.findIndex(xn=>dn?.lineNumber{const zt=this.currentElement.read(sn);zt?.type===te.Deleted?this._accessibilitySignalService.playSignal(T.Rh.diffLineDeleted,{source:"accessibleDiffViewer.currentElementChanged"}):zt?.type===te.Added&&this._accessibilitySignalService.playSignal(T.Rh.diffLineInserted,{source:"accessibleDiffViewer.currentElementChanged"})})),this._register((0,g.fm)(sn=>{var zt;const kt=this.currentElement.read(sn);if(kt&&kt.type!==te.Header){const an=(zt=kt.modifiedLineNumber)!==null&&zt!==void 0?zt:kt.diff.modified.startLineNumber;this._models.modifiedSetSelection(w.Q.fromPositions(new O.y(an,1)))}}))}_goToGroupDelta($e,yt){const jt=this.groups.get();!jt||jt.length<=1||(0,g.PO)(yt,Vt=>{this._currentGroupIdx.set(b.L.ofLength(jt.length).clipCyclic(this._currentGroupIdx.get()+$e),Vt),this._currentElementIdx.set(0,Vt)})}nextGroup($e){this._goToGroupDelta(1,$e)}previousGroup($e){this._goToGroupDelta(-1,$e)}_goToLineDelta($e){const yt=this.currentGroup.get();!yt||yt.lines.length<=1||(0,g.Rn)(jt=>{this._currentElementIdx.set(b.L.ofLength(yt.lines.length).clip(this._currentElementIdx.get()+$e),jt)})}goToNextLine(){this._goToLineDelta(1)}goToPreviousLine(){this._goToLineDelta(-1)}goToLine($e){const yt=this.currentGroup.get();if(!yt)return;const jt=yt.lines.indexOf($e);jt!==-1&&(0,g.Rn)(Vt=>{this._currentElementIdx.set(jt,Vt)})}revealCurrentElementInEditor(){if(!this.canClose.get())return;this._setVisible(!1,void 0);const $e=this.currentElement.get();$e&&($e.type===te.Deleted?this._models.originalReveal(w.Q.fromPositions(new O.y($e.originalLineNumber,1))):this._models.modifiedReveal($e.type!==te.Header?w.Q.fromPositions(new O.y($e.modifiedLineNumber,1)):void 0))}close(){this.canClose.get()&&(this._setVisible(!1,void 0),this._models.modifiedFocus())}};X=$([z(4,T.Nt)],X);const ie=3;function re(cn,$e,yt){const jt=[];for(const Vt of(0,c.n)(cn,(Ut,sn)=>sn.modified.startLineNumber-Ut.modified.endLineNumberExclusive<2*ie)){const Ut=[];Ut.push(new he);const sn=new p.M(Math.max(1,Vt[0].original.startLineNumber-ie),Math.min(Vt[Vt.length-1].original.endLineNumberExclusive+ie,$e+1)),zt=new p.M(Math.max(1,Vt[0].modified.startLineNumber-ie),Math.min(Vt[Vt.length-1].modified.endLineNumberExclusive+ie,yt+1));(0,c.pN)(Vt,(dn,bn)=>{const xn=new p.M(dn?dn.original.endLineNumberExclusive:sn.startLineNumber,bn?bn.original.startLineNumber:sn.endLineNumberExclusive),jn=new p.M(dn?dn.modified.endLineNumberExclusive:zt.startLineNumber,bn?bn.modified.startLineNumber:zt.endLineNumberExclusive);xn.forEach(pn=>{Ut.push(new Pe(pn,jn.startLineNumber+(pn-xn.startLineNumber)))}),bn&&(bn.original.forEach(pn=>{Ut.push(new ve(bn,pn))}),bn.modified.forEach(pn=>{Ut.push(new Ce(bn,pn))}))});const kt=Vt[0].modified.join(Vt[Vt.length-1].modified),an=Vt[0].original.join(Vt[Vt.length-1].original);jt.push(new D(new j.WL(kt,an),Ut))}return jt}var te;(function(cn){cn[cn.Header=0]="Header",cn[cn.Unchanged=1]="Unchanged",cn[cn.Deleted=2]="Deleted",cn[cn.Added=3]="Added"})(te||(te={}));class D{constructor($e,yt){this.range=$e,this.lines=yt}}class he{constructor(){this.type=te.Header}}class ve{constructor($e,yt){this.diff=$e,this.originalLineNumber=yt,this.type=te.Deleted,this.modifiedLineNumber=void 0}}class Ce{constructor($e,yt){this.diff=$e,this.modifiedLineNumber=yt,this.type=te.Added,this.originalLineNumber=void 0}}class Pe{constructor($e,yt){this.originalLineNumber=$e,this.modifiedLineNumber=yt,this.type=te.Unchanged}}let _e=class extends L.jG{constructor($e,yt,jt,Vt,Ut,sn){super(),this._element=$e,this._model=yt,this._width=jt,this._height=Vt,this._models=Ut,this._languageService=sn,this.domNode=this._element,this.domNode.className="monaco-component diff-review monaco-editor-background";const zt=document.createElement("div");zt.className="diff-review-actions",this._actionBar=this._register(new s.E(zt)),this._register((0,g.fm)(kt=>{this._actionBar.clear(),this._model.canClose.read(kt)&&this._actionBar.push(new i.rc("diffreview.close",(0,A.kg)("label.close","Close"),"close-diff-review "+u.L.asClassName(V),!0,async()=>yt.close()),{label:!1,icon:!0})})),this._content=document.createElement("div"),this._content.className="diff-review-content",this._content.setAttribute("role","code"),this._scrollbar=this._register(new n.MU(this._content,{})),(0,r.Ln)(this.domNode,this._scrollbar.getDomNode(),zt),this._register((0,g.fm)(kt=>{this._height.read(kt),this._width.read(kt),this._scrollbar.scanDomNode()})),this._register((0,L.s)(()=>{(0,r.Ln)(this.domNode)})),this._register((0,h.AV)(this.domNode,{width:this._width,height:this._height})),this._register((0,h.AV)(this._content,{width:this._width,height:this._height})),this._register((0,g.yC)((kt,an)=>{this._model.currentGroup.read(kt),this._render(an)})),this._register((0,r.b2)(this.domNode,"keydown",kt=>{(kt.equals(18)||kt.equals(2066)||kt.equals(530))&&(kt.preventDefault(),this._model.goToNextLine()),(kt.equals(16)||kt.equals(2064)||kt.equals(528))&&(kt.preventDefault(),this._model.goToPreviousLine()),(kt.equals(9)||kt.equals(2057)||kt.equals(521)||kt.equals(1033))&&(kt.preventDefault(),this._model.close()),(kt.equals(10)||kt.equals(3))&&(kt.preventDefault(),this._model.revealCurrentElementInEditor())}))}_render($e){const yt=this._models.getOriginalOptions(),jt=this._models.getModifiedOptions(),Vt=document.createElement("div");Vt.className="diff-review-table",Vt.setAttribute("role","list"),Vt.setAttribute("aria-label",(0,A.kg)("ariaLabel","Accessible Diff Viewer. Use arrow up and down to navigate.")),(0,C.M)(Vt,jt.get(50)),(0,r.Ln)(this._content,Vt);const Ut=this._models.getOriginalModel(),sn=this._models.getModifiedModel();if(!Ut||!sn)return;const zt=Ut.getOptions(),kt=sn.getOptions(),an=jt.get(67),dn=this._model.currentGroup.get();for(const bn of dn?.lines||[]){if(!dn)break;let xn;if(bn.type===te.Header){const pn=document.createElement("div");pn.className="diff-review-row",pn.setAttribute("role","listitem");const Wn=dn.range,Qn=this._model.currentGroupIndex.get(),ui=this._model.groups.get().length,vi=R=>R===0?(0,A.kg)("no_lines_changed","no lines changed"):R===1?(0,A.kg)("one_line_changed","1 line changed"):(0,A.kg)("more_lines_changed","{0} lines changed",R),qn=vi(Wn.original.length),yn=vi(Wn.modified.length);pn.setAttribute("aria-label",(0,A.kg)({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 changed", "1 line changed" or "X lines changed", localized separately.']},"Difference {0} of {1}: original line {2}, {3}, modified line {4}, {5}",Qn+1,ui,Wn.original.startLineNumber,qn,Wn.modified.startLineNumber,yn));const ht=document.createElement("div");ht.className="diff-review-cell diff-review-summary",ht.appendChild(document.createTextNode(`${Qn+1}/${ui}: @@ -${Wn.original.startLineNumber},${Wn.original.length} +${Wn.modified.startLineNumber},${Wn.modified.length} @@`)),pn.appendChild(ht),xn=pn}else xn=this._createRow(bn,an,this._width.get(),yt,Ut,zt,jt,sn,kt);Vt.appendChild(xn);const jn=(0,g.un)(pn=>this._model.currentElement.read(pn)===bn);$e.add((0,g.fm)(pn=>{const Wn=jn.read(pn);xn.tabIndex=Wn?0:-1,Wn&&xn.focus()})),$e.add((0,r.ko)(xn,"focus",()=>{this._model.goToLine(bn)}))}this._scrollbar.scanDomNode()}_createRow($e,yt,jt,Vt,Ut,sn,zt,kt,an){const dn=Vt.get(145),bn=dn.glyphMarginWidth+dn.lineNumbersWidth,xn=zt.get(145),jn=10+xn.glyphMarginWidth+xn.lineNumbersWidth;let pn="diff-review-row",Wn="";const Qn="diff-review-spacer";let ui=null;switch($e.type){case te.Added:pn="diff-review-row line-insert",Wn=" char-insert",ui=J;break;case te.Deleted:pn="diff-review-row line-delete",Wn=" char-delete",ui=B;break}const vi=document.createElement("div");vi.style.minWidth=jt+"px",vi.className=pn,vi.setAttribute("role","listitem"),vi.ariaLevel="";const qn=document.createElement("div");qn.className="diff-review-cell",qn.style.height=`${yt}px`,vi.appendChild(qn);const yn=document.createElement("span");yn.style.width=bn+"px",yn.style.minWidth=bn+"px",yn.className="diff-review-line-number"+Wn,$e.originalLineNumber!==void 0?yn.appendChild(document.createTextNode(String($e.originalLineNumber))):yn.innerText="\xA0",qn.appendChild(yn);const ht=document.createElement("span");ht.style.width=jn+"px",ht.style.minWidth=jn+"px",ht.style.paddingRight="10px",ht.className="diff-review-line-number"+Wn,$e.modifiedLineNumber!==void 0?ht.appendChild(document.createTextNode(String($e.modifiedLineNumber))):ht.innerText="\xA0",qn.appendChild(ht);const R=document.createElement("span");if(R.className=Qn,ui){const Re=document.createElement("span");Re.className=u.L.asClassName(ui),Re.innerText="\xA0\xA0",R.appendChild(Re)}else R.innerText="\xA0\xA0";qn.appendChild(R);let Q;if($e.modifiedLineNumber!==void 0){let Re=this._getLineHtml(kt,zt,an.tabSize,$e.modifiedLineNumber,this._languageService.languageIdCodec);Y._ttPolicy&&(Re=Y._ttPolicy.createHTML(Re)),qn.insertAdjacentHTML("beforeend",Re),Q=kt.getLineContent($e.modifiedLineNumber)}else{let Re=this._getLineHtml(Ut,Vt,sn.tabSize,$e.originalLineNumber,this._languageService.languageIdCodec);Y._ttPolicy&&(Re=Y._ttPolicy.createHTML(Re)),qn.insertAdjacentHTML("beforeend",Re),Q=Ut.getLineContent($e.originalLineNumber)}Q.length===0&&(Q=(0,A.kg)("blankLine","blank"));let ce="";switch($e.type){case te.Unchanged:$e.originalLineNumber===$e.modifiedLineNumber?ce=(0,A.kg)({key:"unchangedLine",comment:["The placeholders are contents of the line and should not be translated."]},"{0} unchanged line {1}",Q,$e.originalLineNumber):ce=(0,A.kg)("equalLine","{0} original line {1} modified line {2}",Q,$e.originalLineNumber,$e.modifiedLineNumber);break;case te.Added:ce=(0,A.kg)("insertLine","+ {0} modified line {1}",Q,$e.modifiedLineNumber);break;case te.Deleted:ce=(0,A.kg)("deleteLine","- {0} original line {1}",Q,$e.originalLineNumber);break}return vi.setAttribute("aria-label",ce),vi}_getLineHtml($e,yt,jt,Vt,Ut){const sn=$e.getLineContent(Vt),zt=yt.get(50),kt=K.f.createEmpty(sn,Ut),an=P.qL.isBasicASCII(sn,$e.mightContainNonBasicASCII()),dn=P.qL.containsRTL(sn,an,$e.mightContainRTL());return(0,G.Md)(new G.zL(zt.isMonospace&&!yt.get(33),zt.canUseHalfwidthRightwardsArrow,sn,!1,an,dn,0,kt,[],jt,0,zt.spaceWidth,zt.middotWidth,zt.wsmiddotWidth,yt.get(117),yt.get(99),yt.get(94),yt.get(51)!==v.Bc.OFF,null)).html}};_e=$([z(5,U.L)],_e);class ee{constructor($e){this.editors=$e}getOriginalModel(){return this.editors.original.getModel()}getOriginalOptions(){return this.editors.original.getOptions()}originalReveal($e){this.editors.original.revealRange($e),this.editors.original.setSelection($e),this.editors.original.focus()}getModifiedModel(){return this.editors.modified.getModel()}getModifiedOptions(){return this.editors.modified.getOptions()}modifiedReveal($e){$e&&(this.editors.modified.revealRange($e),this.editors.modified.setSelection($e)),this.editors.modified.focus()}modifiedSetSelection($e){this.editors.modified.setSelection($e)}modifiedFocus(){this.editors.modified.focus()}getModifiedPosition(){var $e;return($e=this.editors.modified.getPosition())!==null&&$e!==void 0?$e:void 0}}class De extends L.jG{constructor($e,yt,jt,Vt,Ut){super(),this._rootElement=$e,this._diffModel=yt,this._originalEditorLayoutInfo=jt,this._modifiedEditorLayoutInfo=Vt,this._editors=Ut,this._originalScrollTop=(0,g.y0)(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=(0,g.y0)(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=(0,g.yQ)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,g.FY)(this,0),this._modifiedViewZonesChangedSignal=(0,g.yQ)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,g.yQ)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,g.rm)(this,(dn,bn)=>{var xn;this._element.replaceChildren();const jn=this._diffModel.read(dn),pn=(xn=jn?.diff.read(dn))===null||xn===void 0?void 0:xn.movedTexts;if(!pn||pn.length===0){this.width.set(0,void 0);return}this._viewZonesChanged.read(dn);const Wn=this._originalEditorLayoutInfo.read(dn),Qn=this._modifiedEditorLayoutInfo.read(dn);if(!Wn||!Qn){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(dn),this._originalViewZonesChangedSignal.read(dn);const ui=pn.map(ce=>{function Re(un,Cn){const kn=Cn.getTopForLineNumber(un.startLineNumber,!0),Pn=Cn.getTopForLineNumber(un.endLineNumberExclusive,!0);return(kn+Pn)/2}const Fe=Re(ce.lineRangeMapping.original,this._editors.original),Ze=this._originalScrollTop.read(dn),wt=Re(ce.lineRangeMapping.modified,this._editors.modified),Lt=this._modifiedScrollTop.read(dn),Qt=Fe-Ze,Xt=wt-Lt,$t=Math.min(Fe,wt),on=Math.max(Fe,wt);return{range:new b.L($t,on),from:Qt,to:Xt,fromWithoutScroll:Fe,toWithoutScroll:wt,move:ce}});ui.sort((0,c.nH)((0,c.VE)(ce=>ce.fromWithoutScroll>ce.toWithoutScroll,c.TS),(0,c.VE)(ce=>ce.fromWithoutScroll>ce.toWithoutScroll?ce.fromWithoutScroll:-ce.toWithoutScroll,c.U9)));const vi=Te.compute(ui.map(ce=>ce.range)),qn=10,yn=Wn.verticalScrollbarWidth,ht=(vi.getTrackCount()-1)*10+qn*2,R=yn+ht+(Qn.contentLeft-De.movedCodeBlockPadding);let Q=0;for(const ce of ui){const Re=vi.getTrack(Q),Fe=yn+qn+Re*10,Ze=15,wt=15,Lt=R,Qt=Qn.glyphMarginWidth+Qn.lineNumbersWidth,Xt=18,$t=document.createElementNS("http://www.w3.org/2000/svg","rect");$t.classList.add("arrow-rectangle"),$t.setAttribute("x",`${Lt-Qt}`),$t.setAttribute("y",`${ce.to-Xt/2}`),$t.setAttribute("width",`${Qt}`),$t.setAttribute("height",`${Xt}`),this._element.appendChild($t);const on=document.createElementNS("http://www.w3.org/2000/svg","g"),un=document.createElementNS("http://www.w3.org/2000/svg","path");un.setAttribute("d",`M 0 ${ce.from} L ${Fe} ${ce.from} L ${Fe} ${ce.to} L ${Lt-wt} ${ce.to}`),un.setAttribute("fill","none"),on.appendChild(un);const Cn=document.createElementNS("http://www.w3.org/2000/svg","polygon");Cn.classList.add("arrow"),bn.add((0,g.fm)(kn=>{un.classList.toggle("currentMove",ce.move===jn.activeMovedText.read(kn)),Cn.classList.toggle("currentMove",ce.move===jn.activeMovedText.read(kn))})),Cn.setAttribute("points",`${Lt-wt},${ce.to-Ze/2} ${Lt},${ce.to} ${Lt-wt},${ce.to+Ze/2}`),on.appendChild(Cn),this._element.appendChild(on),Q++}this.width.set(ht,void 0)}),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,L.s)(()=>this._element.remove())),this._register((0,g.fm)(dn=>{const bn=this._originalEditorLayoutInfo.read(dn),xn=this._modifiedEditorLayoutInfo.read(dn);!bn||!xn||(this._element.style.left=`${bn.width-bn.verticalScrollbarWidth}px`,this._element.style.height=`${bn.height}px`,this._element.style.width=`${bn.verticalScrollbarWidth+bn.contentLeft-De.movedCodeBlockPadding+this.width.read(dn)}px`)})),this._register((0,g.OI)(this._state));const sn=(0,g.un)(dn=>{const bn=this._diffModel.read(dn),xn=bn?.diff.read(dn);return xn?xn.movedTexts.map(jn=>({move:jn,original:new h.D1((0,g.lk)(jn.lineRangeMapping.original.startLineNumber-1),18),modified:new h.D1((0,g.lk)(jn.lineRangeMapping.modified.startLineNumber-1),18)})):[]});this._register((0,h.Vs)(this._editors.original,sn.map(dn=>dn.map(bn=>bn.original)))),this._register((0,h.Vs)(this._editors.modified,sn.map(dn=>dn.map(bn=>bn.modified)))),this._register((0,g.yC)((dn,bn)=>{const xn=sn.read(dn);for(const jn of xn)bn.add(new He(this._editors.original,jn.original,jn.move,"original",this._diffModel.get())),bn.add(new He(this._editors.modified,jn.modified,jn.move,"modified",this._diffModel.get()))}));const zt=(0,g.yQ)("original.onDidFocusEditorWidget",dn=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>dn(void 0),0))),kt=(0,g.yQ)("modified.onDidFocusEditorWidget",dn=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>dn(void 0),0)));let an="modified";this._register((0,g.Y)({createEmptyChangeSummary:()=>{},handleChange:(dn,bn)=>(dn.didChange(zt)&&(an="original"),dn.didChange(kt)&&(an="modified"),!0)},dn=>{zt.read(dn),kt.read(dn);const bn=this._diffModel.read(dn);if(!bn)return;const xn=bn.diff.read(dn);let jn;if(xn&&an==="original"){const pn=this._editors.originalCursor.read(dn);pn&&(jn=xn.movedTexts.find(Wn=>Wn.lineRangeMapping.original.contains(pn.lineNumber)))}if(xn&&an==="modified"){const pn=this._editors.modifiedCursor.read(dn);pn&&(jn=xn.movedTexts.find(Wn=>Wn.lineRangeMapping.modified.contains(pn.lineNumber)))}jn!==bn.movedTextToCompare.get()&&bn.movedTextToCompare.set(void 0,void 0),bn.setActiveMovedText(jn)}))}}De.movedCodeBlockPadding=4;class Te{static compute($e){const yt=[],jt=[];for(const Vt of $e){let Ut=yt.findIndex(sn=>!sn.intersectsStrict(Vt));Ut===-1&&(yt.length>=6?Ut=(0,F.oU)(yt,(0,c.VE)(zt=>zt.intersectWithRangeLength(Vt),c.U9)):(Ut=yt.length,yt.push(new b.h))),yt[Ut].addRange(Vt),jt.push(Ut)}return new Te(yt.length,jt)}constructor($e,yt){this._trackCount=$e,this.trackPerLineIdx=yt}getTrack($e){return this.trackPerLineIdx[$e]}getTrackCount(){return this._trackCount}}class He extends h.uN{constructor($e,yt,jt,Vt,Ut){const sn=(0,r.h)("div.diff-hidden-lines-widget");super($e,yt,sn.root),this._editor=$e,this._move=jt,this._kind=Vt,this._diffModel=Ut,this._nodes=(0,r.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,r.h)("div.text-content@textContent"),(0,r.h)("div.action-bar@actionBar")]),sn.root.appendChild(this._nodes.root);const zt=(0,g.y0)(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register((0,h.AV)(this._nodes.root,{paddingRight:zt.map(xn=>xn.verticalScrollbarWidth)}));let kt;jt.changes.length>0?kt=this._kind==="original"?(0,A.kg)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,A.kg)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):kt=this._kind==="original"?(0,A.kg)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,A.kg)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);const an=this._register(new s.E(this._nodes.actionBar,{highlightToggledItems:!0})),dn=new i.rc("",kt,"",!1);an.push(dn,{icon:!1,label:!0});const bn=new i.rc("","Compare",u.L.asClassName(m.W.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===jt?void 0:this._move,void 0)});this._register((0,g.fm)(xn=>{const jn=this._diffModel.movedTextToCompare.read(xn)===jt;bn.checked=jn})),an.push(bn,{icon:!1,label:!0})}}var qe=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js");class Qe extends L.jG{constructor($e,yt,jt,Vt){super(),this._editors=$e,this._diffModel=yt,this._options=jt,this._decorations=(0,g.un)(this,Ut=>{var sn;const zt=(sn=this._diffModel.read(Ut))===null||sn===void 0?void 0:sn.diff.read(Ut);if(!zt)return null;const kt=this._diffModel.read(Ut).movedTextToCompare.read(Ut),an=this._options.renderIndicators.read(Ut),dn=this._options.showEmptyDecorations.read(Ut),bn=[],xn=[];if(!kt)for(const pn of zt.mappings)if(pn.lineRangeMapping.original.isEmpty||bn.push({range:pn.lineRangeMapping.original.toInclusiveRange(),options:an?qe.Ob:qe.XT}),pn.lineRangeMapping.modified.isEmpty||xn.push({range:pn.lineRangeMapping.modified.toInclusiveRange(),options:an?qe.Kl:qe.Zw}),pn.lineRangeMapping.modified.isEmpty||pn.lineRangeMapping.original.isEmpty)pn.lineRangeMapping.original.isEmpty||bn.push({range:pn.lineRangeMapping.original.toInclusiveRange(),options:qe.KL}),pn.lineRangeMapping.modified.isEmpty||xn.push({range:pn.lineRangeMapping.modified.toInclusiveRange(),options:qe.Ou});else for(const Wn of pn.lineRangeMapping.innerChanges||[])pn.lineRangeMapping.original.contains(Wn.originalRange.startLineNumber)&&bn.push({range:Wn.originalRange,options:Wn.originalRange.isEmpty()&&dn?qe.wp:qe.Zb}),pn.lineRangeMapping.modified.contains(Wn.modifiedRange.startLineNumber)&&xn.push({range:Wn.modifiedRange,options:Wn.modifiedRange.isEmpty()&&dn?qe.GM:qe.bk});if(kt)for(const pn of kt.changes){const Wn=pn.original.toInclusiveRange();Wn&&bn.push({range:Wn,options:an?qe.Ob:qe.XT});const Qn=pn.modified.toInclusiveRange();Qn&&xn.push({range:Qn,options:an?qe.Kl:qe.Zw});for(const ui of pn.innerChanges||[])bn.push({range:ui.originalRange,options:qe.Zb}),xn.push({range:ui.modifiedRange,options:qe.bk})}const jn=this._diffModel.read(Ut).activeMovedText.read(Ut);for(const pn of zt.movedTexts)bn.push({range:pn.lineRangeMapping.original.toInclusiveRange(),options:{description:"moved",blockClassName:"movedOriginal"+(pn===jn?" currentMove":""),blockPadding:[De.movedCodeBlockPadding,0,De.movedCodeBlockPadding,De.movedCodeBlockPadding]}}),xn.push({range:pn.lineRangeMapping.modified.toInclusiveRange(),options:{description:"moved",blockClassName:"movedModified"+(pn===jn?" currentMove":""),blockPadding:[4,0,4,4]}});return{originalDecorations:bn,modifiedDecorations:xn}}),this._register((0,h.pY)(this._editors.original,this._decorations.map(Ut=>Ut?.originalDecorations||[]))),this._register((0,h.pY)(this._editors.modified,this._decorations.map(Ut=>Ut?.modifiedDecorations||[])))}}var q=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash.js");class ye extends L.jG{constructor($e,yt,jt,Vt){super(),this._options=$e,this._domNode=yt,this._dimensions=jt,this._sashes=Vt,this._sashRatio=(0,g.FY)(this,void 0),this.sashLeft=(0,g.un)(this,Ut=>{var sn;const zt=(sn=this._sashRatio.read(Ut))!==null&&sn!==void 0?sn:this._options.splitViewDefaultRatio.read(Ut);return this._computeSashLeft(zt,Ut)}),this._sash=this._register(new q.m(this._domNode,{getVerticalSashTop:Ut=>0,getVerticalSashLeft:Ut=>this.sashLeft.get(),getVerticalSashHeight:Ut=>this._dimensions.height.get()},{orientation:0})),this._startSashPosition=void 0,this._register(this._sash.onDidStart(()=>{this._startSashPosition=this.sashLeft.get()})),this._register(this._sash.onDidChange(Ut=>{const sn=this._dimensions.width.get(),zt=this._computeSashLeft((this._startSashPosition+(Ut.currentX-Ut.startX))/sn,void 0);this._sashRatio.set(zt/sn,void 0)})),this._register(this._sash.onDidEnd(()=>this._sash.layout())),this._register(this._sash.onDidReset(()=>this._sashRatio.set(void 0,void 0))),this._register((0,g.fm)(Ut=>{const sn=this._sashes.read(Ut);sn&&(this._sash.orthogonalEndSash=sn.bottom)})),this._register((0,g.fm)(Ut=>{const sn=this._options.enableSplitViewResizing.read(Ut);this._sash.state=sn?3:0,this.sashLeft.read(Ut),this._dimensions.height.read(Ut),this._sash.layout()}))}_computeSashLeft($e,yt){const jt=this._dimensions.width.read(yt),Vt=Math.floor(this._options.splitViewDefaultRatio.read(yt)*jt),Ut=this._options.enableSplitViewResizing.read(yt)?Math.floor($e*jt):Vt,sn=100;return jt<=sn*2?Vt:Utjt-sn?jt-sn:Ut}}var ge=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),be=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),Se=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),ae=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),me=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),fe=e("./node_modules/monaco-editor/esm/vs/editor/common/services/editorWorker.js"),le=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),oe=function(cn,$e,yt,jt){var Vt=arguments.length,Ut=Vt<3?$e:jt===null?jt=Object.getOwnPropertyDescriptor($e,yt):jt,sn;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ut=Reflect.decorate(cn,$e,yt,jt);else for(var zt=cn.length-1;zt>=0;zt--)(sn=cn[zt])&&(Ut=(Vt<3?sn(Ut):Vt>3?sn($e,yt,Ut):sn($e,yt))||Ut);return Vt>3&&Ut&&Object.defineProperty($e,yt,Ut),Ut},ne=function(cn,$e){return function(yt,jt){$e(yt,jt,cn)}},de;const Le=(0,E.u1)("diffProviderFactoryService");let We=class{constructor($e){this.instantiationService=$e}createDiffProvider($e){return this.instantiationService.createInstance(we,$e)}};We=oe([ne(0,E._Y)],We),(0,ae.v)(Le,We,1);let we=de=class{constructor($e,yt,jt){this.editorWorkerService=yt,this.telemetryService=jt,this.onDidChangeEventEmitter=new M.vl,this.onDidChange=this.onDidChangeEventEmitter.event,this.diffAlgorithm="advanced",this.diffAlgorithmOnDidChangeSubscription=void 0,this.setOptions($e)}dispose(){var $e;($e=this.diffAlgorithmOnDidChangeSubscription)===null||$e===void 0||$e.dispose()}async computeDiff($e,yt,jt,Vt){var Ut,sn;if(typeof this.diffAlgorithm!="string")return this.diffAlgorithm.computeDiff($e,yt,jt,Vt);if($e.getLineCount()===1&&$e.getLineMaxColumn(1)===1)return yt.getLineCount()===1&&yt.getLineMaxColumn(1)===1?{changes:[],identical:!0,quitEarly:!1,moves:[]}:{changes:[new j.wm(new p.M(1,2),new p.M(1,yt.getLineCount()+1),[new j.q6($e.getFullModelRange(),yt.getFullModelRange())])],identical:!1,quitEarly:!1,moves:[]};const zt=JSON.stringify([$e.uri.toString(),yt.uri.toString()]),kt=JSON.stringify([$e.id,yt.id,$e.getAlternativeVersionId(),yt.getAlternativeVersionId(),JSON.stringify(jt)]),an=de.diffCache.get(zt);if(an&&an.context===kt)return an.result;const dn=me.W.create(),bn=await this.editorWorkerService.computeDiff($e.uri,yt.uri,jt,this.diffAlgorithm),xn=dn.elapsed();if(this.telemetryService.publicLog2("diffEditor.computeDiff",{timeMs:xn,timedOut:(Ut=bn?.quitEarly)!==null&&Ut!==void 0?Ut:!0,detectedMoves:jt.computeMoves?(sn=bn?.moves.length)!==null&&sn!==void 0?sn:0:-1}),Vt.isCancellationRequested)return{changes:[],identical:!1,quitEarly:!0,moves:[]};if(!bn)throw new Error("no diff result available");return de.diffCache.size>10&&de.diffCache.delete(de.diffCache.keys().next().value),de.diffCache.set(zt,{result:bn,context:kt}),bn}setOptions($e){var yt;let jt=!1;$e.diffAlgorithm&&this.diffAlgorithm!==$e.diffAlgorithm&&((yt=this.diffAlgorithmOnDidChangeSubscription)===null||yt===void 0||yt.dispose(),this.diffAlgorithmOnDidChangeSubscription=void 0,this.diffAlgorithm=$e.diffAlgorithm,typeof $e.diffAlgorithm!="string"&&(this.diffAlgorithmOnDidChangeSubscription=$e.diffAlgorithm.onDidChange(()=>this.onDidChangeEventEmitter.fire())),jt=!0),jt&&this.onDidChangeEventEmitter.fire()}};we.diffCache=new Map,we=de=oe([ne(1,fe.w),ne(2,le.k)],we);var Ue=e("./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js"),lt=e("./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.js"),Et=e("./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/combineTextEditInfos.js"),Kt=e("./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js"),Zt=e("./node_modules/monaco-editor/esm/vs/base/common/assert.js"),qt=function(cn,$e,yt,jt){var Vt=arguments.length,Ut=Vt<3?$e:jt===null?jt=Object.getOwnPropertyDescriptor($e,yt):jt,sn;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ut=Reflect.decorate(cn,$e,yt,jt);else for(var zt=cn.length-1;zt>=0;zt--)(sn=cn[zt])&&(Ut=(Vt<3?sn(Ut):Vt>3?sn($e,yt,Ut):sn($e,yt))||Ut);return Vt>3&&Ut&&Object.defineProperty($e,yt,Ut),Ut},tt=function(cn,$e){return function(yt,jt){$e(yt,jt,cn)}};let Mt=class extends L.jG{setActiveMovedText($e){this._activeMovedText.set($e,void 0)}constructor($e,yt,jt){super(),this.model=$e,this._options=yt,this._diffProviderFactoryService=jt,this._isDiffUpToDate=(0,g.FY)(this,!1),this.isDiffUpToDate=this._isDiffUpToDate,this._diff=(0,g.FY)(this,void 0),this.diff=this._diff,this._unchangedRegions=(0,g.FY)(this,void 0),this.unchangedRegions=(0,g.un)(this,zt=>{var kt,an;return this._options.hideUnchangedRegions.read(zt)?(an=(kt=this._unchangedRegions.read(zt))===null||kt===void 0?void 0:kt.regions)!==null&&an!==void 0?an:[]:((0,g.Rn)(dn=>{var bn;for(const xn of((bn=this._unchangedRegions.get())===null||bn===void 0?void 0:bn.regions)||[])xn.collapseAll(dn)}),[])}),this.movedTextToCompare=(0,g.FY)(this,void 0),this._activeMovedText=(0,g.FY)(this,void 0),this._hoveredMovedText=(0,g.FY)(this,void 0),this.activeMovedText=(0,g.un)(this,zt=>{var kt,an;return(an=(kt=this.movedTextToCompare.read(zt))!==null&&kt!==void 0?kt:this._hoveredMovedText.read(zt))!==null&&an!==void 0?an:this._activeMovedText.read(zt)}),this._cancellationTokenSource=new Se.Q,this._diffProvider=(0,g.un)(this,zt=>{const kt=this._diffProviderFactoryService.createDiffProvider({diffAlgorithm:this._options.diffAlgorithm.read(zt)}),an=(0,g.yQ)("onDidChange",kt.onDidChange);return{diffProvider:kt,onChangeSignal:an}}),this._register((0,L.s)(()=>this._cancellationTokenSource.cancel()));const Vt=(0,g.Yd)("contentChangedSignal"),Ut=this._register(new ge.uC(()=>Vt.trigger(void 0),200));this._register((0,g.fm)(zt=>{const kt=this._unchangedRegions.read(zt);if(!kt||kt.regions.some(pn=>pn.isDragged.read(zt)))return;const an=kt.originalDecorationIds.map(pn=>$e.original.getDecorationRange(pn)).map(pn=>pn?p.M.fromRangeInclusive(pn):void 0),dn=kt.modifiedDecorationIds.map(pn=>$e.modified.getDecorationRange(pn)).map(pn=>pn?p.M.fromRangeInclusive(pn):void 0),bn=kt.regions.map((pn,Wn)=>!an[Wn]||!dn[Wn]?void 0:new Be(an[Wn].startLineNumber,dn[Wn].startLineNumber,an[Wn].length,pn.visibleLineCountTop.read(zt),pn.visibleLineCountBottom.read(zt))).filter(be.O9),xn=[];let jn=!1;for(const pn of(0,c.n)(bn,(Wn,Qn)=>Wn.getHiddenModifiedRange(zt).endLineNumberExclusive===Qn.getHiddenModifiedRange(zt).startLineNumber))if(pn.length>1){jn=!0;const Wn=pn.reduce((ui,vi)=>ui+vi.lineCount,0),Qn=new Be(pn[0].originalLineNumber,pn[0].modifiedLineNumber,Wn,pn[0].visibleLineCountTop.get(),pn[pn.length-1].visibleLineCountBottom.get());xn.push(Qn)}else xn.push(pn[0]);if(jn){const pn=$e.original.deltaDecorations(kt.originalDecorationIds,xn.map(Qn=>({range:Qn.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),Wn=$e.modified.deltaDecorations(kt.modifiedDecorationIds,xn.map(Qn=>({range:Qn.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));(0,g.Rn)(Qn=>{this._unchangedRegions.set({regions:xn,originalDecorationIds:pn,modifiedDecorationIds:Wn},Qn)})}}));const sn=(zt,kt,an)=>{const dn=Be.fromDiffs(zt.changes,$e.original.getLineCount(),$e.modified.getLineCount(),this._options.hideUnchangedRegionsMinimumLineCount.read(an),this._options.hideUnchangedRegionsContextLineCount.read(an));let bn;const xn=this._unchangedRegions.get();if(xn){const Qn=xn.originalDecorationIds.map(yn=>$e.original.getDecorationRange(yn)).map(yn=>yn?p.M.fromRangeInclusive(yn):void 0),ui=xn.modifiedDecorationIds.map(yn=>$e.modified.getDecorationRange(yn)).map(yn=>yn?p.M.fromRangeInclusive(yn):void 0);let qn=(0,h.EK)(xn.regions.map((yn,ht)=>{if(!Qn[ht]||!ui[ht])return;const R=Qn[ht].length;return new Be(Qn[ht].startLineNumber,ui[ht].startLineNumber,R,Math.min(yn.visibleLineCountTop.get(),R),Math.min(yn.visibleLineCountBottom.get(),R-yn.visibleLineCountTop.get()))}).filter(be.O9),(yn,ht)=>!ht||yn.modifiedLineNumber>=ht.modifiedLineNumber+ht.lineCount&&yn.originalLineNumber>=ht.originalLineNumber+ht.lineCount).map(yn=>new j.WL(yn.getHiddenOriginalRange(an),yn.getHiddenModifiedRange(an)));qn=j.WL.clip(qn,p.M.ofLength(1,$e.original.getLineCount()),p.M.ofLength(1,$e.modified.getLineCount())),bn=j.WL.inverse(qn,$e.original.getLineCount(),$e.modified.getLineCount())}const jn=[];if(bn)for(const Qn of dn){const ui=bn.filter(vi=>vi.original.intersectsStrict(Qn.originalUnchangedRange)&&vi.modified.intersectsStrict(Qn.modifiedUnchangedRange));jn.push(...Qn.setVisibleRanges(ui,kt))}else jn.push(...dn);const pn=$e.original.deltaDecorations(xn?.originalDecorationIds||[],jn.map(Qn=>({range:Qn.originalUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}}))),Wn=$e.modified.deltaDecorations(xn?.modifiedDecorationIds||[],jn.map(Qn=>({range:Qn.modifiedUnchangedRange.toInclusiveRange(),options:{description:"unchanged"}})));this._unchangedRegions.set({regions:jn,originalDecorationIds:pn,modifiedDecorationIds:Wn},kt)};this._register($e.modified.onDidChangeContent(zt=>{if(this._diff.get()){const an=lt.c.fromModelContentChanges(zt.changes),dn=(this._lastDiff,$e.original,$e.modified,void 0);dn&&(this._lastDiff=dn,(0,g.Rn)(bn=>{this._diff.set(Jt.fromDiffResult(this._lastDiff),bn),sn(dn,bn);const xn=this.movedTextToCompare.get();this.movedTextToCompare.set(xn?this._lastDiff.moves.find(jn=>jn.lineRangeMapping.modified.intersect(xn.lineRangeMapping.modified)):void 0,bn)}))}this._isDiffUpToDate.set(!1,void 0),Ut.schedule()})),this._register($e.original.onDidChangeContent(zt=>{if(this._diff.get()){const an=lt.c.fromModelContentChanges(zt.changes),dn=(this._lastDiff,$e.original,$e.modified,void 0);dn&&(this._lastDiff=dn,(0,g.Rn)(bn=>{this._diff.set(Jt.fromDiffResult(this._lastDiff),bn),sn(dn,bn);const xn=this.movedTextToCompare.get();this.movedTextToCompare.set(xn?this._lastDiff.moves.find(jn=>jn.lineRangeMapping.modified.intersect(xn.lineRangeMapping.modified)):void 0,bn)}))}this._isDiffUpToDate.set(!1,void 0),Ut.schedule()})),this._register((0,g.yC)(async(zt,kt)=>{var an,dn;this._options.hideUnchangedRegionsMinimumLineCount.read(zt),this._options.hideUnchangedRegionsContextLineCount.read(zt),Ut.cancel(),Vt.read(zt);const bn=this._diffProvider.read(zt);bn.onChangeSignal.read(zt),(0,h.b6)(Ue.D8,zt),(0,h.b6)(Kt.NC,zt),this._isDiffUpToDate.set(!1,void 0);let xn=[];kt.add($e.original.onDidChangeContent(Wn=>{const Qn=lt.c.fromModelContentChanges(Wn.changes);xn=(0,Et.M)(xn,Qn)}));let jn=[];kt.add($e.modified.onDidChangeContent(Wn=>{const Qn=lt.c.fromModelContentChanges(Wn.changes);jn=(0,Et.M)(jn,Qn)}));let pn=await bn.diffProvider.computeDiff($e.original,$e.modified,{ignoreTrimWhitespace:this._options.ignoreTrimWhitespace.read(zt),maxComputationTimeMs:this._options.maxComputationTimeMs.read(zt),computeMoves:this._options.showMoves.read(zt)},this._cancellationTokenSource.token);this._cancellationTokenSource.token.isCancellationRequested||(pn=Ht(pn,$e.original,$e.modified),pn=(an=($e.original,$e.modified,void 0))!==null&&an!==void 0?an:pn,pn=(dn=($e.original,$e.modified,void 0))!==null&&dn!==void 0?dn:pn,(0,g.Rn)(Wn=>{sn(pn,Wn),this._lastDiff=pn;const Qn=Jt.fromDiffResult(pn);this._diff.set(Qn,Wn),this._isDiffUpToDate.set(!0,Wn);const ui=this.movedTextToCompare.get();this.movedTextToCompare.set(ui?this._lastDiff.moves.find(vi=>vi.lineRangeMapping.modified.intersect(ui.lineRangeMapping.modified)):void 0,Wn)}))}))}ensureModifiedLineIsVisible($e,yt,jt){var Vt,Ut;if(((Vt=this.diff.get())===null||Vt===void 0?void 0:Vt.mappings.length)===0)return;const sn=((Ut=this._unchangedRegions.get())===null||Ut===void 0?void 0:Ut.regions)||[];for(const zt of sn)if(zt.getHiddenModifiedRange(void 0).contains($e)){zt.showModifiedLine($e,yt,jt);return}}ensureOriginalLineIsVisible($e,yt,jt){var Vt,Ut;if(((Vt=this.diff.get())===null||Vt===void 0?void 0:Vt.mappings.length)===0)return;const sn=((Ut=this._unchangedRegions.get())===null||Ut===void 0?void 0:Ut.regions)||[];for(const zt of sn)if(zt.getHiddenOriginalRange(void 0).contains($e)){zt.showOriginalLine($e,yt,jt);return}}async waitForDiff(){await(0,g.oJ)(this.isDiffUpToDate,$e=>$e)}serializeState(){const $e=this._unchangedRegions.get();return{collapsedRegions:$e?.regions.map(yt=>({range:yt.getHiddenModifiedRange(void 0).serialize()}))}}restoreSerializedState($e){var yt;const jt=(yt=$e.collapsedRegions)===null||yt===void 0?void 0:yt.map(Ut=>p.M.deserialize(Ut.range)),Vt=this._unchangedRegions.get();!Vt||!jt||(0,g.Rn)(Ut=>{for(const sn of Vt.regions)for(const zt of jt)if(sn.modifiedUnchangedRange.intersect(zt)){sn.setHiddenModifiedRange(zt,Ut);break}})}};Mt=qt([tt(2,Le)],Mt);function Ht(cn,$e,yt){return{changes:cn.changes.map(jt=>new j.wm(jt.original,jt.modified,jt.innerChanges?jt.innerChanges.map(Vt=>xt(Vt,$e,yt)):void 0)),moves:cn.moves,identical:cn.identical,quitEarly:cn.quitEarly}}function xt(cn,$e,yt){let jt=cn.originalRange,Vt=cn.modifiedRange;return(jt.endColumn!==1||Vt.endColumn!==1)&&jt.endColumn===$e.getLineMaxColumn(jt.endLineNumber)&&Vt.endColumn===yt.getLineMaxColumn(Vt.endLineNumber)&&jt.endLineNumber<$e.getLineCount()&&Vt.endLineNumbernew Nt(yt)),$e.moves||[],$e.identical,$e.quitEarly)}constructor($e,yt,jt,Vt){this.mappings=$e,this.movedTexts=yt,this.identical=jt,this.quitEarly=Vt}}class Nt{constructor($e){this.lineRangeMapping=$e}}class Be{static fromDiffs($e,yt,jt,Vt,Ut){const sn=j.wm.inverse($e,yt,jt),zt=[];for(const kt of sn){let an=kt.original.startLineNumber,dn=kt.modified.startLineNumber,bn=kt.original.length;const xn=an===1&&dn===1,jn=an+bn===yt+1&&dn+bn===jt+1;(xn||jn)&&bn>=Ut+Vt?(xn&&!jn&&(bn-=Ut),jn&&!xn&&(an+=Ut,dn+=Ut,bn-=Ut),zt.push(new Be(an,dn,bn,0,0))):bn>=Ut*2+Vt&&(an+=Ut,dn+=Ut,bn-=Ut*2,zt.push(new Be(an,dn,bn,0,0)))}return zt}get originalUnchangedRange(){return p.M.ofLength(this.originalLineNumber,this.lineCount)}get modifiedUnchangedRange(){return p.M.ofLength(this.modifiedLineNumber,this.lineCount)}constructor($e,yt,jt,Vt,Ut){this.originalLineNumber=$e,this.modifiedLineNumber=yt,this.lineCount=jt,this._visibleLineCountTop=(0,g.FY)(this,0),this.visibleLineCountTop=this._visibleLineCountTop,this._visibleLineCountBottom=(0,g.FY)(this,0),this.visibleLineCountBottom=this._visibleLineCountBottom,this._shouldHideControls=(0,g.un)(this,kt=>this.visibleLineCountTop.read(kt)+this.visibleLineCountBottom.read(kt)===this.lineCount&&!this.isDragged.read(kt)),this.isDragged=(0,g.FY)(this,void 0);const sn=Math.max(Math.min(Vt,this.lineCount),0),zt=Math.max(Math.min(Ut,this.lineCount-Vt),0);(0,Zt.V7)(Vt===sn),(0,Zt.V7)(Ut===zt),this._visibleLineCountTop.set(sn,void 0),this._visibleLineCountBottom.set(zt,void 0)}setVisibleRanges($e,yt){const jt=[],Vt=new p.S($e.map(kt=>kt.modified)).subtractFrom(this.modifiedUnchangedRange);let Ut=this.originalLineNumber,sn=this.modifiedLineNumber;const zt=this.modifiedLineNumber+this.lineCount;if(Vt.ranges.length===0)this.showAll(yt),jt.push(this);else{let kt=0;for(const an of Vt.ranges){const dn=kt===Vt.ranges.length-1;kt++;const bn=(dn?zt:an.endLineNumberExclusive)-sn,xn=new Be(Ut,sn,bn,0,0);xn.setHiddenModifiedRange(an,yt),jt.push(xn),Ut=xn.originalUnchangedRange.endLineNumberExclusive,sn=xn.modifiedUnchangedRange.endLineNumberExclusive}}return jt}shouldHideControls($e){return this._shouldHideControls.read($e)}getHiddenOriginalRange($e){return p.M.ofLength(this.originalLineNumber+this._visibleLineCountTop.read($e),this.lineCount-this._visibleLineCountTop.read($e)-this._visibleLineCountBottom.read($e))}getHiddenModifiedRange($e){return p.M.ofLength(this.modifiedLineNumber+this._visibleLineCountTop.read($e),this.lineCount-this._visibleLineCountTop.read($e)-this._visibleLineCountBottom.read($e))}setHiddenModifiedRange($e,yt){const jt=$e.startLineNumber-this.modifiedLineNumber,Vt=this.modifiedLineNumber+this.lineCount-$e.endLineNumberExclusive;this.setState(jt,Vt,yt)}getMaxVisibleLineCountTop(){return this.lineCount-this._visibleLineCountBottom.get()}getMaxVisibleLineCountBottom(){return this.lineCount-this._visibleLineCountTop.get()}showMoreAbove($e=10,yt){const jt=this.getMaxVisibleLineCountTop();this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+$e,jt),yt)}showMoreBelow($e=10,yt){const jt=this.lineCount-this._visibleLineCountTop.get();this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+$e,jt),yt)}showAll($e){this._visibleLineCountBottom.set(this.lineCount-this._visibleLineCountTop.get(),$e)}showModifiedLine($e,yt,jt){const Vt=$e+1-(this.modifiedLineNumber+this._visibleLineCountTop.get()),Ut=this.modifiedLineNumber-this._visibleLineCountBottom.get()+this.lineCount-$e;yt===0&&Vt{var Qn;this._contextMenuService.showContextMenu({domForShadowRoot:xn&&(Qn=jt.getDomNode())!==null&&Qn!==void 0?Qn:void 0,getAnchor:()=>({x:pn,y:Wn}),getActions:()=>{const ui=[],vi=Vt.modified.isEmpty;return ui.push(new i.rc("diff.clipboard.copyDeletedContent",vi?Vt.original.length>1?(0,A.kg)("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):(0,A.kg)("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"):Vt.original.length>1?(0,A.kg)("diff.clipboard.copyChangedLinesContent.label","Copy changed lines"):(0,A.kg)("diff.clipboard.copyChangedLinesContent.single.label","Copy changed line"),void 0,!0,async()=>{const yn=this._originalTextModel.getValueInRange(Vt.original.toExclusiveRange());await this._clipboardService.writeText(yn)})),Vt.original.length>1&&ui.push(new i.rc("diff.clipboard.copyDeletedLineContent",vi?(0,A.kg)("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",Vt.original.startLineNumber+bn):(0,A.kg)("diff.clipboard.copyChangedLineContent.label","Copy changed line ({0})",Vt.original.startLineNumber+bn),void 0,!0,async()=>{let yn=this._originalTextModel.getLineContent(Vt.original.startLineNumber+bn);yn===""&&(yn=this._originalTextModel.getEndOfLineSequence()===0?` `:`\r `),await this._clipboardService.writeText(yn)})),jt.getOption(91)||ui.push(new i.rc("diff.inline.revertChange",(0,A.kg)("diff.inline.revertChange.label","Revert this change"),void 0,!0,async()=>{this._editor.revert(this._diff)})),ui},autoSelectFirstItem:!0})};this._register((0,r.b2)(this._diffActions,"mousedown",pn=>{if(!pn.leftButton)return;const{top:Wn,height:Qn}=(0,r.BK)(this._diffActions),ui=Math.floor(dn/3);pn.preventDefault(),jn(pn.posx,Wn+Qn+ui)})),this._register(jt.onMouseMove(pn=>{(pn.target.type===8||pn.target.type===5)&&pn.target.detail.viewZoneId===this._getViewZoneId()?(bn=this._updateLightBulbPosition(this._marginDomNode,pn.event.browserEvent.y,dn),this.visibility=!0):this.visibility=!1})),this._register(jt.onMouseDown(pn=>{pn.event.leftButton&&(pn.target.type===8||pn.target.type===5)&&pn.target.detail.viewZoneId===this._getViewZoneId()&&(pn.event.preventDefault(),bn=this._updateLightBulbPosition(this._marginDomNode,pn.event.browserEvent.y,dn),jn(pn.event.posx,pn.event.posy+dn))}))}_updateLightBulbPosition($e,yt,jt){const{top:Vt}=(0,r.BK)($e),Ut=yt-Vt,sn=Math.floor(Ut/jt),zt=sn*jt;if(this._diffActions.style.top=`${zt}px`,this._viewLineCounts){let kt=0;for(let an=0;ancn});function mi(cn,$e,yt,jt){(0,C.M)(jt,$e.fontInfo);const Vt=yt.length>0,Ut=new An.fe(1e4);let sn=0,zt=0;const kt=[];for(let xn=0;xn');const kt=$e.getLineContent(),an=P.qL.isBasicASCII(kt,Vt),dn=P.qL.containsRTL(kt,an,Ut),bn=(0,G.UW)(new G.zL(sn.fontInfo.isMonospace&&!sn.disableMonospaceOptimizations,sn.fontInfo.canUseHalfwidthRightwardsArrow,kt,!1,an,dn,0,$e,yt,sn.tabSize,0,sn.fontInfo.spaceWidth,sn.fontInfo.middotWidth,sn.fontInfo.wsmiddotWidth,sn.stopRenderingLineAfter,sn.renderWhitespace,sn.renderControlCharacters,sn.fontLigatures!==v.Bc.OFF,null),zt);return zt.appendString(""),bn.characterMapping.getHorizontalOffset(bn.characterMapping.length)}var Mi=e("./node_modules/monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js"),xi=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),ci=function(cn,$e,yt,jt){var Vt=arguments.length,Ut=Vt<3?$e:jt===null?jt=Object.getOwnPropertyDescriptor($e,yt):jt,sn;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ut=Reflect.decorate(cn,$e,yt,jt);else for(var zt=cn.length-1;zt>=0;zt--)(sn=cn[zt])&&(Ut=(Vt<3?sn(Ut):Vt>3?sn($e,yt,Ut):sn($e,yt))||Ut);return Vt>3&&Ut&&Object.defineProperty($e,yt,Ut),Ut},Ii=function(cn,$e){return function(yt,jt){$e(yt,jt,cn)}};let Si=class extends L.jG{constructor($e,yt,jt,Vt,Ut,sn,zt,kt,an,dn){super(),this._targetWindow=$e,this._editors=yt,this._diffModel=jt,this._options=Vt,this._diffEditorWidget=Ut,this._canIgnoreViewZoneUpdateEvent=sn,this._origViewZonesToIgnore=zt,this._modViewZonesToIgnore=kt,this._clipboardService=an,this._contextMenuService=dn,this._originalTopPadding=(0,g.FY)(this,0),this._originalScrollOffset=(0,g.FY)(this,0),this._originalScrollOffsetAnimated=(0,h.Nu)(this._targetWindow,this._originalScrollOffset,this._store),this._modifiedTopPadding=(0,g.FY)(this,0),this._modifiedScrollOffset=(0,g.FY)(this,0),this._modifiedScrollOffsetAnimated=(0,h.Nu)(this._targetWindow,this._modifiedScrollOffset,this._store);const bn=(0,g.FY)("invalidateAlignmentsState",0),xn=this._register(new ge.uC(()=>{bn.set(bn.get()+1,void 0)},0));this._register(this._editors.original.onDidChangeViewZones(qn=>{this._canIgnoreViewZoneUpdateEvent()||xn.schedule()})),this._register(this._editors.modified.onDidChangeViewZones(qn=>{this._canIgnoreViewZoneUpdateEvent()||xn.schedule()})),this._register(this._editors.original.onDidChangeConfiguration(qn=>{(qn.hasChanged(146)||qn.hasChanged(67))&&xn.schedule()})),this._register(this._editors.modified.onDidChangeConfiguration(qn=>{(qn.hasChanged(146)||qn.hasChanged(67))&&xn.schedule()}));const jn=this._diffModel.map(qn=>qn?(0,g.y0)(qn.model.original.onDidChangeTokens,()=>qn.model.original.tokenization.backgroundTokenizationState===2):void 0).map((qn,yn)=>qn?.read(yn)),pn=(0,g.un)(qn=>{const yn=this._diffModel.read(qn),ht=yn?.diff.read(qn);if(!yn||!ht)return null;bn.read(qn);const Q=this._options.renderSideBySide.read(qn);return Ti(this._editors.original,this._editors.modified,ht.mappings,this._origViewZonesToIgnore,this._modViewZonesToIgnore,Q)}),Wn=(0,g.un)(qn=>{var yn;const ht=(yn=this._diffModel.read(qn))===null||yn===void 0?void 0:yn.movedTextToCompare.read(qn);if(!ht)return null;bn.read(qn);const R=ht.changes.map(Q=>new Nt(Q));return Ti(this._editors.original,this._editors.modified,R,this._origViewZonesToIgnore,this._modViewZonesToIgnore,!0)});function Qn(){const qn=document.createElement("div");return qn.className="diagonal-fill",qn}const ui=this._register(new L.Cm);this.viewZones=(0,g.rm)(this,(qn,yn)=>{var ht,R,Q,ce,Re,Fe,Ze,wt;ui.clear();const Lt=pn.read(qn)||[],Qt=[],Xt=[],$t=this._modifiedTopPadding.read(qn);$t>0&&Xt.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:$t,showInHiddenAreas:!0,suppressMouseDown:!0});const on=this._originalTopPadding.read(qn);on>0&&Qt.push({afterLineNumber:0,domNode:document.createElement("div"),heightInPx:on,showInHiddenAreas:!0,suppressMouseDown:!0});const un=this._options.renderSideBySide.read(qn),Cn=un||(ht=this._editors.modified._getViewModel())===null||ht===void 0?void 0:ht.createLineBreaksComputer();if(Cn){const Ei=this._editors.original.getModel();for(const Ri of Lt)if(Ri.diff)for(let ao=Ri.originalRange.startLineNumber;aoEi.getLineCount())return{orig:Qt,mod:Xt};Cn?.addRequest(Ei.getLineContent(ao),null,null)}}const kn=(R=Cn?.finalize())!==null&&R!==void 0?R:[];let Pn=0;const zn=this._editors.modified.getOption(67),ni=(Q=this._diffModel.read(qn))===null||Q===void 0?void 0:Q.movedTextToCompare.read(qn),hi=(Re=(ce=this._editors.original.getModel())===null||ce===void 0?void 0:ce.mightContainNonBasicASCII())!==null&&Re!==void 0?Re:!1,ji=(Ze=(Fe=this._editors.original.getModel())===null||Fe===void 0?void 0:Fe.mightContainRTL())!==null&&Ze!==void 0?Ze:!1,Yi=ri.fromEditor(this._editors.modified);for(const Ei of Lt)if(Ei.diff&&!un){if(!Ei.originalRange.isEmpty){jn.read(qn);const ao=document.createElement("div");ao.classList.add("view-lines","line-delete","monaco-mouse-cursor-text");const no=this._editors.original.getModel();if(Ei.originalRange.endLineNumberExclusive-1>no.getLineCount())return{orig:Qt,mod:Xt};const Lo=new yi(Ei.originalRange.mapToLineArray(Vi=>no.tokenization.getLineTokens(Vi)),Ei.originalRange.mapToLineArray(Vi=>kn[Pn++]),hi,ji),Xi=[];for(const Vi of Ei.diff.innerChanges||[])Xi.push(new P.kI(Vi.originalRange.delta(-(Ei.diff.original.startLineNumber-1)),qe.Zb.className,0));const To=mi(Lo,Yi,Xi,ao),co=document.createElement("div");if(co.className="inline-deleted-margin-view-zone",(0,C.M)(co,Yi.fontInfo),this._options.renderIndicators.read(qn))for(let Vi=0;Vi(0,be.eU)(yo),co,this._editors.modified,Ei.diff,this._diffEditorWidget,To.viewLineCounts,this._editors.original.getModel(),this._contextMenuService,this._clipboardService));for(let Vi=0;Vi1&&Qt.push({afterLineNumber:Ei.originalRange.startLineNumber+Vi,domNode:Qn(),heightInPx:(uo-1)*zn,showInHiddenAreas:!0,suppressMouseDown:!0})}Xt.push({afterLineNumber:Ei.modifiedRange.startLineNumber-1,domNode:ao,heightInPx:To.heightInLines*zn,minWidthInPx:To.minWidthInPx,marginDomNode:co,setZoneId(Vi){yo=Vi},showInHiddenAreas:!0,suppressMouseDown:!0})}const Ri=document.createElement("div");Ri.className="gutter-delete",Qt.push({afterLineNumber:Ei.originalRange.endLineNumberExclusive-1,domNode:Qn(),heightInPx:Ei.modifiedHeightInPx,marginDomNode:Ri,showInHiddenAreas:!0,suppressMouseDown:!0})}else{const Ri=Ei.modifiedHeightInPx-Ei.originalHeightInPx;if(Ri>0){if(ni?.lineRangeMapping.original.delta(-1).deltaLength(2).contains(Ei.originalRange.endLineNumberExclusive-1))continue;Qt.push({afterLineNumber:Ei.originalRange.endLineNumberExclusive-1,domNode:Qn(),heightInPx:Ri,showInHiddenAreas:!0,suppressMouseDown:!0})}else{let ao=function(){const Lo=document.createElement("div");return Lo.className="arrow-revert-change "+u.L.asClassName(m.W.arrowRight),yn.add((0,r.ko)(Lo,"mousedown",Xi=>Xi.stopPropagation())),yn.add((0,r.ko)(Lo,"click",Xi=>{Xi.stopPropagation(),Ut.revert(Ei.diff)})),(0,r.$)("div",{},Lo)};if(ni?.lineRangeMapping.modified.delta(-1).deltaLength(2).contains(Ei.modifiedRange.endLineNumberExclusive-1))continue;let no;Ei.diff&&Ei.diff.modified.isEmpty&&this._options.shouldRenderOldRevertArrows.read(qn)&&(no=ao()),Xt.push({afterLineNumber:Ei.modifiedRange.endLineNumberExclusive-1,domNode:Qn(),heightInPx:-Ri,marginDomNode:no,showInHiddenAreas:!0,suppressMouseDown:!0})}}for(const Ei of(wt=Wn.read(qn))!==null&&wt!==void 0?wt:[]){if(!ni?.lineRangeMapping.original.intersect(Ei.originalRange)||!ni?.lineRangeMapping.modified.intersect(Ei.modifiedRange))continue;const Ri=Ei.modifiedHeightInPx-Ei.originalHeightInPx;Ri>0?Qt.push({afterLineNumber:Ei.originalRange.endLineNumberExclusive-1,domNode:Qn(),heightInPx:Ri,showInHiddenAreas:!0,suppressMouseDown:!0}):Xt.push({afterLineNumber:Ei.modifiedRange.endLineNumberExclusive-1,domNode:Qn(),heightInPx:-Ri,showInHiddenAreas:!0,suppressMouseDown:!0})}return{orig:Qt,mod:Xt}});let vi=!1;this._register(this._editors.original.onDidScrollChange(qn=>{qn.scrollLeftChanged&&!vi&&(vi=!0,this._editors.modified.setScrollLeft(qn.scrollLeft),vi=!1)})),this._register(this._editors.modified.onDidScrollChange(qn=>{qn.scrollLeftChanged&&!vi&&(vi=!0,this._editors.original.setScrollLeft(qn.scrollLeft),vi=!1)})),this._originalScrollTop=(0,g.y0)(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=(0,g.y0)(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._register((0,g.fm)(qn=>{const yn=this._originalScrollTop.read(qn)-(this._originalScrollOffsetAnimated.get()-this._modifiedScrollOffsetAnimated.read(qn))-(this._originalTopPadding.get()-this._modifiedTopPadding.read(qn));yn!==this._editors.modified.getScrollTop()&&this._editors.modified.setScrollTop(yn,1)})),this._register((0,g.fm)(qn=>{const yn=this._modifiedScrollTop.read(qn)-(this._modifiedScrollOffsetAnimated.get()-this._originalScrollOffsetAnimated.read(qn))-(this._modifiedTopPadding.get()-this._originalTopPadding.read(qn));yn!==this._editors.original.getScrollTop()&&this._editors.original.setScrollTop(yn,1)})),this._register((0,g.fm)(qn=>{var yn;const ht=(yn=this._diffModel.read(qn))===null||yn===void 0?void 0:yn.movedTextToCompare.read(qn);let R=0;if(ht){const Q=this._editors.original.getTopForLineNumber(ht.lineRangeMapping.original.startLineNumber,!0)-this._originalTopPadding.get();R=this._editors.modified.getTopForLineNumber(ht.lineRangeMapping.modified.startLineNumber,!0)-this._modifiedTopPadding.get()-Q}R>0?(this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(R,void 0)):R<0?(this._modifiedTopPadding.set(-R,void 0),this._originalTopPadding.set(0,void 0)):setTimeout(()=>{this._modifiedTopPadding.set(0,void 0),this._originalTopPadding.set(0,void 0)},400),this._editors.modified.hasTextFocus()?this._originalScrollOffset.set(this._modifiedScrollOffset.get()-R,void 0,!0):this._modifiedScrollOffset.set(this._originalScrollOffset.get()+R,void 0,!0)}))}};Si=ci([Ii(8,Mi.h),Ii(9,xi.Z)],Si);function Ti(cn,$e,yt,jt,Vt,Ut){const sn=new c.j3(Nn(cn,jt)),zt=new c.j3(Nn($e,Vt)),kt=cn.getOption(67),an=$e.getOption(67),dn=[];let bn=0,xn=0;function jn(pn,Wn){for(;;){let Qn=sn.peek(),ui=zt.peek();if(Qn&&Qn.lineNumber>=pn&&(Qn=void 0),ui&&ui.lineNumber>=Wn&&(ui=void 0),!Qn&&!ui)break;const vi=Qn?Qn.lineNumber-bn:Number.MAX_VALUE,qn=ui?ui.lineNumber-xn:Number.MAX_VALUE;viqn?(zt.dequeue(),Qn={lineNumber:ui.lineNumber-xn+bn,heightInPx:0}):(sn.dequeue(),zt.dequeue()),dn.push({originalRange:p.M.ofLength(Qn.lineNumber,1),modifiedRange:p.M.ofLength(ui.lineNumber,1),originalHeightInPx:kt+Qn.heightInPx,modifiedHeightInPx:an+ui.heightInPx,diff:void 0})}}for(const pn of yt){let qn=function(yn,ht){var R,Q,ce,Re;if(ynQt.lineNumberQt+Xt.heightInPx,0))!==null&&Q!==void 0?Q:0,Lt=(Re=(ce=zt.takeWhile(Qt=>Qt.lineNumberQt+Xt.heightInPx,0))!==null&&Re!==void 0?Re:0;dn.push({originalRange:Fe,modifiedRange:Ze,originalHeightInPx:Fe.length*kt+wt,modifiedHeightInPx:Ze.length*an+Lt,diff:pn.lineRangeMapping}),vi=yn,ui=ht};const Wn=pn.lineRangeMapping;jn(Wn.original.startLineNumber,Wn.modified.startLineNumber);let Qn=!0,ui=Wn.modified.startLineNumber,vi=Wn.original.startLineNumber;if(Ut)for(const yn of Wn.innerChanges||[]){yn.originalRange.startColumn>1&&yn.modifiedRange.startColumn>1&&qn(yn.originalRange.startLineNumber,yn.modifiedRange.startLineNumber);const ht=cn.getModel(),R=yn.originalRange.endLineNumber<=ht.getLineCount()?ht.getLineMaxColumn(yn.originalRange.endLineNumber):Number.MAX_SAFE_INTEGER;yn.originalRange.endColumn1&&jt.push({lineNumber:kt,heightInPx:sn*(an-1)})}for(const kt of cn.getWhitespaces()){if($e.has(kt.id))continue;const an=kt.afterLineNumber===0?0:Ut.convertViewPositionToModelPosition(new O.y(kt.afterLineNumber,1)).lineNumber;yt.push({lineNumber:an,heightInPx:kt.height})}return(0,h.Am)(yt,jt,kt=>kt.lineNumber,(kt,an)=>({lineNumber:kt.lineNumber,heightInPx:kt.heightInPx+an.heightInPx}))}var Vn=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js"),Yn=e("./node_modules/monaco-editor/esm/vs/base/browser/fastDomNode.js"),Di=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollbarState.js"),Ai=e("./node_modules/monaco-editor/esm/vs/editor/common/viewModel/overviewZoneManager.js"),Sn=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),Ye=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),mt=function(cn,$e,yt,jt){var Vt=arguments.length,Ut=Vt<3?$e:jt===null?jt=Object.getOwnPropertyDescriptor($e,yt):jt,sn;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ut=Reflect.decorate(cn,$e,yt,jt);else for(var zt=cn.length-1;zt>=0;zt--)(sn=cn[zt])&&(Ut=(Vt<3?sn(Ut):Vt>3?sn($e,yt,Ut):sn($e,yt))||Ut);return Vt>3&&Ut&&Object.defineProperty($e,yt,Ut),Ut},ze=function(cn,$e){return function(yt,jt){$e(yt,jt,cn)}},Ke;let Je=Ke=class extends L.jG{constructor($e,yt,jt,Vt,Ut,sn,zt){super(),this._editors=$e,this._rootElement=yt,this._diffModel=jt,this._rootWidth=Vt,this._rootHeight=Ut,this._modifiedEditorLayoutInfo=sn,this._themeService=zt,this.width=Ke.ENTIRE_DIFF_OVERVIEW_WIDTH;const kt=(0,g.y0)(this._themeService.onDidColorThemeChange,()=>this._themeService.getColorTheme()),an=(0,g.un)(xn=>{const jn=kt.read(xn),pn=jn.getColor(Sn.ld8)||(jn.getColor(Sn.Gj6)||Sn.EY1).transparent(2),Wn=jn.getColor(Sn.$BZ)||(jn.getColor(Sn.GNm)||Sn.ZEf).transparent(2);return{insertColor:pn,removeColor:Wn}}),dn=(0,Yn.Z)(document.createElement("div"));dn.setClassName("diffViewport"),dn.setPosition("absolute");const bn=(0,r.h)("div.diffOverview",{style:{position:"absolute",top:"0px",width:Ke.ENTIRE_DIFF_OVERVIEW_WIDTH+"px"}}).root;this._register((0,h.rX)(bn,dn.domNode)),this._register((0,r.b2)(bn,r.Bx.POINTER_DOWN,xn=>{this._editors.modified.delegateVerticalScrollbarPointerDown(xn)})),this._register((0,r.ko)(bn,r.Bx.MOUSE_WHEEL,xn=>{this._editors.modified.delegateScrollFromMouseWheelEvent(xn)},{passive:!1})),this._register((0,h.rX)(this._rootElement,bn)),this._register((0,g.yC)((xn,jn)=>{const pn=this._diffModel.read(xn),Wn=this._editors.original.createOverviewRuler("original diffOverviewRuler");Wn&&(jn.add(Wn),jn.add((0,h.rX)(bn,Wn.getDomNode())));const Qn=this._editors.modified.createOverviewRuler("modified diffOverviewRuler");if(Qn&&(jn.add(Qn),jn.add((0,h.rX)(bn,Qn.getDomNode()))),!Wn||!Qn)return;const ui=(0,g.yQ)("viewZoneChanged",this._editors.original.onDidChangeViewZones),vi=(0,g.yQ)("viewZoneChanged",this._editors.modified.onDidChangeViewZones),qn=(0,g.yQ)("hiddenRangesChanged",this._editors.original.onDidChangeHiddenAreas),yn=(0,g.yQ)("hiddenRangesChanged",this._editors.modified.onDidChangeHiddenAreas);jn.add((0,g.fm)(ht=>{var R;ui.read(ht),vi.read(ht),qn.read(ht),yn.read(ht);const Q=an.read(ht),ce=(R=pn?.diff.read(ht))===null||R===void 0?void 0:R.mappings;function Re(wt,Lt,Qt){const Xt=Qt._getViewModel();return Xt?wt.filter($t=>$t.length>0).map($t=>{const on=Xt.coordinatesConverter.convertModelPositionToViewPosition(new O.y($t.startLineNumber,1)),un=Xt.coordinatesConverter.convertModelPositionToViewPosition(new O.y($t.endLineNumberExclusive,1)),Cn=un.lineNumber-on.lineNumber;return new Ai.iE(on.lineNumber,un.lineNumber,Cn,Lt.toString())}):[]}const Fe=Re((ce||[]).map(wt=>wt.lineRangeMapping.original),Q.removeColor,this._editors.original),Ze=Re((ce||[]).map(wt=>wt.lineRangeMapping.modified),Q.insertColor,this._editors.modified);Wn?.setZones(Fe),Qn?.setZones(Ze)})),jn.add((0,g.fm)(ht=>{const R=this._rootHeight.read(ht),Q=this._rootWidth.read(ht),ce=this._modifiedEditorLayoutInfo.read(ht);if(ce){const Re=Ke.ENTIRE_DIFF_OVERVIEW_WIDTH-2*Ke.ONE_OVERVIEW_WIDTH;Wn.setLayout({top:0,height:R,right:Re+Ke.ONE_OVERVIEW_WIDTH,width:Ke.ONE_OVERVIEW_WIDTH}),Qn.setLayout({top:0,height:R,right:0,width:Ke.ONE_OVERVIEW_WIDTH});const Fe=this._editors.modifiedScrollTop.read(ht),Ze=this._editors.modifiedScrollHeight.read(ht),wt=this._editors.modified.getOption(103),Lt=new Di.m(wt.verticalHasArrows?wt.arrowSize:0,wt.verticalScrollbarSize,0,ce.height,Ze,Fe);dn.setTop(Lt.getSliderPosition()),dn.setHeight(Lt.getSliderSize())}else dn.setTop(0),dn.setHeight(0);bn.style.height=R+"px",bn.style.left=Q-Ke.ENTIRE_DIFF_OVERVIEW_WIDTH+"px",dn.setWidth(Ke.ENTIRE_DIFF_OVERVIEW_WIDTH)}))}))}};Je.ONE_OVERVIEW_WIDTH=15,Je.ENTIRE_DIFF_OVERVIEW_WIDTH=Ke.ONE_OVERVIEW_WIDTH*2,Je=Ke=mt([ze(6,Ye.Gy)],Je);var Ne=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabels.js"),ft=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js");const St=[];class rt extends L.jG{constructor($e,yt,jt,Vt){super(),this._editors=$e,this._diffModel=yt,this._options=jt,this._widget=Vt,this._selectedDiffs=(0,g.un)(this,Ut=>{const sn=this._diffModel.read(Ut),zt=sn?.diff.read(Ut);if(!zt)return St;const kt=this._editors.modifiedSelections.read(Ut);if(kt.every(xn=>xn.isEmpty()))return St;const an=new p.S(kt.map(xn=>p.M.fromRangeInclusive(xn))),bn=zt.mappings.filter(xn=>xn.lineRangeMapping.innerChanges&&an.intersects(xn.lineRangeMapping.modified)).map(xn=>({mapping:xn,rangeMappings:xn.lineRangeMapping.innerChanges.filter(jn=>kt.some(pn=>w.Q.areIntersecting(jn.modifiedRange,pn)))}));return bn.length===0||bn.every(xn=>xn.rangeMappings.length===0)?St:bn}),this._register((0,g.yC)((Ut,sn)=>{if(!this._options.shouldRenderOldRevertArrows.read(Ut))return;const zt=this._diffModel.read(Ut),kt=zt?.diff.read(Ut);if(!zt||!kt||zt.movedTextToCompare.read(Ut))return;const an=[],dn=this._selectedDiffs.read(Ut),bn=new Set(dn.map(xn=>xn.mapping));if(dn.length>0){const xn=this._editors.modifiedSelections.read(Ut),jn=sn.add(new Ge(xn[xn.length-1].positionLineNumber,this._widget,dn.flatMap(pn=>pn.rangeMappings),!0));this._editors.modified.addGlyphMarginWidget(jn),an.push(jn)}for(const xn of kt.mappings)if(!bn.has(xn)&&!xn.lineRangeMapping.modified.isEmpty&&xn.lineRangeMapping.innerChanges){const jn=sn.add(new Ge(xn.lineRangeMapping.modified.startLineNumber,this._widget,xn.lineRangeMapping,!1));this._editors.modified.addGlyphMarginWidget(jn),an.push(jn)}sn.add((0,L.s)(()=>{for(const xn of an)this._editors.modified.removeGlyphMarginWidget(xn)}))}))}}class Ge extends L.jG{getId(){return this._id}constructor($e,yt,jt,Vt){super(),this._lineNumber=$e,this._widget=yt,this._diffs=jt,this._revertSelection=Vt,this._id=`revertButton${Ge.counter++}`,this._domNode=(0,r.h)("div.revertButton",{title:this._revertSelection?(0,A.kg)("revertSelectedChanges","Revert Selected Changes"):(0,A.kg)("revertChange","Revert Change")},[(0,Ne.s)(m.W.arrowRight)]).root,this._register((0,r.ko)(this._domNode,r.Bx.MOUSE_DOWN,Ut=>{Ut.button!==2&&(Ut.stopPropagation(),Ut.preventDefault())})),this._register((0,r.ko)(this._domNode,r.Bx.MOUSE_UP,Ut=>{Ut.stopPropagation(),Ut.preventDefault()})),this._register((0,r.ko)(this._domNode,r.Bx.CLICK,Ut=>{this._diffs instanceof j.WL?this._widget.revert(this._diffs):this._widget.revertRangeMappings(this._diffs),Ut.stopPropagation(),Ut.preventDefault()}))}getDomNode(){return this._domNode}getPosition(){return{lane:ft.ZS.Right,range:{startColumn:1,startLineNumber:this._lineNumber,endColumn:1,endLineNumber:this._lineNumber},zIndex:10001}}}Ge.counter=0;var nt=e("./node_modules/monaco-editor/esm/vs/editor/common/editorCommon.js"),it=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),bt=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),Dt=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js"),At=e("./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"),et=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),at=function(cn,$e,yt,jt){var Vt=arguments.length,Ut=Vt<3?$e:jt===null?jt=Object.getOwnPropertyDescriptor($e,yt):jt,sn;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ut=Reflect.decorate(cn,$e,yt,jt);else for(var zt=cn.length-1;zt>=0;zt--)(sn=cn[zt])&&(Ut=(Vt<3?sn(Ut):Vt>3?sn($e,yt,Ut):sn($e,yt))||Ut);return Vt>3&&Ut&&Object.defineProperty($e,yt,Ut),Ut},Tt=function(cn,$e){return function(yt,jt){$e(yt,jt,cn)}};let dt=class extends L.jG{get onDidContentSizeChange(){return this._onDidContentSizeChange.event}constructor($e,yt,jt,Vt,Ut,sn,zt){super(),this.originalEditorElement=$e,this.modifiedEditorElement=yt,this._options=jt,this._argCodeEditorWidgetOptions=Vt,this._createInnerEditor=Ut,this._instantiationService=sn,this._keybindingService=zt,this.original=this._register(this._createLeftHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.originalEditor||{})),this.modified=this._register(this._createRightHandSideEditor(this._options.editorOptions.get(),this._argCodeEditorWidgetOptions.modifiedEditor||{})),this._onDidContentSizeChange=this._register(new M.vl),this.modifiedScrollTop=(0,g.y0)(this.modified.onDidScrollChange,()=>this.modified.getScrollTop()),this.modifiedScrollHeight=(0,g.y0)(this.modified.onDidScrollChange,()=>this.modified.getScrollHeight()),this.modifiedModel=(0,g.y0)(this.modified.onDidChangeModel,()=>this.modified.getModel()),this.modifiedSelections=(0,g.y0)(this.modified.onDidChangeCursorSelection,()=>{var kt;return(kt=this.modified.getSelections())!==null&&kt!==void 0?kt:[]}),this.modifiedCursor=(0,g.C)({owner:this,equalityComparer:O.y.equals},kt=>{var an,dn;return(dn=(an=this.modifiedSelections.read(kt)[0])===null||an===void 0?void 0:an.getPosition())!==null&&dn!==void 0?dn:new O.y(1,1)}),this.originalCursor=(0,g.y0)(this.original.onDidChangeCursorPosition,()=>{var kt;return(kt=this.original.getPosition())!==null&&kt!==void 0?kt:new O.y(1,1)}),this._argCodeEditorWidgetOptions=null,this._register((0,g.Y)({createEmptyChangeSummary:()=>({}),handleChange:(kt,an)=>(kt.didChange(jt.editorOptions)&&Object.assign(an,kt.change.changedOptions),!0)},(kt,an)=>{jt.editorOptions.read(kt),this._options.renderSideBySide.read(kt),this.modified.updateOptions(this._adjustOptionsForRightHandSide(kt,an)),this.original.updateOptions(this._adjustOptionsForLeftHandSide(kt,an))}))}_createLeftHandSideEditor($e,yt){const jt=this._adjustOptionsForLeftHandSide(void 0,$e),Vt=this._constructInnerEditor(this._instantiationService,this.originalEditorElement,jt,yt);return Vt.setContextValue("isInDiffLeftEditor",!0),Vt}_createRightHandSideEditor($e,yt){const jt=this._adjustOptionsForRightHandSide(void 0,$e),Vt=this._constructInnerEditor(this._instantiationService,this.modifiedEditorElement,jt,yt);return Vt.setContextValue("isInDiffRightEditor",!0),Vt}_constructInnerEditor($e,yt,jt,Vt){const Ut=this._createInnerEditor($e,yt,jt,Vt);return this._register(Ut.onDidContentSizeChange(sn=>{const zt=this.original.getContentWidth()+this.modified.getContentWidth()+Je.ENTIRE_DIFF_OVERVIEW_WIDTH,kt=Math.max(this.modified.getContentHeight(),this.original.getContentHeight());this._onDidContentSizeChange.fire({contentHeight:kt,contentWidth:zt,contentHeightChanged:sn.contentHeightChanged,contentWidthChanged:sn.contentWidthChanged})})),Ut}_adjustOptionsForLeftHandSide($e,yt){const jt=this._adjustOptionsForSubEditor(yt);return this._options.renderSideBySide.get()?(jt.unicodeHighlight=this._options.editorOptions.get().unicodeHighlight||{},jt.wordWrapOverride1=this._options.diffWordWrap.get()):(jt.wordWrapOverride1="off",jt.wordWrapOverride2="off",jt.stickyScroll={enabled:!1},jt.unicodeHighlight={nonBasicASCII:!1,ambiguousCharacters:!1,invisibleCharacters:!1}),jt.glyphMargin=this._options.renderSideBySide.get(),yt.originalAriaLabel&&(jt.ariaLabel=yt.originalAriaLabel),jt.ariaLabel=this._updateAriaLabel(jt.ariaLabel),jt.readOnly=!this._options.originalEditable.get(),jt.dropIntoEditor={enabled:!jt.readOnly},jt.extraEditorClassName="original-in-monaco-diff-editor",jt}_adjustOptionsForRightHandSide($e,yt){const jt=this._adjustOptionsForSubEditor(yt);return yt.modifiedAriaLabel&&(jt.ariaLabel=yt.modifiedAriaLabel),jt.ariaLabel=this._updateAriaLabel(jt.ariaLabel),jt.wordWrapOverride1=this._options.diffWordWrap.get(),jt.revealHorizontalRightPadding=v.qB.revealHorizontalRightPadding.defaultValue+Je.ENTIRE_DIFF_OVERVIEW_WIDTH,jt.scrollbar.verticalHasArrows=!1,jt.extraEditorClassName="modified-in-monaco-diff-editor",jt}_adjustOptionsForSubEditor($e){const yt={...$e,dimension:{height:0,width:0}};return yt.inDiffEditor=!0,yt.automaticLayout=!1,yt.scrollbar={...yt.scrollbar||{}},yt.folding=!1,yt.codeLens=this._options.diffCodeLens.get(),yt.fixedOverflowWidgets=!0,yt.minimap={...yt.minimap||{}},yt.minimap.enabled=!1,this._options.hideUnchangedRegions.get()?yt.stickyScroll={enabled:!1}:yt.stickyScroll=this._options.editorOptions.get().stickyScroll,yt}_updateAriaLabel($e){var yt;$e||($e="");const jt=(0,A.kg)("diff-aria-navigation-tip"," use {0} to open the accessibility help.",(yt=this._keybindingService.lookupKeybinding("editor.action.accessibilityHelp"))===null||yt===void 0?void 0:yt.getAriaLabel());return this._options.accessibilityVerbose.get()?$e+jt:$e?$e.replaceAll(jt,""):""}};dt=at([Tt(5,E._Y),Tt(6,et.b)],dt);class Ae extends L.jG{constructor(){super(...arguments),this._id=++Ae.idCounter,this._onDidDispose=this._register(new M.vl),this.onDidDispose=this._onDidDispose.event}getId(){return this.getEditorType()+":v2:"+this._id}getVisibleColumnFromPosition($e){return this._targetEditor.getVisibleColumnFromPosition($e)}getPosition(){return this._targetEditor.getPosition()}setPosition($e,yt="api"){this._targetEditor.setPosition($e,yt)}revealLine($e,yt=0){this._targetEditor.revealLine($e,yt)}revealLineInCenter($e,yt=0){this._targetEditor.revealLineInCenter($e,yt)}revealLineInCenterIfOutsideViewport($e,yt=0){this._targetEditor.revealLineInCenterIfOutsideViewport($e,yt)}revealLineNearTop($e,yt=0){this._targetEditor.revealLineNearTop($e,yt)}revealPosition($e,yt=0){this._targetEditor.revealPosition($e,yt)}revealPositionInCenter($e,yt=0){this._targetEditor.revealPositionInCenter($e,yt)}revealPositionInCenterIfOutsideViewport($e,yt=0){this._targetEditor.revealPositionInCenterIfOutsideViewport($e,yt)}revealPositionNearTop($e,yt=0){this._targetEditor.revealPositionNearTop($e,yt)}getSelection(){return this._targetEditor.getSelection()}getSelections(){return this._targetEditor.getSelections()}setSelection($e,yt="api"){this._targetEditor.setSelection($e,yt)}setSelections($e,yt="api"){this._targetEditor.setSelections($e,yt)}revealLines($e,yt,jt=0){this._targetEditor.revealLines($e,yt,jt)}revealLinesInCenter($e,yt,jt=0){this._targetEditor.revealLinesInCenter($e,yt,jt)}revealLinesInCenterIfOutsideViewport($e,yt,jt=0){this._targetEditor.revealLinesInCenterIfOutsideViewport($e,yt,jt)}revealLinesNearTop($e,yt,jt=0){this._targetEditor.revealLinesNearTop($e,yt,jt)}revealRange($e,yt=0,jt=!1,Vt=!0){this._targetEditor.revealRange($e,yt,jt,Vt)}revealRangeInCenter($e,yt=0){this._targetEditor.revealRangeInCenter($e,yt)}revealRangeInCenterIfOutsideViewport($e,yt=0){this._targetEditor.revealRangeInCenterIfOutsideViewport($e,yt)}revealRangeNearTop($e,yt=0){this._targetEditor.revealRangeNearTop($e,yt)}revealRangeNearTopIfOutsideViewport($e,yt=0){this._targetEditor.revealRangeNearTopIfOutsideViewport($e,yt)}revealRangeAtTop($e,yt=0){this._targetEditor.revealRangeAtTop($e,yt)}getSupportedActions(){return this._targetEditor.getSupportedActions()}focus(){this._targetEditor.focus()}trigger($e,yt,jt){this._targetEditor.trigger($e,yt,jt)}createDecorationsCollection($e){return this._targetEditor.createDecorationsCollection($e)}changeDecorations($e){return this._targetEditor.changeDecorations($e)}}Ae.idCounter=0;var ct=e("./node_modules/monaco-editor/esm/vs/editor/common/config/diffEditor.js"),ut=e("./node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js"),je=function(cn,$e,yt,jt){var Vt=arguments.length,Ut=Vt<3?$e:jt===null?jt=Object.getOwnPropertyDescriptor($e,yt):jt,sn;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ut=Reflect.decorate(cn,$e,yt,jt);else for(var zt=cn.length-1;zt>=0;zt--)(sn=cn[zt])&&(Ut=(Vt<3?sn(Ut):Vt>3?sn($e,yt,Ut):sn($e,yt))||Ut);return Vt>3&&Ut&&Object.defineProperty($e,yt,Ut),Ut},Rt=function(cn,$e){return function(yt,jt){$e(yt,jt,cn)}};let Ft=class{get editorOptions(){return this._options}constructor($e,yt){this._accessibilityService=yt,this._diffEditorWidth=(0,g.FY)(this,0),this._screenReaderMode=(0,g.y0)(this._accessibilityService.onDidChangeScreenReaderOptimized,()=>this._accessibilityService.isScreenReaderOptimized()),this.couldShowInlineViewBecauseOfSize=(0,g.un)(this,Vt=>this._options.read(Vt).renderSideBySide&&this._diffEditorWidth.read(Vt)<=this._options.read(Vt).renderSideBySideInlineBreakpoint),this.renderOverviewRuler=(0,g.un)(this,Vt=>this._options.read(Vt).renderOverviewRuler),this.renderSideBySide=(0,g.un)(this,Vt=>this._options.read(Vt).renderSideBySide&&!(this._options.read(Vt).useInlineViewWhenSpaceIsLimited&&this.couldShowInlineViewBecauseOfSize.read(Vt)&&!this._screenReaderMode.read(Vt))),this.readOnly=(0,g.un)(this,Vt=>this._options.read(Vt).readOnly),this.shouldRenderOldRevertArrows=(0,g.un)(this,Vt=>!(!this._options.read(Vt).renderMarginRevertIcon||!this.renderSideBySide.read(Vt)||this.readOnly.read(Vt)||this.shouldRenderGutterMenu.read(Vt))),this.shouldRenderGutterMenu=(0,g.un)(this,Vt=>this._options.read(Vt).renderGutterMenu),this.renderIndicators=(0,g.un)(this,Vt=>this._options.read(Vt).renderIndicators),this.enableSplitViewResizing=(0,g.un)(this,Vt=>this._options.read(Vt).enableSplitViewResizing),this.splitViewDefaultRatio=(0,g.un)(this,Vt=>this._options.read(Vt).splitViewDefaultRatio),this.ignoreTrimWhitespace=(0,g.un)(this,Vt=>this._options.read(Vt).ignoreTrimWhitespace),this.maxComputationTimeMs=(0,g.un)(this,Vt=>this._options.read(Vt).maxComputationTime),this.showMoves=(0,g.un)(this,Vt=>this._options.read(Vt).experimental.showMoves&&this.renderSideBySide.read(Vt)),this.isInEmbeddedEditor=(0,g.un)(this,Vt=>this._options.read(Vt).isInEmbeddedEditor),this.diffWordWrap=(0,g.un)(this,Vt=>this._options.read(Vt).diffWordWrap),this.originalEditable=(0,g.un)(this,Vt=>this._options.read(Vt).originalEditable),this.diffCodeLens=(0,g.un)(this,Vt=>this._options.read(Vt).diffCodeLens),this.accessibilityVerbose=(0,g.un)(this,Vt=>this._options.read(Vt).accessibilityVerbose),this.diffAlgorithm=(0,g.un)(this,Vt=>this._options.read(Vt).diffAlgorithm),this.showEmptyDecorations=(0,g.un)(this,Vt=>this._options.read(Vt).experimental.showEmptyDecorations),this.onlyShowAccessibleDiffViewer=(0,g.un)(this,Vt=>this._options.read(Vt).onlyShowAccessibleDiffViewer),this.hideUnchangedRegions=(0,g.un)(this,Vt=>this._options.read(Vt).hideUnchangedRegions.enabled),this.hideUnchangedRegionsRevealLineCount=(0,g.un)(this,Vt=>this._options.read(Vt).hideUnchangedRegions.revealLineCount),this.hideUnchangedRegionsContextLineCount=(0,g.un)(this,Vt=>this._options.read(Vt).hideUnchangedRegions.contextLineCount),this.hideUnchangedRegionsMinimumLineCount=(0,g.un)(this,Vt=>this._options.read(Vt).hideUnchangedRegions.minimumLineCount);const jt={...$e,...ln($e,ct.q)};this._options=(0,g.FY)(this,jt)}updateOptions($e){const yt=ln($e,this._options.get()),jt={...this._options.get(),...$e,...yt};this._options.set(jt,void 0,{changedOptions:$e})}setWidth($e){this._diffEditorWidth.set($e,void 0)}};Ft=je([Rt(1,ut.j)],Ft);function ln(cn,$e){var yt,jt,Vt,Ut,sn,zt,kt,an;return{enableSplitViewResizing:(0,v.zM)(cn.enableSplitViewResizing,$e.enableSplitViewResizing),splitViewDefaultRatio:(0,v.ls)(cn.splitViewDefaultRatio,.5,.1,.9),renderSideBySide:(0,v.zM)(cn.renderSideBySide,$e.renderSideBySide),renderMarginRevertIcon:(0,v.zM)(cn.renderMarginRevertIcon,$e.renderMarginRevertIcon),maxComputationTime:(0,v.wA)(cn.maxComputationTime,$e.maxComputationTime,0,1073741824),maxFileSize:(0,v.wA)(cn.maxFileSize,$e.maxFileSize,0,1073741824),ignoreTrimWhitespace:(0,v.zM)(cn.ignoreTrimWhitespace,$e.ignoreTrimWhitespace),renderIndicators:(0,v.zM)(cn.renderIndicators,$e.renderIndicators),originalEditable:(0,v.zM)(cn.originalEditable,$e.originalEditable),diffCodeLens:(0,v.zM)(cn.diffCodeLens,$e.diffCodeLens),renderOverviewRuler:(0,v.zM)(cn.renderOverviewRuler,$e.renderOverviewRuler),diffWordWrap:(0,v.O4)(cn.diffWordWrap,$e.diffWordWrap,["off","on","inherit"]),diffAlgorithm:(0,v.O4)(cn.diffAlgorithm,$e.diffAlgorithm,["legacy","advanced"],{smart:"legacy",experimental:"advanced"}),accessibilityVerbose:(0,v.zM)(cn.accessibilityVerbose,$e.accessibilityVerbose),experimental:{showMoves:(0,v.zM)((yt=cn.experimental)===null||yt===void 0?void 0:yt.showMoves,$e.experimental.showMoves),showEmptyDecorations:(0,v.zM)((jt=cn.experimental)===null||jt===void 0?void 0:jt.showEmptyDecorations,$e.experimental.showEmptyDecorations)},hideUnchangedRegions:{enabled:(0,v.zM)((Ut=(Vt=cn.hideUnchangedRegions)===null||Vt===void 0?void 0:Vt.enabled)!==null&&Ut!==void 0?Ut:(sn=cn.experimental)===null||sn===void 0?void 0:sn.collapseUnchangedRegions,$e.hideUnchangedRegions.enabled),contextLineCount:(0,v.wA)((zt=cn.hideUnchangedRegions)===null||zt===void 0?void 0:zt.contextLineCount,$e.hideUnchangedRegions.contextLineCount,0,1073741824),minimumLineCount:(0,v.wA)((kt=cn.hideUnchangedRegions)===null||kt===void 0?void 0:kt.minimumLineCount,$e.hideUnchangedRegions.minimumLineCount,0,1073741824),revealLineCount:(0,v.wA)((an=cn.hideUnchangedRegions)===null||an===void 0?void 0:an.revealLineCount,$e.hideUnchangedRegions.revealLineCount,0,1073741824)},isInEmbeddedEditor:(0,v.zM)(cn.isInEmbeddedEditor,$e.isInEmbeddedEditor),onlyShowAccessibleDiffViewer:(0,v.zM)(cn.onlyShowAccessibleDiffViewer,$e.onlyShowAccessibleDiffViewer),renderSideBySideInlineBreakpoint:(0,v.wA)(cn.renderSideBySideInlineBreakpoint,$e.renderSideBySideInlineBreakpoint,0,1073741824),useInlineViewWhenSpaceIsLimited:(0,v.zM)(cn.useInlineViewWhenSpaceIsLimited,$e.useInlineViewWhenSpaceIsLimited),renderGutterMenu:(0,v.zM)(cn.renderGutterMenu,$e.renderGutterMenu)}}class vn extends L.jG{constructor($e,yt,jt){super(),this._editor=$e,this._domNode=yt,this.itemProvider=jt,this.scrollTop=(0,g.y0)(this._editor.onDidScrollChange,sn=>this._editor.getScrollTop()),this.isScrollTopZero=this.scrollTop.map(sn=>sn===0),this.modelAttached=(0,g.y0)(this._editor.onDidChangeModel,sn=>this._editor.hasModel()),this.editorOnDidChangeViewZones=(0,g.yQ)("onDidChangeViewZones",this._editor.onDidChangeViewZones),this.editorOnDidContentSizeChange=(0,g.yQ)("onDidContentSizeChange",this._editor.onDidContentSizeChange),this.domNodeSizeChanged=(0,g.Yd)("domNodeSizeChanged"),this.views=new Map,this._domNode.className="gutter monaco-editor";const Vt=this._domNode.appendChild((0,r.h)("div.scroll-decoration",{role:"presentation",ariaHidden:"true",style:{width:"100%"}}).root),Ut=new ResizeObserver(()=>{(0,g.Rn)(sn=>{this.domNodeSizeChanged.trigger(sn)})});Ut.observe(this._domNode),this._register((0,L.s)(()=>Ut.disconnect())),this._register((0,g.fm)(sn=>{Vt.className=this.isScrollTopZero.read(sn)?"":"scroll-decoration"})),this._register((0,g.fm)(sn=>this.render(sn)))}dispose(){super.dispose(),(0,r.Ln)(this._domNode)}render($e){if(!this.modelAttached.read($e))return;this.domNodeSizeChanged.read($e),this.editorOnDidChangeViewZones.read($e),this.editorOnDidContentSizeChange.read($e);const yt=this.scrollTop.read($e),jt=this._editor.getVisibleRanges(),Vt=new Set(this.views.keys()),Ut=b.L.ofStartAndLength(0,this._domNode.clientHeight);if(!Ut.isEmpty)for(const sn of jt){const zt=new p.M(sn.startLineNumber,sn.endLineNumber+1),kt=this.itemProvider.getIntersectingGutterItems(zt,$e);(0,g.Rn)(an=>{for(const dn of kt){if(!dn.range.intersect(zt))continue;Vt.delete(dn.id);let bn=this.views.get(dn.id);if(bn)bn.item.set(dn,an);else{const Wn=document.createElement("div");this._domNode.appendChild(Wn);const Qn=(0,g.FY)("item",dn),ui=this.itemProvider.createView(Qn,Wn);bn=new Ln(Qn,ui,Wn),this.views.set(dn.id,bn)}const xn=dn.range.startLineNumber<=this._editor.getModel().getLineCount()?this._editor.getTopForLineNumber(dn.range.startLineNumber,!0)-yt:this._editor.getBottomForLineNumber(dn.range.startLineNumber-1,!1)-yt,pn=(dn.range.isEmpty?xn:this._editor.getBottomForLineNumber(dn.range.endLineNumberExclusive-1,!0)-yt)-xn;bn.domNode.style.top=`${xn}px`,bn.domNode.style.height=`${pn}px`,bn.gutterItemView.layout(b.L.ofStartAndLength(xn,pn),Ut)}})}for(const sn of Vt){const zt=this.views.get(sn);zt.gutterItemView.dispose(),this._domNode.removeChild(zt.domNode),this.views.delete(sn)}}}class Ln{constructor($e,yt,jt){this.item=$e,this.gutterItemView=yt,this.domNode=jt}}var En=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/multiDiffEditor/utils.js"),In=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textEdit.js"),ei=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textLength.js");class en extends In.CO{constructor($e){super(),this._textModel=$e}getValueOfRange($e){return this._textModel.getValueInRange($e)}get length(){const $e=this._textModel.getLineCount(),yt=this._textModel.getLineLength($e);return new ei.W($e-1,yt)}}var xe=e("./node_modules/monaco-editor/esm/vs/platform/actions/browser/toolbar.js"),st=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),Wt=e("./node_modules/monaco-editor/esm/vs/platform/hover/browser/hover.js"),rn=function(cn,$e,yt,jt){var Vt=arguments.length,Ut=Vt<3?$e:jt===null?jt=Object.getOwnPropertyDescriptor($e,yt):jt,sn;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ut=Reflect.decorate(cn,$e,yt,jt);else for(var zt=cn.length-1;zt>=0;zt--)(sn=cn[zt])&&(Ut=(Vt<3?sn(Ut):Vt>3?sn($e,yt,Ut):sn($e,yt))||Ut);return Vt>3&&Ut&&Object.defineProperty($e,yt,Ut),Ut},hn=function(cn,$e){return function(yt,jt){$e(yt,jt,cn)}};const Dn=[],On=35;let Bn=class extends L.jG{constructor($e,yt,jt,Vt,Ut,sn){super(),this._diffModel=yt,this._editors=jt,this._instantiationService=Vt,this._contextKeyService=Ut,this._menuService=sn,this._menu=this._register(this._menuService.createMenu(st.D8.DiffEditorHunkToolbar,this._contextKeyService)),this._actions=(0,g.y0)(this._menu.onDidChange,()=>this._menu.getActions()),this._hasActions=this._actions.map(zt=>zt.length>0),this.width=(0,g.un)(this,zt=>this._hasActions.read(zt)?On:0),this.elements=(0,r.h)("div.gutter@gutter",{style:{position:"absolute",height:"100%",width:On+"px"}},[]),this._currentDiff=(0,g.un)(this,zt=>{var kt;const an=this._diffModel.read(zt);if(!an)return;const dn=(kt=an.diff.read(zt))===null||kt===void 0?void 0:kt.mappings,bn=this._editors.modifiedCursor.read(zt);if(bn)return dn?.find(xn=>xn.lineRangeMapping.modified.contains(bn.lineNumber))}),this._selectedDiffs=(0,g.un)(this,zt=>{const kt=this._diffModel.read(zt),an=kt?.diff.read(zt);if(!an)return Dn;const dn=this._editors.modifiedSelections.read(zt);if(dn.every(pn=>pn.isEmpty()))return Dn;const bn=new p.S(dn.map(pn=>p.M.fromRangeInclusive(pn))),jn=an.mappings.filter(pn=>pn.lineRangeMapping.innerChanges&&bn.intersects(pn.lineRangeMapping.modified)).map(pn=>({mapping:pn,rangeMappings:pn.lineRangeMapping.innerChanges.filter(Wn=>dn.some(Qn=>w.Q.areIntersecting(Wn.modifiedRange,Qn)))}));return jn.length===0||jn.every(pn=>pn.rangeMappings.length===0)?Dn:jn}),this._register((0,h.$y)($e,this.elements.root)),this._register((0,r.ko)(this.elements.root,"click",()=>{this._editors.modified.focus()})),this._register((0,h.AV)(this.elements.root,{display:this._hasActions.map(zt=>zt?"block":"none")})),this._register(new vn(this._editors.modified,this.elements.root,{getIntersectingGutterItems:(zt,kt)=>{const an=this._diffModel.read(kt);if(!an)return[];const dn=an.diff.read(kt);if(!dn)return[];const bn=this._selectedDiffs.read(kt);if(bn.length>0){const jn=j.wm.fromRangeMappings(bn.flatMap(pn=>pn.rangeMappings));return[new oi(jn,!0,st.D8.DiffEditorSelectionToolbar,void 0,an.model.original.uri,an.model.modified.uri)]}const xn=this._currentDiff.read(kt);return dn.mappings.map(jn=>new oi(jn.lineRangeMapping.withInnerChangesFromLineRanges(),jn.lineRangeMapping===xn?.lineRangeMapping,st.D8.DiffEditorHunkToolbar,void 0,an.model.original.uri,an.model.modified.uri))},createView:(zt,kt)=>this._instantiationService.createInstance($n,zt,kt,this)})),this._register((0,r.ko)(this.elements.gutter,r.Bx.MOUSE_WHEEL,zt=>{this._editors.modified.getOption(103).handleMouseWheel&&this._editors.modified.delegateScrollFromMouseWheelEvent(zt)},{passive:!1}))}computeStagedValue($e){var yt;const jt=(yt=$e.innerChanges)!==null&&yt!==void 0?yt:[];return new In.mF(jt.map(sn=>new In.WR(sn.originalRange,this._editors.modifiedModel.get().getValueInRange(sn.modifiedRange)))).apply(new en(this._editors.original.getModel()))}layout($e){this.elements.gutter.style.left=$e+"px"}};Bn=rn([hn(3,E._Y),hn(4,bt.fN),hn(5,st.ez)],Bn);class oi{constructor($e,yt,jt,Vt,Ut,sn){this.mapping=$e,this.showAlways=yt,this.menuId=jt,this.rangeOverride=Vt,this.originalUri=Ut,this.modifiedUri=sn}get id(){return this.mapping.modified.toString()}get range(){var $e;return($e=this.rangeOverride)!==null&&$e!==void 0?$e:this.mapping.modified}}let $n=class extends L.jG{constructor($e,yt,jt,Vt){super(),this._item=$e,this._elements=(0,r.h)("div.gutterItem",{style:{height:"20px",width:"34px"}},[(0,r.h)("div.background@background",{},[]),(0,r.h)("div.buttons@buttons",{},[])]),this._showAlways=this._item.map(this,sn=>sn.showAlways),this._menuId=this._item.map(this,sn=>sn.menuId),this._isSmall=(0,g.FY)(this,!1),this._lastItemRange=void 0,this._lastViewRange=void 0;const Ut=this._register(Vt.createInstance(Wt.fO,"element",!0,{position:{hoverPosition:1}}));this._register((0,h.rX)(yt,this._elements.root)),this._register((0,g.fm)(sn=>{const zt=this._showAlways.read(sn);this._elements.root.classList.toggle("noTransition",!0),this._elements.root.classList.toggle("showAlways",zt),setTimeout(()=>{this._elements.root.classList.toggle("noTransition",!1)},0)})),this._register((0,g.yC)((sn,zt)=>{this._elements.buttons.replaceChildren();const kt=zt.add(Vt.createInstance(xe.m,this._elements.buttons,this._menuId.read(sn),{orientation:1,hoverDelegate:Ut,toolbarOptions:{primaryGroup:an=>an.startsWith("primary")},overflowBehavior:{maxItems:this._isSmall.read(sn)?1:3},hiddenItemStrategy:0,actionRunner:new En.I(()=>{const an=this._item.get(),dn=an.mapping;return{mapping:dn,originalWithModifiedChanges:jt.computeStagedValue(dn),originalUri:an.originalUri,modifiedUri:an.modifiedUri}}),menuOptions:{shouldForwardArgs:!0}}));zt.add(kt.onDidChangeMenuItems(()=>{this._lastItemRange&&this.layout(this._lastItemRange,this._lastViewRange)}))}))}layout($e,yt){this._lastItemRange=$e,this._lastViewRange=yt;let jt=this._elements.buttons.clientHeight;this._isSmall.set(this._item.get().mapping.original.startLineNumber===1&&$e.length<30,void 0),jt=this._elements.buttons.clientHeight,this._elements.root.style.top=$e.start+"px",this._elements.root.style.height=$e.length+"px";const Vt=$e.length/2-jt/2,Ut=jt;let sn=$e.start+Vt;const zt=b.L.tryCreate(Ut,yt.endExclusive-Ut-jt),kt=b.L.tryCreate($e.start+Ut,$e.endExclusive-jt-Ut);kt&&zt&&kt.start=0;zt--)(sn=cn[zt])&&(Ut=(Vt<3?sn(Ut):Vt>3?sn($e,yt,Ut):sn($e,yt))||Ut);return Vt>3&&Ut&&Object.defineProperty($e,yt,Ut),Ut},Jn=function(cn,$e){return function(yt,jt){$e(yt,jt,cn)}};let Un=class extends Ae{get onDidContentSizeChange(){return this._editors.onDidContentSizeChange}constructor($e,yt,jt,Vt,Ut,sn,zt,kt){var an;super(),this._domElement=$e,this._parentContextKeyService=Vt,this._parentInstantiationService=Ut,this._accessibilitySignalService=zt,this._editorProgressService=kt,this.elements=(0,r.h)("div.monaco-diff-editor.side-by-side",{style:{position:"relative",height:"100%"}},[(0,r.h)("div.noModificationsOverlay@overlay",{style:{position:"absolute",height:"100%",visibility:"hidden"}},[(0,r.$)("span",{},"No Changes")]),(0,r.h)("div.editor.original@original",{style:{position:"absolute",height:"100%"}}),(0,r.h)("div.editor.modified@modified",{style:{position:"absolute",height:"100%"}}),(0,r.h)("div.accessibleDiffViewer@accessibleDiffViewer",{style:{position:"absolute",height:"100%"}})]),this._diffModel=(0,g.FY)(this,void 0),this._shouldDisposeDiffModel=!1,this.onDidChangeModel=M.Jh.fromObservableLight(this._diffModel),this._contextKeyService=this._register(this._parentContextKeyService.createScoped(this._domElement)),this._instantiationService=this._parentInstantiationService.createChild(new Dt.a([bt.fN,this._contextKeyService])),this._boundarySashes=(0,g.FY)(this,void 0),this._accessibleDiffViewerShouldBeVisible=(0,g.FY)(this,!1),this._accessibleDiffViewerVisible=(0,g.un)(this,yn=>this._options.onlyShowAccessibleDiffViewer.read(yn)?!0:this._accessibleDiffViewerShouldBeVisible.read(yn)),this._movedBlocksLinesPart=(0,g.FY)(this,void 0),this._layoutInfo=(0,g.un)(this,yn=>{var ht,R,Q,ce,Re;const Fe=this._rootSizeObserver.width.read(yn),Ze=this._rootSizeObserver.height.read(yn),wt=this._sash.read(yn),Lt=this._gutter.read(yn),Qt=(ht=Lt?.width.read(yn))!==null&&ht!==void 0?ht:0,Xt=(Q=(R=this._overviewRulerPart.read(yn))===null||R===void 0?void 0:R.width)!==null&&Q!==void 0?Q:0;let $t,on,un,Cn,kn;if(!!wt){const zn=wt.sashLeft.read(yn),ni=(Re=(ce=this._movedBlocksLinesPart.read(yn))===null||ce===void 0?void 0:ce.width.read(yn))!==null&&Re!==void 0?Re:0;$t=0,on=zn-Qt-ni,kn=zn-Qt,un=zn,Cn=Fe-un-Xt}else kn=0,$t=Qt,on=Math.max(5,this._editors.original.getLayoutInfo().decorationsLeft),un=Qt+on,Cn=Fe-un-Xt;return this.elements.original.style.left=$t+"px",this.elements.original.style.width=on+"px",this._editors.original.layout({width:on,height:Ze},!0),Lt?.layout(kn),this.elements.modified.style.left=un+"px",this.elements.modified.style.width=Cn+"px",this._editors.modified.layout({width:Cn,height:Ze},!0),{modifiedEditor:this._editors.modified.getLayoutInfo(),originalEditor:this._editors.original.getLayoutInfo()}}),this._diffValue=this._diffModel.map((yn,ht)=>yn?.diff.read(ht)),this.onDidUpdateDiff=M.Jh.fromObservableLight(this._diffValue),sn.willCreateDiffEditor(),this._contextKeyService.createKey("isInDiffEditor",!0),this._domElement.appendChild(this.elements.root),this._register((0,L.s)(()=>this._domElement.removeChild(this.elements.root))),this._rootSizeObserver=this._register(new h.pN(this.elements.root,yt.dimension)),this._rootSizeObserver.setAutomaticLayout((an=yt.automaticLayout)!==null&&an!==void 0?an:!1),this._options=this._instantiationService.createInstance(Ft,yt),this._register((0,g.fm)(yn=>{this._options.setWidth(this._rootSizeObserver.width.read(yn))})),this._contextKeyService.createKey(it.R.isEmbeddedDiffEditor.key,!1),this._register((0,h.wp)(it.R.isEmbeddedDiffEditor,this._contextKeyService,yn=>this._options.isInEmbeddedEditor.read(yn))),this._register((0,h.wp)(it.R.comparingMovedCode,this._contextKeyService,yn=>{var ht;return!!(!((ht=this._diffModel.read(yn))===null||ht===void 0)&&ht.movedTextToCompare.read(yn))})),this._register((0,h.wp)(it.R.diffEditorRenderSideBySideInlineBreakpointReached,this._contextKeyService,yn=>this._options.couldShowInlineViewBecauseOfSize.read(yn))),this._register((0,h.wp)(it.R.diffEditorInlineMode,this._contextKeyService,yn=>!this._options.renderSideBySide.read(yn))),this._register((0,h.wp)(it.R.hasChanges,this._contextKeyService,yn=>{var ht,R,Q;return((Q=(R=(ht=this._diffModel.read(yn))===null||ht===void 0?void 0:ht.diff.read(yn))===null||R===void 0?void 0:R.mappings.length)!==null&&Q!==void 0?Q:0)>0})),this._editors=this._register(this._instantiationService.createInstance(dt,this.elements.original,this.elements.modified,this._options,jt,(yn,ht,R,Q)=>this._createInnerEditor(yn,ht,R,Q))),this._register((0,h.wp)(it.R.diffEditorOriginalWritable,this._contextKeyService,yn=>this._options.originalEditable.read(yn))),this._register((0,h.wp)(it.R.diffEditorModifiedWritable,this._contextKeyService,yn=>!this._options.readOnly.read(yn))),this._register((0,h.wp)(it.R.diffEditorOriginalUri,this._contextKeyService,yn=>{var ht,R;return(R=(ht=this._diffModel.read(yn))===null||ht===void 0?void 0:ht.model.original.uri.toString())!==null&&R!==void 0?R:""})),this._register((0,h.wp)(it.R.diffEditorModifiedUri,this._contextKeyService,yn=>{var ht,R;return(R=(ht=this._diffModel.read(yn))===null||ht===void 0?void 0:ht.model.modified.uri.toString())!==null&&R!==void 0?R:""})),this._overviewRulerPart=(0,x.a0)(this,yn=>this._options.renderOverviewRuler.read(yn)?this._instantiationService.createInstance((0,h.b6)(Je,yn),this._editors,this.elements.root,this._diffModel,this._rootSizeObserver.width,this._rootSizeObserver.height,this._layoutInfo.map(ht=>ht.modifiedEditor)):void 0).recomputeInitiallyAndOnChange(this._store),this._sash=(0,x.a0)(this,yn=>{const ht=this._options.renderSideBySide.read(yn);return this.elements.root.classList.toggle("side-by-side",ht),ht?new ye(this._options,this.elements.root,{height:this._rootSizeObserver.height,width:this._rootSizeObserver.width.map((R,Q)=>{var ce,Re;return R-((Re=(ce=this._overviewRulerPart.read(Q))===null||ce===void 0?void 0:ce.width)!==null&&Re!==void 0?Re:0)})},this._boundarySashes):void 0}).recomputeInitiallyAndOnChange(this._store);const dn=(0,x.a0)(this,yn=>this._instantiationService.createInstance((0,h.b6)(Vn.N,yn),this._editors,this._diffModel,this._options)).recomputeInitiallyAndOnChange(this._store);(0,x.a0)(this,yn=>this._instantiationService.createInstance((0,h.b6)(Qe,yn),this._editors,this._diffModel,this._options,this)).recomputeInitiallyAndOnChange(this._store);const bn=new Set,xn=new Set;let jn=!1;const pn=(0,x.a0)(this,yn=>this._instantiationService.createInstance((0,h.b6)(Si,yn),(0,r.zk)(this._domElement),this._editors,this._diffModel,this._options,this,()=>jn||dn.get().isUpdatingHiddenAreas,bn,xn)).recomputeInitiallyAndOnChange(this._store),Wn=(0,g.un)(this,yn=>{const ht=pn.read(yn).viewZones.read(yn).orig,R=dn.read(yn).viewZones.read(yn).origViewZones;return ht.concat(R)}),Qn=(0,g.un)(this,yn=>{const ht=pn.read(yn).viewZones.read(yn).mod,R=dn.read(yn).viewZones.read(yn).modViewZones;return ht.concat(R)});this._register((0,h.Vs)(this._editors.original,Wn,yn=>{jn=yn},bn));let ui;this._register((0,h.Vs)(this._editors.modified,Qn,yn=>{jn=yn,jn?ui=f.D.capture(this._editors.modified):(ui?.restore(this._editors.modified),ui=void 0)},xn)),this._accessibleDiffViewer=(0,x.a0)(this,yn=>this._instantiationService.createInstance((0,h.b6)(Y,yn),this.elements.accessibleDiffViewer,this._accessibleDiffViewerVisible,(ht,R)=>this._accessibleDiffViewerShouldBeVisible.set(ht,R),this._options.onlyShowAccessibleDiffViewer.map(ht=>!ht),this._rootSizeObserver.width,this._rootSizeObserver.height,this._diffModel.map((ht,R)=>{var Q;return(Q=ht?.diff.read(R))===null||Q===void 0?void 0:Q.mappings.map(ce=>ce.lineRangeMapping)}),new ee(this._editors))).recomputeInitiallyAndOnChange(this._store);const vi=this._accessibleDiffViewerVisible.map(yn=>yn?"hidden":"visible");this._register((0,h.AV)(this.elements.modified,{visibility:vi})),this._register((0,h.AV)(this.elements.original,{visibility:vi})),this._createDiffEditorContributions(),sn.addDiffEditor(this),this._gutter=(0,x.a0)(this,yn=>this._options.shouldRenderGutterMenu.read(yn)?this._instantiationService.createInstance((0,h.b6)(Bn,yn),this.elements.root,this._diffModel,this._editors):void 0),this._register((0,g.OI)(this._layoutInfo)),(0,x.a0)(this,yn=>new((0,h.b6)(De,yn))(this.elements.root,this._diffModel,this._layoutInfo.map(ht=>ht.originalEditor),this._layoutInfo.map(ht=>ht.modifiedEditor),this._editors)).recomputeInitiallyAndOnChange(this._store,yn=>{this._movedBlocksLinesPart.set(yn,void 0)}),this._register((0,h.AV)(this.elements.overlay,{width:this._layoutInfo.map((yn,ht)=>yn.originalEditor.width+(this._options.renderSideBySide.read(ht)?0:yn.modifiedEditor.width)),visibility:(0,g.un)(yn=>{var ht,R;return this._options.hideUnchangedRegions.read(yn)&&((R=(ht=this._diffModel.read(yn))===null||ht===void 0?void 0:ht.diff.read(yn))===null||R===void 0?void 0:R.mappings.length)===0?"visible":"hidden"})})),this._register(M.Jh.runAndSubscribe(this._editors.modified.onDidChangeCursorPosition,yn=>this._handleCursorPositionChange(yn,!0))),this._register(M.Jh.runAndSubscribe(this._editors.original.onDidChangeCursorPosition,yn=>this._handleCursorPositionChange(yn,!1)));const qn=this._diffModel.map(this,(yn,ht)=>{if(yn)return yn.diff.read(ht)===void 0&&!yn.isDiffUpToDate.read(ht)});this._register((0,g.yC)((yn,ht)=>{if(qn.read(yn)===!0){const R=this._editorProgressService.show(!0,1e3);ht.add((0,L.s)(()=>R.done()))}})),this._register((0,L.s)(()=>{var yn;this._shouldDisposeDiffModel&&((yn=this._diffModel.get())===null||yn===void 0||yn.dispose())})),this._register((0,g.yC)((yn,ht)=>{ht.add(new((0,h.b6)(rt,yn))(this._editors,this._diffModel,this._options,this))}))}_createInnerEditor($e,yt,jt,Vt){return $e.createInstance(d.x,yt,jt,Vt)}_createDiffEditorContributions(){const $e=I.dS.getDiffEditorContributions();for(const yt of $e)try{this._register(this._instantiationService.createInstance(yt.ctor,this))}catch(jt){(0,k.dz)(jt)}}get _targetEditor(){return this._editors.modified}getEditorType(){return nt._.IDiffEditor}layout($e){this._rootSizeObserver.observe($e)}hasTextFocus(){return this._editors.original.hasTextFocus()||this._editors.modified.hasTextFocus()}saveViewState(){var $e;const yt=this._editors.original.saveViewState(),jt=this._editors.modified.saveViewState();return{original:yt,modified:jt,modelState:($e=this._diffModel.get())===null||$e===void 0?void 0:$e.serializeState()}}restoreViewState($e){var yt;if($e&&$e.original&&$e.modified){const jt=$e;this._editors.original.restoreViewState(jt.original),this._editors.modified.restoreViewState(jt.modified),jt.modelState&&((yt=this._diffModel.get())===null||yt===void 0||yt.restoreSerializedState(jt.modelState))}}handleInitialized(){this._editors.original.handleInitialized(),this._editors.modified.handleInitialized()}createViewModel($e){return this._instantiationService.createInstance(Mt,$e,this._options)}getModel(){var $e,yt;return(yt=($e=this._diffModel.get())===null||$e===void 0?void 0:$e.model)!==null&&yt!==void 0?yt:null}setModel($e,yt){!$e&&this._diffModel.get()&&this._accessibleDiffViewer.get().close();const jt=$e?"model"in $e?{model:$e,shouldDispose:!1}:{model:this.createViewModel($e),shouldDispose:!0}:void 0;this._diffModel.get()!==jt?.model&&(0,g.PO)(yt,Vt=>{var Ut;g.y0.batchEventsGlobally(Vt,()=>{this._editors.original.setModel(jt?jt.model.model.original:null),this._editors.modified.setModel(jt?jt.model.model.modified:null)});const sn=this._diffModel.get(),zt=this._shouldDisposeDiffModel;this._shouldDisposeDiffModel=(Ut=jt?.shouldDispose)!==null&&Ut!==void 0?Ut:!1,this._diffModel.set(jt?.model,Vt),zt&&sn?.dispose()})}updateOptions($e){this._options.updateOptions($e)}getContainerDomNode(){return this._domElement}getOriginalEditor(){return this._editors.original}getModifiedEditor(){return this._editors.modified}getLineChanges(){var $e;const yt=($e=this._diffModel.get())===null||$e===void 0?void 0:$e.diff.get();return yt?Rn(yt):null}revert($e){const yt=this._diffModel.get();!yt||!yt.isDiffUpToDate.get()||this._editors.modified.executeEdits("diffEditor",[{range:$e.modified.toExclusiveRange(),text:yt.model.original.getValueInRange($e.original.toExclusiveRange())}])}revertRangeMappings($e){const yt=this._diffModel.get();if(!yt||!yt.isDiffUpToDate.get())return;const jt=$e.map(Vt=>({range:Vt.modifiedRange,text:yt.model.original.getValueInRange(Vt.originalRange)}));this._editors.modified.executeEdits("diffEditor",jt)}_goTo($e){this._editors.modified.setPosition(new O.y($e.lineRangeMapping.modified.startLineNumber,1)),this._editors.modified.revealRangeInCenter($e.lineRangeMapping.modified.toExclusiveRange())}goToDiff($e){var yt,jt,Vt,Ut;const sn=(jt=(yt=this._diffModel.get())===null||yt===void 0?void 0:yt.diff.get())===null||jt===void 0?void 0:jt.mappings;if(!sn||sn.length===0)return;const zt=this._editors.modified.getPosition().lineNumber;let kt;$e==="next"?kt=(Vt=sn.find(an=>an.lineRangeMapping.modified.startLineNumber>zt))!==null&&Vt!==void 0?Vt:sn[0]:kt=(Ut=(0,F.Uk)(sn,an=>an.lineRangeMapping.modified.startLineNumber{var yt;const jt=(yt=$e.diff.get())===null||yt===void 0?void 0:yt.mappings;!jt||jt.length===0||this._goTo(jt[0])})}accessibleDiffViewerNext(){this._accessibleDiffViewer.get().next()}accessibleDiffViewerPrev(){this._accessibleDiffViewer.get().prev()}async waitForDiff(){const $e=this._diffModel.get();$e&&await $e.waitForDiff()}mapToOtherSide(){var $e,yt;const jt=this._editors.modified.hasWidgetFocus(),Vt=jt?this._editors.modified:this._editors.original,Ut=jt?this._editors.original:this._editors.modified;let sn;const zt=Vt.getSelection();if(zt){const kt=(yt=($e=this._diffModel.get())===null||$e===void 0?void 0:$e.diff.get())===null||yt===void 0?void 0:yt.mappings.map(an=>jt?an.lineRangeMapping.flip():an.lineRangeMapping);if(kt){const an=(0,h.Mu)(zt.getStartPosition(),kt),dn=(0,h.Mu)(zt.getEndPosition(),kt);sn=w.Q.plusRange(an,dn)}}return{destination:Ut,destinationSelection:sn}}switchSide(){const{destination:$e,destinationSelection:yt}=this.mapToOtherSide();$e.focus(),yt&&$e.setSelection(yt)}exitCompareMove(){const $e=this._diffModel.get();$e&&$e.movedTextToCompare.set(void 0,void 0)}collapseAllUnchangedRegions(){var $e;const yt=($e=this._diffModel.get())===null||$e===void 0?void 0:$e.unchangedRegions.get();yt&&(0,g.Rn)(jt=>{for(const Vt of yt)Vt.collapseAll(jt)})}showAllUnchangedRegions(){var $e;const yt=($e=this._diffModel.get())===null||$e===void 0?void 0:$e.unchangedRegions.get();yt&&(0,g.Rn)(jt=>{for(const Vt of yt)Vt.showAll(jt)})}_handleCursorPositionChange($e,yt){var jt,Vt;if($e?.reason===3){const Ut=(Vt=(jt=this._diffModel.get())===null||jt===void 0?void 0:jt.diff.get())===null||Vt===void 0?void 0:Vt.mappings.find(sn=>yt?sn.lineRangeMapping.modified.contains($e.position.lineNumber):sn.lineRangeMapping.original.contains($e.position.lineNumber));Ut?.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(T.Rh.diffLineDeleted,{source:"diffEditor.cursorPositionChanged"}):Ut?.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(T.Rh.diffLineInserted,{source:"diffEditor.cursorPositionChanged"}):Ut&&this._accessibilitySignalService.playSignal(T.Rh.diffLineModified,{source:"diffEditor.cursorPositionChanged"})}}};Un=ti([Jn(3,bt.fN),Jn(4,E._Y),Jn(5,S.T),Jn(6,T.Nt),Jn(7,At.N8)],Un);function Rn(cn){return cn.mappings.map($e=>{const yt=$e.lineRangeMapping;let jt,Vt,Ut,sn,zt=yt.innerChanges;return yt.original.isEmpty?(jt=yt.original.startLineNumber-1,Vt=0,zt=void 0):(jt=yt.original.startLineNumber,Vt=yt.original.endLineNumberExclusive-1),yt.modified.isEmpty?(Ut=yt.modified.startLineNumber-1,sn=0,zt=void 0):(Ut=yt.modified.startLineNumber,sn=yt.modified.endLineNumberExclusive-1),{originalStartLineNumber:jt,originalEndLineNumber:Vt,modifiedStartLineNumber:Ut,modifiedEndLineNumber:sn,charChanges:zt?.map(kt=>({originalStartLineNumber:kt.originalRange.startLineNumber,originalStartColumn:kt.originalRange.startColumn,originalEndLineNumber:kt.originalRange.endLineNumber,originalEndColumn:kt.originalRange.endColumn,modifiedStartLineNumber:kt.modifiedRange.startLineNumber,modifiedStartColumn:kt.modifiedRange.startColumn,modifiedEndLineNumber:kt.modifiedRange.endLineNumber,modifiedEndColumn:kt.modifiedRange.endColumn}))}})}},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js":function(pt,Me,e){e.d(Me,{N:function(){return h}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabels.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/derived.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),i=e("./node_modules/monaco-editor/esm/vs/nls.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),m=function(p,b,O,w){var j=arguments.length,U=j<3?b:w===null?w=Object.getOwnPropertyDescriptor(b,O):w,K;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(p,b,O,w);else for(var G=p.length-1;G>=0;G--)(K=p[G])&&(U=(j<3?K(U):j>3?K(b,O,U):K(b,O))||U);return j>3&&U&&Object.defineProperty(b,O,U),U},u=function(p,b){return function(O,w){b(O,w,p)}},C;let h=C=class extends L.jG{static setBreadcrumbsSourceFactory(b){this._breadcrumbsSourceFactory.set(b,void 0)}get isUpdatingHiddenAreas(){return this._isUpdatingHiddenAreas}constructor(b,O,w,j){super(),this._editors=b,this._diffModel=O,this._options=w,this._instantiationService=j,this._modifiedOutlineSource=(0,x.a0)(this,P=>{const A=this._editors.modifiedModel.read(P),T=C._breadcrumbsSourceFactory.read(P);return!A||!T?void 0:T(A,this._instantiationService)}),this._isUpdatingHiddenAreas=!1,this._register(this._editors.original.onDidChangeCursorPosition(P=>{if(P.reason===1)return;const A=this._diffModel.get();(0,g.Rn)(T=>{for(const E of this._editors.original.getSelections()||[])A?.ensureOriginalLineIsVisible(E.getStartPosition().lineNumber,0,T),A?.ensureOriginalLineIsVisible(E.getEndPosition().lineNumber,0,T)})})),this._register(this._editors.modified.onDidChangeCursorPosition(P=>{if(P.reason===1)return;const A=this._diffModel.get();(0,g.Rn)(T=>{for(const E of this._editors.modified.getSelections()||[])A?.ensureModifiedLineIsVisible(E.getStartPosition().lineNumber,0,T),A?.ensureModifiedLineIsVisible(E.getEndPosition().lineNumber,0,T)})}));const U=this._diffModel.map((P,A)=>{var T,E;const W=(T=P?.unchangedRegions.read(A))!==null&&T!==void 0?T:[];return W.length===1&&W[0].modifiedLineNumber===1&&W[0].lineCount===((E=this._editors.modifiedModel.read(A))===null||E===void 0?void 0:E.getLineCount())?[]:W});this.viewZones=(0,g.rm)(this,(P,A)=>{const T=this._modifiedOutlineSource.read(P);if(!T)return{origViewZones:[],modViewZones:[]};const E=[],W=[],$=this._options.renderSideBySide.read(P),z=U.read(P);for(const J of z)if(!J.shouldHideControls(P)){{const B=(0,g.un)(this,Y=>J.getHiddenOriginalRange(Y).startLineNumber-1),V=new f.D1(B,24);E.push(V),A.add(new v(this._editors.original,V,J,J.originalUnchangedRange,!$,T,Y=>this._diffModel.get().ensureModifiedLineIsVisible(Y,2,void 0),this._options))}{const B=(0,g.un)(this,Y=>J.getHiddenModifiedRange(Y).startLineNumber-1),V=new f.D1(B,24);W.push(V),A.add(new v(this._editors.modified,V,J,J.modifiedUnchangedRange,!1,T,Y=>this._diffModel.get().ensureModifiedLineIsVisible(Y,2,void 0),this._options))}}return{origViewZones:E,modViewZones:W}});const K={description:"unchanged lines",className:"diff-unchanged-lines",isWholeLine:!0},G={description:"Fold Unchanged",glyphMarginHoverMessage:new M.Bc(void 0,{isTrusted:!0,supportThemeIcons:!0}).appendMarkdown((0,i.kg)("foldUnchanged","Fold Unchanged Region")),glyphMarginClassName:"fold-unchanged "+I.L.asClassName(k.W.fold),zIndex:10001};this._register((0,f.pY)(this._editors.original,(0,g.un)(this,P=>{const A=U.read(P),T=A.map(E=>({range:E.originalUnchangedRange.toInclusiveRange(),options:K}));for(const E of A)E.shouldHideControls(P)&&T.push({range:s.Q.fromPositions(new a.y(E.originalLineNumber,1)),options:G});return T}))),this._register((0,f.pY)(this._editors.modified,(0,g.un)(this,P=>{const A=U.read(P),T=A.map(E=>({range:E.modifiedUnchangedRange.toInclusiveRange(),options:K}));for(const E of A)E.shouldHideControls(P)&&T.push({range:d.M.ofLength(E.modifiedLineNumber,1).toInclusiveRange(),options:G});return T}))),this._register((0,g.fm)(P=>{const A=U.read(P);this._isUpdatingHiddenAreas=!0;try{this._editors.original.setHiddenAreas(A.map(T=>T.getHiddenOriginalRange(P).toInclusiveRange()).filter(S.O9)),this._editors.modified.setHiddenAreas(A.map(T=>T.getHiddenModifiedRange(P).toInclusiveRange()).filter(S.O9))}finally{this._isUpdatingHiddenAreas=!1}})),this._register(this._editors.modified.onMouseUp(P=>{var A;if(!P.event.rightButton&&P.target.position&&(!((A=P.target.element)===null||A===void 0)&&A.className.includes("fold-unchanged"))){const T=P.target.position.lineNumber,E=this._diffModel.get();if(!E)return;const W=E.unchangedRegions.get().find($=>$.modifiedUnchangedRange.includes(T));if(!W)return;W.collapseAll(void 0),P.event.stopPropagation(),P.event.preventDefault()}})),this._register(this._editors.original.onMouseUp(P=>{var A;if(!P.event.rightButton&&P.target.position&&(!((A=P.target.element)===null||A===void 0)&&A.className.includes("fold-unchanged"))){const T=P.target.position.lineNumber,E=this._diffModel.get();if(!E)return;const W=E.unchangedRegions.get().find($=>$.originalUnchangedRange.includes(T));if(!W)return;W.collapseAll(void 0),P.event.stopPropagation(),P.event.preventDefault()}}))}};h._breadcrumbsSourceFactory=(0,g.FY)("breadcrumbsSourceFactory",void 0),h=C=m([u(3,c._Y)],h);class v extends f.uN{constructor(b,O,w,j,U,K,G,P){const A=(0,r.h)("div.diff-hidden-lines-widget");super(b,O,A.root),this._editor=b,this._unchangedRegion=w,this._unchangedRegionRange=j,this._hide=U,this._modifiedOutlineSource=K,this._revealModifiedHiddenLine=G,this._options=P,this._nodes=(0,r.h)("div.diff-hidden-lines",[(0,r.h)("div.top@top",{title:(0,i.kg)("diff.hiddenLines.top","Click or drag to show more above")}),(0,r.h)("div.center@content",{style:{display:"flex"}},[(0,r.h)("div@first",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexShrink:"0"}},[(0,r.$)("a",{title:(0,i.kg)("showUnchangedRegion","Show Unchanged Region"),role:"button",onclick:()=>{this._unchangedRegion.showAll(void 0)}},...(0,F.n)("$(unfold)"))]),(0,r.h)("div@others",{style:{display:"flex",justifyContent:"center",alignItems:"center"}})]),(0,r.h)("div.bottom@bottom",{title:(0,i.kg)("diff.bottom","Click or drag to show more below"),role:"button"})]),A.root.appendChild(this._nodes.root);const T=(0,g.y0)(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._hide?(0,r.Ln)(this._nodes.first):this._register((0,f.AV)(this._nodes.first,{width:T.map(W=>W.contentLeft)})),this._register((0,g.fm)(W=>{const $=this._unchangedRegion.visibleLineCountTop.read(W)+this._unchangedRegion.visibleLineCountBottom.read(W)===this._unchangedRegion.lineCount;this._nodes.bottom.classList.toggle("canMoveTop",!$),this._nodes.bottom.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(W)>0),this._nodes.top.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(W)>0),this._nodes.top.classList.toggle("canMoveBottom",!$);const z=this._unchangedRegion.isDragged.read(W),J=this._editor.getDomNode();J&&(J.classList.toggle("draggingUnchangedRegion",!!z),z==="top"?(J.classList.toggle("canMoveTop",this._unchangedRegion.visibleLineCountTop.read(W)>0),J.classList.toggle("canMoveBottom",!$)):z==="bottom"?(J.classList.toggle("canMoveTop",!$),J.classList.toggle("canMoveBottom",this._unchangedRegion.visibleLineCountBottom.read(W)>0)):(J.classList.toggle("canMoveTop",!1),J.classList.toggle("canMoveBottom",!1)))}));const E=this._editor;this._register((0,r.ko)(this._nodes.top,"mousedown",W=>{if(W.button!==0)return;this._nodes.top.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),W.preventDefault();const $=W.clientY;let z=!1;const J=this._unchangedRegion.visibleLineCountTop.get();this._unchangedRegion.isDragged.set("top",void 0);const B=(0,r.zk)(this._nodes.top),V=(0,r.ko)(B,"mousemove",X=>{const re=X.clientY-$;z=z||Math.abs(re)>2;const te=Math.round(re/E.getOption(67)),D=Math.max(0,Math.min(J+te,this._unchangedRegion.getMaxVisibleLineCountTop()));this._unchangedRegion.visibleLineCountTop.set(D,void 0)}),Y=(0,r.ko)(B,"mouseup",X=>{z||this._unchangedRegion.showMoreAbove(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0),this._nodes.top.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),this._unchangedRegion.isDragged.set(void 0,void 0),V.dispose(),Y.dispose()})})),this._register((0,r.ko)(this._nodes.bottom,"mousedown",W=>{if(W.button!==0)return;this._nodes.bottom.classList.toggle("dragging",!0),this._nodes.root.classList.toggle("dragging",!0),W.preventDefault();const $=W.clientY;let z=!1;const J=this._unchangedRegion.visibleLineCountBottom.get();this._unchangedRegion.isDragged.set("bottom",void 0);const B=(0,r.zk)(this._nodes.bottom),V=(0,r.ko)(B,"mousemove",X=>{const re=X.clientY-$;z=z||Math.abs(re)>2;const te=Math.round(re/E.getOption(67)),D=Math.max(0,Math.min(J-te,this._unchangedRegion.getMaxVisibleLineCountBottom())),he=this._unchangedRegionRange.endLineNumberExclusive>E.getModel().getLineCount()?E.getContentHeight():E.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.visibleLineCountBottom.set(D,void 0);const ve=this._unchangedRegionRange.endLineNumberExclusive>E.getModel().getLineCount()?E.getContentHeight():E.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);E.setScrollTop(E.getScrollTop()+(ve-he))}),Y=(0,r.ko)(B,"mouseup",X=>{if(this._unchangedRegion.isDragged.set(void 0,void 0),!z){const ie=E.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);this._unchangedRegion.showMoreBelow(this._options.hideUnchangedRegionsRevealLineCount.get(),void 0);const re=E.getTopForLineNumber(this._unchangedRegionRange.endLineNumberExclusive);E.setScrollTop(E.getScrollTop()+(re-ie))}this._nodes.bottom.classList.toggle("dragging",!1),this._nodes.root.classList.toggle("dragging",!1),V.dispose(),Y.dispose()})})),this._register((0,g.fm)(W=>{const $=[];if(!this._hide){const z=w.getHiddenModifiedRange(W).length,J=(0,i.kg)("hiddenLines","{0} hidden lines",z),B=(0,r.$)("span",{title:(0,i.kg)("diff.hiddenLines.expandAll","Double click to unfold")},J);B.addEventListener("dblclick",X=>{X.button===0&&(X.preventDefault(),this._unchangedRegion.showAll(void 0))}),$.push(B);const V=this._unchangedRegion.getHiddenModifiedRange(W),Y=this._modifiedOutlineSource.getBreadcrumbItems(V,W);if(Y.length>0){$.push((0,r.$)("span",void 0,"\xA0\xA0|\xA0\xA0"));for(let X=0;X{this._revealModifiedHiddenLine(ie.startLineNumber)}}}}(0,r.Ln)(this._nodes.others,...$)}))}}},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/registrations.contribution.js":function(pt,Me,e){e.d(Me,{GM:function(){return u},KL:function(){return h},Kl:function(){return a},Ob:function(){return s},Ou:function(){return m},XT:function(){return i},Zb:function(){return C},Zw:function(){return n},bk:function(){return c},dv:function(){return d},wp:function(){return v}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),M=e("./node_modules/monaco-editor/esm/vs/nls.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js");const x=(0,L.x1A)("diffEditor.move.border",{dark:"#8b8b8b9c",light:"#8b8b8b9c",hcDark:"#8b8b8b9c",hcLight:"#8b8b8b9c"},(0,M.kg)("diffEditor.move.border","The border color for text that got moved in the diff editor.")),I=(0,L.x1A)("diffEditor.moveActive.border",{dark:"#FFA500",light:"#FFA500",hcDark:"#FFA500",hcLight:"#FFA500"},(0,M.kg)("diffEditor.moveActive.border","The active border color for text that got moved in the diff editor.")),S=(0,L.x1A)("diffEditor.unchangedRegionShadow",{dark:"#000000",light:"#737373BF",hcDark:"#000000",hcLight:"#737373BF"},(0,M.kg)("diffEditor.unchangedRegionShadow","The color of the shadow around unchanged region widgets.")),f=(0,g.pU)("diff-insert",r.W.add,(0,M.kg)("diffInsertIcon","Line decoration for inserts in the diff editor.")),d=(0,g.pU)("diff-remove",r.W.remove,(0,M.kg)("diffRemoveIcon","Line decoration for removals in the diff editor.")),a=k.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,linesDecorationsClassName:"insert-sign "+F.L.asClassName(f),marginClassName:"gutter-insert"}),s=k.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,linesDecorationsClassName:"delete-sign "+F.L.asClassName(d),marginClassName:"gutter-delete"}),n=k.kI.register({className:"line-insert",description:"line-insert",isWholeLine:!0,marginClassName:"gutter-insert"}),i=k.kI.register({className:"line-delete",description:"line-delete",isWholeLine:!0,marginClassName:"gutter-delete"}),c=k.kI.register({className:"char-insert",description:"char-insert",shouldFillLineOnLineBreak:!0}),m=k.kI.register({className:"char-insert",description:"char-insert",isWholeLine:!0}),u=k.kI.register({className:"char-insert diff-range-empty",description:"char-insert diff-range-empty"}),C=k.kI.register({className:"char-delete",description:"char-delete",shouldFillLineOnLineBreak:!0}),h=k.kI.register({className:"char-delete",description:"char-delete",isWholeLine:!0}),v=k.kI.register({className:"char-delete diff-range-empty",description:"char-delete diff-range-empty"})},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils.js":function(pt,Me,e){e.d(Me,{MZ:function(){return K},pN:function(){return u},D1:function(){return p},uN:function(){return v},Nu:function(){return C},rX:function(){return c},pY:function(){return i},AV:function(){return O},Vs:function(){return U},wp:function(){return A},EK:function(){return T},Am:function(){return n},$y:function(){return m},b6:function(){return w},Mu:function(){return G}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/process.js");function M(){return k._K&&!!k._K.VSCODE_DEV}function L(E){if(M()){const W=g();return W.add(E),{dispose(){W.delete(E)}}}else return{dispose(){}}}function g(){x||(x=new Set);const E=globalThis;return E.$hotReload_applyNewExports||(E.$hotReload_applyNewExports=W=>{const $={config:{mode:void 0},...W};for(const z of x){const J=z($);if(J)return J}}),x}let x;M()&&L(({oldExports:E,newSrc:W,config:$})=>{if($.mode==="patch-prototype")return z=>{var J,B;for(const V in z){const Y=z[V];if(console.log(`[hot-reload] Patching prototype methods of '${V}'`,{exportedItem:Y}),typeof Y=="function"&&Y.prototype){const X=E[V];if(X){for(const ie of Object.getOwnPropertyNames(Y.prototype)){const re=Object.getOwnPropertyDescriptor(Y.prototype,ie),te=Object.getOwnPropertyDescriptor(X.prototype,ie);((J=re?.value)===null||J===void 0?void 0:J.toString())!==((B=te?.value)===null||B===void 0?void 0:B.toString())&&console.log(`[hot-reload] Patching prototype method '${V}.${ie}'`),Object.defineProperty(X.prototype,ie,re)}z[V]=X}}}return!0}});var I=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/elementSizeObserver.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textLength.js");function n(E,W,$,z){if(E.length===0)return W;if(W.length===0)return E;const J=[];let B=0,V=0;for(;Bre?(J.push(X),V++):(J.push(z(Y,X)),B++,V++)}for(;B`Apply decorations from ${W.debugName}`},J=>{const B=W.read(J);z.set(B)})),$.add({dispose:()=>{z.clear()}}),$}function c(E,W){return E.appendChild(W),(0,I.s)(()=>{E.removeChild(W)})}function m(E,W){return E.prepend(W),(0,I.s)(()=>{E.removeChild(W)})}class u extends I.jG{get width(){return this._width}get height(){return this._height}constructor(W,$){super(),this.elementSizeObserver=this._register(new f.u(W,$)),this._width=(0,S.FY)(this,this.elementSizeObserver.getWidth()),this._height=(0,S.FY)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange(z=>(0,S.Rn)(J=>{this._width.set(this.elementSizeObserver.getWidth(),J),this._height.set(this.elementSizeObserver.getHeight(),J)})))}observe(W){this.elementSizeObserver.observe(W)}setAutomaticLayout(W){W?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function C(E,W,$){let z=W.get(),J=z,B=z;const V=(0,S.FY)("animatedValue",z);let Y=-1;const X=300;let ie;$.add((0,S.Y)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(te,D)=>(te.didChange(W)&&(D.animate=D.animate||te.change),!0)},(te,D)=>{ie!==void 0&&(E.cancelAnimationFrame(ie),ie=void 0),J=B,z=W.read(te),Y=Date.now()-(D.animate?0:X),re()}));function re(){const te=Date.now()-Y;B=Math.floor(h(te,J,z-J,X)),te{this._actualTop.set(z,void 0)},this.onComputedHeight=z=>{this._actualHeight.set(z,void 0)}}}class b{constructor(W,$){this._editor=W,this._domElement=$,this._overlayWidgetId=`managedOverlayWidget-${b._counter++}`,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}b._counter=0;function O(E,W){return(0,S.fm)($=>{for(let[z,J]of Object.entries(W))J&&typeof J=="object"&&"read"in J&&(J=J.read($)),typeof J=="number"&&(J=`${J}px`),z=z.replace(/[A-Z]/g,B=>"-"+B.toLowerCase()),E.style[z]=J})}function w(E,W){return j([E],W),E}function j(E,W){M()&&(0,S.yQ)("reload",z=>L(({oldExports:J})=>{if([...Object.values(J)].some(B=>E.includes(B)))return B=>(z(void 0),!0)})).read(W)}function U(E,W,$,z){const J=new I.Cm,B=[];return J.add((0,S.yC)((V,Y)=>{const X=W.read(V),ie=new Map,re=new Map;$&&$(!0),E.changeViewZones(te=>{for(const D of B)te.removeZone(D),z?.delete(D);B.length=0;for(const D of X){const he=te.addZone(D);D.setZoneId&&D.setZoneId(he),B.push(he),z?.add(he),ie.set(D,he)}}),$&&$(!1),Y.add((0,S.Y)({createEmptyChangeSummary(){return{zoneIds:[]}},handleChange(te,D){const he=re.get(te.changedObservable);return he!==void 0&&D.zoneIds.push(he),!0}},(te,D)=>{for(const he of X)he.onChange&&(re.set(he.onChange,ie.get(he)),he.onChange.read(te));$&&$(!0),E.changeViewZones(he=>{for(const ve of D.zoneIds)he.layoutZone(ve)}),$&&$(!1)}))})),J.add({dispose(){$&&$(!0),E.changeViewZones(V=>{for(const Y of B)V.removeZone(Y)}),z?.clear(),$&&$(!1)}}),J}class K extends F.Q{dispose(){super.dispose(!0)}}function G(E,W){const $=(0,r.Uk)(W,J=>J.original.startLineNumber<=E.lineNumber);if(!$)return a.Q.fromPositions(E);if($.original.endLineNumberExclusive<=E.lineNumber){const J=E.lineNumber-$.original.endLineNumberExclusive+$.modified.endLineNumberExclusive;return a.Q.fromPositions(new d.y(J,E.column))}if(!$.innerChanges)return a.Q.fromPositions(new d.y($.modified.startLineNumber,1));const z=(0,r.Uk)($.innerChanges,J=>J.originalRange.getStartPosition().isBeforeOrEqual(E));if(!z){const J=E.lineNumber-$.original.startLineNumber+$.modified.startLineNumber;return a.Q.fromPositions(new d.y(J,E.column))}if(z.originalRange.containsPosition(E))return z.modifiedRange;{const J=P(z.originalRange.getEndPosition(),E);return a.Q.fromPositions(J.addToPosition(z.modifiedRange.getEndPosition()))}}function P(E,W){return E.lineNumber===W.lineNumber?new s.W(0,W.column-E.column):new s.W(W.lineNumber-E.lineNumber,W.column-1)}function A(E,W,$){const z=E.bindTo(W);return(0,S.zL)({debugName:()=>`Set Context Key "${E.key}"`},J=>{z.set($(J))})}function T(E,W){let $;return E.filter(z=>{const J=W(z,$);return $=z,J})}},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js":function(pt,Me,e){e.d(Me,{T:function(){return n},i:function(){return i}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/markdownRenderer.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/trustedTypes.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/domFontInfo.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/modesRegistry.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/textToHtmlTokenizer.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),d=function(m,u,C,h){var v=arguments.length,p=v<3?u:h===null?h=Object.getOwnPropertyDescriptor(u,C):h,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(m,u,C,h);else for(var O=m.length-1;O>=0;O--)(b=m[O])&&(p=(v<3?b(p):v>3?b(u,C,p):b(u,C))||p);return v>3&&p&&Object.defineProperty(u,C,p),p},a=function(m,u){return function(C,h){u(C,h,m)}},s;let n=s=class{constructor(u,C,h){this._options=u,this._languageService=C,this._openerService=h,this._onDidRenderAsync=new M.vl,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(u,C,h){if(!u)return{element:document.createElement("span"),dispose:()=>{}};const v=new L.Cm,p=v.add((0,r.Gc)(u,{...this._getRenderOptions(u,v),...C},h));return p.element.classList.add("rendered-markdown"),{element:p.element,dispose:()=>v.dispose()}}_getRenderOptions(u,C){return{codeBlockRenderer:async(h,v)=>{var p,b,O;let w;h?w=this._languageService.getLanguageIdByLanguageName(h):this._options.editor&&(w=(p=this._options.editor.getModel())===null||p===void 0?void 0:p.getLanguageId()),w||(w=I.vH);const j=await(0,S.Yj)(this._languageService,v,w),U=document.createElement("span");if(U.innerHTML=(O=(b=s._ttpTokenizer)===null||b===void 0?void 0:b.createHTML(j))!==null&&O!==void 0?O:j,this._options.editor){const K=this._options.editor.getOption(50);(0,g.M)(U,K)}else this._options.codeBlockFontFamily&&(U.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(U.style.fontSize=this._options.codeBlockFontSize),U},asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:h=>i(this._openerService,h,u.isTrusted),disposables:C}}}};n._ttpTokenizer=(0,F.H)("tokenizeToString",{createHTML(m){return m}}),n=s=d([a(1,x.L),a(2,f.C)],n);async function i(m,u,C){try{return await m.open(u,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:c(C)})}catch(h){return(0,k.dz)(h),!1}}function c(m){return m===!0?!0:m&&Array.isArray(m.enabledCommands)?m.enabledCommands:!1}},"./node_modules/monaco-editor/esm/vs/editor/browser/widget/multiDiffEditor/utils.js":function(pt,Me,e){e.d(Me,{I:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js");class F extends r.LN{constructor(M){super(),this._getContext=M}runAction(M,L){const g=this._getContext();return super.runAction(M,g)}}},"./node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand.js":function(pt,Me,e){e.d(Me,{iP:function(){return L},iu:function(){return F},q2:function(){return M},tA:function(){return k},ui:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js");class F{constructor(I,S,f=!1){this._range=I,this._text=S,this.insertsAutoWhitespace=f}getEditOperations(I,S){S.addTrackedEditOperation(this._range,this._text)}computeCursorState(I,S){const d=S.getInverseEditOperations()[0].range;return r.L.fromPositions(d.getEndPosition())}}class k{constructor(I,S){this._range=I,this._text=S}getEditOperations(I,S){S.addTrackedEditOperation(this._range,this._text)}computeCursorState(I,S){const d=S.getInverseEditOperations()[0].range;return r.L.fromRange(d,0)}}class M{constructor(I,S,f=!1){this._range=I,this._text=S,this.insertsAutoWhitespace=f}getEditOperations(I,S){S.addTrackedEditOperation(this._range,this._text)}computeCursorState(I,S){const d=S.getInverseEditOperations()[0].range;return r.L.fromPositions(d.getStartPosition())}}class L{constructor(I,S,f,d,a=!1){this._range=I,this._text=S,this._columnDeltaOffset=d,this._lineNumberDeltaOffset=f,this.insertsAutoWhitespace=a}getEditOperations(I,S){S.addTrackedEditOperation(this._range,this._text)}computeCursorState(I,S){const d=S.getInverseEditOperations()[0].range;return r.L.fromPositions(d.getEndPosition().delta(this._lineNumberDeltaOffset,this._columnDeltaOffset))}}class g{constructor(I,S,f,d=!1){this._range=I,this._text=S,this._initialSelection=f,this._forceMoveMarkers=d,this._selectionId=null}getEditOperations(I,S){S.addTrackedEditOperation(this._range,this._text,this._forceMoveMarkers),this._selectionId=S.trackSelection(this._initialSelection)}computeCursorState(I,S){return S.getTrackedSelection(this._selectionId)}}},"./node_modules/monaco-editor/esm/vs/editor/common/commands/shiftCommand.js":function(pt,Me,e){e.d(Me,{Y:function(){return a}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/cursorColumns.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/enterAction.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),x=function(s,n,i,c){var m=arguments.length,u=m<3?n:c===null?c=Object.getOwnPropertyDescriptor(n,i):c,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(s,n,i,c);else for(var h=s.length-1;h>=0;h--)(C=s[h])&&(u=(m<3?C(u):m>3?C(n,i,u):C(n,i))||u);return m>3&&u&&Object.defineProperty(n,i,u),u},I=function(s,n){return function(i,c){n(i,c,s)}},S;const f=Object.create(null);function d(s,n){if(n<=0)return"";f[s]||(f[s]=["",s]);const i=f[s];for(let c=i.length;c<=n;c++)i[c]=i[c-1]+s;return i[n]}let a=S=class{static unshiftIndent(n,i,c,m,u){const C=F.A.visibleColumnFromColumn(n,i,c);if(u){const h=d(" ",m),p=F.A.prevIndentTabStop(C,m)/m;return d(h,p)}else{const h=" ",p=F.A.prevRenderTabStop(C,c)/c;return d(h,p)}}static shiftIndent(n,i,c,m,u){const C=F.A.visibleColumnFromColumn(n,i,c);if(u){const h=d(" ",m),p=F.A.nextIndentTabStop(C,m)/m;return d(h,p)}else{const h=" ",p=F.A.nextRenderTabStop(C,c)/c;return d(h,p)}}constructor(n,i,c){this._languageConfigurationService=c,this._opts=i,this._selection=n,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}_addEditOperation(n,i,c){this._useLastEditRangeForCursorEndPosition?n.addTrackedEditOperation(i,c):n.addEditOperation(i,c)}getEditOperations(n,i){const c=this._selection.startLineNumber;let m=this._selection.endLineNumber;this._selection.endColumn===1&&c!==m&&(m=m-1);const{tabSize:u,indentSize:C,insertSpaces:h}=this._opts,v=c===m;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(n.getLineContent(c))&&(this._useLastEditRangeForCursorEndPosition=!0);let p=0,b=0;for(let O=c;O<=m;O++,p=b){b=0;const w=n.getLineContent(O);let j=r.HG(w);if(this._opts.isUnshift&&(w.length===0||j===0)||!v&&!this._opts.isUnshift&&w.length===0)continue;if(j===-1&&(j=w.length),O>1&&F.A.visibleColumnFromColumn(w,j+1,u)%C!==0&&n.tokenization.isCheapToTokenize(O-1)){const G=(0,L.h)(this._opts.autoIndent,n,new k.Q(O-1,n.getLineMaxColumn(O-1),O-1,n.getLineMaxColumn(O-1)),this._languageConfigurationService);if(G){if(b=p,G.appendText)for(let P=0,A=G.appendText.length;P{f[i]=!0})),f}function a(i){return d()[`editor.${i}`]||!1}function s(i){return d()[`diffEditor.${i}`]||!1}g.O.as(L.Fd.Configuration).registerConfiguration(I)},"./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js":function(pt,Me,e){e.d(Me,{$C:function(){return Qe},BE:function(){return Ht},Bc:function(){return W},O4:function(){return p},Of:function(){return ae},XR:function(){return Se},hZ:function(){return d},jT:function(){return re},jU:function(){return Mt},ls:function(){return C},lw:function(){return I},m9:function(){return G},n0:function(){return S},qB:function(){return Jt},r_:function(){return $},wA:function(){return m},xZ:function(){return X},xq:function(){return x},zM:function(){return i}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textModelDefaults.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js"),g=e("./node_modules/monaco-editor/esm/vs/nls.js");const x=8;class I{constructor(Be){this._values=Be}hasChanged(Be){return this._values[Be]}}class S{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class f{constructor(Be,vt,Gt,_n){this.id=Be,this.name=vt,this.defaultValue=Gt,this.schema=_n}applyUpdate(Be,vt){return a(Be,vt)}compute(Be,vt,Gt){return Gt}}class d{constructor(Be,vt){this.newValue=Be,this.didChange=vt}}function a(Nt,Be){if(typeof Nt!="object"||typeof Be!="object"||!Nt||!Be)return new d(Be,Nt!==Be);if(Array.isArray(Nt)||Array.isArray(Be)){const Gt=Array.isArray(Nt)&&Array.isArray(Be)&&r.aI(Nt,Be);return new d(Be,!Gt)}let vt=!1;for(const Gt in Be)if(Be.hasOwnProperty(Gt)){const _n=a(Nt[Gt],Be[Gt]);_n.didChange&&(Nt[Gt]=_n.newValue,vt=!0)}return new d(Nt,vt)}class s{constructor(Be){this.schema=void 0,this.id=Be,this.name="_never_",this.defaultValue=void 0}applyUpdate(Be,vt){return a(Be,vt)}validate(Be){return this.defaultValue}}class n{constructor(Be,vt,Gt,_n){this.id=Be,this.name=vt,this.defaultValue=Gt,this.schema=_n}applyUpdate(Be,vt){return a(Be,vt)}validate(Be){return typeof Be>"u"?this.defaultValue:Be}compute(Be,vt,Gt){return Gt}}function i(Nt,Be){return typeof Nt>"u"?Be:Nt==="false"?!1:!!Nt}class c extends n{constructor(Be,vt,Gt,_n=void 0){typeof _n<"u"&&(_n.type="boolean",_n.default=Gt),super(Be,vt,Gt,_n)}validate(Be){return i(Be,this.defaultValue)}}function m(Nt,Be,vt,Gt){if(typeof Nt>"u")return Be;let _n=parseInt(Nt,10);return isNaN(_n)?Be:(_n=Math.max(vt,_n),_n=Math.min(Gt,_n),_n|0)}class u extends n{static clampedInt(Be,vt,Gt,_n){return m(Be,vt,Gt,_n)}constructor(Be,vt,Gt,_n,Fn,An=void 0){typeof An<"u"&&(An.type="integer",An.default=Gt,An.minimum=_n,An.maximum=Fn),super(Be,vt,Gt,An),this.minimum=_n,this.maximum=Fn}validate(Be){return u.clampedInt(Be,this.defaultValue,this.minimum,this.maximum)}}function C(Nt,Be,vt,Gt){if(typeof Nt>"u")return Be;const _n=h.float(Nt,Be);return h.clamp(_n,vt,Gt)}class h extends n{static clamp(Be,vt,Gt){return BeGt?Gt:Be}static float(Be,vt){if(typeof Be=="number")return Be;if(typeof Be>"u")return vt;const Gt=parseFloat(Be);return isNaN(Gt)?vt:Gt}constructor(Be,vt,Gt,_n,Fn){typeof Fn<"u"&&(Fn.type="number",Fn.default=Gt),super(Be,vt,Gt,Fn),this.validationFn=_n}validate(Be){return this.validationFn(h.float(Be,this.defaultValue))}}class v extends n{static string(Be,vt){return typeof Be!="string"?vt:Be}constructor(Be,vt,Gt,_n=void 0){typeof _n<"u"&&(_n.type="string",_n.default=Gt),super(Be,vt,Gt,_n)}validate(Be){return v.string(Be,this.defaultValue)}}function p(Nt,Be,vt,Gt){return typeof Nt!="string"?Be:Gt&&Nt in Gt?Gt[Nt]:vt.indexOf(Nt)===-1?Be:Nt}class b extends n{constructor(Be,vt,Gt,_n,Fn=void 0){typeof Fn<"u"&&(Fn.type="string",Fn.enum=_n,Fn.default=Gt),super(Be,vt,Gt,Fn),this._allowedValues=_n}validate(Be){return p(Be,this.defaultValue,this._allowedValues)}}class O extends f{constructor(Be,vt,Gt,_n,Fn,An,Hn=void 0){typeof Hn<"u"&&(Hn.type="string",Hn.enum=Fn,Hn.default=_n),super(Be,vt,Gt,Hn),this._allowedValues=Fn,this._convert=An}validate(Be){return typeof Be!="string"?this.defaultValue:this._allowedValues.indexOf(Be)===-1?this.defaultValue:this._convert(Be)}}function w(Nt){switch(Nt){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class j extends f{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[g.kg("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),g.kg("accessibilitySupport.on","Optimize for usage with a Screen Reader."),g.kg("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:g.kg("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(Be){switch(Be){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(Be,vt,Gt){return Gt===0?Be.accessibilitySupport:Gt}}class U extends f{constructor(){const Be={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",Be,{"editor.comments.insertSpace":{type:"boolean",default:Be.insertSpace,description:g.kg("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:Be.ignoreEmptyLines,description:g.kg("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{insertSpace:i(vt.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:i(vt.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function K(Nt){switch(Nt){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var G;(function(Nt){Nt[Nt.Line=1]="Line",Nt[Nt.Block=2]="Block",Nt[Nt.Underline=3]="Underline",Nt[Nt.LineThin=4]="LineThin",Nt[Nt.BlockOutline=5]="BlockOutline",Nt[Nt.UnderlineThin=6]="UnderlineThin"})(G||(G={}));function P(Nt){switch(Nt){case"line":return G.Line;case"block":return G.Block;case"underline":return G.Underline;case"line-thin":return G.LineThin;case"block-outline":return G.BlockOutline;case"underline-thin":return G.UnderlineThin}}class A extends s{constructor(){super(142)}compute(Be,vt,Gt){const _n=["monaco-editor"];return vt.get(39)&&_n.push(vt.get(39)),Be.extraEditorClassName&&_n.push(Be.extraEditorClassName),vt.get(74)==="default"?_n.push("mouse-default"):vt.get(74)==="copy"&&_n.push("mouse-copy"),vt.get(111)&&_n.push("showUnused"),vt.get(140)&&_n.push("showDeprecated"),_n.join(" ")}}class T extends c{constructor(){super(37,"emptySelectionClipboard",!0,{description:g.kg("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(Be,vt,Gt){return Gt&&Be.emptySelectionClipboard}}class E extends f{constructor(){const Be={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",Be,{"editor.find.cursorMoveOnType":{type:"boolean",default:Be.cursorMoveOnType,description:g.kg("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:Be.seedSearchStringFromSelection,enumDescriptions:[g.kg("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),g.kg("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),g.kg("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:g.kg("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:Be.autoFindInSelection,enumDescriptions:[g.kg("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),g.kg("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),g.kg("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:g.kg("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:Be.globalFindClipboard,description:g.kg("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:k.zx},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:Be.addExtraSpaceOnTop,description:g.kg("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:Be.loop,description:g.kg("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{cursorMoveOnType:i(vt.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof Be.seedSearchStringFromSelection=="boolean"?Be.seedSearchStringFromSelection?"always":"never":p(vt.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof Be.autoFindInSelection=="boolean"?Be.autoFindInSelection?"always":"never":p(vt.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:i(vt.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:i(vt.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:i(vt.loop,this.defaultValue.loop)}}}class W extends f{constructor(){super(51,"fontLigatures",W.OFF,{anyOf:[{type:"boolean",description:g.kg("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:g.kg("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:g.kg("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(Be){return typeof Be>"u"?this.defaultValue:typeof Be=="string"?Be==="false"||Be.length===0?W.OFF:Be==="true"?W.ON:Be:Be?W.ON:W.OFF}}W.OFF='"liga" off, "calt" off',W.ON='"liga" on, "calt" on';class $ extends f{constructor(){super(54,"fontVariations",$.OFF,{anyOf:[{type:"boolean",description:g.kg("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:g.kg("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:g.kg("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(Be){return typeof Be>"u"?this.defaultValue:typeof Be=="string"?Be==="false"?$.OFF:Be==="true"?$.TRANSLATE:Be:Be?$.TRANSLATE:$.OFF}compute(Be,vt,Gt){return Be.fontInfo.fontVariationSettings}}$.OFF="normal",$.TRANSLATE="translate";class z extends s{constructor(){super(50)}compute(Be,vt,Gt){return Be.fontInfo}}class J extends n{constructor(){super(52,"fontSize",Mt.fontSize,{type:"number",minimum:6,maximum:100,default:Mt.fontSize,description:g.kg("fontSize","Controls the font size in pixels.")})}validate(Be){const vt=h.float(Be,this.defaultValue);return vt===0?Mt.fontSize:h.clamp(vt,6,100)}compute(Be,vt,Gt){return Be.fontInfo.fontSize}}class B extends f{constructor(){super(53,"fontWeight",Mt.fontWeight,{anyOf:[{type:"number",minimum:B.MINIMUM_VALUE,maximum:B.MAXIMUM_VALUE,errorMessage:g.kg("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:B.SUGGESTION_VALUES}],default:Mt.fontWeight,description:g.kg("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(Be){return Be==="normal"||Be==="bold"?Be:String(u.clampedInt(Be,Mt.fontWeight,B.MINIMUM_VALUE,B.MAXIMUM_VALUE))}}B.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],B.MINIMUM_VALUE=1,B.MAXIMUM_VALUE=1e3;class V extends f{constructor(){const Be={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},vt={type:"string",enum:["peek","gotoAndPeek","goto"],default:Be.multiple,enumDescriptions:[g.kg("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),g.kg("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),g.kg("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},Gt=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",Be,{"editor.gotoLocation.multiple":{deprecationMessage:g.kg("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:g.kg("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...vt},"editor.gotoLocation.multipleTypeDefinitions":{description:g.kg("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...vt},"editor.gotoLocation.multipleDeclarations":{description:g.kg("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...vt},"editor.gotoLocation.multipleImplementations":{description:g.kg("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...vt},"editor.gotoLocation.multipleReferences":{description:g.kg("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...vt},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:Be.alternativeDefinitionCommand,enum:Gt,description:g.kg("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:Be.alternativeTypeDefinitionCommand,enum:Gt,description:g.kg("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:Be.alternativeDeclarationCommand,enum:Gt,description:g.kg("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:Be.alternativeImplementationCommand,enum:Gt,description:g.kg("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:Be.alternativeReferenceCommand,enum:Gt,description:g.kg("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(Be){var vt,Gt,_n,Fn,An;if(!Be||typeof Be!="object")return this.defaultValue;const Hn=Be;return{multiple:p(Hn.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(vt=Hn.multipleDefinitions)!==null&&vt!==void 0?vt:p(Hn.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(Gt=Hn.multipleTypeDefinitions)!==null&&Gt!==void 0?Gt:p(Hn.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(_n=Hn.multipleDeclarations)!==null&&_n!==void 0?_n:p(Hn.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(Fn=Hn.multipleImplementations)!==null&&Fn!==void 0?Fn:p(Hn.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(An=Hn.multipleReferences)!==null&&An!==void 0?An:p(Hn.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:v.string(Hn.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:v.string(Hn.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:v.string(Hn.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:v.string(Hn.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:v.string(Hn.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Y extends f{constructor(){const Be={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",Be,{"editor.hover.enabled":{type:"boolean",default:Be.enabled,description:g.kg("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Be.delay,minimum:0,maximum:1e4,description:g.kg("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Be.sticky,description:g.kg("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:Be.hidingDelay,description:g.kg("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:Be.above,description:g.kg("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{enabled:i(vt.enabled,this.defaultValue.enabled),delay:u.clampedInt(vt.delay,this.defaultValue.delay,0,1e4),sticky:i(vt.sticky,this.defaultValue.sticky),hidingDelay:u.clampedInt(vt.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:i(vt.above,this.defaultValue.above)}}}class X extends s{constructor(){super(145)}compute(Be,vt,Gt){return X.computeLayout(vt,{memory:Be.memory,outerWidth:Be.outerWidth,outerHeight:Be.outerHeight,isDominatedByLongLines:Be.isDominatedByLongLines,lineHeight:Be.fontInfo.lineHeight,viewLineCount:Be.viewLineCount,lineNumbersDigitCount:Be.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:Be.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:Be.fontInfo.maxDigitWidth,pixelRatio:Be.pixelRatio,glyphMarginDecorationLaneCount:Be.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(Be){const vt=Be.height/Be.lineHeight,Gt=Math.floor(Be.paddingTop/Be.lineHeight);let _n=Math.floor(Be.paddingBottom/Be.lineHeight);Be.scrollBeyondLastLine&&(_n=Math.max(_n,vt-1));const Fn=(Gt+Be.viewLineCount+_n)/(Be.pixelRatio*Be.height),An=Math.floor(Be.viewLineCount/Fn);return{typicalViewportLineCount:vt,extraLinesBeforeFirstLine:Gt,extraLinesBeyondLastLine:_n,desiredRatio:Fn,minimapLineCount:An}}static _computeMinimapLayout(Be,vt){const Gt=Be.outerWidth,_n=Be.outerHeight,Fn=Be.pixelRatio;if(!Be.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(Fn*_n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:_n};const An=vt.stableMinimapLayoutInput,Hn=An&&Be.outerHeight===An.outerHeight&&Be.lineHeight===An.lineHeight&&Be.typicalHalfwidthCharacterWidth===An.typicalHalfwidthCharacterWidth&&Be.pixelRatio===An.pixelRatio&&Be.scrollBeyondLastLine===An.scrollBeyondLastLine&&Be.paddingTop===An.paddingTop&&Be.paddingBottom===An.paddingBottom&&Be.minimap.enabled===An.minimap.enabled&&Be.minimap.side===An.minimap.side&&Be.minimap.size===An.minimap.size&&Be.minimap.showSlider===An.minimap.showSlider&&Be.minimap.renderCharacters===An.minimap.renderCharacters&&Be.minimap.maxColumn===An.minimap.maxColumn&&Be.minimap.scale===An.minimap.scale&&Be.verticalScrollbarWidth===An.verticalScrollbarWidth&&Be.isViewportWrapping===An.isViewportWrapping,Kn=Be.lineHeight,mi=Be.typicalHalfwidthCharacterWidth,yi=Be.scrollBeyondLastLine,ri=Be.minimap.renderCharacters;let fi=Fn>=2?Math.round(Be.minimap.scale*2):Be.minimap.scale;const Mi=Be.minimap.maxColumn,xi=Be.minimap.size,ci=Be.minimap.side,Ii=Be.verticalScrollbarWidth,Si=Be.viewLineCount,Ti=Be.remainingWidth,Nn=Be.isViewportWrapping,Vn=ri?2:3;let Yn=Math.floor(Fn*_n);const Di=Yn/Fn;let Ai=!1,Sn=!1,Ye=Vn*fi,mt=fi/Fn,ze=1;if(xi==="fill"||xi==="fit"){const{typicalViewportLineCount:Ge,extraLinesBeforeFirstLine:nt,extraLinesBeyondLastLine:it,desiredRatio:bt,minimapLineCount:Dt}=X.computeContainedMinimapLineCount({viewLineCount:Si,scrollBeyondLastLine:yi,paddingTop:Be.paddingTop,paddingBottom:Be.paddingBottom,height:_n,lineHeight:Kn,pixelRatio:Fn});if(Si/Dt>1)Ai=!0,Sn=!0,fi=1,Ye=1,mt=fi/Fn;else{let et=!1,at=fi+1;if(xi==="fit"){const Tt=Math.ceil((nt+Si+it)*Ye);Nn&&Hn&&Ti<=vt.stableFitRemainingWidth?(et=!0,at=vt.stableFitMaxMinimapScale):et=Tt>Yn}if(xi==="fill"||et){Ai=!0;const Tt=fi;Ye=Math.min(Kn*Fn,Math.max(1,Math.floor(1/bt))),Nn&&Hn&&Ti<=vt.stableFitRemainingWidth&&(at=vt.stableFitMaxMinimapScale),fi=Math.min(at,Math.max(1,Math.floor(Ye/Vn))),fi>Tt&&(ze=Math.min(2,fi/Tt)),mt=fi/Fn/ze,Yn=Math.ceil(Math.max(Ge,nt+Si+it)*Ye),Nn?(vt.stableMinimapLayoutInput=Be,vt.stableFitRemainingWidth=Ti,vt.stableFitMaxMinimapScale=fi):(vt.stableMinimapLayoutInput=null,vt.stableFitRemainingWidth=0)}}}const Ke=Math.floor(Mi*mt),Je=Math.min(Ke,Math.max(0,Math.floor((Ti-Ii-2)*mt/(mi+mt)))+x);let Ne=Math.floor(Fn*Je);const ft=Ne/Fn;Ne=Math.floor(Ne*ze);const St=ri?1:2,rt=ci==="left"?0:Gt-Je-Ii;return{renderMinimap:St,minimapLeft:rt,minimapWidth:Je,minimapHeightIsEditorHeight:Ai,minimapIsSampling:Sn,minimapScale:fi,minimapLineHeight:Ye,minimapCanvasInnerWidth:Ne,minimapCanvasInnerHeight:Yn,minimapCanvasOuterWidth:ft,minimapCanvasOuterHeight:Di}}static computeLayout(Be,vt){const Gt=vt.outerWidth|0,_n=vt.outerHeight|0,Fn=vt.lineHeight|0,An=vt.lineNumbersDigitCount|0,Hn=vt.typicalHalfwidthCharacterWidth,Kn=vt.maxDigitWidth,mi=vt.pixelRatio,yi=vt.viewLineCount,ri=Be.get(137),fi=ri==="inherit"?Be.get(136):ri,Mi=fi==="inherit"?Be.get(132):fi,xi=Be.get(135),ci=vt.isDominatedByLongLines,Ii=Be.get(57),Si=Be.get(68).renderType!==0,Ti=Be.get(69),Nn=Be.get(105),Vn=Be.get(84),Yn=Be.get(73),Di=Be.get(103),Ai=Di.verticalScrollbarSize,Sn=Di.verticalHasArrows,Ye=Di.arrowSize,mt=Di.horizontalScrollbarSize,ze=Be.get(43),Ke=Be.get(110)!=="never";let Je=Be.get(66);ze&&Ke&&(Je+=16);let Ne=0;if(Si){const Ae=Math.max(An,Ti);Ne=Math.round(Ae*Kn)}let ft=0;Ii&&(ft=Fn*vt.glyphMarginDecorationLaneCount);let St=0,rt=St+ft,Ge=rt+Ne,nt=Ge+Je;const it=Gt-ft-Ne-Je;let bt=!1,Dt=!1,At=-1;fi==="inherit"&&ci?(bt=!0,Dt=!0):Mi==="on"||Mi==="bounded"?Dt=!0:Mi==="wordWrapColumn"&&(At=xi);const et=X._computeMinimapLayout({outerWidth:Gt,outerHeight:_n,lineHeight:Fn,typicalHalfwidthCharacterWidth:Hn,pixelRatio:mi,scrollBeyondLastLine:Nn,paddingTop:Vn.top,paddingBottom:Vn.bottom,minimap:Yn,verticalScrollbarWidth:Ai,viewLineCount:yi,remainingWidth:it,isViewportWrapping:Dt},vt.memory||new S);et.renderMinimap!==0&&et.minimapLeft===0&&(St+=et.minimapWidth,rt+=et.minimapWidth,Ge+=et.minimapWidth,nt+=et.minimapWidth);const at=it-et.minimapWidth,Tt=Math.max(1,Math.floor((at-Ai-2)/Hn)),dt=Sn?Ye:0;return Dt&&(At=Math.max(1,Tt),Mi==="bounded"&&(At=Math.min(At,xi))),{width:Gt,height:_n,glyphMarginLeft:St,glyphMarginWidth:ft,glyphMarginDecorationLaneCount:vt.glyphMarginDecorationLaneCount,lineNumbersLeft:rt,lineNumbersWidth:Ne,decorationsLeft:Ge,decorationsWidth:Je,contentLeft:nt,contentWidth:at,minimap:et,viewportColumn:Tt,isWordWrapMinified:bt,isViewportWrapping:Dt,wrappingColumn:At,verticalScrollbarWidth:Ai,horizontalScrollbarHeight:mt,overviewRuler:{top:dt,width:Ai,height:_n-2*dt,right:0}}}}class ie extends f{constructor(){super(139,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[g.kg("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),g.kg("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:g.kg("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(Be){return p(Be,"simple",["simple","advanced"])}compute(Be,vt,Gt){return vt.get(2)===2?"advanced":Gt}}var re;(function(Nt){Nt.Off="off",Nt.OnCode="onCode",Nt.On="on"})(re||(re={}));class te extends f{constructor(){const Be={enabled:re.On};super(65,"lightbulb",Be,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[re.Off,re.OnCode,re.On],default:Be.enabled,enumDescriptions:[g.kg("editor.lightbulb.enabled.off","Disable the code action menu."),g.kg("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),g.kg("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:g.kg("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(Be){return!Be||typeof Be!="object"?this.defaultValue:{enabled:p(Be.enabled,this.defaultValue.enabled,[re.Off,re.OnCode,re.On])}}}class D extends f{constructor(){const Be={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(115,"stickyScroll",Be,{"editor.stickyScroll.enabled":{type:"boolean",default:Be.enabled,description:g.kg("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:Be.maxLineCount,minimum:1,maximum:20,description:g.kg("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:Be.defaultModel,description:g.kg("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:Be.scrollWithEditor,description:g.kg("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{enabled:i(vt.enabled,this.defaultValue.enabled),maxLineCount:u.clampedInt(vt.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:p(vt.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:i(vt.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class he extends f{constructor(){const Be={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(141,"inlayHints",Be,{"editor.inlayHints.enabled":{type:"string",default:Be.enabled,description:g.kg("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[g.kg("editor.inlayHints.on","Inlay hints are enabled"),g.kg("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",k.zx?"Ctrl+Option":"Ctrl+Alt"),g.kg("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",k.zx?"Ctrl+Option":"Ctrl+Alt"),g.kg("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:Be.fontSize,markdownDescription:g.kg("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:Be.fontFamily,markdownDescription:g.kg("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:Be.padding,description:g.kg("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return typeof vt.enabled=="boolean"&&(vt.enabled=vt.enabled?"on":"off"),{enabled:p(vt.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:u.clampedInt(vt.fontSize,this.defaultValue.fontSize,0,100),fontFamily:v.string(vt.fontFamily,this.defaultValue.fontFamily),padding:i(vt.padding,this.defaultValue.padding)}}}class ve extends f{constructor(){super(66,"lineDecorationsWidth",10)}validate(Be){return typeof Be=="string"&&/^\d+(\.\d+)?ch$/.test(Be)?-parseFloat(Be.substring(0,Be.length-2)):u.clampedInt(Be,this.defaultValue,0,1e3)}compute(Be,vt,Gt){return Gt<0?u.clampedInt(-Gt*Be.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):Gt}}class Ce extends h{constructor(){super(67,"lineHeight",Mt.lineHeight,Be=>h.clamp(Be,0,150),{markdownDescription:g.kg("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(Be,vt,Gt){return Be.fontInfo.lineHeight}}class Pe extends f{constructor(){const Be={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9};super(73,"minimap",Be,{"editor.minimap.enabled":{type:"boolean",default:Be.enabled,description:g.kg("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:Be.autohide,description:g.kg("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[g.kg("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),g.kg("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),g.kg("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:Be.size,description:g.kg("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Be.side,description:g.kg("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Be.showSlider,description:g.kg("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:Be.scale,minimum:1,maximum:3,enum:[1,2,3],description:g.kg("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:Be.renderCharacters,description:g.kg("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Be.maxColumn,description:g.kg("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:Be.showRegionSectionHeaders,description:g.kg("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:Be.showMarkSectionHeaders,description:g.kg("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:Be.sectionHeaderFontSize,description:g.kg("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")}})}validate(Be){var vt;if(!Be||typeof Be!="object")return this.defaultValue;const Gt=Be;return{enabled:i(Gt.enabled,this.defaultValue.enabled),autohide:i(Gt.autohide,this.defaultValue.autohide),size:p(Gt.size,this.defaultValue.size,["proportional","fill","fit"]),side:p(Gt.side,this.defaultValue.side,["right","left"]),showSlider:p(Gt.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:i(Gt.renderCharacters,this.defaultValue.renderCharacters),scale:u.clampedInt(Gt.scale,1,1,3),maxColumn:u.clampedInt(Gt.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:i(Gt.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:i(Gt.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:h.clamp((vt=Gt.sectionHeaderFontSize)!==null&&vt!==void 0?vt:this.defaultValue.sectionHeaderFontSize,4,32)}}}function _e(Nt){return Nt==="ctrlCmd"?k.zx?"metaKey":"ctrlKey":"altKey"}class ee extends f{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:g.kg("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:g.kg("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{top:u.clampedInt(vt.top,0,0,1e3),bottom:u.clampedInt(vt.bottom,0,0,1e3)}}}class De extends f{constructor(){const Be={enabled:!0,cycle:!0};super(86,"parameterHints",Be,{"editor.parameterHints.enabled":{type:"boolean",default:Be.enabled,description:g.kg("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:Be.cycle,description:g.kg("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{enabled:i(vt.enabled,this.defaultValue.enabled),cycle:i(vt.cycle,this.defaultValue.cycle)}}}class Te extends s{constructor(){super(143)}compute(Be,vt,Gt){return Be.pixelRatio}}class He extends f{constructor(){const Be={other:"on",comments:"off",strings:"off"},vt=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[g.kg("on","Quick suggestions show inside the suggest widget"),g.kg("inline","Quick suggestions show as ghost text"),g.kg("off","Quick suggestions are disabled")]}];super(89,"quickSuggestions",Be,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:vt,default:Be.strings,description:g.kg("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:vt,default:Be.comments,description:g.kg("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:vt,default:Be.other,description:g.kg("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:Be,markdownDescription:g.kg("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=Be}validate(Be){if(typeof Be=="boolean"){const mi=Be?"on":"off";return{comments:mi,strings:mi,other:mi}}if(!Be||typeof Be!="object")return this.defaultValue;const{other:vt,comments:Gt,strings:_n}=Be,Fn=["on","inline","off"];let An,Hn,Kn;return typeof vt=="boolean"?An=vt?"on":"off":An=p(vt,this.defaultValue.other,Fn),typeof Gt=="boolean"?Hn=Gt?"on":"off":Hn=p(Gt,this.defaultValue.comments,Fn),typeof _n=="boolean"?Kn=_n?"on":"off":Kn=p(_n,this.defaultValue.strings,Fn),{other:An,comments:Hn,strings:Kn}}}class qe extends f{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[g.kg("lineNumbers.off","Line numbers are not rendered."),g.kg("lineNumbers.on","Line numbers are rendered as absolute number."),g.kg("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),g.kg("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:g.kg("lineNumbers","Controls the display of line numbers.")})}validate(Be){let vt=this.defaultValue.renderType,Gt=this.defaultValue.renderFn;return typeof Be<"u"&&(typeof Be=="function"?(vt=4,Gt=Be):Be==="interval"?vt=3:Be==="relative"?vt=2:Be==="on"?vt=1:vt=0),{renderType:vt,renderFn:Gt}}}function Qe(Nt){const Be=Nt.get(98);return Be==="editable"?Nt.get(91):Be!=="on"}class q extends f{constructor(){const Be=[],vt={type:"number",description:g.kg("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(102,"rulers",Be,{type:"array",items:{anyOf:[vt,{type:["object"],properties:{column:vt,color:{type:"string",description:g.kg("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:Be,description:g.kg("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(Be){if(Array.isArray(Be)){const vt=[];for(const Gt of Be)if(typeof Gt=="number")vt.push({column:u.clampedInt(Gt,0,0,1e4),color:null});else if(Gt&&typeof Gt=="object"){const _n=Gt;vt.push({column:u.clampedInt(_n.column,0,0,1e4),color:_n.color})}return vt.sort((Gt,_n)=>Gt.column-_n.column),vt}return this.defaultValue}}class ye extends f{constructor(){super(92,"readOnlyMessage",void 0)}validate(Be){return!Be||typeof Be!="object"?this.defaultValue:Be}}function ge(Nt,Be){if(typeof Nt!="string")return Be;switch(Nt){case"hidden":return 2;case"visible":return 3;default:return 1}}class be extends f{constructor(){const Be={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(103,"scrollbar",Be,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[g.kg("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),g.kg("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),g.kg("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:g.kg("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[g.kg("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),g.kg("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),g.kg("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:g.kg("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:Be.verticalScrollbarSize,description:g.kg("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:Be.horizontalScrollbarSize,description:g.kg("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:Be.scrollByPage,description:g.kg("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:Be.ignoreHorizontalScrollbarInContentHeight,description:g.kg("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be,Gt=u.clampedInt(vt.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),_n=u.clampedInt(vt.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:u.clampedInt(vt.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:ge(vt.vertical,this.defaultValue.vertical),horizontal:ge(vt.horizontal,this.defaultValue.horizontal),useShadows:i(vt.useShadows,this.defaultValue.useShadows),verticalHasArrows:i(vt.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:i(vt.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:i(vt.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:i(vt.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:Gt,horizontalSliderSize:u.clampedInt(vt.horizontalSliderSize,Gt,0,1e3),verticalScrollbarSize:_n,verticalSliderSize:u.clampedInt(vt.verticalSliderSize,_n,0,1e3),scrollByPage:i(vt.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:i(vt.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}}const Se="inUntrustedWorkspace",ae={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class me extends f{constructor(){const Be={nonBasicASCII:Se,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Se,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(125,"unicodeHighlight",Be,{[ae.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Se],default:Be.nonBasicASCII,description:g.kg("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[ae.invisibleCharacters]:{restricted:!0,type:"boolean",default:Be.invisibleCharacters,description:g.kg("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[ae.ambiguousCharacters]:{restricted:!0,type:"boolean",default:Be.ambiguousCharacters,description:g.kg("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[ae.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Se],default:Be.includeComments,description:g.kg("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[ae.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Se],default:Be.includeStrings,description:g.kg("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[ae.allowedCharacters]:{restricted:!0,type:"object",default:Be.allowedCharacters,description:g.kg("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[ae.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:Be.allowedLocales,description:g.kg("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(Be,vt){let Gt=!1;vt.allowedCharacters&&Be&&(F.aI(Be.allowedCharacters,vt.allowedCharacters)||(Be={...Be,allowedCharacters:vt.allowedCharacters},Gt=!0)),vt.allowedLocales&&Be&&(F.aI(Be.allowedLocales,vt.allowedLocales)||(Be={...Be,allowedLocales:vt.allowedLocales},Gt=!0));const _n=super.applyUpdate(Be,vt);return Gt?new d(_n.newValue,!0):_n}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{nonBasicASCII:de(vt.nonBasicASCII,Se,[!0,!1,Se]),invisibleCharacters:i(vt.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:i(vt.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:de(vt.includeComments,Se,[!0,!1,Se]),includeStrings:de(vt.includeStrings,Se,[!0,!1,Se]),allowedCharacters:this.validateBooleanMap(Be.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(Be.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(Be,vt){if(typeof Be!="object"||!Be)return vt;const Gt={};for(const[_n,Fn]of Object.entries(Be))Fn===!0&&(Gt[_n]=!0);return Gt}}class fe extends f{constructor(){const Be={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",Be,{"editor.inlineSuggest.enabled":{type:"boolean",default:Be.enabled,description:g.kg("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:Be.showToolbar,enum:["always","onHover","never"],enumDescriptions:[g.kg("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),g.kg("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),g.kg("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:g.kg("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:Be.suppressSuggestions,description:g.kg("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:Be.fontFamily,description:g.kg("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{enabled:i(vt.enabled,this.defaultValue.enabled),mode:p(vt.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:p(vt.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:i(vt.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:i(vt.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:v.string(vt.fontFamily,this.defaultValue.fontFamily)}}}class le extends f{constructor(){const Be={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1,backgroundColoring:!1};super(63,"experimentalInlineEdit",Be,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:Be.enabled,description:g.kg("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:Be.showToolbar,enum:["always","onHover","never"],enumDescriptions:[g.kg("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),g.kg("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),g.kg("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:g.kg("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:Be.fontFamily,description:g.kg("inlineEdit.fontFamily","Controls the font family of the inline edit.")},"editor.experimentalInlineEdit.backgroundColoring":{type:"boolean",default:Be.backgroundColoring,description:g.kg("inlineEdit.backgroundColoring","Controls whether to color the background of inline edits.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{enabled:i(vt.enabled,this.defaultValue.enabled),showToolbar:p(vt.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:v.string(vt.fontFamily,this.defaultValue.fontFamily),keepOnBlur:i(vt.keepOnBlur,this.defaultValue.keepOnBlur),backgroundColoring:i(vt.backgroundColoring,this.defaultValue.backgroundColoring)}}}class oe extends f{constructor(){const Be={enabled:M.R.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:M.R.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",Be,{"editor.bracketPairColorization.enabled":{type:"boolean",default:Be.enabled,markdownDescription:g.kg("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:Be.independentColorPoolPerBracketType,description:g.kg("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{enabled:i(vt.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:i(vt.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class ne extends f{constructor(){const Be={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",Be,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[g.kg("editor.guides.bracketPairs.true","Enables bracket pair guides."),g.kg("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),g.kg("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:Be.bracketPairs,description:g.kg("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[g.kg("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),g.kg("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),g.kg("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:Be.bracketPairsHorizontal,description:g.kg("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:Be.highlightActiveBracketPair,description:g.kg("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:Be.indentation,description:g.kg("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[g.kg("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),g.kg("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),g.kg("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:Be.highlightActiveIndentation,description:g.kg("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{bracketPairs:de(vt.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:de(vt.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:i(vt.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:i(vt.indentation,this.defaultValue.indentation),highlightActiveIndentation:de(vt.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function de(Nt,Be,vt){const Gt=vt.indexOf(Nt);return Gt===-1?Be:vt[Gt]}class Le extends f{constructor(){const Be={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(118,"suggest",Be,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[g.kg("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),g.kg("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:Be.insertMode,description:g.kg("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:Be.filterGraceful,description:g.kg("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:Be.localityBonus,description:g.kg("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:Be.shareSuggestSelections,markdownDescription:g.kg("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[g.kg("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),g.kg("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),g.kg("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),g.kg("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:Be.selectionMode,markdownDescription:g.kg("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:Be.snippetsPreventQuickSuggestions,description:g.kg("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:Be.showIcons,description:g.kg("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:Be.showStatusBar,description:g.kg("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:Be.preview,description:g.kg("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:Be.showInlineDetails,description:g.kg("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:g.kg("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:g.kg("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:g.kg("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{insertMode:p(vt.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:i(vt.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:i(vt.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:i(vt.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:i(vt.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:p(vt.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:i(vt.showIcons,this.defaultValue.showIcons),showStatusBar:i(vt.showStatusBar,this.defaultValue.showStatusBar),preview:i(vt.preview,this.defaultValue.preview),previewMode:p(vt.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:i(vt.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:i(vt.showMethods,this.defaultValue.showMethods),showFunctions:i(vt.showFunctions,this.defaultValue.showFunctions),showConstructors:i(vt.showConstructors,this.defaultValue.showConstructors),showDeprecated:i(vt.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:i(vt.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:i(vt.showFields,this.defaultValue.showFields),showVariables:i(vt.showVariables,this.defaultValue.showVariables),showClasses:i(vt.showClasses,this.defaultValue.showClasses),showStructs:i(vt.showStructs,this.defaultValue.showStructs),showInterfaces:i(vt.showInterfaces,this.defaultValue.showInterfaces),showModules:i(vt.showModules,this.defaultValue.showModules),showProperties:i(vt.showProperties,this.defaultValue.showProperties),showEvents:i(vt.showEvents,this.defaultValue.showEvents),showOperators:i(vt.showOperators,this.defaultValue.showOperators),showUnits:i(vt.showUnits,this.defaultValue.showUnits),showValues:i(vt.showValues,this.defaultValue.showValues),showConstants:i(vt.showConstants,this.defaultValue.showConstants),showEnums:i(vt.showEnums,this.defaultValue.showEnums),showEnumMembers:i(vt.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:i(vt.showKeywords,this.defaultValue.showKeywords),showWords:i(vt.showWords,this.defaultValue.showWords),showColors:i(vt.showColors,this.defaultValue.showColors),showFiles:i(vt.showFiles,this.defaultValue.showFiles),showReferences:i(vt.showReferences,this.defaultValue.showReferences),showFolders:i(vt.showFolders,this.defaultValue.showFolders),showTypeParameters:i(vt.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:i(vt.showSnippets,this.defaultValue.showSnippets),showUsers:i(vt.showUsers,this.defaultValue.showUsers),showIssues:i(vt.showIssues,this.defaultValue.showIssues)}}}class We extends f{constructor(){super(113,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:g.kg("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:g.kg("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(Be){return!Be||typeof Be!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:i(Be.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:i(Be.selectSubwords,this.defaultValue.selectSubwords)}}}class we extends f{constructor(){const Be=[];super(130,"wordSegmenterLocales",Be,{anyOf:[{description:g.kg("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:g.kg("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(Be){if(typeof Be=="string"&&(Be=[Be]),Array.isArray(Be)){const vt=[];for(const Gt of Be)if(typeof Gt=="string")try{Intl.Segmenter.supportedLocalesOf(Gt).length>0&&vt.push(Gt)}catch{}return vt}return this.defaultValue}}class Ue extends f{constructor(){super(138,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[g.kg("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),g.kg("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),g.kg("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),g.kg("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:g.kg("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(Be){switch(Be){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(Be,vt,Gt){return vt.get(2)===2?0:Gt}}class lt extends s{constructor(){super(146)}compute(Be,vt,Gt){const _n=vt.get(145);return{isDominatedByLongLines:Be.isDominatedByLongLines,isWordWrapMinified:_n.isWordWrapMinified,isViewportWrapping:_n.isViewportWrapping,wrappingColumn:_n.wrappingColumn}}}class Et extends f{constructor(){const Be={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",Be,{"editor.dropIntoEditor.enabled":{type:"boolean",default:Be.enabled,markdownDescription:g.kg("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:g.kg("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[g.kg("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),g.kg("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{enabled:i(vt.enabled,this.defaultValue.enabled),showDropSelector:p(vt.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class Kt extends f{constructor(){const Be={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",Be,{"editor.pasteAs.enabled":{type:"boolean",default:Be.enabled,markdownDescription:g.kg("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:g.kg("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[g.kg("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),g.kg("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(Be){if(!Be||typeof Be!="object")return this.defaultValue;const vt=Be;return{enabled:i(vt.enabled,this.defaultValue.enabled),showPasteSelector:p(vt.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const Mt={fontFamily:k.zx?"Menlo, Monaco, 'Courier New', monospace":k.j9?"'Droid Sans Mono', 'monospace', monospace":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:k.zx?12:14,lineHeight:0,letterSpacing:0},Ht=[];function xt(Nt){return Ht[Nt.id]=Nt,Nt}const Jt={acceptSuggestionOnCommitCharacter:xt(new c(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:g.kg("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:xt(new b(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",g.kg("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:g.kg("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:xt(new j),accessibilityPageSize:xt(new u(3,"accessibilityPageSize",10,1,1073741824,{description:g.kg("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:xt(new v(4,"ariaLabel",g.kg("editorViewAccessibleLabel","Editor content"))),ariaRequired:xt(new c(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:xt(new c(8,"screenReaderAnnounceInlineSuggestion",!0,{description:g.kg("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:xt(new b(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",g.kg("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),g.kg("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:g.kg("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:xt(new b(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",g.kg("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),g.kg("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:g.kg("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:xt(new b(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",g.kg("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:g.kg("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:xt(new b(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",g.kg("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:g.kg("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:xt(new b(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",g.kg("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),g.kg("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:g.kg("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:xt(new O(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],w,{enumDescriptions:[g.kg("editor.autoIndent.none","The editor will not insert indentation automatically."),g.kg("editor.autoIndent.keep","The editor will keep the current line's indentation."),g.kg("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),g.kg("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),g.kg("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:g.kg("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:xt(new c(13,"automaticLayout",!1)),autoSurround:xt(new b(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[g.kg("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),g.kg("editor.autoSurround.quotes","Surround with quotes but not brackets."),g.kg("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:g.kg("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:xt(new oe),bracketPairGuides:xt(new ne),stickyTabStops:xt(new c(116,"stickyTabStops",!1,{description:g.kg("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:xt(new c(17,"codeLens",!0,{description:g.kg("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:xt(new v(18,"codeLensFontFamily","",{description:g.kg("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:xt(new u(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:g.kg("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:xt(new c(20,"colorDecorators",!0,{description:g.kg("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:xt(new b(148,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[g.kg("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),g.kg("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),g.kg("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:g.kg("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:xt(new u(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:g.kg("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:xt(new c(22,"columnSelection",!1,{description:g.kg("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:xt(new U),contextmenu:xt(new c(24,"contextmenu",!0)),copyWithSyntaxHighlighting:xt(new c(25,"copyWithSyntaxHighlighting",!0,{description:g.kg("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:xt(new O(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],K,{description:g.kg("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:xt(new b(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[g.kg("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),g.kg("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),g.kg("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:g.kg("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:xt(new O(28,"cursorStyle",G.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],P,{description:g.kg("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:xt(new u(29,"cursorSurroundingLines",0,0,1073741824,{description:g.kg("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:xt(new b(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[g.kg("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),g.kg("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:g.kg("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:xt(new u(31,"cursorWidth",0,0,1073741824,{markdownDescription:g.kg("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:xt(new c(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:xt(new c(33,"disableMonospaceOptimizations",!1)),domReadOnly:xt(new c(34,"domReadOnly",!1)),dragAndDrop:xt(new c(35,"dragAndDrop",!0,{description:g.kg("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:xt(new T),dropIntoEditor:xt(new Et),stickyScroll:xt(new D),experimentalWhitespaceRendering:xt(new b(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[g.kg("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),g.kg("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),g.kg("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:g.kg("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:xt(new v(39,"extraEditorClassName","")),fastScrollSensitivity:xt(new h(40,"fastScrollSensitivity",5,Nt=>Nt<=0?5:Nt,{markdownDescription:g.kg("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:xt(new E),fixedOverflowWidgets:xt(new c(42,"fixedOverflowWidgets",!1)),folding:xt(new c(43,"folding",!0,{description:g.kg("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:xt(new b(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[g.kg("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),g.kg("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:g.kg("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:xt(new c(45,"foldingHighlight",!0,{description:g.kg("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:xt(new c(46,"foldingImportsByDefault",!1,{description:g.kg("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:xt(new u(47,"foldingMaximumRegions",5e3,10,65e3,{description:g.kg("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:xt(new c(48,"unfoldOnClickAfterEndOfLine",!1,{description:g.kg("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:xt(new v(49,"fontFamily",Mt.fontFamily,{description:g.kg("fontFamily","Controls the font family.")})),fontInfo:xt(new z),fontLigatures2:xt(new W),fontSize:xt(new J),fontWeight:xt(new B),fontVariations:xt(new $),formatOnPaste:xt(new c(55,"formatOnPaste",!1,{description:g.kg("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:xt(new c(56,"formatOnType",!1,{description:g.kg("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:xt(new c(57,"glyphMargin",!0,{description:g.kg("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:xt(new V),hideCursorInOverviewRuler:xt(new c(59,"hideCursorInOverviewRuler",!1,{description:g.kg("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:xt(new Y),inDiffEditor:xt(new c(61,"inDiffEditor",!1)),letterSpacing:xt(new h(64,"letterSpacing",Mt.letterSpacing,Nt=>h.clamp(Nt,-5,20),{description:g.kg("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:xt(new te),lineDecorationsWidth:xt(new ve),lineHeight:xt(new Ce),lineNumbers:xt(new qe),lineNumbersMinChars:xt(new u(69,"lineNumbersMinChars",5,1,300)),linkedEditing:xt(new c(70,"linkedEditing",!1,{description:g.kg("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:xt(new c(71,"links",!0,{description:g.kg("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:xt(new b(72,"matchBrackets","always",["always","near","never"],{description:g.kg("matchBrackets","Highlight matching brackets.")})),minimap:xt(new Pe),mouseStyle:xt(new b(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:xt(new h(75,"mouseWheelScrollSensitivity",1,Nt=>Nt===0?1:Nt,{markdownDescription:g.kg("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:xt(new c(76,"mouseWheelZoom",!1,{markdownDescription:k.zx?g.kg("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):g.kg("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:xt(new c(77,"multiCursorMergeOverlapping",!0,{description:g.kg("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:xt(new O(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],_e,{markdownEnumDescriptions:[g.kg("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),g.kg("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:g.kg({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:xt(new b(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[g.kg("multiCursorPaste.spread","Each cursor pastes a single line of the text."),g.kg("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:g.kg("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:xt(new u(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:g.kg("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:xt(new b(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[g.kg("occurrencesHighlight.off","Does not highlight occurrences."),g.kg("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),g.kg("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:g.kg("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:xt(new c(82,"overviewRulerBorder",!0,{description:g.kg("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:xt(new u(83,"overviewRulerLanes",3,0,3)),padding:xt(new ee),pasteAs:xt(new Kt),parameterHints:xt(new De),peekWidgetDefaultFocus:xt(new b(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[g.kg("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),g.kg("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:g.kg("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:xt(new c(88,"definitionLinkOpensInPeek",!1,{description:g.kg("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:xt(new He),quickSuggestionsDelay:xt(new u(90,"quickSuggestionsDelay",10,0,1073741824,{description:g.kg("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:xt(new c(91,"readOnly",!1)),readOnlyMessage:xt(new ye),renameOnType:xt(new c(93,"renameOnType",!1,{description:g.kg("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:g.kg("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:xt(new c(94,"renderControlCharacters",!0,{description:g.kg("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:xt(new b(95,"renderFinalNewline",k.j9?"dimmed":"on",["off","on","dimmed"],{description:g.kg("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:xt(new b(96,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",g.kg("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:g.kg("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:xt(new c(97,"renderLineHighlightOnlyWhenFocus",!1,{description:g.kg("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:xt(new b(98,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:xt(new b(99,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",g.kg("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),g.kg("renderWhitespace.selection","Render whitespace characters only on selected text."),g.kg("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:g.kg("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:xt(new u(100,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:xt(new c(101,"roundedSelection",!0,{description:g.kg("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:xt(new q),scrollbar:xt(new be),scrollBeyondLastColumn:xt(new u(104,"scrollBeyondLastColumn",4,0,1073741824,{description:g.kg("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:xt(new c(105,"scrollBeyondLastLine",!0,{description:g.kg("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:xt(new c(106,"scrollPredominantAxis",!0,{description:g.kg("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:xt(new c(107,"selectionClipboard",!0,{description:g.kg("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:k.j9})),selectionHighlight:xt(new c(108,"selectionHighlight",!0,{description:g.kg("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:xt(new c(109,"selectOnLineNumbers",!0)),showFoldingControls:xt(new b(110,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[g.kg("showFoldingControls.always","Always show the folding controls."),g.kg("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),g.kg("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:g.kg("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:xt(new c(111,"showUnused",!0,{description:g.kg("showUnused","Controls fading out of unused code.")})),showDeprecated:xt(new c(140,"showDeprecated",!0,{description:g.kg("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:xt(new he),snippetSuggestions:xt(new b(112,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[g.kg("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),g.kg("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),g.kg("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),g.kg("snippetSuggestions.none","Do not show snippet suggestions.")],description:g.kg("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:xt(new We),smoothScrolling:xt(new c(114,"smoothScrolling",!1,{description:g.kg("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:xt(new u(117,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:xt(new Le),inlineSuggest:xt(new fe),inlineEdit:xt(new le),inlineCompletionsAccessibilityVerbose:xt(new c(149,"inlineCompletionsAccessibilityVerbose",!1,{description:g.kg("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:xt(new u(119,"suggestFontSize",0,0,1e3,{markdownDescription:g.kg("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:xt(new u(120,"suggestLineHeight",0,0,1e3,{markdownDescription:g.kg("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:xt(new c(121,"suggestOnTriggerCharacters",!0,{description:g.kg("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:xt(new b(122,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[g.kg("suggestSelection.first","Always select the first suggestion."),g.kg("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),g.kg("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:g.kg("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:xt(new b(123,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[g.kg("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),g.kg("tabCompletion.off","Disable tab completions."),g.kg("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:g.kg("tabCompletion","Enables tab completions.")})),tabIndex:xt(new u(124,"tabIndex",0,-1,1073741824)),unicodeHighlight:xt(new me),unusualLineTerminators:xt(new b(126,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[g.kg("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),g.kg("unusualLineTerminators.off","Unusual line terminators are ignored."),g.kg("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:g.kg("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:xt(new c(127,"useShadowDOM",!0)),useTabStops:xt(new c(128,"useTabStops",!0,{description:g.kg("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:xt(new b(129,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[g.kg("wordBreak.normal","Use the default line break rule."),g.kg("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:g.kg("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:xt(new we),wordSeparators:xt(new v(131,"wordSeparators",L.J3,{description:g.kg("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:xt(new b(132,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[g.kg("wordWrap.off","Lines will never wrap."),g.kg("wordWrap.on","Lines will wrap at the viewport width."),g.kg({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),g.kg({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:g.kg({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:xt(new v(133,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:xt(new v(134,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:xt(new u(135,"wordWrapColumn",80,1,1073741824,{markdownDescription:g.kg({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:xt(new b(136,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:xt(new b(137,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:xt(new A),defaultColorDecorators:xt(new c(147,"defaultColorDecorators",!1,{markdownDescription:g.kg("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:xt(new Te),tabFocusMode:xt(new c(144,"tabFocusMode",!1,{markdownDescription:g.kg("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:xt(new X),wrappingInfo:xt(new lt),wrappingIndent:xt(new Ue),wrappingStrategy:xt(new ie)}},"./node_modules/monaco-editor/esm/vs/editor/common/config/editorZoom.js":function(pt,Me,e){e.d(Me,{D:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js");const F=new class{constructor(){this._zoomLevel=0,this._onDidChangeZoomLevel=new r.vl,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}getZoomLevel(){return this._zoomLevel}setZoomLevel(k){k=Math.min(Math.max(-5,k),20),this._zoomLevel!==k&&(this._zoomLevel=k,this._onDidChangeZoomLevel.fire(this._zoomLevel))}}},"./node_modules/monaco-editor/esm/vs/editor/common/config/fontInfo.js":function(pt,Me,e){e.d(Me,{YJ:function(){return I},_8:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorZoom.js");const M=r.zx?1.5:1.35,L=8;class g{static createFromValidatedSettings(f,d,a){const s=f.get(49),n=f.get(53),i=f.get(52),c=f.get(51),m=f.get(54),u=f.get(67),C=f.get(64);return g._create(s,n,i,c,m,u,C,d,a)}static _create(f,d,a,s,n,i,c,m,u){i===0?i=M*a:i=0&&L<256?this._asciiMap[L]=x:this._map.set(L,x)}get(L){return L>=0&&L<256?this._asciiMap[L]:this._map.get(L)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class k{constructor(){this._actual=new F(0)}add(L){this._actual.set(L,1)}has(L){return this._actual.get(L)===1}clear(){return this._actual.clear()}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/cursorColumns.js":function(pt,Me,e){e.d(Me,{A:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");class F{static _nextVisibleColumn(M,L,g){return M===9?F.nextRenderTabStop(L,g):r.ne(M)||r.Ss(M)?L+2:L+1}static visibleColumnFromColumn(M,L,g){const x=Math.min(L-1,M.length),I=M.substring(0,x),S=new r.km(I);let f=0;for(;!S.eol();){const d=r.Z5(I,x,S.offset);S.nextGraphemeLength(),f=this._nextVisibleColumn(d,f,g)}return f}static columnFromVisibleColumn(M,L,g){if(L<=0)return 1;const x=M.length,I=new r.km(M);let S=0,f=1;for(;!I.eol();){const d=r.Z5(M,x,I.offset);I.nextGraphemeLength();const a=this._nextVisibleColumn(d,S,g),s=I.offset+1;if(a>=L){const n=L-S;return a-L{const Zt=Et.getColor(k.YtV),qt=Et.getColor(L),tt=qt&&!qt.isTransparent()?qt:Zt;tt&&Kt.addRule(`.monaco-editor .inputarea.ime-input { background-color: ${tt}; }`)})},"./node_modules/monaco-editor/esm/vs/editor/common/core/eolCounter.js":function(pt,Me,e){e.d(Me,{W:function(){return r}});function r(F){let k=0,M=0,L=0,g=0;for(let x=0,I=F.length;xS)throw new r.D7(`startLineNumber ${I} cannot be after endLineNumberExclusive ${S}`);this.startLineNumber=I,this.endLineNumberExclusive=S}contains(I){return this.startLineNumber<=I&&Id.endLineNumberExclusive>=I.startLineNumber),f=(0,M.iM)(this._normalizedRanges,d=>d.startLineNumber<=I.endLineNumberExclusive)+1;if(S===f)this._normalizedRanges.splice(S,0,I);else if(S===f-1){const d=this._normalizedRanges[S];this._normalizedRanges[S]=d.join(I)}else{const d=this._normalizedRanges[S].join(this._normalizedRanges[f-1]).join(I);this._normalizedRanges.splice(S,f-S,d)}}contains(I){const S=(0,M.lx)(this._normalizedRanges,f=>f.startLineNumber<=I);return!!S&&S.endLineNumberExclusive>I}intersects(I){const S=(0,M.lx)(this._normalizedRanges,f=>f.startLineNumberI.startLineNumber}getUnion(I){if(this._normalizedRanges.length===0)return I;if(I._normalizedRanges.length===0)return this;const S=[];let f=0,d=0,a=null;for(;f=s.startLineNumber?a=new L(a.startLineNumber,Math.max(a.endLineNumberExclusive,s.endLineNumberExclusive)):(S.push(a),a=s)}return a!==null&&S.push(a),new g(S)}subtractFrom(I){const S=(0,M.hw)(this._normalizedRanges,s=>s.endLineNumberExclusive>=I.startLineNumber),f=(0,M.iM)(this._normalizedRanges,s=>s.startLineNumber<=I.endLineNumberExclusive)+1;if(S===f)return new g([I]);const d=[];let a=I.startLineNumber;for(let s=S;sa&&d.push(new L(a,n.startLineNumber)),a=n.endLineNumberExclusive}return aI.toString()).join(", ")}getIntersection(I){const S=[];let f=0,d=0;for(;fS.delta(I)))}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js":function(pt,Me,e){e.d(Me,{L:function(){return F},h:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js");class F{static addRange(L,g){let x=0;for(;xg))return new F(L,g)}static ofLength(L){return new F(0,L)}static ofStartAndLength(L,g){return new F(L,L+g)}constructor(L,g){if(this.start=L,this.endExclusive=g,L>g)throw new r.D7(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(L){return new F(this.start+L,this.endExclusive+L)}deltaStart(L){return new F(this.start+L,this.endExclusive)}deltaEnd(L){return new F(this.start,this.endExclusive+L)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(L){return this.start<=L&&L=L.endExclusive}slice(L){return L.slice(this.start,this.endExclusive)}substring(L){return L.substring(this.start,this.endExclusive)}clip(L){if(this.isEmpty)throw new r.D7(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,L))}clipCyclic(L){if(this.isEmpty)throw new r.D7(`Invalid clipping range: ${this.toString()}`);return L=this.endExclusive?this.start+(L-this.start)%this.length:L}forEach(L){for(let g=this.start;gL.toString()).join(", ")}intersectsStrict(L){let g=0;for(;gL+g.length,0)}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/position.js":function(pt,Me,e){e.d(Me,{y:function(){return r}});class r{constructor(k,M){this.lineNumber=k,this.column=M}with(k=this.lineNumber,M=this.column){return k===this.lineNumber&&M===this.column?this:new r(k,M)}delta(k=0,M=0){return this.with(this.lineNumber+k,this.column+M)}equals(k){return r.equals(this,k)}static equals(k,M){return!k&&!M?!0:!!k&&!!M&&k.lineNumber===M.lineNumber&&k.column===M.column}isBefore(k){return r.isBefore(this,k)}static isBefore(k,M){return k.lineNumberg||M===g&&L>x?(this.startLineNumber=g,this.startColumn=x,this.endLineNumber=M,this.endColumn=L):(this.startLineNumber=M,this.startColumn=L,this.endLineNumber=g,this.endColumn=x)}isEmpty(){return F.isEmpty(this)}static isEmpty(M){return M.startLineNumber===M.endLineNumber&&M.startColumn===M.endColumn}containsPosition(M){return F.containsPosition(this,M)}static containsPosition(M,L){return!(L.lineNumberM.endLineNumber||L.lineNumber===M.startLineNumber&&L.columnM.endColumn)}static strictContainsPosition(M,L){return!(L.lineNumberM.endLineNumber||L.lineNumber===M.startLineNumber&&L.column<=M.startColumn||L.lineNumber===M.endLineNumber&&L.column>=M.endColumn)}containsRange(M){return F.containsRange(this,M)}static containsRange(M,L){return!(L.startLineNumberM.endLineNumber||L.endLineNumber>M.endLineNumber||L.startLineNumber===M.startLineNumber&&L.startColumnM.endColumn)}strictContainsRange(M){return F.strictContainsRange(this,M)}static strictContainsRange(M,L){return!(L.startLineNumberM.endLineNumber||L.endLineNumber>M.endLineNumber||L.startLineNumber===M.startLineNumber&&L.startColumn<=M.startColumn||L.endLineNumber===M.endLineNumber&&L.endColumn>=M.endColumn)}plusRange(M){return F.plusRange(this,M)}static plusRange(M,L){let g,x,I,S;return L.startLineNumberM.endLineNumber?(I=L.endLineNumber,S=L.endColumn):L.endLineNumber===M.endLineNumber?(I=L.endLineNumber,S=Math.max(L.endColumn,M.endColumn)):(I=M.endLineNumber,S=M.endColumn),new F(g,x,I,S)}intersectRanges(M){return F.intersectRanges(this,M)}static intersectRanges(M,L){let g=M.startLineNumber,x=M.startColumn,I=M.endLineNumber,S=M.endColumn;const f=L.startLineNumber,d=L.startColumn,a=L.endLineNumber,s=L.endColumn;return ga?(I=a,S=s):I===a&&(S=Math.min(S,s)),g>I||g===I&&x>S?null:new F(g,x,I,S)}equalsRange(M){return F.equalsRange(this,M)}static equalsRange(M,L){return!M&&!L?!0:!!M&&!!L&&M.startLineNumber===L.startLineNumber&&M.startColumn===L.startColumn&&M.endLineNumber===L.endLineNumber&&M.endColumn===L.endColumn}getEndPosition(){return F.getEndPosition(this)}static getEndPosition(M){return new r.y(M.endLineNumber,M.endColumn)}getStartPosition(){return F.getStartPosition(this)}static getStartPosition(M){return new r.y(M.startLineNumber,M.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(M,L){return new F(this.startLineNumber,this.startColumn,M,L)}setStartPosition(M,L){return new F(M,L,this.endLineNumber,this.endColumn)}collapseToStart(){return F.collapseToStart(this)}static collapseToStart(M){return new F(M.startLineNumber,M.startColumn,M.startLineNumber,M.startColumn)}collapseToEnd(){return F.collapseToEnd(this)}static collapseToEnd(M){return new F(M.endLineNumber,M.endColumn,M.endLineNumber,M.endColumn)}delta(M){return new F(this.startLineNumber+M,this.startColumn,this.endLineNumber+M,this.endColumn)}static fromPositions(M,L=M){return new F(M.lineNumber,M.column,L.lineNumber,L.column)}static lift(M){return M?new F(M.startLineNumber,M.startColumn,M.endLineNumber,M.endColumn):null}static isIRange(M){return M&&typeof M.startLineNumber=="number"&&typeof M.startColumn=="number"&&typeof M.endLineNumber=="number"&&typeof M.endColumn=="number"}static areIntersectingOrTouching(M,L){return!(M.endLineNumberM.startLineNumber}toJSON(){return this}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js":function(pt,Me,e){e.d(Me,{L:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class k extends F.Q{constructor(L,g,x,I){super(L,g,x,I),this.selectionStartLineNumber=L,this.selectionStartColumn=g,this.positionLineNumber=x,this.positionColumn=I}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(L){return k.selectionsEqual(this,L)}static selectionsEqual(L,g){return L.selectionStartLineNumber===g.selectionStartLineNumber&&L.selectionStartColumn===g.selectionStartColumn&&L.positionLineNumber===g.positionLineNumber&&L.positionColumn===g.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(L,g){return this.getDirection()===0?new k(this.startLineNumber,this.startColumn,L,g):new k(L,g,this.startLineNumber,this.startColumn)}getPosition(){return new r.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new r.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(L,g){return this.getDirection()===0?new k(L,g,this.endLineNumber,this.endColumn):new k(this.endLineNumber,this.endColumn,L,g)}static fromPositions(L,g=L){return new k(L.lineNumber,L.column,g.lineNumber,g.column)}static fromRange(L,g){return g===0?new k(L.startLineNumber,L.startColumn,L.endLineNumber,L.endColumn):new k(L.endLineNumber,L.endColumn,L.startLineNumber,L.startColumn)}static liftSelection(L){return new k(L.selectionStartLineNumber,L.selectionStartColumn,L.positionLineNumber,L.positionColumn)}static selectionsArrEqual(L,g){if(L&&!g||!L&&g)return!1;if(!L&&!g)return!0;if(L.length!==g.length)return!1;for(let x=0,I=L.length;x0&&(c[0]===65279||c[0]===65534)?d(s,n,i):L().decode(c)}function d(s,n,i){const c=[];let m=0;for(let u=0;u=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=n;return}for(let c=0;c(0,r.Xo)(n,(i,c)=>i.range.getEndPosition().isBeforeOrEqual(c.range.getStartPosition())))}apply(n){let i="",c=new k.y(1,1);for(const u of this.edits){const C=u.range,h=C.getStartPosition(),v=C.getEndPosition(),p=f(c,h);p.isEmpty()||(i+=n.getValueOfRange(p)),i+=u.text,c=v}const m=f(c,n.endPositionExclusive);return m.isEmpty()||(i+=n.getValueOfRange(m)),i}applyToString(n){const i=new a(n);return this.apply(i)}getNewRanges(){const n=[];let i=0,c=0,m=0;for(const u of this.edits){const C=L.W.ofText(u.text),h=k.y.lift({lineNumber:u.range.startLineNumber+c,column:u.range.startColumn+(u.range.startLineNumber===i?m:0)}),v=C.createRange(h);n.push(v),c=v.endLineNumber-u.range.endLineNumber,m=v.endColumn-u.range.endColumn,i=u.range.endLineNumber}return n}}class S{constructor(n,i){this.range=n,this.text=i}}function f(s,n){if(!s.isBeforeOrEqual(n))throw new F.D7("start must be before end");return new x.Q(s.lineNumber,s.column,n.lineNumber,n.column)}class d{get endPositionExclusive(){return this.length.addToPosition(new k.y(1,1))}}class a extends d{constructor(n){super(),this.value=n,this._t=new g(this.value)}getValueOfRange(n){return this._t.getOffsetRange(n).substring(this.value)}get length(){return this._t.textLength}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/textLength.js":function(pt,Me,e){e.d(Me,{W:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class k{static ofText(L){let g=0,x=0;for(const I of L)I===` `?(g++,x=0):x++;return new k(g,x)}constructor(L,g){this.lineCount=L,this.columnCount=g}createRange(L){return this.lineCount===0?new F.Q(L.lineNumber,L.column,L.lineNumber,L.column+this.columnCount):new F.Q(L.lineNumber,L.column,L.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(L){return this.lineCount===0?new r.y(L.lineNumber,L.column+this.columnCount):new r.y(L.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}k.zero=new k(0,0)},"./node_modules/monaco-editor/esm/vs/editor/common/core/textModelDefaults.js":function(pt,Me,e){e.d(Me,{R:function(){return r}});const r={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js":function(pt,Me,e){e.d(Me,{i:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js");class k extends F.V{constructor(x,I){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=I,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let S=0,f=x.length;SI)break;S=f}return S}findNextIntlWordAtOrAfterOffset(x,I){for(const S of this._getIntlSegmenterWordsOnLine(x))if(!(S.index/?";function M(f=""){let d="(-?\\d*\\.\\d\\w*)|([^";for(const a of k)f.indexOf(a)>=0||(d+="\\"+a);return d+="\\s]+)",new RegExp(d,"g")}const L=M();function g(f){let d=L;if(f&&f instanceof RegExp)if(f.global)d=f;else{let a="g";f.ignoreCase&&(a+="i"),f.multiline&&(a+="m"),f.unicode&&(a+="u"),d=new RegExp(f.source,a)}return d.lastIndex=0,d}const x=new F.w;x.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function I(f,d,a,s,n){if(d=g(d),n||(n=r.f.first(x)),a.length>n.maxLen){let C=f-n.maxLen/2;return C<0?C=0:s+=C,a=a.substring(C,f+n.maxLen/2),I(f,d,a,s,n)}const i=Date.now(),c=f-1-s;let m=-1,u=null;for(let C=1;!(Date.now()-i>=n.timeBudget);C++){const h=c-n.windowSize*C;d.lastIndex=Math.max(0,h);const v=S(d,a,c,m);if(!v&&u||(u=v,h<=0))break;m=h}if(u){const C={word:u[0],startColumn:s+1+u.index,endColumn:s+1+u.index+u[0].length};return d.lastIndex=0,C}return null}function S(f,d,a,s){let n;for(;n=f.exec(d);){const i=n.index||0;if(i<=a&&f.lastIndex>=a)return n;if(s>0&&i>s)return null}return null}},"./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorAtomicMoveOperations.js":function(pt,Me,e){e.d(Me,{s:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/cursorColumns.js");class F{static whitespaceVisibleColumn(M,L,g){const x=M.length;let I=0,S=-1,f=-1;for(let d=0;d=v.length+1)return!1;const p=v.charAt(h.column-2),b=s.get(p);if(!b)return!1;if((0,k.vG)(p)){if(a==="never")return!1}else if(d==="never")return!1;const O=v.charAt(h.column-1);let w=!1;for(const j of b)j.open===p&&j.close===O&&(w=!0);if(!w)return!1;if(f==="auto"){let j=!1;for(let U=0,K=c.length;U1){const n=d.getLineContent(s.lineNumber),i=r.HG(n),c=i===-1?n.length+1:i+1;if(s.column<=c){const m=a.visibleColumnFromColumn(d,s),u=M.A.prevIndentTabStop(m,a.indentSize),C=a.columnFromVisibleColumn(d,s.lineNumber,u);return new g.Q(s.lineNumber,C,s.lineNumber,s.column)}}return g.Q.fromPositions(I.getPositionAfterDeleteLeft(s,d),s)}static getPositionAfterDeleteLeft(f,d){if(f.column>1){const a=r.Wd(f.column-1,d.getLineContent(f.lineNumber));return f.with(void 0,a+1)}else if(f.lineNumber>1){const a=f.lineNumber-1;return new x.y(a,d.getLineMaxColumn(a))}else return f}static cut(f,d,a){const s=[];let n=null;a.sort((i,c)=>x.y.compare(i.getStartPosition(),c.getEndPosition()));for(let i=0,c=a.length;i1&&n?.endLineNumber!==u.lineNumber?(C=u.lineNumber-1,h=d.getLineMaxColumn(u.lineNumber-1),v=u.lineNumber,p=d.getLineMaxColumn(u.lineNumber)):(C=u.lineNumber,h=1,v=u.lineNumber,p=d.getLineMaxColumn(u.lineNumber));const b=new g.Q(C,h,v,p);n=b,b.isEmpty()?s[i]=null:s[i]=new F.iu(b,"")}else s[i]=null;else s[i]=new F.iu(m,"")}return new k.vY(0,s,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}}},"./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorMoveCommands.js":function(pt,Me,e){e.d(Me,{S:function(){return I},c:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/cursorCommon.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorMoveOperations.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorWordOperations.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class x{static addCursorDown(f,d,a){const s=[];let n=0;for(let i=0,c=d.length;iu&&(C=u,h=f.model.getLineMaxColumn(C)),F.MF.fromModelState(new F.mG(new g.Q(i.lineNumber,1,C,h),2,0,new L.y(C,h),0))}const m=d.modelState.selectionStart.getStartPosition().lineNumber;if(i.lineNumberm){const u=f.getLineCount();let C=c.lineNumber+1,h=1;return C>u&&(C=u,h=f.getLineMaxColumn(C)),F.MF.fromViewState(d.viewState.move(!0,C,h,0))}else{const u=d.modelState.selectionStart.getEndPosition();return F.MF.fromModelState(d.modelState.move(!0,u.lineNumber,u.column,0))}}static word(f,d,a,s){const n=f.model.validatePosition(s);return F.MF.fromModelState(M.z.word(f.cursorConfig,f.model,d.modelState,a,n))}static cancelSelection(f,d){if(!d.modelState.hasSelection())return new F.MF(d.modelState,d.viewState);const a=d.viewState.position.lineNumber,s=d.viewState.position.column;return F.MF.fromViewState(new F.mG(new g.Q(a,s,a,s),0,0,new L.y(a,s),0))}static moveTo(f,d,a,s,n){if(a){if(d.modelState.selectionStartKind===1)return this.word(f,d,a,s);if(d.modelState.selectionStartKind===2)return this.line(f,d,a,s,n)}const i=f.model.validatePosition(s),c=n?f.coordinatesConverter.validateViewPosition(new L.y(n.lineNumber,n.column),i):f.coordinatesConverter.convertModelPositionToViewPosition(i);return F.MF.fromViewState(d.viewState.move(a,c.lineNumber,c.column,0))}static simpleMove(f,d,a,s,n,i){switch(a){case 0:return i===4?this._moveHalfLineLeft(f,d,s):this._moveLeft(f,d,s,n);case 1:return i===4?this._moveHalfLineRight(f,d,s):this._moveRight(f,d,s,n);case 2:return i===2?this._moveUpByViewLines(f,d,s,n):this._moveUpByModelLines(f,d,s,n);case 3:return i===2?this._moveDownByViewLines(f,d,s,n):this._moveDownByModelLines(f,d,s,n);case 4:return i===2?d.map(c=>F.MF.fromViewState(k.I.moveToPrevBlankLine(f.cursorConfig,f,c.viewState,s))):d.map(c=>F.MF.fromModelState(k.I.moveToPrevBlankLine(f.cursorConfig,f.model,c.modelState,s)));case 5:return i===2?d.map(c=>F.MF.fromViewState(k.I.moveToNextBlankLine(f.cursorConfig,f,c.viewState,s))):d.map(c=>F.MF.fromModelState(k.I.moveToNextBlankLine(f.cursorConfig,f.model,c.modelState,s)));case 6:return this._moveToViewMinColumn(f,d,s);case 7:return this._moveToViewFirstNonWhitespaceColumn(f,d,s);case 8:return this._moveToViewCenterColumn(f,d,s);case 9:return this._moveToViewMaxColumn(f,d,s);case 10:return this._moveToViewLastNonWhitespaceColumn(f,d,s);default:return null}}static viewportMove(f,d,a,s,n){const i=f.getCompletelyVisibleViewRange(),c=f.coordinatesConverter.convertViewRangeToModelRange(i);switch(a){case 11:{const m=this._firstLineNumberInRange(f.model,c,n),u=f.model.getLineFirstNonWhitespaceColumn(m);return[this._moveToModelPosition(f,d[0],s,m,u)]}case 13:{const m=this._lastLineNumberInRange(f.model,c,n),u=f.model.getLineFirstNonWhitespaceColumn(m);return[this._moveToModelPosition(f,d[0],s,m,u)]}case 12:{const m=Math.round((c.startLineNumber+c.endLineNumber)/2),u=f.model.getLineFirstNonWhitespaceColumn(m);return[this._moveToModelPosition(f,d[0],s,m,u)]}case 14:{const m=[];for(let u=0,C=d.length;ua.endLineNumber-1?i=a.endLineNumber-1:nF.MF.fromViewState(k.I.moveLeft(f.cursorConfig,f,n.viewState,a,s)))}static _moveHalfLineLeft(f,d,a){const s=[];for(let n=0,i=d.length;nF.MF.fromViewState(k.I.moveRight(f.cursorConfig,f,n.viewState,a,s)))}static _moveHalfLineRight(f,d,a){const s=[];for(let n=0,i=d.length;nf.getLineMinColumn(d.lineNumber))return d.delta(void 0,-r.MV(f.getLineContent(d.lineNumber),d.column-1));if(d.lineNumber>1){const a=d.lineNumber-1;return new k.y(a,f.getLineMaxColumn(a))}else return d}static leftPositionAtomicSoftTabs(f,d,a){if(d.column<=f.getLineIndentColumn(d.lineNumber)){const s=f.getLineMinColumn(d.lineNumber),n=f.getLineContent(d.lineNumber),i=L.s.atomicPosition(n,d.column-1,a,0);if(i!==-1&&i+1>=s)return new k.y(d.lineNumber,i+1)}return this.leftPosition(f,d)}static left(f,d,a){const s=f.stickyTabStops?I.leftPositionAtomicSoftTabs(d,a,f.tabSize):I.leftPosition(d,a);return new x(s.lineNumber,s.column,0)}static moveLeft(f,d,a,s,n){let i,c;if(a.hasSelection()&&!s)i=a.selection.startLineNumber,c=a.selection.startColumn;else{const m=a.position.delta(void 0,-(n-1)),u=d.normalizePosition(I.clipPositionColumn(m,d),0),C=I.left(f,d,u);i=C.lineNumber,c=C.column}return a.move(s,i,c,0)}static clipPositionColumn(f,d){return new k.y(f.lineNumber,I.clipRange(f.column,d.getLineMinColumn(f.lineNumber),d.getLineMaxColumn(f.lineNumber)))}static clipRange(f,d,a){return fa?a:f}static rightPosition(f,d,a){return aC?(a=C,c?s=d.getLineMaxColumn(a):s=Math.min(d.getLineMaxColumn(a),s)):s=f.columnFromVisibleColumn(d,a,u),p?n=0:n=u-F.A.visibleColumnFromColumn(d.getLineContent(a),s,f.tabSize),m!==void 0){const b=new k.y(a,s),O=d.normalizePosition(b,m);n=n+(s-O.column),a=O.lineNumber,s=O.column}return new x(a,s,n)}static down(f,d,a,s,n,i,c){return this.vertical(f,d,a,s,n,a+i,c,4)}static moveDown(f,d,a,s,n){let i,c;a.hasSelection()&&!s?(i=a.selection.endLineNumber,c=a.selection.endColumn):(i=a.position.lineNumber,c=a.position.column);let m=0,u;do if(u=I.down(f,d,i+m,c,a.leftoverVisibleColumns,n,!0),d.normalizePosition(new k.y(u.lineNumber,u.column),2).lineNumber>i)break;while(m++<10&&i+m1&&this._isBlankLine(d,n);)n--;for(;n>1&&!this._isBlankLine(d,n);)n--;return a.move(s,n,d.getLineMinColumn(n),0)}static moveToNextBlankLine(f,d,a,s){const n=d.getLineCount();let i=a.position.lineNumber;for(;i1){let A;for(A=U-1;A>=1;A--){const W=j.getLineContent(A);if(F.lT(W)>=0)break}if(A<1)return null;const T=j.getLineMaxColumn(A),E=(0,c.h)(w.autoIndent,j,new L.Q(A,T,A,T),w.languageConfigurationService);E&&(G=E.indentation+E.appendText)}return K&&(K===a.l.Indent&&(G=m.shiftIndent(w,G)),K===a.l.Outdent&&(G=m.unshiftIndent(w,G)),G=w.normalizeIndentation(G)),G||null}static _replaceJumpToNextIndent(w,j,U,K){let G="";const P=U.getStartPosition();if(w.insertSpaces){const A=w.visibleColumnFromColumn(j,P),T=w.indentSize,E=T-A%T;for(let W=0;Wthis._compositionType(U,W,G,P,A,T));return new S.vY(4,E,{shouldPushStackElementBefore:v(w,4),shouldPushStackElementAfter:!1})}static _compositionType(w,j,U,K,G,P){if(!j.isEmpty())return null;const A=j.getPosition(),T=Math.max(1,A.column-K),E=Math.min(w.getLineMaxColumn(A.lineNumber),A.column+G),W=new L.Q(A.lineNumber,T,A.lineNumber,E);return w.getValueInRange(W)===U&&P===0?null:new k.iP(W,U,0,P)}static _typeCommand(w,j,U){return U?new k.q2(w,j,!0):new k.iu(w,j,!0)}static _enter(w,j,U,K){if(w.autoIndent===0)return m._typeCommand(K,` `,U);if(!j.tokenization.isCheapToTokenize(K.getStartPosition().lineNumber)||w.autoIndent===1){const T=j.getLineContent(K.startLineNumber),E=F.UU(T).substring(0,K.startColumn-1);return m._typeCommand(K,` `+w.normalizeIndentation(E),U)}const G=(0,c.h)(w.autoIndent,j,K,w.languageConfigurationService);if(G){if(G.indentAction===a.l.None)return m._typeCommand(K,` `+w.normalizeIndentation(G.indentation+G.appendText),U);if(G.indentAction===a.l.Indent)return m._typeCommand(K,` `+w.normalizeIndentation(G.indentation+G.appendText),U);if(G.indentAction===a.l.IndentOutdent){const T=w.normalizeIndentation(G.indentation),E=w.normalizeIndentation(G.indentation+G.appendText),W=` `+E+` `+T;return U?new k.q2(K,W,!0):new k.iP(K,W,-1,E.length-T.length,!0)}else if(G.indentAction===a.l.Outdent){const T=m.unshiftIndent(w,G.indentation);return m._typeCommand(K,` `+w.normalizeIndentation(T+G.appendText),U)}}const P=j.getLineContent(K.startLineNumber),A=F.UU(P).substring(0,K.startColumn-1);if(w.autoIndent>=4){const T=(0,i.MU)(w.autoIndent,j,K,{unshiftIndent:E=>m.unshiftIndent(w,E),shiftIndent:E=>m.shiftIndent(w,E),normalizeIndentation:E=>w.normalizeIndentation(E)},w.languageConfigurationService);if(T){let E=w.visibleColumnFromColumn(j,K.getEndPosition());const W=K.endColumn,$=j.getLineContent(K.endLineNumber),z=F.HG($);if(z>=0?K=K.setEndPosition(K.endLineNumber,Math.max(K.endColumn,z+1)):K=K.setEndPosition(K.endLineNumber,j.getLineMaxColumn(K.endLineNumber)),U)return new k.q2(K,` `+w.normalizeIndentation(T.afterEnter),!0);{let J=0;return W<=z+1&&(w.insertSpaces||(E=Math.ceil(E/w.indentSize)),J=Math.min(E+1-w.normalizeIndentation(T.afterEnter).length-1,0)),new k.iP(K,` `+w.normalizeIndentation(T.afterEnter),0,J,!0)}}}return m._typeCommand(K,` `+w.normalizeIndentation(A),U)}static _isAutoIndentType(w,j,U){if(w.autoIndent<4)return!1;for(let K=0,G=U.length;Km.shiftIndent(w,A),unshiftIndent:A=>m.unshiftIndent(w,A)},w.languageConfigurationService);if(P===null)return null;if(P!==w.normalizeIndentation(G)){const A=j.getLineFirstNonWhitespaceColumn(U.startLineNumber);return A===0?m._typeCommand(new L.Q(U.startLineNumber,1,U.endLineNumber,U.endColumn),w.normalizeIndentation(P)+K,!1):m._typeCommand(new L.Q(U.startLineNumber,1,U.endLineNumber,U.endColumn),w.normalizeIndentation(P)+j.getLineContent(U.startLineNumber).substring(A-1,U.startColumn-1)+K,!1)}return null}static _isAutoClosingOvertype(w,j,U,K,G){if(w.autoClosingOvertype==="never"||!w.autoClosingPairs.autoClosingPairsCloseSingleChar.has(G))return!1;for(let P=0,A=U.length;P2?W.charCodeAt(E.column-2):0)===92&&z)return!1;if(w.autoClosingOvertype==="auto"){let B=!1;for(let V=0,Y=K.length;Vj.startsWith(T.open)),A=G.some(T=>j.startsWith(T.close));return!P&&A}static _findAutoClosingPairOpen(w,j,U,K){const G=w.autoClosingPairs.autoClosingPairsOpenByEnd.get(K);if(!G)return null;let P=null;for(const A of G)if(P===null||A.open.length>P.open.length){let T=!0;for(const E of U)if(j.getValueInRange(new L.Q(E.lineNumber,E.column-A.open.length+1,E.lineNumber,E.column))+K!==A.open){T=!1;break}T&&(P=A)}return P}static _findContainedAutoClosingPair(w,j){if(j.open.length<=1)return null;const U=j.close.charAt(j.close.length-1),K=w.autoClosingPairs.autoClosingPairsCloseByEnd.get(U)||[];let G=null;for(const P of K)P.open!==j.open&&j.open.includes(P.open)&&j.close.endsWith(P.close)&&(!G||P.open.length>G.open.length)&&(G=P);return G}static _getAutoClosingPairClose(w,j,U,K,G){for(const B of U)if(!B.isEmpty())return null;const P=U.map(B=>{const V=B.getPosition();return G?{lineNumber:V.lineNumber,beforeColumn:V.column-K.length,afterColumn:V.column}:{lineNumber:V.lineNumber,beforeColumn:V.column,afterColumn:V.column}}),A=this._findAutoClosingPairOpen(w,j,P.map(B=>new d.y(B.lineNumber,B.beforeColumn)),K);if(!A)return null;let T,E;if((0,S.vG)(K)?(T=w.autoClosingQuotes,E=w.shouldAutoCloseBefore.quote):(w.blockCommentStartToken?A.open.includes(w.blockCommentStartToken):!1)?(T=w.autoClosingComments,E=w.shouldAutoCloseBefore.comment):(T=w.autoClosingBrackets,E=w.shouldAutoCloseBefore.bracket),T==="never")return null;const $=this._findContainedAutoClosingPair(w,A),z=$?$.close:"";let J=!0;for(const B of P){const{lineNumber:V,beforeColumn:Y,afterColumn:X}=B,ie=j.getLineContent(V),re=ie.substring(0,Y-1),te=ie.substring(X-1);if(te.startsWith(z)||(J=!1),te.length>0){const Ce=te.charAt(0);if(!m._isBeforeClosingBrace(w,te)&&!E(Ce))return null}if(A.open.length===1&&(K==="'"||K==='"')&&T!=="always"){const Ce=(0,f.i)(w.wordSeparators,[]);if(re.length>0){const Pe=re.charCodeAt(re.length-1);if(Ce.get(Pe)===0)return null}}if(!j.tokenization.isCheapToTokenize(V))return null;j.tokenization.forceTokenization(V);const D=j.tokenization.getLineTokens(V),he=(0,n.BQ)(D,Y-1);if(!A.shouldAutoClose(he,Y-he.firstCharOffset))return null;const ve=A.findNeutralCharacter();if(ve){const Ce=j.tokenization.getTokenTypeIfInsertingCharacter(V,Y,ve);if(!A.isOK(Ce))return null}}return J?A.close.substring(0,A.close.length-z.length):A.close}static _runAutoClosingOpenCharType(w,j,U,K,G,P,A){const T=[];for(let E=0,W=K.length;Enew k.iu(new L.Q(z.positionLineNumber,z.positionColumn,z.positionLineNumber,z.positionColumn+1),"",!1));return new S.vY(4,$,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}const W=this._getAutoClosingPairClose(j,U,G,T,!0);return W!==null?this._runAutoClosingOpenCharType(w,j,U,G,T,!0,W):null}static typeWithInterceptors(w,j,U,K,G,P,A){if(!w&&A===` `){const W=[];for(let $=0,z=G.length;$=0;c--){const m=d.charCodeAt(c),u=a.get(m);if(i&&c===i.index)return this._createIntlWord(i,u);if(u===0){if(n===2)return this._createWord(d,n,u,c+1,this._findEndOfWord(d,a,n,c+1));n=1}else if(u===2){if(n===1)return this._createWord(d,n,u,c+1,this._findEndOfWord(d,a,n,c+1));n=2}else if(u===1&&n!==0)return this._createWord(d,n,u,c+1,this._findEndOfWord(d,a,n,c+1))}return n!==0?this._createWord(d,n,1,0,this._findEndOfWord(d,a,n,0)):null}static _findEndOfWord(d,a,s,n){const i=a.findNextIntlWordAtOrAfterOffset(d,n),c=d.length;for(let m=n;m=0;c--){const m=d.charCodeAt(c),u=a.get(m);if(i&&c===i.index)return c;if(u===1||s===1&&u===2||s===2&&u===0)return c+1}return 0}static moveWordLeft(d,a,s,n){let i=s.lineNumber,c=s.column;c===1&&i>1&&(i=i-1,c=a.getLineMaxColumn(i));let m=x._findPreviousWordOnLine(d,a,new L.y(i,c));if(n===0)return new L.y(i,m?m.start+1:1);if(n===1)return m&&m.wordType===2&&m.end-m.start===1&&m.nextCharClass===0&&(m=x._findPreviousWordOnLine(d,a,new L.y(i,m.start+1))),new L.y(i,m?m.start+1:1);if(n===3){for(;m&&m.wordType===2;)m=x._findPreviousWordOnLine(d,a,new L.y(i,m.start+1));return new L.y(i,m?m.start+1:1)}return m&&c<=m.end+1&&(m=x._findPreviousWordOnLine(d,a,new L.y(i,m.start+1))),new L.y(i,m?m.end+1:1)}static _moveWordPartLeft(d,a){const s=a.lineNumber,n=d.getLineMaxColumn(s);if(a.column===1)return s>1?new L.y(s-1,d.getLineMaxColumn(s-1)):a;const i=d.getLineContent(s);for(let c=a.column-1;c>1;c--){const m=i.charCodeAt(c-2),u=i.charCodeAt(c-1);if(m===95&&u!==95)return new L.y(s,c);if(m===45&&u!==45)return new L.y(s,c);if((r.Lv(m)||r.DB(m))&&r.Wv(u))return new L.y(s,c);if(r.Wv(m)&&r.Wv(u)&&c+1=u.start+1&&(u=x._findNextWordOnLine(d,a,new L.y(i,u.end+1))),u?c=u.start+1:c=a.getLineMaxColumn(i);return new L.y(i,c)}static _moveWordPartRight(d,a){const s=a.lineNumber,n=d.getLineMaxColumn(s);if(a.column===n)return s1?C=1:(u--,C=n.getLineMaxColumn(u)):(h&&C<=h.end+1&&(h=x._findPreviousWordOnLine(s,n,new L.y(u,h.start+1))),h?C=h.end+1:C>1?C=1:(u--,C=n.getLineMaxColumn(u))),new g.Q(u,C,m.lineNumber,m.column)}static deleteInsideWord(d,a,s){if(!s.isEmpty())return s;const n=new L.y(s.positionLineNumber,s.positionColumn),i=this._deleteInsideWordWhitespace(a,n);return i||this._deleteInsideWordDetermineDeleteRange(d,a,n)}static _charAtIsWhitespace(d,a){const s=d.charCodeAt(a);return s===32||s===9}static _deleteInsideWordWhitespace(d,a){const s=d.getLineContent(a.lineNumber),n=s.length;if(n===0)return null;let i=Math.max(a.column-2,0);if(!this._charAtIsWhitespace(s,i))return null;let c=Math.min(a.column-1,n-1);if(!this._charAtIsWhitespace(s,c))return null;for(;i>0&&this._charAtIsWhitespace(s,i-1);)i--;for(;c+11?new g.Q(s.lineNumber-1,a.getLineMaxColumn(s.lineNumber-1),s.lineNumber,1):s.lineNumberv.start+1<=s.column&&s.column<=v.end+1,m=(v,p)=>(v=Math.min(v,s.column),p=Math.max(p,s.column),new g.Q(s.lineNumber,v,s.lineNumber,p)),u=v=>{let p=v.start+1,b=v.end+1,O=!1;for(;b-11&&this._charAtIsWhitespace(n,p-2);)p--;return m(p,b)},C=x._findPreviousWordOnLine(d,a,s);if(C&&c(C))return u(C);const h=x._findNextWordOnLine(d,a,s);return h&&c(h)?u(h):C&&h?m(C.end+1,h.start+1):C?m(C.start+1,C.end+1):h?m(h.start+1,h.end+1):m(1,i+1)}static _deleteWordPartLeft(d,a){if(!a.isEmpty())return a;const s=a.getPosition(),n=x._moveWordPartLeft(d,s);return new g.Q(s.lineNumber,s.column,n.lineNumber,n.column)}static _findFirstNonWhitespaceChar(d,a){const s=d.length;for(let n=a;n=p.start+1&&(p=x._findNextWordOnLine(s,n,new L.y(u,p.end+1))),p?C=p.start+1:C!!d)}},"./node_modules/monaco-editor/esm/vs/editor/common/cursorCommon.js":function(pt,Me,e){e.d(Me,{MF:function(){return d},d$:function(){return f},mG:function(){return n},vG:function(){return c},vY:function(){return i}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/supports.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/cursorColumns.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/indentation.js");const x=()=>!0,I=()=>!1,S=m=>m===" "||m===" ";class f{static shouldRecreate(u){return u.hasChanged(145)||u.hasChanged(131)||u.hasChanged(37)||u.hasChanged(77)||u.hasChanged(79)||u.hasChanged(80)||u.hasChanged(6)||u.hasChanged(7)||u.hasChanged(11)||u.hasChanged(9)||u.hasChanged(10)||u.hasChanged(14)||u.hasChanged(128)||u.hasChanged(50)||u.hasChanged(91)||u.hasChanged(130)}constructor(u,C,h,v){var p;this.languageConfigurationService=v,this._cursorMoveConfigurationBrand=void 0,this._languageId=u;const b=h.options,O=b.get(145),w=b.get(50);this.readOnly=b.get(91),this.tabSize=C.tabSize,this.indentSize=C.indentSize,this.insertSpaces=C.insertSpaces,this.stickyTabStops=b.get(116),this.lineHeight=w.lineHeight,this.typicalHalfwidthCharacterWidth=w.typicalHalfwidthCharacterWidth,this.pageSize=Math.max(1,Math.floor(O.height/this.lineHeight)-2),this.useTabStops=b.get(128),this.wordSeparators=b.get(131),this.emptySelectionClipboard=b.get(37),this.copyWithSyntaxHighlighting=b.get(25),this.multiCursorMergeOverlapping=b.get(77),this.multiCursorPaste=b.get(79),this.multiCursorLimit=b.get(80),this.autoClosingBrackets=b.get(6),this.autoClosingComments=b.get(7),this.autoClosingQuotes=b.get(11),this.autoClosingDelete=b.get(9),this.autoClosingOvertype=b.get(10),this.autoSurround=b.get(14),this.autoIndent=b.get(12),this.wordSegmenterLocales=b.get(130),this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:this._getShouldAutoClose(u,this.autoClosingQuotes,!0),comment:this._getShouldAutoClose(u,this.autoClosingComments,!1),bracket:this._getShouldAutoClose(u,this.autoClosingBrackets,!1)},this.autoClosingPairs=this.languageConfigurationService.getLanguageConfiguration(u).getAutoClosingPairs();const j=this.languageConfigurationService.getLanguageConfiguration(u).getSurroundingPairs();if(j)for(const K of j)this.surroundingPairs[K.open]=K.close;const U=this.languageConfigurationService.getLanguageConfiguration(u).comments;this.blockCommentStartToken=(p=U?.blockCommentStartToken)!==null&&p!==void 0?p:null}get electricChars(){var u;if(!this._electricChars){this._electricChars={};const C=(u=this.languageConfigurationService.getLanguageConfiguration(this._languageId).electricCharacter)===null||u===void 0?void 0:u.getElectricCharacters();if(C)for(const h of C)this._electricChars[h]=!0}return this._electricChars}onElectricCharacter(u,C,h){const v=(0,M.BQ)(C,h-1),p=this.languageConfigurationService.getLanguageConfiguration(v.languageId).electricCharacter;return p?p.onElectricCharacter(u,v,h-v.firstCharOffset):null}normalizeIndentation(u){return(0,g.P)(u,this.indentSize,this.insertSpaces)}_getShouldAutoClose(u,C,h){switch(C){case"beforeWhitespace":return S;case"languageDefined":return this._getLanguageDefinedShouldAutoClose(u,h);case"always":return x;case"never":return I}}_getLanguageDefinedShouldAutoClose(u,C){const h=this.languageConfigurationService.getLanguageConfiguration(u).getAutoCloseBeforeSet(C);return v=>h.indexOf(v)!==-1}visibleColumnFromColumn(u,C){return L.A.visibleColumnFromColumn(u.getLineContent(C.lineNumber),C.column,this.tabSize)}columnFromVisibleColumn(u,C,h){const v=L.A.columnFromVisibleColumn(u.getLineContent(C),h,this.tabSize),p=u.getLineMinColumn(C);if(vb?b:v}}class d{static fromModelState(u){return new a(u)}static fromViewState(u){return new s(u)}static fromModelSelection(u){const C=k.L.liftSelection(u),h=new n(F.Q.fromPositions(C.getSelectionStart()),0,0,C.getPosition(),0);return d.fromModelState(h)}static fromModelSelections(u){const C=[];for(let h=0,v=u.length;h{a.push(L.fromOffsetPairs(s?s.getEndExclusives():g.zero,n?n.getStarts():new g(d,(s?s.seq2Range.endExclusive-s.seq1Range.endExclusive:0)+d)))}),a}static fromOffsetPairs(f,d){return new L(new k.L(f.offset1,d.offset1),new k.L(f.offset2,d.offset2))}constructor(f,d){this.seq1Range=f,this.seq2Range=d}swap(){return new L(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(f){return new L(this.seq1Range.join(f.seq1Range),this.seq2Range.join(f.seq2Range))}delta(f){return f===0?this:new L(this.seq1Range.delta(f),this.seq2Range.delta(f))}deltaStart(f){return f===0?this:new L(this.seq1Range.deltaStart(f),this.seq2Range.deltaStart(f))}deltaEnd(f){return f===0?this:new L(this.seq1Range.deltaEnd(f),this.seq2Range.deltaEnd(f))}intersect(f){const d=this.seq1Range.intersect(f.seq1Range),a=this.seq2Range.intersect(f.seq2Range);if(!(!d||!a))return new L(d,a)}getStarts(){return new g(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new g(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}class g{constructor(f,d){this.offset1=f,this.offset2=d}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(f){return f===0?this:new g(this.offset1+f,this.offset2+f)}equals(f){return this.offset1===f.offset1&&this.offset2===f.offset2}}g.zero=new g(0,0),g.max=new g(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);class x{isValid(){return!0}}x.instance=new x;class I{constructor(f){if(this.timeout=f,this.startTime=Date.now(),this.valid=!0,f<=0)throw new F.D7("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&Te>0&&te.get(De-1,Te-1)===3&&(Qe+=D.get(De-1,Te-1)),Qe+=ie?ie(De,Te):1):Qe=-1;const q=Math.max(He,qe,Qe);if(q===Qe){const ye=De>0&&Te>0?D.get(De-1,Te-1):0;D.set(De,Te,ye+1),te.set(De,Te,3)}else q===He?(D.set(De,Te,0),te.set(De,Te,1)):q===qe&&(D.set(De,Te,0),te.set(De,Te,2));re.set(De,Te,q)}const he=[];let ve=V.length,Ce=Y.length;function Pe(De,Te){(De+1!==ve||Te+1!==Ce)&&he.push(new g.$8(new M.L(De+1,ve),new M.L(Te+1,Ce))),ve=De,Ce=Te}let _e=V.length-1,ee=Y.length-1;for(;_e>=0&&ee>=0;)te.get(_e,ee)===3?(Pe(_e,ee),_e--,ee--):te.get(_e,ee)===1?_e--:ee--;return Pe(-1,-1),he.reverse(),new g.SL(he,!1)}}class d{compute(V,Y,X=g.uY.instance){if(V.length===0||Y.length===0)return g.SL.trivial(V,Y);const ie=V,re=Y;function te(Te,He){for(;Teie.length||ge>re.length)continue;const be=te(ye,ge);he.set(Ce,be);const Se=ye===Qe?ve.get(Ce+1):ve.get(Ce-1);if(ve.set(Ce,be!==ye?new a(Se,ye,ge,be-ye):Se),he.get(Ce)===ie.length&&he.get(Ce)-Ce===re.length)break e}}let Pe=ve.get(Ce);const _e=[];let ee=ie.length,De=re.length;for(;;){const Te=Pe?Pe.x+Pe.length:0,He=Pe?Pe.y+Pe.length:0;if((Te!==ee||He!==De)&&_e.push(new g.$8(new M.L(Te,ee),new M.L(He,De))),!Pe)break;ee=Pe.x,De=Pe.y,Pe=Pe.prev}return _e.reverse(),new g.SL(_e,!1)}}class a{constructor(V,Y,X,ie){this.prev=V,this.x=Y,this.y=X,this.length=ie}}class s{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(V){return V<0?(V=-V-1,this.negativeArr[V]):this.positiveArr[V]}set(V,Y){if(V<0){if(V=-V-1,V>=this.negativeArr.length){const X=this.negativeArr;this.negativeArr=new Int32Array(X.length*2),this.negativeArr.set(X)}this.negativeArr[V]=Y}else{if(V>=this.positiveArr.length){const X=this.positiveArr;this.positiveArr=new Int32Array(X.length*2),this.positiveArr.set(X)}this.positiveArr[V]=Y}}}class n{constructor(){this.positiveArr=[],this.negativeArr=[]}get(V){return V<0?(V=-V-1,this.negativeArr[V]):this.positiveArr[V]}set(V,Y){V<0?(V=-V-1,this.negativeArr[V]=Y):this.positiveArr[V]=Y}}var i=e("./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js"),c=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js");class C{constructor(V,Y,X){this.lines=V,this.considerWhitespaceChanges=X,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let ie=!1;Y.start>0&&Y.endExclusive>=V.length&&(Y=new M.L(Y.start-1,Y.endExclusive),ie=!0),this.lineRange=Y,this.firstCharOffsetByLine[0]=0;for(let re=this.lineRange.start;reString.fromCharCode(Y)).join("")}getElement(V){return this.elements[V]}get length(){return this.elements.length}getBoundaryScore(V){const Y=b(V>0?this.elements[V-1]:-1),X=b(VX<=V);return new u.y(this.lineRange.start+Y+1,V-this.firstCharOffsetByLine[Y]+this.additionalOffsetByLine[Y]+1)}translateRange(V){return L.Q.fromPositions(this.translateOffset(V.start),this.translateOffset(V.endExclusive))}findWordContaining(V){if(V<0||V>=this.elements.length||!h(this.elements[V]))return;let Y=V;for(;Y>0&&h(this.elements[Y-1]);)Y--;let X=V;for(;Xte<=V.start))!==null&&Y!==void 0?Y:0,re=(X=(0,c.XP)(this.firstCharOffsetByLine,te=>V.endExclusive<=te))!==null&&X!==void 0?X:this.elements.length;return new M.L(ie,re)}}function h(B){return B>=97&&B<=122||B>=65&&B<=90||B>=48&&B<=57}const v={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function p(B){return v[B]}function b(B){return B===10?8:B===13?7:I(B)?6:B>=97&&B<=122?0:B>=65&&B<=90?1:B>=48&&B<=57?2:B===-1?3:B===44||B===59?5:4}function O(B,V,Y,X,ie,re){let{moves:te,excludedChanges:D}=j(B,V,Y,re);if(!re.isValid())return[];const he=B.filter(Ce=>!D.has(Ce)),ve=U(he,X,ie,V,Y,re);return(0,r.E4)(te,ve),te=G(te),te=te.filter(Ce=>{const Pe=Ce.original.toOffsetRange().slice(V).map(ee=>ee.trim());return Pe.join(` `).length>=15&&w(Pe,ee=>ee.length>=2)>=2}),te=P(B,te),te}function w(B,V){let Y=0;for(const X of B)V(X)&&Y++;return Y}function j(B,V,Y,X){const ie=[],re=B.filter(he=>he.modified.isEmpty&&he.original.length>=3).map(he=>new S(he.original,V,he)),te=new Set(B.filter(he=>he.original.isEmpty&&he.modified.length>=3).map(he=>new S(he.modified,Y,he))),D=new Set;for(const he of re){let ve=-1,Ce;for(const Pe of te){const _e=he.computeSimilarity(Pe);_e>ve&&(ve=_e,Ce=Pe)}if(ve>.9&&Ce&&(te.delete(Ce),ie.push(new i.WL(he.range,Ce.range)),D.add(he.source),D.add(Ce.source)),!X.isValid())return{moves:ie,excludedChanges:D}}return{moves:ie,excludedChanges:D}}function U(B,V,Y,X,ie,re){const te=[],D=new m.db;for(const _e of B)for(let ee=_e.original.startLineNumber;ee<_e.original.endLineNumberExclusive-2;ee++){const De=`${V[ee-1]}:${V[ee+1-1]}:${V[ee+2-1]}`;D.add(De,{range:new k.M(ee,ee+3)})}const he=[];B.sort((0,r.VE)(_e=>_e.modified.startLineNumber,r.U9));for(const _e of B){let ee=[];for(let De=_e.modified.startLineNumber;De<_e.modified.endLineNumberExclusive-2;De++){const Te=`${Y[De-1]}:${Y[De+1-1]}:${Y[De+2-1]}`,He=new k.M(De,De+3),qe=[];D.forEach(Te,({range:Qe})=>{for(const ye of ee)if(ye.originalLineRange.endLineNumberExclusive+1===Qe.endLineNumberExclusive&&ye.modifiedLineRange.endLineNumberExclusive+1===He.endLineNumberExclusive){ye.originalLineRange=new k.M(ye.originalLineRange.startLineNumber,Qe.endLineNumberExclusive),ye.modifiedLineRange=new k.M(ye.modifiedLineRange.startLineNumber,He.endLineNumberExclusive),qe.push(ye);return}const q={modifiedLineRange:He,originalLineRange:Qe};he.push(q),qe.push(q)}),ee=qe}if(!re.isValid())return[]}he.sort((0,r.Hw)((0,r.VE)(_e=>_e.modifiedLineRange.length,r.U9)));const ve=new k.S,Ce=new k.S;for(const _e of he){const ee=_e.modifiedLineRange.startLineNumber-_e.originalLineRange.startLineNumber,De=ve.subtractFrom(_e.modifiedLineRange),Te=Ce.subtractFrom(_e.originalLineRange).getWithDelta(ee),He=De.getIntersection(Te);for(const qe of He.ranges){if(qe.length<3)continue;const Qe=qe,q=qe.delta(-ee);te.push(new i.WL(q,Qe)),ve.addRange(Qe),Ce.addRange(q)}}te.sort((0,r.VE)(_e=>_e.original.startLineNumber,r.U9));const Pe=new c.vJ(B);for(let _e=0;_ebe.original.startLineNumber<=ee.original.startLineNumber),Te=(0,c.lx)(B,be=>be.modified.startLineNumber<=ee.modified.startLineNumber),He=Math.max(ee.original.startLineNumber-De.original.startLineNumber,ee.modified.startLineNumber-Te.modified.startLineNumber),qe=Pe.findLastMonotonous(be=>be.original.startLineNumberbe.modified.startLineNumberX.length||Se>ie.length||ve.contains(Se)||Ce.contains(be)||!K(X[be-1],ie[Se-1],re))break}ye>0&&(Ce.addRange(new k.M(ee.original.startLineNumber-ye,ee.original.startLineNumber)),ve.addRange(new k.M(ee.modified.startLineNumber-ye,ee.modified.startLineNumber)));let ge;for(ge=0;geX.length||Se>ie.length||ve.contains(Se)||Ce.contains(be)||!K(X[be-1],ie[Se-1],re))break}ge>0&&(Ce.addRange(new k.M(ee.original.endLineNumberExclusive,ee.original.endLineNumberExclusive+ge)),ve.addRange(new k.M(ee.modified.endLineNumberExclusive,ee.modified.endLineNumberExclusive+ge))),(ye>0||ge>0)&&(te[_e]=new i.WL(new k.M(ee.original.startLineNumber-ye,ee.original.endLineNumberExclusive+ge),new k.M(ee.modified.startLineNumber-ye,ee.modified.endLineNumberExclusive+ge)))}return te}function K(B,V,Y){if(B.trim()===V.trim())return!0;if(B.length>300&&V.length>300)return!1;const ie=new d().compute(new C([B],new M.L(0,1),!1),new C([V],new M.L(0,1),!1),Y);let re=0;const te=g.$8.invert(ie.diffs,B.length);for(const Ce of te)Ce.seq1Range.forEach(Pe=>{I(B.charCodeAt(Pe))||re++});function D(Ce){let Pe=0;for(let _e=0;_eV.length?B:V);return re/he>.6&&he>10}function G(B){if(B.length===0)return B;B.sort((0,r.VE)(Y=>Y.original.startLineNumber,r.U9));const V=[B[0]];for(let Y=1;Y=0&&te>=0&&re+te<=2){V[V.length-1]=X.join(ie);continue}V.push(ie)}return V}function P(B,V){const Y=new c.vJ(B);return V=V.filter(X=>{const ie=Y.findLastMonotonous(D=>D.original.startLineNumberD.modified.startLineNumberge===be))return new W.p([],[],!1);if(V.length===1&&V[0].length===0||Y.length===1&&Y[0].length===0)return new W.p([new i.wm(new k.M(1,V.length+1),new k.M(1,Y.length+1),[new i.q6(new L.Q(1,1,V.length,V[0].length+1),new L.Q(1,1,Y.length,Y[0].length+1))])],[],!1);const ie=X.maxComputationTimeMs===0?g.uY.instance:new g.aY(X.maxComputationTimeMs),re=!X.ignoreTrimWhitespace,te=new Map;function D(ge){let be=te.get(ge);return be===void 0&&(be=te.size,te.set(ge,be)),be}const he=V.map(ge=>D(ge.trim())),ve=Y.map(ge=>D(ge.trim())),Ce=new T(he,V),Pe=new T(ve,Y),_e=Ce.length+Pe.length<1700?this.dynamicProgrammingDiffing.compute(Ce,Pe,ie,(ge,be)=>V[ge]===Y[be]?Y[be].length===0?.1:1+Math.log(1+Y[be].length):.99):this.myersDiffingAlgorithm.compute(Ce,Pe);let ee=_e.diffs,De=_e.hitTimeout;ee=(0,A.NC)(Ce,Pe,ee),ee=(0,A.X5)(Ce,Pe,ee);const Te=[],He=ge=>{if(re)for(let be=0;bege.seq1Range.start-qe===ge.seq2Range.start-Qe);const be=ge.seq1Range.start-qe;He(be),qe=ge.seq1Range.endExclusive,Qe=ge.seq2Range.endExclusive;const Se=this.refineDiff(V,Y,ge,ie,re);Se.hitTimeout&&(De=!0);for(const ae of Se.mappings)Te.push(ae)}He(V.length-qe);const q=z(Te,V,Y);let ye=[];return X.computeMoves&&(ye=this.computeMoves(q,V,Y,he,ve,ie,re)),(0,F.Ft)(()=>{function ge(Se,ae){if(Se.lineNumber<1||Se.lineNumber>ae.length)return!1;const me=ae[Se.lineNumber-1];return!(Se.column<1||Se.column>me.length+1)}function be(Se,ae){return!(Se.startLineNumber<1||Se.startLineNumber>ae.length+1||Se.endLineNumberExclusive<1||Se.endLineNumberExclusive>ae.length+1)}for(const Se of q){if(!Se.innerChanges)return!1;for(const ae of Se.innerChanges)if(!(ge(ae.modifiedRange.getStartPosition(),Y)&&ge(ae.modifiedRange.getEndPosition(),Y)&&ge(ae.originalRange.getStartPosition(),V)&&ge(ae.originalRange.getEndPosition(),V)))return!1;if(!be(Se.modified,Y)||!be(Se.original,V))return!1}return!0}),new W.p(q,ye,De)}computeMoves(V,Y,X,ie,re,te,D){return O(V,Y,X,ie,re,te).map(Ce=>{const Pe=this.refineDiff(Y,X,new g.$8(Ce.original.toOffsetRange(),Ce.modified.toOffsetRange()),te,D),_e=z(Pe.mappings,Y,X,!0);return new W.t(Ce,_e)})}refineDiff(V,Y,X,ie,re){const te=new C(V,X.seq1Range,re),D=new C(Y,X.seq2Range,re),he=te.length+D.length<500?this.dynamicProgrammingDiffing.compute(te,D,ie):this.myersDiffingAlgorithm.compute(te,D,ie);let ve=he.diffs;return ve=(0,A.NC)(te,D,ve),ve=(0,A.Lk)(te,D,ve),ve=(0,A.sq)(te,D,ve),ve=(0,A.Rl)(te,D,ve),{mappings:ve.map(Pe=>new i.q6(te.translateRange(Pe.seq1Range),D.translateRange(Pe.seq2Range))),hitTimeout:he.hitTimeout}}}function z(B,V,Y,X=!1){const ie=[];for(const re of(0,r.n)(B.map(te=>J(te,V,Y)),(te,D)=>te.original.overlapOrTouch(D.original)||te.modified.overlapOrTouch(D.modified))){const te=re[0],D=re[re.length-1];ie.push(new i.wm(te.original.join(D.original),te.modified.join(D.modified),re.map(he=>he.innerChanges[0])))}return(0,F.Ft)(()=>!X&&ie.length>0&&(ie[0].modified.startLineNumber!==ie[0].original.startLineNumber||Y.length-ie[ie.length-1].modified.endLineNumberExclusive!==V.length-ie[ie.length-1].original.endLineNumberExclusive)?!1:(0,F.Xo)(ie,(re,te)=>te.original.startLineNumber-re.original.endLineNumberExclusive===te.modified.startLineNumber-re.modified.endLineNumberExclusive&&re.original.endLineNumberExclusive=Y[B.modifiedRange.startLineNumber-1].length&&B.originalRange.startColumn-1>=V[B.originalRange.startLineNumber-1].length&&B.originalRange.startLineNumber<=B.originalRange.endLineNumber+ie&&B.modifiedRange.startLineNumber<=B.modifiedRange.endLineNumber+ie&&(X=1);const re=new k.M(B.originalRange.startLineNumber+X,B.originalRange.endLineNumber+1+ie),te=new k.M(B.modifiedRange.startLineNumber+X,B.modifiedRange.endLineNumber+1+ie);return new i.wm(re,te,[B])}},"./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js":function(pt,Me,e){e.d(Me,{Lk:function(){return S},NC:function(){return M},Rl:function(){return a},X5:function(){return d},sq:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js");function M(s,n,i){let c=i;return c=L(s,n,c),c=L(s,n,c),c=g(s,n,c),c}function L(s,n,i){if(i.length===0)return i;const c=[];c.push(i[0]);for(let u=1;u0&&(h=h.delta(p))}m.push(h)}return c.length>0&&m.push(c[c.length-1]),m}function g(s,n,i){if(!s.getBoundaryScore||!n.getBoundaryScore)return i;for(let c=0;c0?i[c-1]:void 0,u=i[c],C=c+1=c.start&&s.seq2Range.start-C>=m.start&&i.isStronglyEqual(s.seq2Range.start-C,s.seq2Range.endExclusive-C)&&C<100;)C++;C--;let h=0;for(;s.seq1Range.start+hp&&(p=U,v=b)}return s.delta(v)}function I(s,n,i){const c=[];for(const m of i){const u=c[c.length-1];if(!u){c.push(m);continue}m.seq1Range.start-u.seq1Range.endExclusive<=2||m.seq2Range.start-u.seq2Range.endExclusive<=2?c[c.length-1]=new k.$8(u.seq1Range.join(m.seq1Range),u.seq2Range.join(m.seq2Range)):c.push(m)}return c}function S(s,n,i){const c=k.$8.invert(i,s.length),m=[];let u=new k._3(0,0);function C(v,p){if(v.offset10;){const G=c[0];if(!(G.seq1Range.intersects(w.seq1Range)||G.seq2Range.intersects(w.seq2Range)))break;const A=s.findWordContaining(G.seq1Range.start),T=n.findWordContaining(G.seq2Range.start),E=new k.$8(A,T),W=E.intersect(G);if(U+=W.seq1Range.length,K+=W.seq2Range.length,w=w.join(E),w.seq1Range.endExclusive>=G.seq1Range.endExclusive)c.shift();else break}U+K<(w.seq1Range.length+w.seq2Range.length)*2/3&&m.push(w),u=w.getEndExclusives()}for(;c.length>0;){const v=c.shift();v.seq1Range.isEmpty||(C(v.getStarts(),v),C(v.getEndExclusives().delta(-1),v))}return f(i,m)}function f(s,n){const i=[];for(;s.length>0||n.length>0;){const c=s[0],m=n[0];let u;c&&(!m||c.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=u.seq1Range.start?i[i.length-1]=i[i.length-1].join(u):i.push(u)}return i}function d(s,n,i){let c=i;if(c.length===0)return c;let m=0,u;do{u=!1;const C=[c[0]];for(let h=1;h5||j.seq1Range.length+j.seq2Range.length>5)};const v=c[h],p=C[C.length-1];b(p,v)?(u=!0,C[C.length-1]=C[C.length-1].join(v)):C.push(v)}c=C}while(m++<10&&u);return c}function a(s,n,i){let c=i;if(c.length===0)return c;let m=0,u;do{u=!1;const h=[c[0]];for(let v=1;v5||K.length>500)return!1;const P=s.getText(K).trim();if(P.length>20||P.split(/\r\n|\r|\n/).length>1)return!1;const A=s.countLinesIn(j.seq1Range),T=j.seq1Range.length,E=n.countLinesIn(j.seq2Range),W=j.seq2Range.length,$=s.countLinesIn(U.seq1Range),z=U.seq1Range.length,J=n.countLinesIn(U.seq2Range),B=U.seq2Range.length,V=2*40+50;function Y(X){return Math.min(X,V)}return Math.pow(Math.pow(Y(A*40+T),1.5)+Math.pow(Y(E*40+W),1.5),1.5)+Math.pow(Math.pow(Y($*40+z),1.5)+Math.pow(Y(J*40+B),1.5),1.5)>(V**1.5)**1.5*1.3};const p=c[v],b=h[h.length-1];O(b,p)?(u=!0,h[h.length-1]=h[h.length-1].join(p)):h.push(p)}c=h}while(m++<10&&u);const C=[];return(0,r.kj)(c,(h,v,p)=>{let b=v;function O(P){return P.length>0&&P.trim().length<=3&&v.seq1Range.length+v.seq2Range.length>100}const w=s.extendToFullLines(v.seq1Range),j=s.getText(new F.L(w.start,v.seq1Range.start));O(j)&&(b=b.deltaStart(-j.length));const U=s.getText(new F.L(v.seq1Range.endExclusive,w.endExclusive));O(U)&&(b=b.deltaEnd(U.length));const K=k.$8.fromOffsetPairs(h?h.getEndExclusives():k._3.zero,p?p.getStarts():k._3.max),G=b.intersect(K);C.length>0&&G.getStarts().equals(C[C.length-1].getEndExclusives())?C[C.length-1]=C[C.length-1].join(G):C.push(G)}),C}},"./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js":function(pt,Me,e){e.d(Me,{p:function(){return r},t:function(){return F}});class r{constructor(M,L,g){this.changes=M,this.moves=L,this.hitTimeout=g}}class F{constructor(M,L){this.lineRangeMapping=M,this.changes=L}}},"./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js":function(pt,Me,e){e.d(Me,{WL:function(){return F},q6:function(){return M},wm:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js");class F{static inverse(g,x,I){const S=[];let f=1,d=1;for(const s of g){const n=new F(new r.M(f,s.original.startLineNumber),new r.M(d,s.modified.startLineNumber));n.modified.isEmpty||S.push(n),f=s.original.endLineNumberExclusive,d=s.modified.endLineNumberExclusive}const a=new F(new r.M(f,x+1),new r.M(d,I+1));return a.modified.isEmpty||S.push(a),S}static clip(g,x,I){const S=[];for(const f of g){const d=f.original.intersect(x),a=f.modified.intersect(I);d&&!d.isEmpty&&a&&!a.isEmpty&&S.push(new F(d,a))}return S}constructor(g,x){this.original=g,this.modified=x}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new F(this.modified,this.original)}join(g){return new F(this.original.join(g.original),this.modified.join(g.modified))}}class k extends F{static fromRangeMappings(g){const x=r.M.join(g.map(S=>r.M.fromRangeInclusive(S.originalRange))),I=r.M.join(g.map(S=>r.M.fromRangeInclusive(S.modifiedRange)));return new k(x,I,g)}constructor(g,x,I){super(g,x),this.innerChanges=I}flip(){var g;return new k(this.modified,this.original,(g=this.innerChanges)===null||g===void 0?void 0:g.map(x=>x.flip()))}withInnerChangesFromLineRanges(){return new k(this.original,this.modified,[new M(this.original.toExclusiveRange(),this.modified.toExclusiveRange())])}}class M{constructor(g,x){this.originalRange=g,this.modifiedRange=x}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new M(this.modifiedRange,this.originalRange)}}},"./node_modules/monaco-editor/esm/vs/editor/common/editorAction.js":function(pt,Me,e){e.d(Me,{f:function(){return r}});class r{constructor(k,M,L,g,x,I,S){this.id=k,this.label=M,this.alias=L,this.metadata=g,this._precondition=x,this._run=I,this._contextKeyService=S}isSupported(){return this._contextKeyService.contextMatchesRules(this._precondition)}run(k){return this.isSupported()?this._run(k):Promise.resolve(void 0)}}},"./node_modules/monaco-editor/esm/vs/editor/common/editorCommon.js":function(pt,Me,e){e.d(Me,{_:function(){return r}});const r={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"}},"./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js":function(pt,Me,e){e.d(Me,{R:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),k;(function(M){M.editorSimpleInput=new F.N1("editorSimpleInput",!1,!0),M.editorTextFocus=new F.N1("editorTextFocus",!1,r.kg("editorTextFocus","Whether the editor text has focus (cursor is blinking)")),M.focus=new F.N1("editorFocus",!1,r.kg("editorFocus","Whether the editor or an editor widget has focus (e.g. focus is in the find widget)")),M.textInputFocus=new F.N1("textInputFocus",!1,r.kg("textInputFocus","Whether an editor or a rich text input has focus (cursor is blinking)")),M.readOnly=new F.N1("editorReadonly",!1,r.kg("editorReadonly","Whether the editor is read-only")),M.inDiffEditor=new F.N1("inDiffEditor",!1,r.kg("inDiffEditor","Whether the context is a diff editor")),M.isEmbeddedDiffEditor=new F.N1("isEmbeddedDiffEditor",!1,r.kg("isEmbeddedDiffEditor","Whether the context is an embedded diff editor")),M.inMultiDiffEditor=new F.N1("inMultiDiffEditor",!1,r.kg("inMultiDiffEditor","Whether the context is a multi diff editor")),M.multiDiffEditorAllCollapsed=new F.N1("multiDiffEditorAllCollapsed",void 0,r.kg("multiDiffEditorAllCollapsed","Whether all files in multi diff editor are collapsed")),M.hasChanges=new F.N1("diffEditorHasChanges",!1,r.kg("diffEditorHasChanges","Whether the diff editor has changes")),M.comparingMovedCode=new F.N1("comparingMovedCode",!1,r.kg("comparingMovedCode","Whether a moved code block is selected for comparison")),M.accessibleDiffViewerVisible=new F.N1("accessibleDiffViewerVisible",!1,r.kg("accessibleDiffViewerVisible","Whether the accessible diff viewer is visible")),M.diffEditorRenderSideBySideInlineBreakpointReached=new F.N1("diffEditorRenderSideBySideInlineBreakpointReached",!1,r.kg("diffEditorRenderSideBySideInlineBreakpointReached","Whether the diff editor render side by side inline breakpoint is reached")),M.diffEditorInlineMode=new F.N1("diffEditorInlineMode",!1,r.kg("diffEditorInlineMode","Whether inline mode is active")),M.diffEditorOriginalWritable=new F.N1("diffEditorOriginalWritable",!1,r.kg("diffEditorOriginalWritable","Whether modified is writable in the diff editor")),M.diffEditorModifiedWritable=new F.N1("diffEditorModifiedWritable",!1,r.kg("diffEditorModifiedWritable","Whether modified is writable in the diff editor")),M.diffEditorOriginalUri=new F.N1("diffEditorOriginalUri","",r.kg("diffEditorOriginalUri","The uri of the original document")),M.diffEditorModifiedUri=new F.N1("diffEditorModifiedUri","",r.kg("diffEditorModifiedUri","The uri of the modified document")),M.columnSelection=new F.N1("editorColumnSelection",!1,r.kg("editorColumnSelection","Whether `editor.columnSelection` is enabled")),M.writable=M.readOnly.toNegated(),M.hasNonEmptySelection=new F.N1("editorHasSelection",!1,r.kg("editorHasSelection","Whether the editor has text selected")),M.hasOnlyEmptySelection=M.hasNonEmptySelection.toNegated(),M.hasMultipleSelections=new F.N1("editorHasMultipleSelections",!1,r.kg("editorHasMultipleSelections","Whether the editor has multiple selections")),M.hasSingleSelection=M.hasMultipleSelections.toNegated(),M.tabMovesFocus=new F.N1("editorTabMovesFocus",!1,r.kg("editorTabMovesFocus","Whether `Tab` will move focus out of the editor")),M.tabDoesNotMoveFocus=M.tabMovesFocus.toNegated(),M.isInEmbeddedEditor=new F.N1("isInEmbeddedEditor",!1,!0),M.canUndo=new F.N1("canUndo",!1,!0),M.canRedo=new F.N1("canRedo",!1,!0),M.hoverVisible=new F.N1("editorHoverVisible",!1,r.kg("editorHoverVisible","Whether the editor hover is visible")),M.hoverFocused=new F.N1("editorHoverFocused",!1,r.kg("editorHoverFocused","Whether the editor hover is focused")),M.stickyScrollFocused=new F.N1("stickyScrollFocused",!1,r.kg("stickyScrollFocused","Whether the sticky scroll is focused")),M.stickyScrollVisible=new F.N1("stickyScrollVisible",!1,r.kg("stickyScrollVisible","Whether the sticky scroll is visible")),M.standaloneColorPickerVisible=new F.N1("standaloneColorPickerVisible",!1,r.kg("standaloneColorPickerVisible","Whether the standalone color picker is visible")),M.standaloneColorPickerFocused=new F.N1("standaloneColorPickerFocused",!1,r.kg("standaloneColorPickerFocused","Whether the standalone color picker is focused")),M.inCompositeEditor=new F.N1("inCompositeEditor",void 0,r.kg("inCompositeEditor","Whether the editor is part of a larger editor (e.g. notebooks)")),M.notInCompositeEditor=M.inCompositeEditor.toNegated(),M.languageId=new F.N1("editorLangId","",r.kg("editorLangId","The language identifier of the editor")),M.hasCompletionItemProvider=new F.N1("editorHasCompletionItemProvider",!1,r.kg("editorHasCompletionItemProvider","Whether the editor has a completion item provider")),M.hasCodeActionsProvider=new F.N1("editorHasCodeActionsProvider",!1,r.kg("editorHasCodeActionsProvider","Whether the editor has a code actions provider")),M.hasCodeLensProvider=new F.N1("editorHasCodeLensProvider",!1,r.kg("editorHasCodeLensProvider","Whether the editor has a code lens provider")),M.hasDefinitionProvider=new F.N1("editorHasDefinitionProvider",!1,r.kg("editorHasDefinitionProvider","Whether the editor has a definition provider")),M.hasDeclarationProvider=new F.N1("editorHasDeclarationProvider",!1,r.kg("editorHasDeclarationProvider","Whether the editor has a declaration provider")),M.hasImplementationProvider=new F.N1("editorHasImplementationProvider",!1,r.kg("editorHasImplementationProvider","Whether the editor has an implementation provider")),M.hasTypeDefinitionProvider=new F.N1("editorHasTypeDefinitionProvider",!1,r.kg("editorHasTypeDefinitionProvider","Whether the editor has a type definition provider")),M.hasHoverProvider=new F.N1("editorHasHoverProvider",!1,r.kg("editorHasHoverProvider","Whether the editor has a hover provider")),M.hasDocumentHighlightProvider=new F.N1("editorHasDocumentHighlightProvider",!1,r.kg("editorHasDocumentHighlightProvider","Whether the editor has a document highlight provider")),M.hasDocumentSymbolProvider=new F.N1("editorHasDocumentSymbolProvider",!1,r.kg("editorHasDocumentSymbolProvider","Whether the editor has a document symbol provider")),M.hasReferenceProvider=new F.N1("editorHasReferenceProvider",!1,r.kg("editorHasReferenceProvider","Whether the editor has a reference provider")),M.hasRenameProvider=new F.N1("editorHasRenameProvider",!1,r.kg("editorHasRenameProvider","Whether the editor has a rename provider")),M.hasSignatureHelpProvider=new F.N1("editorHasSignatureHelpProvider",!1,r.kg("editorHasSignatureHelpProvider","Whether the editor has a signature help provider")),M.hasInlayHintsProvider=new F.N1("editorHasInlayHintsProvider",!1,r.kg("editorHasInlayHintsProvider","Whether the editor has an inline hints provider")),M.hasDocumentFormattingProvider=new F.N1("editorHasDocumentFormattingProvider",!1,r.kg("editorHasDocumentFormattingProvider","Whether the editor has a document formatting provider")),M.hasDocumentSelectionFormattingProvider=new F.N1("editorHasDocumentSelectionFormattingProvider",!1,r.kg("editorHasDocumentSelectionFormattingProvider","Whether the editor has a document selection formatting provider")),M.hasMultipleDocumentFormattingProvider=new F.N1("editorHasMultipleDocumentFormattingProvider",!1,r.kg("editorHasMultipleDocumentFormattingProvider","Whether the editor has multiple document formatting providers")),M.hasMultipleDocumentSelectionFormattingProvider=new F.N1("editorHasMultipleDocumentSelectionFormattingProvider",!1,r.kg("editorHasMultipleDocumentSelectionFormattingProvider","Whether the editor has multiple document selection formatting providers"))})(k||(k={}))},"./node_modules/monaco-editor/esm/vs/editor/common/editorFeatures.js":function(pt,Me,e){e.d(Me,{T:function(){return k},x:function(){return F}});const r=[];function F(M){r.push(M)}function k(){return r.slice(0)}},"./node_modules/monaco-editor/esm/vs/editor/common/encodedTokenAttributes.js":function(pt,Me,e){e.d(Me,{x:function(){return r}});class r{static getLanguageId(k){return(k&255)>>>0}static getTokenType(k){return(k&768)>>>8}static containsBalancedBrackets(k){return(k&1024)!==0}static getFontStyle(k){return(k&30720)>>>11}static getForeground(k){return(k&16744448)>>>15}static getBackground(k){return(k&4278190080)>>>24}static getClassNameFromMetadata(k){let L="mtk"+this.getForeground(k);const g=this.getFontStyle(k);return g&1&&(L+=" mtki"),g&2&&(L+=" mtkb"),g&4&&(L+=" mtku"),g&8&&(L+=" mtks"),L}static getInlineStyleFromMetadata(k,M){const L=this.getForeground(k),g=this.getFontStyle(k);let x=`color: ${M[L]};`;g&1&&(x+="font-style: italic;"),g&2&&(x+="font-weight: bold;");let I="";return g&4&&(I+=" underline"),g&8&&(I+=" line-through"),I&&(x+=`text-decoration:${I};`),x}static getPresentationFromMetadata(k){const M=this.getForeground(k),L=this.getFontStyle(k);return{foreground:M,italic:!!(L&1),bold:!!(L&2),underline:!!(L&4),strikethrough:!!(L&8)}}}},"./node_modules/monaco-editor/esm/vs/editor/common/languageSelector.js":function(pt,Me,e){e.d(Me,{f:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/glob.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/path.js");function k(M,L,g,x,I,S){if(Array.isArray(M)){let f=0;for(const d of M){const a=k(d,L,g,x,I,S);if(a===10)return a;a>f&&(f=a)}return f}else{if(typeof M=="string")return x?M==="*"?5:M===g?10:0:0;if(M){const{language:f,pattern:d,scheme:a,hasAccessToAllModels:s,notebookType:n}=M;if(!x&&!s)return 0;n&&I&&(L=I);let i=0;if(a)if(a===L.scheme)i=10;else if(a==="*")i=5;else return 0;if(f)if(f===g)i=10;else if(f==="*")i=Math.max(i,5);else return 0;if(n)if(n===S)i=10;else if(n==="*"&&S!==void 0)i=Math.max(i,5);else return 0;if(d){let c;if(typeof d=="string"?c=d:c={...d,base:(0,F.S8)(d.base)},c===L.fsPath||(0,r.YW)(c,L.fsPath))i=10;else return 0}return i}else return 0}}},"./node_modules/monaco-editor/esm/vs/editor/common/languages.js":function(pt,Me,e){e.d(Me,{uB:function(){return w},HC:function(){return a},Kb:function(){return m},FX:function(){return i},rY:function(){return d},lO:function(){return b},r4:function(){return j},qw:function(){return s},sm:function(){return G},v_:function(){return U},OV:function(){return O},GE:function(){return n},WA:function(){return c},gP:function(){return v},ou:function(){return S},dG:function(){return K},$M:function(){return f},PK:function(){return h},Iu:function(){return u}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");class g{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new M.vl,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(A){this._onDidChange.fire({changedLanguages:A,changedColorMap:!1})}register(A,T){return this._tokenizationSupports.set(A,T),this.handleChange([A]),(0,L.s)(()=>{this._tokenizationSupports.get(A)===T&&(this._tokenizationSupports.delete(A),this.handleChange([A]))})}get(A){return this._tokenizationSupports.get(A)||null}registerFactory(A,T){var E;(E=this._factories.get(A))===null||E===void 0||E.dispose();const W=new x(this,A,T);return this._factories.set(A,W),(0,L.s)(()=>{const $=this._factories.get(A);!$||$!==W||(this._factories.delete(A),$.dispose())})}async getOrCreate(A){const T=this.get(A);if(T)return T;const E=this._factories.get(A);return!E||E.isResolved?null:(await E.resolve(),this.get(A))}isResolved(A){if(this.get(A))return!0;const E=this._factories.get(A);return!!(!E||E.isResolved)}setColorMap(A){this._colorMap=A,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class x extends L.jG{get isResolved(){return this._isResolved}constructor(A,T,E){super(),this._registry=A,this._languageId=T,this._factory=E,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const A=await this._factory.tokenizationSupport;this._isResolved=!0,A&&!this._isDisposed&&this._register(this._registry.register(this._languageId,A))}}var I=e("./node_modules/monaco-editor/esm/vs/nls.js");class S{constructor(A,T,E){this.offset=A,this.type=T,this.language=E,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class f{constructor(A,T){this.tokens=A,this.endState=T,this._tokenizationResultBrand=void 0}}class d{constructor(A,T){this.tokens=A,this.endState=T,this._encodedTokenizationResultBrand=void 0}}var a;(function(P){const A=new Map;A.set(0,r.W.symbolMethod),A.set(1,r.W.symbolFunction),A.set(2,r.W.symbolConstructor),A.set(3,r.W.symbolField),A.set(4,r.W.symbolVariable),A.set(5,r.W.symbolClass),A.set(6,r.W.symbolStruct),A.set(7,r.W.symbolInterface),A.set(8,r.W.symbolModule),A.set(9,r.W.symbolProperty),A.set(10,r.W.symbolEvent),A.set(11,r.W.symbolOperator),A.set(12,r.W.symbolUnit),A.set(13,r.W.symbolValue),A.set(15,r.W.symbolEnum),A.set(14,r.W.symbolConstant),A.set(15,r.W.symbolEnum),A.set(16,r.W.symbolEnumMember),A.set(17,r.W.symbolKeyword),A.set(27,r.W.symbolSnippet),A.set(18,r.W.symbolText),A.set(19,r.W.symbolColor),A.set(20,r.W.symbolFile),A.set(21,r.W.symbolReference),A.set(22,r.W.symbolCustomColor),A.set(23,r.W.symbolFolder),A.set(24,r.W.symbolTypeParameter),A.set(25,r.W.account),A.set(26,r.W.issues);function T($){let z=A.get($);return z||(console.info("No codicon found for CompletionItemKind "+$),z=r.W.symbolProperty),z}P.toIcon=T;const E=new Map;E.set("method",0),E.set("function",1),E.set("constructor",2),E.set("field",3),E.set("variable",4),E.set("class",5),E.set("struct",6),E.set("interface",7),E.set("module",8),E.set("property",9),E.set("event",10),E.set("operator",11),E.set("unit",12),E.set("value",13),E.set("constant",14),E.set("enum",15),E.set("enum-member",16),E.set("enumMember",16),E.set("keyword",17),E.set("snippet",27),E.set("text",18),E.set("color",19),E.set("file",20),E.set("reference",21),E.set("customcolor",22),E.set("folder",23),E.set("type-parameter",24),E.set("typeParameter",24),E.set("account",25),E.set("issue",26);function W($,z){let J=E.get($);return typeof J>"u"&&!z&&(J=9),J}P.fromString=W})(a||(a={}));var s;(function(P){P[P.Automatic=0]="Automatic",P[P.Explicit=1]="Explicit"})(s||(s={}));class n{constructor(A,T,E,W){this.range=A,this.text=T,this.completionKind=E,this.isSnippetText=W}equals(A){return k.Q.lift(this.range).equalsRange(A.range)&&this.text===A.text&&this.completionKind===A.completionKind&&this.isSnippetText===A.isSnippetText}}var i;(function(P){P[P.Automatic=0]="Automatic",P[P.PasteAs=1]="PasteAs"})(i||(i={}));var c;(function(P){P[P.Invoke=1]="Invoke",P[P.TriggerCharacter=2]="TriggerCharacter",P[P.ContentChange=3]="ContentChange"})(c||(c={}));var m;(function(P){P[P.Text=0]="Text",P[P.Read=1]="Read",P[P.Write=2]="Write"})(m||(m={}));function u(P){return P&&F.r.isUri(P.uri)&&k.Q.isIRange(P.range)&&(k.Q.isIRange(P.originSelectionRange)||k.Q.isIRange(P.targetSelectionRange))}const C={17:(0,I.kg)("Array","array"),16:(0,I.kg)("Boolean","boolean"),4:(0,I.kg)("Class","class"),13:(0,I.kg)("Constant","constant"),8:(0,I.kg)("Constructor","constructor"),9:(0,I.kg)("Enum","enumeration"),21:(0,I.kg)("EnumMember","enumeration member"),23:(0,I.kg)("Event","event"),7:(0,I.kg)("Field","field"),0:(0,I.kg)("File","file"),11:(0,I.kg)("Function","function"),10:(0,I.kg)("Interface","interface"),19:(0,I.kg)("Key","key"),5:(0,I.kg)("Method","method"),1:(0,I.kg)("Module","module"),2:(0,I.kg)("Namespace","namespace"),20:(0,I.kg)("Null","null"),15:(0,I.kg)("Number","number"),18:(0,I.kg)("Object","object"),24:(0,I.kg)("Operator","operator"),3:(0,I.kg)("Package","package"),6:(0,I.kg)("Property","property"),14:(0,I.kg)("String","string"),22:(0,I.kg)("Struct","struct"),25:(0,I.kg)("TypeParameter","type parameter"),12:(0,I.kg)("Variable","variable")};function h(P,A){return(0,I.kg)("symbolAriaLabel","{0} ({1})",P,C[A])}var v;(function(P){const A=new Map;A.set(0,r.W.symbolFile),A.set(1,r.W.symbolModule),A.set(2,r.W.symbolNamespace),A.set(3,r.W.symbolPackage),A.set(4,r.W.symbolClass),A.set(5,r.W.symbolMethod),A.set(6,r.W.symbolProperty),A.set(7,r.W.symbolField),A.set(8,r.W.symbolConstructor),A.set(9,r.W.symbolEnum),A.set(10,r.W.symbolInterface),A.set(11,r.W.symbolFunction),A.set(12,r.W.symbolVariable),A.set(13,r.W.symbolConstant),A.set(14,r.W.symbolString),A.set(15,r.W.symbolNumber),A.set(16,r.W.symbolBoolean),A.set(17,r.W.symbolArray),A.set(18,r.W.symbolObject),A.set(19,r.W.symbolKey),A.set(20,r.W.symbolNull),A.set(21,r.W.symbolEnumMember),A.set(22,r.W.symbolStruct),A.set(23,r.W.symbolEvent),A.set(24,r.W.symbolOperator),A.set(25,r.W.symbolTypeParameter);function T(E){let W=A.get(E);return W||(console.info("No codicon found for SymbolKind "+E),W=r.W.symbolProperty),W}P.toIcon=T})(v||(v={}));class p{}class b{static fromValue(A){switch(A){case"comment":return b.Comment;case"imports":return b.Imports;case"region":return b.Region}return new b(A)}constructor(A){this.value=A}}b.Comment=new b("comment"),b.Imports=new b("imports"),b.Region=new b("region");var O;(function(P){P[P.AIGenerated=1]="AIGenerated"})(O||(O={}));var w;(function(P){function A(T){return!T||typeof T!="object"?!1:typeof T.id=="string"&&typeof T.title=="string"}P.is=A})(w||(w={}));var j;(function(P){P[P.Type=1]="Type",P[P.Parameter=2]="Parameter"})(j||(j={}));class U{constructor(A){this.createSupport=A,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(A=>{A&&A.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const K=new g;var G;(function(P){P[P.Invoke=0]="Invoke",P[P.Automatic=1]="Automatic"})(G||(G={}))},"./node_modules/monaco-editor/esm/vs/editor/common/languages/autoIndent.js":function(pt,Me,e){e.d(Me,{$f:function(){return x},MU:function(){return I},Yb:function(){return f},_t:function(){return S},vn:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfiguration.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/supports.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js");function L(d,a,s){const n=d.tokenization.getLanguageIdAtPosition(a,0);if(a>1){let i,c=-1;for(i=a-1;i>=1;i--){if(d.tokenization.getLanguageIdAtPosition(i,0)!==n)return c;const m=d.getLineContent(i);if(s.shouldIgnore(m)||/^\s+$/.test(m)||m===""){c=i;continue}return i}}return-1}function g(d,a,s,n=!0,i){if(d<4)return null;const c=i.getLanguageConfiguration(a.tokenization.getLanguageId()).indentRulesSupport;if(!c)return null;if(s<=1)return{indentation:"",action:null};for(let C=s-1;C>0&&a.getLineContent(C)==="";C--)if(C===1)return{indentation:"",action:null};const m=L(a,s,c);if(m<0)return null;if(m<1)return{indentation:"",action:null};const u=a.getLineContent(m);if(c.shouldIncrease(u)||c.shouldIndentNextLine(u))return{indentation:r.UU(u),action:F.l.Indent,line:m};if(c.shouldDecrease(u))return{indentation:r.UU(u),action:null,line:m};{if(m===1)return{indentation:r.UU(a.getLineContent(m)),action:null,line:m};const C=m-1,h=c.getIndentMetadata(a.getLineContent(C));if(!(h&3)&&h&4){let v=0;for(let p=C-1;p>0;p--)if(!c.shouldIndentNextLine(a.getLineContent(p))){v=p;break}return{indentation:r.UU(a.getLineContent(v+1)),action:null,line:v+1}}if(n)return{indentation:r.UU(a.getLineContent(m)),action:null,line:m};for(let v=m;v>0;v--){const p=a.getLineContent(v);if(c.shouldIncrease(p))return{indentation:r.UU(p),action:F.l.Indent,line:v};if(c.shouldIndentNextLine(p)){let b=0;for(let O=v-1;O>0;O--)if(!c.shouldIndentNextLine(a.getLineContent(v))){b=O;break}return{indentation:r.UU(a.getLineContent(b+1)),action:null,line:b+1}}else if(c.shouldDecrease(p))return{indentation:r.UU(p),action:null,line:v}}return{indentation:r.UU(a.getLineContent(1)),action:null,line:1}}}function x(d,a,s,n,i,c){if(d<4)return null;const m=c.getLanguageConfiguration(s);if(!m)return null;const u=c.getLanguageConfiguration(s).indentRulesSupport;if(!u)return null;const C=g(d,a,n,void 0,c),h=a.getLineContent(n);if(C){const v=C.line;if(v!==void 0){let p=!0;for(let b=v;b0&&c.getLanguageId(0)!==m.languageId?(C=!0,h=u.substr(0,s.startColumn-1-m.firstCharOffset)):h=c.getLineContent().substring(0,s.startColumn-1);let v;s.isEmpty()?v=u.substr(s.startColumn-1-m.firstCharOffset):v=(0,M.P6)(a,s.endLineNumber,s.endColumn).getLineContent().substr(s.endColumn-1-m.firstCharOffset);const p=i.getLanguageConfiguration(m.languageId).indentRulesSupport;if(!p)return null;const b=h,O=r.UU(h),w={tokenization:{getLineTokens:G=>a.tokenization.getLineTokens(G),getLanguageId:()=>a.getLanguageId(),getLanguageIdAtPosition:(G,P)=>a.getLanguageIdAtPosition(G,P)},getLineContent:G=>G===s.startLineNumber?b:a.getLineContent(G)},j=r.UU(c.getLineContent()),U=g(d,w,s.startLineNumber+1,void 0,i);if(!U){const G=C?j:O;return{beforeEnter:G,afterEnter:G}}let K=C?j:U.indentation;return U.action===F.l.Indent&&(K=n.shiftIndent(K)),p.shouldDecrease(v)&&(K=n.unshiftIndent(K)),{beforeEnter:C?j:O,afterEnter:K}}function S(d,a,s,n,i,c){if(d<4)return null;const m=(0,M.P6)(a,s.startLineNumber,s.startColumn);if(m.firstCharOffset)return null;const u=c.getLanguageConfiguration(m.languageId).indentRulesSupport;if(!u)return null;const C=m.getLineContent(),h=C.substr(0,s.startColumn-1-m.firstCharOffset);let v;if(s.isEmpty()?v=C.substr(s.startColumn-1-m.firstCharOffset):v=(0,M.P6)(a,s.endLineNumber,s.endColumn).getLineContent().substr(s.endColumn-1-m.firstCharOffset),!u.shouldDecrease(h+v)&&u.shouldDecrease(h+n+v)){const p=g(d,a,s.startLineNumber,!1,c);if(!p)return null;let b=p.indentation;return p.action!==F.l.Indent&&(b=i.unshiftIndent(b)),b}return null}function f(d,a,s){const n=s.getLanguageConfiguration(d.getLanguageId()).indentRulesSupport;return!n||a<1||a>d.getLineCount()?null:n.getIndentMetadata(d.getLineContent(a))}},"./node_modules/monaco-editor/esm/vs/editor/common/languages/enterAction.js":function(pt,Me,e){e.d(Me,{h:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfiguration.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js");function k(M,L,g,x){const I=(0,F.P6)(L,g.startLineNumber,g.startColumn),S=x.getLanguageConfiguration(I.languageId);if(!S)return null;const f=I.getLineContent(),d=f.substr(0,g.startColumn-1-I.firstCharOffset);let a;g.isEmpty()?a=f.substr(g.startColumn-1-I.firstCharOffset):a=(0,F.P6)(L,g.endLineNumber,g.endColumn).getLineContent().substr(g.endColumn-1-I.firstCharOffset);let s="";if(g.startLineNumber>1&&I.firstCharOffset===0){const C=(0,F.P6)(L,g.startLineNumber-1);C.languageId===I.languageId&&(s=C.getLineContent())}const n=S.onEnter(M,s,d,a);if(!n)return null;const i=n.indentAction;let c=n.appendText;const m=n.removeText||0;c?i===r.l.Indent&&(c=" "+c):i===r.l.Indent||i===r.l.IndentOutdent?c=" ":c="";let u=(0,F.Cw)(L,g.startLineNumber,g.startColumn);return m&&(u=u.substring(0,u.length-m)),{indentAction:i,appendText:c,removeText:m,indentation:u}}},"./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js":function(pt,Me,e){e.d(Me,{L:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("languageService")},"./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfiguration.js":function(pt,Me,e){e.d(Me,{GB:function(){return k},i3:function(){return F},l:function(){return r}});var r;(function(L){L[L.None=0]="None",L[L.Indent=1]="Indent",L[L.IndentOutdent=2]="IndentOutdent",L[L.Outdent=3]="Outdent"})(r||(r={}));class F{constructor(g){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=g.open,this.close=g.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(g.notIn))for(let x=0,I=g.notIn.length;xnew L.i3(D)):te.brackets?this._autoClosingPairs=te.brackets.map(D=>new L.i3({open:D[0],close:D[1]})):this._autoClosingPairs=[],te.__electricCharacterSupport&&te.__electricCharacterSupport.docComment){const D=te.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new L.i3({open:D.open,close:D.close||""}))}this._autoCloseBeforeForQuotes=typeof te.autoCloseBefore=="string"?te.autoCloseBefore:x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof te.autoCloseBefore=="string"?te.autoCloseBefore:x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=te.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(te){return te?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> `,x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])> `;var I=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/supports/richEditBrackets.js");class f{constructor(te){this._richEditBrackets=te}getElectricCharacters(){const te=[];if(this._richEditBrackets)for(const D of this._richEditBrackets.brackets)for(const he of D.close){const ve=he.charAt(he.length-1);te.push(ve)}return(0,I.dM)(te)}onElectricCharacter(te,D,he){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const ve=D.findTokenIndexAtOffset(he-1);if((0,g.Yo)(D.getStandardTokenType(ve)))return null;const Ce=this._richEditBrackets.reversedRegex,Pe=D.getLineContent().substring(0,he-1)+te,_e=S.Fu.findPrevBracketInRange(Ce,1,Pe,0,Pe.length);if(!_e)return null;const ee=Pe.substring(_e.startColumn-1,_e.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[ee])return null;const Te=D.getActualLineContentBefore(_e.startColumn-1);return/^\s*$/.test(Te)?{matchOpenBracket:ee}:null}}function d(re){return re.global&&(re.lastIndex=0),!0}class a{constructor(te){this._indentationRules=te}shouldIncrease(te){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&d(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(te))}shouldDecrease(te){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&d(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(te))}shouldIndentNextLine(te){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&d(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(te))}shouldIgnore(te){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&d(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(te))}getIndentMetadata(te){let D=0;return this.shouldIncrease(te)&&(D+=1),this.shouldDecrease(te)&&(D+=2),this.shouldIndentNextLine(te)&&(D+=4),this.shouldIgnore(te)&&(D+=8),D}}var s=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js");class n{constructor(te){te=te||{},te.brackets=te.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],te.brackets.forEach(D=>{const he=n._createOpenBracketRegExp(D[0]),ve=n._createCloseBracketRegExp(D[1]);he&&ve&&this._brackets.push({open:D[0],openRegExp:he,close:D[1],closeRegExp:ve})}),this._regExpRules=te.onEnterRules||[]}onEnter(te,D,he,ve){if(te>=3)for(let Ce=0,Pe=this._regExpRules.length;CeDe.reg?(De.reg.lastIndex=0,De.reg.test(De.text)):!0))return _e.action}if(te>=2&&he.length>0&&ve.length>0)for(let Ce=0,Pe=this._brackets.length;Ce=2&&he.length>0){for(let Ce=0,Pe=this._brackets.length;Ce{const ee=new Set;return{info:new O(this,_e,ee),closing:ee}}),Ce=new h.V(_e=>{const ee=new Set,De=new Set;return{info:new w(this,_e,ee,De),opening:ee,openingColorized:De}});for(const[_e,ee]of he){const De=ve.get(_e),Te=Ce.get(ee);De.closing.add(Te.info),Te.opening.add(De.info)}const Pe=D.colorizedBracketPairs?p(D.colorizedBracketPairs):he.filter(_e=>!(_e[0]==="<"&&_e[1]===">"));for(const[_e,ee]of Pe){const De=ve.get(_e),Te=Ce.get(ee);De.closing.add(Te.info),Te.openingColorized.add(De.info),Te.opening.add(De.info)}this._openingBrackets=new Map([...ve.cachedValues].map(([_e,ee])=>[_e,ee.info])),this._closingBrackets=new Map([...Ce.cachedValues].map(([_e,ee])=>[_e,ee.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(te){return this._openingBrackets.get(te)}getClosingBracketInfo(te){return this._closingBrackets.get(te)}getBracketInfo(te){return this.getOpeningBracketInfo(te)||this.getClosingBracketInfo(te)}}function p(re){return re.filter(([te,D])=>te!==""&&D!=="")}class b{constructor(te,D){this.config=te,this.bracketText=D}get languageId(){return this.config.languageId}}class O extends b{constructor(te,D,he){super(te,D),this.openedBrackets=he,this.isOpeningBracket=!0}}class w extends b{constructor(te,D,he,ve){super(te,D),this.openingBrackets=he,this.openingColorizedBrackets=ve,this.isOpeningBracket=!1}closes(te){return te.config!==this.config?!1:this.openingBrackets.has(te)}closesColorized(te){return te.config!==this.config?!1:this.openingColorizedBrackets.has(te)}getOpeningBrackets(){return[...this.openingBrackets]}}var j=function(re,te,D,he){var ve=arguments.length,Ce=ve<3?te:he===null?he=Object.getOwnPropertyDescriptor(te,D):he,Pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ce=Reflect.decorate(re,te,D,he);else for(var _e=re.length-1;_e>=0;_e--)(Pe=re[_e])&&(Ce=(ve<3?Pe(Ce):ve>3?Pe(te,D,Ce):Pe(te,D))||Ce);return ve>3&&Ce&&Object.defineProperty(te,D,Ce),Ce},U=function(re,te){return function(D,he){te(D,he,re)}};class K{constructor(te){this.languageId=te}affects(te){return this.languageId?this.languageId===te:!0}}const G=(0,i.u1)("languageConfigurationService");let P=class extends F.jG{constructor(te,D){super(),this.configurationService=te,this.languageService=D,this._registry=this._register(new X),this.onDidChangeEmitter=this._register(new r.vl),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const he=new Set(Object.values(T));this._register(this.configurationService.onDidChangeConfiguration(ve=>{const Ce=ve.change.keys.some(_e=>he.has(_e)),Pe=ve.change.overrides.filter(([_e,ee])=>ee.some(De=>he.has(De))).map(([_e])=>_e);if(Ce)this.configurations.clear(),this.onDidChangeEmitter.fire(new K(void 0));else for(const _e of Pe)this.languageService.isRegisteredLanguageId(_e)&&(this.configurations.delete(_e),this.onDidChangeEmitter.fire(new K(_e)))})),this._register(this._registry.onDidChange(ve=>{this.configurations.delete(ve.languageId),this.onDidChangeEmitter.fire(new K(ve.languageId))}))}register(te,D,he){return this._registry.register(te,D,he)}getLanguageConfiguration(te){let D=this.configurations.get(te);return D||(D=A(te,this._registry,this.configurationService,this.languageService),this.configurations.set(te,D)),D}};P=j([U(0,c.pG),U(1,m.L)],P);function A(re,te,D,he){let ve=te.getLanguageConfiguration(re);if(!ve){if(!he.isRegisteredLanguageId(re))return new ie(re,{});ve=new ie(re,{})}const Ce=E(ve.languageId,D),Pe=B([ve.underlyingConfig,Ce]);return new ie(ve.languageId,Pe)}const T={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function E(re,te){const D=te.getValue(T.brackets,{overrideIdentifier:re}),he=te.getValue(T.colorizedBracketPairs,{overrideIdentifier:re});return{brackets:W(D),colorizedBracketPairs:W(he)}}function W(re){if(Array.isArray(re))return re.map(te=>{if(!(!Array.isArray(te)||te.length!==2))return[te[0],te[1]]}).filter(te=>!!te)}function $(re,te,D){const he=re.getLineContent(te);let ve=k.UU(he);return ve.length>D-1&&(ve=ve.substring(0,D-1)),ve}function z(re,te,D){re.tokenization.forceTokenization(te);const he=re.tokenization.getLineTokens(te),ve=typeof D>"u"?re.getLineMaxColumn(te)-1:D-1;return(0,g.BQ)(he,ve)}class J{constructor(te){this.languageId=te,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(te,D){const he=new V(te,D,++this._order);return this._entries.push(he),this._resolved=null,(0,F.s)(()=>{for(let ve=0;vete.configuration)))}}function B(re){let te={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const D of re)te={comments:D.comments||te.comments,brackets:D.brackets||te.brackets,wordPattern:D.wordPattern||te.wordPattern,indentationRules:D.indentationRules||te.indentationRules,onEnterRules:D.onEnterRules||te.onEnterRules,autoClosingPairs:D.autoClosingPairs||te.autoClosingPairs,surroundingPairs:D.surroundingPairs||te.surroundingPairs,autoCloseBefore:D.autoCloseBefore||te.autoCloseBefore,folding:D.folding||te.folding,colorizedBracketPairs:D.colorizedBracketPairs||te.colorizedBracketPairs,__electricCharacterSupport:D.__electricCharacterSupport||te.__electricCharacterSupport};return te}class V{constructor(te,D,he){this.configuration=te,this.priority=D,this.order=he}static cmp(te,D){return te.priority===D.priority?te.order-D.order:te.priority-D.priority}}class Y{constructor(te){this.languageId=te}}class X extends F.jG{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new r.vl),this.onDidChange=this._onDidChange.event,this._register(this.register(C.vH,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(te,D,he=0){let ve=this._entries.get(te);ve||(ve=new J(te),this._entries.set(te,ve));const Ce=ve.register(D,he);return this._onDidChange.fire(new Y(te)),(0,F.s)(()=>{Ce.dispose(),this._onDidChange.fire(new Y(te))})}getLanguageConfiguration(te){const D=this._entries.get(te);return D?.getResolvedConfiguration()||null}}class ie{constructor(te,D){this.languageId=te,this.underlyingConfig=D,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new n(this.underlyingConfig):null,this.comments=ie._handleComments(this.underlyingConfig),this.characterPair=new x(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||M.Ld,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new a(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new v(te,this.underlyingConfig)}getWordDefinition(){return(0,M.Io)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new S.az(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new f(this.brackets)),this._electricCharacter}onEnter(te,D,he,ve){return this._onEnterSupport?this._onEnterSupport.onEnter(te,D,he,ve):null}getAutoClosingPairs(){return new L.GB(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(te){return this.characterPair.getAutoCloseBeforeSet(te)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(te){const D=te.comments;if(!D)return null;const he={};if(D.lineComment&&(he.lineCommentToken=D.lineComment),D.blockComment){const[ve,Ce]=D.blockComment;he.blockCommentStartToken=ve,he.blockCommentEndToken=Ce}return he}}(0,u.v)(G,P,1)},"./node_modules/monaco-editor/esm/vs/editor/common/languages/modesRegistry.js":function(pt,Me,e){e.d(Me,{W6:function(){return I},vH:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),k=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/mime.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js");const g={ModesRegistry:"editor.modesRegistry"};class x{constructor(){this._onDidChangeLanguages=new F.vl,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(a){return this._languages.push(a),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let s=0,n=this._languages.length;s>>0,new r.rY(x,g===null?F:g)}},"./node_modules/monaco-editor/esm/vs/editor/common/languages/supports.js":function(pt,Me,e){e.d(Me,{BQ:function(){return r},Yo:function(){return k}});function r(M,L){const g=M.getCount(),x=M.findTokenIndexAtOffset(L),I=M.getLanguageId(x);let S=x;for(;S+10&&M.getLanguageId(f-1)===I;)f--;return new F(M,I,f,S+1,M.getStartOffset(f),M.getEndOffset(S))}class F{constructor(L,g,x,I,S,f){this._scopedLineTokensBrand=void 0,this._actual=L,this.languageId=g,this._firstTokenIndex=x,this._lastTokenIndex=I,this.firstCharOffset=S,this._lastCharOffset=f}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(L){return this._actual.getLineContent().substring(0,this.firstCharOffset+L)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(L){return this._actual.findTokenIndexAtOffset(L+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(L){return this._actual.getStandardTokenType(L+this._firstTokenIndex)}}function k(M){return(M&3)!==0}},"./node_modules/monaco-editor/esm/vs/editor/common/languages/supports/richEditBrackets.js":function(pt,Me,e){e.d(Me,{Fu:function(){return m},az:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class M{constructor(C,h,v,p,b,O){this._richEditBracketBrand=void 0,this.languageId=C,this.index=h,this.open=v,this.close=p,this.forwardRegex=b,this.reversedRegex=O,this._openSet=M._toSet(this.open),this._closeSet=M._toSet(this.close)}isOpen(C){return this._openSet.has(C)}isClose(C){return this._closeSet.has(C)}static _toSet(C){const h=new Set;for(const v of C)h.add(v);return h}}function L(u){const C=u.length;u=u.map(O=>[O[0].toLowerCase(),O[1].toLowerCase()]);const h=[];for(let O=0;O{const[j,U]=O,[K,G]=w;return j===K||j===G||U===K||U===G},p=(O,w)=>{const j=Math.min(O,w),U=Math.max(O,w);for(let K=0;K0&&b.push({open:w,close:j})}return b}class g{constructor(C,h){this._richEditBracketsBrand=void 0;const v=L(h);this.brackets=v.map((p,b)=>new M(C,b,p.open,p.close,f(p.open,p.close,v,b),d(p.open,p.close,v,b))),this.forwardRegex=a(this.brackets),this.reversedRegex=s(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const p of this.brackets){for(const b of p.open)this.textIsBracket[b]=p,this.textIsOpenBracket[b]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,b.length);for(const b of p.close)this.textIsBracket[b]=p,this.textIsOpenBracket[b]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,b.length)}}}function x(u,C,h,v){for(let p=0,b=C.length;p=0&&v.push(w);for(const w of O.close)w.indexOf(u)>=0&&v.push(w)}}function I(u,C){return u.length-C.length}function S(u){if(u.length<=1)return u;const C=[],h=new Set;for(const v of u)h.has(v)||(C.push(v),h.add(v));return C}function f(u,C,h,v){let p=[];p=p.concat(u),p=p.concat(C);for(let b=0,O=p.length;b=0;O--)p[b++]=v.charCodeAt(O);return F.b7().decode(p)}let C=null,h=null;return function(p){return C!==p&&(C=p,h=u(C)),h}}();class m{static _findPrevBracketInText(C,h,v,p){const b=v.match(C);if(!b)return null;const O=v.length-(b.index||0),w=b[0].length,j=p+O;return new k.Q(h,j-w+1,h,j+1)}static findPrevBracketInRange(C,h,v,p,b){const w=c(v).substring(v.length-b,v.length-p);return this._findPrevBracketInText(C,h,w,p)}static findNextBracketInText(C,h,v,p){const b=v.match(C);if(!b)return null;const O=b.index||0,w=b[0].length;if(w===0)return null;const j=p+O;return new k.Q(h,j+1,h,j+1+w)}static findNextBracketInRange(C,h,v,p,b){const O=v.substring(p,b);return this.findNextBracketInText(C,h,O,p)}}},"./node_modules/monaco-editor/esm/vs/editor/common/languages/textToHtmlTokenizer.js":function(pt,Me,e){e.d(Me,{Yj:function(){return g},s0:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/nullTokenize.js");const L={getInitialState:()=>M.r3,tokenizeEncoded:(S,f,d)=>(0,M.Lh)(0,d)};async function g(S,f,d){if(!d)return I(f,S.languageIdCodec,L);const a=await k.dG.getOrCreate(d);return I(f,S.languageIdCodec,a||L)}function x(S,f,d,a,s,n,i){let c="
    ",m=a,u=0,C=!0;for(let h=0,v=f.getCount();h0;)i&&C?(b+=" ",C=!1):(b+=" ",C=!0),w--;break}case 60:b+="<",C=!1;break;case 62:b+=">",C=!1;break;case 38:b+="&",C=!1;break;case 0:b+="�",C=!1;break;case 65279:case 8232:case 8233:case 133:b+="\uFFFD",C=!1;break;case 13:b+="​",C=!1;break;case 32:i&&C?(b+=" ",C=!1):(b+=" ",C=!0);break;default:b+=String.fromCharCode(O),C=!1}}if(c+=`${b}`,p>s||m>=s)break}return c+="
    ",c}function I(S,f,d){let a='
    ';const s=r.uz(S);let n=d.getInitialState();for(let i=0,c=s.length;i0&&(a+="
    ");const u=d.tokenizeEncoded(m,!0,n);F.f.convertToEndOffset(u.tokens,m.length);const h=new F.f(u.tokens,m,f).inflate();let v=0;for(let p=0,b=h.getCount();p${r.ih(m.substring(v,w))}`,v=w}n=u.endState}return a+="
    ",a}},"./node_modules/monaco-editor/esm/vs/editor/common/model.js":function(pt,Me,e){e.d(Me,{A5:function(){return F},Dg:function(){return g},F4:function(){return f},L5:function(){return S},VW:function(){return M},Wo:function(){return I},X2:function(){return L},ZS:function(){return k},nk:function(){return x},vd:function(){return d}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),F;(function(a){a[a.Left=1]="Left",a[a.Center=2]="Center",a[a.Right=4]="Right",a[a.Full=7]="Full"})(F||(F={}));var k;(function(a){a[a.Left=1]="Left",a[a.Center=2]="Center",a[a.Right=3]="Right"})(k||(k={}));var M;(function(a){a[a.Both=0]="Both",a[a.Right=1]="Right",a[a.Left=2]="Left",a[a.None=3]="None"})(M||(M={}));class L{get originalIndentSize(){return this._indentSizeIsTabSize?"tabSize":this.indentSize}constructor(s){this._textModelResolvedOptionsBrand=void 0,this.tabSize=Math.max(1,s.tabSize|0),s.indentSize==="tabSize"?(this.indentSize=this.tabSize,this._indentSizeIsTabSize=!0):(this.indentSize=Math.max(1,s.indentSize|0),this._indentSizeIsTabSize=!1),this.insertSpaces=!!s.insertSpaces,this.defaultEOL=s.defaultEOL|0,this.trimAutoWhitespace=!!s.trimAutoWhitespace,this.bracketPairColorizationOptions=s.bracketPairColorizationOptions}equals(s){return this.tabSize===s.tabSize&&this._indentSizeIsTabSize===s._indentSizeIsTabSize&&this.indentSize===s.indentSize&&this.insertSpaces===s.insertSpaces&&this.defaultEOL===s.defaultEOL&&this.trimAutoWhitespace===s.trimAutoWhitespace&&(0,r.aI)(this.bracketPairColorizationOptions,s.bracketPairColorizationOptions)}createChangeEvent(s){return{tabSize:this.tabSize!==s.tabSize,indentSize:this.indentSize!==s.indentSize,insertSpaces:this.insertSpaces!==s.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==s.trimAutoWhitespace}}}class g{constructor(s,n){this._findMatchBrand=void 0,this.range=s,this.matches=n}}function x(a){return a&&typeof a.read=="function"}class I{constructor(s,n,i,c,m,u){this.identifier=s,this.range=n,this.text=i,this.forceMoveMarkers=c,this.isAutoWhitespaceEdit=m,this._isTracked=u}}class S{constructor(s,n,i){this.regex=s,this.wordSeparators=n,this.simpleSearch=i}}class f{constructor(s,n,i){this.reverseEdits=s,this.changes=n,this.trimAutoWhitespaceLineNumbers=i}}function d(a){return!a.isTooLargeForSyncing()&&!a.isForSimpleWidget}},"./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.js":function(pt,Me,e){e.d(Me,{Gc:function(){return c},Nn:function(){return g},Xw:function(){return x},rh:function(){return i},yF:function(){return n}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/cursorColumns.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.js");class L{get length(){return this._length}constructor(u){this._length=u}}class g extends L{static create(u,C,h){let v=u.length;return C&&(v=(0,k.QB)(v,C.length)),h&&(v=(0,k.QB)(v,h.length)),new g(v,u,C,h,C?C.missingOpeningBracketIds:M.gV.getEmpty())}get kind(){return 2}get listHeight(){return 0}get childrenLength(){return 3}getChild(u){switch(u){case 0:return this.openingBracket;case 1:return this.child;case 2:return this.closingBracket}throw new Error("Invalid child index")}get children(){const u=[];return u.push(this.openingBracket),this.child&&u.push(this.child),this.closingBracket&&u.push(this.closingBracket),u}constructor(u,C,h,v,p){super(u),this.openingBracket=C,this.child=h,this.closingBracket=v,this.missingOpeningBracketIds=p}canBeReused(u){return!(this.closingBracket===null||u.intersects(this.missingOpeningBracketIds))}deepClone(){return new g(this.length,this.openingBracket.deepClone(),this.child&&this.child.deepClone(),this.closingBracket&&this.closingBracket.deepClone(),this.missingOpeningBracketIds)}computeMinIndentation(u,C){return this.child?this.child.computeMinIndentation((0,k.QB)(u,this.openingBracket.length),C):Number.MAX_SAFE_INTEGER}}class x extends L{static create23(u,C,h,v=!1){let p=u.length,b=u.missingOpeningBracketIds;if(u.listHeight!==C.listHeight)throw new Error("Invalid list heights");if(p=(0,k.QB)(p,C.length),b=b.merge(C.missingOpeningBracketIds),h){if(u.listHeight!==h.listHeight)throw new Error("Invalid list heights");p=(0,k.QB)(p,h.length),b=b.merge(h.missingOpeningBracketIds)}return v?new S(p,u.listHeight+1,u,C,h,b):new I(p,u.listHeight+1,u,C,h,b)}static getEmpty(){return new d(k.Vp,0,[],M.gV.getEmpty())}get kind(){return 4}get missingOpeningBracketIds(){return this._missingOpeningBracketIds}constructor(u,C,h){super(u),this.listHeight=C,this._missingOpeningBracketIds=h,this.cachedMinIndentation=-1}throwIfImmutable(){}makeLastElementMutable(){this.throwIfImmutable();const u=this.childrenLength;if(u===0)return;const C=this.getChild(u-1),h=C.kind===4?C.toMutable():C;return C!==h&&this.setChild(u-1,h),h}makeFirstElementMutable(){if(this.throwIfImmutable(),this.childrenLength===0)return;const C=this.getChild(0),h=C.kind===4?C.toMutable():C;return C!==h&&this.setChild(0,h),h}canBeReused(u){if(u.intersects(this.missingOpeningBracketIds)||this.childrenLength===0)return!1;let C=this;for(;C.kind===4;){const h=C.childrenLength;if(h===0)throw new r.D7;C=C.getChild(h-1)}return C.canBeReused(u)}handleChildrenChanged(){this.throwIfImmutable();const u=this.childrenLength;let C=this.getChild(0).length,h=this.getChild(0).missingOpeningBracketIds;for(let v=1;v{const f=r.Q.lift(S.range);return new k((0,F.VL)(f.getStartPosition()),(0,F.VL)(f.getEndPosition()),(0,F.rR)(S.text))}).reverse()}constructor(x,I,S){this.startOffset=x,this.endOffset=I,this.newLength=S}toString(){return`[${(0,F.l4)(this.startOffset)}...${(0,F.l4)(this.endOffset)}) -> ${(0,F.l4)(this.newLength)}`}}class M{constructor(x){this.nextEditIdx=0,this.deltaOldToNewLineCount=0,this.deltaOldToNewColumnCount=0,this.deltaLineIdxInOld=-1,this.edits=x.map(I=>L.from(I))}getOffsetBeforeChange(x){return this.adjustNextEdit(x),this.translateCurToOld(x)}getDistanceToNextChange(x){this.adjustNextEdit(x);const I=this.edits[this.nextEditIdx],S=I?this.translateOldToCur(I.offsetObj):null;return S===null?null:(0,F.MS)(x,S)}translateOldToCur(x){return x.lineCount===this.deltaLineIdxInOld?(0,F.qe)(x.lineCount+this.deltaOldToNewLineCount,x.columnCount+this.deltaOldToNewColumnCount):(0,F.qe)(x.lineCount+this.deltaOldToNewLineCount,x.columnCount)}translateCurToOld(x){const I=(0,F.l4)(x);return I.lineCount-this.deltaOldToNewLineCount===this.deltaLineIdxInOld?(0,F.qe)(I.lineCount-this.deltaOldToNewLineCount,I.columnCount-this.deltaOldToNewColumnCount):(0,F.qe)(I.lineCount-this.deltaOldToNewLineCount,I.columnCount)}adjustNextEdit(x){for(;this.nextEditIdxx(d)).join("|")}}get regExpGlobal(){if(!this.hasRegExp){const f=this.getRegExpStr();this._regExpGlobal=f?new RegExp(f,"gi"):null,this.hasRegExp=!0}return this._regExpGlobal}getToken(f){return this.map.get(f.toLowerCase())}findClosingTokenText(f){for(const[d,a]of this.map)if(a.kind===2&&a.bracketIds.intersects(f))return d}get isEmpty(){return this.map.size===0}}function x(S){let f=(0,r.bm)(S);return/^[\w ]+/.test(S)&&(f=`\\b${f}`),/[\w ]+$/.test(S)&&(f=`${f}\\b`),f}class I{constructor(f,d){this.denseKeyProvider=f,this.getLanguageConfiguration=d,this.languageIdToBracketTokens=new Map}didLanguageChange(f){return this.languageIdToBracketTokens.has(f)}getSingleLanguageBracketTokens(f){let d=this.languageIdToBracketTokens.get(f);return d||(d=g.createFromLanguage(this.getLanguageConfiguration(f),this.denseKeyProvider),this.languageIdToBracketTokens.set(f,d)),d}}},"./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/combineTextEditInfos.js":function(pt,Me,e){e.d(Me,{M:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js");function M(x,I){if(x.length===0)return I;if(I.length===0)return x;const S=new r.j3(g(x)),f=g(I);f.push({modified:!1,lengthBefore:void 0,lengthAfter:void 0});let d=S.dequeue();function a(c){if(c===void 0){const u=S.takeWhile(C=>!0)||[];return d&&u.unshift(d),u}const m=[];for(;d&&!(0,k.Vh)(c);){const[u,C]=d.splitAt(c);m.push(u),c=(0,k.MS)(u.lengthAfter,c),d=C??S.dequeue()}return(0,k.Vh)(c)||m.push(new L(!1,c,c)),m}const s=[];function n(c,m,u){if(s.length>0&&(0,k.wP)(s[s.length-1].endOffset,c)){const C=s[s.length-1];s[s.length-1]=new F.c(C.startOffset,m,(0,k.QB)(C.newLength,u))}else s.push({startOffset:c,endOffset:m,newLength:u})}let i=k.Vp;for(const c of f){const m=a(c.lengthBefore);if(c.modified){const u=(0,k.pW)(m,h=>h.lengthBefore),C=(0,k.QB)(i,u);n(i,C,c.lengthAfter),i=C}else for(const u of m){const C=i;i=(0,k.QB)(i,u.lengthBefore),u.modified&&n(C,i,u.lengthAfter)}}return s}class L{constructor(I,S,f){this.modified=I,this.lengthBefore=S,this.lengthAfter=f}splitAt(I){const S=(0,k.MS)(I,this.lengthAfter);return(0,k.wP)(S,k.Vp)?[this,void 0]:this.modified?[new L(this.modified,this.lengthBefore,I),new L(this.modified,k.Vp,S)]:[new L(this.modified,I,I),new L(this.modified,S,S)]}toString(){return`${this.modified?"M":"U"}:${(0,k.l4)(this.lengthBefore)} -> ${(0,k.l4)(this.lengthAfter)}`}}function g(x){const I=[];let S=k.Vp;for(const f of x){const d=(0,k.MS)(S,f.startOffset);(0,k.Vh)(d)||I.push(new L(!1,d,d));const a=(0,k.MS)(f.startOffset,f.endOffset);I.push(new L(!0,a,f.newLength)),S=f.endOffset}return I}},"./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js":function(pt,Me,e){e.d(Me,{C7:function(){return M},MS:function(){return i},QB:function(){return a},Qx:function(){return h},VL:function(){return C},Vh:function(){return g},Vp:function(){return L},eu:function(){return f},l4:function(){return S},o0:function(){return u},pW:function(){return s},qe:function(){return I},rR:function(){return v},sS:function(){return d},vr:function(){return m},wP:function(){return n},zG:function(){return c}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textLength.js");function M(p,b,O,w){return p!==O?I(O-p,w):I(0,w-b)}const L=0;function g(p){return p===0}const x=2**26;function I(p,b){return p*x+b}function S(p){const b=p,O=Math.floor(b/x),w=b-O*x;return new k.W(O,w)}function f(p){return Math.floor(p/x)}function d(p){return p}function a(p,b){let O=p+b;return b>=x&&(O=O-p%x),O}function s(p,b){return p.reduce((O,w)=>a(O,b(w)),L)}function n(p,b){return p===b}function i(p,b){const O=p,w=b;if(w-O<=0)return L;const U=Math.floor(O/x),K=Math.floor(w/x),G=w-K*x;if(U===K){const P=O-U*x;return I(0,G-P)}else return I(K-U,G)}function c(p,b){return p=b}function C(p){return I(p.lineNumber-1,p.column-1)}function h(p,b){const O=p,w=Math.floor(O/x),j=O-w*x,U=b,K=Math.floor(U/x),G=U-K*x;return new F.Q(w+1,j+1,K+1,G+1)}function v(p){const b=(0,r.uz)(p);return I(b.length-1,b[b.length-1].length)}},"./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser.js":function(pt,Me,e){e.d(Me,{T:function(){return n}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/length.js");function L(c){if(c.length===0)return null;if(c.length===1)return c[0];let m=0;function u(){if(m>=c.length)return null;const p=m,b=c[p].listHeight;for(m++;m=2?g(p===0&&m===c.length?c:c.slice(p,m),!1):c[p]}let C=u(),h=u();if(!h)return C;for(let p=u();p;p=u())x(C,h)<=x(h,p)?(C=I(C,h),h=p):h=I(h,p);return I(C,h)}function g(c,m=!1){if(c.length===0)return null;if(c.length===1)return c[0];let u=c.length;for(;u>3;){const C=u>>1;for(let h=0;h=3?c[2]:null,m)}function x(c,m){return Math.abs(c.listHeight-m.listHeight)}function I(c,m){return c.listHeight===m.listHeight?r.Xw.create23(c,m,null,!1):c.listHeight>m.listHeight?S(c,m):f(m,c)}function S(c,m){c=c.toMutable();let u=c;const C=[];let h;for(;;){if(m.listHeight===u.listHeight){h=m;break}if(u.kind!==4)throw new Error("unexpected");C.push(u),u=u.makeLastElementMutable()}for(let v=C.length-1;v>=0;v--){const p=C[v];h?p.childrenLength>=3?h=r.Xw.create23(p.unappendChild(),h,null,!1):(p.appendChildOfSameHeight(h),h=void 0):p.handleChildrenChanged()}return h?r.Xw.create23(c,h,null,!1):c}function f(c,m){c=c.toMutable();let u=c;const C=[];for(;m.listHeight!==u.listHeight;){if(u.kind!==4)throw new Error("unexpected");C.push(u),u=u.makeFirstElementMutable()}let h=m;for(let v=C.length-1;v>=0;v--){const p=C[v];h?p.childrenLength>=3?h=r.Xw.create23(h,p.unprependChild(),null,!1):(p.prependChildOfSameHeight(h),h=void 0):p.handleChildrenChanged()}return h?r.Xw.create23(h,c,null,!1):c}class d{constructor(m){this.lastOffset=M.Vp,this.nextNodes=[m],this.offsets=[M.Vp],this.idxs=[]}readLongestNodeAt(m,u){if((0,M.zG)(m,this.lastOffset))throw new Error("Invalid offset");for(this.lastOffset=m;;){const C=s(this.nextNodes);if(!C)return;const h=s(this.offsets);if((0,M.zG)(m,h))return;if((0,M.zG)(h,m))if((0,M.QB)(h,C.length)<=m)this.nextNodeAfterCurrent();else{const v=a(C);v!==-1?(this.nextNodes.push(C.getChild(v)),this.offsets.push(h),this.idxs.push(v)):this.nextNodeAfterCurrent()}else{if(u(C))return this.nextNodeAfterCurrent(),C;{const v=a(C);if(v===-1){this.nextNodeAfterCurrent();return}else this.nextNodes.push(C.getChild(v)),this.offsets.push(h),this.idxs.push(v)}}}}nextNodeAfterCurrent(){for(;;){const m=s(this.offsets),u=s(this.nextNodes);if(this.nextNodes.pop(),this.offsets.pop(),this.idxs.length===0)break;const C=s(this.nextNodes),h=a(C,this.idxs[this.idxs.length-1]);if(h!==-1){this.nextNodes.push(C.getChild(h)),this.offsets.push((0,M.QB)(m,u.length)),this.idxs[this.idxs.length-1]=h;break}else this.idxs.pop()}}}function a(c,m=-1){for(;;){if(m++,m>=c.childrenLength)return-1;if(c.getChild(m))return m}}function s(c){return c.length>0?c[c.length-1]:void 0}function n(c,m,u,C){return new i(c,m,u,C).parseDocument()}class i{constructor(m,u,C,h){if(this.tokenizer=m,this.createImmutableLists=h,this._itemsConstructed=0,this._itemsFromCache=0,C&&h)throw new Error("Not supported");this.oldNodeReader=C?new d(C):void 0,this.positionMapper=new F.W(u)}parseDocument(){this._itemsConstructed=0,this._itemsFromCache=0;let m=this.parseList(k.gV.getEmpty(),0);return m||(m=r.Xw.getEmpty()),m}parseList(m,u){const C=[];for(;;){let v=this.tryReadChildFromCache(m);if(!v){const p=this.tokenizer.peek();if(!p||p.kind===2&&p.bracketIds.intersects(m))break;v=this.parseChild(m,u+1)}v.kind===4&&v.childrenLength===0||C.push(v)}return this.oldNodeReader?L(C):g(C,this.createImmutableLists)}tryReadChildFromCache(m){if(this.oldNodeReader){const u=this.positionMapper.getDistanceToNextChange(this.tokenizer.offset);if(u===null||!(0,M.Vh)(u)){const C=this.oldNodeReader.readLongestNodeAt(this.positionMapper.getOffsetBeforeChange(this.tokenizer.offset),h=>u!==null&&!(0,M.zG)(h.length,u)?!1:h.canBeReused(m));if(C)return this._itemsFromCache++,this.tokenizer.skip(C.length),C}}}parseChild(m,u){this._itemsConstructed++;const C=this.tokenizer.read();switch(C.kind){case 2:return new r.Gc(C.bracketIds,C.length);case 0:return C.astNode;case 1:{if(u>300)return new r.yF(C.length);const h=m.merge(C.bracketIds),v=this.parseList(h,u+1),p=this.tokenizer.peek();return p&&p.kind===2&&(p.bracketId===C.bracketId||p.bracketIds.intersects(C.bracketIds))?(this.tokenizer.read(),r.Nn.create(C.astNode,v,p.astNode)):r.Nn.create(C.astNode,v,null)}default:throw new Error("unexpected")}}}},"./node_modules/monaco-editor/esm/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/smallImmutableSet.js":function(pt,Me,e){e.d(Me,{FD:function(){return k},Mg:function(){return M},gV:function(){return F}});const r=[];class F{static create(g,x){if(g<=128&&x.length===0){let I=F.cache[g];return I||(I=new F(g,x),F.cache[g]=I),I}return new F(g,x)}static getEmpty(){return this.empty}constructor(g,x){this.items=g,this.additionalItems=x}add(g,x){const I=x.getKey(g);let S=I>>5;if(S===0){const d=1<this.textBufferLineCount-1||this.lineIdx===this.textBufferLineCount-1&&this.lineCharOffset>=this.textBufferLastLineLength)return null;this.line===null&&(this.lineTokens=this.textModel.tokenization.getLineTokens(this.lineIdx+1),this.line=this.lineTokens.getLineContent(),this.lineTokenOffset=this.lineCharOffset===0?0:this.lineTokens.findTokenIndexAtOffset(this.lineCharOffset));const d=this.lineIdx,a=this.lineCharOffset;let s=0;for(;;){const i=this.lineTokens,c=i.getCount();let m=null;if(this.lineTokenOffset1e3))break;if(s>1500)break}const n=(0,M.C7)(d,a,this.lineIdx,this.lineCharOffset);return new g(n,0,-1,L.gV.getEmpty(),new k.yF(n))}}class S{constructor(d,a){this.text=d,this._offset=M.Vp,this.idx=0;const s=a.getRegExpStr(),n=s?new RegExp(s+`| `,"gi"):null,i=[];let c,m=0,u=0,C=0,h=0;const v=[];for(let O=0;O<60;O++)v.push(new g((0,M.qe)(0,O),0,-1,L.gV.getEmpty(),new k.yF((0,M.qe)(0,O))));const p=[];for(let O=0;O<60;O++)p.push(new g((0,M.qe)(1,O),0,-1,L.gV.getEmpty(),new k.yF((0,M.qe)(1,O))));if(n)for(n.lastIndex=0;(c=n.exec(d))!==null;){const O=c.index,w=c[0];if(w===` `)m++,u=O+1;else{if(C!==O){let j;if(h===m){const U=O-C;if(U0&&(this.changes=(0,L.x)(this.changes,m)),this.afterEOL=u,this.afterVersionId=C,this.afterCursorState=h}static _writeSelectionsSize(c){return 4+4*4*(c?c.length:0)}static _writeSelections(c,m,u){if(g.Sw(c,m?m.length:0,u),u+=4,m)for(const C of m)g.Sw(c,C.selectionStartLineNumber,u),u+=4,g.Sw(c,C.selectionStartColumn,u),u+=4,g.Sw(c,C.positionLineNumber,u),u+=4,g.Sw(c,C.positionColumn,u),u+=4;return u}static _readSelections(c,m,u){const C=g.bb(c,m);m+=4;for(let h=0;hm.toString()).join(", ")}matchesResource(c){return(M.r.isUri(this.model)?this.model:this.model.uri).toString()===c.toString()}setModel(c){this.model=c}canAppend(c){return this.model===c&&this._data instanceof S}append(c,m,u,C,h){this._data instanceof S&&this._data.append(c,m,u,C,h)}close(){this._data instanceof S&&(this._data=this._data.serialize())}open(){this._data instanceof S||(this._data=S.deserialize(this._data))}undo(){if(M.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof S&&(this._data=this._data.serialize());const c=S.deserialize(this._data);this.model._applyUndo(c.changes,c.beforeEOL,c.beforeVersionId,c.beforeCursorState)}redo(){if(M.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof S&&(this._data=this._data.serialize());const c=S.deserialize(this._data);this.model._applyRedo(c.changes,c.afterEOL,c.afterVersionId,c.afterCursorState)}heapSize(){return this._data instanceof S&&(this._data=this._data.serialize()),this._data.byteLength+168}}class d{get resources(){return this._editStackElementsArr.map(c=>c.resource)}constructor(c,m,u){this.label=c,this.code=m,this.type=1,this._isOpen=!0,this._editStackElementsArr=u.slice(0),this._editStackElementsMap=new Map;for(const C of this._editStackElementsArr){const h=I(C.resource);this._editStackElementsMap.set(h,C)}this._delegate=null}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(c){const m=I(c);return this._editStackElementsMap.has(m)}setModel(c){const m=I(M.r.isUri(c)?c:c.uri);this._editStackElementsMap.has(m)&&this._editStackElementsMap.get(m).setModel(c)}canAppend(c){if(!this._isOpen)return!1;const m=I(c.uri);return this._editStackElementsMap.has(m)?this._editStackElementsMap.get(m).canAppend(c):!1}append(c,m,u,C,h){const v=I(c.uri);this._editStackElementsMap.get(v).append(c,m,u,C,h)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const c of this._editStackElementsArr)c.undo()}redo(){for(const c of this._editStackElementsArr)c.redo()}heapSize(c){const m=I(c);return this._editStackElementsMap.has(m)?this._editStackElementsMap.get(m).heapSize():0}split(){return this._editStackElementsArr}toString(){const c=[];for(const m of this._editStackElementsArr)c.push(`${(0,x.P8)(m.resource)}: ${m}`);return`{${c.join(", ")}}`}}function a(i){return i.getEOL()===` `?0:1}function s(i){return i?i instanceof f||i instanceof d:!1}class n{constructor(c,m){this._model=c,this._undoRedoService=m}pushStackElement(){const c=this._undoRedoService.getLastElement(this._model.uri);s(c)&&c.close()}popStackElement(){const c=this._undoRedoService.getLastElement(this._model.uri);s(c)&&c.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(c,m){const u=this._undoRedoService.getLastElement(this._model.uri);if(s(u)&&u.canAppend(this._model))return u;const C=new f(r.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,c);return this._undoRedoService.pushElement(C,m),C}pushEOL(c){const m=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(c),m.append(this._model,[],a(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(c,m,u,C){const h=this._getOrCreateEditStackElement(c,C),v=this._model.applyEdits(m,!0),p=n._computeCursorState(u,v),b=v.map((O,w)=>({index:w,textChange:O.textChange}));return b.sort((O,w)=>O.textChange.oldPosition===w.textChange.oldPosition?O.index-w.index:O.textChange.oldPosition-w.textChange.oldPosition),h.append(this._model,b.map(O=>O.textChange),a(this._model),this._model.getAlternativeVersionId(),p),p}static _computeCursorState(c,m){try{return c?c(m):null}catch(u){return(0,F.dz)(u),null}}}},"./node_modules/monaco-editor/esm/vs/editor/common/model/guidesTextModelPart.js":function(pt,Me,e){e.d(Me,{P:function(){return S},k:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/cursorColumns.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModelPart.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/model/utils.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/textModelGuides.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js");class S extends L._{constructor(a,s){super(),this.textModel=a,this.languageConfigurationService=s}getLanguageConfiguration(a){return this.languageConfigurationService.getLanguageConfiguration(a)}_computeIndentLevel(a){return(0,g.G)(this.textModel.getLineContent(a+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(a,s,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(a<1||a>i)throw new I.D7("Illegal value for lineNumber");const c=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,m=!!(c&&c.offSide);let u=-2,C=-1,h=-2,v=-1;const p=W=>{if(u!==-1&&(u===-2||u>W-1)){u=-1,C=-1;for(let $=W-2;$>=0;$--){const z=this._computeIndentLevel($);if(z>=0){u=$,C=z;break}}}if(h===-2){h=-1,v=-1;for(let $=W;$=0){h=$,v=z;break}}}};let b=-2,O=-1,w=-2,j=-1;const U=W=>{if(b===-2){b=-1,O=-1;for(let $=W-2;$>=0;$--){const z=this._computeIndentLevel($);if(z>=0){b=$,O=z;break}}}if(w!==-1&&(w===-2||w=0){w=$,j=z;break}}}};let K=0,G=!0,P=0,A=!0,T=0,E=0;for(let W=0;G||A;W++){const $=a-W,z=a+W;W>1&&($<1||$1&&(z>i||z>n)&&(A=!1),W>5e4&&(G=!1,A=!1);let J=-1;if(G&&$>=1){const V=this._computeIndentLevel($-1);V>=0?(h=$-1,v=V,J=Math.ceil(V/this.textModel.getOptions().indentSize)):(p($),J=this._getIndentLevelForWhitespaceLine(m,C,v))}let B=-1;if(A&&z<=i){const V=this._computeIndentLevel(z-1);V>=0?(b=z-1,O=V,B=Math.ceil(V/this.textModel.getOptions().indentSize)):(U(z),B=this._getIndentLevelForWhitespaceLine(m,O,j))}if(W===0){E=J;continue}if(W===1){if(z<=i&&B>=0&&E+1===B){G=!1,K=z,P=z,T=B;continue}if($>=1&&J>=0&&J-1===E){A=!1,K=$,P=$,T=J;continue}if(K=a,P=a,T=E,T===0)return{startLineNumber:K,endLineNumber:P,indent:T}}G&&(J>=T?K=$:G=!1),A&&(B>=T?P=z:A=!1)}return{startLineNumber:K,endLineNumber:P,indent:T}}getLinesBracketGuides(a,s,n,i){var c;const m=[];for(let b=a;b<=s;b++)m.push([]);const u=!0,C=this.textModel.bracketPairs.getBracketPairsInRangeWithMinIndentation(new M.Q(a,1,s,this.textModel.getLineMaxColumn(s))).toArray();let h;if(n&&C.length>0){const b=(a<=n.lineNumber&&n.lineNumber<=s?C:this.textModel.bracketPairs.getBracketPairsInRange(M.Q.fromPositions(n)).toArray()).filter(O=>M.Q.strictContainsPosition(O.range,n));h=(c=(0,r.Uk)(b,O=>u||O.range.startLineNumber!==O.range.endLineNumber))===null||c===void 0?void 0:c.range}const v=this.textModel.getOptions().bracketPairColorizationOptions.independentColorPoolPerBracketType,p=new f;for(const b of C){if(!b.closingBracketRange)continue;const O=h&&b.range.equalsRange(h);if(!O&&!i.includeInactive)continue;const w=p.getInlineClassName(b.nestingLevel,b.nestingLevelOfEqualBracketType,v)+(i.highlightActive&&O?" "+p.activeClassName:""),j=b.openingBracketRange.getStartPosition(),U=b.closingBracketRange.getStartPosition(),K=i.horizontalGuides===x.N6.Enabled||i.horizontalGuides===x.N6.EnabledForActive&&O;if(b.range.startLineNumber===b.range.endLineNumber){u&&K&&m[b.range.startLineNumber-a].push(new x.TH(-1,b.openingBracketRange.getEndPosition().column,w,new x.pv(!1,U.column),-1,-1));continue}const G=this.getVisibleColumnFromPosition(U),P=this.getVisibleColumnFromPosition(b.openingBracketRange.getStartPosition()),A=Math.min(P,G,b.minVisibleColumnIndentation+1);let T=!1;F.HG(this.textModel.getLineContent(b.closingBracketRange.startLineNumber))=a&&P>A&&m[j.lineNumber-a].push(new x.TH(A,-1,w,new x.pv(!1,j.column),-1,-1)),U.lineNumber<=s&&G>A&&m[U.lineNumber-a].push(new x.TH(A,-1,w,new x.pv(!T,U.column),-1,-1)))}for(const b of m)b.sort((O,w)=>O.visibleColumn-w.visibleColumn);return m}getVisibleColumnFromPosition(a){return k.A.visibleColumnFromColumn(this.textModel.getLineContent(a.lineNumber),a.column,this.textModel.getOptions().tabSize)+1}getLinesIndentGuides(a,s){this.assertNotDisposed();const n=this.textModel.getLineCount();if(a<1||a>n)throw new Error("Illegal value for startLineNumber");if(s<1||s>n)throw new Error("Illegal value for endLineNumber");const i=this.textModel.getOptions(),c=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,m=!!(c&&c.offSide),u=new Array(s-a+1);let C=-2,h=-1,v=-2,p=-1;for(let b=a;b<=s;b++){const O=b-a,w=this._computeIndentLevel(b-1);if(w>=0){C=b-1,h=w,u[O]=Math.ceil(w/i.indentSize);continue}if(C===-2){C=-1,h=-1;for(let j=b-2;j>=0;j--){const U=this._computeIndentLevel(j);if(U>=0){C=j,h=U;break}}}if(v!==-1&&(v===-2||v=0){v=j,p=U;break}}}u[O]=this._getIndentLevelForWhitespaceLine(m,h,p)}return u}_getIndentLevelForWhitespaceLine(a,s,n){const i=this.textModel.getOptions();return s===-1||n===-1?0:s=0&&this.prefixSum.set(f.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(x,I){return x=(0,F.j)(x),I=(0,F.j)(I),this.values[x]===I?!1:(this.values[x]=I,x-1=S.length)return!1;const d=S.length-x;return I>=d&&(I=d),I===0?!1:(this.values=new Uint32Array(S.length-I),this.values.set(S.subarray(0,x),0),this.values.set(S.subarray(x+I),x),this.prefixSum=new Uint32Array(this.values.length),x-1=0&&this.prefixSum.set(f.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(x){return x<0?0:(x=(0,F.j)(x),this._getPrefixSum(x))}_getPrefixSum(x){if(x<=this.prefixSumValidIndex[0])return this.prefixSum[x];let I=this.prefixSumValidIndex[0]+1;I===0&&(this.prefixSum[0]=this.values[0],I++),x>=this.values.length&&(x=this.values.length-1);for(let S=I;S<=x;S++)this.prefixSum[S]=this.prefixSum[S-1]+this.values[S];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],x),this.prefixSum[x]}getIndexOf(x){x=Math.floor(x),this.getTotalSum();let I=0,S=this.values.length-1,f=0,d=0,a=0;for(;I<=S;)if(f=I+(S-I)/2|0,d=this.prefixSum[f],a=d-this.values[f],x=d)I=f+1;else break;return new L(f,x-a)}}class M{constructor(x){this._values=x,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(x){return this._ensureValid(),x===0?0:this._prefixSum[x-1]}getIndexOf(x){this._ensureValid();const I=this._indexBySum[x],S=I>0?this._prefixSum[I-1]:0;return new L(I,x-S)}removeValues(x,I){this._values.splice(x,I),this._invalidate(x)}insertValues(x,I){this._values=(0,r.nK)(this._values,x,I),this._invalidate(x)}_invalidate(x){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,x-1)}_ensureValid(){if(!this._isValid){for(let x=this._validEndIndex+1,I=this._values.length;x0?this._prefixSum[x-1]:0;this._prefixSum[x]=f+S;for(let d=0;dnew b.c((0,w.qe)(ce.fromLineNumber-1,0),(0,w.qe)(ce.toLineNumber,0),(0,w.qe)(ce.toLineNumber-ce.fromLineNumber+1,0)));this.handleEdits(Q,!0),this.initialAstWithoutTokens||this.didChangeEmitter.fire()}handleContentChanged(R){const Q=b.c.fromModelContentChanges(R.changes);this.handleEdits(Q,!1)}handleEdits(R,Q){const ce=(0,G.M)(this.queuedTextEdits,R);this.queuedTextEdits=ce,this.initialAstWithoutTokens&&!Q&&(this.queuedTextEditsForInitialAstWithoutTokens=(0,G.M)(this.queuedTextEditsForInitialAstWithoutTokens,R))}flushQueue(){this.queuedTextEdits.length>0&&(this.astWithTokens=this.parseDocumentFromTextBuffer(this.queuedTextEdits,this.astWithTokens,!1),this.queuedTextEdits=[]),this.queuedTextEditsForInitialAstWithoutTokens.length>0&&(this.initialAstWithoutTokens&&(this.initialAstWithoutTokens=this.parseDocumentFromTextBuffer(this.queuedTextEditsForInitialAstWithoutTokens,this.initialAstWithoutTokens,!1)),this.queuedTextEditsForInitialAstWithoutTokens=[])}parseDocumentFromTextBuffer(R,Q,ce){const Fe=Q,Ze=new K.tk(this.textModel,this.brackets);return(0,j.T)(Ze,R,Fe,ce)}getBracketsInRange(R,Q){this.flushQueue();const ce=(0,w.qe)(R.startLineNumber-1,R.startColumn-1),Re=(0,w.qe)(R.endLineNumber-1,R.endColumn-1);return new r.c1(Fe=>{const Ze=this.initialAstWithoutTokens||this.astWithTokens;E(Ze,w.Vp,Ze.length,ce,Re,Fe,0,0,new Map,Q)})}getBracketPairsInRange(R,Q){this.flushQueue();const ce=(0,w.VL)(R.getStartPosition()),Re=(0,w.VL)(R.getEndPosition());return new r.c1(Fe=>{const Ze=this.initialAstWithoutTokens||this.astWithTokens,wt=new W(Fe,Q,this.textModel);$(Ze,w.Vp,Ze.length,ce,Re,wt,0,new Map)})}getFirstBracketAfter(R){this.flushQueue();const Q=this.initialAstWithoutTokens||this.astWithTokens;return T(Q,w.Vp,Q.length,(0,w.VL)(R))}getFirstBracketBefore(R){this.flushQueue();const Q=this.initialAstWithoutTokens||this.astWithTokens;return A(Q,w.Vp,Q.length,(0,w.VL)(R))}}function A(ht,R,Q,ce){if(ht.kind===4||ht.kind===2){const Re=[];for(const Fe of ht.children)Q=(0,w.QB)(R,Fe.length),Re.push({nodeOffsetStart:R,nodeOffsetEnd:Q}),R=Q;for(let Fe=Re.length-1;Fe>=0;Fe--){const{nodeOffsetStart:Ze,nodeOffsetEnd:wt}=Re[Fe];if((0,w.zG)(Ze,ce)){const Lt=A(ht.children[Fe],Ze,wt,ce);if(Lt)return Lt}}return null}else{if(ht.kind===3)return null;if(ht.kind===1){const Re=(0,w.Qx)(R,Q);return{bracketInfo:ht.bracketInfo,range:Re}}}return null}function T(ht,R,Q,ce){if(ht.kind===4||ht.kind===2){for(const Re of ht.children){if(Q=(0,w.QB)(R,Re.length),(0,w.zG)(ce,Q)){const Fe=T(Re,R,Q,ce);if(Fe)return Fe}R=Q}return null}else{if(ht.kind===3)return null;if(ht.kind===1){const Re=(0,w.Qx)(R,Q);return{bracketInfo:ht.bracketInfo,range:Re}}}return null}function E(ht,R,Q,ce,Re,Fe,Ze,wt,Lt,Qt,Xt=!1){if(Ze>200)return!0;e:for(;;)switch(ht.kind){case 4:{const $t=ht.childrenLength;for(let on=0;on<$t;on++){const un=ht.getChild(on);if(un){if(Q=(0,w.QB)(R,un.length),(0,w.vr)(R,Re)&&(0,w.o0)(Q,ce)){if((0,w.o0)(Q,Re)){ht=un;continue e}if(!E(un,R,Q,ce,Re,Fe,Ze,0,Lt,Qt))return!1}R=Q}}return!0}case 2:{const $t=!Qt||!ht.closingBracket||ht.closingBracket.bracketInfo.closesColorized(ht.openingBracket.bracketInfo);let on=0;if(Lt){let Cn=Lt.get(ht.openingBracket.text);Cn===void 0&&(Cn=0),on=Cn,$t&&(Cn++,Lt.set(ht.openingBracket.text,Cn))}const un=ht.childrenLength;for(let Cn=0;Cn200)return!0;let Qt=!0;if(ht.kind===2){let Xt=0;if(wt){let un=wt.get(ht.openingBracket.text);un===void 0&&(un=0),Xt=un,un++,wt.set(ht.openingBracket.text,un)}const $t=(0,w.QB)(R,ht.openingBracket.length);let on=-1;if(Fe.includeMinIndentation&&(on=ht.computeMinIndentation(R,Fe.textModel)),Qt=Fe.push(new p((0,w.Qx)(R,Q),(0,w.Qx)(R,$t),ht.closingBracket?(0,w.Qx)((0,w.QB)($t,((Lt=ht.child)===null||Lt===void 0?void 0:Lt.length)||w.Vp),Q):void 0,Ze,Xt,ht,on)),R=$t,Qt&&ht.child){const un=ht.child;if(Q=(0,w.QB)(R,un.length),(0,w.vr)(R,Re)&&(0,w.o0)(Q,ce)&&(Qt=$(un,R,Q,ce,Re,Fe,Ze+1,wt),!Qt))return!1}wt?.set(ht.openingBracket.text,Xt)}else{let Xt=R;for(const $t of ht.children){const on=Xt;if(Xt=(0,w.QB)(Xt,$t.length),(0,w.vr)(on,Re)&&(0,w.vr)(ce,Xt)&&(Qt=$($t,on,Xt,ce,Re,Fe,Ze,wt),!Qt))return!1}}return Qt}class z extends L.jG{get canBuildAST(){return this.textModel.getValueLength()<=5e6}constructor(R,Q){super(),this.textModel=R,this.languageConfigurationService=Q,this.bracketPairsTree=this._register(new L.HE),this.onDidChangeEmitter=new M.vl,this.onDidChange=this.onDidChangeEmitter.event,this.bracketsRequested=!1,this._register(this.languageConfigurationService.onDidChange(ce=>{var Re;(!ce.languageId||!((Re=this.bracketPairsTree.value)===null||Re===void 0)&&Re.object.didLanguageChange(ce.languageId))&&(this.bracketPairsTree.clear(),this.updateBracketPairsTree())}))}handleDidChangeOptions(R){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeLanguage(R){this.bracketPairsTree.clear(),this.updateBracketPairsTree()}handleDidChangeContent(R){var Q;(Q=this.bracketPairsTree.value)===null||Q===void 0||Q.object.handleContentChanged(R)}handleDidChangeBackgroundTokenizationState(){var R;(R=this.bracketPairsTree.value)===null||R===void 0||R.object.handleDidChangeBackgroundTokenizationState()}handleDidChangeTokens(R){var Q;(Q=this.bracketPairsTree.value)===null||Q===void 0||Q.object.handleDidChangeTokens(R)}updateBracketPairsTree(){if(this.bracketsRequested&&this.canBuildAST){if(!this.bracketPairsTree.value){const R=new L.Cm;this.bracketPairsTree.value=J(R.add(new P(this.textModel,Q=>this.languageConfigurationService.getLanguageConfiguration(Q))),R),R.add(this.bracketPairsTree.value.object.onDidChange(Q=>this.onDidChangeEmitter.fire(Q))),this.onDidChangeEmitter.fire()}}else this.bracketPairsTree.value&&(this.bracketPairsTree.clear(),this.onDidChangeEmitter.fire())}getBracketPairsInRange(R){var Q;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((Q=this.bracketPairsTree.value)===null||Q===void 0?void 0:Q.object.getBracketPairsInRange(R,!1))||r.c1.empty}getBracketPairsInRangeWithMinIndentation(R){var Q;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((Q=this.bracketPairsTree.value)===null||Q===void 0?void 0:Q.object.getBracketPairsInRange(R,!0))||r.c1.empty}getBracketsInRange(R,Q=!1){var ce;return this.bracketsRequested=!0,this.updateBracketPairsTree(),((ce=this.bracketPairsTree.value)===null||ce===void 0?void 0:ce.object.getBracketsInRange(R,Q))||r.c1.empty}findMatchingBracketUp(R,Q,ce){const Re=this.textModel.validatePosition(Q),Fe=this.textModel.getLanguageIdAtPosition(Re.lineNumber,Re.column);if(this.canBuildAST){const Ze=this.languageConfigurationService.getLanguageConfiguration(Fe).bracketsNew.getClosingBracketInfo(R);if(!Ze)return null;const wt=this.getBracketPairsInRange(a.Q.fromPositions(Q,Q)).findLast(Lt=>Ze.closes(Lt.openingBracketInfo));return wt?wt.openingBracketRange:null}else{const Ze=R.toLowerCase(),wt=this.languageConfigurationService.getLanguageConfiguration(Fe).brackets;if(!wt)return null;const Lt=wt.textIsBracket[Ze];return Lt?Y(this._findMatchingBracketUp(Lt,Re,B(ce))):null}}matchBracket(R,Q){if(this.canBuildAST){const ce=this.getBracketPairsInRange(a.Q.fromPositions(R,R)).filter(Re=>Re.closingBracketRange!==void 0&&(Re.openingBracketRange.containsPosition(R)||Re.closingBracketRange.containsPosition(R))).findLastMaxBy((0,r.VE)(Re=>Re.openingBracketRange.containsPosition(R)?Re.openingBracketRange:Re.closingBracketRange,a.Q.compareRangesUsingStarts));return ce?[ce.openingBracketRange,ce.closingBracketRange]:null}else{const ce=B(Q);return this._matchBracket(this.textModel.validatePosition(R),ce)}}_establishBracketSearchOffsets(R,Q,ce,Re){const Fe=Q.getCount(),Ze=Q.getLanguageId(Re);let wt=Math.max(0,R.column-1-ce.maxBracketLength);for(let Qt=Re-1;Qt>=0;Qt--){const Xt=Q.getEndOffset(Qt);if(Xt<=wt)break;if((0,u.Yo)(Q.getStandardTokenType(Qt))||Q.getLanguageId(Qt)!==Ze){wt=Xt;break}}let Lt=Math.min(Q.getLineContent().length,R.column-1+ce.maxBracketLength);for(let Qt=Re+1;Qt=Lt)break;if((0,u.Yo)(Q.getStandardTokenType(Qt))||Q.getLanguageId(Qt)!==Ze){Lt=Xt;break}}return{searchStartOffset:wt,searchEndOffset:Lt}}_matchBracket(R,Q){const ce=R.lineNumber,Re=this.textModel.tokenization.getLineTokens(ce),Fe=this.textModel.getLineContent(ce),Ze=Re.findTokenIndexAtOffset(R.column-1);if(Ze<0)return null;const wt=this.languageConfigurationService.getLanguageConfiguration(Re.getLanguageId(Ze)).brackets;if(wt&&!(0,u.Yo)(Re.getStandardTokenType(Ze))){let{searchStartOffset:Lt,searchEndOffset:Qt}=this._establishBracketSearchOffsets(R,Re,wt,Ze),Xt=null;for(;;){const $t=C.Fu.findNextBracketInRange(wt.forwardRegex,ce,Fe,Lt,Qt);if(!$t)break;if($t.startColumn<=R.column&&R.column<=$t.endColumn){const on=Fe.substring($t.startColumn-1,$t.endColumn-1).toLowerCase(),un=this._matchFoundBracket($t,wt.textIsBracket[on],wt.textIsOpenBracket[on],Q);if(un){if(un instanceof V)return null;Xt=un}}Lt=$t.endColumn-1}if(Xt)return Xt}if(Ze>0&&Re.getStartOffset(Ze)===R.column-1){const Lt=Ze-1,Qt=this.languageConfigurationService.getLanguageConfiguration(Re.getLanguageId(Lt)).brackets;if(Qt&&!(0,u.Yo)(Re.getStandardTokenType(Lt))){const{searchStartOffset:Xt,searchEndOffset:$t}=this._establishBracketSearchOffsets(R,Re,Qt,Lt),on=C.Fu.findPrevBracketInRange(Qt.reversedRegex,ce,Fe,Xt,$t);if(on&&on.startColumn<=R.column&&R.column<=on.endColumn){const un=Fe.substring(on.startColumn-1,on.endColumn-1).toLowerCase(),Cn=this._matchFoundBracket(on,Qt.textIsBracket[un],Qt.textIsOpenBracket[un],Q);if(Cn)return Cn instanceof V?null:Cn}}}return null}_matchFoundBracket(R,Q,ce,Re){if(!Q)return null;const Fe=ce?this._findMatchingBracketDown(Q,R.getEndPosition(),Re):this._findMatchingBracketUp(Q,R.getStartPosition(),Re);return Fe?Fe instanceof V?Fe:[R,Fe]:null}_findMatchingBracketUp(R,Q,ce){const Re=R.languageId,Fe=R.reversedRegex;let Ze=-1,wt=0;const Lt=(Qt,Xt,$t,on)=>{for(;;){if(ce&&++wt%100===0&&!ce())return V.INSTANCE;const un=C.Fu.findPrevBracketInRange(Fe,Qt,Xt,$t,on);if(!un)break;const Cn=Xt.substring(un.startColumn-1,un.endColumn-1).toLowerCase();if(R.isOpen(Cn)?Ze++:R.isClose(Cn)&&Ze--,Ze===0)return un;on=un.startColumn-1}return null};for(let Qt=Q.lineNumber;Qt>=1;Qt--){const Xt=this.textModel.tokenization.getLineTokens(Qt),$t=Xt.getCount(),on=this.textModel.getLineContent(Qt);let un=$t-1,Cn=on.length,kn=on.length;Qt===Q.lineNumber&&(un=Xt.findTokenIndexAtOffset(Q.column-1),Cn=Q.column-1,kn=Q.column-1);let Pn=!0;for(;un>=0;un--){const zn=Xt.getLanguageId(un)===Re&&!(0,u.Yo)(Xt.getStandardTokenType(un));if(zn)Pn?Cn=Xt.getStartOffset(un):(Cn=Xt.getStartOffset(un),kn=Xt.getEndOffset(un));else if(Pn&&Cn!==kn){const ni=Lt(Qt,on,Cn,kn);if(ni)return ni}Pn=zn}if(Pn&&Cn!==kn){const zn=Lt(Qt,on,Cn,kn);if(zn)return zn}}return null}_findMatchingBracketDown(R,Q,ce){const Re=R.languageId,Fe=R.forwardRegex;let Ze=1,wt=0;const Lt=(Xt,$t,on,un)=>{for(;;){if(ce&&++wt%100===0&&!ce())return V.INSTANCE;const Cn=C.Fu.findNextBracketInRange(Fe,Xt,$t,on,un);if(!Cn)break;const kn=$t.substring(Cn.startColumn-1,Cn.endColumn-1).toLowerCase();if(R.isOpen(kn)?Ze++:R.isClose(kn)&&Ze--,Ze===0)return Cn;on=Cn.endColumn-1}return null},Qt=this.textModel.getLineCount();for(let Xt=Q.lineNumber;Xt<=Qt;Xt++){const $t=this.textModel.tokenization.getLineTokens(Xt),on=$t.getCount(),un=this.textModel.getLineContent(Xt);let Cn=0,kn=0,Pn=0;Xt===Q.lineNumber&&(Cn=$t.findTokenIndexAtOffset(Q.column-1),kn=Q.column-1,Pn=Q.column-1);let zn=!0;for(;Cn=1;wt--){const Lt=this.textModel.tokenization.getLineTokens(wt),Qt=Lt.getCount(),Xt=this.textModel.getLineContent(wt);let $t=Qt-1,on=Xt.length,un=Xt.length;if(wt===ce.lineNumber){$t=Lt.findTokenIndexAtOffset(ce.column-1),on=ce.column-1,un=ce.column-1;const kn=Lt.getLanguageId($t);Re!==kn&&(Re=kn,Fe=this.languageConfigurationService.getLanguageConfiguration(Re).brackets,Ze=this.languageConfigurationService.getLanguageConfiguration(Re).bracketsNew)}let Cn=!0;for(;$t>=0;$t--){const kn=Lt.getLanguageId($t);if(Re!==kn){if(Fe&&Ze&&Cn&&on!==un){const zn=C.Fu.findPrevBracketInRange(Fe.reversedRegex,wt,Xt,on,un);if(zn)return this._toFoundBracket(Ze,zn);Cn=!1}Re=kn,Fe=this.languageConfigurationService.getLanguageConfiguration(Re).brackets,Ze=this.languageConfigurationService.getLanguageConfiguration(Re).bracketsNew}const Pn=!!Fe&&!(0,u.Yo)(Lt.getStandardTokenType($t));if(Pn)Cn?on=Lt.getStartOffset($t):(on=Lt.getStartOffset($t),un=Lt.getEndOffset($t));else if(Ze&&Fe&&Cn&&on!==un){const zn=C.Fu.findPrevBracketInRange(Fe.reversedRegex,wt,Xt,on,un);if(zn)return this._toFoundBracket(Ze,zn)}Cn=Pn}if(Ze&&Fe&&Cn&&on!==un){const kn=C.Fu.findPrevBracketInRange(Fe.reversedRegex,wt,Xt,on,un);if(kn)return this._toFoundBracket(Ze,kn)}}return null}findNextBracket(R){var Q;const ce=this.textModel.validatePosition(R);if(this.canBuildAST)return this.bracketsRequested=!0,this.updateBracketPairsTree(),((Q=this.bracketPairsTree.value)===null||Q===void 0?void 0:Q.object.getFirstBracketAfter(ce))||null;const Re=this.textModel.getLineCount();let Fe=null,Ze=null,wt=null;for(let Lt=ce.lineNumber;Lt<=Re;Lt++){const Qt=this.textModel.tokenization.getLineTokens(Lt),Xt=Qt.getCount(),$t=this.textModel.getLineContent(Lt);let on=0,un=0,Cn=0;if(Lt===ce.lineNumber){on=Qt.findTokenIndexAtOffset(ce.column-1),un=ce.column-1,Cn=ce.column-1;const Pn=Qt.getLanguageId(on);Fe!==Pn&&(Fe=Pn,Ze=this.languageConfigurationService.getLanguageConfiguration(Fe).brackets,wt=this.languageConfigurationService.getLanguageConfiguration(Fe).bracketsNew)}let kn=!0;for(;onkn.closingBracketRange!==void 0&&kn.range.strictContainsRange(un));return Cn?[Cn.openingBracketRange,Cn.closingBracketRange]:null}const Re=B(Q),Fe=this.textModel.getLineCount(),Ze=new Map;let wt=[];const Lt=(un,Cn)=>{if(!Ze.has(un)){const kn=[];for(let Pn=0,zn=Cn?Cn.brackets.length:0;Pn{for(;;){if(Re&&++Qt%100===0&&!Re())return V.INSTANCE;const ni=C.Fu.findNextBracketInRange(un.forwardRegex,Cn,kn,Pn,zn);if(!ni)break;const hi=kn.substring(ni.startColumn-1,ni.endColumn-1).toLowerCase(),ji=un.textIsBracket[hi];if(ji&&(ji.isOpen(hi)?wt[ji.index]++:ji.isClose(hi)&&wt[ji.index]--,wt[ji.index]===-1))return this._matchFoundBracket(ni,ji,!1,Re);Pn=ni.endColumn-1}return null};let $t=null,on=null;for(let un=ce.lineNumber;un<=Fe;un++){const Cn=this.textModel.tokenization.getLineTokens(un),kn=Cn.getCount(),Pn=this.textModel.getLineContent(un);let zn=0,ni=0,hi=0;if(un===ce.lineNumber){zn=Cn.findTokenIndexAtOffset(ce.column-1),ni=ce.column-1,hi=ce.column-1;const Yi=Cn.getLanguageId(zn);$t!==Yi&&($t=Yi,on=this.languageConfigurationService.getLanguageConfiguration($t).brackets,Lt($t,on))}let ji=!0;for(;znR?.dispose()}}function B(ht){if(typeof ht>"u")return()=>!0;{const R=Date.now();return()=>Date.now()-R<=ht}}class V{constructor(){this._searchCanceledBrand=void 0}}V.INSTANCE=new V;function Y(ht){return ht instanceof V?null:ht}var X=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editorColorRegistry.js"),ie=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js");class re extends L.jG{constructor(R){super(),this.textModel=R,this.colorProvider=new te,this.onDidChangeEmitter=new M.vl,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=R.getOptions().bracketPairColorizationOptions,this._register(R.bracketPairs.onDidChange(Q=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(R){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(R,Q,ce,Re){return Re?[]:Q===void 0?[]:this.colorizationOptions.enabled?this.textModel.bracketPairs.getBracketsInRange(R,!0).map(Ze=>({id:`bracket${Ze.range.toString()}-${Ze.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(Ze,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:Ze.range})).toArray():[]}getAllDecorations(R,Q){return R===void 0?[]:this.colorizationOptions.enabled?this.getDecorationsInRange(new a.Q(1,1,this.textModel.getLineCount(),1),R,Q):[]}}class te{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(R,Q){return R.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(Q?R.nestingLevelOfEqualBracketType:R.nestingLevel)}getInlineClassNameOfLevel(R){return`bracket-highlighting-${R%30}`}}(0,ie.zy)((ht,R)=>{const Q=[X.sN,X.lQ,X.ss,X.l5,X.sH,X.zp],ce=new te;R.addRule(`.monaco-editor .${ce.unexpectedClosingBracketClassName} { color: ${ht.getColor(X.s7)}; }`);const Re=Q.map(Fe=>ht.getColor(Fe)).filter(Fe=>!!Fe).filter(Fe=>!Fe.isTransparent());for(let Fe=0;Fe<30;Fe++){const Ze=Re[Fe%Re.length];R.addRule(`.monaco-editor .${ce.getInlineClassNameOfLevel(Fe)} { color: ${Ze}; }`)}});var D=e("./node_modules/monaco-editor/esm/vs/editor/common/model/editStack.js"),he=e("./node_modules/monaco-editor/esm/vs/editor/common/model/guidesTextModelPart.js");class ve{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}}function Ce(ht,R,Q,ce,Re){Re.spacesDiff=0,Re.looksLikeAlignment=!1;let Fe;for(Fe=0;Fe0&&wt>0||Lt>0&&Qt>0)return;const Xt=Math.abs(wt-Qt),$t=Math.abs(Ze-Lt);if(Xt===0){Re.spacesDiff=$t,$t>0&&0<=Lt-1&&Lt-10?Re++:ji>1&&Fe++,Ce(Ze,wt,Pn,hi,$t),$t.looksLikeAlignment&&!(Q&&R===$t.spacesDiff)))continue;const Ei=$t.spacesDiff;Ei<=Qt&&Xt[Ei]++,Ze=Pn,wt=hi}let on=Q;Re!==Fe&&(on=Re{const Pn=Xt[kn];Pn>Cn&&(Cn=Pn,un=kn)}),un===4&&Xt[4]>0&&Xt[2]>0&&Xt[2]>=Xt[4]/2&&(un=2)}return{insertSpaces:on,tabSize:un}}function _e(ht){return(ht.metadata&1)>>>0}function ee(ht,R){ht.metadata=ht.metadata&254|R<<0}function De(ht){return(ht.metadata&2)>>>1===1}function Te(ht,R){ht.metadata=ht.metadata&253|(R?1:0)<<1}function He(ht){return(ht.metadata&4)>>>2===1}function qe(ht,R){ht.metadata=ht.metadata&251|(R?1:0)<<2}function Qe(ht){return(ht.metadata&64)>>>6===1}function q(ht,R){ht.metadata=ht.metadata&191|(R?1:0)<<6}function ye(ht){return(ht.metadata&24)>>>3}function ge(ht,R){ht.metadata=ht.metadata&231|R<<3}function be(ht){return(ht.metadata&32)>>>5===1}function Se(ht,R){ht.metadata=ht.metadata&223|(R?1:0)<<5}class ae{constructor(R,Q,ce){this.metadata=0,this.parent=this,this.left=this,this.right=this,ee(this,1),this.start=Q,this.end=ce,this.delta=0,this.maxEnd=ce,this.id=R,this.ownerId=0,this.options=null,qe(this,!1),q(this,!1),ge(this,1),Se(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=Q,this.cachedAbsoluteEnd=ce,this.range=null,Te(this,!1)}reset(R,Q,ce,Re){this.start=Q,this.end=ce,this.maxEnd=ce,this.cachedVersionId=R,this.cachedAbsoluteStart=Q,this.cachedAbsoluteEnd=ce,this.range=Re}setOptions(R){this.options=R;const Q=this.options.className;qe(this,Q==="squiggly-error"||Q==="squiggly-warning"||Q==="squiggly-info"),q(this,this.options.glyphMarginClassName!==null),ge(this,this.options.stickiness),Se(this,this.options.collapseOnReplaceEdit)}setCachedOffsets(R,Q,ce){this.cachedVersionId!==ce&&(this.range=null),this.cachedVersionId=ce,this.cachedAbsoluteStart=R,this.cachedAbsoluteEnd=Q}detach(){this.parent=null,this.left=null,this.right=null}}const me=new ae(null,0,0);me.parent=me,me.left=me,me.right=me,ee(me,0);class fe{constructor(){this.root=me,this.requestNormalizeDelta=!1}intervalSearch(R,Q,ce,Re,Fe,Ze){return this.root===me?[]:lt(this,R,Q,ce,Re,Fe,Ze)}search(R,Q,ce,Re){return this.root===me?[]:Ue(this,R,Q,ce,Re)}collectNodesFromOwner(R){return We(this,R)}collectNodesPostOrder(){return we(this)}insert(R){Et(this,R),this._normalizeDeltaIfNecessary()}delete(R){Zt(this,R),this._normalizeDeltaIfNecessary()}resolveNode(R,Q){const ce=R;let Re=0;for(;R!==this.root;)R===R.parent.right&&(Re+=R.parent.delta),R=R.parent;const Fe=ce.start+Re,Ze=ce.end+Re;ce.setCachedOffsets(Fe,Ze,Q)}acceptReplace(R,Q,ce,Re){const Fe=de(this,R,R+Q);for(let Ze=0,wt=Fe.length;ZeQ||ce===1?!1:ce===2?!0:R}function ne(ht,R,Q,ce,Re){const Fe=ye(ht),Ze=Fe===0||Fe===2,wt=Fe===1||Fe===2,Lt=Q-R,Qt=ce,Xt=Math.min(Lt,Qt),$t=ht.start;let on=!1;const un=ht.end;let Cn=!1;R<=$t&&un<=Q&&be(ht)&&(ht.start=R,on=!0,ht.end=R,Cn=!0);{const Pn=Re?1:Lt>0?2:0;!on&&oe($t,Ze,R,Pn)&&(on=!0),!Cn&&oe(un,wt,R,Pn)&&(Cn=!0)}if(Xt>0&&!Re){const Pn=Lt>Qt?2:0;!on&&oe($t,Ze,R+Xt,Pn)&&(on=!0),!Cn&&oe(un,wt,R+Xt,Pn)&&(Cn=!0)}{const Pn=Re?1:0;!on&&oe($t,Ze,Q,Pn)&&(ht.start=R+Qt,on=!0),!Cn&&oe(un,wt,Q,Pn)&&(ht.end=R+Qt,Cn=!0)}const kn=Qt-Lt;on||(ht.start=Math.max(0,$t+kn)),Cn||(ht.end=Math.max(0,un+kn)),ht.start>ht.end&&(ht.end=ht.start)}function de(ht,R,Q){let ce=ht.root,Re=0,Fe=0,Ze=0,wt=0;const Lt=[];let Qt=0;for(;ce!==me;){if(De(ce)){Te(ce.left,!1),Te(ce.right,!1),ce===ce.parent.right&&(Re-=ce.parent.delta),ce=ce.parent;continue}if(!De(ce.left)){if(Fe=Re+ce.maxEnd,FeQ){Te(ce,!0);continue}if(wt=Re+ce.end,wt>=R&&(ce.setCachedOffsets(Ze,wt,0),Lt[Qt++]=ce),Te(ce,!0),ce.right!==me&&!De(ce.right)){Re+=ce.delta,ce=ce.right;continue}}return Te(ht.root,!1),Lt}function Le(ht,R,Q,ce){let Re=ht.root,Fe=0,Ze=0,wt=0;const Lt=ce-(Q-R);for(;Re!==me;){if(De(Re)){Te(Re.left,!1),Te(Re.right,!1),Re===Re.parent.right&&(Fe-=Re.parent.delta),Jt(Re),Re=Re.parent;continue}if(!De(Re.left)){if(Ze=Fe+Re.maxEnd,ZeQ){Re.start+=Lt,Re.end+=Lt,Re.delta+=Lt,(Re.delta<-1073741824||Re.delta>1073741824)&&(ht.requestNormalizeDelta=!0),Te(Re,!0);continue}if(Te(Re,!0),Re.right!==me&&!De(Re.right)){Fe+=Re.delta,Re=Re.right;continue}}Te(ht.root,!1)}function We(ht,R){let Q=ht.root;const ce=[];let Re=0;for(;Q!==me;){if(De(Q)){Te(Q.left,!1),Te(Q.right,!1),Q=Q.parent;continue}if(Q.left!==me&&!De(Q.left)){Q=Q.left;continue}if(Q.ownerId===R&&(ce[Re++]=Q),Te(Q,!0),Q.right!==me&&!De(Q.right)){Q=Q.right;continue}}return Te(ht.root,!1),ce}function we(ht){let R=ht.root;const Q=[];let ce=0;for(;R!==me;){if(De(R)){Te(R.left,!1),Te(R.right,!1),R=R.parent;continue}if(R.left!==me&&!De(R.left)){R=R.left;continue}if(R.right!==me&&!De(R.right)){R=R.right;continue}Q[ce++]=R,Te(R,!0)}return Te(ht.root,!1),Q}function Ue(ht,R,Q,ce,Re){let Fe=ht.root,Ze=0,wt=0,Lt=0;const Qt=[];let Xt=0;for(;Fe!==me;){if(De(Fe)){Te(Fe.left,!1),Te(Fe.right,!1),Fe===Fe.parent.right&&(Ze-=Fe.parent.delta),Fe=Fe.parent;continue}if(Fe.left!==me&&!De(Fe.left)){Fe=Fe.left;continue}wt=Ze+Fe.start,Lt=Ze+Fe.end,Fe.setCachedOffsets(wt,Lt,ce);let $t=!0;if(R&&Fe.ownerId&&Fe.ownerId!==R&&($t=!1),Q&&He(Fe)&&($t=!1),Re&&!Qe(Fe)&&($t=!1),$t&&(Qt[Xt++]=Fe),Te(Fe,!0),Fe.right!==me&&!De(Fe.right)){Ze+=Fe.delta,Fe=Fe.right;continue}}return Te(ht.root,!1),Qt}function lt(ht,R,Q,ce,Re,Fe,Ze){let wt=ht.root,Lt=0,Qt=0,Xt=0,$t=0;const on=[];let un=0;for(;wt!==me;){if(De(wt)){Te(wt.left,!1),Te(wt.right,!1),wt===wt.parent.right&&(Lt-=wt.parent.delta),wt=wt.parent;continue}if(!De(wt.left)){if(Qt=Lt+wt.maxEnd,QtQ){Te(wt,!0);continue}if($t=Lt+wt.end,$t>=R){wt.setCachedOffsets(Xt,$t,Fe);let Cn=!0;ce&&wt.ownerId&&wt.ownerId!==ce&&(Cn=!1),Re&&He(wt)&&(Cn=!1),Ze&&!Qe(wt)&&(Cn=!1),Cn&&(on[un++]=wt)}if(Te(wt,!0),wt.right!==me&&!De(wt.right)){Lt+=wt.delta,wt=wt.right;continue}}return Te(ht.root,!1),on}function Et(ht,R){if(ht.root===me)return R.parent=me,R.left=me,R.right=me,ee(R,0),ht.root=R,ht.root;Kt(ht,R),Nt(R.parent);let Q=R;for(;Q!==ht.root&&_e(Q.parent)===1;)if(Q.parent===Q.parent.parent.left){const ce=Q.parent.parent.right;_e(ce)===1?(ee(Q.parent,0),ee(ce,0),ee(Q.parent.parent,1),Q=Q.parent.parent):(Q===Q.parent.right&&(Q=Q.parent,Mt(ht,Q)),ee(Q.parent,0),ee(Q.parent.parent,1),Ht(ht,Q.parent.parent))}else{const ce=Q.parent.parent.left;_e(ce)===1?(ee(Q.parent,0),ee(ce,0),ee(Q.parent.parent,1),Q=Q.parent.parent):(Q===Q.parent.left&&(Q=Q.parent,Ht(ht,Q)),ee(Q.parent,0),ee(Q.parent.parent,1),Mt(ht,Q.parent.parent))}return ee(ht.root,0),R}function Kt(ht,R){let Q=0,ce=ht.root;const Re=R.start,Fe=R.end;for(;;)if(Be(Re,Fe,ce.start+Q,ce.end+Q)<0)if(ce.left===me){R.start-=Q,R.end-=Q,R.maxEnd-=Q,ce.left=R;break}else ce=ce.left;else if(ce.right===me){R.start-=Q+ce.delta,R.end-=Q+ce.delta,R.maxEnd-=Q+ce.delta,ce.right=R;break}else Q+=ce.delta,ce=ce.right;R.parent=ce,R.left=me,R.right=me,ee(R,1)}function Zt(ht,R){let Q,ce;if(R.left===me?(Q=R.right,ce=R,Q.delta+=R.delta,(Q.delta<-1073741824||Q.delta>1073741824)&&(ht.requestNormalizeDelta=!0),Q.start+=R.delta,Q.end+=R.delta):R.right===me?(Q=R.left,ce=R):(ce=qt(R.right),Q=ce.right,Q.start+=ce.delta,Q.end+=ce.delta,Q.delta+=ce.delta,(Q.delta<-1073741824||Q.delta>1073741824)&&(ht.requestNormalizeDelta=!0),ce.start+=R.delta,ce.end+=R.delta,ce.delta=R.delta,(ce.delta<-1073741824||ce.delta>1073741824)&&(ht.requestNormalizeDelta=!0)),ce===ht.root){ht.root=Q,ee(Q,0),R.detach(),tt(),Jt(Q),ht.root.parent=me;return}const Re=_e(ce)===1;if(ce===ce.parent.left?ce.parent.left=Q:ce.parent.right=Q,ce===R?Q.parent=ce.parent:(ce.parent===R?Q.parent=ce:Q.parent=ce.parent,ce.left=R.left,ce.right=R.right,ce.parent=R.parent,ee(ce,_e(R)),R===ht.root?ht.root=ce:R===R.parent.left?R.parent.left=ce:R.parent.right=ce,ce.left!==me&&(ce.left.parent=ce),ce.right!==me&&(ce.right.parent=ce)),R.detach(),Re){Nt(Q.parent),ce!==R&&(Nt(ce),Nt(ce.parent)),tt();return}Nt(Q),Nt(Q.parent),ce!==R&&(Nt(ce),Nt(ce.parent));let Fe;for(;Q!==ht.root&&_e(Q)===0;)Q===Q.parent.left?(Fe=Q.parent.right,_e(Fe)===1&&(ee(Fe,0),ee(Q.parent,1),Mt(ht,Q.parent),Fe=Q.parent.right),_e(Fe.left)===0&&_e(Fe.right)===0?(ee(Fe,1),Q=Q.parent):(_e(Fe.right)===0&&(ee(Fe.left,0),ee(Fe,1),Ht(ht,Fe),Fe=Q.parent.right),ee(Fe,_e(Q.parent)),ee(Q.parent,0),ee(Fe.right,0),Mt(ht,Q.parent),Q=ht.root)):(Fe=Q.parent.left,_e(Fe)===1&&(ee(Fe,0),ee(Q.parent,1),Ht(ht,Q.parent),Fe=Q.parent.left),_e(Fe.left)===0&&_e(Fe.right)===0?(ee(Fe,1),Q=Q.parent):(_e(Fe.left)===0&&(ee(Fe.right,0),ee(Fe,1),Mt(ht,Fe),Fe=Q.parent.left),ee(Fe,_e(Q.parent)),ee(Q.parent,0),ee(Fe.left,0),Ht(ht,Q.parent),Q=ht.root));ee(Q,0),tt()}function qt(ht){for(;ht.left!==me;)ht=ht.left;return ht}function tt(){me.parent=me,me.delta=0,me.start=0,me.end=0}function Mt(ht,R){const Q=R.right;Q.delta+=R.delta,(Q.delta<-1073741824||Q.delta>1073741824)&&(ht.requestNormalizeDelta=!0),Q.start+=R.delta,Q.end+=R.delta,R.right=Q.left,Q.left!==me&&(Q.left.parent=R),Q.parent=R.parent,R.parent===me?ht.root=Q:R===R.parent.left?R.parent.left=Q:R.parent.right=Q,Q.left=R,R.parent=Q,Jt(R),Jt(Q)}function Ht(ht,R){const Q=R.left;R.delta-=Q.delta,(R.delta<-1073741824||R.delta>1073741824)&&(ht.requestNormalizeDelta=!0),R.start-=Q.delta,R.end-=Q.delta,R.left=Q.right,Q.right!==me&&(Q.right.parent=R),Q.parent=R.parent,R.parent===me?ht.root=Q:R===R.parent.right?R.parent.right=Q:R.parent.left=Q,Q.right=R,R.parent=Q,Jt(R),Jt(Q)}function xt(ht){let R=ht.end;if(ht.left!==me){const Q=ht.left.maxEnd;Q>R&&(R=Q)}if(ht.right!==me){const Q=ht.right.maxEnd+ht.delta;Q>R&&(R=Q)}return R}function Jt(ht){ht.maxEnd=xt(ht)}function Nt(ht){for(;ht!==me;){const R=xt(ht);if(ht.maxEnd===R)return;ht.maxEnd=R,ht=ht.parent}}function Be(ht,R,Q,ce){return ht===Q?R-ce:ht-Q}class vt{constructor(R,Q){this.piece=R,this.color=Q,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}next(){if(this.right!==Gt)return _n(this.right);let R=this;for(;R.parent!==Gt&&R.parent.left!==R;)R=R.parent;return R.parent===Gt?Gt:R.parent}prev(){if(this.left!==Gt)return Fn(this.left);let R=this;for(;R.parent!==Gt&&R.parent.right!==R;)R=R.parent;return R.parent===Gt?Gt:R.parent}detach(){this.parent=null,this.left=null,this.right=null}}const Gt=new vt(null,0);Gt.parent=Gt,Gt.left=Gt,Gt.right=Gt,Gt.color=0;function _n(ht){for(;ht.left!==Gt;)ht=ht.left;return ht}function Fn(ht){for(;ht.right!==Gt;)ht=ht.right;return ht}function An(ht){return ht===Gt?0:ht.size_left+ht.piece.length+An(ht.right)}function Hn(ht){return ht===Gt?0:ht.lf_left+ht.piece.lineFeedCnt+Hn(ht.right)}function Kn(){Gt.parent=Gt}function mi(ht,R){const Q=R.right;Q.size_left+=R.size_left+(R.piece?R.piece.length:0),Q.lf_left+=R.lf_left+(R.piece?R.piece.lineFeedCnt:0),R.right=Q.left,Q.left!==Gt&&(Q.left.parent=R),Q.parent=R.parent,R.parent===Gt?ht.root=Q:R.parent.left===R?R.parent.left=Q:R.parent.right=Q,Q.left=R,R.parent=Q}function yi(ht,R){const Q=R.left;R.left=Q.right,Q.right!==Gt&&(Q.right.parent=R),Q.parent=R.parent,R.size_left-=Q.size_left+(Q.piece?Q.piece.length:0),R.lf_left-=Q.lf_left+(Q.piece?Q.piece.lineFeedCnt:0),R.parent===Gt?ht.root=Q:R===R.parent.right?R.parent.right=Q:R.parent.left=Q,Q.right=R,R.parent=Q}function ri(ht,R){let Q,ce;if(R.left===Gt?(ce=R,Q=ce.right):R.right===Gt?(ce=R,Q=ce.left):(ce=_n(R.right),Q=ce.right),ce===ht.root){ht.root=Q,Q.color=0,R.detach(),Kn(),ht.root.parent=Gt;return}const Re=ce.color===1;if(ce===ce.parent.left?ce.parent.left=Q:ce.parent.right=Q,ce===R?(Q.parent=ce.parent,xi(ht,Q)):(ce.parent===R?Q.parent=ce:Q.parent=ce.parent,xi(ht,Q),ce.left=R.left,ce.right=R.right,ce.parent=R.parent,ce.color=R.color,R===ht.root?ht.root=ce:R===R.parent.left?R.parent.left=ce:R.parent.right=ce,ce.left!==Gt&&(ce.left.parent=ce),ce.right!==Gt&&(ce.right.parent=ce),ce.size_left=R.size_left,ce.lf_left=R.lf_left,xi(ht,ce)),R.detach(),Q.parent.left===Q){const Ze=An(Q),wt=Hn(Q);if(Ze!==Q.parent.size_left||wt!==Q.parent.lf_left){const Lt=Ze-Q.parent.size_left,Qt=wt-Q.parent.lf_left;Q.parent.size_left=Ze,Q.parent.lf_left=wt,Mi(ht,Q.parent,Lt,Qt)}}if(xi(ht,Q.parent),Re){Kn();return}let Fe;for(;Q!==ht.root&&Q.color===0;)Q===Q.parent.left?(Fe=Q.parent.right,Fe.color===1&&(Fe.color=0,Q.parent.color=1,mi(ht,Q.parent),Fe=Q.parent.right),Fe.left.color===0&&Fe.right.color===0?(Fe.color=1,Q=Q.parent):(Fe.right.color===0&&(Fe.left.color=0,Fe.color=1,yi(ht,Fe),Fe=Q.parent.right),Fe.color=Q.parent.color,Q.parent.color=0,Fe.right.color=0,mi(ht,Q.parent),Q=ht.root)):(Fe=Q.parent.left,Fe.color===1&&(Fe.color=0,Q.parent.color=1,yi(ht,Q.parent),Fe=Q.parent.left),Fe.left.color===0&&Fe.right.color===0?(Fe.color=1,Q=Q.parent):(Fe.left.color===0&&(Fe.right.color=0,Fe.color=1,mi(ht,Fe),Fe=Q.parent.left),Fe.color=Q.parent.color,Q.parent.color=0,Fe.left.color=0,yi(ht,Q.parent),Q=ht.root));Q.color=0,Kn()}function fi(ht,R){for(xi(ht,R);R!==ht.root&&R.parent.color===1;)if(R.parent===R.parent.parent.left){const Q=R.parent.parent.right;Q.color===1?(R.parent.color=0,Q.color=0,R.parent.parent.color=1,R=R.parent.parent):(R===R.parent.right&&(R=R.parent,mi(ht,R)),R.parent.color=0,R.parent.parent.color=1,yi(ht,R.parent.parent))}else{const Q=R.parent.parent.left;Q.color===1?(R.parent.color=0,Q.color=0,R.parent.parent.color=1,R=R.parent.parent):(R===R.parent.left&&(R=R.parent,yi(ht,R)),R.parent.color=0,R.parent.parent.color=1,mi(ht,R.parent.parent))}ht.root.color=0}function Mi(ht,R,Q,ce){for(;R!==ht.root&&R!==Gt;)R.parent.left===R&&(R.parent.size_left+=Q,R.parent.lf_left+=ce),R=R.parent}function xi(ht,R){let Q=0,ce=0;if(R!==ht.root){for(;R!==ht.root&&R===R.parent.right;)R=R.parent;if(R!==ht.root)for(R=R.parent,Q=An(R.left)-R.size_left,ce=Hn(R.left)-R.lf_left,R.size_left+=Q,R.lf_left+=ce;R!==ht.root&&(Q!==0||ce!==0);)R.parent.left===R&&(R.parent.size_left+=Q,R.parent.lf_left+=ce),R=R.parent}}var ci=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js");const Ii=65535;function Si(ht){let R;return ht[ht.length-1]<65536?R=new Uint16Array(ht.length):R=new Uint32Array(ht.length),R.set(ht,0),R}class Ti{constructor(R,Q,ce,Re,Fe){this.lineStarts=R,this.cr=Q,this.lf=ce,this.crlf=Re,this.isBasicASCII=Fe}}function Nn(ht,R=!0){const Q=[0];let ce=1;for(let Re=0,Fe=ht.length;Re126)&&(Ze=!1)}const wt=new Ti(Si(ht),ce,Re,Fe,Ze);return ht.length=0,wt}class Yn{constructor(R,Q,ce,Re,Fe){this.bufferIndex=R,this.start=Q,this.end=ce,this.lineFeedCnt=Re,this.length=Fe}}class Di{constructor(R,Q){this.buffer=R,this.lineStarts=Q}}class Ai{constructor(R,Q){this._pieces=[],this._tree=R,this._BOM=Q,this._index=0,R.root!==Gt&&R.iterate(R.root,ce=>(ce!==Gt&&this._pieces.push(ce.piece),!0))}read(){return this._pieces.length===0?this._index===0?(this._index++,this._BOM):null:this._index>this._pieces.length-1?null:this._index===0?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])}}class Sn{constructor(R){this._limit=R,this._cache=[]}get(R){for(let Q=this._cache.length-1;Q>=0;Q--){const ce=this._cache[Q];if(ce.nodeStartOffset<=R&&ce.nodeStartOffset+ce.node.piece.length>=R)return ce}return null}get2(R){for(let Q=this._cache.length-1;Q>=0;Q--){const ce=this._cache[Q];if(ce.nodeStartLineNumber&&ce.nodeStartLineNumber=R)return ce}return null}set(R){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(R)}validate(R){let Q=!1;const ce=this._cache;for(let Re=0;Re=R){ce[Re]=null,Q=!0;continue}}if(Q){const Re=[];for(const Fe of ce)Fe!==null&&Re.push(Fe);this._cache=Re}}}class Ye{constructor(R,Q,ce){this.create(R,Q,ce)}create(R,Q,ce){this._buffers=[new Di("",[0])],this._lastChangeBufferPos={line:0,column:0},this.root=Gt,this._lineCnt=1,this._length=0,this._EOL=Q,this._EOLLength=Q.length,this._EOLNormalized=ce;let Re=null;for(let Fe=0,Ze=R.length;Fe0){R[Fe].lineStarts||(R[Fe].lineStarts=Nn(R[Fe].buffer));const wt=new Yn(Fe+1,{line:0,column:0},{line:R[Fe].lineStarts.length-1,column:R[Fe].buffer.length-R[Fe].lineStarts[R[Fe].lineStarts.length-1]},R[Fe].lineStarts.length-1,R[Fe].buffer.length);this._buffers.push(R[Fe]),Re=this.rbInsertRight(Re,wt)}this._searchCache=new Sn(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()}normalizeEOL(R){const Q=Ii,ce=Q-Math.floor(Q/3),Re=ce*2;let Fe="",Ze=0;const wt=[];if(this.iterate(this.root,Lt=>{const Qt=this.getNodeContent(Lt),Xt=Qt.length;if(Ze<=ce||Ze+Xt0){const Lt=Fe.replace(/\r\n|\r|\n/g,R);wt.push(new Di(Lt,Nn(Lt)))}this.create(wt,R,!0)}getEOL(){return this._EOL}setEOL(R){this._EOL=R,this._EOLLength=this._EOL.length,this.normalizeEOL(R)}createSnapshot(R){return new Ai(this,R)}getOffsetAt(R,Q){let ce=0,Re=this.root;for(;Re!==Gt;)if(Re.left!==Gt&&Re.lf_left+1>=R)Re=Re.left;else if(Re.lf_left+Re.piece.lineFeedCnt+1>=R){ce+=Re.size_left;const Fe=this.getAccumulatedValue(Re,R-Re.lf_left-2);return ce+=Fe+Q-1}else R-=Re.lf_left+Re.piece.lineFeedCnt,ce+=Re.size_left+Re.piece.length,Re=Re.right;return ce}getPositionAt(R){R=Math.floor(R),R=Math.max(0,R);let Q=this.root,ce=0;const Re=R;for(;Q!==Gt;)if(Q.size_left!==0&&Q.size_left>=R)Q=Q.left;else if(Q.size_left+Q.piece.length>=R){const Fe=this.getIndexOf(Q,R-Q.size_left);if(ce+=Q.lf_left+Fe.index,Fe.index===0){const Ze=this.getOffsetAt(ce+1,1),wt=Re-Ze;return new d.y(ce+1,wt+1)}return new d.y(ce+1,Fe.remainder+1)}else if(R-=Q.size_left+Q.piece.length,ce+=Q.lf_left+Q.piece.lineFeedCnt,Q.right===Gt){const Fe=this.getOffsetAt(ce+1,1),Ze=Re-R-Fe;return new d.y(ce+1,Ze+1)}else Q=Q.right;return new d.y(1,1)}getValueInRange(R,Q){if(R.startLineNumber===R.endLineNumber&&R.startColumn===R.endColumn)return"";const ce=this.nodeAt2(R.startLineNumber,R.startColumn),Re=this.nodeAt2(R.endLineNumber,R.endColumn),Fe=this.getValueInRange2(ce,Re);return Q?Q!==this._EOL||!this._EOLNormalized?Fe.replace(/\r\n|\r|\n/g,Q):Q===this.getEOL()&&this._EOLNormalized?Fe:Fe.replace(/\r\n|\r|\n/g,Q):Fe}getValueInRange2(R,Q){if(R.node===Q.node){const wt=R.node,Lt=this._buffers[wt.piece.bufferIndex].buffer,Qt=this.offsetInBuffer(wt.piece.bufferIndex,wt.piece.start);return Lt.substring(Qt+R.remainder,Qt+Q.remainder)}let ce=R.node;const Re=this._buffers[ce.piece.bufferIndex].buffer,Fe=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);let Ze=Re.substring(Fe+R.remainder,Fe+ce.piece.length);for(ce=ce.next();ce!==Gt;){const wt=this._buffers[ce.piece.bufferIndex].buffer,Lt=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);if(ce===Q.node){Ze+=wt.substring(Lt,Lt+Q.remainder);break}else Ze+=wt.substr(Lt,ce.piece.length);ce=ce.next()}return Ze}getLinesContent(){const R=[];let Q=0,ce="",Re=!1;return this.iterate(this.root,Fe=>{if(Fe===Gt)return!0;const Ze=Fe.piece;let wt=Ze.length;if(wt===0)return!0;const Lt=this._buffers[Ze.bufferIndex].buffer,Qt=this._buffers[Ze.bufferIndex].lineStarts,Xt=Ze.start.line,$t=Ze.end.line;let on=Qt[Xt]+Ze.start.column;if(Re&&(Lt.charCodeAt(on)===10&&(on++,wt--),R[Q++]=ce,ce="",Re=!1,wt===0))return!0;if(Xt===$t)return!this._EOLNormalized&&Lt.charCodeAt(on+wt-1)===13?(Re=!0,ce+=Lt.substr(on,wt-1)):ce+=Lt.substr(on,wt),!0;ce+=this._EOLNormalized?Lt.substring(on,Math.max(on,Qt[Xt+1]-this._EOLLength)):Lt.substring(on,Qt[Xt+1]).replace(/(\r\n|\r|\n)$/,""),R[Q++]=ce;for(let un=Xt+1;un<$t;un++)ce=this._EOLNormalized?Lt.substring(Qt[un],Qt[un+1]-this._EOLLength):Lt.substring(Qt[un],Qt[un+1]).replace(/(\r\n|\r|\n)$/,""),R[Q++]=ce;return!this._EOLNormalized&&Lt.charCodeAt(Qt[$t]+Ze.end.column-1)===13?(Re=!0,Ze.end.column===0?Q--:ce=Lt.substr(Qt[$t],Ze.end.column-1)):ce=Lt.substr(Qt[$t],Ze.end.column),!0}),Re&&(R[Q++]=ce,ce=""),R[Q++]=ce,R}getLength(){return this._length}getLineCount(){return this._lineCnt}getLineContent(R){return this._lastVisitedLine.lineNumber===R?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=R,R===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(R):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(R,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(R).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)}_getCharCode(R){if(R.remainder===R.node.piece.length){const Q=R.node.next();if(!Q)return 0;const ce=this._buffers[Q.piece.bufferIndex],Re=this.offsetInBuffer(Q.piece.bufferIndex,Q.piece.start);return ce.buffer.charCodeAt(Re)}else{const Q=this._buffers[R.node.piece.bufferIndex],Re=this.offsetInBuffer(R.node.piece.bufferIndex,R.node.piece.start)+R.remainder;return Q.buffer.charCodeAt(Re)}}getLineCharCode(R,Q){const ce=this.nodeAt2(R,Q+1);return this._getCharCode(ce)}getLineLength(R){if(R===this.getLineCount()){const Q=this.getOffsetAt(R,1);return this.getLength()-Q}return this.getOffsetAt(R+1,1)-this.getOffsetAt(R,1)-this._EOLLength}findMatchesInNode(R,Q,ce,Re,Fe,Ze,wt,Lt,Qt,Xt,$t){const on=this._buffers[R.piece.bufferIndex],un=this.offsetInBuffer(R.piece.bufferIndex,R.piece.start),Cn=this.offsetInBuffer(R.piece.bufferIndex,Fe),kn=this.offsetInBuffer(R.piece.bufferIndex,Ze);let Pn;const zn={line:0,column:0};let ni,hi;Q._wordSeparators?(ni=on.buffer.substring(Cn,kn),hi=ji=>ji+Cn,Q.reset(0)):(ni=on.buffer,hi=ji=>ji,Q.reset(Cn));do if(Pn=Q.next(ni),Pn){if(hi(Pn.index)>=kn)return Xt;this.positionInBuffer(R,hi(Pn.index)-un,zn);const ji=this.getLineFeedCnt(R.piece.bufferIndex,Fe,zn),Yi=zn.line===Fe.line?zn.column-Fe.column+Re:zn.column+1,Ei=Yi+Pn[0].length;if($t[Xt++]=(0,ci.dr)(new a.Q(ce+ji,Yi,ce+ji,Ei),Pn,Lt),hi(Pn.index)+Pn[0].length>=kn||Xt>=Qt)return Xt}while(Pn);return Xt}findMatchesLineByLine(R,Q,ce,Re){const Fe=[];let Ze=0;const wt=new ci.W5(Q.wordSeparators,Q.regex);let Lt=this.nodeAt2(R.startLineNumber,R.startColumn);if(Lt===null)return[];const Qt=this.nodeAt2(R.endLineNumber,R.endColumn);if(Qt===null)return[];let Xt=this.positionInBuffer(Lt.node,Lt.remainder);const $t=this.positionInBuffer(Qt.node,Qt.remainder);if(Lt.node===Qt.node)return this.findMatchesInNode(Lt.node,wt,R.startLineNumber,R.startColumn,Xt,$t,Q,ce,Re,Ze,Fe),Fe;let on=R.startLineNumber,un=Lt.node;for(;un!==Qt.node;){const kn=this.getLineFeedCnt(un.piece.bufferIndex,Xt,un.piece.end);if(kn>=1){const zn=this._buffers[un.piece.bufferIndex].lineStarts,ni=this.offsetInBuffer(un.piece.bufferIndex,un.piece.start),hi=zn[Xt.line+kn],ji=on===R.startLineNumber?R.startColumn:1;if(Ze=this.findMatchesInNode(un,wt,on,ji,Xt,this.positionInBuffer(un,hi-ni),Q,ce,Re,Ze,Fe),Ze>=Re)return Fe;on+=kn}const Pn=on===R.startLineNumber?R.startColumn-1:0;if(on===R.endLineNumber){const zn=this.getLineContent(on).substring(Pn,R.endColumn-1);return Ze=this._findMatchesInLine(Q,wt,zn,R.endLineNumber,Pn,Ze,Fe,ce,Re),Fe}if(Ze=this._findMatchesInLine(Q,wt,this.getLineContent(on).substr(Pn),on,Pn,Ze,Fe,ce,Re),Ze>=Re)return Fe;on++,Lt=this.nodeAt2(on,1),un=Lt.node,Xt=this.positionInBuffer(Lt.node,Lt.remainder)}if(on===R.endLineNumber){const kn=on===R.startLineNumber?R.startColumn-1:0,Pn=this.getLineContent(on).substring(kn,R.endColumn-1);return Ze=this._findMatchesInLine(Q,wt,Pn,R.endLineNumber,kn,Ze,Fe,ce,Re),Fe}const Cn=on===R.startLineNumber?R.startColumn:1;return Ze=this.findMatchesInNode(Qt.node,wt,on,Cn,Xt,$t,Q,ce,Re,Ze,Fe),Fe}_findMatchesInLine(R,Q,ce,Re,Fe,Ze,wt,Lt,Qt){const Xt=R.wordSeparators;if(!Lt&&R.simpleSearch){const on=R.simpleSearch,un=on.length,Cn=ce.length;let kn=-un;for(;(kn=ce.indexOf(on,kn+un))!==-1;)if((!Xt||(0,ci.wC)(Xt,ce,Cn,kn,un))&&(wt[Ze++]=new m.Dg(new a.Q(Re,kn+1+Fe,Re,kn+1+un+Fe),null),Ze>=Qt))return Ze;return Ze}let $t;Q.reset(0);do if($t=Q.next(ce),$t&&(wt[Ze++]=(0,ci.dr)(new a.Q(Re,$t.index+1+Fe,Re,$t.index+1+$t[0].length+Fe),$t,Lt),Ze>=Qt))return Ze;while($t);return Ze}insert(R,Q,ce=!1){if(this._EOLNormalized=this._EOLNormalized&&ce,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==Gt){const{node:Re,remainder:Fe,nodeStartOffset:Ze}=this.nodeAt(R),wt=Re.piece,Lt=wt.bufferIndex,Qt=this.positionInBuffer(Re,Fe);if(Re.piece.bufferIndex===0&&wt.end.line===this._lastChangeBufferPos.line&&wt.end.column===this._lastChangeBufferPos.column&&Ze+wt.length===R&&Q.lengthR){const Xt=[];let $t=new Yn(wt.bufferIndex,Qt,wt.end,this.getLineFeedCnt(wt.bufferIndex,Qt,wt.end),this.offsetInBuffer(Lt,wt.end)-this.offsetInBuffer(Lt,Qt));if(this.shouldCheckCRLF()&&this.endWithCR(Q)&&this.nodeCharCodeAt(Re,Fe)===10){const kn={line:$t.start.line+1,column:0};$t=new Yn($t.bufferIndex,kn,$t.end,this.getLineFeedCnt($t.bufferIndex,kn,$t.end),$t.length-1),Q+=` `}if(this.shouldCheckCRLF()&&this.startWithLF(Q))if(this.nodeCharCodeAt(Re,Fe-1)===13){const kn=this.positionInBuffer(Re,Fe-1);this.deleteNodeTail(Re,kn),Q="\r"+Q,Re.piece.length===0&&Xt.push(Re)}else this.deleteNodeTail(Re,Qt);else this.deleteNodeTail(Re,Qt);const on=this.createNewPieces(Q);$t.length>0&&this.rbInsertRight(Re,$t);let un=Re;for(let Cn=0;Cn=0;Ze--)Fe=this.rbInsertLeft(Fe,Re[Ze]);this.validateCRLFWithPrevNode(Fe),this.deleteNodes(ce)}insertContentToNodeRight(R,Q){this.adjustCarriageReturnFromNext(R,Q)&&(R+=` `);const ce=this.createNewPieces(R),Re=this.rbInsertRight(Q,ce[0]);let Fe=Re;for(let Ze=1;Ze=on)Qt=$t+1;else break;return ce?(ce.line=$t,ce.column=Lt-un,null):{line:$t,column:Lt-un}}getLineFeedCnt(R,Q,ce){if(ce.column===0)return ce.line-Q.line;const Re=this._buffers[R].lineStarts;if(ce.line===Re.length-1)return ce.line-Q.line;const Fe=Re[ce.line+1],Ze=Re[ce.line]+ce.column;if(Fe>Ze+1)return ce.line-Q.line;const wt=Ze-1;return this._buffers[R].buffer.charCodeAt(wt)===13?ce.line-Q.line+1:ce.line-Q.line}offsetInBuffer(R,Q){return this._buffers[R].lineStarts[Q.line]+Q.column}deleteNodes(R){for(let Q=0;QIi){const Xt=[];for(;R.length>Ii;){const on=R.charCodeAt(Ii-1);let un;on===13||on>=55296&&on<=56319?(un=R.substring(0,Ii-1),R=R.substring(Ii-1)):(un=R.substring(0,Ii),R=R.substring(Ii));const Cn=Nn(un);Xt.push(new Yn(this._buffers.length,{line:0,column:0},{line:Cn.length-1,column:un.length-Cn[Cn.length-1]},Cn.length-1,un.length)),this._buffers.push(new Di(un,Cn))}const $t=Nn(R);return Xt.push(new Yn(this._buffers.length,{line:0,column:0},{line:$t.length-1,column:R.length-$t[$t.length-1]},$t.length-1,R.length)),this._buffers.push(new Di(R,$t)),Xt}let Q=this._buffers[0].buffer.length;const ce=Nn(R,!1);let Re=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===Q&&Q!==0&&this.startWithLF(R)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},Re=this._lastChangeBufferPos;for(let Xt=0;Xt=R-1)ce=ce.left;else if(ce.lf_left+ce.piece.lineFeedCnt>R-1){const Lt=this.getAccumulatedValue(ce,R-ce.lf_left-2),Qt=this.getAccumulatedValue(ce,R-ce.lf_left-1),Xt=this._buffers[ce.piece.bufferIndex].buffer,$t=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);return Ze+=ce.size_left,this._searchCache.set({node:ce,nodeStartOffset:Ze,nodeStartLineNumber:wt-(R-1-ce.lf_left)}),Xt.substring($t+Lt,$t+Qt-Q)}else if(ce.lf_left+ce.piece.lineFeedCnt===R-1){const Lt=this.getAccumulatedValue(ce,R-ce.lf_left-2),Qt=this._buffers[ce.piece.bufferIndex].buffer,Xt=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);Re=Qt.substring(Xt+Lt,Xt+ce.piece.length);break}else R-=ce.lf_left+ce.piece.lineFeedCnt,Ze+=ce.size_left+ce.piece.length,ce=ce.right}for(ce=ce.next();ce!==Gt;){const Ze=this._buffers[ce.piece.bufferIndex].buffer;if(ce.piece.lineFeedCnt>0){const wt=this.getAccumulatedValue(ce,0),Lt=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);return Re+=Ze.substring(Lt,Lt+wt-Q),Re}else{const wt=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);Re+=Ze.substr(wt,ce.piece.length)}ce=ce.next()}return Re}computeBufferMetadata(){let R=this.root,Q=1,ce=0;for(;R!==Gt;)Q+=R.lf_left+R.piece.lineFeedCnt,ce+=R.size_left+R.piece.length,R=R.right;this._lineCnt=Q,this._length=ce,this._searchCache.validate(this._length)}getIndexOf(R,Q){const ce=R.piece,Re=this.positionInBuffer(R,Q),Fe=Re.line-ce.start.line;if(this.offsetInBuffer(ce.bufferIndex,ce.end)-this.offsetInBuffer(ce.bufferIndex,ce.start)===Q){const Ze=this.getLineFeedCnt(R.piece.bufferIndex,ce.start,Re);if(Ze!==Fe)return{index:Ze,remainder:0}}return{index:Fe,remainder:Re.column}}getAccumulatedValue(R,Q){if(Q<0)return 0;const ce=R.piece,Re=this._buffers[ce.bufferIndex].lineStarts,Fe=ce.start.line+Q+1;return Fe>ce.end.line?Re[ce.end.line]+ce.end.column-Re[ce.start.line]-ce.start.column:Re[Fe]-Re[ce.start.line]-ce.start.column}deleteNodeTail(R,Q){const ce=R.piece,Re=ce.lineFeedCnt,Fe=this.offsetInBuffer(ce.bufferIndex,ce.end),Ze=Q,wt=this.offsetInBuffer(ce.bufferIndex,Ze),Lt=this.getLineFeedCnt(ce.bufferIndex,ce.start,Ze),Qt=Lt-Re,Xt=wt-Fe,$t=ce.length+Xt;R.piece=new Yn(ce.bufferIndex,ce.start,Ze,Lt,$t),Mi(this,R,Xt,Qt)}deleteNodeHead(R,Q){const ce=R.piece,Re=ce.lineFeedCnt,Fe=this.offsetInBuffer(ce.bufferIndex,ce.start),Ze=Q,wt=this.getLineFeedCnt(ce.bufferIndex,Ze,ce.end),Lt=this.offsetInBuffer(ce.bufferIndex,Ze),Qt=wt-Re,Xt=Fe-Lt,$t=ce.length+Xt;R.piece=new Yn(ce.bufferIndex,Ze,ce.end,wt,$t),Mi(this,R,Xt,Qt)}shrinkNode(R,Q,ce){const Re=R.piece,Fe=Re.start,Ze=Re.end,wt=Re.length,Lt=Re.lineFeedCnt,Qt=Q,Xt=this.getLineFeedCnt(Re.bufferIndex,Re.start,Qt),$t=this.offsetInBuffer(Re.bufferIndex,Q)-this.offsetInBuffer(Re.bufferIndex,Fe);R.piece=new Yn(Re.bufferIndex,Re.start,Qt,Xt,$t),Mi(this,R,$t-wt,Xt-Lt);const on=new Yn(Re.bufferIndex,ce,Ze,this.getLineFeedCnt(Re.bufferIndex,ce,Ze),this.offsetInBuffer(Re.bufferIndex,Ze)-this.offsetInBuffer(Re.bufferIndex,ce)),un=this.rbInsertRight(R,on);this.validateCRLFWithPrevNode(un)}appendToNode(R,Q){this.adjustCarriageReturnFromNext(Q,R)&&(Q+=` `);const ce=this.shouldCheckCRLF()&&this.startWithLF(Q)&&this.endWithCR(R),Re=this._buffers[0].buffer.length;this._buffers[0].buffer+=Q;const Fe=Nn(Q,!1);for(let un=0;unR)Q=Q.left;else if(Q.size_left+Q.piece.length>=R){Re+=Q.size_left;const Fe={node:Q,remainder:R-Q.size_left,nodeStartOffset:Re};return this._searchCache.set(Fe),Fe}else R-=Q.size_left+Q.piece.length,Re+=Q.size_left+Q.piece.length,Q=Q.right;return null}nodeAt2(R,Q){let ce=this.root,Re=0;for(;ce!==Gt;)if(ce.left!==Gt&&ce.lf_left>=R-1)ce=ce.left;else if(ce.lf_left+ce.piece.lineFeedCnt>R-1){const Fe=this.getAccumulatedValue(ce,R-ce.lf_left-2),Ze=this.getAccumulatedValue(ce,R-ce.lf_left-1);return Re+=ce.size_left,{node:ce,remainder:Math.min(Fe+Q-1,Ze),nodeStartOffset:Re}}else if(ce.lf_left+ce.piece.lineFeedCnt===R-1){const Fe=this.getAccumulatedValue(ce,R-ce.lf_left-2);if(Fe+Q-1<=ce.piece.length)return{node:ce,remainder:Fe+Q-1,nodeStartOffset:Re};Q-=ce.piece.length-Fe;break}else R-=ce.lf_left+ce.piece.lineFeedCnt,Re+=ce.size_left+ce.piece.length,ce=ce.right;for(ce=ce.next();ce!==Gt;){if(ce.piece.lineFeedCnt>0){const Fe=this.getAccumulatedValue(ce,0),Ze=this.offsetOfNode(ce);return{node:ce,remainder:Math.min(Q-1,Fe),nodeStartOffset:Ze}}else if(ce.piece.length>=Q-1){const Fe=this.offsetOfNode(ce);return{node:ce,remainder:Q-1,nodeStartOffset:Fe}}else Q-=ce.piece.length;ce=ce.next()}return null}nodeCharCodeAt(R,Q){if(R.piece.lineFeedCnt<1)return-1;const ce=this._buffers[R.piece.bufferIndex],Re=this.offsetInBuffer(R.piece.bufferIndex,R.piece.start)+Q;return ce.buffer.charCodeAt(Re)}offsetOfNode(R){if(!R)return 0;let Q=R.size_left;for(;R!==this.root;)R.parent.right===R&&(Q+=R.parent.size_left+R.parent.piece.length),R=R.parent;return Q}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===` `)}startWithLF(R){if(typeof R=="string")return R.charCodeAt(0)===10;if(R===Gt||R.piece.lineFeedCnt===0)return!1;const Q=R.piece,ce=this._buffers[Q.bufferIndex].lineStarts,Re=Q.start.line,Fe=ce[Re]+Q.start.column;return Re===ce.length-1||ce[Re+1]>Fe+1?!1:this._buffers[Q.bufferIndex].buffer.charCodeAt(Fe)===10}endWithCR(R){return typeof R=="string"?R.charCodeAt(R.length-1)===13:R===Gt||R.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(R,R.piece.length-1)===13}validateCRLFWithPrevNode(R){if(this.shouldCheckCRLF()&&this.startWithLF(R)){const Q=R.prev();this.endWithCR(Q)&&this.fixCRLF(Q,R)}}validateCRLFWithNextNode(R){if(this.shouldCheckCRLF()&&this.endWithCR(R)){const Q=R.next();this.startWithLF(Q)&&this.fixCRLF(R,Q)}}fixCRLF(R,Q){const ce=[],Re=this._buffers[R.piece.bufferIndex].lineStarts;let Fe;R.piece.end.column===0?Fe={line:R.piece.end.line-1,column:Re[R.piece.end.line]-Re[R.piece.end.line-1]-1}:Fe={line:R.piece.end.line,column:R.piece.end.column-1};const Ze=R.piece.length-1,wt=R.piece.lineFeedCnt-1;R.piece=new Yn(R.piece.bufferIndex,R.piece.start,Fe,wt,Ze),Mi(this,R,-1,-1),R.piece.length===0&&ce.push(R);const Lt={line:Q.piece.start.line+1,column:0},Qt=Q.piece.length-1,Xt=this.getLineFeedCnt(Q.piece.bufferIndex,Lt,Q.piece.end);Q.piece=new Yn(Q.piece.bufferIndex,Lt,Q.piece.end,Xt,Qt),Mi(this,Q,-1,-1),Q.piece.length===0&&ce.push(Q);const $t=this.createNewPieces(`\r `);this.rbInsertRight(R,$t[0]);for(let on=0;onPn.sortIndex-zn.sortIndex)}this._mightContainRTL=Re,this._mightContainUnusualLineTerminators=Fe,this._mightContainNonBasicASCII=Ze;const un=this._doApplyEdits(Lt);let Cn=null;if(Q&&$t.length>0){$t.sort((kn,Pn)=>Pn.lineNumber-kn.lineNumber),Cn=[];for(let kn=0,Pn=$t.length;kn0&&$t[kn-1].lineNumber===zn)continue;const ni=$t[kn].oldContent,hi=this.getLineContent(zn);hi.length===0||hi===ni||g.HG(hi)!==-1||Cn.push(zn)}}return this._onDidChangeContent.fire(),new m.F4(on,un,Cn)}_reduceOperations(R){return R.length<1e3?R:[this._toSingleEditOperation(R)]}_toSingleEditOperation(R){let Q=!1;const ce=R[0].range,Re=R[R.length-1].range,Fe=new a.Q(ce.startLineNumber,ce.startColumn,Re.endLineNumber,Re.endColumn);let Ze=ce.startLineNumber,wt=ce.startColumn;const Lt=[];for(let un=0,Cn=R.length;un0&&Lt.push(kn.text),Ze=Pn.endLineNumber,wt=Pn.endColumn}const Qt=Lt.join(""),[Xt,$t,on]=(0,I.W)(Qt);return{sortIndex:0,identifier:R[0].identifier,range:Fe,rangeOffset:this.getOffsetAt(Fe.startLineNumber,Fe.startColumn),rangeLength:this.getValueLengthInRange(Fe,0),text:Qt,eolCount:Xt,firstLineLength:$t,lastLineLength:on,forceMoveMarkers:Q,isAutoWhitespaceEdit:!1}}_doApplyEdits(R){R.sort(ze._sortOpsDescending);const Q=[];for(let ce=0;ce0){const on=Lt.eolCount+1;on===1?$t=new a.Q(Qt,Xt,Qt,Xt+Lt.firstLineLength):$t=new a.Q(Qt,Xt,Qt+on-1,Lt.lastLineLength+1)}else $t=new a.Q(Qt,Xt,Qt,Xt);ce=$t.endLineNumber,Re=$t.endColumn,Q.push($t),Fe=Lt}return Q}static _sortOpsAscending(R,Q){const ce=a.Q.compareRangesUsingEnds(R.range,Q.range);return ce===0?R.sortIndex-Q.sortIndex:ce}static _sortOpsDescending(R,Q){const ce=a.Q.compareRangesUsingEnds(R.range,Q.range);return ce===0?Q.sortIndex-R.sortIndex:-ce}}class Ke{constructor(R,Q,ce,Re,Fe,Ze,wt,Lt,Qt){this._chunks=R,this._bom=Q,this._cr=ce,this._lf=Re,this._crlf=Fe,this._containsRTL=Ze,this._containsUnusualLineTerminators=wt,this._isBasicASCII=Lt,this._normalizeEOL=Qt}_getEOL(R){const Q=this._cr+this._lf+this._crlf,ce=this._cr+this._crlf;return Q===0?R===1?` `:`\r `:ce>Q/2?`\r `:` `}create(R){const Q=this._getEOL(R),ce=this._chunks;if(this._normalizeEOL&&(Q===`\r `&&(this._cr>0||this._lf>0)||Q===` `&&(this._cr>0||this._crlf>0)))for(let Fe=0,Ze=ce.length;Fe=55296&&Q<=56319?(this._acceptChunk1(R.substr(0,R.length-1),!1),this._hasPreviousChar=!0,this._previousChar=Q):(this._acceptChunk1(R,!1),this._hasPreviousChar=!1,this._previousChar=Q)}_acceptChunk1(R,Q){!Q&&R.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+R):this._acceptChunk2(R))}_acceptChunk2(R){const Q=Vn(this._tmpLineStarts,R);this.chunks.push(new Di(R,Q.lineStarts)),this.cr+=Q.cr,this.lf+=Q.lf,this.crlf+=Q.crlf,Q.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=g.E_(R)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=g.$X(R)))}finish(R=!0){return this._finish(),new Ke(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,R)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const R=this.chunks[this.chunks.length-1];R.buffer+=String.fromCharCode(this._previousChar);const Q=Nn(R.buffer);R.lineStarts=Q,this._previousChar===13&&this.cr++}}}var Ne=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),ft=e("./node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js"),St=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),rt=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModelPart.js"),Ge=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),nt=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),it=e("./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js"),bt=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/nullTokenize.js");class Dt{constructor(R){this._default=R,this._store=[]}get(R){return R=this._store.length;)this._store[this._store.length]=this._default;this._store[R]=Q}replace(R,Q,ce){if(R>=this._store.length)return;if(Q===0){this.insert(R,ce);return}else if(ce===0){this.delete(R,Q);return}const Re=this._store.slice(0,R),Fe=this._store.slice(R+Q),Ze=At(ce,this._default);this._store=Re.concat(Ze,Fe)}delete(R,Q){Q===0||R>=this._store.length||this._store.splice(R,Q)}insert(R,Q){if(Q===0||R>=this._store.length)return;const ce=[];for(let Re=0;Re0){const ce=this._tokens[this._tokens.length-1];if(ce.endLineNumber+1===R){ce.appendLineTokens(Q);return}}this._tokens.push(new et(R,[Q]))}finalize(){return this._tokens}}var Tt=e("./node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.js");class dt{constructor(R,Q){this.tokenizationSupport=Q,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new ct(R)}getStartState(R){return this.store.getStartState(R,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class Ae extends dt{constructor(R,Q,ce,Re){super(R,Q),this._textModel=ce,this._languageIdCodec=Re}updateTokensUntilLine(R,Q){const ce=this._textModel.getLanguageId();for(;;){const Re=this.getFirstInvalidLine();if(!Re||Re.lineNumber>Q)break;const Fe=this._textModel.getLineContent(Re.lineNumber),Ze=Rt(this._languageIdCodec,ce,this.tokenizationSupport,Fe,!0,Re.startState);R.add(Re.lineNumber,Ze.tokens),this.store.setEndState(Re.lineNumber,Ze.endState)}}getTokenTypeIfInsertingCharacter(R,Q){const ce=this.getStartState(R.lineNumber);if(!ce)return 0;const Re=this._textModel.getLanguageId(),Fe=this._textModel.getLineContent(R.lineNumber),Ze=Fe.substring(0,R.column-1)+Q+Fe.substring(R.column-1),wt=Rt(this._languageIdCodec,Re,this.tokenizationSupport,Ze,!0,ce),Lt=new Tt.f(wt.tokens,Ze,this._languageIdCodec);if(Lt.getCount()===0)return 0;const Qt=Lt.findTokenIndexAtOffset(R.column-1);return Lt.getStandardTokenType(Qt)}tokenizeLineWithEdit(R,Q,ce){const Re=R.lineNumber,Fe=R.column,Ze=this.getStartState(Re);if(!Ze)return null;const wt=this._textModel.getLineContent(Re),Lt=wt.substring(0,Fe-1)+ce+wt.substring(Fe-1+Q),Qt=this._textModel.getLanguageIdAtPosition(Re,0),Xt=Rt(this._languageIdCodec,Qt,this.tokenizationSupport,Lt,!0,Ze);return new Tt.f(Xt.tokens,Lt,this._languageIdCodec)}hasAccurateTokensForLine(R){const Q=this.store.getFirstInvalidEndStateLineNumberOrMax();return R1&&wt>=1;wt--){const Lt=this._textModel.getLineFirstNonWhitespaceColumn(wt);if(Lt!==0&&Lt0&&ce>0&&(ce--,Q--),this._lineEndStates.replace(R.startLineNumber,ce,Q)}}class je{constructor(){this._ranges=[]}get min(){return this._ranges.length===0?null:this._ranges[0].start}delete(R){const Q=this._ranges.findIndex(ce=>ce.contains(R));if(Q!==-1){const ce=this._ranges[Q];ce.start===R?ce.endExclusive===R+1?this._ranges.splice(Q,1):this._ranges[Q]=new it.L(R+1,ce.endExclusive):ce.endExclusive===R+1?this._ranges[Q]=new it.L(ce.start,R):this._ranges.splice(Q,1,new it.L(ce.start,R),new it.L(R+1,ce.endExclusive))}}addRange(R){it.L.addRange(R,this._ranges)}addRangeAndResize(R,Q){let ce=0;for(;!(ce>=this._ranges.length||R.start<=this._ranges[ce].endExclusive);)ce++;let Re=ce;for(;!(Re>=this._ranges.length||R.endExclusiveR.toString()).join(" + ")}}function Rt(ht,R,Q,ce,Re,Fe){let Ze=null;if(Q)try{Ze=Q.tokenizeEncoded(ce,Re,Fe.clone())}catch(wt){(0,k.dz)(wt)}return Ze||(Ze=(0,bt.Lh)(ht.encodeLanguageId(R),Fe)),Tt.f.convertToEndOffset(Ze.tokens,ce.length),Ze}class Ft{constructor(R,Q){this._tokenizerWithStateStore=R,this._backgroundTokenStore=Q,this._isDisposed=!1,this._isScheduled=!1}dispose(){this._isDisposed=!0}handleChanges(){this._beginBackgroundTokenization()}_beginBackgroundTokenization(){this._isScheduled||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._isScheduled=!0,(0,Ne.$6)(R=>{this._isScheduled=!1,this._backgroundTokenizeWithDeadline(R)}))}_backgroundTokenizeWithDeadline(R){const Q=Date.now()+R.timeRemaining(),ce=()=>{this._isDisposed||!this._tokenizerWithStateStore._textModel.isAttachedToEditor()||!this._hasLinesToTokenize()||(this._backgroundTokenizeForAtLeast1ms(),Date.now()1||this._tokenizeOneInvalidLine(Q)>=R)break;while(this._hasLinesToTokenize());this._backgroundTokenStore.setTokens(Q.finalize()),this.checkFinished()}_hasLinesToTokenize(){return this._tokenizerWithStateStore?!this._tokenizerWithStateStore.store.allStatesValid():!1}_tokenizeOneInvalidLine(R){var Q;const ce=(Q=this._tokenizerWithStateStore)===null||Q===void 0?void 0:Q.getFirstInvalidLine();return ce?(this._tokenizerWithStateStore.updateTokensUntilLine(R,ce.lineNumber),ce.lineNumber):this._tokenizerWithStateStore._textModel.getLineCount()+1}checkFinished(){this._isDisposed||this._tokenizerWithStateStore.store.allStatesValid()&&this._backgroundTokenStore.backgroundTokenizationFinished()}requestTokens(R,Q){this._tokenizerWithStateStore.store.invalidateEndStateRange(new f.M(R,Q))}}const ln=new Uint32Array(0).buffer;class vn{static deleteBeginning(R,Q){return R===null||R===ln?R:vn.delete(R,0,Q)}static deleteEnding(R,Q){if(R===null||R===ln)return R;const ce=Ln(R),Re=ce[ce.length-2];return vn.delete(R,Q,Re)}static delete(R,Q,ce){if(R===null||R===ln||Q===ce)return R;const Re=Ln(R),Fe=Re.length>>>1;if(Q===0&&Re[Re.length-2]===ce)return ln;const Ze=Tt.f.findIndexInTokensArray(Re,Q),wt=Ze>0?Re[Ze-1<<1]:0,Lt=Re[Ze<<1];if(ceXt&&(Re[Qt++]=Cn,Re[Qt++]=Re[(un<<1)+1],Xt=Cn)}if(Qt===Re.length)return R;const on=new Uint32Array(Qt);return on.set(Re.subarray(0,Qt),0),on.buffer}static append(R,Q){if(Q===ln)return R;if(R===ln)return Q;if(R===null)return R;if(Q===null)return null;const ce=Ln(R),Re=Ln(Q),Fe=Re.length>>>1,Ze=new Uint32Array(ce.length+Re.length);Ze.set(ce,0);let wt=ce.length;const Lt=ce[ce.length-2];for(let Qt=0;Qt>>1;let Ze=Tt.f.findIndexInTokensArray(Re,Q);Ze>0&&Re[Ze-1<<1]===Q&&Ze--;for(let wt=Ze;wt0}getTokens(R,Q,ce){let Re=null;if(Q1&&(Fe=En.x.getLanguageId(Re[1])!==R),!Fe)return ln}if(!Re||Re.length===0){const Fe=new Uint32Array(2);return Fe[0]=Q,Fe[1]=ei(R),Fe.buffer}return Re[Re.length-2]=Q,Re.byteOffset===0&&Re.byteLength===Re.buffer.byteLength?Re.buffer:Re}_ensureLine(R){for(;R>=this._len;)this._lineTokens[this._len]=null,this._len++}_deleteLines(R,Q){Q!==0&&(R+Q>this._len&&(Q=this._len-R),this._lineTokens.splice(R,Q),this._len-=Q)}_insertLines(R,Q){if(Q===0)return;const ce=[];for(let Re=0;Re=this._len)return;if(R.startLineNumber===R.endLineNumber){if(R.startColumn===R.endColumn)return;this._lineTokens[Q]=vn.delete(this._lineTokens[Q],R.startColumn-1,R.endColumn-1);return}this._lineTokens[Q]=vn.deleteEnding(this._lineTokens[Q],R.startColumn-1);const ce=R.endLineNumber-1;let Re=null;ce=this._len)){if(Q===0){this._lineTokens[Re]=vn.insert(this._lineTokens[Re],R.column-1,ce);return}this._lineTokens[Re]=vn.deleteEnding(this._lineTokens[Re],R.column-1),this._lineTokens[Re]=vn.insert(this._lineTokens[Re],R.column-1,ce),this._insertLines(R.lineNumber,Q)}}setMultilineTokens(R,Q){if(R.length===0)return{changes:[]};const ce=[];for(let Re=0,Fe=R.length;Re>>0}class en{constructor(R){this._pieces=[],this._isComplete=!1,this._languageIdCodec=R}flush(){this._pieces=[],this._isComplete=!1}isEmpty(){return this._pieces.length===0}set(R,Q){this._pieces=R||[],this._isComplete=Q}setPartial(R,Q){let ce=R;if(Q.length>0){const Fe=Q[0].getRange(),Ze=Q[Q.length-1].getRange();if(!Fe||!Ze)return R;ce=R.plusRange(Fe).plusRange(Ze)}let Re=null;for(let Fe=0,Ze=this._pieces.length;Fece.endLineNumber){Re=Re||{index:Fe};break}if(wt.removeTokens(ce),wt.isEmpty()){this._pieces.splice(Fe,1),Fe--,Ze--;continue}if(wt.endLineNumberce.endLineNumber){Re=Re||{index:Fe};continue}const[Lt,Qt]=wt.split(ce);if(Lt.isEmpty()){Re=Re||{index:Fe};continue}Qt.isEmpty()||(this._pieces.splice(Fe,1,Lt,Qt),Fe++,Ze++,Re=Re||{index:Fe})}return Re=Re||{index:this._pieces.length},Q.length>0&&(this._pieces=r.nK(this._pieces,Re.index,Q)),ce}isComplete(){return this._isComplete}addSparseTokens(R,Q){if(Q.getLineContent().length===0)return Q;const ce=this._pieces;if(ce.length===0)return Q;const Re=en._findFirstPieceWithLine(ce,R),Fe=ce[Re].getLineTokens(R);if(!Fe)return Q;const Ze=Q.getCount(),wt=Fe.getCount();let Lt=0;const Qt=[];let Xt=0,$t=0;const on=(un,Cn)=>{un!==$t&&($t=un,Qt[Xt++]=un,Qt[Xt++]=Cn)};for(let un=0;un>>0,ni=~zn>>>0;for(;LtQ)Re=Fe-1;else{for(;Fe>ce&&R[Fe-1].startLineNumber<=Q&&Q<=R[Fe-1].endLineNumber;)Fe--;return Fe}}return ce}acceptEdit(R,Q,ce,Re,Fe){for(const Ze of this._pieces)Ze.acceptEdit(R,Q,ce,Re,Fe)}}class xe extends rt._{constructor(R,Q,ce,Re,Fe,Ze){super(),this._languageService=R,this._languageConfigurationService=Q,this._textModel=ce,this._bracketPairsTextModelPart=Re,this._languageId=Fe,this._attachedViews=Ze,this._semanticTokens=new en(this._languageService.languageIdCodec),this._onDidChangeLanguage=this._register(new M.vl),this.onDidChangeLanguage=this._onDidChangeLanguage.event,this._onDidChangeLanguageConfiguration=this._register(new M.vl),this.onDidChangeLanguageConfiguration=this._onDidChangeLanguageConfiguration.event,this._onDidChangeTokens=this._register(new M.vl),this.onDidChangeTokens=this._onDidChangeTokens.event,this.grammarTokens=this._register(new st(this._languageService.languageIdCodec,this._textModel,()=>this._languageId,this._attachedViews)),this._register(this._languageConfigurationService.onDidChange(wt=>{wt.affects(this._languageId)&&this._onDidChangeLanguageConfiguration.fire({})})),this._register(this.grammarTokens.onDidChangeTokens(wt=>{this._emitModelTokensChangedEvent(wt)})),this._register(this.grammarTokens.onDidChangeBackgroundTokenizationState(wt=>{this._bracketPairsTextModelPart.handleDidChangeBackgroundTokenizationState()}))}handleDidChangeContent(R){if(R.isFlush)this._semanticTokens.flush();else if(!R.isEolChange)for(const Q of R.changes){const[ce,Re,Fe]=(0,I.W)(Q.text);this._semanticTokens.acceptEdit(Q.range,ce,Re,Fe,Q.text.length>0?Q.text.charCodeAt(0):0)}this.grammarTokens.handleDidChangeContent(R)}handleDidChangeAttached(){this.grammarTokens.handleDidChangeAttached()}getLineTokens(R){this.validateLineNumber(R);const Q=this.grammarTokens.getLineTokens(R);return this._semanticTokens.addSparseTokens(R,Q)}_emitModelTokensChangedEvent(R){this._textModel._isDisposing()||(this._bracketPairsTextModelPart.handleDidChangeTokens(R),this._onDidChangeTokens.fire(R))}validateLineNumber(R){if(R<1||R>this._textModel.getLineCount())throw new k.D7("Illegal value for lineNumber")}get hasTokens(){return this.grammarTokens.hasTokens}resetTokenization(){this.grammarTokens.resetTokenization()}get backgroundTokenizationState(){return this.grammarTokens.backgroundTokenizationState}forceTokenization(R){this.validateLineNumber(R),this.grammarTokens.forceTokenization(R)}hasAccurateTokensForLine(R){return this.validateLineNumber(R),this.grammarTokens.hasAccurateTokensForLine(R)}isCheapToTokenize(R){return this.validateLineNumber(R),this.grammarTokens.isCheapToTokenize(R)}tokenizeIfCheap(R){this.validateLineNumber(R),this.grammarTokens.tokenizeIfCheap(R)}getTokenTypeIfInsertingCharacter(R,Q,ce){return this.grammarTokens.getTokenTypeIfInsertingCharacter(R,Q,ce)}tokenizeLineWithEdit(R,Q,ce){return this.grammarTokens.tokenizeLineWithEdit(R,Q,ce)}setSemanticTokens(R,Q){this._semanticTokens.set(R,Q),this._emitModelTokensChangedEvent({semanticTokensApplied:R!==null,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]})}hasCompleteSemanticTokens(){return this._semanticTokens.isComplete()}hasSomeSemanticTokens(){return!this._semanticTokens.isEmpty()}setPartialSemanticTokens(R,Q){if(this.hasCompleteSemanticTokens())return;const ce=this._textModel.validateRange(this._semanticTokens.setPartial(R,Q));this._emitModelTokensChangedEvent({semanticTokensApplied:!0,ranges:[{fromLineNumber:ce.startLineNumber,toLineNumber:ce.endLineNumber}]})}getWordAtPosition(R){this.assertNotDisposed();const Q=this._textModel.validatePosition(R),ce=this._textModel.getLineContent(Q.lineNumber),Re=this.getLineTokens(Q.lineNumber),Fe=Re.findTokenIndexAtOffset(Q.column-1),[Ze,wt]=xe._findLanguageBoundaries(Re,Fe),Lt=(0,ft.Th)(Q.column,this.getLanguageConfiguration(Re.getLanguageId(Fe)).getWordDefinition(),ce.substring(Ze,wt),Ze);if(Lt&&Lt.startColumn<=R.column&&R.column<=Lt.endColumn)return Lt;if(Fe>0&&Ze===Q.column-1){const[Qt,Xt]=xe._findLanguageBoundaries(Re,Fe-1),$t=(0,ft.Th)(Q.column,this.getLanguageConfiguration(Re.getLanguageId(Fe-1)).getWordDefinition(),ce.substring(Qt,Xt),Qt);if($t&&$t.startColumn<=R.column&&R.column<=$t.endColumn)return $t}return null}getLanguageConfiguration(R){return this._languageConfigurationService.getLanguageConfiguration(R)}static _findLanguageBoundaries(R,Q){const ce=R.getLanguageId(Q);let Re=0;for(let Ze=Q;Ze>=0&&R.getLanguageId(Ze)===ce;Ze--)Re=R.getStartOffset(Ze);let Fe=R.getLineContent().length;for(let Ze=Q,wt=R.getCount();Ze{const Ze=this.getLanguageId();Fe.changedLanguages.indexOf(Ze)!==-1&&this.resetTokenization()})),this.resetTokenization(),this._register(Re.onDidChangeVisibleRanges(({view:Fe,state:Ze})=>{if(Ze){let wt=this._attachedViewStates.get(Fe);wt||(wt=new Wt(()=>this.refreshRanges(wt.lineRanges)),this._attachedViewStates.set(Fe,wt)),wt.handleStateChange(Ze)}else this._attachedViewStates.deleteAndDispose(Fe)}))}resetTokenization(R=!0){var Q;this._tokens.flush(),(Q=this._debugBackgroundTokens)===null||Q===void 0||Q.flush(),this._debugBackgroundStates&&(this._debugBackgroundStates=new ct(this._textModel.getLineCount())),R&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:[{fromLineNumber:1,toLineNumber:this._textModel.getLineCount()}]});const ce=()=>{if(this._textModel.isTooLargeForTokenization())return[null,null];const Ze=St.dG.get(this.getLanguageId());if(!Ze)return[null,null];let wt;try{wt=Ze.getInitialState()}catch(Lt){return(0,k.dz)(Lt),[null,null]}return[Ze,wt]},[Re,Fe]=ce();if(Re&&Fe?this._tokenizer=new Ae(this._textModel.getLineCount(),Re,this._textModel,this._languageIdCodec):this._tokenizer=null,this._backgroundTokenizer.clear(),this._defaultBackgroundTokenizer=null,this._tokenizer){const Ze={setTokens:wt=>{this.setTokens(wt)},backgroundTokenizationFinished:()=>{if(this._backgroundTokenizationState===2)return;const wt=2;this._backgroundTokenizationState=wt,this._onDidChangeBackgroundTokenizationState.fire()},setEndState:(wt,Lt)=>{var Qt;if(!this._tokenizer)return;const Xt=this._tokenizer.store.getFirstInvalidEndStateLineNumber();Xt!==null&&wt>=Xt&&((Qt=this._tokenizer)===null||Qt===void 0||Qt.store.setEndState(wt,Lt))}};Re&&Re.createBackgroundTokenizer&&!Re.backgroundTokenizerShouldOnlyVerifyTokens&&(this._backgroundTokenizer.value=Re.createBackgroundTokenizer(this._textModel,Ze)),!this._backgroundTokenizer.value&&!this._textModel.isTooLargeForTokenization()&&(this._backgroundTokenizer.value=this._defaultBackgroundTokenizer=new Ft(this._tokenizer,Ze),this._defaultBackgroundTokenizer.handleChanges()),Re?.backgroundTokenizerShouldOnlyVerifyTokens&&Re.createBackgroundTokenizer?(this._debugBackgroundTokens=new In(this._languageIdCodec),this._debugBackgroundStates=new ct(this._textModel.getLineCount()),this._debugBackgroundTokenizer.clear(),this._debugBackgroundTokenizer.value=Re.createBackgroundTokenizer(this._textModel,{setTokens:wt=>{var Lt;(Lt=this._debugBackgroundTokens)===null||Lt===void 0||Lt.setMultilineTokens(wt,this._textModel)},backgroundTokenizationFinished(){},setEndState:(wt,Lt)=>{var Qt;(Qt=this._debugBackgroundStates)===null||Qt===void 0||Qt.setEndState(wt,Lt)}})):(this._debugBackgroundTokens=void 0,this._debugBackgroundStates=void 0,this._debugBackgroundTokenizer.value=void 0)}this.refreshAllVisibleLineTokens()}handleDidChangeAttached(){var R;(R=this._defaultBackgroundTokenizer)===null||R===void 0||R.handleChanges()}handleDidChangeContent(R){var Q,ce,Re;if(R.isFlush)this.resetTokenization(!1);else if(!R.isEolChange){for(const Fe of R.changes){const[Ze,wt]=(0,I.W)(Fe.text);this._tokens.acceptEdit(Fe.range,Ze,wt),(Q=this._debugBackgroundTokens)===null||Q===void 0||Q.acceptEdit(Fe.range,Ze,wt)}(ce=this._debugBackgroundStates)===null||ce===void 0||ce.acceptChanges(R.changes),this._tokenizer&&this._tokenizer.store.acceptChanges(R.changes),(Re=this._defaultBackgroundTokenizer)===null||Re===void 0||Re.handleChanges()}}setTokens(R){const{changes:Q}=this._tokens.setMultilineTokens(R,this._textModel);return Q.length>0&&this._onDidChangeTokens.fire({semanticTokensApplied:!1,ranges:Q}),{changes:Q}}refreshAllVisibleLineTokens(){const R=f.M.joinMany([...this._attachedViewStates].map(([Q,ce])=>ce.lineRanges));this.refreshRanges(R)}refreshRanges(R){for(const Q of R)this.refreshRange(Q.startLineNumber,Q.endLineNumberExclusive-1)}refreshRange(R,Q){var ce,Re;if(!this._tokenizer)return;R=Math.max(1,Math.min(this._textModel.getLineCount(),R)),Q=Math.min(this._textModel.getLineCount(),Q);const Fe=new at,{heuristicTokens:Ze}=this._tokenizer.tokenizeHeuristically(Fe,R,Q),wt=this.setTokens(Fe.finalize());if(Ze)for(const Lt of wt.changes)(ce=this._backgroundTokenizer.value)===null||ce===void 0||ce.requestTokens(Lt.fromLineNumber,Lt.toLineNumber+1);(Re=this._defaultBackgroundTokenizer)===null||Re===void 0||Re.checkFinished()}forceTokenization(R){var Q,ce;const Re=new at;(Q=this._tokenizer)===null||Q===void 0||Q.updateTokensUntilLine(Re,R),this.setTokens(Re.finalize()),(ce=this._defaultBackgroundTokenizer)===null||ce===void 0||ce.checkFinished()}hasAccurateTokensForLine(R){return this._tokenizer?this._tokenizer.hasAccurateTokensForLine(R):!0}isCheapToTokenize(R){return this._tokenizer?this._tokenizer.isCheapToTokenize(R):!0}tokenizeIfCheap(R){this.isCheapToTokenize(R)&&this.forceTokenization(R)}getLineTokens(R){var Q;const ce=this._textModel.getLineContent(R),Re=this._tokens.getTokens(this._textModel.getLanguageId(),R-1,ce);if(this._debugBackgroundTokens&&this._debugBackgroundStates&&this._tokenizer&&this._debugBackgroundStates.getFirstInvalidEndStateLineNumberOrMax()>R&&this._tokenizer.store.getFirstInvalidEndStateLineNumberOrMax()>R){const Fe=this._debugBackgroundTokens.getTokens(this._textModel.getLanguageId(),R-1,ce);!Re.equals(Fe)&&(!((Q=this._debugBackgroundTokenizer.value)===null||Q===void 0)&&Q.reportMismatchingTokens)&&this._debugBackgroundTokenizer.value.reportMismatchingTokens(R)}return Re}getTokenTypeIfInsertingCharacter(R,Q,ce){if(!this._tokenizer)return 0;const Re=this._textModel.validatePosition(new d.y(R,Q));return this.forceTokenization(Re.lineNumber),this._tokenizer.getTokenTypeIfInsertingCharacter(Re,ce)}tokenizeLineWithEdit(R,Q,ce){if(!this._tokenizer)return null;const Re=this._textModel.validatePosition(R);return this.forceTokenization(Re.lineNumber),this._tokenizer.tokenizeLineWithEdit(Re,Q,ce)}get hasTokens(){return this._tokens.hasTokens}}class Wt extends L.jG{get lineRanges(){return this._lineRanges}constructor(R){super(),this._refreshTokens=R,this.runner=this._register(new Ne.uC(()=>this.update(),50)),this._computedLineRanges=[],this._lineRanges=[]}update(){(0,r.aI)(this._computedLineRanges,this._lineRanges,(R,Q)=>R.equals(Q))||(this._computedLineRanges=this._lineRanges,this._refreshTokens())}handleStateChange(R){this._lineRanges=R.visibleLineRanges,R.stabilized?(this.runner.cancel(),this.update()):this.runner.schedule()}}var rn=e("./node_modules/monaco-editor/esm/vs/editor/common/textModelEvents.js"),hn=e("./node_modules/monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js"),Dn=function(ht,R,Q,ce){var Re=arguments.length,Fe=Re<3?R:ce===null?ce=Object.getOwnPropertyDescriptor(R,Q):ce,Ze;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Fe=Reflect.decorate(ht,R,Q,ce);else for(var wt=ht.length-1;wt>=0;wt--)(Ze=ht[wt])&&(Fe=(Re<3?Ze(Fe):Re>3?Ze(R,Q,Fe):Ze(R,Q))||Fe);return Re>3&&Fe&&Object.defineProperty(R,Q,Fe),Fe},On=function(ht,R){return function(Q,ce){R(Q,ce,ht)}},Bn;function oi(ht){const R=new Je;return R.acceptChunk(ht),R.finish()}function $n(ht){const R=new Je;let Q;for(;typeof(Q=ht.read())=="string";)R.acceptChunk(Q);return R.finish()}function ti(ht,R){let Q;return typeof ht=="string"?Q=oi(ht):m.nk(ht)?Q=$n(ht):Q=ht,Q.create(R)}let Jn=0;const Un=999,Rn=1e4;class cn{constructor(R){this._source=R,this._eos=!1}read(){if(this._eos)return null;const R=[];let Q=0,ce=0;do{const Re=this._source.read();if(Re===null)return this._eos=!0,Q===0?null:R.join("");if(Re.length>0&&(R[Q++]=Re,ce+=Re.length),ce>=64*1024)return R.join("")}while(!0)}}const $e=()=>{throw new Error("Invalid change accessor")};let yt=Bn=class extends L.jG{static resolveOptions(R,Q){if(Q.detectIndentation){const ce=Pe(R,Q.tabSize,Q.insertSpaces);return new m.X2({tabSize:ce.tabSize,indentSize:"tabSize",insertSpaces:ce.insertSpaces,trimAutoWhitespace:Q.trimAutoWhitespace,defaultEOL:Q.defaultEOL,bracketPairColorizationOptions:Q.bracketPairColorizationOptions})}return new m.X2(Q)}get onDidChangeLanguage(){return this._tokenizationTextModelPart.onDidChangeLanguage}get onDidChangeLanguageConfiguration(){return this._tokenizationTextModelPart.onDidChangeLanguageConfiguration}get onDidChangeTokens(){return this._tokenizationTextModelPart.onDidChangeTokens}onDidChangeContent(R){return this._eventEmitter.slowEvent(Q=>R(Q.contentChangedEvent))}onDidChangeContentOrInjectedText(R){return(0,L.qE)(this._eventEmitter.fastEvent(Q=>R(Q)),this._onDidChangeInjectedText.event(Q=>R(Q)))}_isDisposing(){return this.__isDisposing}get tokenization(){return this._tokenizationTextModelPart}get bracketPairs(){return this._bracketPairs}get guides(){return this._guidesTextModelPart}constructor(R,Q,ce,Re=null,Fe,Ze,wt){super(),this._undoRedoService=Fe,this._languageService=Ze,this._languageConfigurationService=wt,this._onWillDispose=this._register(new M.vl),this.onWillDispose=this._onWillDispose.event,this._onDidChangeDecorations=this._register(new ui(un=>this.handleBeforeFireDecorationsChangedEvent(un))),this.onDidChangeDecorations=this._onDidChangeDecorations.event,this._onDidChangeOptions=this._register(new M.vl),this.onDidChangeOptions=this._onDidChangeOptions.event,this._onDidChangeAttached=this._register(new M.vl),this.onDidChangeAttached=this._onDidChangeAttached.event,this._onDidChangeInjectedText=this._register(new M.vl),this._eventEmitter=this._register(new vi),this._languageSelectionListener=this._register(new L.HE),this._deltaDecorationCallCnt=0,this._attachedViews=new qn,Jn++,this.id="$model"+Jn,this.isForSimpleWidget=ce.isForSimpleWidget,typeof Re>"u"||Re===null?this._associatedResource=x.r.parse("inmemory://model/"+Jn):this._associatedResource=Re,this._attachedEditorCount=0;const{textBuffer:Lt,disposable:Qt}=ti(R,ce.defaultEOL);this._buffer=Lt,this._bufferDisposable=Qt,this._options=Bn.resolveOptions(this._buffer,ce);const Xt=typeof Q=="string"?Q:Q.languageId;typeof Q!="string"&&(this._languageSelectionListener.value=Q.onDidChange(()=>this._setLanguage(Q.languageId))),this._bracketPairs=this._register(new z(this,this._languageConfigurationService)),this._guidesTextModelPart=this._register(new he.P(this,this._languageConfigurationService)),this._decorationProvider=this._register(new re(this)),this._tokenizationTextModelPart=new xe(this._languageService,this._languageConfigurationService,this,this._bracketPairs,Xt,this._attachedViews);const $t=this._buffer.getLineCount(),on=this._buffer.getValueLengthInRange(new a.Q(1,1,$t,this._buffer.getLineLength($t)+1),0);ce.largeFileOptimizations?(this._isTooLargeForTokenization=on>Bn.LARGE_FILE_SIZE_THRESHOLD||$t>Bn.LARGE_FILE_LINE_COUNT_THRESHOLD,this._isTooLargeForHeapOperation=on>Bn.LARGE_FILE_HEAP_OPERATION_THRESHOLD):(this._isTooLargeForTokenization=!1,this._isTooLargeForHeapOperation=!1),this._isTooLargeForSyncing=on>Bn._MODEL_SYNC_LIMIT,this._versionId=1,this._alternativeVersionId=1,this._initialUndoRedoSnapshot=null,this._isDisposed=!1,this.__isDisposing=!1,this._instanceId=g.tk(Jn),this._lastDecorationId=0,this._decorations=Object.create(null),this._decorationsTree=new zt,this._commandManager=new D.z8(this,this._undoRedoService),this._isUndoing=!1,this._isRedoing=!1,this._trimAutoWhitespaceLines=null,this._register(this._decorationProvider.onDidChange(()=>{this._onDidChangeDecorations.beginDeferredEmit(),this._onDidChangeDecorations.fire(),this._onDidChangeDecorations.endDeferredEmit()})),this._languageService.requestRichLanguageFeatures(Xt)}dispose(){this.__isDisposing=!0,this._onWillDispose.fire(),this._tokenizationTextModelPart.dispose(),this._isDisposed=!0,super.dispose(),this._bufferDisposable.dispose(),this.__isDisposing=!1;const R=new ze([],"",` `,!1,!1,!0,!0);R.dispose(),this._buffer=R,this._bufferDisposable=L.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(R,Q){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(Q),this._bracketPairs.handleDidChangeContent(Q),this._eventEmitter.fire(new rn.Ic(R,Q)))}setValue(R){if(this._assertNotDisposed(),R==null)throw(0,k.Qg)();const{textBuffer:Q,disposable:ce}=ti(R,this._options.defaultEOL);this._setValueFromTextBuffer(Q,ce)}_createContentChanged2(R,Q,ce,Re,Fe,Ze,wt,Lt){return{changes:[{range:R,rangeOffset:Q,rangeLength:ce,text:Re}],eol:this._buffer.getEOL(),isEolChange:Lt,versionId:this.getVersionId(),isUndoing:Fe,isRedoing:Ze,isFlush:wt}}_setValueFromTextBuffer(R,Q){this._assertNotDisposed();const ce=this.getFullModelRange(),Re=this.getValueLengthInRange(ce),Fe=this.getLineCount(),Ze=this.getLineMaxColumn(Fe);this._buffer=R,this._bufferDisposable.dispose(),this._bufferDisposable=Q,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new zt,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new rn.HP([new rn.Wn],this._versionId,!1,!1),this._createContentChanged2(new a.Q(1,1,Fe,Ze),0,Re,this.getValue(),!1,!1,!0,!1))}setEOL(R){this._assertNotDisposed();const Q=R===1?`\r `:` `;if(this._buffer.getEOL()===Q)return;const ce=this.getFullModelRange(),Re=this.getValueLengthInRange(ce),Fe=this.getLineCount(),Ze=this.getLineMaxColumn(Fe);this._onBeforeEOLChange(),this._buffer.setEOL(Q),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new rn.HP([new rn.mS],this._versionId,!1,!1),this._createContentChanged2(new a.Q(1,1,Fe,Ze),0,Re,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const R=this.getVersionId(),Q=this._decorationsTree.collectNodesPostOrder();for(let ce=0,Re=Q.length;ce0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let R=0,Q=0;const ce=this._buffer.getLineCount();for(let Re=1;Re<=ce;Re++){const Fe=this._buffer.getLineLength(Re);Fe>=Rn?Q+=Fe:R+=Fe}return Q>R}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(R){this._assertNotDisposed();const Q=typeof R.tabSize<"u"?R.tabSize:this._options.tabSize,ce=typeof R.indentSize<"u"?R.indentSize:this._options.originalIndentSize,Re=typeof R.insertSpaces<"u"?R.insertSpaces:this._options.insertSpaces,Fe=typeof R.trimAutoWhitespace<"u"?R.trimAutoWhitespace:this._options.trimAutoWhitespace,Ze=typeof R.bracketColorizationOptions<"u"?R.bracketColorizationOptions:this._options.bracketPairColorizationOptions,wt=new m.X2({tabSize:Q,indentSize:ce,insertSpaces:Re,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:Fe,bracketPairColorizationOptions:Ze});if(this._options.equals(wt))return;const Lt=this._options.createChangeEvent(wt);this._options=wt,this._bracketPairs.handleDidChangeOptions(Lt),this._decorationProvider.handleDidChangeOptions(Lt),this._onDidChangeOptions.fire(Lt)}detectIndentation(R,Q){this._assertNotDisposed();const ce=Pe(this._buffer,Q,R);this.updateOptions({insertSpaces:ce.insertSpaces,tabSize:ce.tabSize,indentSize:ce.tabSize})}normalizeIndentation(R){return this._assertNotDisposed(),(0,S.P)(R,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(R=null){const Q=this.findMatches(g._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(R,Q.map(ce=>({range:ce.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(R){this._assertNotDisposed();const Q=this._validatePosition(R.lineNumber,R.column,0);return this._buffer.getOffsetAt(Q.lineNumber,Q.column)}getPositionAt(R){this._assertNotDisposed();const Q=Math.min(this._buffer.getLength(),Math.max(0,R));return this._buffer.getPositionAt(Q)}_increaseVersionId(){this._versionId=this._versionId+1,this._alternativeVersionId=this._versionId}_overwriteVersionId(R){this._versionId=R}_overwriteAlternativeVersionId(R){this._alternativeVersionId=R}_overwriteInitialUndoRedoSnapshot(R){this._initialUndoRedoSnapshot=R}getValue(R,Q=!1){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new k.D7("Operation would exceed heap memory limits");const ce=this.getFullModelRange(),Re=this.getValueInRange(ce,R);return Q?this._buffer.getBOM()+Re:Re}createSnapshot(R=!1){return new cn(this._buffer.createSnapshot(R))}getValueLength(R,Q=!1){this._assertNotDisposed();const ce=this.getFullModelRange(),Re=this.getValueLengthInRange(ce,R);return Q?this._buffer.getBOM().length+Re:Re}getValueInRange(R,Q=0){return this._assertNotDisposed(),this._buffer.getValueInRange(this.validateRange(R),Q)}getValueLengthInRange(R,Q=0){return this._assertNotDisposed(),this._buffer.getValueLengthInRange(this.validateRange(R),Q)}getCharacterCountInRange(R,Q=0){return this._assertNotDisposed(),this._buffer.getCharacterCountInRange(this.validateRange(R),Q)}getLineCount(){return this._assertNotDisposed(),this._buffer.getLineCount()}getLineContent(R){if(this._assertNotDisposed(),R<1||R>this.getLineCount())throw new k.D7("Illegal value for lineNumber");return this._buffer.getLineContent(R)}getLineLength(R){if(this._assertNotDisposed(),R<1||R>this.getLineCount())throw new k.D7("Illegal value for lineNumber");return this._buffer.getLineLength(R)}getLinesContent(){if(this._assertNotDisposed(),this.isTooLargeForHeapOperation())throw new k.D7("Operation would exceed heap memory limits");return this._buffer.getLinesContent()}getEOL(){return this._assertNotDisposed(),this._buffer.getEOL()}getEndOfLineSequence(){return this._assertNotDisposed(),this._buffer.getEOL()===` `?0:1}getLineMinColumn(R){return this._assertNotDisposed(),1}getLineMaxColumn(R){if(this._assertNotDisposed(),R<1||R>this.getLineCount())throw new k.D7("Illegal value for lineNumber");return this._buffer.getLineLength(R)+1}getLineFirstNonWhitespaceColumn(R){if(this._assertNotDisposed(),R<1||R>this.getLineCount())throw new k.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(R)}getLineLastNonWhitespaceColumn(R){if(this._assertNotDisposed(),R<1||R>this.getLineCount())throw new k.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(R)}_validateRangeRelaxedNoAllocations(R){const Q=this._buffer.getLineCount(),ce=R.startLineNumber,Re=R.startColumn;let Fe=Math.floor(typeof ce=="number"&&!isNaN(ce)?ce:1),Ze=Math.floor(typeof Re=="number"&&!isNaN(Re)?Re:1);if(Fe<1)Fe=1,Ze=1;else if(Fe>Q)Fe=Q,Ze=this.getLineMaxColumn(Fe);else if(Ze<=1)Ze=1;else{const $t=this.getLineMaxColumn(Fe);Ze>=$t&&(Ze=$t)}const wt=R.endLineNumber,Lt=R.endColumn;let Qt=Math.floor(typeof wt=="number"&&!isNaN(wt)?wt:1),Xt=Math.floor(typeof Lt=="number"&&!isNaN(Lt)?Lt:1);if(Qt<1)Qt=1,Xt=1;else if(Qt>Q)Qt=Q,Xt=this.getLineMaxColumn(Qt);else if(Xt<=1)Xt=1;else{const $t=this.getLineMaxColumn(Qt);Xt>=$t&&(Xt=$t)}return ce===Fe&&Re===Ze&&wt===Qt&&Lt===Xt&&R instanceof a.Q&&!(R instanceof s.L)?R:new a.Q(Fe,Ze,Qt,Xt)}_isValidPosition(R,Q,ce){if(typeof R!="number"||typeof Q!="number"||isNaN(R)||isNaN(Q)||R<1||Q<1||(R|0)!==R||(Q|0)!==Q)return!1;const Re=this._buffer.getLineCount();if(R>Re)return!1;if(Q===1)return!0;const Fe=this.getLineMaxColumn(R);if(Q>Fe)return!1;if(ce===1){const Ze=this._buffer.getLineCharCode(R,Q-2);if(g.pc(Ze))return!1}return!0}_validatePosition(R,Q,ce){const Re=Math.floor(typeof R=="number"&&!isNaN(R)?R:1),Fe=Math.floor(typeof Q=="number"&&!isNaN(Q)?Q:1),Ze=this._buffer.getLineCount();if(Re<1)return new d.y(1,1);if(Re>Ze)return new d.y(Ze,this.getLineMaxColumn(Ze));if(Fe<=1)return new d.y(Re,1);const wt=this.getLineMaxColumn(Re);if(Fe>=wt)return new d.y(Re,wt);if(ce===1){const Lt=this._buffer.getLineCharCode(Re,Fe-2);if(g.pc(Lt))return new d.y(Re,Fe-1)}return new d.y(Re,Fe)}validatePosition(R){return this._assertNotDisposed(),R instanceof d.y&&this._isValidPosition(R.lineNumber,R.column,1)?R:this._validatePosition(R.lineNumber,R.column,1)}_isValidRange(R,Q){const ce=R.startLineNumber,Re=R.startColumn,Fe=R.endLineNumber,Ze=R.endColumn;if(!this._isValidPosition(ce,Re,0)||!this._isValidPosition(Fe,Ze,0))return!1;if(Q===1){const wt=Re>1?this._buffer.getLineCharCode(ce,Re-2):0,Lt=Ze>1&&Ze<=this._buffer.getLineLength(Fe)?this._buffer.getLineCharCode(Fe,Ze-2):0,Qt=g.pc(wt),Xt=g.pc(Lt);return!Qt&&!Xt}return!0}validateRange(R){if(this._assertNotDisposed(),R instanceof a.Q&&!(R instanceof s.L)&&this._isValidRange(R,1))return R;const ce=this._validatePosition(R.startLineNumber,R.startColumn,0),Re=this._validatePosition(R.endLineNumber,R.endColumn,0),Fe=ce.lineNumber,Ze=ce.column,wt=Re.lineNumber,Lt=Re.column;{const Qt=Ze>1?this._buffer.getLineCharCode(Fe,Ze-2):0,Xt=Lt>1&&Lt<=this._buffer.getLineLength(wt)?this._buffer.getLineCharCode(wt,Lt-2):0,$t=g.pc(Qt),on=g.pc(Xt);return!$t&&!on?new a.Q(Fe,Ze,wt,Lt):Fe===wt&&Ze===Lt?new a.Q(Fe,Ze-1,wt,Lt-1):$t&&on?new a.Q(Fe,Ze-1,wt,Lt+1):$t?new a.Q(Fe,Ze-1,wt,Lt):new a.Q(Fe,Ze,wt,Lt+1)}return new a.Q(Fe,Ze,wt,Lt)}modifyPosition(R,Q){this._assertNotDisposed();const ce=this.getOffsetAt(R)+Q;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,ce)))}getFullModelRange(){this._assertNotDisposed();const R=this.getLineCount();return new a.Q(1,1,R,this.getLineMaxColumn(R))}findMatchesLineByLine(R,Q,ce,Re){return this._buffer.findMatchesLineByLine(R,Q,ce,Re)}findMatches(R,Q,ce,Re,Fe,Ze,wt=Un){this._assertNotDisposed();let Lt=null;Q!==null&&(Array.isArray(Q)||(Q=[Q]),Q.every($t=>a.Q.isIRange($t))&&(Lt=Q.map($t=>this.validateRange($t)))),Lt===null&&(Lt=[this.getFullModelRange()]),Lt=Lt.sort(($t,on)=>$t.startLineNumber-on.startLineNumber||$t.startColumn-on.startColumn);const Qt=[];Qt.push(Lt.reduce(($t,on)=>a.Q.areIntersecting($t,on)?$t.plusRange(on):(Qt.push($t),on)));let Xt;if(!ce&&R.indexOf(` `)<0){const on=new ci.lt(R,ce,Re,Fe).parseSearchRequest();if(!on)return[];Xt=un=>this.findMatchesLineByLine(un,on,Ze,wt)}else Xt=$t=>ci.hB.findMatches(this,new ci.lt(R,ce,Re,Fe),$t,Ze,wt);return Qt.map(Xt).reduce(($t,on)=>$t.concat(on),[])}findNextMatch(R,Q,ce,Re,Fe,Ze){this._assertNotDisposed();const wt=this.validatePosition(Q);if(!ce&&R.indexOf(` `)<0){const Qt=new ci.lt(R,ce,Re,Fe).parseSearchRequest();if(!Qt)return null;const Xt=this.getLineCount();let $t=new a.Q(wt.lineNumber,wt.column,Xt,this.getLineMaxColumn(Xt)),on=this.findMatchesLineByLine($t,Qt,Ze,1);return ci.hB.findNextMatch(this,new ci.lt(R,ce,Re,Fe),wt,Ze),on.length>0||($t=new a.Q(1,1,wt.lineNumber,this.getLineMaxColumn(wt.lineNumber)),on=this.findMatchesLineByLine($t,Qt,Ze,1),on.length>0)?on[0]:null}return ci.hB.findNextMatch(this,new ci.lt(R,ce,Re,Fe),wt,Ze)}findPreviousMatch(R,Q,ce,Re,Fe,Ze){this._assertNotDisposed();const wt=this.validatePosition(Q);return ci.hB.findPreviousMatch(this,new ci.lt(R,ce,Re,Fe),wt,Ze)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(R){if((this.getEOL()===` `?0:1)!==R)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(R)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(R){return R instanceof m.Wo?R:new m.Wo(R.identifier||null,this.validateRange(R.range),R.text,R.forceMoveMarkers||!1,R.isAutoWhitespaceEdit||!1,R._isTracked||!1)}_validateEditOperations(R){const Q=[];for(let ce=0,Re=R.length;ce({range:this.validateRange(wt.range),text:wt.text}));let Ze=!0;if(R)for(let wt=0,Lt=R.length;wtQt.endLineNumber,kn=Qt.startLineNumber>un.endLineNumber;if(!Cn&&!kn){Xt=!0;break}}if(!Xt){Ze=!1;break}}if(Ze)for(let wt=0,Lt=this._trimAutoWhitespaceLines.length;wtCn.endLineNumber)&&!(Qt===Cn.startLineNumber&&Cn.startColumn===Xt&&Cn.isEmpty()&&kn&&kn.length>0&&kn.charAt(0)===` `)&&!(Qt===Cn.startLineNumber&&Cn.startColumn===1&&Cn.isEmpty()&&kn&&kn.length>0&&kn.charAt(kn.length-1)===` `)){$t=!1;break}}if($t){const on=new a.Q(Qt,1,Qt,Xt);Q.push(new m.Wo(null,on,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(R,Q,ce,Re)}_applyUndo(R,Q,ce,Re){const Fe=R.map(Ze=>{const wt=this.getPositionAt(Ze.newPosition),Lt=this.getPositionAt(Ze.newEnd);return{range:new a.Q(wt.lineNumber,wt.column,Lt.lineNumber,Lt.column),text:Ze.oldText}});this._applyUndoRedoEdits(Fe,Q,!0,!1,ce,Re)}_applyRedo(R,Q,ce,Re){const Fe=R.map(Ze=>{const wt=this.getPositionAt(Ze.oldPosition),Lt=this.getPositionAt(Ze.oldEnd);return{range:new a.Q(wt.lineNumber,wt.column,Lt.lineNumber,Lt.column),text:Ze.newText}});this._applyUndoRedoEdits(Fe,Q,!1,!0,ce,Re)}_applyUndoRedoEdits(R,Q,ce,Re,Fe,Ze){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=ce,this._isRedoing=Re,this.applyEdits(R,!1),this.setEOL(Q),this._overwriteAlternativeVersionId(Fe)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(Ze),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(R,Q=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const ce=this._validateEditOperations(R);return this._doApplyEdits(ce,Q)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(R,Q){const ce=this._buffer.getLineCount(),Re=this._buffer.applyEdits(R,this._options.trimAutoWhitespace,Q),Fe=this._buffer.getLineCount(),Ze=Re.changes;if(this._trimAutoWhitespaceLines=Re.trimAutoWhitespaceLineNumbers,Ze.length!==0){for(let Qt=0,Xt=Ze.length;Qt=0;no--){const Lo=un+no,Xi=hi+no;ao.takeFromEndWhile(co=>co.lineNumber>Xi);const To=ao.takeFromEndWhile(co=>co.lineNumber===Xi);wt.push(new rn.U0(Lo,this.getLineContent(Xi),To))}if(znSo.lineNumberSo.lineNumber===uo)}wt.push(new rn.bg(Lo+1,un+Pn,yo,co))}Lt+=ni}this._emitContentChangedEvent(new rn.HP(wt,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:Ze,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return Re.reverseEdits===null?void 0:Re.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(R){if(R===null||R.size===0)return;const ce=Array.from(R).map(Re=>new rn.U0(Re,this.getLineContent(Re),this._getInjectedTextInLine(Re)));this._onDidChangeInjectedText.fire(new rn.vn(ce))}changeDecorations(R,Q=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(Q,R)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(R,Q){const ce={addDecoration:(Fe,Ze)=>this._deltaDecorationsImpl(R,[],[{range:Fe,options:Ze}])[0],changeDecoration:(Fe,Ze)=>{this._changeDecorationImpl(Fe,Ze)},changeDecorationOptions:(Fe,Ze)=>{this._changeDecorationOptionsImpl(Fe,Qn(Ze))},removeDecoration:Fe=>{this._deltaDecorationsImpl(R,[Fe],[])},deltaDecorations:(Fe,Ze)=>Fe.length===0&&Ze.length===0?[]:this._deltaDecorationsImpl(R,Fe,Ze)};let Re=null;try{Re=Q(ce)}catch(Fe){(0,k.dz)(Fe)}return ce.addDecoration=$e,ce.changeDecoration=$e,ce.changeDecorationOptions=$e,ce.removeDecoration=$e,ce.deltaDecorations=$e,Re}deltaDecorations(R,Q,ce=0){if(this._assertNotDisposed(),R||(R=[]),R.length===0&&Q.length===0)return[];try{return this._deltaDecorationCallCnt++,this._deltaDecorationCallCnt>1&&(console.warn("Invoking deltaDecorations recursively could lead to leaking decorations."),(0,k.dz)(new Error("Invoking deltaDecorations recursively could lead to leaking decorations."))),this._onDidChangeDecorations.beginDeferredEmit(),this._deltaDecorationsImpl(ce,R,Q)}finally{this._onDidChangeDecorations.endDeferredEmit(),this._deltaDecorationCallCnt--}}_getTrackedRange(R){return this.getDecorationRange(R)}_setTrackedRange(R,Q,ce){const Re=R?this._decorations[R]:null;if(!Re)return Q?this._deltaDecorationsImpl(0,[],[{range:Q,options:Wn[ce]}],!0)[0]:null;if(!Q)return this._decorationsTree.delete(Re),delete this._decorations[Re.id],null;const Fe=this._validateRangeRelaxedNoAllocations(Q),Ze=this._buffer.getOffsetAt(Fe.startLineNumber,Fe.startColumn),wt=this._buffer.getOffsetAt(Fe.endLineNumber,Fe.endColumn);return this._decorationsTree.delete(Re),Re.reset(this.getVersionId(),Ze,wt,Fe),Re.setOptions(Wn[ce]),this._decorationsTree.insert(Re),Re.id}removeAllDecorationsWithOwnerId(R){if(this._isDisposed)return;const Q=this._decorationsTree.collectNodesFromOwner(R);for(let ce=0,Re=Q.length;cethis.getLineCount()?[]:this.getLinesDecorations(R,R,Q,ce)}getLinesDecorations(R,Q,ce=0,Re=!1,Fe=!1){const Ze=this.getLineCount(),wt=Math.min(Ze,Math.max(1,R)),Lt=Math.min(Ze,Math.max(1,Q)),Qt=this.getLineMaxColumn(Lt),Xt=new a.Q(wt,1,Lt,Qt),$t=this._getDecorationsInRange(Xt,ce,Re,Fe);return(0,r.E4)($t,this._decorationProvider.getDecorationsInRange(Xt,ce,Re)),$t}getDecorationsInRange(R,Q=0,ce=!1,Re=!1,Fe=!1){const Ze=this.validateRange(R),wt=this._getDecorationsInRange(Ze,Q,ce,Fe);return(0,r.E4)(wt,this._decorationProvider.getDecorationsInRange(Ze,Q,ce,Re)),wt}getOverviewRulerDecorations(R=0,Q=!1){return this._decorationsTree.getAll(this,R,Q,!0,!1)}getInjectedTextDecorations(R=0){return this._decorationsTree.getAllInjectedText(this,R)}_getInjectedTextInLine(R){const Q=this._buffer.getOffsetAt(R,1),ce=Q+this._buffer.getLineLength(R),Re=this._decorationsTree.getInjectedTextInInterval(this,Q,ce,0);return rn.uK.fromDecorations(Re).filter(Fe=>Fe.lineNumber===R)}getAllDecorations(R=0,Q=!1){let ce=this._decorationsTree.getAll(this,R,Q,!1,!1);return ce=ce.concat(this._decorationProvider.getAllDecorations(R,Q)),ce}getAllMarginDecorations(R=0){return this._decorationsTree.getAll(this,R,!1,!1,!0)}_getDecorationsInRange(R,Q,ce,Re){const Fe=this._buffer.getOffsetAt(R.startLineNumber,R.startColumn),Ze=this._buffer.getOffsetAt(R.endLineNumber,R.endColumn);return this._decorationsTree.getAllInInterval(this,Fe,Ze,Q,ce,Re)}getRangeAt(R,Q){return this._buffer.getRangeAt(R,Q-R)}_changeDecorationImpl(R,Q){const ce=this._decorations[R];if(!ce)return;if(ce.options.after){const wt=this.getDecorationRange(R);this._onDidChangeDecorations.recordLineAffectedByInjectedText(wt.endLineNumber)}if(ce.options.before){const wt=this.getDecorationRange(R);this._onDidChangeDecorations.recordLineAffectedByInjectedText(wt.startLineNumber)}const Re=this._validateRangeRelaxedNoAllocations(Q),Fe=this._buffer.getOffsetAt(Re.startLineNumber,Re.startColumn),Ze=this._buffer.getOffsetAt(Re.endLineNumber,Re.endColumn);this._decorationsTree.delete(ce),ce.reset(this.getVersionId(),Fe,Ze,Re),this._decorationsTree.insert(ce),this._onDidChangeDecorations.checkAffectedAndFire(ce.options),ce.options.after&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(Re.endLineNumber),ce.options.before&&this._onDidChangeDecorations.recordLineAffectedByInjectedText(Re.startLineNumber)}_changeDecorationOptionsImpl(R,Q){const ce=this._decorations[R];if(!ce)return;const Re=!!(ce.options.overviewRuler&&ce.options.overviewRuler.color),Fe=!!(Q.overviewRuler&&Q.overviewRuler.color);if(this._onDidChangeDecorations.checkAffectedAndFire(ce.options),this._onDidChangeDecorations.checkAffectedAndFire(Q),ce.options.after||Q.after){const Lt=this._decorationsTree.getNodeRange(this,ce);this._onDidChangeDecorations.recordLineAffectedByInjectedText(Lt.endLineNumber)}if(ce.options.before||Q.before){const Lt=this._decorationsTree.getNodeRange(this,ce);this._onDidChangeDecorations.recordLineAffectedByInjectedText(Lt.startLineNumber)}const Ze=Re!==Fe,wt=Ut(Q)!==sn(ce);Ze||wt?(this._decorationsTree.delete(ce),ce.setOptions(Q),this._decorationsTree.insert(ce)):ce.setOptions(Q)}_deltaDecorationsImpl(R,Q,ce,Re=!1){const Fe=this.getVersionId(),Ze=Q.length;let wt=0;const Lt=ce.length;let Qt=0;this._onDidChangeDecorations.beginDeferredEmit();try{const Xt=new Array(Lt);for(;wtthis._setLanguage(R.languageId,Q)),this._setLanguage(R.languageId,Q))}_setLanguage(R,Q){this.tokenization.setLanguageId(R,Q),this._languageService.requestRichLanguageFeatures(R)}getLanguageIdAtPosition(R,Q){return this.tokenization.getLanguageIdAtPosition(R,Q)}getWordAtPosition(R){return this._tokenizationTextModelPart.getWordAtPosition(R)}getWordUntilPosition(R){return this._tokenizationTextModelPart.getWordUntilPosition(R)}normalizePosition(R,Q){return R}getLineIndentColumn(R){return jt(this.getLineContent(R))+1}};yt._MODEL_SYNC_LIMIT=50*1024*1024,yt.LARGE_FILE_SIZE_THRESHOLD=20*1024*1024,yt.LARGE_FILE_LINE_COUNT_THRESHOLD=300*1e3,yt.LARGE_FILE_HEAP_OPERATION_THRESHOLD=256*1024*1024,yt.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:n.R.tabSize,indentSize:n.R.indentSize,insertSpaces:n.R.insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:n.R.trimAutoWhitespace,largeFileOptimizations:n.R.largeFileOptimizations,bracketPairColorizationOptions:n.R.bracketPairColorizationOptions},yt=Bn=Dn([On(4,hn.$D),On(5,i.L),On(6,c.JZ)],yt);function jt(ht){let R=0;for(const Q of ht)if(Q===" "||Q===" ")R++;else break;return R}function Vt(ht){return!!(ht.options.overviewRuler&&ht.options.overviewRuler.color)}function Ut(ht){return!!ht.after||!!ht.before}function sn(ht){return!!ht.options.after||!!ht.options.before}class zt{constructor(){this._decorationsTree0=new fe,this._decorationsTree1=new fe,this._injectedTextDecorationsTree=new fe}ensureAllNodesHaveRanges(R){this.getAll(R,0,!1,!1,!1)}_ensureNodesHaveRanges(R,Q){for(const ce of Q)ce.range===null&&(ce.range=R.getRangeAt(ce.cachedAbsoluteStart,ce.cachedAbsoluteEnd));return Q}getAllInInterval(R,Q,ce,Re,Fe,Ze){const wt=R.getVersionId(),Lt=this._intervalSearch(Q,ce,Re,Fe,wt,Ze);return this._ensureNodesHaveRanges(R,Lt)}_intervalSearch(R,Q,ce,Re,Fe,Ze){const wt=this._decorationsTree0.intervalSearch(R,Q,ce,Re,Fe,Ze),Lt=this._decorationsTree1.intervalSearch(R,Q,ce,Re,Fe,Ze),Qt=this._injectedTextDecorationsTree.intervalSearch(R,Q,ce,Re,Fe,Ze);return wt.concat(Lt).concat(Qt)}getInjectedTextInInterval(R,Q,ce,Re){const Fe=R.getVersionId(),Ze=this._injectedTextDecorationsTree.intervalSearch(Q,ce,Re,!1,Fe,!1);return this._ensureNodesHaveRanges(R,Ze).filter(wt=>wt.options.showIfCollapsed||!wt.range.isEmpty())}getAllInjectedText(R,Q){const ce=R.getVersionId(),Re=this._injectedTextDecorationsTree.search(Q,!1,ce,!1);return this._ensureNodesHaveRanges(R,Re).filter(Fe=>Fe.options.showIfCollapsed||!Fe.range.isEmpty())}getAll(R,Q,ce,Re,Fe){const Ze=R.getVersionId(),wt=this._search(Q,ce,Re,Ze,Fe);return this._ensureNodesHaveRanges(R,wt)}_search(R,Q,ce,Re,Fe){if(ce)return this._decorationsTree1.search(R,Q,Re,Fe);{const Ze=this._decorationsTree0.search(R,Q,Re,Fe),wt=this._decorationsTree1.search(R,Q,Re,Fe),Lt=this._injectedTextDecorationsTree.search(R,Q,Re,Fe);return Ze.concat(wt).concat(Lt)}}collectNodesFromOwner(R){const Q=this._decorationsTree0.collectNodesFromOwner(R),ce=this._decorationsTree1.collectNodesFromOwner(R),Re=this._injectedTextDecorationsTree.collectNodesFromOwner(R);return Q.concat(ce).concat(Re)}collectNodesPostOrder(){const R=this._decorationsTree0.collectNodesPostOrder(),Q=this._decorationsTree1.collectNodesPostOrder(),ce=this._injectedTextDecorationsTree.collectNodesPostOrder();return R.concat(Q).concat(ce)}insert(R){sn(R)?this._injectedTextDecorationsTree.insert(R):Vt(R)?this._decorationsTree1.insert(R):this._decorationsTree0.insert(R)}delete(R){sn(R)?this._injectedTextDecorationsTree.delete(R):Vt(R)?this._decorationsTree1.delete(R):this._decorationsTree0.delete(R)}getNodeRange(R,Q){const ce=R.getVersionId();return Q.cachedVersionId!==ce&&this._resolveNode(Q,ce),Q.range===null&&(Q.range=R.getRangeAt(Q.cachedAbsoluteStart,Q.cachedAbsoluteEnd)),Q.range}_resolveNode(R,Q){sn(R)?this._injectedTextDecorationsTree.resolveNode(R,Q):Vt(R)?this._decorationsTree1.resolveNode(R,Q):this._decorationsTree0.resolveNode(R,Q)}acceptReplace(R,Q,ce,Re){this._decorationsTree0.acceptReplace(R,Q,ce,Re),this._decorationsTree1.acceptReplace(R,Q,ce,Re),this._injectedTextDecorationsTree.acceptReplace(R,Q,ce,Re)}}function kt(ht){return ht.replace(/[^a-z0-9\-_]/gi," ")}class an{constructor(R){this.color=R.color||"",this.darkColor=R.darkColor||""}}class dn extends an{constructor(R){super(R),this._resolvedColor=null,this.position=typeof R.position=="number"?R.position:m.A5.Center}getColor(R){return this._resolvedColor||(R.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,R):this._resolvedColor=this._resolveColor(this.color,R)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=null}_resolveColor(R,Q){if(typeof R=="string")return R;const ce=R?Q.getColor(R.id):null;return ce?ce.toString():""}}class bn{constructor(R){var Q;this.position=(Q=R?.position)!==null&&Q!==void 0?Q:m.ZS.Center,this.persistLane=R?.persistLane}}class xn extends an{constructor(R){var Q,ce;super(R),this.position=R.position,this.sectionHeaderStyle=(Q=R.sectionHeaderStyle)!==null&&Q!==void 0?Q:null,this.sectionHeaderText=(ce=R.sectionHeaderText)!==null&&ce!==void 0?ce:null}getColor(R){return this._resolvedColor||(R.type!=="light"&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,R):this._resolvedColor=this._resolveColor(this.color,R)),this._resolvedColor}invalidateCachedColor(){this._resolvedColor=void 0}_resolveColor(R,Q){return typeof R=="string"?F.Q1.fromHex(R):Q.getColor(R.id)}}class jn{static from(R){return R instanceof jn?R:new jn(R)}constructor(R){this.content=R.content||"",this.inlineClassName=R.inlineClassName||null,this.inlineClassNameAffectsLetterSpacing=R.inlineClassNameAffectsLetterSpacing||!1,this.attachedData=R.attachedData||null,this.cursorStops=R.cursorStops||null}}class pn{static register(R){return new pn(R)}static createDynamic(R){return new pn(R)}constructor(R){var Q,ce,Re,Fe,Ze,wt;this.description=R.description,this.blockClassName=R.blockClassName?kt(R.blockClassName):null,this.blockDoesNotCollapse=(Q=R.blockDoesNotCollapse)!==null&&Q!==void 0?Q:null,this.blockIsAfterEnd=(ce=R.blockIsAfterEnd)!==null&&ce!==void 0?ce:null,this.blockPadding=(Re=R.blockPadding)!==null&&Re!==void 0?Re:null,this.stickiness=R.stickiness||0,this.zIndex=R.zIndex||0,this.className=R.className?kt(R.className):null,this.shouldFillLineOnLineBreak=(Fe=R.shouldFillLineOnLineBreak)!==null&&Fe!==void 0?Fe:null,this.hoverMessage=R.hoverMessage||null,this.glyphMarginHoverMessage=R.glyphMarginHoverMessage||null,this.lineNumberHoverMessage=R.lineNumberHoverMessage||null,this.isWholeLine=R.isWholeLine||!1,this.showIfCollapsed=R.showIfCollapsed||!1,this.collapseOnReplaceEdit=R.collapseOnReplaceEdit||!1,this.overviewRuler=R.overviewRuler?new dn(R.overviewRuler):null,this.minimap=R.minimap?new xn(R.minimap):null,this.glyphMargin=R.glyphMarginClassName?new bn(R.glyphMargin):null,this.glyphMarginClassName=R.glyphMarginClassName?kt(R.glyphMarginClassName):null,this.linesDecorationsClassName=R.linesDecorationsClassName?kt(R.linesDecorationsClassName):null,this.lineNumberClassName=R.lineNumberClassName?kt(R.lineNumberClassName):null,this.linesDecorationsTooltip=R.linesDecorationsTooltip?g.jy(R.linesDecorationsTooltip):null,this.firstLineDecorationClassName=R.firstLineDecorationClassName?kt(R.firstLineDecorationClassName):null,this.marginClassName=R.marginClassName?kt(R.marginClassName):null,this.inlineClassName=R.inlineClassName?kt(R.inlineClassName):null,this.inlineClassNameAffectsLetterSpacing=R.inlineClassNameAffectsLetterSpacing||!1,this.beforeContentClassName=R.beforeContentClassName?kt(R.beforeContentClassName):null,this.afterContentClassName=R.afterContentClassName?kt(R.afterContentClassName):null,this.after=R.after?jn.from(R.after):null,this.before=R.before?jn.from(R.before):null,this.hideInCommentTokens=(Ze=R.hideInCommentTokens)!==null&&Ze!==void 0?Ze:!1,this.hideInStringTokens=(wt=R.hideInStringTokens)!==null&&wt!==void 0?wt:!1}}pn.EMPTY=pn.register({description:"empty"});const Wn=[pn.register({description:"tracked-range-always-grows-when-typing-at-edges",stickiness:0}),pn.register({description:"tracked-range-never-grows-when-typing-at-edges",stickiness:1}),pn.register({description:"tracked-range-grows-only-when-typing-before",stickiness:2}),pn.register({description:"tracked-range-grows-only-when-typing-after",stickiness:3})];function Qn(ht){return ht instanceof pn?ht:pn.createDynamic(ht)}class ui extends L.jG{constructor(R){super(),this.handleBeforeFire=R,this._actual=this._register(new M.vl),this.event=this._actual.event,this._affectedInjectedTextLines=null,this._deferredCnt=0,this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._affectsLineNumber=!1}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(){var R;this._deferredCnt--,this._deferredCnt===0&&(this._shouldFireDeferred&&this.doFire(),(R=this._affectedInjectedTextLines)===null||R===void 0||R.clear(),this._affectedInjectedTextLines=null)}recordLineAffectedByInjectedText(R){this._affectedInjectedTextLines||(this._affectedInjectedTextLines=new Set),this._affectedInjectedTextLines.add(R)}checkAffectedAndFire(R){var Q,ce;this._affectsMinimap||(this._affectsMinimap=!!(!((Q=R.minimap)===null||Q===void 0)&&Q.position)),this._affectsOverviewRuler||(this._affectsOverviewRuler=!!(!((ce=R.overviewRuler)===null||ce===void 0)&&ce.color)),this._affectsGlyphMargin||(this._affectsGlyphMargin=!!R.glyphMarginClassName),this._affectsLineNumber||(this._affectsLineNumber=!!R.lineNumberClassName),this.tryFire()}fire(){this._affectsMinimap=!0,this._affectsOverviewRuler=!0,this._affectsGlyphMargin=!0,this.tryFire()}tryFire(){this._deferredCnt===0?this.doFire():this._shouldFireDeferred=!0}doFire(){this.handleBeforeFire(this._affectedInjectedTextLines);const R={affectsMinimap:this._affectsMinimap,affectsOverviewRuler:this._affectsOverviewRuler,affectsGlyphMargin:this._affectsGlyphMargin,affectsLineNumber:this._affectsLineNumber};this._shouldFireDeferred=!1,this._affectsMinimap=!1,this._affectsOverviewRuler=!1,this._affectsGlyphMargin=!1,this._actual.fire(R)}}class vi extends L.jG{constructor(){super(),this._fastEmitter=this._register(new M.vl),this.fastEvent=this._fastEmitter.event,this._slowEmitter=this._register(new M.vl),this.slowEvent=this._slowEmitter.event,this._deferredCnt=0,this._deferredEvent=null}beginDeferredEmit(){this._deferredCnt++}endDeferredEmit(R=null){if(this._deferredCnt--,this._deferredCnt===0&&this._deferredEvent!==null){this._deferredEvent.rawContentChangedEvent.resultingSelection=R;const Q=this._deferredEvent;this._deferredEvent=null,this._fastEmitter.fire(Q),this._slowEmitter.fire(Q)}}fire(R){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(R):this._deferredEvent=R;return}this._fastEmitter.fire(R),this._slowEmitter.fire(R)}}class qn{constructor(){this._onDidChangeVisibleRanges=new M.vl,this.onDidChangeVisibleRanges=this._onDidChangeVisibleRanges.event,this._views=new Set}attachView(){const R=new yn(Q=>{this._onDidChangeVisibleRanges.fire({view:R,state:Q})});return this._views.add(R),R}detachView(R){this._views.delete(R),this._onDidChangeVisibleRanges.fire({view:R,state:void 0})}}class yn{constructor(R){this.handleStateChange=R}setVisibleLines(R,Q){const ce=R.map(Re=>new f.M(Re.startLineNumber,Re.endLineNumber+1));this.handleStateChange({visibleLineRanges:ce,stabilized:Q})}}},"./node_modules/monaco-editor/esm/vs/editor/common/model/textModelPart.js":function(pt,Me,e){e.d(Me,{_:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");class F extends r.jG{constructor(){super(...arguments),this._isDisposed=!1}dispose(){super.dispose(),this._isDisposed=!0}assertNotDisposed(){if(this._isDisposed)throw new Error("TextModelPart is disposed!")}}},"./node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js":function(pt,Me,e){e.d(Me,{W5:function(){return i},dr:function(){return S},hB:function(){return d},lt:function(){return x},wC:function(){return n}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js");const g=999;class x{constructor(m,u,C,h){this.searchString=m,this.isRegex=u,this.matchCase=C,this.wordSeparators=h}parseSearchRequest(){if(this.searchString==="")return null;let m;this.isRegex?m=I(this.searchString):m=this.searchString.indexOf(` `)>=0;let u=null;try{u=r.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:m,global:!0,unicode:!0})}catch{return null}if(!u)return null;let C=!this.isRegex&&!m;return C&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(C=this.matchCase),new L.L5(u,this.wordSeparators?(0,F.i)(this.wordSeparators,[]):null,C?this.searchString:null)}}function I(c){if(!c||c.length===0)return!1;for(let m=0,u=c.length;m=u)break;const h=c.charCodeAt(m);if(h===110||h===114||h===87)return!0}}return!1}function S(c,m,u){if(!u)return new L.Dg(c,null);const C=[];for(let h=0,v=m.length;h>0);u[v]>=m?h=v-1:u[v+1]>=m?(C=v,h=v):C=v+1}return C+1}}class d{static findMatches(m,u,C,h,v){const p=u.parseSearchRequest();return p?p.regex.multiline?this._doFindMatchesMultiline(m,C,new i(p.wordSeparators,p.regex),h,v):this._doFindMatchesLineByLine(m,C,p,h,v):[]}static _getMultilineMatchRange(m,u,C,h,v,p){let b,O=0;h?(O=h.findLineFeedCountBeforeOffset(v),b=u+v+O):b=u+v;let w;if(h){const G=h.findLineFeedCountBeforeOffset(v+p.length)-O;w=b+p.length+G}else w=b+p.length;const j=m.getPositionAt(b),U=m.getPositionAt(w);return new M.Q(j.lineNumber,j.column,U.lineNumber,U.column)}static _doFindMatchesMultiline(m,u,C,h,v){const p=m.getOffsetAt(u.getStartPosition()),b=m.getValueInRange(u,1),O=m.getEOL()===`\r `?new f(b):null,w=[];let j=0,U;for(C.reset(0);U=C.next(b);)if(w[j++]=S(this._getMultilineMatchRange(m,p,b,O,U.index,U[0]),U,h),j>=v)return w;return w}static _doFindMatchesLineByLine(m,u,C,h,v){const p=[];let b=0;if(u.startLineNumber===u.endLineNumber){const w=m.getLineContent(u.startLineNumber).substring(u.startColumn-1,u.endColumn-1);return b=this._findMatchesInLine(C,w,u.startLineNumber,u.startColumn-1,b,p,h,v),p}const O=m.getLineContent(u.startLineNumber).substring(u.startColumn-1);b=this._findMatchesInLine(C,O,u.startLineNumber,u.startColumn-1,b,p,h,v);for(let w=u.startLineNumber+1;w=O))return v;return v}const j=new i(m.wordSeparators,m.regex);let U;j.reset(0);do if(U=j.next(u),U&&(p[v++]=S(new M.Q(C,U.index+1+h,C,U.index+1+U[0].length+h),U,b),v>=O))return v;while(U);return v}static findNextMatch(m,u,C,h){const v=u.parseSearchRequest();if(!v)return null;const p=new i(v.wordSeparators,v.regex);return v.regex.multiline?this._doFindNextMatchMultiline(m,C,p,h):this._doFindNextMatchLineByLine(m,C,p,h)}static _doFindNextMatchMultiline(m,u,C,h){const v=new k.y(u.lineNumber,1),p=m.getOffsetAt(v),b=m.getLineCount(),O=m.getValueInRange(new M.Q(v.lineNumber,v.column,b,m.getLineMaxColumn(b)),1),w=m.getEOL()===`\r `?new f(O):null;C.reset(u.column-1);const j=C.next(O);return j?S(this._getMultilineMatchRange(m,p,O,w,j.index,j[0]),j,h):u.lineNumber!==1||u.column!==1?this._doFindNextMatchMultiline(m,new k.y(1,1),C,h):null}static _doFindNextMatchLineByLine(m,u,C,h){const v=m.getLineCount(),p=u.lineNumber,b=m.getLineContent(p),O=this._findFirstMatchInLine(C,b,p,u.column,h);if(O)return O;for(let w=1;w<=v;w++){const j=(p+w-1)%v,U=m.getLineContent(j+1),K=this._findFirstMatchInLine(C,U,j+1,1,h);if(K)return K}return null}static _findFirstMatchInLine(m,u,C,h,v){m.reset(h-1);const p=m.next(u);return p?S(new M.Q(C,p.index+1,C,p.index+1+p[0].length),p,v):null}static findPreviousMatch(m,u,C,h){const v=u.parseSearchRequest();if(!v)return null;const p=new i(v.wordSeparators,v.regex);return v.regex.multiline?this._doFindPreviousMatchMultiline(m,C,p,h):this._doFindPreviousMatchLineByLine(m,C,p,h)}static _doFindPreviousMatchMultiline(m,u,C,h){const v=this._doFindMatchesMultiline(m,new M.Q(1,1,u.lineNumber,u.column),C,h,10*g);if(v.length>0)return v[v.length-1];const p=m.getLineCount();return u.lineNumber!==p||u.column!==m.getLineMaxColumn(p)?this._doFindPreviousMatchMultiline(m,new k.y(p,m.getLineMaxColumn(p)),C,h):null}static _doFindPreviousMatchLineByLine(m,u,C,h){const v=m.getLineCount(),p=u.lineNumber,b=m.getLineContent(p).substring(0,u.column-1),O=this._findLastMatchInLine(C,b,p,h);if(O)return O;for(let w=1;w<=v;w++){const j=(v+p-w-1)%v,U=m.getLineContent(j+1),K=this._findLastMatchInLine(C,U,j+1,h);if(K)return K}return null}static _findLastMatchInLine(m,u,C,h){let v=null,p;for(m.reset(0);p=m.next(u);)v=S(new M.Q(C,p.index+1,C,p.index+1+p[0].length),p,h);return v}}function a(c,m,u,C,h){if(C===0)return!0;const v=m.charCodeAt(C-1);if(c.get(v)!==0||v===13||v===10)return!0;if(h>0){const p=m.charCodeAt(C);if(c.get(p)!==0)return!0}return!1}function s(c,m,u,C,h){if(C+h===u)return!0;const v=m.charCodeAt(C+h);if(c.get(v)!==0||v===13||v===10)return!0;if(h>0){const p=m.charCodeAt(C+h-1);if(c.get(p)!==0)return!0}return!1}function n(c,m,u,C,h){return a(c,m,u,C,h)&&s(c,m,u,C,h)}class i{constructor(m,u){this._wordSeparators=m,this._searchRegex=u,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(m){this._searchRegex.lastIndex=m,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(m){const u=m.length;let C;do{if(this._prevMatchStartIndex+this._prevMatchLength===u||(C=this._searchRegex.exec(m),!C))return null;const h=C.index,v=C[0].length;if(h===this._prevMatchStartIndex&&v===this._prevMatchLength){if(v===0){r.Z5(m,u,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=h,this._prevMatchLength=v,!this._wordSeparators||n(this._wordSeparators,m,u,h,v))return C}while(C);return null}}},"./node_modules/monaco-editor/esm/vs/editor/common/model/utils.js":function(pt,Me,e){e.d(Me,{G:function(){return r}});function r(F,k){let M=0,L=0;const g=F.length;for(;L=0;b--)(p=c[b])&&(v=(h<3?p(v):h>3?p(m,u,v):p(m,u))||v);return h>3&&v&&Object.defineProperty(m,u,v),v},f=function(c,m){return function(u,C){m(u,C,c)}};const d=(0,g.u1)("ILanguageFeatureDebounceService");var a;(function(c){const m=new WeakMap;let u=0;function C(h){let v=m.get(h);return v===void 0&&(v=++u,m.set(h,v)),v}c.of=C})(a||(a={}));class s{constructor(m){this._default=m}get(m){return this._default}update(m,u){return this._default}default(){return this._default}}class n{constructor(m,u,C,h,v,p){this._logService=m,this._name=u,this._registry=C,this._default=h,this._min=v,this._max=p,this._cache=new F.qK(50,.7)}_key(m){return m.id+this._registry.all(m).reduce((u,C)=>(0,r.sN)(a.of(C),u),0)}get(m){const u=this._key(m),C=this._cache.get(u);return C?(0,k.qE)(C.value,this._min,this._max):this.default()}update(m,u){const C=this._key(m);let h=this._cache.get(C);h||(h=new k.mu(6),this._cache.set(C,h));const v=(0,k.qE)(h.update(u),this._min,this._max);return(0,I.v$)(m.uri,"output")||this._logService.trace(`[DEBOUNCE: ${this._name}] for ${m.uri.toString()} is ${v}ms`),v}_overall(){const m=new k.Uq;for(const[,u]of this._cache)m.update(u.value);return m.value}default(){const m=this._overall()|0||this._default;return(0,k.qE)(m,this._min,this._max)}}let i=class{constructor(m,u){this._logService=m,this._data=new Map,this._isDev=u.isExtensionDevelopment||!u.isBuilt}for(m,u,C){var h,v,p;const b=(h=C?.min)!==null&&h!==void 0?h:50,O=(v=C?.max)!==null&&v!==void 0?v:b**2,w=(p=C?.key)!==null&&p!==void 0?p:void 0,j=`${a.of(m)},${b}${w?","+w:""}`;let U=this._data.get(j);return U||(this._isDev?U=new n(this._logService,u,m,this._overallAverage()|0||b*1.5,b,O):(this._logService.debug(`[DEBOUNCE: ${u}] is disabled in developed mode`),U=new s(b*1.5)),this._data.set(j,U)),U}_overallAverage(){const m=new k.Uq;for(const u of this._data.values())m.update(u.default());return m.value}};i=S([f(0,x.rr),f(1,M.k)],i),(0,L.v)(d,i,1)},"./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js":function(pt,Me,e){e.d(Me,{u:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("ILanguageFeaturesService")},"./node_modules/monaco-editor/esm/vs/editor/common/services/markerDecorations.js":function(pt,Me,e){e.d(Me,{A:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("markerDecorationsService")},"./node_modules/monaco-editor/esm/vs/editor/common/services/model.js":function(pt,Me,e){e.d(Me,{S:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("modelService")},"./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js":function(pt,Me,e){e.d(Me,{b:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("textModelService")},"./node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js":function(pt,Me,e){e.d(Me,{i:function(){return s},b:function(){return n}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/encodedTokenAttributes.js"),F=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),k=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/eolCounter.js");class x{static create(u,C){return new x(u,new I(C))}get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._endLineNumber}constructor(u,C){this._startLineNumber=u,this._tokens=C,this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}toString(){return this._tokens.toString(this._startLineNumber)}_updateEndLineNumber(){this._endLineNumber=this._startLineNumber+this._tokens.getMaxDeltaLine()}isEmpty(){return this._tokens.isEmpty()}getLineTokens(u){return this._startLineNumber<=u&&u<=this._endLineNumber?this._tokens.getLineTokens(u-this._startLineNumber):null}getRange(){const u=this._tokens.getRange();return u&&new L.Q(this._startLineNumber+u.startLineNumber,u.startColumn,this._startLineNumber+u.endLineNumber,u.endColumn)}removeTokens(u){const C=u.startLineNumber-this._startLineNumber,h=u.endLineNumber-this._startLineNumber;this._startLineNumber+=this._tokens.removeTokens(C,u.startColumn-1,h,u.endColumn-1),this._updateEndLineNumber()}split(u){const C=u.startLineNumber-this._startLineNumber,h=u.endLineNumber-this._startLineNumber,[v,p,b]=this._tokens.split(C,u.startColumn-1,h,u.endColumn-1);return[new x(this._startLineNumber,v),new x(this._startLineNumber+b,p)]}applyEdit(u,C){const[h,v,p]=(0,g.W)(C);this.acceptEdit(u,h,v,p,C.length>0?C.charCodeAt(0):0)}acceptEdit(u,C,h,v,p){this._acceptDeleteRange(u),this._acceptInsertText(new M.y(u.startLineNumber,u.startColumn),C,h,v,p),this._updateEndLineNumber()}_acceptDeleteRange(u){if(u.startLineNumber===u.endLineNumber&&u.startColumn===u.endColumn)return;const C=u.startLineNumber-this._startLineNumber,h=u.endLineNumber-this._startLineNumber;if(h<0){const p=h-C;this._startLineNumber-=p;return}const v=this._tokens.getMaxDeltaLine();if(!(C>=v+1)){if(C<0&&h>=v+1){this._startLineNumber=0,this._tokens.clear();return}if(C<0){const p=-C;this._startLineNumber-=p,this._tokens.acceptDeleteRange(u.startColumn-1,0,0,h,u.endColumn-1)}else this._tokens.acceptDeleteRange(0,C,u.startColumn-1,h,u.endColumn-1)}}_acceptInsertText(u,C,h,v,p){if(C===0&&h===0)return;const b=u.lineNumber-this._startLineNumber;if(b<0){this._startLineNumber+=C;return}const O=this._tokens.getMaxDeltaLine();b>=O+1||this._tokens.acceptInsertText(b,u.column-1,C,h,v,p)}}class I{constructor(u){this._tokens=u,this._tokenCount=u.length/4}toString(u){const C=[];for(let h=0;hu)h=v-1;else{let b=v;for(;b>C&&this._getDeltaLine(b-1)===u;)b--;let O=v;for(;Ou||G===u&&A>=C)&&(Gu||A===u&&E>=C){if(Ap?T-=p-h:T=h;else if(P===C&&A===h)if(P===v&&T>p)T-=p-h;else{U=!0;continue}else if(Pp)P=C,A=h,T=A+(T-p);else{U=!0;continue}else if(P>v){if(w===0&&!U){j=O;break}P-=w}else if(P===v&&A>=p)u&&P===0&&(A+=u,T+=u),P-=w,A-=p-h,T-=p-h;else throw new Error("Not possible!");const W=4*j;b[W]=P,b[W+1]=A,b[W+2]=T,b[W+3]=E,j++}this._tokenCount=j}acceptInsertText(u,C,h,v,p,b){const O=h===0&&v===1&&(b>=48&&b<=57||b>=65&&b<=90||b>=97&&b<=122),w=this._tokens,j=this._tokenCount;for(let U=0;U=0;O--)(b=m[O])&&(p=(v<3?b(p):v>3?b(u,C,p):b(u,C))||p);return v>3&&p&&Object.defineProperty(u,C,p),p},a=function(m,u){return function(C,h){u(C,h,m)}};let s=class{constructor(u,C,h,v){this._legend=u,this._themeService=C,this._languageService=h,this._logService=v,this._hasWarnedOverlappingTokens=!1,this._hasWarnedInvalidLengthTokens=!1,this._hasWarnedInvalidEditStart=!1,this._hashTable=new c}getMetadata(u,C,h){const v=this._languageService.languageIdCodec.encodeLanguageId(h),p=this._hashTable.get(u,C,v);let b;if(p)b=p.metadata,this._logService.getLevel()===k.$b.Trace&&this._logService.trace(`SemanticTokensProviderStyling [CACHED] ${u} / ${C}: foreground ${r.x.getForeground(b)}, fontStyle ${r.x.getFontStyle(b).toString(2)}`);else{let O=this._legend.tokenTypes[u];const w=[];if(O){let j=C;for(let K=0;j>0&&K>1;j>0&&this._logService.getLevel()===k.$b.Trace&&(this._logService.trace(`SemanticTokensProviderStyling: unknown token modifier index: ${C.toString(2)} for legend: ${JSON.stringify(this._legend.tokenModifiers)}`),w.push("not-in-legend"));const U=this._themeService.getColorTheme().getTokenStyleMetadata(O,w,h);if(typeof U>"u")b=2147483647;else{if(b=0,typeof U.italic<"u"){const K=(U.italic?1:0)<<11;b|=K|1}if(typeof U.bold<"u"){const K=(U.bold?2:0)<<11;b|=K|2}if(typeof U.underline<"u"){const K=(U.underline?4:0)<<11;b|=K|4}if(typeof U.strikethrough<"u"){const K=(U.strikethrough?8:0)<<11;b|=K|8}if(U.foreground){const K=U.foreground<<15;b|=K|16}b===0&&(b=2147483647)}}else this._logService.getLevel()===k.$b.Trace&&this._logService.trace(`SemanticTokensProviderStyling: unknown token type index: ${u} for legend: ${JSON.stringify(this._legend.tokenTypes)}`),b=2147483647,O="not-in-legend";this._hashTable.add(u,C,v,b),this._logService.getLevel()===k.$b.Trace&&this._logService.trace(`SemanticTokensProviderStyling ${u} (${O}) / ${C} (${w.join(" ")}): foreground ${r.x.getForeground(b)}, fontStyle ${r.x.getFontStyle(b).toString(2)}`)}return b}warnOverlappingSemanticTokens(u,C){this._hasWarnedOverlappingTokens||(this._hasWarnedOverlappingTokens=!0,this._logService.warn(`Overlapping semantic tokens detected at lineNumber ${u}, column ${C}`))}warnInvalidLengthSemanticTokens(u,C){this._hasWarnedInvalidLengthTokens||(this._hasWarnedInvalidLengthTokens=!0,this._logService.warn(`Semantic token with invalid length detected at lineNumber ${u}, column ${C}`))}warnInvalidEditStart(u,C,h,v,p){this._hasWarnedInvalidEditStart||(this._hasWarnedInvalidEditStart=!0,this._logService.warn(`Invalid semantic tokens edit detected (previousResultId: ${u}, resultId: ${C}) at edit #${h}: The provided start offset ${v} is outside the previous data (length ${p}).`))}};s=d([a(1,F.Gy),a(2,f.L),a(3,k.rr)],s);function n(m,u,C){const h=m.data,v=m.data.length/5|0,p=Math.max(Math.ceil(v/1024),400),b=[];let O=0,w=1,j=0;for(;OU&&h[5*$]===0;)$--;if($-1===U){let z=K;for(;z+1V)u.warnOverlappingSemanticTokens(B,V+1);else{const te=u.getMetadata(ie,re,C);te!==2147483647&&(A===0&&(A=B),G[P]=B-A,G[P+1]=V,G[P+2]=X,G[P+3]=te,P+=4,T=B,E=X)}w=B,j=V,O++}P!==G.length&&(G=G.subarray(0,P));const W=x.create(A,G);b.push(W)}return b}class i{constructor(u,C,h,v){this.tokenTypeIndex=u,this.tokenModifierSet=C,this.languageId=h,this.metadata=v,this.next=null}}class c{constructor(){this._elementsCount=0,this._currentLengthIndex=0,this._currentLength=c._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+1=this._growCount){const p=this._elements;this._currentLengthIndex++,this._currentLength=c._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+10){const $=K.charCodeAt(P-1);k.pc($)&&P--}if(A+1=1e3){v=!0;break e}h.push(new r.Q(j,P+1,j,A+1))}}while(p)}return{ranges:h,hasMore:v,ambiguousCharacterCount:b,invisibleCharacterCount:O,nonBasicAsciiCharacterCount:w}}static computeUnicodeHighlightReason(d,a){const s=new I(a);switch(s.shouldHighlightNonBasicASCII(d,null)){case 0:return null;case 2:return{kind:1};case 3:{const i=d.codePointAt(0),c=s.ambiguousCharacters.getPrimaryConfusable(i),m=k.tl.getLocales().filter(u=>!k.tl.getInstance(new Set([...a.allowedLocales,u])).isAmbiguous(i));return{kind:0,confusableWith:String.fromCodePoint(c),notAmbiguousInLocales:m}}case 1:return{kind:2}}}}function x(f,d){return`[${k.bm(f.map(s=>String.fromCodePoint(s)).join(""))}]`}class I{constructor(d){this.options=d,this.allowedCodePoints=new Set(d.allowedCodePoints),this.ambiguousCharacters=k.tl.getInstance(new Set(d.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const d=new Set;if(this.options.invisibleCharacters)for(const a of k.y_.codePoints)S(String.fromCodePoint(a))||d.add(a);if(this.options.ambiguousCharacters)for(const a of this.ambiguousCharacters.getConfusableCodePoints())d.add(a);for(const a of this.allowedCodePoints)d.delete(a);return d}shouldHighlightNonBasicASCII(d,a){const s=d.codePointAt(0);if(this.allowedCodePoints.has(s))return 0;if(this.options.nonBasicASCII)return 1;let n=!1,i=!1;if(a)for(const c of a){const m=c.codePointAt(0),u=k.aC(c);n=n||u,!u&&!this.ambiguousCharacters.isAmbiguous(m)&&!k.y_.isInvisibleCharacter(m)&&(i=!0)}return!n&&i?0:this.options.invisibleCharacters&&!S(d)&&k.y_.isInvisibleCharacter(s)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(s)?3:0}}function S(f){return f===" "||f===` `||f===" "}},"./node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js":function(pt,Me,e){e.d(Me,{A5:function(){return G},Ah:function(){return P},DD:function(){return v},DO:function(){return T},Gn:function(){return r},H_:function(){return Y},Ic:function(){return A},Io:function(){return M},Kb:function(){return f},OV:function(){return U},QP:function(){return L},Qj:function(){return x},R3:function(){return O},SB:function(){return z},U7:function(){return X},VW:function(){return m},VX:function(){return w},WA:function(){return B},WU:function(){return n},XR:function(){return $},ZS:function(){return i},_E:function(){return k},cj:function(){return p},dE:function(){return K},d_:function(){return b},e0:function(){return d},h5:function(){return I},hS:function(){return j},hW:function(){return E},jT:function(){return J},kK:function(){return re},kf:function(){return s},l:function(){return c},m9:function(){return ie},of:function(){return S},ok:function(){return F},ov:function(){return W},p2:function(){return a},qw:function(){return C},r4:function(){return u},sm:function(){return h},t7:function(){return g},tJ:function(){return te},v0:function(){return V}});var r;(function(D){D[D.Unknown=0]="Unknown",D[D.Disabled=1]="Disabled",D[D.Enabled=2]="Enabled"})(r||(r={}));var F;(function(D){D[D.Invoke=1]="Invoke",D[D.Auto=2]="Auto"})(F||(F={}));var k;(function(D){D[D.None=0]="None",D[D.KeepWhitespace=1]="KeepWhitespace",D[D.InsertAsSnippet=4]="InsertAsSnippet"})(k||(k={}));var M;(function(D){D[D.Method=0]="Method",D[D.Function=1]="Function",D[D.Constructor=2]="Constructor",D[D.Field=3]="Field",D[D.Variable=4]="Variable",D[D.Class=5]="Class",D[D.Struct=6]="Struct",D[D.Interface=7]="Interface",D[D.Module=8]="Module",D[D.Property=9]="Property",D[D.Event=10]="Event",D[D.Operator=11]="Operator",D[D.Unit=12]="Unit",D[D.Value=13]="Value",D[D.Constant=14]="Constant",D[D.Enum=15]="Enum",D[D.EnumMember=16]="EnumMember",D[D.Keyword=17]="Keyword",D[D.Text=18]="Text",D[D.Color=19]="Color",D[D.File=20]="File",D[D.Reference=21]="Reference",D[D.Customcolor=22]="Customcolor",D[D.Folder=23]="Folder",D[D.TypeParameter=24]="TypeParameter",D[D.User=25]="User",D[D.Issue=26]="Issue",D[D.Snippet=27]="Snippet"})(M||(M={}));var L;(function(D){D[D.Deprecated=1]="Deprecated"})(L||(L={}));var g;(function(D){D[D.Invoke=0]="Invoke",D[D.TriggerCharacter=1]="TriggerCharacter",D[D.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(g||(g={}));var x;(function(D){D[D.EXACT=0]="EXACT",D[D.ABOVE=1]="ABOVE",D[D.BELOW=2]="BELOW"})(x||(x={}));var I;(function(D){D[D.NotSet=0]="NotSet",D[D.ContentFlush=1]="ContentFlush",D[D.RecoverFromMarkers=2]="RecoverFromMarkers",D[D.Explicit=3]="Explicit",D[D.Paste=4]="Paste",D[D.Undo=5]="Undo",D[D.Redo=6]="Redo"})(I||(I={}));var S;(function(D){D[D.LF=1]="LF",D[D.CRLF=2]="CRLF"})(S||(S={}));var f;(function(D){D[D.Text=0]="Text",D[D.Read=1]="Read",D[D.Write=2]="Write"})(f||(f={}));var d;(function(D){D[D.None=0]="None",D[D.Keep=1]="Keep",D[D.Brackets=2]="Brackets",D[D.Advanced=3]="Advanced",D[D.Full=4]="Full"})(d||(d={}));var a;(function(D){D[D.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",D[D.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",D[D.accessibilitySupport=2]="accessibilitySupport",D[D.accessibilityPageSize=3]="accessibilityPageSize",D[D.ariaLabel=4]="ariaLabel",D[D.ariaRequired=5]="ariaRequired",D[D.autoClosingBrackets=6]="autoClosingBrackets",D[D.autoClosingComments=7]="autoClosingComments",D[D.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",D[D.autoClosingDelete=9]="autoClosingDelete",D[D.autoClosingOvertype=10]="autoClosingOvertype",D[D.autoClosingQuotes=11]="autoClosingQuotes",D[D.autoIndent=12]="autoIndent",D[D.automaticLayout=13]="automaticLayout",D[D.autoSurround=14]="autoSurround",D[D.bracketPairColorization=15]="bracketPairColorization",D[D.guides=16]="guides",D[D.codeLens=17]="codeLens",D[D.codeLensFontFamily=18]="codeLensFontFamily",D[D.codeLensFontSize=19]="codeLensFontSize",D[D.colorDecorators=20]="colorDecorators",D[D.colorDecoratorsLimit=21]="colorDecoratorsLimit",D[D.columnSelection=22]="columnSelection",D[D.comments=23]="comments",D[D.contextmenu=24]="contextmenu",D[D.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",D[D.cursorBlinking=26]="cursorBlinking",D[D.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",D[D.cursorStyle=28]="cursorStyle",D[D.cursorSurroundingLines=29]="cursorSurroundingLines",D[D.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",D[D.cursorWidth=31]="cursorWidth",D[D.disableLayerHinting=32]="disableLayerHinting",D[D.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",D[D.domReadOnly=34]="domReadOnly",D[D.dragAndDrop=35]="dragAndDrop",D[D.dropIntoEditor=36]="dropIntoEditor",D[D.emptySelectionClipboard=37]="emptySelectionClipboard",D[D.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",D[D.extraEditorClassName=39]="extraEditorClassName",D[D.fastScrollSensitivity=40]="fastScrollSensitivity",D[D.find=41]="find",D[D.fixedOverflowWidgets=42]="fixedOverflowWidgets",D[D.folding=43]="folding",D[D.foldingStrategy=44]="foldingStrategy",D[D.foldingHighlight=45]="foldingHighlight",D[D.foldingImportsByDefault=46]="foldingImportsByDefault",D[D.foldingMaximumRegions=47]="foldingMaximumRegions",D[D.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",D[D.fontFamily=49]="fontFamily",D[D.fontInfo=50]="fontInfo",D[D.fontLigatures=51]="fontLigatures",D[D.fontSize=52]="fontSize",D[D.fontWeight=53]="fontWeight",D[D.fontVariations=54]="fontVariations",D[D.formatOnPaste=55]="formatOnPaste",D[D.formatOnType=56]="formatOnType",D[D.glyphMargin=57]="glyphMargin",D[D.gotoLocation=58]="gotoLocation",D[D.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",D[D.hover=60]="hover",D[D.inDiffEditor=61]="inDiffEditor",D[D.inlineSuggest=62]="inlineSuggest",D[D.inlineEdit=63]="inlineEdit",D[D.letterSpacing=64]="letterSpacing",D[D.lightbulb=65]="lightbulb",D[D.lineDecorationsWidth=66]="lineDecorationsWidth",D[D.lineHeight=67]="lineHeight",D[D.lineNumbers=68]="lineNumbers",D[D.lineNumbersMinChars=69]="lineNumbersMinChars",D[D.linkedEditing=70]="linkedEditing",D[D.links=71]="links",D[D.matchBrackets=72]="matchBrackets",D[D.minimap=73]="minimap",D[D.mouseStyle=74]="mouseStyle",D[D.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",D[D.mouseWheelZoom=76]="mouseWheelZoom",D[D.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",D[D.multiCursorModifier=78]="multiCursorModifier",D[D.multiCursorPaste=79]="multiCursorPaste",D[D.multiCursorLimit=80]="multiCursorLimit",D[D.occurrencesHighlight=81]="occurrencesHighlight",D[D.overviewRulerBorder=82]="overviewRulerBorder",D[D.overviewRulerLanes=83]="overviewRulerLanes",D[D.padding=84]="padding",D[D.pasteAs=85]="pasteAs",D[D.parameterHints=86]="parameterHints",D[D.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",D[D.definitionLinkOpensInPeek=88]="definitionLinkOpensInPeek",D[D.quickSuggestions=89]="quickSuggestions",D[D.quickSuggestionsDelay=90]="quickSuggestionsDelay",D[D.readOnly=91]="readOnly",D[D.readOnlyMessage=92]="readOnlyMessage",D[D.renameOnType=93]="renameOnType",D[D.renderControlCharacters=94]="renderControlCharacters",D[D.renderFinalNewline=95]="renderFinalNewline",D[D.renderLineHighlight=96]="renderLineHighlight",D[D.renderLineHighlightOnlyWhenFocus=97]="renderLineHighlightOnlyWhenFocus",D[D.renderValidationDecorations=98]="renderValidationDecorations",D[D.renderWhitespace=99]="renderWhitespace",D[D.revealHorizontalRightPadding=100]="revealHorizontalRightPadding",D[D.roundedSelection=101]="roundedSelection",D[D.rulers=102]="rulers",D[D.scrollbar=103]="scrollbar",D[D.scrollBeyondLastColumn=104]="scrollBeyondLastColumn",D[D.scrollBeyondLastLine=105]="scrollBeyondLastLine",D[D.scrollPredominantAxis=106]="scrollPredominantAxis",D[D.selectionClipboard=107]="selectionClipboard",D[D.selectionHighlight=108]="selectionHighlight",D[D.selectOnLineNumbers=109]="selectOnLineNumbers",D[D.showFoldingControls=110]="showFoldingControls",D[D.showUnused=111]="showUnused",D[D.snippetSuggestions=112]="snippetSuggestions",D[D.smartSelect=113]="smartSelect",D[D.smoothScrolling=114]="smoothScrolling",D[D.stickyScroll=115]="stickyScroll",D[D.stickyTabStops=116]="stickyTabStops",D[D.stopRenderingLineAfter=117]="stopRenderingLineAfter",D[D.suggest=118]="suggest",D[D.suggestFontSize=119]="suggestFontSize",D[D.suggestLineHeight=120]="suggestLineHeight",D[D.suggestOnTriggerCharacters=121]="suggestOnTriggerCharacters",D[D.suggestSelection=122]="suggestSelection",D[D.tabCompletion=123]="tabCompletion",D[D.tabIndex=124]="tabIndex",D[D.unicodeHighlighting=125]="unicodeHighlighting",D[D.unusualLineTerminators=126]="unusualLineTerminators",D[D.useShadowDOM=127]="useShadowDOM",D[D.useTabStops=128]="useTabStops",D[D.wordBreak=129]="wordBreak",D[D.wordSegmenterLocales=130]="wordSegmenterLocales",D[D.wordSeparators=131]="wordSeparators",D[D.wordWrap=132]="wordWrap",D[D.wordWrapBreakAfterCharacters=133]="wordWrapBreakAfterCharacters",D[D.wordWrapBreakBeforeCharacters=134]="wordWrapBreakBeforeCharacters",D[D.wordWrapColumn=135]="wordWrapColumn",D[D.wordWrapOverride1=136]="wordWrapOverride1",D[D.wordWrapOverride2=137]="wordWrapOverride2",D[D.wrappingIndent=138]="wrappingIndent",D[D.wrappingStrategy=139]="wrappingStrategy",D[D.showDeprecated=140]="showDeprecated",D[D.inlayHints=141]="inlayHints",D[D.editorClassName=142]="editorClassName",D[D.pixelRatio=143]="pixelRatio",D[D.tabFocusMode=144]="tabFocusMode",D[D.layoutInfo=145]="layoutInfo",D[D.wrappingInfo=146]="wrappingInfo",D[D.defaultColorDecorators=147]="defaultColorDecorators",D[D.colorDecoratorsActivatedOn=148]="colorDecoratorsActivatedOn",D[D.inlineCompletionsAccessibilityVerbose=149]="inlineCompletionsAccessibilityVerbose"})(a||(a={}));var s;(function(D){D[D.TextDefined=0]="TextDefined",D[D.LF=1]="LF",D[D.CRLF=2]="CRLF"})(s||(s={}));var n;(function(D){D[D.LF=0]="LF",D[D.CRLF=1]="CRLF"})(n||(n={}));var i;(function(D){D[D.Left=1]="Left",D[D.Center=2]="Center",D[D.Right=3]="Right"})(i||(i={}));var c;(function(D){D[D.None=0]="None",D[D.Indent=1]="Indent",D[D.IndentOutdent=2]="IndentOutdent",D[D.Outdent=3]="Outdent"})(c||(c={}));var m;(function(D){D[D.Both=0]="Both",D[D.Right=1]="Right",D[D.Left=2]="Left",D[D.None=3]="None"})(m||(m={}));var u;(function(D){D[D.Type=1]="Type",D[D.Parameter=2]="Parameter"})(u||(u={}));var C;(function(D){D[D.Automatic=0]="Automatic",D[D.Explicit=1]="Explicit"})(C||(C={}));var h;(function(D){D[D.Invoke=0]="Invoke",D[D.Automatic=1]="Automatic"})(h||(h={}));var v;(function(D){D[D.DependsOnKbLayout=-1]="DependsOnKbLayout",D[D.Unknown=0]="Unknown",D[D.Backspace=1]="Backspace",D[D.Tab=2]="Tab",D[D.Enter=3]="Enter",D[D.Shift=4]="Shift",D[D.Ctrl=5]="Ctrl",D[D.Alt=6]="Alt",D[D.PauseBreak=7]="PauseBreak",D[D.CapsLock=8]="CapsLock",D[D.Escape=9]="Escape",D[D.Space=10]="Space",D[D.PageUp=11]="PageUp",D[D.PageDown=12]="PageDown",D[D.End=13]="End",D[D.Home=14]="Home",D[D.LeftArrow=15]="LeftArrow",D[D.UpArrow=16]="UpArrow",D[D.RightArrow=17]="RightArrow",D[D.DownArrow=18]="DownArrow",D[D.Insert=19]="Insert",D[D.Delete=20]="Delete",D[D.Digit0=21]="Digit0",D[D.Digit1=22]="Digit1",D[D.Digit2=23]="Digit2",D[D.Digit3=24]="Digit3",D[D.Digit4=25]="Digit4",D[D.Digit5=26]="Digit5",D[D.Digit6=27]="Digit6",D[D.Digit7=28]="Digit7",D[D.Digit8=29]="Digit8",D[D.Digit9=30]="Digit9",D[D.KeyA=31]="KeyA",D[D.KeyB=32]="KeyB",D[D.KeyC=33]="KeyC",D[D.KeyD=34]="KeyD",D[D.KeyE=35]="KeyE",D[D.KeyF=36]="KeyF",D[D.KeyG=37]="KeyG",D[D.KeyH=38]="KeyH",D[D.KeyI=39]="KeyI",D[D.KeyJ=40]="KeyJ",D[D.KeyK=41]="KeyK",D[D.KeyL=42]="KeyL",D[D.KeyM=43]="KeyM",D[D.KeyN=44]="KeyN",D[D.KeyO=45]="KeyO",D[D.KeyP=46]="KeyP",D[D.KeyQ=47]="KeyQ",D[D.KeyR=48]="KeyR",D[D.KeyS=49]="KeyS",D[D.KeyT=50]="KeyT",D[D.KeyU=51]="KeyU",D[D.KeyV=52]="KeyV",D[D.KeyW=53]="KeyW",D[D.KeyX=54]="KeyX",D[D.KeyY=55]="KeyY",D[D.KeyZ=56]="KeyZ",D[D.Meta=57]="Meta",D[D.ContextMenu=58]="ContextMenu",D[D.F1=59]="F1",D[D.F2=60]="F2",D[D.F3=61]="F3",D[D.F4=62]="F4",D[D.F5=63]="F5",D[D.F6=64]="F6",D[D.F7=65]="F7",D[D.F8=66]="F8",D[D.F9=67]="F9",D[D.F10=68]="F10",D[D.F11=69]="F11",D[D.F12=70]="F12",D[D.F13=71]="F13",D[D.F14=72]="F14",D[D.F15=73]="F15",D[D.F16=74]="F16",D[D.F17=75]="F17",D[D.F18=76]="F18",D[D.F19=77]="F19",D[D.F20=78]="F20",D[D.F21=79]="F21",D[D.F22=80]="F22",D[D.F23=81]="F23",D[D.F24=82]="F24",D[D.NumLock=83]="NumLock",D[D.ScrollLock=84]="ScrollLock",D[D.Semicolon=85]="Semicolon",D[D.Equal=86]="Equal",D[D.Comma=87]="Comma",D[D.Minus=88]="Minus",D[D.Period=89]="Period",D[D.Slash=90]="Slash",D[D.Backquote=91]="Backquote",D[D.BracketLeft=92]="BracketLeft",D[D.Backslash=93]="Backslash",D[D.BracketRight=94]="BracketRight",D[D.Quote=95]="Quote",D[D.OEM_8=96]="OEM_8",D[D.IntlBackslash=97]="IntlBackslash",D[D.Numpad0=98]="Numpad0",D[D.Numpad1=99]="Numpad1",D[D.Numpad2=100]="Numpad2",D[D.Numpad3=101]="Numpad3",D[D.Numpad4=102]="Numpad4",D[D.Numpad5=103]="Numpad5",D[D.Numpad6=104]="Numpad6",D[D.Numpad7=105]="Numpad7",D[D.Numpad8=106]="Numpad8",D[D.Numpad9=107]="Numpad9",D[D.NumpadMultiply=108]="NumpadMultiply",D[D.NumpadAdd=109]="NumpadAdd",D[D.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",D[D.NumpadSubtract=111]="NumpadSubtract",D[D.NumpadDecimal=112]="NumpadDecimal",D[D.NumpadDivide=113]="NumpadDivide",D[D.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",D[D.ABNT_C1=115]="ABNT_C1",D[D.ABNT_C2=116]="ABNT_C2",D[D.AudioVolumeMute=117]="AudioVolumeMute",D[D.AudioVolumeUp=118]="AudioVolumeUp",D[D.AudioVolumeDown=119]="AudioVolumeDown",D[D.BrowserSearch=120]="BrowserSearch",D[D.BrowserHome=121]="BrowserHome",D[D.BrowserBack=122]="BrowserBack",D[D.BrowserForward=123]="BrowserForward",D[D.MediaTrackNext=124]="MediaTrackNext",D[D.MediaTrackPrevious=125]="MediaTrackPrevious",D[D.MediaStop=126]="MediaStop",D[D.MediaPlayPause=127]="MediaPlayPause",D[D.LaunchMediaPlayer=128]="LaunchMediaPlayer",D[D.LaunchMail=129]="LaunchMail",D[D.LaunchApp2=130]="LaunchApp2",D[D.Clear=131]="Clear",D[D.MAX_VALUE=132]="MAX_VALUE"})(v||(v={}));var p;(function(D){D[D.Hint=1]="Hint",D[D.Info=2]="Info",D[D.Warning=4]="Warning",D[D.Error=8]="Error"})(p||(p={}));var b;(function(D){D[D.Unnecessary=1]="Unnecessary",D[D.Deprecated=2]="Deprecated"})(b||(b={}));var O;(function(D){D[D.Inline=1]="Inline",D[D.Gutter=2]="Gutter"})(O||(O={}));var w;(function(D){D[D.Normal=1]="Normal",D[D.Underlined=2]="Underlined"})(w||(w={}));var j;(function(D){D[D.UNKNOWN=0]="UNKNOWN",D[D.TEXTAREA=1]="TEXTAREA",D[D.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",D[D.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",D[D.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",D[D.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",D[D.CONTENT_TEXT=6]="CONTENT_TEXT",D[D.CONTENT_EMPTY=7]="CONTENT_EMPTY",D[D.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",D[D.CONTENT_WIDGET=9]="CONTENT_WIDGET",D[D.OVERVIEW_RULER=10]="OVERVIEW_RULER",D[D.SCROLLBAR=11]="SCROLLBAR",D[D.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",D[D.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(j||(j={}));var U;(function(D){D[D.AIGenerated=1]="AIGenerated"})(U||(U={}));var K;(function(D){D[D.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",D[D.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",D[D.TOP_CENTER=2]="TOP_CENTER"})(K||(K={}));var G;(function(D){D[D.Left=1]="Left",D[D.Center=2]="Center",D[D.Right=4]="Right",D[D.Full=7]="Full"})(G||(G={}));var P;(function(D){D[D.Word=0]="Word",D[D.Line=1]="Line",D[D.Suggest=2]="Suggest"})(P||(P={}));var A;(function(D){D[D.Left=0]="Left",D[D.Right=1]="Right",D[D.None=2]="None",D[D.LeftOfInjectedText=3]="LeftOfInjectedText",D[D.RightOfInjectedText=4]="RightOfInjectedText"})(A||(A={}));var T;(function(D){D[D.Off=0]="Off",D[D.On=1]="On",D[D.Relative=2]="Relative",D[D.Interval=3]="Interval",D[D.Custom=4]="Custom"})(T||(T={}));var E;(function(D){D[D.None=0]="None",D[D.Text=1]="Text",D[D.Blocks=2]="Blocks"})(E||(E={}));var W;(function(D){D[D.Smooth=0]="Smooth",D[D.Immediate=1]="Immediate"})(W||(W={}));var $;(function(D){D[D.Auto=1]="Auto",D[D.Hidden=2]="Hidden",D[D.Visible=3]="Visible"})($||($={}));var z;(function(D){D[D.LTR=0]="LTR",D[D.RTL=1]="RTL"})(z||(z={}));var J;(function(D){D.Off="off",D.OnCode="onCode",D.On="on"})(J||(J={}));var B;(function(D){D[D.Invoke=1]="Invoke",D[D.TriggerCharacter=2]="TriggerCharacter",D[D.ContentChange=3]="ContentChange"})(B||(B={}));var V;(function(D){D[D.File=0]="File",D[D.Module=1]="Module",D[D.Namespace=2]="Namespace",D[D.Package=3]="Package",D[D.Class=4]="Class",D[D.Method=5]="Method",D[D.Property=6]="Property",D[D.Field=7]="Field",D[D.Constructor=8]="Constructor",D[D.Enum=9]="Enum",D[D.Interface=10]="Interface",D[D.Function=11]="Function",D[D.Variable=12]="Variable",D[D.Constant=13]="Constant",D[D.String=14]="String",D[D.Number=15]="Number",D[D.Boolean=16]="Boolean",D[D.Array=17]="Array",D[D.Object=18]="Object",D[D.Key=19]="Key",D[D.Null=20]="Null",D[D.EnumMember=21]="EnumMember",D[D.Struct=22]="Struct",D[D.Event=23]="Event",D[D.Operator=24]="Operator",D[D.TypeParameter=25]="TypeParameter"})(V||(V={}));var Y;(function(D){D[D.Deprecated=1]="Deprecated"})(Y||(Y={}));var X;(function(D){D[D.Hidden=0]="Hidden",D[D.Blink=1]="Blink",D[D.Smooth=2]="Smooth",D[D.Phase=3]="Phase",D[D.Expand=4]="Expand",D[D.Solid=5]="Solid"})(X||(X={}));var ie;(function(D){D[D.Line=1]="Line",D[D.Block=2]="Block",D[D.Underline=3]="Underline",D[D.LineThin=4]="LineThin",D[D.BlockOutline=5]="BlockOutline",D[D.UnderlineThin=6]="UnderlineThin"})(ie||(ie={}));var re;(function(D){D[D.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",D[D.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",D[D.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",D[D.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(re||(re={}));var te;(function(D){D[D.None=0]="None",D[D.Same=1]="Same",D[D.Indent=2]="Indent",D[D.DeepIndent=3]="DeepIndent"})(te||(te={}))},"./node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js":function(pt,Me,e){e.d(Me,{E6:function(){return I},Hw:function(){return k},YN:function(){return F},gf:function(){return L},n9:function(){return g},oq:function(){return M},tu:function(){return S},vp:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F;(function(f){f.inspectTokensAction=r.kg("inspectTokens","Developer: Inspect Tokens")})(F||(F={}));var k;(function(f){f.gotoLineActionLabel=r.kg("gotoLineActionLabel","Go to Line/Column...")})(k||(k={}));var M;(function(f){f.helpQuickAccessActionLabel=r.kg("helpQuickAccess","Show all Quick Access Providers")})(M||(M={}));var L;(function(f){f.quickCommandActionLabel=r.kg("quickCommandActionLabel","Command Palette"),f.quickCommandHelp=r.kg("quickCommandActionHelp","Show And Run Commands")})(L||(L={}));var g;(function(f){f.quickOutlineActionLabel=r.kg("quickOutlineActionLabel","Go to Symbol..."),f.quickOutlineByCategoryActionLabel=r.kg("quickOutlineByCategoryActionLabel","Go to Symbol by Category...")})(g||(g={}));var x;(function(f){f.editorViewAccessibleLabel=r.kg("editorViewAccessibleLabel","Editor content"),f.accessibilityHelpMessage=r.kg("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")})(x||(x={}));var I;(function(f){f.toggleHighContrast=r.kg("toggleHighContrast","Toggle High Contrast Theme")})(I||(I={}));var S;(function(f){f.bulkEditServiceSummary=r.kg("bulkEditServiceSummary","Made {0} edits in {1} files")})(S||(S={}))},"./node_modules/monaco-editor/esm/vs/editor/common/textModelEvents.js":function(pt,Me,e){e.d(Me,{E$:function(){return M},HP:function(){return x},Ic:function(){return S},U0:function(){return k},Wn:function(){return r},bg:function(){return L},mS:function(){return g},uK:function(){return F},vn:function(){return I}});class r{constructor(){this.changeType=1}}class F{static applyInjectedText(d,a){if(!a||a.length===0)return d;let s="",n=0;for(const i of a)s+=d.substring(n,i.column-1),n=i.column-1,s+=i.options.content;return s+=d.substring(n),s}static fromDecorations(d){const a=[];for(const s of d)s.options.before&&s.options.before.content.length>0&&a.push(new F(s.ownerId,s.range.startLineNumber,s.range.startColumn,s.options.before,0)),s.options.after&&s.options.after.content.length>0&&a.push(new F(s.ownerId,s.range.endLineNumber,s.range.endColumn,s.options.after,1));return a.sort((s,n)=>s.lineNumber===n.lineNumber?s.column===n.column?s.order-n.order:s.column-n.column:s.lineNumber-n.lineNumber),a}constructor(d,a,s,n,i){this.ownerId=d,this.lineNumber=a,this.column=s,this.options=n,this.order=i}}class k{constructor(d,a,s){this.changeType=2,this.lineNumber=d,this.detail=a,this.injectedText=s}}class M{constructor(d,a){this.changeType=3,this.fromLineNumber=d,this.toLineNumber=a}}class L{constructor(d,a,s,n){this.changeType=4,this.injectedTexts=n,this.fromLineNumber=d,this.toLineNumber=a,this.detail=s}}class g{constructor(){this.changeType=5}}class x{constructor(d,a,s,n){this.changes=d,this.versionId=a,this.isUndoing=s,this.isRedoing=n,this.resultingSelection=null}containsEvent(d){for(let a=0,s=this.changes.length;a>>1,this._text=g,this._languageIdCodec=x}equals(L){return L instanceof F?this.slicedEquals(L,0,this._tokensCount):!1}slicedEquals(L,g,x){if(this._text!==L._text||this._tokensCount!==L._tokensCount)return!1;const I=g<<1,S=I+(x<<1);for(let f=I;f0?this._tokens[L-1<<1]:0}getMetadata(L){return this._tokens[(L<<1)+1]}getLanguageId(L){const g=this._tokens[(L<<1)+1],x=r.x.getLanguageId(g);return this._languageIdCodec.decodeLanguageId(x)}getStandardTokenType(L){const g=this._tokens[(L<<1)+1];return r.x.getTokenType(g)}getForeground(L){const g=this._tokens[(L<<1)+1];return r.x.getForeground(g)}getClassName(L){const g=this._tokens[(L<<1)+1];return r.x.getClassNameFromMetadata(g)}getInlineStyle(L,g){const x=this._tokens[(L<<1)+1];return r.x.getInlineStyleFromMetadata(x,g)}getPresentation(L){const g=this._tokens[(L<<1)+1];return r.x.getPresentationFromMetadata(g)}getEndOffset(L){return this._tokens[L<<1]}findTokenIndexAtOffset(L){return F.findIndexInTokensArray(this._tokens,L)}inflate(){return this}sliceAndInflate(L,g,x){return new k(this,L,g,x)}static convertToEndOffset(L,g){const I=(L.length>>>1)-1;for(let S=0;S>>1)-1;for(;xg&&(I=S)}return x}withInserted(L){if(L.length===0)return this;let g=0,x=0,I="";const S=new Array;let f=0;for(;;){const d=gf){I+=this._text.substring(f,a.offset);const s=this._tokens[(g<<1)+1];S.push(I.length,s),f=a.offset}I+=a.text,S.push(I.length,a.tokenMetadata),x++}else break}return new F(new Uint32Array(S),I,this._languageIdCodec)}}F.defaultTokenMetadata=(32768|2<<24)>>>0;class k{constructor(L,g,x,I){this._source=L,this._startOffset=g,this._endOffset=x,this._deltaOffset=I,this._firstTokenIndex=L.findTokenIndexAtOffset(g),this._tokensCount=0;for(let S=this._firstTokenIndex,f=L.getCount();S=x);S++)this._tokensCount++}getMetadata(L){return this._source.getMetadata(this._firstTokenIndex+L)}getLanguageId(L){return this._source.getLanguageId(this._firstTokenIndex+L)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(L){return L instanceof k?this._startOffset===L._startOffset&&this._endOffset===L._endOffset&&this._deltaOffset===L._deltaOffset&&this._source.slicedEquals(L._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(L){return this._source.getForeground(this._firstTokenIndex+L)}getEndOffset(L){const g=this._source.getEndOffset(this._firstTokenIndex+L);return Math.min(this._endOffset,g)-this._startOffset+this._deltaOffset}getClassName(L){return this._source.getClassName(this._firstTokenIndex+L)}getInlineStyle(L,g){return this._source.getInlineStyle(this._firstTokenIndex+L,g)}getPresentation(L){return this._source.getPresentation(this._firstTokenIndex+L)}findTokenIndexAtOffset(L){return this._source.findTokenIndexAtOffset(L+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}},"./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js":function(pt,Me,e){e.d(Me,{Bs:function(){return L},d:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");class F{constructor(x,I,S,f){this.startColumn=x,this.endColumn=I,this.className=S,this.type=f,this._lineDecorationBrand=void 0}static _equals(x,I){return x.startColumn===I.startColumn&&x.endColumn===I.endColumn&&x.className===I.className&&x.type===I.type}static equalsArr(x,I){const S=x.length,f=I.length;if(S!==f)return!1;for(let d=0;d=d||(s[n++]=new F(Math.max(1,i.startColumn-f+1),Math.min(a+1,i.endColumn-f+1),i.className,i.type));return s}static filter(x,I,S,f){if(x.length===0)return[];const d=[];let a=0;for(let s=0,n=x.length;sI||c.isEmpty()&&(i.type===0||i.type===3))continue;const m=c.startLineNumber===I?c.startColumn:S,u=c.endLineNumber===I?c.endColumn:f;d[a++]=new F(m,u,i.inlineClassName,i.type)}return d}static _typeCompare(x,I){const S=[2,0,1,3];return S[x]-S[I]}static compare(x,I){if(x.startColumn!==I.startColumn)return x.startColumn-I.startColumn;if(x.endColumn!==I.endColumn)return x.endColumn-I.endColumn;const S=F._typeCompare(x.type,I.type);return S!==0?S:x.className!==I.className?x.className0&&this.stopOffsets[0]0&&I=x){this.stopOffsets.splice(f,0,x),this.classNames.splice(f,0,I),this.metadata.splice(f,0,S);break}this.count++}}class L{static normalize(x,I){if(I.length===0)return[];const S=[],f=new M;let d=0;for(let a=0,s=I.length;a1){const v=x.charCodeAt(i-2);r.pc(v)&&i--}if(c>1){const v=x.charCodeAt(c-2);r.pc(v)&&c--}const C=i-1,h=c-2;d=f.consumeLowerThan(C,d,S),f.count===0&&(d=C),f.insert(h,m,u)}return f.consumeLowerThan(1073741824,d,S),S}}},"./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js":function(pt,Me,e){e.d(Me,{wZ:function(){return I},MT:function(){return g},zL:function(){return x},UW:function(){return d},Md:function(){return s}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js");class L{constructor(j,U,K,G){this.endIndex=j,this.type=U,this.metadata=K,this.containsRTL=G,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class g{constructor(j,U){this.startOffset=j,this.endOffset=U}equals(j){return this.startOffset===j.startOffset&&this.endOffset===j.endOffset}}class x{constructor(j,U,K,G,P,A,T,E,W,$,z,J,B,V,Y,X,ie,re,te){this.useMonospaceOptimizations=j,this.canUseHalfwidthRightwardsArrow=U,this.lineContent=K,this.continuesWithWrappedLine=G,this.isBasicASCII=P,this.containsRTL=A,this.fauxIndentLength=T,this.lineTokens=E,this.lineDecorations=W.sort(M.d.compare),this.tabSize=$,this.startVisibleColumn=z,this.spaceWidth=J,this.stopRenderingLineAfter=Y,this.renderWhitespace=X==="all"?4:X==="boundary"?1:X==="selection"?2:X==="trailing"?3:0,this.renderControlCharacters=ie,this.fontLigatures=re,this.selectionsOnLine=te&&te.sort((ve,Ce)=>ve.startOffset>>16}static getCharIndex(j){return(j&65535)>>>0}constructor(j,U){this.length=j,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(j,U,K,G){const P=(U<<16|K<<0)>>>0;this._data[j-1]=P,this._horizontalOffset[j-1]=G}getHorizontalOffset(j){return this._horizontalOffset.length===0?0:this._horizontalOffset[j-1]}charOffsetToPartData(j){return this.length===0?0:j<0?this._data[0]:j>=this.length?this._data[this.length-1]:this._data[j]}getDomPosition(j){const U=this.charOffsetToPartData(j-1),K=S.getPartIndex(U),G=S.getCharIndex(U);return new I(K,G)}getColumn(j,U){return this.partDataToCharOffset(j.partIndex,U,j.charIndex)+1}partDataToCharOffset(j,U,K){if(this.length===0)return 0;const G=(j<<16|K<<0)>>>0;let P=0,A=this.length-1;for(;P+1>>1,X=this._data[Y];if(X===G)return Y;X>G?A=Y:P=Y}if(P===A)return P;const T=this._data[P],E=this._data[A];if(T===G)return P;if(E===G)return A;const W=S.getPartIndex(T),$=S.getCharIndex(T),z=S.getPartIndex(E);let J;W!==z?J=U:J=S.getCharIndex(E);const B=K-$,V=J-K;return B<=V?P:A}}class f{constructor(j,U,K){this._renderLineOutputBrand=void 0,this.characterMapping=j,this.containsRTL=U,this.containsForeignElements=K}}function d(w,j){if(w.lineContent.length===0){if(w.lineDecorations.length>0){j.appendString("");let U=0,K=0,G=0;for(const A of w.lineDecorations)(A.type===1||A.type===2)&&(j.appendString(''),A.type===1&&(G|=1,U++),A.type===2&&(G|=2,K++));j.appendString("");const P=new S(1,U+K);return P.setColumnInfo(1,U,0,0),new f(P,!1,G)}return j.appendString(""),new f(new S(0,0),!1,0)}return p(i(w),j)}class a{constructor(j,U,K,G){this.characterMapping=j,this.html=U,this.containsRTL=K,this.containsForeignElements=G}}function s(w){const j=new k.fe(1e4),U=d(w,j);return new a(U.characterMapping,j.build(),U.containsRTL,U.containsForeignElements)}class n{constructor(j,U,K,G,P,A,T,E,W,$,z,J,B,V,Y,X){this.fontIsMonospace=j,this.canUseHalfwidthRightwardsArrow=U,this.lineContent=K,this.len=G,this.isOverflowing=P,this.overflowingCharCount=A,this.parts=T,this.containsForeignElements=E,this.fauxIndentLength=W,this.tabSize=$,this.startVisibleColumn=z,this.containsRTL=J,this.spaceWidth=B,this.renderSpaceCharCode=V,this.renderWhitespace=Y,this.renderControlCharacters=X}}function i(w){const j=w.lineContent;let U,K,G;w.stopRenderingLineAfter!==-1&&w.stopRenderingLineAfter0){for(let T=0,E=w.lineDecorations.length;T0&&(P[A++]=new L(K,"",0,!1));let T=K;for(let E=0,W=U.getCount();E=G){const B=j?F.E_(w.substring(T,G)):!1;P[A++]=new L(G,z,0,B);break}const J=j?F.E_(w.substring(T,$)):!1;P[A++]=new L($,z,0,J),T=$}return P}function m(w,j,U){let K=0;const G=[];let P=0;if(U)for(let A=0,T=j.length;A=50&&(G[P++]=new L(B+1,$,z,J),V=B+1,B=-1);V!==W&&(G[P++]=new L(W,$,z,J))}else G[P++]=E;K=W}else for(let A=0,T=j.length;A50){const z=E.type,J=E.metadata,B=E.containsRTL,V=Math.ceil($/50);for(let Y=1;Y=8234&&w<=8238||w>=8294&&w<=8297||w>=8206&&w<=8207||w===1564}function C(w,j){const U=[];let K=new L(0,"",0,!1),G=0;for(const P of j){const A=P.endIndex;for(;GK.endIndex&&(K=new L(G,P.type,P.metadata,P.containsRTL),U.push(K)),K=new L(G+1,"mtkcontrol",P.metadata,!1),U.push(K))}G>K.endIndex&&(K=new L(A,P.type,P.metadata,P.containsRTL),U.push(K))}return U}function h(w,j,U,K){const G=w.continuesWithWrappedLine,P=w.fauxIndentLength,A=w.tabSize,T=w.startVisibleColumn,E=w.useMonospaceOptimizations,W=w.selectionsOnLine,$=w.renderWhitespace===1,z=w.renderWhitespace===3,J=w.renderSpaceWidth!==w.spaceWidth,B=[];let V=0,Y=0,X=K[Y].type,ie=K[Y].containsRTL,re=K[Y].endIndex;const te=K.length;let D=!1,he=F.HG(j),ve;he===-1?(D=!0,he=U,ve=U):ve=F.lT(j);let Ce=!1,Pe=0,_e=W&&W[Pe],ee=T%A;for(let Te=P;Te=_e.endOffset&&(Pe++,_e=W&&W[Pe]);let qe;if(Teve)qe=!0;else if(He===9)qe=!0;else if(He===32)if($)if(Ce)qe=!0;else{const Qe=Te+1Te),qe&&z&&(qe=D||Te>ve),qe&&ie&&Te>=he&&Te<=ve&&(qe=!1),Ce){if(!qe||!E&&ee>=A){if(J){const Qe=V>0?B[V-1].endIndex:P;for(let q=Qe+1;q<=Te;q++)B[V++]=new L(q,"mtkw",1,!1)}else B[V++]=new L(Te,"mtkw",1,!1);ee=ee%A}}else(Te===re||qe&&Te>P)&&(B[V++]=new L(Te,X,0,ie),ee=ee%A);for(He===9?ee=A:F.ne(He)?ee+=2:ee++,Ce=qe;Te===re&&(Y++,Y0?j.charCodeAt(U-1):0,He=U>1?j.charCodeAt(U-2):0;Te===32&&He!==32&&He!==9||(De=!0)}else De=!0;if(De)if(J){const Te=V>0?B[V-1].endIndex:P;for(let He=Te+1;He<=U;He++)B[V++]=new L(He,"mtkw",1,!1)}else B[V++]=new L(U,"mtkw",1,!1);else B[V++]=new L(U,X,0,ie);return B}function v(w,j,U,K){K.sort(M.d.compare);const G=M.Bs.normalize(w,K),P=G.length;let A=0;const T=[];let E=0,W=0;for(let z=0,J=U.length;zW&&(W=re.startOffset,T[E++]=new L(W,Y,X,ie)),re.endOffset+1<=V)W=re.endOffset+1,T[E++]=new L(W,Y+" "+re.className,X|re.metadata,ie),A++;else{W=V,T[E++]=new L(W,Y+" "+re.className,X|re.metadata,ie);break}}V>W&&(W=V,T[E++]=new L(W,Y,X,ie))}const $=U[U.length-1].endIndex;if(A'):j.appendString("");for(let _e=0,ee=W.length;_e=$&&(Se+=me)}}for(q&&(j.appendString(' style="width:'),j.appendString(String(V*ge)),j.appendString('px"')),j.appendASCIICharCode(62);D1?j.appendCharCode(8594):j.appendCharCode(65515);for(let me=2;me<=ae;me++)j.appendCharCode(160)}else Se=2,ae=1,j.appendCharCode(Y),j.appendCharCode(8204);ve+=Se,Ce+=ae,D>=$&&(he+=ae)}}else for(j.appendASCIICharCode(62);D=$&&(he+=Se)}ye?Pe++:Pe=0,D>=A&&!te&&De.isPseudoAfter()&&(te=!0,re.setColumnInfo(D+1,_e,ve,Ce)),j.appendString("")}return te||re.setColumnInfo(A+1,W.length-1,ve,Ce),T&&(j.appendString(''),j.appendString(r.kg("showMore","Show more ({0})",O(E))),j.appendString("")),j.appendString(""),new f(re,B,G)}function b(w){return w.toString(16).toUpperCase().padStart(4,"0")}function O(w){return w<1024?r.kg("overflow.chars","{0} chars",w):w<1024*1024?`${(w/1024).toFixed(1)} KB`:`${(w/1024/1024).toFixed(1)} MB`}},"./node_modules/monaco-editor/esm/vs/editor/common/viewModel.js":function(pt,Me,e){e.d(Me,{GP:function(){return g},LM:function(){return M},Uv:function(){return d},kI:function(){return I},nt:function(){return L},or:function(){return S},qL:function(){return x},vo:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class M{constructor(s,n,i,c){this._viewportBrand=void 0,this.top=s|0,this.left=n|0,this.width=i|0,this.height=c|0}}class L{constructor(s,n){this.tabSize=s,this.data=n}}class g{constructor(s,n,i,c,m,u,C){this._viewLineDataBrand=void 0,this.content=s,this.continuesWithWrappedLine=n,this.minColumn=i,this.maxColumn=c,this.startVisibleColumn=m,this.tokens=u,this.inlineDecorations=C}}class x{constructor(s,n,i,c,m,u,C,h,v,p){this.minColumn=s,this.maxColumn=n,this.content=i,this.continuesWithWrappedLine=c,this.isBasicASCII=x.isBasicASCII(i,u),this.containsRTL=x.containsRTL(i,this.isBasicASCII,m),this.tokens=C,this.inlineDecorations=h,this.tabSize=v,this.startVisibleColumn=p}static isBasicASCII(s,n){return n?F.aC(s):!0}static containsRTL(s,n,i){return!n&&i?F.E_(s):!1}}class I{constructor(s,n,i){this.range=s,this.inlineClassName=n,this.type=i}}class S{constructor(s,n,i,c){this.startOffset=s,this.endOffset=n,this.inlineClassName=i,this.inlineClassNameAffectsLetterSpacing=c}toInlineDecoration(s){return new I(new k.Q(s,this.startOffset+1,s,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class f{constructor(s,n){this._viewModelDecorationBrand=void 0,this.range=s,this.options=n}}class d{constructor(s,n,i){this.color=s,this.zIndex=n,this.data=i}static compareByRenderingProps(s,n){return s.zIndex===n.zIndex?s.colorn.color?1:0:s.zIndex-n.zIndex}static equals(s,n){return s.color===n.color&&s.zIndex===n.zIndex&&r.aI(s.data,n.data)}static equalsArr(s,n){return r.aI(s,n,d.equals)}}},"./node_modules/monaco-editor/esm/vs/editor/common/viewModel/overviewZoneManager.js":function(pt,Me,e){e.d(Me,{iE:function(){return F},rW:function(){return k}});class r{constructor(L,g,x){this._colorZoneBrand=void 0,this.from=L|0,this.to=g|0,this.colorId=x|0}static compare(L,g){return L.colorId===g.colorId?L.from===g.from?L.to-g.to:L.from-g.from:L.colorId-g.colorId}}class F{constructor(L,g,x,I){this._overviewRulerZoneBrand=void 0,this.startLineNumber=L,this.endLineNumber=g,this.heightInLines=x,this.color=I,this._colorZone=null}static compare(L,g){return L.color===g.color?L.startLineNumber===g.startLineNumber?L.heightInLines===g.heightInLines?L.endLineNumber-g.endLineNumber:L.heightInLines-g.heightInLines:L.startLineNumber-g.startLineNumber:L.colorx&&(C=x-h);const v=n.color;let p=this._color2Id[v];p||(p=++this._lastAssignedId,this._color2Id[v]=p,this._id2Color[p]=v);const b=new r(C-h,C+h,p);n.setColorZone(b),d.push(b)}return this._colorZonesInvalid=!1,d.sort(r.compare),d}}},"./node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelDecorations.js":function(pt,Me,e){e.d(Me,{GN:function(){return g},UB:function(){return L},a6:function(){return x},wc:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/viewModel.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js");class L{constructor(d,a,s,n,i){this.editorId=d,this.model=a,this.configuration=s,this._linesCollection=n,this._coordinatesConverter=i,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(d){const a=d.id;let s=this._decorationsCache[a];if(!s){const n=d.range,i=d.options;let c;if(i.isWholeLine){const m=this._coordinatesConverter.convertModelPositionToViewPosition(new r.y(n.startLineNumber,1),0,!1,!0),u=this._coordinatesConverter.convertModelPositionToViewPosition(new r.y(n.endLineNumber,this.model.getLineMaxColumn(n.endLineNumber)),1);c=new F.Q(m.lineNumber,m.column,u.lineNumber,u.column)}else c=this._coordinatesConverter.convertModelRangeToViewRange(n,1);s=new k.vo(c,i),this._decorationsCache[a]=s}return s}getMinimapDecorationsInRange(d){return this._getDecorationsInRange(d,!0,!1).decorations}getDecorationsViewportData(d){let a=this._cachedModelDecorationsResolver!==null;return a=a&&d.equalsRange(this._cachedModelDecorationsResolverViewRange),a||(this._cachedModelDecorationsResolver=this._getDecorationsInRange(d,!1,!1),this._cachedModelDecorationsResolverViewRange=d),this._cachedModelDecorationsResolver}getInlineDecorationsOnLine(d,a=!1,s=!1){const n=new F.Q(d,this._linesCollection.getViewLineMinColumn(d),d,this._linesCollection.getViewLineMaxColumn(d));return this._getDecorationsInRange(n,a,s).inlineDecorations[0]}_getDecorationsInRange(d,a,s){const n=this._linesCollection.getDecorationsInRange(d,this.editorId,(0,M.$C)(this.configuration.options),a,s),i=d.startLineNumber,c=d.endLineNumber,m=[];let u=0;const C=[];for(let h=i;h<=c;h++)C[h-i]=[];for(let h=0,v=n.length;ha===1)}function I(f,d){return S(f,d.range,a=>a===2)}function S(f,d,a){for(let s=d.startLineNumber;s<=d.endLineNumber;s++){const n=f.tokenization.getLineTokens(s),i=s===d.startLineNumber,c=s===d.endLineNumber;let m=i?n.findTokenIndexAtOffset(d.startColumn-1):0;for(;md.endColumn-1);){if(!a(n.getStandardTokenType(m)))return!1;m++}}return!0}},"./node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),x=e("./node_modules/monaco-editor/esm/vs/nls.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),S=function(u,C,h,v){var p=arguments.length,b=p<3?C:v===null?v=Object.getOwnPropertyDescriptor(C,h):v,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(u,C,h,v);else for(var w=u.length-1;w>=0;w--)(O=u[w])&&(b=(p<3?O(b):p>3?O(C,h,b):O(C,h))||b);return p>3&&b&&Object.defineProperty(C,h,b),b},f=function(u,C){return function(h,v){C(h,v,u)}},d;const a=new I.N1("selectionAnchorSet",!1);let s=d=class{static get(C){return C.getContribution(d.ID)}constructor(C,h){this.editor=C,this.selectionAnchorSetContextKey=a.bindTo(h),this.modelChangeListener=C.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const C=this.editor.getPosition();this.editor.changeDecorations(h=>{this.decorationId&&h.removeDecoration(this.decorationId),this.decorationId=h.addDecoration(L.L.fromPositions(C,C),{description:"selection-anchor",stickiness:1,hoverMessage:new F.Bc().appendText((0,x.kg)("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),(0,r.xE)((0,x.kg)("anchorSet","Anchor set at {0}:{1}",C.lineNumber,C.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const C=this.editor.getModel().getDecorationRange(this.decorationId);C&&this.editor.setPosition(C.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const C=this.editor.getModel().getDecorationRange(this.decorationId);if(C){const h=this.editor.getPosition();this.editor.setSelection(L.L.fromPositions(C.getStartPosition(),h)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const C=this.decorationId;this.editor.changeDecorations(h=>{h.removeDecoration(C),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};s.ID="editor.contrib.selectionAnchorController",s=d=S([f(1,I.fN)],s);class n extends M.ks{constructor(){super({id:"editor.action.setSelectionAnchor",label:(0,x.kg)("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:g.R.editorTextFocus,primary:(0,k.m5)(2089,2080),weight:100}})}async run(C,h){var v;(v=s.get(h))===null||v===void 0||v.setSelectionAnchor()}}class i extends M.ks{constructor(){super({id:"editor.action.goToSelectionAnchor",label:(0,x.kg)("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:a})}async run(C,h){var v;(v=s.get(h))===null||v===void 0||v.goToSelectionAnchor()}}class c extends M.ks{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:(0,x.kg)("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:a,kbOpts:{kbExpr:g.R.editorTextFocus,primary:(0,k.m5)(2089,2089),weight:100}})}async run(C,h){var v;(v=s.get(h))===null||v===void 0||v.selectFromAnchorToCursor()}}class m extends M.ks{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:(0,x.kg)("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:a,kbOpts:{kbExpr:g.R.editorTextFocus,primary:9,weight:100}})}async run(C,h){var v;(v=s.get(h))===null||v===void 0||v.cancelSelectionAnchor()}}(0,M.HW)(s.ID,s,4),(0,M.Fl)(n),(0,M.Fl)(i),(0,M.Fl)(c),(0,M.Fl)(m)},"./node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),f=e("./node_modules/monaco-editor/esm/vs/nls.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js");const n=(0,a.x1A)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},f.kg("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class i extends k.ks{constructor(){super({id:"editor.action.jumpToBracket",label:f.kg("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:x.R.editorTextFocus,primary:3165,weight:100}})}run(v,p){var b;(b=C.get(p))===null||b===void 0||b.jumpToBracket()}}class c extends k.ks{constructor(){super({id:"editor.action.selectToBracket",label:f.kg("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:f.aS("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(v,p,b){var O;let w=!0;b&&b.selectBrackets===!1&&(w=!1),(O=C.get(p))===null||O===void 0||O.selectToBracket(w)}}class m extends k.ks{constructor(){super({id:"editor.action.removeBrackets",label:f.kg("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:x.R.editorTextFocus,primary:2561,weight:100}})}run(v,p){var b;(b=C.get(p))===null||b===void 0||b.removeBrackets(this.id)}}class u{constructor(v,p,b){this.position=v,this.brackets=p,this.options=b}}class C extends F.jG{static get(v){return v.getContribution(C.ID)}constructor(v){super(),this._editor=v,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new r.uC(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(v.onDidChangeCursorPosition(p=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(v.onDidChangeModelContent(p=>{this._updateBracketsSoon.schedule()})),this._register(v.onDidChangeModel(p=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(v.onDidChangeModelLanguageConfiguration(p=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(v.onDidChangeConfiguration(p=>{p.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(v.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(v.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const v=this._editor.getModel(),p=this._editor.getSelections().map(b=>{const O=b.getStartPosition(),w=v.bracketPairs.matchBracket(O);let j=null;if(w)w[0].containsPosition(O)&&!w[1].containsPosition(O)?j=w[1].getStartPosition():w[1].containsPosition(O)&&(j=w[0].getStartPosition());else{const U=v.bracketPairs.findEnclosingBrackets(O);if(U)j=U[1].getStartPosition();else{const K=v.bracketPairs.findNextBracket(O);K&&K.range&&(j=K.range.getStartPosition())}}return j?new g.L(j.lineNumber,j.column,j.lineNumber,j.column):new g.L(O.lineNumber,O.column,O.lineNumber,O.column)});this._editor.setSelections(p),this._editor.revealRange(p[0])}selectToBracket(v){if(!this._editor.hasModel())return;const p=this._editor.getModel(),b=[];this._editor.getSelections().forEach(O=>{const w=O.getStartPosition();let j=p.bracketPairs.matchBracket(w);if(!j&&(j=p.bracketPairs.findEnclosingBrackets(w),!j)){const G=p.bracketPairs.findNextBracket(w);G&&G.range&&(j=p.bracketPairs.matchBracket(G.range.getStartPosition()))}let U=null,K=null;if(j){j.sort(L.Q.compareRangesUsingStarts);const[G,P]=j;if(U=v?G.getStartPosition():G.getEndPosition(),K=v?P.getEndPosition():P.getStartPosition(),P.containsPosition(w)){const A=U;U=K,K=A}}U&&K&&b.push(new g.L(U.lineNumber,U.column,K.lineNumber,K.column))}),b.length>0&&(this._editor.setSelections(b),this._editor.revealRange(b[0]))}removeBrackets(v){if(!this._editor.hasModel())return;const p=this._editor.getModel();this._editor.getSelections().forEach(b=>{const O=b.getPosition();let w=p.bracketPairs.matchBracket(O);w||(w=p.bracketPairs.findEnclosingBrackets(O)),w&&(this._editor.pushUndoStop(),this._editor.executeEdits(v,[{range:w[0],text:""},{range:w[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const v=[];let p=0;for(const b of this._lastBracketsData){const O=b.brackets;O&&(v[p++]={range:O[0],options:b.options},v[p++]={range:O[1],options:b.options})}this._decorations.set(v)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const v=this._editor.getSelections();if(v.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const p=this._editor.getModel(),b=p.getVersionId();let O=[];this._lastVersionId===b&&(O=this._lastBracketsData);const w=[];let j=0;for(let A=0,T=v.length;A1&&w.sort(M.y.compare);const U=[];let K=0,G=0;const P=O.length;for(let A=0,T=w.length;A0&&(f.pushUndoStop(),f.executeCommands(this.id,a),f.pushUndoStop())}}(0,r.Fl)(x)},"./node_modules/monaco-editor/esm/vs/editor/contrib/clipboard/browser/clipboard.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaInput.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js"),S=e("./node_modules/monaco-editor/esm/vs/nls.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js");const s="9_cutcopypaste",n=k.ib||document.queryCommandSupported("cut"),i=k.ib||document.queryCommandSupported("copy"),c=typeof navigator.clipboard>"u"||r.gm?document.queryCommandSupported("paste"):!0;function m(b){return b.register(),b}const u=n?m(new L.fE({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:k.ib?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:f.D8.MenubarEditMenu,group:"2_ccp",title:S.kg({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:f.D8.EditorContext,group:s,title:S.kg("actions.clipboard.cutLabel","Cut"),when:x.R.writable,order:1},{menuId:f.D8.CommandPalette,group:"",title:S.kg("actions.clipboard.cutLabel","Cut"),order:1},{menuId:f.D8.SimpleEditorContext,group:s,title:S.kg("actions.clipboard.cutLabel","Cut"),when:x.R.writable,order:1}]})):void 0,C=i?m(new L.fE({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:k.ib?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:f.D8.MenubarEditMenu,group:"2_ccp",title:S.kg({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:f.D8.EditorContext,group:s,title:S.kg("actions.clipboard.copyLabel","Copy"),order:2},{menuId:f.D8.CommandPalette,group:"",title:S.kg("actions.clipboard.copyLabel","Copy"),order:1},{menuId:f.D8.SimpleEditorContext,group:s,title:S.kg("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;f.ZG.appendMenuItem(f.D8.MenubarEditMenu,{submenu:f.D8.MenubarCopy,title:S.aS("copy as","Copy As"),group:"2_ccp",order:3}),f.ZG.appendMenuItem(f.D8.EditorContext,{submenu:f.D8.EditorContextCopy,title:S.aS("copy as","Copy As"),group:s,order:3}),f.ZG.appendMenuItem(f.D8.EditorContext,{submenu:f.D8.EditorContextShare,title:S.aS("share","Share"),group:"11_share",order:-1,when:a.M$.and(a.M$.notEquals("resourceScheme","output"),x.R.editorTextFocus)}),f.ZG.appendMenuItem(f.D8.EditorTitleContext,{submenu:f.D8.EditorTitleContextShare,title:S.aS("share","Share"),group:"11_share",order:-1}),f.ZG.appendMenuItem(f.D8.ExplorerContext,{submenu:f.D8.ExplorerContextShare,title:S.aS("share","Share"),group:"11_share",order:-1});const h=c?m(new L.fE({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:k.ib?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:f.D8.MenubarEditMenu,group:"2_ccp",title:S.kg({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:f.D8.EditorContext,group:s,title:S.kg("actions.clipboard.pasteLabel","Paste"),when:x.R.writable,order:4},{menuId:f.D8.CommandPalette,group:"",title:S.kg("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:f.D8.SimpleEditorContext,group:s,title:S.kg("actions.clipboard.pasteLabel","Paste"),when:x.R.writable,order:4}]})):void 0;class v extends L.ks{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:S.kg("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:x.R.textInputFocus,primary:0,weight:100}})}run(O,w){!w.hasModel()||!w.getOption(37)&&w.getSelection().isEmpty()||(M.Eq.forceCopyWithSyntaxHighlighting=!0,w.focus(),w.getContainerDomNode().ownerDocument.execCommand("copy"),M.Eq.forceCopyWithSyntaxHighlighting=!1)}}function p(b,O){b&&(b.addImplementation(1e4,"code-editor",(w,j)=>{const U=w.get(g.T).getFocusedCodeEditor();if(U&&U.hasTextFocus()){const K=U.getOption(37),G=U.getSelection();return G&&G.isEmpty()&&!K||U.getContainerDomNode().ownerDocument.execCommand(O),!0}return!1}),b.addImplementation(0,"generic-dom",(w,j)=>((0,F.a)().execCommand(O),!0)))}p(u,"cut"),p(C,"copy"),h&&(h.addImplementation(1e4,"code-editor",(b,O)=>{var w,j;const U=b.get(g.T),K=b.get(d.h),G=U.getFocusedCodeEditor();return G&&G.hasTextFocus()?G.getContainerDomNode().ownerDocument.execCommand("paste")?(j=(w=I.Rj.get(G))===null||w===void 0?void 0:w.finishedPaste())!==null&&j!==void 0?j:Promise.resolve():k.HZ?(async()=>{const A=await K.readText();if(A!==""){const T=M.bs.INSTANCE.get(A);let E=!1,W=null,$=null;T&&(E=G.getOption(37)&&!!T.isFromEmptySelection,W=typeof T.multicursorText<"u"?T.multicursorText:null,$=T.mode),G.trigger("keyboard","paste",{text:A,pasteOnNewLine:E,multicursorText:W,mode:$})}})():!0:!1}),h.addImplementation(0,"generic-dom",(b,O)=>((0,F.a)().execCommand("paste"),!0))),i&&(0,L.Fl)(v)},"./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeAction.js":function(pt,Me,e){e.d(Me,{C9:function(){return b},Qp:function(){return T},Rw:function(){return w},Uy:function(){return O},W4:function(){return E},Xj:function(){return p},dU:function(){return K},k_:function(){return C},pQ:function(){return h},pR:function(){return v}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/bulkEditService.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js"),a=e("./node_modules/monaco-editor/esm/vs/nls.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/common/types.js"),u=e("./node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js");const C="editor.action.codeAction",h="editor.action.quickFix",v="editor.action.autoFix",p="editor.action.refactor",b="editor.action.sourceAction",O="editor.action.organizeImports",w="editor.action.fixAll";class j extends M.jG{static codeActionsPreferredComparator(z,J){return z.isPreferred&&!J.isPreferred?-1:!z.isPreferred&&J.isPreferred?1:0}static codeActionsComparator({action:z},{action:J}){return z.isAI&&!J.isAI?1:!z.isAI&&J.isAI?-1:(0,r.EI)(z.diagnostics)?(0,r.EI)(J.diagnostics)?j.codeActionsPreferredComparator(z,J):-1:(0,r.EI)(J.diagnostics)?1:j.codeActionsPreferredComparator(z,J)}constructor(z,J,B){super(),this.documentation=J,this._register(B),this.allActions=[...z].sort(j.codeActionsComparator),this.validActions=this.allActions.filter(({action:V})=>!V.disabled)}get hasAutoFix(){return this.validActions.some(({action:z})=>!!z.kind&&m.gB.QuickFix.contains(new u.k(z.kind))&&!!z.isPreferred)}get hasAIFix(){return this.validActions.some(({action:z})=>!!z.isAI)}get allAIFixes(){return this.validActions.every(({action:z})=>!!z.isAI)}}const U={actions:[],documentation:void 0};async function K($,z,J,B,V,Y){var X;const ie=B.filter||{},re={...ie,excludes:[...ie.excludes||[],m.gB.Notebook]},te={only:(X=ie.include)===null||X===void 0?void 0:X.value,trigger:B.type},D=new d.ER(z,Y),he=B.type===2,ve=G($,z,he?re:ie),Ce=new M.Cm,Pe=ve.map(async ee=>{try{V.report(ee);const De=await ee.provideCodeActions(z,J,te,D.token);if(De&&Ce.add(De),D.token.isCancellationRequested)return U;const Te=(De?.actions||[]).filter(qe=>qe&&(0,m.aF)(ie,qe)),He=A(ee,Te,ie.include);return{actions:Te.map(qe=>new m.Vi(qe,ee)),documentation:He}}catch(De){if((0,k.MB)(De))throw De;return(0,k.M_)(De),U}}),_e=$.onDidChange(()=>{const ee=$.all(z);(0,r.aI)(ee,ve)||D.cancel()});try{const ee=await Promise.all(Pe),De=ee.map(He=>He.actions).flat(),Te=[...(0,r.Yc)(ee.map(He=>He.documentation)),...P($,z,B,De)];return new j(De,Te,Ce)}finally{_e.dispose(),D.dispose()}}function G($,z,J){return $.all(z).filter(B=>B.providedCodeActionKinds?B.providedCodeActionKinds.some(V=>(0,m.uJ)(J,new u.k(V))):!0)}function*P($,z,J,B){var V,Y,X;if(z&&B.length)for(const ie of $.all(z))ie._getAdditionalMenuItems&&(yield*(V=ie._getAdditionalMenuItems)===null||V===void 0?void 0:V.call(ie,{trigger:J.type,only:(X=(Y=J.filter)===null||Y===void 0?void 0:Y.include)===null||X===void 0?void 0:X.value},B.map(re=>re.action)))}function A($,z,J){if(!$.documentation)return;const B=$.documentation.map(V=>({kind:new u.k(V.kind),command:V.command}));if(J){let V;for(const Y of B)Y.kind.contains(J)&&(V?V.kind.contains(Y.kind)&&(V=Y):V=Y);if(V)return V?.command}for(const V of z)if(V.kind){for(const Y of B)if(Y.kind.contains(new u.k(V.kind)))return Y.command}}var T;(function($){$.OnSave="onSave",$.FromProblemsView="fromProblemsView",$.FromCodeActions="fromCodeActions",$.FromAILightbulb="fromAILightbulb"})(T||(T={}));async function E($,z,J,B,V=F.X.None){var Y;const X=$.get(g.nu),ie=$.get(s.d),re=$.get(c.k),te=$.get(n.Ot);if(re.publicLog2("codeAction.applyCodeAction",{codeActionTitle:z.action.title,codeActionKind:z.action.kind,codeActionIsPreferred:!!z.action.isPreferred,reason:J}),await z.resolve(V),!V.isCancellationRequested&&!(!((Y=z.action.edit)===null||Y===void 0)&&Y.edits.length&&!(await X.apply(z.action.edit,{editor:B?.editor,label:z.action.title,quotableLabel:z.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:J!==T.OnSave,showPreview:B?.preview})).isApplied)&&z.action.command)try{await ie.executeCommand(z.action.command.id,...z.action.command.arguments||[])}catch(D){const he=W(D);te.error(typeof he=="string"?he:a.kg("applyCodeActionFailed","An unknown error occurred while applying the code action"))}}function W($){return typeof $=="string"?$:$ instanceof Error&&typeof $.message=="string"?$.message:void 0}s.w.registerCommand("_executeCodeActionProvider",async function($,z,J,B,V){if(!(z instanceof L.r))throw(0,k.Qg)();const{codeActionProvider:Y}=$.get(S.u),X=$.get(f.S).getModel(z);if(!X)throw(0,k.Qg)();const ie=I.L.isISelection(J)?I.L.liftSelection(J):x.Q.isIRange(J)?X.validateRange(J):void 0;if(!ie)throw(0,k.Qg)();const re=typeof B=="string"?new u.k(B):void 0,te=await K(Y,X,ie,{type:1,triggerAction:m.fo.Default,filter:{includeSourceActions:!0,include:re}},i.ke.None,F.X.None),D=[],he=Math.min(te.validActions.length,typeof V=="number"?V:0);for(let ve=0;veve.action)}finally{setTimeout(()=>te.dispose(),100)}})},"./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorConfigurationSchema.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeAction.js"),x=e("./node_modules/monaco-editor/esm/vs/nls.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/common/types.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionController.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionModel.js");function a(w){return I.M$.regex(d.D_.keys()[0],new RegExp("(\\s|^)"+(0,M.bm)(w.value)+"\\b"))}const s={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:x.kg("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:x.kg("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[x.kg("args.schema.apply.first","Always apply the first returned code action."),x.kg("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),x.kg("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:x.kg("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function n(w,j,U,K,G=S.fo.Default){if(w.hasModel()){const P=f.C.get(w);P?.manualTriggerAtCurrentPosition(j,G,U,K)}}class i extends r.ks{constructor(){super({id:g.pQ,label:x.kg("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:I.M$.and(L.R.writable,L.R.hasCodeActionsProvider),kbOpts:{kbExpr:L.R.textInputFocus,primary:2137,weight:100}})}run(j,U){return n(U,x.kg("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,S.fo.QuickFix)}}class c extends r.DX{constructor(){super({id:g.k_,precondition:I.M$.and(L.R.writable,L.R.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:s}]}})}runEditorCommand(j,U,K){const G=S.QA.fromUser(K,{kind:k.k.Empty,apply:"ifSingle"});return n(U,typeof K?.kind=="string"?G.preferred?x.kg("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",K.kind):x.kg("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",K.kind):G.preferred?x.kg("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):x.kg("editor.action.codeAction.noneMessage","No code actions available"),{include:G.kind,includeSourceActions:!0,onlyIncludePreferredActions:G.preferred},G.apply)}}class m extends r.ks{constructor(){super({id:g.Xj,label:x.kg("refactor.label","Refactor..."),alias:"Refactor...",precondition:I.M$.and(L.R.writable,L.R.hasCodeActionsProvider),kbOpts:{kbExpr:L.R.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:I.M$.and(L.R.writable,a(S.gB.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:s}]}})}run(j,U,K){const G=S.QA.fromUser(K,{kind:S.gB.Refactor,apply:"never"});return n(U,typeof K?.kind=="string"?G.preferred?x.kg("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",K.kind):x.kg("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",K.kind):G.preferred?x.kg("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):x.kg("editor.action.refactor.noneMessage","No refactorings available"),{include:S.gB.Refactor.contains(G.kind)?G.kind:k.k.None,onlyIncludePreferredActions:G.preferred},G.apply,S.fo.Refactor)}}class u extends r.ks{constructor(){super({id:g.C9,label:x.kg("source.label","Source Action..."),alias:"Source Action...",precondition:I.M$.and(L.R.writable,L.R.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:I.M$.and(L.R.writable,a(S.gB.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:s}]}})}run(j,U,K){const G=S.QA.fromUser(K,{kind:S.gB.Source,apply:"never"});return n(U,typeof K?.kind=="string"?G.preferred?x.kg("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",K.kind):x.kg("editor.action.source.noneMessage.kind","No source actions for '{0}' available",K.kind):G.preferred?x.kg("editor.action.source.noneMessage.preferred","No preferred source actions available"):x.kg("editor.action.source.noneMessage","No source actions available"),{include:S.gB.Source.contains(G.kind)?G.kind:k.k.None,includeSourceActions:!0,onlyIncludePreferredActions:G.preferred},G.apply,S.fo.SourceAction)}}class C extends r.ks{constructor(){super({id:g.Uy,label:x.kg("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:I.M$.and(L.R.writable,a(S.gB.SourceOrganizeImports)),kbOpts:{kbExpr:L.R.textInputFocus,primary:1581,weight:100}})}run(j,U){return n(U,x.kg("editor.action.organize.noneMessage","No organize imports action available"),{include:S.gB.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",S.fo.OrganizeImports)}}class h extends r.ks{constructor(){super({id:g.Rw,label:x.kg("fixAll.label","Fix All"),alias:"Fix All",precondition:I.M$.and(L.R.writable,a(S.gB.SourceFixAll))})}run(j,U){return n(U,x.kg("fixAll.noneMessage","No fix all action available"),{include:S.gB.SourceFixAll,includeSourceActions:!0},"ifSingle",S.fo.FixAll)}}class v extends r.ks{constructor(){super({id:g.pR,label:x.kg("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:I.M$.and(L.R.writable,a(S.gB.QuickFix)),kbOpts:{kbExpr:L.R.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(j,U){return n(U,x.kg("editor.action.autoFix.noneMessage","No auto fixes available"),{include:S.gB.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",S.fo.AutoFix)}}var p=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js"),O=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js");(0,r.HW)(f.C.ID,f.C,3),(0,r.HW)(p.E.ID,p.E,4),(0,r.Fl)(i),(0,r.Fl)(m),(0,r.Fl)(u),(0,r.Fl)(C),(0,r.Fl)(v),(0,r.Fl)(h),(0,r.E_)(new c),O.O.as(b.Fd.Configuration).registerConfiguration({...F.JJ,properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:x.kg("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}),O.O.as(b.Fd.Configuration).registerConfiguration({...F.JJ,properties:{"editor.codeActionWidget.includeNearbyQuickFixes":{type:"boolean",scope:5,description:x.kg("includeNearbyQuickFixes","Enable/disable showing nearest Quick Fix within a line when not currently on a diagnostic."),default:!0}}})},"./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionController.js":function(pt,Me,e){e.d(Me,{C:function(){return oe}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lazy.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeAction.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/common/types.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),s=function(ne,de,Le,We){var we=arguments.length,Ue=we<3?de:We===null?We=Object.getOwnPropertyDescriptor(de,Le):We,lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ue=Reflect.decorate(ne,de,Le,We);else for(var Et=ne.length-1;Et>=0;Et--)(lt=ne[Et])&&(Ue=(we<3?lt(Ue):we>3?lt(de,Le,Ue):lt(de,Le))||Ue);return we>3&&Ue&&Object.defineProperty(de,Le,Ue),Ue},n=function(ne,de){return function(Le,We){de(Le,We,ne)}},i;let c=i=class{constructor(de){this.keybindingService=de}getResolver(){const de=new M.d(()=>this.keybindingService.getKeybindings().filter(Le=>i.codeActionCommands.indexOf(Le.command)>=0).filter(Le=>Le.resolvedKeybinding).map(Le=>{let We=Le.commandArgs;return Le.command===S.Uy?We={kind:d.gB.SourceOrganizeImports.value}:Le.command===S.Rw&&(We={kind:d.gB.SourceFixAll.value}),{resolvedKeybinding:Le.resolvedKeybinding,...d.QA.fromUser(We,{kind:f.k.None,apply:"never"})}}));return Le=>{if(Le.kind){const We=this.bestKeybindingForCodeAction(Le,de.value);return We?.resolvedKeybinding}}}bestKeybindingForCodeAction(de,Le){if(!de.kind)return;const We=new f.k(de.kind);return Le.filter(we=>we.kind.contains(We)).filter(we=>we.preferred?de.isPreferred:!0).reduceRight((we,Ue)=>we?we.kind.contains(Ue.kind)?Ue:we:Ue,void 0)}};c.codeActionCommands=[S.Xj,S.k_,S.C9,S.Uy,S.Rw],c=i=s([n(0,a.b)],c);var m=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js"),C=e("./node_modules/monaco-editor/esm/vs/nls.js");const h=Object.freeze({kind:f.k.Empty,title:(0,C.kg)("codeAction.widget.id.more","More Actions...")}),v=Object.freeze([{kind:d.gB.QuickFix,title:(0,C.kg)("codeAction.widget.id.quickfix","Quick Fix")},{kind:d.gB.RefactorExtract,title:(0,C.kg)("codeAction.widget.id.extract","Extract"),icon:m.W.wrench},{kind:d.gB.RefactorInline,title:(0,C.kg)("codeAction.widget.id.inline","Inline"),icon:m.W.wrench},{kind:d.gB.RefactorRewrite,title:(0,C.kg)("codeAction.widget.id.convert","Rewrite"),icon:m.W.wrench},{kind:d.gB.RefactorMove,title:(0,C.kg)("codeAction.widget.id.move","Move"),icon:m.W.wrench},{kind:d.gB.SurroundWith,title:(0,C.kg)("codeAction.widget.id.surround","Surround With"),icon:m.W.surroundWith},{kind:d.gB.Source,title:(0,C.kg)("codeAction.widget.id.source","Source Action"),icon:m.W.symbolFile},h]);function p(ne,de,Le){if(!de)return ne.map(Ue=>{var lt;return{kind:"action",item:Ue,group:h,disabled:!!Ue.action.disabled,label:Ue.action.disabled||Ue.action.title,canPreview:!!(!((lt=Ue.action.edit)===null||lt===void 0)&<.edits.length)}});const We=v.map(Ue=>({group:Ue,actions:[]}));for(const Ue of ne){const lt=Ue.action.kind?new f.k(Ue.action.kind):f.k.None;for(const Et of We)if(Et.group.kind.contains(lt)){Et.actions.push(Ue);break}}const we=[];for(const Ue of We)if(Ue.actions.length){we.push({kind:"header",group:Ue.group});for(const lt of Ue.actions){const Et=Ue.group;we.push({kind:"action",item:lt,group:lt.action.isAI?{title:Et.title,kind:Et.kind,icon:m.W.sparkle}:Et,label:lt.action.title,disabled:!!lt.action.disabled,keybinding:Le(lt.action)})}}return we}var b=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/contrib/message/browser/messageController.js"),w=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js"),j=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.js"),U=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/list/listWidget.js"),K=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),G=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),P=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),A=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),T=e("./node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js"),E=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),W=function(ne,de,Le,We){var we=arguments.length,Ue=we<3?de:We===null?We=Object.getOwnPropertyDescriptor(de,Le):We,lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ue=Reflect.decorate(ne,de,Le,We);else for(var Et=ne.length-1;Et>=0;Et--)(lt=ne[Et])&&(Ue=(we<3?lt(Ue):we>3?lt(de,Le,Ue):lt(de,Le))||Ue);return we>3&&Ue&&Object.defineProperty(de,Le,Ue),Ue},$=function(ne,de){return function(Le,We){de(Le,We,ne)}};const z="acceptSelectedCodeAction",J="previewSelectedCodeAction";class B{get templateId(){return"header"}renderTemplate(de){de.classList.add("group-header");const Le=document.createElement("span");return de.append(Le),{container:de,text:Le}}renderElement(de,Le,We){var we,Ue;We.text.textContent=(Ue=(we=de.group)===null||we===void 0?void 0:we.title)!==null&&Ue!==void 0?Ue:""}disposeTemplate(de){}}let V=class{get templateId(){return"action"}constructor(de,Le){this._supportsPreview=de,this._keybindingService=Le}renderTemplate(de){de.classList.add(this.templateId);const Le=document.createElement("div");Le.className="icon",de.append(Le);const We=document.createElement("span");We.className="title",de.append(We);const we=new j.x(de,G.OS);return{container:de,icon:Le,text:We,keybinding:we}}renderElement(de,Le,We){var we,Ue,lt;if(!((we=de.group)===null||we===void 0)&&we.icon?(We.icon.className=P.L.asClassName(de.group.icon),de.group.icon.color&&(We.icon.style.color=(0,E.GuP)(de.group.icon.color.id))):(We.icon.className=P.L.asClassName(m.W.lightBulb),We.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!de.item||!de.label)return;We.text.textContent=te(de.label),We.keybinding.set(de.keybinding),r.bo(!!de.keybinding,We.keybinding.element);const Et=(Ue=this._keybindingService.lookupKeybinding(z))===null||Ue===void 0?void 0:Ue.getLabel(),Kt=(lt=this._keybindingService.lookupKeybinding(J))===null||lt===void 0?void 0:lt.getLabel();We.container.classList.toggle("option-disabled",de.disabled),de.disabled?We.container.title=de.label:Et&&Kt?this._supportsPreview&&de.canPreview?We.container.title=(0,C.kg)({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to Apply, Shift+F2 to Preview"']},"{0} to Apply, {1} to Preview",Et,Kt):We.container.title=(0,C.kg)({key:"label",comment:['placeholder is a keybinding, e.g "F2 to Apply"']},"{0} to Apply",Et):We.container.title=""}disposeTemplate(de){de.keybinding.dispose()}};V=W([$(1,a.b)],V);class Y extends UIEvent{constructor(){super("acceptSelectedAction")}}class X extends UIEvent{constructor(){super("previewSelectedAction")}}function ie(ne){if(ne.kind==="action")return ne.label}let re=class extends L.jG{constructor(de,Le,We,we,Ue,lt){super(),this._delegate=we,this._contextViewService=Ue,this._keybindingService=lt,this._actionLineHeight=24,this._headerLineHeight=26,this.cts=this._register(new K.Q),this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");const Et={getHeight:Kt=>Kt.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:Kt=>Kt.kind};this._list=this._register(new U.B8(de,this.domNode,Et,[new V(Le,this._keybindingService),new B],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:ie},accessibilityProvider:{getAriaLabel:Kt=>{if(Kt.kind==="action"){let Zt=Kt.label?te(Kt?.label):"";return Kt.disabled&&(Zt=(0,C.kg)({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",Zt,Kt.disabled)),Zt}return null},getWidgetAriaLabel:()=>(0,C.kg)({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:Kt=>Kt.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(T.IN),this._register(this._list.onMouseClick(Kt=>this.onListClick(Kt))),this._register(this._list.onMouseOver(Kt=>this.onListHover(Kt))),this._register(this._list.onDidChangeFocus(()=>this.onFocus())),this._register(this._list.onDidChangeSelection(Kt=>this.onListSelection(Kt))),this._allMenuItems=We,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(de){return!de.disabled&&de.kind==="action"}hide(de){this._delegate.onHide(de),this.cts.cancel(),this._contextViewService.hideContextView()}layout(de){const Le=this._allMenuItems.filter(Kt=>Kt.kind==="header").length,we=this._allMenuItems.length*this._actionLineHeight+Le*this._headerLineHeight-Le*this._actionLineHeight;this._list.layout(we);let Ue=de;if(this._allMenuItems.length>=50)Ue=380;else{const Kt=this._allMenuItems.map((Zt,qt)=>{const tt=this.domNode.ownerDocument.getElementById(this._list.getElementID(qt));if(tt){tt.style.width="auto";const Mt=tt.getBoundingClientRect().width;return tt.style.width="",Mt}return 0});Ue=Math.max(...Kt,de)}const Et=Math.min(we,this.domNode.ownerDocument.body.clientHeight*.7);return this._list.layout(Et,Ue),this.domNode.style.height=`${Et}px`,this._list.domFocus(),Ue}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(de){const Le=this._list.getFocus();if(Le.length===0)return;const We=Le[0],we=this._list.element(We);if(!this.focusCondition(we))return;const Ue=de?new X:new Y;this._list.setSelection([We],Ue)}onListSelection(de){if(!de.elements.length)return;const Le=de.elements[0];Le.item&&this.focusCondition(Le)?this._delegate.onSelect(Le.item,de.browserEvent instanceof X):this._list.setSelection([])}onFocus(){var de,Le;const We=this._list.getFocus();if(We.length===0)return;const we=We[0],Ue=this._list.element(we);(Le=(de=this._delegate).onFocus)===null||Le===void 0||Le.call(de,Ue.item)}async onListHover(de){const Le=de.element;if(Le&&Le.item&&this.focusCondition(Le)){if(this._delegate.onHover&&!Le.disabled&&Le.kind==="action"){const We=await this._delegate.onHover(Le.item,this.cts.token);Le.canPreview=We?We.canPreview:void 0}de.index&&this._list.splice(de.index,1,[Le])}this._list.setFocus(typeof de.index=="number"?[de.index]:[])}onListClick(de){de.element&&this.focusCondition(de.element)&&this._list.setFocus([])}};re=W([$(4,A.l),$(5,a.b)],re);function te(ne){return ne.replace(/\r\n|\r|\n/g," ")}var D=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),he=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),ve=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),Ce=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),Pe=function(ne,de,Le,We){var we=arguments.length,Ue=we<3?de:We===null?We=Object.getOwnPropertyDescriptor(de,Le):We,lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ue=Reflect.decorate(ne,de,Le,We);else for(var Et=ne.length-1;Et>=0;Et--)(lt=ne[Et])&&(Ue=(we<3?lt(Ue):we>3?lt(de,Le,Ue):lt(de,Le))||Ue);return we>3&&Ue&&Object.defineProperty(de,Le,Ue),Ue},_e=function(ne,de){return function(Le,We){de(Le,We,ne)}};(0,E.x1A)("actionBar.toggledBackground",{dark:E.c1f,light:E.c1f,hcDark:E.c1f,hcLight:E.c1f},(0,C.kg)("actionBar.toggledBackground","Background color for toggled action items in action bar."));const ee={Visible:new he.N1("codeActionMenuVisible",!1,(0,C.kg)("codeActionMenuVisible","Whether the action widget list is visible"))},De=(0,Ce.u1)("actionWidgetService");let Te=class extends L.jG{get isVisible(){return ee.Visible.getValue(this._contextKeyService)||!1}constructor(de,Le,We){super(),this._contextViewService=de,this._contextKeyService=Le,this._instantiationService=We,this._list=this._register(new L.HE)}show(de,Le,We,we,Ue,lt,Et){const Kt=ee.Visible.bindTo(this._contextKeyService),Zt=this._instantiationService.createInstance(re,de,Le,We,we);this._contextViewService.showContextView({getAnchor:()=>Ue,render:qt=>(Kt.set(!0),this._renderWidget(qt,Zt,Et??[])),onHide:qt=>{Kt.reset(),this._onWidgetClosed(qt)}},lt,!1)}acceptSelected(de){var Le;(Le=this._list.value)===null||Le===void 0||Le.acceptSelected(de)}focusPrevious(){var de,Le;(Le=(de=this._list)===null||de===void 0?void 0:de.value)===null||Le===void 0||Le.focusPrevious()}focusNext(){var de,Le;(Le=(de=this._list)===null||de===void 0?void 0:de.value)===null||Le===void 0||Le.focusNext()}hide(){var de;(de=this._list.value)===null||de===void 0||de.hide(),this._list.clear()}_renderWidget(de,Le,We){var we;const Ue=document.createElement("div");if(Ue.classList.add("action-widget"),de.appendChild(Ue),this._list.value=Le,this._list.value)Ue.appendChild(this._list.value.domNode);else throw new Error("List has no value");const lt=new L.Cm,Et=document.createElement("div"),Kt=de.appendChild(Et);Kt.classList.add("context-view-block"),lt.add(r.ko(Kt,r.Bx.MOUSE_DOWN,xt=>xt.stopPropagation()));const Zt=document.createElement("div"),qt=de.appendChild(Zt);qt.classList.add("context-view-pointerBlock"),lt.add(r.ko(qt,r.Bx.POINTER_MOVE,()=>qt.remove())),lt.add(r.ko(qt,r.Bx.MOUSE_DOWN,()=>qt.remove()));let tt=0;if(We.length){const xt=this._createActionBar(".action-widget-action-bar",We);xt&&(Ue.appendChild(xt.getContainer().parentElement),lt.add(xt),tt=xt.getContainer().offsetWidth)}const Mt=(we=this._list.value)===null||we===void 0?void 0:we.layout(tt);Ue.style.width=`${Mt}px`;const Ht=lt.add(r.w5(de));return lt.add(Ht.onDidBlur(()=>this.hide())),lt}_createActionBar(de,Le){if(!Le.length)return;const We=r.$(de),we=new w.E(We);return we.push(Le,{icon:!1,label:!0}),we}_onWidgetClosed(de){var Le;(Le=this._list.value)===null||Le===void 0||Le.hide(de)}};Te=Pe([_e(0,A.l),_e(1,he.fN),_e(2,Ce._Y)],Te),(0,ve.v)(De,Te,1);const He=1100;(0,D.ug)(class extends D.L{constructor(){super({id:"hideCodeActionWidget",title:(0,C.aS)("hideCodeActionWidget.title","Hide action widget"),precondition:ee.Visible,keybinding:{weight:He,primary:9,secondary:[1033]}})}run(ne){ne.get(De).hide()}}),(0,D.ug)(class extends D.L{constructor(){super({id:"selectPrevCodeAction",title:(0,C.aS)("selectPrevCodeAction.title","Select previous action"),precondition:ee.Visible,keybinding:{weight:He,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(ne){const de=ne.get(De);de instanceof Te&&de.focusPrevious()}}),(0,D.ug)(class extends D.L{constructor(){super({id:"selectNextCodeAction",title:(0,C.aS)("selectNextCodeAction.title","Select next action"),precondition:ee.Visible,keybinding:{weight:He,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(ne){const de=ne.get(De);de instanceof Te&&de.focusNext()}}),(0,D.ug)(class extends D.L{constructor(){super({id:z,title:(0,C.aS)("acceptSelected.title","Accept selected action"),precondition:ee.Visible,keybinding:{weight:He,primary:3,secondary:[2137]}})}run(ne){const de=ne.get(De);de instanceof Te&&de.acceptSelected()}}),(0,D.ug)(class extends D.L{constructor(){super({id:J,title:(0,C.aS)("previewSelected.title","Preview selected action"),precondition:ee.Visible,keybinding:{weight:He,primary:2051}})}run(ne){const de=ne.get(De);de instanceof Te&&de.acceptSelected(!0)}});var qe=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),Qe=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),q=e("./node_modules/monaco-editor/esm/vs/platform/markers/common/markers.js"),ye=e("./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"),ge=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js"),be=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),Se=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionModel.js"),ae=function(ne,de,Le,We){var we=arguments.length,Ue=we<3?de:We===null?We=Object.getOwnPropertyDescriptor(de,Le):We,lt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ue=Reflect.decorate(ne,de,Le,We);else for(var Et=ne.length-1;Et>=0;Et--)(lt=ne[Et])&&(Ue=(we<3?lt(Ue):we>3?lt(de,Le,Ue):lt(de,Le))||Ue);return we>3&&Ue&&Object.defineProperty(de,Le,Ue),Ue},me=function(ne,de){return function(Le,We){de(Le,We,ne)}},fe;const le="quickfix-edit-highlight";let oe=fe=class extends L.jG{static get(de){return de.getContribution(fe.ID)}constructor(de,Le,We,we,Ue,lt,Et,Kt,Zt,qt){super(),this._commandService=Et,this._configurationService=Kt,this._actionWidgetService=Zt,this._instantiationService=qt,this._activeCodeActions=this._register(new L.HE),this._showDisabled=!1,this._disposed=!1,this._editor=de,this._model=this._register(new Se.Dc(this._editor,Ue.codeActionProvider,Le,We,lt,Kt)),this._register(this._model.onDidChangeState(tt=>this.update(tt))),this._lightBulbWidget=new M.d(()=>{const tt=this._editor.getContribution(b.E.ID);return tt&&this._register(tt.onClick(Mt=>this.showCodeActionsFromLightbulb(Mt.actions,Mt))),tt}),this._resolver=we.createInstance(c),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}async showCodeActionsFromLightbulb(de,Le){if(de.allAIFixes&&de.validActions.length===1){const We=de.validActions[0],we=We.action.command;we&&we.id==="inlineChat.start"&&we.arguments&&we.arguments.length>=1&&(we.arguments[0]={...we.arguments[0],autoSend:!1}),await this._applyCodeAction(We,!1,!1,S.Qp.FromAILightbulb);return}await this.showCodeActionList(de,Le,{includeDisabledActions:!1,fromLightbulb:!0})}showCodeActions(de,Le,We){return this.showCodeActionList(Le,We,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(de,Le,We,we){var Ue;if(!this._editor.hasModel())return;(Ue=O.k.get(this._editor))===null||Ue===void 0||Ue.closeMessage();const lt=this._editor.getPosition();this._trigger({type:1,triggerAction:Le,filter:We,autoApply:we,context:{notAvailableMessage:de,position:lt}})}_trigger(de){return this._model.trigger(de)}async _applyCodeAction(de,Le,We,we){try{await this._instantiationService.invokeFunction(S.W4,de,we,{preview:We,editor:this._editor})}finally{Le&&this._trigger({type:2,triggerAction:d.fo.QuickFix,filter:{}})}}async update(de){var Le,We,we,Ue,lt,Et,Kt;if(de.type!==1){(Le=this._lightBulbWidget.rawValue)===null||Le===void 0||Le.hide();return}let Zt;try{Zt=await de.actions}catch(qt){(0,k.dz)(qt);return}if(!this._disposed)if((We=this._lightBulbWidget.value)===null||We===void 0||We.update(Zt,de.trigger,de.position),de.trigger.type===1){if(!((we=de.trigger.filter)===null||we===void 0)&&we.include){const tt=this.tryGetValidActionToApply(de.trigger,Zt);if(tt){try{(Ue=this._lightBulbWidget.value)===null||Ue===void 0||Ue.hide(),await this._applyCodeAction(tt,!1,!1,S.Qp.FromCodeActions)}finally{Zt.dispose()}return}if(de.trigger.context){const Mt=this.getInvalidActionThatWouldHaveBeenApplied(de.trigger,Zt);if(Mt&&Mt.action.disabled){(lt=O.k.get(this._editor))===null||lt===void 0||lt.showMessage(Mt.action.disabled,de.trigger.context.position),Zt.dispose();return}}}const qt=!!(!((Et=de.trigger.filter)===null||Et===void 0)&&Et.include);if(de.trigger.context&&(!Zt.allActions.length||!qt&&!Zt.validActions.length)){(Kt=O.k.get(this._editor))===null||Kt===void 0||Kt.showMessage(de.trigger.context.notAvailableMessage,de.trigger.context.position),this._activeCodeActions.value=Zt,Zt.dispose();return}this._activeCodeActions.value=Zt,this.showCodeActionList(Zt,this.toCoords(de.position),{includeDisabledActions:qt,fromLightbulb:!1})}else this._actionWidgetService.isVisible?Zt.dispose():this._activeCodeActions.value=Zt}getInvalidActionThatWouldHaveBeenApplied(de,Le){if(Le.allActions.length&&(de.autoApply==="first"&&Le.validActions.length===0||de.autoApply==="ifSingle"&&Le.allActions.length===1))return Le.allActions.find(({action:We})=>We.disabled)}tryGetValidActionToApply(de,Le){if(Le.validActions.length&&(de.autoApply==="first"&&Le.validActions.length>0||de.autoApply==="ifSingle"&&Le.validActions.length===1))return Le.validActions[0]}async showCodeActionList(de,Le,We){const we=this._editor.createDecorationsCollection(),Ue=this._editor.getDomNode();if(!Ue)return;const lt=We.includeDisabledActions&&(this._showDisabled||de.validActions.length===0)?de.allActions:de.validActions;if(!lt.length)return;const Et=g.y.isIPosition(Le)?this.toCoords(Le):Le,Kt={onSelect:async(Zt,qt)=>{this._applyCodeAction(Zt,!0,!!qt,S.Qp.FromCodeActions),this._actionWidgetService.hide(),we.clear()},onHide:()=>{var Zt;(Zt=this._editor)===null||Zt===void 0||Zt.focus(),we.clear()},onHover:async(Zt,qt)=>{var tt;if(qt.isCancellationRequested)return;let Mt=!1;const Ht=Zt.action.kind;if(Ht){const xt=new f.k(Ht);Mt=[d.gB.RefactorExtract,d.gB.RefactorInline,d.gB.RefactorRewrite].some(Nt=>Nt.contains(xt))}return{canPreview:Mt||!!(!((tt=Zt.action.edit)===null||tt===void 0)&&tt.edits.length)}},onFocus:Zt=>{var qt,tt;if(Zt&&Zt.action){const Mt=Zt.action.ranges,Ht=Zt.action.diagnostics;if(we.clear(),Mt&&Mt.length>0){const xt=Ht&&Ht?.length>1?Ht.map(Jt=>({range:Jt,options:fe.DECORATION})):Mt.map(Jt=>({range:Jt,options:fe.DECORATION}));we.set(xt)}else if(Ht&&Ht.length>0){const xt=Ht.map(Nt=>({range:Nt,options:fe.DECORATION}));we.set(xt);const Jt=Ht[0];if(Jt.startLineNumber&&Jt.startColumn){const Nt=(tt=(qt=this._editor.getModel())===null||qt===void 0?void 0:qt.getWordAtPosition({lineNumber:Jt.startLineNumber,column:Jt.startColumn}))===null||tt===void 0?void 0:tt.word;F.h5((0,C.kg)("editingNewSelection","Context: {0} at line {1} and column {2}.",Nt,Jt.startLineNumber,Jt.startColumn))}}}else we.clear()}};this._actionWidgetService.show("codeActionWidget",!0,p(lt,this._shouldShowHeaders(),this._resolver.getResolver()),Kt,Et,Ue,this._getActionBarActions(de,Le,We))}toCoords(de){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(de,1),this._editor.render();const Le=this._editor.getScrolledVisiblePosition(de),We=(0,r.BK)(this._editor.getDomNode()),we=We.left+Le.left,Ue=We.top+Le.top+Le.height;return{x:we,y:Ue}}_shouldShowHeaders(){var de;const Le=(de=this._editor)===null||de===void 0?void 0:de.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:Le?.uri})}_getActionBarActions(de,Le,We){if(We.fromLightbulb)return[];const we=de.documentation.map(Ue=>{var lt;return{id:Ue.id,label:Ue.title,tooltip:(lt=Ue.tooltip)!==null&<!==void 0?lt:"",class:void 0,enabled:!0,run:()=>{var Et;return this._commandService.executeCommand(Ue.id,...(Et=Ue.arguments)!==null&&Et!==void 0?Et:[])}}});return We.includeDisabledActions&&de.validActions.length>0&&de.allActions.length!==de.validActions.length&&we.push(this._showDisabled?{id:"hideMoreActions",label:(0,C.kg)("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(de,Le,We))}:{id:"showMoreActions",label:(0,C.kg)("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(de,Le,We))}),we}};oe.ID="editor.contrib.codeActionController",oe.DECORATION=x.kI.register({description:"quickfix-highlight",className:le}),oe=fe=ae([me(1,q.DR),me(2,he.fN),me(3,Ce._Y),me(4,I.u),me(5,ye.N8),me(6,qe.d),me(7,Qe.pG),me(8,De),me(9,Ce._Y)],oe),(0,be.zy)((ne,de)=>{((we,Ue)=>{Ue&&de.addRule(`.monaco-editor ${we} { background-color: ${Ue}; }`)})(".quickfix-edit-highlight",ne.getColor(E.Ubg));const We=ne.getColor(E.ECk);We&&de.addRule(`.monaco-editor .quickfix-edit-highlight { border: 1px ${(0,ge.Bb)(ne.type)?"dotted":"solid"} ${We}; box-sizing: border-box; }`)})},"./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionModel.js":function(pt,Me,e){e.d(Me,{D_:function(){return n},Dc:function(){return C}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/common/types.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeAction.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js");const n=new S.N1("supportedCodeAction",""),i="_typescript.applyFixAllCodeAction";class c extends M.jG{constructor(v,p,b,O=250){super(),this._editor=v,this._markerService=p,this._signalChange=b,this._delay=O,this._autoTriggerTimer=this._register(new r.pc),this._register(this._markerService.onMarkerChanged(w=>this._onMarkerChanges(w))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(v){const p=this._getRangeOfSelectionUnlessWhitespaceEnclosed(v);this._signalChange(p?{trigger:v,selection:p}:void 0)}_onMarkerChanges(v){const p=this._editor.getModel();p&&v.some(b=>(0,L.n4)(b,p.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:d.fo.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(v){if(!this._editor.hasModel())return;const p=this._editor.getSelection();if(v.type===1)return p;const b=this._editor.getOption(65).enabled;if(b!==g.jT.Off){{if(b===g.jT.On)return p;if(b===g.jT.OnCode){if(!p.isEmpty())return p;const w=this._editor.getModel(),{lineNumber:j,column:U}=p.getPosition(),K=w.getLineContent(j);if(K.length===0)return;if(U===1){if(/\s/.test(K[0]))return}else if(U===w.getLineMaxColumn(j)){if(/\s/.test(K[K.length-1]))return}else if(/\s/.test(K[U-2])&&/\s/.test(K[U-1]))return}}return p}}}var m;(function(h){h.Empty={type:0};class v{constructor(b,O,w){this.trigger=b,this.position=O,this._cancellablePromise=w,this.type=1,this.actions=w.catch(j=>{if((0,F.MB)(j))return u;throw j})}cancel(){this._cancellablePromise.cancel()}}h.Triggered=v})(m||(m={}));const u=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1,hasAIFix:!1,allAIFixes:!1});class C extends M.jG{constructor(v,p,b,O,w,j){super(),this._editor=v,this._registry=p,this._markerService=b,this._progressService=w,this._configurationService=j,this._codeActionOracle=this._register(new M.HE),this._state=m.Empty,this._onDidChangeState=this._register(new k.vl),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=n.bindTo(O),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._register(this._editor.onDidChangeConfiguration(U=>{U.hasChanged(65)&&this._update()})),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(m.Empty,!0))}_settingEnabledNearbyQuickfixes(){var v;const p=(v=this._editor)===null||v===void 0?void 0:v.getModel();return this._configurationService?this._configurationService.getValue("editor.codeActionWidget.includeNearbyQuickFixes",{resource:p?.uri}):!1}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(m.Empty);const v=this._editor.getModel();if(v&&this._registry.has(v)&&!this._editor.getOption(91)){const p=this._registry.all(v).flatMap(b=>{var O;return(O=b.providedCodeActionKinds)!==null&&O!==void 0?O:[]});this._supportedCodeActions.set(p.join(" ")),this._codeActionOracle.value=new c(this._editor,this._markerService,b=>{var O;if(!b){this.setState(m.Empty);return}const w=b.selection.getStartPosition(),j=(0,r.SS)(async G=>{var P,A,T,E,W,$,z,J,B,V;if(this._settingEnabledNearbyQuickfixes()&&b.trigger.type===1&&(b.trigger.triggerAction===d.fo.QuickFix||!((A=(P=b.trigger.filter)===null||P===void 0?void 0:P.include)===null||A===void 0)&&A.contains(d.gB.QuickFix))){const Y=await(0,a.dU)(this._registry,v,b.selection,b.trigger,f.ke.None,G),X=[...Y.allActions];if(G.isCancellationRequested)return u;const ie=(T=Y.validActions)===null||T===void 0?void 0:T.some(te=>te.action.kind?d.gB.QuickFix.contains(new s.k(te.action.kind)):!1),re=this._markerService.read({resource:v.uri});if(ie){for(const te of Y.validActions)!((W=(E=te.action.command)===null||E===void 0?void 0:E.arguments)===null||W===void 0)&&W.some(D=>typeof D=="string"&&D.includes(i))&&(te.action.diagnostics=[...re.filter(D=>D.relatedInformation)]);return{validActions:Y.validActions,allActions:X,documentation:Y.documentation,hasAutoFix:Y.hasAutoFix,hasAIFix:Y.hasAIFix,allAIFixes:Y.allAIFixes,dispose:()=>{Y.dispose()}}}else if(!ie&&re.length>0){const te=b.selection.getPosition();let D=te,he=Number.MAX_VALUE;const ve=[...Y.validActions];for(const Pe of re){const _e=Pe.endColumn,ee=Pe.endLineNumber,De=Pe.startLineNumber;if(ee===te.lineNumber||De===te.lineNumber){D=new x.y(ee,_e);const Te={type:b.trigger.type,triggerAction:b.trigger.triggerAction,filter:{include:!(($=b.trigger.filter)===null||$===void 0)&&$.include?(z=b.trigger.filter)===null||z===void 0?void 0:z.include:d.gB.QuickFix},autoApply:b.trigger.autoApply,context:{notAvailableMessage:((J=b.trigger.context)===null||J===void 0?void 0:J.notAvailableMessage)||"",position:D}},He=new I.L(D.lineNumber,D.column,D.lineNumber,D.column),qe=await(0,a.dU)(this._registry,v,He,Te,f.ke.None,G);if(qe.validActions.length!==0){for(const Qe of qe.validActions)!((V=(B=Qe.action.command)===null||B===void 0?void 0:B.arguments)===null||V===void 0)&&V.some(q=>typeof q=="string"&&q.includes(i))&&(Qe.action.diagnostics=[...re.filter(q=>q.relatedInformation)]);Y.allActions.length===0&&X.push(...qe.allActions),Math.abs(te.column-_e)ee.findIndex(De=>De.action.title===Pe.action.title)===_e);return Ce.sort((Pe,_e)=>Pe.action.isPreferred&&!_e.action.isPreferred?-1:!Pe.action.isPreferred&&_e.action.isPreferred||Pe.action.isAI&&!_e.action.isAI?1:!Pe.action.isAI&&_e.action.isAI?-1:0),{validActions:Ce,allActions:X,documentation:Y.documentation,hasAutoFix:Y.hasAutoFix,hasAIFix:Y.hasAIFix,allAIFixes:Y.allAIFixes,dispose:()=>{Y.dispose()}}}}return(0,a.dU)(this._registry,v,b.selection,b.trigger,f.ke.None,G)});b.trigger.type===1&&((O=this._progressService)===null||O===void 0||O.showWhile(j,250));const U=new m.Triggered(b.trigger,w,j);let K=!1;this._state.type===1&&(K=this._state.trigger.type===1&&U.type===1&&U.trigger.type===2&&this._state.position!==U.position),K||this.setState(U)},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:d.fo.Default})}else this._supportedCodeActions.reset()}trigger(v){var p;(p=this._codeActionOracle.value)===null||p===void 0||p.trigger(v)}setState(v,p){v!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=v,!p&&!this._disposed&&this._onDidChangeState.fire(v))}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/lightBulbWidget.js":function(pt,Me,e){e.d(Me,{E:function(){return c}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/touch.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/model/utils.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeAction.js"),S=e("./node_modules/monaco-editor/esm/vs/nls.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),a=function(m,u,C,h){var v=arguments.length,p=v<3?u:h===null?h=Object.getOwnPropertyDescriptor(u,C):h,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(m,u,C,h);else for(var O=m.length-1;O>=0;O--)(b=m[O])&&(p=(v<3?b(p):v>3?b(u,C,p):b(u,C))||p);return v>3&&p&&Object.defineProperty(u,C,p),p},s=function(m,u){return function(C,h){u(C,h,m)}},n,i;(function(m){m.Hidden={type:0};class u{constructor(h,v,p,b){this.actions=h,this.trigger=v,this.editorPosition=p,this.widgetPosition=b,this.type=1}}m.Showing=u})(i||(i={}));let c=n=class extends L.jG{constructor(u,C,h){super(),this._editor=u,this._keybindingService=C,this._onClick=this._register(new M.vl),this.onClick=this._onClick.event,this._state=i.Hidden,this._iconClasses=[],this._domNode=r.$("div.lightBulbWidget"),this._register(F.q.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(v=>{const p=this._editor.getModel();(this.state.type!==1||!p||this.state.editorPosition.lineNumber>=p.getLineCount())&&this.hide()})),this._register(r.Xc(this._domNode,v=>{if(this.state.type!==1)return;this._editor.focus(),v.preventDefault();const{top:p,height:b}=r.BK(this._domNode),O=this._editor.getOption(67);let w=Math.floor(O/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(v.buttons&1)===1&&this.hide()})),this._register(M.Jh.runAndSubscribe(this._keybindingService.onDidUpdateKeybindings,()=>{var v,p,b,O;this._preferredKbLabel=(p=(v=this._keybindingService.lookupKeybinding(I.pR))===null||v===void 0?void 0:v.getLabel())!==null&&p!==void 0?p:void 0,this._quickFixKbLabel=(O=(b=this._keybindingService.lookupKeybinding(I.pQ))===null||b===void 0?void 0:b.getLabel())!==null&&O!==void 0?O:void 0,this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(u,C,h){if(u.validActions.length<=0)return this.hide();if(!this._editor.getOptions().get(65).enabled)return this.hide();const p=this._editor.getModel();if(!p)return this.hide();const{lineNumber:b,column:O}=p.validatePosition(h),w=p.getOptions().tabSize,j=this._editor.getOptions().get(50),U=p.getLineContent(b),K=(0,x.G)(U,w),G=j.spaceWidth*K>22,P=E=>E>2&&this._editor.getTopForLineNumber(E)===this._editor.getTopForLineNumber(E-1);let A=b,T=1;if(!G){if(b>1&&!P(b-1))A-=1;else if(bx(d,a,f.include))||!f.includeSourceActions&&k.Source.contains(d))}function g(f,d){const a=d.kind?new F.k(d.kind):void 0;return!(f.include&&(!a||!f.include.contains(a))||f.excludes&&a&&f.excludes.some(s=>x(a,s,f.include))||!f.includeSourceActions&&a&&k.Source.contains(a)||f.onlyIncludePreferredActions&&!d.isPreferred)}function x(f,d,a){return!(!d.contains(f)||a&&d.contains(a))}class I{static fromUser(d,a){return!d||typeof d!="object"?new I(a.kind,a.apply,!1):new I(I.getKindFromUser(d,a.kind),I.getApplyFromUser(d,a.apply),I.getPreferredUser(d))}static getApplyFromUser(d,a){switch(typeof d.apply=="string"?d.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return a}}static getKindFromUser(d,a){return typeof d.kind=="string"?new F.k(d.kind):a}static getPreferredUser(d){return typeof d.preferred=="boolean"?d.preferred:!1}constructor(d,a,s){this.kind=d,this.apply=a,this.preferred=s}}class S{constructor(d,a,s){this.action=d,this.provider=a,this.highlightRange=s}async resolve(d){var a;if(!((a=this.provider)===null||a===void 0)&&a.resolveCodeAction&&!this.action.edit){let s;try{s=await this.provider.resolveCodeAction(this.action,d)}catch(n){(0,r.M_)(n)}s&&(this.action.edit=s.edit)}return this}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensController.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/stableEditorScroll.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js");class n{constructor(){this.lenses=[],this._disposables=new k.Cm}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(te,D){this._disposables.add(te);for(const he of te.lenses)this.lenses.push({symbol:he,provider:D})}}async function i(re,te,D){const he=re.ordered(te),ve=new Map,Ce=new n,Pe=he.map(async(_e,ee)=>{ve.set(_e,ee);try{const De=await Promise.resolve(_e.provideCodeLenses(te,D));De&&Ce.add(De,_e)}catch(De){(0,F.M_)(De)}});return await Promise.all(Pe),Ce.lenses=Ce.lenses.sort((_e,ee)=>_e.symbol.range.startLineNumberee.symbol.range.startLineNumber?1:ve.get(_e.provider)ve.get(ee.provider)?1:_e.symbol.range.startColumnee.symbol.range.startColumn?1:0),Ce}a.w.registerCommand("_executeCodeLensProvider",function(re,...te){let[D,he]=te;(0,S.j)(f.r.isUri(D)),(0,S.j)(typeof he=="number"||!he);const{codeLensProvider:ve}=re.get(s.u),Ce=re.get(d.S).getModel(D);if(!Ce)throw(0,F.Qg)();const Pe=[],_e=new k.Cm;return i(ve,Ce,I.X.None).then(ee=>{_e.add(ee);const De=[];for(const Te of ee.lenses)he==null||Te.symbol.command?Pe.push(Te.symbol):he-- >0&&Te.provider.resolveCodeLens&&De.push(Promise.resolve(Te.provider.resolveCodeLens(Ce,Te.symbol,I.X.None)).then(He=>Pe.push(He||Te.symbol)));return Promise.all(De)}).then(()=>Pe).finally(()=>{setTimeout(()=>_e.dispose(),100)})});var c=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),C=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),v=e("./node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js"),p=e("./node_modules/monaco-editor/esm/vs/base/browser/window.js"),b=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),O=function(re,te,D,he){var ve=arguments.length,Ce=ve<3?te:he===null?he=Object.getOwnPropertyDescriptor(te,D):he,Pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ce=Reflect.decorate(re,te,D,he);else for(var _e=re.length-1;_e>=0;_e--)(Pe=re[_e])&&(Ce=(ve<3?Pe(Ce):ve>3?Pe(te,D,Ce):Pe(te,D))||Ce);return ve>3&&Ce&&Object.defineProperty(te,D,Ce),Ce},w=function(re,te){return function(D,he){te(D,he,re)}};const j=(0,h.u1)("ICodeLensCache");class U{constructor(te,D){this.lineCount=te,this.data=D}}let K=class{constructor(te){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new m.qK(20,.75);const D="codelens/cache";(0,b.U3)(p.G,()=>te.remove(D,1));const he="codelens/cache2",ve=te.get(he,1,"{}");this._deserialize(ve),c.Jh.once(te.onWillSaveState)(Ce=>{Ce.reason===v.LP.SHUTDOWN&&te.store(he,this._serialize(),1,1)})}put(te,D){const he=D.lenses.map(Pe=>{var _e;return{range:Pe.symbol.range,command:Pe.symbol.command&&{id:"",title:(_e=Pe.symbol.command)===null||_e===void 0?void 0:_e.title}}}),ve=new n;ve.add({lenses:he,dispose:()=>{}},this._fakeProvider);const Ce=new U(te.getLineCount(),ve);this._cache.set(te.uri.toString(),Ce)}get(te){const D=this._cache.get(te.uri.toString());return D&&D.lineCount===te.getLineCount()?D.data:void 0}delete(te){this._cache.delete(te.uri.toString())}_serialize(){const te=Object.create(null);for(const[D,he]of this._cache){const ve=new Set;for(const Ce of he.data.lenses)ve.add(Ce.symbol.range.startLineNumber);te[D]={lineCount:he.lineCount,lines:[...ve.values()]}}return JSON.stringify(te)}_deserialize(te){try{const D=JSON.parse(te);for(const he in D){const ve=D[he],Ce=[];for(const _e of ve.lines)Ce.push({range:new u.Q(_e,1,_e,11)});const Pe=new n;Pe.add({lenses:Ce,dispose(){}},this._fakeProvider),this._cache.set(he,new U(ve.lineCount,Pe))}}catch{}}};K=O([w(0,v.CS)],K),(0,C.v)(j,K,1);var G=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabels.js"),P=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js");class A{constructor(te,D,he){this.afterColumn=1073741824,this.afterLineNumber=te,this.heightInPx=D,this._onHeight=he,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(te){this._lastHeight===void 0?this._lastHeight=te:this._lastHeight!==te&&(this._lastHeight=te,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}}class T{constructor(te,D){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=te,this._id=`codelens.widget-${T._idPool++}`,this.updatePosition(D),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(te,D){this._commands.clear();const he=[];let ve=!1;for(let Ce=0;Ce{De.symbol.command&&ee.push(De.symbol),he.addDecoration({range:De.symbol.range,options:W},He=>this._decorationIds[Te]=He),_e?_e=u.Q.plusRange(_e,De.symbol.range):_e=u.Q.lift(De.symbol.range)}),this._viewZone=new A(_e.startLineNumber-1,Ce,Pe),this._viewZoneId=ve.addZone(this._viewZone),ee.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(ee,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new T(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(te,D){this._decorationIds.forEach(te.removeDecoration,te),this._decorationIds=[],D?.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((te,D)=>{const he=this._editor.getModel().getDecorationRange(te),ve=this._data[D].symbol;return!!(he&&u.Q.isEmpty(ve.range)===he.isEmpty())})}updateCodeLensSymbols(te,D){this._decorationIds.forEach(D.removeDecoration,D),this._decorationIds=[],this._data=te,this._data.forEach((he,ve)=>{D.addDecoration({range:he.symbol.range,options:W},Ce=>this._decorationIds[ve]=Ce)})}updateHeight(te,D){this._viewZone.heightInPx=te,D.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(te){if(!this._viewZone.isVisible())return null;for(let D=0;D=0;_e--)(Pe=re[_e])&&(Ce=(ve<3?Pe(Ce):ve>3?Pe(te,D,Ce):Pe(te,D))||Ce);return ve>3&&Ce&&Object.defineProperty(te,D,Ce),Ce},X=function(re,te){return function(D,he){te(D,he,re)}};let ie=class{constructor(te,D,he,ve,Ce,Pe){this._editor=te,this._languageFeaturesService=D,this._commandService=ve,this._notificationService=Ce,this._codeLensCache=Pe,this._disposables=new k.Cm,this._localToDispose=new k.Cm,this._lenses=[],this._oldCodeLensModels=new k.Cm,this._provideCodeLensDebounce=he.for(D.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=he.for(D.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new r.uC(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(_e=>{(_e.hasChanged(50)||_e.hasChanged(19)||_e.hasChanged(18))&&this._updateLensStyle(),_e.hasChanged(17)&&this._onModelChange()})),this._disposables.add(D.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var te;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(te=this._currentCodeLensModel)===null||te===void 0||te.dispose()}_getLayoutInfo(){const te=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52));let D=this._editor.getOption(19);return(!D||D<5)&&(D=this._editor.getOption(52)*.9|0),{fontSize:D,codeLensHeight:D*te|0}}_updateLensStyle(){const{codeLensHeight:te,fontSize:D}=this._getLayoutInfo(),he=this._editor.getOption(18),ve=this._editor.getOption(50),{style:Ce}=this._editor.getContainerDomNode();Ce.setProperty("--vscode-editorCodeLens-lineHeight",`${te}px`),Ce.setProperty("--vscode-editorCodeLens-fontSize",`${D}px`),Ce.setProperty("--vscode-editorCodeLens-fontFeatureSettings",ve.fontFeatureSettings),he&&(Ce.setProperty("--vscode-editorCodeLens-fontFamily",he),Ce.setProperty("--vscode-editorCodeLens-fontFamilyDefault",g.jU.fontFamily)),this._editor.changeViewZones(Pe=>{for(const _e of this._lenses)_e.updateHeight(te,Pe)})}_localDispose(){var te,D,he;(te=this._getCodeLensModelPromise)===null||te===void 0||te.cancel(),this._getCodeLensModelPromise=void 0,(D=this._resolveCodeLensesPromise)===null||D===void 0||D.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(he=this._currentCodeLensModel)===null||he===void 0||he.dispose()}_onModelChange(){this._localDispose();const te=this._editor.getModel();if(!te||!this._editor.getOption(17)||te.isTooLargeForTokenization())return;const D=this._codeLensCache.get(te);if(D&&this._renderCodeLensSymbols(D),!this._languageFeaturesService.codeLensProvider.has(te)){D&&(0,r.EQ)(()=>{const ve=this._codeLensCache.get(te);D===ve&&(this._codeLensCache.delete(te),this._onModelChange())},30*1e3,this._localToDispose);return}for(const ve of this._languageFeaturesService.codeLensProvider.all(te))if(typeof ve.onDidChange=="function"){const Ce=ve.onDidChange(()=>he.schedule());this._localToDispose.add(Ce)}const he=new r.uC(()=>{var ve;const Ce=Date.now();(ve=this._getCodeLensModelPromise)===null||ve===void 0||ve.cancel(),this._getCodeLensModelPromise=(0,r.SS)(Pe=>i(this._languageFeaturesService.codeLensProvider,te,Pe)),this._getCodeLensModelPromise.then(Pe=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=Pe,this._codeLensCache.put(te,Pe);const _e=this._provideCodeLensDebounce.update(te,Date.now()-Ce);he.delay=_e,this._renderCodeLensSymbols(Pe),this._resolveCodeLensesInViewportSoon()},F.dz)},this._provideCodeLensDebounce.get(te));this._localToDispose.add(he),this._localToDispose.add((0,k.s)(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var ve;this._editor.changeDecorations(Ce=>{this._editor.changeViewZones(Pe=>{const _e=[];let ee=-1;this._lenses.forEach(Te=>{!Te.isValid()||ee===Te.getLineNumber()?_e.push(Te):(Te.update(Pe),ee=Te.getLineNumber())});const De=new E;_e.forEach(Te=>{Te.dispose(De,Pe),this._lenses.splice(this._lenses.indexOf(Te),1)}),De.commit(Ce)})}),he.schedule(),this._resolveCodeLensesScheduler.cancel(),(ve=this._resolveCodeLensesPromise)===null||ve===void 0||ve.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{he.schedule()})),this._localToDispose.add(this._editor.onDidBlurEditorText(()=>{he.cancel()})),this._localToDispose.add(this._editor.onDidScrollChange(ve=>{ve.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add((0,k.s)(()=>{if(this._editor.getModel()){const ve=M.D.capture(this._editor);this._editor.changeDecorations(Ce=>{this._editor.changeViewZones(Pe=>{this._disposeAllLenses(Ce,Pe)})}),ve.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(ve=>{if(ve.target.type!==9)return;let Ce=ve.target.element;if(Ce?.tagName==="SPAN"&&(Ce=Ce.parentElement),Ce?.tagName==="A")for(const Pe of this._lenses){const _e=Pe.getCommand(Ce);if(_e){this._commandService.executeCommand(_e.id,..._e.arguments||[]).catch(ee=>this._notificationService.error(ee));break}}})),he.schedule()}_disposeAllLenses(te,D){const he=new E;for(const ve of this._lenses)ve.dispose(he,D);te&&he.commit(te),this._lenses.length=0}_renderCodeLensSymbols(te){if(!this._editor.hasModel())return;const D=this._editor.getModel().getLineCount(),he=[];let ve;for(const _e of te.lenses){const ee=_e.symbol.range.startLineNumber;ee<1||ee>D||(ve&&ve[ve.length-1].symbol.range.startLineNumber===ee?ve.push(_e):(ve=[_e],he.push(ve)))}if(!he.length&&!this._lenses.length)return;const Ce=M.D.capture(this._editor),Pe=this._getLayoutInfo();this._editor.changeDecorations(_e=>{this._editor.changeViewZones(ee=>{const De=new E;let Te=0,He=0;for(;Hethis._resolveCodeLensesInViewportSoon())),Te++,He++)}for(;Tethis._resolveCodeLensesInViewportSoon())),He++;De.commit(_e)})}),Ce.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var te;(te=this._resolveCodeLensesPromise)===null||te===void 0||te.cancel(),this._resolveCodeLensesPromise=void 0;const D=this._editor.getModel();if(!D)return;const he=[],ve=[];if(this._lenses.forEach(_e=>{const ee=_e.computeIfNecessary(D);ee&&(he.push(ee),ve.push(_e))}),he.length===0)return;const Ce=Date.now(),Pe=(0,r.SS)(_e=>{const ee=he.map((De,Te)=>{const He=new Array(De.length),qe=De.map((Qe,q)=>!Qe.symbol.command&&typeof Qe.provider.resolveCodeLens=="function"?Promise.resolve(Qe.provider.resolveCodeLens(D,Qe.symbol,_e)).then(ye=>{He[q]=ye},F.M_):(He[q]=Qe.symbol,Promise.resolve(void 0)));return Promise.all(qe).then(()=>{!_e.isCancellationRequested&&!ve[Te].isDisposed()&&ve[Te].updateCommands(He)})});return Promise.all(ee)});this._resolveCodeLensesPromise=Pe,this._resolveCodeLensesPromise.then(()=>{const _e=this._resolveCodeLensesDebounce.update(D,Date.now()-Ce);this._resolveCodeLensesScheduler.delay=_e,this._currentCodeLensModel&&this._codeLensCache.put(D,this._currentCodeLensModel),this._oldCodeLensModels.clear(),Pe===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},_e=>{(0,F.dz)(_e),Pe===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}async getModel(){var te;return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,!((te=this._currentCodeLensModel)===null||te===void 0)&&te.isDisposed?void 0:this._currentCodeLensModel}};ie.ID="css.editor.codeLens",ie=Y([X(1,s.u),X(2,V.U),X(3,a.d),X(4,J.Ot),X(5,j)],ie),(0,L.HW)(ie.ID,ie,1),(0,L.Fl)(class extends L.ks{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:x.R.hasCodeLensProvider,label:(0,z.kg)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(te,D){if(!D.hasModel())return;const he=te.get(B.GK),ve=te.get(a.d),Ce=te.get(J.Ot),Pe=D.getSelection().positionLineNumber,_e=D.getContribution(ie.ID);if(!_e)return;const ee=await _e.getModel();if(!ee)return;const De=[];for(const qe of ee.lenses)qe.symbol.command&&qe.symbol.range.startLineNumber===Pe&&De.push({label:qe.symbol.command.title,command:qe.symbol.command});if(De.length===0)return;const Te=await he.pick(De,{canPickMany:!1,placeHolder:(0,z.kg)("placeHolder","Select a command")});if(!Te)return;let He=Te.command;if(ee.isDisposed){const qe=await _e.getModel(),Qe=qe?.lenses.find(q=>{var ye;return q.symbol.range.startLineNumber===Pe&&((ye=q.symbol.command)===null||ye===void 0?void 0:ye.title)===He.title});if(!Qe||!Qe.symbol.command)return;He=Qe.symbol.command}try{await ve.executeCommand(He.id,...He.arguments||[])}catch(qe){Ce.error(qe)}}})},"./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/color.js":function(pt,Me,e){e.d(Me,{R:function(){return d},j:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js");async function f(m,u,C,h=!0){return i(new a,m,u,C,h)}function d(m,u,C,h){return Promise.resolve(C.provideColorPresentations(m,u,h))}class a{constructor(){}async compute(u,C,h,v){const p=await u.provideDocumentColors(C,h);if(Array.isArray(p))for(const b of p)v.push({colorInfo:b,provider:u});return Array.isArray(p)}}class s{constructor(){}async compute(u,C,h,v){const p=await u.provideDocumentColors(C,h);if(Array.isArray(p))for(const b of p)v.push({range:b.range,color:[b.color.red,b.color.green,b.color.blue,b.color.alpha]});return Array.isArray(p)}}class n{constructor(u){this.colorInfo=u}async compute(u,C,h,v){const p=await u.provideColorPresentations(C,this.colorInfo,r.X.None);return Array.isArray(p)&&v.push(...p),Array.isArray(p)}}async function i(m,u,C,h,v){let p=!1,b;const O=[],w=u.ordered(C);for(let j=w.length-1;j>=0;j--){const U=w[j];if(U instanceof I.L)b=U;else try{await m.compute(U,C,h,O)&&(p=!0)}catch(K){(0,F.M_)(K)}}return p?O:b&&v?(await m.compute(b,C,h,O),O):[]}function c(m,u){const{colorProvider:C}=m.get(x.u),h=m.get(L.S).getModel(u);if(!h)throw(0,F.Qg)();const v=m.get(S.pG).getValue("editor.defaultColorDecorators",{resource:u});return{model:h,colorProviderRegistry:C,isDefaultColorDecoratorsEnabled:v}}g.w.registerCommand("_executeDocumentColorProvider",function(m,...u){const[C]=u;if(!(C instanceof k.r))throw(0,F.Qg)();const{model:h,colorProviderRegistry:v,isDefaultColorDecoratorsEnabled:p}=c(m,C);return i(new s,v,h,r.X.None,p)}),g.w.registerCommand("_executeColorPresentationProvider",function(m,...u){const[C,h]=u,{uri:v,range:p}=h;if(!(v instanceof k.r)||!Array.isArray(C)||C.length!==4||!M.Q.isIRange(p))throw(0,F.Qg)();const{model:b,colorProviderRegistry:O,isDefaultColorDecoratorsEnabled:w}=c(m,v),[j,U,K,G]=C;return i(new n({range:p,color:{red:j,green:U,blue:K,alpha:G}}),O,b,r.X.None,w)})},"./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorContributions.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hover.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverTypes.js");class I extends r.jG{constructor(f){super(),this._editor=f,this._register(f.onMouseDown(d=>this.onMouseDown(d)))}dispose(){super.dispose()}onMouseDown(f){const d=this._editor.getOption(148);if(d!=="click"&&d!=="clickAndHover")return;const a=f.target;if(a.type!==6||!a.detail.injectedText||a.detail.injectedText.options.attachedData!==M.nM||!a.range)return;const s=this._editor.getContribution(g.n.ID);if(s&&!s.isColorPickerVisible){const n=new k.Q(a.range.startLineNumber,a.range.startColumn+1,a.range.endLineNumber,a.range.endColumn+1);s.showContentHover(n,1,0,!1,!0)}}}I.ID="editor.contrib.colorContribution",(0,F.HW)(I.ID,I,2),x.B2.register(L.BJ)},"./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js":function(pt,Me,e){e.d(Me,{mn:function(){return h},nM:function(){return C}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorDom.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/color.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),c=function(p,b,O,w){var j=arguments.length,U=j<3?b:w===null?w=Object.getOwnPropertyDescriptor(b,O):w,K;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(p,b,O,w);else for(var G=p.length-1;G>=0;G--)(K=p[G])&&(U=(j<3?K(U):j>3?K(b,O,U):K(b,O))||U);return j>3&&U&&Object.defineProperty(b,O,U),U},m=function(p,b){return function(O,w){b(O,w,p)}},u;const C=Object.create({});let h=u=class extends L.jG{constructor(b,O,w,j){super(),this._editor=b,this._configurationService=O,this._languageFeaturesService=w,this._localToDispose=this._register(new L.Cm),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new I.Qn(this._editor),this._decoratorLimitReporter=new v,this._colorDecorationClassRefs=this._register(new L.Cm),this._debounceInformation=j.for(w.colorProvider,"Document Colors",{min:u.RECOMPUTE_TIME}),this._register(b.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(b.onDidChangeModelLanguage(()=>this.updateColors())),this._register(w.colorProvider.onDidChange(()=>this.updateColors())),this._register(b.onDidChangeConfiguration(U=>{const K=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147);const G=K!==this._isColorDecoratorsEnabled||U.hasChanged(21),P=U.hasChanged(147);(G||P)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(147),this.updateColors()}isEnabled(){const b=this._editor.getModel();if(!b)return!1;const O=b.getLanguageId(),w=this._configurationService.getValue(O);if(w&&typeof w=="object"){const j=w.colorDecorators;if(j&&j.enable!==void 0&&!j.enable)return j.enable}return this._editor.getOption(20)}static get(b){return b.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;const b=this._editor.getModel();!b||!this._languageFeaturesService.colorProvider.has(b)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new r.pc,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(b)))})),this.beginCompute())}async beginCompute(){this._computePromise=(0,r.SS)(async b=>{const O=this._editor.getModel();if(!O)return[];const w=new g.W(!1),j=await(0,n.j)(this._languageFeaturesService.colorProvider,O,b,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(O,w.elapsed()),j});try{const b=await this._computePromise;this.updateDecorations(b),this.updateColorDecorators(b),this._computePromise=null}catch(b){(0,k.dz)(b)}}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(b){const O=b.map(w=>({range:{startLineNumber:w.colorInfo.range.startLineNumber,startColumn:w.colorInfo.range.startColumn,endLineNumber:w.colorInfo.range.endLineNumber,endColumn:w.colorInfo.range.endColumn},options:d.kI.EMPTY}));this._editor.changeDecorations(w=>{this._decorationsIds=w.deltaDecorations(this._decorationsIds,O),this._colorDatas=new Map,this._decorationsIds.forEach((j,U)=>this._colorDatas.set(j,b[U]))})}updateColorDecorators(b){this._colorDecorationClassRefs.clear();const O=[],w=this._editor.getOption(21);for(let U=0;Uthis._colorDatas.has(j.id));return w.length===0?null:this._colorDatas.get(w[0].id)}isColorDecoration(b){return this._colorDecoratorIds.has(b)}};h.ID="editor.contrib.colorDetector",h.RECOMPUTE_TIME=1e3,h=u=c([m(1,i.pG),m(2,s.u),m(3,a.U)],h);class v{constructor(){this._onDidChange=new M.vl,this._computed=0,this._limited=!1}update(b,O){(b!==this._computed||O!==this._limited)&&(this._computed=b,this._limited=O,this._onDidChange.fire())}}(0,S.HW)(h.ID,h,1)},"./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js":function(pt,Me,e){e.d(Me,{BJ:function(){return E},WE:function(){return $}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/color.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorDetector.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/event.js");class S{get color(){return this._color}set color(X){this._color.equals(X)||(this._color=X,this._onDidChangeColor.fire(X))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(X){this._colorPresentations=X,this.presentationIndex>X.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(X,ie,re){this.presentationIndex=re,this._onColorFlushed=new I.vl,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new I.vl,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new I.vl,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=X,this._color=X,this._colorPresentations=ie}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(X,ie){let re=-1;for(let te=0;te{this.backgroundColor=he.getColor(m.WfR)||k.Q1.white})),this._register(d.ko(this._pickedColorNode,d.Bx.CLICK,()=>this.model.selectNextColorPresentation())),this._register(d.ko(this._originalColorNode,d.Bx.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(ie.onDidChangeColor(this.onDidChangeColor,this)),this._register(ie.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=k.Q1.Format.CSS.format(ie.color)||"",this._pickedColorNode.classList.toggle("light",ie.color.rgba.a<.5?this.backgroundColor.isLighter():ie.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new v(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(X){this._pickedColorNode.style.backgroundColor=k.Q1.Format.CSS.format(X)||"",this._pickedColorNode.classList.toggle("light",X.rgba.a<.5?this.backgroundColor.isLighter():X.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}}class v extends M.jG{constructor(X){super(),this._onClicked=this._register(new I.vl),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),d.BC(X,this._button);const ie=document.createElement("div");ie.classList.add("close-button-inner-div"),d.BC(this._button,ie),d.BC(ie,C(".button"+i.L.asCSSSelector((0,u.pU)("color-picker-close",n.W.close,(0,c.kg)("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._register(d.ko(this._button,d.Bx.CLICK,()=>{this._onClicked.fire()}))}}class p extends M.jG{constructor(X,ie,re,te=!1){super(),this.model=ie,this.pixelRatio=re,this._insertButton=null,this._domNode=C(".colorpicker-body"),d.BC(X,this._domNode),this._saturationBox=new b(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new w(this._domNode,this.model,te),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new j(this._domNode,this.model,te),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),te&&(this._insertButton=this._register(new U(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:X,v:ie}){const re=this.model.color.hsva;this.model.color=new k.Q1(new k.$J(re.h,X,ie,re.a))}onDidOpacityChange(X){const ie=this.model.color.hsva;this.model.color=new k.Q1(new k.$J(ie.h,ie.s,ie.v,X))}onDidHueChange(X){const ie=this.model.color.hsva,re=(1-X)*360;this.model.color=new k.Q1(new k.$J(re===360?0:re,ie.s,ie.v,ie.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}}class b extends M.jG{constructor(X,ie,re){super(),this.model=ie,this.pixelRatio=re,this._onDidChange=new I.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new I.vl,this.onColorFlushed=this._onColorFlushed.event,this._domNode=C(".saturation-wrap"),d.BC(X,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",d.BC(this._domNode,this._canvas),this.selection=C(".saturation-selection"),d.BC(this._domNode,this.selection),this.layout(),this._register(d.ko(this._domNode,d.Bx.POINTER_DOWN,te=>this.onPointerDown(te))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(X){if(!X.target||!(X.target instanceof Element))return;this.monitor=this._register(new a._);const ie=d.BK(this._domNode);X.target!==this.selection&&this.onDidChangePosition(X.offsetX,X.offsetY),this.monitor.startMonitoring(X.target,X.pointerId,X.buttons,te=>this.onDidChangePosition(te.pageX-ie.left,te.pageY-ie.top),()=>null);const re=d.ko(X.target.ownerDocument,d.Bx.POINTER_UP,()=>{this._onColorFlushed.fire(),re.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(X,ie){const re=Math.max(0,Math.min(1,X/this.width)),te=Math.max(0,Math.min(1,1-ie/this.height));this.paintSelection(re,te),this._onDidChange.fire({s:re,v:te})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();const X=this.model.color.hsva;this.paintSelection(X.s,X.v)}paint(){const X=this.model.color.hsva,ie=new k.Q1(new k.$J(X.h,1,1,1)),re=this._canvas.getContext("2d"),te=re.createLinearGradient(0,0,this._canvas.width,0);te.addColorStop(0,"rgba(255, 255, 255, 1)"),te.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),te.addColorStop(1,"rgba(255, 255, 255, 0)");const D=re.createLinearGradient(0,0,0,this._canvas.height);D.addColorStop(0,"rgba(0, 0, 0, 0)"),D.addColorStop(1,"rgba(0, 0, 0, 1)"),re.rect(0,0,this._canvas.width,this._canvas.height),re.fillStyle=k.Q1.Format.CSS.format(ie),re.fill(),re.fillStyle=te,re.fill(),re.fillStyle=D,re.fill()}paintSelection(X,ie){this.selection.style.left=`${X*this.width}px`,this.selection.style.top=`${this.height-ie*this.height}px`}onDidChangeColor(X){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();const ie=X.hsva;this.paintSelection(ie.s,ie.v)}}class O extends M.jG{constructor(X,ie,re=!1){super(),this.model=ie,this._onDidChange=new I.vl,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new I.vl,this.onColorFlushed=this._onColorFlushed.event,re?(this.domNode=d.BC(X,C(".standalone-strip")),this.overlay=d.BC(this.domNode,C(".standalone-overlay"))):(this.domNode=d.BC(X,C(".strip")),this.overlay=d.BC(this.domNode,C(".overlay"))),this.slider=d.BC(this.domNode,C(".slider")),this.slider.style.top="0px",this._register(d.ko(this.domNode,d.Bx.POINTER_DOWN,te=>this.onPointerDown(te))),this._register(ie.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;const X=this.getValue(this.model.color);this.updateSliderPosition(X)}onDidChangeColor(X){const ie=this.getValue(X);this.updateSliderPosition(ie)}onPointerDown(X){if(!X.target||!(X.target instanceof Element))return;const ie=this._register(new a._),re=d.BK(this.domNode);this.domNode.classList.add("grabbing"),X.target!==this.slider&&this.onDidChangeTop(X.offsetY),ie.startMonitoring(X.target,X.pointerId,X.buttons,D=>this.onDidChangeTop(D.pageY-re.top),()=>null);const te=d.ko(X.target.ownerDocument,d.Bx.POINTER_UP,()=>{this._onColorFlushed.fire(),te.dispose(),ie.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(X){const ie=Math.max(0,Math.min(1,1-X/this.height));this.updateSliderPosition(ie),this._onDidChange.fire(ie)}updateSliderPosition(X){this.slider.style.top=`${(1-X)*this.height}px`}}class w extends O{constructor(X,ie,re=!1){super(X,ie,re),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(X){super.onDidChangeColor(X);const{r:ie,g:re,b:te}=X.rgba,D=new k.Q1(new k.bU(ie,re,te,1)),he=new k.Q1(new k.bU(ie,re,te,0));this.overlay.style.background=`linear-gradient(to bottom, ${D} 0%, ${he} 100%)`}getValue(X){return X.hsva.a}}class j extends O{constructor(X,ie,re=!1){super(X,ie,re),this.domNode.classList.add("hue-strip")}getValue(X){return 1-X.hsva.h/360}}class U extends M.jG{constructor(X){super(),this._onClicked=this._register(new I.vl),this.onClicked=this._onClicked.event,this._button=d.BC(X,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._register(d.ko(this._button,d.Bx.CLICK,()=>{this._onClicked.fire()}))}get button(){return this._button}}class K extends s.x{constructor(X,ie,re,te,D=!1){super(),this.model=ie,this.pixelRatio=re,this._register(f.c.getInstance(d.zk(X)).onDidChange(()=>this.layout()));const he=C(".colorpicker-widget");X.appendChild(he),this.header=this._register(new h(he,this.model,te,D)),this.body=this._register(new p(he,this.model,this.pixelRatio,D))}layout(){this.body.layout()}}var G=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),P=function(Y,X,ie,re){var te=arguments.length,D=te<3?X:re===null?re=Object.getOwnPropertyDescriptor(X,ie):re,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(Y,X,ie,re);else for(var ve=Y.length-1;ve>=0;ve--)(he=Y[ve])&&(D=(te<3?he(D):te>3?he(X,ie,D):he(X,ie))||D);return te>3&&D&&Object.defineProperty(X,ie,D),D},A=function(Y,X){return function(ie,re){X(ie,re,Y)}};class T{constructor(X,ie,re,te){this.owner=X,this.range=ie,this.model=re,this.provider=te,this.forceShowAtRange=!0}isValidForHoverAnchor(X){return X.type===1&&this.range.startColumn<=X.range.startColumn&&this.range.endColumn>=X.range.endColumn}}let E=class{constructor(X,ie){this._editor=X,this._themeService=ie,this.hoverOrdinal=2}computeSync(X,ie){return[]}computeAsync(X,ie,re){return r.AE.fromPromise(this._computeAsync(X,ie,re))}async _computeAsync(X,ie,re){if(!this._editor.hasModel())return[];const te=x.mn.get(this._editor);if(!te)return[];for(const D of ie){if(!te.isColorDecoration(D))continue;const he=te.getColorData(D.range.getStartPosition());if(he)return[await z(this,this._editor.getModel(),he.colorInfo,he.provider)]}return[]}renderHoverParts(X,ie){return J(this,this._editor,this._themeService,ie,X)}};E=P([A(1,G.Gy)],E);class W{constructor(X,ie,re,te){this.owner=X,this.range=ie,this.model=re,this.provider=te}}let $=class{constructor(X,ie){this._editor=X,this._themeService=ie,this._color=null}async createColorHover(X,ie,re){if(!this._editor.hasModel()||!x.mn.get(this._editor))return null;const D=await(0,g.j)(re,this._editor.getModel(),F.X.None);let he=null,ve=null;for(const ee of D){const De=ee.colorInfo;L.Q.containsRange(De.range,X.range)&&(he=De,ve=ee.provider)}const Ce=he??X,Pe=ve??ie,_e=!!he;return{colorHover:await z(this,this._editor.getModel(),Ce,Pe),foundInEditor:_e}}async updateEditorModel(X){if(!this._editor.hasModel())return;const ie=X.model;let re=new L.Q(X.range.startLineNumber,X.range.startColumn,X.range.endLineNumber,X.range.endColumn);this._color&&(await V(this._editor.getModel(),ie,this._color,re,X),re=B(this._editor,re,ie))}renderHoverParts(X,ie){return J(this,this._editor,this._themeService,ie,X)}set color(X){this._color=X}get color(){return this._color}};$=P([A(1,G.Gy)],$);async function z(Y,X,ie,re){const te=X.getValueInRange(ie.range),{red:D,green:he,blue:ve,alpha:Ce}=ie.color,Pe=new k.bU(Math.round(D*255),Math.round(he*255),Math.round(ve*255),Ce),_e=new k.Q1(Pe),ee=await(0,g.R)(X,ie,re,F.X.None),De=new S(_e,[],0);return De.colorPresentations=ee||[],De.guessColorPresentation(_e,te),Y instanceof E?new T(Y,L.Q.lift(ie.range),De,re):new W(Y,L.Q.lift(ie.range),De,re)}function J(Y,X,ie,re,te){if(re.length===0||!X.hasModel())return M.jG.None;if(te.setMinimumDimensions){const De=X.getOption(67)+8;te.setMinimumDimensions(new d.fg(302,De))}const D=new M.Cm,he=re[0],ve=X.getModel(),Ce=he.model,Pe=D.add(new K(te.fragment,Ce,X.getOption(143),ie,Y instanceof $));te.setColorPicker(Pe);let _e=!1,ee=new L.Q(he.range.startLineNumber,he.range.startColumn,he.range.endLineNumber,he.range.endColumn);if(Y instanceof $){const De=re[0].model.color;Y.color=De,V(ve,Ce,De,ee,he),D.add(Ce.onColorFlushed(Te=>{Y.color=Te}))}else D.add(Ce.onColorFlushed(async De=>{await V(ve,Ce,De,ee,he),_e=!0,ee=B(X,ee,Ce)}));return D.add(Ce.onDidChangeColor(De=>{V(ve,Ce,De,ee,he)})),D.add(X.onDidChangeModelContent(De=>{_e?_e=!1:(te.hide(),X.focus())})),D}function B(Y,X,ie){var re,te;const D=[],he=(re=ie.presentation.textEdit)!==null&&re!==void 0?re:{range:X,text:ie.presentation.label,forceMoveMarkers:!1};D.push(he),ie.presentation.additionalTextEdits&&D.push(...ie.presentation.additionalTextEdits);const ve=L.Q.lift(he.range),Ce=Y.getModel()._setTrackedRange(null,ve,3);return Y.executeEdits("colorpicker",D),Y.pushUndoStop(),(te=Y.getModel()._getTrackedRange(Ce))!==null&&te!==void 0?te:ve}async function V(Y,X,ie,re,te){const D=await(0,g.R)(Y,{range:re,color:{red:ie.rgba.r/255,green:ie.rgba.g/255,blue:ie.rgba.b/255,alpha:ie.rgba.a}},te.provider,F.X.None);X.colorPresentations=D||[]}},"./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js":function(pt,Me,e){e.d(Me,{L:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/editorWorkerService.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/editorFeatures.js"),I=function(a,s,n,i){var c=arguments.length,m=c<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(a,s,n,i);else for(var C=a.length-1;C>=0;C--)(u=a[C])&&(m=(c<3?u(m):c>3?u(s,n,m):u(s,n))||m);return c>3&&m&&Object.defineProperty(s,n,m),m},S=function(a,s){return function(n,i){s(n,i,a)}};class f{constructor(s,n){this._editorWorkerClient=new F.Z6(s,!1,"editorWorkerService",n)}async provideDocumentColors(s,n){return this._editorWorkerClient.computeDefaultDocumentColors(s.uri)}provideColorPresentations(s,n,i){const c=n.range,m=n.color,u=m.alpha,C=new r.Q1(new r.bU(Math.round(255*m.red),Math.round(255*m.green),Math.round(255*m.blue),u)),h=u?r.Q1.Format.CSS.formatRGB(C):r.Q1.Format.CSS.formatRGBA(C),v=u?r.Q1.Format.CSS.formatHSL(C):r.Q1.Format.CSS.formatHSLA(C),p=u?r.Q1.Format.CSS.formatHex(C):r.Q1.Format.CSS.formatHexA(C),b=[];return b.push({label:h,textEdit:{range:c,text:h}}),b.push({label:v,textEdit:{range:c,text:v}}),b.push({label:p,textEdit:{range:c,text:p}}),b}}let d=class extends L.jG{constructor(s,n,i){super(),this._register(i.colorProvider.register("*",new f(s,n)))}};d=I([S(0,k.S),S(1,M.JZ),S(2,g.u)],d),(0,x.x)(d)},"./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/nls.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorHoverParticipant.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHover.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js"),i=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),c=function(G,P,A,T){var E=arguments.length,W=E<3?P:T===null?T=Object.getOwnPropertyDescriptor(P,A):T,$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")W=Reflect.decorate(G,P,A,T);else for(var z=G.length-1;z>=0;z--)($=G[z])&&(W=(E<3?$(W):E>3?$(P,A,W):$(P,A))||W);return E>3&&W&&Object.defineProperty(P,A,W),W},m=function(G,P){return function(A,T){P(A,T,G)}},u,C;let h=u=class extends k.jG{constructor(P,A,T,E,W,$,z){super(),this._editor=P,this._modelService=T,this._keybindingService=E,this._instantiationService=W,this._languageFeatureService=$,this._languageConfigurationService=z,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=f.R.standaloneColorPickerVisible.bindTo(A),this._standaloneColorPickerFocused=f.R.standaloneColorPickerFocused.bindTo(A)}showOrFocus(){var P;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||(P=this._standaloneColorPickerWidget)===null||P===void 0||P.focus():this._standaloneColorPickerWidget=new b(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var P;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),(P=this._standaloneColorPickerWidget)===null||P===void 0||P.hide(),this._editor.focus()}insertColor(){var P;(P=this._standaloneColorPickerWidget)===null||P===void 0||P.updateEditor(),this.hide()}static get(P){return P.getContribution(u.ID)}};h.ID="editor.contrib.standaloneColorPickerController",h=u=c([m(1,d.fN),m(2,a.S),m(3,x.b),m(4,L._Y),m(5,S.u),m(6,s.JZ)],h),(0,r.HW)(h.ID,h,1);const v=8,p=22;let b=C=class extends k.jG{constructor(P,A,T,E,W,$,z,J){var B;super(),this._editor=P,this._standaloneColorPickerVisible=A,this._standaloneColorPickerFocused=T,this._modelService=W,this._keybindingService=$,this._languageFeaturesService=z,this._languageConfigurationService=J,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new I.vl),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=E.createInstance(M.WE,this._editor),this._position=(B=this._editor._getViewModel())===null||B===void 0?void 0:B.getPrimaryCursorState().modelState.position;const V=this._editor.getSelection(),Y=V?{startLineNumber:V.startLineNumber,startColumn:V.startColumn,endLineNumber:V.endLineNumber,endColumn:V.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},X=this._register(i.w5(this._body));this._register(X.onDidBlur(ie=>{this.hide()})),this._register(X.onDidFocus(ie=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(ie=>{var re;const te=(re=ie.target.element)===null||re===void 0?void 0:re.classList;te&&te.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(ie=>{this._render(ie.value,ie.foundInEditor)})),this._start(Y),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return C.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;const P=this._editor.getOption(60).above;return{position:this._position,secondaryPosition:this._position,preference:P?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}async _start(P){const A=await this._computeAsync(P);A&&this._onResult.fire(new O(A.result,A.foundInEditor))}async _computeAsync(P){if(!this._editor.hasModel())return null;const A={range:P,color:{red:0,green:0,blue:0,alpha:1}},T=await this._standaloneColorPickerParticipant.createColorHover(A,new n.L(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return T?{result:T.colorHover,foundInEditor:T.foundInEditor}:null}_render(P,A){const T=document.createDocumentFragment(),E=this._register(new g.L9(this._keybindingService));let W;const $={fragment:T,statusBar:E,setColorPicker:te=>W=te,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=P,this._register(this._standaloneColorPickerParticipant.renderHoverParts($,[P])),W===void 0)return;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px",this._body.tabIndex=0,this._body.appendChild(T),W.layout();const z=W.body,J=z.saturationBox.domNode.clientWidth,B=z.domNode.clientWidth-J-p-v,V=W.body.enterButton;V?.onClicked(()=>{this.updateEditor(),this.hide()});const Y=W.header,X=Y.pickedColorNode;X.style.width=J+v+"px";const ie=Y.originalColorNode;ie.style.width=B+"px";const re=W.header.closeButton;re?.onClicked(()=>{this.hide()}),A&&(V&&(V.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(P.range)),this._editor.layoutContentWidget(this)}};b.ID="editor.contrib.standaloneColorPickerWidget",b=C=c([m(3,L._Y),m(4,a.S),m(5,x.b),m(6,S.u),m(7,s.JZ)],b);class O{constructor(P,A){this.value=P,this.foundInEditor=A}}var w=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js");class j extends r.qO{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{...(0,F.aS)("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:(0,F.kg)({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker")},precondition:void 0,menu:[{id:w.D8.CommandPalette}]})}runEditorCommand(P,A){var T;(T=h.get(A))===null||T===void 0||T.showOrFocus()}}class U extends r.ks{constructor(){super({id:"editor.action.hideColorPicker",label:(0,F.kg)({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:f.R.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(P,A){var T;(T=h.get(A))===null||T===void 0||T.hide()}}class K extends r.ks{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:(0,F.kg)({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:f.R.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(P,A){var T;(T=h.get(A))===null||T===void 0||T.insertColor()}}(0,r.Fl)(U),(0,r.Fl)(K),(0,w.ug)(j)},"./node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/comment.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js");class S{constructor(h,v,p){this.languageConfigurationService=p,this._selection=h,this._insertSpace=v,this._usedEndToken=null}static _haystackHasNeedleAtOffset(h,v,p){if(p<0)return!1;const b=v.length,O=h.length;if(p+b>O)return!1;for(let w=0;w=65&&j<=90&&j+32===U)&&!(U>=65&&U<=90&&U+32===j))return!1}return!0}_createOperationsForBlockComment(h,v,p,b,O,w){const j=h.startLineNumber,U=h.startColumn,K=h.endLineNumber,G=h.endColumn,P=O.getLineContent(j),A=O.getLineContent(K);let T=P.lastIndexOf(v,U-1+v.length),E=A.indexOf(p,G-1-p.length);if(T!==-1&&E!==-1)if(j===K)P.substring(T+v.length,E).indexOf(p)>=0&&(T=-1,E=-1);else{const $=P.substring(T+v.length),z=A.substring(0,E);($.indexOf(p)>=0||z.indexOf(p)>=0)&&(T=-1,E=-1)}let W;T!==-1&&E!==-1?(b&&T+v.length0&&A.charCodeAt(E-1)===32&&(p=" "+p,E-=1),W=S._createRemoveBlockCommentOperations(new k.Q(j,T+v.length+1,K,E+1),v,p)):(W=S._createAddBlockCommentOperations(h,v,p,this._insertSpace),this._usedEndToken=W.length===1?p:null);for(const $ of W)w.addTrackedEditOperation($.range,$.text)}static _createRemoveBlockCommentOperations(h,v,p){const b=[];return k.Q.isEmpty(h)?b.push(g.k.delete(new k.Q(h.startLineNumber,h.startColumn-v.length,h.endLineNumber,h.endColumn+p.length))):(b.push(g.k.delete(new k.Q(h.startLineNumber,h.startColumn-v.length,h.startLineNumber,h.startColumn))),b.push(g.k.delete(new k.Q(h.endLineNumber,h.endColumn,h.endLineNumber,h.endColumn+p.length)))),b}static _createAddBlockCommentOperations(h,v,p,b){const O=[];return k.Q.isEmpty(h)?O.push(g.k.replace(new k.Q(h.startLineNumber,h.startColumn,h.endLineNumber,h.endColumn),v+" "+p)):(O.push(g.k.insert(new x.y(h.startLineNumber,h.startColumn),v+(b?" ":""))),O.push(g.k.insert(new x.y(h.endLineNumber,h.endColumn),(b?" ":"")+p))),O}getEditOperations(h,v){const p=this._selection.startLineNumber,b=this._selection.startColumn;h.tokenization.tokenizeIfCheap(p);const O=h.getLanguageIdAtPosition(p,b),w=this.languageConfigurationService.getLanguageConfiguration(O).comments;!w||!w.blockCommentStartToken||!w.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,w.blockCommentStartToken,w.blockCommentEndToken,this._insertSpace,h,v)}computeCursorState(h,v){const p=v.getInverseEditOperations();if(p.length===2){const b=p[0],O=p[1];return new I.L(b.range.endLineNumber,b.range.endColumn,O.range.startLineNumber,O.range.startColumn)}else{const b=p[0].range,O=this._usedEndToken?-this._usedEndToken.length-1:0;return new I.L(b.endLineNumber,b.endColumn+O,b.endLineNumber,b.endColumn+O)}}}var f=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");class d{constructor(h,v,p,b,O,w,j){this.languageConfigurationService=h,this._selection=v,this._indentSize=p,this._type=b,this._insertSpace=O,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=w,this._ignoreFirstLine=j||!1}static _gatherPreflightCommentStrings(h,v,p,b){h.tokenization.tokenizeIfCheap(v);const O=h.getLanguageIdAtPosition(v,1),w=b.getLanguageConfiguration(O).comments,j=w?w.lineCommentToken:null;if(!j)return null;const U=[];for(let K=0,G=p-v+1;KO?v[U].commentStrOffset=w-1:v[U].commentStrOffset=w}}}var a=e("./node_modules/monaco-editor/esm/vs/nls.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js");class n extends F.ks{constructor(h,v){super(v),this._type=h}run(h,v){const p=h.get(L.JZ);if(!v.hasModel())return;const b=v.getModel(),O=[],w=b.getOptions(),j=v.getOption(23),U=v.getSelections().map((G,P)=>({selection:G,index:P,ignoreFirstLine:!1}));U.sort((G,P)=>k.Q.compareRangesUsingStarts(G.selection,P.selection));let K=U[0];for(let G=1;G=0;U--)(j=h[U])&&(w=(O<3?j(w):O>3?j(v,p,w):j(v,p))||w);return O>3&&w&&Object.defineProperty(v,p,w),w},c=function(h,v){return function(p,b){v(p,b,h)}},m;let u=m=class{static get(v){return v.getContribution(m.ID)}constructor(v,p,b,O,w,j,U,K){this._contextMenuService=p,this._contextViewService=b,this._contextKeyService=O,this._keybindingService=w,this._menuService=j,this._configurationService=U,this._workspaceContextService=K,this._toDispose=new M.Cm,this._contextMenuIsBeingShownCount=0,this._editor=v,this._toDispose.add(this._editor.onContextMenu(G=>this._onContextMenu(G))),this._toDispose.add(this._editor.onMouseWheel(G=>{if(this._contextMenuIsBeingShownCount>0){const P=this._contextViewService.getContextViewElement(),A=G.srcElement;A.shadowRoot&&r.jG(P)===A.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(G=>{this._editor.getOption(24)&&G.keyCode===58&&(G.preventDefault(),G.stopPropagation(),this.showContextMenu())}))}_onContextMenu(v){if(!this._editor.hasModel())return;if(!this._editor.getOption(24)){this._editor.focus(),v.target.position&&!this._editor.getSelection().containsPosition(v.target.position)&&this._editor.setPosition(v.target.position);return}if(v.target.type===12||v.target.type===6&&v.target.detail.injectedText)return;if(v.event.preventDefault(),v.event.stopPropagation(),v.target.type===11)return this._showScrollbarContextMenu(v.event);if(v.target.type!==6&&v.target.type!==7&&v.target.type!==1)return;if(this._editor.focus(),v.target.position){let b=!1;for(const O of this._editor.getSelections())if(O.containsPosition(v.target.position)){b=!0;break}b||this._editor.setPosition(v.target.position)}let p=null;v.target.type!==1&&(p=v.event),this.showContextMenu(p)}showContextMenu(v){if(!this._editor.getOption(24)||!this._editor.hasModel())return;const p=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?S.D8.SimpleEditorContext:S.D8.EditorContext);p.length>0&&this._doShowContextMenu(p,v)}_getMenuActions(v,p){const b=[],O=this._menuService.createMenu(p,this._contextKeyService),w=O.getActions({arg:v.uri});O.dispose();for(const j of w){const[,U]=j;let K=0;for(const G of U)if(G instanceof S.nI){const P=this._getMenuActions(v,G.item.submenu);P.length>0&&(b.push(new k.YH(G.id,G.label,P)),K++)}else b.push(G),K++;K&&b.push(new k.wv)}return b.length&&b.pop(),b}_doShowContextMenu(v,p=null){if(!this._editor.hasModel())return;const b=this._editor.getOption(60);this._editor.updateOptions({hover:{enabled:!1}});let O=p;if(!O){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();const j=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),U=r.BK(this._editor.getDomNode()),K=U.left+j.left,G=U.top+j.top+j.height;O={x:K,y:G}}const w=this._editor.getOption(127)&&!L.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:w?this._editor.getDomNode():void 0,getAnchor:()=>O,getActions:()=>v,getActionViewItem:j=>{const U=this._keybindingFor(j);if(U)return new F.Z4(j,j,{label:!0,keybinding:U.getLabel(),isMenu:!0});const K=j;return typeof K.getActionViewItem=="function"?K.getActionViewItem():new F.Z4(j,j,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:j=>this._keybindingFor(j),onHide:j=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:b})}})}_showScrollbarContextMenu(v){if(!this._editor.hasModel()||(0,n.ct)(this._workspaceContextService.getWorkspace()))return;const p=this._editor.getOption(73);let b=0;const O=G=>({id:`menu-action-${++b}`,label:G.label,tooltip:"",class:void 0,enabled:typeof G.enabled>"u"?!0:G.enabled,checked:G.checked,run:G.run}),w=(G,P)=>new k.YH(`menu-action-${++b}`,G,P,void 0),j=(G,P,A,T,E)=>{if(!P)return O({label:G,enabled:P,run:()=>{}});const W=z=>()=>{this._configurationService.updateValue(A,z)},$=[];for(const z of E)$.push(O({label:z.label,checked:T===z.value,run:W(z.value)}));return w(G,$)},U=[];U.push(O({label:I.kg("context.minimap.minimap","Minimap"),checked:p.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!p.enabled)}})),U.push(new k.wv),U.push(O({label:I.kg("context.minimap.renderCharacters","Render Characters"),enabled:p.enabled,checked:p.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!p.renderCharacters)}})),U.push(j(I.kg("context.minimap.size","Vertical size"),p.enabled,"editor.minimap.size",p.size,[{label:I.kg("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:I.kg("context.minimap.size.fill","Fill"),value:"fill"},{label:I.kg("context.minimap.size.fit","Fit"),value:"fit"}])),U.push(j(I.kg("context.minimap.slider","Slider"),p.enabled,"editor.minimap.showSlider",p.showSlider,[{label:I.kg("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:I.kg("context.minimap.slider.always","Always"),value:"always"}]));const K=this._editor.getOption(127)&&!L.un;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:K?this._editor.getDomNode():void 0,getAnchor:()=>v,getActions:()=>U,onHide:G=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(v){return this._keybindingService.lookupKeybinding(v.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};u.ID="editor.contrib.contextmenu",u=m=i([c(1,d.Z),c(2,d.l),c(3,f.fN),c(4,a.b),c(5,S.ez),c(6,s.pG),c(7,n.VR)],u);class C extends g.ks{constructor(){super({id:"editor.action.showContextMenu",label:I.kg("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:x.R.textInputFocus,primary:1092,weight:100}})}run(v,p){var b;(b=u.get(p))===null||b===void 0||b.showContextMenu()}}(0,g.HW)(u.ID,u,2),(0,g.Fl)(C)},"./node_modules/monaco-editor/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),M=e("./node_modules/monaco-editor/esm/vs/nls.js");class L{constructor(d){this.selections=d}equals(d){const a=this.selections.length,s=d.selections.length;if(a!==s)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(d.onDidChangeModelContent(a=>{this._undoStack=[],this._redoStack=[]})),this._register(d.onDidChangeCursorSelection(a=>{if(this._isCursorUndoRedo||!a.oldSelections||a.oldModelVersionId!==a.modelVersionId)return;const s=new L(a.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(s)||(this._undoStack.push(new g(s,d.getScrollTop(),d.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new g(new L(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new g(new L(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(d){this._isCursorUndoRedo=!0,this._editor.setSelections(d.cursorState.selections),this._editor.setScrollPosition({scrollTop:d.scrollTop,scrollLeft:d.scrollLeft}),this._isCursorUndoRedo=!1}}x.ID="editor.contrib.cursorUndoRedoController";class I extends F.ks{constructor(){super({id:"cursorUndo",label:M.kg("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:k.R.textInputFocus,primary:2099,weight:100}})}run(d,a,s){var n;(n=x.get(a))===null||n===void 0||n.cursorUndo()}}class S extends F.ks{constructor(){super({id:"cursorRedo",label:M.kg("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(d,a,s){var n;(n=x.get(a))===null||n===void 0||n.cursorRedo()}}(0,F.HW)(x.ID,x,0),(0,F.Fl)(I),(0,F.Fl)(S)},"./node_modules/monaco-editor/esm/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/utils.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),S=function(a,s,n,i){var c=arguments.length,m=c<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(a,s,n,i);else for(var C=a.length-1;C>=0;C--)(u=a[C])&&(m=(c<3?u(m):c>3?u(s,n,m):u(s,n))||m);return c>3&&m&&Object.defineProperty(s,n,m),m},f=function(a,s){return function(n,i){s(n,i,a)}};let d=class extends x.jG{constructor(s,n,i){super(),this._textModel=s,this._languageFeaturesService=n,this._outlineModelService=i,this._currentModel=(0,F.FY)(this,void 0);const c=(0,F.yQ)("documentSymbolProvider.onDidChange",this._languageFeaturesService.documentSymbolProvider.onDidChange),m=(0,F.yQ)("_textModel.onDidChangeContent",I.Jh.debounce(u=>this._textModel.onDidChangeContent(u),()=>{},100));this._register((0,F.yC)(async(u,C)=>{c.read(u),m.read(u);const h=C.add(new M.MZ),v=await this._outlineModelService.getOrCreate(this._textModel,h.token);C.isDisposed||this._currentModel.set(v,void 0)}))}getBreadcrumbItems(s,n){const i=this._currentModel.read(n);if(!i)return[];const c=i.asListOfDocumentSymbols().filter(m=>s.contains(m.range.startLineNumber)&&!s.contains(m.range.endLineNumber));return c.sort((0,r.Hw)((0,r.VE)(m=>m.range.endLineNumber-m.range.startLineNumber,r.U9))),c.map(m=>({name:m.name,kind:m.kind,startLineNumber:m.range.startLineNumber}))}};d=S([f(1,L.u),f(2,g.gW)],d),k.N.setBreadcrumbsSourceFactory((a,s)=>s.createInstance(d,a))},"./node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dnd.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js");class I{constructor(a,s,n){this.selection=a,this.targetPosition=s,this.copy=n,this.targetSelection=null}getEditOperations(a,s){const n=a.getValueInRange(this.selection);if(this.copy||s.addEditOperation(this.selection,null),s.addEditOperation(new L.Q(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new g.L(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new g.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberthis._onEditorMouseDown(s))),this._register(this._editor.onMouseUp(s=>this._onEditorMouseUp(s))),this._register(this._editor.onMouseDrag(s=>this._onEditorMouseDrag(s))),this._register(this._editor.onMouseDrop(s=>this._onEditorMouseDrop(s))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(s=>this.onEditorKeyDown(s))),this._register(this._editor.onKeyUp(s=>this.onEditorKeyUp(s))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(a){!this._editor.getOption(35)||this._editor.getOption(22)||(S(a)&&(this._modifierPressed=!0),this._mouseDown&&S(a)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(a){!this._editor.getOption(35)||this._editor.getOption(22)||(S(a)&&(this._modifierPressed=!1),this._mouseDown&&a.keyCode===f.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(a){this._mouseDown=!0}_onEditorMouseUp(a){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(a){const s=a.target;if(this._dragSelection===null){const i=(this._editor.getSelections()||[]).filter(c=>s.position&&c.containsPosition(s.position));if(i.length===1)this._dragSelection=i[0];else return}S(a.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),s.position&&(this._dragSelection.containsPosition(s.position)?this._removeDecoration():this.showAt(s.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(a){if(a.target&&(this._hitContent(a.target)||this._hitMargin(a.target))&&a.target.position){const s=new M.y(a.target.position.lineNumber,a.target.position.column);if(this._dragSelection===null){let n=null;if(a.event.shiftKey){const i=this._editor.getSelection();if(i){const{selectionStartLineNumber:c,selectionStartColumn:m}=i;n=[new g.L(c,m,s.lineNumber,s.column)]}}else n=(this._editor.getSelections()||[]).map(i=>i.containsPosition(s)?new g.L(s.lineNumber,s.column,s.lineNumber,s.column):i);this._editor.setSelections(n||[],"mouse",3)}else(!this._dragSelection.containsPosition(s)||(S(a.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(s)||this._dragSelection.getStartPosition().equals(s)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(f.ID,new I(this._dragSelection,s,S(a.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(a){this._dndDecorationIds.set([{range:new L.Q(a.lineNumber,a.column,a.lineNumber,a.column),options:f._DECORATION_OPTIONS}]),this._editor.revealPosition(a,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(a){return a.type===6||a.type===7}_hitMargin(a){return a.type===2||a.type===3||a.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}}f.ID="editor.contrib.dragAndDrop",f.TRIGGER_KEY_VALUE=F.zx?6:5,f._DECORATION_OPTIONS=x.kI.register({description:"dnd-target",className:"dnd-target"}),(0,k.HW)(f.ID,f,2)},"./node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/documentSymbols.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js");g.w.registerCommand("_executeDocumentSymbolProvider",async function(x,...I){const[S]=I;(0,F.j)(k.r.isUri(S));const f=x.get(L.gW),a=await x.get(M.b).createModelReference(S);try{return(await f.getOrCreate(a.object.textEditorModel,r.X.None)).getTopLevelSymbols()}finally{a.dispose()}})},"./node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.js":function(pt,Me,e){e.d(Me,{LC:function(){return m},e0:function(){return u},gW:function(){return h},i9:function(){return C}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),n=function(p,b,O,w){var j=arguments.length,U=j<3?b:w===null?w=Object.getOwnPropertyDescriptor(b,O):w,K;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(p,b,O,w);else for(var G=p.length-1;G>=0;G--)(K=p[G])&&(U=(j<3?K(U):j>3?K(b,O,U):K(b,O))||U);return j>3&&U&&Object.defineProperty(b,O,U),U},i=function(p,b){return function(O,w){b(O,w,p)}};class c{remove(){var b;(b=this.parent)===null||b===void 0||b.children.delete(this.id)}static findId(b,O){let w;typeof b=="string"?w=`${O.id}/${b}`:(w=`${O.id}/${b.name}`,O.children.get(w)!==void 0&&(w=`${O.id}/${b.name}_${b.range.startLineNumber}_${b.range.startColumn}`));let j=w;for(let U=0;O.children.get(j)!==void 0;U++)j=`${w}_${U}`;return j}static empty(b){return b.children.size===0}}class m extends c{constructor(b,O,w){super(),this.id=b,this.parent=O,this.symbol=w,this.children=new Map}}class u extends c{constructor(b,O,w,j){super(),this.id=b,this.parent=O,this.label=w,this.order=j,this.children=new Map}}class C extends c{static create(b,O,w){const j=new F.Q(w),U=new C(O.uri),K=b.ordered(O),G=K.map((A,T)=>{var E;const W=c.findId(`provider_${T}`,U),$=new u(W,U,(E=A.displayName)!==null&&E!==void 0?E:"Unknown Outline Provider",T);return Promise.resolve(A.provideDocumentSymbols(O,j.token)).then(z=>{for(const J of z||[])C._makeOutlineElement(J,$);return $},z=>((0,k.M_)(z),$)).then(z=>{c.empty(z)?z.remove():U._groups.set(W,z)})}),P=b.onDidChange(()=>{const A=b.ordered(O);(0,r.aI)(A,K)||j.cancel()});return Promise.all(G).then(()=>j.token.isCancellationRequested&&!w.isCancellationRequested?C.create(b,O,w):U._compact()).finally(()=>{j.dispose(),P.dispose(),j.dispose()})}static _makeOutlineElement(b,O){const w=c.findId(b,O),j=new m(w,O,b);if(b.children)for(const U of b.children)C._makeOutlineElement(U,j);O.children.set(j.id,j)}constructor(b){super(),this.uri=b,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let b=0;for(const[O,w]of this._groups)w.children.size===0?this._groups.delete(O):b+=1;if(b!==1)this.children=this._groups;else{const O=M.f.first(this._groups.values());for(const[,w]of O.children)w.parent=this,this.children.set(w.id,w)}return this}getTopLevelSymbols(){const b=[];for(const O of this.children.values())O instanceof m?b.push(O.symbol):b.push(...M.f.map(O.children.values(),w=>w.symbol));return b.sort((O,w)=>x.Q.compareRangesUsingStarts(O.range,w.range))}asListOfDocumentSymbols(){const b=this.getTopLevelSymbols(),O=[];return C._flattenDocumentSymbols(O,b,""),O.sort((w,j)=>g.y.compare(x.Q.getStartPosition(w.range),x.Q.getStartPosition(j.range))||g.y.compare(x.Q.getEndPosition(j.range),x.Q.getEndPosition(w.range)))}static _flattenDocumentSymbols(b,O,w){for(const j of O)b.push({kind:j.kind,tags:j.tags,name:j.name,detail:j.detail,containerName:j.containerName||w,range:j.range,selectionRange:j.selectionRange,children:void 0}),j.children&&C._flattenDocumentSymbols(b,j.children,j.name)}}const h=(0,S.u1)("IOutlineModelService");let v=class{constructor(b,O,w){this._languageFeaturesService=b,this._disposables=new a.Cm,this._cache=new L.qK(10,.7),this._debounceInformation=O.for(b.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(w.onModelRemoved(j=>{this._cache.delete(j.id)}))}dispose(){this._disposables.dispose()}async getOrCreate(b,O){const w=this._languageFeaturesService.documentSymbolProvider,j=w.ordered(b);let U=this._cache.get(b.id);if(!U||U.versionId!==b.getVersionId()||!(0,r.aI)(U.provider,j)){const G=new F.Q;U={versionId:b.getVersionId(),provider:j,promiseCnt:0,source:G,promise:C.create(w,b,G.token),model:void 0},this._cache.set(b.id,U);const P=Date.now();U.promise.then(A=>{U.model=A,this._debounceInformation.update(b,Date.now()-P)}).catch(A=>{this._cache.delete(b.id)})}if(U.model)return U.model;U.promiseCnt+=1;const K=O.onCancellationRequested(()=>{--U.promiseCnt===0&&(U.source.cancel(),this._cache.delete(b.id))});try{return await U.promise}finally{K.dispose()}}};v=n([i(0,s.u),i(1,I.U),i(2,d.S)],v),(0,f.v)(h,v,1)},"./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/editorFeatures.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js"),x=e("./node_modules/monaco-editor/esm/vs/nls.js"),I;(0,F.HW)(L.Rj.ID,L.Rj,0),(0,M.x)(g.L9),(0,F.E_)(new class extends F.DX{constructor(){super({id:L.qs,precondition:L.lr,kbOpts:{weight:100,primary:2137}})}runEditorCommand(S,f){var d;return(d=L.Rj.get(f))===null||d===void 0?void 0:d.changePasteType()}}),(0,F.E_)(new class extends F.DX{constructor(){super({id:"editor.hidePasteWidget",precondition:L.lr,kbOpts:{weight:100,primary:9}})}runEditorCommand(S,f){var d;(d=L.Rj.get(f))===null||d===void 0||d.clearWidgets()}}),(0,F.Fl)((I=class extends F.ks{constructor(){super({id:"editor.action.pasteAs",label:x.kg("pasteAs","Paste As..."),alias:"Paste As...",precondition:k.R.writable,metadata:{description:"Paste as",args:[{name:"args",schema:I.argsSchema}]}})}run(f,d,a){var s;let n=typeof a?.kind=="string"?a.kind:void 0;return!n&&a&&(n=typeof a.id=="string"?a.id:void 0),(s=L.Rj.get(d))===null||s===void 0?void 0:s.pasteAs(n?new r.k(n):void 0)}},I.argsSchema={type:"object",properties:{kind:{type:"string",description:x.kg("pasteAs.kind","The kind of the paste edit to try applying. If not provided or there are multiple edits for this kind, the editor will show a picker.")}}},I)),(0,F.Fl)(class extends F.ks{constructor(){super({id:"editor.action.pasteAsText",label:x.kg("pasteAsText","Paste as Text"),alias:"Paste as Text",precondition:k.R.writable})}run(S,f){var d;return(d=L.Rj.get(f))===null||d===void 0?void 0:d.pasteAs({providerId:g.LR.id})}})},"./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js":function(pt,Me,e){e.d(Me,{Rj:function(){return W},lr:function(){return T},qs:function(){return A}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/dataTransfer.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/mime.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/uuid.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaInput.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/dnd.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/bulkEditService.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/edit.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineProgress/browser/inlineProgress.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/contrib/message/browser/messageController.js"),v=e("./node_modules/monaco-editor/esm/vs/nls.js"),p=e("./node_modules/monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),O=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),w=e("./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"),j=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"),U=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js"),K=function($,z,J,B){var V=arguments.length,Y=V<3?z:B===null?B=Object.getOwnPropertyDescriptor(z,J):B,X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Y=Reflect.decorate($,z,J,B);else for(var ie=$.length-1;ie>=0;ie--)(X=$[ie])&&(Y=(V<3?X(Y):V>3?X(z,J,Y):X(z,J))||Y);return V>3&&Y&&Object.defineProperty(z,J,Y),Y},G=function($,z){return function(J,B){z(J,B,$)}},P;const A="editor.changePasteType",T=new b.N1("pasteWidgetVisible",!1,(0,v.kg)("pasteWidgetVisible","Whether the paste widget is showing")),E="application/vnd.code.copyMetadata";let W=P=class extends g.jG{static get(z){return z.getContribution(P.ID)}constructor(z,J,B,V,Y,X,ie){super(),this._bulkEditService=B,this._clipboardService=V,this._languageFeaturesService=Y,this._quickInputService=X,this._progressService=ie,this._editor=z;const re=z.getContainerDomNode();this._register((0,r.ko)(re,"copy",te=>this.handleCopy(te))),this._register((0,r.ko)(re,"cut",te=>this.handleCopy(te))),this._register((0,r.ko)(re,"paste",te=>this.handlePaste(te),!0)),this._pasteProgressManager=this._register(new C.I("pasteIntoEditor",z,J)),this._postPasteWidgetManager=this._register(J.createInstance(U.G,"pasteIntoEditor",z,T,{id:A,label:(0,v.kg)("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(z){this._editor.focus();try{this._pasteAsActionContext={preferred:z},(0,r.a)().execCommand("paste")}finally{this._pasteAsActionContext=void 0}}clearWidgets(){this._postPasteWidgetManager.clear()}isPasteAsEnabled(){return this._editor.getOption(85).enabled&&!this._editor.getOption(91)}async finishedPaste(){await this._currentPasteOperation}handleCopy(z){var J,B;if(!this._editor.hasTextFocus()||(I.HZ&&this._clipboardService.writeResources([]),!z.clipboardData||!this.isPasteAsEnabled()))return;const V=this._editor.getModel(),Y=this._editor.getSelections();if(!V||!Y?.length)return;const X=this._editor.getOption(37);let ie=Y;const re=Y.length===1&&Y[0].isEmpty();if(re){if(!X)return;ie=[new s.Q(ie[0].startLineNumber,1,ie[0].startLineNumber,1+V.getLineLength(ie[0].startLineNumber))]}const te=(J=this._editor._getViewModel())===null||J===void 0?void 0:J.getPlainTextToCopy(Y,X,I.uF),he={multicursorText:Array.isArray(te)?te:null,pasteOnNewLine:re,mode:null},ve=this._languageFeaturesService.documentPasteEditProvider.ordered(V).filter(De=>!!De.prepareDocumentPaste);if(!ve.length){this.setCopyMetadata(z.clipboardData,{defaultPastePayload:he});return}const Ce=(0,d.q)(z.clipboardData),Pe=ve.flatMap(De=>{var Te;return(Te=De.copyMimeTypes)!==null&&Te!==void 0?Te:[]}),_e=(0,S.b)();this.setCopyMetadata(z.clipboardData,{id:_e,providerCopyMimeTypes:Pe,defaultPastePayload:he});const ee=(0,k.SS)(async De=>{const Te=(0,F.Yc)(await Promise.all(ve.map(async He=>{try{return await He.prepareDocumentPaste(V,ie,Ce,De)}catch(qe){console.error(qe);return}})));Te.reverse();for(const He of Te)for(const[qe,Qe]of He)Ce.replace(qe,Qe);return Ce});(B=P._currentCopyOperation)===null||B===void 0||B.dataTransferPromise.cancel(),P._currentCopyOperation={handle:_e,dataTransferPromise:ee}}async handlePaste(z){var J,B,V,Y;if(!z.clipboardData||!this._editor.hasTextFocus())return;(J=h.k.get(this._editor))===null||J===void 0||J.closeMessage(),(B=this._currentPasteOperation)===null||B===void 0||B.cancel(),this._currentPasteOperation=void 0;const X=this._editor.getModel(),ie=this._editor.getSelections();if(!ie?.length||!X||!this.isPasteAsEnabled()&&!this._pasteAsActionContext)return;const re=this.fetchCopyMetadata(z),te=(0,d.l)(z.clipboardData);te.delete(E);const D=[...z.clipboardData.types,...(V=re?.providerCopyMimeTypes)!==null&&V!==void 0?V:[],x.K.uriList],he=this._languageFeaturesService.documentPasteEditProvider.ordered(X).filter(ve=>{var Ce,Pe;const _e=(Ce=this._pasteAsActionContext)===null||Ce===void 0?void 0:Ce.preferred;return _e&&ve.providedPasteEditKinds&&!this.providerMatchesPreference(ve,_e)?!1:(Pe=ve.pasteMimeTypes)===null||Pe===void 0?void 0:Pe.some(ee=>(0,M.Y)(ee,D))});if(!he.length){!((Y=this._pasteAsActionContext)===null||Y===void 0)&&Y.preferred&&this.showPasteAsNoEditMessage(ie,this._pasteAsActionContext.preferred);return}z.preventDefault(),z.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferred,he,ie,te,re):this.doPasteInline(he,ie,te,re,z)}showPasteAsNoEditMessage(z,J){var B;(B=h.k.get(this._editor))===null||B===void 0||B.showMessage((0,v.kg)("pasteAsError","No paste edits for '{0}' found",J instanceof L.k?J.value:J.providerId),z[0].getStartPosition())}doPasteInline(z,J,B,V,Y){const X=(0,k.SS)(async ie=>{const re=this._editor;if(!re.hasModel())return;const te=re.getModel(),D=new u.gI(re,3,void 0,ie);try{if(await this.mergeInDataFromCopy(B,V,D.token),D.token.isCancellationRequested)return;const he=z.filter(Pe=>this.isSupportedPasteProvider(Pe,B));if(!he.length||he.length===1&&he[0]instanceof c.LR)return this.applyDefaultPasteHandler(B,V,D.token,Y);const ve={triggerKind:n.FX.Automatic},Ce=await this.getPasteEdits(he,B,te,J,ve,D.token);if(D.token.isCancellationRequested)return;if(Ce.length===1&&Ce[0].provider instanceof c.LR)return this.applyDefaultPasteHandler(B,V,D.token,Y);if(Ce.length){const Pe=re.getOption(85).showPasteSelector==="afterPaste";return this._postPasteWidgetManager.applyEditAndShowIfNeeded(J,{activeEditIndex:0,allEdits:Ce},Pe,async(_e,ee)=>{var De,Te;const He=await((Te=(De=_e.provider).resolveDocumentPasteEdit)===null||Te===void 0?void 0:Te.call(De,_e,ee));return He&&(_e.additionalEdit=He.additionalEdit),_e},D.token)}await this.applyDefaultPasteHandler(B,V,D.token,Y)}finally{D.dispose(),this._currentPasteOperation===X&&(this._currentPasteOperation=void 0)}});this._pasteProgressManager.showWhile(J[0].getEndPosition(),(0,v.kg)("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),X),this._currentPasteOperation=X}showPasteAsPick(z,J,B,V,Y){const X=(0,k.SS)(async ie=>{const re=this._editor;if(!re.hasModel())return;const te=re.getModel(),D=new u.gI(re,3,void 0,ie);try{if(await this.mergeInDataFromCopy(V,Y,D.token),D.token.isCancellationRequested)return;let he=J.filter(ee=>this.isSupportedPasteProvider(ee,V,z));z&&(he=he.filter(ee=>this.providerMatchesPreference(ee,z)));const ve={triggerKind:n.FX.PasteAs,only:z&&z instanceof L.k?z:void 0};let Ce=await this.getPasteEdits(he,V,te,B,ve,D.token);if(D.token.isCancellationRequested)return;if(z&&(Ce=Ce.filter(ee=>z instanceof L.k?z.contains(ee.kind):z.providerId===ee.provider.id)),!Ce.length){ve.only&&this.showPasteAsNoEditMessage(B,ve.only);return}let Pe;if(z)Pe=Ce.at(0);else{const ee=await this._quickInputService.pick(Ce.map(De=>{var Te;return{label:De.title,description:(Te=De.kind)===null||Te===void 0?void 0:Te.value,edit:De}}),{placeHolder:(0,v.kg)("pasteAsPickerPlaceholder","Select Paste Action")});Pe=ee?.edit}if(!Pe)return;const _e=(0,m.v)(te.uri,B,Pe);await this._bulkEditService.apply(_e,{editor:this._editor})}finally{D.dispose(),this._currentPasteOperation===X&&(this._currentPasteOperation=void 0)}});this._progressService.withProgress({location:10,title:(0,v.kg)("pasteAsProgress","Running paste handlers")},()=>X)}setCopyMetadata(z,J){z.setData(E,JSON.stringify(J))}fetchCopyMetadata(z){var J;if(!z.clipboardData)return;const B=z.clipboardData.getData(E);if(B)try{return JSON.parse(B)}catch{return}const[V,Y]=f.Mz.getTextData(z.clipboardData);if(Y)return{defaultPastePayload:{mode:Y.mode,multicursorText:(J=Y.multicursorText)!==null&&J!==void 0?J:null,pasteOnNewLine:!!Y.isFromEmptySelection}}}async mergeInDataFromCopy(z,J,B){var V;if(J?.id&&((V=P._currentCopyOperation)===null||V===void 0?void 0:V.handle)===J.id){const Y=await P._currentCopyOperation.dataTransferPromise;if(B.isCancellationRequested)return;for(const[X,ie]of Y)z.replace(X,ie)}if(!z.has(x.K.uriList)){const Y=await this._clipboardService.readResources();if(B.isCancellationRequested)return;Y.length&&z.append(x.K.uriList,(0,M.gf)(M.jt.create(Y)))}}async getPasteEdits(z,J,B,V,Y,X){const ie=await(0,k.PK)(Promise.all(z.map(async te=>{var D,he;try{const ve=await((D=te.provideDocumentPasteEdits)===null||D===void 0?void 0:D.call(te,B,V,J,Y,X));return(he=ve?.edits)===null||he===void 0?void 0:he.map(Ce=>({...Ce,provider:te}))}catch(ve){console.error(ve)}})),X),re=(0,F.Yc)(ie??[]).flat().filter(te=>!Y.only||Y.only.contains(te.kind));return(0,m.H)(re)}async applyDefaultPasteHandler(z,J,B,V){var Y,X,ie,re;const te=(Y=z.get(x.K.text))!==null&&Y!==void 0?Y:z.get("text"),D=(X=await te?.asString())!==null&&X!==void 0?X:"";if(B.isCancellationRequested)return;const he={clipboardEvent:V,text:D,pasteOnNewLine:(ie=J?.defaultPastePayload.pasteOnNewLine)!==null&&ie!==void 0?ie:!1,multicursorText:(re=J?.defaultPastePayload.multicursorText)!==null&&re!==void 0?re:null,mode:null};this._editor.trigger("keyboard","paste",he)}isSupportedPasteProvider(z,J,B){var V;return!((V=z.pasteMimeTypes)===null||V===void 0)&&V.some(Y=>J.matches(Y))?!B||this.providerMatchesPreference(z,B):!1}providerMatchesPreference(z,J){return J instanceof L.k?z.providedPasteEditKinds?z.providedPasteEditKinds.some(B=>J.contains(B)):!0:z.id===J.providerId}};W.ID="editor.contrib.copyPasteActionController",W=P=K([G(1,O._Y),G(2,a.nu),G(3,p.h),G(4,i.u),G(5,j.GK),G(6,w.G5)],W)},"./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js":function(pt,Me,e){e.d(Me,{L9:function(){return p},LR:function(){return c},ZR:function(){return v}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/dataTransfer.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/mime.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),d=e("./node_modules/monaco-editor/esm/vs/nls.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace.js"),s=function(b,O,w,j){var U=arguments.length,K=U<3?O:j===null?j=Object.getOwnPropertyDescriptor(O,w):j,G;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(b,O,w,j);else for(var P=b.length-1;P>=0;P--)(G=b[P])&&(K=(U<3?G(K):U>3?G(O,w,K):G(O,w))||K);return U>3&&K&&Object.defineProperty(O,w,K),K},n=function(b,O){return function(w,j){O(w,j,b)}};class i{async provideDocumentPasteEdits(O,w,j,U,K){const G=await this.getEdit(j,K);if(G)return{dispose(){},edits:[{insertText:G.insertText,title:G.title,kind:G.kind,handledMimeType:G.handledMimeType,yieldTo:G.yieldTo}]}}async provideDocumentOnDropEdits(O,w,j,U){const K=await this.getEdit(j,U);return K?[{insertText:K.insertText,title:K.title,kind:K.kind,handledMimeType:K.handledMimeType,yieldTo:K.yieldTo}]:void 0}}class c extends i{constructor(){super(...arguments),this.kind=c.kind,this.dropMimeTypes=[L.K.text],this.pasteMimeTypes=[L.K.text]}async getEdit(O,w){const j=O.get(L.K.text);if(!j||O.has(L.K.uriList))return;const U=await j.asString();return{handledMimeType:L.K.text,title:(0,d.kg)("text.label","Insert Plain Text"),insertText:U,kind:this.kind}}}c.id="text",c.kind=new k.k("text.plain");class m extends i{constructor(){super(...arguments),this.kind=new k.k("uri.absolute"),this.dropMimeTypes=[L.K.uriList],this.pasteMimeTypes=[L.K.uriList]}async getEdit(O,w){const j=await h(O);if(!j.length||w.isCancellationRequested)return;let U=0;const K=j.map(({uri:P,originalText:A})=>P.scheme===g.ny.file?P.fsPath:(U++,A)).join(" ");let G;return U>0?G=j.length>1?(0,d.kg)("defaultDropProvider.uriList.uris","Insert Uris"):(0,d.kg)("defaultDropProvider.uriList.uri","Insert Uri"):G=j.length>1?(0,d.kg)("defaultDropProvider.uriList.paths","Insert Paths"):(0,d.kg)("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:L.K.uriList,insertText:K,title:G,kind:this.kind}}}let u=class extends i{constructor(O){super(),this._workspaceContextService=O,this.kind=new k.k("uri.relative"),this.dropMimeTypes=[L.K.uriList],this.pasteMimeTypes=[L.K.uriList]}async getEdit(O,w){const j=await h(O);if(!j.length||w.isCancellationRequested)return;const U=(0,r.Yc)(j.map(({uri:K})=>{const G=this._workspaceContextService.getWorkspaceFolder(K);return G?(0,x.iZ)(G.uri,K):void 0}));if(U.length)return{handledMimeType:L.K.uriList,insertText:U.join(" "),title:j.length>1?(0,d.kg)("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):(0,d.kg)("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};u=s([n(0,a.VR)],u);class C{constructor(){this.kind=new k.k("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:L.K.text}]}async provideDocumentPasteEdits(O,w,j,U,K){var G;if(U.triggerKind!==S.FX.PasteAs&&!(!((G=U.only)===null||G===void 0)&&G.contains(this.kind)))return;const P=j.get("text/html"),A=await P?.asString();if(!(!A||K.isCancellationRequested))return{dispose(){},edits:[{insertText:A,yieldTo:this._yieldTo,title:(0,d.kg)("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function h(b){const O=b.get(L.K.uriList);if(!O)return[];const w=await O.asString(),j=[];for(const U of F.jt.parse(w))try{j.push({uri:I.r.parse(U),originalText:U})}catch{}return j}let v=class extends M.jG{constructor(O,w){super(),this._register(O.documentOnDropEditProvider.register("*",new c)),this._register(O.documentOnDropEditProvider.register("*",new m)),this._register(O.documentOnDropEditProvider.register("*",new u(w)))}};v=s([n(0,f.u),n(1,a.VR)],v);let p=class extends M.jG{constructor(O,w){super(),this._register(O.documentPasteEditProvider.register("*",new c)),this._register(O.documentPasteEditProvider.register("*",new m)),this._register(O.documentPasteEditProvider.register("*",new u(w))),this._register(O.documentPasteEditProvider.register("*",new C))}};p=s([n(0,f.u),n(1,a.VR)],p)},"./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorConfigurationSchema.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/editorFeatures.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js"),L=e("./node_modules/monaco-editor/esm/vs/nls.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/dataTransfer.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/browser/dnd.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js");class c{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(z){if(z&&this._dragOperations.has(z)){const J=this._dragOperations.get(z);return this._dragOperations.delete(z),J}}}class m{constructor(z){this.identifier=z}}var u=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),C=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const h=(0,C.u1)("treeViewsDndService");(0,u.v)(h,c,1);var v=e("./node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js"),p=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineProgress/browser/inlineProgress.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),O=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),w=e("./node_modules/monaco-editor/esm/vs/platform/dnd/browser/dnd.js"),j=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/edit.js"),U=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js"),K=function($,z,J,B){var V=arguments.length,Y=V<3?z:B===null?B=Object.getOwnPropertyDescriptor(z,J):B,X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Y=Reflect.decorate($,z,J,B);else for(var ie=$.length-1;ie>=0;ie--)(X=$[ie])&&(Y=(V<3?X(Y):V>3?X(z,J,Y):X(z,J))||Y);return V>3&&Y&&Object.defineProperty(z,J,Y),Y},G=function($,z){return function(J,B){z(J,B,$)}},P;const A="editor.experimental.dropIntoEditor.defaultProvider",T="editor.changeDropType",E=new O.N1("dropWidgetVisible",!1,(0,L.kg)("dropWidgetVisible","Whether the drop widget is showing"));let W=P=class extends a.jG{static get(z){return z.getContribution(P.ID)}constructor(z,J,B,V,Y){super(),this._configService=B,this._languageFeaturesService=V,this._treeViewsDragAndDropService=Y,this.treeItemsTransfer=w.PD.getInstance(),this._dropProgressManager=this._register(J.createInstance(p.I,"dropIntoEditor",z)),this._postDropWidgetManager=this._register(J.createInstance(U.G,"dropIntoEditor",z,E,{id:T,label:(0,L.kg)("postDropWidgetTitle","Show drop options...")})),this._register(z.onDropIntoEditor(X=>this.onDropIntoEditor(z,X.position,X.event)))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(z,J,B){var V;if(!B.dataTransfer||!z.hasModel())return;(V=this._currentOperation)===null||V===void 0||V.cancel(),z.focus(),z.setPosition(J);const Y=(0,S.SS)(async X=>{const ie=new v.gI(z,1,void 0,X);try{const re=await this.extractDataTransferData(B);if(re.size===0||ie.token.isCancellationRequested)return;const te=z.getModel();if(!te)return;const D=this._languageFeaturesService.documentOnDropEditProvider.ordered(te).filter(ve=>ve.dropMimeTypes?ve.dropMimeTypes.some(Ce=>re.matches(Ce)):!0),he=await this.getDropEdits(D,te,J,re,ie);if(ie.token.isCancellationRequested)return;if(he.length){const ve=this.getInitialActiveEditIndex(te,he),Ce=z.getOption(36).showDropSelector==="afterDrop";await this._postDropWidgetManager.applyEditAndShowIfNeeded([n.Q.fromPositions(J)],{activeEditIndex:ve,allEdits:he},Ce,async Pe=>Pe,X)}}finally{ie.dispose(),this._currentOperation===Y&&(this._currentOperation=void 0)}});this._dropProgressManager.showWhile(J,(0,L.kg)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),Y),this._currentOperation=Y}async getDropEdits(z,J,B,V,Y){const X=await(0,S.PK)(Promise.all(z.map(async re=>{try{const te=await re.provideDocumentOnDropEdits(J,B,V,Y.token);return te?.map(D=>({...D,providerId:re.id}))}catch(te){console.error(te)}})),Y.token),ie=(0,I.Yc)(X??[]).flat();return(0,j.H)(ie)}getInitialActiveEditIndex(z,J){const B=this._configService.getValue(A,{resource:z.uri});for(const[V,Y]of Object.entries(B)){const X=new d.k(Y),ie=J.findIndex(re=>X.value===re.providerId&&re.handledMimeType&&(0,f.Y)(V,[re.handledMimeType]));if(ie>=0)return ie}return 0}async extractDataTransferData(z){if(!z.dataTransfer)return new f.Vq;const J=(0,s.l)(z.dataTransfer);if(this.treeItemsTransfer.hasData(m.prototype)){const B=this.treeItemsTransfer.getData(m.prototype);if(Array.isArray(B))for(const V of B){const Y=await this._treeViewsDragAndDropService.removeDragOperationTransfer(V.identifier);if(Y)for(const[X,ie]of Y)J.replace(X,ie)}}return J}};W.ID="editor.contrib.dropIntoEditorController",W=P=K([G(1,C._Y),G(2,b.pG),G(3,i.u),G(4,h)],W),(0,r.HW)(W.ID,W,2),(0,k.x)(M.ZR),(0,r.E_)(new class extends r.DX{constructor(){super({id:T,precondition:E,kbOpts:{weight:100,primary:2137}})}runEditorCommand($,z,J){var B;(B=W.get(z))===null||B===void 0||B.changeDropType()}}),(0,r.E_)(new class extends r.DX{constructor(){super({id:"editor.hideDropWidget",precondition:E,kbOpts:{weight:100,primary:9}})}runEditorCommand($,z,J){var B;(B=W.get(z))===null||B===void 0||B.clearWidgets()}}),x.O.as(g.Fd.Configuration).registerConfiguration({...F.JJ,properties:{[A]:{type:"object",scope:5,description:L.kg("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}})},"./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/edit.js":function(pt,Me,e){e.d(Me,{H:function(){return M},v:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/bulkEditService.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.js");function k(L,g,x){var I,S,f,d;return(typeof x.insertText=="string"?x.insertText==="":x.insertText.snippet==="")?{edits:(S=(I=x.additionalEdit)===null||I===void 0?void 0:I.edits)!==null&&S!==void 0?S:[]}:{edits:[...g.map(a=>new r.cw(L,{range:a,text:typeof x.insertText=="string"?F.fr.escape(x.insertText)+"$0":x.insertText.snippet,insertAsSnippet:!0})),...(d=(f=x.additionalEdit)===null||f===void 0?void 0:f.edits)!==null&&d!==void 0?d:[]]}}function M(L){var g;function x(a,s){return"mimeType"in a?a.mimeType===s.handledMimeType:!!s.kind&&a.kind.contains(s.kind)}const I=new Map;for(const a of L)for(const s of(g=a.yieldTo)!==null&&g!==void 0?g:[])for(const n of L)if(n!==a&&x(s,n)){let i=I.get(a);i||(i=[],I.set(a,i)),i.push(n)}if(!I.size)return Array.from(L);const S=new Set,f=[];function d(a){if(!a.length)return[];const s=a[0];if(f.includes(s))return console.warn("Yield to cycle detected",s),a;if(S.has(s))return d(a.slice(1));let n=[];const i=I.get(s);return i&&(f.push(s),n=d(i),f.pop()),S.add(s),[...n,s,...d(a.slice(1))]}return d(Array.from(L))}},"./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js":function(pt,Me,e){e.d(Me,{G:function(){return c}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/button/button.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/bulkEditService.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/edit.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),a=function(m,u,C,h){var v=arguments.length,p=v<3?u:h===null?h=Object.getOwnPropertyDescriptor(u,C):h,b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")p=Reflect.decorate(m,u,C,h);else for(var O=m.length-1;O>=0;O--)(b=m[O])&&(p=(v<3?b(p):v>3?b(u,C,p):b(u,C))||p);return v>3&&p&&Object.defineProperty(u,C,p),p},s=function(m,u){return function(C,h){u(C,h,m)}},n;let i=n=class extends L.jG{constructor(u,C,h,v,p,b,O,w,j,U){super(),this.typeId=u,this.editor=C,this.showCommand=v,this.range=p,this.edits=b,this.onSelectNewEdit=O,this._contextMenuService=w,this._keybindingService=U,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=h.bindTo(j),this.visibleContext.set(!0),this._register((0,L.s)(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register((0,L.s)(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(K=>{p.containsPosition(K.position)||this.dispose()})),this._register(M.Jh.runAndSubscribe(U.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var u;const C=(u=this._keybindingService.lookupKeybinding(this.showCommand.id))===null||u===void 0?void 0:u.getLabel();this.button.element.title=this.showCommand.label+(C?` (${C})`:"")}create(){this.domNode=r.$(".post-edit-widget"),this.button=this._register(new F.$(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(r.ko(this.domNode,r.Bx.CLICK,()=>this.showSelector()))}getId(){return n.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const u=r.BK(this.button.element);return{x:u.left+u.width,y:u.top+u.height}},getActions:()=>this.edits.allEdits.map((u,C)=>(0,k.ih)({id:"",label:u.title,checked:C===this.edits.activeEditIndex,run:()=>{if(C!==this.edits.activeEditIndex)return this.onSelectNewEdit(C)}}))})}};i.baseId="editor.widget.postEditWidget",i=n=a([s(7,S.Z),s(8,I.fN),s(9,d.b)],i);let c=class extends L.jG{constructor(u,C,h,v,p,b){super(),this._id=u,this._editor=C,this._visibleContext=h,this._showCommand=v,this._instantiationService=p,this._bulkEditService=b,this._currentWidget=this._register(new L.HE),this._register(M.Jh.any(C.onDidChangeModel,C.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(u,C,h,v,p){const b=this._editor.getModel();if(!b||!u.length)return;const O=C.allEdits.at(C.activeEditIndex);if(!O)return;const w=await v(O,p),j=(0,x.v)(b.uri,u,w),U=u[0],K=b.deltaDecorations([],[{range:U,options:{description:"paste-line-suffix",stickiness:0}}]);let G,P;try{G=await this._bulkEditService.apply(j,{editor:this._editor,token:p}),P=b.getDecorationRange(K[0])}finally{b.deltaDecorations(K,[])}h&&G.isApplied&&C.allEdits.length>1&&this.show(P??U,C,async A=>{const T=this._editor.getModel();T&&(await T.undo(),this.applyEditAndShowIfNeeded(u,{activeEditIndex:A,allEdits:C.allEdits},h,v,p))})}show(u,C,h){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(i,this._id,this._editor,this._visibleContext,this._showCommand,u,C,h))}clear(){this._currentWidget.clear()}tryShowSelector(){var u;(u=this._currentWidget.value)===null||u===void 0||u.showSelector()}};c=a([s(4,f._Y),s(5,g.nu)],c)},"./node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js":function(pt,Me,e){e.d(Me,{$t:function(){return n},gI:function(){return i},ER:function(){return c}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),f=e("./node_modules/monaco-editor/esm/vs/nls.js");const d=(0,I.u1)("IEditorCancelService"),a=new g.N1("cancellableOperation",!1,(0,f.kg)("cancellableOperation","Whether the editor runs a cancellable operation, e.g. like 'Peek References'"));(0,S.v)(d,class{constructor(){this._tokens=new WeakMap}add(m,u){let C=this._tokens.get(m);C||(C=m.invokeWithinContext(v=>{const p=a.bindTo(v.get(g.fN)),b=new x.w;return{key:p,tokens:b}}),this._tokens.set(m,C));let h;return C.key.set(!0),h=C.tokens.push(u),()=>{h&&(h(),C.key.set(!C.tokens.isEmpty()),h=void 0)}}cancel(m){const u=this._tokens.get(m);if(!u)return;const C=u.tokens.pop();C&&(C.cancel(),u.key.set(!u.tokens.isEmpty()))}},1);class s extends k.Q{constructor(u,C){super(C),this.editor=u,this._unregister=u.invokeWithinContext(h=>h.get(d).add(u,this))}dispose(){this._unregister(),super.dispose()}}(0,L.E_)(new class extends L.DX{constructor(){super({id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:a})}runEditorCommand(m,u){m.get(d).cancel(u)}});class n{constructor(u,C){if(this.flags=C,this.flags&1){const h=u.getModel();this.modelVersionId=h?r.GP("{0}#{1}",h.uri.toString(),h.getVersionId()):null}else this.modelVersionId=null;this.flags&4?this.position=u.getPosition():this.position=null,this.flags&2?this.selection=u.getSelection():this.selection=null,this.flags&8?(this.scrollLeft=u.getScrollLeft(),this.scrollTop=u.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}_equals(u){if(!(u instanceof n))return!1;const C=u;return!(this.modelVersionId!==C.modelVersionId||this.scrollLeft!==C.scrollLeft||this.scrollTop!==C.scrollTop||!this.position&&C.position||this.position&&!C.position||this.position&&C.position&&!this.position.equals(C.position)||!this.selection&&C.selection||this.selection&&!C.selection||this.selection&&C.selection&&!this.selection.equalsRange(C.selection))}validate(u){return this._equals(new n(u,this.flags))}}class i extends s{constructor(u,C,h,v){super(u,v),this._listener=new M.Cm,C&4&&this._listener.add(u.onDidChangeCursorPosition(p=>{(!h||!F.Q.containsPosition(h,p.position))&&this.cancel()})),C&2&&this._listener.add(u.onDidChangeCursorSelection(p=>{(!h||!F.Q.containsRange(h,p.selection))&&this.cancel()})),C&8&&this._listener.add(u.onDidScrollChange(p=>this.cancel())),C&1&&(this._listener.add(u.onDidChangeModel(p=>this.cancel())),this._listener.add(u.onDidChangeModelContent(p=>this.cancel())))}dispose(){this._listener.dispose(),super.dispose()}}class c extends k.Q{constructor(u,C){super(C),this._listener=u.onDidChangeContent(()=>this.cancel())}dispose(){this._listener.dispose(),super.dispose()}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findController.js":function(pt,Me,e){e.d(Me,{z0:function(){return Ke}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editorColorRegistry.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModelSearch.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js");class m{constructor(Ae){this._editor=Ae,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){const Ae=this._findScopeDecorationIds.map(ct=>this._editor.getModel().getDecorationRange(ct)).filter(ct=>!!ct);if(Ae.length)return Ae}return null}getStartPosition(){return this._startPosition}setStartPosition(Ae){this._startPosition=Ae,this.setCurrentFindMatch(null)}_getDecorationIndex(Ae){const ct=this._decorations.indexOf(Ae);return ct>=0?ct+1:1}getDecorationRangeAt(Ae){const ct=Ae{if(this._highlightedDecorationId!==null&&(je.changeDecorationOptions(this._highlightedDecorationId,m._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),ct!==null&&(this._highlightedDecorationId=ct,je.changeDecorationOptions(this._highlightedDecorationId,m._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(je.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),ct!==null){let Rt=this._editor.getModel().getDecorationRange(ct);if(Rt.startLineNumber!==Rt.endLineNumber&&Rt.endColumn===1){const Ft=Rt.endLineNumber-1,ln=this._editor.getModel().getLineMaxColumn(Ft);Rt=new d.Q(Rt.startLineNumber,Rt.startColumn,Ft,ln)}this._rangeHighlightDecorationId=je.addDecoration(Rt,m._RANGE_HIGHLIGHT_DECORATION)}}),ut}set(Ae,ct){this._editor.changeDecorations(ut=>{let je=m._FIND_MATCH_DECORATION;const Rt=[];if(Ae.length>1e3){je=m._FIND_MATCH_NO_OVERVIEW_DECORATION;const ln=this._editor.getModel().getLineCount(),Ln=this._editor.getLayoutInfo().height/ln,En=Math.max(2,Math.ceil(3/Ln));let In=Ae[0].range.startLineNumber,ei=Ae[0].range.endLineNumber;for(let en=1,xe=Ae.length;en=st.startLineNumber?st.endLineNumber>ei&&(ei=st.endLineNumber):(Rt.push({range:new d.Q(In,1,ei,1),options:m._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),In=st.startLineNumber,ei=st.endLineNumber)}Rt.push({range:new d.Q(In,1,ei,1),options:m._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}const Ft=new Array(Ae.length);for(let ln=0,vn=Ae.length;lnut.removeDecoration(ln)),this._findScopeDecorationIds=[]),ct?.length&&(this._findScopeDecorationIds=ct.map(ln=>ut.addDecoration(ln,m._FIND_SCOPE_DECORATION)))})}matchBeforePosition(Ae){if(this._decorations.length===0)return null;for(let ct=this._decorations.length-1;ct>=0;ct--){const ut=this._decorations[ct],je=this._editor.getModel().getDecorationRange(ut);if(!(!je||je.endLineNumber>Ae.lineNumber)){if(je.endLineNumberAe.column))return je}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(Ae){if(this._decorations.length===0)return null;for(let ct=0,ut=this._decorations.length;ctAe.lineNumber)return Rt;if(!(Rt.startColumn0){const ut=[];for(let Ft=0;Ftd.Q.compareRangesUsingStarts(Ft.range,ln.range));const je=[];let Rt=ut[0];for(let Ft=1;Ft0?Ae[0].toUpperCase()+Ae.substr(1):dt[0][0].toUpperCase()!==dt[0][0]&&Ae.length>0?Ae[0].toLowerCase()+Ae.substr(1):Ae}else return Ae}function h(dt,Ae,ct){return dt[0].indexOf(ct)!==-1&&Ae.indexOf(ct)!==-1&&dt[0].split(ct).length===Ae.split(ct).length}function v(dt,Ae,ct){const ut=Ae.split(ct),je=dt[0].split(ct);let Rt="";return ut.forEach((Ft,ln)=>{Rt+=C([je[ln]],Ft)+ct}),Rt.slice(0,-1)}class p{constructor(Ae){this.staticValue=Ae,this.kind=0}}class b{constructor(Ae){this.pieces=Ae,this.kind=1}}class O{static fromStaticValue(Ae){return new O([w.staticValue(Ae)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(Ae){!Ae||Ae.length===0?this._state=new p(""):Ae.length===1&&Ae[0].staticValue!==null?this._state=new p(Ae[0].staticValue):this._state=new b(Ae)}buildReplaceString(Ae,ct){if(this._state.kind===0)return ct?C(Ae,this._state.staticValue):this._state.staticValue;let ut="";for(let je=0,Rt=this._state.pieces.length;je0){const vn=[],Ln=Ft.caseOps.length;let En=0;for(let In=0,ei=ln.length;In=Ln){vn.push(ln.slice(In));break}switch(Ft.caseOps[En]){case"U":vn.push(ln[In].toUpperCase());break;case"u":vn.push(ln[In].toUpperCase()),En++;break;case"L":vn.push(ln[In].toLowerCase());break;case"l":vn.push(ln[In].toLowerCase()),En++;break;default:vn.push(ln[In])}}ln=vn.join("")}ut+=ln}return ut}static _substitute(Ae,ct){if(ct===null)return"";if(Ae===0)return ct[0];let ut="";for(;Ae>0;){if(Ae=je)break;const Ft=dt.charCodeAt(ut);switch(Ft){case 92:ct.emitUnchanged(ut-1),ct.emitStatic("\\",ut+1);break;case 110:ct.emitUnchanged(ut-1),ct.emitStatic(` `,ut+1);break;case 116:ct.emitUnchanged(ut-1),ct.emitStatic(" ",ut+1);break;case 117:case 85:case 108:case 76:ct.emitUnchanged(ut-1),ct.emitStatic("",ut+1),Ae.push(String.fromCharCode(Ft));break}continue}if(Rt===36){if(ut++,ut>=je)break;const Ft=dt.charCodeAt(ut);if(Ft===36){ct.emitUnchanged(ut-1),ct.emitStatic("$",ut+1);continue}if(Ft===48||Ft===38){ct.emitUnchanged(ut-1),ct.emitMatchIndex(0,ut+1,Ae),Ae.length=0;continue}if(49<=Ft&&Ft<=57){let ln=Ft-48;if(ut+1this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(ut=>{(ut.reason===3||ut.reason===5||ut.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(ut=>{this._ignoreModelContentChanged||(ut.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(ut=>this._onStateChanged(ut))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,(0,F.AS)(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(Ae){this._isDisposed||this._editor.hasModel()&&(Ae.searchString||Ae.isReplaceRevealed||Ae.isRegex||Ae.wholeWord||Ae.matchCase||Ae.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{Ae.searchScope?this.research(Ae.moveCursor,this._state.searchScope):this.research(Ae.moveCursor)},Y)):Ae.searchScope?this.research(Ae.moveCursor,this._state.searchScope):this.research(Ae.moveCursor))}static _getSearchRange(Ae,ct){return ct||Ae.getFullModelRange()}research(Ae,ct){let ut=null;typeof ct<"u"?ct!==null&&(Array.isArray(ct)?ut=ct:ut=[ct]):ut=this._decorations.getFindScopes(),ut!==null&&(ut=ut.map(ln=>{if(ln.startLineNumber!==ln.endLineNumber){let vn=ln.endLineNumber;return ln.endColumn===1&&(vn=vn-1),new d.Q(ln.startLineNumber,1,vn,this._editor.getModel().getLineMaxColumn(vn))}return ln}));const je=this._findMatches(ut,!1,V);this._decorations.set(je,ut);const Rt=this._editor.getSelection();let Ft=this._decorations.getCurrentMatchesPosition(Rt);if(Ft===0&&je.length>0){const ln=(0,I.hw)(je.map(vn=>vn.range),vn=>d.Q.compareRangesUsingStarts(vn,Rt)>=0);Ft=ln>0?ln-1+1:Ft}this._state.changeMatchInfo(Ft,this._decorations.getCount(),void 0),Ae&&this._editor.getOption(41).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){const Ae=this._decorations.getFindScope();return Ae&&this._editor.revealRangeInCenterIfOutsideViewport(Ae,0),!0}return!1}_setCurrentFindMatch(Ae){const ct=this._decorations.setCurrentFindMatch(Ae);this._state.changeMatchInfo(ct,this._decorations.getCount(),Ae),this._editor.setSelection(Ae),this._editor.revealRangeInCenterIfOutsideViewport(Ae,0)}_prevSearchPosition(Ae){const ct=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:ut,column:je}=Ae;const Rt=this._editor.getModel();return ct||je===1?(ut===1?ut=Rt.getLineCount():ut--,je=Rt.getLineMaxColumn(ut)):je--,new f.y(ut,je)}_moveToPrevMatch(Ae,ct=!1){if(!this._state.canNavigateBack()){const En=this._decorations.matchAfterPosition(Ae);En&&this._setCurrentFindMatch(En);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0);let{lineNumber:ut,column:je}=Ae;const Rt=this._editor.getModel();return ct||je===Rt.getLineMaxColumn(ut)?(ut===Rt.getLineCount()?ut=1:ut++,je=1):je++,new f.y(ut,je)}_moveToNextMatch(Ae){if(!this._state.canNavigateForward()){const ut=this._decorations.matchBeforePosition(Ae);ut&&this._setCurrentFindMatch(ut);return}if(this._decorations.getCount()X._getSearchRange(this._editor.getModel(),Rt));return this._editor.getModel().findMatches(this._state.searchString,je,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,ct,ut)}replaceAll(){if(!this._hasMatches())return;const Ae=this._decorations.getFindScopes();Ae===null&&this._state.matchesCount>=V?this._largeReplaceAll():this._regularReplaceAll(Ae),this.research(!1)}_largeReplaceAll(){const ct=new s.lt(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null).parseSearchRequest();if(!ct)return;let ut=ct.regex;if(!ut.multiline){let In="mu";ut.ignoreCase&&(In+="i"),ut.global&&(In+="g"),ut=new RegExp(ut.source,In)}const je=this._editor.getModel(),Rt=je.getValue(1),Ft=je.getFullModelRange(),ln=this._getReplacePattern();let vn;const Ln=this._state.preserveCase;ln.hasReplacementPatterns||Ln?vn=Rt.replace(ut,function(){return ln.buildReplaceString(arguments,Ln)}):vn=Rt.replace(ut,ln.buildReplaceString(null,Ln));const En=new S.ui(Ft,vn,this._editor.getSelection());this._executeEditorCommand("replaceAll",En)}_regularReplaceAll(Ae){const ct=this._getReplacePattern(),ut=this._findMatches(Ae,ct.hasReplacementPatterns||this._state.preserveCase,1073741824),je=[];for(let Ft=0,ln=ut.length;FtFt.range),je);this._executeEditorCommand("replaceAll",Rt)}selectAllMatches(){if(!this._hasMatches())return;const Ae=this._decorations.getFindScopes();let ut=this._findMatches(Ae,!1,1073741824).map(Rt=>new a.L(Rt.range.startLineNumber,Rt.range.startColumn,Rt.range.endLineNumber,Rt.range.endColumn));const je=this._editor.getSelection();for(let Rt=0,Ft=ut.length;Rtthis._hide(),2e3)),this._isVisible=!1,this._editor=Ae,this._state=ct,this._keybindingService=ut,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");const je={inputActiveOptionBorder:(0,i.GuP)(i.uNK),inputActiveOptionForeground:(0,i.GuP)(i.$$0),inputActiveOptionBackground:(0,i.GuP)(i.c1f)},Rt=this._register((0,D.bW)());this.caseSensitive=this._register(new re.bc({appendTitle:this._keybindingLabelFor(B.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,hoverDelegate:Rt,...je})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new re.nV({appendTitle:this._keybindingLabelFor(B.ToggleWholeWordCommand),isChecked:this._state.wholeWord,hoverDelegate:Rt,...je})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new re.Ix({appendTitle:this._keybindingLabelFor(B.ToggleRegexCommand),isChecked:this._state.isRegex,hoverDelegate:Rt,...je})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(Ft=>{let ln=!1;Ft.isRegex&&(this.regex.checked=this._state.isRegex,ln=!0),Ft.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,ln=!0),Ft.matchCase&&(this.caseSensitive.checked=this._state.matchCase,ln=!0),!this._state.isRevealed&&ln&&this._revealTemporarily()})),this._register(ie.ko(this._domNode,ie.Bx.MOUSE_LEAVE,Ft=>this._onMouseLeave())),this._register(ie.ko(this._domNode,"mouseover",Ft=>this._onMouseOver()))}_keybindingLabelFor(Ae){const ct=this._keybindingService.lookupKeybinding(Ae);return ct?` (${ct.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return he.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}}he.ID="editor.contrib.findOptionsWidget";var ve=e("./node_modules/monaco-editor/esm/vs/base/common/event.js");function Ce(dt,Ae){return dt===1?!0:dt===2?!1:Ae}class Pe extends F.jG{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return Ce(this._isRegexOverride,this._isRegex)}get wholeWord(){return Ce(this._wholeWordOverride,this._wholeWord)}get matchCase(){return Ce(this._matchCaseOverride,this._matchCase)}get preserveCase(){return Ce(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new ve.vl),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(Ae,ct,ut){const je={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let Rt=!1;ct===0&&(Ae=0),Ae>ct&&(Ae=ct),this._matchesPosition!==Ae&&(this._matchesPosition=Ae,je.matchesPosition=!0,Rt=!0),this._matchesCount!==ct&&(this._matchesCount=ct,je.matchesCount=!0,Rt=!0),typeof ut<"u"&&(d.Q.equalsRange(this._currentMatch,ut)||(this._currentMatch=ut,je.currentMatch=!0,Rt=!0)),Rt&&this._onFindReplaceStateChange.fire(je)}change(Ae,ct,ut=!0){var je;const Rt={moveCursor:ct,updateHistory:ut,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1};let Ft=!1;const ln=this.isRegex,vn=this.wholeWord,Ln=this.matchCase,En=this.preserveCase;typeof Ae.searchString<"u"&&this._searchString!==Ae.searchString&&(this._searchString=Ae.searchString,Rt.searchString=!0,Ft=!0),typeof Ae.replaceString<"u"&&this._replaceString!==Ae.replaceString&&(this._replaceString=Ae.replaceString,Rt.replaceString=!0,Ft=!0),typeof Ae.isRevealed<"u"&&this._isRevealed!==Ae.isRevealed&&(this._isRevealed=Ae.isRevealed,Rt.isRevealed=!0,Ft=!0),typeof Ae.isReplaceRevealed<"u"&&this._isReplaceRevealed!==Ae.isReplaceRevealed&&(this._isReplaceRevealed=Ae.isReplaceRevealed,Rt.isReplaceRevealed=!0,Ft=!0),typeof Ae.isRegex<"u"&&(this._isRegex=Ae.isRegex),typeof Ae.wholeWord<"u"&&(this._wholeWord=Ae.wholeWord),typeof Ae.matchCase<"u"&&(this._matchCase=Ae.matchCase),typeof Ae.preserveCase<"u"&&(this._preserveCase=Ae.preserveCase),typeof Ae.searchScope<"u"&&(!((je=Ae.searchScope)===null||je===void 0)&&je.every(In=>{var ei;return(ei=this._searchScope)===null||ei===void 0?void 0:ei.some(en=>!d.Q.equalsRange(en,In))})||(this._searchScope=Ae.searchScope,Rt.searchScope=!0,Ft=!0)),typeof Ae.loop<"u"&&this._loop!==Ae.loop&&(this._loop=Ae.loop,Rt.loop=!0,Ft=!0),typeof Ae.isSearching<"u"&&this._isSearching!==Ae.isSearching&&(this._isSearching=Ae.isSearching,Rt.isSearching=!0,Ft=!0),typeof Ae.filters<"u"&&(this._filters?this._filters.update(Ae.filters):this._filters=Ae.filters,Rt.filters=!0,Ft=!0),this._isRegexOverride=typeof Ae.isRegexOverride<"u"?Ae.isRegexOverride:0,this._wholeWordOverride=typeof Ae.wholeWordOverride<"u"?Ae.wholeWordOverride:0,this._matchCaseOverride=typeof Ae.matchCaseOverride<"u"?Ae.matchCaseOverride:0,this._preserveCaseOverride=typeof Ae.preserveCaseOverride<"u"?Ae.preserveCaseOverride:0,ln!==this.isRegex&&(Ft=!0,Rt.isRegex=!0),vn!==this.wholeWord&&(Ft=!0,Rt.wholeWord=!0),Ln!==this.matchCase&&(Ft=!0,Rt.matchCase=!0),En!==this.preserveCase&&(Ft=!0,Rt.preserveCase=!0),Ft&&this._onFindReplaceStateChange.fire(Rt)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=V}}var _e=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),ee=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/toggle/toggle.js"),De=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash.js"),Te=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),He=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),qe=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),Qe=e("./node_modules/monaco-editor/esm/vs/nls.js"),q=e("./node_modules/monaco-editor/esm/vs/platform/history/browser/contextScopedHistoryWidget.js");function ye(dt){var Ae,ct;return((Ae=dt.lookupKeybinding("history.showPrevious"))===null||Ae===void 0?void 0:Ae.getElectronAccelerator())==="Up"&&((ct=dt.lookupKeybinding("history.showNext"))===null||ct===void 0?void 0:ct.getElectronAccelerator())==="Down"}var ge=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js"),be=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),Se=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js"),ae=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),me=e("./node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js"),fe=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js");const le=(0,ge.pU)("find-selection",Te.W.selection,Qe.kg("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),oe=(0,ge.pU)("find-collapsed",Te.W.chevronRight,Qe.kg("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),ne=(0,ge.pU)("find-expanded",Te.W.chevronDown,Qe.kg("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),de=(0,ge.pU)("find-replace",Te.W.replace,Qe.kg("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Le=(0,ge.pU)("find-replace-all",Te.W.replaceAll,Qe.kg("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),We=(0,ge.pU)("find-previous-match",Te.W.arrowUp,Qe.kg("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),we=(0,ge.pU)("find-next-match",Te.W.arrowDown,Qe.kg("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Ue=Qe.kg("label.findDialog","Find / Replace"),lt=Qe.kg("label.find","Find"),Et=Qe.kg("placeholder.find","Find"),Kt=Qe.kg("label.previousMatchButton","Previous Match"),Zt=Qe.kg("label.nextMatchButton","Next Match"),qt=Qe.kg("label.toggleSelectionFind","Find in Selection"),tt=Qe.kg("label.closeButton","Close"),Mt=Qe.kg("label.replace","Replace"),Ht=Qe.kg("placeholder.replace","Replace"),xt=Qe.kg("label.replaceButton","Replace"),Jt=Qe.kg("label.replaceAllButton","Replace All"),Nt=Qe.kg("label.toggleReplaceButton","Toggle Replace"),Be=Qe.kg("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",V),vt=Qe.kg("label.matchesLocation","{0} of {1}"),Gt=Qe.kg("label.noResults","No results"),_n=419,An=275-54;let Hn=69;const Kn=33,mi="ctrlEnterReplaceAll.windows.donotask",yi=qe.zx?256:2048;class ri{constructor(Ae){this.afterLineNumber=Ae,this.heightInPx=Kn,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}function fi(dt,Ae,ct){const ut=!!Ae.match(/\n/);if(ct&&ut&&ct.selectionStart>0){dt.stopPropagation();return}}function Mi(dt,Ae,ct){const ut=!!Ae.match(/\n/);if(ct&&ut&&ct.selectionEndthis._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(En=>this._onStateChanged(En))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(En=>{if(En.hasChanged(91)&&(this._codeEditor.getOption(91)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),En.hasChanged(145)&&this._tryUpdateWidgetWidth(),En.hasChanged(2)&&this.updateAccessibilitySupport(),En.hasChanged(41)){const In=this._codeEditor.getOption(41).loop;this._state.change({loop:In},!1);const ei=this._codeEditor.getOption(41).addExtraSpaceOnTop;ei&&!this._viewZone&&(this._viewZone=new ri(0),this._showViewZone()),!ei&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(async()=>{if(this._isVisible){const En=await this._controller.getGlobalBufferTerm();En&&En!==this._state.searchString&&(this._state.change({searchString:En},!1),this._findInput.select())}})),this._findInputFocused=A.bindTo(Ft),this._findFocusTracker=this._register(ie.w5(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=T.bindTo(Ft),this._replaceFocusTracker=this._register(ie.w5(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(41).addExtraSpaceOnTop&&(this._viewZone=new ri(0)),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(En=>{if(En.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return xi.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(Ae){if(Ae.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(Ae.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),Ae.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),Ae.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(91)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=ie.Tr(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(Ae.isRevealed||Ae.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),Ae.isRegex&&this._findInput.setRegex(this._state.isRegex),Ae.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),Ae.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),Ae.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),Ae.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),Ae.searchString||Ae.matchesCount||Ae.matchesPosition){const ct=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",ct),this._updateMatchesCount(),this._updateButtons()}(Ae.searchString||Ae.currentMatch)&&this._layoutViewZone(),Ae.updateHistory&&this._delayedUpdateHistory(),Ae.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,He.dz)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=Hn+"px",this._state.matchesCount>=V?this._matchesCount.title=Be:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let Ae;if(this._state.matchesCount>0){let ct=String(this._state.matchesCount);this._state.matchesCount>=V&&(ct+="+");let ut=String(this._state.matchesPosition);ut==="0"&&(ut="?"),Ae=k.GP(vt,ut,ct)}else Ae=Gt;this._matchesCount.appendChild(document.createTextNode(Ae)),(0,_e.xE)(this._getAriaLabel(Ae,this._state.currentMatch,this._state.searchString)),Hn=Math.max(Hn,this._matchesCount.clientWidth)}_getAriaLabel(Ae,ct,ut){if(Ae===Gt)return ut===""?Qe.kg("ariaSearchNoResultEmpty","{0} found",Ae):Qe.kg("ariaSearchNoResult","{0} found for '{1}'",Ae,ut);if(ct){const je=Qe.kg("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",Ae,ut,ct.startLineNumber+":"+ct.startColumn),Rt=this._codeEditor.getModel();return Rt&&ct.startLineNumber<=Rt.getLineCount()&&ct.startLineNumber>=1?`${Rt.getLineContent(ct.startLineNumber)}, ${je}`:je}return Qe.kg("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",Ae,ut)}_updateToggleSelectionFindButton(){const Ae=this._codeEditor.getSelection(),ct=Ae?Ae.startLineNumber!==Ae.endLineNumber||Ae.startColumn!==Ae.endColumn:!1,ut=this._toggleSelectionFind.checked;this._isVisible&&(ut||ct)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);const Ae=this._state.searchString.length>0,ct=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&Ae&&ct&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&Ae&&ct&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Ae),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Ae),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);const ut=!this._codeEditor.getOption(91);this._toggleReplaceBtn.setEnabled(this._isVisible&&ut)}_reveal(){if(this._revealTimeouts.forEach(Ae=>{clearTimeout(Ae)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;const Ae=this._codeEditor.getSelection();switch(this._codeEditor.getOption(41).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{const ut=!!Ae&&Ae.startLineNumber!==Ae.endLineNumber;this._toggleSelectionFind.checked=ut;break}default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let ct=!0;if(this._codeEditor.getOption(41).seedSearchStringFromSelection&&Ae){const ut=this._codeEditor.getDomNode();if(ut){const je=ie.BK(ut),Rt=this._codeEditor.getScrolledVisiblePosition(Ae.getStartPosition()),Ft=je.left+(Rt?Rt.left:0),ln=Rt?Rt.top:0;if(this._viewZone&&lnAe.startLineNumber&&(ct=!1);const vn=ie.cL(this._domNode).left;Ft>vn&&(ct=!1);const Ln=this._codeEditor.getScrolledVisiblePosition(Ae.getEndPosition());je.left+(Ln?Ln.left:0)>vn&&(ct=!1)}}}this._showViewZone(ct)}}_hide(Ae){this._revealTimeouts.forEach(ct=>{clearTimeout(ct)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),Ae&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(Ae){if(!this._codeEditor.getOption(41).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;const ut=this._viewZone;this._viewZoneId!==void 0||!ut||this._codeEditor.changeViewZones(je=>{ut.heightInPx=this._getHeight(),this._viewZoneId=je.addZone(ut),this._codeEditor.setScrollTop(Ae||this._codeEditor.getScrollTop()+ut.heightInPx)})}_showViewZone(Ae=!0){if(!this._isVisible||!this._codeEditor.getOption(41).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new ri(0));const ut=this._viewZone;this._codeEditor.changeViewZones(je=>{if(this._viewZoneId!==void 0){const Rt=this._getHeight();if(Rt===ut.heightInPx)return;const Ft=Rt-ut.heightInPx;ut.heightInPx=Rt,je.layoutZone(this._viewZoneId),Ae&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+Ft);return}else{let Rt=this._getHeight();if(Rt-=this._codeEditor.getOption(84).top,Rt<=0)return;ut.heightInPx=Rt,this._viewZoneId=je.addZone(ut),Ae&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+Rt)}})}_removeViewZone(){this._codeEditor.changeViewZones(Ae=>{this._viewZoneId!==void 0&&(Ae.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_tryUpdateWidgetWidth(){if(!this._isVisible||!this._domNode.isConnected)return;const Ae=this._codeEditor.getLayoutInfo();if(Ae.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");const ut=Ae.width,je=Ae.minimap.minimapWidth;let Rt=!1,Ft=!1,ln=!1;if(this._resized&&ie.Tr(this._domNode)>_n){this._domNode.style.maxWidth=`${ut-28-je-15}px`,this._replaceInput.width=ie.Tr(this._findInput.domNode);return}if(_n+28+je>=ut&&(Ft=!0),_n+28+je-Hn>=ut&&(ln=!0),_n+28+je-Hn>=ut+50&&(Rt=!0),this._domNode.classList.toggle("collapsed-find-widget",Rt),this._domNode.classList.toggle("narrow-find-widget",ln),this._domNode.classList.toggle("reduced-find-widget",Ft),!ln&&!Rt&&(this._domNode.style.maxWidth=`${ut-28-je-15}px`),this._findInput.layout({collapsedFindWidget:Rt,narrowFindWidget:ln,reducedFindWidget:Ft}),this._resized){const vn=this._findInput.inputBox.element.clientWidth;vn>0&&(this._replaceInput.width=vn)}else this._isReplaceVisible&&(this._replaceInput.width=ie.Tr(this._findInput.domNode))}_getHeight(){let Ae=0;return Ae+=4,Ae+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(Ae+=4,Ae+=this._replaceInput.inputBox.height+2),Ae+=4,Ae}_tryUpdateHeight(){const Ae=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===Ae?!1:(this._cachedHeight=Ae,this._domNode.style.height=`${Ae}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){const Ae=this._codeEditor.getSelections();Ae.map(ct=>{ct.endColumn===1&&ct.endLineNumber>ct.startLineNumber&&(ct=ct.setEndPosition(ct.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(ct.endLineNumber-1)));const ut=this._state.currentMatch;return ct.startLineNumber!==ct.endLineNumber&&!d.Q.equalsRange(ct,ut)?ct:null}).filter(ct=>!!ct),Ae.length&&this._state.change({searchScope:Ae},!0)}}_onFindInputMouseDown(Ae){Ae.middleButton&&Ae.stopPropagation()}_onFindInputKeyDown(Ae){if(Ae.equals(yi|3))if(this._keybindingService.dispatchEvent(Ae,Ae.target)){Ae.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` `),Ae.preventDefault();return}if(Ae.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),Ae.preventDefault();return}if(Ae.equals(2066)){this._codeEditor.focus(),Ae.preventDefault();return}if(Ae.equals(16))return fi(Ae,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(Ae.equals(18))return Mi(Ae,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(Ae){if(Ae.equals(yi|3))if(this._keybindingService.dispatchEvent(Ae,Ae.target)){Ae.preventDefault();return}else{qe.uF&&qe.ib&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(Qe.kg("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(mi,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(` `),Ae.preventDefault();return}if(Ae.equals(2)){this._findInput.focusOnCaseSensitive(),Ae.preventDefault();return}if(Ae.equals(1026)){this._findInput.focus(),Ae.preventDefault();return}if(Ae.equals(2066)){this._codeEditor.focus(),Ae.preventDefault();return}if(Ae.equals(16))return fi(Ae,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(Ae.equals(18))return Mi(Ae,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(Ae){return 0}_keybindingLabelFor(Ae){const ct=this._keybindingService.lookupKeybinding(Ae);return ct?` (${ct.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new q.pG(null,this._contextViewProvider,{width:An,label:lt,placeholder:Et,appendCaseSensitiveLabel:this._keybindingLabelFor(B.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(B.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(B.ToggleRegexCommand),validation:En=>{if(En.length===0||!this._findInput.getRegex())return null;try{return new RegExp(En,"gu"),null}catch(In){return{content:In.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>ye(this._keybindingService),inputBoxStyles:me.ho,toggleStyles:me.mk},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(En=>this._onFindInputKeyDown(En))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(En=>{En.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),En.preventDefault())})),this._register(this._findInput.onRegexKeyDown(En=>{En.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),En.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(En=>{this._tryUpdateHeight()&&this._showViewZone()})),qe.j9&&this._register(this._findInput.onMouseDown(En=>this._onFindInputMouseDown(En))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount();const ut=this._register((0,D.bW)());this._prevBtn=this._register(new ci({label:Kt+this._keybindingLabelFor(B.PreviousMatchFindAction),icon:We,hoverDelegate:ut,onTrigger:()=>{(0,ae.eU)(this._codeEditor.getAction(B.PreviousMatchFindAction)).run().then(void 0,He.dz)}})),this._nextBtn=this._register(new ci({label:Zt+this._keybindingLabelFor(B.NextMatchFindAction),icon:we,hoverDelegate:ut,onTrigger:()=>{(0,ae.eU)(this._codeEditor.getAction(B.NextMatchFindAction)).run().then(void 0,He.dz)}}));const je=document.createElement("div");je.className="find-part",je.appendChild(this._findInput.domNode);const Rt=document.createElement("div");Rt.className="find-actions",je.appendChild(Rt),Rt.appendChild(this._matchesCount),Rt.appendChild(this._prevBtn.domNode),Rt.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ee.l({icon:le,title:qt+this._keybindingLabelFor(B.ToggleSearchScopeCommand),isChecked:!1,hoverDelegate:ut,inputActiveOptionBackground:(0,i.GuP)(i.c1f),inputActiveOptionBorder:(0,i.GuP)(i.uNK),inputActiveOptionForeground:(0,i.GuP)(i.$$0)})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let En=this._codeEditor.getSelections();En=En.map(In=>(In.endColumn===1&&In.endLineNumber>In.startLineNumber&&(In=In.setEndPosition(In.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(In.endLineNumber-1))),In.isEmpty()?null:In)).filter(In=>!!In),En.length&&this._state.change({searchScope:En},!0)}}else this._state.change({searchScope:null},!0)})),Rt.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new ci({label:tt+this._keybindingLabelFor(B.CloseFindWidgetCommand),icon:ge.$_,hoverDelegate:ut,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:En=>{En.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),En.preventDefault())}})),this._replaceInput=this._register(new q._Q(null,void 0,{label:Mt,placeholder:Ht,appendPreserveCaseLabel:this._keybindingLabelFor(B.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>ye(this._keybindingService),inputBoxStyles:me.ho,toggleStyles:me.mk},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(En=>this._onReplaceInputKeyDown(En))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(En=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(En=>{En.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),En.preventDefault())}));const Ft=this._register((0,D.bW)());this._replaceBtn=this._register(new ci({label:xt+this._keybindingLabelFor(B.ReplaceOneAction),icon:de,hoverDelegate:Ft,onTrigger:()=>{this._controller.replace()},onKeyDown:En=>{En.equals(1026)&&(this._closeBtn.focus(),En.preventDefault())}})),this._replaceAllBtn=this._register(new ci({label:Jt+this._keybindingLabelFor(B.ReplaceAllAction),icon:Le,hoverDelegate:Ft,onTrigger:()=>{this._controller.replaceAll()}}));const ln=document.createElement("div");ln.className="replace-part",ln.appendChild(this._replaceInput.domNode);const vn=document.createElement("div");vn.className="replace-actions",ln.appendChild(vn),vn.appendChild(this._replaceBtn.domNode),vn.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new ci({label:Nt,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=ie.Tr(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Ue,this._domNode.role="dialog",this._domNode.style.width=`${_n}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(je),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(ln),this._resizeSash=this._register(new De.m(this._domNode,this,{orientation:0,size:2})),this._resized=!1;let Ln=_n;this._register(this._resizeSash.onDidStart(()=>{Ln=ie.Tr(this._domNode)})),this._register(this._resizeSash.onDidChange(En=>{this._resized=!0;const In=Ln+En.startX-En.currentX;if(In<_n)return;const ei=parseFloat(ie.L9(this._domNode).maxWidth)||0;In>ei||(this._domNode.style.width=`${In}px`,this._isReplaceVisible&&(this._replaceInput.width=ie.Tr(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{const En=ie.Tr(this._domNode);if(En<_n)return;let In=_n;if(!this._resized||En===_n){const ei=this._codeEditor.getLayoutInfo();In=ei.width-28-ei.minimap.minimapWidth-15,this._resized=!0}this._domNode.style.width=`${In}px`,this._isReplaceVisible&&(this._replaceInput.width=ie.Tr(this._findInput.domNode)),this._findInput.inputBox.layout()}))}updateAccessibilitySupport(){const Ae=this._codeEditor.getOption(2);this._findInput.setFocusInputOnOptionClick(Ae!==2)}}xi.ID="editor.contrib.findWidget";class ci extends te.x{constructor(Ae){var ct;super(),this._opts=Ae;let ut="button";this._opts.className&&(ut=ut+" "+this._opts.className),this._opts.icon&&(ut=ut+" "+be.L.asClassName(this._opts.icon)),this._domNode=document.createElement("div"),this._domNode.tabIndex=0,this._domNode.className=ut,this._domNode.setAttribute("role","button"),this._domNode.setAttribute("aria-label",this._opts.label),this._register((0,fe.f)((ct=Ae.hoverDelegate)!==null&&ct!==void 0?ct:(0,D.nZ)("element"),this._domNode,this._opts.label)),this.onclick(this._domNode,je=>{this._opts.onTrigger(),je.preventDefault()}),this.onkeydown(this._domNode,je=>{var Rt,Ft;if(je.equals(10)||je.equals(3)){this._opts.onTrigger(),je.preventDefault();return}(Ft=(Rt=this._opts).onKeyDown)===null||Ft===void 0||Ft.call(Rt,je)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(Ae){this._domNode.classList.toggle("disabled",!Ae),this._domNode.setAttribute("aria-disabled",String(!Ae)),this._domNode.tabIndex=Ae?0:-1}setExpanded(Ae){this._domNode.setAttribute("aria-expanded",String(!!Ae)),Ae?(this._domNode.classList.remove(...be.L.asClassNameArray(oe)),this._domNode.classList.add(...be.L.asClassNameArray(ne))):(this._domNode.classList.remove(...be.L.asClassNameArray(ne)),this._domNode.classList.add(...be.L.asClassNameArray(oe)))}}(0,c.zy)((dt,Ae)=>{const ct=dt.getColor(i.ECk);ct&&Ae.addRule(`.monaco-editor .findMatch { border: 1px ${(0,Se.Bb)(dt.type)?"dotted":"solid"} ${ct}; box-sizing: border-box; }`);const ut=dt.getColor(i.S5J);ut&&Ae.addRule(`.monaco-editor .findScope { border: 1px ${(0,Se.Bb)(dt.type)?"dashed":"solid"} ${ut}; }`);const je=dt.getColor(i.b1q);je&&Ae.addRule(`.monaco-editor .find-widget { border: 1px solid ${je}; }`)});var Ii=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),Si=e("./node_modules/monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js"),Ti=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),Nn=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),Vn=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),Yn=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"),Di=e("./node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js"),Ai=function(dt,Ae,ct,ut){var je=arguments.length,Rt=je<3?Ae:ut===null?ut=Object.getOwnPropertyDescriptor(Ae,ct):ut,Ft;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Rt=Reflect.decorate(dt,Ae,ct,ut);else for(var ln=dt.length-1;ln>=0;ln--)(Ft=dt[ln])&&(Rt=(je<3?Ft(Rt):je>3?Ft(Ae,ct,Rt):Ft(Ae,ct))||Rt);return je>3&&Rt&&Object.defineProperty(Ae,ct,Rt),Rt},Sn=function(dt,Ae){return function(ct,ut){Ae(ct,ut,dt)}},Ye;const mt=524288;function ze(dt,Ae="single",ct=!1){if(!dt.hasModel())return null;const ut=dt.getSelection();if(Ae==="single"&&ut.startLineNumber===ut.endLineNumber||Ae==="multiple"){if(ut.isEmpty()){const je=dt.getConfiguredWordAtPosition(ut.getStartPosition());if(je&&ct===!1)return je.word}else if(dt.getModel().getValueLengthInRange(ut)this._onStateChanged(Ft))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{const Ft=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),Ft&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(41).loop})}))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(Ae){this.saveQueryState(Ae),Ae.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),Ae.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(Ae){Ae.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),Ae.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),Ae.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),Ae.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!A.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let Ae=this._editor.getSelections();Ae=Ae.map(ct=>(ct.endColumn===1&&ct.endLineNumber>ct.startLineNumber&&(ct=ct.setEndPosition(ct.endLineNumber-1,this._editor.getModel().getLineMaxColumn(ct.endLineNumber-1))),ct.isEmpty()?null:ct)).filter(ct=>!!ct),Ae.length&&this._state.change({searchScope:Ae},!0)}}setSearchString(Ae){this._state.isRegex&&(Ae=k.bm(Ae)),this._state.change({searchString:Ae},!1)}highlightFindOptions(Ae=!1){}async _start(Ae,ct){if(this.disposeModel(),!this._editor.hasModel())return;const ut={...ct,isRevealed:!0};if(Ae.seedSearchStringFromSelection==="single"){const je=ze(this._editor,Ae.seedSearchStringFromSelection,Ae.seedSearchStringFromNonEmptySelection);je&&(this._state.isRegex?ut.searchString=k.bm(je):ut.searchString=je)}else if(Ae.seedSearchStringFromSelection==="multiple"&&!Ae.updateSearchScope){const je=ze(this._editor,Ae.seedSearchStringFromSelection);je&&(ut.searchString=je)}if(!ut.searchString&&Ae.seedSearchStringFromGlobalClipboard){const je=await this.getGlobalBufferTerm();if(!this._editor.hasModel())return;je&&(ut.searchString=je)}if(Ae.forceRevealReplace||ut.isReplaceRevealed?ut.isReplaceRevealed=!0:this._findWidgetVisible.get()||(ut.isReplaceRevealed=!1),Ae.updateSearchScope){const je=this._editor.getSelections();je.some(Rt=>!Rt.isEmpty())&&(ut.searchScope=je)}ut.loop=Ae.loop,this._state.change(ut,!1),this._model||(this._model=new X(this._editor,this._state))}start(Ae,ct){return this._start(Ae,ct)}moveToNextMatch(){return this._model?(this._model.moveToNextMatch(),!0):!1}moveToPrevMatch(){return this._model?(this._model.moveToPrevMatch(),!0):!1}goToMatch(Ae){return this._model?(this._model.moveToMatch(Ae),!0):!1}replace(){return this._model?(this._model.replace(),!0):!1}replaceAll(){var Ae;return this._model?!((Ae=this._editor.getModel())===null||Ae===void 0)&&Ae.isTooLargeForHeapOperation()?(this._notificationService.warn(Qe.kg("too.large.for.replaceall","The file is too large to perform a replace all operation.")),!1):(this._model.replaceAll(),!0):!1}selectAllMatches(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1}async getGlobalBufferTerm(){return this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""}setGlobalBufferTerm(Ae){this._editor.getOption(41).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(Ae)}};Ke.ID="editor.contrib.findController",Ke=Ye=Ai([Sn(1,K.fN),Sn(2,Di.CS),Sn(3,Si.h),Sn(4,Vn.Ot)],Ke);let Je=class extends Ke{constructor(Ae,ct,ut,je,Rt,Ft,ln,vn){super(Ae,ut,ln,vn,Ft),this._contextViewService=ct,this._keybindingService=je,this._themeService=Rt,this._widget=null,this._findOptionsWidget=null}async _start(Ae,ct){this._widget||this._createFindWidget();const ut=this._editor.getSelection();let je=!1;switch(this._editor.getOption(41).autoFindInSelection){case"always":je=!0;break;case"never":je=!1;break;case"multiline":{je=!!ut&&ut.startLineNumber!==ut.endLineNumber;break}default:break}Ae.updateSearchScope=Ae.updateSearchScope||je,await super._start(Ae,ct),this._widget&&(Ae.shouldFocus===2?this._widget.focusReplaceInput():Ae.shouldFocus===1&&this._widget.focusFindInput())}highlightFindOptions(Ae=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!Ae?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new xi(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new he(this._editor,this._state,this._keybindingService))}};Je=Ai([Sn(1,Ti.l),Sn(2,K.fN),Sn(3,Nn.b),Sn(4,c.Gy),Sn(5,Vn.Ot),Sn(6,Di.CS),Sn(7,Si.h)],Je),(0,M.gW)(new M.PF({id:B.StartFindAction,label:Qe.kg("startFindAction","Find"),alias:"Find",precondition:K.M$.or(g.R.focus,K.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:Ii.D8.MenubarEditMenu,group:"3_find",title:Qe.kg({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})).addImplementation(0,(dt,Ae,ct)=>{const ut=Ke.get(Ae);return ut?ut.start({forceRevealReplace:!1,seedSearchStringFromSelection:Ae.getOption(41).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:Ae.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:Ae.getOption(41).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:Ae.getOption(41).loop}):!1});const ft={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},isRegex:{type:"boolean"},matchWholeWord:{type:"boolean"},isCaseSensitive:{type:"boolean"},preserveCase:{type:"boolean"},findInSelection:{type:"boolean"}}}}]};class St extends M.ks{constructor(){super({id:B.StartFindWithArgs,label:Qe.kg("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},metadata:ft})}async run(Ae,ct,ut){const je=Ke.get(ct);if(je){const Rt=ut?{searchString:ut.searchString,replaceString:ut.replaceString,isReplaceRevealed:ut.replaceString!==void 0,isRegex:ut.isRegex,wholeWord:ut.matchWholeWord,matchCase:ut.isCaseSensitive,preserveCase:ut.preserveCase}:{};await je.start({forceRevealReplace:!1,seedSearchStringFromSelection:je.getState().searchString.length===0&&ct.getOption(41).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:ct.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:ut?.findInSelection||!1,loop:ct.getOption(41).loop},Rt),je.setGlobalBufferTerm(je.getState().searchString)}}}class rt extends M.ks{constructor(){super({id:B.StartFindWithSelection,label:Qe.kg("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}async run(Ae,ct){const ut=Ke.get(ct);ut&&(await ut.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:ct.getOption(41).loop}),ut.setGlobalBufferTerm(ut.getState().searchString))}}class Ge extends M.ks{async run(Ae,ct){const ut=Ke.get(ct);ut&&!this._run(ut)&&(await ut.start({forceRevealReplace:!1,seedSearchStringFromSelection:ut.getState().searchString.length===0&&ct.getOption(41).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:ct.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:ct.getOption(41).loop}),this._run(ut))}}class nt extends Ge{constructor(){super({id:B.NextMatchFindAction,label:Qe.kg("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:g.R.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:K.M$.and(g.R.focus,A),primary:3,weight:100}]})}_run(Ae){return Ae.moveToNextMatch()?(Ae.editor.pushUndoStop(),!0):!1}}class it extends Ge{constructor(){super({id:B.PreviousMatchFindAction,label:Qe.kg("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:g.R.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:K.M$.and(g.R.focus,A),primary:1027,weight:100}]})}_run(Ae){return Ae.moveToPrevMatch()}}class bt extends M.ks{constructor(){super({id:B.GoToMatchFindAction,label:Qe.kg("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:G}),this._highlightDecorations=[]}run(Ae,ct,ut){const je=Ke.get(ct);if(!je)return;const Rt=je.getState().matchesCount;if(Rt<1){Ae.get(Vn.Ot).notify({severity:Vn.AI.Warning,message:Qe.kg("findMatchAction.noResults","No matches. Try searching for something else.")});return}const ln=Ae.get(Yn.GK).createInputBox();ln.placeholder=Qe.kg("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",Rt);const vn=En=>{const In=parseInt(En);if(isNaN(In))return;const ei=je.getState().matchesCount;if(In>0&&In<=ei)return In-1;if(In<0&&In>=-ei)return ei+In},Ln=En=>{const In=vn(En);if(typeof In=="number"){ln.validationMessage=void 0,je.goToMatch(In);const ei=je.getState().currentMatch;ei&&this.addDecorations(ct,ei)}else ln.validationMessage=Qe.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",je.getState().matchesCount),this.clearDecorations(ct)};ln.onDidChangeValue(En=>{Ln(En)}),ln.onDidAccept(()=>{const En=vn(ln.value);typeof En=="number"?(je.goToMatch(En),ln.hide()):ln.validationMessage=Qe.kg("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",je.getState().matchesCount)}),ln.onDidHide(()=>{this.clearDecorations(ct),ln.dispose()}),ln.show()}clearDecorations(Ae){Ae.changeDecorations(ct=>{this._highlightDecorations=ct.deltaDecorations(this._highlightDecorations,[])})}addDecorations(Ae,ct){Ae.changeDecorations(ut=>{this._highlightDecorations=ut.deltaDecorations(this._highlightDecorations,[{range:ct,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:ct,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:(0,c.Yf)(L.vp),position:x.A5.Full}}}])})}}class Dt extends M.ks{async run(Ae,ct){const ut=Ke.get(ct);if(!ut)return;const je=ze(ct,"single",!1);je&&ut.setSearchString(je),this._run(ut)||(await ut.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:ct.getOption(41).loop}),this._run(ut))}}class At extends Dt{constructor(){super({id:B.NextSelectionMatchFindAction,label:Qe.kg("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:g.R.focus,primary:2109,weight:100}})}_run(Ae){return Ae.moveToNextMatch()}}class et extends Dt{constructor(){super({id:B.PreviousSelectionMatchFindAction,label:Qe.kg("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:g.R.focus,primary:3133,weight:100}})}_run(Ae){return Ae.moveToPrevMatch()}}(0,M.gW)(new M.PF({id:B.StartFindReplaceAction,label:Qe.kg("startReplace","Replace"),alias:"Replace",precondition:K.M$.or(g.R.focus,K.M$.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:Ii.D8.MenubarEditMenu,group:"3_find",title:Qe.kg({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})).addImplementation(0,(dt,Ae,ct)=>{if(!Ae.hasModel()||Ae.getOption(91))return!1;const ut=Ke.get(Ae);if(!ut)return!1;const je=Ae.getSelection(),Rt=ut.isFindInputFocused(),Ft=!je.isEmpty()&&je.startLineNumber===je.endLineNumber&&Ae.getOption(41).seedSearchStringFromSelection!=="never"&&!Rt,ln=Rt||Ft?2:1;return ut.start({forceRevealReplace:!0,seedSearchStringFromSelection:Ft?"single":"none",seedSearchStringFromNonEmptySelection:Ae.getOption(41).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:Ae.getOption(41).seedSearchStringFromSelection!=="never",shouldFocus:ln,shouldAnimate:!0,updateSearchScope:!1,loop:Ae.getOption(41).loop})}),(0,M.HW)(Ke.ID,Je,0),(0,M.Fl)(St),(0,M.Fl)(rt),(0,M.Fl)(nt),(0,M.Fl)(it),(0,M.Fl)(bt),(0,M.Fl)(At),(0,M.Fl)(et);const Tt=M.DX.bindToContribution(Ke.get);(0,M.E_)(new Tt({id:B.CloseFindWidgetCommand,precondition:G,handler:dt=>dt.closeFindWidget(),kbOpts:{weight:105,kbExpr:K.M$.and(g.R.focus,K.M$.not("isComposing")),primary:9,secondary:[1033]}})),(0,M.E_)(new Tt({id:B.ToggleCaseSensitiveCommand,precondition:void 0,handler:dt=>dt.toggleCaseSensitive(),kbOpts:{weight:105,kbExpr:g.R.focus,primary:E.primary,mac:E.mac,win:E.win,linux:E.linux}})),(0,M.E_)(new Tt({id:B.ToggleWholeWordCommand,precondition:void 0,handler:dt=>dt.toggleWholeWords(),kbOpts:{weight:105,kbExpr:g.R.focus,primary:W.primary,mac:W.mac,win:W.win,linux:W.linux}})),(0,M.E_)(new Tt({id:B.ToggleRegexCommand,precondition:void 0,handler:dt=>dt.toggleRegex(),kbOpts:{weight:105,kbExpr:g.R.focus,primary:$.primary,mac:$.mac,win:$.win,linux:$.linux}})),(0,M.E_)(new Tt({id:B.ToggleSearchScopeCommand,precondition:void 0,handler:dt=>dt.toggleSearchScope(),kbOpts:{weight:105,kbExpr:g.R.focus,primary:z.primary,mac:z.mac,win:z.win,linux:z.linux}})),(0,M.E_)(new Tt({id:B.TogglePreserveCaseCommand,precondition:void 0,handler:dt=>dt.togglePreserveCase(),kbOpts:{weight:105,kbExpr:g.R.focus,primary:J.primary,mac:J.mac,win:J.win,linux:J.linux}})),(0,M.E_)(new Tt({id:B.ReplaceOneAction,precondition:G,handler:dt=>dt.replace(),kbOpts:{weight:105,kbExpr:g.R.focus,primary:3094}})),(0,M.E_)(new Tt({id:B.ReplaceOneAction,precondition:G,handler:dt=>dt.replace(),kbOpts:{weight:105,kbExpr:K.M$.and(g.R.focus,T),primary:3}})),(0,M.E_)(new Tt({id:B.ReplaceAllAction,precondition:G,handler:dt=>dt.replaceAll(),kbOpts:{weight:105,kbExpr:g.R.focus,primary:2563}})),(0,M.E_)(new Tt({id:B.ReplaceAllAction,precondition:G,handler:dt=>dt.replaceAll(),kbOpts:{weight:105,kbExpr:K.M$.and(g.R.focus,T),primary:void 0,mac:{primary:2051}}})),(0,M.E_)(new Tt({id:B.SelectAllMatchesAction,precondition:G,handler:dt=>dt.selectAllMatches(),kbOpts:{weight:105,kbExpr:g.R.focus,primary:515}}))},"./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/folding.js":function(pt,Me,e){e.d(Me,{W:function(){return V},B:function(){return Y}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/browser/stableEditorScroll.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingModel.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),i=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/common/core/eolCounter.js");class u{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(ae){this._updateEventEmitter=new i.vl,this._hasLineChanges=!1,this._foldingModel=ae,this._foldingModelListener=ae.onDidChange(me=>this.updateHiddenRanges()),this._hiddenRanges=[],ae.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(ae){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=ae.changes.some(me=>me.range.endLineNumber!==me.range.startLineNumber||(0,m.W)(me.text)[0]!==0))}updateHiddenRanges(){let ae=!1;const me=[];let fe=0,le=0,oe=Number.MAX_VALUE,ne=-1;const de=this._foldingModel.regions;for(;fe0}isHidden(ae){return h(this._hiddenRanges,ae)!==null}adjustSelections(ae){let me=!1;const fe=this._foldingModel.textModel;let le=null;const oe=ne=>((!le||!C(ne,le))&&(le=h(this._hiddenRanges,ne)),le?le.startLineNumber-1:null);for(let ne=0,de=ae.length;ne0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}function C(Se,ae){return Se>=ae.startLineNumber&&Se<=ae.endLineNumber}function h(Se,ae){const me=(0,n.hw)(Se,fe=>ae=0&&Se[me].endLineNumber>=ae?Se[me]:null}var v=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/indentRangeProvider.js"),p=e("./node_modules/monaco-editor/esm/vs/nls.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingDecorations.js"),w=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingRanges.js"),j=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/syntaxRangeProvider.js"),U=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),K=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"),G=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),P=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),A=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),T=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),E=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),W=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),$=function(Se,ae,me,fe){var le=arguments.length,oe=le<3?ae:fe===null?fe=Object.getOwnPropertyDescriptor(ae,me):fe,ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(Se,ae,me,fe);else for(var de=Se.length-1;de>=0;de--)(ne=Se[de])&&(oe=(le<3?ne(oe):le>3?ne(ae,me,oe):ne(ae,me))||oe);return le>3&&oe&&Object.defineProperty(ae,me,oe),oe},z=function(Se,ae){return function(me,fe){ae(me,fe,Se)}},J;const B=new b.N1("foldingEnabled",!1);let V=J=class extends L.jG{static get(ae){return ae.getContribution(J.ID)}static getFoldingRangeProviders(ae,me){var fe,le;const oe=ae.foldingRangeProvider.ordered(me);return(le=(fe=J._foldingRangeSelector)===null||fe===void 0?void 0:fe.call(J,oe,me))!==null&&le!==void 0?le:oe}constructor(ae,me,fe,le,oe,ne){super(),this.contextKeyService=me,this.languageConfigurationService=fe,this.languageFeaturesService=ne,this.localToDispose=this._register(new L.Cm),this.editor=ae,this._foldingLimitReporter=new Y(ae);const de=this.editor.getOptions();this._isEnabled=de.get(43),this._useFoldingProviders=de.get(44)!=="indentation",this._unfoldOnClickAfterEndOfLine=de.get(48),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=de.get(46),this.updateDebounceInfo=oe.for(ne.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new O.rv(ae),this.foldingDecorationProvider.showFoldingControls=de.get(110),this.foldingDecorationProvider.showFoldingHighlights=de.get(45),this.foldingEnabled=B.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(Le=>{if(Le.hasChanged(43)&&(this._isEnabled=this.editor.getOptions().get(43),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),Le.hasChanged(47)&&this.onModelChanged(),Le.hasChanged(110)||Le.hasChanged(45)){const We=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=We.get(110),this.foldingDecorationProvider.showFoldingHighlights=We.get(45),this.triggerFoldingModelChanged()}Le.hasChanged(44)&&(this._useFoldingProviders=this.editor.getOptions().get(44)!=="indentation",this.onFoldingStrategyChanged()),Le.hasChanged(48)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(48)),Le.hasChanged(46)&&(this._foldingImportsByDefault=this.editor.getOptions().get(46))})),this.onModelChanged()}saveViewState(){const ae=this.editor.getModel();if(!ae||!this._isEnabled||ae.isTooLargeForTokenization())return{};if(this.foldingModel){const me=this.foldingModel.getMemento(),fe=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:me,lineCount:ae.getLineCount(),provider:fe,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(ae){const me=this.editor.getModel();if(!(!me||!this._isEnabled||me.isTooLargeForTokenization()||!this.hiddenRangeModel)&&ae&&(this._currentModelHasFoldedImports=!!ae.foldedImports,ae.collapsedRegions&&ae.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(ae.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();const ae=this.editor.getModel();!this._isEnabled||!ae||ae.isTooLargeForTokenization()||(this._currentModelHasFoldedImports=!1,this.foldingModel=new s.pN(ae,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new u(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(me=>this.onHiddenRangesChanges(me))),this.updateScheduler=new r.ve(this.updateDebounceInfo.get(ae)),this.cursorChangedScheduler=new r.uC(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(me=>this.onDidChangeModelContent(me))),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(me=>this.onEditorMouseDown(me))),this.localToDispose.add(this.editor.onMouseUp(me=>this.onEditorMouseUp(me))),this.localToDispose.add({dispose:()=>{var me,fe;this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),(me=this.updateScheduler)===null||me===void 0||me.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,(fe=this.rangeProvider)===null||fe===void 0||fe.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){var ae;(ae=this.rangeProvider)===null||ae===void 0||ae.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(ae){if(this.rangeProvider)return this.rangeProvider;const me=new v.hW(ae,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=me,this._useFoldingProviders&&this.foldingModel){const fe=J.getFoldingRangeProviders(this.languageFeaturesService,ae);fe.length>0&&(this.rangeProvider=new j.M(ae,fe,()=>this.triggerFoldingModelChanged(),this._foldingLimitReporter,me))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(ae){var me;(me=this.hiddenRangeModel)===null||me===void 0||me.notifyChangeModelContent(ae),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{const ae=this.foldingModel;if(!ae)return null;const me=new G.W,fe=this.getRangeProvider(ae.textModel),le=this.foldingRegionPromise=(0,r.SS)(oe=>fe.compute(oe));return le.then(oe=>{if(oe&&le===this.foldingRegionPromise){let ne;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){const we=oe.setCollapsedAllOfType(d.lO.Imports.value,!0);we&&(ne=I.D.capture(this.editor),this._currentModelHasFoldedImports=we)}const de=this.editor.getSelections(),Le=de?de.map(we=>we.startLineNumber):[];ae.update(oe,Le),ne?.restore(this.editor);const We=this.updateDebounceInfo.update(ae.textModel,me.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=We)}return ae})}).then(void 0,ae=>((0,k.dz)(ae),null)))}onHiddenRangesChanges(ae){if(this.hiddenRangeModel&&ae.length&&!this._restoringViewState){const me=this.editor.getSelections();me&&this.hiddenRangeModel.adjustSelections(me)&&this.editor.setSelections(me)}this.editor.setHiddenAreas(ae,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){const ae=this.getFoldingModel();ae&&ae.then(me=>{if(me){const fe=this.editor.getSelections();if(fe&&fe.length>0){const le=[];for(const oe of fe){const ne=oe.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(ne)&&le.push(...me.getAllRegionsAtLine(ne,de=>de.isCollapsed&&ne>de.startLineNumber))}le.length&&(me.toggleCollapseState(le),this.reveal(fe[0].getPosition()))}}}).then(void 0,k.dz)}onEditorMouseDown(ae){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!ae.target||!ae.target.range||!ae.event.leftButton&&!ae.event.middleButton)return;const me=ae.target.range;let fe=!1;switch(ae.target.type){case 4:{const le=ae.target.detail,oe=ae.target.element.offsetLeft;if(le.offsetX-oe<4)return;fe=!0;break}case 7:{if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!ae.target.detail.isAfterLines)break;return}case 6:{if(this.hiddenRangeModel.hasRanges()){const le=this.editor.getModel();if(le&&me.startColumn===le.getLineMaxColumn(me.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:me.startLineNumber,iconClicked:fe}}onEditorMouseUp(ae){const me=this.foldingModel;if(!me||!this.mouseDownInfo||!ae.target)return;const fe=this.mouseDownInfo.lineNumber,le=this.mouseDownInfo.iconClicked,oe=ae.target.range;if(!oe||oe.startLineNumber!==fe)return;if(le){if(ae.target.type!==4)return}else{const de=this.editor.getModel();if(!de||oe.startColumn!==de.getLineMaxColumn(fe))return}const ne=me.getRegionAtLine(fe);if(ne&&ne.startLineNumber===fe){const de=ne.isCollapsed;if(le||de){const Le=ae.event.altKey;let We=[];if(Le){const we=lt=>!lt.containedBy(ne)&&!ne.containedBy(lt),Ue=me.getRegionsInside(null,we);for(const lt of Ue)lt.isCollapsed&&We.push(lt);We.length===0&&(We=Ue)}else{const we=ae.event.middleButton||ae.event.shiftKey;if(we)for(const Ue of me.getRegionsInside(ne))Ue.isCollapsed===de&&We.push(Ue);(de||!we||We.length===0)&&We.push(ne)}me.toggleCollapseState(We),this.reveal({lineNumber:fe,column:1})}}}reveal(ae){this.editor.revealPositionInCenterIfOutsideViewport(ae,0)}};V.ID="editor.contrib.folding",V=J=$([z(1,b.fN),z(2,a.JZ),z(3,U.Ot),z(4,K.U),z(5,P.u)],V);class Y{constructor(ae){this.editor=ae,this._onDidChange=new i.vl,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(47)}update(ae,me){(ae!==this._computed||me!==this._limited)&&(this._computed=ae,this._limited=me,this._onDidChange.fire())}}class X extends S.ks{runEditorCommand(ae,me,fe){const le=ae.get(a.JZ),oe=V.get(me);if(!oe)return;const ne=oe.getFoldingModel();if(ne)return this.reportTelemetry(ae,me),ne.then(de=>{if(de){this.invoke(oe,de,me,fe,le);const Le=me.getSelection();Le&&oe.reveal(Le.getStartPosition())}})}getSelectedLines(ae){const me=ae.getSelections();return me?me.map(fe=>fe.startLineNumber):[]}getLineNumbers(ae,me){return ae&&ae.selectionLines?ae.selectionLines.map(fe=>fe+1):this.getSelectedLines(me)}run(ae,me){}}function ie(Se){if(!x.b0(Se)){if(!x.Gv(Se))return!1;const ae=Se;if(!x.b0(ae.levels)&&!x.Et(ae.levels)||!x.b0(ae.direction)&&!x.Kg(ae.direction)||!x.b0(ae.selectionLines)&&(!Array.isArray(ae.selectionLines)||!ae.selectionLines.every(x.Et)))return!1}return!0}class re extends X{constructor(){super({id:"editor.unfold",label:p.kg("unfoldAction.label","Unfold"),alias:"Unfold",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},metadata:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument: * 'levels': Number of levels to unfold. If not set, defaults to 1. * 'direction': If 'up', unfold given number of levels up otherwise unfolds down. * 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used. `,constraint:ie,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(ae,me,fe,le){const oe=le&&le.levels||1,ne=this.getLineNumbers(le,fe);le&&le.direction==="up"?(0,s.dN)(me,!1,oe,ne):(0,s.uV)(me,!1,oe,ne)}}class te extends X{constructor(){super({id:"editor.unfoldRecursively",label:p.kg("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2142),weight:100}})}invoke(ae,me,fe,le){(0,s.uV)(me,!1,Number.MAX_VALUE,this.getSelectedLines(fe))}}class D extends X{constructor(){super({id:"editor.fold",label:p.kg("foldAction.label","Fold"),alias:"Fold",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},metadata:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument: * 'levels': Number of levels to fold. * 'direction': If 'up', folds given number of levels up otherwise folds down. * 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used. If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead. `,constraint:ie,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(ae,me,fe,le){const oe=this.getLineNumbers(le,fe),ne=le&&le.levels,de=le&&le.direction;typeof ne!="number"&&typeof de!="string"?(0,s.W8)(me,!0,oe):de==="up"?(0,s.dN)(me,!0,ne||1,oe):(0,s.uV)(me,!0,ne||1,oe)}}class he extends X{constructor(){super({id:"editor.toggleFold",label:p.kg("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2090),weight:100}})}invoke(ae,me,fe){const le=this.getSelectedLines(fe);(0,s.bC)(me,1,le)}}class ve extends X{constructor(){super({id:"editor.foldRecursively",label:p.kg("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2140),weight:100}})}invoke(ae,me,fe){const le=this.getSelectedLines(fe);(0,s.uV)(me,!0,Number.MAX_VALUE,le)}}class Ce extends X{constructor(){super({id:"editor.foldAllBlockComments",label:p.kg("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2138),weight:100}})}invoke(ae,me,fe,le,oe){if(me.regions.hasTypes())(0,s.cL)(me,d.lO.Comment.value,!0);else{const ne=fe.getModel();if(!ne)return;const de=oe.getLanguageConfiguration(ne.getLanguageId()).comments;if(de&&de.blockCommentStartToken){const Le=new RegExp("^\\s*"+(0,g.bm)(de.blockCommentStartToken));(0,s.AI)(me,Le,!0)}}}}class Pe extends X{constructor(){super({id:"editor.foldAllMarkerRegions",label:p.kg("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2077),weight:100}})}invoke(ae,me,fe,le,oe){if(me.regions.hasTypes())(0,s.cL)(me,d.lO.Region.value,!0);else{const ne=fe.getModel();if(!ne)return;const de=oe.getLanguageConfiguration(ne.getLanguageId()).foldingRules;if(de&&de.markers&&de.markers.start){const Le=new RegExp(de.markers.start);(0,s.AI)(me,Le,!0)}}}}class _e extends X{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:p.kg("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2078),weight:100}})}invoke(ae,me,fe,le,oe){if(me.regions.hasTypes())(0,s.cL)(me,d.lO.Region.value,!1);else{const ne=fe.getModel();if(!ne)return;const de=oe.getLanguageConfiguration(ne.getLanguageId()).foldingRules;if(de&&de.markers&&de.markers.start){const Le=new RegExp(de.markers.start);(0,s.AI)(me,Le,!1)}}}}class ee extends X{constructor(){super({id:"editor.foldAllExcept",label:p.kg("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2136),weight:100}})}invoke(ae,me,fe){const le=this.getSelectedLines(fe);(0,s.GR)(me,!0,le)}}class De extends X{constructor(){super({id:"editor.unfoldAllExcept",label:p.kg("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2134),weight:100}})}invoke(ae,me,fe){const le=this.getSelectedLines(fe);(0,s.GR)(me,!1,le)}}class Te extends X{constructor(){super({id:"editor.foldAll",label:p.kg("foldAllAction.label","Fold All"),alias:"Fold All",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2069),weight:100}})}invoke(ae,me,fe){(0,s.uV)(me,!0)}}class He extends X{constructor(){super({id:"editor.unfoldAll",label:p.kg("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2088),weight:100}})}invoke(ae,me,fe){(0,s.uV)(me,!1)}}class qe extends X{getFoldingLevel(){return parseInt(this.id.substr(qe.ID_PREFIX.length))}invoke(ae,me,fe){(0,s.sO)(me,this.getFoldingLevel(),!0,this.getSelectedLines(fe))}}qe.ID_PREFIX="editor.foldLevel",qe.ID=Se=>qe.ID_PREFIX+Se;class Qe extends X{constructor(){super({id:"editor.gotoParentFold",label:p.kg("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,weight:100}})}invoke(ae,me,fe){const le=this.getSelectedLines(fe);if(le.length>0){const oe=(0,s.kK)(le[0],me);oe!==null&&fe.setSelection({startLineNumber:oe,startColumn:1,endLineNumber:oe,endColumn:1})}}}class q extends X{constructor(){super({id:"editor.gotoPreviousFold",label:p.kg("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,weight:100}})}invoke(ae,me,fe){const le=this.getSelectedLines(fe);if(le.length>0){const oe=(0,s.JX)(le[0],me);oe!==null&&fe.setSelection({startLineNumber:oe,startColumn:1,endLineNumber:oe,endColumn:1})}}}class ye extends X{constructor(){super({id:"editor.gotoNextFold",label:p.kg("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,weight:100}})}invoke(ae,me,fe){const le=this.getSelectedLines(fe);if(le.length>0){const oe=(0,s.pr)(le[0],me);oe!==null&&fe.setSelection({startLineNumber:oe,startColumn:1,endLineNumber:oe,endColumn:1})}}}class ge extends X{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:p.kg("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2135),weight:100}})}invoke(ae,me,fe){var le;const oe=[],ne=fe.getSelections();if(ne){for(const de of ne){let Le=de.endLineNumber;de.endColumn===1&&--Le,Le>de.startLineNumber&&(oe.push({startLineNumber:de.startLineNumber,endLineNumber:Le,type:void 0,isCollapsed:!0,source:1}),fe.setSelection({startLineNumber:de.startLineNumber,startColumn:1,endLineNumber:de.startLineNumber,endColumn:1}))}if(oe.length>0){oe.sort((Le,We)=>Le.startLineNumber-We.startLineNumber);const de=w.tz.sanitizeAndMerge(me.regions,oe,(le=fe.getModel())===null||le===void 0?void 0:le.getLineCount());me.updatePost(w.tz.fromFoldRanges(de))}}}}class be extends X{constructor(){super({id:"editor.removeManualFoldingRanges",label:p.kg("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2137),weight:100}})}invoke(ae,me,fe){const le=fe.getSelections();if(le){const oe=[];for(const ne of le){const{startLineNumber:de,endLineNumber:Le}=ne;oe.push(Le>=de?{startLineNumber:de,endLineNumber:Le}:{endLineNumber:Le,startLineNumber:de})}me.removeManualRanges(oe),ae.triggerFoldingModelChanged()}}}(0,S.HW)(V.ID,V,0),(0,S.Fl)(re),(0,S.Fl)(te),(0,S.Fl)(D),(0,S.Fl)(ve),(0,S.Fl)(Te),(0,S.Fl)(He),(0,S.Fl)(Ce),(0,S.Fl)(Pe),(0,S.Fl)(_e),(0,S.Fl)(ee),(0,S.Fl)(De),(0,S.Fl)(he),(0,S.Fl)(Qe),(0,S.Fl)(q),(0,S.Fl)(ye),(0,S.Fl)(ge),(0,S.Fl)(be);for(let Se=1;Se<=7;Se++)(0,S.xX)(new qe({id:qe.ID(Se),label:p.kg("foldLevelAction.label","Fold Level {0}",Se),alias:`Fold Level ${Se}`,precondition:B,kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2048|21+Se),weight:100}}));A.w.registerCommand("_executeFoldingRangeProvider",async function(Se,...ae){const[me]=ae;if(!(me instanceof T.r))throw(0,k.Qg)();const fe=Se.get(P.u),le=Se.get(E.S).getModel(me);if(!le)throw(0,k.Qg)();const oe=Se.get(W.pG);if(!oe.getValue("editor.folding",{resource:me}))return[];const ne=Se.get(a.JZ),de=oe.getValue("editor.foldingStrategy",{resource:me}),Le={get limit(){return oe.getValue("editor.foldingMaximumRegions",{resource:me})},update:(Et,Kt)=>{}},We=new v.hW(le,ne,Le);let we=We;if(de!=="indentation"){const Et=V.getFoldingRangeProviders(fe,le);Et.length&&(we=new j.M(le,Et,()=>{},Le,We))}const Ue=await we.compute(F.X.None),lt=[];try{if(Ue)for(let Et=0;EtC.regionIndex-h.regionIndex);const u={};this._decorationProvider.changeDecorations(C=>{let h=0,v=-1,p=-1;const b=O=>{for(;hp&&(p=w),h++}};for(const O of m){const w=O.regionIndex,j=this._editorDecorationIds[w];if(j&&!u[j]){u[j]=!0,b(w);const U=!this._regions.isCollapsed(w);this._regions.setCollapsed(w,U),v=Math.max(v,this._regions.getEndLineNumber(w))}}b(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:m})}removeManualRanges(m){const u=new Array,C=h=>{for(const v of m)if(!(v.startLineNumber>h.endLineNumber||h.startLineNumber>v.endLineNumber))return!0;return!1};for(let h=0;hC&&(C=b)}this._decorationProvider.changeDecorations(h=>this._editorDecorationIds=h.deltaDecorations(this._editorDecorationIds,u)),this._regions=m,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(m=[]){const u=(h,v)=>{for(const p of m)if(h=p.endLineNumber||p.startLineNumber<1||p.endLineNumber>C)continue;const b=this._getLinesChecksum(p.startLineNumber+1,p.endLineNumber);u.push({startLineNumber:p.startLineNumber,endLineNumber:p.endLineNumber,isCollapsed:p.isCollapsed,source:p.source,checksum:b})}return u.length>0?u:void 0}applyMemento(m){var u,C;if(!Array.isArray(m))return;const h=[],v=this._textModel.getLineCount();for(const b of m){if(b.startLineNumber>=b.endLineNumber||b.startLineNumber<1||b.endLineNumber>v)continue;const O=this._getLinesChecksum(b.startLineNumber+1,b.endLineNumber);(!b.checksum||O===b.checksum)&&h.push({startLineNumber:b.startLineNumber,endLineNumber:b.endLineNumber,type:void 0,isCollapsed:(u=b.isCollapsed)!==null&&u!==void 0?u:!0,source:(C=b.source)!==null&&C!==void 0?C:0})}const p=F.tz.sanitizeAndMerge(this._regions,h,v);this.updatePost(F.tz.fromFoldRanges(p))}_getLinesChecksum(m,u){return(0,k.tW)(this._textModel.getLineContent(m)+this._textModel.getLineContent(u))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(m,u){const C=[];if(this._regions){let h=this._regions.findRange(m),v=1;for(;h>=0;){const p=this._regions.toRegion(h);(!u||u(p,v))&&C.push(p),v++,h=p.parentIndex}}return C}getRegionAtLine(m){if(this._regions){const u=this._regions.findRange(m);if(u>=0)return this._regions.toRegion(u)}return null}getRegionsInside(m,u){const C=[],h=m?m.regionIndex+1:0,v=m?m.endLineNumber:Number.MAX_VALUE;if(u&&u.length===2){const p=[];for(let b=h,O=this._regions.length;b0&&!w.containedBy(p[p.length-1]);)p.pop();p.push(w),u(w,p.length)&&C.push(w)}else break}}else for(let p=h,b=this._regions.length;p1){const b=c.getRegionsInside(v,(O,w)=>O.isCollapsed!==p&&w0)for(const v of C){const p=c.getRegionAtLine(v);if(p&&(p.isCollapsed!==m&&h.push(p),u>1)){const b=c.getRegionsInside(p,(O,w)=>O.isCollapsed!==m&&wp.isCollapsed!==m&&bb.isCollapsed!==m&&O<=u);h.push(...p)}c.toggleCollapseState(h)}function I(c,m,u){const C=[];for(const h of u){const v=c.getAllRegionsAtLine(h,p=>p.isCollapsed!==m);v.length>0&&C.push(v[0])}c.toggleCollapseState(C)}function S(c,m,u,C){const h=(p,b)=>b===m&&p.isCollapsed!==u&&!C.some(O=>p.containsLine(O)),v=c.getRegionsInside(null,h);c.toggleCollapseState(v)}function f(c,m,u){const C=[];for(const p of u){const b=c.getAllRegionsAtLine(p,void 0);b.length>0&&C.push(b[0])}const h=p=>C.every(b=>!b.containedBy(p)&&!p.containedBy(b))&&p.isCollapsed!==m,v=c.getRegionsInside(null,h);c.toggleCollapseState(v)}function d(c,m,u){const C=c.textModel,h=c.regions,v=[];for(let p=h.length-1;p>=0;p--)if(u!==h.isCollapsed(p)){const b=h.getStartLineNumber(p);m.test(C.getLineContent(b))&&v.push(h.toRegion(p))}c.toggleCollapseState(v)}function a(c,m,u){const C=c.regions,h=[];for(let v=C.length-1;v>=0;v--)u!==C.isCollapsed(v)&&m===C.getType(v)&&h.push(C.toRegion(v));c.toggleCollapseState(h)}function s(c,m){let u=null;const C=m.getRegionAtLine(c);if(C!==null&&(u=C.startLineNumber,c===u)){const h=C.parentIndex;h!==-1?u=m.regions.getStartLineNumber(h):u=null}return u}function n(c,m){let u=m.getRegionAtLine(c);if(u!==null&&u.startLineNumber===c){if(c!==u.startLineNumber)return u.startLineNumber;{const C=u.parentIndex;let h=0;for(C!==-1&&(h=m.regions.getStartLineNumber(u.parentIndex));u!==null;)if(u.regionIndex>0){if(u=m.regions.toRegion(u.regionIndex-1),u.startLineNumber<=h)return null;if(u.parentIndex===C)return u.startLineNumber}else return null}}else if(m.regions.length>0)for(u=m.regions.toRegion(m.regions.length-1);u!==null;){if(u.startLineNumber0?u=m.regions.toRegion(u.regionIndex-1):u=null}return null}function i(c,m){let u=m.getRegionAtLine(c);if(u!==null&&u.startLineNumber===c){const C=u.parentIndex;let h=0;if(C!==-1)h=m.regions.getEndLineNumber(u.parentIndex);else{if(m.regions.length===0)return null;h=m.regions.getEndLineNumber(m.regions.length-1)}for(;u!==null;)if(u.regionIndex=h)return null;if(u.parentIndex===C)return u.startLineNumber}else return null}else if(m.regions.length>0)for(u=m.regions.toRegion(0);u!==null;){if(u.startLineNumber>c)return u.startLineNumber;u.regionIndexF)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=S,this._endIndexes=f,this._collapseStates=new L(S.length),this._userDefinedStates=new L(S.length),this._recoveredStates=new L(S.length),this._types=d,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;const S=[],f=(d,a)=>{const s=S[S.length-1];return this.getStartLineNumber(s)<=d&&this.getEndLineNumber(s)>=a};for(let d=0,a=this._startIndexes.length;dk||n>k)throw new Error("startLineNumber or endLineNumber must not exceed "+k);for(;S.length>0&&!f(s,n);)S.pop();const i=S.length>0?S[S.length-1]:-1;S.push(d),this._startIndexes[d]=s+((i&255)<<24),this._endIndexes[d]=n+((i&65280)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(S){return this._startIndexes[S]&k}getEndLineNumber(S){return this._endIndexes[S]&k}getType(S){return this._types?this._types[S]:void 0}hasTypes(){return!!this._types}isCollapsed(S){return this._collapseStates.get(S)}setCollapsed(S,f){this._collapseStates.set(S,f)}isUserDefined(S){return this._userDefinedStates.get(S)}setUserDefined(S,f){return this._userDefinedStates.set(S,f)}isRecovered(S){return this._recoveredStates.get(S)}setRecovered(S,f){return this._recoveredStates.set(S,f)}getSource(S){return this.isUserDefined(S)?1:this.isRecovered(S)?2:0}setSource(S,f){f===1?(this.setUserDefined(S,!0),this.setRecovered(S,!1)):f===2?(this.setUserDefined(S,!1),this.setRecovered(S,!0)):(this.setUserDefined(S,!1),this.setRecovered(S,!1))}setCollapsedAllOfType(S,f){let d=!1;if(this._types)for(let a=0;a>>24)+((this._endIndexes[S]&M)>>>16);return f===F?-1:f}contains(S,f){return this.getStartLineNumber(S)<=f&&this.getEndLineNumber(S)>=f}findIndex(S){let f=0,d=this._startIndexes.length;if(d===0)return-1;for(;f=0){if(this.getEndLineNumber(f)>=S)return f;for(f=this.getParentIndex(f);f!==-1;){if(this.contains(f,S))return f;f=this.getParentIndex(f)}}return-1}toString(){const S=[];for(let f=0;fArray.isArray(b)?w=>ww=u.startLineNumber))m&&m.startLineNumber===u.startLineNumber?(u.source===1?b=u:(b=m,b.isCollapsed=u.isCollapsed&&m.endLineNumber===u.endLineNumber,b.source=0),m=s(++i)):(b=u,u.isCollapsed&&u.source===0&&(b.source=2)),u=n(++c);else{let O=c,w=u;for(;;){if(!w||w.startLineNumber>m.endLineNumber){b=m;break}if(w.source===1&&w.endLineNumber>m.endLineNumber)break;w=n(++O)}m=s(++i)}if(b){for(;h&&h.endLineNumberb.startLineNumber&&b.startLineNumber>v&&b.endLineNumber<=d&&(!h||h.endLineNumber>=b.endLineNumber)&&(p.push(b),v=b.startLineNumber,h&&C.push(h),h=b)}}return p}}class x{constructor(S,f){this.ranges=S,this.index=f}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(S){return S.startLineNumber<=this.startLineNumber&&S.endLineNumber>=this.endLineNumber}containsLine(S){return this.startLineNumber<=S&&S<=this.endLineNumber}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/indentRangeProvider.js":function(pt,Me,e){e.d(Me,{hW:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/model/utils.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingRanges.js");const k=5e3,M="indent";class L{constructor(f,d,a){this.editorModel=f,this.languageConfigurationService=d,this.foldingRangesLimit=a,this.id=M}dispose(){}compute(f){const d=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,a=d&&!!d.offSide,s=d&&d.markers;return Promise.resolve(I(this.editorModel,a,s,this.foldingRangesLimit))}}class g{constructor(f){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=f}insertFirst(f,d,a){if(f>F.yy||d>F.yy)return;const s=this._length;this._startIndexes[s]=f,this._endIndexes[s]=d,this._length++,a<1e3&&(this._indentOccurrences[a]=(this._indentOccurrences[a]||0)+1)}toIndentRanges(f){const d=this._foldingRangesLimit.limit;if(this._length<=d){this._foldingRangesLimit.update(this._length,!1);const a=new Uint32Array(this._length),s=new Uint32Array(this._length);for(let n=this._length-1,i=0;n>=0;n--,i++)a[i]=this._startIndexes[n],s[i]=this._endIndexes[n];return new F.tz(a,s)}else{this._foldingRangesLimit.update(this._length,d);let a=0,s=this._indentOccurrences.length;for(let m=0;md){s=m;break}a+=u}}const n=f.getOptions().tabSize,i=new Uint32Array(d),c=new Uint32Array(d);for(let m=this._length-1,u=0;m>=0;m--){const C=this._startIndexes[m],h=f.getLineContent(C),v=(0,r.G)(h,n);(v{}};function I(S,f,d,a=x){const s=S.getOptions().tabSize,n=new g(a);let i;d&&(i=new RegExp(`(${d.start.source})|(?:${d.end.source})`));const c=[],m=S.getLineCount()+1;c.push({indent:-1,endAbove:m,line:m});for(let u=S.getLineCount();u>0;u--){const C=S.getLineContent(u),h=(0,r.G)(C,s);let v=c[c.length-1];if(h===-1){f&&(v.endAbove=u);continue}let p;if(i&&(p=C.match(i)))if(p[1]){let b=c.length-1;for(;b>0&&c[b].indent!==-2;)b--;if(b>0){c.length=b+1,v=c[b],n.insertFirst(u,v.line,h),v.line=u,v.indent=h,v.endAbove=u;continue}}else{c.push({indent:-2,endAbove:u,line:u});continue}if(v.indent>h){do c.pop(),v=c[c.length-1];while(v.indent>h);const b=v.endAbove-1;b-u>=1&&n.insertFirst(u,b,h)}v.indent===h?v.endAbove=u:c.push({indent:h,endAbove:u,line:u})}return n.toIndentRanges(S)}},"./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/syntaxRangeProvider.js":function(pt,Me,e){e.d(Me,{M:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingRanges.js");const M={},L="syntax";class g{constructor(d,a,s,n,i){this.editorModel=d,this.providers=a,this.handleFoldingRangesChange=s,this.foldingRangesLimit=n,this.fallbackRangeProvider=i,this.id=L,this.disposables=new F.Cm,i&&this.disposables.add(i);for(const c of a)typeof c.onDidChange=="function"&&this.disposables.add(c.onDidChange(s))}compute(d){return x(this.providers,this.editorModel,d).then(a=>{var s,n;return a?S(a,this.foldingRangesLimit):(n=(s=this.fallbackRangeProvider)===null||s===void 0?void 0:s.compute(d))!==null&&n!==void 0?n:null})}dispose(){this.disposables.dispose()}}function x(f,d,a){let s=null;const n=f.map((i,c)=>Promise.resolve(i.provideFoldingRanges(d,M,a)).then(m=>{if(!a.isCancellationRequested&&Array.isArray(m)){Array.isArray(s)||(s=[]);const u=d.getLineCount();for(const C of m)C.start>0&&C.end>C.start&&C.end<=u&&s.push({start:C.start,end:C.end,rank:c,kind:C.kind})}},r.M_));return Promise.all(n).then(i=>s)}class I{constructor(d){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=d}add(d,a,s,n){if(d>k.yy||a>k.yy)return;const i=this._length;this._startIndexes[i]=d,this._endIndexes[i]=a,this._nestingLevels[i]=n,this._types[i]=s,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){const d=this._foldingRangesLimit.limit;if(this._length<=d){this._foldingRangesLimit.update(this._length,!1);const a=new Uint32Array(this._length),s=new Uint32Array(this._length);for(let n=0;nd){s=m;break}a+=u}}const n=new Uint32Array(d),i=new Uint32Array(d),c=[];for(let m=0,u=0;m{let u=c.start-m.start;return u===0&&(u=c.rank-m.rank),u}),s=new I(d);let n;const i=[];for(const c of a)if(!n)n=c,s.add(c.start,c.end,c.kind&&c.kind.value,i.length);else if(c.start>n.start)if(c.end<=n.end)i.push(n),n=c,s.add(c.start,c.end,c.kind&&c.kind.value,i.length);else{if(c.start>n.end){do n=i.pop();while(n&&c.start>n.end);n&&i.push(n),n=c}s.add(c.start,c.end,c.kind&&c.kind.value,i.length)}return s.toIndentRanges()}},"./node_modules/monaco-editor/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorZoom.js"),k=e("./node_modules/monaco-editor/esm/vs/nls.js");class M extends r.ks{constructor(){super({id:"editor.action.fontZoomIn",label:k.kg("EditorFontZoomIn.label","Increase Editor Font Size"),alias:"Increase Editor Font Size",precondition:void 0})}run(I,S){F.D.setZoomLevel(F.D.getZoomLevel()+1)}}class L extends r.ks{constructor(){super({id:"editor.action.fontZoomOut",label:k.kg("EditorFontZoomOut.label","Decrease Editor Font Size"),alias:"Decrease Editor Font Size",precondition:void 0})}run(I,S){F.D.setZoomLevel(F.D.getZoomLevel()-1)}}class g extends r.ks{constructor(){super({id:"editor.action.fontZoomReset",label:k.kg("EditorFontZoomReset.label","Reset Editor Font Size"),alias:"Reset Editor Font Size",precondition:void 0})}run(I,S){F.D.setZoomLevel(0)}}(0,r.Fl)(M),(0,r.Fl)(L),(0,r.Fl)(g)},"./node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/format.js":function(pt,Me,e){e.d(Me,{Pj:function(){return O},jX:function(){return w},vg:function(){return U},_V:function(){return A}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/services/editorWorker.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formattingEdit.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js");class m{constructor(E){this.value=E,this._lower=E.toLowerCase()}static toKey(E){return typeof E=="string"?E.toLowerCase():E._lower}}class u{constructor(E){if(this._set=new Set,E)for(const W of E)this.add(W)}add(E){this._set.add(m.toKey(E))}has(E){return this._set.has(m.toKey(E))}}var C=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),v=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),p=e("./node_modules/monaco-editor/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js");function b(T,E,W){const $=[],z=new u,J=T.ordered(W);for(const V of J)$.push(V),V.extensionId&&z.add(V.extensionId);const B=E.ordered(W);for(const V of B){if(V.extensionId){if(z.has(V.extensionId))continue;z.add(V.extensionId)}$.push({displayName:V.displayName,extensionId:V.extensionId,provideDocumentFormattingEdits(Y,X,ie){return V.provideDocumentRangeFormattingEdits(Y,Y.getFullModelRange(),X,ie)}})}return $}class O{static setFormatterSelector(E){return{dispose:O._selectors.unshift(E)}}static async select(E,W,$,z){if(E.length===0)return;const J=M.f.first(O._selectors);if(J)return await J(E,W,$,z)}}O._selectors=new L.w;async function w(T,E,W,$,z,J,B){const V=T.get(C._Y),{documentRangeFormattingEditProvider:Y}=T.get(h.u),X=(0,S.z9)(E)?E.getModel():E,ie=Y.ordered(X),re=await O.select(ie,X,$,2);re&&(z.report(re),await V.invokeFunction(j,re,E,W,J,B))}async function j(T,E,W,$,z,J){var B,V;const Y=T.get(s.w),X=T.get(v.rr),ie=T.get(p.Nt);let re,te;(0,S.z9)(W)?(re=W.getModel(),te=new I.gI(W,5,void 0,z)):(re=W,te=new I.ER(W,z));const D=[];let he=0;for(const ee of(0,r._j)($).sort(d.Q.compareRangesUsingStarts))he>0&&d.Q.areIntersectingOrTouching(D[he-1],ee)?D[he-1]=d.Q.fromPositions(D[he-1].getStartPosition(),ee.getEndPosition()):he=D.push(ee);const ve=async ee=>{var De,Te;X.trace("[format][provideDocumentRangeFormattingEdits] (request)",(De=E.extensionId)===null||De===void 0?void 0:De.value,ee);const He=await E.provideDocumentRangeFormattingEdits(re,ee,re.getFormattingOptions(),te.token)||[];return X.trace("[format][provideDocumentRangeFormattingEdits] (response)",(Te=E.extensionId)===null||Te===void 0?void 0:Te.value,He),He},Ce=(ee,De)=>{if(!ee.length||!De.length)return!1;const Te=ee.reduce((He,qe)=>d.Q.plusRange(He,qe.range),ee[0].range);if(!De.some(He=>d.Q.intersectRanges(Te,He.range)))return!1;for(const He of ee)for(const qe of De)if(d.Q.intersectRanges(He.range,qe.range))return!0;return!1},Pe=[],_e=[];try{if(typeof E.provideDocumentRangesFormattingEdits=="function"){X.trace("[format][provideDocumentRangeFormattingEdits] (request)",(B=E.extensionId)===null||B===void 0?void 0:B.value,D);const ee=await E.provideDocumentRangesFormattingEdits(re,D,re.getFormattingOptions(),te.token)||[];X.trace("[format][provideDocumentRangeFormattingEdits] (response)",(V=E.extensionId)===null||V===void 0?void 0:V.value,ee),_e.push(ee)}else{for(const ee of D){if(te.token.isCancellationRequested)return!0;_e.push(await ve(ee))}for(let ee=0;ee({text:Te.text,range:d.Q.lift(Te.range),forceMoveMarkers:!0})),Te=>{for(const{range:He}of Te)if(d.Q.areIntersectingOrTouching(He,De))return[new a.L(He.startLineNumber,He.startColumn,He.endLineNumber,He.endColumn)];return null})}return ie.playSignal(p.Rh.format,{userGesture:J}),!0}async function U(T,E,W,$,z,J){const B=T.get(C._Y),V=T.get(h.u),Y=(0,S.z9)(E)?E.getModel():E,X=b(V.documentFormattingEditProvider,V.documentRangeFormattingEditProvider,Y),ie=await O.select(X,Y,W,1);ie&&($.report(ie),await B.invokeFunction(K,ie,E,W,z,J))}async function K(T,E,W,$,z,J){const B=T.get(s.w),V=T.get(p.Nt);let Y,X;(0,S.z9)(W)?(Y=W.getModel(),X=new I.gI(W,5,void 0,z)):(Y=W,X=new I.ER(W,z));let ie;try{const re=await E.provideDocumentFormattingEdits(Y,Y.getFormattingOptions(),X.token);if(ie=await B.computeMoreMinimalEdits(Y.uri,re),X.token.isCancellationRequested)return!0}finally{X.dispose()}if(!ie||ie.length===0)return!1;if((0,S.z9)(W))i.c.execute(W,ie,$!==2),$!==2&&W.revealPositionInCenterIfOutsideViewport(W.getPosition(),1);else{const[{range:re}]=ie,te=new a.L(re.startLineNumber,re.startColumn,re.endLineNumber,re.endColumn);Y.pushEditOperations([te],ie.map(D=>({text:D.text,range:d.Q.lift(D.range),forceMoveMarkers:!0})),D=>{for(const{range:he}of D)if(d.Q.areIntersectingOrTouching(he,te))return[new a.L(he.startLineNumber,he.startColumn,he.endLineNumber,he.endColumn)];return null})}return V.playSignal(p.Rh.format,{userGesture:J}),!0}async function G(T,E,W,$,z,J){const B=E.documentRangeFormattingEditProvider.ordered(W);for(const V of B){const Y=await Promise.resolve(V.provideDocumentRangeFormattingEdits(W,$,z,J)).catch(k.M_);if((0,r.EI)(Y))return await T.computeMoreMinimalEdits(W.uri,Y)}}async function P(T,E,W,$,z){const J=b(E.documentFormattingEditProvider,E.documentRangeFormattingEditProvider,W);for(const B of J){const V=await Promise.resolve(B.provideDocumentFormattingEdits(W,$,z)).catch(k.M_);if((0,r.EI)(V))return await T.computeMoreMinimalEdits(W.uri,V)}}function A(T,E,W,$,z,J,B){const V=E.onTypeFormattingEditProvider.ordered(W);return V.length===0||V[0].autoFormatTriggerCharacters.indexOf(z)<0?Promise.resolve(void 0):Promise.resolve(V[0].provideOnTypeFormattingEdits(W,$,z,J,B)).catch(k.M_).then(Y=>T.computeMoreMinimalEdits(W.uri,Y))}c.w.registerCommand("_executeFormatRangeProvider",async function(T,...E){const[W,$,z]=E;(0,g.j)(x.r.isUri(W)),(0,g.j)(d.Q.isIRange($));const J=T.get(n.b),B=T.get(s.w),V=T.get(h.u),Y=await J.createModelReference(W);try{return G(B,V,Y.object.textEditorModel,d.Q.lift($),z,F.X.None)}finally{Y.dispose()}}),c.w.registerCommand("_executeFormatDocumentProvider",async function(T,...E){const[W,$]=E;(0,g.j)(x.r.isUri(W));const z=T.get(n.b),J=T.get(s.w),B=T.get(h.u),V=await z.createModelReference(W);try{return P(J,B,V.object.textEditorModel,$,F.X.None)}finally{V.dispose()}}),c.w.registerCommand("_executeFormatOnTypeProvider",async function(T,...E){const[W,$,z,J]=E;(0,g.j)(x.r.isUri(W)),(0,g.j)(f.y.isIPosition($)),(0,g.j)(typeof z=="string");const B=T.get(n.b),V=T.get(s.w),Y=T.get(h.u),X=await B.createModelReference(W);try{return A(V,Y,X.object.textEditorModel,f.y.lift($),z,J,F.X.None)}finally{X.dispose()}})},"./node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formatActions.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/services/editorWorker.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/format.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formattingEdit.js"),i=e("./node_modules/monaco-editor/esm/vs/nls.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js"),m=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),u=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),C=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"),v=function(U,K,G,P){var A=arguments.length,T=A<3?K:P===null?P=Object.getOwnPropertyDescriptor(K,G):P,E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(U,K,G,P);else for(var W=U.length-1;W>=0;W--)(E=U[W])&&(T=(A<3?E(T):A>3?E(K,G,T):E(K,G))||T);return A>3&&T&&Object.defineProperty(K,G,T),T},p=function(U,K){return function(G,P){K(G,P,U)}};let b=class{constructor(K,G,P,A){this._editor=K,this._languageFeaturesService=G,this._workerService=P,this._accessibilitySignalService=A,this._disposables=new L.Cm,this._sessionDisposables=new L.Cm,this._disposables.add(G.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(K.onDidChangeModel(()=>this._update())),this._disposables.add(K.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(K.onDidChangeConfiguration(T=>{T.hasChanged(56)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(56)||!this._editor.hasModel())return;const K=this._editor.getModel(),[G]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(K);if(!G||!G.autoFormatTriggerCharacters)return;const P=new I.y;for(const A of G.autoFormatTriggerCharacters)P.add(A.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(A=>{const T=A.charCodeAt(A.length-1);P.has(T)&&this._trigger(String.fromCharCode(T))}))}_trigger(K){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;const G=this._editor.getModel(),P=this._editor.getPosition(),A=new F.Q,T=this._editor.onDidChangeModelContent(E=>{if(E.isFlush){A.cancel(),T.dispose();return}for(let W=0,$=E.changes.length;W<$;W++)if(E.changes[W].range.endLineNumber<=P.lineNumber){A.cancel(),T.dispose();return}});(0,s._V)(this._workerService,this._languageFeaturesService,G,P,K,G.getFormattingOptions(),A.token).then(E=>{A.token.isCancellationRequested||(0,r.EI)(E)&&(this._accessibilitySignalService.playSignal(c.Rh.format,{userGesture:!1}),n.c.execute(this._editor,E,!0))}).finally(()=>{T.dispose()})}};b.ID="editor.contrib.autoFormat",b=v([p(1,a.u),p(2,d.w),p(3,c.Nt)],b);let O=class{constructor(K,G,P){this.editor=K,this._languageFeaturesService=G,this._instantiationService=P,this._callOnDispose=new L.Cm,this._callOnModel=new L.Cm,this._callOnDispose.add(K.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(K.onDidChangeModel(()=>this._update())),this._callOnDispose.add(K.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(G.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(55)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:K})=>this._trigger(K)))}_trigger(K){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(s.jX,this.editor,K,2,h.ke.None,F.X.None,!1).catch(k.dz))}};O.ID="editor.contrib.formatOnPaste",O=v([p(1,a.u),p(2,C._Y)],O);class w extends g.ks{constructor(){super({id:"editor.action.formatDocument",label:i.kg("formatDocument.label","Format Document"),alias:"Format Document",precondition:u.M$.and(f.R.notInCompositeEditor,f.R.writable,f.R.hasDocumentFormattingProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}async run(K,G){if(G.hasModel()){const P=K.get(C._Y);await K.get(h.N8).showWhile(P.invokeFunction(s.vg,G,1,h.ke.None,F.X.None,!0),250)}}}class j extends g.ks{constructor(){super({id:"editor.action.formatSelection",label:i.kg("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:u.M$.and(f.R.writable,f.R.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:f.R.editorTextFocus,primary:(0,M.m5)(2089,2084),weight:100},contextMenuOpts:{when:f.R.hasNonEmptySelection,group:"1_modification",order:1.31}})}async run(K,G){if(!G.hasModel())return;const P=K.get(C._Y),A=G.getModel(),T=G.getSelections().map(W=>W.isEmpty()?new S.Q(W.startLineNumber,1,W.startLineNumber,A.getLineMaxColumn(W.startLineNumber)):W);await K.get(h.N8).showWhile(P.invokeFunction(s.jX,G,T,1,h.ke.None,F.X.None,!0),250)}}(0,g.HW)(b.ID,b,2),(0,g.HW)(O.ID,O,2),(0,g.Fl)(w),(0,g.Fl)(j),m.w.registerCommand("editor.action.format",async U=>{const K=U.get(x.T).getFocusedCodeEditor();if(!K||!K.hasModel())return;const G=U.get(m.d);K.getSelection().isEmpty()?await G.executeCommand("editor.action.formatDocument"):await G.executeCommand("editor.action.formatSelection")})},"./node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formattingEdit.js":function(pt,Me,e){e.d(Me,{c:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/stableEditorScroll.js");class M{static _handleEolEdits(g,x){let I;const S=[];for(const f of x)typeof f.eol=="number"&&(I=f.eol),f.range&&typeof f.text=="string"&&S.push(f);return typeof I=="number"&&g.hasModel()&&g.getModel().pushEOL(I),S}static _isFullModelReplaceEdit(g,x){if(!g.hasModel())return!1;const I=g.getModel(),S=I.validateRange(x.range);return I.getFullModelRange().equalsRange(S)}static execute(g,x,I){I&&g.pushUndoStop();const S=k.D.capture(g),f=M._handleEolEdits(g,x);f.length===1&&M._isFullModelReplaceEdit(g,f[0])?g.executeEdits("formatEditsCommand",f.map(d=>r.k.replace(F.Q.lift(d.range),d.text))):g.executeEdits("formatEditsCommand",f.map(d=>r.k.replaceMove(F.Q.lift(d.range),d.text))),I&&g.pushUndoStop(),S.restoreRelativeVerticalPositionOfCursor(g)}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoError.js":function(pt,Me,e){e.d(Me,{j:function(){return ye},i:function(){return be}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/markers/common/markers.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),m=function(oe,ne,de,Le){var We=arguments.length,we=We<3?ne:Le===null?Le=Object.getOwnPropertyDescriptor(ne,de):Le,Ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(oe,ne,de,Le);else for(var lt=oe.length-1;lt>=0;lt--)(Ue=oe[lt])&&(we=(We<3?Ue(we):We>3?Ue(ne,de,we):Ue(ne,de))||we);return We>3&&we&&Object.defineProperty(ne,de,we),we},u=function(oe,ne){return function(de,Le){ne(de,Le,oe)}};class C{constructor(ne,de,Le){this.marker=ne,this.index=de,this.total=Le}}let h=class{constructor(ne,de,Le){this._markerService=de,this._configService=Le,this._onDidChange=new S.vl,this.onDidChange=this._onDidChange.event,this._dispoables=new F.Cm,this._markers=[],this._nextIdx=-1,a.r.isUri(ne)?this._resourceFilter=lt=>lt.toString()===ne.toString():ne&&(this._resourceFilter=ne);const We=this._configService.getValue("problems.sortOrder"),we=(lt,Et)=>{let Kt=(0,d.UD)(lt.resource.toString(),Et.resource.toString());return Kt===0&&(We==="position"?Kt=g.Q.compareRangesUsingStarts(lt,Et)||i.cj.compare(lt.severity,Et.severity):Kt=i.cj.compare(lt.severity,Et.severity)||g.Q.compareRangesUsingStarts(lt,Et)),Kt},Ue=()=>{this._markers=this._markerService.read({resource:a.r.isUri(ne)?ne:void 0,severities:i.cj.Error|i.cj.Warning|i.cj.Info}),typeof ne=="function"&&(this._markers=this._markers.filter(lt=>this._resourceFilter(lt.resource))),this._markers.sort(we)};Ue(),this._dispoables.add(de.onMarkerChanged(lt=>{(!this._resourceFilter||lt.some(Et=>this._resourceFilter(Et)))&&(Ue(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(ne){return!this._resourceFilter&&!ne?!0:!this._resourceFilter||!ne?!1:this._resourceFilter(ne)}get selected(){const ne=this._markers[this._nextIdx];return ne&&new C(ne,this._nextIdx+1,this._markers.length)}_initIdx(ne,de,Le){let We=!1,we=this._markers.findIndex(Ue=>Ue.resource.toString()===ne.uri.toString());we<0&&(we=(0,I.El)(this._markers,{resource:ne.uri},(Ue,lt)=>(0,d.UD)(Ue.resource.toString(),lt.resource.toString())),we<0&&(we=~we));for(let Ue=we;UeWe.resource.toString()===ne.toString());if(!(Le<0)){for(;Le=0;lt--)(Ue=oe[lt])&&(we=(We<3?Ue(we):We>3?Ue(ne,de,we):Ue(ne,de))||we);return We>3&&we&&Object.defineProperty(ne,de,we),we},X=function(oe,ne){return function(de,Le){ne(de,Le,oe)}},ie;class re{constructor(ne,de,Le,We,we){this._openerService=We,this._labelService=we,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new F.Cm,this._editor=de;const Ue=document.createElement("div");Ue.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),Ue.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),Ue.appendChild(this._relatedBlock),this._disposables.add(U.b2(this._relatedBlock,"click",lt=>{lt.preventDefault();const Et=this._relatedDiagnostics.get(lt.target);Et&&Le(Et)})),this._scrollable=new K.Se(Ue,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),ne.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(lt=>{Ue.style.left=`-${lt.scrollLeft}px`,Ue.style.top=`-${lt.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){(0,F.AS)(this._disposables)}update(ne){const{source:de,message:Le,relatedInformation:We,code:we}=ne;let Ue=(de?.length||0)+2;we&&(typeof we=="string"?Ue+=we.length:Ue+=we.value.length);const lt=(0,d.uz)(Le);this._lines=lt.length,this._longestLineLength=0;for(const tt of lt)this._longestLineLength=Math.max(tt.length+Ue,this._longestLineLength);U.w_(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(ne)),this._editor.applyFontInfo(this._messageBlock);let Et=this._messageBlock;for(const tt of lt)Et=document.createElement("div"),Et.innerText=tt,tt===""&&(Et.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(Et);if(de||we){const tt=document.createElement("span");if(tt.classList.add("details"),Et.appendChild(tt),de){const Mt=document.createElement("span");Mt.innerText=de,Mt.classList.add("source"),tt.appendChild(Mt)}if(we)if(typeof we=="string"){const Mt=document.createElement("span");Mt.innerText=`(${we})`,Mt.classList.add("code"),tt.appendChild(Mt)}else{this._codeLink=U.$("a.code-link"),this._codeLink.setAttribute("href",`${we.target.toString()}`),this._codeLink.onclick=Ht=>{this._openerService.open(we.target,{allowCommands:!0}),Ht.preventDefault(),Ht.stopPropagation()};const Mt=U.BC(this._codeLink,U.$("span"));Mt.innerText=we.value,tt.appendChild(this._codeLink)}}if(U.w_(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,I.EI)(We)){const tt=this._relatedBlock.appendChild(document.createElement("div"));tt.style.paddingTop=`${Math.floor(this._editor.getOption(67)*.66)}px`,this._lines+=1;for(const Mt of We){const Ht=document.createElement("div"),xt=document.createElement("a");xt.classList.add("filename"),xt.innerText=`${this._labelService.getUriBasenameLabel(Mt.resource)}(${Mt.startLineNumber}, ${Mt.startColumn}): `,xt.title=this._labelService.getUriLabel(Mt.resource),this._relatedDiagnostics.set(xt,Mt);const Jt=document.createElement("span");Jt.innerText=Mt.message,Ht.appendChild(xt),Ht.appendChild(Jt),this._lines+=1,tt.appendChild(Ht)}}const Kt=this._editor.getOption(50),Zt=Math.ceil(Kt.typicalFullwidthCharacterWidth*this._longestLineLength*.75),qt=Kt.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:Zt,scrollHeight:qt})}layout(ne,de){this._scrollable.getDomNode().style.height=`${ne}px`,this._scrollable.getDomNode().style.width=`${de}px`,this._scrollable.setScrollDimensions({width:de,height:ne})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(ne){let de="";switch(ne.severity){case i.cj.Error:de=b.kg("Error","Error");break;case i.cj.Warning:de=b.kg("Warning","Warning");break;case i.cj.Info:de=b.kg("Info","Info");break;case i.cj.Hint:de=b.kg("Hint","Hint");break}let Le=b.kg("marker aria","{0} at {1}. ",de,ne.startLineNumber+":"+ne.startColumn);const We=this._editor.getModel();return We&&ne.startLineNumber<=We.getLineCount()&&ne.startLineNumber>=1&&(Le=`${We.getLineContent(ne.startLineNumber)}, ${Le}`),Le}}let te=ie=class extends A.j6{constructor(ne,de,Le,We,we,Ue,lt){super(ne,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},we),this._themeService=de,this._openerService=Le,this._menuService=We,this._contextKeyService=Ue,this._labelService=lt,this._callOnDispose=new F.Cm,this._onDidSelectRelatedInformation=new S.vl,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=i.cj.Warning,this._backgroundColor=G.Q1.white,this._applyTheme(de.getColorTheme()),this._callOnDispose.add(de.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(ne){this._backgroundColor=ne.getColor(He);let de=Ce,Le=Pe;this._severity===i.cj.Warning?(de=_e,Le=ee):this._severity===i.cj.Info&&(de=De,Le=Te);const We=ne.getColor(de),we=ne.getColor(Le);this.style({arrowColor:We,frameColor:We,headerBackgroundColor:we,primaryHeadingColor:ne.getColor(A._X),secondaryHeadingColor:ne.getColor(A.e3)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(ne){super._fillHead(ne),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(We=>this.editor.focus()));const de=[],Le=this._menuService.createMenu(ie.TitleMenu,this._contextKeyService);(0,T.Ot)(Le,void 0,de),this._actionbarWidget.push(de,{label:!1,icon:!0,index:0}),Le.dispose()}_fillTitleIcon(ne){this._icon=U.BC(ne,U.$(""))}_fillBody(ne){this._parentContainer=ne,ne.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),ne.appendChild(this._container),this._message=new re(this._container,this.editor,de=>this._onDidSelectRelatedInformation.fire(de),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(ne,de,Le){this._container.classList.remove("stale"),this._message.update(ne),this._severity=ne.severity,this._applyTheme(this._themeService.getColorTheme());const We=g.Q.lift(ne),we=this.editor.getPosition(),Ue=we&&We.containsPosition(we)?we:We.getStartPosition();super.show(Ue,this.computeRequiredHeight());const lt=this.editor.getModel();if(lt){const Et=Le>1?b.kg("problems","{0} of {1} problems",de,Le):b.kg("change","{0} of {1} problem",de,Le);this.setTitle((0,P.P8)(lt.uri),Et)}this._icon.className=`codicon ${J.className(i.cj.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(Ue,0),this.editor.focus()}updateMarker(ne){this._container.classList.remove("stale"),this._message.update(ne)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(ne,de){super._doLayoutBody(ne,de),this._heightInPixel=ne,this._message.layout(ne,de),this._container.style.height=`${ne}px`}_onWidth(ne){this._message.layout(this._heightInPixel,ne)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};te.TitleMenu=new O.D8("gotoErrorTitleMenu"),te=ie=Y([X(1,V.Gy),X(2,W.C),X(3,O.ez),X(4,n._Y),X(5,w.fN),X(6,E.L)],te);const D=(0,B.yLr)(B.Rbi,B.AN$),he=(0,B.yLr)(B.Hng,B.Stt),ve=(0,B.yLr)(B.pOz,B.IIb),Ce=(0,B.x1A)("editorMarkerNavigationError.background",{dark:D,light:D,hcDark:B.b1q,hcLight:B.b1q},b.kg("editorMarkerNavigationError","Editor marker navigation widget error color.")),Pe=(0,B.x1A)("editorMarkerNavigationError.headerBackground",{dark:(0,B.JO0)(Ce,.1),light:(0,B.JO0)(Ce,.1),hcDark:null,hcLight:null},b.kg("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),_e=(0,B.x1A)("editorMarkerNavigationWarning.background",{dark:he,light:he,hcDark:B.b1q,hcLight:B.b1q},b.kg("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),ee=(0,B.x1A)("editorMarkerNavigationWarning.headerBackground",{dark:(0,B.JO0)(_e,.1),light:(0,B.JO0)(_e,.1),hcDark:"#0C141F",hcLight:(0,B.JO0)(_e,.2)},b.kg("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),De=(0,B.x1A)("editorMarkerNavigationInfo.background",{dark:ve,light:ve,hcDark:B.b1q,hcLight:B.b1q},b.kg("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Te=(0,B.x1A)("editorMarkerNavigationInfo.headerBackground",{dark:(0,B.JO0)(De,.1),light:(0,B.JO0)(De,.1),hcDark:null,hcLight:null},b.kg("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),He=(0,B.x1A)("editorMarkerNavigation.background",{dark:B.YtV,light:B.YtV,hcDark:B.YtV,hcLight:B.YtV},b.kg("editorMarkerNavigationBackground","Editor marker navigation widget background."));var qe=function(oe,ne,de,Le){var We=arguments.length,we=We<3?ne:Le===null?Le=Object.getOwnPropertyDescriptor(ne,de):Le,Ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(oe,ne,de,Le);else for(var lt=oe.length-1;lt>=0;lt--)(Ue=oe[lt])&&(we=(We<3?Ue(we):We>3?Ue(ne,de,we):Ue(ne,de))||we);return We>3&&we&&Object.defineProperty(ne,de,we),we},Qe=function(oe,ne){return function(de,Le){ne(de,Le,oe)}},q;let ye=q=class{static get(ne){return ne.getContribution(q.ID)}constructor(ne,de,Le,We,we){this._markerNavigationService=de,this._contextKeyService=Le,this._editorService=We,this._instantiationService=we,this._sessionDispoables=new F.Cm,this._editor=ne,this._widgetVisible=fe.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(ne){if(this._model&&this._model.matches(ne))return this._model;let de=!1;return this._model&&(de=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(ne),de&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(te,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(Le=>{var We,we,Ue;(!(!((We=this._model)===null||We===void 0)&&We.selected)||!g.Q.containsPosition((we=this._model)===null||we===void 0?void 0:we.selected.marker,Le.position))&&((Ue=this._model)===null||Ue===void 0||Ue.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;const Le=this._model.find(this._editor.getModel().uri,this._widget.position);Le?this._widget.updateMarker(Le.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(Le=>{this._editorService.openCodeEditor({resource:Le.resource,options:{pinned:!0,revealIfOpened:!0,selection:g.Q.lift(Le).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(ne=!0){this._cleanUp(),ne&&this._editor.focus()}showAtMarker(ne){if(this._editor.hasModel()){const de=this._getOrCreateModel(this._editor.getModel().uri);de.resetIndex(),de.move(!0,this._editor.getModel(),new L.y(ne.startLineNumber,ne.startColumn)),de.selected&&this._widget.showAtMarker(de.selected.marker,de.selected.index,de.selected.total)}}async nagivate(ne,de){var Le,We;if(this._editor.hasModel()){const we=this._getOrCreateModel(de?void 0:this._editor.getModel().uri);if(we.move(ne,this._editor.getModel(),this._editor.getPosition()),!we.selected)return;if(we.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();const Ue=await this._editorService.openCodeEditor({resource:we.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:we.selected.marker}},this._editor);Ue&&((Le=q.get(Ue))===null||Le===void 0||Le.close(),(We=q.get(Ue))===null||We===void 0||We.nagivate(ne,de))}else this._widget.showAtMarker(we.selected.marker,we.selected.index,we.selected.total)}}};ye.ID="editor.contrib.markerController",ye=q=qe([Qe(1,v),Qe(2,w.fN),Qe(3,M.T),Qe(4,n._Y)],ye);class ge extends k.ks{constructor(ne,de,Le){super(Le),this._next=ne,this._multiFile=de}async run(ne,de){var Le;de.hasModel()&&((Le=ye.get(de))===null||Le===void 0||Le.nagivate(this._next,this._multiFile))}}class be extends ge{constructor(){super(!0,!1,{id:be.ID,label:be.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:x.R.focus,primary:578,weight:100},menuOpts:{menuId:te.TitleMenu,title:be.LABEL,icon:(0,j.pU)("marker-navigation-next",r.W.arrowDown,b.kg("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}}be.ID="editor.action.marker.next",be.LABEL=b.kg("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");class Se extends ge{constructor(){super(!1,!1,{id:Se.ID,label:Se.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:x.R.focus,primary:1602,weight:100},menuOpts:{menuId:te.TitleMenu,title:Se.LABEL,icon:(0,j.pU)("marker-navigation-previous",r.W.arrowUp,b.kg("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}}Se.ID="editor.action.marker.prev",Se.LABEL=b.kg("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");class ae extends ge{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:b.kg("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:x.R.focus,primary:66,weight:100},menuOpts:{menuId:O.D8.MenubarGoMenu,title:b.kg({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}}class me extends ge{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:b.kg("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:x.R.focus,primary:1090,weight:100},menuOpts:{menuId:O.D8.MenubarGoMenu,title:b.kg({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}}(0,k.HW)(ye.ID,ye,4),(0,k.Fl)(be),(0,k.Fl)(Se),(0,k.Fl)(ae),(0,k.Fl)(me);const fe=new w.N1("markersNavigationVisible",!1),le=k.DX.bindToContribution(ye.get);(0,k.E_)(new le({id:"closeMarkersNavigation",precondition:fe,handler:oe=>oe.close(),kbOpts:{weight:150,kbExpr:x.R.focus,primary:9,secondary:[1033]}}))},"./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js":function(pt,Me,e){e.d(Me,{mR:function(){return De},bn:function(){return ee},QS:function(){return _e}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),u=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),C=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),h=e("./node_modules/monaco-editor/esm/vs/nls.js"),v=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),p=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),O=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),w=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js"),j=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),U=function(ye,ge,be,Se){var ae=arguments.length,me=ae<3?ge:Se===null?Se=Object.getOwnPropertyDescriptor(ge,be):Se,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(ye,ge,be,Se);else for(var le=ye.length-1;le>=0;le--)(fe=ye[le])&&(me=(ae<3?fe(me):ae>3?fe(ge,be,me):fe(ge,be))||me);return ae>3&&me&&Object.defineProperty(ge,be,me),me},K=function(ye,ge){return function(be,Se){ge(be,Se,ye)}};const G=new v.N1("hasSymbols",!1,(0,h.kg)("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),P=(0,b.u1)("ISymbolNavigationService");let A=class{constructor(ge,be,Se,ae){this._editorService=be,this._notificationService=Se,this._keybindingService=ae,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=G.bindTo(ge)}reset(){var ge,be;this._ctxHasSymbols.reset(),(ge=this._currentState)===null||ge===void 0||ge.dispose(),(be=this._currentMessage)===null||be===void 0||be.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(ge){const be=ge.parent.parent;if(be.references.length<=1){this.reset();return}this._currentModel=be,this._currentIdx=be.references.indexOf(ge),this._ctxHasSymbols.set(!0),this._showMessage();const Se=new T(this._editorService),ae=Se.onDidChange(me=>{if(this._ignoreEditorChange)return;const fe=this._editorService.getActiveCodeEditor();if(!fe)return;const le=fe.getModel(),oe=fe.getPosition();if(!le||!oe)return;let ne=!1,de=!1;for(const Le of be.references)if((0,C.n4)(Le.uri,le.uri))ne=!0,de=de||a.Q.containsPosition(Le.range,oe);else if(ne)break;(!ne||!de)&&this.reset()});this._currentState=(0,u.qE)(Se,ae)}revealNext(ge){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;const be=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:be.uri,options:{selection:a.Q.collapseToStart(be.range),selectionRevealType:3}},ge).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var ge;(ge=this._currentMessage)===null||ge===void 0||ge.dispose();const be=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),Se=be?(0,h.kg)("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,be.getLabel()):(0,h.kg)("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(Se)}};A=U([K(0,v.fN),K(1,S.T),K(2,j.Ot),K(3,O.b)],A),(0,p.v)(P,A,1),(0,I.E_)(new class extends I.DX{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:G,kbOpts:{weight:100,primary:70}})}runEditorCommand(ye,ge){return ye.get(P).revealNext(ge)}}),w.f.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:G,primary:9,handler(ye){ye.get(P).reset()}});let T=class{constructor(ge){this._listener=new Map,this._disposables=new u.Cm,this._onDidChange=new m.vl,this.onDidChange=this._onDidChange.event,this._disposables.add(ge.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(ge.onCodeEditorAdd(this._onDidAddEditor,this)),ge.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),(0,u.AS)(this._listener.values())}_onDidAddEditor(ge){this._listener.set(ge,(0,u.qE)(ge.onDidChangeCursorPosition(be=>this._onDidChange.fire({editor:ge})),ge.onDidChangeModelContent(be=>this._onDidChange.fire({editor:ge}))))}_onDidRemoveEditor(ge){var be;(be=this._listener.get(ge))===null||be===void 0||be.dispose(),this._listener.delete(ge)}};T=U([K(0,S.T)],T);var E=e("./node_modules/monaco-editor/esm/vs/editor/contrib/message/browser/messageController.js"),W=e("./node_modules/monaco-editor/esm/vs/editor/contrib/peekView/browser/peekView.js"),$=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),z=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),J=e("./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"),B=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToSymbol.js"),V=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),Y=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js"),X=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkeys.js"),ie,re,te,D,he,ve,Ce,Pe;$.ZG.appendMenuItem($.D8.EditorContext,{submenu:$.D8.EditorContextPeek,title:h.kg("peek.submenu","Peek"),group:"navigation",order:100});class _e{static is(ge){return!ge||typeof ge!="object"?!1:!!(ge instanceof _e||d.y.isIPosition(ge.position)&&ge.model)}constructor(ge,be){this.model=ge,this.position=be}}class ee extends I.qO{static all(){return ee._allSymbolNavigationCommands.values()}static _patchConfig(ge){const be={...ge,f1:!0};if(be.menu)for(const Se of Y.f.wrap(be.menu))(Se.id===$.D8.EditorContext||Se.id===$.D8.EditorContextPeek)&&(Se.when=v.M$.and(ge.precondition,Se.when));return be}constructor(ge,be){super(ee._patchConfig(be)),this.configuration=ge,ee._allSymbolNavigationCommands.set(be.id,this)}runEditorCommand(ge,be,Se,ae){if(!be.hasModel())return Promise.resolve(void 0);const me=ge.get(j.Ot),fe=ge.get(S.T),le=ge.get(J.N8),oe=ge.get(P),ne=ge.get(V.u),de=ge.get(b._Y),Le=be.getModel(),We=be.getPosition(),we=_e.is(Se)?Se:new _e(Le,We),Ue=new g.gI(be,5),lt=(0,F.PK)(this._getLocationModel(ne,we.model,we.position,Ue.token),Ue.token).then(async Et=>{var Kt;if(!Et||Ue.token.isCancellationRequested)return;(0,r.xE)(Et.ariaMessage);let Zt;if(Et.referenceAt(Le.uri,We)){const tt=this._getAlternativeCommand(be);!ee._activeAlternativeCommands.has(tt)&&ee._allSymbolNavigationCommands.has(tt)&&(Zt=ee._allSymbolNavigationCommands.get(tt))}const qt=Et.references.length;if(qt===0){if(!this.configuration.muteMessage){const tt=Le.getWordAtPosition(We);(Kt=E.k.get(be))===null||Kt===void 0||Kt.showMessage(this._getNoResultFoundMessage(tt),We)}}else if(qt===1&&Zt)ee._activeAlternativeCommands.add(this.desc.id),de.invokeFunction(tt=>Zt.runEditorCommand(tt,be,Se,ae).finally(()=>{ee._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(fe,oe,be,Et,ae)},Et=>{me.error(Et)}).finally(()=>{Ue.dispose()});return le.showWhile(lt,250),lt}async _onResult(ge,be,Se,ae,me){const fe=this._getGoToPreference(Se);if(!(Se instanceof f.t)&&(this.configuration.openInPeek||fe==="peek"&&ae.references.length>1))this._openInPeek(Se,ae,me);else{const le=ae.firstReference(),oe=ae.references.length>1&&fe==="gotoAndPeek",ne=await this._openReference(Se,ge,le,this.configuration.openToSide,!oe);oe&&ne?this._openInPeek(ne,ae,me):ae.dispose(),fe==="goto"&&be.put(le)}}async _openReference(ge,be,Se,ae,me){let fe;if((0,n.Iu)(Se)&&(fe=Se.targetSelectionRange),fe||(fe=Se.range),!fe)return;const le=await be.openCodeEditor({resource:Se.uri,options:{selection:a.Q.collapseToStart(fe),selectionRevealType:3,selectionSource:"code.jump"}},ge,ae);if(le){if(me){const oe=le.getModel(),ne=le.createDecorationsCollection([{range:fe,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{le.getModel()===oe&&ne.clear()},350)}return le}}_openInPeek(ge,be,Se){const ae=i.X.get(ge);ae&&ge.hasModel()?ae.toggleWidget(Se??ge.getSelection(),(0,F.SS)(me=>Promise.resolve(be)),this.configuration.openInPeek):be.dispose()}}ee._allSymbolNavigationCommands=new Map,ee._activeAlternativeCommands=new Set;class De extends ee{async _getLocationModel(ge,be,Se,ae){return new c.y4(await(0,B.hE)(ge.definitionProvider,be,Se,ae),h.kg("def.title","Definitions"))}_getNoResultFoundMessage(ge){return ge&&ge.word?h.kg("noResultWord","No definition found for '{0}'",ge.word):h.kg("generic.noResults","No definition found")}_getAlternativeCommand(ge){return ge.getOption(58).alternativeDefinitionCommand}_getGoToPreference(ge){return ge.getOption(58).multipleDefinitions}}(0,$.ug)((ie=class extends De{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:ie.id,title:{...h.aS("actions.goToDecl.label","Go to Definition"),mnemonicTitle:h.kg({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:s.R.hasDefinitionProvider,keybinding:[{when:s.R.editorTextFocus,primary:70,weight:100},{when:v.M$.and(s.R.editorTextFocus,X.W0),primary:2118,weight:100}],menu:[{id:$.D8.EditorContext,group:"navigation",order:1.1},{id:$.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),z.w.registerCommandAlias("editor.action.goToDeclaration",ie.id)}},ie.id="editor.action.revealDefinition",ie)),(0,$.ug)((re=class extends De{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:re.id,title:h.aS("actions.goToDeclToSide.label","Open Definition to the Side"),precondition:v.M$.and(s.R.hasDefinitionProvider,s.R.isInEmbeddedEditor.toNegated()),keybinding:[{when:s.R.editorTextFocus,primary:(0,k.m5)(2089,70),weight:100},{when:v.M$.and(s.R.editorTextFocus,X.W0),primary:(0,k.m5)(2089,2118),weight:100}]}),z.w.registerCommandAlias("editor.action.openDeclarationToTheSide",re.id)}},re.id="editor.action.revealDefinitionAside",re)),(0,$.ug)((te=class extends De{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:te.id,title:h.aS("actions.previewDecl.label","Peek Definition"),precondition:v.M$.and(s.R.hasDefinitionProvider,W.x2.notInPeekEditor,s.R.isInEmbeddedEditor.toNegated()),keybinding:{when:s.R.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:$.D8.EditorContextPeek,group:"peek",order:2}}),z.w.registerCommandAlias("editor.action.previewDeclaration",te.id)}},te.id="editor.action.peekDefinition",te));class Te extends ee{async _getLocationModel(ge,be,Se,ae){return new c.y4(await(0,B.sv)(ge.declarationProvider,be,Se,ae),h.kg("decl.title","Declarations"))}_getNoResultFoundMessage(ge){return ge&&ge.word?h.kg("decl.noResultWord","No declaration found for '{0}'",ge.word):h.kg("decl.generic.noResults","No declaration found")}_getAlternativeCommand(ge){return ge.getOption(58).alternativeDeclarationCommand}_getGoToPreference(ge){return ge.getOption(58).multipleDeclarations}}(0,$.ug)((D=class extends Te{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:D.id,title:{...h.aS("actions.goToDeclaration.label","Go to Declaration"),mnemonicTitle:h.kg({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:v.M$.and(s.R.hasDeclarationProvider,s.R.isInEmbeddedEditor.toNegated()),menu:[{id:$.D8.EditorContext,group:"navigation",order:1.3},{id:$.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(ge){return ge&&ge.word?h.kg("decl.noResultWord","No declaration found for '{0}'",ge.word):h.kg("decl.generic.noResults","No declaration found")}},D.id="editor.action.revealDeclaration",D)),(0,$.ug)(class extends Te{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:h.aS("actions.peekDecl.label","Peek Declaration"),precondition:v.M$.and(s.R.hasDeclarationProvider,W.x2.notInPeekEditor,s.R.isInEmbeddedEditor.toNegated()),menu:{id:$.D8.EditorContextPeek,group:"peek",order:3}})}});class He extends ee{async _getLocationModel(ge,be,Se,ae){return new c.y4(await(0,B.f9)(ge.typeDefinitionProvider,be,Se,ae),h.kg("typedef.title","Type Definitions"))}_getNoResultFoundMessage(ge){return ge&&ge.word?h.kg("goToTypeDefinition.noResultWord","No type definition found for '{0}'",ge.word):h.kg("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(ge){return ge.getOption(58).alternativeTypeDefinitionCommand}_getGoToPreference(ge){return ge.getOption(58).multipleTypeDefinitions}}(0,$.ug)((he=class extends He{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:he.ID,title:{...h.aS("actions.goToTypeDefinition.label","Go to Type Definition"),mnemonicTitle:h.kg({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:s.R.hasTypeDefinitionProvider,keybinding:{when:s.R.editorTextFocus,primary:0,weight:100},menu:[{id:$.D8.EditorContext,group:"navigation",order:1.4},{id:$.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},he.ID="editor.action.goToTypeDefinition",he)),(0,$.ug)((ve=class extends He{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:ve.ID,title:h.aS("actions.peekTypeDefinition.label","Peek Type Definition"),precondition:v.M$.and(s.R.hasTypeDefinitionProvider,W.x2.notInPeekEditor,s.R.isInEmbeddedEditor.toNegated()),menu:{id:$.D8.EditorContextPeek,group:"peek",order:4}})}},ve.ID="editor.action.peekTypeDefinition",ve));class qe extends ee{async _getLocationModel(ge,be,Se,ae){return new c.y4(await(0,B.eS)(ge.implementationProvider,be,Se,ae),h.kg("impl.title","Implementations"))}_getNoResultFoundMessage(ge){return ge&&ge.word?h.kg("goToImplementation.noResultWord","No implementation found for '{0}'",ge.word):h.kg("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(ge){return ge.getOption(58).alternativeImplementationCommand}_getGoToPreference(ge){return ge.getOption(58).multipleImplementations}}(0,$.ug)((Ce=class extends qe{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Ce.ID,title:{...h.aS("actions.goToImplementation.label","Go to Implementations"),mnemonicTitle:h.kg({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:s.R.hasImplementationProvider,keybinding:{when:s.R.editorTextFocus,primary:2118,weight:100},menu:[{id:$.D8.EditorContext,group:"navigation",order:1.45},{id:$.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},Ce.ID="editor.action.goToImplementation",Ce)),(0,$.ug)((Pe=class extends qe{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Pe.ID,title:h.aS("actions.peekImplementation.label","Peek Implementations"),precondition:v.M$.and(s.R.hasImplementationProvider,W.x2.notInPeekEditor,s.R.isInEmbeddedEditor.toNegated()),keybinding:{when:s.R.editorTextFocus,primary:3142,weight:100},menu:{id:$.D8.EditorContextPeek,group:"peek",order:5}})}},Pe.ID="editor.action.peekImplementation",Pe));class Qe extends ee{_getNoResultFoundMessage(ge){return ge?h.kg("references.no","No references found for '{0}'",ge.word):h.kg("references.noGeneric","No references found")}_getAlternativeCommand(ge){return ge.getOption(58).alternativeReferenceCommand}_getGoToPreference(ge){return ge.getOption(58).multipleReferences}}(0,$.ug)(class extends Qe{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{...h.aS("goToReferences.label","Go to References"),mnemonicTitle:h.kg({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:v.M$.and(s.R.hasReferenceProvider,W.x2.notInPeekEditor,s.R.isInEmbeddedEditor.toNegated()),keybinding:{when:s.R.editorTextFocus,primary:1094,weight:100},menu:[{id:$.D8.EditorContext,group:"navigation",order:1.45},{id:$.D8.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}async _getLocationModel(ge,be,Se,ae){return new c.y4(await(0,B.NN)(ge.referenceProvider,be,Se,!0,ae),h.kg("ref.title","References"))}}),(0,$.ug)(class extends Qe{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:h.aS("references.action.label","Peek References"),precondition:v.M$.and(s.R.hasReferenceProvider,W.x2.notInPeekEditor,s.R.isInEmbeddedEditor.toNegated()),menu:{id:$.D8.EditorContextPeek,group:"peek",order:6}})}async _getLocationModel(ge,be,Se,ae){return new c.y4(await(0,B.NN)(ge.referenceProvider,be,Se,!1,ae),h.kg("ref.title","References"))}});class q extends ee{constructor(ge,be,Se){super(ge,{id:"editor.action.goToLocation",title:h.aS("label.generic","Go to Any Symbol"),precondition:v.M$.and(W.x2.notInPeekEditor,s.R.isInEmbeddedEditor.toNegated())}),this._references=be,this._gotoMultipleBehaviour=Se}async _getLocationModel(ge,be,Se,ae){return new c.y4(this._references,h.kg("generic.title","Locations"))}_getNoResultFoundMessage(ge){return ge&&h.kg("generic.noResult","No results for '{0}'",ge.word)||""}_getGoToPreference(ge){var be;return(be=this._gotoMultipleBehaviour)!==null&&be!==void 0?be:ge.getOption(58).multipleReferences}_getAlternativeCommand(){return""}}z.w.registerCommand({id:"editor.action.goToLocations",metadata:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:L.r},{name:"position",description:"The position at which to start",constraint:d.y.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`"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:async(ye,ge,be,Se,ae,me,fe)=>{(0,M.j)(L.r.isUri(ge)),(0,M.j)(d.y.isIPosition(be)),(0,M.j)(Array.isArray(Se)),(0,M.j)(typeof ae>"u"||typeof ae=="string"),(0,M.j)(typeof fe>"u"||typeof fe=="boolean");const le=ye.get(S.T),oe=await le.openCodeEditor({resource:ge},le.getFocusedCodeEditor());if((0,x.z9)(oe))return oe.setPosition(be),oe.revealPositionInCenterIfOutsideViewport(be,0),oe.invokeWithinContext(ne=>{const de=new class extends q{_getNoResultFoundMessage(Le){return me||super._getNoResultFoundMessage(Le)}}({muteMessage:!me,openInPeek:!!fe,openToSide:!1},Se,ae);ne.get(b._Y).invokeFunction(de.run.bind(de),oe)})}}),z.w.registerCommand({id:"editor.action.peekLocations",metadata:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:L.r},{name:"position",description:"The position at which to start",constraint:d.y.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:async(ye,ge,be,Se,ae)=>{ye.get(z.d).executeCommand("editor.action.goToLocations",ge,be,Se,ae,void 0,!0)}}),z.w.registerCommand({id:"editor.action.findReferences",handler:(ye,ge,be)=>{(0,M.j)(L.r.isUri(ge)),(0,M.j)(d.y.isIPosition(be));const Se=ye.get(V.u),ae=ye.get(S.T);return ae.openCodeEditor({resource:ge},ae.getFocusedCodeEditor()).then(me=>{if(!(0,x.z9)(me)||!me.hasModel())return;const fe=i.X.get(me);if(!fe)return;const le=(0,F.SS)(ne=>(0,B.NN)(Se.referenceProvider,me.getModel(),d.y.lift(be),!1,ne).then(de=>new c.y4(de,h.kg("ref.title","References")))),oe=new a.Q(be.lineNumber,be.column,be.lineNumber,be.column);return Promise.resolve(fe.toggleWidget(oe,le,!1))})}}),z.w.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},"./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToSymbol.js":function(pt,Me,e){e.d(Me,{NN:function(){return a},eS:function(){return f},f9:function(){return d},hE:function(){return I},sv:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js");async function x(n,i,c,m){const C=c.ordered(n).map(v=>Promise.resolve(m(v,n,i)).then(void 0,p=>{(0,k.M_)(p)})),h=await Promise.all(C);return(0,r.Yc)(h.flat())}function I(n,i,c,m){return x(i,c,n,(u,C,h)=>u.provideDefinition(C,h,m))}function S(n,i,c,m){return x(i,c,n,(u,C,h)=>u.provideDeclaration(C,h,m))}function f(n,i,c,m){return x(i,c,n,(u,C,h)=>u.provideImplementation(C,h,m))}function d(n,i,c,m){return x(i,c,n,(u,C,h)=>u.provideTypeDefinition(C,h,m))}function a(n,i,c,m,u){return x(i,c,n,async(C,h,v)=>{const p=await C.provideReferences(h,v,{includeDeclaration:!0},u);if(!m||!p||p.length!==2)return p;const b=await C.provideReferences(h,v,{includeDeclaration:!1},u);return b&&b.length===1?b:p})}async function s(n){const i=await n(),c=new g.y4(i,""),m=c.references.map(u=>u.link);return c.dispose(),m}(0,M.ke)("_executeDefinitionProvider",(n,i,c)=>{const m=n.get(L.u),u=I(m.definitionProvider,i,c,F.X.None);return s(()=>u)}),(0,M.ke)("_executeTypeDefinitionProvider",(n,i,c)=>{const m=n.get(L.u),u=d(m.typeDefinitionProvider,i,c,F.X.None);return s(()=>u)}),(0,M.ke)("_executeDeclarationProvider",(n,i,c)=>{const m=n.get(L.u),u=S(m.declarationProvider,i,c,F.X.None);return s(()=>u)}),(0,M.ke)("_executeReferenceProvider",(n,i,c)=>{const m=n.get(L.u),u=a(m.referenceProvider,i,c,!1,F.X.None);return s(()=>u)}),(0,M.ke)("_executeImplementationProvider",(n,i,c)=>{const m=n.get(L.u),u=f(m.implementationProvider,i,c,F.X.None);return s(()=>u)})},"./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js":function(pt,Me,e){e.d(Me,{gi:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");function M(f,d){return!!f[d]}class L{constructor(d,a){this.target=d.target,this.isLeftClick=d.event.leftButton,this.isMiddleClick=d.event.middleButton,this.isRightClick=d.event.rightButton,this.hasTriggerModifier=M(d.event,a.triggerModifier),this.hasSideBySideModifier=M(d.event,a.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=d.event.detail<=1}}class g{constructor(d,a){this.keyCodeIsTriggerKey=d.keyCode===a.triggerKey,this.keyCodeIsSideBySideKey=d.keyCode===a.triggerSideBySideKey,this.hasTriggerModifier=M(d,a.triggerModifier)}}class x{constructor(d,a,s,n){this.triggerKey=d,this.triggerModifier=a,this.triggerSideBySideKey=s,this.triggerSideBySideModifier=n}equals(d){return this.triggerKey===d.triggerKey&&this.triggerModifier===d.triggerModifier&&this.triggerSideBySideKey===d.triggerSideBySideKey&&this.triggerSideBySideModifier===d.triggerSideBySideModifier}}function I(f){return f==="altKey"?k.zx?new x(57,"metaKey",6,"altKey"):new x(5,"ctrlKey",6,"altKey"):k.zx?new x(6,"altKey",57,"metaKey"):new x(6,"altKey",5,"ctrlKey")}class S extends F.jG{constructor(d,a){var s;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new r.vl),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new r.vl),this.onExecute=this._onExecute.event,this._onCancel=this._register(new r.vl),this.onCancel=this._onCancel.event,this._editor=d,this._extractLineNumberFromMouseEvent=(s=a?.extractLineNumberFromMouseEvent)!==null&&s!==void 0?s:n=>n.target.position?n.target.position.lineNumber:0,this._opts=I(this._editor.getOption(78)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(n=>{if(n.hasChanged(78)){const i=I(this._editor.getOption(78));if(this._opts.equals(i))return;this._opts=i,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(n=>this._onEditorMouseMove(new L(n,this._opts)))),this._register(this._editor.onMouseDown(n=>this._onEditorMouseDown(new L(n,this._opts)))),this._register(this._editor.onMouseUp(n=>this._onEditorMouseUp(new L(n,this._opts)))),this._register(this._editor.onKeyDown(n=>this._onEditorKeyDown(new g(n,this._opts)))),this._register(this._editor.onKeyUp(n=>this._onEditorKeyUp(new g(n,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(n=>this._onDidChangeCursorSelection(n))),this._register(this._editor.onDidChangeModel(n=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(n=>{(n.scrollTopChanged||n.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(d){d.selection&&d.selection.startColumn!==d.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(d){this._lastMouseMoveEvent=d,this._onMouseMoveOrRelevantKeyDown.fire([d,null])}_onEditorMouseDown(d){this._hasTriggerKeyOnMouseDown=d.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(d)}_onEditorMouseUp(d){const a=this._extractLineNumberFromMouseEvent(d);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===a&&this._onExecute.fire(d)}_onEditorKeyDown(d){this._lastMouseMoveEvent&&(d.keyCodeIsTriggerKey||d.keyCodeIsSideBySideKey&&d.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,d]):d.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(d){d.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js":function(pt,Me,e){e.d(Me,{k:function(){return v}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/peekView/browser/peekView.js"),a=e("./node_modules/monaco-editor/esm/vs/nls.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToSymbol.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),u=function(p,b,O,w){var j=arguments.length,U=j<3?b:w===null?w=Object.getOwnPropertyDescriptor(b,O):w,K;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")U=Reflect.decorate(p,b,O,w);else for(var G=p.length-1;G>=0;G--)(K=p[G])&&(U=(j<3?K(U):j>3?K(b,O,U):K(b,O))||U);return j>3&&U&&Object.defineProperty(b,O,U),U},C=function(p,b){return function(O,w){b(O,w,p)}},h;let v=h=class{constructor(b,O,w,j){this.textModelResolverService=O,this.languageService=w,this.languageFeaturesService=j,this.toUnhook=new M.Cm,this.toUnhookForKeyboard=new M.Cm,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=b,this.linkDecorations=this.editor.createDecorationsCollection();const U=new f.gi(b);this.toUnhook.add(U),this.toUnhook.add(U.onMouseMoveOrRelevantKeyDown(([K,G])=>{this.startFindDefinitionFromMouse(K,G??void 0)})),this.toUnhook.add(U.onExecute(K=>{this.isEnabled(K)&&this.gotoDefinition(K.target.position,K.hasSideBySideModifier).catch(G=>{(0,F.dz)(G)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(U.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(b){return b.getContribution(h.ID)}async startFindDefinitionFromCursor(b){await this.startFindDefinition(b),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(O=>{O&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))}startFindDefinitionFromMouse(b,O){if(b.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(b,O)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}const w=b.target.position;this.startFindDefinition(w)}async startFindDefinition(b){var O;this.toUnhookForKeyboard.clear();const w=b?(O=this.editor.getModel())===null||O===void 0?void 0:O.getWordAtPosition(b):null;if(!w){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===w.startColumn&&this.currentWordAtPosition.endColumn===w.endColumn&&this.currentWordAtPosition.word===w.word)return;this.currentWordAtPosition=w;const j=new L.$t(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=(0,r.SS)(G=>this.findDefinition(b,G));let U;try{U=await this.previousPromise}catch(G){(0,F.dz)(G);return}if(!U||!U.length||!j.validate(this.editor)){this.removeLinkDecorations();return}const K=U[0].originSelectionRange?x.Q.lift(U[0].originSelectionRange):new x.Q(b.lineNumber,w.startColumn,b.lineNumber,w.endColumn);if(U.length>1){let G=K;for(const{originSelectionRange:P}of U)P&&(G=x.Q.plusRange(G,P));this.addDecoration(G,new k.Bc().appendText(a.kg("multipleResults","Click to show {0} definitions.",U.length)))}else{const G=U[0];if(!G.uri)return;this.textModelResolverService.createModelReference(G.uri).then(P=>{if(!P.object||!P.object.textEditorModel){P.dispose();return}const{object:{textEditorModel:A}}=P,{startLineNumber:T}=G.range;if(T<1||T>A.getLineCount()){P.dispose();return}const E=this.getPreviewValue(A,T,G),W=this.languageService.guessLanguageIdByFilepathOrFirstLine(A.uri);this.addDecoration(K,E?new k.Bc().appendCodeblock(W||"",E):void 0),P.dispose()})}}getPreviewValue(b,O,w){let j=w.range;return j.endLineNumber-j.startLineNumber>=h.MAX_SOURCE_PREVIEW_LINES&&(j=this.getPreviewRangeBasedOnIndentation(b,O)),this.stripIndentationFromPreviewRange(b,O,j)}stripIndentationFromPreviewRange(b,O,w){let U=b.getLineFirstNonWhitespaceColumn(O);for(let G=O+1;G{const j=!O&&this.editor.getOption(88)&&!this.isInPeekEditor(w);return new n.mR({openToSide:O,openInPeek:j,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(w)})}isInPeekEditor(b){const O=b.get(s.fN);return d.x2.inPeekEditor.getValue(O)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};v.ID="editor.contrib.gotodefinitionatposition",v.MAX_SOURCE_PREVIEW_LINES=8,v=h=u([C(1,S.b),C(2,I.L),C(3,c.u)],v),(0,g.HW)(v.ID,v,2)},"./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js":function(pt,Me,e){e.d(Me,{X:function(){return fe}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/contrib/peekView/browser/peekView.js"),S=e("./node_modules/monaco-editor/esm/vs/nls.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/list/browser/listService.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),m=e("./node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js"),C=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),h=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/splitview/splitview.js"),v=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),p=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),b=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),O=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),w=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js"),j=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),U=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),K=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/modesRegistry.js"),G=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),P=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),A=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/countBadge/countBadge.js"),T=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/highlightedlabel/highlightedLabel.js"),E=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabel.js"),W=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),$=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),z=e("./node_modules/monaco-editor/esm/vs/platform/label/common/label.js"),J=e("./node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js"),B=function(oe,ne,de,Le){var We=arguments.length,we=We<3?ne:Le===null?Le=Object.getOwnPropertyDescriptor(ne,de):Le,Ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(oe,ne,de,Le);else for(var lt=oe.length-1;lt>=0;lt--)(Ue=oe[lt])&&(we=(We<3?Ue(we):We>3?Ue(ne,de,we):Ue(ne,de))||we);return We>3&&we&&Object.defineProperty(ne,de,we),we},V=function(oe,ne){return function(de,Le){ne(de,Le,oe)}},Y;let X=class{constructor(ne){this._resolverService=ne}hasChildren(ne){return ne instanceof u.y4||ne instanceof u.$L}getChildren(ne){if(ne instanceof u.y4)return ne.groups;if(ne instanceof u.$L)return ne.resolve(this._resolverService).then(de=>de.children);throw new Error("bad tree")}};X=B([V(0,P.b)],X);class ie{getHeight(){return 23}getTemplateId(ne){return ne instanceof u.$L?he.id:Ce.id}}let re=class{constructor(ne){this._keybindingService=ne}getKeyboardNavigationLabel(ne){var de;if(ne instanceof u.yc){const Le=(de=ne.parent.getPreview(ne))===null||de===void 0?void 0:de.preview(ne.range);if(Le)return Le.value}return(0,O.P8)(ne.uri)}};re=B([V(0,$.b)],re);class te{getId(ne){return ne instanceof u.yc?ne.id:ne.uri}}let D=class extends M.jG{constructor(ne,de){super(),this._labelService=de;const Le=document.createElement("div");Le.classList.add("reference-file"),this.file=this._register(new E.s(Le,{supportHighlights:!0})),this.badge=new A.x(C.BC(Le,C.$(".count")),{},J.m$),ne.appendChild(Le)}set(ne,de){const Le=(0,O.pD)(ne.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(ne.uri),this._labelService.getUriLabel(Le,{relative:!0}),{title:this._labelService.getUriLabel(ne.uri),matches:de});const We=ne.children.length;this.badge.setCount(We),We>1?this.badge.setTitleFormat((0,S.kg)("referencesCount","{0} references",We)):this.badge.setTitleFormat((0,S.kg)("referenceCount","{0} reference",We))}};D=B([V(1,z.L)],D);let he=Y=class{constructor(ne){this._instantiationService=ne,this.templateId=Y.id}renderTemplate(ne){return this._instantiationService.createInstance(D,ne)}renderElement(ne,de,Le){Le.set(ne.element,(0,W.WJ)(ne.filterData))}disposeTemplate(ne){ne.dispose()}};he.id="FileReferencesRenderer",he=Y=B([V(0,s._Y)],he);class ve extends M.jG{constructor(ne){super(),this.label=this._register(new T._(ne))}set(ne,de){var Le;const We=(Le=ne.parent.getPreview(ne))===null||Le===void 0?void 0:Le.preview(ne.range);if(!We||!We.value)this.label.set(`${(0,O.P8)(ne.uri)}:${ne.range.startLineNumber+1}:${ne.range.startColumn+1}`);else{const{value:we,highlight:Ue}=We;de&&!W.ne.isDefault(de)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(we,(0,W.WJ)(de))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(we,[Ue]))}}}class Ce{constructor(){this.templateId=Ce.id}renderTemplate(ne){return new ve(ne)}renderElement(ne,de,Le){Le.set(ne.element,ne.filterData)}disposeTemplate(ne){ne.dispose()}}Ce.id="OneReferenceRenderer";class Pe{getWidgetAriaLabel(){return(0,S.kg)("treeAriaLabel","References")}getAriaLabel(ne){return ne.ariaMessage}}var _e=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),ee=e("./node_modules/monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js"),De=function(oe,ne,de,Le){var We=arguments.length,we=We<3?ne:Le===null?Le=Object.getOwnPropertyDescriptor(ne,de):Le,Ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(oe,ne,de,Le);else for(var lt=oe.length-1;lt>=0;lt--)(Ue=oe[lt])&&(we=(We<3?Ue(we):We>3?Ue(ne,de,we):Ue(ne,de))||we);return We>3&&we&&Object.defineProperty(ne,de,we),we},Te=function(oe,ne){return function(de,Le){ne(de,Le,oe)}};class He{constructor(ne,de){this._editor=ne,this._model=de,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new M.Cm,this._callOnModelChange=new M.Cm,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();const ne=this._editor.getModel();if(ne){for(const de of this._model.references)if(de.uri.toString()===ne.uri.toString()){this._addDecorations(de.parent);return}}}_addDecorations(ne){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));const de=[],Le=[];for(let We=0,we=ne.children.length;We{const we=We.deltaDecorations([],de);for(let Ue=0;Ue{we.equals(9)&&(this._keybindingService.dispatchEvent(we,we.target),we.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(Qe,"ReferencesWidget",this._treeContainer,new ie,[this._instantiationService.createInstance(he),this._instantiationService.createInstance(Ce)],this._instantiationService.createInstance(X),Le),this._splitView.addView({onDidChange:p.Jh.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:we=>{this._preview.layout({height:this._dim.height,width:we})}},h.X.Distribute),this._splitView.addView({onDidChange:p.Jh.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:we=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${we}px`,this._tree.layout(this._dim.height,we)}},h.X.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));const We=(we,Ue)=>{we instanceof u.yc&&(Ue==="show"&&this._revealReference(we,!1),this._onDidSelectReference.fire({element:we,kind:Ue,source:"tree"}))};this._tree.onDidOpen(we=>{we.sideBySide?We(we.element,"side"):we.editorOptions.pinned?We(we.element,"goto"):We(we.element,"show")}),C.jD(this._treeContainer)}_onWidth(ne){this._dim&&this._doLayoutBody(this._dim.height,ne)}_doLayoutBody(ne,de){super._doLayoutBody(ne,de),this._dim=new C.fg(de,ne),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(de),this._splitView.resizeView(0,de*this.layoutData.ratio)}setSelection(ne){return this._revealReference(ne,!0).then(()=>{this._model&&(this._tree.setSelection([ne]),this._tree.setFocus([ne]))})}setModel(ne){return this._disposeOnNewModel.clear(),this._model=ne,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=S.kg("noResults","No results"),C.WU(this._messageContainer),Promise.resolve(void 0)):(C.jD(this._messageContainer),this._decorationsManager=new He(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(ne=>this._tree.rerender(ne))),this._disposeOnNewModel.add(this._preview.onMouseDown(ne=>{const{event:de,target:Le}=ne;if(de.detail!==2)return;const We=this._getFocusedReference();We&&this._onDidSelectReference.fire({element:{uri:We.uri,range:Le.range},kind:de.ctrlKey||de.metaKey||de.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),C.WU(this._treeContainer),C.WU(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){const[ne]=this._tree.getFocus();if(ne instanceof u.yc)return ne;if(ne instanceof u.$L&&ne.children.length>0)return ne.children[0]}async revealReference(ne){await this._revealReference(ne,!1),this._onDidSelectReference.fire({element:ne,kind:"goto",source:"tree"})}async _revealReference(ne,de){if(this._revealedReference===ne)return;this._revealedReference=ne,ne.uri.scheme!==b.ny.inMemory?this.setTitle((0,O.Pi)(ne.uri),this._uriLabel.getUriLabel((0,O.pD)(ne.uri))):this.setTitle(S.kg("peekView.alternateTitle","References"));const Le=this._textModelResolverService.createModelReference(ne.uri);this._tree.getInput()===ne.parent?this._tree.reveal(ne):(de&&this._tree.reveal(ne.parent),await this._tree.expand(ne.parent),this._tree.reveal(ne));const We=await Le;if(!this._model){We.dispose();return}(0,M.AS)(this._previewModelReference);const we=We.object;if(we){const Ue=this._preview.getModel()===we.textEditorModel?0:1,lt=x.Q.lift(ne.range).collapseToStart();this._previewModelReference=We,this._preview.setModel(we.textEditorModel),this._preview.setSelection(lt),this._preview.revealRangeInCenter(lt,Ue)}else this._preview.setModel(this._previewNotAvailableMessage),We.dispose()}};q=De([Te(3,_e.Gy),Te(4,P.b),Te(5,s._Y),Te(6,I.zn),Te(7,z.L),Te(8,ee.$D),Te(9,$.b),Te(10,G.L),Te(11,U.JZ)],q);var ye=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),ge=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkeys.js"),be=function(oe,ne,de,Le){var We=arguments.length,we=We<3?ne:Le===null?Le=Object.getOwnPropertyDescriptor(ne,de):Le,Ue;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")we=Reflect.decorate(oe,ne,de,Le);else for(var lt=oe.length-1;lt>=0;lt--)(Ue=oe[lt])&&(we=(We<3?Ue(we):We>3?Ue(ne,de,we):Ue(ne,de))||we);return We>3&&we&&Object.defineProperty(ne,de,we),we},Se=function(oe,ne){return function(de,Le){ne(de,Le,oe)}},ae;const me=new a.N1("referenceSearchVisible",!1,S.kg("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'"));let fe=ae=class{static get(ne){return ne.getContribution(ae.ID)}constructor(ne,de,Le,We,we,Ue,lt,Et){this._defaultTreeKeyboardSupport=ne,this._editor=de,this._editorService=We,this._notificationService=we,this._instantiationService=Ue,this._storageService=lt,this._configurationService=Et,this._disposables=new M.Cm,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=me.bindTo(Le)}dispose(){var ne,de;this._referenceSearchVisible.reset(),this._disposables.dispose(),(ne=this._widget)===null||ne===void 0||ne.dispose(),(de=this._model)===null||de===void 0||de.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(ne,de,Le){let We;if(this._widget&&(We=this._widget.position),this.closeWidget(),We&&ne.containsPosition(We))return;this._peekMode=Le,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));const we="peekViewLayout",Ue=qe.fromJSON(this._storageService.get(we,0,"{}"));this._widget=this._instantiationService.createInstance(q,this._editor,this._defaultTreeKeyboardSupport,Ue),this._widget.setTitle(S.kg("labelLoading","Loading...")),this._widget.show(ne),this._disposables.add(this._widget.onDidClose(()=>{de.cancel(),this._widget&&(this._storageService.store(we,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(Et=>{const{element:Kt,kind:Zt}=Et;if(Kt)switch(Zt){case"open":(Et.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(Kt,!1,!1);break;case"side":this.openReference(Kt,!0,!1);break;case"goto":Le?this._gotoReference(Kt,!0):this.openReference(Kt,!1,!0);break}}));const lt=++this._requestIdPool;de.then(Et=>{var Kt;if(lt!==this._requestIdPool||!this._widget){Et.dispose();return}return(Kt=this._model)===null||Kt===void 0||Kt.dispose(),this._model=Et,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(S.kg("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));const Zt=this._editor.getModel().uri,qt=new g.y(ne.startLineNumber,ne.startColumn),tt=this._model.nearestReference(Zt,qt);if(tt)return this._widget.setSelection(tt).then(()=>{this._widget&&this._editor.getOption(87)==="editor"&&this._widget.focusOnPreviewEditor()})}})},Et=>{this._notificationService.error(Et)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}async goToNextOrPreviousReference(ne){if(!this._editor.hasModel()||!this._model||!this._widget)return;const de=this._widget.position;if(!de)return;const Le=this._model.nearestReference(this._editor.getModel().uri,de);if(!Le)return;const We=this._model.nextOrPreviousReference(Le,ne),we=this._editor.hasTextFocus(),Ue=this._widget.isPreviewEditorFocused();await this._widget.setSelection(We),await this._gotoReference(We,!1),we?this._editor.focus():this._widget&&Ue&&this._widget.focusOnPreviewEditor()}async revealReference(ne){!this._editor.hasModel()||!this._model||!this._widget||await this._widget.revealReference(ne)}closeWidget(ne=!0){var de,Le;(de=this._widget)===null||de===void 0||de.dispose(),(Le=this._model)===null||Le===void 0||Le.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,ne&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(ne,de){var Le;(Le=this._widget)===null||Le===void 0||Le.hide(),this._ignoreModelChangeEvent=!0;const We=x.Q.lift(ne.range).collapseToStart();return this._editorService.openCodeEditor({resource:ne.uri,options:{selection:We,selectionSource:"code.jump",pinned:de}},this._editor).then(we=>{var Ue;if(this._ignoreModelChangeEvent=!1,!we||!this._widget){this.closeWidget();return}if(this._editor===we)this._widget.show(We),this._widget.focusOnReferenceTree();else{const lt=ae.get(we),Et=this._model.clone();this.closeWidget(),we.focus(),lt?.toggleWidget(We,(0,r.SS)(Kt=>Promise.resolve(Et)),(Ue=this._peekMode)!==null&&Ue!==void 0?Ue:!1)}},we=>{this._ignoreModelChangeEvent=!1,(0,F.dz)(we)})}openReference(ne,de,Le){de||this.closeWidget();const{uri:We,range:we}=ne;this._editorService.openCodeEditor({resource:We,options:{selection:we,selectionSource:"code.jump",pinned:Le}},this._editor,de)}};fe.ID="editor.contrib.referencesController",fe=ae=be([Se(2,a.fN),Se(3,L.T),Se(4,c.Ot),Se(5,s._Y),Se(6,m.CS),Se(7,d.pG)],fe);function le(oe,ne){const de=(0,I.RL)(oe);if(!de)return;const Le=fe.get(de);Le&&ne(Le)}n.f.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:(0,k.m5)(2089,60),when:a.M$.or(me,I.x2.inPeekEditor),handler(oe){le(oe,ne=>{ne.changeFocusBetweenPreviewAndReferences()})}}),n.f.registerCommandAndKeybindingRule({id:"goToNextReference",weight:90,primary:62,secondary:[70],when:a.M$.or(me,I.x2.inPeekEditor),handler(oe){le(oe,ne=>{ne.goToNextOrPreviousReference(!0)})}}),n.f.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:90,primary:1086,secondary:[1094],when:a.M$.or(me,I.x2.inPeekEditor),handler(oe){le(oe,ne=>{ne.goToNextOrPreviousReference(!1)})}}),f.w.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference"),f.w.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference"),f.w.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch"),f.w.registerCommand("closeReferenceSearch",oe=>le(oe,ne=>ne.closeWidget())),n.f.registerKeybindingRule({id:"closeReferenceSearch",weight:-1,primary:9,secondary:[1033],when:a.M$.and(I.x2.inPeekEditor,a.M$.not("config.editor.stablePeek"))}),n.f.registerKeybindingRule({id:"closeReferenceSearch",weight:250,primary:9,secondary:[1033],when:a.M$.and(me,a.M$.not("config.editor.stablePeek"),a.M$.or(ye.R.editorTextFocus,ge.J7.negate()))}),n.f.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:a.M$.and(me,i.YD,i.Nf.negate(),i.cH.negate()),handler(oe){var ne;const Le=(ne=oe.get(i.PE).lastFocusedList)===null||ne===void 0?void 0:ne.getFocus();Array.isArray(Le)&&Le[0]instanceof u.yc&&le(oe,We=>We.revealReference(Le[0]))}}),n.f.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:a.M$.and(me,i.YD,i.Nf.negate(),i.cH.negate()),handler(oe){var ne;const Le=(ne=oe.get(i.PE).lastFocusedList)===null||ne===void 0?void 0:ne.getFocus();Array.isArray(Le)&&Le[0]instanceof u.yc&&le(oe,We=>We.openReference(Le[0],!0,!0))}}),f.w.registerCommand("openReference",oe=>{var ne;const Le=(ne=oe.get(i.PE).lastFocusedList)===null||ne===void 0?void 0:ne.getFocus();Array.isArray(Le)&&Le[0]instanceof u.yc&&le(oe,We=>We.openReference(Le[0],!1,!0))})},"./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/referencesModel.js":function(pt,Me,e){e.d(Me,{$L:function(){return a},y4:function(){return s},yc:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/idGenerator.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),S=e("./node_modules/monaco-editor/esm/vs/nls.js");class f{constructor(i,c,m,u){this.isProviderFirst=i,this.parent=c,this.link=m,this._rangeCallback=u,this.id=k.r.nextId()}get uri(){return this.link.uri}get range(){var i,c;return(c=(i=this._range)!==null&&i!==void 0?i:this.link.targetSelectionRange)!==null&&c!==void 0?c:this.link.range}set range(i){this._range=i,this._rangeCallback(this)}get ariaMessage(){var i;const c=(i=this.parent.getPreview(this))===null||i===void 0?void 0:i.preview(this.range);return c?(0,S.kg)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",c.value,(0,g.P8)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,S.kg)("aria.oneReference","in {0} on line {1} at column {2}",(0,g.P8)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class d{constructor(i){this._modelReference=i}dispose(){this._modelReference.dispose()}preview(i,c=8){const m=this._modelReference.object.textEditorModel;if(!m)return;const{startLineNumber:u,startColumn:C,endLineNumber:h,endColumn:v}=i,p=m.getWordUntilPosition({lineNumber:u,column:C-c}),b=new I.Q(u,p.startColumn,u,C),O=new I.Q(h,v,h,1073741824),w=m.getValueInRange(b).replace(/^\s+/,""),j=m.getValueInRange(i),U=m.getValueInRange(O).replace(/\s+$/,"");return{value:w+j+U,highlight:{start:w.length,end:w.length+j.length}}}}class a{constructor(i,c){this.parent=i,this.uri=c,this.children=[],this._previews=new L.fT}dispose(){(0,M.AS)(this._previews.values()),this._previews.clear()}getPreview(i){return this._previews.get(i.uri)}get ariaMessage(){const i=this.children.length;return i===1?(0,S.kg)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,g.P8)(this.uri),this.uri.fsPath):(0,S.kg)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",i,(0,g.P8)(this.uri),this.uri.fsPath)}async resolve(i){if(this._previews.size!==0)return this;for(const c of this.children)if(!this._previews.has(c.uri))try{const m=await i.createModelReference(c.uri);this._previews.set(c.uri,new d(m))}catch(m){(0,r.dz)(m)}return this}}class s{constructor(i,c){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new F.vl,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=i,this._title=c;const[m]=i;i.sort(s._compareReferences);let u;for(const C of i)if((!u||!g.er.isEqual(u.uri,C.uri,!0))&&(u=new a(this,C.uri),this.groups.push(u)),u.children.length===0||s._compareReferences(C,u.children[u.children.length-1])!==0){const h=new f(m===C,u,C,v=>this._onDidChangeReferenceRange.fire(v));this.references.push(h),u.children.push(h)}}dispose(){(0,M.AS)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new s(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?(0,S.kg)("aria.result.0","No results found"):this.references.length===1?(0,S.kg)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?(0,S.kg)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):(0,S.kg)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(i,c){const{parent:m}=i;let u=m.children.indexOf(i);const C=m.children.length,h=m.parent.groups.length;return h===1||c&&u+10?(c?u=(u+1)%C:u=(u+C-1)%C,m.children[u]):(u=m.parent.groups.indexOf(m),c?(u=(u+1)%h,m.parent.groups[u].children[0]):(u=(u+h-1)%h,m.parent.groups[u].children[m.parent.groups[u].children.length-1]))}nearestReference(i,c){const m=this.references.map((u,C)=>({idx:C,prefixLen:x.Qp(u.uri.toString(),i.toString()),offsetDist:Math.abs(u.range.startLineNumber-c.lineNumber)*100+Math.abs(u.range.startColumn-c.column)})).sort((u,C)=>u.prefixLen>C.prefixLen?-1:u.prefixLenC.offsetDist?1:0)[0];if(m)return this.references[m.idx]}referenceAt(i,c){for(const m of this.references)if(m.uri.toString()===i.toString()&&I.Q.containsPosition(m.range,c))return m}firstReference(){for(const i of this.references)if(i.isProviderFirst)return i;return this.references[0]}static _compareReferences(i,c){return g.er.compare(i.uri,c.uri)||I.Q.compareRangesUsingStarts(i.range,c.range)}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHover.js":function(pt,Me,e){e.d(Me,{Ad:function(){return U},Q1:function(){return W},L9:function(){return $}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverWidget.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverOperation.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverTypes.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),c=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/resizable/resizable.js");const m=30,u=24;class C extends M.jG{constructor(V,Y=new r.fg(10,10)){super(),this._editor=V,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new c.v),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=r.fg.lift(Y),this._resizableNode.layout(Y.height,Y.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(X=>{this._resize(new r.fg(X.dimension.width,X.dimension.height)),X.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var V;return!((V=this._contentPosition)===null||V===void 0)&&V.position?L.y.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(V){const Y=this._editor.getDomNode(),X=this._editor.getScrolledVisiblePosition(V);return!Y||!X?void 0:r.BK(Y).top+X.top-m}_availableVerticalSpaceBelow(V){const Y=this._editor.getDomNode(),X=this._editor.getScrolledVisiblePosition(V);if(!Y||!X)return;const ie=r.BK(Y),re=r.tG(Y.ownerDocument.body),te=ie.top+X.top+X.height;return re.height-te-u}_findPositionPreference(V,Y){var X,ie;const re=Math.min((X=this._availableVerticalSpaceBelow(Y))!==null&&X!==void 0?X:1/0,V),te=Math.min((ie=this._availableVerticalSpaceAbove(Y))!==null&&ie!==void 0?ie:1/0,V),D=Math.min(Math.max(te,re),V),he=Math.min(V,D);let ve;return this._editor.getOption(60).above?ve=he<=te?1:2:ve=he<=re?2:1,ve===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),ve}_resize(V){this._resizableNode.layout(V.height,V.width)}}var h=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),v=e("./node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js"),p=function(B,V,Y,X){var ie=arguments.length,re=ie<3?V:X===null?X=Object.getOwnPropertyDescriptor(V,Y):X,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(B,V,Y,X);else for(var D=B.length-1;D>=0;D--)(te=B[D])&&(re=(ie<3?te(re):ie>3?te(V,Y,re):te(V,Y))||re);return ie>3&&re&&Object.defineProperty(V,Y,re),re},b=function(B,V){return function(Y,X){V(Y,X,B)}},O,w;const j=r.$;let U=O=class extends M.jG{constructor(V,Y,X){super(),this._editor=V,this._instantiationService=Y,this._keybindingService=X,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(W,this._editor)),this._participants=[];for(const ie of f.B2.getAll())this._participants.push(this._instantiationService.createInstance(ie,this._editor));this._participants.sort((ie,re)=>ie.hoverOrdinal-re.hoverOrdinal),this._computer=new z(this._editor,this._participants),this._hoverOperation=this._register(new S.w(this._editor,this._computer)),this._register(this._hoverOperation.onResult(ie=>{if(!this._computer.anchor)return;const re=ie.hasLoadingMessage?this._addLoadingMessage(ie.value):ie.value;this._withResult(new K(this._computer.anchor,re,ie.isComplete))})),this._register(r.b2(this._widget.getDomNode(),"keydown",ie=>{ie.equals(9)&&this.hide()})),this._register(I.dG.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}_startShowingOrUpdateHover(V,Y,X,ie,re){return!this._widget.position||!this._currentResult?V?(this._startHoverOperationIfNecessary(V,Y,X,ie,!1),!0):!1:this._editor.getOption(60).sticky&&re&&this._widget.isMouseGettingCloser(re.event.posx,re.event.posy)?(V&&this._startHoverOperationIfNecessary(V,Y,X,ie,!0),!0):V?V&&this._currentResult.anchor.equals(V)?!0:V.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(V)),this._startHoverOperationIfNecessary(V,Y,X,ie,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(V,Y,X,ie,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(V,Y,X,ie,re){this._computer.anchor&&this._computer.anchor.equals(V)||(this._hoverOperation.cancel(),this._computer.anchor=V,this._computer.shouldFocus=ie,this._computer.source=X,this._computer.insistOnKeepingHoverVisible=re,this._hoverOperation.start(Y))}_setCurrentResult(V){this._currentResult!==V&&(V&&V.messages.length===0&&(V=null),this._currentResult=V,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}_addLoadingMessage(V){if(this._computer.anchor){for(const Y of this._participants)if(Y.createLoadingMessage){const X=Y.createLoadingMessage(this._computer.anchor);if(X)return V.slice(0).concat([X])}}return V}_withResult(V){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!V.isComplete||this._computer.insistOnKeepingHoverVisible&&V.messages.length===0)||this._setCurrentResult(V)}_renderMessages(V,Y){const{showAtPosition:X,showAtSecondaryPosition:ie,highlightRange:re}=O.computeHoverRanges(this._editor,V.range,Y),te=new M.Cm,D=te.add(new $(this._keybindingService)),he=document.createDocumentFragment();let ve=null;const Ce={fragment:he,statusBar:D,setColorPicker:_e=>ve=_e,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:_e=>this._widget.setMinimumDimensions(_e),hide:()=>this.hide()};for(const _e of this._participants){const ee=Y.filter(De=>De.owner===_e);ee.length>0&&te.add(_e.renderHoverParts(Ce,ee))}const Pe=Y.some(_e=>_e.isBeforeContent);if(D.hasContent&&he.appendChild(D.hoverElement),he.hasChildNodes()){if(re){const _e=this._editor.createDecorationsCollection();_e.set([{range:re,options:O._DECORATION_OPTIONS}]),te.add((0,M.s)(()=>{_e.clear()}))}this._widget.showAt(he,new P(V.initialMousePosX,V.initialMousePosY,ve,X,ie,this._editor.getOption(60).above,this._computer.shouldFocus,this._computer.source,Pe,te))}else te.dispose()}static computeHoverRanges(V,Y,X){let ie=1;if(V.hasModel()){const Pe=V._getViewModel(),_e=Pe.coordinatesConverter,ee=_e.convertModelRangeToViewRange(Y),De=new L.y(ee.startLineNumber,Pe.getLineMinColumn(ee.startLineNumber));ie=_e.convertViewPositionToModelPosition(De).column}const re=Y.startLineNumber;let te=Y.startColumn,D=X[0].range,he=null;for(const Pe of X)D=g.Q.plusRange(D,Pe.range),Pe.range.startLineNumber===re&&Pe.range.endLineNumber===re&&(te=Math.max(Math.min(te,Pe.range.startColumn),ie)),Pe.forceShowAtRange&&(he=Pe.range);const ve=he?he.getStartPosition():new L.y(re,Y.startColumn),Ce=he?he.getStartPosition():new L.y(re,te);return{showAtPosition:ve,showAtSecondaryPosition:Ce,highlightRange:D}}showsOrWillShow(V){if(this._widget.isResizing)return!0;const Y=[];for(const ie of this._participants)if(ie.suggestHoverAnchor){const re=ie.suggestHoverAnchor(V);re&&Y.push(re)}const X=V.target;if(X.type===6&&Y.push(new f.hx(0,X.range,V.event.posx,V.event.posy)),X.type===7){const ie=this._editor.getOption(50).typicalHalfwidthCharacterWidth/2;!X.detail.isAfterLines&&typeof X.detail.horizontalDistanceToText=="number"&&X.detail.horizontalDistanceToTextre.priority-ie.priority),this._startShowingOrUpdateHover(Y[0],0,0,!1,V))}startShowingAtRange(V,Y,X,ie){this._startShowingOrUpdateHover(new f.hx(0,V,void 0,void 0),Y,X,ie,null)}containsNode(V){return V?this._widget.getDomNode().contains(V):!1}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}get widget(){return this._widget}};U._DECORATION_OPTIONS=x.kI.register({description:"content-hover-highlight",className:"hoverHighlight"}),U=O=p([b(1,d._Y),b(2,a.b)],U);class K{constructor(V,Y,X){this.anchor=V,this.messages=Y,this.isComplete=X}filter(V){const Y=this.messages.filter(X=>X.isValidForHoverAnchor(V));return Y.length===this.messages.length?this:new G(this,this.anchor,Y,this.isComplete)}}class G extends K{constructor(V,Y,X,ie){super(Y,X,ie),this.original=V}filter(V){return this.original.filter(V)}}class P{constructor(V,Y,X,ie,re,te,D,he,ve,Ce){this.initialMousePosX=V,this.initialMousePosY=Y,this.colorPicker=X,this.showAtPosition=ie,this.showAtSecondaryPosition=re,this.preferAbove=te,this.stoleFocus=D,this.source=he,this.isBeforeContent=ve,this.disposables=Ce,this.closestMouseDistance=void 0}}const A=30,T=10,E=6;let W=w=class extends C{get isColorPickerVisible(){var V;return!!(!((V=this._visibleData)===null||V===void 0)&&V.colorPicker)}get isVisibleFromKeyboard(){var V;return((V=this._visibleData)===null||V===void 0?void 0:V.source)===1}get isVisible(){var V;return(V=this._hoverVisibleKey.get())!==null&&V!==void 0?V:!1}get isFocused(){var V;return(V=this._hoverFocusedKey.get())!==null&&V!==void 0?V:!1}constructor(V,Y,X,ie,re){const te=V.getOption(67)+8,D=150,he=new r.fg(D,te);super(V,he),this._configurationService=X,this._accessibilityService=ie,this._keybindingService=re,this._hover=this._register(new F.N4),this._minimumSize=he,this._hoverVisibleKey=n.R.hoverVisible.bindTo(Y),this._hoverFocusedKey=n.R.hoverFocused.bindTo(Y),r.BC(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange(()=>{this.isVisible&&this._updateMaxDimensions()})),this._register(this._editor.onDidChangeConfiguration(Ce=>{Ce.hasChanged(50)&&this._updateFont()}));const ve=this._register(r.w5(this._resizableNode.domNode));this._register(ve.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(ve.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setHoverData(void 0),this._editor.addContentWidget(this)}dispose(){var V;super.dispose(),(V=this._visibleData)===null||V===void 0||V.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return w.ID}static _applyDimensions(V,Y,X){const ie=typeof Y=="number"?`${Y}px`:Y,re=typeof X=="number"?`${X}px`:X;V.style.width=ie,V.style.height=re}_setContentsDomNodeDimensions(V,Y){const X=this._hover.contentsDomNode;return w._applyDimensions(X,V,Y)}_setContainerDomNodeDimensions(V,Y){const X=this._hover.containerDomNode;return w._applyDimensions(X,V,Y)}_setHoverWidgetDimensions(V,Y){this._setContentsDomNodeDimensions(V,Y),this._setContainerDomNodeDimensions(V,Y),this._layoutContentWidget()}static _applyMaxDimensions(V,Y,X){const ie=typeof Y=="number"?`${Y}px`:Y,re=typeof X=="number"?`${X}px`:X;V.style.maxWidth=ie,V.style.maxHeight=re}_setHoverWidgetMaxDimensions(V,Y){w._applyMaxDimensions(this._hover.contentsDomNode,V,Y),w._applyMaxDimensions(this._hover.containerDomNode,V,Y),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth",typeof V=="number"?`${V}px`:V),this._layoutContentWidget()}_hasHorizontalScrollbar(){const V=this._hover.scrollbar.getScrollDimensions();return V.scrollWidth>V.width}_adjustContentsBottomPadding(){const V=this._hover.contentsDomNode,Y=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;V.style.paddingBottom!==Y&&(V.style.paddingBottom=Y)}_setAdjustedHoverWidgetDimensions(V){this._setHoverWidgetMaxDimensions("none","none");const Y=V.width,X=V.height;this._setHoverWidgetDimensions(Y,X),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._setContentsDomNodeDimensions(Y,X-T))}_updateResizableNodeMaxDimensions(){var V,Y;const X=(V=this._findMaximumRenderingWidth())!==null&&V!==void 0?V:1/0,ie=(Y=this._findMaximumRenderingHeight())!==null&&Y!==void 0?Y:1/0;this._resizableNode.maxSize=new r.fg(X,ie),this._setHoverWidgetMaxDimensions(X,ie)}_resize(V){var Y,X;w._lastDimensions=new r.fg(V.width,V.height),this._setAdjustedHoverWidgetDimensions(V),this._resizableNode.layout(V.height,V.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),(X=(Y=this._visibleData)===null||Y===void 0?void 0:Y.colorPicker)===null||X===void 0||X.layout()}_findAvailableSpaceVertically(){var V;const Y=(V=this._visibleData)===null||V===void 0?void 0:V.showAtPosition;if(Y)return this._positionPreference===1?this._availableVerticalSpaceAbove(Y):this._availableVerticalSpaceBelow(Y)}_findMaximumRenderingHeight(){const V=this._findAvailableSpaceVertically();if(!V)return;let Y=E;return Array.from(this._hover.contentsDomNode.children).forEach(X=>{Y+=X.clientHeight}),this._hasHorizontalScrollbar()&&(Y+=T),Math.min(V,Y)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");const V=Array.from(this._hover.contentsDomNode.children).some(Y=>Y.scrollWidth>Y.clientWidth);return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),V}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;const V=this._isHoverTextOverflowing(),Y=typeof this._contentWidth>"u"?0:this._contentWidth-2;return V||this._hover.containerDomNode.clientWidth"u"||typeof this._visibleData.initialMousePosY>"u")return this._visibleData.initialMousePosX=V,this._visibleData.initialMousePosY=Y,!1;const X=r.BK(this.getDomNode());typeof this._visibleData.closestMouseDistance>"u"&&(this._visibleData.closestMouseDistance=J(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,X.left,X.top,X.width,X.height));const ie=J(V,Y,X.left,X.top,X.width,X.height);return ie>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,ie),!0)}_setHoverData(V){var Y;(Y=this._visibleData)===null||Y===void 0||Y.disposables.dispose(),this._visibleData=V,this._hoverVisibleKey.set(!!V),this._hover.containerDomNode.classList.toggle("hidden",!V)}_updateFont(){const{fontSize:V,lineHeight:Y}=this._editor.getOption(50),X=this._hover.contentsDomNode;X.style.fontSize=`${V}px`,X.style.lineHeight=`${Y/V}`,Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(re=>this._editor.applyFontInfo(re))}_updateContent(V){const Y=this._hover.contentsDomNode;Y.style.paddingBottom="",Y.textContent="",Y.appendChild(V)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){const V=Math.max(this._editor.getLayoutInfo().height/4,250,w._lastDimensions.height),Y=Math.max(this._editor.getLayoutInfo().width*.66,500,w._lastDimensions.width);this._setHoverWidgetMaxDimensions(Y,V)}_render(V,Y){this._setHoverData(Y),this._updateFont(),this._updateContent(V),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var V;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[(V=this._positionPreference)!==null&&V!==void 0?V:1]}:null}showAt(V,Y){var X,ie,re,te;if(!this._editor||!this._editor.hasModel())return;this._render(V,Y);const D=r.OK(this._hover.containerDomNode),he=Y.showAtPosition;this._positionPreference=(X=this._findPositionPreference(D,he))!==null&&X!==void 0?X:1,this.onContentsChanged(),Y.stoleFocus&&this._hover.containerDomNode.focus(),(ie=Y.colorPicker)===null||ie===void 0||ie.layout();const Ce=this._hover.containerDomNode.ownerDocument.activeElement===this._hover.containerDomNode&&(0,F.vr)(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(te=(re=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||re===void 0?void 0:re.getAriaLabel())!==null&&te!==void 0?te:"");Ce&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+Ce)}hide(){if(!this._visibleData)return;const V=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new r.fg(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),V&&this._editor.focus()}_removeConstraintsRenderNormally(){const V=this._editor.getLayoutInfo();this._resizableNode.layout(V.height,V.width),this._setHoverWidgetDimensions("auto","auto")}_adjustHoverHeightForScrollbar(V){var Y;const X=this._hover.containerDomNode,ie=this._hover.contentsDomNode,re=(Y=this._findMaximumRenderingHeight())!==null&&Y!==void 0?Y:1/0;this._setContainerDomNodeDimensions(r.Tr(X),Math.min(re,V)),this._setContentsDomNodeDimensions(r.Tr(ie),Math.min(re,V-T))}setMinimumDimensions(V){this._minimumSize=new r.fg(Math.max(this._minimumSize.width,V.width),Math.max(this._minimumSize.height,V.height)),this._updateMinimumWidth()}_updateMinimumWidth(){const V=typeof this._contentWidth>"u"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new r.fg(V,this._minimumSize.height)}onContentsChanged(){var V;this._removeConstraintsRenderNormally();const Y=this._hover.containerDomNode;let X=r.OK(Y),ie=r.Tr(Y);if(this._resizableNode.layout(X,ie),this._setHoverWidgetDimensions(ie,X),X=r.OK(Y),ie=r.Tr(Y),this._contentWidth=ie,this._updateMinimumWidth(),this._resizableNode.layout(X,ie),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._adjustHoverHeightForScrollbar(X)),!((V=this._visibleData)===null||V===void 0)&&V.showAtPosition){const re=r.OK(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(re,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){const V=this._hover.scrollbar.getScrollPosition().scrollTop,Y=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:V-Y.lineHeight})}scrollDown(){const V=this._hover.scrollbar.getScrollPosition().scrollTop,Y=this._editor.getOption(50);this._hover.scrollbar.setScrollPosition({scrollTop:V+Y.lineHeight})}scrollLeft(){const V=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:V-A})}scrollRight(){const V=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:V+A})}pageUp(){const V=this._hover.scrollbar.getScrollPosition().scrollTop,Y=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:V-Y})}pageDown(){const V=this._hover.scrollbar.getScrollPosition().scrollTop,Y=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:V+Y})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};W.ID="editor.contrib.resizableContentHoverWidget",W._lastDimensions=new r.fg(0,0),W=w=p([b(1,i.fN),b(2,h.pG),b(3,v.j),b(4,a.b)],W);let $=class extends M.jG{get hasContent(){return this._hasContent}constructor(V){super(),this._keybindingService=V,this._hasContent=!1,this.hoverElement=j("div.hover-row.status-bar"),this.actionsElement=r.BC(this.hoverElement,j("div.actions"))}addAction(V){const Y=this._keybindingService.lookupKeybinding(V.commandId),X=Y?Y.getLabel():null;return this._hasContent=!0,this._register(F.jQ.render(this.actionsElement,V,X))}append(V){const Y=r.BC(this.actionsElement,V);return this._hasContent=!0,Y}};$=p([b(0,a.b)],$);class z{get anchor(){return this._anchor}set anchor(V){this._anchor=V}get shouldFocus(){return this._shouldFocus}set shouldFocus(V){this._shouldFocus=V}get source(){return this._source}set source(V){this._source=V}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(V){this._insistOnKeepingHoverVisible=V}constructor(V,Y){this._editor=V,this._participants=Y,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(V,Y){if(Y.type!==1&&!Y.supportsMarkerHover)return[];const X=V.getModel(),ie=Y.range.startLineNumber;if(ie>X.getLineCount())return[];const re=X.getLineMaxColumn(ie);return V.getLineDecorations(ie).filter(te=>{if(te.options.isWholeLine)return!0;const D=te.range.startLineNumber===ie?te.range.startColumn:1,he=te.range.endLineNumber===ie?te.range.endColumn:re;if(te.options.showIfCollapsed){if(D>Y.range.startColumn+1||Y.range.endColumn-1>he)return!1}else if(D>Y.range.startColumn||Y.range.endColumn>he)return!1;return!0})}computeAsync(V){const Y=this._anchor;if(!this._editor.hasModel()||!Y)return s.AE.EMPTY;const X=z._getLineDecorations(this._editor,Y);return s.AE.merge(this._participants.map(ie=>ie.computeAsync?ie.computeAsync(Y,X,V):s.AE.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];const V=z._getLineDecorations(this._editor,this._anchor);let Y=[];for(const X of this._participants)Y=Y.concat(X.computeSync(this._anchor,V));return(0,k.Yc)(Y)}}function J(B,V,Y,X,ie,re){const te=Y+ie/2,D=X+re/2,he=Math.max(Math.abs(B-te)-ie/2,0),ve=Math.max(Math.abs(V-D)-re/2,0);return Math.sqrt(he*he+ve*ve)}},"./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/getHover.js":function(pt,Me,e){e.d(Me,{Zt:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js");class g{constructor(a,s,n){this.provider=a,this.hover=s,this.ordinal=n}}async function x(d,a,s,n,i){try{const c=await Promise.resolve(d.provideHover(s,n,i));if(c&&f(c))return new g(d,c,a)}catch(c){(0,k.M_)(c)}}function I(d,a,s,n){const c=d.ordered(a).map((m,u)=>x(m,u,a,s,n));return r.AE.fromPromises(c).coalesce()}function S(d,a,s,n){return I(d,a,s,n).map(i=>i.hover).toPromise()}(0,M.ke)("_executeHoverProvider",(d,a,s)=>{const n=d.get(L.u);return S(n.hoverProvider,a,s,F.X.None)});function f(d){const a=typeof d.range<"u",s=typeof d.contents<"u"&&d.contents&&d.contents.length>0;return a&&s}},"./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hover.js":function(pt,Me,e){e.d(Me,{n:function(){return Pe}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/contentHover.js"),S=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverOperation.js"),n=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverWidget.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js");const c=S.$;class m extends F.jG{constructor(ae,me,fe){super(),this._renderDisposeables=this._register(new F.Cm),this._editor=ae,this._isVisible=!1,this._messages=[],this._hover=this._register(new n.N4),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new a.T({editor:this._editor},me,fe)),this._computer=new u(this._editor),this._hoverOperation=this._register(new s.w(this._editor,this._computer)),this._register(this._hoverOperation.onResult(le=>{this._withResult(le.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(le=>{le.hasChanged(50)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return m.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(me=>this._editor.applyFontInfo(me))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(ae,me){this._computer.lineNumber===ae&&this._computer.lane===me||(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=ae,this._computer.lane=me,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(ae){this._messages=ae,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(ae,me){this._renderDisposeables.clear();const fe=document.createDocumentFragment();for(const le of me){const oe=c("div.hover-row.markdown-hover"),ne=S.BC(oe,c("div.hover-contents")),de=this._renderDisposeables.add(this._markdownRenderer.render(le.value));ne.appendChild(de.element),fe.appendChild(oe)}this._updateContents(fe),this._showAt(ae)}_updateContents(ae){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(ae),this._updateFont()}_showAt(ae){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));const me=this._editor.getLayoutInfo(),fe=this._editor.getTopForLineNumber(ae),le=this._editor.getScrollTop(),oe=this._editor.getOption(67),ne=this._hover.containerDomNode.clientHeight,de=fe-le-(ne-oe)/2,Le=me.glyphMarginLeft+me.glyphMarginWidth+(this._computer.lane==="lineNo"?me.lineNumbersWidth:0);this._hover.containerDomNode.style.left=`${Le}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(de),0)}px`}}m.ID="editor.contrib.modesGlyphHoverWidget";class u{get lineNumber(){return this._lineNumber}set lineNumber(ae){this._lineNumber=ae}get lane(){return this._laneOrLine}set lane(ae){this._laneOrLine=ae}constructor(ae){this._editor=ae,this._lineNumber=-1,this._laneOrLine=i.ZS.Center}computeSync(){var ae,me;const fe=de=>({value:de}),le=this._editor.getLineDecorations(this._lineNumber),oe=[],ne=this._laneOrLine==="lineNo";if(!le)return oe;for(const de of le){const Le=(me=(ae=de.options.glyphMargin)===null||ae===void 0?void 0:ae.position)!==null&&me!==void 0?me:i.ZS.Center;if(!ne&&Le!==this._laneOrLine)continue;const We=ne?de.options.lineNumberHoverMessage:de.options.glyphMarginHoverMessage;!We||(0,d.it)(We)||oe.push(...(0,f._j)(We).map(fe))}return oe}}var C=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),v=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),p=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),b=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverTypes.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js"),w=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),j=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),U=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),K=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),G=e("./node_modules/monaco-editor/esm/vs/editor/common/services/markerDecorations.js"),P=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeAction.js"),A=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionController.js"),T=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/common/types.js"),E=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoError.js"),W=e("./node_modules/monaco-editor/esm/vs/nls.js"),$=e("./node_modules/monaco-editor/esm/vs/platform/markers/common/markers.js"),z=e("./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"),J=function(Se,ae,me,fe){var le=arguments.length,oe=le<3?ae:fe===null?fe=Object.getOwnPropertyDescriptor(ae,me):fe,ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(Se,ae,me,fe);else for(var de=Se.length-1;de>=0;de--)(ne=Se[de])&&(oe=(le<3?ne(oe):le>3?ne(ae,me,oe):ne(ae,me))||oe);return le>3&&oe&&Object.defineProperty(ae,me,oe),oe},B=function(Se,ae){return function(me,fe){ae(me,fe,Se)}};const V=S.$;class Y{constructor(ae,me,fe){this.owner=ae,this.range=me,this.marker=fe}isValidForHoverAnchor(ae){return ae.type===1&&this.range.startColumn<=ae.range.startColumn&&this.range.endColumn>=ae.range.endColumn}}const X={type:1,filter:{include:T.gB.QuickFix},triggerAction:T.fo.QuickFixHover};let ie=class{constructor(ae,me,fe,le){this._editor=ae,this._markerDecorationsService=me,this._openerService=fe,this._languageFeaturesService=le,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(ae,me){if(!this._editor.hasModel()||ae.type!==1&&!ae.supportsMarkerHover)return[];const fe=this._editor.getModel(),le=ae.range.startLineNumber,oe=fe.getLineMaxColumn(le),ne=[];for(const de of me){const Le=de.range.startLineNumber===le?de.range.startColumn:1,We=de.range.endLineNumber===le?de.range.endColumn:oe,we=this._markerDecorationsService.getMarker(fe.uri,de);if(!we)continue;const Ue=new M.Q(ae.range.startLineNumber,Le,ae.range.startLineNumber,We);ne.push(new Y(this,Ue,we))}return ne}renderHoverParts(ae,me){if(!me.length)return F.jG.None;const fe=new F.Cm;me.forEach(oe=>ae.fragment.appendChild(this.renderMarkerHover(oe,fe)));const le=me.length===1?me[0]:me.sort((oe,ne)=>$.cj.compare(oe.marker.severity,ne.marker.severity))[0];return this.renderMarkerStatusbar(ae,le,fe),fe}renderMarkerHover(ae,me){const fe=V("div.hover-row"),le=S.BC(fe,V("div.marker.hover-contents")),{source:oe,message:ne,code:de,relatedInformation:Le}=ae.marker;this._editor.applyFontInfo(le);const We=S.BC(le,V("span"));if(We.style.whiteSpace="pre-wrap",We.innerText=ne,oe||de)if(de&&typeof de!="string"){const we=V("span");if(oe){const Kt=S.BC(we,V("span"));Kt.innerText=oe}const Ue=S.BC(we,V("a.code-link"));Ue.setAttribute("href",de.target.toString()),me.add(S.ko(Ue,"click",Kt=>{this._openerService.open(de.target,{allowCommands:!0}),Kt.preventDefault(),Kt.stopPropagation()}));const lt=S.BC(Ue,V("span"));lt.innerText=de.value;const Et=S.BC(le,we);Et.style.opacity="0.6",Et.style.paddingLeft="6px"}else{const we=S.BC(le,V("span"));we.style.opacity="0.6",we.style.paddingLeft="6px",we.innerText=oe&&de?`${oe}(${de})`:oe||`(${de})`}if((0,f.EI)(Le))for(const{message:we,resource:Ue,startLineNumber:lt,startColumn:Et}of Le){const Kt=S.BC(le,V("div"));Kt.style.marginTop="8px";const Zt=S.BC(Kt,V("a"));Zt.innerText=`${(0,U.P8)(Ue)}(${lt}, ${Et}): `,Zt.style.cursor="pointer",me.add(S.ko(Zt,"click",tt=>{tt.stopPropagation(),tt.preventDefault(),this._openerService&&this._openerService.open(Ue,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:lt,startColumn:Et}}}).catch(j.dz)}));const qt=S.BC(Kt,V("span"));qt.innerText=we,this._editor.applyFontInfo(qt)}return fe}renderMarkerStatusbar(ae,me,fe){if(me.marker.severity===$.cj.Error||me.marker.severity===$.cj.Warning||me.marker.severity===$.cj.Info){const le=E.j.get(this._editor);le&&ae.statusBar.addAction({label:W.kg("view problem","View Problem"),commandId:E.i.ID,run:()=>{ae.hide(),le.showAtMarker(me.marker),this._editor.focus()}})}if(!this._editor.getOption(91)){const le=ae.statusBar.append(V("div"));this.recentMarkerCodeActionsInfo&&($.oc.makeKey(this.recentMarkerCodeActionsInfo.marker)===$.oc.makeKey(me.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(le.textContent=W.kg("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);const oe=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?F.jG.None:(0,w.EQ)(()=>le.textContent=W.kg("checkingForQuickFixes","Checking for quick fixes..."),200,fe);le.textContent||(le.textContent="\xA0");const ne=this.getCodeActions(me.marker);fe.add((0,F.s)(()=>ne.cancel())),ne.then(de=>{if(oe.dispose(),this.recentMarkerCodeActionsInfo={marker:me.marker,hasCodeActions:de.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){de.dispose(),le.textContent=W.kg("noQuickFixes","No quick fixes available");return}le.style.display="none";let Le=!1;fe.add((0,F.s)(()=>{Le||de.dispose()})),ae.statusBar.addAction({label:W.kg("quick fixes","Quick Fix..."),commandId:P.pQ,run:We=>{Le=!0;const we=A.C.get(this._editor),Ue=S.BK(We);ae.hide(),we?.showCodeActions(X,de,{x:Ue.left,y:Ue.top,width:Ue.width,height:Ue.height})}})},j.dz)}}getCodeActions(ae){return(0,w.SS)(me=>(0,P.dU)(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new M.Q(ae.startLineNumber,ae.startColumn,ae.endLineNumber,ae.endColumn),X,z.ke.None,me))}};ie=J([B(1,G.A),B(2,h.C),B(3,K.u)],ie);var re=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js"),te=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),D=function(Se,ae,me,fe){var le=arguments.length,oe=le<3?ae:fe===null?fe=Object.getOwnPropertyDescriptor(ae,me):fe,ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(Se,ae,me,fe);else for(var de=Se.length-1;de>=0;de--)(ne=Se[de])&&(oe=(le<3?ne(oe):le>3?ne(ae,me,oe):ne(ae,me))||oe);return le>3&&oe&&Object.defineProperty(ae,me,oe),oe},he=function(Se,ae){return function(me,fe){ae(me,fe,Se)}},ve;const Ce=!1;let Pe=ve=class extends F.jG{constructor(ae,me,fe,le,oe){super(),this._editor=ae,this._instantiationService=me,this._openerService=fe,this._languageService=le,this._keybindingService=oe,this._listenersStore=new F.Cm,this._hoverState={mouseDown:!1,contentHoverFocused:!1,activatedByDecoratorClick:!1},this._reactToEditorMouseMoveRunner=this._register(new w.uC(()=>this._reactToEditorMouseMove(this._mouseMoveEvent),0)),this._hookListeners(),this._register(this._editor.onDidChangeConfiguration(ne=>{ne.hasChanged(60)&&(this._unhookListeners(),this._hookListeners())}))}static get(ae){return ae.getContribution(ve.ID)}_hookListeners(){const ae=this._editor.getOption(60);this._hoverSettings={enabled:ae.enabled,sticky:ae.sticky,hidingDelay:ae.delay},ae.enabled?(this._listenersStore.add(this._editor.onMouseDown(me=>this._onEditorMouseDown(me))),this._listenersStore.add(this._editor.onMouseUp(()=>this._onEditorMouseUp())),this._listenersStore.add(this._editor.onMouseMove(me=>this._onEditorMouseMove(me))),this._listenersStore.add(this._editor.onKeyDown(me=>this._onKeyDown(me)))):(this._listenersStore.add(this._editor.onMouseMove(me=>this._onEditorMouseMove(me))),this._listenersStore.add(this._editor.onKeyDown(me=>this._onKeyDown(me)))),this._listenersStore.add(this._editor.onMouseLeave(me=>this._onEditorMouseLeave(me))),this._listenersStore.add(this._editor.onDidChangeModel(()=>{this._cancelScheduler(),this._hideWidgets()})),this._listenersStore.add(this._editor.onDidChangeModelContent(()=>this._cancelScheduler())),this._listenersStore.add(this._editor.onDidScrollChange(me=>this._onEditorScrollChanged(me)))}_unhookListeners(){this._listenersStore.clear()}_cancelScheduler(){this._mouseMoveEvent=void 0,this._reactToEditorMouseMoveRunner.cancel()}_onEditorScrollChanged(ae){(ae.scrollTopChanged||ae.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(ae){var me;this._hoverState.mouseDown=!0;const fe=ae.target;if(fe.type===9&&fe.detail===I.Q1.ID){this._hoverState.contentHoverFocused=!0;return}fe.type===12&&fe.detail===m.ID||(fe.type!==12&&(this._hoverState.contentHoverFocused=!1),!(!((me=this._contentWidget)===null||me===void 0)&&me.widget.isResizing)&&this._hideWidgets())}_onEditorMouseUp(){this._hoverState.mouseDown=!1}_onEditorMouseLeave(ae){var me,fe;this._cancelScheduler();const le=ae.event.browserEvent.relatedTarget;!((me=this._contentWidget)===null||me===void 0)&&me.widget.isResizing||!((fe=this._contentWidget)===null||fe===void 0)&&fe.containsNode(le)||Ce||this._hideWidgets()}_isMouseOverWidget(ae){var me,fe,le,oe,ne;const de=ae.target,Le=this._hoverSettings.sticky;return!!(Le&&de.type===9&&de.detail===I.Q1.ID||Le&&(!((me=this._contentWidget)===null||me===void 0)&&me.containsNode((fe=ae.event.browserEvent.view)===null||fe===void 0?void 0:fe.document.activeElement))&&!(!((oe=(le=ae.event.browserEvent.view)===null||le===void 0?void 0:le.getSelection())===null||oe===void 0)&&oe.isCollapsed)||!Le&&de.type===9&&de.detail===I.Q1.ID&&(!((ne=this._contentWidget)===null||ne===void 0)&&ne.isColorPickerVisible)||Le&&de.type===12&&de.detail===m.ID)}_onEditorMouseMove(ae){var me,fe,le,oe;if(this._mouseMoveEvent=ae,!((me=this._contentWidget)===null||me===void 0)&&me.isFocused||!((fe=this._contentWidget)===null||fe===void 0)&&fe.isResizing||this._hoverState.mouseDown&&this._hoverState.contentHoverFocused)return;const ne=this._hoverSettings.sticky;if(ne&&(!((le=this._contentWidget)===null||le===void 0)&&le.isVisibleFromKeyboard))return;if(this._isMouseOverWidget(ae)){this._reactToEditorMouseMoveRunner.cancel();return}const Le=this._hoverSettings.hidingDelay;if(!((oe=this._contentWidget)===null||oe===void 0)&&oe.isVisible&&ne&&Le>0){this._reactToEditorMouseMoveRunner.isScheduled()||this._reactToEditorMouseMoveRunner.schedule(Le);return}this._reactToEditorMouseMove(ae)}_reactToEditorMouseMove(ae){var me,fe,le,oe;if(!ae)return;const ne=ae.target,de=(me=ne.element)===null||me===void 0?void 0:me.classList.contains("colorpicker-color-decoration"),Le=this._editor.getOption(148),We=this._hoverSettings.enabled,we=this._hoverState.activatedByDecoratorClick;if(de&&(Le==="click"&&!we||Le==="hover"&&!We&&!Ce||Le==="clickAndHover"&&!We&&!we)||!de&&!We&&!we){this._hideWidgets();return}if(this._getOrCreateContentWidget().showsOrWillShow(ae)){(fe=this._glyphWidget)===null||fe===void 0||fe.hide();return}if(ne.type===2&&ne.position&&ne.detail.glyphMarginLane){(le=this._contentWidget)===null||le===void 0||le.hide(),this._getOrCreateGlyphWidget().startShowingAt(ne.position.lineNumber,ne.detail.glyphMarginLane);return}if(ne.type===3&&ne.position){(oe=this._contentWidget)===null||oe===void 0||oe.hide(),this._getOrCreateGlyphWidget().startShowingAt(ne.position.lineNumber,"lineNo");return}Ce||this._hideWidgets()}_onKeyDown(ae){var me;if(!this._editor.hasModel())return;const fe=this._keybindingService.softDispatch(ae,this._editor.getDomNode()),le=fe.kind===1||fe.kind===2&&fe.commandId==="editor.action.showHover"&&((me=this._contentWidget)===null||me===void 0?void 0:me.isVisible);ae.keyCode===5||ae.keyCode===6||ae.keyCode===57||ae.keyCode===4||le||this._hideWidgets()}_hideWidgets(){var ae,me,fe;Ce||this._hoverState.mouseDown&&this._hoverState.contentHoverFocused&&(!((ae=this._contentWidget)===null||ae===void 0)&&ae.isColorPickerVisible)||re.bo.dropDownVisible||(this._hoverState.activatedByDecoratorClick=!1,this._hoverState.contentHoverFocused=!1,(me=this._glyphWidget)===null||me===void 0||me.hide(),(fe=this._contentWidget)===null||fe===void 0||fe.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(I.Ad,this._editor)),this._contentWidget}_getOrCreateGlyphWidget(){return this._glyphWidget||(this._glyphWidget=new m(this._editor,this._languageService,this._openerService)),this._glyphWidget}showContentHover(ae,me,fe,le,oe=!1){this._hoverState.activatedByDecoratorClick=oe,this._getOrCreateContentWidget().startShowingAtRange(ae,me,fe,le)}focus(){var ae;(ae=this._contentWidget)===null||ae===void 0||ae.focus()}scrollUp(){var ae;(ae=this._contentWidget)===null||ae===void 0||ae.scrollUp()}scrollDown(){var ae;(ae=this._contentWidget)===null||ae===void 0||ae.scrollDown()}scrollLeft(){var ae;(ae=this._contentWidget)===null||ae===void 0||ae.scrollLeft()}scrollRight(){var ae;(ae=this._contentWidget)===null||ae===void 0||ae.scrollRight()}pageUp(){var ae;(ae=this._contentWidget)===null||ae===void 0||ae.pageUp()}pageDown(){var ae;(ae=this._contentWidget)===null||ae===void 0||ae.pageDown()}goToTop(){var ae;(ae=this._contentWidget)===null||ae===void 0||ae.goToTop()}goToBottom(){var ae;(ae=this._contentWidget)===null||ae===void 0||ae.goToBottom()}get isColorPickerVisible(){var ae;return(ae=this._contentWidget)===null||ae===void 0?void 0:ae.isColorPickerVisible}get isHoverVisible(){var ae;return(ae=this._contentWidget)===null||ae===void 0?void 0:ae.isVisible}dispose(){var ae,me;super.dispose(),this._unhookListeners(),this._listenersStore.dispose(),(ae=this._glyphWidget)===null||ae===void 0||ae.dispose(),(me=this._contentWidget)===null||me===void 0||me.dispose()}};Pe.ID="editor.contrib.hover",Pe=ve=D([he(1,C._Y),he(2,h.C),he(3,g.L),he(4,te.b)],Pe);var _e;(function(Se){Se.NoAutoFocus="noAutoFocus",Se.FocusIfVisible="focusIfVisible",Se.AutoFocusImmediately="autoFocusImmediately"})(_e||(_e={}));class ee extends k.ks{constructor(){super({id:"editor.action.showHover",label:W.kg({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse."]},"Show or Focus Hover"),metadata:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if and when the hover should take focus upon being triggered by this action.",enum:[_e.NoAutoFocus,_e.FocusIfVisible,_e.AutoFocusImmediately],enumDescriptions:[W.kg("showOrFocusHover.focus.noAutoFocus","The hover will not automatically take focus."),W.kg("showOrFocusHover.focus.focusIfVisible","The hover will take focus only if it is already visible."),W.kg("showOrFocusHover.focus.autoFocusImmediately","The hover will automatically take focus when it appears.")],default:_e.FocusIfVisible}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:L.R.editorTextFocus,primary:(0,r.m5)(2089,2087),weight:100}})}run(ae,me,fe){if(!me.hasModel())return;const le=Pe.get(me);if(!le)return;const oe=fe?.focus;let ne=_e.FocusIfVisible;Object.values(_e).includes(oe)?ne=oe:typeof oe=="boolean"&&oe&&(ne=_e.AutoFocusImmediately);const de=We=>{const we=me.getPosition(),Ue=new M.Q(we.lineNumber,we.column,we.lineNumber,we.column);le.showContentHover(Ue,1,1,We)},Le=me.getOption(2)===2;le.isHoverVisible?ne!==_e.NoAutoFocus?le.focus():de(Le):de(Le||ne===_e.AutoFocusImmediately)}}class De extends k.ks{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:W.kg({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(ae,me){const fe=Pe.get(me);if(!fe)return;const le=me.getPosition();if(!le)return;const oe=new M.Q(le.lineNumber,le.column,le.lineNumber,le.column),ne=x.k.get(me);if(!ne)return;ne.startFindDefinitionFromCursor(le).then(()=>{fe.showContentHover(oe,1,1,!0)})}}class Te extends k.ks{constructor(){super({id:"editor.action.scrollUpHover",label:W.kg({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:L.R.hoverFocused,kbOpts:{kbExpr:L.R.hoverFocused,primary:16,weight:100}})}run(ae,me){const fe=Pe.get(me);fe&&fe.scrollUp()}}class He extends k.ks{constructor(){super({id:"editor.action.scrollDownHover",label:W.kg({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:L.R.hoverFocused,kbOpts:{kbExpr:L.R.hoverFocused,primary:18,weight:100}})}run(ae,me){const fe=Pe.get(me);fe&&fe.scrollDown()}}class qe extends k.ks{constructor(){super({id:"editor.action.scrollLeftHover",label:W.kg({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:L.R.hoverFocused,kbOpts:{kbExpr:L.R.hoverFocused,primary:15,weight:100}})}run(ae,me){const fe=Pe.get(me);fe&&fe.scrollLeft()}}class Qe extends k.ks{constructor(){super({id:"editor.action.scrollRightHover",label:W.kg({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:L.R.hoverFocused,kbOpts:{kbExpr:L.R.hoverFocused,primary:17,weight:100}})}run(ae,me){const fe=Pe.get(me);fe&&fe.scrollRight()}}class q extends k.ks{constructor(){super({id:"editor.action.pageUpHover",label:W.kg({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:L.R.hoverFocused,kbOpts:{kbExpr:L.R.hoverFocused,primary:11,secondary:[528],weight:100}})}run(ae,me){const fe=Pe.get(me);fe&&fe.pageUp()}}class ye extends k.ks{constructor(){super({id:"editor.action.pageDownHover",label:W.kg({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:L.R.hoverFocused,kbOpts:{kbExpr:L.R.hoverFocused,primary:12,secondary:[530],weight:100}})}run(ae,me){const fe=Pe.get(me);fe&&fe.pageDown()}}class ge extends k.ks{constructor(){super({id:"editor.action.goToTopHover",label:W.kg({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:L.R.hoverFocused,kbOpts:{kbExpr:L.R.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(ae,me){const fe=Pe.get(me);fe&&fe.goToTop()}}class be extends k.ks{constructor(){super({id:"editor.action.goToBottomHover",label:W.kg({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:L.R.hoverFocused,kbOpts:{kbExpr:L.R.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(ae,me){const fe=Pe.get(me);fe&&fe.goToBottom()}}(0,k.HW)(Pe.ID,Pe,2),(0,k.Fl)(ee),(0,k.Fl)(De),(0,k.Fl)(Te),(0,k.Fl)(He),(0,k.Fl)(qe),(0,k.Fl)(Qe),(0,k.Fl)(q),(0,k.Fl)(ye),(0,k.Fl)(ge),(0,k.Fl)(be),b.B2.register(O.xJ),b.B2.register(ie),(0,p.zy)((Se,ae)=>{const me=Se.getColor(v.oZ8);me&&(ae.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${me.transparent(.5)}; }`),ae.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${me.transparent(.5)}; }`),ae.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${me.transparent(.5)}; }`))})},"./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverOperation.js":function(pt,Me,e){e.d(Me,{w:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");class L{constructor(I,S,f){this.value=I,this.isComplete=S,this.hasLoadingMessage=f}}class g extends M.jG{constructor(I,S){super(),this._editor=I,this._computer=S,this._onResult=this._register(new k.vl),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new r.uC(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new r.uC(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new r.uC(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(60).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(I,S=!0){this._state=I,S&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=(0,r.bI)(I=>this._computer.computeAsync(I)),(async()=>{try{for await(const I of this._asyncIterable)I&&(this._result.push(I),this._fireResult());this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(I){(0,F.dz)(I)}})()):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;const I=this._state===0,S=this._state===4;this._onResult.fire(new L(this._result.slice(0),I,S))}start(I){if(I===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverTypes.js":function(pt,Me,e){e.d(Me,{B2:function(){return k},hx:function(){return r},mm:function(){return F}});class r{constructor(L,g,x,I){this.priority=L,this.range=g,this.initialMousePosX=x,this.initialMousePosY=I,this.type=1}equals(L){return L.type===1&&this.range.equalsRange(L.range)}canAdoptVisibleHover(L,g){return L.type===1&&g.lineNumber===this.range.startLineNumber}}class F{constructor(L,g,x,I,S,f){this.priority=L,this.owner=g,this.range=x,this.initialMousePosX=I,this.initialMousePosY=S,this.supportsMarkerHover=f,this.type=2}equals(L){return L.type===2&&this.owner===L.owner}canAdoptVisibleHover(L,g){return L.type===2&&this.owner===L.owner}}const k=new class{constructor(){this._participants=[]}register(L){this._participants.push(L)}getAll(){return this._participants}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js":function(pt,Me,e){e.d(Me,{eH:function(){return u},fm:function(){return h},xJ:function(){return C}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/getHover.js"),d=e("./node_modules/monaco-editor/esm/vs/nls.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),i=function(v,p,b,O){var w=arguments.length,j=w<3?p:O===null?O=Object.getOwnPropertyDescriptor(p,b):O,U;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")j=Reflect.decorate(v,p,b,O);else for(var K=v.length-1;K>=0;K--)(U=v[K])&&(j=(w<3?U(j):w>3?U(p,b,j):U(p,b))||j);return w>3&&j&&Object.defineProperty(p,b,j),j},c=function(v,p){return function(b,O){p(b,O,v)}};const m=r.$;class u{constructor(p,b,O,w,j){this.owner=p,this.range=b,this.contents=O,this.isBeforeContent=w,this.ordinal=j}isValidForHoverAnchor(p){return p.type===1&&this.range.startColumn<=p.range.startColumn&&this.range.endColumn>=p.range.endColumn}}let C=class{constructor(p,b,O,w,j){this._editor=p,this._languageService=b,this._openerService=O,this._configurationService=w,this._languageFeaturesService=j,this.hoverOrdinal=3}createLoadingMessage(p){return new u(this,p.range,[new M.Bc().appendText(d.kg("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(p,b){if(!this._editor.hasModel()||p.type!==1)return[];const O=this._editor.getModel(),w=p.range.startLineNumber,j=O.getLineMaxColumn(w),U=[];let K=1e3;const G=O.getLineLength(w),P=O.getLanguageIdAtPosition(p.range.startLineNumber,p.range.startColumn),A=this._editor.getOption(117),T=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:P});let E=!1;A>=0&&G>A&&p.range.startColumn>=A&&(E=!0,U.push(new u(this,p.range,[{value:d.kg("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,K++))),!E&&typeof T=="number"&&G>=T&&U.push(new u(this,p.range,[{value:d.kg("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,K++));let W=!1;for(const $ of b){const z=$.range.startLineNumber===w?$.range.startColumn:1,J=$.range.endLineNumber===w?$.range.endColumn:j,B=$.options.hoverMessage;if(!B||(0,M.it)(B))continue;$.options.beforeContentClassName&&(W=!0);const V=new I.Q(p.range.startLineNumber,z,p.range.startLineNumber,J);U.push(new u(this,V,(0,F._j)(B),W,K++))}return U}computeAsync(p,b,O){if(!this._editor.hasModel()||p.type!==1)return k.AE.EMPTY;const w=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(w))return k.AE.EMPTY;const j=new x.y(p.range.startLineNumber,p.range.startColumn);return(0,f.Zt)(this._languageFeaturesService.hoverProvider,w,j,O).filter(U=>!(0,M.it)(U.hover.contents)).map(U=>{const K=U.hover.range?I.Q.lift(U.hover.range):p.range;return new u(this,K,U.hover.contents,!1,U.ordinal)})}renderHoverParts(p,b){return h(p,b,this._editor,this._languageService,this._openerService)}};C=i([c(1,S.L),c(2,s.C),c(3,a.pG),c(4,n.u)],C);function h(v,p,b,O,w){p.sort((U,K)=>U.ordinal-K.ordinal);const j=new L.Cm;for(const U of p)for(const K of U.contents){if((0,M.it)(K))continue;const G=m("div.hover-row.markdown-hover"),P=r.BC(G,m("div.hover-contents")),A=j.add(new g.T({editor:b},O,w));j.add(A.onDidRenderAsync(()=>{P.className="hover-contents code-hover-contents",v.onContentsChanged()}));const T=j.add(A.render(K));P.appendChild(T.element),v.fragment.appendChild(G)}return j}},"./node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/services/editorWorker.js"),f=e("./node_modules/monaco-editor/esm/vs/nls.js");class d{constructor(C,h,v){this._editRange=C,this._originalSelection=h,this._text=v}getEditOperations(C,h){h.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(C,h){const p=h.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new g.L(p.endLineNumber,Math.min(this._originalSelection.positionColumn,p.endColumn),p.endLineNumber,Math.min(this._originalSelection.positionColumn,p.endColumn)):new g.L(p.endLineNumber,p.endColumn-this._text.length,p.endLineNumber,p.endColumn)}}var a=function(u,C,h,v){var p=arguments.length,b=p<3?C:v===null?v=Object.getOwnPropertyDescriptor(C,h):v,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(u,C,h,v);else for(var w=u.length-1;w>=0;w--)(O=u[w])&&(b=(p<3?O(b):p>3?O(C,h,b):O(C,h))||b);return p>3&&b&&Object.defineProperty(C,h,b),b},s=function(u,C){return function(h,v){C(h,v,u)}},n;let i=n=class{static get(C){return C.getContribution(n.ID)}constructor(C,h){this.editor=C,this.editorWorkerService=h,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(C,h){var v;(v=this.currentRequest)===null||v===void 0||v.cancel();const p=this.editor.getSelection(),b=this.editor.getModel();if(!b||!p)return;let O=p;if(O.startLineNumber!==O.endLineNumber)return;const w=new k.$t(this.editor,5),j=b.uri;return this.editorWorkerService.canNavigateValueSet(j)?(this.currentRequest=(0,r.SS)(U=>this.editorWorkerService.navigateValueSet(j,O,h)),this.currentRequest.then(U=>{var K;if(!U||!U.range||!U.value||!w.validate(this.editor))return;const G=L.Q.lift(U.range);let P=U.range;const A=U.value.length-(O.endColumn-O.startColumn);P={startLineNumber:P.startLineNumber,startColumn:P.startColumn,endLineNumber:P.endLineNumber,endColumn:P.startColumn+U.value.length},A>1&&(O=new g.L(O.startLineNumber,O.startColumn,O.endLineNumber,O.endColumn+A-1));const T=new d(G,O,U.value);this.editor.pushUndoStop(),this.editor.executeCommand(C,T),this.editor.pushUndoStop(),this.decorations.set([{range:P,options:n.DECORATION}]),(K=this.decorationRemover)===null||K===void 0||K.cancel(),this.decorationRemover=(0,r.wR)(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(F.dz)}).catch(F.dz)):Promise.resolve(void 0)}};i.ID="editor.contrib.inPlaceReplaceController",i.DECORATION=I.kI.register({description:"in-place-replace",className:"valueSetReplacement"}),i=n=a([s(1,S.w)],i);class c extends M.ks{constructor(){super({id:"editor.action.inPlaceReplace.up",label:f.kg("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:x.R.writable,kbOpts:{kbExpr:x.R.editorTextFocus,primary:3159,weight:100}})}run(C,h){const v=i.get(h);return v?v.run(this.id,!1):Promise.resolve(void 0)}}class m extends M.ks{constructor(){super({id:"editor.action.inPlaceReplace.down",label:f.kg("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:x.R.writable,kbOpts:{kbExpr:x.R.editorTextFocus,primary:3161,weight:100}})}run(C,h){const v=i.get(h);return v?v.run(this.id,!0):Promise.resolve(void 0)}}(0,M.HW)(i.ID,i,4),(0,M.Fl)(c),(0,M.Fl)(m)},"./node_modules/monaco-editor/esm/vs/editor/contrib/indentation/browser/indentation.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/commands/shiftCommand.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/contrib/indentation/common/indentUtils.js"),f=e("./node_modules/monaco-editor/esm/vs/nls.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/autoIndent.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/core/indentation.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js");function c(E,W,$,z,J){if(E.getLineCount()===1&&E.getLineMaxColumn(1)===1)return[];const B=W.getLanguageConfiguration(E.getLanguageId()).indentationRules;if(!B)return[];for(z=Math.min(z,E.getLineCount());$<=z&&B.unIndentedLinePattern;){const Pe=E.getLineContent($);if(!B.unIndentedLinePattern.test(Pe))break;$++}if($>z-1)return[];const{tabSize:V,indentSize:Y,insertSpaces:X}=E.getOptions(),ie=(Pe,_e)=>(_e=_e||1,M.Y.shiftIndent(Pe,Pe.length+_e,V,Y,X)),re=(Pe,_e)=>(_e=_e||1,M.Y.unshiftIndent(Pe,Pe.length+_e,V,Y,X)),te=[];let D;const he=E.getLineContent($);let ve=he;if(J!=null){D=J;const Pe=F.UU(he);ve=D+he.substring(Pe.length),B.decreaseIndentPattern&&B.decreaseIndentPattern.test(ve)&&(D=re(D),ve=D+he.substring(Pe.length)),he!==ve&&te.push(s.k.replaceMove(new i.L($,1,$,Pe.length+1),(0,n.P)(D,Y,X)))}else D=F.UU(he);let Ce=D;B.increaseIndentPattern&&B.increaseIndentPattern.test(ve)?(Ce=ie(Ce),D=ie(D)):B.indentNextLinePattern&&B.indentNextLinePattern.test(ve)&&(Ce=ie(Ce)),$++;for(let Pe=$;Pe<=z;Pe++){const _e=E.getLineContent(Pe),ee=F.UU(_e),De=Ce+_e.substring(ee.length);B.decreaseIndentPattern&&B.decreaseIndentPattern.test(De)&&(Ce=re(Ce),D=re(D)),ee!==Ce&&te.push(s.k.replaceMove(new i.L(Pe,1,Pe,ee.length+1),(0,n.P)(Ce,Y,X))),!(B.unIndentedLinePattern&&B.unIndentedLinePattern.test(_e))&&(B.increaseIndentPattern&&B.increaseIndentPattern.test(De)?(D=ie(D),Ce=D):B.indentNextLinePattern&&B.indentNextLinePattern.test(De)?Ce=ie(Ce):Ce=D)}return te}var m=function(E,W,$,z){var J=arguments.length,B=J<3?W:z===null?z=Object.getOwnPropertyDescriptor(W,$):z,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(E,W,$,z);else for(var Y=E.length-1;Y>=0;Y--)(V=E[Y])&&(B=(J<3?V(B):J>3?V(W,$,B):V(W,$))||B);return J>3&&B&&Object.defineProperty(W,$,B),B},u=function(E,W){return function($,z){W($,z,E)}};class C extends k.ks{constructor(){super({id:C.ID,label:f.kg("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:g.R.writable})}run(W,$){const z=$.getModel();if(!z)return;const J=z.getOptions(),B=$.getSelection();if(!B)return;const V=new A(B,J.tabSize);$.pushUndoStop(),$.executeCommands(this.id,[V]),$.pushUndoStop(),z.updateOptions({insertSpaces:!0})}}C.ID="editor.action.indentationToSpaces";class h extends k.ks{constructor(){super({id:h.ID,label:f.kg("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:g.R.writable})}run(W,$){const z=$.getModel();if(!z)return;const J=z.getOptions(),B=$.getSelection();if(!B)return;const V=new T(B,J.tabSize);$.pushUndoStop(),$.executeCommands(this.id,[V]),$.pushUndoStop(),z.updateOptions({insertSpaces:!1})}}h.ID="editor.action.indentationToTabs";class v extends k.ks{constructor(W,$,z){super(z),this.insertSpaces=W,this.displaySizeOnly=$}run(W,$){const z=W.get(d.GK),J=W.get(I.S),B=$.getModel();if(!B)return;const V=J.getCreationOptions(B.getLanguageId(),B.uri,B.isForSimpleWidget),Y=B.getOptions(),X=[1,2,3,4,5,6,7,8].map(re=>({id:re.toString(),label:re.toString(),description:re===V.tabSize&&re===Y.tabSize?f.kg("configuredTabSize","Configured Tab Size"):re===V.tabSize?f.kg("defaultTabSize","Default Tab Size"):re===Y.tabSize?f.kg("currentTabSize","Current Tab Size"):void 0})),ie=Math.min(B.getOptions().tabSize-1,7);setTimeout(()=>{z.pick(X,{placeHolder:f.kg({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:X[ie]}).then(re=>{if(re&&B&&!B.isDisposed()){const te=parseInt(re.label,10);this.displaySizeOnly?B.updateOptions({tabSize:te}):B.updateOptions({tabSize:te,indentSize:te,insertSpaces:this.insertSpaces})}})},50)}}class p extends v{constructor(){super(!1,!1,{id:p.ID,label:f.kg("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}}p.ID="editor.action.indentUsingTabs";class b extends v{constructor(){super(!0,!1,{id:b.ID,label:f.kg("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}}b.ID="editor.action.indentUsingSpaces";class O extends v{constructor(){super(!0,!0,{id:O.ID,label:f.kg("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0})}}O.ID="editor.action.changeTabDisplaySize";class w extends k.ks{constructor(){super({id:w.ID,label:f.kg("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(W,$){const z=W.get(I.S),J=$.getModel();if(!J)return;const B=z.getCreationOptions(J.getLanguageId(),J.uri,J.isForSimpleWidget);J.detectIndentation(B.insertSpaces,B.tabSize)}}w.ID="editor.action.detectIndentation";class j extends k.ks{constructor(){super({id:"editor.action.reindentlines",label:f.kg("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:g.R.writable})}run(W,$){const z=W.get(x.JZ),J=$.getModel();if(!J)return;const B=c(J,z,1,J.getLineCount());B.length>0&&($.pushUndoStop(),$.executeEdits(this.id,B),$.pushUndoStop())}}class U extends k.ks{constructor(){super({id:"editor.action.reindentselectedlines",label:f.kg("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:g.R.writable})}run(W,$){const z=W.get(x.JZ),J=$.getModel();if(!J)return;const B=$.getSelections();if(B===null)return;const V=[];for(const Y of B){let X=Y.startLineNumber,ie=Y.endLineNumber;if(X!==ie&&Y.endColumn===1&&ie--,X===1){if(X===ie)continue}else X--;const re=c(J,z,X,ie);V.push(...re)}V.length>0&&($.pushUndoStop(),$.executeEdits(this.id,V),$.pushUndoStop())}}class K{constructor(W,$){this._initialSelection=$,this._edits=[],this._selectionId=null;for(const z of W)z.range&&typeof z.text=="string"&&this._edits.push(z)}getEditOperations(W,$){for(const J of this._edits)$.addEditOperation(L.Q.lift(J.range),J.text);let z=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(z=!0,this._selectionId=$.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(z=!0,this._selectionId=$.trackSelection(this._initialSelection,!1))),z||(this._selectionId=$.trackSelection(this._initialSelection))}computeCursorState(W,$){return $.getTrackedSelection(this._selectionId)}}let G=class{constructor(W,$){this.editor=W,this._languageConfigurationService=$,this.callOnDispose=new r.Cm,this.callOnModel=new r.Cm,this.callOnDispose.add(W.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(W.onDidChangeModel(()=>this.update())),this.callOnDispose.add(W.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(12)<4||this.editor.getOption(55))&&this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:W})=>{this.trigger(W)}))}trigger(W){const $=this.editor.getSelections();if($===null||$.length>1)return;const z=this.editor.getModel();if(!z||!z.tokenization.isCheapToTokenize(W.getStartPosition().lineNumber))return;const J=this.editor.getOption(12),{tabSize:B,indentSize:V,insertSpaces:Y}=z.getOptions(),X=[],ie={shiftIndent:he=>M.Y.shiftIndent(he,he.length+1,B,V,Y),unshiftIndent:he=>M.Y.unshiftIndent(he,he.length+1,B,V,Y)};let re=W.startLineNumber;for(;re<=W.endLineNumber;){if(this.shouldIgnoreLine(z,re)){re++;continue}break}if(re>W.endLineNumber)return;let te=z.getLineContent(re);if(!/\S/.test(te.substring(0,W.startColumn-1))){const he=(0,a.$f)(J,z,z.getLanguageId(),re,ie,this._languageConfigurationService);if(he!==null){const ve=F.UU(te),Ce=S.c(he,B),Pe=S.c(ve,B);if(Ce!==Pe){const _e=S.k(Ce,B,Y);X.push({range:new L.Q(re,1,re,ve.length+1),text:_e}),te=_e+te.substr(ve.length)}else{const _e=(0,a.Yb)(z,re,this._languageConfigurationService);if(_e===0||_e===8)return}}}const D=re;for(;rez.tokenization.getLineTokens(Ce),getLanguageId:()=>z.getLanguageId(),getLanguageIdAtPosition:(Ce,Pe)=>z.getLanguageIdAtPosition(Ce,Pe)},getLineContent:Ce=>Ce===D?te:z.getLineContent(Ce)},ve=(0,a.$f)(J,he,z.getLanguageId(),re+1,ie,this._languageConfigurationService);if(ve!==null){const Ce=S.c(ve,B),Pe=S.c(F.UU(z.getLineContent(re+1)),B);if(Ce!==Pe){const _e=Ce-Pe;for(let ee=re+1;ee<=W.endLineNumber;ee++){const De=z.getLineContent(ee),Te=F.UU(De),qe=S.c(Te,B)+_e,Qe=S.k(qe,B,Y);Qe!==Te&&X.push({range:new L.Q(ee,1,ee,Te.length+1),text:Qe})}}}}if(X.length>0){this.editor.pushUndoStop();const he=new K(X,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",he),this.editor.pushUndoStop()}}shouldIgnoreLine(W,$){W.tokenization.forceTokenization($);const z=W.getLineFirstNonWhitespaceColumn($);if(z===0)return!0;const J=W.tokenization.getLineTokens($);if(J.getCount()>0){const B=J.findTokenIndexAtOffset(z);if(B>=0&&J.getStandardTokenType(B)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};G.ID="editor.contrib.autoIndentOnPaste",G=m([u(1,x.JZ)],G);function P(E,W,$,z){if(E.getLineCount()===1&&E.getLineMaxColumn(1)===1)return;let J="";for(let V=0;V<$;V++)J+=" ";const B=new RegExp(J,"gi");for(let V=1,Y=E.getLineCount();V<=Y;V++){let X=E.getLineFirstNonWhitespaceColumn(V);if(X===0&&(X=E.getLineMaxColumn(V)),X===1)continue;const ie=new L.Q(V,1,V,X),re=E.getValueInRange(ie),te=z?re.replace(/\t/ig,J):re.replace(B," ");W.addEditOperation(ie,te)}}class A{constructor(W,$){this.selection=W,this.tabSize=$,this.selectionId=null}getEditOperations(W,$){this.selectionId=$.trackSelection(this.selection),P(W,$,this.tabSize,!0)}computeCursorState(W,$){return $.getTrackedSelection(this.selectionId)}}class T{constructor(W,$){this.selection=W,this.tabSize=$,this.selectionId=null}getEditOperations(W,$){this.selectionId=$.trackSelection(this.selection),P(W,$,this.tabSize,!1)}computeCursorState(W,$){return $.getTrackedSelection(this.selectionId)}}(0,k.HW)(G.ID,G,2),(0,k.Fl)(C),(0,k.Fl)(h),(0,k.Fl)(p),(0,k.Fl)(b),(0,k.Fl)(O),(0,k.Fl)(w),(0,k.Fl)(j),(0,k.Fl)(U)},"./node_modules/monaco-editor/esm/vs/editor/contrib/indentation/common/indentUtils.js":function(pt,Me,e){e.d(Me,{c:function(){return r},k:function(){return F}});function r(k,M){let L=0;for(let g=0;gthis._currentResolve=void 0)),await this._currentResolve}}async _doResolve(ge){var be,Se,ae;try{const me=await Promise.resolve(this.provider.resolveInlayHint(this.hint,ge));this.hint.tooltip=(be=me?.tooltip)!==null&&be!==void 0?be:this.hint.tooltip,this.hint.label=(Se=me?.label)!==null&&Se!==void 0?Se:this.hint.label,this.hint.textEdits=(ae=me?.textEdits)!==null&&ae!==void 0?ae:this.hint.textEdits,this._isResolved=!0}catch(me){(0,x.M_)(me),this._isResolved=!1}}}class K{static async create(ge,be,Se,ae){const me=[],fe=ge.ordered(be).reverse().map(le=>Se.map(async oe=>{try{const ne=await le.provideInlayHints(be,oe,ae);(ne?.hints.length||le.onDidChangeInlayHints)&&me.push([ne??K._emptyInlayHintList,le])}catch(ne){(0,x.M_)(ne)}}));if(await Promise.all(fe.flat()),ae.isCancellationRequested||be.isDisposed())throw new x.AL;return new K(Se,me,be)}constructor(ge,be,Se){this._disposables=new I.Cm,this.ranges=ge,this.provider=new Set;const ae=[];for(const[me,fe]of be){this._disposables.add(me),this.provider.add(fe);for(const le of me.hints){const oe=Se.validatePosition(le.position);let ne="before";const de=K._getRangeAtPosition(Se,oe);let Le;de.getStartPosition().isBefore(oe)?(Le=c.Q.fromPositions(de.getStartPosition(),oe),ne="after"):(Le=c.Q.fromPositions(oe,de.getEndPosition()),ne="before"),ae.push(new U(le,new j(Le,ne),fe))}}this.items=ae.sort((me,fe)=>O.y.compare(me.hint.position,fe.hint.position))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(ge,be){const Se=be.lineNumber,ae=ge.getWordAtPosition(be);if(ae)return new c.Q(Se,ae.startColumn,Se,ae.endColumn);ge.tokenization.tokenizeIfCheap(Se);const me=ge.tokenization.getLineTokens(Se),fe=be.column-1,le=me.findTokenIndexAtOffset(fe);let oe=me.getStartOffset(le),ne=me.getEndOffset(le);return ne-oe===1&&(oe===fe&&le>1?(oe=me.getStartOffset(le-1),ne=me.getEndOffset(le-1)):ne===fe&&le=0;le--)(fe=ye[le])&&(me=(ae<3?fe(me):ae>3?fe(ge,be,me):fe(ge,be))||me);return ae>3&&me&&Object.defineProperty(ge,be,me),me},B=function(ye,ge){return function(be,Se){ge(be,Se,ye)}},V;class Y{constructor(){this._entries=new S.qK(50)}get(ge){const be=Y._key(ge);return this._entries.get(be)}set(ge,be){const Se=Y._key(ge);this._entries.set(Se,be)}static _key(ge){return`${ge.uri.toString()}/${ge.getVersionId()}`}}const X=(0,E.u1)("IInlayHintsCache");(0,T.v)(X,Y,1);class ie{constructor(ge,be){this.item=ge,this.index=be}get part(){const ge=this.item.hint.label;return typeof ge=="string"?{label:ge}:ge[this.index]}}class re{constructor(ge,be){this.part=ge,this.hasTriggerModifier=be}}let te=V=class{static get(ge){var be;return(be=ge.getContribution(V.ID))!==null&&be!==void 0?be:void 0}constructor(ge,be,Se,ae,me,fe,le){this._editor=ge,this._languageFeaturesService=be,this._inlayHintsCache=ae,this._commandService=me,this._notificationService=fe,this._instaService=le,this._disposables=new I.Cm,this._sessionDisposables=new I.Cm,this._decorationsMetadata=new Map,this._ruleFactory=new a.Qn(this._editor),this._activeRenderMode=0,this._debounceInfo=Se.for(be.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(be.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(ge.onDidChangeModel(()=>this._update())),this._disposables.add(ge.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(ge.onDidChangeConfiguration(oe=>{oe.hasChanged(141)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();const ge=this._editor.getOption(141);if(ge.enabled==="off")return;const be=this._editor.getModel();if(!be||!this._languageFeaturesService.inlayHintsProvider.has(be))return;if(ge.enabled==="on")this._activeRenderMode=0;else{let le,oe;ge.enabled==="onUnlessPressed"?(le=0,oe=1):(le=1,oe=0),this._activeRenderMode=le,this._sessionDisposables.add(k.Di.getInstance().event(ne=>{if(!this._editor.hasModel())return;const de=ne.altKey&&ne.ctrlKey&&!(ne.shiftKey||ne.metaKey)?oe:le;if(de!==this._activeRenderMode){this._activeRenderMode=de;const Le=this._editor.getModel(),We=this._copyInlayHintsWithCurrentAnchor(Le);this._updateHintsDecorators([Le.getFullModelRange()],We),fe.schedule(0)}}))}const Se=this._inlayHintsCache.get(be);Se&&this._updateHintsDecorators([be.getFullModelRange()],Se),this._sessionDisposables.add((0,I.s)(()=>{be.isDisposed()||this._cacheHintsForFastRestore(be)}));let ae;const me=new Set,fe=new L.uC(async()=>{const le=Date.now();ae?.dispose(!0),ae=new g.Q;const oe=be.onWillDispose(()=>ae?.cancel());try{const ne=ae.token,de=await K.create(this._languageFeaturesService.inlayHintsProvider,be,this._getHintsRanges(),ne);if(fe.delay=this._debounceInfo.update(be,Date.now()-le),ne.isCancellationRequested){de.dispose();return}for(const Le of de.provider)typeof Le.onDidChangeInlayHints=="function"&&!me.has(Le)&&(me.add(Le),this._sessionDisposables.add(Le.onDidChangeInlayHints(()=>{fe.isScheduled()||fe.schedule()})));this._sessionDisposables.add(de),this._updateHintsDecorators(de.ranges,de.items),this._cacheHintsForFastRestore(be)}catch(ne){(0,x.dz)(ne)}finally{ae.dispose(),oe.dispose()}},this._debounceInfo.get(be));this._sessionDisposables.add(fe),this._sessionDisposables.add((0,I.s)(()=>ae?.dispose(!0))),fe.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(le=>{(le.scrollTopChanged||!fe.isScheduled())&&fe.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(le=>{ae?.cancel();const oe=Math.max(fe.delay,1250);fe.schedule(oe)})),this._sessionDisposables.add(this._installDblClickGesture(()=>fe.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){const ge=new I.Cm,be=ge.add(new b.gi(this._editor)),Se=new I.Cm;return ge.add(Se),ge.add(be.onMouseMoveOrRelevantKeyDown(ae=>{const[me]=ae,fe=this._getInlayHintLabelPart(me),le=this._editor.getModel();if(!fe||!le){Se.clear();return}const oe=new g.Q;Se.add((0,I.s)(()=>oe.dispose(!0))),fe.item.resolve(oe.token),this._activeInlayHintPart=fe.part.command||fe.part.location?new re(fe,me.hasTriggerModifier):void 0;const ne=le.validatePosition(fe.item.hint.position).lineNumber,de=new c.Q(ne,1,ne,le.getLineMaxColumn(ne)),Le=this._getInlineHintsForRange(de);this._updateHintsDecorators([de],Le),Se.add((0,I.s)(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([de],Le)}))})),ge.add(be.onCancel(()=>Se.clear())),ge.add(be.onExecute(async ae=>{const me=this._getInlayHintLabelPart(ae);if(me){const fe=me.part;fe.location?this._instaService.invokeFunction(P.U,ae,this._editor,fe.location):m.uB.is(fe.command)&&await this._invokeCommand(fe.command,me.item)}})),ge}_getInlineHintsForRange(ge){const be=new Set;for(const Se of this._decorationsMetadata.values())ge.containsRange(Se.item.anchor.range)&&be.add(Se.item);return Array.from(be)}_installDblClickGesture(ge){return this._editor.onMouseUp(async be=>{if(be.event.detail!==2)return;const Se=this._getInlayHintLabelPart(be);if(Se&&(be.event.preventDefault(),await Se.item.resolve(g.X.None),(0,M.EI)(Se.item.hint.textEdits))){const ae=Se.item.hint.textEdits.map(me=>i.k.replace(c.Q.lift(me.range),me.text));this._editor.executeEdits("inlayHint.default",ae),ge()}})}_installContextMenu(){return this._editor.onContextMenu(async ge=>{if(!(ge.event.target instanceof HTMLElement))return;const be=this._getInlayHintLabelPart(ge);be&&await this._instaService.invokeFunction(P.h,this._editor,ge.event.target,be)})}_getInlayHintLabelPart(ge){var be;if(ge.target.type!==6)return;const Se=(be=ge.target.detail.injectedText)===null||be===void 0?void 0:be.options;if(Se instanceof C.Ho&&Se?.attachedData instanceof ie)return Se.attachedData}async _invokeCommand(ge,be){var Se;try{await this._commandService.executeCommand(ge.id,...(Se=ge.arguments)!==null&&Se!==void 0?Se:[])}catch(ae){this._notificationService.notify({severity:W.AI.Error,source:be.provider.displayName,message:ae})}}_cacheHintsForFastRestore(ge){const be=this._copyInlayHintsWithCurrentAnchor(ge);this._inlayHintsCache.set(ge,be)}_copyInlayHintsWithCurrentAnchor(ge){const be=new Map;for(const[Se,ae]of this._decorationsMetadata){if(be.has(ae.item))continue;const me=ge.getDecorationRange(Se);if(me){const fe=new j(me,ae.item.anchor.direction),le=ae.item.with({anchor:fe});be.set(ae.item,le)}}return Array.from(be.values())}_getHintsRanges(){const be=this._editor.getModel(),Se=this._editor.getVisibleRangesPlusViewportAboveBelow(),ae=[];for(const me of Se.sort(c.Q.compareRangesUsingStarts)){const fe=be.validateRange(new c.Q(me.startLineNumber-30,me.startColumn,me.endLineNumber+30,me.endColumn));ae.length===0||!c.Q.areIntersectingOrTouching(ae[ae.length-1],fe)?ae.push(fe):ae[ae.length-1]=c.Q.plusRange(ae[ae.length-1],fe)}return ae}_updateHintsDecorators(ge,be){var Se,ae;const me=[],fe=(Et,Kt,Zt,qt,tt)=>{const Mt={content:Zt,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:Kt.className,cursorStops:qt,attachedData:tt};me.push({item:Et,classNameRef:Kt,decoration:{range:Et.anchor.range,options:{description:"InlayHint",showIfCollapsed:Et.anchor.range.isEmpty(),collapseOnReplaceEdit:!Et.anchor.range.isEmpty(),stickiness:0,[Et.anchor.direction]:this._activeRenderMode===0?Mt:void 0}}})},le=(Et,Kt)=>{const Zt=this._ruleFactory.createClassNameRef({width:`${oe/3|0}px`,display:"inline-block"});fe(Et,Zt,"\u200A",Kt?u.VW.Right:u.VW.None)},{fontSize:oe,fontFamily:ne,padding:de,isUniform:Le}=this._getLayoutInfo(),We="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(We,ne);let we={line:0,totalLen:0};for(const Et of be){if(we.line!==Et.anchor.range.startLineNumber&&(we={line:Et.anchor.range.startLineNumber,totalLen:0}),we.totalLen>V._MAX_LABEL_LEN)continue;Et.hint.paddingLeft&&le(Et,!1);const Kt=typeof Et.hint.label=="string"?[{label:Et.hint.label}]:Et.hint.label;for(let Zt=0;Zt0&&(xt=xt.slice(0,-Nt)+"\u2026",Jt=!0),fe(Et,this._ruleFactory.createClassNameRef(Ht),D(xt),Mt&&!Et.hint.paddingRight?u.VW.Right:u.VW.None,new ie(Et,Zt)),Jt)break}if(Et.hint.paddingRight&&le(Et,!0),me.length>V._MAX_DECORATORS)break}const Ue=[];for(const[Et,Kt]of this._decorationsMetadata){const Zt=(ae=this._editor.getModel())===null||ae===void 0?void 0:ae.getDecorationRange(Et);Zt&&ge.some(qt=>qt.containsRange(Zt))&&(Ue.push(Et),Kt.classNameRef.dispose(),this._decorationsMetadata.delete(Et))}const lt=s.D.capture(this._editor);this._editor.changeDecorations(Et=>{const Kt=Et.deltaDecorations(Ue,me.map(Zt=>Zt.decoration));for(let Zt=0;ZtSe)&&(me=Se);const fe=ge.fontFamily||ae;return{fontSize:me,fontFamily:fe,padding:be,isUniform:!be&&fe===ae&&me===Se}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(const ge of this._decorationsMetadata.values())ge.classNameRef.dispose();this._decorationsMetadata.clear()}};te.ID="editor.contrib.InlayHints",te._MAX_DECORATORS=1500,te._MAX_LABEL_LEN=43,te=V=J([B(1,v.u),B(2,h.U),B(3,X),B(4,A.d),B(5,W.Ot),B(6,E._Y)],te);function D(ye){return ye.replace(/[ \t]/g,"\xA0")}A.w.registerCommand("_executeInlayHintProvider",async(ye,...ge)=>{const[be,Se]=ge;(0,f.j)(d.r.isUri(be)),(0,f.j)(c.Q.isIRange(Se));const{inlayHintsProvider:ae}=ye.get(v.u),me=await ye.get(p.b).createModelReference(be);try{const fe=await K.create(ae,me.object.textEditorModel,[c.Q.lift(Se)],g.X.None),le=fe.items.map(oe=>oe.hint);return setTimeout(()=>fe.dispose(),0),le}finally{me.dispose()}});var he=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),ve=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),Ce=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/getHover.js"),Pe=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js"),_e=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),ee=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),De=e("./node_modules/monaco-editor/esm/vs/nls.js"),Te=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),He=function(ye,ge,be,Se){var ae=arguments.length,me=ae<3?ge:Se===null?Se=Object.getOwnPropertyDescriptor(ge,be):Se,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")me=Reflect.decorate(ye,ge,be,Se);else for(var le=ye.length-1;le>=0;le--)(fe=ye[le])&&(me=(ae<3?fe(me):ae>3?fe(ge,be,me):fe(ge,be))||me);return ae>3&&me&&Object.defineProperty(ge,be,me),me},qe=function(ye,ge){return function(be,Se){ge(be,Se,ye)}};class Qe extends F.mm{constructor(ge,be,Se,ae){super(10,be,ge.item.anchor.range,Se,ae,!0),this.part=ge}}let q=class extends Pe.xJ{constructor(ge,be,Se,ae,me,fe){super(ge,be,Se,ae,fe),this._resolverService=me,this.hoverOrdinal=6}suggestHoverAnchor(ge){var be;if(!te.get(this._editor)||ge.target.type!==6)return null;const ae=(be=ge.target.detail.injectedText)===null||be===void 0?void 0:be.options;return ae instanceof C.Ho&&ae.attachedData instanceof ie?new Qe(ae.attachedData,this,ge.event.posx,ge.event.posy):null}computeSync(){return[]}computeAsync(ge,be,Se){return ge instanceof Qe?new L.AE(async ae=>{const{part:me}=ge;if(await me.item.resolve(Se),Se.isCancellationRequested)return;let fe;typeof me.item.hint.tooltip=="string"?fe=new he.Bc().appendText(me.item.hint.tooltip):me.item.hint.tooltip&&(fe=me.item.hint.tooltip),fe&&ae.emitOne(new Pe.eH(this,ge.range,[fe],!1,0)),(0,M.EI)(me.item.hint.textEdits)&&ae.emitOne(new Pe.eH(this,ge.range,[new he.Bc().appendText((0,De.kg)("hint.dbl","Double-click to insert"))],!1,10001));let le;if(typeof me.part.tooltip=="string"?le=new he.Bc().appendText(me.part.tooltip):me.part.tooltip&&(le=me.part.tooltip),le&&ae.emitOne(new Pe.eH(this,ge.range,[le],!1,1)),me.part.location||me.part.command){let ne;const Le=this._editor.getOption(78)==="altKey"?Te.zx?(0,De.kg)("links.navigate.kb.meta.mac","cmd + click"):(0,De.kg)("links.navigate.kb.meta","ctrl + click"):Te.zx?(0,De.kg)("links.navigate.kb.alt.mac","option + click"):(0,De.kg)("links.navigate.kb.alt","alt + click");me.part.location&&me.part.command?ne=new he.Bc().appendText((0,De.kg)("hint.defAndCommand","Go to Definition ({0}), right click for more",Le)):me.part.location?ne=new he.Bc().appendText((0,De.kg)("hint.def","Go to Definition ({0})",Le)):me.part.command&&(ne=new he.Bc(`[${(0,De.kg)("hint.cmd","Execute Command")}](${G(me.part.command)} "${me.part.command.title}") (${Le})`,{isTrusted:!0})),ne&&ae.emitOne(new Pe.eH(this,ge.range,[ne],!1,1e4))}const oe=await this._resolveInlayHintLabelPartHover(me,Se);for await(const ne of oe)ae.emitOne(ne)}):L.AE.EMPTY}async _resolveInlayHintLabelPartHover(ge,be){if(!ge.part.location)return L.AE.EMPTY;const{uri:Se,range:ae}=ge.part.location,me=await this._resolverService.createModelReference(Se);try{const fe=me.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(fe)?(0,Ce.Zt)(this._languageFeaturesService.hoverProvider,fe,new O.y(ae.startLineNumber,ae.startColumn),be).filter(le=>!(0,he.it)(le.hover.contents)).map(le=>new Pe.eH(this,ge.item.anchor.range,le.hover.contents,!1,2+le.ordinal)):L.AE.EMPTY}finally{me.dispose()}}};q=He([qe(1,ve.L),qe(2,ee.C),qe(3,_e.pG),qe(4,p.b),qe(5,v.u)],q),(0,r.HW)(te.ID,te,1),F.B2.register(q)},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js":function(pt,Me,e){e.d(Me,{U:function(){return c},h:function(){return i}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/uuid.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/contrib/peekView/browser/peekView.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js");async function i(m,u,C,h){var v;const p=m.get(g.b),b=m.get(a.Z),O=m.get(f.d),w=m.get(s._Y),j=m.get(n.Ot);if(await h.item.resolve(k.X.None),!h.part.location)return;const U=h.part.location,K=[],G=new Set(S.ZG.getMenuItems(S.D8.EditorContext).map(A=>(0,S.is)(A)?A.command.id:(0,M.b)()));for(const A of x.bn.all())G.has(A.desc.id)&&K.push(new F.rc(A.desc.id,S.Xe.label(A.desc,{renderShortTitle:!0}),void 0,!0,async()=>{const T=await p.createModelReference(U.uri);try{const E=new x.QS(T.object.textEditorModel,L.Q.getStartPosition(U.range)),W=h.item.anchor.range;await w.invokeFunction(A.runEditorCommand.bind(A),u,E,W)}finally{T.dispose()}}));if(h.part.command){const{command:A}=h.part;K.push(new F.wv),K.push(new F.rc(A.id,A.title,void 0,!0,async()=>{var T;try{await O.executeCommand(A.id,...(T=A.arguments)!==null&&T!==void 0?T:[])}catch(E){j.notify({severity:n.AI.Error,source:h.item.provider.displayName,message:E})}}))}const P=u.getOption(127);b.showContextMenu({domForShadowRoot:P&&(v=u.getDomNode())!==null&&v!==void 0?v:void 0,getAnchor:()=>{const A=r.BK(C);return{x:A.left,y:A.top+A.height+8}},getActions:()=>K,onHide:()=>{u.focus()},autoSelectFirstItem:!0})}async function c(m,u,C,h){const p=await m.get(g.b).createModelReference(h.uri);await C.invokeWithinContext(async b=>{const O=u.hasSideBySideModifier,w=b.get(d.fN),j=I.x2.inPeekEditor.getValue(w),U=!O&&C.getOption(88)&&!j;return new x.mR({openToSide:O,openInPeek:U,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(b,new x.QS(p.object.textEditorModel,L.Q.getStartPosition(h.range)),L.Q.lift(h.range))}),p.dispose()}},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/commandIds.js":function(pt,Me,e){e.d(Me,{PA:function(){return k},Vl:function(){return F},Wt:function(){return r}});const r="editor.action.inlineSuggest.commit",F="editor.action.inlineSuggest.showPrevious",k="editor.action.inlineSuggest.showNext"},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.js":function(pt,Me,e){e.d(Me,{AL:function(){return S},Vs:function(){return I},x9:function(){return f},xD:function(){return g},yP:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textEdit.js");class g{constructor(a,s){this.lineNumber=a,this.parts=s}equals(a){return this.lineNumber===a.lineNumber&&this.parts.length===a.parts.length&&this.parts.every((s,n)=>s.equals(a.parts[n]))}renderForScreenReader(a){if(this.parts.length===0)return"";const s=this.parts[this.parts.length-1],n=a.substr(0,s.column-1);return new L.mF([...this.parts.map(c=>new L.WR(M.Q.fromPositions(new k.y(1,c.column)),c.lines.join(` `)))]).applyToString(n).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(a=>a.lines.length===0)}get lineCount(){return 1+this.parts.reduce((a,s)=>a+s.lines.length-1,0)}}class x{constructor(a,s,n){this.column=a,this.text=s,this.preview=n,this.lines=(0,F.uz)(this.text)}equals(a){return this.column===a.column&&this.lines.length===a.lines.length&&this.lines.every((s,n)=>s===a.lines[n])}}class I{constructor(a,s,n,i=0){this.lineNumber=a,this.columnRange=s,this.text=n,this.additionalReservedLineCount=i,this.parts=[new x(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,F.uz)(this.text)}renderForScreenReader(a){return this.newLines.join(` `)}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every(a=>a.lines.length===0)}equals(a){return this.lineNumber===a.lineNumber&&this.columnRange.equals(a.columnRange)&&this.newLines.length===a.newLines.length&&this.newLines.every((s,n)=>s===a.newLines[n])&&this.additionalReservedLineCount===a.additionalReservedLineCount}}function S(d,a){return(0,r.aI)(d,a,f)}function f(d,a){return d===a?!0:!d||!a?!1:d instanceof g&&a instanceof g||d instanceof I&&a instanceof I?d.equals(a):!1}},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js":function(pt,Me,e){e.d(Me,{PM:function(){return v},vS:function(){return p}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/trustedTypes.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/domFontInfo.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/utils.js"),u=function(w,j,U,K){var G=arguments.length,P=G<3?j:K===null?K=Object.getOwnPropertyDescriptor(j,U):K,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(w,j,U,K);else for(var T=w.length-1;T>=0;T--)(A=w[T])&&(P=(G<3?A(P):G>3?A(j,U,P):A(j,U))||P);return G>3&&P&&Object.defineProperty(j,U,P),P},C=function(w,j){return function(U,K){j(U,K,w)}};const h="ghost-text";let v=class extends k.jG{constructor(j,U,K){super(),this.editor=j,this.model=U,this.languageService=K,this.isDisposed=(0,M.FY)(this,!1),this.currentTextModel=(0,M.y0)(this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=(0,M.un)(this,G=>{if(this.isDisposed.read(G))return;const P=this.currentTextModel.read(G);if(P!==this.model.targetTextModel.read(G))return;const A=this.model.ghostText.read(G);if(!A)return;const T=A instanceof c.Vs?A.columnRange:void 0,E=[],W=[];function $(Y,X){if(W.length>0){const ie=W[W.length-1];X&&ie.decorations.push(new n.d(ie.content.length+1,ie.content.length+1+Y[0].length,X,0)),ie.content+=Y[0],Y=Y.slice(1)}for(const ie of Y)W.push({content:ie,decorations:X?[new n.d(1,ie.length+1,X,0)]:[]})}const z=P.getLineContent(A.lineNumber);let J,B=0;for(const Y of A.parts){let X=Y.lines;J===void 0?(E.push({column:Y.column,text:X[0],preview:Y.preview}),X=X.slice(1)):$([z.substring(B,Y.column-1)],void 0),X.length>0&&($(X,h),J===void 0&&Y.column<=z.length&&(J=Y.column)),B=Y.column-1}J!==void 0&&$([z.substring(B)],void 0);const V=J!==void 0?new m.GM(J,z.length+1):void 0;return{replacedRange:T,inlineTexts:E,additionalLines:W,hiddenRange:V,lineNumber:A.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(G),targetTextModel:P}}),this.decorations=(0,M.un)(this,G=>{const P=this.uiState.read(G);if(!P)return[];const A=[];P.replacedRange&&A.push({range:P.replacedRange.toRange(P.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),P.hiddenRange&&A.push({range:P.hiddenRange.toRange(P.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(const T of P.inlineTexts)A.push({range:S.Q.fromPositions(new I.y(P.lineNumber,T.column)),options:{description:h,after:{content:T.text,inlineClassName:T.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:a.VW.Left},showIfCollapsed:!0}});return A}),this.additionalLinesWidget=this._register(new p(this.editor,this.languageService.languageIdCodec,(0,M.un)(G=>{const P=this.uiState.read(G);return P?{lineNumber:P.lineNumber,additionalLines:P.additionalLines,minReservedLineCount:P.additionalReservedLineCount,targetTextModel:P.targetTextModel}:void 0}))),this._register((0,k.s)(()=>{this.isDisposed.set(!0,void 0)})),this._register((0,m.pY)(this.editor,this.decorations))}ownsViewZone(j){return this.additionalLinesWidget.viewZoneId===j}};v=u([C(2,d.L)],v);class p extends k.jG{get viewZoneId(){return this._viewZoneId}constructor(j,U,K){super(),this.editor=j,this.languageIdCodec=U,this.lines=K,this._viewZoneId=void 0,this.editorOptionsChanged=(0,M.yQ)("editorOptionChanged",F.Jh.filter(this.editor.onDidChangeConfiguration,G=>G.hasChanged(33)||G.hasChanged(117)||G.hasChanged(99)||G.hasChanged(94)||G.hasChanged(51)||G.hasChanged(50)||G.hasChanged(67))),this._register((0,M.fm)(G=>{const P=this.lines.read(G);this.editorOptionsChanged.read(G),P?this.updateLines(P.lineNumber,P.additionalLines,P.minReservedLineCount):this.clear()}))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones(j=>{this._viewZoneId&&(j.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(j,U,K){const G=this.editor.getModel();if(!G)return;const{tabSize:P}=G.getOptions();this.editor.changeViewZones(A=>{this._viewZoneId&&(A.removeZone(this._viewZoneId),this._viewZoneId=void 0);const T=Math.max(U.length,K);if(T>0){const E=document.createElement("div");b(E,P,U,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=A.addZone({afterLineNumber:j,heightInLines:T,domNode:E,afterColumnAffinity:1})}})}}function b(w,j,U,K,G){const P=K.get(33),A=K.get(117),T="none",E=K.get(94),W=K.get(51),$=K.get(50),z=K.get(67),J=new f.fe(1e4);J.appendString('
    ');for(let Y=0,X=U.length;Y');const te=L.aC(re),D=L.E_(re),he=s.f.createEmpty(re,G);(0,i.UW)(new i.zL($.isMonospace&&!P,$.canUseHalfwidthRightwardsArrow,re,!1,te,D,0,he,ie.decorations,j,0,$.spaceWidth,$.middotWidth,$.wsmiddotWidth,A,T,E,W!==x.Bc.OFF,null),J),J.appendString("
    ")}J.appendString(""),(0,g.M)(w,$);const B=J.build(),V=O?O.createHTML(B):B;w.innerHTML=V}const O=(0,r.H)("editorGhostText",{createHTML:w=>w})},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js":function(pt,Me,e){e.d(Me,{p:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/cursorColumns.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/nls.js");class x extends L.jG{constructor(S,f){super(),this.contextKeyService=S,this.model=f,this.inlineCompletionVisible=x.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=x.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=x.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=x.suppressSuggestions.bindTo(this.contextKeyService),this._register((0,r.fm)(d=>{const a=this.model.read(d),s=a?.state.read(d),n=!!s?.inlineCompletion&&s?.primaryGhostText!==void 0&&!s?.primaryGhostText.isEmpty();this.inlineCompletionVisible.set(n),s?.primaryGhostText&&s?.inlineCompletion&&this.suppressSuggestions.set(s.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)})),this._register((0,r.fm)(d=>{const a=this.model.read(d);let s=!1,n=!0;const i=a?.primaryGhostText.read(d);if(a?.selectedSuggestItem&&i&&i.parts.length>0){const{column:c,lines:m}=i.parts[0],u=m[0],C=a.textModel.getLineIndentColumn(i.lineNumber);if(c<=C){let v=(0,F.HG)(u);v===-1&&(v=u.length-1),s=v>0;const p=a.textModel.getOptions().tabSize;n=k.A.visibleColumnFromColumn(u,v+1,p)Ge.getLanguageConfiguration(Tt)),bt=new J.tk(new V([rt]),it),Dt=(0,$.T)(bt,[],void 0,!0);let At="";const et=rt.getLineContent();function at(Tt,dt){if(Tt.kind===2)if(at(Tt.openingBracket,dt),dt=(0,W.QB)(dt,Tt.openingBracket.length),Tt.child&&(at(Tt.child,dt),dt=(0,W.QB)(dt,Tt.child.length)),Tt.closingBracket)at(Tt.closingBracket,dt),dt=(0,W.QB)(dt,Tt.closingBracket.length);else{const ct=it.getSingleLanguageBracketTokens(Tt.openingBracket.languageId).findClosingTokenText(Tt.openingBracket.bracketIds);At+=ct}else if(Tt.kind!==3){if(Tt.kind===0||Tt.kind===1)At+=et.substring((0,W.sS)(dt),(0,W.sS)((0,W.QB)(dt,Tt.length)));else if(Tt.kind===4)for(const Ae of Tt.children)at(Ae,dt),dt=(0,W.QB)(dt,Ae.length)}}return at(Dt,W.Vp),At}class V{constructor(Ge){this.lines=Ge,this.tokenization={getLineTokens:nt=>this.lines[nt-1]}}getLineCount(){return this.lines.length}getLineLength(Ge){return this.lines[Ge-1].getLineContent().length}}var Y=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/utils.js"),X=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.js");async function ie(rt,Ge,nt,it,bt=K.X.None,Dt){const At=he(Ge,nt),et=rt.all(nt),at=new T.db;for(const ln of et)ln.groupId&&at.add(ln.groupId,ln);function Tt(ln){if(!ln.yieldsToGroupIds)return[];const vn=[];for(const Ln of ln.yieldsToGroupIds||[]){const En=at.get(Ln);for(const In of En)vn.push(In)}return vn}const dt=new Map,Ae=new Set;function ct(ln,vn){if(vn=[...vn,ln],Ae.has(ln))return vn;Ae.add(ln);try{const Ln=Tt(ln);for(const En of Ln){const In=ct(En,vn);if(In)return In}}finally{Ae.delete(ln)}}function ut(ln){const vn=dt.get(ln);if(vn)return vn;const Ln=ct(ln,[]);Ln&&(0,C.M_)(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${Ln.map(In=>In.toString?In.toString():""+In).join(" -> ")}`));const En=new A.Zv;return dt.set(ln,En.p),(async()=>{if(!Ln){const In=Tt(ln);for(const ei of In){const en=await ut(ei);if(en&&en.items.length>0)return}}try{return await ln.provideInlineCompletions(nt,Ge,it,bt)}catch(In){(0,C.M_)(In);return}})().then(In=>En.complete(In),In=>En.error(In)),En.p}const je=await Promise.all(et.map(async ln=>({provider:ln,completions:await ut(ln)}))),Rt=new Map,Ft=[];for(const ln of je){const vn=ln.completions;if(!vn)continue;const Ln=new te(vn,ln.provider);Ft.push(Ln);for(const En of vn.items){const In=D.from(En,Ln,At,nt,Dt);Rt.set(In.hash(),In)}}return new re(Array.from(Rt.values()),new Set(Rt.keys()),Ft)}class re{constructor(Ge,nt,it){this.completions=Ge,this.hashs=nt,this.providerResults=it}has(Ge){return this.hashs.has(Ge.hash())}dispose(){for(const Ge of this.providerResults)Ge.removeRef()}}class te{constructor(Ge,nt){this.inlineCompletions=Ge,this.provider=nt,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,this.refCount===0&&this.provider.freeInlineCompletions(this.inlineCompletions)}}class D{static from(Ge,nt,it,bt,Dt){let At,et,at=Ge.range?b.Q.lift(Ge.range):it;if(typeof Ge.insertText=="string"){if(At=Ge.insertText,Dt&&Ge.completeBracketPairs){At=ve(At,at.getStartPosition(),bt,Dt);const Tt=At.length-Ge.insertText.length;Tt!==0&&(at=new b.Q(at.startLineNumber,at.startColumn,at.endLineNumber,at.endColumn+Tt))}et=void 0}else if("snippet"in Ge.insertText){const Tt=Ge.insertText.snippet.length;if(Dt&&Ge.completeBracketPairs){Ge.insertText.snippet=ve(Ge.insertText.snippet,at.getStartPosition(),bt,Dt);const Ae=Ge.insertText.snippet.length-Tt;Ae!==0&&(at=new b.Q(at.startLineNumber,at.startColumn,at.endLineNumber,at.endColumn+Ae))}const dt=new X.fr().parse(Ge.insertText.snippet);dt.children.length===1&&dt.children[0]instanceof X.EY?(At=dt.children[0].value,et=void 0):(At=dt.toString(),et={snippet:Ge.insertText.snippet,range:at})}else(0,P.xb)(Ge.insertText);return new D(At,Ge.command,at,At,et,Ge.additionalTextEdits||(0,Y.zk)(),Ge,nt)}constructor(Ge,nt,it,bt,Dt,At,et,at){this.filterText=Ge,this.command=nt,this.range=it,this.insertText=bt,this.snippetInfo=Dt,this.additionalTextEdits=At,this.sourceInlineCompletion=et,this.source=at,Ge=Ge.replace(/\r\n|\r/g,` `),bt=Ge.replace(/\r\n|\r/g,` `)}withRange(Ge){return new D(this.filterText,this.command,Ge,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}function he(rt,Ge){const nt=Ge.getWordAtPosition(rt),it=Ge.getLineMaxColumn(rt.lineNumber);return nt?new b.Q(rt.lineNumber,nt.startColumn,rt.lineNumber,it):b.Q.fromPositions(rt,rt.with(void 0,it))}function ve(rt,Ge,nt,it){const Dt=nt.getLineContent(Ge.lineNumber).substring(0,Ge.column-1)+rt,At=nt.tokenization.tokenizeLineWithEdit(Ge,Dt.length-(Ge.column-1),rt),et=At?.sliceAndInflate(Ge.column-1,Dt.length,0);return et?B(et,it):rt}var Ce=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textEdit.js"),Pe=e("./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js"),_e=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textLength.js");function ee(rt,Ge,nt){const it=nt?rt.range.intersectRanges(nt):rt.range;if(!it)return rt;const bt=Ge.getValueInRange(it,1),Dt=(0,h.Qp)(bt,rt.text),At=_e.W.ofText(bt.substring(0,Dt)).addToPosition(rt.range.getStartPosition()),et=rt.text.substring(Dt),at=b.Q.fromPositions(At,rt.range.getEndPosition());return new Ce.WR(at,et)}function De(rt,Ge){return rt.text.startsWith(Ge.text)&&He(rt.range,Ge.range)}function Te(rt,Ge,nt,it,bt=0){let Dt=ee(rt,Ge);if(Dt.range.endLineNumber!==Dt.range.startLineNumber)return;const At=Ge.getLineContent(Dt.range.startLineNumber),et=(0,h.UU)(At).length;if(Dt.range.startColumn-1<=et){const je=(0,h.UU)(Dt.text).length,Rt=At.substring(Dt.range.startColumn-1,et),[Ft,ln]=[Dt.range.getStartPosition(),Dt.range.getEndPosition()],vn=Ft.column+Rt.length<=ln.column?Ft.delta(0,Rt.length):ln,Ln=b.Q.fromPositions(vn,ln),En=Dt.text.startsWith(Rt)?Dt.text.substring(Rt.length):Dt.text.substring(je);Dt=new Ce.WR(Ln,En)}const Tt=Ge.getValueInRange(Dt.range),dt=Qe(Tt,Dt.text);if(!dt)return;const Ae=Dt.range.startLineNumber,ct=new Array;if(nt==="prefix"){const je=dt.filter(Rt=>Rt.originalLength===0);if(je.length>1||je.length===1&&je[0].originalStart!==Tt.length)return}const ut=Dt.text.length-bt;for(const je of dt){const Rt=Dt.range.startColumn+je.originalStart+je.originalLength;if(nt==="subwordSmart"&&it&&it.lineNumber===Dt.range.startLineNumber&&Rt0)return;if(je.modifiedLength===0)continue;const Ft=je.modifiedStart+je.modifiedLength,ln=Math.max(je.modifiedStart,Math.min(Ft,ut)),vn=Dt.text.substring(je.modifiedStart,ln),Ln=Dt.text.substring(ln,Math.max(je.modifiedStart,Ft));vn.length>0&&ct.push(new U.yP(Rt,vn,!1)),Ln.length>0&&ct.push(new U.yP(Rt,Ln,!0))}return new U.xD(Ae,ct)}function He(rt,Ge){return Ge.getStartPosition().equals(rt.getStartPosition())&&Ge.getEndPosition().isBeforeOrEqual(rt.getEndPosition())}let qe;function Qe(rt,Ge){if(qe?.originalValue===rt&&qe?.newValue===Ge)return qe?.changes;{let nt=ye(rt,Ge,!0);if(nt){const it=q(nt);if(it>0){const bt=ye(rt,Ge,!1);bt&&q(bt)5e3||Ge.length>5e3)return;function it(Tt){let dt=0;for(let Ae=0,ct=Tt.length;Aedt&&(dt=ut)}return dt}const bt=Math.max(it(rt),it(Ge));function Dt(Tt){if(Tt<0)throw new Error("unexpected");return bt+Tt+1}function At(Tt){let dt=0,Ae=0;const ct=new Int32Array(Tt.length);for(let ut=0,je=Tt.length;utet},{getElements:()=>at}).ComputeDiff(!1).changes}var ge=function(rt,Ge,nt,it){var bt=arguments.length,Dt=bt<3?Ge:it===null?it=Object.getOwnPropertyDescriptor(Ge,nt):it,At;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Dt=Reflect.decorate(rt,Ge,nt,it);else for(var et=rt.length-1;et>=0;et--)(At=rt[et])&&(Dt=(bt<3?At(Dt):bt>3?At(Ge,nt,Dt):At(Ge,nt))||Dt);return bt>3&&Dt&&Object.defineProperty(Ge,nt,Dt),Dt},be=function(rt,Ge){return function(nt,it){Ge(nt,it,rt)}};let Se=class extends f.jG{constructor(Ge,nt,it,bt,Dt){super(),this.textModel=Ge,this.versionId=nt,this._debounceValue=it,this.languageFeaturesService=bt,this.languageConfigurationService=Dt,this._updateOperation=this._register(new f.HE),this.inlineCompletions=(0,k.X2)("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=(0,k.X2)("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent(()=>{this._updateOperation.clear()}))}fetch(Ge,nt,it){var bt,Dt;const At=new me(Ge,nt,this.textModel.getVersionId()),et=nt.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(!((bt=this._updateOperation.value)===null||bt===void 0)&&bt.request.satisfies(At))return this._updateOperation.value.promise;if(!((Dt=et.get())===null||Dt===void 0)&&Dt.request.satisfies(At))return Promise.resolve(!0);const at=!!this._updateOperation.value;this._updateOperation.clear();const Tt=new K.Q,dt=(async()=>{if((at||nt.triggerKind===w.qw.Automatic)&&await ae(this._debounceValue.get(this.textModel),Tt.token),Tt.token.isCancellationRequested||this.textModel.getVersionId()!==At.versionId)return!1;const ut=new Date,je=await ie(this.languageFeaturesService.inlineCompletionsProvider,Ge,this.textModel,nt,Tt.token,this.languageConfigurationService);if(Tt.token.isCancellationRequested||this.textModel.getVersionId()!==At.versionId)return!1;const Rt=new Date;this._debounceValue.update(this.textModel,Rt.getTime()-ut.getTime());const Ft=new oe(je,At,this.textModel,this.versionId);if(it){const ln=it.toInlineCompletion(void 0);it.canBeReused(this.textModel,Ge)&&!je.has(ln)&&Ft.prepend(it.inlineCompletion,ln.range,!0)}return this._updateOperation.clear(),(0,k.Rn)(ln=>{et.set(Ft,ln)}),!0})(),Ae=new le(At,Tt,dt);return this._updateOperation.value=Ae,dt}clear(Ge){this._updateOperation.clear(),this.inlineCompletions.set(void 0,Ge),this.suggestWidgetInlineCompletions.set(void 0,Ge)}clearSuggestWidgetInlineCompletions(Ge){var nt;!((nt=this._updateOperation.value)===null||nt===void 0)&&nt.request.context.selectedSuggestionInfo&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,Ge)}cancelUpdate(){this._updateOperation.clear()}};Se=ge([be(3,n.u),be(4,j.JZ)],Se);function ae(rt,Ge){return new Promise(nt=>{let it;const bt=setTimeout(()=>{it&&it.dispose(),nt()},rt);Ge&&(it=Ge.onCancellationRequested(()=>{clearTimeout(bt),it&&it.dispose(),nt()}))})}class me{constructor(Ge,nt,it){this.position=Ge,this.context=nt,this.versionId=it}satisfies(Ge){return this.position.equals(Ge.position)&&fe(this.context.selectedSuggestionInfo,Ge.context.selectedSuggestionInfo,(nt,it)=>nt.equals(it))&&(Ge.context.triggerKind===w.qw.Automatic||this.context.triggerKind===w.qw.Explicit)&&this.versionId===Ge.versionId}}function fe(rt,Ge,nt){return!rt||!Ge?rt===Ge:nt(rt,Ge)}class le{constructor(Ge,nt,it){this.request=Ge,this.cancellationTokenSource=nt,this.promise=it}dispose(){this.cancellationTokenSource.cancel()}}class oe{get inlineCompletions(){return this._inlineCompletions}constructor(Ge,nt,it,bt){this.inlineCompletionProviderResult=Ge,this.request=nt,this.textModel=it,this.versionId=bt,this._refCount=1,this._prependedInlineCompletionItems=[],this._rangeVersionIdValue=0,this._rangeVersionId=(0,k.un)(this,At=>{this.versionId.read(At);let et=!1;for(const at of this._inlineCompletions)et=et||at._updateRange(this.textModel);return et&&this._rangeVersionIdValue++,this._rangeVersionIdValue});const Dt=it.deltaDecorations([],Ge.completions.map(At=>({range:At.range,options:{description:"inline-completion-tracking-range"}})));this._inlineCompletions=Ge.completions.map((At,et)=>new ne(At,Dt[et],this._rangeVersionId))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,this._refCount===0){setTimeout(()=>{this.textModel.isDisposed()||this.textModel.deltaDecorations(this._inlineCompletions.map(Ge=>Ge.decorationId),[])},0),this.inlineCompletionProviderResult.dispose();for(const Ge of this._prependedInlineCompletionItems)Ge.source.removeRef()}}prepend(Ge,nt,it){it&&Ge.source.addRef();const bt=this.textModel.deltaDecorations([],[{range:nt,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new ne(Ge,bt,this._rangeVersionId,nt)),this._prependedInlineCompletionItems.push(Ge)}}class ne{get forwardStable(){var Ge;return(Ge=this.inlineCompletion.source.inlineCompletions.enableForwardStability)!==null&&Ge!==void 0?Ge:!1}constructor(Ge,nt,it,bt){this.inlineCompletion=Ge,this.decorationId=nt,this.rangeVersion=it,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._isValid=!0,this._updatedRange=bt??Ge.range}toInlineCompletion(Ge){return this.inlineCompletion.withRange(this._getUpdatedRange(Ge))}toSingleTextEdit(Ge){return new Ce.WR(this._getUpdatedRange(Ge),this.inlineCompletion.insertText)}isVisible(Ge,nt,it){const bt=ee(this._toFilterTextReplacement(it),Ge);if(!this._isValid||!this.inlineCompletion.range.getStartPosition().equals(this._getUpdatedRange(it).getStartPosition())||nt.lineNumber!==bt.range.startLineNumber)return!1;const Dt=Ge.getValueInRange(bt.range,1),At=bt.text,et=Math.max(0,nt.column-bt.range.startColumn);let at=At.substring(0,et),Tt=At.substring(et),dt=Dt.substring(0,et),Ae=Dt.substring(et);const ct=Ge.getLineIndentColumn(bt.range.startLineNumber);return bt.range.startColumn<=ct&&(dt=dt.trimStart(),dt.length===0&&(Ae=Ae.trimStart()),at=at.trimStart(),at.length===0&&(Tt=Tt.trimStart())),at.startsWith(dt)&&!!(0,G.dE)(Ae,Tt)}canBeReused(Ge,nt){return this._isValid&&this._getUpdatedRange(void 0).containsPosition(nt)&&this.isVisible(Ge,nt,void 0)&&!this._isSmallerThanOriginal(void 0)}_toFilterTextReplacement(Ge){return new Ce.WR(this._getUpdatedRange(Ge),this.inlineCompletion.filterText)}_isSmallerThanOriginal(Ge){return de(this._getUpdatedRange(Ge)).isBefore(de(this.inlineCompletion.range))}_getUpdatedRange(Ge){return this.rangeVersion.read(Ge),this._updatedRange}_updateRange(Ge){const nt=Ge.getDecorationRange(this.decorationId);return nt?this._updatedRange.equalsRange(nt)?!1:(this._updatedRange=nt,!0):(this._isValid=!1,!0)}}function de(rt){return rt.startLineNumber===rt.endLineNumber?new a.y(1,1+rt.endColumn-rt.startColumn):new a.y(1+rt.endLineNumber-rt.startLineNumber,rt.endColumn)}var Le=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.js"),We=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),we=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),Ue=function(rt,Ge,nt,it){var bt=arguments.length,Dt=bt<3?Ge:it===null?it=Object.getOwnPropertyDescriptor(Ge,nt):it,At;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Dt=Reflect.decorate(rt,Ge,nt,it);else for(var et=rt.length-1;et>=0;et--)(At=rt[et])&&(Dt=(bt<3?At(Dt):bt>3?At(Ge,nt,Dt):At(Ge,nt))||Dt);return bt>3&&Dt&&Object.defineProperty(Ge,nt,Dt),Dt},lt=function(rt,Ge){return function(nt,it){Ge(nt,it,rt)}},Et;(function(rt){rt[rt.Undo=0]="Undo",rt[rt.Redo=1]="Redo",rt[rt.AcceptWord=2]="AcceptWord",rt[rt.Other=3]="Other"})(Et||(Et={}));let Kt=class extends f.jG{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(Ge,nt,it,bt,Dt,At,et,at,Tt,dt,Ae,ct){super(),this.textModel=Ge,this.selectedSuggestItem=nt,this.textModelVersionId=it,this._positions=bt,this._debounceValue=Dt,this._suggestPreviewEnabled=At,this._suggestPreviewMode=et,this._inlineSuggestMode=at,this._enabled=Tt,this._instantiationService=dt,this._commandService=Ae,this._languageConfigurationService=ct,this._source=this._register(this._instantiationService.createInstance(Se,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=(0,k.FY)(this,!1),this._forceUpdateSignal=(0,k.Yd)("forceUpdate"),this._selectedInlineCompletionId=(0,k.FY)(this,void 0),this._primaryPosition=(0,k.un)(this,je=>{var Rt;return(Rt=this._positions.read(je)[0])!==null&&Rt!==void 0?Rt:new a.y(1,1)}),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([Et.Redo,Et.Undo,Et.AcceptWord]),this._fetchInlineCompletions=(0,k.nb)({owner:this,createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:w.qw.Automatic}),handleChange:(je,Rt)=>(je.didChange(this.textModelVersionId)&&this._preserveCurrentCompletionReasons.has(je.change)?Rt.preserveCurrentCompletion=!0:je.didChange(this._forceUpdateSignal)&&(Rt.inlineCompletionTriggerKind=je.change),!0)},(je,Rt)=>{if(this._forceUpdateSignal.read(je),!(this._enabled.read(je)&&this.selectedSuggestItem.read(je)||this._isActive.read(je))){this._source.cancelUpdate();return}this.textModelVersionId.read(je);const ln=this.selectedInlineCompletion.get(),vn=Rt.preserveCurrentCompletion||ln?.forwardStable?ln:void 0,Ln=this._source.suggestWidgetInlineCompletions.get(),En=this.selectedSuggestItem.read(je);if(Ln&&!En){const en=this._source.inlineCompletions.get();(0,k.Rn)(xe=>{(!en||Ln.request.versionId>en.request.versionId)&&this._source.inlineCompletions.set(Ln.clone(),xe),this._source.clearSuggestWidgetInlineCompletions(xe)})}const In=this._primaryPosition.read(je),ei={triggerKind:Rt.inlineCompletionTriggerKind,selectedSuggestionInfo:En?.toSelectedSuggestionInfo()};return this._source.fetch(In,ei,vn)}),this._filteredInlineCompletionItems=(0,k.un)(this,je=>{const Rt=this._source.inlineCompletions.read(je);if(!Rt)return[];const Ft=this._primaryPosition.read(je);return Rt.inlineCompletions.filter(vn=>vn.isVisible(this.textModel,Ft,je))}),this.selectedInlineCompletionIndex=(0,k.un)(this,je=>{const Rt=this._selectedInlineCompletionId.read(je),Ft=this._filteredInlineCompletionItems.read(je),ln=this._selectedInlineCompletionId===void 0?-1:Ft.findIndex(vn=>vn.semanticId===Rt);return ln===-1?(this._selectedInlineCompletionId.set(void 0,void 0),0):ln}),this.selectedInlineCompletion=(0,k.un)(this,je=>{const Rt=this._filteredInlineCompletionItems.read(je),Ft=this.selectedInlineCompletionIndex.read(je);return Rt[Ft]}),this.lastTriggerKind=this._source.inlineCompletions.map(this,je=>je?.request.context.triggerKind),this.inlineCompletionsCount=(0,k.un)(this,je=>{if(this.lastTriggerKind.read(je)===w.qw.Explicit)return this._filteredInlineCompletionItems.read(je).length}),this.state=(0,k.C)({owner:this,equalityComparer:(je,Rt)=>!je||!Rt?je===Rt:(0,U.AL)(je.ghostTexts,Rt.ghostTexts)&&je.inlineCompletion===Rt.inlineCompletion&&je.suggestItem===Rt.suggestItem},je=>{var Rt,Ft;const ln=this.textModel,vn=this.selectedSuggestItem.read(je);if(vn){const Ln=ee(vn.toSingleTextEdit(),ln),En=this._computeAugmentation(Ln,je);if(!this._suggestPreviewEnabled.read(je)&&!En)return;const ei=(Rt=En?.edit)!==null&&Rt!==void 0?Rt:Ln,en=En?En.edit.text.length-Ln.text.length:0,xe=this._suggestPreviewMode.read(je),st=this._positions.read(je),Wt=[ei,...Zt(this.textModel,st,ei)],rn=Wt.map((Dn,On)=>Te(Dn,ln,xe,st[On],en)).filter(v.O9),hn=(Ft=rn[0])!==null&&Ft!==void 0?Ft:new U.xD(ei.range.endLineNumber,[]);return{edits:Wt,primaryGhostText:hn,ghostTexts:rn,inlineCompletion:En?.completion,suggestItem:vn}}else{if(!this._isActive.read(je))return;const Ln=this.selectedInlineCompletion.read(je);if(!Ln)return;const En=Ln.toSingleTextEdit(je),In=this._inlineSuggestMode.read(je),ei=this._positions.read(je),en=[En,...Zt(this.textModel,ei,En)],xe=en.map((st,Wt)=>Te(st,ln,In,ei[Wt],0)).filter(v.O9);return xe[0]?{edits:en,primaryGhostText:xe[0],ghostTexts:xe,inlineCompletion:Ln,suggestItem:void 0}:void 0}}),this.ghostTexts=(0,k.C)({owner:this,equalityComparer:U.AL},je=>{const Rt=this.state.read(je);if(Rt)return Rt.ghostTexts}),this.primaryGhostText=(0,k.C)({owner:this,equalityComparer:U.x9},je=>{const Rt=this.state.read(je);if(Rt)return Rt?.primaryGhostText}),this._register((0,k.OI)(this._fetchInlineCompletions));let ut;this._register((0,k.fm)(je=>{var Rt,Ft;const ln=this.state.read(je),vn=ln?.inlineCompletion;if(vn?.semanticId!==ut?.semanticId&&(ut=vn,vn)){const Ln=vn.inlineCompletion,En=Ln.source;(Ft=(Rt=En.provider).handleItemDidShow)===null||Ft===void 0||Ft.call(Rt,En.inlineCompletions,Ln.sourceInlineCompletion,Ln.insertText)}}))}async trigger(Ge){this._isActive.set(!0,Ge),await this._fetchInlineCompletions.get()}async triggerExplicitly(Ge){(0,k.PO)(Ge,nt=>{this._isActive.set(!0,nt),this._forceUpdateSignal.trigger(nt,w.qw.Explicit)}),await this._fetchInlineCompletions.get()}stop(Ge){(0,k.PO)(Ge,nt=>{this._isActive.set(!1,nt),this._source.clear(nt)})}_computeAugmentation(Ge,nt){const it=this.textModel,bt=this._source.suggestWidgetInlineCompletions.read(nt),Dt=bt?bt.inlineCompletions:[this.selectedInlineCompletion.read(nt)].filter(v.O9);return(0,u.oH)(Dt,et=>{let at=et.toSingleTextEdit(nt);return at=ee(at,it,b.Q.fromPositions(at.range.getStartPosition(),Ge.range.getEndPosition())),De(at,Ge)?{completion:et,edit:at}:void 0})}async _deltaSelectedInlineCompletionIndex(Ge){await this.triggerExplicitly();const nt=this._filteredInlineCompletionItems.get()||[];if(nt.length>0){const it=(this.selectedInlineCompletionIndex.get()+Ge+nt.length)%nt.length;this._selectedInlineCompletionId.set(nt[it].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}async next(){await this._deltaSelectedInlineCompletionIndex(1)}async previous(){await this._deltaSelectedInlineCompletionIndex(-1)}async accept(Ge){var nt;if(Ge.getModel()!==this.textModel)throw new C.D7;const it=this.state.get();if(!it||it.primaryGhostText.isEmpty()||!it.inlineCompletion)return;const bt=it.inlineCompletion.toInlineCompletion(void 0);if(Ge.pushUndoStop(),bt.snippetInfo)Ge.executeEdits("inlineSuggestion.accept",[p.k.replaceMove(bt.range,""),...bt.additionalTextEdits]),Ge.setPosition(bt.snippetInfo.range.getStartPosition(),"inlineCompletionAccept"),(nt=Le.O.get(Ge))===null||nt===void 0||nt.insert(bt.snippetInfo.snippet,{undoStopBefore:!1});else{const Dt=it.edits,At=tt(Dt).map(et=>O.L.fromPositions(et));Ge.executeEdits("inlineSuggestion.accept",[...Dt.map(et=>p.k.replaceMove(et.range,et.text)),...bt.additionalTextEdits]),Ge.setSelections(At,"inlineCompletionAccept")}bt.command&&bt.source.addRef(),(0,k.Rn)(Dt=>{this._source.clear(Dt),this._isActive.set(!1,Dt)}),bt.command&&(await this._commandService.executeCommand(bt.command.id,...bt.command.arguments||[]).then(void 0,C.M_),bt.source.removeRef())}async acceptNextWord(Ge){await this._acceptNext(Ge,(nt,it)=>{const bt=this.textModel.getLanguageIdAtPosition(nt.lineNumber,nt.column),Dt=this._languageConfigurationService.getLanguageConfiguration(bt),At=new RegExp(Dt.wordDefinition.source,Dt.wordDefinition.flags.replace("g","")),et=it.match(At);let at=0;et&&et.index!==void 0?et.index===0?at=et[0].length:at=et.index:at=it.length;const dt=/\s+/g.exec(it);return dt&&dt.index!==void 0&&dt.index+dt[0].length{const bt=it.match(/\n/);return bt&&bt.index!==void 0?bt.index+1:it.length},1)}async _acceptNext(Ge,nt,it){if(Ge.getModel()!==this.textModel)throw new C.D7;const bt=this.state.get();if(!bt||bt.primaryGhostText.isEmpty()||!bt.inlineCompletion)return;const Dt=bt.primaryGhostText,At=bt.inlineCompletion.toInlineCompletion(void 0);if(At.snippetInfo||At.filterText!==At.insertText){await this.accept(Ge);return}const et=Dt.parts[0],at=new a.y(Dt.lineNumber,et.column),Tt=et.text,dt=nt(at,Tt);if(dt===Tt.length&&Dt.parts.length===1){this.accept(Ge);return}const Ae=Tt.substring(0,dt),ct=this._positions.get(),ut=ct[0];At.source.addRef();try{this._isAcceptingPartially=!0;try{Ge.pushUndoStop();const je=b.Q.fromPositions(ut,at),Rt=Ge.getModel().getValueInRange(je)+Ae,Ft=new Ce.WR(je,Rt),ln=[Ft,...Zt(this.textModel,ct,Ft)],vn=tt(ln).map(Ln=>O.L.fromPositions(Ln));Ge.executeEdits("inlineSuggestion.accept",ln.map(Ln=>p.k.replaceMove(Ln.range,Ln.text))),Ge.setSelections(vn,"inlineCompletionPartialAccept")}finally{this._isAcceptingPartially=!1}if(At.source.provider.handlePartialAccept){const je=b.Q.fromPositions(At.range.getStartPosition(),_e.W.ofText(Ae).addToPosition(at)),Rt=Ge.getModel().getValueInRange(je,1);At.source.provider.handlePartialAccept(At.source.inlineCompletions,At.sourceInlineCompletion,Rt.length,{kind:it})}}finally{At.source.removeRef()}}handleSuggestAccepted(Ge){var nt,it;const bt=ee(Ge.toSingleTextEdit(),this.textModel),Dt=this._computeAugmentation(bt,void 0);if(!Dt)return;const At=Dt.completion.inlineCompletion;(it=(nt=At.source.provider).handlePartialAccept)===null||it===void 0||it.call(nt,At.source.inlineCompletions,At.sourceInlineCompletion,bt.text.length,{kind:2})}};Kt=Ue([lt(9,we._Y),lt(10,We.d),lt(11,j.JZ)],Kt);function Zt(rt,Ge,nt){if(Ge.length===1)return[];const it=Ge[0],bt=Ge.slice(1),Dt=nt.range.getStartPosition(),At=nt.range.getEndPosition(),et=rt.getValueInRange(b.Q.fromPositions(it,At)),at=(0,Y.tN)(it,Dt);if(at.lineNumber<1)return(0,C.dz)(new C.D7(`positionWithinTextEdit line number should be bigger than 0. Invalid subtraction between ${it.toString()} and ${Dt.toString()}`)),[];const Tt=qt(nt.text,at);return bt.map(dt=>{const Ae=(0,Y.OA)((0,Y.tN)(dt,Dt),At),ct=rt.getValueInRange(b.Q.fromPositions(dt,Ae)),ut=(0,h.Qp)(et,ct),je=b.Q.fromPositions(dt,dt.delta(0,ut));return new Ce.WR(je,Tt)})}function qt(rt,Ge){let nt="";const it=(0,h.en)(rt);for(let bt=Ge.lineNumber-1;btb.Q.compareRangesUsingStarts(Dt.range,At.range)),it=new Ce.mF(Ge.apply(rt)).getNewRanges();return Ge.inverse().apply(it).map(Dt=>Dt.getEndPosition())}var Mt=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),Ht=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetSession.js"),xt=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.js");class Jt extends f.jG{get selectedItem(){return this._selectedItem}constructor(Ge,nt,it,bt){super(),this.editor=Ge,this.suggestControllerPreselector=nt,this.checkModelVersion=it,this.onWillAccept=bt,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=(0,k.FY)(this,void 0),this._register(Ge.onKeyDown(At=>{At.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(Ge.onKeyUp(At=>{At.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));const Dt=xt.D.get(this.editor);if(Dt){this._register(Dt.registerSelector({priority:100,select:(at,Tt,dt)=>{(0,k.Rn)(ln=>this.checkModelVersion(ln));const Ae=this.editor.getModel();if(!Ae)return-1;const ct=this.suggestControllerPreselector(),ut=ct?ee(ct,Ae):void 0;if(!ut)return-1;const je=a.y.lift(Tt),Rt=dt.map((ln,vn)=>{const Ln=Nt.fromSuggestion(Dt,Ae,je,ln,this.isShiftKeyPressed),En=ee(Ln.toSingleTextEdit(),Ae),In=De(ut,En);return{index:vn,valid:In,prefixLength:En.text.length,suggestItem:ln}}).filter(ln=>ln&&ln.valid&&ln.prefixLength>0),Ft=(0,u.Nf)(Rt,(0,m.VE)(ln=>ln.prefixLength,m.U9));return Ft?Ft.index:-1}}));let At=!1;const et=()=>{At||(At=!0,this._register(Dt.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(Dt.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.update(!1)})),this._register(Dt.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(Mt.Jh.once(Dt.model.onDidTrigger)(at=>{et()})),this._register(Dt.onWillInsertSuggestItem(at=>{const Tt=this.editor.getPosition(),dt=this.editor.getModel();if(!Tt||!dt)return;const Ae=Nt.fromSuggestion(Dt,dt,Tt,at.item,this.isShiftKeyPressed);this.onWillAccept(Ae)}))}this.update(this._isActive)}update(Ge){const nt=this.getSuggestItemInfo();(this._isActive!==Ge||!Be(this._currentSuggestItemInfo,nt))&&(this._isActive=Ge,this._currentSuggestItemInfo=nt,(0,k.Rn)(it=>{this.checkModelVersion(it),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,it)}))}getSuggestItemInfo(){const Ge=xt.D.get(this.editor);if(!Ge||!this.isSuggestWidgetVisible)return;const nt=Ge.widget.value.getFocusedItem(),it=this.editor.getPosition(),bt=this.editor.getModel();if(!(!nt||!it||!bt))return Nt.fromSuggestion(Ge,bt,it,nt.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){const Ge=xt.D.get(this.editor);Ge?.stopForceRenderingAbove()}forceRenderingAbove(){const Ge=xt.D.get(this.editor);Ge?.forceRenderingAbove()}}class Nt{static fromSuggestion(Ge,nt,it,bt,Dt){let{insertText:At}=bt.completion,et=!1;if(bt.completion.insertTextRules&4){const Tt=new X.fr().parse(At);Tt.children.length<100&&Ht.O.adjustWhitespace(nt,it,!0,Tt),At=Tt.toString(),et=!0}const at=Ge.getOverwriteInfo(bt,Dt);return new Nt(b.Q.fromPositions(it.delta(0,-at.overwriteBefore),it.delta(0,Math.max(at.overwriteAfter,0))),At,bt.completion.kind,et)}constructor(Ge,nt,it,bt){this.range=Ge,this.insertText=nt,this.completionItemKind=it,this.isSnippetText=bt}equals(Ge){return this.range.equalsRange(Ge.range)&&this.insertText===Ge.insertText&&this.completionItemKind===Ge.completionItemKind&&this.isSnippetText===Ge.isSnippetText}toSelectedSuggestionInfo(){return new w.GE(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new Ce.WR(this.range,this.insertText)}}function Be(rt,Ge){return rt===Ge?!0:!rt||!Ge?!1:rt.equals(Ge)}var vt=e("./node_modules/monaco-editor/esm/vs/nls.js"),Gt=e("./node_modules/monaco-editor/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js"),_n=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),Fn=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),An=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),Hn=e("./node_modules/monaco-editor/esm/vs/base/common/observableInternal/utils.js"),Kn=function(rt,Ge,nt,it){var bt=arguments.length,Dt=bt<3?Ge:it===null?it=Object.getOwnPropertyDescriptor(Ge,nt):it,At;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Dt=Reflect.decorate(rt,Ge,nt,it);else for(var et=rt.length-1;et>=0;et--)(At=rt[et])&&(Dt=(bt<3?At(Dt):bt>3?At(Ge,nt,Dt):At(Ge,nt))||Dt);return bt>3&&Dt&&Object.defineProperty(Ge,nt,Dt),Dt},mi=function(rt,Ge){return function(nt,it){Ge(nt,it,rt)}},yi;let ri=yi=class extends f.jG{static get(Ge){return Ge.getContribution(yi.ID)}constructor(Ge,nt,it,bt,Dt,At,et,at,Tt){super(),this.editor=Ge,this._instantiationService=nt,this._contextKeyService=it,this._configurationService=bt,this._commandService=Dt,this._debounceService=At,this._languageFeaturesService=et,this._accessibilitySignalService=at,this._keybindingService=Tt,this.model=this._register((0,k.X2)("inlineCompletionModel",void 0)),this._textModelVersionId=(0,k.FY)(this,-1),this._positions=(0,k.FY)(this,[new a.y(1,1)]),this._suggestWidgetAdaptor=this._register(new Jt(this.editor,()=>{var ut,je;return(je=(ut=this.model.get())===null||ut===void 0?void 0:ut.selectedInlineCompletion.get())===null||je===void 0?void 0:je.toSingleTextEdit(void 0)},ut=>this.updateObservables(ut,Et.Other),ut=>{(0,k.Rn)(je=>{var Rt;this.updateObservables(je,Et.Other),(Rt=this.model.get())===null||Rt===void 0||Rt.handleSuggestAccepted(ut)})})),this._enabled=(0,k.y0)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).enabled),this._fontFamily=(0,k.y0)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).fontFamily),this._ghostTexts=(0,k.un)(this,ut=>{var je;const Rt=this.model.read(ut);return(je=Rt?.ghostTexts.read(ut))!==null&&je!==void 0?je:[]}),this._stablizedGhostTexts=fi(this._ghostTexts,this._store),this._ghostTextWidgets=(0,Hn.Rl)(this,this._stablizedGhostTexts,(ut,je)=>je.add(this._instantiationService.createInstance(i.PM,this.editor,{ghostText:ut,minReservedLineCount:(0,k.lk)(0),targetTextModel:this.model.map(Rt=>Rt?.textModel)}))).recomputeInitiallyAndOnChange(this._store),this._debounceValue=this._debounceService.for(this._languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._playAccessibilitySignal=(0,k.Yd)(this),this._isReadonly=(0,k.y0)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(91)),this._textModel=(0,k.y0)(this.editor.onDidChangeModel,()=>this.editor.getModel()),this._textModelIfWritable=(0,k.un)(ut=>this._isReadonly.read(ut)?void 0:this._textModel.read(ut)),this._register(new x.p(this._contextKeyService,this.model)),this._register((0,k.fm)(ut=>{const je=this._textModelIfWritable.read(ut);(0,k.Rn)(Rt=>{if(this.model.set(void 0,Rt),this.updateObservables(Rt,Et.Other),je){const Ft=nt.createInstance(Kt,je,this._suggestWidgetAdaptor.selectedItem,this._textModelVersionId,this._positions,this._debounceValue,(0,k.y0)(Ge.onDidChangeConfiguration,()=>Ge.getOption(118).preview),(0,k.y0)(Ge.onDidChangeConfiguration,()=>Ge.getOption(118).previewMode),(0,k.y0)(Ge.onDidChangeConfiguration,()=>Ge.getOption(62).mode),this._enabled);this.model.set(Ft,Rt)}})}));const dt=this._register((0,I.jh)());this._register((0,k.fm)(ut=>{const je=this._fontFamily.read(ut);dt.setStyle(je===""||je==="default"?"":` .monaco-editor .ghost-text-decoration, .monaco-editor .ghost-text-decoration-preview, .monaco-editor .ghost-text { font-family: ${je}; }`)}));const Ae=ut=>{var je;return ut.isUndoing?Et.Undo:ut.isRedoing?Et.Redo:!((je=this.model.get())===null||je===void 0)&&je.isAcceptingPartially?Et.AcceptWord:Et.Other};this._register(Ge.onDidChangeModelContent(ut=>(0,k.Rn)(je=>this.updateObservables(je,Ae(ut))))),this._register(Ge.onDidChangeCursorPosition(ut=>(0,k.Rn)(je=>{var Rt;this.updateObservables(je,Et.Other),(ut.reason===3||ut.source==="api")&&((Rt=this.model.get())===null||Rt===void 0||Rt.stop(je))}))),this._register(Ge.onDidType(()=>(0,k.Rn)(ut=>{var je;this.updateObservables(ut,Et.Other),this._enabled.get()&&((je=this.model.get())===null||je===void 0||je.trigger(ut))}))),this._register(this._commandService.onDidExecuteCommand(ut=>{new Set([d.Yh.Tab.id,d.Yh.DeleteLeft.id,d.Yh.DeleteRight.id,g.Wt,"acceptSelectedSuggestion"]).has(ut.commandId)&&Ge.hasTextFocus()&&this._enabled.get()&&(0,k.Rn)(Rt=>{var Ft;(Ft=this.model.get())===null||Ft===void 0||Ft.trigger(Rt)})})),this._register(this.editor.onDidBlurEditorWidget(()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||Ge.getOption(62).keepOnBlur||c.bo.dropDownVisible||(0,k.Rn)(ut=>{var je;(je=this.model.get())===null||je===void 0||je.stop(ut)})})),this._register((0,k.fm)(ut=>{var je;const Rt=(je=this.model.read(ut))===null||je===void 0?void 0:je.state.read(ut);Rt?.suggestItem?Rt.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()})),this._register((0,f.s)(()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()}));let ct;this._register((0,k.Y)({handleChange:(ut,je)=>(ut.didChange(this._playAccessibilitySignal)&&(ct=void 0),!0)},async ut=>{this._playAccessibilitySignal.read(ut);const je=this.model.read(ut),Rt=je?.state.read(ut);if(!je||!Rt||!Rt.inlineCompletion){ct=void 0;return}if(Rt.inlineCompletion.semanticId!==ct){ct=Rt.inlineCompletion.semanticId;const Ft=je.textModel.getLineContent(Rt.primaryGhostText.lineNumber);this._accessibilitySignalService.playSignal(Gt.Rh.inlineSuggestion).then(()=>{this.editor.getOption(8)&&this.provideScreenReaderUpdate(Rt.primaryGhostText.renderForScreenReader(Ft))})}})),this._register(new c.Pm(this.editor,this.model,this._instantiationService)),this._register(this._configurationService.onDidChangeConfiguration(ut=>{ut.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})})),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(Ge){this._playAccessibilitySignal.trigger(Ge)}provideScreenReaderUpdate(Ge){const nt=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),it=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let bt;!nt&&it&&this.editor.getOption(149)&&(bt=(0,vt.kg)("showAccessibleViewHint","Inspect this in the accessible view ({0})",it.getAriaLabel())),bt?(0,S.xE)(Ge+", "+bt):(0,S.xE)(Ge)}updateObservables(Ge,nt){var it,bt,Dt;const At=this.editor.getModel();this._textModelVersionId.set((it=At?.getVersionId())!==null&&it!==void 0?it:-1,Ge,nt),this._positions.set((Dt=(bt=this.editor.getSelections())===null||bt===void 0?void 0:bt.map(et=>et.getPosition()))!==null&&Dt!==void 0?Dt:[new a.y(1,1)],Ge)}shouldShowHoverAt(Ge){var nt;const it=(nt=this.model.get())===null||nt===void 0?void 0:nt.primaryGhostText.get();return it?it.parts.some(bt=>Ge.containsPosition(new a.y(it.lineNumber,bt.column))):!1}shouldShowHoverAtViewZone(Ge){var nt,it;return(it=(nt=this._ghostTextWidgets.get()[0])===null||nt===void 0?void 0:nt.ownsViewZone(Ge))!==null&&it!==void 0?it:!1}};ri.ID="editor.contrib.inlineCompletionsController",ri=yi=Kn([mi(1,we._Y),mi(2,Fn.fN),mi(3,_n.pG),mi(4,We.d),mi(5,s.U),mi(6,n.u),mi(7,Gt.Nt),mi(8,An.b)],ri);function fi(rt,Ge){const nt=(0,k.FY)("result",[]),it=[];return Ge.add((0,k.fm)(bt=>{const Dt=rt.read(bt);(0,k.Rn)(At=>{if(Dt.length!==it.length){it.length=Dt.length;for(let et=0;etet.set(Dt[at],At))})})),nt}var Mi=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js"),xi=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js");class ci extends r.ks{constructor(){super({id:ci.ID,label:vt.kg("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:Fn.M$.and(L.R.writable,x.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}async run(Ge,nt){var it;const bt=ri.get(nt);(it=bt?.model.get())===null||it===void 0||it.next()}}ci.ID=g.PA;class Ii extends r.ks{constructor(){super({id:Ii.ID,label:vt.kg("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:Fn.M$.and(L.R.writable,x.p.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}async run(Ge,nt){var it;const bt=ri.get(nt);(it=bt?.model.get())===null||it===void 0||it.previous()}}Ii.ID=g.Vl;class Si extends r.ks{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:vt.kg("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:L.R.writable})}async run(Ge,nt){const it=ri.get(nt);await(0,M.fL)(async bt=>{var Dt;await((Dt=it?.model.get())===null||Dt===void 0?void 0:Dt.triggerExplicitly(bt)),it?.playAccessibilitySignal(bt)})}}class Ti extends r.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:vt.kg("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:Fn.M$.and(L.R.writable,x.p.inlineSuggestionVisible),kbOpts:{weight:101,primary:2065,kbExpr:Fn.M$.and(L.R.writable,x.p.inlineSuggestionVisible)},menuOpts:[{menuId:xi.D8.InlineSuggestionToolbar,title:vt.kg("acceptWord","Accept Word"),group:"primary",order:2}]})}async run(Ge,nt){var it;const bt=ri.get(nt);await((it=bt?.model.get())===null||it===void 0?void 0:it.acceptNextWord(bt.editor))}}class Nn extends r.ks{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:vt.kg("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:Fn.M$.and(L.R.writable,x.p.inlineSuggestionVisible),kbOpts:{weight:101},menuOpts:[{menuId:xi.D8.InlineSuggestionToolbar,title:vt.kg("acceptLine","Accept Line"),group:"secondary",order:2}]})}async run(Ge,nt){var it;const bt=ri.get(nt);await((it=bt?.model.get())===null||it===void 0?void 0:it.acceptNextLine(bt.editor))}}class Vn extends r.ks{constructor(){super({id:g.Wt,label:vt.kg("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:x.p.inlineSuggestionVisible,menuOpts:[{menuId:xi.D8.InlineSuggestionToolbar,title:vt.kg("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:Fn.M$.and(x.p.inlineSuggestionVisible,L.R.tabMovesFocus.toNegated(),x.p.inlineSuggestionHasIndentationLessThanTabSize,Mi.ob.Visible.toNegated(),L.R.hoverFocused.toNegated())}})}async run(Ge,nt){var it;const bt=ri.get(nt);bt&&((it=bt.model.get())===null||it===void 0||it.accept(bt.editor),bt.editor.focus())}}class Yn extends r.ks{constructor(){super({id:Yn.ID,label:vt.kg("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:x.p.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}async run(Ge,nt){const it=ri.get(nt);(0,k.Rn)(bt=>{var Dt;(Dt=it?.model.get())===null||Dt===void 0||Dt.stop(bt)})}}Yn.ID="editor.action.inlineSuggest.hide";class Di extends xi.L{constructor(){super({id:Di.ID,title:vt.kg("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:xi.D8.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:Fn.M$.equals("config.editor.inlineSuggest.showToolbar","always")})}async run(Ge,nt){const it=Ge.get(_n.pG),Dt=it.getValue("editor.inlineSuggest.showToolbar")==="always"?"onHover":"always";it.updateValue("editor.inlineSuggest.showToolbar",Dt)}}Di.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar";var Ai=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),Sn=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),Ye=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js"),mt=e("./node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js"),ze=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),Ke=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),Je=function(rt,Ge,nt,it){var bt=arguments.length,Dt=bt<3?Ge:it===null?it=Object.getOwnPropertyDescriptor(Ge,nt):it,At;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Dt=Reflect.decorate(rt,Ge,nt,it);else for(var et=rt.length-1;et>=0;et--)(At=rt[et])&&(Dt=(bt<3?At(Dt):bt>3?At(Ge,nt,Dt):At(Ge,nt))||Dt);return bt>3&&Dt&&Object.defineProperty(Ge,nt,Dt),Dt},Ne=function(rt,Ge){return function(nt,it){Ge(nt,it,rt)}};class ft{constructor(Ge,nt,it){this.owner=Ge,this.range=nt,this.controller=it}isValidForHoverAnchor(Ge){return Ge.type===1&&this.range.startColumn<=Ge.range.startColumn&&this.range.endColumn>=Ge.range.endColumn}}let St=class{constructor(Ge,nt,it,bt,Dt,At){this._editor=Ge,this._languageService=nt,this._openerService=it,this.accessibilityService=bt,this._instantiationService=Dt,this._telemetryService=At,this.hoverOrdinal=4}suggestHoverAnchor(Ge){const nt=ri.get(this._editor);if(!nt)return null;const it=Ge.target;if(it.type===8){const bt=it.detail;if(nt.shouldShowHoverAtViewZone(bt.viewZoneId))return new F.mm(1e3,this,b.Q.fromPositions(this._editor.getModel().validatePosition(bt.positionBefore||bt.position)),Ge.event.posx,Ge.event.posy,!1)}return it.type===7&&nt.shouldShowHoverAt(it.range)?new F.mm(1e3,this,it.range,Ge.event.posx,Ge.event.posy,!1):it.type===6&&it.detail.mightBeForeignElement&&nt.shouldShowHoverAt(it.range)?new F.mm(1e3,this,it.range,Ge.event.posx,Ge.event.posy,!1):null}computeSync(Ge,nt){if(this._editor.getOption(62).showToolbar!=="onHover")return[];const it=ri.get(this._editor);return it&&it.shouldShowHoverAt(Ge.range)?[new ft(this,Ge.range,it)]:[]}renderHoverParts(Ge,nt){const it=new f.Cm,bt=nt[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(8)&&this.renderScreenReaderText(Ge,bt,it);const Dt=bt.controller.model.get(),At=this._instantiationService.createInstance(c.bo,this._editor,!1,(0,k.lk)(null),Dt.selectedInlineCompletionIndex,Dt.inlineCompletionsCount,Dt.selectedInlineCompletion.map(et=>{var at;return(at=et?.inlineCompletion.source.inlineCompletions.commands)!==null&&at!==void 0?at:[]}));return Ge.fragment.appendChild(At.getDomNode()),Dt.triggerExplicitly(),it.add(At),it}renderScreenReaderText(Ge,nt,it){const bt=I.$,Dt=bt("div.hover-row.markdown-hover"),At=I.BC(Dt,bt("div.hover-contents",{"aria-live":"assertive"})),et=it.add(new Ye.T({editor:this._editor},this._languageService,this._openerService)),at=Tt=>{it.add(et.onDidRenderAsync(()=>{At.className="hover-contents code-hover-contents",Ge.onContentsChanged()}));const dt=vt.kg("inlineSuggestionFollows","Suggestion:"),Ae=it.add(et.render(new Ai.Bc().appendText(dt).appendCodeblock("text",Tt)));At.replaceChildren(Ae.element)};it.add((0,k.fm)(Tt=>{var dt;const Ae=(dt=nt.controller.model.read(Tt))===null||dt===void 0?void 0:dt.primaryGhostText.read(Tt);if(Ae){const ct=this._editor.getModel().getLineContent(Ae.lineNumber);at(Ae.renderForScreenReader(ct))}else I.Ln(At)})),Ge.fragment.appendChild(Dt)}};St=Je([Ne(1,Sn.L),Ne(2,ze.C),Ne(3,mt.j),Ne(4,we._Y),Ne(5,Ke.k)],St),(0,r.HW)(ri.ID,ri,3),(0,r.Fl)(Si),(0,r.Fl)(ci),(0,r.Fl)(Ii),(0,r.Fl)(Ti),(0,r.Fl)(Nn),(0,r.Fl)(Vn),(0,r.Fl)(Yn),(0,xi.ug)(Di),F.B2.register(St)},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js":function(pt,Me,e){e.d(Me,{Pm:function(){return G},bo:function(){return T}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionViewItems.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/commandIds.js"),i=e("./node_modules/monaco-editor/esm/vs/nls.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js"),m=e("./node_modules/monaco-editor/esm/vs/platform/actions/browser/toolbar.js"),u=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),C=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),v=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),p=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),O=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),w=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js"),j=function(z,J,B,V){var Y=arguments.length,X=Y<3?J:V===null?V=Object.getOwnPropertyDescriptor(J,B):V,ie;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")X=Reflect.decorate(z,J,B,V);else for(var re=z.length-1;re>=0;re--)(ie=z[re])&&(X=(Y<3?ie(X):Y>3?ie(J,B,X):ie(J,B))||X);return Y>3&&X&&Object.defineProperty(J,B,X),X},U=function(z,J){return function(B,V){J(B,V,z)}},K;let G=class extends I.jG{constructor(J,B,V){super(),this.editor=J,this.model=B,this.instantiationService=V,this.alwaysShowToolbar=(0,S.y0)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(62).showToolbar==="always"),this.sessionPosition=void 0,this.position=(0,S.un)(this,Y=>{var X,ie,re;const te=(X=this.model.read(Y))===null||X===void 0?void 0:X.primaryGhostText.read(Y);if(!this.alwaysShowToolbar.read(Y)||!te||te.parts.length===0)return this.sessionPosition=void 0,null;const D=te.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==te.lineNumber&&(this.sessionPosition=void 0);const he=new a.y(te.lineNumber,Math.min(D,(re=(ie=this.sessionPosition)===null||ie===void 0?void 0:ie.column)!==null&&re!==void 0?re:Number.MAX_SAFE_INTEGER));return this.sessionPosition=he,he}),this._register((0,S.yC)((Y,X)=>{const ie=this.model.read(Y);if(!ie||!this.alwaysShowToolbar.read(Y))return;const re=X.add(this.instantiationService.createInstance(T,this.editor,!0,this.position,ie.selectedInlineCompletionIndex,ie.inlineCompletionsCount,ie.selectedInlineCompletion.map(te=>{var D;return(D=te?.inlineCompletion.source.inlineCompletions.commands)!==null&&D!==void 0?D:[]})));J.addContentWidget(re),X.add((0,I.s)(()=>J.removeContentWidget(re))),X.add((0,S.fm)(te=>{this.position.read(te)&&ie.lastTriggerKind.read(te)!==s.qw.Explicit&&ie.triggerExplicitly()}))}))}};G=j([U(2,p._Y)],G);const P=(0,w.pU)("inline-suggestion-hints-next",x.W.chevronRight,(0,i.kg)("parameterHintsNextIcon","Icon for show next parameter hint.")),A=(0,w.pU)("inline-suggestion-hints-previous",x.W.chevronLeft,(0,i.kg)("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let T=K=class extends I.jG{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(J,B,V){const Y=new M.rc(J,B,V,!0,()=>this._commandService.executeCommand(J)),X=this.keybindingService.lookupKeybinding(J,this._contextKeyService);let ie=B;return X&&(ie=(0,i.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",B,X.getLabel())),Y.tooltip=ie,Y}constructor(J,B,V,Y,X,ie,re,te,D,he,ve){super(),this.editor=J,this.withBorder=B,this._position=V,this._currentSuggestionIdx=Y,this._suggestionCount=X,this._extraCommands=ie,this._commandService=re,this.keybindingService=D,this._contextKeyService=he,this._menuService=ve,this.id=`InlineSuggestionHintsContentWidget${K.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,r.h)("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[(0,r.h)("div@toolBar")]),this.previousAction=this.createCommandAction(n.Vl,(0,i.kg)("previous","Previous"),d.L.asClassName(A)),this.availableSuggestionCountAction=new M.rc("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(n.PA,(0,i.kg)("next","Next"),d.L.asClassName(P)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(u.D8.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new g.uC(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new g.uC(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.lastCommands=[],this.toolBar=this._register(te.createInstance($,this.nodes.toolBar,u.D8.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:Ce=>Ce.startsWith("primary")},actionViewItemProvider:(Ce,Pe)=>{if(Ce instanceof u.Xe)return te.createInstance(W,Ce,void 0);if(Ce===this.availableSuggestionCountAction){const _e=new E(void 0,Ce,{label:!0,icon:!1});return _e.setClass("availableSuggestionCount"),_e}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility(Ce=>{K._dropDownVisible=Ce})),this._register((0,S.fm)(Ce=>{this._position.read(Ce),this.editor.layoutContentWidget(this)})),this._register((0,S.fm)(Ce=>{const Pe=this._suggestionCount.read(Ce),_e=this._currentSuggestionIdx.read(Ce);Pe!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${_e+1}/${Pe}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),Pe!==void 0&&Pe>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register((0,S.fm)(Ce=>{const Pe=this._extraCommands.read(Ce);if((0,L.aI)(this.lastCommands,Pe))return;this.lastCommands=Pe;const _e=Pe.map(ee=>({class:void 0,id:ee.id,enabled:!0,tooltip:ee.tooltip||"",label:ee.title,run:De=>this._commandService.executeCommand(ee.id)}));for(const[ee,De]of this.inlineCompletionsActionsMenus.getActions())for(const Te of De)Te instanceof u.Xe&&_e.push(Te);_e.length>0&&_e.unshift(new M.wv),this.toolBar.setAdditionalSecondaryActions(_e)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};T._dropDownVisible=!1,T.id=0,T=K=j([U(6,C.d),U(7,p._Y),U(8,b.b),U(9,h.fN),U(10,u.ez)],T);class E extends F.Z4{constructor(){super(...arguments),this._className=void 0}setClass(J){this._className=J}render(J){super.render(J),this._className&&J.classList.add(this._className)}updateTooltip(){}}class W extends c.oq{updateLabel(){const J=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!J)return super.updateLabel();if(this.label){const B=(0,r.h)("div.keybinding").root;this._register(new k.x(B,f.OS,{disableTitle:!0,...k.l})).set(J),this.label.textContent=this._action.label,this.label.appendChild(B),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}updateTooltip(){}}let $=class extends m.p{constructor(J,B,V,Y,X,ie,re,te){super(J,{resetMenu:B,...V},Y,X,ie,re,te),this.menuId=B,this.options2=V,this.menuService=Y,this.contextKeyService=X,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var J,B,V,Y,X,ie,re;const te=[],D=[];(0,c.Ot)(this.menu,(J=this.options2)===null||J===void 0?void 0:J.menuOptions,{primary:te,secondary:D},(V=(B=this.options2)===null||B===void 0?void 0:B.toolbarOptions)===null||V===void 0?void 0:V.primaryGroup,(X=(Y=this.options2)===null||Y===void 0?void 0:Y.toolbarOptions)===null||X===void 0?void 0:X.shouldInlineSubmenu,(re=(ie=this.options2)===null||ie===void 0?void 0:ie.toolbarOptions)===null||re===void 0?void 0:re.useSeparatorsInPrimaryActions),D.push(...this.additionalActions),te.unshift(...this.prependedPrimaryActions),this.setActions(te,D)}setPrependedPrimaryActions(J){(0,L.aI)(this.prependedPrimaryActions,J,(B,V)=>B===V)||(this.prependedPrimaryActions=J,this.updateToolbar())}setAdditionalSecondaryActions(J){(0,L.aI)(this.additionalActions,J,(B,V)=>B===V)||(this.additionalActions=J,this.updateToolbar())}};$=j([U(3,u.ez),U(4,h.fN),U(5,v.Z),U(6,b.b),U(7,O.k)],$)},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/utils.js":function(pt,Me,e){e.d(Me,{GM:function(){return I},OA:function(){return f},pY:function(){return S},tN:function(){return d},zk:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");const g=[];function x(){return g}class I{constructor(s,n){if(this.startColumn=s,this.endColumnExclusive=n,s>n)throw new r.D7(`startColumn ${s} cannot be after endColumnExclusive ${n}`)}toRange(s){return new L.Q(s,this.startColumn,s,this.endColumnExclusive)}equals(s){return this.startColumn===s.startColumn&&this.endColumnExclusive===s.endColumnExclusive}}function S(a,s){const n=new F.Cm,i=a.createDecorationsCollection();return n.add((0,k.zL)({debugName:()=>`Apply decorations from ${s.debugName}`},c=>{const m=s.read(c);i.set(m)})),n.add({dispose:()=>{i.clear()}}),n}function f(a,s){return new M.y(a.lineNumber+s.lineNumber-1,s.lineNumber===1?a.column+s.column-1:s.column)}function d(a,s){return new M.y(a.lineNumber-s.lineNumber+1,a.lineNumber-s.lineNumber===0?a.column-s.column+1:a.column)}},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlineEdit/browser/inlineEdit.contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverTypes.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js");const M="editor.action.inlineEdit.accept",L="editor.action.inlineEdit.reject",g="editor.action.inlineEdit.jumpTo",x="editor.action.inlineEdit.jumpBack";var I=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/utils.js"),u=function(fe,le,oe,ne){var de=arguments.length,Le=de<3?le:ne===null?ne=Object.getOwnPropertyDescriptor(le,oe):ne,We;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Le=Reflect.decorate(fe,le,oe,ne);else for(var we=fe.length-1;we>=0;we--)(We=fe[we])&&(Le=(de<3?We(Le):de>3?We(le,oe,Le):We(le,oe))||Le);return de>3&&Le&&Object.defineProperty(le,oe,Le),Le},C=function(fe,le){return function(oe,ne){le(oe,ne,fe)}};const h="inline-edit";let v=class extends I.jG{constructor(le,oe,ne){super(),this.editor=le,this.model=oe,this.languageService=ne,this.isDisposed=(0,S.FY)(this,!1),this.currentTextModel=(0,S.y0)(this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=(0,S.un)(this,de=>{var Le;if(this.isDisposed.read(de))return;const We=this.currentTextModel.read(de);if(We!==this.model.targetTextModel.read(de))return;const we=this.model.ghostText.read(de);if(!we)return;let Ue=(Le=this.model.range)===null||Le===void 0?void 0:Le.read(de);Ue&&Ue.startLineNumber===Ue.endLineNumber&&Ue.startColumn===Ue.endColumn&&(Ue=void 0);const lt=(Ue?Ue.startLineNumber===Ue.endLineNumber:!0)&&we.parts.length===1&&we.parts[0].lines.length===1,Et=we.parts.length===1&&we.parts[0].lines.every(Nt=>Nt.length===0),Kt=[],Zt=[];function qt(Nt,Be){if(Zt.length>0){const vt=Zt[Zt.length-1];Be&&vt.decorations.push(new i.d(vt.content.length+1,vt.content.length+1+Nt[0].length,Be,0)),vt.content+=Nt[0],Nt=Nt.slice(1)}for(const vt of Nt)Zt.push({content:vt,decorations:Be?[new i.d(1,vt.length+1,Be,0)]:[]})}const tt=We.getLineContent(we.lineNumber);let Mt,Ht=0;if(!Et){for(const Nt of we.parts){let Be=Nt.lines;Ue&&!lt&&(qt(Be,h),Be=[]),Mt===void 0?(Kt.push({column:Nt.column,text:Be[0],preview:Nt.preview}),Be=Be.slice(1)):qt([tt.substring(Ht,Nt.column-1)],void 0),Be.length>0&&(qt(Be,h),Mt===void 0&&Nt.column<=tt.length&&(Mt=Nt.column)),Ht=Nt.column-1}Mt!==void 0&&qt([tt.substring(Ht)],void 0)}const xt=Mt!==void 0?new m.GM(Mt,tt.length+1):void 0,Jt=lt||!Ue?we.lineNumber:Ue.endLineNumber-1;return{inlineTexts:Kt,additionalLines:Zt,hiddenRange:xt,lineNumber:Jt,additionalReservedLineCount:this.model.minReservedLineCount.read(de),targetTextModel:We,range:Ue,isSingleLine:lt,isPureRemove:Et,backgroundColoring:this.model.backgroundColoring.read(de)}}),this.decorations=(0,S.un)(this,de=>{const Le=this.uiState.read(de);if(!Le)return[];const We=[];if(Le.hiddenRange&&We.push({range:Le.hiddenRange.toRange(Le.lineNumber),options:{inlineClassName:"inline-edit-hidden",description:"inline-edit-hidden"}}),Le.range){const we=[];if(Le.isSingleLine)we.push(Le.range);else if(Le.isPureRemove){const lt=Le.range.endLineNumber-Le.range.startLineNumber;for(let Et=0;Et{const Le=this.uiState.read(de);return Le&&!Le.isPureRemove?{lineNumber:Le.lineNumber,additionalLines:Le.additionalLines,minReservedLineCount:Le.additionalReservedLineCount,targetTextModel:Le.targetTextModel}:void 0}))),this._register((0,I.s)(()=>{this.isDisposed.set(!0,void 0)})),this._register((0,m.pY)(this.editor,this.decorations))}ownsViewZone(le){return this.additionalLinesWidget.viewZoneId===le}};v=u([C(2,s.L)],v);var p=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),w=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),j=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),U=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.js"),K=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),G=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),P=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/keybindingLabel/keybindingLabel.js"),A=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),T=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),E=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),W=e("./node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js"),$=e("./node_modules/monaco-editor/esm/vs/platform/actions/browser/toolbar.js"),z=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),J=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),B=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),V=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),Y=function(fe,le,oe,ne){var de=arguments.length,Le=de<3?le:ne===null?ne=Object.getOwnPropertyDescriptor(le,oe):ne,We;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Le=Reflect.decorate(fe,le,oe,ne);else for(var we=fe.length-1;we>=0;we--)(We=fe[we])&&(Le=(de<3?We(Le):de>3?We(le,oe,Le):We(le,oe))||Le);return de>3&&Le&&Object.defineProperty(le,oe,Le),Le},X=function(fe,le){return function(oe,ne){le(oe,ne,fe)}},ie;let re=class extends I.jG{constructor(le,oe,ne){super(),this.editor=le,this.model=oe,this.instantiationService=ne,this.alwaysShowToolbar=(0,S.y0)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).showToolbar==="always"),this.sessionPosition=void 0,this.position=(0,S.un)(this,de=>{var Le,We,we;const Ue=(Le=this.model.read(de))===null||Le===void 0?void 0:Le.widget.model.ghostText.read(de);if(!this.alwaysShowToolbar.read(de)||!Ue||Ue.parts.length===0)return this.sessionPosition=void 0,null;const lt=Ue.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==Ue.lineNumber&&(this.sessionPosition=void 0);const Et=new d.y(Ue.lineNumber,Math.min(lt,(we=(We=this.sessionPosition)===null||We===void 0?void 0:We.column)!==null&&we!==void 0?we:Number.MAX_SAFE_INTEGER));return this.sessionPosition=Et,Et}),this._register((0,S.yC)((de,Le)=>{if(!this.model.read(de)||!this.alwaysShowToolbar.read(de))return;const we=Le.add(this.instantiationService.createInstance(te,this.editor,!0,this.position));le.addContentWidget(we),Le.add((0,I.s)(()=>le.removeContentWidget(we)))}))}};re=Y([X(2,b._Y)],re);let te=ie=class extends I.jG{constructor(le,oe,ne,de,Le,We){super(),this.editor=le,this.withBorder=oe,this._position=ne,this._contextKeyService=Le,this._menuService=We,this.id=`InlineEditHintsContentWidget${ie.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=(0,G.h)("div.inlineEditHints",{className:this.withBorder?".withBorder":""},[(0,G.h)("div@toolBar")]),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(z.D8.InlineEditActions,this._contextKeyService)),this.toolBar=this._register(de.createInstance(he,this.nodes.toolBar,this.editor,z.D8.InlineEditToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:we=>we.startsWith("primary")},actionViewItemProvider:(we,Ue)=>{if(we instanceof z.Xe)return de.createInstance(D,we,void 0)},telemetrySource:"InlineEditToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(we=>{ie._dropDownVisible=we})),this._register((0,S.fm)(we=>{this._position.read(we),this.editor.layoutContentWidget(this)})),this._register((0,S.fm)(we=>{const Ue=[];for(const[lt,Et]of this.inlineCompletionsActionsMenus.getActions())for(const Kt of Et)Kt instanceof z.Xe&&Ue.push(Kt);Ue.length>0&&Ue.unshift(new A.wv),this.toolBar.setAdditionalSecondaryActions(Ue)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};te._dropDownVisible=!1,te.id=0,te=ie=Y([X(3,b._Y),X(4,p.fN),X(5,z.ez)],te);class D extends W.oq{updateLabel(){const le=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!le)return super.updateLabel();if(this.label){const oe=(0,G.h)("div.keybinding").root;this._register(new P.x(oe,E.OS,{disableTitle:!0,...P.l})).set(le),this.label.textContent=this._action.label,this.label.appendChild(oe),this.label.classList.add("inlineEditStatusBarItemLabel")}}updateTooltip(){}}let he=class extends $.p{constructor(le,oe,ne,de,Le,We,we,Ue,lt){super(le,{resetMenu:ne,...de},Le,We,we,Ue,lt),this.editor=oe,this.menuId=ne,this.options2=de,this.menuService=Le,this.contextKeyService=We,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this._store.add(this.editor.onDidChangeCursorPosition(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var le,oe,ne,de,Le,We,we;const Ue=[],lt=[];(0,W.Ot)(this.menu,(le=this.options2)===null||le===void 0?void 0:le.menuOptions,{primary:Ue,secondary:lt},(ne=(oe=this.options2)===null||oe===void 0?void 0:oe.toolbarOptions)===null||ne===void 0?void 0:ne.primaryGroup,(Le=(de=this.options2)===null||de===void 0?void 0:de.toolbarOptions)===null||Le===void 0?void 0:Le.shouldInlineSubmenu,(we=(We=this.options2)===null||We===void 0?void 0:We.toolbarOptions)===null||we===void 0?void 0:we.useSeparatorsInPrimaryActions),lt.push(...this.additionalActions),Ue.unshift(...this.prependedPrimaryActions),this.setActions(Ue,lt)}setAdditionalSecondaryActions(le){(0,T.aI)(this.additionalActions,le,(oe,ne)=>oe===ne)||(this.additionalActions=le,this.updateToolbar())}};he=Y([X(4,z.ez),X(5,p.fN),X(6,J.Z),X(7,B.b),X(8,V.k)],he);var ve=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),Ce=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),Pe=function(fe,le,oe,ne){var de=arguments.length,Le=de<3?le:ne===null?ne=Object.getOwnPropertyDescriptor(le,oe):ne,We;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Le=Reflect.decorate(fe,le,oe,ne);else for(var we=fe.length-1;we>=0;we--)(We=fe[we])&&(Le=(de<3?We(Le):de>3?We(le,oe,Le):We(le,oe))||Le);return de>3&&Le&&Object.defineProperty(le,oe,Le),Le},_e=function(fe,le){return function(oe,ne){le(oe,ne,fe)}},ee;class De{constructor(le,oe){this.widget=le,this.edit=oe}dispose(){this.widget.dispose()}}let Te=ee=class extends I.jG{static get(le){return le.getContribution(ee.ID)}constructor(le,oe,ne,de,Le,We){super(),this.editor=le,this.instantiationService=oe,this.contextKeyService=ne,this.languageFeaturesService=de,this._commandService=Le,this._configurationService=We,this._isVisibleContext=ee.inlineEditVisibleContext.bindTo(this.contextKeyService),this._isCursorAtInlineEditContext=ee.cursorAtInlineEditContext.bindTo(this.contextKeyService),this._currentEdit=this._register((0,S.X2)(this,void 0)),this._isAccepting=(0,S.FY)(this,!1),this._enabled=(0,S.y0)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).enabled),this._fontFamily=(0,S.y0)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).fontFamily),this._backgroundColoring=(0,S.y0)(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(63).backgroundColoring);const we=(0,S.yQ)("InlineEditController.modelContentChangedSignal",le.onDidChangeModelContent);this._register((0,S.fm)(Zt=>{this._enabled.read(Zt)&&(we.read(Zt),!this._isAccepting.read(Zt)&&this.getInlineEdit(le,!0))}));const Ue=(0,S.y0)(le.onDidChangeCursorPosition,()=>le.getPosition());this._register((0,S.fm)(Zt=>{if(!this._enabled.read(Zt))return;const qt=Ue.read(Zt);qt&&this.checkCursorPosition(qt)})),this._register((0,S.fm)(Zt=>{const qt=this._currentEdit.read(Zt);if(this._isCursorAtInlineEditContext.set(!1),!qt){this._isVisibleContext.set(!1);return}this._isVisibleContext.set(!0);const tt=le.getPosition();tt&&this.checkCursorPosition(tt)}));const lt=(0,S.yQ)("InlineEditController.editorBlurSignal",le.onDidBlurEditorWidget);this._register((0,S.fm)(async Zt=>{var qt;this._enabled.read(Zt)&&(lt.read(Zt),!(this._configurationService.getValue("editor.experimentalInlineEdit.keepOnBlur")||le.getOption(63).keepOnBlur)&&((qt=this._currentRequestCts)===null||qt===void 0||qt.dispose(!0),this._currentRequestCts=void 0,await this.clear(!1)))}));const Et=(0,S.yQ)("InlineEditController.editorFocusSignal",le.onDidFocusEditorText);this._register((0,S.fm)(Zt=>{this._enabled.read(Zt)&&(Et.read(Zt),this.getInlineEdit(le,!0))}));const Kt=this._register((0,G.jh)());this._register((0,S.fm)(Zt=>{const qt=this._fontFamily.read(Zt);Kt.setStyle(qt===""||qt==="default"?"":` .monaco-editor .inline-edit-decoration, .monaco-editor .inline-edit-decoration-preview, .monaco-editor .inline-edit { font-family: ${qt}; }`)})),this._register(new re(this.editor,this._currentEdit,this.instantiationService))}checkCursorPosition(le){var oe;if(!this._currentEdit){this._isCursorAtInlineEditContext.set(!1);return}const ne=(oe=this._currentEdit.get())===null||oe===void 0?void 0:oe.edit;if(!ne){this._isCursorAtInlineEditContext.set(!1);return}this._isCursorAtInlineEditContext.set(a.Q.containsPosition(ne.range,le))}validateInlineEdit(le,oe){var ne,de;if(oe.text.includes(` `)&&oe.range.startLineNumber!==oe.range.endLineNumber&&oe.range.startColumn!==oe.range.endColumn){if(oe.range.startColumn!==1)return!1;const We=oe.range.endLineNumber,we=oe.range.endColumn,Ue=(de=(ne=le.getModel())===null||ne===void 0?void 0:ne.getLineLength(We))!==null&&de!==void 0?de:0;if(we!==Ue+1)return!1}return!0}async fetchInlineEdit(le,oe){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const ne=le.getModel();if(!ne)return;const de=ne.getVersionId(),Le=this.languageFeaturesService.inlineEditProvider.all(ne);if(Le.length===0)return;const We=Le[0];this._currentRequestCts=new j.Q;const we=this._currentRequestCts.token,Ue=oe?O.sm.Automatic:O.sm.Invoke;if(oe&&await He(50,we),we.isCancellationRequested||ne.isDisposed()||ne.getVersionId()!==de)return;const Et=await We.provideInlineEdit(ne,{triggerKind:Ue},we);if(Et&&!(we.isCancellationRequested||ne.isDisposed()||ne.getVersionId()!==de)&&this.validateInlineEdit(le,Et))return Et}async getInlineEdit(le,oe){var ne;this._isCursorAtInlineEditContext.set(!1),await this.clear();const de=await this.fetchInlineEdit(le,oe);if(!de)return;const Le=de.range.endLineNumber,We=de.range.endColumn,we=new U.xD(Le,[new U.yP(We,de.text,!1)]),Ue=this.instantiationService.createInstance(v,this.editor,{ghostText:(0,S.lk)(we),minReservedLineCount:(0,S.lk)(0),targetTextModel:(0,S.lk)((ne=this.editor.getModel())!==null&&ne!==void 0?ne:void 0),range:(0,S.lk)(de.range),backgroundColoring:this._backgroundColoring});this._currentEdit.set(new De(Ue,de),void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){var le;this._isAccepting.set(!0,void 0);const oe=(le=this._currentEdit.get())===null||le===void 0?void 0:le.edit;if(!oe)return;let ne=oe.text;oe.text.startsWith(` `)&&(ne=oe.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[f.k.replace(a.Q.lift(oe.range),ne)]),oe.accepted&&await this._commandService.executeCommand(oe.accepted.id,...oe.accepted.arguments||[]).then(void 0,Ce.M_),this.freeEdit(oe),(0,S.Rn)(de=>{this._currentEdit.set(void 0,de),this._isAccepting.set(!1,de)})}jumpToCurrent(){var le,oe;this._jumpBackPosition=(le=this.editor.getSelection())===null||le===void 0?void 0:le.getStartPosition();const ne=(oe=this._currentEdit.get())===null||oe===void 0?void 0:oe.edit;if(!ne)return;const de=d.y.lift({lineNumber:ne.range.startLineNumber,column:ne.range.startColumn});this.editor.setPosition(de),this.editor.revealPositionInCenterIfOutsideViewport(de)}async clear(le=!0){var oe;const ne=(oe=this._currentEdit.get())===null||oe===void 0?void 0:oe.edit;ne&&ne?.rejected&&le&&await this._commandService.executeCommand(ne.rejected.id,...ne.rejected.arguments||[]).then(void 0,Ce.M_),ne&&this.freeEdit(ne),this._currentEdit.set(void 0,void 0)}freeEdit(le){const oe=this.editor.getModel();if(!oe)return;const ne=this.languageFeaturesService.inlineEditProvider.all(oe);ne.length!==0&&ne[0].freeInlineEdit(le)}shouldShowHoverAt(le){const oe=this._currentEdit.get();if(!oe)return!1;const ne=oe.edit,de=oe.widget.model;if(a.Q.containsPosition(ne.range,le.getStartPosition())||a.Q.containsPosition(ne.range,le.getEndPosition()))return!0;const We=de.ghostText.get();return We?We.parts.some(we=>le.containsPosition(new d.y(We.lineNumber,we.column))):!1}shouldShowHoverAtViewZone(le){var oe,ne;return(ne=(oe=this._currentEdit.get())===null||oe===void 0?void 0:oe.widget.ownsViewZone(le))!==null&&ne!==void 0?ne:!1}};Te.ID="editor.contrib.inlineEditController",Te.inlineEditVisibleKey="inlineEditVisible",Te.inlineEditVisibleContext=new p.N1(ee.inlineEditVisibleKey,!1),Te.cursorAtInlineEditKey="cursorAtInlineEdit",Te.cursorAtInlineEditContext=new p.N1(ee.cursorAtInlineEditKey,!1),Te=ee=Pe([_e(1,b._Y),_e(2,p.fN),_e(3,w.u),_e(4,K.d),_e(5,ve.pG)],Te);function He(fe,le){return new Promise(oe=>{let ne;const de=setTimeout(()=>{ne&&ne.dispose(),oe()},fe);le&&(ne=le.onCancellationRequested(()=>{clearTimeout(de),ne&&ne.dispose(),oe()}))})}class qe extends r.ks{constructor(){super({id:M,label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:p.M$.and(k.R.writable,Te.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:p.M$.and(k.R.writable,Te.inlineEditVisibleContext,Te.cursorAtInlineEditContext)}],menuOpts:[{menuId:z.D8.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(le,oe){const ne=Te.get(oe);await ne?.accept()}}class Qe extends r.ks{constructor(){const le=p.M$.and(k.R.writable,p.M$.not(Te.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:le,kbOpts:{weight:101,primary:2646,kbExpr:le}})}async run(le,oe){const ne=Te.get(oe);ne?.trigger()}}class q extends r.ks{constructor(){const le=p.M$.and(k.R.writable,Te.inlineEditVisibleContext,p.M$.not(Te.cursorAtInlineEditKey));super({id:g,label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:le,kbOpts:{weight:101,primary:2646,kbExpr:le},menuOpts:[{menuId:z.D8.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:le}]})}async run(le,oe){const ne=Te.get(oe);ne?.jumpToCurrent()}}class ye extends r.ks{constructor(){const le=p.M$.and(k.R.writable,Te.cursorAtInlineEditContext);super({id:x,label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:le,kbOpts:{weight:110,primary:2646,kbExpr:le},menuOpts:[{menuId:z.D8.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:le}]})}async run(le,oe){const ne=Te.get(oe);ne?.jumpBack()}}class ge extends r.ks{constructor(){const le=p.M$.and(k.R.writable,Te.inlineEditVisibleContext);super({id:L,label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:le,kbOpts:{weight:100,primary:9,kbExpr:le},menuOpts:[{menuId:z.D8.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(le,oe){const ne=Te.get(oe);await ne?.clear()}}var be=function(fe,le,oe,ne){var de=arguments.length,Le=de<3?le:ne===null?ne=Object.getOwnPropertyDescriptor(le,oe):ne,We;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Le=Reflect.decorate(fe,le,oe,ne);else for(var we=fe.length-1;we>=0;we--)(We=fe[we])&&(Le=(de<3?We(Le):de>3?We(le,oe,Le):We(le,oe))||Le);return de>3&&Le&&Object.defineProperty(le,oe,Le),Le},Se=function(fe,le){return function(oe,ne){le(oe,ne,fe)}};class ae{constructor(le,oe,ne){this.owner=le,this.range=oe,this.controller=ne}isValidForHoverAnchor(le){return le.type===1&&this.range.startColumn<=le.range.startColumn&&this.range.endColumn>=le.range.endColumn}}let me=class{constructor(le,oe,ne){this._editor=le,this._instantiationService=oe,this._telemetryService=ne,this.hoverOrdinal=5}suggestHoverAnchor(le){const oe=Te.get(this._editor);if(!oe)return null;const ne=le.target;if(ne.type===8){const de=ne.detail;if(oe.shouldShowHoverAtViewZone(de.viewZoneId)){const Le=ne.range;return new F.mm(1e3,this,Le,le.event.posx,le.event.posy,!1)}}return ne.type===7&&oe.shouldShowHoverAt(ne.range)?new F.mm(1e3,this,ne.range,le.event.posx,le.event.posy,!1):ne.type===6&&ne.detail.mightBeForeignElement&&oe.shouldShowHoverAt(ne.range)?new F.mm(1e3,this,ne.range,le.event.posx,le.event.posy,!1):null}computeSync(le,oe){if(this._editor.getOption(63).showToolbar!=="onHover")return[];const ne=Te.get(this._editor);return ne&&ne.shouldShowHoverAt(le.range)?[new ae(this,le.range,ne)]:[]}renderHoverParts(le,oe){const ne=new I.Cm;this._telemetryService.publicLog2("inlineEditHover.shown");const de=this._instantiationService.createInstance(te,this._editor,!1,(0,S.lk)(null));return le.fragment.appendChild(de.getDomNode()),ne.add(de),ne}};me=be([Se(1,b._Y),Se(2,V.k)],me),(0,r.Fl)(qe),(0,r.Fl)(ge),(0,r.Fl)(q),(0,r.Fl)(ye),(0,r.Fl)(Qe),(0,r.HW)(Te.ID,Te,3),F.B2.register(me)},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlineProgress/browser/inlineProgress.js":function(pt,Me,e){e.d(Me,{I:function(){return n}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),f=function(i,c,m,u){var C=arguments.length,h=C<3?c:u===null?u=Object.getOwnPropertyDescriptor(c,m):u,v;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(i,c,m,u);else for(var p=i.length-1;p>=0;p--)(v=i[p])&&(h=(C<3?v(h):C>3?v(c,m,h):v(c,m))||h);return C>3&&h&&Object.defineProperty(c,m,h),h},d=function(i,c){return function(m,u){c(m,u,i)}};const a=I.kI.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:L.S8,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}});class s extends M.jG{constructor(c,m,u,C,h){super(),this.typeId=c,this.editor=m,this.range=u,this.delegate=h,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(C),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(c){this.domNode=r.$(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=c;const m=r.$("span.icon");this.domNode.append(m),m.classList.add(...g.L.asClassNameArray(k.W.loading),"codicon-modifier-spin");const u=()=>{const C=this.editor.getOption(67);this.domNode.style.height=`${C}px`,this.domNode.style.width=`${Math.ceil(.8*C)}px`};u(),this._register(this.editor.onDidChangeConfiguration(C=>{(C.hasChanged(52)||C.hasChanged(67))&&u()})),this._register(r.ko(this.domNode,r.Bx.CLICK,C=>{this.delegate.cancel()}))}getId(){return s.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}}s.baseId="editor.widget.inlineProgressWidget";let n=class extends M.jG{constructor(c,m,u){super(),this.id=c,this._editor=m,this._instantiationService=u,this._showDelay=500,this._showPromise=this._register(new M.HE),this._currentWidget=new M.HE,this._operationIdPool=0,this._currentDecorations=m.createDecorationsCollection()}async showWhile(c,m,u){const C=this._operationIdPool++;this._currentOperation=C,this.clear(),this._showPromise.value=(0,F.EQ)(()=>{const h=x.Q.fromPositions(c);this._currentDecorations.set([{range:h,options:a}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(s,this.id,this._editor,h,m,u))},this._showDelay);try{return await u}finally{this._currentOperation===C&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};n=f([d(2,S._Y)],n)},"./node_modules/monaco-editor/esm/vs/editor/contrib/lineSelection/browser/lineSelection.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorMoveCommands.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),M=e("./node_modules/monaco-editor/esm/vs/nls.js");class L extends r.ks{constructor(){super({id:"expandLineSelection",label:M.kg("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:k.R.textInputFocus,primary:2090}})}run(x,I,S){if(S=S||{},!I.hasModel())return;const f=I._getViewModel();f.model.pushStackElement(),f.setCursorStates(S.source,3,F.c.expandLineSelection(f,f.getCursorStates())),f.revealAllCursors(S.source,!0)}}(0,r.Fl)(L)},"./node_modules/monaco-editor/esm/vs/editor/contrib/linesOperations/browser/linesOperations.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/coreCommands.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class I{constructor(ae,me,fe){this._selection=ae,this._cursors=me,this._selectionId=null,this._trimInRegexesAndStrings=fe}getEditOperations(ae,me){const fe=S(ae,this._cursors,this._trimInRegexesAndStrings);for(let le=0,oe=fe.length;lede.lineNumber===Le.lineNumber?de.column-Le.column:de.lineNumber-Le.lineNumber);for(let de=ae.length-2;de>=0;de--)ae[de].lineNumber===ae[de+1].lineNumber&&ae.splice(de,1);const fe=[];let le=0,oe=0;const ne=ae.length;for(let de=1,Le=Se.getLineCount();de<=Le;de++){const We=Se.getLineContent(de),we=We.length+1;let Ue=0;if(oe=0;de--)(ne=Se[de])&&(oe=(le<3?ne(oe):le>3?ne(ae,me,oe):ne(ae,me))||oe);return le>3&&oe&&Object.defineProperty(ae,me,oe),oe},p=function(Se,ae){return function(me,fe){ae(me,fe,Se)}};let b=class{constructor(ae,me,fe,le){this._languageConfigurationService=le,this._selection=ae,this._isMovingDown=me,this._autoIndent=fe,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(ae,me){const fe=ae.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===fe){this._selectionId=me.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=me.trackSelection(this._selection);return}this._moveEndPositionDown=!1;let le=this._selection;le.startLineNumberae.tokenization.getLineTokens(we),getLanguageId:()=>ae.getLanguageId(),getLanguageIdAtPosition:(we,Ue)=>ae.getLanguageIdAtPosition(we,Ue)},getLineContent:null};if(le.startLineNumber===le.endLineNumber&&ae.getLineMaxColumn(le.startLineNumber)===1){const we=le.startLineNumber,Ue=this._isMovingDown?we+1:we-1;ae.getLineMaxColumn(Ue)===1?me.addEditOperation(new x.Q(1,1,1,1),null):(me.addEditOperation(new x.Q(we,1,we,1),ae.getLineContent(Ue)),me.addEditOperation(new x.Q(Ue,1,Ue,ae.getLineMaxColumn(Ue)),null)),le=new a.L(Ue,1,Ue,1)}else{let we,Ue;if(this._isMovingDown){we=le.endLineNumber+1,Ue=ae.getLineContent(we),me.addEditOperation(new x.Q(we-1,ae.getLineMaxColumn(we-1),we,ae.getLineMaxColumn(we)),null);let lt=Ue;if(this.shouldAutoIndent(ae,le)){const Et=this.matchEnterRule(ae,Le,oe,we,le.startLineNumber-1);if(Et!==null){const Zt=L.UU(ae.getLineContent(we)),qt=Et+u.c(Zt,oe);lt=u.k(qt,oe,de)+this.trimStart(Ue)}else{We.getLineContent=qt=>qt===le.startLineNumber?ae.getLineContent(we):ae.getLineContent(qt);const Zt=(0,C.$f)(this._autoIndent,We,ae.getLanguageIdAtPosition(we,1),le.startLineNumber,Le,this._languageConfigurationService);if(Zt!==null){const qt=L.UU(ae.getLineContent(we)),tt=u.c(Zt,oe),Mt=u.c(qt,oe);tt!==Mt&&(lt=u.k(tt,oe,de)+this.trimStart(Ue))}}me.addEditOperation(new x.Q(le.startLineNumber,1,le.startLineNumber,1),lt+` `);const Kt=this.matchEnterRuleMovingDown(ae,Le,oe,le.startLineNumber,we,lt);if(Kt!==null)Kt!==0&&this.getIndentEditsOfMovingBlock(ae,me,le,oe,de,Kt);else{We.getLineContent=qt=>qt===le.startLineNumber?lt:qt>=le.startLineNumber+1&&qt<=le.endLineNumber+1?ae.getLineContent(qt-1):ae.getLineContent(qt);const Zt=(0,C.$f)(this._autoIndent,We,ae.getLanguageIdAtPosition(we,1),le.startLineNumber+1,Le,this._languageConfigurationService);if(Zt!==null){const qt=L.UU(ae.getLineContent(le.startLineNumber)),tt=u.c(Zt,oe),Mt=u.c(qt,oe);if(tt!==Mt){const Ht=tt-Mt;this.getIndentEditsOfMovingBlock(ae,me,le,oe,de,Ht)}}}}else me.addEditOperation(new x.Q(le.startLineNumber,1,le.startLineNumber,1),lt+` `)}else if(we=le.startLineNumber-1,Ue=ae.getLineContent(we),me.addEditOperation(new x.Q(we,1,we+1,1),null),me.addEditOperation(new x.Q(le.endLineNumber,ae.getLineMaxColumn(le.endLineNumber),le.endLineNumber,ae.getLineMaxColumn(le.endLineNumber)),` `+Ue),this.shouldAutoIndent(ae,le)){We.getLineContent=Et=>Et===we?ae.getLineContent(le.startLineNumber):ae.getLineContent(Et);const lt=this.matchEnterRule(ae,Le,oe,le.startLineNumber,le.startLineNumber-2);if(lt!==null)lt!==0&&this.getIndentEditsOfMovingBlock(ae,me,le,oe,de,lt);else{const Et=(0,C.$f)(this._autoIndent,We,ae.getLanguageIdAtPosition(le.startLineNumber,1),we,Le,this._languageConfigurationService);if(Et!==null){const Kt=L.UU(ae.getLineContent(le.startLineNumber)),Zt=u.c(Et,oe),qt=u.c(Kt,oe);if(Zt!==qt){const tt=Zt-qt;this.getIndentEditsOfMovingBlock(ae,me,le,oe,de,tt)}}}}}this._selectionId=me.trackSelection(le)}buildIndentConverter(ae,me,fe){return{shiftIndent:le=>i.Y.shiftIndent(le,le.length+1,ae,me,fe),unshiftIndent:le=>i.Y.unshiftIndent(le,le.length+1,ae,me,fe)}}parseEnterResult(ae,me,fe,le,oe){if(oe){let ne=oe.indentation;oe.indentAction===c.l.None||oe.indentAction===c.l.Indent?ne=oe.indentation+oe.appendText:oe.indentAction===c.l.IndentOutdent?ne=oe.indentation:oe.indentAction===c.l.Outdent&&(ne=me.unshiftIndent(oe.indentation)+oe.appendText);const de=ae.getLineContent(le);if(this.trimStart(de).indexOf(this.trimStart(ne))>=0){const Le=L.UU(ae.getLineContent(le));let We=L.UU(ne);const we=(0,C.Yb)(ae,le,this._languageConfigurationService);we!==null&&we&2&&(We=me.unshiftIndent(We));const Ue=u.c(We,fe),lt=u.c(Le,fe);return Ue-lt}}return null}matchEnterRuleMovingDown(ae,me,fe,le,oe,ne){if(L.lT(ne)>=0){const de=ae.getLineMaxColumn(oe),Le=(0,h.h)(this._autoIndent,ae,new x.Q(oe,de,oe,de),this._languageConfigurationService);return this.parseEnterResult(ae,me,fe,le,Le)}else{let de=le-1;for(;de>=1;){const we=ae.getLineContent(de);if(L.lT(we)>=0)break;de--}if(de<1||le>ae.getLineCount())return null;const Le=ae.getLineMaxColumn(de),We=(0,h.h)(this._autoIndent,ae,new x.Q(de,Le,de,Le),this._languageConfigurationService);return this.parseEnterResult(ae,me,fe,le,We)}}matchEnterRule(ae,me,fe,le,oe,ne){let de=oe;for(;de>=1;){let we;if(de===oe&&ne!==void 0?we=ne:we=ae.getLineContent(de),L.lT(we)>=0)break;de--}if(de<1||le>ae.getLineCount())return null;const Le=ae.getLineMaxColumn(de),We=(0,h.h)(this._autoIndent,ae,new x.Q(de,Le,de,Le),this._languageConfigurationService);return this.parseEnterResult(ae,me,fe,le,We)}trimStart(ae){return ae.replace(/^\s+/,"")}shouldAutoIndent(ae,me){if(this._autoIndent<4||!ae.tokenization.isCheapToTokenize(me.startLineNumber))return!1;const fe=ae.getLanguageIdAtPosition(me.startLineNumber,1),le=ae.getLanguageIdAtPosition(me.endLineNumber,1);return!(fe!==le||this._languageConfigurationService.getLanguageConfiguration(fe).indentRulesSupport===null)}getIndentEditsOfMovingBlock(ae,me,fe,le,oe,ne){for(let de=fe.startLineNumber;de<=fe.endLineNumber;de++){const Le=ae.getLineContent(de),We=L.UU(Le),Ue=u.c(We,le)+ne,lt=u.k(Ue,le,oe);lt!==We&&(me.addEditOperation(new x.Q(de,1,de,We.length+1),lt),de===fe.endLineNumber&&fe.endColumn<=We.length+1&<===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(ae,me){let fe=me.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(fe=fe.setEndPosition(fe.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&fe.startLineNumber=le)return null;const oe=[];for(let de=fe;de<=le;de++)oe.push(Se.getLineContent(de));let ne=oe.slice(0);return ne.sort(O.getCollator().compare),me===!0&&(ne=ne.reverse()),{startLineNumber:fe,endLineNumber:le,before:oe,after:ne}}function j(Se,ae,me){const fe=w(Se,ae,me);return fe?g.k.replace(new x.Q(fe.startLineNumber,1,fe.endLineNumber,Se.getLineMaxColumn(fe.endLineNumber)),fe.after.join(` `)):null}var U=e("./node_modules/monaco-editor/esm/vs/nls.js"),K=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),G=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js");class P extends k.ks{constructor(ae,me){super(me),this.down=ae}run(ae,me){if(!me.hasModel())return;const fe=me.getSelections().map((ne,de)=>({selection:ne,index:de,ignore:!1}));fe.sort((ne,de)=>x.Q.compareRangesUsingStarts(ne.selection,de.selection));let le=fe[0];for(let ne=1;nenew d.y(we.positionLineNumber,we.positionColumn)));const oe=me.getSelection();if(oe===null)return;const ne=ae.get(G.pG),de=me.getModel(),Le=ne.getValue("files.trimTrailingWhitespaceInRegexAndStrings",{overrideIdentifier:de?.getLanguageId(),resource:de?.uri}),We=new I(oe,le,Le);me.pushUndoStop(),me.executeCommands(this.id,[We]),me.pushUndoStop()}}X.ID="editor.action.trimTrailingWhitespace";class ie extends k.ks{constructor(){super({id:"editor.action.deleteLines",label:U.kg("lines.delete","Delete Line"),alias:"Delete Line",precondition:s.R.writable,kbOpts:{kbExpr:s.R.textInputFocus,primary:3113,weight:100}})}run(ae,me){if(!me.hasModel())return;const fe=this._getLinesToRemove(me),le=me.getModel();if(le.getLineCount()===1&&le.getLineMaxColumn(1)===1)return;let oe=0;const ne=[],de=[];for(let Le=0,We=fe.length;Le1&&(Ue-=1,Et=le.getLineMaxColumn(Ue)),ne.push(g.k.replace(new a.L(Ue,Et,lt,Kt),"")),de.push(new a.L(Ue-oe,we.positionColumn,Ue-oe,we.positionColumn)),oe+=we.endLineNumber-we.startLineNumber+1}me.pushUndoStop(),me.executeEdits(this.id,ne,de),me.pushUndoStop()}_getLinesToRemove(ae){const me=ae.getSelections().map(oe=>{let ne=oe.endLineNumber;return oe.startLineNumberoe.startLineNumber===ne.startLineNumber?oe.endLineNumber-ne.endLineNumber:oe.startLineNumber-ne.startLineNumber);const fe=[];let le=me[0];for(let oe=1;oe=me[oe].startLineNumber?le.endLineNumber=me[oe].endLineNumber:(fe.push(le),le=me[oe]);return fe.push(le),fe}}class re extends k.ks{constructor(){super({id:"editor.action.indentLines",label:U.kg("lines.indent","Indent Line"),alias:"Indent Line",precondition:s.R.writable,kbOpts:{kbExpr:s.R.editorTextFocus,primary:2142,weight:100}})}run(ae,me){const fe=me._getViewModel();fe&&(me.pushUndoStop(),me.executeCommands(this.id,f.TK.indent(fe.cursorConfig,me.getModel(),me.getSelections())),me.pushUndoStop())}}class te extends k.ks{constructor(){super({id:"editor.action.outdentLines",label:U.kg("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:s.R.writable,kbOpts:{kbExpr:s.R.editorTextFocus,primary:2140,weight:100}})}run(ae,me){F.Yh.Outdent.runEditorCommand(ae,me,null)}}class D extends k.ks{constructor(){super({id:"editor.action.insertLineBefore",label:U.kg("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:s.R.writable,kbOpts:{kbExpr:s.R.editorTextFocus,primary:3075,weight:100}})}run(ae,me){const fe=me._getViewModel();fe&&(me.pushUndoStop(),me.executeCommands(this.id,f.TK.lineInsertBefore(fe.cursorConfig,me.getModel(),me.getSelections())))}}class he extends k.ks{constructor(){super({id:"editor.action.insertLineAfter",label:U.kg("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:s.R.writable,kbOpts:{kbExpr:s.R.editorTextFocus,primary:2051,weight:100}})}run(ae,me){const fe=me._getViewModel();fe&&(me.pushUndoStop(),me.executeCommands(this.id,f.TK.lineInsertAfter(fe.cursorConfig,me.getModel(),me.getSelections())))}}class ve extends k.ks{run(ae,me){if(!me.hasModel())return;const fe=me.getSelection(),le=this._getRangesToDelete(me),oe=[];for(let Le=0,We=le.length-1;Leg.k.replace(Le,""));me.pushUndoStop(),me.executeEdits(this.id,de,ne),me.pushUndoStop()}}class Ce extends ve{constructor(){super({id:"deleteAllLeft",label:U.kg("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:s.R.writable,kbOpts:{kbExpr:s.R.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(ae,me){let fe=null;const le=[];let oe=0;return me.forEach(ne=>{let de;if(ne.endColumn===1&&oe>0){const Le=ne.startLineNumber-oe;de=new a.L(Le,ne.startColumn,Le,ne.startColumn)}else de=new a.L(ne.startLineNumber,ne.startColumn,ne.startLineNumber,ne.startColumn);oe+=ne.endLineNumber-ne.startLineNumber,ne.intersectRanges(ae)?fe=de:le.push(de)}),fe&&le.unshift(fe),le}_getRangesToDelete(ae){const me=ae.getSelections();if(me===null)return[];let fe=me;const le=ae.getModel();return le===null?[]:(fe.sort(x.Q.compareRangesUsingStarts),fe=fe.map(oe=>{if(oe.isEmpty())if(oe.startColumn===1){const ne=Math.max(1,oe.startLineNumber-1),de=oe.startLineNumber===1?1:le.getLineLength(ne)+1;return new x.Q(ne,de,oe.startLineNumber,1)}else return new x.Q(oe.startLineNumber,1,oe.startLineNumber,oe.startColumn);else return new x.Q(oe.startLineNumber,1,oe.endLineNumber,oe.endColumn)}),fe)}}class Pe extends ve{constructor(){super({id:"deleteAllRight",label:U.kg("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:s.R.writable,kbOpts:{kbExpr:s.R.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(ae,me){let fe=null;const le=[];for(let oe=0,ne=me.length,de=0;oe{if(oe.isEmpty()){const ne=me.getLineMaxColumn(oe.startLineNumber);return oe.startColumn===ne?new x.Q(oe.startLineNumber,oe.startColumn,oe.startLineNumber+1,1):new x.Q(oe.startLineNumber,oe.startColumn,oe.startLineNumber,ne)}return oe});return le.sort(x.Q.compareRangesUsingStarts),le}}class _e extends k.ks{constructor(){super({id:"editor.action.joinLines",label:U.kg("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:s.R.writable,kbOpts:{kbExpr:s.R.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(ae,me){const fe=me.getSelections();if(fe===null)return;let le=me.getSelection();if(le===null)return;fe.sort(x.Q.compareRangesUsingStarts);const oe=[],ne=fe.reduce((lt,Et)=>lt.isEmpty()?lt.endLineNumber===Et.startLineNumber?(le.equalsSelection(lt)&&(le=Et),Et):Et.startLineNumber>lt.endLineNumber+1?(oe.push(lt),Et):new a.L(lt.startLineNumber,lt.startColumn,Et.endLineNumber,Et.endColumn):Et.startLineNumber>lt.endLineNumber?(oe.push(lt),Et):new a.L(lt.startLineNumber,lt.startColumn,Et.endLineNumber,Et.endColumn));oe.push(ne);const de=me.getModel();if(de===null)return;const Le=[],We=[];let we=le,Ue=0;for(let lt=0,Et=oe.length;lt=1){let _n=!0;Jt===""&&(_n=!1),_n&&(Jt.charAt(Jt.length-1)===" "||Jt.charAt(Jt.length-1)===" ")&&(_n=!1,Jt=Jt.replace(/[\s\uFEFF\xA0]+$/g," "));const Fn=vt.substr(Gt-1);Jt+=(_n?" ":"")+Fn,_n?tt=Fn.length+1:tt=Fn.length}else tt=0}const Nt=new x.Q(Zt,qt,Mt,Ht);if(!Nt.isEmpty()){let Be;Kt.isEmpty()?(Le.push(g.k.replace(Nt,Jt)),Be=new a.L(Nt.startLineNumber-Ue,Jt.length-tt+1,Zt-Ue,Jt.length-tt+1)):Kt.startLineNumber===Kt.endLineNumber?(Le.push(g.k.replace(Nt,Jt)),Be=new a.L(Kt.startLineNumber-Ue,Kt.startColumn,Kt.endLineNumber-Ue,Kt.endColumn)):(Le.push(g.k.replace(Nt,Jt)),Be=new a.L(Kt.startLineNumber-Ue,Kt.startColumn,Kt.startLineNumber-Ue,Jt.length-xt)),x.Q.intersectRanges(Nt,le)!==null?we=Be:We.push(Be)}Ue+=Nt.endLineNumber-Nt.startLineNumber}We.unshift(we),me.pushUndoStop(),me.executeEdits(this.id,Le,We),me.pushUndoStop()}}class ee extends k.ks{constructor(){super({id:"editor.action.transpose",label:U.kg("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:s.R.writable})}run(ae,me){const fe=me.getSelections();if(fe===null)return;const le=me.getModel();if(le===null)return;const oe=[];for(let ne=0,de=fe.length;ne=we){if(We.lineNumber===le.getLineCount())continue;const Ue=new x.Q(We.lineNumber,Math.max(1,We.column-1),We.lineNumber+1,1),lt=le.getValueInRange(Ue).split("").reverse().join("");oe.push(new M.iu(new a.L(We.lineNumber,Math.max(1,We.column-1),We.lineNumber+1,1),lt))}else{const Ue=new x.Q(We.lineNumber,Math.max(1,We.column-1),We.lineNumber,We.column+1),lt=le.getValueInRange(Ue).split("").reverse().join("");oe.push(new M.ui(Ue,lt,new a.L(We.lineNumber,We.column+1,We.lineNumber,We.column+1)))}}me.pushUndoStop(),me.executeCommands(this.id,oe),me.pushUndoStop()}}class De extends k.ks{run(ae,me){const fe=me.getSelections();if(fe===null)return;const le=me.getModel();if(le===null)return;const oe=me.getOption(131),ne=[];for(const de of fe)if(de.isEmpty()){const Le=de.getStartPosition(),We=me.getConfiguredWordAtPosition(Le);if(!We)continue;const we=new x.Q(Le.lineNumber,We.startColumn,Le.lineNumber,We.endColumn),Ue=le.getValueInRange(we);ne.push(g.k.replace(we,this._modifyText(Ue,oe)))}else{const Le=le.getValueInRange(de);ne.push(g.k.replace(de,this._modifyText(Le,oe)))}me.pushUndoStop(),me.executeEdits(this.id,ne),me.pushUndoStop()}}class Te extends De{constructor(){super({id:"editor.action.transformToUppercase",label:U.kg("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:s.R.writable})}_modifyText(ae,me){return ae.toLocaleUpperCase()}}class He extends De{constructor(){super({id:"editor.action.transformToLowercase",label:U.kg("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:s.R.writable})}_modifyText(ae,me){return ae.toLocaleLowerCase()}}class qe{constructor(ae,me){this._pattern=ae,this._flags=me,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch{}}return this._actual}isSupported(){return this.get()!==null}}class Qe extends De{constructor(){super({id:"editor.action.transformToTitlecase",label:U.kg("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:s.R.writable})}_modifyText(ae,me){const fe=Qe.titleBoundary.get();return fe?ae.toLocaleLowerCase().replace(fe,le=>le.toLocaleUpperCase()):ae}}Qe.titleBoundary=new qe("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");class q extends De{constructor(){super({id:"editor.action.transformToSnakecase",label:U.kg("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:s.R.writable})}_modifyText(ae,me){const fe=q.caseBoundary.get(),le=q.singleLetters.get();return!fe||!le?ae:ae.replace(fe,"$1_$2").replace(le,"$1_$2$3").toLocaleLowerCase()}}q.caseBoundary=new qe("(\\p{Ll})(\\p{Lu})","gmu"),q.singleLetters=new qe("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");class ye extends De{constructor(){super({id:"editor.action.transformToCamelcase",label:U.kg("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:s.R.writable})}_modifyText(ae,me){const fe=ye.wordBoundary.get();if(!fe)return ae;const le=ae.split(fe);return le.shift()+le.map(ne=>ne.substring(0,1).toLocaleUpperCase()+ne.substring(1)).join("")}}ye.wordBoundary=new qe("[_\\s-]","gm");class ge extends De{constructor(){super({id:"editor.action.transformToPascalcase",label:U.kg("editor.transformToPascalcase","Transform to Pascal Case"),alias:"Transform to Pascal Case",precondition:s.R.writable})}_modifyText(ae,me){const fe=ge.wordBoundary.get(),le=ge.wordBoundaryToMaintain.get();return!fe||!le?ae:ae.split(le).map(de=>de.split(fe)).flat().map(de=>de.substring(0,1).toLocaleUpperCase()+de.substring(1)).join("")}}ge.wordBoundary=new qe("[_\\s-]","gm"),ge.wordBoundaryToMaintain=new qe("(?<=\\.)","gm");class be extends De{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every(me=>me.isSupported())}constructor(){super({id:"editor.action.transformToKebabcase",label:U.kg("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:s.R.writable})}_modifyText(ae,me){const fe=be.caseBoundary.get(),le=be.singleLetters.get(),oe=be.underscoreBoundary.get();return!fe||!le||!oe?ae:ae.replace(oe,"$1-$3").replace(fe,"$1-$2").replace(le,"$1-$2").toLocaleLowerCase()}}be.caseBoundary=new qe("(\\p{Ll})(\\p{Lu})","gmu"),be.singleLetters=new qe("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu"),be.underscoreBoundary=new qe("(\\S)(_)(\\S)","gm"),(0,k.Fl)(A),(0,k.Fl)(T),(0,k.Fl)(E),(0,k.Fl)($),(0,k.Fl)(z),(0,k.Fl)(B),(0,k.Fl)(V),(0,k.Fl)(Y),(0,k.Fl)(X),(0,k.Fl)(ie),(0,k.Fl)(re),(0,k.Fl)(te),(0,k.Fl)(D),(0,k.Fl)(he),(0,k.Fl)(Ce),(0,k.Fl)(Pe),(0,k.Fl)(_e),(0,k.Fl)(ee),(0,k.Fl)(Te),(0,k.Fl)(He),q.caseBoundary.isSupported()&&q.singleLetters.isSupported()&&(0,k.Fl)(q),ye.wordBoundary.isSupported()&&(0,k.Fl)(ye),ge.wordBoundary.isSupported()&&(0,k.Fl)(ge),Qe.titleBoundary.isSupported()&&(0,k.Fl)(Qe),be.isSupported()&&(0,k.Fl)(be)},"./node_modules/monaco-editor/esm/vs/editor/contrib/linkedEditing/browser/linkedEditing.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),m=e("./node_modules/monaco-editor/esm/vs/nls.js"),u=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),v=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"),p=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),b=function(E,W,$,z){var J=arguments.length,B=J<3?W:z===null?z=Object.getOwnPropertyDescriptor(W,$):z,V;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(E,W,$,z);else for(var Y=E.length-1;Y>=0;Y--)(V=E[Y])&&(B=(J<3?V(B):J>3?V(W,$,B):V(W,$))||B);return J>3&&B&&Object.defineProperty(W,$,B),B},O=function(E,W){return function($,z){W($,z,E)}},w;const j=new u.N1("LinkedEditingInputVisible",!1),U="linked-editing-decoration";let K=w=class extends x.jG{static get(W){return W.getContribution(w.ID)}constructor(W,$,z,J,B){super(),this.languageConfigurationService=J,this._syncRangesToken=0,this._localToDispose=this._register(new x.Cm),this._editor=W,this._providers=z.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=j.bindTo($),this._debounceInformation=B.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new x.Cm),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequestCts=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(V=>{(V.hasChanged(70)||V.hasChanged(93))&&this.reinitialize(!1)})),this._register(this._providers.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}reinitialize(W){const $=this._editor.getModel(),z=$!==null&&(this._editor.getOption(70)||this._editor.getOption(93))&&this._providers.has($);if(z===this._enabled&&!W||(this._enabled=z,this.clearRanges(),this._localToDispose.clear(),!z||$===null))return;this._localToDispose.add(g.Jh.runAndSubscribe($.onDidChangeLanguageConfiguration,()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration($.getLanguageId()).getWordDefinition()}));const J=new F.ve(this._debounceInformation.get($)),B=()=>{var X;this._rangeUpdateTriggerPromise=J.trigger(()=>this.updateRanges(),(X=this._debounceDuration)!==null&&X!==void 0?X:this._debounceInformation.get($))},V=new F.ve(0),Y=X=>{this._rangeSyncTriggerPromise=V.trigger(()=>this._syncRanges(X))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{B()})),this._localToDispose.add(this._editor.onDidChangeModelContent(X=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){const ie=this._currentDecorations.getRange(0);if(ie&&X.changes.every(re=>ie.intersectRanges(re.range))){Y(this._syncRangesToken);return}}B()})),this._localToDispose.add({dispose:()=>{J.dispose(),V.dispose()}}),this.updateRanges()}_syncRanges(W){if(!this._editor.hasModel()||W!==this._syncRangesToken||this._currentDecorations.length===0)return;const $=this._editor.getModel(),z=this._currentDecorations.getRange(0);if(!z||z.startLineNumber!==z.endLineNumber)return this.clearRanges();const J=$.getValueInRange(z);if(this._currentWordPattern){const V=J.match(this._currentWordPattern);if((V?V[0].length:0)!==J.length)return this.clearRanges()}const B=[];for(let V=1,Y=this._currentDecorations.length;V1){this.clearRanges();return}const z=this._editor.getModel(),J=z.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===J){if($.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){const V=this._currentDecorations.getRange(0);if(V&&V.containsPosition($))return}}this.clearRanges(),this._currentRequestPosition=$,this._currentRequestModelVersion=J;const B=this._currentRequestCts=new k.Q;try{const V=new p.W(!1),Y=await A(this._providers,z,$,B.token);if(this._debounceInformation.update(z,V.elapsed()),B!==this._currentRequestCts||(this._currentRequestCts=null,J!==z.getVersionId()))return;let X=[];Y?.ranges&&(X=Y.ranges),this._currentWordPattern=Y?.wordPattern||this._languageWordPattern;let ie=!1;for(let te=0,D=X.length;te({range:te,options:w.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations.set(re),this._syncRangesToken++}catch(V){(0,L.MB)(V)||(0,L.dz)(V),(this._currentRequestCts===B||!this._currentRequestCts)&&this.clearRanges()}}};K.ID="editor.contrib.linkedEditing",K.DECORATION=i.kI.register({description:"linked-editing",stickiness:0,className:U}),K=w=b([O(1,u.fN),O(2,C.u),O(3,c.JZ),O(4,v.U)],K);class G extends f.ks{constructor(){super({id:"editor.action.linkedEditing",label:m.kg("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:u.M$.and(n.R.writable,n.R.hasRenameProvider),kbOpts:{kbExpr:n.R.editorTextFocus,primary:3132,weight:100}})}runCommand(W,$){const z=W.get(d.T),[J,B]=Array.isArray($)&&$||[void 0,void 0];return S.r.isUri(J)&&a.y.isIPosition(B)?z.openCodeEditor({resource:J},z.getActiveCodeEditor()).then(V=>{V&&(V.setPosition(B),V.invokeWithinContext(Y=>(this.reportTelemetry(Y,V),this.run(Y,V))))},L.dz):super.runCommand(W,$)}run(W,$){const z=K.get($);return z?Promise.resolve(z.updateRanges(!0)):Promise.resolve()}}const P=f.DX.bindToContribution(K.get);(0,f.E_)(new P({id:"cancelLinkedEditingInput",precondition:j,handler:E=>E.clearRanges(),kbOpts:{kbExpr:n.R.editorTextFocus,weight:199,primary:9,secondary:[1033]}}));function A(E,W,$,z){const J=E.ordered(W);return(0,F.$1)(J.map(B=>async()=>{try{return await B.provideLinkedEditingRanges(W,$,z)}catch(V){(0,L.M_)(V);return}}),B=>!!B&&r.EI(B?.ranges))}const T=(0,h.x1A)("editor.linkedEditingBackground",{dark:M.Q1.fromHex("#f00").transparent(.3),light:M.Q1.fromHex("#f00").transparent(.3),hcDark:M.Q1.fromHex("#f00").transparent(.3),hcLight:M.Q1.white},m.kg("editorLinkedEditingBackground","Background color when the editor auto renames on type."));(0,f.ke)("_executeLinkedEditingProvider",(E,W,$)=>{const{linkedEditingRangeProvider:z}=E.get(C.u);return A(z,W,$,k.X.None)}),(0,f.HW)(K.ID,K,1),(0,f.Fl)(G)},"./node_modules/monaco-editor/esm/vs/editor/contrib/links/browser/links.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js"),c=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js");class v{constructor(z,J){this._link=z,this._provider=J}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}async resolve(z){return this._link.url?this._link.url:typeof this._provider.resolveLink=="function"?Promise.resolve(this._provider.resolveLink(this._link,z)).then(J=>(this._link=J||this._link,this._link.url?this.resolve(z):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))}}class p{constructor(z){this._disposables=new L.Cm;let J=[];for(const[B,V]of z){const Y=B.links.map(X=>new v(X,V));J=p._union(J,Y),(0,L.Xm)(B)&&this._disposables.add(B)}this.links=J}dispose(){this._disposables.dispose(),this.links.length=0}static _union(z,J){const B=[];let V,Y,X,ie;for(V=0,X=0,Y=z.length,ie=J.length;VPromise.resolve(Y.provideLinks(z,J)).then(ie=>{ie&&(B[X]=[ie,Y])},k.M_));return Promise.all(V).then(()=>{const Y=new p((0,c.Yc)(B));return J.isCancellationRequested?(Y.dispose(),new p([])):Y})}h.w.registerCommand("_executeLinkProvider",async($,...z)=>{let[J,B]=z;(0,m.j)(J instanceof f.r),typeof B!="number"&&(B=0);const{linkProvider:V}=$.get(n.u),Y=$.get(C.S).getModel(J);if(!Y)return[];const X=await b(V,Y,F.X.None);if(!X)return[];for(let re=0;re=0;ie--)(X=$[ie])&&(Y=(V<3?X(Y):V>3?X(z,J,Y):X(z,J))||Y);return V>3&&Y&&Object.defineProperty(z,J,Y),Y},K=function($,z){return function(J,B){z(J,B,$)}},G;let P=G=class extends L.jG{static get(z){return z.getContribution(G.ID)}constructor(z,J,B,V,Y){super(),this.editor=z,this.openerService=J,this.notificationService=B,this.languageFeaturesService=V,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=Y.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new r.uC(()=>this.computeLinksNow(),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;const X=this._register(new i.gi(z));this._register(X.onMouseMoveOrRelevantKeyDown(([ie,re])=>{this._onEditorMouseMove(ie,re)})),this._register(X.onExecute(ie=>{this.onEditorMouseUp(ie)})),this._register(X.onCancel(ie=>{this.cleanUpActiveLinkDecoration()})),this._register(z.onDidChangeConfiguration(ie=>{ie.hasChanged(71)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))})),this._register(z.onDidChangeModelContent(ie=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))})),this._register(z.onDidChangeModel(ie=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)})),this._register(z.onDidChangeModelLanguage(ie=>{this.stop(),this.computeLinks.schedule(0)})),this._register(this.providers.onDidChange(ie=>{this.stop(),this.computeLinks.schedule(0)})),this.computeLinks.schedule(0)}async computeLinksNow(){if(!this.editor.hasModel()||!this.editor.getOption(71))return;const z=this.editor.getModel();if(!z.isTooLargeForSyncing()&&this.providers.has(z)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=(0,r.SS)(J=>b(this.providers,z,J));try{const J=new S.W(!1);if(this.activeLinksList=await this.computePromise,this.debounceInformation.update(z,J.elapsed()),z.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(J){(0,k.dz)(J)}finally{this.computePromise=null}}}updateDecorations(z){const J=this.editor.getOption(78)==="altKey",B=[],V=Object.keys(this.currentOccurrences);for(const X of V){const ie=this.currentOccurrences[X];B.push(ie.decorationId)}const Y=[];if(z)for(const X of z)Y.push(T.decoration(X,J));this.editor.changeDecorations(X=>{const ie=X.deltaDecorations(B,Y);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let re=0,te=ie.length;re{V.activate(Y,B),this.activeLinkDecorationId=V.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){const z=this.editor.getOption(78)==="altKey";if(this.activeLinkDecorationId){const J=this.currentOccurrences[this.activeLinkDecorationId];J&&this.editor.changeDecorations(B=>{J.deactivate(B,z)}),this.activeLinkDecorationId=null}}onEditorMouseUp(z){if(!this.isEnabled(z))return;const J=this.getLinkOccurrence(z.target.position);J&&this.openLinkOccurrence(J,z.hasSideBySideModifier,!0)}openLinkOccurrence(z,J,B=!1){if(!this.openerService)return;const{link:V}=z;V.resolve(F.X.None).then(Y=>{if(typeof Y=="string"&&this.editor.hasModel()){const X=this.editor.getModel().uri;if(X.scheme===g.ny.file&&Y.startsWith(`${g.ny.file}:`)){const ie=f.r.parse(Y);if(ie.scheme===g.ny.file){const re=I.su(ie);let te=null;re.startsWith("/./")||re.startsWith("\\.\\")?te=`.${re.substr(1)}`:(re.startsWith("//./")||re.startsWith("\\\\.\\"))&&(te=`.${re.substr(2)}`),te&&(Y=I.uJ(X,te))}}}return this.openerService.open(Y,{openToSide:J,fromUserGesture:B,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})},Y=>{const X=Y instanceof Error?Y.message:Y;X==="invalid"?this.notificationService.warn(O.kg("invalid.url","Failed to open this link because it is not well-formed: {0}",V.url.toString())):X==="missing"?this.notificationService.warn(O.kg("missing.url","Failed to open this link because its target is missing.")):(0,k.dz)(Y)})}getLinkOccurrence(z){if(!this.editor.hasModel()||!z)return null;const J=this.editor.getModel().getDecorationsInRange({startLineNumber:z.lineNumber,startColumn:z.column,endLineNumber:z.lineNumber,endColumn:z.column},0,!0);for(const B of J){const V=this.currentOccurrences[B.id];if(V)return V}return null}isEnabled(z,J){return!!(z.target.type===6&&(z.hasTriggerModifier||J&&J.keyCodeIsTriggerKey))}stop(){var z;this.computeLinks.cancel(),this.activeLinksList&&((z=this.activeLinksList)===null||z===void 0||z.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};P.ID="editor.linkDetector",P=G=U([K(1,j.C),K(2,w.Ot),K(3,n.u),K(4,s.U)],P);const A={general:a.kI.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:a.kI.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})};class T{static decoration(z,J){return{range:z.range,options:T._getOptions(z,J,!1)}}static _getOptions(z,J,B){const V={...B?A.active:A.general};return V.hoverMessage=E(z,J),V}constructor(z,J){this.link=z,this.decorationId=J}activate(z,J){z.changeDecorationOptions(this.decorationId,T._getOptions(this.link,J,!0))}deactivate(z,J){z.changeDecorationOptions(this.decorationId,T._getOptions(this.link,J,!1))}}function E($,z){const J=$.url&&/^command:/i.test($.url.toString()),B=$.tooltip?$.tooltip:J?O.kg("links.navigate.executeCmd","Execute command"):O.kg("links.navigate.follow","Follow link"),V=z?x.zx?O.kg("links.navigate.kb.meta.mac","cmd + click"):O.kg("links.navigate.kb.meta","ctrl + click"):x.zx?O.kg("links.navigate.kb.alt.mac","option + click"):O.kg("links.navigate.kb.alt","alt + click");if($.url){let Y="";if(/^command:/i.test($.url.toString())){const ie=$.url.toString().match(/^command:([^?#]+)/);if(ie){const re=ie[1];Y=O.kg("tooltip.explanation","Execute command {0}",re)}}return new M.Bc("",!0).appendLink($.url.toString(!0).replace(/ /g,"%20"),B,Y).appendMarkdown(` (${V})`)}else return new M.Bc().appendText(`${B} (${V})`)}class W extends d.ks{constructor(){super({id:"editor.action.openLink",label:O.kg("label","Open Link"),alias:"Open Link",precondition:void 0})}run(z,J){const B=P.get(J);if(!B||!J.hasModel())return;const V=J.getSelections();for(const Y of V){const X=B.getLinkOccurrence(Y.getEndPosition());X&&B.openLinkOccurrence(X,!1)}}}(0,d.HW)(P.ID,P,1),(0,d.Fl)(W)},"./node_modules/monaco-editor/esm/vs/editor/contrib/longLinesHelper/browser/longLinesHelper.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js");class k extends r.jG{constructor(L){super(),this._editor=L,this._register(this._editor.onMouseDown(g=>{const x=this._editor.getOption(117);x>=0&&g.target.type===6&&g.target.position.column>=x&&this._editor.updateOptions({stopRenderingLineAfter:-1})}))}}k.ID="editor.contrib.longLinesHelper",(0,F.HW)(k.ID,k,2)},"./node_modules/monaco-editor/esm/vs/editor/contrib/message/browser/messageController.js":function(pt,Me,e){e.d(Me,{k:function(){return c}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/markdownRenderer.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js"),S=e("./node_modules/monaco-editor/esm/vs/nls.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),a=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),s=function(C,h,v,p){var b=arguments.length,O=b<3?h:p===null?p=Object.getOwnPropertyDescriptor(h,v):p,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(C,h,v,p);else for(var j=C.length-1;j>=0;j--)(w=C[j])&&(O=(b<3?w(O):b>3?w(h,v,O):w(h,v))||O);return b>3&&O&&Object.defineProperty(h,v,O),O},n=function(C,h){return function(v,p){h(v,p,C)}},i;let c=i=class{static get(h){return h.getContribution(i.ID)}constructor(h,v,p){this._openerService=p,this._messageWidget=new L.HE,this._messageListeners=new L.Cm,this._mouseOverMessage=!1,this._editor=h,this._visible=i.MESSAGE_VISIBLE.bindTo(v)}dispose(){var h;(h=this._message)===null||h===void 0||h.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(h,v){(0,F.xE)((0,M.VS)(h)?h.value:h),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=(0,M.VS)(h)?(0,r.Gc)(h,{actionHandler:{callback:b=>{this.closeMessage(),(0,I.i)(this._openerService,b,(0,M.VS)(h)?h.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new u(this._editor,v,typeof h=="string"?h:this._message.element),this._messageListeners.add(k.Jh.debounce(this._editor.onDidBlurEditorText,(b,O)=>O,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&a.QX(a.bq(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(a.ko(this._messageWidget.value.getDomNode(),a.Bx.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(a.ko(this._messageWidget.value.getDomNode(),a.Bx.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let p;this._messageListeners.add(this._editor.onMouseMove(b=>{b.target.position&&(p?p.containsPosition(b.target.position)||this.closeMessage():p=new x.Q(v.lineNumber-3,1,b.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(u.fadeOut(this._messageWidget.value))}};c.ID="editor.contrib.messageController",c.MESSAGE_VISIBLE=new f.N1("messageVisible",!1,S.kg("messageVisible","Whether the editor is currently showing an inline message")),c=i=s([n(1,f.fN),n(2,d.C)],c);const m=g.DX.bindToContribution(c.get);(0,g.E_)(new m({id:"leaveEditorMessage",precondition:c.MESSAGE_VISIBLE,handler:C=>C.closeMessage(),kbOpts:{weight:130,primary:9}}));class u{static fadeOut(h){const v=()=>{h.dispose(),clearTimeout(p),h.getDomNode().removeEventListener("animationend",v)},p=setTimeout(v,110);return h.getDomNode().addEventListener("animationend",v),h.getDomNode().classList.add("fadeOut"),{dispose:v}}constructor(h,{lineNumber:v,column:p},b){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=h,this._editor.revealLinesInCenterIfOutsideViewport(v,v,0),this._position={lineNumber:v,column:p},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const O=document.createElement("div");O.classList.add("anchor","top"),this._domNode.appendChild(O);const w=document.createElement("div");typeof b=="string"?(w.classList.add("message"),w.textContent=b):(b.classList.add("message"),w.appendChild(b)),this._domNode.appendChild(w);const j=document.createElement("div");j.classList.add("anchor","below"),this._domNode.appendChild(j),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(h){this._domNode.classList.toggle("below",h===2)}}(0,g.HW)(c.ID,c,4)},"./node_modules/monaco-editor/esm/vs/editor/contrib/multicursor/browser/multicursor.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorMoveCommands.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findController.js"),d=e("./node_modules/monaco-editor/esm/vs/nls.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),m=function(ie,re,te,D){var he=arguments.length,ve=he<3?re:D===null?D=Object.getOwnPropertyDescriptor(re,te):D,Ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(ie,re,te,D);else for(var Pe=ie.length-1;Pe>=0;Pe--)(Ce=ie[Pe])&&(ve=(he<3?Ce(ve):he>3?Ce(re,te,ve):Ce(re,te))||ve);return he>3&&ve&&Object.defineProperty(re,te,ve),ve},u=function(ie,re){return function(te,D){re(te,D,ie)}},C;function h(ie,re){const te=re.filter(D=>!ie.find(he=>he.equals(D)));if(te.length>=1){const D=te.map(ve=>`line ${ve.viewState.position.lineNumber} column ${ve.viewState.position.column}`).join(", "),he=te.length===1?d.kg("cursorAdded","Cursor added: {0}",D):d.kg("cursorsAdded","Cursors added: {0}",D);(0,r.h5)(he)}}class v extends L.ks{constructor(){super({id:"editor.action.insertCursorAbove",label:d.kg("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:S.R.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:a.D8.MenubarSelectionMenu,group:"3_multi",title:d.kg({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(re,te,D){if(!te.hasModel())return;let he=!0;D&&D.logicalLine===!1&&(he=!1);const ve=te._getViewModel();if(ve.cursorConfig.readOnly)return;ve.model.pushStackElement();const Ce=ve.getCursorStates();ve.setCursorStates(D.source,3,g.c.addCursorUp(ve,Ce,he)),ve.revealTopMostCursor(D.source),h(Ce,ve.getCursorStates())}}class p extends L.ks{constructor(){super({id:"editor.action.insertCursorBelow",label:d.kg("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:S.R.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:a.D8.MenubarSelectionMenu,group:"3_multi",title:d.kg({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(re,te,D){if(!te.hasModel())return;let he=!0;D&&D.logicalLine===!1&&(he=!1);const ve=te._getViewModel();if(ve.cursorConfig.readOnly)return;ve.model.pushStackElement();const Ce=ve.getCursorStates();ve.setCursorStates(D.source,3,g.c.addCursorDown(ve,Ce,he)),ve.revealBottomMostCursor(D.source),h(Ce,ve.getCursorStates())}}class b extends L.ks{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:d.kg("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:S.R.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:a.D8.MenubarSelectionMenu,group:"3_multi",title:d.kg({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(re,te,D){if(!re.isEmpty()){for(let he=re.startLineNumber;he1&&D.push(new I.L(re.endLineNumber,re.endColumn,re.endLineNumber,re.endColumn))}}run(re,te){if(!te.hasModel())return;const D=te.getModel(),he=te.getSelections(),ve=te._getViewModel(),Ce=ve.getCursorStates(),Pe=[];he.forEach(_e=>this.getCursorsForSelection(_e,D,Pe)),Pe.length>0&&te.setSelections(Pe),h(Ce,ve.getCursorStates())}}class O extends L.ks{constructor(){super({id:"editor.action.addCursorsToBottom",label:d.kg("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(re,te){if(!te.hasModel())return;const D=te.getSelections(),he=te.getModel().getLineCount(),ve=[];for(let _e=D[0].startLineNumber;_e<=he;_e++)ve.push(new I.L(_e,D[0].startColumn,_e,D[0].endColumn));const Ce=te._getViewModel(),Pe=Ce.getCursorStates();ve.length>0&&te.setSelections(ve),h(Pe,Ce.getCursorStates())}}class w extends L.ks{constructor(){super({id:"editor.action.addCursorsToTop",label:d.kg("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(re,te){if(!te.hasModel())return;const D=te.getSelections(),he=[];for(let Pe=D[0].startLineNumber;Pe>=1;Pe--)he.push(new I.L(Pe,D[0].startColumn,Pe,D[0].endColumn));const ve=te._getViewModel(),Ce=ve.getCursorStates();he.length>0&&te.setSelections(he),h(Ce,ve.getCursorStates())}}class j{constructor(re,te,D){this.selections=re,this.revealRange=te,this.revealScrollType=D}}class U{static create(re,te){if(!re.hasModel())return null;const D=te.getState();if(!re.hasTextFocus()&&D.isRevealed&&D.searchString.length>0)return new U(re,te,!1,D.searchString,D.wholeWord,D.matchCase,null);let he=!1,ve,Ce;const Pe=re.getSelections();Pe.length===1&&Pe[0].isEmpty()?(he=!0,ve=!0,Ce=!0):(ve=D.wholeWord,Ce=D.matchCase);const _e=re.getSelection();let ee,De=null;if(_e.isEmpty()){const Te=re.getConfiguredWordAtPosition(_e.getStartPosition());if(!Te)return null;ee=Te.word,De=new I.L(_e.startLineNumber,Te.startColumn,_e.startLineNumber,Te.endColumn)}else ee=re.getModel().getValueInRange(_e).replace(/\r\n/g,` `);return new U(re,te,he,ee,ve,Ce,De)}constructor(re,te,D,he,ve,Ce,Pe){this._editor=re,this.findController=te,this.isDisconnectedFromFindController=D,this.searchText=he,this.wholeWord=ve,this.matchCase=Ce,this.currentMatch=Pe}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const re=this._getNextMatch();if(!re)return null;const te=this._editor.getSelections();return new j(te.concat(re),re,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;const re=this._getNextMatch();if(!re)return null;const te=this._editor.getSelections();return new j(te.slice(0,te.length-1).concat(re),re,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const he=this.currentMatch;return this.currentMatch=null,he}this.findController.highlightFindOptions();const re=this._editor.getSelections(),te=re[re.length-1],D=this._editor.getModel().findNextMatch(this.searchText,te.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return D?new I.L(D.range.startLineNumber,D.range.startColumn,D.range.endLineNumber,D.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const re=this._getPreviousMatch();if(!re)return null;const te=this._editor.getSelections();return new j(te.concat(re),re,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;const re=this._getPreviousMatch();if(!re)return null;const te=this._editor.getSelections();return new j(te.slice(0,te.length-1).concat(re),re,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){const he=this.currentMatch;return this.currentMatch=null,he}this.findController.highlightFindOptions();const re=this._editor.getSelections(),te=re[re.length-1],D=this._editor.getModel().findPreviousMatch(this.searchText,te.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1);return D?new I.L(D.range.startLineNumber,D.range.startColumn,D.range.endLineNumber,D.range.endColumn):null}selectAll(re){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();const te=this._editor.getModel();return re?te.findMatches(this.searchText,re,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824):te.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(131):null,!1,1073741824)}}class K extends M.jG{static get(re){return re.getContribution(K.ID)}constructor(re){super(),this._sessionDispose=this._register(new M.Cm),this._editor=re,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(re){if(!this._session){const te=U.create(this._editor,re);if(!te)return;this._session=te;const D={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(D.wholeWordOverride=1,D.matchCaseOverride=1,D.isRegexOverride=2),re.getState().change(D,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(he=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(re.getState().onFindReplaceStateChange(he=>{(he.matchCase||he.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){const re={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(re,!1)}this._session=null}_setSelections(re){this._ignoreSelectionChange=!0,this._editor.setSelections(re),this._ignoreSelectionChange=!1}_expandEmptyToWord(re,te){if(!te.isEmpty())return te;const D=this._editor.getConfiguredWordAtPosition(te.getStartPosition());return D?new I.L(te.startLineNumber,D.startColumn,te.startLineNumber,D.endColumn):te}_applySessionResult(re){re&&(this._setSelections(re.selections),re.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(re.revealRange,re.revealScrollType))}getSession(re){return this._session}addSelectionToNextFindMatch(re){if(this._editor.hasModel()){if(!this._session){const te=this._editor.getSelections();if(te.length>1){const he=re.getState().matchCase;if(!B(this._editor.getModel(),te,he)){const Ce=this._editor.getModel(),Pe=[];for(let _e=0,ee=te.length;_e0&&D.isRegex){const he=this._editor.getModel();D.searchScope?te=he.findMatches(D.searchString,D.searchScope,D.isRegex,D.matchCase,D.wholeWord?this._editor.getOption(131):null,!1,1073741824):te=he.findMatches(D.searchString,!0,D.isRegex,D.matchCase,D.wholeWord?this._editor.getOption(131):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(re),!this._session)return;te=this._session.selectAll(D.searchScope)}if(te.length>0){const he=this._editor.getSelection();for(let ve=0,Ce=te.length;venew I.L(ve.range.startLineNumber,ve.range.startColumn,ve.range.endLineNumber,ve.range.endColumn)))}}}K.ID="editor.contrib.multiCursorController";class G extends L.ks{run(re,te){const D=K.get(te);if(!D)return;const he=te._getViewModel();if(he){const ve=he.getCursorStates(),Ce=f.z0.get(te);if(Ce)this._run(D,Ce);else{const Pe=re.get(c._Y).createInstance(f.z0,te);this._run(D,Pe),Pe.dispose()}h(ve,he.getCursorStates())}}}class P extends G{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:d.kg("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:S.R.focus,primary:2082,weight:100},menuOpts:{menuId:a.D8.MenubarSelectionMenu,group:"3_multi",title:d.kg({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(re,te){re.addSelectionToNextFindMatch(te)}}class A extends G{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:d.kg("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:a.D8.MenubarSelectionMenu,group:"3_multi",title:d.kg({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(re,te){re.addSelectionToPreviousFindMatch(te)}}class T extends G{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:d.kg("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:S.R.focus,primary:(0,k.m5)(2089,2082),weight:100}})}_run(re,te){re.moveSelectionToNextFindMatch(te)}}class E extends G{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:d.kg("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(re,te){re.moveSelectionToPreviousFindMatch(te)}}class W extends G{constructor(){super({id:"editor.action.selectHighlights",label:d.kg("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:S.R.focus,primary:3114,weight:100},menuOpts:{menuId:a.D8.MenubarSelectionMenu,group:"3_multi",title:d.kg({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(re,te){re.selectAll(te)}}class $ extends G{constructor(){super({id:"editor.action.changeAll",label:d.kg("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:s.M$.and(S.R.writable,S.R.editorTextFocus),kbOpts:{kbExpr:S.R.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(re,te){re.selectAll(te)}}class z{constructor(re,te,D,he,ve){this._model=re,this._searchText=te,this._matchCase=D,this._wordSeparators=he,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,ve&&this._model===ve._model&&this._searchText===ve._searchText&&this._matchCase===ve._matchCase&&this._wordSeparators===ve._wordSeparators&&this._modelVersionId===ve._modelVersionId&&(this._cachedFindMatches=ve._cachedFindMatches)}findMatches(){return this._cachedFindMatches===null&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(re=>re.range),this._cachedFindMatches.sort(x.Q.compareRangesUsingStarts)),this._cachedFindMatches}}let J=C=class extends M.jG{constructor(re,te){super(),this._languageFeaturesService=te,this.editor=re,this._isEnabled=re.getOption(108),this._decorations=re.createDecorationsCollection(),this.updateSoon=this._register(new F.uC(()=>this._update(),300)),this.state=null,this._register(re.onDidChangeConfiguration(he=>{this._isEnabled=re.getOption(108)})),this._register(re.onDidChangeCursorSelection(he=>{this._isEnabled&&(he.selection.isEmpty()?he.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(re.onDidChangeModel(he=>{this._setState(null)})),this._register(re.onDidChangeModelContent(he=>{this._isEnabled&&this.updateSoon.schedule()}));const D=f.z0.get(re);D&&this._register(D.getState().onFindReplaceStateChange(he=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(C._createState(this.state,this._isEnabled,this.editor))}static _createState(re,te,D){if(!te||!D.hasModel())return null;const he=D.getSelection();if(he.startLineNumber!==he.endLineNumber)return null;const ve=K.get(D);if(!ve)return null;const Ce=f.z0.get(D);if(!Ce)return null;let Pe=ve.getSession(Ce);if(!Pe){const De=D.getSelections();if(De.length>1){const He=Ce.getState().matchCase;if(!B(D.getModel(),De,He))return null}Pe=U.create(D,Ce)}if(!Pe||Pe.currentMatch||/^[ \t]+$/.test(Pe.searchText)||Pe.searchText.length>200)return null;const _e=Ce.getState(),ee=_e.matchCase;if(_e.isRevealed){let De=_e.searchString;ee||(De=De.toLowerCase());let Te=Pe.searchText;if(ee||(Te=Te.toLowerCase()),De===Te&&Pe.matchCase===_e.matchCase&&Pe.wholeWord===_e.wholeWord&&!_e.isRegex)return null}return new z(D.getModel(),Pe.searchText,Pe.matchCase,Pe.wholeWord?D.getOption(131):null,re)}_setState(re){if(this.state=re,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;const te=this.editor.getModel();if(te.isTooLargeForTokenization())return;const D=this.state.findMatches(),he=this.editor.getSelections();he.sort(x.Q.compareRangesUsingStarts);const ve=[];for(let ee=0,De=0,Te=D.length,He=he.length;ee=He)ve.push(qe),ee++;else{const Qe=x.Q.compareRangesUsingStarts(qe,he[De]);Qe<0?((he[De].isEmpty()||!x.Q.areIntersecting(qe,he[De]))&&ve.push(qe),ee++):(Qe>0||ee++,De++)}}const Ce=this.editor.getOption(81)!=="off",Pe=this._languageFeaturesService.documentHighlightProvider.has(te)&&Ce,_e=ve.map(ee=>({range:ee,options:(0,i.v)(Pe)}));this._decorations.set(_e)}dispose(){this._setState(null),super.dispose()}};J.ID="editor.contrib.selectionHighlighter",J=C=m([u(1,n.u)],J);function B(ie,re,te){const D=V(ie,re[0],!te);for(let he=1,ve=re.length;he{const[De,Te,He]=ee;(0,a.j)(s.r.isUri(De)),(0,a.j)(n.y.isIPosition(Te)),(0,a.j)(typeof He=="string"||!He);const qe=_e.get(g.u),Qe=await _e.get(i.b).createModelReference(De);try{const q=await C(qe.signatureHelpProvider,Qe.object.textEditorModel,n.y.lift(Te),{triggerKind:L.WA.Invoke,isRetrigger:!1,triggerCharacter:He},d.X.None);return q?(setTimeout(()=>q.dispose(),0),q.value):void 0}finally{Qe.dispose()}});var h;(function(_e){_e.Default={type:0};class ee{constructor(He,qe){this.request=He,this.previouslyActiveHints=qe,this.type=2}}_e.Pending=ee;class De{constructor(He){this.hints=He,this.type=1}}_e.Active=De})(h||(h={}));class v extends F.jG{constructor(ee,De,Te=v.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new S.vl),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=h.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new F.HE),this.triggerChars=new f.y,this.retriggerChars=new f.y,this.triggerId=0,this.editor=ee,this.providers=De,this.throttledDelayer=new x.ve(Te),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(He=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(He=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(He=>this.onCursorChange(He))),this._register(this.editor.onDidChangeModelContent(He=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(He=>this.onDidType(He))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(ee){this._state.type===2&&this._state.request.cancel(),this._state=ee}cancel(ee=!1){this.state=h.Default,this.throttledDelayer.cancel(),ee||this._onChangedHints.fire(void 0)}trigger(ee,De){const Te=this.editor.getModel();if(!Te||!this.providers.has(Te))return;const He=++this.triggerId;this._pendingTriggers.push(ee),this.throttledDelayer.trigger(()=>this.doTrigger(He),De).catch(I.dz)}next(){if(this.state.type!==1)return;const ee=this.state.hints.signatures.length,De=this.state.hints.activeSignature,Te=De%ee===ee-1,He=this.editor.getOption(86).cycle;if((ee<2||Te)&&!He){this.cancel();return}this.updateActiveSignature(Te&&He?0:De+1)}previous(){if(this.state.type!==1)return;const ee=this.state.hints.signatures.length,De=this.state.hints.activeSignature,Te=De===0,He=this.editor.getOption(86).cycle;if((ee<2||Te)&&!He){this.cancel();return}this.updateActiveSignature(Te&&He?ee-1:De-1)}updateActiveSignature(ee){this.state.type===1&&(this.state=new h.Active({...this.state.hints,activeSignature:ee}),this._onChangedHints.fire(this.state.hints))}async doTrigger(ee){const De=this.state.type===1||this.state.type===2,Te=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;const He=this._pendingTriggers.reduce(p);this._pendingTriggers=[];const qe={triggerKind:He.triggerKind,triggerCharacter:He.triggerCharacter,isRetrigger:De,activeSignatureHelp:Te};if(!this.editor.hasModel())return!1;const Qe=this.editor.getModel(),q=this.editor.getPosition();this.state=new h.Pending((0,x.SS)(ye=>C(this.providers,Qe,q,qe,ye)),Te);try{const ye=await this.state.request;return ee!==this.triggerId?(ye?.dispose(),!1):!ye||!ye.value.signatures||ye.value.signatures.length===0?(ye?.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new h.Active(ye.value),this._lastSignatureHelpResult.value=ye,this._onChangedHints.fire(this.state.hints),!0)}catch(ye){return ee===this.triggerId&&(this.state=h.Default),(0,I.dz)(ye),!1}}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();const ee=this.editor.getModel();if(ee)for(const De of this.providers.ordered(ee)){for(const Te of De.signatureHelpTriggerCharacters||[])if(Te.length){const He=Te.charCodeAt(0);this.triggerChars.add(He),this.retriggerChars.add(He)}for(const Te of De.signatureHelpRetriggerCharacters||[])Te.length&&this.retriggerChars.add(Te.charCodeAt(0))}}onDidType(ee){if(!this.triggerOnType)return;const De=ee.length-1,Te=ee.charCodeAt(De);(this.triggerChars.has(Te)||this.isTriggered&&this.retriggerChars.has(Te))&&this.trigger({triggerKind:L.WA.TriggerCharacter,triggerCharacter:ee.charAt(De)})}onCursorChange(ee){ee.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:L.WA.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:L.WA.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(86).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}}v.DEFAULT_DELAY=120;function p(_e,ee){switch(ee.triggerKind){case L.WA.Invoke:return ee;case L.WA.ContentChange:return _e;case L.WA.TriggerCharacter:default:return ee}}var b=e("./node_modules/monaco-editor/esm/vs/nls.js"),O=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),w=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),j=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),U=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement.js"),K=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),G=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),P=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),A=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js"),T=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),E=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),W=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js"),$=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),z=function(_e,ee,De,Te){var He=arguments.length,qe=He<3?ee:Te===null?Te=Object.getOwnPropertyDescriptor(ee,De):Te,Qe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")qe=Reflect.decorate(_e,ee,De,Te);else for(var q=_e.length-1;q>=0;q--)(Qe=_e[q])&&(qe=(He<3?Qe(qe):He>3?Qe(ee,De,qe):Qe(ee,De))||qe);return He>3&&qe&&Object.defineProperty(ee,De,qe),qe},J=function(_e,ee){return function(De,Te){ee(De,Te,_e)}},B;const V=w.$,Y=(0,W.pU)("parameter-hints-next",K.W.chevronDown,b.kg("parameterHintsNextIcon","Icon for show next parameter hint.")),X=(0,W.pU)("parameter-hints-previous",K.W.chevronUp,b.kg("parameterHintsPreviousIcon","Icon for show previous parameter hint."));let ie=B=class extends F.jG{constructor(ee,De,Te,He,qe){super(),this.editor=ee,this.model=De,this.renderDisposeables=this._register(new F.Cm),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new A.T({editor:ee},qe,He)),this.keyVisible=u.Visible.bindTo(Te),this.keyMultipleSignatures=u.MultipleSignatures.bindTo(Te)}createParameterHintDOMNodes(){const ee=V(".editor-widget.parameter-hints-widget"),De=w.BC(ee,V(".phwrapper"));De.tabIndex=-1;const Te=w.BC(De,V(".controls")),He=w.BC(Te,V(".button"+$.L.asCSSSelector(X))),qe=w.BC(Te,V(".overloads")),Qe=w.BC(Te,V(".button"+$.L.asCSSSelector(Y)));this._register(w.ko(He,"click",ae=>{w.fs.stop(ae),this.previous()})),this._register(w.ko(Qe,"click",ae=>{w.fs.stop(ae),this.next()}));const q=V(".body"),ye=new U.MU(q,{alwaysConsumeMouseWheel:!0});this._register(ye),De.appendChild(ye.getDomNode());const ge=w.BC(q,V(".signature")),be=w.BC(q,V(".docs"));ee.style.userSelect="text",this.domNodes={element:ee,signature:ge,overloads:qe,docs:be,scrollbar:ye},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(ae=>{this.visible&&this.editor.layoutContentWidget(this)}));const Se=()=>{if(!this.domNodes)return;const ae=this.editor.getOption(50);this.domNodes.element.style.fontSize=`${ae.fontSize}px`,this.domNodes.element.style.lineHeight=`${ae.lineHeight/ae.fontSize}`};Se(),this._register(S.Jh.chain(this.editor.onDidChangeConfiguration.bind(this.editor),ae=>ae.filter(me=>me.hasChanged(50)))(Se)),this._register(this.editor.onDidLayoutChange(ae=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{var ee;(ee=this.domNodes)===null||ee===void 0||ee.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){var ee;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,(ee=this.domNodes)===null||ee===void 0||ee.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(ee){var De;if(this.renderDisposeables.clear(),!this.domNodes)return;const Te=ee.signatures.length>1;this.domNodes.element.classList.toggle("multiple",Te),this.keyMultipleSignatures.set(Te),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";const He=ee.signatures[ee.activeSignature];if(!He)return;const qe=w.BC(this.domNodes.signature,V(".code")),Qe=this.editor.getOption(50);qe.style.fontSize=`${Qe.fontSize}px`,qe.style.fontFamily=Qe.fontFamily;const q=He.parameters.length>0,ye=(De=He.activeParameter)!==null&&De!==void 0?De:ee.activeParameter;if(q)this.renderParameters(qe,He,ye);else{const Se=w.BC(qe,V("span"));Se.textContent=He.label}const ge=He.parameters[ye];if(ge?.documentation){const Se=V("span.documentation");if(typeof ge.documentation=="string")Se.textContent=ge.documentation;else{const ae=this.renderMarkdownDocs(ge.documentation);Se.appendChild(ae.element)}w.BC(this.domNodes.docs,V("p",{},Se))}if(He.documentation!==void 0)if(typeof He.documentation=="string")w.BC(this.domNodes.docs,V("p",{},He.documentation));else{const Se=this.renderMarkdownDocs(He.documentation);w.BC(this.domNodes.docs,Se.element)}const be=this.hasDocs(He,ge);if(this.domNodes.signature.classList.toggle("has-docs",be),this.domNodes.docs.classList.toggle("empty",!be),this.domNodes.overloads.textContent=String(ee.activeSignature+1).padStart(ee.signatures.length.toString().length,"0")+"/"+ee.signatures.length,ge){let Se="";const ae=He.parameters[ye];Array.isArray(ae.label)?Se=He.label.substring(ae.label[0],ae.label[1]):Se=ae.label,ae.documentation&&(Se+=typeof ae.documentation=="string"?`, ${ae.documentation}`:`, ${ae.documentation.value}`),He.documentation&&(Se+=typeof He.documentation=="string"?`, ${He.documentation}`:`, ${He.documentation.value}`),this.announcedLabel!==Se&&(j.xE(b.kg("hint","{0}, hint",Se)),this.announcedLabel=Se)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(ee){const De=this.renderDisposeables.add(this.markdownRenderer.render(ee,{asyncRenderCallback:()=>{var Te;(Te=this.domNodes)===null||Te===void 0||Te.scrollbar.scanDomNode()}}));return De.element.classList.add("markdown-docs"),De}hasDocs(ee,De){return!!(De&&typeof De.documentation=="string"&&(0,a.eU)(De.documentation).length>0||De&&typeof De.documentation=="object"&&(0,a.eU)(De.documentation).value.length>0||ee.documentation&&typeof ee.documentation=="string"&&(0,a.eU)(ee.documentation).length>0||ee.documentation&&typeof ee.documentation=="object"&&(0,a.eU)(ee.documentation.value).length>0)}renderParameters(ee,De,Te){const[He,qe]=this.getParameterLabelOffsets(De,Te),Qe=document.createElement("span");Qe.textContent=De.label.substring(0,He);const q=document.createElement("span");q.textContent=De.label.substring(He,qe),q.className="parameter active";const ye=document.createElement("span");ye.textContent=De.label.substring(qe),w.BC(ee,Qe,q,ye)}getParameterLabelOffsets(ee,De){const Te=ee.parameters[De];if(Te){if(Array.isArray(Te.label))return Te.label;if(Te.label.length){const He=new RegExp(`(\\W|^)${(0,G.bm)(Te.label)}(?=\\W|$)`,"g");He.test(ee.label);const qe=He.lastIndex-Te.label.length;return qe>=0?[qe,He.lastIndex]:[0,0]}else return[0,0]}else return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return B.ID}updateMaxHeight(){if(!this.domNodes)return;const De=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=De;const Te=this.domNodes.element.getElementsByClassName("phwrapper");Te.length&&(Te[0].style.maxHeight=De)}};ie.ID="editor.widget.parameterHintsWidget",ie=B=z([J(2,m.fN),J(3,T.C),J(4,P.L)],ie),(0,E.x1A)("editorHoverWidget.highlightForeground",{dark:E.QI5,light:E.QI5,hcDark:E.QI5,hcLight:E.QI5},b.kg("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."));var re=function(_e,ee,De,Te){var He=arguments.length,qe=He<3?ee:Te===null?Te=Object.getOwnPropertyDescriptor(ee,De):Te,Qe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")qe=Reflect.decorate(_e,ee,De,Te);else for(var q=_e.length-1;q>=0;q--)(Qe=_e[q])&&(qe=(He<3?Qe(qe):He>3?Qe(ee,De,qe):Qe(ee,De))||qe);return He>3&&qe&&Object.defineProperty(ee,De,qe),qe},te=function(_e,ee){return function(De,Te){ee(De,Te,_e)}},D;let he=D=class extends F.jG{static get(ee){return ee.getContribution(D.ID)}constructor(ee,De,Te){super(),this.editor=ee,this.model=this._register(new v(ee,Te.signatureHelpProvider)),this._register(this.model.onChangedHints(He=>{var qe;He?(this.widget.value.show(),this.widget.value.render(He)):(qe=this.widget.rawValue)===null||qe===void 0||qe.hide()})),this.widget=new r.d(()=>this._register(De.createInstance(ie,this.editor,this.model)))}cancel(){this.model.cancel()}previous(){var ee;(ee=this.widget.rawValue)===null||ee===void 0||ee.previous()}next(){var ee;(ee=this.widget.rawValue)===null||ee===void 0||ee.next()}trigger(ee){this.model.trigger(ee,0)}};he.ID="editor.controller.parameterHints",he=D=re([te(1,O._Y),te(2,g.u)],he);class ve extends k.ks{constructor(){super({id:"editor.action.triggerParameterHints",label:b.kg("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:M.R.hasSignatureHelpProvider,kbOpts:{kbExpr:M.R.editorTextFocus,primary:3082,weight:100}})}run(ee,De){const Te=he.get(De);Te?.trigger({triggerKind:L.WA.Invoke})}}(0,k.HW)(he.ID,he,2),(0,k.Fl)(ve);const Ce=175,Pe=k.DX.bindToContribution(he.get);(0,k.E_)(new Pe({id:"closeParameterHints",precondition:u.Visible,handler:_e=>_e.cancel(),kbOpts:{weight:Ce,kbExpr:M.R.focus,primary:9,secondary:[1033]}})),(0,k.E_)(new Pe({id:"showPrevParameterHint",precondition:m.M$.and(u.Visible,u.MultipleSignatures),handler:_e=>_e.previous(),kbOpts:{weight:Ce,kbExpr:M.R.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),(0,k.E_)(new Pe({id:"showNextParameterHint",precondition:m.M$.and(u.Visible,u.MultipleSignatures),handler:_e=>_e.next(),kbOpts:{weight:Ce,kbExpr:M.R.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))},"./node_modules/monaco-editor/esm/vs/editor/contrib/peekView/browser/peekView.js":function(pt,Me,e){e.d(Me,{zn:function(){return T},x2:function(){return E},j6:function(){return J},RL:function(){return $},zl:function(){return X},n6:function(){return ie},z0:function(){return B},_X:function(){return V},e3:function(){return Y}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js"),a=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/sash/sash.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/idGenerator.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js");const m=new g.Q1(new g.bU(0,122,204)),u={showArrow:!0,showFrame:!0,className:"",frameColor:m,arrowColor:m,keepEditorSelection:!1},C="vs.editor.contrib.zoneWidget";class h{constructor(He,qe,Qe,q,ye,ge,be,Se){this.id="",this.domNode=He,this.afterLineNumber=qe,this.afterColumn=Qe,this.heightInLines=q,this.showInHiddenAreas=be,this.ordinal=Se,this._onDomNodeTop=ye,this._onComputedHeight=ge}onDomNodeTop(He){this._onDomNodeTop(He)}onComputedHeight(He){this._onComputedHeight(He)}}class v{constructor(He,qe){this._id=He,this._domNode=qe}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}}class p{constructor(He){this._editor=He,this._ruleName=p._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),r.U2(this._ruleName)}set color(He){this._color!==He&&(this._color=He,this._updateStyle())}set height(He){this._height!==He&&(this._height=He,this._updateStyle())}_updateStyle(){r.U2(this._ruleName),r.Wt(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px !important; margin-left: -${this._height}px; `)}show(He){He.column===1&&(He={lineNumber:He.lineNumber,column:2}),this._decorations.set([{range:i.Q.fromPositions(He),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}}p._IdGenerator=new s.n(".arrow-decoration-");class b{constructor(He,qe={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new n.Cm,this.container=null,this._isShowing=!1,this.editor=He,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=I.Go(qe),I.co(this.options,u,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(Qe=>{const q=this._getWidth(Qe);this.domNode.style.width=q+"px",this.domNode.style.left=this._getLeft(Qe)+"px",this._onWidth(q)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(He=>{this._viewZone&&He.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new p(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(He){He.frameColor&&(this.options.frameColor=He.frameColor),He.arrowColor&&(this.options.arrowColor=He.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){const He=this.options.frameColor.toString();this.container.style.borderTopColor=He,this.container.style.borderBottomColor=He}if(this._arrow&&this.options.arrowColor){const He=this.options.arrowColor.toString();this._arrow.color=He}}_getWidth(He){return He.width-He.minimap.minimapWidth-He.verticalScrollbarWidth}_getLeft(He){return He.minimap.minimapWidth>0&&He.minimap.minimapLeft===0?He.minimap.minimapWidth:0}_onViewZoneTop(He){this.domNode.style.top=He+"px"}_onViewZoneHeight(He){var qe;if(this.domNode.style.height=`${He}px`,this.container){const Qe=He-this._decoratingElementsHeight();this.container.style.height=`${Qe}px`;const q=this.editor.getLayoutInfo();this._doLayout(Qe,this._getWidth(q))}(qe=this._resizeSash)===null||qe===void 0||qe.layout()}get position(){const He=this._positionMarkerId.getRange(0);if(He)return He.getStartPosition()}show(He,qe){const Qe=i.Q.isIRange(He)?i.Q.lift(He):i.Q.fromPositions(He);this._isShowing=!0,this._showImpl(Qe,qe),this._isShowing=!1,this._positionMarkerId.set([{range:Qe,options:c.kI.EMPTY}])}hide(){var He;this._viewZone&&(this.editor.changeViewZones(qe=>{this._viewZone&&qe.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(He=this._arrow)===null||He===void 0||He.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){const He=this.editor.getOption(67);let qe=0;if(this.options.showArrow){const Qe=Math.round(He/3);qe+=2*Qe}if(this.options.showFrame){const Qe=Math.round(He/9);qe+=2*Qe}return qe}_showImpl(He,qe){const Qe=He.getStartPosition(),q=this.editor.getLayoutInfo(),ye=this._getWidth(q);this.domNode.style.width=`${ye}px`,this.domNode.style.left=this._getLeft(q)+"px";const ge=document.createElement("div");ge.style.overflow="hidden";const be=this.editor.getOption(67);if(!this.options.allowUnlimitedHeight){const le=Math.max(12,this.editor.getLayoutInfo().height/be*.8);qe=Math.min(qe,le)}let Se=0,ae=0;if(this._arrow&&this.options.showArrow&&(Se=Math.round(be/3),this._arrow.height=Se,this._arrow.show(Qe)),this.options.showFrame&&(ae=Math.round(be/9)),this.editor.changeViewZones(le=>{this._viewZone&&le.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new h(ge,Qe.lineNumber,Qe.column,qe,oe=>this._onViewZoneTop(oe),oe=>this._onViewZoneHeight(oe),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=le.addZone(this._viewZone),this._overlayWidget=new v(C+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){const le=this.options.frameWidth?this.options.frameWidth:ae;this.container.style.borderTopWidth=le+"px",this.container.style.borderBottomWidth=le+"px"}const me=qe*be-this._decoratingElementsHeight();this.container&&(this.container.style.top=Se+"px",this.container.style.height=me+"px",this.container.style.overflow="hidden"),this._doLayout(me,ye),this.options.keepEditorSelection||this.editor.setSelection(He);const fe=this.editor.getModel();if(fe){const le=fe.validateRange(new i.Q(He.startLineNumber,1,He.endLineNumber+1,1));this.revealRange(le,le.startLineNumber===fe.getLineCount())}}revealRange(He,qe){qe?this.editor.revealLineNearTop(He.endLineNumber,0):this.editor.revealRange(He,0)}setCssClass(He,qe){this.container&&(qe&&this.container.classList.remove(qe),this.container.classList.add(He))}_onWidth(He){}_doLayout(He,qe){}_relayout(He){this._viewZone&&this._viewZone.heightInLines!==He&&this.editor.changeViewZones(qe=>{this._viewZone&&(this._viewZone.heightInLines=He,qe.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new a.m(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let He;this._disposables.add(this._resizeSash.onDidStart(qe=>{this._viewZone&&(He={startY:qe.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{He=void 0})),this._disposables.add(this._resizeSash.onDidChange(qe=>{if(He){const Qe=(qe.currentY-He.startY)/this.editor.getOption(67),q=Qe<0?Math.ceil(Qe):Math.floor(Qe),ye=He.heightInLines+q;ye>5&&ye<35&&this._relayout(ye)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){const He=this.editor.getLayoutInfo();return He.width-He.minimap.minimapWidth}}var O=e("./node_modules/monaco-editor/esm/vs/nls.js"),w=e("./node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js"),j=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),U=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),K=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),G=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),P=function(Te,He,qe,Qe){var q=arguments.length,ye=q<3?He:Qe===null?Qe=Object.getOwnPropertyDescriptor(He,qe):Qe,ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ye=Reflect.decorate(Te,He,qe,Qe);else for(var be=Te.length-1;be>=0;be--)(ge=Te[be])&&(ye=(q<3?ge(ye):q>3?ge(He,qe,ye):ge(He,qe))||ye);return q>3&&ye&&Object.defineProperty(He,qe,ye),ye},A=function(Te,He){return function(qe,Qe){He(qe,Qe,Te)}};const T=(0,K.u1)("IPeekViewService");(0,U.v)(T,class{constructor(){this._widgets=new Map}addExclusiveWidget(Te,He){const qe=this._widgets.get(Te);qe&&(qe.listener.dispose(),qe.widget.dispose());const Qe=()=>{const q=this._widgets.get(Te);q&&q.widget===He&&(q.listener.dispose(),this._widgets.delete(Te))};this._widgets.set(Te,{widget:He,listener:He.onDidClose(Qe)})}},1);var E;(function(Te){Te.inPeekEditor=new j.N1("inReferenceSearchEditor",!0,O.kg("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),Te.notInPeekEditor=Te.inPeekEditor.toNegated()})(E||(E={}));let W=class{constructor(He,qe){He instanceof d.t&&E.inPeekEditor.bindTo(qe)}dispose(){}};W.ID="editor.contrib.referenceController",W=P([A(1,j.fN)],W),(0,S.HW)(W.ID,W,0);function $(Te){const He=Te.get(f.T).getFocusedCodeEditor();return He instanceof d.t?He.getParentEditor():He}const z={headerBackgroundColor:g.Q1.white,primaryHeadingColor:g.Q1.fromHex("#333333"),secondaryHeadingColor:g.Q1.fromHex("#6c6c6cb3")};let J=class extends b{constructor(He,qe,Qe){super(He,qe),this.instantiationService=Qe,this._onDidClose=new x.vl,this.onDidClose=this._onDidClose.event,I.co(this.options,z,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(He){const qe=this.options;He.headerBackgroundColor&&(qe.headerBackgroundColor=He.headerBackgroundColor),He.primaryHeadingColor&&(qe.primaryHeadingColor=He.primaryHeadingColor),He.secondaryHeadingColor&&(qe.secondaryHeadingColor=He.secondaryHeadingColor),super.style(He)}_applyStyles(){super._applyStyles();const He=this.options;this._headElement&&He.headerBackgroundColor&&(this._headElement.style.backgroundColor=He.headerBackgroundColor.toString()),this._primaryHeading&&He.primaryHeadingColor&&(this._primaryHeading.style.color=He.primaryHeadingColor.toString()),this._secondaryHeading&&He.secondaryHeadingColor&&(this._secondaryHeading.style.color=He.secondaryHeadingColor.toString()),this._bodyElement&&He.frameColor&&(this._bodyElement.style.borderColor=He.frameColor.toString())}_fillContainer(He){this.setCssClass("peekview-widget"),this._headElement=r.$(".head"),this._bodyElement=r.$(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),He.appendChild(this._headElement),He.appendChild(this._bodyElement)}_fillHead(He,qe){this._titleElement=r.$(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),r.b2(this._titleElement,"click",ye=>this._onTitleClick(ye))),r.BC(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=r.$("span.filename"),this._secondaryHeading=r.$("span.dirname"),this._metaHeading=r.$("span.meta"),r.BC(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);const Qe=r.$(".peekview-actions");r.BC(this._headElement,Qe);const q=this._getActionBarOptions();this._actionbarWidget=new F.E(Qe,q),this._disposables.add(this._actionbarWidget),qe||this._actionbarWidget.push(new k.rc("peekview.close",O.kg("label.close","Close"),L.L.asClassName(M.W.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(He){}_getActionBarOptions(){return{actionViewItemProvider:w.rN.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(He){}setTitle(He,qe){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=He,this._primaryHeading.setAttribute("title",He),qe?this._secondaryHeading.innerText=qe:r.w_(this._secondaryHeading))}setMetaTitle(He){this._metaHeading&&(He?(this._metaHeading.innerText=He,r.WU(this._metaHeading)):r.jD(this._metaHeading))}_doLayout(He,qe){if(!this._isShowing&&He<0){this.dispose();return}const Qe=Math.ceil(this.editor.getOption(67)*1.2),q=Math.round(He-(Qe+2));this._doLayoutHead(Qe,qe),this._doLayoutBody(q,qe)}_doLayoutHead(He,qe){this._headElement&&(this._headElement.style.height=`${He}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(He,qe){this._bodyElement&&(this._bodyElement.style.height=`${He}px`)}};J=P([A(2,K._Y)],J);const B=(0,G.x1A)("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:g.Q1.black,hcLight:g.Q1.white},O.kg("peekViewTitleBackground","Background color of the peek view title area.")),V=(0,G.x1A)("peekViewTitleLabel.foreground",{dark:g.Q1.white,light:g.Q1.black,hcDark:g.Q1.white,hcLight:G.By2},O.kg("peekViewTitleForeground","Color of the peek view title.")),Y=(0,G.x1A)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},O.kg("peekViewTitleInfoForeground","Color of the peek view title info.")),X=(0,G.x1A)("peekView.border",{dark:G.pOz,light:G.pOz,hcDark:G.b1q,hcLight:G.b1q},O.kg("peekViewBorder","Color of the peek view borders and arrow.")),ie=(0,G.x1A)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:g.Q1.black,hcLight:g.Q1.white},O.kg("peekViewResultsBackground","Background color of the peek view result list.")),re=(0,G.x1A)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:g.Q1.white,hcLight:G.By2},O.kg("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),te=(0,G.x1A)("peekViewResult.fileForeground",{dark:g.Q1.white,light:"#1E1E1E",hcDark:g.Q1.white,hcLight:G.By2},O.kg("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),D=(0,G.x1A)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},O.kg("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),he=(0,G.x1A)("peekViewResult.selectionForeground",{dark:g.Q1.white,light:"#6C6C6C",hcDark:g.Q1.white,hcLight:G.By2},O.kg("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),ve=(0,G.x1A)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:g.Q1.black,hcLight:g.Q1.white},O.kg("peekViewEditorBackground","Background color of the peek view editor.")),Ce=(0,G.x1A)("peekViewEditorGutter.background",{dark:ve,light:ve,hcDark:ve,hcLight:ve},O.kg("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Pe=(0,G.x1A)("peekViewEditorStickyScroll.background",{dark:ve,light:ve,hcDark:ve,hcLight:ve},O.kg("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),_e=(0,G.x1A)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},O.kg("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),ee=(0,G.x1A)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},O.kg("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),De=(0,G.x1A)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:G.buw,hcLight:G.buw},O.kg("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},"./node_modules/monaco-editor/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js":function(pt,Me,e){e.d(Me,{o:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/functional.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editorColorRegistry.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),x=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js");class I{constructor(f){this.options=f,this.rangeHighlightDecorationId=void 0}provide(f,d){var a;const s=new F.Cm;f.canAcceptInBackground=!!(!((a=this.options)===null||a===void 0)&&a.canAcceptInBackground),f.matchOnLabel=f.matchOnDescription=f.matchOnDetail=f.sortByLabel=!1;const n=s.add(new F.HE);return n.value=this.doProvide(f,d),s.add(this.onDidActiveTextEditorControlChange(()=>{n.value=void 0,n.value=this.doProvide(f,d)})),s}doProvide(f,d){var a;const s=new F.Cm,n=this.activeTextEditorControl;if(n&&this.canProvideWithTextEditor(n)){const i={editor:n},c=(0,k.jA)(n);if(c){let m=(a=n.saveViewState())!==null&&a!==void 0?a:void 0;s.add(c.onDidChangeCursorPosition(()=>{var u;m=(u=n.saveViewState())!==null&&u!==void 0?u:void 0})),i.restoreViewState=()=>{m&&n===this.activeTextEditorControl&&n.restoreViewState(m)},s.add((0,r.P)(d.onCancellationRequested)(()=>{var u;return(u=i.restoreViewState)===null||u===void 0?void 0:u.call(i)}))}s.add((0,F.s)(()=>this.clearDecorations(n))),s.add(this.provideWithTextEditor(i,f,d))}else s.add(this.provideWithoutTextEditor(f,d));return s}canProvideWithTextEditor(f){return!0}gotoLocation({editor:f},d){f.setSelection(d.range,"code.jump"),f.revealRangeInCenter(d.range,0),d.preserveFocus||f.focus();const a=f.getModel();a&&"getLineContent"in a&&(0,x.h5)(`${a.getLineContent(d.range.startLineNumber)}`)}getModel(f){var d;return(0,k.Np)(f)?(d=f.getModel())===null||d===void 0?void 0:d.modified:f.getModel()}addDecorations(f,d){f.changeDecorations(a=>{const s=[];this.rangeHighlightDecorationId&&(s.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),s.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);const n=[{range:d,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:d,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:(0,g.Yf)(L.vp),position:M.A5.Full}}}],[i,c]=a.deltaDecorations(s,n);this.rangeHighlightDecorationId={rangeHighlightId:i,overviewRulerDecorationId:c}})}clearDecorations(f){const d=this.rangeHighlightDecorationId;d&&(f.changeDecorations(a=>{a.deltaDecorations([d.overviewRulerDecorationId,d.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/readOnlyMessage/browser/contribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/contrib/message/browser/messageController.js"),L=e("./node_modules/monaco-editor/esm/vs/nls.js");class g extends F.jG{constructor(I){super(),this.editor=I,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){const I=M.k.get(this.editor);if(I&&this.editor.hasModel()){let S=this.editor.getOptions().get(92);S||(this.editor.isSimpleWidget?S=new r.Bc(L.kg("editor.simple.readonly","Cannot edit in read-only input")):S=new r.Bc(L.kg("editor.readonly","Cannot edit in read-only editor"))),I.showMessage(S,this.editor.getPosition())}}}g.ID="editor.contrib.readOnlyMessageController",(0,k.HW)(g.ID,g,2)},"./node_modules/monaco-editor/esm/vs/editor/contrib/rename/browser/rename.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/bulkEditService.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/contrib/editorState/browser/editorState.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/contrib/message/browser/messageController.js"),C=e("./node_modules/monaco-editor/esm/vs/nls.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),v=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js"),p=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),O=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),w=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),j=e("./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js"),U=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),K=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),G=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),P=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabels.js"),A=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/list/listWidget.js"),T=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),E=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),W=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),$=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),z=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/domFontInfo.js"),J=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),B=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),V=e("./node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js"),Y=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),X=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),ie=function(ge,be,Se,ae){var me=arguments.length,fe=me<3?be:ae===null?ae=Object.getOwnPropertyDescriptor(be,Se):ae,le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")fe=Reflect.decorate(ge,be,Se,ae);else for(var oe=ge.length-1;oe>=0;oe--)(le=ge[oe])&&(fe=(me<3?le(fe):me>3?le(be,Se,fe):le(be,Se))||fe);return me>3&&fe&&Object.defineProperty(be,Se,fe),fe},re=function(ge,be){return function(Se,ae){be(Se,ae,ge)}};const te=!1,D=new p.N1("renameInputVisible",!1,(0,C.kg)("renameInputVisible","Whether the rename input widget is visible")),he=new p.N1("renameInputFocused",!1,(0,C.kg)("renameInputFocused","Whether the rename input widget is focused"));let ve=class{constructor(be,Se,ae,me,fe,le){this._editor=be,this._acceptKeybindings=Se,this._themeService=ae,this._keybindingService=me,this._logService=le,this.allowEditorOverflow=!0,this._disposables=new g.Cm,this._visibleContextKey=D.bindTo(fe),this._isEditingRenameCandidate=!1,this._beforeFirstInputFieldEditSW=new $.W,this._input=new Pe,this._disposables.add(this._input),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(oe=>{oe.hasChanged(50)&&this._updateFont()})),this._disposables.add(ae.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._domNode.appendChild(this._input.domNode),this._renameCandidateListView=this._disposables.add(new Ce(this._domNode,{fontInfo:this._editor.getOption(50),onFocusChange:be=>{this._input.domNode.value=be,this._isEditingRenameCandidate=!1},onSelectionChange:()=>{this._isEditingRenameCandidate=!1,this.acceptInput(!1)}})),this._disposables.add(this._input.onDidChange(()=>{var be,Se,ae,me;((be=this._renameCandidateListView)===null||be===void 0?void 0:be.focusedCandidate)!==void 0&&(this._isEditingRenameCandidate=!0),(Se=this._timeBeforeFirstInputFieldEdit)!==null&&Se!==void 0||(this._timeBeforeFirstInputFieldEdit=this._beforeFirstInputFieldEditSW.elapsed()),((ae=this._renameCandidateProvidersCts)===null||ae===void 0?void 0:ae.token.isCancellationRequested)===!1&&this._renameCandidateProvidersCts.cancel(),(me=this._renameCandidateListView)===null||me===void 0||me.clearFocus()})),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(be){var Se,ae,me,fe;if(!this._domNode)return;const le=be.getColor(Y.f9l),oe=be.getColor(Y.DSL);this._domNode.style.backgroundColor=String((Se=be.getColor(Y.CgL))!==null&&Se!==void 0?Se:""),this._domNode.style.boxShadow=le?` 0 0 8px 2px ${le}`:"",this._domNode.style.border=oe?`1px solid ${oe}`:"",this._domNode.style.color=String((ae=be.getColor(Y.cws))!==null&&ae!==void 0?ae:""),this._input.domNode.style.backgroundColor=String((me=be.getColor(Y.L4c))!==null&&me!==void 0?me:"");const ne=be.getColor(Y.Zgs);this._input.domNode.style.borderWidth=ne?"1px":"0px",this._input.domNode.style.borderStyle=ne?"solid":"none",this._input.domNode.style.borderColor=(fe=ne?.toString())!==null&&fe!==void 0?fe:"none"}_updateFont(){if(this._domNode===void 0)return;(0,x.j)(this._label!==void 0,"RenameWidget#_updateFont: _label must not be undefined given _domNode is defined"),this._editor.applyFontInfo(this._input.domNode);const be=this._editor.getOption(50);this._label.style.fontSize=`${this._computeLabelFontSize(be.fontSize)}px`}_computeLabelFontSize(be){return be*.8}getPosition(){if(!this._visible||!this._editor.hasModel()||!this._editor.getDomNode())return null;const be=G.tG(this.getDomNode().ownerDocument.body),Se=G.BK(this._editor.getDomNode()),ae=this._getTopForPosition();this._nPxAvailableAbove=ae+Se.top,this._nPxAvailableBelow=be.height-this._nPxAvailableAbove;const me=this._editor.getOption(67),{totalHeight:fe}=_e.getLayoutInfo({lineHeight:me}),le=this._nPxAvailableBelow>fe*6?[2,1]:[1,2];return{position:this._position,preference:le}}beforeRender(){var be,Se;const[ae,me]=this._acceptKeybindings;return this._label.innerText=(0,C.kg)({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",(be=this._keybindingService.lookupKeybinding(ae))===null||be===void 0?void 0:be.getLabel(),(Se=this._keybindingService.lookupKeybinding(me))===null||Se===void 0?void 0:Se.getLabel()),this._domNode.style.minWidth="200px",null}afterRender(be){if(this._trace("invoking afterRender, position: ",be?"not null":"null"),be===null){this.cancelInput(!0,"afterRender (because position is null)");return}if(!this._editor.hasModel()||!this._editor.getDomNode())return;(0,x.j)(this._renameCandidateListView),(0,x.j)(this._nPxAvailableAbove!==void 0),(0,x.j)(this._nPxAvailableBelow!==void 0);const Se=G.OK(this._input.domNode),ae=G.OK(this._label);let me;be===2?me=this._nPxAvailableBelow:me=this._nPxAvailableAbove,this._renameCandidateListView.layout({height:me-ae-Se,width:G.Tr(this._input.domNode)})}acceptInput(be){var Se;this._trace("invoking acceptInput"),(Se=this._currentAcceptInput)===null||Se===void 0||Se.call(this,be)}cancelInput(be,Se){var ae;this._trace(`invoking cancelInput, caller: ${Se}, _currentCancelInput: ${this._currentAcceptInput?"not undefined":"undefined"}`),(ae=this._currentCancelInput)===null||ae===void 0||ae.call(this,be)}focusNextRenameSuggestion(){var be;!((be=this._renameCandidateListView)===null||be===void 0)&&be.focusNext()||(this._input.domNode.value=this._currentName)}focusPreviousRenameSuggestion(){var be;!((be=this._renameCandidateListView)===null||be===void 0)&&be.focusPrevious()||(this._input.domNode.value=this._currentName)}getInput(be,Se,ae,me,fe){const{start:le,end:oe}=this._getSelection(be,Se);this._renameCandidateProvidersCts=new k.Q;const ne=me(this._renameCandidateProvidersCts.token);this._updateRenameCandidates(ne,Se,fe.token),this._isEditingRenameCandidate=!1,this._domNode.classList.toggle("preview",ae),this._position=new a.y(be.startLineNumber,be.startColumn),this._currentName=Se,this._input.domNode.value=Se,this._input.domNode.setAttribute("selectionStart",le.toString()),this._input.domNode.setAttribute("selectionEnd",oe.toString()),this._input.domNode.size=Math.max((be.endColumn-be.startColumn)*1.1,20),this._beforeFirstInputFieldEditSW.reset();const de=new g.Cm;de.add((0,g.s)(()=>fe.dispose(!0))),de.add((0,g.s)(()=>{this._renameCandidateProvidersCts!==void 0&&(this._renameCandidateProvidersCts.dispose(!0),this._renameCandidateProvidersCts=void 0)}));const Le=new F.Zv;return Le.p.finally(()=>{de.dispose(),this._hide()}),this._currentCancelInput=We=>{var we;return this._trace("invoking _currentCancelInput"),this._currentAcceptInput=void 0,this._currentCancelInput=void 0,(we=this._renameCandidateListView)===null||we===void 0||we.clearCandidates(),Le.complete(We),!0},this._currentAcceptInput=We=>{this._trace("invoking _currentAcceptInput"),(0,x.j)(this._renameCandidateListView!==void 0);const we=this._renameCandidateListView.nCandidates;let Ue,lt;const Et=this._renameCandidateListView.focusedCandidate;if(Et!==void 0?(this._trace("using new name from renameSuggestion"),Ue=Et,lt={k:"renameSuggestion"}):(this._trace("using new name from inputField"),Ue=this._input.domNode.value,lt=this._isEditingRenameCandidate?{k:"userEditedRenameSuggestion"}:{k:"inputField"}),Ue===Se||Ue.trim().length===0){this.cancelInput(!0,"_currentAcceptInput (because newName === value || newName.trim().length === 0)");return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,this._renameCandidateListView.clearCandidates(),Le.complete({newName:Ue,wantsPreview:ae&&We,stats:{source:lt,nRenameSuggestions:we,timeBeforeFirstInputFieldEdit:this._timeBeforeFirstInputFieldEdit}})},de.add(fe.token.onCancellationRequested(()=>this.cancelInput(!0,"cts.token.onCancellationRequested"))),te||de.add(this._editor.onDidBlurEditorWidget(()=>{var We;return this.cancelInput(!(!((We=this._domNode)===null||We===void 0)&&We.ownerDocument.hasFocus()),"editor.onDidBlurEditorWidget")})),this._show(),Le.p}_getSelection(be,Se){(0,x.j)(this._editor.hasModel());const ae=this._editor.getSelection();let me=0,fe=Se.length;return!s.Q.isEmpty(ae)&&!s.Q.spansMultipleLines(ae)&&s.Q.containsRange(be,ae)&&(me=Math.max(0,ae.startColumn-be.startColumn),fe=Math.min(be.endColumn,ae.endColumn)-be.startColumn),{start:me,end:fe}}_show(){this._trace("invoking _show"),this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.domNode.focus(),this._input.domNode.setSelectionRange(parseInt(this._input.domNode.getAttribute("selectionStart")),parseInt(this._input.domNode.getAttribute("selectionEnd")))},100)}async _updateRenameCandidates(be,Se,ae){const me=(...de)=>this._trace("_updateRenameCandidates",...de);me("start");const fe=await(0,F.PK)(Promise.allSettled(be),ae);if(fe===void 0){me("returning early - received updateRenameCandidates results - undefined");return}const le=fe.flatMap(de=>de.status==="fulfilled"&&(0,x.O9)(de.value)?de.value:[]);me(`received updateRenameCandidates results - total (unfiltered) ${le.length} candidates.`);const oe=T.dM(le,de=>de.newSymbolName);me(`distinct candidates - ${oe.length} candidates.`);const ne=oe.filter(({newSymbolName:de})=>de.trim().length>0&&de!==this._input.domNode.value&&de!==Se);if(me(`valid distinct candidates - ${le.length} candidates.`),ne.length<1){me("returning early - no valid distinct candidates");return}me("setting candidates"),this._renameCandidateListView.setCandidates(ne),me("asking editor to re-layout"),this._editor.layoutContentWidget(this)}_hide(){this._trace("invoked _hide"),this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}_getTopForPosition(){const be=this._editor.getVisibleRanges();let Se;return be.length>0?Se=be[0].startLineNumber:(this._logService.warn("RenameWidget#_getTopForPosition: this should not happen - visibleRanges is empty"),Se=Math.max(1,this._position.lineNumber-5)),this._editor.getTopForLineNumber(this._position.lineNumber)-this._editor.getTopForLineNumber(Se)}_trace(...be){this._logService.trace("RenameWidget",...be)}};ve=ie([re(2,X.Gy),re(3,B.b),re(4,p.fN),re(5,O.rr)],ve);class Ce{constructor(be,Se){this._disposables=new g.Cm,this._availableHeight=0,this._minimumWidth=0,this._lineHeight=Se.fontInfo.lineHeight,this._typicalHalfwidthCharacterWidth=Se.fontInfo.typicalHalfwidthCharacterWidth,this._listContainer=document.createElement("div"),be.appendChild(this._listContainer),this._listWidget=Ce._createListWidget(this._listContainer,this._candidateViewHeight,Se.fontInfo),this._listWidget.onDidChangeFocus(ae=>{ae.elements.length===1&&Se.onFocusChange(ae.elements[0].newSymbolName)},this._disposables),this._listWidget.onDidChangeSelection(ae=>{ae.elements.length===1&&Se.onSelectionChange()},this._disposables),this._disposables.add(this._listWidget.onDidBlur(ae=>{this._listWidget.setFocus([])})),this._listWidget.style((0,V.t8)({listInactiveFocusForeground:Y.nH,listInactiveFocusBackground:Y.AlL}))}dispose(){this._listWidget.dispose(),this._disposables.dispose()}layout({height:be,width:Se}){this._availableHeight=be,this._minimumWidth=Se}setCandidates(be){this._listWidget.splice(0,0,be);const Se=this._pickListHeight(be.length),ae=this._pickListWidth(be);this._listWidget.layout(Se,ae),this._listContainer.style.height=`${Se}px`,this._listContainer.style.width=`${ae}px`,r.h5((0,C.kg)("renameSuggestionsReceivedAria","Received {0} rename suggestions",be.length))}clearCandidates(){this._listContainer.style.height="0px",this._listContainer.style.width="0px",this._listWidget.splice(0,this._listWidget.length,[])}get nCandidates(){return this._listWidget.length}get focusedCandidate(){if(this._listWidget.length===0)return;const be=this._listWidget.getSelectedElements()[0];if(be!==void 0)return be.newSymbolName;const Se=this._listWidget.getFocusedElements()[0];if(Se!==void 0)return Se.newSymbolName}focusNext(){if(this._listWidget.length===0)return!1;const be=this._listWidget.getFocus();return be.length===0?(this._listWidget.focusFirst(),!0):be[0]===this._listWidget.length-1?(this._listWidget.setFocus([]),!1):(this._listWidget.focusNext(),!0)}focusPrevious(){if(this._listWidget.length===0)return!1;const be=this._listWidget.getFocus();return be.length===0?(this._listWidget.focusLast(),!0):be[0]===0?(this._listWidget.setFocus([]),!1):(this._listWidget.focusPrevious(),!0)}clearFocus(){this._listWidget.setFocus([])}get _candidateViewHeight(){const{totalHeight:be}=_e.getLayoutInfo({lineHeight:this._lineHeight});return be}_pickListHeight(be){const Se=this._candidateViewHeight*be;return Math.min(Se,this._availableHeight,this._candidateViewHeight*7)}_pickListWidth(be){const Se=Math.ceil(Math.max(...be.map(me=>me.newSymbolName.length))*this._typicalHalfwidthCharacterWidth);return Math.max(this._minimumWidth,25+Se+10)}static _createListWidget(be,Se,ae){const me=new class{getTemplateId(le){return"candidate"}getHeight(le){return Se}},fe=new class{constructor(){this.templateId="candidate"}renderTemplate(le){return new _e(le,ae)}renderElement(le,oe,ne){ne.populate(le)}disposeTemplate(le){le.dispose()}};return new A.B8("NewSymbolNameCandidates",be,me,[fe],{keyboardSupport:!1,mouseSupport:!0,multipleSelectionSupport:!1})}}class Pe{constructor(){this._onDidChange=new W.vl,this.onDidChange=this._onDidChange.event,this._disposables=new g.Cm}get domNode(){return this._domNode||(this._domNode=document.createElement("input"),this._domNode.className="rename-input",this._domNode.type="text",this._domNode.setAttribute("aria-label",(0,C.kg)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._disposables.add(G.ko(this._domNode,"input",()=>this._onDidChange.fire()))),this._domNode}dispose(){this._onDidChange.dispose(),this._disposables.dispose()}}class _e{constructor(be,Se){this._domNode=document.createElement("div"),this._domNode.style.display="flex",this._domNode.style.columnGap="5px",this._domNode.style.alignItems="center",this._domNode.style.height=`${Se.lineHeight}px`,this._domNode.style.padding=`${_e._PADDING}px`;const ae=document.createElement("div");ae.style.display="flex",ae.style.alignItems="center",ae.style.width=ae.style.height=`${Se.lineHeight*.8}px`,this._domNode.appendChild(ae),this._icon=(0,P.s)(E.W.sparkle),this._icon.style.display="none",ae.appendChild(this._icon),this._label=document.createElement("div"),(0,z.M)(this._label,Se),this._domNode.appendChild(this._label),be.appendChild(this._domNode)}populate(be){this._updateIcon(be),this._updateLabel(be)}_updateIcon(be){var Se;const ae=!!(!((Se=be.tags)===null||Se===void 0)&&Se.includes(J.OV.AIGenerated));this._icon.style.display=ae?"inherit":"none"}_updateLabel(be){this._label.innerText=be.newSymbolName}static getLayoutInfo({lineHeight:be}){return{totalHeight:be+_e._PADDING*2}}dispose(){}}_e._PADDING=2;var ee=function(ge,be,Se,ae){var me=arguments.length,fe=me<3?be:ae===null?ae=Object.getOwnPropertyDescriptor(be,Se):ae,le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")fe=Reflect.decorate(ge,be,Se,ae);else for(var oe=ge.length-1;oe>=0;oe--)(le=ge[oe])&&(fe=(me<3?le(fe):me>3?le(be,Se,fe):le(be,Se))||fe);return me>3&&fe&&Object.defineProperty(be,Se,fe),fe},De=function(ge,be){return function(Se,ae){be(Se,ae,ge)}},Te;class He{constructor(be,Se,ae){this.model=be,this.position=Se,this._providerRenameIdx=0,this._providers=ae.ordered(be)}hasProvider(){return this._providers.length>0}async resolveRenameLocation(be){const Se=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?Se.join(` `):void 0}:{range:s.Q.fromPositions(this.position),text:"",rejectReason:Se.length>0?Se.join(` `):void 0}}async provideRenameEdits(be,Se){return this._provideRenameEdits(be,this._providerRenameIdx,[],Se)}async _provideRenameEdits(be,Se,ae,me){const fe=this._providers[Se];if(!fe)return{edits:[],rejectReason:ae.join(` `)};const le=await fe.provideRenameEdits(this.model,this.position,be,me);if(le){if(le.rejectReason)return this._provideRenameEdits(be,Se+1,ae.concat(le.rejectReason),me)}else return this._provideRenameEdits(be,Se+1,ae.concat(C.kg("no result","No result.")),me);return le}}async function qe(ge,be,Se,ae){const me=new He(be,Se,ge),fe=await me.resolveRenameLocation(k.X.None);return fe?.rejectReason?{edits:[],rejectReason:fe.rejectReason}:me.provideRenameEdits(ae,k.X.None)}let Qe=Te=class{static get(be){return be.getContribution(Te.ID)}constructor(be,Se,ae,me,fe,le,oe,ne,de){this.editor=be,this._instaService=Se,this._notificationService=ae,this._bulkEditService=me,this._progressService=fe,this._logService=le,this._configService=oe,this._languageFeaturesService=ne,this._telemetryService=de,this._disposableStore=new g.Cm,this._cts=new k.Q,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(ve,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){var be,Se;const ae=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new k.Q,!this.editor.hasModel()){ae("editor has no model");return}const me=this.editor.getPosition(),fe=new He(this.editor.getModel(),me,this._languageFeaturesService.renameProvider);if(!fe.hasProvider()){ae("skeleton has no provider");return}const le=new m.gI(this.editor,5,void 0,this._cts.token);let oe;try{ae("resolving rename location");const Et=fe.resolveRenameLocation(le.token);this._progressService.showWhile(Et,250),oe=await Et,ae("resolved rename location")}catch(Et){Et instanceof M.AL?ae("resolve rename location cancelled",JSON.stringify(Et,null," ")):(ae("resolve rename location failed",Et instanceof Error?Et:JSON.stringify(Et,null," ")),(typeof Et=="string"||(0,L.VS)(Et))&&((be=u.k.get(this.editor))===null||be===void 0||be.showMessage(Et||C.kg("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),me)));return}finally{le.dispose()}if(!oe){ae("returning early - no loc");return}if(oe.rejectReason){ae(`returning early - rejected with reason: ${oe.rejectReason}`,oe.rejectReason),(Se=u.k.get(this.editor))===null||Se===void 0||Se.showMessage(oe.rejectReason,me);return}if(le.token.isCancellationRequested){ae("returning early - cts1 cancelled");return}const ne=new m.gI(this.editor,5,oe.range,this._cts.token),de=this.editor.getModel(),Le=this._languageFeaturesService.newSymbolNamesProvider.all(de),We=Et=>Le.map(Kt=>Kt.provideNewSymbolNames(de,oe.range,Et));ae("creating rename input field and awaiting its result");const we=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),Ue=await this._renameWidget.getInput(oe.range,oe.text,we,We,ne);if(ae("received response from rename input field"),Le.length>0&&this._reportTelemetry(Le.length,de.getLanguageId(),Ue),typeof Ue=="boolean"){ae(`returning early - rename input field response - ${Ue}`),Ue&&this.editor.focus(),ne.dispose();return}this.editor.focus(),ae("requesting rename edits");const lt=(0,F.PK)(fe.provideRenameEdits(Ue.newName,ne.token),ne.token).then(async Et=>{if(!Et){ae("returning early - no rename edits result");return}if(!this.editor.hasModel()){ae("returning early - no model after rename edits are provided");return}if(Et.rejectReason){ae(`returning early - rejected with reason: ${Et.rejectReason}`),this._notificationService.info(Et.rejectReason);return}this.editor.setSelection(s.Q.fromPositions(this.editor.getSelection().getPosition())),ae("applying edits"),this._bulkEditService.apply(Et,{editor:this.editor,showPreview:Ue.wantsPreview,label:C.kg("label","Renaming '{0}' to '{1}'",oe?.text,Ue.newName),code:"undoredo.rename",quotableLabel:C.kg("quotableLabel","Renaming {0} to {1}",oe?.text,Ue.newName),respectAutoSaveConfig:!0}).then(Kt=>{ae("edits applied"),Kt.ariaSummary&&(0,r.xE)(C.kg("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",oe.text,Ue.newName,Kt.ariaSummary))}).catch(Kt=>{ae(`error when applying edits ${JSON.stringify(Kt,null," ")}`),this._notificationService.error(C.kg("rename.failedApply","Rename failed to apply edits")),this._logService.error(Kt)})},Et=>{ae("error when providing rename edits",JSON.stringify(Et,null," ")),this._notificationService.error(C.kg("rename.failed","Rename failed to compute edits")),this._logService.error(Et)}).finally(()=>{ne.dispose()});return ae("returning rename operation"),this._progressService.showWhile(lt,250),lt}acceptRenameInput(be){this._renameWidget.acceptInput(be)}cancelRenameInput(){this._renameWidget.cancelInput(!0,"cancelRenameInput command")}focusNextRenameSuggestion(){this._renameWidget.focusNextRenameSuggestion()}focusPreviousRenameSuggestion(){this._renameWidget.focusPreviousRenameSuggestion()}_reportTelemetry(be,Se,ae){const me=typeof ae=="boolean"?{kind:"cancelled",languageId:Se,nRenameSuggestionProviders:be}:{kind:"accepted",languageId:Se,nRenameSuggestionProviders:be,source:ae.stats.source.k,nRenameSuggestions:ae.stats.nRenameSuggestions,timeBeforeFirstInputFieldEdit:ae.stats.timeBeforeFirstInputFieldEdit,wantsPreview:ae.wantsPreview};this._telemetryService.publicLog2("renameInvokedEvent",me)}};Qe.ID="editor.contrib.renameController",Qe=Te=ee([De(1,b._Y),De(2,w.Ot),De(3,f.nu),De(4,j.N8),De(5,O.rr),De(6,c.U),De(7,i.u),De(8,K.k)],Qe);class q extends S.ks{constructor(){super({id:"editor.action.rename",label:C.kg("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:p.M$.and(n.R.writable,n.R.hasRenameProvider),kbOpts:{kbExpr:n.R.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(be,Se){const ae=be.get(d.T),[me,fe]=Array.isArray(Se)&&Se||[void 0,void 0];return I.r.isUri(me)&&a.y.isIPosition(fe)?ae.openCodeEditor({resource:me},ae.getActiveCodeEditor()).then(le=>{le&&(le.setPosition(fe),le.invokeWithinContext(oe=>(this.reportTelemetry(oe,le),this.run(oe,le))))},M.dz):super.runCommand(be,Se)}run(be,Se){const ae=be.get(O.rr),me=Qe.get(Se);return me?(ae.trace("[RenameAction] got controller, running..."),me.run()):(ae.trace("[RenameAction] returning early - controller missing"),Promise.resolve())}}(0,S.HW)(Qe.ID,Qe,4),(0,S.Fl)(q);const ye=S.DX.bindToContribution(Qe.get);(0,S.E_)(new ye({id:"acceptRenameInput",precondition:D,handler:ge=>ge.acceptRenameInput(!1),kbOpts:{weight:199,kbExpr:p.M$.and(n.R.focus,p.M$.not("isComposing")),primary:3}})),(0,S.E_)(new ye({id:"acceptRenameInputWithPreview",precondition:p.M$.and(D,p.M$.has("config.editor.rename.enablePreview")),handler:ge=>ge.acceptRenameInput(!0),kbOpts:{weight:199,kbExpr:p.M$.and(n.R.focus,p.M$.not("isComposing")),primary:2051}})),(0,S.E_)(new ye({id:"cancelRenameInput",precondition:D,handler:ge=>ge.cancelRenameInput(),kbOpts:{weight:199,kbExpr:n.R.focus,primary:9,secondary:[1033]}})),(0,h.ug)(class extends h.L{constructor(){super({id:"focusNextRenameSuggestion",title:{...C.aS("focusNextRenameSuggestion","Focus Next Rename Suggestion")},precondition:D,keybinding:[{primary:2,secondary:[18],weight:199}]})}run(be){const Se=be.get(d.T).getFocusedCodeEditor();if(!Se)return;const ae=Qe.get(Se);ae&&ae.focusNextRenameSuggestion()}}),(0,h.ug)(class extends h.L{constructor(){super({id:"focusPreviousRenameSuggestion",title:{...C.aS("focusPreviousRenameSuggestion","Focus Previous Rename Suggestion")},precondition:D,keybinding:[{primary:1026,secondary:[16],weight:199}]})}run(be){const Se=be.get(d.T).getFocusedCodeEditor();if(!Se)return;const ae=Qe.get(Se);ae&&ae.focusPreviousRenameSuggestion()}}),(0,S.ke)("_executeDocumentRenameProvider",function(ge,be,Se,...ae){const[me]=ae;(0,x.j)(typeof me=="string");const{renameProvider:fe}=ge.get(i.u);return qe(fe,be,Se,me)}),(0,S.ke)("_executePrepareRename",async function(ge,be,Se){const{renameProvider:ae}=ge.get(i.u),fe=await new He(be,Se,ae).resolveRenameLocation(k.X.None);if(fe?.rejectReason)throw new Error(fe.rejectReason);return fe}),U.O.as(v.Fd.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:C.kg("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},"./node_modules/monaco-editor/esm/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/services/editorWorker.js"),x=function(d,a,s,n){var i=arguments.length,c=i<3?a:n===null?n=Object.getOwnPropertyDescriptor(a,s):n,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(d,a,s,n);else for(var u=d.length-1;u>=0;u--)(m=d[u])&&(c=(i<3?m(c):i>3?m(a,s,c):m(a,s))||c);return i>3&&c&&Object.defineProperty(a,s,c),c},I=function(d,a){return function(s,n){a(s,n,d)}};let S=class extends F.jG{constructor(a,s,n){super(),this.editor=a,this.languageConfigurationService=s,this.editorWorkerService=n,this.decorations=this.editor.createDecorationsCollection(),this.options=this.createOptions(a.getOption(73)),this.computePromise=null,this.currentOccurrences={},this._register(a.onDidChangeModel(i=>{this.currentOccurrences={},this.options=this.createOptions(a.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(a.onDidChangeModelLanguage(i=>{this.currentOccurrences={},this.options=this.createOptions(a.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0)})),this._register(s.onDidChange(i=>{var c;const m=(c=this.editor.getModel())===null||c===void 0?void 0:c.getLanguageId();m&&i.affects(m)&&(this.currentOccurrences={},this.options=this.createOptions(a.getOption(73)),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(a.onDidChangeConfiguration(i=>{this.options&&!i.hasChanged(73)||(this.options=this.createOptions(a.getOption(73)),this.updateDecorations([]),this.stop(),this.computeSectionHeaders.schedule(0))})),this._register(this.editor.onDidChangeModelContent(i=>{this.computeSectionHeaders.schedule()})),this.computeSectionHeaders=this._register(new r.uC(()=>{this.findSectionHeaders()},250)),this.computeSectionHeaders.schedule(0)}createOptions(a){if(!a||!this.editor.hasModel())return;const s=this.editor.getModel().getLanguageId();if(!s)return;const n=this.languageConfigurationService.getLanguageConfiguration(s).comments,i=this.languageConfigurationService.getLanguageConfiguration(s).foldingRules;if(!(!n&&!i?.markers))return{foldingRules:i,findMarkSectionHeaders:a.showMarkSectionHeaders,findRegionSectionHeaders:a.showRegionSectionHeaders}}findSectionHeaders(){var a,s;if(!this.editor.hasModel()||!(!((a=this.options)===null||a===void 0)&&a.findMarkSectionHeaders)&&!(!((s=this.options)===null||s===void 0)&&s.findRegionSectionHeaders))return;const n=this.editor.getModel();if(n.isDisposed()||n.isTooLargeForSyncing())return;const i=n.getVersionId();this.editorWorkerService.findSectionHeaders(n.uri,this.options).then(c=>{n.isDisposed()||n.getVersionId()!==i||this.updateDecorations(c)})}updateDecorations(a){const s=this.editor.getModel();s&&(a=a.filter(c=>{if(!c.shouldBeInComments)return!0;const m=s.validateRange(c.range),u=s.tokenization.getLineTokens(m.startLineNumber),C=u.findTokenIndexAtOffset(m.startColumn-1),h=u.getStandardTokenType(C);return u.getLanguageId(C)===s.getLanguageId()&&h===1}));const n=Object.values(this.currentOccurrences).map(c=>c.decorationId),i=a.map(c=>f(c));this.editor.changeDecorations(c=>{const m=c.deltaDecorations(n,i);this.currentOccurrences={};for(let u=0,C=m.length;u=0;G--)(K=p[G])&&(U=(j<3?K(U):j>3?K(b,O,U):K(b,O))||U);return j>3&&U&&Object.defineProperty(b,O,U),U},m=function(p,b){return function(O,w){b(O,w,p)}},u;let C=class extends r.jG{constructor(b,O,w,j,U,K){super(),this._watchers=Object.create(null);const G=T=>{this._watchers[T.uri.toString()]=new h(T,b,w,U,K)},P=(T,E)=>{E.dispose(),delete this._watchers[T.uri.toString()]},A=()=>{for(const T of O.getModels()){const E=this._watchers[T.uri.toString()];(0,i.K)(T,w,j)?E||G(T):E&&P(T,E)}};O.getModels().forEach(T=>{(0,i.K)(T,w,j)&&G(T)}),this._register(O.onModelAdded(T=>{(0,i.K)(T,w,j)&&G(T)})),this._register(O.onModelRemoved(T=>{const E=this._watchers[T.uri.toString()];E&&P(T,E)})),this._register(j.onDidChangeConfiguration(T=>{T.affectsConfiguration(i.r)&&A()})),this._register(w.onDidColorThemeChange(A))}dispose(){for(const b of Object.values(this._watchers))b.dispose();super.dispose()}};C=c([m(0,s.F),m(1,k.S),m(2,x.Gy),m(3,M.pG),m(4,f.U),m(5,a.u)],C);let h=u=class extends r.jG{constructor(b,O,w,j,U){super(),this._semanticTokensStylingService=O,this._isDisposed=!1,this._model=b,this._provider=U.documentSemanticTokensProvider,this._debounceInformation=j.for(this._provider,"DocumentSemanticTokens",{min:u.REQUEST_MIN_DELAY,max:u.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new L.uC(()=>this._fetchDocumentSemanticTokensNow(),u.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeAttached(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));const K=()=>{(0,r.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(const G of this._provider.all(b))typeof G.onDidChange=="function"&&this._documentProvidersChangeListeners.push(G.onDidChange(()=>{if(this._currentDocumentRequestCancellationTokenSource){this._providersChangedDuringRequest=!0;return}this._fetchDocumentSemanticTokens.schedule(0)}))};K(),this._register(this._provider.onDidChange(()=>{K(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(w.onDidColorThemeChange(G=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),(0,r.AS)(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!(0,S.br)(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;const b=new g.Q,O=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,w=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,j=(0,S.aw)(this._provider,this._model,O,w,b.token);this._currentDocumentRequestCancellationTokenSource=b,this._providersChangedDuringRequest=!1;const U=[],K=this._model.onDidChangeContent(P=>{U.push(P)}),G=new d.W(!1);j.then(P=>{if(this._debounceInformation.update(this._model,G.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,K.dispose(),!P)this._setDocumentSemanticTokens(null,null,null,U);else{const{provider:A,tokens:T}=P,E=this._semanticTokensStylingService.getStyling(A);this._setDocumentSemanticTokens(A,T||null,E,U)}},P=>{P&&(F.MB(P)||typeof P.message=="string"&&P.message.indexOf("busy")!==-1)||F.dz(P),this._currentDocumentRequestCancellationTokenSource=null,K.dispose(),(U.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(b,O,w,j,U){U=Math.min(U,w.length-j,b.length-O);for(let K=0;K{(j.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){b&&O&&b.releaseDocumentSemanticTokens(O.resultId);return}if(!b||!w){this._model.tokenization.setSemanticTokens(null,!1);return}if(!O){this._model.tokenization.setSemanticTokens(null,!0),K();return}if((0,S.yS)(O)){if(!U){this._model.tokenization.setSemanticTokens(null,!0);return}if(O.edits.length===0)O={resultId:O.resultId,data:U.data};else{let G=0;for(const W of O.edits)G+=(W.data?W.data.length:0)-W.deleteCount;const P=U.data,A=new Uint32Array(P.length+G);let T=P.length,E=A.length;for(let W=O.edits.length-1;W>=0;W--){const $=O.edits[W];if($.start>P.length){w.warnInvalidEditStart(U.resultId,O.resultId,W,$.start,P.length),this._model.tokenization.setSemanticTokens(null,!0);return}const z=T-($.start+$.deleteCount);z>0&&(u._copy(P,T-z,A,E-z,z),E-=z),$.data&&(u._copy($.data,0,A,E-$.data.length,$.data.length),E-=$.data.length),T=$.start}T>0&&u._copy(P,0,A,0,T),O={resultId:O.resultId,data:A}}}if((0,S.BB)(O)){this._currentDocumentResponse=new v(b,O.resultId,O.data);const G=(0,I.b)(O,w,this._model.getLanguageId());if(j.length>0)for(const P of j)for(const A of G)for(const T of P.changes)A.applyEdit(T.range,T.text);this._model.tokenization.setSemanticTokens(G,!0)}else this._model.tokenization.setSemanticTokens(null,!0);K()}};h.REQUEST_MIN_DELAY=300,h.REQUEST_MAX_DELAY=2e3,h=u=c([m(1,s.F),m(2,x.Gy),m(3,f.U),m(4,a.u)],h);class v{constructor(b,O,w){this.provider=b,this.resultId=O,this.data=w}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}}(0,n.x)(C)},"./node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/browser/viewportSemanticTokens.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/common/getSemanticTokens.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/common/semanticTokensConfig.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensProviderStyling.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/services/semanticTokensStyling.js"),s=function(c,m,u,C){var h=arguments.length,v=h<3?m:C===null?C=Object.getOwnPropertyDescriptor(m,u):C,p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(c,m,u,C);else for(var b=c.length-1;b>=0;b--)(p=c[b])&&(v=(h<3?p(v):h>3?p(m,u,v):p(m,u))||v);return h>3&&v&&Object.defineProperty(m,u,v),v},n=function(c,m){return function(u,C){m(u,C,c)}};let i=class extends F.jG{constructor(m,u,C,h,v,p){super(),this._semanticTokensStylingService=u,this._themeService=C,this._configurationService=h,this._editor=m,this._provider=p.documentRangeSemanticTokensProvider,this._debounceInformation=v.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new r.uC(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];const b=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{b()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),b()})),this._register(this._editor.onDidChangeModelContent(O=>{this._cancelAll(),b()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),b()})),this._register(this._configurationService.onDidChangeConfiguration(O=>{O.affectsConfiguration(L.r)&&(this._cancelAll(),b())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),b()})),b()}_cancelAll(){for(const m of this._outstandingRequests)m.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(m){for(let u=0,C=this._outstandingRequests.length;uthis._requestRange(m,C)))}_requestRange(m,u){const C=m.getVersionId(),h=(0,r.SS)(p=>Promise.resolve((0,M.nZ)(this._provider,m,u,p))),v=new f.W(!1);return h.then(p=>{if(this._debounceInformation.update(m,v.elapsed()),!p||!p.tokens||m.isDisposed()||m.getVersionId()!==C)return;const{provider:b,tokens:O}=p,w=this._semanticTokensStylingService.getStyling(b);m.tokenization.setPartialSemanticTokens(u,(0,g.b)(O,w,m.getLanguageId()))}).then(()=>this._removeOutstandingRequest(h),()=>this._removeOutstandingRequest(h)),h}};i.ID="editor.contrib.viewportSemanticTokens",i=s([n(1,a.F),n(2,I.Gy),n(3,x.pG),n(4,S.U),n(5,d.u)],i),(0,k.HW)(i.ID,i,1)},"./node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/common/getSemanticTokens.js":function(pt,Me,e){e.d(Me,{nZ:function(){return w},aw:function(){return h},WG:function(){return b},br:function(){return u},BB:function(){return i},yS:function(){return c}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/buffer.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");function S(j){for(let U=0,K=j.length;U0?K[0]:[]}async function h(j,U,K,G,P){const A=C(j,U),T=await Promise.all(A.map(async E=>{let W,$=null;try{W=await E.provideDocumentSemanticTokens(U,E===K?G:null,P)}catch(z){$=z,W=null}return(!W||!i(W)&&!c(W))&&(W=null),new m(E,W,$)}));for(const E of T){if(E.error)throw E.error;if(E.tokens)return E}return T.length>0?T[0]:null}function v(j,U){const K=j.orderedGroups(U);return K.length>0?K[0]:null}class p{constructor(U,K){this.provider=U,this.tokens=K}}function b(j,U){return j.has(U)}function O(j,U){const K=j.orderedGroups(U);return K.length>0?K[0]:[]}async function w(j,U,K,G){const P=O(j,U),A=await Promise.all(P.map(async T=>{let E;try{E=await T.provideDocumentRangeSemanticTokens(U,K,G)}catch(W){(0,F.M_)(W),E=null}return(!E||!i(E))&&(E=null),new p(T,E)}));for(const T of A)if(T.tokens)return T;return A.length>0?A[0]:null}L.w.registerCommand("_provideDocumentSemanticTokensLegend",async(j,...U)=>{const[K]=U;(0,g.j)(K instanceof k.r);const G=j.get(M.S).getModel(K);if(!G)return;const{documentSemanticTokensProvider:P}=j.get(n.u),A=v(P,G);return A?A[0].getLegend():j.get(L.d).executeCommand("_provideDocumentRangeSemanticTokensLegend",K)}),L.w.registerCommand("_provideDocumentSemanticTokens",async(j,...U)=>{const[K]=U;(0,g.j)(K instanceof k.r);const G=j.get(M.S).getModel(K);if(!G)return;const{documentSemanticTokensProvider:P}=j.get(n.u);if(!u(P,G))return j.get(L.d).executeCommand("_provideDocumentRangeSemanticTokens",K,G.getFullModelRange());const A=await h(P,G,null,null,r.X.None);if(!A)return;const{provider:T,tokens:E}=A;if(!E||!i(E))return;const W=d({id:0,type:"full",data:E.data});return E.resultId&&T.releaseDocumentSemanticTokens(E.resultId),W}),L.w.registerCommand("_provideDocumentRangeSemanticTokensLegend",async(j,...U)=>{const[K,G]=U;(0,g.j)(K instanceof k.r);const P=j.get(M.S).getModel(K);if(!P)return;const{documentRangeSemanticTokensProvider:A}=j.get(n.u),T=O(A,P);if(T.length===0)return;if(T.length===1)return T[0].getLegend();if(!G||!s.Q.isIRange(G))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),T[0].getLegend();const E=await w(A,P,s.Q.lift(G),r.X.None);if(E)return E.provider.getLegend()}),L.w.registerCommand("_provideDocumentRangeSemanticTokens",async(j,...U)=>{const[K,G]=U;(0,g.j)(K instanceof k.r),(0,g.j)(s.Q.isIRange(G));const P=j.get(M.S).getModel(K);if(!P)return;const{documentRangeSemanticTokensProvider:A}=j.get(n.u),T=await w(A,P,s.Q.lift(G),r.X.None);if(!(!T||!T.tokens))return d({id:0,type:"full",data:T.tokens.data})})},"./node_modules/monaco-editor/esm/vs/editor/contrib/semanticTokens/common/semanticTokensConfig.js":function(pt,Me,e){e.d(Me,{K:function(){return F},r:function(){return r}});const r="editor.semanticHighlighting";function F(k,M,L){var g;const x=(g=L.getValue(r,{overrideIdentifier:k.getLanguageId(),resource:k.uri}))===null||g===void 0?void 0:g.enabled;return typeof x=="boolean"?x:M.getColorTheme().semanticHighlighting}},"./node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/bracketSelections.js":function(pt,Me,e){e.d(Me,{n:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class M{async provideSelectionRanges(g,x){const I=[];for(const S of x){const f=[];I.push(f);const d=new Map;await new Promise(a=>M._bracketsRightYield(a,0,g,S,d)),await new Promise(a=>M._bracketsLeftYield(a,0,g,S,d,f))}return I}static _bracketsRightYield(g,x,I,S,f){const d=new Map,a=Date.now();for(;;){if(x>=M._maxRounds){g();break}if(!S){g();break}const s=I.bracketPairs.findNextBracket(S);if(!s){g();break}if(Date.now()-a>M._maxDuration){setTimeout(()=>M._bracketsRightYield(g,x+1,I,S,f));break}if(s.bracketInfo.isOpeningBracket){const i=s.bracketInfo.bracketText,c=d.has(i)?d.get(i):0;d.set(i,c+1)}else{const i=s.bracketInfo.getOpeningBrackets()[0].bracketText;let c=d.has(i)?d.get(i):0;if(c-=1,d.set(i,Math.max(0,c)),c<0){let m=f.get(i);m||(m=new r.w,f.set(i,m)),m.push(s.range)}}S=s.range.getEndPosition()}}static _bracketsLeftYield(g,x,I,S,f,d){const a=new Map,s=Date.now();for(;;){if(x>=M._maxRounds&&f.size===0){g();break}if(!S){g();break}const n=I.bracketPairs.findPrevBracket(S);if(!n){g();break}if(Date.now()-s>M._maxDuration){setTimeout(()=>M._bracketsLeftYield(g,x+1,I,S,f,d));break}if(n.bracketInfo.isOpeningBracket){const c=n.bracketInfo.bracketText;let m=a.has(c)?a.get(c):0;if(m-=1,a.set(c,Math.max(0,m)),m<0){const u=f.get(c);if(u){const C=u.shift();u.size===0&&f.delete(c);const h=k.Q.fromPositions(n.range.getEndPosition(),C.getStartPosition()),v=k.Q.fromPositions(n.range.getStartPosition(),C.getEndPosition());d.push({range:h}),d.push({range:v}),M._addBracketLeading(I,v,d)}}}else{const c=n.bracketInfo.getOpeningBrackets()[0].bracketText,m=a.has(c)?a.get(c):0;a.set(c,m+1)}S=n.range.getStartPosition()}}static _addBracketLeading(g,x,I){if(x.startLineNumber===x.endLineNumber)return;const S=x.startLineNumber,f=g.getLineFirstNonWhitespaceColumn(S);f!==0&&f!==x.startColumn&&(I.push({range:k.Q.fromPositions(new F.y(S,f),x.getEndPosition())}),I.push({range:k.Q.fromPositions(new F.y(S,1),x.getEndPosition())}));const d=S-1;if(d>0){const a=g.getLineFirstNonWhitespaceColumn(d);a===x.startColumn&&a!==g.getLineLastNonWhitespaceColumn(d)&&(I.push({range:k.Q.fromPositions(new F.y(d,a),x.getEndPosition())}),I.push({range:k.Q.fromPositions(new F.y(d,1),x.getEndPosition())}))}}}M._maxDuration=30,M._maxRounds=2},"./node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/smartSelect.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/bracketSelections.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");class d{constructor(G=!0){this.selectSubwords=G}provideSelectionRanges(G,P){const A=[];for(const T of P){const E=[];A.push(E),this.selectSubwords&&this._addInWordRanges(E,G,T),this._addWordRanges(E,G,T),this._addWhitespaceLine(E,G,T),E.push({range:G.getFullModelRange()})}return A}_addInWordRanges(G,P,A){const T=P.getWordAtPosition(A);if(!T)return;const{word:E,startColumn:W}=T,$=A.column-W;let z=$,J=$,B=0;for(;z>=0;z--){const V=E.charCodeAt(z);if(z!==$&&(V===95||V===45))break;if((0,f.Lv)(V)&&(0,f.Wv)(B))break;B=V}for(z+=1;J0&&P.getLineFirstNonWhitespaceColumn(A.lineNumber)===0&&P.getLineLastNonWhitespaceColumn(A.lineNumber)===0&&G.push({range:new g.Q(A.lineNumber,1,A.lineNumber,P.getLineMaxColumn(A.lineNumber))})}}var a=e("./node_modules/monaco-editor/esm/vs/nls.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),u=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),C=function(K,G,P,A){var T=arguments.length,E=T<3?G:A===null?A=Object.getOwnPropertyDescriptor(G,P):A,W;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(K,G,P,A);else for(var $=K.length-1;$>=0;$--)(W=K[$])&&(E=(T<3?W(E):T>3?W(G,P,E):W(G,P))||E);return T>3&&E&&Object.defineProperty(G,P,E),E},h=function(K,G){return function(P,A){G(P,A,K)}},v;class p{constructor(G,P){this.index=G,this.ranges=P}mov(G){const P=this.index+(G?1:-1);if(P<0||P>=this.ranges.length)return this;const A=new p(P,this.ranges);return A.ranges[P].equalsRange(this.ranges[this.index])?A.mov(G):A}}let b=v=class{static get(G){return G.getContribution(v.ID)}constructor(G,P){this._editor=G,this._languageFeaturesService=P,this._ignoreSelection=!1}dispose(){var G;(G=this._selectionListener)===null||G===void 0||G.dispose()}async run(G){if(!this._editor.hasModel())return;const P=this._editor.getSelections(),A=this._editor.getModel();if(this._state||await U(this._languageFeaturesService.selectionRangeProvider,A,P.map(E=>E.getPosition()),this._editor.getOption(113),F.X.None).then(E=>{var W;if(!(!r.EI(E)||E.length!==P.length)&&!(!this._editor.hasModel()||!r.aI(this._editor.getSelections(),P,($,z)=>$.equalsSelection(z)))){for(let $=0;$z.containsPosition(P[$].getStartPosition())&&z.containsPosition(P[$].getEndPosition())),E[$].unshift(P[$]);this._state=E.map($=>new p(0,$)),(W=this._selectionListener)===null||W===void 0||W.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var $;this._ignoreSelection||(($=this._selectionListener)===null||$===void 0||$.dispose(),this._state=void 0)})}}),!this._state)return;this._state=this._state.map(E=>E.mov(G));const T=this._state.map(E=>x.L.fromPositions(E.ranges[E.index].getStartPosition(),E.ranges[E.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(T)}finally{this._ignoreSelection=!1}}};b.ID="editor.contrib.smartSelectController",b=v=C([h(1,i.u)],b);class O extends M.ks{constructor(G,P){super(P),this._forward=G}async run(G,P){const A=b.get(P);A&&await A.run(this._forward)}}class w extends O{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:a.kg("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:I.R.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:s.D8.MenubarSelectionMenu,group:"1_basic",title:a.kg({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}}n.w.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");class j extends O{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:a.kg("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:I.R.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:s.D8.MenubarSelectionMenu,group:"1_basic",title:a.kg({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}}(0,M.HW)(b.ID,b,4),(0,M.Fl)(w),(0,M.Fl)(j);async function U(K,G,P,A,T){const E=K.all(G).concat(new d(A.selectSubwords));E.length===1&&E.unshift(new S.n);const W=[],$=[];for(const z of E)W.push(Promise.resolve(z.provideSelectionRanges(G,P,T)).then(J=>{if(r.EI(J)&&J.length===P.length)for(let B=0;B{if(z.length===0)return[];z.sort((Y,X)=>L.y.isBefore(Y.getStartPosition(),X.getStartPosition())?1:L.y.isBefore(X.getStartPosition(),Y.getStartPosition())||L.y.isBefore(Y.getEndPosition(),X.getEndPosition())?-1:L.y.isBefore(X.getEndPosition(),Y.getEndPosition())?1:0);const J=[];let B;for(const Y of z)(!B||g.Q.containsRange(Y,B)&&!g.Q.equalsRange(Y,B))&&(J.push(Y),B=Y);if(!A.selectLeadingAndTrailingWhitespace)return J;const V=[J[0]];for(let Y=1;Y=0;j--)(w=C[j])&&(O=(b<3?w(O):b>3?w(h,v,O):w(h,v))||O);return b>3&&O&&Object.defineProperty(h,v,O),O},n=function(C,h){return function(v,p){h(v,p,C)}},i;const c={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let m=i=class{static get(h){return h.getContribution(i.ID)}constructor(h,v,p,b,O){this._editor=h,this._logService=v,this._languageFeaturesService=p,this._languageConfigurationService=O,this._snippetListener=new r.Cm,this._modelVersionId=-1,this._inSnippet=i.InSnippetMode.bindTo(b),this._hasNextTabstop=i.HasNextTabstop.bindTo(b),this._hasPrevTabstop=i.HasPrevTabstop.bindTo(b)}dispose(){var h;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),(h=this._session)===null||h===void 0||h.dispose(),this._snippetListener.dispose()}insert(h,v){try{this._doInsert(h,typeof v>"u"?c:{...c,...v})}catch(p){this.cancel(),this._logService.error(p),this._logService.error("snippet_error"),this._logService.error("insert_template=",h),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}_doInsert(h,v){var p;if(this._editor.hasModel()){if(this._snippetListener.clear(),v.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&typeof h!="string"&&this.cancel(),this._session?((0,F.j)(typeof h=="string"),this._session.merge(h,v)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new a.O(this._editor,h,v,this._languageConfigurationService),this._session.insert()),v.undoStopAfter&&this._editor.getModel().pushStackElement(),!((p=this._session)===null||p===void 0)&&p.hasChoice){const b={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(G,P)=>{if(!this._session||G!==this._editor.getModel()||!M.y.equals(this._editor.getPosition(),P))return;const{activeChoice:A}=this._session;if(!A||A.choice.options.length===0)return;const T=G.getValueInRange(A.range),E=!!A.choice.options.find($=>$.value===T),W=[];for(let $=0;${w?.dispose(),j=!1},K=()=>{j||(w=this._languageFeaturesService.completionProvider.register({language:O.getLanguageId(),pattern:O.uri.fsPath,scheme:O.uri.scheme,exclusive:!0},b),this._snippetListener.add(w),j=!0)};this._choiceCompletions={provider:b,enable:K,disable:U}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(b=>b.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState()))}}_updateState(){if(!(!this._session||!this._editor.hasModel())){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){var h;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}const{activeChoice:v}=this._session;if(!v||!this._choiceCompletions){(h=this._choiceCompletions)===null||h===void 0||h.disable(),this._currentChoice=void 0;return}this._currentChoice!==v.choice&&(this._currentChoice=v.choice,this._choiceCompletions.enable(),queueMicrotask(()=>{(0,I.p3)(this._editor,this._choiceCompletions.provider)}))}finish(){for(;this._inSnippet.get();)this.next()}cancel(h=!1){var v;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,(v=this._session)===null||v===void 0||v.dispose(),this._session=void 0,this._modelVersionId=-1,h&&this._editor.setSelections([this._editor.getSelection()])}prev(){var h;(h=this._session)===null||h===void 0||h.prev(),this._updateState()}next(){var h;(h=this._session)===null||h===void 0||h.next(),this._updateState()}isInSnippet(){return!!this._inSnippet.get()}};m.ID="snippetController2",m.InSnippetMode=new f.N1("inSnippetMode",!1,(0,S.kg)("inSnippetMode","Whether the editor in current in snippet mode")),m.HasNextTabstop=new f.N1("hasNextTabstop",!1,(0,S.kg)("hasNextTabstop","Whether there is a next tab stop when in snippet mode")),m.HasPrevTabstop=new f.N1("hasPrevTabstop",!1,(0,S.kg)("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode")),m=i=s([n(1,d.rr),n(2,x.u),n(3,f.fN),n(4,g.JZ)],m),(0,k.HW)(m.ID,m,4);const u=k.DX.bindToContribution(m.get);(0,k.E_)(new u({id:"jumpToNextSnippetPlaceholder",precondition:f.M$.and(m.InSnippetMode,m.HasNextTabstop),handler:C=>C.next(),kbOpts:{weight:130,kbExpr:L.R.editorTextFocus,primary:2}})),(0,k.E_)(new u({id:"jumpToPrevSnippetPlaceholder",precondition:f.M$.and(m.InSnippetMode,m.HasPrevTabstop),handler:C=>C.prev(),kbOpts:{weight:130,kbExpr:L.R.editorTextFocus,primary:1026}})),(0,k.E_)(new u({id:"leaveSnippet",precondition:m.InSnippetMode,handler:C=>C.cancel(!0),kbOpts:{weight:130,kbExpr:L.R.editorTextFocus,primary:9,secondary:[1033]}})),(0,k.E_)(new u({id:"acceptSnippet",precondition:m.InSnippetMode,handler:C=>C.finish()}))},"./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.js":function(pt,Me,e){e.d(Me,{EY:function(){return k},GR:function(){return g},Or:function(){return L},fr:function(){return a},mQ:function(){return d}});class r{constructor(){this.value="",this.pos=0}static isDigitCharacter(n){return n>=48&&n<=57}static isVariableCharacter(n){return n===95||n>=97&&n<=122||n>=65&&n<=90}text(n){this.value=n,this.pos=0}tokenText(n){return this.value.substr(n.pos,n.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const n=this.pos;let i=0,c=this.value.charCodeAt(n),m;if(m=r._table[c],typeof m=="number")return this.pos+=1,{type:m,pos:n,len:1};if(r.isDigitCharacter(c)){m=8;do i+=1,c=this.value.charCodeAt(n+i);while(r.isDigitCharacter(c));return this.pos+=i,{type:m,pos:n,len:i}}if(r.isVariableCharacter(c)){m=9;do c=this.value.charCodeAt(n+ ++i);while(r.isVariableCharacter(c)||r.isDigitCharacter(c));return this.pos+=i,{type:m,pos:n,len:i}}m=10;do i+=1,c=this.value.charCodeAt(n+i);while(!isNaN(c)&&typeof r._table[c]>"u"&&!r.isDigitCharacter(c)&&!r.isVariableCharacter(c));return this.pos+=i,{type:m,pos:n,len:i}}}r._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};class F{constructor(){this._children=[]}appendChild(n){return n instanceof k&&this._children[this._children.length-1]instanceof k?this._children[this._children.length-1].value+=n.value:(n.parent=this,this._children.push(n)),this}replace(n,i){const{parent:c}=n,m=c.children.indexOf(n),u=c.children.slice(0);u.splice(m,1,...i),c._children=u,function C(h,v){for(const p of h)p.parent=v,C(p.children,p)}(i,c)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let n=this;for(;;){if(!n)return;if(n instanceof d)return n;n=n.parent}}toString(){return this.children.reduce((n,i)=>n+i.toString(),"")}len(){return 0}}class k extends F{constructor(n){super(),this.value=n}toString(){return this.value}len(){return this.value.length}clone(){return new k(this.value)}}class M extends F{}class L extends M{static compareByIndex(n,i){return n.index===i.index?0:n.isFinalTabstop?1:i.isFinalTabstop||n.indexi.index?1:0}constructor(n){super(),this.index=n}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof g?this._children[0]:void 0}clone(){const n=new L(this.index);return this.transform&&(n.transform=this.transform.clone()),n._children=this.children.map(i=>i.clone()),n}}class g extends F{constructor(){super(...arguments),this.options=[]}appendChild(n){return n instanceof k&&(n.parent=this,this.options.push(n)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const n=new g;return this.options.forEach(n.appendChild,n),n}}class x extends F{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(n){const i=this;let c=!1,m=n.replace(this.regexp,function(){return c=!0,i._replace(Array.prototype.slice.call(arguments,0,-2))});return!c&&this._children.some(u=>u instanceof I&&!!u.elseValue)&&(m=this._replace([])),m}_replace(n){let i="";for(const c of this._children)if(c instanceof I){let m=n[c.index]||"";m=c.resolve(m),i+=m}else i+=c.toString();return i}toString(){return""}clone(){const n=new x;return n.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),n._children=this.children.map(i=>i.clone()),n}}class I extends F{constructor(n,i,c,m){super(),this.index=n,this.shorthandName=i,this.ifValue=c,this.elseValue=m}resolve(n){return this.shorthandName==="upcase"?n?n.toLocaleUpperCase():"":this.shorthandName==="downcase"?n?n.toLocaleLowerCase():"":this.shorthandName==="capitalize"?n?n[0].toLocaleUpperCase()+n.substr(1):"":this.shorthandName==="pascalcase"?n?this._toPascalCase(n):"":this.shorthandName==="camelcase"?n?this._toCamelCase(n):"":n&&typeof this.ifValue=="string"?this.ifValue:!n&&typeof this.elseValue=="string"?this.elseValue:n||""}_toPascalCase(n){const i=n.match(/[a-z0-9]+/gi);return i?i.map(c=>c.charAt(0).toUpperCase()+c.substr(1)).join(""):n}_toCamelCase(n){const i=n.match(/[a-z0-9]+/gi);return i?i.map((c,m)=>m===0?c.charAt(0).toLowerCase()+c.substr(1):c.charAt(0).toUpperCase()+c.substr(1)).join(""):n}clone(){return new I(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class S extends M{constructor(n){super(),this.name=n}resolve(n){let i=n.resolve(this);return this.transform&&(i=this.transform.resolve(i||"")),i!==void 0?(this._children=[new k(i)],!0):!1}clone(){const n=new S(this.name);return this.transform&&(n.transform=this.transform.clone()),n._children=this.children.map(i=>i.clone()),n}}function f(s,n){const i=[...s];for(;i.length>0;){const c=i.shift();if(!n(c))break;i.unshift(...c.children)}}class d extends F{get placeholderInfo(){if(!this._placeholders){const n=[];let i;this.walk(function(c){return c instanceof L&&(n.push(c),i=!i||i.indexm===n?(c=!0,!1):(i+=m.len(),!0)),c?i:-1}fullLen(n){let i=0;return f([n],c=>(i+=c.len(),!0)),i}enclosingPlaceholders(n){const i=[];let{parent:c}=n;for(;c;)c instanceof L&&i.push(c),c=c.parent;return i}resolveVariables(n){return this.walk(i=>(i instanceof S&&i.resolve(n)&&(this._placeholders=void 0),!0)),this}appendChild(n){return this._placeholders=void 0,super.appendChild(n)}replace(n,i){return this._placeholders=void 0,super.replace(n,i)}clone(){const n=new d;return this._children=this.children.map(i=>i.clone()),n}walk(n){f(this.children,n)}}class a{constructor(){this._scanner=new r,this._token={type:14,pos:0,len:0}}static escape(n){return n.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(n){return/\${?CLIPBOARD/.test(n)}parse(n,i,c){const m=new d;return this.parseFragment(n,m),this.ensureFinalTabstop(m,c??!1,i??!1),m}parseFragment(n,i){const c=i.children.length;for(this._scanner.text(n),this._token=this._scanner.next();this._parse(i););const m=new Map,u=[];i.walk(v=>(v instanceof L&&(v.isFinalTabstop?m.set(0,void 0):!m.has(v.index)&&v.children.length>0?m.set(v.index,v.children):u.push(v)),!0));const C=(v,p)=>{const b=m.get(v.index);if(!b)return;const O=new L(v.index);O.transform=v.transform;for(const w of b){const j=w.clone();O.appendChild(j),j instanceof L&&m.has(j.index)&&!p.has(j.index)&&(p.add(j.index),C(j,p),p.delete(j.index))}i.replace(v,[O])},h=new Set;for(const v of u)C(v,h);return i.children.slice(c)}ensureFinalTabstop(n,i,c){(i||c&&n.placeholders.length>0)&&(n.placeholders.find(u=>u.index===0)||n.appendChild(new L(0)))}_accept(n,i){if(n===void 0||this._token.type===n){const c=i?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),c}return!1}_backTo(n){return this._scanner.pos=n.pos+n.len,this._token=n,!1}_until(n){const i=this._token;for(;this._token.type!==n;){if(this._token.type===14)return!1;if(this._token.type===5){const m=this._scanner.next();if(m.type!==0&&m.type!==4&&m.type!==5)return!1}this._token=this._scanner.next()}const c=this._scanner.value.substring(i.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),c}_parse(n){return this._parseEscaped(n)||this._parseTabstopOrVariableName(n)||this._parseComplexPlaceholder(n)||this._parseComplexVariable(n)||this._parseAnything(n)}_parseEscaped(n){let i;return(i=this._accept(5,!0))?(i=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||i,n.appendChild(new k(i)),!0):!1}_parseTabstopOrVariableName(n){let i;const c=this._token;return this._accept(0)&&(i=this._accept(9,!0)||this._accept(8,!0))?(n.appendChild(/^\d+$/.test(i)?new L(Number(i)):new S(i)),!0):this._backTo(c)}_parseComplexPlaceholder(n){let i;const c=this._token;if(!(this._accept(0)&&this._accept(3)&&(i=this._accept(8,!0))))return this._backTo(c);const u=new L(Number(i));if(this._accept(1))for(;;){if(this._accept(4))return n.appendChild(u),!0;if(!this._parse(u))return n.appendChild(new k("${"+i+":")),u.children.forEach(n.appendChild,n),!0}else if(u.index>0&&this._accept(7)){const C=new g;for(;;){if(this._parseChoiceElement(C)){if(this._accept(2))continue;if(this._accept(7)&&(u.appendChild(C),this._accept(4)))return n.appendChild(u),!0}return this._backTo(c),!1}}else return this._accept(6)?this._parseTransform(u)?(n.appendChild(u),!0):(this._backTo(c),!1):this._accept(4)?(n.appendChild(u),!0):this._backTo(c)}_parseChoiceElement(n){const i=this._token,c=[];for(;!(this._token.type===2||this._token.type===7);){let m;if((m=this._accept(5,!0))?m=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||m:m=this._accept(void 0,!0),!m)return this._backTo(i),!1;c.push(m)}return c.length===0?(this._backTo(i),!1):(n.appendChild(new k(c.join(""))),!0)}_parseComplexVariable(n){let i;const c=this._token;if(!(this._accept(0)&&this._accept(3)&&(i=this._accept(9,!0))))return this._backTo(c);const u=new S(i);if(this._accept(1))for(;;){if(this._accept(4))return n.appendChild(u),!0;if(!this._parse(u))return n.appendChild(new k("${"+i+":")),u.children.forEach(n.appendChild,n),!0}else return this._accept(6)?this._parseTransform(u)?(n.appendChild(u),!0):(this._backTo(c),!1):this._accept(4)?(n.appendChild(u),!0):this._backTo(c)}_parseTransform(n){const i=new x;let c="",m="";for(;!this._accept(6);){let u;if(u=this._accept(5,!0)){u=this._accept(6,!0)||u,c+=u;continue}if(this._token.type!==14){c+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let u;if(u=this._accept(5,!0)){u=this._accept(5,!0)||this._accept(6,!0)||u,i.appendChild(new k(u));continue}if(!(this._parseFormatString(i)||this._parseAnything(i)))return!1}for(;!this._accept(4);){if(this._token.type!==14){m+=this._accept(void 0,!0);continue}return!1}try{i.regexp=new RegExp(c,m)}catch{return!1}return n.transform=i,!0}_parseFormatString(n){const i=this._token;if(!this._accept(0))return!1;let c=!1;this._accept(3)&&(c=!0);const m=this._accept(8,!0);if(m)if(c){if(this._accept(4))return n.appendChild(new I(Number(m))),!0;if(!this._accept(1))return this._backTo(i),!1}else return n.appendChild(new I(Number(m))),!0;else return this._backTo(i),!1;if(this._accept(6)){const u=this._accept(9,!0);return!u||!this._accept(4)?(this._backTo(i),!1):(n.appendChild(new I(Number(m),u)),!0)}else if(this._accept(11)){const u=this._until(4);if(u)return n.appendChild(new I(Number(m),void 0,u,void 0)),!0}else if(this._accept(12)){const u=this._until(4);if(u)return n.appendChild(new I(Number(m),void 0,void 0,u)),!0}else if(this._accept(13)){const u=this._until(1);if(u){const C=this._until(4);if(C)return n.appendChild(new I(Number(m),void 0,u,C)),!0}}else{const u=this._until(4);if(u)return n.appendChild(new I(Number(m),void 0,void 0,u)),!0}return this._backTo(i),!1}_parseAnything(n){return this._token.type!==14?(n.appendChild(new k(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetSession.js":function(pt,Me,e){e.d(Me,{O:function(){return z}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/label/common/label.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/extpath.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");function n(J,B=s.uF){return(0,a.No)(J,B)?J.charAt(0).toUpperCase()+J.slice(1):J}let i=Object.create(null);var c=e("./node_modules/monaco-editor/esm/vs/base/common/path.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),u=e("./node_modules/monaco-editor/esm/vs/base/common/uuid.js"),C=e("./node_modules/monaco-editor/esm/vs/nls.js"),h=function(J,B,V,Y){var X=arguments.length,ie=X<3?B:Y===null?Y=Object.getOwnPropertyDescriptor(B,V):Y,re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ie=Reflect.decorate(J,B,V,Y);else for(var te=J.length-1;te>=0;te--)(re=J[te])&&(ie=(X<3?re(ie):X>3?re(B,V,ie):re(B,V))||ie);return X>3&&ie&&Object.defineProperty(B,V,ie),ie},v=function(J,B){return function(V,Y){B(V,Y,J)}};const p=Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0});class b{constructor(B){this._delegates=B}resolve(B){for(const V of this._delegates){const Y=V.resolve(B);if(Y!==void 0)return Y}}}class O{constructor(B,V,Y,X){this._model=B,this._selection=V,this._selectionIdx=Y,this._overtypingCapturer=X}resolve(B){const{name:V}=B;if(V==="SELECTION"||V==="TM_SELECTED_TEXT"){let Y=this._model.getValueInRange(this._selection)||void 0,X=this._selection.startLineNumber!==this._selection.endLineNumber;if(!Y&&this._overtypingCapturer){const ie=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);ie&&(Y=ie.value,X=ie.multiline)}if(Y&&X&&B.snippet){const ie=this._model.getLineContent(this._selection.startLineNumber),re=(0,k.UU)(ie,0,this._selection.startColumn-1);let te=re;B.snippet.walk(he=>he===B?!1:(he instanceof d.EY&&(te=(0,k.UU)((0,k.uz)(he.value).pop())),!0));const D=(0,k.Qp)(te,re);Y=Y.replace(/(\r\n|\r|\n)(.*)/g,(he,ve,Ce)=>`${ve}${te.substr(D)}${Ce}`)}return Y}else{if(V==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(V==="TM_CURRENT_WORD"){const Y=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return Y&&Y.word||void 0}else{if(V==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(V==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber);if(V==="CURSOR_INDEX")return String(this._selectionIdx);if(V==="CURSOR_NUMBER")return String(this._selectionIdx+1)}}}}class w{constructor(B,V){this._labelService=B,this._model=V}resolve(B){const{name:V}=B;if(V==="TM_FILENAME")return c.P8(this._model.uri.fsPath);if(V==="TM_FILENAME_BASE"){const Y=c.P8(this._model.uri.fsPath),X=Y.lastIndexOf(".");return X<=0?Y:Y.slice(0,X)}else{if(V==="TM_DIRECTORY")return c.pD(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel((0,m.pD)(this._model.uri));if(V==="TM_FILEPATH")return this._labelService.getUriLabel(this._model.uri);if(V==="RELATIVE_FILEPATH")return this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0})}}}class j{constructor(B,V,Y,X){this._readClipboardText=B,this._selectionIdx=V,this._selectionCount=Y,this._spread=X}resolve(B){if(B.name!=="CLIPBOARD")return;const V=this._readClipboardText();if(V){if(this._spread){const Y=V.split(/\r\n|\n|\r/).filter(X=>!(0,k.AV)(X));if(Y.length===this._selectionCount)return Y[this._selectionIdx]}return V}}}let U=class{constructor(B,V,Y){this._model=B,this._selection=V,this._languageConfigurationService=Y}resolve(B){const{name:V}=B,Y=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),X=this._languageConfigurationService.getLanguageConfiguration(Y).comments;if(X){if(V==="LINE_COMMENT")return X.lineCommentToken||void 0;if(V==="BLOCK_COMMENT_START")return X.blockCommentStartToken||void 0;if(V==="BLOCK_COMMENT_END")return X.blockCommentEndToken||void 0}}};U=h([v(2,x.JZ)],U);class K{constructor(){this._date=new Date}resolve(B){const{name:V}=B;if(V==="CURRENT_YEAR")return String(this._date.getFullYear());if(V==="CURRENT_YEAR_SHORT")return String(this._date.getFullYear()).slice(-2);if(V==="CURRENT_MONTH")return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if(V==="CURRENT_DATE")return String(this._date.getDate().valueOf()).padStart(2,"0");if(V==="CURRENT_HOUR")return String(this._date.getHours().valueOf()).padStart(2,"0");if(V==="CURRENT_MINUTE")return String(this._date.getMinutes().valueOf()).padStart(2,"0");if(V==="CURRENT_SECOND")return String(this._date.getSeconds().valueOf()).padStart(2,"0");if(V==="CURRENT_DAY_NAME")return K.dayNames[this._date.getDay()];if(V==="CURRENT_DAY_NAME_SHORT")return K.dayNamesShort[this._date.getDay()];if(V==="CURRENT_MONTH_NAME")return K.monthNames[this._date.getMonth()];if(V==="CURRENT_MONTH_NAME_SHORT")return K.monthNamesShort[this._date.getMonth()];if(V==="CURRENT_SECONDS_UNIX")return String(Math.floor(this._date.getTime()/1e3));if(V==="CURRENT_TIMEZONE_OFFSET"){const Y=this._date.getTimezoneOffset(),X=Y>0?"-":"+",ie=Math.trunc(Math.abs(Y/60)),re=ie<10?"0"+ie:ie,te=Math.abs(Y)-ie*60,D=te<10?"0"+te:te;return X+re+":"+D}}}K.dayNames=[C.kg("Sunday","Sunday"),C.kg("Monday","Monday"),C.kg("Tuesday","Tuesday"),C.kg("Wednesday","Wednesday"),C.kg("Thursday","Thursday"),C.kg("Friday","Friday"),C.kg("Saturday","Saturday")],K.dayNamesShort=[C.kg("SundayShort","Sun"),C.kg("MondayShort","Mon"),C.kg("TuesdayShort","Tue"),C.kg("WednesdayShort","Wed"),C.kg("ThursdayShort","Thu"),C.kg("FridayShort","Fri"),C.kg("SaturdayShort","Sat")],K.monthNames=[C.kg("January","January"),C.kg("February","February"),C.kg("March","March"),C.kg("April","April"),C.kg("May","May"),C.kg("June","June"),C.kg("July","July"),C.kg("August","August"),C.kg("September","September"),C.kg("October","October"),C.kg("November","November"),C.kg("December","December")],K.monthNamesShort=[C.kg("JanuaryShort","Jan"),C.kg("FebruaryShort","Feb"),C.kg("MarchShort","Mar"),C.kg("AprilShort","Apr"),C.kg("MayShort","May"),C.kg("JuneShort","Jun"),C.kg("JulyShort","Jul"),C.kg("AugustShort","Aug"),C.kg("SeptemberShort","Sep"),C.kg("OctoberShort","Oct"),C.kg("NovemberShort","Nov"),C.kg("DecemberShort","Dec")];class G{constructor(B){this._workspaceService=B}resolve(B){if(!this._workspaceService)return;const V=(0,f.Q_)(this._workspaceService.getWorkspace());if(!(0,f.A7)(V)){if(B.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(V);if(B.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(V)}}_resolveWorkspaceName(B){if((0,f.jB)(B))return c.P8(B.uri.path);let V=c.P8(B.configPath.path);return V.endsWith(f.kF)&&(V=V.substr(0,V.length-f.kF.length-1)),V}_resoveWorkspacePath(B){if((0,f.jB)(B))return n(B.uri.fsPath);const V=c.P8(B.configPath.path);let Y=B.configPath.fsPath;return Y.endsWith(V)&&(Y=Y.substr(0,Y.length-V.length-1)),Y?n(Y):"/"}}class P{resolve(B){const{name:V}=B;if(V==="RANDOM")return Math.random().toString().slice(-6);if(V==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(V==="UUID")return(0,u.b)()}}var A=function(J,B,V,Y){var X=arguments.length,ie=X<3?B:Y===null?Y=Object.getOwnPropertyDescriptor(B,V):Y,re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ie=Reflect.decorate(J,B,V,Y);else for(var te=J.length-1;te>=0;te--)(re=J[te])&&(ie=(X<3?re(ie):X>3?re(B,V,ie):re(B,V))||ie);return X>3&&ie&&Object.defineProperty(B,V,ie),ie},T=function(J,B){return function(V,Y){B(V,Y,J)}},E;class W{constructor(B,V,Y){this._editor=B,this._snippet=V,this._snippetLineLeadingWhitespace=Y,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=(0,r.$z)(V.placeholders,d.Or.compareByIndex),this._placeholderGroupsIdx=-1}initialize(B){this._offset=B.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(this._offset===-1)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;const B=this._editor.getModel();this._editor.changeDecorations(V=>{for(const Y of this._snippet.placeholders){const X=this._snippet.offset(Y),ie=this._snippet.fullLen(Y),re=L.Q.fromPositions(B.getPositionAt(this._offset+X),B.getPositionAt(this._offset+X+ie)),te=Y.isFinalTabstop?W._decor.inactiveFinal:W._decor.inactive,D=V.addDecoration(re,te);this._placeholderDecorations.set(Y,D)}})}move(B){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){const X=[];for(const ie of this._placeholderGroups[this._placeholderGroupsIdx])if(ie.transform){const re=this._placeholderDecorations.get(ie),te=this._editor.getModel().getDecorationRange(re),D=this._editor.getModel().getValueInRange(te),he=ie.transform.resolve(D).split(/\r\n|\r|\n/);for(let ve=1;ve0&&this._editor.executeEdits("snippet.placeholderTransform",X)}let V=!1;B===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,V=!0);const Y=this._editor.getModel().changeDecorations(X=>{const ie=new Set,re=[];for(const te of this._placeholderGroups[this._placeholderGroupsIdx]){const D=this._placeholderDecorations.get(te),he=this._editor.getModel().getDecorationRange(D);re.push(new g.L(he.startLineNumber,he.startColumn,he.endLineNumber,he.endColumn)),V=V&&this._hasPlaceholderBeenCollapsed(te),X.changeDecorationOptions(D,te.isFinalTabstop?W._decor.activeFinal:W._decor.active),ie.add(te);for(const ve of this._snippet.enclosingPlaceholders(te)){const Ce=this._placeholderDecorations.get(ve);X.changeDecorationOptions(Ce,ve.isFinalTabstop?W._decor.activeFinal:W._decor.active),ie.add(ve)}}for(const[te,D]of this._placeholderDecorations)ie.has(te)||X.changeDecorationOptions(D,te.isFinalTabstop?W._decor.inactiveFinal:W._decor.inactive);return re});return V?this.move(B):Y??[]}_hasPlaceholderBeenCollapsed(B){let V=B;for(;V;){if(V instanceof d.Or){const Y=this._placeholderDecorations.get(V);if(this._editor.getModel().getDecorationRange(Y).isEmpty()&&V.toString().length>0)return!0}V=V.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(this._snippet.placeholders.length===0)return!0;if(this._snippet.placeholders.length===1){const[B]=this._snippet.placeholders;if(B.isFinalTabstop&&this._snippet.rightMostDescendant===B)return!0}return!1}computePossibleSelections(){const B=new Map;for(const V of this._placeholderGroups){let Y;for(const X of V){if(X.isFinalTabstop)break;Y||(Y=[],B.set(X.index,Y));const ie=this._placeholderDecorations.get(X),re=this._editor.getModel().getDecorationRange(ie);if(!re){B.delete(X.index);break}Y.push(re)}}return B}get activeChoice(){if(!this._placeholderDecorations)return;const B=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!B?.choice)return;const V=this._placeholderDecorations.get(B);if(!V)return;const Y=this._editor.getModel().getDecorationRange(V);if(Y)return{range:Y,choice:B.choice}}get hasChoice(){let B=!1;return this._snippet.walk(V=>(B=V instanceof d.GR,!B)),B}merge(B){const V=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(Y=>{for(const X of this._placeholderGroups[this._placeholderGroupsIdx]){const ie=B.shift();console.assert(ie._offset!==-1),console.assert(!ie._placeholderDecorations);const re=ie._snippet.placeholderInfo.last.index;for(const D of ie._snippet.placeholderInfo.all)D.isFinalTabstop?D.index=X.index+(re+1)/this._nestingLevel:D.index=X.index+D.index/this._nestingLevel;this._snippet.replace(X,ie._snippet.children);const te=this._placeholderDecorations.get(X);Y.removeDecoration(te),this._placeholderDecorations.delete(X);for(const D of ie._snippet.placeholders){const he=ie._snippet.offset(D),ve=ie._snippet.fullLen(D),Ce=L.Q.fromPositions(V.getPositionAt(ie._offset+he),V.getPositionAt(ie._offset+he+ve)),Pe=Y.addDecoration(Ce,W._decor.inactive);this._placeholderDecorations.set(D,Pe)}}this._placeholderGroups=(0,r.$z)(this._snippet.placeholders,d.Or.compareByIndex)})}}W._decor={active:I.kI.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:I.kI.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:I.kI.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:I.kI.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};const $={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0};let z=E=class{static adjustWhitespace(B,V,Y,X,ie){const re=B.getLineContent(V.lineNumber),te=(0,k.UU)(re,0,V.column-1);let D;return X.walk(he=>{if(!(he instanceof d.EY)||he.parent instanceof d.GR||ie&&!ie.has(he))return!0;const ve=he.value.split(/\r\n|\r|\n/);if(Y){const Pe=X.offset(he);if(Pe===0)ve[0]=B.normalizeIndentation(ve[0]);else{D=D??X.toString();const _e=D.charCodeAt(Pe-1);(_e===10||_e===13)&&(ve[0]=B.normalizeIndentation(te+ve[0]))}for(let _e=1;_eq.get(f.VR)),ee=B.invokeWithinContext(q=>new w(q.get(S.L),Pe)),De=()=>te,Te=Pe.getValueInRange(E.adjustSelection(Pe,B.getSelection(),Y,0)),He=Pe.getValueInRange(E.adjustSelection(Pe,B.getSelection(),0,X)),qe=Pe.getLineFirstNonWhitespaceColumn(B.getSelection().positionLineNumber),Qe=B.getSelections().map((q,ye)=>({selection:q,idx:ye})).sort((q,ye)=>L.Q.compareRangesUsingStarts(q.selection,ye.selection));for(const{selection:q,idx:ye}of Qe){let ge=E.adjustSelection(Pe,q,Y,0),be=E.adjustSelection(Pe,q,0,X);Te!==Pe.getValueInRange(ge)&&(ge=q),He!==Pe.getValueInRange(be)&&(be=q);const Se=q.setStartPosition(ge.startLineNumber,ge.startColumn).setEndPosition(be.endLineNumber,be.endColumn),ae=new d.fr().parse(V,!0,ie),me=Se.getStartPosition(),fe=E.adjustWhitespace(Pe,me,re||ye>0&&qe!==Pe.getLineFirstNonWhitespaceColumn(q.positionLineNumber),ae);ae.resolveVariables(new b([ee,new j(De,ye,Qe.length,B.getOption(79)==="spread"),new O(Pe,q,ye,D),new U(Pe,q,he),new K,new G(_e),new P])),ve[ye]=M.k.replace(Se,ae.toString()),ve[ye].identifier={major:ye,minor:0},ve[ye]._isTracked=!0,Ce[ye]=new W(B,ae,fe)}return{edits:ve,snippets:Ce}}static createEditsAndSnippetsFromEdits(B,V,Y,X,ie,re,te){if(!B.hasModel()||V.length===0)return{edits:[],snippets:[]};const D=[],he=B.getModel(),ve=new d.fr,Ce=new d.mQ,Pe=new b([B.invokeWithinContext(ee=>new w(ee.get(S.L),he)),new j(()=>ie,0,B.getSelections().length,B.getOption(79)==="spread"),new O(he,B.getSelection(),0,re),new U(he,B.getSelection(),te),new K,new G(B.invokeWithinContext(ee=>ee.get(f.VR))),new P]);V=V.sort((ee,De)=>L.Q.compareRangesUsingStarts(ee.range,De.range));let _e=0;for(let ee=0;ee0){const ye=V[ee-1].range,ge=L.Q.fromPositions(ye.getEndPosition(),De.getStartPosition()),be=new d.EY(he.getValueInRange(ge));Ce.appendChild(be),_e+=be.value.length}const He=ve.parseFragment(Te,Ce);E.adjustWhitespace(he,De.getStartPosition(),!0,Ce,new Set(He)),Ce.resolveVariables(Pe);const qe=Ce.toString(),Qe=qe.slice(_e);_e=qe.length;const q=M.k.replace(De,Qe);q.identifier={major:ee,minor:0},q._isTracked=!0,D.push(q)}return ve.ensureFinalTabstop(Ce,Y,!0),{edits:D,snippets:[new W(B,Ce,"")]}}constructor(B,V,Y=$,X){this._editor=B,this._template=V,this._options=Y,this._languageConfigurationService=X,this._templateMerges=[],this._snippets=[]}dispose(){(0,F.AS)(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;const{edits:B,snippets:V}=typeof this._template=="string"?E.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):E.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=V,this._editor.executeEdits("snippet",B,Y=>{const X=Y.filter(ie=>!!ie.identifier);for(let ie=0;ieg.L.fromPositions(ie.range.getEndPosition()))}),this._editor.revealRange(this._editor.getSelections()[0])}merge(B,V=$){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,B]);const{edits:Y,snippets:X}=E.createEditsAndSnippetsFromSelections(this._editor,B,V.overwriteBefore,V.overwriteAfter,!0,V.adjustWhitespace,V.clipboardText,V.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",Y,ie=>{const re=ie.filter(D=>!!D.identifier);for(let D=0;Dg.L.fromPositions(D.range.getEndPosition()))})}next(){const B=this._move(!0);this._editor.setSelections(B),this._editor.revealPositionInCenterIfOutsideViewport(B[0].getPosition())}prev(){const B=this._move(!1);this._editor.setSelections(B),this._editor.revealPositionInCenterIfOutsideViewport(B[0].getPosition())}_move(B){const V=[];for(const Y of this._snippets){const X=Y.move(B);V.push(...X)}return V}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;const B=this._editor.getSelections();if(B.length{ie.push(...X.get(re))})}B.sort(L.Q.compareRangesUsingStarts);for(const[Y,X]of V){if(X.length!==B.length){V.delete(Y);continue}X.sort(L.Q.compareRangesUsingStarts);for(let ie=0;ie0}};z=E=A([T(3,x.JZ)],z)},"./node_modules/monaco-editor/esm/vs/editor/contrib/stickyScroll/browser/stickyScrollContribution.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/nls.js");const k=Object.freeze({View:(0,F.aS)("view","View"),Help:(0,F.aS)("help","Help"),Test:(0,F.aS)("test","Test"),File:(0,F.aS)("file","File"),Preferences:(0,F.aS)("preferences","Preferences"),Developer:(0,F.aS)({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer")});var M=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),f=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),d=e("./node_modules/monaco-editor/esm/vs/base/browser/trustedTypes.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/browser/viewParts/lines/viewLine.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingDecorations.js");class v{constructor(tt,Mt,Ht,xt=null){this.startLineNumbers=tt,this.endLineNumbers=Mt,this.lastLineRelativePosition=Ht,this.showEndForLine=xt}equals(tt){return!!tt&&this.lastLineRelativePosition===tt.lastLineRelativePosition&&this.showEndForLine===tt.showEndForLine&&(0,a.aI)(this.startLineNumbers,tt.startLineNumbers)&&(0,a.aI)(this.endLineNumbers,tt.endLineNumbers)}}const p=(0,d.H)("stickyScrollViewLayer",{createHTML:qt=>qt}),b="data-sticky-line-index",O="data-sticky-is-line",w="data-sticky-is-line-number",j="data-sticky-is-folding-icon";class U extends I.jG{constructor(tt){super(),this._editor=tt,this._foldingIconStore=new I.Cm,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(67),this._renderedStickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",tt instanceof i.t),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);const Mt=()=>{this._linesDomNode.style.left=this._editor.getOption(115).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration(Ht=>{Ht.hasChanged(115)&&Mt(),Ht.hasChanged(67)&&(this._lineHeight=this._editor.getOption(67))})),this._register(this._editor.onDidScrollChange(Ht=>{Ht.scrollLeftChanged&&Mt(),Ht.scrollWidthChanged&&this._updateWidgetWidth()})),this._register(this._editor.onDidChangeModel(()=>{Mt(),this._updateWidgetWidth()})),this._register(this._foldingIconStore),Mt(),this._register(this._editor.onDidLayoutChange(Ht=>{this._updateWidgetWidth()})),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getRenderedStickyLine(tt){return this._renderedStickyLines.find(Mt=>Mt.lineNumber===tt)}getCurrentLines(){return this._lineNumbers}setState(tt,Mt,Ht){if(Ht===void 0&&(!this._previousState&&!tt||this._previousState&&this._previousState.equals(tt)))return;const xt=this._isWidgetHeightZero(tt),Jt=xt?void 0:tt,Nt=xt?0:this._findLineToRebuildWidgetFrom(tt,Ht);this._renderRootNode(Jt,Mt,Nt),this._previousState=tt}_isWidgetHeightZero(tt){if(!tt)return!0;const Mt=tt.startLineNumbers.length*this._lineHeight+tt.lastLineRelativePosition;if(Mt>0){this._lastLineRelativePosition=tt.lastLineRelativePosition;const Ht=[...tt.startLineNumbers];tt.showEndForLine!==null&&(Ht[tt.showEndForLine]=tt.endLineNumbers[tt.showEndForLine]),this._lineNumbers=Ht}else this._lastLineRelativePosition=0,this._lineNumbers=[];return Mt===0}_findLineToRebuildWidgetFrom(tt,Mt){if(!tt||!this._previousState)return 0;if(Mt!==void 0)return Mt;const Ht=this._previousState,xt=tt.startLineNumbers.findIndex(Jt=>!Ht.startLineNumbers.includes(Jt));return xt===-1?0:xt}_updateWidgetWidth(){const tt=this._editor.getLayoutInfo(),Mt=tt.contentLeft;this._lineNumbersDomNode.style.width=`${Mt}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",`${this._editor.getScrollWidth()-tt.verticalScrollbarWidth}px`),this._rootDomNode.style.width=`${tt.width-tt.verticalScrollbarWidth}px`}_clearStickyLinesFromLine(tt){this._foldingIconStore.clear();for(let Mt=tt;MtBe.scrollWidth))+xt.verticalScrollbarWidth,this._editor.layoutOverlayWidget(this)}_setFoldingHoverListeners(){this._editor.getOption(110)==="mouseover"&&(this._foldingIconStore.add(f.ko(this._lineNumbersDomNode,f.Bx.MOUSE_ENTER,()=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)})),this._foldingIconStore.add(f.ko(this._lineNumbersDomNode,f.Bx.MOUSE_LEAVE,()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)})))}_renderChildNode(tt,Mt,Ht,xt){const Jt=this._editor._getViewModel();if(!Jt)return;const Nt=Jt.coordinatesConverter.convertModelPositionToViewPosition(new c.y(Mt,1)).lineNumber,Be=Jt.getViewLineRenderingData(Nt),vt=this._editor.getOption(68);let Gt;try{Gt=u.d.filter(Be.inlineDecorations,Nt,Be.minColumn,Be.maxColumn)}catch{Gt=[]}const _n=new C.zL(!0,!0,Be.content,Be.continuesWithWrappedLine,Be.isBasicASCII,Be.containsRTL,0,Be.tokens,Gt,Be.tabSize,Be.startVisibleColumn,1,1,1,500,"none",!0,!0,null),Fn=new m.fe(2e3),An=(0,C.UW)(_n,Fn);let Hn;p?Hn=p.createHTML(Fn.build()):Hn=Fn.build();const Kn=document.createElement("span");Kn.setAttribute(b,String(tt)),Kn.setAttribute(O,""),Kn.setAttribute("role","listitem"),Kn.tabIndex=0,Kn.className="sticky-line-content",Kn.classList.add(`stickyLine${Mt}`),Kn.style.lineHeight=`${this._lineHeight}px`,Kn.innerHTML=Hn;const mi=document.createElement("span");mi.setAttribute(b,String(tt)),mi.setAttribute(w,""),mi.className="sticky-line-number",mi.style.lineHeight=`${this._lineHeight}px`;const yi=xt.contentLeft;mi.style.width=`${yi}px`;const ri=document.createElement("span");vt.renderType===1||vt.renderType===3&&Mt%10===0?ri.innerText=Mt.toString():vt.renderType===2&&(ri.innerText=Math.abs(Mt-this._editor.getPosition().lineNumber).toString()),ri.className="sticky-line-number-inner",ri.style.lineHeight=`${this._lineHeight}px`,ri.style.width=`${xt.lineNumbersWidth}px`,ri.style.paddingLeft=`${xt.lineNumbersLeft}px`,mi.appendChild(ri);const fi=this._renderFoldingIconForLine(Ht,Mt);fi&&mi.appendChild(fi.domNode),this._editor.applyFontInfo(Kn),this._editor.applyFontInfo(ri),mi.style.lineHeight=`${this._lineHeight}px`,Kn.style.lineHeight=`${this._lineHeight}px`,mi.style.height=`${this._lineHeight}px`,Kn.style.height=`${this._lineHeight}px`;const Mi=new K(tt,Mt,Kn,mi,fi,An.characterMapping,Kn.scrollWidth);return this._updateTopAndZIndexOfStickyLine(Mi)}_updateTopAndZIndexOfStickyLine(tt){var Mt;const Ht=tt.index,xt=tt.lineDomNode,Jt=tt.lineNumberDomNode,Nt=Ht===this._lineNumbers.length-1,Be="0",vt="1";xt.style.zIndex=Nt?Be:vt,Jt.style.zIndex=Nt?Be:vt;const Gt=`${Ht*this._lineHeight+this._lastLineRelativePosition+(!((Mt=tt.foldingIcon)===null||Mt===void 0)&&Mt.isCollapsed?1:0)}px`,_n=`${Ht*this._lineHeight}px`;return xt.style.top=Nt?Gt:_n,Jt.style.top=Nt?Gt:_n,tt}_renderFoldingIconForLine(tt,Mt){const Ht=this._editor.getOption(110);if(!tt||Ht==="never")return;const xt=tt.regions,Jt=xt.findRange(Mt),Nt=xt.getStartLineNumber(Jt);if(!(Mt===Nt))return;const vt=xt.isCollapsed(Jt),Gt=new G(vt,Nt,xt.getEndLineNumber(Jt),this._lineHeight);return Gt.setVisible(this._isOnGlyphMargin?!0:vt||Ht==="always"),Gt.domNode.setAttribute(j,""),Gt}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(tt){0<=tt&&tt0)return null;const Mt=this._getRenderedStickyLineFromChildDomNode(tt);if(!Mt)return null;const Ht=(0,n.rk)(Mt.characterMapping,tt,0);return new c.y(Mt.lineNumber,Ht)}getLineNumberFromChildDomNode(tt){var Mt,Ht;return(Ht=(Mt=this._getRenderedStickyLineFromChildDomNode(tt))===null||Mt===void 0?void 0:Mt.lineNumber)!==null&&Ht!==void 0?Ht:null}_getRenderedStickyLineFromChildDomNode(tt){const Mt=this.getLineIndexFromChildDomNode(tt);return Mt===null||Mt<0||Mt>=this._renderedStickyLines.length?null:this._renderedStickyLines[Mt]}getLineIndexFromChildDomNode(tt){const Mt=this._getAttributeValue(tt,b);return Mt?parseInt(Mt,10):null}isInStickyLine(tt){return this._getAttributeValue(tt,O)!==void 0}isInFoldingIconDomNode(tt){return this._getAttributeValue(tt,j)!==void 0}_getAttributeValue(tt,Mt){for(;tt&&tt!==this._rootDomNode;){const Ht=tt.getAttribute(Mt);if(Ht!==null)return Ht;tt=tt.parentElement}}}class K{constructor(tt,Mt,Ht,xt,Jt,Nt,Be){this.index=tt,this.lineNumber=Mt,this.lineDomNode=Ht,this.lineNumberDomNode=xt,this.foldingIcon=Jt,this.characterMapping=Nt,this.scrollWidth=Be}}class G{constructor(tt,Mt,Ht,xt){this.isCollapsed=tt,this.foldingStartLine=Mt,this.foldingEndLine=Ht,this.dimension=xt,this.domNode=document.createElement("div"),this.domNode.style.width=`${xt}px`,this.domNode.style.height=`${xt}px`,this.domNode.className=s.L.asClassName(tt?h.k0:h.E0)}setVisible(tt){this.domNode.style.cursor=tt?"pointer":"default",this.domNode.style.opacity=tt?"1":"0"}}var P=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),A=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),T=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),E=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),W=e("./node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.js"),$=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/folding.js"),z=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/syntaxRangeProvider.js"),J=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/indentRangeProvider.js"),B=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js");class V{constructor(tt,Mt){this.startLineNumber=tt,this.endLineNumber=Mt}}class Y{constructor(tt,Mt,Ht){this.range=tt,this.children=Mt,this.parent=Ht}}class X{constructor(tt,Mt,Ht,xt){this.uri=tt,this.version=Mt,this.element=Ht,this.outlineProviderId=xt}}var ie=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js"),re=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),te=function(qt,tt,Mt,Ht){var xt=arguments.length,Jt=xt<3?tt:Ht===null?Ht=Object.getOwnPropertyDescriptor(tt,Mt):Ht,Nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Jt=Reflect.decorate(qt,tt,Mt,Ht);else for(var Be=qt.length-1;Be>=0;Be--)(Nt=qt[Be])&&(Jt=(xt<3?Nt(Jt):xt>3?Nt(tt,Mt,Jt):Nt(tt,Mt))||Jt);return xt>3&&Jt&&Object.defineProperty(tt,Mt,Jt),Jt},D=function(qt,tt){return function(Mt,Ht){tt(Mt,Ht,qt)}},he;(function(qt){qt.OUTLINE_MODEL="outlineModel",qt.FOLDING_PROVIDER_MODEL="foldingProviderModel",qt.INDENTATION_MODEL="indentationModel"})(he||(he={}));var ve;(function(qt){qt[qt.VALID=0]="VALID",qt[qt.INVALID=1]="INVALID",qt[qt.CANCELED=2]="CANCELED"})(ve||(ve={}));let Ce=class extends I.jG{constructor(tt,Mt,Ht,xt){switch(super(),this._editor=tt,this._languageConfigurationService=Ht,this._languageFeaturesService=xt,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new A.ve(300)),this._updateOperation=this._register(new I.Cm),this._editor.getOption(115).defaultModel){case he.OUTLINE_MODEL:this._modelProviders.push(new _e(this._editor,xt));case he.FOLDING_PROVIDER_MODEL:this._modelProviders.push(new Te(this._editor,Mt,xt));case he.INDENTATION_MODEL:this._modelProviders.push(new De(this._editor,Ht));break}}dispose(){this._modelProviders.forEach(tt=>tt.dispose()),this._updateOperation.clear(),this._cancelModelPromise(),super.dispose()}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}async update(tt){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),await this._updateScheduler.trigger(async()=>{for(const Mt of this._modelProviders){const{statusPromise:Ht,modelPromise:xt}=Mt.computeStickyModel(tt);this._modelPromise=xt;const Jt=await Ht;if(this._modelPromise!==xt)return null;switch(Jt){case ve.CANCELED:return this._updateOperation.clear(),null;case ve.VALID:return Mt.stickyModel}}return null}).catch(Mt=>((0,B.dz)(Mt),null))}};Ce=te([D(2,re._Y),D(3,S.u)],Ce);class Pe extends I.jG{constructor(tt){super(),this._editor=tt,this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,ve.INVALID}computeStickyModel(tt){if(tt.isCancellationRequested||!this.isProviderValid())return{statusPromise:this._invalid(),modelPromise:null};const Mt=(0,A.SS)(Ht=>this.createModelFromProvider(Ht));return{statusPromise:Mt.then(Ht=>this.isModelValid(Ht)?tt.isCancellationRequested?ve.CANCELED:(this._stickyModel=this.createStickyModel(tt,Ht),ve.VALID):this._invalid()).then(void 0,Ht=>((0,B.dz)(Ht),ve.CANCELED)),modelPromise:Mt}}isModelValid(tt){return!0}isProviderValid(){return!0}}let _e=class extends Pe{constructor(tt,Mt){super(tt),this._languageFeaturesService=Mt}createModelFromProvider(tt){return W.i9.create(this._languageFeaturesService.documentSymbolProvider,this._editor.getModel(),tt)}createStickyModel(tt,Mt){var Ht;const{stickyOutlineElement:xt,providerID:Jt}=this._stickyModelFromOutlineModel(Mt,(Ht=this._stickyModel)===null||Ht===void 0?void 0:Ht.outlineProviderId),Nt=this._editor.getModel();return new X(Nt.uri,Nt.getVersionId(),xt,Jt)}isModelValid(tt){return tt&&tt.children.size>0}_stickyModelFromOutlineModel(tt,Mt){let Ht;if(ie.f.first(tt.children.values())instanceof W.e0){const Be=ie.f.find(tt.children.values(),vt=>vt.id===Mt);if(Be)Ht=Be.children;else{let vt="",Gt=-1,_n;for(const[Fn,An]of tt.children.entries()){const Hn=this._findSumOfRangesOfGroup(An);Hn>Gt&&(_n=An,Gt=Hn,vt=An.id)}Mt=vt,Ht=_n.children}}else Ht=tt.children;const xt=[],Jt=Array.from(Ht.values()).sort((Be,vt)=>{const Gt=new V(Be.symbol.range.startLineNumber,Be.symbol.range.endLineNumber),_n=new V(vt.symbol.range.startLineNumber,vt.symbol.range.endLineNumber);return this._comparator(Gt,_n)});for(const Be of Jt)xt.push(this._stickyModelFromOutlineElement(Be,Be.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new Y(void 0,xt,void 0),providerID:Mt}}_stickyModelFromOutlineElement(tt,Mt){const Ht=[];for(const Jt of tt.children.values())if(Jt.symbol.selectionRange.startLineNumber!==Jt.symbol.range.endLineNumber)if(Jt.symbol.selectionRange.startLineNumber!==Mt)Ht.push(this._stickyModelFromOutlineElement(Jt,Jt.symbol.selectionRange.startLineNumber));else for(const Nt of Jt.children.values())Ht.push(this._stickyModelFromOutlineElement(Nt,Jt.symbol.selectionRange.startLineNumber));Ht.sort((Jt,Nt)=>this._comparator(Jt.range,Nt.range));const xt=new V(tt.symbol.selectionRange.startLineNumber,tt.symbol.range.endLineNumber);return new Y(xt,Ht,void 0)}_comparator(tt,Mt){return tt.startLineNumber!==Mt.startLineNumber?tt.startLineNumber-Mt.startLineNumber:Mt.endLineNumber-tt.endLineNumber}_findSumOfRangesOfGroup(tt){let Mt=0;for(const Ht of tt.children.values())Mt+=this._findSumOfRangesOfGroup(Ht);return tt instanceof W.LC?Mt+tt.symbol.range.endLineNumber-tt.symbol.selectionRange.startLineNumber:Mt}};_e=te([D(1,S.u)],_e);class ee extends Pe{constructor(tt){super(tt),this._foldingLimitReporter=new $.B(tt)}createStickyModel(tt,Mt){const Ht=this._fromFoldingRegions(Mt),xt=this._editor.getModel();return new X(xt.uri,xt.getVersionId(),Ht,void 0)}isModelValid(tt){return tt!==null}_fromFoldingRegions(tt){const Mt=tt.length,Ht=[],xt=new Y(void 0,[],void 0);for(let Jt=0;Jt0&&(this.provider=this._register(new z.M(tt.getModel(),xt,Mt,this._foldingLimitReporter,void 0)))}isProviderValid(){return this.provider!==void 0}async createModelFromProvider(tt){var Mt,Ht;return(Ht=(Mt=this.provider)===null||Mt===void 0?void 0:Mt.compute(tt))!==null&&Ht!==void 0?Ht:null}};Te=te([D(2,S.u)],Te);var He=function(qt,tt,Mt,Ht){var xt=arguments.length,Jt=xt<3?tt:Ht===null?Ht=Object.getOwnPropertyDescriptor(tt,Mt):Ht,Nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Jt=Reflect.decorate(qt,tt,Mt,Ht);else for(var Be=qt.length-1;Be>=0;Be--)(Nt=qt[Be])&&(Jt=(xt<3?Nt(Jt):xt>3?Nt(tt,Mt,Jt):Nt(tt,Mt))||Jt);return xt>3&&Jt&&Object.defineProperty(tt,Mt,Jt),Jt},qe=function(qt,tt){return function(Mt,Ht){tt(Mt,Ht,qt)}};class Qe{constructor(tt,Mt,Ht){this.startLineNumber=tt,this.endLineNumber=Mt,this.nestingDepth=Ht}}let q=class extends I.jG{constructor(tt,Mt,Ht){super(),this._languageFeaturesService=Mt,this._languageConfigurationService=Ht,this._onDidChangeStickyScroll=this._register(new T.vl),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=tt,this._sessionStore=this._register(new I.Cm),this._updateSoon=this._register(new A.uC(()=>this.update(),50)),this._register(this._editor.onDidChangeConfiguration(xt=>{xt.hasChanged(115)&&this.readConfiguration()})),this.readConfiguration()}readConfiguration(){this._sessionStore.clear(),this._editor.getOption(115).enabled&&(this._sessionStore.add(this._editor.onDidChangeModel(()=>{this._model=null,this.updateStickyModelProvider(),this._onDidChangeStickyScroll.fire(),this.update()})),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this.update())),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this.update())),this._sessionStore.add((0,I.s)(()=>{var Mt;(Mt=this._stickyModelProvider)===null||Mt===void 0||Mt.dispose(),this._stickyModelProvider=null})),this.updateStickyModelProvider(),this.update())}getVersionId(){var tt;return(tt=this._model)===null||tt===void 0?void 0:tt.version}updateStickyModelProvider(){var tt;(tt=this._stickyModelProvider)===null||tt===void 0||tt.dispose(),this._stickyModelProvider=null;const Mt=this._editor;Mt.hasModel()&&(this._stickyModelProvider=new Ce(Mt,()=>this._updateSoon.schedule(),this._languageConfigurationService,this._languageFeaturesService))}async update(){var tt;(tt=this._cts)===null||tt===void 0||tt.dispose(!0),this._cts=new P.Q,await this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()}async updateStickyModel(tt){if(!this._editor.hasModel()||!this._stickyModelProvider||this._editor.getModel().isTooLargeForTokenization()){this._model=null;return}const Mt=await this._stickyModelProvider.update(tt);tt.isCancellationRequested||(this._model=Mt)}updateIndex(tt){return tt===-1?tt=0:tt<0&&(tt=-tt-2),tt}getCandidateStickyLinesIntersectingFromStickyModel(tt,Mt,Ht,xt,Jt){if(Mt.children.length===0)return;let Nt=Jt;const Be=[];for(let _n=0;_n_n-Fn)),Gt=this.updateIndex((0,a.El)(Be,tt.startLineNumber+xt,(_n,Fn)=>_n-Fn));for(let _n=vt;_n<=Gt;_n++){const Fn=Mt.children[_n];if(!Fn)return;if(Fn.range){const An=Fn.range.startLineNumber,Hn=Fn.range.endLineNumber;tt.startLineNumber<=Hn+1&&An-1<=tt.endLineNumber&&An!==Nt&&(Nt=An,Ht.push(new Qe(An,Hn-1,xt+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(tt,Fn,Ht,xt+1,An))}else this.getCandidateStickyLinesIntersectingFromStickyModel(tt,Fn,Ht,xt,Jt)}}getCandidateStickyLinesIntersecting(tt){var Mt,Ht;if(!(!((Mt=this._model)===null||Mt===void 0)&&Mt.element))return[];let xt=[];this.getCandidateStickyLinesIntersectingFromStickyModel(tt,this._model.element,xt,0,-1);const Jt=(Ht=this._editor._getViewModel())===null||Ht===void 0?void 0:Ht.getHiddenAreas();if(Jt)for(const Nt of Jt)xt=xt.filter(Be=>!(Be.startLineNumber>=Nt.startLineNumber&&Be.endLineNumber<=Nt.endLineNumber+1));return xt}};q=He([qe(1,S.u),qe(2,E.JZ)],q);var ye=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),ge=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js"),be=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),Se=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToSymbol.js"),ae=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js"),me=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"),fe=e("./node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js"),le=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingModel.js"),oe=function(qt,tt,Mt,Ht){var xt=arguments.length,Jt=xt<3?tt:Ht===null?Ht=Object.getOwnPropertyDescriptor(tt,Mt):Ht,Nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Jt=Reflect.decorate(qt,tt,Mt,Ht);else for(var Be=qt.length-1;Be>=0;Be--)(Nt=qt[Be])&&(Jt=(xt<3?Nt(Jt):xt>3?Nt(tt,Mt,Jt):Nt(tt,Mt))||Jt);return xt>3&&Jt&&Object.defineProperty(tt,Mt,Jt),Jt},ne=function(qt,tt){return function(Mt,Ht){tt(Mt,Ht,qt)}},de;let Le=de=class extends I.jG{constructor(tt,Mt,Ht,xt,Jt,Nt,Be){super(),this._editor=tt,this._contextMenuService=Mt,this._languageFeaturesService=Ht,this._instaService=xt,this._contextKeyService=Be,this._sessionStore=new I.Cm,this._foldingModel=null,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._showEndForLine=null,this._stickyScrollWidget=new U(this._editor),this._stickyLineCandidateProvider=new q(this._editor,Ht,Jt),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new v([],[],0),this._onDidResize(),this._readConfiguration();const vt=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration(_n=>{(_n.hasChanged(115)||_n.hasChanged(73)||_n.hasChanged(67)||_n.hasChanged(110))&&this._readConfiguration()})),this._register(f.ko(vt,f.Bx.CONTEXT_MENU,async _n=>{this._onContextMenu(f.zk(vt),_n)})),this._stickyScrollFocusedContextKey=x.R.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=x.R.stickyScrollVisible.bindTo(this._contextKeyService);const Gt=this._register(f.w5(vt));this._register(Gt.onDidBlur(_n=>{this._positionRevealed===!1&&vt.clientHeight===0?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()})),this._register(Gt.onDidFocus(_n=>{this.focus()})),this._registerMouseListeners(),this._register(f.ko(vt,f.Bx.MOUSE_DOWN,_n=>{this._onMouseDown=!0}))}static get(tt){return tt.getContribution(de.ID)}_disposeFocusStickyScrollStore(){var tt;this._stickyScrollFocusedContextKey.set(!1),(tt=this._focusDisposableStore)===null||tt===void 0||tt.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown){this._onMouseDown=!1,this._editor.focus();return}this._stickyScrollFocusedContextKey.get()!==!0&&(this._focused=!0,this._focusDisposableStore=new I.Cm,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(tt){this._focusedStickyElementIndex=tt?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){const tt=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:tt[this._focusedStickyElementIndex],column:1})}_revealPosition(tt){this._reveaInEditor(tt,()=>this._editor.revealPosition(tt))}_revealLineInCenterIfOutsideViewport(tt){this._reveaInEditor(tt,()=>this._editor.revealLineInCenterIfOutsideViewport(tt.lineNumber,0))}_reveaInEditor(tt,Mt){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,Mt(),this._editor.setSelection(be.Q.fromPositions(tt)),this._editor.focus()}_registerMouseListeners(){const tt=this._register(new I.Cm),Mt=this._register(new ge.gi(this._editor,{extractLineNumberFromMouseEvent:Jt=>{const Nt=this._stickyScrollWidget.getEditorPositionFromNode(Jt.target.element);return Nt?Nt.lineNumber:0}})),Ht=Jt=>{if(!this._editor.hasModel()||Jt.target.type!==12||Jt.target.detail!==this._stickyScrollWidget.getId())return null;const Nt=Jt.target.element;if(!Nt||Nt.innerText!==Nt.innerHTML)return null;const Be=this._stickyScrollWidget.getEditorPositionFromNode(Nt);return Be?{range:new be.Q(Be.lineNumber,Be.column,Be.lineNumber,Be.column+Nt.innerText.length),textElement:Nt}:null},xt=this._stickyScrollWidget.getDomNode();this._register(f.b2(xt,f.Bx.CLICK,Jt=>{if(Jt.ctrlKey||Jt.altKey||Jt.metaKey||!Jt.leftButton)return;if(Jt.shiftKey){const Gt=this._stickyScrollWidget.getLineIndexFromChildDomNode(Jt.target);if(Gt===null)return;const _n=new c.y(this._endLineNumbers[Gt],1);this._revealLineInCenterIfOutsideViewport(_n);return}if(this._stickyScrollWidget.isInFoldingIconDomNode(Jt.target)){const Gt=this._stickyScrollWidget.getLineNumberFromChildDomNode(Jt.target);this._toggleFoldingRegionForLine(Gt);return}if(!this._stickyScrollWidget.isInStickyLine(Jt.target))return;let vt=this._stickyScrollWidget.getEditorPositionFromNode(Jt.target);if(!vt){const Gt=this._stickyScrollWidget.getLineNumberFromChildDomNode(Jt.target);if(Gt===null)return;vt=new c.y(Gt,1)}this._revealPosition(vt)})),this._register(f.b2(xt,f.Bx.MOUSE_MOVE,Jt=>{if(Jt.shiftKey){const Nt=this._stickyScrollWidget.getLineIndexFromChildDomNode(Jt.target);if(Nt===null||this._showEndForLine!==null&&this._showEndForLine===Nt)return;this._showEndForLine=Nt,this._renderStickyScroll();return}this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(f.ko(xt,f.Bx.MOUSE_LEAVE,Jt=>{this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(Mt.onMouseMoveOrRelevantKeyDown(([Jt,Nt])=>{const Be=Ht(Jt);if(!Be||!Jt.hasTriggerModifier||!this._editor.hasModel()){tt.clear();return}const{range:vt,textElement:Gt}=Be;if(!vt.equalsRange(this._stickyRangeProjectedOnEditor))this._stickyRangeProjectedOnEditor=vt,tt.clear();else if(Gt.style.textDecoration==="underline")return;const _n=new P.Q;tt.add((0,I.s)(()=>_n.dispose(!0)));let Fn;(0,Se.hE)(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new c.y(vt.startLineNumber,vt.startColumn+1),_n.token).then(An=>{if(!_n.token.isCancellationRequested)if(An.length!==0){this._candidateDefinitionsLength=An.length;const Hn=Gt;Fn!==Hn?(tt.clear(),Fn=Hn,Fn.style.textDecoration="underline",tt.add((0,I.s)(()=>{Fn.style.textDecoration="none"}))):Fn||(Fn=Hn,Fn.style.textDecoration="underline",tt.add((0,I.s)(()=>{Fn.style.textDecoration="none"})))}else tt.clear()})})),this._register(Mt.onCancel(()=>{tt.clear()})),this._register(Mt.onExecute(async Jt=>{if(Jt.target.type!==12||Jt.target.detail!==this._stickyScrollWidget.getId())return;const Nt=this._stickyScrollWidget.getEditorPositionFromNode(Jt.target.element);Nt&&(!this._editor.hasModel()||!this._stickyRangeProjectedOnEditor||(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:Nt.lineNumber,column:1})),this._instaService.invokeFunction(ae.U,Jt,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor})))}))}_onContextMenu(tt,Mt){const Ht=new fe.P(tt,Mt);this._contextMenuService.showContextMenu({menuId:M.D8.StickyScrollContext,getAnchor:()=>Ht})}_toggleFoldingRegionForLine(tt){if(!this._foldingModel||tt===null)return;const Mt=this._stickyScrollWidget.getRenderedStickyLine(tt),Ht=Mt?.foldingIcon;if(!Ht)return;(0,le.bC)(this._foldingModel,Number.MAX_VALUE,[tt]),Ht.isCollapsed=!Ht.isCollapsed;const xt=(Ht.isCollapsed?this._editor.getTopForLineNumber(Ht.foldingEndLine):this._editor.getTopForLineNumber(Ht.foldingStartLine))-this._editor.getOption(67)*Mt.index+1;this._editor.setScrollTop(xt),this._renderStickyScroll(tt)}_readConfiguration(){const tt=this._editor.getOption(115);if(tt.enabled===!1){this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),this._enabled=!1;return}else tt.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange(Ht=>{Ht.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())})),this._sessionStore.add(this._editor.onDidLayoutChange(()=>this._onDidResize())),this._sessionStore.add(this._editor.onDidChangeModelTokens(Ht=>this._onTokensChange(Ht))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll(()=>{this._showEndForLine=null,this._renderStickyScroll()})),this._enabled=!0);this._editor.getOption(68).renderType===2&&this._sessionStore.add(this._editor.onDidChangeCursorPosition(()=>{this._showEndForLine=null,this._renderStickyScroll(0)}))}_needsUpdate(tt){const Mt=this._stickyScrollWidget.getCurrentLines();for(const Ht of Mt)for(const xt of tt.ranges)if(Ht>=xt.fromLineNumber&&Ht<=xt.toLineNumber)return!0;return!1}_onTokensChange(tt){this._needsUpdate(tt)&&this._renderStickyScroll(0)}_onDidResize(){const Mt=this._editor.getLayoutInfo().height/this._editor.getOption(67);this._maxStickyLines=Math.round(Mt*.25)}async _renderStickyScroll(tt){var Mt,Ht;const xt=this._editor.getModel();if(!xt||xt.isTooLargeForTokenization()){this._foldingModel=null,this._stickyScrollWidget.setState(void 0,null);return}const Jt=this._stickyLineCandidateProvider.getVersionId();if(Jt===void 0||Jt===xt.getVersionId())if(this._foldingModel=(Ht=await((Mt=$.W.get(this._editor))===null||Mt===void 0?void 0:Mt.getFoldingModel()))!==null&&Ht!==void 0?Ht:null,this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(this._widgetState.startLineNumbers.length!==0),!this._focused)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,tt);else if(this._focusedStickyElementIndex===-1)this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,tt),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,this._focusedStickyElementIndex!==-1&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{const Nt=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];this._stickyScrollWidget.setState(this._widgetState,this._foldingModel,tt),this._stickyScrollWidget.lineNumberCount===0?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(Nt)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}}findScrollWidgetState(){const tt=this._editor.getOption(67),Mt=Math.min(this._maxStickyLines,this._editor.getOption(115).maxLineCount),Ht=this._editor.getScrollTop();let xt=0;const Jt=[],Nt=[],Be=this._editor.getVisibleRanges();if(Be.length!==0){const vt=new V(Be[0].startLineNumber,Be[Be.length-1].endLineNumber),Gt=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(vt);for(const _n of Gt){const Fn=_n.startLineNumber,An=_n.endLineNumber,Hn=_n.nestingDepth;if(An-Fn>0){const Kn=(Hn-1)*tt,mi=Hn*tt,yi=this._editor.getBottomForLineNumber(Fn)-Ht,ri=this._editor.getTopForLineNumber(An)-Ht,fi=this._editor.getBottomForLineNumber(An)-Ht;if(Kn>ri&&Kn<=fi){Jt.push(Fn),Nt.push(An+1),xt=fi-mi;break}else mi>yi&&mi<=fi&&(Jt.push(Fn),Nt.push(An+1));if(Jt.length===Mt)break}}}return this._endLineNumbers=Nt,new v(Jt,Nt,xt,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};Le.ID="store.contrib.stickyScrollController",Le=de=oe([ne(1,ye.Z),ne(2,S.u),ne(3,re._Y),ne(4,E.JZ),ne(5,me.U),ne(6,g.fN)],Le);class We extends M.L{constructor(){super({id:"editor.action.toggleStickyScroll",title:{...(0,F.aS)("toggleEditorStickyScroll","Toggle Editor Sticky Scroll"),mnemonicTitle:(0,F.kg)({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Editor Sticky Scroll")},category:k.View,toggled:{condition:g.M$.equals("config.editor.stickyScroll.enabled",!0),title:(0,F.kg)("stickyScroll","Sticky Scroll"),mnemonicTitle:(0,F.kg)({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:M.D8.CommandPalette},{id:M.D8.MenubarAppearanceMenu,group:"4_editor",order:3},{id:M.D8.StickyScrollContext}]})}async run(tt){const Mt=tt.get(L.pG),Ht=!Mt.getValue("editor.stickyScroll.enabled");return Mt.updateValue("editor.stickyScroll.enabled",Ht)}}const we=100;class Ue extends r.qO{constructor(){super({id:"editor.action.focusStickyScroll",title:{...(0,F.aS)("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:(0,F.kg)({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll")},precondition:g.M$.and(g.M$.has("config.editor.stickyScroll.enabled"),x.R.stickyScrollVisible),menu:[{id:M.D8.CommandPalette}]})}runEditorCommand(tt,Mt){var Ht;(Ht=Le.get(Mt))===null||Ht===void 0||Ht.focus()}}class lt extends r.qO{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:(0,F.aS)("selectNextStickyScrollLine.title","Select next sticky scroll line"),precondition:x.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:we,primary:18}})}runEditorCommand(tt,Mt){var Ht;(Ht=Le.get(Mt))===null||Ht===void 0||Ht.focusNext()}}class Et extends r.qO{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:(0,F.aS)("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),precondition:x.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:we,primary:16}})}runEditorCommand(tt,Mt){var Ht;(Ht=Le.get(Mt))===null||Ht===void 0||Ht.focusPrevious()}}class Kt extends r.qO{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:(0,F.aS)("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),precondition:x.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:we,primary:3}})}runEditorCommand(tt,Mt){var Ht;(Ht=Le.get(Mt))===null||Ht===void 0||Ht.goToFocused()}}class Zt extends r.qO{constructor(){super({id:"editor.action.selectEditor",title:(0,F.aS)("selectEditor.title","Select Editor"),precondition:x.R.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:we,primary:9}})}runEditorCommand(tt,Mt){var Ht;(Ht=Le.get(Mt))===null||Ht===void 0||Ht.selectEditor()}}(0,r.HW)(Le.ID,Le,1),(0,M.ug)(We),(0,M.ug)(Ue),(0,M.ug)(Et),(0,M.ug)(lt),(0,M.ug)(Kt),(0,M.ug)(Zt)},"./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/completionModel.js":function(pt,Me,e){e.d(Me,{C:function(){return L},O:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");class M{constructor(x,I){this.leadingLineContent=x,this.characterCountDelta=I}}class L{constructor(x,I,S,f,d,a,s=F.Nd.default,n=void 0){this.clipboardText=n,this._snippetCompareFn=L._compareCompletionItems,this._items=x,this._column=I,this._wordDistance=f,this._options=d,this._refilterKind=1,this._lineContext=S,this._fuzzyScoreOptions=s,a==="top"?this._snippetCompareFn=L._compareCompletionItemsSnippetsUp:a==="bottom"&&(this._snippetCompareFn=L._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(x){(this._lineContext.leadingLineContent!==x.leadingLineContent||this._lineContext.characterCountDelta!==x.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta0&&S[0].container.incomplete&&x.add(I);return x}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){this._refilterKind!==0&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;const x=[],{leadingLineContent:I,characterCountDelta:S}=this._lineContext;let f="",d="";const a=this._refilterKind===1?this._items:this._filteredItems,s=[],n=!this._options.filterGraceful||a.length>2e3?F.dt:F.uU;for(let i=0;i=C)c.score=F.ne.Default;else if(typeof c.completion.filterText=="string"){const v=n(f,d,h,c.completion.filterText,c.filterTextLow,0,this._fuzzyScoreOptions);if(!v)continue;(0,k.W1)(c.completion.filterText,c.textLabel)===0?c.score=v:(c.score=(0,F.Jo)(f,d,h,c.textLabel,c.labelLow,0),c.score[0]=v[0])}else{const v=n(f,d,h,c.textLabel,c.labelLow,0,this._fuzzyScoreOptions);if(!v)continue;c.score=v}}c.idx=i,c.distance=this._wordDistance.distance(c.position,c.completion),s.push(c),x.push(c.textLabel.length)}this._filteredItems=s.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:x.length?(0,r.SO)(x.length-.85,x,(i,c)=>i-c):0}}static _compareCompletionItems(x,I){return x.score[0]>I.score[0]?-1:x.score[0]I.distance?1:x.idxI.idx?1:0}static _compareCompletionItemsSnippetsDown(x,I){if(x.completion.kind!==I.completion.kind){if(x.completion.kind===27)return 1;if(I.completion.kind===27)return-1}return L._compareCompletionItems(x,I)}static _compareCompletionItemsSnippetsUp(x,I){if(x.completion.kind!==I.completion.kind){if(x.completion.kind===27)return-1;if(I.completion.kind===27)return 1}return L._compareCompletionItems(x,I)}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js":function(pt,Me,e){e.d(Me,{aR:function(){return w},dt:function(){return C},f3:function(){return b},l1:function(){return v},ob:function(){return u},p3:function(){return A},r3:function(){return T}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.js"),a=e("./node_modules/monaco-editor/esm/vs/nls.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),m=e("./node_modules/monaco-editor/esm/vs/platform/history/browser/contextScopedHistoryWidget.js");const u={Visible:m.dg,HasFocusedSuggestion:new i.N1("suggestWidgetHasFocusedSuggestion",!1,(0,a.kg)("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new i.N1("suggestWidgetDetailsVisible",!1,(0,a.kg)("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new i.N1("suggestWidgetMultipleSuggestions",!1,(0,a.kg)("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new i.N1("suggestionMakesTextEdit",!0,(0,a.kg)("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new i.N1("acceptSuggestionOnEnter",!0,(0,a.kg)("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new i.N1("suggestionHasInsertAndReplaceRange",!1,(0,a.kg)("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new i.N1("suggestionInsertMode",void 0,{type:"string",description:(0,a.kg)("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new i.N1("suggestionCanResolve",!1,(0,a.kg)("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},C=new s.D8("suggestWidgetStatusBar");class h{constructor(W,$,z,J){var B;this.position=W,this.completion=$,this.container=z,this.provider=J,this.isInvalid=!1,this.score=k.ne.Default,this.distance=0,this.textLabel=typeof $.label=="string"?$.label:(B=$.label)===null||B===void 0?void 0:B.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=$.sortText&&$.sortText.toLowerCase(),this.filterTextLow=$.filterText&&$.filterText.toLowerCase(),this.extensionId=$.extensionId,S.Q.isIRange($.range)?(this.editStart=new I.y($.range.startLineNumber,$.range.startColumn),this.editInsertEnd=new I.y($.range.endLineNumber,$.range.endColumn),this.editReplaceEnd=new I.y($.range.endLineNumber,$.range.endColumn),this.isInvalid=this.isInvalid||S.Q.spansMultipleLines($.range)||$.range.startLineNumber!==W.lineNumber):(this.editStart=new I.y($.range.insert.startLineNumber,$.range.insert.startColumn),this.editInsertEnd=new I.y($.range.insert.endLineNumber,$.range.insert.endColumn),this.editReplaceEnd=new I.y($.range.replace.endLineNumber,$.range.replace.endColumn),this.isInvalid=this.isInvalid||S.Q.spansMultipleLines($.range.insert)||S.Q.spansMultipleLines($.range.replace)||$.range.insert.startLineNumber!==W.lineNumber||$.range.replace.startLineNumber!==W.lineNumber||$.range.insert.startColumn!==$.range.replace.startColumn),typeof J.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return this._resolveDuration!==void 0}get resolveDuration(){return this._resolveDuration!==void 0?this._resolveDuration:-1}async resolve(W){if(!this._resolveCache){const $=W.onCancellationRequested(()=>{this._resolveCache=void 0,this._resolveDuration=void 0}),z=new L.W(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,W)).then(J=>{Object.assign(this.completion,J),this._resolveDuration=z.elapsed()},J=>{(0,F.MB)(J)&&(this._resolveCache=void 0,this._resolveDuration=void 0)}).finally(()=>{$.dispose()})}return this._resolveCache}}class v{constructor(W=2,$=new Set,z=new Set,J=new Map,B=!0){this.snippetSortOrder=W,this.kindFilter=$,this.providerFilter=z,this.providerItemsToReuse=J,this.showDeprecated=B}}v.default=new v;let p;function b(){return p}class O{constructor(W,$,z,J){this.items=W,this.needsClipboard=$,this.durations=z,this.disposable=J}}async function w(E,W,$,z=v.default,J={triggerKind:0},B=r.X.None){const V=new L.W;$=$.clone();const Y=W.getWordAtPosition($),X=Y?new S.Q($.lineNumber,Y.startColumn,$.lineNumber,Y.endColumn):S.Q.fromPositions($),ie={replace:X,insert:X.setEndPosition($.lineNumber,$.column)},re=[],te=new M.Cm,D=[];let he=!1;const ve=(Pe,_e,ee)=>{var De,Te,He;let qe=!1;if(!_e)return qe;for(const Qe of _e.suggestions)if(!z.kindFilter.has(Qe.kind)){if(!z.showDeprecated&&(!((De=Qe?.tags)===null||De===void 0)&&De.includes(1)))continue;Qe.range||(Qe.range=ie),Qe.sortText||(Qe.sortText=typeof Qe.label=="string"?Qe.label:Qe.label.label),!he&&Qe.insertTextRules&&Qe.insertTextRules&4&&(he=d.fr.guessNeedsClipboard(Qe.insertText)),re.push(new h($,Qe,_e,Pe)),qe=!0}return(0,M.Xm)(_e)&&te.add(_e),D.push({providerName:(Te=Pe._debugDisplayName)!==null&&Te!==void 0?Te:"unknown_provider",elapsedProvider:(He=_e.duration)!==null&&He!==void 0?He:-1,elapsedOverall:ee.elapsed()}),qe},Ce=(async()=>{if(!p||z.kindFilter.has(27))return;const Pe=z.providerItemsToReuse.get(p);if(Pe){Pe.forEach(De=>re.push(De));return}if(z.providerFilter.size>0&&!z.providerFilter.has(p))return;const _e=new L.W,ee=await p.provideCompletionItems(W,$,J,B);ve(p,ee,_e)})();for(const Pe of E.orderedGroups(W)){let _e=!1;if(await Promise.all(Pe.map(async ee=>{if(z.providerItemsToReuse.has(ee)){const De=z.providerItemsToReuse.get(ee);De.forEach(Te=>re.push(Te)),_e=_e||De.length>0;return}if(!(z.providerFilter.size>0&&!z.providerFilter.has(ee)))try{const De=new L.W,Te=await ee.provideCompletionItems(W,$,J,B);_e=ve(ee,Te,De)||_e}catch(De){(0,F.M_)(De)}})),_e||B.isCancellationRequested)break}return await Ce,B.isCancellationRequested?(te.dispose(),Promise.reject(new F.AL)):new O(re.sort(P(z.snippetSortOrder)),he,{entries:D,elapsed:V.elapsed()},te)}function j(E,W){if(E.sortTextLow&&W.sortTextLow){if(E.sortTextLowW.sortTextLow)return 1}return E.textLabelW.textLabel?1:E.completion.kind-W.completion.kind}function U(E,W){if(E.completion.kind!==W.completion.kind){if(E.completion.kind===27)return-1;if(W.completion.kind===27)return 1}return j(E,W)}function K(E,W){if(E.completion.kind!==W.completion.kind){if(E.completion.kind===27)return 1;if(W.completion.kind===27)return-1}return j(E,W)}const G=new Map;G.set(0,U),G.set(2,K),G.set(1,j);function P(E){return G.get(E)}n.w.registerCommand("_executeCompletionItemProvider",async(E,...W)=>{const[$,z,J,B]=W;(0,g.j)(x.r.isUri($)),(0,g.j)(I.y.isIPosition(z)),(0,g.j)(typeof J=="string"||!J),(0,g.j)(typeof B=="number"||!B);const{completionProvider:V}=E.get(c.u),Y=await E.get(f.b).createModelReference($);try{const X={incomplete:!1,suggestions:[]},ie=[],re=Y.object.textEditorModel.validatePosition(z),te=await w(V,Y.object.textEditorModel,re,void 0,{triggerCharacter:J??void 0,triggerKind:J?1:0});for(const D of te.items)ie.length<(B??0)&&ie.push(D.resolve(r.X.None)),X.incomplete=X.incomplete||D.container.incomplete,X.suggestions.push(D.completion);try{return await Promise.all(ie),X}finally{setTimeout(()=>te.disposable.dispose(),100)}}finally{Y.dispose()}});function A(E,W){var $;($=E.getContribution("editor.contrib.suggestController"))===null||$===void 0||$.triggerSuggest(new Set().add(W),void 0,!0)}class T{static isAllOff(W){return W.other==="off"&&W.comments==="off"&&W.strings==="off"}static isAllOn(W){return W.other==="on"&&W.comments==="on"&&W.strings==="on"}static valueFor(W,$){switch($){case 1:return W.comments;case 2:return W.strings;default:return W.other}}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.js":function(pt,Me,e){e.d(Me,{D:function(){return Sn}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/keybindings.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/stableEditorScroll.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetParser.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestMemory.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),v=function(Je,Ne,ft,St){var rt=arguments.length,Ge=rt<3?Ne:St===null?St=Object.getOwnPropertyDescriptor(Ne,ft):St,nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ge=Reflect.decorate(Je,Ne,ft,St);else for(var it=Je.length-1;it>=0;it--)(nt=Je[it])&&(Ge=(rt<3?nt(Ge):rt>3?nt(Ne,ft,Ge):nt(Ne,ft))||Ge);return rt>3&&Ge&&Object.defineProperty(Ne,ft,Ge),Ge},p=function(Je,Ne){return function(ft,St){Ne(ft,St,Je)}},b;let O=b=class{constructor(Ne,ft){this._editor=Ne,this._enabled=!1,this._ckAtEnd=b.AtEnd.bindTo(ft),this._configListener=this._editor.onDidChangeConfiguration(St=>St.hasChanged(123)&&this._update()),this._update()}dispose(){var Ne;this._configListener.dispose(),(Ne=this._selectionListener)===null||Ne===void 0||Ne.dispose(),this._ckAtEnd.reset()}_update(){const Ne=this._editor.getOption(123)==="on";if(this._enabled!==Ne)if(this._enabled=Ne,this._enabled){const ft=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}const St=this._editor.getModel(),rt=this._editor.getSelection(),Ge=St.getWordAtPosition(rt.getStartPosition());if(!Ge){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(Ge.endColumn===rt.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(ft),ft()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};O.AtEnd=new h.N1("atEndOfWord",!1),O=b=v([p(1,h.fN)],O);var w=e("./node_modules/monaco-editor/esm/vs/nls.js"),j=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),U=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),K=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),G=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js"),P=function(Je,Ne,ft,St){var rt=arguments.length,Ge=rt<3?Ne:St===null?St=Object.getOwnPropertyDescriptor(Ne,ft):St,nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ge=Reflect.decorate(Je,Ne,ft,St);else for(var it=Je.length-1;it>=0;it--)(nt=Je[it])&&(Ge=(rt<3?nt(Ge):rt>3?nt(Ne,ft,Ge):nt(Ne,ft))||Ge);return rt>3&&Ge&&Object.defineProperty(Ne,ft,Ge),Ge},A=function(Je,Ne){return function(ft,St){Ne(ft,St,Je)}},T;let E=T=class{constructor(Ne,ft){this._editor=Ne,this._index=0,this._ckOtherSuggestions=T.OtherSuggestions.bindTo(ft)}dispose(){this.reset()}reset(){var Ne;this._ckOtherSuggestions.reset(),(Ne=this._listener)===null||Ne===void 0||Ne.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:Ne,index:ft},St){if(Ne.items.length===0){this.reset();return}if(T._moveIndex(!0,Ne,ft)===ft){this.reset();return}this._acceptNext=St,this._model=Ne,this._index=ft,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(Ne,ft,St){let rt=St;for(let Ge=ft.items.length;Ge>0&&(rt=(rt+ft.items.length+(Ne?1:-1))%ft.items.length,!(rt===St||!ft.items[rt].completion.additionalTextEdits));Ge--);return rt}next(){this._move(!0)}prev(){this._move(!1)}_move(Ne){if(this._model)try{this._ignore=!0,this._index=T._moveIndex(Ne,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};E.OtherSuggestions=new h.N1("hasOtherSuggestions",!1),E=T=P([A(1,h.fN)],E);var W=e("./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js");class ${constructor(Ne,ft,St,rt){this._disposables=new x.Cm,this._disposables.add(St.onDidSuggest(Ge=>{Ge.completionModel.items.length===0&&this.reset()})),this._disposables.add(St.onDidCancel(Ge=>{this.reset()})),this._disposables.add(ft.onDidShow(()=>this._onItem(ft.getFocusedItem()))),this._disposables.add(ft.onDidFocus(this._onItem,this)),this._disposables.add(ft.onDidHide(this.reset,this)),this._disposables.add(Ne.onWillType(Ge=>{if(this._active&&!ft.isFrozen()&&St.state!==0){const nt=Ge.charCodeAt(Ge.length-1);this._active.acceptCharacters.has(nt)&&Ne.getOption(0)&&rt(this._active.item)}}))}_onItem(Ne){if(!Ne||!(0,F.EI)(Ne.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===Ne.item)return;const ft=new W.y;for(const St of Ne.item.completion.commitCharacters)St.length>0&&ft.add(St.charCodeAt(0));this._active={acceptCharacters:ft,item:Ne}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}var z=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestModel.js");class J{constructor(Ne,ft){this._disposables=new x.Cm,this._lastOvertyped=[],this._locked=!1,this._disposables.add(Ne.onWillType(()=>{if(this._locked||!Ne.hasModel())return;const St=Ne.getSelections(),rt=St.length;let Ge=!1;for(let it=0;itJ._maxSelectionLength)return;this._lastOvertyped[it]={value:nt.getValueInRange(bt),multiline:bt.startLineNumber!==bt.endLineNumber}}})),this._disposables.add(ft.onDidTrigger(St=>{this._locked=!0})),this._disposables.add(ft.onDidCancel(St=>{this._locked=!1}))}getLastOvertypedInfo(Ne){if(Ne>=0&&Ne=0;it--)(nt=Je[it])&&(Ge=(rt<3?nt(Ge):rt>3?nt(Ne,ft,Ge):nt(Ne,ft))||Ge);return rt>3&&Ge&&Object.defineProperty(Ne,ft,Ge),Ge},Ce=function(Je,Ne){return function(ft,St){Ne(ft,St,Je)}};class Pe extends D.oq{updateLabel(){const Ne=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!Ne)return super.updateLabel();this.label&&(this.label.textContent=(0,w.kg)({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,Pe.symbolPrintEnter(Ne)))}static symbolPrintEnter(Ne){var ft;return(ft=Ne.getLabel())===null||ft===void 0?void 0:ft.replace(/\benter\b/gi,"\u23CE")}}let _e=class{constructor(Ne,ft,St,rt,Ge){this._menuId=ft,this._menuService=rt,this._contextKeyService=Ge,this._menuDisposables=new x.Cm,this.element=B.BC(Ne,B.$(".suggest-status-bar"));const nt=it=>it instanceof he.Xe?St.createInstance(Pe,it,void 0):void 0;this._leftActions=new te.E(this.element,{actionViewItemProvider:nt}),this._rightActions=new te.E(this.element,{actionViewItemProvider:nt}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this._leftActions.dispose(),this._rightActions.dispose(),this.element.remove()}show(){const Ne=this._menuService.createMenu(this._menuId,this._contextKeyService),ft=()=>{const St=[],rt=[];for(const[Ge,nt]of Ne.getActions())Ge==="left"?St.push(...nt):rt.push(...nt);this._leftActions.clear(),this._leftActions.push(St),this._rightActions.clear(),this._rightActions.push(rt)};this._menuDisposables.add(Ne.onDidChange(()=>ft())),this._menuDisposables.add(Ne)}hide(){this._menuDisposables.clear()}};_e=ve([Ce(2,U._Y),Ce(3,he.ez),Ce(4,h.fN)],_e);var ee=e("./node_modules/monaco-editor/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js"),De=e("./node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js"),Te=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),He=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js"),qe=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),Qe=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/resizable/resizable.js"),q=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement.js"),ye=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),ge=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),be=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),Se=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js"),ae=function(Je,Ne,ft,St){var rt=arguments.length,Ge=rt<3?Ne:St===null?St=Object.getOwnPropertyDescriptor(Ne,ft):St,nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ge=Reflect.decorate(Je,Ne,ft,St);else for(var it=Je.length-1;it>=0;it--)(nt=Je[it])&&(Ge=(rt<3?nt(Ge):rt>3?nt(Ne,ft,Ge):nt(Ne,ft))||Ge);return rt>3&&Ge&&Object.defineProperty(Ne,ft,Ge),Ge},me=function(Je,Ne){return function(ft,St){Ne(ft,St,Je)}};function fe(Je){return!!Je&&!!(Je.completion.documentation||Je.completion.detail&&Je.completion.detail!==Je.completion.label)}let le=class{constructor(Ne,ft){this._editor=Ne,this._onDidClose=new L.vl,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new L.vl,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new x.Cm,this._renderDisposeable=new x.Cm,this._borderWidth=1,this._size=new B.fg(330,0),this.domNode=B.$(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=ft.createInstance(Se.T,{editor:Ne}),this._body=B.$(".body"),this._scrollbar=new q.MU(this._body,{alwaysConsumeMouseWheel:!0}),B.BC(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=B.BC(this._body,B.$(".header")),this._close=B.BC(this._header,B.$("span"+ge.L.asCSSSelector(ye.W.close))),this._close.title=w.kg("details.close","Close"),this._type=B.BC(this._header,B.$("p.type")),this._docs=B.BC(this._body,B.$("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(St=>{St.hasChanged(50)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){const Ne=this._editor.getOptions(),ft=Ne.get(50),St=ft.getMassagedFontFamily(),rt=Ne.get(119)||ft.fontSize,Ge=Ne.get(120)||ft.lineHeight,nt=ft.fontWeight,it=`${rt}px`,bt=`${Ge}px`;this.domNode.style.fontSize=it,this.domNode.style.lineHeight=`${Ge/rt}`,this.domNode.style.fontWeight=nt,this.domNode.style.fontFeatureSettings=ft.fontFeatureSettings,this._type.style.fontFamily=St,this._close.style.height=bt,this._close.style.width=bt}getLayoutInfo(){const Ne=this._editor.getOption(120)||this._editor.getOption(50).lineHeight,ft=this._borderWidth,St=ft*2;return{lineHeight:Ne,borderWidth:ft,borderHeight:St,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=w.kg("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,this.getLayoutInfo().lineHeight*2),this._onDidChangeContents.fire(this)}renderItem(Ne,ft){var St,rt;this._renderDisposeable.clear();let{detail:Ge,documentation:nt}=Ne.completion;if(ft){let it="";it+=`score: ${Ne.score[0]} `,it+=`prefix: ${(St=Ne.word)!==null&&St!==void 0?St:"(no prefix)"} `,it+=`word: ${Ne.completion.filterText?Ne.completion.filterText+" (filterText)":Ne.textLabel} `,it+=`distance: ${Ne.distance} (localityBonus-setting) `,it+=`index: ${Ne.idx}, based on ${Ne.completion.sortText&&`sortText: "${Ne.completion.sortText}"`||"label"} `,it+=`commit_chars: ${(rt=Ne.completion.commitCharacters)===null||rt===void 0?void 0:rt.join("")} `,nt=new be.Bc().appendCodeblock("empty",it),Ge=`Provider: ${Ne.provider._debugDisplayName}`}if(!ft&&!fe(Ne)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),Ge){const it=Ge.length>1e5?`${Ge.substr(0,1e5)}\u2026`:Ge;this._type.textContent=it,this._type.title=it,B.WU(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(it))}else B.w_(this._type),this._type.title="",B.jD(this._type),this.domNode.classList.add("no-type");if(B.w_(this._docs),typeof nt=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=nt;else if(nt){this._docs.classList.add("markdown-docs"),B.w_(this._docs);const it=this._markdownRenderer.render(nt);this._docs.appendChild(it.element),this._renderDisposeable.add(it),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=it=>{it.preventDefault(),it.stopPropagation()},this._close.onclick=it=>{it.preventDefault(),it.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(Ne,ft){const St=new B.fg(Ne,ft);B.fg.equals(St,this._size)||(this._size=St,B.Ej(this.domNode,Ne,ft)),this._scrollbar.scanDomNode()}scrollDown(Ne=8){this._body.scrollTop+=Ne}scrollUp(Ne=8){this._body.scrollTop-=Ne}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(Ne){this._borderWidth=Ne}get borderWidth(){return this._borderWidth}};le=ae([me(1,U._Y)],le);class oe{constructor(Ne,ft){this.widget=Ne,this._editor=ft,this.allowEditorOverflow=!0,this._disposables=new x.Cm,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new Qe.v,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(Ne.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let St,rt,Ge=0,nt=0;this._disposables.add(this._resizable.onDidWillResize(()=>{St=this._topLeft,rt=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(it=>{if(St&&rt){this.widget.layout(it.dimension.width,it.dimension.height);let bt=!1;it.west&&(nt=rt.width-it.dimension.width,bt=!0),it.north&&(Ge=rt.height-it.dimension.height,bt=!0),bt&&this._applyTopLeft({top:St.top+Ge,left:St.left+nt})}it.done&&(St=void 0,rt=void 0,Ge=0,nt=0,this._userSize=it.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var it;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(it=this._userSize)!==null&&it!==void 0?it:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(Ne=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),Ne&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(Ne,ft){var St;const rt=Ne.getBoundingClientRect();this._anchorBox=rt,this._preferAlignAtTop=ft,this._placeAtAnchor(this._anchorBox,(St=this._userSize)!==null&&St!==void 0?St:this.widget.size,ft)}_placeAtAnchor(Ne,ft,St){var rt;const Ge=B.tG(this.getDomNode().ownerDocument.body),nt=this.widget.getLayoutInfo(),it=new B.fg(220,2*nt.lineHeight),bt=Ne.top,Dt=function(){const vn=Ge.width-(Ne.left+Ne.width+nt.borderWidth+nt.horizontalPadding),Ln=-nt.borderWidth+Ne.left+Ne.width,En=new B.fg(vn,Ge.height-Ne.top-nt.borderHeight-nt.verticalPadding),In=En.with(void 0,Ne.top+Ne.height-nt.borderHeight-nt.verticalPadding);return{top:bt,left:Ln,fit:vn-ft.width,maxSizeTop:En,maxSizeBottom:In,minSize:it.with(Math.min(vn,it.width))}}(),At=function(){const vn=Ne.left-nt.borderWidth-nt.horizontalPadding,Ln=Math.max(nt.horizontalPadding,Ne.left-ft.width-nt.borderWidth),En=new B.fg(vn,Ge.height-Ne.top-nt.borderHeight-nt.verticalPadding),In=En.with(void 0,Ne.top+Ne.height-nt.borderHeight-nt.verticalPadding);return{top:bt,left:Ln,fit:vn-ft.width,maxSizeTop:En,maxSizeBottom:In,minSize:it.with(Math.min(vn,it.width))}}(),et=function(){const vn=Ne.left,Ln=-nt.borderWidth+Ne.top+Ne.height,En=new B.fg(Ne.width-nt.borderHeight,Ge.height-Ne.top-Ne.height-nt.verticalPadding);return{top:Ln,left:vn,fit:En.height-ft.height,maxSizeBottom:En,maxSizeTop:En,minSize:it.with(En.width)}}(),at=[Dt,At,et],Tt=(rt=at.find(vn=>vn.fit>=0))!==null&&rt!==void 0?rt:at.sort((vn,Ln)=>Ln.fit-vn.fit)[0],dt=Ne.top+Ne.height-nt.borderHeight;let Ae,ct=ft.height;const ut=Math.max(Tt.maxSizeTop.height,Tt.maxSizeBottom.height);ct>ut&&(ct=ut);let je;St?ct<=Tt.maxSizeTop.height?(Ae=!0,je=Tt.maxSizeTop):(Ae=!1,je=Tt.maxSizeBottom):ct<=Tt.maxSizeBottom.height?(Ae=!1,je=Tt.maxSizeBottom):(Ae=!0,je=Tt.maxSizeTop);let{top:Rt,left:Ft}=Tt;!Ae&&ct>Ne.height&&(Rt=dt-ct);const ln=this._editor.getDomNode();if(ln){const vn=ln.getBoundingClientRect();Rt-=vn.top,Ft-=vn.left}this._applyTopLeft({left:Ft,top:Rt}),this._resizable.enableSashes(!Ae,Tt===Dt,Ae,Tt!==Dt),this._resizable.minSize=Tt.minSize,this._resizable.maxSize=je,this._resizable.layout(ct,Math.min(je.width,ft.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(Ne){this._topLeft=Ne,this._editor.layoutOverlayWidget(this)}}var ne=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/iconLabel/iconLabel.js"),de=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),Le=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),We=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),we=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),Ue=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),lt=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/modesRegistry.js"),Et;(function(Je){Je[Je.FILE=0]="FILE",Je[Je.FOLDER=1]="FOLDER",Je[Je.ROOT_FOLDER=2]="ROOT_FOLDER"})(Et||(Et={}));const Kt=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/;function Zt(Je,Ne,ft,St,rt){if(rt)return[`codicon-${rt.id}`,"predefined-file-icon"];const Ge=St===Et.ROOT_FOLDER?["rootfolder-icon"]:St===Et.FOLDER?["folder-icon"]:["file-icon"];if(ft){let nt;if(ft.scheme===we.ny.data)nt=Ue.B6.parseMetaData(ft).get(Ue.B6.META_DATA_LABEL);else{const it=ft.path.match(Kt);it?(nt=tt(it[2].toLowerCase()),it[1]&&Ge.push(`${tt(it[1].toLowerCase())}-name-dir-icon`)):nt=tt(ft.authority.toLowerCase())}if(St===Et.ROOT_FOLDER)Ge.push(`${nt}-root-name-folder-icon`);else if(St===Et.FOLDER)Ge.push(`${nt}-name-folder-icon`);else{if(nt){if(Ge.push(`${nt}-name-file-icon`),Ge.push("name-file-icon"),nt.length<=255){const bt=nt.split(".");for(let Dt=1;Dt=0;it--)(nt=Je[it])&&(Ge=(rt<3?nt(Ge):rt>3?nt(Ne,ft,Ge):nt(Ne,ft))||Ge);return rt>3&&Ge&&Object.defineProperty(Ne,ft,Ge),Ge},Nt=function(Je,Ne){return function(ft,St){Ne(ft,St,Je)}},Be;function vt(Je){return`suggest-aria-id:${Je}`}const Gt=(0,xt.pU)("suggest-more-info",ye.W.chevronRight,w.kg("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),_n=new(Be=class{extract(Ne,ft){if(Ne.textLabel.match(Be._regexStrict))return ft[0]=Ne.textLabel,!0;if(Ne.completion.detail&&Ne.completion.detail.match(Be._regexStrict))return ft[0]=Ne.completion.detail,!0;if(Ne.completion.documentation){const St=typeof Ne.completion.documentation=="string"?Ne.completion.documentation:Ne.completion.documentation.value,rt=Be._regexRelaxed.exec(St);if(rt&&(rt.index===0||rt.index+rt[0].length===St.length))return ft[0]=rt[0],!0}return!1}},Be._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,Be._regexStrict=new RegExp(`^${Be._regexRelaxed.source}$`,"i"),Be);let Fn=class{constructor(Ne,ft,St,rt){this._editor=Ne,this._modelService=ft,this._languageService=St,this._themeService=rt,this._onDidToggleDetails=new L.vl,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(Ne){const ft=new x.Cm,St=Ne;St.classList.add("show-file-icons");const rt=(0,B.BC)(Ne,(0,B.$)(".icon")),Ge=(0,B.BC)(rt,(0,B.$)("span.colorspan")),nt=(0,B.BC)(Ne,(0,B.$)(".contents")),it=(0,B.BC)(nt,(0,B.$)(".main")),bt=(0,B.BC)(it,(0,B.$)(".icon-label.codicon")),Dt=(0,B.BC)(it,(0,B.$)("span.left")),At=(0,B.BC)(it,(0,B.$)("span.right")),et=new ne.s(Dt,{supportHighlights:!0,supportIcons:!0});ft.add(et);const at=(0,B.BC)(Dt,(0,B.$)("span.signature-label")),Tt=(0,B.BC)(Dt,(0,B.$)("span.qualifier-label")),dt=(0,B.BC)(At,(0,B.$)("span.details-label")),Ae=(0,B.BC)(At,(0,B.$)("span.readMore"+ge.L.asCSSSelector(Gt)));return Ae.title=w.kg("readMore","Read More"),{root:St,left:Dt,right:At,icon:rt,colorspan:Ge,iconLabel:et,iconContainer:bt,parametersLabel:at,qualifierLabel:Tt,detailsLabel:dt,readMore:Ae,disposables:ft,configureFont:()=>{const ut=this._editor.getOptions(),je=ut.get(50),Rt=je.getMassagedFontFamily(),Ft=je.fontFeatureSettings,ln=ut.get(119)||je.fontSize,vn=ut.get(120)||je.lineHeight,Ln=je.fontWeight,En=je.letterSpacing,In=`${ln}px`,ei=`${vn}px`,en=`${En}px`;St.style.fontSize=In,St.style.fontWeight=Ln,St.style.letterSpacing=en,it.style.fontFamily=Rt,it.style.fontFeatureSettings=Ft,it.style.lineHeight=ei,rt.style.height=ei,rt.style.width=ei,Ae.style.height=ei,Ae.style.width=ei}}}renderElement(Ne,ft,St){St.configureFont();const{completion:rt}=Ne;St.root.id=vt(ft),St.colorspan.style.backgroundColor="";const Ge={labelEscapeNewLines:!0,matches:(0,de.WJ)(Ne.score)},nt=[];if(rt.kind===19&&_n.extract(Ne,nt))St.icon.className="icon customcolor",St.iconContainer.className="icon hide",St.colorspan.style.backgroundColor=nt[0];else if(rt.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){St.icon.className="icon hide",St.iconContainer.className="icon hide";const it=Zt(this._modelService,this._languageService,Le.r.from({scheme:"fake",path:Ne.textLabel}),Et.FILE),bt=Zt(this._modelService,this._languageService,Le.r.from({scheme:"fake",path:rt.detail}),Et.FILE);Ge.extraClasses=it.length>bt.length?it:bt}else rt.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(St.icon.className="icon hide",St.iconContainer.className="icon hide",Ge.extraClasses=[Zt(this._modelService,this._languageService,Le.r.from({scheme:"fake",path:Ne.textLabel}),Et.FOLDER),Zt(this._modelService,this._languageService,Le.r.from({scheme:"fake",path:rt.detail}),Et.FOLDER)].flat()):(St.icon.className="icon hide",St.iconContainer.className="",St.iconContainer.classList.add("suggest-icon",...ge.L.asClassNameArray(We.HC.toIcon(rt.kind))));rt.tags&&rt.tags.indexOf(1)>=0&&(Ge.extraClasses=(Ge.extraClasses||[]).concat(["deprecated"]),Ge.matches=[]),St.iconLabel.setLabel(Ne.textLabel,void 0,Ge),typeof rt.label=="string"?(St.parametersLabel.textContent="",St.detailsLabel.textContent=An(rt.detail||""),St.root.classList.add("string-label")):(St.parametersLabel.textContent=An(rt.label.detail||""),St.detailsLabel.textContent=An(rt.label.description||""),St.root.classList.remove("string-label")),this._editor.getOption(118).showInlineDetails?(0,B.WU)(St.detailsLabel):(0,B.jD)(St.detailsLabel),fe(Ne)?(St.right.classList.add("can-expand-details"),(0,B.WU)(St.readMore),St.readMore.onmousedown=it=>{it.stopPropagation(),it.preventDefault()},St.readMore.onclick=it=>{it.stopPropagation(),it.preventDefault(),this._onDidToggleDetails.fire()}):(St.right.classList.remove("can-expand-details"),(0,B.jD)(St.readMore),St.readMore.onmousedown=null,St.readMore.onclick=null)}disposeTemplate(Ne){Ne.disposables.dispose()}};Fn=Jt([Nt(1,Mt.S),Nt(2,Ht.L),Nt(3,qe.Gy)],Fn);function An(Je){return Je.replace(/\r\n|\r|\n/g,"")}var Hn=e("./node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js"),Kn=function(Je,Ne,ft,St){var rt=arguments.length,Ge=rt<3?Ne:St===null?St=Object.getOwnPropertyDescriptor(Ne,ft):St,nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ge=Reflect.decorate(Je,Ne,ft,St);else for(var it=Je.length-1;it>=0;it--)(nt=Je[it])&&(Ge=(rt<3?nt(Ge):rt>3?nt(Ne,ft,Ge):nt(Ne,ft))||Ge);return rt>3&&Ge&&Object.defineProperty(Ne,ft,Ge),Ge},mi=function(Je,Ne){return function(ft,St){Ne(ft,St,Je)}},yi;(0,Te.x1A)("editorSuggestWidget.background",{dark:Te.CgL,light:Te.CgL,hcDark:Te.CgL,hcLight:Te.CgL},w.kg("editorSuggestWidgetBackground","Background color of the suggest widget.")),(0,Te.x1A)("editorSuggestWidget.border",{dark:Te.sIe,light:Te.sIe,hcDark:Te.sIe,hcLight:Te.sIe},w.kg("editorSuggestWidgetBorder","Border color of the suggest widget."));const ri=(0,Te.x1A)("editorSuggestWidget.foreground",{dark:Te.By2,light:Te.By2,hcDark:Te.By2,hcLight:Te.By2},w.kg("editorSuggestWidgetForeground","Foreground color of the suggest widget."));(0,Te.x1A)("editorSuggestWidget.selectedForeground",{dark:Te.nH,light:Te.nH,hcDark:Te.nH,hcLight:Te.nH},w.kg("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget.")),(0,Te.x1A)("editorSuggestWidget.selectedIconForeground",{dark:Te.c7i,light:Te.c7i,hcDark:Te.c7i,hcLight:Te.c7i},w.kg("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));const fi=(0,Te.x1A)("editorSuggestWidget.selectedBackground",{dark:Te.AlL,light:Te.AlL,hcDark:Te.AlL,hcLight:Te.AlL},w.kg("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));(0,Te.x1A)("editorSuggestWidget.highlightForeground",{dark:Te.QI5,light:Te.QI5,hcDark:Te.QI5,hcLight:Te.QI5},w.kg("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget.")),(0,Te.x1A)("editorSuggestWidget.focusHighlightForeground",{dark:Te.eMz,light:Te.eMz,hcDark:Te.eMz,hcLight:Te.eMz},w.kg("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused.")),(0,Te.x1A)("editorSuggestWidgetStatus.foreground",{dark:(0,Te.JO0)(ri,.5),light:(0,Te.JO0)(ri,.5),hcDark:(0,Te.JO0)(ri,.5),hcLight:(0,Te.JO0)(ri,.5)},w.kg("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));class Mi{constructor(Ne,ft){this._service=Ne,this._key=`suggestWidget.size/${ft.getEditorType()}/${ft instanceof re.t}`}restore(){var Ne;const ft=(Ne=this._service.get(this._key,0))!==null&&Ne!==void 0?Ne:"";try{const St=JSON.parse(ft);if(B.fg.is(St))return B.fg.lift(St)}catch{}}store(Ne){this._service.store(this._key,JSON.stringify(Ne),0,1)}reset(){this._service.remove(this._key,0)}}let xi=yi=class{constructor(Ne,ft,St,rt,Ge){this.editor=Ne,this._storageService=ft,this._state=0,this._isAuto=!1,this._pendingLayout=new x.HE,this._pendingShowDetails=new x.HE,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new Y.pc,this._disposables=new x.Cm,this._onDidSelect=new L.fV,this._onDidFocus=new L.fV,this._onDidHide=new L.vl,this._onDidShow=new L.vl,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new L.vl,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new Qe.v,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new ci(this,Ne),this._persistedSize=new Mi(ft,Ne);class nt{constructor(Tt,dt,Ae=!1,ct=!1){this.persistedSize=Tt,this.currentSize=dt,this.persistHeight=Ae,this.persistWidth=ct}}let it;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),it=new nt(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(at=>{var Tt,dt,Ae,ct;if(this._resize(at.dimension.width,at.dimension.height),it&&(it.persistHeight=it.persistHeight||!!at.north||!!at.south,it.persistWidth=it.persistWidth||!!at.east||!!at.west),!!at.done){if(it){const{itemHeight:ut,defaultSize:je}=this.getLayoutInfo(),Rt=Math.round(ut/2);let{width:Ft,height:ln}=this.element.size;(!it.persistHeight||Math.abs(it.currentSize.height-ln)<=Rt)&&(ln=(dt=(Tt=it.persistedSize)===null||Tt===void 0?void 0:Tt.height)!==null&&dt!==void 0?dt:je.height),(!it.persistWidth||Math.abs(it.currentSize.width-Ft)<=Rt)&&(Ft=(ct=(Ae=it.persistedSize)===null||Ae===void 0?void 0:Ae.width)!==null&&ct!==void 0?ct:je.width),this._persistedSize.store(new B.fg(Ft,ln))}this._contentWidget.unlockPreference(),it=void 0}})),this._messageElement=B.BC(this.element.domNode,B.$(".message")),this._listElement=B.BC(this.element.domNode,B.$(".tree"));const bt=this._disposables.add(Ge.createInstance(le,this.editor));bt.onDidClose(this.toggleDetails,this,this._disposables),this._details=new oe(bt,this.editor);const Dt=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(118).showIcons);Dt();const At=Ge.createInstance(Fn,this.editor);this._disposables.add(At),this._disposables.add(At.onDidToggleDetails(()=>this.toggleDetails())),this._list=new V.B8("SuggestWidget",this._listElement,{getHeight:at=>this.getLayoutInfo().itemHeight,getTemplateId:at=>"suggestion"},[At],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>w.kg("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:at=>{let Tt=at.textLabel;if(typeof at.completion.label!="string"){const{detail:ut,description:je}=at.completion.label;ut&&je?Tt=w.kg("label.full","{0} {1}, {2}",Tt,ut,je):ut?Tt=w.kg("label.detail","{0} {1}",Tt,ut):je&&(Tt=w.kg("label.desc","{0}, {1}",Tt,je))}if(!at.isResolved||!this._isDetailsVisible())return Tt;const{documentation:dt,detail:Ae}=at.completion,ct=ie.GP("{0}{1}",Ae||"",dt?typeof dt=="string"?dt:dt.value:"");return w.kg("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",Tt,ct)}}}),this._list.style((0,Hn.t8)({listInactiveFocusBackground:fi,listInactiveFocusOutline:Te.buw})),this._status=Ge.createInstance(_e,this.element.domNode,G.dt);const et=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(118).showStatusBar);et(),this._disposables.add(rt.onDidColorThemeChange(at=>this._onThemeChange(at))),this._onThemeChange(rt.getColorTheme()),this._disposables.add(this._list.onMouseDown(at=>this._onListMouseDownOrTap(at))),this._disposables.add(this._list.onTap(at=>this._onListMouseDownOrTap(at))),this._disposables.add(this._list.onDidChangeSelection(at=>this._onListSelection(at))),this._disposables.add(this._list.onDidChangeFocus(at=>this._onListFocus(at))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(at=>{at.hasChanged(118)&&(et(),Dt()),this._completionModel&&(at.hasChanged(50)||at.hasChanged(119)||at.hasChanged(120))&&this._list.splice(0,this._list.length,this._completionModel.items)})),this._ctxSuggestWidgetVisible=G.ob.Visible.bindTo(St),this._ctxSuggestWidgetDetailsVisible=G.ob.DetailsVisible.bindTo(St),this._ctxSuggestWidgetMultipleSuggestions=G.ob.MultipleSuggestions.bindTo(St),this._ctxSuggestWidgetHasFocusedSuggestion=G.ob.HasFocusedSuggestion.bindTo(St),this._disposables.add(B.b2(this._details.widget.domNode,"keydown",at=>{this._onDetailsKeydown.fire(at)})),this._disposables.add(this.editor.onMouseDown(at=>this._onEditorMouseDown(at)))}dispose(){var Ne;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),(Ne=this._loadingTimeout)===null||Ne===void 0||Ne.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(Ne){this._details.widget.domNode.contains(Ne.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(Ne.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){this._state!==0&&this._contentWidget.layout()}_onListMouseDownOrTap(Ne){typeof Ne.element>"u"||typeof Ne.index>"u"||(Ne.browserEvent.preventDefault(),Ne.browserEvent.stopPropagation(),this._select(Ne.element,Ne.index))}_onListSelection(Ne){Ne.elements.length&&this._select(Ne.elements[0],Ne.indexes[0])}_select(Ne,ft){const St=this._completionModel;St&&(this._onDidSelect.fire({item:Ne,index:ft,model:St}),this.editor.focus())}_onThemeChange(Ne){this._details.widget.borderWidth=(0,He.Bb)(Ne.type)?2:1}_onListFocus(Ne){var ft;if(this._ignoreFocusEvents)return;if(!Ne.elements.length){this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);return}if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);const St=Ne.elements[0],rt=Ne.indexes[0];St!==this._focusedItem&&((ft=this._currentSuggestionDetails)===null||ft===void 0||ft.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=St,this._list.reveal(rt),this._currentSuggestionDetails=(0,Y.SS)(async Ge=>{const nt=(0,Y.EQ)(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),it=Ge.onCancellationRequested(()=>nt.dispose());try{return await St.resolve(Ge)}finally{nt.dispose(),it.dispose()}}),this._currentSuggestionDetails.then(()=>{rt>=this._list.length||St!==this._list.element(rt)||(this._ignoreFocusEvents=!0,this._list.splice(rt,1,[St]),this._list.setFocus([rt]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:vt(rt)}))}).catch(M.dz)),this._onDidFocus.fire({item:St,index:rt,model:this._completionModel})}_setState(Ne){if(this._state!==Ne)switch(this._state=Ne,this.element.domNode.classList.toggle("frozen",Ne===4),this.element.domNode.classList.remove("message"),Ne){case 0:B.jD(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=yi.LOADING_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,r.h5)(yi.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=yi.NO_SUGGESTIONS_MESSAGE,B.jD(this._listElement,this._status.element),B.WU(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,(0,r.h5)(yi.NO_SUGGESTIONS_MESSAGE);break;case 3:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._show();break;case 4:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._show();break;case 5:B.jD(this._messageElement),B.WU(this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(Ne,ft){this._state===0&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!Ne,this._isAuto||(this._loadingTimeout=(0,Y.EQ)(()=>this._setState(1),ft)))}showSuggestions(Ne,ft,St,rt,Ge){var nt,it;if(this._contentWidget.setPosition(this.editor.getPosition()),(nt=this._loadingTimeout)===null||nt===void 0||nt.dispose(),(it=this._currentSuggestionDetails)===null||it===void 0||it.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==Ne&&(this._completionModel=Ne),St&&this._state!==2&&this._state!==0){this._setState(4);return}const bt=this._completionModel.items.length,Dt=bt===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(bt>1),Dt){this._setState(rt?0:2),this._completionModel=void 0;return}this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(St?4:3),this._list.reveal(ft,0),this._list.setFocus(Ge?[]:[ft])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=B.Oq(B.zk(this.element.domNode),()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")})}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(this._state!==0&&this._state!==2&&this._state!==1&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){this._state===5?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):this._state===3&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):(fe(this._list.getFocusedElements()[0])||this._explainMode)&&(this._state===3||this._state===5||this._state===4)&&(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(Ne){this._pendingShowDetails.value=B.Oq(B.zk(this.element.domNode),()=>{this._pendingShowDetails.clear(),this._details.show(),Ne?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._details.widget.isEmpty?this._details.hide():(this._positionDetails(),this.element.domNode.classList.add("shows-details")),this.editor.focus()})}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var Ne;this._pendingLayout.clear(),this._pendingShowDetails.clear(),(Ne=this._loadingTimeout)===null||Ne===void 0||Ne.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();const ft=this._persistedSize.restore(),St=Math.ceil(this.getLayoutInfo().itemHeight*4.3);ft&&ft.heightDt&&(bt=Dt);const At=this._completionModel?this._completionModel.stats.pLabelLen*nt.typicalHalfwidthCharacterWidth:bt,et=nt.statusBarHeight+this._list.contentHeight+nt.borderHeight,at=nt.itemHeight+nt.statusBarHeight,Tt=B.BK(this.editor.getDomNode()),dt=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),Ae=Tt.top+dt.top+dt.height,ct=Math.min(Ge.height-Ae-nt.verticalPadding,et),ut=Tt.top+dt.top-nt.verticalPadding,je=Math.min(ut,et);let Rt=Math.min(Math.max(je,ct)+nt.borderHeight,et);it===((ft=this._cappedHeight)===null||ft===void 0?void 0:ft.capped)&&(it=this._cappedHeight.wanted),itRt&&(it=Rt),it>ct||this._forceRenderingAbove&&ut>150?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),Rt=je):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),Rt=ct),this.element.preferredSize=new B.fg(At,nt.defaultSize.height),this.element.maxSize=new B.fg(Dt,Rt),this.element.minSize=new B.fg(220,at),this._cappedHeight=it===et?{wanted:(rt=(St=this._cappedHeight)===null||St===void 0?void 0:St.wanted)!==null&&rt!==void 0?rt:Ne.height,capped:it}:void 0}this._resize(bt,it)}_resize(Ne,ft){const{width:St,height:rt}=this.element.maxSize;Ne=Math.min(St,Ne),ft=Math.min(rt,ft);const{statusBarHeight:Ge}=this.getLayoutInfo();this._list.layout(ft-Ge,Ne),this._listElement.style.height=`${ft-Ge}px`,this.element.layout(ft,Ne),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var Ne;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,((Ne=this._contentWidget.getPosition())===null||Ne===void 0?void 0:Ne.preference[0])===2)}getLayoutInfo(){const Ne=this.editor.getOption(50),ft=(0,X.qE)(this.editor.getOption(120)||Ne.lineHeight,8,1e3),St=!this.editor.getOption(118).showStatusBar||this._state===2||this._state===1?0:ft,rt=this._details.widget.borderWidth,Ge=2*rt;return{itemHeight:ft,statusBarHeight:St,borderWidth:rt,borderHeight:Ge,typicalHalfwidthCharacterWidth:Ne.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new B.fg(430,St+12*ft+Ge)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(Ne){this._storageService.store("expandSuggestionDocs",Ne,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};xi.LOADING_MESSAGE=w.kg("suggestWidget.loading","Loading..."),xi.NO_SUGGESTIONS_MESSAGE=w.kg("suggestWidget.noSuggestions","No suggestions."),xi=yi=Kn([mi(1,De.CS),mi(2,h.fN),mi(3,qe.Gy),mi(4,U._Y)],xi);class ci{constructor(Ne,ft){this._widget=Ne,this._editor=ft,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return this._hidden||!this._position||!this._preference?null:{position:this._position,preference:[this._preference]}}beforeRender(){const{height:Ne,width:ft}=this._widget.element.size,{borderWidth:St,horizontalPadding:rt}=this._widget.getLayoutInfo();return new B.fg(ft+2*St+rt,Ne+2*St)}afterRender(Ne){this._widget._afterRender(Ne)}setPreference(Ne){this._preferenceLocked||(this._preference=Ne)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(Ne){this._position=Ne}}var Ii=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),Si=e("./node_modules/monaco-editor/esm/vs/base/common/hash.js"),Ti=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),Nn=function(Je,Ne,ft,St){var rt=arguments.length,Ge=rt<3?Ne:St===null?St=Object.getOwnPropertyDescriptor(Ne,ft):St,nt;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ge=Reflect.decorate(Je,Ne,ft,St);else for(var it=Je.length-1;it>=0;it--)(nt=Je[it])&&(Ge=(rt<3?nt(Ge):rt>3?nt(Ne,ft,Ge):nt(Ne,ft))||Ge);return rt>3&&Ge&&Object.defineProperty(Ne,ft,Ge),Ge},Vn=function(Je,Ne){return function(ft,St){Ne(ft,St,Je)}},Yn;const Di=!1;class Ai{constructor(Ne,ft){if(this._model=Ne,this._position=ft,this._decorationOptions=Ti.kI.register({description:"suggest-line-suffix",stickiness:1}),Ne.getLineMaxColumn(ft.lineNumber)!==ft.column){const rt=Ne.getOffsetAt(ft),Ge=Ne.getPositionAt(rt+1);Ne.changeDecorations(nt=>{this._marker&&nt.removeDecoration(this._marker),this._marker=nt.addDecoration(i.Q.fromPositions(ft,Ge),this._decorationOptions)})}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.changeDecorations(Ne=>{Ne.removeDecoration(this._marker),this._marker=void 0})}delta(Ne){if(this._model.isDisposed()||this._position.lineNumber!==Ne.lineNumber)return 0;if(this._marker){const ft=this._model.getDecorationRange(this._marker);return this._model.getOffsetAt(ft.getStartPosition())-this._model.getOffsetAt(Ne)}else return this._model.getLineMaxColumn(Ne.lineNumber)-Ne.column}}let Sn=Yn=class{static get(Ne){return Ne.getContribution(Yn.ID)}constructor(Ne,ft,St,rt,Ge,nt,it){this._memoryService=ft,this._commandService=St,this._contextKeyService=rt,this._instantiationService=Ge,this._logService=nt,this._telemetryService=it,this._lineSuffix=new x.HE,this._toDispose=new x.Cm,this._selectors=new Ye(et=>et.priority),this._onWillInsertSuggestItem=new L.vl,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=Ne,this.model=Ge.createInstance(z.Y,this.editor),this._selectors.register({priority:0,select:(et,at,Tt)=>this._memoryService.select(et,at,Tt)});const bt=G.ob.InsertMode.bindTo(rt);bt.set(Ne.getOption(118).insertMode),this._toDispose.add(this.model.onDidTrigger(()=>bt.set(Ne.getOption(118).insertMode))),this.widget=this._toDispose.add(new B.Ij((0,B.zk)(Ne.getDomNode()),()=>{const et=this._instantiationService.createInstance(xi,this.editor);this._toDispose.add(et),this._toDispose.add(et.onDidSelect(ct=>this._insertSuggestion(ct,0),this));const at=new $(this.editor,et,this.model,ct=>this._insertSuggestion(ct,2));this._toDispose.add(at);const Tt=G.ob.MakesTextEdit.bindTo(this._contextKeyService),dt=G.ob.HasInsertAndReplaceRange.bindTo(this._contextKeyService),Ae=G.ob.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add((0,x.s)(()=>{Tt.reset(),dt.reset(),Ae.reset()})),this._toDispose.add(et.onDidFocus(({item:ct})=>{const ut=this.editor.getPosition(),je=ct.editStart.column,Rt=ut.column;let Ft=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!ct.completion.additionalTextEdits&&!(ct.completion.insertTextRules&4)&&Rt-je===ct.completion.insertText.length&&(Ft=this.editor.getModel().getValueInRange({startLineNumber:ut.lineNumber,startColumn:je,endLineNumber:ut.lineNumber,endColumn:Rt})!==ct.completion.insertText),Tt.set(Ft),dt.set(!n.y.equals(ct.editInsertEnd,ct.editReplaceEnd)),Ae.set(!!ct.provider.resolveCompletionItem||!!ct.completion.documentation||ct.completion.detail!==ct.completion.label)})),this._toDispose.add(et.onDetailsKeyDown(ct=>{if(ct.toKeyCodeChord().equals(new g.dG(!0,!1,!1,!1,33))||I.zx&&ct.toKeyCodeChord().equals(new g.dG(!1,!1,!1,!0,33))){ct.stopPropagation();return}ct.toKeyCodeChord().isModifierKey()||this.editor.focus()})),et})),this._overtypingCapturer=this._toDispose.add(new B.Ij((0,B.zk)(Ne.getDomNode()),()=>this._toDispose.add(new J(this.editor,this.model)))),this._alternatives=this._toDispose.add(new B.Ij((0,B.zk)(Ne.getDomNode()),()=>this._toDispose.add(new E(this.editor,this._contextKeyService)))),this._toDispose.add(Ge.createInstance(O,Ne)),this._toDispose.add(this.model.onDidTrigger(et=>{this.widget.value.showTriggered(et.auto,et.shy?250:50),this._lineSuffix.value=new Ai(this.editor.getModel(),et.position)})),this._toDispose.add(this.model.onDidSuggest(et=>{if(et.triggerOptions.shy)return;let at=-1;for(const dt of this._selectors.itemsOrderedByPriorityDesc)if(at=dt.select(this.editor.getModel(),this.editor.getPosition(),et.completionModel.items),at!==-1)break;if(at===-1&&(at=0),this.model.state===0)return;let Tt=!1;if(et.triggerOptions.auto){const dt=this.editor.getOption(118);dt.selectionMode==="never"||dt.selectionMode==="always"?Tt=dt.selectionMode==="never":dt.selectionMode==="whenTriggerCharacter"?Tt=et.triggerOptions.triggerKind!==1:dt.selectionMode==="whenQuickSuggestion"&&(Tt=et.triggerOptions.triggerKind===1&&!et.triggerOptions.refilter)}this.widget.value.showSuggestions(et.completionModel,at,et.isFrozen,et.triggerOptions.auto,Tt)})),this._toDispose.add(this.model.onDidCancel(et=>{et.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{Di||(this.model.cancel(),this.model.clear())}));const Dt=G.ob.AcceptSuggestionsOnEnter.bindTo(rt),At=()=>{const et=this.editor.getOption(1);Dt.set(et==="on"||et==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>At())),At()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(Ne,ft){if(!Ne||!Ne.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;const St=m.O.get(this.editor);if(!St)return;this._onWillInsertSuggestItem.fire({item:Ne.item});const rt=this.editor.getModel(),Ge=rt.getAlternativeVersionId(),{item:nt}=Ne,it=[],bt=new k.Q;ft&1||this.editor.pushUndoStop();const Dt=this.getOverwriteInfo(nt,!!(ft&8));this._memoryService.memorize(rt,this.editor.getPosition(),nt);const At=nt.isResolved;let et=-1,at=-1;if(Array.isArray(nt.completion.additionalTextEdits)){this.model.cancel();const dt=d.D.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",nt.completion.additionalTextEdits.map(Ae=>{let ct=i.Q.lift(Ae.range);if(ct.startLineNumber===nt.position.lineNumber&&ct.startColumn>nt.position.column){const ut=this.editor.getPosition().column-nt.position.column,je=ut,Rt=i.Q.spansMultipleLines(ct)?0:ut;ct=new i.Q(ct.startLineNumber,ct.startColumn+je,ct.endLineNumber,ct.endColumn+Rt)}return s.k.replaceMove(ct,Ae.text)})),dt.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!At){const dt=new S.W;let Ae;const ct=rt.onDidChangeContent(Ft=>{if(Ft.isFlush){bt.cancel(),ct.dispose();return}for(const ln of Ft.changes){const vn=i.Q.getEndPosition(ln.range);(!Ae||n.y.isBefore(vn,Ae))&&(Ae=vn)}}),ut=ft;ft|=2;let je=!1;const Rt=this.editor.onWillType(()=>{Rt.dispose(),je=!0,ut&2||this.editor.pushUndoStop()});it.push(nt.resolve(bt.token).then(()=>{if(!nt.completion.additionalTextEdits||bt.token.isCancellationRequested)return;if(Ae&&nt.completion.additionalTextEdits.some(ln=>n.y.isBefore(Ae,i.Q.getStartPosition(ln.range))))return!1;je&&this.editor.pushUndoStop();const Ft=d.D.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",nt.completion.additionalTextEdits.map(ln=>s.k.replaceMove(i.Q.lift(ln.range),ln.text))),Ft.restoreRelativeVerticalPositionOfCursor(this.editor),(je||!(ut&2))&&this.editor.pushUndoStop(),!0}).then(Ft=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",dt.elapsed(),Ft),at=Ft===!0?1:Ft===!1?0:-2}).finally(()=>{ct.dispose(),Rt.dispose()}))}let{insertText:Tt}=nt.completion;if(nt.completion.insertTextRules&4||(Tt=u.fr.escape(Tt)),this.model.cancel(),St.insert(Tt,{overwriteBefore:Dt.overwriteBefore,overwriteAfter:Dt.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(nt.completion.insertTextRules&1),clipboardText:Ne.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),ft&2||this.editor.pushUndoStop(),nt.completion.command)if(nt.completion.command.id===mt.id)this.model.trigger({auto:!0,retrigger:!0});else{const dt=new S.W;it.push(this._commandService.executeCommand(nt.completion.command.id,...nt.completion.command.arguments?[...nt.completion.command.arguments]:[]).catch(Ae=>{nt.completion.extensionId?(0,M.M_)(Ae):(0,M.dz)(Ae)}).finally(()=>{et=dt.elapsed()}))}ft&4&&this._alternatives.value.set(Ne,dt=>{for(bt.cancel();rt.canUndo();){Ge!==rt.getAlternativeVersionId()&&rt.undo(),this._insertSuggestion(dt,3|(ft&8?8:0));break}}),this._alertCompletionItem(nt),Promise.all(it).finally(()=>{this._reportSuggestionAcceptedTelemetry(nt,rt,At,et,at),this.model.clear(),bt.dispose()})}_reportSuggestionAcceptedTelemetry(Ne,ft,St,rt,Ge){var nt,it,bt;Math.floor(Math.random()*100)!==0&&this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:(it=(nt=Ne.extensionId)===null||nt===void 0?void 0:nt.value)!==null&&it!==void 0?it:"unknown",providerId:(bt=Ne.provider._debugDisplayName)!==null&&bt!==void 0?bt:"unknown",kind:Ne.completion.kind,basenameHash:(0,Si.tW)((0,Ue.P8)(ft.uri)).toString(16),languageId:ft.getLanguageId(),fileExtension:(0,Ue.LC)(ft.uri),resolveInfo:Ne.provider.resolveCompletionItem?St?1:0:-1,resolveDuration:Ne.resolveDuration,commandDuration:rt,additionalEditsAsync:Ge})}getOverwriteInfo(Ne,ft){(0,f.j)(this.editor.hasModel());let St=this.editor.getOption(118).insertMode==="replace";ft&&(St=!St);const rt=Ne.position.column-Ne.editStart.column,Ge=(St?Ne.editReplaceEnd.column:Ne.editInsertEnd.column)-Ne.position.column,nt=this.editor.getPosition().column-Ne.position.column,it=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:rt+nt,overwriteAfter:Ge+it}}_alertCompletionItem(Ne){if((0,F.EI)(Ne.completion.additionalTextEdits)){const ft=w.kg("aria.alert.snippet","Accepting '{0}' made {1} additional edits",Ne.textLabel,Ne.completion.additionalTextEdits.length);(0,r.xE)(ft)}}triggerSuggest(Ne,ft,St){this.editor.hasModel()&&(this.model.trigger({auto:ft??!1,completionOptions:{providerFilter:Ne,kindFilter:St?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(Ne){if(!this.editor.hasModel())return;const ft=this.editor.getPosition(),St=()=>{ft.equals(this.editor.getPosition())&&this._commandService.executeCommand(Ne.fallback)},rt=Ge=>{if(Ge.completion.insertTextRules&4||Ge.completion.additionalTextEdits)return!0;const nt=this.editor.getPosition(),it=Ge.editStart.column,bt=nt.column;return bt-it!==Ge.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:nt.lineNumber,startColumn:it,endLineNumber:nt.lineNumber,endColumn:bt})!==Ge.completion.insertText};L.Jh.once(this.model.onDidTrigger)(Ge=>{const nt=[];L.Jh.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{(0,x.AS)(nt),St()},void 0,nt),this.model.onDidSuggest(({completionModel:it})=>{if((0,x.AS)(nt),it.items.length===0){St();return}const bt=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),it.items),Dt=it.items[bt];if(!rt(Dt)){St();return}this.editor.pushUndoStop(),this._insertSuggestion({index:bt,item:Dt,model:it},7)},void 0,nt)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(ft,0),this.editor.focus()}acceptSelectedSuggestion(Ne,ft){const St=this.widget.value.getFocusedItem();let rt=0;Ne&&(rt|=4),ft&&(rt|=8),this._insertSuggestion(St,rt)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(Ne){return this._selectors.register(Ne)}};Sn.ID="editor.contrib.suggestController",Sn=Yn=Nn([Vn(1,C.GS),Vn(2,j.d),Vn(3,h.fN),Vn(4,U._Y),Vn(5,K.rr),Vn(6,Ii.k)],Sn);class Ye{constructor(Ne){this.prioritySelector=Ne,this._items=new Array}register(Ne){if(this._items.indexOf(Ne)!==-1)throw new Error("Value is already registered");return this._items.push(Ne),this._items.sort((ft,St)=>this.prioritySelector(St)-this.prioritySelector(ft)),{dispose:()=>{const ft=this._items.indexOf(Ne);ft>=0&&this._items.splice(ft,1)}}}get itemsOrderedByPriorityDesc(){return this._items}}class mt extends a.ks{constructor(){super({id:mt.id,label:w.kg("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:h.M$.and(c.R.writable,c.R.hasCompletionItemProvider,G.ob.Visible.toNegated()),kbOpts:{kbExpr:c.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(Ne,ft,St){const rt=Sn.get(ft);if(!rt)return;let Ge;St&&typeof St=="object"&&St.auto===!0&&(Ge=!0),rt.triggerSuggest(void 0,Ge,void 0)}}mt.id="editor.action.triggerSuggest",(0,a.HW)(Sn.ID,Sn,2),(0,a.Fl)(mt);const ze=190,Ke=a.DX.bindToContribution(Sn.get);(0,a.E_)(new Ke({id:"acceptSelectedSuggestion",precondition:h.M$.and(G.ob.Visible,G.ob.HasFocusedSuggestion),handler(Je){Je.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:h.M$.and(G.ob.Visible,c.R.textInputFocus),weight:ze},{primary:3,kbExpr:h.M$.and(G.ob.Visible,c.R.textInputFocus,G.ob.AcceptSuggestionsOnEnter,G.ob.MakesTextEdit),weight:ze}],menuOpts:[{menuId:G.dt,title:w.kg("accept.insert","Insert"),group:"left",order:1,when:G.ob.HasInsertAndReplaceRange.toNegated()},{menuId:G.dt,title:w.kg("accept.insert","Insert"),group:"left",order:1,when:h.M$.and(G.ob.HasInsertAndReplaceRange,G.ob.InsertMode.isEqualTo("insert"))},{menuId:G.dt,title:w.kg("accept.replace","Replace"),group:"left",order:1,when:h.M$.and(G.ob.HasInsertAndReplaceRange,G.ob.InsertMode.isEqualTo("replace"))}]})),(0,a.E_)(new Ke({id:"acceptAlternativeSelectedSuggestion",precondition:h.M$.and(G.ob.Visible,c.R.textInputFocus,G.ob.HasFocusedSuggestion),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:1027,secondary:[1026]},handler(Je){Je.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:G.dt,group:"left",order:2,when:h.M$.and(G.ob.HasInsertAndReplaceRange,G.ob.InsertMode.isEqualTo("insert")),title:w.kg("accept.replace","Replace")},{menuId:G.dt,group:"left",order:2,when:h.M$.and(G.ob.HasInsertAndReplaceRange,G.ob.InsertMode.isEqualTo("replace")),title:w.kg("accept.insert","Insert")}]})),j.w.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion"),(0,a.E_)(new Ke({id:"hideSuggestWidget",precondition:G.ob.Visible,handler:Je=>Je.cancelSuggestWidget(),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:9,secondary:[1033]}})),(0,a.E_)(new Ke({id:"selectNextSuggestion",precondition:h.M$.and(G.ob.Visible,h.M$.or(G.ob.MultipleSuggestions,G.ob.HasFocusedSuggestion.negate())),handler:Je=>Je.selectNextSuggestion(),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),(0,a.E_)(new Ke({id:"selectNextPageSuggestion",precondition:h.M$.and(G.ob.Visible,h.M$.or(G.ob.MultipleSuggestions,G.ob.HasFocusedSuggestion.negate())),handler:Je=>Je.selectNextPageSuggestion(),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:12,secondary:[2060]}})),(0,a.E_)(new Ke({id:"selectLastSuggestion",precondition:h.M$.and(G.ob.Visible,h.M$.or(G.ob.MultipleSuggestions,G.ob.HasFocusedSuggestion.negate())),handler:Je=>Je.selectLastSuggestion()})),(0,a.E_)(new Ke({id:"selectPrevSuggestion",precondition:h.M$.and(G.ob.Visible,h.M$.or(G.ob.MultipleSuggestions,G.ob.HasFocusedSuggestion.negate())),handler:Je=>Je.selectPrevSuggestion(),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),(0,a.E_)(new Ke({id:"selectPrevPageSuggestion",precondition:h.M$.and(G.ob.Visible,h.M$.or(G.ob.MultipleSuggestions,G.ob.HasFocusedSuggestion.negate())),handler:Je=>Je.selectPrevPageSuggestion(),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:11,secondary:[2059]}})),(0,a.E_)(new Ke({id:"selectFirstSuggestion",precondition:h.M$.and(G.ob.Visible,h.M$.or(G.ob.MultipleSuggestions,G.ob.HasFocusedSuggestion.negate())),handler:Je=>Je.selectFirstSuggestion()})),(0,a.E_)(new Ke({id:"focusSuggestion",precondition:h.M$.and(G.ob.Visible,G.ob.HasFocusedSuggestion.negate()),handler:Je=>Je.focusSuggestion(),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}})),(0,a.E_)(new Ke({id:"focusAndAcceptSuggestion",precondition:h.M$.and(G.ob.Visible,G.ob.HasFocusedSuggestion.negate()),handler:Je=>{Je.focusSuggestion(),Je.acceptSelectedSuggestion(!0,!1)}})),(0,a.E_)(new Ke({id:"toggleSuggestionDetails",precondition:h.M$.and(G.ob.Visible,G.ob.HasFocusedSuggestion),handler:Je=>Je.toggleSuggestionDetails(),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:G.dt,group:"right",order:1,when:h.M$.and(G.ob.DetailsVisible,G.ob.CanResolve),title:w.kg("detail.more","show less")},{menuId:G.dt,group:"right",order:1,when:h.M$.and(G.ob.DetailsVisible.toNegated(),G.ob.CanResolve),title:w.kg("detail.less","show more")}]})),(0,a.E_)(new Ke({id:"toggleExplainMode",precondition:G.ob.Visible,handler:Je=>Je.toggleExplainMode(),kbOpts:{weight:100,primary:2138}})),(0,a.E_)(new Ke({id:"toggleSuggestionFocus",precondition:G.ob.Visible,handler:Je=>Je.toggleSuggestionFocus(),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:2570,mac:{primary:778}}})),(0,a.E_)(new Ke({id:"insertBestCompletion",precondition:h.M$.and(c.R.textInputFocus,h.M$.equals("config.editor.tabCompletion","on"),O.AtEnd,G.ob.Visible.toNegated(),E.OtherSuggestions.toNegated(),m.O.InSnippetMode.toNegated()),handler:(Je,Ne)=>{Je.triggerSuggestAndAcceptBest((0,f.Gv)(Ne)?{fallback:"tab",...Ne}:{fallback:"tab"})},kbOpts:{weight:ze,primary:2}})),(0,a.E_)(new Ke({id:"insertNextSuggestion",precondition:h.M$.and(c.R.textInputFocus,h.M$.equals("config.editor.tabCompletion","on"),E.OtherSuggestions,G.ob.Visible.toNegated(),m.O.InSnippetMode.toNegated()),handler:Je=>Je.acceptNextSuggestion(),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:2}})),(0,a.E_)(new Ke({id:"insertPrevSuggestion",precondition:h.M$.and(c.R.textInputFocus,h.M$.equals("config.editor.tabCompletion","on"),E.OtherSuggestions,G.ob.Visible.toNegated(),m.O.InSnippetMode.toNegated()),handler:Je=>Je.acceptPrevSuggestion(),kbOpts:{weight:ze,kbExpr:c.R.textInputFocus,primary:1026}})),(0,a.Fl)(class extends a.ks{constructor(){super({id:"editor.action.resetSuggestSize",label:w.kg("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(Je,Ne){var ft;(ft=Sn.get(Ne))===null||ft===void 0||ft.resetWidgetSize()}})},"./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/editorFeatures.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/completionModel.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestMemory.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestModel.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/wordDistance.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js"),i=function(h,v,p,b){var O=arguments.length,w=O<3?v:b===null?b=Object.getOwnPropertyDescriptor(v,p):b,j;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(h,v,p,b);else for(var U=h.length-1;U>=0;U--)(j=h[U])&&(w=(O<3?j(w):O>3?j(v,p,w):j(v,p))||w);return O>3&&w&&Object.defineProperty(v,p,w),w},c=function(h,v){return function(p,b){v(p,b,h)}};class m{constructor(v,p,b,O,w,j){this.range=v,this.insertText=p,this.filterText=b,this.additionalTextEdits=O,this.command=w,this.completion=j}}let u=class extends M.mp{constructor(v,p,b,O,w,j){super(w.disposable),this.model=v,this.line=p,this.word=b,this.completionModel=O,this._suggestMemoryService=j}canBeReused(v,p,b){return this.model===v&&this.line===p&&this.word.word.length>0&&this.word.startColumn===b.startColumn&&this.word.endColumn=0&&K.resolve(r.X.None)}return p}};u=i([c(5,d.GS)],u);let C=class extends M.jG{constructor(v,p,b,O){super(),this._languageFeatureService=v,this._clipboardService=p,this._suggestMemoryService=b,this._editorService=O,this._store.add(v.inlineCompletionsProvider.register("*",this))}async provideInlineCompletions(v,p,b,O){var w;if(b.selectedSuggestionInfo)return;let j;for(const W of this._editorService.listCodeEditors())if(W.getModel()===v){j=W;break}if(!j)return;const U=j.getOption(89);if(f.r3.isAllOff(U))return;v.tokenization.tokenizeIfCheap(p.lineNumber);const K=v.tokenization.getLineTokens(p.lineNumber),G=K.getStandardTokenType(K.findTokenIndexAtOffset(Math.max(p.column-1-1,0)));if(f.r3.valueFor(U,G)!=="inline")return;let P=v.getWordAtPosition(p),A;if(P?.word||(A=this._getTriggerCharacterInfo(v,p)),!P?.word&&!A||(P||(P=v.getWordUntilPosition(p)),P.endColumn!==p.column))return;let T;const E=v.getValueInRange(new g.Q(p.lineNumber,1,p.lineNumber,p.column));if(!A&&(!((w=this._lastResult)===null||w===void 0)&&w.canBeReused(v,p.lineNumber,P))){const W=new S.O(E,p.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=W,this._lastResult.acquire(),T=this._lastResult}else{const W=await(0,f.aR)(this._languageFeatureService.completionProvider,v,p,new f.l1(void 0,a.Y.createSuggestFilter(j).itemKind,A?.providers),A&&{triggerKind:1,triggerCharacter:A.ch},O);let $;W.needsClipboard&&($=await this._clipboardService.readText());const z=new S.C(W.items,p.column,new S.O(E,0),s.S.None,j.getOption(118),j.getOption(112),{boostFullMatch:!1,firstMatchCanBeWeak:!1},$);T=new u(v,p.lineNumber,P,z,W,this._suggestMemoryService)}return this._lastResult=T,T}handleItemDidShow(v,p){p.completion.resolve(r.X.None)}freeInlineCompletions(v){v.release()}_getTriggerCharacterInfo(v,p){var b;const O=v.getValueInRange(g.Q.fromPositions({lineNumber:p.lineNumber,column:p.column-1},p)),w=new Set;for(const j of this._languageFeatureService.completionProvider.all(v))!((b=j.triggerCharacters)===null||b===void 0)&&b.includes(O)&&w.add(j);if(w.size!==0)return{providers:w,ch:O}}};C=i([c(0,I.u),c(1,n.h),c(2,d.GS),c(3,L.T)],C),(0,x.x)(C)},"./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestMemory.js":function(pt,Me,e){e.d(Me,{GS:function(){return u}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/ternarySearchTree.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js"),f=function(C,h,v,p){var b=arguments.length,O=b<3?h:p===null?p=Object.getOwnPropertyDescriptor(h,v):p,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(C,h,v,p);else for(var j=C.length-1;j>=0;j--)(w=C[j])&&(O=(b<3?w(O):b>3?w(h,v,O):w(h,v))||O);return b>3&&O&&Object.defineProperty(h,v,O),O},d=function(C,h){return function(v,p){h(v,p,C)}},a;class s{constructor(h){this.name=h}select(h,v,p){if(p.length===0)return 0;const b=p[0].score[0];for(let O=0;OU&&P.type===p[K].completion.kind&&P.insertText===p[K].completion.insertText&&(U=P.touch,j=K),p[K].completion.preselect&&w===-1)return w=K}return j!==-1?j:w!==-1?w:0}toJSON(){return this._cache.toJSON()}fromJSON(h){this._cache.clear();const v=0;for(const[p,b]of h)b.touch=v,b.type=typeof b.type=="number"?b.type:L.HC.fromString(b.type),this._cache.set(p,b);this._seq=this._cache.size}}class c extends s{constructor(){super("recentlyUsedByPrefix"),this._trie=M.cB.forStrings(),this._seq=0}memorize(h,v,p){const{word:b}=h.getWordUntilPosition(v),O=`${h.getLanguageId()}/${b}`;this._trie.set(O,{type:p.completion.kind,insertText:p.completion.insertText,touch:this._seq++})}select(h,v,p){const{word:b}=h.getWordUntilPosition(v);if(!b)return super.select(h,v,p);const O=`${h.getLanguageId()}/${b}`;let w=this._trie.get(O);if(w||(w=this._trie.findSubstr(O)),w)for(let j=0;jh.push([p,v])),h.sort((v,p)=>-(v[1].touch-p[1].touch)).forEach((v,p)=>v[1].touch=p),h.slice(0,200)}fromJSON(h){if(this._trie.clear(),h.length>0){this._seq=h[0][1].touch+1;for(const[v,p]of h)p.type=typeof p.type=="number"?p.type:L.HC.fromString(p.type),this._trie.set(v,p)}}}let m=a=class{constructor(h,v){this._storageService=h,this._configService=v,this._disposables=new F.Cm,this._persistSoon=new r.uC(()=>this._saveState(),500),this._disposables.add(h.onWillSaveState(p=>{p.reason===S.LP.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(h,v,p){this._withStrategy(h,v).memorize(h,v,p),this._persistSoon.schedule()}select(h,v,p){return this._withStrategy(h,v).select(h,v,p)}_withStrategy(h,v){var p;const b=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:h.getLanguageIdAtPosition(v.lineNumber,v.column),resource:h.uri});if(((p=this._strategy)===null||p===void 0?void 0:p.name)!==b){this._saveState();const O=a._strategyCtors.get(b)||n;this._strategy=new O;try{const j=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,U=this._storageService.get(`${a._storagePrefix}/${b}`,j);U&&this._strategy.fromJSON(JSON.parse(U))}catch{}}return this._strategy}_saveState(){if(this._strategy){const v=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,p=JSON.stringify(this._strategy);this._storageService.store(`${a._storagePrefix}/${this._strategy.name}`,p,v,1)}}};m._strategyCtors=new Map([["recentlyUsedByPrefix",c],["recentlyUsed",i],["first",n]]),m._storagePrefix="suggest/memories",m=a=f([d(0,S.CS),d(1,g.pG)],m);const u=(0,I.u1)("ISuggestMemories");(0,x.v)(u,m,1)},"./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestModel.js":function(pt,Me,e){e.d(Me,{Y:function(){return G}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/services/editorWorker.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/wordDistance.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/completionModel.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),u=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),C=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js"),v=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetController2.js"),p=e("./node_modules/monaco-editor/esm/vs/platform/environment/common/environment.js"),b=function(P,A,T,E){var W=arguments.length,$=W<3?A:E===null?E=Object.getOwnPropertyDescriptor(A,T):E,z;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$=Reflect.decorate(P,A,T,E);else for(var J=P.length-1;J>=0;J--)(z=P[J])&&($=(W<3?z($):W>3?z(A,T,$):z(A,T))||$);return W>3&&$&&Object.defineProperty(A,T,$),$},O=function(P,A){return function(T,E){A(T,E,P)}},w;class j{static shouldAutoTrigger(A){if(!A.hasModel())return!1;const T=A.getModel(),E=A.getPosition();T.tokenization.tokenizeIfCheap(E.lineNumber);const W=T.getWordAtPosition(E);return!(!W||W.endColumn!==E.column&&W.startColumn+1!==E.column||!isNaN(Number(W.word)))}constructor(A,T,E){this.leadingLineContent=A.getLineContent(T.lineNumber).substr(0,T.column-1),this.leadingWord=A.getWordUntilPosition(T),this.lineNumber=T.lineNumber,this.column=T.column,this.triggerOptions=E}}function U(P,A,T){if(!A.getContextKeyValue(h.p.inlineSuggestionVisible.key))return!0;const E=A.getContextKeyValue(h.p.suppressSuggestions.key);return E!==void 0?!E:!P.getOption(62).suppressSuggestions}function K(P,A,T){if(!A.getContextKeyValue("inlineSuggestionVisible"))return!0;const E=A.getContextKeyValue(h.p.suppressSuggestions.key);return E!==void 0?!E:!P.getOption(62).suppressSuggestions}let G=w=class{constructor(A,T,E,W,$,z,J,B,V){this._editor=A,this._editorWorkerService=T,this._clipboardService=E,this._telemetryService=W,this._logService=$,this._contextKeyService=z,this._configurationService=J,this._languageFeaturesService=B,this._envService=V,this._toDispose=new L.Cm,this._triggerCharacterListener=new L.Cm,this._triggerQuickSuggest=new r.pc,this._triggerState=void 0,this._completionDisposables=new L.Cm,this._onDidCancel=new M.vl,this._onDidTrigger=new M.vl,this._onDidSuggest=new M.vl,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new x.L(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let Y=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{Y=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{Y=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(X=>{Y||this._onCursorChange(X)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{!Y&&this._triggerState!==void 0&&this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){(0,L.AS)(this._triggerCharacterListener),(0,L.AS)([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(91)||!this._editor.hasModel()||!this._editor.getOption(121))return;const A=new Map;for(const E of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(const W of E.triggerCharacters||[]){let $=A.get(W);$||($=new Set,$.add((0,c.f3)()),A.set(W,$)),$.add(E)}const T=E=>{var W;if(!K(this._editor,this._contextKeyService,this._configurationService)||j.shouldAutoTrigger(this._editor))return;if(!E){const J=this._editor.getPosition();E=this._editor.getModel().getLineContent(J.lineNumber).substr(0,J.column-1)}let $="";(0,g.LJ)(E.charCodeAt(E.length-1))?(0,g.pc)(E.charCodeAt(E.length-2))&&($=E.substr(E.length-2)):$=E.charAt(E.length-1);const z=A.get($);if(z){const J=new Map;if(this._completionModel)for(const[B,V]of this._completionModel.getItemsByProvider())z.has(B)||J.set(B,V);this.trigger({auto:!0,triggerKind:1,triggerCharacter:$,retrigger:!!this._completionModel,clipboardText:(W=this._completionModel)===null||W===void 0?void 0:W.clipboardText,completionOptions:{providerFilter:z,providerItemsToReuse:J}})}};this._triggerCharacterListener.add(this._editor.onDidType(T)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(()=>T()))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(A=!1){var T;this._triggerState!==void 0&&(this._triggerQuickSuggest.cancel(),(T=this._requestToken)===null||T===void 0||T.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:A}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){this._triggerState!==void 0&&(!this._editor.hasModel()||!this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._triggerState.auto,retrigger:!0}))}_onCursorChange(A){if(!this._editor.hasModel())return;const T=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!A.selection.isEmpty()||A.reason!==0&&A.reason!==3||A.source!=="keyboard"&&A.source!=="deleteLeft"){this.cancel();return}this._triggerState===void 0&&A.reason===0?(T.containsRange(this._currentSelection)||T.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():this._triggerState!==void 0&&A.reason===3&&this._refilterCompletionItems()}_onCompositionEnd(){this._triggerState===void 0?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var A;c.r3.isAllOff(this._editor.getOption(89))||this._editor.getOption(118).snippetsPreventQuickSuggestions&&(!((A=v.O.get(this._editor))===null||A===void 0)&&A.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._triggerState!==void 0||!j.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;const T=this._editor.getModel(),E=this._editor.getPosition(),W=this._editor.getOption(89);if(!c.r3.isAllOff(W)){if(!c.r3.isAllOn(W)){T.tokenization.tokenizeIfCheap(E.lineNumber);const $=T.tokenization.getLineTokens(E.lineNumber),z=$.getStandardTokenType($.findTokenIndexAtOffset(Math.max(E.column-1-1,0)));if(c.r3.valueFor(W,z)!=="on")return}U(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(T)&&this.trigger({auto:!0})}},this._editor.getOption(90)))}_refilterCompletionItems(){(0,C.j)(this._editor.hasModel()),(0,C.j)(this._triggerState!==void 0);const A=this._editor.getModel(),T=this._editor.getPosition(),E=new j(A,T,{...this._triggerState,refilter:!0});this._onNewContext(E)}trigger(A){var T,E,W,$,z,J;if(!this._editor.hasModel())return;const B=this._editor.getModel(),V=new j(B,this._editor.getPosition(),A);this.cancel(A.retrigger),this._triggerState=A,this._onDidTrigger.fire({auto:A.auto,shy:(T=A.shy)!==null&&T!==void 0?T:!1,position:this._editor.getPosition()}),this._context=V;let Y={triggerKind:(E=A.triggerKind)!==null&&E!==void 0?E:0};A.triggerCharacter&&(Y={triggerKind:1,triggerCharacter:A.triggerCharacter}),this._requestToken=new F.Q;const X=this._editor.getOption(112);let ie=1;switch(X){case"top":ie=0;break;case"bottom":ie=2;break}const{itemKind:re,showDeprecated:te}=w.createSuggestFilter(this._editor),D=new c.l1(ie,($=(W=A.completionOptions)===null||W===void 0?void 0:W.kindFilter)!==null&&$!==void 0?$:re,(z=A.completionOptions)===null||z===void 0?void 0:z.providerFilter,(J=A.completionOptions)===null||J===void 0?void 0:J.providerItemsToReuse,te),he=S.S.create(this._editorWorkerService,this._editor),ve=(0,c.aR)(this._languageFeaturesService.completionProvider,B,this._editor.getPosition(),D,Y,this._requestToken.token);Promise.all([ve,he]).then(async([Ce,Pe])=>{var _e;if((_e=this._requestToken)===null||_e===void 0||_e.dispose(),!this._editor.hasModel())return;let ee=A?.clipboardText;if(!ee&&Ce.needsClipboard&&(ee=await this._clipboardService.readText()),this._triggerState===void 0)return;const De=this._editor.getModel(),Te=new j(De,this._editor.getPosition(),A),He={...u.Nd.default,firstMatchCanBeWeak:!this._editor.getOption(118).matchOnWordStartOnly};if(this._completionModel=new i.C(Ce.items,this._context.column,{leadingLineContent:Te.leadingLineContent,characterCountDelta:Te.column-this._context.column},Pe,this._editor.getOption(118),this._editor.getOption(112),He,ee),this._completionDisposables.add(Ce.disposable),this._onNewContext(Te),this._reportDurationsTelemetry(Ce.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(const qe of Ce.items)qe.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${qe.provider._debugDisplayName}`,qe.completion)}).catch(k.dz)}_reportDurationsTelemetry(A){this._telemetryGate++%230===0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(A)}),this._logService.debug("suggest.durations.json",A)})}static createSuggestFilter(A){const T=new Set;A.getOption(112)==="none"&&T.add(27);const W=A.getOption(118);return W.showMethods||T.add(0),W.showFunctions||T.add(1),W.showConstructors||T.add(2),W.showFields||T.add(3),W.showVariables||T.add(4),W.showClasses||T.add(5),W.showStructs||T.add(6),W.showInterfaces||T.add(7),W.showModules||T.add(8),W.showProperties||T.add(9),W.showEvents||T.add(10),W.showOperators||T.add(11),W.showUnits||T.add(12),W.showValues||T.add(13),W.showConstants||T.add(14),W.showEnums||T.add(15),W.showEnumMembers||T.add(16),W.showKeywords||T.add(17),W.showWords||T.add(18),W.showColors||T.add(19),W.showFiles||T.add(20),W.showReferences||T.add(21),W.showColors||T.add(22),W.showFolders||T.add(23),W.showTypeParameters||T.add(24),W.showSnippets||T.add(27),W.showUsers||T.add(25),W.showIssues||T.add(26),{itemKind:T,showDeprecated:W.showDeprecated}}_onNewContext(A){if(this._context){if(A.lineNumber!==this._context.lineNumber){this.cancel();return}if((0,g.UU)(A.leadingLineContent)!==(0,g.UU)(this._context.leadingLineContent)){this.cancel();return}if(A.columnthis._context.leadingWord.startColumn){if(j.shouldAutoTrigger(this._editor)&&this._context){const E=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:E}})}return}if(A.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&A.leadingWord.word.length!==0){const T=new Map,E=new Set;for(const[W,$]of this._completionModel.getItemsByProvider())$.length>0&&$[0].container.incomplete?E.add(W):T.set(W,$);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:E,providerItemsToReuse:T}})}else{const T=this._completionModel.lineContext;let E=!1;if(this._completionModel.lineContext={leadingLineContent:A.leadingLineContent,characterCountDelta:A.column-this._context.column},this._completionModel.items.length===0){const W=j.shouldAutoTrigger(this._editor);if(!this._context){this.cancel();return}if(W&&this._context.leadingWord.endColumn0,E&&A.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:A.triggerOptions,isFrozen:E})}}}}};G=w=b([O(1,I.w),O(2,f.h),O(3,n.k),O(4,s.rr),O(5,a.fN),O(6,d.pG),O(7,m.u),O(8,p.k)],G)},"./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/wordDistance.js":function(pt,Me,e){e.d(Me,{S:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/contrib/smartSelect/browser/bracketSelections.js");class M{static async create(g,x){if(!x.getOption(118).localityBonus||!x.hasModel())return M.None;const I=x.getModel(),S=x.getPosition();if(!g.canComputeWordRanges(I.uri))return M.None;const[f]=await new k.n().provideSelectionRanges(I,[S]);if(f.length===0)return M.None;const d=await g.computeWordRanges(I.uri,f[0].range);if(!d)return M.None;const a=I.getWordUntilPosition(S);return delete d[a.word],new class extends M{distance(s,n){if(!S.equals(x.getPosition()))return 0;if(n.kind===17)return 2<<20;const i=typeof n.label=="string"?n.label:n.label.label,c=d[i];if((0,r.Ct)(c))return 2<<20;const m=(0,r.El)(c,F.Q.fromPositions(s),F.Q.compareRangesUsingStarts),u=m>=0?c[m]:c[Math.max(0,~m-1)];let C=f.length;for(const h of f){if(!F.Q.containsRange(h.range,u))break;C-=1}return C}}}}M.None=new class extends M{distance(){return 0}}},"./node_modules/monaco-editor/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js");const k=(0,F.x1A)("symbolIcon.arrayForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=(0,F.x1A)("symbolIcon.booleanForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=(0,F.x1A)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,r.kg)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=(0,F.x1A)("symbolIcon.colorForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=(0,F.x1A)("symbolIcon.constantForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=(0,F.x1A)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,r.kg)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=(0,F.x1A)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,r.kg)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=(0,F.x1A)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,r.kg)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=(0,F.x1A)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,r.kg)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),a=(0,F.x1A)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,r.kg)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),s=(0,F.x1A)("symbolIcon.fileForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),n=(0,F.x1A)("symbolIcon.folderForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),i=(0,F.x1A)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,r.kg)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=(0,F.x1A)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,r.kg)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=(0,F.x1A)("symbolIcon.keyForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=(0,F.x1A)("symbolIcon.keywordForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=(0,F.x1A)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,r.kg)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=(0,F.x1A)("symbolIcon.moduleForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=(0,F.x1A)("symbolIcon.namespaceForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=(0,F.x1A)("symbolIcon.nullForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=(0,F.x1A)("symbolIcon.numberForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=(0,F.x1A)("symbolIcon.objectForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=(0,F.x1A)("symbolIcon.operatorForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),j=(0,F.x1A)("symbolIcon.packageForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),U=(0,F.x1A)("symbolIcon.propertyForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),K=(0,F.x1A)("symbolIcon.referenceForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),G=(0,F.x1A)("symbolIcon.snippetForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=(0,F.x1A)("symbolIcon.stringForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=(0,F.x1A)("symbolIcon.structForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=(0,F.x1A)("symbolIcon.textForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=(0,F.x1A)("symbolIcon.typeParameterForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),W=(0,F.x1A)("symbolIcon.unitForeground",{dark:F.CU6,light:F.CU6,hcDark:F.CU6,hcLight:F.CU6},(0,r.kg)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$=(0,F.x1A)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,r.kg)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))},"./node_modules/monaco-editor/esm/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/tabFocus.js"),k=e("./node_modules/monaco-editor/esm/vs/nls.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js");class L extends M.L{constructor(){super({id:L.ID,title:k.aS({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(){const I=!F.M.getTabFocusMode();F.M.setTabFocusMode(I),I?(0,r.xE)(k.kg("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):(0,r.xE)(k.kg("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}}L.ID="editor.action.toggleTabFocusMode",(0,M.ug)(L)},"./node_modules/monaco-editor/esm/vs/editor/contrib/tokenization/browser/tokenization.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),k=e("./node_modules/monaco-editor/esm/vs/nls.js");class M extends F.ks{constructor(){super({id:"editor.action.forceRetokenize",label:k.kg("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(g,x){if(!x.hasModel())return;const I=x.getModel();I.tokenization.resetTokenization();const S=new r.W;I.tokenization.forceTokenization(I.getLineCount()),S.stop(),console.log(`tokenization took ${S.elapsed()}`)}}(0,F.Fl)(M)},"./node_modules/monaco-editor/esm/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/services/unicodeTextModelHighlighter.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/services/editorWorker.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/viewModel/viewModelDecorations.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hoverTypes.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/markdownHoverParticipant.js"),c=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),m=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js"),u=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),v=e("./node_modules/monaco-editor/esm/vs/base/browser/event.js"),p=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),b=e("./node_modules/monaco-editor/esm/vs/base/browser/touch.js"),O=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),w=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),j=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js"),U=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),K=function(le,oe,ne,de){var Le=arguments.length,We=Le<3?oe:de===null?de=Object.getOwnPropertyDescriptor(oe,ne):de,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")We=Reflect.decorate(le,oe,ne,de);else for(var Ue=le.length-1;Ue>=0;Ue--)(we=le[Ue])&&(We=(Le<3?we(We):Le>3?we(oe,ne,We):we(oe,ne))||We);return Le>3&&We&&Object.defineProperty(oe,ne,We),We},G=function(le,oe){return function(ne,de){oe(ne,de,le)}};let P=class extends M.jG{get enabled(){return this._enabled}set enabled(oe){oe?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=oe}constructor(oe,ne,de={},Le){var We,we;super(),this._link=ne,this._enabled=!0,this.el=(0,c.BC)(oe,(0,c.$)("a.monaco-link",{tabIndex:(We=ne.tabIndex)!==null&&We!==void 0?We:0,href:ne.href},ne.label)),this.hoverDelegate=(we=de.hoverDelegate)!==null&&we!==void 0?we:(0,U.nZ)("mouse"),this.setTooltip(ne.title),this.el.setAttribute("role","button");const Ue=this._register(new v.f(this.el,"click")),lt=this._register(new v.f(this.el,"keypress")),Et=O.Jh.chain(lt.event,qt=>qt.map(tt=>new p.Z(tt)).filter(tt=>tt.keyCode===3)),Kt=this._register(new v.f(this.el,b.B.Tap)).event;this._register(b.q.addTarget(this.el));const Zt=O.Jh.any(Ue.event,Et,Kt);this._register(Zt(qt=>{this.enabled&&(c.fs.stop(qt,!0),de?.opener?de.opener(this._link.href):Le.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}setTooltip(oe){this.hoverDelegate.showNativeHover?this.el.title=oe??"":!this.hover&&oe?this.hover=this._register((0,j.f)(this.hoverDelegate,this.el,oe)):this.hover&&this.hover.update(oe)}};P=K([G(3,w.C)],P);var A=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js"),T=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),E=function(le,oe,ne,de){var Le=arguments.length,We=Le<3?oe:de===null?de=Object.getOwnPropertyDescriptor(oe,ne):de,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")We=Reflect.decorate(le,oe,ne,de);else for(var Ue=le.length-1;Ue>=0;Ue--)(we=le[Ue])&&(We=(Le<3?we(We):Le>3?we(oe,ne,We):we(oe,ne))||We);return Le>3&&We&&Object.defineProperty(oe,ne,We),We},W=function(le,oe){return function(ne,de){oe(ne,de,le)}};const $=26;let z=class extends M.jG{constructor(oe,ne){super(),this._editor=oe,this.instantiationService=ne,this.banner=this._register(this.instantiationService.createInstance(J))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(oe){this.banner.show({...oe,onClose:()=>{var ne;this.hide(),(ne=oe.onClose)===null||ne===void 0||ne.call(oe)}}),this._editor.setBanner(this.banner.element,$)}};z=E([W(1,h._Y)],z);let J=class extends M.jG{constructor(oe){super(),this.instantiationService=oe,this.markdownRenderer=this.instantiationService.createInstance(C.T,{}),this.element=(0,c.$)("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(oe){if(oe.ariaLabel)return oe.ariaLabel;if(typeof oe.message=="string")return oe.message}getBannerMessage(oe){if(typeof oe=="string"){const ne=(0,c.$)("span");return ne.innerText=oe,ne}return this.markdownRenderer.render(oe).element}clear(){(0,c.w_)(this.element)}show(oe){(0,c.w_)(this.element);const ne=this.getAriaLabel(oe);ne&&this.element.setAttribute("aria-label",ne);const de=(0,c.BC)(this.element,(0,c.$)("div.icon-container"));de.setAttribute("aria-hidden","true"),oe.icon&&de.appendChild((0,c.$)(`div${T.L.asCSSSelector(oe.icon)}`));const Le=(0,c.BC)(this.element,(0,c.$)("div.message-container"));if(Le.setAttribute("aria-hidden","true"),Le.appendChild(this.getBannerMessage(oe.message)),this.messageActionsContainer=(0,c.BC)(this.element,(0,c.$)("div.message-actions-container")),oe.actions)for(const we of oe.actions)this._register(this.instantiationService.createInstance(P,this.messageActionsContainer,{...we,tabIndex:-1},{}));const We=(0,c.BC)(this.element,(0,c.$)("div.action-container"));this.actionBar=this._register(new m.E(We)),this.actionBar.push(this._register(new u.rc("banner.close","Close Banner",T.L.asClassName(A.$_),!0,()=>{typeof oe.onClose=="function"&&oe.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};J=E([W(0,h._Y)],J);var B=e("./node_modules/monaco-editor/esm/vs/nls.js"),V=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),Y=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"),X=e("./node_modules/monaco-editor/esm/vs/platform/workspace/common/workspaceTrust.js"),ie=function(le,oe,ne,de){var Le=arguments.length,We=Le<3?oe:de===null?de=Object.getOwnPropertyDescriptor(oe,ne):de,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")We=Reflect.decorate(le,oe,ne,de);else for(var Ue=le.length-1;Ue>=0;Ue--)(we=le[Ue])&&(We=(Le<3?we(We):Le>3?we(oe,ne,We):we(oe,ne))||We);return Le>3&&We&&Object.defineProperty(oe,ne,We),We},re=function(le,oe){return function(ne,de){oe(ne,de,le)}};const te=(0,A.pU)("extensions-warning-message",F.W.warning,B.kg("warningIcon","Icon shown with a warning message in the extensions editor."));let D=class extends M.jG{constructor(oe,ne,de,Le){super(),this._editor=oe,this._editorWorkerService=ne,this._workspaceTrustService=de,this._highlighter=null,this._bannerClosed=!1,this._updateState=We=>{if(We&&We.hasMore){if(this._bannerClosed)return;const we=Math.max(We.ambiguousCharacterCount,We.nonBasicAsciiCharacterCount,We.invisibleCharacterCount);let Ue;if(We.nonBasicAsciiCharacterCount>=we)Ue={message:B.kg("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new be};else if(We.ambiguousCharacterCount>=we)Ue={message:B.kg("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new ye};else if(We.invisibleCharacterCount>=we)Ue={message:B.kg("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new ge};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:Ue.message,icon:te,actions:[{label:Ue.command.shortLabel,href:`command:${Ue.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(Le.createInstance(z,oe)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=oe.getOption(125),this._register(de.onDidChangeTrust(We=>{this._updateHighlighter()})),this._register(oe.onDidChangeConfiguration(We=>{We.hasChanged(125)&&(this._options=oe.getOption(125),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;const oe=he(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([oe.nonBasicASCII,oe.ambiguousCharacters,oe.invisibleCharacters].every(de=>de===!1))return;const ne={nonBasicASCII:oe.nonBasicASCII,ambiguousCharacters:oe.ambiguousCharacters,invisibleCharacters:oe.invisibleCharacters,includeComments:oe.includeComments,includeStrings:oe.includeStrings,allowedCodePoints:Object.keys(oe.allowedCharacters).map(de=>de.codePointAt(0)),allowedLocales:Object.keys(oe.allowedLocales).map(de=>de==="_os"?new Intl.NumberFormat().resolvedOptions().locale:de==="_vscode"?L.BH:de)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new ve(this._editor,ne,this._updateState,this._editorWorkerService):this._highlighter=new Ce(this._editor,ne,this._updateState)}getDecorationInfo(oe){return this._highlighter?this._highlighter.getDecorationInfo(oe):null}};D.ID="editor.contrib.unicodeHighlighter",D=ie([re(1,d.w),re(2,X.L),re(3,h._Y)],D);function he(le,oe){return{nonBasicASCII:oe.nonBasicASCII===I.XR?!le:oe.nonBasicASCII,ambiguousCharacters:oe.ambiguousCharacters,invisibleCharacters:oe.invisibleCharacters,includeComments:oe.includeComments===I.XR?!le:oe.includeComments,includeStrings:oe.includeStrings===I.XR?!le:oe.includeStrings,allowedCharacters:oe.allowedCharacters,allowedLocales:oe.allowedLocales}}let ve=class extends M.jG{constructor(oe,ne,de,Le){super(),this._editor=oe,this._options=ne,this._updateState=de,this._editorWorkerService=Le,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new r.uC(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const oe=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(ne=>{if(this._model.isDisposed()||this._model.getVersionId()!==oe)return;this._updateState(ne);const de=[];if(!ne.hasMore)for(const Le of ne.ranges)de.push({range:Le,options:qe.instance.getDecorationFromOptions(this._options)});this._decorations.set(de)})}getDecorationInfo(oe){if(!this._decorations.has(oe))return null;const ne=this._editor.getModel();if(!(0,s.GN)(ne,oe))return null;const de=ne.getValueInRange(oe.range);return{reason:He(de,this._options),inComment:(0,s.a6)(ne,oe),inString:(0,s.wc)(ne,oe)}}};ve=ie([re(3,d.w)],ve);class Ce extends M.jG{constructor(oe,ne,de){super(),this._editor=oe,this._options=ne,this._updateState=de,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new r.uC(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}const oe=this._editor.getVisibleRanges(),ne=[],de={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(const Le of oe){const We=f.P.computeUnicodeHighlights(this._model,this._options,Le);for(const we of We.ranges)de.ranges.push(we);de.ambiguousCharacterCount+=de.ambiguousCharacterCount,de.invisibleCharacterCount+=de.invisibleCharacterCount,de.nonBasicAsciiCharacterCount+=de.nonBasicAsciiCharacterCount,de.hasMore=de.hasMore||We.hasMore}if(!de.hasMore)for(const Le of de.ranges)ne.push({range:Le,options:qe.instance.getDecorationFromOptions(this._options)});this._updateState(de),this._decorations.set(ne)}getDecorationInfo(oe){if(!this._decorations.has(oe))return null;const ne=this._editor.getModel(),de=ne.getValueInRange(oe.range);return(0,s.GN)(ne,oe)?{reason:He(de,this._options),inComment:(0,s.a6)(ne,oe),inString:(0,s.wc)(ne,oe)}:null}}const Pe=B.kg("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options");let _e=class{constructor(oe,ne,de){this._editor=oe,this._languageService=ne,this._openerService=de,this.hoverOrdinal=5}computeSync(oe,ne){if(!this._editor.hasModel()||oe.type!==1)return[];const de=this._editor.getModel(),Le=this._editor.getContribution(D.ID);if(!Le)return[];const We=[],we=new Set;let Ue=300;for(const lt of ne){const Et=Le.getDecorationInfo(lt);if(!Et)continue;const Zt=de.getValueInRange(lt.range).codePointAt(0),qt=De(Zt);let tt;switch(Et.reason.kind){case 0:{(0,g.aC)(Et.reason.confusableWith)?tt=B.kg("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",qt,De(Et.reason.confusableWith.codePointAt(0))):tt=B.kg("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",qt,De(Et.reason.confusableWith.codePointAt(0)));break}case 1:tt=B.kg("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",qt);break;case 2:tt=B.kg("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",qt);break}if(we.has(tt))continue;we.add(tt);const Mt={codePoint:Zt,reason:Et.reason,inComment:Et.inComment,inString:Et.inString},Ht=B.kg("unicodeHighlight.adjustSettings","Adjust settings"),xt=`command:${Se.ID}?${encodeURIComponent(JSON.stringify(Mt))}`,Jt=new k.Bc("",!0).appendMarkdown(tt).appendText(" ").appendLink(xt,Ht,Pe);We.push(new i.eH(this,lt.range,[Jt],!1,Ue++))}return We}renderHoverParts(oe,ne){return(0,i.fm)(oe,ne,this._editor,this._languageService,this._openerService)}};_e=ie([re(1,a.L),re(2,w.C)],_e);function ee(le){return`U+${le.toString(16).padStart(4,"0")}`}function De(le){let oe=`\`${ee(le)}\``;return g.y_.isInvisibleCharacter(le)||(oe+=` "${`${Te(le)}`}"`),oe}function Te(le){return le===96?"`` ` ``":"`"+String.fromCodePoint(le)+"`"}function He(le,oe){return f.P.computeUnicodeHighlightReason(le,oe)}class qe{constructor(){this.map=new Map}getDecorationFromOptions(oe){return this.getDecoration(!oe.includeComments,!oe.includeStrings)}getDecoration(oe,ne){const de=`${oe}${ne}`;let Le=this.map.get(de);return Le||(Le=S.kI.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:oe,hideInStringTokens:ne}),this.map.set(de,Le)),Le}}qe.instance=new qe;class Qe extends x.ks{constructor(){super({id:ye.ID,label:B.kg("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=B.kg("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(oe,ne,de){const Le=oe?.get(V.pG);Le&&this.runAction(Le)}async runAction(oe){await oe.updateValue(I.Of.includeComments,!1,2)}}class q extends x.ks{constructor(){super({id:ye.ID,label:B.kg("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=B.kg("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(oe,ne,de){const Le=oe?.get(V.pG);Le&&this.runAction(Le)}async runAction(oe){await oe.updateValue(I.Of.includeStrings,!1,2)}}class ye extends x.ks{constructor(){super({id:ye.ID,label:B.kg("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=B.kg("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(oe,ne,de){const Le=oe?.get(V.pG);Le&&this.runAction(Le)}async runAction(oe){await oe.updateValue(I.Of.ambiguousCharacters,!1,2)}}ye.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class ge extends x.ks{constructor(){super({id:ge.ID,label:B.kg("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=B.kg("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(oe,ne,de){const Le=oe?.get(V.pG);Le&&this.runAction(Le)}async runAction(oe){await oe.updateValue(I.Of.invisibleCharacters,!1,2)}}ge.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class be extends x.ks{constructor(){super({id:be.ID,label:B.kg("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=B.kg("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(oe,ne,de){const Le=oe?.get(V.pG);Le&&this.runAction(Le)}async runAction(oe){await oe.updateValue(I.Of.nonBasicASCII,!1,2)}}be.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class Se extends x.ks{constructor(){super({id:Se.ID,label:B.kg("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(oe,ne,de){const{codePoint:Le,reason:We,inString:we,inComment:Ue}=de,lt=String.fromCodePoint(Le),Et=oe.get(Y.GK),Kt=oe.get(V.pG);function Zt(Mt){return g.y_.isInvisibleCharacter(Mt)?B.kg("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",ee(Mt)):B.kg("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${ee(Mt)} "${lt}"`)}const qt=[];if(We.kind===0)for(const Mt of We.notAmbiguousInLocales)qt.push({label:B.kg("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',Mt),run:async()=>{me(Kt,[Mt])}});if(qt.push({label:Zt(Le),run:()=>ae(Kt,[Le])}),Ue){const Mt=new Qe;qt.push({label:Mt.label,run:async()=>Mt.runAction(Kt)})}else if(we){const Mt=new q;qt.push({label:Mt.label,run:async()=>Mt.runAction(Kt)})}if(We.kind===0){const Mt=new ye;qt.push({label:Mt.label,run:async()=>Mt.runAction(Kt)})}else if(We.kind===1){const Mt=new ge;qt.push({label:Mt.label,run:async()=>Mt.runAction(Kt)})}else if(We.kind===2){const Mt=new be;qt.push({label:Mt.label,run:async()=>Mt.runAction(Kt)})}else fe(We);const tt=await Et.pick(qt,{title:Pe});tt&&await tt.run()}}Se.ID="editor.action.unicodeHighlight.showExcludeOptions";async function ae(le,oe){const ne=le.getValue(I.Of.allowedCharacters);let de;typeof ne=="object"&&ne?de=ne:de={};for(const Le of oe)de[String.fromCodePoint(Le)]=!0;await le.updateValue(I.Of.allowedCharacters,de,2)}async function me(le,oe){var ne;const de=(ne=le.inspect(I.Of.allowedLocales).user)===null||ne===void 0?void 0:ne.value;let Le;typeof de=="object"&&de?Le=Object.assign({},de):Le={};for(const We of oe)Le[We]=!0;await le.updateValue(I.Of.allowedLocales,Le,2)}function fe(le){throw new Error(`Unexpected value: ${le}`)}(0,x.Fl)(ye),(0,x.Fl)(ge),(0,x.Fl)(be),(0,x.Fl)(Se),(0,x.HW)(D.ID,D,1),n.B2.register(_e)},"./node_modules/monaco-editor/esm/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),L=e("./node_modules/monaco-editor/esm/vs/nls.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/dialogs/common/dialogs.js"),x=function(s,n,i,c){var m=arguments.length,u=m<3?n:c===null?c=Object.getOwnPropertyDescriptor(n,i):c,C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(s,n,i,c);else for(var h=s.length-1;h>=0;h--)(C=s[h])&&(u=(m<3?C(u):m>3?C(n,i,u):C(n,i))||u);return m>3&&u&&Object.defineProperty(n,i,u),u},I=function(s,n){return function(i,c){n(i,c,s)}};const S="ignoreUnusualLineTerminators";function f(s,n,i){s.setModelProperty(n.uri,S,i)}function d(s,n){return s.getModelProperty(n.uri,S)}let a=class extends r.jG{constructor(n,i,c){super(),this._editor=n,this._dialogService=i,this._codeEditorService=c,this._isPresentingDialog=!1,this._config=this._editor.getOption(126),this._register(this._editor.onDidChangeConfiguration(m=>{m.hasChanged(126)&&(this._config=this._editor.getOption(126),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(m=>{m.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}async _checkForUnusualLineTerminators(){if(this._config==="off"||!this._editor.hasModel())return;const n=this._editor.getModel();if(!n.mightContainUnusualLineTerminators()||d(this._codeEditorService,n)===!0||this._editor.getOption(91))return;if(this._config==="auto"){n.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let c;try{this._isPresentingDialog=!0,c=await this._dialogService.confirm({title:L.kg("unusualLineTerminators.title","Unusual Line Terminators"),message:L.kg("unusualLineTerminators.message","Detected unusual line terminators"),detail:L.kg("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,F.P8)(n.uri)),primaryButton:L.kg({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:L.kg("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!c.confirmed){f(this._codeEditorService,n,!0);return}n.removeUnusualLineTerminators(this._editor.getSelections())}};a.ID="editor.contrib.unusualLineTerminatorsDetector",a=x([I(1,g.X),I(2,M.T)],a),(0,k.HW)(a.ID,a,1)},"./node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js":function(pt,Me,e){e.d(Me,{P:function(){return m},v:function(){return u}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),M=e("./node_modules/monaco-editor/esm/vs/nls.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js");const x=(0,L.x1A)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},M.kg("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,L.x1A)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},M.kg("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,L.x1A)("editor.wordHighlightTextBackground",{light:x,dark:x,hcDark:x,hcLight:x},M.kg("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);const I=(0,L.x1A)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:L.buw,hcLight:L.buw},M.kg("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,L.x1A)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:L.buw,hcLight:L.buw},M.kg("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,L.x1A)("editor.wordHighlightTextBorder",{light:I,dark:I,hcDark:I,hcLight:I},M.kg("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));const S=(0,L.x1A)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},M.kg("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),f=(0,L.x1A)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},M.kg("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),d=(0,L.x1A)("editorOverviewRuler.wordHighlightTextForeground",{dark:L.z5H,light:L.z5H,hcDark:L.z5H,hcLight:L.z5H},M.kg("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),a=F.kI.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,g.Yf)(f),position:r.A5.Center},minimap:{color:(0,g.Yf)(L.Xp1),position:1}}),s=F.kI.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,g.Yf)(d),position:r.A5.Center},minimap:{color:(0,g.Yf)(L.Xp1),position:1}}),n=F.kI.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,g.Yf)(L.z5H),position:r.A5.Center},minimap:{color:(0,g.Yf)(L.Xp1),position:1}}),i=F.kI.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),c=F.kI.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,g.Yf)(S),position:r.A5.Center},minimap:{color:(0,g.Yf)(L.Xp1),position:1}});function m(C){return C===k.Kb.Write?a:C===k.Kb.Text?s:c}function u(C){return C?i:n}(0,g.zy)((C,h)=>{const v=C.getColor(L.QwA);v&&h.addRule(`.monaco-editor .selectionHighlight { background-color: ${v.transparent(.5)}; }`)})},"./node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js"),m=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),u=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),C=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/common/languageSelector.js"),v=function(Y,X,ie,re){var te=arguments.length,D=te<3?X:re===null?re=Object.getOwnPropertyDescriptor(X,ie):re,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(Y,X,ie,re);else for(var ve=Y.length-1;ve>=0;ve--)(he=Y[ve])&&(D=(te<3?he(D):te>3?he(X,ie,D):he(X,ie))||D);return te>3&&D&&Object.defineProperty(X,ie,D),D},p=function(Y,X){return function(ie,re){X(ie,re,Y)}},b,O;const w=new m.N1("hasWordHighlights",!1);function j(Y,X,ie,re){const te=Y.ordered(X);return(0,M.$1)(te.map(D=>()=>Promise.resolve(D.provideDocumentHighlights(X,ie,re)).then(void 0,g.M_)),F.EI).then(D=>{if(D){const he=new C.fT;return he.set(X.uri,D),he}return new C.fT})}function U(Y,X,ie,re,te,D){const he=Y.ordered(X);return(0,M.$1)(he.map(ve=>()=>{const Ce=D.filter(Pe=>(0,n.vd)(Pe)).filter(Pe=>(0,h.f)(ve.selector,Pe.uri,Pe.getLanguageId(),!0,void 0,void 0)>0);return Promise.resolve(ve.provideMultiDocumentHighlights(X,ie,Ce,te)).then(void 0,g.M_)}),ve=>ve instanceof C.fT&&ve.size>0)}class K{constructor(X,ie,re){this._model=X,this._selection=ie,this._wordSeparators=re,this._wordRange=this._getCurrentWordRange(X,ie),this._result=null}get result(){return this._result||(this._result=(0,M.SS)(X=>this._compute(this._model,this._selection,this._wordSeparators,X))),this._result}_getCurrentWordRange(X,ie){const re=X.getWordAtPosition(ie.getPosition());return re?new d.Q(ie.startLineNumber,re.startColumn,ie.startLineNumber,re.endColumn):null}isValid(X,ie,re){const te=ie.startLineNumber,D=ie.startColumn,he=ie.endColumn,ve=this._getCurrentWordRange(X,ie);let Ce=!!(this._wordRange&&this._wordRange.equalsRange(ve));for(let Pe=0,_e=re.length;!Ce&&Pe<_e;Pe++){const ee=re.getRange(Pe);ee&&ee.startLineNumber===te&&ee.startColumn<=D&&ee.endColumn>=he&&(Ce=!0)}return Ce}cancel(){this.result.cancel()}}class G extends K{constructor(X,ie,re,te){super(X,ie,re),this._providers=te}_compute(X,ie,re,te){return j(this._providers,X,ie.getPosition(),te).then(D=>D||new C.fT)}}class P extends K{constructor(X,ie,re,te,D){super(X,ie,re),this._providers=te,this._otherModels=D}_compute(X,ie,re,te){return U(this._providers,X,ie.getPosition(),re,te,this._otherModels).then(D=>D||new C.fT)}}class A extends K{constructor(X,ie,re,te,D){super(X,ie,te),this._otherModels=D,this._selectionIsEmpty=ie.isEmpty(),this._word=re}_compute(X,ie,re,te){return(0,M.wR)(250,te).then(()=>{const D=new C.fT;let he;if(this._word?he=this._word:he=X.getWordAtPosition(ie.getPosition()),!he)return new C.fT;const ve=[X,...this._otherModels];for(const Ce of ve){if(Ce.isDisposed())continue;const _e=Ce.findMatches(he.word,!0,!1,!0,re,!1).map(ee=>({range:ee.range,kind:s.Kb.Text}));_e&&D.set(Ce.uri,_e)}return D})}isValid(X,ie,re){const te=ie.isEmpty();return this._selectionIsEmpty!==te?!1:super.isValid(X,ie,re)}}function T(Y,X,ie,re,te){return Y.has(X)?new G(X,ie,te,Y):new A(X,ie,re,te,[])}function E(Y,X,ie,re,te,D){return Y.has(X)?new P(X,ie,te,Y,D):new A(X,ie,re,te,D)}(0,S.ke)("_executeDocumentHighlights",async(Y,X,ie)=>{const re=Y.get(i.u),te=await j(re.documentHighlightProvider,X,ie,L.X.None);return te?.get(X.uri)});let W=b=class{constructor(X,ie,re,te,D){this.toUnhook=new x.Cm,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=new C.fT,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=X,this.providers=ie,this.multiDocumentProviders=re,this.codeEditorService=D,this._hasWordHighlights=w.bindTo(te),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(81),this.model=this.editor.getModel(),this.toUnhook.add(X.onDidChangeCursorPosition(he=>{this._ignorePositionChangeEvent||this.occurrencesHighlight!=="off"&&this._onPositionChanged(he)})),this.toUnhook.add(X.onDidFocusEditorText(he=>{this.occurrencesHighlight!=="off"&&(this.workerRequest||this._run())})),this.toUnhook.add(X.onDidChangeModelContent(he=>{this._stopAll()})),this.toUnhook.add(X.onDidChangeModel(he=>{!he.newModelUrl&&he.oldModelUrl?this._stopSingular():b.query&&this._run()})),this.toUnhook.add(X.onDidChangeConfiguration(he=>{const ve=this.editor.getOption(81);this.occurrencesHighlight!==ve&&(this.occurrencesHighlight=ve,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,b.query&&this._run()}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight!=="off"&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(d.Q.compareRangesUsingStarts)}moveNext(){const X=this._getSortedHighlights(),re=(X.findIndex(D=>D.containsPosition(this.editor.getPosition()))+1)%X.length,te=X[re];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(te.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(te);const D=this._getWord();if(D){const he=this.editor.getModel().getLineContent(te.startLineNumber);(0,k.xE)(`${he}, ${re+1} of ${X.length} for '${D.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){const X=this._getSortedHighlights(),re=(X.findIndex(D=>D.containsPosition(this.editor.getPosition()))-1+X.length)%X.length,te=X[re];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(te.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(te);const D=this._getWord();if(D){const he=this.editor.getModel().getLineContent(te.startLineNumber);(0,k.xE)(`${he}, ${re+1} of ${X.length} for '${D.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeSingleDecorations(){if(!this.editor.hasModel())return;const X=b.storedDecorations.get(this.editor.getModel().uri);X&&(this.editor.removeDecorations(X),b.storedDecorations.delete(this.editor.getModel().uri),this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1)))}_removeAllDecorations(){const X=this.codeEditorService.listCodeEditors(),ie=[];for(const re of X){if(!re.hasModel())continue;const te=b.storedDecorations.get(re.getModel().uri);if(!te)continue;re.removeDecorations(te),ie.push(re.getModel().uri);const D=$.get(re);D?.wordHighlighter&&D.wordHighlighter.decorations.length>0&&(D.wordHighlighter.decorations.clear(),D.wordHighlighter.workerRequest=null,D.wordHighlighter._hasWordHighlights.set(!1))}for(const re of ie)b.storedDecorations.delete(re)}_stopSingular(){var X,ie,re,te;this._removeSingleDecorations(),this.editor.hasTextFocus()&&(((X=this.editor.getModel())===null||X===void 0?void 0:X.uri.scheme)!==u.ny.vscodeNotebookCell&&((re=(ie=b.query)===null||ie===void 0?void 0:ie.modelInfo)===null||re===void 0?void 0:re.model.uri.scheme)!==u.ny.vscodeNotebookCell?(b.query=null,this._run()):!((te=b.query)===null||te===void 0)&&te.modelInfo&&(b.query.modelInfo=null)),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_stopAll(){this._removeAllDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(X){var ie;if(this.occurrencesHighlight==="off"){this._stopAll();return}if(X.reason!==3&&((ie=this.editor.getModel())===null||ie===void 0?void 0:ie.uri.scheme)!==u.ny.vscodeNotebookCell){this._stopAll();return}this._run()}_getWord(){const X=this.editor.getSelection(),ie=X.startLineNumber,re=X.startColumn;return this.model.isDisposed()?null:this.model.getWordAtPosition({lineNumber:ie,column:re})}getOtherModelsToHighlight(X){if(!X)return[];if(X.uri.scheme===u.ny.vscodeNotebookCell){const D=[],he=this.codeEditorService.listCodeEditors();for(const ve of he){const Ce=ve.getModel();Ce&&Ce!==X&&Ce.uri.scheme===u.ny.vscodeNotebookCell&&D.push(Ce)}return D}const re=[],te=this.codeEditorService.listCodeEditors();for(const D of te){if(!(0,I.Np)(D))continue;const he=D.getModel();he&&X===he.modified&&re.push(he.modified)}if(re.length)return re;if(this.occurrencesHighlight==="singleFile")return[];for(const D of te){const he=D.getModel();he&&he!==X&&re.push(he)}return re}_run(){var X;let ie;if(this.editor.hasTextFocus()){const te=this.editor.getSelection();if(!te||te.startLineNumber!==te.endLineNumber){b.query=null,this._stopAll();return}const D=te.startColumn,he=te.endColumn,ve=this._getWord();if(!ve||ve.startColumn>D||ve.endColumn{te===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=he||[],this._beginRenderDecorations())},g.dz)}}computeWithModel(X,ie,re,te){return te.length?E(this.multiDocumentProviders,X,ie,re,this.editor.getOption(131),te):T(this.providers,X,ie,re,this.editor.getOption(131))}_beginRenderDecorations(){const X=new Date().getTime(),ie=this.lastCursorPositionChangeTime+250;X>=ie?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},ie-X)}renderDecorations(){var X,ie,re;this.renderDecorationsTimer=-1;const te=this.codeEditorService.listCodeEditors();for(const D of te){const he=$.get(D);if(!he)continue;const ve=[],Ce=(X=D.getModel())===null||X===void 0?void 0:X.uri;if(Ce&&this.workerRequestValue.has(Ce)){const Pe=b.storedDecorations.get(Ce),_e=this.workerRequestValue.get(Ce);if(_e)for(const De of _e)De.range&&ve.push({range:De.range,options:(0,c.P)(De.kind)});let ee=[];D.changeDecorations(De=>{ee=De.deltaDecorations(Pe??[],ve)}),b.storedDecorations=b.storedDecorations.set(Ce,ee),ve.length>0&&((ie=he.wordHighlighter)===null||ie===void 0||ie.decorations.set(ve),(re=he.wordHighlighter)===null||re===void 0||re._hasWordHighlights.set(!0))}}}dispose(){this._stopSingular(),this.toUnhook.dispose()}};W.storedDecorations=new C.fT,W.query=null,W=b=v([p(4,f.T)],W);let $=O=class extends x.jG{static get(X){return X.getContribution(O.ID)}constructor(X,ie,re,te){super(),this._wordHighlighter=null;const D=()=>{X.hasModel()&&!X.getModel().isTooLargeForTokenization()&&(this._wordHighlighter=new W(X,re.documentHighlightProvider,re.multiDocumentHighlightProvider,ie,te))};this._register(X.onDidChangeModel(he=>{this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),D()})),D()}get wordHighlighter(){return this._wordHighlighter}saveViewState(){return!!(this._wordHighlighter&&this._wordHighlighter.hasDecorations())}moveNext(){var X;(X=this._wordHighlighter)===null||X===void 0||X.moveNext()}moveBack(){var X;(X=this._wordHighlighter)===null||X===void 0||X.moveBack()}restoreViewState(X){this._wordHighlighter&&X&&this._wordHighlighter.restore()}dispose(){this._wordHighlighter&&(this._wordHighlighter.dispose(),this._wordHighlighter=null),super.dispose()}};$.ID="editor.contrib.wordHighlighter",$=O=v([p(1,m.fN),p(2,i.u),p(3,f.T)],$);class z extends S.ks{constructor(X,ie){super(ie),this._isNext=X}run(X,ie){const re=$.get(ie);re&&(this._isNext?re.moveNext():re.moveBack())}}class J extends z{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:r.kg("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:w,kbOpts:{kbExpr:a.R.editorTextFocus,primary:65,weight:100}})}}class B extends z{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:r.kg("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:w,kbOpts:{kbExpr:a.R.editorTextFocus,primary:1089,weight:100}})}}class V extends S.ks{constructor(){super({id:"editor.action.wordHighlight.trigger",label:r.kg("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:w.toNegated(),kbOpts:{kbExpr:a.R.editorTextFocus,primary:0,weight:100}})}run(X,ie,re){const te=$.get(ie);te&&te.restoreViewState(!0)}}(0,S.HW)($.ID,$,0),(0,S.Fl)(J),(0,S.Fl)(B),(0,S.Fl)(V)},"./node_modules/monaco-editor/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js":function(pt,Me,e){e.d(Me,{Jk:function(){return c},R7:function(){return $}});var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/commands/replaceCommand.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/cursorCommon.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorWordOperations.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),a=e("./node_modules/monaco-editor/esm/vs/nls.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkeys.js");class c extends r.DX{constructor(he){super(he),this._inSelectionMode=he.inSelectionMode,this._wordNavigationType=he.wordNavigationType}runEditorCommand(he,ve,Ce){if(!ve.hasModel())return;const Pe=(0,g.i)(ve.getOption(131),ve.getOption(130)),_e=ve.getModel(),De=ve.getSelections().map(Te=>{const He=new x.y(Te.positionLineNumber,Te.positionColumn),qe=this._move(Pe,_e,He,this._wordNavigationType);return this._moveTo(Te,qe,this._inSelectionMode)});if(_e.pushStackElement(),ve._getViewModel().setCursorStates("moveWordCommand",3,De.map(Te=>M.MF.fromModelSelection(Te))),De.length===1){const Te=new x.y(De[0].positionLineNumber,De[0].positionColumn);ve.revealPosition(Te,0)}}_moveTo(he,ve,Ce){return Ce?new S.L(he.selectionStartLineNumber,he.selectionStartColumn,ve.lineNumber,ve.column):new S.L(ve.lineNumber,ve.column,ve.lineNumber,ve.column)}}class m extends c{_move(he,ve,Ce,Pe){return L.z.moveWordLeft(he,ve,Ce,Pe)}}class u extends c{_move(he,ve,Ce,Pe){return L.z.moveWordRight(he,ve,Ce,Pe)}}class C extends m{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}}class h extends m{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}}class v extends m{constructor(){var he;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:n.M$.and(f.R.textInputFocus,(he=n.M$.and(s.f,i.nd))===null||he===void 0?void 0:he.negate()),primary:2063,mac:{primary:527},weight:100}})}}class p extends m{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}}class b extends m{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}}class O extends m{constructor(){var he;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:n.M$.and(f.R.textInputFocus,(he=n.M$.and(s.f,i.nd))===null||he===void 0?void 0:he.negate()),primary:3087,mac:{primary:1551},weight:100}})}}class w extends m{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(he,ve,Ce,Pe){return super._move((0,g.i)(k.qB.wordSeparators.defaultValue,he.intlSegmenterLocales),ve,Ce,Pe)}}class j extends m{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(he,ve,Ce,Pe){return super._move((0,g.i)(k.qB.wordSeparators.defaultValue,he.intlSegmenterLocales),ve,Ce,Pe)}}class U extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}}class K extends u{constructor(){var he;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:n.M$.and(f.R.textInputFocus,(he=n.M$.and(s.f,i.nd))===null||he===void 0?void 0:he.negate()),primary:2065,mac:{primary:529},weight:100}})}}class G extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}}class P extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}}class A extends u{constructor(){var he;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:n.M$.and(f.R.textInputFocus,(he=n.M$.and(s.f,i.nd))===null||he===void 0?void 0:he.negate()),primary:3089,mac:{primary:1553},weight:100}})}}class T extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}}class E extends u{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(he,ve,Ce,Pe){return super._move((0,g.i)(k.qB.wordSeparators.defaultValue,he.intlSegmenterLocales),ve,Ce,Pe)}}class W extends u{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(he,ve,Ce,Pe){return super._move((0,g.i)(k.qB.wordSeparators.defaultValue,he.intlSegmenterLocales),ve,Ce,Pe)}}class $ extends r.DX{constructor(he){super(he),this._whitespaceHeuristics=he.whitespaceHeuristics,this._wordNavigationType=he.wordNavigationType}runEditorCommand(he,ve,Ce){const Pe=he.get(d.JZ);if(!ve.hasModel())return;const _e=(0,g.i)(ve.getOption(131),ve.getOption(130)),ee=ve.getModel(),De=ve.getSelections(),Te=ve.getOption(6),He=ve.getOption(11),qe=Pe.getLanguageConfiguration(ee.getLanguageId()).getAutoClosingPairs(),Qe=ve._getViewModel(),q=De.map(ye=>{const ge=this._delete({wordSeparators:_e,model:ee,selection:ye,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:ve.getOption(9),autoClosingBrackets:Te,autoClosingQuotes:He,autoClosingPairs:qe,autoClosedCharacters:Qe.getCursorAutoClosedCharacters()},this._wordNavigationType);return new F.iu(ge,"")});ve.pushUndoStop(),ve.executeCommands(this.id,q),ve.pushUndoStop()}}class z extends ${_delete(he,ve){const Ce=L.z.deleteWordLeft(he,ve);return Ce||new I.Q(1,1,1,1)}}class J extends ${_delete(he,ve){const Ce=L.z.deleteWordRight(he,ve);if(Ce)return Ce;const Pe=he.model.getLineCount(),_e=he.model.getLineMaxColumn(Pe);return new I.Q(Pe,_e,Pe,_e)}}class B extends z{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:f.R.writable})}}class V extends z{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:f.R.writable})}}class Y extends z{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:f.R.writable,kbOpts:{kbExpr:f.R.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}}class X extends J{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:f.R.writable})}}class ie extends J{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:f.R.writable})}}class re extends J{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:f.R.writable,kbOpts:{kbExpr:f.R.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}}class te extends r.ks{constructor(){super({id:"deleteInsideWord",precondition:f.R.writable,label:a.kg("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(he,ve,Ce){if(!ve.hasModel())return;const Pe=(0,g.i)(ve.getOption(131),ve.getOption(130)),_e=ve.getModel(),De=ve.getSelections().map(Te=>{const He=L.z.deleteInsideWord(Pe,_e,Te);return new F.iu(He,"")});ve.pushUndoStop(),ve.executeCommands(this.id,De),ve.pushUndoStop()}}(0,r.E_)(new C),(0,r.E_)(new h),(0,r.E_)(new v),(0,r.E_)(new p),(0,r.E_)(new b),(0,r.E_)(new O),(0,r.E_)(new U),(0,r.E_)(new K),(0,r.E_)(new G),(0,r.E_)(new P),(0,r.E_)(new A),(0,r.E_)(new T),(0,r.E_)(new w),(0,r.E_)(new j),(0,r.E_)(new E),(0,r.E_)(new W),(0,r.E_)(new B),(0,r.E_)(new V),(0,r.E_)(new Y),(0,r.E_)(new X),(0,r.E_)(new ie),(0,r.E_)(new re),(0,r.Fl)(te)},"./node_modules/monaco-editor/esm/vs/editor/contrib/wordPartOperations/browser/wordPartOperations.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorWordOperations.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/contrib/wordOperations/browser/wordOperations.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js");class x extends L.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:M.R.writable,kbOpts:{kbExpr:M.R.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(c,m){const u=F.c.deleteWordPartLeft(c);return u||new k.Q(1,1,1,1)}}class I extends L.R7{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:M.R.writable,kbOpts:{kbExpr:M.R.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(c,m){const u=F.c.deleteWordPartRight(c);if(u)return u;const C=c.model.getLineCount(),h=c.model.getLineMaxColumn(C);return new k.Q(C,h,C,h)}}class S extends L.Jk{_move(c,m,u,C){return F.c.moveWordPartLeft(c,m,u)}}class f extends S{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:M.R.textInputFocus,primary:0,mac:{primary:783},weight:100}})}}g.w.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");class d extends S{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:M.R.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}}g.w.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");class a extends L.Jk{_move(c,m,u,C){return F.c.moveWordPartRight(c,m,u)}}class s extends a{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:M.R.textInputFocus,primary:0,mac:{primary:785},weight:100}})}}class n extends a{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:M.R.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}}(0,r.E_)(new x),(0,r.E_)(new I),(0,r.E_)(new f),(0,r.E_)(new d),(0,r.E_)(new s),(0,r.E_)(new n)},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");class L extends F.jG{constructor(I){super(),this.editor=I,this.widget=null,M.un&&(this._register(I.onDidChangeConfiguration(()=>this.update())),this.update())}update(){const I=!this.editor.getOption(91);!this.widget&&I?this.widget=new g(this.editor):this.widget&&!I&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}}L.ID="editor.contrib.iPadShowKeyboard";class g extends F.jG{constructor(I){super(),this.editor=I,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(r.ko(this._domNode,"touchstart",S=>{this.editor.focus()})),this._register(r.ko(this._domNode,"focus",S=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return g.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}}g.ID="editor.contrib.ShowKeyboardWidget",(0,k.HW)(L.ID,L,3)},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/encodedTokenAttributes.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/nullTokenize.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js"),d=function(C,h,v,p){var b=arguments.length,O=b<3?h:p===null?p=Object.getOwnPropertyDescriptor(h,v):p,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(C,h,v,p);else for(var j=C.length-1;j>=0;j--)(w=C[j])&&(O=(b<3?w(O):b>3?w(h,v,O):w(h,v))||O);return b>3&&O&&Object.defineProperty(h,v,O),O},a=function(C,h){return function(v,p){h(v,p,C)}},s;let n=s=class extends k.jG{static get(h){return h.getContribution(s.ID)}constructor(h,v,p){super(),this._editor=h,this._languageService=p,this._widget=null,this._register(this._editor.onDidChangeModel(b=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(b=>this.stop())),this._register(L.dG.onDidChange(b=>this.stop())),this._register(this._editor.onKeyUp(b=>b.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new u(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};n.ID="editor.contrib.inspectTokens",n=s=d([a(1,S.L),a(2,I.L)],n);class i extends M.ks{constructor(){super({id:"editor.action.inspectTokens",label:f.YN.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(h,v){const p=n.get(v);p?.launch()}}function c(C){let h="";for(let v=0,p=C.length;vx.r3,tokenize:(b,O,w)=>(0,x.$H)(h,w),tokenizeEncoded:(b,O,w)=>(0,x.Lh)(p,w)}}class u extends k.jG{constructor(h,v){super(),this.allowEditorOverflow=!0,this._editor=h,this._languageService=v,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=m(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(p=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return u._ID}_compute(h){const v=this._getTokensAtLine(h.lineNumber);let p=0;for(let U=v.tokens1.length-1;U>=0;U--){const K=v.tokens1[U];if(h.column-1>=K.offset){p=U;break}}let b=0;for(let U=v.tokens2.length>>>1;U>=0;U--)if(h.column-1>=v.tokens2[U<<1]){b=U;break}const O=this._model.getLineContent(h.lineNumber);let w="";if(p1?I.kg("error.moreErrors","{0} ({1} errors in total)",De,ee.length):De}if(x.Kg(Pe))return Pe;if(Pe.detail){const ee=Pe.detail;if(ee.error)return S(ee.error,_e);if(ee.exception)return S(ee.exception,_e)}return Pe.stack?S(Pe,_e):Pe.message?Pe.message:I.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var s=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),i=e("./node_modules/monaco-editor/esm/vs/base/common/functional.js"),c=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/map.js");function u(Pe){var _e;const ee=new Map;for(const De of Pe)ee.set(De,((_e=ee.get(De))!==null&&_e!==void 0?_e:0)+1);return ee}class C{constructor(){this.chunkCount=0,this.chunkOccurrences=new Map,this.documents=new Map}calculateScores(_e,ee){const De=this.computeEmbedding(_e),Te=new Map,He=[];for(const[qe,Qe]of this.documents){if(ee.isCancellationRequested)return[];for(const q of Qe.chunks){const ye=this.computeSimilarityScore(q,De,Te);ye>0&&He.push({key:qe,score:ye})}}return He}static termFrequencies(_e){return u(C.splitTerms(_e))}static*splitTerms(_e){const ee=De=>De.toLowerCase();for(const[De]of _e.matchAll(/\b\p{Letter}[\p{Letter}\d]{2,}\b/gu)){yield ee(De);const Te=De.replace(/([a-z])([A-Z])/g,"$1 $2").split(/\s+/g);if(Te.length>1)for(const He of Te)He.length>2&&/\p{Letter}{3,}/gu.test(He)&&(yield ee(He))}}updateDocuments(_e){var ee;for(const{key:De}of _e)this.deleteDocument(De);for(const De of _e){const Te=[];for(const He of De.textChunks){const qe=C.termFrequencies(He);for(const Qe of qe.keys())this.chunkOccurrences.set(Qe,((ee=this.chunkOccurrences.get(Qe))!==null&&ee!==void 0?ee:0)+1);Te.push({text:He,tf:qe})}this.chunkCount+=Te.length,this.documents.set(De.key,{chunks:Te})}return this}deleteDocument(_e){const ee=this.documents.get(_e);if(ee){this.documents.delete(_e),this.chunkCount-=ee.chunks.length;for(const De of ee.chunks)for(const Te of De.tf.keys()){const He=this.chunkOccurrences.get(Te);if(typeof He=="number"){const qe=He-1;qe<=0?this.chunkOccurrences.delete(Te):this.chunkOccurrences.set(Te,qe)}}}}computeSimilarityScore(_e,ee,De){let Te=0;for(const[He,qe]of Object.entries(ee)){const Qe=_e.tf.get(He);if(!Qe)continue;let q=De.get(He);typeof q!="number"&&(q=this.computeIdf(He),De.set(He,q));const ye=Qe*q;Te+=ye*qe}return Te}computeEmbedding(_e){const ee=C.termFrequencies(_e);return this.computeTfidf(ee)}computeIdf(_e){var ee;const De=(ee=this.chunkOccurrences.get(_e))!==null&&ee!==void 0?ee:0;return De>0?Math.log((this.chunkCount+1)/De):0}computeTfidf(_e){const ee=Object.create(null);for(const[De,Te]of _e){const He=this.computeIdf(De);He>0&&(ee[De]=Te*He)}return ee}}function h(Pe){var _e,ee;const De=Pe.slice(0);De.sort((He,qe)=>qe.score-He.score);const Te=(ee=(_e=De[0])===null||_e===void 0?void 0:_e.score)!==null&&ee!==void 0?ee:0;if(Te>0)for(const He of De)He.score/=Te;return De}var v=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),p=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/dialogs/common/dialogs.js"),O=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),w=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),j=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),U=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),K=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),G;(function(Pe){Pe[Pe.NO_ACTION=0]="NO_ACTION",Pe[Pe.CLOSE_PICKER=1]="CLOSE_PICKER",Pe[Pe.REFRESH_PICKER=2]="REFRESH_PICKER",Pe[Pe.REMOVE_ITEM=3]="REMOVE_ITEM"})(G||(G={}));function P(Pe){const _e=Pe;return Array.isArray(_e.items)}function A(Pe){const _e=Pe;return!!_e.picks&&_e.additionalPicks instanceof Promise}class T extends c.jG{constructor(_e,ee){super(),this.prefix=_e,this.options=ee}provide(_e,ee,De){var Te;const He=new c.Cm;_e.canAcceptInBackground=!!(!((Te=this.options)===null||Te===void 0)&&Te.canAcceptInBackground),_e.matchOnLabel=_e.matchOnDescription=_e.matchOnDetail=_e.sortByLabel=!1;let qe;const Qe=He.add(new c.HE),q=async()=>{var ge;const be=Qe.value=new c.Cm;qe?.dispose(!0),_e.busy=!1,qe=new K.Q(ee);const Se=qe.token;let ae=_e.value.substring(this.prefix.length);!((ge=this.options)===null||ge===void 0)&&ge.shouldSkipTrimPickFilter||(ae=ae.trim());const me=this._getPicks(ae,be,Se,De),fe=(oe,ne)=>{var de;let Le,We;if(P(oe)?(Le=oe.items,We=oe.active):Le=oe,Le.length===0){if(ne)return!1;(ae.length>0||_e.hideInput)&&(!((de=this.options)===null||de===void 0)&&de.noResultsPick)&&((0,x.Tn)(this.options.noResultsPick)?Le=[this.options.noResultsPick(ae)]:Le=[this.options.noResultsPick])}return _e.items=Le,We&&(_e.activeItems=[We]),!0},le=async oe=>{let ne=!1,de=!1;await Promise.all([(async()=>{typeof oe.mergeDelay=="number"&&(await(0,U.wR)(oe.mergeDelay),Se.isCancellationRequested)||de||(ne=fe(oe.picks,!0))})(),(async()=>{_e.busy=!0;try{const Le=await oe.additionalPicks;if(Se.isCancellationRequested)return;let We,we;P(oe.picks)?(We=oe.picks.items,we=oe.picks.active):We=oe.picks;let Ue,lt;if(P(Le)?(Ue=Le.items,lt=Le.active):Ue=Le,Ue.length>0||!ne){let Et;if(!we&&!lt){const Kt=_e.activeItems[0];Kt&&We.indexOf(Kt)!==-1&&(Et=Kt)}fe({items:[...We,...Ue],active:we||lt||Et})}}finally{Se.isCancellationRequested||(_e.busy=!1),de=!0}})()])};if(me!==null)if(A(me))await le(me);else if(!(me instanceof Promise))fe(me);else{_e.busy=!0;try{const oe=await me;if(Se.isCancellationRequested)return;A(oe)?await le(oe):fe(oe)}finally{Se.isCancellationRequested||(_e.busy=!1)}}};He.add(_e.onDidChangeValue(()=>q())),q(),He.add(_e.onDidAccept(ge=>{const[be]=_e.selectedItems;typeof be?.accept=="function"&&(ge.inBackground||_e.hide(),be.accept(_e.keyMods,ge))}));const ye=async(ge,be)=>{var Se,ae;if(typeof be.trigger!="function")return;const me=(ae=(Se=be.buttons)===null||Se===void 0?void 0:Se.indexOf(ge))!==null&&ae!==void 0?ae:-1;if(me>=0){const fe=be.trigger(me,_e.keyMods),le=typeof fe=="number"?fe:await fe;if(ee.isCancellationRequested)return;switch(le){case G.NO_ACTION:break;case G.CLOSE_PICKER:_e.hide();break;case G.REFRESH_PICKER:q();break;case G.REMOVE_ITEM:{const oe=_e.items.indexOf(be);if(oe!==-1){const ne=_e.items.slice(),de=ne.splice(oe,1),Le=_e.activeItems.filter(we=>we!==de[0]),We=_e.keepScrollPosition;_e.keepScrollPosition=!0,_e.items=ne,Le&&(_e.activeItems=Le),_e.keepScrollPosition=We}break}}}};return He.add(_e.onDidTriggerItemButton(({button:ge,item:be})=>ye(ge,be))),He.add(_e.onDidTriggerSeparatorButton(({button:ge,separator:be})=>ye(ge,be))),He}}var E=e("./node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js"),W=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),$=function(Pe,_e,ee,De){var Te=arguments.length,He=Te<3?_e:De===null?De=Object.getOwnPropertyDescriptor(_e,ee):De,qe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")He=Reflect.decorate(Pe,_e,ee,De);else for(var Qe=Pe.length-1;Qe>=0;Qe--)(qe=Pe[Qe])&&(He=(Te<3?qe(He):Te>3?qe(_e,ee,He):qe(_e,ee))||He);return Te>3&&He&&Object.defineProperty(_e,ee,He),He},z=function(Pe,_e){return function(ee,De){_e(ee,De,Pe)}},J,B;let V=J=class extends T{constructor(_e,ee,De,Te,He,qe){super(J.PREFIX,_e),this.instantiationService=ee,this.keybindingService=De,this.commandService=Te,this.telemetryService=He,this.dialogService=qe,this.commandsHistory=this._register(this.instantiationService.createInstance(Y)),this.options=_e}async _getPicks(_e,ee,De,Te){var He,qe,Qe,q;const ye=await this.getCommandPicks(De);if(De.isCancellationRequested)return[];const ge=(0,i.P)(()=>{const oe=new C;oe.updateDocuments(ye.map(de=>({key:de.commandId,textChunks:[this.getTfIdfChunk(de)]})));const ne=oe.calculateScores(_e,De);return h(ne).filter(de=>de.score>J.TFIDF_THRESHOLD).slice(0,J.TFIDF_MAX_RESULTS)}),be=[];for(const oe of ye){const ne=(He=J.WORD_FILTER(_e,oe.label))!==null&&He!==void 0?He:void 0,de=oe.commandAlias&&(qe=J.WORD_FILTER(_e,oe.commandAlias))!==null&&qe!==void 0?qe:void 0;if(ne||de)oe.highlights={label:ne,detail:this.options.showAlias?de:void 0},be.push(oe);else if(_e===oe.commandId)be.push(oe);else if(_e.length>=3){const Le=ge();if(De.isCancellationRequested)return[];const We=Le.find(we=>we.key===oe.commandId);We&&(oe.tfIdfScore=We.score,be.push(oe))}}const Se=new Map;for(const oe of be){const ne=Se.get(oe.label);ne?(oe.description=oe.commandId,ne.description=ne.commandId):Se.set(oe.label,oe)}be.sort((oe,ne)=>{if(oe.tfIdfScore&&ne.tfIdfScore)return oe.tfIdfScore===ne.tfIdfScore?oe.label.localeCompare(ne.label):ne.tfIdfScore-oe.tfIdfScore;if(oe.tfIdfScore)return 1;if(ne.tfIdfScore)return-1;const de=this.commandsHistory.peek(oe.commandId),Le=this.commandsHistory.peek(ne.commandId);if(de&&Le)return de>Le?-1:1;if(de)return-1;if(Le)return 1;if(this.options.suggestedCommandIds){const We=this.options.suggestedCommandIds.has(oe.commandId),we=this.options.suggestedCommandIds.has(ne.commandId);if(We&&we)return 0;if(We)return-1;if(we)return 1}return oe.label.localeCompare(ne.label)});const ae=[];let me=!1,fe=!0,le=!!this.options.suggestedCommandIds;for(let oe=0;oe{var oe;const ne=await this.getAdditionalCommandPicks(ye,be,_e,De);if(De.isCancellationRequested)return[];const de=ne.map(Le=>this.toCommandPick(Le,Te));return fe&&((oe=de[0])===null||oe===void 0?void 0:oe.type)!=="separator"&&de.unshift({type:"separator",label:(0,I.kg)("suggested","similar commands")}),de})()}:ae}toCommandPick(_e,ee){if(_e.type==="separator")return _e;const De=this.keybindingService.lookupKeybinding(_e.commandId),Te=De?(0,I.kg)("commandPickAriaLabelWithKeybinding","{0}, {1}",_e.label,De.getAriaLabel()):_e.label;return{..._e,ariaLabel:Te,detail:this.options.showAlias&&_e.commandAlias!==_e.label?_e.commandAlias:void 0,keybinding:De,accept:async()=>{var He,qe;this.commandsHistory.push(_e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:_e.commandId,from:(He=ee?.from)!==null&&He!==void 0?He:"quick open"});try{!((qe=_e.args)===null||qe===void 0)&&qe.length?await this.commandService.executeCommand(_e.commandId,..._e.args):await this.commandService.executeCommand(_e.commandId)}catch(Qe){(0,s.MB)(Qe)||this.dialogService.error((0,I.kg)("canNotRun","Command '{0}' resulted in an error",_e.label),a(Qe))}}}}getTfIdfChunk({label:_e,commandAlias:ee,commandDescription:De}){let Te=_e;return ee&&ee!==_e&&(Te+=` - ${ee}`),De&&De.value!==_e&&(Te+=` - ${De.value===De.original?De.value:`${De.value} (${De.original})`}`),Te}};V.PREFIX=">",V.TFIDF_THRESHOLD=.5,V.TFIDF_MAX_RESULTS=5,V.WORD_FILTER=(0,n.or)(n.WP,n.J1,n.Tt),V=J=$([z(1,O._Y),z(2,w.b),z(3,v.d),z(4,W.k),z(5,b.X)],V);let Y=B=class extends c.jG{constructor(_e,ee,De){super(),this.storageService=_e,this.configurationService=ee,this.logService=De,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(_e=>this.updateConfiguration(_e))),this._register(this.storageService.onWillSaveState(_e=>{_e.reason===E.LP.SHUTDOWN&&this.saveState()}))}updateConfiguration(_e){_e&&!_e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=B.getConfiguredCommandHistoryLength(this.configurationService),B.cache&&B.cache.limit!==this.configuredCommandsHistoryLength&&(B.cache.limit=this.configuredCommandsHistoryLength,B.hasChanges=!0))}load(){const _e=this.storageService.get(B.PREF_KEY_CACHE,0);let ee;if(_e)try{ee=JSON.parse(_e)}catch(Te){this.logService.error(`[CommandsHistory] invalid data: ${Te}`)}const De=B.cache=new m.qK(this.configuredCommandsHistoryLength,1);if(ee){let Te;ee.usesLRU?Te=ee.entries:Te=ee.entries.sort((He,qe)=>He.value-qe.value),Te.forEach(He=>De.set(He.key,He.value))}B.counter=this.storageService.getNumber(B.PREF_KEY_COUNTER,0,B.counter)}push(_e){B.cache&&(B.cache.set(_e,B.counter++),B.hasChanges=!0)}peek(_e){var ee;return(ee=B.cache)===null||ee===void 0?void 0:ee.peek(_e)}saveState(){if(!B.cache||!B.hasChanges)return;const _e={usesLRU:!0,entries:[]};B.cache.forEach((ee,De)=>_e.entries.push({key:De,value:ee})),this.storageService.store(B.PREF_KEY_CACHE,JSON.stringify(_e),0,0),this.storageService.store(B.PREF_KEY_COUNTER,B.counter,0,0),B.hasChanges=!1}static getConfiguredCommandHistoryLength(_e){var ee,De;const He=(De=(ee=_e.getValue().workbench)===null||ee===void 0?void 0:ee.commandPalette)===null||De===void 0?void 0:De.history;return typeof He=="number"?He:B.DEFAULT_COMMANDS_HISTORY_LENGTH}};Y.DEFAULT_COMMANDS_HISTORY_LENGTH=50,Y.PREF_KEY_CACHE="commandPalette.mru.cache",Y.PREF_KEY_COUNTER="commandPalette.mru.counter",Y.counter=1,Y.hasChanges=!1,Y=B=$([z(0,E.CS),z(1,p.pG),z(2,j.rr)],Y);class X extends V{constructor(_e,ee,De,Te,He,qe){super(_e,ee,De,Te,He,qe)}getCodeEditorCommandPicks(){const _e=this.activeTextEditorControl;if(!_e)return[];const ee=[];for(const De of _e.getSupportedActions())ee.push({commandId:De.id,commandAlias:De.alias,label:(0,L.pS)(De.label)||De.id});return ee}}var ie=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),re=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),te=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"),D=function(Pe,_e,ee,De){var Te=arguments.length,He=Te<3?_e:De===null?De=Object.getOwnPropertyDescriptor(_e,ee):De,qe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")He=Reflect.decorate(Pe,_e,ee,De);else for(var Qe=Pe.length-1;Qe>=0;Qe--)(qe=Pe[Qe])&&(He=(Te<3?qe(He):Te>3?qe(_e,ee,He):qe(_e,ee))||He);return Te>3&&He&&Object.defineProperty(_e,ee,He),He},he=function(Pe,_e){return function(ee,De){_e(ee,De,Pe)}};let ve=class extends X{get activeTextEditorControl(){var _e;return(_e=this.codeEditorService.getFocusedCodeEditor())!==null&&_e!==void 0?_e:void 0}constructor(_e,ee,De,Te,He,qe){super({showAlias:!1},_e,De,Te,He,qe),this.codeEditorService=ee}async getCommandPicks(){return this.getCodeEditorCommandPicks()}hasAdditionalCommandPicks(){return!1}async getAdditionalCommandPicks(){return[]}};ve=D([he(0,O._Y),he(1,M.T),he(2,w.b),he(3,v.d),he(4,W.k),he(5,b.X)],ve);class Ce extends ie.ks{constructor(){super({id:Ce.ID,label:k.gf.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:re.R.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(_e){_e.get(te.GK).quickAccess.show(ve.PREFIX)}}Ce.ID="editor.action.quickCommand",(0,ie.Fl)(Ce),r.O.as(F.Fd.Quickaccess).registerQuickAccessProvider({ctor:ve,prefix:ve.PREFIX,helpEntries:[{description:k.gf.quickCommandHelp,commandId:Ce.ID}]})},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorBrowser.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js"),M=e("./node_modules/monaco-editor/esm/vs/nls.js");class L extends k.o{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(C){const h=(0,M.kg)("cannotRunGotoLine","Open a text editor first to go to a line.");return C.items=[{label:h}],C.ariaLabel=h,r.jG.None}provideWithTextEditor(C,h,v){const p=C.editor,b=new r.Cm;b.add(h.onDidAccept(j=>{const[U]=h.selectedItems;if(U){if(!this.isValidLineNumber(p,U.lineNumber))return;this.gotoLocation(C,{range:this.toRange(U.lineNumber,U.column),keyMods:h.keyMods,preserveFocus:j.inBackground}),j.inBackground||h.hide()}}));const O=()=>{const j=this.parsePosition(p,h.value.trim().substr(L.PREFIX.length)),U=this.getPickLabel(p,j.lineNumber,j.column);if(h.items=[{lineNumber:j.lineNumber,column:j.column,label:U}],h.ariaLabel=U,!this.isValidLineNumber(p,j.lineNumber)){this.clearDecorations(p);return}const K=this.toRange(j.lineNumber,j.column);p.revealRangeInCenter(K,0),this.addDecorations(p,K)};O(),b.add(h.onDidChangeValue(()=>O()));const w=(0,F.jA)(p);return w&&w.getOptions().get(68).renderType===2&&(w.updateOptions({lineNumbers:"on"}),b.add((0,r.s)(()=>w.updateOptions({lineNumbers:"relative"})))),b}toRange(C=1,h=1){return{startLineNumber:C,startColumn:h,endLineNumber:C,endColumn:h}}parsePosition(C,h){const v=h.split(/,|:|#/).map(b=>parseInt(b,10)).filter(b=>!isNaN(b)),p=this.lineCount(C)+1;return{lineNumber:v[0]>0?v[0]:p+v[0],column:v[1]}}getPickLabel(C,h,v){if(this.isValidLineNumber(C,h))return this.isValidColumn(C,h,v)?(0,M.kg)("gotoLineColumnLabel","Go to line {0} and character {1}.",h,v):(0,M.kg)("gotoLineLabel","Go to line {0}.",h);const p=C.getPosition()||{lineNumber:1,column:1},b=this.lineCount(C);return b>1?(0,M.kg)("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",p.lineNumber,p.column,b):(0,M.kg)("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",p.lineNumber,p.column)}isValidLineNumber(C,h){return!h||typeof h!="number"?!1:h>0&&h<=this.lineCount(C)}isValidColumn(C,h,v){if(!v||typeof v!="number")return!1;const p=this.getModel(C);if(!p)return!1;const b={lineNumber:h,column:v};return p.validatePosition(b).equals(b)}lineCount(C){var h,v;return(v=(h=this.getModel(C))===null||h===void 0?void 0:h.getLineCount())!==null&&v!==void 0?v:0}}L.PREFIX=":";var g=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickAccess.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"),n=function(u,C,h,v){var p=arguments.length,b=p<3?C:v===null?v=Object.getOwnPropertyDescriptor(C,h):v,O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(u,C,h,v);else for(var w=u.length-1;w>=0;w--)(O=u[w])&&(b=(p<3?O(b):p>3?O(C,h,b):O(C,h))||b);return p>3&&b&&Object.defineProperty(C,h,b),b},i=function(u,C){return function(h,v){C(h,v,u)}};let c=class extends L{constructor(C){super(),this.editorService=C,this.onDidActiveTextEditorControlChange=f.Jh.None}get activeTextEditorControl(){var C;return(C=this.editorService.getFocusedCodeEditor())!==null&&C!==void 0?C:void 0}};c=n([i(0,I.T)],c);class m extends d.ks{constructor(){super({id:m.ID,label:S.Hw.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:a.R.focus,primary:2085,mac:{primary:293},weight:100}})}run(C){C.get(s.GK).quickAccess.show(c.PREFIX)}}m.ID="editor.action.gotoLine",(0,d.Fl)(m),g.O.as(x.Fd.Quickaccess).registerQuickAccessProvider({ctor:c,prefix:c.PREFIX,helpEntries:[{description:S.Hw.gotoLineActionLabel,commandId:m.ID}]})},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoSymbolQuickAccess.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/contrib/symbolIcons/browser/symbolIcons.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/path.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js");const f=[void 0,[]];function d(Ce,Pe,_e=0,ee=0){const De=Pe;return De.values&&De.values.length>1?a(Ce,De.values,_e,ee):s(Ce,Pe,_e,ee)}function a(Ce,Pe,_e,ee){let De=0;const Te=[];for(const He of Pe){const[qe,Qe]=s(Ce,He,_e,ee);if(typeof qe!="number")return f;De+=qe,Te.push(...Qe)}return[De,i(Te)]}function s(Ce,Pe,_e,ee){const De=(0,g.dt)(Pe.original,Pe.originalLowercase,_e,Ce,Ce.toLowerCase(),ee,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return De?[De[0],(0,g.WJ)(De)]:f}const n=Object.freeze({score:0});function i(Ce){const Pe=Ce.sort((De,Te)=>De.start-Te.start),_e=[];let ee;for(const De of Pe)!ee||!c(ee,De)?(ee=De,_e.push(De)):(ee.start=Math.min(ee.start,De.start),ee.end=Math.max(ee.end,De.end));return _e}function c(Ce,Pe){return!(Ce.end=0,He=m(Ce);let qe;const Qe=Ce.split(u);if(Qe.length>1)for(const q of Qe){const ye=m(q),{pathNormalized:ge,normalized:be,normalizedLowercase:Se}=h(q);be&&(qe||(qe=[]),qe.push({original:q,originalLowercase:q.toLowerCase(),pathNormalized:ge,normalized:be,normalizedLowercase:Se,expectContiguousMatch:ye}))}return{original:Ce,originalLowercase:Pe,pathNormalized:_e,normalized:ee,normalizedLowercase:De,values:qe,containsPathSeparator:Te,expectContiguousMatch:He}}function h(Ce){let Pe;I.uF?Pe=Ce.replace(/\//g,x.Vn):Pe=Ce.replace(/\\/g,x.Vn);const _e=(0,S.wB)(Pe).replace(/\s|"/g,"");return{pathNormalized:Pe,normalized:_e,normalizedLowercase:_e.toLowerCase()}}function v(Ce){return Array.isArray(Ce)?C(Ce.map(Pe=>Pe.original).join(u)):C(Ce.original)}var p=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),b=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),w=e("./node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/outlineModel.js"),j=e("./node_modules/monaco-editor/esm/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js"),U=e("./node_modules/monaco-editor/esm/vs/nls.js"),K=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),G=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),P=function(Ce,Pe,_e,ee){var De=arguments.length,Te=De<3?Pe:ee===null?ee=Object.getOwnPropertyDescriptor(Pe,_e):ee,He;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Te=Reflect.decorate(Ce,Pe,_e,ee);else for(var qe=Ce.length-1;qe>=0;qe--)(He=Ce[qe])&&(Te=(De<3?He(Te):De>3?He(Pe,_e,Te):He(Pe,_e))||Te);return De>3&&Te&&Object.defineProperty(Pe,_e,Te),Te},A=function(Ce,Pe){return function(_e,ee){Pe(_e,ee,Ce)}},T;let E=T=class extends j.o{constructor(Pe,_e,ee=Object.create(null)){super(ee),this._languageFeaturesService=Pe,this._outlineModelService=_e,this.options=ee,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(Pe){return this.provideLabelPick(Pe,(0,U.kg)("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),p.jG.None}provideWithTextEditor(Pe,_e,ee){const De=Pe.editor,Te=this.getModel(De);return Te?this._languageFeaturesService.documentSymbolProvider.has(Te)?this.doProvideWithEditorSymbols(Pe,Te,_e,ee):this.doProvideWithoutEditorSymbols(Pe,Te,_e,ee):p.jG.None}doProvideWithoutEditorSymbols(Pe,_e,ee,De){const Te=new p.Cm;return this.provideLabelPick(ee,(0,U.kg)("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),(async()=>!await this.waitForLanguageSymbolRegistry(_e,Te)||De.isCancellationRequested||Te.add(this.doProvideWithEditorSymbols(Pe,_e,ee,De)))(),Te}provideLabelPick(Pe,_e){Pe.items=[{label:_e,index:0,kind:14}],Pe.ariaLabel=_e}async waitForLanguageSymbolRegistry(Pe,_e){if(this._languageFeaturesService.documentSymbolProvider.has(Pe))return!0;const ee=new F.Zv,De=_e.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(Pe)&&(De.dispose(),ee.complete(!0))}));return _e.add((0,p.s)(()=>ee.complete(!1))),ee.p}doProvideWithEditorSymbols(Pe,_e,ee,De){var Te;const He=Pe.editor,qe=new p.Cm;qe.add(ee.onDidAccept(ge=>{const[be]=ee.selectedItems;be&&be.range&&(this.gotoLocation(Pe,{range:be.range.selection,keyMods:ee.keyMods,preserveFocus:ge.inBackground}),ge.inBackground||ee.hide())})),qe.add(ee.onDidTriggerItemButton(({item:ge})=>{ge&&ge.range&&(this.gotoLocation(Pe,{range:ge.range.selection,keyMods:ee.keyMods,forceSideBySide:!0}),ee.hide())}));const Qe=this.getDocumentSymbols(_e,De);let q;const ye=async ge=>{q?.dispose(!0),ee.busy=!1,q=new k.Q(De),ee.busy=!0;try{const be=C(ee.value.substr(T.PREFIX.length).trim()),Se=await this.doGetSymbolPicks(Qe,be,void 0,q.token);if(De.isCancellationRequested)return;if(Se.length>0){if(ee.items=Se,ge&&be.original.length===0){const ae=(0,G.Uk)(Se,me=>!!(me.type!=="separator"&&me.range&&b.Q.containsPosition(me.range.decoration,ge)));ae&&(ee.activeItems=[ae])}}else be.original.length>0?this.provideLabelPick(ee,(0,U.kg)("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(ee,(0,U.kg)("noSymbolResults","No editor symbols"))}finally{De.isCancellationRequested||(ee.busy=!1)}};return qe.add(ee.onDidChangeValue(()=>ye(void 0))),ye((Te=He.getSelection())===null||Te===void 0?void 0:Te.getPosition()),qe.add(ee.onDidChangeActive(()=>{const[ge]=ee.activeItems;ge&&ge.range&&(He.revealRangeInCenter(ge.range.selection,0),this.addDecorations(He,ge.range.decoration))})),qe}async doGetSymbolPicks(Pe,_e,ee,De){var Te,He;const qe=await Pe;if(De.isCancellationRequested)return[];const Qe=_e.original.indexOf(T.SCOPE_PREFIX)===0,q=Qe?1:0;let ye,ge;_e.values&&_e.values.length>1?(ye=v(_e.values[0]),ge=v(_e.values.slice(1))):ye=_e;let be;const Se=(He=(Te=this.options)===null||Te===void 0?void 0:Te.openSideBySideDirection)===null||He===void 0?void 0:He.call(Te);Se&&(be=[{iconClass:Se==="right"?L.L.asClassName(M.W.splitHorizontal):L.L.asClassName(M.W.splitVertical),tooltip:Se==="right"?(0,U.kg)("openToSide","Open to the Side"):(0,U.kg)("openToBottom","Open to the Bottom")}]);const ae=[];for(let le=0;leq){let Zt=!1;if(ye!==_e&&([we,Ue]=d(de,{..._e,values:void 0},q,Le),typeof we=="number"&&(Zt=!0)),typeof we!="number"&&([we,Ue]=d(de,ye,q,Le),typeof we!="number"))continue;if(!Zt&&ge){if(We&&ge.original.length>0&&([lt,Et]=d(We,ge)),typeof lt!="number")continue;typeof we=="number"&&(we+=lt)}}const Kt=oe.tags&&oe.tags.indexOf(1)>=0;ae.push({index:le,kind:oe.kind,score:we,label:de,ariaLabel:(0,O.PK)(oe.name,oe.kind),description:We,highlights:Kt?void 0:{label:Ue,description:Et},range:{selection:b.Q.collapseToStart(oe.selectionRange),decoration:oe.range},strikethrough:Kt,buttons:be})}const me=ae.sort((le,oe)=>Qe?this.compareByKindAndScore(le,oe):this.compareByScore(le,oe));let fe=[];if(Qe){let de=function(){oe&&typeof le=="number"&&ne>0&&(oe.label=(0,S.GP)($[le]||W,ne))},le,oe,ne=0;for(const Le of me)le!==Le.kind?(de(),le=Le.kind,ne=1,oe={type:"separator"},fe.push(oe)):ne++,fe.push(Le);de()}else me.length>0&&(fe=[{label:(0,U.kg)("symbols","symbols ({0})",ae.length),type:"separator"},...me]);return fe}compareByScore(Pe,_e){if(typeof Pe.score!="number"&&typeof _e.score=="number")return 1;if(typeof Pe.score=="number"&&typeof _e.score!="number")return-1;if(typeof Pe.score=="number"&&typeof _e.score=="number"){if(Pe.score>_e.score)return-1;if(Pe.score<_e.score)return 1}return Pe.index<_e.index?-1:Pe.index>_e.index?1:0}compareByKindAndScore(Pe,_e){const ee=$[Pe.kind]||W,De=$[_e.kind]||W,Te=ee.localeCompare(De);return Te===0?this.compareByScore(Pe,_e):Te}async getDocumentSymbols(Pe,_e){const ee=await this._outlineModelService.getOrCreate(Pe,_e);return _e.isCancellationRequested?[]:ee.asListOfDocumentSymbols()}};E.PREFIX="@",E.SCOPE_PREFIX=":",E.PREFIX_BY_CATEGORY=`${T.PREFIX}${T.SCOPE_PREFIX}`,E=T=P([A(0,K.u),A(1,w.gW)],E);const W=(0,U.kg)("property","properties ({0})"),$={5:(0,U.kg)("method","methods ({0})"),11:(0,U.kg)("function","functions ({0})"),8:(0,U.kg)("_constructor","constructors ({0})"),12:(0,U.kg)("variable","variables ({0})"),4:(0,U.kg)("class","classes ({0})"),22:(0,U.kg)("struct","structs ({0})"),23:(0,U.kg)("event","events ({0})"),24:(0,U.kg)("operator","operators ({0})"),10:(0,U.kg)("interface","interfaces ({0})"),2:(0,U.kg)("namespace","namespaces ({0})"),3:(0,U.kg)("package","packages ({0})"),25:(0,U.kg)("typeParameter","type parameters ({0})"),1:(0,U.kg)("modules","modules ({0})"),6:(0,U.kg)("property","properties ({0})"),9:(0,U.kg)("enum","enumerations ({0})"),21:(0,U.kg)("enumMember","enumeration members ({0})"),14:(0,U.kg)("string","strings ({0})"),0:(0,U.kg)("file","files ({0})"),17:(0,U.kg)("array","arrays ({0})"),15:(0,U.kg)("number","numbers ({0})"),16:(0,U.kg)("boolean","booleans ({0})"),18:(0,U.kg)("object","objects ({0})"),19:(0,U.kg)("key","keys ({0})"),7:(0,U.kg)("field","fields ({0})"),13:(0,U.kg)("constant","constants ({0})")};var z=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),J=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickAccess.js"),B=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),V=e("./node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js"),Y=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),X=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),ie=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),re=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"),te=function(Ce,Pe,_e,ee){var De=arguments.length,Te=De<3?Pe:ee===null?ee=Object.getOwnPropertyDescriptor(Pe,_e):ee,He;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Te=Reflect.decorate(Ce,Pe,_e,ee);else for(var qe=Ce.length-1;qe>=0;qe--)(He=Ce[qe])&&(Te=(De<3?He(Te):De>3?He(Pe,_e,Te):He(Pe,_e))||Te);return De>3&&Te&&Object.defineProperty(Pe,_e,Te),Te},D=function(Ce,Pe){return function(_e,ee){Pe(_e,ee,Ce)}};let he=class extends E{constructor(Pe,_e,ee){super(_e,ee),this.editorService=Pe,this.onDidActiveTextEditorControlChange=Y.Jh.None}get activeTextEditorControl(){var Pe;return(Pe=this.editorService.getFocusedCodeEditor())!==null&&Pe!==void 0?Pe:void 0}};he=te([D(0,B.T),D(1,K.u),D(2,w.gW)],he);class ve extends X.ks{constructor(){super({id:ve.ID,label:V.n9.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:ie.R.hasDocumentSymbolProvider,kbOpts:{kbExpr:ie.R.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(Pe){Pe.get(re.GK).quickAccess.show(E.PREFIX,{itemActivation:re.C1.NONE})}}ve.ID="editor.action.quickOutline",(0,X.Fl)(ve),z.O.as(J.Fd.Quickaccess).registerQuickAccessProvider({ctor:he,prefix:E.PREFIX,helpEntries:[{description:V.n9.quickOutlineActionLabel,prefix:E.PREFIX,commandId:ve.ID},{description:V.n9.quickOutlineByCategoryActionLabel,prefix:E.PREFIX_BY_CATEGORY}]})},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneHelpQuickAccess.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),F=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickAccess.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js"),M=e("./node_modules/monaco-editor/esm/vs/nls.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"),I=function(a,s,n,i){var c=arguments.length,m=c<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(a,s,n,i);else for(var C=a.length-1;C>=0;C--)(u=a[C])&&(m=(c<3?u(m):c>3?u(s,n,m):u(s,n))||m);return c>3&&m&&Object.defineProperty(s,n,m),m},S=function(a,s){return function(n,i){s(n,i,a)}},f;let d=f=class{constructor(s,n){this.quickInputService=s,this.keybindingService=n,this.registry=r.O.as(F.Fd.Quickaccess)}provide(s){const n=new L.Cm;return n.add(s.onDidAccept(()=>{const[i]=s.selectedItems;i&&this.quickInputService.quickAccess.show(i.prefix,{preserveValue:!0})})),n.add(s.onDidChangeValue(i=>{const c=this.registry.getQuickAccessProvider(i.substr(f.PREFIX.length));c&&c.prefix&&c.prefix!==f.PREFIX&&this.quickInputService.quickAccess.show(c.prefix,{preserveValue:!0})})),s.items=this.getQuickAccessProviders().filter(i=>i.prefix!==f.PREFIX),n}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((n,i)=>n.prefix.localeCompare(i.prefix)).flatMap(n=>this.createPicks(n))}createPicks(s){return s.helpEntries.map(n=>{const i=n.prefix||s.prefix,c=i||"\u2026";return{prefix:i,label:c,keybinding:n.commandId?this.keybindingService.lookupKeybinding(n.commandId):void 0,ariaLabel:(0,M.kg)("helpPickAriaLabel","{0}, {1}",c,n.description),description:n.description}})}};d.PREFIX="?",d=f=I([S(0,x.GK),S(1,g.b)],d),r.O.as(F.Fd.Quickaccess).registerQuickAccessProvider({ctor:d,prefix:"",helpEntries:[{description:k.oq.helpQuickAccessActionLabel}]})},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/referenceSearch/standaloneReferenceSearch.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js"),S=function(a,s,n,i){var c=arguments.length,m=c<3?s:i===null?i=Object.getOwnPropertyDescriptor(s,n):i,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(a,s,n,i);else for(var C=a.length-1;C>=0;C--)(u=a[C])&&(m=(c<3?u(m):c>3?u(s,n,m):u(s,n))||m);return c>3&&m&&Object.defineProperty(s,n,m),m},f=function(a,s){return function(n,i){s(n,i,a)}};let d=class extends k.X{constructor(s,n,i,c,m,u,C){super(!0,s,n,i,c,m,u,C)}};d=S([f(1,L.fN),f(2,F.T),f(3,x.Ot),f(4,g._Y),f(5,I.CS),f(6,M.pG)],d),(0,r.HW)(k.X.ID,d,4)},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneThemeService.js":function(pt,Me,e){e.d(Me,{aQ:function(){return z},nr:function(){return J},Sx:function(){return te},po:function(){return $},tj:function(){return W}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/encodedTokenAttributes.js");class x{constructor(he,ve,Ce,Pe,_e){this._parsedThemeRuleBrand=void 0,this.token=he,this.index=ve,this.fontStyle=Ce,this.foreground=Pe,this.background=_e}}function I(D){if(!D||!Array.isArray(D))return[];const he=[];let ve=0;for(let Ce=0,Pe=D.length;Ce{const q=i(qe.token,Qe.token);return q!==0?q:qe.index-Qe.index});let ve=0,Ce="000000",Pe="ffffff";for(;D.length>=1&&D[0].token==="";){const qe=D.shift();qe.fontStyle!==-1&&(ve=qe.fontStyle),qe.foreground!==null&&(Ce=qe.foreground),qe.background!==null&&(Pe=qe.background)}const _e=new d;for(const qe of he)_e.getId(qe);const ee=_e.getId(Ce),De=_e.getId(Pe),Te=new c(ve,ee,De),He=new m(Te);for(let qe=0,Qe=D.length;qe"u"){const Pe=this._match(ve),_e=n(ve);Ce=(Pe.metadata|_e<<8)>>>0,this._cache.set(ve,Ce)}return(Ce|he<<0)>>>0}}const s=/\b(comment|string|regex|regexp)\b/;function n(D){const he=D.match(s);if(!he)return 0;switch(he[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"regexp":return 3}throw new Error("Unexpected match for standard token type!")}function i(D,he){return Dhe?1:0}class c{constructor(he,ve,Ce){this._themeTrieElementRuleBrand=void 0,this._fontStyle=he,this._foreground=ve,this._background=Ce,this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}clone(){return new c(this._fontStyle,this._foreground,this._background)}acceptOverwrite(he,ve,Ce){he!==-1&&(this._fontStyle=he),ve!==0&&(this._foreground=ve),Ce!==0&&(this._background=Ce),this.metadata=(this._fontStyle<<11|this._foreground<<15|this._background<<24)>>>0}}class m{constructor(he){this._themeTrieElementBrand=void 0,this._mainRule=he,this._children=new Map}match(he){if(he==="")return this._mainRule;const ve=he.indexOf(".");let Ce,Pe;ve===-1?(Ce=he,Pe=""):(Ce=he.substring(0,ve),Pe=he.substring(ve+1));const _e=this._children.get(Ce);return typeof _e<"u"?_e.match(Pe):this._mainRule}insert(he,ve,Ce,Pe){if(he===""){this._mainRule.acceptOverwrite(ve,Ce,Pe);return}const _e=he.indexOf(".");let ee,De;_e===-1?(ee=he,De=""):(ee=he.substring(0,_e),De=he.substring(_e+1));let Te=this._children.get(ee);typeof Te>"u"&&(Te=new m(this._mainRule.clone()),this._children.set(ee,Te)),Te.insert(De,ve,Ce,Pe)}}function u(D){const he=[];for(let ve=1,Ce=D.length;veve.fire())),D&&he.add(D.onDidProductIconThemeChange(()=>ve.fire())),{dispose:()=>he.dispose(),onDidChange:ve.event,getCSS(){const Pe=D?D.getProductIconTheme():new T,_e={},ee=Te=>{const He=Pe.getIcon(Te);if(!He)return;const qe=He.font;return qe?(_e[qe.id]=qe.definition,`.codicon-${Te.id}:before { content: '${He.fontCharacter}'; font-family: ${(0,r.yt)(qe.id)}; }`):`.codicon-${Te.id}:before { content: '${He.fontCharacter}'; }`},De=[];for(const Te of Ce.getIcons()){const He=ee(Te);He&&De.push(He)}for(const Te in _e){const He=_e[Te],qe=He.weight?`font-weight: ${He.weight};`:"",Qe=He.style?`font-style: ${He.style};`:"",q=He.src.map(ye=>`${(0,r.Tf)(ye.location)} format('${ye.format}')`).join(", ");De.push(`@font-face { src: ${q}; font-family: ${(0,r.yt)(Te)};${qe}${Qe} font-display: block; }`)}return De.join(` `)}}}class T{getIcon(he){const ve=(0,P.HT)();let Ce=he.defaults;for(;G.L.isThemeIcon(Ce);){const Pe=ve.getIcon(Ce.id);if(!Pe)return;Ce=Pe.defaults}return Ce}}var E=e("./node_modules/monaco-editor/esm/vs/base/browser/window.js");const W="vs",$="vs-dark",z="hc-black",J="hc-light",B=w.O.as(h.FdG.ColorContribution),V=w.O.as(j.Fd.ThemingContribution);class Y{constructor(he,ve){this.semanticHighlighting=!1,this.themeData=ve;const Ce=ve.base;he.length>0?(X(he)?this.id=he:this.id=Ce+" "+he,this.themeName=he):(this.id=Ce,this.themeName=Ce),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const he=new Map;for(const ve in this.themeData.colors)he.set(ve,k.Q1.fromHex(this.themeData.colors[ve]));if(this.themeData.inherit){const ve=ie(this.themeData.base);for(const Ce in ve.colors)he.has(Ce)||he.set(Ce,k.Q1.fromHex(ve.colors[Ce]))}this.colors=he}return this.colors}getColor(he,ve){const Ce=this.getColors().get(he);if(Ce)return Ce;if(ve!==!1)return this.getDefault(he)}getDefault(he){let ve=this.defaultColors[he];return ve||(ve=B.resolveDefaultColor(he,this),this.defaultColors[he]=ve,ve)}defines(he){return this.getColors().has(he)}get type(){switch(this.base){case W:return K.zM.LIGHT;case z:return K.zM.HIGH_CONTRAST_DARK;case J:return K.zM.HIGH_CONTRAST_LIGHT;default:return K.zM.DARK}}get tokenTheme(){if(!this._tokenTheme){let he=[],ve=[];if(this.themeData.inherit){const _e=ie(this.themeData.base);he=_e.rules,_e.encodedTokensColors&&(ve=_e.encodedTokensColors)}const Ce=this.themeData.colors["editor.foreground"],Pe=this.themeData.colors["editor.background"];if(Ce||Pe){const _e={token:""};Ce&&(_e.foreground=Ce),Pe&&(_e.background=Pe),he.push(_e)}he=he.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(ve=this.themeData.encodedTokensColors),this._tokenTheme=a.createFromRawTokenTheme(he,ve)}return this._tokenTheme}getTokenStyleMetadata(he,ve,Ce){const _e=this.tokenTheme._match([he].concat(ve).join(".")).metadata,ee=g.x.getForeground(_e),De=g.x.getFontStyle(_e);return{foreground:ee,italic:!!(De&1),bold:!!(De&2),underline:!!(De&4),strikethrough:!!(De&8)}}}function X(D){return D===W||D===$||D===z||D===J}function ie(D){switch(D){case W:return v;case $:return p;case z:return b;case J:return O}}function re(D){const he=ie(D);return new Y(D,he)}class te extends U.jG{constructor(){super(),this._onColorThemeChange=this._register(new M.vl),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new M.vl),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new T,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(W,re(W)),this._knownThemes.set($,re($)),this._knownThemes.set(z,re(z)),this._knownThemes.set(J,re(J));const he=this._register(A(this));this._codiconCSS=he.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS} ${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(W),this._onOSSchemeChanged(),this._register(he.onDidChange(()=>{this._codiconCSS=he.getCSS(),this._updateCSS()})),(0,F.Dy)(E.G,"(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(he){return r.Cl(he)?this._registerShadowDomContainer(he):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=r.li(void 0,he=>{he.className="monaco-colors",he.textContent=this._allCSS}),this._styleElements.push(this._globalStyleElement)),U.jG.None}_registerShadowDomContainer(he){const ve=r.li(he,Ce=>{Ce.className="monaco-colors",Ce.textContent=this._allCSS});return this._styleElements.push(ve),{dispose:()=>{for(let Ce=0;Ce{Ce.base===he&&Ce.notifyBaseUpdated()}),this._theme.themeName===he&&this.setTheme(he)}getColorTheme(){return this._theme}setColorMapOverride(he){this._colorMapOverride=he,this._updateThemeOrColorMap()}setTheme(he){let ve;this._knownThemes.has(he)?ve=this._knownThemes.get(he):ve=this._knownThemes.get(W),this._updateActualTheme(ve)}_updateActualTheme(he){!he||this._theme===he||(this._theme=he,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const he=E.G.matchMedia("(forced-colors: active)").matches;if(he!==(0,K.Bb)(this._theme.type)){let ve;(0,K.HD)(this._theme.type)?ve=he?z:$:ve=he?J:W,this._updateActualTheme(this._knownThemes.get(ve))}}}setAutoDetectHighContrast(he){this._autoDetectHighContrast=he,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const he=[],ve={},Ce={addRule:ee=>{ve[ee]||(he.push(ee),ve[ee]=!0)}};V.getThemingParticipants().forEach(ee=>ee(this._theme,Ce,this._environment));const Pe=[];for(const ee of B.getColors()){const De=this._theme.getColor(ee.id,!0);De&&Pe.push(`${(0,h.Bbc)(ee.id)}: ${De.toString()};`)}Ce.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${Pe.join(` `)} }`);const _e=this._colorMapOverride||this._theme.tokenTheme.getColorMap();Ce.addRule(u(_e)),this._themeCSS=he.join(` `),this._updateCSS(),L.dG.setColorMap(_e),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS} ${this._themeCSS}`,this._styleElements.forEach(he=>he.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneThemeService.js");class g extends r.ks{constructor(){super({id:"editor.action.toggleHighContrast",label:k.E6.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(I,S){const f=I.get(F.L),d=f.getColorTheme();(0,M.Bb)(d.type)?(f.setTheme(this._originalThemeName||((0,M.HD)(d.type)?L.po:L.tj)),this._originalThemeName=null):(f.setTheme((0,M.HD)(d.type)?L.aQ:L.nr),this._originalThemeName=d.themeName)}}(0,r.Fl)(g)},"./node_modules/monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js":function(pt,Me,e){e.d(Me,{L:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("themeService")},"./node_modules/monaco-editor/esm/vs/language/css/monaco.contribution.js":function(pt,Me,e){var r=e("include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js");var F=Object.defineProperty,k=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,L=Object.prototype.hasOwnProperty,g=(c,m,u,C)=>{if(m&&typeof m=="object"||typeof m=="function")for(let h of M(m))!L.call(c,h)&&h!==u&&F(c,h,{get:()=>m[h],enumerable:!(C=k(m,h))||C.enumerable});return c},x=(c,m,u)=>(g(c,m,"default"),u&&g(u,m,"default")),I={};x(I,r);var S=class{constructor(c,m,u){this._onDidChange=new I.Emitter,this._languageId=c,this.setOptions(m),this.setModeConfiguration(u)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(c){this._options=c||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(c){this.setOptions(c)}setModeConfiguration(c){this._modeConfiguration=c||Object.create(null),this._onDidChange.fire(this)}},f={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},d={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},a=new S("css",f,d),s=new S("scss",f,d),n=new S("less",f,d);I.languages.css={cssDefaults:a,lessDefaults:n,scssDefaults:s};function i(){return e.e("vendors-node_modules_monaco-editor_esm_vs_language_css_cssMode_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/language/css/cssMode.js"))}I.languages.onLanguage("less",()=>{i().then(c=>c.setupMode(n))}),I.languages.onLanguage("scss",()=>{i().then(c=>c.setupMode(s))}),I.languages.onLanguage("css",()=>{i().then(c=>c.setupMode(a))})},"./node_modules/monaco-editor/esm/vs/language/html/monaco.contribution.js":function(pt,Me,e){var r=e("include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js");var F=Object.defineProperty,k=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,L=Object.prototype.hasOwnProperty,g=(O,w,j,U)=>{if(w&&typeof w=="object"||typeof w=="function")for(let K of M(w))!L.call(O,K)&&K!==j&&F(O,K,{get:()=>w[K],enumerable:!(U=k(w,K))||U.enumerable});return O},x=(O,w,j)=>(g(O,w,"default"),j&&g(j,w,"default")),I={};x(I,r);var S=class{constructor(O,w,j){this._onDidChange=new I.Emitter,this._languageId=O,this.setOptions(w),this.setModeConfiguration(j)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(O){this._options=O||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(O){this._modeConfiguration=O||Object.create(null),this._onDidChange.fire(this)}},f={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},d={format:f,suggest:{},data:{useDefaultDataProvider:!0}};function a(O){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:O===s,documentFormattingEdits:O===s,documentRangeFormattingEdits:O===s}}var s="html",n="handlebars",i="razor",c=b(s,d,a(s)),m=c.defaults,u=b(n,d,a(n)),C=u.defaults,h=b(i,d,a(i)),v=h.defaults;I.languages.html={htmlDefaults:m,razorDefaults:v,handlebarDefaults:C,htmlLanguageService:c,handlebarLanguageService:u,razorLanguageService:h,registerHTMLLanguageService:b};function p(){return e.e("vendors-node_modules_monaco-editor_esm_vs_language_html_htmlMode_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/language/html/htmlMode.js"))}function b(O,w=d,j=a(O)){const U=new S(O,w,j);let K;const G=I.languages.onLanguage(O,async()=>{K=(await p()).setupMode(U)});return{defaults:U,dispose(){G.dispose(),K?.dispose(),K=void 0}}}},"./node_modules/monaco-editor/esm/vs/language/json/monaco.contribution.js":function(pt,Me,e){var r=e("include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js");var F=class{constructor(I,S,f){this._onDidChange=new r.Emitter,this._languageId=I,this.setDiagnosticsOptions(S),this.setModeConfiguration(f)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(I){this._diagnosticsOptions=I||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(I){this._modeConfiguration=I||Object.create(null),this._onDidChange.fire(this)}},k={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},M={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},L=new F("json",k,M),g=()=>x().then(I=>I.getWorker());r.languages.json={jsonDefaults:L,getWorker:g};function x(){return e.e("vendors-node_modules_monaco-editor_esm_vs_language_json_jsonMode_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/language/json/jsonMode.js"))}r.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),r.languages.onLanguage("json",()=>{x().then(I=>I.setupMode(L))})},"./node_modules/monaco-editor/esm/vs/language/typescript/monaco.contribution.js":function(pt,Me,e){e.d(Me,{IF:function(){return u}});var r=e("include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js");var F=Object.defineProperty,k=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,L=Object.prototype.hasOwnProperty,g=(b,O,w,j)=>{if(O&&typeof O=="object"||typeof O=="function")for(let U of M(O))!L.call(b,U)&&U!==w&&F(b,U,{get:()=>O[U],enumerable:!(j=k(O,U))||j.enumerable});return b},x=(b,O,w)=>(g(b,O,"default"),w&&g(w,O,"default")),I="5.0.2",S={};x(S,r);var f=(b=>(b[b.None=0]="None",b[b.CommonJS=1]="CommonJS",b[b.AMD=2]="AMD",b[b.UMD=3]="UMD",b[b.System=4]="System",b[b.ES2015=5]="ES2015",b[b.ESNext=99]="ESNext",b))(f||{}),d=(b=>(b[b.None=0]="None",b[b.Preserve=1]="Preserve",b[b.React=2]="React",b[b.ReactNative=3]="ReactNative",b[b.ReactJSX=4]="ReactJSX",b[b.ReactJSXDev=5]="ReactJSXDev",b))(d||{}),a=(b=>(b[b.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",b[b.LineFeed=1]="LineFeed",b))(a||{}),s=(b=>(b[b.ES3=0]="ES3",b[b.ES5=1]="ES5",b[b.ES2015=2]="ES2015",b[b.ES2016=3]="ES2016",b[b.ES2017=4]="ES2017",b[b.ES2018=5]="ES2018",b[b.ES2019=6]="ES2019",b[b.ES2020=7]="ES2020",b[b.ESNext=99]="ESNext",b[b.JSON=100]="JSON",b[b.Latest=99]="Latest",b))(s||{}),n=(b=>(b[b.Classic=1]="Classic",b[b.NodeJs=2]="NodeJs",b))(n||{}),i=class{constructor(b,O,w,j,U){this._onDidChange=new S.Emitter,this._onDidExtraLibsChange=new S.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(b),this.setDiagnosticsOptions(O),this.setWorkerOptions(w),this.setInlayHintsOptions(j),this.setModeConfiguration(U),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(b,O){let w;if(typeof O>"u"?w=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:w=O,this._extraLibs[w]&&this._extraLibs[w].content===b)return{dispose:()=>{}};let j=1;return this._removedExtraLibs[w]&&(j=this._removedExtraLibs[w]+1),this._extraLibs[w]&&(j=this._extraLibs[w].version+1),this._extraLibs[w]={content:b,version:j},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let U=this._extraLibs[w];U&&U.version===j&&(delete this._extraLibs[w],this._removedExtraLibs[w]=j,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(b){for(const O in this._extraLibs)this._removedExtraLibs[O]=this._extraLibs[O].version;if(this._extraLibs=Object.create(null),b&&b.length>0)for(const O of b){const w=O.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,j=O.content;let U=1;this._removedExtraLibs[w]&&(U=this._removedExtraLibs[w]+1),this._extraLibs[w]={content:j,version:U}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(b){this._compilerOptions=b||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(b){this._diagnosticsOptions=b||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(b){this._workerOptions=b||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(b){this._inlayHintsOptions=b||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(b){}setEagerModelSync(b){this._eagerModelSync=b}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(b){this._modeConfiguration=b||Object.create(null),this._onDidChange.fire(void 0)}},c=I,m={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},u=new i({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},m),C=new i({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},m),h=()=>p().then(b=>b.getTypeScriptWorker()),v=()=>p().then(b=>b.getJavaScriptWorker());S.languages.typescript={ModuleKind:f,JsxEmit:d,NewLineKind:a,ScriptTarget:s,ModuleResolutionKind:n,typescriptVersion:c,typescriptDefaults:u,javascriptDefaults:C,getTypeScriptWorker:h,getJavaScriptWorker:v};function p(){return e.e("vendors-node_modules_monaco-editor_esm_vs_language_typescript_tsMode_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/language/typescript/tsMode.js"))}S.languages.onLanguage("typescript",()=>p().then(b=>b.setupTypeScript(u))),S.languages.onLanguage("javascript",()=>p().then(b=>b.setupJavaScript(C)))},"./node_modules/monaco-editor/esm/vs/nls.js":function(pt,Me,e){e.d(Me,{AM:function(){return d},aS:function(){return f},kg:function(){return S}});let r=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;const F="i-default";function k(i,c){let m;return c.length===0?m=i:m=i.replace(/\{(\d+)\}/g,(u,C)=>{const h=C[0],v=c[h];let p=u;return typeof v=="string"?p=v:(typeof v=="number"||typeof v=="boolean"||v===void 0||v===null)&&(p=String(v)),p}),r&&(m="\uFF3B"+m.replace(/[aouei]/g,"$&$&")+"\uFF3D"),m}function M(i,c){let m=i[c];return m||(m=i["*"],m)?m:null}function L(i){return i.charAt(i.length-1)==="/"?i:i+"/"}async function g(i,c,m){const u=L(i)+L(c)+"vscode/"+L(m),C=await fetch(u);if(C.ok)return await C.json();throw new Error(`${C.status} - ${C.statusText}`)}function x(i){return function(c,m){const u=Array.prototype.slice.call(arguments,2);return k(i[c],u)}}function I(i){return(c,m,...u)=>({value:k(i[c],u),original:k(m,u)})}function S(i,c,...m){return k(c,m)}function f(i,c,...m){const u=k(c,m);return{value:u,original:u}}function d(i){}function a(i){r=i}function s(i,c){var m;return{localize:x(c[i]),localize2:I(c[i]),getConfiguredDefaultLocale:(m=c.getConfiguredDefaultLocale)!==null&&m!==void 0?m:u=>{}}}function n(i,c,m,u){var C;const h=(C=u["vs/nls"])!==null&&C!==void 0?C:{};if(!i||i.length===0)return m({localize:S,localize2:f,getConfiguredDefaultLocale:()=>{var w;return(w=h.availableLanguages)===null||w===void 0?void 0:w["*"]}});const v=h.availableLanguages?M(h.availableLanguages,i):null,p=v===null||v===F;let b=".nls";p||(b=b+"."+v);const O=w=>{Array.isArray(w)?(w.localize=x(w),w.localize2=I(w)):(w.localize=x(w[i]),w.localize2=I(w[i])),w.getConfiguredDefaultLocale=()=>{var j;return(j=h.availableLanguages)===null||j===void 0?void 0:j["*"]},m(w)};typeof h.loadBundle=="function"?h.loadBundle(i,v,(w,j)=>{w?c([i+".nls"],O):O(j)}):h.translationServiceUrl&&!p?(async()=>{var w;try{const j=await g(h.translationServiceUrl,v,i);return O(j)}catch(j){if(!v.includes("-"))return console.error(j),c([i+".nls"],O);try{const U=v.split("-")[0],K=await g(h.translationServiceUrl,U,i);return(w=h.availableLanguages)!==null&&w!==void 0||(h.availableLanguages={}),h.availableLanguages["*"]=U,O(K)}catch(U){return console.error(U),c([i+".nls"],O)}}})():c([i+b],O,w=>{if(b===".nls"){console.error("Failed trying to load default language strings",w);return}console.error(`Failed to load message bundle for language ${v}. Falling back to the default language:`,w),c([i+".nls"],O)})}},"./node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js":function(pt,Me,e){e.d(Me,{f:function(){return M},j:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),F=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const k=(0,F.u1)("accessibilityService"),M=new r.N1("accessibilityModeEnabled",!1)},"./node_modules/monaco-editor/esm/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js":function(pt,Me,e){e.d(Me,{Nt:function(){return k},Rh:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),F=e("./node_modules/monaco-editor/esm/vs/nls.js");const k=(0,r.u1)("accessibilitySignalService");class M{static register(I){return new M(I.fileName)}constructor(I){this.fileName=I}}M.error=M.register({fileName:"error.mp3"}),M.warning=M.register({fileName:"warning.mp3"}),M.foldedArea=M.register({fileName:"foldedAreas.mp3"}),M.break=M.register({fileName:"break.mp3"}),M.quickFixes=M.register({fileName:"quickFixes.mp3"}),M.taskCompleted=M.register({fileName:"taskCompleted.mp3"}),M.taskFailed=M.register({fileName:"taskFailed.mp3"}),M.terminalBell=M.register({fileName:"terminalBell.mp3"}),M.diffLineInserted=M.register({fileName:"diffLineInserted.mp3"}),M.diffLineDeleted=M.register({fileName:"diffLineDeleted.mp3"}),M.diffLineModified=M.register({fileName:"diffLineModified.mp3"}),M.chatRequestSent=M.register({fileName:"chatRequestSent.mp3"}),M.chatResponsePending=M.register({fileName:"chatResponsePending.mp3"}),M.chatResponseReceived1=M.register({fileName:"chatResponseReceived1.mp3"}),M.chatResponseReceived2=M.register({fileName:"chatResponseReceived2.mp3"}),M.chatResponseReceived3=M.register({fileName:"chatResponseReceived3.mp3"}),M.chatResponseReceived4=M.register({fileName:"chatResponseReceived4.mp3"}),M.clear=M.register({fileName:"clear.mp3"}),M.save=M.register({fileName:"save.mp3"}),M.format=M.register({fileName:"format.mp3"}),M.voiceRecordingStarted=M.register({fileName:"voiceRecordingStarted.mp3"}),M.voiceRecordingStopped=M.register({fileName:"voiceRecordingStopped.mp3"});class L{constructor(I){this.randomOneOf=I}}class g{static register(I){const S=new L("randomOneOf"in I.sound?I.sound.randomOneOf:[I.sound]),f=new g(S,I.name,I.legacySoundSettingsKey,I.settingsKey,I.legacyAnnouncementSettingsKey,I.announcementMessage);return g._signals.add(f),f}constructor(I,S,f,d,a,s){this.sound=I,this.name=S,this.legacySoundSettingsKey=f,this.settingsKey=d,this.legacyAnnouncementSettingsKey=a,this.announcementMessage=s}}g._signals=new Set,g.error=g.register({name:(0,F.kg)("accessibilitySignals.lineHasError.name","Error on Line"),sound:M.error,legacySoundSettingsKey:"audioCues.lineHasError",legacyAnnouncementSettingsKey:"accessibility.alert.error",announcementMessage:(0,F.kg)("accessibility.signals.lineHasError","Error"),settingsKey:"accessibility.signals.lineHasError"}),g.warning=g.register({name:(0,F.kg)("accessibilitySignals.lineHasWarning.name","Warning on Line"),sound:M.warning,legacySoundSettingsKey:"audioCues.lineHasWarning",legacyAnnouncementSettingsKey:"accessibility.alert.warning",announcementMessage:(0,F.kg)("accessibility.signals.lineHasWarning","Warning"),settingsKey:"accessibility.signals.lineHasWarning"}),g.foldedArea=g.register({name:(0,F.kg)("accessibilitySignals.lineHasFoldedArea.name","Folded Area on Line"),sound:M.foldedArea,legacySoundSettingsKey:"audioCues.lineHasFoldedArea",legacyAnnouncementSettingsKey:"accessibility.alert.foldedArea",announcementMessage:(0,F.kg)("accessibility.signals.lineHasFoldedArea","Folded"),settingsKey:"accessibility.signals.lineHasFoldedArea"}),g.break=g.register({name:(0,F.kg)("accessibilitySignals.lineHasBreakpoint.name","Breakpoint on Line"),sound:M.break,legacySoundSettingsKey:"audioCues.lineHasBreakpoint",legacyAnnouncementSettingsKey:"accessibility.alert.breakpoint",announcementMessage:(0,F.kg)("accessibility.signals.lineHasBreakpoint","Breakpoint"),settingsKey:"accessibility.signals.lineHasBreakpoint"}),g.inlineSuggestion=g.register({name:(0,F.kg)("accessibilitySignals.lineHasInlineSuggestion.name","Inline Suggestion on Line"),sound:M.quickFixes,legacySoundSettingsKey:"audioCues.lineHasInlineSuggestion",settingsKey:"accessibility.signals.lineHasInlineSuggestion"}),g.terminalQuickFix=g.register({name:(0,F.kg)("accessibilitySignals.terminalQuickFix.name","Terminal Quick Fix"),sound:M.quickFixes,legacySoundSettingsKey:"audioCues.terminalQuickFix",legacyAnnouncementSettingsKey:"accessibility.alert.terminalQuickFix",announcementMessage:(0,F.kg)("accessibility.signals.terminalQuickFix","Quick Fix"),settingsKey:"accessibility.signals.terminalQuickFix"}),g.onDebugBreak=g.register({name:(0,F.kg)("accessibilitySignals.onDebugBreak.name","Debugger Stopped on Breakpoint"),sound:M.break,legacySoundSettingsKey:"audioCues.onDebugBreak",legacyAnnouncementSettingsKey:"accessibility.alert.onDebugBreak",announcementMessage:(0,F.kg)("accessibility.signals.onDebugBreak","Breakpoint"),settingsKey:"accessibility.signals.onDebugBreak"}),g.noInlayHints=g.register({name:(0,F.kg)("accessibilitySignals.noInlayHints","No Inlay Hints on Line"),sound:M.error,legacySoundSettingsKey:"audioCues.noInlayHints",legacyAnnouncementSettingsKey:"accessibility.alert.noInlayHints",announcementMessage:(0,F.kg)("accessibility.signals.noInlayHints","No Inlay Hints"),settingsKey:"accessibility.signals.noInlayHints"}),g.taskCompleted=g.register({name:(0,F.kg)("accessibilitySignals.taskCompleted","Task Completed"),sound:M.taskCompleted,legacySoundSettingsKey:"audioCues.taskCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.taskCompleted",announcementMessage:(0,F.kg)("accessibility.signals.taskCompleted","Task Completed"),settingsKey:"accessibility.signals.taskCompleted"}),g.taskFailed=g.register({name:(0,F.kg)("accessibilitySignals.taskFailed","Task Failed"),sound:M.taskFailed,legacySoundSettingsKey:"audioCues.taskFailed",legacyAnnouncementSettingsKey:"accessibility.alert.taskFailed",announcementMessage:(0,F.kg)("accessibility.signals.taskFailed","Task Failed"),settingsKey:"accessibility.signals.taskFailed"}),g.terminalCommandFailed=g.register({name:(0,F.kg)("accessibilitySignals.terminalCommandFailed","Terminal Command Failed"),sound:M.error,legacySoundSettingsKey:"audioCues.terminalCommandFailed",legacyAnnouncementSettingsKey:"accessibility.alert.terminalCommandFailed",announcementMessage:(0,F.kg)("accessibility.signals.terminalCommandFailed","Command Failed"),settingsKey:"accessibility.signals.terminalCommandFailed"}),g.terminalBell=g.register({name:(0,F.kg)("accessibilitySignals.terminalBell","Terminal Bell"),sound:M.terminalBell,legacySoundSettingsKey:"audioCues.terminalBell",legacyAnnouncementSettingsKey:"accessibility.alert.terminalBell",announcementMessage:(0,F.kg)("accessibility.signals.terminalBell","Terminal Bell"),settingsKey:"accessibility.signals.terminalBell"}),g.notebookCellCompleted=g.register({name:(0,F.kg)("accessibilitySignals.notebookCellCompleted","Notebook Cell Completed"),sound:M.taskCompleted,legacySoundSettingsKey:"audioCues.notebookCellCompleted",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellCompleted",announcementMessage:(0,F.kg)("accessibility.signals.notebookCellCompleted","Notebook Cell Completed"),settingsKey:"accessibility.signals.notebookCellCompleted"}),g.notebookCellFailed=g.register({name:(0,F.kg)("accessibilitySignals.notebookCellFailed","Notebook Cell Failed"),sound:M.taskFailed,legacySoundSettingsKey:"audioCues.notebookCellFailed",legacyAnnouncementSettingsKey:"accessibility.alert.notebookCellFailed",announcementMessage:(0,F.kg)("accessibility.signals.notebookCellFailed","Notebook Cell Failed"),settingsKey:"accessibility.signals.notebookCellFailed"}),g.diffLineInserted=g.register({name:(0,F.kg)("accessibilitySignals.diffLineInserted","Diff Line Inserted"),sound:M.diffLineInserted,legacySoundSettingsKey:"audioCues.diffLineInserted",settingsKey:"accessibility.signals.diffLineInserted"}),g.diffLineDeleted=g.register({name:(0,F.kg)("accessibilitySignals.diffLineDeleted","Diff Line Deleted"),sound:M.diffLineDeleted,legacySoundSettingsKey:"audioCues.diffLineDeleted",settingsKey:"accessibility.signals.diffLineDeleted"}),g.diffLineModified=g.register({name:(0,F.kg)("accessibilitySignals.diffLineModified","Diff Line Modified"),sound:M.diffLineModified,legacySoundSettingsKey:"audioCues.diffLineModified",settingsKey:"accessibility.signals.diffLineModified"}),g.chatRequestSent=g.register({name:(0,F.kg)("accessibilitySignals.chatRequestSent","Chat Request Sent"),sound:M.chatRequestSent,legacySoundSettingsKey:"audioCues.chatRequestSent",legacyAnnouncementSettingsKey:"accessibility.alert.chatRequestSent",announcementMessage:(0,F.kg)("accessibility.signals.chatRequestSent","Chat Request Sent"),settingsKey:"accessibility.signals.chatRequestSent"}),g.chatResponseReceived=g.register({name:(0,F.kg)("accessibilitySignals.chatResponseReceived","Chat Response Received"),legacySoundSettingsKey:"audioCues.chatResponseReceived",sound:{randomOneOf:[M.chatResponseReceived1,M.chatResponseReceived2,M.chatResponseReceived3,M.chatResponseReceived4]},settingsKey:"accessibility.signals.chatResponseReceived"}),g.chatResponsePending=g.register({name:(0,F.kg)("accessibilitySignals.chatResponsePending","Chat Response Pending"),sound:M.chatResponsePending,legacySoundSettingsKey:"audioCues.chatResponsePending",legacyAnnouncementSettingsKey:"accessibility.alert.chatResponsePending",announcementMessage:(0,F.kg)("accessibility.signals.chatResponsePending","Chat Response Pending"),settingsKey:"accessibility.signals.chatResponsePending"}),g.clear=g.register({name:(0,F.kg)("accessibilitySignals.clear","Clear"),sound:M.clear,legacySoundSettingsKey:"audioCues.clear",legacyAnnouncementSettingsKey:"accessibility.alert.clear",announcementMessage:(0,F.kg)("accessibility.signals.clear","Clear"),settingsKey:"accessibility.signals.clear"}),g.save=g.register({name:(0,F.kg)("accessibilitySignals.save","Save"),sound:M.save,legacySoundSettingsKey:"audioCues.save",legacyAnnouncementSettingsKey:"accessibility.alert.save",announcementMessage:(0,F.kg)("accessibility.signals.save","Save"),settingsKey:"accessibility.signals.save"}),g.format=g.register({name:(0,F.kg)("accessibilitySignals.format","Format"),sound:M.format,legacySoundSettingsKey:"audioCues.format",legacyAnnouncementSettingsKey:"accessibility.alert.format",announcementMessage:(0,F.kg)("accessibility.signals.format","Format"),settingsKey:"accessibility.signals.format"}),g.voiceRecordingStarted=g.register({name:(0,F.kg)("accessibilitySignals.voiceRecordingStarted","Voice Recording Started"),sound:M.voiceRecordingStarted,legacySoundSettingsKey:"audioCues.voiceRecordingStarted",settingsKey:"accessibility.signals.voiceRecordingStarted"}),g.voiceRecordingStopped=g.register({name:(0,F.kg)("accessibilitySignals.voiceRecordingStopped","Voice Recording Stopped"),sound:M.voiceRecordingStopped,legacySoundSettingsKey:"audioCues.voiceRecordingStopped",settingsKey:"accessibility.signals.voiceRecordingStopped"})},"./node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js":function(pt,Me,e){e.d(Me,{oq:function(){return P},rN:function(){return W},Ot:function(){return K},$u:function(){return U}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionViewItems.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/keybindingLabels.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),S=e("./node_modules/monaco-editor/esm/vs/nls.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js");function d($){return $?$.condition!==void 0:!1}var a=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),m=e("./node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js"),u=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),C=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js"),v=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),p=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js"),O=e("./node_modules/monaco-editor/esm/vs/platform/accessibility/common/accessibility.js"),w=function($,z,J,B){var V=arguments.length,Y=V<3?z:B===null?B=Object.getOwnPropertyDescriptor(z,J):B,X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Y=Reflect.decorate($,z,J,B);else for(var ie=$.length-1;ie>=0;ie--)(X=$[ie])&&(Y=(V<3?X(Y):V>3?X(z,J,Y):X(z,J))||Y);return V>3&&Y&&Object.defineProperty(z,J,Y),Y},j=function($,z){return function(J,B){z(J,B,$)}};function U($,z,J,B){const V=$.getActions(z),Y=r.Di.getInstance(),X=Y.keyStatus.altKey||(I.uF||I.j9)&&Y.keyStatus.shiftKey;G(V,J,X,B?ie=>ie===B:ie=>ie==="navigation")}function K($,z,J,B,V,Y){const X=$.getActions(z);G(X,J,!1,typeof B=="string"?re=>re===B:B,V,Y)}function G($,z,J,B=X=>X==="navigation",V=()=>!1,Y=!1){let X,ie;Array.isArray(z)?(X=z,ie=z):(X=z.primary,ie=z.secondary);const re=new Set;for(const[te,D]of $){let he;B(te)?(he=X,he.length>0&&Y&&he.push(new L.wv)):(he=ie,he.length>0&&he.push(new L.wv));for(let ve of D){J&&(ve=ve instanceof f.Xe&&ve.alt?ve.alt:ve);const Ce=he.push(ve);ve instanceof L.YH&&re.add({group:te,action:ve,index:Ce-1})}}for(const{group:te,action:D,index:he}of re){const ve=B(te)?X:ie,Ce=D.actions;V(D,te,ve.length)&&ve.splice(he,1,...Ce)}}let P=class extends k.Z4{constructor(z,J,B,V,Y,X,ie,re){super(void 0,z,{icon:!!(z.class||z.item.icon),label:!z.class&&!z.item.icon,draggable:J?.draggable,keybinding:J?.keybinding,hoverDelegate:J?.hoverDelegate}),this._keybindingService=B,this._notificationService=V,this._contextKeyService=Y,this._themeService=X,this._contextMenuService=ie,this._accessibilityService=re,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new x.HE),this._altKey=r.Di.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}async onClick(z){z.preventDefault(),z.stopPropagation();try{await this.actionRunner.run(this._commandAction,this._context)}catch(J){this._notificationService.error(J)}}render(z){if(super.render(z),z.classList.add("menu-entry"),this.options.icon&&this._updateItemClass(this._menuItemAction.item),this._menuItemAction.alt){let J=!1;const B=()=>{var V;const Y=!!(!((V=this._menuItemAction.alt)===null||V===void 0)&&V.enabled)&&(!this._accessibilityService.isMotionReduced()||J)&&(this._altKey.keyStatus.altKey||this._altKey.keyStatus.shiftKey&&J);Y!==this._wantsAltCommand&&(this._wantsAltCommand=Y,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._register(this._altKey.event(B)),this._register((0,r.ko)(z,"mouseleave",V=>{J=!1,B()})),this._register((0,r.ko)(z,"mouseenter",V=>{J=!0,B()})),B()}}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var z;const J=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),B=J&&J.getLabel(),V=this._commandAction.tooltip||this._commandAction.label;let Y=B?(0,S.kg)("titleAndKb","{0} ({1})",V,B):V;if(!this._wantsAltCommand&&(!((z=this._menuItemAction.alt)===null||z===void 0)&&z.enabled)){const X=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,ie=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),re=ie&&ie.getLabel(),te=re?(0,S.kg)("titleAndKb","{0} ({1})",X,re):X;Y=(0,S.kg)("titleAndKbAndAlt",`{0} [{1}] {2}`,Y,g.Of.modifierLabels[I.OS].altKey,te)}return Y}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(z){this._itemClassDispose.value=void 0;const{element:J,label:B}=this;if(!J||!B)return;const V=this._commandAction.checked&&d(z.toggled)&&z.toggled.icon?z.toggled.icon:z.icon;if(V)if(C.L.isThemeIcon(V)){const Y=C.L.asClassNameArray(V);B.classList.add(...Y),this._itemClassDispose.value=(0,x.s)(()=>{B.classList.remove(...Y)})}else B.style.backgroundImage=(0,h.HD)(this._themeService.getColorTheme().type)?(0,r.Tf)(V.dark):(0,r.Tf)(V.light),B.classList.add("icon"),this._itemClassDispose.value=(0,x.qE)((0,x.s)(()=>{B.style.backgroundImage="",B.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}};P=w([j(2,i.b),j(3,c.Ot),j(4,a.fN),j(5,u.Gy),j(6,s.Z),j(7,O.j)],P);let A=class extends M.d{constructor(z,J,B,V,Y){var X,ie,re;const te={...J,menuAsChild:(X=J?.menuAsChild)!==null&&X!==void 0?X:!1,classNames:(ie=J?.classNames)!==null&&ie!==void 0?ie:C.L.isThemeIcon(z.item.icon)?C.L.asClassName(z.item.icon):void 0,keybindingProvider:(re=J?.keybindingProvider)!==null&&re!==void 0?re:D=>B.lookupKeybinding(D.id)};super(z,{getActions:()=>z.actions},V,te),this._keybindingService=B,this._contextMenuService=V,this._themeService=Y}render(z){super.render(z),(0,v.j)(this.element),z.classList.add("menu-entry");const J=this._action,{icon:B}=J.item;if(B&&!C.L.isThemeIcon(B)){this.element.classList.add("icon");const V=()=>{this.element&&(this.element.style.backgroundImage=(0,h.HD)(this._themeService.getColorTheme().type)?(0,r.Tf)(B.dark):(0,r.Tf)(B.light))};V(),this._register(this._themeService.onDidColorThemeChange(()=>{V()}))}}};A=w([j(2,i.b),j(3,s.Z),j(4,u.Gy)],A);let T=class extends k.EH{constructor(z,J,B,V,Y,X,ie,re){var te,D,he;super(null,z),this._keybindingService=B,this._notificationService=V,this._contextMenuService=Y,this._menuService=X,this._instaService=ie,this._storageService=re,this._container=null,this._options=J,this._storageKey=`${z.item.submenu.id}_lastActionId`;let ve;const Ce=J?.persistLastActionId?re.get(this._storageKey,1):void 0;Ce&&(ve=z.actions.find(_e=>Ce===_e.id)),ve||(ve=z.actions[0]),this._defaultAction=this._instaService.createInstance(P,ve,{keybinding:this._getDefaultActionKeybindingLabel(ve)});const Pe={keybindingProvider:_e=>this._keybindingService.lookupKeybinding(_e.id),...J,menuAsChild:(te=J?.menuAsChild)!==null&&te!==void 0?te:!0,classNames:(D=J?.classNames)!==null&&D!==void 0?D:["codicon","codicon-chevron-down"],actionRunner:(he=J?.actionRunner)!==null&&he!==void 0?he:new L.LN};this._dropdown=new M.d(z,z.actions,this._contextMenuService,Pe),this._register(this._dropdown.actionRunner.onDidRun(_e=>{_e.action instanceof f.Xe&&this.update(_e.action)}))}update(z){var J;!((J=this._options)===null||J===void 0)&&J.persistLastActionId&&this._storageService.store(this._storageKey,z.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(P,z,{keybinding:this._getDefaultActionKeybindingLabel(z)}),this._defaultAction.actionRunner=new class extends L.LN{async runAction(B,V){await B.run(void 0)}},this._container&&this._defaultAction.render((0,r.Hs)(this._container,(0,r.$)(".action-container")))}_getDefaultActionKeybindingLabel(z){var J;let B;if(!((J=this._options)===null||J===void 0)&&J.renderKeybindingWithDefaultActionLabel){const V=this._keybindingService.lookupKeybinding(z.id);V&&(B=`(${V.getLabel()})`)}return B}setActionContext(z){super.setActionContext(z),this._defaultAction.setActionContext(z),this._dropdown.setActionContext(z)}render(z){this._container=z,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const J=(0,r.$)(".action-container");this._defaultAction.render((0,r.BC)(this._container,J)),this._register((0,r.ko)(J,r.Bx.KEY_DOWN,V=>{const Y=new F.Z(V);Y.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),Y.stopPropagation())}));const B=(0,r.$)(".dropdown-action-container");this._dropdown.render((0,r.BC)(this._container,B)),this._register((0,r.ko)(B,r.Bx.KEY_DOWN,V=>{var Y;const X=new F.Z(V);X.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),(Y=this._defaultAction.element)===null||Y===void 0||Y.focus(),X.stopPropagation())}))}focus(z){z?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(z){z?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};T=w([j(2,i.b),j(3,c.Ot),j(4,s.Z),j(5,f.ez),j(6,n._Y),j(7,m.CS)],T);let E=class extends k.XF{constructor(z,J){super(null,z,z.actions.map(B=>({text:B.id===L.wv.ID?"\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500":B.label,isDisabled:!B.enabled})),0,J,b.RE,{ariaLabel:z.tooltip,optionsAsChildren:!0}),this.select(Math.max(0,z.actions.findIndex(B=>B.checked)))}render(z){super.render(z),z.style.borderColor=(0,p.GuP)(p.HcB)}runAction(z,J){const B=this.action.actions[J];B&&this.actionRunner.run(B)}};E=w([j(1,s.l)],E);function W($,z,J){return z instanceof f.Xe?$.createInstance(P,z,J):z instanceof f.nI?z.item.isSelection?$.createInstance(E,z):z.item.rememberDefaultAction?$.createInstance(T,z,{...J,persistLastActionId:!0}):$.createInstance(A,z,J):void 0}},"./node_modules/monaco-editor/esm/vs/platform/actions/browser/toolbar.js":function(pt,Me,e){e.d(Me,{m:function(){return U},p:function(){return j}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/actionbar/actionbar.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),f=e("./node_modules/monaco-editor/esm/vs/nls.js"),d=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js");class a extends S.jG{constructor(G,P,A={orientation:0}){var T;super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new I._B),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new S.Cm),A.hoverDelegate=(T=A.hoverDelegate)!==null&&T!==void 0?T:this._register((0,d.bW)()),this.options=A,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new s(()=>{var E;return(E=this.toggleMenuActionViewItem)===null||E===void 0?void 0:E.show()},A.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",G.appendChild(this.element),this.actionBar=this._register(new k.E(this.element,{orientation:A.orientation,ariaLabel:A.ariaLabel,actionRunner:A.actionRunner,allowContextMenu:A.allowContextMenu,highlightToggledItems:A.highlightToggledItems,hoverDelegate:A.hoverDelegate,actionViewItemProvider:(E,W)=>{var $;if(E.id===s.ID)return this.toggleMenuActionViewItem=new M.d(E,E.menuActions,P,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:x.L.asClassNameArray(($=A.moreIcon)!==null&&$!==void 0?$:g.W.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,isMenu:!0,hoverDelegate:this.options.hoverDelegate}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(A.actionViewItemProvider){const z=A.actionViewItemProvider(E,W);if(z)return z}if(E instanceof L.YH){const z=new M.d(E,E.actions,P,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:E.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry,hoverDelegate:this.options.hoverDelegate});return z.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(z),this.disposables.add(this._onDidChangeDropdownVisibility.add(z.onDidChangeVisibility)),z}}}))}set actionRunner(G){this.actionBar.actionRunner=G}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(G){return this.actionBar.getAction(G)}setActions(G,P){this.clear();const A=G?G.slice(0):[];this.hasSecondaryActions=!!(P&&P.length>0),this.hasSecondaryActions&&P&&(this.toggleMenuAction.menuActions=P.slice(0),A.push(this.toggleMenuAction)),A.forEach(T=>{this.actionBar.push(T,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(T)})})}getKeybindingLabel(G){var P,A,T;const E=this.lookupKeybindings?(A=(P=this.options).getKeyBinding)===null||A===void 0?void 0:A.call(P,G):void 0;return(T=E?.getLabel())!==null&&T!==void 0?T:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),this.disposables.dispose(),super.dispose()}}class s extends L.rc{constructor(G,P){P=P||f.kg("moreActions","More Actions..."),super(s.ID,P,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=G}async run(){this.toggleDropdownMenu()}get menuActions(){return this._menuActions}set menuActions(G){this._menuActions=G}}s.ID="toolbar.toggle.more";var n=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),i=e("./node_modules/monaco-editor/esm/vs/base/common/collections.js"),c=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js"),u=e("./node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js"),C=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),v=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),p=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),b=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),O=function(K,G,P,A){var T=arguments.length,E=T<3?G:A===null?A=Object.getOwnPropertyDescriptor(G,P):A,W;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(K,G,P,A);else for(var $=K.length-1;$>=0;$--)(W=K[$])&&(E=(T<3?W(E):T>3?W(G,P,E):W(G,P))||E);return T>3&&E&&Object.defineProperty(G,P,E),E},w=function(K,G){return function(P,A){G(P,A,K)}};let j=class extends a{constructor(G,P,A,T,E,W,$){super(G,E,{getKeyBinding:J=>{var B;return(B=W.lookupKeybinding(J.id))!==null&&B!==void 0?B:void 0},...P,allowContextMenu:!0,skipTelemetry:typeof P?.telemetrySource=="string"}),this._options=P,this._menuService=A,this._contextKeyService=T,this._contextMenuService=E,this._sessionDisposables=this._store.add(new S.Cm);const z=P?.telemetrySource;z&&this._store.add(this.actionBar.onDidRun(J=>$.publicLog2("workbenchActionExecuted",{id:J.action.id,from:z})))}setActions(G,P=[],A){var T,E,W;this._sessionDisposables.clear();const $=G.slice(),z=P.slice(),J=[];let B=0;const V=[];let Y=!1;if(((T=this._options)===null||T===void 0?void 0:T.hiddenItemStrategy)!==-1)for(let X=0;X<$.length;X++){const ie=$[X];!(ie instanceof C.Xe)&&!(ie instanceof C.nI)||ie.hideActions&&(J.push(ie.hideActions.toggle),ie.hideActions.toggle.checked&&B++,ie.hideActions.isHidden&&(Y=!0,$[X]=void 0,((E=this._options)===null||E===void 0?void 0:E.hiddenItemStrategy)!==0&&(V[X]=ie)))}if(((W=this._options)===null||W===void 0?void 0:W.overflowBehavior)!==void 0){const X=(0,i.E)(new Set(this._options.overflowBehavior.exempted),m.f.map($,te=>te?.id)),ie=this._options.overflowBehavior.maxItems-X.size;let re=0;for(let te=0;te<$.length;te++){const D=$[te];D&&(re++,!X.has(D.id)&&re>=ie&&($[te]=void 0,V[te]=D))}}(0,n.SK)($),(0,n.SK)(V),super.setActions($,L.wv.join(V,z)),J.length>0&&this._sessionDisposables.add((0,r.ko)(this.getElement(),"contextmenu",X=>{var ie,re,te,D,he;const ve=new F.P((0,r.zk)(this.getElement()),X),Ce=this.getItemAction(ve.target);if(!Ce)return;ve.preventDefault(),ve.stopPropagation();let Pe=!1;if(B===1&&((ie=this._options)===null||ie===void 0?void 0:ie.hiddenItemStrategy)===0){Pe=!0;for(let De=0;Dethis._menuService.resetHiddenStates(A)}))),this._contextMenuService.showContextMenu({getAnchor:()=>ve,getActions:()=>ee,menuId:(te=this._options)===null||te===void 0?void 0:te.contextMenu,menuActionOptions:{renderShortTitle:!0,...(D=this._options)===null||D===void 0?void 0:D.menuOptions},skipTelemetry:typeof((he=this._options)===null||he===void 0?void 0:he.telemetrySource)=="string",contextKeyService:this._contextKeyService})}))}};j=O([w(2,C.ez),w(3,h.fN),w(4,v.Z),w(5,p.b),w(6,b.k)],j);let U=class extends j{constructor(G,P,A,T,E,W,$,z){super(G,{resetMenu:P,...A},T,E,W,$,z),this._onDidChangeMenuItems=this._store.add(new I.vl),this.onDidChangeMenuItems=this._onDidChangeMenuItems.event;const J=this._store.add(T.createMenu(P,E,{emitEventsForSubmenuChanges:!0})),B=()=>{var V,Y,X;const ie=[],re=[];(0,u.Ot)(J,A?.menuOptions,{primary:ie,secondary:re},(V=A?.toolbarOptions)===null||V===void 0?void 0:V.primaryGroup,(Y=A?.toolbarOptions)===null||Y===void 0?void 0:Y.shouldInlineSubmenu,(X=A?.toolbarOptions)===null||X===void 0?void 0:X.useSeparatorsInPrimaryActions),G.classList.toggle("has-no-actions",ie.length===0&&re.length===0),super.setActions(ie,re)};this._store.add(J.onDidChange(()=>{B(),this._onDidChangeMenuItems.fire(this)})),B()}setActions(){throw new c.D7("This toolbar is populated from a menu.")}};U=O([w(3,C.ez),w(4,h.fN),w(5,v.Z),w(6,p.b),w(7,b.k)],U)},"./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js":function(pt,Me,e){e.d(Me,{D8:function(){return i},L:function(){return v},Xe:function(){return h},ZG:function(){return u},ez:function(){return c},i1:function(){return n},is:function(){return s},nI:function(){return C},ug:function(){return p}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/actions.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js"),f=function(b,O,w,j){var U=arguments.length,K=U<3?O:j===null?j=Object.getOwnPropertyDescriptor(O,w):j,G;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")K=Reflect.decorate(b,O,w,j);else for(var P=b.length-1;P>=0;P--)(G=b[P])&&(K=(U<3?G(K):U>3?G(O,w,K):G(O,w))||K);return U>3&&K&&Object.defineProperty(O,w,K),K},d=function(b,O){return function(w,j){O(w,j,b)}},a;function s(b){return b.command!==void 0}function n(b){return b.submenu!==void 0}class i{constructor(O){if(i._instances.has(O))throw new TypeError(`MenuId with identifier '${O}' already exists. Use MenuId.for(ident) or a unique identifier`);i._instances.set(O,this),this.id=O}}i._instances=new Map,i.CommandPalette=new i("CommandPalette"),i.DebugBreakpointsContext=new i("DebugBreakpointsContext"),i.DebugCallStackContext=new i("DebugCallStackContext"),i.DebugConsoleContext=new i("DebugConsoleContext"),i.DebugVariablesContext=new i("DebugVariablesContext"),i.NotebookVariablesContext=new i("NotebookVariablesContext"),i.DebugHoverContext=new i("DebugHoverContext"),i.DebugWatchContext=new i("DebugWatchContext"),i.DebugToolBar=new i("DebugToolBar"),i.DebugToolBarStop=new i("DebugToolBarStop"),i.EditorContext=new i("EditorContext"),i.SimpleEditorContext=new i("SimpleEditorContext"),i.EditorContent=new i("EditorContent"),i.EditorLineNumberContext=new i("EditorLineNumberContext"),i.EditorContextCopy=new i("EditorContextCopy"),i.EditorContextPeek=new i("EditorContextPeek"),i.EditorContextShare=new i("EditorContextShare"),i.EditorTitle=new i("EditorTitle"),i.EditorTitleRun=new i("EditorTitleRun"),i.EditorTitleContext=new i("EditorTitleContext"),i.EditorTitleContextShare=new i("EditorTitleContextShare"),i.EmptyEditorGroup=new i("EmptyEditorGroup"),i.EmptyEditorGroupContext=new i("EmptyEditorGroupContext"),i.EditorTabsBarContext=new i("EditorTabsBarContext"),i.EditorTabsBarShowTabsSubmenu=new i("EditorTabsBarShowTabsSubmenu"),i.EditorTabsBarShowTabsZenModeSubmenu=new i("EditorTabsBarShowTabsZenModeSubmenu"),i.EditorActionsPositionSubmenu=new i("EditorActionsPositionSubmenu"),i.ExplorerContext=new i("ExplorerContext"),i.ExplorerContextShare=new i("ExplorerContextShare"),i.ExtensionContext=new i("ExtensionContext"),i.GlobalActivity=new i("GlobalActivity"),i.CommandCenter=new i("CommandCenter"),i.CommandCenterCenter=new i("CommandCenterCenter"),i.LayoutControlMenuSubmenu=new i("LayoutControlMenuSubmenu"),i.LayoutControlMenu=new i("LayoutControlMenu"),i.MenubarMainMenu=new i("MenubarMainMenu"),i.MenubarAppearanceMenu=new i("MenubarAppearanceMenu"),i.MenubarDebugMenu=new i("MenubarDebugMenu"),i.MenubarEditMenu=new i("MenubarEditMenu"),i.MenubarCopy=new i("MenubarCopy"),i.MenubarFileMenu=new i("MenubarFileMenu"),i.MenubarGoMenu=new i("MenubarGoMenu"),i.MenubarHelpMenu=new i("MenubarHelpMenu"),i.MenubarLayoutMenu=new i("MenubarLayoutMenu"),i.MenubarNewBreakpointMenu=new i("MenubarNewBreakpointMenu"),i.PanelAlignmentMenu=new i("PanelAlignmentMenu"),i.PanelPositionMenu=new i("PanelPositionMenu"),i.ActivityBarPositionMenu=new i("ActivityBarPositionMenu"),i.MenubarPreferencesMenu=new i("MenubarPreferencesMenu"),i.MenubarRecentMenu=new i("MenubarRecentMenu"),i.MenubarSelectionMenu=new i("MenubarSelectionMenu"),i.MenubarShare=new i("MenubarShare"),i.MenubarSwitchEditorMenu=new i("MenubarSwitchEditorMenu"),i.MenubarSwitchGroupMenu=new i("MenubarSwitchGroupMenu"),i.MenubarTerminalMenu=new i("MenubarTerminalMenu"),i.MenubarViewMenu=new i("MenubarViewMenu"),i.MenubarHomeMenu=new i("MenubarHomeMenu"),i.OpenEditorsContext=new i("OpenEditorsContext"),i.OpenEditorsContextShare=new i("OpenEditorsContextShare"),i.ProblemsPanelContext=new i("ProblemsPanelContext"),i.SCMInputBox=new i("SCMInputBox"),i.SCMChangesSeparator=new i("SCMChangesSeparator"),i.SCMIncomingChanges=new i("SCMIncomingChanges"),i.SCMIncomingChangesContext=new i("SCMIncomingChangesContext"),i.SCMIncomingChangesSetting=new i("SCMIncomingChangesSetting"),i.SCMOutgoingChanges=new i("SCMOutgoingChanges"),i.SCMOutgoingChangesContext=new i("SCMOutgoingChangesContext"),i.SCMOutgoingChangesSetting=new i("SCMOutgoingChangesSetting"),i.SCMIncomingChangesAllChangesContext=new i("SCMIncomingChangesAllChangesContext"),i.SCMIncomingChangesHistoryItemContext=new i("SCMIncomingChangesHistoryItemContext"),i.SCMOutgoingChangesAllChangesContext=new i("SCMOutgoingChangesAllChangesContext"),i.SCMOutgoingChangesHistoryItemContext=new i("SCMOutgoingChangesHistoryItemContext"),i.SCMChangeContext=new i("SCMChangeContext"),i.SCMResourceContext=new i("SCMResourceContext"),i.SCMResourceContextShare=new i("SCMResourceContextShare"),i.SCMResourceFolderContext=new i("SCMResourceFolderContext"),i.SCMResourceGroupContext=new i("SCMResourceGroupContext"),i.SCMSourceControl=new i("SCMSourceControl"),i.SCMSourceControlInline=new i("SCMSourceControlInline"),i.SCMSourceControlTitle=new i("SCMSourceControlTitle"),i.SCMTitle=new i("SCMTitle"),i.SearchContext=new i("SearchContext"),i.SearchActionMenu=new i("SearchActionContext"),i.StatusBarWindowIndicatorMenu=new i("StatusBarWindowIndicatorMenu"),i.StatusBarRemoteIndicatorMenu=new i("StatusBarRemoteIndicatorMenu"),i.StickyScrollContext=new i("StickyScrollContext"),i.TestItem=new i("TestItem"),i.TestItemGutter=new i("TestItemGutter"),i.TestMessageContext=new i("TestMessageContext"),i.TestMessageContent=new i("TestMessageContent"),i.TestPeekElement=new i("TestPeekElement"),i.TestPeekTitle=new i("TestPeekTitle"),i.TouchBarContext=new i("TouchBarContext"),i.TitleBarContext=new i("TitleBarContext"),i.TitleBarTitleContext=new i("TitleBarTitleContext"),i.TunnelContext=new i("TunnelContext"),i.TunnelPrivacy=new i("TunnelPrivacy"),i.TunnelProtocol=new i("TunnelProtocol"),i.TunnelPortInline=new i("TunnelInline"),i.TunnelTitle=new i("TunnelTitle"),i.TunnelLocalAddressInline=new i("TunnelLocalAddressInline"),i.TunnelOriginInline=new i("TunnelOriginInline"),i.ViewItemContext=new i("ViewItemContext"),i.ViewContainerTitle=new i("ViewContainerTitle"),i.ViewContainerTitleContext=new i("ViewContainerTitleContext"),i.ViewTitle=new i("ViewTitle"),i.ViewTitleContext=new i("ViewTitleContext"),i.CommentEditorActions=new i("CommentEditorActions"),i.CommentThreadTitle=new i("CommentThreadTitle"),i.CommentThreadActions=new i("CommentThreadActions"),i.CommentThreadAdditionalActions=new i("CommentThreadAdditionalActions"),i.CommentThreadTitleContext=new i("CommentThreadTitleContext"),i.CommentThreadCommentContext=new i("CommentThreadCommentContext"),i.CommentTitle=new i("CommentTitle"),i.CommentActions=new i("CommentActions"),i.CommentsViewThreadActions=new i("CommentsViewThreadActions"),i.InteractiveToolbar=new i("InteractiveToolbar"),i.InteractiveCellTitle=new i("InteractiveCellTitle"),i.InteractiveCellDelete=new i("InteractiveCellDelete"),i.InteractiveCellExecute=new i("InteractiveCellExecute"),i.InteractiveInputExecute=new i("InteractiveInputExecute"),i.IssueReporter=new i("IssueReporter"),i.NotebookToolbar=new i("NotebookToolbar"),i.NotebookStickyScrollContext=new i("NotebookStickyScrollContext"),i.NotebookCellTitle=new i("NotebookCellTitle"),i.NotebookCellDelete=new i("NotebookCellDelete"),i.NotebookCellInsert=new i("NotebookCellInsert"),i.NotebookCellBetween=new i("NotebookCellBetween"),i.NotebookCellListTop=new i("NotebookCellTop"),i.NotebookCellExecute=new i("NotebookCellExecute"),i.NotebookCellExecuteGoTo=new i("NotebookCellExecuteGoTo"),i.NotebookCellExecutePrimary=new i("NotebookCellExecutePrimary"),i.NotebookDiffCellInputTitle=new i("NotebookDiffCellInputTitle"),i.NotebookDiffCellMetadataTitle=new i("NotebookDiffCellMetadataTitle"),i.NotebookDiffCellOutputsTitle=new i("NotebookDiffCellOutputsTitle"),i.NotebookOutputToolbar=new i("NotebookOutputToolbar"),i.NotebookOutlineFilter=new i("NotebookOutlineFilter"),i.NotebookOutlineActionMenu=new i("NotebookOutlineActionMenu"),i.NotebookEditorLayoutConfigure=new i("NotebookEditorLayoutConfigure"),i.NotebookKernelSource=new i("NotebookKernelSource"),i.BulkEditTitle=new i("BulkEditTitle"),i.BulkEditContext=new i("BulkEditContext"),i.TimelineItemContext=new i("TimelineItemContext"),i.TimelineTitle=new i("TimelineTitle"),i.TimelineTitleContext=new i("TimelineTitleContext"),i.TimelineFilterSubMenu=new i("TimelineFilterSubMenu"),i.AccountsContext=new i("AccountsContext"),i.SidebarTitle=new i("SidebarTitle"),i.PanelTitle=new i("PanelTitle"),i.AuxiliaryBarTitle=new i("AuxiliaryBarTitle"),i.AuxiliaryBarHeader=new i("AuxiliaryBarHeader"),i.TerminalInstanceContext=new i("TerminalInstanceContext"),i.TerminalEditorInstanceContext=new i("TerminalEditorInstanceContext"),i.TerminalNewDropdownContext=new i("TerminalNewDropdownContext"),i.TerminalTabContext=new i("TerminalTabContext"),i.TerminalTabEmptyAreaContext=new i("TerminalTabEmptyAreaContext"),i.TerminalStickyScrollContext=new i("TerminalStickyScrollContext"),i.WebviewContext=new i("WebviewContext"),i.InlineCompletionsActions=new i("InlineCompletionsActions"),i.InlineEditActions=new i("InlineEditActions"),i.NewFile=new i("NewFile"),i.MergeInput1Toolbar=new i("MergeToolbar1Toolbar"),i.MergeInput2Toolbar=new i("MergeToolbar2Toolbar"),i.MergeBaseToolbar=new i("MergeBaseToolbar"),i.MergeInputResultToolbar=new i("MergeToolbarResultToolbar"),i.InlineSuggestionToolbar=new i("InlineSuggestionToolbar"),i.InlineEditToolbar=new i("InlineEditToolbar"),i.ChatContext=new i("ChatContext"),i.ChatCodeBlock=new i("ChatCodeblock"),i.ChatMessageTitle=new i("ChatMessageTitle"),i.ChatExecute=new i("ChatExecute"),i.ChatExecuteSecondary=new i("ChatExecuteSecondary"),i.ChatInputSide=new i("ChatInputSide"),i.AccessibleView=new i("AccessibleView"),i.MultiDiffEditorFileToolbar=new i("MultiDiffEditorFileToolbar"),i.DiffEditorHunkToolbar=new i("DiffEditorHunkToolbar"),i.DiffEditorSelectionToolbar=new i("DiffEditorSelectionToolbar");const c=(0,I.u1)("menuService");class m{static for(O){let w=this._all.get(O);return w||(w=new m(O),this._all.set(O,w)),w}static merge(O){const w=new Set;for(const j of O)j instanceof m&&w.add(j.id);return w}constructor(O){this.id=O,this.has=w=>w===O}}m._all=new Map;const u=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new k.QT({merge:m.merge}),this.onDidChangeMenu=this._onDidChangeMenu.event}addCommand(b){return this._commands.set(b.id,b),this._onDidChangeMenu.fire(m.for(i.CommandPalette)),(0,M.s)(()=>{this._commands.delete(b.id)&&this._onDidChangeMenu.fire(m.for(i.CommandPalette))})}getCommand(b){return this._commands.get(b)}getCommands(){const b=new Map;return this._commands.forEach((O,w)=>b.set(w,O)),b}appendMenuItem(b,O){let w=this._menuItems.get(b);w||(w=new L.w,this._menuItems.set(b,w));const j=w.push(O);return this._onDidChangeMenu.fire(m.for(b)),(0,M.s)(()=>{j(),this._onDidChangeMenu.fire(m.for(b))})}appendMenuItems(b){const O=new M.Cm;for(const{id:w,item:j}of b)O.add(this.appendMenuItem(w,j));return O}getMenuItems(b){let O;return this._menuItems.has(b)?O=[...this._menuItems.get(b)]:O=[],b===i.CommandPalette&&this._appendImplicitItems(O),O}_appendImplicitItems(b){const O=new Set;for(const w of b)s(w)&&(O.add(w.command.id),w.alt&&O.add(w.alt.id));this._commands.forEach((w,j)=>{O.has(j)||b.push({command:w})})}};class C extends r.YH{constructor(O,w,j){super(`submenuitem.${O.submenu.id}`,typeof O.title=="string"?O.title:O.title.value,j,"submenu"),this.item=O,this.hideActions=w}}let h=a=class{static label(O,w){return w?.renderShortTitle&&O.shortTitle?typeof O.shortTitle=="string"?O.shortTitle:O.shortTitle.value:typeof O.title=="string"?O.title:O.title.value}constructor(O,w,j,U,K,G){var P,A;this.hideActions=U,this._commandService=G,this.id=O.id,this.label=a.label(O,j),this.tooltip=(A=typeof O.tooltip=="string"?O.tooltip:(P=O.tooltip)===null||P===void 0?void 0:P.value)!==null&&A!==void 0?A:"",this.enabled=!O.precondition||K.contextMatchesRules(O.precondition),this.checked=void 0;let T;if(O.toggled){const E=O.toggled.condition?O.toggled:{condition:O.toggled};this.checked=K.contextMatchesRules(E.condition),this.checked&&E.tooltip&&(this.tooltip=typeof E.tooltip=="string"?E.tooltip:E.tooltip.value),this.checked&&F.L.isThemeIcon(E.icon)&&(T=E.icon),this.checked&&E.title&&(this.label=typeof E.title=="string"?E.title:E.title.value)}T||(T=F.L.isThemeIcon(O.icon)?O.icon:void 0),this.item=O,this.alt=w?new a(w,void 0,j,U,K,G):void 0,this._options=j,this.class=T&&F.L.asClassName(T)}run(...O){var w,j;let U=[];return!((w=this._options)===null||w===void 0)&&w.arg&&(U=[...U,this._options.arg]),!((j=this._options)===null||j===void 0)&&j.shouldForwardArgs&&(U=[...U,...O]),this._commandService.executeCommand(this.id,...U)}};h=a=f([d(4,x.fN),d(5,g.d)],h);class v{constructor(O){this.desc=O}}function p(b){const O=new M.Cm,w=new b,{f1:j,menu:U,keybinding:K,...G}=w.desc;if(g.w.getCommand(G.id))throw new Error(`Cannot register two commands with the same id: ${G.id}`);if(O.add(g.w.registerCommand({id:G.id,handler:(P,...A)=>w.run(P,...A),metadata:G.metadata})),Array.isArray(U))for(const P of U)O.add(u.appendMenuItem(P.id,{command:{...G,precondition:P.precondition===null?void 0:G.precondition},...P}));else U&&O.add(u.appendMenuItem(U.id,{command:{...G,precondition:U.precondition===null?void 0:G.precondition},...U}));if(j&&(O.add(u.appendMenuItem(i.CommandPalette,{command:G,when:G.precondition})),O.add(u.addCommand(G))),Array.isArray(K))for(const P of K)O.add(S.f.registerKeybindingRule({...P,id:G.id,when:G.precondition?x.M$.and(G.precondition,P.when):P.when}));else K&&O.add(S.f.registerKeybindingRule({...K,id:G.id,when:G.precondition?x.M$.and(G.precondition,K.when):K.when}));return O}},"./node_modules/monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js":function(pt,Me,e){e.d(Me,{h:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("clipboardService")},"./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js":function(pt,Me,e){e.d(Me,{d:function(){return x},w:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const x=(0,g.u1)("commandService"),I=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new r.vl,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(S,f){if(!S)throw new Error("invalid command");if(typeof S=="string"){if(!f)throw new Error("invalid command");return this.registerCommand({id:S,handler:f})}if(S.metadata&&Array.isArray(S.metadata.args)){const i=[];for(const m of S.metadata.args)i.push(m.constraint);const c=S.handler;S.handler=function(m,...u){return(0,L.jx)(u,i),c(m,...u)}}const{id:d}=S;let a=this._commands.get(d);a||(a=new M.w,this._commands.set(d,a));const s=a.unshift(S),n=(0,k.s)(()=>{s();const i=this._commands.get(d);i?.isEmpty()&&this._commands.delete(d)});return this._onDidRegisterCommand.fire(d),n}registerCommandAlias(S,f){return I.registerCommand(S,(d,...a)=>d.get(x).executeCommand(f,...a))}getCommand(S){const f=this._commands.get(S);if(!(!f||f.isEmpty()))return F.f.first(f)}getCommands(){const S=new Map;for(const f of this._commands.keys()){const d=this.getCommand(f);d&&S.set(f,d)}return S}};I.registerCommand("noop",()=>{})},"./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js":function(pt,Me,e){e.d(Me,{Mo:function(){return I},ad:function(){return k},gD:function(){return x},iB:function(){return L},kW:function(){return M},pG:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("configurationService");function k(S,f){const d=Object.create(null);for(const a in S)M(d,a,S[a],f);return d}function M(S,f,d,a){const s=f.split("."),n=s.pop();let i=S;for(let c=0;c"u"?d:n}function I(S){return S.replace(/[\[\]]/g,"")}},"./node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js":function(pt,Me,e){e.d(Me,{Fd:function(){return I},Gv:function(){return p},rC:function(){return v}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),M=e("./node_modules/monaco-editor/esm/vs/nls.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js");const I={Configuration:"base.contributions.configuration"},S={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},d={properties:{},patternProperties:{}},a={properties:{},patternProperties:{}},s={properties:{},patternProperties:{}},n={properties:{},patternProperties:{}},i="vscode://schemas/settings/resourceLanguage",c=x.O.as(g.F.JSONContribution);class m{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new F.vl,this._onDidUpdateConfiguration=new F.vl,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:M.kg("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},c.registerSchema(i,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(U,K=!0){this.registerConfigurations([U],K)}registerConfigurations(U,K=!0){const G=new Set;this.doRegisterConfigurations(U,K,G),c.registerSchema(i,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:G})}registerDefaultConfigurations(U){const K=new Set;this.doRegisterDefaultConfigurations(U,K),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:K,defaultsOverrides:!0})}doRegisterDefaultConfigurations(U,K){var G;const P=[];for(const{overrides:A,source:T}of U)for(const E in A)if(K.add(E),v.test(E)){const W=this.configurationDefaultsOverrides.get(E),$=(G=W?.valuesSources)!==null&&G!==void 0?G:new Map;if(T)for(const V of Object.keys(A[E]))$.set(V,T);const z={...W?.value||{},...A[E]};this.configurationDefaultsOverrides.set(E,{source:T,value:z,valuesSources:$});const J=(0,L.Mo)(E),B={type:"object",default:z,description:M.kg("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",J),$ref:i,defaultDefaultValue:z,source:k.Kg(T)?void 0:T,defaultValueSource:T};P.push(...p(E)),this.configurationProperties[E]=B,this.defaultLanguageConfigurationOverridesNode.properties[E]=B}else{this.configurationDefaultsOverrides.set(E,{value:A[E],source:T});const W=this.configurationProperties[E];W&&(this.updatePropertyDefaultValue(E,W),this.updateSchema(E,W))}this.doRegisterOverrideIdentifiers(P)}registerOverrideIdentifiers(U){this.doRegisterOverrideIdentifiers(U),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(U){for(const K of U)this.overrideIdentifiers.add(K);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(U,K,G){U.forEach(P=>{this.validateAndRegisterProperties(P,K,P.extensionInfo,P.restrictedProperties,void 0,G),this.configurationContributors.push(P),this.registerJSONConfiguration(P)})}validateAndRegisterProperties(U,K=!0,G,P,A=3,T){var E;A=k.z(U.scope)?A:U.scope;const W=U.properties;if(W)for(const z in W){const J=W[z];if(K&&w(z,J)){delete W[z];continue}if(J.source=G,J.defaultDefaultValue=W[z].default,this.updatePropertyDefaultValue(z,J),v.test(z)?J.scope=void 0:(J.scope=k.z(J.scope)?A:J.scope,J.restricted=k.z(J.restricted)?!!P?.includes(z):J.restricted),W[z].hasOwnProperty("included")&&!W[z].included){this.excludedConfigurationProperties[z]=W[z],delete W[z];continue}else this.configurationProperties[z]=W[z],!((E=W[z].policy)===null||E===void 0)&&E.name&&this.policyConfigurations.set(W[z].policy.name,z);!W[z].deprecationMessage&&W[z].markdownDeprecationMessage&&(W[z].deprecationMessage=W[z].markdownDeprecationMessage),T.add(z)}const $=U.allOf;if($)for(const z of $)this.validateAndRegisterProperties(z,K,G,P,A,T)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(U){const K=G=>{const P=G.properties;if(P)for(const T in P)this.updateSchema(T,P[T]);const A=G.allOf;A?.forEach(K)};K(U)}updateSchema(U,K){switch(S.properties[U]=K,K.scope){case 1:f.properties[U]=K;break;case 2:d.properties[U]=K;break;case 6:a.properties[U]=K;break;case 3:s.properties[U]=K;break;case 4:n.properties[U]=K;break;case 5:n.properties[U]=K,this.resourceLanguageSettingsSchema.properties[U]=K;break}}updateOverridePropertyPatternKey(){for(const U of this.overrideIdentifiers.values()){const K=`[${U}]`,G={type:"object",description:M.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:M.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:i};this.updatePropertyDefaultValue(K,G),S.properties[K]=G,f.properties[K]=G,d.properties[K]=G,a.properties[K]=G,s.properties[K]=G,n.properties[K]=G}}registerOverridePropertyPatternKey(){const U={type:"object",description:M.kg("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:M.kg("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:i};S.patternProperties[h]=U,f.patternProperties[h]=U,d.patternProperties[h]=U,a.patternProperties[h]=U,s.patternProperties[h]=U,n.patternProperties[h]=U,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(U,K){const G=this.configurationDefaultsOverrides.get(U);let P=G?.value,A=G?.source;k.b0(P)&&(P=K.defaultDefaultValue,A=void 0),k.b0(P)&&(P=b(K.type)),K.default=P,K.defaultValueSource=A}}const u="\\[([^\\]]+)\\]",C=new RegExp(u,"g"),h=`^(${u})+$`,v=new RegExp(h);function p(j){const U=[];if(v.test(j)){let K=C.exec(j);for(;K?.length;){const G=K[1].trim();G&&U.push(G),K=C.exec(j)}}return(0,r.dM)(U)}function b(j){switch(Array.isArray(j)?j[0]:j){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const O=new m;x.O.add(I.Configuration,O);function w(j,U){var K,G,P,A;return j.trim()?v.test(j)?M.kg("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",j):O.getConfigurationProperties()[j]!==void 0?M.kg("config.property.duplicate","Cannot register '{0}'. This property is already registered.",j):!((K=U.policy)===null||K===void 0)&&K.name&&O.getPolicyConfigurations().get((G=U.policy)===null||G===void 0?void 0:G.name)!==void 0?M.kg("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",j,(P=U.policy)===null||P===void 0?void 0:P.name,O.getPolicyConfigurations().get((A=U.policy)===null||A===void 0?void 0:A.name)):null:M.kg("config.property.empty","Cannot register an empty property")}},"./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js":function(pt,Me,e){e.d(Me,{f1:function(){return K},M$:function(){return p},fN:function(){return te},N1:function(){return re},jQ:function(){return b},M0:function(){return ve}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),M=e("./node_modules/monaco-editor/esm/vs/nls.js");function L(..._e){switch(_e.length){case 1:return(0,M.kg)("contextkey.scanner.hint.didYouMean1","Did you mean {0}?",_e[0]);case 2:return(0,M.kg)("contextkey.scanner.hint.didYouMean2","Did you mean {0} or {1}?",_e[0],_e[1]);case 3:return(0,M.kg)("contextkey.scanner.hint.didYouMean3","Did you mean {0}, {1} or {2}?",_e[0],_e[1],_e[2]);default:return}}const g=(0,M.kg)("contextkey.scanner.hint.didYouForgetToOpenOrCloseQuote","Did you forget to open or close the quote?"),x=(0,M.kg)("contextkey.scanner.hint.didYouForgetToEscapeSlash","Did you forget to escape the '/' (slash) character? Put two backslashes before it to escape, e.g., '\\\\/'.");class I{constructor(){this._input="",this._start=0,this._current=0,this._tokens=[],this._errors=[],this.stringRe=/[a-zA-Z0-9_<>\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(ee){switch(ee.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return ee.isTripleEq?"===":"==";case 4:return ee.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return ee.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return ee.lexeme;case 18:return ee.lexeme;case 19:return ee.lexeme;case 20:return"EOF";default:throw(0,k.iH)(`unhandled token type: ${JSON.stringify(ee)}; have you forgotten to add a case?`)}}reset(ee){return this._input=ee,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const De=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:De})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const De=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:De})}else this._match(126)?this._addToken(9):this._error(L("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(L("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(L("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(ee){return this._isAtEnd()||this._input.charCodeAt(this._current)!==ee?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(ee){this._tokens.push({type:ee,offset:this._start})}_error(ee){const De=this._start,Te=this._input.substring(this._start,this._current),He={type:19,offset:this._start,lexeme:Te};this._errors.push({offset:De,lexeme:Te,additionalInfo:ee}),this._tokens.push(He)}_string(){this.stringRe.lastIndex=this._start;const ee=this.stringRe.exec(this._input);if(ee){this._current=this._start+ee[0].length;const De=this._input.substring(this._start,this._current),Te=I._keywords.get(De);Te?this._addToken(Te):this._tokens.push({type:17,lexeme:De,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(g);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let ee=this._current,De=!1,Te=!1;for(;;){if(ee>=this._input.length){this._current=ee,this._error(x);return}const qe=this._input.charCodeAt(ee);if(De)De=!1;else if(qe===47&&!Te){ee++;break}else qe===91?Te=!0:qe===92?De=!0:qe===93&&(Te=!1);ee++}for(;ee=this._input.length}}I._regexFlags=new Set(["i","g","s","m","y","u"].map(_e=>_e.charCodeAt(0))),I._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);var S=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const f=new Map;f.set("false",!1),f.set("true",!0),f.set("isMac",r.zx),f.set("isLinux",r.j9),f.set("isWindows",r.uF),f.set("isWeb",r.HZ),f.set("isMacNative",r.zx&&!r.HZ),f.set("isEdge",r.UP),f.set("isFirefox",r.gm),f.set("isChrome",r.H8),f.set("isSafari",r.nr);const d=Object.prototype.hasOwnProperty,a={regexParsingWithErrorRecovery:!0},s=(0,M.kg)("contextkey.parser.error.emptyString","Empty context key expression"),n=(0,M.kg)("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),i=(0,M.kg)("contextkey.parser.error.noInAfterNot","'in' after 'not'."),c=(0,M.kg)("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),m=(0,M.kg)("contextkey.parser.error.unexpectedToken","Unexpected token"),u=(0,M.kg)("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),C=(0,M.kg)("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),h=(0,M.kg)("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");class v{constructor(ee=a){this._config=ee,this._scanner=new I,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(ee){if(ee===""){this._parsingErrors.push({message:s,offset:0,lexeme:"",additionalInfo:n});return}this._tokens=this._scanner.reset(ee).scan(),this._current=0,this._parsingErrors=[];try{const De=this._expr();if(!this._isAtEnd()){const Te=this._peek(),He=Te.type===17?u:void 0;throw this._parsingErrors.push({message:m,offset:Te.offset,lexeme:I.getLexeme(Te),additionalInfo:He}),v._parseError}return De}catch(De){if(De!==v._parseError)throw De;return}}_expr(){return this._or()}_or(){const ee=[this._and()];for(;this._matchOne(16);){const De=this._and();ee.push(De)}return ee.length===1?ee[0]:p.or(...ee)}_and(){const ee=[this._term()];for(;this._matchOne(15);){const De=this._term();ee.push(De)}return ee.length===1?ee[0]:p.and(...ee)}_term(){if(this._matchOne(2)){const ee=this._peek();switch(ee.type){case 11:return this._advance(),w.INSTANCE;case 12:return this._advance(),j.INSTANCE;case 0:{this._advance();const De=this._expr();return this._consume(1,c),De?.negate()}case 17:return this._advance(),T.create(ee.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",ee)}}return this._primary()}_primary(){const ee=this._peek();switch(ee.type){case 11:return this._advance(),p.true();case 12:return this._advance(),p.false();case 0:{this._advance();const De=this._expr();return this._consume(1,c),De}case 17:{const De=ee.lexeme;if(this._advance(),this._matchOne(9)){const He=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),He.type!==10)throw this._errExpectedButGot("REGEX",He);const qe=He.lexeme,Qe=qe.lastIndexOf("/"),q=Qe===qe.length-1?void 0:this._removeFlagsGY(qe.substring(Qe+1));let ye;try{ye=new RegExp(qe.substring(1,Qe),q)}catch{throw this._errExpectedButGot("REGEX",He)}return B.create(De,ye)}switch(He.type){case 10:case 19:{const qe=[He.lexeme];this._advance();let Qe=this._peek(),q=0;for(let ae=0;ae=0){const ge=qe.slice(q+1,ye),be=qe[ye+1]==="i"?"i":"";try{Qe=new RegExp(ge,be)}catch{throw this._errExpectedButGot("REGEX",He)}}}if(Qe===null)throw this._errExpectedButGot("REGEX",He);return B.create(De,Qe)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,i);const He=this._value();return p.notIn(De,He)}switch(this._peek().type){case 3:{this._advance();const He=this._value();if(this._previous().type===18)return p.equals(De,He);switch(He){case"true":return p.has(De);case"false":return p.not(De);default:return p.equals(De,He)}}case 4:{this._advance();const He=this._value();if(this._previous().type===18)return p.notEquals(De,He);switch(He){case"true":return p.not(De);case"false":return p.has(De);default:return p.notEquals(De,He)}}case 5:return this._advance(),z.create(De,this._value());case 6:return this._advance(),J.create(De,this._value());case 7:return this._advance(),W.create(De,this._value());case 8:return this._advance(),$.create(De,this._value());case 13:return this._advance(),p.in(De,this._value());default:return p.has(De)}}case 20:throw this._parsingErrors.push({message:C,offset:ee.offset,lexeme:"",additionalInfo:h}),v._parseError;default:throw this._errExpectedButGot(`true | false | KEY | KEY '=~' REGEX | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const ee=this._peek();switch(ee.type){case 17:case 18:return this._advance(),ee.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(ee){return ee.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(ee){return this._check(ee)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(ee,De){if(this._check(ee))return this._advance();throw this._errExpectedButGot(De,this._peek())}_errExpectedButGot(ee,De,Te){const He=(0,M.kg)("contextkey.parser.error.expectedButGot",`Expected: {0} Received: '{1}'.`,ee,I.getLexeme(De)),qe=De.offset,Qe=I.getLexeme(De);return this._parsingErrors.push({message:He,offset:qe,lexeme:Qe,additionalInfo:Te}),v._parseError}_check(ee){return this._peek().type===ee}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}}v._parseError=new Error;class p{static false(){return w.INSTANCE}static true(){return j.INSTANCE}static has(ee){return U.create(ee)}static equals(ee,De){return K.create(ee,De)}static notEquals(ee,De){return A.create(ee,De)}static regex(ee,De){return B.create(ee,De)}static in(ee,De){return G.create(ee,De)}static notIn(ee,De){return P.create(ee,De)}static not(ee){return T.create(ee)}static and(...ee){return X.create(ee,null,!0)}static or(...ee){return ie.create(ee,null,!0)}static deserialize(ee){return ee==null?void 0:this._parser.parse(ee)}}p._parser=new v({regexParsingWithErrorRecovery:!1});function b(_e,ee){const De=_e?_e.substituteConstants():void 0,Te=ee?ee.substituteConstants():void 0;return!De&&!Te?!0:!De||!Te?!1:De.equals(Te)}function O(_e,ee){return _e.cmp(ee)}class w{constructor(){this.type=0}cmp(ee){return this.type-ee.type}equals(ee){return ee.type===this.type}substituteConstants(){return this}evaluate(ee){return!1}serialize(){return"false"}keys(){return[]}negate(){return j.INSTANCE}}w.INSTANCE=new w;class j{constructor(){this.type=1}cmp(ee){return this.type-ee.type}equals(ee){return ee.type===this.type}substituteConstants(){return this}evaluate(ee){return!0}serialize(){return"true"}keys(){return[]}negate(){return w.INSTANCE}}j.INSTANCE=new j;class U{static create(ee,De=null){const Te=f.get(ee);return typeof Te=="boolean"?Te?j.INSTANCE:w.INSTANCE:new U(ee,De)}constructor(ee,De){this.key=ee,this.negated=De,this.type=2}cmp(ee){return ee.type!==this.type?this.type-ee.type:D(this.key,ee.key)}equals(ee){return ee.type===this.type?this.key===ee.key:!1}substituteConstants(){const ee=f.get(this.key);return typeof ee=="boolean"?ee?j.INSTANCE:w.INSTANCE:this}evaluate(ee){return!!ee.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this)),this.negated}}class K{static create(ee,De,Te=null){if(typeof De=="boolean")return De?U.create(ee,Te):T.create(ee,Te);const He=f.get(ee);return typeof He=="boolean"?De===(He?"true":"false")?j.INSTANCE:w.INSTANCE:new K(ee,De,Te)}constructor(ee,De,Te){this.key=ee,this.value=De,this.negated=Te,this.type=4}cmp(ee){return ee.type!==this.type?this.type-ee.type:he(this.key,this.value,ee.key,ee.value)}equals(ee){return ee.type===this.type?this.key===ee.key&&this.value===ee.value:!1}substituteConstants(){const ee=f.get(this.key);if(typeof ee=="boolean"){const De=ee?"true":"false";return this.value===De?j.INSTANCE:w.INSTANCE}return this}evaluate(ee){return ee.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class G{static create(ee,De){return new G(ee,De)}constructor(ee,De){this.key=ee,this.valueKey=De,this.type=10,this.negated=null}cmp(ee){return ee.type!==this.type?this.type-ee.type:he(this.key,this.valueKey,ee.key,ee.valueKey)}equals(ee){return ee.type===this.type?this.key===ee.key&&this.valueKey===ee.valueKey:!1}substituteConstants(){return this}evaluate(ee){const De=ee.getValue(this.valueKey),Te=ee.getValue(this.key);return Array.isArray(De)?De.includes(Te):typeof Te=="string"&&typeof De=="object"&&De!==null?d.call(De,Te):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=P.create(this.key,this.valueKey)),this.negated}}class P{static create(ee,De){return new P(ee,De)}constructor(ee,De){this.key=ee,this.valueKey=De,this.type=11,this._negated=G.create(ee,De)}cmp(ee){return ee.type!==this.type?this.type-ee.type:this._negated.cmp(ee._negated)}equals(ee){return ee.type===this.type?this._negated.equals(ee._negated):!1}substituteConstants(){return this}evaluate(ee){return!this._negated.evaluate(ee)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class A{static create(ee,De,Te=null){if(typeof De=="boolean")return De?T.create(ee,Te):U.create(ee,Te);const He=f.get(ee);return typeof He=="boolean"?De===(He?"true":"false")?w.INSTANCE:j.INSTANCE:new A(ee,De,Te)}constructor(ee,De,Te){this.key=ee,this.value=De,this.negated=Te,this.type=5}cmp(ee){return ee.type!==this.type?this.type-ee.type:he(this.key,this.value,ee.key,ee.value)}equals(ee){return ee.type===this.type?this.key===ee.key&&this.value===ee.value:!1}substituteConstants(){const ee=f.get(this.key);if(typeof ee=="boolean"){const De=ee?"true":"false";return this.value===De?w.INSTANCE:j.INSTANCE}return this}evaluate(ee){return ee.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=K.create(this.key,this.value,this)),this.negated}}class T{static create(ee,De=null){const Te=f.get(ee);return typeof Te=="boolean"?Te?w.INSTANCE:j.INSTANCE:new T(ee,De)}constructor(ee,De){this.key=ee,this.negated=De,this.type=3}cmp(ee){return ee.type!==this.type?this.type-ee.type:D(this.key,ee.key)}equals(ee){return ee.type===this.type?this.key===ee.key:!1}substituteConstants(){const ee=f.get(this.key);return typeof ee=="boolean"?ee?w.INSTANCE:j.INSTANCE:this}evaluate(ee){return!ee.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=U.create(this.key,this)),this.negated}}function E(_e,ee){if(typeof _e=="string"){const De=parseFloat(_e);isNaN(De)||(_e=De)}return typeof _e=="string"||typeof _e=="number"?ee(_e):w.INSTANCE}class W{static create(ee,De,Te=null){return E(De,He=>new W(ee,He,Te))}constructor(ee,De,Te){this.key=ee,this.value=De,this.negated=Te,this.type=12}cmp(ee){return ee.type!==this.type?this.type-ee.type:he(this.key,this.value,ee.key,ee.value)}equals(ee){return ee.type===this.type?this.key===ee.key&&this.value===ee.value:!1}substituteConstants(){return this}evaluate(ee){return typeof this.value=="string"?!1:parseFloat(ee.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=J.create(this.key,this.value,this)),this.negated}}class ${static create(ee,De,Te=null){return E(De,He=>new $(ee,He,Te))}constructor(ee,De,Te){this.key=ee,this.value=De,this.negated=Te,this.type=13}cmp(ee){return ee.type!==this.type?this.type-ee.type:he(this.key,this.value,ee.key,ee.value)}equals(ee){return ee.type===this.type?this.key===ee.key&&this.value===ee.value:!1}substituteConstants(){return this}evaluate(ee){return typeof this.value=="string"?!1:parseFloat(ee.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z.create(this.key,this.value,this)),this.negated}}class z{static create(ee,De,Te=null){return E(De,He=>new z(ee,He,Te))}constructor(ee,De,Te){this.key=ee,this.value=De,this.negated=Te,this.type=14}cmp(ee){return ee.type!==this.type?this.type-ee.type:he(this.key,this.value,ee.key,ee.value)}equals(ee){return ee.type===this.type?this.key===ee.key&&this.value===ee.value:!1}substituteConstants(){return this}evaluate(ee){return typeof this.value=="string"?!1:parseFloat(ee.getValue(this.key))new J(ee,He,Te))}constructor(ee,De,Te){this.key=ee,this.value=De,this.negated=Te,this.type=15}cmp(ee){return ee.type!==this.type?this.type-ee.type:he(this.key,this.value,ee.key,ee.value)}equals(ee){return ee.type===this.type?this.key===ee.key&&this.value===ee.value:!1}substituteConstants(){return this}evaluate(ee){return typeof this.value=="string"?!1:parseFloat(ee.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this.value,this)),this.negated}}class B{static create(ee,De){return new B(ee,De)}constructor(ee,De){this.key=ee,this.regexp=De,this.type=7,this.negated=null}cmp(ee){if(ee.type!==this.type)return this.type-ee.type;if(this.keyee.key)return 1;const De=this.regexp?this.regexp.source:"",Te=ee.regexp?ee.regexp.source:"";return DeTe?1:0}equals(ee){if(ee.type===this.type){const De=this.regexp?this.regexp.source:"",Te=ee.regexp?ee.regexp.source:"";return this.key===ee.key&&De===Te}return!1}substituteConstants(){return this}evaluate(ee){const De=ee.getValue(this.key);return this.regexp?this.regexp.test(De):!1}serialize(){const ee=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${ee}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V.create(this)),this.negated}}class V{static create(ee){return new V(ee)}constructor(ee){this._actual=ee,this.type=8}cmp(ee){return ee.type!==this.type?this.type-ee.type:this._actual.cmp(ee._actual)}equals(ee){return ee.type===this.type?this._actual.equals(ee._actual):!1}substituteConstants(){return this}evaluate(ee){return!this._actual.evaluate(ee)}serialize(){return`!(${this._actual.serialize()})`}keys(){return this._actual.keys()}negate(){return this._actual}}function Y(_e){let ee=null;for(let De=0,Te=_e.length;Deee.expr.length)return 1;for(let De=0,Te=this.expr.length;De1;){const Qe=He[He.length-1];if(Qe.type!==9)break;He.pop();const q=He.pop(),ye=He.length===0,ge=ie.create(Qe.expr.map(be=>X.create([be,q],null,Te)),null,ye);ge&&(He.push(ge),He.sort(O))}if(He.length===1)return He[0];if(Te){for(let Qe=0;Qeee.serialize()).join(" && ")}keys(){const ee=[];for(const De of this.expr)ee.push(...De.keys());return ee}negate(){if(!this.negated){const ee=[];for(const De of this.expr)ee.push(De.negate());this.negated=ie.create(ee,this,!0)}return this.negated}}class ie{static create(ee,De,Te){return ie._normalizeArr(ee,De,Te)}constructor(ee,De){this.expr=ee,this.negated=De,this.type=9}cmp(ee){if(ee.type!==this.type)return this.type-ee.type;if(this.expr.lengthee.expr.length)return 1;for(let De=0,Te=this.expr.length;Deee.serialize()).join(" || ")}keys(){const ee=[];for(const De of this.expr)ee.push(...De.keys());return ee}negate(){if(!this.negated){const ee=[];for(const De of this.expr)ee.push(De.negate());for(;ee.length>1;){const De=ee.shift(),Te=ee.shift(),He=[];for(const qe of Pe(De))for(const Qe of Pe(Te))He.push(X.create([qe,Qe],null,!1));ee.unshift(ie.create(He,null,!1))}this.negated=ie.create(ee,this,!0)}return this.negated}}class re extends U{static all(){return re._info.values()}constructor(ee,De,Te){super(ee,null),this._defaultValue=De,typeof Te=="object"?re._info.push({...Te,key:ee}):Te!==!0&&re._info.push({key:ee,description:Te,type:De!=null?typeof De:void 0})}bindTo(ee){return ee.createKey(this.key,this._defaultValue)}getValue(ee){return ee.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(ee){return K.create(this.key,ee)}}re._info=[];const te=(0,S.u1)("contextKeyService");function D(_e,ee){return _eee?1:0}function he(_e,ee,De,Te){return _eDe?1:eeTe?1:0}function ve(_e,ee){if(_e.type===0||ee.type===1)return!0;if(_e.type===9)return ee.type===9?Ce(_e.expr,ee.expr):!1;if(ee.type===9){for(const De of ee.expr)if(ve(_e,De))return!0;return!1}if(_e.type===6){if(ee.type===6)return Ce(ee.expr,_e.expr);for(const De of _e.expr)if(ve(De,ee))return!0;return!1}return _e.equals(ee)}function Ce(_e,ee){let De=0,Te=0;for(;De<_e.length&&Te{this._onDidOptionChange.fire(Y),!Y&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(Y=>{this._onPreserveCaseKeyDown.fire(Y)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;const B=[this.preserveCase.domNode];this.onkeydown(this.domNode,Y=>{if(Y.equals(15)||Y.equals(17)||Y.equals(9)){const X=B.indexOf(this.domNode.ownerDocument.activeElement);if(X>=0){let ie=-1;Y.equals(17)?ie=(X+1)%B.length:Y.equals(15)&&(X===0?ie=B.length-1:ie=X-1),Y.equals(9)?(B[X].blur(),this.inputBox.focus()):ie>=0&&B[ie].focus(),F.fs.stop(Y,!0)}}});const V=document.createElement("div");V.className="controls",V.style.display=this._showOptionButtons?"block":"none",V.appendChild(this.preserveCase.domNode),this.domNode.appendChild(V),G?.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,Y=>this._onKeyDown.fire(Y)),this.onkeyup(this.inputBox.inputElement,Y=>this._onKeyUp.fire(Y)),this.oninput(this.inputBox.inputElement,Y=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,Y=>this._onMouseDown.fire(Y))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(G){G?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(G){this.preserveCase.checked=G}focusOnPreserve(){this.preserveCase.focus()}validate(){var G;(G=this.inputBox)===null||G===void 0||G.validate()}set width(G){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=G+"px"}dispose(){super.dispose()}}var n=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js"),c=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),m=function(K,G,P,A){var T=arguments.length,E=T<3?G:A===null?A=Object.getOwnPropertyDescriptor(G,P):A,W;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(K,G,P,A);else for(var $=K.length-1;$>=0;$--)(W=K[$])&&(E=(T<3?W(E):T>3?W(G,P,E):W(G,P))||E);return T>3&&E&&Object.defineProperty(G,P,E),E},u=function(K,G){return function(P,A){G(P,A,K)}};const C=new n.N1("suggestWidgetVisible",!1,(0,I.kg)("suggestWidgetVisible","Whether suggestion are visible")),h="historyNavigationWidgetFocus",v="historyNavigationForwardsEnabled",p="historyNavigationBackwardsEnabled";let b;const O=[];function w(K,G){if(O.includes(G))throw new Error("Cannot register the same widget multiple times");O.push(G);const P=new c.Cm,A=new n.N1(h,!1).bindTo(K),T=new n.N1(v,!0).bindTo(K),E=new n.N1(p,!0).bindTo(K),W=()=>{A.set(!0),b=G},$=()=>{A.set(!1),b===G&&(b=void 0)};return(0,F.X7)(G.element)&&W(),P.add(G.onDidFocus(()=>W())),P.add(G.onDidBlur(()=>$())),P.add((0,c.s)(()=>{O.splice(O.indexOf(G),1),$()})),{historyNavigationForwardsEnablement:T,historyNavigationBackwardsEnablement:E,dispose(){P.dispose()}}}let j=class extends r.c{constructor(G,P,A,T){super(G,P,A);const E=this._register(T.createScoped(this.inputBox.element));this._register(w(E,this.inputBox))}};j=m([u(3,n.fN)],j);let U=class extends s{constructor(G,P,A,T,E=!1){super(G,P,E,A);const W=this._register(T.createScoped(this.inputBox.element));this._register(w(W,this.inputBox))}};U=m([u(3,n.fN)],U),i.f.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:n.M$.and(n.M$.has(h),n.M$.equals(p,!0),n.M$.not("isComposing"),C.isEqualTo(!1)),primary:16,secondary:[528],handler:K=>{b?.showPreviousValue()}}),i.f.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:n.M$.and(n.M$.has(h),n.M$.equals(v,!0),n.M$.not("isComposing"),C.isEqualTo(!1)),primary:18,secondary:[530],handler:K=>{b?.showNextValue()}})},"./node_modules/monaco-editor/esm/vs/platform/hover/browser/hover.js":function(pt,Me,e){e.d(Me,{TN:function(){return x},fO:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),L=function(f,d,a,s){var n=arguments.length,i=n<3?d:s===null?s=Object.getOwnPropertyDescriptor(d,a):s,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(f,d,a,s);else for(var m=f.length-1;m>=0;m--)(c=f[m])&&(i=(n<3?c(i):n>3?c(d,a,i):c(d,a))||i);return n>3&&i&&Object.defineProperty(d,a,i),i},g=function(f,d){return function(a,s){d(a,s,f)}};const x=(0,r.u1)("hoverService");let I=class extends F.jG{get delay(){return this.isInstantlyHovering()?0:this._delay}constructor(d,a,s={},n,i){super(),this.placement=d,this.instantHover=a,this.overrideOptions=s,this.configurationService=n,this.hoverService=i,this.lastHoverHideTime=0,this.timeLimit=200,this.hoverDisposables=this._register(new F.Cm),this._delay=this.configurationService.getValue("workbench.hover.delay"),this._register(this.configurationService.onDidChangeConfiguration(c=>{c.affectsConfiguration("workbench.hover.delay")&&(this._delay=this.configurationService.getValue("workbench.hover.delay"))}))}showHover(d,a){const s=typeof this.overrideOptions=="function"?this.overrideOptions(d,a):this.overrideOptions;this.hoverDisposables.clear();const n=d.target instanceof HTMLElement?[d.target]:d.target.targetElements;for(const c of n)this.hoverDisposables.add((0,M.b2)(c,"keydown",m=>{m.equals(9)&&this.hoverService.hideHover()}));const i=d.content instanceof HTMLElement?void 0:d.content.toString();return this.hoverService.showHover({...d,...s,persistence:{hideOnKeyDown:!0,...s.persistence},id:i,appearance:{...d.appearance,compact:!0,skipFadeInAnimation:this.isInstantlyHovering(),...s.appearance}},a)}isInstantlyHovering(){return this.instantHover&&Date.now()-this.lastHoverHideTimeL,r.serviceIds.set(L,g),g}},"./node_modules/monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js":function(pt,Me,e){e.d(Me,{a:function(){return r}});class r{constructor(...k){this._entries=new Map;for(const[M,L]of k)this.set(M,L)}set(k,M){const L=this._entries.get(k);return this._entries.set(k,M),L}get(k){return this._entries.get(k)}}},"./node_modules/monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js":function(pt,Me,e){e.d(Me,{F:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),F=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js");const k={JSONContribution:"base.contributions.json"};function M(x){return x.length>0&&x.charAt(x.length-1)==="#"?x.substring(0,x.length-1):x}class L{constructor(){this._onDidChangeSchema=new r.vl,this.schemasById={}}registerSchema(I,S){this.schemasById[M(I)]=S,this._onDidChangeSchema.fire(I)}notifySchemaChanged(I){this._onDidChangeSchema.fire(I)}}const g=new L;F.O.add(k.JSONContribution,g)},"./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js":function(pt,Me,e){e.d(Me,{b:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("keybindingService")},"./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js":function(pt,Me,e){e.d(Me,{f:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/keybindings.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),k=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js");class x{constructor(){this._coreKeybindings=new g.w,this._extensionKeybindings=[],this._cachedMergedKeybindings=null}static bindToCurrentPlatform(a){if(F.OS===1){if(a&&a.win)return a.win}else if(F.OS===2){if(a&&a.mac)return a.mac}else if(a&&a.linux)return a.linux;return a}registerKeybindingRule(a){const s=x.bindToCurrentPlatform(a),n=new L.Cm;if(s&&s.primary){const i=(0,r.Zv)(s.primary,F.OS);i&&n.add(this._registerDefaultKeybinding(i,a.id,a.args,a.weight,0,a.when))}if(s&&Array.isArray(s.secondary))for(let i=0,c=s.secondary.length;i{u(),this._cachedMergedKeybindings=null})}getDefaultKeybindings(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=Array.from(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(f)),this._cachedMergedKeybindings.slice(0)}}const I=new x,S={EditorModes:"platform.keybindingsRegistry"};M.O.add(S.EditorModes,I);function f(d,a){if(d.weight1!==a.weight1)return d.weight1-a.weight1;if(d.command&&a.command){if(d.commanda.command)return 1}return d.weight2-a.weight2}},"./node_modules/monaco-editor/esm/vs/platform/label/common/label.js":function(pt,Me,e){e.d(Me,{L:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("labelService")},"./node_modules/monaco-editor/esm/vs/platform/list/browser/listService.js":function(pt,Me,e){e.d(Me,{PE:function(){return Mt},aG:function(){return Ht},er:function(){return Ft},YD:function(){return _n},zL:function(){return ut},Nf:function(){return yi},cH:function(){return fi}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),g=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/list/listWidget.js");class x{get templateId(){return this.renderer.templateId}constructor(xe,st){this.renderer=xe,this.modelProvider=st}renderTemplate(xe){return{data:this.renderer.renderTemplate(xe),disposable:L.jG.None}}renderElement(xe,st,Wt,rn){var hn;if((hn=Wt.disposable)===null||hn===void 0||hn.dispose(),!Wt.data)return;const Dn=this.modelProvider();if(Dn.isResolved(xe))return this.renderer.renderElement(Dn.get(xe),xe,Wt.data,rn);const On=new k.Q,Bn=Dn.resolve(xe,On.token);Wt.disposable={dispose:()=>On.cancel()},this.renderer.renderPlaceholder(xe,Wt.data),Bn.then(oi=>this.renderer.renderElement(oi,xe,Wt.data,rn))}disposeTemplate(xe){xe.disposable&&(xe.disposable.dispose(),xe.disposable=void 0),xe.data&&(this.renderer.disposeTemplate(xe.data),xe.data=void 0)}}class I{constructor(xe,st){this.modelProvider=xe,this.accessibilityProvider=st}getWidgetAriaLabel(){return this.accessibilityProvider.getWidgetAriaLabel()}getAriaLabel(xe){const st=this.modelProvider();return st.isResolved(xe)?this.accessibilityProvider.getAriaLabel(st.get(xe)):null}}function S(en,xe){return{...xe,accessibilityProvider:xe.accessibilityProvider&&new I(en,xe.accessibilityProvider)}}class f{constructor(xe,st,Wt,rn,hn={}){const Dn=()=>this.model,On=rn.map(Bn=>new x(Bn,Dn));this.list=new g.B8(xe,st,Wt,On,S(Dn,hn))}updateOptions(xe){this.list.updateOptions(xe)}getHTMLElement(){return this.list.getHTMLElement()}get onDidFocus(){return this.list.onDidFocus}get widget(){return this.list}get onDidDispose(){return this.list.onDidDispose}get onMouseDblClick(){return M.Jh.map(this.list.onMouseDblClick,({element:xe,index:st,browserEvent:Wt})=>({element:xe===void 0?void 0:this._model.get(xe),index:st,browserEvent:Wt}))}get onPointer(){return M.Jh.map(this.list.onPointer,({element:xe,index:st,browserEvent:Wt})=>({element:xe===void 0?void 0:this._model.get(xe),index:st,browserEvent:Wt}))}get onDidChangeSelection(){return M.Jh.map(this.list.onDidChangeSelection,({elements:xe,indexes:st,browserEvent:Wt})=>({elements:xe.map(rn=>this._model.get(rn)),indexes:st,browserEvent:Wt}))}get model(){return this._model}set model(xe){this._model=xe,this.list.splice(0,this.list.length,(0,F.y1)(xe.length))}getFocus(){return this.list.getFocus()}getSelection(){return this.list.getSelection()}getSelectedElements(){return this.getSelection().map(xe=>this.model.get(xe))}style(xe){this.list.style(xe)}dispose(){this.list.dispose()}}var d=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),a=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js"),s=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/splitview/splitview.js");class n{constructor(xe,st,Wt){this.columns=xe,this.getColumnSize=Wt,this.templateId=n.TemplateId,this.renderedTemplates=new Set;const rn=new Map(st.map(hn=>[hn.templateId,hn]));this.renderers=[];for(const hn of xe){const Dn=rn.get(hn.templateId);if(!Dn)throw new Error(`Table cell renderer for template id ${hn.templateId} not found.`);this.renderers.push(Dn)}}renderTemplate(xe){const st=(0,r.BC)(xe,(0,r.$)(".monaco-table-tr")),Wt=[],rn=[];for(let Dn=0;Dnthis.disposables.add(new c($n,ti))),Bn={size:On.reduce(($n,ti)=>$n+ti.column.weight,0),views:On.map($n=>({size:$n.column.weight,view:$n}))};this.splitview=this.disposables.add(new s.U(this.domNode,{orientation:1,scrollbarVisibility:2,getSashOrthogonalSize:()=>this.cachedHeight,descriptor:Bn})),this.splitview.el.style.height=`${Wt.headerRowHeight}px`,this.splitview.el.style.lineHeight=`${Wt.headerRowHeight}px`;const oi=new n(rn,hn,$n=>this.splitview.getViewSize($n));this.list=this.disposables.add(new g.B8(xe,this.domNode,i(Wt),[oi],Dn)),M.Jh.any(...On.map($n=>$n.onDidLayout))(([$n,ti])=>oi.layoutColumn($n,ti),null,this.disposables),this.splitview.onDidSashReset($n=>{const ti=rn.reduce((Un,Rn)=>Un+Rn.weight,0),Jn=rn[$n].weight/ti*this.cachedWidth;this.splitview.resizeView($n,Jn)},null,this.disposables),this.styleElement=(0,r.li)(this.domNode),this.style(g.bG)}updateOptions(xe){this.list.updateOptions(xe)}splice(xe,st,Wt=[]){this.list.splice(xe,st,Wt)}getHTMLElement(){return this.domNode}style(xe){const st=[];st.push(`.monaco-table.${this.domId} > .monaco-split-view2 .monaco-sash.vertical::before { top: ${this.virtualDelegate.headerRowHeight+1}px; height: calc(100% - ${this.virtualDelegate.headerRowHeight}px); }`),this.styleElement.textContent=st.join(` `),this.list.style(xe)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}m.InstanceCount=0;var u=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/abstractTree.js"),C=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/list/listView.js"),h=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/indexTreeModel.js"),v=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/tree.js"),p=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js");class b{constructor(xe,st,Wt={}){this.user=xe,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new h.G6(xe,st,null,Wt),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,Wt.sorter&&(this.sorter={compare(rn,hn){return Wt.sorter.compare(rn.element,hn.element)}}),this.identityProvider=Wt.identityProvider}setChildren(xe,st=p.f.empty(),Wt={}){const rn=this.getElementLocation(xe);this._setChildren(rn,this.preserveCollapseState(st),Wt)}_setChildren(xe,st=p.f.empty(),Wt){const rn=new Set,hn=new Set,Dn=Bn=>{var oi;if(Bn.element===null)return;const $n=Bn;if(rn.add($n.element),this.nodes.set($n.element,$n),this.identityProvider){const ti=this.identityProvider.getId($n.element).toString();hn.add(ti),this.nodesByIdentity.set(ti,$n)}(oi=Wt.onDidCreateNode)===null||oi===void 0||oi.call(Wt,$n)},On=Bn=>{var oi;if(Bn.element===null)return;const $n=Bn;if(rn.has($n.element)||this.nodes.delete($n.element),this.identityProvider){const ti=this.identityProvider.getId($n.element).toString();hn.has(ti)||this.nodesByIdentity.delete(ti)}(oi=Wt.onDidDeleteNode)===null||oi===void 0||oi.call(Wt,$n)};this.model.splice([...xe,0],Number.MAX_VALUE,st,{...Wt,onDidCreateNode:Dn,onDidDeleteNode:On})}preserveCollapseState(xe=p.f.empty()){return this.sorter&&(xe=[...xe].sort(this.sorter.compare.bind(this.sorter))),p.f.map(xe,st=>{let Wt=this.nodes.get(st.element);if(!Wt&&this.identityProvider){const Dn=this.identityProvider.getId(st.element).toString();Wt=this.nodesByIdentity.get(Dn)}if(!Wt){let Dn;return typeof st.collapsed>"u"?Dn=void 0:st.collapsed===v.Yo.Collapsed||st.collapsed===v.Yo.PreserveOrCollapsed?Dn=!0:st.collapsed===v.Yo.Expanded||st.collapsed===v.Yo.PreserveOrExpanded?Dn=!1:Dn=!!st.collapsed,{...st,children:this.preserveCollapseState(st.children),collapsed:Dn}}const rn=typeof st.collapsible=="boolean"?st.collapsible:Wt.collapsible;let hn;return typeof st.collapsed>"u"||st.collapsed===v.Yo.PreserveOrCollapsed||st.collapsed===v.Yo.PreserveOrExpanded?hn=Wt.collapsed:st.collapsed===v.Yo.Collapsed?hn=!0:st.collapsed===v.Yo.Expanded?hn=!1:hn=!!st.collapsed,{...st,collapsible:rn,collapsed:hn,children:this.preserveCollapseState(st.children)}})}rerender(xe){const st=this.getElementLocation(xe);this.model.rerender(st)}getFirstElementChild(xe=null){const st=this.getElementLocation(xe);return this.model.getFirstElementChild(st)}has(xe){return this.nodes.has(xe)}getListIndex(xe){const st=this.getElementLocation(xe);return this.model.getListIndex(st)}getListRenderCount(xe){const st=this.getElementLocation(xe);return this.model.getListRenderCount(st)}isCollapsible(xe){const st=this.getElementLocation(xe);return this.model.isCollapsible(st)}setCollapsible(xe,st){const Wt=this.getElementLocation(xe);return this.model.setCollapsible(Wt,st)}isCollapsed(xe){const st=this.getElementLocation(xe);return this.model.isCollapsed(st)}setCollapsed(xe,st,Wt){const rn=this.getElementLocation(xe);return this.model.setCollapsed(rn,st,Wt)}expandTo(xe){const st=this.getElementLocation(xe);this.model.expandTo(st)}refilter(){this.model.refilter()}getNode(xe=null){if(xe===null)return this.model.getNode(this.model.rootRef);const st=this.nodes.get(xe);if(!st)throw new v.jh(this.user,`Tree element not found: ${xe}`);return st}getNodeLocation(xe){return xe.element}getParentNodeLocation(xe){if(xe===null)throw new v.jh(this.user,"Invalid getParentNodeLocation call");const st=this.nodes.get(xe);if(!st)throw new v.jh(this.user,`Tree element not found: ${xe}`);const Wt=this.model.getNodeLocation(st),rn=this.model.getParentNodeLocation(Wt);return this.model.getNode(rn).element}getElementLocation(xe){if(xe===null)return[];const st=this.nodes.get(xe);if(!st)throw new v.jh(this.user,`Tree element not found: ${xe}`);return this.model.getNodeLocation(st)}}function O(en){const xe=[en.element],st=en.incompressible||!1;return{element:{elements:xe,incompressible:st},children:p.f.map(p.f.from(en.children),O),collapsible:en.collapsible,collapsed:en.collapsed}}function w(en){const xe=[en.element],st=en.incompressible||!1;let Wt,rn;for(;[rn,Wt]=p.f.consume(p.f.from(en.children),2),!(rn.length!==1||rn[0].incompressible);)en=rn[0],xe.push(en.element);return{element:{elements:xe,incompressible:st},children:p.f.map(p.f.concat(rn,Wt),w),collapsible:en.collapsible,collapsed:en.collapsed}}function j(en,xe=0){let st;return xej(Wt,0)),xe===0&&en.element.incompressible?{element:en.element.elements[xe],children:st,incompressible:!0,collapsible:en.collapsible,collapsed:en.collapsed}:{element:en.element.elements[xe],children:st,collapsible:en.collapsible,collapsed:en.collapsed}}function U(en){return j(en,0)}function K(en,xe,st){return en.element===xe?{...en,children:st}:{...en,children:p.f.map(p.f.from(en.children),Wt=>K(Wt,xe,st))}}const G=en=>({getId(xe){return xe.elements.map(st=>en.getId(st).toString()).join("\0")}});class P{get onDidSplice(){return this.model.onDidSplice}get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}get onDidChangeRenderNodeCount(){return this.model.onDidChangeRenderNodeCount}constructor(xe,st,Wt={}){this.user=xe,this.rootRef=null,this.nodes=new Map,this.model=new b(xe,st,Wt),this.enabled=typeof Wt.compressionEnabled>"u"?!0:Wt.compressionEnabled,this.identityProvider=Wt.identityProvider}setChildren(xe,st=p.f.empty(),Wt){const rn=Wt.diffIdentityProvider&&G(Wt.diffIdentityProvider);if(xe===null){const Rn=p.f.map(st,this.enabled?w:O);this._setChildren(null,Rn,{diffIdentityProvider:rn,diffDepth:1/0});return}const hn=this.nodes.get(xe);if(!hn)throw new v.jh(this.user,"Unknown compressed tree node");const Dn=this.model.getNode(hn),On=this.model.getParentNodeLocation(hn),Bn=this.model.getNode(On),oi=U(Dn),$n=K(oi,xe,st),ti=(this.enabled?w:O)($n),Jn=Wt.diffIdentityProvider?(Rn,cn)=>Wt.diffIdentityProvider.getId(Rn)===Wt.diffIdentityProvider.getId(cn):void 0;if((0,F.aI)(ti.element.elements,Dn.element.elements,Jn)){this._setChildren(hn,ti.children||p.f.empty(),{diffIdentityProvider:rn,diffDepth:1});return}const Un=Bn.children.map(Rn=>Rn===Dn?ti:Rn);this._setChildren(Bn.element,Un,{diffIdentityProvider:rn,diffDepth:Dn.depth-Bn.depth})}isCompressionEnabled(){return this.enabled}setCompressionEnabled(xe){if(xe===this.enabled)return;this.enabled=xe;const Wt=this.model.getNode().children,rn=p.f.map(Wt,U),hn=p.f.map(rn,xe?w:O);this._setChildren(null,hn,{diffIdentityProvider:this.identityProvider,diffDepth:1/0})}_setChildren(xe,st,Wt){const rn=new Set,hn=On=>{for(const Bn of On.element.elements)rn.add(Bn),this.nodes.set(Bn,On.element)},Dn=On=>{for(const Bn of On.element.elements)rn.has(Bn)||this.nodes.delete(Bn)};this.model.setChildren(xe,st,{...Wt,onDidCreateNode:hn,onDidDeleteNode:Dn})}has(xe){return this.nodes.has(xe)}getListIndex(xe){const st=this.getCompressedNode(xe);return this.model.getListIndex(st)}getListRenderCount(xe){const st=this.getCompressedNode(xe);return this.model.getListRenderCount(st)}getNode(xe){if(typeof xe>"u")return this.model.getNode();const st=this.getCompressedNode(xe);return this.model.getNode(st)}getNodeLocation(xe){const st=this.model.getNodeLocation(xe);return st===null?null:st.elements[st.elements.length-1]}getParentNodeLocation(xe){const st=this.getCompressedNode(xe),Wt=this.model.getParentNodeLocation(st);return Wt===null?null:Wt.elements[Wt.elements.length-1]}getFirstElementChild(xe){const st=this.getCompressedNode(xe);return this.model.getFirstElementChild(st)}isCollapsible(xe){const st=this.getCompressedNode(xe);return this.model.isCollapsible(st)}setCollapsible(xe,st){const Wt=this.getCompressedNode(xe);return this.model.setCollapsible(Wt,st)}isCollapsed(xe){const st=this.getCompressedNode(xe);return this.model.isCollapsed(st)}setCollapsed(xe,st,Wt){const rn=this.getCompressedNode(xe);return this.model.setCollapsed(rn,st,Wt)}expandTo(xe){const st=this.getCompressedNode(xe);this.model.expandTo(st)}rerender(xe){const st=this.getCompressedNode(xe);this.model.rerender(st)}refilter(){this.model.refilter()}getCompressedNode(xe){if(xe===null)return null;const st=this.nodes.get(xe);if(!st)throw new v.jh(this.user,`Tree element not found: ${xe}`);return st}}const A=en=>en[en.length-1];class T{get element(){return this.node.element===null?null:this.unwrapper(this.node.element)}get children(){return this.node.children.map(xe=>new T(this.unwrapper,xe))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(xe,st){this.unwrapper=xe,this.node=st}}function E(en,xe){return{splice(st,Wt,rn){xe.splice(st,Wt,rn.map(hn=>en.map(hn)))},updateElementHeight(st,Wt){xe.updateElementHeight(st,Wt)}}}function W(en,xe){return{...xe,identityProvider:xe.identityProvider&&{getId(st){return xe.identityProvider.getId(en(st))}},sorter:xe.sorter&&{compare(st,Wt){return xe.sorter.compare(st.elements[0],Wt.elements[0])}},filter:xe.filter&&{filter(st,Wt){return xe.filter.filter(en(st),Wt)}}}}class ${get onDidSplice(){return M.Jh.map(this.model.onDidSplice,({insertedNodes:xe,deletedNodes:st})=>({insertedNodes:xe.map(Wt=>this.nodeMapper.map(Wt)),deletedNodes:st.map(Wt=>this.nodeMapper.map(Wt))}))}get onDidChangeCollapseState(){return M.Jh.map(this.model.onDidChangeCollapseState,({node:xe,deep:st})=>({node:this.nodeMapper.map(xe),deep:st}))}get onDidChangeRenderNodeCount(){return M.Jh.map(this.model.onDidChangeRenderNodeCount,xe=>this.nodeMapper.map(xe))}constructor(xe,st,Wt={}){this.rootRef=null,this.elementMapper=Wt.elementMapper||A;const rn=hn=>this.elementMapper(hn.elements);this.nodeMapper=new v.y2(hn=>new T(rn,hn)),this.model=new P(xe,E(this.nodeMapper,st),W(rn,Wt))}setChildren(xe,st=p.f.empty(),Wt={}){this.model.setChildren(xe,st,Wt)}isCompressionEnabled(){return this.model.isCompressionEnabled()}setCompressionEnabled(xe){this.model.setCompressionEnabled(xe)}has(xe){return this.model.has(xe)}getListIndex(xe){return this.model.getListIndex(xe)}getListRenderCount(xe){return this.model.getListRenderCount(xe)}getNode(xe){return this.nodeMapper.map(this.model.getNode(xe))}getNodeLocation(xe){return xe.element}getParentNodeLocation(xe){return this.model.getParentNodeLocation(xe)}getFirstElementChild(xe){const st=this.model.getFirstElementChild(xe);return st===null||typeof st>"u"?st:this.elementMapper(st.elements)}isCollapsible(xe){return this.model.isCollapsible(xe)}setCollapsible(xe,st){return this.model.setCollapsible(xe,st)}isCollapsed(xe){return this.model.isCollapsed(xe)}setCollapsed(xe,st,Wt){return this.model.setCollapsed(xe,st,Wt)}expandTo(xe){return this.model.expandTo(xe)}rerender(xe){return this.model.rerender(xe)}refilter(){return this.model.refilter()}getCompressedTreeNode(xe=null){return this.model.getNode(xe)}}var z=e("./node_modules/monaco-editor/esm/vs/base/common/decorators.js"),J=function(en,xe,st,Wt){var rn=arguments.length,hn=rn<3?xe:Wt===null?Wt=Object.getOwnPropertyDescriptor(xe,st):Wt,Dn;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")hn=Reflect.decorate(en,xe,st,Wt);else for(var On=en.length-1;On>=0;On--)(Dn=en[On])&&(hn=(rn<3?Dn(hn):rn>3?Dn(xe,st,hn):Dn(xe,st))||hn);return rn>3&&hn&&Object.defineProperty(xe,st,hn),hn};class B extends u.DO{get onDidChangeCollapseState(){return this.model.onDidChangeCollapseState}constructor(xe,st,Wt,rn,hn={}){super(xe,st,Wt,rn,hn),this.user=xe}setChildren(xe,st=p.f.empty(),Wt){this.model.setChildren(xe,st,Wt)}rerender(xe){if(xe===void 0){this.view.rerender();return}this.model.rerender(xe)}hasElement(xe){return this.model.has(xe)}createModel(xe,st,Wt){return new b(xe,st,Wt)}}class V{get compressedTreeNodeProvider(){return this._compressedTreeNodeProvider()}constructor(xe,st,Wt){this._compressedTreeNodeProvider=xe,this.stickyScrollDelegate=st,this.renderer=Wt,this.templateId=Wt.templateId,Wt.onDidChangeTwistieState&&(this.onDidChangeTwistieState=Wt.onDidChangeTwistieState)}renderTemplate(xe){return{compressedTreeNode:void 0,data:this.renderer.renderTemplate(xe)}}renderElement(xe,st,Wt,rn){let hn=this.stickyScrollDelegate.getCompressedNode(xe);hn||(hn=this.compressedTreeNodeProvider.getCompressedTreeNode(xe.element)),hn.element.elements.length===1?(Wt.compressedTreeNode=void 0,this.renderer.renderElement(xe,st,Wt.data,rn)):(Wt.compressedTreeNode=hn,this.renderer.renderCompressedElements(hn,st,Wt.data,rn))}disposeElement(xe,st,Wt,rn){var hn,Dn,On,Bn;Wt.compressedTreeNode?(Dn=(hn=this.renderer).disposeCompressedElements)===null||Dn===void 0||Dn.call(hn,Wt.compressedTreeNode,st,Wt.data,rn):(Bn=(On=this.renderer).disposeElement)===null||Bn===void 0||Bn.call(On,xe,st,Wt.data,rn)}disposeTemplate(xe){this.renderer.disposeTemplate(xe.data)}renderTwistie(xe,st){return this.renderer.renderTwistie?this.renderer.renderTwistie(xe,st):!1}}J([z.B],V.prototype,"compressedTreeNodeProvider",null);class Y{constructor(xe){this.modelProvider=xe,this.compressedStickyNodes=new Map}getCompressedNode(xe){return this.compressedStickyNodes.get(xe)}constrainStickyScrollNodes(xe,st,Wt){if(this.compressedStickyNodes.clear(),xe.length===0)return[];for(let rn=0;rnWt||rn>=st-1&&stthis,On=new Y(()=>this.model),Bn=rn.map(oi=>new V(Dn,On,oi));super(xe,st,Wt,Bn,{...X(Dn,hn),stickyScrollDelegate:On})}setChildren(xe,st=p.f.empty(),Wt){this.model.setChildren(xe,st,Wt)}createModel(xe,st,Wt){return new $(xe,st,Wt)}updateOptions(xe={}){super.updateOptions(xe),typeof xe.compressionEnabled<"u"&&this.model.setCompressionEnabled(xe.compressionEnabled)}getCompressedTreeNode(xe=null){return this.model.getCompressedTreeNode(xe)}}var re=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),te=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),D=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),he=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),ve=e("./node_modules/monaco-editor/esm/vs/base/common/types.js");function Ce(en){return{...en,children:[],refreshPromise:void 0,stale:!0,slow:!1,forceExpanded:!1}}function Pe(en,xe){return xe.parent?xe.parent===en?!0:Pe(en,xe.parent):!1}function _e(en,xe){return en===xe||Pe(en,xe)||Pe(xe,en)}class ee{get element(){return this.node.element.element}get children(){return this.node.children.map(xe=>new ee(xe))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(xe){this.node=xe}}class De{constructor(xe,st,Wt){this.renderer=xe,this.nodeMapper=st,this.onDidChangeTwistieState=Wt,this.renderedNodes=new Map,this.templateId=xe.templateId}renderTemplate(xe){return{templateData:this.renderer.renderTemplate(xe)}}renderElement(xe,st,Wt,rn){this.renderer.renderElement(this.nodeMapper.map(xe),st,Wt.templateData,rn)}renderTwistie(xe,st){return xe.slow?(st.classList.add(...D.L.asClassNameArray(te.W.treeItemLoading)),!0):(st.classList.remove(...D.L.asClassNameArray(te.W.treeItemLoading)),!1)}disposeElement(xe,st,Wt,rn){var hn,Dn;(Dn=(hn=this.renderer).disposeElement)===null||Dn===void 0||Dn.call(hn,this.nodeMapper.map(xe),st,Wt.templateData,rn)}disposeTemplate(xe){this.renderer.disposeTemplate(xe.templateData)}dispose(){this.renderedNodes.clear()}}function Te(en){return{browserEvent:en.browserEvent,elements:en.elements.map(xe=>xe.element)}}function He(en){return{browserEvent:en.browserEvent,element:en.element&&en.element.element,target:en.target}}class qe extends C.ur{constructor(xe){super(xe.elements.map(st=>st.element)),this.data=xe}}function Qe(en){return en instanceof C.ur?new qe(en):en}class q{constructor(xe){this.dnd=xe}getDragURI(xe){return this.dnd.getDragURI(xe.element)}getDragLabel(xe,st){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(xe.map(Wt=>Wt.element),st)}onDragStart(xe,st){var Wt,rn;(rn=(Wt=this.dnd).onDragStart)===null||rn===void 0||rn.call(Wt,Qe(xe),st)}onDragOver(xe,st,Wt,rn,hn,Dn=!0){return this.dnd.onDragOver(Qe(xe),st&&st.element,Wt,rn,hn)}drop(xe,st,Wt,rn,hn){this.dnd.drop(Qe(xe),st&&st.element,Wt,rn,hn)}onDragEnd(xe){var st,Wt;(Wt=(st=this.dnd).onDragEnd)===null||Wt===void 0||Wt.call(st,xe)}dispose(){this.dnd.dispose()}}function ye(en){return en&&{...en,collapseByDefault:!0,identityProvider:en.identityProvider&&{getId(xe){return en.identityProvider.getId(xe.element)}},dnd:en.dnd&&new q(en.dnd),multipleSelectionController:en.multipleSelectionController&&{isSelectionSingleChangeEvent(xe){return en.multipleSelectionController.isSelectionSingleChangeEvent({...xe,element:xe.element})},isSelectionRangeChangeEvent(xe){return en.multipleSelectionController.isSelectionRangeChangeEvent({...xe,element:xe.element})}},accessibilityProvider:en.accessibilityProvider&&{...en.accessibilityProvider,getPosInSet:void 0,getSetSize:void 0,getRole:en.accessibilityProvider.getRole?xe=>en.accessibilityProvider.getRole(xe.element):()=>"treeitem",isChecked:en.accessibilityProvider.isChecked?xe=>{var st;return!!(!((st=en.accessibilityProvider)===null||st===void 0)&&st.isChecked(xe.element))}:void 0,getAriaLabel(xe){return en.accessibilityProvider.getAriaLabel(xe.element)},getWidgetAriaLabel(){return en.accessibilityProvider.getWidgetAriaLabel()},getWidgetRole:en.accessibilityProvider.getWidgetRole?()=>en.accessibilityProvider.getWidgetRole():()=>"tree",getAriaLevel:en.accessibilityProvider.getAriaLevel&&(xe=>en.accessibilityProvider.getAriaLevel(xe.element)),getActiveDescendantId:en.accessibilityProvider.getActiveDescendantId&&(xe=>en.accessibilityProvider.getActiveDescendantId(xe.element))},filter:en.filter&&{filter(xe,st){return en.filter.filter(xe.element,st)}},keyboardNavigationLabelProvider:en.keyboardNavigationLabelProvider&&{...en.keyboardNavigationLabelProvider,getKeyboardNavigationLabel(xe){return en.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(xe.element)}},sorter:void 0,expandOnlyOnTwistieClick:typeof en.expandOnlyOnTwistieClick>"u"?void 0:typeof en.expandOnlyOnTwistieClick!="function"?en.expandOnlyOnTwistieClick:xe=>en.expandOnlyOnTwistieClick(xe.element),defaultFindVisibility:xe=>xe.hasChildren&&xe.stale?1:typeof en.defaultFindVisibility=="number"?en.defaultFindVisibility:typeof en.defaultFindVisibility>"u"?2:en.defaultFindVisibility(xe.element)}}function ge(en,xe){xe(en),en.children.forEach(st=>ge(st,xe))}class be{get onDidScroll(){return this.tree.onDidScroll}get onDidChangeFocus(){return M.Jh.map(this.tree.onDidChangeFocus,Te)}get onDidChangeSelection(){return M.Jh.map(this.tree.onDidChangeSelection,Te)}get onMouseDblClick(){return M.Jh.map(this.tree.onMouseDblClick,He)}get onPointer(){return M.Jh.map(this.tree.onPointer,He)}get onDidFocus(){return this.tree.onDidFocus}get onDidChangeModel(){return this.tree.onDidChangeModel}get onDidChangeCollapseState(){return this.tree.onDidChangeCollapseState}get onDidChangeFindOpenState(){return this.tree.onDidChangeFindOpenState}get onDidChangeStickyScrollFocused(){return this.tree.onDidChangeStickyScrollFocused}get onDidDispose(){return this.tree.onDidDispose}constructor(xe,st,Wt,rn,hn,Dn={}){this.user=xe,this.dataSource=hn,this.nodes=new Map,this.subTreeRefreshPromises=new Map,this.refreshPromises=new Map,this._onDidRender=new M.vl,this._onDidChangeNodeSlowState=new M.vl,this.nodeMapper=new v.y2(On=>new ee(On)),this.disposables=new L.Cm,this.identityProvider=Dn.identityProvider,this.autoExpandSingleChildren=typeof Dn.autoExpandSingleChildren>"u"?!1:Dn.autoExpandSingleChildren,this.sorter=Dn.sorter,this.getDefaultCollapseState=On=>Dn.collapseByDefault?Dn.collapseByDefault(On)?v.Yo.PreserveOrCollapsed:v.Yo.PreserveOrExpanded:void 0,this.tree=this.createTree(xe,st,Wt,rn,Dn),this.onDidChangeFindMode=this.tree.onDidChangeFindMode,this.onDidChangeFindMatchType=this.tree.onDidChangeFindMatchType,this.root=Ce({element:void 0,parent:null,hasChildren:!0,defaultCollapseState:void 0}),this.identityProvider&&(this.root={...this.root,id:null}),this.nodes.set(null,this.root),this.tree.onDidChangeCollapseState(this._onDidChangeCollapseState,this,this.disposables)}createTree(xe,st,Wt,rn,hn){const Dn=new u.w0(Wt),On=rn.map(oi=>new De(oi,this.nodeMapper,this._onDidChangeNodeSlowState.event)),Bn=ye(hn)||{};return new B(xe,st,Dn,On,Bn)}updateOptions(xe={}){this.tree.updateOptions(xe)}getHTMLElement(){return this.tree.getHTMLElement()}get scrollTop(){return this.tree.scrollTop}set scrollTop(xe){this.tree.scrollTop=xe}get scrollHeight(){return this.tree.scrollHeight}get renderHeight(){return this.tree.renderHeight}domFocus(){this.tree.domFocus()}layout(xe,st){this.tree.layout(xe,st)}style(xe){this.tree.style(xe)}getInput(){return this.root.element}async setInput(xe,st){this.refreshPromises.forEach(rn=>rn.cancel()),this.refreshPromises.clear(),this.root.element=xe;const Wt=st&&{viewState:st,focus:[],selection:[]};await this._updateChildren(xe,!0,!1,Wt),Wt&&(this.tree.setFocus(Wt.focus),this.tree.setSelection(Wt.selection)),st&&typeof st.scrollTop=="number"&&(this.scrollTop=st.scrollTop)}async _updateChildren(xe=this.root.element,st=!0,Wt=!1,rn,hn){if(typeof this.root.element>"u")throw new v.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await M.Jh.toPromise(this._onDidRender.event));const Dn=this.getDataNode(xe);if(await this.refreshAndRenderNode(Dn,st,rn,hn),Wt)try{this.tree.rerender(Dn)}catch{}}rerender(xe){if(xe===void 0||xe===this.root.element){this.tree.rerender();return}const st=this.getDataNode(xe);this.tree.rerender(st)}getNode(xe=this.root.element){const st=this.getDataNode(xe),Wt=this.tree.getNode(st===this.root?null:st);return this.nodeMapper.map(Wt)}collapse(xe,st=!1){const Wt=this.getDataNode(xe);return this.tree.collapse(Wt===this.root?null:Wt,st)}async expand(xe,st=!1){if(typeof this.root.element>"u")throw new v.jh(this.user,"Tree input not set");this.root.refreshPromise&&(await this.root.refreshPromise,await M.Jh.toPromise(this._onDidRender.event));const Wt=this.getDataNode(xe);if(this.tree.hasElement(Wt)&&!this.tree.isCollapsible(Wt)||(Wt.refreshPromise&&(await this.root.refreshPromise,await M.Jh.toPromise(this._onDidRender.event)),Wt!==this.root&&!Wt.refreshPromise&&!this.tree.isCollapsed(Wt)))return!1;const rn=this.tree.expand(Wt===this.root?null:Wt,st);return Wt.refreshPromise&&(await this.root.refreshPromise,await M.Jh.toPromise(this._onDidRender.event)),rn}setSelection(xe,st){const Wt=xe.map(rn=>this.getDataNode(rn));this.tree.setSelection(Wt,st)}getSelection(){return this.tree.getSelection().map(st=>st.element)}setFocus(xe,st){const Wt=xe.map(rn=>this.getDataNode(rn));this.tree.setFocus(Wt,st)}getFocus(){return this.tree.getFocus().map(st=>st.element)}reveal(xe,st){this.tree.reveal(this.getDataNode(xe),st)}getParentElement(xe){const st=this.tree.getParentElement(this.getDataNode(xe));return st&&st.element}getFirstElementChild(xe=this.root.element){const st=this.getDataNode(xe),Wt=this.tree.getFirstElementChild(st===this.root?null:st);return Wt&&Wt.element}getDataNode(xe){const st=this.nodes.get(xe===this.root.element?null:xe);if(!st)throw new v.jh(this.user,`Data tree node not found: ${xe}`);return st}async refreshAndRenderNode(xe,st,Wt,rn){await this.refreshNode(xe,st,Wt),!this.disposables.isDisposed&&this.render(xe,Wt,rn)}async refreshNode(xe,st,Wt){let rn;if(this.subTreeRefreshPromises.forEach((hn,Dn)=>{!rn&&_e(Dn,xe)&&(rn=hn.then(()=>this.refreshNode(xe,st,Wt)))}),rn)return rn;if(xe!==this.root&&this.tree.getNode(xe).collapsed){xe.hasChildren=!!this.dataSource.hasChildren(xe.element),xe.stale=!0,this.setChildren(xe,[],st,Wt);return}return this.doRefreshSubTree(xe,st,Wt)}async doRefreshSubTree(xe,st,Wt){let rn;xe.refreshPromise=new Promise(hn=>rn=hn),this.subTreeRefreshPromises.set(xe,xe.refreshPromise),xe.refreshPromise.finally(()=>{xe.refreshPromise=void 0,this.subTreeRefreshPromises.delete(xe)});try{const hn=await this.doRefreshNode(xe,st,Wt);xe.stale=!1,await re.HC.settled(hn.map(Dn=>this.doRefreshSubTree(Dn,st,Wt)))}finally{rn()}}async doRefreshNode(xe,st,Wt){xe.hasChildren=!!this.dataSource.hasChildren(xe.element);let rn;if(!xe.hasChildren)rn=Promise.resolve(p.f.empty());else{const hn=this.doGetChildren(xe);if((0,ve.xZ)(hn))rn=Promise.resolve(hn);else{const Dn=(0,re.wR)(800);Dn.then(()=>{xe.slow=!0,this._onDidChangeNodeSlowState.fire(xe)},On=>null),rn=hn.finally(()=>Dn.cancel())}}try{const hn=await rn;return this.setChildren(xe,hn,st,Wt)}catch(hn){if(xe!==this.root&&this.tree.hasElement(xe)&&this.tree.collapse(xe),(0,he.MB)(hn))return[];throw hn}finally{xe.slow&&(xe.slow=!1,this._onDidChangeNodeSlowState.fire(xe))}}doGetChildren(xe){let st=this.refreshPromises.get(xe);if(st)return st;const Wt=this.dataSource.getChildren(xe.element);return(0,ve.xZ)(Wt)?this.processChildren(Wt):(st=(0,re.SS)(async()=>this.processChildren(await Wt)),this.refreshPromises.set(xe,st),st.finally(()=>{this.refreshPromises.delete(xe)}))}_onDidChangeCollapseState({node:xe,deep:st}){xe.element!==null&&!xe.collapsed&&xe.element.stale&&(st?this.collapse(xe.element.element):this.refreshAndRenderNode(xe.element,!1).catch(he.dz))}setChildren(xe,st,Wt,rn){const hn=[...st];if(xe.children.length===0&&hn.length===0)return[];const Dn=new Map,On=new Map;for(const $n of xe.children)Dn.set($n.element,$n),this.identityProvider&&On.set($n.id,{node:$n,collapsed:this.tree.hasElement($n)&&this.tree.isCollapsed($n)});const Bn=[],oi=hn.map($n=>{const ti=!!this.dataSource.hasChildren($n);if(!this.identityProvider){const cn=Ce({element:$n,parent:xe,hasChildren:ti,defaultCollapseState:this.getDefaultCollapseState($n)});return ti&&cn.defaultCollapseState===v.Yo.PreserveOrExpanded&&Bn.push(cn),cn}const Jn=this.identityProvider.getId($n).toString(),Un=On.get(Jn);if(Un){const cn=Un.node;return Dn.delete(cn.element),this.nodes.delete(cn.element),this.nodes.set($n,cn),cn.element=$n,cn.hasChildren=ti,Wt?Un.collapsed?(cn.children.forEach($e=>ge($e,yt=>this.nodes.delete(yt.element))),cn.children.splice(0,cn.children.length),cn.stale=!0):Bn.push(cn):ti&&!Un.collapsed&&Bn.push(cn),cn}const Rn=Ce({element:$n,parent:xe,id:Jn,hasChildren:ti,defaultCollapseState:this.getDefaultCollapseState($n)});return rn&&rn.viewState.focus&&rn.viewState.focus.indexOf(Jn)>-1&&rn.focus.push(Rn),rn&&rn.viewState.selection&&rn.viewState.selection.indexOf(Jn)>-1&&rn.selection.push(Rn),(rn&&rn.viewState.expanded&&rn.viewState.expanded.indexOf(Jn)>-1||ti&&Rn.defaultCollapseState===v.Yo.PreserveOrExpanded)&&Bn.push(Rn),Rn});for(const $n of Dn.values())ge($n,ti=>this.nodes.delete(ti.element));for(const $n of oi)this.nodes.set($n.element,$n);return xe.children.splice(0,xe.children.length,...oi),xe!==this.root&&this.autoExpandSingleChildren&&oi.length===1&&Bn.length===0&&(oi[0].forceExpanded=!0,Bn.push(oi[0])),Bn}render(xe,st,Wt){const rn=xe.children.map(Dn=>this.asTreeElement(Dn,st)),hn=Wt&&{...Wt,diffIdentityProvider:Wt.diffIdentityProvider&&{getId(Dn){return Wt.diffIdentityProvider.getId(Dn.element)}}};this.tree.setChildren(xe===this.root?null:xe,rn,hn),xe!==this.root&&this.tree.setCollapsible(xe,xe.hasChildren),this._onDidRender.fire()}asTreeElement(xe,st){if(xe.stale)return{element:xe,collapsible:xe.hasChildren,collapsed:!0};let Wt;return st&&st.viewState.expanded&&xe.id&&st.viewState.expanded.indexOf(xe.id)>-1?Wt=!1:xe.forceExpanded?(Wt=!1,xe.forceExpanded=!1):Wt=xe.defaultCollapseState,{element:xe,children:xe.hasChildren?p.f.map(xe.children,rn=>this.asTreeElement(rn,st)):[],collapsible:xe.hasChildren,collapsed:Wt}}processChildren(xe){return this.sorter&&(xe=[...xe].sort(this.sorter.compare.bind(this.sorter))),xe}dispose(){this.disposables.dispose(),this.tree.dispose()}}class Se{get element(){return{elements:this.node.element.elements.map(xe=>xe.element),incompressible:this.node.element.incompressible}}get children(){return this.node.children.map(xe=>new Se(xe))}get depth(){return this.node.depth}get visibleChildrenCount(){return this.node.visibleChildrenCount}get visibleChildIndex(){return this.node.visibleChildIndex}get collapsible(){return this.node.collapsible}get collapsed(){return this.node.collapsed}get visible(){return this.node.visible}get filterData(){return this.node.filterData}constructor(xe){this.node=xe}}class ae{constructor(xe,st,Wt,rn){this.renderer=xe,this.nodeMapper=st,this.compressibleNodeMapperProvider=Wt,this.onDidChangeTwistieState=rn,this.renderedNodes=new Map,this.disposables=[],this.templateId=xe.templateId}renderTemplate(xe){return{templateData:this.renderer.renderTemplate(xe)}}renderElement(xe,st,Wt,rn){this.renderer.renderElement(this.nodeMapper.map(xe),st,Wt.templateData,rn)}renderCompressedElements(xe,st,Wt,rn){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(xe),st,Wt.templateData,rn)}renderTwistie(xe,st){return xe.slow?(st.classList.add(...D.L.asClassNameArray(te.W.treeItemLoading)),!0):(st.classList.remove(...D.L.asClassNameArray(te.W.treeItemLoading)),!1)}disposeElement(xe,st,Wt,rn){var hn,Dn;(Dn=(hn=this.renderer).disposeElement)===null||Dn===void 0||Dn.call(hn,this.nodeMapper.map(xe),st,Wt.templateData,rn)}disposeCompressedElements(xe,st,Wt,rn){var hn,Dn;(Dn=(hn=this.renderer).disposeCompressedElements)===null||Dn===void 0||Dn.call(hn,this.compressibleNodeMapperProvider().map(xe),st,Wt.templateData,rn)}disposeTemplate(xe){this.renderer.disposeTemplate(xe.templateData)}dispose(){this.renderedNodes.clear(),this.disposables=(0,L.AS)(this.disposables)}}function me(en){const xe=en&&ye(en);return xe&&{...xe,keyboardNavigationLabelProvider:xe.keyboardNavigationLabelProvider&&{...xe.keyboardNavigationLabelProvider,getCompressedNodeKeyboardNavigationLabel(st){return en.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(st.map(Wt=>Wt.element))}}}}class fe extends be{constructor(xe,st,Wt,rn,hn,Dn,On={}){super(xe,st,Wt,hn,Dn,On),this.compressionDelegate=rn,this.compressibleNodeMapper=new v.y2(Bn=>new Se(Bn)),this.filter=On.filter}createTree(xe,st,Wt,rn,hn){const Dn=new u.w0(Wt),On=rn.map(oi=>new ae(oi,this.nodeMapper,()=>this.compressibleNodeMapper,this._onDidChangeNodeSlowState.event)),Bn=me(hn)||{};return new ie(xe,st,Dn,On,Bn)}asTreeElement(xe,st){return{incompressible:this.compressionDelegate.isIncompressible(xe.element),...super.asTreeElement(xe,st)}}updateOptions(xe={}){this.tree.updateOptions(xe)}render(xe,st,Wt){if(!this.identityProvider)return super.render(xe,st);const rn=Un=>this.identityProvider.getId(Un).toString(),hn=Un=>{const Rn=new Set;for(const cn of Un){const $e=this.tree.getCompressedTreeNode(cn===this.root?null:cn);if($e.element)for(const yt of $e.element.elements)Rn.add(rn(yt.element))}return Rn},Dn=hn(this.tree.getSelection()),On=hn(this.tree.getFocus());super.render(xe,st,Wt);const Bn=this.getSelection();let oi=!1;const $n=this.getFocus();let ti=!1;const Jn=Un=>{const Rn=Un.element;if(Rn)for(let cn=0;cn{const Wt=this.filter.filter(st,1),rn=le(Wt);if(rn===2)throw new Error("Recursive tree visibility not supported in async data compressed trees");return rn===1})),super.processChildren(xe)}}function le(en){return typeof en=="boolean"?en?1:0:(0,h.iZ)(en)?(0,h.Mn)(en.visibility):(0,h.Mn)(en)}class oe extends u.DO{constructor(xe,st,Wt,rn,hn,Dn={}){super(xe,st,Wt,rn,Dn),this.user=xe,this.dataSource=hn,this.identityProvider=Dn.identityProvider}createModel(xe,st,Wt){return new b(xe,st,Wt)}}var ne=e("./node_modules/monaco-editor/esm/vs/nls.js"),de=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),Le=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js"),We=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),we=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkeys.js"),Ue=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),lt=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),Et=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),Kt=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),Zt=e("./node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js"),qt=function(en,xe,st,Wt){var rn=arguments.length,hn=rn<3?xe:Wt===null?Wt=Object.getOwnPropertyDescriptor(xe,st):Wt,Dn;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")hn=Reflect.decorate(en,xe,st,Wt);else for(var On=en.length-1;On>=0;On--)(Dn=en[On])&&(hn=(rn<3?Dn(hn):rn>3?Dn(xe,st,hn):Dn(xe,st))||hn);return rn>3&&hn&&Object.defineProperty(xe,st,hn),hn},tt=function(en,xe){return function(st,Wt){xe(st,Wt,en)}};const Mt=(0,lt.u1)("listService");class Ht{get lastFocusedList(){return this._lastFocusedWidget}constructor(){this.disposables=new L.Cm,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}setLastFocusedList(xe){var st,Wt;xe!==this._lastFocusedWidget&&((st=this._lastFocusedWidget)===null||st===void 0||st.getHTMLElement().classList.remove("last-focused"),this._lastFocusedWidget=xe,(Wt=this._lastFocusedWidget)===null||Wt===void 0||Wt.getHTMLElement().classList.add("last-focused"))}register(xe,st){if(this._hasCreatedStyleController||(this._hasCreatedStyleController=!0,new g.hb((0,r.li)(),"").style(Zt.IN)),this.lists.some(rn=>rn.widget===xe))throw new Error("Cannot register the same widget multiple times");const Wt={widget:xe,extraContextKeys:st};return this.lists.push(Wt),(0,r.X7)(xe.getHTMLElement())&&this.setLastFocusedList(xe),(0,L.qE)(xe.onDidFocus(()=>this.setLastFocusedList(xe)),(0,L.s)(()=>this.lists.splice(this.lists.indexOf(Wt),1)),xe.onDidDispose(()=>{this.lists=this.lists.filter(rn=>rn!==Wt),this._lastFocusedWidget===xe&&this.setLastFocusedList(void 0)}))}dispose(){this.disposables.dispose()}}const xt=new We.N1("listScrollAtBoundary","none"),Jt=We.M$.or(xt.isEqualTo("top"),xt.isEqualTo("both")),Nt=We.M$.or(xt.isEqualTo("bottom"),xt.isEqualTo("both")),Be=new We.N1("listFocus",!0),vt=new We.N1("treestickyScrollFocused",!1),Gt=new We.N1("listSupportsMultiselect",!0),_n=We.M$.and(Be,We.M$.not(we.aV),vt.negate()),Fn=new We.N1("listHasSelectionOrFocus",!1),An=new We.N1("listDoubleSelection",!1),Hn=new We.N1("listMultiSelection",!1),Kn=new We.N1("listSelectionNavigation",!1),mi=new We.N1("listSupportsFind",!0),yi=new We.N1("treeElementCanCollapse",!1),ri=new We.N1("treeElementHasParent",!1),fi=new We.N1("treeElementCanExpand",!1),Mi=new We.N1("treeElementHasChild",!1),xi=new We.N1("treeFindOpen",!1),ci="listTypeNavigationMode",Ii="listAutomaticKeyboardNavigation";function Si(en,xe){const st=en.createScoped(xe.getHTMLElement());return Be.bindTo(st),st}function Ti(en,xe){const st=xt.bindTo(en),Wt=()=>{const rn=xe.scrollTop===0,hn=xe.scrollHeight-xe.renderHeight-xe.scrollTop<1;rn&&hn?st.set("both"):rn?st.set("top"):hn?st.set("bottom"):st.set("none")};return Wt(),xe.onDidScroll(Wt)}const Nn="workbench.list.multiSelectModifier",Vn="workbench.list.openMode",Yn="workbench.list.horizontalScrolling",Di="workbench.list.defaultFindMode",Ai="workbench.list.typeNavigationMode",Sn="workbench.list.keyboardNavigation",Ye="workbench.list.scrollByPage",mt="workbench.list.defaultFindMatchType",ze="workbench.tree.indent",Ke="workbench.tree.renderIndentGuides",Je="workbench.list.smoothScrolling",Ne="workbench.list.mouseWheelScrollSensitivity",ft="workbench.list.fastScrollSensitivity",St="workbench.tree.expandMode",rt="workbench.tree.enableStickyScroll",Ge="workbench.tree.stickyScrollMaxItemCount";function nt(en){return en.getValue(Nn)==="alt"}class it extends L.jG{constructor(xe){super(),this.configurationService=xe,this.useAltAsMultipleSelectionModifier=nt(xe),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(xe=>{xe.affectsConfiguration(Nn)&&(this.useAltAsMultipleSelectionModifier=nt(this.configurationService))}))}isSelectionSingleChangeEvent(xe){return this.useAltAsMultipleSelectionModifier?xe.browserEvent.altKey:(0,g.tX)(xe)}isSelectionRangeChangeEvent(xe){return(0,g.mh)(xe)}}function bt(en,xe){var st;const Wt=en.get(de.pG),rn=en.get(Et.b),hn=new L.Cm;return[{...xe,keyboardNavigationDelegate:{mightProducePrintableCharacter(On){return rn.mightProducePrintableCharacter(On)}},smoothScrolling:!!Wt.getValue(Je),mouseWheelScrollSensitivity:Wt.getValue(Ne),fastScrollSensitivity:Wt.getValue(ft),multipleSelectionController:(st=xe.multipleSelectionController)!==null&&st!==void 0?st:hn.add(new it(Wt)),keyboardNavigationEventFilter:ct(rn),scrollByPage:!!Wt.getValue(Ye)},hn]}let Dt=class extends g.B8{constructor(xe,st,Wt,rn,hn,Dn,On,Bn,oi){const $n=typeof hn.horizontalScrolling<"u"?hn.horizontalScrolling:!!Bn.getValue(Yn),[ti,Jn]=oi.invokeFunction(bt,hn);super(xe,st,Wt,rn,{keyboardSupport:!1,...ti,horizontalScrolling:$n}),this.disposables.add(Jn),this.contextKeyService=Si(Dn,this),this.disposables.add(Ti(this.contextKeyService,this)),this.listSupportsMultiSelect=Gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(hn.multipleSelectionSupport!==!1),Kn.bindTo(this.contextKeyService).set(!!hn.selectionNavigation),this.listHasSelectionOrFocus=Fn.bindTo(this.contextKeyService),this.listDoubleSelection=An.bindTo(this.contextKeyService),this.listMultiSelection=Hn.bindTo(this.contextKeyService),this.horizontalScrolling=hn.horizontalScrolling,this._useAltAsMultipleSelectionModifier=nt(Bn),this.disposables.add(this.contextKeyService),this.disposables.add(On.register(this)),this.updateStyles(hn.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const Rn=this.getSelection(),cn=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(Rn.length>0||cn.length>0),this.listMultiSelection.set(Rn.length>1),this.listDoubleSelection.set(Rn.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const Rn=this.getSelection(),cn=this.getFocus();this.listHasSelectionOrFocus.set(Rn.length>0||cn.length>0)})),this.disposables.add(Bn.onDidChangeConfiguration(Rn=>{Rn.affectsConfiguration(Nn)&&(this._useAltAsMultipleSelectionModifier=nt(Bn));let cn={};if(Rn.affectsConfiguration(Yn)&&this.horizontalScrolling===void 0){const $e=!!Bn.getValue(Yn);cn={...cn,horizontalScrolling:$e}}if(Rn.affectsConfiguration(Ye)){const $e=!!Bn.getValue(Ye);cn={...cn,scrollByPage:$e}}if(Rn.affectsConfiguration(Je)){const $e=!!Bn.getValue(Je);cn={...cn,smoothScrolling:$e}}if(Rn.affectsConfiguration(Ne)){const $e=Bn.getValue(Ne);cn={...cn,mouseWheelScrollSensitivity:$e}}if(Rn.affectsConfiguration(ft)){const $e=Bn.getValue(ft);cn={...cn,fastScrollSensitivity:$e}}Object.keys(cn).length>0&&this.updateOptions(cn)})),this.navigator=new Tt(this,{configurationService:Bn,...hn}),this.disposables.add(this.navigator)}updateOptions(xe){super.updateOptions(xe),xe.overrideStyles!==void 0&&this.updateStyles(xe.overrideStyles),xe.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!xe.multipleSelectionSupport)}updateStyles(xe){this.style(xe?(0,Zt.t8)(xe):Zt.IN)}};Dt=qt([tt(5,We.fN),tt(6,Mt),tt(7,de.pG),tt(8,lt._Y)],Dt);let At=class extends f{constructor(xe,st,Wt,rn,hn,Dn,On,Bn,oi){const $n=typeof hn.horizontalScrolling<"u"?hn.horizontalScrolling:!!Bn.getValue(Yn),[ti,Jn]=oi.invokeFunction(bt,hn);super(xe,st,Wt,rn,{keyboardSupport:!1,...ti,horizontalScrolling:$n}),this.disposables=new L.Cm,this.disposables.add(Jn),this.contextKeyService=Si(Dn,this),this.disposables.add(Ti(this.contextKeyService,this.widget)),this.horizontalScrolling=hn.horizontalScrolling,this.listSupportsMultiSelect=Gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(hn.multipleSelectionSupport!==!1),Kn.bindTo(this.contextKeyService).set(!!hn.selectionNavigation),this._useAltAsMultipleSelectionModifier=nt(Bn),this.disposables.add(this.contextKeyService),this.disposables.add(On.register(this)),this.updateStyles(hn.overrideStyles),this.disposables.add(Bn.onDidChangeConfiguration(Rn=>{Rn.affectsConfiguration(Nn)&&(this._useAltAsMultipleSelectionModifier=nt(Bn));let cn={};if(Rn.affectsConfiguration(Yn)&&this.horizontalScrolling===void 0){const $e=!!Bn.getValue(Yn);cn={...cn,horizontalScrolling:$e}}if(Rn.affectsConfiguration(Ye)){const $e=!!Bn.getValue(Ye);cn={...cn,scrollByPage:$e}}if(Rn.affectsConfiguration(Je)){const $e=!!Bn.getValue(Je);cn={...cn,smoothScrolling:$e}}if(Rn.affectsConfiguration(Ne)){const $e=Bn.getValue(Ne);cn={...cn,mouseWheelScrollSensitivity:$e}}if(Rn.affectsConfiguration(ft)){const $e=Bn.getValue(ft);cn={...cn,fastScrollSensitivity:$e}}Object.keys(cn).length>0&&this.updateOptions(cn)})),this.navigator=new Tt(this,{configurationService:Bn,...hn}),this.disposables.add(this.navigator)}updateOptions(xe){super.updateOptions(xe),xe.overrideStyles!==void 0&&this.updateStyles(xe.overrideStyles),xe.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!xe.multipleSelectionSupport)}updateStyles(xe){this.style(xe?(0,Zt.t8)(xe):Zt.IN)}dispose(){this.disposables.dispose(),super.dispose()}};At=qt([tt(5,We.fN),tt(6,Mt),tt(7,de.pG),tt(8,lt._Y)],At);let et=class extends m{constructor(xe,st,Wt,rn,hn,Dn,On,Bn,oi,$n){const ti=typeof Dn.horizontalScrolling<"u"?Dn.horizontalScrolling:!!oi.getValue(Yn),[Jn,Un]=$n.invokeFunction(bt,Dn);super(xe,st,Wt,rn,hn,{keyboardSupport:!1,...Jn,horizontalScrolling:ti}),this.disposables.add(Un),this.contextKeyService=Si(On,this),this.disposables.add(Ti(this.contextKeyService,this)),this.listSupportsMultiSelect=Gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(Dn.multipleSelectionSupport!==!1),Kn.bindTo(this.contextKeyService).set(!!Dn.selectionNavigation),this.listHasSelectionOrFocus=Fn.bindTo(this.contextKeyService),this.listDoubleSelection=An.bindTo(this.contextKeyService),this.listMultiSelection=Hn.bindTo(this.contextKeyService),this.horizontalScrolling=Dn.horizontalScrolling,this._useAltAsMultipleSelectionModifier=nt(oi),this.disposables.add(this.contextKeyService),this.disposables.add(Bn.register(this)),this.updateStyles(Dn.overrideStyles),this.disposables.add(this.onDidChangeSelection(()=>{const cn=this.getSelection(),$e=this.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.listHasSelectionOrFocus.set(cn.length>0||$e.length>0),this.listMultiSelection.set(cn.length>1),this.listDoubleSelection.set(cn.length===2)})})),this.disposables.add(this.onDidChangeFocus(()=>{const cn=this.getSelection(),$e=this.getFocus();this.listHasSelectionOrFocus.set(cn.length>0||$e.length>0)})),this.disposables.add(oi.onDidChangeConfiguration(cn=>{cn.affectsConfiguration(Nn)&&(this._useAltAsMultipleSelectionModifier=nt(oi));let $e={};if(cn.affectsConfiguration(Yn)&&this.horizontalScrolling===void 0){const yt=!!oi.getValue(Yn);$e={...$e,horizontalScrolling:yt}}if(cn.affectsConfiguration(Ye)){const yt=!!oi.getValue(Ye);$e={...$e,scrollByPage:yt}}if(cn.affectsConfiguration(Je)){const yt=!!oi.getValue(Je);$e={...$e,smoothScrolling:yt}}if(cn.affectsConfiguration(Ne)){const yt=oi.getValue(Ne);$e={...$e,mouseWheelScrollSensitivity:yt}}if(cn.affectsConfiguration(ft)){const yt=oi.getValue(ft);$e={...$e,fastScrollSensitivity:yt}}Object.keys($e).length>0&&this.updateOptions($e)})),this.navigator=new dt(this,{configurationService:oi,...Dn}),this.disposables.add(this.navigator)}updateOptions(xe){super.updateOptions(xe),xe.overrideStyles!==void 0&&this.updateStyles(xe.overrideStyles),xe.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!xe.multipleSelectionSupport)}updateStyles(xe){this.style(xe?(0,Zt.t8)(xe):Zt.IN)}dispose(){this.disposables.dispose(),super.dispose()}};et=qt([tt(6,We.fN),tt(7,Mt),tt(8,de.pG),tt(9,lt._Y)],et);class at extends L.jG{constructor(xe,st){var Wt;super(),this.widget=xe,this._onDidOpen=this._register(new M.vl),this.onDidOpen=this._onDidOpen.event,this._register(M.Jh.filter(this.widget.onDidChangeSelection,rn=>(0,r.kx)(rn.browserEvent))(rn=>this.onSelectionFromKeyboard(rn))),this._register(this.widget.onPointer(rn=>this.onPointer(rn.element,rn.browserEvent))),this._register(this.widget.onMouseDblClick(rn=>this.onMouseDblClick(rn.element,rn.browserEvent))),typeof st?.openOnSingleClick!="boolean"&&st?.configurationService?(this.openOnSingleClick=st?.configurationService.getValue(Vn)!=="doubleClick",this._register(st?.configurationService.onDidChangeConfiguration(rn=>{rn.affectsConfiguration(Vn)&&(this.openOnSingleClick=st?.configurationService.getValue(Vn)!=="doubleClick")}))):this.openOnSingleClick=(Wt=st?.openOnSingleClick)!==null&&Wt!==void 0?Wt:!0}onSelectionFromKeyboard(xe){if(xe.elements.length!==1)return;const st=xe.browserEvent,Wt=typeof st.preserveFocus=="boolean"?st.preserveFocus:!0,rn=typeof st.pinned=="boolean"?st.pinned:!Wt;this._open(this.getSelectedElement(),Wt,rn,!1,xe.browserEvent)}onPointer(xe,st){if(!this.openOnSingleClick||st.detail===2)return;const rn=st.button===1,hn=!0,Dn=rn,On=st.ctrlKey||st.metaKey||st.altKey;this._open(xe,hn,Dn,On,st)}onMouseDblClick(xe,st){if(!st)return;const Wt=st.target;if(Wt.classList.contains("monaco-tl-twistie")||Wt.classList.contains("monaco-icon-label")&&Wt.classList.contains("folder-icon")&&st.offsetX<16)return;const hn=!1,Dn=!0,On=st.ctrlKey||st.metaKey||st.altKey;this._open(xe,hn,Dn,On,st)}_open(xe,st,Wt,rn,hn){xe&&this._onDidOpen.fire({editorOptions:{preserveFocus:st,pinned:Wt,revealIfVisible:!0},sideBySide:rn,element:xe,browserEvent:hn})}}class Tt extends at{constructor(xe,st){super(xe,st),this.widget=xe}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class dt extends at{constructor(xe,st){super(xe,st)}getSelectedElement(){return this.widget.getSelectedElements()[0]}}class Ae extends at{constructor(xe,st){super(xe,st)}getSelectedElement(){var xe;return(xe=this.widget.getSelection()[0])!==null&&xe!==void 0?xe:void 0}}function ct(en){let xe=!1;return st=>{if(st.toKeyCodeChord().isModifierKey())return!1;if(xe)return xe=!1,!1;const Wt=en.softDispatch(st,st.target);return Wt.kind===1?(xe=!0,!1):(xe=!1,Wt.kind===0)}}let ut=class extends B{constructor(xe,st,Wt,rn,hn,Dn,On,Bn,oi){const{options:$n,getTypeNavigationMode:ti,disposable:Jn}=Dn.invokeFunction(En,hn);super(xe,st,Wt,rn,$n),this.disposables.add(Jn),this.internals=new In(this,hn,ti,hn.overrideStyles,On,Bn,oi),this.disposables.add(this.internals)}updateOptions(xe){super.updateOptions(xe),this.internals.updateOptions(xe)}};ut=qt([tt(5,lt._Y),tt(6,We.fN),tt(7,Mt),tt(8,de.pG)],ut);let je=class extends ie{constructor(xe,st,Wt,rn,hn,Dn,On,Bn,oi){const{options:$n,getTypeNavigationMode:ti,disposable:Jn}=Dn.invokeFunction(En,hn);super(xe,st,Wt,rn,$n),this.disposables.add(Jn),this.internals=new In(this,hn,ti,hn.overrideStyles,On,Bn,oi),this.disposables.add(this.internals)}updateOptions(xe={}){super.updateOptions(xe),xe.overrideStyles&&this.internals.updateStyleOverrides(xe.overrideStyles),this.internals.updateOptions(xe)}};je=qt([tt(5,lt._Y),tt(6,We.fN),tt(7,Mt),tt(8,de.pG)],je);let Rt=class extends oe{constructor(xe,st,Wt,rn,hn,Dn,On,Bn,oi,$n){const{options:ti,getTypeNavigationMode:Jn,disposable:Un}=On.invokeFunction(En,Dn);super(xe,st,Wt,rn,hn,ti),this.disposables.add(Un),this.internals=new In(this,Dn,Jn,Dn.overrideStyles,Bn,oi,$n),this.disposables.add(this.internals)}updateOptions(xe={}){super.updateOptions(xe),xe.overrideStyles!==void 0&&this.internals.updateStyleOverrides(xe.overrideStyles),this.internals.updateOptions(xe)}};Rt=qt([tt(6,lt._Y),tt(7,We.fN),tt(8,Mt),tt(9,de.pG)],Rt);let Ft=class extends be{get onDidOpen(){return this.internals.onDidOpen}constructor(xe,st,Wt,rn,hn,Dn,On,Bn,oi,$n){const{options:ti,getTypeNavigationMode:Jn,disposable:Un}=On.invokeFunction(En,Dn);super(xe,st,Wt,rn,hn,ti),this.disposables.add(Un),this.internals=new In(this,Dn,Jn,Dn.overrideStyles,Bn,oi,$n),this.disposables.add(this.internals)}updateOptions(xe={}){super.updateOptions(xe),xe.overrideStyles&&this.internals.updateStyleOverrides(xe.overrideStyles),this.internals.updateOptions(xe)}};Ft=qt([tt(6,lt._Y),tt(7,We.fN),tt(8,Mt),tt(9,de.pG)],Ft);let ln=class extends fe{constructor(xe,st,Wt,rn,hn,Dn,On,Bn,oi,$n,ti){const{options:Jn,getTypeNavigationMode:Un,disposable:Rn}=Bn.invokeFunction(En,On);super(xe,st,Wt,rn,hn,Dn,Jn),this.disposables.add(Rn),this.internals=new In(this,On,Un,On.overrideStyles,oi,$n,ti),this.disposables.add(this.internals)}updateOptions(xe){super.updateOptions(xe),this.internals.updateOptions(xe)}};ln=qt([tt(7,lt._Y),tt(8,We.fN),tt(9,Mt),tt(10,de.pG)],ln);function vn(en){const xe=en.getValue(Di);if(xe==="highlight")return u.vD.Highlight;if(xe==="filter")return u.vD.Filter;const st=en.getValue(Sn);if(st==="simple"||st==="highlight")return u.vD.Highlight;if(st==="filter")return u.vD.Filter}function Ln(en){const xe=en.getValue(mt);if(xe==="fuzzy")return u.RD.Fuzzy;if(xe==="contiguous")return u.RD.Contiguous}function En(en,xe){var st;const Wt=en.get(de.pG),rn=en.get(Ue.l),hn=en.get(We.fN),Dn=en.get(lt._Y),On=()=>{const Un=hn.getContextKeyValue(ci);if(Un==="automatic")return g._C.Automatic;if(Un==="trigger"||hn.getContextKeyValue(Ii)===!1)return g._C.Trigger;const cn=Wt.getValue(Ai);if(cn==="automatic")return g._C.Automatic;if(cn==="trigger")return g._C.Trigger},Bn=xe.horizontalScrolling!==void 0?xe.horizontalScrolling:!!Wt.getValue(Yn),[oi,$n]=Dn.invokeFunction(bt,xe),ti=xe.paddingBottom,Jn=xe.renderIndentGuides!==void 0?xe.renderIndentGuides:Wt.getValue(Ke);return{getTypeNavigationMode:On,disposable:$n,options:{keyboardSupport:!1,...oi,indent:typeof Wt.getValue(ze)=="number"?Wt.getValue(ze):void 0,renderIndentGuides:Jn,smoothScrolling:!!Wt.getValue(Je),defaultFindMode:vn(Wt),defaultFindMatchType:Ln(Wt),horizontalScrolling:Bn,scrollByPage:!!Wt.getValue(Ye),paddingBottom:ti,hideTwistiesOfChildlessElements:xe.hideTwistiesOfChildlessElements,expandOnlyOnTwistieClick:(st=xe.expandOnlyOnTwistieClick)!==null&&st!==void 0?st:Wt.getValue(St)==="doubleClick",contextViewProvider:rn,findWidgetStyles:Zt.Dk,enableStickyScroll:!!Wt.getValue(rt),stickyScrollMaxItemCount:Number(Wt.getValue(Ge))}}}let In=class{get onDidOpen(){return this.navigator.onDidOpen}constructor(xe,st,Wt,rn,hn,Dn,On){var Bn;this.tree=xe,this.disposables=[],this.contextKeyService=Si(hn,xe),this.disposables.push(Ti(this.contextKeyService,xe)),this.listSupportsMultiSelect=Gt.bindTo(this.contextKeyService),this.listSupportsMultiSelect.set(st.multipleSelectionSupport!==!1),Kn.bindTo(this.contextKeyService).set(!!st.selectionNavigation),this.listSupportFindWidget=mi.bindTo(this.contextKeyService),this.listSupportFindWidget.set((Bn=st.findWidgetEnabled)!==null&&Bn!==void 0?Bn:!0),this.hasSelectionOrFocus=Fn.bindTo(this.contextKeyService),this.hasDoubleSelection=An.bindTo(this.contextKeyService),this.hasMultiSelection=Hn.bindTo(this.contextKeyService),this.treeElementCanCollapse=yi.bindTo(this.contextKeyService),this.treeElementHasParent=ri.bindTo(this.contextKeyService),this.treeElementCanExpand=fi.bindTo(this.contextKeyService),this.treeElementHasChild=Mi.bindTo(this.contextKeyService),this.treeFindOpen=xi.bindTo(this.contextKeyService),this.treeStickyScrollFocused=vt.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=nt(On),this.updateStyleOverrides(rn);const $n=()=>{const Jn=xe.getFocus()[0];if(!Jn)return;const Un=xe.getNode(Jn);this.treeElementCanCollapse.set(Un.collapsible&&!Un.collapsed),this.treeElementHasParent.set(!!xe.getParentElement(Jn)),this.treeElementCanExpand.set(Un.collapsible&&Un.collapsed),this.treeElementHasChild.set(!!xe.getFirstElementChild(Jn))},ti=new Set;ti.add(ci),ti.add(Ii),this.disposables.push(this.contextKeyService,Dn.register(xe),xe.onDidChangeSelection(()=>{const Jn=xe.getSelection(),Un=xe.getFocus();this.contextKeyService.bufferChangeEvents(()=>{this.hasSelectionOrFocus.set(Jn.length>0||Un.length>0),this.hasMultiSelection.set(Jn.length>1),this.hasDoubleSelection.set(Jn.length===2)})}),xe.onDidChangeFocus(()=>{const Jn=xe.getSelection(),Un=xe.getFocus();this.hasSelectionOrFocus.set(Jn.length>0||Un.length>0),$n()}),xe.onDidChangeCollapseState($n),xe.onDidChangeModel($n),xe.onDidChangeFindOpenState(Jn=>this.treeFindOpen.set(Jn)),xe.onDidChangeStickyScrollFocused(Jn=>this.treeStickyScrollFocused.set(Jn)),On.onDidChangeConfiguration(Jn=>{let Un={};if(Jn.affectsConfiguration(Nn)&&(this._useAltAsMultipleSelectionModifier=nt(On)),Jn.affectsConfiguration(ze)){const Rn=On.getValue(ze);Un={...Un,indent:Rn}}if(Jn.affectsConfiguration(Ke)&&st.renderIndentGuides===void 0){const Rn=On.getValue(Ke);Un={...Un,renderIndentGuides:Rn}}if(Jn.affectsConfiguration(Je)){const Rn=!!On.getValue(Je);Un={...Un,smoothScrolling:Rn}}if(Jn.affectsConfiguration(Di)||Jn.affectsConfiguration(Sn)){const Rn=vn(On);Un={...Un,defaultFindMode:Rn}}if(Jn.affectsConfiguration(Ai)||Jn.affectsConfiguration(Sn)){const Rn=Wt();Un={...Un,typeNavigationMode:Rn}}if(Jn.affectsConfiguration(mt)){const Rn=Ln(On);Un={...Un,defaultFindMatchType:Rn}}if(Jn.affectsConfiguration(Yn)&&st.horizontalScrolling===void 0){const Rn=!!On.getValue(Yn);Un={...Un,horizontalScrolling:Rn}}if(Jn.affectsConfiguration(Ye)){const Rn=!!On.getValue(Ye);Un={...Un,scrollByPage:Rn}}if(Jn.affectsConfiguration(St)&&st.expandOnlyOnTwistieClick===void 0&&(Un={...Un,expandOnlyOnTwistieClick:On.getValue(St)==="doubleClick"}),Jn.affectsConfiguration(rt)){const Rn=On.getValue(rt);Un={...Un,enableStickyScroll:Rn}}if(Jn.affectsConfiguration(Ge)){const Rn=Math.max(1,On.getValue(Ge));Un={...Un,stickyScrollMaxItemCount:Rn}}if(Jn.affectsConfiguration(Ne)){const Rn=On.getValue(Ne);Un={...Un,mouseWheelScrollSensitivity:Rn}}if(Jn.affectsConfiguration(ft)){const Rn=On.getValue(ft);Un={...Un,fastScrollSensitivity:Rn}}Object.keys(Un).length>0&&xe.updateOptions(Un)}),this.contextKeyService.onDidChangeContext(Jn=>{Jn.affectsSome(ti)&&xe.updateOptions({typeNavigationMode:Wt()})})),this.navigator=new Ae(xe,{configurationService:On,...st}),this.disposables.push(this.navigator)}updateOptions(xe){xe.multipleSelectionSupport!==void 0&&this.listSupportsMultiSelect.set(!!xe.multipleSelectionSupport)}updateStyleOverrides(xe){this.tree.style(xe?(0,Zt.t8)(xe):Zt.IN)}dispose(){this.disposables=(0,L.AS)(this.disposables)}};In=qt([tt(4,We.fN),tt(5,Mt),tt(6,de.pG)],In),Kt.O.as(Le.Fd.Configuration).registerConfiguration({id:"workbench",order:7,title:(0,ne.kg)("workbenchConfigurationTitle","Workbench"),type:"object",properties:{[Nn]:{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[(0,ne.kg)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),(0,ne.kg)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:(0,ne.kg)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},[Vn]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ne.kg)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[Yn]:{type:"boolean",default:!1,description:(0,ne.kg)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench. Warning: turning on this setting has a performance implication.")},[Ye]:{type:"boolean",default:!1,description:(0,ne.kg)("list.scrollByPage","Controls whether clicks in the scrollbar scroll page by page.")},[ze]:{type:"number",default:8,minimum:4,maximum:40,description:(0,ne.kg)("tree indent setting","Controls tree indentation in pixels.")},[Ke]:{type:"string",enum:["none","onHover","always"],default:"onHover",description:(0,ne.kg)("render tree indent guides","Controls whether the tree should render indent guides.")},[Je]:{type:"boolean",default:!1,description:(0,ne.kg)("list smoothScrolling setting","Controls whether lists and trees have smooth scrolling.")},[Ne]:{type:"number",default:1,markdownDescription:(0,ne.kg)("Mouse Wheel Scroll Sensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},[ft]:{type:"number",default:5,markdownDescription:(0,ne.kg)("Fast Scroll Sensitivity","Scrolling speed multiplier when pressing `Alt`.")},[Di]:{type:"string",enum:["highlight","filter"],enumDescriptions:[(0,ne.kg)("defaultFindModeSettingKey.highlight","Highlight elements when searching. Further up and down navigation will traverse only the highlighted elements."),(0,ne.kg)("defaultFindModeSettingKey.filter","Filter elements when searching.")],default:"highlight",description:(0,ne.kg)("defaultFindModeSettingKey","Controls the default find mode for lists and trees in the workbench.")},[Sn]:{type:"string",enum:["simple","highlight","filter"],enumDescriptions:[(0,ne.kg)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),(0,ne.kg)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),(0,ne.kg)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:(0,ne.kg)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter."),deprecated:!0,deprecationMessage:(0,ne.kg)("keyboardNavigationSettingKeyDeprecated","Please use 'workbench.list.defaultFindMode' and 'workbench.list.typeNavigationMode' instead.")},[mt]:{type:"string",enum:["fuzzy","contiguous"],enumDescriptions:[(0,ne.kg)("defaultFindMatchTypeSettingKey.fuzzy","Use fuzzy matching when searching."),(0,ne.kg)("defaultFindMatchTypeSettingKey.contiguous","Use contiguous matching when searching.")],default:"fuzzy",description:(0,ne.kg)("defaultFindMatchTypeSettingKey","Controls the type of matching used when searching lists and trees in the workbench.")},[St]:{type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:(0,ne.kg)("expand mode","Controls how tree folders are expanded when clicking the folder names. Note that some trees and lists might choose to ignore this setting if it is not applicable.")},[rt]:{type:"boolean",default:!0,description:(0,ne.kg)("sticky scroll","Controls whether sticky scrolling is enabled in trees.")},[Ge]:{type:"number",minimum:1,default:7,markdownDescription:(0,ne.kg)("sticky scroll maximum items","Controls the number of sticky elements displayed in the tree when `#workbench.tree.enableStickyScroll#` is enabled.")},[Ai]:{type:"string",enum:["automatic","trigger"],default:"automatic",markdownDescription:(0,ne.kg)("typeNavigationMode2","Controls how type navigation works in lists and trees in the workbench. When set to `trigger`, type navigation begins once the `list.triggerTypeNavigation` command is run.")}}})},"./node_modules/monaco-editor/esm/vs/platform/log/common/log.js":function(pt,Me,e){e.d(Me,{$b:function(){return g},Cr:function(){return S},Dk:function(){return f},rr:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const L=(0,M.u1)("logService");var g;(function(s){s[s.Off=0]="Off",s[s.Trace=1]="Trace",s[s.Debug=2]="Debug",s[s.Info=3]="Info",s[s.Warning=4]="Warning",s[s.Error=5]="Error"})(g||(g={}));const x=g.Info;class I extends F.jG{constructor(){super(...arguments),this.level=x,this._onDidChangeLogLevel=this._register(new r.vl),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(n){this.level!==n&&(this.level=n,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(n){return this.level!==g.Off&&this.level<=n}}class S extends I{constructor(n=x,i=!0){super(),this.useColors=i,this.setLevel(n)}trace(n,...i){this.checkLogLevel(g.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",n,...i):console.log(n,...i))}debug(n,...i){this.checkLogLevel(g.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",n,...i):console.log(n,...i))}info(n,...i){this.checkLogLevel(g.Info)&&(this.useColors?console.log("%c INFO","color: #33f",n,...i):console.log(n,...i))}warn(n,...i){this.checkLogLevel(g.Warning)&&(this.useColors?console.log("%c WARN","color: #993",n,...i):console.log(n,...i))}error(n,...i){this.checkLogLevel(g.Error)&&(this.useColors?console.log("%c ERR","color: #f33",n,...i):console.error(n,...i))}}class f extends I{constructor(n){super(),this.loggers=n,n.length&&this.setLevel(n[0].getLevel())}setLevel(n){for(const i of this.loggers)i.setLevel(n);super.setLevel(n)}trace(n,...i){for(const c of this.loggers)c.trace(n,...i)}debug(n,...i){for(const c of this.loggers)c.debug(n,...i)}info(n,...i){for(const c of this.loggers)c.info(n,...i)}warn(n,...i){for(const c of this.loggers)c.warn(n,...i)}error(n,...i){for(const c of this.loggers)c.error(n,...i)}dispose(){for(const n of this.loggers)n.dispose();super.dispose()}}function d(s){switch(s){case g.Trace:return"trace";case g.Debug:return"debug";case g.Info:return"info";case g.Warning:return"warn";case g.Error:return"error";case g.Off:return"off"}}const a=new k.N1("logLevel",d(g.Info))},"./node_modules/monaco-editor/esm/vs/platform/markers/common/markers.js":function(pt,Me,e){e.d(Me,{DR:function(){return g},cj:function(){return M},oc:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/severity.js"),F=e("./node_modules/monaco-editor/esm/vs/nls.js"),k=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),M;(function(x){x[x.Hint=1]="Hint",x[x.Info=2]="Info",x[x.Warning=4]="Warning",x[x.Error=8]="Error"})(M||(M={})),function(x){function I(s,n){return n-s}x.compare=I;const S=Object.create(null);S[x.Error]=(0,F.kg)("sev.error","Error"),S[x.Warning]=(0,F.kg)("sev.warning","Warning"),S[x.Info]=(0,F.kg)("sev.info","Info");function f(s){return S[s]||""}x.toString=f;function d(s){switch(s){case r.A.Error:return x.Error;case r.A.Warning:return x.Warning;case r.A.Info:return x.Info;case r.A.Ignore:return x.Hint}}x.fromSeverity=d;function a(s){switch(s){case x.Error:return r.A.Error;case x.Warning:return r.A.Warning;case x.Info:return r.A.Info;case x.Hint:return r.A.Ignore}}x.toSeverity=a}(M||(M={}));var L;(function(x){const I="";function S(d){return f(d,!0)}x.makeKey=S;function f(d,a){const s=[I];return d.source?s.push(d.source.replace("\xA6","\\\xA6")):s.push(I),d.code?typeof d.code=="string"?s.push(d.code.replace("\xA6","\\\xA6")):s.push(d.code.value.replace("\xA6","\\\xA6")):s.push(I),d.severity!==void 0&&d.severity!==null?s.push(M.toString(d.severity)):s.push(I),d.message&&a?s.push(d.message.replace("\xA6","\\\xA6")):s.push(I),d.startLineNumber!==void 0&&d.startLineNumber!==null?s.push(d.startLineNumber.toString()):s.push(I),d.startColumn!==void 0&&d.startColumn!==null?s.push(d.startColumn.toString()):s.push(I),d.endLineNumber!==void 0&&d.endLineNumber!==null?s.push(d.endLineNumber.toString()):s.push(I),d.endColumn!==void 0&&d.endColumn!==null?s.push(d.endColumn.toString()):s.push(I),s.push(I),s.join("\xA6")}x.makeKeyOptionalMessage=f})(L||(L={}));const g=(0,k.u1)("markerService")},"./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js":function(pt,Me,e){e.d(Me,{AI:function(){return k},Kz:function(){return L},Ot:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/severity.js"),F=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),k=r.A;const M=(0,F.u1)("notificationService");class L{}},"./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js":function(pt,Me,e){e.d(Me,{C:function(){return F},e:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("openerService");function k(M){let L;const g=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(M.fragment);return g&&(L={startLineNumber:parseInt(g[1]),startColumn:g[2]?parseInt(g[2]):1,endLineNumber:g[4]?parseInt(g[4]):void 0,endColumn:g[4]?g[5]?parseInt(g[5]):1:void 0},M=M.with({fragment:""})),{selection:L,uri:M}}},"./node_modules/monaco-editor/esm/vs/platform/progress/common/progress.js":function(pt,Me,e){e.d(Me,{G5:function(){return F},N8:function(){return L},ke:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("progressService"),k=Object.freeze({total(){},worked(){},done(){}});class M{constructor(x){this.callback=x}report(x){this._value=x,this.callback(this._value)}}M.None=Object.freeze({report(){}});const L=(0,r.u1)("editorProgressService")},"./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickAccess.js":function(pt,Me,e){e.d(Me,{Fd:function(){return L},aJ:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),M;(function(x){x[x.PRESERVE=0]="PRESERVE",x[x.LAST=1]="LAST"})(M||(M={}));const L={Quickaccess:"workbench.contributions.quickaccess"};class g{constructor(){this.providers=[],this.defaultProvider=void 0}registerQuickAccessProvider(I){return I.prefix.length===0?this.defaultProvider=I:this.providers.push(I),this.providers.sort((S,f)=>f.prefix.length-S.prefix.length),(0,F.s)(()=>{this.providers.splice(this.providers.indexOf(I),1),this.defaultProvider===I&&(this.defaultProvider=void 0)})}getQuickAccessProviders(){return(0,r.Yc)([this.defaultProvider,...this.providers])}getQuickAccessProvider(I){return I&&this.providers.find(f=>I.startsWith(f.prefix))||void 0||this.defaultProvider}}k.O.add(L.Quickaccess,new g)},"./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js":function(pt,Me,e){e.d(Me,{C1:function(){return M},GK:function(){return x},Ym:function(){return F},kF:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F={ctrlCmd:!1,alt:!1};var k;(function(I){I[I.Blur=1]="Blur",I[I.Gesture=2]="Gesture",I[I.Other=3]="Other"})(k||(k={}));var M;(function(I){I[I.NONE=0]="NONE",I[I.FIRST=1]="FIRST",I[I.SECOND=2]="SECOND",I[I.LAST=3]="LAST"})(M||(M={}));class L{constructor(S){this.options=S}}const g=new L,x=(0,r.u1)("quickInputService")},"./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js":function(pt,Me,e){e.d(Me,{O:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/assert.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/types.js");class k{constructor(){this.data=new Map}add(g,x){r.ok(F.Kg(g)),r.ok(F.Gv(x)),r.ok(!this.data.has(g),"There is already an extension with this id"),this.data.set(g,x)}as(g){return this.data.get(g)||null}}const M=new k},"./node_modules/monaco-editor/esm/vs/platform/storage/common/storage.js":function(pt,Me,e){e.d(Me,{CS:function(){return a},pc:function(){return c},LP:function(){return s}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/marshalling.js"),g;(function(m){m[m.STORAGE_DOES_NOT_EXIST=0]="STORAGE_DOES_NOT_EXIST",m[m.STORAGE_IN_MEMORY=1]="STORAGE_IN_MEMORY"})(g||(g={}));var x;(function(m){m[m.None=0]="None",m[m.Initialized=1]="Initialized",m[m.Closed=2]="Closed"})(x||(x={}));class I extends F.jG{constructor(u,C=Object.create(null)){super(),this.database=u,this.options=C,this._onDidChangeStorage=this._register(new r.fV),this.onDidChangeStorage=this._onDidChangeStorage.event,this.state=x.None,this.cache=new Map,this.flushDelayer=this._register(new M.Th(I.DEFAULT_FLUSH_DELAY)),this.pendingDeletes=new Set,this.pendingInserts=new Map,this.whenFlushedCallbacks=[],this.registerListeners()}registerListeners(){this._register(this.database.onDidChangeItemsExternal(u=>this.onDidChangeItemsExternal(u)))}onDidChangeItemsExternal(u){var C,h;this._onDidChangeStorage.pause();try{(C=u.changed)===null||C===void 0||C.forEach((v,p)=>this.acceptExternal(p,v)),(h=u.deleted)===null||h===void 0||h.forEach(v=>this.acceptExternal(v,void 0))}finally{this._onDidChangeStorage.resume()}}acceptExternal(u,C){if(this.state===x.Closed)return;let h=!1;(0,k.z)(C)?h=this.cache.delete(u):this.cache.get(u)!==C&&(this.cache.set(u,C),h=!0),h&&this._onDidChangeStorage.fire({key:u,external:!0})}get(u,C){const h=this.cache.get(u);return(0,k.z)(h)?C:h}getBoolean(u,C){const h=this.get(u);return(0,k.z)(h)?C:h==="true"}getNumber(u,C){const h=this.get(u);return(0,k.z)(h)?C:parseInt(h,10)}async set(u,C,h=!1){if(this.state===x.Closed)return;if((0,k.z)(C))return this.delete(u,h);const v=(0,k.Gv)(C)||Array.isArray(C)?(0,L.As)(C):String(C);if(this.cache.get(u)!==v)return this.cache.set(u,v),this.pendingInserts.set(u,v),this.pendingDeletes.delete(u),this._onDidChangeStorage.fire({key:u,external:h}),this.doFlush()}async delete(u,C=!1){if(!(this.state===x.Closed||!this.cache.delete(u)))return this.pendingDeletes.has(u)||this.pendingDeletes.add(u),this.pendingInserts.delete(u),this._onDidChangeStorage.fire({key:u,external:C}),this.doFlush()}get hasPending(){return this.pendingInserts.size>0||this.pendingDeletes.size>0}async flushPending(){if(!this.hasPending)return;const u={insert:this.pendingInserts,delete:this.pendingDeletes};return this.pendingDeletes=new Set,this.pendingInserts=new Map,this.database.updateItems(u).finally(()=>{var C;if(!this.hasPending)for(;this.whenFlushedCallbacks.length;)(C=this.whenFlushedCallbacks.pop())===null||C===void 0||C()})}async doFlush(u){return this.options.hint===g.STORAGE_IN_MEMORY?this.flushPending():this.flushDelayer.trigger(()=>this.flushPending(),u)}}I.DEFAULT_FLUSH_DELAY=100;class S{constructor(){this.onDidChangeItemsExternal=r.Jh.None,this.items=new Map}async updateItems(u){var C,h;(C=u.insert)===null||C===void 0||C.forEach((v,p)=>this.items.set(p,v)),(h=u.delete)===null||h===void 0||h.forEach(v=>this.items.delete(v))}}var f=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const d="__$__targetStorageMarker",a=(0,f.u1)("storageService");var s;(function(m){m[m.NONE=0]="NONE",m[m.SHUTDOWN=1]="SHUTDOWN"})(s||(s={}));function n(m){const u=m.get(d);if(u)try{return JSON.parse(u)}catch{}return Object.create(null)}class i extends F.jG{constructor(u={flushInterval:i.DEFAULT_FLUSH_INTERVAL}){super(),this.options=u,this._onDidChangeValue=this._register(new r.fV),this._onDidChangeTarget=this._register(new r.fV),this._onWillSaveState=this._register(new r.vl),this.onWillSaveState=this._onWillSaveState.event,this._workspaceKeyTargets=void 0,this._profileKeyTargets=void 0,this._applicationKeyTargets=void 0}onDidChangeValue(u,C,h){return r.Jh.filter(this._onDidChangeValue.event,v=>v.scope===u&&(C===void 0||v.key===C),h)}emitDidChangeValue(u,C){const{key:h,external:v}=C;if(h===d){switch(u){case-1:this._applicationKeyTargets=void 0;break;case 0:this._profileKeyTargets=void 0;break;case 1:this._workspaceKeyTargets=void 0;break}this._onDidChangeTarget.fire({scope:u})}else this._onDidChangeValue.fire({scope:u,key:h,target:this.getKeyTargets(u)[h],external:v})}get(u,C,h){var v;return(v=this.getStorage(C))===null||v===void 0?void 0:v.get(u,h)}getBoolean(u,C,h){var v;return(v=this.getStorage(C))===null||v===void 0?void 0:v.getBoolean(u,h)}getNumber(u,C,h){var v;return(v=this.getStorage(C))===null||v===void 0?void 0:v.getNumber(u,h)}store(u,C,h,v,p=!1){if((0,k.z)(C)){this.remove(u,h,p);return}this.withPausedEmitters(()=>{var b;this.updateKeyTarget(u,h,v),(b=this.getStorage(h))===null||b===void 0||b.set(u,C,p)})}remove(u,C,h=!1){this.withPausedEmitters(()=>{var v;this.updateKeyTarget(u,C,void 0),(v=this.getStorage(C))===null||v===void 0||v.delete(u,h)})}withPausedEmitters(u){this._onDidChangeValue.pause(),this._onDidChangeTarget.pause();try{u()}finally{this._onDidChangeValue.resume(),this._onDidChangeTarget.resume()}}updateKeyTarget(u,C,h,v=!1){var p,b;const O=this.getKeyTargets(C);typeof h=="number"?O[u]!==h&&(O[u]=h,(p=this.getStorage(C))===null||p===void 0||p.set(d,JSON.stringify(O),v)):typeof O[u]=="number"&&(delete O[u],(b=this.getStorage(C))===null||b===void 0||b.set(d,JSON.stringify(O),v))}get workspaceKeyTargets(){return this._workspaceKeyTargets||(this._workspaceKeyTargets=this.loadKeyTargets(1)),this._workspaceKeyTargets}get profileKeyTargets(){return this._profileKeyTargets||(this._profileKeyTargets=this.loadKeyTargets(0)),this._profileKeyTargets}get applicationKeyTargets(){return this._applicationKeyTargets||(this._applicationKeyTargets=this.loadKeyTargets(-1)),this._applicationKeyTargets}getKeyTargets(u){switch(u){case-1:return this.applicationKeyTargets;case 0:return this.profileKeyTargets;default:return this.workspaceKeyTargets}}loadKeyTargets(u){const C=this.getStorage(u);return C?n(C):Object.create(null)}}i.DEFAULT_FLUSH_INTERVAL=60*1e3;class c extends i{constructor(){super(),this.applicationStorage=this._register(new I(new S,{hint:g.STORAGE_IN_MEMORY})),this.profileStorage=this._register(new I(new S,{hint:g.STORAGE_IN_MEMORY})),this.workspaceStorage=this._register(new I(new S,{hint:g.STORAGE_IN_MEMORY})),this._register(this.workspaceStorage.onDidChangeStorage(u=>this.emitDidChangeValue(1,u))),this._register(this.profileStorage.onDidChangeStorage(u=>this.emitDidChangeValue(0,u))),this._register(this.applicationStorage.onDidChangeStorage(u=>this.emitDidChangeValue(-1,u)))}getStorage(u){switch(u){case-1:return this.applicationStorage;case 0:return this.profileStorage;default:return this.workspaceStorage}}}},"./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js":function(pt,Me,e){e.d(Me,{k:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("telemetryService")},"./node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js":function(pt,Me,e){e.d(Me,{Dk:function(){return d},IN:function(){return n},RE:function(){return c},XS:function(){return m},cv:function(){return L},ho:function(){return f},ir:function(){return M},m$:function(){return a},mk:function(){return x},oJ:function(){return g},t8:function(){return i}});var r=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/color.js");function k(u,C){const h={...C};for(const v in u){const p=u[v];h[v]=p!==void 0?(0,r.GuP)(p):void 0}return h}const M={keybindingLabelBackground:(0,r.GuP)(r.HDX),keybindingLabelForeground:(0,r.GuP)(r.eUu),keybindingLabelBorder:(0,r.GuP)(r.zUX),keybindingLabelBottomBorder:(0,r.GuP)(r.Qfh),keybindingLabelShadow:(0,r.GuP)(r.f9l)},L={buttonForeground:(0,r.GuP)(r.G_h),buttonSeparator:(0,r.GuP)(r.Q1$),buttonBackground:(0,r.GuP)(r.XJc),buttonHoverBackground:(0,r.GuP)(r.T9h),buttonSecondaryForeground:(0,r.GuP)(r.Inn),buttonSecondaryBackground:(0,r.GuP)(r.xOA),buttonSecondaryHoverBackground:(0,r.GuP)(r.nZG),buttonBorder:(0,r.GuP)(r.raQ)},g={progressBarBackground:(0,r.GuP)(r.BTi)},x={inputActiveOptionBorder:(0,r.GuP)(r.uNK),inputActiveOptionForeground:(0,r.GuP)(r.$$0),inputActiveOptionBackground:(0,r.GuP)(r.c1f)},I={checkboxBackground:(0,r.GuP)(r.OcU),checkboxBorder:(0,r.GuP)(r.C5U),checkboxForeground:(0,r.GuP)(r.t0B)},S={dialogBackground:(0,r.GuP)(r.CgL),dialogForeground:(0,r.GuP)(r.FiB),dialogShadow:(0,r.GuP)(r.f9l),dialogBorder:(0,r.GuP)(r.b1q),errorIconForeground:(0,r.GuP)(r.tYX),warningIconForeground:(0,r.GuP)(r.JPj),infoIconForeground:(0,r.GuP)(r.bNw),textLinkForeground:(0,r.GuP)(r.vwp)},f={inputBackground:(0,r.GuP)(r.L4c),inputForeground:(0,r.GuP)(r.cws),inputBorder:(0,r.GuP)(r.Zgs),inputValidationInfoBorder:(0,r.GuP)(r.YSW),inputValidationInfoBackground:(0,r.GuP)(r.I$A),inputValidationInfoForeground:(0,r.GuP)(r.L9Z),inputValidationWarningBorder:(0,r.GuP)(r.C1n),inputValidationWarningBackground:(0,r.GuP)(r.ULt),inputValidationWarningForeground:(0,r.GuP)(r.T5N),inputValidationErrorBorder:(0,r.GuP)(r.eYZ),inputValidationErrorBackground:(0,r.GuP)(r._$n),inputValidationErrorForeground:(0,r.GuP)(r.h9z)},d={listFilterWidgetBackground:(0,r.GuP)(r.pnl),listFilterWidgetOutline:(0,r.GuP)(r.fiM),listFilterWidgetNoMatchesOutline:(0,r.GuP)(r.P9Z),listFilterWidgetShadow:(0,r.GuP)(r.H8q),inputBoxStyles:f,toggleStyles:x},a={badgeBackground:(0,r.GuP)(r.WMx),badgeForeground:(0,r.GuP)(r.zRE),badgeBorder:(0,r.GuP)(r.b1q)},s={breadcrumbsBackground:(0,r.GuP)(r.vV$),breadcrumbsForeground:(0,r.GuP)(r.mc0),breadcrumbsHoverForeground:(0,r.GuP)(r.etE),breadcrumbsFocusForeground:(0,r.GuP)(r.etE),breadcrumbsFocusAndSelectionForeground:(0,r.GuP)(r.sAS)},n={listBackground:void 0,listInactiveFocusForeground:void 0,listFocusBackground:(0,r.GuP)(r.VFX),listFocusForeground:(0,r.GuP)(r.efJ),listFocusOutline:(0,r.GuP)(r.p7Y),listActiveSelectionBackground:(0,r.GuP)(r.Rjz),listActiveSelectionForeground:(0,r.GuP)(r.GVV),listActiveSelectionIconForeground:(0,r.GuP)(r.fED),listFocusAndSelectionOutline:(0,r.GuP)(r.gtq),listFocusAndSelectionBackground:(0,r.GuP)(r.Rjz),listFocusAndSelectionForeground:(0,r.GuP)(r.GVV),listInactiveSelectionBackground:(0,r.GuP)(r.uNx),listInactiveSelectionIconForeground:(0,r.GuP)(r.C9U),listInactiveSelectionForeground:(0,r.GuP)(r.f4y),listInactiveFocusBackground:(0,r.GuP)(r.CQ3),listInactiveFocusOutline:(0,r.GuP)(r.ijf),listHoverBackground:(0,r.GuP)(r.lO1),listHoverForeground:(0,r.GuP)(r.QRv),listDropOverBackground:(0,r.GuP)(r.Yoe),listDropBetweenBackground:(0,r.GuP)(r.yIp),listSelectionOutline:(0,r.GuP)(r.buw),listHoverOutline:(0,r.GuP)(r.buw),treeIndentGuidesStroke:(0,r.GuP)(r.U4U),treeInactiveIndentGuidesStroke:(0,r.GuP)(r.pft),tableColumnsBorder:(0,r.GuP)(r.k5u),tableOddRowsBackgroundColor:(0,r.GuP)(r.sbQ)};function i(u){return k(u,n)}const c={selectBackground:(0,r.GuP)(r.rvE),selectListBackground:(0,r.GuP)(r.lWP),selectForeground:(0,r.GuP)(r.yqq),decoratorRightForeground:(0,r.GuP)(r.NBf),selectBorder:(0,r.GuP)(r.HcB),focusBorder:(0,r.GuP)(r.tAP),listFocusBackground:(0,r.GuP)(r.AlL),listInactiveSelectionIconForeground:(0,r.GuP)(r.c7i),listFocusForeground:(0,r.GuP)(r.nH),listFocusOutline:(0,r.HP_)(r.buw,F.Q1.transparent.toString()),listHoverBackground:(0,r.GuP)(r.lO1),listHoverForeground:(0,r.GuP)(r.QRv),listHoverOutline:(0,r.GuP)(r.buw),selectListBorder:(0,r.GuP)(r.sIe),listBackground:void 0,listActiveSelectionBackground:void 0,listActiveSelectionForeground:void 0,listActiveSelectionIconForeground:void 0,listFocusAndSelectionBackground:void 0,listDropOverBackground:void 0,listDropBetweenBackground:void 0,listInactiveSelectionBackground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusBackground:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listFocusAndSelectionForeground:void 0,listFocusAndSelectionOutline:void 0,listInactiveFocusForeground:void 0,tableColumnsBorder:void 0,tableOddRowsBackgroundColor:void 0,treeIndentGuidesStroke:void 0,treeInactiveIndentGuidesStroke:void 0},m={shadowColor:(0,r.GuP)(r.f9l),borderColor:(0,r.GuP)(r.g$2),foregroundColor:(0,r.GuP)(r.dd_),backgroundColor:(0,r.GuP)(r.c6Y),selectionForegroundColor:(0,r.GuP)(r.pmr),selectionBackgroundColor:(0,r.GuP)(r.Ux$),selectionBorderColor:(0,r.GuP)(r.SNb),separatorColor:(0,r.GuP)(r.D7X),scrollbarShadow:(0,r.GuP)(r.bXl),scrollbarSliderBackground:(0,r.GuP)(r.gnV),scrollbarSliderHoverBackground:(0,r.GuP)(r.cI_),scrollbarSliderActiveBackground:(0,r.GuP)(r.mhZ)}},"./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js":function(pt,Me,e){e.d(Me,{FdG:function(){return f},buw:function(){return E},GuP:function(){return I},Bbc:function(){return x},HP_:function(){return S},WMx:function(){return te},zRE:function(){return D},sAS:function(){return Ae},vV$:function(){return Tt},etE:function(){return dt},mc0:function(){return at},XJc:function(){return zn},raQ:function(){return hi},G_h:function(){return kn},T9h:function(){return ni},xOA:function(){return Yi},Inn:function(){return ji},nZG:function(){return Ei},Q1$:function(){return Pn},OcU:function(){return Ri},C5U:function(){return Lo},t0B:function(){return no},b1q:function(){return T},EY1:function(){return Nn},ZEf:function(){return Vn},Gj6:function(){return Yn},ld8:function(){return ze},$BZ:function(){return Ke},GNm:function(){return Di},Ztu:function(){return Ue},YtV:function(){return ee},AN$:function(){return me},Rbi:function(){return ae},Ubg:function(){return Mt},ECk:function(){return Jt},S5J:function(){return Nt},By2:function(){return De},i61:function(){return We},WfR:function(){return vt},oZ8:function(){return _n},tan:function(){return Kt},IIb:function(){return Le},pOz:function(){return de},WL6:function(){return Hn},P6i:function(){return An},B2L:function(){return ri},sjA:function(){return yi},_pU:function(){return mi},HwT:function(){return Kn},seu:function(){return lt},rm4:function(){return Et},QwA:function(){return Zt},whs:function(){return fe},Stt:function(){return oe},Hng:function(){return le},CgL:function(){return q},sIe:function(){return ge},FiB:function(){return ye},tAP:function(){return A},CU6:function(){return j},t4B:function(){return P},c1f:function(){return yn},uNK:function(){return vi},$$0:function(){return ht},L4c:function(){return Wn},Zgs:function(){return ui},cws:function(){return Qn},_$n:function(){return Lt},eYZ:function(){return Xt},h9z:function(){return Qt},I$A:function(){return Q},YSW:function(){return Re},L9Z:function(){return ce},ULt:function(){return Fe},C1n:function(){return wt},T5N:function(){return Ze},HDX:function(){return To},zUX:function(){return yo},Qfh:function(){return Vi},eUu:function(){return co},Rjz:function(){return Go},GVV:function(){return bo},fED:function(){return wo},yIp:function(){return hr},Yoe:function(){return Gs},pnl:function(){return Eo},P9Z:function(){return Po},fiM:function(){return Qs},H8q:function(){return hs},gtq:function(){return zs},VFX:function(){return uo},efJ:function(){return So},eMz:function(){return Qo},p7Y:function(){return Us},QI5:function(){return os},lO1:function(){return Vo},QRv:function(){return is},CQ3:function(){return Ks},ijf:function(){return ur},uNx:function(){return Rs},f4y:function(){return $o},C9U:function(){return Os},c6Y:function(){return qi},g$2:function(){return ms},dd_:function(){return as},Ux$:function(){return es},SNb:function(){return As},pmr:function(){return gs},D7X:function(){return Zs},ILr:function(){return yt},yLC:function(){return $e},AjU:function(){return ti},K1Z:function(){return jt},KoI:function(){return Rn},yr0:function(){return Un},Xp1:function(){return Jn},uMG:function(){return cn},yLr:function(){return u},fAP:function(){return Dn},z5H:function(){return On},iwL:function(){return Xs},NBf:function(){return gr},tYX:function(){return Bn},bNw:function(){return $n},JPj:function(){return oi},BTi:function(){return _e},ELA:function(){return Yo},HJZ:function(){return mr},AlL:function(){return fr},nH:function(){return Wo},c7i:function(){return fs},er1:function(){return ts},x1A:function(){return s},bXl:function(){return he},mhZ:function(){return Pe},gnV:function(){return ve},cI_:function(){return Ce},rvE:function(){return $t},HcB:function(){return Cn},yqq:function(){return un},lWP:function(){return on},k5u:function(){return Ys},sbQ:function(){return Co},vwp:function(){return $},JO0:function(){return m},pft:function(){return Uo},U4U:function(){return rs},DSL:function(){return bt},f9l:function(){return it}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/assert.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js");function x(wi){return`--vscode-${wi.replace(/\./g,"-")}`}function I(wi){return`var(${x(wi)})`}function S(wi,Pi){return`var(${x(wi)}, ${Pi})`}const f={ColorContribution:"base.contributions.colors"};class d{constructor(){this._onDidChangeSchema=new M.vl,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}registerColor(Pi,eo,oo,xo=!1,jo){const fo={id:Pi,description:oo,defaults:eo,needsTransparency:xo,deprecationMessage:jo};this.colorsById[Pi]=fo;const ko={type:"string",description:oo,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return jo&&(ko.deprecationMessage=jo),xo&&(ko.pattern="^#(?:(?[0-9a-fA-f]{3}[0-9a-eA-E])|(?:[0-9a-fA-F]{6}(?:(?![fF]{2})(?:[0-9a-fA-F]{2}))))?$",ko.patternErrorMessage="This color must be transparent or it will obscure content"),this.colorSchema.properties[Pi]=ko,this.colorReferenceSchema.enum.push(Pi),this.colorReferenceSchema.enumDescriptions.push(oo),this._onDidChangeSchema.fire(),Pi}getColors(){return Object.keys(this.colorsById).map(Pi=>this.colorsById[Pi])}resolveDefaultColor(Pi,eo){const oo=this.colorsById[Pi];if(oo&&oo.defaults){const xo=oo.defaults[eo.type];return v(xo,eo)}}getColorSchema(){return this.colorSchema}toString(){const Pi=(eo,oo)=>{const xo=eo.indexOf(".")===-1?0:1,jo=oo.indexOf(".")===-1?0:1;return xo!==jo?xo-jo:eo.localeCompare(oo)};return Object.keys(this.colorsById).sort(Pi).map(eo=>`- \`${eo}\`: ${this.colorsById[eo].description}`).join(` `)}}const a=new d;g.O.add(f.ColorContribution,a);function s(wi,Pi,eo,oo,xo){return a.registerColor(wi,Pi,eo,oo,xo)}function n(wi,Pi){var eo,oo,xo,jo;switch(wi.op){case 0:return(eo=v(wi.value,Pi))===null||eo===void 0?void 0:eo.darken(wi.factor);case 1:return(oo=v(wi.value,Pi))===null||oo===void 0?void 0:oo.lighten(wi.factor);case 2:return(xo=v(wi.value,Pi))===null||xo===void 0?void 0:xo.transparent(wi.factor);case 3:{const fo=v(wi.background,Pi);return fo?(jo=v(wi.value,Pi))===null||jo===void 0?void 0:jo.makeOpaque(fo):v(wi.value,Pi)}case 4:for(const fo of wi.values){const ko=v(fo,Pi);if(ko)return ko}return;case 6:return v(Pi.defines(wi.if)?wi.then:wi.else,Pi);case 5:{const fo=v(wi.value,Pi);if(!fo)return;const ko=v(wi.background,Pi);return ko?fo.isDarkerThan(ko)?k.Q1.getLighterColor(fo,ko,wi.factor).transparent(wi.transparency):k.Q1.getDarkerColor(fo,ko,wi.factor).transparent(wi.transparency):fo.transparent(wi.factor*wi.transparency)}default:throw(0,r.xb)(wi)}}function i(wi,Pi){return{op:0,value:wi,factor:Pi}}function c(wi,Pi){return{op:1,value:wi,factor:Pi}}function m(wi,Pi){return{op:2,value:wi,factor:Pi}}function u(...wi){return{op:4,values:wi}}function C(wi,Pi,eo){return{op:6,if:wi,then:Pi,else:eo}}function h(wi,Pi,eo,oo){return{op:5,value:wi,background:Pi,factor:eo,transparency:oo}}function v(wi,Pi){if(wi!==null){if(typeof wi=="string")return wi[0]==="#"?k.Q1.fromHex(wi):Pi.getColor(wi);if(wi instanceof k.Q1)return wi;if(typeof wi=="object")return n(wi,Pi)}}const p="vscode://schemas/workbench-colors",b=g.O.as(L.F.JSONContribution);b.registerSchema(p,a.getColorSchema());const O=new F.uC(()=>b.notifySchemaChanged(p),200);a.onDidChangeSchema(()=>{O.isScheduled()||O.schedule()});var w=e("./node_modules/monaco-editor/esm/vs/nls.js");const j=s("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},w.kg("foreground","Overall foreground color. This color is only used if not overridden by a component.")),U=s("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},w.kg("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),K=s("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},w.kg("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),G=s("descriptionForeground",{light:"#717171",dark:m(j,.7),hcDark:m(j,.7),hcLight:m(j,.7)},w.kg("descriptionForeground","Foreground color for description text providing additional information, for example for a label.")),P=s("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},w.kg("iconForeground","The default color for icons in the workbench.")),A=s("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},w.kg("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),T=s("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},w.kg("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),E=s("contrastActiveBorder",{light:null,dark:null,hcDark:A,hcLight:A},w.kg("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),W=s("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},w.kg("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor.")),$=s("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},w.kg("textLinkForeground","Foreground color for links in text.")),z=s("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},w.kg("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),J=s("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:k.Q1.black,hcLight:"#292929"},w.kg("textSeparatorForeground","Color for text separators.")),B=s("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},w.kg("textPreformatForeground","Foreground color for preformatted text segments.")),V=s("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},w.kg("textPreformatBackground","Background color for preformatted text segments.")),Y=s("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},w.kg("textBlockQuoteBackground","Background color for block quotes in text.")),X=s("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:k.Q1.white,hcLight:"#292929"},w.kg("textBlockQuoteBorder","Border color for block quotes in text.")),ie=s("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:k.Q1.black,hcLight:"#F2F2F2"},w.kg("textCodeBlockBackground","Background color for code blocks in text.")),re=s("sash.hoverBorder",{dark:A,light:A,hcDark:A,hcLight:A},w.kg("sashActiveBorder","Border color of active sashes.")),te=s("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hcDark:k.Q1.black,hcLight:"#0F4A85"},w.kg("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),D=s("badge.foreground",{dark:k.Q1.white,light:"#333",hcDark:k.Q1.white,hcLight:k.Q1.white},w.kg("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),he=s("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hcDark:null,hcLight:null},w.kg("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ve=s("scrollbarSlider.background",{dark:k.Q1.fromHex("#797979").transparent(.4),light:k.Q1.fromHex("#646464").transparent(.4),hcDark:m(T,.6),hcLight:m(T,.4)},w.kg("scrollbarSliderBackground","Scrollbar slider background color.")),Ce=s("scrollbarSlider.hoverBackground",{dark:k.Q1.fromHex("#646464").transparent(.7),light:k.Q1.fromHex("#646464").transparent(.7),hcDark:m(T,.8),hcLight:m(T,.8)},w.kg("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Pe=s("scrollbarSlider.activeBackground",{dark:k.Q1.fromHex("#BFBFBF").transparent(.4),light:k.Q1.fromHex("#000000").transparent(.6),hcDark:T,hcLight:T},w.kg("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),_e=s("progressBar.background",{dark:k.Q1.fromHex("#0E70C0"),light:k.Q1.fromHex("#0E70C0"),hcDark:T,hcLight:T},w.kg("progressBarBackground","Background color of the progress bar that can show for long running operations.")),ee=s("editor.background",{light:"#ffffff",dark:"#1E1E1E",hcDark:k.Q1.black,hcLight:k.Q1.white},w.kg("editorBackground","Editor background color.")),De=s("editor.foreground",{light:"#333333",dark:"#BBBBBB",hcDark:k.Q1.white,hcLight:j},w.kg("editorForeground","Editor default foreground color.")),Te=s("editorStickyScroll.background",{light:ee,dark:ee,hcDark:ee,hcLight:ee},w.kg("editorStickyScrollBackground","Background color of sticky scroll in the editor")),He=s("editorStickyScrollHover.background",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:null,hcLight:k.Q1.fromHex("#0F4A85").transparent(.1)},w.kg("editorStickyScrollHoverBackground","Background color of sticky scroll on hover in the editor")),qe=s("editorStickyScroll.border",{dark:null,light:null,hcDark:T,hcLight:T},w.kg("editorStickyScrollBorder","Border color of sticky scroll in the editor")),Qe=s("editorStickyScroll.shadow",{dark:he,light:he,hcDark:he,hcLight:he},w.kg("editorStickyScrollShadow"," Shadow color of sticky scroll in the editor")),q=s("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hcDark:"#0C141F",hcLight:k.Q1.white},w.kg("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),ye=s("editorWidget.foreground",{dark:j,light:j,hcDark:j,hcLight:j},w.kg("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),ge=s("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hcDark:T,hcLight:T},w.kg("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),be=s("editorWidget.resizeBorder",{light:null,dark:null,hcDark:null,hcLight:null},w.kg("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),Se=s("editorError.background",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("editorError.background","Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),ae=s("editorError.foreground",{dark:"#F14C4C",light:"#E51400",hcDark:"#F48771",hcLight:"#B5200D"},w.kg("editorError.foreground","Foreground color of error squigglies in the editor.")),me=s("editorError.border",{dark:null,light:null,hcDark:k.Q1.fromHex("#E47777").transparent(.8),hcLight:"#B5200D"},w.kg("errorBorder","If set, color of double underlines for errors in the editor.")),fe=s("editorWarning.background",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("editorWarning.background","Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),le=s("editorWarning.foreground",{dark:"#CCA700",light:"#BF8803",hcDark:"#FFD370",hcLight:"#895503"},w.kg("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),oe=s("editorWarning.border",{dark:null,light:null,hcDark:k.Q1.fromHex("#FFCC00").transparent(.8),hcLight:k.Q1.fromHex("#FFCC00").transparent(.8)},w.kg("warningBorder","If set, color of double underlines for warnings in the editor.")),ne=s("editorInfo.background",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("editorInfo.background","Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations."),!0),de=s("editorInfo.foreground",{dark:"#3794FF",light:"#1a85ff",hcDark:"#3794FF",hcLight:"#1a85ff"},w.kg("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Le=s("editorInfo.border",{dark:null,light:null,hcDark:k.Q1.fromHex("#3794FF").transparent(.8),hcLight:"#292929"},w.kg("infoBorder","If set, color of double underlines for infos in the editor.")),We=s("editorHint.foreground",{dark:k.Q1.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hcDark:null,hcLight:null},w.kg("editorHint.foreground","Foreground color of hint squigglies in the editor.")),we=s("editorHint.border",{dark:null,light:null,hcDark:k.Q1.fromHex("#eeeeee").transparent(.8),hcLight:"#292929"},w.kg("hintBorder","If set, color of double underlines for hints in the editor.")),Ue=s("editorLink.activeForeground",{dark:"#4E94CE",light:k.Q1.blue,hcDark:k.Q1.cyan,hcLight:"#292929"},w.kg("activeLinkForeground","Color of active links.")),lt=s("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hcDark:"#f3f518",hcLight:"#0F4A85"},w.kg("editorSelectionBackground","Color of the editor selection.")),Et=s("editor.selectionForeground",{light:null,dark:null,hcDark:"#000000",hcLight:k.Q1.white},w.kg("editorSelectionForeground","Color of the selected text for high contrast.")),Kt=s("editor.inactiveSelectionBackground",{light:m(lt,.5),dark:m(lt,.5),hcDark:m(lt,.7),hcLight:m(lt,.5)},w.kg("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Zt=s("editor.selectionHighlightBackground",{light:h(lt,ee,.3,.6),dark:h(lt,ee,.3,.6),hcDark:null,hcLight:null},w.kg("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),qt=s("editor.selectionHighlightBorder",{light:null,dark:null,hcDark:E,hcLight:E},w.kg("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),tt=s("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hcDark:null,hcLight:null},w.kg("editorFindMatch","Color of the current search match.")),Mt=s("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hcDark:null,hcLight:null},w.kg("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Ht=s("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hcDark:null,hcLight:null},w.kg("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),xt=s("editor.findMatchBorder",{light:null,dark:null,hcDark:E,hcLight:E},w.kg("editorFindMatchBorder","Border color of the current search match.")),Jt=s("editor.findMatchHighlightBorder",{light:null,dark:null,hcDark:E,hcLight:E},w.kg("findMatchHighlightBorder","Border color of the other search matches.")),Nt=s("editor.findRangeHighlightBorder",{dark:null,light:null,hcDark:m(E,.4),hcLight:m(E,.4)},w.kg("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Be=s("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hcDark:"#ADD6FF26",hcLight:null},w.kg("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),vt=s("editorHoverWidget.background",{light:q,dark:q,hcDark:q,hcLight:q},w.kg("hoverBackground","Background color of the editor hover.")),Gt=s("editorHoverWidget.foreground",{light:ye,dark:ye,hcDark:ye,hcLight:ye},w.kg("hoverForeground","Foreground color of the editor hover.")),_n=s("editorHoverWidget.border",{light:ge,dark:ge,hcDark:ge,hcLight:ge},w.kg("hoverBorder","Border color of the editor hover.")),Fn=s("editorHoverWidget.statusBarBackground",{dark:c(vt,.2),light:i(vt,.05),hcDark:q,hcLight:q},w.kg("statusBarBackground","Background color of the editor hover status bar.")),An=s("editorInlayHint.foreground",{dark:"#969696",light:"#969696",hcDark:k.Q1.white,hcLight:k.Q1.black},w.kg("editorInlayHintForeground","Foreground color of inline hints")),Hn=s("editorInlayHint.background",{dark:m(te,.1),light:m(te,.1),hcDark:m(k.Q1.white,.1),hcLight:m(te,.1)},w.kg("editorInlayHintBackground","Background color of inline hints")),Kn=s("editorInlayHint.typeForeground",{dark:An,light:An,hcDark:An,hcLight:An},w.kg("editorInlayHintForegroundTypes","Foreground color of inline hints for types")),mi=s("editorInlayHint.typeBackground",{dark:Hn,light:Hn,hcDark:Hn,hcLight:Hn},w.kg("editorInlayHintBackgroundTypes","Background color of inline hints for types")),yi=s("editorInlayHint.parameterForeground",{dark:An,light:An,hcDark:An,hcLight:An},w.kg("editorInlayHintForegroundParameter","Foreground color of inline hints for parameters")),ri=s("editorInlayHint.parameterBackground",{dark:Hn,light:Hn,hcDark:Hn,hcLight:Hn},w.kg("editorInlayHintBackgroundParameter","Background color of inline hints for parameters")),fi=s("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hcDark:"#FFCC00",hcLight:"#007ACC"},w.kg("editorLightBulbForeground","The color used for the lightbulb actions icon.")),Mi=s("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},w.kg("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),xi=s("editorLightBulbAi.foreground",{dark:fi,light:fi,hcDark:fi,hcLight:fi},w.kg("editorLightBulbAiForeground","The color used for the lightbulb AI icon.")),ci=s("editor.snippetTabstopHighlightBackground",{dark:new k.Q1(new k.bU(124,124,124,.3)),light:new k.Q1(new k.bU(10,50,100,.2)),hcDark:new k.Q1(new k.bU(124,124,124,.3)),hcLight:new k.Q1(new k.bU(10,50,100,.2))},w.kg("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Ii=s("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Si=s("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Ti=s("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new k.Q1(new k.bU(10,50,100,.5)),hcDark:"#525252",hcLight:"#292929"},w.kg("snippetFinalTabstopHighlightBorder","Highlight border color of the final tabstop of a snippet.")),Nn=new k.Q1(new k.bU(155,185,85,.2)),Vn=new k.Q1(new k.bU(255,0,0,.2)),Yn=s("diffEditor.insertedTextBackground",{dark:"#9ccc2c33",light:"#9ccc2c40",hcDark:null,hcLight:null},w.kg("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Di=s("diffEditor.removedTextBackground",{dark:"#ff000033",light:"#ff000033",hcDark:null,hcLight:null},w.kg("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ai=s("diffEditor.insertedLineBackground",{dark:Nn,light:Nn,hcDark:null,hcLight:null},w.kg("diffEditorInsertedLines","Background color for lines that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),Sn=s("diffEditor.removedLineBackground",{dark:Vn,light:Vn,hcDark:null,hcLight:null},w.kg("diffEditorRemovedLines","Background color for lines that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Ye=s("diffEditorGutter.insertedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("diffEditorInsertedLineGutter","Background color for the margin where lines got inserted.")),mt=s("diffEditorGutter.removedLineBackground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("diffEditorRemovedLineGutter","Background color for the margin where lines got removed.")),ze=s("diffEditorOverview.insertedForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("diffEditorOverviewInserted","Diff overview ruler foreground for inserted content.")),Ke=s("diffEditorOverview.removedForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("diffEditorOverviewRemoved","Diff overview ruler foreground for removed content.")),Je=s("diffEditor.insertedTextBorder",{dark:null,light:null,hcDark:"#33ff2eff",hcLight:"#374E06"},w.kg("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Ne=s("diffEditor.removedTextBorder",{dark:null,light:null,hcDark:"#FF008F",hcLight:"#AD0707"},w.kg("diffEditorRemovedOutline","Outline color for text that got removed.")),ft=s("diffEditor.border",{dark:null,light:null,hcDark:T,hcLight:T},w.kg("diffEditorBorder","Border color between the two text editors.")),St=s("diffEditor.diagonalFill",{dark:"#cccccc33",light:"#22222233",hcDark:null,hcLight:null},w.kg("diffDiagonalFill","Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.")),rt=s("diffEditor.unchangedRegionBackground",{dark:"sideBar.background",light:"sideBar.background",hcDark:"sideBar.background",hcLight:"sideBar.background"},w.kg("diffEditor.unchangedRegionBackground","The background color of unchanged blocks in the diff editor.")),Ge=s("diffEditor.unchangedRegionForeground",{dark:"foreground",light:"foreground",hcDark:"foreground",hcLight:"foreground"},w.kg("diffEditor.unchangedRegionForeground","The foreground color of unchanged blocks in the diff editor.")),nt=s("diffEditor.unchangedCodeBackground",{dark:"#74747429",light:"#b8b8b829",hcDark:null,hcLight:null},w.kg("diffEditor.unchangedCodeBackground","The background color of unchanged code in the diff editor.")),it=s("widget.shadow",{dark:m(k.Q1.black,.36),light:m(k.Q1.black,.16),hcDark:null,hcLight:null},w.kg("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),bt=s("widget.border",{dark:null,light:null,hcDark:T,hcLight:T},w.kg("widgetBorder","Border color of widgets such as find/replace inside the editor.")),Dt=s("toolbar.hoverBackground",{dark:"#5a5d5e50",light:"#b8b8b850",hcDark:null,hcLight:null},w.kg("toolbarHoverBackground","Toolbar background when hovering over actions using the mouse")),At=s("toolbar.hoverOutline",{dark:null,light:null,hcDark:E,hcLight:E},w.kg("toolbarHoverOutline","Toolbar outline when hovering over actions using the mouse")),et=s("toolbar.activeBackground",{dark:c(Dt,.1),light:i(Dt,.1),hcDark:null,hcLight:null},w.kg("toolbarActiveBackground","Toolbar background when holding the mouse over actions")),at=s("breadcrumb.foreground",{light:m(j,.8),dark:m(j,.8),hcDark:m(j,.8),hcLight:m(j,.8)},w.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),Tt=s("breadcrumb.background",{light:ee,dark:ee,hcDark:ee,hcLight:ee},w.kg("breadcrumbsBackground","Background color of breadcrumb items.")),dt=s("breadcrumb.focusForeground",{light:i(j,.2),dark:c(j,.1),hcDark:c(j,.1),hcLight:c(j,.1)},w.kg("breadcrumbsFocusForeground","Color of focused breadcrumb items.")),Ae=s("breadcrumb.activeSelectionForeground",{light:i(j,.2),dark:c(j,.1),hcDark:c(j,.1),hcLight:c(j,.1)},w.kg("breadcrumbsSelectedForeground","Color of selected breadcrumb items.")),ct=s("breadcrumbPicker.background",{light:q,dark:q,hcDark:q,hcLight:q},w.kg("breadcrumbsSelectedBackground","Background color of breadcrumb item picker.")),ut=.5,je=k.Q1.fromHex("#40C8AE").transparent(ut),Rt=k.Q1.fromHex("#40A6FF").transparent(ut),Ft=k.Q1.fromHex("#606060").transparent(.4),ln=.4,vn=1,Ln=s("merge.currentHeaderBackground",{dark:je,light:je,hcDark:null,hcLight:null},w.kg("mergeCurrentHeaderBackground","Current header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),En=s("merge.currentContentBackground",{dark:m(Ln,ln),light:m(Ln,ln),hcDark:m(Ln,ln),hcLight:m(Ln,ln)},w.kg("mergeCurrentContentBackground","Current content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),In=s("merge.incomingHeaderBackground",{dark:Rt,light:Rt,hcDark:null,hcLight:null},w.kg("mergeIncomingHeaderBackground","Incoming header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),ei=s("merge.incomingContentBackground",{dark:m(In,ln),light:m(In,ln),hcDark:m(In,ln),hcLight:m(In,ln)},w.kg("mergeIncomingContentBackground","Incoming content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),en=s("merge.commonHeaderBackground",{dark:Ft,light:Ft,hcDark:null,hcLight:null},w.kg("mergeCommonHeaderBackground","Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),xe=s("merge.commonContentBackground",{dark:m(en,ln),light:m(en,ln),hcDark:m(en,ln),hcLight:m(en,ln)},w.kg("mergeCommonContentBackground","Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations."),!0),st=s("merge.border",{dark:null,light:null,hcDark:"#C3DF6F",hcLight:"#007ACC"},w.kg("mergeBorder","Border color on headers and the splitter in inline merge-conflicts.")),Wt=s("editorOverviewRuler.currentContentForeground",{dark:m(Ln,vn),light:m(Ln,vn),hcDark:st,hcLight:st},w.kg("overviewRulerCurrentContentForeground","Current overview ruler foreground for inline merge-conflicts.")),rn=s("editorOverviewRuler.incomingContentForeground",{dark:m(In,vn),light:m(In,vn),hcDark:st,hcLight:st},w.kg("overviewRulerIncomingContentForeground","Incoming overview ruler foreground for inline merge-conflicts.")),hn=s("editorOverviewRuler.commonContentForeground",{dark:m(en,vn),light:m(en,vn),hcDark:st,hcLight:st},w.kg("overviewRulerCommonContentForeground","Common ancestor overview ruler foreground for inline merge-conflicts.")),Dn=s("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hcDark:"#AB5A00",hcLight:""},w.kg("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),On=s("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},w.kg("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Bn=s("problemsErrorIcon.foreground",{dark:ae,light:ae,hcDark:ae,hcLight:ae},w.kg("problemsErrorIconForeground","The color used for the problems error icon.")),oi=s("problemsWarningIcon.foreground",{dark:le,light:le,hcDark:le,hcLight:le},w.kg("problemsWarningIconForeground","The color used for the problems warning icon.")),$n=s("problemsInfoIcon.foreground",{dark:de,light:de,hcDark:de,hcLight:de},w.kg("problemsInfoIconForeground","The color used for the problems info icon.")),ti=s("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hcDark:"#AB5A00",hcLight:"#0F4A85"},w.kg("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),Jn=s("minimap.selectionOccurrenceHighlight",{light:"#c9c9c9",dark:"#676767",hcDark:"#ffffff",hcLight:"#0F4A85"},w.kg("minimapSelectionOccurrenceHighlight","Minimap marker color for repeating editor selections."),!0),Un=s("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hcDark:"#ffffff",hcLight:"#0F4A85"},w.kg("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),Rn=s("minimap.infoHighlight",{dark:de,light:de,hcDark:Le,hcLight:Le},w.kg("minimapInfo","Minimap marker color for infos.")),cn=s("minimap.warningHighlight",{dark:le,light:le,hcDark:oe,hcLight:oe},w.kg("overviewRuleWarning","Minimap marker color for warnings.")),$e=s("minimap.errorHighlight",{dark:new k.Q1(new k.bU(255,18,18,.7)),light:new k.Q1(new k.bU(255,18,18,.7)),hcDark:new k.Q1(new k.bU(255,50,50,1)),hcLight:"#B5200D"},w.kg("minimapError","Minimap marker color for errors.")),yt=s("minimap.background",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("minimapBackground","Minimap background color.")),jt=s("minimap.foregroundOpacity",{dark:k.Q1.fromHex("#000f"),light:k.Q1.fromHex("#000f"),hcDark:k.Q1.fromHex("#000f"),hcLight:k.Q1.fromHex("#000f")},w.kg("minimapForegroundOpacity",'Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.')),Vt=s("minimapSlider.background",{light:m(ve,.5),dark:m(ve,.5),hcDark:m(ve,.5),hcLight:m(ve,.5)},w.kg("minimapSliderBackground","Minimap slider background color.")),Ut=s("minimapSlider.hoverBackground",{light:m(Ce,.5),dark:m(Ce,.5),hcDark:m(Ce,.5),hcLight:m(Ce,.5)},w.kg("minimapSliderHoverBackground","Minimap slider background color when hovering.")),sn=s("minimapSlider.activeBackground",{light:m(Pe,.5),dark:m(Pe,.5),hcDark:m(Pe,.5),hcLight:m(Pe,.5)},w.kg("minimapSliderActiveBackground","Minimap slider background color when clicked on.")),zt=s("charts.foreground",{dark:j,light:j,hcDark:j,hcLight:j},w.kg("chartsForeground","The foreground color used in charts.")),kt=s("charts.lines",{dark:m(j,.5),light:m(j,.5),hcDark:m(j,.5),hcLight:m(j,.5)},w.kg("chartsLines","The color used for horizontal lines in charts.")),an=s("charts.red",{dark:ae,light:ae,hcDark:ae,hcLight:ae},w.kg("chartsRed","The red color used in chart visualizations.")),dn=s("charts.blue",{dark:de,light:de,hcDark:de,hcLight:de},w.kg("chartsBlue","The blue color used in chart visualizations.")),bn=s("charts.yellow",{dark:le,light:le,hcDark:le,hcLight:le},w.kg("chartsYellow","The yellow color used in chart visualizations.")),xn=s("charts.orange",{dark:ti,light:ti,hcDark:ti,hcLight:ti},w.kg("chartsOrange","The orange color used in chart visualizations.")),jn=s("charts.green",{dark:"#89D185",light:"#388A34",hcDark:"#89D185",hcLight:"#374e06"},w.kg("chartsGreen","The green color used in chart visualizations.")),pn=s("charts.purple",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},w.kg("chartsPurple","The purple color used in chart visualizations.")),Wn=s("input.background",{dark:"#3C3C3C",light:k.Q1.white,hcDark:k.Q1.black,hcLight:k.Q1.white},w.kg("inputBoxBackground","Input box background.")),Qn=s("input.foreground",{dark:j,light:j,hcDark:j,hcLight:j},w.kg("inputBoxForeground","Input box foreground.")),ui=s("input.border",{dark:null,light:null,hcDark:T,hcLight:T},w.kg("inputBoxBorder","Input box border.")),vi=s("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hcDark:T,hcLight:T},w.kg("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),qn=s("inputOption.hoverBackground",{dark:"#5a5d5e80",light:"#b8b8b850",hcDark:null,hcLight:null},w.kg("inputOption.hoverBackground","Background color of activated options in input fields.")),yn=s("inputOption.activeBackground",{dark:m(A,.4),light:m(A,.2),hcDark:k.Q1.transparent,hcLight:k.Q1.transparent},w.kg("inputOption.activeBackground","Background hover color of options in input fields.")),ht=s("inputOption.activeForeground",{dark:k.Q1.white,light:k.Q1.black,hcDark:j,hcLight:j},w.kg("inputOption.activeForeground","Foreground color of activated options in input fields.")),R=s("input.placeholderForeground",{light:m(j,.5),dark:m(j,.5),hcDark:m(j,.7),hcLight:m(j,.7)},w.kg("inputPlaceholderForeground","Input box foreground color for placeholder text.")),Q=s("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hcDark:k.Q1.black,hcLight:k.Q1.white},w.kg("inputValidationInfoBackground","Input validation background color for information severity.")),ce=s("inputValidation.infoForeground",{dark:null,light:null,hcDark:null,hcLight:j},w.kg("inputValidationInfoForeground","Input validation foreground color for information severity.")),Re=s("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hcDark:T,hcLight:T},w.kg("inputValidationInfoBorder","Input validation border color for information severity.")),Fe=s("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hcDark:k.Q1.black,hcLight:k.Q1.white},w.kg("inputValidationWarningBackground","Input validation background color for warning severity.")),Ze=s("inputValidation.warningForeground",{dark:null,light:null,hcDark:null,hcLight:j},w.kg("inputValidationWarningForeground","Input validation foreground color for warning severity.")),wt=s("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hcDark:T,hcLight:T},w.kg("inputValidationWarningBorder","Input validation border color for warning severity.")),Lt=s("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hcDark:k.Q1.black,hcLight:k.Q1.white},w.kg("inputValidationErrorBackground","Input validation background color for error severity.")),Qt=s("inputValidation.errorForeground",{dark:null,light:null,hcDark:null,hcLight:j},w.kg("inputValidationErrorForeground","Input validation foreground color for error severity.")),Xt=s("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hcDark:T,hcLight:T},w.kg("inputValidationErrorBorder","Input validation border color for error severity.")),$t=s("dropdown.background",{dark:"#3C3C3C",light:k.Q1.white,hcDark:k.Q1.black,hcLight:k.Q1.white},w.kg("dropdownBackground","Dropdown background.")),on=s("dropdown.listBackground",{dark:null,light:null,hcDark:k.Q1.black,hcLight:k.Q1.white},w.kg("dropdownListBackground","Dropdown list background.")),un=s("dropdown.foreground",{dark:"#F0F0F0",light:j,hcDark:k.Q1.white,hcLight:j},w.kg("dropdownForeground","Dropdown foreground.")),Cn=s("dropdown.border",{dark:$t,light:"#CECECE",hcDark:T,hcLight:T},w.kg("dropdownBorder","Dropdown border.")),kn=s("button.foreground",{dark:k.Q1.white,light:k.Q1.white,hcDark:k.Q1.white,hcLight:k.Q1.white},w.kg("buttonForeground","Button foreground color.")),Pn=s("button.separator",{dark:m(kn,.4),light:m(kn,.4),hcDark:m(kn,.4),hcLight:m(kn,.4)},w.kg("buttonSeparator","Button separator color.")),zn=s("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},w.kg("buttonBackground","Button background color.")),ni=s("button.hoverBackground",{dark:c(zn,.2),light:i(zn,.2),hcDark:zn,hcLight:zn},w.kg("buttonHoverBackground","Button background color when hovering.")),hi=s("button.border",{dark:T,light:T,hcDark:T,hcLight:T},w.kg("buttonBorder","Button border color.")),ji=s("button.secondaryForeground",{dark:k.Q1.white,light:k.Q1.white,hcDark:k.Q1.white,hcLight:j},w.kg("buttonSecondaryForeground","Secondary button foreground color.")),Yi=s("button.secondaryBackground",{dark:"#3A3D41",light:"#5F6A79",hcDark:null,hcLight:k.Q1.white},w.kg("buttonSecondaryBackground","Secondary button background color.")),Ei=s("button.secondaryHoverBackground",{dark:c(Yi,.2),light:i(Yi,.2),hcDark:null,hcLight:null},w.kg("buttonSecondaryHoverBackground","Secondary button background color when hovering.")),Ri=s("checkbox.background",{dark:$t,light:$t,hcDark:$t,hcLight:$t},w.kg("checkbox.background","Background color of checkbox widget.")),ao=s("checkbox.selectBackground",{dark:q,light:q,hcDark:q,hcLight:q},w.kg("checkbox.select.background","Background color of checkbox widget when the element it's in is selected.")),no=s("checkbox.foreground",{dark:un,light:un,hcDark:un,hcLight:un},w.kg("checkbox.foreground","Foreground color of checkbox widget.")),Lo=s("checkbox.border",{dark:Cn,light:Cn,hcDark:Cn,hcLight:Cn},w.kg("checkbox.border","Border color of checkbox widget.")),Xi=s("checkbox.selectBorder",{dark:P,light:P,hcDark:P,hcLight:P},w.kg("checkbox.select.border","Border color of checkbox widget when the element it's in is selected.")),To=s("keybindingLabel.background",{dark:new k.Q1(new k.bU(128,128,128,.17)),light:new k.Q1(new k.bU(221,221,221,.4)),hcDark:k.Q1.transparent,hcLight:k.Q1.transparent},w.kg("keybindingLabelBackground","Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.")),co=s("keybindingLabel.foreground",{dark:k.Q1.fromHex("#CCCCCC"),light:k.Q1.fromHex("#555555"),hcDark:k.Q1.white,hcLight:j},w.kg("keybindingLabelForeground","Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.")),yo=s("keybindingLabel.border",{dark:new k.Q1(new k.bU(51,51,51,.6)),light:new k.Q1(new k.bU(204,204,204,.4)),hcDark:new k.Q1(new k.bU(111,195,223)),hcLight:T},w.kg("keybindingLabelBorder","Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.")),Vi=s("keybindingLabel.bottomBorder",{dark:new k.Q1(new k.bU(68,68,68,.6)),light:new k.Q1(new k.bU(187,187,187,.4)),hcDark:new k.Q1(new k.bU(111,195,223)),hcLight:j},w.kg("keybindingLabelBottomBorder","Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.")),uo=s("list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),So=s("list.focusForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Us=s("list.focusOutline",{dark:A,light:A,hcDark:E,hcLight:E},w.kg("listFocusOutline","List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),zs=s("list.focusAndSelectionOutline",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("listFocusAndSelectionOutline","List/Tree outline color for the focused item when the list/tree is active and selected. An active list/tree has keyboard focus, an inactive does not.")),Go=s("list.activeSelectionBackground",{dark:"#04395E",light:"#0060C0",hcDark:null,hcLight:k.Q1.fromHex("#0F4A85").transparent(.1)},w.kg("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),bo=s("list.activeSelectionForeground",{dark:k.Q1.white,light:k.Q1.white,hcDark:null,hcLight:null},w.kg("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),wo=s("list.activeSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("listActiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Rs=s("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hcDark:null,hcLight:k.Q1.fromHex("#0F4A85").transparent(.1)},w.kg("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),$o=s("list.inactiveSelectionForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Os=s("list.inactiveSelectionIconForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("listInactiveSelectionIconForeground","List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Ks=s("list.inactiveFocusBackground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),ur=s("list.inactiveFocusOutline",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("listInactiveFocusOutline","List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Vo=s("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hcDark:k.Q1.white.transparent(.1),hcLight:k.Q1.fromHex("#0F4A85").transparent(.1)},w.kg("listHoverBackground","List/Tree background when hovering over items using the mouse.")),is=s("list.hoverForeground",{dark:null,light:null,hcDark:null,hcLight:null},w.kg("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Gs=s("list.dropBackground",{dark:"#062F4A",light:"#D6EBFF",hcDark:null,hcLight:null},w.kg("listDropBackground","List/Tree drag and drop background when moving items over other items when using the mouse.")),hr=s("list.dropBetweenBackground",{dark:P,light:P,hcDark:null,hcLight:null},w.kg("listDropBetweenBackground","List/Tree drag and drop border color when moving items between items when using the mouse.")),os=s("list.highlightForeground",{dark:"#2AAAFF",light:"#0066BF",hcDark:A,hcLight:A},w.kg("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Qo=s("list.focusHighlightForeground",{dark:os,light:C(Go,os,"#BBE7FF"),hcDark:os,hcLight:os},w.kg("listFocusHighlightForeground","List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.")),zi=s("list.invalidItemForeground",{dark:"#B89500",light:"#B89500",hcDark:"#B89500",hcLight:"#B5200D"},w.kg("invalidItemForeground","List/Tree foreground color for invalid items, for example an unresolved root in explorer.")),$s=s("list.errorForeground",{dark:"#F88070",light:"#B01011",hcDark:null,hcLight:null},w.kg("listErrorForeground","Foreground color of list items containing errors.")),lo=s("list.warningForeground",{dark:"#CCA700",light:"#855F00",hcDark:null,hcLight:null},w.kg("listWarningForeground","Foreground color of list items containing warnings.")),Eo=s("listFilterWidget.background",{light:i(q,0),dark:c(q,0),hcDark:q,hcLight:q},w.kg("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Qs=s("listFilterWidget.outline",{dark:k.Q1.transparent,light:k.Q1.transparent,hcDark:"#f38518",hcLight:"#007ACC"},w.kg("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Po=s("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hcDark:T,hcLight:T},w.kg("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),hs=s("listFilterWidget.shadow",{dark:it,light:it,hcDark:it,hcLight:it},w.kg("listFilterWidgetShadow","Shadow color of the type filter widget in lists and trees.")),ss=s("list.filterMatchBackground",{dark:Mt,light:Mt,hcDark:null,hcLight:null},w.kg("listFilterMatchHighlight","Background color of the filtered match.")),io=s("list.filterMatchBorder",{dark:Jt,light:Jt,hcDark:T,hcLight:E},w.kg("listFilterMatchHighlightBorder","Border color of the filtered match.")),zr=s("list.deemphasizedForeground",{dark:"#8C8C8C",light:"#8E8E90",hcDark:"#A7A8A9",hcLight:"#666666"},w.kg("listDeemphasizedForeground","List/Tree foreground color for items that are deemphasized.")),rs=s("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hcDark:"#a9a9a9",hcLight:"#a5a5a5"},w.kg("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Uo=s("tree.inactiveIndentGuidesStroke",{dark:m(rs,.4),light:m(rs,.4),hcDark:m(rs,.4),hcLight:m(rs,.4)},w.kg("treeInactiveIndentGuidesStroke","Tree stroke color for the indentation guides that are not active.")),Ys=s("tree.tableColumnsBorder",{dark:"#CCCCCC20",light:"#61616120",hcDark:null,hcLight:null},w.kg("tableColumnsBorder","Table border color between columns.")),Co=s("tree.tableOddRowsBackground",{dark:m(j,.04),light:m(j,.04),hcDark:null,hcLight:null},w.kg("tableOddRowsBackgroundColor","Background color for odd table rows.")),ms=s("menu.border",{dark:null,light:null,hcDark:T,hcLight:T},w.kg("menuBorder","Border color of menus.")),as=s("menu.foreground",{dark:un,light:un,hcDark:un,hcLight:un},w.kg("menuForeground","Foreground color of menu items.")),qi=s("menu.background",{dark:$t,light:$t,hcDark:$t,hcLight:$t},w.kg("menuBackground","Background color of menu items.")),gs=s("menu.selectionForeground",{dark:bo,light:bo,hcDark:bo,hcLight:bo},w.kg("menuSelectionForeground","Foreground color of the selected menu item in menus.")),es=s("menu.selectionBackground",{dark:Go,light:Go,hcDark:Go,hcLight:Go},w.kg("menuSelectionBackground","Background color of the selected menu item in menus.")),As=s("menu.selectionBorder",{dark:null,light:null,hcDark:E,hcLight:E},w.kg("menuSelectionBorder","Border color of the selected menu item in menus.")),Zs=s("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:T,hcLight:T},w.kg("menuSeparatorBackground","Color of a separator menu item in menus.")),Yo=s("quickInput.background",{dark:q,light:q,hcDark:q,hcLight:q},w.kg("pickerBackground","Quick picker background color. The quick picker widget is the container for pickers like the command palette.")),mr=s("quickInput.foreground",{dark:ye,light:ye,hcDark:ye,hcLight:ye},w.kg("pickerForeground","Quick picker foreground color. The quick picker widget is the container for pickers like the command palette.")),ts=s("quickInputTitle.background",{dark:new k.Q1(new k.bU(255,255,255,.105)),light:new k.Q1(new k.bU(0,0,0,.06)),hcDark:"#000000",hcLight:k.Q1.white},w.kg("pickerTitleBackground","Quick picker title background color. The quick picker widget is the container for pickers like the command palette.")),gr=s("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hcDark:k.Q1.white,hcLight:"#0F4A85"},w.kg("pickerGroupForeground","Quick picker color for grouping labels.")),Xs=s("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hcDark:k.Q1.white,hcLight:"#0F4A85"},w.kg("pickerGroupBorder","Quick picker color for grouping borders.")),No=s("quickInput.list.focusBackground",{dark:null,light:null,hcDark:null,hcLight:null},"",void 0,w.kg("quickInput.list.focusBackground deprecation","Please use quickInputList.focusBackground instead")),Wo=s("quickInputList.focusForeground",{dark:bo,light:bo,hcDark:bo,hcLight:bo},w.kg("quickInput.listFocusForeground","Quick picker foreground color for the focused item.")),fs=s("quickInputList.focusIconForeground",{dark:wo,light:wo,hcDark:wo,hcLight:wo},w.kg("quickInput.listFocusIconForeground","Quick picker icon foreground color for the focused item.")),fr=s("quickInputList.focusBackground",{dark:u(No,Go),light:u(No,Go),hcDark:null,hcLight:null},w.kg("quickInput.listFocusBackground","Quick picker background color for the focused item.")),Zo=s("search.resultsInfoForeground",{light:j,dark:m(j,.65),hcDark:j,hcLight:j},w.kg("search.resultsInfoForeground","Color of the text in the search viewlet's completion message.")),pr=s("searchEditor.findMatchBackground",{light:m(Mt,.66),dark:m(Mt,.66),hcDark:Mt,hcLight:Mt},w.kg("searchEditor.queryMatch","Color of the Search Editor query matches.")),ps=s("searchEditor.findMatchBorder",{light:m(Jt,.66),dark:m(Jt,.66),hcDark:Jt,hcLight:Jt},w.kg("searchEditor.editorFindMatchBorder","Border color of the Search Editor query matches."))},"./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js":function(pt,Me,e){e.d(Me,{$_:function(){return p},HT:function(){return m},pU:function(){return c}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/codiconsUtil.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),I=e("./node_modules/monaco-editor/esm/vs/nls.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/jsonschemas/common/jsonContributionRegistry.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js");const d={IconContribution:"base.contributions.icons"};var a;(function(U){function K(G,P){let A=G.defaults;for(;M.L.isThemeIcon(A);){const T=i.getIcon(A.id);if(!T)return;A=T.defaults}return A}U.getDefinition=K})(a||(a={}));var s;(function(U){function K(P){return{weight:P.weight,style:P.style,src:P.src.map(A=>({format:A.format,location:A.location.toString()}))}}U.toJSONObject=K;function G(P){const A=T=>(0,g.Kg)(T)?T:void 0;if(P&&Array.isArray(P.src)&&P.src.every(T=>(0,g.Kg)(T.format)&&(0,g.Kg)(T.location)))return{weight:A(P.weight),style:A(P.style),src:P.src.map(T=>({format:T.format,location:x.r.parse(T.location)}))}}U.fromJSONObject=G})(s||(s={}));class n{constructor(){this._onDidChange=new L.vl,this.onDidChange=this._onDidChange.event,this.iconSchema={definitions:{icons:{type:"object",properties:{fontId:{type:"string",description:(0,I.kg)("iconDefinition.fontId","The id of the font to use. If not set, the font that is defined first is used.")},fontCharacter:{type:"string",description:(0,I.kg)("iconDefinition.fontCharacter","The font character associated with the icon definition.")}},additionalProperties:!1,defaultSnippets:[{body:{fontCharacter:"\\\\e030"}}]}},type:"object",properties:{}},this.iconReferenceSchema={type:"string",pattern:`^${M.L.iconNameExpression}$`,enum:[],enumDescriptions:[]},this.iconsById={},this.iconFontsById={}}registerIcon(K,G,P,A){const T=this.iconsById[K];if(T){if(P&&!T.description){T.description=P,this.iconSchema.properties[K].markdownDescription=`${P} $(${K})`;const $=this.iconReferenceSchema.enum.indexOf(K);$!==-1&&(this.iconReferenceSchema.enumDescriptions[$]=P),this._onDidChange.fire()}return T}const E={id:K,description:P,defaults:G,deprecationMessage:A};this.iconsById[K]=E;const W={$ref:"#/definitions/icons"};return A&&(W.deprecationMessage=A),P&&(W.markdownDescription=`${P}: $(${K})`),this.iconSchema.properties[K]=W,this.iconReferenceSchema.enum.push(K),this.iconReferenceSchema.enumDescriptions.push(P||""),this._onDidChange.fire(),{id:K}}getIcons(){return Object.keys(this.iconsById).map(K=>this.iconsById[K])}getIcon(K){return this.iconsById[K]}getIconSchema(){return this.iconSchema}toString(){const K=(T,E)=>T.id.localeCompare(E.id),G=T=>{for(;M.L.isThemeIcon(T.defaults);)T=this.iconsById[T.defaults.id];return`codicon codicon-${T?T.id:""}`},P=[];P.push("| preview | identifier | default codicon ID | description"),P.push("| ----------- | --------------------------------- | --------------------------------- | --------------------------------- |");const A=Object.keys(this.iconsById).map(T=>this.iconsById[T]);for(const T of A.filter(E=>!!E.description).sort(K))P.push(`||${T.id}|${M.L.isThemeIcon(T.defaults)?T.defaults.id:T.id}|${T.description||""}|`);P.push("| preview | identifier "),P.push("| ----------- | --------------------------------- |");for(const T of A.filter(E=>!M.L.isThemeIcon(E.defaults)).sort(K))P.push(`||${T.id}|`);return P.join(` `)}}const i=new n;f.O.add(d.IconContribution,i);function c(U,K,G,P){return i.registerIcon(U,K,G,P)}function m(){return i}function u(){const U=(0,k.J)();for(const K in U){const G="\\"+U[K].toString(16);i.registerIcon(K,{fontCharacter:G})}}u();const C="vscode://schemas/icons",h=f.O.as(S.F.JSONContribution);h.registerSchema(C,i.getIconSchema());const v=new r.uC(()=>h.notifySchemaChanged(C),200);i.onDidChange(()=>{v.isScheduled()||v.schedule()});const p=c("widget-close",F.W.close,(0,I.kg)("widgetClose","Icon for the close action in widgets.")),b=c("goto-previous-location",F.W.arrowUp,(0,I.kg)("previousChangeIcon","Icon for goto previous editor location.")),O=c("goto-next-location",F.W.arrowDown,(0,I.kg)("nextChangeIcon","Icon for goto next editor location.")),w=M.L.modify(F.W.sync,"spin"),j=M.L.modify(F.W.loading,"spin")},"./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js":function(pt,Me,e){e.d(Me,{Bb:function(){return F},HD:function(){return k},zM:function(){return r}});var r;(function(M){M.DARK="dark",M.LIGHT="light",M.HIGH_CONTRAST_DARK="hcDark",M.HIGH_CONTRAST_LIGHT="hcLight"})(r||(r={}));function F(M){return M===r.HIGH_CONTRAST_DARK||M===r.HIGH_CONTRAST_LIGHT}function k(M){return M===r.DARK||M===r.HIGH_CONTRAST_DARK}},"./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js":function(pt,Me,e){e.d(Me,{Fd:function(){return S},Gy:function(){return g},Pz:function(){return I},Yf:function(){return x},lR:function(){return s},zy:function(){return a}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js");const g=(0,k.u1)("themeService");function x(n){return{id:n}}function I(n){switch(n){case L.zM.DARK:return"vs-dark";case L.zM.HIGH_CONTRAST_DARK:return"hc-black";case L.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const S={ThemingContribution:"base.contributions.theming"};class f{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(i){return this.themingParticipants.push(i),this.onThemingParticipantAddedEmitter.fire(i),(0,F.s)(()=>{const c=this.themingParticipants.indexOf(i);this.themingParticipants.splice(c,1)})}getThemingParticipants(){return this.themingParticipants}}const d=new f;M.O.add(S.ThemingContribution,d);function a(n){return d.onColorThemeChange(n)}class s extends F.jG{constructor(i){super(),this.themeService=i,this.theme=i.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(c=>this.onThemeChange(c)))}onThemeChange(i){this.theme=i,this.updateStyles()}updateStyles(){}}},"./node_modules/monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js":function(pt,Me,e){e.d(Me,{$D:function(){return F},I_:function(){return M},To:function(){return k},Ym:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("undoRedoService");class k{constructor(x,I){this.resource=x,this.elements=I}}class M{constructor(){this.id=M._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}M._ID=0,M.None=new M;class L{constructor(){this.id=L._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}L._ID=0,L.None=new L},"./node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace.js":function(pt,Me,e){e.d(Me,{A7:function(){return I},Q_:function(){return d},VR:function(){return g},cn:function(){return m},ct:function(){return u},jB:function(){return x},kF:function(){return i},mX:function(){return n}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/path.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/ternarySearchTree.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const g=(0,L.u1)("contextService");function x(C){const h=C;return typeof h?.id=="string"&&M.r.isUri(h.uri)}function I(C){const h=C;return typeof h?.id=="string"&&!x(C)&&!a(C)}const S={id:"ext-dev"},f={id:"empty-window"};function d(C,h){if(typeof C=="string"||typeof C>"u")return typeof C=="string"?{id:(0,F.P8)(C)}:h?S:f;const v=C;return v.configuration?{id:v.id,configPath:v.configuration}:v.folders.length===1?{id:v.id,uri:v.folders[0].uri}:{id:v.id}}function a(C){const h=C;return typeof h?.id=="string"&&M.r.isUri(h.configPath)}class s{constructor(h,v,p,b,O){this._id=h,this._transient=p,this._configuration=b,this._ignorePathCasing=O,this._foldersMap=TernarySearchTree.forUris(this._ignorePathCasing,()=>!0),this.folders=v}get folders(){return this._folders}set folders(h){this._folders=h,this.updateFoldersMap()}get id(){return this._id}get transient(){return this._transient}get configuration(){return this._configuration}set configuration(h){this._configuration=h}getFolder(h){return h&&this._foldersMap.findSubstr(h)||null}updateFoldersMap(){this._foldersMap=TernarySearchTree.forUris(this._ignorePathCasing,()=>!0);for(const h of this.folders)this._foldersMap.set(h.uri,h)}toJSON(){return{id:this.id,folders:this.folders,transient:this.transient,configuration:this.configuration}}}class n{constructor(h,v){this.raw=v,this.uri=h.uri,this.index=h.index,this.name=h.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}const i="code-workspace",c=[{name:(0,r.kg)("codeWorkspace","Code Workspace"),extensions:[i]}],m="4064f6ec-cb38-4ad0-af64-ee6467e63c82";function u(C){return C.id===m}},"./node_modules/monaco-editor/esm/vs/platform/workspace/common/workspaceTrust.js":function(pt,Me,e){e.d(Me,{L:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("workspaceTrustManagementService")}}]);