705 lines
3.6 MiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["monaco"],{"include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js":function(pt,Me,e){e.r(Me),e.d(Me,{CancellationTokenSource:function(){return Kl},Emitter:function(){return Gl},KeyCode:function(){return $l},KeyMod:function(){return Ql},MarkerSeverity:function(){return ql},MarkerTag:function(){return ed},Position:function(){return Yl},Range:function(){return Zl},Selection:function(){return Xl},SelectionDirection:function(){return Jl},Token:function(){return nd},Uri:function(){return td},default:function(){return Hu},editor:function(){return id},languages:function(){return od}});var r={};e.r(r),e.d(r,{CancellationTokenSource:function(){return Kl},Emitter:function(){return Gl},KeyCode:function(){return $l},KeyMod:function(){return Ql},MarkerSeverity:function(){return ql},MarkerTag:function(){return ed},Position:function(){return Yl},Range:function(){return Zl},Selection:function(){return Xl},SelectionDirection:function(){return Jl},Token:function(){return nd},Uri:function(){return td},editor:function(){return id},languages:function(){return od}});var F=e("./node_modules/monaco-editor/esm/vs/editor/contrib/anchorSelect/browser/anchorSelect.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/contrib/bracketMatching/browser/bracketMatching.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/browser/coreCommands.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/caretOperations.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/contrib/caretOperations/browser/transpose.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/contrib/clipboard/browser/clipboard.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codeAction/browser/codeActionContributions.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/codeEditor/codeEditorWidget.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/contrib/codelens/browser/codelensController.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/colorContributions.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/contrib/comment/browser/comment.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/contrib/cursorUndo/browser/cursorUndo.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/contrib/diffEditorBreadcrumbs/browser/contribution.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dnd/browser/dnd.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/contrib/documentSymbols/browser/documentSymbols.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js"),v=e("./node_modules/monaco-editor/esm/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js"),p=e("./node_modules/monaco-editor/esm/vs/editor/contrib/find/browser/findController.js"),b=e("./node_modules/monaco-editor/esm/vs/editor/contrib/folding/browser/folding.js"),O=e("./node_modules/monaco-editor/esm/vs/editor/contrib/fontZoom/browser/fontZoom.js"),w=e("./node_modules/monaco-editor/esm/vs/editor/contrib/format/browser/formatActions.js"),j=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoError/browser/gotoError.js"),U=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/quickAccess/standaloneGotoLineQuickAccess.js"),K=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/goToCommands.js"),G=e("./node_modules/monaco-editor/esm/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js"),P=e("./node_modules/monaco-editor/esm/vs/editor/contrib/hover/browser/hover.js"),A=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js"),T=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inPlaceReplace/b
`: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.isRegis
`)}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(_)}_tryToSplitA
:host {
all: initial; /* 1st rule so subsequent properties are reset. */
}
.codicon[class*='codicon-'] {
font: normal normal normal 16px/1 codicon;
display: inline-block;
text-decoration: none;
text-rendering: auto;
text-align: center;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
:host {
font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;
}
:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }
:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }
:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }
:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Nanum Gothic", "Apple SD Gothic Neo", "AppleGothic", sans-serif; }
:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }
:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }
:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }
:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }
:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }
:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }
:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }
`;var zs=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Go=function(Ie,o){return function(_,N){o(_,N,Ie)}};let bo=class extends we.jG{constructor(o){super(),this.layoutService=o,this.currentViewDisposable=this._register(new we.HE),this.contextView=this._register(new So(this.layoutService.mainContainer,1)),this.layout(),this._register(o.onDidLayoutContainer(()=>this.layout()))}showContextView(o,_,N){let se;_?_===this.layoutService.getContainer((0,je.zk)(_))?se=1:N?se=3:se=2:se=1,this.contextView.setContainer(_??this.layoutService.activeContainer,se),this.contextView.show(o);const ue=(0,we.s)(()=>{this.currentViewDisposable===ue&&this.hideContextView()});return this.currentViewDisposable.value=ue,ue}layout(){this.contextView.layout()}hideContextView(o){this.contextView.hide(o)}};bo=zs([Go(0,On)],bo);class wo extends bo{getContextViewElement(){return this.contextView.getViewElement()}}var Rs=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},$o=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Os=class extends we.jG{constructor(o,_,N,se,ue){super(),this._instantiationService=o,this._keybindingService=N,this._layoutService=se,this._accessibilityService=ue,_.onDidShowContextMenu(()=>this.hideHover()),this._contextViewHandler=this._register(new bo(this._layoutService))}showHover(o,_,N){var se,ue,Ee,Oe;if(Ks(this._currentHoverOptions)===Ks(o)||this._currentHover&&(!((ue=(se=this._currentHoverOptions)===null||se===void 0?void 0:se.persistence)===null||ue===void 0)&&ue.sticky))return;this._currentHoverOptions=o,this._lastHoverOptions=o;const ot=o.trapFocus||this._accessibilityService.isScreenReaderOptimized(),_t=(0,je.bq)();N||(ot&&_t?this._lastFocusedElementBeforeOpen=_t:this._lastFocusedElementBeforeOpen=void 0);const Ot=new we.Cm,nn=this._instantiationService.createInstance(ao,o);if(!((Ee=o.persistence)===null||Ee===void 0)&&Ee.sticky&&(nn.isLocked=!0),nn.onDispose(()=>{var fn,wn;((fn=this._currentHover)===null||fn===void 0?void 0:fn.domNode)&&(0,je.nR)(this._currentHover.domNode)&&((wn=this._lastFocusedElementBeforeOpen)===null||wn===void 0||wn.focus()),this._currentHoverOptions===o&&(this._currentHoverOptions=void 0),Ot.dispose()}),!o.container){const fn=o.target instanceof HTMLElement?o.target:o.target.targetElements[0];o.container=this._layoutService.getContainer((0,je.zk)(fn))}if(this._contextViewHandler.showContextView(new ur(nn,_),o.container),nn.onRequestLayout(()=>this._contextViewHandler.layout()),!((Oe=o.persistence)===null||Oe===void 0)&&Oe.sticky)Ot.add((0,je.ko)((0,je.zk)(o.container).document,je.Bx.MOUSE_DOWN,fn=>{(0,je.QX)(fn.target,nn.domNode)||this.doHideHover()}));else{if("targetElements"in o.target)for(const wn of o.target.targetElements)Ot.add((0,je.ko)(wn,je.Bx.CLICK,()=>this.hideHover()));else Ot.add((0,je.ko)(o.target,je.Bx.CLICK,()=>this.hideHover()));const fn=(0,je.bq)();if(fn){const wn=(0,je.zk)(fn).document;Ot.add((0,je.ko)(fn,je.Bx.KEY_DOWN,Xn=>{var bi;return this._keyDown(Xn,nn,!!(!((bi=o.persistence)===null||bi===void 0)&&bi.hideOnKeyDown))})),Ot.add((0,je.ko)(wn,je.Bx.KEY_DOWN,Xn=>{var bi;return this._keyDown(Xn,nn,!!(!((bi=o.persistence)===null||bi===void 0)&&bi.hideOnKeyDown))})),Ot.add((0,je.ko)(fn,je.Bx.KEY_UP,Xn=>this._keyUp(Xn,nn))),Ot.add((0,je.ko)(wn,je.Bx.KEY_UP,Xn=>this._keyUp(Xn,nn)))}}if("IntersectionObserver"in We.G){const fn=new IntersectionObserver(Xn=>this._intersectionChange(Xn,nn),{threshold:0}),wn="targetElements"in o.target?o.target.targetElements[0]:o.target;fn.observe(wn),Ot.add
`,this._markerCode1=this._marker.charCodeAt(0),this._markerCode2=46,this.affectedKeys=new Set,this._previousConfiguration=void 0;for(const ue of o.keys)this.affectedKeys.add(ue);for(const[,ue]of o.overrides)for(const Ee of ue)this.affectedKeys.add(Ee);this._affectsConfigStr=this._marker;for(const ue of this.affectedKeys)this._affectsConfigStr+=ue+this._marker}get previousConfiguration(){return!this._previousConfiguration&&this.previous&&(this._previousConfiguration=Uo.parse(this.previous.data)),this._previousConfiguration}affectsConfiguration(o,_){var N;const se=this._marker+o,ue=this._affectsConfigStr.indexOf(se);if(ue<0)return!1;const Ee=ue+se.length;if(Ee>=this._affectsConfigStr.length)return!1;const Oe=this._affectsConfigStr.charCodeAt(Ee);if(Oe!==this._markerCode1&&Oe!==this._markerCode2)return!1;if(_){const ot=this.previousConfiguration?this.previousConfiguration.getValue(o,_,(N=this.previous)===null||N===void 0?void 0:N.workspace):void 0,_t=this.currentConfiguraiton.getValue(o,_,this.currentWorkspace);return!qt.aI(ot,_t)}return!0}}var Co=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),ms=e("./node_modules/monaco-editor/esm/vs/base/common/ime.js");const as={kind:0},qi={kind:1};function gs(Ie,o,_){return{kind:2,commandId:Ie,commandArgs:o,isBubble:_}}class es{constructor(o,_,N){var se;this._log=N,this._defaultKeybindings=o,this._defaultBoundCommands=new Map;for(const ue of o){const Ee=ue.command;Ee&&Ee.charAt(0)!=="-"&&this._defaultBoundCommands.set(Ee,!0)}this._map=new Map,this._lookupMap=new Map,this._keybindings=es.handleRemovals([].concat(o).concat(_));for(let ue=0,Ee=this._keybindings.length;ue<Ee;ue++){const Oe=this._keybindings[ue];if(Oe.chords.length===0)continue;const ot=(se=Oe.when)===null||se===void 0?void 0:se.substituteConstants();ot&&ot.type===0||this._addKeyPress(Oe.chords[0],Oe)}}static _isTargetedForRemoval(o,_,N){if(_){for(let se=0;se<_.length;se++)if(_[se]!==o.chords[se])return!1}return!(N&&N.type!==1&&(!o.when||!(0,en.jQ)(N,o.when)))}static handleRemovals(o){const _=new Map;for(let se=0,ue=o.length;se<ue;se++){const Ee=o[se];if(Ee.command&&Ee.command.charAt(0)==="-"){const Oe=Ee.command.substring(1);_.has(Oe)?_.get(Oe).push(Ee):_.set(Oe,[Ee])}}if(_.size===0)return o;const N=[];for(let se=0,ue=o.length;se<ue;se++){const Ee=o[se];if(!Ee.command||Ee.command.length===0){N.push(Ee);continue}if(Ee.command.charAt(0)==="-")continue;const Oe=_.get(Ee.command);if(!Oe||!Ee.isDefault){N.push(Ee);continue}let ot=!1;for(const _t of Oe){const Ot=_t.when;if(this._isTargetedForRemoval(Ee,_t.chords,Ot)){ot=!0;break}}if(!ot){N.push(Ee);continue}}return N}_addKeyPress(o,_){const N=this._map.get(o);if(typeof N>"u"){this._map.set(o,[_]),this._addToLookupMap(_);return}for(let se=N.length-1;se>=0;se--){const ue=N[se];if(ue.command===_.command)continue;let Ee=!0;for(let Oe=1;Oe<ue.chords.length&&Oe<_.chords.length;Oe++)if(ue.chords[Oe]!==_.chords[Oe]){Ee=!1;break}Ee&&es.whenIsEntirelyIncluded(ue.when,_.when)&&this._removeFromLookupMap(ue)}N.push(_),this._addToLookupMap(_)}_addToLookupMap(o){if(!o.command)return;let _=this._lookupMap.get(o.command);typeof _>"u"?(_=[o],this._lookupMap.set(o.command,_)):_.push(o)}_removeFromLookupMap(o){if(!o.command)return;const _=this._lookupMap.get(o.command);if(!(typeof _>"u")){for(let N=0,se=_.length;N<se;N++)if(_[N]===o){_.splice(N,1);return}}}static whenIsEntirelyIncluded(o,_){return!_||_.type===1?!0:!o||o.type===1?!1:(0,en.M0)(o,_)}getKeybindings(){return this._keybindings}lookupPrimaryKeybinding(o,_){const N=this._lookupMap.get(o);if(typeof N>"u"||N.length===0)return null;if(N.length===1)return N[0];for(let se=N.length-1;se>=0;se--){const ue=N[se];if(_.contextMatchesRules(ue.when))return ue}return N[N.length-1]}resolve(o,_,N){const se=[..._,N];this._log(`| Resolving ${se}`);const ue=this._map.get(se[0]);if(ue===void 0)return this._log("\\ No keybinding entries."),as;let Ee=null;if(se.length<2)Ee=ue;else{Ee=[];for(let ot=0,_t=ue.length;ot<_t;ot++){const Ot=ue[ot];if(se.length>Ot.chords.length)continue;let nn=!0;for(let fn=1;fn<se.length;fn++)if(Ot.chords[fn]!==se[fn]){
.monaco-menu {
font-size: 13px;
border-radius: 5px;
min-width: 160px;
}
${Zr(ls.W.menuSelection)}
${Zr(ls.W.menuSubmenu)}
.monaco-menu .monaco-action-bar {
text-align: right;
overflow: hidden;
white-space: nowrap;
}
.monaco-menu .monaco-action-bar .actions-container {
display: flex;
margin: 0 auto;
padding: 0;
width: 100%;
justify-content: flex-end;
}
.monaco-menu .monaco-action-bar.vertical .actions-container {
display: inline-block;
}
.monaco-menu .monaco-action-bar.reverse .actions-container {
flex-direction: row-reverse;
}
.monaco-menu .monaco-action-bar .action-item {
cursor: pointer;
display: inline-block;
transition: transform 50ms ease;
position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */
}
.monaco-menu .monaco-action-bar .action-item.disabled {
cursor: default;
}
.monaco-menu .monaco-action-bar .action-item .icon,
.monaco-menu .monaco-action-bar .action-item .codicon {
display: inline-block;
}
.monaco-menu .monaco-action-bar .action-item .codicon {
display: flex;
align-items: center;
}
.monaco-menu .monaco-action-bar .action-label {
font-size: 11px;
margin-right: 4px;
}
.monaco-menu .monaco-action-bar .action-item.disabled .action-label,
.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {
color: var(--vscode-disabledForeground);
}
/* Vertical actions */
.monaco-menu .monaco-action-bar.vertical {
text-align: left;
}
.monaco-menu .monaco-action-bar.vertical .action-item {
display: block;
}
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
display: block;
border-bottom: 1px solid var(--vscode-menu-separatorBackground);
padding-top: 1px;
padding: 30px;
}
.monaco-menu .secondary-actions .monaco-action-bar .action-label {
margin-left: 6px;
}
/* Action Items */
.monaco-menu .monaco-action-bar .action-item.select-container {
overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */
flex: 1;
max-width: 170px;
min-width: 60px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
}
.monaco-menu .monaco-action-bar.vertical {
margin-left: 0;
overflow: visible;
}
.monaco-menu .monaco-action-bar.vertical .actions-container {
display: block;
}
.monaco-menu .monaco-action-bar.vertical .action-item {
padding: 0;
transform: none;
display: flex;
}
.monaco-menu .monaco-action-bar.vertical .action-item.active {
transform: none;
}
.monaco-menu .monaco-action-bar.vertical .action-menu-item {
flex: 1 1 auto;
display: flex;
height: 2em;
align-items: center;
position: relative;
margin: 0 4px;
border-radius: 4px;
}
.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,
.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {
opacity: unset;
}
.monaco-menu .monaco-action-bar.vertical .action-label {
flex: 1 1 auto;
text-decoration: none;
padding: 0 1em;
background: none;
font-size: 12px;
line-height: 1;
}
.monaco-menu .monaco-action-bar.vertical .keybinding,
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
display: inline-block;
flex: 2 1 auto;
padding: 0 1em;
text-align: right;
font-size: 12px;
line-height: 1;
}
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
height: 100%;
}
.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {
font-size: 16px !important;
display: flex;
align-items: center;
}
.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {
margin-left: auto;
margin-right: -20px;
}
.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,
.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {
opacity: 0.4;
}
.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {
display: inline-block;
box-sizing: border-box;
margin: 0;
}
.monaco-menu .monaco-action-bar.vertical .action-item {
position: static;
overflow: visible;
}
.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {
position: absolute;
}
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
width: 100%;
height: 0px !important;
opacity: 1;
}
.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {
padding: 0.7em 1em 0.1em 1em;
font-weight: bold;
opacity: 1;
}
.monaco-menu .monaco-action-bar.vertical .action-label:hover {
color: inherit;
}
.monaco-menu .monaco-action-bar.vertical .menu-item-check {
position: absolute;
visibility: hidden;
width: 1em;
height: 100%;
}
.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {
visibility: visible;
display: flex;
align-items: center;
justify-content: center;
}
/* Context Menu */
.context-view.monaco-menu-container {
outline: 0;
border: none;
animation: fadeIn 0.083s linear;
-webkit-app-region: no-drag;
}
.context-view.monaco-menu-container :focus,
.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,
.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {
outline: 0;
}
.hc-black .context-view.monaco-menu-container,
.hc-light .context-view.monaco-menu-container,
:host-context(.hc-black) .context-view.monaco-menu-container,
:host-context(.hc-light) .context-view.monaco-menu-container {
box-shadow: none;
}
.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,
.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,
:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,
:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {
background: none;
}
/* Vertical Action Bar Styles */
.monaco-menu .monaco-action-bar.vertical {
padding: 4px 0;
}
.monaco-menu .monaco-action-bar.vertical .action-menu-item {
height: 2em;
}
.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),
.monaco-menu .monaco-action-bar.vertical .keybinding {
font-size: inherit;
padding: 0 2em;
}
.monaco-menu .monaco-action-bar.vertical .menu-item-check {
font-size: inherit;
width: 2em;
}
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
font-size: inherit;
margin: 5px 0 !important;
padding: 0;
border-radius: 0;
}
.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,
:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {
margin-left: 0;
margin-right: 0;
}
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
font-size: 60%;
padding: 0 1.8em;
}
.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,
:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
height: 100%;
mask-size: 10px 10px;
-webkit-mask-size: 10px 10px;
}
.monaco-menu .action-item {
cursor: default;
}`;if(o){_+=`
/* Arrows */
.monaco-scrollable-element > .scrollbar > .scra {
cursor: pointer;
font-size: 11px !important;
}
.monaco-scrollable-element > .visible {
opacity: 1;
/* Background rule added for IE9 - to allow clicks on dom node */
background:rgba(0,0,0,0);
transition: opacity 100ms linear;
}
.monaco-scrollable-element > .invisible {
opacity: 0;
pointer-events: none;
}
.monaco-scrollable-element > .invisible.fade {
transition: opacity 800ms linear;
}
/* Scrollable Content Inset Shadow */
.monaco-scrollable-element > .shadow {
position: absolute;
display: none;
}
.monaco-scrollable-element > .shadow.top {
display: block;
top: 0;
left: 3px;
height: 3px;
width: 100%;
}
.monaco-scrollable-element > .shadow.left {
display: block;
top: 3px;
left: 0;
height: 100%;
width: 3px;
}
.monaco-scrollable-element > .shadow.top-left-corner {
display: block;
top: 0;
left: 0;
height: 3px;
width: 3px;
}
`;const N=Ie.scrollbarShadow;N&&(_+=`
.monaco-scrollable-element > .shadow.top {
box-shadow: ${N} 0 6px 6px -6px inset;
}
.monaco-scrollable-element > .shadow.left {
box-shadow: ${N} 6px 0 6px -6px inset;
}
.monaco-scrollable-element > .shadow.top.left {
box-shadow: ${N} 6px 6px 6px -6px inset;
}
`);const se=Ie.scrollbarSliderBackground;se&&(_+=`
.monaco-scrollable-element > .scrollbar > .slider {
background: ${se};
}
`);const ue=Ie.scrollbarSliderHoverBackground;ue&&(_+=`
.monaco-scrollable-element > .scrollbar > .slider:hover {
background: ${ue};
}
`);const Ee=Ie.scrollbarSliderActiveBackground;Ee&&(_+=`
.monaco-scrollable-element > .scrollbar > .slider.active {
background: ${Ee};
}
`)}return _}var ns=e("./node_modules/monaco-editor/esm/vs/platform/theme/browser/defaultStyles.js");class Xr{constructor(o,_,N,se){this.contextViewService=o,this.telemetryService=_,this.notificationService=N,this.keybindingService=se,this.focusToReturn=null,this.lastContainer=null,this.block=null,this.blockDisposable=null,this.options={blockMouse:!0}}configure(o){this.options=o}showContextMenu(o){const _=o.getActions();if(!_.length)return;this.focusToReturn=(0,je.bq)();let N;const se=o.domForShadowRoot instanceof HTMLElement?o.domForShadowRoot:void 0;this.contextViewService.showContextView({getAnchor:()=>o.getAnchor(),canRelayout:!1,anchorAlignment:o.anchorAlignment,anchorAxisAlignment:o.anchorAxisAlignment,render:ue=>{var Ee;this.lastContainer=ue;const Oe=o.getMenuClassName?o.getMenuClassName():"";Oe&&(ue.className+=" "+Oe),this.options.blockMouse&&(this.block=ue.appendChild((0,je.$)(".context-view-block")),this.block.style.position="fixed",this.block.style.cursor="initial",this.block.style.left="0",this.block.style.top="0",this.block.style.width="100%",this.block.style.height="100%",this.block.style.zIndex="-1",(Ee=this.blockDisposable)===null||Ee===void 0||Ee.dispose(),this.blockDisposable=(0,je.ko)(this.block,je.Bx.MOUSE_DOWN,nn=>nn.stopPropagation()));const ot=new we.Cm,_t=o.actionRunner||new Ho.LN;_t.onWillRun(nn=>this.onActionRun(nn,!o.skipTelemetry),this,ot),_t.onDidRun(this.onDidActionRun,this,ot),N=new Jo(ue,_,{actionViewItemProvider:o.getActionViewItem,context:o.getActionsContext?o.getActionsContext():null,actionRunner:_t,getKeyBinding:o.getKeyBinding?o.getKeyBinding:nn=>this.keybindingService.lookupKeybinding(nn.id)},ns.XS),N.onDidCancel(()=>this.contextViewService.hideContextView(!0),null,ot),N.onDidBlur(()=>this.contextViewService.hideContextView(!0),null,ot);const Ot=(0,je.zk)(ue);return ot.add((0,je.ko)(Ot,je.Bx.BLUR,()=>this.contextViewService.hideContextView(!0))),ot.add((0,je.ko)(Ot,je.Bx.MOUSE_DOWN,nn=>{if(nn.defaultPrevented)return;const fn=new Qr.P(Ot,nn);let wn=fn.target;if(!fn.rightButton){for(;wn;){if(wn===ue)return;wn=wn.parentElement}this.contextViewService.hideContextView(!0)}})),(0,we.qE)(ot,N)},focus:()=>{N?.focus(!!o.autoSelectFirstItem)},onHide:ue=>{var Ee,Oe,ot;(Ee=o.onHide)===null||Ee===void 0||Ee.call(o,!!ue),this.block&&(this.block.remove(),this.block=null),(Oe=this.blockDisposable)===null||Oe===void 0||Oe.dispose(),this.blockDisposable=null,this.lastContainer&&((0,je.bq)()===this.lastContainer||(0,je.QX)((0,je.bq)(),this.lastContainer))&&((ot=this.focusToReturn)===null||ot===void 0||ot.focus()),this.lastContainer=null}},se,!!se)}onActionRun(o,_){_&&this.telemetryService.publicLog2("workbenchActionExecuted",{id:o.action.id,from:"contextMenu"}),this.contextViewService.hideContextView(!1)}onDidActionRun(o){o.error&&!(0,Jn.MB)(o.error)&&this.notificationService.error(o.error)}}var Jr=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Ss=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Dr=class extends we.jG{get contextMenuHandler(){return this._contextMenuHandler||(this._contextMenuHandler=new Xr(this.contextViewService,this.telemetryService,this.notificationService,this.keybindingService)),this._contextMenuHandler}constructor(o,_,N,se,ue,Ee){super(),this.telemetryService=o,this.notificationService=_,this.contextViewService=N,this.keybindingService=se,this.menuService=ue,this.contextKeyService=Ee,this._contextMenuHandler=void 0,this._onDidShowContextMenu=this._store.add(new Ft.vl),this.onDidShowContextMenu=this._onDidShowContextMenu.event,this._onDidHideContextMenu=this._store.add(new Ft.vl)}configure(o){this.contextMenuHandler.configure(o)}showContextMenu(o){o=Lr.transform(o,this.menuService,this.contextKeyService),this.contextMenuHandler.showContextMenu({...o,onHide:_=>{var N;(N=o.onHi
`?Oe=2:ot===`
`&&(Oe=1);let _t=Ds.R.trimAutoWhitespace;o.editor&&typeof o.editor.trimAutoWhitespace<"u"&&(_t=o.editor.trimAutoWhitespace==="false"?!1:!!o.editor.trimAutoWhitespace);let Ot=Ds.R.detectIndentation;o.editor&&typeof o.editor.detectIndentation<"u"&&(Ot=o.editor.detectIndentation==="false"?!1:!!o.editor.detectIndentation);let nn=Ds.R.largeFileOptimizations;o.editor&&typeof o.editor.largeFileOptimizations<"u"&&(nn=o.editor.largeFileOptimizations==="false"?!1:!!o.editor.largeFileOptimizations);let fn=Ds.R.bracketPairColorizationOptions;return!((N=o.editor)===null||N===void 0)&&N.bracketPairColorization&&typeof o.editor.bracketPairColorization=="object"&&(fn={enabled:!!o.editor.bracketPairColorization.enabled,independentColorPoolPerBracketType:!!o.editor.bracketPairColorization.independentColorPoolPerBracketType}),{isForSimpleWidget:_,tabSize:se,indentSize:ue,insertSpaces:Ee,detectIndentation:Ot,defaultEOL:Oe,trimAutoWhitespace:_t,largeFileOptimizations:nn,bracketPairColorizationOptions:fn}}_getEOL(o,_){if(o)return this._resourcePropertiesService.getEOL(o,_);const N=this._configurationService.getValue("files.eol",{overrideIdentifier:_});return N&&typeof N=="string"&&N!=="auto"?N:hi.OS===3||hi.OS===2?`
`:`\r
`}_shouldRestoreUndoStack(){const o=this._configurationService.getValue("files.restoreUndoStack");return typeof o=="boolean"?o:!0}getCreationOptions(o,_,N){const se=typeof o=="string"?o:o.languageId;let ue=this._modelCreationOptionsByLanguageAndResource[se+_];if(!ue){const Ee=this._configurationService.getValue("editor",{overrideIdentifier:se,resource:_}),Oe=this._getEOL(_,se);ue=Ls._readModelOptions({editor:Ee,eol:Oe},N),this._modelCreationOptionsByLanguageAndResource[se+_]=ue}return ue}_updateModelOptions(o){const _=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);const N=Object.keys(this._models);for(let se=0,ue=N.length;se<ue;se++){const Ee=N[se],Oe=this._models[Ee],ot=Oe.model.getLanguageId(),_t=Oe.model.uri;if(o&&!o.affectsConfiguration("editor",{overrideIdentifier:ot,resource:_t})&&!o.affectsConfiguration("files.eol",{overrideIdentifier:ot,resource:_t}))continue;const Ot=_[ot+_t],nn=this.getCreationOptions(ot,_t,Oe.model.isForSimpleWidget);Ls._setModelOptionsForModel(Oe.model,nn,Ot)}}static _setModelOptionsForModel(o,_,N){N&&N.defaultEOL!==_.defaultEOL&&o.getLineCount()===1&&o.setEOL(_.defaultEOL===1?0:1),!(N&&N.detectIndentation===_.detectIndentation&&N.insertSpaces===_.insertSpaces&&N.tabSize===_.tabSize&&N.indentSize===_.indentSize&&N.trimAutoWhitespace===_.trimAutoWhitespace&&(0,qt.aI)(N.bracketPairColorizationOptions,_.bracketPairColorizationOptions))&&(_.detectIndentation?(o.detectIndentation(_.insertSpaces,_.tabSize),o.updateOptions({trimAutoWhitespace:_.trimAutoWhitespace,bracketColorizationOptions:_.bracketPairColorizationOptions})):o.updateOptions({insertSpaces:_.insertSpaces,tabSize:_.tabSize,indentSize:_.indentSize,trimAutoWhitespace:_.trimAutoWhitespace,bracketColorizationOptions:_.bracketPairColorizationOptions}))}_insertDisposedModel(o){this._disposedModels.set(us(o.uri),o),this._disposedModelsHeapSize+=o.heapSize}_removeDisposedModel(o){const _=this._disposedModels.get(us(o));return _&&(this._disposedModelsHeapSize-=_.heapSize),this._disposedModels.delete(us(o)),_}_ensureDisposedModelsHeapSize(o){if(this._disposedModelsHeapSize>o){const _=[];for(this._disposedModels.forEach(N=>{N.sharesUndoRedoStack||_.push(N)}),_.sort((N,se)=>N.time-se.time);_.length>0&&this._disposedModelsHeapSize>o;){const N=_.shift();this._removeDisposedModel(N.uri),N.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(N.initialUndoRedoSnapshot)}}}_createModelData(o,_,N,se){const ue=this.getCreationOptions(_,N,se),Ee=new or.Bz(o,_,ue,N,this._undoRedoService,this._languageService,this._languageConfigurationService);if(N&&this._disposedModels.has(us(N))){const _t=this._removeDisposedModel(N),Ot=this._undoRedoService.getElements(N),nn=this._getSHA1Computer(),fn=nn.canComputeSHA1(Ee)?nn.computeSHA1(Ee)===_t.sha1:!1;if(fn||_t.sharesUndoRedoStack){for(const wn of Ot.past)(0,cs.Th)(wn)&&wn.matchesResource(N)&&wn.setModel(Ee);for(const wn of Ot.future)(0,cs.Th)(wn)&&wn.matchesResource(N)&&wn.setModel(Ee);this._undoRedoService.setElementsValidFlag(N,!0,wn=>(0,cs.Th)(wn)&&wn.matchesResource(N)),fn&&(Ee._overwriteVersionId(_t.versionId),Ee._overwriteAlternativeVersionId(_t.alternativeVersionId),Ee._overwriteInitialUndoRedoSnapshot(_t.initialUndoRedoSnapshot))}else _t.initialUndoRedoSnapshot!==null&&this._undoRedoService.restoreSnapshot(_t.initialUndoRedoSnapshot)}const Oe=us(Ee.uri);if(this._models[Oe])throw new Error("ModelService: Cannot add model because it already exists!");const ot=new Ia(Ee,_t=>this._onWillDispose(_t),(_t,Ot)=>this._onDidChangeLanguage(_t,Ot));return this._models[Oe]=ot,ot}createModel(o,_,N,se=!1){let ue;return _?ue=this._createModelData(o,_,N,se):ue=this._createModelData(o,_n.vH,N,se),this._onModelAdded.fire(ue.model),ue.model}getModels(){const o=[],_=Object.keys(this._models);for(let N=0,se=_.length;N<se;N++){const ue=_[N];o.push(this._models[ue].model)}return o}getModel(o){const _=us(o),N=this._models[_];return N?N.model:null}_schemaShouldMaintainUndoRedoElements(o){return o.scheme===Rt.ny.file||o.scheme===Rt.ny.vscodeRemote||o.
`);return{persistence:{hideOnKeyDown:!1},appearance:{showHoverHint:N,skipFadeInAnimation:!0}}}};Ra=cd([fl(0,mt.pG),fl(1,$t.TN)],Ra);var Oa=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/button/button.js"),pl=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/countBadge/countBadge.js");const _l="done",vl="active",Aa="infinite",Na="infinite-long-running",bl="discrete";class oa extends we.jG{constructor(o,_){super(),this.workedVal=0,this.showDelayedScheduler=this._register(new Co.uC(()=>(0,je.WU)(this.element),0)),this.longRunningScheduler=this._register(new Co.uC(()=>this.infiniteLongRunning(),oa.LONG_RUNNING_INFINITE_THRESHOLD)),this.create(o,_)}create(o,_){this.element=document.createElement("div"),this.element.classList.add("monaco-progress-container"),this.element.setAttribute("role","progressbar"),this.element.setAttribute("aria-valuemin","0"),o.appendChild(this.element),this.bit=document.createElement("div"),this.bit.classList.add("progress-bit"),this.bit.style.backgroundColor=_?.progressBarBackground||"#0E70C0",this.element.appendChild(this.bit)}off(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.classList.remove(vl,Aa,Na,bl),this.workedVal=0,this.totalWork=void 0,this.longRunningScheduler.cancel()}stop(){return this.doDone(!1)}doDone(o){return this.element.classList.add(_l),this.element.classList.contains(Aa)?(this.bit.style.opacity="0",o?setTimeout(()=>this.off(),200):this.off()):(this.bit.style.width="inherit",o?setTimeout(()=>this.off(),200):this.off()),this}infinite(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.classList.remove(bl,_l,Na),this.element.classList.add(vl,Aa),this.longRunningScheduler.schedule(),this}infiniteLongRunning(){this.element.classList.add(Na)}getContainer(){return this.element}}oa.LONG_RUNNING_INFINITE_THRESHOLD=1e4;var hd=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/findinput/findInput.js");const md=je.$;class gd extends we.jG{constructor(o,_,N){super(),this.parent=o,this.onKeyDown=ue=>je.b2(this.findInput.inputBox.inputElement,je.Bx.KEY_DOWN,ue),this.onDidChange=ue=>this.findInput.onDidChange(ue),this.container=je.BC(this.parent,md(".quick-input-box")),this.findInput=this._register(new hd.c(this.container,void 0,{label:"",inputBoxStyles:_,toggleStyles:N}));const se=this.findInput.inputBox.inputElement;se.role="combobox",se.ariaHasPopup="menu",se.ariaAutoComplete="list",se.ariaExpanded="true"}get value(){return this.findInput.getValue()}set value(o){this.findInput.setValue(o)}select(o=null){this.findInput.inputBox.select(o)}getSelection(){return this.findInput.inputBox.getSelection()}isSelectionAtEnd(){return this.findInput.inputBox.isSelectionAtEnd()}get placeholder(){return this.findInput.inputBox.inputElement.getAttribute("placeholder")||""}set placeholder(o){this.findInput.inputBox.setPlaceHolder(o)}get password(){return this.findInput.inputBox.inputElement.type==="password"}set password(o){this.findInput.inputBox.inputElement.type=o?"password":"text"}set enabled(o){this.findInput.inputBox.inputElement.toggleAttribute("readonly",!o)}set toggles(o){this.findInput.setAdditionalToggles(o)}setAttribute(o,_){this.findInput.inputBox.inputElement.setAttribute(o,_)}showDecoration(o){o===Un.A.Ignore?this.findInput.clearMessage():this.findInput.showMessage({type:o===Un.A.Info?1:o===Un.A.Warning?2:3,content:""})}stylesForType(o){return this.findInput.inputBox.stylesForType(o===Un.A.Info?1:o===Un.A.Warning?2:3)}setFocus(){this.findInput.focus()}layout(){this.findInput.inputBox.layout()}}var fd=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Cl=function(Ie,o){return function(_,N){o(_,N,Ie)}},ja;const Oo=je.$;let sa=ja=class extends we.jG{get container(){return this._container}constructor(o,_,N){super(),this.options=o,this.la
`);Oe!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=Oe)}}};sa.MAX_WIDTH=600,sa=ja=fd([Cl(1,On),Cl(2,Dn._Y)],sa);var pd=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Fr=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Fa=class extends vn.lR{get controller(){return this._controller||(this._controller=this._register(this.createController())),this._controller}get hasController(){return!!this._controller}get quickAccess(){return this._quickAccess||(this._quickAccess=this._register(this.instantiationService.createInstance(l))),this._quickAccess}constructor(o,_,N,se,ue){super(N),this.instantiationService=o,this.contextKeyService=_,this.layoutService=se,this.configurationService=ue,this._onShow=this._register(new Ft.vl),this._onHide=this._register(new Ft.vl),this.contexts=new Map}createController(o=this.layoutService,_){const N={idPrefix:"quickInput_",container:o.activeContainer,ignoreFocusOut:()=>!1,backKeybindingLabel:()=>{},setContextKey:ue=>this.setContextKey(ue),linkOpenerDelegate:ue=>{this.instantiationService.invokeFunction(Ee=>{Ee.get(Pn.C).open(ue,{allowCommands:!0,fromUserGesture:!0})})},returnFocus:()=>o.focus(),styles:this.computeStyles(),hoverDelegate:this._register(this.instantiationService.createInstance(Ra))},se=this._register(this.instantiationService.createInstance(sa,{...N,..._}));return se.layout(o.activeContainerDimension,o.activeContainerOffset.quickPickTop),this._register(o.onDidLayoutActiveContainer(ue=>{(0,je.zk)(o.activeContainer)===(0,je.zk)(se.container)&&se.layout(ue,o.activeContainerOffset.quickPickTop)})),this._register(o.onDidChangeActiveContainer(()=>{se.isVisible()||se.layout(o.activeContainerDimension,o.activeContainerOffset.quickPickTop)})),this._register(se.onShow(()=>{this.resetContextKeys(),this._onShow.fire()})),this._register(se.onHide(()=>{this.resetContextKeys(),this._onHide.fire()})),se}setContextKey(o){let _;o&&(_=this.contexts.get(o),_||(_=new en.N1(o,!1).bindTo(this.contextKeyService),this.contexts.set(o,_))),!(_&&_.get())&&(this.resetContextKeys(),_?.set(!0))}resetContextKeys(){this.contexts.forEach(o=>{o.get()&&o.reset()})}pick(o,_={},N=Fo.X.None){return this.controller.pick(o,_,N)}createQuickPick(){return this.controller.createQuickPick()}createInputBox(){return this.controller.createInputBox()}updateStyles(){this.hasController&&this.controller.applyStyles(this.computeStyles())}computeStyles(){return{widget:{quickInputBackground:(0,Xt.GuP)(Xt.ELA),quickInputForeground:(0,Xt.GuP)(Xt.HJZ),quickInputTitleBackground:(0,Xt.GuP)(Xt.er1),widgetBorder:(0,Xt.GuP)(Xt.DSL),widgetShadow:(0,Xt.GuP)(Xt.f9l)},inputBox:ns.ho,toggle:ns.mk,countBadge:ns.m$,button:ns.cv,progressBar:ns.oJ,keybindingLabel:ns.ir,list:(0,ns.t8)({listBackground:Xt.ELA,listFocusBackground:Xt.AlL,listFocusForeground:Xt.nH,listInactiveFocusForeground:Xt.nH,listInactiveSelectionIconForeground:Xt.c7i,listInactiveFocusBackground:Xt.AlL,listFocusOutline:Xt.buw,listInactiveFocusOutline:Xt.buw}),pickerGroup:{pickerGroupBorder:(0,Xt.GuP)(Xt.iwL),pickerGroupForeground:(0,Xt.GuP)(Xt.NBf)}}}};Fa=pd([Fr(0,Dn._Y),Fr(1,en.fN),Fr(2,vn.Gy),Fr(3,On),Fr(4,mt.pG)],Fa);var _d=e("./node_modules/monaco-editor/esm/vs/base/common/functional.js"),yl=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Ie,o,_,N);else for(var Oe=Ie.length-1;Oe>=0;Oe--)(Ee=Ie[Oe])&&(ue=(se<3?Ee(ue):se>3?Ee(o,_,ue):Ee(o,_))||ue);return se>3&&ue&&Object.defineProperty(o,_,ue),ue},Hs=function(Ie,o){return function(_,N){o(_,N,Ie)}};let Ba=class extends Fa{constructor(o,_,N,se,ue,Ee){super(_,N,se,new ti(o.getContainerDomNode(),ue),Ee),this.host=void 0;const Oe=rr.get(o);if(Oe){const ot=Oe.widget;this.host={_servi
(-> incoming)[${[...N.incoming.keys()].join(", ")}]
(outgoing ->)[${[...N.outgoing.keys()].join(",")}]
`);return o.join(`
`)}findCycleSlow(){for(const[o,_]of this._nodes){const N=new Set([o]),se=this._findCycle(_,N);if(se)return se}}_findCycle(o,_){for(const[N,se]of o.outgoing){if(_.has(N))return[..._,N].join(" -> ");_.add(N);const ue=this._findCycle(se,_);if(ue)return ue;_.delete(N)}}}var Ya=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/serviceCollection.js");const Rd=!1;class kl extends Error{constructor(o){var _;super("cyclic dependency between services"),this.message=(_=o.findCycleSlow())!==null&&_!==void 0?_:`UNABLE to detect cycle, dumping graph:
${o.toString()}`}}class ua{constructor(o=new Ya.a,_=!1,N,se=Rd){var ue;this._services=o,this._strict=_,this._parent=N,this._enableTracing=se,this._activeInstantiations=new Set,this._services.set(Dn._Y,this),this._globalGraph=se?(ue=N?._globalGraph)!==null&&ue!==void 0?ue:new xl(Ee=>Ee):void 0}createChild(o){return new ua(o,this._strict,this,this._enableTracing)}invokeFunction(o,..._){const N=Ro.traceInvocation(this._enableTracing,o);let se=!1;try{return o({get:Ee=>{if(se)throw(0,Jn.iH)("service accessor is only valid during the invocation of its target method");const Oe=this._getOrCreateServiceInstance(Ee,N);if(!Oe)throw new Error(`[invokeFunction] unknown service '${Ee}'`);return Oe}},..._)}finally{se=!0,N.stop()}}createInstance(o,..._){let N,se;return o instanceof ks.d?(N=Ro.traceCreation(this._enableTracing,o.ctor),se=this._createInstance(o.ctor,o.staticArguments.concat(_),N)):(N=Ro.traceCreation(this._enableTracing,o),se=this._createInstance(o,_,N)),N.stop(),se}_createInstance(o,_=[],N){const se=Dn._$.getServiceDependencies(o).sort((Oe,ot)=>Oe.index-ot.index),ue=[];for(const Oe of se){const ot=this._getOrCreateServiceInstance(Oe.id,N);ot||this._throwIfStrict(`[createInstance] ${o.name} depends on UNKNOWN service ${Oe.id}.`,!1),ue.push(ot)}const Ee=se.length>0?se[0].index:_.length;if(_.length!==Ee){console.trace(`[createInstance] First service dependency of ${o.name} at position ${Ee+1} conflicts with ${_.length} static arguments`);const Oe=Ee-_.length;Oe>0?_=_.concat(new Array(Oe)):_=_.slice(0,Ee)}return Reflect.construct(o,_.concat(ue))}_setServiceInstance(o,_){if(this._services.get(o)instanceof ks.d)this._services.set(o,_);else if(this._parent)this._parent._setServiceInstance(o,_);else throw new Error("illegalState - setting UNKNOWN service instance")}_getServiceInstanceOrDescriptor(o){const _=this._services.get(o);return!_&&this._parent?this._parent._getServiceInstanceOrDescriptor(o):_}_getOrCreateServiceInstance(o,_){this._globalGraph&&this._globalGraphImplicitDependency&&this._globalGraph.insertEdge(this._globalGraphImplicitDependency,String(o));const N=this._getServiceInstanceOrDescriptor(o);return N instanceof ks.d?this._safeCreateAndCacheServiceInstance(o,N,_.branch(o,!0)):(_.branch(o,!1),N)}_safeCreateAndCacheServiceInstance(o,_,N){if(this._activeInstantiations.has(o))throw new Error(`illegal state - RECURSIVELY instantiating service '${o}'`);this._activeInstantiations.add(o);try{return this._createAndCacheServiceInstance(o,_,N)}finally{this._activeInstantiations.delete(o)}}_createAndCacheServiceInstance(o,_,N){var se;const ue=new xl(ot=>ot.id.toString());let Ee=0;const Oe=[{id:o,desc:_,_trace:N}];for(;Oe.length;){const ot=Oe.pop();if(ue.lookupOrInsertNode(ot),Ee++>1e3)throw new kl(ue);for(const _t of Dn._$.getServiceDependencies(ot.desc.ctor)){const Ot=this._getServiceInstanceOrDescriptor(_t.id);if(Ot||this._throwIfStrict(`[createInstance] ${o} depends on ${_t.id} which is NOT registered.`,!0),(se=this._globalGraph)===null||se===void 0||se.insertEdge(String(ot.id),String(_t.id)),Ot instanceof ks.d){const nn={id:_t.id,desc:Ot,_trace:ot._trace.branch(_t.id,!0)};ue.insertEdge(ot,nn),Oe.push(nn)}}}for(;;){const ot=ue.roots();if(ot.length===0){if(!ue.isEmpty())throw new kl(ue);break}for(const{data:_t}of ot){if(this._getServiceInstanceOrDescriptor(_t.id)instanceof ks.d){const nn=this._createServiceInstanceWithOwner(_t.id,_t.desc.ctor,_t.desc.staticArguments,_t.desc.supportsDelayedInstantiation,_t._trace);this._setServiceInstance(_t.id,nn)}ue.removeNode(_t)}}return this._getServiceInstanceOrDescriptor(o)}_createServiceInstanceWithOwner(o,_,N=[],se,ue){if(this._services.get(o)instanceof ks.d)return this._createServiceInstance(o,_,N,se,ue);if(this._parent)return this._parent._createServiceInstanceWithOwner(o,_,N,se,ue);throw new Error(`illegalState - creating UNKNOWN service instance ${_.name}`)}_createServiceInstance(o,_,N=[],se,ue){if(se){const Ee=new ua(void 0,this._strict,this,this._enableTracing);Ee._globalGraphImplicitDependency=String(o);const Oe=new Map,ot=new Co.F6(()=>{const _t=Ee._createInstance(_,N,ue);
`).slice(3,4).join(`
`)):Ro._None}static traceCreation(o,_){return o?new Ro(1,_.name):Ro._None}constructor(o,_){this.type=o,this.name=_,this._start=Date.now(),this._dep=[]}branch(o,_){const N=new Ro(3,o.toString());return this._dep.push([o,_,N]),N}stop(){const o=Date.now()-this._start;Ro._totals+=o;let _=!1;function N(ue,Ee){const Oe=[],ot=new Array(ue+1).join(" ");for(const[_t,Ot,nn]of Ee._dep)if(Ot&&nn){_=!0,Oe.push(`${ot}CREATES -> ${_t}`);const fn=N(ue+1,nn);fn&&Oe.push(fn)}else Oe.push(`${ot}uses -> ${_t}`);return Oe.join(`
`)}const se=[`${this.type===1?"CREATE":"CALL"} ${this.name}`,`${N(1,this)}`,`DONE, took ${o.toFixed(2)}ms (grand total ${Ro._totals.toFixed(2)}ms)`];(o>2||_)&&Ro.all.add(se.join(`
`))}}Ro.all=new Set,Ro._None=new class extends Ro{constructor(){super(0,null)}stop(){}branch(){return this}},Ro._totals=0;const Od=new Set([Rt.ny.inMemory,Rt.ny.vscodeSourceControl,Rt.ny.walkThrough,Rt.ny.walkThroughSnippet,Rt.ny.vscodeChatCodeBlock]);class Ad{constructor(){this._byResource=new Eo.fT,this._byOwner=new Map}set(o,_,N){let se=this._byResource.get(o);se||(se=new Map,this._byResource.set(o,se)),se.set(_,N);let ue=this._byOwner.get(_);ue||(ue=new Eo.fT,this._byOwner.set(_,ue)),ue.set(o,N)}get(o,_){const N=this._byResource.get(o);return N?.get(_)}delete(o,_){let N=!1,se=!1;const ue=this._byResource.get(o);ue&&(N=ue.delete(_));const Ee=this._byOwner.get(_);if(Ee&&(se=Ee.delete(o)),N!==se)throw new Error("illegal state");return N&&se}values(o){var _,N,se,ue;return typeof o=="string"?(N=(_=this._byOwner.get(o))===null||_===void 0?void 0:_.values())!==null&&N!==void 0?N:lr.f.empty():lt.r.isUri(o)?(ue=(se=this._byResource.get(o))===null||se===void 0?void 0:se.values())!==null&&ue!==void 0?ue:lr.f.empty():lr.f.map(lr.f.concat(...this._byOwner.values()),Ee=>Ee[1])}}class Nd{constructor(o){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=new Eo.fT,this._service=o,this._subscription=o.onMarkerChanged(this._update,this)}dispose(){this._subscription.dispose()}_update(o){for(const _ of o){const N=this._data.get(_);N&&this._substract(N);const se=this._resourceStats(_);this._add(se),this._data.set(_,se)}}_resourceStats(o){const _={errors:0,warnings:0,infos:0,unknowns:0};if(Od.has(o.scheme))return _;for(const{severity:N}of this._service.read({resource:o}))N===Do.cj.Error?_.errors+=1:N===Do.cj.Warning?_.warnings+=1:N===Do.cj.Info?_.infos+=1:_.unknowns+=1;return _}_substract(o){this.errors-=o.errors,this.warnings-=o.warnings,this.infos-=o.infos,this.unknowns-=o.unknowns}_add(o){this.errors+=o.errors,this.warnings+=o.warnings,this.infos+=o.infos,this.unknowns+=o.unknowns}}class Is{constructor(){this._onMarkerChanged=new Ft.uI({delay:0,merge:Is._merge}),this.onMarkerChanged=this._onMarkerChanged.event,this._data=new Ad,this._stats=new Nd(this)}dispose(){this._stats.dispose(),this._onMarkerChanged.dispose()}remove(o,_){for(const N of _||[])this.changeOne(o,N,[])}changeOne(o,_,N){if((0,hn.Ct)(N))this._data.delete(_,o)&&this._onMarkerChanged.fire([_]);else{const se=[];for(const ue of N){const Ee=Is._toMarker(o,_,ue);Ee&&se.push(Ee)}this._data.set(_,o,se),this._onMarkerChanged.fire([_])}}static _toMarker(o,_,N){let{code:se,severity:ue,message:Ee,source:Oe,startLineNumber:ot,startColumn:_t,endLineNumber:Ot,endColumn:nn,relatedInformation:fn,tags:wn}=N;if(Ee)return ot=ot>0?ot:1,_t=_t>0?_t:1,Ot=Ot>=ot?Ot:ot,nn=nn>0?nn:_t,{resource:_,owner:o,code:se,severity:ue,message:Ee,source:Oe,startLineNumber:ot,startColumn:_t,endLineNumber:Ot,endColumn:nn,relatedInformation:fn,tags:wn}}changeAll(o,_){const N=[],se=this._data.values(o);if(se)for(const ue of se){const Ee=lr.f.first(ue);Ee&&(N.push(Ee.resource),this._data.delete(Ee.resource,o))}if((0,hn.EI)(_)){const ue=new Eo.fT;for(const{resource:Ee,marker:Oe}of _){const ot=Is._toMarker(o,Ee,Oe);if(!ot)continue;const _t=ue.get(Ee);_t?_t.push(ot):(ue.set(Ee,[ot]),N.push(Ee))}for(const[Ee,Oe]of ue)this._data.set(Ee,o,Oe)}N.length>0&&this._onMarkerChanged.fire(N)}read(o=Object.create(null)){let{owner:_,resource:N,severities:se,take:ue}=o;if((!ue||ue<0)&&(ue=-1),_&&N){const Ee=this._data.get(N,_);if(Ee){const Oe=[];for(const ot of Ee)if(Is._accept(ot,se)){const _t=Oe.push(ot);if(ue>0&&_t===ue)break}return Oe}else return[]}else if(!_&&!N){const Ee=[];for(const Oe of this._data.values())for(const ot of Oe)if(Is._accept(ot,se)){const _t=Ee.push(ot);if(ue>0&&_t===ue)return Ee}return Ee}else{const Ee=this._data.values(N??_),Oe=[];for(const ot of Ee)for(const _t of ot)if(Is._accept(_t,se)){const Ot=Oe.push(_t);if(ue>0&&Ot===ue)return Oe}return Oe}}static _accept(o,_){return _===void 0||(_&o.severity)===o.severity}static _merge(o){const _=new Eo.fT;for(const N of o)for(const se of N)_.set(se,!0);return Array.from(_.keys())}}class jd extends we.jG{constructor(){super(...arguments),this._co
`+_),We.G.confirm(N)}async prompt(o){var _,N;let se;if(this.doConfirm(o.message,o.detail)){const Ee=[...(_=o.buttons)!==null&&_!==void 0?_:[]];o.cancelButton&&typeof o.cancelButton!="string"&&typeof o.cancelButton!="boolean"&&Ee.push(o.cancelButton),se=await((N=Ee[0])===null||N===void 0?void 0:N.run({checkboxChecked:!1}))}return{result:se}}async error(o,_){await this.prompt({type:Un.A.Error,message:o,detail:_})}}class Hr{info(o){return this.notify({severity:Un.A.Info,message:o})}warn(o){return this.notify({severity:Un.A.Warning,message:o})}error(o){return this.notify({severity:Un.A.Error,message:o})}notify(o){switch(o.severity){case Un.A.Error:console.error(o.message);break;case Un.A.Warning:console.warn(o.message);break;default:console.log(o.message);break}return Hr.NO_OP}prompt(o,_,N,se){return Hr.NO_OP}status(o,_){return we.jG.None}}Hr.NO_OP=new $e.Kz;let Xa=class{constructor(o){this._onWillExecuteCommand=new Ft.vl,this._onDidExecuteCommand=new Ft.vl,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this._instantiationService=o}executeCommand(o,..._){const N=lo.w.getCommand(o);if(!N)return Promise.reject(new Error(`command '${o}' not found`));try{this._onWillExecuteCommand.fire({commandId:o,args:_});const se=this._instantiationService.invokeFunction.apply(this._instantiationService,[N.handler,..._]);return this._onDidExecuteCommand.fire({commandId:o,args:_}),Promise.resolve(se)}catch(se){return Promise.reject(se)}}};Xa=Ms([go(0,Dn._Y)],Xa);let cr=class extends mr{constructor(o,_,N,se,ue,Ee){super(o,_,N,se,ue),this._cachedResolver=null,this._dynamicKeybindings=[],this._domNodeListeners=[];const Oe=wn=>{const Xn=new we.Cm;Xn.add(je.ko(wn,je.Bx.KEY_DOWN,bi=>{const ki=new Xi.Z(bi);this._dispatch(ki,ki.target)&&(ki.preventDefault(),ki.stopPropagation())})),Xn.add(je.ko(wn,je.Bx.KEY_UP,bi=>{const ki=new Xi.Z(bi);this._singleModifierDispatch(ki,ki.target)&&ki.preventDefault()})),this._domNodeListeners.push(new Kd(wn,Xn))},ot=wn=>{for(let Xn=0;Xn<this._domNodeListeners.length;Xn++){const bi=this._domNodeListeners[Xn];bi.domNode===wn&&(this._domNodeListeners.splice(Xn,1),bi.dispose())}},_t=wn=>{wn.getOption(61)||Oe(wn.getContainerDomNode())},Ot=wn=>{wn.getOption(61)||ot(wn.getContainerDomNode())};this._register(Ee.onCodeEditorAdd(_t)),this._register(Ee.onCodeEditorRemove(Ot)),Ee.listCodeEditors().forEach(_t);const nn=wn=>{Oe(wn.getContainerDomNode())},fn=wn=>{ot(wn.getContainerDomNode())};this._register(Ee.onDiffEditorAdd(nn)),this._register(Ee.onDiffEditorRemove(fn)),Ee.listDiffEditors().forEach(nn)}addDynamicKeybinding(o,_,N,se){return(0,we.qE)(lo.w.registerCommand(o,N),this.addDynamicKeybindings([{keybinding:_,command:o,when:se}]))}addDynamicKeybindings(o){const _=o.map(N=>{var se;return{keybinding:(0,Vo.Zv)(N.keybinding,hi.OS),command:(se=N.command)!==null&&se!==void 0?se:null,commandArgs:N.commandArgs,when:N.when,weight1:1e3,weight2:0,extensionId:null,isBuiltinExtension:!1}});return this._dynamicKeybindings=this._dynamicKeybindings.concat(_),this.updateResolver(),(0,we.s)(()=>{for(let N=0;N<this._dynamicKeybindings.length;N++)if(this._dynamicKeybindings[N]===_[0]){this._dynamicKeybindings.splice(N,_.length),this.updateResolver();return}})}updateResolver(){this._cachedResolver=null,this._onDidUpdateKeybindings.fire()}_getResolver(){if(!this._cachedResolver){const o=this._toNormalizedKeybindingItems(gr.f.getDefaultKeybindings(),!0),_=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new es(o,_,N=>this._log(N))}return this._cachedResolver}_documentHasFocus(){return We.G.document.hasFocus()}_toNormalizedKeybindingItems(o,_){const N=[];let se=0;for(const ue of o){const Ee=ue.when||void 0,Oe=ue.keybinding;if(!Oe)N[se++]=new Xs(void 0,ue.command,ue.commandArgs,Ee,_,null,!1);else{const ot=Zo.resolveKeybinding(Oe,hi.OS);for(const _t of ot)N[se++]=new Xs(_t,ue.command,ue.commandArgs,Ee,_,null,!1)}}return N}resolveKeyboardEvent(o){const _=new Vo.dG(o.ctrlKey,o.shiftKey,o.altKey,o.metaKey,o.keyCode);return new Zo([_],hi.OS)}};cr=Ms([go(0,en.fN),go(1,lo.d),go(2,wi.k),go(3,$e.Ot),go(4,vi.rr),go
`:`\r
`}};qa=Ms([go(0,mt.pG)],qa);class Gd{publicLog2(){}}class Vr{constructor(){const o=lt.r.from({scheme:Vr.SCHEME,authority:"model",path:"/"});this.workspace={id:Pi.cn,folders:[new Pi.mX({uri:o,name:"",index:0})]}}getWorkspace(){return this.workspace}getWorkspaceFolder(o){return o&&o.scheme===Vr.SCHEME?this.workspace.folders[0]:null}}Vr.SCHEME="inmemory";function ma(Ie,o,_){if(!o||!(Ie instanceof Tl))return;const N=[];Object.keys(o).forEach(se=>{(0,Gs.vf)(se)&&N.push([`editor.${se}`,o[se]]),_&&(0,Gs.Gn)(se)&&N.push([`diffEditor.${se}`,o[se]])}),N.length>0&&Ie.updateValues(N)}let el=class{constructor(o){this._modelService=o}hasPreviewHandler(){return!1}async apply(o,_){const N=Array.isArray(o)?o:is.jN.convert(o),se=new Map;for(const Oe of N){if(!(Oe instanceof is.cw))throw new Error("bad edit - only text edits are supported");const ot=this._modelService.getModel(Oe.resource);if(!ot)throw new Error("bad edit - model not found");if(typeof Oe.versionId=="number"&&ot.getVersionId()!==Oe.versionId)throw new Error("bad state - model changed in the meantime");let _t=se.get(ot);_t||(_t=[],se.set(ot,_t)),_t.push(hr.k.replaceMove(Qo.Q.lift(Oe.textEdit.range),Oe.textEdit.text))}let ue=0,Ee=0;for(const[Oe,ot]of se)Oe.pushStackElement(),Oe.pushEditOperations([],ot,()=>[]),Oe.pushStackElement(),Ee+=1,ue+=ot.length;return{ariaSummary:Ue.GP(eo.tu.bulkEditServiceSummary,ue,Ee),isApplied:ue>0}}};el=Ms([go(0,Hn.S)],el);class $d{getUriLabel(o,_){return o.scheme==="file"?o.fsPath:o.path}getUriBasenameLabel(o){return(0,oo.P8)(o)}}let tl=class extends wo{constructor(o,_){super(o),this._codeEditorService=_}showContextView(o,_,N){if(!_){const se=this._codeEditorService.getFocusedCodeEditor()||this._codeEditorService.getActiveCodeEditor();se&&(_=se.getContainerDomNode())}return super.showContextView(o,_,N)}};tl=Ms([go(0,On),go(1,Zt.T)],tl);class Qd{constructor(){this._neverEmitter=new Ft.vl,this.onDidChangeTrust=this._neverEmitter.event}isWorkspaceTrusted(){return!0}}class Yd extends Xo{constructor(){super()}}class Zd extends Fd{constructor(){super(new vi.Cr)}}let nl=class extends Dr{constructor(o,_,N,se,ue,Ee){super(o,_,N,se,ue,Ee),this.configure({blockMouse:!1})}};nl=Ms([go(0,wi.k),go(1,$e.Ot),go(2,on.l),go(3,un.b),go(4,so.ez),go(5,en.fN)],nl);class Xd{async playSignal(o,_){}}(0,xe.v)(mt.pG,Tl,0),(0,xe.v)($s.U,Ja,0),(0,xe.v)($s.J,qa,0),(0,xe.v)(Pi.VR,Vr,0),(0,xe.v)(pr.L,$d,0),(0,xe.v)(wi.k,Gd,0),(0,xe.v)(cn.X,zd,0),(0,xe.v)(Wd.k,Ud,0),(0,xe.v)($e.Ot,Hr,0),(0,xe.v)(Do.DR,Is,0),(0,xe.v)(vt.L,Yd,0),(0,xe.v)(Ko.L,vd.Sx,0),(0,xe.v)(vi.rr,Zd,0),(0,xe.v)(Hn.S,Es,0),(0,xe.v)(ds.A,Pr,0),(0,xe.v)(en.fN,Qa,0),(0,xe.v)(ps.G5,Vd,0),(0,xe.v)(ps.N8,ha,0),(0,xe.v)(aa.CS,aa.pc,0),(0,xe.v)(ea.w,tt.Bc,0),(0,xe.v)(is.nu,el,0),(0,xe.v)(xo.L,Qd,0),(0,xe.v)(zi.b,Za,0),(0,xe.v)(ji.j,Va,0),(0,xe.v)(mn.PE,mn.aG,0),(0,xe.v)(lo.d,Xa,0),(0,xe.v)(un.b,cr,0),(0,xe.v)(Io.GK,Wa,0),(0,xe.v)(on.l,tl,0),(0,xe.v)(Pn.C,Ir,0),(0,xe.v)(wl.h,ca,0),(0,xe.v)(on.Z,nl,0),(0,xe.v)(so.ez,Ua,0),(0,xe.v)(Il.Nt,Xd,0);var di;(function(Ie){const o=new Ya.a;for(const[ot,_t]of(0,xe.N)())o.set(ot,_t);const _=new ua(o,!0);o.set(Dn._Y,_);function N(ot){se||Ee({});const _t=o.get(ot);if(!_t)throw new Error("Missing service "+ot);return _t instanceof ks.d?_.invokeFunction(Ot=>Ot.get(ot)):_t}Ie.get=N;let se=!1;const ue=new Ft.vl;function Ee(ot){if(se)return _;se=!0;for(const[Ot,nn]of(0,xe.N)())o.get(Ot)||o.set(Ot,nn);for(const Ot in ot)if(ot.hasOwnProperty(Ot)){const nn=(0,Dn.u1)(Ot);o.get(nn)instanceof ks.d&&o.set(nn,ot[Ot])}const _t=(0,Bd.T)();for(const Ot of _t)try{_.createInstance(Ot)}catch(nn){(0,Jn.dz)(nn)}return ue.fire(),_}Ie.initialize=Ee;function Oe(ot){if(se)return ot();const _t=new we.Cm,Ot=_t.add(ue.event(()=>{Ot.dispose(),_t.add(ot())}));return _t}Ie.withServices=Oe})(di||(di={}));var Pl=e("./node_modules/monaco-editor/esm/vs/editor/browser/widget/diffEditor/diffEditorWidget.js"),Jd=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js"),il=function(Ie,o,_,N){var se=arguments.length,ue=se<3?o:N===null?N=Object.getOwnPropertyDescriptor(o,_):N,Ee;if(typeof Reflect=
`);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._elem
hint: use the 'bracket' attribute if matching on equal brackets is required.`);if(typeof Oe.open=="string"&&typeof Oe.token=="string"&&typeof Oe.close=="string")ue.push({token:Oe.token+_.tokenPostfix,open:Ti(_,Oe.open),close:Ti(_,Oe.close)});else throw Yn(_,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return _.brackets=ue,_.noThrow=!0,_}function eu(Ie){_n.W6.registerLanguage(Ie)}function tu(){let Ie=[];return Ie=Ie.concat(_n.W6.getLanguages()),Ie}function nu(Ie){return di.get(vt.L).languageIdCodec.encodeLanguageId(Ie)}function iu(Ie,o){return di.withServices(()=>{const N=di.get(vt.L).onDidRequestRichLanguageFeatures(se=>{se===Ie&&(N.dispose(),o())});return N})}function ou(Ie,o){return di.withServices(()=>{const N=di.get(vt.L).onDidRequestBasicLanguageFeatures(se=>{se===Ie&&(N.dispose(),o())});return N})}function su(Ie,o){if(!di.get(vt.L).isRegisteredLanguageId(Ie))throw new Error(`Cannot set configuration for unknown language ${Ie}`);return di.get(Gt.JZ).register(Ie,o,100)}class ru{constructor(o,_){this._languageId=o,this._actual=_}dispose(){}getInitialState(){return this._actual.getInitialState()}tokenize(o,_,N){if(typeof this._actual.tokenize=="function")return Ur.adaptTokenize(this._languageId,this._actual,o,N);throw new Error("Not supported!")}tokenizeEncoded(o,_,N){const se=this._actual.tokenizeEncoded(o,N);return new Be.rY(se.tokens,se.endState)}}class Ur{constructor(o,_,N,se){this._languageId=o,this._actual=_,this._languageService=N,this._standaloneThemeService=se}dispose(){}getInitialState(){return this._actual.getInitialState()}static _toClassicTokens(o,_){const N=[];let se=0;for(let ue=0,Ee=o.length;ue<Ee;ue++){const Oe=o[ue];let ot=Oe.startIndex;ue===0?ot=0:ot<se&&(ot=se),N[ue]=new Be.ou(ot,Oe.scopes,_),se=ot}return N}static adaptTokenize(o,_,N,se){const ue=_.tokenize(N,se),Ee=Ur._toClassicTokens(ue.tokens,o);let Oe;return ue.endState.equals(se)?Oe=se:Oe=ue.endState,new Be.$M(Ee,Oe)}tokenize(o,_,N){return Ur.adaptTokenize(this._languageId,this._actual,o,N)}_toBinaryTokens(o,_){const N=o.encodeLanguageId(this._languageId),se=this._standaloneThemeService.getColorTheme().tokenTheme,ue=[];let Ee=0,Oe=0;for(let _t=0,Ot=_.length;_t<Ot;_t++){const nn=_[_t],fn=se.match(N,nn.scopes)|1024;if(Ee>0&&ue[Ee-1]===fn)continue;let wn=nn.startIndex;_t===0?wn=0:wn<Oe&&(wn=Oe),ue[Ee++]=wn,ue[Ee++]=fn,Oe=wn}const ot=new Uint32Array(Ee);for(let _t=0;_t<Ee;_t++)ot[_t]=ue[_t];return ot}tokenizeEncoded(o,_,N){const se=this._actual.tokenize(o,N),ue=this._toBinaryTokens(this._languageService.languageIdCodec,se.tokens);let Ee;return se.endState.equals(N)?Ee=N:Ee=se.endState,new Be.rY(ue,Ee)}}function au(Ie){return typeof Ie.getInitialState=="function"}function lu(Ie){return"tokenizeEncoded"in Ie}function Ul(Ie){return Ie&&typeof Ie.then=="function"}function du(Ie){const o=di.get(Ko.L);if(Ie){const _=[null];for(let N=1,se=Ie.length;N<se;N++)_[N]=Qc.Q1.fromHex(Ie[N]);o.setColorMapOverride(_)}else o.setColorMapOverride(null)}function zl(Ie,o){return lu(o)?new ru(Ie,o):new Ur(Ie,o,di.get(vt.L),di.get(Ko.L))}function ul(Ie,o){const _=new Be.v_(async()=>{const N=await Promise.resolve(o.create());return N?au(N)?zl(Ie,N):new Dt(di.get(vt.L),di.get(Ko.L),Ie,Vl(Ie,N),di.get(mt.pG)):null});return Be.dG.registerFactory(Ie,_)}function cu(Ie,o){if(!di.get(vt.L).isRegisteredLanguageId(Ie))throw new Error(`Cannot set tokens provider for unknown language ${Ie}`);return Ul(o)?ul(Ie,{create:()=>o}):Be.dG.register(Ie,zl(Ie,o))}function uu(Ie,o){const _=N=>new Dt(di.get(vt.L),di.get(Ko.L),Ie,Vl(Ie,N),di.get(mt.pG));return Ul(o)?ul(Ie,{create:()=>o}):Be.dG.register(Ie,_(o))}function hu(Ie,o){return di.get(Lt.u).referenceProvider.register(Ie,o)}function mu(Ie,o){return di.get(Lt.u).renameProvider.register(Ie,o)}function gu(Ie,o){return di.get(Lt.u).newSymbolNamesProvider.register(Ie,o)}function fu(Ie,o){return di.get(Lt.u).signatureHelpProvider.register(Ie,o)}function pu(Ie,o){return di.get(Lt.u).hoverProvider.register(Ie,{provideHover:(N,se,ue)=>{const Ee=N.getWordAtPosition(se);return Promise.resolve(o.provideHove
`+pn),mt&&(pn=m(pn,Hn," "),pn=m(pn,Kn," "),pn=m(pn,mi," ")),Jt&&St?Jt.createHTML(pn):pn},fe.setConfig=function(zt){Wt(zt),Ke=!0},fe.clearConfig=function(){en=null,Ke=!1},fe.isValidAttribute=function(zt,kt,an){en||Wt({});const dn=ei(zt),bn=ei(kt);return jt(dn,bn,an)},fe.addHook=function(zt,kt){typeof kt=="function"&&(An[zt]=An[zt]||[],s(An[zt],kt))},fe.removeHook=function(zt){if(An[zt])return a(An[zt])},fe.removeHooks=function(zt){An[zt]&&(An[zt]=[])},fe.removeAllHooks=function(){An={}},fe}var ee=_e(),De=null;const Te=ee.version,He=ee.isSupported,qe=ee.sanitize,Qe=ee.setConfig,q=ee.clearConfig,ye=ee.isValidAttribute,ge=ee.addHook,be=ee.removeHook,Se=ee.removeHooks,ae=ee.removeAllHooks},"./node_modules/monaco-editor/esm/vs/base/browser/event.js":function(pt,Me,e){e.d(Me,{f:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js");class F{get event(){return this.emitter.event}constructor(M,L,g){const x=I=>this.emitter.fire(I);this.emitter=new r.vl({onWillAddFirstListener:()=>M.addEventListener(L,x,g),onDidRemoveLastListener:()=>M.removeEventListener(L,x,g)})}dispose(){this.emitter.dispose()}}},"./node_modules/monaco-editor/esm/vs/base/browser/fastDomNode.js":function(pt,Me,e){e.d(Me,{D:function(){return r},Z:function(){return k}});class r{constructor(L){this.domNode=L,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(L){const g=F(L);this._maxWidth!==g&&(this._maxWidth=g,this.domNode.style.maxWidth=this._maxWidth)}setWidth(L){const g=F(L);this._width!==g&&(this._width=g,this.domNode.style.width=this._width)}setHeight(L){const g=F(L);this._height!==g&&(this._height=g,this.domNode.style.height=this._height)}setTop(L){const g=F(L);this._top!==g&&(this._top=g,this.domNode.style.top=this._top)}setLeft(L){const g=F(L);this._left!==g&&(this._left=g,this.domNode.style.left=this._left)}setBottom(L){const g=F(L);this._bottom!==g&&(this._bottom=g,this.domNode.style.bottom=this._bottom)}setRight(L){const g=F(L);this._right!==g&&(this._right=g,this.domNode.style.right=this._right)}setPaddingLeft(L){const g=F(L);this._paddingLeft!==g&&(this._paddingLeft=g,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(L){this._fontFamily!==L&&(this._fontFamily=L,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(L){this._fontWeight!==L&&(this._fontWeight=L,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(L){const g=F(L);this._fontSize!==g&&(this._fontSize=g,this.domNode.style.fontSize=this._fontSize)}setFontStyle(L){this._fontStyle!==L&&(this._fontStyle=L,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(L){this._fontFeatureSettings!==L&&(this._fontFeatureSettings=L,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(L){this._fontVariationSettings!==L&&(this._fontVariationSettings=L,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(L){this._textDecoration!==L&&(this._textDecoration=L,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(L){const g=F(L);this._lineHeight!==g&&(this._lineHeight=g,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(L){const g=F(L);this._letterSpacing!==g&&(this._letterSpacing=g,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(L){this._className!==L&&(this._className=L,this.domNode.className=this._className)}toggleClassName(L,g){this.domNode.classList.toggle(L,g),this._className=this.domNode.className}setDisplay(L){this._display!==L&&(this._display=L,this.domNode.style.display=this._display)}setPosition(L){this._position!==L&&(this._position=L,this.domNode.
`)n.type===2&&(n=i.pop()),n.children.push({type:8});else if(n.type!==2){const C={type:2,content:m};n.children.push(C),i.push(n),n=C}else n.content+=m}return n.type===2&&(n=i.pop()),i.length,a}function I(f,d){return S(f,d)!==0}function S(f,d){switch(f){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;case"`":return d?7:0;default:return 0}}},"./node_modules/monaco-editor/esm/vs/base/browser/globalPointerMoveMonitor.js":function(pt,Me,e){e.d(Me,{_:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js");class k{constructor(){this._hooks=new F.Cm,this._pointerMoveCallback=null,this._onStopCallback=null}dispose(){this.stopMonitoring(!1),this._hooks.dispose()}stopMonitoring(L,g){if(!this.isMonitoring())return;this._hooks.clear(),this._pointerMoveCallback=null;const x=this._onStopCallback;this._onStopCallback=null,L&&x&&x(g)}isMonitoring(){return!!this._pointerMoveCallback}startMonitoring(L,g,x,I,S){this.isMonitoring()&&this.stopMonitoring(!1),this._pointerMoveCallback=I,this._onStopCallback=S;let f=L;try{L.setPointerCapture(g),this._hooks.add((0,F.s)(()=>{try{L.releasePointerCapture(g)}catch{}}))}catch{f=r.zk(L)}this._hooks.add(r.ko(f,r.Bx.POINTER_MOVE,d=>{if(d.buttons!==x){this.stopMonitoring(!0);return}d.preventDefault(),this._pointerMoveCallback(d)})),this._hooks.add(r.ko(f,r.Bx.POINTER_UP,d=>this.stopMonitoring(!0)))}}},"./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js":function(pt,Me,e){e.d(Me,{Z:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/keybindings.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");function L(d){if(d.charCode){const s=String.fromCharCode(d.charCode).toUpperCase();return F.YM.fromString(s)}const a=d.keyCode;if(a===3)return 7;if(r.gm)switch(a){case 59:return 85;case 60:if(M.j9)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(M.zx)return 57;break}else if(r.Tc){if(M.zx&&a===93)return 57;if(!M.zx&&a===92)return 57}return F.uw[a]||0}const g=M.zx?256:2048,x=512,I=1024,S=M.zx?2048:256;class f{constructor(a){var s;this._standardKeyboardEventBrand=!0;const n=a;this.browserEvent=n,this.target=n.target,this.ctrlKey=n.ctrlKey,this.shiftKey=n.shiftKey,this.altKey=n.altKey,this.metaKey=n.metaKey,this.altGraphKey=(s=n.getModifierState)===null||s===void 0?void 0:s.call(n,"AltGraph"),this.keyCode=L(n),this.code=n.code,this.ctrlKey=this.ctrlKey||this.keyCode===5,this.altKey=this.altKey||this.keyCode===6,this.shiftKey=this.shiftKey||this.keyCode===4,this.metaKey=this.metaKey||this.keyCode===57,this._asKeybinding=this._computeKeybinding(),this._asKeyCodeChord=this._computeKeyCodeChord()}preventDefault(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()}toKeyCodeChord(){return this._asKeyCodeChord}equals(a){return this._asKeybinding===a}_computeKeybinding(){let a=0;this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(a=this.keyCode);let s=0;return this.ctrlKey&&(s|=g),this.altKey&&(s|=x),this.shiftKey&&(s|=I),this.metaKey&&(s|=S),s|=a,s}_computeKeyCodeChord(){let a=0;return this.keyCode!==5&&this.keyCode!==4&&this.keyCode!==6&&this.keyCode!==57&&(a=this.keyCode),new k.dG(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,a)}}},"./node_modules/monaco-editor/esm/vs/base/browser/markdownRenderer.js":function(pt,Me,e){e.d(Me,{Gc:function(){return V},R9:function(){return D}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/dompurify/dompurify.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/event.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/formattedTextRenderer.js"),L=e("./node_modules/mona
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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},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(`
`).map(function(at){var Tt=at.match(/^\s+/);if(Tt===null)return at;var dt=Tt[0];return dt.length>=et.length?at.slice(et.length):at}).join(`
`)}var Ti=function(){function bt(At){this.options=At||le.defaults}var Dt=bt.prototype;return Dt.space=function(et){var at=this.rules.block.newline.exec(et);if(at&&at[0].length>0)return{type:"space",raw:at[0]}},Dt.code=function(et){var at=this.rules.block.code.exec(et);if(at){var Tt=at[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:at[0],codeBlockStyle:"indented",text:this.options.pedantic?Tt:fi(Tt,`
`)}}},Dt.fences=function(et){var at=this.rules.block.fences.exec(et);if(at){var Tt=at[0],dt=Si(Tt,at[3]||"");return{type:"code",raw:Tt,lang:at[2]?at[2].trim():at[2],text:dt}}},Dt.heading=function(et){var at=this.rules.block.heading.exec(et);if(at){var Tt=at[2].trim();if(/#$/.test(Tt)){var dt=fi(Tt,"#");(this.options.pedantic||!dt||/ $/.test(dt))&&(Tt=dt.trim())}return{type:"heading",raw:at[0],depth:at[1].length,text:Tt,tokens:this.lexer.inline(Tt)}}},Dt.hr=function(et){var at=this.rules.block.hr.exec(et);if(at)return{type:"hr",raw:at[0]}},Dt.blockquote=function(et){var at=this.rules.block.blockquote.exec(et);if(at){var Tt=at[0].replace(/^ *>[ \t]?/gm,"");return{type:"blockquote",raw:at[0],tokens:this.lexer.blockTokens(Tt,[]),text:Tt}}},Dt.list=function(et){var at=this.rules.block.list.exec(et);if(at){var Tt,dt,Ae,ct,ut,je,Rt,Ft,ln,vn,Ln,En,In=at[1].trim(),ei=In.length>1,en={type:"list",raw:"",ordered:ei,start:ei?+In.slice(0,-1):"",loose:!1,items:[]};In=ei?"\\d{1,9}\\"+In.slice(-1):"\\"+In,this.options.pedantic&&(In=ei?In:"[*+-]");for(var xe=new RegExp("^( {0,3}"+In+")((?:[ ][^\\n]*)?(?:\\n|$))");et&&(En=!1,!(!(at=xe.exec(et))||this.rules.block.hr.test(et)));){if(Tt=at[0],et=et.substring(Tt.length),Ft=at[2].split(`
`,1)[0],ln=et.split(`
`,1)[0],this.options.pedantic?(ct=2,Ln=Ft.trimLeft()):(ct=at[2].search(/[^ ]/),ct=ct>4?1:ct,Ln=Ft.slice(ct),ct+=at[1].length),je=!1,!Ft&&/^ *$/.test(ln)&&(Tt+=ln+`
`,et=et.substring(ln.length+1),En=!0),!En)for(var st=new RegExp("^ {0,"+Math.min(3,ct-1)+"}(?:[*+-]|\\d{1,9}[.)])((?: [^\\n]*)?(?:\\n|$))"),Wt=new RegExp("^ {0,"+Math.min(3,ct-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),rn=new RegExp("^ {0,"+Math.min(3,ct-1)+"}(?:```|~~~)"),hn=new RegExp("^ {0,"+Math.min(3,ct-1)+"}#");et&&(vn=et.split(`
`,1)[0],Ft=vn,this.options.pedantic&&(Ft=Ft.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(rn.test(Ft)||hn.test(Ft)||st.test(Ft)||Wt.test(et)));){if(Ft.search(/[^ ]/)>=ct||!Ft.trim())Ln+=`
`+Ft.slice(ct);else if(!je)Ln+=`
`+Ft;else break;!je&&!Ft.trim()&&(je=!0),Tt+=vn+`
`,et=et.substring(vn.length+1)}en.loose||(Rt?en.loose=!0:/\n *\n *$/.test(Tt)&&(Rt=!0)),this.options.gfm&&(dt=/^\[[ xX]\] /.exec(Ln),dt&&(Ae=dt[0]!=="[ ] ",Ln=Ln.replace(/^\[[ xX]\] +/,""))),en.items.push({type:"list_item",raw:Tt,task:!!dt,checked:Ae,loose:!1,text:Ln}),en.raw+=Tt}en.items[en.items.length-1].raw=Tt.trimRight(),en.items[en.items.length-1].text=Ln.trimRight(),en.raw=en.raw.trimRight();var Dn=en.items.length;for(ut=0;ut<Dn;ut++){this.lexer.state.top=!1,en.items[ut].tokens=this.lexer.blockTokens(en.items[ut].text,[]);var On=en.items[ut].tokens.filter(function(oi){return oi.type==="space"}),Bn=On.every(function(oi){for(var $n=oi.raw.split(""),ti=0,Jn=We($n),Un;!(Un=Jn()).done;){var Rn=Un.value;if(Rn===`
`&&(ti+=1),ti>1)return!0}return!1});!en.loose&&On.length&&Bn&&(en.loose=!0,en.items[ut].loose=!0)}return en}},Dt.html=function(et){var at=this.rules.block.html.exec(et);if(at){var Tt={type:"html",raw:at[0],pre:!this.options.sanitizer&&(at[1]==="pre"||at[1]==="script"||at[1]==="style"),text:at[0]};if(this.options.sanitize){var dt=this.options.sanitizer?this.options.sanitizer(at[0]):Mt(at[0]);Tt.type="paragraph",Tt.text=dt,Tt.tokens=this.lexer.inline(dt)}return Tt}},Dt.def=function(et){var at=this.rules.block.def.exec(et);if(at){at[3]&&(at[3]=at[3].substring(1,at[3].length-1));var Tt=at[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:Tt,raw:at[0],href:at[2],title:at[3]}}},Dt.table=function(et){var at=this.rules.block.table.exec(et);if(at){var Tt={type:"table",header:ri(at[1]).map(function(Rt){return{text:Rt}}),align:at[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:at[3]&&at[3].trim()?at[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(Tt.header.length===Tt.align.length){Tt.raw=at[0];var dt=Tt.align.length,Ae,ct,ut,je;for(Ae=0;Ae<dt;Ae++)/^ *-+: *$/.test(Tt.align[Ae])?Tt.align[Ae]="right":/^ *:-+: *$/.test(Tt.align[Ae])?Tt.align[Ae]="center":/^ *:-+ *$/.test(Tt.align[Ae])?Tt.align[Ae]="left":Tt.align[Ae]=null;for(dt=Tt.rows.length,Ae=0;Ae<dt;Ae++)Tt.rows[Ae]=ri(Tt.rows[Ae],Tt.header.length).map(function(Rt){return{text:Rt}});for(dt=Tt.header.length,ct=0;ct<dt;ct++)Tt.header[ct].tokens=this.lexer.inline(Tt.header[ct].text);for(dt=Tt.rows.length,ct=0;ct<dt;ct++)for(je=Tt.rows[ct],ut=0;ut<je.length;ut++)je[ut].tokens=this.lexer.inline(je[ut].text);return Tt}}},Dt.lheading=function(et){var at=this.rules.block.lheading.exec(et);if(at)return{type:"heading",raw:at[0],depth:at[2].charAt(0)==="="?1:2,text:at[1],tokens:this.lexer.inline(at[1])}},Dt.paragraph=function(et){var at=this.rules.block.paragraph.exec(et);if(at){var Tt=at[1].charAt(at[1].length-1)===`
`?at[1].slice(0,-1):at[1];return{type:"paragraph",raw:at[0],text:Tt,tokens:this.lexer.inline(Tt)}}},Dt.text=function(et){var at=this.rules.block.text.exec(et);if(at)return{type:"text",raw:at[0],text:at[0],tokens:this.lexer.inline(at[0])}},Dt.escape=function(et){var at=this.rules.inline.escape.exec(et);if(at)return{type:"escape",raw:at[0],text:Mt(at[1])}},Dt.tag=function(et){var at=this.rules.inline.tag.exec(et);if(at)return!this.lexer.state.inLink&&/^<a /i.test(at[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(at[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(at[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(at[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:at[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(at[0]):Mt(at[0]):at[0]}},Dt.link=function(et){var at=this.rules.inline.link.exec(et);if(at){var Tt=at[2].trim();if(!this.options.pedantic&&/^</.test(Tt)){if(!/>$/.test(Tt))return;var dt=fi(Tt.slice(0,-1),"\\");if((Tt.length-dt.length)%2===0)return}else{var Ae=Mi(at[2],"()");if(Ae>-1){var ct=at[0].indexOf("!")===0?5:4,ut=ct+at[1].length+Ae;at[2]=at[2].substring(0,Ae),at[0]=at[0].substring(0,ut).trim(),at[3]=""}}var je=at[2],Rt="";if(this.options.pedantic){var Ft=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(je);Ft&&(je=Ft[1],Rt=Ft[3])}else Rt=at[3]?at[3].slice(1,-1):"";return je=je.trim(),/^</.test(je)&&(this.options.pedantic&&!/>$/.test(Tt)?je=je.slice(1):je=je.slice(1,-1)),Ii(at,{href:je&&je.replace(this.rules.inline._escapes,"$1"),title:Rt&&Rt.replace(this.rules.inline._escapes,"$1")},at[0],this.lexer)}},Dt.reflink=function(et,at){var Tt;if((Tt=this.rules.inline.reflink.exec(et))||(Tt=this.rules.inline.nolink.exec(et))){var dt=(Tt[2]||Tt[1]).replace(/\s+/g," ");if(dt=at[dt.toLowerCase()],!dt||!dt.href){var Ae=Tt[0].charAt(0);return{type:"text",raw:Ae,text:Ae}}return Ii(Tt,dt,Tt[0],this.lexer)}},Dt.emStrong=function(et,at,Tt){Tt===void 0&&(Tt="");var dt=this.rules.inline.emStrong.lDelim.exec(et);if(dt&&!(dt[3]&&Tt.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F
]`).replace("lheading",Nn.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Vn={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:mi,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[^*]+(?=[^*])|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:mi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Vn._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Vn.punctuation=Nt(Vn.punctuation).replace(/punctuation/g,Vn._punctuation).getRegex(),Vn.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Vn.escapedEmSt=/\\\*|\\_/g,Vn._comment=Nt(Nn._comment).replace("(?:-->|$)","-->").getRegex(),Vn.emStrong.lDelim=Nt(Vn.emStrong.lDelim).replace(/punct/g,Vn._punctuation).getRegex(),Vn.emStrong.rDelimAst=Nt(Vn.emStrong.rDelimAst,"g").replace(/punct/g,Vn._punctuation).getRegex(),Vn.emStrong.rDelimUnd=Nt(Vn.emStrong.rDelimUnd,"g").replace(/punct/g,Vn._punctuation).getRegex(),Vn._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Vn._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Vn._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Vn.autolink=Nt(Vn.autolink).replace("scheme",Vn._scheme).replace("email",Vn._email).getRegex(),Vn._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Vn.tag=Nt(Vn.tag).replace("comment",Vn._comment).replace("attribute",Vn._attribute).getRegex(),Vn._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Vn._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Vn._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Vn.link=Nt(Vn.link).replace("label",Vn._label).replace("href",Vn._href).replace("title",Vn._title).getRegex(),Vn.reflink=Nt(Vn.reflink).replace("label",Vn._label).replace("ref",Nn._label).getRegex(),Vn.nolink=Nt(Vn.nolink).replace("ref",Nn._label).getRegex(),Vn.reflinkSearch=Nt(Vn.reflinkSearch,"g").replace("reflink",Vn.reflink).replace("nolink",Vn.nolink).getRegex(),Vn.normal=yi({},Vn),Vn.pedantic=yi({},Vn.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Nt(/^!?\[(label)\]\((.*?)\)/).replace("label",Vn._label).getRegex(),reflink:Nt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Vn._label).getRegex()}),Vn.gfm=yi({},Vn.normal,{escape:Nt(Vn.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Vn.gfm.url=Nt(Vn.gfm.url,"i").replace("email",Vn.gfm._extended_email).getRegex(),Vn.br
`),this.blockTokens(et,this.tokens);for(var at;at=this.inlineQueue.shift();)this.inlineTokens(at.src,at.tokens);return this.tokens},Dt.blockTokens=function(et,at){var Tt=this;at===void 0&&(at=[]),this.options.pedantic?et=et.replace(/\t/g," ").replace(/^ +$/gm,""):et=et.replace(/^( *)(\t+)/gm,function(Rt,Ft,ln){return Ft+" ".repeat(ln.length)});for(var dt,Ae,ct,ut;et;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(function(Rt){return(dt=Rt.call({lexer:Tt},et,at))?(et=et.substring(dt.raw.length),at.push(dt),!0):!1}))){if(dt=this.tokenizer.space(et)){et=et.substring(dt.raw.length),dt.raw.length===1&&at.length>0?at[at.length-1].raw+=`
`:at.push(dt);continue}if(dt=this.tokenizer.code(et)){et=et.substring(dt.raw.length),Ae=at[at.length-1],Ae&&(Ae.type==="paragraph"||Ae.type==="text")?(Ae.raw+=`
`+dt.raw,Ae.text+=`
`+dt.text,this.inlineQueue[this.inlineQueue.length-1].src=Ae.text):at.push(dt);continue}if(dt=this.tokenizer.fences(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.heading(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.hr(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.blockquote(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.list(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.html(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.def(et)){et=et.substring(dt.raw.length),Ae=at[at.length-1],Ae&&(Ae.type==="paragraph"||Ae.type==="text")?(Ae.raw+=`
`+dt.raw,Ae.text+=`
`+dt.raw,this.inlineQueue[this.inlineQueue.length-1].src=Ae.text):this.tokens.links[dt.tag]||(this.tokens.links[dt.tag]={href:dt.href,title:dt.title});continue}if(dt=this.tokenizer.table(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.lheading(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(ct=et,this.options.extensions&&this.options.extensions.startBlock&&function(){var Rt=1/0,Ft=et.slice(1),ln=void 0;Tt.options.extensions.startBlock.forEach(function(vn){ln=vn.call({lexer:this},Ft),typeof ln=="number"&&ln>=0&&(Rt=Math.min(Rt,ln))}),Rt<1/0&&Rt>=0&&(ct=et.substring(0,Rt+1))}(),this.state.top&&(dt=this.tokenizer.paragraph(ct))){Ae=at[at.length-1],ut&&Ae.type==="paragraph"?(Ae.raw+=`
`+dt.raw,Ae.text+=`
`+dt.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Ae.text):at.push(dt),ut=ct.length!==et.length,et=et.substring(dt.raw.length);continue}if(dt=this.tokenizer.text(et)){et=et.substring(dt.raw.length),Ae=at[at.length-1],Ae&&Ae.type==="text"?(Ae.raw+=`
`+dt.raw,Ae.text+=`
`+dt.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=Ae.text):at.push(dt);continue}if(et){var je="Infinite loop on byte: "+et.charCodeAt(0);if(this.options.silent){console.error(je);break}else throw new Error(je)}}return this.state.top=!0,at},Dt.inline=function(et,at){return at===void 0&&(at=[]),this.inlineQueue.push({src:et,tokens:at}),at},Dt.inlineTokens=function(et,at){var Tt=this;at===void 0&&(at=[]);var dt,Ae,ct,ut=et,je,Rt,Ft;if(this.tokens.links){var ln=Object.keys(this.tokens.links);if(ln.length>0)for(;(je=this.tokenizer.rules.inline.reflinkSearch.exec(ut))!=null;)ln.includes(je[0].slice(je[0].lastIndexOf("[")+1,-1))&&(ut=ut.slice(0,je.index)+"["+ci("a",je[0].length-2)+"]"+ut.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(je=this.tokenizer.rules.inline.blockSkip.exec(ut))!=null;)ut=ut.slice(0,je.index)+"["+ci("a",je[0].length-2)+"]"+ut.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(je=this.tokenizer.rules.inline.escapedEmSt.exec(ut))!=null;)ut=ut.slice(0,je.index)+"++"+ut.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;et;)if(Rt||(Ft=""),Rt=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(function(Ln){return(dt=Ln.call({lexer:Tt},et,at))?(et=et.substring(dt.raw.length),at.push(dt),!0):!1}))){if(dt=this.tokenizer.escape(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.tag(et)){et=et.substring(dt.raw.length),Ae=at[at.length-1],Ae&&dt.type==="text"&&Ae.type==="text"?(Ae.raw+=dt.raw,Ae.text+=dt.text):at.push(dt);continue}if(dt=this.tokenizer.link(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.reflink(et,this.tokens.links)){et=et.substring(dt.raw.length),Ae=at[at.length-1],Ae&&dt.type==="text"&&Ae.type==="text"?(Ae.raw+=dt.raw,Ae.text+=dt.text):at.push(dt);continue}if(dt=this.tokenizer.emStrong(et,ut,Ft)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.codespan(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.br(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.del(et)){et=et.substring(dt.raw.length),at.push(dt);continue}if(dt=this.tokenizer.autolink(et,Di)){et=et.substring(dt.raw.length),at.push(dt);continue}if(!this.state.inLink&&(dt=this.tokenizer.url(et,Di))){et=et.substring(dt.raw.length),at.push(dt);continue}if(ct=et,this.options.extensions&&this.options.extensions.startInline&&function(){var Ln=1/0,En=et.slice(1),In=void 0;Tt.options.extensions.startInline.forEach(function(ei){In=ei.call({lexer:this},En),typeof In=="number"&&In>=0&&(Ln=Math.min(Ln,In))}),Ln<1/0&&Ln>=0&&(ct=et.substring(0,Ln+1))}(),dt=this.tokenizer.inlineText(ct,Yn)){et=et.substring(dt.raw.length),dt.raw.slice(-1)!=="_"&&(Ft=dt.raw.slice(-1)),Rt=!0,Ae=at[at.length-1],Ae&&Ae.type==="text"?(Ae.raw+=dt.raw,Ae.text+=dt.text):at.push(dt);continue}if(et){var vn="Infinite loop on byte: "+et.charCodeAt(0);if(this.options.silent){console.error(vn);break}else throw new Error(vn)}}return at},ne(bt,null,[{key:"rules",get:function(){return{block:Nn,inline:Vn}}}]),bt}(),Sn=function(){function bt(At){this.options=At||le.defaults}var Dt=bt.prototype;return Dt.code=function(et,at,Tt){var dt=(at||"").match(/\S*/)[0];if(this.options.highlight){var Ae=this.options.highlight(et,dt);Ae!=null&&Ae!==et&&(Tt=!0,et=Ae)}return et=et.replace(/\n$/,"")+`
`,dt?'<pre><code class="'+this.options.langPrefix+Mt(dt,!0)+'">'+(Tt?et:Mt(et,!0))+`</code></pre>
`:"<pre><code>"+(Tt?et:Mt(et,!0))+`</code></pre>
`},Dt.blockquote=function(et){return`<blockquote>
`+et+`</blockquote>
`},Dt.html=function(et){return et},Dt.heading=function(et,at,Tt,dt){if(this.options.headerIds){var Ae=this.options.headerPrefix+dt.slug(Tt);return"<h"+at+' id="'+Ae+'">'+et+"</h"+at+`>
`}return"<h"+at+">"+et+"</h"+at+`>
`},Dt.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Dt.list=function(et,at,Tt){var dt=at?"ol":"ul",Ae=at&&Tt!==1?' start="'+Tt+'"':"";return"<"+dt+Ae+`>
`+et+"</"+dt+`>
`},Dt.listitem=function(et){return"<li>"+et+`</li>
`},Dt.checkbox=function(et){return"<input "+(et?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Dt.paragraph=function(et){return"<p>"+et+`</p>
`},Dt.table=function(et,at){return at&&(at="<tbody>"+at+"</tbody>"),`<table>
<thead>
`+et+`</thead>
`+at+`</table>
`},Dt.tablerow=function(et){return`<tr>
`+et+`</tr>
`},Dt.tablecell=function(et,at){var Tt=at.header?"th":"td",dt=at.align?"<"+Tt+' align="'+at.align+'">':"<"+Tt+">";return dt+et+("</"+Tt+`>
`)},Dt.strong=function(et){return"<strong>"+et+"</strong>"},Dt.em=function(et){return"<em>"+et+"</em>"},Dt.codespan=function(et){return"<code>"+et+"</code>"},Dt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Dt.del=function(et){return"<del>"+et+"</del>"},Dt.link=function(et,at,Tt){if(et=Gt(this.options.sanitize,this.options.baseUrl,et),et===null)return Tt;var dt='<a href="'+Mt(et)+'"';return at&&(dt+=' title="'+at+'"'),dt+=">"+Tt+"</a>",dt},Dt.image=function(et,at,Tt){if(et=Gt(this.options.sanitize,this.options.baseUrl,et),et===null)return Tt;var dt='<img src="'+et+'" alt="'+Tt+'"';return at&&(dt+=' title="'+at+'"'),dt+=this.options.xhtml?"/>":">",dt},Dt.text=function(et){return et},bt}(),Ye=function(){function bt(){}var Dt=bt.prototype;return Dt.strong=function(et){return et},Dt.em=function(et){return et},Dt.codespan=function(et){return et},Dt.del=function(et){return et},Dt.html=function(et){return et},Dt.text=function(et){return et},Dt.link=function(et,at,Tt){return""+Tt},Dt.image=function(et,at,Tt){return""+Tt},Dt.br=function(){return""},bt}(),mt=function(){function bt(){this.seen={}}var Dt=bt.prototype;return Dt.serialize=function(et){return et.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},Dt.getNextSafeSlug=function(et,at){var Tt=et,dt=0;if(this.seen.hasOwnProperty(Tt)){dt=this.seen[et];do dt++,Tt=et+"-"+dt;while(this.seen.hasOwnProperty(Tt))}return at||(this.seen[et]=dt,this.seen[Tt]=0),Tt},Dt.slug=function(et,at){at===void 0&&(at={});var Tt=this.serialize(et);return this.getNextSafeSlug(Tt,at.dryrun)},bt}(),ze=function(){function bt(At){this.options=At||le.defaults,this.options.renderer=this.options.renderer||new Sn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ye,this.slugger=new mt}bt.parse=function(et,at){var Tt=new bt(at);return Tt.parse(et)},bt.parseInline=function(et,at){var Tt=new bt(at);return Tt.parseInline(et)};var Dt=bt.prototype;return Dt.parse=function(et,at){at===void 0&&(at=!0);var Tt="",dt,Ae,ct,ut,je,Rt,Ft,ln,vn,Ln,En,In,ei,en,xe,st,Wt,rn,hn,Dn=et.length;for(dt=0;dt<Dn;dt++){if(Ln=et[dt],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[Ln.type]&&(hn=this.options.extensions.renderers[Ln.type].call({parser:this},Ln),hn!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(Ln.type))){Tt+=hn||"";continue}switch(Ln.type){case"space":continue;case"hr":{Tt+=this.renderer.hr();continue}case"heading":{Tt+=this.renderer.heading(this.parseInline(Ln.tokens),Ln.depth,xt(this.parseInline(Ln.tokens,this.textRenderer)),this.slugger);continue}case"code":{Tt+=this.renderer.code(Ln.text,Ln.lang,Ln.escaped);continue}case"table":{for(ln="",Ft="",ut=Ln.header.length,Ae=0;Ae<ut;Ae++)Ft+=this.renderer.tablecell(this.parseInline(Ln.header[Ae].tokens),{header:!0,align:Ln.align[Ae]});for(ln+=this.renderer.tablerow(Ft),vn="",ut=Ln.rows.length,Ae=0;Ae<ut;Ae++){for(Rt=Ln.rows[Ae],Ft="",je=Rt.length,ct=0;ct<je;ct++)Ft+=this.renderer.tablecell(this.parseInline(Rt[ct].tokens),{header:!1,align:Ln.align[ct]});vn+=this.renderer.tablerow(Ft)}Tt+=this.renderer.table(ln,vn);continue}case"blockquote":{vn=this.parse(Ln.tokens),Tt+=this.renderer.blockquote(vn);continue}case"list":{for(En=Ln.ordered,In=Ln.start,ei=Ln.loose,ut=Ln.items.length,vn="",Ae=0;Ae<ut;Ae++)xe=Ln.items[Ae],st=xe.checked,Wt=xe.task,en="",xe.task&&(rn=this.renderer.checkbox(st),ei?xe.tokens.length>0&&xe.tokens[0].type==="paragraph"?(xe.tokens[0].text=rn+" "+xe.tokens[0].text,xe.tokens[0].tokens&&xe.tokens[0].tokens.length>0&&xe.tokens[0].tokens[0].type==="text"&&(xe.tokens[0].tokens[0].text=rn+" "+xe.tokens[0].tokens[0].text)):xe.tokens.unshift({type:"text",text:rn}):en+=rn),en+=this.parse(xe.tokens,ei),vn+=this.renderer.listitem(en,Wt,st);Tt+=this.renderer.list(vn,En,In);continue}case"html":{Tt+=this.renderer.html(Ln.text);continue}case"paragraph":{Tt+=this.renderer.paragraph(this.parseInline(Ln.tokens));continue}case"tex
`+(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+=`
Please report this to https://github.com/markedjs/marked.`,Dt.silent)return"<p>An error occurred:</p><pre>"+Mt(et.message+"",!0)+"</pre>";throw et}},Ke.Parser=ze,Ke.parser=ze.parse,Ke.Renderer=Sn,Ke.TextRenderer=Ye,Ke.Lexer=Ai,Ke.lexer=Ai.lex,Ke.Tokenizer=Ti,Ke.Slugger=mt,Ke.parse=Ke;var Je=Ke.options,Ne=Ke.setOptions,ft=Ke.use,St=Ke.walkTokens,rt=Ke.parseInline,Ge=Ke,nt=ze.parse,it=Ai.lex;le.Lexer=Ai,le.Parser=ze,le.Renderer=Sn,le.Slugger=mt,le.TextRenderer=Ye,le.Tokenizer=Ti,le.getDefaults=we,le.lexer=it,le.marked=Ke,le.options=Je,le.parse=Ge,le.parseInline=rt,le.parser=nt,le.setOptions=Ne,le.use=ft,le.walkTokens=St,Object.defineProperty(le,"__esModule",{value:!0})})})();var c=i.Lexer||exports.Lexer,m=i.Parser||exports.Parser,u=i.Renderer||exports.Renderer,C=i.Slugger||exports.Slugger,h=i.TextRenderer||exports.TextRenderer,v=i.Tokenizer||exports.Tokenizer,p=i.getDefaults||exports.getDefaults,b=i.lexer||exports.lexer,O=i.marked||exports.marked,w=i.options||exports.options,j=i.parse||exports.parse,U=i.parseInline||exports.parseInline,K=i.parser||exports.parser,G=i.setOptions||exports.setOptions,P=i.use||exports.use,A=i.walkTokens||exports.walkTokens,T=e("./node_modules/monaco-editor/esm/vs/base/common/marshalling.js"),E=e("./node_modules/monaco-editor/esm/vs/base/common/network.js"),W=e("./node_modules/monaco-editor/esm/vs/base/common/objects.js"),$=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js"),z=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),J=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js");const B=Object.freeze({image:(fe,le,oe)=>{let ne=[],de=[];return fe&&({href:fe,dimensions:ne}=(0,f.nI)(fe),de.push(`src="${(0,f.oO)(fe)}"`)),oe&&de.push(`alt="${(0,f.oO)(oe)}"`),le&&de.push(`title="${(0,f.oO)(le)}"`),ne.length&&(de=de.concat(ne)),"<img "+de.join(" ")+">"},paragraph:fe=>`<p>${fe}</p>`,link:(fe,le,oe)=>typeof fe!="string"?"":(fe===oe&&(oe=(0,f._W)(oe)),le=typeof le=="string"?(0,f.oO)((0,f._W)(le)):"",fe=(0,f._W)(fe),fe=fe.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),`<a href="${fe}" title="${le||fe}" draggable="false">${oe}</a>`)});function V(fe,le={},oe={}){var ne,de;const Le=new n.Cm;let We=!1;const we=(0,M.n)(le),Ue=function(xt){let Jt;try{Jt=(0,T.qg)(decodeURIComponent(xt))}catch{}return Jt?(Jt=(0,W.PI)(Jt,Nt=>{if(fe.uris&&fe.uris[Nt])return J.r.revive(fe.uris[Nt])}),encodeURIComponent(JSON.stringify(Jt))):xt},lt=function(xt,Jt){const Nt=fe.uris&&fe.uris[xt];let Be=J.r.revive(Nt);return Jt?xt.startsWith(E.ny.data+":")?xt:(Be||(Be=J.r.parse(xt)),E.zl.uriToBrowserUri(Be).toString(!0)):!Be||J.r.parse(xt).toString()===Be.toString()?xt:(Be.query&&(Be=Be.with({query:Ue(Be.query)})),Be.toString())},Et=new O.Renderer;Et.image=B.image,Et.link=B.link,Et.paragraph=B.paragraph;const Kt=[],Zt=[];if(le.codeBlockRendererSync?Et.code=(xt,Jt)=>{const Nt=a.r.nextId(),Be=le.codeBlockRendererSync(Y(Jt),xt);return Zt.push([Nt,Be]),`<div class="code" data-code="${Nt}">${(0,z.ih)(xt)}</div>`}:le.codeBlockRenderer&&(Et.code=(xt,Jt)=>{const Nt=a.r.nextId(),Be=le.codeBlockRenderer(Y(Jt),xt);return Kt.push(Be.then(vt=>[Nt,vt])),`<div class="code" data-code="${Nt}">${(0,z.ih)(xt)}</div>`}),le.actionHandler){const xt=function(Be){let vt=Be.target;if(!(vt.tagName!=="A"&&(vt=vt.parentElement,!vt||vt.tagName!=="A")))try{let Gt=vt.dataset.href;Gt&&(fe.baseUri&&(Gt=X(J.r.from(fe.baseUri),Gt)),le.actionHandler.callback(Gt,Be))}catch(Gt){(0,I.dz)(Gt)}finally{Be.preventDefault()}},Jt=le.actionHandler.disposables.add(new k.f(we,"click")),Nt=le.actionHandler.disposables.add(new k.f(we,"auxclick"));le.actionHandler.disposables.add(S.Jh.any(Jt.event,Nt.event)(Be=>{const vt=new g.P(r.zk(we),Be);!vt.leftButton&&!vt.middleButton||xt(vt)})),le.actionHandler.disposables.add(r.ko(we,"keydown",Be=>{const vt=new L.Z(Be);!vt.equals(10)&&!vt.equals(3)||xt(vt)}))}fe.supportHtml||(oe.sanitizer=xt=>(fe.isTrusted?xt.match(/^(<span[^>]+>)|(<\/\s*span>)$/):void 0)?xt:"",oe.sanitize=!0,oe.silent=!0),oe.renderer=Et;let qt=(ne=fe.value)!==null&&ne!==void 0?ne:""
`,fe.hr=()=>"",fe.list=(le,oe)=>le,fe.listitem=le=>le+`
`,fe.paragraph=le=>le+`
`,fe.table=(le,oe)=>le+oe+`
`,fe.tablerow=le=>le,fe.tablecell=(le,oe)=>le+" ",fe.strong=le=>le,fe.em=le=>le,fe.codespan=le=>le,fe.br=()=>`
`,fe.del=le=>le,fe.image=(le,oe,ne)=>"",fe.text=le=>le,fe.link=(le,oe,ne)=>ne,fe});function Pe(fe){let le="";return fe.forEach(oe=>{le+=oe.raw}),le}function _e(fe){var le,oe;for(let ne=0;ne<fe.tokens.length;ne++){const de=fe.tokens[ne];if(de.type==="text"){const Le=de.raw.split(`
`),We=Le[Le.length-1];if(We.includes("`"))return He(fe);if(We.includes("**"))return be(fe);if(We.match(/\*\w/))return qe(fe);if(We.match(/(^|\s)__\w/))return Se(fe);if(We.match(/(^|\s)_\w/))return Qe(fe);if(We.match(/(^|\s)\[.*\]\(\w*/)){const we=fe.tokens.slice(ne+1);return((le=we[0])===null||le===void 0?void 0:le.type)==="link"&&((oe=we[1])===null||oe===void 0?void 0:oe.type)==="text"&&we[1].raw.match(/^ *"[^"]*$/)?ye(fe):q(fe)}else{if(ee(We))return q(fe);if(We.match(/(^|\s)\[\w/)&&!fe.tokens.slice(ne+1).some(we=>ee(we.raw)))return ge(fe)}}}}function ee(fe){return!!fe.match(/^[^\[]*\]\([^\)]*$/)}function De(fe){let le,oe;for(le=0;le<fe.length;le++){const ne=fe[le];let de;if(ne.type==="paragraph"&&(de=ne.raw.match(/(\n|^)(````*)/))){const Le=de[2];oe=Te(fe.slice(le),Le);break}if(ne.type==="paragraph"&&ne.raw.match(/(\n|^)\|/)){oe=me(fe.slice(le));break}if(le===fe.length-1&&ne.type==="paragraph"){const Le=_e(ne);if(Le){oe=[Le];break}}}if(oe){const ne=[...fe.slice(0,le),...oe];return ne.links=fe.links,ne}return fe}function Te(fe,le){const oe=Pe(fe);return O.lexer(oe+`
${le}`)}function He(fe){return ae(fe,"`")}function qe(fe){return ae(fe,"*")}function Qe(fe){return ae(fe,"_")}function q(fe){return ae(fe,")")}function ye(fe){return ae(fe,'")')}function ge(fe){return ae(fe,"](about:blank)")}function be(fe){return ae(fe,"**")}function Se(fe){return ae(fe,"__")}function ae(fe,le){const oe=Pe(Array.isArray(fe)?fe:[fe]);return O.lexer(oe+le)[0]}function me(fe){const le=Pe(fe),oe=le.split(`
`);let ne,de=!1;for(let Le=0;Le<oe.length;Le++){const We=oe[Le].trim();if(typeof ne>"u"&&We.match(/^\s*\|/)){const we=We.match(/(\|[^\|]+)(?=\||$)/g);we&&(ne=we.length)}else if(typeof ne=="number")if(We.match(/^\s*\|/)){if(Le!==oe.length-1)return;de=!0}else return}if(typeof ne=="number"&&ne>0){const Le=de?oe.slice(0,-1).join(`
`):le,We=!!Le.match(/\|\s*$/),we=Le+(We?"":"|")+`
|${" --- |".repeat(ne)}`;return O.lexer(we)}}},"./node_modules/monaco-editor/esm/vs/base/browser/mouseEvent.js":function(pt,Me,e){e.d(Me,{P:function(){return g},$:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js");const F=new WeakMap;function k(I){if(!I.parent||I.parent===I)return null;try{const S=I.location,f=I.parent.location;if(S.origin!=="null"&&f.origin!=="null"&&S.origin!==f.origin)return null}catch{return null}return I.parent}class M{static getSameOriginWindowChain(S){let f=F.get(S);if(!f){f=[],F.set(S,f);let d=S,a;do a=k(d),a?f.push({window:new WeakRef(d),iframeElement:d.frameElement||null}):f.push({window:new WeakRef(d),iframeElement:null}),d=a;while(d)}return f.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(S,f){var d,a;if(!f||S===f)return{top:0,left:0};let s=0,n=0;const i=this.getSameOriginWindowChain(S);for(const c of i){const m=c.window.deref();if(s+=(d=m?.scrollY)!==null&&d!==void 0?d:0,n+=(a=m?.scrollX)!==null&&a!==void 0?a:0,m===f||!c.iframeElement)break;const u=c.iframeElement.getBoundingClientRect();s+=u.top,n+=u.left}return{top:s,left:n}}}var L=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js");class g{constructor(S,f){this.timestamp=Date.now(),this.browserEvent=f,this.leftButton=f.button===0,this.middleButton=f.button===1,this.rightButton=f.button===2,this.buttons=f.buttons,this.target=f.target,this.detail=f.detail||1,f.type==="dblclick"&&(this.detail=2),this.ctrlKey=f.ctrlKey,this.shiftKey=f.shiftKey,this.altKey=f.altKey,this.metaKey=f.metaKey,typeof f.pageX=="number"?(this.posx=f.pageX,this.posy=f.pageY):(this.posx=f.clientX+this.target.ownerDocument.body.scrollLeft+this.target.ownerDocument.documentElement.scrollLeft,this.posy=f.clientY+this.target.ownerDocument.body.scrollTop+this.target.ownerDocument.documentElement.scrollTop);const d=M.getPositionOfChildWindowRelativeToAncestorWindow(S,f.view);this.posx-=d.left,this.posy-=d.top}preventDefault(){this.browserEvent.preventDefault()}stopPropagation(){this.browserEvent.stopPropagation()}}class x{constructor(S,f=0,d=0){var a;this.browserEvent=S||null,this.target=S?S.target||S.targetNode||S.srcElement:null,this.deltaY=d,this.deltaX=f;let s=!1;if(r.H8){const n=navigator.userAgent.match(/Chrome\/(\d+)/);s=(n?parseInt(n[1]):123)<=122}if(S){const n=S,i=S,c=((a=S.view)===null||a===void 0?void 0:a.devicePixelRatio)||1;if(typeof n.wheelDeltaY<"u")s?this.deltaY=n.wheelDeltaY/(120*c):this.deltaY=n.wheelDeltaY/120;else if(typeof i.VERTICAL_AXIS<"u"&&i.axis===i.VERTICAL_AXIS)this.deltaY=-i.detail/3;else if(S.type==="wheel"){const m=S;m.deltaMode===m.DOM_DELTA_LINE?r.gm&&!L.zx?this.deltaY=-S.deltaY/3:this.deltaY=-S.deltaY:this.deltaY=-S.deltaY/40}if(typeof n.wheelDeltaX<"u")r.nr&&L.uF?this.deltaX=-(n.wheelDeltaX/120):s?this.deltaX=n.wheelDeltaX/(120*c):this.deltaX=n.wheelDeltaX/120;else if(typeof i.HORIZONTAL_AXIS<"u"&&i.axis===i.HORIZONTAL_AXIS)this.deltaX=-S.detail/3;else if(S.type==="wheel"){const m=S;m.deltaMode===m.DOM_DELTA_LINE?r.gm&&!L.zx?this.deltaX=-S.deltaX/3:this.deltaX=-S.deltaX:this.deltaX=-S.deltaX/40}this.deltaY===0&&this.deltaX===0&&S.wheelDelta&&(s?this.deltaY=S.wheelDelta/(120*c):this.deltaY=S.wheelDelta/120)}}preventDefault(){var S;(S=this.browserEvent)===null||S===void 0||S.preventDefault()}stopPropagation(){var S;(S=this.browserEvent)===null||S===void 0||S.stopPropagation()}}},"./node_modules/monaco-editor/esm/vs/base/browser/performance.js":function(pt,Me,e){e.d(Me,{p:function(){return r}});var r;(function(F){const k={total:0,min:Number.MAX_VALUE,max:0},M={...k},L={...k},g={...k};let x=0;const I={keydown:0,input:0,render:0};function S(){C(),performance.mark("inputlatency/start"),performance.mark("keydown/start"),I.keydown=1,queueMicrotask(f)}F.onKeyDown=S;function f(){I.keydown===1&&(performance.mark("keydown/end"),I.keydown=2)}function d(){performance.mark("input/start"),I.input=1,u()}F.onBeforeInput=d;function a(){I.input===0&&d(),queueMicrotask(s)}F.onInput=a;function s(){I.input===1&&(performance.mark("input/end"),I.input=2)}function n(){C()}F.onKeyUp=n;function
`)}styleSelectElement(){var P,A,T;const E=(P=this.styles.selectBackground)!==null&&P!==void 0?P:"",W=(A=this.styles.selectForeground)!==null&&A!==void 0?A:"",$=(T=this.styles.selectBorder)!==null&&T!==void 0?T:"";this.selectElement.style.backgroundColor=E,this.selectElement.style.color=W,this.selectElement.style.borderColor=$}styleList(){var P,A;const T=(P=this.styles.selectBackground)!==null&&P!==void 0?P:"",E=k.gI(this.styles.selectListBackground,T);this.selectDropDownListContainer.style.backgroundColor=E,this.selectionDetailsPane.style.backgroundColor=E;const W=(A=this.styles.focusBorder)!==null&&A!==void 0?A:"";this.selectDropDownContainer.style.outlineColor=W,this.selectDropDownContainer.style.outlineOffset="-1px",this.selectList.style(this.styles)}createOption(P,A,T){const E=document.createElement("option");return E.value=P,E.text=P,E.disabled=!!T,E}showSelectDropDown(){this.selectionDetailsPane.innerText="",!(!this.contextViewProvider||this._isVisible)&&(this.createSelectList(this.selectDropDownContainer),this.setOptionsList(),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:P=>this.renderSelectDropDown(P,!0),layout:()=>{this.layoutSelectDropDown()},onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._isVisible=!0,this.hideSelectDropDown(!1),this.contextViewProvider.showContextView({getAnchor:()=>this.selectElement,render:P=>this.renderSelectDropDown(P),layout:()=>this.layoutSelectDropDown(),onHide:()=>{this.selectDropDownContainer.classList.remove("visible"),this.selectElement.classList.remove("synthetic-focus")},anchorPosition:this._dropDownPosition},this.selectBoxOptions.optionsAsChildren?this.container:void 0),this._currentSelection=this.selected,this._isVisible=!0,this.selectElement.setAttribute("aria-expanded","true"))}hideSelectDropDown(P){!this.contextViewProvider||!this._isVisible||(this._isVisible=!1,this.selectElement.setAttribute("aria-expanded","false"),P&&this.selectElement.focus(),this.contextViewProvider.hideContextView())}renderSelectDropDown(P,A){return P.appendChild(this.selectDropDownContainer),this.layoutSelectDropDown(A),{dispose:()=>{try{P.removeChild(this.selectDropDownContainer)}catch{}}}}measureMaxDetailsHeight(){let P=0;return this.options.forEach((A,T)=>{this.updateDetail(T),this.selectionDetailsPane.offsetHeight>P&&(P=this.selectionDetailsPane.offsetHeight)}),P}layoutSelectDropDown(P){if(this._skipLayout)return!1;if(this.selectList){this.selectDropDownContainer.classList.add("visible");const A=k.zk(this.selectElement),T=k.BK(this.selectElement),E=k.zk(this.selectElement).getComputedStyle(this.selectElement),W=parseFloat(E.getPropertyValue("--dropdown-padding-top"))+parseFloat(E.getPropertyValue("--dropdown-padding-bottom")),$=A.innerHeight-T.top-T.height-(this.selectBoxOptions.minBottomMargin||0),z=T.top-h.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN,J=this.selectElement.offsetWidth,B=this.setWidthControlElement(this.widthControlElement),V=Math.max(B,Math.round(J)).toString()+"px";this.selectDropDownContainer.style.width=V,this.selectList.getHTMLElement().style.height="",this.selectList.layout();let Y=this.selectList.contentHeight;this._hasDetails&&this._cachedMaxDetailsHeight===void 0&&(this._cachedMaxDetailsHeight=this.measureMaxDetailsHeight());const X=this._hasDetails?this._cachedMaxDetailsHeight:0,ie=Y+W+X,re=Math.floor(($-W-X)/this.getHeight()),te=Math.floor((z-W-X)/this.getHeight());if(P)return T.top+T.height>A.innerHeight-22||T.top<h.DEFAULT_DROPDOWN_MINIMUM_TOP_MARGIN||re<1&&te<1?!1:(re<h.DEFAULT_MINIMUM_VISIBLE_OPTIONS&&te>re&&this.options.length>re?(this._dropDownPosition=1,this.selectDropDownContainer.removeChild(this.selectDropDownListContainer),this.selectDropDownContainer.removeChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectionDetailsPane),this.selectDropDownContainer.appendChild(this.selectDropDownListContainer),this.selectionDetai
`?-1:0,n+=d;for(const i of f)i.end<=n||(i.start>=n&&(i.start+=a),i.end>=n&&(i.end+=a));return d+=a,"\u23CE"})}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverDelegateFactory.js":function(pt,Me,e){e.d(Me,{MW:function(){return g},bW:function(){return I},nZ:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/lazy.js");let k=()=>({get delay(){return-1},dispose:()=>{},showHover:()=>{}});const M=new r.d(()=>k("mouse",!1)),L=new r.d(()=>k("element",!1));function g(S){k=S}function x(S){return S==="element"?L.value:M.value}function I(){return k("element",!0)}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/hoverWidget.js":function(pt,Me,e){e.d(Me,{N4:function(){return x},jQ:function(){return I},vr:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/keyboardEvent.js"),k=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/scrollbar/scrollableElement.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),L=e("./node_modules/monaco-editor/esm/vs/nls.js");const g=r.$;class x extends M.jG{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new k.MU(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}}class I extends M.jG{static render(d,a,s){return new I(d,a,s)}constructor(d,a,s){super(),this.actionContainer=r.BC(d,g("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=r.BC(this.actionContainer,g("a.action")),this.action.setAttribute("role","button"),a.iconClass&&r.BC(this.action,g(`span.icon.${a.iconClass}`));const n=r.BC(this.action,g("span"));n.textContent=s?`${a.label} (${s})`:a.label,this._register(r.ko(this.actionContainer,r.Bx.CLICK,i=>{i.stopPropagation(),i.preventDefault(),a.run(this.actionContainer)})),this._register(r.ko(this.actionContainer,r.Bx.KEY_DOWN,i=>{const c=new F.Z(i);(c.equals(3)||c.equals(10))&&(i.stopPropagation(),i.preventDefault(),a.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(d){d?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}function S(f,d){return f&&d?(0,L.kg)("acessibleViewHint","Inspect this in the accessible view with {0}.",d):f?(0,L.kg)("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/hover/updatableHoverWidget.js":function(pt,Me,e){e.d(Me,{$:function(){return S},f:function(){return a}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/htmlContent.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/iconLabels.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),I=e("./node_modules/monaco-editor/esm/vs/nls.js");function S(s,n){(0,x.Kg)(n)?s.title=(0,L.pS)(n):n?.markdownNotSupportedFallback?s.title=n.markdownNotSupportedFallback:s.removeAttribute("title")}class f{constructor(n,i,c){this.hoverDelegate=n,this.target=i,this.fadeInAnimation=c}async update(n,i,c){var m;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),this.isDisposed)return;let u;if(n===void 0||(0,x.Kg)(n)||n instanceof HTMLElement)u=n;el
.monaco-drag-image,
.monaco-list${be}:focus .monaco-list-row.selected.focused { background-color: ${q.listFocusAndSelectionBackground}; }
`),q.listFocusAndSelectionForeground&&Se.push(`
.monaco-drag-image,
.monaco-list${be}:focus .monaco-list-row.selected.focused { color: ${q.listFocusAndSelectionForeground}; }
`),q.listInactiveFocusForeground&&(Se.push(`.monaco-list${be} .monaco-list-row.focused { color: ${q.listInactiveFocusForeground}; }`),Se.push(`.monaco-list${be} .monaco-list-row.focused:hover { color: ${q.listInactiveFocusForeground}; }`)),q.listInactiveSelectionIconForeground&&Se.push(`.monaco-list${be} .monaco-list-row.focused .codicon { color: ${q.listInactiveSelectionIconForeground}; }`),q.listInactiveFocusBackground&&(Se.push(`.monaco-list${be} .monaco-list-row.focused { background-color: ${q.listInactiveFocusBackground}; }`),Se.push(`.monaco-list${be} .monaco-list-row.focused:hover { background-color: ${q.listInactiveFocusBackground}; }`)),q.listInactiveSelectionBackground&&(Se.push(`.monaco-list${be} .monaco-list-row.selected { background-color: ${q.listInactiveSelectionBackground}; }`),Se.push(`.monaco-list${be} .monaco-list-row.selected:hover { background-color: ${q.listInactiveSelectionBackground}; }`)),q.listInactiveSelectionForeground&&Se.push(`.monaco-list${be} .monaco-list-row.selected { color: ${q.listInactiveSelectionForeground}; }`),q.listHoverBackground&&Se.push(`.monaco-list${be}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ${q.listHoverBackground}; }`),q.listHoverForeground&&Se.push(`.monaco-list${be}:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused) { color: ${q.listHoverForeground}; }`);const ae=(0,r.gI)(q.listFocusAndSelectionOutline,(0,r.gI)(q.listSelectionOutline,(ye=q.listFocusOutline)!==null&&ye!==void 0?ye:""));ae&&Se.push(`.monaco-list${be}:focus .monaco-list-row.focused.selected { outline: 1px solid ${ae}; outline-offset: -1px;}`),q.listFocusOutline&&Se.push(`
.monaco-drag-image,
.monaco-list${be}:focus .monaco-list-row.focused { outline: 1px solid ${q.listFocusOutline}; outline-offset: -1px; }
.monaco-workbench.context-menu-visible .monaco-list${be}.last-focused .monaco-list-row.focused { outline: 1px solid ${q.listFocusOutline}; outline-offset: -1px; }
`);const me=(0,r.gI)(q.listSelectionOutline,(ge=q.listInactiveFocusOutline)!==null&&ge!==void 0?ge:"");me&&Se.push(`.monaco-list${be} .monaco-list-row.focused.selected { outline: 1px dotted ${me}; outline-offset: -1px; }`),q.listSelectionOutline&&Se.push(`.monaco-list${be} .monaco-list-row.selected { outline: 1px dotted ${q.listSelectionOutline}; outline-offset: -1px; }`),q.listInactiveFocusOutline&&Se.push(`.monaco-list${be} .monaco-list-row.focused { outline: 1px dotted ${q.listInactiveFocusOutline}; outline-offset: -1px; }`),q.listHoverOutline&&Se.push(`.monaco-list${be} .monaco-list-row:hover { outline: 1px dashed ${q.listHoverOutline}; outline-offset: -1px; }`),q.listDropOverBackground&&Se.push(`
.monaco-list${be}.drop-target,
.monaco-list${be} .monaco-list-rows.drop-target,
.monaco-list${be} .monaco-list-row.drop-target { background-color: ${q.listDropOverBackground} !important; color: inherit !important; }
`),q.listDropBetweenBackground&&(Se.push(`
.monaco-list${be} .monaco-list-rows.drop-target-before .monaco-list-row:first-child::before,
.monaco-list${be} .monaco-list-row.drop-target-before::before {
content: ""; position: absolute; top: 0px; left: 0px; width: 100%; height: 1px;
background-color: ${q.listDropBetweenBackground};
}`),Se.push(`
.monaco-list${be} .monaco-list-rows.drop-target-after .monaco-list-row:last-child::after,
.monaco-list${be} .monaco-list-row.drop-target-after::after {
content: ""; position: absolute; bottom: 0px; left: 0px; width: 100%; height: 1px;
background-color: ${q.listDropBetweenBackground};
}`)),q.tableColumnsBorder&&Se.push(`
.monaco-table > .monaco-split-view2,
.monaco-table > .monaco-split-view2 .monaco-sash.vertical::before,
.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2,
.monaco-workbench:not(.reduce-motion) .monaco-table:hover > .monaco-split-view2 .monaco-sash.vertical::before {
border-color: ${q.tableColumnsBorder};
}
.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2,
.monaco-workbench:not(.reduce-motion) .monaco-table > .monaco-split-view2 .monaco-sash.vertical::before {
border-color: transparent;
}
`),q.tableOddRowsBackgroundColor&&Se.push(`
.monaco-table .monaco-list-row[data-parity=odd]:not(.focused):not(.selected):not(:hover) .monaco-table-tr,
.monaco-table .monaco-list:not(:focus) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr,
.monaco-table .monaco-list:not(.focused) .monaco-list-row[data-parity=odd].focused:not(.selected):not(:hover) .monaco-table-tr {
background-color: ${q.tableOddRowsBackgroundColor};
}
`),this.styleElement.textContent=Se.join(`
`)}}const he={listFocusBackground:"#7FB0D0",listActiveSelectionBackground:"#0E639C",listActiveSelectionForeground:"#FFFFFF",listActiveSelectionIconForeground:"#FFFFFF",listFocusAndSelectionOutline:"#90C2F9",listFocusAndSelectionBackground:"#094771",listFocusAndSelectionForeground:"#FFFFFF",listInactiveSelectionBackground:"#3F3F46",listInactiveSelectionIconForeground:"#FFFFFF",listHoverBackground:"#2A2D2E",listDropOverBackground:"#383B3D",listDropBetweenBackground:"#EEEEEE",treeIndentGuidesStroke:"#a9a9a9",treeInactiveIndentGuidesStroke:S.Q1.fromHex("#a9a9a9").transparent(.4).toString(),tableColumnsBorder:S.Q1.fromHex("#cccccc").transparent(.2).toString(),tableOddRowsBackgroundColor:S.Q1.fromHex("#cccccc").transparent(.04).toString(),listBackground:void 0,listFocusForeground:void 0,listInactiveSelectionForeground:void 0,listInactiveFocusForeground:void 0,listInactiveFocusBackground:void 0,listHoverForeground:void 0,listFocusOutline:void 0,listInactiveFocusOutline:void 0,listSelectionOutline:void 0,listHoverOutline:void 0},ve={keyboardSupport:!0,mouseSupport:!0,multipleSelectionSupport:!0,dnd:{getDragURI(){return null},onDragStart(){},onDragOver(){return!1},drop(){},dispose(){}}};function Ce(Qe,q){const ye=Qe.indexOf(q);if(ye===-1)return[];const ge=[];let be=ye-1;for(;be>=0&&Qe[be]===q-(ye-be);)ge.push(Qe[be--]);for(ge.reverse(),be=ye;be<Qe.length&&Qe[be]===q+(be-ye);)ge.push(Qe[be++]);return ge}function Pe(Qe,q){const ye=[];let ge=0,be=0;for(;ge<Qe.length||be<q.length;)if(ge>=Qe.length)ye.push(q[be++]);else if(be>=q.length)ye.push(Qe[ge++]);else if(Qe[ge]===q[be]){ye.push(Qe[ge]),ge++,be++;continue}else Qe[ge]<q[be]?ye.push(Qe[ge++]):ye.push(q[be++]);return ye}function _e(Qe,q){const ye=[];let ge=0,be=0;for(;ge<Qe.length||be<q.length;)if(ge>=Qe.length)ye.push(q[be++]);else if(be>=q.length)ye.push(Qe[ge++]);else if(Qe[ge]===q[be]){ge++,be++;continue}else Qe[ge]<q[be]?ye.push(Qe[ge++]):be++;return ye}const ee=(Qe,q)=>Qe-q;class De{constructor(q,ye){this._templateId=q,this.renderers=ye}get templateId(){return this._templateId}renderTemplate(q){return this.renderers.map(ye=>ye.renderTemplate(q))}renderElement(q,ye,ge,be){let Se=0;for(const ae of this.renderers)ae.renderElement(q,ye,ge[Se++],be)}disposeElement(q,ye,ge,be){var Se;let ae=0;for(const me of this.renderers)(Se=me.disposeElement)===null||Se===void 0||Se.call(me,q,ye,ge[ae],be),ae+=1}disposeTemplate(q){let ye=0;for(const ge of this.renderers)ge.disposeTemplate(q[ye++])}}class Te{constructor(q){this.accessibilityProvider=q,this.templateId="a18n"}renderTemplate(q){return{container:q,disposables:new s.Cm}}renderElement(q,ye,ge){const be=this.accessibilityProvider.getAriaLabel(q),Se=be&&typeof be!="string"?be:(0,h.lk)(be);ge.disposables.add((0,h.fm)(me=>{this.setAriaLabel(me.readObservable(Se),ge.container)}));const ae=this.accessibilityProvider.getAriaLevel&&this.accessibilityProvider.getAriaLevel(q);typeof ae=="number"?ge.container.setAttribute("aria-level",`${ae}`):ge.container.removeAttribute("aria-level")}setAriaLabel(q,ye){q?ye.setAttribute("aria-label",q):ye.removeAttribute("aria-label")}disposeElement(q,ye,ge,be){ge.disposables.clear()}disposeTemplate(q){q.disposables.dispose()}}class He{constructor(q,ye){this.list=q,this.dnd=ye}getDragElements(q){const ye=this.list.getSelectedElements();return ye.indexOf(q)>-1?ye:[q]}getDragURI(q){return this.dnd.getDragURI(q)}getDragLabel(q,ye){if(this.dnd.getDragLabel)return this.dnd.getDragLabel(q,ye)}onDragStart(q,ye){var ge,be;(be=(ge=this.dnd).onDragStart)===null||be===void 0||be.call(ge,q,ye)}onDragOver(q,ye,ge,be,Se){return this.dnd.onDragOver(q,ye,ge,be,Se)}onDragLeave(q,ye,ge,be){var Se,ae;(ae=(Se=this.dnd).onDragLeave)===null||ae===void 0||ae.call(Se,q,ye,ge,be)}onDragEnd(q){var ye,ge;(ge=(ye=this.dnd).onDragEnd)===null||ge===void 0||ge.call(ye,q)}drop(q,ye,ge,be,Se){this.dnd.drop(q,ye,ge,be,Se)}dispose(){this.dnd.dispose()}}class qe{get onDidChangeFocus(){return d.Jh.map(this.eventBufferer.wrapEvent(this.focus.onChange),q=>this.toListEvent(q),this.disposables)}get onDidChangeSelection(){return d.Jh.map(this.eventBuf
`),this.view.style(q)}getParentElement(q){const ye=this.model.getParentNodeLocation(q);return this.model.getNode(ye).element}getFirstElementChild(q){return this.model.getFirstElementChild(q)}getNode(q){return this.model.getNode(q)}getNodeLocation(q){return this.model.getNodeLocation(q)}collapse(q,ye=!1){return this.model.setCollapsed(q,!0,ye)}expand(q,ye=!1){return this.model.setCollapsed(q,!1,ye)}toggleCollapsed(q,ye=!1){return this.model.setCollapsed(q,void 0,ye)}isCollapsible(q){return this.model.isCollapsible(q)}setCollapsible(q,ye){return this.model.setCollapsible(q,ye)}isCollapsed(q){return this.model.isCollapsed(q)}refilter(){this._onWillRefilter.fire(void 0),this.model.refilter()}setSelection(q,ye){this.eventBufferer.bufferEvents(()=>{const ge=q.map(Se=>this.model.getNode(Se));this.selection.set(ge,ye);const be=q.map(Se=>this.model.getListIndex(Se)).filter(Se=>Se>-1);this.view.setSelection(be,ye,!0)})}getSelection(){return this.selection.get()}setFocus(q,ye){this.eventBufferer.bufferEvents(()=>{const ge=q.map(Se=>this.model.getNode(Se));this.focus.set(ge,ye);const be=q.map(Se=>this.model.getListIndex(Se)).filter(Se=>Se>-1);this.view.setFocus(be,ye,!0)})}focusNext(q=1,ye=!1,ge,be=(0,r.kx)(ge)&&ge.altKey?void 0:this.focusNavigationFilter){this.view.focusNext(q,ye,ge,be)}focusPrevious(q=1,ye=!1,ge,be=(0,r.kx)(ge)&&ge.altKey?void 0:this.focusNavigationFilter){this.view.focusPrevious(q,ye,ge,be)}focusNextPage(q,ye=(0,r.kx)(q)&&q.altKey?void 0:this.focusNavigationFilter){return this.view.focusNextPage(q,ye)}focusPreviousPage(q,ye=(0,r.kx)(q)&&q.altKey?void 0:this.focusNavigationFilter){return this.view.focusPreviousPage(q,ye,()=>{var ge,be;return(be=(ge=this.stickyScrollController)===null||ge===void 0?void 0:ge.height)!==null&&be!==void 0?be:0})}focusFirst(q,ye=(0,r.kx)(q)&&q.altKey?void 0:this.focusNavigationFilter){this.view.focusFirst(q,ye)}getFocus(){return this.focus.get()}reveal(q,ye){this.model.expandTo(q);const ge=this.model.getListIndex(q);if(ge!==-1)if(!this.stickyScrollController)this.view.reveal(ge,ye);else{const be=this.stickyScrollController.nodePositionTopBelowWidget(this.getNode(q));this.view.reveal(ge,ye,be)}}onLeftArrow(q){q.preventDefault(),q.stopPropagation();const ye=this.view.getFocusedElements();if(ye.length===0)return;const ge=ye[0],be=this.model.getNodeLocation(ge);if(!this.model.setCollapsed(be,!0)){const ae=this.model.getParentNodeLocation(be);if(!ae)return;const me=this.model.getListIndex(ae);this.view.reveal(me),this.view.setFocus([me])}}onRightArrow(q){q.preventDefault(),q.stopPropagation();const ye=this.view.getFocusedElements();if(ye.length===0)return;const ge=ye[0],be=this.model.getNodeLocation(ge);if(!this.model.setCollapsed(be,!1)){if(!ge.children.some(fe=>fe.visible))return;const[ae]=this.view.getFocus(),me=ae+1;this.view.reveal(me),this.view.setFocus([me])}}onSpace(q){q.preventDefault(),q.stopPropagation();const ye=this.view.getFocusedElements();if(ye.length===0)return;const ge=ye[0],be=this.model.getNodeLocation(ge),Se=q.browserEvent.altKey;this.model.setCollapsed(be,void 0,Se)}dispose(){var q;(0,h.AS)(this.disposables),(q=this.stickyScrollController)===null||q===void 0||q.dispose(),this.view.dispose()}}},"./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/indexTreeModel.js":function(pt,Me,e){e.d(Me,{G6:function(){return d},Mn:function(){return S},iZ:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/tree.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/symbols.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js");function I(a){return typeof a=="object"&&"visibility"in a&&"data"in a}function S(a){switch(a){case!0:return 1;case!1:return 0;default:return a}}function f(a){return typeof a.collapsible=="boolean"}class d{constructor(s,n,i,c={}){var m;this.user=
`),split:d=>d.split(`\r
`),parse:d=>f.split(d).filter(a=>!a.startsWith("#"))})},"./node_modules/monaco-editor/esm/vs/base/common/decorators.js":function(pt,Me,e){e.d(Me,{B:function(){return r}});function r(F,k,M){let L=null,g=null;if(typeof M.value=="function"?(L="value",g=M.value,g.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof M.get=="function"&&(L="get",g=M.get),!g)throw new Error("not supported");const x=`$memoize$${k}`;M[L]=function(...I){return this.hasOwnProperty(x)||Object.defineProperty(this,x,{configurable:!1,enumerable:!1,writable:!1,value:g.apply(this,I)}),this[x]}}},"./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js":function(pt,Me,e){e.d(Me,{uP:function(){return I},F1:function(){return M}});class r{constructor(f,d,a,s){this.originalStart=f,this.originalLength=d,this.modifiedStart=a,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}var F=e("./node_modules/monaco-editor/esm/vs/base/common/hash.js");class k{constructor(f){this.source=f}getElements(){const f=this.source,d=new Int32Array(f.length);for(let a=0,s=f.length;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._modifiedElemen
`+c.stack):new Error(c.message+`
`+c.stack):c},0)}}emit(c){this.listeners.forEach(m=>{m(c)})}onUnexpectedError(c){this.unexpectedErrorHandler(c),this.emit(c)}onUnexpectedExternalError(c){this.unexpectedErrorHandler(c)}}const F=new r;function k(i){x(i)||F.onUnexpectedError(i)}function M(i){x(i)||F.onUnexpectedExternalError(i)}function L(i){if(i instanceof Error){const{name:c,message:m}=i,u=i.stacktrace||i.stack;return{$isError:!0,name:c,message:m,stack:u,noTelemetry:s.isErrorNoTelemetry(i)}}return i}const g="Canceled";function x(i){return i instanceof I?!0:i instanceof Error&&i.name===g&&i.message===g}class I extends Error{constructor(){super(g),this.name=this.message}}function S(){const i=new Error(g);return i.name=i.message,i}function f(i){return i?new Error(`Illegal argument: ${i}`):new Error("Illegal argument")}function d(i){return i?new Error(`Illegal state: ${i}`):new Error("Illegal state")}class a extends Error{constructor(c){super("NotSupported"),c&&(this.message=c)}}class s extends Error{constructor(c){super(c),this.name="CodeExpectedError"}static fromError(c){if(c instanceof s)return c;const m=new s;return m.message=c.message,m.stack=c.stack,m}static isErrorNoTelemetry(c){return c.name==="CodeExpectedError"}}class n extends Error{constructor(c){super(c||"An unexpected bug occurred."),Object.setPrototypeOf(this,n.prototype)}}},"./node_modules/monaco-editor/esm/vs/base/common/event.js":function(pt,Me,e){e.d(Me,{Jh:function(){return S},QT:function(){return b},Qy:function(){return C},Wj:function(){return j},_B:function(){return O},at:function(){return w},fV:function(){return v},uI:function(){return p},vl:function(){return u}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/functional.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js");const g=!1,x=!1,I=!1;var S;(function(U){U.None=()=>k.jG.None;function K(qe){if(I){const{onDidAddListener:Qe}=qe,q=s.create();let ye=0;qe.onDidAddListener=()=>{++ye===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),q.print()),Qe?.()}}}function G(qe,Qe){return V(qe,()=>{},0,void 0,!0,void 0,Qe)}U.defer=G;function P(qe){return(Qe,q=null,ye)=>{let ge=!1,be;return be=qe(Se=>{if(!ge)return be?be.dispose():ge=!0,Qe.call(q,Se)},null,ye),ge&&be.dispose(),be}}U.once=P;function A(qe,Qe,q){return J((ye,ge=null,be)=>qe(Se=>ye.call(ge,Qe(Se)),null,be),q)}U.map=A;function T(qe,Qe,q){return J((ye,ge=null,be)=>qe(Se=>{Qe(Se),ye.call(ge,Se)},null,be),q)}U.forEach=T;function E(qe,Qe,q){return J((ye,ge=null,be)=>qe(Se=>Qe(Se)&&ye.call(ge,Se),null,be),q)}U.filter=E;function W(qe){return qe}U.signal=W;function $(...qe){return(Qe,q=null,ye)=>{const ge=(0,k.qE)(...qe.map(be=>be(Se=>Qe.call(q,Se))));return B(ge,ye)}}U.any=$;function z(qe,Qe,q,ye){let ge=q;return A(qe,be=>(ge=Qe(ge,be),ge),ye)}U.reduce=z;function J(qe,Qe){let q;const ye={onWillAddFirstListener(){q=qe(ge.fire,ge)},onDidRemoveLastListener(){q?.dispose()}};Qe||K(ye);const ge=new u(ye);return Qe?.add(ge),ge.event}function B(qe,Qe){return Qe instanceof Array?Qe.push(qe):Qe&&Qe.add(qe),qe}function V(qe,Qe,q=100,ye=!1,ge=!1,be,Se){let ae,me,fe,le=0,oe;const ne={leakWarningThreshold:be,onWillAddFirstListener(){ae=qe(Le=>{le++,me=Qe(me,Le),ye&&!fe&&(de.fire(me),me=void 0),oe=()=>{const We=me;me=void 0,fe=void 0,(!ye||le>1)&&de.fire(We),le=0},typeof q=="number"?(clearTimeout(fe),fe=setTimeout(oe,q)):fe===void 0&&(fe=0,queueMicrotask(oe))})},onWillRemoveListener(){ge&&le>0&&oe?.()},onDidRemoveLastListener(){oe=void 0,ae.dispose()}};Se||K(ne);const de=new u(ne);return Se?.add(de),de.event}U.debounce=V;function Y(qe,Qe=0,q){return U.debounce(qe,(ye,ge)=>ye?(ye.push(ge),ye):[ge],Qe,void 0,!0,void 0,q)}U.accumulate=Y;function X(qe,Qe=(ye,ge)=>ye===ge,q){let ye=!0,ge;return E(qe,be=>{const Se=ye||!Qe(be,ge);return ye=!1,ge=be,Se},q)}U.latch=X;function ie(qe,Qe,q){return[U.filter(qe,Qe,
`).slice(2).join(`
`))}}class n{constructor(K){this.value=K}}const i=2,c=(U,K)=>{if(U instanceof n)K(U);else for(let G=0;G<U.length;G++){const P=U[G];P&&K(P)}},m=g?new FinalizationRegistry(U=>{typeof U=="string"&&(console.warn("[LEAKING LISTENER] GC'ed a listener that was NOT yet disposed. This is where is was created:"),console.warn(U))}):void 0;class u{constructor(K){var G,P,A,T,E;this._size=0,this._options=K,this._leakageMon=d>0||!((G=this._options)===null||G===void 0)&&G.leakWarningThreshold?new a((A=(P=this._options)===null||P===void 0?void 0:P.leakWarningThreshold)!==null&&A!==void 0?A:d):void 0,this._perfMon=!((T=this._options)===null||T===void 0)&&T._profName?new f(this._options._profName):void 0,this._deliveryQueue=(E=this._options)===null||E===void 0?void 0:E.deliveryQueue}dispose(){var K,G,P,A;if(!this._disposed){if(this._disposed=!0,((K=this._deliveryQueue)===null||K===void 0?void 0:K.current)===this&&this._deliveryQueue.reset(),this._listeners){if(x){const T=this._listeners;queueMicrotask(()=>{c(T,E=>{var W;return(W=E.stack)===null||W===void 0?void 0:W.print()})})}this._listeners=void 0,this._size=0}(P=(G=this._options)===null||G===void 0?void 0:G.onDidRemoveLastListener)===null||P===void 0||P.call(G),(A=this._leakageMon)===null||A===void 0||A.dispose()}}get event(){var K;return(K=this._event)!==null&&K!==void 0||(this._event=(G,P,A)=>{var T,E,W,$,z;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),k.jG.None;if(this._disposed)return k.jG.None;P&&(G=G.bind(P));const J=new n(G);let B,V;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(J.stack=s.create(),B=this._leakageMon.check(J.stack,this._size+1)),x&&(J.stack=V??s.create()),this._listeners?this._listeners instanceof n?((z=this._deliveryQueue)!==null&&z!==void 0||(this._deliveryQueue=new h),this._listeners=[this._listeners,J]):this._listeners.push(J):((E=(T=this._options)===null||T===void 0?void 0:T.onWillAddFirstListener)===null||E===void 0||E.call(T,this),this._listeners=J,($=(W=this._options)===null||W===void 0?void 0:W.onDidAddFirstListener)===null||$===void 0||$.call(W,this)),this._size++;const Y=(0,k.s)(()=>{m?.unregister(Y),B?.(),this._removeListener(J)});if(A instanceof k.Cm?A.add(Y):Array.isArray(A)&&A.push(Y),m){const X=new Error().stack.split(`
`).slice(2).join(`
`).trim();m.register(Y,X,Y)}return Y}),this._event}_removeListener(K){var G,P,A,T;if((P=(G=this._options)===null||G===void 0?void 0:G.onWillRemoveListener)===null||P===void 0||P.call(G,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(T=(A=this._options)===null||A===void 0?void 0:A.onDidRemoveLastListener)===null||T===void 0||T.call(A,this),this._size=0;return}const E=this._listeners,W=E.indexOf(K);if(W===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,E[W]=void 0;const $=this._deliveryQueue.current===this;if(this._size*i<=E.length){let z=0;for(let J=0;J<E.length;J++)E[J]?E[z++]=E[J]:$&&(this._deliveryQueue.end--,z<this._deliveryQueue.i&&this._deliveryQueue.i--);E.length=z}}_deliver(K,G){var P;if(!K)return;const A=((P=this._options)===null||P===void 0?void 0:P.onListenerError)||r.dz;if(!A){K.value(G);return}try{K.value(G)}catch(T){A(T)}}_deliverQueue(K){const G=K.current._listeners;for(;K.i<K.end;)this._deliver(G[K.i++],K.value);K.reset()}fire(K){var G,P,A,T;if(!((G=this._deliveryQueue)===null||G===void 0)&&G.current&&(this._deliverQueue(this._deliveryQueue),(P=this._perfMon)===null||P===void 0||P.stop()),(A=this._perfMon)===null||A===void 0||A.start(this._size),this._listeners)if(this._listeners instanceof n)this._deliver(this._listeners,K);else{const E=this._deliveryQueue;E.enqueue(this,K,this._listeners.length),this._deliverQueue(E)}(T=this._perfMon)===null||T===void 0||T.stop()}hasListeners(){return this._size>0}}const C=()=>new h;class h{constructor(){this.i=-1,this.end=0}enqueue(K,G,P){this.i=0,this.end=P,this.current=K,this.value=G}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class v extends u{constructor(K){super(K),this._isPaused=0,this._eventQueue=new M.w,this._mergeFn=K?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const K=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(K))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(K){this._size&&(this._isPaused!==0?this._eventQueue.push(K):super.fire(K))}}class p extends v{constructor(K){var G;super(K),this._delay=(G=K.delay)!==null&&G!==void 0?G:100}fire(K){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(K)}}class b extends u{constructor(K){super(K),this._queuedEvents=[],this._mergeFn=K?.merge}fire(K){this.hasListeners()&&(this._queuedEvents.push(K),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(G=>super.fire(G)),this._queuedEvents=[]}))}}class O{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new u({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(K){const G={event:K,listener:null};this.events.push(G),this.hasListeners&&this.hook(G);const P=()=>{this.hasListeners&&this.unhook(G);const A=this.events.indexOf(G);this.events.splice(A,1)};return(0,k.s)((0,F.P)(P))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(K=>this.hook(K))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(K=>this.unhook(K))}hook(K){K.listener=K.event(G=>this.emitter.fire(G))}unhook(K){var G;(G=K.listener)===null||G===void 0||G.dispose(),K.listener=null}dispose(){var K;this.emitter.dispose();for(const G of this.events)(K=G.listener)===null||K===void 0||K.dispose();this.events=[]}}class w{constructor(){this.buffers=[]}wrapEvent(K){return(G,P,A)=>K(T=>{const E=this.buffers[this.buffers.length-1];E?E.push(()=>G.call(P,T)):G.call(P,T)},void 0,A)}bufferEvents(K){const G=[];this.buffers.push(G);const P=K();return this.buffers.pop(),G.forEach(A=>A()),P}}class j{constructor(){this.listening=!1,this.inputEvent=S.None,this.inputEventListener=k.jG.None,this.emitt
`;for(let tt=0;tt<=lt;tt++)tt===0?qt+=" |":qt+=`${Ue[tt-1]}|`,qt+=we[tt].slice(0,Kt+1).map(Mt=>Zt(Mt.toString(),3)).join("|")+`
`;return qt}function ye(we,Ue,lt,Et){we=we.substr(Ue),lt=lt.substr(Et),console.log(q(He,we,we.length,lt,lt.length)),console.log(q(qe,we,we.length,lt,lt.length)),console.log(q(Te,we,we.length,lt,lt.length))}function ge(we,Ue){if(Ue<0||Ue>=we.length)return!1;const lt=we.codePointAt(Ue);switch(lt){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:case 60:case 62:case 40:case 41:case 91:case 93:case 123:case 125:return!0;case void 0:return!1;default:return!!a.Ss(lt)}}function be(we,Ue){if(Ue<0||Ue>=we.length)return!1;switch(we.charCodeAt(Ue)){case 32:case 9:return!0;default:return!1}}function Se(we,Ue,lt){return Ue[we]!==lt[we]}function ae(we,Ue,lt,Et,Kt,Zt,qt=!1){for(;Ue<lt&&Kt<Zt;)we[Ue]===Et[Kt]&&(qt&&(ee[Ue]=Kt),Ue+=1),Kt+=1;return Ue===lt}var me;(function(we){we.Default=[-100,0];function Ue(lt){return!lt||lt.length===2&&lt[0]===-100&&lt[1]===0}we.isDefault=Ue})(me||(me={}));class fe{constructor(Ue,lt){this.firstMatchCanBeWeak=Ue,this.boostFullMatch=lt}}fe.default={boostFullMatch:!0,firstMatchCanBeWeak:!1};function le(we,Ue,lt,Et,Kt,Zt,qt=fe.default){const tt=we.length>Ce?Ce:we.length,Mt=Et.length>Ce?Ce:Et.length;if(lt>=tt||Zt>=Mt||tt-lt>Mt-Zt||!ae(Ue,lt,tt,Kt,Zt,Mt,!0))return;oe(tt,Mt,lt,Zt,Ue,Kt);let Ht=1,xt=1,Jt=lt,Nt=Zt;const Be=[!1];for(Ht=1,Jt=lt;Jt<tt;Ht++,Jt++){const An=ee[Jt],Hn=De[Jt],Kn=Jt+1<tt?De[Jt+1]:Mt;for(xt=An-Zt+1,Nt=An;Nt<Kn;xt++,Nt++){let mi=Number.MIN_SAFE_INTEGER,yi=!1;Nt<=Hn&&(mi=ne(we,Ue,Jt,lt,Et,Kt,Nt,Mt,Zt,Te[Ht-1][xt-1]===0,Be));let ri=0;mi!==Number.MAX_SAFE_INTEGER&&(yi=!0,ri=mi+He[Ht-1][xt-1]);const fi=Nt>An,Mi=fi?He[Ht][xt-1]+(Te[Ht][xt-1]>0?-5:0):0,xi=Nt>An+1&&Te[Ht][xt-1]>0,ci=xi?He[Ht][xt-2]+(Te[Ht][xt-2]>0?-5:0):0;if(xi&&(!fi||ci>=Mi)&&(!yi||ci>=ri))He[Ht][xt]=ci,qe[Ht][xt]=3,Te[Ht][xt]=0;else if(fi&&(!yi||Mi>=ri))He[Ht][xt]=Mi,qe[Ht][xt]=2,Te[Ht][xt]=0;else if(yi)He[Ht][xt]=ri,qe[Ht][xt]=1,Te[Ht][xt]=Te[Ht-1][xt-1]+1;else throw new Error("not possible")}}if(Qe&&ye(we,lt,Et,Zt),!Be[0]&&!qt.firstMatchCanBeWeak)return;Ht--,xt--;const vt=[He[Ht][xt],Zt];let Gt=0,_n=0;for(;Ht>=1;){let An=xt;do{const Hn=qe[Ht][An];if(Hn===3)An=An-2;else if(Hn===2)An=An-1;else break}while(An>=1);Gt>1&&Ue[lt+Ht-1]===Kt[Zt+xt-1]&&!Se(An+Zt-1,Et,Kt)&&Gt+1>Te[Ht][An]&&(An=xt),An===xt?Gt++:Gt=1,_n||(_n=An),Ht--,xt=An-1,vt.push(xt)}Mt===tt&&qt.boostFullMatch&&(vt[0]+=2);const Fn=_n-tt;return vt[0]-=Fn,vt}function oe(we,Ue,lt,Et,Kt,Zt){let qt=we-1,tt=Ue-1;for(;qt>=lt&&tt>=Et;)Kt[qt]===Zt[tt]&&(De[qt]=tt,qt--),tt--}function ne(we,Ue,lt,Et,Kt,Zt,qt,tt,Mt,Ht,xt){if(Ue[lt]!==Zt[qt])return Number.MIN_SAFE_INTEGER;let Jt=1,Nt=!1;return qt===lt-Et?Jt=we[lt]===Kt[qt]?7:5:Se(qt,Kt,Zt)&&(qt===0||!Se(qt-1,Kt,Zt))?(Jt=we[lt]===Kt[qt]?7:5,Nt=!0):ge(Zt,qt)&&(qt===0||!ge(Zt,qt-1))?Jt=5:(ge(Zt,qt-1)||be(Zt,qt-1))&&(Jt=5,Nt=!0),Jt>1&&lt===Et&&(xt[0]=!0),Nt||(Nt=Se(qt,Kt,Zt)||ge(Zt,qt-1)||be(Zt,qt-1)),lt===Et?qt>Mt&&(Jt-=Nt?3:5):Ht?Jt+=Nt?2:0:Jt+=Nt?0:1,qt+1===tt&&(Jt-=Nt?3:5),Jt}function de(we,Ue,lt,Et,Kt,Zt,qt){return Le(we,Ue,lt,Et,Kt,Zt,!0,qt)}function Le(we,Ue,lt,Et,Kt,Zt,qt,tt){let Mt=le(we,Ue,lt,Et,Kt,Zt,tt);if(Mt&&!qt)return Mt;if(we.length>=3){const Ht=Math.min(7,we.length-1);for(let xt=lt+1;xt<Ht;xt++){const Jt=We(we,xt);if(Jt){const Nt=le(Jt,Jt.toLowerCase(),lt,Et,Kt,Zt,tt);Nt&&(Nt[0]-=3,(!Mt||Nt[0]>Mt[0])&&(Mt=Nt))}}}return Mt}function We(we,Ue){if(Ue+1>=we.length)return;const lt=we[Ue],Et=we[Ue+1];if(lt!==Et)return we.slice(0,Ue)+Et+lt+we.slice(Ue+2)}},"./node_modules/monaco-editor/esm/vs/base/common/functional.js":function(pt,Me,e){e.d(Me,{P:function(){return r}});function r(F,k){const M=this;let L=!1,g;return function(){if(L)return g;if(L=!0,k)try{g=F.apply(M,arguments)}finally{k()}else g=F.apply(M,arguments);return g}}},"./node_modules/monaco-editor/esm/vs/base/common/glob.js":function(pt,Me,e){e.d(Me,{YW:function(){return T},qg:function(){return E}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/extpath.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),M=e("./node_modules/monaco-editor/esm/vs/base
`:`
`),this}appendMarkdown(c){return this.value+=c,this}appendCodeblock(c,m){return this.value+=`
${d(m,c)}
`,this}appendLink(c,m,u){return this.value+="[",this.value+=this._escape(m,"]"),this.value+="](",this.value+=this._escape(String(c),")"),u&&(this.value+=` "${this._escape(this._escape(u,'"'),")")}"`),this.value+=")",this}_escape(c,m){const u=new RegExp((0,M.bm)(m),"g");return c.replace(u,(C,h)=>c.charAt(h-1)!=="\\"?`\\${C}`:C)}}function x(i){return I(i)?!i.value:Array.isArray(i)?i.every(x):!0}function I(i){return i instanceof g?!0:i&&typeof i=="object"?typeof i.value=="string"&&(typeof i.isTrusted=="boolean"||typeof i.isTrusted=="object"||i.isTrusted===void 0)&&(typeof i.supportThemeIcons=="boolean"||i.supportThemeIcons===void 0):!1}function S(i,c){return i===c?!0:!i||!c?!1:i.value===c.value&&i.isTrusted===c.isTrusted&&i.supportThemeIcons===c.supportThemeIcons&&i.supportHtml===c.supportHtml&&(i.baseUri===c.baseUri||!!i.baseUri&&!!c.baseUri&&(0,k.n4)(L.r.from(i.baseUri),L.r.from(c.baseUri)))}function f(i){return i.replace(/[\\`*_{}[\]()#+\-!~]/g,"\\$&")}function d(i,c){var m,u;const C=(u=(m=i.match(/^`+/gm))===null||m===void 0?void 0:m.reduce((v,p)=>v.length>p.length?v:p).length)!==null&&u!==void 0?u:0,h=C>=3?C+1:3;return[`${"`".repeat(h)}${c}`,i,`${"`".repeat(h)}`].join(`
`)}function a(i){return i.replace(/"/g,"&quot;")}function s(i){return i&&i.replace(/\\([\\`*_{}[\]()#+\-.!~])/g,"$1")}function n(i){const c=[],m=i.split("|").map(C=>C.trim());i=m[0];const u=m[1];if(u){const C=/height=(\d+)/.exec(u),h=/width=(\d+)/.exec(u),v=C?C[1]:"",p=h?h[1]:"",b=isFinite(parseInt(p)),O=isFinite(parseInt(v));b&&c.push(`width="${p}"`),O&&c.push(`height="${v}"`)}return{href:i,dimensions:c}}},"./node_modules/monaco-editor/esm/vs/base/common/iconLabels.js":function(pt,Me,e){e.d(Me,{R$:function(){return a},_k:function(){return n},m2:function(){return x},pS:function(){return d},pz:function(){return i},sA:function(){return S}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/filters.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/themables.js");const M="$(",L=new RegExp(`\\$\\(${k.L.iconNameExpression}(?:${k.L.iconModifierExpression})?\\)`,"g"),g=new RegExp(`(\\\\)?${L.source}`,"g");function x(c){return c.replace(g,(m,u)=>u?m:`\\${m}`)}const I=new RegExp(`\\\\${L.source}`,"g");function S(c){return c.replace(I,m=>`\\${m}`)}const f=new RegExp(`(\\s)?(\\\\)?${L.source}(\\s)?`,"g");function d(c){return c.indexOf(M)===-1?c:c.replace(f,(m,u,C,h)=>C?m:u||h||"")}function a(c){return c?c.replace(/\$\((.*?)\)/g,(m,u)=>` ${u} `).trim():""}const s=new RegExp(`\\$\\(${k.L.iconNameCharacter}+\\)`,"g");function n(c){s.lastIndex=0;let m="";const u=[];let C=0;for(;;){const h=s.lastIndex,v=s.exec(c),p=c.substring(h,v?.index);if(p.length>0){m+=p;for(let b=0;b<p.length;b++)u.push(C)}if(!v)break;C+=v[0].length}return{text:m,iconOffsets:u}}function i(c,m,u=!1){const{text:C,iconOffsets:h}=m;if(!h||h.length===0)return(0,r.yr)(c,C,u);const v=(0,F.NB)(C," "),p=C.length-v.length,b=(0,r.yr)(c,v,u);if(b)for(const O of b){const w=h[O.start+p]+p;O.start+=w,O.end+=w}return b}},"./node_modules/monaco-editor/esm/vs/base/common/idGenerator.js":function(pt,Me,e){e.d(Me,{n:function(){return r},r:function(){return F}});class r{constructor(M){this._prefix=M,this._lastId=0}nextId(){return this._prefix+ ++this._lastId}}const F=new r("id#")},"./node_modules/monaco-editor/esm/vs/base/common/ime.js":function(pt,Me,e){e.d(Me,{M:function(){return k}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js");class F{constructor(){this._onDidChange=new r.vl,this.onDidChange=this._onDidChange.event,this._enabled=!0}get enabled(){return this._enabled}enable(){this._enabled=!0,this._onDidChange.fire()}disable(){this._enabled=!1,this._onDidChange.fire()}}const k=new F},"./node_modules/monaco-editor/esm/vs/base/common/iterator.js":function(pt,Me,e){e.d(Me,{f:function(){return r}});var r;(function(F){function k(v){return v&&typeof v=="object"&&typeof v[Symbol.iterator]=="function"}F.is=k;const M=Object.freeze([]);function L(){return M}F.empty=L;function*g(v){yield v}F.single=g;function x(v){return k(v)?v:g(v)}F.wrap=x;function I(v){return v||M}F.from=I;function*S(v){for(let p=v.length-1;p>=0;p--)yield v[p]}F.reverse=S;function f(v){return!v||v[Symbol.iterator]().next().done===!0}F.isEmpty=f;function d(v){return v[Symbol.iterator]().next().value}F.first=d;function a(v,p){for(const b of v)if(p(b))return!0;return!1}F.some=a;function s(v,p){for(const b of v)if(p(b))return b}F.find=s;function*n(v,p){for(const b of v)p(b)&&(yield b)}F.filter=n;function*i(v,p){let b=0;for(const O of v)yield p(O,b++)}F.map=i;function*c(...v){for(const p of v)yield*p}F.concat=c;function m(v,p,b){let O=b;for(const w of v)O=p(O,w);return O}F.reduce=m;function*u(v,p,b=v.length){for(p<0&&(p+=v.length),b<0?b+=v.length:b>v.length&&(b=v.length);p<b;p++)yield v[p]}F.slice=u;function C(v,p=Number.POSITIVE_INFINITY){const b=[];if(p===0)return[b,v];const O=v[Symbol.iterator]();for(let w=0;w<p;w++){const j=O.next();if(j.done)return[b,F.empty()];b.push(j.value)}return[b,{[Symbol.iterator](){return O}}]}F.consume=C;async function h(v){const p=[];for await(const b of v)p.push(b);return Promise.resolve(p)}F.asyncToArray=h})(r||(r={}))},"./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js":function(pt,
`):j.text,U),w.preventDefault(),w.clipboardData&&p.setTextData(w.clipboardData,j.text,j.html,U)}};v=i([c(4,s.j),c(5,n.rr)],v);const p={getTextData(O){const w=O.getData(S.K.text);let j=null;const U=O.getData("vscode-editor-data");if(typeof U=="string")try{j=JSON.parse(U),j.version!==1&&(j=null)}catch{}return w.length===0&&j===null&&O.files.length>0?[Array.prototype.slice.call(O.files,0).map(G=>G.name).join(`
`),null]:[w,j]},setTextData(O,w,j,U){O.setData(S.K.text,w),typeof j=="string"&&O.setData("text/html",j),O.setData("vscode-editor-data",JSON.stringify(U))}};class b extends I.jG{get ownerDocument(){return this._actual.ownerDocument}constructor(w){super(),this._actual=w,this.onKeyDown=this._register(new k.f(this._actual,"keydown")).event,this.onKeyUp=this._register(new k.f(this._actual,"keyup")).event,this.onCompositionStart=this._register(new k.f(this._actual,"compositionstart")).event,this.onCompositionUpdate=this._register(new k.f(this._actual,"compositionupdate")).event,this.onCompositionEnd=this._register(new k.f(this._actual,"compositionend")).event,this.onBeforeInput=this._register(new k.f(this._actual,"beforeinput")).event,this.onInput=this._register(new k.f(this._actual,"input")).event,this.onCut=this._register(new k.f(this._actual,"cut")).event,this.onCopy=this._register(new k.f(this._actual,"copy")).event,this.onPaste=this._register(new k.f(this._actual,"paste")).event,this.onFocus=this._register(new k.f(this._actual,"focus")).event,this.onBlur=this._register(new k.f(this._actual,"blur")).event,this._onSyntheticTap=this._register(new x.vl),this.onSyntheticTap=this._onSyntheticTap.event,this._ignoreSelectionChangeTime=0,this._register(this.onKeyDown(()=>L.p.onKeyDown())),this._register(this.onBeforeInput(()=>L.p.onBeforeInput())),this._register(this.onInput(()=>L.p.onInput())),this._register(this.onKeyUp(()=>L.p.onKeyUp())),this._register(F.ko(this._actual,m.Tap,()=>this._onSyntheticTap.fire()))}hasFocus(){const w=F.jG(this._actual);return w?w.activeElement===this._actual:this._actual.isConnected?F.bq()===this._actual:!1}setIgnoreSelectionChangeTime(w){this._ignoreSelectionChangeTime=Date.now()}getIgnoreSelectionChangeTime(){return this._ignoreSelectionChangeTime}resetSelectionChangeTime(){this._ignoreSelectionChangeTime=0}getValue(){return this._actual.value}setValue(w,j){const U=this._actual;U.value!==j&&(this.setIgnoreSelectionChangeTime("setValue"),U.value=j)}getSelectionStart(){return this._actual.selectionDirection==="backward"?this._actual.selectionEnd:this._actual.selectionStart}getSelectionEnd(){return this._actual.selectionDirection==="backward"?this._actual.selectionStart:this._actual.selectionEnd}setSelectionRange(w,j,U){const K=this._actual;let G=null;const P=F.jG(K);P?G=P.activeElement:G=F.bq();const A=F.zk(G),T=G===K,E=K.selectionStart,W=K.selectionEnd;if(T&&E===j&&W===U){r.gm&&A.parent!==A&&K.focus();return}if(T){this.setIgnoreSelectionChangeTime("setSelectionRange"),K.setSelectionRange(j,U),r.gm&&A.parent!==A&&K.focus();return}try{const $=F.zK(K);this.setIgnoreSelectionChangeTime("setSelectionRange"),K.focus(),K.setSelectionRange(j,U),F.wk(K,$)}catch{}}}},"./node_modules/monaco-editor/esm/vs/editor/browser/controller/textAreaState.js":function(pt,Me,e){e.d(Me,{Al:function(){return L},Hf:function(){return k},_O:function(){return M}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");const k=!1;class M{constructor(x,I,S,f,d){this.value=x,this.selectionStart=I,this.selectionEnd=S,this.selection=f,this.newlineCountBeforeSelection=d}toString(){return`[ <${this.value}>, selectionStart: ${this.selectionStart}, selectionEnd: ${this.selectionEnd}]`}static readFromTextArea(x,I){const S=x.getValue(),f=x.getSelectionStart(),d=x.getSelectionEnd();let a;if(I){const s=S.substring(0,f),n=I.value.substring(0,I.selectionStart);s===n&&(a=I.newlineCountBeforeSelection)}return new M(S,f,d,null,a)}collapseSelection(){return this.selectionStart===this.value.length?this:new M(this.value,this.value.length,this.value.length,null,void 0)}writeToTextArea(x,I,S){k&&console.log(`writeToTextArea ${x}: ${this.toString()}`),I.setValue(x,this.value),S&&I.setSelectionRange(x,this.selectionStart,this.selectionEnd)}deduceEditorPosition(x){var I,S,f,d,a,s,n,i;if(x<=this.selectionStart){const u=this.value.substring(x,this.selectionStart);return this._finishDeduceEditorPosition((S=(I=this.selection)===null||I===void 0?void 0:I.getStartPosition()
`,d+1))!==-1;)f++;return[x,S*I.length,f]}static deduceInput(x,I,S){if(!x)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};k&&(console.log("------------------------deduceInput"),console.log(`PREVIOUS STATE: ${x.toString()}`),console.log(`CURRENT STATE: ${I.toString()}`));const f=Math.min(r.Qp(x.value,I.value),x.selectionStart,I.selectionStart),d=Math.min(r.Vi(x.value,I.value),x.value.length-x.selectionEnd,I.value.length-I.selectionEnd),a=x.value.substring(f,x.value.length-d),s=I.value.substring(f,I.value.length-d),n=x.selectionStart-f,i=x.selectionEnd-f,c=I.selectionStart-f,m=I.selectionEnd-f;if(k&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${a}>, selectionStart: ${n}, selectionEnd: ${i}`),console.log(`AFTER DIFFING CURRENT STATE: <${s}>, selectionStart: ${c}, selectionEnd: ${m}`)),c===m){const C=x.selectionStart-f;return k&&console.log(`REMOVE PREVIOUS: ${C} chars`),{text:s,replacePrevCharCnt:C,replaceNextCharCnt:0,positionDelta:0}}const u=i-n;return{text:s,replacePrevCharCnt:u,replaceNextCharCnt:0,positionDelta:0}}static deduceAndroidCompositionInput(x,I){if(!x)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:0};if(k&&(console.log("------------------------deduceAndroidCompositionInput"),console.log(`PREVIOUS STATE: ${x.toString()}`),console.log(`CURRENT STATE: ${I.toString()}`)),x.value===I.value)return{text:"",replacePrevCharCnt:0,replaceNextCharCnt:0,positionDelta:I.selectionEnd-x.selectionEnd};const S=Math.min(r.Qp(x.value,I.value),x.selectionEnd),f=Math.min(r.Vi(x.value,I.value),x.value.length-x.selectionEnd),d=x.value.substring(S,x.value.length-f),a=I.value.substring(S,I.value.length-f),s=x.selectionStart-S,n=x.selectionEnd-S,i=I.selectionStart-S,c=I.selectionEnd-S;return k&&(console.log(`AFTER DIFFING PREVIOUS STATE: <${d}>, selectionStart: ${s}, selectionEnd: ${n}`),console.log(`AFTER DIFFING CURRENT STATE: <${a}>, selectionStart: ${i}, selectionEnd: ${c}`)),{text:a,replacePrevCharCnt:n,replaceNextCharCnt:d.length-n,positionDelta:c-a.length}}}M.EMPTY=new M("",0,0,null,void 0);class L{static _getPageOfLine(x,I){return Math.floor((x-1)/I)}static _getRangeForPage(x,I){const S=x*I,f=S+1,d=S+I;return new F.Q(f,1,d+1,1)}static fromEditorSelection(x,I,S,f){const a=L._getPageOfLine(I.startLineNumber,S),s=L._getRangeForPage(a,S),n=L._getPageOfLine(I.endLineNumber,S),i=L._getRangeForPage(n,S);let c=s.intersectRanges(new F.Q(1,1,I.startLineNumber,I.startColumn));if(f&&x.getValueLengthInRange(c,1)>500){const b=x.modifyPosition(c.getEndPosition(),-500);c=F.Q.fromPositions(b,c.getEndPosition())}const m=x.getValueInRange(c,1),u=x.getLineCount(),C=x.getLineMaxColumn(u);let h=i.intersectRanges(new F.Q(I.endLineNumber,I.endColumn,u,C));if(f&&x.getValueLengthInRange(h,1)>500){const b=x.modifyPosition(h.getStartPosition(),500);h=F.Q.fromPositions(h.getStartPosition(),b)}const v=x.getValueInRange(h,1);let p;if(a===n||a+1===n)p=x.getValueInRange(I,1);else{const b=s.intersectRanges(I),O=i.intersectRanges(I);p=x.getValueInRange(b,1)+"\u2026"+x.getValueInRange(O,1)}return f&&p.length>2*500&&(p=p.substring(0,500)+"\u2026"+p.substring(p.length-500,p.length)),new M(m+p+v,m.length,m.length+p.length,I,c.endLineNumber-c.startLineNumber)}}},"./node_modules/monaco-editor/esm/vs/editor/browser/coreCommands.js":function(pt,Me,e){e.d(Me,{Yh:function(){return U},QM:function(){return b}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/browser/browser.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),M=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/aria/aria.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/cursorCommon.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class f{static columnSelect(A,T,E,W,$,z){const J=Math.abs($-E)+1,B=E>$,V=W>z,Y=W<z,X=
${U}: ${j};`}return b+=`
}`,b}dispose(){this._styleElementDisposables.dispose(),this._styleElement=void 0}increaseRefCount(){this._referenceCount++}decreaseRefCount(){this._referenceCount--}hasReferences(){return this._referenceCount>0}}function C(h){return h.replace(/(^[A-Z])/,([v])=>v.toLowerCase()).replace(/([A-Z])/g,([v])=>`-${v.toLowerCase()}`)}},"./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js":function(pt,Me,e){e.d(Me,{DX:function(){return h},E_:function(){return w},Fl:function(){return j},HW:function(){return G},PF:function(){return p},aU:function(){return W},dS:function(){return P},fE:function(){return u},gW:function(){return U},ih:function(){return $},ke:function(){return O},ks:function(){return v},qO:function(){return b},tc:function(){return z},uB:function(){return m},xX:function(){return K}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/browser/services/codeEditorService.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/services/model.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/services/resolverService.js"),x=e("./node_modules/monaco-editor/esm/vs/platform/actions/common/actions.js"),I=e("./node_modules/monaco-editor/esm/vs/platform/commands/common/commands.js"),S=e("./node_modules/monaco-editor/esm/vs/platform/contextkey/common/contextkey.js"),f=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),d=e("./node_modules/monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js"),a=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),s=e("./node_modules/monaco-editor/esm/vs/platform/telemetry/common/telemetry.js"),n=e("./node_modules/monaco-editor/esm/vs/base/common/types.js"),i=e("./node_modules/monaco-editor/esm/vs/platform/log/common/log.js"),c=e("./node_modules/monaco-editor/esm/vs/base/browser/dom.js");class m{constructor(B){this.id=B.id,this.precondition=B.precondition,this._kbOpts=B.kbOpts,this._menuOpts=B.menuOpts,this.metadata=B.metadata}register(){if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){const B=Array.isArray(this._kbOpts)?this._kbOpts:[this._kbOpts];for(const V of B){let Y=V.kbExpr;this.precondition&&(Y?Y=S.M$.and(Y,this.precondition):Y=this.precondition);const X={id:this.id,weight:V.weight,args:V.args,when:Y,primary:V.primary,secondary:V.secondary,win:V.win,linux:V.linux,mac:V.mac};d.f.registerKeybindingRule(X)}}I.w.registerCommand({id:this.id,handler:(B,V)=>this.runCommand(B,V),metadata:this.metadata})}_registerMenuItem(B){x.ZG.appendMenuItem(B.menuId,{group:B.group,command:{id:this.id,title:B.title,icon:B.icon,precondition:this.precondition},when:B.when,order:B.order})}}class u extends m{constructor(){super(...arguments),this._implementations=[]}addImplementation(B,V,Y,X){return this._implementations.push({priority:B,name:V,implementation:Y,when:X}),this._implementations.sort((ie,re)=>re.priority-ie.priority),{dispose:()=>{for(let ie=0;ie<this._implementations.length;ie++)if(this._implementations[ie].implementation===Y){this._implementations.splice(ie,1);return}}}}runCommand(B,V){const Y=B.get(i.rr),X=B.get(S.fN);Y.trace(`Executing Command '${this.id}' which has ${this._implementations.length} bound.`);for(const ie of this._implementations){if(ie.when){const te=X.getContext((0,c.bq)());if(!ie.when.evaluate(te))continue}const re=ie.implementation(B,V);if(re)return Y.trace(`Command '${this.id}' was handled by '${ie.name}'.`),typeof re=="boolean"?void 0:re}Y.trace(`The Command '${this.id}' was not handled by any implementation.`)}}class C extends m{constructor(B,V){super(V),this.command=B}runCommand(B,V){return this.command.runCommand(B,V)}}class h extends m{static bindToContribution(B){return class extends h{constructor(Y){super(Y),this._callback=Y.handler}runEditorCommand(Y,X,ie){const re=B(X);re&&this.
target: ${this.target?this.target.outerHTML:null}`}get wouldBenefitFromHitTestTargetSwitch(){return!this._useHitTestTarget&&this.hitTestResult.value.hitTarget!==null&&this.target!==this.hitTestResult.value.hitTarget}switchToHitTestTarget(){this._useHitTestTarget=!0}_getMouseColumn(t=null){return t&&t.column<this._ctx.viewModel.getLineMaxColumn(t.lineNumber)?Ce.A.visibleColumnFromColumn(this._ctx.viewModel.getLineContent(t.lineNumber),t.column,this._ctx.viewModel.model.getOptions().tabSize)+1:this.mouseColumn}fulfillUnknown(t=null){return qe.createUnknown(this.target,this._getMouseColumn(t),t)}fulfillTextarea(){return qe.createTextarea(this.target,this._getMouseColumn())}fulfillMargin(t,l,y,H){return qe.createMargin(t,this.target,this._getMouseColumn(l),l,y,H)}fulfillViewZone(t,l,y){return qe.createViewZone(t,this.target,this._getMouseColumn(l),l,y)}fulfillContentText(t,l,y){return qe.createContentText(this.target,this._getMouseColumn(t),t,l,y)}fulfillContentEmpty(t,l){return qe.createContentEmpty(this.target,this._getMouseColumn(t),t,l)}fulfillContentWidget(t){return qe.createContentWidget(this.target,this._getMouseColumn(),t)}fulfillScrollbar(t){return qe.createScrollbar(this.target,this._getMouseColumn(t),t)}fulfillOverlayWidget(t){return qe.createOverlayWidget(this.target,this._getMouseColumn(),t)}}const be={isAfterLines:!0};function Se(Pt){return{isAfterLines:!1,horizontalDistanceToText:Pt}}class ae{constructor(t,l){this._context=t,this._viewHelper=l}mouseTargetIsWidget(t){const l=t.target,y=te.collect(l,this._viewHelper.viewDomNode);return!!(Qe.isChildOfContentWidgets(y)||Qe.isChildOfOverflowingContentWidgets(y)||Qe.isChildOfOverlayWidgets(y)||Qe.isChildOfOverflowingOverlayWidgets(y))}createMouseTarget(t,l,y,H,Z){const pe=new q(this._context,this._viewHelper,t),ke=new ge(pe,l,y,H,Z);try{const Ve=ae._createMouseTarget(pe,ke);if(Ve.type===6&&pe.stickyTabStops&&Ve.position!==null){const Xe=ae._snapToSoftTabBoundary(Ve.position,pe.viewModel),gt=ve.Q.fromPositions(Xe,Xe).plusRange(Ve.range);return ke.fulfillContentText(Xe,gt,Ve.detail)}return Ve}catch{return ke.fulfillUnknown()}}static _createMouseTarget(t,l){if(l.target===null)return l.fulfillUnknown();const y=l;let H=null;return!Qe.isChildOfOverflowGuard(l.targetPath)&&!Qe.isChildOfOverflowingContentWidgets(l.targetPath)&&!Qe.isChildOfOverflowingOverlayWidgets(l.targetPath)&&(H=H||l.fulfillUnknown()),H=H||ae._hitTestContentWidget(t,y),H=H||ae._hitTestOverlayWidget(t,y),H=H||ae._hitTestMinimap(t,y),H=H||ae._hitTestScrollbarSlider(t,y),H=H||ae._hitTestViewZone(t,y),H=H||ae._hitTestMargin(t,y),H=H||ae._hitTestViewCursor(t,y),H=H||ae._hitTestTextArea(t,y),H=H||ae._hitTestViewLines(t,y),H=H||ae._hitTestScrollbar(t,y),H||l.fulfillUnknown()}static _hitTestContentWidget(t,l){if(Qe.isChildOfContentWidgets(l.targetPath)||Qe.isChildOfOverflowingContentWidgets(l.targetPath)){const y=t.findAttribute(l.target,"widgetId");return y?l.fulfillContentWidget(y):l.fulfillUnknown()}return null}static _hitTestOverlayWidget(t,l){if(Qe.isChildOfOverlayWidgets(l.targetPath)||Qe.isChildOfOverflowingOverlayWidgets(l.targetPath)){const y=t.findAttribute(l.target,"widgetId");return y?l.fulfillOverlayWidget(y):l.fulfillUnknown()}return null}static _hitTestViewCursor(t,l){if(l.target){const y=t.lastRenderData.lastViewCursorsRenderData;for(const H of y)if(l.target===H.domNode)return l.fulfillContentText(H.position,null,{mightBeForeignElement:!1,injectedText:null})}if(l.isInContentArea){const y=t.lastRenderData.lastViewCursorsRenderData,H=l.mouseContentHorizontalOffset,Z=l.mouseVerticalOffset;for(const pe of y){if(H<pe.contentLeft||H>pe.contentLeft+pe.width)continue;const ke=t.getVerticalOffsetForLineNumber(pe.position.lineNumber);if(ke<=Z&&Z<=ke+pe.height)return l.fulfillContentText(pe.position,null,{mightBeForeignElement:!1,injectedText:null})}}return null}static _hitTestViewZone(t,l){const y=t.getZoneAtCoord(l.mouseVerticalOffset);if(y){const H=l.isInContentArea?8:5;return l.fulfillViewZone(H,y.position,y)}return null}static _hitTestTextArea(t,l){return Qe.isTextArea(l.targetPath)?t.lastRenderData
`),Gn=Mn.substring(Tn+1),Zn=Gn.lastIndexOf(" "),ii=Gn.length-Zn-1,si=Yt.getStartPosition(),pi=Math.min(si.column-1,ii),ai=si.column-1-pi,li=Gn.substring(0,Gn.length-pi),{tabSize:_i}=this._context.viewModel.model.getOptions(),gi=Si(this.textArea.domNode.ownerDocument,li,this._fontInfo,_i);return{distanceToModelLineStart:ai,widthOfHiddenTextBefore:gi}})(),{distanceToModelLineEnd:mn}=(()=>{const Mn=Bt.value.substring(Math.max(Bt.selectionStart,Bt.selectionEnd)),Tn=Mn.indexOf(`
`),Gn=Tn===-1?Mn:Mn.substring(0,Tn),Zn=Gn.indexOf(" "),ii=Zn===-1?Gn.length:Gn.length-Zn-1,si=Yt.getEndPosition(),pi=Math.min(this._context.viewModel.model.getLineMaxColumn(si.lineNumber)-si.column,ii);return{distanceToModelLineEnd:this._context.viewModel.model.getLineMaxColumn(si.lineNumber)-si.column-pi}})();this._context.viewModel.revealRange("keyboard",!0,ve.Q.fromPositions(this._selections[0].getStartPosition()),0,1),this._visibleTextArea=new xi(this._context,Yt.startLineNumber,tn,gn,mn),this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render(),this.textArea.setClassName(`inputarea ${An} ime-input`),this._viewController.compositionStart(),this._context.viewModel.onCompositionStart()})),this._register(this._textAreaInput.onCompositionUpdate(It=>{this._visibleTextArea&&(this._visibleTextArea.prepareRender(this._visibleRangeProvider),this._render())})),this._register(this._textAreaInput.onCompositionEnd(()=>{this._visibleTextArea=null,this.textArea.setAttribute("wrap",this._textAreaWrapping&&!this._visibleTextArea?"on":"off"),this._render(),this.textArea.setClassName(`inputarea ${An}`),this._viewController.compositionEnd(),this._context.viewModel.onCompositionEnd()})),this._register(this._textAreaInput.onFocus(()=>{this._context.viewModel.setHasFocus(!0)})),this._register(this._textAreaInput.onBlur(()=>{this._context.viewModel.setHasFocus(!1)})),this._register(mi.M.onDidChange(()=>{this._ensureReadOnlyAttribute()}))}writeScreenReaderContent(t){this._textAreaInput.writeNativeTextAreaContent(t)}dispose(){super.dispose()}_getAndroidWordAtPosition(t){const l='`~!@#$%^&*()-=+[{]}\\|;:",.<>/?',y=this._context.viewModel.getLineContent(t.lineNumber),H=(0,Fn.i)(l,[]);let Z=!0,pe=t.column,ke=!0,Ve=t.column,Xe=0;for(;Xe<50&&(Z||ke);){if(Z&&pe<=1&&(Z=!1),Z){const gt=y.charCodeAt(pe-2);H.get(gt)!==0?Z=!1:pe--}if(ke&&Ve>y.length&&(ke=!1),ke){const gt=y.charCodeAt(Ve-1);H.get(gt)!==0?ke=!1:Ve++}Xe++}return[y.substring(pe-1,Ve-1),t.column-pe]}_getWordBeforePosition(t){const l=this._context.viewModel.getLineContent(t.lineNumber),y=(0,Fn.i)(this._context.configuration.options.get(131),[]);let H=t.column,Z=0;for(;H>1;){const pe=l.charCodeAt(H-2);if(y.get(pe)!==0||Z>50)return l.substring(H-1,t.column-1);Z++,H--}return l.substring(0,t.column-1)}_getCharacterBeforePosition(t){if(t.column>1){const y=this._context.viewModel.getLineContent(t.lineNumber).charAt(t.column-2);if(!xt.pc(y.charCodeAt(0)))return y}return""}_getAriaLabel(t){var l,y,H;if(t.get(2)===1){const pe=(l=this._keybindingService.lookupKeybinding("editor.action.toggleScreenReaderAccessibilityMode"))===null||l===void 0?void 0:l.getAriaLabel(),ke=(y=this._keybindingService.lookupKeybinding("workbench.action.showCommands"))===null||y===void 0?void 0:y.getAriaLabel(),Ve=(H=this._keybindingService.lookupKeybinding("workbench.action.openGlobalKeybindings"))===null||H===void 0?void 0:H.getAriaLabel(),Xe=Ht.kg("accessibilityModeOff","The editor is not accessible at this time.");return pe?Ht.kg("accessibilityOffAriaLabel","{0} To enable screen reader optimized mode, use {1}",Xe,pe):ke?Ht.kg("accessibilityOffAriaLabelNoKb","{0} To enable screen reader optimized mode, open the quick pick with {1} and run the command Toggle Screen Reader Accessibility Mode, which is currently not triggerable via keyboard.",Xe,ke):Ve?Ht.kg("accessibilityOffAriaLabelNoKbs","{0} Please assign a keybinding for the command Toggle Screen Reader Accessibility Mode by accessing the keybindings editor with {1} and run it.",Xe,Ve):Xe}return t.get(4)}_setAccessibilityOptions(t){this._accessibilitySupport=t.get(2);const l=t.get(3);this._accessibilitySupport===2&&l===O.qB.accessibilityPageSize.defaultValue?this._accessibilityPageSize=500:this._accessibilityPageSize=l;const H=t.get(145).wrappingColumn;if(H!==-1&&this._accessibilitySupport!==1){const Z=t.get(50);this._textAreaWrapping=!0,this._textAreaWidth=Math.round(H*Z.typicalHalfwidthCharacterWidth)}else this._textAreaWrapping=!1,this._textAreaWidth=ci?0:
`,y+1),y===-1)break;l++}while(!0);return l}_renderAtTopLeft(){this._doRender({lastRenderPosition:null,top:0,left:0,width:this._textAreaWidth,height:ci?0:1,useCover:!0})}_doRender(t){this._lastRenderPosition=t.lastRenderPosition;const l=this.textArea,y=this.textAreaCover;(0,d.M)(l,this._fontInfo),l.setTop(t.top),l.setLeft(t.left),l.setWidth(t.width),l.setHeight(t.height),l.setColor(t.color?Kn.Q1.Format.CSS.formatHex(t.color):""),l.setFontStyle(t.italic?"italic":""),t.bold&&l.setFontWeight("bold"),l.setTextDecoration(`${t.underline?" underline":""}${t.strikethrough?" line-through":""}`),y.setTop(t.useCover?t.top:0),y.setLeft(t.useCover?t.left:0),y.setWidth(t.useCover?t.width:0),y.setHeight(t.useCover?t.height:0);const H=this._context.configuration.options;H.get(57)?y.setClassName("monaco-editor-background textAreaCover "+_n.OUTER_CLASS_NAME):H.get(68).renderType!==0?y.setClassName("monaco-editor-background textAreaCover "+Gt.CLASS_NAME):y.setClassName("monaco-editor-background textAreaCover")}};Ii=fi([Mi(3,yi.b),Mi(4,ri._Y)],Ii);function Si(Pt,t,l,y){if(t.length===0)return 0;const H=Pt.createElement("div");H.style.position="absolute",H.style.top="-50000px",H.style.width="50000px";const Z=Pt.createElement("span");(0,d.M)(Z,l),Z.style.whiteSpace="pre",Z.style.tabSize=`${y*l.spaceWidth}px`,Z.append(t),H.appendChild(Z),Pt.body.appendChild(H);const pe=Z.offsetWidth;return Pt.body.removeChild(H),pe}var Ti=e("./node_modules/monaco-editor/esm/vs/editor/browser/view/renderingContext.js"),Nn=e("./node_modules/monaco-editor/esm/vs/editor/browser/coreCommands.js");class Vn{constructor(t,l,y,H){this.configuration=t,this.viewModel=l,this.userInputEvents=y,this.commandDelegate=H}paste(t,l,y,H){this.commandDelegate.paste(t,l,y,H)}type(t){this.commandDelegate.type(t)}compositionType(t,l,y,H){this.commandDelegate.compositionType(t,l,y,H)}compositionStart(){this.commandDelegate.startComposition()}compositionEnd(){this.commandDelegate.endComposition()}cut(){this.commandDelegate.cut()}setSelection(t){Nn.QM.SetSelection.runCoreEditorCommand(this.viewModel,{source:"keyboard",selection:t})}_validateViewColumn(t){const l=this.viewModel.getLineMinColumn(t.lineNumber);return t.column<l?new he.y(t.lineNumber,l):t}_hasMulticursorModifier(t){switch(this.configuration.options.get(78)){case"altKey":return t.altKey;case"ctrlKey":return t.ctrlKey;case"metaKey":return t.metaKey;default:return!1}}_hasNonMulticursorModifier(t){switch(this.configuration.options.get(78)){case"altKey":return t.ctrlKey||t.metaKey;case"ctrlKey":return t.altKey||t.metaKey;case"metaKey":return t.ctrlKey||t.altKey;default:return!1}}dispatchMouse(t){const l=this.configuration.options,y=i.j9&&l.get(107),H=l.get(22);t.middleButton&&!y?this._columnSelect(t.position,t.mouseColumn,t.inSelectionMode):t.startedOnLineNumbers?this._hasMulticursorModifier(t)?t.inSelectionMode?this._lastCursorLineSelect(t.position,t.revealType):this._createCursor(t.position,!0):t.inSelectionMode?this._lineSelectDrag(t.position,t.revealType):this._lineSelect(t.position,t.revealType):t.mouseDownCount>=4?this._selectAll():t.mouseDownCount===3?this._hasMulticursorModifier(t)?t.inSelectionMode?this._lastCursorLineSelectDrag(t.position,t.revealType):this._lastCursorLineSelect(t.position,t.revealType):t.inSelectionMode?this._lineSelectDrag(t.position,t.revealType):this._lineSelect(t.position,t.revealType):t.mouseDownCount===2?t.onInjectedText||(this._hasMulticursorModifier(t)?this._lastCursorWordSelect(t.position,t.revealType):t.inSelectionMode?this._wordSelectDrag(t.position,t.revealType):this._wordSelect(t.position,t.revealType)):this._hasMulticursorModifier(t)?this._hasNonMulticursorModifier(t)||(t.shiftKey?this._columnSelect(t.position,t.mouseColumn,!0):t.inSelectionMode?this._lastCursorMoveToSelect(t.position,t.revealType):this._createCursor(t.position,!1)):t.inSelectionMode?t.altKey?this._columnSelect(t.position,t.mouseColumn,!0):H?this._columnSelect(t.position,t.mouseColumn,!0):this._moveToSelect(t.position,t.revealType):this.moveTo(t.position,t.revealType)}_usualArgs(t,l){return t=this._validateViewColumn(t),{
`)>=0)return null;const pe=Z.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!pe)return null;const ke=pe[1],Ve=this.context.cursorConfig.autoClosingPairs.autoClosingPairsCloseSingleChar.get(ke);if(!Ve||Ve.length!==1)return null;const Xe=Ve[0].open,gt=Z.text.length-pe[2].length-1,Ct=Z.text.lastIndexOf(Xe,gt-1);if(Ct===-1)return null;l.push([Ct,gt])}return l}executeEdits(t,l,y,H){let Z=null;l==="snippet"&&(Z=this._findAutoClosingPairs(y)),Z&&(y[0]._isTracked=!0);const pe=[],ke=[],Ve=this._model.pushEditOperations(this.getSelections(),y,Xe=>{if(Z)for(let Ct=0,It=Z.length;Ct<It;Ct++){const[Bt,Yt]=Z[Ct],tn=Xe[Ct],gn=tn.range.startLineNumber,mn=tn.range.startColumn-1+Bt,Mn=tn.range.startColumn-1+Yt;pe.push(new ve.Q(gn,Mn+1,gn,Mn+2)),ke.push(new ve.Q(gn,mn+1,gn,Mn+2))}const gt=H(Xe);return gt&&(this._isHandling=!0),gt});Ve&&(this._isHandling=!1,this.setSelections(t,l,Ve,0)),pe.length>0&&this._pushAutoClosedAction(pe,ke)}_executeEdit(t,l,y,H=0){if(this.context.cursorConfig.readOnly)return;const Z=Xo.from(this._model,this);this._cursors.stopTrackingSelections(),this._isHandling=!0;try{this._cursors.ensureValidState(),t()}catch(pe){(0,x.dz)(pe)}this._isHandling=!1,this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(l,y,H,Z,!1)&&this.revealAll(l,y,!1,0,!0,0)}getAutoClosedCharacters(){return _r.getAllAutoClosedCharacters(this._autoClosedActions)}startComposition(t){this._compositionState=new so(this._model,this.getSelections())}endComposition(t,l){const y=this._compositionState?this._compositionState.deduceOutcome(this._model,this.getSelections()):null;this._compositionState=null,this._executeEdit(()=>{l==="keyboard"&&this._executeEditOperation(Yo.TK.compositionEndWithInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,y,this.getSelections(),this.getAutoClosedCharacters()))},t,l)}type(t,l,y){this._executeEdit(()=>{if(y==="keyboard"){const H=l.length;let Z=0;for(;Z<H;){const pe=xt.iy(l,Z),ke=l.substr(Z,pe);this._executeEditOperation(Yo.TK.typeWithInterceptors(!!this._compositionState,this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),this.getAutoClosedCharacters(),ke)),Z+=pe}}else this._executeEditOperation(Yo.TK.typeWithoutInterceptors(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),l))},t,y)}compositionType(t,l,y,H,Z,pe){if(l.length===0&&y===0&&H===0){if(Z!==0){const ke=this.getSelections().map(Ve=>{const Xe=Ve.getPosition();return new Le.L(Xe.lineNumber,Xe.column+Z,Xe.lineNumber,Xe.column+Z)});this.setSelections(t,pe,ke,0)}return}this._executeEdit(()=>{this._executeEditOperation(Yo.TK.compositionType(this._prevEditOperationType,this.context.cursorConfig,this._model,this.getSelections(),l,y,H,Z))},t,pe)}paste(t,l,y,H,Z){this._executeEdit(()=>{this._executeEditOperation(Yo.TK.paste(this.context.cursorConfig,this._model,this.getSelections(),l,y,H||[]))},t,Z,4)}cut(t,l){this._executeEdit(()=>{this._executeEditOperation(Zs.g.cut(this.context.cursorConfig,this._model,this.getSelections()))},t,l)}executeCommand(t,l,y){this._executeEdit(()=>{this._cursors.killSecondaryCursors(),this._executeEditOperation(new qi.vY(0,[l],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t,y)}executeCommands(t,l,y){this._executeEdit(()=>{this._executeEditOperation(new qi.vY(0,l,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))},t,y)}}class Xo{static from(t,l){return new Xo(t.getVersionId(),l.getCursorStates())}constructor(t,l){this.modelVersionId=t,this.cursorState=l}equals(t){if(!t||this.modelVersionId!==t.modelVersionId||this.cursorState.length!==t.cursorState.length)return!1;for(let l=0,y=this.cursorState.length;l<y;l++)if(!this.cursorState[l].equals(t.cursorState[l]))return!1;return!0}}class _r{static getAllAutoClosedCharacters(t){let l=[];for(const y of t)l=l.concat(y.getAutoClosedCharactersRanges());return l}constructor(t,l,y){this._model=t,this._autoClosedCharactersDecorations=l,this._autoClosedEnclosingDecorations=y}dispose(){this._autoClosedCharactersDecoration
`:this.model.getEOL();t=t.slice(0),t.sort(ve.Q.compareRangesUsingStarts);let Z=!1,pe=!1;for(const Ve of t)Ve.isEmpty()?Z=!0:pe=!0;if(!pe){if(!l)return"";const Ve=t.map(gt=>gt.startLineNumber);let Xe="";for(let gt=0;gt<Ve.length;gt++)gt>0&&Ve[gt-1]===Ve[gt]||(Xe+=this.model.getLineContent(Ve[gt])+H);return Xe}if(Z&&l){const Ve=[];let Xe=0;for(const gt of t){const Ct=gt.startLineNumber;gt.isEmpty()?Ct!==Xe&&Ve.push(this.model.getLineContent(Ct)):Ve.push(this.model.getValueInRange(gt,y?2:0)),Xe=Ct}return Ve.length===1?Ve[0]:Ve}const ke=[];for(const Ve of t)Ve.isEmpty()||ke.push(this.model.getValueInRange(Ve,y?2:0));return ke.length===1?ke[0]:ke}getRichTextToCopy(t,l){const y=this.model.getLanguageId();if(y===Qr.vH||t.length!==1)return null;let H=t[0];if(H.isEmpty()){if(!l)return null;const gt=H.startLineNumber;H=new ve.Q(gt,this.model.getLineMinColumn(gt),gt,this.model.getLineMaxColumn(gt))}const Z=this._configuration.options.get(50),pe=this._getColorMap(),Ve=/[:;\\\/<>]/.test(Z.fontFamily)||Z.fontFamily===O.jU.fontFamily;let Xe;return Ve?Xe=O.jU.fontFamily:(Xe=Z.fontFamily,Xe=Xe.replace(/"/g,"'"),/[,']/.test(Xe)||/[+ ]/.test(Xe)&&(Xe=`'${Xe}'`),Xe=`${Xe}, ${O.jU.fontFamily}`),{mode:y,html:`<div style="color: ${pe[1]};background-color: ${pe[2]};font-family: ${Xe};font-weight: ${Z.fontWeight};font-size: ${Z.fontSize}px;line-height: ${Z.lineHeight}px;white-space: pre;">`+this._getHTMLToCopy(H,pe)+"</div>"}}_getHTMLToCopy(t,l){const y=t.startLineNumber,H=t.startColumn,Z=t.endLineNumber,pe=t.endColumn,ke=this.getTabSize();let Ve="";for(let Xe=y;Xe<=Z;Xe++){const gt=this.model.tokenization.getLineTokens(Xe),Ct=gt.getLineContent(),It=Xe===y?H-1:0,Bt=Xe===Z?pe-1:Ct.length;Ct===""?Ve+="<br>":Ve+=(0,vr.s0)(Ct,gt.inflate(),l,It,Bt,ke,i.uF)}return Ve}_getColorMap(){const t=Hn.dG.getColorMap(),l=["#000000"];if(t)for(let y=1,H=t.length;y<H;y++)l[y]=Kn.Q1.Format.CSS.formatHex(t[y]);return l}getPrimaryCursorState(){return this._cursor.getPrimaryCursorState()}getLastAddedCursorIndex(){return this._cursor.getLastAddedCursorIndex()}getCursorStates(){return this._cursor.getCursorStates()}setCursorStates(t,l,y){return this._withViewEventsCollector(H=>this._cursor.setStates(H,t,l,y))}getCursorColumnSelectData(){return this._cursor.getCursorColumnSelectData()}getCursorAutoClosedCharacters(){return this._cursor.getAutoClosedCharacters()}setCursorColumnSelectData(t){this._cursor.setCursorColumnSelectData(t)}getPrevEditOperationType(){return this._cursor.getPrevEditOperationType()}setPrevEditOperationType(t){this._cursor.setPrevEditOperationType(t)}getSelection(){return this._cursor.getSelection()}getSelections(){return this._cursor.getSelections()}getPosition(){return this._cursor.getPrimaryCursorState().modelState.position}setSelections(t,l,y=0){this._withViewEventsCollector(H=>this._cursor.setSelections(H,t,l,y))}saveCursorState(){return this._cursor.saveState()}restoreCursorState(t){this._withViewEventsCollector(l=>this._cursor.restoreState(l,t))}_executeCursorEdit(t){if(this._cursor.context.cursorConfig.readOnly){this._eventDispatcher.emitOutgoingEvent(new Sa);return}this._withViewEventsCollector(t)}executeEdits(t,l,y){this._executeCursorEdit(H=>this._cursor.executeEdits(H,t,l,y))}startComposition(){this._executeCursorEdit(t=>this._cursor.startComposition(t))}endComposition(t){this._executeCursorEdit(l=>this._cursor.endComposition(l,t))}type(t,l){this._executeCursorEdit(y=>this._cursor.type(y,t,l))}compositionType(t,l,y,H,Z){this._executeCursorEdit(pe=>this._cursor.compositionType(pe,t,l,y,H,Z))}paste(t,l,y,H){this._executeCursorEdit(Z=>this._cursor.paste(Z,t,l,y,H))}cut(t){this._executeCursorEdit(l=>this._cursor.cut(l,t))}executeCommand(t,l){this._executeCursorEdit(y=>this._cursor.executeCommand(y,t,l))}executeCommands(t,l){this._executeCursorEdit(y=>this._cursor.executeCommands(y,t,l))}revealAllCursors(t,l,y=!1){this._withViewEventsCollector(H=>this._cursor.revealAll(H,t,y,0,l,0))}revealPrimaryCursor(t,l,y=!1){this._withViewEventsCollector(H=>this._cursor.revealPrimary(H,t,y,0,l,0))}revealTopMostCursor(t){const l=this._cursor.getTopMostView
`?y=1:t&&t.lineEnding&&t.lineEnding===`\r
`&&(y=2),this._modelData.model.getValue(y,l)}setValue(t){this._modelData&&this._modelData.model.setValue(t)}getModel(){return this._modelData?this._modelData.model:null}setModel(t=null){var l;const y=t;if(this._modelData===null&&y===null||this._modelData&&this._modelData.model===y)return;const H={oldModelUrl:((l=this._modelData)===null||l===void 0?void 0:l.model.uri)||null,newModelUrl:y?.uri||null};this._onWillChangeModel.fire(H);const Z=this.hasTextFocus(),pe=this._detachModel();this._attachModel(y),Z&&this.hasModel()&&this.focus(),this._removeDecorationTypes(),this._onDidChangeModel.fire(H),this._postDetachModelCleanup(pe),this._contributionsDisposable=this._contributions.onAfterModelAttached()}_removeDecorationTypes(){if(this._decorationTypeKeysToIds={},this._decorationTypeSubtypes){for(const t in this._decorationTypeSubtypes){const l=this._decorationTypeSubtypes[t];for(const y in l)this._removeDecorationType(t+"-"+y)}this._decorationTypeSubtypes={}}}getVisibleRanges(){return this._modelData?this._modelData.viewModel.getVisibleRanges():[]}getVisibleRangesPlusViewportAboveBelow(){return this._modelData?this._modelData.viewModel.getVisibleRangesPlusViewportAboveBelow():[]}getWhitespaces(){return this._modelData?this._modelData.viewModel.viewLayout.getWhitespaces():[]}static _getVerticalOffsetAfterPosition(t,l,y,H){const Z=t.model.validatePosition({lineNumber:l,column:y}),pe=t.viewModel.coordinatesConverter.convertModelPositionToViewPosition(Z);return t.viewModel.viewLayout.getVerticalOffsetAfterLineNumber(pe.lineNumber,H)}getTopForLineNumber(t,l=!1){return this._modelData?ds._getVerticalOffsetForPosition(this._modelData,t,1,l):-1}getTopForPosition(t,l){return this._modelData?ds._getVerticalOffsetForPosition(this._modelData,t,l,!1):-1}static _getVerticalOffsetForPosition(t,l,y,H=!1){const Z=t.model.validatePosition({lineNumber:l,column:y}),pe=t.viewModel.coordinatesConverter.convertModelPositionToViewPosition(Z);return t.viewModel.viewLayout.getVerticalOffsetForLineNumber(pe.lineNumber,H)}getBottomForLineNumber(t,l=!1){return this._modelData?ds._getVerticalOffsetAfterPosition(this._modelData,t,1,l):-1}setHiddenAreas(t,l){var y;(y=this._modelData)===null||y===void 0||y.viewModel.setHiddenAreas(t.map(H=>ve.Q.lift(H)),l)}getVisibleColumnFromPosition(t){if(!this._modelData)return t.column;const l=this._modelData.model.validatePosition(t),y=this._modelData.model.getOptions().tabSize;return Ce.A.visibleColumnFromColumn(this._modelData.model.getLineContent(l.lineNumber),l.column,y)+1}getPosition(){return this._modelData?this._modelData.viewModel.getPosition():null}setPosition(t,l="api"){if(this._modelData){if(!he.y.isIPosition(t))throw new Error("Invalid arguments");this._modelData.viewModel.setSelections(l,[{selectionStartLineNumber:t.lineNumber,selectionStartColumn:t.column,positionLineNumber:t.lineNumber,positionColumn:t.column}])}}_sendRevealRange(t,l,y,H){if(!this._modelData)return;if(!ve.Q.isIRange(t))throw new Error("Invalid arguments");const Z=this._modelData.model.validateRange(t),pe=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(Z);this._modelData.viewModel.revealRange("api",y,pe,l,H)}revealLine(t,l=0){this._revealLine(t,0,l)}revealLineInCenter(t,l=0){this._revealLine(t,1,l)}revealLineInCenterIfOutsideViewport(t,l=0){this._revealLine(t,2,l)}revealLineNearTop(t,l=0){this._revealLine(t,5,l)}_revealLine(t,l,y){if(typeof t!="number")throw new Error("Invalid arguments");this._sendRevealRange(new ve.Q(t,1,t,1),l,!1,y)}revealPosition(t,l=0){this._revealPosition(t,0,!0,l)}revealPositionInCenter(t,l=0){this._revealPosition(t,1,!0,l)}revealPositionInCenterIfOutsideViewport(t,l=0){this._revealPosition(t,2,!0,l)}revealPositionNearTop(t,l=0){this._revealPosition(t,5,!0,l)}_revealPosition(t,l,y,H){if(!he.y.isIPosition(t))throw new Error("Invalid arguments");this._sendRevealRange(new ve.Q(t.lineNumber,t.column,t.lineNumber,t.column),l,y,H)}getSelection(){return this._modelData?this._modelData.viewModel.getSelection():null}getSelections(){return this._modelData?this._modelData.viewModel.getSelections():n
`:`\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){
- 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 amou
`&&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===`
`?(g++,x=0):x++;return new k(g,x)}constructor(L,g){this.lineCount=L,this.columnCount=g}createRange(L){return this.lineCount===0?new F.Q(L.lineNumber,L.column,L.lineNumber,L.column+this.columnCount):new F.Q(L.lineNumber,L.column,L.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(L){return this.lineCount===0?new r.y(L.lineNumber,L.column+this.columnCount):new r.y(L.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}}k.zero=new k(0,0)},"./node_modules/monaco-editor/esm/vs/editor/common/core/textModelDefaults.js":function(pt,Me,e){e.d(Me,{R:function(){return r}});const r={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}},"./node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js":function(pt,Me,e){e.d(Me,{i:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js");class k extends F.V{constructor(x,I){super(0),this._segmenter=null,this._cachedLine=null,this._cachedSegments=[],this.intlSegmenterLocales=I,this.intlSegmenterLocales.length>0?this._segmenter=new Intl.Segmenter(this.intlSegmenterLocales,{granularity:"word"}):this._segmenter=null;for(let S=0,f=x.length;S<f;S++)this.set(x.charCodeAt(S),2);this.set(32,1),this.set(9,1)}findPrevIntlWordBeforeOrAtOffset(x,I){let S=null;for(const f of this._getIntlSegmenterWordsOnLine(x)){if(f.index>I)break;S=f}return S}findNextIntlWordAtOrAfterOffset(x,I){for(const S of this._getIntlSegmenterWordsOnLine(x))if(!(S.index<I))return S;return null}_getIntlSegmenterWordsOnLine(x){return this._segmenter?this._cachedLine===x?this._cachedSegments:(this._cachedLine=x,this._cachedSegments=this._filterWordSegments(this._segmenter.segment(x)),this._cachedSegments):[]}_filterWordSegments(x){const I=[];for(const S of x)this._isWordLike(S)&&I.push(S);return I}_isWordLike(x){return!!x.isWordLike}}const M=new r.qK(10);function L(g,x){const I=`${g}/${x.join(",")}`;let S=M.get(I);return S||(S=new k(g,x),M.set(I,S)),S}},"./node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js":function(pt,Me,e){e.d(Me,{Io:function(){return g},J3:function(){return k},Ld:function(){return L},Th:function(){return I}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/linkedList.js");const k="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function M(f=""){let d="(-?\\d*\\.\\d\\w*)|([^";for(const a of k)f.indexOf(a)>=0||(d+="\\"+a);return d+="\\s]+)",new RegExp(d,"g")}const L=M();function g(f){let d=L;if(f&&f instanceof RegExp)if(f.global)d=f;else{let a="g";f.ignoreCase&&(a+="i"),f.multiline&&(a+="m"),f.unicode&&(a+="u"),d=new RegExp(f.source,a)}return d.lastIndex=0,d}const x=new F.w;x.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function I(f,d,a,s,n){if(d=g(d),n||(n=r.f.first(x)),a.length>n.maxLen){let C=f-n.maxLen/2;return C<0?C=0:s+=C,a=a.substring(C,f+n.maxLen/2),I(f,d,a,s,n)}const i=Date.now(),c=f-1-s;let m=-1,u=null;for(let C=1;!(Date.now()-i>=n.timeBudget);C++){const h=c-n.windowSize*C;d.lastIndex=Math.max(0,h);const v=S(d,a,c,m);if(!v&&u||(u=v,h<=0))break;m=h}if(u){const C={word:u[0],startColumn:s+1+u.index,endColumn:s+1+u.index+u[0].length};return d.lastIndex=0,C}return null}function S(f,d,a,s){let n;for(;n=f.exec(d);){const i=n.index||0;if(i<=a&&f.lastIndex>=a)return n;if(s>0&&i>s)return null}return null}},"./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorAtomicMoveOperations.js":function(pt,Me,e){e.d(Me,{s:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/editor/common/core/cursorColumns.js");class F{static whitespaceVisibleColumn(M,L,g){const x=M.length;let I=0,S=-1,f=-1;for(let d=0;d<x;d++){if(d===L)return[S,f,I];switch(I%g===0&&(S=d,f=I),M.charCodeAt(d)){case 32:I+=1;break;case 9:I=r.A.nextRenderTabStop(I,g);break;default:return[-1,-1,-1]}}return L===x?[S,f,I]:[-1,-
* 'to': A mandatory logical position value providing where to move the cursor.
\`\`\`
'left', 'right', 'up', 'down', 'prevBlankLine', 'nextBlankLine',
'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'
'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'
'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'
\`\`\`
* 'by': Unit to move. Default is computed based on 'to' value.
\`\`\`
'line', 'wrappedLine', 'character', 'halfLine'
\`\`\`
* 'value': Number of units to move. Default is '1'.
* 'select': If 'true' makes the selection. Default is 'false'.
`,constraint:f,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","prevBlankLine","nextBlankLine","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},S.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",PrevBlankLine:"prevBlankLine",NextBlankLine:"nextBlankLine",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},S.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function d(a){if(!a.to)return null;let s;switch(a.to){case S.RawDirection.Left:s=0;break;case S.RawDirection.Right:s=1;break;case S.RawDirection.Up:s=2;break;case S.RawDirection.Down:s=3;break;case S.RawDirection.PrevBlankLine:s=4;break;case S.RawDirection.NextBlankLine:s=5;break;case S.RawDirection.WrappedLineStart:s=6;break;case S.RawDirection.WrappedLineFirstNonWhitespaceCharacter:s=7;break;case S.RawDirection.WrappedLineColumnCenter:s=8;break;case S.RawDirection.WrappedLineEnd:s=9;break;case S.RawDirection.WrappedLineLastNonWhitespaceCharacter:s=10;break;case S.RawDirection.ViewPortTop:s=11;break;case S.RawDirection.ViewPortBottom:s=13;break;case S.RawDirection.ViewPortCenter:s=12;break;case S.RawDirection.ViewPortIfOutside:s=14;break;default:return null}let n=0;switch(a.by){case S.RawUnit.Line:n=1;break;case S.RawUnit.WrappedLine:n=2;break;case S.RawUnit.Character:n=3;break;case S.RawUnit.HalfLine:n=4;break}return{direction:s,unit:n,select:!!a.select,value:a.value||1}}S.parse=d})(I||(I={}))},"./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorMoveOperations.js":function(pt,Me,e){e.d(Me,{I:function(){return I}});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/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/cursor/cursorAtomicMoveOperations.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/cursorCommon.js");class x{constructor(f,d,a){this._cursorPositionBrand=void 0,this.lineNumber=f,this.column=d,this.leftoverVisibleColumns=a}}class I{static leftPosition(f,d){if(d.column>f.getLineMinColumn(d.lineNumber))return d.delta(void 0,-r.MV(f.getLineContent(d.lineNumber),d.column-1));if(d.lineNumber>1){const a=d.lineNumber-1;return new k.y(a,f.getLineMaxColumn(a))}else return d}static leftPositionAtomicSoftTabs(f,d,a){if(d.column<=f.getLineIndentColumn(d.lineNumber)){const s=f.getLineMinColumn(d.lineNumber),n=f.getLineContent(d.lineNumber),i=L.s.atomicPosition(n,d.column-1,a,0);if(i!==-1&&i+1>=s)return new k.y(d.lineNumber,i+1)}return this.leftPosition(f,d)}static left(f,d,a){const s=f.stickyTabStops?I.leftPositionAtomicSoftTabs(d,a,f.tabSize):I.leftPosition(d,a);return new x(s.lineNumber,s.column,0)}static moveLeft(f,d,a,s,n){let i,c;if(a.hasSelection()&&!s)i=a.selection.startLineNumber,c=a.selection.startColumn;else{const m=a.position.delta(void 0,-(n-1)),u=d.normalizePosition(I.clipPositionColumn(m,d),0),C=I.left(f,d,u);i=C.lineNumber,c=C.column}return a.move(s,i,c,0)}static clipPositionColumn(f,d){return new k.y(f.lineNumber,I.clipRange(f.column,d.getLineMinColumn(f.lineNumber),d.getLineMaxColumn(f.lineNumber)))}static clipRange(f,d,a){return f<d?d:f>a?a:f}static rightPosition(f,d,a){return a<f.getLineMaxColumn(d)?a=a+r.iy(f.getLineContent(d),a-1):
`)!==K.length-1&&(G=!1),G){const $=new L.Q(W.lineNumber,1,W.lineNumber,1);P[A]=new k.ui($,K,E,!0)}else P[A]=new k.iu(E,K)}return new S.vY(0,P,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}static _distributePasteToCursors(w,j,U,K,G){if(K||j.length===1)return null;if(G&&G.length===j.length)return G;if(w.multiCursorPaste==="spread"){U.charCodeAt(U.length-1)===10&&(U=U.substr(0,U.length-1)),U.charCodeAt(U.length-1)===13&&(U=U.substr(0,U.length-1));const P=F.uz(U);if(P.length===j.length)return P}return null}static paste(w,j,U,K,G,P){const A=this._distributePasteToCursors(w,U,K,G,P);return A?(U=U.sort(L.Q.compareRangesUsingStarts),this._distributedPaste(w,j,U,A)):this._simplePaste(w,j,U,K,G)}static _goodIndentForLine(w,j,U){let K=null,G="";const P=(0,i.vn)(w.autoIndent,j,U,!1,w.languageConfigurationService);if(P)K=P.action,G=P.indentation;else if(U>1){let A;for(A=U-1;A>=1;A--){const W=j.getLineContent(A);if(F.lT(W)>=0)break}if(A<1)return null;const T=j.getLineMaxColumn(A),E=(0,c.h)(w.autoIndent,j,new L.Q(A,T,A,T),w.languageConfigurationService);E&&(G=E.indentation+E.appendText)}return K&&(K===a.l.Indent&&(G=m.shiftIndent(w,G)),K===a.l.Outdent&&(G=m.unshiftIndent(w,G)),G=w.normalizeIndentation(G)),G||null}static _replaceJumpToNextIndent(w,j,U,K){let G="";const P=U.getStartPosition();if(w.insertSpaces){const A=w.visibleColumnFromColumn(j,P),T=w.indentSize,E=T-A%T;for(let W=0;W<E;W++)G+=" "}else G=" ";return new k.iu(U,G,K)}static tab(w,j,U){const K=[];for(let G=0,P=U.length;G<P;G++){const A=U[G];if(A.isEmpty()){const T=j.getLineContent(A.startLineNumber);if(/^\s*$/.test(T)&&j.tokenization.isCheapToTokenize(A.startLineNumber)){let E=this._goodIndentForLine(w,j,A.startLineNumber);E=E||" ";const W=w.normalizeIndentation(E);if(!T.startsWith(W)){K[G]=new k.iu(new L.Q(A.startLineNumber,1,A.startLineNumber,T.length+1),W,!0);continue}}K[G]=this._replaceJumpToNextIndent(w,j,A,!0)}else{if(A.startLineNumber===A.endLineNumber){const T=j.getLineMaxColumn(A.startLineNumber);if(A.startColumn!==1||A.endColumn!==T){K[G]=this._replaceJumpToNextIndent(w,j,A,!1);continue}}K[G]=new M.Y(A,{isUnshift:!1,tabSize:w.tabSize,indentSize:w.indentSize,insertSpaces:w.insertSpaces,useTabStops:w.useTabStops,autoIndent:w.autoIndent},w.languageConfigurationService)}}return K}static compositionType(w,j,U,K,G,P,A,T){const E=K.map(W=>this._compositionType(U,W,G,P,A,T));return new S.vY(4,E,{shouldPushStackElementBefore:v(w,4),shouldPushStackElementAfter:!1})}static _compositionType(w,j,U,K,G,P){if(!j.isEmpty())return null;const A=j.getPosition(),T=Math.max(1,A.column-K),E=Math.min(w.getLineMaxColumn(A.lineNumber),A.column+G),W=new L.Q(A.lineNumber,T,A.lineNumber,E);return w.getValueInRange(W)===U&&P===0?null:new k.iP(W,U,0,P)}static _typeCommand(w,j,U){return U?new k.q2(w,j,!0):new k.iu(w,j,!0)}static _enter(w,j,U,K){if(w.autoIndent===0)return m._typeCommand(K,`
`,U);if(!j.tokenization.isCheapToTokenize(K.getStartPosition().lineNumber)||w.autoIndent===1){const T=j.getLineContent(K.startLineNumber),E=F.UU(T).substring(0,K.startColumn-1);return m._typeCommand(K,`
`+w.normalizeIndentation(E),U)}const G=(0,c.h)(w.autoIndent,j,K,w.languageConfigurationService);if(G){if(G.indentAction===a.l.None)return m._typeCommand(K,`
`+w.normalizeIndentation(G.indentation+G.appendText),U);if(G.indentAction===a.l.Indent)return m._typeCommand(K,`
`+w.normalizeIndentation(G.indentation+G.appendText),U);if(G.indentAction===a.l.IndentOutdent){const T=w.normalizeIndentation(G.indentation),E=w.normalizeIndentation(G.indentation+G.appendText),W=`
`+E+`
`+T;return U?new k.q2(K,W,!0):new k.iP(K,W,-1,E.length-T.length,!0)}else if(G.indentAction===a.l.Outdent){const T=m.unshiftIndent(w,G.indentation);return m._typeCommand(K,`
`+w.normalizeIndentation(T+G.appendText),U)}}const P=j.getLineContent(K.startLineNumber),A=F.UU(P).substring(0,K.startColumn-1);if(w.autoIndent>=4){const T=(0,i.MU)(w.autoIndent,j,K,{unshiftIndent:E=>m.unshiftIndent(w,E),shiftIndent:E=>m.shiftIndent(w,E),normalizeIndentation:E=>w.normalizeIndentation(E)},w.languageConfigurationService);if(T){let E=w.visibleColumnFromColumn(j,K.getEndPosition());const W=K.endColumn,$=j.getLineContent(K.endLineNumber),z=F.HG($);if(z>=0?K=K.setEndPosition(K.endLineNumber,Math.max(K.endColumn,z+1)):K=K.setEndPosition(K.endLineNumber,j.getLineMaxColumn(K.endLineNumber)),U)return new k.q2(K,`
`+w.normalizeIndentation(T.afterEnter),!0);{let J=0;return W<=z+1&&(w.insertSpaces||(E=Math.ceil(E/w.indentSize)),J=Math.min(E+1-w.normalizeIndentation(T.afterEnter).length-1,0)),new k.iP(K,`
`+w.normalizeIndentation(T.afterEnter),0,J,!0)}}}return m._typeCommand(K,`
`+w.normalizeIndentation(A),U)}static _isAutoIndentType(w,j,U){if(w.autoIndent<4)return!1;for(let K=0,G=U.length;K<G;K++)if(!j.tokenization.isCheapToTokenize(U[K].getEndPosition().lineNumber))return!1;return!0}static _runAutoIndentType(w,j,U,K){const G=(0,s.Cw)(j,U.startLineNumber,U.startColumn),P=(0,i._t)(w.autoIndent,j,U,K,{shiftIndent:A=>m.shiftIndent(w,A),unshiftIndent:A=>m.unshiftIndent(w,A)},w.languageConfigurationService);if(P===null)return null;if(P!==w.normalizeIndentation(G)){const A=j.getLineFirstNonWhitespaceColumn(U.startLineNumber);return A===0?m._typeCommand(new L.Q(U.startLineNumber,1,U.endLineNumber,U.endColumn),w.normalizeIndentation(P)+K,!1):m._typeCommand(new L.Q(U.startLineNumber,1,U.endLineNumber,U.endColumn),w.normalizeIndentation(P)+j.getLineContent(U.startLineNumber).substring(A-1,U.startColumn-1)+K,!1)}return null}static _isAutoClosingOvertype(w,j,U,K,G){if(w.autoClosingOvertype==="never"||!w.autoClosingPairs.autoClosingPairsCloseSingleChar.has(G))return!1;for(let P=0,A=U.length;P<A;P++){const T=U[P];if(!T.isEmpty())return!1;const E=T.getPosition(),W=j.getLineContent(E.lineNumber);if(W.charAt(E.column-1)!==G)return!1;const z=(0,S.vG)(G);if((E.column>2?W.charCodeAt(E.column-2):0)===92&&z)return!1;if(w.autoClosingOvertype==="auto"){let B=!1;for(let V=0,Y=K.length;V<Y;V++){const X=K[V];if(E.lineNumber===X.startLineNumber&&E.column===X.startColumn){B=!0;break}}if(!B)return!1}}return!0}static _runAutoClosingOvertype(w,j,U,K,G){const P=[];for(let A=0,T=K.length;A<T;A++){const W=K[A].getPosition(),$=new L.Q(W.lineNumber,W.column,W.lineNumber,W.column+1);P[A]=new k.iu($,G)}return new S.vY(4,P,{shouldPushStackElementBefore:v(w,4),shouldPushStackElementAfter:!1})}static _isBeforeClosingBrace(w,j){const U=j.charAt(0),K=w.autoClosingPairs.autoClosingPairsOpenByStart.get(U)||[],G=w.autoClosingPairs.autoClosingPairsCloseByStart.get(U)||[],P=K.some(T=>j.startsWith(T.open)),A=G.some(T=>j.startsWith(T.close));return!P&&A}static _findAutoClosingPairOpen(w,j,U,K){const G=w.autoClosingPairs.autoClosingPairsOpenByEnd.get(K);if(!G)return null;let P=null;for(const A of G)if(P===null||A.open.length>P.open.length){let T=!0;for(const E of U)if(j.getValueInRange(new L.Q(E.lineNumber,E.column-A.open.length+1,E.lineNumber,E.column))+K!==A.open){T=!1;break}T&&(P=A)}return P}static _findContainedAutoClosingPair(w,j){if(j.open.length<=1)return null;const U=j.close.charAt(j.close.length-1),K=w.autoClosingPairs.autoClosingPairsCloseByEnd.get(U)||[];let G=null;for(const P of K)P.open!==j.open&&j.open.includes(P.open)&&j.close.endsWith(P.close)&&(!G||P.open.length>G.open.length)&&(G=P);return G}static _getAutoClosingPairClose(w,j,U,K,G){for(const B of U)if(!B.isEmpty())return null;const P=U.map(B=>{const V=B.getPosition();return G?{lineNumber:V.lineNumber,beforeColumn:V.column-K.length,afterColumn:V.column}:{lineNumber:V.lineNumber,beforeColumn:V.column,afterColumn:V.column}}),A=this._findAutoClosingPairOpen(w,j,P.map(B=>new d.y(B.lineNumber,B.beforeColumn)),K);if(!A)return null;let T,E;if((0,S.vG)(K)?(T=w.autoClosingQuotes,E=w.shouldAutoCloseBefore.quote):(w.blockCommentStartToken?A.open.includes(w.blockCommentStartToken):!1)?(T=w.autoClosingComments,E=w.shouldAutoCloseBefore.comment):(T=w.autoClosingBrackets,E=w.shouldAutoCloseBefore.bracket),T==="never")return null;const $=this._findContainedAutoClosingPair(w,A),z=$?$.close:"";let J=!0;for(const B of P){const{lineNumber:V,beforeColumn:Y,afterColumn:X}=B,ie=j.getLineContent(V),re=ie.substring(0,Y-1),te=ie.substring(X-1);if(te.startsWith(z)||(J=!1),te.length>0){const Ce=te.charAt(0);if(!m._isBeforeClosingBrace(w,te)&&!E(Ce))return null}if(A.open.length===1&&(K==="'"||K==='"')&&T!=="always"){const Ce=(0,f.i)(w.wordSeparators,[]);if(re.length>0){const Pe=re.charCodeAt(re.length-1);if(Ce.get(Pe)===0)return null}}if(!j.tokenization.isCheapToTokenize(V))return null;j.tokenization.forceTokenization(V);const D=j.tokenization.getLineTokens(V),he=(0,n.BQ)(D,Y-1);if(!A.shouldAutoClose(he,Y-he.firstCharOffset))return null;const ve=A.findNeutralCharacter();if(ve){const Ce=j.tokenization.get
`){const W=[];for(let $=0,z=G.length;$<z;$++)W[$]=m._enter(U,K,!1,G[$]);return new S.vY(4,W,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(!w&&this._isAutoIndentType(U,K,G)){const W=[];let $=!1;for(let z=0,J=G.length;z<J;z++)if(W[z]=this._runAutoIndentType(U,K,G[z],A),!W[z]){$=!0;break}if(!$)return new S.vY(4,W,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingOvertype(U,K,G,P,A))return this._runAutoClosingOvertype(j,U,K,G,A);if(!w){const W=this._getAutoClosingPairClose(U,K,G,A,!1);if(W)return this._runAutoClosingOpenCharType(j,U,K,G,A,!1,W)}if(!w&&this._isSurroundSelectionType(U,K,G,A))return this._runSurroundSelectionType(j,U,K,G,A);if(!w&&this._isTypeInterceptorElectricChar(U,K,G)){const W=this._typeInterceptorElectricChar(j,U,K,G[0],A);if(W)return W}const T=[];for(let W=0,$=G.length;W<$;W++)T[W]=new k.iu(G[W],A);const E=h(A,j);return new S.vY(E,T,{shouldPushStackElementBefore:v(j,E),shouldPushStackElementAfter:!1})}static typeWithoutInterceptors(w,j,U,K,G){const P=[];for(let T=0,E=K.length;T<E;T++)P[T]=new k.iu(K[T],G);const A=h(G,w);return new S.vY(A,P,{shouldPushStackElementBefore:v(w,A),shouldPushStackElementAfter:!1})}static lineInsertBefore(w,j,U){if(j===null||U===null)return[];const K=[];for(let G=0,P=U.length;G<P;G++){let A=U[G].positionLineNumber;if(A===1)K[G]=new k.q2(new L.Q(1,1,1,1),`
`);else{A--;const T=j.getLineMaxColumn(A);K[G]=this._enter(w,j,!1,new L.Q(A,T,A,T))}}return K}static lineInsertAfter(w,j,U){if(j===null||U===null)return[];const K=[];for(let G=0,P=U.length;G<P;G++){const A=U[G].positionLineNumber,T=j.getLineMaxColumn(A);K[G]=this._enter(w,j,!1,new L.Q(A,T,A,T))}return K}static lineBreakInsert(w,j,U){const K=[];for(let G=0,P=U.length;G<P;G++)K[G]=this._enter(w,j,!0,U[G]);return K}}class u extends k.iP{constructor(w,j,U,K){super(w,(U?j:"")+K,0,-K.length),this._openCharacter=j,this._closeCharacter=K,this.closeCharacterRange=null,this.enclosingRange=null}computeCursorState(w,j){const K=j.getInverseEditOperations()[0].range;return this.closeCharacterRange=new L.Q(K.startLineNumber,K.endColumn-this._closeCharacter.length,K.endLineNumber,K.endColumn),this.enclosingRange=new L.Q(K.startLineNumber,K.endColumn-this._openCharacter.length-this._closeCharacter.length,K.endLineNumber,K.endColumn),super.computeCursorState(w,j)}}class C{constructor(w,j,U,K,G,P){this.deletedText=w,this.deletedSelectionStart=j,this.deletedSelectionEnd=U,this.insertedText=K,this.insertedSelectionStart=G,this.insertedSelectionEnd=P}}function h(O,w){return O===" "?w===5||w===6?6:5:4}function v(O,w){return b(O)&&!b(w)?!0:O===5?!1:p(O)!==p(w)}function p(O){return O===6||O===5?"space":O}function b(O){return O===4||O===5||O===6}},"./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorWordOperations.js":function(pt,Me,e){e.d(Me,{c:function(){return I},z:function(){return x}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/common/cursorCommon.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/cursor/cursorDeleteOperations.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/wordCharacterClassifier.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js");class x{static _createWord(d,a,s,n,i){return{start:n,end:i,wordType:a,nextCharClass:s}}static _createIntlWord(d,a){return{start:d.index,end:d.index+d.segment.length,wordType:1,nextCharClass:a}}static _findPreviousWordOnLine(d,a,s){const n=a.getLineContent(s.lineNumber);return this._doFindPreviousWordOnLine(n,d,s)}static _doFindPreviousWordOnLine(d,a,s){let n=0;const i=a.findPrevIntlWordBeforeOrAtOffset(d,s.column-2);for(let c=s.column-2;c>=0;c--){const m=d.charCodeAt(c),u=a.get(m);if(i&&c===i.index)return this._createIntlWord(i,u);if(u===0){if(n===2)return this._createWord(d,n,u,c+1,this._findEndOfWord(d,a,n,c+1));n=1}else if(u===2){if(n===1)return this._createWord(d,n,u,c+1,this._findEndOfWord(d,a,n,c+1));n=2}else if(u===1&&n!==0)return this._createWord(d,n,u,c+1,this._findEndOfWord(d,a,n,c+1))}return n!==0?this._createWord(d,n,1,0,this._findEndOfWord(d,a,n,0)):null}static _findEndOfWord(d,a,s,n){const i=a.findNextIntlWordAtOrAfterOffset(d,n),c=d.length;for(let m=n;m<c;m++){const u=d.charCodeAt(m),C=a.get(u);if(i&&m===i.index+i.segment.length||C===1||s===1&&C===2||s===2&&C===0)return m}return c}static _findNextWordOnLine(d,a,s){const n=a.getLineContent(s.lineNumber);return this._doFindNextWordOnLine(n,d,s)}static _doFindNextWordOnLine(d,a,s){let n=0;const i=d.length,c=a.findNextIntlWordAtOrAfterOffset(d,s.column-1);for(let m=s.column-1;m<i;m++){const u=d.charCodeAt(m),C=a.get(u);if(c&&m===c.index)return this._createIntlWord(c,C);if(C===0){if(n===2)return this._createWord(d,n,C,this._findStartOfWord(d,a,n,m-1),m);n=1}else if(C===2){if(n===1)return this._createWord(d,n,C,this._findStartOfWord(d,a,n,m-1),m);n=2}else if(C===1&&n!==0)return this._createWord(d,n,C,this._findStartOfWord(d,a,n,m-1),m)}return n!==0?this._createWord(d,n,1,this._findStartOfWord(d,a,n,i-1),i):null}static _findStartOfWord(d,a,s,n){const i=a.findPrevIntlWordBeforeOrAtOffset(d,n);for(let c=n;c>=0;c--){const m=d.charCodeAt(c),u=a.get(m);if(i&&c===i.index)return c;if(u===1||s===1&&u===2||s===2&&u===0)return c+1}return 0}static moveWordLeft(d,a,s,n){let i=s.lineNumber,c=s.column;c===1&&i>1&&(i=i-1,c=a.getLineMaxColumn(i));l
`);this.histogram[D]=(this.histogram[D]||0)+1}this.totalCount=ie}computeSimilarity(V){var Y,X;let ie=0;const re=Math.max(this.histogram.length,V.histogram.length);for(let te=0;te<re;te++)ie+=Math.abs(((Y=this.histogram[te])!==null&&Y!==void 0?Y:0)-((X=V.histogram[te])!==null&&X!==void 0?X:0));return 1-ie/(this.totalCount+V.totalCount)}}S.chrKeys=new Map;class f{compute(V,Y,X=g.uY.instance,ie){if(V.length===0||Y.length===0)return g.SL.trivial(V,Y);const re=new x(V.length,Y.length),te=new x(V.length,Y.length),D=new x(V.length,Y.length);for(let De=0;De<V.length;De++)for(let Te=0;Te<Y.length;Te++){if(!X.isValid())return g.SL.trivialTimedOut(V,Y);const He=De===0?0:re.get(De-1,Te),qe=Te===0?0:re.get(De,Te-1);let Qe;V.getElement(De)===Y.getElement(Te)?(De===0||Te===0?Qe=0:Qe=re.get(De-1,Te-1),De>0&&Te>0&&te.get(De-1,Te-1)===3&&(Qe+=D.get(De-1,Te-1)),Qe+=ie?ie(De,Te):1):Qe=-1;const q=Math.max(He,qe,Qe);if(q===Qe){const ye=De>0&&Te>0?D.get(De-1,Te-1):0;D.set(De,Te,ye+1),te.set(De,Te,3)}else q===He?(D.set(De,Te,0),te.set(De,Te,1)):q===qe&&(D.set(De,Te,0),te.set(De,Te,2));re.set(De,Te,q)}const he=[];let ve=V.length,Ce=Y.length;function Pe(De,Te){(De+1!==ve||Te+1!==Ce)&&he.push(new g.$8(new M.L(De+1,ve),new M.L(Te+1,Ce))),ve=De,Ce=Te}let _e=V.length-1,ee=Y.length-1;for(;_e>=0&&ee>=0;)te.get(_e,ee)===3?(Pe(_e,ee),_e--,ee--):te.get(_e,ee)===1?_e--:ee--;return Pe(-1,-1),he.reverse(),new g.SL(he,!1)}}class d{compute(V,Y,X=g.uY.instance){if(V.length===0||Y.length===0)return g.SL.trivial(V,Y);const ie=V,re=Y;function te(Te,He){for(;Te<ie.length&&He<re.length&&ie.getElement(Te)===re.getElement(He);)Te++,He++;return Te}let D=0;const he=new s;he.set(0,te(0,0));const ve=new n;ve.set(0,he.get(0)===0?null:new a(null,0,0,he.get(0)));let Ce=0;e:for(;;){if(D++,!X.isValid())return g.SL.trivialTimedOut(ie,re);const Te=-Math.min(D,re.length+D%2),He=Math.min(D,ie.length+D%2);for(Ce=Te;Ce<=He;Ce+=2){let qe=0;const Qe=Ce===He?-1:he.get(Ce+1),q=Ce===Te?-1:he.get(Ce-1)+1;qe++;const ye=Math.min(Math.max(Qe,q),ie.length),ge=ye-Ce;if(qe++,ye>ie.length||ge>re.length)continue;const be=te(ye,ge);he.set(Ce,be);const Se=ye===Qe?ve.get(Ce+1):ve.get(Ce-1);if(ve.set(Ce,be!==ye?new a(Se,ye,ge,be-ye):Se),he.get(Ce)===ie.length&&he.get(Ce)-Ce===re.length)break e}}let Pe=ve.get(Ce);const _e=[];let ee=ie.length,De=re.length;for(;;){const Te=Pe?Pe.x+Pe.length:0,He=Pe?Pe.y+Pe.length:0;if((Te!==ee||He!==De)&&_e.push(new g.$8(new M.L(Te,ee),new M.L(He,De))),!Pe)break;ee=Pe.x,De=Pe.y,Pe=Pe.prev}return _e.reverse(),new g.SL(_e,!1)}}class a{constructor(V,Y,X,ie){this.prev=V,this.x=Y,this.y=X,this.length=ie}}class s{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(V){return V<0?(V=-V-1,this.negativeArr[V]):this.positiveArr[V]}set(V,Y){if(V<0){if(V=-V-1,V>=this.negativeArr.length){const X=this.negativeArr;this.negativeArr=new Int32Array(X.length*2),this.negativeArr.set(X)}this.negativeArr[V]=Y}else{if(V>=this.positiveArr.length){const X=this.positiveArr;this.positiveArr=new Int32Array(X.length*2),this.positiveArr.set(X)}this.positiveArr[V]=Y}}}class n{constructor(){this.positiveArr=[],this.negativeArr=[]}get(V){return V<0?(V=-V-1,this.negativeArr[V]):this.positiveArr[V]}set(V,Y){V<0?(V=-V-1,this.negativeArr[V]=Y):this.positiveArr[V]=Y}}var i=e("./node_modules/monaco-editor/esm/vs/editor/common/diff/rangeMapping.js"),c=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),m=e("./node_modules/monaco-editor/esm/vs/base/common/map.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js");class C{constructor(V,Y,X){this.lines=V,this.considerWhitespaceChanges=X,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let ie=!1;Y.start>0&&Y.endExclusive>=V.length&&(Y=new M.L(Y.start-1,Y.endExclusive),ie=!0),this.lineRange=Y,this.firstCharOffsetByLine[0]=0;for(let re=this.lineRange.start;re<this.lineRange.endExclusive;re++){let te=V[re],D=0;if(ie)D=te.length,te="",ie=!1;else if(!X){const he=te.trimStart();D=te.length-he.length,te=he.trimEnd()}this.additionalOffsetByLine.push(D);for(let he=0;h
`).length>=15&&w(Pe,ee=>ee.length>=2)>=2}),te=P(B,te),te}function w(B,V){let Y=0;for(const X of B)V(X)&&Y++;return Y}function j(B,V,Y,X){const ie=[],re=B.filter(he=>he.modified.isEmpty&&he.original.length>=3).map(he=>new S(he.original,V,he)),te=new Set(B.filter(he=>he.original.isEmpty&&he.modified.length>=3).map(he=>new S(he.modified,Y,he))),D=new Set;for(const he of re){let ve=-1,Ce;for(const Pe of te){const _e=he.computeSimilarity(Pe);_e>ve&&(ve=_e,Ce=Pe)}if(ve>.9&&Ce&&(te.delete(Ce),ie.push(new i.WL(he.range,Ce.range)),D.add(he.source),D.add(Ce.source)),!X.isValid())return{moves:ie,excludedChanges:D}}return{moves:ie,excludedChanges:D}}function U(B,V,Y,X,ie,re){const te=[],D=new m.db;for(const _e of B)for(let ee=_e.original.startLineNumber;ee<_e.original.endLineNumberExclusive-2;ee++){const De=`${V[ee-1]}:${V[ee+1-1]}:${V[ee+2-1]}`;D.add(De,{range:new k.M(ee,ee+3)})}const he=[];B.sort((0,r.VE)(_e=>_e.modified.startLineNumber,r.U9));for(const _e of B){let ee=[];for(let De=_e.modified.startLineNumber;De<_e.modified.endLineNumberExclusive-2;De++){const Te=`${Y[De-1]}:${Y[De+1-1]}:${Y[De+2-1]}`,He=new k.M(De,De+3),qe=[];D.forEach(Te,({range:Qe})=>{for(const ye of ee)if(ye.originalLineRange.endLineNumberExclusive+1===Qe.endLineNumberExclusive&&ye.modifiedLineRange.endLineNumberExclusive+1===He.endLineNumberExclusive){ye.originalLineRange=new k.M(ye.originalLineRange.startLineNumber,Qe.endLineNumberExclusive),ye.modifiedLineRange=new k.M(ye.modifiedLineRange.startLineNumber,He.endLineNumberExclusive),qe.push(ye);return}const q={modifiedLineRange:He,originalLineRange:Qe};he.push(q),qe.push(q)}),ee=qe}if(!re.isValid())return[]}he.sort((0,r.Hw)((0,r.VE)(_e=>_e.modifiedLineRange.length,r.U9)));const ve=new k.S,Ce=new k.S;for(const _e of he){const ee=_e.modifiedLineRange.startLineNumber-_e.originalLineRange.startLineNumber,De=ve.subtractFrom(_e.modifiedLineRange),Te=Ce.subtractFrom(_e.originalLineRange).getWithDelta(ee),He=De.getIntersection(Te);for(const qe of He.ranges){if(qe.length<3)continue;const Qe=qe,q=qe.delta(-ee);te.push(new i.WL(q,Qe)),ve.addRange(Qe),Ce.addRange(q)}}te.sort((0,r.VE)(_e=>_e.original.startLineNumber,r.U9));const Pe=new c.vJ(B);for(let _e=0;_e<te.length;_e++){const ee=te[_e],De=Pe.findLastMonotonous(be=>be.original.startLineNumber<=ee.original.startLineNumber),Te=(0,c.lx)(B,be=>be.modified.startLineNumber<=ee.modified.startLineNumber),He=Math.max(ee.original.startLineNumber-De.original.startLineNumber,ee.modified.startLineNumber-Te.modified.startLineNumber),qe=Pe.findLastMonotonous(be=>be.original.startLineNumber<ee.original.endLineNumberExclusive),Qe=(0,c.lx)(B,be=>be.modified.startLineNumber<ee.modified.endLineNumberExclusive),q=Math.max(qe.original.endLineNumberExclusive-ee.original.endLineNumberExclusive,Qe.modified.endLineNumberExclusive-ee.modified.endLineNumberExclusive);let ye;for(ye=0;ye<He;ye++){const be=ee.original.startLineNumber-ye-1,Se=ee.modified.startLineNumber-ye-1;if(be>X.length||Se>ie.length||ve.contains(Se)||Ce.contains(be)||!K(X[be-1],ie[Se-1],re))break}ye>0&&(Ce.addRange(new k.M(ee.original.startLineNumber-ye,ee.original.startLineNumber)),ve.addRange(new k.M(ee.modified.startLineNumber-ye,ee.modified.startLineNumber)));let ge;for(ge=0;ge<q;ge++){const be=ee.original.endLineNumberExclusive+ge,Se=ee.modified.endLineNumberExclusive+ge;if(be>X.length||Se>ie.length||ve.contains(Se)||Ce.contains(be)||!K(X[be-1],ie[Se-1],re))break}ge>0&&(Ce.addRange(new k.M(ee.original.endLineNumberExclusive,ee.original.endLineNumberExclusive+ge)),ve.addRange(new k.M(ee.modified.endLineNumberExclusive,ee.modified.endLineNumberExclusive+ge))),(ye>0||ge>0)&&(te[_e]=new i.WL(new k.M(ee.original.startLineNumber-ye,ee.original.endLineNumberExclusive+ge),new k.M(ee.modified.startLineNumber-ye,ee.modified.endLineNumberExclusive+ge)))}return te}function K(B,V,Y){if(B.trim()===V.trim())return!0;if(B.length>300&&V.length>300)return!1;const ie=new d().compute(new C([B],new M.L(0,1),!1),new C([V],new M.L(0,1),!1),Y);let re=0;const te=g.$8.invert(ie.diffs,B.length);for(const Ce of te)Ce.seq1Range.forEach(Pe=>{I(B.char
`)}isStronglyEqual(V,Y){return this.lines[V]===this.lines[Y]}}function E(B){let V=0;for(;V<B.length&&(B.charCodeAt(V)===32||B.charCodeAt(V)===9);)V++;return V}var W=e("./node_modules/monaco-editor/esm/vs/editor/common/diff/linesDiffComputer.js");class ${constructor(){this.dynamicProgrammingDiffing=new f,this.myersDiffingAlgorithm=new d}computeDiff(V,Y,X){if(V.length<=1&&(0,r.aI)(V,Y,(ge,be)=>ge===be))return new W.p([],[],!1);if(V.length===1&&V[0].length===0||Y.length===1&&Y[0].length===0)return new W.p([new i.wm(new k.M(1,V.length+1),new k.M(1,Y.length+1),[new i.q6(new L.Q(1,1,V.length,V[0].length+1),new L.Q(1,1,Y.length,Y[0].length+1))])],[],!1);const ie=X.maxComputationTimeMs===0?g.uY.instance:new g.aY(X.maxComputationTimeMs),re=!X.ignoreTrimWhitespace,te=new Map;function D(ge){let be=te.get(ge);return be===void 0&&(be=te.size,te.set(ge,be)),be}const he=V.map(ge=>D(ge.trim())),ve=Y.map(ge=>D(ge.trim())),Ce=new T(he,V),Pe=new T(ve,Y),_e=Ce.length+Pe.length<1700?this.dynamicProgrammingDiffing.compute(Ce,Pe,ie,(ge,be)=>V[ge]===Y[be]?Y[be].length===0?.1:1+Math.log(1+Y[be].length):.99):this.myersDiffingAlgorithm.compute(Ce,Pe);let ee=_e.diffs,De=_e.hitTimeout;ee=(0,A.NC)(Ce,Pe,ee),ee=(0,A.X5)(Ce,Pe,ee);const Te=[],He=ge=>{if(re)for(let be=0;be<ge;be++){const Se=qe+be,ae=Qe+be;if(V[Se]!==Y[ae]){const me=this.refineDiff(V,Y,new g.$8(new M.L(Se,Se+1),new M.L(ae,ae+1)),ie,re);for(const fe of me.mappings)Te.push(fe);me.hitTimeout&&(De=!0)}}};let qe=0,Qe=0;for(const ge of ee){(0,F.Ft)(()=>ge.seq1Range.start-qe===ge.seq2Range.start-Qe);const be=ge.seq1Range.start-qe;He(be),qe=ge.seq1Range.endExclusive,Qe=ge.seq2Range.endExclusive;const Se=this.refineDiff(V,Y,ge,ie,re);Se.hitTimeout&&(De=!0);for(const ae of Se.mappings)Te.push(ae)}He(V.length-qe);const q=z(Te,V,Y);let ye=[];return X.computeMoves&&(ye=this.computeMoves(q,V,Y,he,ve,ie,re)),(0,F.Ft)(()=>{function ge(Se,ae){if(Se.lineNumber<1||Se.lineNumber>ae.length)return!1;const me=ae[Se.lineNumber-1];return!(Se.column<1||Se.column>me.length+1)}function be(Se,ae){return!(Se.startLineNumber<1||Se.startLineNumber>ae.length+1||Se.endLineNumberExclusive<1||Se.endLineNumberExclusive>ae.length+1)}for(const Se of q){if(!Se.innerChanges)return!1;for(const ae of Se.innerChanges)if(!(ge(ae.modifiedRange.getStartPosition(),Y)&&ge(ae.modifiedRange.getEndPosition(),Y)&&ge(ae.originalRange.getStartPosition(),V)&&ge(ae.originalRange.getEndPosition(),V)))return!1;if(!be(Se.modified,Y)||!be(Se.original,V))return!1}return!0}),new W.p(q,ye,De)}computeMoves(V,Y,X,ie,re,te,D){return O(V,Y,X,ie,re,te).map(Ce=>{const Pe=this.refineDiff(Y,X,new g.$8(Ce.original.toOffsetRange(),Ce.modified.toOffsetRange()),te,D),_e=z(Pe.mappings,Y,X,!0);return new W.t(Ce,_e)})}refineDiff(V,Y,X,ie,re){const te=new C(V,X.seq1Range,re),D=new C(Y,X.seq2Range,re),he=te.length+D.length<500?this.dynamicProgrammingDiffing.compute(te,D,ie):this.myersDiffingAlgorithm.compute(te,D,ie);let ve=he.diffs;return ve=(0,A.NC)(te,D,ve),ve=(0,A.Lk)(te,D,ve),ve=(0,A.sq)(te,D,ve),ve=(0,A.Rl)(te,D,ve),{mappings:ve.map(Pe=>new i.q6(te.translateRange(Pe.seq1Range),D.translateRange(Pe.seq2Range))),hitTimeout:he.hitTimeout}}}function z(B,V,Y,X=!1){const ie=[];for(const re of(0,r.n)(B.map(te=>J(te,V,Y)),(te,D)=>te.original.overlapOrTouch(D.original)||te.modified.overlapOrTouch(D.modified))){const te=re[0],D=re[re.length-1];ie.push(new i.wm(te.original.join(D.original),te.modified.join(D.modified),re.map(he=>he.innerChanges[0])))}return(0,F.Ft)(()=>!X&&ie.length>0&&(ie[0].modified.startLineNumber!==ie[0].original.startLineNumber||Y.length-ie[ie.length-1].modified.endLineNumberExclusive!==V.length-ie[ie.length-1].original.endLineNumberExclusive)?!1:(0,F.Xo)(ie,(re,te)=>te.original.startLineNumber-re.original.endLineNumberExclusive===te.modified.startLineNumber-re.modified.endLineNumberExclusive&&re.original.endLineNumberExclusive<te.original.startLineNumber&&re.modified.endLineNumberExclusive<te.modified.startLineNumber)),ie}function J(B,V,Y){let X=0,ie=0;B.modifiedRange.endColumn===1&&B.originalRange.endColumn===1&&B.originalRange.startLineNumber+X<=B
`,x.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])>
`;var I=e("./node_modules/monaco-editor/esm/vs/base/common/arrays.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/supports/richEditBrackets.js");class f{constructor(te){this._richEditBrackets=te}getElectricCharacters(){const te=[];if(this._richEditBrackets)for(const D of this._richEditBrackets.brackets)for(const he of D.close){const ve=he.charAt(he.length-1);te.push(ve)}return(0,I.dM)(te)}onElectricCharacter(te,D,he){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const ve=D.findTokenIndexAtOffset(he-1);if((0,g.Yo)(D.getStandardTokenType(ve)))return null;const Ce=this._richEditBrackets.reversedRegex,Pe=D.getLineContent().substring(0,he-1)+te,_e=S.Fu.findPrevBracketInRange(Ce,1,Pe,0,Pe.length);if(!_e)return null;const ee=Pe.substring(_e.startColumn-1,_e.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[ee])return null;const Te=D.getActualLineContentBefore(_e.startColumn-1);return/^\s*$/.test(Te)?{matchOpenBracket:ee}:null}}function d(re){return re.global&&(re.lastIndex=0),!0}class a{constructor(te){this._indentationRules=te}shouldIncrease(te){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&d(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(te))}shouldDecrease(te){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&d(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(te))}shouldIndentNextLine(te){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&d(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(te))}shouldIgnore(te){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&d(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(te))}getIndentMetadata(te){let D=0;return this.shouldIncrease(te)&&(D+=1),this.shouldDecrease(te)&&(D+=2),this.shouldIndentNextLine(te)&&(D+=4),this.shouldIgnore(te)&&(D+=8),D}}var s=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js");class n{constructor(te){te=te||{},te.brackets=te.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],te.brackets.forEach(D=>{const he=n._createOpenBracketRegExp(D[0]),ve=n._createCloseBracketRegExp(D[1]);he&&ve&&this._brackets.push({open:D[0],openRegExp:he,close:D[1],closeRegExp:ve})}),this._regExpRules=te.onEnterRules||[]}onEnter(te,D,he,ve){if(te>=3)for(let Ce=0,Pe=this._regExpRules.length;Ce<Pe;Ce++){const _e=this._regExpRules[Ce];if([{reg:_e.beforeText,text:he},{reg:_e.afterText,text:ve},{reg:_e.previousLineText,text:D}].every(De=>De.reg?(De.reg.lastIndex=0,De.reg.test(De.text)):!0))return _e.action}if(te>=2&&he.length>0&&ve.length>0)for(let Ce=0,Pe=this._brackets.length;Ce<Pe;Ce++){const _e=this._brackets[Ce];if(_e.openRegExp.test(he)&&_e.closeRegExp.test(ve))return{indentAction:L.l.IndentOutdent}}if(te>=2&&he.length>0){for(let Ce=0,Pe=this._brackets.length;Ce<Pe;Ce++)if(this._brackets[Ce].openRegExp.test(he))return{indentAction:L.l.Indent}}return null}static _createOpenBracketRegExp(te){let D=k.bm(te);return/\B/.test(D.charAt(0))||(D="\\b"+D),D+="\\s*$",n._safeRegExp(D)}static _createCloseBracketRegExp(te){let D=k.bm(te);return/\B/.test(D.charAt(D.length-1))||(D=D+"\\b"),D="^\\s*"+D,n._safeRegExp(D)}static _safeRegExp(te){try{return new RegExp(te)}catch(D){return(0,s.dz)(D),null}}}var i=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),c=e("./node_modules/monaco-editor/esm/vs/platform/configuration/common/configuration.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),u=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/extensions.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/modesRegistry.js"),h=e("./node_modules/monaco-editor/esm/vs/base/common/cache.js");class v{constructor(te,D){this.languageId=te;const he=D.brackets?p(D.brackets):[],ve=new h.V(_e=>{const ee=new
`,"gi"):null,i=[];let c,m=0,u=0,C=0,h=0;const v=[];for(let O=0;O<60;O++)v.push(new g((0,M.qe)(0,O),0,-1,L.gV.getEmpty(),new k.yF((0,M.qe)(0,O))));const p=[];for(let O=0;O<60;O++)p.push(new g((0,M.qe)(1,O),0,-1,L.gV.getEmpty(),new k.yF((0,M.qe)(1,O))));if(n)for(n.lastIndex=0;(c=n.exec(d))!==null;){const O=c.index,w=c[0];if(w===`
`)m++,u=O+1;else{if(C!==O){let j;if(h===m){const U=O-C;if(U<v.length)j=v[U];else{const K=(0,M.qe)(0,U);j=new g(K,0,-1,L.gV.getEmpty(),new k.yF(K))}}else{const U=m-h,K=O-u;if(U===1&&K<p.length)j=p[K];else{const G=(0,M.qe)(U,K);j=new g(G,0,-1,L.gV.getEmpty(),new k.yF(G))}}i.push(j)}i.push(a.getToken(w)),C=O+w.length,h=m}}const b=d.length;if(C!==b){const O=h===m?(0,M.qe)(0,b-C):(0,M.qe)(m-h,b-u);i.push(new g(O,0,-1,L.gV.getEmpty(),new k.yF(O)))}this.length=(0,M.qe)(m,b-u),this.tokens=i}get offset(){return this._offset}read(){return this.tokens[this.idx++]||null}peek(){return this.tokens[this.idx]||null}skip(d){throw new r.EM}}},"./node_modules/monaco-editor/esm/vs/editor/common/model/editStack.js":function(pt,Me,e){e.d(Me,{Th:function(){return s},z8:function(){return n}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textChange.js"),g=e("./node_modules/monaco-editor/esm/vs/base/common/buffer.js"),x=e("./node_modules/monaco-editor/esm/vs/base/common/resources.js");function I(i){return i.toString()}class S{static create(c,m){const u=c.getAlternativeVersionId(),C=a(c);return new S(u,u,C,C,m,m,[])}constructor(c,m,u,C,h,v,p){this.beforeVersionId=c,this.afterVersionId=m,this.beforeEOL=u,this.afterEOL=C,this.beforeCursorState=h,this.afterCursorState=v,this.changes=p}append(c,m,u,C,h){m.length>0&&(this.changes=(0,L.x)(this.changes,m)),this.afterEOL=u,this.afterVersionId=C,this.afterCursorState=h}static _writeSelectionsSize(c){return 4+4*4*(c?c.length:0)}static _writeSelections(c,m,u){if(g.Sw(c,m?m.length:0,u),u+=4,m)for(const C of m)g.Sw(c,C.selectionStartLineNumber,u),u+=4,g.Sw(c,C.selectionStartColumn,u),u+=4,g.Sw(c,C.positionLineNumber,u),u+=4,g.Sw(c,C.positionColumn,u),u+=4;return u}static _readSelections(c,m,u){const C=g.bb(c,m);m+=4;for(let h=0;h<C;h++){const v=g.bb(c,m);m+=4;const p=g.bb(c,m);m+=4;const b=g.bb(c,m);m+=4;const O=g.bb(c,m);m+=4,u.push(new k.L(v,p,b,O))}return m}serialize(){let c=10+S._writeSelectionsSize(this.beforeCursorState)+S._writeSelectionsSize(this.afterCursorState)+4;for(const C of this.changes)c+=C.writeSize();const m=new Uint8Array(c);let u=0;g.Sw(m,this.beforeVersionId,u),u+=4,g.Sw(m,this.afterVersionId,u),u+=4,g.Gs(m,this.beforeEOL,u),u+=1,g.Gs(m,this.afterEOL,u),u+=1,u=S._writeSelections(m,this.beforeCursorState,u),u=S._writeSelections(m,this.afterCursorState,u),g.Sw(m,this.changes.length,u),u+=4;for(const C of this.changes)u=C.write(m,u);return m.buffer}static deserialize(c){const m=new Uint8Array(c);let u=0;const C=g.bb(m,u);u+=4;const h=g.bb(m,u);u+=4;const v=g.pJ(m,u);u+=1;const p=g.pJ(m,u);u+=1;const b=[];u=S._readSelections(m,u,b);const O=[];u=S._readSelections(m,u,O);const w=g.bb(m,u);u+=4;const j=[];for(let U=0;U<w;U++)u=L.k.read(m,u,j);return new S(C,h,v,p,b,O,j)}}class f{get type(){return 0}get resource(){return M.r.isUri(this.model)?this.model:this.model.uri}constructor(c,m,u,C){this.label=c,this.code=m,this.model=u,this._data=S.create(u,C)}toString(){return(this._data instanceof S?this._data:S.deserialize(this._data)).changes.map(m=>m.toString()).join(", ")}matchesResource(c){return(M.r.isUri(this.model)?this.model:this.model.uri).toString()===c.toString()}setModel(c){this.model=c}canAppend(c){return this.model===c&&this._data instanceof S}append(c,m,u,C,h){this._data instanceof S&&this._data.append(c,m,u,C,h)}close(){this._data instanceof S&&(this._data=this._data.serialize())}open(){this._data instanceof S||(this._data=S.deserialize(this._data))}undo(){if(M.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof S&&(this._data=this._data.serialize());const c=S.deserialize(this._data);this.model._applyUndo(c.changes,c.beforeEOL,c.beforeVersionId,c.beforeCursorState)}redo(){if(M.r.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof S&&(t
`?0:1}function s(i){return i?i instanceof f||i instanceof d:!1}class n{constructor(c,m){this._model=c,this._undoRedoService=m}pushStackElement(){const c=this._undoRedoService.getLastElement(this._model.uri);s(c)&&c.close()}popStackElement(){const c=this._undoRedoService.getLastElement(this._model.uri);s(c)&&c.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(c,m){const u=this._undoRedoService.getLastElement(this._model.uri);if(s(u)&&u.canAppend(this._model))return u;const C=new f(r.kg("edit","Typing"),"undoredo.textBufferEdit",this._model,c);return this._undoRedoService.pushElement(C,m),C}pushEOL(c){const m=this._getOrCreateEditStackElement(null,void 0);this._model.setEOL(c),m.append(this._model,[],a(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(c,m,u,C){const h=this._getOrCreateEditStackElement(c,C),v=this._model.applyEdits(m,!0),p=n._computeCursorState(u,v),b=v.map((O,w)=>({index:w,textChange:O.textChange}));return b.sort((O,w)=>O.textChange.oldPosition===w.textChange.oldPosition?O.index-w.index:O.textChange.oldPosition-w.textChange.oldPosition),h.append(this._model,b.map(O=>O.textChange),a(this._model),this._model.getAlternativeVersionId(),p),p}static _computeCursorState(c,m){try{return c?c(m):null}catch(u){return(0,F.dz)(u),null}}}},"./node_modules/monaco-editor/esm/vs/editor/common/model/guidesTextModelPart.js":function(pt,Me,e){e.d(Me,{P:function(){return S},k:function(){return f}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/arraysFind.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/core/cursorColumns.js"),M=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModelPart.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/model/utils.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/textModelGuides.js"),I=e("./node_modules/monaco-editor/esm/vs/base/common/errors.js");class S extends L._{constructor(a,s){super(),this.textModel=a,this.languageConfigurationService=s}getLanguageConfiguration(a){return this.languageConfigurationService.getLanguageConfiguration(a)}_computeIndentLevel(a){return(0,g.G)(this.textModel.getLineContent(a+1),this.textModel.getOptions().tabSize)}getActiveIndentGuide(a,s,n){this.assertNotDisposed();const i=this.textModel.getLineCount();if(a<1||a>i)throw new I.D7("Illegal value for lineNumber");const c=this.getLanguageConfiguration(this.textModel.getLanguageId()).foldingRules,m=!!(c&&c.offSide);let u=-2,C=-1,h=-2,v=-1;const p=W=>{if(u!==-1&&(u===-2||u>W-1)){u=-1,C=-1;for(let $=W-2;$>=0;$--){const z=this._computeIndentLevel($);if(z>=0){u=$,C=z;break}}}if(h===-2){h=-1,v=-1;for(let $=W;$<i;$++){const z=this._computeIndentLevel($);if(z>=0){h=$,v=z;break}}}};let b=-2,O=-1,w=-2,j=-1;const U=W=>{if(b===-2){b=-1,O=-1;for(let $=W-2;$>=0;$--){const z=this._computeIndentLevel($);if(z>=0){b=$,O=z;break}}}if(w!==-1&&(w===-2||w<W-1)){w=-1,j=-1;for(let $=W;$<i;$++){const z=this._computeIndentLevel($);if(z>=0){w=$,j=z;break}}}};let K=0,G=!0,P=0,A=!0,T=0,E=0;for(let W=0;G||A;W++){const $=a-W,z=a+W;W>1&&($<1||$<s)&&(G=!1),W>1&&(z>i||z>n)&&(A=!1),W>5e4&&(G=!1,A=!1);let J=-1;if(G&&$>=1){const V=this._computeIndentLevel($-1);V>=0?(h=$-1,v=V,J=Math.ceil(V/this.textModel.getOptions().indentSize)):(p($),J=this._getIndentLevelForWhitespaceLine(m,C,v))}let B=-1;if(A&&z<=i){const V=this._computeIndentLevel(z-1);V>=0?(b=z-1,O=V,B=Math.ceil(V/this.textModel.getOptions().indentSize)):(U(z),B=this._getIndentLevelForWhitespaceLine(m,O,j))}if(W===0){E=J;continue}if(W===1){if(z<=i&&B>=0&&E+1===B){G=!1,K=z,P=z,T=B;continue}if($>=1&&J>=0&&J-1===E){A=!1,K=$,P=$,T=J;continue}if(K=a,P=a,T=E,T===0)return{startLineNumber:K,endLineNumber:P,indent:T}}G&&(J>=T?K=$:G=!1),A&&(B>=T?P=z:A=!1)}return{startLineNumber:K,endLineNumber:P,indent:T}}getLinesBracketGuides(a,s,n,i){var c;const m=[];for(let b=a;b<=s;b++)m.push([]);const u=!0,C=this.textModel.bracketPairs.getBracketPairsInRan
`}if(this.shouldCheckCRLF()&&this.startWithLF(Q))if(this.nodeCharCodeAt(Re,Fe-1)===13){const kn=this.positionInBuffer(Re,Fe-1);this.deleteNodeTail(Re,kn),Q="\r"+Q,Re.piece.length===0&&Xt.push(Re)}else this.deleteNodeTail(Re,Qt);else this.deleteNodeTail(Re,Qt);const on=this.createNewPieces(Q);$t.length>0&&this.rbInsertRight(Re,$t);let un=Re;for(let Cn=0;Cn<on.length;Cn++)un=this.rbInsertRight(un,on[Cn]);this.deleteNodes(Xt)}else this.insertContentToNodeRight(Q,Re)}else{const Re=this.createNewPieces(Q);let Fe=this.rbInsertLeft(null,Re[0]);for(let Ze=1;Ze<Re.length;Ze++)Fe=this.rbInsertRight(Fe,Re[Ze])}this.computeBufferMetadata()}delete(R,Q){if(this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",Q<=0||this.root===Gt)return;const ce=this.nodeAt(R),Re=this.nodeAt(R+Q),Fe=ce.node,Ze=Re.node;if(Fe===Ze){const on=this.positionInBuffer(Fe,ce.remainder),un=this.positionInBuffer(Fe,Re.remainder);if(ce.nodeStartOffset===R){if(Q===Fe.piece.length){const Cn=Fe.next();ri(this,Fe),this.validateCRLFWithPrevNode(Cn),this.computeBufferMetadata();return}this.deleteNodeHead(Fe,un),this._searchCache.validate(R),this.validateCRLFWithPrevNode(Fe),this.computeBufferMetadata();return}if(ce.nodeStartOffset+Fe.piece.length===R+Q){this.deleteNodeTail(Fe,on),this.validateCRLFWithNextNode(Fe),this.computeBufferMetadata();return}this.shrinkNode(Fe,on,un),this.computeBufferMetadata();return}const wt=[],Lt=this.positionInBuffer(Fe,ce.remainder);this.deleteNodeTail(Fe,Lt),this._searchCache.validate(R),Fe.piece.length===0&&wt.push(Fe);const Qt=this.positionInBuffer(Ze,Re.remainder);this.deleteNodeHead(Ze,Qt),Ze.piece.length===0&&wt.push(Ze);const Xt=Fe.next();for(let on=Xt;on!==Gt&&on!==Ze;on=on.next())wt.push(on);const $t=Fe.piece.length===0?Fe.prev():Fe;this.deleteNodes(wt),this.validateCRLFWithNextNode($t),this.computeBufferMetadata()}insertContentToNodeLeft(R,Q){const ce=[];if(this.shouldCheckCRLF()&&this.endWithCR(R)&&this.startWithLF(Q)){const Ze=Q.piece,wt={line:Ze.start.line+1,column:0},Lt=new Yn(Ze.bufferIndex,wt,Ze.end,this.getLineFeedCnt(Ze.bufferIndex,wt,Ze.end),Ze.length-1);Q.piece=Lt,R+=`
`,Mi(this,Q,-1,-1),Q.piece.length===0&&ce.push(Q)}const Re=this.createNewPieces(R);let Fe=this.rbInsertLeft(Q,Re[Re.length-1]);for(let Ze=Re.length-2;Ze>=0;Ze--)Fe=this.rbInsertLeft(Fe,Re[Ze]);this.validateCRLFWithPrevNode(Fe),this.deleteNodes(ce)}insertContentToNodeRight(R,Q){this.adjustCarriageReturnFromNext(R,Q)&&(R+=`
`);const ce=this.createNewPieces(R),Re=this.rbInsertRight(Q,ce[0]);let Fe=Re;for(let Ze=1;Ze<ce.length;Ze++)Fe=this.rbInsertRight(Fe,ce[Ze]);this.validateCRLFWithPrevNode(Re)}positionInBuffer(R,Q,ce){const Re=R.piece,Fe=R.piece.bufferIndex,Ze=this._buffers[Fe].lineStarts,Lt=Ze[Re.start.line]+Re.start.column+Q;let Qt=Re.start.line,Xt=Re.end.line,$t=0,on=0,un=0;for(;Qt<=Xt&&($t=Qt+(Xt-Qt)/2|0,un=Ze[$t],$t!==Xt);)if(on=Ze[$t+1],Lt<un)Xt=$t-1;else if(Lt>=on)Qt=$t+1;else break;return ce?(ce.line=$t,ce.column=Lt-un,null):{line:$t,column:Lt-un}}getLineFeedCnt(R,Q,ce){if(ce.column===0)return ce.line-Q.line;const Re=this._buffers[R].lineStarts;if(ce.line===Re.length-1)return ce.line-Q.line;const Fe=Re[ce.line+1],Ze=Re[ce.line]+ce.column;if(Fe>Ze+1)return ce.line-Q.line;const wt=Ze-1;return this._buffers[R].buffer.charCodeAt(wt)===13?ce.line-Q.line+1:ce.line-Q.line}offsetInBuffer(R,Q){return this._buffers[R].lineStarts[Q.line]+Q.column}deleteNodes(R){for(let Q=0;Q<R.length;Q++)ri(this,R[Q])}createNewPieces(R){if(R.length>Ii){const Xt=[];for(;R.length>Ii;){const on=R.charCodeAt(Ii-1);let un;on===13||on>=55296&&on<=56319?(un=R.substring(0,Ii-1),R=R.substring(Ii-1)):(un=R.substring(0,Ii),R=R.substring(Ii));const Cn=Nn(un);Xt.push(new Yn(this._buffers.length,{line:0,column:0},{line:Cn.length-1,column:un.length-Cn[Cn.length-1]},Cn.length-1,un.length)),this._buffers.push(new Di(un,Cn))}const $t=Nn(R);return Xt.push(new Yn(this._buffers.length,{line:0,column:0},{line:$t.length-1,column:R.length-$t[$t.length-1]},$t.length-1,R.length)),this._buffers.push(new Di(R,$t)),Xt}let Q=this._buffers[0].buffer.length;const ce=Nn(R,!1);let Re=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===Q&&Q!==0&&this.startWithLF(R)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},Re=this._lastChangeBufferPos;for(let Xt=0;Xt<ce.length;Xt++)ce[Xt]+=Q+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(ce.slice(1)),this._buffers[0].buffer+="_"+R,Q+=1}else{if(Q!==0)for(let Xt=0;Xt<ce.length;Xt++)ce[Xt]+=Q;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(ce.slice(1)),this._buffers[0].buffer+=R}const Fe=this._buffers[0].buffer.length,Ze=this._buffers[0].lineStarts.length-1,wt=Fe-this._buffers[0].lineStarts[Ze],Lt={line:Ze,column:wt},Qt=new Yn(0,Re,Lt,this.getLineFeedCnt(0,Re,Lt),Fe-Q);return this._lastChangeBufferPos=Lt,[Qt]}getLineRawContent(R,Q=0){let ce=this.root,Re="";const Fe=this._searchCache.get2(R);if(Fe){ce=Fe.node;const Ze=this.getAccumulatedValue(ce,R-Fe.nodeStartLineNumber-1),wt=this._buffers[ce.piece.bufferIndex].buffer,Lt=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);if(Fe.nodeStartLineNumber+ce.piece.lineFeedCnt===R)Re=wt.substring(Lt+Ze,Lt+ce.piece.length);else{const Qt=this.getAccumulatedValue(ce,R-Fe.nodeStartLineNumber);return wt.substring(Lt+Ze,Lt+Qt-Q)}}else{let Ze=0;const wt=R;for(;ce!==Gt;)if(ce.left!==Gt&&ce.lf_left>=R-1)ce=ce.left;else if(ce.lf_left+ce.piece.lineFeedCnt>R-1){const Lt=this.getAccumulatedValue(ce,R-ce.lf_left-2),Qt=this.getAccumulatedValue(ce,R-ce.lf_left-1),Xt=this._buffers[ce.piece.bufferIndex].buffer,$t=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);return Ze+=ce.size_left,this._searchCache.set({node:ce,nodeStartOffset:Ze,nodeStartLineNumber:wt-(R-1-ce.lf_left)}),Xt.substring($t+Lt,$t+Qt-Q)}else if(ce.lf_left+ce.piece.lineFeedCnt===R-1){const Lt=this.getAccumulatedValue(ce,R-ce.lf_left-2),Qt=this._buffers[ce.piece.bufferIndex].buffer,Xt=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);Re=Qt.substring(Xt+Lt,Xt+ce.piece.length);break}else R-=ce.lf_left+ce.piece.lineFeedCnt,Ze+=ce.size_left+ce.piece.length,ce=ce.right}for(ce=ce.next();ce!==Gt;){const Ze=this._buffers[ce.piece.bufferIndex].buffer;if(ce.piece.lineFeedCnt>0){const wt=this.getAccumulatedValue(ce,0),Lt=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);return Re+=Ze.substring(Lt,Lt+wt-Q),Re}else{const wt=this.offsetInBuffer(ce.piece.bufferIndex,ce.piece.start);
`);const ce=this.shouldCheckCRLF()&&this.startWithLF(Q)&&this.endWithCR(R),Re=this._buffers[0].buffer.length;this._buffers[0].buffer+=Q;const Fe=Nn(Q,!1);for(let un=0;un<Fe.length;un++)Fe[un]+=Re;if(ce){const un=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop(),this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:Re-un}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(Fe.slice(1));const Ze=this._buffers[0].lineStarts.length-1,wt=this._buffers[0].buffer.length-this._buffers[0].lineStarts[Ze],Lt={line:Ze,column:wt},Qt=R.piece.length+Q.length,Xt=R.piece.lineFeedCnt,$t=this.getLineFeedCnt(0,R.piece.start,Lt),on=$t-Xt;R.piece=new Yn(R.piece.bufferIndex,R.piece.start,Lt,$t,Qt),this._lastChangeBufferPos=Lt,Mi(this,R,Q.length,on)}nodeAt(R){let Q=this.root;const ce=this._searchCache.get(R);if(ce)return{node:ce.node,nodeStartOffset:ce.nodeStartOffset,remainder:R-ce.nodeStartOffset};let Re=0;for(;Q!==Gt;)if(Q.size_left>R)Q=Q.left;else if(Q.size_left+Q.piece.length>=R){Re+=Q.size_left;const Fe={node:Q,remainder:R-Q.size_left,nodeStartOffset:Re};return this._searchCache.set(Fe),Fe}else R-=Q.size_left+Q.piece.length,Re+=Q.size_left+Q.piece.length,Q=Q.right;return null}nodeAt2(R,Q){let ce=this.root,Re=0;for(;ce!==Gt;)if(ce.left!==Gt&&ce.lf_left>=R-1)ce=ce.left;else if(ce.lf_left+ce.piece.lineFeedCnt>R-1){const Fe=this.getAccumulatedValue(ce,R-ce.lf_left-2),Ze=this.getAccumulatedValue(ce,R-ce.lf_left-1);return Re+=ce.size_left,{node:ce,remainder:Math.min(Fe+Q-1,Ze),nodeStartOffset:Re}}else if(ce.lf_left+ce.piece.lineFeedCnt===R-1){const Fe=this.getAccumulatedValue(ce,R-ce.lf_left-2);if(Fe+Q-1<=ce.piece.length)return{node:ce,remainder:Fe+Q-1,nodeStartOffset:Re};Q-=ce.piece.length-Fe;break}else R-=ce.lf_left+ce.piece.lineFeedCnt,Re+=ce.size_left+ce.piece.length,ce=ce.right;for(ce=ce.next();ce!==Gt;){if(ce.piece.lineFeedCnt>0){const Fe=this.getAccumulatedValue(ce,0),Ze=this.offsetOfNode(ce);return{node:ce,remainder:Math.min(Q-1,Fe),nodeStartOffset:Ze}}else if(ce.piece.length>=Q-1){const Fe=this.offsetOfNode(ce);return{node:ce,remainder:Q-1,nodeStartOffset:Fe}}else Q-=ce.piece.length;ce=ce.next()}return null}nodeCharCodeAt(R,Q){if(R.piece.lineFeedCnt<1)return-1;const ce=this._buffers[R.piece.bufferIndex],Re=this.offsetInBuffer(R.piece.bufferIndex,R.piece.start)+Q;return ce.buffer.charCodeAt(Re)}offsetOfNode(R){if(!R)return 0;let Q=R.size_left;for(;R!==this.root;)R.parent.right===R&&(Q+=R.parent.size_left+R.parent.piece.length),R=R.parent;return Q}shouldCheckCRLF(){return!(this._EOLNormalized&&this._EOL===`
`)}startWithLF(R){if(typeof R=="string")return R.charCodeAt(0)===10;if(R===Gt||R.piece.lineFeedCnt===0)return!1;const Q=R.piece,ce=this._buffers[Q.bufferIndex].lineStarts,Re=Q.start.line,Fe=ce[Re]+Q.start.column;return Re===ce.length-1||ce[Re+1]>Fe+1?!1:this._buffers[Q.bufferIndex].buffer.charCodeAt(Fe)===10}endWithCR(R){return typeof R=="string"?R.charCodeAt(R.length-1)===13:R===Gt||R.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(R,R.piece.length-1)===13}validateCRLFWithPrevNode(R){if(this.shouldCheckCRLF()&&this.startWithLF(R)){const Q=R.prev();this.endWithCR(Q)&&this.fixCRLF(Q,R)}}validateCRLFWithNextNode(R){if(this.shouldCheckCRLF()&&this.endWithCR(R)){const Q=R.next();this.startWithLF(Q)&&this.fixCRLF(R,Q)}}fixCRLF(R,Q){const ce=[],Re=this._buffers[R.piece.bufferIndex].lineStarts;let Fe;R.piece.end.column===0?Fe={line:R.piece.end.line-1,column:Re[R.piece.end.line]-Re[R.piece.end.line-1]-1}:Fe={line:R.piece.end.line,column:R.piece.end.column-1};const Ze=R.piece.length-1,wt=R.piece.lineFeedCnt-1;R.piece=new Yn(R.piece.bufferIndex,R.piece.start,Fe,wt,Ze),Mi(this,R,-1,-1),R.piece.length===0&&ce.push(R);const Lt={line:Q.piece.start.line+1,column:0},Qt=Q.piece.length-1,Xt=this.getLineFeedCnt(Q.piece.bufferIndex,Lt,Q.piece.end);Q.piece=new Yn(Q.piece.bufferIndex,Lt,Q.piece.end,Xt,Qt),Mi(this,Q,-1,-1),Q.piece.length===0&&ce.push(Q);const $t=this.createNewPieces(`\r
`);this.rbInsertRight(R,$t[0]);for(let on=0;on<ce.length;on++)ri(this,ce[on])}adjustCarriageReturnFromNext(R,Q){if(this.shouldCheckCRLF()&&this.endWithCR(R)){const ce=Q.next();if(this.startWithLF(ce)){if(R+=`
`,ce.piece.length===1)ri(this,ce);else{const Re=ce.piece,Fe={line:Re.start.line+1,column:0},Ze=Re.length-1,wt=this.getLineFeedCnt(Re.bufferIndex,Fe,Re.end);ce.piece=new Yn(Re.bufferIndex,Fe,Re.end,wt,Ze),Mi(this,ce,-1,-1)}return!0}}return!1}iterate(R,Q){if(R===Gt)return Q(Gt);const ce=this.iterate(R.left,Q);return ce&&Q(R)&&this.iterate(R.right,Q)}getNodeContent(R){if(R===Gt)return"";const Q=this._buffers[R.piece.bufferIndex],ce=R.piece,Re=this.offsetInBuffer(ce.bufferIndex,ce.start),Fe=this.offsetInBuffer(ce.bufferIndex,ce.end);return Q.buffer.substring(Re,Fe)}getPieceContent(R){const Q=this._buffers[R.bufferIndex],ce=this.offsetInBuffer(R.bufferIndex,R.start),Re=this.offsetInBuffer(R.bufferIndex,R.end);return Q.buffer.substring(ce,Re)}rbInsertRight(R,Q){const ce=new vt(Q,1);if(ce.left=Gt,ce.right=Gt,ce.parent=Gt,ce.size_left=0,ce.lf_left=0,this.root===Gt)this.root=ce,ce.color=0;else if(R.right===Gt)R.right=ce,ce.parent=R;else{const Fe=_n(R.right);Fe.left=ce,ce.parent=Fe}return fi(this,ce),ce}rbInsertLeft(R,Q){const ce=new vt(Q,1);if(ce.left=Gt,ce.right=Gt,ce.parent=Gt,ce.size_left=0,ce.lf_left=0,this.root===Gt)this.root=ce,ce.color=0;else if(R.left===Gt)R.left=ce,ce.parent=R;else{const Re=Fn(R.left);Re.right=ce,ce.parent=Re}return fi(this,ce),ce}}var mt=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textChange.js");class ze extends L.jG{constructor(R,Q,ce,Re,Fe,Ze,wt){super(),this._onDidChangeContent=this._register(new M.vl),this._BOM=Q,this._mightContainNonBasicASCII=!Ze,this._mightContainRTL=Re,this._mightContainUnusualLineTerminators=Fe,this._pieceTree=new Ye(R,ce,wt)}mightContainRTL(){return this._mightContainRTL}mightContainUnusualLineTerminators(){return this._mightContainUnusualLineTerminators}resetMightContainUnusualLineTerminators(){this._mightContainUnusualLineTerminators=!1}mightContainNonBasicASCII(){return this._mightContainNonBasicASCII}getBOM(){return this._BOM}getEOL(){return this._pieceTree.getEOL()}createSnapshot(R){return this._pieceTree.createSnapshot(R?this._BOM:"")}getOffsetAt(R,Q){return this._pieceTree.getOffsetAt(R,Q)}getPositionAt(R){return this._pieceTree.getPositionAt(R)}getRangeAt(R,Q){const ce=R+Q,Re=this.getPositionAt(R),Fe=this.getPositionAt(ce);return new a.Q(Re.lineNumber,Re.column,Fe.lineNumber,Fe.column)}getValueInRange(R,Q=0){if(R.isEmpty())return"";const ce=this._getEndOfLine(Q);return this._pieceTree.getValueInRange(R,ce)}getValueLengthInRange(R,Q=0){if(R.isEmpty())return 0;if(R.startLineNumber===R.endLineNumber)return R.endColumn-R.startColumn;const ce=this.getOffsetAt(R.startLineNumber,R.startColumn),Re=this.getOffsetAt(R.endLineNumber,R.endColumn);let Fe=0;const Ze=this._getEndOfLine(Q),wt=this.getEOL();if(Ze.length!==wt.length){const Lt=Ze.length-wt.length,Qt=R.endLineNumber-R.startLineNumber;Fe=Lt*Qt}return Re-ce+Fe}getCharacterCountInRange(R,Q=0){if(this._mightContainNonBasicASCII){let ce=0;const Re=R.startLineNumber,Fe=R.endLineNumber;for(let Ze=Re;Ze<=Fe;Ze++){const wt=this.getLineContent(Ze),Lt=Ze===Re?R.startColumn-1:0,Qt=Ze===Fe?R.endColumn-1:wt.length;for(let Xt=Lt;Xt<Qt;Xt++)g.pc(wt.charCodeAt(Xt))?(ce=ce+1,Xt=Xt+1):ce=ce+1}return ce+=this._getEndOfLine(Q).length*(Fe-Re),ce}return this.getValueLengthInRange(R,Q)}getLength(){return this._pieceTree.getLength()}getLineCount(){return this._pieceTree.getLineCount()}getLinesContent(){return this._pieceTree.getLinesContent()}getLineContent(R){return this._pieceTree.getLineContent(R)}getLineCharCode(R,Q){return this._pieceTree.getLineCharCode(R,Q)}getLineLength(R){return this._pieceTree.getLineLength(R)}getLineFirstNonWhitespaceColumn(R){const Q=g.HG(this.getLineContent(R));return Q===-1?0:Q+1}getLineLastNonWhitespaceColumn(R){const Q=g.lT(this.getLineContent(R));return Q===-1?0:Q+2}_getEndOfLine(R){switch(R){case 1:return`
`;case 2:return`\r
`;case 0:return this.getEOL();default:throw new Error("Unknown EOL preference")}}setEOL(R){this._pieceTree.setEOL(R)}applyEdits(R,Q,ce){let Re=this._mightContainRTL,Fe=this._mightContainUnusualLineTerminators,Ze=this._mightContainNonBasicASCII,wt=!0,Lt=[];for(let kn=0;kn<R.length;kn++){const Pn=R[kn];wt&&Pn._isTracked&&(wt=!1);const zn=Pn.range;if(Pn.text){let Ei=!0;Ze||(Ei=!g.aC(Pn.text),Ze=Ei),!Re&&Ei&&(Re=g.E_(Pn.text)),!Fe&&Ei&&(Fe=g.$X(Pn.text))}let ni="",hi=0,ji=0,Yi=0;if(Pn.text){let Ei;[hi,ji,Yi,Ei]=(0,I.W)(Pn.text);const Ri=this.getEOL();Ei===0||Ei===(Ri===`\r
`?2:1)?ni=Pn.text:ni=Pn.text.replace(/\r\n|\r|\n/g,Ri)}Lt[kn]={sortIndex:kn,identifier:Pn.identifier||null,range:zn,rangeOffset:this.getOffsetAt(zn.startLineNumber,zn.startColumn),rangeLength:this.getValueLengthInRange(zn),text:ni,eolCount:hi,firstLineLength:ji,lastLineLength:Yi,forceMoveMarkers:!!Pn.forceMoveMarkers,isAutoWhitespaceEdit:Pn.isAutoWhitespaceEdit||!1}}Lt.sort(ze._sortOpsAscending);let Qt=!1;for(let kn=0,Pn=Lt.length-1;kn<Pn;kn++){const zn=Lt[kn].range.getEndPosition(),ni=Lt[kn+1].range.getStartPosition();if(ni.isBeforeOrEqual(zn)){if(ni.isBefore(zn))throw new Error("Overlapping ranges are not allowed!");Qt=!0}}wt&&(Lt=this._reduceOperations(Lt));const Xt=ce||Q?ze._getInverseEditRanges(Lt):[],$t=[];if(Q)for(let kn=0;kn<Lt.length;kn++){const Pn=Lt[kn],zn=Xt[kn];if(Pn.isAutoWhitespaceEdit&&Pn.range.isEmpty())for(let ni=zn.startLineNumber;ni<=zn.endLineNumber;ni++){let hi="";ni===zn.startLineNumber&&(hi=this.getLineContent(Pn.range.startLineNumber),g.HG(hi)!==-1)||$t.push({lineNumber:ni,oldContent:hi})}}let on=null;if(ce){let kn=0;on=[];for(let Pn=0;Pn<Lt.length;Pn++){const zn=Lt[Pn],ni=Xt[Pn],hi=this.getValueInRange(zn.range),ji=zn.rangeOffset+kn;kn+=zn.text.length-hi.length,on[Pn]={sortIndex:zn.sortIndex,identifier:zn.identifier,range:ni,text:hi,textChange:new mt.k(zn.rangeOffset,hi,ji,zn.text)}}Qt||on.sort((Pn,zn)=>Pn.sortIndex-zn.sortIndex)}this._mightContainRTL=Re,this._mightContainUnusualLineTerminators=Fe,this._mightContainNonBasicASCII=Ze;const un=this._doApplyEdits(Lt);let Cn=null;if(Q&&$t.length>0){$t.sort((kn,Pn)=>Pn.lineNumber-kn.lineNumber),Cn=[];for(let kn=0,Pn=$t.length;kn<Pn;kn++){const zn=$t[kn].lineNumber;if(kn>0&&$t[kn-1].lineNumber===zn)continue;const ni=$t[kn].oldContent,hi=this.getLineContent(zn);hi.length===0||hi===ni||g.HG(hi)!==-1||Cn.push(zn)}}return this._onDidChangeContent.fire(),new m.F4(on,un,Cn)}_reduceOperations(R){return R.length<1e3?R:[this._toSingleEditOperation(R)]}_toSingleEditOperation(R){let Q=!1;const ce=R[0].range,Re=R[R.length-1].range,Fe=new a.Q(ce.startLineNumber,ce.startColumn,Re.endLineNumber,Re.endColumn);let Ze=ce.startLineNumber,wt=ce.startColumn;const Lt=[];for(let un=0,Cn=R.length;un<Cn;un++){const kn=R[un],Pn=kn.range;Q=Q||kn.forceMoveMarkers,Lt.push(this.getValueInRange(new a.Q(Ze,wt,Pn.startLineNumber,Pn.startColumn))),kn.text.length>0&&Lt.push(kn.text),Ze=Pn.endLineNumber,wt=Pn.endColumn}const Qt=Lt.join(""),[Xt,$t,on]=(0,I.W)(Qt);return{sortIndex:0,identifier:R[0].identifier,range:Fe,rangeOffset:this.getOffsetAt(Fe.startLineNumber,Fe.startColumn),rangeLength:this.getValueLengthInRange(Fe,0),text:Qt,eolCount:Xt,firstLineLength:$t,lastLineLength:on,forceMoveMarkers:Q,isAutoWhitespaceEdit:!1}}_doApplyEdits(R){R.sort(ze._sortOpsDescending);const Q=[];for(let ce=0;ce<R.length;ce++){const Re=R[ce],Fe=Re.range.startLineNumber,Ze=Re.range.startColumn,wt=Re.range.endLineNumber,Lt=Re.range.endColumn;if(Fe===wt&&Ze===Lt&&Re.text.length===0)continue;Re.text?(this._pieceTree.delete(Re.rangeOffset,Re.rangeLength),this._pieceTree.insert(Re.rangeOffset,Re.text,!0)):this._pieceTree.delete(Re.rangeOffset,Re.rangeLength);const Qt=new a.Q(Fe,Ze,wt,Lt);Q.push({range:Qt,rangeLength:Re.rangeLength,text:Re.text,rangeOffset:Re.rangeOffset,forceMoveMarkers:Re.forceMoveMarkers})}return Q}findMatchesLineByLine(R,Q,ce,Re){return this._pieceTree.findMatchesLineByLine(R,Q,ce,Re)}static _getInverseEditRanges(R){const Q=[];let ce=0,Re=0,Fe=null;for(let Ze=0,wt=R.length;Ze<wt;Ze++){const Lt=R[Ze];let Qt,Xt;Fe?Fe.range.endLineNumber===Lt.range.startLineNumber?(Qt=ce,Xt=Re+(Lt.range.startColumn-Fe.range.endColumn)):(Qt=ce+(Lt.range.startLineNumber-Fe.range.endLineNumber),Xt=Lt.range.startColumn):(Qt=Lt.range.startLineNumber,Xt=Lt.range.startColumn);let $t;if(Lt.text.length>0){const on=Lt.eolCount+1;on===1?$t=new a.Q(Qt,Xt,Qt,Xt+Lt.firstLineLength):$t=new a.Q(Qt,Xt,Qt+on-1,Lt.lastLineLength+1)}else $t=new a.Q(Qt,Xt,Qt,Xt);ce=$t.endLineNumber,Re=$t.endColumn,Q.push($t),Fe=Lt}return Q}static _sortOpsAscending(R,Q){const ce=a.Q.compareRangesUsingEnds(R.range,Q.range);return ce===0?R.sortIndex-
`:`\r
`:ce>Q/2?`\r
`:`
`}create(R){const Q=this._getEOL(R),ce=this._chunks;if(this._normalizeEOL&&(Q===`\r
`&&(this._cr>0||this._lf>0)||Q===`
`&&(this._cr>0||this._crlf>0)))for(let Fe=0,Ze=ce.length;Fe<Ze;Fe++){const wt=ce[Fe].buffer.replace(/\r\n|\r|\n/g,Q),Lt=Nn(wt);ce[Fe]=new Di(wt,Lt)}const Re=new ze(ce,this._bom,Q,this._containsRTL,this._containsUnusualLineTerminators,this._isBasicASCII,this._normalizeEOL);return{textBuffer:Re,disposable:Re}}}class Je{constructor(){this.chunks=[],this.BOM="",this._hasPreviousChar=!1,this._previousChar=0,this._tmpLineStarts=[],this.cr=0,this.lf=0,this.crlf=0,this.containsRTL=!1,this.containsUnusualLineTerminators=!1,this.isBasicASCII=!0}acceptChunk(R){if(R.length===0)return;this.chunks.length===0&&g.LU(R)&&(this.BOM=g.r_,R=R.substr(1));const Q=R.charCodeAt(R.length-1);Q===13||Q>=55296&&Q<=56319?(this._acceptChunk1(R.substr(0,R.length-1),!1),this._hasPreviousChar=!0,this._previousChar=Q):(this._acceptChunk1(R,!1),this._hasPreviousChar=!1,this._previousChar=Q)}_acceptChunk1(R,Q){!Q&&R.length===0||(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+R):this._acceptChunk2(R))}_acceptChunk2(R){const Q=Vn(this._tmpLineStarts,R);this.chunks.push(new Di(R,Q.lineStarts)),this.cr+=Q.cr,this.lf+=Q.lf,this.crlf+=Q.crlf,Q.isBasicASCII||(this.isBasicASCII=!1,this.containsRTL||(this.containsRTL=g.E_(R)),this.containsUnusualLineTerminators||(this.containsUnusualLineTerminators=g.$X(R)))}finish(R=!0){return this._finish(),new Ke(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.containsUnusualLineTerminators,this.isBasicASCII,R)}_finish(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;const R=this.chunks[this.chunks.length-1];R.buffer+=String.fromCharCode(this._previousChar);const Q=Nn(R.buffer);R.lineStarts=Q,this._previousChar===13&&this.cr++}}}var Ne=e("./node_modules/monaco-editor/esm/vs/base/common/async.js"),ft=e("./node_modules/monaco-editor/esm/vs/editor/common/core/wordHelper.js"),St=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),rt=e("./node_modules/monaco-editor/esm/vs/editor/common/model/textModelPart.js"),Ge=e("./node_modules/monaco-editor/esm/vs/base/common/platform.js"),nt=e("./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js"),it=e("./node_modules/monaco-editor/esm/vs/editor/common/core/offsetRange.js"),bt=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/nullTokenize.js");class Dt{constructor(R){this._default=R,this._store=[]}get(R){return R<this._store.length?this._store[R]:this._default}set(R,Q){for(;R>=this._store.length;)this._store[this._store.length]=this._default;this._store[R]=Q}replace(R,Q,ce){if(R>=this._store.length)return;if(Q===0){this.insert(R,ce);return}else if(ce===0){this.delete(R,Q);return}const Re=this._store.slice(0,R),Fe=this._store.slice(R+Q),Ze=At(ce,this._default);this._store=Re.concat(Ze,Fe)}delete(R,Q){Q===0||R>=this._store.length||this._store.splice(R,Q)}insert(R,Q){if(Q===0||R>=this._store.length)return;const ce=[];for(let Re=0;Re<Q;Re++)ce[Re]=this._default;this._store=(0,r.nK)(this._store,R,ce)}}function At(ht,R){const Q=[];for(let ce=0;ce<ht;ce++)Q[ce]=R;return Q}class et{get startLineNumber(){return this._startLineNumber}get endLineNumber(){return this._startLineNumber+this._tokens.length-1}constructor(R,Q){this._startLineNumber=R,this._tokens=Q}getLineTokens(R){return this._tokens[R-this._startLineNumber]}appendLineTokens(R){this._tokens.push(R)}}class at{constructor(){this._tokens=[]}add(R,Q){if(this._tokens.length>0){const ce=this._tokens[this._tokens.length-1];if(ce.endLineNumber+1===R){ce.appendLineTokens(Q);return}}this._tokens.push(new et(R,[Q]))}finalize(){return this._tokens}}var Tt=e("./node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.js");class dt{constructor(R,Q){this.tokenizationSupport=Q,this.initialState=this.tokenizationSupport.getInitialState(),this.store=new ct(R)}getStartState(R){return this.store.getStartState(R,this.initialState)}getFirstInvalidLine(){return this.store.getFirstInvalidLine(this.initialState)}}class Ae extends dt{constructor(R,Q,ce,Re){super(R,Q),this._textModel=ce,this._languageIdCodec=Re}updat
`,!1,!1,!0,!0);R.dispose(),this._buffer=R,this._bufferDisposable=L.jG.None}_assertNotDisposed(){if(this._isDisposed)throw new Error("Model is disposed!")}_emitContentChangedEvent(R,Q){this.__isDisposing||(this._tokenizationTextModelPart.handleDidChangeContent(Q),this._bracketPairs.handleDidChangeContent(Q),this._eventEmitter.fire(new rn.Ic(R,Q)))}setValue(R){if(this._assertNotDisposed(),R==null)throw(0,k.Qg)();const{textBuffer:Q,disposable:ce}=ti(R,this._options.defaultEOL);this._setValueFromTextBuffer(Q,ce)}_createContentChanged2(R,Q,ce,Re,Fe,Ze,wt,Lt){return{changes:[{range:R,rangeOffset:Q,rangeLength:ce,text:Re}],eol:this._buffer.getEOL(),isEolChange:Lt,versionId:this.getVersionId(),isUndoing:Fe,isRedoing:Ze,isFlush:wt}}_setValueFromTextBuffer(R,Q){this._assertNotDisposed();const ce=this.getFullModelRange(),Re=this.getValueLengthInRange(ce),Fe=this.getLineCount(),Ze=this.getLineMaxColumn(Fe);this._buffer=R,this._bufferDisposable.dispose(),this._bufferDisposable=Q,this._increaseVersionId(),this._decorations=Object.create(null),this._decorationsTree=new zt,this._commandManager.clear(),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new rn.HP([new rn.Wn],this._versionId,!1,!1),this._createContentChanged2(new a.Q(1,1,Fe,Ze),0,Re,this.getValue(),!1,!1,!0,!1))}setEOL(R){this._assertNotDisposed();const Q=R===1?`\r
`:`
`;if(this._buffer.getEOL()===Q)return;const ce=this.getFullModelRange(),Re=this.getValueLengthInRange(ce),Fe=this.getLineCount(),Ze=this.getLineMaxColumn(Fe);this._onBeforeEOLChange(),this._buffer.setEOL(Q),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new rn.HP([new rn.mS],this._versionId,!1,!1),this._createContentChanged2(new a.Q(1,1,Fe,Ze),0,Re,this.getValue(),!1,!1,!1,!0))}_onBeforeEOLChange(){this._decorationsTree.ensureAllNodesHaveRanges(this)}_onAfterEOLChange(){const R=this.getVersionId(),Q=this._decorationsTree.collectNodesPostOrder();for(let ce=0,Re=Q.length;ce<Re;ce++){const Fe=Q[ce],Ze=Fe.range,wt=Fe.cachedAbsoluteStart-Fe.start,Lt=this._buffer.getOffsetAt(Ze.startLineNumber,Ze.startColumn),Qt=this._buffer.getOffsetAt(Ze.endLineNumber,Ze.endColumn);Fe.cachedAbsoluteStart=Lt,Fe.cachedAbsoluteEnd=Qt,Fe.cachedVersionId=R,Fe.start=Lt-wt,Fe.end=Qt-wt,Jt(Fe)}}onBeforeAttached(){return this._attachedEditorCount++,this._attachedEditorCount===1&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.attachView()}onBeforeDetached(R){this._attachedEditorCount--,this._attachedEditorCount===0&&(this._tokenizationTextModelPart.handleDidChangeAttached(),this._onDidChangeAttached.fire(void 0)),this._attachedViews.detachView(R)}isAttachedToEditor(){return this._attachedEditorCount>0}getAttachedEditorCount(){return this._attachedEditorCount}isTooLargeForSyncing(){return this._isTooLargeForSyncing}isTooLargeForTokenization(){return this._isTooLargeForTokenization}isTooLargeForHeapOperation(){return this._isTooLargeForHeapOperation}isDisposed(){return this._isDisposed}isDominatedByLongLines(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;let R=0,Q=0;const ce=this._buffer.getLineCount();for(let Re=1;Re<=ce;Re++){const Fe=this._buffer.getLineLength(Re);Fe>=Rn?Q+=Fe:R+=Fe}return Q>R}get uri(){return this._associatedResource}getOptions(){return this._assertNotDisposed(),this._options}getFormattingOptions(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}}updateOptions(R){this._assertNotDisposed();const Q=typeof R.tabSize<"u"?R.tabSize:this._options.tabSize,ce=typeof R.indentSize<"u"?R.indentSize:this._options.originalIndentSize,Re=typeof R.insertSpaces<"u"?R.insertSpaces:this._options.insertSpaces,Fe=typeof R.trimAutoWhitespace<"u"?R.trimAutoWhitespace:this._options.trimAutoWhitespace,Ze=typeof R.bracketColorizationOptions<"u"?R.bracketColorizationOptions:this._options.bracketPairColorizationOptions,wt=new m.X2({tabSize:Q,indentSize:ce,insertSpaces:Re,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:Fe,bracketPairColorizationOptions:Ze});if(this._options.equals(wt))return;const Lt=this._options.createChangeEvent(wt);this._options=wt,this._bracketPairs.handleDidChangeOptions(Lt),this._decorationProvider.handleDidChangeOptions(Lt),this._onDidChangeOptions.fire(Lt)}detectIndentation(R,Q){this._assertNotDisposed();const ce=Pe(this._buffer,Q,R);this.updateOptions({insertSpaces:ce.insertSpaces,tabSize:ce.tabSize,indentSize:ce.tabSize})}normalizeIndentation(R){return this._assertNotDisposed(),(0,S.P)(R,this._options.indentSize,this._options.insertSpaces)}getVersionId(){return this._assertNotDisposed(),this._versionId}mightContainRTL(){return this._buffer.mightContainRTL()}mightContainUnusualLineTerminators(){return this._buffer.mightContainUnusualLineTerminators()}removeUnusualLineTerminators(R=null){const Q=this.findMatches(g._J.source,!1,!0,!1,null,!1,1073741824);this._buffer.resetMightContainUnusualLineTerminators(),this.pushEditOperations(R,Q.map(ce=>({range:ce.range,text:null})),()=>null)}mightContainNonBasicASCII(){return this._buffer.mightContainNonBasicASCII()}getAlternativeVersionId(){return this._assertNotDisposed(),this._alternativeVersionId}getInitialUndoRedoSnapshot(){return this._assertNotDisposed(),this._initialUndoRedoSnapshot}getOffsetAt(R){this._assertNotDisposed();const Q=this._validatePosition(R.lineNumber,R.column,0);return this._buffer.getOffsetAt(Q.lineNumb
`?0:1}getLineMinColumn(R){return this._assertNotDisposed(),1}getLineMaxColumn(R){if(this._assertNotDisposed(),R<1||R>this.getLineCount())throw new k.D7("Illegal value for lineNumber");return this._buffer.getLineLength(R)+1}getLineFirstNonWhitespaceColumn(R){if(this._assertNotDisposed(),R<1||R>this.getLineCount())throw new k.D7("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(R)}getLineLastNonWhitespaceColumn(R){if(this._assertNotDisposed(),R<1||R>this.getLineCount())throw new k.D7("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(R)}_validateRangeRelaxedNoAllocations(R){const Q=this._buffer.getLineCount(),ce=R.startLineNumber,Re=R.startColumn;let Fe=Math.floor(typeof ce=="number"&&!isNaN(ce)?ce:1),Ze=Math.floor(typeof Re=="number"&&!isNaN(Re)?Re:1);if(Fe<1)Fe=1,Ze=1;else if(Fe>Q)Fe=Q,Ze=this.getLineMaxColumn(Fe);else if(Ze<=1)Ze=1;else{const $t=this.getLineMaxColumn(Fe);Ze>=$t&&(Ze=$t)}const wt=R.endLineNumber,Lt=R.endColumn;let Qt=Math.floor(typeof wt=="number"&&!isNaN(wt)?wt:1),Xt=Math.floor(typeof Lt=="number"&&!isNaN(Lt)?Lt:1);if(Qt<1)Qt=1,Xt=1;else if(Qt>Q)Qt=Q,Xt=this.getLineMaxColumn(Qt);else if(Xt<=1)Xt=1;else{const $t=this.getLineMaxColumn(Qt);Xt>=$t&&(Xt=$t)}return ce===Fe&&Re===Ze&&wt===Qt&&Lt===Xt&&R instanceof a.Q&&!(R instanceof s.L)?R:new a.Q(Fe,Ze,Qt,Xt)}_isValidPosition(R,Q,ce){if(typeof R!="number"||typeof Q!="number"||isNaN(R)||isNaN(Q)||R<1||Q<1||(R|0)!==R||(Q|0)!==Q)return!1;const Re=this._buffer.getLineCount();if(R>Re)return!1;if(Q===1)return!0;const Fe=this.getLineMaxColumn(R);if(Q>Fe)return!1;if(ce===1){const Ze=this._buffer.getLineCharCode(R,Q-2);if(g.pc(Ze))return!1}return!0}_validatePosition(R,Q,ce){const Re=Math.floor(typeof R=="number"&&!isNaN(R)?R:1),Fe=Math.floor(typeof Q=="number"&&!isNaN(Q)?Q:1),Ze=this._buffer.getLineCount();if(Re<1)return new d.y(1,1);if(Re>Ze)return new d.y(Ze,this.getLineMaxColumn(Ze));if(Fe<=1)return new d.y(Re,1);const wt=this.getLineMaxColumn(Re);if(Fe>=wt)return new d.y(Re,wt);if(ce===1){const Lt=this._buffer.getLineCharCode(Re,Fe-2);if(g.pc(Lt))return new d.y(Re,Fe-1)}return new d.y(Re,Fe)}validatePosition(R){return this._assertNotDisposed(),R instanceof d.y&&this._isValidPosition(R.lineNumber,R.column,1)?R:this._validatePosition(R.lineNumber,R.column,1)}_isValidRange(R,Q){const ce=R.startLineNumber,Re=R.startColumn,Fe=R.endLineNumber,Ze=R.endColumn;if(!this._isValidPosition(ce,Re,0)||!this._isValidPosition(Fe,Ze,0))return!1;if(Q===1){const wt=Re>1?this._buffer.getLineCharCode(ce,Re-2):0,Lt=Ze>1&&Ze<=this._buffer.getLineLength(Fe)?this._buffer.getLineCharCode(Fe,Ze-2):0,Qt=g.pc(wt),Xt=g.pc(Lt);return!Qt&&!Xt}return!0}validateRange(R){if(this._assertNotDisposed(),R instanceof a.Q&&!(R instanceof s.L)&&this._isValidRange(R,1))return R;const ce=this._validatePosition(R.startLineNumber,R.startColumn,0),Re=this._validatePosition(R.endLineNumber,R.endColumn,0),Fe=ce.lineNumber,Ze=ce.column,wt=Re.lineNumber,Lt=Re.column;{const Qt=Ze>1?this._buffer.getLineCharCode(Fe,Ze-2):0,Xt=Lt>1&&Lt<=this._buffer.getLineLength(wt)?this._buffer.getLineCharCode(wt,Lt-2):0,$t=g.pc(Qt),on=g.pc(Xt);return!$t&&!on?new a.Q(Fe,Ze,wt,Lt):Fe===wt&&Ze===Lt?new a.Q(Fe,Ze-1,wt,Lt-1):$t&&on?new a.Q(Fe,Ze-1,wt,Lt+1):$t?new a.Q(Fe,Ze-1,wt,Lt):new a.Q(Fe,Ze,wt,Lt+1)}return new a.Q(Fe,Ze,wt,Lt)}modifyPosition(R,Q){this._assertNotDisposed();const ce=this.getOffsetAt(R)+Q;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,ce)))}getFullModelRange(){this._assertNotDisposed();const R=this.getLineCount();return new a.Q(1,1,R,this.getLineMaxColumn(R))}findMatchesLineByLine(R,Q,ce,Re){return this._buffer.findMatchesLineByLine(R,Q,ce,Re)}findMatches(R,Q,ce,Re,Fe,Ze,wt=Un){this._assertNotDisposed();let Lt=null;Q!==null&&(Array.isArray(Q)||(Q=[Q]),Q.every($t=>a.Q.isIRange($t))&&(Lt=Q.map($t=>this.validateRange($t)))),Lt===null&&(Lt=[this.getFullModelRange()]),Lt=Lt.sort(($t,on)=>$t.startLineNumber-on.startLineNumber||$t.startColumn-on.startColumn);const Qt=[];Qt.push(Lt.reduce(($t,on)=>a.Q.areIntersecting($t,on)?$t.plusRange
`)<0){const on=new ci.lt(R,ce,Re,Fe).parseSearchRequest();if(!on)return[];Xt=un=>this.findMatchesLineByLine(un,on,Ze,wt)}else Xt=$t=>ci.hB.findMatches(this,new ci.lt(R,ce,Re,Fe),$t,Ze,wt);return Qt.map(Xt).reduce(($t,on)=>$t.concat(on),[])}findNextMatch(R,Q,ce,Re,Fe,Ze){this._assertNotDisposed();const wt=this.validatePosition(Q);if(!ce&&R.indexOf(`
`)<0){const Qt=new ci.lt(R,ce,Re,Fe).parseSearchRequest();if(!Qt)return null;const Xt=this.getLineCount();let $t=new a.Q(wt.lineNumber,wt.column,Xt,this.getLineMaxColumn(Xt)),on=this.findMatchesLineByLine($t,Qt,Ze,1);return ci.hB.findNextMatch(this,new ci.lt(R,ce,Re,Fe),wt,Ze),on.length>0||($t=new a.Q(1,1,wt.lineNumber,this.getLineMaxColumn(wt.lineNumber)),on=this.findMatchesLineByLine($t,Qt,Ze,1),on.length>0)?on[0]:null}return ci.hB.findNextMatch(this,new ci.lt(R,ce,Re,Fe),wt,Ze)}findPreviousMatch(R,Q,ce,Re,Fe,Ze){this._assertNotDisposed();const wt=this.validatePosition(Q);return ci.hB.findPreviousMatch(this,new ci.lt(R,ce,Re,Fe),wt,Ze)}pushStackElement(){this._commandManager.pushStackElement()}popStackElement(){this._commandManager.popStackElement()}pushEOL(R){if((this.getEOL()===`
`?0:1)!==R)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEOL(R)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_validateEditOperation(R){return R instanceof m.Wo?R:new m.Wo(R.identifier||null,this.validateRange(R.range),R.text,R.forceMoveMarkers||!1,R.isAutoWhitespaceEdit||!1,R._isTracked||!1)}_validateEditOperations(R){const Q=[];for(let ce=0,Re=R.length;ce<Re;ce++)Q[ce]=this._validateEditOperation(R[ce]);return Q}pushEditOperations(R,Q,ce,Re){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(R,this._validateEditOperations(Q),ce,Re)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_pushEditOperations(R,Q,ce,Re){if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){const Fe=Q.map(wt=>({range:this.validateRange(wt.range),text:wt.text}));let Ze=!0;if(R)for(let wt=0,Lt=R.length;wt<Lt;wt++){const Qt=R[wt];let Xt=!1;for(let $t=0,on=Fe.length;$t<on;$t++){const un=Fe[$t].range,Cn=un.startLineNumber>Qt.endLineNumber,kn=Qt.startLineNumber>un.endLineNumber;if(!Cn&&!kn){Xt=!0;break}}if(!Xt){Ze=!1;break}}if(Ze)for(let wt=0,Lt=this._trimAutoWhitespaceLines.length;wt<Lt;wt++){const Qt=this._trimAutoWhitespaceLines[wt],Xt=this.getLineMaxColumn(Qt);let $t=!0;for(let on=0,un=Fe.length;on<un;on++){const Cn=Fe[on].range,kn=Fe[on].text;if(!(Qt<Cn.startLineNumber||Qt>Cn.endLineNumber)&&!(Qt===Cn.startLineNumber&&Cn.startColumn===Xt&&Cn.isEmpty()&&kn&&kn.length>0&&kn.charAt(0)===`
`)&&!(Qt===Cn.startLineNumber&&Cn.startColumn===1&&Cn.isEmpty()&&kn&&kn.length>0&&kn.charAt(kn.length-1)===`
`)){$t=!1;break}}if($t){const on=new a.Q(Qt,1,Qt,Xt);Q.push(new m.Wo(null,on,null,!1,!1,!1))}}this._trimAutoWhitespaceLines=null}return this._initialUndoRedoSnapshot===null&&(this._initialUndoRedoSnapshot=this._undoRedoService.createSnapshot(this.uri)),this._commandManager.pushEditOperation(R,Q,ce,Re)}_applyUndo(R,Q,ce,Re){const Fe=R.map(Ze=>{const wt=this.getPositionAt(Ze.newPosition),Lt=this.getPositionAt(Ze.newEnd);return{range:new a.Q(wt.lineNumber,wt.column,Lt.lineNumber,Lt.column),text:Ze.oldText}});this._applyUndoRedoEdits(Fe,Q,!0,!1,ce,Re)}_applyRedo(R,Q,ce,Re){const Fe=R.map(Ze=>{const wt=this.getPositionAt(Ze.oldPosition),Lt=this.getPositionAt(Ze.oldEnd);return{range:new a.Q(wt.lineNumber,wt.column,Lt.lineNumber,Lt.column),text:Ze.newText}});this._applyUndoRedoEdits(Fe,Q,!1,!0,ce,Re)}_applyUndoRedoEdits(R,Q,ce,Re,Fe,Ze){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._isUndoing=ce,this._isRedoing=Re,this.applyEdits(R,!1),this.setEOL(Q),this._overwriteAlternativeVersionId(Fe)}finally{this._isUndoing=!1,this._isRedoing=!1,this._eventEmitter.endDeferredEmit(Ze),this._onDidChangeDecorations.endDeferredEmit()}}applyEdits(R,Q=!1){try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit();const ce=this._validateEditOperations(R);return this._doApplyEdits(ce,Q)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}}_doApplyEdits(R,Q){const ce=this._buffer.getLineCount(),Re=this._buffer.applyEdits(R,this._options.trimAutoWhitespace,Q),Fe=this._buffer.getLineCount(),Ze=Re.changes;if(this._trimAutoWhitespaceLines=Re.trimAutoWhitespaceLineNumbers,Ze.length!==0){for(let Qt=0,Xt=Ze.length;Qt<Xt;Qt++){const $t=Ze[Qt];this._decorationsTree.acceptReplace($t.rangeOffset,$t.rangeLength,$t.text.length,$t.forceMoveMarkers)}const wt=[];this._increaseVersionId();let Lt=ce;for(let Qt=0,Xt=Ze.length;Qt<Xt;Qt++){const $t=Ze[Qt],[on]=(0,I.W)($t.text);this._onDidChangeDecorations.fire();const un=$t.range.startLineNumber,Cn=$t.range.endLineNumber,kn=Cn-un,Pn=on,zn=Math.min(kn,Pn),ni=Pn-kn,hi=Fe-Lt-ni+un,ji=hi,Yi=hi+Pn,Ei=this._decorationsTree.getInjectedTextInInterval(this,this.getOffsetAt(new d.y(ji,1)),this.getOffsetAt(new d.y(Yi,this.getLineMaxColumn(Yi))),0),Ri=rn.uK.fromDecorations(Ei),ao=new r.j3(Ri);for(let no=zn;no>=0;no--){const Lo=un+no,Xi=hi+no;ao.takeFromEndWhile(co=>co.lineNumber>Xi);const To=ao.takeFromEndWhile(co=>co.lineNumber===Xi);wt.push(new rn.U0(Lo,this.getLineContent(Xi),To))}if(zn<kn){const no=un+zn;wt.push(new rn.E$(no+1,Cn))}if(zn<Pn){const no=new r.j3(Ri),Lo=un+zn,Xi=Pn-zn,To=Fe-Lt-Xi+Lo+1,co=[],yo=[];for(let Vi=0;Vi<Xi;Vi++){const uo=To+Vi;yo[Vi]=this.getLineContent(uo),no.takeWhile(So=>So.lineNumber<uo),co[Vi]=no.takeWhile(So=>So.lineNumber===uo)}wt.push(new rn.bg(Lo+1,un+Pn,yo,co))}Lt+=ni}this._emitContentChangedEvent(new rn.HP(wt,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:Ze,eol:this._buffer.getEOL(),isEolChange:!1,versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}return Re.reverseEdits===null?void 0:Re.reverseEdits}undo(){return this._undoRedoService.undo(this.uri)}canUndo(){return this._undoRedoService.canUndo(this.uri)}redo(){return this._undoRedoService.redo(this.uri)}canRedo(){return this._undoRedoService.canRedo(this.uri)}handleBeforeFireDecorationsChangedEvent(R){if(R===null||R.size===0)return;const ce=Array.from(R).map(Re=>new rn.U0(Re,this.getLineContent(Re),this._getInjectedTextInLine(Re)));this._onDidChangeInjectedText.fire(new rn.vn(ce))}changeDecorations(R,Q=0){this._assertNotDisposed();try{return this._onDidChangeDecorations.beginDeferredEmit(),this._changeDecorations(Q,R)}finally{this._onDidChangeDecorations.endDeferredEmit()}}_changeDecorations(R,Q){const ce={addDecoration:(Fe,Ze)=>this._deltaDecorationsImpl(R,[],[{range:Fe,options:Ze}])[0],changeDecoration:(Fe,Ze)=>{this._changeDecorationImpl(Fe,Ze)},changeDecorationOptions:(Fe,Ze)=>{this._changeDecorationOptionsImpl(Fe,Qn(Ze))},removeDecoration:Fe=>{this._delta
`)>=0;let u=null;try{u=r.OS(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:m,global:!0,unicode:!0})}catch{return null}if(!u)return null;let C=!this.isRegex&&!m;return C&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(C=this.matchCase),new L.L5(u,this.wordSeparators?(0,F.i)(this.wordSeparators,[]):null,C?this.searchString:null)}}function I(c){if(!c||c.length===0)return!1;for(let m=0,u=c.length;m<u;m++){const C=c.charCodeAt(m);if(C===10)return!0;if(C===92){if(m++,m>=u)break;const h=c.charCodeAt(m);if(h===110||h===114||h===87)return!0}}return!1}function S(c,m,u){if(!u)return new L.Dg(c,null);const C=[];for(let h=0,v=m.length;h<v;h++)C[h]=m[h];return new L.Dg(c,C)}class f{constructor(m){const u=[];let C=0;for(let h=0,v=m.length;h<v;h++)m.charCodeAt(h)===10&&(u[C++]=h);this._lineFeedsOffsets=u}findLineFeedCountBeforeOffset(m){const u=this._lineFeedsOffsets;let C=0,h=u.length-1;if(h===-1||m<=u[0])return 0;for(;C<h;){const v=C+((h-C)/2>>0);u[v]>=m?h=v-1:u[v+1]>=m?(C=v,h=v):C=v+1}return C+1}}class d{static findMatches(m,u,C,h,v){const p=u.parseSearchRequest();return p?p.regex.multiline?this._doFindMatchesMultiline(m,C,new i(p.wordSeparators,p.regex),h,v):this._doFindMatchesLineByLine(m,C,p,h,v):[]}static _getMultilineMatchRange(m,u,C,h,v,p){let b,O=0;h?(O=h.findLineFeedCountBeforeOffset(v),b=u+v+O):b=u+v;let w;if(h){const G=h.findLineFeedCountBeforeOffset(v+p.length)-O;w=b+p.length+G}else w=b+p.length;const j=m.getPositionAt(b),U=m.getPositionAt(w);return new M.Q(j.lineNumber,j.column,U.lineNumber,U.column)}static _doFindMatchesMultiline(m,u,C,h,v){const p=m.getOffsetAt(u.getStartPosition()),b=m.getValueInRange(u,1),O=m.getEOL()===`\r
`?new f(b):null,w=[];let j=0,U;for(C.reset(0);U=C.next(b);)if(w[j++]=S(this._getMultilineMatchRange(m,p,b,O,U.index,U[0]),U,h),j>=v)return w;return w}static _doFindMatchesLineByLine(m,u,C,h,v){const p=[];let b=0;if(u.startLineNumber===u.endLineNumber){const w=m.getLineContent(u.startLineNumber).substring(u.startColumn-1,u.endColumn-1);return b=this._findMatchesInLine(C,w,u.startLineNumber,u.startColumn-1,b,p,h,v),p}const O=m.getLineContent(u.startLineNumber).substring(u.startColumn-1);b=this._findMatchesInLine(C,O,u.startLineNumber,u.startColumn-1,b,p,h,v);for(let w=u.startLineNumber+1;w<u.endLineNumber&&b<v;w++)b=this._findMatchesInLine(C,m.getLineContent(w),w,0,b,p,h,v);if(b<v){const w=m.getLineContent(u.endLineNumber).substring(0,u.endColumn-1);b=this._findMatchesInLine(C,w,u.endLineNumber,0,b,p,h,v)}return p}static _findMatchesInLine(m,u,C,h,v,p,b,O){const w=m.wordSeparators;if(!b&&m.simpleSearch){const K=m.simpleSearch,G=K.length,P=u.length;let A=-G;for(;(A=u.indexOf(K,A+G))!==-1;)if((!w||n(w,u,P,A,G))&&(p[v++]=new L.Dg(new M.Q(C,A+1+h,C,A+1+G+h),null),v>=O))return v;return v}const j=new i(m.wordSeparators,m.regex);let U;j.reset(0);do if(U=j.next(u),U&&(p[v++]=S(new M.Q(C,U.index+1+h,C,U.index+1+U[0].length+h),U,b),v>=O))return v;while(U);return v}static findNextMatch(m,u,C,h){const v=u.parseSearchRequest();if(!v)return null;const p=new i(v.wordSeparators,v.regex);return v.regex.multiline?this._doFindNextMatchMultiline(m,C,p,h):this._doFindNextMatchLineByLine(m,C,p,h)}static _doFindNextMatchMultiline(m,u,C,h){const v=new k.y(u.lineNumber,1),p=m.getOffsetAt(v),b=m.getLineCount(),O=m.getValueInRange(new M.Q(v.lineNumber,v.column,b,m.getLineMaxColumn(b)),1),w=m.getEOL()===`\r
`?new f(O):null;C.reset(u.column-1);const j=C.next(O);return j?S(this._getMultilineMatchRange(m,p,O,w,j.index,j[0]),j,h):u.lineNumber!==1||u.column!==1?this._doFindNextMatchMultiline(m,new k.y(1,1),C,h):null}static _doFindNextMatchLineByLine(m,u,C,h){const v=m.getLineCount(),p=u.lineNumber,b=m.getLineContent(p),O=this._findFirstMatchInLine(C,b,p,u.column,h);if(O)return O;for(let w=1;w<=v;w++){const j=(p+w-1)%v,U=m.getLineContent(j+1),K=this._findFirstMatchInLine(C,U,j+1,1,h);if(K)return K}return null}static _findFirstMatchInLine(m,u,C,h,v){m.reset(h-1);const p=m.next(u);return p?S(new M.Q(C,p.index+1,C,p.index+1+p[0].length),p,v):null}static findPreviousMatch(m,u,C,h){const v=u.parseSearchRequest();if(!v)return null;const p=new i(v.wordSeparators,v.regex);return v.regex.multiline?this._doFindPreviousMatchMultiline(m,C,p,h):this._doFindPreviousMatchLineByLine(m,C,p,h)}static _doFindPreviousMatchMultiline(m,u,C,h){const v=this._doFindMatchesMultiline(m,new M.Q(1,1,u.lineNumber,u.column),C,h,10*g);if(v.length>0)return v[v.length-1];const p=m.getLineCount();return u.lineNumber!==p||u.column!==m.getLineMaxColumn(p)?this._doFindPreviousMatchMultiline(m,new k.y(p,m.getLineMaxColumn(p)),C,h):null}static _doFindPreviousMatchLineByLine(m,u,C,h){const v=m.getLineCount(),p=u.lineNumber,b=m.getLineContent(p).substring(0,u.column-1),O=this._findLastMatchInLine(C,b,p,h);if(O)return O;for(let w=1;w<=v;w++){const j=(v+p-w-1)%v,U=m.getLineContent(j+1),K=this._findLastMatchInLine(C,U,j+1,h);if(K)return K}return null}static _findLastMatchInLine(m,u,C,h){let v=null,p;for(m.reset(0);p=m.next(u);)v=S(new M.Q(C,p.index+1,C,p.index+1+p[0].length),p,h);return v}}function a(c,m,u,C,h){if(C===0)return!0;const v=m.charCodeAt(C-1);if(c.get(v)!==0||v===13||v===10)return!0;if(h>0){const p=m.charCodeAt(C);if(c.get(p)!==0)return!0}return!1}function s(c,m,u,C,h){if(C+h===u)return!0;const v=m.charCodeAt(C+h);if(c.get(v)!==0||v===13||v===10)return!0;if(h>0){const p=m.charCodeAt(C+h-1);if(c.get(p)!==0)return!0}return!1}function n(c,m,u,C,h){return a(c,m,u,C,h)&&s(c,m,u,C,h)}class i{constructor(m,u){this._wordSeparators=m,this._searchRegex=u,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(m){this._searchRegex.lastIndex=m,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(m){const u=m.length;let C;do{if(this._prevMatchStartIndex+this._prevMatchLength===u||(C=this._searchRegex.exec(m),!C))return null;const h=C.index,v=C[0].length;if(h===this._prevMatchStartIndex&&v===this._prevMatchLength){if(v===0){r.Z5(m,u,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=h,this._prevMatchLength=v,!this._wordSeparators||n(this._wordSeparators,m,u,h,v))return C}while(C);return null}}},"./node_modules/monaco-editor/esm/vs/editor/common/model/utils.js":function(pt,Me,e){e.d(Me,{G:function(){return r}});function r(F,k){let M=0,L=0;const g=F.length;for(;L<g;){const x=F.charCodeAt(L);if(x===32)M++;else if(x===9)M=M-M%k+k;else break;L++}return L===g?-1:M}},"./node_modules/monaco-editor/esm/vs/editor/common/services/editorBaseApi.js":function(pt,Me,e){e.d(Me,{r:function(){return d}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/cancellation.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/languages.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js");class f{static chord(s,n){return(0,k.m5)(s,n)}}f.CtrlCmd=2048,f.Shift=1024,f.Alt=512,f.WinCtrl=256;function d(){return{editor:void 0,languages:void 0,CancellationTokenSource:r.Q,Emitter:F.vl,KeyCode:S.DD,KeyMod:f,Position:L.y,Range:g.Q,Selection:x.L,Selectio
`||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.colorDe
`),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.e
`,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.getC
`),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({sear
* '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
`)))]).applyToString(n).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(a=>a.lines.length===0)}get lineCount(){return 1+this.parts.reduce((a,s)=>a+s.lines.length-1,0)}}class x{constructor(a,s,n){this.column=a,this.text=s,this.preview=n,this.lines=(0,F.uz)(this.text)}equals(a){return this.column===a.column&&this.lines.length===a.lines.length&&this.lines.every((s,n)=>s===a.lines[n])}}class I{constructor(a,s,n,i=0){this.lineNumber=a,this.columnRange=s,this.text=n,this.additionalReservedLineCount=i,this.parts=[new x(this.columnRange.endColumnExclusive,this.text,!1)],this.newLines=(0,F.uz)(this.text)}renderForScreenReader(a){return this.newLines.join(`
`)}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every(a=>a.lines.length===0)}equals(a){return this.lineNumber===a.lineNumber&&this.columnRange.equals(a.columnRange)&&this.newLines.length===a.newLines.length&&this.newLines.every((s,n)=>s===a.newLines[n])&&this.additionalReservedLineCount===a.additionalReservedLineCount}}function S(d,a){return(0,r.aI)(d,a,f)}function f(d,a){return d===a?!0:!d||!a?!1:d instanceof g&&a instanceof g||d instanceof I&&a instanceof I?d.equals(a):!1}},"./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js":function(pt,Me,e){e.d(Me,{PM:function(){return v},vS:function(){return p}});var r=e("./node_modules/monaco-editor/esm/vs/base/browser/trustedTypes.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/observable.js"),L=e("./node_modules/monaco-editor/esm/vs/base/common/strings.js"),g=e("./node_modules/monaco-editor/esm/vs/editor/browser/config/domFontInfo.js"),x=e("./node_modules/monaco-editor/esm/vs/editor/common/config/editorOptions.js"),I=e("./node_modules/monaco-editor/esm/vs/editor/common/core/position.js"),S=e("./node_modules/monaco-editor/esm/vs/editor/common/core/range.js"),f=e("./node_modules/monaco-editor/esm/vs/editor/common/core/stringBuilder.js"),d=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/language.js"),a=e("./node_modules/monaco-editor/esm/vs/editor/common/model.js"),s=e("./node_modules/monaco-editor/esm/vs/editor/common/tokens/lineTokens.js"),n=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/lineDecorations.js"),i=e("./node_modules/monaco-editor/esm/vs/editor/common/viewLayout/viewLineRenderer.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/ghostText.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/contrib/inlineCompletions/browser/utils.js"),u=function(w,j,U,K){var G=arguments.length,P=G<3?j:K===null?K=Object.getOwnPropertyDescriptor(j,U):K,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(w,j,U,K);else for(var T=w.length-1;T>=0;T--)(A=w[T])&&(P=(G<3?A(P):G>3?A(j,U,P):A(j,U))||P);return G>3&&P&&Object.defineProperty(j,U,P),P},C=function(w,j){return function(U,K){j(U,K,w)}};const h="ghost-text";let v=class extends k.jG{constructor(j,U,K){super(),this.editor=j,this.model=U,this.languageService=K,this.isDisposed=(0,M.FY)(this,!1),this.currentTextModel=(0,M.y0)(this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=(0,M.un)(this,G=>{if(this.isDisposed.read(G))return;const P=this.currentTextModel.read(G);if(P!==this.model.targetTextModel.read(G))return;const A=this.model.ghostText.read(G);if(!A)return;const T=A instanceof c.Vs?A.columnRange:void 0,E=[],W=[];function $(Y,X){if(W.length>0){const ie=W[W.length-1];X&&ie.decorations.push(new n.d(ie.content.length+1,ie.content.length+1+Y[0].length,X,0)),ie.content+=Y[0],Y=Y.slice(1)}for(const ie of Y)W.push({content:ie,decorations:X?[new n.d(1,ie.length+1,X,0)]:[]})}const z=P.getLineContent(A.lineNumber);let J,B=0;for(const Y of A.parts){let X=Y.lines;J===void 0?(E.push({column:Y.column,text:X[0],preview:Y.preview}),X=X.slice(1)):$([z.substring(B,Y.column-1)],void 0),X.length>0&&($(X,h),J===void 0&&Y.column<=z.length&&(J=Y.column)),B=Y.column-1}J!==void 0&&$([z.substring(B)],void 0);const V=J!==void 0?new m.GM(J,z.length+1):void 0;return{replacedRange:T,inlineTexts:E,additionalLines:W,hiddenRange:V,lineNumber:A.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(G),targetTextModel:P}}),this.decorations=(0,M.un)(this,G=>{const P=this.uiState.read(G);if(!P)return[];const A=[];P.replacedRange&&A.push({range:P.replacedRange.toRange(P.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),P.hiddenRange&&A.push({range:P.hiddenRange.toRange(P.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(
`),bt=Ge.replace(/\r\n|\r/g,`
`)}withRange(Ge){return new D(this.filterText,this.command,Ge,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}function he(rt,Ge){const nt=Ge.getWordAtPosition(rt),it=Ge.getLineMaxColumn(rt.lineNumber);return nt?new b.Q(rt.lineNumber,nt.startColumn,rt.lineNumber,it):b.Q.fromPositions(rt,rt.with(void 0,it))}function ve(rt,Ge,nt,it){const Dt=nt.getLineContent(Ge.lineNumber).substring(0,Ge.column-1)+rt,At=nt.tokenization.tokenizeLineWithEdit(Ge,Dt.length-(Ge.column-1),rt),et=At?.sliceAndInflate(Ge.column-1,Dt.length,0);return et?B(et,it):rt}var Ce=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textEdit.js"),Pe=e("./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js"),_e=e("./node_modules/monaco-editor/esm/vs/editor/common/core/textLength.js");function ee(rt,Ge,nt){const it=nt?rt.range.intersectRanges(nt):rt.range;if(!it)return rt;const bt=Ge.getValueInRange(it,1),Dt=(0,h.Qp)(bt,rt.text),At=_e.W.ofText(bt.substring(0,Dt)).addToPosition(rt.range.getStartPosition()),et=rt.text.substring(Dt),at=b.Q.fromPositions(At,rt.range.getEndPosition());return new Ce.WR(at,et)}function De(rt,Ge){return rt.text.startsWith(Ge.text)&&He(rt.range,Ge.range)}function Te(rt,Ge,nt,it,bt=0){let Dt=ee(rt,Ge);if(Dt.range.endLineNumber!==Dt.range.startLineNumber)return;const At=Ge.getLineContent(Dt.range.startLineNumber),et=(0,h.UU)(At).length;if(Dt.range.startColumn-1<=et){const je=(0,h.UU)(Dt.text).length,Rt=At.substring(Dt.range.startColumn-1,et),[Ft,ln]=[Dt.range.getStartPosition(),Dt.range.getEndPosition()],vn=Ft.column+Rt.length<=ln.column?Ft.delta(0,Rt.length):ln,Ln=b.Q.fromPositions(vn,ln),En=Dt.text.startsWith(Rt)?Dt.text.substring(Rt.length):Dt.text.substring(je);Dt=new Ce.WR(Ln,En)}const Tt=Ge.getValueInRange(Dt.range),dt=Qe(Tt,Dt.text);if(!dt)return;const Ae=Dt.range.startLineNumber,ct=new Array;if(nt==="prefix"){const je=dt.filter(Rt=>Rt.originalLength===0);if(je.length>1||je.length===1&&je[0].originalStart!==Tt.length)return}const ut=Dt.text.length-bt;for(const je of dt){const Rt=Dt.range.startColumn+je.originalStart+je.originalLength;if(nt==="subwordSmart"&&it&&it.lineNumber===Dt.range.startLineNumber&&Rt<it.column||je.originalLength>0)return;if(je.modifiedLength===0)continue;const Ft=je.modifiedStart+je.modifiedLength,ln=Math.max(je.modifiedStart,Math.min(Ft,ut)),vn=Dt.text.substring(je.modifiedStart,ln),Ln=Dt.text.substring(ln,Math.max(je.modifiedStart,Ft));vn.length>0&&ct.push(new U.yP(Rt,vn,!1)),Ln.length>0&&ct.push(new U.yP(Rt,Ln,!0))}return new U.xD(Ae,ct)}function He(rt,Ge){return Ge.getStartPosition().equals(rt.getStartPosition())&&Ge.getEndPosition().isBeforeOrEqual(rt.getEndPosition())}let qe;function Qe(rt,Ge){if(qe?.originalValue===rt&&qe?.newValue===Ge)return qe?.changes;{let nt=ye(rt,Ge,!0);if(nt){const it=q(nt);if(it>0){const bt=ye(rt,Ge,!1);bt&&q(bt)<it&&(nt=bt)}}return qe={originalValue:rt,newValue:Ge,changes:nt},nt}}function q(rt){let Ge=0;for(const nt of rt)Ge+=nt.originalLength;return Ge}function ye(rt,Ge,nt){if(rt.length>5e3||Ge.length>5e3)return;function it(Tt){let dt=0;for(let Ae=0,ct=Tt.length;Ae<ct;Ae++){const ut=Tt.charCodeAt(Ae);ut>dt&&(dt=ut)}return dt}const bt=Math.max(it(rt),it(Ge));function Dt(Tt){if(Tt<0)throw new Error("unexpected");return bt+Tt+1}function At(Tt){let dt=0,Ae=0;const ct=new Int32Array(Tt.length);for(let ut=0,je=Tt.length;ut<je;ut++)if(nt&&Tt[ut]==="("){const Rt=Ae*100+dt;ct[ut]=Dt(2*Rt),dt++}else if(nt&&Tt[ut]===")"){dt=Math.max(dt-1,0);const Rt=Ae*100+dt;ct[ut]=Dt(2*Rt+1),dt===0&&Ae++}else ct[ut]=Tt.charCodeAt(ut);return ct}const et=At(rt),at=At(Ge);return new Pe.uP({getElements:()=>et},{getElements:()=>at}).ComputeDiff(!1).changes}var ge=function(rt,Ge,nt,it){var bt=arguments.length,Dt=bt<3?Ge:it===null?it=Object.getOwnPropertyDescriptor(Ge,nt):it,At;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Dt=Reflect.decorate(rt,Ge,nt,it);else for(var et=rt.length-1;et>=0;et--)(At=rt[et])&&(Dt=(bt<3?At(Dt):bt>3?At(Ge,nt,Dt)
Invalid subtraction between ${it.toString()} and ${Dt.toString()}`)),[];const Tt=qt(nt.text,at);return bt.map(dt=>{const Ae=(0,Y.OA)((0,Y.tN)(dt,Dt),At),ct=rt.getValueInRange(b.Q.fromPositions(dt,Ae)),ut=(0,h.Qp)(et,ct),je=b.Q.fromPositions(dt,dt.delta(0,ut));return new Ce.WR(je,Tt)})}function qt(rt,Ge){let nt="";const it=(0,h.en)(rt);for(let bt=Ge.lineNumber-1;bt<it.length;bt++)nt+=it[bt].substring(bt===Ge.lineNumber-1?Ge.column-1:0);return nt}function tt(rt){const Ge=m.t9.createSortPermutation(rt,(Dt,At)=>b.Q.compareRangesUsingStarts(Dt.range,At.range)),it=new Ce.mF(Ge.apply(rt)).getNewRanges();return Ge.inverse().apply(it).map(Dt=>Dt.getEndPosition())}var Mt=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),Ht=e("./node_modules/monaco-editor/esm/vs/editor/contrib/snippet/browser/snippetSession.js"),xt=e("./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.js");class Jt extends f.jG{get selectedItem(){return this._selectedItem}constructor(Ge,nt,it,bt){super(),this.editor=Ge,this.suggestControllerPreselector=nt,this.checkModelVersion=it,this.onWillAccept=bt,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=(0,k.FY)(this,void 0),this._register(Ge.onKeyDown(At=>{At.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(Ge.onKeyUp(At=>{At.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));const Dt=xt.D.get(this.editor);if(Dt){this._register(Dt.registerSelector({priority:100,select:(at,Tt,dt)=>{(0,k.Rn)(ln=>this.checkModelVersion(ln));const Ae=this.editor.getModel();if(!Ae)return-1;const ct=this.suggestControllerPreselector(),ut=ct?ee(ct,Ae):void 0;if(!ut)return-1;const je=a.y.lift(Tt),Rt=dt.map((ln,vn)=>{const Ln=Nt.fromSuggestion(Dt,Ae,je,ln,this.isShiftKeyPressed),En=ee(Ln.toSingleTextEdit(),Ae),In=De(ut,En);return{index:vn,valid:In,prefixLength:En.text.length,suggestItem:ln}}).filter(ln=>ln&&ln.valid&&ln.prefixLength>0),Ft=(0,u.Nf)(Rt,(0,m.VE)(ln=>ln.prefixLength,m.U9));return Ft?Ft.index:-1}}));let At=!1;const et=()=>{At||(At=!0,this._register(Dt.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(Dt.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.update(!1)})),this._register(Dt.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(Mt.Jh.once(Dt.model.onDidTrigger)(at=>{et()})),this._register(Dt.onWillInsertSuggestItem(at=>{const Tt=this.editor.getPosition(),dt=this.editor.getModel();if(!Tt||!dt)return;const Ae=Nt.fromSuggestion(Dt,dt,Tt,at.item,this.isShiftKeyPressed);this.onWillAccept(Ae)}))}this.update(this._isActive)}update(Ge){const nt=this.getSuggestItemInfo();(this._isActive!==Ge||!Be(this._currentSuggestItemInfo,nt))&&(this._isActive=Ge,this._currentSuggestItemInfo=nt,(0,k.Rn)(it=>{this.checkModelVersion(it),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,it)}))}getSuggestItemInfo(){const Ge=xt.D.get(this.editor);if(!Ge||!this.isSuggestWidgetVisible)return;const nt=Ge.widget.value.getFocusedItem(),it=this.editor.getPosition(),bt=this.editor.getModel();if(!(!nt||!it||!bt))return Nt.fromSuggestion(Ge,bt,it,nt.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){const Ge=xt.D.get(this.editor);Ge?.stopForceRenderingAbove()}forceRenderingAbove(){const Ge=xt.D.get(this.editor);Ge?.forceRenderingAbove()}}class Nt{static fromSuggestion(Ge,nt,it,bt,Dt){let{insertText:At}=bt.completion,et=!1;if(bt.completion.insertTextRules&4){const Tt=new X.fr().parse(At);Tt.children.length<100&&Ht.O.adjustWhitespace(nt,it,!0,Tt),At=Tt.toString(),et=!0}const at=Ge.getOverwriteInfo(bt,Dt);return new Nt(b.Q.fromPositions(it.delta(0,-at.overwriteBefore),it.delta(0,Math.max(at.overwriteAfter,0))),At,bt.completion.kind,et)}constructor(Ge,nt,it,bt){this.range=Ge,this.insertText=nt,this.completionItemKind=it,this.isSnippetText=bt}equals(Ge){return this.range.equalsRange(Ge.range)&&this.insertText==
.monaco-editor .ghost-text-decoration,
.monaco-editor .ghost-text-decoration-preview,
.monaco-editor .ghost-text {
font-family: ${je};
}`)}));const Ae=ut=>{var je;return ut.isUndoing?Et.Undo:ut.isRedoing?Et.Redo:!((je=this.model.get())===null||je===void 0)&&je.isAcceptingPartially?Et.AcceptWord:Et.Other};this._register(Ge.onDidChangeModelContent(ut=>(0,k.Rn)(je=>this.updateObservables(je,Ae(ut))))),this._register(Ge.onDidChangeCursorPosition(ut=>(0,k.Rn)(je=>{var Rt;this.updateObservables(je,Et.Other),(ut.reason===3||ut.source==="api")&&((Rt=this.model.get())===null||Rt===void 0||Rt.stop(je))}))),this._register(Ge.onDidType(()=>(0,k.Rn)(ut=>{var je;this.updateObservables(ut,Et.Other),this._enabled.get()&&((je=this.model.get())===null||je===void 0||je.trigger(ut))}))),this._register(this._commandService.onDidExecuteCommand(ut=>{new Set([d.Yh.Tab.id,d.Yh.DeleteLeft.id,d.Yh.DeleteRight.id,g.Wt,"acceptSelectedSuggestion"]).has(ut.commandId)&&Ge.hasTextFocus()&&this._enabled.get()&&(0,k.Rn)(Rt=>{var Ft;(Ft=this.model.get())===null||Ft===void 0||Ft.trigger(Rt)})})),this._register(this.editor.onDidBlurEditorWidget(()=>{this._contextKeyService.getContextKeyValue("accessibleViewIsShown")||this._configurationService.getValue("editor.inlineSuggest.keepOnBlur")||Ge.getOption(62).keepOnBlur||c.bo.dropDownVisible||(0,k.Rn)(ut=>{var je;(je=this.model.get())===null||je===void 0||je.stop(ut)})})),this._register((0,k.fm)(ut=>{var je;const Rt=(je=this.model.read(ut))===null||je===void 0?void 0:je.state.read(ut);Rt?.suggestItem?Rt.primaryGhostText.lineCount>=2&&this._suggestWidgetAdaptor.forceRenderingAbove():this._suggestWidgetAdaptor.stopForceRenderingAbove()})),this._register((0,f.s)(()=>{this._suggestWidgetAdaptor.stopForceRenderingAbove()}));let ct;this._register((0,k.Y)({handleChange:(ut,je)=>(ut.didChange(this._playAccessibilitySignal)&&(ct=void 0),!0)},async ut=>{this._playAccessibilitySignal.read(ut);const je=this.model.read(ut),Rt=je?.state.read(ut);if(!je||!Rt||!Rt.inlineCompletion){ct=void 0;return}if(Rt.inlineCompletion.semanticId!==ct){ct=Rt.inlineCompletion.semanticId;const Ft=je.textModel.getLineContent(Rt.primaryGhostText.lineNumber);this._accessibilitySignalService.playSignal(Gt.Rh.inlineSuggestion).then(()=>{this.editor.getOption(8)&&this.provideScreenReaderUpdate(Rt.primaryGhostText.renderForScreenReader(Ft))})}})),this._register(new c.Pm(this.editor,this.model,this._instantiationService)),this._register(this._configurationService.onDidChangeConfiguration(ut=>{ut.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})})),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this._configurationService.getValue("accessibility.verbosity.inlineCompletions")})}playAccessibilitySignal(Ge){this._playAccessibilitySignal.trigger(Ge)}provideScreenReaderUpdate(Ge){const nt=this._contextKeyService.getContextKeyValue("accessibleViewIsShown"),it=this._keybindingService.lookupKeybinding("editor.action.accessibleView");let bt;!nt&&it&&this.editor.getOption(149)&&(bt=(0,vt.kg)("showAccessibleViewHint","Inspect this in the accessible view ({0})",it.getAriaLabel())),bt?(0,S.xE)(Ge+", "+bt):(0,S.xE)(Ge)}updateObservables(Ge,nt){var it,bt,Dt;const At=this.editor.getModel();this._textModelVersionId.set((it=At?.getVersionId())!==null&&it!==void 0?it:-1,Ge,nt),this._positions.set((Dt=(bt=this.editor.getSelections())===null||bt===void 0?void 0:bt.map(et=>et.getPosition()))!==null&&Dt!==void 0?Dt:[new a.y(1,1)],Ge)}shouldShowHoverAt(Ge){var nt;const it=(nt=this.model.get())===null||nt===void 0?void 0:nt.primaryGhostText.get();return it?it.parts.some(bt=>Ge.containsPosition(new a.y(it.lineNumber,bt.column))):!1}shouldShowHoverAtViewZone(Ge){var nt,it;return(it=(nt=this._ghostTextWidgets.get()[0])===null||nt===void 0?void 0:nt.ownsViewZone(Ge))!==null&&it!==void 0?it:!1}};ri.ID="editor.contrib.inlineCompletionsController",ri=yi=Kn([mi(1,we._Y),mi(2,Fn.fN),mi(3,_n.pG),mi(4,We.d),mi(5,s.U),mi(6,n.u),mi(7,Gt.Nt),mi(8,An.b)],ri);function fi(rt,Ge){const nt=(0,k.FY)("result",[]),it=[];return Ge.add((0,k.fm)(bt=>{const
.monaco-editor .inline-edit-decoration,
.monaco-editor .inline-edit-decoration-preview,
.monaco-editor .inline-edit {
font-family: ${qt};
}`)})),this._register(new re(this.editor,this._currentEdit,this.instantiationService))}checkCursorPosition(le){var oe;if(!this._currentEdit){this._isCursorAtInlineEditContext.set(!1);return}const ne=(oe=this._currentEdit.get())===null||oe===void 0?void 0:oe.edit;if(!ne){this._isCursorAtInlineEditContext.set(!1);return}this._isCursorAtInlineEditContext.set(a.Q.containsPosition(ne.range,le))}validateInlineEdit(le,oe){var ne,de;if(oe.text.includes(`
`)&&oe.range.startLineNumber!==oe.range.endLineNumber&&oe.range.startColumn!==oe.range.endColumn){if(oe.range.startColumn!==1)return!1;const We=oe.range.endLineNumber,we=oe.range.endColumn,Ue=(de=(ne=le.getModel())===null||ne===void 0?void 0:ne.getLineLength(We))!==null&&de!==void 0?de:0;if(we!==Ue+1)return!1}return!0}async fetchInlineEdit(le,oe){this._currentRequestCts&&this._currentRequestCts.dispose(!0);const ne=le.getModel();if(!ne)return;const de=ne.getVersionId(),Le=this.languageFeaturesService.inlineEditProvider.all(ne);if(Le.length===0)return;const We=Le[0];this._currentRequestCts=new j.Q;const we=this._currentRequestCts.token,Ue=oe?O.sm.Automatic:O.sm.Invoke;if(oe&&await He(50,we),we.isCancellationRequested||ne.isDisposed()||ne.getVersionId()!==de)return;const Et=await We.provideInlineEdit(ne,{triggerKind:Ue},we);if(Et&&!(we.isCancellationRequested||ne.isDisposed()||ne.getVersionId()!==de)&&this.validateInlineEdit(le,Et))return Et}async getInlineEdit(le,oe){var ne;this._isCursorAtInlineEditContext.set(!1),await this.clear();const de=await this.fetchInlineEdit(le,oe);if(!de)return;const Le=de.range.endLineNumber,We=de.range.endColumn,we=new U.xD(Le,[new U.yP(We,de.text,!1)]),Ue=this.instantiationService.createInstance(v,this.editor,{ghostText:(0,S.lk)(we),minReservedLineCount:(0,S.lk)(0),targetTextModel:(0,S.lk)((ne=this.editor.getModel())!==null&&ne!==void 0?ne:void 0),range:(0,S.lk)(de.range),backgroundColoring:this._backgroundColoring});this._currentEdit.set(new De(Ue,de),void 0)}async trigger(){await this.getInlineEdit(this.editor,!1)}async jumpBack(){this._jumpBackPosition&&(this.editor.setPosition(this._jumpBackPosition),this.editor.revealPositionInCenterIfOutsideViewport(this._jumpBackPosition))}async accept(){var le;this._isAccepting.set(!0,void 0);const oe=(le=this._currentEdit.get())===null||le===void 0?void 0:le.edit;if(!oe)return;let ne=oe.text;oe.text.startsWith(`
`)&&(ne=oe.text.substring(1)),this.editor.pushUndoStop(),this.editor.executeEdits("acceptCurrent",[f.k.replace(a.Q.lift(oe.range),ne)]),oe.accepted&&await this._commandService.executeCommand(oe.accepted.id,...oe.accepted.arguments||[]).then(void 0,Ce.M_),this.freeEdit(oe),(0,S.Rn)(de=>{this._currentEdit.set(void 0,de),this._isAccepting.set(!1,de)})}jumpToCurrent(){var le,oe;this._jumpBackPosition=(le=this.editor.getSelection())===null||le===void 0?void 0:le.getStartPosition();const ne=(oe=this._currentEdit.get())===null||oe===void 0?void 0:oe.edit;if(!ne)return;const de=d.y.lift({lineNumber:ne.range.startLineNumber,column:ne.range.startColumn});this.editor.setPosition(de),this.editor.revealPositionInCenterIfOutsideViewport(de)}async clear(le=!0){var oe;const ne=(oe=this._currentEdit.get())===null||oe===void 0?void 0:oe.edit;ne&&ne?.rejected&&le&&await this._commandService.executeCommand(ne.rejected.id,...ne.rejected.arguments||[]).then(void 0,Ce.M_),ne&&this.freeEdit(ne),this._currentEdit.set(void 0,void 0)}freeEdit(le){const oe=this.editor.getModel();if(!oe)return;const ne=this.languageFeaturesService.inlineEditProvider.all(oe);ne.length!==0&&ne[0].freeInlineEdit(le)}shouldShowHoverAt(le){const oe=this._currentEdit.get();if(!oe)return!1;const ne=oe.edit,de=oe.widget.model;if(a.Q.containsPosition(ne.range,le.getStartPosition())||a.Q.containsPosition(ne.range,le.getEndPosition()))return!0;const We=de.ghostText.get();return We?We.parts.some(we=>le.containsPosition(new d.y(We.lineNumber,we.column))):!1}shouldShowHoverAtViewZone(le){var oe,ne;return(ne=(oe=this._currentEdit.get())===null||oe===void 0?void 0:oe.widget.ownsViewZone(le))!==null&&ne!==void 0?ne:!1}};Te.ID="editor.contrib.inlineEditController",Te.inlineEditVisibleKey="inlineEditVisible",Te.inlineEditVisibleContext=new p.N1(ee.inlineEditVisibleKey,!1),Te.cursorAtInlineEditKey="cursorAtInlineEdit",Te.cursorAtInlineEditContext=new p.N1(ee.cursorAtInlineEditKey,!1),Te=ee=Pe([_e(1,b._Y),_e(2,p.fN),_e(3,w.u),_e(4,K.d),_e(5,ve.pG)],Te);function He(fe,le){return new Promise(oe=>{let ne;const de=setTimeout(()=>{ne&&ne.dispose(),oe()},fe);le&&(ne=le.onCancellationRequested(()=>{clearTimeout(de),ne&&ne.dispose(),oe()}))})}class qe extends r.ks{constructor(){super({id:M,label:"Accept Inline Edit",alias:"Accept Inline Edit",precondition:p.M$.and(k.R.writable,Te.inlineEditVisibleContext),kbOpts:[{weight:101,primary:2,kbExpr:p.M$.and(k.R.writable,Te.inlineEditVisibleContext,Te.cursorAtInlineEditContext)}],menuOpts:[{menuId:z.D8.InlineEditToolbar,title:"Accept",group:"primary",order:1}]})}async run(le,oe){const ne=Te.get(oe);await ne?.accept()}}class Qe extends r.ks{constructor(){const le=p.M$.and(k.R.writable,p.M$.not(Te.inlineEditVisibleKey));super({id:"editor.action.inlineEdit.trigger",label:"Trigger Inline Edit",alias:"Trigger Inline Edit",precondition:le,kbOpts:{weight:101,primary:2646,kbExpr:le}})}async run(le,oe){const ne=Te.get(oe);ne?.trigger()}}class q extends r.ks{constructor(){const le=p.M$.and(k.R.writable,Te.inlineEditVisibleContext,p.M$.not(Te.cursorAtInlineEditKey));super({id:g,label:"Jump to Inline Edit",alias:"Jump to Inline Edit",precondition:le,kbOpts:{weight:101,primary:2646,kbExpr:le},menuOpts:[{menuId:z.D8.InlineEditToolbar,title:"Jump To Edit",group:"primary",order:3,when:le}]})}async run(le,oe){const ne=Te.get(oe);ne?.jumpToCurrent()}}class ye extends r.ks{constructor(){const le=p.M$.and(k.R.writable,Te.cursorAtInlineEditContext);super({id:x,label:"Jump Back from Inline Edit",alias:"Jump Back from Inline Edit",precondition:le,kbOpts:{weight:110,primary:2646,kbExpr:le},menuOpts:[{menuId:z.D8.InlineEditToolbar,title:"Jump Back",group:"primary",order:3,when:le}]})}async run(le,oe){const ne=Te.get(oe);ne?.jumpBack()}}class ge extends r.ks{constructor(){const le=p.M$.and(k.R.writable,Te.inlineEditVisibleContext);super({id:L,label:"Reject Inline Edit",alias:"Reject Inline Edit",precondition:le,kbOpts:{weight:100,primary:9,kbExpr:le},menuOpts:[{menuId:z.D8.InlineEditToolbar,title:"Reject",group:"secondary",order:2}]})}async run(le,oe){const ne=Te.get(oe);await
`);oe===""&&this._isCopyingDown&&(this._startLineNumberDelta++,this._endLineNumberDelta++),this._noop?me.addEditOperation(new x.Q(fe.endLineNumber,ae.getLineMaxColumn(fe.endLineNumber),fe.endLineNumber+1,1),fe.endLineNumber===ae.getLineCount()?"":`
`):this._isCopyingDown?me.addEditOperation(new x.Q(fe.startLineNumber,1,fe.startLineNumber,1),oe+`
`):me.addEditOperation(new x.Q(fe.endLineNumber,ae.getLineMaxColumn(fe.endLineNumber),fe.endLineNumber,ae.getLineMaxColumn(fe.endLineNumber)),`
`+oe),this._selectionId=me.trackSelection(fe),this._selectionDirection=this._selection.getDirection()}computeCursorState(ae,me){let fe=me.getTrackedSelection(this._selectionId);if(this._startLineNumberDelta!==0||this._endLineNumberDelta!==0){let le=fe.startLineNumber,oe=fe.startColumn,ne=fe.endLineNumber,de=fe.endColumn;this._startLineNumberDelta!==0&&(le=le+this._startLineNumberDelta,oe=1),this._endLineNumberDelta!==0&&(ne=ne+this._endLineNumberDelta,de=1),fe=a.L.createWithDirection(le,oe,ne,de,this._selectionDirection)}return fe}}var i=e("./node_modules/monaco-editor/esm/vs/editor/common/commands/shiftCommand.js"),c=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfiguration.js"),m=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js"),u=e("./node_modules/monaco-editor/esm/vs/editor/contrib/indentation/common/indentUtils.js"),C=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/autoIndent.js"),h=e("./node_modules/monaco-editor/esm/vs/editor/common/languages/enterAction.js"),v=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},p=function(Se,ae){return function(me,fe){ae(me,fe,Se)}};let b=class{constructor(ae,me,fe,le){this._languageConfigurationService=le,this._selection=ae,this._isMovingDown=me,this._autoIndent=fe,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(ae,me){const fe=ae.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===fe){this._selectionId=me.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=me.trackSelection(this._selection);return}this._moveEndPositionDown=!1;let le=this._selection;le.startLineNumber<le.endLineNumber&&le.endColumn===1&&(this._moveEndPositionDown=!0,le=le.setEndPosition(le.endLineNumber-1,ae.getLineMaxColumn(le.endLineNumber-1)));const{tabSize:oe,indentSize:ne,insertSpaces:de}=ae.getOptions(),Le=this.buildIndentConverter(oe,ne,de),We={tokenization:{getLineTokens:we=>ae.tokenization.getLineTokens(we),getLanguageId:()=>ae.getLanguageId(),getLanguageIdAtPosition:(we,Ue)=>ae.getLanguageIdAtPosition(we,Ue)},getLineContent:null};if(le.startLineNumber===le.endLineNumber&&ae.getLineMaxColumn(le.startLineNumber)===1){const we=le.startLineNumber,Ue=this._isMovingDown?we+1:we-1;ae.getLineMaxColumn(Ue)===1?me.addEditOperation(new x.Q(1,1,1,1),null):(me.addEditOperation(new x.Q(we,1,we,1),ae.getLineContent(Ue)),me.addEditOperation(new x.Q(Ue,1,Ue,ae.getLineMaxColumn(Ue)),null)),le=new a.L(Ue,1,Ue,1)}else{let we,Ue;if(this._isMovingDown){we=le.endLineNumber+1,Ue=ae.getLineContent(we),me.addEditOperation(new x.Q(we-1,ae.getLineMaxColumn(we-1),we,ae.getLineMaxColumn(we)),null);let lt=Ue;if(this.shouldAutoIndent(ae,le)){const Et=this.matchEnterRule(ae,Le,oe,we,le.startLineNumber-1);if(Et!==null){const Zt=L.UU(ae.getLineContent(we)),qt=Et+u.c(Zt,oe);lt=u.k(qt,oe,de)+this.trimStart(Ue)}else{We.getLineContent=qt=>qt===le.startLineNumber?ae.getLineContent(we):ae.getLineContent(qt);const Zt=(0,C.$f)(this._autoIndent,We,ae.getLanguageIdAtPosition(we,1),le.startLineNumber,Le,this._languageConfigurationService);if(Zt!==null){const qt=L.UU(ae.getLineContent(we)),tt=u.c(Zt,oe),Mt=u.c(qt,oe);tt!==Mt&&(lt=u.k(tt,oe,de)+this.trimStart(Ue))}}me.addEditOperation(new x.Q(le.startLineNumber,1,le.startLineNumber,1),lt+`
`);const Kt=this.matchEnterRuleMovingDown(ae,Le,oe,le.startLineNumber,we,lt);if(Kt!==null)Kt!==0&&this.getIndentEditsOfMovingBlock(ae,me,le,oe,de,Kt);else{We.getLineContent=qt=>qt===le.startLineNumber?lt:qt>=le.startLineNumber+1&&qt<=le.endLineNumber+1?ae.getLineContent(qt-1):ae.getLineContent(qt);const Zt=(0,C.$f)(this._autoIndent,We,ae.getLanguageIdAtPosition(we,1),le.startLineNumber+1,Le,this._languageConfigurationService);if(Zt!==null){const qt=L.UU(ae.getLineContent(le.startLineNumber)),tt=u.c(Zt,oe),Mt=u.c(qt,oe);if(tt!==Mt){const Ht=tt-Mt;this.getIndentEditsOfMovingBlock(ae,me,le,oe,de,Ht)}}}}else me.addEditOperation(new x.Q(le.startLineNumber,1,le.startLineNumber,1),lt+`
`)}else if(we=le.startLineNumber-1,Ue=ae.getLineContent(we),me.addEditOperation(new x.Q(we,1,we+1,1),null),me.addEditOperation(new x.Q(le.endLineNumber,ae.getLineMaxColumn(le.endLineNumber),le.endLineNumber,ae.getLineMaxColumn(le.endLineNumber)),`
`+Ue),this.shouldAutoIndent(ae,le)){We.getLineContent=Et=>Et===we?ae.getLineContent(le.startLineNumber):ae.getLineContent(Et);const lt=this.matchEnterRule(ae,Le,oe,le.startLineNumber,le.startLineNumber-2);if(lt!==null)lt!==0&&this.getIndentEditsOfMovingBlock(ae,me,le,oe,de,lt);else{const Et=(0,C.$f)(this._autoIndent,We,ae.getLanguageIdAtPosition(le.startLineNumber,1),we,Le,this._languageConfigurationService);if(Et!==null){const Kt=L.UU(ae.getLineContent(le.startLineNumber)),Zt=u.c(Et,oe),qt=u.c(Kt,oe);if(Zt!==qt){const tt=Zt-qt;this.getIndentEditsOfMovingBlock(ae,me,le,oe,de,tt)}}}}}this._selectionId=me.trackSelection(le)}buildIndentConverter(ae,me,fe){return{shiftIndent:le=>i.Y.shiftIndent(le,le.length+1,ae,me,fe),unshiftIndent:le=>i.Y.unshiftIndent(le,le.length+1,ae,me,fe)}}parseEnterResult(ae,me,fe,le,oe){if(oe){let ne=oe.indentation;oe.indentAction===c.l.None||oe.indentAction===c.l.Indent?ne=oe.indentation+oe.appendText:oe.indentAction===c.l.IndentOutdent?ne=oe.indentation:oe.indentAction===c.l.Outdent&&(ne=me.unshiftIndent(oe.indentation)+oe.appendText);const de=ae.getLineContent(le);if(this.trimStart(de).indexOf(this.trimStart(ne))>=0){const Le=L.UU(ae.getLineContent(le));let We=L.UU(ne);const we=(0,C.Yb)(ae,le,this._languageConfigurationService);we!==null&&we&2&&(We=me.unshiftIndent(We));const Ue=u.c(We,fe),lt=u.c(Le,fe);return Ue-lt}}return null}matchEnterRuleMovingDown(ae,me,fe,le,oe,ne){if(L.lT(ne)>=0){const de=ae.getLineMaxColumn(oe),Le=(0,h.h)(this._autoIndent,ae,new x.Q(oe,de,oe,de),this._languageConfigurationService);return this.parseEnterResult(ae,me,fe,le,Le)}else{let de=le-1;for(;de>=1;){const we=ae.getLineContent(de);if(L.lT(we)>=0)break;de--}if(de<1||le>ae.getLineCount())return null;const Le=ae.getLineMaxColumn(de),We=(0,h.h)(this._autoIndent,ae,new x.Q(de,Le,de,Le),this._languageConfigurationService);return this.parseEnterResult(ae,me,fe,le,We)}}matchEnterRule(ae,me,fe,le,oe,ne){let de=oe;for(;de>=1;){let we;if(de===oe&&ne!==void 0?we=ne:we=ae.getLineContent(de),L.lT(we)>=0)break;de--}if(de<1||le>ae.getLineCount())return null;const Le=ae.getLineMaxColumn(de),We=(0,h.h)(this._autoIndent,ae,new x.Q(de,Le,de,Le),this._languageConfigurationService);return this.parseEnterResult(ae,me,fe,le,We)}trimStart(ae){return ae.replace(/^\s+/,"")}shouldAutoIndent(ae,me){if(this._autoIndent<4||!ae.tokenization.isCheapToTokenize(me.startLineNumber))return!1;const fe=ae.getLanguageIdAtPosition(me.startLineNumber,1),le=ae.getLanguageIdAtPosition(me.endLineNumber,1);return!(fe!==le||this._languageConfigurationService.getLanguageConfiguration(fe).indentRulesSupport===null)}getIndentEditsOfMovingBlock(ae,me,fe,le,oe,ne){for(let de=fe.startLineNumber;de<=fe.endLineNumber;de++){const Le=ae.getLineContent(de),We=L.UU(Le),Ue=u.c(We,le)+ne,lt=u.k(Ue,le,oe);lt!==We&&(me.addEditOperation(new x.Q(de,1,de,We.length+1),lt),de===fe.endLineNumber&&fe.endColumn<=We.length+1&&lt===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(ae,me){let fe=me.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(fe=fe.setEndPosition(fe.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&fe.startLineNumber<fe.endLineNumber&&(fe=fe.setEndPosition(fe.endLineNumber,2)),fe}};b=v([p(3,m.JZ)],b);class O{static getCollator(){return O._COLLATOR||(O._COLLATOR=new Intl.Collator),O._COLLATOR}constructor(ae,me){this.selection=ae,this.descending=me,this.selectionId=null}getEditOperations(ae,me){const fe=j(ae,this.selection,this.descending);fe&&me.addEditOperation(fe.range,fe.text),this.selectionId=me.trackSelection(this.selection)}computeCursorState(ae,me){return me.getTrackedSelection(this.selectionId)}static canRun(ae,me,fe){if(ae===null)return!1;const le=w(ae,me,fe);if(!le)return!1;for(let oe=0,ne=le.before.length;oe<ne;oe++)if(le.before[oe]!==le.after[oe])return!0;return!1}}O._COLLATOR=null;function w(Se,ae,me){const fe=ae.startLineNumber;let le=ae.endLineNumber;if(ae.endColumn===1&&le--,fe>=le)return null;const oe=[];for(let de=fe;de<=le;de++)oe.push(Se.getLineContent(de));let ne=oe.slice(0);return ne.sort(O.getCollator().c
`)):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})}}
`))),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]);cons
`);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(t
`):void 0}:{range:s.Q.fromPositions(this.position),text:"",rejectReason:Se.length>0?Se.join(`
`):void 0}}async provideRenameEdits(be,Se){return this._provideRenameEdits(be,this._providerRenameIdx,[],Se)}async _provideRenameEdits(be,Se,ae,me){const fe=this._providers[Se];if(!fe)return{edits:[],rejectReason:ae.join(`
`)};const le=await fe.provideRenameEdits(this.model,this.position,be,me);if(le){if(le.rejectReason)return this._provideRenameEdits(be,Se+1,ae.concat(le.rejectReason),me)}else return this._provideRenameEdits(be,Se+1,ae.concat(C.kg("no result","No result.")),me);return le}}async function qe(ge,be,Se,ae){const me=new He(be,Se,ge),fe=await me.resolveRenameLocation(k.X.None);return fe?.rejectReason?{edits:[],rejectReason:fe.rejectReason}:me.provideRenameEdits(ae,k.X.None)}let Qe=Te=class{static get(be){return be.getContribution(Te.ID)}constructor(be,Se,ae,me,fe,le,oe,ne,de){this.editor=be,this._instaService=Se,this._notificationService=ae,this._bulkEditService=me,this._progressService=fe,this._logService=le,this._configService=oe,this._languageFeaturesService=ne,this._telemetryService=de,this._disposableStore=new g.Cm,this._cts=new k.Q,this._renameWidget=this._disposableStore.add(this._instaService.createInstance(ve,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}async run(){var be,Se;const ae=this._logService.trace.bind(this._logService,"[rename]");if(this._cts.dispose(!0),this._cts=new k.Q,!this.editor.hasModel()){ae("editor has no model");return}const me=this.editor.getPosition(),fe=new He(this.editor.getModel(),me,this._languageFeaturesService.renameProvider);if(!fe.hasProvider()){ae("skeleton has no provider");return}const le=new m.gI(this.editor,5,void 0,this._cts.token);let oe;try{ae("resolving rename location");const Et=fe.resolveRenameLocation(le.token);this._progressService.showWhile(Et,250),oe=await Et,ae("resolved rename location")}catch(Et){Et instanceof M.AL?ae("resolve rename location cancelled",JSON.stringify(Et,null," ")):(ae("resolve rename location failed",Et instanceof Error?Et:JSON.stringify(Et,null," ")),(typeof Et=="string"||(0,L.VS)(Et))&&((be=u.k.get(this.editor))===null||be===void 0||be.showMessage(Et||C.kg("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),me)));return}finally{le.dispose()}if(!oe){ae("returning early - no loc");return}if(oe.rejectReason){ae(`returning early - rejected with reason: ${oe.rejectReason}`,oe.rejectReason),(Se=u.k.get(this.editor))===null||Se===void 0||Se.showMessage(oe.rejectReason,me);return}if(le.token.isCancellationRequested){ae("returning early - cts1 cancelled");return}const ne=new m.gI(this.editor,5,oe.range,this._cts.token),de=this.editor.getModel(),Le=this._languageFeaturesService.newSymbolNamesProvider.all(de),We=Et=>Le.map(Kt=>Kt.provideNewSymbolNames(de,oe.range,Et));ae("creating rename input field and awaiting its result");const we=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),Ue=await this._renameWidget.getInput(oe.range,oe.text,we,We,ne);if(ae("received response from rename input field"),Le.length>0&&this._reportTelemetry(Le.length,de.getLanguageId(),Ue),typeof Ue=="boolean"){ae(`returning early - rename input field response - ${Ue}`),Ue&&this.editor.focus(),ne.dispose();return}this.editor.focus(),ae("requesting rename edits");const lt=(0,F.PK)(fe.provideRenameEdits(Ue.newName,ne.token),ne.token).then(async Et=>{if(!Et){ae("returning early - no rename edits result");return}if(!this.editor.hasModel()){ae("returning early - no model after rename edits are provided");return}if(Et.rejectReason){ae(`returning early - rejected with reason: ${Et.rejectReason}`),this._notificationService.info(Et.rejectReason);return}this.editor.setSelection(s.Q.fromPositions(this.editor.getSelection().getPosition())),ae("applying edits"),this._bulkEditService.apply(Et,{editor:this.editor,showPreview:Ue.wantsPreview,label:C.kg("label","Renaming '{0}' to '{1}'",oe?.text,Ue.newName),code:"undoredo.rename",quotableLabel:C.kg("quotableLabel","Renaming {0} to {1}",oe?.text,Ue.newName),respectAutoSaveConfig:!0}).then(Kt=>{ae("edits applied"),Kt.ariaSummary&&(0,r.xE)(C.kg("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",oe.text,Ue.newName,Kt.ariaSummary))}).catch(Kt=>{ae(`err
`,it+=`prefix: ${(St=Ne.word)!==null&&St!==void 0?St:"(no prefix)"}
`,it+=`word: ${Ne.completion.filterText?Ne.completion.filterText+" (filterText)":Ne.textLabel}
`,it+=`distance: ${Ne.distance} (localityBonus-setting)
`,it+=`index: ${Ne.idx}, based on ${Ne.completion.sortText&&`sortText: "${Ne.completion.sortText}"`||"label"}
`,it+=`commit_chars: ${(rt=Ne.completion.commitCharacters)===null||rt===void 0?void 0:rt.join("")}
`,nt=new be.Bc().appendCodeblock("empty",it),Ge=`Provider: ${Ne.provider._debugDisplayName}`}if(!ft&&!fe(Ne)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),Ge){const it=Ge.length>1e5?`${Ge.substr(0,1e5)}\u2026`:Ge;this._type.textContent=it,this._type.title=it,B.WU(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(it))}else B.w_(this._type),this._type.title="",B.jD(this._type),this.domNode.classList.add("no-type");if(B.w_(this._docs),typeof nt=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=nt;else if(nt){this._docs.classList.add("markdown-docs"),B.w_(this._docs);const it=this._markdownRenderer.render(nt);this._docs.appendChild(it.element),this._renderDisposeable.add(it),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=it=>{it.preventDefault(),it.stopPropagation()},this._close.onclick=it=>{it.preventDefault(),it.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get isEmpty(){return this.domNode.classList.contains("no-docs")}get size(){return this._size}layout(Ne,ft){const St=new B.fg(Ne,ft);B.fg.equals(St,this._size)||(this._size=St,B.Ej(this.domNode,Ne,ft)),this._scrollbar.scanDomNode()}scrollDown(Ne=8){this._body.scrollTop+=Ne}scrollUp(Ne=8){this._body.scrollTop-=Ne}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(Ne){this._borderWidth=Ne}get borderWidth(){return this._borderWidth}};le=ae([me(1,U._Y)],le);class oe{constructor(Ne,ft){this.widget=Ne,this._editor=ft,this.allowEditorOverflow=!0,this._disposables=new x.Cm,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new Qe.v,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(Ne.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let St,rt,Ge=0,nt=0;this._disposables.add(this._resizable.onDidWillResize(()=>{St=this._topLeft,rt=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(it=>{if(St&&rt){this.widget.layout(it.dimension.width,it.dimension.height);let bt=!1;it.west&&(nt=rt.width-it.dimension.width,bt=!0),it.north&&(Ge=rt.height-it.dimension.height,bt=!0),bt&&this._applyTopLeft({top:St.top+Ge,left:St.left+nt})}it.done&&(St=void 0,rt=void 0,Ge=0,nt=0,this._userSize=it.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var it;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(it=this._userSize)!==null&&it!==void 0?it:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return this._topLeft?{preference:this._topLeft}:null}show(){this._added||(this._editor.addOverlayWidget(this),this._added=!0)}hide(Ne=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),Ne&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(Ne,ft){var St;const rt=Ne.getBoundingClientRect();this._anchorBox=rt,this._preferAlignAtTop=ft,this._placeAtAnchor(this._anchorBox,(St=this._userSize)!==null&&St!==void 0?St:this.widget.size,ft)}_placeAtAnchor(Ne,ft,St){var rt;const Ge=B.tG(this.getDomNode().ownerDocument.body),nt=this.widget.getLayoutInfo(),it=new B.fg(220,2*nt.lineHeight),bt=Ne.top,Dt=function(){const vn=Ge.width-(Ne.left+Ne.width+nt.borderWidth+nt.horizontalPadding),Ln=-nt.borderWidth+Ne.left+Ne.width,En=new B.fg(vn,Ge.height-Ne.top-nt.borderHeight-nt.verticalPaddi
`):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_
`)}var C=e("./node_modules/monaco-editor/esm/vs/editor/common/core/editorColorRegistry.js"),h=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/colorRegistry.js");const v={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"098658"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"098658"},{token:"attribute.value.unit",foreground:"098658"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"C700C7"}],colors:{[h.YtV]:"#FFFFFE",[h.By2]:"#000000",[h.tan]:"#E5EBF1",[C.vV]:"#D3D3D3",[C.H0]:"#939393",[h.QwA]:"#ADD6FF4D"}},p={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground
`)}}}class T{getIcon(he){const ve=(0,P.HT)();let Ce=he.defaults;for(;G.L.isThemeIcon(Ce);){const Pe=ve.getIcon(Ce.id);if(!Pe)return;Ce=Pe.defaults}return Ce}}var E=e("./node_modules/monaco-editor/esm/vs/base/browser/window.js");const W="vs",$="vs-dark",z="hc-black",J="hc-light",B=w.O.as(h.FdG.ColorContribution),V=w.O.as(j.Fd.ThemingContribution);class Y{constructor(he,ve){this.semanticHighlighting=!1,this.themeData=ve;const Ce=ve.base;he.length>0?(X(he)?this.id=he:this.id=Ce+" "+he,this.themeName=he):(this.id=Ce,this.themeName=Ce),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){const he=new Map;for(const ve in this.themeData.colors)he.set(ve,k.Q1.fromHex(this.themeData.colors[ve]));if(this.themeData.inherit){const ve=ie(this.themeData.base);for(const Ce in ve.colors)he.has(Ce)||he.set(Ce,k.Q1.fromHex(ve.colors[Ce]))}this.colors=he}return this.colors}getColor(he,ve){const Ce=this.getColors().get(he);if(Ce)return Ce;if(ve!==!1)return this.getDefault(he)}getDefault(he){let ve=this.defaultColors[he];return ve||(ve=B.resolveDefaultColor(he,this),this.defaultColors[he]=ve,ve)}defines(he){return this.getColors().has(he)}get type(){switch(this.base){case W:return K.zM.LIGHT;case z:return K.zM.HIGH_CONTRAST_DARK;case J:return K.zM.HIGH_CONTRAST_LIGHT;default:return K.zM.DARK}}get tokenTheme(){if(!this._tokenTheme){let he=[],ve=[];if(this.themeData.inherit){const _e=ie(this.themeData.base);he=_e.rules,_e.encodedTokensColors&&(ve=_e.encodedTokensColors)}const Ce=this.themeData.colors["editor.foreground"],Pe=this.themeData.colors["editor.background"];if(Ce||Pe){const _e={token:""};Ce&&(_e.foreground=Ce),Pe&&(_e.background=Pe),he.push(_e)}he=he.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(ve=this.themeData.encodedTokensColors),this._tokenTheme=a.createFromRawTokenTheme(he,ve)}return this._tokenTheme}getTokenStyleMetadata(he,ve,Ce){const _e=this.tokenTheme._match([he].concat(ve).join(".")).metadata,ee=g.x.getForeground(_e),De=g.x.getFontStyle(_e);return{foreground:ee,italic:!!(De&1),bold:!!(De&2),underline:!!(De&4),strikethrough:!!(De&8)}}}function X(D){return D===W||D===$||D===z||D===J}function ie(D){switch(D){case W:return v;case $:return p;case z:return b;case J:return O}}function re(D){const he=ie(D);return new Y(D,he)}class te extends U.jG{constructor(){super(),this._onColorThemeChange=this._register(new M.vl),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new M.vl),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new T,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(W,re(W)),this._knownThemes.set($,re($)),this._knownThemes.set(z,re(z)),this._knownThemes.set(J,re(J));const he=this._register(A(this));this._codiconCSS=he.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}
${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(W),this._onOSSchemeChanged(),this._register(he.onDidChange(()=>{this._codiconCSS=he.getCSS(),this._updateCSS()})),(0,F.Dy)(E.G,"(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(he){return r.Cl(he)?this._registerShadowDomContainer(he):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return this._globalStyleElement||(this._globalStyleElement=r.li(void 0,he=>{he.className="monaco-colors",he.textContent=this._allCSS}),this._styleElements.push(this._globalStyleElement)),U.jG.None}_registerShadowDomContainer(he){const ve=r.li(he,Ce=>{Ce.className="monaco-colors",Ce.textContent=this._allCSS});return this._styleElements.push(ve),{dispose:()=>{for(let Ce=0;Ce<this._styleElements.length;Ce++)if(this._styleElements[Ce]===ve){this._styleElements.splice(Ce,1);return}}}}defineTheme(he,ve){if(!/^[a-z0-9\-]+$/i.test(he))throw new Error("Illegal theme name!");if(!X(ve.base)&&!X(he))throw new Error("Illegal theme base!");this._knownThemes.set(he,new Y(he,ve)),X(he)&&this._knownThemes.forEach(Ce=>{Ce.base===he&&Ce.notifyBaseUpdated()}),this._theme.themeName===he&&this.setTheme(he)}getColorTheme(){return this._theme}setColorMapOverride(he){this._colorMapOverride=he,this._updateThemeOrColorMap()}setTheme(he){let ve;this._knownThemes.has(he)?ve=this._knownThemes.get(he):ve=this._knownThemes.get(W),this._updateActualTheme(ve)}_updateActualTheme(he){!he||this._theme===he||(this._theme=he,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){const he=E.G.matchMedia("(forced-colors: active)").matches;if(he!==(0,K.Bb)(this._theme.type)){let ve;(0,K.HD)(this._theme.type)?ve=he?z:$:ve=he?J:W,this._updateActualTheme(this._knownThemes.get(ve))}}}setAutoDetectHighContrast(he){this._autoDetectHighContrast=he,this._onOSSchemeChanged()}_updateThemeOrColorMap(){const he=[],ve={},Ce={addRule:ee=>{ve[ee]||(he.push(ee),ve[ee]=!0)}};V.getThemingParticipants().forEach(ee=>ee(this._theme,Ce,this._environment));const Pe=[];for(const ee of B.getColors()){const De=this._theme.getColor(ee.id,!0);De&&Pe.push(`${(0,h.Bbc)(ee.id)}: ${De.toString()};`)}Ce.addRule(`.monaco-editor, .monaco-diff-editor, .monaco-component { ${Pe.join(`
`)} }`);const _e=this._colorMapOverride||this._theme.tokenTheme.getColorMap();Ce.addRule(u(_e)),this._themeCSS=he.join(`
`),this._updateCSS(),L.dG.setColorMap(_e),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}
${this._themeCSS}`,this._styleElements.forEach(he=>he.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},"./node_modules/monaco-editor/esm/vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast.js":function(pt,Me,e){var r=e("./node_modules/monaco-editor/esm/vs/editor/browser/editorExtensions.js"),F=e("./node_modules/monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js"),k=e("./node_modules/monaco-editor/esm/vs/editor/common/standaloneStrings.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js"),L=e("./node_modules/monaco-editor/esm/vs/editor/standalone/browser/standaloneThemeService.js");class g extends r.ks{constructor(){super({id:"editor.action.toggleHighContrast",label:k.E6.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(I,S){const f=I.get(F.L),d=f.getColorTheme();(0,M.Bb)(d.type)?(f.setTheme(this._originalThemeName||((0,M.HD)(d.type)?L.po:L.tj)),this._originalThemeName=null):(f.setTheme((0,M.HD)(d.type)?L.aQ:L.nr),this._originalThemeName=d.themeName)}}(0,r.Fl)(g)},"./node_modules/monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js":function(pt,Me,e){e.d(Me,{L:function(){return F}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("themeService")},"./node_modules/monaco-editor/esm/vs/language/css/monaco.contribution.js":function(pt,Me,e){var r=e("include-loader!./node_modules/monaco-editor/esm/vs/editor/editor.api.js");var F=Object.defineProperty,k=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,L=Object.prototype.hasOwnProperty,g=(c,m,u,C)=>{if(m&&typeof m=="object"||typeof m=="function")for(let h of M(m))!L.call(c,h)&&h!==u&&F(c,h,{get:()=>m[h],enumerable:!(C=k(m,h))||C.enumerable});return c},x=(c,m,u)=>(g(c,m,"default"),u&&g(u,m,"default")),I={};x(I,r);var S=class{constructor(c,m,u){this._onDidChange=new I.Emitter,this._languageId=c,this.setOptions(m),this.setModeConfiguration(u)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(c){this._options=c||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(c){this.setOptions(c)}setModeConfiguration(c){this._modeConfiguration=c||Object.create(null),this._onDidChange.fire(this)}},f={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},d={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},a=new S("css",f,d),s=new S("scss",f,d),n=new S("less",f,d);I.languages.css={cssDefaults:a,lessDefaults:n,scssDefaults:s};function i(){return e.e("vendors-node_modules_monaco-editor_esm_vs_language_css_cssMode_js").then(e.bind(e,"./node_modules/monaco-editor/esm/vs/language/css/cssMode.js"))}I.languages.onLanguage("less",()=>{i().then(c=>c.setupMode(n))}),I.languages.onLanguage("scss",()=>{i().then(c=>c.setupMode(s))}),I.languages.onLanguage("css",()=>{i().then(c=>c.setupMode(a))})},"./node_modules/monaco-editor/esm/vs/language/html/monaco.contribution.js":function(pt,Me,e){var r=e("include-loa
[{1}] {2}`,Y,g.Of.modifierLabels[I.OS].altKey,te)}return Y}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(z){this._itemClassDispose.value=void 0;const{element:J,label:B}=this;if(!J||!B)return;const V=this._commandAction.checked&&d(z.toggled)&&z.toggled.icon?z.toggled.icon:z.icon;if(V)if(C.L.isThemeIcon(V)){const Y=C.L.asClassNameArray(V);B.classList.add(...Y),this._itemClassDispose.value=(0,x.s)(()=>{B.classList.remove(...Y)})}else B.style.backgroundImage=(0,h.HD)(this._themeService.getColorTheme().type)?(0,r.Tf)(V.dark):(0,r.Tf)(V.light),B.classList.add("icon"),this._itemClassDispose.value=(0,x.qE)((0,x.s)(()=>{B.style.backgroundImage="",B.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}};P=w([j(2,i.b),j(3,c.Ot),j(4,a.fN),j(5,u.Gy),j(6,s.Z),j(7,O.j)],P);let A=class extends M.d{constructor(z,J,B,V,Y){var X,ie,re;const te={...J,menuAsChild:(X=J?.menuAsChild)!==null&&X!==void 0?X:!1,classNames:(ie=J?.classNames)!==null&&ie!==void 0?ie:C.L.isThemeIcon(z.item.icon)?C.L.asClassName(z.item.icon):void 0,keybindingProvider:(re=J?.keybindingProvider)!==null&&re!==void 0?re:D=>B.lookupKeybinding(D.id)};super(z,{getActions:()=>z.actions},V,te),this._keybindingService=B,this._contextMenuService=V,this._themeService=Y}render(z){super.render(z),(0,v.j)(this.element),z.classList.add("menu-entry");const J=this._action,{icon:B}=J.item;if(B&&!C.L.isThemeIcon(B)){this.element.classList.add("icon");const V=()=>{this.element&&(this.element.style.backgroundImage=(0,h.HD)(this._themeService.getColorTheme().type)?(0,r.Tf)(B.dark):(0,r.Tf)(B.light))};V(),this._register(this._themeService.onDidColorThemeChange(()=>{V()}))}}};A=w([j(2,i.b),j(3,s.Z),j(4,u.Gy)],A);let T=class extends k.EH{constructor(z,J,B,V,Y,X,ie,re){var te,D,he;super(null,z),this._keybindingService=B,this._notificationService=V,this._contextMenuService=Y,this._menuService=X,this._instaService=ie,this._storageService=re,this._container=null,this._options=J,this._storageKey=`${z.item.submenu.id}_lastActionId`;let ve;const Ce=J?.persistLastActionId?re.get(this._storageKey,1):void 0;Ce&&(ve=z.actions.find(_e=>Ce===_e.id)),ve||(ve=z.actions[0]),this._defaultAction=this._instaService.createInstance(P,ve,{keybinding:this._getDefaultActionKeybindingLabel(ve)});const Pe={keybindingProvider:_e=>this._keybindingService.lookupKeybinding(_e.id),...J,menuAsChild:(te=J?.menuAsChild)!==null&&te!==void 0?te:!0,classNames:(D=J?.classNames)!==null&&D!==void 0?D:["codicon","codicon-chevron-down"],actionRunner:(he=J?.actionRunner)!==null&&he!==void 0?he:new L.LN};this._dropdown=new M.d(z,z.actions,this._contextMenuService,Pe),this._register(this._dropdown.actionRunner.onDidRun(_e=>{_e.action instanceof f.Xe&&this.update(_e.action)}))}update(z){var J;!((J=this._options)===null||J===void 0)&&J.persistLastActionId&&this._storageService.store(this._storageKey,z.id,1,1),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(P,z,{keybinding:this._getDefaultActionKeybindingLabel(z)}),this._defaultAction.actionRunner=new class extends L.LN{async runAction(B,V){await B.run(void 0)}},this._container&&this._defaultAction.render((0,r.Hs)(this._container,(0,r.$)(".action-container")))}_getDefaultActionKeybindingLabel(z){var J;let B;if(!((J=this._options)===null||J===void 0)&&J.renderKeybindingWithDefaultActionLabel){const V=this._keybindingService.lookupKeybinding(z.id);V&&(B=`(${V.getLabel()})`)}return B}setActionContext(z){super.setActionContext(z),this._defaultAction.setActionContext(z),this._dropdown.setActionContext(z)}render(z){this._container=z,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");const J=(0,r.$)(".action-container");this._defaultAction.render((0,r.BC)(this._container,J)),this._register((0,r.ko)(J,r.Bx.KEY_DOWN,V=>{const Y=new F.Z(V);Y.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.f
| KEY '=~' REGEX
| KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const ee=this._peek();switch(ee.type){case 17:case 18:return this._advance(),ee.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(ee){return ee.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(ee){return this._check(ee)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(ee,De){if(this._check(ee))return this._advance();throw this._errExpectedButGot(De,this._peek())}_errExpectedButGot(ee,De,Te){const He=(0,M.kg)("contextkey.parser.error.expectedButGot",`Expected: {0}
Received: '{1}'.`,ee,I.getLexeme(De)),qe=De.offset,Qe=I.getLexeme(De);return this._parsingErrors.push({message:He,offset:qe,lexeme:Qe,additionalInfo:Te}),v._parseError}_check(ee){return this._peek().type===ee}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}}v._parseError=new Error;class p{static false(){return w.INSTANCE}static true(){return j.INSTANCE}static has(ee){return U.create(ee)}static equals(ee,De){return K.create(ee,De)}static notEquals(ee,De){return A.create(ee,De)}static regex(ee,De){return B.create(ee,De)}static in(ee,De){return G.create(ee,De)}static notIn(ee,De){return P.create(ee,De)}static not(ee){return T.create(ee)}static and(...ee){return X.create(ee,null,!0)}static or(...ee){return ie.create(ee,null,!0)}static deserialize(ee){return ee==null?void 0:this._parser.parse(ee)}}p._parser=new v({regexParsingWithErrorRecovery:!1});function b(_e,ee){const De=_e?_e.substituteConstants():void 0,Te=ee?ee.substituteConstants():void 0;return!De&&!Te?!0:!De||!Te?!1:De.equals(Te)}function O(_e,ee){return _e.cmp(ee)}class w{constructor(){this.type=0}cmp(ee){return this.type-ee.type}equals(ee){return ee.type===this.type}substituteConstants(){return this}evaluate(ee){return!1}serialize(){return"false"}keys(){return[]}negate(){return j.INSTANCE}}w.INSTANCE=new w;class j{constructor(){this.type=1}cmp(ee){return this.type-ee.type}equals(ee){return ee.type===this.type}substituteConstants(){return this}evaluate(ee){return!0}serialize(){return"true"}keys(){return[]}negate(){return w.INSTANCE}}j.INSTANCE=new j;class U{static create(ee,De=null){const Te=f.get(ee);return typeof Te=="boolean"?Te?j.INSTANCE:w.INSTANCE:new U(ee,De)}constructor(ee,De){this.key=ee,this.negated=De,this.type=2}cmp(ee){return ee.type!==this.type?this.type-ee.type:D(this.key,ee.key)}equals(ee){return ee.type===this.type?this.key===ee.key:!1}substituteConstants(){const ee=f.get(this.key);return typeof ee=="boolean"?ee?j.INSTANCE:w.INSTANCE:this}evaluate(ee){return!!ee.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=T.create(this.key,this)),this.negated}}class K{static create(ee,De,Te=null){if(typeof De=="boolean")return De?U.create(ee,Te):T.create(ee,Te);const He=f.get(ee);return typeof He=="boolean"?De===(He?"true":"false")?j.INSTANCE:w.INSTANCE:new K(ee,De,Te)}constructor(ee,De,Te){this.key=ee,this.value=De,this.negated=Te,this.type=4}cmp(ee){return ee.type!==this.type?this.type-ee.type:he(this.key,this.value,ee.key,ee.value)}equals(ee){return ee.type===this.type?this.key===ee.key&&this.value===ee.value:!1}substituteConstants(){const ee=f.get(this.key);if(typeof ee=="boolean"){const De=ee?"true":"false";return this.value===De?j.INSTANCE:w.INSTANCE}return this}evaluate(ee){return ee.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=A.create(this.key,this.value,this)),this.negated}}class G{static create(ee,De){return new G(ee,De)}constructor(ee,De){this.key=ee,this.valueKey=De,this.type=10,this.negated=null}cmp(ee){return ee.type!==this.type?this.type-ee.type:he(this.key,this.valueKey,ee.key,ee.valueKey)}equals(ee){return ee.type===this.type?this.key===ee.key&&this.valueKey===ee.valueKey:!1}substituteConstants(){return this}evaluate(ee){const De=ee.getValue(this.valueKey),Te=ee.getValue(this.key);return Array.isArray(De)?De.includes(Te):typeof Te=="string"&&typeof De=="object"&&De!==null?d.call(De,Te):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=P.create(this.key,this.valueKey)),this.negated}}class P{static create(ee,De){return new P(ee,De)}constructor(ee,De){this.key=ee,this.valueKey=De,this.type=11,this._negated=G.create(ee,De)}cmp(ee){return ee.type!==this.type?this.type-ee.type:this._negated.cmp(ee._negated)}equals(ee){return ee.type===this.type?this._negated.equals(ee._negated):!1}substituteConstants(){return this}evaluate(ee){return!this._negated.evaluate(
top: ${this.virtualDelegate.headerRowHeight+1}px;
height: calc(100% - ${this.virtualDelegate.headerRowHeight}px);
}`),this.styleElement.textContent=st.join(`
`),this.list.style(xe)}getSelectedElements(){return this.list.getSelectedElements()}getSelection(){return this.list.getSelection()}getFocus(){return this.list.getFocus()}dispose(){this.disposables.dispose()}}m.InstanceCount=0;var u=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/abstractTree.js"),C=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/list/listView.js"),h=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/indexTreeModel.js"),v=e("./node_modules/monaco-editor/esm/vs/base/browser/ui/tree/tree.js"),p=e("./node_modules/monaco-editor/esm/vs/base/common/iterator.js");class b{constructor(xe,st,Wt={}){this.user=xe,this.rootRef=null,this.nodes=new Map,this.nodesByIdentity=new Map,this.model=new h.G6(xe,st,null,Wt),this.onDidSplice=this.model.onDidSplice,this.onDidChangeCollapseState=this.model.onDidChangeCollapseState,this.onDidChangeRenderNodeCount=this.model.onDidChangeRenderNodeCount,Wt.sorter&&(this.sorter={compare(rn,hn){return Wt.sorter.compare(rn.element,hn.element)}}),this.identityProvider=Wt.identityProvider}setChildren(xe,st=p.f.empty(),Wt={}){const rn=this.getElementLocation(xe);this._setChildren(rn,this.preserveCollapseState(st),Wt)}_setChildren(xe,st=p.f.empty(),Wt){const rn=new Set,hn=new Set,Dn=Bn=>{var oi;if(Bn.element===null)return;const $n=Bn;if(rn.add($n.element),this.nodes.set($n.element,$n),this.identityProvider){const ti=this.identityProvider.getId($n.element).toString();hn.add(ti),this.nodesByIdentity.set(ti,$n)}(oi=Wt.onDidCreateNode)===null||oi===void 0||oi.call(Wt,$n)},On=Bn=>{var oi;if(Bn.element===null)return;const $n=Bn;if(rn.has($n.element)||this.nodes.delete($n.element),this.identityProvider){const ti=this.identityProvider.getId($n.element).toString();hn.has(ti)||this.nodesByIdentity.delete(ti)}(oi=Wt.onDidDeleteNode)===null||oi===void 0||oi.call(Wt,$n)};this.model.splice([...xe,0],Number.MAX_VALUE,st,{...Wt,onDidCreateNode:Dn,onDidDeleteNode:On})}preserveCollapseState(xe=p.f.empty()){return this.sorter&&(xe=[...xe].sort(this.sorter.compare.bind(this.sorter))),p.f.map(xe,st=>{let Wt=this.nodes.get(st.element);if(!Wt&&this.identityProvider){const Dn=this.identityProvider.getId(st.element).toString();Wt=this.nodesByIdentity.get(Dn)}if(!Wt){let Dn;return typeof st.collapsed>"u"?Dn=void 0:st.collapsed===v.Yo.Collapsed||st.collapsed===v.Yo.PreserveOrCollapsed?Dn=!0:st.collapsed===v.Yo.Expanded||st.collapsed===v.Yo.PreserveOrExpanded?Dn=!1:Dn=!!st.collapsed,{...st,children:this.preserveCollapseState(st.children),collapsed:Dn}}const rn=typeof st.collapsible=="boolean"?st.collapsible:Wt.collapsible;let hn;return typeof st.collapsed>"u"||st.collapsed===v.Yo.PreserveOrCollapsed||st.collapsed===v.Yo.PreserveOrExpanded?hn=Wt.collapsed:st.collapsed===v.Yo.Collapsed?hn=!0:st.collapsed===v.Yo.Expanded?hn=!1:hn=!!st.collapsed,{...st,collapsible:rn,collapsed:hn,children:this.preserveCollapseState(st.children)}})}rerender(xe){const st=this.getElementLocation(xe);this.model.rerender(st)}getFirstElementChild(xe=null){const st=this.getElementLocation(xe);return this.model.getFirstElementChild(st)}has(xe){return this.nodes.has(xe)}getListIndex(xe){const st=this.getElementLocation(xe);return this.model.getListIndex(st)}getListRenderCount(xe){const st=this.getElementLocation(xe);return this.model.getListRenderCount(st)}isCollapsible(xe){const st=this.getElementLocation(xe);return this.model.isCollapsible(st)}setCollapsible(xe,st){const Wt=this.getElementLocation(xe);return this.model.setCollapsible(Wt,st)}isCollapsed(xe){const st=this.getElementLocation(xe);return this.model.isCollapsed(st)}setCollapsed(xe,st,Wt){const rn=this.getElementLocation(xe);return this.model.setCollapsed(rn,st,Wt)}expandTo(xe){const st=this.getElementLocation(xe);this.model.expandTo(st)}refilter(){this.model.refilter()}getNode(xe=null){if(xe===null)return this.model.getNode(this.model.rootRef);const st=this.nodes.get(xe);if(!st)throw new v.jh(this.user,`Tree element not found: ${xe}`);return st}getNodeLocation(xe){return xe.element}getParentNodeLocation(xe){if(xe===null)throw new v.jh(this.user,"Invalid getP
`)}}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,
`)}}const i=new n;f.O.add(d.IconContribution,i);function c(U,K,G,P){return i.registerIcon(U,K,G,P)}function m(){return i}function u(){const U=(0,k.J)();for(const K in U){const G="\\"+U[K].toString(16);i.registerIcon(K,{fontCharacter:G})}}u();const C="vscode://schemas/icons",h=f.O.as(S.F.JSONContribution);h.registerSchema(C,i.getIconSchema());const v=new r.uC(()=>h.notifySchemaChanged(C),200);i.onDidChange(()=>{v.isScheduled()||v.schedule()});const p=c("widget-close",F.W.close,(0,I.kg)("widgetClose","Icon for the close action in widgets.")),b=c("goto-previous-location",F.W.arrowUp,(0,I.kg)("previousChangeIcon","Icon for goto previous editor location.")),O=c("goto-next-location",F.W.arrowDown,(0,I.kg)("nextChangeIcon","Icon for goto next editor location.")),w=M.L.modify(F.W.sync,"spin"),j=M.L.modify(F.W.loading,"spin")},"./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js":function(pt,Me,e){e.d(Me,{Bb:function(){return F},HD:function(){return k},zM:function(){return r}});var r;(function(M){M.DARK="dark",M.LIGHT="light",M.HIGH_CONTRAST_DARK="hcDark",M.HIGH_CONTRAST_LIGHT="hcLight"})(r||(r={}));function F(M){return M===r.HIGH_CONTRAST_DARK||M===r.HIGH_CONTRAST_LIGHT}function k(M){return M===r.DARK||M===r.HIGH_CONTRAST_DARK}},"./node_modules/monaco-editor/esm/vs/platform/theme/common/themeService.js":function(pt,Me,e){e.d(Me,{Fd:function(){return S},Gy:function(){return g},Pz:function(){return I},Yf:function(){return x},lR:function(){return s},zy:function(){return a}});var r=e("./node_modules/monaco-editor/esm/vs/base/common/event.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js"),k=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js"),M=e("./node_modules/monaco-editor/esm/vs/platform/registry/common/platform.js"),L=e("./node_modules/monaco-editor/esm/vs/platform/theme/common/theme.js");const g=(0,k.u1)("themeService");function x(n){return{id:n}}function I(n){switch(n){case L.zM.DARK:return"vs-dark";case L.zM.HIGH_CONTRAST_DARK:return"hc-black";case L.zM.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}const S={ThemingContribution:"base.contributions.theming"};class f{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new r.vl}onColorThemeChange(i){return this.themingParticipants.push(i),this.onThemingParticipantAddedEmitter.fire(i),(0,F.s)(()=>{const c=this.themingParticipants.indexOf(i);this.themingParticipants.splice(c,1)})}getThemingParticipants(){return this.themingParticipants}}const d=new f;M.O.add(S.ThemingContribution,d);function a(n){return d.onColorThemeChange(n)}class s extends F.jG{constructor(i){super(),this.themeService=i,this.theme=i.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(c=>this.onThemeChange(c)))}onThemeChange(i){this.theme=i,this.updateStyles()}updateStyles(){}}},"./node_modules/monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js":function(pt,Me,e){e.d(Me,{$D:function(){return F},I_:function(){return M},To:function(){return k},Ym:function(){return L}});var r=e("./node_modules/monaco-editor/esm/vs/platform/instantiation/common/instantiation.js");const F=(0,r.u1)("undoRedoService");class k{constructor(x,I){this.resource=x,this.elements=I}}class M{constructor(){this.id=M._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}M._ID=0,M.None=new M;class L{constructor(){this.id=L._ID++,this.order=1}nextOrder(){return this.id===0?0:this.order++}}L._ID=0,L.None=new L},"./node_modules/monaco-editor/esm/vs/platform/workspace/common/workspace.js":function(pt,Me,e){e.d(Me,{A7:function(){return I},Q_:function(){return d},VR:function(){return g},cn:function(){return m},ct:function(){return u},jB:function(){return x},kF:function(){return i},mX:function(){return n}});var r=e("./node_modules/monaco-editor/esm/vs/nls.js"),F=e("./node_modules/monaco-editor/esm/vs/base/common/path.js"),k=e("./node_modules/monaco-editor/esm/vs/base/common/ternarySearchTree.js"),M=e("./node_modules/monaco-editor/esm/vs/base/common/uri.js"),L=e("./node_modules/mon