This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
`:o,ot=Oe.length;let _t=N.embeddedLanguageData,Ot=N.stack,nn=0,fn=null,wn=!0;for(;wn||nn<ot;){const Xn=nn,bi=Ot.depth,ki=fn?fn.groups.length:0,Fi=Ot.state;let Hi=null,Gi=null,Li=null,to=null,Ao=null;if(fn){Hi=fn.matches;const Ui=fn.groups.shift();Gi=Ui.matched,Li=Ui.action,to=fn.rule,fn.groups.length===0&&(fn=null)}else{if(!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<ot&&(Hi=[Oe.charAt(nn)],Gi=Hi[0]),Li=this._lexer.defaultToken),Gi===null)break;for(nn+=Gi.length;xi(Li)&&Ii(Li)&&Li.test;)Li=Li.test(Gi,Hi,Fi,nn===ot);let ro=null;if(typeof Li=="string"||Array.isArray(Li))ro=Li;else if(Li.group)ro=Li.group;else if(Li.token!==null&&Li.token!==void 0){if(Li.tokenSubst?ro=Di(this._lexer,Li.token,Gi,Hi,Fi):ro=Li.token,Li.nextEmbedded)if(Li.nextEmbedded==="@pop"){if(!_t)throw Yn(this._lexer,"cannot pop embedded language if not inside one");_t=null}else{if(_t)throw Yn(this._lexer,"cannot enter embedded language from within an embedded language");Ao=Di(this._lexer,Li.nextEmbedded,Gi,Hi,Fi)}if(Li.goBack&&(nn=Math.max(0,nn-Li.goBack)),Li.switchTo&&typeof Li.switchTo=="string"){let Ui=Di(this._lexer,Li.switchTo,Gi,Hi,Fi);if(Ui[0]==="@"&&(Ui=Ui.substr(1)),Sn(this._lexer,Ui))Ot=Ot.switchTo(Ui);else throw Yn(this._lexer,"trying to switch to a state '"+Ui+"' that is undefined in rule: "+this._safeRuleName(to))}else{if(Li.transform&&typeof Li.transform=="function")throw Yn(this._lexer,"action.transform not supported");if(Li.next)if(Li.next==="@push"){if(Ot.depth>=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(nn<ot){const va=o.substr(nn);return this._nestedTokenize(va,_,Ge.create(Ot,vo),se+nn,ue)}else return Ge.create(Ot,vo)};if(Array.isArray(ro)){if(fn&&fn.groups.length>0)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;_o<Hi.length;_o++)Ui+=Hi[_o].length;if(Ui!==Gi.length)throw Yn(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+this._safeRuleName(to));fn={rule:to,matches:Hi,groups:[]};for(let _o=0;_o<ro.length;_o++)fn.groups[_o]={action:ro[_o],matched:Hi[_o+1]};nn-=Gi.length;continue}else{if(ro==="@rematch"&&(nn-=Gi.length,Gi="",Hi=null,ro="",Ao!==null))return Ts(Ao);if(Gi.length===0){if(ot===0||bi!==Ot.depth||Fi!==Ot.state||(fn?fn.groups.length:0)!==ki)continue;throw Yn(this._lexer,"no progress in tokenizer in rule: "+this._safeRuleName(to))}let Ui=null;if(ci(ro)&&ro.indexOf("@brackets")===0){const _o=ro.substr(9),vo=At(this._lexer,Gi);if(!vo)throw Yn(this._lexer,"@brackets token returned but no bracket defined as: "+Gi);Ui=Nn(vo.token+_o)}else{const _o=ro===""?"":ro+this._lexer.tokenPostfix;Ui=Nn(_o)}Xn<Ee&&ue.emit(Xn+se,Ui)}if(Ao!==null)return Ts(Ao)}return Ge.create(Ot,_t)}_getNestedEmbeddedLanguageData(o){if(!this._languageService.isRegisteredLanguageId(o))return new rt(o,Fn.r3);o!==this._languageId&&(this._languageService.requestBasicLanguageFeatures(o),Be.dG.getOrCreate(o),this._embeddedLanguages[o]=!0);const _=Be.dG.get(o);return _?new rt(o,_.getInitialState()):new rt(o,Fn.r3)}};Dt=Je=ze([Ke(4,mt.pG)],Dt);function At(Ie,o){if(!o)return null;o=Ti(Ie,o);const _=Ie.brackets;for(const N of _){if(N.open===o)return{token:N.token,bracketType:1};if(N.close===o)return{token:N.token,bracketType:-1}}return null}const et=(0,mi.H)("standaloneColorizer",{createHTML:Ie=>Ie});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<Oe;Ee++){const ot=Ie[Ee];ue[0]=ot.length;const _t=new yi.f(ue,ot,_),Ot=fi.qL.isBasicASCII(ot,!0),nn=fi.qL.containsRTL(ot,Ot,!0),fn=(0,ri.Md)(new ri.zL(!1,!0,ot,!1,Ot,nn,0,_t,[],o,0,0,0,0,-1,"none",!1,!1,null));N=N.concat(fn.html),N.push("<br/>")}return N.join("")}function Ae(Ie,o,_,N){let se=[],ue=_.getInitialState();for(let Ee=0,Oe=Ie.length;Ee<Oe;Ee++){const ot=Ie[Ee],_t=_.tokenizeEncoded(ot,!0,ue);yi.f.convertToEndOffset(_t.tokens,ot.length);const Ot=new yi.f(_t.tokens,ot,N),nn=fi.qL.isBasicASCII(ot,!0),fn=fi.qL.containsRTL(ot,nn,!0),wn=(0,ri.Md)(new ri.zL(!1,!0,ot,!1,nn,fn,0,Ot.inflate(),[],o,0,0,0,0,-1,"none",!1,!1,null));se=se.concat(wn.html),se.push("<br/>"),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;_<this._past.length;_++)o.push(` * [UNDO] ${this._past[_]}`);for(let _=this._future.length-1;_>=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<se;N++)_.push(this._past[N].id);for(let N=this._future.length-1;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<ot;Oe++,se++){const _t=this._past[Oe];N&&(se>=_||_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;_<N;_++)this._versionIds[_]=this.editStacks[_].versionId}isValid(){for(let o=0,_=this.editStacks.length;o<_;o++)if(this._versionIds[o]!==this.editStacks[o].versionId)return!1;return!0}}const pn=new xn("","");pn.locked=!0;let Wn=class{constructor(o,_){this._dialogService=o,this._notificationService=_,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(o){for(const _ of this._uriComparisonKeyComputers)if(_[0]===o.scheme)return _[1].getComparisonKey(o);return o.toString()}_print(o){console.log("------------------------------------"),console.log(`AFTER ${o}: `);const _=[];for(const N of this._editStacks)_.push(N[1].toString());console.log(_.join(`
`))}pushElement(o,_=yt.I_.None,N=yt.Ym.None){if(o.type===0){const se=sn(o.resource),ue=this.getUriComparisonKey(o.resource);this._pushElement(new kt(o,se,ue,_.id,_.nextOrder(),N.id,N.nextOrder()))}else{const se=new Set,ue=[],Ee=[];for(const Oe of o.resources){const ot=sn(Oe),_t=this.getUriComparisonKey(Oe);se.has(_t)||(se.add(_t),ue.push(ot),Ee.push(_t))}ue.length===1?this._pushElement(new kt(o,ue[0],Ee[0],_.id,_.nextOrder(),N.id,N.nextOrder())):this._pushElement(new bn(o,ue,Ee,_.id,_.nextOrder(),N.id,N.nextOrder()))}Ut&&this._print("pushElement")}_pushElement(o){for(let _=0,N=o.strResources.length;_<N;_++){const se=o.resourceLabels[_],ue=o.strResources[_];let Ee;this._editStacks.has(ue)?Ee=this._editStacks.get(ue):(Ee=new xn(se,ue),this._editStacks.set(ue,Ee)),Ee.pushElement(o)}}getLastElement(o){const _=this.getUriComparisonKey(o);if(this._editStacks.has(_)){const N=this._editStacks.get(_);if(N.hasFutureElements())return null;const se=N.getClosestPastElement();return se?se.actual:null}return null}_splitPastWorkspaceElement(o,_){const N=o.actual.split(),se=new Map;for(const ue of N){const Ee=sn(ue.resource),Oe=this.getUriComparisonKey(ue.resource),ot=new kt(ue,Ee,Oe,0,0,0,0);se.set(ot.strResource,ot)}for(const ue of o.strResources){if(_&&_.has(ue))continue;this._editStacks.get(ue).splitPastWorkspaceElement(o,se)}}_splitFutureWorkspaceElement(o,_){const N=o.actual.split(),se=new Map;for(const ue of N){const Ee=sn(ue.resource),Oe=this.getUriComparisonKey(ue.resource),ot=new kt(ue,Ee,Oe,0,0,0,0);se.set(ot.strResource,ot)}for(const ue of o.strResources){if(_&&_.has(ue))continue;this._editStacks.get(ue).splitFutureWorkspaceElement(o,se)}}removeElements(o){const _=typeof o=="string"?o:this.getUriComparisonKey(o);this._editStacks.has(_)&&(this._editStacks.get(_).dispose(),this._editStacks.delete(_)),Ut&&this._print("removeElements")}setElementsValidFlag(o,_,N){const se=this.getUriComparisonKey(o);this._editStacks.has(se)&&this._editStacks.get(se).setElementsValidFlag(_,N),Ut&&this._print("setElementsValidFlag")}createSnapshot(o){const _=this.getUriComparisonKey(o);return this._editStacks.has(_)?this._editStacks.get(_).createSnapshot(o):new yt.To(o,[])}restoreSnapshot(o){const _=this.getUriComparisonKey(o.resource);if(this._editStacks.has(_)){const N=this._editStacks.get(_);N.restoreSnapshot(o),!N.hasPastElements()&&!N.hasFutureElements()&&(N.dispose(),this._editStacks.delete(_))}Ut&&this._print("restoreSnapshot")}getElements(o){const _=this.getUriComparisonKey(o);return this._editStacks.has(_)?this._editStacks.get(_).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(o){if(!o)return[null,null];let _=null,N=null;for(const[se,ue]of this._editStacks){const Ee=ue.getClosestPastElement();Ee&&Ee.sourceId===o&&(!_||Ee.sourceOrder>_.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("</a>"):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;_<o.childNodes.length;_++){const N=o.childNodes.item(o.childNodes.length-_-1);if(N.nodeType===N.ELEMENT_NODE){const ue=N;if(typeof ue.tabIndex=="number"&&ue.tabIndex>=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._x<this._targetDocumentElement.clientLeft&&(this._x=o.left+2)}computeYCordinate(o){this._target.y!==void 0?this._y=this._target.y:this._hoverPosition===3?this._y=o.top:this._hoverPosition===2?this._y=o.bottom-2:this._hoverPointer?this._y=o.center.y+this._hover.containerDomNode.clientHeight/2:this._y=o.bottom,this._y>this._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+_&&(o.left>=this._hover.containerDomNode.clientWidth+_?this._hoverPosition=0:this._hoverPosition=2):this._hoverPosition===0&&(o.left<this._hover.containerDomNode.clientWidth+_&&(this._targetDocumentElement.clientWidth-o.right>=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.clientHeight<this._hover.contentsDomNode.scrollHeight){const N=`${this._hover.scrollbar.options.verticalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingRight!==N&&(this._hover.contentsDomNode.style.paddingRight=N)}}setHoverPointerPosition(o){if(this._hoverPointer)switch(this._hoverPosition){case 0:case 1:{this._hoverPointer.classList.add(this._hoverPosition===0?"right":"left");const _=this._hover.containerDomNode.clientHeight;_>o.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;(se<o.left||se>o.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. */
: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; }
${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(`
`)}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+`
`}};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<Oe;Ee++){const ot=N[Ee],_t=_.tokenize(ot,!0,ue);se[Ee]=_t.tokens,ue=_t.endState}return se}function Hc(Ie,o){di.get(Ko.L).defineTheme(Ie,o)}function Vc(Ie){di.get(Ko.L).setTheme(Ie)}function Uc(){Et.T.clearAllFontInfos()}function zc(Ie,o){return lo.w.registerCommand({id:Ie,handler:o})}function Kc(Ie){return di.get(Pn.C).registerOpener({async open(_){return typeof _=="string"&&(_=lt.r.parse(_)),Ie.open(_)}})}function Gc(Ie){return di.get(Zt.T).registerCodeEditorOpenHandler(async(_,N,se)=>{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<o.length)return o[N];if(N>=100){N=N-100;const se=_.split(".");if(se.unshift(_),N<se.length)return se[N]}return null}function Jc(Ie,o,_,N){let se=-1,ue=_,Ee=_.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);Ee&&(Ee[3]&&(se=parseInt(Ee[3]),Ee[2]&&(se=se+100)),ue=Ee[4]);let Oe="~",ot=ue;!ue||ue.length===0?(Oe="!=",ot=""):/^\w*$/.test(ot)?Oe="==":(Ee=ue.match(/^(@|!@|~|!~|==|!=)(.*)$/),Ee&&(Oe=Ee[1],ot=Ee[2]));let _t;if((Oe==="~"||Oe==="!~")&&/^(\w|\|)*$/.test(ot)){const Ot=Hl(ot.split("|"),Ie.ignoreCase);_t=function(nn){return Oe==="~"?Ot(nn):!Ot(nn)}}else if(Oe==="@"||Oe==="!@"){const Ot=Ie[ot];if(!Ot)throw Yn(Ie,"the @ match target '"+ot+"' is not defined, in rule: "+o);if(!Yc(function(fn){return typeof fn=="string"},Ot))throw Yn(Ie,"the @ match target '"+ot+"' must be an array of strings, in rule: "+o);const nn=Hl(Ot,Ie.ignoreCase);_t=function(fn){return Oe==="@"?nn(fn):!nn(fn)}}else if(Oe==="~"||Oe==="!~")if(ot.indexOf("$")<0){const Ot=dl(Ie,"^"+ot+"$",!1);_t=function(nn){return Oe==="~"?Ot.test(nn):!Ot.test(nn)}}else _t=function(Ot,nn,fn,wn){return dl(Ie,"^"+Di(Ie,ot,nn,fn,wn)+"$",!1).test(Ot)};else if(ot.indexOf("$")<0){const Ot=Ti(Ie,ot);_t=function(nn){return Oe==="=="?nn===Ot:nn!==Ot}}else{const Ot=Ti(Ie,ot);_t=function(nn,fn,wn,Xn,bi){const ki=Di(Ie,Ot,fn,wn,Xn);return Oe==="=="?nn===ki:nn!==ki}}return se===-1?{name:_,value:N,test:function(Ot,nn,fn,wn){return _t(Ot,Ot,nn,fn,wn)}}:{name:_,value:N,test:function(Ot,nn,fn,wn){const Xn=Xc(Ot,nn,fn,se);return _t(Xn||"",Ot,nn,fn,wn)}}}function cl(Ie,o,_){if(_){if(typeof _=="string")return _;if(_.token||_.token===""){if(typeof _.token!="string")throw Yn(Ie,"a 'token' attribute must be of type string, in rule: "+o);{const N={token:_.token};if(_.token.indexOf("$")>=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;se<ue;se++)N[se]=cl(Ie,o,_[se]);return{group:N}}else if(_.cases){const N=[];for(const ue in _.cases)if(_.cases.hasOwnProperty(ue)){const Ee=cl(Ie,o,_.cases[ue]);ue==="@default"||ue==="@"||ue===""?N.push({test:void 0,value:Ee,name:ue}):ue==="@eos"?N.push({test:function(Oe,ot,_t,Ot){return Ot},value:Ee,name:ue}):N.push(Jc(Ie,o,ue,Ee))}const se=Ie.defaultToken;return{test:function(ue,Ee,Oe,ot){for(const _t of N)if(!_t.test||_t.test(ue,Ee,Oe,ot))return _t.value;return se}}}else throw Yn(Ie,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+o)}else return{token:""}}class qc{constructor(o){this.regex=new RegExp(""),this.action={token:""},this.matchOnlyAtLineStart=!1,this.name="",this.name=o}setRegex(o,_){let N;if(typeof _=="string")N=_;else if(_ instanceof RegExp)N=_.source;else throw Yn(o,"rules must start with a match string or regular expression: "+this.name);this.matchOnlyAtLineStart=N.length>0&&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+`
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<arguments.length;Dt++){At=arguments[Dt];for(et in At)Object.prototype.hasOwnProperty.call(At,et)&&(bt[et]=At[et])}return bt}function ri(bt,Dt){var At=bt.replace(/\|/g,function(Tt,dt,Ae){for(var ct=!1,ut=dt;--ut>=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.length<Dt;)et.push("");for(;at<et.length;at++)et[at]=et[at].trim().replace(/\\\|/g,"|");return et}function fi(bt,Dt,At){var et=bt.length;if(et===0)return"";for(var at=0;at<et;){var Tt=bt.charAt(et-at-1);if(Tt===Dt&&!At)at++;else if(Tt!==Dt&&At)at++;else break}return bt.slice(0,et-at)}function Mi(bt,Dt){if(bt.indexOf(Dt[1])===-1)return-1;for(var At=bt.length,et=0,at=0;at<At;at++)if(bt[at]==="\\")at++;else if(bt[at]===Dt[0])et++;else if(bt[at]===Dt[1]&&(et--,et<0))return at;return-1}function xi(bt){bt&&bt.sanitize&&!bt.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ci(bt,Dt){if(Dt<1)return"";for(var At="";Dt>1;)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(`
`+(Ln.tokens?this.parseInline(Ln.tokens):Ln.text);Tt+=at?this.renderer.paragraph(vn):vn;continue}default:{var On='Token with "'+Ln.type+'" type was not found.';if(this.options.silent){console.error(On);return}else throw new Error(On)}}}return Tt},Dt.parseInline=function(et,at){at=at||this.renderer;var Tt="",dt,Ae,ct,ut=et.length;for(dt=0;dt<ut;dt++){if(Ae=et[dt],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Ae.type]&&(ct=this.options.extensions.renderers[Ae.type].call({parser:this},Ae),ct!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(Ae.type))){Tt+=ct||"";continue}switch(Ae.type){case"escape":{Tt+=at.text(Ae.text);break}case"html":{Tt+=at.html(Ae.text);break}case"link":{Tt+=at.link(Ae.href,Ae.title,this.parseInline(Ae.tokens,at));break}case"image":{Tt+=at.image(Ae.href,Ae.title,Ae.text);break}case"strong":{Tt+=at.strong(this.parseInline(Ae.tokens,at));break}case"em":{Tt+=at.em(this.parseInline(Ae.tokens,at));break}case"codespan":{Tt+=at.codespan(Ae.text);break}case"br":{Tt+=at.br();break}case"del":{Tt+=at.del(this.parseInline(Ae.tokens,at));break}case"text":{Tt+=at.text(Ae.text);break}default:{var je='Token with "'+Ae.type+'" type was not found.';if(this.options.silent){console.error(je);return}else throw new Error(je)}}}return Tt},bt}();function Ke(bt,Dt,At){if(typeof bt>"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"<p>An error occurred:</p><pre>"+Mt(ut.message+"",!0)+"</pre>";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<bt;At++)Dt[At]=arguments[At];var et=yi.apply(void 0,[{}].concat(Dt)),at=Ke.defaults.extensions||{renderers:{},childTokens:{}},Tt;Dt.forEach(function(dt){if(dt.extensions&&(Tt=!0,dt.extensions.forEach(function(ct){if(!ct.name)throw new Error("extension name required");if(ct.renderer){var ut=at.renderers?at.renderers[ct.name]:null;ut?at.renderers[ct.name]=function(){for(var je=arguments.length,Rt=new Array(je),Ft=0;Ft<je;Ft++)Rt[Ft]=arguments[Ft];var ln=ct.renderer.apply(this,Rt);return ln===!1&&(ln=ut.apply(this,Rt)),ln}:at.renderers[ct.name]=ct.renderer}if(ct.tokenizer){if(!ct.level||ct.level!=="block"&&ct.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");at[ct.level]?at[ct.level].unshift(ct.tokenizer):at[ct.level]=[ct.tokenizer],ct.start&&(ct.level==="block"?at.startBlock?at.startBlock.push(ct.start):at.startBlock=[ct.start]:ct.level==="inline"&&(at.startInline?at.startInline.push(ct.start):at.startInline=[ct.start]))}ct.childTokens&&(at.childTokens[ct.name]=ct.childTokens)})),dt.renderer&&function(){var ct=Ke.defaults.renderer||new Sn,ut=function(Ft){var ln=ct[Ft];ct[Ft]=function(){for(var vn=arguments.length,Ln=new Array(vn),En=0;En<vn;En++)Ln[En]=arguments[En];var In=dt.renderer[Ft].apply(ct,Ln);return In===!1&&(In=ln.apply(ct,Ln)),In}};for(var je in dt.renderer)ut(je);et.renderer=ct}(),dt.tokenizer&&function(){var ct=Ke.defaults.tokenizer||new Ti,ut=function(Ft){var ln=ct[Ft];ct[Ft]=function(){for(var vn=arguments.length,Ln=new Array(vn),En=0;En<vn;En++)Ln[En]=arguments[En];var In=dt.tokenizer[Ft].apply(ct,Ln);return In===!1&&(In=ln.apply(ct,Ln)),In}};for(var je in dt.tokenizer)ut(je);et.tokenizer=ct}(),dt.walkTokens){var Ae=Ke.defaults.walkTokens;et.walkTokens=function(ct){var ut=[];return ut.push(dt.walkTokens.call(this,ct)),Ae&&(ut=ut.concat(Ae.call(this,ct))),ut}}Tt&&(et.extensions=at),Ke.setOptions(et)})},Ke.walkTokens=function(bt,Dt){for(var At=[],et=function(){var Ae=Tt.value;switch(At=At.concat(Dt.call(Ke,Ae)),Ae.type){case"table":{for(var ct=We(Ae.header),ut;!(ut=ct()).done;){var je=ut.value;At=At.concat(Ke.walkTokens(je.tokens,Dt))}for(var Rt=We(Ae.rows),Ft;!(Ft=Rt()).done;)for(var ln=Ft.value,vn=We(ln),Ln;!(Ln=vn()).done;){var En=Ln.value;At=At.concat(Ke.walkTokens(En.tokens,Dt))}break}case"list":{At=At.concat(Ke.walkTokens(Ae.items,Dt));break}default:Ke.defaults.extensions&&Ke.defaults.extensions.childTokens&&Ke.defaults.extensions.childTokens[Ae.type]?Ke.defaults.extensions.childTokens[Ae.type].forEach(function(In){At=At.concat(Ke.walkTokens(Ae[In],Dt))}):Ae.tokens&&(At=At.concat(Ke.walkTokens(Ae.tokens,Dt)))}},at=We(bt),Tt;!(Tt=at()).done;)et();return At},Ke.parseInline=function(bt,Dt){if(typeof bt>"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+=`
`),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;a<s;a++)d[a]=f.charCodeAt(a);return d}}function M(S,f,d){return new I(new k(S),new k(f)).ComputeDiff(d).changes}class L{static Assert(f,d){if(!f)throw new Error(d)}}class g{static Copy(f,d,a,s,n){for(let i=0;i<n;i++)a[s+i]=f[d+i]}static Copy2(f,d,a,s,n){for(let i=0;i<n;i++)a[s+i]=f[d+i]}}class x{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||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<n;s++)a[s]=(0,F.e2)(d[s],0);return[d,a,!0]}return d instanceof Int32Array?[[],d,!1]:[[],new Int32Array(d),!1]}ElementsAreEqual(f,d){return this._originalElementsOrHash[f]!==this._modifiedElementsOrHash[d]?!1:this._hasStrings?this._originalStringElements[f]===this._modifiedStringElements[d]:!0}ElementsAreStrictEqual(f,d){if(!this.ElementsAreEqual(f,d))return!1;const a=I._getStrictElement(this._originalSequence,f),s=I._getStrictElement(this._modifiedSequence,d);return a===s}static _getStrictElement(f,d){return typeof f.getStrictElement=="function"?f.getStrictElement(d):null}OriginalElementsAreEqual(f,d){return this._originalElementsOrHash[f]!==this._originalElementsOrHash[d]?!1:this._hasStrings?this._originalStringElements[f]===this._originalStringElements[d]:!0}ModifiedElementsAreEqual(f,d){return this._modifiedElementsOrHash[f]!==this._modifiedElementsOrHash[d]?!1:this._hasStrings?this._modifiedStringElements[f]===this._modifiedStringElements[d]:!0}ComputeDiff(f){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,f)}_ComputeDiff(f,d,a,s,n){const i=[!1];let c=this.ComputeDiffRecursive(f,d,a,s,i);return n&&(c=this.PrettifyChanges(c)),{quitEarly:i[0],changes:c}}ComputeDiffRecursive(f,d,a,s,n){for(n[0]=!1;f<=d&&a<=s&&this.ElementsAreEqual(f,a);)f++,a++;for(;d>=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<T&&u[z-1]<u[z+1]?(h=u[z+1],b=h-E-s,h<W&&P.MarkNextChange(),W=h,P.AddModifiedElement(h+1,b),E=z+1-f):(h=u[z-1]+1,b=h-E-s,h<W&&P.MarkNextChange(),W=h-1,P.AddOriginalElement(h,b+1),E=z-1-f),$>=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<T&&C[z-1]>=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||J<h&&w[J-1]<w[J+1]?m=w[J+1]:m=w[J-1]+1,u=m-(J-U)-G;const B=m;for(;m<d&&u<s&&this.ElementsAreEqual(m+1,u+1);)m++,u++;if(w[J]=m,m+u>W+$&&(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<p&&j[J-1]>=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;d<f.length;d++){const a=f[d],s=d<f.length-1?f[d+1].originalStart:this._originalElementsOrHash.length,n=d<f.length-1?f[d+1].modifiedStart:this._modifiedElementsOrHash.length,i=a.originalLength>0,c=a.modifiedLength>0;for(;a.originalStart+a.originalLength<s&&a.modifiedStart+a.modifiedLength<n&&(!i||this.OriginalElementsAreEqual(a.originalStart,a.originalStart+a.originalLength))&&(!c||this.ModifiedElementsAreEqual(a.modifiedStart,a.modifiedStart+a.modifiedLength));){const u=this.ElementsAreStrictEqual(a.originalStart,a.modifiedStart);if(this.ElementsAreStrictEqual(a.originalStart+a.originalLength,a.modifiedStart+a.modifiedLength)&&!u)break;a.originalStart++,a.modifiedStart++}const m=[null];if(d<f.length-1&&this.ChangesOverlap(f[d],f[d+1],m)){f[d]=m[0],f.splice(d+1,1),d--;continue}}for(let d=f.length-1;d>=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(v<s||p<n||i&&!this.OriginalElementsAreEqual(v,v+a.originalLength)||c&&!this.ModifiedElementsAreEqual(p,p+a.modifiedLength))break;const O=(v===s&&p===n?5:0)+this._boundaryScore(v,a.originalLength,p,a.modifiedLength);O>u&&(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;d<a;d++){const s=f[d-1],n=f[d],i=n.originalStart-s.originalStart-s.originalLength,c=s.originalStart,m=n.originalStart+n.originalLength,u=m-c,C=s.modifiedStart,h=n.modifiedStart+n.modifiedLength,v=h-C;if(i<5&&u<20&&v<20){const p=this._findBetterContiguousSequence(c,u,C,v,i);if(p){const[b,O]=p;(b!==s.originalStart+s.originalLength||O!==s.modifiedStart+s.modifiedLength)&&(s.originalLength=b-s.originalStart,s.modifiedLength=O-s.modifiedStart,n.originalStart=b+i,n.modifiedStart=O+i,n.originalLength=m-n.originalStart,n.modifiedLength=h-n.modifiedStart)}}}return f}_findBetterContiguousSequence(f,d,a,s,n){if(d<n||s<n)return null;const i=f+d-n+1,c=a+s-n+1;let m=0,u=0,C=0;for(let h=f;h<i;h++)for(let v=a;v<c;v++){const p=this._contiguousSequenceScore(h,v,n);p>0&&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<a;n++){if(!this.ElementsAreEqual(f+n,d+n))return 0;s+=this._originalStringElements[f+n].length}return s}_OriginalIsBoundary(f){return f<=0||f>=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<s)return f;const n=a,i=s-a-1,c=d%2===0;if(f<0){const m=n%2===0;return c===m?0:1}else{const m=i%2===0;return c===m?s-1:s-2}}}},"./node_modules/monaco-editor/esm/vs/base/common/errors.js":function(pt,Me,e){e.d(Me,{AL:function(){return I},D7:function(){return n},EM:function(){return a},MB:function(){return x},M_:function(){return M},Qg:function(){return f},aD:function(){return S},cU:function(){return L},dz:function(){return k},iH:function(){return d}});class r{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(c){setTimeout(()=>{throw c.stack?s.isErrorNoTelemetry(c)?new s(c.message+`
`),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(Ct<this._contentLeft){const Mn=this._contentLeft-Ct;Ct+=Mn,gt+=Mn,It-=Mn}It>this._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(l<this._contentLeft||l>this._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=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;H<Z;H++)if(!Le.L.isISelection(t[H]))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(l,t,y)}}getContentWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getContentWidth():-1}getScrollWidth(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollWidth():-1}getScrollLeft(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollLeft():-1}getContentHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getContentHeight():-1}getScrollHeight(){return this._modelData?this._modelData.viewModel.viewLayout.getScrollHeight():-1}getScrollTop(){return this._modelData?this._modelData.viewModel.viewLayout.getCurrentScrollTop():-1}setScrollLeft(t,l=1){if(this._modelData){if(typeof t!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollLeft:t},l)}}setScrollTop(t,l=1){if(this._modelData){if(typeof t!="number")throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPosition({scrollTop:t},l)}}setScrollPosition(t,l=1){this._modelData&&this._modelData.viewModel.viewLayout.setScrollPosition(t,l)}hasPendingScrollAnimation(){return this._modelData?this._modelData.viewModel.viewLayout.hasPendingScrollAnimation():!1}saveViewState(){if(!this._modelData)return null;const t=this._contributions.saveViewState(),l=this._modelData.viewModel.saveCursorState(),y=this._modelData.viewModel.saveState();return{cursorState:l,viewState:y,contributionsState:t}}restoreViewState(t){if(!this._modelData||!this._modelData.hasRealView)return;const l=t;if(l&&l.cursorState&&l.viewState){const y=l.cursorState;Array.isArray(y)?y.length>0&&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<It;Ct++)Ve[Ct]=ke.selections[Ct].getPosition();const Xe={position:Ve[0],secondaryPositions:Ve.slice(1),reason:ke.reason,source:ke.source};this._onDidChangeCursorPosition.fire(Xe);const gt={selection:ke.selections[0],secondarySelections:ke.selections.slice(1),modelVersionId:ke.modelVersionId,oldSelections:ke.oldSelections,oldModelVersionId:ke.oldModelVersionId,source:ke.source,reason:ke.reason};this._onDidChangeCursorSelection.fire(gt);break}case 7:this._onDidChangeModelDecorations.fire(ke.event);break;case 8:this._domElement.setAttribute("data-mode-id",t.getLanguageId()),this._onDidChangeModelLanguage.fire(ke.event);break;case 9:this._onDidChangeModelLanguageConfiguration.fire(ke.event);break;case 10:this._onDidChangeModelContent.fire(ke.event);break;case 11:this._onDidChangeModelOptions.fire(ke.event);break;case 12:this._onDidChangeModelTokens.fire(ke.event);break}}));const[Z,pe]=this._createView(H);if(pe){this._domElement.appendChild(Z.domNode.domNode);let ke=Object.keys(this._contentWidgets);for(let Ve=0,Xe=ke.length;Ve<Xe;Ve++){const gt=ke[Ve];Z.addContentWidget(this._contentWidgets[gt])}ke=Object.keys(this._overlayWidgets);for(let Ve=0,Xe=ke.length;Ve<Xe;Ve++){const gt=ke[Ve];Z.addOverlayWidget(this._overlayWidgets[gt])}ke=Object.keys(this._glyphMarginWidgets);for(let Ve=0,Xe=ke.length;Ve<Xe;Ve++){const gt=ke[Ve];Z.addGlyphMarginWidget(this._glyphMarginWidgets[gt])}Z.render(!1,!0),Z.domNode.domNode.setAttribute("data-uri",t.uri.toString())}this._modelData=new na(t,H,Z,pe,l,y)}_createView(t){let l;this.isSimpleWidget?l={paste:(Z,pe,ke,Ve)=>{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("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='"),Ta=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function Es(Pt){return Ma+encodeURIComponent(Pt.toString())+Ta}const sr=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="'),ia=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');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<xn.range.modified.endLineNumberExclusive);bn!==-1&&this._currentGroupIdx.set(bn,an)}this._groups.set(kt,an)})})),this._register((0,g.fm)(sn=>{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:Ut<sn?sn:Ut>jt-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.endLineNumber<yt.getLineCount()&&(jt=jt.setEndPosition(jt.endLineNumber+1,1),Vt=Vt.setEndPosition(Vt.endLineNumber+1,1)),new j.q6(jt,Vt)}class Jt{static fromDiffResult($e){return new Jt($e.changes.map(yt=>new 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<Ut||yt===1?this._visibleLineCountTop.set(this._visibleLineCountTop.get()+Vt,jt):this._visibleLineCountBottom.set(this._visibleLineCountBottom.get()+Ut,jt)}showOriginalLine($e,yt,jt){const Vt=$e-this.originalLineNumber,Ut=this.originalLineNumber+this.lineCount-$e;yt===0&&Vt<Ut||yt===1?this._visibleLineCountTop.set(Math.min(this._visibleLineCountTop.get()+Ut-Vt,this.getMaxVisibleLineCountTop()),jt):this._visibleLineCountBottom.set(Math.min(this._visibleLineCountBottom.get()+Vt-Ut,this.getMaxVisibleLineCountBottom()),jt)}collapseAll($e){this._visibleLineCountTop.set(0,$e),this._visibleLineCountBottom.set(0,$e)}setState($e,yt,jt){$e=Math.max(Math.min($e,this.lineCount),0),yt=Math.max(Math.min(yt,this.lineCount-$e),0),this._visibleLineCountTop.set($e,jt),this._visibleLineCountBottom.set(yt,jt)}}function vt(cn,$e,yt,jt){}function Gt(cn,$e,yt,jt){}var _n=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");class Fn extends L.jG{get visibility(){return this._visibility}set visibility($e){this._visibility!==$e&&(this._visibility=$e,this._diffActions.style.visibility=$e?"visible":"hidden")}constructor($e,yt,jt,Vt,Ut,sn,zt,kt,an){super(),this._getViewZoneId=$e,this._marginDomNode=yt,this._modifiedEditor=jt,this._diff=Vt,this._editor=Ut,this._viewLineCounts=sn,this._originalTextModel=zt,this._contextMenuService=kt,this._clipboardService=an,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=u.L.asClassName(m.W.lightBulb)+" lightbulb-glyph",this._diffActions.style.position="absolute";const dn=this._modifiedEditor.getOption(67);this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${dn}px`,this._diffActions.style.lineHeight=`${dn}px`,this._marginDomNode.appendChild(this._diffActions);let bn=0;const xn=jt.getOption(127)&&!_n.un,jn=(pn,Wn)=>{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;an<this._viewLineCounts.length;an++)if(kt+=this._viewLineCounts[an],sn<kt)return an}return sn}}var An=e("./node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js"),Hn=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js");const Kn=(0,a.H)("diffEditorWidget",{createHTML:cn=>cn});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<cn.lineTokens.length;xn++){const jn=xn+1,pn=cn.lineTokens[xn],Wn=cn.lineBreakData[xn],Qn=Hn.d.filter(yt,jn,1,Number.MAX_SAFE_INTEGER);if(Wn){let ui=0;for(const vi of Wn.breakOffsets){const qn=pn.sliceAndInflate(ui,vi,0);sn=Math.max(sn,fi(zt,qn,Hn.d.extractWrapped(Qn,ui,vi),Vt,cn.mightContainNonBasicASCII,cn.mightContainRTL,$e,Ut)),zt++,ui=vi}kt.push(Wn.breakOffsets.length)}else kt.push(1),sn=Math.max(sn,fi(zt,pn,Qn,Vt,cn.mightContainNonBasicASCII,cn.mightContainRTL,$e,Ut)),zt++}sn+=$e.scrollBeyondLastColumn;const an=Ut.build(),dn=Kn?Kn.createHTML(an):an;jt.innerHTML=dn;const bn=sn*$e.typicalHalfwidthCharacterWidth;return{heightInLines:zt,minWidthInPx:bn,viewLineCounts:kt}}class yi{constructor($e,yt,jt,Vt){this.lineTokens=$e,this.lineBreakData=yt,this.mightContainNonBasicASCII=jt,this.mightContainRTL=Vt}}class ri{static fromEditor($e){var yt;const jt=$e.getOptions(),Vt=jt.get(50),Ut=jt.get(145);return new ri(((yt=$e.getModel())===null||yt===void 0?void 0:yt.getOptions().tabSize)||0,Vt,jt.get(33),Vt.typicalHalfwidthCharacterWidth,jt.get(104),jt.get(67),Ut.decorationsWidth,jt.get(117),jt.get(99),jt.get(94),jt.get(51))}constructor($e,yt,jt,Vt,Ut,sn,zt,kt,an,dn,bn){this.tabSize=$e,this.fontInfo=yt,this.disableMonospaceOptimizations=jt,this.typicalHalfwidthCharacterWidth=Vt,this.scrollBeyondLastColumn=Ut,this.lineHeight=sn,this.lineDecorationsWidth=zt,this.stopRenderingLineAfter=kt,this.renderWhitespace=an,this.renderControlCharacters=dn,this.fontLigatures=bn}}function fi(cn,$e,yt,jt,Vt,Ut,sn,zt){zt.appendString('<div class="view-line'),jt||zt.appendString(" char-delete"),zt.appendString('" style="top:'),zt.appendString(String(cn*sn.lineHeight)),zt.appendString('px;width:1000000px;">');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("</div>"),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;ao<Ri.originalRange.endLineNumberExclusive;ao++){if(ao>Ei.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<To.heightInLines;Vi++){const uo=document.createElement("div");uo.className=`delete-sign ${u.L.asClassName(qe.dv)}`,uo.setAttribute("style",`position:absolute;top:${Vi*zn}px;width:${Yi.lineDecorationsWidth}px;height:${zn}px;right:0;`),co.appendChild(uo)}let yo;ui.add(new Fn(()=>(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;Vi<To.viewLineCounts.length;Vi++){const uo=To.viewLineCounts[Vi];uo>1&&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;vi<qn?(sn.dequeue(),ui={lineNumber:Qn.lineNumber-bn+xn,heightInPx:0}):vi>qn?(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(yn<vi||ht<ui)return;if(Qn)Qn=!1;else if(yn===vi||ht===ui)return;const Fe=new p.M(vi,yn),Ze=new p.M(ui,ht);if(Fe.isEmpty&&Ze.isEmpty)return;const wt=(Q=(R=sn.takeWhile(Qt=>Qt.lineNumber<yn))===null||R===void 0?void 0:R.reduce((Qt,Xt)=>Qt+Xt.heightInPx,0))!==null&&Q!==void 0?Q:0,Lt=(Re=(ce=zt.takeWhile(Qt=>Qt.lineNumber<ht))===null||ce===void 0?void 0:ce.reduce((Qt,Xt)=>Qt+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.endColumn<R&&qn(yn.originalRange.endLineNumber,yn.modifiedRange.endLineNumber)}qn(Wn.original.endLineNumberExclusive,Wn.modified.endLineNumberExclusive),bn=Wn.original.endLineNumberExclusive,xn=Wn.modified.endLineNumberExclusive}return jn(Number.MAX_VALUE,Number.MAX_VALUE),dn}function Nn(cn,$e){const yt=[],jt=[],Vt=cn.getOption(146).wrappingColumn!==-1,Ut=cn._getViewModel().coordinatesConverter,sn=cn.getOption(67);if(Vt)for(let kt=1;kt<=cn.getModel().getLineCount();kt++){const an=Ut.getModelLineViewLineCount(kt);an>1&&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<kt.endExclusive&&(sn=zt.clip(sn),sn=kt.clip(sn)),this._elements.buttons.style.top=`${sn-$e.start}px`}};$n=rn([hn(3,E._Y)],$n);var ti=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},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<zt))!==null&&Ut!==void 0?Ut:sn[sn.length-1],this._goTo(kt),kt.lineRangeMapping.modified.isEmpty?this._accessibilitySignalService.playSignal(T.Rh.diffLineDeleted,{source:"diffEditor.goToDiff"}):kt.lineRangeMapping.original.isEmpty?this._accessibilitySignalService.playSignal(T.Rh.diffLineInserted,{source:"diffEditor.goToDiff"}):kt&&this._accessibilitySignalService.playSignal(T.Rh.diffLineModified,{source:"diffEditor.goToDiff"})}revealFirstDiff(){const $e=this._diffModel.get();$e&&this.waitForDiff().then(()=>{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<Y.length;X++){const ie=Y[X],re=n.gP.toIcon(ie.kind),te=(0,r.h)("div.breadcrumb-item",{style:{display:"flex",alignItems:"center"}},[(0,F.s)(re),"\xA0",ie.name,...X===Y.length-1?[]:[(0,F.s)(k.W.chevronRight)]]).root;$.push(te),te.onclick=()=>{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(;B<E.length&&V<W.length;){const Y=E[B],X=W[V],ie=$(Y),re=$(X);ie<re?(J.push(Y),B++):ie>re?(J.push(X),V++):(J.push(z(Y,X)),B++,V++)}for(;B<E.length;)J.push(E[B]),B++;for(;V<W.length;)J.push(W[V]),V++;return J}function i(E,W){const $=new I.Cm,z=E.createDecorationsCollection();return $.add((0,S.zL)({debugName:()=>`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<X?ie=E.requestAnimationFrame(re):B=z,V.set(B,void 0)}return V}function h(E,W,$,z){return E===z?W+$:$*(-Math.pow(2,-10*E/z)+1)+W}class v extends I.jG{constructor(W,$,z){super(),this._register(new b(W,z)),this._register(O(z,{height:$.actualHeight,top:$.actualTop}))}}class p{get afterLineNumber(){return this._afterLineNumber.get()}constructor(W,$){this._afterLineNumber=W,this.heightInPx=$,this.domNode=document.createElement("div"),this._actualTop=(0,S.FY)(this,void 0),this._actualHeight=(0,S.FY)(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=z=>{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<A&&b<C&&G.appendText.charCodeAt(P)===32;P++)b++;G.removeText&&(b=Math.max(0,b-G.removeText));for(let P=0;P<b&&!(j===0||w.charCodeAt(j-1)!==32);P++)j--}}if(this._opts.isUnshift&&j===0)continue;let U;this._opts.isUnshift?U=S.unshiftIndent(w,j+1,u,C,h):U=S.shiftIndent(w,j+1,u,C,h),this._addEditOperation(i,new k.Q(O,1,O,j+1),U),O===c&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=j+1)}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&n.getLineLength(c)===0&&(this._useLastEditRangeForCursorEndPosition=!0);const p=h?d(" ",C):" ";for(let b=c;b<=m;b++){const O=n.getLineContent(b);let w=r.HG(O);if(!(this._opts.isUnshift&&(O.length===0||w===0))&&!(!v&&!this._opts.isUnshift&&O.length===0)&&(w===-1&&(w=O.length),!(this._opts.isUnshift&&w===0)))if(this._opts.isUnshift){w=Math.min(w,C);for(let j=0;j<w;j++)if(O.charCodeAt(j)===9){w=j+1;break}this._addEditOperation(i,new k.Q(b,1,b,w+1),"")}else this._addEditOperation(i,new k.Q(b,1,b,1),p),b===c&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}}this._selectionId=i.trackSelection(this._selection)}computeCursorState(n,i){if(this._useLastEditRangeForCursorEndPosition){const m=i.getInverseEditOperations()[0];return new M.L(m.range.endLineNumber,m.range.endColumn,m.range.endLineNumber,m.range.endColumn)}const c=i.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const m=this._selection.startColumn;return c.startColumn<=m?c:c.getDirection()===0?new M.L(c.startLineNumber,m,c.endLineNumber,c.endColumn):new M.L(c.endLineNumber,c.endColumn,c.startLineNumber,m)}return c}};a=S=x([I(2,g.JZ)],a)},"./node_modules/monaco-editor/esm/vs/editor/common/config/diffEditor.js":function(pt,Me,e){e.d(Me,{q:function(){return r}});const r={enableSplitViewResizing:!0,splitViewDefaultRatio:.5,renderSideBySide:!0,renderMarginRevertIcon:!0,renderGutterMenu:!0,maxComputationTime:5e3,maxFileSize:50,ignoreTrimWhitespace:!0,renderIndicators:!0,originalEditable:!1,diffCodeLens:!1,renderOverviewRuler:!0,diffWordWrap:"inherit",diffAlgorithm:"advanced",accessibilityVerbose:!1,experimental:{showMoves:!1,showEmptyDecorations:!0},hideUnchangedRegions:{enabled:!1,contextLineCount:3,minimumLineCount:3,revealLineCount:20},isInEmbeddedEditor:!1,onlyShowAccessibleDiffViewer:!1,renderSideBySideInlineBreakpoint:900,useInlineViewWhenSpaceIsLimited:!0}},"./node_modules/monaco-editor/esm/vs/editor/common/config/editorConfigurationSchema.js":function(pt,Me,e){e.d(Me,{Gn:function(){return s},JJ:function(){return x},vf:function(){return a}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/config/diffEditor.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textModelDefaults.js"),M=e("./node_modules/monaco-editor/esm/vs/nls.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js");const x=Object.freeze({id:"editor",order:5,type:"object",title:M.kg("editorConfigurationTitle","Editor"),scope:5}),I={...x,properties:{"editor.tabSize":{type:"number",default:k.R.tabSize,minimum:1,markdownDescription:M.kg("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.indentSize":{anyOf:[{type:"string",enum:["tabSize"]},{type:"number",minimum:1}],default:"tabSize",markdownDescription:M.kg("indentSize",'The number of spaces used for indentation or `"tabSize"` to use the value from `#editor.tabSize#`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.')},"editor.insertSpaces":{type:"boolean",default:k.R.insertSpaces,markdownDescription:M.kg("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when {0} is on.","`#editor.detectIndentation#`")},"editor.detectIndentation":{type:"boolean",default:k.R.detectIndentation,markdownDescription:M.kg("detectIndentation","Controls whether {0} and {1} will be automatically detected when a file is opened based on the file contents.","`#editor.tabSize#`","`#editor.insertSpaces#`")},"editor.trimAutoWhitespace":{type:"boolean",default:k.R.trimAutoWhitespace,description:M.kg("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.largeFileOptimizations":{type:"boolean",default:k.R.largeFileOptimizations,description:M.kg("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"editor.wordBasedSuggestions":{enum:["off","currentDocument","matchingDocuments","allDocuments"],default:"matchingDocuments",enumDescriptions:[M.kg("wordBasedSuggestions.off","Turn off Word Based Suggestions."),M.kg("wordBasedSuggestions.currentDocument","Only suggest words from the active document."),M.kg("wordBasedSuggestions.matchingDocuments","Suggest words from all open documents of the same language."),M.kg("wordBasedSuggestions.allDocuments","Suggest words from all open documents.")],description:M.kg("wordBasedSuggestions","Controls whether completions should be computed based on words in the document and from which documents they are computed.")},"editor.semanticHighlighting.enabled":{enum:[!0,!1,"configuredByTheme"],enumDescriptions:[M.kg("semanticHighlighting.true","Semantic highlighting enabled for all color themes."),M.kg("semanticHighlighting.false","Semantic highlighting disabled for all color themes."),M.kg("semanticHighlighting.configuredByTheme","Semantic highlighting is configured by the current color theme's `semanticHighlighting` setting.")],default:"configuredByTheme",description:M.kg("semanticHighlighting.enabled","Controls whether the semanticHighlighting is shown for the languages that support it.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:M.kg("stablePeek","Keep peek editors open even when double-clicking their content or when hitting `Escape`.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:M.kg("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.experimental.asyncTokenization":{type:"boolean",default:!1,description:M.kg("editor.experimental.asyncTokenization","Controls whether the tokenization should happen asynchronously on a web worker."),tags:["experimental"]},"editor.experimental.asyncTokenizationLogging":{type:"boolean",default:!1,description:M.kg("editor.experimental.asyncTokenizationLogging","Controls whether async tokenization should be logged. For debugging only.")},"editor.experimental.asyncTokenizationVerification":{type:"boolean",default:!1,description:M.kg("editor.experimental.asyncTokenizationVerification","Controls whether async tokenization should be verified against legacy background tokenization. Might slow down tokenization. For debugging only."),tags:["experimental"]},"editor.language.brackets":{type:["array","null"],default:null,description:M.kg("schema.brackets","Defines the bracket symbols that increase or decrease the indentation."),items:{type:"array",items:[{type:"string",description:M.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:M.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"editor.language.colorizedBracketPairs":{type:["array","null"],default:null,description:M.kg("schema.colorizedBracketPairs","Defines the bracket pairs that are colorized by their nesting level if bracket pair colorization is enabled."),items:{type:"array",items:[{type:"string",description:M.kg("schema.openBracket","The opening bracket character or string sequence.")},{type:"string",description:M.kg("schema.closeBracket","The closing bracket character or string sequence.")}]}},"diffEditor.maxComputationTime":{type:"number",default:r.q.maxComputationTime,description:M.kg("maxComputationTime","Timeout in milliseconds after which diff computation is cancelled. Use 0 for no timeout.")},"diffEditor.maxFileSize":{type:"number",default:r.q.maxFileSize,description:M.kg("maxFileSize","Maximum file size in MB for which to compute diffs. Use 0 for no limit.")},"diffEditor.renderSideBySide":{type:"boolean",default:r.q.renderSideBySide,description:M.kg("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.renderSideBySideInlineBreakpoint":{type:"number",default:r.q.renderSideBySideInlineBreakpoint,description:M.kg("renderSideBySideInlineBreakpoint","If the diff editor width is smaller than this value, the inline view is used.")},"diffEditor.useInlineViewWhenSpaceIsLimited":{type:"boolean",default:r.q.useInlineViewWhenSpaceIsLimited,description:M.kg("useInlineViewWhenSpaceIsLimited","If enabled and the editor width is too small, the inline view is used.")},"diffEditor.renderMarginRevertIcon":{type:"boolean",default:r.q.renderMarginRevertIcon,description:M.kg("renderMarginRevertIcon","When enabled, the diff editor shows arrows in its glyph margin to revert changes.")},"diffEditor.renderGutterMenu":{type:"boolean",default:r.q.renderGutterMenu,description:M.kg("renderGutterMenu","When enabled, the diff editor shows a special gutter for revert and stage actions.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:r.q.ignoreTrimWhitespace,description:M.kg("ignoreTrimWhitespace","When enabled, the diff editor ignores changes in leading or trailing whitespace.")},"diffEditor.renderIndicators":{type:"boolean",default:r.q.renderIndicators,description:M.kg("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")},"diffEditor.codeLens":{type:"boolean",default:r.q.diffCodeLens,description:M.kg("codeLens","Controls whether the editor shows CodeLens.")},"diffEditor.wordWrap":{type:"string",enum:["off","on","inherit"],default:r.q.diffWordWrap,markdownEnumDescriptions:[M.kg("wordWrap.off","Lines will never wrap."),M.kg("wordWrap.on","Lines will wrap at the viewport width."),M.kg("wordWrap.inherit","Lines will wrap according to the {0} setting.","`#editor.wordWrap#`")]},"diffEditor.diffAlgorithm":{type:"string",enum:["legacy","advanced"],default:r.q.diffAlgorithm,markdownEnumDescriptions:[M.kg("diffAlgorithm.legacy","Uses the legacy diffing algorithm."),M.kg("diffAlgorithm.advanced","Uses the advanced diffing algorithm.")],tags:["experimental"]},"diffEditor.hideUnchangedRegions.enabled":{type:"boolean",default:r.q.hideUnchangedRegions.enabled,markdownDescription:M.kg("hideUnchangedRegions.enabled","Controls whether the diff editor shows unchanged regions.")},"diffEditor.hideUnchangedRegions.revealLineCount":{type:"integer",default:r.q.hideUnchangedRegions.revealLineCount,markdownDescription:M.kg("hideUnchangedRegions.revealLineCount","Controls how many lines are used for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.minimumLineCount":{type:"integer",default:r.q.hideUnchangedRegions.minimumLineCount,markdownDescription:M.kg("hideUnchangedRegions.minimumLineCount","Controls how many lines are used as a minimum for unchanged regions."),minimum:1},"diffEditor.hideUnchangedRegions.contextLineCount":{type:"integer",default:r.q.hideUnchangedRegions.contextLineCount,markdownDescription:M.kg("hideUnchangedRegions.contextLineCount","Controls how many lines are used as context when comparing unchanged regions."),minimum:1},"diffEditor.experimental.showMoves":{type:"boolean",default:r.q.experimental.showMoves,markdownDescription:M.kg("showMoves","Controls whether the diff editor should show detected code moves.")},"diffEditor.experimental.showEmptyDecorations":{type:"boolean",default:r.q.experimental.showEmptyDecorations,description:M.kg("showEmptyDecorations","Controls whether the diff editor shows empty decorations to see where characters got inserted or deleted.")}}};function S(i){return typeof i.type<"u"||typeof i.anyOf<"u"}for(const i of F.BE){const c=i.schema;if(typeof c<"u")if(S(c))I.properties[`editor.${i.name}`]=c;else for(const m in c)Object.hasOwnProperty.call(c,m)&&(I.properties[m]=c[m])}let f=null;function d(){return f===null&&(f=Object.create(null),Object.keys(I.properties).forEach(i=>{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 Be<vt?vt:Be>Gt?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<L&&(i=i*a),i=Math.round(i),i<L&&(i=L);const C=1+(u?0:k.D.getZoomLevel()*.1);return a*=C,i*=C,n===F.r_.TRANSLATE&&(d==="normal"||d==="bold"?n=F.r_.OFF:(n=`'wght' ${parseInt(d,10)}`,d="normal")),new g({pixelRatio:m,fontFamily:f,fontWeight:d,fontSize:a,fontFeatureSettings:s,fontVariationSettings:n,lineHeight:i,letterSpacing:c})}constructor(f){this._bareFontInfoBrand=void 0,this.pixelRatio=f.pixelRatio,this.fontFamily=String(f.fontFamily),this.fontWeight=String(f.fontWeight),this.fontSize=f.fontSize,this.fontFeatureSettings=f.fontFeatureSettings,this.fontVariationSettings=f.fontVariationSettings,this.lineHeight=f.lineHeight|0,this.letterSpacing=f.letterSpacing}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.fontVariationSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){const f=F.jU.fontFamily,d=g._wrapInQuotes(this.fontFamily);return f&&this.fontFamily!==f?`${d}, ${f}`:d}static _wrapInQuotes(f){return/[,"']/.test(f)?f:/[+ ]/.test(f)?`"${f}"`:f}}const x=2;class I extends g{constructor(f,d){super(f),this._editorStylingBrand=void 0,this.version=x,this.isTrusted=d,this.isMonospace=f.isMonospace,this.typicalHalfwidthCharacterWidth=f.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=f.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=f.canUseHalfwidthRightwardsArrow,this.spaceWidth=f.spaceWidth,this.middotWidth=f.middotWidth,this.wsmiddotWidth=f.wsmiddotWidth,this.maxDigitWidth=f.maxDigitWidth}equals(f){return this.fontFamily===f.fontFamily&&this.fontWeight===f.fontWeight&&this.fontSize===f.fontSize&&this.fontFeatureSettings===f.fontFeatureSettings&&this.fontVariationSettings===f.fontVariationSettings&&this.lineHeight===f.lineHeight&&this.letterSpacing===f.letterSpacing&&this.typicalHalfwidthCharacterWidth===f.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===f.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===f.canUseHalfwidthRightwardsArrow&&this.spaceWidth===f.spaceWidth&&this.middotWidth===f.middotWidth&&this.wsmiddotWidth===f.wsmiddotWidth&&this.maxDigitWidth===f.maxDigitWidth}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js":function(pt,Me,e){e.d(Me,{V:function(){return F},y:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/uint.js");class F{constructor(L){const g=(0,r.W)(L);this._defaultValue=g,this._asciiMap=F._createAsciiMap(g),this._map=new Map}static _createAsciiMap(L){const g=new Uint8Array(256);return g.fill(L),g}set(L,g){const x=(0,r.W)(g);L>=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<n?s:f}S=a,f=s}return x+1}static nextRenderTabStop(M,L){return M+L-M%L}static nextIndentTabStop(M,L){return M+L-M%L}static prevRenderTabStop(M,L){return Math.max(0,M-1-(M-1)%L)}static prevIndentTabStop(M,L){return Math.max(0,M-1-(M-1)%L)}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js":function(pt,Me,e){e.d(Me,{k:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class F{static insert(M,L){return{range:new r.Q(M.lineNumber,M.column,M.lineNumber,M.column),text:L,forceMoveMarkers:!0}}static delete(M){return{range:M,text:null}}static replace(M,L){return{range:M,text:L}}static replaceMove(M,L){return{range:M,text:L,forceMoveMarkers:!0}}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/editorColorRegistry.js":function(pt,Me,e){e.d(Me,{A3:function(){return P},AQ:function(){return De},Am:function(){return K},As:function(){return T},BD:function(){return fe},Bo:function(){return ae},CM:function(){return j},D0:function(){return d},H0:function(){return U},I2:function(){return Se},IW:function(){return le},If:function(){return me},JB:function(){return $},L0:function(){return c},Mf:function(){return g},P1:function(){return We},Pe:function(){return de},Qt:function(){return u},WD:function(){return Le},WS:function(){return ne},WY:function(){return we},Xr:function(){return X},aZ:function(){return ee},bB:function(){return oe},hz:function(){return b},je:function(){return n},kG:function(){return L},kM:function(){return a},l5:function(){return Qe},lQ:function(){return He},n4:function(){return be},ob:function(){return p},ow:function(){return O},s7:function(){return ge},sC:function(){return s},sH:function(){return q},sN:function(){return Te},ss:function(){return qe},tK:function(){return G},tp:function(){return A},vP:function(){return w},vV:function(){return v},vp:function(){return Pe},w4:function(){return m},we:function(){return i},x9:function(){return Y},yI:function(){return _e},yw:function(){return te},zp:function(){return ye}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),k=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js");const L=(0,k.x1A)("editor.lineHighlightBackground",{dark:null,light:null,hcDark:null,hcLight:null},r.kg("lineHighlight","Background color for the highlight of line at the cursor position.")),g=(0,k.x1A)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hcDark:"#f38518",hcLight:k.b1q},r.kg("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),x=(0,k.x1A)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hcDark:null,hcLight:null},r.kg("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),I=(0,k.x1A)("editor.rangeHighlightBorder",{dark:null,light:null,hcDark:k.buw,hcLight:k.buw},r.kg("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),S=(0,k.x1A)("editor.symbolHighlightBackground",{dark:k.Ubg,light:k.Ubg,hcDark:null,hcLight:null},r.kg("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),f=(0,k.x1A)("editor.symbolHighlightBorder",{dark:null,light:null,hcDark:k.buw,hcLight:k.buw},r.kg("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),d=(0,k.x1A)("editorCursor.foreground",{dark:"#AEAFAD",light:F.Q1.black,hcDark:F.Q1.white,hcLight:"#0F4A85"},r.kg("caret","Color of the editor cursor.")),a=(0,k.x1A)("editorCursor.background",null,r.kg("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),s=(0,k.x1A)("editorMultiCursor.primary.foreground",{dark:d,light:d,hcDark:d,hcLight:d},r.kg("editorMultiCursorPrimaryForeground","Color of the primary editor cursor when multiple cursors are present.")),n=(0,k.x1A)("editorMultiCursor.primary.background",{dark:a,light:a,hcDark:a,hcLight:a},r.kg("editorMultiCursorPrimaryBackground","The background color of the primary editor cursor when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),i=(0,k.x1A)("editorMultiCursor.secondary.foreground",{dark:d,light:d,hcDark:d,hcLight:d},r.kg("editorMultiCursorSecondaryForeground","Color of secondary editor cursors when multiple cursors are present.")),c=(0,k.x1A)("editorMultiCursor.secondary.background",{dark:a,light:a,hcDark:a,hcLight:a},r.kg("editorMultiCursorSecondaryBackground","The background color of secondary editor cursors when multiple cursors are present. Allows customizing the color of a character overlapped by a block cursor.")),m=(0,k.x1A)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hcDark:"#e3e4e229",hcLight:"#CCCCCC"},r.kg("editorWhitespaces","Color of whitespace characters in the editor.")),u=(0,k.x1A)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hcDark:F.Q1.white,hcLight:"#292929"},r.kg("editorLineNumbers","Color of editor line numbers.")),C=(0,k.x1A)("editorIndentGuide.background",{dark:m,light:m,hcDark:m,hcLight:m},r.kg("editorIndentGuides","Color of the editor indentation guides."),!1,r.kg("deprecatedEditorIndentGuides","'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.")),h=(0,k.x1A)("editorIndentGuide.activeBackground",{dark:m,light:m,hcDark:m,hcLight:m},r.kg("editorActiveIndentGuide","Color of the active editor indentation guides."),!1,r.kg("deprecatedEditorActiveIndentGuide","'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.")),v=(0,k.x1A)("editorIndentGuide.background1",{dark:C,light:C,hcDark:C,hcLight:C},r.kg("editorIndentGuides1","Color of the editor indentation guides (1).")),p=(0,k.x1A)("editorIndentGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorIndentGuides2","Color of the editor indentation guides (2).")),b=(0,k.x1A)("editorIndentGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorIndentGuides3","Color of the editor indentation guides (3).")),O=(0,k.x1A)("editorIndentGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorIndentGuides4","Color of the editor indentation guides (4).")),w=(0,k.x1A)("editorIndentGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorIndentGuides5","Color of the editor indentation guides (5).")),j=(0,k.x1A)("editorIndentGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorIndentGuides6","Color of the editor indentation guides (6).")),U=(0,k.x1A)("editorIndentGuide.activeBackground1",{dark:h,light:h,hcDark:h,hcLight:h},r.kg("editorActiveIndentGuide1","Color of the active editor indentation guides (1).")),K=(0,k.x1A)("editorIndentGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorActiveIndentGuide2","Color of the active editor indentation guides (2).")),G=(0,k.x1A)("editorIndentGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorActiveIndentGuide3","Color of the active editor indentation guides (3).")),P=(0,k.x1A)("editorIndentGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorActiveIndentGuide4","Color of the active editor indentation guides (4).")),A=(0,k.x1A)("editorIndentGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorActiveIndentGuide5","Color of the active editor indentation guides (5).")),T=(0,k.x1A)("editorIndentGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorActiveIndentGuide6","Color of the active editor indentation guides (6).")),E=(0,k.x1A)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hcDark:k.buw,hcLight:k.buw},r.kg("editorActiveLineNumber","Color of editor active line number"),!1,r.kg("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),W=(0,k.x1A)("editorLineNumber.activeForeground",{dark:E,light:E,hcDark:E,hcLight:E},r.kg("editorActiveLineNumber","Color of editor active line number")),$=(0,k.x1A)("editorLineNumber.dimmedForeground",{dark:null,light:null,hcDark:null,hcLight:null},r.kg("editorDimmedLineNumber","Color of the final editor line when editor.renderFinalNewline is set to dimmed.")),z=(0,k.x1A)("editorRuler.foreground",{dark:"#5A5A5A",light:F.Q1.lightgrey,hcDark:F.Q1.white,hcLight:"#292929"},r.kg("editorRuler","Color of the editor rulers.")),J=(0,k.x1A)("editorCodeLens.foreground",{dark:"#999999",light:"#919191",hcDark:"#999999",hcLight:"#292929"},r.kg("editorCodeLensForeground","Foreground color of editor CodeLens")),B=(0,k.x1A)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hcDark:"#0064001a",hcLight:"#0000"},r.kg("editorBracketMatchBackground","Background color behind matching brackets")),V=(0,k.x1A)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hcDark:k.b1q,hcLight:k.b1q},r.kg("editorBracketMatchBorder","Color for matching brackets boxes")),Y=(0,k.x1A)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hcDark:"#7f7f7f4d",hcLight:"#666666"},r.kg("editorOverviewRulerBorder","Color of the overview ruler border.")),X=(0,k.x1A)("editorOverviewRuler.background",null,r.kg("editorOverviewRulerBackground","Background color of the editor overview ruler.")),ie=(0,k.x1A)("editorGutter.background",{dark:k.YtV,light:k.YtV,hcDark:k.YtV,hcLight:k.YtV},r.kg("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),re=(0,k.x1A)("editorUnnecessaryCode.border",{dark:null,light:null,hcDark:F.Q1.fromHex("#fff").transparent(.8),hcLight:k.b1q},r.kg("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),te=(0,k.x1A)("editorUnnecessaryCode.opacity",{dark:F.Q1.fromHex("#000a"),light:F.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),D=(0,k.x1A)("editorGhostText.border",{dark:null,light:null,hcDark:F.Q1.fromHex("#fff").transparent(.8),hcLight:F.Q1.fromHex("#292929").transparent(.8)},r.kg("editorGhostTextBorder","Border color of ghost text in the editor.")),he=(0,k.x1A)("editorGhostText.foreground",{dark:F.Q1.fromHex("#ffffff56"),light:F.Q1.fromHex("#0007"),hcDark:null,hcLight:null},r.kg("editorGhostTextForeground","Foreground color of the ghost text in the editor.")),ve=(0,k.x1A)("editorGhostText.background",{dark:null,light:null,hcDark:null,hcLight:null},r.kg("editorGhostTextBackground","Background color of the ghost text in the editor.")),Ce=new F.Q1(new F.bU(0,122,204,.6)),Pe=(0,k.x1A)("editorOverviewRuler.rangeHighlightForeground",{dark:Ce,light:Ce,hcDark:Ce,hcLight:Ce},r.kg("overviewRulerRangeHighlight","Overview ruler marker color for range highlights. The color must not be opaque so as not to hide underlying decorations."),!0),_e=(0,k.x1A)("editorOverviewRuler.errorForeground",{dark:new F.Q1(new F.bU(255,18,18,.7)),light:new F.Q1(new F.bU(255,18,18,.7)),hcDark:new F.Q1(new F.bU(255,50,50,1)),hcLight:"#B5200D"},r.kg("overviewRuleError","Overview ruler marker color for errors.")),ee=(0,k.x1A)("editorOverviewRuler.warningForeground",{dark:k.Hng,light:k.Hng,hcDark:k.Stt,hcLight:k.Stt},r.kg("overviewRuleWarning","Overview ruler marker color for warnings.")),De=(0,k.x1A)("editorOverviewRuler.infoForeground",{dark:k.pOz,light:k.pOz,hcDark:k.IIb,hcLight:k.IIb},r.kg("overviewRuleInfo","Overview ruler marker color for infos.")),Te=(0,k.x1A)("editorBracketHighlight.foreground1",{dark:"#FFD700",light:"#0431FAFF",hcDark:"#FFD700",hcLight:"#0431FAFF"},r.kg("editorBracketHighlightForeground1","Foreground color of brackets (1). Requires enabling bracket pair colorization.")),He=(0,k.x1A)("editorBracketHighlight.foreground2",{dark:"#DA70D6",light:"#319331FF",hcDark:"#DA70D6",hcLight:"#319331FF"},r.kg("editorBracketHighlightForeground2","Foreground color of brackets (2). Requires enabling bracket pair colorization.")),qe=(0,k.x1A)("editorBracketHighlight.foreground3",{dark:"#179FFF",light:"#7B3814FF",hcDark:"#87CEFA",hcLight:"#7B3814FF"},r.kg("editorBracketHighlightForeground3","Foreground color of brackets (3). Requires enabling bracket pair colorization.")),Qe=(0,k.x1A)("editorBracketHighlight.foreground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketHighlightForeground4","Foreground color of brackets (4). Requires enabling bracket pair colorization.")),q=(0,k.x1A)("editorBracketHighlight.foreground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketHighlightForeground5","Foreground color of brackets (5). Requires enabling bracket pair colorization.")),ye=(0,k.x1A)("editorBracketHighlight.foreground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketHighlightForeground6","Foreground color of brackets (6). Requires enabling bracket pair colorization.")),ge=(0,k.x1A)("editorBracketHighlight.unexpectedBracket.foreground",{dark:new F.Q1(new F.bU(255,18,18,.8)),light:new F.Q1(new F.bU(255,18,18,.8)),hcDark:new F.Q1(new F.bU(255,50,50,1)),hcLight:""},r.kg("editorBracketHighlightUnexpectedBracketForeground","Foreground color of unexpected brackets.")),be=(0,k.x1A)("editorBracketPairGuide.background1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.background1","Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.")),Se=(0,k.x1A)("editorBracketPairGuide.background2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.background2","Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.")),ae=(0,k.x1A)("editorBracketPairGuide.background3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.background3","Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.")),me=(0,k.x1A)("editorBracketPairGuide.background4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.background4","Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.")),fe=(0,k.x1A)("editorBracketPairGuide.background5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.background5","Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.")),le=(0,k.x1A)("editorBracketPairGuide.background6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.background6","Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.")),oe=(0,k.x1A)("editorBracketPairGuide.activeBackground1",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.activeBackground1","Background color of active bracket pair guides (1). Requires enabling bracket pair guides.")),ne=(0,k.x1A)("editorBracketPairGuide.activeBackground2",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.activeBackground2","Background color of active bracket pair guides (2). Requires enabling bracket pair guides.")),de=(0,k.x1A)("editorBracketPairGuide.activeBackground3",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.activeBackground3","Background color of active bracket pair guides (3). Requires enabling bracket pair guides.")),Le=(0,k.x1A)("editorBracketPairGuide.activeBackground4",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.activeBackground4","Background color of active bracket pair guides (4). Requires enabling bracket pair guides.")),We=(0,k.x1A)("editorBracketPairGuide.activeBackground5",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.activeBackground5","Background color of active bracket pair guides (5). Requires enabling bracket pair guides.")),we=(0,k.x1A)("editorBracketPairGuide.activeBackground6",{dark:"#00000000",light:"#00000000",hcDark:"#00000000",hcLight:"#00000000"},r.kg("editorBracketPairGuide.activeBackground6","Background color of active bracket pair guides (6). Requires enabling bracket pair guides.")),Ue=(0,k.x1A)("editorUnicodeHighlight.border",{dark:k.Hng,light:k.Hng,hcDark:k.Hng,hcLight:k.Hng},r.kg("editorUnicodeHighlight.border","Border color used to highlight unicode characters.")),lt=(0,k.x1A)("editorUnicodeHighlight.background",{dark:k.whs,light:k.whs,hcDark:k.whs,hcLight:k.whs},r.kg("editorUnicodeHighlight.background","Background color used to highlight unicode characters."));(0,M.zy)((Et,Kt)=>{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;x<I;x++){const S=F.charCodeAt(x);S===13?(k===0&&(M=x),k++,x+1<I&&F.charCodeAt(x+1)===10?(g|=2,x++):g|=3,L=x+1):S===10&&(g|=1,k===0&&(M=x),k++,L=x+1)}return k===0&&(M=F.length),[k,M,F.length-L,g]}},"./node_modules/monaco-editor/esm/vs/editor/common/core/indentation.js":function(pt,Me,e){e.d(Me,{P: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/cursorColumns.js");function k(L,g,x){let I=0;for(let f=0;f<L.length;f++)L.charAt(f)===" "?I=F.A.nextIndentTabStop(I,g):I++;let S="";if(!x){const f=Math.floor(I/g);I=I%g;for(let d=0;d<f;d++)S+=" "}for(let f=0;f<I;f++)S+=" ";return S}function M(L,g,x){let I=r.HG(L);return I===-1&&(I=L.length),k(L.substring(0,I),g,x)+L.substring(I)}},"./node_modules/monaco-editor/esm/vs/editor/common/core/lineRange.js":function(pt,Me,e){e.d(Me,{M:function(){return L},S:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js");class L{static fromRangeInclusive(I){return new L(I.startLineNumber,I.endLineNumber+1)}static joinMany(I){if(I.length===0)return[];let S=new g(I[0].slice());for(let f=1;f<I.length;f++)S=S.getUnion(new g(I[f].slice()));return S.ranges}static join(I){if(I.length===0)throw new r.D7("lineRanges cannot be empty");let S=I[0].startLineNumber,f=I[0].endLineNumberExclusive;for(let d=1;d<I.length;d++)S=Math.min(S,I[d].startLineNumber),f=Math.max(f,I[d].endLineNumberExclusive);return new L(S,f)}static ofLength(I,S){return new L(I,I+S)}static deserialize(I){return new L(I[0],I[1])}constructor(I,S){if(I>S)throw new r.D7(`startLineNumber ${I} cannot be after endLineNumberExclusive ${S}`);this.startLineNumber=I,this.endLineNumberExclusive=S}contains(I){return this.startLineNumber<=I&&I<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(I){return new L(this.startLineNumber+I,this.endLineNumberExclusive+I)}deltaLength(I){return new L(this.startLineNumber,this.endLineNumberExclusive+I)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(I){return new L(Math.min(this.startLineNumber,I.startLineNumber),Math.max(this.endLineNumberExclusive,I.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(I){const S=Math.max(this.startLineNumber,I.startLineNumber),f=Math.min(this.endLineNumberExclusive,I.endLineNumberExclusive);if(S<=f)return new L(S,f)}intersectsStrict(I){return this.startLineNumber<I.endLineNumberExclusive&&I.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(I){return this.startLineNumber<=I.endLineNumberExclusive&&I.startLineNumber<=this.endLineNumberExclusive}equals(I){return this.startLineNumber===I.startLineNumber&&this.endLineNumberExclusive===I.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new k.Q(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new k.Q(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(I){const S=[];for(let f=this.startLineNumber;f<this.endLineNumberExclusive;f++)S.push(I(f));return S}forEach(I){for(let S=this.startLineNumber;S<this.endLineNumberExclusive;S++)I(S)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(I){return this.startLineNumber<=I&&I<this.endLineNumberExclusive}toOffsetRange(){return new F.L(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class g{constructor(I=[]){this._normalizedRanges=I}get ranges(){return this._normalizedRanges}addRange(I){if(I.length===0)return;const S=(0,M.hw)(this._normalizedRanges,d=>d.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.startLineNumber<I.endLineNumberExclusive);return!!S&&S.endLineNumberExclusive>I.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<this._normalizedRanges.length||d<I._normalizedRanges.length;){let s=null;if(f<this._normalizedRanges.length&&d<I._normalizedRanges.length){const n=this._normalizedRanges[f],i=I._normalizedRanges[d];n.startLineNumber<i.startLineNumber?(s=n,f++):(s=i,d++)}else f<this._normalizedRanges.length?(s=this._normalizedRanges[f],f++):(s=I._normalizedRanges[d],d++);a===null?a=s:a.endLineNumberExclusive>=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;s<f;s++){const n=this._normalizedRanges[s];n.startLineNumber>a&&d.push(new L(a,n.startLineNumber)),a=n.endLineNumberExclusive}return a<I.endLineNumberExclusive&&d.push(new L(a,I.endLineNumberExclusive)),new g(d)}toString(){return this._normalizedRanges.map(I=>I.toString()).join(", ")}getIntersection(I){const S=[];let f=0,d=0;for(;f<this._normalizedRanges.length&&d<I._normalizedRanges.length;){const a=this._normalizedRanges[f],s=I._normalizedRanges[d],n=a.intersect(s);n&&!n.isEmpty&&S.push(n),a.endLineNumberExclusive<s.endLineNumberExclusive?f++:d++}return new g(S)}getWithDelta(I){return new g(this._normalizedRanges.map(S=>S.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(;x<g.length&&g[x].endExclusive<L.start;)x++;let I=x;for(;I<g.length&&g[I].start<=L.endExclusive;)I++;if(x===I)g.splice(x,0,L);else{const S=Math.min(L.start,g[x].start),f=Math.max(L.endExclusive,g[I-1].endExclusive);g.splice(x,I-x,new F(S,f))}}static tryCreate(L,g){if(!(L>g))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<this.endExclusive}join(L){return new F(Math.min(this.start,L.start),Math.max(this.endExclusive,L.endExclusive))}intersect(L){const g=Math.max(this.start,L.start),x=Math.min(this.endExclusive,L.endExclusive);if(g<=x)return new F(g,x)}intersects(L){const g=Math.max(this.start,L.start),x=Math.min(this.endExclusive,L.endExclusive);return g<x}isBefore(L){return this.endExclusive<=L.start}isAfter(L){return this.start>=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.start?this.endExclusive-(this.start-L)%this.length:L>=this.endExclusive?this.start+(L-this.start)%this.length:L}forEach(L){for(let g=this.start;g<this.endExclusive;g++)L(g)}}class k{constructor(){this._sortedRanges=[]}addRange(L){let g=0;for(;g<this._sortedRanges.length&&this._sortedRanges[g].endExclusive<L.start;)g++;let x=g;for(;x<this._sortedRanges.length&&this._sortedRanges[x].start<=L.endExclusive;)x++;if(g===x)this._sortedRanges.splice(g,0,L);else{const I=Math.min(L.start,this._sortedRanges[g].start),S=Math.max(L.endExclusive,this._sortedRanges[x-1].endExclusive);this._sortedRanges.splice(g,x-g,new F(I,S))}}toString(){return this._sortedRanges.map(L=>L.toString()).join(", ")}intersectsStrict(L){let g=0;for(;g<this._sortedRanges.length&&this._sortedRanges[g].endExclusive<=L.start;)g++;return g<this._sortedRanges.length&&this._sortedRanges[g].start<L.endExclusive}intersectWithRange(L){const g=new k;for(const x of this._sortedRanges){const I=x.intersect(L);I&&g.addRange(I)}return g}intersectWithRangeLength(L){return this.intersectWithRange(L).length}get length(){return this._sortedRanges.reduce((L,g)=>L+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.lineNumber<M.lineNumber?!0:M.lineNumber<k.lineNumber?!1:k.column<M.column}isBeforeOrEqual(k){return r.isBeforeOrEqual(this,k)}static isBeforeOrEqual(k,M){return k.lineNumber<M.lineNumber?!0:M.lineNumber<k.lineNumber?!1:k.column<=M.column}static compare(k,M){const L=k.lineNumber|0,g=M.lineNumber|0;if(L===g){const x=k.column|0,I=M.column|0;return x-I}return L-g}clone(){return new r(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(k){return new r(k.lineNumber,k.column)}static isIPosition(k){return k&&typeof k.lineNumber=="number"&&typeof k.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/range.js":function(pt,Me,e){e.d(Me,{Q:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js");class F{constructor(M,L,g,x){M>g||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.lineNumber<M.startLineNumber||L.lineNumber>M.endLineNumber||L.lineNumber===M.startLineNumber&&L.column<M.startColumn||L.lineNumber===M.endLineNumber&&L.column>M.endColumn)}static strictContainsPosition(M,L){return!(L.lineNumber<M.startLineNumber||L.lineNumber>M.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.startLineNumber<M.startLineNumber||L.endLineNumber<M.startLineNumber||L.startLineNumber>M.endLineNumber||L.endLineNumber>M.endLineNumber||L.startLineNumber===M.startLineNumber&&L.startColumn<M.startColumn||L.endLineNumber===M.endLineNumber&&L.endColumn>M.endColumn)}strictContainsRange(M){return F.strictContainsRange(this,M)}static strictContainsRange(M,L){return!(L.startLineNumber<M.startLineNumber||L.endLineNumber<M.startLineNumber||L.startLineNumber>M.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.startLineNumber<M.startLineNumber?(g=L.startLineNumber,x=L.startColumn):L.startLineNumber===M.startLineNumber?(g=L.startLineNumber,x=Math.min(L.startColumn,M.startColumn)):(g=M.startLineNumber,x=M.startColumn),L.endLineNumber>M.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 g<f?(g=f,x=d):g===f&&(x=Math.max(x,d)),I>a?(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.endLineNumber<L.startLineNumber||M.endLineNumber===L.startLineNumber&&M.endColumn<L.startColumn||L.endLineNumber<M.startLineNumber||L.endLineNumber===M.startLineNumber&&L.endColumn<M.startColumn)}static areIntersecting(M,L){return!(M.endLineNumber<L.startLineNumber||M.endLineNumber===L.startLineNumber&&M.endColumn<=L.startColumn||L.endLineNumber<M.startLineNumber||L.endLineNumber===M.startLineNumber&&L.endColumn<=M.startColumn)}static compareRangesUsingStarts(M,L){if(M&&L){const I=M.startLineNumber|0,S=L.startLineNumber|0;if(I===S){const f=M.startColumn|0,d=L.startColumn|0;if(f===d){const a=M.endLineNumber|0,s=L.endLineNumber|0;if(a===s){const n=M.endColumn|0,i=L.endColumn|0;return n-i}return a-s}return f-d}return I-S}return(M?1:0)-(L?1:0)}static compareRangesUsingEnds(M,L){return M.endLineNumber===L.endLineNumber?M.endColumn===L.endColumn?M.startLineNumber===L.startLineNumber?M.startColumn-L.startColumn:M.startLineNumber-L.startLineNumber:M.endColumn-L.endColumn:M.endLineNumber-L.endLineNumber}static spansMultipleLines(M){return M.endLineNumber>M.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;x<I;x++)if(!this.selectionsEqual(L[x],g[x]))return!1;return!0}static isISelection(L){return L&&typeof L.selectionStartLineNumber=="number"&&typeof L.selectionStartColumn=="number"&&typeof L.positionLineNumber=="number"&&typeof L.positionColumn=="number"}static createWithDirection(L,g,x,I,S){return S===0?new k(L,g,x,I):new k(x,I,L,g)}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js":function(pt,Me,e){e.d(Me,{Su:function(){return f},b7:function(){return S},fe:function(){return a}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/buffer.js");let M;function L(){return M||(M=new TextDecoder("UTF-16LE")),M}let g;function x(){return g||(g=new TextDecoder("UTF-16BE")),g}let I;function S(){return I||(I=F.cm()?L():x()),I}function f(s,n,i){const c=new Uint16Array(s.buffer,n,i);return i>0&&(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<i;u++){const C=k.$l(s,n);n+=2,c[m++]=String.fromCharCode(C)}return c.join("")}class a{constructor(n){this._capacity=n|0,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}reset(){this._completedStrings=null,this._bufferLength=0}build(){return this._completedStrings!==null?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()}_buildBuffer(){if(this._bufferLength===0)return"";const n=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return S().decode(n)}_flushBuffer(){const n=this._buildBuffer();this._bufferLength=0,this._completedStrings===null?this._completedStrings=[n]:this._completedStrings[this._completedStrings.length]=n}appendCharCode(n){const i=this._capacity-this._bufferLength;i<=1&&(i===0||r.pc(n))&&this._flushBuffer(),this._buffer[this._bufferLength++]=n}appendASCIICharCode(n){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=n}appendString(n){const i=n.length;if(this._bufferLength+i>=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=n;return}for(let c=0;c<i;c++)this._buffer[this._bufferLength++]=n.charCodeAt(c)}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/textChange.js":function(pt,Me,e){e.d(Me,{k:function(){return M},x:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/buffer.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js");function k(x){return x.replace(/\n/g,"\\n").replace(/\r/g,"\\r")}class M{get oldLength(){return this.oldText.length}get oldEnd(){return this.oldPosition+this.oldText.length}get newLength(){return this.newText.length}get newEnd(){return this.newPosition+this.newText.length}constructor(I,S,f,d){this.oldPosition=I,this.oldText=S,this.newPosition=f,this.newText=d}toString(){return this.oldText.length===0?`(insert@${this.oldPosition} "${k(this.newText)}")`:this.newText.length===0?`(delete@${this.oldPosition} "${k(this.oldText)}")`:`(replace@${this.oldPosition} "${k(this.oldText)}" with "${k(this.newText)}")`}static _writeStringSize(I){return 4+2*I.length}static _writeString(I,S,f){const d=S.length;r.Sw(I,d,f),f+=4;for(let a=0;a<d;a++)r.gN(I,S.charCodeAt(a),f),f+=2;return f}static _readString(I,S){const f=r.bb(I,S);return S+=4,(0,F.Su)(I,S,f)}writeSize(){return 8+M._writeStringSize(this.oldText)+M._writeStringSize(this.newText)}write(I,S){return r.Sw(I,this.oldPosition,S),S+=4,r.Sw(I,this.newPosition,S),S+=4,S=M._writeString(I,this.oldText,S),S=M._writeString(I,this.newText,S),S}static read(I,S,f){const d=r.bb(I,S);S+=4;const a=r.bb(I,S);S+=4;const s=M._readString(I,S);S+=M._writeStringSize(s);const n=M._readString(I,S);return S+=M._writeStringSize(n),f.push(new M(d,s,a,n)),S}}function L(x,I){return x===null||x.length===0?I:new g(x,I).compress()}class g{constructor(I,S){this._prevEdits=I,this._currEdits=S,this._result=[],this._resultLen=0,this._prevLen=this._prevEdits.length,this._prevDeltaOffset=0,this._currLen=this._currEdits.length,this._currDeltaOffset=0}compress(){let I=0,S=0,f=this._getPrev(I),d=this._getCurr(S);for(;I<this._prevLen||S<this._currLen;){if(f===null){this._acceptCurr(d),d=this._getCurr(++S);continue}if(d===null){this._acceptPrev(f),f=this._getPrev(++I);continue}if(d.oldEnd<=f.newPosition){this._acceptCurr(d),d=this._getCurr(++S);continue}if(f.newEnd<=d.oldPosition){this._acceptPrev(f),f=this._getPrev(++I);continue}if(d.oldPosition<f.newPosition){const[c,m]=g._splitCurr(d,f.newPosition-d.oldPosition);this._acceptCurr(c),d=m;continue}if(f.newPosition<d.oldPosition){const[c,m]=g._splitPrev(f,d.oldPosition-f.newPosition);this._acceptPrev(c),f=m;continue}let n,i;if(d.oldEnd===f.newEnd)n=f,i=d,f=this._getPrev(++I),d=this._getCurr(++S);else if(d.oldEnd<f.newEnd){const[c,m]=g._splitPrev(f,d.oldLength);n=c,i=d,f=m,d=this._getCurr(++S)}else{const[c,m]=g._splitCurr(d,f.newLength);n=f,i=c,f=this._getPrev(++I),d=m}this._result[this._resultLen++]=new M(n.oldPosition,n.oldText,i.newPosition,i.newText),this._prevDeltaOffset+=n.newLength-n.oldLength,this._currDeltaOffset+=i.newLength-i.oldLength}const a=g._merge(this._result);return g._removeNoOps(a)}_acceptCurr(I){this._result[this._resultLen++]=g._rebaseCurr(this._prevDeltaOffset,I),this._currDeltaOffset+=I.newLength-I.oldLength}_getCurr(I){return I<this._currLen?this._currEdits[I]:null}_acceptPrev(I){this._result[this._resultLen++]=g._rebasePrev(this._currDeltaOffset,I),this._prevDeltaOffset+=I.newLength-I.oldLength}_getPrev(I){return I<this._prevLen?this._prevEdits[I]:null}static _rebaseCurr(I,S){return new M(S.oldPosition-I,S.oldText,S.newPosition,S.newText)}static _rebasePrev(I,S){return new M(S.oldPosition,S.oldText,S.newPosition+I,S.newText)}static _splitPrev(I,S){const f=I.newText.substr(0,S),d=I.newText.substr(S);return[new M(I.oldPosition,I.oldText,I.newPosition,f),new M(I.oldEnd,"",I.newPosition+S,d)]}static _splitCurr(I,S){const f=I.oldText.substr(0,S),d=I.oldText.substr(S);return[new M(I.oldPosition,f,I.newPosition,I.newText),new M(I.oldPosition+S,d,I.newEnd,"")]}static _merge(I){if(I.length===0)return I;const S=[];let f=0,d=I[0];for(let a=1;a<I.length;a++){const s=I[a];d.oldEnd===s.oldPosition?d=new M(d.oldPosition,d.oldText+s.oldText,d.newPosition,d.newText+s.newText):(S[f++]=d,d=s)}return S[f++]=d,S}static _removeNoOps(I){if(I.length===0)return I;const S=[];let f=0;for(let d=0;d<I.length;d++){const a=I[d];a.oldText!==a.newText&&(S[f++]=a)}return S}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/textEdit.js":function(pt,Me,e){e.d(Me,{CO:function(){return d},WR:function(){return S},mF:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/assert.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.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/offsetRange.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textLength.js");class g{constructor(n){this.text=n,this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let i=0;i<n.length;i++)n.charAt(i)===`
`&&this.lineStartOffsetByLineIdx.push(i+1)}getOffset(n){return this.lineStartOffsetByLineIdx[n.lineNumber-1]+n.column-1}getOffsetRange(n){return new M.L(this.getOffset(n.getStartPosition()),this.getOffset(n.getEndPosition()))}get textLength(){const n=this.lineStartOffsetByLineIdx.length-1;return new L.W(n,this.text.length-this.lineStartOffsetByLineIdx[n])}}var x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class I{constructor(n){this.edits=n,(0,r.Ft)(()=>(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===`
`||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<s;a++)if(this.changes[a].changeType===d)return!0;return!1}static merge(d,a){const s=[].concat(d.changes).concat(a.changes),n=a.versionId,i=d.isUndoing||a.isUndoing,c=d.isRedoing||a.isRedoing;return new x(s,n,i,c)}}class I{constructor(d){this.changes=d}}class S{constructor(d,a){this.rawContentChangedEvent=d,this.contentChangedEvent=a}merge(d){const a=x.merge(this.rawContentChangedEvent,d.rawContentChangedEvent),s=S._mergeChangeEvents(this.contentChangedEvent,d.contentChangedEvent);return new S(a,s)}static _mergeChangeEvents(d,a){const s=[].concat(d.changes).concat(a.changes),n=a.eol,i=a.versionId,c=d.isUndoing||a.isUndoing,m=d.isRedoing||a.isRedoing,u=d.isFlush||a.isFlush,C=d.isEolChange&&a.isEolChange;return{changes:s,eol:n,isEolChange:C,versionId:i,isUndoing:c,isRedoing:m,isFlush:u}}}},"./node_modules/monaco-editor/esm/vs/editor/common/textModelGuides.js":function(pt,Me,e){e.d(Me,{N6:function(){return r},TH:function(){return F},pv:function(){return k}});var r;(function(M){M[M.Disabled=0]="Disabled",M[M.EnabledForActive=1]="EnabledForActive",M[M.Enabled=2]="Enabled"})(r||(r={}));class F{constructor(L,g,x,I,S,f){if(this.visibleColumn=L,this.column=g,this.className=x,this.horizontalLine=I,this.forWrappedLinesAfterColumn=S,this.forWrappedLinesBeforeOrAtColumn=f,L!==-1==(g!==-1))throw new Error}}class k{constructor(L,g){this.top=L,this.endColumn=g}}},"./node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.js":function(pt,Me,e){e.d(Me,{f:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/encodedTokenAttributes.js");class F{static createEmpty(L,g){const x=F.defaultTokenMetadata,I=new Uint32Array(2);return I[0]=L.length,I[1]=x,new F(I,L,g)}constructor(L,g,x){this._lineTokensBrand=void 0,this._tokens=L,this._tokensCount=this._tokens.length>>>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;f<S;f++)if(this._tokens[f]!==L._tokens[f])return!1;return!0}getLineContent(){return this._text}getCount(){return this._tokensCount}getStartOffset(L){return L>0?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<I;S++)L[S<<1]=L[S+1<<1];L[I<<1]=g}static findIndexInTokensArray(L,g){if(L.length<=2)return 0;let x=0,I=(L.length>>>1)-1;for(;x<I;){const S=x+Math.floor((I-x)/2),f=L[S<<1];if(f===g)return S+1;f<g?x=S+1:f>g&&(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=g<this._tokensCount?this._tokens[g<<1]:-1,a=x<L.length?L[x]:null;if(d!==-1&&(a===null||d<=a.offset)){I+=this._text.substring(f,d);const s=this._tokens[(g<<1)+1];S.push(I.length,s),g++,f=d}else if(a){if(a.offset>f){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<f&&!(L.getStartOffset(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<S;d++)if(!F._equals(x[d],I[d]))return!1;return!0}static extractWrapped(x,I,S){if(x.length===0)return x;const f=I+1,d=S+1,a=S-I,s=[];let n=0;for(const i of x)i.endColumn<=f||i.startColumn>=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;s<n;s++){const i=x[s],c=i.range;if(c.endLineNumber<I||c.startLineNumber>I||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.className<I.className?-1:1:0}}class k{constructor(x,I,S,f){this.startOffset=x,this.endOffset=I,this.className=S,this.metadata=f}}class M{constructor(){this.stopOffsets=[],this.classNames=[],this.metadata=[],this.count=0}static _metadata(x){let I=0;for(let S=0,f=x.length;S<f;S++)I|=x[S];return I}consumeLowerThan(x,I,S){for(;this.count>0&&this.stopOffsets[0]<x;){let f=0;for(;f+1<this.count&&this.stopOffsets[f]===this.stopOffsets[f+1];)f++;S.push(new k(I,this.stopOffsets[f],this.classNames.join(" "),M._metadata(this.metadata))),I=this.stopOffsets[f]+1,this.stopOffsets.splice(0,f+1),this.classNames.splice(0,f+1),this.metadata.splice(0,f+1),this.count-=f+1}return this.count>0&&I<x&&(S.push(new k(I,x-1,this.classNames.join(" "),M._metadata(this.metadata))),I=x),I}insert(x,I,S){if(this.count===0||this.stopOffsets[this.count-1]<=x)this.stopOffsets.push(x),this.classNames.push(I),this.metadata.push(S);else for(let f=0;f<this.count;f++)if(this.stopOffsets[f]>=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;a<s;a++){const n=I[a];let i=n.startColumn,c=n.endColumn;const m=n.className,u=n.type===1?2:n.type===2?4:0;if(i>1){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<Ce.startOffset?-1:1);const D=Math.abs(V-J),he=Math.abs(B-J);D<he?(this.renderSpaceWidth=V,this.renderSpaceCharCode=11825):(this.renderSpaceWidth=B,this.renderSpaceCharCode=183)}sameSelection(j){if(this.selectionsOnLine===null)return j===null;if(j===null||j.length!==this.selectionsOnLine.length)return!1;for(let U=0;U<this.selectionsOnLine.length;U++)if(!this.selectionsOnLine[U].equals(j[U]))return!1;return!0}equals(j){return this.useMonospaceOptimizations===j.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===j.canUseHalfwidthRightwardsArrow&&this.lineContent===j.lineContent&&this.continuesWithWrappedLine===j.continuesWithWrappedLine&&this.isBasicASCII===j.isBasicASCII&&this.containsRTL===j.containsRTL&&this.fauxIndentLength===j.fauxIndentLength&&this.tabSize===j.tabSize&&this.startVisibleColumn===j.startVisibleColumn&&this.spaceWidth===j.spaceWidth&&this.renderSpaceWidth===j.renderSpaceWidth&&this.renderSpaceCharCode===j.renderSpaceCharCode&&this.stopRenderingLineAfter===j.stopRenderingLineAfter&&this.renderWhitespace===j.renderWhitespace&&this.renderControlCharacters===j.renderControlCharacters&&this.fontLigatures===j.fontLigatures&&M.d.equalsArr(this.lineDecorations,j.lineDecorations)&&this.lineTokens.equals(j.lineTokens)&&this.sameSelection(j.selectionsOnLine)}}class I{constructor(j,U){this.partIndex=j,this.charIndex=U}}class S{static getPartIndex(j){return(j&4294901760)>>>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<A;){const Y=P+A>>>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("<span>");let U=0,K=0,G=0;for(const A of w.lineDecorations)(A.type===1||A.type===2)&&(j.appendString('<span class="'),j.appendString(A.className),j.appendString('"></span>'),A.type===1&&(G|=1,U++),A.type===2&&(G|=2,K++));j.appendString("</span>");const P=new S(1,U+K);return P.setColumnInfo(1,U,0,0),new f(P,!1,G)}return j.appendString("<span><span></span></span>"),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.stopRenderingLineAfter<j.length?(U=!0,K=j.length-w.stopRenderingLineAfter,G=w.stopRenderingLineAfter):(U=!1,K=0,G=j.length);let P=c(j,w.containsRTL,w.lineTokens,w.fauxIndentLength,G);w.renderControlCharacters&&!w.isBasicASCII&&(P=C(j,P)),(w.renderWhitespace===4||w.renderWhitespace===1||w.renderWhitespace===2&&w.selectionsOnLine||w.renderWhitespace===3&&!w.continuesWithWrappedLine)&&(P=h(w,j,G,P));let A=0;if(w.lineDecorations.length>0){for(let T=0,E=w.lineDecorations.length;T<E;T++){const W=w.lineDecorations[T];W.type===3||W.type===1?A|=1:W.type===2&&(A|=2)}P=v(j,G,P,w.lineDecorations)}return w.containsRTL||(P=m(j,P,!w.isBasicASCII||w.fontLigatures)),new n(w.useMonospaceOptimizations,w.canUseHalfwidthRightwardsArrow,j,G,U,K,P,A,w.fauxIndentLength,w.tabSize,w.startVisibleColumn,w.containsRTL,w.spaceWidth,w.renderSpaceCharCode,w.renderWhitespace,w.renderControlCharacters)}function c(w,j,U,K,G){const P=[];let A=0;K>0&&(P[A++]=new L(K,"",0,!1));let T=K;for(let E=0,W=U.getCount();E<W;E++){const $=U.getEndOffset(E);if($<=K)continue;const z=U.getClassName(E);if($>=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<T;A++){const E=j[A],W=E.endIndex;if(K+50<W){const $=E.type,z=E.metadata,J=E.containsRTL;let B=-1,V=K;for(let Y=K;Y<W;Y++)w.charCodeAt(Y)===32&&(B=Y),B!==-1&&Y-V>=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;A<T;A++){const E=j[A],W=E.endIndex,$=W-K;if($>50){const z=E.type,J=E.metadata,B=E.containsRTL,V=Math.ceil($/50);for(let Y=1;Y<V;Y++){const X=K+Y*50;G[P++]=new L(X,z,J,B)}G[P++]=new L(W,z,J,B)}else G[P++]=E;K=W}return G}function u(w){return w<32?w!==9:w===127||w>=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(;G<A;G++){const T=w.charCodeAt(G);u(T)&&(G>K.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<U;Te++){const He=j.charCodeAt(Te);_e&&Te>=_e.endOffset&&(Pe++,_e=W&&W[Pe]);let qe;if(Te<he||Te>ve)qe=!0;else if(He===9)qe=!0;else if(He===32)if($)if(Ce)qe=!0;else{const Qe=Te+1<U?j.charCodeAt(Te+1):0;qe=Qe===32||Qe===9}else qe=!0;else qe=!1;if(qe&&W&&(qe=!!_e&&_e.startOffset<=Te&&_e.endOffset>Te),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++,Y<te);)X=K[Y].type,ie=K[Y].containsRTL,re=K[Y].endIndex}let De=!1;if(Ce)if(G&&$){const Te=U>0?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;z<J;z++){const B=U[z],V=B.endIndex,Y=B.type,X=B.metadata,ie=B.containsRTL;for(;A<P&&G[A].startOffset<V;){const re=G[A];if(re.startOffset>W&&(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<P&&G[A].startOffset===$)for(;A<P&&G[A].startOffset===$;){const z=G[A];T[E++]=new L(W,z.className,z.metadata,!1),A++}return T}function p(w,j){const U=w.fontIsMonospace,K=w.canUseHalfwidthRightwardsArrow,G=w.containsForeignElements,P=w.lineContent,A=w.len,T=w.isOverflowing,E=w.overflowingCharCount,W=w.parts,$=w.fauxIndentLength,z=w.tabSize,J=w.startVisibleColumn,B=w.containsRTL,V=w.spaceWidth,Y=w.renderSpaceCharCode,X=w.renderWhitespace,ie=w.renderControlCharacters,re=new S(A+1,W.length);let te=!1,D=0,he=J,ve=0,Ce=0,Pe=0;B?j.appendString('<span dir="ltr">'):j.appendString("<span>");for(let _e=0,ee=W.length;_e<ee;_e++){const De=W[_e],Te=De.endIndex,He=De.type,qe=De.containsRTL,Qe=X!==0&&De.isWhitespace(),q=Qe&&!U&&(He==="mtkw"||!G),ye=D===Te&&De.isPseudoAfter();if(ve=0,j.appendString("<span "),qe&&j.appendString('style="unicode-bidi:isolate" '),j.appendString('class="'),j.appendString(q?"mtkz":He),j.appendASCIICharCode(34),Qe){let ge=0;{let be=D,Se=he;for(;be<Te;be++){const me=(P.charCodeAt(be)===9?z-Se%z:1)|0;ge+=me,be>=$&&(Se+=me)}}for(q&&(j.appendString(' style="width:'),j.appendString(String(V*ge)),j.appendString('px"')),j.appendASCIICharCode(62);D<Te;D++){re.setColumnInfo(D+1,_e-Pe,ve,Ce),Pe=0;const be=P.charCodeAt(D);let Se,ae;if(be===9){Se=z-he%z|0,ae=Se,!K||ae>1?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<Te;D++){re.setColumnInfo(D+1,_e-Pe,ve,Ce),Pe=0;const ge=P.charCodeAt(D);let be=1,Se=1;switch(ge){case 9:be=z-he%z,Se=be;for(let ae=1;ae<=be;ae++)j.appendCharCode(160);break;case 32:j.appendCharCode(160);break;case 60:j.appendString("<");break;case 62:j.appendString(">");break;case 38:j.appendString("&");break;case 0:ie?j.appendCharCode(9216):j.appendString("�");break;case 65279:case 8232:case 8233:case 133:j.appendCharCode(65533);break;default:F.ne(ge)&&Se++,ie&&ge<32?j.appendCharCode(9216+ge):ie&&ge===127?j.appendCharCode(9249):ie&&u(ge)?(j.appendString("[U+"),j.appendString(b(ge)),j.appendString("]"),be=8,Se=be):j.appendCharCode(ge)}ve+=be,Ce+=Se,D>=$&&(he+=Se)}ye?Pe++:Pe=0,D>=A&&!te&&De.isPseudoAfter()&&(te=!0,re.setColumnInfo(D+1,_e,ve,Ce)),j.appendString("</span>")}return te||re.setColumnInfo(A+1,W.length-1,ve,Ce),T&&(j.appendString('<span class="mtkoverflow">'),j.appendString(r.kg("showMore","Show more ({0})",O(E))),j.appendString("</span>")),j.appendString("</span>"),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.color<n.color?-1:s.color>n.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.color<g.color?-1:1}setColorZone(L){this._colorZone=L}getColorZones(){return this._colorZone}}class k{constructor(L){this._getVerticalOffsetForLine=L,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(L){this._zones=L,this._zones.sort(F.compare)}setLineHeight(L){return this._lineHeight===L?!1:(this._lineHeight=L,this._colorZonesInvalid=!0,!0)}setPixelRatio(L){this._pixelRatio=L,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(L){return this._domWidth===L?!1:(this._domWidth=L,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(L){return this._domHeight===L?!1:(this._domHeight=L,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(L){return this._outerHeight===L?!1:(this._outerHeight=L,this._colorZonesInvalid=!0,!0)}resolveColorZones(){const L=this._colorZonesInvalid,g=Math.floor(this._lineHeight),x=Math.floor(this.getCanvasHeight()),I=Math.floor(this._outerHeight),S=x/I,f=Math.floor(4*this._pixelRatio/2),d=[];for(let a=0,s=this._zones.length;a<s;a++){const n=this._zones[a];if(!L){const O=n.getColorZones();if(O){d.push(O);continue}}const i=this._getVerticalOffsetForLine(n.startLineNumber),c=n.heightInLines===0?this._getVerticalOffsetForLine(n.endLineNumber)+g:i+n.heightInLines*g,m=Math.floor(S*i),u=Math.floor(S*c);let C=Math.floor((m+u)/2),h=u-C;h<f&&(h=f),C-h<0&&(C=h),C+h>x&&(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;h<v;h++){const p=n[h],b=p.options;if(!g(this.model,p))continue;const O=this._getOrCreateViewModelDecoration(p),w=O.range;if(m[u++]=O,b.inlineClassName){const j=new k.kI(w,b.inlineClassName,b.inlineClassNameAffectsLetterSpacing?3:0),U=Math.max(i,w.startLineNumber),K=Math.min(c,w.endLineNumber);for(let G=U;G<=K;G++)C[G-i].push(j)}if(b.beforeContentClassName&&i<=w.startLineNumber&&w.startLineNumber<=c){const j=new k.kI(new F.Q(w.startLineNumber,w.startColumn,w.startLineNumber,w.startColumn),b.beforeContentClassName,1);C[w.startLineNumber-i].push(j)}if(b.afterContentClassName&&i<=w.endLineNumber&&w.endLineNumber<=c){const j=new k.kI(new F.Q(w.endLineNumber,w.endColumn,w.endLineNumber,w.endColumn),b.afterContentClassName,2);C[w.endLineNumber-i].push(j)}}return{decorations:m,inlineDecorations:C}}}function g(f,d){return!(d.options.hideInCommentTokens&&x(f,d)||d.options.hideInStringTokens&&I(f,d))}function x(f,d){return S(f,d.range,a=>a===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(;m<n.getCount()&&!(c&&n.getStartOffset(m)>d.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;A<T;A++){const E=v[A];E.isEmpty()&&(w[j++]=E.getStartPosition())}w.length>1&&w.sort(M.y.compare);const U=[];let K=0,G=0;const P=O.length;for(let A=0,T=w.length;A<T;A++){const E=w[A];for(;G<P&&O[G].position.isBefore(E);)G++;if(G<P&&O[G].position.equals(E))U[K++]=O[G];else{let W=p.bracketPairs.matchBracket(E,20),$=C._DECORATION_OPTIONS_WITH_OVERVIEW_RULER;!W&&this._matchBrackets==="always"&&(W=p.bracketPairs.findEnclosingBrackets(E,20),$=C._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER),U[K++]=new u(E,W,$)}}this._lastBracketsData=U,this._lastVersionId=b}}C.ID="editor.contrib.bracketMatchingController",C._DECORATION_OPTIONS_WITH_OVERVIEW_RULER=S.kI.register({description:"bracket-match-overview",stickiness:1,className:"bracket-match",overviewRuler:{color:(0,s.Yf)(n),position:I.A5.Center}}),C._DECORATION_OPTIONS_WITHOUT_OVERVIEW_RULER=S.kI.register({description:"bracket-match-no-overview",stickiness:1,className:"bracket-match"}),(0,k.HW)(C.ID,C,1),(0,k.Fl)(c),(0,k.Fl)(i),(0,k.Fl)(m),d.ZG.appendMenuItem(d.D8.MenubarGoMenu,{group:"5_infile_nav",command:{id:"editor.action.jumpToBracket",title:f.kg({key:"miGoToBracket",comment:["&& denotes a mnemonic"]},"Go to &&Bracket")},order:2})},"./node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/caretOperations.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/editorContextKeys.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");class L{constructor(d,a){this._selection=d,this._isMovingLeft=a}getEditOperations(d,a){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;const s=this._selection.startLineNumber,n=this._selection.startColumn,i=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&i===d.getLineMaxColumn(s)))if(this._isMovingLeft){const c=new k.Q(s,n-1,s,n),m=d.getValueInRange(c);a.addEditOperation(c,null),a.addEditOperation(new k.Q(s,i,s,i),m)}else{const c=new k.Q(s,i,s,i+1),m=d.getValueInRange(c);a.addEditOperation(c,null),a.addEditOperation(new k.Q(s,n,s,n),m)}}computeCursorState(d,a){return this._isMovingLeft?new M.L(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new M.L(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}var g=e("./node_modules/monaco-editor/esm/vs/nls.js");class x extends r.ks{constructor(d,a){super(a),this.left=d}run(d,a){if(!a.hasModel())return;const s=[],n=a.getSelections();for(const i of n)s.push(new L(i,this.left));a.pushUndoStop(),a.executeCommands(this.id,s),a.pushUndoStop()}}class I extends x{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:g.kg("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:F.R.writable})}}class S extends x{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:g.kg("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:F.R.writable})}}(0,r.Fl)(I),(0,r.Fl)(S)},"./node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/transpose.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/commands/replaceCommand.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorMoveOperations.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/nls.js");class x extends r.ks{constructor(){super({id:"editor.action.transposeLetters",label:g.kg("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:L.R.writable,kbOpts:{kbExpr:L.R.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(S,f){if(!f.hasModel())return;const d=f.getModel(),a=[],s=f.getSelections();for(const n of s){if(!n.isEmpty())continue;const i=n.startLineNumber,c=n.startColumn,m=d.getLineMaxColumn(i);if(i===1&&(c===1||c===2&&m===2))continue;const u=c===m?n.getPosition():k.I.rightPosition(d,n.getPosition().lineNumber,n.getPosition().column),C=k.I.leftPosition(d,u),h=k.I.leftPosition(d,C),v=d.getValueInRange(M.Q.fromPositions(h,C)),p=d.getValueInRange(M.Q.fromPositions(C,u)),b=M.Q.fromPositions(h,u);a.push(new F.iu(b,p+v))}a.length>0&&(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;ve<he;ve++)D.push(te.validActions[ve].resolve(F.X.None));try{return await Promise.all(D),te.validActions.map(ve=>ve.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)<he?ve.unshift(...qe.validActions):ve.push(...qe.validActions)}he=Math.abs(te.column-_e)}}const Ce=ve.filter((Pe,_e,ee)=>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<this.state.editorPosition.lineNumber&&(w+=O),this._onClick.fire({x:v.posx,y:p+b+w,actions:this.state.actions,trigger:this.state.trigger})})),this._register(r.ko(this._domNode,"mouseenter",v=>{(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(b<p.getLineCount()&&!P(b+1))A+=1;else if(O*j.spaceWidth<22)return this.hide();T=/^\S\s*$/.test(p.getLineContent(A))?2:1}this.state=new i.Showing(u,C,h,{position:{lineNumber:A,column:T},preference:n._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==i.Hidden&&(this.state=i.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(u){this._state=u,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this._domNode.classList.remove(...this._iconClasses),this._iconClasses=[],this.state.type!==1)return;let u,C=!1;this.state.actions.allAIFixes?(u=k.W.sparkleFilled,this.state.actions.validActions.length===1&&(C=!0)):this.state.actions.hasAutoFix?this.state.actions.hasAIFix?u=k.W.lightbulbSparkleAutofix:u=k.W.lightbulbAutofix:this.state.actions.hasAIFix?u=k.W.lightbulbSparkle:u=k.W.lightBulb,this._updateLightbulbTitle(this.state.actions.hasAutoFix,C),this._iconClasses=g.L.asClassNameArray(u),this._domNode.classList.add(...this._iconClasses)}_updateLightbulbTitle(u,C){this.state.type===1&&(C?this.title=S.kg("codeActionAutoRun","Run: {0}",this.state.actions.validActions[0].action.title):u&&this._preferredKbLabel?this.title=S.kg("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel):!u&&this._quickFixKbLabel?this.title=S.kg("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):u||(this.title=S.kg("codeAction","Show Code Actions")))}set title(u){this._domNode.title=u}};c.ID="editor.contrib.lightbulbWidget",c._posPref=[0],c=n=a([s(1,d.b),s(2,f.d)],c)},"./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/common/types.js":function(pt,Me,e){e.d(Me,{QA:function(){return I},Vi:function(){return S},aF:function(){return g},fo:function(){return M},gB:function(){return k},uJ:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/hierarchicalKind.js");const k=new class{constructor(){this.QuickFix=new F.k("quickfix"),this.Refactor=new F.k("refactor"),this.RefactorExtract=this.Refactor.append("extract"),this.RefactorInline=this.Refactor.append("inline"),this.RefactorMove=this.Refactor.append("move"),this.RefactorRewrite=this.Refactor.append("rewrite"),this.Notebook=new F.k("notebook"),this.Source=new F.k("source"),this.SourceOrganizeImports=this.Source.append("organizeImports"),this.SourceFixAll=this.Source.append("fixAll"),this.SurroundWith=this.Refactor.append("surround")}};var M;(function(f){f.Refactor="refactor",f.RefactorPreview="refactor preview",f.Lightbulb="lightbulb",f.Default="other (default)",f.SourceAction="source action",f.QuickFix="quick fix action",f.FixAll="fix all",f.OrganizeImports="organize imports",f.AutoFix="auto fix",f.QuickFixHover="quick fix hover window",f.OnSave="save participants",f.ProblemsView="problems view"})(M||(M={}));function L(f,d){return!(f.include&&!f.include.intersects(d)||f.excludes&&f.excludes.some(a=>x(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.startLineNumber<ee.symbol.range.startLineNumber?-1:_e.symbol.range.startLineNumber>ee.symbol.range.startLineNumber?1:ve.get(_e.provider)<ve.get(ee.provider)?-1:ve.get(_e.provider)>ve.get(ee.provider)?1:_e.symbol.range.startColumn<ee.symbol.range.startColumn?-1:_e.symbol.range.startColumn>ee.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<te.length;Ce++){const Pe=te[Ce];if(Pe&&(ve=!0,Pe.command)){const _e=(0,G.n)(Pe.command.title.trim());if(Pe.command.id){const ee=`c${T._idPool++}`;he.push(b.$("a",{id:ee,title:Pe.command.tooltip,role:"button"},..._e)),this._commands.set(ee,Pe.command)}else he.push(b.$("span",{title:Pe.command.tooltip},..._e));Ce+1<te.length&&he.push(b.$("span",void 0,"\xA0|\xA0"))}}ve?(b.Ln(this._domNode,...he),this._isEmpty&&D&&this._domNode.classList.add("fadein"),this._isEmpty=!1):b.Ln(this._domNode,b.$("span",void 0,"no commands"))}getCommand(te){return te.parentElement===this._domNode?this._commands.get(te.id):void 0}getId(){return this._id}getDomNode(){return this._domNode}updatePosition(te){const D=this._editor.getModel().getLineFirstNonWhitespaceColumn(te);this._widgetPosition={position:{lineNumber:te,column:D},preference:[1]}}getPosition(){return this._widgetPosition||null}}T._idPool=0;class E{constructor(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}addDecoration(te,D){this._addDecorations.push(te),this._addDecorationsCallbacks.push(D)}removeDecoration(te){this._removeDecorations.push(te)}commit(te){const D=te.deltaDecorations(this._removeDecorations,this._addDecorations);for(let he=0,ve=D.length;he<ve;he++)this._addDecorationsCallbacks[he](D[he])}}const W=P.kI.register({collapseOnReplaceEdit:!0,description:"codelens"});class ${constructor(te,D,he,ve,Ce,Pe){this._isDisposed=!1,this._editor=D,this._data=te,this._decorationIds=[];let _e;const ee=[];this._data.forEach((De,Te)=>{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<this._decorationIds.length;D++){const he=te.getDecorationRange(this._decorationIds[D]);he&&(this._data[D].symbol.range=he)}return this._data}updateCommands(te){this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(te,!0);for(let D=0;D<this._data.length;D++){const he=te[D];if(he){const{symbol:ve}=this._data[D];ve.command=he.command||ve.command}}}getCommand(te){var D;return(D=this._contentWidget)===null||D===void 0?void 0:D.getCommand(te)}getLineNumber(){const te=this._editor.getModel().getDecorationRange(this._decorationIds[0]);return te?te.startLineNumber:-1}update(te){if(this.isValid()){const D=this._editor.getModel().getDecorationRange(this._decorationIds[0]);D&&(this._viewZone.afterLineNumber=D.startLineNumber-1,te.layoutZone(this._viewZoneId),this._contentWidget&&(this._contentWidget.updatePosition(D.startLineNumber),this._editor.layoutContentWidget(this._contentWidget)))}}}var z=e("./node_modules/monaco-editor/esm/vs/nls.js"),J=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),B=e("./node_modules/monaco-editor/esm/vs/platform/quickinput/common/quickInput.js"),V=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"),Y=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},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(;He<he.length&&Te<this._lenses.length;){const qe=he[He][0].symbol.range.startLineNumber,Qe=this._lenses[Te].getLineNumber();Qe<qe?(this._lenses[Te].dispose(De,ee),this._lenses.splice(Te,1)):Qe===qe?(this._lenses[Te].updateCodeLensSymbols(he[He],De),He++,Te++):(this._lenses.splice(Te,0,new $(he[He],this._editor,De,ee,Pe.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),Te++,He++)}for(;Te<this._lenses.length;)this._lenses[Te].dispose(De,ee),this._lenses.splice(Te,1);for(;He<he.length;)this._lenses.push(new $(he[He],this._editor,De,ee,Pe.codeLensHeight,()=>this._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;U<b.length&&O.length<w;U++){const{red:K,green:G,blue:P,alpha:A}=b[U].colorInfo.color,T=new F.bU(Math.round(K*255),Math.round(G*255),Math.round(P*255),A),E=`rgba(${T.r}, ${T.g}, ${T.b}, ${T.a})`,W=this._colorDecorationClassRefs.add(this._ruleFactory.createClassNameRef({backgroundColor:E}));O.push({range:{startLineNumber:b[U].colorInfo.range.startLineNumber,startColumn:b[U].colorInfo.range.startColumn,endLineNumber:b[U].colorInfo.range.endLineNumber,endColumn:b[U].colorInfo.range.endColumn},options:{description:"colorDetector",before:{content:x.S8,inlineClassName:`${W.className} colorpicker-color-decoration`,inlineClassNameAffectsLetterSpacing:!0,attachedData:C}}})}const j=w<b.length?w:!1;this._decoratorLimitReporter.update(b.length,j),this._colorDecoratorIds.set(O)}removeAllDecorations(){this._editor.removeDecorations(this._decorationsIds),this._decorationsIds=[],this._colorDecoratorIds.clear(),this._colorDecorationClassRefs.clear()}getColorData(b){const O=this._editor.getModel();if(!O)return null;const w=O.getDecorationsInRange(f.Q.fromPositions(b,b)).filter(j=>this._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.colorPresentations.length;te++)if(ie.toLowerCase()===this.colorPresentations[te].label){re=te;break}if(re===-1){const te=ie.split("(")[0].toLowerCase();for(let D=0;D<this.colorPresentations.length;D++)if(this.colorPresentations[D].label.toLowerCase().startsWith(te)){re=D;break}}re!==-1&&re!==this.presentationIndex&&(this.presentationIndex=re,this._onDidChangePresentation.fire(this.presentation))}flushColor(){this._onColorFlushed.fire(this._color)}}var f=e("./node_modules/monaco-editor/esm/vs/base/browser/pixelRatio.js"),d=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),a=e("./node_modules/monaco-editor/esm/vs/base/browser/globalPointerMoveMonitor.js"),s=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/widget.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),i=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),c=e("./node_modules/monaco-editor/esm/vs/nls.js"),m=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),u=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js");const C=d.$;class h extends M.jG{constructor(X,ie,re,te=!1){super(),this.model=ie,this.showingStandaloneColorPicker=te,this._closeButton=null,this._domNode=C(".colorpicker-header"),d.BC(X,this._domNode),this._pickedColorNode=d.BC(this._domNode,C(".picked-color")),d.BC(this._pickedColorNode,C("span.codicon.codicon-color-mode")),this._pickedColorPresentation=d.BC(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");const D=(0,c.kg)("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",D),this._originalColorNode=d.BC(this._domNode,C(".original-color")),this._originalColorNode.style.backgroundColor=k.Q1.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=re.getColorTheme().getColor(m.WfR)||k.Q1.white,this._register(re.onDidColorThemeChange(he=>{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<b;w++){const j=h.charCodeAt(p+w),U=v.charCodeAt(w);if(j!==U&&!(j>=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.length<P.length&&P.charCodeAt(T+v.length)===32&&(v=v+" "),b&&E>0&&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;K<G;K++)U[K]={ignore:!1,commentStr:j,commentStrOffset:0,commentStrLength:j.length};return U}static _analyzeLines(h,v,p,b,O,w,j,U){let K=!0,G;h===0?G=!0:h===1?G=!1:G=!0;for(let P=0,A=b.length;P<A;P++){const T=b[P],E=O+P;if(E===O&&j){T.ignore=!0;continue}const W=p.getLineContent(E),$=f.HG(W);if($===-1){T.ignore=w,T.commentStrOffset=W.length;continue}if(K=!1,T.ignore=!1,T.commentStrOffset=$,G&&!S._haystackHasNeedleAtOffset(W,T.commentStr,$)&&(h===0?G=!1:h===1||(T.ignore=!0)),G&&v){const z=$+T.commentStrLength;z<W.length&&W.charCodeAt(z)===32&&(T.commentStrLength+=1)}}if(h===0&&K){G=!1;for(let P=0,A=b.length;P<A;P++)b[P].ignore=!1}return{supported:!0,shouldRemoveComments:G,lines:b}}static _gatherPreflightData(h,v,p,b,O,w,j,U){const K=d._gatherPreflightCommentStrings(p,b,O,U);return K===null?{supported:!1}:d._analyzeLines(h,v,p,K,b,w,j,U)}_executeLineComments(h,v,p,b){let O;p.shouldRemoveComments?O=d._createRemoveLineCommentsOperations(p.lines,b.startLineNumber):(d._normalizeInsertionPoint(h,p.lines,b.startLineNumber,this._indentSize),O=this._createAddLineCommentsOperations(p.lines,b.startLineNumber));const w=new x.y(b.positionLineNumber,b.positionColumn);for(let j=0,U=O.length;j<U;j++)v.addEditOperation(O[j].range,O[j].text),k.Q.isEmpty(O[j].range)&&k.Q.getStartPosition(O[j].range).equals(w)&&h.getLineContent(w.lineNumber).length+1===w.column&&(this._deltaColumn=(O[j].text||"").length);this._selectionId=v.trackSelection(b)}_attemptRemoveBlockComment(h,v,p,b){let O=v.startLineNumber,w=v.endLineNumber;const j=b.length+Math.max(h.getLineFirstNonWhitespaceColumn(v.startLineNumber),v.startColumn);let U=h.getLineContent(O).lastIndexOf(p,j-1),K=h.getLineContent(w).indexOf(b,v.endColumn-1-p.length);return U!==-1&&K===-1&&(K=h.getLineContent(O).indexOf(b,U+p.length),w=O),U===-1&&K!==-1&&(U=h.getLineContent(w).lastIndexOf(p,K),O=w),v.isEmpty()&&(U===-1||K===-1)&&(U=h.getLineContent(O).indexOf(p),U!==-1&&(K=h.getLineContent(O).indexOf(b,U+p.length))),U!==-1&&h.getLineContent(O).charCodeAt(U+p.length)===32&&(p+=" "),K!==-1&&h.getLineContent(w).charCodeAt(K-1)===32&&(b=" "+b,K-=1),U!==-1&&K!==-1?S._createRemoveBlockCommentOperations(new k.Q(O,U+p.length+1,w,K+1),p,b):null}_executeBlockComment(h,v,p){h.tokenization.tokenizeIfCheap(p.startLineNumber);const b=h.getLanguageIdAtPosition(p.startLineNumber,1),O=this.languageConfigurationService.getLanguageConfiguration(b).comments;if(!O||!O.blockCommentStartToken||!O.blockCommentEndToken)return;const w=O.blockCommentStartToken,j=O.blockCommentEndToken;let U=this._attemptRemoveBlockComment(h,p,w,j);if(!U){if(p.isEmpty()){const K=h.getLineContent(p.startLineNumber);let G=f.HG(K);G===-1&&(G=K.length),U=S._createAddBlockCommentOperations(new k.Q(p.startLineNumber,G+1,p.startLineNumber,K.length+1),w,j,this._insertSpace)}else U=S._createAddBlockCommentOperations(new k.Q(p.startLineNumber,h.getLineFirstNonWhitespaceColumn(p.startLineNumber),p.endLineNumber,h.getLineMaxColumn(p.endLineNumber)),w,j,this._insertSpace);U.length===1&&(this._deltaColumn=w.length+1)}this._selectionId=v.trackSelection(p);for(const K of U)v.addEditOperation(K.range,K.text)}getEditOperations(h,v){let p=this._selection;if(this._moveEndPositionDown=!1,p.startLineNumber===p.endLineNumber&&this._ignoreFirstLine){v.addEditOperation(new k.Q(p.startLineNumber,h.getLineMaxColumn(p.startLineNumber),p.startLineNumber+1,1),p.startLineNumber===h.getLineCount()?"":`
`),this._selectionId=v.trackSelection(p);return}p.startLineNumber<p.endLineNumber&&p.endColumn===1&&(this._moveEndPositionDown=!0,p=p.setEndPosition(p.endLineNumber-1,h.getLineMaxColumn(p.endLineNumber-1)));const b=d._gatherPreflightData(this._type,this._insertSpace,h,p.startLineNumber,p.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return b.supported?this._executeLineComments(h,v,b,p):this._executeBlockComment(h,v,p)}computeCursorState(h,v){let p=v.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(p=p.setEndPosition(p.endLineNumber+1,1)),new I.L(p.selectionStartLineNumber,p.selectionStartColumn+this._deltaColumn,p.positionLineNumber,p.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(h,v){const p=[];for(let b=0,O=h.length;b<O;b++){const w=h[b];w.ignore||p.push(g.k.delete(new k.Q(v+b,w.commentStrOffset+1,v+b,w.commentStrOffset+w.commentStrLength+1)))}return p}_createAddLineCommentsOperations(h,v){const p=[],b=this._insertSpace?" ":"";for(let O=0,w=h.length;O<w;O++){const j=h[O];j.ignore||p.push(g.k.insert(new x.y(v+O,j.commentStrOffset+1),j.commentStr+b))}return p}static nextVisibleColumn(h,v,p,b){return p?h+(v-h%v):h+b}static _normalizeInsertionPoint(h,v,p,b){let O=1073741824,w,j;for(let U=0,K=v.length;U<K;U++){if(v[U].ignore)continue;const G=h.getLineContent(p+U);let P=0;for(let A=0,T=v[U].commentStrOffset;P<O&&A<T;A++)P=d.nextVisibleColumn(P,b,G.charCodeAt(A)===9,1);P<O&&(O=P)}O=Math.floor(O/b)*b;for(let U=0,K=v.length;U<K;U++){if(v[U].ignore)continue;const G=h.getLineContent(p+U);let P=0;for(w=0,j=v[U].commentStrOffset;P<O&&w<j;w++)P=d.nextVisibleColumn(P,b,G.charCodeAt(w)===9,1);P>O?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<U.length;G++){const P=U[G];K.selection.endLineNumber===P.selection.startLineNumber&&(K.index<P.index?P.ignoreFirstLine=!0:(K.ignoreFirstLine=!0,K=P))}for(const G of U)O.push(new d(p,G.selection,w.indentSize,this._type,j.insertSpace,j.ignoreEmptyLines,G.ignoreFirstLine));v.pushUndoStop(),v.executeCommands(this.id,O),v.pushUndoStop()}}class i extends n{constructor(){super(0,{id:"editor.action.commentLine",label:a.kg("comment.line","Toggle Line Comment"),alias:"Toggle Line Comment",precondition:M.R.writable,kbOpts:{kbExpr:M.R.editorTextFocus,primary:2138,weight:100},menuOpts:{menuId:s.D8.MenubarEditMenu,group:"5_insert",title:a.kg({key:"miToggleLineComment",comment:["&& denotes a mnemonic"]},"&&Toggle Line Comment"),order:1}})}}class c extends n{constructor(){super(1,{id:"editor.action.addCommentLine",label:a.kg("comment.line.add","Add Line Comment"),alias:"Add Line Comment",precondition:M.R.writable,kbOpts:{kbExpr:M.R.editorTextFocus,primary:(0,r.m5)(2089,2081),weight:100}})}}class m extends n{constructor(){super(2,{id:"editor.action.removeCommentLine",label:a.kg("comment.line.remove","Remove Line Comment"),alias:"Remove Line Comment",precondition:M.R.writable,kbOpts:{kbExpr:M.R.editorTextFocus,primary:(0,r.m5)(2089,2099),weight:100}})}}class u extends F.ks{constructor(){super({id:"editor.action.blockComment",label:a.kg("comment.block","Toggle Block Comment"),alias:"Toggle Block Comment",precondition:M.R.writable,kbOpts:{kbExpr:M.R.editorTextFocus,primary:1567,linux:{primary:3103},weight:100},menuOpts:{menuId:s.D8.MenubarEditMenu,group:"5_insert",title:a.kg({key:"miToggleBlockComment",comment:["&& denotes a mnemonic"]},"Toggle &&Block Comment"),order:2}})}run(h,v){const p=h.get(L.JZ);if(!v.hasModel())return;const b=v.getOption(23),O=[],w=v.getSelections();for(const j of w)O.push(new S(j,b.insertSpace,p));v.pushUndoStop(),v.executeCommands(this.id,O),v.pushUndoStop()}}(0,F.Fl)(i),(0,F.Fl)(c),(0,F.Fl)(m),(0,F.Fl)(u)},"./node_modules/monaco-editor/esm/vs/editor/contrib/contextmenu/browser/contextmenu.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/browser/ui/actionbar/actionViewItems.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/actions.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/editor/browser/editorExtensions.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/editorContextKeys.js"),I=e("./node_modules/monaco-editor/esm/vs/nls.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/contextview/browser/contextView.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybinding.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),n=e("./node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace.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)}},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<a;n++)if(!this.selections[n].equalsSelection(d.selections[n]))return!1;return!0}}class g{constructor(d,a,s){this.cursorState=d,this.scrollTop=a,this.scrollLeft=s}}class x extends r.jG{static get(d){return d.getContribution(x.ID)}constructor(d){super(),this._editor=d,this._isCursorUndoRedo=!1,this._undoStack=[],this._redoStack=[],this._register(d.onDidChangeModel(a=>{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.lineNumber<this.selection.endLineNumber){this.targetSelection=new g.L(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber+this.selection.endLineNumber-this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}this.selection.endColumn<=this.targetPosition.column?this.targetSelection=new g.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column-this.selection.endColumn+this.selection.startColumn:this.targetPosition.column-this.selection.endColumn+this.selection.startColumn,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column:this.selection.endColumn):this.targetSelection=new g.L(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column+this.selection.endColumn-this.selection.startColumn)}computeCursorState(a,s){return this.targetSelection}}function S(d){return F.zx?d.altKey:d.ctrlKey}class f extends r.jG{constructor(a){super(),this._editor=a,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown(s=>this._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<this._decorations.length?this._decorations[Ae]:null;return ct?this._editor.getModel().getDecorationRange(ct):null}getCurrentMatchesPosition(Ae){const ct=this._editor.getModel().getDecorationsInRange(Ae);for(const ut of ct){const je=ut.options;if(je===m._FIND_MATCH_DECORATION||je===m._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(ut.id)}return 0}setCurrentFindMatch(Ae){let ct=null,ut=0;if(Ae)for(let je=0,Rt=this._decorations.length;je<Rt;je++){const Ft=this._editor.getModel().getDecorationRange(this._decorations[je]);if(Ae.equalsRange(Ft)){ct=this._decorations[je],ut=je+1;break}}return(this._highlightedDecorationId!==null||ct!==null)&&this._editor.changeDecorations(je=>{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<xe;en++){const st=Ae[en].range;ei+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;ln<vn;ln++)Ft[ln]={range:Ae[ln].range,options:je};this._decorations=ut.deltaDecorations(this._decorations,Ft),this._overviewRulerApproximateDecorations=ut.deltaDecorations(this._overviewRulerApproximateDecorations,Rt),this._rangeHighlightDecorationId&&(ut.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(ln=>ut.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.endLineNumber<Ae.lineNumber)return je;if(!(je.endColumn>Ae.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;ct<ut;ct++){const je=this._decorations[ct],Rt=this._editor.getModel().getDecorationRange(je);if(!(!Rt||Rt.startLineNumber<Ae.lineNumber)){if(Rt.startLineNumber>Ae.lineNumber)return Rt;if(!(Rt.startColumn<Ae.column))return Rt}}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let Ae=[];return Ae=Ae.concat(this._decorations),Ae=Ae.concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&Ae.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&Ae.push(this._rangeHighlightDecorationId),Ae}}m._CURRENT_FIND_MATCH_DECORATION=n.kI.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:(0,c.Yf)(i.fAP),position:x.A5.Center},minimap:{color:(0,c.Yf)(i.AjU),position:1}}),m._FIND_MATCH_DECORATION=n.kI.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:(0,c.Yf)(i.fAP),position:x.A5.Center},minimap:{color:(0,c.Yf)(i.AjU),position:1}}),m._FIND_MATCH_NO_OVERVIEW_DECORATION=n.kI.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),m._FIND_MATCH_ONLY_OVERVIEW_DECORATION=n.kI.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,c.Yf)(i.fAP),position:x.A5.Center}}),m._RANGE_HIGHLIGHT_DECORATION=n.kI.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),m._FIND_SCOPE_DECORATION=n.kI.register({description:"find-scope",className:"findScope",isWholeLine:!0});class u{constructor(Ae,ct,ut){this._editorSelection=Ae,this._ranges=ct,this._replaceStrings=ut,this._trackedEditorSelectionId=null}getEditOperations(Ae,ct){if(this._ranges.length>0){const ut=[];for(let Ft=0;Ft<this._ranges.length;Ft++)ut.push({range:this._ranges[Ft],text:this._replaceStrings[Ft]});ut.sort((Ft,ln)=>d.Q.compareRangesUsingStarts(Ft.range,ln.range));const je=[];let Rt=ut[0];for(let Ft=1;Ft<ut.length;Ft++)Rt.range.endLineNumber===ut[Ft].range.startLineNumber&&Rt.range.endColumn===ut[Ft].range.startColumn?(Rt.range=Rt.range.plusRange(ut[Ft].range),Rt.text=Rt.text+ut[Ft].text):(je.push(Rt),Rt=ut[Ft]);je.push(Rt);for(const Ft of je)ct.addEditOperation(Ft.range,Ft.text)}this._trackedEditorSelectionId=ct.trackSelection(this._editorSelection)}computeCursorState(Ae,ct){return ct.getTrackedSelection(this._trackedEditorSelectionId)}}function C(dt,Ae){if(dt&&dt[0]!==""){const ct=h(dt,Ae,"-"),ut=h(dt,Ae,"_");return ct&&!ut?v(dt,Ae,"-"):!ct&&ut?v(dt,Ae,"_"):dt[0].toUpperCase()===dt[0]?Ae.toUpperCase():dt[0].toLowerCase()===dt[0]?Ae.toLowerCase():k.zY(dt[0][0])&&Ae.length>0?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;je<Rt;je++){const Ft=this._state.pieces[je];if(Ft.staticValue!==null){ut+=Ft.staticValue;continue}let ln=O._substitute(Ft.matchIndex,Ae);if(Ft.caseOps!==null&&Ft.caseOps.length>0){const vn=[],Ln=Ft.caseOps.length;let En=0;for(let In=0,ei=ln.length;In<ei;In++){if(En>=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<ct.length)return(ct[Ae]||"")+ut;ut=String(Ae%10)+ut,Ae=Math.floor(Ae/10)}return"$"+ut}}class w{static staticValue(Ae){return new w(Ae,-1,null)}static caseOps(Ae,ct){return new w(null,Ae,ct)}constructor(Ae,ct,ut){this.staticValue=Ae,this.matchIndex=ct,!ut||ut.length===0?this.caseOps=null:this.caseOps=ut.slice(0)}}class j{constructor(Ae){this._source=Ae,this._lastCharIndex=0,this._result=[],this._resultLen=0,this._currentStaticPiece=""}emitUnchanged(Ae){this._emitStatic(this._source.substring(this._lastCharIndex,Ae)),this._lastCharIndex=Ae}emitStatic(Ae,ct){this._emitStatic(Ae),this._lastCharIndex=ct}_emitStatic(Ae){Ae.length!==0&&(this._currentStaticPiece+=Ae)}emitMatchIndex(Ae,ct,ut){this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=w.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),this._result[this._resultLen++]=w.caseOps(Ae,ut),this._lastCharIndex=ct}finalize(){return this.emitUnchanged(this._source.length),this._currentStaticPiece.length!==0&&(this._result[this._resultLen++]=w.staticValue(this._currentStaticPiece),this._currentStaticPiece=""),new O(this._result)}}function U(dt){if(!dt||dt.length===0)return new O(null);const Ae=[],ct=new j(dt);for(let ut=0,je=dt.length;ut<je;ut++){const Rt=dt.charCodeAt(ut);if(Rt===92){if(ut++,ut>=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+1<je){const vn=dt.charCodeAt(ut+1);if(48<=vn&&vn<=57){ut++,ln=ln*10+(vn-48),ct.emitUnchanged(ut-2),ct.emitMatchIndex(ln,ut+1,Ae),Ae.length=0;continue}}ct.emitUnchanged(ut-1),ct.emitMatchIndex(ln,ut+1,Ae),Ae.length=0;continue}}}return ct.finalize()}var K=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js");const G=new K.N1("findWidgetVisible",!1),P=G.toNegated(),A=new K.N1("findInputFocussed",!1),T=new K.N1("replaceInputFocussed",!1),E={primary:545,mac:{primary:2593}},W={primary:565,mac:{primary:2613}},$={primary:560,mac:{primary:2608}},z={primary:554,mac:{primary:2602}},J={primary:558,mac:{primary:2606}},B={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",StartFindWithArgs:"editor.actions.findWithArgs",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",GoToMatchFindAction:"editor.action.goToMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},V=19999,Y=240;class X{constructor(Ae,ct){this._toDispose=new F.Cm,this._editor=Ae,this._state=ct,this._isDisposed=!1,this._startSearchingTimer=new r.pc,this._decorations=new m(Ae),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new r.uC(()=>this.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()<V){let En=this._decorations.matchBeforePosition(Ae);En&&En.isEmpty()&&En.getStartPosition().equals(Ae)&&(Ae=this._prevSearchPosition(Ae),En=this._decorations.matchBeforePosition(Ae)),En&&this._setCurrentFindMatch(En);return}if(this._cannotFind())return;const ut=this._decorations.getFindScope(),je=X._getSearchRange(this._editor.getModel(),ut);je.getEndPosition().isBefore(Ae)&&(Ae=je.getEndPosition()),Ae.isBefore(je.getStartPosition())&&(Ae=je.getEndPosition());const{lineNumber:Rt,column:Ft}=Ae,ln=this._editor.getModel();let vn=new f.y(Rt,Ft),Ln=ln.findPreviousMatch(this._state.searchString,vn,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,!1);if(Ln&&Ln.range.isEmpty()&&Ln.range.getStartPosition().equals(vn)&&(vn=this._prevSearchPosition(vn),Ln=ln.findPreviousMatch(this._state.searchString,vn,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,!1)),!!Ln){if(!ct&&!je.containsRange(Ln.range))return this._moveToPrevMatch(Ln.range.getStartPosition(),!0);this._setCurrentFindMatch(Ln.range)}}moveToPrevMatch(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())}_nextSearchPosition(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===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()<V){let ut=this._decorations.matchAfterPosition(Ae);ut&&ut.isEmpty()&&ut.getStartPosition().equals(Ae)&&(Ae=this._nextSearchPosition(Ae),ut=this._decorations.matchAfterPosition(Ae)),ut&&this._setCurrentFindMatch(ut);return}const ct=this._getNextMatch(Ae,!1,!0);ct&&this._setCurrentFindMatch(ct.range)}_getNextMatch(Ae,ct,ut,je=!1){if(this._cannotFind())return null;const Rt=this._decorations.getFindScope(),Ft=X._getSearchRange(this._editor.getModel(),Rt);Ft.getEndPosition().isBefore(Ae)&&(Ae=Ft.getStartPosition()),Ae.isBefore(Ft.getStartPosition())&&(Ae=Ft.getStartPosition());const{lineNumber:ln,column:vn}=Ae,Ln=this._editor.getModel();let En=new f.y(ln,vn),In=Ln.findNextMatch(this._state.searchString,En,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,ct);return ut&&In&&In.range.isEmpty()&&In.range.getStartPosition().equals(En)&&(En=this._nextSearchPosition(En),In=Ln.findNextMatch(this._state.searchString,En,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(131):null,ct)),In?!je&&!Ft.containsRange(In.range)?this._getNextMatch(In.range.getEndPosition(),ct,ut,!0):In:null}moveToNextMatch(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())}_moveToMatch(Ae){const ct=this._decorations.getDecorationRangeAt(Ae);ct&&this._setCurrentFindMatch(ct)}moveToMatch(Ae){this._moveToMatch(Ae)}_getReplacePattern(){return this._state.isRegex?U(this._state.replaceString):O.fromStaticValue(this._state.replaceString)}replace(){if(!this._hasMatches())return;const Ae=this._getReplacePattern(),ct=this._editor.getSelection(),ut=this._getNextMatch(ct.getStartPosition(),!0,!1);if(ut)if(ct.equalsRange(ut.range)){const je=Ae.buildReplaceString(ut.matches,this._state.preserveCase),Rt=new S.iu(ct,je);this._executeEditorCommand("replace",Rt),this._decorations.setStartPosition(new f.y(ct.startLineNumber,ct.startColumn+je.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(ut.range)}_findMatches(Ae,ct,ut){const je=(Ae||[null]).map(Rt=>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;Ft<ln;Ft++)je[Ft]=ct.buildReplaceString(ut[Ft].matches,this._state.preserveCase);const Rt=new u(this._editor.getSelection(),ut.map(Ft=>Ft.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;Rt<Ft;Rt++)if(ut[Rt].equalsRange(je)){ut=[je].concat(ut.slice(0,Rt)).concat(ut.slice(Rt+1));break}this._editor.setSelections(ut)}_executeEditorCommand(Ae,ct){try{this._ignoreModelContentChanged=!0,this._editor.pushUndoStop(),this._editor.executeCommand(Ae,ct),this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}}}var ie=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),re=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInputToggles.js"),te=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/widget.js"),D=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js");class he extends te.x{constructor(Ae,ct,ut){super(),this._hideSoon=this._register(new r.uC(()=>this._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<this.matchesCount}canNavigateInLoop(){return this._loop||this.matchesCount>=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.selectionEnd<ct.value.length){dt.stopPropagation();return}}class xi extends te.x{constructor(Ae,ct,ut,je,Rt,Ft,ln,vn,Ln){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=Ae,this._controller=ct,this._state=ut,this._contextViewProvider=je,this._keybindingService=Rt,this._contextKeyService=Ft,this._storageService=vn,this._notificationService=Ln,this._ctrlEnterReplaceAllWarningPrompted=!!vn.getBoolean(mi,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new r.ve(500),this._register((0,F.s)(()=>this._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&&ln<this._viewZone.heightInPx){Ae.endLineNumber>Ae.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)<mt)return dt.getModel().getValueInRange(ut)}return null}let Ke=Ye=class extends F.jG{get editor(){return this._editor}static get(Ae){return Ae.getContribution(Ye.ID)}constructor(Ae,ct,ut,je,Rt){super(),this._editor=Ae,this._findWidgetVisible=G.bindTo(ct),this._contextKeyService=ct,this._storageService=ut,this._clipboardService=je,this._notificationService=Rt,this._updateHistoryDelayer=new r.ve(500),this._state=this._register(new Pe),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(Ft=>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(;fe<de.length;fe++){if(!de.isCollapsed(fe))continue;const Le=de.getStartLineNumber(fe)+1,We=de.getEndLineNumber(fe);oe<=Le&&We<=ne||(!ae&&le<this._hiddenRanges.length&&this._hiddenRanges[le].startLineNumber===Le&&this._hiddenRanges[le].endLineNumber===We?(me.push(this._hiddenRanges[le]),le++):(ae=!0,me.push(new c.Q(Le,1,We,1))),oe=Le,ne=We)}(this._hasLineChanges||ae||le<this._hiddenRanges.length)&&this.applyHiddenRanges(me)}applyHiddenRanges(ae){this._hiddenRanges=ae,this._hasLineChanges=!1,this._updateEventEmitter.fire(ae)}hasRanges(){return this._hiddenRanges.length>0}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;ne<de;ne++){let Le=ae[ne];const We=oe(Le.startLineNumber);We&&(Le=Le.setStartPosition(We,fe.getLineMaxColumn(We)),me=!0);const we=oe(Le.endLineNumber);we&&(Le=Le.setEndPosition(we,fe.getLineMaxColumn(we)),me=!0),ae[ne]=Le}return me}dispose(){this.hiddenRanges.length>0&&(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<fe.startLineNumber)-1;return me>=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;Et<Ue.length;Et++){const Kt=Ue.getType(Et);lt.push({start:Ue.getStartLineNumber(Et),end:Ue.getEndLineNumber(Et),kind:Kt?d.lO.fromValue(Kt):void 0})}return lt}finally{we.dispose()}})},"./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingDecorations.js":function(pt,Me,e){e.d(Me,{E0:function(){return S},k0:function(){return f},rv:function(){return c}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/codicons.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),k=e("./node_modules/monaco-editor/esm/vs/nls.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js"),g=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js");const I=(0,M.x1A)("editor.foldBackground",{light:(0,M.JO0)(M.seu,.3),dark:(0,M.JO0)(M.seu,.3),hcDark:null,hcLight:null},(0,k.kg)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,M.x1A)("editorGutter.foldingControlForeground",{dark:M.t4B,light:M.t4B,hcDark:M.t4B,hcLight:M.t4B},(0,k.kg)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));const S=(0,L.pU)("folding-expanded",r.W.chevronDown,(0,k.kg)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),f=(0,L.pU)("folding-collapsed",r.W.chevronRight,(0,k.kg)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),d=(0,L.pU)("folding-manual-collapsed",f,(0,k.kg)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),a=(0,L.pU)("folding-manual-expanded",S,(0,k.kg)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),s={color:(0,g.Yf)(I),position:1},n=(0,k.kg)("linesCollapsed","Click to expand the range."),i=(0,k.kg)("linesExpanded","Click to collapse the range.");class c{constructor(u){this.editor=u,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(u,C,h){return C?c.HIDDEN_RANGE_DECORATION:this.showFoldingControls==="never"?u?this.showFoldingHighlights?c.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:c.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:c.NO_CONTROLS_EXPANDED_RANGE_DECORATION:u?h?this.showFoldingHighlights?c.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:c.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?c.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:c.COLLAPSED_VISUAL_DECORATION:this.showFoldingControls==="mouseover"?h?c.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:c.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:h?c.MANUALLY_EXPANDED_VISUAL_DECORATION:c.EXPANDED_VISUAL_DECORATION}changeDecorations(u){return this.editor.changeDecorations(u)}removeDecorations(u){this.editor.removeDecorations(u)}}c.COLLAPSED_VISUAL_DECORATION=F.kI.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:n,firstLineDecorationClassName:x.L.asClassName(f)}),c.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=F.kI.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:s,isWholeLine:!0,linesDecorationsTooltip:n,firstLineDecorationClassName:x.L.asClassName(f)}),c.MANUALLY_COLLAPSED_VISUAL_DECORATION=F.kI.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:n,firstLineDecorationClassName:x.L.asClassName(d)}),c.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=F.kI.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:s,isWholeLine:!0,linesDecorationsTooltip:n,firstLineDecorationClassName:x.L.asClassName(d)}),c.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=F.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:n}),c.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=F.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:s,isWholeLine:!0,linesDecorationsTooltip:n}),c.EXPANDED_VISUAL_DECORATION=F.kI.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+x.L.asClassName(S),linesDecorationsTooltip:i}),c.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=F.kI.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:x.L.asClassName(S),linesDecorationsTooltip:i}),c.MANUALLY_EXPANDED_VISUAL_DECORATION=F.kI.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+x.L.asClassName(a),linesDecorationsTooltip:i}),c.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=F.kI.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:x.L.asClassName(a),linesDecorationsTooltip:i}),c.NO_CONTROLS_EXPANDED_RANGE_DECORATION=F.kI.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0}),c.HIDDEN_RANGE_DECORATION=F.kI.register({description:"folding-hidden-range-decoration",stickiness:1})},"./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingModel.js":function(pt,Me,e){e.d(Me,{AI:function(){return d},GR:function(){return f},JX:function(){return n},W8:function(){return I},bC:function(){return L},cL:function(){return a},dN:function(){return x},kK:function(){return s},pN:function(){return M},pr:function(){return i},sO:function(){return S},uV:function(){return g}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingRanges.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/hash.js");class M{get regions(){return this._regions}get textModel(){return this._textModel}constructor(m,u){this._updateEventEmitter=new r.vl,this.onDidChange=this._updateEventEmitter.event,this._textModel=m,this._decorationProvider=u,this._regions=new F.tz(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(m){if(!m.length)return;m=m.sort((C,h)=>C.regionIndex-h.regionIndex);const u={};this._decorationProvider.changeDecorations(C=>{let h=0,v=-1,p=-1;const b=O=>{for(;h<O;){const w=this._regions.getEndLineNumber(h),j=this._regions.isCollapsed(h);if(w<=v){const U=this.regions.getSource(h)!==0;C.changeDecorationOptions(this._editorDecorationIds[h],this._decorationProvider.getDecorationOption(j,w<=p,U))}j&&w>p&&(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;h<this._regions.length;h++){const v=this._regions.toFoldRange(h);(v.source===0||!C(v))&&u.push(v)}this.updatePost(F.tz.fromFoldRanges(u))}update(m,u=[]){const C=this._currentFoldedOrManualRanges(u),h=F.tz.sanitizeAndMerge(m,C,this._textModel.getLineCount());this.updatePost(F.tz.fromFoldRanges(h))}updatePost(m){const u=[];let C=-1;for(let h=0,v=m.length;h<v;h++){const p=m.getStartLineNumber(h),b=m.getEndLineNumber(h),O=m.isCollapsed(h),w=m.getSource(h)!==0,j={startLineNumber:p,startColumn:this._textModel.getLineMaxColumn(p),endLineNumber:b,endColumn:this._textModel.getLineMaxColumn(b)+1};u.push({range:j,options:this._decorationProvider.getDecorationOption(O,b<=C,w)}),O&&b>C&&(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&&p<=v)return!0;return!1},C=[];for(let h=0,v=this._regions.length;h<v;h++){let p=this.regions.isCollapsed(h);const b=this.regions.getSource(h);if(p||b!==0){const O=this._regions.toFoldRange(h),w=this._textModel.getDecorationRange(this._editorDecorationIds[h]);w&&(p&&u(w.startLineNumber,w.endLineNumber)&&(p=!1),C.push({startLineNumber:w.startLineNumber,endLineNumber:w.endLineNumber,type:O.type,isCollapsed:p,source:b}))}}return C}getMemento(){const m=this._currentFoldedOrManualRanges(),u=[],C=this._textModel.getLineCount();for(let h=0,v=m.length;h<v;h++){const p=m[h];if(p.startLineNumber>=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;b<O;b++){const w=this._regions.toRegion(b);if(this._regions.getStartLineNumber(b)<v){for(;p.length>0&&!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;p<b;p++){const O=this._regions.toRegion(p);if(this._regions.getStartLineNumber(p)<v)(!u||u(O))&&C.push(O);else break}return C}}function L(c,m,u){const C=[];for(const h of u){const v=c.getRegionAtLine(h);if(v){const p=!v.isCollapsed;if(C.push(v),m>1){const b=c.getRegionsInside(v,(O,w)=>O.isCollapsed!==p&&w<m);C.push(...b)}}}c.toggleCollapseState(C)}function g(c,m,u=Number.MAX_VALUE,C){const h=[];if(C&&C.length>0)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&&w<u);h.push(...b)}}else{const v=c.getRegionsInside(null,(p,b)=>p.isCollapsed!==m&&b<u);h.push(...v)}c.toggleCollapseState(h)}function x(c,m,u,C){const h=[];for(const v of C){const p=c.getAllRegionsAtLine(v,(b,O)=>b.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.startLineNumber<c)return u.startLineNumber;u.regionIndex>0?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<m.regions.length){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(0);u!==null;){if(u.startLineNumber>c)return u.startLineNumber;u.regionIndex<m.regions.length?u=m.regions.toRegion(u.regionIndex+1):u=null}return null}},"./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/foldingRanges.js":function(pt,Me,e){e.d(Me,{tz:function(){return g},yy:function(){return k}});const r={0:" ",1:"u",2:"r"},F=65535,k=16777215,M=4278190080;class L{constructor(S){const f=Math.ceil(S/32);this._states=new Uint32Array(f)}get(S){const f=S/32|0,d=S%32;return(this._states[f]&1<<d)!==0}set(S,f){const d=S/32|0,a=S%32,s=this._states[d];f?this._states[d]=s|1<<a:this._states[d]=s&~(1<<a)}}class g{constructor(S,f,d){if(S.length!==f.length||S.length>F)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;d<a;d++){const s=this._startIndexes[d],n=this._endIndexes[d];if(s>k||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<this._types.length;a++)this._types[a]===S&&(this.setCollapsed(a,f),d=!0);return d}toRegion(S){return new x(this,S)}getParentIndex(S){this.ensureParentIndices();const f=((this._startIndexes[S]&M)>>>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<d;){const a=Math.floor((f+d)/2);S<this.getStartLineNumber(a)?d=a:f=a+1}return f-1}findRange(S){let f=this.findIndex(S);if(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;f<this.length;f++)S[f]=`[${r[this.getSource(f)]}${this.isCollapsed(f)?"+":"-"}] ${this.getStartLineNumber(f)}/${this.getEndLineNumber(f)}`;return S.join(", ")}toFoldRange(S){return{startLineNumber:this._startIndexes[S]&k,endLineNumber:this._endIndexes[S]&k,type:this._types?this._types[S]:void 0,isCollapsed:this.isCollapsed(S),source:this.getSource(S)}}static fromFoldRanges(S){const f=S.length,d=new Uint32Array(f),a=new Uint32Array(f);let s=[],n=!1;for(let c=0;c<f;c++){const m=S[c];d[c]=m.startLineNumber,a[c]=m.endLineNumber,s.push(m.type),m.type&&(n=!0)}n||(s=void 0);const i=new g(d,a,s);for(let c=0;c<f;c++)S[c].isCollapsed&&i.setCollapsed(c,!0),i.setSource(c,S[c].source);return i}static sanitizeAndMerge(S,f,d){d=d??Number.MAX_VALUE;const a=(b,O)=>Array.isArray(b)?w=>w<O?b[w]:void 0:w=>w<O?b.toFoldRange(w):void 0,s=a(S,S.length),n=a(f,f.length);let i=0,c=0,m=s(0),u=n(0);const C=[];let h,v=0;const p=[];for(;m||u;){let b;if(u&&(!m||m.startLineNumber>=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.endLineNumber<b.startLineNumber;)h=C.pop();b.endLineNumber>b.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;m<this._indentOccurrences.length;m++){const u=this._indentOccurrences[m];if(u){if(u+a>d){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<s||v===s&&a++<d)&&(i[u]=C,c[u]=this._endIndexes[m],u++)}return new F.tz(i,c)}}}const x={limit:k,update:()=>{}};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;n<this._length;n++)a[n]=this._startIndexes[n],s[n]=this._endIndexes[n];return new k.tz(a,s,this._types)}else{this._foldingRangesLimit.update(this._length,d);let a=0,s=this._nestingLevelCounts.length;for(let m=0;m<this._nestingLevelCounts.length;m++){const u=this._nestingLevelCounts[m];if(u){if(u+a>d){s=m;break}a+=u}}const n=new Uint32Array(d),i=new Uint32Array(d),c=[];for(let m=0,u=0;m<this._length;m++){const C=this._nestingLevels[m];(C<s||C===s&&a++<d)&&(n[u]=this._startIndexes[m],i[u]=this._endIndexes[m],c[u]=this._types[m],u++)}return new k.tz(n,i,c)}}}function S(f,d){const a=f.sort((c,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<D.length;++ee)for(let De=ee+1;De<D.length;++De){if(te.token.isCancellationRequested)return!0;if(Ce(_e[ee],_e[De])){const Te=d.Q.plusRange(D[ee],D[De]),He=await ve(Te);D.splice(De,1),D.splice(ee,1),D.push(Te),_e.splice(De,1),_e.splice(ee,1),_e.push(He),ee=0,De=0}}}for(const ee of _e){if(te.token.isCancellationRequested)return!0;const De=await Y.computeMoreMinimalEdits(re.uri,ee);De&&Pe.push(...De)}}finally{te.dispose()}if(Pe.length===0)return!1;if((0,S.z9)(W))i.c.execute(W,Pe,!0),W.revealPositionInCenterIfOutsideViewport(W.getPosition(),1);else{const[{range:ee}]=Pe,De=new a.L(ee.startLineNumber,ee.startColumn,ee.endLineNumber,ee.endColumn);re.pushEditOperations([De],Pe.map(Te=>({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;Ue<this._markers.length;Ue++){let lt=g.Q.lift(this._markers[Ue]);if(lt.isEmpty()){const Et=ne.getWordAtPosition(lt.getStartPosition());Et&&(lt=new g.Q(lt.startLineNumber,Et.startColumn,lt.startLineNumber,Et.endColumn))}if(de&&(lt.containsPosition(de)||de.isBeforeOrEqual(lt.getStartPosition()))){this._nextIdx=Ue,We=!0;break}if(this._markers[Ue].resource.toString()!==ne.uri.toString())break}We||(this._nextIdx=Le?0:this._markers.length-1),this._nextIdx<0&&(this._nextIdx=this._markers.length-1)}resetIndex(){this._nextIdx=-1}move(ne,de,Le){if(this._markers.length===0)return!1;const We=this._nextIdx;return this._nextIdx===-1?this._initIdx(de,Le,ne):ne?this._nextIdx=(this._nextIdx+1)%this._markers.length:ne||(this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length),We!==this._nextIdx}find(ne,de){let Le=this._markers.findIndex(We=>We.resource.toString()===ne.toString());if(!(Le<0)){for(;Le<this._markers.length;Le++)if(g.Q.containsPosition(this._markers[Le],de))return new C(this._markers[Le],Le+1,this._markers.length)}}};h=m([u(1,i.DR),u(2,c.pG)],h);const v=(0,n.u1)("IMarkerNavigationService");let p=class{constructor(ne,de){this._markerService=ne,this._configService=de,this._provider=new f.w}getMarkerList(ne){for(const de of this._provider){const Le=de.getMarkerList(ne);if(Le)return Le}return new h(ne,this._markerService,this._configService)}};p=m([u(0,i.DR),u(1,c.pG)],p),(0,s.v)(v,p,1);var b=e("./node_modules/monaco-editor/esm/vs/nls.js"),O=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),w=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),j=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js"),U=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),K=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement.js"),G=e("./node_modules/monaco-editor/esm/vs/base/common/color.js"),P=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),A=e("./node_modules/monaco-editor/esm/vs/editor/contrib/peekView/browser/peekView.js"),T=e("./node_modules/monaco-editor/esm/vs/platform/actions/browser/menuEntryActionViewItem.js"),E=e("./node_modules/monaco-editor/esm/vs/platform/label/common/label.js"),W=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),$=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js"),z=e("./node_modules/monaco-editor/esm/vs/base/common/severity.js"),J;(function(oe){function ne(de){switch(de){case z.A.Ignore:return"severity-ignore "+$.L.asClassName(r.W.info);case z.A.Info:return $.L.asClassName(r.W.info);case z.A.Warning:return $.L.asClassName(r.W.warning);case z.A.Error:return $.L.asClassName(r.W.error);default:return""}}oe.className=ne})(J||(J={}));var B=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),V=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),Y=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},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<w.endLineNumber;G++){const P=b.getLineFirstNonWhitespaceColumn(G);U=Math.min(U,P)}return b.getValueInRange(w).replace(new RegExp(`^\\s{${U-1}}`,"gm"),"").trim()}getPreviewRangeBasedOnIndentation(b,O){const w=b.getLineFirstNonWhitespaceColumn(O),j=Math.min(b.getLineCount(),O+h.MAX_SOURCE_PREVIEW_LINES);let U=O+1;for(;U<j;U++){const K=b.getLineFirstNonWhitespaceColumn(U);if(w===K)break}return new x.Q(O,1,U+1,1)}addDecoration(b,O){const w={range:b,options:{description:"goto-definition-link",inlineClassName:"goto-definition-link",hoverMessage:O}};this.linkDecorations.set([w])}removeLinkDecorations(){this.linkDecorations.clear()}isEnabled(b,O){var w;return this.editor.hasModel()&&b.isLeftClick&&b.isNoneOrSingleMouseDown&&b.target.type===6&&!(((w=b.target.detail.injectedText)===null||w===void 0?void 0:w.options)instanceof m.Ho)&&(b.hasTriggerModifier||(O?O.keyCodeIsTriggerKey:!1))&&this.languageFeaturesService.definitionProvider.has(this.editor.getModel())}findDefinition(b,O){const w=this.editor.getModel();return w?(0,i.hE)(this.languageFeaturesService.definitionProvider,w,b,O):Promise.resolve(null)}gotoDefinition(b,O){return this.editor.setPosition(b),this.editor.invokeWithinContext(w=>{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<we;We++){const Ue=ne.children[We];this._decorationIgnoreSet.has(Ue.id)||Ue.uri.toString()===this._editor.getModel().uri.toString()&&(de.push({range:Ue.range,options:He.DecorationOptions}),Le.push(We))}this._editor.changeDecorations(We=>{const we=We.deltaDecorations([],de);for(let Ue=0;Ue<we.length;Ue++)this._decorations.set(we[Ue],ne.children[Le[Ue]])})}_onDecorationChanged(){const ne=[],de=this._editor.getModel();if(de){for(const[Le,We]of this._decorations){const we=de.getDecorationRange(Le);if(!we)continue;let Ue=!1;if(!x.Q.equalsRange(we,We.range)){if(x.Q.spansMultipleLines(we))Ue=!0;else{const lt=We.range.endColumn-We.range.startColumn,Et=we.endColumn-we.startColumn;lt!==Et&&(Ue=!0)}Ue?(this._decorationIgnoreSet.add(We.id),ne.push(Le)):We.range=we}}for(let Le=0,We=ne.length;Le<We;Le++)this._decorations.delete(ne[Le]);this._editor.removeDecorations(ne)}}removeDecorations(){this._editor.removeDecorations([...this._decorations.keys()]),this._decorations.clear()}}He.DecorationOptions=j.kI.register({description:"reference-decoration",stickiness:1,className:"reference-decoration"});class qe{constructor(){this.ratio=.7,this.heightInLines=18}static fromJSON(ne){let de,Le;try{const We=JSON.parse(ne);de=We.ratio,Le=We.heightInLines}catch{}return{ratio:de||.7,heightInLines:Le||18}}}class Qe extends i.er{}let q=class extends I.j6{constructor(ne,de,Le,We,we,Ue,lt,Et,Kt,Zt,qt,tt){super(ne,{showFrame:!1,showArrow:!0,isResizeable:!0,isAccessible:!0,supportOnTitleClick:!0},Ue),this._defaultTreeKeyboardSupport=de,this.layoutData=Le,this._textModelResolverService=we,this._instantiationService=Ue,this._peekViewService=lt,this._uriLabel=Et,this._undoRedoService=Kt,this._keybindingService=Zt,this._languageService=qt,this._languageConfigurationService=tt,this._disposeOnNewModel=new M.Cm,this._callOnDispose=new M.Cm,this._onDidSelectReference=new p.vl,this.onDidSelectReference=this._onDidSelectReference.event,this._dim=new C.fg(0,0),this._applyTheme(We.getColorTheme()),this._callOnDispose.add(We.onDidColorThemeChange(this._applyTheme.bind(this))),this._peekViewService.addExclusiveWidget(ne,this),this.create()}dispose(){this.setModel(void 0),this._callOnDispose.dispose(),this._disposeOnNewModel.dispose(),(0,M.AS)(this._preview),(0,M.AS)(this._previewNotAvailableMessage),(0,M.AS)(this._tree),(0,M.AS)(this._previewModelReference),this._splitView.dispose(),super.dispose()}_applyTheme(ne){const de=ne.getColor(I.zl)||v.Q1.transparent;this.style({arrowColor:de,frameColor:de,headerBackgroundColor:ne.getColor(I.z0)||v.Q1.transparent,primaryHeadingColor:ne.getColor(I._X),secondaryHeadingColor:ne.getColor(I.e3)})}show(ne){super.show(ne,this.layoutData.heightInLines||18)}focusOnReferenceTree(){this._tree.domFocus()}focusOnPreviewEditor(){this._preview.focus()}isPreviewEditorFocused(){return this._preview.hasTextFocus()}_onTitleClick(ne){this._preview&&this._preview.getModel()&&this._onDidSelectReference.fire({element:this._getFocusedReference(),kind:ne.ctrlKey||ne.metaKey||ne.altKey?"side":"open",source:"title"})}_fillBody(ne){this.setCssClass("reference-zone-widget"),this._messageContainer=C.BC(ne,C.$("div.messages")),C.jD(this._messageContainer),this._splitView=new h.U(ne,{orientation:1}),this._previewContainer=C.BC(ne,C.$("div.preview.inline"));const de={scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:14,horizontal:"auto",useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,alwaysConsumeMouseWheel:!0},overviewRulerLanes:2,fixedOverflowWidgets:!0,minimap:{enabled:!1}};this._preview=this._instantiationService.createInstance(w.t,this._previewContainer,de,{},this.editor),C.jD(this._previewContainer),this._previewNotAvailableMessage=new j.Bz(S.kg("missingPreviewMessage","no preview available"),K.vH,j.Bz.DEFAULT_CREATION_OPTIONS,null,this._undoRedoService,this._languageService,this._languageConfigurationService),this._treeContainer=C.BC(ne,C.$("div.ref-tree.inline"));const Le={keyboardSupport:this._defaultTreeKeyboardSupport,accessibilityProvider:new Pe,keyboardNavigationLabelProvider:this._instantiationService.createInstance(re),identityProvider:new te,openOnSingleClick:!0,selectionNavigation:!0,overrideStyles:{listBackground:I.n6}};this._defaultTreeKeyboardSupport&&this._callOnDispose.add(C.b2(this._treeContainer,"keydown",we=>{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+1<C||!c&&u>0?(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.prefixLen<C.prefixLen?1:u.offsetDist<C.offsetDist?-1:u.offsetDist>C.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.horizontalDistanceToText<ie&&Y.push(new f.hx(0,X.range,V.event.posx,V.event.posy))}return Y.length===0?this._startShowingOrUpdateHover(null,0,0,!1,V):(Y.sort((ie,re)=>re.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<Y?r.tG(this._hover.containerDomNode.ownerDocument.body).width-14:this._hover.containerDomNode.clientWidth+2}isMouseGettingCloser(V,Y){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX>"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(;re<W.endLineNumber;){if(!/\S/.test(z.getLineContent(re+1))){re++;continue}break}if(re!==W.endLineNumber){const he={tokenization:{getLineTokens:Ce=>z.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;g<k.length;g++)k.charAt(g)===" "?L+=M:L++;return L}function F(k,M,L){k=k<0?0:k;let g="";if(!L){const x=Math.floor(k/M);k=k%M;for(let I=0;I<x;I++)g+=" "}for(let x=0;x<k;x++)g+=" ";return g}},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsContribution.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/base/browser/dom.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),S=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),f=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorDom.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/browser/stableEditorScroll.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editOperation.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModel.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatureDebounce.js"),v=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),p=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),b=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),w=e("./node_modules/monaco-editor/esm/vs/base/common/network.js");class j{constructor(ge,be){this.range=ge,this.direction=be}}class U{constructor(ge,be,Se){this.hint=ge,this.anchor=be,this.provider=Se,this._isResolved=!1}with(ge){const be=new U(this.hint,ge.anchor,this.provider);return be._isResolved=this._isResolved,be._currentResolve=this._currentResolve,be}async resolve(ge){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return await this._currentResolve,ge.isCancellationRequested?void 0:this.resolve(ge);this._isResolved||(this._currentResolve=this._doResolve(ge).finally(()=>this._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<me.getCount()-1&&(oe=me.getStartOffset(le+1),ne=me.getEndOffset(le+1))),new c.Q(Se,oe+1,Se,ne+1)}}K._emptyInlayHintList=Object.freeze({dispose(){},hints:[]});function G(ye){return d.r.from({scheme:w.ny.command,path:ye.id,query:ye.arguments&&encodeURIComponent(JSON.stringify(ye.arguments))}).toString()}var P=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlayHints/browser/inlayHintsLocations.js"),A=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),T=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),E=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),W=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),$=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js"),z=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js"),J=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},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;Zt<Kt.length;Zt++){const qt=Kt[Zt],tt=Zt===0,Mt=Zt===Kt.length-1,Ht={fontSize:`${oe}px`,fontFamily:`var(${We}), ${n.jU.fontFamily}`,verticalAlign:Le?"baseline":"middle",unicodeBidi:"isolate"};(0,M.EI)(Et.hint.textEdits)&&(Ht.cursor="default"),this._fillInColors(Ht,Et.hint),(qt.command||qt.location)&&((Se=this._activeInlayHintPart)===null||Se===void 0?void 0:Se.part.item)===Et&&this._activeInlayHintPart.part.index===Zt&&(Ht.textDecoration="underline",this._activeInlayHintPart.hasTriggerModifier&&(Ht.color=(0,z.Yf)($.Ztu),Ht.cursor="pointer")),de&&(tt&&Mt?(Ht.padding=`1px ${Math.max(1,oe/4)|0}px`,Ht.borderRadius=`${oe/4|0}px`):tt?(Ht.padding=`1px 0 1px ${Math.max(1,oe/4)|0}px`,Ht.borderRadius=`${oe/4|0}px 0 0 ${oe/4|0}px`):Mt?(Ht.padding=`1px ${Math.max(1,oe/4)|0}px 1px 0`,Ht.borderRadius=`0 ${oe/4|0}px ${oe/4|0}px 0`):Ht.padding="1px 0 1px 0");let xt=qt.label;we.totalLen+=xt.length;let Jt=!1;const Nt=we.totalLen-V._MAX_LABEL_LEN;if(Nt>0&&(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;Zt<Kt.length;Zt++){const qt=me[Zt];this._decorationsMetadata.set(Kt[Zt],qt)}}),lt.restore(this._editor)}_fillInColors(ge,be){be.kind===m.r4.Parameter?(ge.backgroundColor=(0,z.Yf)($.B2L),ge.color=(0,z.Yf)($.sjA)):be.kind===m.r4.Type?(ge.backgroundColor=(0,z.Yf)($._pU),ge.color=(0,z.Yf)($.HwT)):(ge.backgroundColor=(0,z.Yf)($.WL6),ge.color=(0,z.Yf)($.P6i))}_getLayoutInfo(){const ge=this._editor.getOption(141),be=ge.padding,Se=this._editor.getOption(52),ae=this._editor.getOption(49);let me=ge.fontSize;(!me||me<5||me>Se)&&(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(`
`)):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;ne<fe.length;ne++){const de=fe[ne];le.selection.endLineNumber===de.selection.startLineNumber&&(le.index<de.index?de.ignore=!0:(le.ignore=!0,le=de))}const oe=[];for(const ne of fe)oe.push(new n(ne.selection,this.down,ne.ignore));me.pushUndoStop(),me.executeCommands(this.id,oe),me.pushUndoStop()}}class A extends P{constructor(){super(!1,{id:"editor.action.copyLinesUpAction",label:U.kg("lines.copyUp","Copy Line Up"),alias:"Copy Line Up",precondition:s.R.writable,kbOpts:{kbExpr:s.R.editorTextFocus,primary:1552,linux:{primary:3600},weight:100},menuOpts:{menuId:K.D8.MenubarSelectionMenu,group:"2_line",title:U.kg({key:"miCopyLinesUp",comment:["&& denotes a mnemonic"]},"&&Copy Line Up"),order:1}})}}class T extends P{constructor(){super(!0,{id:"editor.action.copyLinesDownAction",label:U.kg("lines.copyDown","Copy Line Down"),alias:"Copy Line Down",precondition:s.R.writable,kbOpts:{kbExpr:s.R.editorTextFocus,primary:1554,linux:{primary:3602},weight:100},menuOpts:{menuId:K.D8.MenubarSelectionMenu,group:"2_line",title:U.kg({key:"miCopyLinesDown",comment:["&& denotes a mnemonic"]},"Co&&py Line Down"),order:2}})}}class E extends k.ks{constructor(){super({id:"editor.action.duplicateSelection",label:U.kg("duplicateSelection","Duplicate Selection"),alias:"Duplicate Selection",precondition:s.R.writable,menuOpts:{menuId:K.D8.MenubarSelectionMenu,group:"2_line",title:U.kg({key:"miDuplicateSelection",comment:["&& denotes a mnemonic"]},"&&Duplicate Selection"),order:5}})}run(ae,me,fe){if(!me.hasModel())return;const le=[],oe=me.getSelections(),ne=me.getModel();for(const de of oe)if(de.isEmpty())le.push(new n(de,!0));else{const Le=new a.L(de.endLineNumber,de.endColumn,de.endLineNumber,de.endColumn);le.push(new M.tA(Le,ne.getValueInRange(de)))}me.pushUndoStop(),me.executeCommands(this.id,le),me.pushUndoStop()}}class W extends k.ks{constructor(ae,me){super(me),this.down=ae}run(ae,me){const fe=ae.get(m.JZ),le=[],oe=me.getSelections()||[],ne=me.getOption(12);for(const de of oe)le.push(new b(de,this.down,ne,fe));me.pushUndoStop(),me.executeCommands(this.id,le),me.pushUndoStop()}}class $ extends W{constructor(){super(!1,{id:"editor.action.moveLinesUpAction",label:U.kg("lines.moveUp","Move Line Up"),alias:"Move Line Up",precondition:s.R.writable,kbOpts:{kbExpr:s.R.editorTextFocus,primary:528,linux:{primary:528},weight:100},menuOpts:{menuId:K.D8.MenubarSelectionMenu,group:"2_line",title:U.kg({key:"miMoveLinesUp",comment:["&& denotes a mnemonic"]},"Mo&&ve Line Up"),order:3}})}}class z extends W{constructor(){super(!0,{id:"editor.action.moveLinesDownAction",label:U.kg("lines.moveDown","Move Line Down"),alias:"Move Line Down",precondition:s.R.writable,kbOpts:{kbExpr:s.R.editorTextFocus,primary:530,linux:{primary:530},weight:100},menuOpts:{menuId:K.D8.MenubarSelectionMenu,group:"2_line",title:U.kg({key:"miMoveLinesDown",comment:["&& denotes a mnemonic"]},"Move &&Line Down"),order:4}})}}class J extends k.ks{constructor(ae,me){super(me),this.descending=ae}run(ae,me){if(!me.hasModel())return;const fe=me.getModel();let le=me.getSelections();le.length===1&&le[0].isEmpty()&&(le=[new a.L(1,1,fe.getLineCount(),fe.getLineMaxColumn(fe.getLineCount()))]);for(const ne of le)if(!O.canRun(me.getModel(),ne,this.descending))return;const oe=[];for(let ne=0,de=le.length;ne<de;ne++)oe[ne]=new O(le[ne],this.descending);me.pushUndoStop(),me.executeCommands(this.id,oe),me.pushUndoStop()}}class B extends J{constructor(){super(!1,{id:"editor.action.sortLinesAscending",label:U.kg("lines.sortAscending","Sort Lines Ascending"),alias:"Sort Lines Ascending",precondition:s.R.writable})}}class V extends J{constructor(){super(!0,{id:"editor.action.sortLinesDescending",label:U.kg("lines.sortDescending","Sort Lines Descending"),alias:"Sort Lines Descending",precondition:s.R.writable})}}class Y extends k.ks{constructor(){super({id:"editor.action.removeDuplicateLines",label:U.kg("lines.deleteDuplicates","Delete Duplicate Lines"),alias:"Delete Duplicate Lines",precondition:s.R.writable})}run(ae,me){if(!me.hasModel())return;const fe=me.getModel();if(fe.getLineCount()===1&&fe.getLineMaxColumn(1)===1)return;const le=[],oe=[];let ne=0,de=!0,Le=me.getSelections();Le.length===1&&Le[0].isEmpty()&&(Le=[new a.L(1,1,fe.getLineCount(),fe.getLineMaxColumn(fe.getLineCount()))],de=!1);for(const We of Le){const we=new Set,Ue=[];for(let Zt=We.startLineNumber;Zt<=We.endLineNumber;Zt++){const qt=fe.getLineContent(Zt);we.has(qt)||(Ue.push(qt),we.add(qt))}const lt=new a.L(We.startLineNumber,1,We.endLineNumber,fe.getLineMaxColumn(We.endLineNumber)),Et=We.startLineNumber-ne,Kt=new a.L(Et,1,Et+Ue.length-1,Ue[Ue.length-1].length);le.push(g.k.replace(lt,Ue.join(`
`))),oe.push(Kt),ne+=We.endLineNumber-We.startLineNumber+1-Ue.length}me.pushUndoStop(),me.executeEdits(this.id,le,de?oe:void 0),me.pushUndoStop()}}class X extends k.ks{constructor(){super({id:X.ID,label:U.kg("lines.trimTrailingWhitespace","Trim Trailing Whitespace"),alias:"Trim Trailing Whitespace",precondition:s.R.writable,kbOpts:{kbExpr:s.R.editorTextFocus,primary:(0,r.m5)(2089,2102),weight:100}})}run(ae,me,fe){let le=[];fe.reason==="auto-save"&&(le=(me.getSelections()||[]).map(we=>new 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;Le<We;Le++){const we=fe[Le];let Ue=we.startLineNumber,lt=we.endLineNumber,Et=1,Kt=le.getLineMaxColumn(lt);lt<le.getLineCount()?(lt+=1,Kt=1):Ue>1&&(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.startLineNumber<oe.endLineNumber&&oe.endColumn===1&&(ne-=1),{startLineNumber:oe.startLineNumber,selectionStartColumn:oe.selectionStartColumn,endLineNumber:ne,positionColumn:oe.positionColumn}});me.sort((oe,ne)=>oe.startLineNumber===ne.startLineNumber?oe.endLineNumber-ne.endLineNumber:oe.startLineNumber-ne.startLineNumber);const fe=[];let le=me[0];for(let oe=1;oe<me.length;oe++)le.endLineNumber+1>=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;Le<We;Le++){const we=le[Le],Ue=le[Le+1];x.Q.intersectRanges(we,Ue)===null?oe.push(we):le[Le+1]=x.Q.plusRange(we,Ue)}oe.push(le[le.length-1]);const ne=this._getEndCursorState(fe,oe),de=oe.map(Le=>g.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<ne;oe++){const Le=me[oe],We=new a.L(Le.startLineNumber-de,Le.startColumn,Le.startLineNumber-de,Le.startColumn);Le.intersectRanges(ae)?fe=We:le.push(We)}return fe&&le.unshift(fe),le}_getRangesToDelete(ae){const me=ae.getModel();if(me===null)return[];const fe=ae.getSelections();if(fe===null)return[];const le=fe.map(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<Et;lt++){const Kt=oe[lt],Zt=Kt.startLineNumber,qt=1;let tt=0,Mt,Ht;const xt=de.getLineLength(Kt.endLineNumber)-Kt.endColumn;if(Kt.isEmpty()||Kt.startLineNumber===Kt.endLineNumber){const Be=Kt.getStartPosition();Be.lineNumber<de.getLineCount()?(Mt=Zt+1,Ht=de.getLineMaxColumn(Mt)):(Mt=Be.lineNumber,Ht=de.getLineMaxColumn(Be.lineNumber))}else Mt=Kt.endLineNumber,Ht=de.getLineMaxColumn(Mt);let Jt=de.getLineContent(Zt);for(let Be=Zt+1;Be<=Mt;Be++){const vt=de.getLineContent(Be),Gt=de.getLineFirstNonWhitespaceColumn(Be);if(Gt>=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<de;ne++){const Le=fe[ne];if(!Le.isEmpty())continue;const We=Le.getStartPosition(),we=le.getLineMaxColumn(We.lineNumber);if(We.column>=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;V<Y;V++){const X=this._currentDecorations.getRange(V);if(X)if(X.startLineNumber!==X.endLineNumber)B.push({range:X,text:J});else{let ie=$.getValueInRange(X),re=J,te=X.startColumn,D=X.endColumn;const he=I.Qp(ie,re);te+=he,ie=ie.substr(he),re=re.substr(he);const ve=I.Vi(ie,re);D-=ve,ie=ie.substr(0,ie.length-ve),re=re.substr(0,re.length-ve),(te!==D||re.length!==0)&&B.push({range:new s.Q(X.startLineNumber,te,X.endLineNumber,D),text:re})}}if(B.length!==0)try{this._editor.popUndoStop(),this._ignoreChangeEvent=!0;const V=this._editor._getViewModel().getPrevEditOperationType();this._editor.executeEdits("linkedEditing",B),this._editor._getViewModel().setPrevEditOperationType(V)}finally{this._ignoreChangeEvent=!1}}dispose(){this.clearRanges(),super.dispose()}clearRanges(){this._visibleContextKey.set(!1),this._currentDecorations.clear(),this._currentRequestCts&&(this._currentRequestCts.cancel(),this._currentRequestCts=null,this._currentRequestPosition=null)}async updateRanges(W=!1){if(!this._editor.hasModel()){this.clearRanges();return}const $=this._editor.getPosition();if(!this._enabled&&!W||this._editor.getSelections().length>1){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<D;te++)if(s.Q.containsPosition(X[te],$)){if(ie=!0,te!==0){const he=X[te];X.splice(te,1),X.unshift(he)}break}if(!ie){this.clearRanges();return}const re=X.map(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;V<Y&&X<ie;){const re=z[V],te=J[X];if(u.Q.areIntersectingOrTouching(re.range,te.range)){V++;continue}u.Q.compareRangesUsingStarts(re.range,te.range)<0?(B.push(re),V++):(B.push(te),X++)}for(;V<Y;V++)B.push(z[V]);for(;X<ie;X++)B.push(J[X]);return B}}function b($,z,J){const B=[],V=$.ordered(z).reverse().map((Y,X)=>Promise.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<Math.min(B,X.links.length);re++)await X.links[re].resolve(F.X.None);const ie=X.links.slice(0);return X.dispose(),ie});var O=e("./node_modules/monaco-editor/esm/vs/nls.js"),w=e("./node_modules/monaco-editor/esm/vs/platform/notification/common/notification.js"),j=e("./node_modules/monaco-editor/esm/vs/platform/opener/common/opener.js"),U=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},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<te;re++){const D=new T(z[re],ie[re]);this.currentOccurrences[D.decorationId]=D}})}_onEditorMouseMove(z,J){const B=this.editor.getOption(78)==="altKey";if(this.isEnabled(z,J)){this.cleanUpActiveLinkDecoration();const V=this.getLinkOccurrence(z.target.position);V&&this.editor.changeDecorations(Y=>{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;he<re.endLineNumber;he++){const ve=te.getLineMaxColumn(he);D.push(new I.L(he,ve,he,ve))}re.endColumn>1&&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;_e<ee;_e++)Pe[_e]=this._expandEmptyToWord(Ce,te[_e]);this._editor.setSelections(Pe);return}}}this._beginSessionIfNeeded(re),this._session&&this._applySessionResult(this._session.addSelectionToNextFindMatch())}}addSelectionToPreviousFindMatch(re){this._beginSessionIfNeeded(re),this._session&&this._applySessionResult(this._session.addSelectionToPreviousFindMatch())}moveSelectionToNextFindMatch(re){this._beginSessionIfNeeded(re),this._session&&this._applySessionResult(this._session.moveSelectionToNextFindMatch())}moveSelectionToPreviousFindMatch(re){this._beginSessionIfNeeded(re),this._session&&this._applySessionResult(this._session.moveSelectionToPreviousFindMatch())}selectAll(re){if(!this._editor.hasModel())return;let te=null;const D=re.getState();if(D.isRevealed&&D.searchString.length>0&&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;ve<Ce;ve++){const Pe=te[ve];if(Pe.range.intersectRanges(he)){te[ve]=te[0],te[0]=Pe;break}}this._setSelections(te.map(ve=>new 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<Te;){const qe=D[ee];if(De>=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<ve;he++){const Ce=re[he];if(Ce.isEmpty())return!1;const Pe=V(ie,Ce,!te);if(D!==Pe)return!1}return!0}function V(ie,re,te){const D=ie.getValueInRange(re);return te?D.toLowerCase():D}class Y extends L.ks{constructor(){super({id:"editor.action.focusNextCursor",label:d.kg("mutlicursor.focusNextCursor","Focus Next Cursor"),metadata:{description:d.kg("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(re,te,D){if(!te.hasModel())return;const he=te._getViewModel();if(he.cursorConfig.readOnly)return;he.model.pushStackElement();const ve=Array.from(he.getCursorStates()),Ce=ve.shift();Ce&&(ve.push(Ce),he.setCursorStates(D.source,3,ve),he.revealPrimaryCursor(D.source,!0),h(ve,he.getCursorStates()))}}class X extends L.ks{constructor(){super({id:"editor.action.focusPreviousCursor",label:d.kg("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),metadata:{description:d.kg("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(re,te,D){if(!te.hasModel())return;const he=te._getViewModel();if(he.cursorConfig.readOnly)return;he.model.pushStackElement();const ve=Array.from(he.getCursorStates()),Ce=ve.pop();Ce&&(ve.unshift(Ce),he.setCursorStates(D.source,3,ve),he.revealPrimaryCursor(D.source,!0),h(ve,he.getCursorStates()))}}(0,L.HW)(K.ID,K,4),(0,L.HW)(J.ID,J,1),(0,L.Fl)(v),(0,L.Fl)(p),(0,L.Fl)(b),(0,L.Fl)(P),(0,L.Fl)(A),(0,L.Fl)(T),(0,L.Fl)(E),(0,L.Fl)(W),(0,L.Fl)($),(0,L.Fl)(O),(0,L.Fl)(w),(0,L.Fl)(Y),(0,L.Fl)(X)},"./node_modules/monaco-editor/esm/vs/editor/contrib/parameterHints/browser/parameterHints.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/base/common/lazy.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/editorContextKeys.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/services/languageFeatures.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/async.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/editor/common/core/characterClassifier.js"),d=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),a=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),s=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),m=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js");const u={Visible:new m.N1("parameterHintsVisible",!1),MultipleSignatures:new m.N1("parameterHintsMultipleSignatures",!1)};async function C(_e,ee,De,Te,He){const qe=_e.ordered(ee);for(const Qe of qe)try{const q=await Qe.provideSignatureHelp(ee,De,He,Te);if(q)return q}catch(q){(0,I.M_)(q)}}c.w.registerCommand("_executeSignatureHelpProvider",async(_e,...ee)=>{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._providerRenameIdx<this._providers.length;this._providerRenameIdx++){const me=this._providers[this._providerRenameIdx];if(!me.resolveRenameLocation)break;const fe=await me.resolveRenameLocation(this.model,this.position,be);if(fe){if(fe.rejectReason){Se.push(fe.rejectReason);continue}return fe}}this._providerRenameIdx=0;const ae=this.model.getWordAtPosition(this.position);return ae?{range:new s.Q(this.position.lineNumber,ae.startColumn,this.position.lineNumber,ae.endColumn),text:ae.word,rejectReason:Se.length>0?Se.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<bt.length;Dt++)Ge.push(`${bt.slice(Dt).join(".")}-ext-file-icon`)}Ge.push("ext-file-icon")}const it=qt(Je,Ne,ft);it&&Ge.push(`${tt(it)}-lang-file-icon`)}}return Ge}function qt(Je,Ne,ft){if(!ft)return null;let St=null;if(ft.scheme===we.ny.data){const Ge=Ue.B6.parseMetaData(ft).get(Ue.B6.META_DATA_MIME);Ge&&(St=Ne.getLanguageIdByMimeType(Ge))}else{const rt=Je.getModel(ft);rt&&(St=rt.getLanguageId())}return St&&St!==lt.vH?St:Ne.guessLanguageIdByFilepathOrFirstLine(ft)}function tt(Je){return Je.replace(/[\11\12\14\15\40]/g,"/")}var Mt=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),Ht=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),xt=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/iconRegistry.js"),Jt=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},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.height<St&&this._persistedSize.store(ft.with(void 0,St))}isFrozen(){return this._state===4}_afterRender(Ne){if(Ne===null){this._isDetailsVisible()&&this._details.hide();return}this._state===2||this._state===1||(this._isDetailsVisible()&&!this._details.widget.isEmpty&&this._details.show(),this._positionDetails())}_layout(Ne){var ft,St,rt;if(!this.editor.hasModel()||!this.editor.getDomNode())return;const Ge=B.tG(this.element.domNode.ownerDocument.body),nt=this.getLayoutInfo();Ne||(Ne=nt.defaultSize);let it=Ne.height,bt=Ne.width;if(this._status.element.style.height=`${nt.itemHeight}px`,this._state===2||this._state===1)it=nt.itemHeight+nt.borderHeight,bt=nt.defaultSize.width/2,this.element.enableSashes(!1,!1,!1,!1),this.element.minSize=this.element.maxSize=new B.fg(bt,it),this._contentWidget.setPreference(2);else{const Dt=Ge.width-nt.borderHeight-2*nt.horizontalPadding;bt>Dt&&(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),it<at&&(it=at),it>Rt&&(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<b.endColumn&&this.completionModel.getIncompleteProvider().size===0}get items(){var v;const p=[],{items:b}=this.completionModel,O=this._suggestMemoryService.select(this.model,{lineNumber:this.line,column:this.word.endColumn+this.completionModel.lineContext.characterCountDelta},b),w=k.f.slice(b,O),j=k.f.slice(b,0,O);let U=5;for(const K of k.f.concat(w,j)){if(K.score===F.ne.Default)continue;const G=new g.Q(K.editStart.lineNumber,K.editStart.column,K.editInsertEnd.lineNumber,K.editInsertEnd.column+this.completionModel.lineContext.characterCountDelta),P=K.completion.insertTextRules&&K.completion.insertTextRules&4?{snippet:K.completion.insertText}:K.completion.insertText;p.push(new m(G,P,(v=K.filterTextLow)!==null&&v!==void 0?v:K.labelLow,K.completion.additionalTextEdits,K.completion.command,K)),U-->=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;O<p.length;O++){const{score:w,completion:j}=p[O];if(w[0]!==b)break;if(j.preselect)return O}return 0}}class n extends s{constructor(){super("first")}memorize(h,v,p){}toJSON(){}fromJSON(){}}class i extends s{constructor(){super("recentlyUsed"),this._cache=new k.qK(300,.66),this._seq=0}memorize(h,v,p){const b=`${h.getLanguageId()}/${p.textLabel}`;this._cache.set(b,{touch:this._seq++,type:p.completion.kind,insertText:p.completion.insertText})}select(h,v,p){if(p.length===0)return 0;const b=h.getLineContent(v.lineNumber).substr(v.column-10,v.column-1);if(/\s$/.test(b))return super.select(h,v,p);const O=p[0].score[0];let w=-1,j=-1,U=-1;for(let K=0;K<p.length&&p[K].score[0]===O;K++){const G=`${h.getLanguageId()}/${p[K].textLabel}`,P=this._cache.peek(G);if(P&&P.touch>U&&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;j<p.length;j++){const{kind:U,insertText:K}=p[j].completion;if(U===w.type&&K===w.insertText)return j}return super.select(h,v,p)}toJSON(){const h=[];return this._trie.forEach((v,p)=>h.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.column<this._context.column){A.leadingWord.word?this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0}):this.cancel();return}if(this._completionModel){if(A.leadingWord.word.length!==0&&A.leadingWord.startColumn>this._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.endColumn<A.leadingWord.startColumn){this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0});return}if(this._context.triggerOptions.auto){this.cancel();return}else if(this._completionModel.lineContext=T,E=this._completionModel.items.length>0,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<he){b.query=null,this._stopAll();return}ie=this.workerRequest&&this.workerRequest.isValid(this.model,te,this.decorations),b.query={modelInfo:{model:this.model,selection:te},word:ve}}else if(!b.query)return;if(this.lastCursorPositionChangeTime=new Date().getTime(),ie)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();const te=++this.workerRequestTokenId;this.workerRequestCompleted=!1;const D=this.getOtherModelsToHighlight(this.editor.getModel());if(!b.query.modelInfo||b.query.modelInfo.model.isDisposed())return;this.workerRequest=this.computeWithModel(b.query.modelInfo.model,b.query.modelInfo.selection,b.query.word,D),(X=this.workerRequest)===null||X===void 0||X.result.then(he=>{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;v<p;v++){const b=C.charCodeAt(v);switch(b){case 9:h+="\u2192";break;case 32:h+="\xB7";break;default:h+=String.fromCharCode(b)}}return h}function m(C,h){const v=L.dG.get(h);if(v)return v;const p=C.encodeLanguageId(h);return{getInitialState:()=>x.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(p<v.tokens1.length){const U=v.tokens1[p].offset,K=p+1<v.tokens1.length?v.tokens1[p+1].offset:O.length;w=O.substring(U,K)}(0,r.Ln)(this._domNode,(0,r.$)("h2.tm-token",void 0,c(w),(0,r.$)("span.tm-token-length",void 0,`${w.length} ${w.length===1?"char":"chars"}`))),(0,r.BC)(this._domNode,(0,r.$)("hr.tokens-inspect-separator",{style:"clear:both"}));const j=(b<<1)+1<v.tokens2.length?this._decodeMetadata(v.tokens2[(b<<1)+1]):null;(0,r.BC)(this._domNode,(0,r.$)("table.tm-metadata-table",void 0,(0,r.$)("tbody",void 0,(0,r.$)("tr",void 0,(0,r.$)("td.tm-metadata-key",void 0,"language"),(0,r.$)("td.tm-metadata-value",void 0,`${j?j.languageId:"-?-"}`)),(0,r.$)("tr",void 0,(0,r.$)("td.tm-metadata-key",void 0,"token type"),(0,r.$)("td.tm-metadata-value",void 0,`${j?this._tokenTypeToString(j.tokenType):"-?-"}`)),(0,r.$)("tr",void 0,(0,r.$)("td.tm-metadata-key",void 0,"font style"),(0,r.$)("td.tm-metadata-value",void 0,`${j?this._fontStyleToString(j.fontStyle):"-?-"}`)),(0,r.$)("tr",void 0,(0,r.$)("td.tm-metadata-key",void 0,"foreground"),(0,r.$)("td.tm-metadata-value",void 0,`${j?F.Q1.Format.CSS.formatHex(j.foreground):"-?-"}`)),(0,r.$)("tr",void 0,(0,r.$)("td.tm-metadata-key",void 0,"background"),(0,r.$)("td.tm-metadata-value",void 0,`${j?F.Q1.Format.CSS.formatHex(j.background):"-?-"}`))))),(0,r.BC)(this._domNode,(0,r.$)("hr.tokens-inspect-separator")),p<v.tokens1.length&&(0,r.BC)(this._domNode,(0,r.$)("span.tm-token-type",void 0,v.tokens1[p].type)),this._editor.layoutContentWidget(this)}_decodeMetadata(h){const v=L.dG.getColorMap(),p=g.x.getLanguageId(h),b=g.x.getTokenType(h),O=g.x.getFontStyle(h),w=g.x.getForeground(h),j=g.x.getBackground(h);return{languageId:this._languageService.languageIdCodec.decodeLanguageId(p),tokenType:b,fontStyle:O,foreground:v[w],background:v[j]}}_tokenTypeToString(h){switch(h){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 3:return"RegEx";default:return"??"}}_fontStyleToString(h){let v="";return h&1&&(v+="italic "),h&2&&(v+="bold "),h&4&&(v+="underline "),h&8&&(v+="strikethrough "),v.length===0&&(v="---"),v}_getTokensAtLine(h){const v=this._getStateBeforeLine(h),p=this._tokenizationSupport.tokenize(this._model.getLineContent(h),!0,v),b=this._tokenizationSupport.tokenizeEncoded(this._model.getLineContent(h),!0,v);return{startState:v,tokens1:p.tokens,tokens2:b.tokens,endState:p.endState}}_getStateBeforeLine(h){let v=this._tokenizationSupport.getInitialState();for(let p=1;p<h;p++)v=this._tokenizationSupport.tokenize(this._model.getLineContent(p),!0,v).endState;return v}getDomNode(){return this._domNode}getPosition(){return{position:this._editor.getPosition(),preference:[2,1]}}}u._ID="editor.contrib.inspectTokensWidget",(0,M.HW)(n.ID,n,4),(0,M.Fl)(i)},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneCommandsQuickAccess.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/editor/browser/services/codeEditorService.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/iconLabels.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.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(Pe,_e){return _e&&(Pe.stack||Pe.stacktrace)?I.kg("stackTrace.format","{0}: {1}",d(Pe),f(Pe.stack)||f(Pe.stacktrace)):d(Pe)}function f(Pe){return Array.isArray(Pe)?Pe.join(`
`):Pe}function d(Pe){return Pe.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${Pe.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof Pe.code=="string"&&typeof Pe.errno=="number"&&typeof Pe.syscall=="string"?I.kg("nodeExceptionMessage","A system error occurred ({0})",Pe.message):Pe.message||I.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function a(Pe=null,_e=!1){if(!Pe)return I.kg("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(Pe)){const ee=g.Yc(Pe),De=a(ee[0],_e);return ee.length>1?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<be.length;oe++){const ne=be[oe];oe===0&&this.commandsHistory.peek(ne.commandId)&&(ae.push({type:"separator",label:(0,I.kg)("recentlyUsed","recently used")}),me=!0),fe&&ne.tfIdfScore!==void 0&&(ae.push({type:"separator",label:(0,I.kg)("suggested","similar commands")}),fe=!1),le&&ne.tfIdfScore===void 0&&!this.commandsHistory.peek(ne.commandId)&&(!((Qe=this.options.suggestedCommandIds)===null||Qe===void 0)&&Qe.has(ne.commandId))&&(ae.push({type:"separator",label:(0,I.kg)("commonlyUsed","commonly used")}),me=!0,le=!1),me&&ne.tfIdfScore===void 0&&!this.commandsHistory.peek(ne.commandId)&&!(!((q=this.options.suggestedCommandIds)===null||q===void 0)&&q.has(ne.commandId))&&(ae.push({type:"separator",label:(0,I.kg)("morecCommands","other commands")}),me=!1),ae.push(this.toCommandPick(ne,Te))}return this.hasAdditionalCommandPicks(_e,De)?{picks:ae,additionalPicks:(async()=>{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<Pe.start||Pe.end<Ce.start)}function m(Ce){return Ce.startsWith('"')&&Ce.endsWith('"')}const u=" ";function C(Ce){typeof Ce!="string"&&(Ce="");const Pe=Ce.toLowerCase(),{pathNormalized:_e,normalized:ee,normalizedLowercase:De}=h(Ce),Te=_e.indexOf(x.Vn)>=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;le<qe.length;le++){const oe=qe[le],ne=(0,S.Bq)(oe.name),de=`$(${O.gP.toIcon(oe.kind).id}) ${ne}`,Le=de.length-ne.length;let We=oe.containerName;ee?.extraContainerLabel&&(We?We=`${ee.extraContainerLabel} \u2022 ${We}`:We=ee.extraContainerLabel);let we,Ue,lt,Et;if(_e.original.length>q){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<Pe;Ce++){const _e=D[Ce];let ee=-1;if(typeof _e.fontStyle=="string"){ee=0;const He=_e.fontStyle.split(" ");for(let qe=0,Qe=He.length;qe<Qe;qe++)switch(He[qe]){case"italic":ee=ee|1;break;case"bold":ee=ee|2;break;case"underline":ee=ee|4;break;case"strikethrough":ee=ee|8;break}}let De=null;typeof _e.foreground=="string"&&(De=_e.foreground);let Te=null;typeof _e.background=="string"&&(Te=_e.background),he[ve++]=new x(_e.token||"",Ce,ee,De,Te)}return he}function S(D,he){D.sort((qe,Qe)=>{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<Qe;qe++){const q=D[qe];He.insert(q.token,q.fontStyle,_e.getId(q.foreground),_e.getId(q.background))}return new a(_e,He)}const f=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;class d{constructor(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}getId(he){if(he===null)return 0;const ve=he.match(f);if(!ve)throw new Error("Illegal value for token color: "+he);he=ve[1].toUpperCase();let Ce=this._color2id.get(he);return Ce||(Ce=++this._lastColorId,this._color2id.set(he,Ce),this._id2color[Ce]=k.Q1.fromHex("#"+he),Ce)}getColorMap(){return this._id2color.slice(0)}}class a{static createFromRawTokenTheme(he,ve){return this.createFromParsedTokenTheme(I(he),ve)}static createFromParsedTokenTheme(he,ve){return S(he,ve)}constructor(he,ve){this._colorMap=he,this._root=ve,this._cache=new Map}getColorMap(){return this._colorMap.getColorMap()}_match(he){return this._root.match(he)}match(he,ve){let Ce=this._cache.get(ve);if(typeof Ce>"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 D<he?-1:D>he?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;ve<Ce;ve++){const Pe=D[ve];he[ve]=`.mtk${ve} { color: ${Pe}; }`}return he.push(".mtki { font-style: italic; }"),he.push(".mtkb { font-weight: bold; }"),he.push(".mtku { text-decoration: underline; text-underline-position: under; }"),he.push(".mtks { text-decoration: line-through; }"),he.push(".mtks.mtku { text-decoration: underline line-through; text-underline-position: under; }"),he.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 xe<en.element.elements.length-1?st=[j(en,xe+1)]:st=p.f.map(p.f.from(en.children),Wt=>j(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;rn<xe.length;rn++){const hn=xe[rn],Dn=hn.position+hn.height;if(rn+1<xe.length&&Dn+xe[rn+1].height>Wt||rn>=st-1&&st<xe.length){const Bn=xe.slice(0,rn),oi=xe.slice(rn),$n=this.compressStickyNodes(oi);return[...Bn,$n]}}return xe}compressStickyNodes(xe){if(xe.length===0)throw new Error("Can't compress empty sticky nodes");if(!this.modelProvider().isCompressionEnabled())return xe[0];const st=[];for(const Bn of xe){const oi=this.modelProvider().getCompressedTreeNode(Bn.node.element);if(oi.element){if(oi.element.incompressible)break;st.push(...oi.element.elements)}}if(st.length<2)return xe[0];const Wt=xe[xe.length-1],rn={elements:st,incompressible:!1},hn={...Wt.node,children:[],element:rn},Dn=new Proxy(xe[0].node,{}),On={node:Dn,startIndex:xe[0].startIndex,endIndex:Wt.endIndex,position:xe[0].position,height:xe[0].height};return this.compressedStickyNodes.set(Dn,hn),On}}function X(en,xe){return xe&&{...xe,keyboardNavigationLabelProvider:xe.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel(st){let Wt;try{Wt=en().getCompressedTreeNode(st)}catch{return xe.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(st)}return Wt.element.elements.length===1?xe.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(st):xe.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(Wt.element.elements)}}}}class ie extends B{constructor(xe,st,Wt,rn,hn={}){const Dn=()=>this,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<Rn.elements.length;cn++){const $e=rn(Rn.elements[cn].element),yt=Rn.elements[Rn.elements.length-1].element;Dn.has($e)&&Bn.indexOf(yt)===-1&&(Bn.push(yt),oi=!0),On.has($e)&&$n.indexOf(yt)===-1&&($n.push(yt),ti=!0)}Un.children.forEach(Jn)};Jn(this.tree.getCompressedTreeNode(xe===this.root?null:xe)),oi&&this.setSelection(Bn),ti&&this.setFocus($n)}processChildren(xe){return this.filter&&(xe=p.f.filter(xe,st=>{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="^#(?:(?<rgba>[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(`|<i class="${G(T)}"></i>|${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(`|<i class="${G(T)}"></i>|${T.id}|`);return P.join(`