MCPcopy Create free account
hub / github.com/DustinBrett/daedalOS / string

Method string

public/Program Files/MonacoEditor/vs/editor/editor.main.js:543–543  ·  view source on GitHub ↗
(de,fe)

Source from the content-addressed store, hash-verified

541`);P!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=P)}}}e.QuickInputController=E,E.MAX_WIDTH=600}),define(te[497],ie([5,6]),function(j,e){return j.create("vs/editor/browser/controller/coreCommands",e)}),define(te[498],ie([5,6]),function(j,e){return j.create("vs/editor/browser/controller/textAreaHandler",e)}),define(te[499],ie([5,6]),function(j,e){return j.create("vs/editor/browser/editorExtensions",e)}),define(te[500],ie([5,6]),function(j,e){return j.create("vs/editor/browser/widget/codeEditorWidget",e)}),define(te[501],ie([5,6]),function(j,e){return j.create("vs/editor/browser/widget/diffEditorWidget",e)}),define(te[502],ie([5,6]),function(j,e){return j.create("vs/editor/browser/widget/diffReview",e)}),define(te[503],ie([5,6]),function(j,e){return j.create("vs/editor/browser/widget/inlineDiffMargin",e)}),define(te[504],ie([1,0,503,7,44,2,3,27]),function(j,e,y,m,D,I,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InlineDiffMargin=void 0;class p extends I.Disposable{constructor(g,t,i,n,l,c){super();this._viewZoneId=g,this._marginDomNode=t,this.editor=i,this.diff=n,this._contextMenuService=l,this._clipboardService=c,this._visibility=!1,this._marginDomNode.style.zIndex="10",this._diffActions=document.createElement("div"),this._diffActions.className=b.Codicon.lightBulb.classNames+" lightbulb-glyph",this._diffActions.style.position="absolute";const r=i.getOption(59),s=i.getModel().getEOL();this._diffActions.style.right="0px",this._diffActions.style.visibility="hidden",this._diffActions.style.height=`${r}px`,this._diffActions.style.lineHeight=`${r}px`,this._marginDomNode.appendChild(this._diffActions);const o=[],a=n.modifiedEndLineNumber===0;o.push(new D.Action("diff.clipboard.copyDeletedContent",a?n.originalEndLineNumber>n.modifiedStartLineNumber?y.localize(0,null):y.localize(1,null):n.originalEndLineNumber>n.modifiedStartLineNumber?y.localize(2,null):y.localize(3,null),void 0,!0,()=>ye(this,void 0,void 0,function*(){const v=new w.Range(n.originalStartLineNumber,1,n.originalEndLineNumber+1,1),C=n.originalModel.getValueInRange(v);yield this._clipboardService.writeText(C)})));let d=0,u;n.originalEndLineNumber>n.modifiedStartLineNumber&&(u=new D.Action("diff.clipboard.copyDeletedLineContent",a?y.localize(4,null,n.originalStartLineNumber):y.localize(5,null,n.originalStartLineNumber),void 0,!0,()=>ye(this,void 0,void 0,function*(){const v=n.originalModel.getLineContent(n.originalStartLineNumber+d);if(v===""){const C=n.originalModel.getEndOfLineSequence();yield this._clipboardService.writeText(C===0?`
542`:`\r
543`)}else yield this._clipboardService.writeText(v)})),o.push(u)),i.getOption(81)||o.push(new D.Action("diff.inline.revertChange",y.localize(6,null),void 0,!0,()=>ye(this,void 0,void 0,function*(){const v=new w.Range(n.originalStartLineNumber,1,n.originalEndLineNumber,n.originalModel.getLineMaxColumn(n.originalEndLineNumber)),C=n.originalModel.getValueInRange(v);if(n.modifiedEndLineNumber===0){const _=i.getModel().getLineMaxColumn(n.modifiedStartLineNumber);i.executeEdits("diffEditor",[{range:new w.Range(n.modifiedStartLineNumber,_,n.modifiedStartLineNumber,_),text:s+C}])}else{const _=i.getModel().getLineMaxColumn(n.modifiedEndLineNumber);i.executeEdits("diffEditor",[{range:new w.Range(n.modifiedStartLineNumber,1,n.modifiedEndLineNumber,_),text:C}])}})));const S=(v,C)=>{this._contextMenuService.showContextMenu({getAnchor:()=>({x:v,y:C}),getActions:()=>(u&&(u.label=a?y.localize(7,null,n.originalStartLineNumber+d):y.localize(8,null,n.originalStartLineNumber+d)),o),autoSelectFirstItem:!0})};this._register(m.addStandardDisposableListener(this._diffActions,"mousedown",v=>{const{top:C,height:_}=m.getDomNodePagePosition(this._diffActions),L=Math.floor(r/3);v.preventDefault(),S(v.posx,C+_+L)})),this._register(i.onMouseMove(v=>{v.target.type===8||v.target.type===5?v.target.detail.viewZoneId===this._viewZoneId?(this.visibility=!0,d=this._updateLightBulbPosition(this._marginDomNode,v.event.browserEvent.y,r)):this.visibility=!1:this.visibility=!1})),this._register(i.onMouseDown(v=>{!v.event.rightButton||(v.target.type===8||v.target.type===5)&&v.target.detail.viewZoneId===this._viewZoneId&&(v.event.preventDefault(),d=this._updateLightBulbPosition(this._marginDomNode,v.event.browserEvent.y,r),S(v.event.posx,v.event.posy+r))}))}get visibility(){return this._visibility}set visibility(g){this._visibility!==g&&(this._visibility=g,g?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")}_updateLightBulbPosition(g,t,i){const{top:n}=m.getDomNodePagePosition(g),l=t-n,c=Math.floor(l/i),r=c*i;if(this._diffActions.style.top=`${r}px`,this.diff.viewLineCounts){let s=0;for(let o=0;o<this.diff.viewLineCounts.length;o++)if(s+=this.diff.viewLineCounts[o],c<s)return o}return c}}e.InlineDiffMargin=p}),define(te[505],ie([5,6]),function(j,e){return j.create("vs/editor/common/config/editorConfigurationSchema",e)}),define(te[506],ie([5,6]),function(j,e){return j.create("vs/editor/common/config/editorOptions",e)}),define(te[31],ie([1,0,506,17,146,19,39,145]),function(j,e,y,m,D,I,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorOptions=e.editorOptionsRegistry=e.EDITOR_FONT_DEFAULTS=e.unicodeHighlightConfigKeys=e.inUntrustedWorkspace=e.filterValidationDecorations=e.EditorLayoutInfoComputer=e.EditorFontLigatures=e.TextEditorCursorStyle=e.stringSet=e.clampedInt=e.boolean=e.ApplyUpdateResult=e.ComputeOptionsMemory=e.ConfigurationChangedEvent=e.MINIMAP_GUTTER_WIDTH=void 0,e.MINIMAP_GUTTER_WIDTH=8;class p{constructor(de){this._values=de}hasChanged(de){return this._values[de]}}e.ConfigurationChangedEvent=p;class h{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}e.ComputeOptionsMemory=h;class g{constructor(de,fe,_e,Le){this.id=de,this.name=fe,this.defaultValue=_e,this.schema=Le}applyUpdate(de,fe){return i(de,fe)}compute(de,fe,_e){return _e}}class t{constructor(de,fe){this.newValue=de,this.didChange=fe}}e.ApplyUpdateResult=t;function i(be,de){if(typeof be!="object"||typeof de!="object"||!be||!de)return new t(de,be!==de);if(Array.isArray(be)||Array.isArray(de)){const _e=Array.isArray(be)&&Array.isArray(de)&&I.equals(be,de);return new t(de,_e)}let fe=!1;for(const _e in de)if(de.hasOwnProperty(_e)){const Le=i(be[_e],de[_e]);Le.didChange&&(be[_e]=Le.newValue,fe=!0)}return new t(be,fe)}class n{constructor(de){this.schema=void 0,this.id=de,this.name="_never_",this.defaultValue=void 0}applyUpdate(de,fe){return i(de,fe)}validate(de){return this.defaultValue}}class l{constructor(de,fe,_e,Le){this.id=de,this.name=fe,this.defaultValue=_e,this.schema=Le}applyUpdate(de,fe){return i(de,fe)}validate(de){return typeof de=="undefined"?this.defaultValue:de}compute(de,fe,_e){return _e}}function c(be,de){return typeof be=="undefined"?de:be==="false"?!1:Boolean(be)}e.boolean=c;class r extends l{constructor(de,fe,_e,Le=void 0){typeof Le!="undefined"&&(Le.type="boolean",Le.default=_e);super(de,fe,_e,Le)}validate(de){return c(de,this.defaultValue)}}function s(be,de,fe,_e){if(typeof be=="undefined")return de;let Le=parseInt(be,10);return isNaN(Le)?de:(Le=Math.max(fe,Le),Le=Math.min(_e,Le),Le|0)}e.clampedInt=s;class o extends l{constructor(de,fe,_e,Le,Te,ke=void 0){typeof ke!="undefined"&&(ke.type="integer",ke.default=_e,ke.minimum=Le,ke.maximum=Te);super(de,fe,_e,ke);this.minimum=Le,this.maximum=Te}static clampedInt(de,fe,_e,Le){return s(de,fe,_e,Le)}validate(de){return o.clampedInt(de,this.defaultValue,this.minimum,this.maximum)}}class a extends l{constructor(de,fe,_e,Le,Te){typeof Te!="undefined"&&(Te.type="number",Te.default=_e);super(de,fe,_e,Te);this.validationFn=Le}static clamp(de,fe,_e){return de<fe?fe:de>_e?_e:de}static float(de,fe){if(typeof de=="number")return de;if(typeof de=="undefined")return fe;const _e=parseFloat(de);return isNaN(_e)?fe:_e}validate(de){return this.validationFn(a.float(de,this.defaultValue))}}class d extends l{static string(de,fe){return typeof de!="string"?fe:de}constructor(de,fe,_e,Le=void 0){typeof Le!="undefined"&&(Le.type="string",Le.default=_e);super(de,fe,_e,Le)}validate(de){return d.string(de,this.defaultValue)}}function u(be,de,fe){return typeof be!="string"||fe.indexOf(be)===-1?de:be}e.stringSet=u;class f extends l{constructor(de,fe,_e,Le,Te=void 0){typeof Te!="undefined"&&(Te.type="string",Te.enum=Le,Te.default=_e);super(de,fe,_e,Te);this._allowedValues=Le}validate(de){return u(de,this.defaultValue,this._allowedValues)}}class S extends g{constructor(de,fe,_e,Le,Te,ke,Me=void 0){typeof Me!="undefined"&&(Me.type="string",Me.enum=Te,Me.default=Le);super(de,fe,_e,Me);this._allowedValues=Te,this._convert=ke}validate(de){return typeof de!="string"?this.defaultValue:this._allowedValues.indexOf(de)===-1?this.defaultValue:this._convert(de)}}function v(be){switch(be){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class C extends g{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[y.localize(0,null),y.localize(1,null),y.localize(2,null)],default:"auto",description:y.localize(3,null)})}validate(de){switch(de){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(de,fe,_e){return _e===0?de.accessibilitySupport:_e}}class _ extends g{constructor(){const de={insertSpace:!0,ignoreEmptyLines:!0};super(19,"comments",de,{"editor.comments.insertSpace":{type:"boolean",default:de.insertSpace,description:y.localize(4,null)},"editor.comments.ignoreEmptyLines":{type:"boolean",default:de.ignoreEmptyLines,description:y.localize(5,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{insertSpace:c(fe.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:c(fe.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function L(be){switch(be){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var E;(function(be){be[be.Line=1]="Line",be[be.Block=2]="Block",be[be.Underline=3]="Underline",be[be.LineThin=4]="LineThin",be[be.BlockOutline=5]="BlockOutline",be[be.UnderlineThin=6]="UnderlineThin"})(E=e.TextEditorCursorStyle||(e.TextEditorCursorStyle={}));function N(be){switch(be){case"line":return E.Line;case"block":return E.Block;case"underline":return E.Underline;case"line-thin":return E.LineThin;case"block-outline":return E.BlockOutline;case"underline-thin":return E.UnderlineThin}}class k extends n{constructor(){super(128)}compute(de,fe,_e){const Le=["monaco-editor"];return fe.get(33)&&Le.push(fe.get(33)),de.extraEditorClassName&&Le.push(de.extraEditorClassName),fe.get(66)==="default"?Le.push("mouse-default"):fe.get(66)==="copy"&&Le.push("mouse-copy"),fe.get(100)&&Le.push("showUnused"),fe.get(126)&&Le.push("showDeprecated"),Le.join(" ")}}class M extends r{constructor(){super(32,"emptySelectionClipboard",!0,{description:y.localize(6,null)})}compute(de,fe,_e){return _e&&de.emptySelectionClipboard}}class O extends g{constructor(){const de={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(35,"find",de,{"editor.find.cursorMoveOnType":{type:"boolean",default:de.cursorMoveOnType,description:y.localize(7,null)},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:de.seedSearchStringFromSelection,enumDescriptions:[y.localize(8,null),y.localize(9,null),y.localize(10,null)],description:y.localize(11,null)},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:de.autoFindInSelection,enumDescriptions:[y.localize(12,null),y.localize(13,null),y.localize(14,null)],description:y.localize(15,null)},"editor.find.globalFindClipboard":{type:"boolean",default:de.globalFindClipboard,description:y.localize(16,null),included:m.isMacintosh},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:de.addExtraSpaceOnTop,description:y.localize(17,null)},"editor.find.loop":{type:"boolean",default:de.loop,description:y.localize(18,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{cursorMoveOnType:c(fe.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof de.seedSearchStringFromSelection=="boolean"?de.seedSearchStringFromSelection?"always":"never":u(fe.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof de.autoFindInSelection=="boolean"?de.autoFindInSelection?"always":"never":u(fe.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:c(fe.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:c(fe.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:c(fe.loop,this.defaultValue.loop)}}}class B extends g{constructor(){super(45,"fontLigatures",B.OFF,{anyOf:[{type:"boolean",description:y.localize(19,null)},{type:"string",description:y.localize(20,null)}],description:y.localize(21,null),default:!1})}validate(de){return typeof de=="undefined"?this.defaultValue:typeof de=="string"?de==="false"?B.OFF:de==="true"?B.ON:de:Boolean(de)?B.ON:B.OFF}}e.EditorFontLigatures=B,B.OFF='"liga" off, "calt" off',B.ON='"liga" on, "calt" on';class T extends n{constructor(){super(44)}compute(de,fe,_e){return de.fontInfo}}class R extends l{constructor(){super(46,"fontSize",e.EDITOR_FONT_DEFAULTS.fontSize,{type:"number",minimum:6,maximum:100,default:e.EDITOR_FONT_DEFAULTS.fontSize,description:y.localize(22,null)})}validate(de){const fe=a.float(de,this.defaultValue);return fe===0?e.EDITOR_FONT_DEFAULTS.fontSize:a.clamp(fe,6,100)}compute(de,fe,_e){return de.fontInfo.fontSize}}class P extends g{constructor(){super(47,"fontWeight",e.EDITOR_FONT_DEFAULTS.fontWeight,{anyOf:[{type:"number",minimum:P.MINIMUM_VALUE,maximum:P.MAXIMUM_VALUE,errorMessage:y.localize(23,null)},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:P.SUGGESTION_VALUES}],default:e.EDITOR_FONT_DEFAULTS.fontWeight,description:y.localize(24,null)})}validate(de){return de==="normal"||de==="bold"?de:String(o.clampedInt(de,e.EDITOR_FONT_DEFAULTS.fontWeight,P.MINIMUM_VALUE,P.MAXIMUM_VALUE))}}P.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],P.MINIMUM_VALUE=1,P.MAXIMUM_VALUE=1e3;class F extends g{constructor(){const de={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},fe={type:"string",enum:["peek","gotoAndPeek","goto"],default:de.multiple,enumDescriptions:[y.localize(25,null),y.localize(26,null),y.localize(27,null)]},_e=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(51,"gotoLocation",de,{"editor.gotoLocation.multiple":{deprecationMessage:y.localize(28,null)},"editor.gotoLocation.multipleDefinitions":Object.assign({description:y.localize(29,null)},fe),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:y.localize(30,null)},fe),"editor.gotoLocation.multipleDeclarations":Object.assign({description:y.localize(31,null)},fe),"editor.gotoLocation.multipleImplementations":Object.assign({description:y.localize(32,null)},fe),"editor.gotoLocation.multipleReferences":Object.assign({description:y.localize(33,null)},fe),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:de.alternativeDefinitionCommand,enum:_e,description:y.localize(34,null)},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:de.alternativeTypeDefinitionCommand,enum:_e,description:y.localize(35,null)},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:de.alternativeDeclarationCommand,enum:_e,description:y.localize(36,null)},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:de.alternativeImplementationCommand,enum:_e,description:y.localize(37,null)},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:de.alternativeReferenceCommand,enum:_e,description:y.localize(38,null)}})}validate(de){var fe,_e,Le,Te,ke;if(!de||typeof de!="object")return this.defaultValue;const Me=de;return{multiple:u(Me.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(fe=Me.multipleDefinitions)!==null&&fe!==void 0?fe:u(Me.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(_e=Me.multipleTypeDefinitions)!==null&&_e!==void 0?_e:u(Me.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Le=Me.multipleDeclarations)!==null&&Le!==void 0?Le:u(Me.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(Te=Me.multipleImplementations)!==null&&Te!==void 0?Te:u(Me.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(ke=Me.multipleReferences)!==null&&ke!==void 0?ke:u(Me.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:d.string(Me.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:d.string(Me.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:d.string(Me.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:d.string(Me.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:d.string(Me.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class W extends g{constructor(){const de={enabled:!0,delay:300,sticky:!0,above:!0};super(53,"hover",de,{"editor.hover.enabled":{type:"boolean",default:de.enabled,description:y.localize(39,null)},"editor.hover.delay":{type:"number",default:de.delay,minimum:0,maximum:1e4,description:y.localize(40,null)},"editor.hover.sticky":{type:"boolean",default:de.sticky,description:y.localize(41,null)},"editor.hover.above":{type:"boolean",default:de.above,description:y.localize(42,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{enabled:c(fe.enabled,this.defaultValue.enabled),delay:o.clampedInt(fe.delay,this.defaultValue.delay,0,1e4),sticky:c(fe.sticky,this.defaultValue.sticky),above:c(fe.above,this.defaultValue.above)}}}class A extends n{constructor(){super(131)}compute(de,fe,_e){return A.computeLayout(fe,{memory:de.memory,outerWidth:de.outerWidth,outerHeight:de.outerHeight,isDominatedByLongLines:de.isDominatedByLongLines,lineHeight:de.fontInfo.lineHeight,viewLineCount:de.viewLineCount,lineNumbersDigitCount:de.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:de.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:de.fontInfo.maxDigitWidth,pixelRatio:de.pixelRatio})}static computeContainedMinimapLineCount(de){const fe=de.height/de.lineHeight,_e=de.scrollBeyondLastLine?fe-1:0,Le=(de.viewLineCount+_e)/(de.pixelRatio*de.height),Te=Math.floor(de.viewLineCount/Le);return{typicalViewportLineCount:fe,extraLinesBeyondLastLine:_e,desiredRatio:Le,minimapLineCount:Te}}static _computeMinimapLayout(de,fe){const _e=de.outerWidth,Le=de.outerHeight,Te=de.pixelRatio;if(!de.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(Te*Le),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:Le};const ke=fe.stableMinimapLayoutInput,Me=ke&&de.outerHeight===ke.outerHeight&&de.lineHeight===ke.lineHeight&&de.typicalHalfwidthCharacterWidth===ke.typicalHalfwidthCharacterWidth&&de.pixelRatio===ke.pixelRatio&&de.scrollBeyondLastLine===ke.scrollBeyondLastLine&&de.minimap.enabled===ke.minimap.enabled&&de.minimap.side===ke.minimap.side&&de.minimap.size===ke.minimap.size&&de.minimap.showSlider===ke.minimap.showSlider&&de.minimap.renderCharacters===ke.minimap.renderCharacters&&de.minimap.maxColumn===ke.minimap.maxColumn&&de.minimap.scale===ke.minimap.scale&&de.verticalScrollbarWidth===ke.verticalScrollbarWidth&&de.isViewportWrapping===ke.isViewportWrapping,$e=de.lineHeight,He=de.typicalHalfwidthCharacterWidth,Ge=de.scrollBeyondLastLine,we=de.minimap.renderCharacters;let Se=Te>=2?Math.round(de.minimap.scale*2):de.minimap.scale;const De=de.minimap.maxColumn,Pe=de.minimap.size,Fe=de.minimap.side,xe=de.verticalScrollbarWidth,Ve=de.viewLineCount,qe=de.remainingWidth,We=de.isViewportWrapping,tt=we?2:3;let Be=Math.floor(Te*Le);const Ee=Be/Te;let Re=!1,Ae=!1,Ue=tt*Se,et=Se/Te,Ze=1;if(Pe==="fill"||Pe==="fit"){const{typicalViewportLineCount:Ye,extraLinesBeyondLastLine:Xe,desiredRatio:it,minimapLineCount:lt}=A.computeContainedMinimapLineCount({viewLineCount:Ve,scrollBeyondLastLine:Ge,height:Le,lineHeight:$e,pixelRatio:Te});if(Ve/lt>1)Re=!0,Ae=!0,Se=1,Ue=1,et=Se/Te;else{let dt=!1,at=Se+1;if(Pe==="fit"){const nt=Math.ceil((Ve+Xe)*Ue);We&&Me&&qe<=fe.stableFitRemainingWidth?(dt=!0,at=fe.stableFitMaxMinimapScale):dt=nt>Be}if(Pe==="fill"||dt){Re=!0;const nt=Se;Ue=Math.min($e*Te,Math.max(1,Math.floor(1/it))),We&&Me&&qe<=fe.stableFitRemainingWidth&&(at=fe.stableFitMaxMinimapScale),Se=Math.min(at,Math.max(1,Math.floor(Ue/tt))),Se>nt&&(Ze=Math.min(2,Se/nt)),et=Se/Te/Ze,Be=Math.ceil(Math.max(Ye,Ve+Xe)*Ue),We?(fe.stableMinimapLayoutInput=de,fe.stableFitRemainingWidth=qe,fe.stableFitMaxMinimapScale=Se):(fe.stableMinimapLayoutInput=null,fe.stableFitRemainingWidth=0)}}}const Ke=Math.floor(De*et),Ne=Math.min(Ke,Math.max(0,Math.floor((qe-xe-2)*et/(He+et)))+e.MINIMAP_GUTTER_WIDTH);let Oe=Math.floor(Te*Ne);const ze=Oe/Te;Oe=Math.floor(Oe*Ze);const je=we?1:2,Je=Fe==="left"?0:_e-Ne-xe;return{renderMinimap:je,minimapLeft:Je,minimapWidth:Ne,minimapHeightIsEditorHeight:Re,minimapIsSampling:Ae,minimapScale:Se,minimapLineHeight:Ue,minimapCanvasInnerWidth:Oe,minimapCanvasInnerHeight:Be,minimapCanvasOuterWidth:ze,minimapCanvasOuterHeight:Ee}}static computeLayout(de,fe){const _e=fe.outerWidth|0,Le=fe.outerHeight|0,Te=fe.lineHeight|0,ke=fe.lineNumbersDigitCount|0,Me=fe.typicalHalfwidthCharacterWidth,$e=fe.maxDigitWidth,He=fe.pixelRatio,Ge=fe.viewLineCount,we=de.get(123),Se=we==="inherit"?de.get(122):we,De=Se==="inherit"?de.get(118):Se,Pe=de.get(121),Fe=de.get(2),xe=fe.isDominatedByLongLines,Ve=de.get(50),qe=de.get(60).renderType!==0,We=de.get(61),tt=de.get(94),Be=de.get(65),Ee=de.get(92),Re=Ee.verticalScrollbarSize,Ae=Ee.verticalHasArrows,Ue=Ee.arrowSize,et=Ee.horizontalScrollbarSize,Ze=de.get(58),Ke=de.get(37);let Ne;if(typeof Ze=="string"&&/^\d+(\.\d+)?ch$/.test(Ze)){const ct=parseFloat(Ze.substr(0,Ze.length-2));Ne=o.clampedInt(ct*Me,0,0,1e3)}else Ne=o.clampedInt(Ze,0,0,1e3);Ke&&(Ne+=16);let Oe=0;if(qe){const ct=Math.max(ke,We);Oe=Math.round(ct*$e)}let ze=0;Ve&&(ze=Te);let je=0,Je=je+ze,Ye=Je+Oe,Xe=Ye+Ne;const it=_e-ze-Oe-Ne;let lt=!1,_t=!1,dt=-1;Fe!==2&&(Se==="inherit"&&xe?(lt=!0,_t=!0):De==="on"||De==="bounded"?_t=!0:De==="wordWrapColumn"&&(dt=Pe));const at=A._computeMinimapLayout({outerWidth:_e,outerHeight:Le,lineHeight:Te,typicalHalfwidthCharacterWidth:Me,pixelRatio:He,scrollBeyondLastLine:tt,minimap:Be,verticalScrollbarWidth:Re,viewLineCount:Ge,remainingWidth:it,isViewportWrapping:_t},fe.memory||new h);at.renderMinimap!==0&&at.minimapLeft===0&&(je+=at.minimapWidth,Je+=at.minimapWidth,Ye+=at.minimapWidth,Xe+=at.minimapWidth);const nt=it-at.minimapWidth,ht=Math.max(1,Math.floor((nt-Re-2)/Me)),Ct=Ae?Ue:0;return _t&&(dt=Math.max(1,ht),De==="bounded"&&(dt=Math.min(dt,Pe))),{width:_e,height:Le,glyphMarginLeft:je,glyphMarginWidth:ze,lineNumbersLeft:Je,lineNumbersWidth:Oe,decorationsLeft:Ye,decorationsWidth:Ne,contentLeft:Xe,contentWidth:nt,minimap:at,viewportColumn:ht,isWordWrapMinified:lt,isViewportWrapping:_t,wrappingColumn:dt,verticalScrollbarWidth:Re,horizontalScrollbarHeight:et,overviewRuler:{top:Ct,width:Re,height:Le-2*Ct,right:0}}}}e.EditorLayoutInfoComputer=A;class H extends g{constructor(){const de={enabled:!0};super(57,"lightbulb",de,{"editor.lightbulb.enabled":{type:"boolean",default:de.enabled,description:y.localize(43,null)}})}validate(de){return!de||typeof de!="object"?this.defaultValue:{enabled:c(de.enabled,this.defaultValue.enabled)}}}class q extends g{constructor(){const de={enabled:!0,fontSize:0,fontFamily:""};super(127,"inlayHints",de,{"editor.inlayHints.enabled":{type:"boolean",default:de.enabled,description:y.localize(44,null)},"editor.inlayHints.fontSize":{type:"number",default:de.fontSize,markdownDescription:y.localize(45,null)},"editor.inlayHints.fontFamily":{type:"string",default:de.fontFamily,markdownDescription:y.localize(46,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{enabled:c(fe.enabled,this.defaultValue.enabled),fontSize:o.clampedInt(fe.fontSize,this.defaultValue.fontSize,0,100),fontFamily:d.string(fe.fontFamily,this.defaultValue.fontFamily)}}}class X extends a{constructor(){super(59,"lineHeight",e.EDITOR_FONT_DEFAULTS.lineHeight,de=>a.clamp(de,0,150),{markdownDescription:y.localize(47,null)})}compute(de,fe,_e){return de.fontInfo.lineHeight}}class G extends g{constructor(){const de={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};super(65,"minimap",de,{"editor.minimap.enabled":{type:"boolean",default:de.enabled,description:y.localize(48,null)},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[y.localize(49,null),y.localize(50,null),y.localize(51,null)],default:de.size,description:y.localize(52,null)},"editor.minimap.side":{type:"string",enum:["left","right"],default:de.side,description:y.localize(53,null)},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:de.showSlider,description:y.localize(54,null)},"editor.minimap.scale":{type:"number",default:de.scale,minimum:1,maximum:3,enum:[1,2,3],description:y.localize(55,null)},"editor.minimap.renderCharacters":{type:"boolean",default:de.renderCharacters,description:y.localize(56,null)},"editor.minimap.maxColumn":{type:"number",default:de.maxColumn,description:y.localize(57,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{enabled:c(fe.enabled,this.defaultValue.enabled),size:u(fe.size,this.defaultValue.size,["proportional","fill","fit"]),side:u(fe.side,this.defaultValue.side,["right","left"]),showSlider:u(fe.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:c(fe.renderCharacters,this.defaultValue.renderCharacters),scale:o.clampedInt(fe.scale,1,1,3),maxColumn:o.clampedInt(fe.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function re(be){return be==="ctrlCmd"?m.isMacintosh?"metaKey":"ctrlKey":"altKey"}class ae extends g{constructor(){super(75,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:y.localize(58,null)},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:y.localize(59,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{top:o.clampedInt(fe.top,0,0,1e3),bottom:o.clampedInt(fe.bottom,0,0,1e3)}}}class oe extends g{constructor(){const de={enabled:!0,cycle:!1};super(76,"parameterHints",de,{"editor.parameterHints.enabled":{type:"boolean",default:de.enabled,description:y.localize(60,null)},"editor.parameterHints.cycle":{type:"boolean",default:de.cycle,description:y.localize(61,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{enabled:c(fe.enabled,this.defaultValue.enabled),cycle:c(fe.cycle,this.defaultValue.cycle)}}}class Z extends n{constructor(){super(129)}compute(de,fe,_e){return de.pixelRatio}}class x extends g{constructor(){const de={other:!0,comments:!1,strings:!1};super(79,"quickSuggestions",de,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:de.strings,description:y.localize(62,null)},comments:{type:"boolean",default:de.comments,description:y.localize(63,null)},other:{type:"boolean",default:de.other,description:y.localize(64,null)}}}],default:de,description:y.localize(65,null)});this.defaultValue=de}validate(de){if(typeof de=="boolean")return de;if(de&&typeof de=="object"){const fe=de,_e={other:c(fe.other,this.defaultValue.other),comments:c(fe.comments,this.defaultValue.comments),strings:c(fe.strings,this.defaultValue.strings)};return _e.other&&_e.comments&&_e.strings?!0:!_e.other&&!_e.comments&&!_e.strings?!1:_e}return this.defaultValue}}class U extends g{constructor(){super(60,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[y.localize(66,null),y.localize(67,null),y.localize(68,null),y.localize(69,null)],default:"on",description:y.localize(70,null)})}validate(de){let fe=this.defaultValue.renderType,_e=this.defaultValue.renderFn;return typeof de!="undefined"&&(typeof de=="function"?(fe=4,_e=de):de==="interval"?fe=3:de==="relative"?fe=2:de==="on"?fe=1:fe=0),{renderType:fe,renderFn:_e}}}function Q(be){const de=be.get(87);return de==="editable"?be.get(81):de!=="on"}e.filterValidationDecorations=Q;class ne extends g{constructor(){const de=[],fe={type:"number",description:y.localize(71,null)};super(91,"rulers",de,{type:"array",items:{anyOf:[fe,{type:["object"],properties:{column:fe,color:{type:"string",description:y.localize(72,null),format:"color-hex"}}}]},default:de,description:y.localize(73,null)})}validate(de){if(Array.isArray(de)){const fe=[];for(let _e of de)if(typeof _e=="number")fe.push({column:o.clampedInt(_e,0,0,1e4),color:null});else if(_e&&typeof _e=="object"){const Le=_e;fe.push({column:o.clampedInt(Le.column,0,0,1e4),color:Le.color})}return fe.sort((_e,Le)=>_e.column-Le.column),fe}return this.defaultValue}}function ce(be,de){if(typeof be!="string")return de;switch(be){case"hidden":return 2;case"visible":return 3;default:return 1}}class ee extends g{constructor(){const de={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(92,"scrollbar",de,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[y.localize(74,null),y.localize(75,null),y.localize(76,null)],default:"auto",description:y.localize(77,null)},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[y.localize(78,null),y.localize(79,null),y.localize(80,null)],default:"auto",description:y.localize(81,null)},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:de.verticalScrollbarSize,description:y.localize(82,null)},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:de.horizontalScrollbarSize,description:y.localize(83,null)},"editor.scrollbar.scrollByPage":{type:"boolean",default:de.scrollByPage,description:y.localize(84,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de,_e=o.clampedInt(fe.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),Le=o.clampedInt(fe.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:o.clampedInt(fe.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:ce(fe.vertical,this.defaultValue.vertical),horizontal:ce(fe.horizontal,this.defaultValue.horizontal),useShadows:c(fe.useShadows,this.defaultValue.useShadows),verticalHasArrows:c(fe.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:c(fe.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:c(fe.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:c(fe.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:_e,horizontalSliderSize:o.clampedInt(fe.horizontalSliderSize,_e,0,1e3),verticalScrollbarSize:Le,verticalSliderSize:o.clampedInt(fe.verticalSliderSize,Le,0,1e3),scrollByPage:c(fe.scrollByPage,this.defaultValue.scrollByPage)}}}e.inUntrustedWorkspace="inUntrustedWorkspace",e.unicodeHighlightConfigKeys={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class ue extends g{constructor(){const de={nonBasicASCII:e.inUntrustedWorkspace,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:e.inUntrustedWorkspace,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(113,"unicodeHighlight",de,{[e.unicodeHighlightConfigKeys.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:de.nonBasicASCII,description:y.localize(85,null)},[e.unicodeHighlightConfigKeys.invisibleCharacters]:{restricted:!0,type:"boolean",default:de.invisibleCharacters,description:y.localize(86,null)},[e.unicodeHighlightConfigKeys.ambiguousCharacters]:{restricted:!0,type:"boolean",default:de.ambiguousCharacters,description:y.localize(87,null)},[e.unicodeHighlightConfigKeys.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:de.includeComments,description:y.localize(88,null)},[e.unicodeHighlightConfigKeys.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,e.inUntrustedWorkspace],default:de.includeStrings,description:y.localize(89,null)},[e.unicodeHighlightConfigKeys.allowedCharacters]:{restricted:!0,type:"object",default:de.allowedCharacters,description:y.localize(90,null),additionalProperties:{type:"boolean"}},[e.unicodeHighlightConfigKeys.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:de.allowedLocales,description:y.localize(91,null)}})}applyUpdate(de,fe){let _e=!1;fe.allowedCharacters&&(w.equals(de.allowedCharacters,fe.allowedCharacters)||(de=Object.assign(Object.assign({},de),{allowedCharacters:fe.allowedCharacters}),_e=!0)),fe.allowedLocales&&(w.equals(de.allowedLocales,fe.allowedLocales)||(de=Object.assign(Object.assign({},de),{allowedLocales:fe.allowedLocales}),_e=!0));const Le=super.applyUpdate(de,fe);return _e?new t(Le.newValue,!0):Le}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{nonBasicASCII:K(fe.nonBasicASCII,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),invisibleCharacters:c(fe.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:c(fe.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:K(fe.includeComments,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),includeStrings:K(fe.includeStrings,e.inUntrustedWorkspace,[!0,!1,e.inUntrustedWorkspace]),allowedCharacters:this.validateBooleanMap(de.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(de.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(de,fe){if(typeof de!="object"||!de)return fe;const _e={};for(const[Le,Te]of Object.entries(de))Te===!0&&(_e[Le]=!0);return _e}}class z extends g{constructor(){const de={enabled:!0,mode:"subwordSmart"};super(55,"inlineSuggest",de,{"editor.inlineSuggest.enabled":{type:"boolean",default:de.enabled,description:y.localize(92,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{enabled:c(fe.enabled,this.defaultValue.enabled),mode:u(fe.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"])}}}class V extends g{constructor(){const de={enabled:b.EDITOR_MODEL_DEFAULTS.bracketPairColorizationOptions.enabled};super(12,"bracketPairColorization",de,{"editor.bracketPairColorization.enabled":{type:"boolean",default:de.enabled,description:y.localize(93,null)}})}validate(de){return!de||typeof de!="object"?this.defaultValue:{enabled:c(de.enabled,this.defaultValue.enabled)}}}class $ extends g{constructor(){const de={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(13,"guides",de,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[y.localize(94,null),y.localize(95,null),y.localize(96,null)],default:de.bracketPairs,description:y.localize(97,null)},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[y.localize(98,null),y.localize(99,null),y.localize(100,null)],default:de.bracketPairsHorizontal,description:y.localize(101,null)},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:de.highlightActiveBracketPair,description:y.localize(102,null)},"editor.guides.indentation":{type:"boolean",default:de.indentation,description:y.localize(103,null)},"editor.guides.highlightActiveIndentation":{type:"boolean",default:de.highlightActiveIndentation,description:y.localize(104,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{bracketPairs:K(fe.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:K(fe.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:c(fe.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:c(fe.indentation,this.defaultValue.indentation),highlightActiveIndentation:c(fe.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation)}}}function K(be,de,fe){const _e=fe.indexOf(be);return _e===-1?de:fe[_e]}class J extends g{constructor(){const de={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(106,"suggest",de,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[y.localize(105,null),y.localize(106,null)],default:de.insertMode,description:y.localize(107,null)},"editor.suggest.filterGraceful":{type:"boolean",default:de.filterGraceful,description:y.localize(108,null)},"editor.suggest.localityBonus":{type:"boolean",default:de.localityBonus,description:y.localize(109,null)},"editor.suggest.shareSuggestSelections":{type:"boolean",default:de.shareSuggestSelections,markdownDescription:y.localize(110,null)},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:de.snippetsPreventQuickSuggestions,description:y.localize(111,null)},"editor.suggest.showIcons":{type:"boolean",default:de.showIcons,description:y.localize(112,null)},"editor.suggest.showStatusBar":{type:"boolean",default:de.showStatusBar,description:y.localize(113,null)},"editor.suggest.preview":{type:"boolean",default:de.preview,description:y.localize(114,null)},"editor.suggest.showInlineDetails":{type:"boolean",default:de.showInlineDetails,description:y.localize(115,null)},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:y.localize(116,null)},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:y.localize(117,null)},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:y.localize(118,null)},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:y.localize(119,null)},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:y.localize(120,null)},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:y.localize(121,null)},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:y.localize(122,null)},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:y.localize(123,null)},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:y.localize(124,null)},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:y.localize(125,null)},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:y.localize(126,null)},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:y.localize(127,null)},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:y.localize(128,null)},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:y.localize(129,null)},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:y.localize(130,null)},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:y.localize(131,null)},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:y.localize(132,null)},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:y.localize(133,null)},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:y.localize(134,null)},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:y.localize(135,null)},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:y.localize(136,null)},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:y.localize(137,null)},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:y.localize(138,null)},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:y.localize(139,null)},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:y.localize(140,null)},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:y.localize(141,null)},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:y.localize(142,null)},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:y.localize(143,null)},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:y.localize(144,null)},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:y.localize(145,null)},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:y.localize(146,null)}})}validate(de){if(!de||typeof de!="object")return this.defaultValue;const fe=de;return{insertMode:u(fe.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:c(fe.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:c(fe.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:c(fe.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:c(fe.shareSuggestSelections,this.defaultValue.shareSuggestSelections),showIcons:c(fe.showIcons,this.defaultValue.showIcons),showStatusBar:c(fe.showStatusBar,this.defaultValue.showStatusBar),preview:c(fe.preview,this.defaultValue.preview),previewMode:u(fe.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:c(fe.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:c(fe.showMethods,this.defaultValue.showMethods),showFunctions:c(fe.showFunctions,this.defaultValue.showFunctions),showConstructors:c(fe.showConstructors,this.defaultValue.showConstructors),showDeprecated:c(fe.showDeprecated,this.defaultValue.showDeprecated),showFields:c(fe.showFields,this.defaultValue.showFields),showVariables:c(fe.showVariables,this.defaultValue.showVariables),showClasses:c(fe.showClasses,this.defaultValue.showClasses),showStructs:c(fe.showStructs,this.defaultValue.showStructs),showInterfaces:c(fe.showInterfaces,this.defaultValue.showInterfaces),showModules:c(fe.showModules,this.defaultValue.showModules),showProperties:c(fe.showProperties,this.defaultValue.showProperties),showEvents:c(fe.showEvents,this.defaultValue.showEvents),showOperators:c(fe.showOperators,this.defaultValue.showOperators),showUnits:c(fe.showUnits,this.defaultValue.showUnits),showValues:c(fe.showValues,this.defaultValue.showValues),showConstants:c(fe.showConstants,this.defaultValue.showConstants),showEnums:c(fe.showEnums,this.defaultValue.showEnums),showEnumMembers:c(fe.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:c(fe.showKeywords,this.defaultValue.showKeywords),showWords:c(fe.showWords,this.defaultValue.showWords),showColors:c(fe.showColors,this.defaultValue.showColors),showFiles:c(fe.showFiles,this.defaultValue.showFiles),showReferences:c(fe.showReferences,this.defaultValue.showReferences),showFolders:c(fe.showFolders,this.defaultValue.showFolders),showTypeParameters:c(fe.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:c(fe.showSnippets,this.defaultValue.showSnippets),showUsers:c(fe.showUsers,this.defaultValue.showUsers),showIssues:c(fe.showIssues,this.defaultValue.showIssues)}}}class Y extends g{constructor(){super(102,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:y.localize(147,null),default:!0,type:"boolean"}})}validate(de){return!de||typeof de!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:c(de.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class se extends n{constructor(){super(130)}compute(de,fe,_e){return fe.get(81)?!0:de.tabFocusMode}}function ge(be){switch(be){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}}class me extends n{constructor(){super(132)}compute(de,fe,_e){const Le=fe.get(131);return{isDominatedByLongLines:de.isDominatedByLongLines,isWordWrapMinified:Le.isWordWrapMinified,isViewportWrapping:Le.isViewportWrapping,wrappingColumn:Le.wrappingColumn}}}const le="Consolas, 'Courier New', monospace",he="Menlo, Monaco, 'Courier New', monospace",ve="'Droid Sans Mono', 'monospace', monospace";e.EDITOR_FONT_DEFAULTS={fontFamily:m.isMacintosh?he:m.isLinux?ve:le,fontWeight:"normal",fontSize:m.isMacintosh?12:14,lineHeight:0,letterSpacing:0},e.editorOptionsRegistry=[];function pe(be){return e.editorOptionsRegistry[be.id]=be,be}e.EditorOptions={acceptSuggestionOnCommitCharacter:pe(new r(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:y.localize(148,null)})),acceptSuggestionOnEnter:pe(new f(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",y.localize(149,null),""],markdownDescription:y.localize(150,null)})),accessibilitySupport:pe(new C),accessibilityPageSize:pe(new o(3,"accessibilityPageSize",10,1,1073741824,{description:y.localize(151,null)})),ariaLabel:pe(new d(4,"ariaLabel",y.localize(152,null))),autoClosingBrackets:pe(new f(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",y.localize(153,null),y.localize(154,null),""],description:y.localize(155,null)})),autoClosingDelete:pe(new f(6,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",y.localize(156,null),""],description:y.localize(157,null)})),autoClosingOvertype:pe(new f(7,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",y.localize(158,null),""],description:y.localize(159,null)})),autoClosingQuotes:pe(new f(8,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",y.localize(160,null),y.localize(161,null),""],description:y.localize(162,null)})),autoIndent:pe(new S(9,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],v,{enumDescriptions:[y.localize(163,null),y.localize(164,null),y.localize(165,null),y.localize(166,null),y.localize(167,null)],description:y.localize(168,null)})),automaticLayout:pe(new r(10,"automaticLayout",!1)),autoSurround:pe(new f(11,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[y.localize(169,null),y.localize(170,null),y.localize(171,null),""],description:y.localize(172,null)})),bracketPairColorization:pe(new V),bracketPairGuides:pe(new $),stickyTabStops:pe(new r(104,"stickyTabStops",!1,{description:y.localize(173,null)})),codeLens:pe(new r(14,"codeLens",!0,{description:y.localize(174,null)})),codeLensFontFamily:pe(new d(15,"codeLensFontFamily","",{description:y.localize(175,null)})),codeLensFontSize:pe(new o(16,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:y.localize(176,null)})),colorDecorators:pe(new r(17,"colorDecorators",!0,{description:y.localize(177,null)})),columnSelection:pe(new r(18,"columnSelection",!1,{description:y.localize(178,null)})),comments:pe(new _),contextmenu:pe(new r(20,"contextmenu",!0)),copyWithSyntaxHighlighting:pe(new r(21,"copyWithSyntaxHighlighting",!0,{description:y.localize(179,null)})),cursorBlinking:pe(new S(22,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],L,{description:y.localize(180,null)})),cursorSmoothCaretAnimation:pe(new r(23,"cursorSmoothCaretAnimation",!1,{description:y.localize(181,null)})),cursorStyle:pe(new S(24,"cursorStyle",E.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],N,{description:y.localize(182,null)})),cursorSurroundingLines:pe(new o(25,"cursorSurroundingLines",0,0,1073741824,{description:y.localize(183,null)})),cursorSurroundingLinesStyle:pe(new f(26,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[y.localize(184,null),y.localize(185,null)],description:y.localize(186,null)})),cursorWidth:pe(new o(27,"cursorWidth",0,0,1073741824,{markdownDescription:y.localize(187,null)})),disableLayerHinting:pe(new r(28,"disableLayerHinting",!1)),disableMonospaceOptimizations:pe(new r(29,"disableMonospaceOptimizations",!1)),domReadOnly:pe(new r(30,"domReadOnly",!1)),dragAndDrop:pe(new r(31,"dragAndDrop",!0,{description:y.localize(188,null)})),emptySelectionClipboard:pe(new M),extraEditorClassName:pe(new d(33,"extraEditorClassName","")),fastScrollSensitivity:pe(new a(34,"fastScrollSensitivity",5,be=>be<=0?5:be,{markdownDescription:y.localize(189,null)})),find:pe(new O),fixedOverflowWidgets:pe(new r(36,"fixedOverflowWidgets",!1)),folding:pe(new r(37,"folding",!0,{description:y.localize(190,null)})),foldingStrategy:pe(new f(38,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[y.localize(191,null),y.localize(192,null)],description:y.localize(193,null)})),foldingHighlight:pe(new r(39,"foldingHighlight",!0,{description:y.localize(194,null)})),foldingImportsByDefault:pe(new r(40,"foldingImportsByDefault",!1,{description:y.localize(195,null)})),foldingMaximumRegions:pe(new o(41,"foldingMaximumRegions",5e3,10,65e3,{description:y.localize(196,null)})),unfoldOnClickAfterEndOfLine:pe(new r(42,"unfoldOnClickAfterEndOfLine",!1,{description:y.localize(197,null)})),fontFamily:pe(new d(43,"fontFamily",e.EDITOR_FONT_DEFAULTS.fontFamily,{description:y.localize(198,null)})),fontInfo:pe(new T),fontLigatures2:pe(new B),fontSize:pe(new R),fontWeight:pe(new P),formatOnPaste:pe(new r(48,"formatOnPaste",!1,{description:y.localize(199,null)})),formatOnType:pe(new r(49,"formatOnType",!1,{description:y.localize(200,null)})),glyphMargin:pe(new r(50,"glyphMargin",!0,{description:y.localize(201,null)})),gotoLocation:pe(new F),hideCursorInOverviewRuler:pe(new r(52,"hideCursorInOverviewRuler",!1,{description:y.localize(202,null)})),hover:pe(new W),inDiffEditor:pe(new r(54,"inDiffEditor",!1)),letterSpacing:pe(new a(56,"letterSpacing",e.EDITOR_FONT_DEFAULTS.letterSpacing,be=>a.clamp(be,-5,20),{description:y.localize(203,null)})),lightbulb:pe(new H),lineDecorationsWidth:pe(new l(58,"lineDecorationsWidth",10)),lineHeight:pe(new X),lineNumbers:pe(new U),lineNumbersMinChars:pe(new o(61,"lineNumbersMinChars",5,1,300)),linkedEditing:pe(new r(62,"linkedEditing",!1,{description:y.localize(204,null)})),links:pe(new r(63,"links",!0,{description:y.localize(205,null)})),matchBrackets:pe(new f(64,"matchBrackets","always",["always","near","never"],{description:y.localize(206,null)})),minimap:pe(new G),mouseStyle:pe(new f(66,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:pe(new a(67,"mouseWheelScrollSensitivity",1,be=>be===0?1:be,{markdownDescription:y.localize(207,null)})),mouseWheelZoom:pe(new r(68,"mouseWheelZoom",!1,{markdownDescription:y.localize(208,null)})),multiCursorMergeOverlapping:pe(new r(69,"multiCursorMergeOverlapping",!0,{description:y.localize(209,null)})),multiCursorModifier:pe(new S(70,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],re,{markdownEnumDescriptions:[y.localize(210,null),y.localize(211,null)],markdownDescription:y.localize(212,null)})),multiCursorPaste:pe(new f(71,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[y.localize(213,null),y.localize(214,null)],markdownDescription:y.localize(215,null)})),occurrencesHighlight:pe(new r(72,"occurrencesHighlight",!0,{description:y.localize(216,null)})),overviewRulerBorder:pe(new r(73,"overviewRulerBorder",!0,{description:y.localize(217,null)})),overviewRulerLanes:pe(new o(74,"overviewRulerLanes",3,0,3)),padding:pe(new ae),parameterHints:pe(new oe),peekWidgetDefaultFocus:pe(new f(77,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[y.localize(218,null),y.localize(219,null)],description:y.localize(220,null)})),definitionLinkOpensInPeek:pe(new r(78,"definitionLinkOpensInPeek",!1,{description:y.localize(221,null)})),quickSuggestions:pe(new x),quickSuggestionsDelay:pe(new o(80,"quickSuggestionsDelay",10,0,1073741824,{description:y.localize(222,null)})),readOnly:pe(new r(81,"readOnly",!1)),renameOnType:pe(new r(82,"renameOnType",!1,{description:y.localize(223,null),markdownDeprecationMessage:y.localize(224,null)})),renderControlCharacters:pe(new r(83,"renderControlCharacters",!0,{description:y.localize(225,null),restricted:!0})),renderFinalNewline:pe(new r(84,"renderFinalNewline",!0,{description:y.localize(226,null)})),renderLineHighlight:pe(new f(85,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",y.localize(227,null)],description:y.localize(228,null)})),renderLineHighlightOnlyWhenFocus:pe(new r(86,"renderLineHighlightOnlyWhenFocus",!1,{description:y.localize(229,null)})),renderValidationDecorations:pe(new f(87,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:pe(new f(88,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",y.localize(230,null),y.localize(231,null),y.localize(232,null),""],description:y.localize(233,null)})),revealHorizontalRightPadding:pe(new o(89,"revealHorizontalRightPadding",30,0,1e3)),roundedSelection:pe(new r(90,"roundedSelection",!0,{description:y.localize(234,null)})),rulers:pe(new ne),scrollbar:pe(new ee),scrollBeyondLastColumn:pe(new o(93,"scrollBeyondLastColumn",5,0,1073741824,{description:y.localize(235,null)})),scrollBeyondLastLine:pe(new r(94,"scrollBeyondLastLine",!0,{description:y.localize(236,null)})),scrollPredominantAxis:pe(new r(95,"scrollPredominantAxis",!0,{description:y.localize(237,null)})),selectionClipboard:pe(new r(96,"selectionClipboard",!0,{description:y.localize(238,null),included:m.isLinux})),selectionHighlight:pe(new r(97,"selectionHighlight",!0,{description:y.localize(239,null)})),selectOnLineNumbers:pe(new r(98,"selectOnLineNumbers",!0)),showFoldingControls:pe(new f(99,"showFoldingControls","mouseover",["always","mouseover"],{enumDescriptions:[y.localize(240,null),y.localize(241,null)],description:y.localize(242,null)})),showUnused:pe(new r(100,"showUnused",!0,{description:y.localize(243,null)})),showDeprecated:pe(new r(126,"showDeprecated",!0,{description:y.localize(244,null)})),inlayHints:pe(new q),snippetSuggestions:pe(new f(101,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[y.localize(245,null),y.localize(246,null),y.localize(247,null),y.localize(248,null)],description:y.localize(249,null)})),smartSelect:pe(new Y),smoothScrolling:pe(new r(103,"smoothScrolling",!1,{description:y.localize(250,null)})),stopRenderingLineAfter:pe(new o(105,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:pe(new J),inlineSuggest:pe(new z),suggestFontSize:pe(new o(107,"suggestFontSize",0,0,1e3,{markdownDescription:y.localize(251,null)})),suggestLineHeight:pe(new o(108,"suggestLineHeight",0,0,1e3,{markdownDescription:y.localize(252,null)})),suggestOnTriggerCharacters:pe(new r(109,"suggestOnTriggerCharacters",!0,{description:y.localize(253,null)})),suggestSelection:pe(new f(110,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[y.localize(254,null),y.localize(255,null),y.localize(256,null)],description:y.localize(257,null)})),tabCompletion:pe(new f(111,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[y.localize(258,null),y.localize(259,null),y.localize(260,null)],description:y.localize(261,null)})),tabIndex:pe(new o(112,"tabIndex",0,-1,1073741824)),unicodeHighlight:pe(new ue),unusualLineTerminators:pe(new f(114,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[y.localize(262,null),y.localize(263,null),y.localize(264,null)],description:y.localize(265,null)})),useShadowDOM:pe(new r(115,"useShadowDOM",!0)),useTabStops:pe(new r(116,"useTabStops",!0,{description:y.localize(266,null)})),wordSeparators:pe(new d(117,"wordSeparators",D.USUAL_WORD_SEPARATORS,{description:y.localize(267,null)})),wordWrap:pe(new f(118,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[y.localize(268,null),y.localize(269,null),y.localize(270,null),y.localize(271,null)],description:y.localize(272,null)})),wordWrapBreakAfterCharacters:pe(new d(119,"wordWrapBreakAfterCharacters"," })]?|/&.,;\xA2\xB0\u2032\u2033\u2030\u2103\u3001\u3002\uFF61\uFF64\uFFE0\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF05\u30FB\uFF65\u309D\u309E\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\uFF67\uFF68\uFF69\uFF6A\uFF6B\uFF6C\uFF6D\uFF6E\uFF6F\uFF70\u201D\u3009\u300B\u300D\u300F\u3011\u3015\uFF09\uFF3D\uFF5D\uFF63")),wordWrapBreakBeforeCharacters:pe(new d(120,"wordWrapBreakBeforeCharacters","([{\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\xA3\xA5\uFF04\uFFE1\uFFE5+\uFF0B")),wordWrapColumn:pe(new o(121,"wordWrapColumn",80,1,1073741824,{markdownDescription:y.localize(273,null)})),wordWrapOverride1:pe(new f(122,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:pe(new f(123,"wordWrapOverride2","inherit",["off","on","inherit"])),wrappingIndent:pe(new S(124,"wrappingIndent",1,"same",["none","same","indent","deepIndent"],ge,{enumDescriptions:[y.localize(274,null),y.localize(275,null),y.localize(276,null),y.localize(277,null)],description:y.localize(278,null)})),wrappingStrategy:pe(new f(125,"wrappingStrategy","simple",["simple","advanced"],{enumDescriptions:[y.localize(279,null),y.localize(280,null)],description:y.localize(281,null)})),editorClassName:pe(new k),pixelRatio:pe(new Z),tabFocusMode:pe(new se),layoutInfo:pe(new A),wrappingInfo:pe(new me)}}),define(te[62],ie([1,0,34,30,31]),function(j,e,y,m,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyFontInfo=void 0;function I(w,b){w instanceof m.FastDomNode?(w.setFontFamily(b.getMassagedFontFamily(y.isSafari?D.EDITOR_FONT_DEFAULTS.fontFamily:null)),w.setFontWeight(b.fontWeight),w.setFontSize(b.fontSize),w.setFontFeatureSettings(b.fontFeatureSettings),w.setLineHeight(b.lineHeight),w.setLetterSpacing(b.letterSpacing)):(w.style.fontFamily=b.getMassagedFontFamily(y.isSafari?D.EDITOR_FONT_DEFAULTS.fontFamily:null),w.style.fontWeight=b.fontWeight,w.style.fontSize=b.fontSize+"px",w.style.fontFeatureSettings=b.fontFeatureSettings,w.style.lineHeight=b.lineHeight+"px",w.style.letterSpacing=b.letterSpacing+"px")}e.applyFontInfo=I}),define(te[507],ie([1,0,62]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readCharWidths=e.CharWidthRequest=void 0;class m{constructor(b,p){this.chr=b,this.type=p,this.width=0}fulfill(b){this.width=b}}e.CharWidthRequest=m;class D{constructor(b,p){this._bareFontInfo=b,this._requests=p,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const b=document.createElement("div");b.style.position="absolute",b.style.top="-50000px",b.style.width="50000px";const p=document.createElement("div");(0,y.applyFontInfo)(p,this._bareFontInfo),b.appendChild(p);const h=document.createElement("div");(0,y.applyFontInfo)(h,this._bareFontInfo),h.style.fontWeight="bold",b.appendChild(h);const g=document.createElement("div");(0,y.applyFontInfo)(g,this._bareFontInfo),g.style.fontStyle="italic",b.appendChild(g);const t=[];for(const i of this._requests){let n;i.type===0&&(n=p),i.type===2&&(n=h),i.type===1&&(n=g),n.appendChild(document.createElement("br"));const l=document.createElement("span");D._render(l,i),n.appendChild(l),t.push(l)}this._container=b,this._testElements=t}static _render(b,p){if(p.chr===" "){let h="\xA0";for(let g=0;g<8;g++)h+=h;b.innerText=h}else{let h=p.chr;for(let g=0;g<8;g++)h+=h;b.textContent=h}}_readFromDomElements(){for(let b=0,p=this._requests.length;b<p;b++){const h=this._requests[b],g=this._testElements[b];h.fulfill(g.offsetWidth/256)}}}function I(w,b){new D(w,b).read()}e.readCharWidths=I}),define(te[266],ie([1,0,34,4,2,507,31,174]),function(j,e,y,m,D,I,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontMeasurements=void 0;class p extends D.Disposable{constructor(){super();this._onDidChange=this._register(new m.Emitter),this.onDidChange=this._onDidChange.event,this._cache=new h,this._evictUntrustedReadingsTimeout=-1}dispose(){this._evictUntrustedReadingsTimeout!==-1&&(window.clearTimeout(this._evictUntrustedReadingsTimeout),this._evictUntrustedReadingsTimeout=-1),super.dispose()}clearAllFontInfos(){this._cache=new h,this._onDidChange.fire()}_writeToCache(t,i){this._cache.put(t,i),!i.isTrusted&&this._evictUntrustedReadingsTimeout===-1&&(this._evictUntrustedReadingsTimeout=window.setTimeout(()=>{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const t=this._cache.getValues();let i=!1;for(const n of t)n.isTrusted||(i=!0,this._cache.remove(n));i&&this._onDidChange.fire()}readFontInfo(t){if(!this._cache.has(t)){let i=this._actualReadFontInfo(t);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new b.FontInfo({pixelRatio:y.PixelRatio.value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(t,i)}return this._cache.get(t)}_createRequest(t,i,n,l){const c=new I.CharWidthRequest(t,i);return n.push(c),l&&l.push(c),c}_actualReadFontInfo(t){const i=[],n=[],l=this._createRequest("n",0,i,n),c=this._createRequest("\uFF4D",0,i,null),r=this._createRequest(" ",0,i,n),s=this._createRequest("0",0,i,n),o=this._createRequest("1",0,i,n),a=this._createRequest("2",0,i,n),d=this._createRequest("3",0,i,n),u=this._createRequest("4",0,i,n),f=this._createRequest("5",0,i,n),S=this._createRequest("6",0,i,n),v=this._createRequest("7",0,i,n),C=this._createRequest("8",0,i,n),_=this._createRequest("9",0,i,n),L=this._createRequest("\u2192",0,i,n),E=this._createRequest("\uFFEB",0,i,null),N=this._createRequest("\xB7",0,i,n),k=this._createRequest(String.fromCharCode(11825),0,i,null),M="|/-_ilm%";for(let P=0,F=M.length;P<F;P++)this._createRequest(M.charAt(P),0,i,n),this._createRequest(M.charAt(P),1,i,n),this._createRequest(M.charAt(P),2,i,n);(0,I.readCharWidths)(t,i);const O=Math.max(s.width,o.width,a.width,d.width,u.width,f.width,S.width,v.width,C.width,_.width);let B=t.fontFeatureSettings===w.EditorFontLigatures.OFF;const T=n[0].width;for(let P=1,F=n.length;B&&P<F;P++){const W=T-n[P].width;if(W<-.001||W>.001){B=!1;break}}let R=!0;return B&&E.width!==T&&(R=!1),E.width>L.width&&(R=!1),new b.FontInfo({pixelRatio:y.PixelRatio.value,fontFamily:t.fontFamily,fontWeight:t.fontWeight,fontSize:t.fontSize,fontFeatureSettings:t.fontFeatureSettings,lineHeight:t.lineHeight,letterSpacing:t.letterSpacing,isMonospace:B,typicalHalfwidthCharacterWidth:l.width,typicalFullwidthCharacterWidth:c.width,canUseHalfwidthRightwardsArrow:R,spaceWidth:r.width,middotWidth:N.width,wsmiddotWidth:k.width,maxDigitWidth:O},!0)}}class h{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(t){const i=t.getId();return!!this._values[i]}get(t){const i=t.getId();return this._values[i]}put(t,i){const n=t.getId();this._keys[n]=t,this._values[n]=i}remove(t){const i=t.getId();delete this._keys[i],delete this._values[i]}getValues(){return Object.keys(this._keys).map(t=>this._values[t])}}e.FontMeasurements=new p}),define(te[508],ie([1,0,90,8,62,91,251]),function(j,e,y,m,D,I,w){"use strict";var b;Object.defineProperty(e,"__esModule",{value:!0}),e.DOMLineBreaksComputerFactory=void 0;const p=(b=window.trustedTypes)===null||b===void 0?void 0:b.createPolicy("domLineBreaksComputer",{createHTML:c=>c});class h{static create(){return new h}constructor(){}createLineBreaksComputer(r,s,o,a){const d=[],u=[];return{addRequest:(f,S,v)=>{d.push(f),u.push(S)},finalize:()=>g(d,r,s,o,a,u)}}}e.DOMLineBreaksComputerFactory=h;function g(c,r,s,o,a,d){var u;function f(A){const H=d[A];if(H){const q=I.LineInjectedText.applyInjectedText(c[A],H),X=H.map(re=>re.options),G=H.map(re=>re.column-1);return new w.ModelLineProjectionData(G,X,[q.length],[],0)}else return null}if(o===-1){const A=[];for(let H=0,q=c.length;H<q;H++)A[H]=f(H);return A}const S=Math.round(o*r.typicalHalfwidthCharacterWidth),C=Math.round(s*(a===3?2:a===2?1:0)),_=Math.ceil(r.spaceWidth*C),L=document.createElement("div");(0,D.applyFontInfo)(L,r);const E=(0,y.createStringBuilder)(1e4),N=[],k=[],M=[],O=[],B=[];for(let A=0;A<c.length;A++){const H=I.LineInjectedText.applyInjectedText(c[A],d[A]);let q=0,X=0,G=S;if(a!==0)if(q=m.firstNonWhitespaceIndex(H),q===-1)q=0;else{for(let Z=0;Z<q;Z++)X+=H.charCodeAt(Z)===9?s-X%s:1;const oe=Math.ceil(r.spaceWidth*X);oe+r.typicalFullwidthCharacterWidth>S?(q=0,X=0):G=S-oe}const re=H.substr(q),ae=t(re,X,s,G,E,_);N[A]=q,k[A]=X,M[A]=re,O[A]=ae[0],B[A]=ae[1]}const T=E.build(),R=(u=p==null?void 0:p.createHTML(T))!==null&&u!==void 0?u:T;L.innerHTML=R,L.style.position="absolute",L.style.top="10000",L.style.wordWrap="break-word",document.body.appendChild(L);const P=document.createRange(),F=Array.prototype.slice.call(L.children,0),W=[];for(let A=0;A<c.length;A++){const H=F[A],q=i(P,H,M[A],O[A]);if(q===null){W[A]=f(A);continue}const X=N[A],G=k[A]+C,re=B[A],ae=[];for(let U=0,Q=q.length;U<Q;U++)ae[U]=re[q[U]];if(X!==0)for(let U=0,Q=q.length;U<Q;U++)q[U]+=X;let oe,Z;const x=d[A];x?(oe=x.map(U=>U.options),Z=x.map(U=>U.column-1)):(oe=null,Z=null),W[A]=new w.ModelLineProjectionData(Z,oe,q,ae,G)}return document.body.removeChild(L),W}function t(c,r,s,o,a,d){if(d!==0){const L=String(d);a.appendASCIIString('<div style="text-indent: -'),a.appendASCIIString(L),a.appendASCIIString("px; padding-left: "),a.appendASCIIString(L),a.appendASCIIString("px; box-sizing: border-box; width:")}else a.appendASCIIString('<div style="width:');a.appendASCIIString(String(o)),a.appendASCIIString('px;">');const u=c.length;let f=r,S=0;const v=[],C=[];let _=0<u?c.charCodeAt(0):0;a.appendASCIIString("<span>");for(let L=0;L<u;L++){L!==0&&L%16384==0&&a.appendASCIIString("</span><span>"),v[L]=S,C[L]=f;const E=_;_=L+1<u?c.charCodeAt(L+1):0;let N=1,k=1;switch(E){case 9:N=s-f%s,k=N;for(let M=1;M<=N;M++)M<N?a.write1(160):a.appendASCII(32);break;case 32:_===32?a.write1(160):a.appendASCII(32);break;case 60:a.appendASCIIString("&lt;");break;case 62:a.appendASCIIString("&gt;");break;case 38:a.appendASCIIString("&amp;");break;case 0:a.appendASCIIString("&#00;");break;case 65279:case 8232:case 8233:case 133:a.write1(65533);break;default:m.isFullWidthCharacter(E)&&k++,E<32?a.write1(9216+E):a.write1(E)}S+=N,f+=k}return a.appendASCIIString("</span>"),v[c.length]=S,C[c.length]=f,a.appendASCIIString("</div>"),[v,C]}function i(c,r,s,o){if(s.length<=1)return null;const a=Array.prototype.slice.call(r.children,0),d=[];try{n(c,a,o,0,null,s.length-1,null,d)}catch(u){return console.log(u),null}return d.length===0?null:(d.push(s.length),d)}function n(c,r,s,o,a,d,u,f){if(o===d||(a=a||l(c,r,s[o],s[o+1]),u=u||l(c,r,s[d],s[d+1]),Math.abs(a[0].top-u[0].top)<=.1))return;if(o+1===d){f.push(d);return}const S=o+(d-o)/2|0,v=l(c,r,s[S],s[S+1]);n(c,r,s,o,a,S,v,f),n(c,r,s,S,v,d,u,f)}function l(c,r,s,o){return c.setStart(r[s/16384|0].firstChild,s%16384),c.setEnd(r[o/16384|0].firstChild,o%16384),c.getClientRects()}}),define(te[509],ie([1,0,30,62,176,50]),function(j,e,y,m,D,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarginViewOverlays=e.ContentViewOverlays=e.ViewOverlayLine=e.ViewOverlays=void 0;class w extends I.ViewPart{constructor(t){super(t);this._visibleLines=new D.VisibleLinesCollection(this),this.domNode=this._visibleLines.domNode,this._dynamicOverlays=[],this._isFocused=!1,this.domNode.setClassName("view-overlays")}shouldRender(){if(super.shouldRender())return!0;for(let t=0,i=this._dynamicOverlays.length;t<i;t++)if(this._dynamicOverlays[t].shouldRender())return!0;return!1}dispose(){super.dispose();for(let t=0,i=this._dynamicOverlays.length;t<i;t++)this._dynamicOverlays[t].dispose();this._dynamicOverlays=[]}getDomNode(){return this.domNode}createVisibleLine(){return new b(this._context.configuration,this._dynamicOverlays)}addDynamicOverlay(t){this._dynamicOverlays.push(t)}onConfigurationChanged(t){this._visibleLines.onConfigurationChanged(t);const i=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber();for(let l=i;l<=n;l++)this._visibleLines.getVisibleLine(l).onConfigurationChanged(t);return!0}onFlushed(t){return this._visibleLines.onFlushed(t)}onFocusChanged(t){return this._isFocused=t.isFocused,!0}onLinesChanged(t){return this._visibleLines.onLinesChanged(t)}onLinesDeleted(t){return this._visibleLines.onLinesDeleted(t)}onLinesInserted(t){return this._visibleLines.onLinesInserted(t)}onScrollChanged(t){return this._visibleLines.onScrollChanged(t)||!0}onTokensChanged(t){return this._visibleLines.onTokensChanged(t)}onZonesChanged(t){return this._visibleLines.onZonesChanged(t)}prepareRender(t){const i=this._dynamicOverlays.filter(n=>n.shouldRender());for(let n=0,l=i.length;n<l;n++){const c=i[n];c.prepareRender(t),c.onDidRender()}}render(t){this._viewOverlaysRender(t),this.domNode.toggleClassName("focused",this._isFocused)}_viewOverlaysRender(t){this._visibleLines.renderLines(t.viewportData)}}e.ViewOverlays=w;class b{constructor(t,i){this._configuration=t,this._lineHeight=this._configuration.options.get(59),this._dynamicOverlays=i,this._domNode=null,this._renderedContent=null}getDomNode(){return this._domNode?this._domNode.domNode:null}setDomNode(t){this._domNode=(0,y.createFastDomNode)(t)}onContentChanged(){}onTokensChanged(){}onConfigurationChanged(t){this._lineHeight=this._configuration.options.get(59)}renderLine(t,i,n,l){let c="";for(let r=0,s=this._dynamicOverlays.length;r<s;r++)c+=this._dynamicOverlays[r].render(n.startLineNumber,t);return this._renderedContent===c?!1:(this._renderedContent=c,l.appendASCIIString('<div style="position:absolute;top:'),l.appendASCIIString(String(i)),l.appendASCIIString("px;width:100%;height:"),l.appendASCIIString(String(this._lineHeight)),l.appendASCIIString('px;">'),l.appendASCIIString(c),l.appendASCIIString("</div>"),!0)}layoutLine(t,i){this._domNode&&(this._domNode.setTop(i),this._domNode.setHeight(this._lineHeight))}}e.ViewOverlayLine=b;class p extends w{constructor(t){super(t);const n=this._context.configuration.options.get(131);this._contentWidth=n.contentWidth,this.domNode.setHeight(0)}onConfigurationChanged(t){const n=this._context.configuration.options.get(131);return this._contentWidth=n.contentWidth,super.onConfigurationChanged(t)||!0}onScrollChanged(t){return super.onScrollChanged(t)||t.scrollWidthChanged}_viewOverlaysRender(t){super._viewOverlaysRender(t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))}}e.ContentViewOverlays=p;class h extends w{constructor(t){super(t);const i=this._context.configuration.options,n=i.get(131);this._contentLeft=n.contentLeft,this.domNode.setClassName("margin-view-overlays"),this.domNode.setWidth(1),(0,m.applyFontInfo)(this.domNode,i.get(44))}onConfigurationChanged(t){const i=this._context.configuration.options;(0,m.applyFontInfo)(this.domNode,i.get(44));const n=i.get(131);return this._contentLeft=n.contentLeft,super.onConfigurationChanged(t)||!0}onScrollChanged(t){return super.onScrollChanged(t)||t.scrollHeightChanged}_viewOverlaysRender(t){super._viewOverlaysRender(t);const i=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)}}e.MarginViewOverlays=h}),define(te[510],ie([1,0,7,30,8,62,31,11,3,141]),function(j,e,y,m,D,I,w,b,p,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ViewCursor=void 0;class g{constructor(n,l,c,r,s,o){this.top=n,this.left=l,this.width=c,this.height=r,this.textContent=s,this.textContentClassName=o}}class t{constructor(n){this._context=n;const l=this._context.configuration.options,c=l.get(44);this._cursorStyle=l.get(24),this._lineHeight=l.get(59),this._typicalHalfwidthCharacterWidth=c.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(l.get(27),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=(0,m.createFastDomNode)(document.createElement("div")),this._domNode.setClassName(`cursor ${h.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME}`),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),(0,I.applyFontInfo)(this._domNode,c),this._domNode.setDisplay("none"),this._position=new b.Position(1,1),this._lastRenderedContent="",this._renderData=null}getDomNode(){return this._domNode}getPosition(){return this._position}show(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)}hide(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)}onConfigurationChanged(n){const l=this._context.configuration.options,c=l.get(44);return this._cursorStyle=l.get(24),this._lineHeight=l.get(59),this._typicalHalfwidthCharacterWidth=c.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(l.get(27),this._typicalHalfwidthCharacterWidth),(0,I.applyFontInfo)(this._domNode,c),!0}onCursorPositionChanged(n){return this._position=n,!0}_getGraphemeAwarePosition(){const{lineNumber:n,column:l}=this._position,c=this._context.model.getLineContent(n),[r,s]=D.getCharContainingOffset(c,l-1);return[new b.Position(n,r+1),c.substring(r,s)]}_prepareRender(n){let l="";const[c,r]=this._getGraphemeAwarePosition();if(this._cursorStyle===w.TextEditorCursorStyle.Line||this._cursorStyle===w.TextEditorCursorStyle.LineThin){const v=n.visibleRangeForPosition(c);if(!v||v.outsideRenderedLine)return null;let C;this._cursorStyle===w.TextEditorCursorStyle.Line?(C=y.computeScreenAwareSize(this._lineCursorWidth>0?this._lineCursorWidth:2),C>2&&(l=r)):C=y.computeScreenAwareSize(1);let _=v.left;C>=2&&_>=1&&(_-=1);const L=n.getVerticalOffsetForLineNumber(c.lineNumber)-n.bigNumbersDelta;return new g(L,_,C,this._lineHeight,l,"")}const s=n.linesVisibleRangesForRange(new p.Range(c.lineNumber,c.column,c.lineNumber,c.column+r.length),!1);if(!s||s.length===0)return null;const o=s[0];if(o.outsideRenderedLine||o.ranges.length===0)return null;const a=o.ranges[0],d=a.width<1?this._typicalHalfwidthCharacterWidth:a.width;let u="";if(this._cursorStyle===w.TextEditorCursorStyle.Block){const v=this._context.model.getViewLineData(c.lineNumber);l=r;const C=v.tokens.findTokenIndexAtOffset(c.column-1);u=v.tokens.getClassName(C)}let f=n.getVerticalOffsetForLineNumber(c.lineNumber)-n.bigNumbersDelta,S=this._lineHeight;return(this._cursorStyle===w.TextEditorCursorStyle.Underline||this._cursorStyle===w.TextEditorCursorStyle.UnderlineThin)&&(f+=this._lineHeight-2,S=2),new g(f,a.left,d,S,l,u)}prepareRender(n){this._renderData=this._prepareRender(n)}render(n){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName(`cursor ${h.MOUSE_CURSOR_TEXT_CSS_CLASS_NAME} ${this._renderData.textContentClassName}`),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)}}e.ViewCursor=t}),define(te[267],ie([1,0,11,3,69,31]),function(j,e,y,m,D,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isModelDecorationInString=e.isModelDecorationInComment=e.isModelDecorationVisible=e.ViewModelDecorations=void 0;class w{constructor(i,n,l,c,r){this.editorId=i,this.model=n,this.configuration=l,this._linesCollection=c,this._coordinatesConverter=r,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}_clearCachedModelDecorationsResolver(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}dispose(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}reset(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onModelDecorationsChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}onLineMappingChanged(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}_getOrCreateViewModelDecoration(i){const n=i.id;let l=this._decorationsCache[n];if(!l){const c=i.range,r=i.options;let s;if(r.isWholeLine){const o=this._coordinatesConverter.convertModelPositionToViewPosition(new y.Position(c.startLineNumber,1),0),a=this._coordinatesConverter.convertModelPositionToViewPosition(new y.Position(c.endLineNumber,this.model.getLineMaxColumn(c.endLineNumber)),1);s=new m.Range(o.lineNumber,o.column,a.lineNumber,a.column)}else s=this._coordinatesConverter.convertModelRangeToViewRange(c,1);l=new D.ViewModelDecoration(s,r),this._decorationsCache[n]=l}return l}getDecorationsViewportData(i){let n=this._cachedModelDecorationsResolver!==null;return n=n&&i.equalsRange(this._cachedModelDecorationsResolverViewRange),n||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(i),this._cachedModelDecorationsResolverViewRange=i),this._cachedModelDecorationsResolver}_getDecorationsViewportData(i){const n=this._linesCollection.getDecorationsInRange(i,this.editorId,(0,I.filterValidationDecorations)(this.configuration.options)),l=i.startLineNumber,c=i.endLineNumber,r=[];let s=0;const o=[];for(let a=l;a<=c;a++)o[a-l]=[];for(let a=0,d=n.length;a<d;a++){const u=n[a],f=u.options;if(!b(this.model,u))continue;const S=this._getOrCreateViewModelDecoration(u),v=S.range;if(r[s++]=S,f.inlineClassName){const C=new D.InlineDecoration(v,f.inlineClassName,f.inlineClassNameAffectsLetterSpacing?3:0),_=Math.max(l,v.startLineNumber),L=Math.min(c,v.endLineNumber);for(let E=_;E<=L;E++)o[E-l].push(C)}if(f.beforeContentClassName&&l<=v.startLineNumber&&v.startLineNumber<=c){const C=new D.InlineDecoration(new m.Range(v.startLineNumber,v.startColumn,v.startLineNumber,v.startColumn),f.beforeContentClassName,1);o[v.startLineNumber-l].push(C)}if(f.afterContentClassName&&l<=v.endLineNumber&&v.endLineNumber<=c){const C=new D.InlineDecoration(new m.Range(v.endLineNumber,v.endColumn,v.endLineNumber,v.endColumn),f.afterContentClassName,2);o[v.endLineNumber-l].push(C)}}return{decorations:r,inlineDecorations:o}}}e.ViewModelDecorations=w;function b(t,i){return!(i.options.hideInCommentTokens&&p(t,i)||i.options.hideInStringTokens&&h(t,i))}e.isModelDecorationVisible=b;function p(t,i){return g(t,i.range,n=>n===1)}e.isModelDecorationInComment=p;function h(t,i){return g(t,i.range,n=>n===2)}e.isModelDecorationInString=h;function g(t,i,n){for(let l=i.startLineNumber;l<=i.endLineNumber;l++){const c=t.getLineTokens(l),r=l===i.startLineNumber,s=l===i.endLineNumber;let o=r?c.findTokenIndexAtOffset(i.startColumn-1):0;for(;o<c.getCount()&&!(s&&c.getStartOffset(o)>i.endColumn-1);){if(!n(c.getStandardTokenType(o)))return!1;o++}}return!0}}),define(te[511],ie([5,6]),function(j,e){return j.create("vs/editor/common/core/editorColorRegistry",e)}),define(te[512],ie([5,6]),function(j,e){return j.create("vs/editor/common/editorContextKeys",e)}),define(te[513],ie([5,6]),function(j,e){return j.create("vs/editor/common/languages/modesRegistry",e)}),define(te[514],ie([5,6]),function(j,e){return j.create("vs/editor/common/model/editStack",e)}),define(te[268],ie([1,0,514,13,22,25,237,110,41]),function(j,e,y,m,D,I,w,b,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditStack=e.isEditStackElement=e.MultiModelEditStackElement=e.SingleModelEditStackElement=e.SingleModelEditStackData=void 0;function h(r){return r.toString()}class g{constructor(s,o,a,d,u,f,S){this.beforeVersionId=s,this.afterVersionId=o,this.beforeEOL=a,this.afterEOL=d,this.beforeCursorState=u,this.afterCursorState=f,this.changes=S}static create(s,o){const a=s.getAlternativeVersionId(),d=n(s);return new g(a,a,d,d,o,o,[])}append(s,o,a,d,u){o.length>0&&(this.changes=(0,w.compressConsecutiveTextChanges)(this.changes,o)),this.afterEOL=a,this.afterVersionId=d,this.afterCursorState=u}static _writeSelectionsSize(s){return 4+4*4*(s?s.length:0)}static _writeSelections(s,o,a){if(b.writeUInt32BE(s,o?o.length:0,a),a+=4,o)for(const d of o)b.writeUInt32BE(s,d.selectionStartLineNumber,a),a+=4,b.writeUInt32BE(s,d.selectionStartColumn,a),a+=4,b.writeUInt32BE(s,d.positionLineNumber,a),a+=4,b.writeUInt32BE(s,d.positionColumn,a),a+=4;return a}static _readSelections(s,o,a){const d=b.readUInt32BE(s,o);o+=4;for(let u=0;u<d;u++){const f=b.readUInt32BE(s,o);o+=4;const S=b.readUInt32BE(s,o);o+=4;const v=b.readUInt32BE(s,o);o+=4;const C=b.readUInt32BE(s,o);o+=4,a.push(new D.Selection(f,S,v,C))}return o}serialize(){let s=4+4+1+1+g._writeSelectionsSize(this.beforeCursorState)+g._writeSelectionsSize(this.afterCursorState)+4;for(const d of this.changes)s+=d.writeSize();const o=new Uint8Array(s);let a=0;b.writeUInt32BE(o,this.beforeVersionId,a),a+=4,b.writeUInt32BE(o,this.afterVersionId,a),a+=4,b.writeUInt8(o,this.beforeEOL,a),a+=1,b.writeUInt8(o,this.afterEOL,a),a+=1,a=g._writeSelections(o,this.beforeCursorState,a),a=g._writeSelections(o,this.afterCursorState,a),b.writeUInt32BE(o,this.changes.length,a),a+=4;for(const d of this.changes)a=d.write(o,a);return o.buffer}static deserialize(s){const o=new Uint8Array(s);let a=0;const d=b.readUInt32BE(o,a);a+=4;const u=b.readUInt32BE(o,a);a+=4;const f=b.readUInt8(o,a);a+=1;const S=b.readUInt8(o,a);a+=1;const v=[];a=g._readSelections(o,a,v);const C=[];a=g._readSelections(o,a,C);const _=b.readUInt32BE(o,a);a+=4;const L=[];for(let E=0;E<_;E++)a=w.TextChange.read(o,a,L);return new g(d,u,f,S,v,C,L)}}e.SingleModelEditStackData=g;class t{constructor(s,o){this.model=s,this._data=g.create(s,o)}get type(){return 0}get resource(){return I.URI.isUri(this.model)?this.model:this.model.uri}get label(){return y.localize(0,null)}toString(){return(this._data instanceof g?this._data:g.deserialize(this._data)).changes.map(o=>o.toString()).join(", ")}matchesResource(s){return(I.URI.isUri(this.model)?this.model:this.model.uri).toString()===s.toString()}setModel(s){this.model=s}canAppend(s){return this.model===s&&this._data instanceof g}append(s,o,a,d,u){this._data instanceof g&&this._data.append(s,o,a,d,u)}close(){this._data instanceof g&&(this._data=this._data.serialize())}open(){this._data instanceof g||(this._data=g.deserialize(this._data))}undo(){if(I.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof g&&(this._data=this._data.serialize());const s=g.deserialize(this._data);this.model._applyUndo(s.changes,s.beforeEOL,s.beforeVersionId,s.beforeCursorState)}redo(){if(I.URI.isUri(this.model))throw new Error("Invalid SingleModelEditStackElement");this._data instanceof g&&(this._data=this._data.serialize());const s=g.deserialize(this._data);this.model._applyRedo(s.changes,s.afterEOL,s.afterVersionId,s.afterCursorState)}heapSize(){return this._data instanceof g&&(this._data=this._data.serialize()),this._data.byteLength+168}}e.SingleModelEditStackElement=t;class i{constructor(s,o){this.type=1,this.label=s,this._isOpen=!0,this._editStackElementsArr=o.slice(0),this._editStackElementsMap=new Map;for(const a of this._editStackElementsArr){const d=h(a.resource);this._editStackElementsMap.set(d,a)}this._delegate=null}get resources(){return this._editStackElementsArr.map(s=>s.resource)}prepareUndoRedo(){if(this._delegate)return this._delegate.prepareUndoRedo(this)}matchesResource(s){const o=h(s);return this._editStackElementsMap.has(o)}setModel(s){const o=h(I.URI.isUri(s)?s:s.uri);this._editStackElementsMap.has(o)&&this._editStackElementsMap.get(o).setModel(s)}canAppend(s){if(!this._isOpen)return!1;const o=h(s.uri);return this._editStackElementsMap.has(o)?this._editStackElementsMap.get(o).canAppend(s):!1}append(s,o,a,d,u){const f=h(s.uri);this._editStackElementsMap.get(f).append(s,o,a,d,u)}close(){this._isOpen=!1}open(){}undo(){this._isOpen=!1;for(const s of this._editStackElementsArr)s.undo()}redo(){for(const s of this._editStackElementsArr)s.redo()}heapSize(s){const o=h(s);return this._editStackElementsMap.has(o)?this._editStackElementsMap.get(o).heapSize():0}split(){return this._editStackElementsArr}toString(){let s=[];for(const o of this._editStackElementsArr)s.push(`${(0,p.basename)(o.resource)}: ${o}`);return`{${s.join(", ")}}`}}e.MultiModelEditStackElement=i;function n(r){return r.getEOL()===`
544`?0:1}function l(r){return r?r instanceof t||r instanceof i:!1}e.isEditStackElement=l;class c{constructor(s,o){this._model=s,this._undoRedoService=o}pushStackElement(){const s=this._undoRedoService.getLastElement(this._model.uri);l(s)&&s.close()}popStackElement(){const s=this._undoRedoService.getLastElement(this._model.uri);l(s)&&s.open()}clear(){this._undoRedoService.removeElements(this._model.uri)}_getOrCreateEditStackElement(s){const o=this._undoRedoService.getLastElement(this._model.uri);if(l(o)&&o.canAppend(this._model))return o;const a=new t(this._model,s);return this._undoRedoService.pushElement(a),a}pushEOL(s){const o=this._getOrCreateEditStackElement(null);this._model.setEOL(s),o.append(this._model,[],n(this._model),this._model.getAlternativeVersionId(),null)}pushEditOperation(s,o,a){const d=this._getOrCreateEditStackElement(s),u=this._model.applyEdits(o,!0),f=c._computeCursorState(a,u),S=u.map((v,C)=>({index:C,textChange:v.textChange}));return S.sort((v,C)=>v.textChange.oldPosition===C.textChange.oldPosition?v.index-C.index:v.textChange.oldPosition-C.textChange.oldPosition),d.append(this._model,S.map(v=>v.textChange),n(this._model),this._model.getAlternativeVersionId(),f),f}static _computeCursorState(s,o){try{return s?s(o):null}catch(a){return(0,m.onUnexpectedError)(a),null}}}e.EditStack=c}),define(te[515],ie([5,6]),function(j,e){return j.create("vs/editor/common/standaloneStrings",e)}),define(te[70],ie([1,0,515]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StandaloneServicesNLS=e.ToggleHighContrastNLS=e.StandaloneCodeEditorNLS=e.QuickOutlineNLS=e.QuickCommandNLS=e.QuickHelpNLS=e.GoToLineNLS=e.InspectTokensNLS=e.AccessibilityHelpNLS=void 0;var m;(function(i){i.noSelection=y.localize(0,null),i.singleSelectionRange=y.localize(1,null),i.singleSelection=y.localize(2,null),i.multiSelectionRange=y.localize(3,null),i.multiSelection=y.localize(4,null),i.emergencyConfOn=y.localize(5,null),i.openingDocs=y.localize(6,null),i.readonlyDiffEditor=y.localize(7,null),i.editableDiffEditor=y.localize(8,null),i.readonlyEditor=y.localize(9,null),i.editableEditor=y.localize(10,null),i.changeConfigToOnMac=y.localize(11,null),i.changeConfigToOnWinLinux=y.localize(12,null),i.auto_on=y.localize(13,null),i.auto_off=y.localize(14,null),i.tabFocusModeOnMsg=y.localize(15,null),i.tabFocusModeOnMsgNoKb=y.localize(16,null),i.tabFocusModeOffMsg=y.localize(17,null),i.tabFocusModeOffMsgNoKb=y.localize(18,null),i.openDocMac=y.localize(19,null),i.openDocWinLinux=y.localize(20,null),i.outroMsg=y.localize(21,null),i.showAccessibilityHelpAction=y.localize(22,null)})(m=e.AccessibilityHelpNLS||(e.AccessibilityHelpNLS={}));var D;(function(i){i.inspectTokensAction=y.localize(23,null)})(D=e.InspectTokensNLS||(e.InspectTokensNLS={}));var I;(function(i){i.gotoLineActionLabel=y.localize(24,null)})(I=e.GoToLineNLS||(e.GoToLineNLS={}));var w;(function(i){i.helpQuickAccessActionLabel=y.localize(25,null)})(w=e.QuickHelpNLS||(e.QuickHelpNLS={}));var b;(function(i){i.quickCommandActionLabel=y.localize(26,null),i.quickCommandHelp=y.localize(27,null)})(b=e.QuickCommandNLS||(e.QuickCommandNLS={}));var p;(function(i){i.quickOutlineActionLabel=y.localize(28,null),i.quickOutlineByCategoryActionLabel=y.localize(29,null)})(p=e.QuickOutlineNLS||(e.QuickOutlineNLS={}));var h;(function(i){i.editorViewAccessibleLabel=y.localize(30,null),i.accessibilityHelpMessage=y.localize(31,null)})(h=e.StandaloneCodeEditorNLS||(e.StandaloneCodeEditorNLS={}));var g;(function(i){i.toggleHighContrast=y.localize(32,null)})(g=e.ToggleHighContrastNLS||(e.ToggleHighContrastNLS={}));var t;(function(i){i.bulkEditServiceSummary=y.localize(33,null)})(t=e.StandaloneServicesNLS||(e.StandaloneServicesNLS={}))}),define(te[516],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/anchorSelect/browser/anchorSelect",e)}),define(te[517],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/bracketMatching/browser/bracketMatching",e)}),define(te[518],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/caretOperations/browser/caretOperations",e)}),define(te[519],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/caretOperations/browser/transpose",e)}),define(te[520],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/clipboard/browser/clipboard",e)}),define(te[521],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/codeAction/browser/codeActionCommands",e)}),define(te[522],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/codeAction/browser/lightBulbWidget",e)}),define(te[523],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/codelens/browser/codelensController",e)}),define(te[524],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/colorPicker/browser/colorPickerWidget",e)}),define(te[525],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/comment/browser/comment",e)}),define(te[526],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/contextmenu/browser/contextmenu",e)}),define(te[527],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/cursorUndo/browser/cursorUndo",e)}),define(te[528],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/editorState/browser/keybindingCancellation",e)}),define(te[529],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/find/browser/findController",e)}),define(te[530],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/find/browser/findWidget",e)}),define(te[531],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/folding/browser/folding",e)}),define(te[532],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/folding/browser/foldingDecorations",e)}),define(te[533],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/fontZoom/browser/fontZoom",e)}),define(te[534],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/format/browser/format",e)}),define(te[535],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/format/browser/formatActions",e)}),define(te[536],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/gotoError/browser/gotoError",e)}),define(te[537],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/gotoError/browser/gotoErrorWidget",e)}),define(te[538],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/gotoSymbol/browser/goToCommands",e)}),define(te[539],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition",e)}),define(te[540],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/gotoSymbol/browser/peek/referencesController",e)}),define(te[541],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/gotoSymbol/browser/peek/referencesTree",e)}),define(te[542],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget",e)}),define(te[543],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/gotoSymbol/browser/referencesModel",e)}),define(te[126],ie([1,0,13,4,133,2,47,41,8,3,543]),function(j,e,y,m,D,I,w,b,p,h,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ReferencesModel=e.FileReferences=e.FilePreview=e.OneReference=void 0;class t{constructor(r,s,o,a){this.isProviderFirst=r,this.parent=s,this.link=o,this._rangeCallback=a,this.id=D.defaultGenerator.nextId()}get uri(){return this.link.uri}get range(){var r,s;return(s=(r=this._range)!==null&&r!==void 0?r:this.link.targetSelectionRange)!==null&&s!==void 0?s:this.link.range}set range(r){this._range=r,this._rangeCallback(this)}get ariaMessage(){var r;const s=(r=this.parent.getPreview(this))===null||r===void 0?void 0:r.preview(this.range);return s?(0,g.localize)(1,null,(0,b.basename)(this.uri),this.range.startLineNumber,this.range.startColumn,s.value):(0,g.localize)(0,null,(0,b.basename)(this.uri),this.range.startLineNumber,this.range.startColumn)}}e.OneReference=t;class i{constructor(r){this._modelReference=r}dispose(){this._modelReference.dispose()}preview(r,s=8){const o=this._modelReference.object.textEditorModel;if(!o)return;const{startLineNumber:a,startColumn:d,endLineNumber:u,endColumn:f}=r,S=o.getWordUntilPosition({lineNumber:a,column:d-s}),v=new h.Range(a,S.startColumn,a,d),C=new h.Range(u,f,u,1073741824),_=o.getValueInRange(v).replace(/^\s+/,""),L=o.getValueInRange(r),E=o.getValueInRange(C).replace(/\s+$/,"");return{value:_+L+E,highlight:{start:_.length,end:_.length+L.length}}}}e.FilePreview=i;class n{constructor(r,s){this.parent=r,this.uri=s,this.children=[],this._previews=new w.ResourceMap}dispose(){(0,I.dispose)(this._previews.values()),this._previews.clear()}getPreview(r){return this._previews.get(r.uri)}get ariaMessage(){const r=this.children.length;return r===1?(0,g.localize)(2,null,(0,b.basename)(this.uri),this.uri.fsPath):(0,g.localize)(3,null,r,(0,b.basename)(this.uri),this.uri.fsPath)}resolve(r){return ye(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(let s of this.children)if(!this._previews.has(s.uri))try{const o=yield r.createModelReference(s.uri);this._previews.set(s.uri,new i(o))}catch(o){(0,y.onUnexpectedError)(o)}return this})}}e.FileReferences=n;class l{constructor(r,s){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new m.Emitter,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=r,this._title=s;const[o]=r;r.sort(l._compareReferences);let a;for(let d of r)if((!a||!b.extUri.isEqual(a.uri,d.uri,!0))&&(a=new n(this,d.uri),this.groups.push(a)),a.children.length===0||l._compareReferences(d,a.children[a.children.length-1])!==0){const u=new t(o===d,a,d,f=>this._onDidChangeReferenceRange.fire(f));this.references.push(u),a.children.push(u)}}dispose(){(0,I.dispose)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new l(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?(0,g.localize)(4,null):this.references.length===1?(0,g.localize)(5,null,this.references[0].uri.fsPath):this.groups.length===1?(0,g.localize)(6,null,this.references.length,this.groups[0].uri.fsPath):(0,g.localize)(7,null,this.references.length,this.groups.length)}nextOrPreviousReference(r,s){let{parent:o}=r,a=o.children.indexOf(r),d=o.children.length,u=o.parent.groups.length;return u===1||s&&a+1<d||!s&&a>0?(s?a=(a+1)%d:a=(a+d-1)%d,o.children[a]):(a=o.parent.groups.indexOf(o),s?(a=(a+1)%u,o.parent.groups[a].children[0]):(a=(a+u-1)%u,o.parent.groups[a].children[o.parent.groups[a].children.length-1]))}nearestReference(r,s){const o=this.references.map((a,d)=>({idx:d,prefixLen:p.commonPrefixLength(a.uri.toString(),r.toString()),offsetDist:Math.abs(a.range.startLineNumber-s.lineNumber)*100+Math.abs(a.range.startColumn-s.column)})).sort((a,d)=>a.prefixLen>d.prefixLen?-1:a.prefixLen<d.prefixLen?1:a.offsetDist<d.offsetDist?-1:a.offsetDist>d.offsetDist?1:0)[0];if(o)return this.references[o.idx]}referenceAt(r,s){for(const o of this.references)if(o.uri.toString()===r.toString()&&h.Range.containsPosition(o.range,s))return o}firstReference(){for(const r of this.references)if(r.isProviderFirst)return r;return this.references[0]}static _compareReferences(r,s){return b.extUri.compare(r.uri,s.uri)||h.Range.compareRangesUsingStarts(r.range,s.range)}}e.ReferencesModel=l}),define(te[544],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/gotoSymbol/browser/symbolNavigation",e)}),define(te[545],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/hover/browser/hover",e)}),define(te[546],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/hover/browser/markdownHoverParticipant",e)}),define(te[547],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/hover/browser/markerHoverParticipant",e)}),define(te[548],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace",e)}),define(te[549],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/indentation/browser/indentation",e)}),define(te[550],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/inlineCompletions/browser/ghostTextController",e)}),define(te[551],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHoverParticipant",e)}),define(te[552],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/lineSelection/browser/lineSelection",e)}),define(te[553],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/linesOperations/browser/linesOperations",e)}),define(te[554],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/linkedEditing/browser/linkedEditing",e)}),define(te[555],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/links/browser/links",e)}),define(te[556],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/message/browser/messageController",e)}),define(te[557],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/multicursor/browser/multicursor",e)}),define(te[558],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/parameterHints/browser/parameterHints",e)}),define(te[559],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/parameterHints/browser/parameterHintsWidget",e)}),define(te[560],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/peekView/browser/peekView",e)}),define(te[561],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess",e)}),define(te[562],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess",e)}),define(te[563],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/rename/browser/rename",e)}),define(te[564],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/rename/browser/renameInputField",e)}),define(te[565],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/smartSelect/browser/smartSelect",e)}),define(te[566],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/snippet/browser/snippetController2",e)}),define(te[567],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/snippet/browser/snippetVariables",e)}),define(te[568],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/suggest/browser/suggest",e)}),define(te[569],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/suggest/browser/suggestController",e)}),define(te[570],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/suggest/browser/suggestWidget",e)}),define(te[571],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/suggest/browser/suggestWidgetDetails",e)}),define(te[572],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/suggest/browser/suggestWidgetRenderer",e)}),define(te[573],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/suggest/browser/suggestWidgetStatus",e)}),define(te[574],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/symbolIcons/browser/symbolIcons",e)}),define(te[575],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode",e)}),define(te[576],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/tokenization/browser/tokenization",e)}),define(te[577],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter",e)}),define(te[578],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators",e)}),define(te[579],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/wordHighlighter/browser/wordHighlighter",e)}),define(te[580],ie([5,6]),function(j,e){return j.create("vs/editor/contrib/wordOperations/browser/wordOperations",e)}),define(te[581],ie([5,6]),function(j,e){return j.create("vs/platform/actions/browser/menuEntryActionViewItem",e)}),define(te[582],ie([5,6]),function(j,e){return j.create("vs/platform/configuration/common/configurationRegistry",e)}),define(te[583],ie([5,6]),function(j,e){return j.create("vs/platform/contextkey/browser/contextKeyService",e)}),define(te[584],ie([5,6]),function(j,e){return j.create("vs/platform/contextkey/common/contextkeys",e)}),define(te[585],ie([5,6]),function(j,e){return j.create("vs/platform/keybinding/common/abstractKeybindingService",e)}),define(te[586],ie([5,6]),function(j,e){return j.create("vs/platform/list/browser/listService",e)}),define(te[587],ie([5,6]),function(j,e){return j.create("vs/platform/markers/common/markers",e)}),define(te[588],ie([5,6]),function(j,e){return j.create("vs/platform/quickinput/browser/commandsQuickAccess",e)}),define(te[589],ie([5,6]),function(j,e){return j.create("vs/platform/quickinput/browser/helpQuickAccess",e)}),define(te[590],ie([5,6]),function(j,e){return j.create("vs/platform/theme/common/colorRegistry",e)}),define(te[591],ie([5,6]),function(j,e){return j.create("vs/platform/theme/common/iconRegistry",e)}),define(te[592],ie([5,6]),function(j,e){return j.create("vs/platform/undoRedo/common/undoRedoService",e)}),define(te[593],ie([5,6]),function(j,e){return j.create("vs/platform/workspaces/common/workspaces",e)}),define(te[594],ie([1,0]),function(j,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EditorOpenContext=void 0;var y;(function(m){m[m.API=0]="API",m[m.USER=1]="USER"})(y=e.EditorOpenContext||(e.EditorOpenContext={}))}),define(te[595],ie([1,0]),function(j,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExtensionIdentifier=void 0;class y{constructor(D){this.value=D,this._lower=D.toLowerCase()}static toKey(D){return typeof D=="string"?D.toLowerCase():D._lower}}e.ExtensionIdentifier=y}),define(te[269],ie([1,0]),function(j,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileKind=void 0;var y;(function(m){m[m.FILE=0]="FILE",m[m.FOLDER=1]="FOLDER",m[m.ROOT_FOLDER=2]="ROOT_FOLDER"})(y=e.FileKind||(e.FileKind={}))}),define(te[596],ie([1,0]),function(j,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showHistoryKeybindingHint=void 0;function y(m){var D,I;return((D=m.lookupKeybinding("history.showPrevious"))===null||D===void 0?void 0:D.getElectronAccelerator())==="Up"&&((I=m.lookupKeybinding("history.showNext"))===null||I===void 0?void 0:I.getElectronAccelerator())==="Down"}e.showHistoryKeybindingHint=y}),define(te[194],ie([1,0]),function(j,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SyncDescriptor=void 0;class y{constructor(D,I=[],w=!1){this.ctor=D,this.staticArguments=I,this.supportsDelayedInstantiation=w}}e.SyncDescriptor=y}),define(te[53],ie([1,0,194]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSingletonServiceDescriptors=e.registerSingleton=void 0;const m=[];function D(w,b,p){b instanceof y.SyncDescriptor||(b=new y.SyncDescriptor(b,[],p)),m.push([w,b])}e.registerSingleton=D;function I(){return m}e.getSingletonServiceDescriptors=I}),define(te[597],ie([1,0]),function(j,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Graph=e.Node=void 0;class y{constructor(I){this.incoming=new Map,this.outgoing=new Map,this.data=I}}e.Node=y;class m{constructor(I){this._hashFn=I,this._nodes=new Map}roots(){const I=[];for(let w of this._nodes.values())w.outgoing.size===0&&I.push(w);return I}insertEdge(I,w){const b=this.lookupOrInsertNode(I),p=this.lookupOrInsertNode(w);b.outgoing.set(this._hashFn(w),p),p.incoming.set(this._hashFn(I),b)}removeNode(I){const w=this._hashFn(I);this._nodes.delete(w);for(let b of this._nodes.values())b.outgoing.delete(w),b.incoming.delete(w)}lookupOrInsertNode(I){const w=this._hashFn(I);let b=this._nodes.get(w);return b||(b=new y(I),this._nodes.set(w,b)),b}isEmpty(){return this._nodes.size===0}toString(){let I=[];for(let[w,b]of this._nodes)I.push(`${w}, (incoming)[${[...b.incoming.keys()].join(", ")}], (outgoing)[${[...b.outgoing.keys()].join(",")}]`);return I.join(`
545`)}findCycleSlow(){for(let[I,w]of this._nodes){const b=new Set([I]),p=this._findCycle(w,b);if(p)return p}}_findCycle(I,w){for(let[b,p]of I.outgoing){if(w.has(b))return[...w,b].join(" -> ");w.add(b);const h=this._findCycle(p,w);if(h)return h;w.delete(b)}}}e.Graph=m}),define(te[9],ie([1,0]),function(j,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createDecorator=e.IInstantiationService=e._util=void 0;var y;(function(I){I.serviceIds=new Map,I.DI_TARGET="$di$target",I.DI_DEPENDENCIES="$di$dependencies";function w(b){return b[I.DI_DEPENDENCIES]||[]}I.getServiceDependencies=w})(y=e._util||(e._util={})),e.IInstantiationService=D("instantiationService");function m(I,w,b,p){w[y.DI_TARGET]===w?w[y.DI_DEPENDENCIES].push({id:I,index:b,optional:p}):(w[y.DI_DEPENDENCIES]=[{id:I,index:b,optional:p}],w[y.DI_TARGET]=w)}function D(I){if(y.serviceIds.has(I))return y.serviceIds.get(I);const w=function(b,p,h){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");m(w,b,h,!1)};return w.toString=()=>I,y.serviceIds.set(I,w),w}e.createDecorator=D}),define(te[195],ie([1,0,9,25,20]),function(j,e,y,m,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResourceFileEdit=e.ResourceTextEdit=e.ResourceEdit=e.IBulkEditService=void 0,e.IBulkEditService=(0,y.createDecorator)("IWorkspaceEditService");function I(g){return(0,D.isObject)(g)&&(Boolean(g.newUri)||Boolean(g.oldUri))}function w(g){return(0,D.isObject)(g)&&m.URI.isUri(g.resource)&&(0,D.isObject)(g.edit)}class b{constructor(t){this.metadata=t}static convert(t){return t.edits.map(i=>{if(w(i))return new p(i.resource,i.edit,i.modelVersionId,i.metadata);if(I(i))return new h(i.oldUri,i.newUri,i.options,i.metadata);throw new Error("Unsupported edit")})}}e.ResourceEdit=b;class p extends b{constructor(t,i,n,l){super(l);this.resource=t,this.textEdit=i,this.versionId=n}}e.ResourceTextEdit=p;class h extends b{constructor(t,i,n,l){super(l);this.oldResource=t,this.newResource=i,this.options=n}}e.ResourceFileEdit=h}),define(te[28],ie([1,0,9]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ICodeEditorService=void 0,e.ICodeEditorService=(0,y.createDecorator)("codeEditorService")}),define(te[85],ie([1,0,9]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IEditorWorkerService=e.ID_EDITOR_WORKER_SERVICE=void 0,e.ID_EDITOR_WORKER_SERVICE="editorWorkerService",e.IEditorWorkerService=(0,y.createDecorator)(e.ID_EDITOR_WORKER_SERVICE)}),define(te[35],ie([1,0,9]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ILanguageService=void 0,e.ILanguageService=(0,y.createDecorator)("languageService")}),define(te[196],ie([1,0,9]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IMarkerDecorationsService=void 0,e.IMarkerDecorationsService=(0,y.createDecorator)("markerDecorationsService")}),define(te[45],ie([1,0,9]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IModelService=void 0,e.IModelService=(0,y.createDecorator)("modelService")}),define(te[58],ie([1,0,9]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITextModelService=void 0,e.ITextModelService=(0,y.createDecorator)("textModelService")}),define(te[153],ie([1,0,9]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ITextResourcePropertiesService=e.ITextResourceConfigurationService=void 0,e.ITextResourceConfigurationService=(0,y.createDecorator)("textResourceConfigurationService"),e.ITextResourcePropertiesService=(0,y.createDecorator)("textResourcePropertiesService")}),define(te[101],ie([1,0,9]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IStandaloneThemeService=void 0,e.IStandaloneThemeService=(0,y.createDecorator)("themeService")}),define(te[102],ie([1,0,9]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IClipboardService=void 0,e.IClipboardService=(0,y.createDecorator)("clipboardService")}),define(te[26],ie([1,0,4,54,2,81,20,9]),function(j,e,y,m,D,I,w,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NullCommandService=e.CommandsRegistry=e.ICommandService=void 0,e.ICommandService=(0,b.createDecorator)("commandService"),e.CommandsRegistry=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new y.Emitter,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(p,h){if(!p)throw new Error("invalid command");if(typeof p=="string"){if(!h)throw new Error("invalid command");return this.registerCommand({id:p,handler:h})}if(p.description){const l=[];for(let r of p.description.args)l.push(r.constraint);const c=p.handler;p.handler=function(r,...s){return(0,w.validateConstraints)(s,l),c(r,...s)}}const{id:g}=p;let t=this._commands.get(g);t||(t=new I.LinkedList,this._commands.set(g,t));let i=t.unshift(p),n=(0,D.toDisposable)(()=>{i();const l=this._commands.get(g);(l==null?void 0:l.isEmpty())&&this._commands.delete(g)});return this._onDidRegisterCommand.fire(g),n}registerCommandAlias(p,h){return e.CommandsRegistry.registerCommand(p,(g,...t)=>g.get(e.ICommandService).executeCommand(h,...t))}getCommand(p){const h=this._commands.get(p);if(!(!h||h.isEmpty()))return m.Iterable.first(h)}getCommands(){const p=new Map;for(const h of this._commands.keys()){const g=this.getCommand(h);g&&p.set(h,g)}return p}},e.NullCommandService={_serviceBrand:void 0,onWillExecuteCommand:()=>D.Disposable.None,onDidExecuteCommand:()=>D.Disposable.None,executeCommand(){return Promise.resolve(void 0)}},e.CommandsRegistry.registerCommand("noop",()=>{})}),define(te[270],ie([1,0,21,13,25,18,45,26,20,423,3]),function(j,e,y,m,D,I,w,b,p,h,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDocumentRangeSemanticTokens=e.hasDocumentRangeSemanticTokensProvider=e.getDocumentSemanticTokens=e.hasDocumentSemanticTokensProvider=e.DocumentSemanticTokensResult=e.isSemanticTokensEdits=e.isSemanticTokens=void 0;function t(f){return f&&!!f.data}e.isSemanticTokens=t;function i(f){return f&&Array.isArray(f.edits)}e.isSemanticTokensEdits=i;class n{constructor(S,v,C){this.provider=S,this.tokens=v,this.error=C}}e.DocumentSemanticTokensResult=n;function l(f){return I.DocumentSemanticTokensProviderRegistry.has(f)}e.hasDocumentSemanticTokensProvider=l;function c(f){const S=I.DocumentSemanticTokensProviderRegistry.orderedGroups(f);return S.length>0?S[0]:[]}function r(f,S,v,C){return ye(this,void 0,void 0,function*(){const _=c(f),L=yield Promise.all(_.map(E=>ye(this,void 0,void 0,function*(){let N,k=null;try{N=yield E.provideDocumentSemanticTokens(f,E===S?v:null,C)}catch(M){k=M,N=null}return(!N||!t(N)&&!i(N))&&(N=null),new n(E,N,k)})));for(const E of L){if(E.error)throw E.error;if(E.tokens)return E}return L.length>0?L[0]:null})}e.getDocumentSemanticTokens=r;function s(f){const S=I.DocumentSemanticTokensProviderRegistry.orderedGroups(f);return S.length>0?S[0]:null}class o{constructor(S,v){this.provider=S,this.tokens=v}}function a(f){return I.DocumentRangeSemanticTokensProviderRegistry.has(f)}e.hasDocumentRangeSemanticTokensProvider=a;function d(f){const S=I.DocumentRangeSemanticTokensProviderRegistry.orderedGroups(f);return S.length>0?S[0]:[]}function u(f,S,v){return ye(this,void 0,void 0,function*(){const C=d(f),_=yield Promise.all(C.map(L=>ye(this,void 0,void 0,function*(){let E;try{E=yield L.provideDocumentRangeSemanticTokens(f,S,v)}catch(N){(0,m.onUnexpectedExternalError)(N),E=null}return(!E||!t(E))&&(E=null),new o(L,E)})));for(const L of _)if(L.tokens)return L;return _.length>0?_[0]:null})}e.getDocumentRangeSemanticTokens=u,b.CommandsRegistry.registerCommand("_provideDocumentSemanticTokensLegend",(f,...S)=>ye(void 0,void 0,void 0,function*(){const[v]=S;(0,p.assertType)(v instanceof D.URI);const C=f.get(w.IModelService).getModel(v);if(!C)return;const _=s(C);return _?_[0].getLegend():f.get(b.ICommandService).executeCommand("_provideDocumentRangeSemanticTokensLegend",v)})),b.CommandsRegistry.registerCommand("_provideDocumentSemanticTokens",(f,...S)=>ye(void 0,void 0,void 0,function*(){const[v]=S;(0,p.assertType)(v instanceof D.URI);const C=f.get(w.IModelService).getModel(v);if(!C)return;if(!l(C))return f.get(b.ICommandService).executeCommand("_provideDocumentRangeSemanticTokens",v,C.getFullModelRange());const _=yield r(C,null,null,y.CancellationToken.None);if(!_)return;const{provider:L,tokens:E}=_;if(!E||!t(E))return;const N=(0,h.encodeSemanticTokensDto)({id:0,type:"full",data:E.data});return E.resultId&&L.releaseDocumentSemanticTokens(E.resultId),N})),b.CommandsRegistry.registerCommand("_provideDocumentRangeSemanticTokensLegend",(f,...S)=>ye(void 0,void 0,void 0,function*(){const[v,C]=S;(0,p.assertType)(v instanceof D.URI);const _=f.get(w.IModelService).getModel(v);if(!_)return;const L=d(_);if(L.length===0)return;if(L.length===1)return L[0].getLegend();if(!C||!g.Range.isIRange(C))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),L[0].getLegend();const E=yield u(_,g.Range.lift(C),y.CancellationToken.None);if(!!E)return E.provider.getLegend()})),b.CommandsRegistry.registerCommand("_provideDocumentRangeSemanticTokens",(f,...S)=>ye(void 0,void 0,void 0,function*(){const[v,C]=S;(0,p.assertType)(v instanceof D.URI),(0,p.assertType)(g.Range.isIRange(C));const _=f.get(w.IModelService).getModel(v);if(!_)return;const L=yield u(_,g.Range.lift(C),y.CancellationToken.None);if(!(!L||!L.tokens))return(0,h.encodeSemanticTokensDto)({id:0,type:"full",data:L.tokens.data})}))}),define(te[271],ie([1,0,21,13,2,20,25,18,45,26]),function(j,e,y,m,D,I,w,b,p,h){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCodeLensModel=e.CodeLensModel=void 0;class g{constructor(){this.lenses=[],this._disposables=new D.DisposableStore}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(n,l){this._disposables.add(n);for(const c of n.lenses)this.lenses.push({symbol:c,provider:l})}}e.CodeLensModel=g;function t(i,n){return ye(this,void 0,void 0,function*(){const l=b.CodeLensProviderRegistry.ordered(i),c=new Map,r=new g,s=l.map((o,a)=>ye(this,void 0,void 0,function*(){c.set(o,a);try{const d=yield Promise.resolve(o.provideCodeLenses(i,n));d&&r.add(d,o)}catch(d){(0,m.onUnexpectedExternalError)(d)}}));return yield Promise.all(s),r.lenses=r.lenses.sort((o,a)=>o.symbol.range.startLineNumber<a.symbol.range.startLineNumber?-1:o.symbol.range.startLineNumber>a.symbol.range.startLineNumber?1:c.get(o.provider)<c.get(a.provider)?-1:c.get(o.provider)>c.get(a.provider)?1:o.symbol.range.startColumn<a.symbol.range.startColumn?-1:o.symbol.range.startColumn>a.symbol.range.startColumn?1:0),r})}e.getCodeLensModel=t,h.CommandsRegistry.registerCommand("_executeCodeLensProvider",function(i,...n){let[l,c]=n;(0,I.assertType)(w.URI.isUri(l)),(0,I.assertType)(typeof c=="number"||!c);const r=i.get(p.IModelService).getModel(l);if(!r)throw(0,m.illegalArgument)();const s=[],o=new D.DisposableStore;return t(r,y.CancellationToken.None).then(a=>{o.add(a);let d=[];for(const u of a.lenses)c==null||Boolean(u.symbol.command)?s.push(u.symbol):c-- >0&&u.provider.resolveCodeLens&&d.push(Promise.resolve(u.provider.resolveCodeLens(r,u.symbol,y.CancellationToken.None)).then(f=>s.push(f||u.symbol)));return Promise.all(d)}).then(()=>s).finally(()=>{setTimeout(()=>o.dispose(),100)})})}),define(te[272],ie([1,0,21,13,25,3,18,45,26]),function(j,e,y,m,D,I,w,b,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getColorPresentations=e.getColors=void 0;function h(t,i){const n=[],c=w.ColorProviderRegistry.ordered(t).reverse().map(r=>Promise.resolve(r.provideDocumentColors(t,i)).then(s=>{if(Array.isArray(s))for(let o of s)n.push({colorInfo:o,provider:r})}));return Promise.all(c).then(()=>n)}e.getColors=h;function g(t,i,n,l){return Promise.resolve(n.provideColorPresentations(t,i,l))}e.getColorPresentations=g,p.CommandsRegistry.registerCommand("_executeDocumentColorProvider",function(t,...i){const[n]=i;if(!(n instanceof D.URI))throw(0,m.illegalArgument)();const l=t.get(b.IModelService).getModel(n);if(!l)throw(0,m.illegalArgument)();const c=[],s=w.ColorProviderRegistry.ordered(l).reverse().map(o=>Promise.resolve(o.provideDocumentColors(l,y.CancellationToken.None)).then(a=>{if(Array.isArray(a))for(let d of a)c.push({range:d.range,color:[d.color.red,d.color.green,d.color.blue,d.color.alpha]})}));return Promise.all(s).then(()=>c)}),p.CommandsRegistry.registerCommand("_executeColorPresentationProvider",function(t,...i){const[n,l]=i,{uri:c,range:r}=l;if(!(c instanceof D.URI)||!Array.isArray(n)||n.length!==4||!I.Range.isIRange(r))throw(0,m.illegalArgument)();const[s,o,a,d]=n,u=t.get(b.IModelService).getModel(c);if(!u)throw(0,m.illegalArgument)();const f={range:r,color:{red:s,green:o,blue:a,alpha:d}},S=[],C=w.ColorProviderRegistry.ordered(u).reverse().map(_=>Promise.resolve(_.provideColorPresentations(u,f,y.CancellationToken.None)).then(L=>{Array.isArray(L)&&S.push(...L)}));return Promise.all(C).then(()=>S)})}),define(te[598],ie([1,0,19,21,13,2,20,25,3,18,45,26]),function(j,e,y,m,D,I,w,b,p,h,g,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLinks=e.LinksList=e.Link=void 0;class i{constructor(r,s){this._link=r,this._provider=s}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(r){return ye(this,void 0,void 0,function*(){return this._link.url?this._link.url:typeof this._provider.resolveLink=="function"?Promise.resolve(this._provider.resolveLink(this._link,r)).then(s=>(this._link=s||this._link,this._link.url?this.resolve(r):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))})}}e.Link=i;class n{constructor(r){this._disposables=new I.DisposableStore;let s=[];for(const[o,a]of r){const d=o.links.map(u=>new i(u,a));s=n._union(s,d),(0,I.isDisposable)(o)&&this._disposables.add(o)}this.links=s}dispose(){this._disposables.dispose(),this.links.length=0}static _union(r,s){let o=[],a,d,u,f;for(a=0,u=0,d=r.length,f=s.length;a<d&&u<f;){const S=r[a],v=s[u];if(p.Range.areIntersectingOrTouching(S.range,v.range)){a++;continue}p.Range.compareRangesUsingStarts(S.range,v.range)<0?(o.push(S),a++):(o.push(v),u++)}for(;a<d;a++)o.push(r[a]);for(;u<f;u++)o.push(s[u]);return o}}e.LinksList=n;function l(c,r){const s=[],o=h.LinkProviderRegistry.ordered(c).reverse().map((a,d)=>Promise.resolve(a.provideLinks(c,r)).then(u=>{u&&(s[d]=[u,a])},D.onUnexpectedExternalError));return Promise.all(o).then(()=>{const a=new n((0,y.coalesce)(s));return r.isCancellationRequested?(a.dispose(),new n([])):a})}e.getLinks=l,t.CommandsRegistry.registerCommand("_executeLinkProvider",(c,...r)=>ye(void 0,void 0,void 0,function*(){let[s,o]=r;(0,w.assertType)(s instanceof b.URI),typeof o!="number"&&(o=0);const a=c.get(g.IModelService).getModel(s);if(!a)return[];const d=yield l(a,m.CancellationToken.None);if(!d)return[];for(let f=0;f<Math.min(o,d.links.length);f++)yield d.links[f].resolve(m.CancellationToken.None);const u=d.links.slice(0);return d.dispose(),u}))}),define(te[40],ie([1,0,9]),function(j,e,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConfigurationValue=e.removeFromValueTree=e.addToValueTree=e.toValuesTree=e.IConfigurationService=void 0,e.IConfigurationService=(0,y.createDecorator)("configurationService");function m(p,h){const g=Object.create(null);for(let t in p)D(g,t,p[t],h);return g}e.toValuesTree=m;function D(p,h,g,t){const i=h.split("."),n=i.pop();let l=p;for(let c=0;c<i.length;c++){let r=i[c],s=l[r];switch(typeof s){case"undefined":s=l[r]=Object.create(null);break;case"object":break;default:t(`Ignoring ${h} as ${i.slice(0,c+1).join(".")} is ${JSON.stringify(s)}`);return}l=s}if(typeof l=="object"&&l!==null)try{l[n]=g}catch{t(`Ignoring ${h} as ${i.join(".")} is ${JSON.stringify(l)}`)}else t(`Ignoring ${h} as ${i.join(".")} is ${JSON.stringify(l)}`)}e.addToValueTree=D;function I(p,h){const g=h.split(".");w(p,g)}e.removeFromValueTree=I;function w(p,h){const g=h.shift();if(h.length===0){delete p[g];return}if(Object.keys(p).indexOf(g)!==-1){const t=p[g];typeof t=="object"&&!Array.isArray(t)&&(w(t,h),Object.keys(t).length===0&&delete p[g])}}function b(p,h,g){function t(l,c){let r=l;for(const s of c){if(typeof r!="object"||r===null)return;r=r[s]}return r}const i=h.split("."),n=t(p,i);return typeof n=="undefined"?g:n}e.getConfigurationValue=b});var Ce=this&&this.__param||function(j,e){return function(y,m){e(y,m,j)}};define(te[32],ie([1,0,4,2,8,146,119,120,407,411,408,410,177,9,40,35,53]),function(j,e,y,m,D,I,w,b,p,h,g,t,i,n,l,c,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResolvedLanguageConfiguration=e.LanguageConfigurationRegistry=e.LanguageConfigurationRegistryImpl=e.LanguageConfigurationChangeEvent=e.LanguageConfigurationService=e.ILanguageConfigurationService=e.LanguageConfigurationServiceChangeEvent=void 0;class s{constructor(k){this.languageId=k}affects(k){return this.languageId?this.languageId===k:!0}}e.LanguageConfigurationServiceChangeEvent=s,e.ILanguageConfigurationService=(0,n.createDecorator)("languageConfigurationService");let o=class extends m.Disposable{constructor(k,M){super();this.configurationService=k,this.languageService=M,this.onDidChangeEmitter=this._register(new y.Emitter),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const O=new Set(Object.values(d));this._register(this.configurationService.onDidChangeConfiguration(B=>{const T=B.change.keys.some(P=>O.has(P)),R=B.change.overrides.filter(([P,F])=>F.some(W=>O.has(W))).map(([P])=>P);if(T)this.configurations.clear(),this.onDidChangeEmitter.fire(new s(void 0));else for(const P of R)this.languageService.isRegisteredLanguageId(P)&&(this.configurations.delete(P),this.onDidChangeEmitter.fire(new s(P)))})),this._register(e.LanguageConfigurationRegistry.onDidChange(B=>{this.configurations.delete(B.languageId),this.onDidChangeEmitter.fire(new s(B.languageId))}))}getLanguageConfiguration(k){let M=this.configurations.get(k);return M||(M=a(k,this.configurationService,this.languageService),this.configurations.set(k,M)),M}};o=Ie([Ce(0,l.IConfigurationService),Ce(1,c.ILanguageService)],o),e.LanguageConfigurationService=o;function a(N,k,M){let O=e.LanguageConfigurationRegistry.getLanguageConfiguration(N);if(!O){if(!M.isRegisteredLanguageId(N))throw new Error("Unexpected languageId");O=new E(N,{})}const B=u(O.languageId,k),T=_([O.underlyingConfig,B]);return new E(O.languageId,T)}const d={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function u(N,k){const M=k.getValue(d.brackets,{overrideIdentifier:N}),O=k.getValue(d.colorizedBracketPairs,{overrideIdentifier:N});return{brackets:f(M),colorizedBracketPairs:f(O)}}function f(N){if(!!Array.isArray(N))return N.map(k=>{if(!(!Array.isArray(k)||k.length!==2))return[k[0],k[1]]}).filter(k=>!!k)}class S{constructor(k){this.languageId=k}}e.LanguageConfigurationChangeEvent=S;class v{constructor(){this._entries=new Map,this._onDidChange=new y.Emitter,this.onDidChange=this._onDidChange.event}register(k,M,O=0){let B=this._entries.get(k);B||(B=new C(k),this._entries.set(k,B));const T=B.register(M,O);return this._onDidChange.fire(new S(k)),(0,m.toDisposable)(()=>{T.dispose(),this._onDidChange.fire(new S(k))})}getLanguageConfiguration(k){const M=this._entries.get(k);return(M==null?void 0:M.getResolvedConfiguration())||null}getComments(k){const M=this.getLanguageConfiguration(k);return M&&M.comments||null}getIndentRulesSupport(k){const M=this.getLanguageConfiguration(k);return M&&M.indentRulesSupport||null}getPrecedingValidLine(k,M,O){const B=k.getLanguageIdAtPosition(M,0);if(M>1){let T,R=-1;for(T=M-1;T>=1;T--){if(k.getLanguageIdAtPosition(T,0)!==B)return R;const P=k.getLineContent(T);if(O.shouldIgnore(P)||/^\s+$/.test(P)||P===""){R=T;continue}return T}}return-1}getInheritIndentForLine(k,M,O,B=!0){if(k<4)return null;const T=this.getIndentRulesSupport(M.getLanguageId());if(!T)return null;if(O<=1)return{indentation:"",action:null};const R=this.getPrecedingValidLine(M,O,T);if(R<0)return null;if(R<1)return{indentation:"",action:null};const P=M.getLineContent(R);if(T.shouldIncrease(P)||T.shouldIndentNextLine(P))return{indentation:D.getLeadingWhitespace(P),action:w.IndentAction.Indent,line:R};if(T.shouldDecrease(P))return{indentation:D.getLeadingWhitespace(P),action:null,line:R};{if(R===1)return{indentation:D.getLeadingWhitespace(M.getLineContent(R)),action:null,line:R};const F=R-1,W=T.getIndentMetadata(M.getLineContent(F));if(!(W&(1|2))&&W&4){let A=0;for(let H=F-1;H>0;H--)if(!T.shouldIndentNextLine(M.getLineContent(H))){A=H;break}return{indentation:D.getLeadingWhitespace(M.getLineContent(A+1)),action:null,line:A+1}}if(B)return{indentation:D.getLeadingWhitespace(M.getLineContent(R)),action:null,line:R};for(let A=R;A>0;A--){const H=M.getLineContent(A);if(T.shouldIncrease(H))return{indentation:D.getLeadingWhitespace(H),action:w.IndentAction.Indent,line:A};if(T.shouldIndentNextLine(H)){let q=0;for(let X=A-1;X>0;X--)if(!T.shouldIndentNextLine(M.getLineContent(A))){q=X;break}return{indentation:D.getLeadingWhitespace(M.getLineContent(q+1)),action:null,line:q+1}}else if(T.shouldDecrease(H))return{indentation:D.getLeadingWhitespace(H),action:null,line:A}}return{indentation:D.getLeadingWhitespace(M.getLineContent(1)),action:null,line:1}}}getGoodIndentForLine(k,M,O,B,T){if(k<4)return null;const R=this.getLanguageConfiguration(O);if(!R)return null;const P=this.getIndentRulesSupport(O);if(!P)return null;const F=this.getInheritIndentForLine(k,M,B),W=M.getLineContent(B);if(F){const A=F.line;if(A!==void 0){const H=R.onEnter(k,"",M.getLineContent(A),"");if(H){let q=D.getLeadingWhitespace(M.getLineContent(A));return H.removeText&&(q=q.substring(0,q.length-H.removeText)),H.indentAction===w.IndentAction.Indent||H.indentAction===w.IndentAction.IndentOutdent?q=T.shiftIndent(q):H.indentAction===w.IndentAction.Outdent&&(q=T.unshiftIndent(q)),P.shouldDecrease(W)&&(q=T.unshiftIndent(q)),H.appendText&&(q+=H.appendText),D.getLeadingWhitespace(q)}}return P.shouldDecrease(W)?F.action===w.IndentAction.Indent?F.indentation:T.unshiftIndent(F.indentation):F.action===w.IndentAction.Indent?T.shiftIndent(F.indentation):F.indentation}return null}getIndentForEnter(k,M,O,B){if(k<4)return null;M.forceTokenization(O.startLineNumber);const T=M.getLineTokens(O.startLineNumber),R=(0,b.createScopedLineTokens)(T,O.startColumn-1),P=R.getLineContent();let F=!1,W;R.firstCharOffset>0&&T.getLanguageId(0)!==R.languageId?(F=!0,W=P.substr(0,O.startColumn-1-R.firstCharOffset)):W=T.getLineContent().substring(0,O.startColumn-1);let A;O.isEmpty()?A=P.substr(O.startColumn-1-R.firstCharOffset):A=this.getScopedLineTokens(M,O.endLineNumber,O.endColumn).getLineContent().substr(O.endColumn-1-R.firstCharOffset);const H=this.getIndentRulesSupport(R.languageId);if(!H)return null;const q=W,X=D.getLeadingWhitespace(W),G={getLineTokens:Z=>M.getLineTokens(Z),getLanguageId:()=>M.getLanguageId(),getLanguageIdAtPosition:(Z,x)=>M.getLanguageIdAtPosition(Z,x),getLineContent:Z=>Z===O.startLineNumber?q:M.getLineContent(Z)},re=D.getLeadingWhitespace(T.getLineContent()),ae=this.getInheritIndentForLine(k,G,O.startLineNumber+1);if(!ae){const Z=F?re:X;return{beforeEnter:Z,afterEnter:Z}}let oe=F?re:ae.indentation;return ae.action===w.IndentAction.Indent&&(oe=B.shiftIndent(oe)),H.shouldDecrease(A)&&(oe=B.unshiftIndent(oe)),{beforeEnter:F?re:X,afterEnter:oe}}getIndentActionForType(k,M,O,B,T){if(k<4)return null;const R=this.getScopedLineTokens(M,O.startLineNumber,O.startColumn);if(R.firstCharOffset)return null;const P=this.getIndentRulesSupport(R.languageId);if(!P)return null;const F=R.getLineContent(),W=F.substr(0,O.startColumn-1-R.firstCharOffset);let A;if(O.isEmpty()?A=F.substr(O.startColumn-1-R.firstCharOffset):A=this.getScopedLineTokens(M,O.endLineNumber,O.endColumn).getLineContent().substr(O.endColumn-1-R.firstCharOffset),!P.shouldDecrease(W+A)&&P.shouldDecrease(W+B+A)){const H=this.getInheritIndentForLine(k,M,O.startLineNumber,!1);if(!H)return null;let q=H.indentation;return H.action!==w.IndentAction.Indent&&(q=T.unshiftIndent(q)),q}return null}getIndentMetadata(k,M){const O=this.getIndentRulesSupport(k.getLanguageId());return!O||M<1||M>k.getLineCount()?null:O.getIndentMetadata(k.getLineContent(M))}getEnterAction(k,M,O){const B=this.getScopedLineTokens(M,O.startLineNumber,O.startColumn),T=this.getLanguageConfiguration(B.languageId);if(!T)return null;const R=B.getLineContent(),P=R.substr(0,O.startColumn-1-B.firstCharOffset);let F;O.isEmpty()?F=R.substr(O.startColumn-1-B.firstCharOffset):F=this.getScopedLineTokens(M,O.endLineNumber,O.endColumn).getLineContent().substr(O.endColumn-1-B.firstCharOffset);let W="";if(O.startLineNumber>1&&B.firstCharOffset===0){const re=this.getScopedLineTokens(M,O.startLineNumber-1);re.languageId===B.languageId&&(W=re.getLineContent())}const A=T.onEnter(k,W,P,F);if(!A)return null;const H=A.indentAction;let q=A.appendText;const X=A.removeText||0;q?H===w.IndentAction.Indent&&(q=" "+q):H===w.IndentAction.Indent||H===w.IndentAction.IndentOutdent?q=" ":q="";let G=this.getIndentationAtPosition(M,O.startLineNumber,O.startColumn);return X&&(G=G.substring(0,G.length-X)),{indentAction:H,appendText:q,removeText:X,indentation:G}}getIndentationAtPosition(k,M,O){const B=k.getLineContent(M);let T=D.getLeadingWhitespace(B);return T.length>O-1&&(T=T.substring(0,O-1)),T}getScopedLineTokens(k,M,O){k.forceTokenization(M);const B=k.getLineTokens(M),T=typeof O=="undefined"?k.getLineMaxColumn(M)-1:O-1;return(0,b.createScopedLineTokens)(B,T)}}e.LanguageConfigurationRegistryImpl=v,e.LanguageConfigurationRegistry=new v;class C{constructor(k){this.languageId=k,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(k,M){const O=new L(k,M,++this._order);return this._entries.push(O),this._resolved=null,(0,m.toDisposable)(()=>{for(let B=0;B<this._entries.length;B++)if(this._entries[B]===O){this._entries.splice(B,1),this._resolved=null;break}})}getResolvedConfiguration(){if(!this._resolved){const k=this._resolve();k&&(this._resolved=new E(this.languageId,k))}return this._resolved}_resolve(){return this._entries.length===0?null:(this._entries.sort(L.cmp),_(this._entries.map(k=>k.configuration)))}}function _(N){let k={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const M of N)k={comments:M.comments||k.comments,brackets:M.brackets||k.brackets,wordPattern:M.wordPattern||k.wordPattern,indentationRules:M.indentationRules||k.indentationRules,onEnterRules:M.onEnterRules||k.onEnterRules,autoClosingPairs:M.autoClosingPairs||k.autoClosingPairs,surroundingPairs:M.surroundingPairs||k.surroundingPairs,autoCloseBefore:M.autoCloseBefore||k.autoCloseBefore,folding:M.folding||k.folding,colorizedBracketPairs:M.colorizedBracketPairs||k.colorizedBracketPairs,__electricCharacterSupport:M.__electricCharacterSupport||k.__electricCharacterSupport};return k}class L{constructor(k,M,O){this.configuration=k,this.priority=M,this.order=O}static cmp(k,M){return k.priority===M.priority?k.order-M.order:k.priority-M.priority}}class E{constructor(k,M){this.languageId=k,this.underlyingConfig=M,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new t.OnEnterSupport(this.underlyingConfig):null,this.comments=E._handleComments(this.underlyingConfig),this.characterPair=new p.CharacterPairSupport(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||I.DEFAULT_WORD_REGEXP,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new g.IndentRulesSupport(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{}}getWordDefinition(){return(0,I.ensureValidWordDefinition)(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new i.RichEditBrackets(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new h.BracketElectricCharacterSupport(this.brackets)),this._electricCharacter}onEnter(k,M,O,B){return this._onEnterSupport?this._onEnterSupport.onEnter(k,M,O,B):null}getAutoClosingPairs(){return new w.AutoClosingPairs(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(){return this.characterPair.getAutoCloseBeforeSet()}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(k){const M=k.comments;if(!M)return null;const O={};if(M.lineComment&&(O.lineCommentToken=M.lineComment),M.blockComment){const[B,T]=M.blockComment;O.blockCommentStartToken=B,O.blockCommentEndToken=T}return O}}e.ResolvedLanguageConfiguration=E,(0,r.registerSingleton)(e.ILanguageConfigurationService,o)}),define(te[197],ie([1,0,8,68,3,22,32]),function(j,e,y,m,D,I,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShiftCommand=e.cachedStringRepeat=void 0;const b=Object.create(null);function p(g,t){if(t<=0)return"";b[g]||(b[g]=["",g]);const i=b[g];for(let n=i.length;n<=t;n++)i[n]=i[n-1]+g;return i[t]}e.cachedStringRepeat=p;class h{constructor(t,i){this._opts=i,this._selection=t,this._selectionId=null,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}static unshiftIndent(t,i,n,l,c){const r=m.CursorColumns.visibleColumnFromColumn(t,i,n);if(c){const s=p(" ",l),a=m.CursorColumns.prevIndentTabStop(r,l)/l;return p(s,a)}else{const s=" ",a=m.CursorColumns.prevRenderTabStop(r,n)/n;return p(s,a)}}static shiftIndent(t,i,n,l,c){const r=m.CursorColumns.visibleColumnFromColumn(t,i,n);if(c){const s=p(" ",l),a=m.CursorColumns.nextIndentTabStop(r,l)/l;return p(s,a)}else{const s=" ",a=m.CursorColumns.nextRenderTabStop(r,n)/n;return p(s,a)}}_addEditOperation(t,i,n){this._useLastEditRangeForCursorEndPosition?t.addTrackedEditOperation(i,n):t.addEditOperation(i,n)}getEditOperations(t,i){const n=this._selection.startLineNumber;let l=this._selection.endLineNumber;this._selection.endColumn===1&&n!==l&&(l=l-1);const{tabSize:c,indentSize:r,insertSpaces:s}=this._opts,o=n===l;if(this._opts.useTabStops){this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(n))&&(this._useLastEditRangeForCursorEndPosition=!0);let a=0,d=0;for(let u=n;u<=l;u++,a=d){d=0;const f=t.getLineContent(u);let S=y.firstNonWhitespaceIndex(f);if(this._opts.isUnshift&&(f.length===0||S===0)||!o&&!this._opts.isUnshift&&f.length===0)continue;if(S===-1&&(S=f.length),u>1&&m.CursorColumns.visibleColumnFromColumn(f,S+1,c)%r!=0&&t.isCheapToTokenize(u-1)){const _=w.LanguageConfigurationRegistry.getEnterAction(this._opts.autoIndent,t,new D.Range(u-1,t.getLineMaxColumn(u-1),u-1,t.getLineMaxColumn(u-1)));if(_){if(d=a,_.appendText)for(let L=0,E=_.appendText.length;L<E&&d<r&&_.appendText.charCodeAt(L)===32;L++)d++;_.removeText&&(d=Math.max(0,d-_.removeText));for(let L=0;L<d&&!(S===0||f.charCodeAt(S-1)!==32);L++)S--}}if(this._opts.isUnshift&&S===0)continue;let v;this._opts.isUnshift?v=h.unshiftIndent(f,S+1,c,r,s):v=h.shiftIndent(f,S+1,c,r,s),this._addEditOperation(i,new D.Range(u,1,u,S+1),v),u===n&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=S+1)}}else{!this._opts.isUnshift&&this._selection.isEmpty()&&t.getLineLength(n)===0&&(this._useLastEditRangeForCursorEndPosition=!0);const a=s?p(" ",r):" ";for(let d=n;d<=l;d++){const u=t.getLineContent(d);let f=y.firstNonWhitespaceIndex(u);if(!(this._opts.isUnshift&&(u.length===0||f===0))&&!(!o&&!this._opts.isUnshift&&u.length===0)&&(f===-1&&(f=u.length),!(this._opts.isUnshift&&f===0)))if(this._opts.isUnshift){f=Math.min(f,r);for(let S=0;S<f;S++)if(u.charCodeAt(S)===9){f=S+1;break}this._addEditOperation(i,new D.Range(d,1,d,f+1),"")}else this._addEditOperation(i,new D.Range(d,1,d,1),a),d===n&&!this._selection.isEmpty()&&(this._selectionStartColumnStaysPut=this._selection.startColumn===1)}}this._selectionId=i.trackSelection(this._selection)}computeCursorState(t,i){if(this._useLastEditRangeForCursorEndPosition){const l=i.getInverseEditOperations()[0];return new I.Selection(l.range.endLineNumber,l.range.endColumn,l.range.endLineNumber,l.range.endColumn)}const n=i.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){const l=this._selection.startColumn;return n.startColumn<=l?n:n.getDirection()===0?new I.Selection(n.startLineNumber,l,n.endLineNumber,n.endColumn):new I.Selection(n.endLineNumber,n.endColumn,n.startLineNumber,l)}return n}}e.ShiftCommand=h}),define(te[599],ie([1,0,8,61,11,3,22,32,254]),function(j,e,y,m,D,I,w,b,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineCommentCommand=void 0;class h{constructor(t,i,n,l,c,r,s){this.languageConfigurationService=t,this._selection=i,this._tabSize=n,this._type=l,this._insertSpace=c,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=r,this._ignoreFirstLine=s||!1}static _gatherPreflightCommentStrings(t,i,n,l){t.tokenizeIfCheap(i);const c=t.getLanguageIdAtPosition(i,1),r=l.getLanguageConfiguration(c).comments,s=r?r.lineCommentToken:null;if(!s)return null;let o=[];for(let a=0,d=n-i+1;a<d;a++)o[a]={ignore:!1,commentStr:s,commentStrOffset:0,commentStrLength:s.length};return o}static _analyzeLines(t,i,n,l,c,r,s,o){let a=!0,d;t===0?d=!0:t===1?d=!1:d=!0;for(let u=0,f=l.length;u<f;u++){const S=l[u],v=c+u;if(v===c&&s){S.ignore=!0;continue}const C=n.getLineContent(v),_=y.firstNonWhitespaceIndex(C);if(_===-1){S.ignore=r,S.commentStrOffset=C.length;continue}if(a=!1,S.ignore=!1,S.commentStrOffset=_,d&&!p.BlockCommentCommand._haystackHasNeedleAtOffset(C,S.commentStr,_)&&(t===0?d=!1:t===1||(S.ignore=!0)),d&&i){const L=_+S.commentStrLength;L<C.length&&C.charCodeAt(L)===32&&(S.commentStrLength+=1)}}if(t===0&&a){d=!1;for(let u=0,f=l.length;u<f;u++)l[u].ignore=!1}return{supported:!0,shouldRemoveComments:d,lines:l}}static _gatherPreflightData(t,i,n,l,c,r,s,o){const a=h._gatherPreflightCommentStrings(n,l,c,o);return a===null?{supported:!1}:h._analyzeLines(t,i,n,a,l,r,s,o)}_executeLineComments(t,i,n,l){let c;n.shouldRemoveComments?c=h._createRemoveLineCommentsOperations(n.lines,l.startLineNumber):(h._normalizeInsertionPoint(t,n.lines,l.startLineNumber,this._tabSize),c=this._createAddLineCommentsOperations(n.lines,l.startLineNumber));const r=new D.Position(l.positionLineNumber,l.positionColumn);for(let s=0,o=c.length;s<o;s++)i.addEditOperation(c[s].range,c[s].text),I.Range.isEmpty(c[s].range)&&I.Range.getStartPosition(c[s].range).equals(r)&&t.getLineContent(r.lineNumber).length+1===r.column&&(this._deltaColumn=(c[s].text||"").length);this._selectionId=i.trackSelection(l)}_attemptRemoveBlockComment(t,i,n,l){let c=i.startLineNumber,r=i.endLineNumber,s=l.length+Math.max(t.getLineFirstNonWhitespaceColumn(i.startLineNumber),i.startColumn),o=t.getLineContent(c).lastIndexOf(n,s-1),a=t.getLineContent(r).indexOf(l,i.endColumn-1-n.length);return o!==-1&&a===-1&&(a=t.getLineContent(c).indexOf(l,o+n.length),r=c),o===-1&&a!==-1&&(o=t.getLineContent(r).lastIndexOf(n,a),c=r),i.isEmpty()&&(o===-1||a===-1)&&(o=t.getLineContent(c).indexOf(n),o!==-1&&(a=t.getLineContent(c).indexOf(l,o+n.length))),o!==-1&&t.getLineContent(c).charCodeAt(o+n.length)===32&&(n+=" "),a!==-1&&t.getLineContent(r).charCodeAt(a-1)===32&&(l=" "+l,a-=1),o!==-1&&a!==-1?p.BlockCommentCommand._createRemoveBlockCommentOperations(new I.Range(c,o+n.length+1,r,a+1),n,l):null}_executeBlockComment(t,i,n){t.tokenizeIfCheap(n.startLineNumber);let l=t.getLanguageIdAtPosition(n.startLineNumber,1),c=b.LanguageConfigurationRegistry.getComments(l);if(!c||!c.blockCommentStartToken||!c.blockCommentEndToken)return;const r=c.blockCommentStartToken,s=c.blockCommentEndToken;let o=this._attemptRemoveBlockComment(t,n,r,s);if(!o){if(n.isEmpty()){const a=t.getLineContent(n.startLineNumber);let d=y.firstNonWhitespaceIndex(a);d===-1&&(d=a.length),o=p.BlockCommentCommand._createAddBlockCommentOperations(new I.Range(n.startLineNumber,d+1,n.startLineNumber,a.length+1),r,s,this._insertSpace)}else o=p.BlockCommentCommand._createAddBlockCommentOperations(new I.Range(n.startLineNumber,t.getLineFirstNonWhitespaceColumn(n.startLineNumber),n.endLineNumber,t.getLineMaxColumn(n.endLineNumber)),r,s,this._insertSpace);o.length===1&&(this._deltaColumn=r.length+1)}this._selectionId=i.trackSelection(n);for(const a of o)i.addEditOperation(a.range,a.text)}getEditOperations(t,i){let n=this._selection;if(this._moveEndPositionDown=!1,n.startLineNumber===n.endLineNumber&&this._ignoreFirstLine){i.addEditOperation(new I.Range(n.startLineNumber,t.getLineMaxColumn(n.startLineNumber),n.startLineNumber+1,1),n.startLineNumber===t.getLineCount()?"":`
546`),this._selectionId=i.trackSelection(n);return}n.startLineNumber<n.endLineNumber&&n.endColumn===1&&(this._moveEndPositionDown=!0,n=n.setEndPosition(n.endLineNumber-1,t.getLineMaxColumn(n.endLineNumber-1)));const l=h._gatherPreflightData(this._type,this._insertSpace,t,n.startLineNumber,n.endLineNumber,this._ignoreEmptyLines,this._ignoreFirstLine,this.languageConfigurationService);return l.supported?this._executeLineComments(t,i,l,n):this._executeBlockComment(t,i,n)}computeCursorState(t,i){let n=i.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),new w.Selection(n.selectionStartLineNumber,n.selectionStartColumn+this._deltaColumn,n.positionLineNumber,n.positionColumn+this._deltaColumn)}static _createRemoveLineCommentsOperations(t,i){let n=[];for(let l=0,c=t.length;l<c;l++){const r=t[l];r.ignore||n.push(m.EditOperation.delete(new I.Range(i+l,r.commentStrOffset+1,i+l,r.commentStrOffset+r.commentStrLength+1)))}return n}_createAddLineCommentsOperations(t,i){let n=[];const l=this._insertSpace?" ":"";for(let c=0,r=t.length;c<r;c++){const s=t[c];s.ignore||n.push(m.EditOperation.insert(new D.Position(i+c,s.commentStrOffset+1),s.commentStr+l))}return n}static nextVisibleColumn(t,i,n,l){return n?t+(i-t%i):t+l}static _normalizeInsertionPoint(t,i,n,l){let c=1073741824,r,s;for(let o=0,a=i.length;o<a;o++){if(i[o].ignore)continue;const d=t.getLineContent(n+o);let u=0;for(let f=0,S=i[o].commentStrOffset;u<c&&f<S;f++)u=h.nextVisibleColumn(u,l,d.charCodeAt(f)===9,1);u<c&&(c=u)}c=Math.floor(c/l)*l;for(let o=0,a=i.length;o<a;o++){if(i[o].ignore)continue;const d=t.getLineContent(n+o);let u=0;for(r=0,s=i[o].commentStrOffset;u<c&&r<s;r++)u=h.nextVisibleColumn(u,l,d.charCodeAt(r)===9,1);u>c?i[o].commentStrOffset=r-1:i[o].commentStrOffset=r}}}e.LineCommentCommand=h}),define(te[600],ie([1,0,8,197,3,22,119,32,258]),function(j,e,y,m,D,I,w,b,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MoveLinesCommand=void 0;class h{constructor(t,i,n){this._selection=t,this._isMovingDown=i,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(t,i){let n=t.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n){this._selectionId=i.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=i.trackSelection(this._selection);return}this._moveEndPositionDown=!1;let l=this._selection;l.startLineNumber<l.endLineNumber&&l.endColumn===1&&(this._moveEndPositionDown=!0,l=l.setEndPosition(l.endLineNumber-1,t.getLineMaxColumn(l.endLineNumber-1)));const{tabSize:c,indentSize:r,insertSpaces:s}=t.getOptions();let o=this.buildIndentConverter(c,r,s),a={getLineTokens:d=>t.getLineTokens(d),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(d,u)=>t.getLanguageIdAtPosition(d,u),getLineContent:null};if(l.startLineNumber===l.endLineNumber&&t.getLineMaxColumn(l.startLineNumber)===1){let d=l.startLineNumber,u=this._isMovingDown?d+1:d-1;t.getLineMaxColumn(u)===1?i.addEditOperation(new D.Range(1,1,1,1),null):(i.addEditOperation(new D.Range(d,1,d,1),t.getLineContent(u)),i.addEditOperation(new D.Range(u,1,u,t.getLineMaxColumn(u)),null)),l=new I.Selection(u,1,u,1)}else{let d,u;if(this._isMovingDown){d=l.endLineNumber+1,u=t.getLineContent(d),i.addEditOperation(new D.Range(d-1,t.getLineMaxColumn(d-1),d,t.getLineMaxColumn(d)),null);let f=u;if(this.shouldAutoIndent(t,l)){let S=this.matchEnterRule(t,o,c,d,l.startLineNumber-1);if(S!==null){let C=y.getLeadingWhitespace(t.getLineContent(d)),_=S+p.getSpaceCnt(C,c);f=p.generateIndent(_,c,s)+this.trimLeft(u)}else{a.getLineContent=_=>_===l.startLineNumber?t.getLineContent(d):t.getLineContent(_);let C=b.LanguageConfigurationRegistry.getGoodIndentForLine(this._autoIndent,a,t.getLanguageIdAtPosition(d,1),l.startLineNumber,o);if(C!==null){let _=y.getLeadingWhitespace(t.getLineContent(d)),L=p.getSpaceCnt(C,c),E=p.getSpaceCnt(_,c);L!==E&&(f=p.generateIndent(L,c,s)+this.trimLeft(u))}}i.addEditOperation(new D.Range(l.startLineNumber,1,l.startLineNumber,1),f+`

Callers 15

xFunction · 0.80
cFunction · 0.80
pFunction · 0.80
vendor.4fec47b8.jsFile · 0.80
fFunction · 0.80
iFunction · 0.80
tFunction · 0.80
eFunction · 0.80
oFunction · 0.80
iFunction · 0.80
eFunction · 0.80
iFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected